|
|
(17 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| {
| | '''Task 4''' "Using cables to control objects in Max" |
| "patcher" : {
| | <br>Based on task 2 "Jitter", I want to build a connection between the virtual pattern object and physical equipment that we can have an interaction with the virtual world. |
| "fileversion" : 1,
| | Using 6 cables on Arduino to input serials to max, I connect converted inputs from arduino (physical equipment)to max that I can control each axis by 6 cables (Analog0-- Analog5). For instance, when I touch the cable (to change value) which inserts in pin A0, position X of the object will change in certain range, other cables can be inserted in 3.3V, 5V or GND to keep stable voltage that you can see the change obviously. |
| "appversion" : {
| | *[[:File:Arduino signal sphere 6cables.maxpat]] |
| "major" : 7,
| | *[[:File:AnalogReadSerial.ino]] |
| "minor" : 3,
| | Furthermore, I use a gyroscope (GY521) on arduino to detect the moving direction, particles in max will follow the direction in 3 axes. Virtual patterns interact with the physical world still have many possibilities. |
| "revision" : 5,
| | *[[:File:tut_02_particles.maxpat]] [https://www.youtube.com/watch?v=TRgX7rVgSAE] |
| "architecture" : "x86",
| | <br>'''Task 3''' "OSC" |
| "modernui" : 1
| | <br>Using SoundcollOSC app to connect with Max. Drag the slider/volume or turn on/off the button on the app, the serials receive by max and vice versa. OSC received from SoundCool app, and outputs to Arduino and Sound. |
| }
| | *[[:File:Network-OSC.maxpat]] |
| ,
| | <br>'''Task 2''' "Jitter" |
| "rect" : [ 34.0, 78.0, 1143.0, 735.0 ],
| | <br>I build a camera, a window, and three-dimensional objects in this patcher, control the position and rotate in X, Y and Z axis. Objects also can be controlled by using "object: join" to a certain place in a certain time. (Mega helped me to edit the patcher easy to read and understand). |
| "bglocked" : 0,
| | *[[:File:Jitter_Graphic_test3.maxpat]] (miga edit) |
| "openinpresentation" : 0,
| | *[[:File:0517 Jitter_Graphic_test2.maxpat]] |
| "default_fontsize" : 12.0,
| | <br>'''Task1''' "dimmer" |
| "default_fontface" : 0,
| | <br>If you drag the slider in patcher, you will find the LED which inserts in PWM pin change brightness. |
| "default_fontname" : "Arial",
| | *[[:File:dimmer LY.maxpat]] |
| "gridonopen" : 1,
| | *[[:File:Homework.maxpat]] |
| "gridsize" : [ 15.0, 15.0 ],
| | <br><br> |
| "gridsnaponopen" : 1,
| | *[[:File:you-4020.pdf]] |
| "objectsnaponopen" : 1,
| |
| "statusbarvisible" : 2,
| |
| "toolbarvisible" : 1,
| |
| "lefttoolbarpinned" : 0,
| |
| "toptoolbarpinned" : 0,
| |
| "righttoolbarpinned" : 0,
| |
| "bottomtoolbarpinned" : 0,
| |
| "toolbars_unpinned_last_save" : 0,
| |
| "tallnewobj" : 0,
| |
| "boxanimatetime" : 200,
| |
| "enablehscroll" : 1,
| |
| "enablevscroll" : 1,
| |
| "devicewidth" : 0.0,
| |
| "description" : "",
| |
| "digest" : "",
| |
| "tags" : "",
| |
| "style" : "",
| |
| "subpatcher_template" : "",
| |
| "boxes" : [ {
| |
| "box" : {
| |
| "id" : "obj-47",
| |
| "maxclass" : "newobj",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 0,
| |
| "patching_rect" : [ 454.0, 202.0, 57.0, 22.0 ],
| |
| "style" : "",
| |
| "text" : "print raw"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-46",
| |
| "maxclass" : "message",
| |
| "numinlets" : 2,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "" ],
| |
| "patching_rect" : [ 454.0, 260.0, 50.0, 22.0 ],
| |
| "style" : "",
| |
| "text" : "50 52"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-44",
| |
| "maxclass" : "message",
| |
| "numinlets" : 2,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "" ],
| |
| "patching_rect" : [ 354.5, 163.0, 50.0, 22.0 ],
| |
| "style" : "",
| |
| "text" : "0"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-38",
| |
| "maxclass" : "message",
| |
| "numinlets" : 2,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "" ],
| |
| "patching_rect" : [ 454.0, 298.0, 50.0, 22.0 ],
| |
| "style" : "",
| |
| "text" : "\"24\""
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-36",
| |
| "maxclass" : "message",
| |
| "numinlets" : 2,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "" ],
| |
| "patching_rect" : [ 454.0, 344.0, 50.0, 22.0 ],
| |
| "style" : "",
| |
| "text" : "24"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-34",
| |
| "maxclass" : "message",
| |
| "numinlets" : 2,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "" ],
| |
| "patching_rect" : [ 454.0, 401.0, 50.0, 22.0 ],
| |
| "style" : "",
| |
| "text" : "5"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-32",
| |
| "maxclass" : "newobj",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "" ],
| |
| "patching_rect" : [ 256.0, 298.0, 73.0, 22.0 ],
| |
| "style" : "",
| |
| "text" : "fromsymbol"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-31",
| |
| "maxclass" : "newobj",
| |
| "numinlets" : 3,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "int" ],
| |
| "patching_rect" : [ 256.0, 260.0, 40.0, 22.0 ],
| |
| "style" : "",
| |
| "text" : "itoa"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-30",
| |
| "maxclass" : "slider",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "" ],
| |
| "parameter_enable" : 0,
| |
| "patching_rect" : [ 256.0, 399.5, 155.0, 25.0 ],
| |
| "style" : ""
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-28",
| |
| "maxclass" : "newobj",
| |
| "numinlets" : 6,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "" ],
| |
| "patching_rect" : [ 256.0, 344.0, 112.0, 22.0 ],
| |
| "style" : "",
| |
| "text" : "scale 0 1023 0 255"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-25",
| |
| "knobcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
| |
| "maxclass" : "slider",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 1,
| |
| "orientation" : 2,
| |
| "outlettype" : [ "" ],
| |
| "parameter_enable" : 0,
| |
| "patching_rect" : [ 256.0, 16.0, 18.0, 134.0 ],
| |
| "size" : 255.0,
| |
| "style" : ""
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "fontname" : "Arial",
| |
| "fontsize" : 9.0,
| |
| "id" : "obj-2",
| |
| "maxclass" : "comment",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 0,
| |
| "patching_rect" : [ 329.0, 111.0, 101.0, 17.0 ],
| |
| "style" : "",
| |
| "text" : "get a list of serial ports"
| |
| }
| |
| | |
| }
| |
| , { | |
| "box" : {
| |
| "fontname" : "Arial",
| |
| "fontsize" : 9.0,
| |
| "id" : "obj-4",
| |
| "maxclass" : "comment",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 0,
| |
| "patching_rect" : [ 136.5, 298.0, 112.0, 17.0 ],
| |
| "style" : "",
| |
| "text" : "Convert ASCII to symbol"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "fontname" : "Arial",
| |
| "fontsize" : 9.0,
| |
| "id" : "obj-5",
| |
| "maxclass" : "comment",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 0,
| |
| "patching_rect" : [ 136.5, 270.0, 112.0, 17.0 ],
| |
| "style" : "",
| |
| "text" : "Convert integer to ASCII"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "fontname" : "Arial",
| |
| "fontsize" : 9.0,
| |
| "id" : "obj-9",
| |
| "maxclass" : "newobj",
| |
| "numinlets" : 2,
| |
| "numoutlets" : 2,
| |
| "outlettype" : [ "", "" ],
| |
| "patching_rect" : [ 256.0, 228.0, 55.0, 19.0 ],
| |
| "style" : "",
| |
| "text" : "zl group 4"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "fontname" : "Arial",
| |
| "fontsize" : 9.0,
| |
| "id" : "obj-10",
| |
| "maxclass" : "newobj",
| |
| "numinlets" : 3,
| |
| "numoutlets" : 3,
| |
| "outlettype" : [ "bang", "bang", "" ],
| |
| "patching_rect" : [ 256.0, 194.0, 59.0, 19.0 ],
| |
| "style" : "",
| |
| "text" : "select 13 10"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "id" : "obj-11",
| |
| "maxclass" : "toggle",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "int" ],
| |
| "parameter_enable" : 0,
| |
| "patching_rect" : [ 187.0, 94.0, 15.0, 15.0 ],
| |
| "style" : ""
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "fontname" : "Arial",
| |
| "fontsize" : 9.0,
| |
| "id" : "obj-12",
| |
| "maxclass" : "newobj",
| |
| "numinlets" : 2,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "bang" ],
| |
| "patching_rect" : [ 187.0, 116.0, 51.0, 19.0 ],
| |
| "style" : "",
| |
| "text" : "metro 100"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "fontname" : "Arial",
| |
| "fontsize" : 9.0,
| |
| "id" : "obj-13",
| |
| "maxclass" : "message",
| |
| "numinlets" : 2,
| |
| "numoutlets" : 1,
| |
| "outlettype" : [ "" ],
| |
| "patching_rect" : [ 291.0, 111.0, 32.0, 19.0 ],
| |
| "style" : "",
| |
| "text" : "print"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "fontname" : "Arial",
| |
| "fontsize" : 9.0,
| |
| "id" : "obj-14",
| |
| "maxclass" : "newobj",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 2,
| |
| "outlettype" : [ "int", "" ],
| |
| "patching_rect" : [ 256.0, 163.0, 62.0, 19.0 ],
| |
| "style" : "",
| |
| "text" : "serial d 9600"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "fontname" : "Arial",
| |
| "fontsize" : 9.0,
| |
| "id" : "obj-15",
| |
| "linecount" : 2,
| |
| "maxclass" : "comment",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 0,
| |
| "patching_rect" : [ 3.0, 116.0, 148.0, 27.0 ],
| |
| "style" : "",
| |
| "text" : "Read serial input buffer every 10 milliseconds"
| |
| }
| |
| | |
| }
| |
| , {
| |
| "box" : {
| |
| "fontname" : "Arial",
| |
| "fontsize" : 9.0,
| |
| "id" : "obj-17",
| |
| "maxclass" : "comment",
| |
| "numinlets" : 1,
| |
| "numoutlets" : 0,
| |
| "patching_rect" : [ 136.5, 67.0, 63.0, 17.0 ],
| |
| "style" : "",
| |
| "text" : "Start"
| |
| }
| |
| | |
| }
| |
| ],
| |
| "lines" : [ {
| |
| "patchline" : {
| |
| "destination" : [ "obj-9", 0 ],
| |
| "source" : [ "obj-10", 2 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-9", 0 ],
| |
| "midpoints" : [ 265.5, 216.0, 265.5, 216.0 ],
| |
| "source" : [ "obj-10", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-12", 0 ],
| |
| "source" : [ "obj-11", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-14", 0 ],
| |
| "source" : [ "obj-12", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-14", 0 ],
| |
| "midpoints" : [ 300.5, 158.0, 265.5, 158.0 ],
| |
| "source" : [ "obj-13", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-10", 0 ],
| |
| "order" : 1,
| |
| "source" : [ "obj-14", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-47", 0 ],
| |
| "order" : 0,
| |
| "source" : [ "obj-14", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-14", 0 ],
| |
| "order" : 1,
| |
| "source" : [ "obj-25", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-44", 1 ],
| |
| "order" : 0,
| |
| "source" : [ "obj-25", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-30", 0 ],
| |
| "order" : 1,
| |
| "source" : [ "obj-28", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-34", 1 ],
| |
| "order" : 0,
| |
| "source" : [ "obj-28", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-25", 0 ],
| |
| "midpoints" : [ 265.5, 438.0, 632.0, 438.0, 632.0, 5.0, 265.5, 5.0 ],
| |
| "source" : [ "obj-30", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-32", 0 ],
| |
| "order" : 1,
| |
| "source" : [ "obj-31", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-38", 1 ],
| |
| "order" : 0,
| |
| "source" : [ "obj-31", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-28", 0 ],
| |
| "order" : 1,
| |
| "source" : [ "obj-32", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-36", 1 ],
| |
| "order" : 0,
| |
| "source" : [ "obj-32", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-31", 0 ],
| |
| "order" : 1,
| |
| "source" : [ "obj-9", 0 ]
| |
| }
| |
| | |
| }
| |
| , {
| |
| "patchline" : {
| |
| "destination" : [ "obj-46", 1 ],
| |
| "order" : 0,
| |
| "source" : [ "obj-9", 0 ]
| |
| }
| |
| | |
| }
| |
| ],
| |
| "dependency_cache" : [ ],
| |
| "autosave" : 0
| |
| }
| |
| | |
| }
| |