musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.09k stars 2.61k forks source link

Midi Export of Parts Includes Voices that have been hidden #24383

Open gjstockham opened 2 weeks ago

gjstockham commented 2 weeks ago

Issue type

Import/export issue

Description with steps to reproduce

  1. Create score with multiple staves (I'm using Men's Barbershop)
  2. Create parts, and duplicate so there are 4 in total, 2 for each stave
  3. In each part, select so only 1 voice is checked (e.g. Tenor voice 1, Lead voice 2, Baritone voice 3, Bass voice 4)
  4. Export midi

On import to a midi sequencer, the hidden voices in each part now appear

Supporting files, videos and screenshots

image

GJS Barbershop Men.zip

What is the latest version of MuseScore Studio where this issue is present?

OS: Ubuntu 24.04.1 LTS, Arch.: x86_64, MuseScore Studio version (64-bit): 4.4.0-242390800, revision: github-musescore-musescore-0fcd11b

Regression

Yes, this used to work in MuseScore 3.x and now is broken

Operating system

Ubuntu 24.04

Additional context

No response

Checklist

wizofaus commented 2 weeks ago

It's actually true for playback and audio-export too. Which I would think is wrong, if you're playing back/exporting audio/midi for an individual part, then I wouldn't expect it to include notes that aren't even included at all on the score (they're not even present as "invisible" elements). In fact there doesn't even appear to be any way at all to mute notes in voices that aren't shown, so I'd have to assume this is not the expected/designed behaviour.

wizofaus commented 5 days ago

If we're agreed that the behaviour should always be that for parts where only certain voices are selected for inclusion, both MIDI and audio export (and interactive playback) should only ever include notes from those voices then I'm happy to take this on.