Using a MIDI keyboard with your PC

Before MP3 files became widely popular, MIDI files (.mid) were one of the most common ways to add sound to Web pages. These files are incredibly small in size because they contain no actual audio, only information about which note and type of sound is being played, its duration, and so on. The reason you can hear sound/music when playing a .mid file is that your sound card has a built-in synthesiser capable of reproducing a set of standard sounds used by the .mid file to approximate what its creator intended you to hear.

MIDI (Musical Instrument Digital Interface) is the standard that electronic musical devices use to communicate with each other. For the purposes of this column, MIDI allows us to connect an external musical keyboard to the computer. The computer then takes any MIDI information it is being sent and records it using sequencing software.

In this article, the sequencing software we'll use will be Fruityloops (found on this month's cover CD), selected because it has been previously discussed in depth over three columns, from the August to October 2001 issues of PC World. That series is recommended reading for background knowledge. It can also be found on the PC World Web site ( by simply searching for Fruityloops.


Before you begin, make sure you have the required hardware. First of all you'll need a MIDI-out equipped keyboard. Your keyboard's manual should shed some light on this if you have any doubts. As a guide, a basic MIDI-out keyboard that will allow you to do what's discussed in this article is priced at approximately $150 and it often comes with its own software and tutorials. Plus, you'll need a MIDI cable, which can be purchased from most music shops. Last, but most importantly, you'll either need a sound card with a built-in MIDI port (such as Creative's SoundBlaster Live! and Audigy Platinum cards) or a separate MIDI interface that connects to your computer's game/joystick port. Once again, most music shops should supply these. When your keyboard's MIDI-out port is connected via one of your MIDI cables to your computer's MIDI-in port, you're set to go.


1. After opening Fruityloops, the very first window you will see is called Environment Settings. Select the MIDI tab (or press ). From the Remote Control Input drop-down box, select your MIDI-in source - in my case, it was SB LIVE MIDI in. From the Playing Output drop-down box, select your MIDI out - in my case, it was SB LIVE MIDI out. Under the Master Sync Output drop-down box, select None. (In case you're curious, the sync output is used to send information about tempo to another instrument/device.) From the keyboard input area, make sure Multichannel preview is not set: it should appear with two dashes (--). Close the window.

2. Next, we'll adjust the length of our current pattern to allow for more recording area. From the Options menu, select Song Settings. Under the Song tab, slide the bar length slider to a value of 32. Close the window. You can drag the window to make it show all 32 bars.

3. For the purposes of this exercise we'll use a software synthesiser. Go to Channels-Add One-3x Osc. The controls for the synthesiser will open in its own new window. At this stage, the synthesiser is only using its preset sound. To add a new sound, select the Channel Presets directory from the sample browser at the left of Fruityloops, then select the directory 3x Osc presets. Right-click the preset called Organ from the browser list to load this preset into the synthesiser. If your MIDI keyboard is set up correctly, you should now be able to hear the preset organ sound as you play the keys on your keyboard.

4. When you're ready to begin recording your playing from the MIDI keyboard, press R for record mode, then click the Play button. You will notice that Fruityloops will loop every 32 bars, so watch that you don't record over a previous note. You can use this method to record complex patterns in multiple passes/takes. Click Stop when you're done.

5. You can view the notes you've recorded by holding down the letter K, or view the more detailed piano roll by pressing -P. You can delete the notes you've recorded by right-clicking them. You can also tweak the organ sound in real time by experimenting with the controls of the 3x Osc synthesiser. If you want to play a sample or other sound using the keyboard, do the same as above but load a sample from any directory in the sample browser instead of 3x Osc synthesiser we have just used.

You've now got what essentially is a sampling set up, ready for you to experiment as the whim takes you. You can use the previous Fruityloops articles to learn to create a beat, and after combining that with your keyboard melodies, you can use Fruityloops' File-Export menu to save your creations as .mp3 or .mid - ready for public consumption on the Internet.

Join the newsletter!


Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Danny Allen

PC World
Show Comments

Cool Tech

Toys for Boys

Family Friendly

Stocking Stuffer

SmartLens - Clip on Phone Camera Lens Set of 3

Learn more >

Christmas Gift Guide

Click for more ›

Brand Post

Most Popular Reviews

Latest Articles


PCW Evaluation Team

Aysha Strobbe

Microsoft Office 365/HP Spectre x360

Microsoft Office continues to make a student’s life that little bit easier by offering reliable, easy to use, time-saving functionality, while continuing to develop new features that further enhance what is already a formidable collection of applications

Michael Hargreaves

Microsoft Office 365/Dell XPS 15 2-in-1

I’d recommend a Dell XPS 15 2-in-1 and the new Windows 10 to anyone who needs to get serious work done (before you kick back on your couch with your favourite Netflix show.)

Maryellen Rose George

Brother PT-P750W

It’s useful for office tasks as well as pragmatic labelling of equipment and storage – just don’t get too excited and label everything in sight!

Cathy Giles

Brother MFC-L8900CDW

The Brother MFC-L8900CDW is an absolute stand out. I struggle to fault it.

Luke Hill


I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it.

Emily Tyson

MSI GE63 Raider

If you’re looking to invest in your next work horse laptop for work or home use, you can’t go wrong with the MSI GE63.

Featured Content

Product Launch Showcase

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?