def _start(self): #self.fader = Gain() #self.fader.fade(0, 1., 10) self.trem = TremoloTexture() #route(self.trem, self.fader) #route(self.fader, midi) for _ in xrange(2): self.trem.play() self.hits = ChordHits() self.hits.play()
class TremAndHitsSection(Section): kill = [] def _start(self): #self.fader = Gain() #self.fader.fade(0, 1., 10) self.trem = TremoloTexture() #route(self.trem, self.fader) #route(self.fader, midi) for _ in xrange(2): self.trem.play() self.hits = ChordHits() self.hits.play() def _stop(self): self.hits.stop() self.trem.stop() self.fader.vel_multiplier = 0.