i'm building a sample-player patch that i'd like to control with my ohm64 controller.
i'm new to working with incoming midi data in max, and was hoping someone could give me a few tips on how to do the following:
the main 64-button grid will be used to select samples for playback. just one at a time for now. i'd like the button corresponding to the currently playing sample to remain lit up until i select another one. so i'll need to send a note on message to the ohm64 when i push a button, so that it lights up, and then when i select another button the previously pressed one should go out again. and the new one on, of course.
at the moment i'm trying to figure out how to automatically switch off the previously pressed button when i press a new one. does anyone have a tip for that maybe?
my ohm64 input-patch so far is pasted below. at the moment it's only four faders controlling playback volume, the matrix for choosing a sample, and a primitive playback speed control.
another questions, also about the data coming out of the notein object: what would be the best way to filter/distribute note on messages from the other buttons on the controller? these are controllers 65 to 81.
is there an object that allows me to specify ranges to pass through? for example "if the number is between 1 and 64, send out this outlet", "if the number is 65, send here" etc?
my impression is that route doesn't allow me to specify a certain range to pass through?
many thanks for any hints!