home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / far096.zip / FARTABLE.CPP < prev    next >
Text File  |  1994-02-18  |  1KB  |  42 lines

  1. // These are data tables you might find useful in generating a FAR player
  2. // by Daniel Potter/Digital Infinity
  3.  
  4. // Volume values from 0 to 64. Obviously I only use every 4 of them right now.
  5. word VolTab[]={
  6.   0x2001,0x9000,0x9800,0xA000,0xA800,0xB000,0xB400,0xB800,0xBC00,
  7.   0xC000,0xC200,0xC400,0xC600,0xC800,0xCA00,0xCC00,0xCE00,
  8.   0xD000,0xD100,0xD200,0xD300,0xD400,0xD500,0xD600,0xD700,
  9.   0xD800,0xD900,0xDA00,0xDB00,0xDC00,0xDD00,0xDE00,0xDF00,
  10.   0xE080,0xE100,0xE180,0xE200,0xE280,0xE300,0xE380,0xE400,
  11.   0xE480,0xE500,0xE580,0xE600,0xE680,0xE700,0xE780,0xE800,
  12.   0xE880,0xE900,0xE980,0xEA00,0xEA80,0xEB00,0xEB80,0xEC00,
  13.   0xEC80,0xED00,0xED80,0xEE00,0xEE80,0xEF00,0xEF80,0xEFD0
  14. };
  15.  
  16. // Frequency values for 16 channel GUS output from C-0 to B-5
  17. word Freqs[]={
  18.   118,124,132,140,148,157,167,176,187,198,211,223,
  19.   236,250,264,280,297,315,334,355,375,397,420,446,
  20.   472,500,530,559,592,630,667,705,746,792,838,890,
  21.   939,995,1057,1115,1179,1252,1318,1410,1493,1561,1664,1750,
  22.   1880,2051,2071,2206,2360,2476,2603,2743,3076,3275,3661,3797,
  23.   3905,4061,4415,4615,4836,5077,5344,5641,5973,6346,6769,7254
  24. };
  25.  
  26. // C++ Structure used for sample headers
  27. class SampleT { public:
  28.   char  Name[32];
  29.   dword Len;
  30.   byte  FineTune;
  31.   byte  Volume;
  32.   dword Rep;
  33.   dword RepEnd;
  34.   byte  LoopMode;
  35.   byte  SType;
  36.   word  Seg;
  37.   word  Off;
  38.   byte  StickVol;
  39. };
  40.  
  41.  
  42.