sample_play~-help.pd 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #N canvas 1 53 553 386 10;
  2. #X obj 61 317 dac~;
  3. #X obj 59 73 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  4. -1;
  5. #X obj 73 94 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
  6. ;
  7. #X floatatom 135 183 5 0 0 0 - - -;
  8. #X text 13 -28 Description: Plays a sample;
  9. #X text 14 -8 Tags: Sound Table Sample;
  10. #X text 85 71 Inlet 1 \, bang: play sample once;
  11. #X text 90 91 Inlet 1 \, float: stop/play sample in a loop;
  12. #X text 180 146 Inlet 1 \, sample symbol: set sample;
  13. #X msg 98 146 sample smppl;
  14. #X text 96 328 Outlet 1 \, signal: left channel audio output;
  15. #X text 97 316 Outlet 2 \, signal: right channel audio output;
  16. #X obj 279 -12 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  17. -1 -1;
  18. #X obj 279 12 tof/sample smppl ../../doc/sound/voice.wav;
  19. #X obj 207 247 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  20. -1 -1;
  21. #X text 172 180 set playback speed;
  22. #X floatatom 192 203 5 0 0 0 - - -;
  23. #X text 229 200 set duration (in ms);
  24. #X obj 144 266 cyclone/Snapshot~ 100;
  25. #X floatatom 145 288 5 0 0 0 - - -;
  26. #X text 211 288 Outlet 3 \, signal: progress;
  27. #X text 234 245 Outlet 4 \, bang: done;
  28. #X text 152 117 Inlet 1 \, list: play a segment of the sample;
  29. #X obj 59 229 tof/sample_play~ smppl;
  30. #X msg 88 119 0.25 0.5;
  31. #N canvas 242 185 494 344 META 0;
  32. #X text 12 225 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  33. Wilkes for Pd version 0.42.;
  34. #X text 12 45 LICENSE GPL v2;
  35. #X text 12 205 AUTHOR Thomas Ouellet Fredericks;
  36. #X text 12 25 DESCRIPTION play a sample;
  37. #X text 12 65 INLET_0 bang float list sample;
  38. #X text 12 85 INLET_1 float;
  39. #X text 12 105 INLET_2 float;
  40. #X text 12 125 OUTLET_0 signal;
  41. #X text 12 145 OUTLET_1 signal;
  42. #X text 12 165 OUTLET_2 signal;
  43. #X text 12 185 OUTLET_3 bang;
  44. #X text 12 5 KEYWORDS control abstraction array soundfile;
  45. #X restore 497 313 pd META;
  46. #X connect 1 0 23 0;
  47. #X connect 2 0 23 0;
  48. #X connect 3 0 23 1;
  49. #X connect 9 0 23 0;
  50. #X connect 12 0 13 0;
  51. #X connect 16 0 23 2;
  52. #X connect 18 0 19 0;
  53. #X connect 23 0 0 0;
  54. #X connect 23 1 0 1;
  55. #X connect 23 2 18 0;
  56. #X connect 23 3 14 0;
  57. #X connect 24 0 23 0;