mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-30 13:33:10 +00:00
f88f68081d
[skip ci]
26 lines
No EOL
487 B
JavaScript
26 lines
No EOL
487 B
JavaScript
(function(root, factory){
|
|
|
|
//UMD
|
|
if ( typeof define === "function" && define.amd ) {
|
|
define(function() {
|
|
return factory();
|
|
});
|
|
} else if (typeof module === "object") {
|
|
module.exports = factory();
|
|
} else {
|
|
root.Tone = factory();
|
|
}
|
|
|
|
}(this, function(){
|
|
|
|
"use strict";
|
|
|
|
var Tone;
|
|
//constructs the main Tone object
|
|
function Main(func){
|
|
Tone = func();
|
|
}
|
|
//invokes each of the modules with the main Tone object as the argument
|
|
function Module(func){
|
|
func(Tone);
|
|
} |