Mindket

Multitrack Midi Music Generator

Newversion 1 · updated

Overview

Generates multitrack MIDI music with a language model trained on 8-bar pieces. Runs in the browser as a Docker app, for musicians and developers who want to try AI-made MIDI.

Multitrack Midi Music Generator is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Docker
  • Python and pip, for the huggingface_hub package that gives you the hf command
  • Disk space for the repository, which holds 11 files
Runs in
  • A web browser, on the Space's page at Hugging Face
  • Windows, with Docker
  • macOS, with Docker
  • Linux, with Docker
Start with
pip install -U huggingface_hub
hf download juancopi81/multitrack-midi-music-generator --repo-type space --local-dir multitrack-midi-music-generator
cd multitrack-midi-music-generator

Platform

WindowsOperating system
DockerContainer
macOSOperating system
LinuxOperating system

About

What it is

Multitrack Midi Music Generator makes music as MIDI, with several tracks at once. It uses two models named in the Space, a tokenizer and a language model whose names mention 8 bars. The Space runs on Hugging Face, so you can try it in a browser with nothing to install.

Who it suits

Musicians and hobbyists who want AI-made MIDI to play with, and developers who want to study a small Python music app packaged in Docker.

IndustryWho uses itHow they use itExample
MusicComposers and hobbyistsGenerate MIDI pieces as starting ideasCreate a piece and open it in a music editor
GamesIndie developersGet quick musical sketches to try in a projectGenerate a short piece and test it in a prototype
Machine learningResearchersLook at how a tokenizer and language model make musicRead model.py and the tokenizer files
SoftwareDevelopersBuild and run the Docker image locallyRun the container and publish port 7860

Anyone who needs finished audio recordings rather than MIDI can skip it.

Where to use it

It runs in these places.

  • A web browser, on the Space's page at Hugging Face
  • Windows, with Docker
  • macOS, with Docker
  • Linux, with Docker
Use caseWhoWhat they get back
Generate a multitrack pieceMusiciansA MIDI piece with several tracks
Collect ideas for a projectGame and video makersShort musical sketches in MIDI form
Study the codeDevelopersA local copy with main.py and model.py to read

How to set it up

Using the Space online needs only a browser. A copy on your own computer needs the following.

  • Docker
  • Python and pip, for the huggingface_hub package that gives you the hf command
  • Disk space for the repository, which holds 11 files
  1. Install the huggingface_hub package.
  2. Download the Space's files into a local folder.
  3. Move into that folder.
  4. Build the Docker image and name it multitrack-midi-music-generator.
  5. Run the container with port 7860 published to your computer.
pip install -U huggingface_hub
hf download juancopi81/multitrack-midi-music-generator --repo-type space --local-dir multitrack-midi-music-generator
cd multitrack-midi-music-generator
docker build -t multitrack-midi-music-generator .
docker run -it -p 7860:7860 multitrack-midi-music-generator

How to use it

Open the Space's page on Hugging Face, or start the container and open your browser on port 7860 of your computer. Then ask it to generate a piece and listen to or download the result.

docker run -it -p 7860:7860 multitrack-midi-music-generator
ToolWhat it does
main.pyThe main file of the app
model.pyHolds the code that works with the music model
string_to_notes.pyConverts the model's text output into notes
docker buildBuilds the image from the Dockerfile
docker runStarts the container and publishes port 7860

Example

You start the container, open the page on port 7860 and generate a piece. You get back a multitrack MIDI result that you can open in a MIDI editor or player.

For newcomers and experts

MIDI is a file of notes and timing, not recorded sound, so any music program can play it with the instrument you pick. The first small thing to try is the online Space, with one generated piece.

The model names point to a tokenizer for 8-bar pieces and a language model trained for 40 epochs. The model writes music as text tokens, and a helper turns them into notes. The repository splits this across constants.py, model.py, utils.py and string_to_notes.py.

  1. You ask for a piece
  2. The language model writes music tokens
  3. string_to_notes.py turns them into notes
  4. The page returns a multitrack MIDI piece

Good to know

The Space states no usage limits, so treat it as a demo you can read and adapt.

  • License: mit
  • Cost to run: none named
  • Data it reaches: the Space files and the two model files that Hugging Face supplies
  • Hardware: the Space is set to cpu-basic at Hugging Face, and what your own computer needs is not stated

README and files

README

Multitrack Midi Music Generator

Generates multitrack MIDI music with a language model trained on 8-bar pieces. Runs in the browser as a Docker app, for musicians and developers who want to try AI-made MIDI.

Made by juancopi81 on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: Multitrack Midi Music Generator makes music as MIDI, with several tracks at once. It uses two models named in the Space, a tokenizer and a language model whose names mention 8 bars. The Space runs on Hugging Face, so you can try it in a browser with nothing to install.

Who it suits: Musicians and hobbyists who want AI-made MIDI to play with, and developers who want to study a small Python music app packaged in Docker.

Industry | Who uses it | How they use it | Example
Music | Composers and hobbyists | Generate MIDI pieces as starting ideas | Create a piece and open it in a music editor
Games | Indie developers | Get quick musical sketches to try in a project | Generate a short piece and test it in a prototype
Machine learning | Researchers | Look at how a tokenizer and language model make music | Read model.py and the tokenizer files
Software | Developers | Build and run the Docker image locally | Run the container and publish port 7860

Anyone who needs finished audio recordings rather than MIDI can skip it.

Where to use it: It runs in these places.

  • A web browser, on the Space's page at Hugging Face
  • Windows, with Docker
  • macOS, with Docker
  • Linux, with Docker
Use case | Who | What they get back
Generate a multitrack piece | Musicians | A MIDI piece with several tracks
Collect ideas for a project | Game and video makers | Short musical sketches in MIDI form
Study the code | Developers | A local copy with main.py and model.py to read

How to set it up: Using the Space online needs only a browser. A copy on your own computer needs the following.

  • Docker
  • Python and pip, for the huggingface_hub package that gives you the hf command
  • Disk space for the repository, which holds 11 files
  1. Install the huggingface_hub package.
  2. Download the Space's files into a local folder.
  3. Move into that folder.
  4. Build the Docker image and name it multitrack-midi-music-generator.
  5. Run the container with port 7860 published to your computer.
pip install -U huggingface_hub
hf download juancopi81/multitrack-midi-music-generator --repo-type space --local-dir multitrack-midi-music-generator
cd multitrack-midi-music-generator
docker build -t multitrack-midi-music-generator .
docker run -it -p 7860:7860 multitrack-midi-music-generator

How to use it: Open the Space's page on Hugging Face, or start the container and open your browser on port 7860 of your computer. Then ask it to generate a piece and listen to or download the result.

docker run -it -p 7860:7860 multitrack-midi-music-generator
Tool | What it does
main.py | The main file of the app
model.py | Holds the code that works with the music model
string_to_notes.py | Converts the model's text output into notes
docker build | Builds the image from the Dockerfile
docker run | Starts the container and publishes port 7860

Example: You start the container, open the page on port 7860 and generate a piece. You get back a multitrack MIDI result that you can open in a MIDI editor or player.

For newcomers and experts: MIDI is a file of notes and timing, not recorded sound, so any music program can play it with the instrument you pick. The first small thing to try is the online Space, with one generated piece.

The model names point to a tokenizer for 8-bar pieces and a language model trained for 40 epochs. The model writes music as text tokens, and a helper turns them into notes. The repository splits this across constants.py, model.py, utils.py and string_to_notes.py.

You ask for a piece
The language model writes music tokens
string_to_notes.py turns them into notes
The page returns a multitrack MIDI piece

Good to know: The Space states no usage limits, so treat it as a demo you can read and adapt.

  • License: mit
  • Cost to run: none named
  • Data it reaches: the Space files and the two model files that Hugging Face supplies
  • Hardware: the Space is set to cpu-basic at Hugging Face, and what your own computer needs is not stated

On Hugging Face, 13 November 2026

  • Likes: 130
  • Built with: docker
  • License: mit

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
Multitrack Midi Music Generator This page130dockermit
Zero GPU SpacesShares docker985dockermit
KimodoShares docker340dockerapache-2.0
Harness LeaderboardShares docker323dockerapache-2.0
FlowiseShares docker132dockermit
MuseTalkDemoShares docker78dockercreativeml-openrail-m
Numbers as Mindket last read them, on 2026-11-12.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

upscaler

uwg · Kit

Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…

New

Pixel Art XL

nerijs · Kit

A pixel art style add-on for Stable Diffusion XL that turns text prompts into pixel-style images, with an optional LCM LoRA for faster runs. For game makers, d…

New

VibeVoice-1.5B

microsoft · Kit

Turns written conversations into spoken audio with up to four speakers and about 90 minutes of speech, an open Microsoft text-to-speech model for research on p…

New

Similar in Developer

See all in Developer

voicetut-egyptian-tashkeel

masterofaudio2077 · Kit

Reads Egyptian Arabic text aloud and follows the short vowel marks you write into it. A fine-tune of VoiceTut-TTS that keeps its 19 built-in voices and voice c…

New

Runs Meta's Llama 3.1 8B Instruct chat model in 4-bit AWQ form, so it fits on a GPU with about 4 GiB of free memory for the weights. For developers who want a…

New

Ru-Jev

besktech · Kit

Scores a Russian-first decision from a context and a list of options, giving a probability for yes/no, choice or rating questions. Runs on a plain CPU, for tea…

New