2016-03-24 15:41:02 +00:00
|
|
|
(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(){
|
|
|
|
|
2014-10-28 18:41:54 +00:00
|
|
|
"use strict";
|
2016-03-24 15:41:02 +00:00
|
|
|
|
2014-10-28 18:41:54 +00:00
|
|
|
var Tone;
|
|
|
|
//constructs the main Tone object
|
2015-05-23 22:14:03 +00:00
|
|
|
function Main(func){
|
2014-10-28 18:41:54 +00:00
|
|
|
Tone = func();
|
2014-10-02 22:55:24 +00:00
|
|
|
}
|
2014-10-28 18:41:54 +00:00
|
|
|
//invokes each of the modules with the main Tone object as the argument
|
2015-05-23 22:14:03 +00:00
|
|
|
function Module(func){
|
2014-10-28 18:41:54 +00:00
|
|
|
func(Tone);
|
2016-03-24 15:41:02 +00:00
|
|
|
}
|