Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Type:AudioSourceXYMesh

From Resonite Wiki

AudioSourceXYMesh is a RectMeshSource that draws a live X/Y plot (a goniometer or vectorscope) of a stereo 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. Each point is placed using the left channel for the horizontal position and the right channel for the vertical position, where -1 is the left or bottom edge and 1 the right or top edge. Identical channels (mono) draw a diagonal line from the bottom left to the top right, out-of-phase channels draw the opposite diagonal, and wide stereo material fills the shape. With no Source set the signal is silence and a single point in the middle is drawn.

Fields

Name Type Default Description
Source Reference to IWorldAudioDataSource null The audio to draw.
HistoryLength Float 0.025 Seconds of audio drawn. 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