コード例 #1
0
 def main_snd_mode(self):
     buttons = self._layout.get_mapping_mode(1)
     for i in range(len(self._current_tracks)):
         senda = LaunchpadButtonSliderElement((buttons[2][i],),SING,SING_SEND_LUT,False,60,28)
         sendb = LaunchpadButtonSliderElement((buttons[3][i],),SING,SING_SEND_LUT,False,60,28)
         sbs = (senda,sendb)
         self._channel_send.append(sbs)
         self._current_tracks[i].set_send_controls(self._channel_send[-1])
コード例 #2
0
 def main_pan_mode(self):
     buttons = self._layout.get_mapping_mode(1)
     
     for i in range(len(self._current_tracks)):
         sbs = LaunchpadButtonSliderElement((buttons[1][i],),SING,SING_PAN_LUT,False,60,28)
         self._channel_pan.append(sbs)
         self._current_tracks[i].set_pan_control(self._channel_pan[i])
コード例 #3
0
 def main_vol_mode(self):
     buttons = self._layout.get_mapping_mode(1)
     
     if len(self._current_tracks) > 0:
         for i in range(len(self._current_tracks)):
             sbs = LaunchpadButtonSliderElement((buttons[0][i],),SING,SING_VOL_LUT,False,60,28)
             self._channel_volume.append(sbs)
             self._current_tracks[i].set_volume_control(self._channel_volume[i])
コード例 #4
0
 def pan_mode(self):
     buttons = self._layout.get_mapping_mode(1)
     
     if(self._channel_pan == []):
         for i in range(len(self._current_tracks)):
             vertical_button_slider = []
             for j in range(len(buttons)):
                 vertical_button_slider.append(buttons[j][i])
             vertical_button_slider.reverse()
             c_v = LaunchpadButtonSliderElement(tuple(vertical_button_slider),PAN,PAN_LUT,False,63)
             self._channel_pan.append(c_v)
             self._current_tracks[i].set_pan_control(self._channel_pan[i])
コード例 #5
0
 def sndd_mode(self):
     buttons = self._layout.get_mapping_mode(1)
     #first set up the 1 button vol/pan/send/send controls
     if(self._sendd != []):
         self._sendd = []
     for i in range(len(self._current_tracks)):
         vertical_button_slider = []
         for j in range(len(buttons)):
             vertical_button_slider.append(buttons[j][i])
         vertical_button_slider.reverse()
         c_v = LaunchpadButtonSliderElement(tuple(vertical_button_slider),BAR,SEND_LUT,False,15)
         self._sendd.append(c_v)
         self._current_tracks[i].set_send_controls((None,None,None,self._sendd[i]))
コード例 #6
0
 def vol_mode(self):
     buttons = self._layout.get_mapping_mode(1)
     #first set up the 1 button vol/pan/send/send controls
     self._channel_volume = []
     for i in range(len(self._current_tracks)):
         vertical_button_slider = []
         for j in range(len(buttons)):
             vertical_button_slider.append(buttons[j][i])
         vertical_button_slider.reverse()
         c_v = LaunchpadButtonSliderElement(tuple(vertical_button_slider),BAR,VOLUME_LUT, False)
         self._channel_volume.append(c_v)
         self._current_tracks[i].set_volume_control(self._channel_volume[i])
             
     f = open("C:\log", "a")
     f.write("vol_mode_activated")
     f.close()