Skip to content

Commit ac260e6

Browse files
committed
apply mode to pitch when using y to pitch block
1 parent eff43b7 commit ac260e6

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

js/blocks/PitchBlocks.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -788,19 +788,12 @@ function setupPitchBlocks(activity) {
788788
return ["sol", 4];
789789
}
790790

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];
791+
// Calculate the offset relative to the current key.
792+
let lc = noteIdx - NOTENAMES.indexOf(obj[0][0]);
793+
if (lc < 0) {
794+
lc += modeLength;
803795
}
796+
return [thisScale[lc], o2];
804797
} else {
805798
if (cblk1 === null) {
806799
return "G4";

0 commit comments

Comments
 (0)