Skip to content

Commit

Permalink
console-checker abstractions: adding 2nd outlet as it appears some @c…
Browse files Browse the repository at this point in the history
…assiel test patchers use one.
  • Loading branch information
Timothy Place committed Sep 1, 2016
1 parent f1bde66 commit d81c900
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 36 deletions.
57 changes: 35 additions & 22 deletions patchers/lib/CheckConsoleClear.maxpat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"major" : 7,
"minor" : 2,
"revision" : 5,
"architecture" : "x86",
"architecture" : "x64",
"modernui" : 1
}
,
Expand Down Expand Up @@ -39,6 +39,19 @@
"style" : "cassiel",
"subpatcher_template" : "cassiel",
"boxes" : [ {
"box" : {
"comment" : "bang when checked",
"id" : "obj-1",
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 420.0, 420.0, 30.0, 30.0 ],
"presentation_rect" : [ 413.0, 418.0, 0.0, 0.0 ],
"style" : ""
}

}
, {
"box" : {
"id" : "obj-16",
"maxclass" : "comment",
Expand Down Expand Up @@ -132,8 +145,7 @@
"id" : "obj-11",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"numoutlets" : 0,
"patching_rect" : [ 225.0, 365.0, 169.0, 20.0 ],
"style" : "",
"text" : "test.assert #1:Console"
Expand Down Expand Up @@ -213,6 +225,15 @@
"source" : [ "obj-10", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-12", 0 ]
}

}
, {
"patchline" : {
Expand Down Expand Up @@ -305,19 +326,16 @@

}
],
"dependency_cache" : [ {
"name" : "oscar.mxo",
"type" : "iLaX"
}
, {
"name" : "oscar.mxo",
"type" : "iLaX"
}
],
"dependency_cache" : [ ],
"autosave" : 0,
"styles" : [ {
"name" : "cassiel",
"default" : {
"fontname" : [ "Courier" ],
"bgcolor" : [ 0.095481, 0.100396, 0.100293, 1.0 ],
"patchlinecolor" : [ 0.960784, 0.827451, 0.156863, 0.9 ],
"color" : [ 1.0, 1.0, 1.0, 1.0 ],
"elementcolor" : [ 0.32549, 0.345098, 0.372549, 1.0 ],
"bgfillcolor" : {
"type" : "gradient",
"color" : [ 0.290196, 0.309804, 0.301961, 1.0 ],
Expand All @@ -328,12 +346,7 @@
"autogradient" : 0
}
,
"bgcolor" : [ 0.095481, 0.100396, 0.100293, 1.0 ],
"color" : [ 1.0, 1.0, 1.0, 1.0 ],
"elementcolor" : [ 0.32549, 0.345098, 0.372549, 1.0 ],
"selectioncolor" : [ 0.784314, 0.145098, 0.023529, 1.0 ],
"patchlinecolor" : [ 0.960784, 0.827451, 0.156863, 0.9 ],
"fontname" : [ "Courier" ]
"selectioncolor" : [ 0.784314, 0.145098, 0.023529, 1.0 ]
}
,
"parentstyle" : "",
Expand All @@ -351,9 +364,9 @@
, {
"name" : "foo-style",
"default" : {
"fontname" : [ "Courier" ],
"color" : [ 0.720698, 0.16723, 0.080014, 1.0 ],
"elementcolor" : [ 0.836576, 0.903148, 0.643029, 1.0 ],
"fontname" : [ "Courier" ]
"elementcolor" : [ 0.836576, 0.903148, 0.643029, 1.0 ]
}
,
"parentstyle" : "",
Expand All @@ -362,12 +375,12 @@
, {
"name" : "sky-blue",
"default" : {
"fontname" : [ "Courier" ],
"bgcolor" : [ 0.670588, 0.74902, 0.807843, 1.0 ],
"textcolor_inverse" : [ 0.239216, 0.254902, 0.278431, 1.0 ],
"color" : [ 0.095481, 0.100396, 0.100293, 1.0 ],
"elementcolor" : [ 0.792189, 0.848618, 0.854853, 1.0 ],
"selectioncolor" : [ 0.870588, 0.415686, 0.062745, 1.0 ],
"fontname" : [ "Courier" ]
"selectioncolor" : [ 0.870588, 0.415686, 0.062745, 1.0 ]
}
,
"parentstyle" : "default",
Expand Down
51 changes: 37 additions & 14 deletions patchers/lib/CheckConsoleHasError.maxpat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"major" : 7,
"minor" : 2,
"revision" : 5,
"architecture" : "x86",
"architecture" : "x64",
"modernui" : 1
}
,
Expand Down Expand Up @@ -39,6 +39,19 @@
"style" : "cassiel",
"subpatcher_template" : "cassiel",
"boxes" : [ {
"box" : {
"comment" : "bang when checked",
"id" : "obj-1",
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 270.0, 440.0, 30.0, 30.0 ],
"presentation_rect" : [ 115.0, 426.0, 0.0, 0.0 ],
"style" : ""
}

}
, {
"box" : {
"id" : "obj-25",
"maxclass" : "message",
Expand Down Expand Up @@ -159,7 +172,7 @@
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"outlettype" : [ "" ],
"patching_rect" : [ 105.0, 30.0, 30.0, 30.0 ],
"style" : ""
}
Expand All @@ -171,8 +184,7 @@
"id" : "obj-11",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"numoutlets" : 0,
"patching_rect" : [ 180.0, 405.0, 370.0, 20.0 ],
"style" : "",
"text" : "test.assert #1:ExpectedMatch #2"
Expand Down Expand Up @@ -207,6 +219,15 @@
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-10", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-11", 0 ],
"disabled" : 0,
Expand Down Expand Up @@ -306,9 +327,16 @@

}
],
"dependency_cache" : [ ],
"autosave" : 0,
"styles" : [ {
"name" : "cassiel",
"default" : {
"fontname" : [ "Courier" ],
"bgcolor" : [ 0.095481, 0.100396, 0.100293, 1.0 ],
"patchlinecolor" : [ 0.960784, 0.827451, 0.156863, 0.9 ],
"color" : [ 1.0, 1.0, 1.0, 1.0 ],
"elementcolor" : [ 0.32549, 0.345098, 0.372549, 1.0 ],
"bgfillcolor" : {
"type" : "gradient",
"color" : [ 0.290196, 0.309804, 0.301961, 1.0 ],
Expand All @@ -319,12 +347,7 @@
"autogradient" : 0
}
,
"bgcolor" : [ 0.095481, 0.100396, 0.100293, 1.0 ],
"color" : [ 1.0, 1.0, 1.0, 1.0 ],
"elementcolor" : [ 0.32549, 0.345098, 0.372549, 1.0 ],
"selectioncolor" : [ 0.784314, 0.145098, 0.023529, 1.0 ],
"patchlinecolor" : [ 0.960784, 0.827451, 0.156863, 0.9 ],
"fontname" : [ "Courier" ]
"selectioncolor" : [ 0.784314, 0.145098, 0.023529, 1.0 ]
}
,
"parentstyle" : "",
Expand All @@ -342,9 +365,9 @@
, {
"name" : "foo-style",
"default" : {
"fontname" : [ "Courier" ],
"color" : [ 0.720698, 0.16723, 0.080014, 1.0 ],
"elementcolor" : [ 0.836576, 0.903148, 0.643029, 1.0 ],
"fontname" : [ "Courier" ]
"elementcolor" : [ 0.836576, 0.903148, 0.643029, 1.0 ]
}
,
"parentstyle" : "",
Expand All @@ -353,12 +376,12 @@
, {
"name" : "sky-blue",
"default" : {
"fontname" : [ "Courier" ],
"bgcolor" : [ 0.670588, 0.74902, 0.807843, 1.0 ],
"textcolor_inverse" : [ 0.239216, 0.254902, 0.278431, 1.0 ],
"color" : [ 0.095481, 0.100396, 0.100293, 1.0 ],
"elementcolor" : [ 0.792189, 0.848618, 0.854853, 1.0 ],
"selectioncolor" : [ 0.870588, 0.415686, 0.062745, 1.0 ],
"fontname" : [ "Courier" ]
"selectioncolor" : [ 0.870588, 0.415686, 0.062745, 1.0 ]
}
,
"parentstyle" : "default",
Expand Down

0 comments on commit d81c900

Please sign in to comment.