Kero Kero Bonito Flamingo Midi Info

# 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]

# Add melody to track (track 0, channel 0, volume 100) for i, pitch in enumerate(melody): midi.addNote(track, channel, pitch, time + sum(rhythm[:i]), rhythm[i], 100) Kero Kero Bonito Flamingo Midi

# 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) # Rhythm: list of durations (quarter=1