rename org to strudel.cycles
This commit is contained in:
parent
ff4beaeb2c
commit
75097594b2
42 changed files with 140 additions and 140 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
4
packages/tone/package-lock.json
generated
4
packages/tone/package-lock.json
generated
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Pattern } from '@strudel/core';
|
||||
import { Pattern } from '@strudel.cycles/core';
|
||||
|
||||
Pattern.prototype.pianoroll = function ({
|
||||
timeframe = 10,
|
||||
|
|
|
|||
|
|
@ -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', () => {
|
||||
|
|
|
|||
|
|
@ -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 }));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue