SignalUtils.MusicalScaleInit Method

void MusicalScaleInit(TVec MusicalScale, Double PitchStandard, Int32 OctaveCount)

Initializes MusicalScale according to Pitch standard and required octave count.

#NameTypeDescription
1MusicalScaleTVecsource TVec
2PitchStandardDoublescalar
3OctaveCountInt32

Result: stored in self (calling object)

Remarks:

The MusicalScale parameter is initialized according to parameters. The MusicalScale is required by the MusicalNotePitch function. Default pitch standard is 440Hz and default Ocatave count is 11. This should suffice for most application. The pitch standard of 440Hz applies to note A in 4th octave. There are however many variations around the world. Cuba uses 436, Hungary 438, Berlin orchestra 443, etc..

References:

[1] https://www.thebeliever.net/pitch-battles/

See Also: SignalUtils.MusicalNotePitch, SignalUtils.MusicalNotePitchToStr