
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - <b>void pascal soundnote(int note, int octave, unsigned duration)</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
void pascal SoundNote(int note, int octave, unsigned duration)
Produces a note in the 12-tone scale for a specified period of time.
Parameters
Note can be one of the following values :
RESTNOTE - Rest (silence for duration)
CNOTE, CsNOTE - C, C sharp
DNOTE, DsNOTE - D, D sharp
ENOTE, FNOTE, FsNOTE - E, F, F sharp
GNOTE, GsNOTE - G, G sharp
ANOTE, AsNOTE, BNOTE - A, A sharp, B
The octave parameter is the octave in which to play the note, and
ranges from MIN_OCTAVE to MAX_OCTAVE, with the higher octaves almost
inaudible. An octave value of MID_OCTAVE and note value of CNOTE
will give middle C.
The duration is the duration of the note in milliseconds.
Returns
Nothing.
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson