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

From: Ralf Mattes <rm@email-addr-hidden-freiburg.de>
Date: Tue Sep 11 2018 - 20:19:19 EEST

 
Am Dienstag, 11. September 2018 19:13 CEST, Len Ovens <len@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@lists.linuxaudio.org
> https://lists.linuxaudio.org/listinfo/linux-audio-dev
 
 
 
 
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Tue Sep 11 20:15:02 2018

This archive was generated by hypermail 2.1.8 : Tue Sep 11 2018 - 20:15:02 EEST