Class PianoRollAction
Inheritance
PianoRollAction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class PianoRollAction
Methods
CreateMultiCell(char, char, Action<PatternBuilder, PianoRollActionContext>)
Creates a multi-cell action.
Declaration
public static PianoRollAction CreateMultiCell(char startSymbol, char endSymbol, Action<PatternBuilder, PianoRollActionContext> action)
Parameters
Type |
Name |
Description |
char |
startSymbol |
Symbol to trigger the action. Cell time of the symbol
defines the start time of the action. |
char |
endSymbol |
Symbol to finish the action, so cell time of the symbol
defines the end time of the action. |
Action<PatternBuilder, PianoRollActionContext> |
action |
Action to execute. |
Returns
Type |
Description |
PianoRollAction |
An instance of the PianoRollAction that holds information
of what to do when cells span between the startSymbol and
endSymbol is encountered. |
CreateSingleCell(char, Action<PatternBuilder, PianoRollActionContext>)
Creates a single-cell action.
Declaration
public static PianoRollAction CreateSingleCell(char symbol, Action<PatternBuilder, PianoRollActionContext> action)
Parameters
Returns