Wave-class               package:tuneR               R Documentation

_C_l_a_s_s _W_a_v_e _a_n_d _c_o_n_s_t_r_u_c_t_o_r_s

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

     Class "Wave" and its constructor functions

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

     Wave(left, ...)
     ## S4 method for signature 'numeric':
     Wave(left, right = numeric(0), samp.rate = 44100, bit = 16, ...)

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

left, right, samp.rate, bit: See Section "Slots".

     ...: Further arguments to be passed to the default method
          'Wave.default'.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("Wave", ...)', or
     more conveniently using the function 'Wave'.

_S_l_o_t_s:

     '_l_e_f_t': Object of class '"numeric"' representing the left channel.

     '_r_i_g_h_t': Object of class '"numeric"' representing the right
          channel, 'NULL' if mono.

     '_s_t_e_r_e_o': Object of class '"logical"' indicating whether this is a
          stereo (two channels) or mono representation.

     '_s_a_m_p._r_a_t_e': Object of class '"numeric"' - the sampling rate, e.g.
          44100 for CD quality.

     '_b_i_t': Object of class '"numeric"', common is 16 for CD quality,
          or 8 for a rather rough representation.

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

     Uwe Ligges, ligges@statistik.uni-dortmund.de

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

     'writeWave', 'readWave'

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

     # constructing a Wave object (1 sec.) containing sinus sound with 440Hz:
     x <- seq(0, 2*pi, length = 44100)
     channel <- round(32000 * sin(440 * x))
     Wobj <- Wave(left = channel)
     Wobj

