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:[email protected]] On Behalf Of Ingo
Sent: Sunday, April 09, 2017 10:53 AM
To: 'Christof Ressi'; 'mario buoninfante'
Cc: [email protected]
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:[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
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list