mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-13 22:58:36 +00:00
13 lines
405 B
JavaScript
13 lines
405 B
JavaScript
import { strict as assert } from 'assert';
|
|
import '../tone.mjs';
|
|
import { pure } from '@strudel.cycles/core/strudel.mjs';
|
|
import Tone from 'tone';
|
|
|
|
describe('tone', () => {
|
|
it('Should have working tone function', () => {
|
|
const s = synth().chain(out());
|
|
assert.deepStrictEqual(s, new Tone.Synth().chain(out()));
|
|
assert.deepStrictEqual(pure('c3').tone(s)._firstCycleValues, ['c3']);
|
|
});
|
|
});
|