Forums > MaxMSP

Ctrl Overtake


dnz
September 14, 2007 | 10:02 am

hi,

i’m trying to build a ctrl overtake function with use for different
presets on my uc33 for different parameters. that means that i might
change preset to control other paramters and go back to the previous
parameter and having the patch ‘recognise’ the difference and only
change the parameter when it ‘matches’ the ‘stored’ value.

i’ve thought that before i change the presets on my controller, i can
send a midi note nummer to store all the values, with float or int.
Has anyone attempted this before? Could anyone shed light on how this
can be achieved?

best
dennis


September 14, 2007 | 12:57 pm

try Recipe 35: Paramination for a start.
When u send it to an controller limit the sending speed with speedlim 75

DO_Ray

On 14 Sep 2007, at 12:02, Sonic Kooking wrote:

>
> hi,
>
> i’m trying to build a ctrl overtake function with use for different
> presets on my uc33 for different parameters. that means that i
> might change preset to control other paramters and go back to the
> previous parameter and having the patch ‘recognise’ the difference
> and only change the parameter when it ‘matches’ the ‘stored’ value.
>
> i’ve thought that before i change the presets on my controller, i
> can send a midi note nummer to store all the values, with float or
> int. Has anyone attempted this before? Could anyone shed light on
> how this can be achieved?
>
> best
> dennis
>



dnz
September 14, 2007 | 2:03 pm

i don’t have jitter.

any other possiblities?

dennis
Am 14.09.2007 um 15:00 schrieb DO_Ray:

> try Recipe 35: Paramination for a start.
> When u send it to an controller limit the sending speed with
> speedlim 75
>
> DO_Ray
>
> On 14 Sep 2007, at 12:02, Sonic Kooking wrote:
>
>>
>> hi,
>>
>> i’m trying to build a ctrl overtake function with use for
>> different presets on my uc33 for different parameters. that means
>> that i might change preset to control other paramters and go back
>> to the previous parameter and having the patch ‘recognise’ the
>> difference and only change the parameter when it ‘matches’ the
>> ‘stored’ value.
>>
>> i’ve thought that before i change the presets on my controller, i
>> can send a midi note nummer to store all the values, with float or
>> int. Has anyone attempted this before? Could anyone shed light on
>> how this can be achieved?
>>
>> best
>> dennis
>>
>


September 17, 2007 | 3:53 pm

Here’s a utility I made to do this.

On Sep 14, 2007, at 4:02 AM, Sonic Kooking wrote:

>
> hi,
>
> i’m trying to build a ctrl overtake function with use for different
> presets on my uc33 for different parameters. that means that i
> might change preset to control other paramters and go back to the
> previous parameter and having the patch ‘recognise’ the difference
> and only change the parameter when it ‘matches’ the ‘stored’ value.
>
> i’ve thought that before i change the presets on my controller, i
> can send a midi note nummer to store all the values, with float or
> int. Has anyone attempted this before? Could anyone shed light on
> how this can be achieved?
>
> best
> dennis

save this as sm.matchlock.mxb

max v2;
#N vpatcher 49 145 251 414;
#N comlet (int) 1 if left > right , else 0;
#P outlet 133 202 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 133 143 27 196617 > 1.;
#N comlet (int) 1 if left < right , else 0;
#P outlet 98 202 15 0;
#P newex 98 143 27 196617 < 1.;
#N comlet (int) 1 if left = right , else 0;
#P outlet 116 202 15 0;
#P newex 18 86 27 196617 f;
#P newex 63 55 29 196617 t b f;
#P newex 58 178 29 196617 gate;
#P newex 82 86 27 196617 f;
#P newex 58 143 34 196617 == 1.;
#P newex 18 55 40 196617 t f b f;
#N comlet (float) out = left input if left = right;
#P outlet 58 202 15 0;
#N comlet (float) right input;
#P inlet 63 27 15 0;
#N comlet (float) left input;
#P inlet 18 27 15 0;
#P connect 0 0 3 0;
#P connect 3 0 8 0;
#P fasten 7 0 8 0 68 76 23 76;
#P fasten 8 0 4 0 23 131 63 131;
#P connect 4 0 6 0;
#P connect 6 0 2 0;
#P connect 1 0 7 0;
#P fasten 3 2 6 1 53 173 82 173;
#P lcolor 5;
#P connect 7 1 5 0;
#P fasten 3 1 5 0 38 82 87 82;
#P lcolor 7;
#P fasten 5 0 4 1 87 123 87 123;
#P lcolor 7;
#P fasten 8 0 10 0 23 131 103 131;
#P connect 10 0 11 0;
#P fasten 5 0 10 1 87 123 120 123;
#P lcolor 7;
#P fasten 4 0 9 0 63 166 121 166;
#P lcolor 5;
#P fasten 8 0 12 0 23 131 138 131;
#P connect 12 0 13 0;
#P fasten 5 0 12 1 87 123 155 123;
#P lcolor 7;
#P pop;

save this as sm.matchlock.help

max v2;
#N vpatcher 555 229 997 632;
#P window setfont "Sans Serif" 10.;
#P window linecount 7;
#P user com 151 205 204 196618 82;
#K set 0 17513 29285 25460 26991 28275 14861 3377 10528 21349 29728
30305 27765 25888 26990 8306 26983 26740 8297 28268 25972 3341 12841
8291 26721 28263 25888 30305 27765 25888 28518 8300 25958 29728 26990
27749 29728 11552 27749 26228 8303 30068 27749 29728 28526 27769 8303
30068 28789 29811 8310 24940 30053 8303 26144 27749 26228 8297 28268
25972 8311 26725 28192 26996 8301 24948 25448 25971 8308 26725 8310
24940 30053 8303 26144 29800 25888 29289 26472 29728 26990 27749 29742;
#K end;
#P toggle 81 118 15 0;
#P toggle 81 132 15 0;
#P toggle 81 146 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 33 79 71 196617 sm.matchlock;
#P flonum 94 53 42 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 33 54 42 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 10.;
#P window linecount 11;
#P user com 150 45 204 196618 155;
#K set 0 19557 26228 8297 28268 25972 8237 8292 31086 24941 26979
24940 27769 8291 26721 28263 26990 26400 26990 28789 29709 21097
26472 29728 26990 27749 29728 11552 28786 25974 26991 30067 27769
8307 25972 8291 28526 29810 28524 11789 3404 25958 29728 28533 29804
25972 8237 8303 30068 28789 29811 8310 24940 30053 8303 26144 27749
26228 8297 28268 25972 8303 28268 31008 26982 8297 29728 28001 29795
26725 29472 29800 25888 30305 27765 25888 26990 8308 26725 8306 26983
26740 8297 28268 25972 3341 12844 8243 8230 8244 8303 30068 27749
29811 8237 8307 25966 25632 12576 26982 8308;
#K set 100 26725 8297 28259 28525 26990 26400 30305 27765 25888 26995
8290 25964 28535 11296 25969 30049 27680 29807 11296 28530 8289 25199
30309 8308 26725 8306 26983 26740 8297 28272 30068 8310 24940 30053
11296 29285 29552 25955 29801 30309 27769 11296 28532 26725 29303
26995 25888 29800 25977 8307 25966 25632 28533 29728 12334;
#K end;
#P connect 1 0 3 0;
#P hidden connect 3 3 6 0;
#P hidden connect 3 2 5 0;
#P hidden connect 3 1 4 0;
#P hidden fasten 3 0 2 0 38 104 139 104 139 44 99 44;
#P connect 2 0 3 1;
#P pop;

—-
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>


September 22, 2007 | 10:40 pm

hi steve,

great! thanks for the patch. I’ll try on with my controller and let
you know the results.

denniz
Am 17.09.2007 um 17:53 schrieb Steven Miller:

> Steven M. Miller


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