Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

play

Play audio


Description

play plays audio

Usage

play(x, ...)
## S3 method for class 'audioSample'
play(x, rate, ...)
## S3 method for class 'Sample'
play(x, ...) 
## Default S3 method:
play(x, rate = 44100, ...)

Arguments

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

Value

Returns an audio instance object which can be used to control the playback subsequently.

Examples

play(sin(1:10000/20))

audio

Audio Interface for R

v0.1-10
MIT + file LICENSE
Authors
Simon Urbanek <simon.urbanek@r-project.org>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.