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.13.tar.gz (168.5 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.13-py3-none-any.whl (176.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: giantmusictransformer-24.12.13.tar.gz
  • Upload date:
  • Size: 168.5 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.13.tar.gz
Algorithm Hash digest
SHA256 8bff49e54eafdbdfc5923c522689cbe5392136201393eef1a4f2ba53de7cdc8d
MD5 cd99a42663e04ddf9c3752511a28cc38
BLAKE2b-256 326576cbd5f32f7117806b82f9f5763c787a001624f8aac9e69736172ba3139f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for giantmusictransformer-24.12.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a03b8f67f8fc8757698e89e87e9baa2686e465d71719a48e95163e5295bc6a15
MD5 b967cbe89b68a5cded70527072e1411a
BLAKE2b-256 4fb124854b626361cc41e291217bdae0e5212f545e523fba90622cdbb9a0a241

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