Praat Signals

Frequently used signal, easily created with a simple script.

Download the scripts of this page via GitHubarrow-up-right.

Check out Praat script guide for the tips of using Praat scripts.

demo_createModulatedTone

Signal view window and the parameter specification window after running this script. The user can specify the modulation frequency, carrier frequency, number of modulation cycles and the intensity of the modulated tone.

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); f(Modulator)/2)f(\text{Modulator})/2) 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 (number of cycles/modulation frequency)(\text{number of cycles}/\text{modulation frequency}).

Simply run this script to create the signal, which will be added to the object list.

demo_createSawtooth

Signal view window and parameter specification window after running this script. The user can specify the fundamental frequency, signal duration, peak amplitude and sampling frequency.

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:

  • f0f_0: fundamental frequency of oscillation.

  • dd: total duration of signal in seconds.

  • sf\text{sf}: sampling frequency.

  • aa: peak amplitude of signal.

  • dP\text{dP}: duration of a period (in sec).

  • nS\text{nS}: total number of samples in signal.

  • iS\text{iS}: i-th sample in a signal.

  • ΔS\Delta S: duration between samples (in sec).

  • slope: rise/run\text{rise}/\text{run} ( rise\text{rise} = max amplitude difference, run\text{run} = period duration).

  • timeX: the time of the i-th sample.

Simply run this script to get the signal into the object list.

demo_createSignalInNoise

Parameter specification window where the user can specify several parameter that concern about the signal and the noise. As well as the signal and spectrum as an example after running this script.

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

Praat picture window after creating the signal, it contains a sine wave and its spectrum, where the quantisation noise can be clearly seen on it.

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