reverse                package:sound                R Documentation

_P_l_a_y _a _S_a_m_p_l_e _O_b_j_e_c_t _B_a_c_k_w_a_r_d_s

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

     Returns the Sample object (or wav file) played backwards.

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

     reverse(s)

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

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

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

     a Sample object with the same parameters but with the sound played
     backwards.

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

     Matthias Heymann

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

     ## Not run: 
     waveform <- 2*((seq(0,80,length=88200)%%1^2)-.5)
     s <- as.Sample(waveform,44100,16)
     play(s)
     play(reverse(s)) # now played backwards
     ## End(Not run)

