Forums > MaxMSP

need object who can convert 100-1 to 1-100

December 11, 2006 | 4:25 pm

hello people,

is there any object whon can convert the values (for example; in the range 1-100) 1 to a 100 and then 2 to 99, 3 to 98, a so on ?

i cant find a mathematical solution, bcos im too stupid for this!

cheers


December 11, 2006 | 4:43 pm

> is there any object whon can convert the values (for example; in the range 1-100) 1 to a 100 and then 2 to 99, 3 to 98, a so on ?

the short answer is !-


December 11, 2006 | 4:46 pm


December 11, 2006 | 4:47 pm

or
[scale 100 1 1 100]


December 11, 2006 | 4:50 pm

thankz al ot !


December 11, 2006 | 5:00 pm

Pretty straightforward with [scale] reversing the hi & low boundaries.

max v2;
#N vpatcher 271 278 871 678;
#P window setfont "Sans Serif" 9.;
#P number 172 203 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 172 160 93 196617 scale 1 100 100 1;
#P number 172 129 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P pop;

On Dec 11, 2006, at 9:25 AM, Dieter_Laser wrote:

>
> hello people,
>
> is there any object whon can convert the values (for example; in
> the range 1-100) 1 to a 100 and then 2 to 99, 3 to 98, a so on ?
>
> i cant find a mathematical solution, bcos im too stupid for this!
>
> cheers

—-
Steven M. Miller

Associate Professor of Contemporary Music
College of Santa Fe
Contemporary Music Program
1600 St. Michaels Drive
Santa Fe NM 87505
http://pubweb.csf.edu/~smill
(505) 473-6197

SFIFEM
Atrium Sound Space
OVOS


December 11, 2006 | 5:19 pm

> [!- 101]

Hey, that should be Romans reply!


December 11, 2006 | 6:06 pm

You mean [!- 110] :P

On Dec 11, 2006, at 12:19 PM, nesa wrote:

>
>> [!- 101]
>
> Hey, that should be Romans reply!
>
>

v a d e //

http://www.vade.info
abstrakt.vade.info


December 11, 2006 | 6:34 pm

ah, damn coffe overdose! you’re right!

> You mean [!- 110] :P


December 12, 2006 | 2:20 am

Quote: nesa wrote on Mon, 11 December 2006 10:19
—————————————————-
>
> > [!- 101]
>
> Hey, that should be Romans reply!

no – i usually convert everything to range 0. 1. for
scaling-operations, and add a [* -1] if i want to reverse
the range.

-110 [!]


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