Skip to main content

Fast multi-instrumental music transformer with true full MIDI instruments range, efficient encoding, octo-velocity and outro tokens

Project description

Giant Music Transformer

Giant Music Transformer as a PyPi package

Giant-Music-Transformer-Artwork (10)


Install

pip install giantmusictransformer

(Optional) FluidSynth for MIDI to Audio functinality

Ubuntu or Debian
sudo apt-get install fluidsynth
Windows (with Chocolatey)
choco install fluidsynth

Quick-start use example

import giantmusictransformer as gmt

# Load desired Giant Music Transformer model
# There are several to choose from...
model = gmt.load_model('medium')

# Get sample seed MIDI path
sample_midi_path = gmt.get_sample_midi_files()[6][1]

# Load seed MIDI
input_tokens = gmt.midi_to_tokens(sample_midi_path)

# Generate seed MIDI continuation
output_tokens = gmt.generate(model, input_tokens, 600, return_prime=True)

# Save output to MIDI
gmt.tokens_to_midi(output_tokens[0])

Project Los Angeles

Tegridy Code 2024

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

giantmusictransformer-24.12.21.tar.gz (169.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

giantmusictransformer-24.12.21-py3-none-any.whl (177.2 kB view details)

Uploaded Python 3

File details

Details for the file giantmusictransformer-24.12.21.tar.gz.

File metadata

  • Download URL: giantmusictransformer-24.12.21.tar.gz
  • Upload date:
  • Size: 169.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for giantmusictransformer-24.12.21.tar.gz
Algorithm Hash digest
SHA256 a7f7fa798e4c7e32cc16d40ed69077c3f82bb14bca1916f65b5de86d706287af
MD5 871c1d2576a70b2c67f835ffeb5b81ee
BLAKE2b-256 88293fd7d52580f7314026fee74c1d59c04e6038be705953d6856c8501273786

See more details on using hashes here.

File details

Details for the file giantmusictransformer-24.12.21-py3-none-any.whl.

File metadata

File hashes

Hashes for giantmusictransformer-24.12.21-py3-none-any.whl
Algorithm Hash digest
SHA256 ac1b7f8ef9228be7fe97bb6166d93b94ed80cafa1ff931e6b1c0913a77d0ac84
MD5 7279fcb1707849b9310d15f6ac3f37d3
BLAKE2b-256 a4286fa490d7a67831597ec102cf3b2f12cbc0836e1c95704cc17914a13afff0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page