We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eff43b7 commit ac260e6Copy full SHA for ac260e6
js/blocks/PitchBlocks.js
@@ -788,19 +788,12 @@ function setupPitchBlocks(activity) {
788
return ["sol", 4];
789
}
790
791
- if (tur.singer.moveable) {
792
- // Calculate the offset relative to the current key.
793
- let lc = noteIdx - NOTENAMES.indexOf(obj[0][0]);
794
- if (lc < 0) {
795
- lc += modeLength;
796
- }
797
- return [thisScale[lc], o2];
798
- } else {
799
- while (noteIdx < 0) {
800
- noteIdx += SOLFEGENAMES.length;
801
802
- return [SOLFEGENAMES[noteIdx], o2];
+ // Calculate the offset relative to the current key.
+ let lc = noteIdx - NOTENAMES.indexOf(obj[0][0]);
+ if (lc < 0) {
+ lc += modeLength;
803
+ return [thisScale[lc], o2];
804
} else {
805
if (cblk1 === null) {
806
return "G4";
0 commit comments