Table of Contents

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

Size

Filled

Fills between the trace and the center line.

public bool Filled { get; set; }

Property Value

bool

Gain

Vertical gain (1 = ±1.0 full height).

public float Gain { get; set; }

Property Value

float

Glow

Draws a soft glow under the trace.

public bool Glow { get; set; }

Property Value

bool

IsFrozen

Stops updating (holds the current trace).

public bool IsFrozen { get; set; }

Property Value

bool

LineThickness

Trace thickness.

public float LineThickness { get; set; }

Property Value

float

ShowGrid

Draws the grid.

public bool ShowGrid { get; set; }

Property Value

bool

Source

Sample source (null = flat line).

[Browsable(false)]
public AudioRingBuffer? Source { get; set; }

Property Value

AudioRingBuffer

TraceColor

Trace color (null = theme accent).

public Color? TraceColor { get; set; }

Property Value

Color?

Trigger

Aligns the trace on a rising zero crossing (stable display of periodic signals).

public bool Trigger { get; set; }

Property Value

bool

TriggerLevel

Trigger level.

public float TriggerLevel { get; set; }

Property Value

float

WindowSamples

Number of samples across the width.

public int WindowSamples { get; set; }

Property Value

int

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

dc DrawingContext
widget Rect
style VectorStyle