Class Oscilloscope
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
Oscilloscope reading an AudioRingBuffer written by the audio thread: window length, rising
zero-crossing trigger, gain, grid, glowing or filled trace. Dense windows are drawn as min/max columns.
iPlug2 IVScopeControl.
public class Oscilloscope : Control
- Inheritance
-
Oscilloscope
- Inherited Members
Constructors
Oscilloscope()
Creates a scope.
public Oscilloscope()
Properties
DefaultSize
Natural size used when no explicit size is given.
protected override Size DefaultSize { get; }
Property Value
Filled
Fills between the trace and the center line.
public bool Filled { get; set; }
Property Value
Gain
Vertical gain (1 = ±1.0 full height).
public float Gain { get; set; }
Property Value
Glow
Draws a soft glow under the trace.
public bool Glow { get; set; }
Property Value
IsFrozen
Stops updating (holds the current trace).
public bool IsFrozen { get; set; }
Property Value
LineThickness
Trace thickness.
public float LineThickness { get; set; }
Property Value
ShowGrid
Draws the grid.
public bool ShowGrid { get; set; }
Property Value
Source
Sample source (null = flat line).
[Browsable(false)]
public AudioRingBuffer? Source { get; set; }
Property Value
TraceColor
Trace color (null = theme accent).
public Color? TraceColor { get; set; }
Property Value
Trigger
Aligns the trace on a rising zero crossing (stable display of periodic signals).
public bool Trigger { get; set; }
Property Value
TriggerLevel
Trigger level.
public float TriggerLevel { get; set; }
Property Value
WindowSamples
Number of samples across the width.
public int WindowSamples { get; set; }
Property Value
Methods
OnAttached()
Called when the element joins a host (subscribe to external events here).
protected override void OnAttached()
OnDetached()
Called when the element leaves its host (unsubscribe here).
protected override void OnDetached()
RenderVector(DrawingContext, Rect, VectorStyle)
Vector rendering of the widget area.
protected override void RenderVector(DrawingContext dc, Rect widget, VectorStyle style)
Parameters
dcDrawingContextwidgetRectstyleVectorStyle