OSSIA
Open Scenario System for Interactive Application
transport.hpp
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 
4 #include <ossia/editor/scenario/time_signature.hpp>
6 
7 #include <smallfun.hpp>
8 namespace ossia
9 {
10 // Used to notify an external transport system of the current state of the
11 // transport in the score top-level interval.
12 struct tick_transport_info;
13 using transport_info_fun = smallfun::function<void(const tick_transport_info&)>;
14 
15 struct tick_transport_info
16 {
17  time_value date{};
18  double current_tempo{};
19  time_signature signature{};
20 
21  quarter_note musical_start_last_signature{};
22 
23  quarter_note musical_start_last_bar{};
24  quarter_note musical_start_position{};
25 
26  quarter_note musical_end_last_bar{};
27  quarter_note musical_end_position{};
28 
29  transport_info_fun update_transport_info;
30 };
31 
32 }
Definition: git_info.h:7