Type:AudioSourceWaveformMesh
From Resonite Wiki
More actions
AudioSourceWaveformMesh is a RectMeshSource that draws a live oscilloscope trace of a mono audio signal inside a rectangle. It is used as the Mesh member of a StandaloneRectMesh, which supplies the rectangle.
The mesh keeps a short history of the audio from Source and resamples it to Points points, spread evenly from the left to the right edge. The sample amplitude (-1 to 1) is mapped to the height: -1 is the bottom edge, 0 the middle and 1 the top edge. With no Source set the signal is silence and a flat line is drawn across the middle.
The history length decides how much time the width of the rectangle shows. At the default 0.025 seconds it spans one screen of a 40 Hz wave.
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| Source | Reference to IWorldAudioDataSource | null | The audio to draw. |
| HistoryLength | Float | 0.025 | Seconds of audio shown across the rectangle. Clamped between 0.01 and 1. |
| Points | Int | 256 | Number of points of the line. Clamped between 2 and 48000. |
| Width | Float | 0.2 | Thickness of the line. The slider range is 0.001 to 4. |
| Color | ColorX | White | Vertex color of the line. |
| UVScale | Float2 | (1, 1) | Scale of the UV coordinates along and across the line. |
See also
- Type:AudioSourceXYMesh, the same signal source drawn as a stereo X/Y plot
- Type:LineGraphMesh
- Type:RectMeshSource