repair build

This commit is contained in:
2023-08-13 14:06:27 +02:00
parent 7f6a768802
commit 311138c277
4 changed files with 6 additions and 4 deletions

View File

@ -8,6 +8,7 @@ import {
superdough, samples,
initAudioOnFirstClick,
registerSynthSounds
// @ts-ignore
} from 'superdough';
/**
@ -24,7 +25,7 @@ Array.prototype.in = function<T>(this: T[], value: T): boolean {
};
const init = Promise.all([
Promise.all([
initAudioOnFirstClick(),
samples('github:tidalcycles/Dirt-Samples/master'),
samples('github:kindohm/expedition/tree/master/samples'),

View File

@ -7,7 +7,7 @@ function codeInterceptor(code: string): string {
.replace(/t\[(\d+),(\d+)\]/g, 'mod($1,$2)')
.replace(/b\[(\d+),(\d+)\]/g, '[$1,$2].includes(beat)')
.replace(/eb\[(\d+),(\d+)\]/g, '[$1,$2].includes(ebeat)')
.replace(/m\[(\d+),(\d+)\]/g, '[$1,$2].includes(bar)');
.replace(/m\[(\d+),(\d+)\]/g, '[$1,$2].includes(bar)')
}
const delay = (ms: number) => new Promise((_, reject) => setTimeout(() => reject(new Error('Operation took too long')), ms));