argument-help.pd 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #N canvas 1 53 922 529 10;
  2. #X obj 496 461 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  3. -1 -1;
  4. #X obj -11 19 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577
  5. 0;
  6. #X text -3 68 author: mrtoftrash@gmail.com;
  7. #X text -5 89 version: 2009-04-14 (initial release);
  8. #X obj 422 131 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  9. -1 -1;
  10. #X obj 419 220 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  11. -1 -1;
  12. #X obj 419 271 print;
  13. #X obj 422 179 print;
  14. #X obj 422 303 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  15. -1 -1;
  16. #X obj 422 351 print;
  17. #X text 618 484 <- open it;
  18. #X obj 422 154 tof/argument 1;
  19. #X obj 419 244 tof/argument 1 32;
  20. #X obj 422 325 tof/argument;
  21. #X text 5 176 [argument n default];
  22. #X text -4 17 description: Outputs the patch's creation arguments individually.
  23. ;
  24. #X text 516 147 This help patch is a file and therefore has no creation
  25. arguments. The [argument] to the left has no default value \, so nothing
  26. will be outputed.;
  27. #X text 514 323 With no arguments \, [argument] outputs the patch's
  28. \$0 as symbol.;
  29. #X text 427 407 Inside the following abstraction \, three [argument]
  30. objects output the creation arguments. Look inside for an explenation
  31. of the printed output.;
  32. #X text 517 460 <- bang to print;
  33. #X text 534 237 As stated before \, this help patch is a file and has
  34. no creation arguments. But the [argument] to the left has a default
  35. value and will output it.;
  36. #X text 6 199 argument 1: patch's creation argument to output.;
  37. #X text 5 216 argument 2: default value to output if the patch's creation
  38. argument is not set or if the wrong type.;
  39. #X text 4 253 inlet 1 bang: outputs the n-th patch creation argument
  40. or the default value if there is no n-th creation argument.;
  41. #X text 5 289 outlet 1 anything: outputs the n-th patch creation argument
  42. or the default value if there is no n-th creation argument.;
  43. #X text 1 331 If the patch's n-th creation argument is not of the same
  44. type as the default value \, the default value will be outputed instead.
  45. ;
  46. #X text -4 46 tags: initialization patch;
  47. #X text 1 126 see also:;
  48. #X obj 73 129 tof/arguments;
  49. #X obj 496 485 ./test-argument a b;
  50. #N canvas 450 281 494 344 META 0;
  51. #X text 12 135 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  52. Wilkes for Pd version 0.42.;
  53. #X text 12 25 LICENSE GPL v2;
  54. #X text 12 115 AUTHOR Thomas Ouellet Fredericks;
  55. #X text 12 75 INLET_0 bang;
  56. #X text 12 95 OUTLET_0 anything;
  57. #X text 12 5 KEYWORDS control abstraction abstraction_op;
  58. #X text 12 45 DESCRIPTION outputs the patch's creation arguments individually.
  59. ;
  60. #X restore 854 484 pd META;
  61. #X connect 0 0 29 0;
  62. #X connect 4 0 11 0;
  63. #X connect 5 0 12 0;
  64. #X connect 8 0 13 0;
  65. #X connect 11 0 7 0;
  66. #X connect 12 0 6 0;
  67. #X connect 13 0 9 0;