hi *!
there's this very annoying problem of PD autoconnecting to all available midi ports when using ALSA midi on Linux. since it wisely decides to also connect to all internal midi thru ports, it immediately enters an infinite midi loop on startup as soon as there is any controller with feedback active.
but there is a deeper underlying problem apparently: for every midi message that gets sent out, the corresponding port is reconnected. i guess that's not very scalable. i found this out by watching the qjackctl logs - they spit out one reconnection line for every outgoing midi cc.
as suggested by claude heiland-allen in another thread (subject "pure data midi autoconnect"), i'm now invoking pd with "-alsamidi -mididev 1,1", which prevents autoconnection.
***interestingly, it also prevents the constant re-connection to the alsa sequencer ports on every outgoing message.***
i think this might be a hint that something is wrong somewhere in the alsa sequencer glue in pd.
best,
jörn