示例#1
0
      def addGroup(self, trackname): # add audio group
            oldtracknames = oom.getTrackNames()
            if trackname in oldtracknames:
                  return None

            oom.addGroup()
            self.nameNewTrack(trackname, oldtracknames)
示例#2
0
      def addWaveTrack(self, trackname): # add wave track
            oldtracknames = oom.getTrackNames()
            if trackname in oldtracknames:
                  return None

            oom.addWaveTrack()
            self.nameNewTrack(trackname, oldtracknames)
示例#3
0
      def addOutput(self, trackname): # add audio output
            oldtracknames = oom.getTrackNames()
            if trackname in oldtracknames:
                  return None

            oom.addOutput()
            self.nameNewTrack(trackname, oldtracknames)
示例#4
0
      def findNewTrack(self, oldtracknames): #internal function
            tracknames = oom.getTrackNames()
            for trackname in tracknames:
                  if trackname in oldtracknames:
                        continue

                  return trackname
示例#5
0
      def addMidiTrack(self, trackname): # add midi track
            oldtracknames = oom.getTrackNames()
            if trackname in oldtracknames:
                  return None

            oom.addMidiTrack()
            self.nameNewTrack(trackname, oldtracknames)
示例#6
0
    def addGroup(self, trackname):  # add audio group
        oldtracknames = oom.getTrackNames()
        if trackname in oldtracknames:
            return None

        oom.addGroup()
        self.nameNewTrack(trackname, oldtracknames)
示例#7
0
    def addOutput(self, trackname):  # add audio output
        oldtracknames = oom.getTrackNames()
        if trackname in oldtracknames:
            return None

        oom.addOutput()
        self.nameNewTrack(trackname, oldtracknames)
示例#8
0
    def addWaveTrack(self, trackname):  # add wave track
        oldtracknames = oom.getTrackNames()
        if trackname in oldtracknames:
            return None

        oom.addWaveTrack()
        self.nameNewTrack(trackname, oldtracknames)
示例#9
0
    def addMidiTrack(self, trackname):  # add midi track
        oldtracknames = oom.getTrackNames()
        if trackname in oldtracknames:
            return None

        oom.addMidiTrack()
        self.nameNewTrack(trackname, oldtracknames)
示例#10
0
    def findNewTrack(self, oldtracknames):  #internal function
        tracknames = oom.getTrackNames()
        for trackname in tracknames:
            if trackname in oldtracknames:
                continue

            return trackname
示例#11
0
 def getTrackNames(self): # get track names
       return oom.getTrackNames()
示例#12
0
      def deleteTrack(self, trackname): # delete a track
            tracknames = oom.getTrackNames()
            if trackname not in tracknames:
                  return False

            oom.deleteTrack(trackname)
示例#13
0
 def getTrackNames(self):  # get track names
     return oom.getTrackNames()
示例#14
0
    def deleteTrack(self, trackname):  # delete a track
        tracknames = oom.getTrackNames()
        if trackname not in tracknames:
            return False

        oom.deleteTrack(trackname)