mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 05:38:35 +00:00
replace relative imports with package imports
This commit is contained in:
parent
e1bb58fb06
commit
0a8397b3dc
@ -1,10 +1,11 @@
|
||||
import shapeshifter from './shapeshifter.mjs';
|
||||
import * as strudel from '@strudel/core/strudel.mjs';
|
||||
import '../tone/tone.mjs';
|
||||
import '../midi/midi.mjs';
|
||||
import '../tonal/voicings.mjs';
|
||||
import '../../packages/tonal/tonal.mjs';
|
||||
import '../../packages/xen/xen.mjs';
|
||||
import '../../packages/xen/tune.mjs';
|
||||
import '@strudel/tone/tone.mjs';
|
||||
import '@strudel/midi/midi.mjs';
|
||||
import '@strudel/tonal/voicings.mjs';
|
||||
import '@strudel/tonal/tonal.mjs';
|
||||
import '@strudel/xen/xen.mjs';
|
||||
import '@strudel/xen/tune.mjs';
|
||||
import '@strudel/core/euclid.mjs';
|
||||
import euclid from '@strudel/core/euclid.mjs';
|
||||
import '@strudel/tone/pianoroll.mjs';
|
||||
@ -12,11 +13,10 @@ import '@strudel/tone/draw.mjs';
|
||||
import * as uiHelpers from '@strudel/tone/ui.mjs';
|
||||
import * as drawHelpers from '@strudel/tone/draw.mjs';
|
||||
import gist from '@strudel/core/gist.js';
|
||||
import shapeshifter from './shapeshifter.mjs';
|
||||
import { mini } from '../mini/mini.mjs';
|
||||
import { mini } from '@strudel/mini/mini.mjs';
|
||||
import { Tone } from '@strudel/tone';
|
||||
import * as toneHelpers from '../tone/tone.mjs';
|
||||
import * as voicingHelpers from '../tonal/voicings.mjs';
|
||||
import * as toneHelpers from '@strudel/tone/tone.mjs';
|
||||
import * as voicingHelpers from '@strudel/tonal/voicings.mjs';
|
||||
|
||||
// this will add all methods from definedMethod to strudel + connect all the partial application stuff
|
||||
const bootstrapped = { ...strudel, ...strudel.Pattern.prototype.bootstrap() };
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import * as krill from './krill-parser.js';
|
||||
import * as strudel from '@strudel/core/strudel.mjs';
|
||||
import { addMiniLocations } from '../eval/shapeshifter.mjs';
|
||||
import { addMiniLocations } from '@strudel/eval/shapeshifter.mjs';
|
||||
|
||||
const { pure, Pattern, Fraction, stack, slowcat, sequence, timeCat, silence, reify } = strudel;
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { Note, Interval, Scale } from '@tonaljs/tonal';
|
||||
import { Pattern as _Pattern } from '@strudel/core/strudel.mjs';
|
||||
import { mod, tokenizeNote } from '../../packages/core/util.mjs';
|
||||
import { mod } from '@strudel/core/util.mjs';
|
||||
|
||||
const Pattern = _Pattern; // as any;
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ const {
|
||||
} = Tone;
|
||||
import * as tonePiano from '@tonejs/piano';
|
||||
const { Piano } = tonePiano;
|
||||
import { getPlayableNoteValue } from '../../packages/core/util.mjs';
|
||||
import { getPlayableNoteValue } from '@strudel/core/util.mjs';
|
||||
|
||||
// "balanced" | "interactive" | "playback";
|
||||
// Tone.setContext(new Tone.Context({ latencyHint: 'playback', lookAhead: 1 }));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Pattern } from '@strudel/core/strudel.mjs';
|
||||
import { mod } from '../../packages/core/util.mjs';
|
||||
import { mod } from '@strudel/core/util.mjs';
|
||||
|
||||
export function edo(name) {
|
||||
if (!/^[1-9]+[0-9]*edo$/.test(name)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user