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.19.tar.gz (586.5 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.19-py3-none-any.whl (589.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for monsterpianotransformer-25.1.19.tar.gz
Algorithm Hash digest
SHA256 4c995f78c4d20e2a976e83db04328407374d17ddb1035cb5757ada408f822254
MD5 faa2afb61e02605f6c1a04f6ffc13076
BLAKE2b-256 b60905cb54fc0cd2eb57494295c6441f537672c8b620bb18b8984abeee2f9d5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for monsterpianotransformer-25.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 ac8993d87ca9f1edc0a554b5c625b9371d3de374400041c91a6deb121b4ac241
MD5 f6c7e6dd834e34c174a53a0662abe78d
BLAKE2b-256 2c966b0de574019d9f28cb50af079795482e7cf3692d2ec74fe85fe3fe6b5ed8

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