changing live.dial output numbers.
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.
In the inspector, set Range from 0-255 and ‘Steps’ to 256.
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?
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. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 829.3oc0X1rbZCCDG+L7TnwS6MJikM9qdq8Un8VlLYDHgQYrkXjjcflIu6UV xFLEGhCg3w8h.s6Zzpe65+RCOOchyR9NhzA7cvcfISdd5jIFSUFlTOehSNZ2 pLjzDlSNQJQoDmYVeJxNkwNrwBEalyW932fIMFWyYJFJmXb8CAEkA9IOC23l UjSYYDkYI7Z8LR5eLOCzat6wX4Eplfg0VslT62RraFGGv80t1hTq1PYoOHHq TVudvX8uGHHoZz2advLPkEv8UOwKSmVML6CBD24QAcwj3QJSfQQUbnlIKpF+ DXRmHIZrhD+nAnMwqSlD9IvjsBhjvTHEkyZsMSZsKcqGNfkaAGSBGfNqtfXv HswJH7SuuRfdZcFGo.eoSkYuQMYftl9vH+OTuxJddttc+Lz7qLZ5FU1d.Meq fWRvy.pM7hzMfbtf.VwYk7rBEACdBsGvWCvbcRBnp4.vu2Pk.oN5LL.SKoXh 9YI.ufPPIJqfHAjRBKauNzl0MixHq3ELyhGzQsvsm0h0hzkUtbaS7iUG36o5 3dgCGCLvG5GaZLCBLkhEWYQP2DpW4NZA6qn+VjP6TQDOPXnkYj1Y+6Y++Jhe M61.+dH+48Z8zlW0blAbVhXoW9pG10yaAzHAXm3dkvUmcKIhNfa73.tvD+a. bor9g15U61f1LZIYNVyqFTUhDG.4Am2AuuC5GdI7BuDduLGiR9HXrhg19zd. QXj4b5E1wnVqlDoULe.oTB5RsH4wuIqoYMNqHlVPjutwbi81XQqjJTmi0Z9c RnZcjzKU.NI3BF0RCmuheU+p81JRRGAjqaFLzTK+kjDmj32QPMv005xzg07w sRlLXfeS9lK3Ag9Cffm+3DS8U5xdsmgT4pqKEd0xV2TEn5q.9eh.zapt39Fp KtWmvhAGl6V9O+8MFhVY+zVDIuPrpoPz7GQ.NRULQpnLyAOsCx6jf1PwXBq8 6LXprpCAeHaOqYs24SzHKeRFY4S3HKeBFY4iWOxmvwU5.GrzoOMOQiprId3J U8HaBFUYi+UlM1CMPa2VRDx5eRShnuAwibQ0zvYloTlcp4DdGAoj1DuYMbPB 8w1J8Y1EB6Ah6hCclVsNuL8urAuunA -----------end_max5_patcher-----------
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.
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.
ok thanks trying some stuff out.
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?
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 .
the [scale] object can be very handy in these cases too.
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.
Forums > MaxMSP