Forums > MaxMSP

changing live.dial output numbers.


Jan 23 2013 | 10:34 am

Wondering how to change the output number to be from 0-255, rather than the 0-127. I tired Range/Enum to 255 but that simply only enables me to use half the dial. I also tried changing the modulation range from -127-127 to 0-255 with no results. Can anyone help me figure out how to have those numbers outputting ranges from 0-255 ? This would be VERY handy to me.

Thanks !

Jan 23 2013 | 11:56 am

In the inspector, set Range from 0-255 and ‘Steps’ to 256.

Jan 23 2013 | 10:26 pm

looks like live.dial output is still stuck on 127, which at this point is half way up the dial.

Anyone else know a workaround?

Jan 23 2013 | 10:43 pm

Format it as a float and round/truncate after the fact. My rule of thumb: avoid using int except in all but the simplest cases.


-- Pasted Max Patch, click to expand. --

Jan 23 2013 | 10:54 pm

Thanks for the reply. My problem here I am pretty sure is due to the fact that my APC40 controller only outputs values of 0-127. I will try and paste your code and see what that is (pardon me I am really new to this).. and see if that helps.

Jan 23 2013 | 10:57 pm

Ah. Try dividing the incoming value from your APC by 127. (the decimal point there is important!), then sending it into the "rawfloat $1" message box.

Jan 23 2013 | 11:00 pm

ok thanks trying some stuff out.

Jan 23 2013 | 11:31 pm

actually what i have seen now in your frist code does help. All i needed was those number boxes that show the value of 0- 255. Also, I noticed your live dial goes all the way to 255 when i map it to my controller that goes form 0 -127.

THat dial is now sending out 0-255, when I wish it simply to send out 0-127 , but display the values are 0-255. How can I achieve this result?

Jan 24 2013 | 12:26 am

OK i figured out a sloppy way, which was to simply use a number box with a multiplier object that translate the values of 0-127 x 2 to equal the value in in 0-255 .

thank you!

Jan 24 2013 | 1:05 am

the [scale] object can be very handy in these cases too.

Jan 24 2013 | 3:59 am

I recommend the "rawfloat" method because it’ll work with whatever range the object is set to.

To look at specific controller values, you need to use the ctlin object with an argument. For example "ctlin 1" will give you only the values for the modwheel (controller #1). Ctlin 64 will give you the sustain wheel. If you use a second argument, that will specify for a specific channel.

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

Forums > MaxMSP