[perf] Add audiograph await debugAudiograph(); tool

This commit is contained in:
jeromew 2025-11-30 14:09:03 +00:00
parent 7a3e0fd3fe
commit 24b69ad1bc
2 changed files with 620 additions and 0 deletions

View file

@ -36,6 +36,7 @@ import { getRandomTune, initCode, loadModules, shareCode } from './util.mjs';
import './Repl.css';
import { setInterval, clearInterval } from 'worker-timers';
import { getMetadata } from '../metadata_parser';
import { debugAudiograph } from './audiograph';
const { latestCode, maxPolyphony, audioDeviceName, multiChannelOrbits } = settingsMap.get();
let modulesLoading, presets, drawContext, clearCanvas, audioReady;
@ -129,6 +130,7 @@ export function useReplContext() {
bgFill: false,
});
window.strudelMirror = editor;
window.debugAudiograph = debugAudiograph;
// init settings
initCode().then(async (decoded) => {