Search Results for

    Show / Hide Table of Contents

    Class PianoRollSettings

    Settings to control handling of a piano roll be the PianoRoll(string, PianoRollSettings) method. More info in the Pattern: Piano roll: Customization article.
    Inheritance
    object
    PianoRollSettings
    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 PianoRollSettings

    Properties

    CustomActions

    Gets or sets a dictionary which maps specified symbols to custom actions.
    Declaration
    public Dictionary<char, Action<Note, PatternBuilder>> CustomActions { get; set; }
    Property Value
    Type Description
    Dictionary<char, Action<Note, PatternBuilder>>
    Exceptions
    Type Condition
    ArgumentOutOfRangeException One of the following errors occurred:
    • Actions keys contain the space (' ') symbol which is prohibited.
    • Actions keys contain the symbol defined by the SingleCellNoteSymbol property which is prohibited.
    • Actions keys contain the symbol defined by the MultiCellNoteStartSymbol property which is prohibited.
    • Actions keys contain the symbol defined by the MultiCellNoteEndSymbol property which is prohibited.

    MultiCellNoteEndSymbol

    Gets or sets a symbol which means the end of a multi-cell note. The default value is ']'.
    Declaration
    public char MultiCellNoteEndSymbol { get; set; }
    Property Value
    Type Description
    char
    Exceptions
    Type Condition
    ArgumentException Space (' ') is the prohibted character.
    ArgumentOutOfRangeException One of the following errors occurred:
    • The same symbol defined by the SingleCellNoteSymbol property.
    • The same symbol defined by the MultiCellNoteStartSymbol property.
    • The symbol used for a custom action wuthin the CustomActions.

    MultiCellNoteStartSymbol

    Gets or sets a symbol which means the start of a multi-cell note. The default value is '['.
    Declaration
    public char MultiCellNoteStartSymbol { get; set; }
    Property Value
    Type Description
    char
    Exceptions
    Type Condition
    ArgumentException Space (' ') is the prohibted character.
    ArgumentOutOfRangeException One of the following errors occurred:
    • The same symbol defined by the SingleCellNoteSymbol property.
    • The same symbol defined by the MultiCellNoteEndSymbol property.
    • The symbol used for a custom action wuthin the CustomActions.

    SingleCellNoteSymbol

    Gets or sets a symbol which means a single-cell note. The default value is '|'.
    Declaration
    public char SingleCellNoteSymbol { get; set; }
    Property Value
    Type Description
    char
    Exceptions
    Type Condition
    ArgumentException Space (' ') is the prohibted character.
    ArgumentOutOfRangeException One of the following errors occurred:
    • The same symbol defined by the MultiCellNoteStartSymbol property.
    • The same symbol defined by the MultiCellNoteEndSymbol property.
    • The symbol used for a custom action wuthin the CustomActions.
    In this article
    Back to top 2024 / Generated by DocFX