rename Tempo _beats_per_minute to _note_types_per_minute, provide pulse helpers.

- adds quarter_notes_per_minute(), note_divisions_per_minute (double)
	  pulses_per_minute() and frames_per_quarter_note()

	- this should be a no-op except for the use of tempo by
	  the vst callback which definitely uses quarter notes per minute.

	- the XML node for TempoSection named 'beats-per-minute'
	  has been renamed.
This commit is contained in:
nick_m 2016-11-06 05:14:20 +11:00
parent e52f90357e
commit 33e95a1577
18 changed files with 282 additions and 179 deletions

View file

@ -1404,7 +1404,7 @@ Editor::toggle_marker_lock_style ()
} else if (tm) {
TempoSection* tsp = &tm->tempo();
const Tempo tempo (tsp->beats_per_minute());
const Tempo tempo (tsp->note_types_per_minute(), tsp->note_type());
const double pulse = tsp->pulse();
const framepos_t frame = tsp->frame();
const TempoSection::Type type = tsp->type();
@ -1431,7 +1431,7 @@ Editor::toggle_tempo_type ()
if (tm) {
TempoSection* tsp = &tm->tempo();
const Tempo tempo (tsp->beats_per_minute(), tsp->note_type());
const Tempo tempo (tsp->note_types_per_minute(), tsp->note_type());
const double pulse = tsp->pulse();
const framepos_t frame = tsp->frame();
const TempoSection::Type type = (tsp->type() == TempoSection::Ramp) ? TempoSection::Constant : TempoSection::Ramp;