spessasynth_core documentation
    Preparing search index...

    Class SoundBankManager

    Manages the sound banks of the parent SpessaSynthProcessor.

    It can be accessed through SpessaSynthProcessor.soundBankManager.

    Index
    soundBankList: SoundBankManagerListEntry[] = []

    All the sound banks, ordered from the most important to the least.

    • get priorityOrder(): string[]

      The current sound bank priority order.

      Presets in the first bank override the second bank if they have the same MIDI patch and so on.

      Returns string[]

      The IDs of the sound banks in the current order.

    • set priorityOrder(newList: string[]): void

      The current sound bank priority order.

      Presets in the first bank override the second bank if they have the same MIDI patch and so on.

      Parameters

      • newList: string[]

        The new order of sound bank IDs.

      Returns void

    • Adds a new sound bank with a given ID, or replaces an existing one.

      Parameters

      • bank: BasicSoundBank

        The sound bank to add.

      • id: string

        The unique ID to assign to the sound bank. If a sound bank with this ID already exists, it will be replaced.

      • bankOffset: number = 0

        The bank offset of the sound bank. Offsets the bank MSB value of all presets in this sound bank.

      Returns void

    • This method removes a sound bank with a given ID from the sound bank list.

      Parameters

      • id: string

        The ID of the sound bank to delete.

      Returns void

      Error An error if there's no sound bank with the given ID.