Update pad code generation to use pad index instead of array index
This commit is contained in:
@@ -62,9 +62,9 @@ function webViewTransformer(data: ProjectRawData): ViewData {
|
||||
|
||||
// also add pads that have samples assigned (even without patterns)
|
||||
for (const group in pads) {
|
||||
pads[group].forEach((pad, index) => {
|
||||
pads[group].forEach((pad) => {
|
||||
if (pad.soundId > 0) {
|
||||
usedPads.add(`${group}${index}`);
|
||||
usedPads.add(`${group}${pad.pad - 1}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user