summaryrefslogtreecommitdiffstats
path: root/src/engine/bpmcontrol.h
diff options
context:
space:
mode:
authordefault.kramer <default.kramer@gmail.com>2014-08-23 21:47:39 -0500
committerdefault.kramer <default.kramer@gmail.com>2014-08-23 21:47:39 -0500
commitc1ea47ce316b7eeca3e05e100bf96cd40eadca2e (patch)
treecace840dcbc184357a557cf373fd014e3a5b6b96 /src/engine/bpmcontrol.h
parent969190550e4ad6043f9fbb5514050ea0f295150a (diff)
parent45937ba3bde0ef86b740be9c504d675330b4c422 (diff)
Merge branch 'master' into beatgrid_sync
Diffstat (limited to 'src/engine/bpmcontrol.h')
-rw-r--r--src/engine/bpmcontrol.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/bpmcontrol.h b/src/engine/bpmcontrol.h
index 6b8ca2647d..1542ec801b 100644
--- a/src/engine/bpmcontrol.h
+++ b/src/engine/bpmcontrol.h
@@ -30,6 +30,8 @@ class BpmControl : public EngineControl {
double getSyncedRate() const;
// Get the phase offset from the specified position.
double getPhaseOffset(double reference_position);
+ double getBeatDistance(double dThisPosition) const;
+ double getPreviousSample() const { return m_dPreviousSample; }
void setCurrentSample(const double dCurrentSample, const double dTotalSamples);
double process(const double dRate,
@@ -38,6 +40,7 @@ class BpmControl : public EngineControl {
const int iBufferSize);
void setTargetBeatDistance(double beatDistance);
void setInstantaneousBpm(double instantaneousBpm);
+ double updateBeatDistance();
void collectFeatures(GroupFeatureState* pGroupFeatures) const;
@@ -81,9 +84,7 @@ class BpmControl : public EngineControl {
SyncMode getSyncMode() const {
return syncModeFromDouble(m_pSyncMode->get());
}
- double getBeatDistance(double dThisPosition) const;
bool syncTempo();
- bool syncPhase();
friend class SyncControl;