Spectrogram:
Filter:
Spectrogram/Classes (extension) | GUI > Interfaces

Spectrogram
ExtensionExtension

a spectral analysis view

Description

SuperCollider allows for various modes of graphical representations of sound. Spectrogram adds yet another mode (spectral view) to the Wave scope or the Frequency scope.

Spectrogram comes in two modes, as a view that can be added to any Window, and a special window that functions like the FreqScope window. See SpectrogramWindow which provides a GUI with controls over Spectrogram's paramters.

NOTE: The server must be running before using the spectrogram:

Class Methods

.new

Initialize the view, either in a Window or not.

Arguments:

parent

A Window (optional).

bounds

A Rect where the spectrogram appears in the parent (optional).

bufSize

frames in FFT window. default: 1024. Use power-of-2 sizes, such as 512 or 2048.

color

The foreground Color.

background

The background Color.

lowfreq
highfreq

Specify the range of frequencies you want to visualise.

Discussion:

Instance Methods

.start

Starts analysis and drawing.

.stop

Stop analysis and drawing.

.setBufSize

Set the buffer size of the fft window.

Instance variables

.rate

Refresh rate. Default is 25 frames per second

.intensity

Intensity is how strong the drawn color is. Default value is 5.

.inbus

The audio bus of analysis.

.color

The color that is drawn.

.background

The background color.

Discussion:

.bufSize

Number of frames in FFT window.

Examples