Beispiel #1
0
 def _post_process(self):
     '''Effects added to the instrument. They can linger beyond notes.'''
     if self._tremolo_freq > 0:
         self._wave = effects.tremolo(self._wave, self._tremolo_freq)
     if self._slow_intro:
         attack = adsr.linear_envelope(0, 1, self._total_dur)
         self._wave = mixer.multiply((self._wave, attack))
     self._wave = effects.echo(self._timer, self._wave, .2, 1/4)
Beispiel #2
0
 def _post_process(self):
     if self._tremolo_freq > 0:
         self._wave = effects.tremolo(self._wave, self._tremolo_freq)
     if self._slow_intro:
         attack = adsr.linear_envelope(0, 1, self._total_dur)
         self._wave = mixer.multiply((self._wave, attack))