hello again,
I found the issue,
with `-nogui`, the patch is loaded before midisettings are done (like audiosettings)
and `[mediasettings/midisettings]` updates it's own device list on startup or on `[device ...(` message.
So when the patch is loaded at startup without gui, `[mediasettings/midisettings(` records 0 mididevices.
I have to send a dummy `[device ...(` message 1sec after loadbang to update the list and then `[listdevices(` report the right number of devices.
Another solution could be to delay the patch loading.
Shouldn't `[mediasettings/midisettings]` update it's own device lists on `[listdevices(` message ?
+
A