Tone.js/Tone/component/channel/MidSideMerge.test.ts
2019-10-28 20:42:43 -04:00

28 lines
699 B
TypeScript

import { MidSideMerge } from "./MidSideMerge";
import { BasicTests } from "test/helper/Basic";
import { PassAudio } from "test/helper/PassAudio";
import { connectFrom, connectTo } from "test/helper/Connect";
describe("MidSideMerge", () => {
BasicTests(MidSideMerge);
context("Merging", () => {
it("handles inputs and outputs", () => {
const merge = new MidSideMerge();
merge.connect(connectTo());
connectFrom().connect(merge.mid);
connectFrom().connect(merge.side);
merge.dispose();
});
it("passes the mid signal through", () => {
return PassAudio((input) => {
const merge = new MidSideMerge().toDestination();
input.connect(merge.mid);
});
});
});
});