Class NPlugParameterSet
The NPlug parameters of one editor as IParameters. Listens to the model while the editor is open and forwards value changes (automation, presets, edits) to the bound controls.
public sealed class NPlugParameterSet
- Inheritance
-
NPlugParameterSet
- Inherited Members
Constructors
NPlugParameterSet(IParameterEditSink)
Creates the set for a controller.
public NPlugParameterSet(IParameterEditSink sink)
Parameters
sinkIParameterEditSink
Properties
this[AudioParameter]
Wrapper of parameter (created on first use, then cached).
public NPlugParameter this[AudioParameter parameter] { get; }
Parameters
parameterAudioParameter
Property Value
Sink
Edit sink (the controller).
public IParameterEditSink Sink { get; }
Property Value
Methods
Find(AudioParameterId)
Wrapper of the parameter with this id, or null.
public NPlugParameter? Find(AudioParameterId id)
Parameters
idAudioParameterId
Returns
Get(AudioParameter)
Wrapper of parameter (created on first use, then cached).
public NPlugParameter Get(AudioParameter parameter)
Parameters
parameterAudioParameter
Returns
GetSnapshotParameters(bool)
Wrappers of the model's user-editable parameters, in declaration order: what an A/B comparison
(Parameters), an undo point or a randomizer should capture. Read-only, hidden and
program-change parameters are left out, as is the bypass unless includeBypass is set.
public IReadOnlyList<NPlugParameter> GetSnapshotParameters(bool includeBypass = false)
Parameters
includeBypassboolIncludes the bypass parameter.
Returns
- IReadOnlyList<NPlugParameter>
The wrappers.
StartListening()
Starts forwarding model events (editor opened).
public void StartListening()
StopListening()
Stops forwarding model events (editor closed).
public void StopListening()