Praat Signals
Frequently used signal, easily created with a simple script.
Download the scripts of this page via GitHub.
Check out Praat script guide for the tips of using Praat scripts.
demo_createModulatedTone

This script creates a sinusoidally amplitude modulated (SAM) tone. Users can chose the frequency of the tone (Carrier frequency (Hz)), the frequency of the modulation cycles (Modulation frequency (Hz); and the number of modulation cycles.
The script calculates the total duration of the SAM tone from the number of modulation cycles and rate of modulation cycles .
Simply run this script to create the signal, which will be added to the object list.
demo_createSawtooth

This script creates a sawtooth wave. The user can choose fundamental frequency, duration of the sawtooth in seconds peak amplitude and sampling frequency. The script samples a time function of the sawtooth.
Recommendation: Depending on sampling frequencies there can be rounding differences between time-domain in seconds and time sampling domain leading to little discrepancies between wanted and actual fundamental frequency. I recommend discrepancies between wanted and actual fundamental frequency. I recommend for whole number frequencies (I am working on the problem...).
Variables:
: fundamental frequency of oscillation.
: total duration of signal in seconds.
: sampling frequency.
: peak amplitude of signal.
: duration of a period (in sec).
: total number of samples in signal.
: i-th sample in a signal.
: duration between samples (in sec).
slope: ( = max amplitude difference, = period duration).
timeX: the time of the i-th sample.
Simply run this script to get the signal into the object list.
demo_createSignalInNoise

This Praat script generates a sound composed of a pure tone combined with filtered noise at a specified Signal-to-Noise Ratio (SNR) in decibels.
Simply run this script to add the created signal into the object list.
demo_createSinewave

This script creates sine waves according to the specifications of the user and prints the number of cycles either with or without garnish to the 'Praat picture' window in a colour of your choice.
Simply run this script to get the created signal added into the object list.
Last updated