[Sharing] Making tuning-aware Max for Live devices
I was creating a M4L device and wanted to make it compatible with the custom tuning system appeared in Live 12, and realized it was not as straightforward as I thought, as you need to reformat the note_tunings list, and calculate the mid and ref notes yourself.
So here is a small patch with hopefully everything required to set your [mtof] to output the right frequencies according to the set tuning in Live.
If you use the resulting frequency output for your M4L synth it should be perfectly in tone with with any other builtin Live instrument.
It does also work with [ftom] if you want to do some pitch-analysis devices or anything that would require to align frequencies with MIDI notes (that was my actual use case) .
With the addition of [th.ftomb] from this package by Timo Hoogland, you could also control any vst or external synth that doesn't support MPE or custom tunings, as long as they support +1/-1 pitchbend. This extends the capabilities of Live's tuning system which for now is only compatible with builtin devices and non-builtin devices with MPE capability. See this example:
By the way, in case you missed it, Ableton did a dedicated website to learn about and experiment with many tuning systems, which is worth checking if you're interested in this.
Enjoy your custom tuning / microtuning journey, forget about 12-TET!
Dear TFL,
thank you so much for sharing this. I've been trying to write this same patch for months with no luck. I don't usually post to the forums, but I've created an account just to thank you!
-John