summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/lv2_plugin.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-08-16 13:11:49 +0200
committerRobin Gareus <robin@gareus.org>2016-08-16 13:11:49 +0200
commit18af0dc4cd7a9847a335ae1947ddcab92484c2df (patch)
tree0e8d367a87bff612427f6010fde03f30bae25792 /libs/ardour/ardour/lv2_plugin.h
parentd07d91602febc90f9db989b319ef4767fe8c0754 (diff)
Also send lv2:timePosition whenever BBT or Tempo changes
This mostly fixes an issue with notifying plugins about tempo-ramps and BPM changes. remaining to be fixed (in tempo.h): ``` _session.tempo_map().metric_at(frame_position).tempo().beats_per_minute() ``` currently returns the most recent *fixed* tempo at or before `frame_position`. All other Plugin types are affected by this as well.
Diffstat (limited to 'libs/ardour/ardour/lv2_plugin.h')
-rw-r--r--libs/ardour/ardour/lv2_plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h
index 7f312459f5..27ed9bbd29 100644
--- a/libs/ardour/ardour/lv2_plugin.h
+++ b/libs/ardour/ardour/lv2_plugin.h
@@ -190,6 +190,8 @@ class LIBARDOUR_API LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee
float* _latency_control_port; ///< Special output set by ardour
framepos_t _next_cycle_start; ///< Expected start frame of next run cycle
double _next_cycle_speed; ///< Expected start frame of next run cycle
+ double _next_cycle_beat; ///< Expected bar_beat of next run cycle
+ double _current_bpm;
PBD::ID _insert_id;
std::string _plugin_state_dir;
uint32_t _patch_port_in_index;