How Scoring Works
Each game uses a different scientifically-grounded scoring model.
๐จ Color โ CIEDE2000
Your color score is not based on simple RGB distance. We measure how different two colors look to the human eye using the CIEDE2000 formula.
The Pipeline
- HSB โ RGB: Both your pick and the target start in HSB space. We convert to RGB as an intermediate step.
- RGB โ Lab: RGB values are transformed into CIELAB color space through linearization and chromatic adaptation. Lab is perceptually uniform.
- CIEDE2000 (ฮEโโ): Calculates perceptual distance accounting for hue rotation, chroma weighting, and lightness sensitivity.
- ฮEโโ โ Score (0โ10): Mapped via sigmoid curve. ฮEโโ = 0 (perfect match) gives 10.00.
Adjustments
- Hue Recovery: Correct hue family (within 25ยฐ) earns a small bonus.
- Hue Penalty: Hue off by 30ยฐ+ on a saturated color loses a fraction.
| Score | Meaning |
|---|---|
| 9.50+ | Nearly perfect match |
| 8.00 โ 9.49 | Excellent recall |
| 6.00 โ 7.99 | Good, noticeable difference |
| 4.00 โ 5.99 | Moderate mismatch |
| 2.00 โ 3.99 | Significant difference |
| 0.00 โ 1.99 | Completely different color |
Easy vs Hard
Easy mode uses moderate saturation/brightness (40โ90%). Hard mode includes very desaturated and dark colors โ significantly harder to recall.
๐ Sound โ ERB Psychoacoustic Model
Your sound score uses an ERB (Equivalent Rectangular Bandwidth) psychoacoustic model โ the same perceptual framework used in hearing research.
The Pipeline
- Frequency โ ERB-rate: Both the target and your pick are converted from Hz to ERB-rate using:
21.4 ร logโโ(1 + 0.00437 ร f). This approximates how the human cochlea perceives pitch. - Perceptual Distance: The absolute ERB-rate difference is normalized against the total playable frequency range.
- Dual Gaussian Scoring: We use two Gaussian curves โ a sharp one (rewarding near-perfect matches) and a gentle one (giving partial credit). Your score is the higher of the two, mapped to 0โ10.
Why ERB?
Human pitch perception is logarithmic, not linear. The difference between 200 Hz and 400 Hz sounds the same as 400 Hz vs 800 Hz โ both are one octave. ERB-rate captures this nonlinearity, so your score reflects how different two tones sound, not how far apart their frequencies are in Hz.
| Score | Meaning |
|---|---|
| 9.50+ | Virtually identical pitch |
| 8.00 โ 9.49 | Extremely close โ excellent ear |
| 6.00 โ 7.99 | Close but audibly different |
| 4.00 โ 5.99 | Off by a noticeable margin |
| 2.00 โ 3.99 | Significantly wrong |
| 0.00 โ 1.99 | Completely different tone |
Easy vs Hard
In Easy mode, the Hz display is visible while you tune. Hard mode hides the frequency readout โ you must rely purely on your ears.