def addGroup(self, trackname): # add audio group oldtracknames = oom.getTrackNames() if trackname in oldtracknames: return None oom.addGroup() self.nameNewTrack(trackname, oldtracknames)
def addWaveTrack(self, trackname): # add wave track oldtracknames = oom.getTrackNames() if trackname in oldtracknames: return None oom.addWaveTrack() self.nameNewTrack(trackname, oldtracknames)
def addOutput(self, trackname): # add audio output oldtracknames = oom.getTrackNames() if trackname in oldtracknames: return None oom.addOutput() self.nameNewTrack(trackname, oldtracknames)
def findNewTrack(self, oldtracknames): #internal function tracknames = oom.getTrackNames() for trackname in tracknames: if trackname in oldtracknames: continue return trackname
def addMidiTrack(self, trackname): # add midi track oldtracknames = oom.getTrackNames() if trackname in oldtracknames: return None oom.addMidiTrack() self.nameNewTrack(trackname, oldtracknames)
def getTrackNames(self): # get track names return oom.getTrackNames()
def deleteTrack(self, trackname): # delete a track tracknames = oom.getTrackNames() if trackname not in tracknames: return False oom.deleteTrack(trackname)