aboutsummaryrefslogtreecommitdiff
path: root/timely.lv2
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-21 14:54:05 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-21 14:54:05 +0100
commitf3d77a9c079754914ebe1ccdfc58d0df953be8b8 (patch)
tree81de623f1457a5c5e7ed4dd7994d12ab5e5de98a /timely.lv2
parent11088137929d6cff5e53daf76b16cbdc0471a729 (diff)
downloadvm.lv2-f3d77a9c079754914ebe1ccdfc58d0df953be8b8.tar.xz
implement time extension.
Diffstat (limited to 'timely.lv2')
-rw-r--r--timely.lv2/timely.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/timely.lv2/timely.h b/timely.lv2/timely.h
index 0cdf679..4e6b28d 100644
--- a/timely.lv2/timely.h
+++ b/timely.lv2/timely.h
@@ -341,6 +341,9 @@ timely_advance_body(timely_t *timely, uint32_t size, uint32_t type,
timely->cb(timely, i, timely->urid.time_barBeat, timely->data);
}
+ if( (timely->mask & TIMELY_MASK_FRAME) && (update_frame != i) )
+ timely->cb(timely, (update_frame = i), timely->urid.time_frame, timely->data);
+
timely->offset.bar += 1;
timely->offset.beat += 1;
timely->pos.frame += 1;