Pictures
3 nodes
On this page 3
Draw Spectrogram
FunctionA 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: IntegerPixelImage DrawSpectrogram(
AudioBuffer audio,
int width = 800,
int height = 300,
int transformSize = 2048)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to draw. |
| width | Integer | 800 | Picture width, in pixels; each column is one moment of the clip. |
| height | Integer | 300 | Picture height, in pixels. |
| transformSize | Integer | 2048 | Samples per transform: a power of two from 256 to 16384. Bigger is sharper in frequency and blurrier in time. |
Returns
| Image | Pixel 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
FunctionA spectrum as a picture: level against frequency.
Signature
DrawSpectrum -> Pixel Image
spectrum: Audio Spectrum
width: Integer
height: IntegerPixelImage DrawSpectrum(
AudioSpectrum spectrum,
int width = 800,
int height = 300)Parameters
| name | type | default | description |
|---|---|---|---|
| spectrum | Audio Spectrum | — | The spectrum to draw, from the Spectrum node. |
| width | Integer | 800 | Picture width, in pixels. |
| height | Integer | 300 | Picture height, in pixels. |
Returns
| Image | Pixel 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
FunctionA clip's waveform: its level over time, one lane per channel.
Signature
DrawWaveform -> Pixel Image
audio: AudioBuffer
width: Integer
height: IntegerPixelImage DrawWaveform(
AudioBuffer audio,
int width = 800,
int height = 240)Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to draw. |
| width | Integer | 800 | Picture width, in pixels. |
| height | Integer | 240 | Picture height, in pixels. |
Returns
| Image | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Pictures
- Package
- Audio Processing