Dynamically remap the MIDI control to switch between arduino sensors or knobs

Mar 20, 2013 at 12:56am

Dynamically remap the MIDI control to switch between arduino sensors or knobs

Hello Max grrlz and boys

This is my first post here, I’m rather new to Max but already addicted :) I’m using Max for my final uni project and so far I could find all my answers on this forum so… to all the contributors here – you’re doing great job!

A part of my project is a simple synth MIDI controller that uses knobs and sensors. I’m using Arduino for it, but the problem is more Max related. The idea is that each knob and sensor have a momentary pushbutton next to it. The sensors aren’t mapped to any synth’s functions by default, only the knobs are. To use sensors instead of knobs one has to simultaneously press two buttons – one next to a knob and other next to a sensor – so the chosen sensor would take control over the synth’s function assigned to the selected knob. To cancel this connection press the button next to the knob once again.

So far I managed to to this for a single pair but I cannot figure the way to do it for multiple sensors – use few sensors on few different knobs, cancel and remap the sensor-button connections on the fly.

Here is the patch. Any help very appreciated :)

– Pasted Max Patch, click to expand. –
#67199
Mar 20, 2013 at 1:30am

just noticed now that in the above patch the value that indicates that the button has been pressed is 0 and not-pressed is 1, not opposite as you would expected. Here is the patch with the correct 0 – off / 1 – on buttons behaviour

– Pasted Max Patch, click to expand. –
#241824

You must be logged in to reply to this topic.