Forums > MaxMSP

Need help building stand alone

August 7, 2008 | 11:08 pm

Hello all,

I’ve built a simple patch in MAX that works fine in MAX, gives me no errors in stand-alone mode, but doesn’t function properly there. When I run it as a standalone after building it everything works except for the video portion. It just shows up as a black window. Any ideas what might cause this?

Again, I am including CG.framework, and I’m getting NO errors in the Max window. And as I said, it works perfectly fine inside of MAX. Just can’t get video out of the standalone. Without errors I have no idea what to even look for.

thanks in advance for any help that anyone can provide.

–Chad


August 8, 2008 | 7:20 am

hmmm… i read your other posts, and it sounds like it’s a hard problem to solve without seeing the patch. you might even consider emailing support@cycling74.com (i had a problem back in Max4.6 with figuring out what to include for an application involving a javascript interface(moving 3d objects around to control placement of videoplanes and lighting schemes using mouse detection over a jit.window and they figured it out with me over just a couple emails))… otherwise, i’d post your patch and maybe people here on the forums will be able to help you sooner.


August 8, 2008 | 2:58 pm

Ok, here is the patch. It’s a simple unique random number generator I am making for my dad who likes to play the lottery :) I added the graphics and sound just for fun. The shuffling lottery balls image is what is not showing up in the standalone:

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 0.0, 44.0, 1022.0, 726.0 ],
"bglocked" : 0,
"defrect" : [ 0.0, 44.0, 1022.0, 726.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "Audio On",
"fontname" : "Arial",
"id" : "obj-68",
"numinlets" : 1,
"patching_rect" : [ 916.0, 468.0, 150.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Mute Audio",
"fontname" : "Arial",
"id" : "obj-41",
"numinlets" : 1,
"patching_rect" : [ 916.0, 446.0, 150.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0.5",
"outlettype" : [ "" ],
"fontname" : "Arial",
"presentation_rect" : [ 899.0, 472.0, 0.0, 0.0 ],
"id" : "obj-29",
"numinlets" : 2,
"patching_rect" : [ 880.0, 470.0, 32.5, 18.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-28",
"numinlets" : 2,
"patching_rect" : [ 881.0, 448.0, 32.5, 18.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~ 0.5",
"outlettype" : [ "signal" ],
"hidden" : 1,
"fontname" : "Arial",
"presentation_rect" : [ 822.0, 462.0, 0.0, 0.0 ],
"id" : "obj-14",
"numinlets" : 2,
"patching_rect" : [ 822.0, 462.0, 42.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~ 0.5",
"outlettype" : [ "signal" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-8",
"numinlets" : 2,
"patching_rect" : [ 749.0, 460.0, 42.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "standalone",
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-4",
"numinlets" : 1,
"patching_rect" : [ 75.0, 16.0, 69.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 0,
"saved_object_attributes" : {
"noloadbangdefeating" : 0,
"statusvisible" : 1,
"audiosupport" : 1,
"usesearchpath" : 0,
"searchformissingfiles" : 1,
"overdrive" : 0,
"midisupport" : 1,
"cantclosetoplevelpatchers" : 1,
"preffilename" : "Max 5 Preferences",
"allwindowsactive" : 0
}

}

}
, {
"box" : {
"maxclass" : "message",
"text" : "Ohio Lottery Numbers Generator By: Chad Mossholder",
"outlettype" : [ "" ],
"fontname" : "Lucida Bright",
"id" : "obj-27",
"bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"numinlets" : 2,
"patching_rect" : [ 234.0, 618.0, 396.0, 21.0 ],
"fontface" : 1,
"fontsize" : 14.0,
"numoutlets" : 1,
"ignoreclick" : 1
}

}
, {
"box" : {
"maxclass" : "button",
"outlettype" : [ "bang" ],
"fgcolor" : [ 0.141176, 0.25098, 0.109804, 1.0 ],
"presentation_rect" : [ 221.0, 194.0, 37.0, 37.0 ],
"id" : "obj-23",
"outlinecolor" : [ 1.0, 0.0, 0.0, 1.0 ],
"blinkcolor" : [ 1.0, 0.878431, 0.0, 1.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 0.74902 ],
"numinlets" : 1,
"patching_rect" : [ 226.0, 206.0, 23.0, 23.0 ],
"presentation" : 1,
"numoutlets" : 1,
"ignoreclick" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "p shuffle_random",
"outlettype" : [ "", "", "", "", "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-5",
"numinlets" : 1,
"patching_rect" : [ 132.0, 196.0, 104.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 5,
"patcher" : {
"fileversion" : 1,
"rect" : [ 631.0, 284.0, 640.0, 480.0 ],
"bglocked" : 0,
"defrect" : [ 631.0, 284.0, 640.0, 480.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 14.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "newobj",
"text" : "uzi 5",
"outlettype" : [ "bang", "bang", "int" ],
"fontname" : "Arial",
"id" : "obj-10",
"numinlets" : 2,
"patching_rect" : [ 285.0, 145.0, 46.0, 23.0 ],
"fontsize" : 14.0,
"numoutlets" : 3
}

}
, {
"box" : {
"maxclass" : "inlet",
"annotation" : "in to trigger",
"outlettype" : [ "bang" ],
"id" : "obj-13",
"numinlets" : 0,
"patching_rect" : [ 285.0, 105.0, 25.0, 25.0 ],
"numoutlets" : 1,
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "outlet",
"id" : "obj-9",
"numinlets" : 1,
"patching_rect" : [ 330.0, 389.0, 25.0, 25.0 ],
"numoutlets" : 0,
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "outlet",
"id" : "obj-8",
"numinlets" : 1,
"patching_rect" : [ 304.0, 389.0, 25.0, 25.0 ],
"numoutlets" : 0,
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "outlet",
"id" : "obj-7",
"numinlets" : 1,
"patching_rect" : [ 277.0, 389.0, 25.0, 25.0 ],
"numoutlets" : 0,
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "outlet",
"id" : "obj-5",
"numinlets" : 1,
"patching_rect" : [ 251.0, 389.0, 25.0, 25.0 ],
"numoutlets" : 0,
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "outlet",
"annotation" : "out 1",
"id" : "obj-3",
"numinlets" : 1,
"patching_rect" : [ 225.0, 389.0, 25.0, 25.0 ],
"numoutlets" : 0,
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+ 1",
"outlettype" : [ "int" ],
"fontname" : "Arial",
"id" : "obj-43",
"numinlets" : 2,
"patching_rect" : [ 226.0, 193.0, 32.5, 23.0 ],
"fontsize" : 14.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "set $1",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-21",
"numinlets" : 2,
"patching_rect" : [ 285.0, 267.0, 49.0, 21.0 ],
"fontsize" : 14.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "prepend",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-19",
"numinlets" : 1,
"patching_rect" : [ 225.0, 300.0, 62.0, 23.0 ],
"fontsize" : 14.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"id" : "obj-16",
"numinlets" : 1,
"patching_rect" : [ 226.0, 230.0, 50.0, 23.0 ],
"fontsize" : 14.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "route 1 2 3 4 5",
"outlettype" : [ "", "", "", "", "", "" ],
"fontname" : "Arial",
"id" : "obj-11",
"numinlets" : 1,
"patching_rect" : [ 225.0, 342.0, 101.0, 23.0 ],
"fontsize" : 14.0,
"numoutlets" : 6
}

}
, {
"box" : {
"maxclass" : "button",
"outlettype" : [ "bang" ],
"id" : "obj-6",
"numinlets" : 1,
"patching_rect" : [ 285.0, 177.0, 20.0, 20.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"id" : "obj-4",
"numinlets" : 1,
"patching_rect" : [ 285.0, 230.0, 50.0, 23.0 ],
"fontsize" : 14.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "urn 55",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"id" : "obj-1",
"numinlets" : 2,
"patching_rect" : [ 226.0, 145.0, 50.0, 23.0 ],
"fontsize" : 14.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "clear",
"outlettype" : [ "" ],
"fontname" : "Arial",
"id" : "obj-17",
"numinlets" : 2,
"patching_rect" : [ 226.0, 111.0, 50.0, 21.0 ],
"fontsize" : 14.0,
"numoutlets" : 1
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-43", 0 ],
"destination" : [ "obj-16", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-21", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ 294.5, 290.0, 235.0, 290.0, 235.0, 296.0, 234.5, 296.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-11", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-21", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 1 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"midpoints" : [ 250.899994, 386.0, 260.5, 386.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 2 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"midpoints" : [ 267.299988, 386.0, 286.5, 386.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 3 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"midpoints" : [ 283.700012, 383.0, 313.5, 383.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 4 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"midpoints" : [ 300.100006, 365.0, 339.5, 365.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 1 ],
"destination" : [ "obj-17", 0 ],
"hidden" : 0,
"midpoints" : [ 308.0, 168.0, 276.0, 168.0, 276.0, 108.0, 235.5, 108.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 2 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ 321.5, 216.0, 294.5, 216.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ 294.5, 198.0, 270.0, 198.0, 270.0, 180.0, 213.0, 180.0, 213.0, 141.0, 235.5, 141.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-43", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}
,
"saved_object_attributes" : {
"default_fontface" : 0,
"fontname" : "Arial",
"default_fontname" : "Arial",
"default_fontsize" : 14.0,
"globalpatchername" : "",
"fontface" : 0,
"fontsize" : 14.0
}

}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 55",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-107",
"numinlets" : 2,
"patching_rect" : [ 555.0, 211.0, 68.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"hidden" : 1,
"id" : "obj-108",
"numinlets" : 1,
"patching_rect" : [ 555.0, 159.0, 20.0, 20.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 5",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-109",
"numinlets" : 2,
"patching_rect" : [ 555.0, 184.0, 51.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 55",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-104",
"numinlets" : 2,
"patching_rect" : [ 419.0, 216.0, 68.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"hidden" : 1,
"id" : "obj-105",
"numinlets" : 1,
"patching_rect" : [ 420.0, 159.0, 20.0, 20.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 5",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-106",
"numinlets" : 2,
"patching_rect" : [ 419.0, 189.0, 51.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 55",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-99",
"numinlets" : 2,
"patching_rect" : [ 296.0, 269.0, 68.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"hidden" : 1,
"id" : "obj-100",
"numinlets" : 1,
"patching_rect" : [ 300.0, 220.0, 20.0, 20.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 5",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-101",
"numinlets" : 2,
"patching_rect" : [ 296.0, 242.0, 51.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 55",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-96",
"numinlets" : 2,
"patching_rect" : [ 220.0, 270.0, 68.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"hidden" : 1,
"id" : "obj-97",
"numinlets" : 1,
"patching_rect" : [ 224.0, 221.0, 20.0, 20.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 5",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-98",
"numinlets" : 2,
"patching_rect" : [ 220.0, 243.0, 51.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 55",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-93",
"numinlets" : 2,
"patching_rect" : [ 142.0, 274.0, 68.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"hidden" : 1,
"id" : "obj-94",
"numinlets" : 1,
"patching_rect" : [ 146.0, 225.0, 20.0, 20.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 5",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-95",
"numinlets" : 2,
"patching_rect" : [ 142.0, 247.0, 51.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 55",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-90",
"numinlets" : 2,
"patching_rect" : [ 57.0, 274.0, 68.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "toggle",
"outlettype" : [ "int" ],
"hidden" : 1,
"id" : "obj-89",
"numinlets" : 1,
"patching_rect" : [ 61.0, 225.0, 20.0, 20.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 5",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-85",
"numinlets" : 2,
"patching_rect" : [ 57.0, 247.0, 51.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+ 50",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-77",
"numinlets" : 2,
"patching_rect" : [ 280.0, 44.0, 34.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 250",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-70",
"numinlets" : 2,
"patching_rect" : [ 280.0, 22.0, 75.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+ 250",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-67",
"numinlets" : 2,
"patching_rect" : [ 799.0, 306.0, 41.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay 240",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-65",
"numinlets" : 2,
"patching_rect" : [ 212.0, 109.0, 63.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "select 32",
"outlettype" : [ "bang", "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-61",
"numinlets" : 2,
"patching_rect" : [ 192.0, 78.0, 59.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "keyup",
"outlettype" : [ "int", "int", "int", "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-59",
"numinlets" : 0,
"patching_rect" : [ 190.0, 44.0, 59.5, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 4
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 800",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-50",
"numinlets" : 2,
"patching_rect" : [ 799.0, 278.0, 75.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "cycle~ 1000",
"outlettype" : [ "signal" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-46",
"numinlets" : 2,
"patching_rect" : [ 751.0, 357.0, 71.0, 20.0 ],
"color" : [ 1.0, 0.890196, 0.090196, 1.0 ],
"fontsize" : 11.595187,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Press any other key to RESET",
"presentation_linecount" : 2,
"fontname" : "Arial",
"presentation_rect" : [ 374.0, 94.0, 219.0, 48.0 ],
"id" : "obj-87",
"numinlets" : 1,
"patching_rect" : [ 78.0, 161.0, 273.0, 27.0 ],
"fontsize" : 18.0,
"presentation" : 1,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "button",
"outlettype" : [ "bang" ],
"hidden" : 1,
"id" : "obj-86",
"numinlets" : 1,
"patching_rect" : [ 325.0, 100.0, 20.0, 20.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "select 32",
"outlettype" : [ "bang", "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-81",
"numinlets" : 2,
"patching_rect" : [ 76.0, 84.0, 59.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Press SPACE BAR to",
"fontname" : "Arial",
"presentation_rect" : [ 81.0, -4.0, 219.0, 27.0 ],
"id" : "obj-76",
"numinlets" : 1,
"patching_rect" : [ 78.0, 118.0, 219.0, 27.0 ],
"fontsize" : 18.0,
"presentation" : 1,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "key",
"outlettype" : [ "int", "int", "int", "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-75",
"numinlets" : 0,
"patching_rect" : [ 76.0, 43.0, 59.5, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 4
}

}
, {
"box" : {
"maxclass" : "button",
"outlettype" : [ "bang" ],
"hidden" : 1,
"id" : "obj-64",
"numinlets" : 1,
"patching_rect" : [ 847.0, 383.0, 20.0, 20.0 ],
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "ezdac~",
"hidden" : 1,
"id" : "obj-12",
"numinlets" : 2,
"patching_rect" : [ 776.0, 495.0, 45.0, 45.0 ],
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "number~",
"outlettype" : [ "signal", "float" ],
"hidden" : 1,
"mode" : 2,
"fontname" : "Arial",
"id" : "obj-72",
"numinlets" : 2,
"sig" : 0.0,
"patching_rect" : [ 681.0, 553.0, 56.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "ramptime 1000",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-73",
"numinlets" : 2,
"patching_rect" : [ 681.0, 420.0, 88.0, 18.0 ],
"fontsize" : 11.595187,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "zigzag~ 0.",
"outlettype" : [ "signal", "signal", "", "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-74",
"numinlets" : 2,
"patching_rect" : [ 681.0, 509.0, 66.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 4
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "y",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-71",
"numinlets" : 2,
"patching_rect" : [ 319.0, 314.0, 32.5, 18.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "x",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-69",
"numinlets" : 2,
"patching_rect" : [ 280.0, 314.0, 32.5, 18.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-63",
"numinlets" : 1,
"patching_rect" : [ 575.0, 382.0, 60.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "number~",
"outlettype" : [ "signal", "float" ],
"sigoutmode" : 0,
"hidden" : 1,
"mode" : 2,
"fontname" : "Arial",
"id" : "obj-62",
"interval" : 20.0,
"numinlets" : 2,
"sig" : 0.0,
"patching_rect" : [ 575.0, 555.0, 56.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 2,
"numdecimalplaces" : 3
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "ramptime 10000",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-58",
"numinlets" : 2,
"patching_rect" : [ 575.0, 420.0, 94.0, 18.0 ],
"fontsize" : 11.595187,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "zigzag~ 0.",
"outlettype" : [ "signal", "signal", "", "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-55",
"numinlets" : 2,
"patching_rect" : [ 575.0, 505.0, 66.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 4
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "read lottery.jpg",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-6",
"numinlets" : 2,
"patching_rect" : [ 136.0, 423.0, 90.0, 18.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-57",
"numinlets" : 1,
"patching_rect" : [ 352.0, 97.0, 60.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 5",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-56",
"numinlets" : 2,
"patching_rect" : [ 736.0, 232.0, 61.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 5",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-54",
"numinlets" : 2,
"patching_rect" : [ 628.0, 231.0, 61.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "scale 0 100 0.1 1",
"outlettype" : [ "float" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-51",
"numinlets" : 6,
"patching_rect" : [ 518.0, 264.0, 102.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 100",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-52",
"numinlets" : 2,
"patching_rect" : [ 518.0, 234.0, 75.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "scale 0 100 0.1 1",
"outlettype" : [ "float" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-48",
"numinlets" : 6,
"patching_rect" : [ 385.0, 266.0, 102.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 100",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-45",
"numinlets" : 2,
"patching_rect" : [ 385.0, 236.0, 75.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-43",
"numinlets" : 1,
"patching_rect" : [ 122.0, 347.0, 60.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"hidden" : 1,
"triscale" : 0.9,
"fontname" : "Arial",
"id" : "obj-18",
"numinlets" : 1,
"patching_rect" : [ 555.0, 306.0, 50.0, 20.0 ],
"fontsize" : 11.595187,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"hidden" : 1,
"triscale" : 0.9,
"fontname" : "Arial",
"id" : "obj-19",
"numinlets" : 1,
"patching_rect" : [ 502.0, 306.0, 50.0, 20.0 ],
"fontsize" : 11.595187,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "yskip $1",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-15",
"numinlets" : 2,
"patching_rect" : [ 555.0, 332.0, 51.0, 18.0 ],
"fontsize" : 11.595187,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "xskip $1",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-16",
"numinlets" : 2,
"patching_rect" : [ 502.0, 332.0, 51.0, 18.0 ],
"fontsize" : 11.595187,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "flonum",
"outlettype" : [ "float", "bang" ],
"hidden" : 1,
"triscale" : 0.9,
"fontname" : "Arial",
"id" : "obj-20",
"numinlets" : 1,
"patching_rect" : [ 428.0, 306.0, 50.0, 20.0 ],
"fontsize" : 11.595187,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "yrange $1",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-38",
"numinlets" : 2,
"patching_rect" : [ 433.0, 332.0, 60.0, 18.0 ],
"fontsize" : 11.595187,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "flonum",
"outlettype" : [ "float", "bang" ],
"hidden" : 1,
"triscale" : 0.9,
"fontname" : "Arial",
"id" : "obj-39",
"numinlets" : 1,
"patching_rect" : [ 370.0, 306.0, 50.0, 20.0 ],
"fontsize" : 11.595187,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "xrange $1",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-40",
"numinlets" : 2,
"patching_rect" : [ 369.0, 332.0, 60.0, 18.0 ],
"fontsize" : 11.595187,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.tiffany",
"outlettype" : [ "jit_matrix", "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-42",
"numinlets" : 1,
"patching_rect" : [ 279.0, 364.0, 53.0, 20.0 ],
"fontsize" : 11.595187,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "qmetro 30",
"outlettype" : [ "bang" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-114",
"numinlets" : 2,
"patching_rect" : [ 122.0, 391.0, 63.0, 20.0 ],
"fontsize" : 11.595187,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "jit.pwindow",
"outlettype" : [ "", "" ],
"id" : "obj-7",
"numinlets" : 1,
"patching_rect" : [ 316.0, 454.0, 172.0, 143.0 ],
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.qt.movie",
"outlettype" : [ "jit_matrix", "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-1",
"numinlets" : 1,
"patching_rect" : [ 122.0, 459.0, 68.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0.",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-36",
"numinlets" : 2,
"patching_rect" : [ 308.0, 124.0, 32.5, 18.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"triangle" : 0,
"id" : "obj-35",
"cantchange" : 1,
"numinlets" : 1,
"patching_rect" : [ 234.0, 418.0, 73.0, 34.0 ],
"fontsize" : 24.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"triangle" : 0,
"id" : "obj-34",
"cantchange" : 1,
"numinlets" : 1,
"patching_rect" : [ 25.0, 495.0, 73.0, 34.0 ],
"fontsize" : 24.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"triangle" : 0,
"id" : "obj-33",
"cantchange" : 1,
"numinlets" : 1,
"patching_rect" : [ 25.0, 456.0, 73.0, 34.0 ],
"fontsize" : 24.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"triangle" : 0,
"id" : "obj-32",
"cantchange" : 1,
"numinlets" : 1,
"patching_rect" : [ 25.0, 418.0, 73.0, 34.0 ],
"fontsize" : 24.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"triangle" : 0,
"id" : "obj-31",
"cantchange" : 1,
"numinlets" : 1,
"patching_rect" : [ 25.0, 381.0, 73.0, 34.0 ],
"fontsize" : 24.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+ 1",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-30",
"numinlets" : 2,
"patching_rect" : [ 483.0, 235.0, 32.5, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Your Numbers",
"frgb" : [ 0.992157, 0.0, 0.0, 1.0 ],
"textcolor" : [ 0.992157, 0.0, 0.0, 1.0 ],
"fontname" : "Arial",
"presentation_rect" : [ 55.0, 423.0, 234.0, 27.0 ],
"id" : "obj-17",
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 25.0, 309.0, 137.0, 27.0 ],
"fontface" : 1,
"fontsize" : 18.0,
"presentation" : 1,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "number",
"outlettype" : [ "int", "bang" ],
"fontname" : "Arial",
"triangle" : 0,
"id" : "obj-11",
"cantchange" : 1,
"numinlets" : 1,
"patching_rect" : [ 25.0, 343.0, 73.0, 34.0 ],
"fontsize" : 24.0,
"numoutlets" : 2
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Mega Ball Number",
"fontname" : "Arial",
"presentation_rect" : [ 357.0, 352.0, 219.0, 27.0 ],
"id" : "obj-10",
"bgcolor" : [ 1.0, 0.0, 0.0, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 314.0, 418.0, 219.0, 27.0 ],
"fontsize" : 18.0,
"presentation" : 1,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 45",
"outlettype" : [ "int" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-9",
"numinlets" : 2,
"patching_rect" : [ 483.0, 200.0, 68.0, 20.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "button",
"outlettype" : [ "bang" ],
"fgcolor" : [ 0.141176, 0.25098, 0.109804, 1.0 ],
"presentation_rect" : [ 38.0, 29.0, 37.0, 37.0 ],
"id" : "obj-2",
"outlinecolor" : [ 1.0, 0.0, 0.0, 1.0 ],
"blinkcolor" : [ 1.0, 0.878431, 0.0, 1.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 0.74902 ],
"numinlets" : 1,
"patching_rect" : [ 37.0, 123.0, 37.0, 37.0 ],
"presentation" : 1,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Generate Numbers.",
"fontname" : "Arial",
"presentation_rect" : [ 79.0, 36.0, 219.0, 27.0 ],
"id" : "obj-3",
"numinlets" : 1,
"patching_rect" : [ 78.0, 136.0, 219.0, 27.0 ],
"fontsize" : 18.0,
"presentation" : 1,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "grid 0",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-44",
"numinlets" : 2,
"patching_rect" : [ 609.0, 332.0, 41.0, 18.0 ],
"fontsize" : 12.0,
"numoutlets" : 1
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "startwindow",
"outlettype" : [ "" ],
"hidden" : 1,
"fontname" : "Arial",
"id" : "obj-13",


August 8, 2008 | 7:41 pm

Hi Chad,

I built a standalone from your patch, used one of my own jpgs and it seems to be working fine here. I would just make sure that you use an absolute path or make sure that the image file is in the same folder as the standalone or just place it in its package.

All the best,
-Ben


August 8, 2008 | 7:43 pm

ok,

I will try it that way. I did include the file when I built the app. Maybe it doesn’t work that way.

thanks for the feedback.


August 8, 2008 | 8:16 pm

So, absolute path did not fix it. and the file was already in the build. And that didn’t help. I can get it to run by adding the entire folder max5/patches/media and my .jpg is in there.

but then i add all the other media to my standalone. i have no idea why it won’t search anywhere else for the image. i even added the entire max folder to my search path.

any ideas?


August 8, 2008 | 10:56 pm

That is a bit mysterious.

Can you send the offending jpg zipped up to support at cycling74 dot com?

-Ben


Viewing 7 posts - 1 through 7 (of 7 total)