How to lower controller data resolution?
I’m looking for a way lower the resolution of the output data of a midi controller that i’m sending out of Max(such as bendout).
I’ve been using the slide object to smooth the in/output of controllers but now i’m looking for a way do exactly the opposite, so that data will be output in jumps of 5,10 or as many values as i decide (and still keep the ranga of 0-127).
Have a play with multiplying, adding or dividing the data based on the input value before it’s sent out. Then use an operator such as [if] to stop data passing out if it exceeds 127. Be careful not to get float outputs otherwise MIDI won’t recognise them.
1st Creative Labs Support Team
A simple way would be to use two consecutive [scale] objects. In the attached example 14bit Pitchbens (0-16383) is being forced to a range of 0 -15 (16 steps) and then scaled to a range 0 -127. You’d obviously need to massage the settings to get what is right for your specific use(s)…
----------begin_max5_patcher---------- 372.3ocyT9saCBBFE+Z8ofv0cMB9Ob2smiklETYcrnXihYt0z28IeJasK1Ea Z6Vuguvgivgefr00AmV0IZvn6QOhbb1553.RFAmw9N3RdWVAuArgUh2pReEu XXHsnSCxcoBUtTY0k4fZuy6XVsmqTZEuT.i7PsjWXGQ0VJUEBMrBj8r2H+.r S7V58s2pVs0LcTcPR+9FwvdAKUZ7hgBZ0noMbc1KR05mpEY5AejXR+LiH9Ql R.zRXK8PqLexNWWSyh4hl1xTQ8DHH9+DAob05ekATRx.CXlRn20gAA23L.17 znjKACl9WjlLdg.4gHglFZ7DPhdhPJ5TfD4XPZN2Nn9AlBKZY3UjLQ9LefPS vFxMKaHITSIIbxaMvDfKjpe9NKLgF8CAVSUaclc4Ge.smI1XjKZzREWKqT64 gbfmWj44BXX6tsTluop+mgwHPXdv4XLDYJk8UuibrN2rFe4y5YlH5LRTveZh HyHQzyHQ8c149IvKzvbK -----------end_max5_patcher-----------
thanx for the tips.
the patch is simple and yet very efficient.
the only thing i modified is the second scale object, instead i used a zmap so that data from my different controllers wont exceed 0-127.