loadSample               package:sound               R Documentation

_L_o_a_d _a _W_A_V _F_i_l_e _f_r_o_m _D_i_s_k

_D_e_s_c_r_i_p_t_i_o_n:

     Load a wav file from disk and create a Sample object.

_U_s_a_g_e:

     loadSample(filename, filecheck=TRUE)

_A_r_g_u_m_e_n_t_s:

filename: a string giving the path and the name of the wav file. 

filecheck: logical. If FALSE, no check for existance and read
          permission of the file will be performed. 

_D_e_t_a_i_l_s:

     All kinds of wav files are supported: mono / stereo, 8 / 16 bits
     per sample, 1000 to 48000 samples/second.

_V_a_l_u_e:

     the Sample object that is equivalent to the wav file.

_N_o_t_e:

     'filename' can also be a Sample object. In this case, the same
     object will be returned immediately. This can be useful when
     writing functions that accept both Sample objects and the names of
     a wav file as an argument. See 'is.Sample' for an example.

_A_u_t_h_o_r(_s):

     Matthias Heymann

_S_e_e _A_l_s_o:

     'saveSample', 'as.Sample'

_E_x_a_m_p_l_e_s:

     ## Not run: 
     s <- loadSample("soundfile.wav")
     play(s)
     ## End(Not run)

