spessasynth_core documentation
    Preparing search index...

    Interface GlobalMIDIParameter

    Global MIDI Parameters are MIDI-only parameters that affect the entire synthesizer.

    They are MIDI Parameters, meaning that they can only be changed via MIDI messages, and not via the API. They get reset via MIDI reset messages.

    DEFAULT_GLOBAL_MIDI_PARAMETERS is provided with the library, containing the defaults.

    They also have an associated event (GlobalMIDIParameterChangeEvent) and can be locked.

    Examples:

    • system
    • keyShift
    interface GlobalMIDIParameter {
        fineTune: number;
        keyShift: number;
        pan: number;
        system: MIDISystem;
        volume: number;
    }
    Index
    fineTune: number

    The global tuning in cents.

    keyShift: number

    The global key shift in semitones.

    pan: number

    The master pan. From -1 (left) to 1 (right). 0 is center.

    This uses the cosine panning law, so the perceived loudness remains constant as the pan changes.

    system: MIDISystem

    The currently enabled MIDI system used by the synthesizer. It changes how the synthesizer behaves, including things such as effects or bank selection.

    It can be changed with a System Exclusive reset message. (GM, GM2, GS, XG)

    volume: number

    The master volume. From 0 (silent) to 1 (full volume).