From 7fb949e61e0e1c213cc8221c69152748c61f1838 Mon Sep 17 00:00:00 2001 From: SeeLook <seelook@gmail.com> Date: Mon, 10 Feb 2025 09:19:30 +0100 Subject: [PATCH] Improve debug messages --- src/dialogs/tmelgenitem.cpp | 2 +- src/main/trandmelody.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dialogs/tmelgenitem.cpp b/src/dialogs/tmelgenitem.cpp index 601b9573..c199288b 100644 --- a/src/dialogs/tmelgenitem.cpp +++ b/src/dialogs/tmelgenitem.cpp @@ -118,7 +118,7 @@ void TmelGenItem::generate() int meter = MAIN_SCORE->meter(); TrhythmList rhythms = getRandomRhythm(meter, m_barNumber, m_rtmSelector->basicMask(), m_rtmSelector->dotsMask(), m_rtmDiversity); if (meter > 0 && rhythms.isEmpty()) { - qDebug() << "[TmelGenItem] no rhythms from current parameters. Skipping melody generate!"; + qDebug() << "[TmelGenItem]" << "no rhythms from current parameters. Skipping melody generate!"; return; } diff --git a/src/main/trandmelody.cpp b/src/main/trandmelody.cpp index e3af6e7d..b222d0d9 100644 --- a/src/main/trandmelody.cpp +++ b/src/main/trandmelody.cpp @@ -189,11 +189,11 @@ TrhythmList getRandomRhythm(int meter, int barCount, quint32 basicMask, quint32 } if (meterHasDuple && dupleList.isEmpty()) { - qDebug() << "[getRandomRhythm] FIXME! Melody rhythm needs rhythm group which is not set! Added quarter to save the situation."; + qDebug() << "[getRandomRhythm]" << "FIXME! Melody rhythm needs rhythm group which is not set! Added quarter to save the situation."; dupleList << TrtmGroup(TrtmGroup::Gr_4); } if (meterHasTriple && tripleList.isEmpty()) { - qDebug() << "[getRandomRhythm] FIXME! Melody rhythm needs rhythm group which is not set! Added quarter with dot to save the situation."; + qDebug() << "[getRandomRhythm]" << "FIXME! Melody rhythm needs rhythm group which is not set! Added quarter with dot to save the situation."; tripleList << TrtmGroup(TrtmGroup::Gr_4dot); } @@ -272,6 +272,6 @@ bool mergeRhythmAndMelody(const TrhythmList &rList, Tmelody *melody) } return true; } else - qDebug() << "[Random melody] Can't merge melody and rhythm due to mismatch note numbers."; + qDebug() << "[Random melody]" << "Can't merge melody and rhythm due to mismatch note number!"; return false; } -- GitLab