Class PianoRollActionContext
Provides context for a custom piano roll action. More info in the
Pattern: Piano roll: Customization article.
Inherited Members
Namespace: Melanchall.DryWetMidi.Composing
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class PianoRollActionContext
Properties
CellsNumber
Gets the number of cells an action should take into account. For
a single-cell action this value is always
1
.Declaration
public int CellsNumber { get; }
Property Value
Type | Description |
---|---|
int |
Length
Gets the length (duration) of a cells span. The number of cells within the span is CellsNumber.
The type of returned value is defined by the type of the NoteLength
property value.
Declaration
public ITimeSpan Length { get; }
Property Value
Type | Description |
---|---|
ITimeSpan |
Note
Get the note is being processed by the piano roll engine.
Declaration
public Note Note { get; }
Property Value
Type | Description |
---|---|
Note |