test-argument.pd 977 B

12345678910111213141516171819202122232425262728293031
  1. #N canvas 336 203 651 389 10;
  2. #X obj 158 36 inlet;
  3. #X obj 158 92 t b b b;
  4. #X text 220 105 first;
  5. #X text 159 192 second;
  6. #X text 73 282 third;
  7. #X obj 158 67 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  8. -1;
  9. #X obj 210 166 print arg1;
  10. #X obj 134 246 print arg2;
  11. #X obj 11 330 print arg3;
  12. #X obj 210 130 tof/argument 1;
  13. #X obj 134 213 tof/argument 2 100;
  14. #X obj 11 303 tof/argument 3 500;
  15. #X text 204 24 This patch is part of [tof/argument]'s help file.;
  16. #X text 207 42 Its creation arguments are: a b;
  17. #X text 305 127 <-Outputs the first patch creation argument: "a";
  18. #X text 131 300 <- Outputs 500 because there is not third patch argument.
  19. ;
  20. #X text 257 206 <-Outputs "100" because the type of the default value
  21. \, a float 100 \, does not match the type of the patch's second argument
  22. \, a symbol "b".;
  23. #X connect 0 0 5 0;
  24. #X connect 1 0 11 0;
  25. #X connect 1 1 10 0;
  26. #X connect 1 2 9 0;
  27. #X connect 5 0 1 0;
  28. #X connect 9 0 6 0;
  29. #X connect 10 0 7 0;
  30. #X connect 11 0 8 0;