nosignal-shell/services/BeatDetector.qml
2025-05-26 00:10:05 +08:00

18 lines
325 B
QML

pragma Singleton
import Quickshell
import Quickshell.Io
Singleton {
id: root
property real bpm
Process {
running: true
command: [`${Quickshell.shellRoot}/assets/realtime-beat-detector.py`]
stdout: SplitParser {
onRead: data => root.bpm = parseFloat(data)
}
}
}