Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNat <natcl@hotmail.com>2007-10-10 20:01:44 (GMT)
committer Nat <natcl@hotmail.com>2007-10-10 20:01:44 (GMT)
commit7b14766b572db9745d6e7046382b08abb2cdc6dd (patch)
tree3b24583ce5cbc23aeb519427f811781748be60a4
parent200fc7f08e62957d38da1e39d84d100276445a1d (diff)
parent10cd9c0bee24f19ff7c6585c610b2fa7b014ddb2 (diff)
Merge branch 'master' of git+ssh://natcl@dev.laptop.org/git/projects/tamtam
-rw-r--r--TamTamEdit.activity/Edit/EditToolbars.py2
-rw-r--r--TamTamEdit.activity/Edit/MainWindow.py4
-rwxr-xr-xcommon/Generation/GenerationConstants.py14
-rw-r--r--common/Util/.CSoundClient.py.swpbin28672 -> 0 bytes
4 files changed, 10 insertions, 10 deletions
diff --git a/TamTamEdit.activity/Edit/EditToolbars.py b/TamTamEdit.activity/Edit/EditToolbars.py
index e8c9b10..95e3ab8 100644
--- a/TamTamEdit.activity/Edit/EditToolbars.py
+++ b/TamTamEdit.activity/Edit/EditToolbars.py
@@ -669,7 +669,7 @@ class generationPalette(Palette):
return
self.edit.setPageGenerateMode(mode)
self.edit.generate(self.getGenerationParameters())
- # print self.rythmDensity, self.rythmRegularity,self.pitchRegularity,self.pitchStep, self.duration, self.silence,self.pattern
+ print self.rythmDensity, self.rythmRegularity,self.pitchRegularity,self.pitchStep, self.duration, self.silence,self.pattern
self.popdown(True)
############ generate a preview melody ##############s
diff --git a/TamTamEdit.activity/Edit/MainWindow.py b/TamTamEdit.activity/Edit/MainWindow.py
index a91bdfc..6323833 100644
--- a/TamTamEdit.activity/Edit/MainWindow.py
+++ b/TamTamEdit.activity/Edit/MainWindow.py
@@ -404,7 +404,7 @@ class MainWindow( gtk.EventBox ):
self.tuneInterface.selectPages( self.noteDB.getTune() )
- beats = random.randint(3,8)
+ beats = random.randint(3,6)
stream = []
for page in self.noteDB.getTune():
stream += [ page, beats ]
@@ -480,7 +480,7 @@ class MainWindow( gtk.EventBox ):
Config.INSTRUMENTS[random.choice(drumsPickup)] ]
def chooseGenParams(self):
- choose = [random.randint(0,13) for x in range(4)]
+ choose = [random.randint(0,16) for x in range(4)]
density = [GenerationConstants.RYTHM_DENSITY_BANK[i] for i in choose]
rytReg = [GenerationConstants.RYTHM_REGU_BANK[i] for i in choose]
step = [GenerationConstants.PITCH_STEP_BANK[i] for i in choose]
diff --git a/common/Generation/GenerationConstants.py b/common/Generation/GenerationConstants.py
index 55b9527..9704048 100755
--- a/common/Generation/GenerationConstants.py
+++ b/common/Generation/GenerationConstants.py
@@ -31,13 +31,13 @@ class GenerationConstants:
# Default parameters for algorithmic generation
- RYTHM_DENSITY_BANK = [.38, .26, .82, 1, 1, .91, 1, .91, .91, .32, 1, 1, .83, .6]
- RYTHM_REGU_BANK = [.94, .95, .89, 1, 1, .75, 1, .75, .84, .93, 1, 1, .87, .62]
- PITCH_REGU_BANK = [.04, 0, 0, .36, .35, .57, 0, 0, 0, 0, .28, .77, 0, 0]
- PITCH_STEP_BANK = [.28, .48, .39, .4, 1, .55, .29, .15, .4, .26, .25, 1, .33, .22]
- DURATION_BANK = [1, 1, 1, 1, 1, 1, 1, 1, .65, .86, 1, 1, .82, 1]
- SILENCE_BANK = [.07, 0, .17, 0, .17, .17, .2, .32, .33, .08, .06, .11, .11, .06]
- PATTERN_BANK = [0,0,0,1,1,1,2,2,2,2,3,3,3,3]
+ RYTHM_DENSITY_BANK = [.38, .26, .82, .48, .56, 1, 1, .91, 1, .91, .91, .32, 1, 1, .83, .6, .88]
+ RYTHM_REGU_BANK = [.94, .95, .89, .73, .8, 1, 1, .75, 1, .75, .84, .93, 1, 1, .87, .62, .8]
+ PITCH_REGU_BANK = [.04, 0, 0, .22, 0, .36, .35, .57, 0, 0, 0, 0, .28, .77, 0, 0, 0]
+ PITCH_STEP_BANK = [.28, .48, .39, .38, .27, .4, 1, .55, .29, .15, .4, .26, .25, 1, .33, .22, .27]
+ DURATION_BANK = [1, 1, 1, .97, 1, 1, 1, 1, 1, 1, .65, .86, 1, 1, .82, 1, .78]
+ SILENCE_BANK = [.07, 0, .17, .28, .21, 0, .17, .17, .2, .32, .33, .08, .06, .11, .11, .06, .37]
+ PATTERN_BANK = [0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,3]
SCALE_BANK = [MAJOR, NATURAL_MINOR, LYDIEN, HARMONIC_MINOR, MYXOLYDIEN]
chooseDefault = random.randint(0,4)
diff --git a/common/Util/.CSoundClient.py.swp b/common/Util/.CSoundClient.py.swp
deleted file mode 100644
index b062a0b..0000000
--- a/common/Util/.CSoundClient.py.swp
+++ /dev/null
Binary files differ