Learn R Programming

audio (version 0.1-11)

play: Play audio

Description

play plays audio

Usage

play(x, ...)
# S3 method for audioSample
play(x, rate, ...)
# S3 method for Sample
play(x, ...) 
# S3 method for default
play(x, rate = 44100, ...)

Value

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

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

Examples

Run this code
# \donttest{
play(sin(1:10000/20))
# }

Run the code above in your browser using DataLab