Files
amiga/AmberMod/fft.h
T

6 lines
4.0 KiB
C

static short hann[]={0,2,10,22,40,62,89,122,159,201,247,299,355,417,483,553,628,708,793,881,975,1072,1174,1281,1391,1506,1624,1747,1874,2004,2138,2276,2417,2562,2710,2862,3017,3175,3336,3500,3667,3837,4009,4184,4361,4541,4722,4906,5092,5280,5469,5661,5853,6047,6243,6439,6637,6836,7035,7235,7436,7637,7839,8041,8242,8444,8646,8847,9048,9249,9449,9648,9846,10043,10239,10434,10627,10819,11010,11198,11385,11570,11753,11934,12112,12288,12462,12633,12801,12966,13129,13288,13445,13598,13748,13895,14038,14178,14313,14446,14574,14699,14819,14936,15049,15157,15261,15361,15456,15548,15634,15716,15794,15867,15935,15999,16057,16111,16161,16205,16245,16279,16309,16334,16354,16368,16378,16383,16383,16378,16368,16354,16334,16309,16279,16245,16205,16161,16111,16057,15999,15935,15867,15794,15716,15634,15548,15456,15361,15261,15157,15049,14936,14819,14699,14574,14446,14313,14178,14038,13895,13748,13598,13445,13288,13129,12966,12801,12633,12462,12288,12112,11934,11753,11570,11385,11198,11010,10819,10627,10434,10239,10043,9846,9648,9449,9249,9048,8847,8646,8444,8242,8041,7839,7637,7436,7235,7035,6836,6637,6439,6243,6047,5853,5661,5469,5280,5092,4906,4722,4541,4361,4184,4009,3837,3667,3500,3336,3175,3017,2862,2710,2562,2417,2276,2138,2004,1874,1747,1624,1506,1391,1281,1174,1072,975,881,793,708,628,553,483,417,355,299,247,201,159,122,89,62,40,22,10,2,0};
static short twcos[]={16384,16379,16364,16340,16305,16261,16207,16143,16069,15986,15893,15791,15679,15557,15426,15286,15137,14978,14811,14635,14449,14256,14053,13842,13623,13395,13160,12916,12665,12406,12140,11866,11585,11297,11003,10702,10394,10080,9760,9434,9102,8765,8423,8076,7723,7366,7005,6639,6270,5897,5520,5139,4756,4370,3981,3590,3196,2801,2404,2006,1606,1205,804,402,0,-402,-804,-1205,-1606,-2006,-2404,-2801,-3196,-3590,-3981,-4370,-4756,-5139,-5520,-5897,-6270,-6639,-7005,-7366,-7723,-8076,-8423,-8765,-9102,-9434,-9760,-10080,-10394,-10702,-11003,-11297,-11585,-11866,-12140,-12406,-12665,-12916,-13160,-13395,-13623,-13842,-14053,-14256,-14449,-14635,-14811,-14978,-15137,-15286,-15426,-15557,-15679,-15791,-15893,-15986,-16069,-16143,-16207,-16261,-16305,-16340,-16364,-16379};
static short twsin[]={0,-402,-804,-1205,-1606,-2006,-2404,-2801,-3196,-3590,-3981,-4370,-4756,-5139,-5520,-5897,-6270,-6639,-7005,-7366,-7723,-8076,-8423,-8765,-9102,-9434,-9760,-10080,-10394,-10702,-11003,-11297,-11585,-11866,-12140,-12406,-12665,-12916,-13160,-13395,-13623,-13842,-14053,-14256,-14449,-14635,-14811,-14978,-15137,-15286,-15426,-15557,-15679,-15791,-15893,-15986,-16069,-16143,-16207,-16261,-16305,-16340,-16364,-16379,-16384,-16379,-16364,-16340,-16305,-16261,-16207,-16143,-16069,-15986,-15893,-15791,-15679,-15557,-15426,-15286,-15137,-14978,-14811,-14635,-14449,-14256,-14053,-13842,-13623,-13395,-13160,-12916,-12665,-12406,-12140,-11866,-11585,-11297,-11003,-10702,-10394,-10080,-9760,-9434,-9102,-8765,-8423,-8076,-7723,-7366,-7005,-6639,-6270,-5897,-5520,-5139,-4756,-4370,-3981,-3590,-3196,-2801,-2404,-2006,-1606,-1205,-804,-402};
static short bandedge[]={1,1,1,2,2,3,3,4,5,6,8,9,11,14,17,21,25,31,38,46,57,69,85,104,127};
static short logheight[]={0,21,33,41,48,53,58,62,65,68,71,74,76,78,80,82,84,86,87,89,90,92,93,94,95,97,98,99,100,101,102,103,104,104,105,106,107,108,109,109,110,111,111,112,113,113,114,115,115,116,117,117,118,118,119,119,120,120,121,121,122,122,123,123,124,124,125,125,125,126,126,127,127,128,128,128,129,129,129,130,130,131,131,131,132,132,132,133,133,133,134,134,134,135,135,135,136,136,136,136,137,137,137,138,138,138,138,139,139,139,140,140,140,140,141,141,141,141,142,142,142,142,143,143,143,143,144,144,144,144,144,145,145,145,145,146,146,146,146,146,147,147,147,147,147,148,148,148,148,148,149,149,149,149,149,150,150,150,150,150,151,151,151,151,151,151,152,152,152,152,152,153,153,153,153,153,153,154,154,154,154,154,154,155,155,155,155,155,155,155,156,156,156,156,156,156,157,157,157,157,157,157,157,158,158,158,158,158,158,158,159,159,159,159,159,159,159,160,160,160,160,160,160,160,160,161,161,161,161,161,161,161,162,162,162,162,162,162,162,162,163,163,163,163,163,163,163,163,163,164,164,164,164,164,164,164};