feat: add physically explicit narrowband MUSIC

This commit is contained in:
2026-08-29 12:40:48 +09:00
parent 044be3cf92
commit 11fee76280
40 changed files with 6473 additions and 275 deletions
+7 -1
View File
@@ -56,7 +56,7 @@ test("localization algorithm registry exposes stable ids and capabilities", () =
assertEqual(DEFAULT_LOCALIZATION_ALGORITHM, "das", "default algorithm");
assertEqual(
LOCALIZATION_ALGORITHM_IDS.join(","),
"das,das-phat,gcc-phat",
"das,das-phat,gcc-phat,music",
"stable algorithm ids",
);
assertEqual(localizationAlgorithmDefinition("das").rawScale, "power", "DAS map scale");
@@ -70,8 +70,14 @@ test("localization algorithm registry exposes stable ids and capabilities", () =
"cpu",
"GCC-PHAT backend capability",
);
assertEqual(
localizationAlgorithmDefinition("music").rawScale,
"noise-projection",
"MUSIC map scale",
);
assert(isDasAlgorithm("das") && isDasAlgorithm("das-phat"), "DAS engine algorithms");
assert(!isDasAlgorithm("gcc-phat"), "GCC-PHAT uses a separate engine");
assert(!isDasAlgorithm("music"), "MUSIC uses a separate engine");
assertEqual(localizationAlgorithmLabel("das-phat"), "DAS-PHAT", "algorithm label");
assertEqual(localizationAlgorithmDefinition("unknown"), undefined, "unknown lookup");
});