Skip to content

signal.PitchDetectionHarm.Function.estimatePitch_harmonicSum

Christian d'Heureuse edited this page Jun 7, 2026 · 2 revisions

dsp-collection / signal/PitchDetectionHarm / estimatePitch_harmonicSum

Function: estimatePitch_harmonicSum()

function estimatePitch_harmonicSum(
   samples, 
   sampleRate, 
   position, 
   f0Min?, 
   f0Max?, 
   parms?): number;

Defined in: signal/PitchDetectionHarm.ts:246

Estimates the pitch frequency of a signal by using the harmonicSum() salience function.

Parameters

samples

Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>

The input signal.

sampleRate

number

The sample rate of the input signal.

position

number

Position in the input signal where the pitch is to be estimated. Center position of the windows used for the frequency measurement. In seconds.

f0Min?

number = 75

Lower pitch frequency limit in Hz.

f0Max?

number = 900

Upper pitch frequency limit in Hz.

parms?

HarmonicSumParms = ...

Optional secondary parameters, which have default values.

Returns

number

The estimated pitch frequency in Hz.

Clone this wiki locally