[FIX] Fix the issue withe percu.

This commit is contained in:
NADAL Jean-Baptiste
2026-09-15 12:11:32 +02:00
parent 71d3b71362
commit 46b2d0630e
7 changed files with 116 additions and 17 deletions
+1 -1
View File
@@ -680,7 +680,7 @@ class ScoreScanner {
$instName = $instrumentNames[$instrument] ?? $instrument;
if (in_array($instrument, ['sup', 'par'], true) && $combined !== null && trim($combined) !== '') {
if (in_array($instrument, ['sup', 'par', 'per'], true) && $combined !== null && trim($combined) !== '') {
// Combined/superposed parts keep their real instrument names (e.g. "contrebasse-1+clarinette-1")
$combined = strtolower(trim($combined));
if (!$this->isValidSegment($combined, '/^[a-z0-9_+.-]+$/')) {