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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21e705f33ebfb2b2c41cabfd6b043acc7204ea0d9c9f25634cd525d2b9a812eb
|
|
| MD5 |
a3360af747ff25050d34ea32564d3e54
|
|
| BLAKE2b-256 |
2572806da54b18544fec708156c4cb7cd6b9a1370fd763135ef14f5b09f758aa
|
File details
Details for the file giantmusictransformer-24.12.23-py3-none-any.whl.
File metadata
- Download URL: giantmusictransformer-24.12.23-py3-none-any.whl
- Upload date:
- Size: 177.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
650450fd74e5d18666b78a1eb7b542ed138c6bb1074464f677414fc7a8a70af7
|
|
| MD5 |
dac91a99d675715c81a74feadebcd02b
|
|
| BLAKE2b-256 |
50033945a81558362e2fd18f2e0753eb30c6952fcd2869bec1ad6f9f9b877326
|