#include <transport_master.h>
|
| MIDIClock_TransportMaster (std::string const &name, int ppqn=24) |
|
| ~MIDIClock_TransportMaster () |
| Constructor for unit tests. More...
|
|
void | set_session (Session *) |
|
void | unregister_port () |
|
void | pre_process (pframes_t nframes, samplepos_t now, std::optional< samplepos_t >) |
|
void | rebind (MidiPort &) |
|
void | reset (bool with_pos) |
|
bool | locked () const |
|
bool | ok () const |
|
samplecnt_t | update_interval () const |
|
samplecnt_t | resolution () const |
|
bool | requires_seekahead () const |
|
void | init () |
|
std::string | position_string () const |
|
std::string | delta_string () const |
|
float | bpm () const |
|
void | create_port () |
|
| TransportMaster (SyncSource t, std::string const &name) |
|
virtual | ~TransportMaster () |
|
virtual bool | speed_and_position (double &speed, samplepos_t &position, samplepos_t &lp, samplepos_t &when, samplepos_t now) |
|
virtual bool | usable () const |
|
virtual bool | starting () const |
|
virtual samplecnt_t | seekahead_distance () const |
|
virtual bool | sample_clock_synced () const |
|
virtual void | set_sample_clock_synced (bool) |
|
sampleoffset_t | current_delta () const |
|
virtual bool | can_loop () const |
|
virtual Location * | loop_location () const |
|
bool | has_loop () const |
|
SyncSource | type () const |
|
TransportRequestSource | request_type () const |
|
std::string | name () const |
|
void | set_name (std::string const &) |
|
int | set_state (XMLNode const &, int) |
|
XMLNode & | get_state () const |
|
std::shared_ptr< Port > | port () const |
|
bool | check_collect () |
|
virtual void | set_collect (bool) |
|
bool | collect () const |
|
virtual void | check_backend () |
|
virtual bool | allow_request (TransportRequestSource, TransportRequestType) const |
|
std::string | allowed_request_string () const |
|
TransportRequestType | request_mask () const |
|
void | set_request_mask (TransportRequestType) |
|
bool | removeable () const |
|
void | set_removeable (bool yn) |
|
std::string | display_name (bool sh=true) const |
|
void | connect_port_using_state () |
|
| Stateful () |
|
virtual | ~Stateful () |
|
virtual bool | apply_change (PropertyBase const &) |
|
PropertyChange | apply_changes (PropertyList const &) |
|
const OwnedPropertyList & | properties () const |
|
void | add_property (PropertyBase &s) |
|
void | add_extra_xml (XMLNode &) |
|
XMLNode * | extra_xml (const std::string &str, bool add_if_missing=false) |
|
void | save_extra_xml (const XMLNode &) |
|
const PBD::ID & | id () const |
|
bool | set_id (const XMLNode &) |
|
void | set_id (const std::string &) |
|
void | reset_id () |
|
void | clear_changes () |
|
virtual void | clear_owned_changes () |
|
PropertyList * | get_changes_as_properties (PBD::Command *) const |
|
virtual void | rdiff (std::vector< PBD::Command * > &) const |
|
bool | changed () const |
|
virtual PropertyList * | property_factory (const XMLNode &) const |
|
virtual void | suspend_property_changes () |
|
virtual void | resume_property_changes () |
|
bool | property_changes_suspended () const |
|
virtual | ~TransportMasterViaMIDI () |
|
MIDI::Parser & | transport_parser () |
|
std::shared_ptr< MidiPort > | midi_port () const |
|
std::shared_ptr< Port > | create_midi_port (std::string const &port_name) |
|
|
void | start (MIDI::Parser &parser, samplepos_t timestamp) |
|
void | contineu (MIDI::Parser &parser, samplepos_t timestamp) |
|
void | stop (MIDI::Parser &parser, samplepos_t timestamp) |
|
void | position (MIDI::Parser &parser, MIDI::byte *message, size_t size, samplepos_t timestamp) |
|
void | calculate_one_ppqn_in_samples_at (samplepos_t time) |
|
samplepos_t | calculate_song_position (uint16_t song_position_in_sixteenth_notes) |
|
void | calculate_filter_coefficients (double qpm) |
|
void | update_midi_clock (MIDI::Parser &parser, samplepos_t timestamp) |
|
void | connection_handler (std::weak_ptr< ARDOUR::Port >, std::string, std::weak_ptr< ARDOUR::Port >, std::string, bool) |
|
virtual void | register_properties () |
|
virtual std::string | format_delta_time (sampleoffset_t) const |
|
void | add_instant_xml (XMLNode &, const std::string &directory_path) |
|
XMLNode * | instant_xml (const std::string &str, const std::string &directory_path) |
|
void | add_properties (XMLNode &) const |
|
PropertyChange | set_values (XMLNode const &) |
|
virtual void | post_set (const PropertyChange &) |
|
virtual void | send_change (const PropertyChange &) |
|
virtual void | mid_thaw (const PropertyChange &) |
|
bool | regenerate_xml_or_string_ids () const |
|
| TransportMasterViaMIDI () |
|
void | resync_latency (bool) |
|
virtual void | parameter_changed (std::string const &p) |
|
Definition at line 657 of file transport_master.h.
◆ MIDIClock_TransportMaster()
ARDOUR::MIDIClock_TransportMaster::MIDIClock_TransportMaster |
( |
std::string const & |
name, |
|
|
int |
ppqn = 24 |
|
) |
| |
◆ ~MIDIClock_TransportMaster()
ARDOUR::MIDIClock_TransportMaster::~MIDIClock_TransportMaster |
( |
| ) |
|
◆ bpm()
float ARDOUR::MIDIClock_TransportMaster::bpm |
( |
| ) |
const |
|
inline |
◆ calculate_filter_coefficients()
void ARDOUR::MIDIClock_TransportMaster::calculate_filter_coefficients |
( |
double |
qpm | ) |
|
|
protected |
◆ calculate_one_ppqn_in_samples_at()
void ARDOUR::MIDIClock_TransportMaster::calculate_one_ppqn_in_samples_at |
( |
samplepos_t |
time | ) |
|
|
protected |
◆ calculate_song_position()
samplepos_t ARDOUR::MIDIClock_TransportMaster::calculate_song_position |
( |
uint16_t |
song_position_in_sixteenth_notes | ) |
|
|
protected |
◆ connection_handler()
void ARDOUR::MIDIClock_TransportMaster::connection_handler |
( |
std::weak_ptr< ARDOUR::Port > |
, |
|
|
std::string |
, |
|
|
std::weak_ptr< ARDOUR::Port > |
, |
|
|
std::string |
, |
|
|
bool |
|
|
) |
| |
|
protectedvirtual |
◆ contineu()
◆ create_port()
void ARDOUR::MIDIClock_TransportMaster::create_port |
( |
| ) |
|
|
virtual |
◆ delta_string()
std::string ARDOUR::MIDIClock_TransportMaster::delta_string |
( |
| ) |
const |
|
virtual |
◆ init()
void ARDOUR::MIDIClock_TransportMaster::init |
( |
| ) |
|
|
virtual |
◆ locked()
bool ARDOUR::MIDIClock_TransportMaster::locked |
( |
| ) |
const |
|
virtual |
◆ ok()
bool ARDOUR::MIDIClock_TransportMaster::ok |
( |
| ) |
const |
|
virtual |
reports to ARDOUR whether the slave is in a sane state
- Returns
- - when returning false, the transport will be stopped and the slave disconnected from ARDOUR.
Implements ARDOUR::TransportMaster.
◆ position()
◆ position_string()
std::string ARDOUR::MIDIClock_TransportMaster::position_string |
( |
| ) |
const |
|
virtual |
◆ pre_process()
◆ rebind()
void ARDOUR::MIDIClock_TransportMaster::rebind |
( |
MidiPort & |
| ) |
|
◆ requires_seekahead()
bool ARDOUR::MIDIClock_TransportMaster::requires_seekahead |
( |
| ) |
const |
|
inlinevirtual |
◆ reset()
void ARDOUR::MIDIClock_TransportMaster::reset |
( |
bool |
with_pos | ) |
|
|
virtual |
◆ resolution()
samplecnt_t ARDOUR::MIDIClock_TransportMaster::resolution |
( |
| ) |
const |
|
virtual |
- Returns
- - the timing resolution of the TransportMaster - If the distance of ARDOURs transport to the slave becomes greater than the resolution, sound will stop
Implements ARDOUR::TransportMaster.
◆ set_session()
void ARDOUR::MIDIClock_TransportMaster::set_session |
( |
Session * |
| ) |
|
|
virtual |
◆ start()
◆ stop()
◆ unregister_port()
void ARDOUR::MIDIClock_TransportMaster::unregister_port |
( |
| ) |
|
|
virtual |
◆ update_interval()
samplecnt_t ARDOUR::MIDIClock_TransportMaster::update_interval |
( |
| ) |
const |
|
virtual |
- Returns
- - the expected update interval for the data source used by this transport master. Even if the data is effectively continuous, this number indicates how long it is between changes to the known position of the master.
Implements ARDOUR::TransportMaster.
◆ update_midi_clock()
◆ _bpm
double ARDOUR::MIDIClock_TransportMaster::_bpm |
|
protected |
◆ _running
bool ARDOUR::MIDIClock_TransportMaster::_running |
|
protected |
◆ _speed
double ARDOUR::MIDIClock_TransportMaster::_speed |
|
protected |
◆ first_timestamp
samplepos_t ARDOUR::MIDIClock_TransportMaster::first_timestamp |
|
protected |
◆ last_timestamp
samplepos_t ARDOUR::MIDIClock_TransportMaster::last_timestamp |
|
protected |
the time stamp and should-be transport position of the last inbound MIDI clock message
Definition at line 708 of file transport_master.h.
◆ midi_clock_count
long ARDOUR::MIDIClock_TransportMaster::midi_clock_count |
|
protected |
the number of midi clock messages received (zero-based) since start
Definition at line 713 of file transport_master.h.
◆ one_ppqn_in_samples
double ARDOUR::MIDIClock_TransportMaster::one_ppqn_in_samples |
|
protected |
◆ port_connections
◆ ppqn
int ARDOUR::MIDIClock_TransportMaster::ppqn |
|
protected |
◆ should_be_position
double ARDOUR::MIDIClock_TransportMaster::should_be_position |
|
protected |
The documentation for this class was generated from the following file: