clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit f662d50b3465dc08e692ace433ac5de3e0608681
parent c34a1639dd2e330969e33237a95bf42f809a7ab7
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Wed, 15 Sep 2021 18:46:40 +0200

Display the bar start and bar number

Diffstat:
Mexamples/plugins/qml/transport-info/main.qml | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/examples/plugins/qml/transport-info/main.qml b/examples/plugins/qml/transport-info/main.qml @@ -4,7 +4,7 @@ import clap 1.0 Rectangle { width: 450 - height: 470 + height: 490 color: "#f8f8f8" Text { @@ -22,7 +22,11 @@ Rectangle { text += "Tempo: " + (transport.hasTempo ? (transport.tempo.toFixed(3) + " (bpm)") : "(none)") + "\n"; if (transport.hasBeatsTimeline) + { text += "song position (beats): " + transport.songPositionBeats.toFixed(3) + "\n"; + text += "bar start: " + transport.barStart.toFixed(3) + "\n"; + text += "bar number: " + transport.barNumber + "\n"; + } else text += "No timeline in beats\n";