Tone.js/test/helper/StereoSignal.js
tambien ed71d8141b amd to es6 import/export
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
2019-01-27 13:05:20 -05:00

9 lines
255 B
JavaScript

import Signal from "Tone/signal/Signal";
import Merge from "Tone/component/Merge";
export default function(l, r){
var merge = new Merge();
var left = new Signal(l).connect(merge, 0, 0);
var right = new Signal(r).connect(merge, 0, 1);
return merge;
}