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.12.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.12-py3-none-any.whl (176.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: giantmusictransformer-24.12.12.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.12.tar.gz
Algorithm Hash digest
SHA256 d81b7f70618a793a570ea133a1e1c189daa7ac7ab7bd62c41f564938fb3a7518
MD5 01fd9f5bb73de2b30d07b9d0e408695a
BLAKE2b-256 b4a788b5197e3f18985d5a483370fed84bb2809e0220f95db86f1b7b59d0739f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for giantmusictransformer-24.12.12-py3-none-any.whl
Algorithm Hash digest
SHA256 980ad5ac1c16012eead6791c4a88bb8ae6512547d290347936ba5cfcd577e7d0
MD5 ffbf627a31e9c3bf98e7c83fd8597e31
BLAKE2b-256 bf5b8b5d85c6ed18a1584045a5b0c4c92759b64e861665e45e726f2480a4574d

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