ardour
Public Member Functions | Private Member Functions | List of all members
ARDOUR::MIDIClock_SlaveTest Class Reference

#include <midi_clock_slave_test.h>

Inheritance diagram for ARDOUR::MIDIClock_SlaveTest:
ARDOUR::MIDIClock_Slave

Public Member Functions

 MIDIClock_SlaveTest ()
 
void setUp ()
 
void tearDown ()
 
void testStepResponse ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (MIDIClock_SlaveTest)
 
 CPPUNIT_TEST (testStepResponse)
 
 CPPUNIT_TEST_SUITE_END ()
 
- Private Member Functions inherited from ARDOUR::MIDIClock_Slave
 MIDIClock_Slave (Session &, MidiPort &, int ppqn=24)
 
 MIDIClock_Slave (ISlaveSessionProxy *session_proxy=0, int ppqn=24)
 Constructor for unit tests. More...
 
 ~MIDIClock_Slave ()
 
void rebind (MidiPort &)
 
bool speed_and_position (double &, framepos_t &)
 
bool locked () const
 
bool ok () const
 
bool starting () const
 
framecnt_t resolution () const
 
bool requires_seekahead () const
 
bool give_slave_full_control_over_transport_speed () const
 
void set_bandwidth (double a_bandwith)
 
std::string approximate_current_delta () const
 
void reset ()
 
void start (MIDI::Parser &parser, framepos_t timestamp)
 
void contineu (MIDI::Parser &parser, framepos_t timestamp)
 
void stop (MIDI::Parser &parser, framepos_t timestamp)
 
void position (MIDI::Parser &parser, MIDI::byte *message, size_t size)
 
void calculate_one_ppqn_in_frames_at (framepos_t time)
 
framepos_t calculate_song_position (uint16_t song_position_in_sixteenth_notes)
 
void calculate_filter_coefficients ()
 
void update_midi_clock (MIDI::Parser &parser, framepos_t timestamp)
 
void read_current (SafeTime *) const
 
bool stop_if_no_more_clock_events (framepos_t &pos, framepos_t now)
 
- Private Member Functions inherited from ARDOUR::Slave
 Slave ()
 
virtual ~Slave ()
 
virtual framecnt_t seekahead_distance () const
 
virtual bool is_always_synced () const
 

Additional Inherited Members

- Private Attributes inherited from ARDOUR::MIDIClock_Slave
ISlaveSessionProxysession
 
PBD::ScopedConnectionList port_connections
 
int ppqn
 pulses per quarter note for one MIDI clock frame (default 24) More...
 
double one_ppqn_in_frames
 the duration of one ppqn in frame time More...
 
framepos_t first_timestamp
 the timestamp of the first MIDI clock message More...
 
framepos_t last_timestamp
 the time stamp and should-be transport position of the last inbound MIDI clock message More...
 
double should_be_position
 
long midi_clock_count
 
double t0
 time at the beginning of the MIDI clock frame More...
 
double t1
 calculated end of the MIDI clock frame More...
 
double e
 loop error = real value - expected value More...
 
double e2
 second order loop error More...
 
double bandwidth
 DLL filter bandwidth. More...
 
double b
 DLL filter coefficients. More...
 
double c
 
double omega
 
frameoffset_t current_delta
 
bool _started
 whether transport should be rolling More...
 
bool _starting
 

Detailed Description

Definition at line 78 of file midi_clock_slave_test.h.

Constructor & Destructor Documentation

ARDOUR::MIDIClock_SlaveTest::MIDIClock_SlaveTest ( )
inline

Definition at line 85 of file midi_clock_slave_test.h.

Member Function Documentation

ARDOUR::MIDIClock_SlaveTest::CPPUNIT_TEST ( testStepResponse  )
private
ARDOUR::MIDIClock_SlaveTest::CPPUNIT_TEST_SUITE ( MIDIClock_SlaveTest  )
private
ARDOUR::MIDIClock_SlaveTest::CPPUNIT_TEST_SUITE_END ( )
private
void ARDOUR::MIDIClock_SlaveTest::setUp ( )
inline

Definition at line 87 of file midi_clock_slave_test.h.

void ARDOUR::MIDIClock_SlaveTest::tearDown ( )
inline

Definition at line 90 of file midi_clock_slave_test.h.

void MIDIClock_SlaveTest::testStepResponse ( )

Definition at line 10 of file midi_clock_slave_test.cc.


The documentation for this class was generated from the following files: