[LAD] ?==?utf-8?q? further in on midi2udp/tcp

Ralf Mattes rm at mh-freiburg.de
Tue Sep 11 19:19:19 CEST 2018


 
Am Dienstag, 11. September 2018 19:13 CEST, Len Ovens <len at ovenwerks.net> schrieb: 
 
> On Tue, 11 Sep 2018, Jonathan E. Brickman wrote:
> 
> > The current software thought is to have both sides have two threads: one thread
> > running callback to JACK, the other handling UDP/TCP, the threads communicating
> > by Python FIFO queues, the UDP/TCP thread being constrained by 31.5kHz wait-state
> 
> Use jack ring buffers for thread communication. They are rt safe. I have 
> used them with a midi to qwerty keyboard bridge. (see: 
> http://www.ovenwerks.net/software/midikb.html )

That's C-code, iirc. The problem with python: the interpreter has a global lock (the
infamous GIL). So, unless you write your jack callback in C/C++ your code might block.

 Cheers, RalfD
 
> 
> 
> --
> Len Ovens
> www.ovenwerks.net
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.linuxaudio.org
> https://lists.linuxaudio.org/listinfo/linux-audio-dev
 
 
 
 


More information about the Linux-audio-dev mailing list