Tone.js/test/helper/Meter2.js
2016-12-15 12:49:51 -05:00

17 lines
No EOL
335 B
JavaScript

define(["Tone/core/Tone", "helper/Meter"], function (Tone, Meter) {
return function(callback, duration, channels){
var meter = new Meter(duration, channels);
meter.before(function(output){
callback(output, function testFn(cb){
meter.test(cb);
}, function(cb){
meter.after(cb);
});
});
meter.run();
};
});