Browse Source

Add additionalData parameter for startEngine. This is from template, we don't use it.

master
Nils 10 months ago
parent
commit
2b52137f4e
  1. 4
      engine/api.py
  2. 4
      engine/config.py

4
engine/api.py

@ -277,8 +277,8 @@ def updatePlayback():
#TODO: use template.sequencer.py internal updates instead
cbox.Document.get_song().update_playback()
def startEngine(nsmClient):
_templateStartEngine(nsmClient) #loads save files or creates empty structure.
def startEngine(nsmClient, additionalData:dict={}):
_templateStartEngine(nsmClient, additionalData) #loads save files or creates empty structure.
session.inLoopMode = None # remember if we are in loop mode or not. Positive value is None or a tuple with start and end

4
engine/config.py

@ -3,7 +3,7 @@
#Do not change these during runtime!
METADATA={
METADATA = {
#The pretty name of this program. Used for NSM display and Jack client name
#Can contain everything a linux file/path supports. Never change this or it will break the
#session, making your file unable to load and destroying saved Jack connections.
@ -61,5 +61,5 @@ musical notes. Switch the patterns on and off in a sequence to create a song str
Connect external synthesizers and samplers to create sounds.
""",
"dependencies" : "\n".join("* "+dep for dep in ()),
"dependencies" : "\n".join("* "+dep for dep in ("",)), #the tuple in the end should be strings. This is for the manual, not for automatic packaging.
}

Loading…
Cancel
Save