Struct KeyModifier

Namespace
SpessaSharp.Synthesizer.Engine
Assembly
SpessaSharp.dll
public record struct KeyModifier : IEquatable<KeyModifier>
Implements
Inherited Members

Constructors

KeyModifier(int, MidiPatch, float)

public KeyModifier(int Velocity, MidiPatch Patch, float Gain)

Parameters

Velocity int

The new override velocity. -1 means unchanged.

Patch MidiPatch

The MIDI patch this key uses. -1 on any property means unchanged.

Gain float

Linear gain override for the voice.

Fields

Default

public static readonly KeyModifier Default

Field Value

KeyModifier

Properties

Gain

Linear gain override for the voice.

public float Gain { readonly get; set; }

Property Value

float

Patch

The MIDI patch this key uses. -1 on any property means unchanged.

public MidiPatch Patch { readonly get; set; }

Property Value

MidiPatch

Velocity

The new override velocity. -1 means unchanged.

public int Velocity { readonly get; set; }

Property Value

int