Example #1
0
 def parseChannels(self, song):
     for port in range(4):
         for channelno in range(16):
             instrument = self.readSignedInt()
             channel = Channel(instrument)
             channel.port = port
             channel.number = channelno
             channel.volume = self.readByte()
             channel.balance = self.readByte()
             channel.chorus = self.readByte()
             channel.reverb = self.readByte()
             channel.phaser = self.readByte()
             channel.tremolo = self.readByte()
             blank1 = self.readByte()
             blank2 = self.readByte()
             song.channels.append(channel)