mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-28 12:33:12 +00:00
28 lines
699 B
TypeScript
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);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|