From b1776f093d4b87ad2635990f429f4503157f6288 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Sat, 27 Oct 2012 09:58:29 +0000 Subject: Improved: Velocity graphs. Icon for showing per-note or all velocities. Also found in Settings. Improved: Piano KB has current selected note (yellow). For velocity/polyaftertouch/other per-note ctrls. Bad timing warning now has "don't show again". Added 'speaker' icon to drum edit. And drum list and piano keyboard now obey the 'speaker' icon. --- muse2/muse/midiseq.cpp | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'muse2/muse/midiseq.cpp') diff --git a/muse2/muse/midiseq.cpp b/muse2/muse/midiseq.cpp index 32e9de4c..8e636658 100644 --- a/muse2/muse/midiseq.cpp +++ b/muse2/muse/midiseq.cpp @@ -46,6 +46,7 @@ #include "synth.h" #include "song.h" #include "gconfig.h" +#include "warn_bad_timing.h" namespace MusEGlobal { MusECore::MidiSeq* midiSeq; @@ -507,13 +508,23 @@ void MidiSeq::checkAndReportTimingResolution() { int freq = timer->getTimerFreq(); if (freq < 500) { - QMessageBox::warning( MusEGlobal::muse, - qApp->translate("@default", QT_TRANSLATE_NOOP("@default", "Bad timing")), - qApp->translate("@default", QT_TRANSLATE_NOOP("@default", - "Timing source frequency is %1hz, which is below the recommended minimum: 500hz!\n" \ - "This could lead to audible timing problems for MIDI.\n" \ - "Please see the FAQ on http://muse-sequencer.org for remedies.\n" \ + if(MusEGlobal::config.warnIfBadTiming) + { + MusEGui::WarnBadTimingDialog dlg; + dlg.setLabelText(qApp->translate("@default", QT_TRANSLATE_NOOP("@default", + "Timing source frequency is %1hz, which is below the recommended minimum: 500hz!\n" + "This could lead to audible timing problems for MIDI.\n" + "Please see the FAQ on http://muse-sequencer.org for remedies.\n" "Also please check console output for any further error messages.\n ")).arg(freq) ); + + dlg.exec(); + bool warn = !dlg.dontAsk(); + if(warn != MusEGlobal::config.warnIfBadTiming) + { + MusEGlobal::config.warnIfBadTiming = warn; + //MusEGlobal::muse->changeConfig(true); // Save settings? No, wait till close. + } + } } } -- cgit v1.2.3