Learn R Programming

sequenceR (version 1.0.1)

listen: Listen to a sound sample

Description

Listen to a sound sample. Based on tuneR function 'play'

Usage

listen(x)

Value

nothing - listening function.

Arguments

x

sound sample object.

Examples

Run this code
# Define sound sample
sam <- soundSample(sin(2*pi*seq(0,1,,44100)*440)+0.1*rnorm(44100)) # 1-second noisy A
if (FALSE) {
# This line of code is wrapped in \dontrun{} since it relies
# on an external audio player to listen to the audio sample.
# See ?tuneR::setWavPlayer for setting a default player.
listen(sam)}

Run the code above in your browser using DataLab