Optimize sound ID collection in utils
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user