scaling MIDI number problems

Neal Johnson's icon

I am trying to scale midi 0 -127 to 0. to 1. I set up scale 0 127 0. 1. but the output toggles between 0 and 1. It works for a bit giving me reals from 0 to 1, but then when I copy it to use elsewhere it goes back to toggle mode. What's happening?

MIB's icon

I can't reproduce that. are you sure you used floating numbers in the [scale] object and connected the ouput to a flonum??

Neal Johnson's icon

Thanks! I had something in the way of the signal that was making it an integer...

Roman Thilenius's icon

well, did you try [scale 0. 127. 0. 1.] already?

(and why dont you use [/ 127.]?)

-110