On 30/08/2025 10:07, Bengt Gördén wrote:
On 8/29/25 17:50, Bill Purvis wrote:
I've been using a modified version of ttymidi
with fair success while
using JackD2, but have now migrated to
using pipewire. Despite having pipewire-jack installed and working,
ttymidi no longer works with it.
If it's modified, maybe the standard version is better to test? Out of
curiosity, I downloaded the source code and compiled. Not that I have
any MIDI stuff running on the serial port right now so I can't test
it, but it shows up as alsa-midi in qpwgraph.
id 116, type PipeWire:Interface:Port/3
object.serial = "33446"
object.path = "alsa:seq:default:client_129:playback_1"
format.dsp = "8 bit raw midi"
node.id = "42"
port.id = "2"
port.name = "ttymidiMIDI in (playback)"
port.direction = "in"
port.alias = "ttymidi:MIDI in"
port.group = "client_129"
id 154, type PipeWire:Interface:Port/3
object.serial = "33445"
object.path = "alsa:seq:default:client_129:capture_0"
format.dsp = "8 bit raw midi"
node.id = "42"
port.id = "2"
port.name = "ttymidiMIDI out (capture)"
port.direction = "out"
port.alias = "ttymidi:MIDI out"
port.group = "client_129"
Well, I have tweaked various
bits to handle special cases - I use the
Arduinos as scanners in an organ, so I need to distinguish between
them - no good connecting the pedal scanner to the tab stops! I do this
by identifying the channel on which they send - each has a dedicated
channel, and when first starting up it sends a dummy note-off with note
0. The modified ttymidi opens the serial port, and reads the first
event and decides from that what name to use when opening the jack port.
I've also cut out some of the more complex handling as the scanners
only ever send note-on and note-off, apart from the swell pedal scanner
which send parameter-change events. No complications with sysex request!
I'll have to download the original version again, and see how it
behaves. I've got various keyboards etc. that I can use for initial testing.
Many thanks for your troubles on my behalf!
Bill
--
+---------------------------------------------+
| Bill Purvis G8DIO |
| bill(a)billp.org |
+---------------------------------------------+