Skip to content

Commit e884404

Browse files
committed
Log SysEX System ON Messages
1 parent 724b8c8 commit e884404

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/synth/fluid_synth.c

+12
Original file line numberDiff line numberDiff line change
@@ -2088,6 +2088,10 @@ fluid_synth_sysex(fluid_synth_t *synth, const char *data, int len,
20882088
fluid_synth_api_enter(synth);
20892089
synth->bank_select = FLUID_BANK_STYLE_GM;
20902090
result = fluid_synth_system_reset_LOCAL(synth);
2091+
if(synth->verbose)
2092+
{
2093+
FLUID_LOG(FLUID_INFO, "Processing SysEX GM / GM2 System ON message, bank selection mode is now gm.");
2094+
}
20912095
FLUID_API_RETURN(result);
20922096
}
20932097
return FLUID_OK;
@@ -2104,6 +2108,10 @@ fluid_synth_sysex(fluid_synth_t *synth, const char *data, int len,
21042108
result = fluid_synth_sysex_gs_dt1(synth, data, len, response,
21052109
response_len, avail_response,
21062110
handled, dryrun);
2111+
if(synth->verbose)
2112+
{
2113+
FLUID_LOG(FLUID_INFO, "Processing SysEX GS DT1 message, bank selection mode might have been changed.");
2114+
}
21072115
FLUID_API_RETURN(result);
21082116
}
21092117

@@ -2117,6 +2125,10 @@ fluid_synth_sysex(fluid_synth_t *synth, const char *data, int len,
21172125
result = fluid_synth_sysex_xg(synth, data, len, response,
21182126
response_len, avail_response,
21192127
handled, dryrun);
2128+
if(synth->verbose)
2129+
{
2130+
FLUID_LOG(FLUID_INFO, "Processing SysEX XG message, bank selection mode is now xg.");
2131+
}
21202132
FLUID_API_RETURN(result);
21212133
}
21222134

0 commit comments

Comments
 (0)