Search Results for

    Show / Hide Table of Contents

    Class ControlUtilities

    Set of extension methods for ControlChangeEvent event.
    Inheritance
    object
    ControlUtilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Core
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public static class ControlUtilities

    Methods

    AsSevenBitNumber(ControlName)

    Converts ControlName to the corresponding value of the SevenBitNumber type.
    Declaration
    public static SevenBitNumber AsSevenBitNumber(this ControlName controlName)
    Parameters
    Type Name Description
    ControlName controlName ControlName to convert to SevenBitNumber.
    Returns
    Type Description
    SevenBitNumber SevenBitNumber representing the controlName.
    Exceptions
    Type Condition
    InvalidEnumArgumentException controlName specified an invalid value.

    GetControlChangeEvent(ControlName, SevenBitNumber, FourBitNumber)

    Gets an instance of the ControlChangeEvent corresponding to the specified controller.
    Declaration
    public static ControlChangeEvent GetControlChangeEvent(this ControlName controlName, SevenBitNumber controlValue, FourBitNumber channel)
    Parameters
    Type Name Description
    ControlName controlName ControlName to get an event for.
    SevenBitNumber controlValue Controller value to set to event.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    ControlChangeEvent An instance of the ControlChangeEvent corresponding to the controlName.
    Exceptions
    Type Condition
    InvalidEnumArgumentException controlName specified an invalid value.

    GetControlName(ControlChangeEvent)

    Gets name of the controller presented by an instance of ControlChangeEvent.
    Declaration
    public static ControlName GetControlName(this ControlChangeEvent controlChangeEvent)
    Parameters
    Type Name Description
    ControlChangeEvent controlChangeEvent Control Change event to get controller name of.
    Returns
    Type Description
    ControlName Controller name of the controlChangeEvent event.
    Exceptions
    Type Condition
    ArgumentNullException controlChangeEvent is null.
    In this article
    Back to top 2024 / Generated by DocFX