Skip to content

Native Android client for Spotify, built with Jetpack Compose

AutoMix: the locked mixes' speed change kept to 9.5 %

kota-zo1060d31e3121
diff --git a/base/automix/src/main/kotlin/app/myspoti/automix/segue/SegueTuning.kt b/base/automix/src/main/kotlin/app/myspoti/automix/segue/SegueTuning.kt
index 42f8142d..031186fb 100644
--- a/base/automix/src/main/kotlin/app/myspoti/automix/segue/SegueTuning.kt
+++ b/base/automix/src/main/kotlin/app/myspoti/automix/segue/SegueTuning.kt
@@ -11,7 +11,7 @@ package app.myspoti.automix.segue
data class SegueTuning(
// ── Guards: one crossing rejects a candidate, whatever its score ──
/** Largest speed change in the locked class, ppm. [I] past the 4–8 % of [U]: the stretch keeps the pitch and most pairs were lost to this guard. To be heard. */
- val maxRateDeviationPpm: Long = 100_000,
+ val maxRateDeviationPpm: Long = 95_000,
/** Expected phase error: median [U], against double attacks. */
val phaseMedianMaxUs: Long = 20_000,
/** Expected phase error: 95th percentile [U]. */
diff --git a/base/automix/src/test/kotlin/app/myspoti/automix/segue/SegueBenchTest.kt b/base/automix/src/test/kotlin/app/myspoti/automix/segue/SegueBenchTest.kt
index de8dfede..bc238a65 100644
--- a/base/automix/src/test/kotlin/app/myspoti/automix/segue/SegueBenchTest.kt
+++ b/base/automix/src/test/kotlin/app/myspoti/automix/segue/SegueBenchTest.kt
@@ -97,8 +97,8 @@ class SegueBenchTest {
val all = SegueCorpus.variations(base)
assertTrue(all.size > 80)
val v = all.first { it.first == "maxRateDeviationPpm\t1.2" }.second
- assertEquals(120_000L, v.maxRateDeviationPpm)
- assertEquals(base.copy(maxRateDeviationPpm = 120_000), v)
+ assertEquals(114_000L, v.maxRateDeviationPpm)
+ assertEquals(base.copy(maxRateDeviationPpm = 114_000), v)
assertNotNull(all.first { it.first == "energySigmaDb\t0.8" })
for ((_, t) in all) assertNotEquals(base, t)
}