Topic: Change reference note with message

I am using Pianoteq inside Max MSP. Is there a way to send a message to Pianoteq in order to change the keyboard mapping's reference pitch?

I am using a 84-EDO tuning but of course this gives a very limited range of notes. So I have made a routine in Max that will change the diapason to the first MIDI note played in a passage, and then after some silence, allow the changing of the diapason again when a new note is played.

This allows me to effectively change what note is the center of the 84 divisions of the octave. However, I am unable to change the reference note so A4 is always the diapason. What I am hoping to achieve is ability to change the diapason and reference note together so that the first note of a passage both sets the new diapason and becomes the reference note.

I can save a bunch of presets for the 84-EDO tuning where each one has a different reference pitch and dynamically load it, but I am wondering if there is another way.