diff options
author | Eddy Pedroni <eddy@0xf7.com> | 2021-11-29 22:29:32 +0100 |
---|---|---|
committer | Eddy Pedroni <eddy@0xf7.com> | 2021-11-29 22:29:32 +0100 |
commit | c6b5fa928719a05782de40a86fcb90feca92fce3 (patch) | |
tree | bd489b16a38f9ffeaf42f99480d066aa911c3734 | |
parent | 9d92121a67188995ced4aa2cc26d320475bb8c94 (diff) | |
parent | 96fa61ed7a0f3e08b40f528e272fd73a7dbc9cf4 (diff) |
Merge branch 'master' of git.0xf7.com:projects/solo-tool
-rw-r--r-- | solo-tool.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/solo-tool.py b/solo-tool.py index 3101a55..5db6d3f 100644 --- a/solo-tool.py +++ b/solo-tool.py @@ -64,6 +64,9 @@ class MainWindow(QMainWindow, Ui_MainWindow): self.abListModel.layoutChanged.emit() + if self.midiEnabled: + midi.button_on(midi.lp_key[0][1], (midi.GREEN if self.player.state() == QMediaPlayer.PlayingState else midi.RED)) + def updateDuration(self, duration): self.aSlider.setMaximum(duration) self.bSlider.setMaximum(duration) |