mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
Fix accidentals on transposition
This commit is contained in:
parent
c942def59c
commit
6fcf53935e
|
@ -972,6 +972,8 @@ void VLSong::ChangeKey(int section, int newKey, int newMode, bool transpose)
|
|||
FlipAccidentals(i->fVisual);
|
||||
FlipAccidentals(i->fRootAccidental);
|
||||
}
|
||||
i->fVisual = VLPitchAccidental(i->fPitch, i->fVisual, newKey);
|
||||
i->fRootAccidental = VLPitchAccidental(i->fRootPitch, i->fRootAccidental, newKey);
|
||||
}
|
||||
}
|
||||
for (int pass=0; pass<2 && semi;) {
|
||||
|
@ -990,6 +992,7 @@ void VLSong::ChangeKey(int section, int newKey, int newMode, bool transpose)
|
|||
i->fPitch += semi;
|
||||
if (flipAcc)
|
||||
FlipAccidentals(i->fVisual);
|
||||
i->fVisual = VLPitchAccidental(i->fPitch, i->fVisual, newKey);
|
||||
low = std::min(low, i->fPitch);
|
||||
high = std::max(high, i->fPitch);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user