Skip to content
Snippets Groups Projects
Commit 6cd797cb authored by SeeLook's avatar SeeLook :musical_note:
Browse files

Minor. Mute debug messages, fix indentation

parent 2594a729
No related branches found
No related tags found
No related merge requests found
Pipeline #2581 passed
...@@ -423,6 +423,7 @@ void TnoteItem::setNoteNameVisible(bool nameVisible) { ...@@ -423,6 +423,7 @@ void TnoteItem::setNoteNameVisible(bool nameVisible) {
QString TnoteItem::getHeadText(const Trhythm& r) { QString TnoteItem::getHeadText(const Trhythm& r) {
if (r.rhythm() == Trhythm::NoRhythm) if (r.rhythm() == Trhythm::NoRhythm)
return QStringLiteral("\uf4be"); // just black note-head return QStringLiteral("\uf4be"); // just black note-head
if (r.isRest()) if (r.isRest())
return QString(QChar(0xe4e2 + static_cast<int>(r.rhythm()))); return QString(QChar(0xe4e2 + static_cast<int>(r.rhythm())));
else { else {
......
...@@ -319,7 +319,7 @@ void TexamExecutor::askQuestion(bool isAttempt) { ...@@ -319,7 +319,7 @@ void TexamExecutor::askQuestion(bool isAttempt) {
disconnect(MAIN_SCORE, &TmainScoreObject::readOnlyNoteClicked, this, &TexamExecutor::correctNoteOfMelody); disconnect(MAIN_SCORE, &TmainScoreObject::readOnlyNoteClicked, this, &TexamExecutor::correctNoteOfMelody);
int melodyLength = qBound(qMax(2, qRound(m_level.melodyLen * 0.7)), //at least 70% of length but not less than 2 int melodyLength = qBound(qMax(2, qRound(m_level.melodyLen * 0.7)), //at least 70% of length but not less than 2
qRound(((6.0 + (qrand() % 5)) / 10.0) * (qreal)m_level.melodyLen), (int)m_level.melodyLen); qRound(((6.0 + (qrand() % 5)) / 10.0) * (qreal)m_level.melodyLen), (int)m_level.melodyLen);
qDebug() << "========== Asking melody" << m_exam->count(); // qDebug() << "========== Asking melody" << m_exam->count();
if (m_penalty->isNot()) { if (m_penalty->isNot()) {
TrhythmList rhythms; TrhythmList rhythms;
if (!m_level.isMelodySet()) { if (!m_level.isMelodySet()) {
...@@ -346,7 +346,7 @@ void TexamExecutor::askQuestion(bool isAttempt) { ...@@ -346,7 +346,7 @@ void TexamExecutor::askQuestion(bool isAttempt) {
// Set the next melody ID: // Set the next melody ID:
// It may be the same ID when repetition number is not fulfilled // It may be the same ID when repetition number is not fulfilled
// or the next melody when repeated enough or this is exercise // or the next melody when repeated enough or this is exercise
qDebug() << "[MELODY SET] ID" << m_melody->lastMelodyId() << "repeat" << m_melody->repeatCounter() << "of" << m_level.repeatNrInSet; // qDebug() << "[MELODY SET] ID" << m_melody->lastMelodyId() << "repeat" << m_melody->repeatCounter() << "of" << m_level.repeatNrInSet;
m_melody->nextRepeat(); m_melody->nextRepeat();
if (m_exercise || m_melody->repeatCounter() > m_level.repeatNrInSet) { if (m_exercise || m_melody->repeatCounter() > m_level.repeatNrInSet) {
m_melody->setRepeat(1); m_melody->setRepeat(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment