Hi, I was sending some bank select controller commands to FluidSynth and needed better output from the 'channels -verbose' command to see what was going on. The attached patch improves output for channels without an active preset.
Ken
Index: fluidsynth/src/fluid_cmd.c =================================================================== --- fluidsynth/src/fluid_cmd.c (revision 155) +++ fluidsynth/src/fluid_cmd.c (working copy) @@ -510,7 +510,16 @@ for (i = 0; i < fluid_synth_count_midi_channels(synth); i++) { preset = fluid_synth_get_channel_preset(synth, i); - if (preset == NULL) fluid_ostream_printf(out, "chan %d, no preset\n", i); + if (preset == NULL) { + if (verbose) { + fluid_ostream_printf(out, "chan %d, sfont %d, bank %d, prog %d, no preset\n", i, + fluid_channel_get_sfontnum(synth->channel[i]), + fluid_channel_get_banknum(synth->channel[i]), + fluid_channel_get_prognum(synth->channel[i])); + + } + else fluid_ostream_printf(out, "chan %d, no preset\n", i); + } else if (!verbose) fluid_ostream_printf(out, "chan %d, %s\n", i, fluid_preset_get_name(preset)); else fluid_ostream_printf(out, "chan %d, sfont %d, bank %d, preset %d, %s\n", i, fluid_sfont_get_id( preset->sfont),
_______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/fluid-dev