mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-17 16:48:32 +00:00
remove unessecary change
This commit is contained in:
parent
321a888921
commit
6b2d080afc
@ -99,7 +99,7 @@ export const connectToDestination = (input, channels = [0, 1]) => {
|
|||||||
//This upmix can be removed if correct channel counts are set throughout the app,
|
//This upmix can be removed if correct channel counts are set throughout the app,
|
||||||
// and then strudel could theoretically support surround sound audio files
|
// and then strudel could theoretically support surround sound audio files
|
||||||
const stereoMix = new StereoPannerNode(ctx);
|
const stereoMix = new StereoPannerNode(ctx);
|
||||||
input?.connect(stereoMix);
|
input.connect(stereoMix);
|
||||||
|
|
||||||
const splitter = new ChannelSplitterNode(ctx, {
|
const splitter = new ChannelSplitterNode(ctx, {
|
||||||
numberOfOutputs: stereoMix.channelCount,
|
numberOfOutputs: stereoMix.channelCount,
|
||||||
|
|||||||
@ -56,19 +56,24 @@ export function registerSamplesFromDB(config = userSamplesDBConfig, onComplete =
|
|||||||
|
|
||||||
// Files used to be uploaded as base64 strings, After Jan 1 2025 this check can be safely deleted
|
// Files used to be uploaded as base64 strings, After Jan 1 2025 this check can be safely deleted
|
||||||
if (typeof blob === 'string') {
|
if (typeof blob === 'string') {
|
||||||
return blob;
|
const soundPaths = sounds.get(parentDirectory) ?? new Set();
|
||||||
|
soundPaths.add(blob);
|
||||||
|
sounds.set(parentDirectory, soundPaths);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return blobToDataUrl(blob).then((soundPath) => {
|
return blobToDataUrl(blob).then((soundPath) => {
|
||||||
const soundPaths = sounds.get(parentDirectory) ?? new Set();
|
const soundPaths = sounds.get(parentDirectory) ?? new Set();
|
||||||
soundPaths.add(soundPath);
|
soundPaths.add(soundPath);
|
||||||
sounds.set(parentDirectory, soundPaths);
|
sounds.set(parentDirectory, soundPaths);
|
||||||
|
return;
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
sounds.forEach((soundPaths, key) => {
|
sounds.forEach((soundPaths, key) => {
|
||||||
const value = Array.from(soundPaths);
|
const value = Array.from(soundPaths);
|
||||||
|
|
||||||
registerSound(key, (t, hapValue, onended) => onTriggerSample(t, hapValue, onended, value), {
|
registerSound(key, (t, hapValue, onended) => onTriggerSample(t, hapValue, onended, value), {
|
||||||
type: 'sample',
|
type: 'sample',
|
||||||
samples: value,
|
samples: value,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user