Class PitchBendSensitivityParameter
Pitch Bend Sensitivity registered parameter.
Inherited Members
Namespace: Melanchall.DryWetMidi.Interaction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class PitchBendSensitivityParameter : RegisteredParameter, ITimedObject, INotifyTimeChanged
Constructors
PitchBendSensitivityParameter()
Initializes a new instance of the PitchBendSensitivityParameter.
Declaration
public PitchBendSensitivityParameter()
PitchBendSensitivityParameter(SevenBitNumber, SevenBitNumber)
Initializes a new instance of the PitchBendSensitivityParameter with the specified
exact number of half-steps and cents.
Declaration
public PitchBendSensitivityParameter(SevenBitNumber halfSteps, SevenBitNumber cents)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | halfSteps | The number of half-steps of the sensitivity range. |
SevenBitNumber | cents | The number of cents of the sensitivity range. |
PitchBendSensitivityParameter(SevenBitNumber, SevenBitNumber, ParameterValueType)
Initializes a new instance of the ModulationDepthRangeParameter with the specified
number of half-steps and cents and type of the data.
Declaration
public PitchBendSensitivityParameter(SevenBitNumber halfSteps, SevenBitNumber cents, ParameterValueType valueType)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | halfSteps | The number of half-steps of the sensitivity range. |
SevenBitNumber | cents | the number of cents of the sensitivity range. |
ParameterValueType | valueType | The type of parameter's data which defines whether it represents exact value, increment or decrement. |
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | valueType specified an invalid value. |
Fields
DefaultCents
Represents the default number of cents of the sensitivity range.
Declaration
public static readonly SevenBitNumber DefaultCents
Field Value
Type | Description |
---|---|
SevenBitNumber |
DefaultHalfSteps
Represents the default number of half-steps of the sensitivity range.
Declaration
public static readonly SevenBitNumber DefaultHalfSteps
Field Value
Type | Description |
---|---|
SevenBitNumber |
Properties
Cents
Gets or sets the number of cents of the sensitivity range.
Declaration
public SevenBitNumber Cents { get; set; }
Property Value
Type | Description |
---|---|
SevenBitNumber |
HalfSteps
Gets or sets the number of half-steps of the sensitivity range.
Declaration
public SevenBitNumber HalfSteps { 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. |