Class TuningProgramChangeParameter
Tuning Program Change registered parameter.
Inherited Members
Namespace: Melanchall.DryWetMidi.Interaction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class TuningProgramChangeParameter : RegisteredParameter, ITimedObject, INotifyTimeChanged
Constructors
TuningProgramChangeParameter()
Initializes a new instance of the TuningProgramChangeParameter.
Declaration
public TuningProgramChangeParameter()
TuningProgramChangeParameter(SevenBitNumber)
Initializes a new instance of the TuningProgramChangeParameter with the specified
exact program number.
Declaration
public TuningProgramChangeParameter(SevenBitNumber programNumber)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | programNumber | The program number. |
TuningProgramChangeParameter(SevenBitNumber, ParameterValueType)
Initializes a new instance of the TuningProgramChangeParameter with the specified
program number and type of this number.
Declaration
public TuningProgramChangeParameter(SevenBitNumber programNumber, ParameterValueType valueType)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | programNumber | The program number. |
ParameterValueType | valueType | The type of parameter's data which defines whether it represents exact value, increment or decrement. |
Properties
ProgramNumber
Gets or sets the program number.
Declaration
public SevenBitNumber ProgramNumber { get; set; }
Property Value
Type | Description |
---|---|
SevenBitNumber |
Methods
Clone()
Clones object by creating a copy of it.
Declaration
public override ITimedObject Clone()
Returns
Type | Description |
---|---|
ITimedObject | Copy of the object. |
Overrides
GetData(out SevenBitNumber, out SevenBitNumber?)
Returns MSB and LSB that represent data of the current parameter.
Declaration
protected override void GetData(out SevenBitNumber msb, out SevenBitNumber? lsb)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | msb | MSB of parameter's data. |
SevenBitNumber? | lsb | LSB of parameter's data. |
Overrides
GetIncrementStepsCount()
Returns the number of increment/decrement steps based on the value of the
current parameter.
Declaration
protected override int GetIncrementStepsCount()
Returns
Type | Description |
---|---|
int | The number of increment/decrement steps based on the value of 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. |