(self, id, note)
return pitch, waveform, volume, effect
Gets a note from a pattern.

        pitch is a value (0-63), representing the notes on a chromatic scale
        from c-0 to d#-5.

        waveform is one of the WAVEFORM_* constants (0-15).

        volume is 0-7: 0 is off, 7 is loudest.

        effect is one of the EFFECT_* constants (0-7).

        Args:
          id: The pattern ID. (0-63)
          note: The note number. (0-31)

        Returns:
          A tuple: (pitch, waveform, volume, effect).
Gets a note from a pattern.
Gets a note from a pattern .
def get_note(self, id, note):
        """Gets a note from a pattern.

        pitch is a value (0-63), representing the notes on a chromatic scale
        from c-0 to d#-5.

        waveform is one of the WAVEFORM_* constants (0-15).

        volume is 0-7: 0 is off, 7 is loudest.

        effect is one of the EFFECT_* constants (0-7).

        Args:
          id: The pattern ID. (0-63)
          note: The note number. (0-31)

        Returns:
          A tuple: (pitch, waveform, volume, effect).
        """
        lsb = self._data[id * 68 + note * 2]
        msb = self._data[id * 68 + note * 2 + 1]
        pitch = lsb & 0x3f
        waveform = ((msb & 0x80) >> 4) | (
            (msb & 0x01) << 2) | ((lsb & 0xc0) >> 6)
        volume = (msb & 0x0e) >> 1
        effect = (msb & 0x70) >> 4
        return pitch, waveform, volume, effect
def get_note ( self , id , note ) : lsb = self . _data [ id * 68 + note * 2 ] msb = self . _data [ id * 68 + note * 2 + 1 ] pitch = lsb & 0x3f waveform = ( ( msb & 0x80 ) >> 4 ) | ( ( msb & 0x01 ) << 2 ) | ( ( lsb & 0xc0 ) >> 6 ) volume = ( msb & 0x0e ) >> 1 effect = ( msb & 0x70 ) >> 4 return pitch , waveform , volume , effect