Select Git revision
bf-param-help.pd
bf-param-help.pd 4.81 KiB
#N canvas 214 94 1171 774 10;
#X declare -path ..;
#X obj 43 596 dac~;
#X obj 74 570 *~;
#N canvas 160 92 450 300 declares 0;
#X obj 29 21 declare -path ..;
#X restore 301 647 pd declares;
#X floatatom 224 277 5 0 0 0 - - -;
#X floatatom 778 172 5 0 0 0 - - -;
#X floatatom 778 262 5 0 0 0 - - -;
#X text 816 252 Outlet 3: The value of the parameter at the index in
Inlet3, f 34;
#X floatatom 671 171 5 0 0 0 - - -;
#X floatatom 9 144 5 0 1 0 - - -;
#X text 768 283 Outlet 2: The value of the most recent change to the
parameter in a list as [index value], f 46;
#X text 669 316 Outlet 1: The value of the most recent change to the
parameter (with no index), f 41;
#X floatatom 565 171 5 0 0 0 - - -;
#X obj 565 126 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 565 144 t b b;
#X text 7 113 EXAMPLE A: A bf-parameter for a single cont value;
#X obj 11 303 print Outlet1A;
#X text 563 100 EXAMPLE B: A bf-parameter for 8 midi values;
#X obj 565 318 print Outlet1B;
#X obj 671 286 print Outlet2B;
#X text 813 168 Inlet 3: An integer sends the value of the parameter
at that index to Outlet 3, f 39;
#X text 605 124 Inlets 1 & 2 together are used to set the value at
an index (similar to how tabwrite works.);
#X text 705 171 Index;
#X text 601 172 Value;
#X obj 224 185 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 48 162 Inlet 1 sets the value and triggers Outlet 1;
#X text 10 365 Example C: A bf-parameter for 5 bool values;
#X msg 14 408 0;
#X msg 48 408 1;
#X floatatom 227 409 5 0 0 0 - - -;
#X text 226 390 Index;
#X floatatom 227 499 5 0 0 0 - - -;
#X obj 120 499 print Outlet2C;
#X obj 14 499 print Outlet1C;
#X floatatom 120 409 5 0 0 0 - - -;
#X text 15 389 Value;
#X text 117 390 Index;
#X text 569 394 Example D: A bf-parameter for 4 bangs;
#X obj 669 553 print Outlet2D;
#X obj 572 416 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 602 416 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 572 458 unpack;
#X obj 631 416 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 662 416 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 572 434 0 0;
#X msg 602 434 0 1;
#X msg 631 434 0 2;
#X msg 662 434 0 3;
#X obj 610 553 unpack;
#X obj 610 574 sel 0 1 2 3;
#X obj 610 600 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 632 600 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 654 600 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 676 600 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 106 573 A bf-param must be associated with a bf-instrument
;
#X text 70 550 Audio from your patch goes here;
#X text 11 12 Help patch for bf-param;
#X obj 14 143 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 26 276 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 86 593 bf-instrument myInstru-\$0;
#X text 261 270 Outlet 3: The parameter value when Inlet 3 is sent
a bang, f 32;
#X text 244 182 Inlet 3: A bang sends the parameter value to Outlet3
, f 32;
#X text 105 300 Outlet 1: The current value of the parameter when Inlet1
changes or is banged., f 44;
#X text 16 708 Part of bf-pd \, an implementation of the BOEUF framework
by Luke Dahl and Florent Berthaut. More details on https://gitlab.cristal.univ-lille.fr/boeuf/bf-pd
, f 55;
#X text 407 9 bf-parameters can be of type:;
#X text 410 22 - cont (0.0 to 1.0) - midi (0 to 127) - bool (0 or 1)
- bang, f 19;
#X text 803 483 This is how you might use a multi-bang. The input to
the bf-param might be coming from a drum pad \, and the output might
be used to trigger diffrent sounds., f 54;
#X obj 11 208 bf-param myInstru-\$0 myParam1 1 cont 0;
#X obj 14 432 bf-param myInstru-\$0 myParam3 5 bool 1;
#X obj 565 197 bf-param myInstru-\$0 myParam2 8 midi 2;
#X obj 572 483 bf-param myInstru-\$0 myParam4 4 bang 3;
#X text 11 32 Arguments: - instrument name - number of values - type
(cont \, midi \, bool \, bang) - order;
#X connect 1 0 0 0;
#X connect 1 0 0 1;
#X connect 1 0 58 0;
#X connect 4 0 68 2;
#X connect 7 0 68 1;
#X connect 8 0 66 0;
#X connect 11 0 68 0;
#X connect 12 0 13 0;
#X connect 13 0 11 0;
#X connect 13 1 7 0;
#X connect 23 0 66 2;
#X connect 26 0 67 0;
#X connect 27 0 67 0;
#X connect 28 0 67 2;
#X connect 33 0 67 1;
#X connect 38 0 43 0;
#X connect 39 0 44 0;
#X connect 40 0 69 0;
#X connect 40 1 69 1;
#X connect 41 0 45 0;
#X connect 42 0 46 0;
#X connect 43 0 40 0;
#X connect 44 0 40 0;
#X connect 45 0 40 0;
#X connect 46 0 40 0;
#X connect 47 0 48 0;
#X connect 48 0 49 0;
#X connect 48 1 50 0;
#X connect 48 2 51 0;
#X connect 48 3 52 0;
#X connect 56 0 8 0;
#X connect 66 0 15 0;
#X connect 66 0 57 0;
#X connect 66 2 3 0;
#X connect 67 0 32 0;
#X connect 67 1 31 0;
#X connect 67 2 30 0;
#X connect 68 0 17 0;
#X connect 68 1 18 0;
#X connect 68 2 5 0;
#X connect 69 1 47 0;
#X connect 69 1 37 0;