diff options
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | hid_cube.pd | 13 | ||||
-rw-r--r-- | hid_cuberoot.pd | 13 | ||||
-rw-r--r-- | hid_exp.pd | 20 | ||||
-rw-r--r-- | hid_graph.pd | 21 | ||||
-rw-r--r-- | hid_log.pd | 19 | ||||
-rw-r--r-- | hid_rel2abs.pd | 17 | ||||
-rw-r--r-- | hid_smooth.pd | 13 | ||||
-rw-r--r-- | hid_square.pd | 16 | ||||
-rw-r--r-- | hid_squareroot.pd | 13 |
10 files changed, 147 insertions, 0 deletions
@@ -119,6 +119,8 @@ void hid_post(const char *format, const char *); - exponential +- [noterange] scale an input range to an output range of MIDI note #s + ______________________________________________________________________________ ------------------------------------------------------------------------------ BUGS diff --git a/hid_cube.pd b/hid_cube.pd new file mode 100644 index 0000000..761bf14 --- /dev/null +++ b/hid_cube.pd @@ -0,0 +1,13 @@ +#N canvas 710 539 475 301 10; +#X obj 72 63 inlet; +#X obj 72 240 outlet; +#X text 120 63 input range: -1 to 1; +#X text 128 240 output range: 0 to 1; +#X obj 72 104 + 1; +#X obj 72 128 / 2; +#X obj 72 166 pow 3; +#X text 7 9 [hid_cube]; +#X connect 0 0 4 0; +#X connect 4 0 5 0; +#X connect 5 0 6 0; +#X connect 6 0 1 0; diff --git a/hid_cuberoot.pd b/hid_cuberoot.pd new file mode 100644 index 0000000..18a7c86 --- /dev/null +++ b/hid_cuberoot.pd @@ -0,0 +1,13 @@ +#N canvas 860 465 432 349 10; +#X obj 72 63 inlet; +#X obj 72 240 outlet; +#X text 120 63 input range: -1 to 1; +#X text 128 240 output range: 0 to 1; +#X text 41 18 [hid_sqrt]; +#X obj 73 117 + 1; +#X obj 73 140 / 2; +#X obj 73 162 pow 0.333333; +#X connect 0 0 5 0; +#X connect 5 0 6 0; +#X connect 6 0 7 0; +#X connect 7 0 1 0; diff --git a/hid_exp.pd b/hid_exp.pd new file mode 100644 index 0000000..a96ee0f --- /dev/null +++ b/hid_exp.pd @@ -0,0 +1,20 @@ +#N canvas 710 539 483 309 10; +#X obj 72 38 inlet; +#X obj 86 263 outlet; +#X text 120 38 input range: -1 to 1; +#X text 142 263 output range: 0 to 1; +#X text 7 9 [hid_exp]; +#X obj 72 99 / 2; +#X obj 86 178 pow; +#X obj 72 140 t b f; +#X msg 72 159 2; +#X obj 72 80 + 1; +#X obj 86 220 - 1; +#X connect 0 0 9 0; +#X connect 5 0 7 0; +#X connect 6 0 10 0; +#X connect 7 0 8 0; +#X connect 7 1 6 1; +#X connect 8 0 6 0; +#X connect 9 0 5 0; +#X connect 10 0 1 0; diff --git a/hid_graph.pd b/hid_graph.pd new file mode 100644 index 0000000..d0a4dd3 --- /dev/null +++ b/hid_graph.pd @@ -0,0 +1,21 @@ +#N canvas 461 501 535 366 10; +#X obj 193 9 inlet; +#N canvas 0 22 458 308 graph5 0; +#X array \$0-hid_graph_array 100 float 2; +#X coords 0 1 100 0 100 100 1; +#X restore -35 30 graph; +#X obj 193 285 outlet; +#X obj 193 54 + 1; +#X text 240 69 gives a range of 0-100; +#X text 237 11 input range -1 to 1; +#X text 244 286 output range 0 to 1; +#X obj 193 170 tabread \$0-hid_graph_array; +#X text 43 176 [hid_graph]; +#X obj 193 75 / 2; +#X obj 193 107 * 100; +#X connect 0 0 3 0; +#X connect 3 0 9 0; +#X connect 7 0 2 0; +#X connect 9 0 10 0; +#X connect 10 0 7 0; +#X coords 0 0 1 1 120 120 1; diff --git a/hid_log.pd b/hid_log.pd new file mode 100644 index 0000000..6b6d005 --- /dev/null +++ b/hid_log.pd @@ -0,0 +1,19 @@ +#N canvas 792 221 373 299 10; +#X obj 84 32 inlet; +#X obj 84 249 outlet; +#X text 132 32 input range: -1 to 1; +#X text 140 249 output range: 0 to 1; +#X text 9 5 [hid_log]; +#X obj 84 96 + 1; +#X obj 84 115 / 2; +#X obj 84 134 * 1.71828; +#X obj 84 153 + 1; +#X obj 84 193 log; +#X text 92 172 the values are scaled from 1 to e; +#X text 150 134 (e - 1); +#X connect 0 0 5 0; +#X connect 5 0 6 0; +#X connect 6 0 7 0; +#X connect 7 0 8 0; +#X connect 8 0 9 0; +#X connect 9 0 1 0; diff --git a/hid_rel2abs.pd b/hid_rel2abs.pd new file mode 100644 index 0000000..f7358ca --- /dev/null +++ b/hid_rel2abs.pd @@ -0,0 +1,17 @@ +#N canvas 0 22 458 308 10; +#X obj 137 20 inlet; +#X obj 222 267 outlet; +#X floatatom 221 81 5 0 0 0 - - -; +#X obj 137 81 route reset; +#X obj 221 174 +; +#X obj 251 174 f; +#X msg 137 126 0; +#X connect 0 0 3 0; +#X connect 3 0 6 0; +#X connect 3 1 2 0; +#X connect 3 1 4 0; +#X connect 4 0 5 0; +#X connect 4 0 1 0; +#X connect 5 0 4 1; +#X connect 6 0 4 1; +#X connect 6 0 5 1; diff --git a/hid_smooth.pd b/hid_smooth.pd new file mode 100644 index 0000000..9290f70 --- /dev/null +++ b/hid_smooth.pd @@ -0,0 +1,13 @@ +#N canvas 721 425 454 304 10; +#X obj 67 31 inlet; +#X obj 67 256 outlet; +#X obj 122 78 loadbang; +#X msg 96 113 weight; +#X obj 67 149 average \$1; +#X msg 150 113 10; +#X connect 0 0 4 0; +#X connect 2 0 5 0; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 4 0 1 0; +#X connect 5 0 4 1; diff --git a/hid_square.pd b/hid_square.pd new file mode 100644 index 0000000..264a971 --- /dev/null +++ b/hid_square.pd @@ -0,0 +1,16 @@ +#N canvas 710 539 475 301 10; +#X obj 72 63 inlet; +#X obj 72 240 outlet; +#X text 120 63 input range: -1 to 1; +#X text 128 240 output range: 0 to 1; +#X obj 72 149 t f f; +#X obj 72 172 *; +#X obj 72 104 + 1; +#X obj 72 128 / 2; +#X text 7 9 [hid_square]; +#X connect 0 0 6 0; +#X connect 4 0 5 0; +#X connect 4 1 5 1; +#X connect 5 0 1 0; +#X connect 6 0 7 0; +#X connect 7 0 4 0; diff --git a/hid_squareroot.pd b/hid_squareroot.pd new file mode 100644 index 0000000..f628808 --- /dev/null +++ b/hid_squareroot.pd @@ -0,0 +1,13 @@ +#N canvas 860 465 424 341 10; +#X obj 72 63 inlet; +#X obj 72 240 outlet; +#X text 120 63 input range: -1 to 1; +#X text 128 240 output range: 0 to 1; +#X text 41 18 [hid_sqrt]; +#X obj 73 117 + 1; +#X obj 73 140 / 2; +#X obj 73 162 sqrt; +#X connect 0 0 5 0; +#X connect 5 0 6 0; +#X connect 6 0 7 0; +#X connect 7 0 1 0; |