dashboard: media bongo cat use bpm as mult
This commit is contained in:
parent
cf965934ac
commit
48db317cc8
1 changed files with 2 additions and 5 deletions
|
|
@ -221,7 +221,7 @@ Item {
|
||||||
anchors.bottomMargin: Appearance.padding.large
|
anchors.bottomMargin: Appearance.padding.large
|
||||||
anchors.margins: Appearance.padding.large * 2
|
anchors.margins: Appearance.padding.large * 2
|
||||||
|
|
||||||
playing: false
|
playing: Players.active?.isPlaying
|
||||||
source: "root:/assets/bongocat.gif"
|
source: "root:/assets/bongocat.gif"
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
fillMode: AnimatedImage.PreserveAspectFit
|
fillMode: AnimatedImage.PreserveAspectFit
|
||||||
|
|
@ -231,10 +231,7 @@ Item {
|
||||||
running: true
|
running: true
|
||||||
command: [`${Quickshell.shellRoot}/assets/realtime-beat-detector.py`]
|
command: [`${Quickshell.shellRoot}/assets/realtime-beat-detector.py`]
|
||||||
stdout: SplitParser {
|
stdout: SplitParser {
|
||||||
onRead: data => {
|
onRead: data => bongocat.speed = parseFloat(data) / 300
|
||||||
if (Players.active?.isPlaying)
|
|
||||||
bongocat.currentFrame++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue