This commit is contained in:
Jade (Rose) Rowland 2025-03-30 01:35:25 -04:00
parent e55b7c6ce3
commit 8962e5a4f0
3 changed files with 26 additions and 25 deletions

View file

@ -36,11 +36,11 @@ import './Repl.css';
import { setInterval, clearInterval } from 'worker-timers';
import { getMetadata } from '../metadata_parser';
const { latestCode } = settingsMap.get();
const { latestCode, maxPolyphony } = settingsMap.get();
let modulesLoading, presets, drawContext, clearCanvas, audioReady;
if (typeof window !== 'undefined') {
audioReady = initAudioOnFirstClick();
audioReady = initAudioOnFirstClick({ maxPolyphony });
modulesLoading = loadModules();
presets = prebake();
drawContext = getDrawContext();