spessasynth_core documentation
    Preparing search index...

    Class MIDIChannel

    This class represents a single MIDI channel within a SpessaSynthProcessor.

    In terms of old sound modules, it can also be considered a "Part", since the receiving MIDI channel number can be changed.

    Index
    channel: number

    The channel's number (0-based index).

    patch: MIDIPatch = ...

    The currently selected MIDI patch of the channel.

    The preset currently assigned to the channel. This property can be set to directly replace a preset on this channel.

    xgInsertionAssigned: boolean = false

    If true, this skips sends as they all go through insertion. Set by SpessaSynthProcessor.

    • get midiControllers(): Readonly<Int16Array<ArrayBufferLike>>

      An array of MIDI controllers for the channel. This array is used to store the state of various MIDI controllers such as volume, pan, modulation, etc.

      Returns Readonly<Int16Array<ArrayBufferLike>>

    • Toggles drums on the channel and keeps the current program number. Executes a program change so the change is immediately audible.

      Parameters

      • isDrum: boolean

        If the channel should be a drum channel or not.

      Returns void