What's a MIDI file

I’m pretty ignorant about this stuff.

What is a MIDI file and what’s it used for, how’s it created, etc.
And what’s a MIDI device?

I’ve come across programs that talk about installing or importing MIDI files.
I have no idea what they are talking about.

If I had a program to create tab, what’s a MIDI file or MIDI device do for me?

Thanks!

Funnily, I’ve just been answering some posts about MIDI on another forum.

MIDI is a couple of things but, at it’s heart, is a format for representing music in a way that’s separate from the actual sound.

MIDI represents music as events. Specifically, note on events which indicate the start of a note, and note off events which indicate the end of a note. These correspond with pressing and releasing a key on a synthesizer keyboard.

Each event has a note value which says which pitch to play the note at. The format (generally) contains almost no information about what sound should be played for each note.

So you could record a MIDI sequence on a keyboard into a DAW, and play it back through an instrument plugin. You could record it using a piano sound, but play it back using a timpani, or a recording of a dog bark, or a church organ, etc.

MIDI takes, roughly, two forms: the real-time data being transmitted down wires between instruments as part of a live performance (or a playback of a live performance) and a data file on a computer. Both are, basically, the same thing but one is encapsulated in a file so you can copy it, send it by email, etc. and the file includes the timing information (when each event occurred).

You can then use a MIDI application to play back the MIDI file into a software instrument, or via a MIDI interface to a hardware MIDI synth and it will play back the song.

You can also use MIDI editors in DAWs and other tools (Guitar Pro, MuseScore, Tuxguitar, etc.) to create compositions from scratch or to edit existing MIDI files.

MIDI doesn’t just do notes: it can also store pitch bend, modulation, note velocity, aftertouch, and a host of other music performance information.

It allows you to play that file using any MIDI instrument (hardware or software) or to copy that file to somewhere else, like a DAW to use as part of a composition.

For instance, you could create a Tab in MuseScore, export it as MIDI, import it into a DAW, select an instrument, and then it could be part of your composition, such as a bassline or drum track.

The important thing to understand is that MIDI itself doesn’t make any sound. A MIDI file needs a MIDI instrument to interpret the note and other data and to make appropriate sounds.

Most TAB editors have a built in MIDI player for your convenience.

I hope this makes sense.

Cheers,

Keith

3 Likes

it’s pretty easy to explain to graphics designers when comparing pixels to vectors

Your layered project with stems and effects on it is your your Photoshop file
your flattened PSD is your WAV file
your JPG is mp3
your pixels are the waveforms, manipulate them and they are changed.

but your vector AI file in illustrator is the MIDI file, the mathematical set of parameters, expressible as code in a markup. You can endlessly scale, apply changes, copy and whatever without losing definition as it is a set of coördinates.

you can use a midi file to trigger a set of samples (an intrument) or voltages or whatever. you can map to all exact mathematical precision and certainties but it is hrd to give it a REAL feeling.

Same goes for vector art and pixel art. They have up and downsides but smart people know to combine the best of both worlds and use midi to capture thier songwriting; synthesize sounds (values of the midi note; pitch, length, volume, etc; drives a carrier wave signal and midi becomes a real sound… vector becomes pixel.

1 Like

Here’s a screenshot of what MIDI looks like in a typical DAW. This is using Ardour but most DAWs will look similar.

I did a simple C scale up and down. On the left is the “piano roll” editor. If you’ve ever seen one of those old-fashioned mechanical player pianos with the holes punched out of the paper roll, this is similar, except it’s sideways (and electronic).


MIDI really is an electronic equivalent of a player piano.

On the right (of the screenshot) is a window with numbers showing the actual data. The big number in the first column is the timestamp indicating when the event happened. Afterwards is the note data showing the type of event, the channel (1-16) and the note value followed by the “velocity” (how hard I hit the note).

Cheers,

Keith

4 Likes

Fascinating!