play: Play audio

View source: R/api.R

playR Documentation

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 documentation built on Aug. 18, 2023, 9:07 a.m.

Related to play in audio...