Guest User

Untitled

a guest
Apr 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1. ## old format:
  2.  
  3. max v2;
  4. #N vpatcher 343 333 686 616;
  5. #N comlet delay time;
  6. #P inlet 201 80 15 0;
  7. #N comlet list;
  8. #P outlet 37 186 15 0;
  9. #N comlet four int list to be delayed;
  10. #P inlet 37 76 15 0;
  11. #P window setfont "Sans Serif" 9.;
  12. #P newex 37 163 135 196617 pack i i i i;
  13. #P newex 160 138 51 196617 pipe 0;
  14. #P newex 119 138 35 196617 pipe 0;
  15. #P newex 78 139 35 196617 pipe 0;
  16. #P newex 37 139 35 196617 pipe 0;
  17. #P newex 37 99 133 196617 unpack i i i i;
  18. #P connect 6 0 0 0;
  19. #P connect 0 0 1 0;
  20. #P connect 1 0 5 0;
  21. #P connect 5 0 7 0;
  22. #P connect 8 0 1 1;
  23. #P connect 0 1 2 0;
  24. #P connect 2 0 5 1;
  25. #P connect 8 0 2 1;
  26. #P connect 0 2 3 0;
  27. #P connect 3 0 5 2;
  28. #P connect 8 0 3 1;
  29. #P connect 0 3 4 0;
  30. #P connect 4 0 5 3;
  31. #P connect 8 0 4 1;
  32. #P pop;
  33.  
  34. ## same "patcher" / script, new format (yes, it's JSON):
  35.  
  36. {
  37. "patcher" : {
  38. "fileversion" : 1,
  39. "rect" : [ 789.0, 308.0, 343.0, 309.0 ],
  40. "bglocked" : 0,
  41. "defrect" : [ 789.0, 308.0, 343.0, 309.0 ],
  42. "openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
  43. "openinpresentation" : 0,
  44. "default_fontsize" : 12.0,
  45. "default_fontface" : 0,
  46. "default_fontname" : "Arial",
  47. "gridonopen" : 0,
  48. "gridsize" : [ 15.0, 15.0 ],
  49. "gridsnaponopen" : 0,
  50. "toolbarvisible" : 1,
  51. "boxanimatetime" : 200,
  52. "imprint" : 0,
  53. "metadata" : [ ],
  54. "boxes" : [ {
  55. "box" : {
  56. "maxclass" : "inlet",
  57. "numinlets" : 0,
  58. "numoutlets" : 1,
  59. "patching_rect" : [ 201.0, 80.0, 15.0, 15.0 ],
  60. "outlettype" : [ "" ],
  61. "id" : "obj-1",
  62. "comment" : "delay time"
  63. }
  64.  
  65. }
  66. , {
  67. "box" : {
  68. "maxclass" : "outlet",
  69. "numinlets" : 1,
  70. "numoutlets" : 0,
  71. "patching_rect" : [ 37.0, 186.0, 15.0, 15.0 ],
  72. "id" : "obj-2",
  73. "comment" : "list"
  74. }
  75.  
  76. }
  77. , {
  78. "box" : {
  79. "maxclass" : "inlet",
  80. "numinlets" : 0,
  81. "numoutlets" : 1,
  82. "patching_rect" : [ 37.0, 76.0, 15.0, 15.0 ],
  83. "outlettype" : [ "" ],
  84. "id" : "obj-3",
  85. "comment" : "four int list to be delayed"
  86. }
  87.  
  88. }
  89. , {
  90. "box" : {
  91. "maxclass" : "newobj",
  92. "text" : "pack i i i i",
  93. "numinlets" : 4,
  94. "fontsize" : 9.0,
  95. "numoutlets" : 1,
  96. "patching_rect" : [ 37.0, 163.0, 135.0, 17.0 ],
  97. "outlettype" : [ "" ],
  98. "fontname" : "Arial",
  99. "id" : "obj-4"
  100. }
  101.  
  102. }
  103. , {
  104. "box" : {
  105. "maxclass" : "newobj",
  106. "text" : "pipe 0",
  107. "numinlets" : 2,
  108. "fontsize" : 9.0,
  109. "numoutlets" : 1,
  110. "patching_rect" : [ 160.0, 138.0, 51.0, 17.0 ],
  111. "outlettype" : [ "" ],
  112. "fontname" : "Arial",
  113. "id" : "obj-5"
  114. }
  115.  
  116. }
  117. , {
  118. "box" : {
  119. "maxclass" : "newobj",
  120. "text" : "pipe 0",
  121. "numinlets" : 2,
  122. "fontsize" : 9.0,
  123. "numoutlets" : 1,
  124. "patching_rect" : [ 119.0, 138.0, 35.0, 17.0 ],
  125. "outlettype" : [ "" ],
  126. "fontname" : "Arial",
  127. "id" : "obj-6"
  128. }
  129.  
  130. }
  131. , {
  132. "box" : {
  133. "maxclass" : "newobj",
  134. "text" : "pipe 0",
  135. "numinlets" : 2,
  136. "fontsize" : 9.0,
  137. "numoutlets" : 1,
  138. "patching_rect" : [ 78.0, 139.0, 35.0, 17.0 ],
  139. "outlettype" : [ "" ],
  140. "fontname" : "Arial",
  141. "id" : "obj-7"
  142. }
  143.  
  144. }
  145. , {
  146. "box" : {
  147. "maxclass" : "newobj",
  148. "text" : "pipe 0",
  149. "numinlets" : 2,
  150. "fontsize" : 9.0,
  151. "numoutlets" : 1,
  152. "patching_rect" : [ 37.0, 139.0, 35.0, 17.0 ],
  153. "outlettype" : [ "" ],
  154. "fontname" : "Arial",
  155. "id" : "obj-8"
  156. }
  157.  
  158. }
  159. , {
  160. "box" : {
  161. "maxclass" : "newobj",
  162. "text" : "unpack i i i i",
  163. "numinlets" : 1,
  164. "fontsize" : 9.0,
  165. "numoutlets" : 4,
  166. "patching_rect" : [ 37.0, 99.0, 133.0, 17.0 ],
  167. "outlettype" : [ "int", "int", "int", "int" ],
  168. "fontname" : "Arial",
  169. "id" : "obj-9"
  170. }
  171.  
  172. }
  173. ],
  174. "lines" : [ {
  175. "patchline" : {
  176. "source" : [ "obj-1", 0 ],
  177. "destination" : [ "obj-5", 1 ],
  178. "hidden" : 0,
  179. "midpoints" : [ ]
  180. }
  181.  
  182. }
  183. , {
  184. "patchline" : {
  185. "source" : [ "obj-5", 0 ],
  186. "destination" : [ "obj-4", 3 ],
  187. "hidden" : 0,
  188. "midpoints" : [ ]
  189. }
  190.  
  191. }
  192. , {
  193. "patchline" : {
  194. "source" : [ "obj-9", 3 ],
  195. "destination" : [ "obj-5", 0 ],
  196. "hidden" : 0,
  197. "midpoints" : [ ]
  198. }
  199.  
  200. }
  201. , {
  202. "patchline" : {
  203. "source" : [ "obj-1", 0 ],
  204. "destination" : [ "obj-6", 1 ],
  205. "hidden" : 0,
  206. "midpoints" : [ ]
  207. }
  208.  
  209. }
  210. , {
  211. "patchline" : {
  212. "source" : [ "obj-6", 0 ],
  213. "destination" : [ "obj-4", 2 ],
  214. "hidden" : 0,
  215. "midpoints" : [ ]
  216. }
  217.  
  218. }
  219. , {
  220. "patchline" : {
  221. "source" : [ "obj-9", 2 ],
  222. "destination" : [ "obj-6", 0 ],
  223. "hidden" : 0,
  224. "midpoints" : [ ]
  225. }
  226.  
  227. }
  228. , {
  229. "patchline" : {
  230. "source" : [ "obj-1", 0 ],
  231. "destination" : [ "obj-7", 1 ],
  232. "hidden" : 0,
  233. "midpoints" : [ ]
  234. }
  235.  
  236. }
  237. , {
  238. "patchline" : {
  239. "source" : [ "obj-7", 0 ],
  240. "destination" : [ "obj-4", 1 ],
  241. "hidden" : 0,
  242. "midpoints" : [ ]
  243. }
  244.  
  245. }
  246. , {
  247. "patchline" : {
  248. "source" : [ "obj-9", 1 ],
  249. "destination" : [ "obj-7", 0 ],
  250. "hidden" : 0,
  251. "midpoints" : [ ]
  252. }
  253.  
  254. }
  255. , {
  256. "patchline" : {
  257. "source" : [ "obj-1", 0 ],
  258. "destination" : [ "obj-8", 1 ],
  259. "hidden" : 0,
  260. "midpoints" : [ ]
  261. }
  262.  
  263. }
  264. , {
  265. "patchline" : {
  266. "source" : [ "obj-4", 0 ],
  267. "destination" : [ "obj-2", 0 ],
  268. "hidden" : 0,
  269. "midpoints" : [ ]
  270. }
  271.  
  272. }
  273. , {
  274. "patchline" : {
  275. "source" : [ "obj-8", 0 ],
  276. "destination" : [ "obj-4", 0 ],
  277. "hidden" : 0,
  278. "midpoints" : [ ]
  279. }
  280.  
  281. }
  282. , {
  283. "patchline" : {
  284. "source" : [ "obj-9", 0 ],
  285. "destination" : [ "obj-8", 0 ],
  286. "hidden" : 0,
  287. "midpoints" : [ ]
  288. }
  289.  
  290. }
  291. , {
  292. "patchline" : {
  293. "source" : [ "obj-3", 0 ],
  294. "destination" : [ "obj-9", 0 ],
  295. "hidden" : 0,
  296. "midpoints" : [ ]
  297. }
  298.  
  299. }
  300. ]
  301. }
  302.  
  303. }
Add Comment
Please, Sign In to add comment