mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
17 lines
No EOL
335 B
JavaScript
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();
|
|
};
|
|
}); |