Optimize sound ID collection in utils
This commit is contained in:
@@ -230,11 +230,9 @@ 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);
|
||||
}
|
||||
const sid = findSoundIdByPad(pattern.pad, data.pads);
|
||||
if (sid) {
|
||||
usedSoundIds.add(sid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user