00001
00002
00003
00004
00005 #ifndef __ENVE_DC_H
00006 #define __ENVE_DC_H
00007
00008
00009 #include "mytypes.h"
00010
00011
00012
00013 static const ubyte releaseTab[2400] =
00014 {
00015 255, 254, 254, 253, 253, 252, 252, 252, 251, 251, 250, 250, 249, 249, 249,
00016 248, 248, 247, 247, 247, 246, 246, 245, 245, 245, 244, 244, 243, 243, 242,
00017 242, 242, 241, 241, 240, 240, 240, 239, 239, 238, 238, 238, 237, 237, 236,
00018 236, 236, 235, 235, 235, 234, 234, 233, 233, 233, 232, 232, 231, 231, 231,
00019 230, 230, 229, 229, 229, 228, 228, 228, 227, 227, 226, 226, 226, 225, 225,
00020 225, 224, 224, 223, 223, 223, 222, 222, 222, 221, 221, 220, 220, 220, 219,
00021 219, 219, 218, 218, 218, 217, 217, 216, 216, 216, 215, 215, 215, 214, 214,
00022 214, 213, 213, 212, 212, 212, 211, 211, 211, 210, 210, 210, 209, 209, 209,
00023 208, 208, 208, 207, 207, 207, 206, 206, 206, 205, 205, 204, 204, 204, 203,
00024 203, 203, 202, 202, 202, 201, 201, 201, 200, 200, 200, 199, 199, 199, 198,
00025 198, 198, 197, 197, 197, 196, 196, 196, 195, 195, 195, 194, 194, 194, 194,
00026 193, 193, 193, 192, 192, 192, 191, 191, 191, 190, 190, 190, 189, 189, 189,
00027 188, 188, 188, 187, 187, 187, 187, 186, 186, 186, 185, 185, 185, 184, 184,
00028 184, 183, 183, 183, 183, 182, 182, 182, 181, 181, 181, 180, 180, 180, 179,
00029 179, 179, 179, 178, 178, 178, 177, 177, 177, 177, 176, 176, 176, 175, 175,
00030 175, 174, 174, 174, 174, 173, 173, 173, 172, 172, 172, 172, 171, 171, 171,
00031 170, 170, 170, 170, 169, 169, 169, 168, 168, 168, 168, 167, 167, 167, 166,
00032 166, 166, 166, 165, 165, 165, 165, 164, 164, 164, 163, 163, 163, 163, 162,
00033 162, 162, 162, 161, 161, 161, 160, 160, 160, 160, 159, 159, 159, 159, 158,
00034 158, 158, 158, 157, 157, 157, 157, 156, 156, 156, 155, 155, 155, 155, 154,
00035 154, 154, 154, 153, 153, 153, 153, 152, 152, 152, 152, 151, 151, 151, 151,
00036 150, 150, 150, 150, 149, 149, 149, 149, 148, 148, 148, 148, 147, 147, 147,
00037 147, 146, 146, 146, 146, 145, 145, 145, 145, 144, 144, 144, 144, 143, 143,
00038 143, 143, 143, 142, 142, 142, 142, 141, 141, 141, 141, 140, 140, 140, 140,
00039 139, 139, 139, 139, 139, 138, 138, 138, 138, 137, 137, 137, 137, 136, 136,
00040 136, 136, 136, 135, 135, 135, 135, 134, 134, 134, 134, 134, 133, 133, 133,
00041 133, 132, 132, 132, 132, 132, 131, 131, 131, 131, 130, 130, 130, 130, 130,
00042 129, 129, 129, 129, 128, 128, 128, 128, 128, 127, 127, 127, 127, 127, 126,
00043 126, 126, 126, 125, 125, 125, 125, 125, 124, 124, 124, 124, 124, 123, 123,
00044 123, 123, 123, 122, 122, 122, 122, 122, 121, 121, 121, 121, 121, 120, 120,
00045 120, 120, 120, 119, 119, 119, 119, 119, 118, 118, 118, 118, 118, 117, 117,
00046 117, 117, 117, 116, 116, 116, 116, 116, 115, 115, 115, 115, 115, 114, 114,
00047 114, 114, 114, 114, 113, 113, 113, 113, 113, 112, 112, 112, 112, 112, 111,
00048 111, 111, 111, 111, 111, 110, 110, 110, 110, 110, 109, 109, 109, 109, 109,
00049 108, 108, 108, 108, 108, 108, 107, 107, 107, 107, 107, 107, 106, 106, 106,
00050 106, 106, 105, 105, 105, 105, 105, 105, 104, 104, 104, 104, 104, 104, 103,
00051 103, 103, 103, 103, 102, 102, 102, 102, 102, 102, 101, 101, 101, 101, 101,
00052 101, 100, 100, 100, 100, 100, 100, 99, 99, 99, 99, 99, 99, 98, 98,
00053 98, 98, 98, 98, 97, 97, 97, 97, 97, 97, 96, 96, 96, 96, 96,
00054 96, 96, 95, 95, 95, 95, 95, 95, 94, 94, 94, 94, 94, 94, 93,
00055 93, 93, 93, 93, 93, 93, 92, 92, 92, 92, 92, 92, 91, 91, 91,
00056 91, 91, 91, 91, 90, 90, 90, 90, 90, 90, 89, 89, 89, 89, 89,
00057 89, 89, 88, 88, 88, 88, 88, 88, 88, 87, 87, 87, 87, 87, 87,
00058 87, 86, 86, 86, 86, 86, 86, 86, 85, 85, 85, 85, 85, 85, 85,
00059 84, 84, 84, 84, 84, 84, 84, 83, 83, 83, 83, 83, 83, 83, 82,
00060 82, 82, 82, 82, 82, 82, 81, 81, 81, 81, 81, 81, 81, 81, 80,
00061 80, 80, 80, 80, 80, 80, 79, 79, 79, 79, 79, 79, 79, 79, 78,
00062 78, 78, 78, 78, 78, 78, 77, 77, 77, 77, 77, 77, 77, 77, 76,
00063 76, 76, 76, 76, 76, 76, 76, 75, 75, 75, 75, 75, 75, 75, 75,
00064 74, 74, 74, 74, 74, 74, 74, 74, 73, 73, 73, 73, 73, 73, 73,
00065 73, 72, 72, 72, 72, 72, 72, 72, 72, 71, 71, 71, 71, 71, 71,
00066 71, 71, 71, 70, 70, 70, 70, 70, 70, 70, 70, 69, 69, 69, 69,
00067 69, 69, 69, 69, 69, 68, 68, 68, 68, 68, 68, 68, 68, 68, 67,
00068 67, 67, 67, 67, 67, 67, 67, 66, 66, 66, 66, 66, 66, 66, 66,
00069 66, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 64, 64, 64, 64,
00070 64, 64, 64, 64, 64, 63, 63, 63, 63, 63, 63, 63, 63, 63, 62,
00071 62, 62, 62, 62, 62, 62, 62, 62, 62, 61, 61, 61, 61, 61, 61,
00072 61, 61, 61, 61, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 59,
00073 59, 59, 59, 59, 59, 59, 59, 59, 59, 58, 58, 58, 58, 58, 58,
00074 58, 58, 58, 58, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 56,
00075 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 55, 55, 55, 55, 55,
00076 55, 55, 55, 55, 55, 55, 54, 54, 54, 54, 54, 54, 54, 54, 54,
00077 54, 54, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 52, 52,
00078 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 51, 51, 51, 51, 51,
00079 51, 51, 51, 51, 51, 51, 50, 50, 50, 50, 50, 50, 50, 50, 50,
00080 50, 50, 50, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
00081 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 47, 47,
00082 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 46, 46, 46, 46, 46,
00083 46, 46, 46, 46, 46, 46, 46, 46, 45, 45, 45, 45, 45, 45, 45,
00084 45, 45, 45, 45, 45, 45, 44, 44, 44, 44, 44, 44, 44, 44, 44,
00085 44, 44, 44, 44, 44, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
00086 43, 43, 43, 43, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
00087 42, 42, 42, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00088 41, 41, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
00089 40, 40, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
00090 39, 39, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38,
00091 38, 38, 38, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
00092 37, 37, 37, 37, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36,
00093 36, 36, 36, 36, 36, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
00094 35, 35, 35, 35, 35, 35, 35, 34, 34, 34, 34, 34, 34, 34, 34,
00095 34, 34, 34, 34, 34, 34, 34, 34, 34, 33, 33, 33, 33, 33, 33,
00096 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 32, 32, 32,
00097 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
00098 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
00099 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
00100 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 29, 29, 29, 29, 29,
00101 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
00102 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
00103 28, 28, 28, 28, 28, 28, 27, 27, 27, 27, 27, 27, 27, 27, 27,
00104 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 26, 26,
00105 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
00106 26, 26, 26, 26, 26, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
00107 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 24,
00108 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
00109 24, 24, 24, 24, 24, 24, 24, 24, 23, 23, 23, 23, 23, 23, 23,
00110 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
00111 23, 23, 23, 23, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
00112 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
00113 22, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
00114 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 20,
00115 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
00116 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 19, 19,
00117 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
00118 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 18,
00119 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
00120 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
00121 18, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
00122 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
00123 17, 17, 17, 17, 17, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
00124 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
00125 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 15, 15, 15,
00126 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
00127 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
00128 15, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
00129 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
00130 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
00131 14, 14, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
00132 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
00133 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
00134 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
00135 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
00136 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
00137 12, 12, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
00138 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
00139 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
00140 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 10, 10, 10,
00141 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
00142 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
00143 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
00144 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 9, 9, 9, 9, 9,
00145 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
00146 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
00147 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
00148 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 8,
00149 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
00150 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
00151 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
00152 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
00153 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7,
00154 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
00155 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
00156 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
00157 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
00158 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6,
00159 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
00160 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
00161 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
00162 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
00163 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
00164 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
00165 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
00166 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
00167 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
00168 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
00169 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
00170 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
00171 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
00172 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
00173 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
00174 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
00175 };
00176
00177
00178 #endif