Optimize sound ID collection in utils

This commit is contained in:
2026-07-14 09:43:50 +02:00
parent 9e9b5ebdaf
commit cd1d0bb562

View File

@@ -230,14 +230,12 @@ function getSoundsInfoFromProject(
for (const scene of data.scenes) {
for (const pattern of scene.patterns) {
if (pattern.notes.length > 0) {
const sid = findSoundIdByPad(pattern.pad, data.pads);
if (sid) {
usedSoundIds.add(sid);
}
}
}
}
if (keepUnusedPatterns) {
for (const pattern of data.groupPatterns) {