truj / midica

A Music programming language. Translates source code into MIDI. Includes a player. Supports MIDI-Karaoke. Includes a MIDI analyzer.
https://www.midica.org/
Mozilla Public License 2.0
113 stars 13 forks source link

Check if soundfont is already loaded before loading it again #20

Closed truj closed 5 years ago

truj commented 5 years ago

In the MidicaPLParser, when a SOUNDFONT command is found, check if this soundfont is already loaded. In this case, don't load it again. Don't allow more than one SOUNDFONT command in the source.