Kero Kero Bonito Flamingo Midi -

# Write to file with open("flamingo_kkb_style.mid", "wb") as f: midi.writeFile(f)

# Rhythm: list of durations (quarter=1.0, eighth=0.5) rhythm = [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1.0, 0.5, 0.5, 0.5, 1.0] Kero Kero Bonito Flamingo Midi

midi = MIDIFile(1) midi.addTempo(track, time, tempo) # Write to file with open("flamingo_kkb_style

# Create a MIDI file with 1 track track = 0 channel = 0 time = 0 # start at beat 0 duration = 0.5 # eighth note default tempo = 128 # BPM (KKB style is upbeat) # Write to file with open("flamingo_kkb_style.mid"

from midiutil import MIDIFile import random