Guest User

Untitled

a guest
May 7th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.91 KB | None | 0 0
  1. {
  2. "patcher" : {
  3. "fileversion" : 1,
  4. "rect" : [ 159.0, 1202.0, 1239.0, 557.0 ],
  5. "bglocked" : 0,
  6. "defrect" : [ 159.0, 1202.0, 1239.0, 557.0 ],
  7. "openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
  8. "openinpresentation" : 0,
  9. "default_fontsize" : 10.0,
  10. "default_fontface" : 0,
  11. "default_fontname" : "Helvetica",
  12. "gridonopen" : 0,
  13. "gridsize" : [ 15.0, 15.0 ],
  14. "gridsnaponopen" : 0,
  15. "toolbarvisible" : 1,
  16. "boxanimatetime" : 200,
  17. "imprint" : 0,
  18. "enablehscroll" : 1,
  19. "enablevscroll" : 1,
  20. "devicewidth" : 0.0,
  21. "boxes" : [ {
  22. "box" : {
  23. "maxclass" : "message",
  24. "text" : "/control/runScript \"$(test1.fillDiv).css('backgroundColor', '#f00');\"",
  25. "numoutlets" : 1,
  26. "id" : "obj-1",
  27. "fontname" : "Helvetica",
  28. "outlettype" : [ "" ],
  29. "patching_rect" : [ 60.0, 165.0, 293.0, 14.0 ],
  30. "fontsize" : 10.0,
  31. "numinlets" : 2
  32. }
  33.  
  34. }
  35. , {
  36. "box" : {
  37. "maxclass" : "message",
  38. "text" : "/Slider1 0.360417",
  39. "linecount" : 2,
  40. "numoutlets" : 1,
  41. "id" : "obj-35",
  42. "fontname" : "Helvetica",
  43. "outlettype" : [ "" ],
  44. "patching_rect" : [ 525.123962, 270.0, 238.719025, 64.0 ],
  45. "fontsize" : 30.0,
  46. "numinlets" : 2
  47. }
  48.  
  49. }
  50. , {
  51. "box" : {
  52. "maxclass" : "newobj",
  53. "text" : "udpreceive 12001",
  54. "numoutlets" : 1,
  55. "id" : "obj-28",
  56. "fontname" : "Helvetica",
  57. "outlettype" : [ "" ],
  58. "patching_rect" : [ 745.165283, 240.0, 90.0, 16.0 ],
  59. "fontsize" : 10.0,
  60. "numinlets" : 1
  61. }
  62.  
  63. }
  64. , {
  65. "box" : {
  66. "maxclass" : "comment",
  67. "text" : "widget-create-change-remove\ncharlie-roberts.com",
  68. "linecount" : 2,
  69. "bgcolor" : [ 0.941176, 0.117647, 0.117647, 0.619608 ],
  70. "numoutlets" : 0,
  71. "id" : "obj-25",
  72. "fontname" : "Helvetica",
  73. "patching_rect" : [ 525.0, 180.0, 305.0, 30.0 ],
  74. "fontface" : 1,
  75. "fontsize" : 12.0,
  76. "numinlets" : 1
  77. }
  78.  
  79. }
  80. , {
  81. "box" : {
  82. "maxclass" : "comment",
  83. "text" : "remove the widget",
  84. "numoutlets" : 0,
  85. "id" : "obj-23",
  86. "fontname" : "Helvetica",
  87. "patching_rect" : [ 255.0, 255.0, 256.0, 16.0 ],
  88. "fontsize" : 10.0,
  89. "numinlets" : 1
  90. }
  91.  
  92. }
  93. , {
  94. "box" : {
  95. "maxclass" : "comment",
  96. "text" : "change the OSC address the widgets is assigned to",
  97. "numoutlets" : 0,
  98. "id" : "obj-20",
  99. "fontname" : "Helvetica",
  100. "patching_rect" : [ 255.0, 225.0, 256.0, 16.0 ],
  101. "fontsize" : 10.0,
  102. "numinlets" : 1
  103. }
  104.  
  105. }
  106. , {
  107. "box" : {
  108. "maxclass" : "comment",
  109. "text" : "set the min / max values that the widget will output",
  110. "numoutlets" : 0,
  111. "id" : "obj-18",
  112. "fontname" : "Helvetica",
  113. "patching_rect" : [ 255.0, 195.0, 256.0, 16.0 ],
  114. "fontsize" : 10.0,
  115. "numinlets" : 1
  116. }
  117.  
  118. }
  119. , {
  120. "box" : {
  121. "maxclass" : "comment",
  122. "text" : "change the widget value",
  123. "numoutlets" : 0,
  124. "id" : "obj-15",
  125. "fontname" : "Helvetica",
  126. "patching_rect" : [ 255.0, 165.0, 256.0, 16.0 ],
  127. "fontsize" : 10.0,
  128. "numinlets" : 1
  129. }
  130.  
  131. }
  132. , {
  133. "box" : {
  134. "maxclass" : "comment",
  135. "text" : "change the widgets position / size",
  136. "numoutlets" : 0,
  137. "id" : "obj-13",
  138. "fontname" : "Helvetica",
  139. "patching_rect" : [ 240.0, 135.0, 256.0, 16.0 ],
  140. "fontsize" : 10.0,
  141. "numinlets" : 1
  142. }
  143.  
  144. }
  145. , {
  146. "box" : {
  147. "maxclass" : "comment",
  148. "text" : "change the colors of the widget",
  149. "numoutlets" : 0,
  150. "id" : "obj-11",
  151. "fontname" : "Helvetica",
  152. "patching_rect" : [ 225.0, 105.0, 256.0, 16.0 ],
  153. "fontsize" : 10.0,
  154. "numinlets" : 1
  155. }
  156.  
  157. }
  158. , {
  159. "box" : {
  160. "maxclass" : "comment",
  161. "text" : "text area to enter JSON for a widget\nchange text and press big button to send a different widget\n\nYOU CANNOT USE LINE BREAKS IN THIS TEXT FIELD. YOU CANNOT USE LINE BREAKS IN THIS TEXT FIELD. YOU CANNOT USE LINE BREAKS IN THIS TEXT FIELD.",
  162. "linecount" : 8,
  163. "numoutlets" : 0,
  164. "id" : "obj-9",
  165. "fontname" : "Helvetica",
  166. "patching_rect" : [ 840.0, 30.0, 256.0, 86.0 ],
  167. "fontsize" : 10.0,
  168. "numinlets" : 1
  169. }
  170.  
  171. }
  172. , {
  173. "box" : {
  174. "maxclass" : "comment",
  175. "text" : "assigns an ip address and port for the device to send to",
  176. "numoutlets" : 0,
  177. "id" : "obj-7",
  178. "fontname" : "Helvetica",
  179. "patching_rect" : [ 240.0, 30.0, 256.0, 16.0 ],
  180. "fontsize" : 10.0,
  181. "numinlets" : 1
  182. }
  183.  
  184. }
  185. , {
  186. "box" : {
  187. "maxclass" : "comment",
  188. "text" : "creates an interface on the phone in portrait mode",
  189. "numoutlets" : 0,
  190. "id" : "obj-6",
  191. "fontname" : "Helvetica",
  192. "patching_rect" : [ 225.0, 15.0, 247.0, 16.0 ],
  193. "fontsize" : 10.0,
  194. "numinlets" : 1
  195. }
  196.  
  197. }
  198. , {
  199. "box" : {
  200. "maxclass" : "message",
  201. "text" : "/control/removeWidget test1",
  202. "numoutlets" : 1,
  203. "id" : "obj-27",
  204. "fontname" : "Helvetica",
  205. "outlettype" : [ "" ],
  206. "patching_rect" : [ 90.0, 255.0, 135.0, 14.0 ],
  207. "fontsize" : 10.0,
  208. "numinlets" : 2
  209. }
  210.  
  211. }
  212. , {
  213. "box" : {
  214. "maxclass" : "message",
  215. "text" : "/control/setRange test1 0.25 0.5",
  216. "numoutlets" : 1,
  217. "id" : "obj-26",
  218. "fontname" : "Helvetica",
  219. "outlettype" : [ "" ],
  220. "patching_rect" : [ 75.0, 195.0, 152.0, 14.0 ],
  221. "fontsize" : 10.0,
  222. "numinlets" : 2
  223. }
  224.  
  225. }
  226. , {
  227. "box" : {
  228. "maxclass" : "message",
  229. "text" : "/control/pushDestination 127.0.0.1:12001",
  230. "numoutlets" : 1,
  231. "id" : "obj-24",
  232. "fontname" : "Helvetica",
  233. "outlettype" : [ "" ],
  234. "patching_rect" : [ 15.0, 30.0, 193.0, 14.0 ],
  235. "fontsize" : 10.0,
  236. "numinlets" : 2
  237. }
  238.  
  239. }
  240. , {
  241. "box" : {
  242. "maxclass" : "message",
  243. "text" : "/control/setColors test1 #f00 #ff0 #0f0",
  244. "numoutlets" : 1,
  245. "id" : "obj-22",
  246. "fontname" : "Helvetica",
  247. "outlettype" : [ "" ],
  248. "patching_rect" : [ 30.0, 105.000008, 177.0, 14.0 ],
  249. "fontsize" : 10.0,
  250. "numinlets" : 2
  251. }
  252.  
  253. }
  254. , {
  255. "box" : {
  256. "maxclass" : "message",
  257. "text" : "/control/createBlankInterface testing landscape",
  258. "numoutlets" : 1,
  259. "id" : "obj-21",
  260. "fontname" : "Helvetica",
  261. "outlettype" : [ "" ],
  262. "patching_rect" : [ 0.0, 15.0, 218.0, 14.0 ],
  263. "fontsize" : 10.0,
  264. "numinlets" : 2
  265. }
  266.  
  267. }
  268. , {
  269. "box" : {
  270. "maxclass" : "message",
  271. "text" : "/control/setAddress test1 /ARGH",
  272. "numoutlets" : 1,
  273. "id" : "obj-19",
  274. "fontname" : "Helvetica",
  275. "outlettype" : [ "" ],
  276. "patching_rect" : [ 75.0, 225.0, 155.0, 14.0 ],
  277. "fontsize" : 10.0,
  278. "numinlets" : 2
  279. }
  280.  
  281. }
  282. , {
  283. "box" : {
  284. "maxclass" : "newobj",
  285. "text" : "prepend /control/addWidget",
  286. "numoutlets" : 1,
  287. "id" : "obj-17",
  288. "fontname" : "Helvetica",
  289. "outlettype" : [ "" ],
  290. "patching_rect" : [ 630.0, 135.0, 133.0, 16.0 ],
  291. "fontsize" : 10.0,
  292. "numinlets" : 1
  293. }
  294.  
  295. }
  296. , {
  297. "box" : {
  298. "maxclass" : "newobj",
  299. "text" : "route text",
  300. "numoutlets" : 2,
  301. "id" : "obj-16",
  302. "fontname" : "Helvetica",
  303. "outlettype" : [ "", "" ],
  304. "patching_rect" : [ 630.0, 120.0, 52.0, 16.0 ],
  305. "fontsize" : 10.0,
  306. "numinlets" : 1
  307. }
  308.  
  309. }
  310. , {
  311. "box" : {
  312. "maxclass" : "button",
  313. "numoutlets" : 1,
  314. "id" : "obj-14",
  315. "outlettype" : [ "bang" ],
  316. "patching_rect" : [ 555.0, 15.0, 52.101627, 52.101627 ],
  317. "numinlets" : 1
  318. }
  319.  
  320. }
  321. , {
  322. "box" : {
  323. "maxclass" : "textedit",
  324. "text" : "{ 'name': 'Slider1', 'type': 'Slider', 'x': 0, 'y': 0, 'width': .5, 'height': .5,}",
  325. "linecount" : 2,
  326. "numoutlets" : 4,
  327. "outputmode" : 1,
  328. "id" : "obj-12",
  329. "fontname" : "Helvetica",
  330. "outlettype" : [ "", "int", "", "" ],
  331. "patching_rect" : [ 630.0, 30.0, 198.353928, 83.467651 ],
  332. "fontsize" : 10.0,
  333. "numinlets" : 1
  334. }
  335.  
  336. }
  337. , {
  338. "box" : {
  339. "maxclass" : "message",
  340. "text" : "/control/addWidget \"{ 'name': 'Slider1', 'type': 'Slider', 'x': 0, 'y': 0, 'width': .5, 'height': .5,}\"",
  341. "linecount" : 2,
  342. "numoutlets" : 1,
  343. "id" : "obj-10",
  344. "fontname" : "Helvetica",
  345. "outlettype" : [ "" ],
  346. "patching_rect" : [ 30.0, 60.0, 324.0, 24.0 ],
  347. "fontsize" : 10.0,
  348. "numinlets" : 2
  349. }
  350.  
  351. }
  352. , {
  353. "box" : {
  354. "maxclass" : "message",
  355. "text" : "/control/setBounds test1 0.2 0. 0.75 0.3",
  356. "numoutlets" : 1,
  357. "id" : "obj-5",
  358. "fontname" : "Helvetica",
  359. "outlettype" : [ "" ],
  360. "patching_rect" : [ 45.0, 135.0, 185.0, 14.0 ],
  361. "fontsize" : 10.0,
  362. "numinlets" : 2
  363. }
  364.  
  365. }
  366. , {
  367. "box" : {
  368. "maxclass" : "newobj",
  369. "text" : "udpsend 127.0.0.1 8080",
  370. "numoutlets" : 0,
  371. "id" : "obj-3",
  372. "fontname" : "Helvetica",
  373. "patching_rect" : [ 15.0, 285.0, 118.0, 16.0 ],
  374. "fontsize" : 10.0,
  375. "numinlets" : 1
  376. }
  377.  
  378. }
  379. ],
  380. "lines" : [ {
  381. "patchline" : {
  382. "source" : [ "obj-1", 0 ],
  383. "destination" : [ "obj-3", 0 ],
  384. "hidden" : 0,
  385. "midpoints" : [ ]
  386. }
  387.  
  388. }
  389. , {
  390. "patchline" : {
  391. "source" : [ "obj-5", 0 ],
  392. "destination" : [ "obj-3", 0 ],
  393. "hidden" : 0,
  394. "midpoints" : [ ]
  395. }
  396.  
  397. }
  398. , {
  399. "patchline" : {
  400. "source" : [ "obj-19", 0 ],
  401. "destination" : [ "obj-3", 0 ],
  402. "hidden" : 0,
  403. "midpoints" : [ ]
  404. }
  405.  
  406. }
  407. , {
  408. "patchline" : {
  409. "source" : [ "obj-21", 0 ],
  410. "destination" : [ "obj-3", 0 ],
  411. "hidden" : 0,
  412. "midpoints" : [ ]
  413. }
  414.  
  415. }
  416. , {
  417. "patchline" : {
  418. "source" : [ "obj-22", 0 ],
  419. "destination" : [ "obj-3", 0 ],
  420. "hidden" : 0,
  421. "midpoints" : [ ]
  422. }
  423.  
  424. }
  425. , {
  426. "patchline" : {
  427. "source" : [ "obj-10", 0 ],
  428. "destination" : [ "obj-3", 0 ],
  429. "hidden" : 0,
  430. "midpoints" : [ ]
  431. }
  432.  
  433. }
  434. , {
  435. "patchline" : {
  436. "source" : [ "obj-24", 0 ],
  437. "destination" : [ "obj-3", 0 ],
  438. "hidden" : 0,
  439. "midpoints" : [ ]
  440. }
  441.  
  442. }
  443. , {
  444. "patchline" : {
  445. "source" : [ "obj-26", 0 ],
  446. "destination" : [ "obj-3", 0 ],
  447. "hidden" : 0,
  448. "midpoints" : [ ]
  449. }
  450.  
  451. }
  452. , {
  453. "patchline" : {
  454. "source" : [ "obj-27", 0 ],
  455. "destination" : [ "obj-3", 0 ],
  456. "hidden" : 0,
  457. "midpoints" : [ ]
  458. }
  459.  
  460. }
  461. , {
  462. "patchline" : {
  463. "source" : [ "obj-12", 0 ],
  464. "destination" : [ "obj-16", 0 ],
  465. "hidden" : 0,
  466. "midpoints" : [ ]
  467. }
  468.  
  469. }
  470. , {
  471. "patchline" : {
  472. "source" : [ "obj-16", 0 ],
  473. "destination" : [ "obj-17", 0 ],
  474. "hidden" : 0,
  475. "midpoints" : [ ]
  476. }
  477.  
  478. }
  479. , {
  480. "patchline" : {
  481. "source" : [ "obj-14", 0 ],
  482. "destination" : [ "obj-12", 0 ],
  483. "hidden" : 0,
  484. "midpoints" : [ 564.5, 84.010643, 615.079529, 84.010643, 615.079529, 21.856428, 639.5, 21.856428 ]
  485. }
  486.  
  487. }
  488. , {
  489. "patchline" : {
  490. "source" : [ "obj-14", 0 ],
  491. "destination" : [ "obj-10", 0 ],
  492. "hidden" : 0,
  493. "midpoints" : [ 564.5, 84.010643, 547.265015, 84.010643, 547.265015, 50.542992, 39.5, 50.542992 ]
  494. }
  495.  
  496. }
  497. , {
  498. "patchline" : {
  499. "source" : [ "obj-17", 0 ],
  500. "destination" : [ "obj-10", 1 ],
  501. "hidden" : 0,
  502. "midpoints" : [ 639.5, 160.508148, 519.921753, 160.508148, 519.921753, 60.641071, 344.5, 60.641071 ]
  503. }
  504.  
  505. }
  506. , {
  507. "patchline" : {
  508. "source" : [ "obj-28", 0 ],
  509. "destination" : [ "obj-35", 1 ],
  510. "hidden" : 0,
  511. "midpoints" : [ ]
  512. }
  513.  
  514. }
  515. ]
  516. }
  517.  
  518. }
Add Comment
Please, Sign In to add comment