Skip to content

Instantly share code, notes, and snippets.

@mhamilt
Last active November 21, 2021 11:38
Show Gist options
  • Save mhamilt/1c3006a57bee71a4f8a57fd3b0ef71ff to your computer and use it in GitHub Desktop.
Save mhamilt/1c3006a57bee71a4f8a57fd3b0ef71ff to your computer and use it in GitHub Desktop.
Overlapping and Repeating Chromakey-ed Videos
{
"boxes" : [ {
"box" : {
"maxclass" : "newobj",
"text" : "p ramp-peak",
"outlettype" : [ "int" ],
"patching_rect" : [ 60.0, 356.0, 76.0, 22.0 ],
"numinlets" : 1,
"id" : "obj-52",
"numoutlets" : 1,
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 1,
"revision" : 3,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 59.0, 81.0, 640.0, 480.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" : {
"maxclass" : "newobj",
"text" : "+ 1",
"outlettype" : [ "int" ],
"patching_rect" : [ 50.0, 219.0, 29.5, 22.0 ],
"numinlets" : 2,
"id" : "obj-48",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "* 17.",
"outlettype" : [ "float" ],
"patching_rect" : [ 50.0, 190.0, 33.0, 22.0 ],
"numinlets" : 2,
"id" : "obj-49",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "$1 50",
"outlettype" : [ "" ],
"patching_rect" : [ 50.0, 130.0, 39.0, 22.0 ],
"numinlets" : 2,
"id" : "obj-41",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "line",
"outlettype" : [ "", "bang" ],
"patching_rect" : [ 50.0, 160.0, 40.0, 22.0 ],
"numinlets" : 3,
"id" : "obj-37",
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "peakamp~ 100",
"outlettype" : [ "float" ],
"patching_rect" : [ 50.0, 100.0, 88.0, 22.0 ],
"numinlets" : 2,
"id" : "obj-33",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "inlet",
"outlettype" : [ "signal" ],
"patching_rect" : [ 50.0, 40.0, 30.0, 30.0 ],
"numinlets" : 0,
"id" : "obj-50",
"numoutlets" : 1,
"comment" : "",
"index" : 1
}
}
, {
"box" : {
"maxclass" : "outlet",
"patching_rect" : [ 50.0, 301.0, 30.0, 30.0 ],
"numinlets" : 1,
"id" : "obj-51",
"numoutlets" : 0,
"comment" : "",
"index" : 1
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-33", 0 ],
"destination" : [ "obj-41", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-50", 0 ],
"destination" : [ "obj-33", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-41", 0 ],
"destination" : [ "obj-37", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-49", 0 ],
"destination" : [ "obj-48", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-37", 0 ],
"destination" : [ "obj-49", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-48", 0 ],
"destination" : [ "obj-51", 0 ]
}
}
]
}
,
"saved_object_attributes" : {
"description" : "",
"digest" : "",
"globalpatchername" : "",
"tags" : ""
}
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.gl.multiple win2 1 @glparams position @layer 1",
"linecount" : 3,
"presentation_linecount" : 3,
"outlettype" : [ "", "" ],
"patching_rect" : [ 60.0, 476.0, 121.0, 49.0 ],
"numinlets" : 1,
"id" : "obj-21",
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "dim $1, exprfill 0 \\\"1.0-((dim[0]-1)*0.2)+(cell[0]*0.2)\\\", bang",
"linecount" : 3,
"outlettype" : [ "" ],
"patching_rect" : [ 60.0, 386.0, 206.0, 49.0 ],
"numinlets" : 2,
"id" : "obj-13",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix 3 float32 10",
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 60.0, 446.0, 119.0, 22.0 ],
"numinlets" : 1,
"id" : "obj-7",
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.gl.layer win2",
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 255.0, 270.0, 87.0, 22.0 ],
"numinlets" : 1,
"id" : "obj-16",
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "ezdac~",
"patching_rect" : [ 315.0, 75.0, 45.0, 45.0 ],
"numinlets" : 2,
"id" : "obj-10",
"numoutlets" : 0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.world win2 @size 320 240",
"outlettype" : [ "", "bang", "" ],
"patching_rect" : [ 150.0, 75.0, 161.0, 22.0 ],
"numinlets" : 1,
"id" : "obj-9",
"numoutlets" : 3
}
}
, {
"box" : {
"maxclass" : "newobj",
"varname" : "vid1[1]",
"text" : "jit.gl.videoplane win2 @scale 0.55 0.55 1 @blend_enable 1 @depth_enable 0",
"linecount" : 4,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 60.0, 536.0, 126.0, 62.0 ],
"numinlets" : 1,
"id" : "obj-2",
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "playlist~",
"outlettype" : [ "signal", "signal", "signal", "", "dictionary" ],
"patching_rect" : [ 390.0, 45.0, 150.0, 30.0 ],
"numinlets" : 1,
"id" : "obj-26",
"numoutlets" : 5,
"data" : {
"clips" : [ {
"absolutepath" : "drumLoop.aif",
"filename" : "drumLoop.aif",
"filekind" : "audiofile",
"loop" : 1,
"content_state" : {
"pitchcorrection" : [ 0 ],
"originallengthms" : [ 0.0 ],
"followglobaltempo" : [ 0 ],
"quality" : [ "basic" ],
"timestretch" : [ 0 ],
"formant" : [ 1.0 ],
"formantcorrection" : [ 0 ],
"speed" : [ 1.0 ],
"originallength" : [ 0.0, "ticks" ],
"mode" : [ "basic" ],
"slurtime" : [ 0.0 ],
"originaltempo" : [ 120.0 ],
"pitchshift" : [ 1.0 ],
"basictuning" : [ 440 ]
}
}
]
}
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "255 255 255 255, bang",
"linecount" : 2,
"outlettype" : [ "" ],
"patching_rect" : [ 480.0, 165.0, 105.0, 35.0 ],
"numinlets" : 2,
"id" : "obj-69",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix @dim 320 240",
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 255.0, 240.0, 135.0, 22.0 ],
"numinlets" : 1,
"id" : "obj-67",
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "0 255 255 255, bang",
"linecount" : 2,
"outlettype" : [ "" ],
"patching_rect" : [ 390.0, 165.0, 90.0, 35.0 ],
"numinlets" : 2,
"id" : "obj-65",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix @dim 320 240",
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 105.0, 240.0, 135.0, 22.0 ],
"numinlets" : 1,
"id" : "obj-46",
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"outlettype" : [ "bang" ],
"patching_rect" : [ 390.0, 90.0, 59.0, 22.0 ],
"numinlets" : 1,
"id" : "obj-17",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "start",
"outlettype" : [ "" ],
"patching_rect" : [ 135.0, 135.0, 33.0, 22.0 ],
"numinlets" : 2,
"id" : "obj-18",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "stop",
"outlettype" : [ "" ],
"patching_rect" : [ 105.0, 135.0, 33.0, 22.0 ],
"numinlets" : 2,
"id" : "obj-19",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sel 0 1",
"outlettype" : [ "bang", "bang", "" ],
"patching_rect" : [ 90.0, 105.0, 46.0, 22.0 ],
"numinlets" : 3,
"id" : "obj-20",
"numoutlets" : 3
}
}
, {
"box" : {
"maxclass" : "newobj",
"varname" : "chromavideo",
"text" : "jit.chromakey @tol 0.6 @fade 0.2 @color 0 0.219608 0.384314 1. 1.",
"linecount" : 2,
"outlettype" : [ "jit_matrix", "" ],
"style" : "newobjYellow-1",
"patching_rect" : [ 30.0, 285.0, 205.499999999999943, 35.0 ],
"numinlets" : 2,
"id" : "obj-32",
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "read oh.mov",
"outlettype" : [ "" ],
"patching_rect" : [ 30.0, 135.0, 75.0, 22.0 ],
"numinlets" : 2,
"id" : "obj-34",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"style" : "toggleGreen",
"patching_rect" : [ 35.050278000000006, 31.809142999999999, 24.0, 24.0 ],
"numinlets" : 1,
"id" : "obj-35",
"parameter_enable" : 0,
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 50",
"outlettype" : [ "bang" ],
"patching_rect" : [ 30.0, 105.0, 56.0, 22.0 ],
"numinlets" : 2,
"id" : "obj-36",
"numoutlets" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.movie 320 250 @vol 0. @srcrect 320 10 0 250 @usesrcrect 1",
"linecount" : 3,
"outlettype" : [ "jit_matrix", "" ],
"patching_rect" : [ 30.0, 165.0, 180.0, 49.0 ],
"numinlets" : 1,
"id" : "obj-38",
"numoutlets" : 2
}
}
, {
"box" : {
"maxclass" : "comment",
"text" : "Start/Stop",
"patching_rect" : [ 60.737426999999997, 31.809142999999999, 62.0, 20.0 ],
"numinlets" : 1,
"id" : "obj-39",
"numoutlets" : 0
}
}
, {
"box" : {
"maxclass" : "panel",
"style" : "panelBlue",
"patching_rect" : [ 27.167597000000001, 345.0, 572.832402999999999, 270.0 ],
"rounded" : 0,
"numinlets" : 1,
"id" : "obj-23",
"numoutlets" : 0,
"background" : 1
}
}
, {
"box" : {
"maxclass" : "panel",
"style" : "panelBlue",
"patching_rect" : [ 27.167597000000001, 24.683433999999998, 572.832402999999999, 195.316565999999995 ],
"rounded" : 0,
"numinlets" : 1,
"id" : "obj-43",
"numoutlets" : 0,
"background" : 1
}
}
, {
"box" : {
"maxclass" : "panel",
"style" : "panelBlue",
"patching_rect" : [ 27.167597000000001, 225.0, 572.832402999999999, 115.0 ],
"rounded" : 0,
"numinlets" : 1,
"id" : "obj-30",
"numoutlets" : 0,
"background" : 1
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-35", 0 ],
"destination" : [ "obj-26", 0 ],
"order" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-26", 1 ],
"destination" : [ "obj-10", 1 ]
}
}
, {
"patchline" : {
"source" : [ "obj-26", 0 ],
"destination" : [ "obj-10", 0 ],
"order" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-26", 0 ],
"destination" : [ "obj-52", 0 ],
"order" : 1
}
}
, {
"patchline" : {
"source" : [ "obj-52", 0 ],
"destination" : [ "obj-13", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-21", 0 ],
"destination" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-21", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-69", 0 ],
"destination" : [ "obj-67", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-67", 0 ],
"destination" : [ "obj-16", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-65", 0 ],
"destination" : [ "obj-46", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-46", 0 ],
"destination" : [ "obj-32", 1 ]
}
}
, {
"patchline" : {
"source" : [ "obj-38", 0 ],
"destination" : [ "obj-32", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-36", 0 ],
"destination" : [ "obj-38", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-35", 0 ],
"destination" : [ "obj-9", 0 ],
"order" : 2
}
}
, {
"patchline" : {
"source" : [ "obj-35", 0 ],
"destination" : [ "obj-36", 0 ],
"order" : 4
}
}
, {
"patchline" : {
"source" : [ "obj-35", 0 ],
"destination" : [ "obj-20", 0 ],
"midpoints" : [ 44.550278000000006, 65.518860000000004, 99.5, 65.518860000000004 ],
"order" : 3
}
}
, {
"patchline" : {
"source" : [ "obj-35", 0 ],
"destination" : [ "obj-10", 0 ],
"order" : 1
}
}
, {
"patchline" : {
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-38", 0 ],
"midpoints" : [ 39.5, 156.518280000000004, 39.5, 156.518280000000004 ]
}
}
, {
"patchline" : {
"source" : [ "obj-32", 0 ],
"destination" : [ "obj-2", 0 ],
"midpoints" : [ 39.5, 531.0, 69.5, 531.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-20", 0 ],
"destination" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-20", 1 ],
"destination" : [ "obj-18", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-38", 0 ],
"midpoints" : [ 114.5, 159.018280000000004, 39.5, 159.018280000000004 ]
}
}
, {
"patchline" : {
"source" : [ "obj-18", 0 ],
"destination" : [ "obj-38", 0 ],
"midpoints" : [ 144.5, 159.018280000000004, 39.5, 159.018280000000004 ]
}
}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-69", 0 ],
"order" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-65", 0 ],
"order" : 1
}
}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-34", 0 ],
"midpoints" : [ 399.5, 120.0, 138.0, 120.0, 138.0, 129.0, 39.5, 129.0 ],
"order" : 2
}
}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-7", 0 ]
}
}
],
"appversion" : {
"major" : 8,
"minor" : 1,
"revision" : 3,
"architecture" : "x64",
"modernui" : 1
}
,
"styles" : [ {
"name" : "AudioStatus_Menu",
"default" : {
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.294118, 0.313726, 0.337255, 1 ],
"color1" : [ 0.454902, 0.462745, 0.482353, 0 ],
"color2" : [ 0.290196, 0.309804, 0.301961, 1 ],
"angle" : 270,
"proportion" : 0.39,
"autogradient" : 0
}
}
,
"parentstyle" : "",
"multi" : 0
}
, {
"name" : "newobjYellow-1",
"default" : {
"accentcolor" : [ 0.82517, 0.78181, 0.059545, 1.0 ],
"fontsize" : [ 12.059008 ]
}
,
"parentstyle" : "",
"multi" : 0
}
, {
"name" : "numberGold-1",
"default" : {
"accentcolor" : [ 0.764706, 0.592157, 0.101961, 1.0 ]
}
,
"parentstyle" : "",
"multi" : 0
}
],
"classnamespace" : "box"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment