Discussion:
[LAD] midi2tcp and tcp2midi, working prototype
Jonathan E. Brickman
2018-09-06 12:43:20 UTC
Permalink
It is working as here:

https://github.com/ponderworthy/midi2tcp

and quite well. Haven't come up with a single reason to make it more
complicated, beyond much more careful timeout handling. It will need
to be able to destroy its own socket and recreate et cetera, to be
durable with marginal wifi. And performance is not very good, midi2tcp
takes 3-5% of one core and tcp2midi takes 6-8% of another on this i3-
3110 at 2.4GHz.

Am not sure what best to do about the performance. Will probably try
converting Python to binary, but have read over and over again that
that doesn't do so very much.

I also had to rename it back to TCP after re-reading the Mido library
docs yet again, it is using rtpmidi backend but it says it's TCP, not
UDP, and it is using a connected socket which means TCP I do
believe. I had thought RTP-MIDI was UDP? I wonder if judicious use
of UDP would improve performance by a substantial amount?
--
Jonathan E. Brickman ***@ponderworthy.com (785)233-9977
Hear us at ponderworthy.com -- CDs and MP3 available!
Music of compassion; fire, and life!!!
Clemens Ladisch
2018-09-06 13:54:32 UTC
Permalink
it says it's TCP, not UDP, and it is using a connected socket which
means TCP I do believe.
Sockets work with both TCP and UDP.
I had thought RTP-MIDI was UDP?
RTP is specified for both TCP and UDP.
I wonder if judicious use of UDP would improve performance by
a substantial amount?
The only interesting case is error handling, where you can choose
between retransmission (TCP) or dropped packets (UDP).


Regards,
Clemens
Christopher Arndt
2018-09-06 15:02:51 UTC
Permalink
Post by Jonathan E. Brickman
I also had to rename it back to TCP after re-reading the Mido library
docs yet again, it is using rtpmidi backend
That's a misunderstanding on your part. The mido default backend is
"RtMidi" (one of several possible), or rather its Python binding
"python-rtmidi" (of which I am the author).

RtMidi has solely to do with local MIDI I/O, nothing with networking
(though, with the CoreMIDI low-level backend on OS X you can of course
profit from its networking capabilities).

The networking code in mido has nothing to do with RtMidi or RTPMidi.


Chris
Jonathan E. Brickman
2018-09-08 13:18:24 UTC
Permalink
Post by Christopher Arndt
The networking code in mido has nothing to do with RtMidi or RTPMidi.
Chris
Aha. Thank you, Chris.
--
Jonathan E. Brickman ***@ponderworthy.com (785)233-9977
Hear us at ponderworthy.com -- CDs and MP3 available!
Music of compassion; fire, and life!!!
Continue reading on narkive:
Search results for '[LAD] midi2tcp and tcp2midi, working prototype' (Questions and Answers)
8
replies
Give a number from 1 to 10 for the new Windows Vista !!?
started 2007-04-23 08:35:05 UTC
software
Loading...