fix #24102: pedal sounds in wrong instrument

pedal was always being applied to top part of score rather than the part
actually applied to
handle channel changes too
Merge pull request #686 from MarcSabatella/24102-pedal-all

fix #24102 - pedal was always applied to top part of score