Forums > MaxMSP

hotkey designation

August 27, 2008 | 11:13 pm

Max five gives automatic jit., number, float, bang, comment , message, object boxes on pressing the keyboard hotkeys on the patching canvas. but some things are now harder. I never had to write out inlet or outlet before in Max 4. I request if its not already done that a mappable clippings or new object list could be created and modified so that every user can design a keyboard layout to automate individual objects or maybe even abstractions per key in the patching window.


August 27, 2008 | 11:29 pm


August 28, 2008 | 11:36 am

You could use this patch. Click the toggle to turn on then ALT+I creates an inlet and ALT+O creates an outlet.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N thispatcher;
#Q end;
#P newobj 327 134 61 196617 thispatcher;
#P toggle 327 90 15 0;
#N vpatcher 20 74 620 474;
#P outlet 51 227 15 0;
#P inlet 50 30 15 0;
#P window setfont "Sans Serif" 9.;
#P message 51 208 159 196617 script newdefault var3 $2 $3 $1;
#P newex 51 187 56 196617 pack s 0 0;
#P newex 51 163 69 196617 route symbol;
#N coll keys;
#T flags 1 0;
#T 238 inlet;
#T 339 outlet;
#P newobj 51 141 53 196617 coll keys;
#P newex 51 120 184 196617 if $i2 == 2048 then $i1 else out2 bang;
#P newex 51 95 40 196617 key;
#P newex 116 92 125 196617 mousestate;
#P message 116 72 42 196617 mode 2;
#P message 77 72 36 196617 nopoll;
#P message 50 72 24 196617 poll;
#P newex 50 50 64 196617 route 1 0;
#P connect 11 0 0 0;
#P connect 0 0 1 0;
#P connect 5 0 6 0;
#P connect 6 0 7 0;
#P connect 7 0 8 0;
#P connect 8 0 9 0;
#P connect 9 0 10 0;
#P connect 10 0 12 0;
#P connect 4 1 9 1;
#P connect 0 1 2 0;
#P connect 4 2 9 2;
#P connect 0 0 3 0;
#P connect 0 1 3 0;
#P fasten 1 0 4 0 55 90 121 90;
#P fasten 2 0 4 0 82 90 121 90;
#P connect 3 0 4 0;
#P connect 5 2 6 1;
#P pop;
#P newobj 327 112 39 196617 p keys;
#P connect 0 0 2 0;
#P connect 1 0 0 0;
#P window clipboard copycount 3;

The ASCII codes are different from Max 4 to Max 5 (?). I posted in a Max 4 format so everyone can use/modify it but the key codes are in Max 5 format as it’s for Max 5.


August 28, 2008 | 1:18 pm

Here is a similar method, in this case using the , and . keys but of course you could edit the patch to any key you chose.

The downside is you would have to add it to every patch you work on. I find it much easier to double click and then add from the object palette.

lh

– Pasted Max Patch, click to expand. –

August 28, 2008 | 2:48 pm

Quote: thereishopeforus@hotmail.com wrote on Thu, 28 August 2008 15:18
—————————————————-
> Here is a similar method, in this case using the , and . keys but of course you could edit the patch to any key you chose.
>
> The downside is you would have to add it to every patch you work on. I find it much easier to double click and then add from the object palette.
>
> lh
—————————————————-

That’s basically the same as my patch but you can’t add extra keys so easily using the coll object. Also if you press those keys while typing normally it causes object to be created, hence why the ALT key.

As for adding it to any patch just swap the toggle for a [loadmess 1] and add it to your extras menu then you don’t have to. And because of the mode 2 command you only need one instance of it while Max/MSP is open.

I think the reason for the different ASCII codes in the max versions is because I am using a French keyboard? Seems a bit odd though.


August 28, 2008 | 3:09 pm

But won’t that create inlets and outlets only in the patch containing the [thispatcher] object? Sorry if I’m getting something confused!

lh


August 28, 2008 | 5:09 pm


August 28, 2008 | 7:49 pm

On Aug 27, 2008, at 4:13 PM, Derek Franz wrote:

> Max five gives automatic jit., number, float, bang, comment ,
> message, object boxes on pressing the keyboard hotkeys on the
> patching canvas. but some things are now harder. I never had to
> write out inlet or outlet before in Max 4. I request if its not
> already done that a mappable clippings or new object list could be
> created and modified so that every user can design a keyboard layout
> to automate individual objects or maybe even abstractions per key in
> the patching window.

You can edit the file max-keycommands.txt to add object creation
hotkeys. Just remember to back it up as it can be replaced during
updates.

I don’t have a Win box in front of me right now, but if you’re on a
Mac it lives at /Applications/Max5/Cycling ’74/init/max-keycommands.txt

I have inlet and outlet creation assigned to a and z.

Vlad

Vlad Spears
Tanj! I’m already out of Known Space!

http://www.daevlmakr.com

http://www.2secondfuse.com


August 28, 2008 | 9:07 pm

Already done Emmanuel! Thanks anyway. This has increased my inlet and outlet patching efficiency by about 0.7 seconds =D

lh


August 28, 2008 | 9:15 pm


September 3, 2008 | 7:14 am

the hotkey designation works really easy and well but if I try to assign a capital letter, e.x. ‘I’ or ‘K’ or whatever it doesn’t work…why is that – because ‘P’ is assigned and works well….?

can’t u use capital letters for hotkey assignements?

Cheers
Peer


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