multiplying floats

Jun 23, 2011 at 7:11pm

multiplying floats

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

#57743
Jun 23, 2011 at 7:23pm

This ?

– Pasted Max Patch, click to expand. –

cheers jan.

#207162
Jun 23, 2011 at 7:24pm

without seeing your patch: * 0.

hth o

#207163
Jun 23, 2011 at 10:06pm

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

#207164
Jun 24, 2011 at 6:32am

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

thanks for all the input guys! :)

#207165

You must be logged in to reply to this topic.