appendSample              package:sound              R Documentation

_A_p_p_e_n_d _S_a_m_p_l_e_s

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

     Append two or more Sample objects or wav files.

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

     appendSample(s1, s2, ...)

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

s1, s2, ...: Sample objects, or the names of wav files. 

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

     If the samples have different sample parameters (bits, rate and
     channels), the command 'fitSampleParameters' is called to adjust
     them before the samples are appended.

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

     a Sample object with the samples played one after the other.

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

     Matthias Heymann

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

     'cutSampleEnds' to avoid cracks between two appended samples,

     'sum.Sample' for playing several samples at a time.

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

     ## Not run: 
     s1 <- Sine(440,1)
     s2 <- Sine(550,1)
     s3 <- Sine(660,1)
     s4 <- Sine(880,1)
     play(appendSample(s1,s2,s3,s4))
     ## End(Not run)

