rename org to strudel.cycles

This commit is contained in:
Felix Roos 2022-03-27 21:42:54 +02:00
parent ff4beaeb2c
commit 75097594b2
42 changed files with 140 additions and 140 deletions

View file

@ -1,3 +1,3 @@
# @strudel/core
# @strudel.cycles/core
This package contains the bare essence of strudel.

View file

@ -1,11 +1,11 @@
{
"name": "@strudel/core",
"name": "@strudel.cycles/core",
"version": "0.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@strudel/core",
"name": "@strudel.cycles/core",
"version": "0.0.1",
"license": "GPL-3.0-or-later",
"dependencies": {

View file

@ -1,5 +1,5 @@
{
"name": "@strudel/core",
"name": "@strudel.cycles/core",
"version": "0.0.1",
"description": "Port of Tidal Cycles to JavaScript",
"main": "strudel.mjs",

View file

@ -1,4 +1,4 @@
# @strudel/eval
# @strudel.cycles/eval
This package contains the strudel code transformer and evaluator.
It allows creating strudel patterns from input code that is optimized for minimal keystrokes and human readability.

View file

@ -1,5 +1,5 @@
import shapeshifter from './shapeshifter.mjs';
import * as strudel from '@strudel/core';
import * as strudel from '@strudel.cycles/core';
const { isPattern } = strudel;

View file

@ -1,11 +1,11 @@
{
"name": "@strudel/eval",
"name": "@strudel.cycles/eval",
"version": "0.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@strudel/eval",
"name": "@strudel.cycles/eval",
"version": "0.0.1",
"license": "GPL-3.0-or-later",
"dependencies": {

View file

@ -1,5 +1,5 @@
{
"name": "@strudel/eval",
"name": "@strudel.cycles/eval",
"version": "0.0.1",
"description": "Code evaluator for strudel",
"main": "evaluate.mjs",
@ -28,7 +28,7 @@
},
"homepage": "https://github.com/tidalcycles/strudel#readme",
"dependencies": {
"@strudel/core": "*",
"@strudel.cycles/core": "*",
"estraverse": "^5.3.0",
"shift-ast": "^6.1.0",
"shift-codegen": "^7.0.3",

View file

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

View file

@ -1,7 +1,7 @@
import { strict as assert } from 'assert';
import { evaluate, extend } from '../evaluate.mjs';
import { mini } from '@strudel/mini';
import * as strudel from '@strudel/core';
import { mini } from '@strudel.cycles/mini';
import * as strudel from '@strudel.cycles/core';
const { cat } = strudel;

View file

@ -1,3 +1,3 @@
# @strudel/midi
# @strudel.cycles/midi
This package adds midi functionality to strudel Patterns.

View file

@ -1,7 +1,7 @@
import { isNote } from 'tone';
import _WebMidi from 'webmidi';
import { Pattern, isPattern } from '@strudel/core/strudel.mjs';
import { Tone } from '@strudel/tone';
import { Pattern, isPattern } from '@strudel.cycles/core/strudel.mjs';
import { Tone } from '@strudel.cycles/tone';
// if you use WebMidi from outside of this package, make sure to import that instance:
export const WebMidi = _WebMidi;

View file

@ -1,11 +1,11 @@
{
"name": "@strudel/midi",
"name": "@strudel.cycles/midi",
"version": "0.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@strudel/midi",
"name": "@strudel.cycles/midi",
"version": "0.0.1",
"license": "GPL-3.0-or-later",
"dependencies": {

View file

@ -1,5 +1,5 @@
{
"name": "@strudel/midi",
"name": "@strudel.cycles/midi",
"version": "0.0.1",
"description": "Midi API for strudel",
"main": "midi.mjs",
@ -21,7 +21,7 @@
},
"homepage": "https://github.com/tidalcycles/strudel#readme",
"dependencies": {
"@strudel/tone": "*",
"@strudel.cycles/tone": "*",
"tone": "^14.7.77",
"webmidi": "^2.5.2"
}

View file

@ -1,3 +1,3 @@
# @strudel/mini
# @strudel.cycles/mini
This package contains the mini notation parser and pattern generator.

View file

@ -1,6 +1,6 @@
import * as krill from './krill-parser.js';
import * as strudel from '@strudel/core/strudel.mjs';
import { addMiniLocations } from '@strudel/eval/shapeshifter.mjs';
import * as strudel from '@strudel.cycles/core/strudel.mjs';
import { addMiniLocations } from '@strudel.cycles/eval/shapeshifter.mjs';
const { pure, Pattern, Fraction, stack, slowcat, sequence, timeCat, silence, reify } = strudel;

View file

@ -1,5 +1,5 @@
{
"name": "@strudel/mini",
"name": "@strudel.cycles/mini",
"version": "0.0.1",
"description": "Mini notation for strudel",
"main": "mini.mjs",
@ -25,7 +25,7 @@
},
"homepage": "https://github.com/tidalcycles/strudel#readme",
"dependencies": {
"@strudel/tone": "*",
"@strudel/eval": "*"
"@strudel.cycles/tone": "*",
"@strudel.cycles/eval": "*"
}
}

View file

@ -1,6 +1,6 @@
import { strict as assert } from 'assert';
import { mini } from '../mini.mjs';
import '@strudel/core/euclid.mjs';
import '@strudel.cycles/core/euclid.mjs';
describe('mini', () => {
const minV = (v) => mini(v)._firstCycleValues;

View file

@ -1,3 +1,3 @@
# @strudel/tonal
# @strudel.cycles/tonal
This package adds tonal / harmonic functions to strudel Patterns.

View file

@ -1,5 +1,5 @@
{
"name": "@strudel/tonal",
"name": "@strudel.cycles/tonal",
"version": "0.0.1",
"description": "Tonal functions for strudel",
"main": "tonal.mjs",
@ -25,6 +25,6 @@
},
"homepage": "https://github.com/tidalcycles/strudel#readme",
"dependencies": {
"@strudel/core": "*"
"@strudel.cycles/core": "*"
}
}

View file

@ -1,6 +1,6 @@
import { strict as assert } from 'assert';
import '../tonal.mjs'; // need to import this to add prototypes
import { pure } from '@strudel/core/strudel.mjs';
import { pure } from '@strudel.cycles/core/strudel.mjs';
describe('tonal', () => {
it('Should run tonal functions ', () => {

View file

@ -1,6 +1,6 @@
import { Note, Interval, Scale } from '@tonaljs/tonal';
import { Pattern as _Pattern } from '@strudel/core/strudel.mjs';
import { mod } from '@strudel/core/util.mjs';
import { Pattern as _Pattern } from '@strudel.cycles/core/strudel.mjs';
import { mod } from '@strudel.cycles/core/util.mjs';
const Pattern = _Pattern; // as any;

View file

@ -1,4 +1,4 @@
import { Pattern as _Pattern, stack, Hap, reify } from '@strudel/core/strudel.mjs';
import { Pattern as _Pattern, stack, Hap, reify } from '@strudel.cycles/core/strudel.mjs';
import _voicings from 'chord-voicings';
const { dictionaryVoicing, minTopNoteDiff, lefthand } = _voicings.default || _voicings; // parcel module resolution fuckup

View file

@ -1,8 +1,8 @@
# @strudel/tone
# @strudel.cycles/tone
This package adds Tone.js functions to strudel Patterns.
## Dev Notes
- `@tonejs/piano` has peer dependency on `webmidi@^2.5.1`! A newer version of webmidi will break.
- If you use Tone in another package, make sure to `import { Tone } from '@strudel/tone`, to ensure you get the same AudioContext.
- If you use Tone in another package, make sure to `import { Tone } from '@strudel.cycles/tone`, to ensure you get the same AudioContext.

View file

@ -1,5 +1,5 @@
import { Tone } from './tone.mjs';
import { Pattern } from '@strudel/core';
import { Pattern } from '@strudel.cycles/core';
export const getDrawContext = (id = 'test-canvas') => {
let canvas = document.querySelector('#' + id);

View file

@ -1,11 +1,11 @@
{
"name": "@strudel/tone",
"name": "@strudel.cycles/tone",
"version": "0.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@strudel/tone",
"name": "@strudel.cycles/tone",
"version": "0.0.1",
"license": "GPL-3.0-or-later",
"dependencies": {

View file

@ -1,5 +1,5 @@
{
"name": "@strudel/tone",
"name": "@strudel.cycles/tone",
"version": "0.0.1",
"description": "Tone.js API for strudel",
"main": "tone.mjs",
@ -22,7 +22,7 @@
},
"homepage": "https://github.com/tidalcycles/strudel#readme",
"dependencies": {
"@strudel/core": "*",
"@strudel.cycles/core": "*",
"@tonejs/piano": "^0.2.1",
"chord-voicings": "^0.0.1",
"tone": "^14.7.77"

View file

@ -1,4 +1,4 @@
import { Pattern } from '@strudel/core';
import { Pattern } from '@strudel.cycles/core';
Pattern.prototype.pianoroll = function ({
timeframe = 10,

View file

@ -1,6 +1,6 @@
import { strict as assert } from 'assert';
import '../tone.mjs';
import { pure } from '@strudel/core/strudel.mjs';
import { pure } from '@strudel.cycles/core/strudel.mjs';
import Tone from 'tone';
describe('tone', () => {

View file

@ -1,4 +1,4 @@
import { Pattern as _Pattern } from '@strudel/core';
import { Pattern as _Pattern } from '@strudel.cycles/core';
import * as _Tone from 'tone';
// import Tone from here, to make sure to get the same AudioContext
@ -26,7 +26,7 @@ const {
} = Tone;
import * as tonePiano from '@tonejs/piano';
const { Piano } = tonePiano;
import { getPlayableNoteValue } from '@strudel/core/util.mjs';
import { getPlayableNoteValue } from '@strudel.cycles/core/util.mjs';
// "balanced" | "interactive" | "playback";
// Tone.setContext(new Tone.Context({ latencyHint: 'playback', lookAhead: 1 }));

View file

@ -1,3 +1,3 @@
# @strudel/xen
# @strudel.cycles/xen
This package adds xenharmonic / microtonal functions to strudel Patterns.

View file

@ -1,5 +1,5 @@
{
"name": "@strudel/xen",
"name": "@strudel.cycles/xen",
"version": "0.0.1",
"description": "Xenharmonic API for strudel",
"main": "xen.mjs",
@ -24,6 +24,6 @@
},
"homepage": "https://github.com/tidalcycles/strudel#readme",
"dependencies": {
"@strudel/core": "*"
"@strudel.cycles/core": "*"
}
}

View file

@ -1,5 +1,5 @@
import Tune from './tunejs.js';
import { Pattern } from '@strudel/core/strudel.mjs';
import { Pattern } from '@strudel.cycles/core/strudel.mjs';
Pattern.prototype._tune = function (scale, tonic = 220) {
const tune = new Tune();

View file

@ -1,5 +1,5 @@
import { Pattern } from '@strudel/core/strudel.mjs';
import { mod } from '@strudel/core/util.mjs';
import { Pattern } from '@strudel.cycles/core/strudel.mjs';
import { mod } from '@strudel.cycles/core/util.mjs';
export function edo(name) {
if (!/^[1-9]+[0-9]*edo$/.test(name)) {