You need to refresh the midi dialog by banging this: [; pd midi-dialog 1 2 3 4 1 2 3 4 4 4(
first 4 = input device numbering (might be different than "1 2 3 4", e.g. "2 0 0 0") next 4 = output device numbering (might be different than "1 2 3 4") #9 = number of input devices (1-4) #10 = number of output devices (1-4) Same thing for audio-dialog: [; pd audio-dialog n1 n1 n1 n1 n2 n2 n2 n2 n3 n3 n3 n3 n4 n4 n4 n4 n5 n6( n1 = inputs device numbers n2 = number of input channels per device n3 = outputs device numbers n4 = number of output channels per device n3 = sample rate n6 = delay in milliseconds Making an automatic refresh is a bit difficult. I did it by monitoring the dev folder (or actually I created a subfolder for my known devices and I'm monitoring changes with [hcs/folder_list /dev/"mididevice-subfolder-name"/*] every 3 seconds. When a change is detected it bangs [; pd midi-dialog 1 2 3 4 1 2 3 4 4 4( So all of my "known" devices (by udev names) are mounted automatically. For unknown devices I need to execute a [bang] on [; pd midi-dialog 1 2 3 4 1 2 3 4 4 4( Ingo > -----Original Message----- > From: Pd-list [mailto:[email protected]] On Behalf Of Christof > Ressi > Sent: Sunday, April 09, 2017 10:11 AM > To: mario buoninfante > Cc: [email protected] > Subject: Re: [PD] refresh MIDI device list on run > > Never worked for me (for audio devices neither), I always had to restart Pd > :- > (. Also with audio devices. > > > > Gesendet: Sonntag, 09. April 2017 um 09:51 Uhr Von: "mario buoninfante" > <[email protected]> An: [email protected] Betreff: [PD] > refresh MIDI device list on run > > Hi all, > does anyone know if it's possible to "refresh" the MIDI device list while Pd > is > running? i.e. you plug a new device on run. > Cheers, > Mario > _______________________________________________ Pd- > [email protected] mailing list UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
