Browse Source

update template

master
Nils 5 years ago
parent
commit
8e7b8420c5
  1. 20
      template/engine/pitch.py
  2. 1
      template/qtgui/mainwindow.py
  3. 3
      template/start.py

20
template/engine/pitch.py

@ -26,6 +26,8 @@ This file handles various pitches and their conversions.
import logging; logger = logging.getLogger(__name__); logger.info("import")
#Standard Library
from collections import defaultdict
#Third Party Modules
#Template Modules
@ -1158,9 +1160,15 @@ midi_notenames_gm_drums = [str(i) for i in range(0,35)] + [
"Open Triangle",
] + [str(i) for i in range(87,128)]
simpleNoteNames = {
"German": midi_notenames_german,
"English" : midi_notenames_english,
"Lilypond" : midi_notenames_lilypond,
"Drums GM" : midi_notenames_gm_drums,
}
def _defaultSimpleNoteNames():
return midi_notenames_english
simpleNoteNames = defaultdict(_defaultSimpleNoteNames)
simpleNoteNames["German"] = midi_notenames_german
simpleNoteNames["English"] = midi_notenames_english
simpleNoteNames["Lilypond"] = midi_notenames_lilypond
simpleNoteNames["Drums GM"] = midi_notenames_gm_drums

1
template/qtgui/mainwindow.py

@ -29,6 +29,7 @@ from sys import exit as sysexit
#Third Party
from PyQt5 import QtCore, QtGui, QtWidgets
logger.info(f"PyQt Version: {QtCore.PYQT_VERSION_STR}")
#from PyQt5 import QtOpenGL
#Template Modules

3
template/start.py

@ -67,6 +67,9 @@ Nuitka complies that in, when make is finished we delete it.
import sys
import os
import os.path
logger.info(f"Python Version {sys.version}")
try:
from compiledprefix import prefix
compiledVersion = True

Loading…
Cancel
Save