listen: Listen to a sound sample

View source: R/class_soundSample.R

listenR Documentation

Listen to a sound sample

Description

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

Usage

listen(x)

Arguments

x

sound sample object.

Value

nothing - listening function.

Examples

# Define sound sample
sam <- soundSample(sin(2*pi*seq(0,1,,44100)*440)+0.1*rnorm(44100)) # 1-second noisy A
## Not run: 
# 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)
## End(Not run)

benRenard/sequenceR documentation built on Jan. 11, 2025, 2:33 a.m.