list-onearg-help.pd 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #N canvas 0 31 550 477 10;
  2. #X msg 195 65 bang;
  3. #X obj 195 132 print float;
  4. #X msg 49 65 bang;
  5. #X msg 51 197 bang;
  6. #X obj 51 264 print blank;
  7. #X msg 53 348 bang;
  8. #X obj 53 415 print blank_with_default;
  9. #X text 24 173 When there is a blank argument \, there is no output:
  10. ;
  11. #X text 26 37 This object can take any kind of argument:;
  12. #X msg 276 349 bang;
  13. #X obj 276 416 print blank_with_default;
  14. #X msg 204 195 bang;
  15. #X obj 204 262 print blank;
  16. #X obj 49 132 print non-float;
  17. #X obj 49 101 list-onearg word;
  18. #X obj 53 384 list-onearg \$1 default;
  19. #X obj 51 233 list-onearg;
  20. #X obj 204 231 list-onearg \$1;
  21. #X obj 195 101 list-onearg 5;
  22. #X text 13 12 [list-onearg];
  23. #X obj 276 385 list-onearg 0 256;
  24. #X text 32 295 If you set a second argument \, it will be used as the
  25. default when the argument is blank. (0 is treated as no argument \,
  26. too.);
  27. #N canvas 506 181 494 396 META 0;
  28. #X text 12 25 LICENSE SIBSD;
  29. #X text 12 105 AUTHOR Frank Barknecht;
  30. #X text 12 125 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  31. added by Jonathan Wilkes for Pd version 0.42.;
  32. #X text 12 5 KEYWORDS control list_op abstraction_op;
  33. #X text 12 45 DESCRIPTION output on bang only if \$1 exists;
  34. #X text 12 65 INLET_0 bang;
  35. #X text 12 85 OUTLET_0 float symbol;
  36. #X restore 485 446 pd META;
  37. #X connect 0 0 18 0;
  38. #X connect 2 0 14 0;
  39. #X connect 3 0 16 0;
  40. #X connect 5 0 15 0;
  41. #X connect 9 0 20 0;
  42. #X connect 11 0 17 0;
  43. #X connect 14 0 13 0;
  44. #X connect 15 0 6 0;
  45. #X connect 16 0 4 0;
  46. #X connect 17 0 12 0;
  47. #X connect 18 0 1 0;
  48. #X connect 20 0 10 0;