You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
midi: enharmonic equivalent notes no longer work #956
Since both letter_name_to_midi_note and letter_name_to_frequency has been moved out from the sound module into midi, it appears that a behavior change has happened, and enharmonic equivalent notes such as E#4 and Cb5 no longer work.
However, for double accidentals such as D##4, they fell through in the original sound implementation and produced the wrong note instead, and the decision of implementing it or not remains TBD.
I confirmed the behavior change in latest commit of modules, and reproducible in the sourceacademy.org deployment.
The midi module was introduced in f530275 (which is merged to master in ed1fe71)
Example
Unfortunately, using modules in the legacy js-slang runtime no longer works (and it also uses the newer midi module), and as such the original behavior can only be determined via older source code of sound here:
Activity