Note entered in wrong octave?
2.1 / Win 7/10
See the attached file. If you transcribe the following passage using the computer keyboard, the 1/8th note "E" is entered one octave lower than expected.
Attachment | Size |
---|---|
wrong_octave.png | 4.47 KB |
note_input.mscz | 4.64 KB |
Comments
The B's are actually Bb which is the same distance from E in both directions. B-natural goes to the E above as expected.
In reply to The B's are actually Bb… by mike320
Oops! Wrong file. This is the correct excerpt:
When you transcribe this from the computer keyboard the 1/8th note E defaults to an E natural in the lower octave rather than to the nearer Eb in the octave above.
In reply to Oops! Wrong score. Here's… by geetar
With no key signature MuseScore doesn't know if you want the E below or the Eb above. I say this is still acceptable behavior.
However, if you change the key signature to Bb (2 flats) rather than F (1 flat), the Eb above is closer than the Eb below so the note entered should be the higher Eb. MuseScore inserts the lower Eb, which is farther from the Bb. This I consider wrong.
In reply to With no key signature… by mike320
There are indeed known corner cases like this where we pick badly. It's a bit of a chicken-and-egg problem: until we choose the octave, we don't necessarily know what the accidental will be. So we pick an octave based on an educated guess regarding accidental. Only on actually adding the note do we have the necessary context to figure out the accidental for sure. It's not technically impossible to figure out the accidental ahead of time if we wanted to write a bunch of new code to do this, but the way the code is structured right now, that information isn't calculated until the note is added.