2019-01-27 18:05:20 +00:00
|
|
|
import MidSideMerge from "Tone/component/MidSideMerge";
|
|
|
|
import Basic from "helper/Basic";
|
|
|
|
import Signal from "Tone/signal/Signal";
|
|
|
|
import PassAudioStereo from "helper/PassAudioStereo";
|
|
|
|
import Test from "helper/Test";
|
2015-08-28 22:42:44 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
describe("MidSideMerge", function(){
|
2015-08-28 22:42:44 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
Basic(MidSideMerge);
|
2015-08-28 22:42:44 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
context("Merging", function(){
|
2015-08-28 22:42:44 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
it("handles inputs and outputs", function(){
|
|
|
|
var merge = new MidSideMerge();
|
|
|
|
merge.connect(Test);
|
|
|
|
Test.connect(merge.mid);
|
|
|
|
Test.connect(merge.side);
|
|
|
|
merge.dispose();
|
|
|
|
});
|
2015-08-28 22:42:44 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
it("passes the mid signal through", function(){
|
|
|
|
return PassAudioStereo(function(input){
|
|
|
|
var merge = new MidSideMerge().toMaster();
|
|
|
|
input.connect(merge.mid);
|
2015-08-28 22:42:44 +00:00
|
|
|
});
|
2019-01-27 18:05:20 +00:00
|
|
|
});
|
2015-08-28 22:42:44 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
it("passes the side signal through", function(){
|
|
|
|
return PassAudioStereo(function(input){
|
|
|
|
var merge = new MidSideMerge().toMaster();
|
|
|
|
input.connect(merge.side);
|
2015-08-28 22:42:44 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2017-12-30 16:26:29 +00:00
|
|
|
});
|
2019-01-27 18:05:20 +00:00
|
|
|
|