implode should merge into voice 2 and 3 also

• May 31, 2021 - 14:01
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S5 - Suggestion
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

When imploding a staff with several voices, the implode function tries to merge the voices into fewer voices where ever possible. Except that it actually only tries to merge voices with voice 1. If voice 2 and 3 have the same rhythm , different from voice 1, they are not merged.

The proposal of this ticket is that also lower voices should be merged, even when not possible to merge with voice 1.

Example.
Before a merge of three staves:
implode_before.png

The result after doing implode twice, and also what I would have expected (but did curretly not happen):
implode_after.png

The same result, but with voice coloring highlited:
implode_after_voices.png


Comments

It would be interesting to consider all possibilities, including 2 & 4 and 3 & 4. And perhaps prioritizing combining 1 & 3 and 2 & 4 first, then looking for opportunities to combine between pairs. Although I guess imploding is probably both "commutative" and "associative" in the mathematical sense, meaning it doesn't actually matter what order things are processed in.