Loading...
Searching...
No Matches
mtk::midi_clock Namespace Reference

Detailed Description

Time-dependent logic of MIDI Sync Out, free of any clock source and of any output: every function takes the current time as an argument, so that it can be driven by std::chrono::steady_clock in the sending thread and by a fake clock in tests.

Classes

struct  free_clock
 
struct  free_clock_params
 
struct  message
 
struct  tap_tempo
 
struct  timeline_clock
 

Enumerations

enum class  transport_command : int { None , Start , Stop , Continue }
 

Functions

constexpr double clock_rate_factor (int index) noexcept
 Clock rate factors, in the order of the "Clock rate" control's values.
 
constexpr double nudge_factor (int nudge) noexcept
 Tempo factor while a nudge button is held: -1 is down, +1 is up.
 

Variables

constexpr double min_tempo = 20.
 
constexpr double max_tempo = 300.