Respell pitches, how?
I made a cool plugin, which turns music into aleatoric dodecaphony. The pitches are changed, but the noteheads don't move. I guess I need to do some respelling inside my plugin. Because doing the respell pitches after my plugin will fix the note heads. How is it done in plugin code?
The attached file is Beethoven's Für Elise aleatorized. The algorithm needs some tweaking yet. What it does now is it goes through each note and changes its pitch according to bell curve stochastics. In 16% of the cases the pitch is unaltered, in 14% it alters a half step, in 11% a whole step, all the way to 0.009% a tritone. But each time one tone of the 12 tones in the dodecaphonic realm has been used, its percentage is halved. With this I try to get all 12 tones to be used evenly in the long run.