Skip to content

Instantly share code, notes, and snippets.

@ggorlen
Last active August 2, 2020 03:43
Show Gist options
  • Select an option

  • Save ggorlen/30472fa51923bdd8d854c627d6a39fd6 to your computer and use it in GitHub Desktop.

Select an option

Save ggorlen/30472fa51923bdd8d854c627d6a39fd6 to your computer and use it in GitHub Desktop.
Pure Data netsend/netreceive example
#N canvas 866 194 450 300 10;
#X obj 75 71 netsend;
#X msg 46 26 connect 123.456.78.90 8000;
#X floatatom 274 182 5 0 0 0 - - -;
#X obj 116 210 print received;
#X obj 229 213 route a b;
#X floatatom 275 248 5 0 0 0 - - -;
#X floatatom 231 249 5 0 0 0 - - -;
#X obj 176 147 netreceive 7000;
#X obj 350 223 dac~;
#X obj 342 174 phasor~;
#X connect 4 0 6 0;
#X connect 4 1 5 0;
#X connect 6 0 9 0;
#X connect 7 0 3 0;
#X connect 7 0 4 0;
#X connect 7 1 2 0;
#X connect 9 0 8 0;
#X connect 9 0 8 1;
#N canvas 142 321 450 300 10;
#X obj 93 156 netsend;
#X floatatom 147 184 5 0 0 0 - - -, f 5;
#X floatatom 175 74 5 0 0 0 - - -, f 5;
#X msg 97 116 send a \$1;
#X msg 179 117 send b \$1;
#X msg 148 40 connect 123.456.78.90 7000;
#X floatatom 232 79 5 0 0 0 - - -, f 5;
#X connect 0 0 1 0;
#X connect 2 0 3 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 6 0 4 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment