auto midi mapping

Oct 4, 2007 at 7:21pm

auto midi mapping

Hi,
maybe somebody can tell how to make a midi mapping for my synth.
the idea is to click a buton next to the number box, make the movement on the controller and fix the controller number in ctlin.
every help is welcome..

#33975
Oct 4, 2007 at 8:05pm

#113912
Oct 4, 2007 at 9:13pm

On Oct 4, 2007, at 12:21 PM, i.te wrote:

>
> Hi,
> maybe somebody can tell how to make a midi mapping for my synth.
> the idea is to click a buton next to the number box, make the
> movement on the controller and fix the controller number in ctlin.
> every help is welcome..

I do it like this. There are likely smarter ways, but this works

max v2;
#N vpatcher 89 44 689 444;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 74 208 40 196617 ctlin;
#P toggle 74 109 15 0;
#P newex 74 172 29 196617 gate;
#P newex 93 139 62 196617 prepend set;
#P number 93 109 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 78 78 40 196617 ctlin;
#P connect 4 0 3 0;
#P connect 3 0 5 0;
#P connect 0 1 1 0;
#P connect 1 0 2 0;
#P connect 2 0 3 1;
#P pop;

#113913
Oct 4, 2007 at 9:57pm
#113914
Oct 4, 2007 at 10:04pm

Here’s a utility I made that does this. Note you could easily extend
this scenario to also ‘learn’ which MIDI channel to read, as well.

save as ‘sm.MIDI-ctl_learn.mxb’:
max v2;
#N vpatcher 456 229 1130 694;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 163 95 20 196617 t b;
#P newex 74 67 40 196617 ctlin;
#N comlet (message) set int;
#P outlet 89 289 15 0;
#P newex 89 219 62 196617 prepend set;
#P message 89 132 14 196617 0;
#P newex 89 98 29 196617 t b i;
#P message 163 132 14 196617 1;
#P newex 89 171 29 196617 gate;
#N comlet (anything) ‘learn’ incoming controller number;
#P inlet 163 67 15 0;
#P connect 7 1 3 0;
#P connect 3 0 4 0;
#P connect 4 0 1 0;
#P lcolor 2;
#P fasten 2 0 1 0 168 159 94 159;
#P lcolor 2;
#P connect 1 0 5 0;
#P connect 5 0 6 0;
#P connect 3 1 1 1;
#P connect 0 0 8 0;
#P connect 8 0 2 0;
#P pop;

save as ‘sm.MIDI-ctl_learn.help’:
max v2;
#N vpatcher 20 74 620 474;
#P button 60 73 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 60 107 92 196617 sm.MIDI-ctl_learn;
#P newex 60 154 39 196617 ctlin 1;
#P window setfont “Sans Serif” 12.;
#P window linecount 15;
#P user com 187 80 132 196620 120;
#K set 0 17513 29285 25460 26991 28275 14861 18537 29728 17013 29812
28526 11296 29800 25966 8307 25966 25632 19785 17481 8291 28526 29810
28524 27749 29216 29800 24948 8313 28533 8311 24942 29728 28005 28015
29289 31333 25646 3341 20079 29797 14880 29800 25888 23395 29804
26990 23840 29800 24948 8313 28533 8311 24942 29728 29807 8307 25972
8310 26977 8308 26725 8231 19785 17481 8300 25953 29294 10016 26229
28259 29801 28526 8301 30067 29728 25189 8304 29285 26990 26996 26977
27753 31333 25644 8303 29800 25970 30569 29541 8297 29728 30569 27756
8297 26478 28530 25888 29800 25888 10099;
#K set 100 25972 10016 25455 28013 24942 25632 10339 11878 11808
29800 25888 25460 27753 28192 26725 27760 8304 24948 25448 10542;
#K end;
#P connect 3 0 2 0;
#P connect 2 0 1 0;
#P pop;

On Oct 4, 2007, at 1:21 PM, i.te wrote:

>
> Hi,
> maybe somebody can tell how to make a midi mapping for my synth.
> the idea is to click a buton next to the number box, make the
> movement on the controller and fix the controller number in ctlin.
> every help is welcome..
>

—-
Steven M. Miller
Professor, Contemporary Music Program
College of Santa Fe

Home < http://pubweb.csf.edu/~smill>
SFIFEM <
http://sfifem.csf.edu>
Atrium Sound Space <
http://atrium.csf.edu>
OVOS <
http://pubweb.csf.edu/~smill/ovos.html>
CMP <
http://www.csf.edu/csf/academics/cmp/index.html>

#113915
Oct 5, 2007 at 9:30am

thanks to everybody, this forum really rocks!!

#113916
Jun 17, 2009 at 3:24am

sorry for the terribly dumb question.. but when one saves objects from text, such as above.. where in the max folder do you save it?

Cheers!

#113917
Jun 17, 2009 at 6:45am

Here’s how I do it at the moment. Might be a little more comlicated than necessary, and I’ve recently been having trouble with ctlin, so I’ll have to adapt it for midiparse.

Have fun messing with it.

– Pasted Max Patch, click to expand. –
#113918
Jun 17, 2009 at 10:12am

(sorry to repeat..)

How do you then convert these into objects to use in max??

#113919
Jun 17, 2009 at 10:17am

copy all the strange text between and including the —-begin/end_max5_patcher——

then choose new from clipboard from the file menu

To post in text like that, select the patch and choose copy compressed from the edit menu

its all explained in the sticky “how to post patches to the forum”

#113920
Jun 17, 2009 at 10:22am

You might also want to check out this javascript that I’ve written for dynamically creating, connecting and deleting [ctlin] objects.

lh

http://www.cycling74.com/forums/index.php?t=msg&goto=172287&rid=7622&S=72160d18414a0eeaff5899d211b67a51&srch=midi+learn#msg_172287

#113921
Jun 17, 2009 at 10:24am

thanks, checking it out now..

Just been having trouble getting the actual objects people have been posting to get into max.. (Externals?). I tried to do the Install thing, but when I navigate to the folder all the objects are grayed out…!

Thanks for having pity on a noobie like me Smile

Kris

#113922
Jun 17, 2009 at 10:30am

I have a folder on disc containing all the external objects (.mxo files), libraries, abstractions and javascripts etc I use and another one for all the ones I have created myself. Then I added them to the max search path using options > file preferences from the menu. If you don’t want to add something like this permanently you can just make sure that all the files you need are in the same folder as the main max patch because max checks here and the searchpath when looking for abstractions, externals etc.

lh

#113923

You must be logged in to reply to this topic.