Score in G sometimes plays in F

• Jun 15, 2025 - 01:28

I have a piece written in the key of G using Musescore, and it usually plays correctly. However, one day I noticed that the actual sounds were in the key of F (because I was composing with the aid of a guitar, tuned with a tuner device). I restarted the program and it again played in G.

Yet it keeps happening now and then, and I can't predict when restarting will fix it and when it will not. I do not need absolute pitch while composing this piece, but I sure will need it when creating the MP3 file to market my composition.

Any clues on what is causing this, and how to fix it for good?


Comments

When the sample rate of the soundcard has been changed (for any reason) from 48000khz to 44100khz or vice verse, it may result in a pitch shift of nearly one tone. A half tone welltempered is a frequency change of approx. 5,6%.

You can specify the sample rate of your soundcard somewhere in the preferences, i dont know if this can be altered by any tools, but a wrong samplerate is a well known cause for a wrong pitch. Probably a restart resets the soundcard and/or musescore.

In reply to by yendor

I dont think you did anything wrong, i also dont know if its a bug. But its the only reason which came to my mind and its a known reason. Its only a hint and maybe you have any software installed which changes the sample rate of your Audio for any reason. The fact that it changes for one tone looks very suspicious, as this also fairly matches the relation 44.1 vs. 48 khz. If it it were a bigger difference (like G to D for example) i wouldnt mention this.

In reply to by bobjp

No, thats wrong. If you have a sound which is sampled with 44.1khz, but you play it physically with 48khz, the pitch goes up approx. 10%. And vice verse it goes down.

If you have a sound which is sampled in 44.1khz but want to play it in 48khz correctly, you have to resample it. If you do not resample but simply use more samples per second, the pitch goes up.

So if your sound is configured wrongly in Musescore preferences, Musescore writes the wrong samplerate into the header, the soundcard actually uses a different samplerate. There are known cases here in the forum, thats why i remembered it.

In reply to by bobjp

Yes, of course, thats ok. The problem raises when you sample with 44.1, but in the header of the wave 48 is written (wrongly). Your "change" of the sound device does not affect playback, your file is played with 44.1 anyway (as specified in the header). You can try to change the wave header with a binary editor from 44.1 to 48 without resampling the file. Some video / audio editing tools can do that also, if you playback the file, you will hear the pitch shift.

In reply to by rhalstenbach

OK. I guess I'm not smart enough to figure out what the header has to do with anything. It seems to me that there is no header because there is no audio file, as such. There is playback of pitches in the score. And the only setting in MU4 is the buffer. Which doesn't do much any more. So I'll leave you to it.

Do you still have an unanswered question? Please log in first to post your question.