GMU:Max/MSP visual programming/Yang Li: Difference between revisions

From Medien Wiki
(Created page with "{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 7, "minor" : 3, "revision" : 5, "architecture" : "x86", "modernui" : 1 } , "rect" : [...")
 
(Replaced content with "4.19 homework of second lesson "dimmer and frequency" File:Homework.maxpat")
Line 1: Line 1:
{
4.19 homework of second lesson "dimmer and frequency"
"patcher" : {
[[:File:Homework.maxpat]]
"fileversion" : 1,
"appversion" : {
"major" : 7,
"minor" : 3,
"revision" : 5,
"architecture" : "x86",
"modernui" : 1
}
,
"rect" : [ 34.0, 78.0, 1143.0, 735.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"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
}
 
}

Revision as of 12:22, 23 April 2018

4.19 homework of second lesson "dimmer and frequency" File:Homework.maxpat