mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Mask for accidentals in whole test
This commit is contained in:
parent
e417048548
commit
09b5babe70
|
@ -83,11 +83,10 @@ static inline int8_t StepToSemi(int step)
|
||||||
uint16_t VLPitchAccidental(int8_t pitch, uint16_t visual, int key)
|
uint16_t VLPitchAccidental(int8_t pitch, uint16_t visual, int key)
|
||||||
{
|
{
|
||||||
int semi = pitch % 12;
|
int semi = pitch % 12;
|
||||||
if (visual & VLNote::kAccidentalsMask) {
|
|
||||||
//
|
//
|
||||||
// The user expressed a preference, try to match it
|
// The user expressed a preference, try to match it
|
||||||
//
|
//
|
||||||
switch (visual) {
|
switch (visual & VLNote::kAccidentalsMask) {
|
||||||
case VLNote::kWantNatural:
|
case VLNote::kWantNatural:
|
||||||
if (IsBasicNote(semi))
|
if (IsBasicNote(semi))
|
||||||
return visual;
|
return visual;
|
||||||
|
@ -113,7 +112,6 @@ uint16_t VLPitchAccidental(int8_t pitch, uint16_t visual, int key)
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//
|
//
|
||||||
// No visuals, or no match
|
// No visuals, or no match
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue
Block a user