Class NPlugParameter
IParameter view of an NPlug NPlug.AudioParameter: bind any PluginUI control to a VST3 parameter. Obtain instances from NPlugParameterSet (one per editor), which raises Changed for host automation, preset loads and edits.
public sealed class NPlugParameter : IParameter
- Inheritance
-
NPlugParameter
- Implements
- Inherited Members
- Extension Methods
Properties
DefaultNormalizedValue
Default normalized value.
public double DefaultNormalizedValue { get; }
Property Value
Id
VST3 parameter id.
public AudioParameterId Id { get; }
Property Value
- AudioParameterId
IsEditing
true between BeginEdit() and EndEdit().
public bool IsEditing { get; }
Property Value
Name
Display name.
public string Name { get; }
Property Value
NormalizedValue
Current normalized value.
public double NormalizedValue { get; }
Property Value
Parameter
Wrapped NPlug parameter.
public AudioParameter Parameter { get; }
Property Value
- AudioParameter
StepCount
0 = continuous; otherwise number of steps (states − 1).
public int StepCount { get; }
Property Value
Units
Unit label (Hz, dB, %, ms...).
public string Units { get; }
Property Value
Methods
BeginEdit()
Starts an edit gesture.
public void BeginEdit()
EndEdit()
Ends the edit gesture.
public void EndEdit()
PerformEdit(double)
Sets the value during a gesture.
public void PerformEdit(double normalized)
Parameters
normalizeddouble
ToDisplayString(double)
Text for a normalized value (without units).
public string ToDisplayString(double normalized)
Parameters
normalizeddouble
Returns
ToNormalized(double)
Plain → normalized value.
public double ToNormalized(double plain)
Parameters
plaindouble
Returns
ToPlain(double)
Normalized → plain value.
public double ToPlain(double normalized)
Parameters
normalizeddouble
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
TryParse(string, out double)
Parses user text (with or without units) into a normalized value.
public bool TryParse(string text, out double normalized)
Parameters
Returns
Events
Changed
Raised after every value change.
public event Action<IParameter>? Changed