Three Division Tuning Method
Othersthree-division-tuning-methodThree Division Tuning Method is an Agent Skill for general use published in the baojie/shiji-kb repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when calculating pentatonic scale pipe lengths or tuning traditional Chinese instruments. Applies the three-division method (三分损益法) to derive 宫商角徵羽 from base unit 81 using alternating 2/3 and 4/3 ratios.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/baojie/shiji-kb/blob/HEAD/kg/ontology/ontology-v1/skus/procedural/skill_053/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/three-division-tuning-method, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Three Division Tuning Method (三分损益法)
This ancient Chinese method calculates the lengths of musical pipes for the pentatonic scale (宫商角徵羽 - Gong, Shang, Jue, Zhi, Yu).
Overview
The method uses alternating division by 3 to generate successive notes, creating a mathematical relationship between pipe lengths.
Base Values
- Start with 81 (九九八十一) as the base unit for 宫
Calculation Steps
-
Calculate 徵
- Take 宫 value: 81
- Divide by 3, subtract 1/3: 81 × (2/3) = 54
- Result: 徵 = 54
-
Calculate 商
- Take 徵 value: 54
- Divide by 3, add 1/3: 54 × (4/3) = 72
- Result: 商 = 72
-
Calculate 羽
- Take 商 value: 72
- Divide by 3, subtract 1/3: 72 × (2/3) = 48
- Result: 羽 = 48
-
Calculate 角
- Take 羽 value: 48
- Divide by 3, add 1/3: 48 × (4/3) = 64
- Result: 角 = 64
Final Scale Lengths
| Note | Length | Relationship |
|---|---|---|
| 宫 | 81 | Base |
| 商 | 72 | 宫 × 8/9 |
| 角 | 64 | 宫 × 64/81 |
| 徵 | 54 | 宫 × 2/3 |
| 羽 | 48 | 宫 × 16/27 |
Principle
- "下生" (descending generation): multiply by 2/3
- "上生" (ascending generation): multiply by 4/3
- Alternating creates the pentatonic scale
Validation
- Confirm the final scale lengths match: 宫=81, 商=72, 角=64, 徵=54, 羽=48
- Verify each calculation alternates correctly between 下生 (×2/3) and 上生 (×4/3) operations
- Check that the mathematical relationships in the summary table are consistent with the step-by-step calculations