Dear Frederico,
Great, ok here it is :
First, your quantification won’t work using ldurs from chord-seq. WHY ? : because if you open the chord-seq qnd put it in durations view,
you’ll realize that most of the durations overlap. So your rhythm will be completely false.
Next :
There’s seem a slight problem with the function sdif->chord-seq.: If you chexk out the lonset output you’ll notice that they are not sorted out. meaning that most
events are not ordered
So in order first to fix that, i used your midifile -> chords-seq (c.f patch). There events are sorted correctly.
THen in order to strip overlapping durations, i used a hidden function “normalize-chord-seq”.
Then finally , i use the onsets with x->dx giving me a set of durations between all onsets. (this is ok except when we have rests!)
THen i quantified in a very special way avoiding to have gracenotes… For the moment unfortunately OM does not support them and you will have a false pitches due to missing gracenotes.
Best
K
NOTE : I am working actually on a quantification code that allows all this in a more realistic rendering. I know the voice we have in the example above is awesomely complicated and irrealistic…
speech-to-notation1b.omp (96.6 KB)