regroup sounds

- extra tab for drum-machines
- combine synths and soundfonts
This commit is contained in:
Felix Roos 2023-03-16 15:21:16 +01:00
parent 15681262de
commit e63a5d10c8
4 changed files with 21 additions and 39 deletions

View file

@ -140,7 +140,7 @@ export function registerSoundfonts() {
};
return { node: envelope, stop };
},
{ type: 'soundfont', prebake: true },
{ type: 'soundfont', prebake: true, fonts },
);
});
}

View file

@ -129,7 +129,7 @@ export const samples = async (sampleMap, baseUrl = sampleMap._base || '', option
throw new Error(`error loading "${sampleMap}"`);
});
}
const { prebake } = options;
const { prebake, tag } = options;
Object.entries(sampleMap).forEach(([key, value]) => {
if (typeof value === 'string') {
value = [value];
@ -155,6 +155,7 @@ export const samples = async (sampleMap, baseUrl = sampleMap._base || '', option
samples: value,
baseUrl,
prebake,
tag,
});
});
};