Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

Arguments

d

duration (in s)

f

sampling frequency (in Hz)

cf

carrier frequency (in Hz)

Value

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

Note

The function uses listen of seewave which calls play of tuneR. You might need to set up your sound player with setWavPlayer of tuneR.

Author(s)

Jerome Sueur

Examples

## Not run: 
# default settings
beep()
# change the duration and the frequency
beep(d=1, cf=880)

## End(Not run)

seewave

Sound Analysis and Synthesis

v2.1.6
GPL (>= 2)
Authors
Jerome Sueur <sueur@mnhn.fr> [cre, au], Thierry Aubin [au], Caroline Simonis [au], Laurent Lellouch [main ctrb], Ethan C. Brown [ctrb], Marion Depraetere [ctrb], Camille Desjonqueres [ctrb], Francois Fabianek [ctrb], Amandine Gasc [ctrb], Eric Kasten [ctrb], Stefanie LaZerte [ctrb], Jonathan Lees [ctrb], Jean Marchal [ctrb], Andre Mikulec [ctrb], Sandrine Pavoine [ctrb], David Pinaud [ctrb], Alicia Stotz [ctrb], Luis J. Villanueva-Rivera [ctrb], Zev Ross [ctrb], Carl G. Witthoft [ctrb], Hristo Zhivomirov [ctrb].
Initial release
2020-06-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.