try to catch https://github.com/rncbc/synthv1/issues/1#issuecomment-183041991
authorRobin Gareus <robin@gareus.org>
Tue, 16 Feb 2016 14:36:43 +0000 (15:36 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 16 Feb 2016 14:36:43 +0000 (15:36 +0100)
commitcbdae785118863cf04a4d9cf63524801f55b8df5
tree6146fcc9ed2d7848a0bbb9613cedefa5533658ed
parentc1910351a5379553da6d062fe40f3d8da90910f4
try to catch https://github.com/rncbc/synthv1/issues/1#issuecomment-183041991

(n_samples = 64 but Ardour sends midi-buffer with an event at 960)

some guesses as to why:
 - split cycle for looping (nominal: 1024, cycle split:64)
 - plugin uses _session.transport_frame() directly :(
   (not latency compensated offset or looped position)
 - "offset" is not taken into account for midi buffers
 - tempo/metric change (metric iterator is wrong after loop)
libs/ardour/lv2_plugin.cc