コード例 #1
0
ファイル: launchpad.py プロジェクト: ronaldevers/twister
    def control_on(self, param, color, flash=False):
        """turn on the LEDs under a pad in the top row

        The top row is controlled using control messages instead of
        note-on messages."""
        color = self._flashify(color, flash)
        midirwp.send_control_change(self.CHANNEL, param, color)
コード例 #2
0
ファイル: launchpad.py プロジェクト: ronaldevers/twister
    def control_on(self, param, color, flash=False):
        """turn on the LEDs under a pad in the top row

        The top row is controlled using control messages instead of
        note-on messages."""
        color = self._flashify(color, flash)
        midirwp.send_control_change(self.CHANNEL, param, color)
コード例 #3
0
ファイル: launchpad.py プロジェクト: ronaldevers/twister
 def control_off(self, param):
     """turn off the LEDs under a pad in the top row"""
     midirwp.send_control_change(self.CHANNEL, param, self.CLEAR)
コード例 #4
0
ファイル: launchpad.py プロジェクト: ronaldevers/twister
 def control_off(self, param):
     """turn off the LEDs under a pad in the top row"""
     midirwp.send_control_change(self.CHANNEL, param, self.CLEAR)