View source: R/class_soundSample.R
as.soundSample | R Documentation |
Convert a tuneR::Wave object into a soundSample.
as.soundSample(w, pan = 0)
w |
tuneR Wave object |
pan |
Numeric in [-1;1], panoramic. -1 (resp. 1) only select the left (resp. right) channel of w (if the latter is stereo). 0 averages both channels |
An object of class 'soundSample'.
w <- tuneR::Wave(left=sin(2*pi*seq(0,1,,44100)*440)) # 1-second A
sam <- as.soundSample(w)
plot(sam)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.