diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2013-12-19 05:42:52 +0700 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2013-12-19 05:42:52 +0700 |
commit | 611d1ffc297c87983a82357929e982dd0c52d760 (patch) | |
tree | d45f1bb3dfc9f933b540053e17acdfd6bc86ef68 /libs/ardour/midi_clock_slave.cc | |
parent | 6e5240c24ba0238cc3455143dd21b08e20f1cfde (diff) |
midi_clock_slave: fix bandwidth to 2/60 for best results
Diffstat (limited to 'libs/ardour/midi_clock_slave.cc')
-rw-r--r-- | libs/ardour/midi_clock_slave.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/ardour/midi_clock_slave.cc b/libs/ardour/midi_clock_slave.cc index 25f92a482c..762d94469c 100644 --- a/libs/ardour/midi_clock_slave.cc +++ b/libs/ardour/midi_clock_slave.cc @@ -45,7 +45,7 @@ using namespace PBD; MIDIClock_Slave::MIDIClock_Slave (Session& s, MidiPort& p, int ppqn) : ppqn (ppqn) - , bandwidth (10.0 / 60.0) // 1 BpM = 1 / 60 Hz + , bandwidth (2.0 / 60.0) // 1 BpM = 1 / 60 Hz { session = (ISlaveSessionProxy *) new SlaveSessionProxy(s); rebind (p); @@ -55,7 +55,7 @@ MIDIClock_Slave::MIDIClock_Slave (Session& s, MidiPort& p, int ppqn) MIDIClock_Slave::MIDIClock_Slave (ISlaveSessionProxy* session_proxy, int ppqn) : session(session_proxy) , ppqn (ppqn) - , bandwidth (10.0 / 60.0) // 1 BpM = 1 / 60 Hz + , bandwidth (2.0 / 60.0) // 1 BpM = 1 / 60 Hz { reset (); } @@ -206,7 +206,6 @@ MIDIClock_Slave::start (Parser& /*parser*/, framepos_t timestamp) void MIDIClock_Slave::reset () { - bandwidth = (256.0 / session->frames_per_cycle()) * 10.0 / 60.0; DEBUG_TRACE (DEBUG::MidiClock, string_compose ("MidiClock_Slave reset(): calculated filter bandwidth is %1 for period size %2\n", bandwidth, session->frames_per_cycle())); should_be_position = session->transport_frame(); |