home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
window
/
mewel12.lzh
/
SOUND.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-04-05
|
2KB
|
43 lines
/*===========================================================================*/
/* */
/* File : SOUND.H */
/* */
/* Purpose : */
/* */
/* History : */
/* */
/* (C) Copyright 1989 Marc Adler/Magma Systems All Rights Reserved */
/*===========================================================================*/
/* Notes available for music routine */
#define PAUSENOTE -1 /* Programmed Pause */
#define RESTNOTE 0 /* Musical rest (silence) */
#define CNOTE 1 /* C, C sharp, D flat, etc. */
#define CsNOTE 2
#define DbNOTE 2
#define DNOTE 3
#define DsNOTE 4
#define EbNOTE 4
#define ENOTE 5
#define FNOTE 6
#define FsNOTE 7
#define GbNOTE 7
#define GNOTE 8
#define GsNOTE 9
#define AbNOTE 9
#define ANOTE 10
#define AsNOTE 11
#define BbNOTE 11
#define BNOTE 12
/* Octaves range available for music routine */
#define MIN_OCTAVE -3 /* Lowest avalible octave */
#define MID_OCTAVE 0 /* Octave middle C is in */
#define MAX_OCTAVE 7 /* Highest avalible octave */
extern void pascal SoundBeep(void);
extern void pascal SoundClick(void);
extern void pascal SoundNote(int note, int octave, unsigned duration);
extern void pascal SoundTone(unsigned freq, unsigned duration, unsigned pause);