Example #1
0
def resetAllName():
    if Flag_No_Sel_Names: return
    ui.setHintMsg("reset namePrefix")
    time.sleep(ST_HintMsg)
    for i in range(0, FL_TR_COUNT_MAX):
        lastName = mixer.getTrackName(i)
        if isSelName(lastName): mixer.setTrackName(i, lastName[5:])
Example #2
0
def selectActivArea(goTo):
    #mark the 8 tracks that are controlled
    if Flag_No_Sel_Names: return
    x = NK_NrOf_ControlGr  #8
    if goTo + NK_NrOf_ControlGr > FL_TR_COUNT_MAX:
        goL_Delta = (goTo + NK_NrOf_ControlGr - FL_TR_COUNT_MAX)
        x = x - goL_Delta
    for i in range(goTo, goTo + x):
        orgName = mixer.getTrackName(i)
        mixer.setTrackNumber(i, 1)
        if isSelName(orgName) == False:
            mixer.setTrackName(i, lsSelTrackNames[i - goTo] + orgName[0:])
 def OnUpdateTargetMixerTrack(self, delta):
     max_track_idx = mixer.trackCount() - 2   # One of the track is a control track
     prev_track = channels.getTargetFxTrack(channels.selectedChannel())
     target_track = self.circular(0, max_track_idx, prev_track + delta)
     # Remember to unset the name of the previous pointed to track.
     mixer.setTrackNumber(target_track, midi.curfxMinimalLatencyUpdate)
     mixer.linkTrackToChannel(midi.ROUTE_ToThis)
     channel_idx = self._channel_with_route_to_mixer_track(prev_track)
     if channel_idx < 0:
         mixer.setTrackName(prev_track, '')
     elif mixer.getTrackName(prev_track) == mixer.getTrackName(target_track):
         mixer.setTrackName(prev_track, channels.getChannelName(channel_idx))
     if target_track == 0:
         mixer.setTrackName(target_track, '')
Example #4
0
def resetTrackName(event, lastIdx):
    if Flag_No_Sel_Names: return
    for i in range(lastIdx, lastIdx + 8):
        lastName = mixer.getTrackName(i)
        if isSelName(lastName): mixer.setTrackName(i, lastName[5:])
 def _set_data(self, line):
     mixer.setTrackName(mixer.trackCount() - 1,
                        self._get_pattern_name() + line)
Example #6
0
 def setName(self, name):
     return mixer.setTrackName(self.index, name)