You are here: Symbol Reference > SignalUtils Namespace > Functions > SignalUtils.MusicalNotePitch Function
DSP Master VCL
ContentsIndex
PreviousUpNext
SignalUtils.MusicalNotePitch Function

Returns musical note pitch, the octave and pitch error in Hz.

Pascal
procedure MusicalNotePitch(const Freq: TVec; const aError: TVec; const aOctave: TVecInt; const aMusicalScale: TVec; const aMusicalNotePitch: TVecInt); overload;
Parameters 
Description 
Freq 
The array of frequencies in Hz to convert to musical note pitch. 
aError 
Contains error in Hz (positive or negative) on output. This parameter can also be nil, if the error information is not required. To obtain error in % compute:
aError[i]/Freq[i]*100% 
aOctave 
Contains the octave numbers on output. 
aMusicalNotePitch 
Contains musical note pitch on the output. The values in MusicalNotePitch need to by typcasted to an enumerated type:
MusicalNotePitchToStr(TMusicalNotePitch(MusicalNotePitch[i])); 
MusicalScale 
The musical scale as returned by the MusicalScaleInit method. 
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!