smsAnal ![]()
P.S. in this case, we were mostly doing sinusoidal analysis.
Usage: smsAnal [-flags] <inputsoundfile> <outputsoundfile>
Legal flags are:
-format N (3)
analysis formats:
1 = harmonic sound,
2 = inharmonic sound,
3 = harmonic sound keeping phase information,
4 = inharmonic sound keeping phase information.
(Before we start the analysis, we should set it to harmonic or inharmonic analysis mode. Besides, in this case (ATS) we recommand to choose NOT keeping phase information.)
-stype N (0)
input sound types:
0 = sound phrase,
1= single note,
2 = no pitch change.
-direct N (0)
analysis direction:
0 = direct,
1 = reverse.
-rate N (120)
frame rate. it means number of frames per second.
-swin R (3.5)
window size in number of periods.
(How many periods we take to make a window.)
-twin N (2)
different types of window:
0 = Hamming,
1 = Blackman-Harris 62dB,
2 = Blackman-Harris 70dB,
3 = Blackman-Harris 74dB,
4 = Blackman-Harris 92dB.
(types of analysis window to use in the deterministic analysis.)
-lfreq R (0)(hz)
lowest frequency to be searched.
-hfreq R (12000)(hz)
highest frequency to be searched.
-magt R (0.3)(dB)
magnitude threshold.
(minimum spectral magnitude detected, expressed as a dB value. In this case, no partials softer than 0.3 will be found; the partials can be detected if its value goes beyond 0.3)
-dfund R (hz)
default fundamental. (131-c3; 196-g3; 293-d4; 440-a4)
-lfund R
lowest possible fundamental. (117; 175; 261; 392)
-hfund R
highest possible fundamental. (147; 220; 329; 494)
-maxe R (20)(hz)
maximum fundamental error.
(we set the "range" as 20 hz. If the detected fundamental falls into this value, then it can be accepted.)
-freqd R (0.45)(hz)
maximum frequency deviation.
(the difference of 2 fundamental frequencies in 2 adjacent frames.)
-peakc R (0.2)(scaled value, from 0 to 1)
peak contribution to guide.
(contribution of the previous peak to the current guide values. If the value is 1, that means the previous peak will completely define the current guide value. If the value is 0, the previous peak will not be referred at all.)
-fundc R (1.0)
fundamental contribution to guide.
-npart N (60)
number of partials to be searched for in each frame.
-clean N (1)
0 = do not clean partials,
1 = clean partials.
(to throw away some partials which we don't want, such as noise.)
-minl R (0.1)(sec.)
minimum length of good partials(sinusoids).
(sinusoids shorter than this value will be abandoned.)
-maxs R (0.1)(sec.)
maximum sleeping time of partials.
(delay the time for detecting partials; to keep having a explicit fundamental.)
-stoc N (1)
0 = no stochastic analysis,
1 = stochastic analysis.
-ncoeff N (25)
number of stochastic coefficients. (inflexion points in the spectral envelope)
..........................................................................file-name.snd file-name.sms
For example, the flags for male c3 would be:
-format 3 -stype 0 -direct 0 -rate 120 -swin 3.5 -twin 2 -lfreq 0 -hfreq 12000 -magt 0.3 -dfund 131 -lfund 117 -hfund 147 -maxe 20 -freqd 0.45 -peakc 0.2 -fundc 1.0 -npart 60 -clean 1 -minl 0.1 -maxs 0.1 -stoc 1 -ncoeff 25
this page revised by Ching on Mar. 3