Search Results for

    Show / Hide Table of Contents

    Class GeneralSoundUtilities

    Provides utilities for General Sound.
    Inheritance
    object
    GeneralSoundUtilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Standards
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public static class GeneralSoundUtilities

    Methods

    AsSevenBitNumber(GeneralSoundBrushPercussion)

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

    AsSevenBitNumber(GeneralSoundCm6432LPercussion)

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

    AsSevenBitNumber(GeneralSoundElectronicPercussion)

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

    AsSevenBitNumber(GeneralSoundJazzPercussion)

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

    AsSevenBitNumber(GeneralSoundOrchestraPercussion)

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

    AsSevenBitNumber(GeneralSoundPercussionSet)

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

    AsSevenBitNumber(GeneralSoundPowerPercussion)

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

    AsSevenBitNumber(GeneralSoundRoomPercussion)

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

    AsSevenBitNumber(GeneralSoundSfxPercussion)

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

    AsSevenBitNumber(GeneralSoundStandardPercussion)

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

    AsSevenBitNumber(GeneralSoundTr808Percussion)

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

    GetNoteOffEvent(GeneralSoundBrushPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOffEvent corresponding to the specified General Sound 'Brush' percussion.
    Declaration
    public static NoteOffEvent GetNoteOffEvent(this GeneralSoundBrushPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundBrushPercussion percussion GeneralSoundBrushPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOffEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOffEvent An instance of the NoteOffEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOffEvent(GeneralSoundCm6432LPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOffEvent corresponding to the specified General Sound 'CM-64/CM-32L' percussion.
    Declaration
    public static NoteOffEvent GetNoteOffEvent(this GeneralSoundCm6432LPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundCm6432LPercussion percussion GeneralSoundCm6432LPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOffEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOffEvent An instance of the NoteOffEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOffEvent(GeneralSoundElectronicPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOffEvent corresponding to the specified General Sound 'Electronic' percussion.
    Declaration
    public static NoteOffEvent GetNoteOffEvent(this GeneralSoundElectronicPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundElectronicPercussion percussion GeneralSoundElectronicPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOffEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOffEvent An instance of the NoteOffEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOffEvent(GeneralSoundJazzPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOffEvent corresponding to the specified General Sound 'Jazz' percussion.
    Declaration
    public static NoteOffEvent GetNoteOffEvent(this GeneralSoundJazzPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundJazzPercussion percussion GeneralSoundJazzPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOffEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOffEvent An instance of the NoteOffEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOffEvent(GeneralSoundOrchestraPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOffEvent corresponding to the specified General Sound 'Orchestra' percussion.
    Declaration
    public static NoteOffEvent GetNoteOffEvent(this GeneralSoundOrchestraPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundOrchestraPercussion percussion GeneralSoundOrchestraPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOffEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOffEvent An instance of the NoteOffEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOffEvent(GeneralSoundPowerPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOffEvent corresponding to the specified General Sound 'Power' percussion.
    Declaration
    public static NoteOffEvent GetNoteOffEvent(this GeneralSoundPowerPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundPowerPercussion percussion GeneralSoundPowerPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOffEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOffEvent An instance of the NoteOffEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOffEvent(GeneralSoundRoomPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOffEvent corresponding to the specified General Sound 'Room' percussion.
    Declaration
    public static NoteOffEvent GetNoteOffEvent(this GeneralSoundRoomPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundRoomPercussion percussion GeneralSoundRoomPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOffEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOffEvent An instance of the NoteOffEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOffEvent(GeneralSoundSfxPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOffEvent corresponding to the specified General Sound 'SFX' percussion.
    Declaration
    public static NoteOffEvent GetNoteOffEvent(this GeneralSoundSfxPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundSfxPercussion percussion GeneralSoundSfxPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOffEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOffEvent An instance of the NoteOffEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOffEvent(GeneralSoundStandardPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOffEvent corresponding to the specified General Sound 'Standard' percussion.
    Declaration
    public static NoteOffEvent GetNoteOffEvent(this GeneralSoundStandardPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundStandardPercussion percussion GeneralSoundStandardPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOffEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOffEvent An instance of the NoteOffEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOffEvent(GeneralSoundTr808Percussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOffEvent corresponding to the specified General Sound 'TR-808' percussion.
    Declaration
    public static NoteOffEvent GetNoteOffEvent(this GeneralSoundTr808Percussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundTr808Percussion percussion GeneralSoundTr808Percussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOffEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOffEvent An instance of the NoteOffEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOnEvent(GeneralSoundBrushPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOnEvent corresponding to the specified General Sound 'Brush' percussion.
    Declaration
    public static NoteOnEvent GetNoteOnEvent(this GeneralSoundBrushPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundBrushPercussion percussion GeneralSoundBrushPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOnEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOnEvent An instance of the NoteOnEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOnEvent(GeneralSoundCm6432LPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOnEvent corresponding to the specified General Sound 'CM-64/CM-32L' percussion.
    Declaration
    public static NoteOnEvent GetNoteOnEvent(this GeneralSoundCm6432LPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundCm6432LPercussion percussion GeneralSoundCm6432LPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOnEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOnEvent An instance of the NoteOnEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOnEvent(GeneralSoundElectronicPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOnEvent corresponding to the specified General Sound 'Electronic' percussion.
    Declaration
    public static NoteOnEvent GetNoteOnEvent(this GeneralSoundElectronicPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundElectronicPercussion percussion GeneralSoundElectronicPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOnEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOnEvent An instance of the NoteOnEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOnEvent(GeneralSoundJazzPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOnEvent corresponding to the specified General Sound 'Jazz' percussion.
    Declaration
    public static NoteOnEvent GetNoteOnEvent(this GeneralSoundJazzPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundJazzPercussion percussion GeneralSoundJazzPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOnEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOnEvent An instance of the NoteOnEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOnEvent(GeneralSoundOrchestraPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOnEvent corresponding to the specified General Sound 'Orchestra' percussion.
    Declaration
    public static NoteOnEvent GetNoteOnEvent(this GeneralSoundOrchestraPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundOrchestraPercussion percussion GeneralSoundOrchestraPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOnEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOnEvent An instance of the NoteOnEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOnEvent(GeneralSoundPowerPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOnEvent corresponding to the specified General Sound 'Power' percussion.
    Declaration
    public static NoteOnEvent GetNoteOnEvent(this GeneralSoundPowerPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundPowerPercussion percussion GeneralSoundPowerPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOnEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOnEvent An instance of the NoteOnEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOnEvent(GeneralSoundRoomPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOnEvent corresponding to the specified General Sound 'Room' percussion.
    Declaration
    public static NoteOnEvent GetNoteOnEvent(this GeneralSoundRoomPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundRoomPercussion percussion GeneralSoundRoomPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOnEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOnEvent An instance of the NoteOnEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOnEvent(GeneralSoundSfxPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOnEvent corresponding to the specified General Sound 'SFX' percussion.
    Declaration
    public static NoteOnEvent GetNoteOnEvent(this GeneralSoundSfxPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundSfxPercussion percussion GeneralSoundSfxPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOnEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOnEvent An instance of the NoteOnEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOnEvent(GeneralSoundStandardPercussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOnEvent corresponding to the specified General Sound 'Standard' percussion.
    Declaration
    public static NoteOnEvent GetNoteOnEvent(this GeneralSoundStandardPercussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundStandardPercussion percussion GeneralSoundStandardPercussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOnEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOnEvent An instance of the NoteOnEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetNoteOnEvent(GeneralSoundTr808Percussion, SevenBitNumber, FourBitNumber)

    Gets an instance of the NoteOnEvent corresponding to the specified General Sound 'TR-808' percussion.
    Declaration
    public static NoteOnEvent GetNoteOnEvent(this GeneralSoundTr808Percussion percussion, SevenBitNumber velocity, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundTr808Percussion percussion GeneralSoundTr808Percussion to get an event for.
    SevenBitNumber velocity Velocity of the NoteOnEvent.
    FourBitNumber channel Channel an event should be created for.
    Returns
    Type Description
    NoteOnEvent An instance of the NoteOnEvent corresponding to the specified percussion.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussion specified an invalid value.

    GetPercussionSetEvents(GeneralSoundPercussionSet, FourBitNumber)

    Gets MIDI events sequence to switch to the specified General Sound percussion set.
    Declaration
    public static IEnumerable<MidiEvent> GetPercussionSetEvents(this GeneralSoundPercussionSet percussionSet, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundPercussionSet percussionSet GeneralSoundPercussionSet to get events for.
    FourBitNumber channel Channel events should be created for.
    Returns
    Type Description
    IEnumerable<MidiEvent> MIDI events sequence to switch to the percussionSet.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussionSet specified an invalid value.

    GetProgramEvent(GeneralSoundPercussionSet, FourBitNumber)

    Gets Program Change event corresponding to the specified General Sound percussion set.
    Declaration
    public static MidiEvent GetProgramEvent(this GeneralSoundPercussionSet percussionSet, FourBitNumber channel)
    Parameters
    Type Name Description
    GeneralSoundPercussionSet percussionSet GeneralSoundPercussionSet to get event for.
    FourBitNumber channel Channel event should be created for.
    Returns
    Type Description
    MidiEvent Program Change event corresponding to the percussionSet.
    Exceptions
    Type Condition
    InvalidEnumArgumentException percussionSet specified an invalid value.
    In this article
    Back to top 2025 / Generated by DocFX