listen {seewave} | R Documentation |
Play a sound wave
listen(wave, f, channel=1, from = NULL, to = NULL, choose = FALSE)
wave |
an R object. |
f |
sampling frequency of |
channel |
channel of the R object, by default left channel (1). |
from |
start of play (in s). |
to |
end of play (in s). |
choose |
logical, if |
This function is based on play
but allows to read
one-colum matrix, data.frame, time-series and Sample objects.
Jerome Sueur sueur@mnhn.fr but the original
play
function is by Uwe Ligges (package tuneR).
## NOT RUN # data(tico) # listen(tico,f=22050) # listen(tico,f=22050,from=0.5,to=1.5) # listen(noise(d=1,f=8000,Wave=TRUE)) ## change f to play the sound a different speed # data(sheep) ## normal # listen(sheep,f=8000) ## two times faster # listen(sheep,f=8000*2) ## two times slower # listen(sheep,f=8000/2)