From 7eb4e18bde071c116dbd76caba4a5c67151eb3d4 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 20 Apr 2009 18:49:51 +0000 Subject: added MIDI settings getter and fixed up help patches svn path=/trunk/externals/hcs/; revision=11071 --- get-audio-dialog-help.pd | 28 ++++++++++++++++++++-------- get-midi-dialog-help.pd | 21 +++++++++++++++++++++ get-midi-dialog.pd | 26 ++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 get-midi-dialog-help.pd create mode 100644 get-midi-dialog.pd diff --git a/get-audio-dialog-help.pd b/get-audio-dialog-help.pd index ba186d8..6820fc0 100644 --- a/get-audio-dialog-help.pd +++ b/get-audio-dialog-help.pd @@ -1,9 +1,21 @@ -#N canvas 337 290 528 329 10; -#X msg 46 78 bang; -#X obj 30 153 pddp/print; -#X obj 42 109 get-audio-dialog; -#X obj 10 158 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +#N canvas 65 159 611 344 10; +#X msg 34 111 bang; +#X obj 73 174 pddp/print; +#X obj 53 179 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; -#X connect 0 0 2 0; -#X connect 2 0 1 0; -#X connect 2 0 3 0; +#X obj 34 203 prepend set; +#X obj 34 278 send pd; +#X msg 34 249; +#X obj 34 142 get-audio-dialog; +#X text 246 249 <-- this message will be saved as part of your patch. +click it or [loadbang] it to configure the Audio settings. Make sure +it is attached to a [send pd] so that Pd gets the message.; +#X text 153 93 Open the Audio Settings and click OK to get the data +\, then click bang to use them in the patch; +#X text 9 23 get the Audio settings to save as part of the patch.; +#X connect 0 0 6 0; +#X connect 3 0 5 0; +#X connect 5 0 4 0; +#X connect 6 0 1 0; +#X connect 6 0 2 0; +#X connect 6 0 3 0; diff --git a/get-midi-dialog-help.pd b/get-midi-dialog-help.pd new file mode 100644 index 0000000..fec965d --- /dev/null +++ b/get-midi-dialog-help.pd @@ -0,0 +1,21 @@ +#N canvas 101 310 611 344 10; +#X msg 34 111 bang; +#X obj 73 174 pddp/print; +#X obj 53 179 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X text 9 23 get the MIDI settings to save as part of the patch.; +#X text 153 93 Open the MIDI Settings and click OK to get the data +\, then click bang to use them in the patch; +#X obj 34 142 get-midi-dialog; +#X obj 34 203 prepend set; +#X obj 34 278 send pd; +#X text 246 249 <-- this message will be saved as part of your patch. +click it or [loadbang] it to configure the MIDI settings. Make sure +it is attached to a [send pd] so that Pd gets the message.; +#X msg 34 249; +#X connect 0 0 5 0; +#X connect 5 0 1 0; +#X connect 5 0 2 0; +#X connect 5 0 6 0; +#X connect 6 0 9 0; +#X connect 9 0 7 0; diff --git a/get-midi-dialog.pd b/get-midi-dialog.pd new file mode 100644 index 0000000..5f69088 --- /dev/null +++ b/get-midi-dialog.pd @@ -0,0 +1,26 @@ +#N canvas 361 286 450 300 10; +#X obj 143 88 receive pd; +#X obj 122 161 list; +#X obj 122 16 inlet; +#X obj 122 43 route bang; +#X obj 179 63 print ERROR: no method for; +#X obj 179 272 outlet; +#X obj 122 185 route bang; +#X obj 143 132 trigger bang anything; +#X text 211 180 in a singleton; +#X text 159 160 <-- TODO this list should be globally available; +#X obj 143 111 route midi-dialog; +#X obj 179 209 cyclone/prepend midi-dialog; +#X obj 85 235 print WARNING: no midi-dialog data! Open the MIDI Settings +and click OK to get the data.; +#X connect 0 0 10 0; +#X connect 1 0 6 0; +#X connect 2 0 3 0; +#X connect 3 0 1 0; +#X connect 3 1 4 0; +#X connect 6 0 12 0; +#X connect 6 1 11 0; +#X connect 7 0 1 0; +#X connect 7 1 1 1; +#X connect 10 0 7 0; +#X connect 11 0 5 0; -- cgit v1.2.1