Re: [fluid-dev] fluidsynth export single midi channel to wav

2020-10-24 Thread Ceresa Jean-Jacques
Hi, >You can use fluid_player_set_playback_callback().   Excellent, I completly forgot that we could intercept MIDI events send by the player to the synth. That means that it could be possible to mute or solo events based on the event's MIDI channel. So there is no need to edit the MIDI file

Re: [fluid-dev] fluidsynth export single midi channel to wav

2020-10-24 Thread Tom M. via fluid-dev
You can use fluid_player_set_playback_callback() to interfere midi events in a custom processing function, in which you only send specific events to the synth by using fluid_synth_handle_midi_event(). Tom ___ fluid-dev mailing list fluid-dev@nongnu.org

Re: [fluid-dev] fluidsynth export single midi channel to wav

2020-10-23 Thread Ceresa Jean-Jacques
Hi vladimir, >jChannel is the midi channel number(1-16). No, in fluidsynth API MIDI channel parameter are zero based (0 to 15).   >Notice these 2 lines: I'm not really sure whether I'm doing it right. >(1) fluid_synth_reset_basic_channel(synth, -1); >(2) fluid_synth_set_basic_channel(synth, jCh

[fluid-dev] fluidsynth export single midi channel to wav

2020-10-23 Thread Владимир Рыжак
Hi! I'm very new to the music tech so bear with me. There are 16 channels in a midi file. I'm trying to convert only 1 channel from a midi file to wav. Here is how it works now: extern "C" JNIEXPORT void JNICALL Java_com_test_MainActivity_convertMidiToWav(JNIEnv* env, jobject, jstring jSoundfon