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