X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fopl2.h;h=5c0a1cfb7e7b8e0dd818cca9c3d78099f733c5ed;hb=52483d8c2e16d2298a30e8b5aca4a90c07ea1816;hp=c001e5c9edbe51de9a8b3d19135c1abacd8ebfb3;hpb=8546b30d561c27e4b1eab164e17baf4c84a5c42e;p=16.git diff --git a/src/lib/opl2.h b/src/lib/opl2.h index c001e5c9..5c0a1cfb 100644 --- a/src/lib/opl2.h +++ b/src/lib/opl2.h @@ -50,7 +50,6 @@ typedef struct{ byte Feedback; /* feedback algorithm and strength */ } FMInstrument; - /* * Enumerated F-Numbers (in octave 4) for the chromatic scale. */ @@ -84,30 +83,13 @@ enum SCALE{ C4 = 0x106, A0 = 0x7F2 }; -unsigned short Notes[] = { - 19327 , /* C b */ - 18242 , /* C */ - 17218 , /* C # ( D b ) */ - 16252 , /* D */ - 15340 , /* D # ( E b ) */ - 14479 , /* E ( F b ) */ - 13666 , /* F ( E # ) */ - 12899 , /* F # ( G b ) */ - 12175 , /* G */ - 11492 , /* G # ( A b ) */ - 10847 , /* A */ - 10238 , /* A # ( B b ) */ - 9664 , /* B ( C b ) */ - 9121 , /* B # */ - 0 -}; /* function prototyping */ void WriteFM(int reg, int value); int ReadFM(void); int AdlibExists(void); void FMReset(/*int percusiveMode*/); /* Resets the card, quiets all voices, sets the percussive mode state */ -void FMKeyOff(int voice);typedef unsigned char byte; +void FMKeyOff(int voice); void FMKeyOn(int voice, int freq, int octave); void FMVoiceVolume(int voice, int vol); void FMSetVoice(int voiceNum, FMInstrument *ins);