Skip to content

the ultimate vocal synthesizer - sing, speak, beatbox, and more

Rust

Hill climb log: experiment 1, jitter (kept)

Jameson Hodge4bbb735a91ab
diff --git a/docs/hill-climb/log.md b/docs/hill-climb/log.md
index a07ae10..a1567c3 100644
--- a/docs/hill-climb/log.md
+++ b/docs/hill-climb/log.md
@@ -25,6 +25,9 @@ opens a new one, update this list and give the experiment's number.
(`crates/chimera/src/sources/glottis.rs`, and how `voice/human_voice.rs` drives it).
2. **Aperiodicity.** Cost 2.9: the synth's is about twice hers. Look at jitter, shimmer, drift
and aspiration noise in the source. She is a clean, trained voice.
+ - Experiment 1 lowered the jitter: cost 1.74. Most of what is left comes from a few songs with
+ voicing trouble (en043a 0.05, en018a 0.03), not from the source's median: with jitter and
+ shimmer at zero the cost stays at 1.30. Lowering shimmer raises note MCD past its guard.
3. **Phrase onsets.** Costs: vowel-initial 1.4, voiceless-initial 1.1.
- Voicing starts about 20 ms early before a vowel.
- Before /s/, /f/ and /h/ the synth voices 100–130 ms before the note, so the voicing runs
@@ -41,3 +44,39 @@ opens a new one, update this list and give the experiment's number.
loop on speech.
## Experiments
+
+### 1. A trained singer's jitter, not a clinical one (kept)
+
+- Hypothesis: at the default roughness (0.1), which the comparison sings with, the source
+ jittered 0.65 % and shimmered 4.2 % per cycle. Those values are near the clinical thresholds
+ (MDVP: 1.04 % and 3.81 %), and the synth's YIN aperiodicity was twice hers (0.010 against
+ 0.005). A healthy trained voice has about 0.3–0.5 % jitter. Less jitter should lower
+ aperiodicity and leave the spectrum alone.
+- Change: `apply_source` in `crates/chimera/src/voice/human_voice.rs`: jitter
+ `0.003 + 0.035·roughness` → `0.0021 + 0.0245·roughness` (0.45 % at 0.1, 2.7 % at 1).
+ Shimmer unchanged. Tried, against the baseline:
+ - jitter and shimmer both 0 (diagnostic only): 1.173, aperiodicity cost 1.30; WORSE, note MCD
+ +0.86 dB. The averaged log-mel spectra need some perturbation between the harmonics.
+ - jitter 0.35 %, shimmer 2.3 %: 1.157; WORSE, note MCD +0.24 dB, and one note fewer for en016a's
+ voiceless onsets.
+ - jitter 0.35 %, shimmer unchanged: 1.201, MCD +0.06; WORSE on the en016a note alone.
+ - jitter 0.45 %, shimmer unchanged: 1.245; BETTER. Kept.
+ - The en016a note (no. 100, "tak" at 58.59 s) is a note the synth never voices (0 % voiced in
+ the baseline too). Its onset was one stray voiced frame 70 ms before the note, and any change
+ to the random sequence can drop it. The guard decided; the gap is a voicing fault (lead 5).
+- Singer: training score 1.433 → 1.245 (−0.188 like for like), held-out 1.590 → 1.402.
+ Aperiodicity cost 2.88 → 1.74 (synth median 0.010 → 0.008; held-out cost 2.09 → 0.96). Note MCD
+ 9.243 → 9.288 dB. No other term moved by more than 0.02.
+- Speech: word error rate 38.74 → 39.07 % (OK).
+- Speed: `os=2` 18.4 % → 18.5 %.
+- Tests: pass. Two things for the batch PR:
+ - `CHIMERA_BLESS=1 cargo test --workspace` stops at the first failing test binary. `engine.rs`
+ reads `beatbox-bar.f32` and fails before `golden_planning` can bless it, so bless with
+ `--no-fail-fast`.
+ - `golden_analysis` checks the power spectrum of `voice-sustain-male.f32` against TypeScript-era
+ numbers in `analysis.json`. Once the voice fixtures are re-blessed it fails on any change to
+ the sound. The PR has to update that expectation or analyse a fixed signal instead.
+- Commit: 2c41618.
+- Next: don't lower shimmer again: the note MCD guard is close. The rest of the aperiodicity cost
+ is in songs with voicing gaps (en043a, en018a), which is lead 5, and the largest single cost is
+ still level 4–8 kHz (lead 1).