MakeBeep - aleslab/Psychtoolbox-3-aleslab-fork GitHub Wiki

[beep,samplingRate] = MakeBeep(freq,duration,[samplingRate])

Compute array that can be used by Snd to produce a pure tone of specified
"freq" (Hz) and "duration" (s). The "samplingRate" defaults to
Snd('DefaultRate').

beep = [MakeBeep](MakeBeep)(freq,duration);  
[Snd](Snd)('Open');  
.... do some stuff ....  
[Snd](Snd)('Play',beep);  

See Snd.

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychOneliners/MakeBeep.m
⚠️ **GitHub.com Fallback** ⚠️