home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Large Pack of OldSkool DOS MOD Trackers
/
far094.zip
/
FARTABLE.CPP
< prev
next >
Wrap
Text File
|
1994-02-18
|
1KB
|
42 lines
// These are data tables you might find useful in generating a FAR player
// by Daniel Potter/Digital Infinity
// Volume values from 0 to 64. Obviously I only use every 4 of them right now.
word VolTab[]={
0x2001,0x9000,0x9800,0xA000,0xA800,0xB000,0xB400,0xB800,0xBC00,
0xC000,0xC200,0xC400,0xC600,0xC800,0xCA00,0xCC00,0xCE00,
0xD000,0xD100,0xD200,0xD300,0xD400,0xD500,0xD600,0xD700,
0xD800,0xD900,0xDA00,0xDB00,0xDC00,0xDD00,0xDE00,0xDF00,
0xE080,0xE100,0xE180,0xE200,0xE280,0xE300,0xE380,0xE400,
0xE480,0xE500,0xE580,0xE600,0xE680,0xE700,0xE780,0xE800,
0xE880,0xE900,0xE980,0xEA00,0xEA80,0xEB00,0xEB80,0xEC00,
0xEC80,0xED00,0xED80,0xEE00,0xEE80,0xEF00,0xEF80,0xEFD0
};
// Frequency values for 16 channel GUS output from C-0 to B-5
word Freqs[]={
118,124,132,140,148,157,167,176,187,198,211,223,
236,250,264,280,297,315,334,355,375,397,420,446,
472,500,530,559,592,630,667,705,746,792,838,890,
939,995,1057,1115,1179,1252,1318,1410,1493,1561,1664,1750,
1880,2051,2071,2206,2360,2476,2603,2743,3076,3275,3661,3797,
3905,4061,4415,4615,4836,5077,5344,5641,5973,6346,6769,7254
};
// C++ Structure used for sample headers
class SampleT { public:
char Name[32];
dword Len;
byte FineTune;
byte Volume;
dword Rep;
dword RepEnd;
byte LoopMode;
byte SType;
word Seg;
word Off;
byte StickVol;
};