Programmer Guide/Command Reference/EVAL/f0sp: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} A simple f0 estimation from a log. spectrum. ;Usage:<code>f0sp(<var>sp</var>, <var>n</var>, <var>df</var>, <var>fmin</var>, <var>fmax</var>, <...")
 
No edit summary
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{EVALFunctionTemplate}}
A simple f0 estimation from a log. spectrum.
A simple f0 estimation from a log. spectrum.
;Usage:<code>f0sp(<var>sp</var>, <var>n</var>, <var>df</var>, <var>fmin</var>, <var>fmax</var>, <var>nc</var>)</code>
;Usage:<code>f0sp(<var>sp</var>, <var>df</var>, <var>fmin</var>, <var>fmax</var>, <var>nc</var>)</code>
:;<var>sp</var>:log. spectrum
:;<var>sp</var>:log. spectrum
:;<var>n</var>:number of sp values
:;<var>df</var>:frequency resolution in Hz
:;<var>df</var>:frequency resolution in Hz
:;<var>fmin</var>:minimum range for component search
:;<var>fmin</var>:minimum range for component search
Line 14: Line 14:
# find the smallest frequency difference of the selected peak (use lowest peak frequency as start value)
# find the smallest frequency difference of the selected peak (use lowest peak frequency as start value)
# use this difference to compuet harmonic mean of selected peaks
# use this difference to compuet harmonic mean of selected peaks
[[../#Functions|<function list>]]
[[../#Functions|<function list>]]

Latest revision as of 12:26, 10 November 2022

A simple f0 estimation from a log. spectrum.

Usage
f0sp(sp, df, fmin, fmax, nc)
sp
log. spectrum
df
frequency resolution in Hz
fmin
minimum range for component search
fmax
maximum range for component search
nc
number of f0 components
Result
f0 in Hz. Set to 0 if detection fails.
Description
  1. find all spectral peaks in the selected frequency range
  2. select the nc highest peaks
  3. find the smallest frequency difference of the selected peak (use lowest peak frequency as start value)
  4. use this difference to compuet harmonic mean of selected peaks

<function list>

Navigation menu

Personal tools