Divooka Reference

Pictures

3 nodes

On this page 3

Draw Spectrogram

Function

A spectrogram: time runs left to right, frequency bottom to top, and brightness is level - a picture of how a sound's spectrum changes.

Signature
DrawSpectrogram -> Pixel Image
    audio: AudioBuffer
    width: Integer
    height: Integer
    transformSize: Integer
PixelImage DrawSpectrogram(
    AudioBuffer audio,
    int width = 800,
    int height = 300,
    int transformSize = 2048)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to draw.
widthInteger800Picture width, in pixels; each column is one moment of the clip.
heightInteger300Picture height, in pixels.
transformSizeInteger2048Samples per transform: a power of two from 256 to 16384. Bigger is sharper in frequency and blurrier in time.

Returns

ImagePixel Image

Remarks

A steady tone is a horizontal line, a sweep is a rising one, a drum hit a vertical stripe and noise a haze.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Pictures
Package
Audio Processing

Draw Spectrum

Function

A spectrum as a picture: level against frequency.

Signature
DrawSpectrum -> Pixel Image
    spectrum: Audio Spectrum
    width: Integer
    height: Integer
PixelImage DrawSpectrum(
    AudioSpectrum spectrum,
    int width = 800,
    int height = 300)

Parameters

nametypedefaultdescription
spectrumAudio Spectrum—The spectrum to draw, from the Spectrum node.
widthInteger800Picture width, in pixels.
heightInteger300Picture height, in pixels.

Returns

ImagePixel Image

Remarks

Faint vertical lines mark 100 Hz, 1 kHz and 10 kHz; faint horizontal ones every 20 dB.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Pictures
Package
Audio Processing

Draw Waveform

Function

A clip's waveform: its level over time, one lane per channel.

Signature
DrawWaveform -> Pixel Image
    audio: AudioBuffer
    width: Integer
    height: Integer
PixelImage DrawWaveform(
    AudioBuffer audio,
    int width = 800,
    int height = 240)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to draw.
widthInteger800Picture width, in pixels.
heightInteger240Picture height, in pixels.

Returns

ImagePixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Pictures
Package
Audio Processing