Mindket

Midi Music Generator

Newversion 1 · updated

Overview

Composes MIDI music with AI music models, in the browser or on your own computer. For musicians, hobbyists and developers who want machine-made tunes in a format they can edit.

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
  • Python on your computer
  • The Python packages listed in requirements.txt
  • The system packages listed in packages.txt, which the Space installs with apt-get
  • The huggingface_hub package, which gives you the hf command
Runs in
  • A web browser, on the Space's page at Hugging Face, with nothing to install
  • Windows, macOS or Linux with Python, from a copy you download
  • Docker, since the repository includes a Dockerfile
Start with
pip install -U huggingface_hub
hf download skytnt/midi-composer --repo-type space --local-dir midi-composer
cd midi-composer

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system
DockerContainer

About

What it is

Midi Music Generator is an AI music composer that works with MIDI, the note format used by music software. The Space names six models for it, including Music-Llama and a set of midi-model files from skytnt, one of which is a J-pop LoRA.

The repository holds Python files for a MIDI model, a tokenizer and a synthesizer, plus a javascript folder and an example folder.

Who it suits

Musicians and hobbyists who want tune ideas in MIDI, and developers who want to read how a MIDI model is built.

IndustryWho uses itHow they use itExample
MusicComposers and producersGet melody ideas to edit in their music softwareGenerate a tune and open the MIDI in an editor
GamesIndie developersMake placeholder background musicGenerate a few short pieces to test in a build
ResearchMusic AI researchersStudy MIDI language modelsCompare the named models on the same prompt

You can skip it if you need finished audio mastering, since the output is MIDI notes.

Where to use it

  • A web browser, on the Space's page at Hugging Face, with nothing to install
  • Windows, macOS or Linux with Python, from a copy you download
  • Docker, since the repository includes a Dockerfile
Use caseWhoWhat they get back
Compose a tuneMusiciansA generated piece in MIDI form
Try the example filesNewcomersResults from the bundled examples
Study the modelsDevelopersCode for a MIDI model, tokenizer and synthesizer

How to set it up

  • Python on your computer
  • The Python packages listed in requirements.txt
  • The system packages listed in packages.txt, which the Space installs with apt-get
  • The huggingface_hub package, which gives you the hf command
  1. Install the huggingface_hub package.
  2. Download the Space with the hf command.
  3. Move into the downloaded folder.
  4. Install the pinned Gradio version.
  5. Install the packages from requirements.txt.
  6. Start the ONNX version of the app with Python.
pip install -U huggingface_hub
hf download skytnt/midi-composer --repo-type space --local-dir midi-composer
cd midi-composer
pip install gradio==5.9.1
pip install -r requirements.txt
python app_onnx.py

How to use it

Open the Space's page in your browser, or start your own copy with the command below. Then use the controls on the page to compose a piece and listen to or save the result.

python app_onnx.py

Example

You open the Space and ask it to compose a piece. It generates a MIDI sequence, and you can take that MIDI into your own music software to edit or play it.

For newcomers and experts

If you are new to MIDI, open the page and generate one short piece with the default settings. Listen to it, then change one setting at a time to hear the difference.

If you know the field, the Space has two entry files, app.py and app_onnx.py, and the ONNX one is the main file. Several MIDI language models are named, so you can compare model sizes and styles. The Space runs on GPU hardware at Hugging Face.

  1. You open the Space or run app_onnx.py
  2. The MIDI tokenizer turns notes into tokens
  3. A named model generates new note tokens
  4. The result comes back as MIDI

Good to know

  • License: the Space lists apache-2
  • Cost to run: none named
  • Data it reaches: the settings and any MIDI you give it, plus the six models it names and the files in the Space
  • Not for: finished audio production, since the output is notes in MIDI form

README and files

README

Midi Music Generator

Composes MIDI music with AI music models, in the browser or on your own computer. For musicians, hobbyists and developers who want machine-made tunes in a format they can edit.

Made by skytnt 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: Midi Music Generator is an AI music composer that works with MIDI, the note format used by music software. The Space names six models for it, including Music-Llama and a set of midi-model files from skytnt, one of which is a J-pop LoRA.

The repository holds Python files for a MIDI model, a tokenizer and a synthesizer, plus a javascript folder and an example folder.

Who it suits: Musicians and hobbyists who want tune ideas in MIDI, and developers who want to read how a MIDI model is built.

Industry | Who uses it | How they use it | Example
Music | Composers and producers | Get melody ideas to edit in their music software | Generate a tune and open the MIDI in an editor
Games | Indie developers | Make placeholder background music | Generate a few short pieces to test in a build
Research | Music AI researchers | Study MIDI language models | Compare the named models on the same prompt

You can skip it if you need finished audio mastering, since the output is MIDI notes.

Where to use it:

  • A web browser, on the Space's page at Hugging Face, with nothing to install
  • Windows, macOS or Linux with Python, from a copy you download
  • Docker, since the repository includes a Dockerfile
Use case | Who | What they get back
Compose a tune | Musicians | A generated piece in MIDI form
Try the example files | Newcomers | Results from the bundled examples
Study the models | Developers | Code for a MIDI model, tokenizer and synthesizer

How to set it up:

  • Python on your computer
  • The Python packages listed in requirements.txt
  • The system packages listed in packages.txt, which the Space installs with apt-get
  • The huggingface_hub package, which gives you the hf command
  1. Install the huggingface_hub package.
  2. Download the Space with the hf command.
  3. Move into the downloaded folder.
  4. Install the pinned Gradio version.
  5. Install the packages from requirements.txt.
  6. Start the ONNX version of the app with Python.
pip install -U huggingface_hub
hf download skytnt/midi-composer --repo-type space --local-dir midi-composer
cd midi-composer
pip install gradio==5.9.1
pip install -r requirements.txt
python app_onnx.py

How to use it: Open the Space's page in your browser, or start your own copy with the command below. Then use the controls on the page to compose a piece and listen to or save the result.

python app_onnx.py

Example: You open the Space and ask it to compose a piece. It generates a MIDI sequence, and you can take that MIDI into your own music software to edit or play it.

For newcomers and experts: If you are new to MIDI, open the page and generate one short piece with the default settings. Listen to it, then change one setting at a time to hear the difference.

If you know the field, the Space has two entry files, app.py and app_onnx.py, and the ONNX one is the main file. Several MIDI language models are named, so you can compare model sizes and styles. The Space runs on GPU hardware at Hugging Face.

You open the Space or run app_onnx.py
The MIDI tokenizer turns notes into tokens
A named model generates new note tokens
The result comes back as MIDI

Good to know:

  • License: the Space lists apache-2
  • Cost to run: none named
  • Data it reaches: the settings and any MIDI you give it, plus the six models it names and the files in the Space
  • Not for: finished audio production, since the output is notes in MIDI form

On Hugging Face, 13 November 2026

  • Likes: 604
  • Built with: gradio
  • License: apache-2.0

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  4 KB

1 file, 4 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
Midi Music Generator This page604gradioapache-2.0
FLUX.1 [dev]Shares gradio9,583gradiomit
InstantIDShares gradio3,659gradioapache-2.0
Chat With Janus-Pro-7BShares gradio2,036gradiomit
PhotoMakerShares gradio1,960gradioapache-2.0
Z Image TurboShares gradio1,940gradioapache-2.0
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