Learn R Programming

seewave (version 2.2.3)

beep: Beep sound

Description

Generate a simple beep to be used as an alert, for instance at the end of a loop of when ending up a long script.

Usage

beep(d = 0.5, f = 8000, cf = 1000)

Value

Nothing returned, a pure tone sound is played back. The default duration is 0.5 s and the default frequency is 1000 Hz

Arguments

d

duration (in s)

f

sampling frequency (in Hz)

cf

carrier frequency (in Hz)

Author

Jerome Sueur

Examples

Run this code
if (FALSE) {
# default settings
beep()
# change the duration and the frequency
beep(d=1, cf=880)
}

Run the code above in your browser using DataLab