Skip to content

Instantly share code, notes, and snippets.

Created November 16, 2013 15:56
Show Gist options
  • Save anonymous/7501803 to your computer and use it in GitHub Desktop.
Save anonymous/7501803 to your computer and use it in GitHub Desktop.
inverse of linedrive sample patch (Max/msp)
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 5,
"architecture" : "x86"
}
,
"rect" : [ 133.0, 85.0, 675.0, 602.0 ],
"bgcolor" : [ 0.950006, 0.950006, 0.950006, 1.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"fontname" : "Arial",
"fontsize" : 16.0,
"frgb" : 0.0,
"id" : "obj-15",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 84.0, 399.0, 87.0, 24.0 ],
"text" : "0 to 127"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 16.0,
"frgb" : 0.0,
"id" : "obj-14",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 84.0, 229.0, 88.0, 24.0 ],
"text" : "0 to 24000"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 16.0,
"frgb" : 0.0,
"id" : "obj-13",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 84.0, 42.5, 79.0, 24.0 ],
"text" : "0 to 127"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-10",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 293.0, 236.0, 33.0, 20.0 ],
"text" : "Hz"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-6",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 212.0, 288.0, 54.0, 20.0 ],
"text" : "/ 24000."
}
}
, {
"box" : {
"bgcolor" : [ 0.4, 0.8, 1.0, 1.0 ],
"fontname" : "Arial",
"fontsize" : 18.0,
"id" : "obj-5",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 212.0, 229.0, 81.0, 27.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-1",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 212.0, 183.0, 55.0, 20.0 ],
"text" : "* 24000."
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-12",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 212.0, 151.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-8",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 212.0, 117.0, 129.0, 20.0 ],
"text" : "linedrive 127 1. 1.06 0"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-7",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 283.0, 475.0, 43.0, 18.0 ],
"text" : "set $1"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-4",
"maxclass" : "number",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "int", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 212.0, 90.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"bgcolor" : [ 0.4, 0.8, 1.0, 1.0 ],
"id" : "obj-2",
"maxclass" : "slider",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 212.0, 35.0, 282.0, 39.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-66",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 470.0, 305.0, 67.0, 18.0 ],
"text" : "curve 1.06"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-67",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 396.0, 305.0, 57.0, 18.0 ],
"text" : "output 1."
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-68",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 313.0, 305.0, 63.0, 18.0 ],
"text" : "input 127."
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-69",
"maxclass" : "number",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "int", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 361.0, 475.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-70",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 283.0, 433.0, 107.0, 20.0 ],
"text" : "zmap 0 127 0 127"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-71",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patching_rect" : [ 212.0, 362.0, 101.0, 20.0 ],
"text" : "gen~ linedriveinv"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-74",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patching_rect" : [ 212.0, 326.0, 33.0, 20.0 ],
"text" : "sig~"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-75",
"maxclass" : "number~",
"mode" : 2,
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "signal", "float" ],
"patching_rect" : [ 212.0, 399.0, 90.0, 20.0 ],
"sig" : 0.0
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-5", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-74", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-6", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-71", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-66", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-71", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-67", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-71", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-68", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 292.5, 530.0, 173.0, 530.0, 173.0, 10.0, 221.5, 10.0 ],
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-69", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-70", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-70", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-75", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-71", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-71", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-74", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-70", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-75", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-8", 0 ]
}
}
],
"dependency_cache" : [ {
"name" : "linedriveinv.gendsp",
"bootpath" : "/Volumes/DataDrive/Dropbox/MaxPatcher/Gen",
"patcherrelativepath" : ".",
"type" : "gDSP",
"implicit" : 1
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment