From 5f03ed24b9a0ef0978238ef917ffbff50aaf84fe Mon Sep 17 00:00:00 2001 From: Oli Date: Wed, 26 Sep 2007 23:18:36 +0000 Subject: edit and regenerate drum melody in Jam --- (limited to 'common') 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]: -- cgit v0.9.1