Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 4 files changed
  • 0 comments
  • 1 contributor
BIN  libPDxyPadWii/data/amen_brother.wav
Binary file not shown
BIN  libPDxyPadWii/data/amen_brother2.wav
Binary file not shown
172 libPDxyPadWii/data/sawdrone5.pd
@@ -4,7 +4,7 @@
4 4 #X obj -1 64 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
5 5 -262144 -1 -1 0 256;
6 6 #X obj -3 232 *~ 0.5;
7   -#X obj -3 328 dac~;
  7 +#X obj -2 350 dac~;
8 8 #X obj -3 298 +~;
9 9 #X obj 35 297 +~;
10 10 #X obj -4 -8 declare -path rj;
@@ -84,7 +84,7 @@ dry 0 \, delay 500;
84 84 #X connect 30 0 4 0;
85 85 #X connect 31 0 26 2;
86 86 #X restore -2 209 pd delay;
87   -#X obj 43 232 line;
  87 +#X obj 77 228 line;
88 88 #X obj -1 39 r freq;
89 89 #X obj 61 39 r note;
90 90 #X obj 61 61 mtof;
@@ -99,60 +99,49 @@ dry 0 \, delay 500;
99 99 #X obj 143 235 line;
100 100 #X msg 142 213 \$1 1000;
101 101 #X obj 57 265 rev3~ 100 92 3000 40;
102   -#X obj 345 102 metro 500;
103   -#X obj 305 102 timer;
104   -#X obj 305 134 s timeSymbol;
  102 +#X obj 336 58 metro 500;
  103 +#X obj 296 58 timer;
  104 +#X obj 296 90 s timeSymbol;
105 105 #X obj 250 172 r delay;
106   -#X msg 146 127 0.5 80;
107 106 #N canvas 0 22 450 300 (subpatch) 0;
108   -#X array array1 308112 float 2;
109   -#X coords 0 1 308112 -1 200 140 1;
  107 +#X array array1 307484 float 2;
  108 +#X coords 0 1 307484 -1 200 140 1;
110 109 #X restore 47 354 graph;
111   -#X obj 285 221 soundfiler;
112   -#X msg 315 195 read ../doc/sound/vocal.aiff array2;
  110 +#X obj 315 198 soundfiler;
113 111 #X msg 315 172 read -resize amen_brother.wav array1;
114   -#X obj 596 424 print~;
115   -#X msg 596 389 bang;
116   -#X obj 354 382 loop~;
117   -#X floatatom 408 321 0 0 0 0 - - -;
118   -#X obj 525 424 print~;
119   -#X msg 525 389 bang;
120   -#X obj 358 449 *~;
  112 +#X floatatom 335 231 0 0 0 0 - - -;
121 113 #X obj 358 541 hip~ 5;
122   -#X obj 404 453 samphold~;
123   -#X floatatom 438 345 0 0 0 0 - - -;
124   -#X obj 438 368 *~ 1000;
125   -#X msg 379 253 set 0.5;
126   -#X text 437 238 left signal input is transposition (1 is normal \,
127   -2 is up an octave \, etc);
128   -#X text 458 270 set phase (0 to 1);
129   -#X text 446 295 reset phase to 0;
130 114 #X text 446 320 right signal input is window size in samples;
131   -#X text 476 344 here's how to handle onsets;
132 115 #X obj 358 518 *~;
133   -#X floatatom 509 474 0 0 0 0 - - -;
134   -#X obj 509 543 line~;
135   -#X obj 509 497 dbtorms;
136   -#X obj 509 520 pack 0 50;
137   -#X text 543 473 output level 0-100;
138   -#X text 529 368 print outputs;
  116 +#X obj 445 442 line~;
  117 +#X obj 445 396 dbtorms;
  118 +#X obj 445 419 pack 0 50;
139 119 #X obj 358 495 tabread4~ array1;
140 120 #X obj 537 31 r trigger;
141   -#X msg 344 302 bang;
142 121 #X msg 561 173 100;
143   -#X obj 295 320 1;
144   -#X obj 286 256 t b b f;
145   -#X msg 428 89 read -resize /Users/evan/Documents/Processing2/CreativeCode/libPDxyPadWii/data/amen_brother.wav
146   -array1;
147   -#X obj 355 14 loadbang;
148   -#X obj 441 33 t b;
149   -#X obj 289 432 *~;
150   -#X obj 287 397 saw~;
151   -#X obj 226 320 / 1;
152   -#X obj 216 261 t b f;
153   -#X obj 259 369 print;
154   -#X obj 207 291 44100;
155   -#X msg 264 286 0.2;
  122 +#X obj 261 26 loadbang;
  123 +#X obj 261 57 t b;
  124 +#X obj 313 458 *~;
  125 +#X obj 280 291 / 1;
  126 +#X obj 282 232 t b f;
  127 +#X obj 281 263 44100;
  128 +#X floatatom 445 373 0 0 0 0 - - -;
  129 +#X text 479 372 output level 0-100;
  130 +#X obj 280 371 +~ 1;
  131 +#X obj 347 426 snapshot~;
  132 +#X obj 353 464 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
  133 +-262144 -1 -1 0.772276 256;
  134 +#X obj 280 341 phasor~;
  135 +#X obj 336 260 - 2;
  136 +#X obj 280 396 *~ 0.5;
  137 +#X obj 280 316 * 2;
  138 +#X obj 498 345 r beatlevel;
  139 +#X obj 559 238 - 100;
  140 +#X obj 612 237 100;
  141 +#X obj 574 123 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  142 +-1 -1;
  143 +#X msg 146 127 0.5 80;
  144 +#X obj 0 150 *~ 0.3;
156 145 #X connect 0 0 10 0;
157 146 #X connect 0 0 8 0;
158 147 #X connect 0 0 9 0;
@@ -162,18 +151,18 @@ array1;
162 151 #X connect 1 0 26 1;
163 152 #X connect 3 0 2 0;
164 153 #X connect 4 0 2 1;
165   -#X connect 7 0 23 0;
166   -#X connect 8 0 23 0;
  154 +#X connect 7 0 64 0;
  155 +#X connect 8 0 64 0;
167 156 #X connect 9 0 7 0;
168 157 #X connect 10 0 11 0;
169   -#X connect 11 0 23 0;
  158 +#X connect 11 0 64 0;
170 159 #X connect 12 0 1 0;
171 160 #X connect 13 0 1 1;
172 161 #X connect 14 0 0 0;
173 162 #X connect 15 0 16 0;
174 163 #X connect 16 0 0 0;
175 164 #X connect 17 0 19 0;
176   -#X connect 18 0 31 0;
  165 +#X connect 18 0 63 0;
177 166 #X connect 19 0 13 0;
178 167 #X connect 20 0 23 1;
179 168 #X connect 21 0 23 1;
@@ -184,50 +173,43 @@ array1;
184 173 #X connect 26 0 3 1;
185 174 #X connect 26 1 4 1;
186 175 #X connect 27 0 28 1;
  176 +#X connect 27 0 53 0;
187 177 #X connect 28 0 29 0;
188 178 #X connect 30 0 12 1;
189   -#X connect 31 0 13 0;
190   -#X connect 33 0 65 0;
191   -#X connect 34 0 33 0;
192   -#X connect 35 0 33 0;
193   -#X connect 37 0 36 0;
194   -#X connect 38 0 40 0;
195   -#X connect 38 0 42 0;
196   -#X connect 38 0 44 1;
197   -#X connect 38 1 36 0;
198   -#X connect 38 1 42 1;
199   -#X connect 39 0 38 1;
200   -#X connect 39 0 69 1;
201   -#X connect 41 0 40 0;
202   -#X connect 43 0 12 0;
203   -#X connect 43 0 26 0;
204   -#X connect 45 0 46 0;
205   -#X connect 46 0 44 0;
206   -#X connect 47 0 38 0;
207   -#X connect 53 0 43 0;
208   -#X connect 54 0 56 0;
209   -#X connect 55 0 53 1;
210   -#X connect 56 0 57 0;
211   -#X connect 57 0 55 0;
212   -#X connect 60 0 53 0;
213   -#X connect 62 0 38 0;
214   -#X connect 63 0 54 0;
215   -#X connect 64 0 38 0;
216   -#X connect 64 0 70 0;
217   -#X connect 65 0 75 0;
218   -#X connect 65 1 38 0;
219   -#X connect 65 2 39 0;
220   -#X connect 66 0 33 0;
221   -#X connect 67 0 68 0;
222   -#X connect 68 0 27 0;
223   -#X connect 68 0 28 0;
224   -#X connect 68 0 63 0;
225   -#X connect 68 0 35 0;
226   -#X connect 69 0 60 0;
227   -#X connect 70 0 69 0;
228   -#X connect 71 0 70 0;
229   -#X connect 71 0 73 0;
230   -#X connect 72 0 74 0;
231   -#X connect 72 1 71 1;
232   -#X connect 74 0 71 0;
233   -#X connect 75 0 70 0;
  179 +#X connect 32 0 48 0;
  180 +#X connect 32 0 34 0;
  181 +#X connect 33 0 32 0;
  182 +#X connect 34 0 56 0;
  183 +#X connect 35 0 12 0;
  184 +#X connect 35 0 26 0;
  185 +#X connect 35 0 23 0;
  186 +#X connect 37 0 35 0;
  187 +#X connect 38 0 37 1;
  188 +#X connect 39 0 40 0;
  189 +#X connect 40 0 38 0;
  190 +#X connect 41 0 37 0;
  191 +#X connect 42 0 43 0;
  192 +#X connect 43 0 60 0;
  193 +#X connect 44 0 45 0;
  194 +#X connect 45 0 28 0;
  195 +#X connect 45 0 33 0;
  196 +#X connect 46 0 41 0;
  197 +#X connect 47 0 58 0;
  198 +#X connect 48 0 49 0;
  199 +#X connect 48 1 47 1;
  200 +#X connect 49 0 47 0;
  201 +#X connect 50 0 39 0;
  202 +#X connect 52 0 57 0;
  203 +#X connect 53 0 54 0;
  204 +#X connect 55 0 52 0;
  205 +#X connect 56 0 46 1;
  206 +#X connect 57 0 46 0;
  207 +#X connect 57 0 53 0;
  208 +#X connect 58 0 55 0;
  209 +#X connect 59 0 39 0;
  210 +#X connect 60 0 61 0;
  211 +#X connect 60 0 50 0;
  212 +#X connect 61 0 60 1;
  213 +#X connect 62 0 43 0;
  214 +#X connect 63 0 13 0;
  215 +#X connect 64 0 23 0;
16 libPDxyPadWii/libPDxyPadWii.pde
... ... @@ -1,5 +1,19 @@
1 1 import com.noisepages.nettoyeur.processing.*;
2 2
  3 +/*
  4 + * Using libpd and a Wii nunchuck connected via an Arduino to make a nice breakbeat synth thing
  5 + *
  6 + * by Evan Raskob, copyright 2012
  7 + * computational Designer in Residence at Ravensbourne http://rave.ac.uk
  8 + * libPDxyPadWii by Evan Raskob is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
  9 + * http://creativecommons.org/licenses/by-sa/3.0/
  10 + * (other included code has differing licenses)
  11 + * Based on a work from the libPd library for Processing: https://github.com/libpd/puredatap5
  12 + *
  13 + */
  14 +
  15 +
  16 +
3 17 PureDataP5Jack pd;
4 18 boolean freqy = true;
5 19 boolean rez = false;
@@ -13,6 +27,8 @@ void setup() {
13 27 pd.openPatch(dataFile("sawdrone5.pd"));
14 28 //pd.subscribe("timeSymbol");
15 29 pd.start();
  30 +
  31 + // if you don't use the wii nunchuck and arduino, comment this next line out:
16 32 setupWiiChuck();
17 33 }
18 34

No commit comments for this range

Something went wrong with that request. Please try again.