mira-osc-controller.maxpat 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. {
  2. "patcher" : {
  3. "fileversion" : 1,
  4. "appversion" : {
  5. "major" : 7,
  6. "minor" : 3,
  7. "revision" : 4,
  8. "architecture" : "x86",
  9. "modernui" : 1
  10. }
  11. ,
  12. "rect" : [ 256.0, 173.0, 1693.0, 1091.0 ],
  13. "bglocked" : 0,
  14. "openinpresentation" : 0,
  15. "default_fontsize" : 12.0,
  16. "default_fontface" : 0,
  17. "default_fontname" : "Arial",
  18. "gridonopen" : 1,
  19. "gridsize" : [ 15.0, 15.0 ],
  20. "gridsnaponopen" : 1,
  21. "objectsnaponopen" : 1,
  22. "statusbarvisible" : 2,
  23. "toolbarvisible" : 1,
  24. "lefttoolbarpinned" : 0,
  25. "toptoolbarpinned" : 0,
  26. "righttoolbarpinned" : 0,
  27. "bottomtoolbarpinned" : 0,
  28. "toolbars_unpinned_last_save" : 0,
  29. "tallnewobj" : 0,
  30. "boxanimatetime" : 200,
  31. "enablehscroll" : 1,
  32. "enablevscroll" : 1,
  33. "devicewidth" : 0.0,
  34. "description" : "",
  35. "digest" : "",
  36. "tags" : "",
  37. "style" : "",
  38. "subpatcher_template" : "",
  39. "boxes" : [ {
  40. "box" : {
  41. "id" : "obj-6",
  42. "maxclass" : "newobj",
  43. "numinlets" : 1,
  44. "numoutlets" : 1,
  45. "outlettype" : [ "" ],
  46. "patching_rect" : [ 691.363464, 355.329987, 163.0, 22.0 ],
  47. "presentation_rect" : [ 685.030151, 311.329987, 0.0, 0.0 ],
  48. "style" : "",
  49. "text" : "prepend /cube/sphere:radius"
  50. }
  51. }
  52. , {
  53. "box" : {
  54. "id" : "obj-5",
  55. "maxclass" : "comment",
  56. "numinlets" : 1,
  57. "numoutlets" : 0,
  58. "patching_rect" : [ 678.363464, 84.666672, 50.666668, 20.0 ],
  59. "presentation_rect" : [ 692.363464, 77.666672, 0.0, 0.0 ],
  60. "style" : "",
  61. "text" : "Radius"
  62. }
  63. }
  64. , {
  65. "box" : {
  66. "floatoutput" : 1,
  67. "id" : "obj-3",
  68. "maxclass" : "slider",
  69. "numinlets" : 1,
  70. "numoutlets" : 1,
  71. "outlettype" : [ "" ],
  72. "parameter_enable" : 1,
  73. "patching_rect" : [ 678.363464, 121.333336, 33.0, 155.0 ],
  74. "presentation_rect" : [ 691.363464, 109.0, 0.0, 0.0 ],
  75. "saved_attribute_attributes" : {
  76. "valueof" : {
  77. "parameter_longname" : "slider[6]",
  78. "parameter_shortname" : "slider",
  79. "parameter_type" : 3,
  80. "parameter_invisible" : 1
  81. }
  82. }
  83. ,
  84. "size" : 10.0,
  85. "style" : "",
  86. "varname" : "slider[1]"
  87. }
  88. }
  89. , {
  90. "box" : {
  91. "id" : "obj-2",
  92. "maxclass" : "newobj",
  93. "numinlets" : 1,
  94. "numoutlets" : 1,
  95. "outlettype" : [ "" ],
  96. "patching_rect" : [ 502.030151, 355.329987, 148.0, 22.0 ],
  97. "style" : "",
  98. "text" : "prepend /cube/sphere:rgb"
  99. }
  100. }
  101. , {
  102. "box" : {
  103. "compatibility" : 1,
  104. "id" : "obj-1",
  105. "maxclass" : "swatch",
  106. "numinlets" : 3,
  107. "numoutlets" : 2,
  108. "outlettype" : [ "", "float" ],
  109. "parameter_enable" : 1,
  110. "patching_rect" : [ 488.030151, 113.0, 155.0, 165.0 ],
  111. "saturation" : 248,
  112. "saved_attribute_attributes" : {
  113. "valueof" : {
  114. "parameter_longname" : "swatch[1]",
  115. "parameter_shortname" : "swatch",
  116. "parameter_type" : 3,
  117. "parameter_invisible" : 1
  118. }
  119. }
  120. ,
  121. "varname" : "swatch[1]"
  122. }
  123. }
  124. , {
  125. "box" : {
  126. "id" : "obj-30",
  127. "maxclass" : "newobj",
  128. "numinlets" : 1,
  129. "numoutlets" : 1,
  130. "outlettype" : [ "" ],
  131. "patching_rect" : [ 272.030151, 466.329987, 124.0, 22.0 ],
  132. "style" : "",
  133. "text" : "prepend /cube/:depth"
  134. }
  135. }
  136. , {
  137. "box" : {
  138. "id" : "obj-31",
  139. "maxclass" : "comment",
  140. "numinlets" : 1,
  141. "numoutlets" : 0,
  142. "patching_rect" : [ 364.363464, 84.666672, 50.666668, 20.0 ],
  143. "style" : "",
  144. "text" : "Depth"
  145. }
  146. }
  147. , {
  148. "box" : {
  149. "floatoutput" : 1,
  150. "id" : "obj-32",
  151. "maxclass" : "slider",
  152. "numinlets" : 1,
  153. "numoutlets" : 1,
  154. "outlettype" : [ "" ],
  155. "parameter_enable" : 1,
  156. "patching_rect" : [ 353.363464, 113.0, 33.0, 155.0 ],
  157. "saved_attribute_attributes" : {
  158. "valueof" : {
  159. "parameter_longname" : "slider[5]",
  160. "parameter_shortname" : "slider",
  161. "parameter_type" : 3,
  162. "parameter_invisible" : 1
  163. }
  164. }
  165. ,
  166. "size" : 10.0,
  167. "style" : "",
  168. "varname" : "slider[5]"
  169. }
  170. }
  171. , {
  172. "box" : {
  173. "id" : "obj-29",
  174. "maxclass" : "newobj",
  175. "numinlets" : 1,
  176. "numoutlets" : 1,
  177. "outlettype" : [ "" ],
  178. "patching_rect" : [ 213.86673, 426.333344, 123.0, 22.0 ],
  179. "style" : "",
  180. "text" : "prepend /cube:height"
  181. }
  182. }
  183. , {
  184. "box" : {
  185. "id" : "obj-28",
  186. "maxclass" : "comment",
  187. "numinlets" : 1,
  188. "numoutlets" : 0,
  189. "patching_rect" : [ 307.033386, 84.666672, 50.666668, 20.0 ],
  190. "style" : "",
  191. "text" : "Height"
  192. }
  193. }
  194. , {
  195. "box" : {
  196. "floatoutput" : 1,
  197. "id" : "obj-27",
  198. "maxclass" : "slider",
  199. "numinlets" : 1,
  200. "numoutlets" : 1,
  201. "outlettype" : [ "" ],
  202. "parameter_enable" : 1,
  203. "patching_rect" : [ 307.033386, 113.0, 33.0, 155.0 ],
  204. "saved_attribute_attributes" : {
  205. "valueof" : {
  206. "parameter_longname" : "slider[4]",
  207. "parameter_shortname" : "slider",
  208. "parameter_type" : 3,
  209. "parameter_invisible" : 1
  210. }
  211. }
  212. ,
  213. "size" : 10.0,
  214. "style" : "",
  215. "varname" : "slider[4]"
  216. }
  217. }
  218. , {
  219. "box" : {
  220. "id" : "obj-25",
  221. "maxclass" : "newobj",
  222. "numinlets" : 1,
  223. "numoutlets" : 0,
  224. "patching_rect" : [ 338.863464, 587.0, 160.0, 22.0 ],
  225. "style" : "",
  226. "text" : "udpsend 192.168.1.35 7400"
  227. }
  228. }
  229. , {
  230. "box" : {
  231. "id" : "obj-24",
  232. "maxclass" : "newobj",
  233. "numinlets" : 1,
  234. "numoutlets" : 1,
  235. "outlettype" : [ "" ],
  236. "patching_rect" : [ 28.0, 335.66333, 108.0, 22.0 ],
  237. "style" : "",
  238. "text" : "prepend /cube:rgb"
  239. }
  240. }
  241. , {
  242. "box" : {
  243. "compatibility" : 1,
  244. "id" : "obj-22",
  245. "maxclass" : "swatch",
  246. "numinlets" : 3,
  247. "numoutlets" : 2,
  248. "outlettype" : [ "", "float" ],
  249. "parameter_enable" : 1,
  250. "patching_rect" : [ 80.0, 116.333336, 155.0, 165.0 ],
  251. "saturation" : 251,
  252. "saved_attribute_attributes" : {
  253. "valueof" : {
  254. "parameter_longname" : "swatch",
  255. "parameter_shortname" : "swatch",
  256. "parameter_type" : 3,
  257. "parameter_invisible" : 1
  258. }
  259. }
  260. ,
  261. "varname" : "swatch"
  262. }
  263. }
  264. , {
  265. "box" : {
  266. "id" : "obj-18",
  267. "maxclass" : "newobj",
  268. "numinlets" : 1,
  269. "numoutlets" : 1,
  270. "outlettype" : [ "" ],
  271. "patching_rect" : [ 140.033386, 388.66333, 119.0, 22.0 ],
  272. "style" : "",
  273. "text" : "prepend /cube:width"
  274. }
  275. }
  276. , {
  277. "box" : {
  278. "id" : "obj-16",
  279. "maxclass" : "comment",
  280. "numinlets" : 1,
  281. "numoutlets" : 0,
  282. "patching_rect" : [ 244.200073, 84.666672, 50.666668, 20.0 ],
  283. "style" : "",
  284. "text" : "Width"
  285. }
  286. }
  287. , {
  288. "box" : {
  289. "floatoutput" : 1,
  290. "id" : "obj-17",
  291. "maxclass" : "slider",
  292. "numinlets" : 1,
  293. "numoutlets" : 1,
  294. "outlettype" : [ "" ],
  295. "parameter_enable" : 1,
  296. "patching_rect" : [ 258.86673, 113.0, 33.0, 155.0 ],
  297. "saved_attribute_attributes" : {
  298. "valueof" : {
  299. "parameter_longname" : "slider[3]",
  300. "parameter_shortname" : "slider",
  301. "parameter_type" : 3,
  302. "parameter_invisible" : 1
  303. }
  304. }
  305. ,
  306. "size" : 10.0,
  307. "style" : "",
  308. "varname" : "slider[3]"
  309. }
  310. }
  311. , {
  312. "box" : {
  313. "background" : 1,
  314. "id" : "obj-7",
  315. "ignoreclick" : 1,
  316. "maxclass" : "mira.frame",
  317. "numinlets" : 0,
  318. "numoutlets" : 0,
  319. "patching_rect" : [ 463.0, 55.600006, 364.771851, 259.329987 ]
  320. }
  321. }
  322. , {
  323. "box" : {
  324. "background" : 1,
  325. "id" : "obj-4",
  326. "ignoreclick" : 1,
  327. "maxclass" : "mira.frame",
  328. "numinlets" : 0,
  329. "numoutlets" : 0,
  330. "patching_rect" : [ 66.0, 55.600006, 358.399994, 254.799988 ]
  331. }
  332. }
  333. ],
  334. "lines" : [ {
  335. "patchline" : {
  336. "destination" : [ "obj-2", 0 ],
  337. "source" : [ "obj-1", 0 ]
  338. }
  339. }
  340. , {
  341. "patchline" : {
  342. "destination" : [ "obj-18", 0 ],
  343. "source" : [ "obj-17", 0 ]
  344. }
  345. }
  346. , {
  347. "patchline" : {
  348. "destination" : [ "obj-25", 0 ],
  349. "source" : [ "obj-18", 0 ]
  350. }
  351. }
  352. , {
  353. "patchline" : {
  354. "destination" : [ "obj-25", 0 ],
  355. "source" : [ "obj-2", 0 ]
  356. }
  357. }
  358. , {
  359. "patchline" : {
  360. "destination" : [ "obj-24", 0 ],
  361. "source" : [ "obj-22", 0 ]
  362. }
  363. }
  364. , {
  365. "patchline" : {
  366. "destination" : [ "obj-25", 0 ],
  367. "source" : [ "obj-24", 0 ]
  368. }
  369. }
  370. , {
  371. "patchline" : {
  372. "destination" : [ "obj-29", 0 ],
  373. "source" : [ "obj-27", 0 ]
  374. }
  375. }
  376. , {
  377. "patchline" : {
  378. "destination" : [ "obj-25", 0 ],
  379. "source" : [ "obj-29", 0 ]
  380. }
  381. }
  382. , {
  383. "patchline" : {
  384. "destination" : [ "obj-6", 0 ],
  385. "source" : [ "obj-3", 0 ]
  386. }
  387. }
  388. , {
  389. "patchline" : {
  390. "destination" : [ "obj-25", 0 ],
  391. "source" : [ "obj-30", 0 ]
  392. }
  393. }
  394. , {
  395. "patchline" : {
  396. "destination" : [ "obj-30", 0 ],
  397. "source" : [ "obj-32", 0 ]
  398. }
  399. }
  400. , {
  401. "patchline" : {
  402. "destination" : [ "obj-25", 0 ],
  403. "source" : [ "obj-6", 0 ]
  404. }
  405. }
  406. ],
  407. "parameters" : {
  408. "obj-3" : [ "slider[6]", "slider", 0 ],
  409. "obj-32" : [ "slider[5]", "slider", 0 ],
  410. "obj-1" : [ "swatch[1]", "swatch", 0 ],
  411. "obj-17" : [ "slider[3]", "slider", 0 ],
  412. "obj-27" : [ "slider[4]", "slider", 0 ],
  413. "obj-22" : [ "swatch", "swatch", 0 ]
  414. }
  415. ,
  416. "dependency_cache" : [ ],
  417. "autosave" : 0
  418. }
  419. }