From 3df0f7fd26377fe30c3542fc34d7dc8d6fbf2ffa Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 15 Jun 2025 17:30:33 +1000 Subject: internal: properly fix beat detector --- services/BeatDetector.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'services/BeatDetector.qml') diff --git a/services/BeatDetector.qml b/services/BeatDetector.qml index b210801..65dd88e 100644 --- a/services/BeatDetector.qml +++ b/services/BeatDetector.qml @@ -12,7 +12,11 @@ Singleton { running: true command: ["/usr/lib/caelestia/beat_detector", "--no-log", "--no-stats", "--no-visual"] stdout: SplitParser { - onRead: data => root.bpm = parseFloat(data) + onRead: data => { + const match = data.match(/BPM: ([0-9]+\.[0-9])/); + if (match) + root.bpm = parseFloat(match[1]); + } } } } -- cgit v1.2.3-freya