Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Welcome.py
diff options
context:
space:
mode:
authorJames <olpc@localhost.localdomain>2007-02-28 01:59:38 (GMT)
committer James <olpc@localhost.localdomain>2007-02-28 01:59:38 (GMT)
commitb2b3c26ff63f7231bfbe1bdfea14b84f5aa90b65 (patch)
treebf4c56296bd217f692a2e02380e3f7c1ee36cabe /Welcome.py
parentbc3a0e329ade384a30ada354d99c0a75cc20e2da (diff)
bug fixing
Diffstat (limited to 'Welcome.py')
-rw-r--r--Welcome.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Welcome.py b/Welcome.py
index 81cf717..fd329fc 100644
--- a/Welcome.py
+++ b/Welcome.py
@@ -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):