summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-11-09 02:23:43 +1100
committernick_m <mainsbridge@gmail.com>2016-11-11 03:37:08 +1100
commit3816ee4e92bb42cf249e5b032f555e49039b7f50 (patch)
tree4368f46c725fcb198f9a2628a4b4b64154286180 /libs/ardour
parent4e41b71a4eaf59dd6708dfe69da539bd3e1f0f5d (diff)
more tempo documentation.
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/tempo.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index d8cb26d53a..c6d30cf9e4 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -237,12 +237,11 @@ TempoSection::tempo_at_minute (const double& m) const
*
*/
-/** user feedback dictates that if tempoA (120, 4.0) precedes tempoB (120, 8.0),
- * there will be no ramp between the two even if set to ramped.
+/** if tempoA (120, 4.0) precedes tempoB (120, 8.0),
+ * there should be no ramp between the two even if we are ramped.
* in other words a ramp should only place a curve on note_types_per_minute.
* we should be able to use Tempo note type here, but the above
* complicates things a bit.
- * we would ideally like to use arbitrary Tempo structs here.
*/
double
TempoSection::minute_at_ntpm (const double& ntpm, const double& p) const
@@ -311,6 +310,12 @@ TempoSection::minute_at_pulse (const double& p) const
return _time_at_pulse (p - pulse()) + minute();
}
+/** returns thw whole-note pulse at session frame position f.
+ * @param f the frame position.
+ * @return the position in whole-note pulses corresponding to f
+ *
+ * for use with musical units whose granularity is coarser than frames (e.g. ticks)
+*/
double
TempoSection::pulse_at_frame (const framepos_t& f) const
{