Forums > MaxMSP

multiplying floats

June 23, 2011 | 7:11 pm

hi forum,

i am multiplying two (7bit) MIDI faders to gain higher resolution (8bit) for a DMX signal.

so far this is what i got:

– Pasted Max Patch, click to expand. –

it works. but it seems unelegant?

also, if i replace the ‘* 1.’ with a simple ‘*’ the floats get treated as integers. is there a way to force float multiplication without predefining the second component?

cheers,
/j



Jan
June 23, 2011 | 7:23 pm

This ?

– Pasted Max Patch, click to expand. –

cheers jan.



o s
June 23, 2011 | 7:24 pm

without seeing your patch: * 0.

hth o


June 23, 2011 | 10:06 pm

In this case it might be easier to use [pak 0. 0.] into your [* 1.] object.


June 24, 2011 | 6:32 am

o s: wouldn’t this just predefine the second component as 0?

thanks for all the input guys! :)


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