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
VelocityintThe new override velocity. -1 means unchanged.
PatchMidiPatchThe MIDI patch this key uses. -1 on any property means unchanged.
GainfloatLinear gain override for the voice.
Fields
Default
public static readonly KeyModifier Default
Field Value
Properties
Gain
Linear gain override for the voice.
public float Gain { readonly get; set; }
Property Value
Patch
The MIDI patch this key uses. -1 on any property means unchanged.
public MidiPatch Patch { readonly get; set; }
Property Value
Velocity
The new override velocity. -1 means unchanged.
public int Velocity { readonly get; set; }