Class TuningBankSelectParameter
Tuning Bank Select registered parameter.
Inherited Members
Namespace: Melanchall.DryWetMidi.Interaction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class TuningBankSelectParameter : RegisteredParameter, ITimedObject, INotifyTimeChanged
Constructors
TuningBankSelectParameter()
Initializes a new instance of the TuningBankSelectParameter.
Declaration
public TuningBankSelectParameter()
TuningBankSelectParameter(SevenBitNumber)
Initializes a new instance of the TuningBankSelectParameter with the specified
exact bank number.
Declaration
public TuningBankSelectParameter(SevenBitNumber bankNumber)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | bankNumber | The bank number. |
TuningBankSelectParameter(SevenBitNumber, ParameterValueType)
Initializes a new instance of the TuningBankSelectParameter with the specified
bank number and type of this number.
Declaration
public TuningBankSelectParameter(SevenBitNumber bankNumber, ParameterValueType valueType)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | bankNumber | The bank number. |
ParameterValueType | valueType | The type of parameter's data which defines whether it represents exact value, increment or decrement. |
Properties
BankNumber
Gets or sets the bank number.
Declaration
public SevenBitNumber BankNumber { 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. |