Type alias FitPrecision

FitPrecision: keyof typeof FIT_PRECISION

Fit Precision is referenced by the FitPitchOptions class to define how closely we must fit a pitch to the scale or chord it's being fitted to.

Note, if fitting to just a scale without chord, then it doesn't matter which option you choose, since it will just fit to the closest pitch which the scale contains

LOOSE: When fitting to just a chord, then any pitch is potentially considered a fit, though pitches that the chord contains are given higher preference. When fitting to both scale and chord, the pitch must be contained within either the chord or the scale. Again, preference is given to those in the chord.

MEDIUM: When fitting to just a chord, the pitch (or an octave relative) must not be a semi-tone away from any of the chord's pitches. When fitting to both scale and chord, the pitch must be contained within the chord or the scale, and if not in the chord, then not be a semi-tone away from any of the chord's pitches. Preference will always be given to pitches that are in the chord.

TIGHT (default): This is the strictest option. When fitting to a chord, it's only considered a tight fit if the pitch (or an octave relative) is contained within the chord.

Generated using TypeDoc