MIDI : Computer Hardware Buyers’ Glossary

The CurrCon Java Applet displays prices on this web page converted with today’s exchange rates into your local international currency, e.g. Euros, US dollars, Canadian dollars, British Pounds, Indian Rupees… CurrCon requires an up-to-date browser and Java version 1.5 or later, preferably 1.7.0_04. If you can’t see the prices in your local currency, Troubleshoot
MIDI

MIDI (Musical Instrument Digital Interface) is both a way of connecting to digital musical intruments and a way compactly recording music for playback by digital musical istruments or a software sythesiser in a computer.

MIDI came out in 1991. An augmented, upward compatible MIDI-2 came out in 1999. DLS (Down Loadable Sounds) enables sampling, making sounds with a wavetable sound capture rather than mathematicallly. XMF (extensible Music Format) combines MIDI and DLS in one file.

The MIDI stream sent to instruments over the 5-pin DIN (Deutsches Institut für Normung/German Institute for Standardisation) serial connection contains no embedded timing information. The notes are sent the instant they are intended to be played. MIDI files on the other hand need embedded timing information to track when to send the commands.

It allows you to interconnect various MIDI-compatible electronic musical instruments such as keyboard, synthesiser, electronic drum set etc. and to connect them all to your computer. It allows you to play an instrument and have the computer convert your playing to sheet music, or to automatically play electronic MIDI sheet music, much like a player piano. A sound card usually comes with a built-in MIDI compatible synthesiser. It usually is a crummy sounding FM synthesiser, but on higher end sound cards it can be a full wave table synthesiser that can accurately simulate any combination of acoustic instruments. MIDI is very compact way of storing music. You can pick up a whole song off the Internet in a few seconds and start playing it immediately using the Crescendo add-in software to your web browser.

Limitations

Connectors

MIDI is a very simple serial interface. It uses only 3 pins of a 5-pin DIN connector. Inexpensive synthesizers are missing the MIDI connector. They use a USB (Universal Serial Bus) port intended to plug into a computer.

MIDI connector MIDI pinouts
male MIDI connector male MIDI pinouts.
1=unused 2=shield 3=unused 4=positive 5=negative
Inexpensive synthesizers are missing the MIDI connector. They use a USB port intended to plug into a computer.
USB2-B mini USB2-A male USB2-A slot
USB2-B connector that
plugs into the
synthesizer
USB2-A connector that
plugs into the
computer
USB2-A slot on the
computer

Trying Out Midi

So long as your browser has a MIDI player installed, just clicking on that link will cause it to play. Try it here:
click to listen Bach click to listen Jesu Joy of Man’s Desiring click to listen Maple Leaf Rag click to listen Ain’t Misbehavin
click to listen Ain’t we Got Fun click to listen The living Love catalyst click to listen The Bodyguard click to listen I Can see Clearly Now
click to listen The Impossible Dream click to listen Killing me Softly click to listen Do the Locomotion click to listen Puff The Magic Dragon
click to listen Start Me Up click to listen Take Five click to listen Wind Beneath My Wings click to listen The Pearl Fishers

Advantages and Disadvantage of MIDI

Playing those samples will point out MIDI ’s big disadvantage. It can handle only synthesiser intrumentals, no voice. It can’t do speech or other arbitratry sounds. The big advantage is how quick it is to download compared with the other formats such as MP3. It is much more compact.

If you are a musician, you can modify MIDI files to use different instruments, and feed them into your digital musical instruments. You can also modify the music as you please, to change the tempo or even even the notes and durations.

Basically, MIDI just tells your computer to play middle C for 250 milliseconds sounding as best like a piano or a trumpet as it can. The quality of the sound card hardware and the software synthesiser in the computer playing the MIDI file has a lot to with how lush and realistic the performance sounds. It will sound totally different played on different computers. Only the timing and pitch will match.

There are at least 4 flavours of MIDI : MIDI 0, MIDI 1, RIFF (Resource Interchange File Format) MIDI 0, RIFF MIDI 1.

There are over 60 different downloadable MIDI formats, that are converted to a standard format for timed commands sent to the instruments.

Using MIDI in HTML (Hypertext Markup Language)

To embed a MIDI file on your web page, all you need do is add some HTML like this:
<a href="../sound/bach2.mid">
. You usually want some sort of gif to indicate a playable link. Here is a simple way to embed a MIDI file and have it automatically play:
<EMBED src="../sound/bach2.mid" HIDDEN="TRUE" AUTOSTART="TRUE" ALIGN=LEFT>
It appears to work with Opera, IE (Internet Explorer) and Netscape.

Using JavaScript, it is also possible to cause a song to start playing automatically as soon as a page is loaded.

Using MIDI in Java 1.1

Java version 1.1 does not officially support MIDI music files, but on some browsers this trick will work:
getAppletContext().showDocument ( new URL ( getCodeBase(), "test.mid" ) );
They would need a Midi player installed. The music must exist in a file accessible via URL (Uniform Resource Locator). You can’t use this trick to play some music you have sitting in a byte array.

MIDI in Java 1.3+

With Java version 1.3, Java supports MIDI in a massive way. javax.media.sound.midi provides interfaces and classes for I/O, sequencing, and synthesis of MIDI. javax.media.sound.midi.spi supplies interfaces for service providers to implement when offering new MIDI devices, MIDI file readers and writers, or sound bank readers.

Creating MIDI files

Normally you use music software to enter a score and arrange it. Hackers might enjoy reading up on the MIDI file spec and creating files programmatically with a hex editor. However Digital Ear : Real-time Audio (.wav ) to MIDI converter ! is a  $130.00 USD is real time utility to convert MIDI to wav format, and astoundingly, wav to MIDI. That utility does much what a human would do listening to music and writing down the equivalent notation. The raw result needs touch up, at least to assign a voice, and requires a monphonic (single voice, no chords or polyphony) source, but it is a way of extracting compact, malleable MIDI from ordinary sound sources. If you use your own voice as input, it can correct pitch but preserve vibrato.
electronic product image recommend electronic⇒Cakewalk Sonar X1 Studio
asin: B004BDB394
Cakewalk’s midi composition, recording and editing software.
German flag amazon.de amazon.ca Canadian flag
Spanish flag amazon.es tigerdirect.ca Canadian flag
French flag amazon.fr newegg.ca Canadian flag
Italian flag amazon.it amazon.com American flag
UK flag amazon.co.uk tigerdirect.com American flag
newegg.com American flag
Greyed out stores probably do not have the item in stock

Books

book cover recommend book⇒Making Music with SONAR Home Studio
by:Craig Anderton 978-1-59863-973-5paperback
publisher:Course Technology B0044KLPROkindle
published:2010-03-10
Highly reviewed.
Australian flag abe books anz abe books.co.uk UK flag
German flag abe books.de amazon.co.uk UK flag
German flag amazon.de abe books.ca Canadian flag
Spanish flag iberlibro.com amazon.ca Canadian flag
Spanish flag amazon.es Chapters Indigo Canadian flag
French flag abe books.fr abe books.com American flag
French flag amazon.fr amazon.com American flag
Italian flag abe books.it Barnes & Noble American flag
Italian flag amazon.it powells.com American flag
American flag download o’reilly safari sony e-books American flag
Greyed out stores probably do not have the item in stock
cables
Cakewalk: MIDI-based music composition
Comparison of the four flavours of Cakewalk Sonar
Convert MIDI to WAV or MP3
Crescendo
How to Generate MIDI files
Intelliscore: MP3 to MIDI
JFugue
JFugue documenation on Java MIDI soundbanks
JMF: streaming audio
MIDI Converter: shareware to convert MIDI to MP3 and other wave formats
MIDI Standards in Book Form
MIDIRenderer: convert MIDI to WMA, MP3, OGG, FLAC, APE, AMR or WAV
Piston MIDI to MP3 converter
Rhythm Tutor Student Project
Scala: lets you experiment musical tunings, eg. historical temperaments and non-Western scales
Scorch
Simple overview of how MIDI works
sound
Timidity: convert MIDI to MP3
Widisoft: Convert MP3 to MIDI

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/bgloss/midi.html J:\mindprod\bgloss\midi.html
logo
Please email your , letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email. If you want your message, your name or email kept confidential, not considered for public posting, please explicitly specify that. Unless you state otherwise, I will treat your message as a letter to the editor that I may or may not publish in the feedback section. After that, it will be too late to retract it. If you disagree with something I said, please quote it and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence. Threatening to kill me or spouting obscenities has yet to persuade me to change my mind.
mindprod.com IP:[65.110.21.43]
viewYour face IP:[38.107.179.214]
You are visitor number 8,188.