ds_transition_morph.pd 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. #N canvas 117 78 668 520 10;
  2. #N canvas 373 51 762 694 morph 0;
  3. #X obj 215 68 inlet;
  4. #X obj 153 780 outlet;
  5. #X obj 272 50 * 1000;
  6. #X obj 239 780 outlet;
  7. #X obj 272 28 r /ds/\$1\$2/morph/time;
  8. #X obj 215 90 t b f;
  9. #X obj 153 504 sel 1;
  10. #X obj 257 134 f 0;
  11. #X msg 257 374 set 0 \, 1 \$1;
  12. #X obj 257 433 line;
  13. #X obj 284 570 r \$2;
  14. #X obj 284 591 route float;
  15. #X obj 254 659 - 0;
  16. #X obj 239 681 *;
  17. #X obj 239 723 + 0;
  18. #X obj 269 636 t f f;
  19. #X obj 278 398 r /ds/\$1\$2/morph/timegrain;
  20. #X text 286 418 only for Pd version >= 0.43;
  21. #X obj 269 614 f;
  22. #X obj 242 550 t f b;
  23. #X obj 470 229 r /ds/\$1\$2/morph/curve/shape;
  24. #X obj 488 274 r /ds/\$1\$2/morph/curve/weight;
  25. #X obj 507 318 r /ds/\$1\$2/morph/curve/resolution;
  26. #X obj 527 365 r /ds/\$1\$2/morph/curve/quality;
  27. #X obj 546 422 r /ds/\$1\$2/morph/curve/vis;
  28. #X msg 470 251 shape \$1;
  29. #X msg 488 296 weight \$1;
  30. #X msg 527 399 quality \$1;
  31. #X msg 507 340 resolution \$1;
  32. #X obj 58 120 b;
  33. #X msg 58 212 stop;
  34. #X text 71 78 emergency stop;
  35. #X text 65 646 bang when done;
  36. #X text 357 640 0...1 --> old_value...new_value;
  37. #X obj 58 98 r /ds/\$1/transition/stop;
  38. #X obj 345 54 r /ds/\$1/transition/resume;
  39. #X obj 345 214 * -1;
  40. #X obj 345 236 + 1;
  41. #X obj 345 267 * 0;
  42. #X obj 345 168 f 0;
  43. #X obj 257 458 t f f f;
  44. #X obj 345 143 b;
  45. #X obj 345 190 t f f;
  46. #X obj 372 339 pack 0 0;
  47. #X obj 257 216 t f f;
  48. #X obj 345 289 t f f;
  49. #X msg 546 444 vis;
  50. #X obj 257 504 fadecurve \$0-/ds/\$1\$2/morph/curve 128 1;
  51. #X obj 546 472 r /ds/\$1\$2/morph/curve/loadbang;
  52. #X msg 546 494 loadbang;
  53. #X obj 345 122 spigot;
  54. #X obj 378 99 r \$0-state;
  55. #X obj 97 121 r \$0-state;
  56. #X obj 97 163 sel 0;
  57. #X obj 97 143 change;
  58. #X msg 372 364 set \$2 \, 1 \$1;
  59. #X obj 345 313 sel 0;
  60. #X connect 0 0 5 0;
  61. #X connect 2 0 7 1;
  62. #X connect 4 0 2 0;
  63. #X connect 5 0 7 0;
  64. #X connect 5 1 19 0;
  65. #X connect 6 0 1 0;
  66. #X connect 7 0 44 0;
  67. #X connect 8 0 9 0;
  68. #X connect 9 0 40 0;
  69. #X connect 10 0 11 0;
  70. #X connect 11 0 18 1;
  71. #X connect 12 0 13 1;
  72. #X connect 13 0 14 0;
  73. #X connect 14 0 3 0;
  74. #X connect 15 0 12 1;
  75. #X connect 15 1 14 1;
  76. #X connect 16 0 9 2;
  77. #X connect 18 0 15 0;
  78. #X connect 19 0 12 0;
  79. #X connect 19 1 18 0;
  80. #X connect 20 0 25 0;
  81. #X connect 21 0 26 0;
  82. #X connect 22 0 28 0;
  83. #X connect 23 0 27 0;
  84. #X connect 24 0 46 0;
  85. #X connect 25 0 47 1;
  86. #X connect 26 0 47 1;
  87. #X connect 27 0 47 1;
  88. #X connect 28 0 47 1;
  89. #X connect 29 0 30 0;
  90. #X connect 30 0 9 0;
  91. #X connect 34 0 29 0;
  92. #X connect 35 0 50 0;
  93. #X connect 36 0 37 0;
  94. #X connect 37 0 38 0;
  95. #X connect 38 0 45 0;
  96. #X connect 39 0 42 0;
  97. #X connect 40 0 6 0;
  98. #X connect 40 1 47 0;
  99. #X connect 40 2 39 1;
  100. #X connect 41 0 39 0;
  101. #X connect 42 0 36 0;
  102. #X connect 42 1 43 1;
  103. #X connect 43 0 55 0;
  104. #X connect 44 0 8 0;
  105. #X connect 44 1 38 1;
  106. #X connect 45 0 56 0;
  107. #X connect 45 1 38 1;
  108. #X connect 46 0 47 1;
  109. #X connect 47 0 13 0;
  110. #X connect 48 0 49 0;
  111. #X connect 49 0 47 1;
  112. #X connect 50 0 41 0;
  113. #X connect 51 0 50 1;
  114. #X connect 52 0 54 0;
  115. #X connect 53 0 30 0;
  116. #X connect 54 0 53 0;
  117. #X connect 55 0 9 0;
  118. #X connect 56 1 43 0;
  119. #X restore 253 463 pd morph;
  120. #X obj 194 140 r /ds/\$1\$2/morph;
  121. #X obj 207 298 r /ds/\$1\$2/morph/time;
  122. #X obj 155 378 kdemux2;
  123. #X obj 194 273 && 1;
  124. #X obj 208 248 t b f;
  125. #X obj 208 166 r /ds/\$1/morph;
  126. #X obj 155 463 t b a;
  127. #X text 401 508 (c)2013 Marian Weger;
  128. #N canvas 39 155 844 480 copy_paste_settings 0;
  129. #X obj 40 59 r /ds/\$1\$2/settings/paste;
  130. #X obj 418 89 r /ds/\$1\$2/settings/copy;
  131. #X obj 40 138 list append \$1 \$2;
  132. #X obj 418 138 list append \$1 \$2;
  133. #X obj 40 111 b;
  134. #X obj 418 111 b;
  135. #X obj 54 86 r /ds/\$1/reg/settings/buffer/paste/all;
  136. #X msg 40 170 \; /ds/\$1/reg/settings/buffer/morph/route /ds/\$1\$2/morph
  137. \; /ds/\$1/reg/settings/buffer/morph/time/route /ds/\$1\$2/morph/time
  138. \; /ds/\$1/reg/settings/buffer/morph/timegrain/route /ds/\$1\$2/morph/timegrain
  139. \; /ds/\$1/reg/settings/buffer/morph/curve/shape/route /ds/\$1\$2/morph/curve/shape
  140. \; /ds/\$1/reg/settings/buffer/morph/curve/weight/route /ds/\$1\$2/morph/curve/weight
  141. \; /ds/\$1/reg/settings/buffer/morph/curve/resolution/route /ds/\$1\$2/morph/curve/resolution
  142. \; /ds/\$1/reg/settings/buffer/morph/curve/quality/route /ds/\$1\$2/morph/curve/quality
  143. \;;
  144. #X msg 418 170 \; /ds/\$1\$2/morph/route /ds/\$1/reg/settings/buffer/morph
  145. \; /ds/\$1\$2/morph/time/route /ds/\$1/reg/settings/buffer/morph/time
  146. \; /ds/\$1\$2/morph/timegrain/route /ds/\$1/reg/settings/buffer/morph/timegrain
  147. \; /ds/\$1\$2/morph/curve/shape/route /ds/\$1/reg/settings/buffer/morph/curve/shape
  148. \; /ds/\$1\$2/morph/curve/weight/route /ds/\$1/reg/settings/buffer/morph/curve/weight
  149. \; /ds/\$1\$2/morph/curve/resolution/route /ds/\$1/reg/settings/buffer/morph/curve/resolution
  150. \; /ds/\$1\$2/morph/curve/quality/route /ds/\$1/reg/settings/buffer/morph/curve/quality
  151. \;;
  152. #X connect 0 0 4 0;
  153. #X connect 1 0 5 0;
  154. #X connect 2 0 7 0;
  155. #X connect 3 0 8 0;
  156. #X connect 4 0 2 0;
  157. #X connect 5 0 3 0;
  158. #X connect 6 0 4 0;
  159. #X restore 375 126 pd copy_paste_settings;
  160. #N canvas 185 69 575 485 register 0;
  161. #X obj 47 288 list prepend \$1 \$2;
  162. #X obj 260 75 ds_reg_settings \$1 \$2/morph;
  163. #X obj 260 95 ds_reg_settings \$1 \$2/morph/time;
  164. #X obj 260 115 ds_reg_settings \$1 \$2/morph/curve/shape;
  165. #X obj 260 135 ds_reg_settings \$1 \$2/morph/curve/weight;
  166. #X obj 260 155 ds_reg_settings \$1 \$2/morph/curve/resolution;
  167. #X obj 260 175 ds_reg_settings \$1 \$2/morph/curve/quality;
  168. #X obj 260 195 ds_reg_settings \$1 \$2/morph/timegrain;
  169. #X msg 47 330 \; /ds/\$1\$2/morph/reg/state \$3 \; /ds/\$1\$2/morph/time/reg/state
  170. \$3 \; /ds/\$1\$2/morph/timegrain/reg/state \$3 \; /ds/\$1\$2/morph/curve/shape/reg/state
  171. \$3 \; /ds/\$1\$2/morph/curve/weight/reg/state \$3 \; /ds/\$1\$2/morph/curve/resolution/reg/state
  172. \$3 \; /ds/\$1\$2/morph/curve/quality/reg/state \$3 \;;
  173. #X obj 47 238 r /ds/\$1\$2/busy;
  174. #X obj 47 260 == 0;
  175. #X connect 0 0 8 0;
  176. #X connect 9 0 10 0;
  177. #X connect 10 0 0 0;
  178. #X restore 375 146 pd register;
  179. #X obj 207 320 t b f;
  180. #X obj 194 345 &&;
  181. #X text 28 26 ds_transition_morph <domain> <name> <arg1> <arg2> ...
  182. ;
  183. #X obj 155 99 inlet value;
  184. #X obj 38 99 inlet dispatched;
  185. #X obj 253 413 route float;
  186. #X obj 155 515 outlet dispatched;
  187. #X text 35 49 (used by ds_reg);
  188. #X obj 298 515 outlet value;
  189. #N canvas 813 160 362 398 INIT 0;
  190. #X obj 28 24 loadbang;
  191. #X obj 55 76 list prepend \$1 \$2;
  192. #X msg 55 108 \; /ds/\$1\$2/morph/curve/quality 0 \; /ds/\$1\$2/morph/curve/weight
  193. 0 \; /ds/\$1\$2/morph/curve/shape 0 \; /ds/\$1\$2/morph/curve/resolution
  194. 128 \; /ds/\$1\$2/morph/time 0 \; /ds/\$1\$2/morph/timegrain 20 \;
  195. /ds/\$1\$2/morph 0 \;;
  196. #X obj 28 46 t b b;
  197. #X obj 28 231 s \$0-loadbang;
  198. #X connect 0 0 3 0;
  199. #X connect 1 0 2 0;
  200. #X connect 3 0 4 0;
  201. #X connect 3 1 1 0;
  202. #X restore 375 106 pd INIT;
  203. #X obj 297 376 s \$0-state;
  204. #X obj 227 194 r \$0-loadbang;
  205. #X obj 227 216 v /ds/\$1/morph/v;
  206. #X connect 0 0 17 0;
  207. #X connect 0 1 19 0;
  208. #X connect 1 0 4 0;
  209. #X connect 2 0 11 0;
  210. #X connect 3 0 7 0;
  211. #X connect 3 1 16 0;
  212. #X connect 4 0 12 0;
  213. #X connect 5 0 4 0;
  214. #X connect 5 1 4 1;
  215. #X connect 6 0 5 0;
  216. #X connect 7 0 17 0;
  217. #X connect 7 1 19 0;
  218. #X connect 11 0 12 0;
  219. #X connect 11 1 12 1;
  220. #X connect 12 0 3 1;
  221. #X connect 12 0 21 0;
  222. #X connect 14 0 3 0;
  223. #X connect 16 0 0 0;
  224. #X connect 16 1 7 0;
  225. #X connect 22 0 23 0;
  226. #X connect 23 0 5 0;