sample-help.pd 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #N canvas 1 53 683 625 10;
  2. #X obj 47 141 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  3. -1;
  4. #X text 44 17 Description: Loads a sound file (wav) as a sample;
  5. #X text 45 34 Tags: File Sound Table Sample;
  6. #X obj 84 559 tof/sample_unpack;
  7. #X text 51 66 Inlet 1;
  8. #X text 325 160 symbol: Sample name;
  9. #X text 285 146 Argument 1;
  10. #X text 69 79 read symbol: Read sound file into the sample's tables
  11. ;
  12. #X text 281 189 Argument 2 (optional):;
  13. #X text 324 206 symbol: Sound file to read into the sample's tables
  14. when created;
  15. #X text 323 236 float: Set the default length of the sample's tables
  16. ;
  17. #X text 278 260 Argument 3 (optional):;
  18. #X text 319 276 float: Set a default number of channels \, either 1
  19. or 2;
  20. #X text 51 307 The following example creates a mono (1 channel) sample
  21. with a table size of 441000 (10 seconds at 44100hz);
  22. #X text 62 389 Sample playback:;
  23. #X text 56 533 Sample development:;
  24. #X obj 84 579 tof/sample_packel;
  25. #X text 327 398 Sample record:;
  26. #X obj 31 200 cnv 15 230 20 empty empty empty 20 12 0 14 -260058 -66577
  27. 0;
  28. #X msg 73 141 read ../../doc/sound/voice.wav;
  29. #X obj 47 177 tof/sample test ../../doc/sound/voice.wav;
  30. #X text 71 95 bang: Display open panel;
  31. #X obj 79 505 tof/sample_shifft~;
  32. #X obj 80 481 tof/sample_granule~;
  33. #X obj 53 341 tof/sample empty 441000 1;
  34. #X obj 350 419 tof/sample_record~;
  35. #X obj 80 450 dac~;
  36. #X obj 80 428 tof/sample_play~ test;
  37. #X obj 80 410 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  38. -1;
  39. #X text 45 201 Click on [tof/sample] to view info;
  40. #N canvas 339 248 494 344 META 0;
  41. #X text 12 105 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  42. Wilkes for Pd version 0.42.;
  43. #X text 12 25 LICENSE GPL v2;
  44. #X text 12 85 AUTHOR Thomas Ouellet Fredericks;
  45. #X text 12 45 DESCRIPTION load a sound file (wav) as a sample;
  46. #X text 12 5 KEYWORDS control abstraction array soundfile;
  47. #X text 12 65 INLET_0 bang read;
  48. #X restore 629 571 pd META;
  49. #X connect 0 0 20 0;
  50. #X connect 19 0 20 0;
  51. #X connect 27 0 26 0;
  52. #X connect 27 1 26 1;
  53. #X connect 28 0 27 0;