|
|
|
@ -36,7 +36,7 @@ minSwing = 0
@@ -36,7 +36,7 @@ minSwing = 0
|
|
|
|
|
maxSwing = 0.1 |
|
|
|
|
|
|
|
|
|
# force everything to happen within 1 bar |
|
|
|
|
oneBar = random.choice([0,1,1,1,1,1]) |
|
|
|
|
oneBar = random.choice([0,1]) |
|
|
|
|
|
|
|
|
|
# style - techno, electro |
|
|
|
|
styleChoices = ["techno","techno","electro"] |
|
|
|
@ -174,7 +174,8 @@ print("-- hex seed: "+seed)
@@ -174,7 +174,8 @@ print("-- hex seed: "+seed)
|
|
|
|
|
print("-- decimal seed: "+str(decimalSeed)) |
|
|
|
|
print("-- style: "+str(style)) |
|
|
|
|
print("-- generated at "+str(time.time())) |
|
|
|
|
print("-- "+scriptName+" v"+str(version)) |
|
|
|
|
print("-- created with "+scriptName+" v"+str(version)) |
|
|
|
|
print("-- by Chris Beckstrom - chrisbeckstrom.com") |
|
|
|
|
print("") |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -618,7 +619,7 @@ def stut():
@@ -618,7 +619,7 @@ def stut():
|
|
|
|
|
stut REPEATS VOLUME TIME |
|
|
|
|
""" |
|
|
|
|
# choose how many repeats |
|
|
|
|
repeats = random.choice([1,1,1,1,1,1,2,2,2,3,3,3,4,4,4,4,4,5]) |
|
|
|
|
repeats = random.choice([1,1,1,1,1,1,2,2,2,3,3,3]) |
|
|
|
|
time = random.choice([0.125,0.125,0.125,0.0625,0.0625]) |
|
|
|
|
return("stut "+str(repeats)+" 1 \""+str(time)+"\"") |
|
|
|
|
|
|
|
|
@ -718,7 +719,7 @@ cpPats=["[~t]*2","[t(3,8)]","[[~~~t][~t]]*2","[~t~t]","[~t~t]","[[~~~t]~~~]"]
@@ -718,7 +719,7 @@ cpPats=["[~t]*2","[t(3,8)]","[[~~~t][~t]]*2","[~t~t]","[~t~t]","[[~~~t]~~~]"]
|
|
|
|
|
cyPats=["[t*4]","[t*8]","[t~~~]","[t~~[~~~t]]","[<t~~~>~~~]"] |
|
|
|
|
|
|
|
|
|
# a collection of misc rhythms |
|
|
|
|
rhythmLibrary = ["[1*4]","[1*8]","[1*16]","[01]*2","[0101]","[1*16]","[1*16?]","[111111[1001][01]]/2","[{100}%16]","[{101011010101}%16]","[{10100}%16]","[{10001}%16]","[{10101}%16]","[{1001010}%16]","[{1011010}%16]","[{10101000100}%16]","[{10101001010}%16]","[{10010010010}%16]","[{1010101001010}%16]","[{1001001001010}%16]","[11*2]*4","[100000<0100>000100<01>00]","[1[10000001]]","[1111*2]","[[0001][01]]*2","[0010000100000001]","[[0001][01]]*2","[[01]1[1001][01]]","[[01]1[1001][0001]]","[11000010]*2","[[0001]000]","[[0001]]*4"] |
|
|
|
|
rhythmLibrary = ["[1*4]","[1*8]","[01]*2","[0101]","[1*16]","[1*16?]","[111111[1001][01]]/2","[{100}%16]","[{101011010101}%16]","[{10100}%16]","[{10001}%16]","[{10101}%16]","[{1001010}%16]","[{1011010}%16]","[{10101000100}%16]","[{10101001010}%16]","[{10010010010}%16]","[{1010101001010}%16]","[{1001001001010}%16]","[11*2]*4","[100000<0100>000100<01>00]","[1[10000001]]","[1111*2]","[[0001][01]]*2","[0010000100000001]","[[0001][01]]*2","[[01]1[1001][01]]","[[01]1[1001][0001]]","[11000010]*2","[[0001]000]","[[0001]]*4"] |
|
|
|
|
|
|
|
|
|
############### It's assemble time!! ################### |
|
|
|
|
|
|
|
|
@ -726,6 +727,7 @@ print("do")
@@ -726,6 +727,7 @@ print("do")
|
|
|
|
|
#print("") |
|
|
|
|
|
|
|
|
|
# create "let" statements |
|
|
|
|
print(indent+str(bpm)) |
|
|
|
|
print(indent+"let fourToTheFloor = 1 -- set to 0 to hear it") |
|
|
|
|
print(indent+" -- extra stuff") |
|
|
|
|
print(indent+" extraCP = \"[0]\"") |
|
|
|
@ -757,7 +759,7 @@ for i in range(1,8):
@@ -757,7 +759,7 @@ for i in range(1,8):
|
|
|
|
|
# a list of things to do to patterns to make them more interesting |
|
|
|
|
# these happen BEFORE struct, note, etc. |
|
|
|
|
#interestingThings = [stut(),bite(),"rev",scramble(),offset()] |
|
|
|
|
interestingThings = [stut(),"rev",scramble(),offset(),degrade()] |
|
|
|
|
interestingThings = [stut(),"rev",scramble(),offset(),degrade(),"rev",degrade()] |
|
|
|
|
def funThings(): |
|
|
|
|
wholeEnchilada = "" |
|
|
|
|
# add between 1 and 4 "fun" things |
|
|
|
@ -838,9 +840,9 @@ for i in percNames:
@@ -838,9 +840,9 @@ for i in percNames:
|
|
|
|
|
|
|
|
|
|
# change the rChoice weights based on style |
|
|
|
|
if (style == "techno"): |
|
|
|
|
rChoice = random.choice([0,0,0,0,0,0,0,0,0,2,2,2,2,3,3,3,3,3,3,3,3,3,4]) |
|
|
|
|
rChoice = random.choice([0,0,0,0,0,0,0,0,0,2,2,2,2,3,3,3,3,3,3,3,3,3]) |
|
|
|
|
else: # style == "electro" |
|
|
|
|
rChoice = random.choice([1,1,1,1,1,1,1,1,1,3,3,3,3,3,3,2,4]) |
|
|
|
|
rChoice = random.choice([1,1,1,1,1,1,1,1,1,3,3,3,3,3,3,2]) |
|
|
|
|
|
|
|
|
|
rhythm = "" # placeholder for the rhythm |
|
|
|
|
if (rChoice == 0): |
|
|
|
@ -1072,7 +1074,7 @@ for i in range(padCount):
@@ -1072,7 +1074,7 @@ for i in range(padCount):
|
|
|
|
|
pads = "["+ random.choice(padNotesList)+","+random.choice(padNotesList)+","+random.choice(padNotesList)+","+random.choice(padNotesList)+"]"+str(pads) |
|
|
|
|
|
|
|
|
|
# should we even play the pads? |
|
|
|
|
if (random.randint(0,10) > 2): |
|
|
|
|
if (random.randint(0,10) > 1): |
|
|
|
|
print(indent+indent+"degradeBy 0 ") |
|
|
|
|
else: |
|
|
|
|
print(indent+indent+"degradeBy 1 ") |
|
|
|
|