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.22.tar.gz (169.3 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.22-py3-none-any.whl (177.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: giantmusictransformer-24.12.22.tar.gz
  • Upload date:
  • Size: 169.3 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.22.tar.gz
Algorithm Hash digest
SHA256 22569690016acd1cfb7a7064b596fcfda460b8acffd36180eda017bf8aa3ceca
MD5 c5d83ffea5f2eb1394ebbcf77d62036b
BLAKE2b-256 789da3643bd88d9a72900a997a853e54722efd94a4685d922633c8b9a2f40ffa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for giantmusictransformer-24.12.22-py3-none-any.whl
Algorithm Hash digest
SHA256 fe0cc8b88fb5bc0b2732b59e8a98c9f0c2f5230fd6dd0a690381f572c306f14d
MD5 afac7392d186252ad8ee186f1eddc63c
BLAKE2b-256 9188cbe206ccda28cc9dd718fbc522cdaa33fa227e55309dc465b017a31b32f1

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