Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure MusicalNotePitch(const Freq: TVec; const pitchError: TVec; const freqOctave: TVecInt; const aMusicalScale: TVec; const aMusicalNotePitch: TVecInt); | Returns musical note pitch, the octave and pitch error in Hz. |
| 2 | function MusicalNotePitch(const Freq: Double; out pitchError: Double; out freqOctave: Integer; const aMusicalScale: TVec): TMusicalNotePitch; | Returns musical note pitch, the octave and pitch error in Hz. |
Overload 1: procedure MusicalNotePitch(const Freq: TVec; const pitchError: TVec; const freqOctave: TVecInt; const aMusicalScale: TVec; const aMusicalNotePitch: TVecInt);
Returns musical note pitch, the octave and pitch error in Hz.
| # | Name | Description |
|---|---|---|
| 1 | Freq | The array of frequencies in Hz to convert to musical note pitch. |
| 2 | pitchError | The difference between the nearest musical note pitch and Freq in Hz. To obtain error in % compute: pitchError[i]/Freq[i]*100% |
| 3 | freqOctave | Contains the octave numbers on output. |
| 4 | aMusicalScale | The musical scale as returned by the MusicalScaleInit method. aMusicalScale.FloatPrecision will be used as the input parameter to indicate the desired precision (single or double). |
| 5 | aMusicalNotePitch | Contains musical note pitch on the output. The values in MusicalNotePitch need to by typcasted to an enumerated type: MusicalNotePitchToStr(TMusicalNotePitch(MusicalNotePitch[i])) |
Result: stored in self (calling object)
Overload 2: function MusicalNotePitch(const Freq: Double; out pitchError: Double; out freqOctave: Integer; const aMusicalScale: TVec): TMusicalNotePitch;
Returns musical note pitch, the octave and pitch error in Hz.
| # | Name | Description |
|---|---|---|
| 1 | Freq | The frequency in Hz to convert to musical note pitch. |
| 2 | pitchError | The difference between the nearest musical note pitch and Freq in Hz. |
| 3 | freqOctave | Returns the octave number on output. |
| 4 | aMusicalScale | The musical scale as returned by the MusicalScaleInit method. |
Returns: TMusicalNotePitch
Remarks:
Returns musical note pitch as the result, the octave number and pitch error in Hz in the parameters.