-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong octave system-wide #42
Comments
Removing last old: Examples:
|
Changing old: Examples:
|
I can send a PR with above described changes as well. |
I've also found https://www.midi.org/forum/830-midi-octave-and-note-numbering-standard article where a lot confusion happens between fact what octave We can make octave numbering offset configurable, in |
As far as I'm concerned, having negative octave numbers is not an issue and should not be considered a criteria. I actually think it would be a good idea to allow for on-the-fly system-wide octave offsetting. However, I'd like to make an informed decision here. Here's what we know:
Given that, I would tend to agree to go with C4. However, this is a breaking change. What are people's views on this? |
Hi, I always thought that middle C = C4 was a standard or at least a "de facto" standard. I'm quite surprised this is not really the case. But, it seems that there is kind of a consensus toward that C4 value. So, for me this is the best candidate. I vote for it :-) Sorry not to be able to bring more to the discussion. |
@francoisgeorgy , maybe you can tweet about it. My twitter followers are developers mostly, so I'm not even trying 😉 to tweet about it. |
You would find many people to disagree with that statement. For example, various pieces of hardware and software treat MIDI note 60 (middle C) as C3. Some notable examples that come to mind are Yamaha's hardware, Apple's Logic, Steinberg's Cubase, etc. Also, many people were taught middle C = C3 in music school. Given the variations in practices and opinions on this matter, I think the best course of action is to align with some sort of standard. In this case, the most obvious one seems to be scientific pitch notation. So, I'm going to change WebMidi.js to define middle C as C4. However, this change is going to be accompanied by a way to globally modify this behaviour. |
As discussed, middle C has been configured to be C4 in the latest Please test it out using |
I'll added a note about code in 5a0e0ae commit directly, because you're not using a PR. Will test shortly. |
Tested, that behavior explained in code above
|
Fixed in release 2.1. |
When I press
Middle C
, thennoteon
event reports it asC3
while it should beC4
.I'm using event listening code from README.md:
Same happens, the other way around: attempt to play
C3
actually playsC4
:Here are octaves shown by Synthesia and it clearly shows that when
C3
is reported bynoteon
event, then Synthesia (and other programs) display it asC4
:I'm suspecting an issue when in math, when decoding/encoding midi messages.
When I press 1st key on the keyboard (
A0
) it's reported asA-1
, which according to README.md is a special code for stop playing note on all channels (seeoutput.stopNote("C-1");
in there).The text was updated successfully, but these errors were encountered: