Skip to content

Commit

Permalink
fix #269937: implement proper preset fallback when using instruments …
Browse files Browse the repository at this point in the history
…on banks > 0
  • Loading branch information
lasconic committed Mar 10, 2018
1 parent ee37c81 commit 5f100af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fluid/fluid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ void Fluid::program_change(int chan, int prognum)
if (!preset) {
//Suppressing qDebug because might not have soundfont if using MIDI out only.
//qDebug("Fluid::program_change: preset %d %d not found", banknum, prognum);
preset = find_preset(0, 0);
preset = find_preset(0, prognum);
if (!preset)
preset = find_preset(0, 0);
}

unsigned sfont_id = preset? preset->sfont->id() : 0;
Expand Down

0 comments on commit 5f100af

Please sign in to comment.