Browse Source

autosave when exporting pdf and ly

master
Nils 3 years ago
parent
commit
36136f294c
  1. 5
      engine/api.py

5
engine/api.py

@ -1719,7 +1719,8 @@ def insertMetricalInstruction(treeOfInstructions, lilypondOverride = None):
def commonMetricalInstructionsAsList():
"""for musical reasons 5/4 and 7/8 and other a-symetrical
metrical instructions cannot be in here since it is unknown which
internal version the user wants."""
internal version the user wants. And we don't want to pollute this with all possible
permutations like 5/4: 3+2+2; 5/4: 2+3+2 etc."""
return [
"off",
"4/4",
@ -2500,6 +2501,7 @@ def lilypondText(text):
logger.error(err)
def exportLilypond(absoluteFilePath):
save()
lilypond.saveAsLilypond(session.data, absoluteFilePath)
#try:
# lilypond.saveAsLilypond(session.data, absoluteFilePath)
@ -2508,6 +2510,7 @@ def exportLilypond(absoluteFilePath):
def showPDF():
try:
save()
lilypond.saveAsLilypondPDF(session.data, openPDF = True)
except Exception as err:
logger.error(err)

Loading…
Cancel
Save