quickshell/services/BeatDetector.qml
2025-06-10 15:34:15 +02: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)
}
}
}