playWave: Minimal "Polyphonic" Wave Player

View source: R/play.R

playWaveR Documentation

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(s)

E.D. Gennatas

Examples

## Not run: 
playWave(freq2wave(440))

## End(Not run)

music documentation built on July 11, 2022, 1:06 a.m.