diff options
Diffstat (limited to 'Welcome.py')
-rw-r--r-- | Welcome.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -7,6 +7,7 @@ import Config from Util.ThemeWidgets import * from Util.CSoundClient import new_csound_client +from Util import NoteDB from Util.NoteDB import Note from miniTamTam.RythmGenerator import generator from SubActivity import SubActivity @@ -49,18 +50,18 @@ class Welcome(SubActivity): if self.activate_count == 0: i = 0 csnd = new_csound_client() - csnd.loopClear() beat = 8 regularity = 0.77 reverb = 0.2 for x in flatten( generator('drum3kit', beat, regularity, reverb) ): n = Note(0, x.trackId, i, x) i = i + 1 - csnd.loopPlay(n) + csnd.loopPlay(n,1) # add as active csnd.loopSetNumTicks( beat * Config.TICKS_PER_BEAT) csnd.loopSetTick(0) csnd.loopStart() self.activate_count = self.activate_count + 1 + self.show_all() def onDeactivate(self): if (self.activate_count == 1): |