Hi Anders,
I am going to reply to all your last posts.
The demultiplied-rhythms function returns four voices of same length, in this case two bars, that is 8/4. This because total duration is divided by given porportions, then each duration of the result is divided by same proportions and so on until four levels. Of course with some quantization.
About last post: I have evaluated your second code and rebuilt your example, I obtain the right result, that is your right figure. If I don’t evaluate your second fix code I obtain the wrong result, that is your left figure.
Ciao
Fabio