fixed build

This commit is contained in:
Jade (Rose) Rowland 2025-11-01 01:44:32 -04:00
parent 20027d7208
commit a41b07c67a

View file

@ -1,8 +1,9 @@
import jsdoc from '../../doc.json'; import jsdoc from '../../doc.json';
import { autocompletion } from '@codemirror/autocomplete'; import { autocompletion } from '@codemirror/autocomplete';
import { h } from './html'; import { h } from './html';
import { Scale } from '@tonaljs/tonal'; //TODO: fix tonal scale import
import { soundMap } from 'superdough'; // import { Scale } from '@tonaljs/tonal';
import { soundMap } from '@strudel/webaudio';
import { complex } from '@strudel/tonal'; import { complex } from '@strudel/tonal';
const escapeHtml = (str) => { const escapeHtml = (str) => {
@ -90,13 +91,13 @@ export function bankCompletions() {
.map((name) => ({ label: name, type: 'bank' })); .map((name) => ({ label: name, type: 'bank' }));
} }
// Attempt to get all scale names from Tonal // Attempt to get all scale names from Tonal TODO: FIX IMPORT
let scaleCompletions = []; // let scaleCompletions = [];
try { // try {
scaleCompletions = (Scale.names ? Scale.names() : []).map((name) => ({ label: name, type: 'scale' })); // scaleCompletions = (Scale.names ? Scale.names() : []).map((name) => ({ label: name, type: 'scale' }));
} catch (e) { // } catch (e) {
console.warn('[autocomplete] Could not load scale names from Tonal:', e); // console.warn('[autocomplete] Could not load scale names from Tonal:', e);
} // }
// Valid mode values for voicing // Valid mode values for voicing
const modeCompletions = [ const modeCompletions = [