THE AUDITORY MODELING TOOLBOX

Applies to version: 1.6.0

View the code

Go to function

sig_tone
Generate a single sinusoid

Usage:

out = sig_tone(f, dur, fs);
out = sig_tone(f, dur, fs, ph);

Input parameters:

f Frequency (in Hz).
dur Duration (in seconds).
fs Sampling frequency (in Hz).
ph Optional starting phase of the sine (in degrees). Default: 0 degrees, i.e., a sine.

Output parameters:

out Output signal, i.e., the tone.

Description:

sig_tone(..) generates a tone consisting of a single sinusoid with the frequency f, duration dur, and starting phase ph.