This is a canvas widget used to display the first and second formants.
Standard constructor of a canvas
Draws graph with horizontal and vertical axis labeled, Will also label with
sound file name if set
This gets the X coordinate for the graph in terms of the first formant
This gets the Y coordinate for the graph in terms of the second formant
Returns the first formant given an X (screen) coordinate
Returns the second formant given a Y (screen) coordinate
This is used to cycle through a set of 6 different colors
Plots given the first and second formant and an optional color.
Plots the bandwidth as an elipse, centered at the formant center.
- *f1*
- is the first formant center (mean)
- *b1*
- is the first formant bandwidth (3 std deviations)
- *f2*
- is the second formant center (mean)
- *b2*
- is the second formant bandwidth (3 std deviations)