This is smsAnal.h in view mode; [Download] [Up]
/* command-line arguments */ typedef struct { int iDebugMode; /* 0 no debug, 1 debug initialitzation functions, 2 debug peak detection function, 3 debug harmonic detection function, 4 debug peak continuation function, 5 debug clean trajectories function, 6 debug sine synthesis function, 7 debug stochastic analysis function, 8 debug stochastic synthesis function, 9 debug top level analysis function, 10 debug everything 11 write residual sound into file 12 write original, synthesis and residual to a text file */ float fWindowSize; /* window size in number of periods */ int iFrameRate; /* number of frames per second */ float fFreqDeviation; /* maximum frequency deviation for peak continuation as a multiplicative factor */ float fLowestFund; /* lowest posible fundamental */ float fHighestFund; /* highest posible fundamental */ float fDefaultFund; /* default fundamental */ float fPeakContToGuide; /* contribution of the continuation peak into the value of the guide */ float fFundContToGuide; /* contribution of current fundamental to current guide (between 0 and 1) */ int nGuides; /* number of guides to use */ int nTrajectories; /* number of trajectories to use */ int nStochasticCoeff; /* number of filter coefficients */ int iFormat; /* 1 for monophonic harmonic sounds, 2 for others */ int iStochasticType; /* 1 for IIR filter, 2 for line-segments, 3 for no stochastic analysis */ int iCleanTraj; /* 1 if we want to clean trajectories, 0 if not */ float fMinRefHarmMag; /* minimum magnitude in dB of reference harmonic peak */ float fRefHarmMagDiffFromMax;/* maximum magnitude difference from reference harmonic peak to the maximum magnitude peak */ int iRefHarmonic; /* reference harmonic to use in the harmonic detection */ float fMinTrajLength; /* minimum length of trajectory in seconds */ float fMaxSleepingTime; /* maximum sleeping time for the trajectories in seconds */ float fHighestFreq; /* highest frequency to be searched */ float fMinPeakMag; /* minimum magnitude in dB for a good peak */ int iSoundType; /* type of sound to be analyzed */ int iAnalysisDirection; /* analysis direction, direct or reverse */ int iWindowType; /* type of analysis window */ } ARGUMENTS;
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.