Re: [fluid-dev] Intercepting midi events

2018-08-12 Thread Christopher Leger
Hey, just wanted to say that I found a solution to midi events being dropped from my midi keyboard. It randomly causes notes to stay on and sometimes notes don't play. I tested my friend's nice $1,000 midi keyboard with my setup and the problem went away, no midi events were dropped. Everything wo

Re: [fluid-dev] Intercepting midi events

2018-06-15 Thread Tom M.
> How would I be sure my program has realtime prio? fluidsynth takes care of this, unless you see warnings like: fluidsynth: warning: Failed to set thread to high priority But it really sounds more like a problem of arriving midi events to me. Tom

Re: [fluid-dev] Intercepting midi events

2018-06-13 Thread Ceresa Jean-Jacques
Message du 13/06/18 21:52 > De : "Christopher Leger" > A : "FluidSynth mailing list" > Copie à : > Objet : Re: [fluid-dev] Intercepting midi events > > >   It may have been the threads I was seeing in top instead of processes. I guess it won't he

Re: [fluid-dev] Intercepting midi events

2018-06-13 Thread Christopher Leger
It may have been the threads I was seeing in top instead of processes. I guess it won't help my problem but I still found it suspicious that setting the cores to 4 in the fluidsynth from GitHub generated four extra rows in top where as in my program I notice no difference in top from the core setti

Re: [fluid-dev] Intercepting midi events

2018-06-08 Thread Ceresa Jean-Jacques
king forward for your report, thanks.   jjc. > Message du 08/06/18 05:21 > De : "Christopher Leger" > A : "Tom M." > Copie à : "FluidSynth mailing list" > Objet : Re: [fluid-dev] Intercepting midi events > > Thanks Tom for realizing my very

Re: [fluid-dev] Intercepting midi events

2018-06-07 Thread Tom M.
Make sure your app actually has permission to run fluidsynth in realtime prio. Try using a different midi driver, like hooking up alsa_raw through jack. > (compiled from the original git source code) Try stable 1.1.11. Tom ___ fluid-dev mailing list

Re: [fluid-dev] Intercepting midi events

2018-06-07 Thread Ben Gonzales
Hi Chris. I've been running my EWI through a RPi for a while now, but it's going to an external synth. The RPi is really just a router. What I found was that using input via USB I was losing note-offs every now an then. I had to add an extra few lines in the router program to add an extra note

Re: [fluid-dev] Intercepting midi events

2018-06-07 Thread Christopher Leger
Thanks Tom for realizing my very stupid mistake! I've made some changes and I have got almost everything working how I wanted it to. However, I have one issue and this problem happens only when I am running Fluidsynth on my Raspberry Pi 3. When I am jamming away on a lot of keys at one time on the

Re: [fluid-dev] Intercepting midi events

2018-06-03 Thread Tom M.
> #include "fluid_midi.h" > #include "fluid_sfont.h" I will never understand why people keep including fluidsynths private headers. And I'm so tired of repeating that this way of programming is undefined behaviour as there is no API / ABI stability guarantee for internal data types and function

Re: [fluid-dev] Intercepting midi events

2018-06-03 Thread Christopher Leger
Ok, I made the changes but it not working for me. Here is a program which is supposed to synthesize the midi input and print note on and note off events: #include #include #include #include "fluid_midi.h" #include "fluid_sfont.h" int intercept(void* data, fluid_midi_event_t* event); int mai

Re: [fluid-dev] Intercepting midi events

2018-06-03 Thread Tom M.
Without any code it's hard to tell. However the order looks wrong to me, as the synth is not setup when creating the midi driver. You should instead: 1. create settings 2. set midi driver settings 3. set audio driver settings 4. create synth 5. load soundfont 6. create audio driver 7. crea

Re: [fluid-dev] Intercepting midi events

2018-06-03 Thread Christopher Leger
Hi, So I got the midi file playback working how I want but now I am having a bit of a problem with the midi driver. I got the settings of the midi driver correct so that midi events are being received by Fluidsynth. However, they aren't getting passed to the synth properly. I am able to print out

Re: [fluid-dev] Intercepting midi events

2018-05-19 Thread Christopher Leger
Perfect! This seems like what I have been looking for. I'll work at this and be sure to ask if I have an questions. -Chris On Sat, May 19, 2018 at 3:28 PM, Tom M. wrote: > For intercepting events from the midi player, use > fluid_player_set_playback_callback() to register your custom processing

Re: [fluid-dev] Intercepting midi events

2018-05-19 Thread Tom M.
For intercepting events from the midi player, use fluid_player_set_playback_callback() to register your custom processing function of type handle_midi_event_func_t. For intercepting events from the midi driver (your keyboard), create the midi driver with new_fluid_midi_driver() and pass a proce

[fluid-dev] Intercepting midi events

2018-05-19 Thread Christopher Leger
Hi All, I am trying to setup midi based special effects that will be synchronized with midi events generated from using the midi player or midi events generated from using a midi keyboard. I've done a lot of reading and I don't believe the API has anything that will allow me to do this. I am tryi