mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-12 06:08:34 +00:00
13 lines
393 B
JavaScript
13 lines
393 B
JavaScript
import { strict as assert } from 'assert';
|
|
import '../tone.mjs';
|
|
import { pure } from '@strudel.cycles/core';
|
|
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']);
|
|
});
|
|
});
|