Example #1
0
    def note_on(self, note, color, flash=False):
        """Sends a note-on message to the device to control the LEDs
        under a pad.

        The pads are numbered from 0 to 8 on the first row (with
        square pads), 0x10 to 0x18 on the second row and so on. The
        top row of round pads is numbered from 0x68 to 0x6f."""
        color = self._flashify(color, flash)
        midirwp.send_note_on(self.CHANNEL, note, color)
Example #2
0
    def note_on(self, note, color, flash=False):
        """Sends a note-on message to the device to control the LEDs
        under a pad.

        The pads are numbered from 0 to 8 on the first row (with
        square pads), 0x10 to 0x18 on the second row and so on. The
        top row of round pads is numbered from 0x68 to 0x6f."""
        color = self._flashify(color, flash)
        midirwp.send_note_on(self.CHANNEL, note, color)
Example #3
0
 def note_off(self, note):
     """turn off the LEDs under a pad"""
     midirwp.send_note_on(self.CHANNEL, note, self.CLEAR)
Example #4
0
 def note_off(self, note):
     """turn off the LEDs under a pad"""
     midirwp.send_note_on(self.CHANNEL, note, self.CLEAR)