On Sun, Mar 2, 2025 at 12:46 PM Fons Adriaensen <fons@linuxaudio.org> wrote:
Is this the correct interpretation ?

Exactly. If you're looking for some ready-made code, I have some Lua code here: https://bitbucket.org/agraef/pd-smmf/src/master/lua/sclsyx.pd_lua. This also shifts the tuning in the way you described in order to keep the concert pitch at 440 Hz.

This is for a Pd external, but it should be easy to turn the sclsyx:read and sclsyx:convert methods to stand-alone functions to read an octave-based scala tuning and convert it to an MTS 1 or 2 byte scale/octave tuning sysex message.

Albert



 
--
Dr. Albert Gr"af
Computer Music Research Group, JGU Mainz, Germany
Email: aggraef@gmail.com, web: https://agraef.github.io/