Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Generation
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-09-26 23:18:36 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-09-26 23:18:36 (GMT)
commit5f03ed24b9a0ef0978238ef917ffbff50aaf84fe (patch)
tree6e98123bdbcb28d28bc90bb5abb402dedcb6039d /common/Generation
parentc49ebc4d8a9073aaab881d708710cf64fcf494a1 (diff)
edit and regenerate drum melody in Jam
Diffstat (limited to 'common/Generation')
-rwxr-xr-xcommon/Generation/Generator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/Generation/Generator.py b/common/Generation/Generator.py
index 9bac77b..acc605c 100755
--- a/common/Generation/Generator.py
+++ b/common/Generation/Generator.py
@@ -143,7 +143,8 @@ def generator1(
trackOfNotes = []
pageCycle = selectedPageCount % nPagesCycle
- if instrument[pageId][trackId][0:4] == 'drum':
+ #if instrument[pageId][trackId][0:4] == 'drum':
+ if trackId == 4:
if pageCycle not in [0,nPagesCycle-1] and nbeats[pageId] == nbeats[lastPageId]:
trackDictionary[trackId][pageId] = []
for n in trackDictionary[trackId][lastPageId]: