mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
fix more deps
This commit is contained in:
parent
6430f6207d
commit
2338a1ee7d
@ -3,6 +3,9 @@
|
||||
"version": "0.0.1",
|
||||
"description": "Port of tidalcycles to javascript",
|
||||
"main": "strudel.mjs",
|
||||
"scripts":{
|
||||
"test": "npm run test --workspaces --if-present"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
|
||||
@ -1,17 +1,17 @@
|
||||
import * as strudel from '../core/strudel.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 '../core/euclid.mjs';
|
||||
import euclid from '../core/euclid.mjs';
|
||||
import '@strudel/core/euclid.mjs';
|
||||
import euclid from '@strudel/core/euclid.mjs';
|
||||
import '@strudel/tone/pianoroll.mjs';
|
||||
import '@strudel/tone/draw.mjs';
|
||||
import * as uiHelpers from '@strudel/tone/ui.mjs';
|
||||
import * as drawHelpers from '@strudel/tone/draw.mjs';
|
||||
import gist from '../core/gist.js';
|
||||
import gist from '@strudel/core/gist.js';
|
||||
import shapeshifter from './shapeshifter.mjs';
|
||||
import { mini } from '../mini/mini.mjs';
|
||||
import * as Tone from 'tone';
|
||||
|
||||
@ -15,7 +15,7 @@ import {
|
||||
import shiftCodegen from 'shift-codegen';
|
||||
const codegen = shiftCodegen.default;
|
||||
console.log('codegen', codegen);
|
||||
import * as strudel from '../core/strudel.mjs';
|
||||
import * as strudel from '@strudel/core/strudel.mjs';
|
||||
|
||||
const { Pattern } = strudel;
|
||||
|
||||
|
||||
@ -3,9 +3,6 @@
|
||||
"version": "0.0.1",
|
||||
"description": "React Hooks for strudel",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tidalcycles/strudel.git"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { isNote } from 'tone';
|
||||
import _WebMidi from 'webmidi';
|
||||
import { Pattern as _Pattern } from '../core/strudel.mjs';
|
||||
import { Pattern as _Pattern } from '@strudel/core/strudel.mjs';
|
||||
import * as Tone from 'tone';
|
||||
|
||||
const WebMidi = _WebMidi;
|
||||
|
||||
@ -3,9 +3,6 @@
|
||||
"version": "0.0.1",
|
||||
"description": "Midi API for strudel",
|
||||
"main": "midi.mjs",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tidalcycles/strudel.git"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as krill from './krill-parser.js';
|
||||
import * as strudel from '../core/strudel.mjs';
|
||||
import * as strudel from '@strudel/core/strudel.mjs';
|
||||
import { addMiniLocations } from '../eval/shapeshifter.mjs';
|
||||
|
||||
const { pure, Pattern, Fraction, stack, slowcat, sequence, timeCat, silence } = strudel;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { strict as assert } from 'assert';
|
||||
import '../tonal.mjs'; // need to import this to add prototypes
|
||||
import { pure } from '../../core/strudel.mjs';
|
||||
import { pure } from '@strudel/core/strudel.mjs';
|
||||
|
||||
describe('tonal', () => {
|
||||
it('Should run tonal functions ', () => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Note, Interval, Scale } from '@tonaljs/tonal';
|
||||
import { Pattern as _Pattern } from '../core/strudel.mjs';
|
||||
import { Pattern as _Pattern } from '@strudel/core/strudel.mjs';
|
||||
import { mod, tokenizeNote } from '../../packages/core/util.mjs';
|
||||
|
||||
const Pattern = _Pattern; // as any;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { Pattern as _Pattern, stack, Hap, reify } from '../core/strudel.mjs';
|
||||
import { Pattern as _Pattern, stack, Hap, reify } from '@strudel/core/strudel.mjs';
|
||||
import _voicings from 'chord-voicings';
|
||||
const { dictionaryVoicing, minTopNoteDiff, lefthand } = _voicings;
|
||||
|
||||
|
||||
1
packages/tone/README.md
Normal file
1
packages/tone/README.md
Normal file
@ -0,0 +1 @@
|
||||
TODO: test
|
||||
@ -4,9 +4,6 @@
|
||||
"description": "Tone.js API for strudel",
|
||||
"main": "tone.mjs",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "mocha --colors"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tidalcycles/strudel.git"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { strict as assert } from 'assert';
|
||||
import '../tone.mjs';
|
||||
import { pure } from '../../core/strudel.mjs';
|
||||
import { pure } from '@strudel/core/strudel.mjs';
|
||||
import Tone from 'tone';
|
||||
|
||||
describe('tone', () => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import Tune from './tunejs.js';
|
||||
import { Pattern } from '../core/strudel.mjs';
|
||||
import { Pattern } from '@strudel/core/strudel.mjs';
|
||||
|
||||
Pattern.prototype._tune = function (scale, tonic = 220) {
|
||||
const tune = new Tune();
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { Pattern } from '../core/strudel.mjs';
|
||||
import { Pattern } from '@strudel/core/strudel.mjs';
|
||||
import { mod } from '../../packages/core/util.mjs';
|
||||
|
||||
function edo(name) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user