Wave | R Documentation |
Constructors and coercion for class Wave
objects
Wave(left, ...)
## S4 method for signature 'numeric'
Wave(left, right = numeric(0), samp.rate = 44100, bit = 16, pcm = TRUE, ...)
left , right , samp.rate , bit , pcm |
See Section “Slots” on the help page Wave-class.
Except for numeric, the argument |
... |
Further arguments to be passed to the numeric method. |
The class definition has been extended in tuneR version 1.0-0. Saved objects of class Wave
generated with former versions can be
updated with updateWave
to match the new definition.
An object of Wave-class.
Uwe Ligges ligges@statistik.tu-dortmund.de
Wave-class, WaveMC-class, writeWave
, readWave
, updateWave
# 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
# or more easily:
Wobj <- sine(440)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.