Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void MusicalNotePitch(TVec Freq, TVec pitchError, TVecInt freqOctave, TVec aMusicalScale, TVecInt aMusicalNotePitch) | Returns musical note pitch, the octave and pitch error in Hz. |
| 2 | TMusicalNotePitch MusicalNotePitch(Double Freq, ref Double pitchError, ref Int32 freqOctave, TVec aMusicalScale) | Returns musical note pitch, the octave and pitch error in Hz. |
Overload 1: void MusicalNotePitch(TVec Freq, TVec pitchError, TVecInt freqOctave, TVec aMusicalScale, TVecInt aMusicalNotePitch)
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: TMusicalNotePitch MusicalNotePitch(Double Freq, ref Double pitchError, ref Int32 freqOctave, TVec aMusicalScale)
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.