mirror of
https://codeberg.org/uzu/strudel
synced 2026-09-05 06:57:35 -04:00
more strudel import fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1050,7 +1050,7 @@ class Pattern {
|
||||
}
|
||||
|
||||
palindrome() {
|
||||
return this.every(2, rev);
|
||||
return this.every(2, pattern.rev);
|
||||
}
|
||||
|
||||
juxBy(by, func) {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user