Forums > MaxMSP

pressing space bar (key 32) seems to throw me out of the patch

October 10, 2011 | 10:20 am

hi everybody,

vierd thing: when i press the space bar i can’t use my key-object-commands unless i cklick into the patch again…
what i am doing wrong?
thanks for your help,
r

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 25.0, 69.0, 640.0, 480.0 ],
"bglocked" : 0,
"defrect" : [ 25.0, 69.0, 640.0, 480.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,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"boxes" : [ {
"box" : {
"id" : "obj-10",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 237.0, 212.0, 20.0, 20.0 ]
}

}
, {
"box" : {
"id" : "obj-8",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 201.0, 212.0, 20.0, 20.0 ]
}

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

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-4",
"maxclass" : "number",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "int", "bang" ],
"patching_rect" : [ 124.0, 135.0, 50.0, 20.0 ]
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "bang", "bang", "bang", "" ],
"patching_rect" : [ 170.0, 174.0, 76.0, 20.0 ],
"text" : "sel 32 29 13"
}

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

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

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

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

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

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

}
]
}

}


October 10, 2011 | 10:28 am

[key] requires ‘focus’ so if you switch to another app or window it won’t work.

You can use [hi] if you require it to work all of the time as [hi] doesn’t care about focus.


October 10, 2011 | 10:52 am

hi rodrigo,
thanks for you answer…
it has never been the case before,
i just noticed it now and found it pretty annoing..

i’ve never needed [hi] before, it just worked always…

somehow seems my macbook pro switching to smth else when i press space bar…
what could it be?
have you any idea where can i find what i’m triggering with pressing it?
thanks and sorr for boring you with silly things..
r


October 10, 2011 | 10:54 am

omg,

i just relaunched max and it’s fixed…

:-)

sorry again..

r


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