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

Uploaded Python 3

File details

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

File metadata

  • Download URL: giantmusictransformer-24.12.23.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.23.tar.gz
Algorithm Hash digest
SHA256 21e705f33ebfb2b2c41cabfd6b043acc7204ea0d9c9f25634cd525d2b9a812eb
MD5 a3360af747ff25050d34ea32564d3e54
BLAKE2b-256 2572806da54b18544fec708156c4cb7cd6b9a1370fd763135ef14f5b09f758aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for giantmusictransformer-24.12.23-py3-none-any.whl
Algorithm Hash digest
SHA256 650450fd74e5d18666b78a1eb7b542ed138c6bb1074464f677414fc7a8a70af7
MD5 dac91a99d675715c81a74feadebcd02b
BLAKE2b-256 50033945a81558362e2fd18f2e0753eb30c6952fcd2869bec1ad6f9f9b877326

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