fix tutorial

This commit is contained in:
Felix Roos 2022-03-26 14:52:58 +01:00
parent a9c95bbbfb
commit 93db3cd935
8 changed files with 88 additions and 9 deletions

View file

@ -13,7 +13,7 @@ import {
LiteralNumericExpression,
} from 'shift-ast';
import shiftCodegen from 'shift-codegen';
const codegen = shiftCodegen.default;
const codegen = shiftCodegen.default || shiftCodegen; // parcel module resolution fuckup
import * as strudel from '@strudel/core/strudel.mjs';

View file

@ -23,7 +23,7 @@
*/
import _Spec from 'shift-spec';
const Spec = _Spec.default;
const Spec = _Spec.default || _Spec; // parcel module resolution fuckup
// import { version } from '../package.json'
// Loading uncached estraverse for changing estraverse.Syntax.

View file

@ -1,6 +1,6 @@
import { Pattern as _Pattern, stack, Hap, reify } from '@strudel/core/strudel.mjs';
import _voicings from 'chord-voicings';
const { dictionaryVoicing, minTopNoteDiff, lefthand } = _voicings.default;
const { dictionaryVoicing, minTopNoteDiff, lefthand } = _voicings.default || _voicings; // parcel module resolution fuckup
const getVoicing = (chord, lastVoicing, range = ['F3', 'A4']) =>
dictionaryVoicing({