From 521ae30bebaec3793344860dab67efe409329147 Mon Sep 17 00:00:00 2001 From: nick_m Date: Fri, 6 Jan 2017 02:26:02 +1100 Subject: warn when adding / replacing a tempo fails. --- libs/ardour/tempo.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs') diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index a23743820c..eadfe873a5 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -1059,6 +1059,7 @@ TempoSection* TempoMap::add_tempo (const Tempo& tempo, const double& pulse, const framepos_t& frame, ARDOUR::TempoSection::Type type, PositionLockStyle pls) { if (tempo.note_types_per_minute() <= 0.0) { + warning << "Cannot add tempo. note types per minute must be greater than zero." << endmsg; return 0; } @@ -1078,6 +1079,7 @@ void TempoMap::replace_tempo (TempoSection& ts, const Tempo& tempo, const double& pulse, const framepos_t& frame, TempoSection::Type type, PositionLockStyle pls) { if (tempo.note_types_per_minute() <= 0.0) { + warning << "Cannot replace tempo. note types per minute must be greater than zero." << endmsg; return; } -- cgit v1.2.3