MIDI Playback & Export
Transpose, play and export
Midi2Vidi lets you explore a MIDI performance, adjust how it plays and turn it into a video. You can also export an edited MIDI file for use elsewhere. Everything happens in your browser, so you don't need to upload your MIDI file to a rendering server.
The controls are simple enough for a quick export, but they also give you a useful starting point for tutorials, performance videos and more elaborate projects involving other footage, images and recordings.
On this page
- Load and explore a MIDI file
- Find your way around a performance
- Transpose and adjust the speed
- Choose which instruments to hear
- Prepare your video export
- Export a MIDI file
- What is chroma keying?
- Make a chroma-key video with Midi2Vidi
- An example: piano visualisation over an Armstrong slideshow
- Tips for getting a clean composite
Load and explore a MIDI file↑ Contents
Drop a MIDI file onto the keyboard area, or click the drop zone to choose one from your computer. Midi2Vidi reads the musical instructions and builds a visualisation of the performance.
MIDI is not a recording. It contains musical events such as notes, their timing and the instruments or channels that play them. Midi2Vidi uses that information to animate the keyboard, display the falling notes and, when Audio is enabled, synthesise the sound.
The instrument list lets you see the parts making up an arrangement. This is particularly useful when a MIDI file contains several instruments playing at once. Select the parts you want to concentrate on and use the playback controls to explore the passage.
For a closer look at the animated notes, keyboard lighting and visual effects, see Falling Notes.
Find your way around a performance↑ Contents
The timeline below the visualiser shows the progression of the piece. Time markers help you find a particular section, and you can click the timeline to seek to another point.
You don't have to replay an entire piece to revisit a difficult passage. Jump backwards, try a different speed and listen again. Maximise gives the piano and transport controls more room on screen when you want to focus on the performance rather than the Settings panel.
The keyboard is more than a decorative element. As notes play, the corresponding keys respond visually, helping you connect what you hear with the music's timing and register.
Transpose and adjust the speed↑ Contents
Two controls let you change how a piece is performed without editing the original MIDI file.
Transpose
Transpose shifts the pitched notes up or down in semitone steps. A value of +2, for example, moves a note from C to D. A value of -12 moves it down an octave. Percussion is excluded from this pitch shift.
Transposing can help when you want to explore a passage in another key, work with a different vocal range or create an alternate version of an arrangement.
Speed
The Speed control changes the playback rate. Slow a difficult passage to follow individual notes, or speed it up to review a longer piece more quickly.
Slowing a MIDI performance is different from slowing down a conventional audio recording. The underlying musical events can be rescheduled while the synthesiser continues producing notes from the selected instruments, rather than merely stretching an existing audio track.
For an export, check the resulting timing and sound in the preview before committing to a full render.

Transpose and Speed controls beneath the piano visualisation.
Choose which instruments to hear↑ Contents
A MIDI file may contain a piano, strings, bass, percussion and many other parts. Sometimes you want to hear the whole arrangement; sometimes you want to concentrate on one instrument.
With Audio enabled, Play all lets you choose between those approaches:
- Play all on - Hear the complete MIDI arrangement.
- Play all off - Hear only the instruments selected in the instrument list.

Select the instruments you want to focus on. With Play all disabled, only the selected parts are heard.
Percussion appears in the list alongside the other instruments, so a drum kit can be kept or silenced like any other part. It carries no colour, because percussion is never drawn on the keyboard: on the drum channel a note number selects an instrument - a kick, a snare, a cymbal - rather than a pitch.
The choice also affects the audio included in an exported video. It is useful for examining individual parts, making simplified demonstrations or presenting a piano part without the rest of an accompaniment.
The Soundfont setting controls the sounds used to play those MIDI instruments. You can use Midi2Vidi's default GeneralUser GS bank or select a compatible sound bank from your computer. For an explanation of how SoundFonts work, see Custom Soundfonts.
Prepare your video export↑ Contents
Export video turns your MIDI visualisation into an MP4 video, with audio if Audio is enabled.
Before exporting, consider where the video will be used. A standalone piano visualisation for YouTube has different requirements from a keyboard animation that will sit over photographs or other video footage.
Choose the frame size
Use Video width to set the export width in pixels. Choose a value that suits your intended project and the capabilities of your device. Larger frames contain more pixels and generally require more rendering and encoding work.
The size and proportions of the finished video also depend on the visualisation's layout settings. Preview the result to make sure the keyboard, note field and any effects fit the composition you want.
Decide whether to include audio
Turn Audio on when you want the video to contain the synthesised MIDI performance. The selected SoundFont determines its instrument sounds.
For a video that will use a separate piano recording, backing track or voice-over in an editor, you may prefer to export without synthesised audio. This avoids having two performances audible at once.
Allow time for rendering
Midi2Vidi renders and encodes video in your browser. The time required depends on the length of the piece, the frame size, the visual effects, the audio rendering and the performance of your computer and browser.
Some exports may run faster than the duration of the music, but that's not a guarantee for every file or device. Try a short section or a smaller output when experimenting with demanding settings.
Export a MIDI file↑ Contents
Export MIDI serves a different purpose from Export video. It produces a MIDI file containing the selected instruments and incorporates the transposition and speed adjustments you have chosen.
This is useful if you want to continue editing the music in another program, practise an arrangement in a different key or retain a modified MIDI version without turning it into a video.
An exported MIDI file still contains musical instructions, not rendered instrument audio or falling-note graphics. To share the visualisation itself, export a video instead.
What is chroma keying?↑ Contents
Chroma keying is a video-editing technique that makes a chosen colour transparent so that another image or video can show through it. The familiar example is a green screen: an editor identifies the green pixels and replaces them with footage on a layer underneath.
Midi2Vidi's Background colour control makes this technique accessible without filming anything against a physical green screen.
Set the background to a vivid, uniform colour, such as bright green, then export the animated keyboard and falling notes. In a video editor, remove that colour and place your own images or footage beneath the Midi2Vidi video.
The result is an animated piano performance integrated into a completely different visual setting.
Important: Choosing a green background does not itself make the MP4 transparent. The background is still part of the exported image. A video editor must remove it using a chroma-key effect.
Make a chroma-key video with Midi2Vidi↑ Contents
Here's a practical workflow that works with video editors supporting chroma key or colour key effects.
Step 1 - Prepare the MIDI visualisation
Load your MIDI file and adjust the note colours, falling-note appearance and keyboard effects to suit the final composition.
Choose a bright green Background colour that is clearly different from the colours of the notes and visual effects you want to retain. A pure green such as #00FF00 is a useful starting point, not a requirement.
If the notes, highlights or particles use a similar green, they may also disappear when the key is applied. Change those colours or use a different background colour before exporting.

The Midi2Vidi export before editing, with a solid green background ready to be removed.
Step 2 - Export your video
Export the MP4 at a suitable size for your project. You can include the SoundFont audio or leave it out if you plan to use a separate recording.
For more demanding projects, consider producing a short test export first. It is much easier to adjust a colour or a layout before rendering the entire performance.
Step 3 - Bring the video into an editor
Import the Midi2Vidi MP4 and your background images or footage into a video editor that supports chroma keying.
Arrange the tracks so the Midi2Vidi video is above the images or footage you want to reveal. The exact names of the tracks and effects vary between editors, but the layering principle is the same.
Step 4 - Remove the background colour
Apply the editor's Chroma Key, Colour Key or similarly named effect to the Midi2Vidi track. Use the colour picker to select the exported green background.
Adjust the key's tolerance, edge softness or spill settings, if available, until the background disappears without damaging the falling notes, keyboard or particle effects.
Step 5 - Add and align your other media
Place photographs, videos or other graphics below the keyed piano visualisation. Set their durations and transitions to suit the music.
If you're using a separately recorded performance, add it as an audio track and align it carefully with the MIDI animation. Remember to mute or omit the synthesised audio if you don't want both versions playing together.
Step 6 - Export the finished composition
Preview the complete project, paying particular attention to the timing of notes, image changes and transitions. Then use your video editor's export function to produce the final combined video.
This last export happens in the video editor, not Midi2Vidi. Midi2Vidi supplies the piano visualisation that forms one layer of the finished composition.
An example: piano visualisation over an Armstrong slideshow↑ Contents
I used this approach for a project built around Bach's Prelude in C major, BWV 846, combining a Midi2Vidi piano visualisation with a slideshow about Neil Armstrong.
The piano animation was exported from Midi2Vidi against a green background. In the video editor, the green was removed so that Armstrong photographs and other imagery could appear behind the animated piano. A separate recording of the piano performance supplied the audio.

The finished composite. The green background has been replaced with lunar imagery while the falling notes and keyboard remain visible. Compare this with the green-screen source shown in Step 1.
The composition brought together three different elements:
- The performance - The recorded piano audio, providing the musical interpretation.
- The visualisation - The Midi2Vidi keyboard and notes, showing the music as it unfolds.
- The story - A sequence of images and transitions relating to Armstrong, adding a visual narrative to the music.
This is a good example of why the background colour setting is more than a cosmetic choice. It allows Midi2Vidi to become one component of a larger video rather than having to occupy the entire frame on its own.
The same technique could work for a music lesson with annotations behind the keyboard, a performance video with live footage, or a piano animation placed over artwork or photographs.
Tips for getting a clean composite↑ Contents
- Choose a background colour you aren't otherwise using. If your note colours are green, consider a blue or magenta key instead.
- Check the edges. Glows, semi-transparent particles and anti-aliased edges may contain some of the key colour. Fine-tune the key settings rather than raising tolerance so far that the animation disappears.
- Keep the source sharp. Export at an appropriate size for the final project, especially if you're going to scale the keyboard in the editor.
- Watch the audio. If you're combining Midi2Vidi with a separate recording, listen for duplicated notes or timing differences.
- Test before a long export. A few seconds of representative notes and particle effects can reveal colour-key problems before you render an entire piece.
Chroma keying opens up a much wider range of presentation styles, while the original MIDI remains available to adjust, replay and export again whenever you want to try a different arrangement.