Show timing markers simply when enabled and regardless of other settings

Not sure why these other constraints were added but they are rather
confusing leaving one wondering why timing markers are not shown despite
being enabled.
This commit is contained in:
Martchus 2023-10-14 22:01:17 +02:00
parent f5674a4d1d
commit 6d917902da
1 changed files with 3 additions and 5 deletions

View File

@ -641,11 +641,9 @@ void CConductor::pianistInput(CMidiEvent inputNote)
{
m_goodPlayedNotes.addNote(hand, inputNote.note());
m_piano->addPianistNote(hand, inputNote,true);
qint64 pianistTiming;
if ( ( cfg_timingMarkersFlag && m_followSkillAdvanced ) || m_playMode == PB_PLAY_MODE_rhythmTapping )
pianistTiming = m_pianistTiming;
else
pianistTiming = NOT_USED;
const auto pianistTiming = cfg_timingMarkersFlag || m_playMode == PB_PLAY_MODE_rhythmTapping
? m_pianistTiming
: qint64(NOT_USED);
m_scoreWin->setPlayedNoteColor(inputNote.note(),
(!m_followPlayingTimeOut)? Cfg::colorTheme().playedGoodColor : Cfg::colorTheme().playedBadColor,
m_chordDeltaTime, pianistTiming);