0tlHelp.pd 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #N canvas 378 176 758 706 10;
  2. #X declare -path ../AutoPreset;
  3. #X declare -stdpath moonlib;
  4. #X declare -lib moonlib;
  5. #X declare -stdpath zexy;
  6. #X declare -lib zexy;
  7. #X declare -stdpath hcs;
  8. #X declare -lib hcs;
  9. #X declare -stdpath ggee;
  10. #X declare -lib ggee;
  11. #X declare -stdpath extra/moonlib;
  12. #X declare -stdpath extra/zexy;
  13. #X declare -stdpath extra/hcs;
  14. #X declare -stdpath extra/ggee;
  15. #X declare -stdpath iemlib;
  16. #X declare -lib iemlib;
  17. #X declare -stdpath extra/iemlib;
  18. #X obj 12 5 cnv 15 730 70 empty empty empty 20 12 0 14 -228856 -66577
  19. 0;
  20. #X obj 19 9 declare -path ../AutoPreset;
  21. #X obj 17 31 bng 15 250 50 0 empty empty load 17 7 0 10 -4034 -1 -1
  22. ;
  23. #X obj 230 31 bng 15 250 50 0 empty empty save 17 7 0 10 -258113 -1
  24. -1;
  25. #X obj 67 31 loadbang;
  26. #X obj 285 32 apmaster \$0-Master;
  27. #X text 525 20 AutoPreset master stuff \; master reference is "\$0-Master".
  28. ;
  29. #X obj 11 87 cnv 15 730 200 empty empty empty 20 12 0 14 -228856 -66577
  30. 0;
  31. #X obj 17 53 apmasterfile \$0-Master tlHelp.preset;
  32. #X text 19 83 The song itself (4 tracks) \, referenced to "\$0-Master"
  33. \, and named "Song".;
  34. #X text 120 30 (autoload);
  35. #X text 242 54 <- all is saved into file "tlHelp.preset".;
  36. #N canvas 1363 353 413 467 EDIT-MANUAL 0;
  37. #X text 32 52 -scroll : translate the view of the song \; double-click
  38. to jump to an arbitrary time.;
  39. #X text 32 326 -click on an event to select it \; shift-click to add
  40. an event to selection.;
  41. #X text 32 357 -grab an event by its middle to move it \; works for
  42. the whole events selection.;
  43. #X text 32 388 -grab an event by one of its end to resize it.;
  44. #X text 32 222 -green "+" button (left): add an event \, starting at
  45. index time.;
  46. #X text 32 249 -yellow button (left): edit track properties : name
  47. and color.;
  48. #X text 32 279 -yellow mute toggle(right): stop this track to emit
  49. events.;
  50. #X text 8 208 TRACK :;
  51. #X text 8 311 EVENTS :;
  52. #X text 8 38 SONG :;
  53. #X text 104 0 PdTl edition manual :;
  54. #X text 32 120 -reset (double-click) : delete all events.;
  55. #X text 32 142 -delete : delete selected events.;
  56. #X text 32 85 -index : move the time index (reading head) along the
  57. song \; double-click to jump to an arbitrary time.;
  58. #X text 32 166 -follow : auto-scroll to keep the index at the center
  59. of the screen.;
  60. #X restore 402 90 pd EDIT-MANUAL;
  61. #X obj 11 294 cnv 15 730 80 empty empty empty 20 12 0 14 -228856 -66577
  62. 0;
  63. #X obj 19 300 tlTransport \$0-Master Song;
  64. #X obj 246 299 tlLoop \$0-Master loop Song 4;
  65. #X msg 474 307 MyLoop;
  66. #X msg 436 307 home;
  67. #X msg 525 307 otherLoop;
  68. #X obj 436 343 tlGotoEvent \$0-Master Song 4;
  69. #X text 611 304 Transport utilities.;
  70. #X obj 11 383 cnv 15 730 300 empty empty empty 20 12 0 14 -228856 -66577
  71. 0;
  72. #X obj 15 405 tlTrackRef \$0-MySubMaster \$0-Master mysub Song 1;
  73. #X obj 72 452 bng 15 250 50 0 \$0-MySubMaster-rec-snd \$0-MySubMaster-rec-rcv
  74. MySubMaster-rec -40 -7 0 10 -195568 -195568 -195568;
  75. #X obj 20 502 hsl 150 15 0 127 0 0 empty empty MyFloat -2 -8 0 10 -262144
  76. -1 -1 11900 1;
  77. #X obj 17 522 apf \$0-MySubMaster MyFloat;
  78. #X obj 19 587 hsl 150 15 0 127 0 0 empty empty MyFloat2 -2 -8 0 10
  79. -262144 -1 -1 3440 1;
  80. #X obj 16 606 apf \$0-MySubMastervar MyFloat2;
  81. #X text 307 385 Create a new subreference "\$0-MySubMaster" named "mysub"
  82. under "\$0-Master" \; link this subref to Song / Track1.;
  83. #X text 182 495 Now you can link a parameter (here a float \, via [apf])
  84. to the newly created subreference. Then this float will keep a value
  85. for each recorded event. Stop the transport \, select an event on the
  86. track 1 \, change MyFloat \, press "MySubMaster-rec". That's done !
  87. ;
  88. #X obj 576 621 r \$0-MySubMaster-outside;
  89. #X obj 576 643 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
  90. 1;
  91. #X obj 575 461 unpack f f f f;
  92. #X floatatom 575 576 5 0 0 3 eventNum - -, f 5;
  93. #X floatatom 602 544 5 0 0 3 eventTime - -, f 5;
  94. #X floatatom 629 515 5 0 0 3 normalizedTime - -, f 5;
  95. #X floatatom 656 482 5 0 0 3 eventLength - -, f 5;
  96. #X obj 575 414 r \$0-MySubMaster-tlev;
  97. #X obj 575 437 speedlim 50;
  98. #X text 14 382 Using :;
  99. #X text 205 577 Additionnaly \, another subreference named "[subref]var"
  100. is created. Float belonging to this subref will interpolate their value
  101. \, from previous event's value to current's one \, all along current
  102. event duration. That means : at the beginning of the event \, value
  103. equals previous event's value \, and current value is reached at the
  104. end of the current event.;
  105. #X obj 21 117 tlSong4 \$0-Master Song;
  106. #X text 134 435 This "rec" button (and the included one) is enabled
  107. when an event on this track is selected. Open its properties to see
  108. that it has been assigned to "\$0-MySubMaster-rec-snd" and "\$0-MySubMaster-rec-rcv"
  109. channels.;
  110. #X text 537 680 Moonix::Antoine Rousseau 2012-2014;
  111. #X text 189 9 <- adjust AutoPreset path;
  112. #X obj 371 9 apdeclare;
  113. #X connect 2 0 8 0;
  114. #X connect 3 0 8 1;
  115. #X connect 4 0 2 0;
  116. #X connect 16 0 19 0;
  117. #X connect 17 0 19 0;
  118. #X connect 18 0 19 0;
  119. #X connect 24 0 25 0;
  120. #X connect 25 0 24 0;
  121. #X connect 26 0 27 0;
  122. #X connect 27 0 26 0;
  123. #X connect 30 0 31 0;
  124. #X connect 32 0 33 0;
  125. #X connect 32 1 34 0;
  126. #X connect 32 2 35 0;
  127. #X connect 32 3 36 0;
  128. #X connect 37 0 38 0;
  129. #X connect 38 0 32 0;