spessasynth_lib documentation
    Preparing search index...

    Class LibMIDIChannel

    Represents a single MIDI channel within a BasicSynthesizer.

    Index
    • get midiParameters(): Readonly<ChannelMIDIParameter>

      The ChannelMIDIParameters of this channel. These are only editable via MIDI messages.

      Returns Readonly<ChannelMIDIParameter>

    • get patch(): Readonly<MIDIPatchFull>

      The currently selected MIDI patch of the channel. Note that the exact matching preset may not be available, but this represents exactly what MIDI asks for.

      Returns Readonly<MIDIPatchFull>

    • get systemParameters(): Readonly<ChannelSystemParameter>

      The ChannelSystemParameters of this channel. These are only editable via the API.

      Returns Readonly<ChannelSystemParameter>

    • Causes this MIDI channel to ignore controller messages for the given controller number.

      Parameters

      • controller: MIDIController

        0-127 MIDI CC number.

      • isLocked: boolean

        True if locked, false if unlocked.

      Returns void

    • Locks or unlocks a given ChannelMIDIParameter. This prevents any changes to it until it's unlocked.

      Type Parameters

      • P extends keyof ChannelMIDIParameter

      Parameters

      • parameter: P

        The channel MIDI parameter to lock.

      • isLocked: boolean

        If the parameter should be locked.

      Returns void

    • Sets a ChannelSystemParameter of the channel.

      Type Parameters

      • P extends keyof ChannelSystemParameter

      Parameters

      • parameter: P

        The type of the parameter to set.

      • value: ChannelSystemParameter[P]

        The value to set for the parameter.

      Returns void