play {audio} | R Documentation |
play
plays audio
play(x, ...)
## S3 method for class 'audioSample'
play(x, rate, ...)
## S3 method for class 'Sample'
play(x, ...)
## Default S3 method:
play(x, rate = 44100, ...)
x |
data to play |
rate |
sample rate - it is inferred from the object (where possible) if not specified |
... |
optional arguments passed to the method specific to the object being played |
Returns an audio instance object which can be used to control the playback subsequently.
play(sin(1:10000/20))