OSCprepend.pd 844 B

12345678910111213141516171819202122232425262728293031
  1. #N canvas 511 144 636 444 10;
  2. #X obj 45 131 list split 1;
  3. #X msg 94 90 /a 1 2 3;
  4. #X obj 45 276 list append;
  5. #X obj 45 299 list trim;
  6. #X obj 45 239 makefilename \$1%s;
  7. #X obj 45 188 route symbol;
  8. #X obj 45 89 inlet;
  9. #X obj 45 319 outlet;
  10. #X text 215 99 "Prepends" first argument to an OSC message list.;
  11. #X text 221 126 Example: with \$1 being "/synth" the message "/set
  12. x 1 2" will become "/synth/set x 1 2".;
  13. #X text 223 163 Right inlet lets you change the prepended argument
  14. ;
  15. #X msg 146 209 set \$1%s;
  16. #X obj 146 185 symbol;
  17. #X obj 146 163 inlet;
  18. #X text 224 189 Lists not starting with a symbol are filtered out!
  19. ;
  20. #X connect 0 0 5 0;
  21. #X connect 0 1 2 1;
  22. #X connect 1 0 0 0;
  23. #X connect 2 0 3 0;
  24. #X connect 3 0 7 0;
  25. #X connect 4 0 2 0;
  26. #X connect 5 0 4 0;
  27. #X connect 6 0 0 0;
  28. #X connect 11 0 4 0;
  29. #X connect 12 0 11 0;
  30. #X connect 13 0 12 0;