(self, id, channel)
return pattern
Gets the sfx ID on a channel for a given pattern.

        Args:
          id: The music ID. (0-63)
          channel: The channel. (0-3)

        Returns:
          The sfx ID on the channel, or None if the channel is silent.
Gets the sfx ID on a channel for a given pattern.
Gets the sfx ID on a channel for a given pattern .
def get_channel(self, id, channel):
        """Gets the sfx ID on a channel for a given pattern.

        Args:
          id: The music ID. (0-63)
          channel: The channel. (0-3)

        Returns:
          The sfx ID on the channel, or None if the channel is silent.
        """
        assert 0 <= id <= 63
        assert 0 <= channel <= 3
        pattern = self._data[id * 4 + channel] & 0x7f
        if pattern > 63:
            return None
        return pattern
def get_channel ( self , id , channel ) : assert 0 <= id <= 63 assert 0 <= channel <= 3 pattern = self . _data [ id * 4 + channel ] & 0x7f if pattern > 63 : return None return pattern