Using M4L with MIDI and bidirectional option to control Live

Learn about building and using Max for Live devices.
Post Reply
joan.tissier
Posts: 39
Joined: Thu Nov 05, 2009 11:13 pm

Using M4L with MIDI and bidirectional option to control Live

Post by joan.tissier » Thu Jun 14, 2018 2:43 pm

Hello,

I would like to use a M4L patch to control some Live parameters (like cutoff and Q of Autofilter, mute, send...).
I would like to use MIDI (and not the API).
It works fine in only 1 direction.
But I would like something bidirectional. That's my problem.

For example, I made a very simple MIDI M4L patch to do some tests.
In this patch, I only added a [live.dial] object (from 0 to 127) connected to a [ctlout 12] object.
In the MIDI track where I used this patch, I selected the input and output "Virtual (Bus1)" then ch1. "Virtual (Bus1)" is a virtual MIDI way that I created in MIDI/AUDIO Settings.
Then, I used the MIDI mapping system of Live to control the cutoff frequency of Autofilter for example with this [live.dial] object.
When I move the [live.dial] object, I can control the cutoff frequency. BUT when I move the cutoff frequency directly, the [live.dial] doesn't move. It is not updated. I would like this second direction.

Thank you for your help.
Best,

jonbenderr
Posts: 133
Joined: Sat Feb 27, 2010 11:20 pm

Re: Using M4L with MIDI and bidirectional option to control Live

Post by jonbenderr » Thu Jun 14, 2018 3:29 pm

One way to do this would be to observe the controlled parameter through the Live API/LOM and send the observed value to the control dial.

If you are going to go that far though, you may as well control target parameter through the api as well and not use the ctlout object.

Just an opinion though. Always more than one way to skin a cat.

S4racen
Posts: 5839
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: Using M4L with MIDI and bidirectional option to control Live

Post by S4racen » Thu Jun 14, 2018 5:13 pm

You would need to create the required MIDI out message from the Live.dial....

Cheers
D

Post Reply