From d5afda9d953f423fb88100e0d496db87a0e3e47d Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 4 Sep 2025 22:38:23 +1000 Subject: plugin: add BeatTracker Replaces beat-detector.cpp --- services/BeatDetector.qml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 services/BeatDetector.qml (limited to 'services') diff --git a/services/BeatDetector.qml b/services/BeatDetector.qml deleted file mode 100644 index 24e19ec..0000000 --- a/services/BeatDetector.qml +++ /dev/null @@ -1,23 +0,0 @@ -pragma Singleton - -import qs.utils -import Quickshell -import Quickshell.Io - -Singleton { - id: root - - property real bpm: 150 - - Process { - running: true - command: [`${Paths.libdir}/beat_detector`, "--no-log", "--no-stats", "--no-visual"] - stdout: SplitParser { - onRead: data => { - const match = data.match(/BPM: ([0-9]+\.[0-9])/); - if (match) - root.bpm = parseFloat(match[1]); - } - } - } -} -- cgit v1.2.3-freya