diff options
author | nick_m <mainsbridge@gmail.com> | 2017-01-06 02:26:02 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2017-01-06 02:26:02 +1100 |
commit | 521ae30bebaec3793344860dab67efe409329147 (patch) | |
tree | 046f8b222f1d36e5bea80db0364728debc212f4b /libs | |
parent | ade582a1bb755f890c30d210e4713a63325f737e (diff) |
warn when adding / replacing a tempo fails.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/tempo.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |