The temperament similarity and pattern detection system is a mathematical method for discovering relationships between historical temperaments. The system analyzes temperament data from multiple sources and identifies patterns, similarities, and relationships through computational analysis.
The system has been validated through analysis of 192 temperaments from two datasets (PianoScope and CyberTuner). Results include:
| Metric | Value |
|---|---|
| Cross-dataset relationships identified | 308 |
| Temperaments analyzed | 192 |
| Data completeness | 100% |
| Validated meantone patterns | 46 |
The system detects comma fractions by analyzing perfect fifths (P5 = 701.955 cents). The method calculates the average fifth deviation from pure and determines the fraction using:
fraction = syntonic_comma / |avg_fifth_deviation|
Detection tolerance: ±0.5 cents. Validation requires standard deviation < 2.5 cents.
Multiple metrics are computed on normalized temperament offsets:
sqrt(sum((norm1[i] - norm2[i])^2))Temperaments are normalized to ensure transpositional invariance: minimum offset shifted to 0, wrapped to [0, 1200) range. This ensures temperaments in different keys are comparable.
Endpoints:
GET api_temperament_similarity.php?list=1 — List all 12-degree temperamentsGET api_temperament_similarity.php?temperament_id=X&pattern=1 — Get pattern analysisGET api_temperament_similarity.php?temperament_id1=X&temperament_id2=Y — Compare two temperamentsGET api_temperament_similarity.php?temperament_id=X&limit=N — Find similar temperamentsGET api_temperament_similarity.php?pattern_fraction=X — Find temperaments by comma fraction