Skip to content

Commit

Permalink
Added all files to the repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonzi committed Jan 8, 2013
1 parent b62d208 commit cd50ea1
Show file tree
Hide file tree
Showing 23 changed files with 877 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
autoSync
========

Pure Data library with hacked GUI elements that are automatically synchronized over the net with OSC with elements sharing the same name
autoSync is a library that wraps the default Pure Data GUI objects into abstractions that are automatically synchronized over the net to any other object from the library created with the same tag. The communication is controlled by creating stations that establish local or remote links.
82 changes: 82 additions & 0 deletions osc-bng.pd
@@ -0,0 +1,82 @@
#N canvas 875 539 623 290 10;
#X obj 80 182 outlet;
#X obj 258 11 inlet;
#X obj 363 127 unpack;
#X obj 363 173 pack f f \$0;
#X obj 132 159 prepend /\$1;
#X obj 258 43 t a a;
#X obj 101 101 bng 15 100 10 0 empty empty \$1 -3 -10 0 12 -262144
-33289 -33289;
#X obj 363 236 namecanvas \$0-bng;
#X msg 327 197 \; \$3-bng coords 0 -1 1 1 \$1 \$1 2 100 100;
#X obj 363 150 + 2;
#X obj 364 96 route size color;
#X obj 480 48 f;
#X obj 512 47 f;
#X obj 543 47 f;
#X obj 484 69 pack f f f;
#X obj 441 13 t b b b;
#X obj 505 5 unpack f f f;
#X obj 256 138 f;
#X obj 288 137 f;
#X obj 319 137 f;
#X obj 260 159 pack f f f;
#X obj 220 100 t b b b;
#X obj 270 101 unpack f f f;
#X msg 101 68 color \$1 \$2 \$3;
#X obj 325 19 loadbang;
#X msg 341 66 color 0 12 12;
#X obj 330 43 t b b;
#X obj 99 26 routeOSC /\$1;
#X obj 99 48 routeOSC /sys /data;
#X obj 132 135 prepend /data;
#X obj 232 51 t b;
#X obj 232 74 delay 100;
#X obj 99 5 r from-OSC;
#X obj 132 182 s to-OSC;
#X connect 1 0 5 0;
#X connect 2 0 9 0;
#X connect 2 1 3 1;
#X connect 3 0 8 0;
#X connect 4 0 33 0;
#X connect 5 0 10 0;
#X connect 5 1 6 0;
#X connect 6 0 29 0;
#X connect 9 0 3 0;
#X connect 10 0 2 0;
#X connect 10 1 16 0;
#X connect 10 1 22 0;
#X connect 11 0 14 0;
#X connect 12 0 14 1;
#X connect 13 0 14 2;
#X connect 14 0 23 0;
#X connect 15 0 11 0;
#X connect 15 1 12 0;
#X connect 15 2 13 0;
#X connect 16 1 12 1;
#X connect 16 1 11 1;
#X connect 16 2 13 1;
#X connect 17 0 20 0;
#X connect 18 0 20 1;
#X connect 19 0 20 2;
#X connect 20 0 23 0;
#X connect 21 0 17 0;
#X connect 21 1 18 0;
#X connect 21 2 19 0;
#X connect 22 0 17 1;
#X connect 22 1 18 1;
#X connect 22 2 19 1;
#X connect 23 0 6 0;
#X connect 24 0 26 0;
#X connect 25 0 10 0;
#X connect 26 0 21 0;
#X connect 26 1 25 0;
#X connect 27 0 28 0;
#X connect 28 1 15 0;
#X connect 28 1 0 0;
#X connect 28 1 30 0;
#X connect 29 0 4 0;
#X connect 30 0 31 0;
#X connect 31 0 21 0;
#X connect 32 0 27 0;
#X coords 0 -1 1 1 17 17 2 100 100;
53 changes: 53 additions & 0 deletions osc-bridge.pd
@@ -0,0 +1,53 @@
#N canvas 675 236 411 263 10;
#X declare -lib mrpeach;
#X obj 136 17 import mrpeach;
#X obj -23 166 udpsend;
#X obj -69 123 packOSC;
#X obj 163 74 loadbang;
#X obj -163 64 udpreceive \$3;
#X obj 171 144 tgl 12 0 \$0-onoff-snd \$0-onoff-rcv Link 15 7 0 10
-262144 -33289 -33289 1 1;
#X obj 46 17 sel 1 0;
#X msg 92 80 disconnect;
#X obj 105 111 cnv 15 90 16 empty empty \$1 0 0 0 12 -262144 -66577
0;
#X obj 105 119 cnv 15 90 20 empty empty \$2 0 12 0 12 -262144 -66577
0;
#X obj 105 137 cnv 15 40 20 empty empty \$3 0 12 0 12 -262144 -66577
0;
#X obj 27 210 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 96 207 color 0 12 12;
#X msg 95 181 color 16 12 12;
#X obj 30 181 delay 80;
#X obj 25 52 list append \$2 \$3;
#X msg -8 124 connect \$1 \$2;
#X obj -163 116 s from-OSC-\$3;
#X obj -163 155 r from-OSC-\$3;
#X obj -163 89 unpackOSC;
#X obj 27 234 s \$1-link;
#X obj -69 34 spigot;
#X obj -163 195 s from-OSC-\$1;
#X obj -69 13 r to-OSC-\$1;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 4 0 19 0;
#X connect 5 0 6 0;
#X connect 5 0 21 1;
#X connect 6 0 15 0;
#X connect 6 1 7 0;
#X connect 7 0 1 0;
#X connect 11 0 13 0;
#X connect 11 0 14 0;
#X connect 11 0 20 0;
#X connect 12 0 5 0;
#X connect 13 0 5 0;
#X connect 14 0 12 0;
#X connect 15 0 16 0;
#X connect 16 0 1 0;
#X connect 18 0 11 0;
#X connect 18 0 22 0;
#X connect 19 0 17 0;
#X connect 21 0 2 0;
#X connect 23 0 21 0;
#X coords 0 -1 1 1 115 60 2 100 100;
72 changes: 72 additions & 0 deletions osc-config.pd
@@ -0,0 +1,72 @@
#N canvas 189 241 450 300 10;
#X obj 25 258 outlet;
#X msg 26 210 color \$1 \$2 \$3;
#X obj 26 176 pack 0 0 0;
#X floatatom 3 119 5 0 0 0 - - -;
#X floatatom 41 119 5 0 0 0 - - -;
#X floatatom 79 119 5 0 0 0 - - -;
#X obj 40 142 t b f;
#X obj 79 143 t b f;
#X msg 156 201 range \$1 \$2;
#X floatatom 133 119 5 0 0 0 - - -;
#X floatatom 171 119 5 0 0 0 - - -;
#X obj 170 143 t b f;
#X obj 156 177 pack 0 0;
#X floatatom 227 119 5 0 0 0 - - -;
#X floatatom 265 119 5 0 0 0 - - -;
#X obj 264 142 t b f;
#X obj 250 176 pack 0 0;
#X msg 250 200 size \$1 \$2;
#X text 135 99 range;
#X text 236 99 size;
#X text 32 99 colors;
#X msg 174 68 127;
#X msg 269 69 15;
#X msg 230 68 128;
#X obj 208 38 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 209 12 loadbang;
#X obj 284 101 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 45 73 12;
#X msg 84 73 12;
#X msg 8 73 0;
#X msg 134 68 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 2 0;
#X connect 4 0 6 0;
#X connect 5 0 7 0;
#X connect 6 0 2 0;
#X connect 6 1 2 1;
#X connect 7 0 2 0;
#X connect 7 1 2 2;
#X connect 8 0 0 0;
#X connect 9 0 12 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 11 1 12 1;
#X connect 12 0 8 0;
#X connect 13 0 16 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 15 1 16 1;
#X connect 16 0 17 0;
#X connect 17 0 0 0;
#X connect 21 0 10 0;
#X connect 22 0 14 0;
#X connect 23 0 13 0;
#X connect 24 0 21 0;
#X connect 24 0 23 0;
#X connect 24 0 22 0;
#X connect 24 0 27 0;
#X connect 24 0 28 0;
#X connect 24 0 30 0;
#X connect 24 0 29 0;
#X connect 25 0 24 0;
#X connect 26 0 24 0;
#X connect 27 0 4 0;
#X connect 28 0 5 0;
#X connect 29 0 3 0;
#X connect 30 0 9 0;
#X coords 0 -1 1 1 300 40 2 0 100;
58 changes: 58 additions & 0 deletions osc-help.pd
@@ -0,0 +1,58 @@
#N canvas 416 221 542 664 10;
#X declare -lib mrpeach;
#X declare -lib mrpeach;
#X obj 21 307 osc-nbr foo;
#X obj 174 219 osc-hradio foo;
#X obj 427 189 osc-vsl foo;
#X obj 13 80 osc-link foo;
#X obj 22 220 osc-bng foo;
#X obj 390 202 osc-vradio foo;
#X obj 174 270 osc-hsl foo;
#X obj 22 261 osc-tgl foo;
#X obj 5 -96 osc-server loopback localhost 1234;
#X obj 19 485 osc-config;
#X text 128 -96 [osc-server] is the linker between the 2 computers.
;
#X text 130 -80 Arguments: [osc-server name IP port];
#X text 131 -63 If you want the objects to be linked internally build
one connected to localhost \, like this one.;
#X text 105 76 [osc-link] is the most basic linked object.;
#X text 106 92 It's useful to send data such as lists \, but it's not
suitable for linking GUI objects!;
#X text 107 121 You can also use it to send data from audio analysis
objects \, to get visual feedback.;
#X text 16 172 All other objects come from the standard Pure Data library.
;
#X text 49 259 [osc-tgl];
#X text 46 220 [osc-bng];
#X text 262 290 [osc-hsl];
#X text 423 327 [osc-vsl];
#X text 233 237 [osc-hradio];
#X text 344 327 [osc-vradio];
#X text 93 307 [osc-nbr];
#X obj 19 532 osc-hsl bar;
#X text 326 482 This bang outputs default settings;
#X text 327 498 for horitzontal sliders.;
#X text 19 423 [osc-config] can tune some visual settings of the objects
by connecting to them \, though that's not going to be saved.;
#X text 10 -5 Linked objects: all the linked objects take a single
argument which is their ID. All objects with the same ID will be linked
\, and any data passing through them will get to the others.;
#X text 19 457 If an object gets frozen try to move it.;
#N canvas 376 326 449 225 scene 0;
#X obj 291 62 osc-bridge touchOSC 192.168.0.102 8080;
#X obj 122 29 osc-hsl 1-fader1;
#X obj 122 54 osc-hsl 1-fader2;
#X obj 123 80 osc-hsl 1-fader3;
#X obj 123 134 osc-hsl 1-fader5;
#X obj 124 107 osc-hsl 1-fader4;
#X obj 30 44 osc-tgl 1-toggle1;
#X obj 31 86 osc-tgl 1-toggle2;
#X obj 31 129 osc-tgl 1-toggle3;
#X obj 32 176 osc-tgl 1-toggle4;
#X obj 135 176 osc-scene touchOSC-Simple-1.txt touchOSC;
#X restore 28 370 pd scene;
#X text 96 367 [osc-scene] maps osc routes to ID's as defined in a
given text file. It's useful to link external controllers to the system.
;
#X connect 9 0 24 0;
65 changes: 65 additions & 0 deletions osc-hradio.pd
@@ -0,0 +1,65 @@
#N canvas 648 468 632 332 10;
#X obj 349 2 inlet;
#X obj 393 150 + 2;
#X obj 363 173 pack f f \$0;
#X obj 99 161 prepend /\$1;
#X obj 349 30 t a a;
#X obj 101 101 hradio 15 1 0 8 empty empty \$1 0 -10 0 12 -262144 -1
-1 0;
#X obj 325 239 namecanvas \$0-hradio;
#X msg 327 197 \; \$3-hradio coords 0 -1 1 1 \$1 \$2 2 100 100;
#X obj 352 125 * 15;
#X obj 363 150 + 2;
#X msg 241 134 /sys/number \$1;
#X obj 265 64 outlet;
#X msg 184 63 set \$1;
#X obj 104 -13 routeOSC /\$1;
#X obj 104 11 routeOSC /sys /data;
#X obj 208 35 route bang;
#X obj 100 35 routeOSC /number;
#X obj 99 137 prepend /data;
#X msg 100 62 number \$1;
#X obj 363 102 t b f;
#X obj 363 75 route size number;
#X obj 475 127 loadbang;
#X msg 466 157 8;
#X msg 498 157 15;
#X obj 237 63 f;
#X obj 104 -37 r from-OSC;
#X obj 99 184 s to-OSC;
#X obj 387 2 r \$1;
#X connect 0 0 4 0;
#X connect 1 0 2 1;
#X connect 2 0 7 0;
#X connect 3 0 26 0;
#X connect 4 0 20 0;
#X connect 4 1 5 0;
#X connect 5 0 17 0;
#X connect 8 0 9 0;
#X connect 9 0 2 0;
#X connect 10 0 3 0;
#X connect 12 0 5 0;
#X connect 13 0 14 0;
#X connect 14 0 16 0;
#X connect 14 1 15 0;
#X connect 15 0 24 0;
#X connect 15 1 12 0;
#X connect 15 1 11 0;
#X connect 15 1 24 1;
#X connect 16 0 18 0;
#X connect 16 0 8 0;
#X connect 17 0 3 0;
#X connect 18 0 5 0;
#X connect 19 0 2 0;
#X connect 19 1 1 0;
#X connect 20 0 19 0;
#X connect 20 1 8 0;
#X connect 20 1 10 0;
#X connect 21 0 22 0;
#X connect 21 0 23 0;
#X connect 22 0 8 0;
#X connect 23 0 19 0;
#X connect 24 0 11 0;
#X connect 25 0 13 0;
#X connect 27 0 4 0;
#X coords 0 -1 1 1 122 17 2 100 100;
58 changes: 58 additions & 0 deletions osc-hsl.pd
@@ -0,0 +1,58 @@
#N canvas 377 325 604 312 10;
#X obj 104 101 hsl 128 15 0 1 0 0 empty empty \$1 5 7 0 12 -262144
-33289 -33289 0 1;
#X obj 264 84 outlet;
#X msg 184 72 set \$1;
#X obj 256 19 inlet;
#X obj 365 127 unpack;
#X obj 393 150 + 2;
#X obj 363 150 + 7;
#X obj 363 236 namecanvas \$0-hsl;
#X obj 363 173 pack f f \$0;
#X obj 365 73 route size range;
#X obj 101 -7 routeOSC /\$1;
#X msg 82 72 range \$1 \$2;
#X obj 256 41 t a a;
#X msg 327 197 \; \$3-hsl coords 0 -1 1 1 \$1 \$2 2 100 100;
#X obj 101 21 routeOSC /sys /data;
#X obj 183 46 route bang;
#X obj 82 47 routeOSC /range;
#X obj 238 86 f;
#X obj 101 -31 r from-OSC;
#X obj 100 201 s to-OSC;
#X obj 101 123 list append \$1;
#X obj 411 95 list append \$1;
#X msg 195 146 /\$3/sys/range \$1 \$2;
#X msg 101 146 /\$2/data \$1;
#X obj 295 20 r \$1;
#X obj 328 20 r \$1-hsl;
#X connect 0 0 20 0;
#X connect 2 0 0 0;
#X connect 3 0 12 0;
#X connect 4 0 6 0;
#X connect 4 1 5 0;
#X connect 5 0 8 1;
#X connect 6 0 8 0;
#X connect 8 0 13 0;
#X connect 9 0 4 0;
#X connect 9 1 21 0;
#X connect 10 0 14 0;
#X connect 11 0 0 0;
#X connect 12 0 9 0;
#X connect 12 1 0 0;
#X connect 14 0 16 0;
#X connect 14 1 15 0;
#X connect 15 0 17 0;
#X connect 15 1 2 0;
#X connect 15 1 1 0;
#X connect 15 1 17 1;
#X connect 16 0 11 0;
#X connect 17 0 1 0;
#X connect 18 0 10 0;
#X connect 20 0 23 0;
#X connect 21 0 22 0;
#X connect 22 0 19 0;
#X connect 23 0 19 0;
#X connect 24 0 12 0;
#X connect 25 0 12 0;
#X coords 0 -1 1 1 135 17 2 100 100;

0 comments on commit cd50ea1

Please sign in to comment.