Author Topic: BASS_MIDI_StreamSetFonts limits  (Read 122 times)

gicci

  • Posts: 45
BASS_MIDI_StreamSetFonts limits
« on: 29 Jan '18 - 12:34 »
I am implementing the configuration of SoundFonts by users in my app, giving the possibility to select a list of SF files which are then applied by using BASS_MIDI_FONTEX on the MIDI files.
If I would like the user to filter out instruments from each SoundFont, would this mean that I have to put an entry for each instrument which shall be active, pointing to the same SoundFont id (populating the spreset and sbank)? This would end up in a list which could be very long, is there any limit on the number of entries or performance penalties?
Thank you.

Ian @ un4seen

  • Administrator
  • Posts: 20767
Re: BASS_MIDI_StreamSetFonts limits
« Reply #1 on: 29 Jan '18 - 15:08 »
I think you would indeed need to include separate BASS_MIDI_FONTEX entries for each preset that you want to keep in that case. There isn't a fixed limit to the number of entries that you can have, and it shouldn't really have any effect on performance either; the list will be searched once for each preset that's used (the first time it's used).