Class RegisteredParameter
Represents MIDI registered parameter (RPN).
Inheritance
RegisteredParameter
Inherited Members
Namespace: Melanchall.DryWetMidi.Interaction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public abstract class RegisteredParameter : Parameter, ITimedObject, INotifyTimeChanged
Constructors
RegisteredParameter(RegisteredParameterType)
Initializes a new instance of the RegisteredParameter with the specified
type of a parameter.
Declaration
protected RegisteredParameter(RegisteredParameterType parameterType)
Parameters
Type | Name | Description |
---|---|---|
RegisteredParameterType | parameterType | The type of parameter. |
Properties
ParameterType
Gets the type of the current parameter.
Declaration
public RegisteredParameterType ParameterType { get; }
Property Value
Type | Description |
---|---|
RegisteredParameterType |
Methods
GetData(out SevenBitNumber, out Nullable<SevenBitNumber>)
Returns MSB and LSB that represent data of the current parameter.
Declaration
protected abstract void GetData(out SevenBitNumber msb, out SevenBitNumber? lsb)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | msb | MSB of parameter's data. |
Nullable<SevenBitNumber> | lsb | LSB of parameter's data. |
GetIncrementStepsCount()
Returns the number of increment/decrement steps based on the value of the
current parameter.
Declaration
protected abstract int GetIncrementStepsCount()
Returns
Type | Description |
---|---|
Int32 | The number of increment/decrement steps based on the value of the current parameter. |
GetTimedEvents()
Returns the collection of TimedEvent objects that represent the current
parameter. In fact, each TimedEvent object will contain ControlChangeEvent event.
Declaration
public override IEnumerable<TimedEvent> GetTimedEvents()
Returns
Type | Description |
---|---|
IEnumerable<TimedEvent> | Collection of TimedEvent objects that represent the current parameter. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents the current object. |