same with me on Win7.
Gesendet: Sonntag, 09. April 2017 um 13:01 Uhr Von: "mario.buoninfante" mario.buoninfante@gmail.com An: Ingo ingo@miamiwave.com, 'Ingo' ingo@miamiwave.com, 'Christof christof.ressi@gmx.at Cc: pd-list pd-list@lists.iem.at Betreff: RE: [PD] refresh MIDI device list on run
What I noticed on Win10 is that if the device is connected when you launch Pd, then you can unplug it and plug it again, without any issues. And one thing more, a new device is detected only if I've never opened the MIDI dialog. I mean:
- Launch Pd
- Plug a MIDI device
- Open MIDI dialog (either from Menu or within the patch)
- Pd recognize the device
After I opened MIDI dialog the first time, no new devices will be recognized. That's weird
Sent from my Wiko ROBBYOn Apr 9, 2017 11:25, Ingo ingo@miamiwave.com wrote:
Funny, I'm using that since years and it absolutely "always" works here (on Linux) both for adding new devices or replugging previously unplugged MIDI devices. I'm not using Pd on Windows, though. But I can't see why Pd itself would behave differently on Windows. Whenever you send a (properly formatted) message to the midi-dialog it will activate anything that is connected at that moment.
Ingo
-----Original Message----- From: mario buoninfante [mailto:mario.buoninfante@gmail.com] Sent: Sunday, April 09, 2017 11:00 AM To: Ingo; 'Christof Ressi' Cc: pd-list@lists.iem.at Subject: Re: [PD] refresh MIDI device list on run
Hi Ingo,
actually I already tried with this, but it can help only if you want to
change
MIDI device. if I plug a new device after I launched Pd, nothing changes
also
using [pd midi-dialog(
I'm trying on Win10 (usually I work on Linux but there I used to work with Jack, thus no prob at all ;) )
On 09/04/2017 10:08, Ingo wrote:
That should read: "n5 = sample rate" instead of "n3 = sample rate" It's for Linux, of course. Don't know how to handle this in Windows or
OSX.
Ingo
-----Original Message----- From: Pd-list [mailto:pd-list-bounces@lists.iem.at] On Behalf Of Ingo Sent: Sunday, April 09, 2017 10:53 AM To: 'Christof Ressi'; 'mario buoninfante' Cc: pd-list@lists.iem.at Subject: Re: [PD] refresh MIDI device list on run
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:pd-list-bounces@lists.iem.at] On Behalf Of Christof Ressi Sent: Sunday, April 09, 2017 10:11 AM To: mario buoninfante Cc: pd-list@lists.iem.at 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"
mario.buoninfante@gmail.com An: pd-list@lists.iem.at 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-
list@lists.iem.at
mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus