From b865c9a3faecf5fba41b3c1af5c5f28db604e47d Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 7 Feb 2014 12:27:43 +0000 Subject: [PATCH] Misc --- source/backend/plugin/Lv2Plugin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/backend/plugin/Lv2Plugin.cpp b/source/backend/plugin/Lv2Plugin.cpp index 185fac828..22cd8aecc 100644 --- a/source/backend/plugin/Lv2Plugin.cpp +++ b/source/backend/plugin/Lv2Plugin.cpp @@ -2505,8 +2505,10 @@ public: LV2_Atom_Forge_Frame forgeFrame; lv2_atom_forge_object(&fAtomForge, &forgeFrame, 1, CARLA_URI_MAP_ID_TIME_POSITION); + lv2_atom_forge_key(&fAtomForge, CARLA_URI_MAP_ID_TIME_SPEED); lv2_atom_forge_float(&fAtomForge, timeInfo.playing ? 1.0f : 0.0f); + lv2_atom_forge_key(&fAtomForge, CARLA_URI_MAP_ID_TIME_FRAME); lv2_atom_forge_long(&fAtomForge, static_cast(timeInfo.frame)); @@ -2514,14 +2516,19 @@ public: { lv2_atom_forge_key(&fAtomForge, CARLA_URI_MAP_ID_TIME_BAR); lv2_atom_forge_long(&fAtomForge, timeInfo.bbt.bar - 1); + lv2_atom_forge_key(&fAtomForge, CARLA_URI_MAP_ID_TIME_BAR_BEAT); lv2_atom_forge_float(&fAtomForge, static_cast(static_cast(timeInfo.bbt.beat) - 1.0 + (static_cast(timeInfo.bbt.tick) / timeInfo.bbt.ticksPerBeat))); + lv2_atom_forge_key(&fAtomForge, CARLA_URI_MAP_ID_TIME_BEAT); lv2_atom_forge_double(&fAtomForge, timeInfo.bbt.beat -1); + lv2_atom_forge_key(&fAtomForge, CARLA_URI_MAP_ID_TIME_BEAT_UNIT); lv2_atom_forge_int(&fAtomForge, static_cast(timeInfo.bbt.beatType)); + lv2_atom_forge_key(&fAtomForge, CARLA_URI_MAP_ID_TIME_BEATS_PER_BAR); lv2_atom_forge_float(&fAtomForge, timeInfo.bbt.beatsPerBar); + lv2_atom_forge_key(&fAtomForge, CARLA_URI_MAP_ID_TIME_BEATS_PER_MINUTE); lv2_atom_forge_float(&fAtomForge, static_cast(timeInfo.bbt.beatsPerMinute)); }