From b1f8caa54fdd9bf09bd1a6ea8c9c11e91cc0dea3 Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Thu, 1 Jan 2009 06:52:18 +0000 Subject: * made MidiClock_Slave conform more to to the Spec by starting transport on the first MidiClock Message after the start Message * removed debugging output from session_process.c * fixed bug: calculate a more sensible speed value on transport start * fixed typos in Slave docs * refactored MidiClock_Slave for better readability * made MidiClock_Slave react to continue messages git-svn-id: svn://localhost/ardour2/branches/3.0@4365 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/slave.h | 38 +++++++------ libs/ardour/midi_clock_slave.cc | 116 +++++++++++++++++++++++++++------------- libs/ardour/session_process.cc | 1 - libs/ardour/ticker.cc | 14 +++-- 4 files changed, 106 insertions(+), 63 deletions(-) diff --git a/libs/ardour/ardour/slave.h b/libs/ardour/ardour/slave.h index ffeacd3017..db66e428be 100644 --- a/libs/ardour/ardour/slave.h +++ b/libs/ardour/ardour/slave.h @@ -39,13 +39,13 @@ class Session; /** * @class Slave * - * @brief The class Slave can be used to sync ardours tempo to an external source + * @brief The Slave interface can be used to sync ARDOURs tempo to an external source * like MTC, MIDI Clock, etc. * - * The name of the class may be a bit misleading: A subclass of Slave actually - * acts as a master for Ardour, that means Ardour will try to follow the + * The name of the interface may be a bit misleading: A subclass of Slave actually + * acts as a time master for ARDOUR, that means ARDOUR will try to follow the * speed and transport position of the implementation of Slave. - * Therefor it is rather that class, that makes Ardour a slave by connecting it + * Therefore it is rather that class, that makes ARDOUR a slave by connecting it * to its external time master. */ class Slave { @@ -62,8 +62,8 @@ class Slave { * position using a delay locked loop (DLL), * starting with the first given transport speed. * If the values of speed and position contradict each other, - * ardour will always follow the position and disregard the speed. - * Although, a correct speed is important so that ardour + * ARDOUR will always follow the position and disregard the speed. + * Although, a correct speed is important so that ARDOUR * can sync to the master time source quickly. * * For background information on delay locked loops, @@ -85,7 +85,7 @@ class Slave { *