Audio Toolkit - sweeptone


excitation = sweeptone()
excitation = sweeptone(sweepduration)
excitation = sweeptone(sweepduration, silenceduration)
excitation = sweeptone(sweepduration, silenceduration, fs)
excitation = sweeptone(___, propname, propvalue …)

Generate an excitation signal using the exponential swept sine (ESS) technique.

By default, the signal has a 6-second duration, followed by 4 seconds of silence, for a sample rate of 44100 Hz.

Inputs

sweepduration - Positive scalar sweep duration (default 6)

silenceduration - scalar silence durtation to follow the sweep (default 4)

fs - Sample frequency. (default 44100)

propname, propvalue - property name/value pairs.

Known properties are:

ExcitationLevel

Excitation Level scalar in the range of [-42, 0] (default -6)

SweepFrequencyRange

2 element vector for sweep frequency range (default [10 22000]). Max value can be fs/2.

Outputs

excitation - Output signal using ESS technique.

Examples

Create a sweep tone excitation signal by using the sweeptone function. sweep duration of 2 seconds, 1 second silence, sample frequency of 44100. Then plot it.

 excitation = sweeptone (2, 1, 44100);
 plot(excitation)
 

References

[1] Farina, Angelo. Advancements in Impulse Response Measurements by Sine Sweeps. Presented at the Audio Engineering Society 122nd Convention, Vienna, Austria, 2007.