diff --git a/blues_solo.py b/blues_solo.py index 45791ad..9f0b19c 100644 --- a/blues_solo.py +++ b/blues_solo.py @@ -31,6 +31,19 @@ def add_note(out, instr, key_num, duration, bpm, volume): blues_scale = [25, 28, 30, 31, 32, 35, 37, 40, 42, 43, 44, 47, 49, 52, 54, 55, 56, 59, 61] beats_per_minute = 45 # Let's make a slow blues solo -add_note(solo, bass, blues_scale[0], 1.0, beats_per_minute, 1.0) - -solo >> "blues_solo.wav" \ No newline at end of file +# add_note(solo, bass, blues_scale[0], 1.0, beats_per_minute, 1.0) +curr_note = 0 +add_note(solo, bass, blues_scale[curr_note], 1.0, beats_per_minute, 1.0) + +licks = [ [ [1,0.5], [1,0.5], [1, 0.5], [1, 0.5] ], [ [-1, 0.5], [-1, 0.5], [-1, 0.5], [-1, 0.5] ], [ [1, 0.5], [3, 0.5], [-4, 0.5], [-1, 0.5] ] ] +short_note = False +for i in range(len(licks)): + lick = choice(licks) + for note in lick: + curr_note += note[0] + if curr_note >= len(blues_scale): + curr_note = curr_note % len(blues_scale) + add_note(solo, bass, blues_scale[curr_note], note[1] * (1.2 - 0.4 * int(short_note)), beats_per_minute, 1.0) + short_note = not short_note + +solo >> "blues_solo.wav" diff --git a/blues_solo.wav b/blues_solo.wav new file mode 100644 index 0000000..44d3bd2 Binary files /dev/null and b/blues_solo.wav differ