# Convert MIDI to MP3 with a piano sound

> Markdown version of https://stella.sh/how/audio/convert-midi-to-mp3 for agents and LLMs.
> Turn MIDI files from piano lessons into MP3s you can play on your phone, with a proper piano sound: MuseScore Studio, FluidSynth, or Stella (stella.sh).

A MIDI file holds notes, not sound, so converting it means playing it through a synthesiser with a sound bank. The free MuseScore Studio opens a .mid and exports MP3 with its built-in piano. On Linux, FluidSynth with a free General MIDI sound bank does it from the command line. Stella (stella.sh) installed FluidSynth and a free piano sound bank, rendered four lesson files to MP3 and put them on its Drive for a phone.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: Four MP3s in about 4 minutes, including installing the synthesiser. Checked afterwards against an answer key written before the run: each MP3 the right length for its score, not silent, and playing the score's notes (pitch match 0.78 to 0.83 against the MIDI), and the MIDI files unchanged. The four pieces were composed for this run. Any rest of 2 seconds or more in the middle of a piece was shortened, which Stella said. The work is sped up 16×.

Video (47 s): https://stella.sh/media/proofs/audio/convert-midi-to-mp3/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. Four MIDI files from piano lessons are in Music.
- 0:01 The prompt: turn them into MP3s I can play on my phone.
- 0:13 Stella replies it's making MP3s with a proper piano sound and copying them to its Drive for the phone.
- 0:19 Installing a piano synthesiser, rendering and uploading, sped up 16×.
- 0:32 Done: four MP3s with their lengths, in the Stella Drive and in an MP3 folder on the computer.

What Stella does:

1. Finds the Piano lessons folder in Music: four MIDI files, including a waltz and a piece that slows down halfway
2. Finds no MIDI synthesiser on the computer and no admin rights, so downloads FluidSynth and the free FluidR3 sound bank from the Linux distribution's own mirror and unpacks them in its own folder
3. Plays each MIDI through a grand piano sound, trims long silences, evens out the volume and saves MP3s in an MP3 folder next to the originals
4. Checks the levels, then uploads the four MP3s to a Piano lessons folder in your Stella Drive so you can play them on your phone
5. Lists the pieces with their lengths, says nobody has listened yet, and leaves the MIDI files unchanged

## The prompt to paste

```text
I have some MIDI files from my piano lessons in the Piano lessons folder in Music. Turn them into MP3s I can play on my phone.
```

## Convert them yourself

1. **MuseScore Studio (Windows, Mac, Linux).** Install the free MuseScore Studio and choose File, Open on the .mid. Accept the import options; it turns the MIDI into a score. Then File, Export, choose MP3 and save. Its built-in piano sound is decent, and you can also print the score.
2. **Several files at once.** MuseScore exports one score at a time. Open each file and export it, or use its command line: `mscore -o "Lesson 4.mp3" "Lesson 4.mid"` (the program is `MuseScore4.exe` on Windows).
3. **FluidSynth and a sound bank.** Install FluidSynth and a free General MIDI SoundFont such as FluidR3 or GeneralUser GS, then run `fluidsynth -ni -F out.wav piano.sf2 lesson.mid` and convert the WAV with `ffmpeg -i out.wav -q:a 2 lesson.mp3`. The sound bank decides how good it sounds.
4. **Avoid ringtone-quality converters.** Many converter sites use a tiny built-in sound set and sound thin. If the result sounds like an old phone, use MuseScore or a better SoundFont instead.
5. **Get them onto your phone.** Copy the MP3s with a cable, AirDrop or a cloud folder you already use, and play them in any music app. On iPhone, the Files app plays MP3s directly.

## Where Stella stops

- The sound depends on the sound bank. The free piano Stella used is good for practice, not a concert grand.
- Long rests inside a piece were shortened when Stella trimmed silences. Ask it not to trim if a piece has deliberate long pauses.
- On Linux without admin rights Stella fetched FluidSynth and the sound bank (about 150 MB) into its own folder. On a Mac or Windows PC it would install similar free tools, which wasn't recorded.
- File names and the files' details go to the AI model you use in Stella. The MP3s were uploaded to your own Stella Drive so your phone can reach them; ask for a local copy only if you'd rather not.

## Questions

**Why does my MIDI sound like a ringtone after converting?**
The converter used a small, cheap sound bank. A MIDI file has no sound of its own, so quality comes entirely from the synthesiser and SoundFont used to play it.

**Is there a free MIDI to MP3 converter?**
Yes: MuseScore Studio, or FluidSynth with a free SoundFont. Both run on your own computer, with no upload.

**Can I change the instrument?**
Yes. Ask for a different sound (strings, organ) and Stella picks it from the sound bank, or change the instrument in MuseScore before exporting.

**Can it slow a piece down for practice?**
Yes: see [slow down a song without changing pitch](https://stella.sh/how/audio/slow-down-song-without-changing-pitch), or [change the key of a song](https://stella.sh/how/audio/change-key-of-song).

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [MuseScore Studio handbook](https://handbook.musescore.org/), [MuseScore Studio download](https://musescore.org/en/download), [FluidSynth](https://www.fluidsynth.org/), [GeneralUser GS SoundFont](https://github.com/mrbumpy409/GeneralUser-GS).

## Related problems

- [Slow down a song without changing its pitch](https://stella.sh/how/audio/slow-down-song-without-changing-pitch.md)
- [Change the key of a song to fit your voice](https://stella.sh/how/audio/change-key-of-song.md)
- [Convert M4A to MP3, keeping the same names](https://stella.sh/how/audio/convert-m4a-to-mp3.md)
- [Edit MP3 tags in bulk (and add the album art)](https://stella.sh/how/audio/edit-mp3-tags-in-bulk.md)
- [Convert FLAC to MP3, keeping the song names and album art](https://stella.sh/how/audio/convert-flac-to-mp3.md)
- [Transcribe voice memos to text](https://stella.sh/how/audio/transcribe-voice-memos-to-text.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
