Skip to main content

Ultra-fast and very well fitted solo Piano music transformer

Project description

Monster Piano Transformer

Ultra-fast and very well fitted solo Piano music transformer

Monster-Piano-Logo


In the heart of a grand piano black and blue,  
A fuzzy monster with eyes of yellow hue,  
Its fingers dance upon the ivory keys,  
Weaving melodies that soothe and please.  

Musical notes float like leaves on breeze,  
Harmony fills the air with gentle ease,  
Each key stroke a word in a song unsung,  
A symphony of joy that sets the heart alight, free and light.  

The monster plays with such delight,  
Lost in the rhythm, lost in the light,  
Its fur a blur as it moves with grace,  
A pianist born from a whimsical place.  

Monster Piano, a title it bears,  
A fusion of art and melodic airs,  
Where creativity and music blend,  
In this magical concert that never ends.  

Let the monster's music fill the air,  
And wash away our every care,  
For in its song, we find repose,  
And in its rhythm, our spirits glow.

Install

pip install monsterpianotransformer

(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 Monster Piano Transformer as mpt
import monsterpianotransformer as mpt

# Load desired Monster Piano Transformer model
# There are several to choose from...
model = mpt.load_model()

# Get sample seed MIDI path
sample_midi_path = mpt.get_sample_midi_files()[6][1]

# Load seed MIDI
input_tokens = mpt.midi_to_tokens(sample_midi_path)

# Generate seed MIDI continuation
output_tokens = mpt.generate(model, input_tokens, 600, return_prime=True)

# Save output to MIDI
mpt.tokens_to_midi(output_tokens[0])

Project Los Angeles

Tegridy Code 2025

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

monsterpianotransformer-25.1.22.tar.gz (587.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monsterpianotransformer-25.1.22-py3-none-any.whl (590.2 kB view details)

Uploaded Python 3

File details

Details for the file monsterpianotransformer-25.1.22.tar.gz.

File metadata

File hashes

Hashes for monsterpianotransformer-25.1.22.tar.gz
Algorithm Hash digest
SHA256 aaa2d3f1a90eabebc8fc67f8472df5ea0841cb2bebabe71efb210360c3830f1e
MD5 7c6aa0d17da175fb1e0e7512351d2ac0
BLAKE2b-256 b2249d35d6cdda732ce6cd38aa708b745d4da86f13903fc038577fed7b49d4da

See more details on using hashes here.

File details

Details for the file monsterpianotransformer-25.1.22-py3-none-any.whl.

File metadata

File hashes

Hashes for monsterpianotransformer-25.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 acddf12166a4b4b31a46474d4f20c9c25ba68afc4950582f9d47eb56e8099c45
MD5 98c26c85f4978b8c3c6945060479c77e
BLAKE2b-256 5f455aba455d3481c0fe1b593825c1f677bd05869dd668cb15fdba0497e14d77

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