|
|
@@ -5,11 +5,14 @@ from PyQt5.QtCore import Qt, QThread, pyqtSignal
|
|
|
from PyQt5.QtGui import QPixmap
|
|
|
from PyQt5 import uic
|
|
|
import keyboard
|
|
|
-from ly import *
|
|
|
-from ly import transposition
|
|
|
+from ly import * #LilyPondFile, LilyPondFormat
|
|
|
+import ly.document
|
|
|
+import ly.cli.command
|
|
|
+import ly.cli.main
|
|
|
+#from ly import ly.transposition ?
|
|
|
from abjad import *
|
|
|
|
|
|
-class SheetMusicEditor(QMainWindow):
|
|
|
+class SheetMusicEditor(QDialog):
|
|
|
class KeyboardListener(QThread):
|
|
|
note_added = pyqtSignal(str)
|
|
|
|
|
|
@@ -84,10 +87,12 @@ class SheetMusicEditor(QMainWindow):
|
|
|
self.actionClose.triggered.connect(exit)
|
|
|
|
|
|
def transpose_up(self):
|
|
|
- self.pitch = transposition.transpose_pitch(self.pitch, "1")
|
|
|
+ pass
|
|
|
+ #self.pitch = transposition.transpose_pitch(self.pitch, "1")
|
|
|
|
|
|
def transpose_down(self):
|
|
|
- self.pitch = transposition.transpose_pitch(self.pitch, "-1")
|
|
|
+ pass
|
|
|
+ #self.pitch = transposition.transpose_pitch(self.pitch, "-1")
|
|
|
|
|
|
|
|
|
def add_becko_to_file(self):
|