stereo                 package:sound                 R Documentation

_C_r_e_a_t_e _a _S_t_e_r_e_o _S_a_m_p_l_e _O_b_j_e_c_t _f_r_o_m _T_w_o _M_o_n_o _S_a_m_p_l_e_s

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

     Create a stereo Sample object, given the two channels as Sample
     objects or wav files.

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

     stereo(sLeft, sRight, pan=50)

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

   sLeft: a Sample object or a string giving the name of a wav file.
          Used for the left channel. 

  sRight: a Sample object or a string giving the name of a wav file.
          Used for the right channel. 

     pan: a number between -50 and 50 describing the distance between
          the two sound sources. 

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

     If 'abs(pan)<50', mixtures of the two sources are used for the
     left and the right channel so that they appear closer to the
     center. For 'pan=0', both sounds are at the center. If 'pan<0',
     left and right channel are interchanged afterwards.

     If the samples have different sample parameters (bits, rate and
     channels), the command code{fitSampleParameters} is called to
     adjust them before the two samples are combined.

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

     a stereo Sample object.

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

     Matthias Heymann

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

     'left', 'right', 'as.Sample', 'panorama'

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

     ## Not run: 
     sLeft <- Sine(440,1)
     sRight <- Sine(220,1)
     s <- stereo(sLeft,sRight)
     play(s) 
     ## End(Not run)

