def on(self, tone, time=0): if tone not in self.sub_instruments: self._add_synth(tone) PolyphonicInstrument.on(self, tone, time=time)
def __init__(self, sample_rate, buffer_size, scale): PolyphonicInstrument.__init__(self) self.sample_rate = sample_rate self.buffer_size = buffer_size self.scale = scale