Class NotePlaybackData
Data related to MIDI note.
Inherited Members
Namespace: Melanchall.DryWetMidi.Multimedia
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class NotePlaybackData
Constructors
NotePlaybackData(SevenBitNumber, SevenBitNumber, SevenBitNumber, FourBitNumber)
Initializes a new instance of the NotePlaybackData with the specified
note number, velocity, off velocity and channel.
Declaration
public NotePlaybackData(SevenBitNumber noteNumber, SevenBitNumber velocity, SevenBitNumber offVelocity, FourBitNumber channel)
Parameters
| Type | Name | Description |
|---|---|---|
| SevenBitNumber | noteNumber | Note number. |
| SevenBitNumber | velocity | Velocity of Note On event of the note. |
| SevenBitNumber | offVelocity | Velocity of Note Off event of the note. |
| FourBitNumber | channel | Note channel. |
Fields
SkipNote
Data which instructs playback to skip note.
Declaration
public static readonly NotePlaybackData SkipNote
Field Value
| Type | Description |
|---|---|
| NotePlaybackData |
Properties
Channel
Gets the note channel.
Declaration
public FourBitNumber Channel { get; }
Property Value
| Type | Description |
|---|---|
| FourBitNumber |
Remarks
Channel is a zero-based number in DryWetMIDI, valid values are from
0 to 15.
Other libraries and software can use one-based channel numbers (i.e.from 1
to 16) so be aware about that: channel 10 in such software will be 9
in DryWetMIDI.NoteNumber
Gets the note number.
Declaration
public SevenBitNumber NoteNumber { get; }
Property Value
| Type | Description |
|---|---|
| SevenBitNumber |
OffVelocity
Gets the velocity of Note Off event of the note.
Declaration
public SevenBitNumber OffVelocity { get; }
Property Value
| Type | Description |
|---|---|
| SevenBitNumber |
Velocity
Gets the velocity of Note On event of the note.
Declaration
public SevenBitNumber Velocity { get; }
Property Value
| Type | Description |
|---|---|
| SevenBitNumber |