Attached is the exe.
This is exactly what it says on the tin, it turns your keyboard into a virtual piano. I personally think that this is pretty damn cool, and especially useful for irritating people at school/work

.
Press almost any key on your keyboard, and it will play a sound (each key being a different pitch) through your computer's inbuilt speaker. Press Q and A to 'pitch bend'; this increases/decreases the pitch of every note.
Even if your computer has its external speakers off/disconnected, a sound will still play so long as your computer has an inbuilt speaker. The speaker used is the same one that you hear occasionally when your computer encounters a serious problem; it is normally used as a warning sound.
If you don't hear a sound when you press random keys, set the duration to 100 or more (you are asked for this upon running the program); if you still don't, then you probably don't have an inbuilt speaker (a lot of laptops don't).
Here is a screenshot (shame there's no 'soundshots'):
Here is the CPP code:
#include "windows.h"
#include <conio.h>
#include <ctype.h>
#include <iostream>
#include "time.h"
using namespace std;
void main(void)
{
// Get the duration.
cout << "Enter the duration in ms that you want each note to play for: ";
int iDuration;
cin >> iDuration;
// Variables
int iMultiplier = 5;
time_t LastClock = clock();
int iPitchTimer = 1000; // Stores wait time between each pitch bend.
cout << "nnPress Q to increase or A to decrease the pitch of all notes.n";
cout << "If you hear nothing then try increasing the duration. If you still hear nothing after doing that then your computer does not have an inbuilt speaker :-(n";
cout << "nPress keys to make a sound through your computer's inbuilt speaker!n";
while(0==0)
{
// Get character.
int iChar = _getch();
// Pitch increase/decrease (via change in multiplier).
// If Q key has been pressed.
if(iChar == 113)
{
if(clock() - LastClock > iPitchTimer)
{
iMultiplier++;
LastClock = clock();
cout << "Pitch bent up!n";
}
}
// If A key has been pressed.
if(iChar == 97)
{
if(clock() - LastClock > iPitchTimer)
{
iMultiplier--;
LastClock = clock();
cout << "Pitch bent down!n";
}
}
// Beep!
Beep(iChar*iMultiplier,iDuration);
}
}