saveSample               package:sound               R Documentation

_S_a_v_e _a _S_a_m_p_l_e _O_b_j_e_c_t _a_s _a _W_A_V _F_i_l_e

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

     Save a Sample object to disk as a wav file.

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

     saveSample(s, filename, overwrite=FALSE)

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

       s: a Sample object. 

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

overwrite: logical. If 'FALSE' and 'filename' already exists, an error
          will be reported. Otherwise the old file will be deleted. 

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

     Matthias Heymann

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

     'loadSample'

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

     ## Not run: 
     s <- Sine(440,1)
     saveSample(s,"sine.wav")
     ## End(Not run)

