Search Results for

    Show / Hide Table of Contents

    Class PianoRollActionContext

    Provides context for a custom piano roll action. More info in the Pattern: Piano roll: Customization article.
    Inheritance
    object
    PianoRollActionContext
    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 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
    In this article
    Back to top 2025 / Generated by DocFX