[LAU] Re: wnat a version of ttymidi that works with pipewire

Bill Purvis <[email protected]>
Newsgroups gmane.linux.audio.users
Message-ID <[email protected]>

On 30/08/2025 10:48, Bill Purvis wrote:
>
>
> 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
That's very interesting - I did a google search for 'ttymidi source' and 
got a selection of hits. Downloaded one, compiled and tested it to
find it hits the same errors as mine. Searched further and try a 
different one, and that one seems to work.

The difference is: the one that works interfaces with libasound, rather 
than direct with jack. I doubt if libasound had been invented when I
downloaded the original ttymidi. Just need to familiarise myself with 
the libasound interface and fit my mods into this version.

The one that I downloaded and works is from:

     http://www.varal.org/ttymidi/

Chrome is a bit reluctant to download from a http source, but it seems 
to be OK. It's a tar.gz download, and comes with some arduino code as
well, which I have not explored. Anyone familiar with Midi and Arduinos 
will have no problem getting it all to work.

Many, many thanks!

Bill

-- 
+---------------------------------------------+
| Bill Purvis          G8DIO                  |
| [email protected]                              |
+---------------------------------------------+
_______________________________________________
Linux-audio-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.