I just uploaded the changes for the new “MIDI-tuning” feature. You only have to “Update Software” from the admin menu.
You can adjust the tuning of your Zynthian Box in the webconf tool, setting the frecuency for the middle A from 392 to 492 Hz (+/- 1 tone). This is not a “scale transposing” feature but a “fine tuning” feature. Some people love to play with middle A in 432 Hz … jejeje!
As discussed in this thread, the trick is done by using “Pitch Bending” messages. One pitchbending message is sent after every note-on. Perhaps is more than needed, but it works very well
The feature works perfectly in the next engines:
But it doesn’t work in these others:
- setBfree => This engine doesn’t capture pitchbending messages. I will try other way …
- MOD-UI => I’ve to figure how to inject the pitchbending message into MOD-UI flow …
Regarding the maths, i used this expression to calculate the PitchBending:
PitchBend=int(8192 * (1+6*(ln(Freq/440) / ln(2)))
It’s slighty different that the expression proposed by @mheidt. I toke it from here: