play                  package:sound                  R Documentation

_P_l_a_y _a _S_a_m_p_l_e _O_b_j_e_c_t _o_r _a _W_A_V _F_i_l_e

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

     Play a Sample object or a wav file, using the wav file play
     command returned by 'WavPlayer', or any other specified command.

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

     play(s, stay=FALSE, command=WavPlayer())

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

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

    stay: logical. If TRUE, the Windows Media Player won't be closed
          after playing the sample. 

 command: a character string giving the system command to be used for
          playing the sample. 

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

     If 's' is a Sample object, it will be saved into a temporary
     folder before it is played. The temporary file will only be
     deleted afterwards if 'stay=FALSE'.

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

     Matthias Heymann

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

     ## Not run: 
     s <- Sine(440,1)
     play(s)
     ## End(Not run)

