left                  package:sound                  R Documentation

_E_x_t_r_a_c_t _o_n_e _C_h_a_n_n_e_l _f_r_o_m _a _S_t_e_r_e_o _S_a_m_p_l_e

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

     Extract either the left or the right channel of a stereo Sample
     object or a stereo wav file.

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

     left(s)
     right(s)

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

       s: a Sample object, or a string giving the name of a wav file. 

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

     If 's' is a mono sample, it will be returned as it is.

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

     a Sample object containing the left or the right channel of 's'.

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

     Matthias Heymann

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

     'stereo' for creating a stereo Sample object from two mono
     samples.

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

     ## Not run: 
     sLeft <- Sine(440,1)
     sRight <- Sine(220,1)
     s <- stereo(sLeft,sRight)
     play(s)
     play(left(s))  # only the left channel
     play(right(s)) # only the right channel
     ## End(Not run)

