Search Results for

    Show / Hide Table of Contents

    Class PianoRollAction

    Provides a custom action for piano roll. More info in the Pattern: Piano roll: Customization article.
    Inheritance
    object
    PianoRollAction
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Composing
    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
    Type Name Description
    char symbol Symbol to trigger the action.
    Action<PatternBuilder, PianoRollActionContext> action Action to execute on the symbol.
    Returns
    Type Description
    PianoRollAction An instance of the PianoRollAction that holds information of what to do when the symbol is encountered.
    In this article
    Back to top 2025 / Generated by DocFX