mirror                 package:sound                 R Documentation

_M_i_r_r_o_r _a _S_t_e_r_e_o _S_a_m_p_l_e

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

     Interchange the left and the right channel of a stereo Sample
     object or a stereo wav file.

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

     mirror(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, with the left and the right channel of 's'
     interchanged.

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

     Matthias Heymann

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

     'panorama' for a command with more parameters, 'left' and 'right'
     for access to single channels of a sample.

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

     ## Not run: 
     s <- stereo(Sine(440,1),Sine(220,1))
     play(s)  # higher tone is on the left
     play(mirror(s))  # now higher tone is on the right
     ## End(Not run)

