Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(44)  |  Call(44)  |  Derive(0)  |  Import(0)

src/a/b/AbletonLive9_RemoteScripts-HEAD/Nocturn2/MixerController.py   AbletonLive9_RemoteScripts(Download)
                    self.arm_track(t, arm)
                    if (not t.can_be_armed):
                        self.send_midi((NOTE_ON_STATUS+ARM_CH, ARM_BASE_NO+i, 0))
                self.select_track(t)
            elif (velocity > 0):
                self.send_midi((NOTE_ON_STATUS+ARM_CH, ARM_BASE_NO+i, 0))
                self.solo_track(self.tracks[i], solo)
            elif (velocity > 0):
                self.send_midi((NOTE_ON_STATUS+SOLO_CH, SOLO_BASE_NO+i, 0))
        elif ((channel == MUTE_CH) and (note >= MUTE_BASE_NO) and (note < MUTE_BASE_NO+NUM_STRIPS)):
            i = note-MUTE_BASE_NO;
            if (i < len(self.tracks)):
                mute = (velocity == 0)
                self.mute_track(self.tracks[i], mute)   
            elif (velocity > 0):
                self.send_midi((NOTE_ON_STATUS+MUTE_CH, MUTE_BASE_NO+i, 0))
                self.set_track_bank(i)
                if (velocity == 0):
                    self.send_midi((NOTE_ON_STATUS+BANK_CH, BANK_BASE_NO+i, 127))
            else:
                self.send_midi((NOTE_ON_STATUS+BANK_CH, BANK_BASE_NO+i, 0))

src/a/b/AbletonLive9_RemoteScripts-HEAD/Nocturn2/PlayingController.py   AbletonLive9_RemoteScripts(Download)
                else:
                    self.song().master_track.stop_all_clips()
                self.send_midi((NOTE_ON_STATUS+PLAYING_CH, note, vel))
        if (channel == TRANSPORT_CH):
            index = note-TRANSPORT_BASE_NO
                if (self._refresh_count&3 == 0):
                    self._refresh_count = 0
                    self.send_midi((NOTE_ON_STATUS+PLAYING_CH, PLAYING_BASE_NO+index, 127))
                elif (self._refresh_count&1 == 0):
                    self.send_midi((NOTE_ON_STATUS+PLAYING_CH, PLAYING_BASE_NO+index, 0))
                slot = self.playing_slots[index]
                state = (((slot.has_clip) and (slot.clip.is_playing)) or (slot.playing_status > 0))
            self.send_midi((NOTE_ON_STATUS+PLAYING_CH, PLAYING_BASE_NO+index, state and 127))
 
    def _on_visible_tracks_changed(self):
    def update_metronome(self):
        state = self.song().metronome
        self.send_midi((NOTE_ON_STATUS+TRANSPORT_CH, TRANSPORT_BASE_NO, state and 127))
 
    def update_is_playing(self):

src/a/b/AbletonLive9_RemoteScripts-HEAD/Nocturn2/SceneController.py   AbletonLive9_RemoteScripts(Download)
        for index in range(0,NUM_STRIPS):
            Live.MidiMap.forward_midi_cc(script_handle, midi_map_handle, SCENE_CH, SCENE_BASE_CC+index)
            self.send_midi((CC_STATUS+SCENE_CH,SCENE_BASE_CC+index,64))
        self.update_fire_buttons()
 
            elif (index < NUM_STRIPS):
                self.song().view.selected_scene.fire()
            self.send_midi((NOTE_ON_STATUS+SCENE_CH, note, vel)) 
 
 
                if (self._refresh_count&3 == 0):
                    self._refresh_count = 0
                    self.send_midi((NOTE_ON_STATUS+SCENE_CH, SCENE_BASE_NO+index, 127))
                elif (self._refresh_count&1 == 0):
                    self.send_midi((NOTE_ON_STATUS+SCENE_CH, SCENE_BASE_NO+index, 0))
                slot = self.scene_slots[index]
                state = (((slot.has_clip) and (slot.clip.is_playing)) or (slot.playing_status > 0))
            self.send_midi((NOTE_ON_STATUS+SCENE_CH, SCENE_BASE_NO+index, state and 127))
 
    def on_selected_track_bank(self):

src/a/b/AbletonLive9_RemoteScripts-HEAD/Nocturn2/DeviceController.py   AbletonLive9_RemoteScripts(Download)
                    self.request_rebuild_midi_map()
                else:
                    self.send_midi((NOTE_ON_STATUS+DEV_BANK_CH,DEV_BANK_BASE_NO+index,0))
 
    def build_midi_map(self, script_handle, midi_map_handle):
                else:
                    Live.MidiMap.forward_midi_cc(script_handle, midi_map_handle, DEV_CH, DEV_BASE_CC+index)
                    self.send_midi((CC_STATUS+DEV_CH,DEV_BASE_CC+index,0))
 
                Live.MidiMap.forward_midi_note(script_handle, midi_map_handle, DEV_BANK_CH, DEV_BANK_BASE_NO+index)
                is_bank = (index == self._bank_index)
                self.send_midi((NOTE_ON_STATUS+DEV_BANK_CH,DEV_BANK_BASE_NO+index,is_bank and 127))