CodeBase - Midi Wind Chimes
Return to the CodeBase listing
Category: Complete Applications
Version: 1.0
Information
Uploaded: 22nd May 2005 23:24
Modified: 1st Jan 1970 01:00
Author: NoteJam
Summary
Demo of a way to use midiOutShortMessage to play random midi notes under program control
Full Description
Program generates random numbers, and those numbers play midi notes. It sounds sort of like a wind chime. This is a demo program, to show the basics of making api midi calls, selecting what general midi instrument to use, and how to send note on and note off messages.<br /> <br /> I use the method of setting velocity to zero, and play the same note to turn notes off.<br /> This method is recognized by most midi sequencers, There is another method, where a different command is used for note off messages than was used for note on messages.<br /> <br /> I picked this method, to keep things simple and more understandable for beginners at midi programming. To get this program to work, first you need to go check your audio mixers settings.<br /> <br /> Your audio mixer settings are found by clicking on an icon at bottom right of your screen in windows 98 and windows xp. It looks like a yellow speaker icon in w98 and in xp first click on left most icon on tool bar, and then find a small blue icon.<br /> Right click on the icon will give you options to open volume controls.<br /> <br /> Make certain midi is not muted, and volume of midi, wave, and over all volume is set loud enough, then run the program. You can change the midi port number to cause the output to be sent to different midi devices. Also in the listing, you can change the instrument number to find out what it would sound like with different midi instruments.<br /> <br />
Comments
No comments yet.