You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importgiantmusictransformerasgmt# Load desired Giant Music Transformer model# There are several to choose from...model=gmt.load_model('medium')
# Get sample seed MIDI pathsample_midi_path=gmt.get_sample_midi_files()[6][1]
# Load seed MIDIinput_tokens=gmt.midi_to_tokens(sample_midi_path)
# Generate seed MIDI continuationoutput_tokens=gmt.generate(model, input_tokens, 600, return_prime=True)
# Save output to MIDIgmt.tokens_to_midi(output_tokens[0])