diff options
author | James <olpc@localhost.localdomain> | 2007-02-28 01:59:38 (GMT) |
---|---|---|
committer | James <olpc@localhost.localdomain> | 2007-02-28 01:59:38 (GMT) |
commit | b2b3c26ff63f7231bfbe1bdfea14b84f5aa90b65 (patch) | |
tree | bf4c56296bd217f692a2e02380e3f7c1ee36cabe /Welcome.py | |
parent | bc3a0e329ade384a30ada354d99c0a75cc20e2da (diff) |
bug fixing
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): |