Re: Rosegarden MIDI out port names not showing in the Pipewire MIDI bridge

Lorenzo Sutton <[email protected]> Sat, 21 Dec 2024 12:32:10 +0100
Newsgroups gmane.comp.audio.rosegarden.user
Message-ID <[email protected]>
Hi Ted I think I missed this last message.

On 21/10/2024 17:23, Ted Felix wrote:
>   It appears as if Rosegarden will use "unnamed" if you don't give the 
> device a name in the device manager.  This might be the issue you are 
> seeing.  Try this:
>
> - Launch the Manage MIDI Devices dialog: Studio > Manage MIDI Devices.
> - Make sure each device has a name other than "New Device".
> - From the command prompt: aconnect -i
> - Each device listed here should have a full name.  None should be 
> named "unnamed".

aconnect -i correctly reports names for rosegarden devices... As you 
say, if a new device is created with with the defauly 'New Device' name 
(in rosegarden) it also shows up as unnamed with aconnect -i

>
> E.g. I created three devices and only gave one of them a name ("Device 
> with a name"):
>
> - New Device
> - New Device
> - General MIDI Device
> - Device with a name
>
> ...and I get:
>
> client 128: 'rosegarden' [type=user,pid=131091]
>     1 'sync out        '
>     2 'out 1 - General MIDI Device'
>     3 'out 2 - Device with a name'
>     4 'out 3 - unnamed '
>     5 'out 4 - unnamed '
>
>   What do you see in your case?  What is in Manage MIDI Devices? Are 
> any "New Device"?

Apart from 'sync our' which is correctly picked as a name any other 
existing or new midi device is reported as 'out x unnamed' even if 
renaming it explicitly on my system.

Essencially anything besides the sync out is reported as out x - 
unnamed.. Weather opening a new file (with existing devices), creating 
and renaming a new device etc.

Reported pipewire version is 1.2.7

Lorenzo



>
>   A quick glance at AlsaDriver does not reveal where the actual device 
> name is added to the port name.  I need to do more digging if the 
> above doesn't help.
>
> Ted.
>
> On 10/16/24 9:11 AM, Lorenzo Sutton wrote:
>> On 14/10/2024 20:25, Ted Felix wrote:
>>>   The code in question is here:
>>>
>>> AlsaDriver::createMidiDevice()
>>>
>>>   It appears to create all ports with the name "out x - unnamed". 
>>> What does a2jmidid show?
>>
>> a2jmidid shows correct names in a form such as:
>>
>> 'rosegarden [129] (capture): out 1 - General Midi'
>>
>> Aj2midid does react to deleting and creating a new MIDI out port 
>> (i.e. 'device' but if you create one when it has already been started 
>> it won't ever pick up the correct name. On the other hand if you load 
>> a rosegarden file which already contains multiple midi out devices 
>> with different names it will indeed pick them.
>>
>> Best,
>>
>> Lorenzo
>>
>>>
>>> Ted.
>>>
>>> On 10/5/24 9:21 AM, Lorenzo Sutton wrote:
>>>> Hi all,
>>>>
>>>> So pipewire provides a 'midi bridge' from ALSA MIDI to JACK MIDI 
>>>> out- of- the-box, which is quite cool for example to connect 
>>>> Rosegarden to, say, Carla or Ardour.
>>>>
>>>> Problem is that it doesn't seem to pick up the names assigned 
>>>> within Rosegarden (as a2jmidid seems to, albeit not being able to 
>>>> detect name changes); all ports are just listed as 'out 1 - 
>>>> unnamed', 'out 2 - unnamed', etc.
>>>>
>>>> I've tested for instance with Pure Data MIDI outs and Qtractor MIDI 
>>>> 'buses' (both also using ALSA MIDI, and the names seem to be picked 
>>>> up by the pipewire MIDI bridge.
>>>>
>>>> Yet, I'm not 100% if the culprit is Rosegarden or pipewire... Any 
>>>> ideas?
>>>>
>>>> Lorenzo
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Rosegarden-user mailing list
>>>> [email protected] - use the link below to 
>>>> unsubscribe
>>>> https://lists.sourceforge.net/lists/listinfo/rosegarden-user
>>>
>>>
>>>
>>> _______________________________________________
>>> Rosegarden-user mailing list
>>> [email protected] - use the link below to 
>>> unsubscribe
>>> https://lists.sourceforge.net/lists/listinfo/rosegarden-user
>>
>>
>>
>>
>> _______________________________________________
>> Rosegarden-user mailing list
>> [email protected] - use the link below to 
>> unsubscribe
>> https://lists.sourceforge.net/lists/listinfo/rosegarden-user
>
>
>
> _______________________________________________
> Rosegarden-user mailing list
> [email protected] - use the link below to unsubscribe
> https://lists.sourceforge.net/lists/listinfo/rosegarden-user




_______________________________________________
Rosegarden-user mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user