more strudel import fixes

This commit is contained in:
alex
2022-12-05 13:34:37 +00:00
parent eadcf25775
commit 1750db2f1c
4 changed files with 8 additions and 6 deletions
+3 -3
View File
@@ -29,9 +29,9 @@ import * as ui from './ui.mjs';
import * as util from './util.mjs';
const core = { drawLine, gist, logger, Fraction, ...controls, ...pattern, ...draw, ...euclid,
...evaluate, ...hap, ...repl, ...pianoroll, ...signal, ...speak,
...state, ...time, ...timespan, ...ui, ...util
};
...evaluate, ...hap, ...repl, ...pianoroll, ...signal, ...speak,
...state, ...time, ...timespan, ...ui, ...util
};
export default core;
// below won't work with runtime.mjs (json import fails)
+1 -1
View File
@@ -1050,7 +1050,7 @@ class Pattern {
}
palindrome() {
return this.every(2, rev);
return this.every(2, pattern.rev);
}
juxBy(by, func) {
+2 -1
View File
@@ -1,4 +1,5 @@
import { getFrequency, logger, Pattern } from '@strudel.cycles/core';
import strudel from '@strudel.cycles/core';
const { getFrequency, logger, Pattern } = strudel;
import { getAudioContext } from '@strudel.cycles/webaudio';
import csd from './project.csd?raw';
// import livecodeOrc from './livecode.orc?raw';
+2 -1
View File
@@ -1,4 +1,5 @@
import { toMidi } from '@strudel.cycles/core';
import core from '@strudel.cycles/core';
const toMidi = core.toMidi;
let loadCache = {};
async function loadFont(name) {