diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-04 22:38:23 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-04 22:38:23 +1000 |
| commit | d5afda9d953f423fb88100e0d496db87a0e3e47d (patch) | |
| tree | e6125d7740820c654eeb85336f43aafaba47719a /services/BeatDetector.qml | |
| parent | nix: remove unneeded deps (diff) | |
| download | caelestia-shell-d5afda9d953f423fb88100e0d496db87a0e3e47d.tar.gz caelestia-shell-d5afda9d953f423fb88100e0d496db87a0e3e47d.tar.bz2 caelestia-shell-d5afda9d953f423fb88100e0d496db87a0e3e47d.zip | |
plugin: add BeatTracker
Replaces beat-detector.cpp
Diffstat (limited to 'services/BeatDetector.qml')
| -rw-r--r-- | services/BeatDetector.qml | 23 |
1 files changed, 0 insertions, 23 deletions
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]); - } - } - } -} |