Mercurial > hg > beaglert
annotate projects/heavy/pd/hello-midi/hv_ctlin.pd @ 198:62f6269f4b3e
Added support for MidiIn to heavy (with example patch and subpatches).
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Fri, 05 Feb 2016 06:17:35 +0000 |
parents | |
children |
rev | line source |
---|---|
giuliomoro@198 | 1 #N canvas 554 204 703 475 10; |
giuliomoro@198 | 2 #X obj -107 -439 outlet; |
giuliomoro@198 | 3 #X obj -52 -441 outlet; |
giuliomoro@198 | 4 #X obj -61 -743 r ctlin; |
giuliomoro@198 | 5 #X obj -68 -719 unpack f f f; |
giuliomoro@198 | 6 #X obj -6 -441 outlet; |
giuliomoro@198 | 7 #X obj -74 -548 spigot; |
giuliomoro@198 | 8 #X text -109 -420 value; |
giuliomoro@198 | 9 #X text -55 -420 number; |
giuliomoro@198 | 10 #X obj 51 -732 loadbang; |
giuliomoro@198 | 11 #X obj 17 -677 \$1; |
giuliomoro@198 | 12 #X obj -34 -656 == \$1; |
giuliomoro@198 | 13 #X obj -41 -571 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 |
giuliomoro@198 | 14 0 1; |
giuliomoro@198 | 15 #X obj -76 -521 unpack f f f; |
giuliomoro@198 | 16 #X obj -17 -623 ||; |
giuliomoro@198 | 17 #X obj 17 -653 == 0; |
giuliomoro@198 | 18 #X text -90 -859 Emulates ctlin \, except number of outlets is fixed. |
giuliomoro@198 | 19 ; |
giuliomoro@198 | 20 #X obj 68 -623 ||; |
giuliomoro@198 | 21 #X obj 102 -653 == 0; |
giuliomoro@198 | 22 #X obj 52 -656 == \$2; |
giuliomoro@198 | 23 #X obj 102 -677 \$2; |
giuliomoro@198 | 24 #X obj 17 -593 &&; |
giuliomoro@198 | 25 #X obj 51 -707 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 |
giuliomoro@198 | 26 -1 -1; |
giuliomoro@198 | 27 #X text 13 -571 If (inputController==\$1 || \$1==0) && (inputChannel==\$2 |
giuliomoro@198 | 28 || \$2==0); |
giuliomoro@198 | 29 #X text 37 -818 Known issue: trying to select inputController 0 will |
giuliomoro@198 | 30 result i accepting all controllers (because a pd external cannot tell |
giuliomoro@198 | 31 the difference between \$1 been explicitely set to 0 and the patch |
giuliomoro@198 | 32 not having any argument); |
giuliomoro@198 | 33 #X text 2 -420 channel; |
giuliomoro@198 | 34 #X obj -104 -678 pack f f f; |
giuliomoro@198 | 35 #X obj -80 -462 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 |
giuliomoro@198 | 36 -1 -1; |
giuliomoro@198 | 37 #X floatatom -79 -488 5 0 0 0 - - -; |
giuliomoro@198 | 38 #X obj -39 -458 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 |
giuliomoro@198 | 39 -1 -1; |
giuliomoro@198 | 40 #X floatatom -38 -484 5 0 0 0 - - -; |
giuliomoro@198 | 41 #X obj 12 -464 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 |
giuliomoro@198 | 42 -1 -1; |
giuliomoro@198 | 43 #X floatatom 13 -490 5 0 0 0 - - -; |
giuliomoro@198 | 44 #X msg -44 -818 1 2 3; |
giuliomoro@198 | 45 #X msg -6 -805 1 5 7; |
giuliomoro@198 | 46 #X msg -97 -815 1 5 6; |
giuliomoro@198 | 47 #X msg -100 -776 1 4 7; |
giuliomoro@198 | 48 #X obj -96 -841 r hv_ctlin; |
giuliomoro@198 | 49 #X obj -38 -778 s ctlin; |
giuliomoro@198 | 50 #X connect 2 0 3 0; |
giuliomoro@198 | 51 #X connect 3 0 25 0; |
giuliomoro@198 | 52 #X connect 3 1 10 0; |
giuliomoro@198 | 53 #X connect 3 1 25 1; |
giuliomoro@198 | 54 #X connect 3 2 18 0; |
giuliomoro@198 | 55 #X connect 3 2 25 2; |
giuliomoro@198 | 56 #X connect 5 0 12 0; |
giuliomoro@198 | 57 #X connect 8 0 21 0; |
giuliomoro@198 | 58 #X connect 9 0 14 0; |
giuliomoro@198 | 59 #X connect 10 0 13 0; |
giuliomoro@198 | 60 #X connect 11 0 5 1; |
giuliomoro@198 | 61 #X connect 12 0 0 0; |
giuliomoro@198 | 62 #X connect 12 0 27 0; |
giuliomoro@198 | 63 #X connect 12 1 1 0; |
giuliomoro@198 | 64 #X connect 12 1 29 0; |
giuliomoro@198 | 65 #X connect 12 2 4 0; |
giuliomoro@198 | 66 #X connect 12 2 31 0; |
giuliomoro@198 | 67 #X connect 13 0 20 0; |
giuliomoro@198 | 68 #X connect 14 0 13 1; |
giuliomoro@198 | 69 #X connect 16 0 20 1; |
giuliomoro@198 | 70 #X connect 17 0 16 1; |
giuliomoro@198 | 71 #X connect 18 0 16 0; |
giuliomoro@198 | 72 #X connect 19 0 17 0; |
giuliomoro@198 | 73 #X connect 20 0 11 0; |
giuliomoro@198 | 74 #X connect 21 0 9 0; |
giuliomoro@198 | 75 #X connect 21 0 19 0; |
giuliomoro@198 | 76 #X connect 25 0 5 0; |
giuliomoro@198 | 77 #X connect 27 0 26 0; |
giuliomoro@198 | 78 #X connect 29 0 28 0; |
giuliomoro@198 | 79 #X connect 31 0 30 0; |
giuliomoro@198 | 80 #X connect 32 0 37 0; |
giuliomoro@198 | 81 #X connect 33 0 37 0; |
giuliomoro@198 | 82 #X connect 34 0 37 0; |
giuliomoro@198 | 83 #X connect 35 0 37 0; |
giuliomoro@198 | 84 #X connect 36 0 37 0; |