Learn R Programming

music (version 0.1.2)

playWave: Minimal "Polyphonic" Wave Player

Description

Play one or more waveforms at the same time using audio::play

Usage

playWave(wave, sample.rate = 44100, plot = FALSE)

Arguments

wave

Matrix or vector of waveforms. If a matrix, each column should be a waveform to be played simultaneously

sample.rate

Integer: Sample rate. Default = 44100

plot

Logical: If TRUE: plot wave using mplot.

Author

E.D. Gennatas

Examples

Run this code
if (FALSE) {
playWave(freq2wave(440))
}

Run the code above in your browser using DataLab