(self, id, channel, pattern)
Sets the sfx ID on a channel of a pattern.

        Args:
          id: The music ID. (0-63)
          channel: The channel. (0-3)
          pattern: The sfx ID, or None to set the channel to silent.
Sets the sfx ID on a channel of a pattern.
Sets the sfx ID on a channel of a pattern .
def set_channel(self, id, channel, pattern):
        """Sets the sfx ID on a channel of a pattern.

        Args:
          id: The music ID. (0-63)
          channel: The channel. (0-3)
          pattern: The sfx ID, or None to set the channel to silent.
        """
        assert 0 <= id <= 63
        assert 0 <= channel <= 3
        assert (pattern is None) or (0 <= pattern <= 63)
        if pattern is None:
            pattern = 0x40 + channel + 1
        self._data[id * 4 + channel] = ((self._data[id * 4 + channel] & 0x80) |
                                        pattern)
def set_channel ( self , id , channel , pattern ) : assert 0 <= id <= 63 assert 0 <= channel <= 3 assert ( pattern is None ) or ( 0 <= pattern <= 63 ) if pattern is None : pattern = 0x40 + channel + 1 self . _data [ id * 4 + channel ] = ( ( self . _data [ id * 4 + channel ] & 0x80 ) | pattern )