mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-31 22:18:44 +00:00
4 lines
No EOL
185 KiB
JavaScript
4 lines
No EOL
185 KiB
JavaScript
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jQuery")):"function"==typeof define&&define.amd?define(["jQuery"],e):"object"==typeof exports?exports.Notone=e(require("jQuery")):n.Notone=e(n.jQuery)}(this,function(__WEBPACK_EXTERNAL_MODULE_2__){return function(n){function e(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return n[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var t={};return e.m=n,e.c=t,e.p="",e(0)}([function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2), __webpack_require__(7), __webpack_require__(1), __webpack_require__(13), __webpack_require__(12), __webpack_require__(14)], __WEBPACK_AMD_DEFINE_RESULT__ = function ($, Core, Util, GUI, Drawer, Meter) {\n\n var Notone = {};\n\n /**\n * the drawer if it exists\n */\n Notone.drawer = null;\n\n /**\n * all of the GUIs\n * @type {Object}\n */\n Notone.guis = {};\n\n /**\n * the default configutation \n * @type {Object}\n * @private\n */\n Notone._defaultConfig = {\n "expandInDrawer" : false,\n "expandChildren" : false,\n "hideDrawer" : false,\n "search" : false,\n "drawer" : true,\n "container" : "body",\n };\n\n /**\n * the configured options\n * @private\n */\n Notone._options = {};\n\n /**\n * configuration\n * @param {Object} obj \n */\n Notone.config = function(obj){\n Core.config(obj);\n Notone._options = Util.defaultArg(obj, Notone._defaultConfig);\n };\n\n /**\n * Create a new Tone object of the Constructor type\n * automatically adds it to the tracked objects\n * with the given name (or the class\' name)\n * if no name is given.\n * @param {function} Constr\n * @param {string=} name\n * @return {Object} an instance of the constructor\n */\n Notone.create = function(Constr, name, parameters){\n var tone = new Constr();\n Notone.add(tone, name, parameters);\n return tone;\n };\n\n /**\n * Adds an insteance of a tone object to the list of tracked\n * objects\n * @param {Tone} tone the tone object to track\n * @param {string=} name the name the object should be remembered as.\n */\n Notone.add = function(tone, name, parameters){\n Core.add(tone, name, parameters);\n\n //get the description\n var GUIConstr = GUI;\n if (tone.toString() === "Meter"){\n GUIConstr = Meter;\n } \n var gui = new GUIConstr(tone, {\n "name" : name,\n "container" : Notone._options.container,\n "parameters" : parameters,\n "expanded" : Notone._options.expandChildren,\n });\n\n if (Notone._options.drawer){\n if (Notone.drawer === null){\n Notone.drawer = new Drawer(Notone._options);\n }\n Notone.drawer.add(gui);\n }\n Notone.guis[name] = gui;\n return gui;\n };\n\n /**\n * set the attributes from a JSON object\n * @param {JSON} json \n */\n Notone.load = function(json){\n Core.load(json);\n };\n\n /**\n * Save the current configuration to local storage\n * or a file.\n */\n Notone.save = function(){\n Core.save();\n };\n\n /**\n * get the GUI object from the name\n * @param {string} name\n */\n Notone.get = function(name){\n return Notone.guis[name];\n };\n\n return Notone;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/Main.js\n ** module id = 0\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/Main.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\n var Util = {};\n\n //borrowed from underscore.js\n Util.isUndef = function(val){\n return val === void 0;\n };\n\n Util.isFunction = function(val){\n return typeof val === "function";\n };\n\n Util.isObject = function(val){\n return typeof val === "object";\n };\n\n Util.isArray = function(val){\n return Array.isArray(val);\n };\n\n Util.isString = function(val){\n return typeof val === "string";\n };\n\n Util.isNumber = function(val){\n return isFinite(val);\n };\n\n /**\n * if a the given is undefined, use the fallback. \n * if both given and fallback are objects, given\n * will be augmented with whatever properties it\'s\n * missing which are in fallback\n *\n * Borrowed from Tone.js\n * \n * @param {*} given \n * @param {*} fallback \n * @return {*} \n */\n Util.defaultArg = function(given, fallback){\n if (typeof given === "object" && typeof fallback === "object" && \n !Array.isArray(given) && !(given instanceof jQuery)){\n var ret = {};\n //make a deep copy of the given object\n for (var givenProp in given) {\n ret[givenProp] = Util.defaultArg(given[givenProp], given[givenProp]);\n }\n for (var prop in fallback) {\n ret[prop] = Util.defaultArg(given[prop], fallback[prop]);\n }\n return ret;\n } else {\n return Util.isUndef(given) ? fallback : given;\n }\n };\n\n /**\n * extend the child with the parent\n * @param {function} Child \n * @param {function} Parent \n */\n Util.extend = function(Child, Parent){\n function TempConstructor(){}\n TempConstructor.prototype = Parent.prototype;\n Child.prototype = new TempConstructor();\n /** @override */\n Child.prototype.constructor = Child;\n Child.prototype.superConstructor = Parent;\n };\n\n return Util;\n}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./Core/Util.js\n ** module id = 1\n ** module chunks = 0 1\n **/\n//# sourceURL=webpack:///./Core/Util.js?')},function(module,exports,__webpack_require__){eval('module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n/*****************\n ** WEBPACK FOOTER\n ** external "jQuery"\n ** module id = 2\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///external_%22jQuery%22?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(10), __webpack_require__(2), __webpack_require__(30), __webpack_require__(26)], __WEBPACK_AMD_DEFINE_RESULT__ = function (MicroEvent, $, parameterStyle, TypeDefs) {\n\n var Parameter = function(param, name, type, desc){\n\n this.param = param;\n\n this.name = name;\n\n this.element = $("<div>", {\n "class" : "Parameter",\n "title" : desc\n });\n\n this.title = $("<span>", {\n "id" : "Name",\n "text" : name,\n }).appendTo(this.element);\n\n this.value = $("<span>").prop("id", "Value")\n .appendTo(this.element);\n\n this.unitText = $("<span>", {\n "id" : "Units",\n }).appendTo(this.element);\n\n this._isVisible = false;\n\n this.setUnits(type);\n };\n\n MicroEvent.mixin(Parameter);\n\n Parameter.prototype.setUnits = function(unit){\n var unitText = "";\n this.units = unit;\n for (var typeName in TypeDefs){\n var type = TypeDefs[typeName];\n if (unit === type.value){\n this.units = type.name;\n }\n }\n switch(this.units){\n case "Frequency" : unitText = "hz"; break;\n case "NormalRange" : unitText = "0-1"; break;\n case "Cents" : unitText = "cents"; break;\n case "Time" : unitText = "time"; break;\n case "Positive" : unitText = "0+"; break;\n case "Decibels" : unitText = "db"; break;\n case "Degrees" : unitText = "deg"; break;\n default : unitText = "";\n }\n this.unitText.text(unitText);\n };\n\n Parameter.prototype.validateInput = function(value){\n switch(this.units){\n case "Frequency" : return Math.max(value, 0);\n case "NormalRange" : return Math.max(Math.min(value, 1), 0);\n case "Degrees" : return Math.max(Math.min(value, 360), 0);\n case "Time" : return Math.max(value, 0);\n case "Decibels" : return Math.min(value, 20);\n case "Positive" : return Math.max(value, 0);\n default : return value;\n }\n };\n\n Parameter.prototype.set = function(val){\n try {\n this.param[this.name] = this.validateInput(val);\n //if it\'s not open, open it\n if (this.element.hasClass("Hidden")){\n this.open();\n }\n } catch (e){\n this.value.addClass("Error");\n setTimeout(function(){\n this.value.removeClass("Error");\n }.bind(this), 10);\n }\n return this.get();\n };\n\n Parameter.prototype.get = function(){\n return this.param[this.name];\n };\n\n Parameter.prototype.update = function(){\n this.set(this.get());\n };\n\n Parameter.prototype.open = function(){\n this.element.removeClass("Hidden");\n this._isVisible = true;\n };\n\n Parameter.prototype.close = function(){\n this.element.addClass("Hidden");\n this._isVisible = false;\n };\n\n Parameter.prototype.dispose = function(){\n this.element.children().remove();\n this.element.remove();\n this.param = null;\n };\n\n Parameter.isType = function(param, name){\n return false;\n };\n\n\n /*Parameter.prototype.error = function(){\n //problem with this attribute\n };*/\n\n return Parameter;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/param/Parameter.js\n ** module id = 3\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/param/Parameter.js?')},function(module,exports,__webpack_require__){eval('/*\r\n MIT License http://www.opensource.org/licenses/mit-license.php\r\n Author Tobias Koppers @sokra\r\n*/\r\n// css base code, injected by the css-loader\r\nmodule.exports = function() {\r\n var list = [];\r\n\r\n // return the list of modules as css string\r\n list.toString = function toString() {\r\n var result = [];\r\n for(var i = 0; i < this.length; i++) {\r\n var item = this[i];\r\n if(item[2]) {\r\n result.push("@media " + item[2] + "{" + item[1] + "}");\r\n } else {\r\n result.push(item[1]);\r\n }\r\n }\r\n return result.join("");\r\n };\r\n\r\n // import a list of modules into the list\r\n list.i = function(modules, mediaQuery) {\r\n if(typeof modules === "string")\r\n modules = [[null, modules, ""]];\r\n var alreadyImportedModules = {};\r\n for(var i = 0; i < this.length; i++) {\r\n var id = this[i][0];\r\n if(typeof id === "number")\r\n alreadyImportedModules[id] = true;\r\n }\r\n for(i = 0; i < modules.length; i++) {\r\n var item = modules[i];\r\n // skip already imported module\r\n // this implementation is not 100% perfect for weird media query combinations\r\n // when a module is imported multiple times with different media queries.\r\n // I hope this will never occur (Hey this way we have smaller bundles)\r\n if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {\r\n if(mediaQuery && !item[2]) {\r\n item[2] = mediaQuery;\r\n } else if(mediaQuery) {\r\n item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";\r\n }\r\n list.push(item);\r\n }\r\n }\r\n };\r\n return list;\r\n};\r\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/css-loader/lib/css-base.js\n ** module id = 4\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/css-loader/lib/css-base.js?')},function(module,exports,__webpack_require__){eval('/*\r\n MIT License http://www.opensource.org/licenses/mit-license.php\r\n Author Tobias Koppers @sokra\r\n*/\r\nvar stylesInDom = {},\r\n memoize = function(fn) {\r\n var memo;\r\n return function () {\r\n if (typeof memo === "undefined") memo = fn.apply(this, arguments);\r\n return memo;\r\n };\r\n },\r\n isOldIE = memoize(function() {\r\n return /msie [6-9]\\b/.test(window.navigator.userAgent.toLowerCase());\r\n }),\r\n getHeadElement = memoize(function () {\r\n return document.head || document.getElementsByTagName("head")[0];\r\n }),\r\n singletonElement = null,\r\n singletonCounter = 0;\r\n\r\nmodule.exports = function(list, options) {\r\n if(false) {\r\n if(typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");\r\n }\r\n\r\n options = options || {};\r\n // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\r\n // tags it will allow on a page\r\n if (typeof options.singleton === "undefined") options.singleton = isOldIE();\r\n\r\n var styles = listToStyles(list);\r\n addStylesToDom(styles, options);\r\n\r\n return function update(newList) {\r\n var mayRemove = [];\r\n for(var i = 0; i < styles.length; i++) {\r\n var item = styles[i];\r\n var domStyle = stylesInDom[item.id];\r\n domStyle.refs--;\r\n mayRemove.push(domStyle);\r\n }\r\n if(newList) {\r\n var newStyles = listToStyles(newList);\r\n addStylesToDom(newStyles, options);\r\n }\r\n for(var i = 0; i < mayRemove.length; i++) {\r\n var domStyle = mayRemove[i];\r\n if(domStyle.refs === 0) {\r\n for(var j = 0; j < domStyle.parts.length; j++)\r\n domStyle.parts[j]();\r\n delete stylesInDom[domStyle.id];\r\n }\r\n }\r\n };\r\n}\r\n\r\nfunction addStylesToDom(styles, options) {\r\n for(var i = 0; i < styles.length; i++) {\r\n var item = styles[i];\r\n var domStyle = stylesInDom[item.id];\r\n if(domStyle) {\r\n domStyle.refs++;\r\n for(var j = 0; j < domStyle.parts.length; j++) {\r\n domStyle.parts[j](item.parts[j]);\r\n }\r\n for(; j < item.parts.length; j++) {\r\n domStyle.parts.push(addStyle(item.parts[j], options));\r\n }\r\n } else {\r\n var parts = [];\r\n for(var j = 0; j < item.parts.length; j++) {\r\n parts.push(addStyle(item.parts[j], options));\r\n }\r\n stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\r\n }\r\n }\r\n}\r\n\r\nfunction listToStyles(list) {\r\n var styles = [];\r\n var newStyles = {};\r\n for(var i = 0; i < list.length; i++) {\r\n var item = list[i];\r\n var id = item[0];\r\n var css = item[1];\r\n var media = item[2];\r\n var sourceMap = item[3];\r\n var part = {css: css, media: media, sourceMap: sourceMap};\r\n if(!newStyles[id])\r\n styles.push(newStyles[id] = {id: id, parts: [part]});\r\n else\r\n newStyles[id].parts.push(part);\r\n }\r\n return styles;\r\n}\r\n\r\nfunction createStyleElement() {\r\n var styleElement = document.createElement("style");\r\n var head = getHeadElement();\r\n styleElement.type = "text/css";\r\n head.appendChild(styleElement);\r\n return styleElement;\r\n}\r\n\r\nfunction createLinkElement() {\r\n var linkElement = document.createElement("link");\r\n var head = getHeadElement();\r\n linkElement.rel = "stylesheet";\r\n head.appendChild(linkElement);\r\n return linkElement;\r\n}\r\n\r\nfunction addStyle(obj, options) {\r\n var styleElement, update, remove;\r\n\r\n if (options.singleton) {\r\n var styleIndex = singletonCounter++;\r\n styleElement = singletonElement || (singletonElement = createStyleElement());\r\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false);\r\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true);\r\n } else if(obj.sourceMap &&\r\n typeof URL === "function" &&\r\n typeof URL.createObjectURL === "function" &&\r\n typeof URL.revokeObjectURL === "function" &&\r\n typeof Blob === "function" &&\r\n typeof btoa === "function") {\r\n styleElement = createLinkElement();\r\n update = updateLink.bind(null, styleElement);\r\n remove = function() {\r\n styleElement.parentNode.removeChild(styleElement);\r\n if(styleElement.href)\r\n URL.revokeObjectURL(styleElement.href);\r\n };\r\n } else {\r\n styleElement = createStyleElement();\r\n update = applyToTag.bind(null, styleElement);\r\n remove = function() {\r\n styleElement.parentNode.removeChild(styleElement);\r\n };\r\n }\r\n\r\n update(obj);\r\n\r\n return function updateStyle(newObj) {\r\n if(newObj) {\r\n if(newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap)\r\n return;\r\n update(obj = newObj);\r\n } else {\r\n remove();\r\n }\r\n };\r\n}\r\n\r\nvar replaceText = (function () {\r\n var textStore = [];\r\n\r\n return function (index, replacement) {\r\n textStore[index] = replacement;\r\n return textStore.filter(Boolean).join(\'\\n\');\r\n };\r\n})();\r\n\r\nfunction applyToSingletonTag(styleElement, index, remove, obj) {\r\n var css = remove ? "" : obj.css;\r\n\r\n if (styleElement.styleSheet) {\r\n styleElement.styleSheet.cssText = replaceText(index, css);\r\n } else {\r\n var cssNode = document.createTextNode(css);\r\n var childNodes = styleElement.childNodes;\r\n if (childNodes[index]) styleElement.removeChild(childNodes[index]);\r\n if (childNodes.length) {\r\n styleElement.insertBefore(cssNode, childNodes[index]);\r\n } else {\r\n styleElement.appendChild(cssNode);\r\n }\r\n }\r\n}\r\n\r\nfunction applyToTag(styleElement, obj) {\r\n var css = obj.css;\r\n var media = obj.media;\r\n var sourceMap = obj.sourceMap;\r\n\r\n if(media) {\r\n styleElement.setAttribute("media", media)\r\n }\r\n\r\n if(styleElement.styleSheet) {\r\n styleElement.styleSheet.cssText = css;\r\n } else {\r\n while(styleElement.firstChild) {\r\n styleElement.removeChild(styleElement.firstChild);\r\n }\r\n styleElement.appendChild(document.createTextNode(css));\r\n }\r\n}\r\n\r\nfunction updateLink(linkElement, obj) {\r\n var css = obj.css;\r\n var media = obj.media;\r\n var sourceMap = obj.sourceMap;\r\n\r\n if(sourceMap) {\r\n // http://stackoverflow.com/a/26603875\r\n css += "\\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";\r\n }\r\n\r\n var blob = new Blob([css], { type: "text/css" });\r\n\r\n var oldSrc = linkElement.href;\r\n\r\n linkElement.href = URL.createObjectURL(blob);\r\n\r\n if(oldSrc)\r\n URL.revokeObjectURL(oldSrc);\r\n}\r\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/style-loader/addStyles.js\n ** module id = 5\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/style-loader/addStyles.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\n var File = {};\n\n File.write = function(name, data){\n //create an <a> tag\n var a = document.createElement("a");\n document.body.appendChild(a);\n a.style = "display: none";\n //stringify the json\n var json = JSON.stringify(data, undefined, "\\t");\n var blob = new Blob([json], {type: "application/json"});\n var url = URL.createObjectURL(blob); \n //download the file\n a.href = url;\n a.download = name;\n a.click();\n };\n\n return File;\n}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./Core/File.js\n ** module id = 6\n ** module chunks = 0 1\n **/\n//# sourceURL=webpack:///./Core/File.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(8)], __WEBPACK_AMD_DEFINE_RESULT__ = function(Util, Storage){\n\n var Notone = {};\n\n /**\n * all of the tracked objects\n * @type {Object}\n */\n Notone.all = {};\n\n /**\n * the default configutation \n * @type {Object}\n * @private\n */\n Notone._defaultConfig = {\n "storage" : {\n //local | file\n "type" : "local",\n //the name of the file or in local storage\n "name" : "Notone",\n //if the file should be wrapped in \'define();\'\n "amd" : false,\n }\n };\n\n /**\n * configuration\n * @param {Object} obj \n */\n Notone.config = function(obj){\n\n };\n\n /**\n * Create a new Tone object of the Constructor type\n * automatically adds it to the tracked objects\n * with the given name (or the class\' name)\n * if no name is given.\n * @param {function} Constr\n * @param {string=} name\n * @return {Object} an instance of the constructor\n */\n Notone.create = function(Constr, name){\n var tone = new Constr();\n name = Util.defaultArg(name, tone.toString());\n Notone.add(tone, name);\n return tone;\n };\n\n /**\n * Adds an insteance of a tone object to the list of tracked\n * objects\n * @param {Tone} tone the tone object to track\n * @param {string=} name the name the object should be remembered as.\n */\n Notone.add = function(tone, name, params){\n name = Util.defaultArg(name, tone.toString());\n //if it\'s in the storage, \n if (Storage.has(name)){\n //retrieve the value\n tone.set(Storage.get(name));\n }\n //add it to the objects\n Notone.all[name] = {\n "tone" : tone,\n "parameters" : params\n };\n return tone;\n };\n\n /**\n * set the attributes from a JSON object\n * @param {JSON} json \n */\n Notone.load = function(json){\n for (var name in json){\n Notone.all[name].set(json[name]);\n }\n };\n\n /**\n * Save the current configuration to local storage\n * or a file.\n */\n Notone.save = function(){\n var json = {};\n for (var name in Notone.all){\n var obj = Notone.all[name];\n json[name] = obj.tone.get(obj.parameters);\n }\n Storage.save(json);\n };\n\n return Notone;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./Core/Main.js\n ** module id = 7\n ** module chunks = 0 1\n **/\n//# sourceURL=webpack:///./Core/Main.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(6)], __WEBPACK_AMD_DEFINE_RESULT__ = function (File) {\n\n var Storage = {};\n\n Storage.name = "Notone";\n\n /**\n * all of the objects\n * @type {object}\n */\n Storage.all = (function(){\n //check for stored items on load\n var storedItems = localStorage.getItem(Storage.name);\n if (storedItems !== null){\n return JSON.parse(storedItems);\n } else {\n return {};\n }\n }());\n\n /**\n * get a value given a name\n * @param {string} name \n * @return {object} \n */\n Storage.get = function(name){\n return Storage.all[name];\n };\n\n /**\n * set the value for a given name\n * @param {string} name \n * @param {object} value \n * @return {boolean} \n */\n Storage.set = function(name, value){\n Storage.all[name] = value;\n };\n\n /**\n * test if there is a given key in storage\n * @param {string} name \n * @return {boolean} \n */\n Storage.has = function(name){\n return Storage.all.hasOwnProperty(name);\n };\n\n /**\n * store the description in local storage\n */\n Storage.save = function(json){\n Storage.all = json;\n localStorage.setItem(Storage.name, JSON.stringify(Storage.all));\n };\n\n return Storage;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./Core/Storage.js\n ** module id = 8\n ** module chunks = 0 1\n **/\n//# sourceURL=webpack:///./Core/Storage.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(3), __webpack_require__(1), __webpack_require__(2)], __WEBPACK_AMD_DEFINE_RESULT__ = function (Parameter, Util, $) {\n\n var NumberBox = function(param, name, type, description){\n Parameter.call(this, param, name, type, description);\n\n var valString = this.get().toString();\n\n this.precision = this.getPrecision(valString);\n\n this.numBox = $("<input>").appendTo(this.value)\n .addClass("Number");\n\n this.set(this.get());\n this.numBox.on("mousedown", this.mousedown.bind(this));\n this.numBox.on("change", this.change.bind(this));\n this.numBox.on("dragstart", function(e){\n e.preventDefault();\n e.stopPropagation();\n });\n $("body").on("keydown", this.keypress.bind(this));\n\n this.mousedragfunc = this.mousedrag.bind(this);\n\n this.clickY = 0;\n\n this.power = -1;\n\n this.originalValue = 0;\n\n this.wasDragged = false;\n };\n\n Util.extend(NumberBox, Parameter);\n\n NumberBox.prototype.keypress = function(e){\n if (this.numBox.is(":focus")){\n if (e.which === 13){\n this.numBox.blur();\n this.trigger("change", this);\n } else {\n if (e.which === 38){\n e.preventDefault();\n this.getPower();\n this.changeVal(1);\n } else if (e.which === 40){\n e.preventDefault();\n this.getPower();\n this.changeVal(-1);\n } else if (e.which === 39){\n if (this.numBox.get(0).selectionEnd === this.numBox.val().length){\n e.preventDefault();\n this.power--;\n this.precision++;\n this.changeVal(0);\n }\n }\n this.originalValue = this.get();\n }\n }\n };\n\n NumberBox.prototype.change = function(e){\n var val = this.numBox.val();\n this.precision = this.getPrecision(val);\n this.set(val);\n };\n\n NumberBox.prototype.set = function(val){\n val = parseFloat(val);\n val = Parameter.prototype.set.call(this, val);\n this.precision = Math.min(this.precision, 4);\n this.numBox.val(val.toFixed(this.precision)); \n };\n\n NumberBox.prototype.changeVal = function(delta){\n var pow = Math.pow(10, this.power);\n var newVal = this.originalValue + delta * pow;\n this.set(newVal);\n newVal = newVal.toString();\n var newValDecimal = newVal.indexOf(".");\n newValDecimal = newValDecimal === -1 ? newVal.length : newValDecimal;\n var pos = newValDecimal - this.power;\n if (newValDecimal < pos){\n pos += 1;\n }\n this.numBox.get(0).setSelectionRange(pos - 1, pos);\n };\n\n NumberBox.prototype.getPower = function(){\n var val = this.numBox.val();\n var box = this.numBox.get(0);\n var position = box.selectionEnd;\n var negative = val.indexOf("-") === 0;\n var decimalPlace = val.indexOf(".");\n decimalPlace = decimalPlace === -1 ? val.length : decimalPlace;\n if (decimalPlace < position){\n this.power = decimalPlace - position + 1;\n } else {\n this.power = decimalPlace - position;\n }\n\n return this.power;\n };\n\n NumberBox.prototype.getPrecision = function(val){\n var precision = 0;\n if (val.indexOf(".") !== -1){\n precision = val.split(".")[1].length;\n } \n if (Math.abs(parseFloat(val)) < 10){\n precision = Math.max(precision, 1);\n }\n return precision;\n };\n\n NumberBox.prototype.mouseup = function(e){\n $("body").off("mousemove", this.mousedragfunc);\n if (this.wasDragged){\n this.numBox.removeClass("DraggingValue");\n this.numBox.blur();\n this.trigger("change", this);\n }\n };\n\n NumberBox.prototype.mousedrag = function(e){\n e.preventDefault();\n e.stopPropagation();\n if (!this.wasDragged){\n this.numBox.addClass("DraggingValue");\n this.wasDragged = true;\n this.getPower();\n }\n var mult = this.numBox.offset().top + this.clickY - e.pageY;\n this.changeVal(mult);\n };\n\n NumberBox.prototype.mousedown = function(e){\n // e.preventDefault();\n // e.stopPropagation();\n $("body").one("mouseup", this.mouseup.bind(this));\n $("body").on("mousemove", this.mousedragfunc);\n this.clickY = e.offsetY;\n var numVal = this.numBox.val();\n this.originalValue = parseFloat(numVal);\n this.precision = this.getPrecision(numVal);\n this.wasDragged = false;\n };\n\n NumberBox.isType = function(param, name){\n return isFinite(param[name]);\n };\n\n return NumberBox;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/param/Number.js\n ** module id = 9\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/param/Number.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\n /**\n * MicroEvent - to make any js object an event emitter (server or browser)\n * \n * - pure javascript - server compatible, browser compatible\n * - dont rely on the browser doms\n * - super simple - you get it immediatly, no mistery, no magic involved\n *\n * - create a MicroEventDebug with goodies to debug\n * - make it safer to use\n */\n\n var MicroEvent = function(){};\n MicroEvent.prototype = {\n on : function(event, fct){\n this._events = this._events || {};\n this._events[event] = this._events[event] || [];\n this._events[event].push(fct);\n },\n off : function(event, fct){\n this._events = this._events || {};\n if( event in this._events === false ) return;\n this._events[event].splice(this._events[event].indexOf(fct), 1);\n },\n trigger : function(event /* , args... */){\n this._events = this._events || {};\n if( event in this._events === false ) return;\n for(var i = 0; i < this._events[event].length; i++){\n this._events[event][i].apply(this, Array.prototype.slice.call(arguments, 1));\n }\n }\n };\n\n /**\n * mixin will delegate all MicroEvent.js function in the destination object\n *\n * - require("MicroEvent").mixin(Foobar) will make Foobar able to use MicroEvent\n *\n * @param {Object} the object which will support MicroEvent\n */\n MicroEvent.mixin = function(destObject){\n var props = ["on", "off", "trigger"];\n for(var i = 0; i < props.length; i ++){\n if( typeof destObject === "function" ){\n destObject.prototype[props[i]] = MicroEvent.prototype[props[i]];\n }else{\n destObject[props[i]] = MicroEvent.prototype[props[i]];\n }\n }\n return destObject;\n };\n\n return MicroEvent;\n}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/util/MicroEvent.js\n ** module id = 10\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/util/MicroEvent.js?')},function(module,exports,__webpack_require__){eval("var __WEBPACK_AMD_DEFINE_RESULT__;/**\n * requestAnimationFrame version: \"0.0.17\" Copyright (c) 2011-2012, Cyril Agosta ( cyril.agosta.dev@gmail.com) All Rights Reserved.\n * Available via the MIT license.\n * see: http://github.com/cagosta/requestAnimationFrame for details\n *\n * http://paulirish.com/2011/requestanimationframe-for-smart-animating/\n * http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating\n * requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel\n * MIT license\n *\n */\n\n\n( function( global ) {\n\n\n ( function() {\n\n\n if ( global.requestAnimationFrame ) {\n\n return;\n\n }\n\n if ( global.webkitRequestAnimationFrame ) { // Chrome <= 23, Safari <= 6.1, Blackberry 10\n\n global.requestAnimationFrame = global[ 'webkitRequestAnimationFrame' ];\n global.cancelAnimationFrame = global[ 'webkitCancelAnimationFrame' ] || global[ 'webkitCancelRequestAnimationFrame' ];\n\n }\n\n // IE <= 9, Android <= 4.3, very old/rare browsers\n\n var lastTime = 0;\n\n global.requestAnimationFrame = function( callback ) {\n\n var currTime = new Date().getTime();\n\n var timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) );\n\n var id = global.setTimeout( function() {\n\n callback( currTime + timeToCall );\n\n }, timeToCall );\n\n lastTime = currTime + timeToCall;\n\n return id; // return the id for cancellation capabilities\n\n };\n\n global.cancelAnimationFrame = function( id ) {\n\n clearTimeout( id );\n\n };\n\n } )();\n\n if ( true ) {\n\n !(__WEBPACK_AMD_DEFINE_RESULT__ = function() {\n\n return global.requestAnimationFrame;\n\n }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }\n\n} )( window );\n\n/*****************\n ** WEBPACK FOOTER\n ** ./bower_components/requestAnimationFrame/app/requestAnimationFrame.js\n ** module id = 11\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./bower_components/requestAnimationFrame/app/requestAnimationFrame.js?");
|
|
},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2), __webpack_require__(27)], __WEBPACK_AMD_DEFINE_RESULT__ = function ($) {\n \n var Drawer = function(options){\n\n this.element = $("<div>", {\n "id" : "NotoneDrawer"\n }).appendTo(options.container);\n\n /**\n * the search bar\n */\n this.search = $("<div>", {\n "id" : "Search"\n }).appendTo(this.element);\n\n this.searchText = $("<input>", {\n "type" : "text"\n }).appendTo(this.search)\n .on("input", this.filter.bind(this));\n\n this.clearButton = $("<div>", {\n "id" : "Clear"\n }).appendTo(this.search).text("\\u2715")\n .on("click touchstart", this.clearSearch.bind(this));\n\n /**\n * little indicator to open the drawer\n * @type {[type]}\n */\n this.openText = $("<div>", {\n "id" : "OpenText",\n }).appendTo(this.element)\n .on("click", this.toggleOpen.bind(this));\n\n /**\n * the container of all the tones\n */\n this.tonesContainer = $("<div>", {\n "id" : "Tones"\n }).appendTo(this.element);\n\n /**\n * the tone objects in the drawer\n */\n this.tones = {};\n\n /**\n * if the added elements are expanded\n */\n this.expanded = options.expandInDrawer;\n\n /**\n * the search box config\n */\n if (!options.hideDrawer){\n this.element.addClass("Expanded");\n } \n /**\n * the search box config\n */\n if (options.search){\n this.search.addClass("Visible");\n }\n };\n\n Drawer.prototype.add = function(gui){\n if (this.expanded){\n this.tonesContainer.append(gui.element);\n } else {\n this.tonesContainer.append(gui.openButton);\n gui.draggable();\n gui.close();\n }\n this.tones[gui.name] = gui;\n };\n\n Drawer.prototype.toggleOpen = function(e){\n e.preventDefault();\n this.element.toggleClass("Expanded");\n };\n\n Drawer.prototype.filter = function(){\n var find = this.searchText.val().toLowerCase();\n for (var name in this.tones){\n var gui = this.tones[name];\n var element = gui.element;\n if (!this.expanded){\n element = gui.openButton;\n }\n if (name.toLowerCase().indexOf(find) !== -1){\n element.css("display", "inherit");\n } else {\n element.css("display", "none");\n }\n }\n };\n\n Drawer.prototype.clearSearch = function(e){\n e.preventDefault();\n this.searchText.val("");\n this.filter();\n };\n\n return Drawer;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/Drawer.js\n ** module id = 12\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/Drawer.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(10), __webpack_require__(1), __webpack_require__(16), __webpack_require__(20), \n __webpack_require__(28), __webpack_require__(25), __webpack_require__(11)], __WEBPACK_AMD_DEFINE_RESULT__ = function (MicroEvent, Util, Parameter, Draggable, mainStyle, members, requestAnimationFrame) {\n\n var zIndex = 1;\n\n var GUI = function(tone, options){\n\n this.givenParameters = options.parameters;\n\n //defaults\n options = Util.defaultArg(options, {\n "container" : $("body"),\n "parameters" : Object.keys(tone.get()),\n "name" : tone.toString(),\n });\n\n /**\n * the name\n */\n this.name = options.name;\n\n /**\n * the tone object\n * @type {Tone}\n * @private\n */\n this._tone = tone;\n\n /**\n * the parameters\n * @type {Object}\n */\n this.params = {};\n\n /**\n * this element\n */\n this.element = $("<div>").addClass("Notone").appendTo(options.container)\n .prop("id", options.name);\n\n /**\n * the container\n */\n this.container = $(options.container);\n\n /**\n * the title\n */\n this.title = $("<div>").prop("id", "Title").text(this.name)\n .appendTo(this.element);\n\n /**\n * the close button\n */\n this.closeButton = $("<div>", {\n "id" : "Close",\n "title" : "close",\n "text" : "\\u2715"\n }).on("click touchstart", this._close.bind(this));\n\n /**\n * where the parameters are contained\n */\n this.parametersContainer = $("<div>").prop("id", "ParameterContainer").appendTo(this.element);\n\n /**\n * where the notones are contained\n */\n this.notones = $("<div>").prop("id", "NotoneContainer").appendTo(this.element);\n\n /**\n * the open button\n */\n this.openButton = $("<div>").prop("id", "OpenButton")\n .on("click", this._open.bind(this))\n .text(this.name);\n\n //position it\n this.isInner = !Util.isUndef(options.parent);\n\n /**\n * the description of the members\n */\n this.members = members[tone.toString()];\n\n if (this.isInner){\n this.openButton.appendTo(options.parent);\n this.openButton.css("cursor", "pointer");\n this.closeButton.appendTo(this.title);\n this.close(); \n this.draggable();\n }\n\n //add all of the parameters\n for (var i = 0; i < options.parameters.length; i++){\n var attr = options.parameters[i];\n this.add(tone, attr, options);\n }\n };\n\n /**\n * Mixin MicroEvent\n */\n MicroEvent.mixin(GUI);\n\n /**\n * iterate over each of the pararmeters\n */\n GUI.prototype.forEach = function(func){\n for (var attr in this.params){\n if (this.params[attr] instanceof GUI){\n this.params[attr].forEach(func);\n } else {\n func(this.params[attr]);\n }\n }\n };\n\n /**\n * iterate over each of the pararmeters\n */\n GUI.prototype.add = function(tone, attr, options){\n if (Parameter.isType(tone, attr)){\n var type = this.members[attr] && this.members[attr].type ? this.members[attr].type[0] : undefined;\n var desc = this.members[attr] && this.members[attr].description ? this.members[attr].description : "";\n var param = Parameter.create(tone, attr, type, desc);\n this.parametersContainer.append(param.element);\n this.params[attr] = param;\n } else {\n this.params[attr] = new GUI(tone[attr], {\n container : options.expanded ? this.element : this.container,\n parent : !options.expanded ? this.notones : undefined,\n name : attr,\n // parameters : options.parameters[attr]\n });\n }\n this.params[attr].on("change", this._waschanged.bind(this));\n };\n\n GUI.prototype._waschanged = function(){\n this.trigger("change", this);\n if (!this.isInner){\n this.update();\n }\n };\n\n GUI.prototype._updateClicked = function(e){\n e.preventDefault();\n e.stopPropagation();\n this.update();\n };\n\n GUI.prototype.update = function(){\n var vals = this._tone.get();\n this.set(vals);\n };\n\n GUI.prototype.listen = function(){\n var self = this;\n (function update(){\n requestAnimationFrame(update);\n self.update();\n }());\n };\n\n GUI.prototype._close = function(e){\n e.preventDefault();\n e.stopPropagation();\n this.close();\n };\n\n GUI.prototype._open = function(e){\n e.preventDefault();\n e.stopPropagation();\n //open it to the right of this element\n var target = $(e.target);\n var offset = target.offset();\n var left = offset.left + target.width() + 2;\n var top = offset.top;\n if (left + this.element.width() > this.container.width()){\n left = offset.left;\n top += target.height() + 2;\n }\n this.element.css({\n "top" : top,\n "left" : left,\n "z-index" : zIndex++\n });\n this.open();\n };\n\n GUI.prototype.close = function(){\n this.openButton.removeClass("Expanded");\n this.element.css({\n "display" : "none"\n });\n }; \n\n GUI.prototype.open = function(){\n this.openButton.addClass("Expanded");\n this.element.css({\n "display" : "inherit"\n });\n };\n\n GUI.prototype.draggable = function(){\n this.element.addClass("Draggable");\n this.element.draggabilly({\n "handle" : "#Title",\n "containment" : this.container.get(0)\n });\n this.closeButton.appendTo(this.title);\n }; \n\n GUI.prototype.set = function(params){\n var attr;\n for (attr in params){\n if (this.params[attr]){\n this.params[attr].set(params[attr]);\n } else if (!this.givenParameters){\n //make it\n this.add(this._tone, attr, {});\n }\n }\n //close any which don\'t belong anymore\n for (attr in this.params){\n if (typeof params[attr] === "undefined"){\n this.params[attr].close();\n }\n }\n };\n\n GUI.prototype.dispose = function(){\n this.forEach(function(param){\n param.dispose();\n });\n this.element.children().remove();\n this.element.remove();\n };\n\n\n return GUI;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/GUI.js\n ** module id = 13\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/GUI.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(11), __webpack_require__(3), __webpack_require__(29)], __WEBPACK_AMD_DEFINE_RESULT__ = function (Util, requestAnimationFrame, Parameter, meterStyle){\n\n var Meter = function(meter, options){\n\n //defaults\n options = Util.defaultArg(options, {\n "container" : $("body"),\n "name" : "value",\n "type" : "value"\n });\n\n /**\n * the name\n */\n this.name = options.name;\n\n /**\n * the type db vs value\n */\n this.type = options.type;\n\n /**\n * the tone object\n * @type {Tone}\n * @private\n */\n this._meter = meter;\n\n /**\n * this element\n */\n this.element = $("<div>").addClass("Notone Meter").appendTo(options.container)\n .prop("id", options.name);\n\n /**\n * the container\n */\n this.container = $(options.container);\n\n /**\n * the paramter\n */\n this.param = new Parameter(null, this.name);\n this.param.element.appendTo(this.element).addClass("Meter");\n\n /**\n * the value indicator\n */\n this.value = this.param.unitText;\n\n this.updateBind = this.update.bind(this);\n\n this.update();\n };\n\n Meter.prototype.update = function(){\n requestAnimationFrame(this.updateBind);\n var showVal = 0;\n if (this.type === "value"){\n showVal = this._meter.getValue();\n } else {\n showVal = this._meter.getDb();\n }\n this.value.text(showVal.toFixed(2));\n };\n\n Meter.prototype.dispose = function(){\n this.element.children().remove();\n this.element.remove();\n };\n\n\n return Meter;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/Meter.js\n ** module id = 14\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/Meter.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(3), __webpack_require__(1), __webpack_require__(2)], __WEBPACK_AMD_DEFINE_RESULT__ = function (Parameter, Util, $){\n\n var BooleanBox = function(param, name, type, desc){\n Parameter.call(this, param, name, type, desc);\n\n this.boolBox = $("<input>").appendTo(this.value).addClass("Boolean").prop("type", "checkbox");\n this.set(this.get());\n this.boolBox.on("change", this.changed.bind(this));\n $("body").keydown(this.keypress.bind(this));\n };\n\n Util.extend(BooleanBox, Parameter);\n\n BooleanBox.prototype.keypress = function(e){\n if (this.boolBox.is(":focus")){\n if (e.which === 13){\n this.set(!this.get());\n } \n }\n };\n\n BooleanBox.prototype.changed = function(){\n this.set(this.boolBox.prop("checked"));\n // this.boolBox.blur();\n };\n\n BooleanBox.prototype.set = function(val){\n Parameter.prototype.set.call(this, val);\n this.boolBox.prop("checked", val);\n };\n\n BooleanBox.isType = function(param, name){\n return typeof param[name] === "boolean";\n };\n\n return BooleanBox;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/param/Boolean.js\n ** module id = 15\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/param/Boolean.js?')},function(module,exports,__webpack_require__){eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(3), __webpack_require__(9), __webpack_require__(17), \n __webpack_require__(18), __webpack_require__(15)], __WEBPACK_AMD_DEFINE_RESULT__ = function (Parameter, NumberParam, Signal, StringParam, BooleanBox) {\n\n var paramTypes = [Signal, BooleanBox, NumberParam, StringParam];\n\n function create(param, name, type, desc){\n\n for (var i = 0; i < paramTypes.length; i++){\n if (paramTypes[i].isType(param, name)){\n return new paramTypes[i](param, name, type, desc);\n }\n }\n }\n\n return {\n isType : function(param, name){\n for (var i = 0; i < paramTypes.length; i++){\n if (paramTypes[i].isType(param, name)){\n return true;\n }\n }\n return false;\n },\n create : create\n };\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/param/Factory.js\n ** module id = 16\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/param/Factory.js?")},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(9), __webpack_require__(1), __webpack_require__(19)], __WEBPACK_AMD_DEFINE_RESULT__ = function (NumberBox, Util, TimeBox){\n\n var Signal = function(param, name, type, desc){\n\n var signal = param[name];\n\n this.parent = NumberBox;\n if (signal.units === "time" || signal.units === "frequency"){\n this.parent = TimeBox;\n } \n this.parent.call(this, signal, "value", type, desc);\n\n var input = this.value.find("input").addClass("Signal");\n\n this.title.text(name);\n\n if (signal.overridden){\n this.element.addClass("Overridden");\n this.value.prop("title", "overridden");\n }\n };\n\n Util.extend(Signal, TimeBox);\n\n Signal.isType = function(param, name){\n return typeof param[name] === "object" && typeof param[name].setValueAtTime === "function";\n };\n\n Signal.prototype.set = function(val){\n if (this.parent === NumberBox){\n NumberBox.prototype.set.call(this, val);\n } else {\n TimeBox.prototype.set.call(this, val);\n }\n };\n\n return Signal;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/param/Signal.js\n ** module id = 17\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/param/Signal.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(3), __webpack_require__(1), __webpack_require__(2)], __WEBPACK_AMD_DEFINE_RESULT__ = function (Parameter, Util, $){\n\n var StringBox = function(param, name, type, desc){\n Parameter.call(this, param, name, type, desc);\n\n this.stringBox = $("<input>").appendTo(this.value).addClass("String");\n this.set(this.get());\n this.stringBox.on("change", this.changed.bind(this));\n };\n\n Util.extend(StringBox, Parameter);\n\n StringBox.prototype.changed = function(val){\n this.set(this.stringBox.val());\n this.stringBox.blur();\n this.trigger("change", this);\n };\n\n StringBox.prototype.set = function(val){\n Parameter.prototype.set.call(this, val);\n this.stringBox.val(val);\n };\n\n StringBox.prototype.get = function(){\n return this.param[this.name];\n };\n\n StringBox.isType = function(param, name){\n return typeof param[name] === "string";\n };\n\n return StringBox;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/param/String.js\n ** module id = 18\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/param/String.js?')},function(module,exports,__webpack_require__){eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(9), __webpack_require__(1), __webpack_require__(3)], __WEBPACK_AMD_DEFINE_RESULT__ = function (NumberBox, Util, Parameter) {\n\n var TimeBox = function(param, name, type, description){\n NumberBox.call(this, param, name, type, description);\n };\n\n Util.extend(TimeBox, NumberBox);\n\n TimeBox.prototype.set = function(val){\n if (isFinite(val)){\n NumberBox.prototype.set.call(this, Math.max(val, 0));\n } else {\n Parameter.prototype.set.call(this, val);\n this.numBox.val(val); \n }\n };\n\n TimeBox.prototype.changeVal = function(delta){\n if (isFinite(this.numBox.val())){\n NumberBox.prototype.changeVal.call(this, delta);\n } else {\n var currentVal = this.numBox.val();\n var subdivision = parseInt(currentVal);\n var noteType = currentVal[currentVal.length - 1];\n if (delta < 0){\n // if ((noteType === "n") || noteType === "t") && subdivision\n if (noteType === "m"){\n if (subdivision > 1){\n subdivision--;\n this.set(subdivision + "m");\n } else {\n this.set("2n"); \n }\n } else {\n subdivision *= 2;\n subdivision = Math.min(subdivision, 128);\n this.set(subdivision + noteType);\n }\n } else if (delta > 0) {\n if (noteType === "m"){\n subdivision++;\n this.set(subdivision + "m");\n } else {\n if (subdivision < 4){\n this.set("1m");\n } else {\n subdivision /= 2;\n this.set(subdivision + noteType);\n }\n }\n }\n }\n };\n\n return TimeBox;\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/*****************\n ** WEBPACK FOOTER\n ** ./GUI/param/Time.js\n ** module id = 19\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./GUI/param/Time.js?')},function(module,exports,__webpack_require__){eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_5__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_6__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_LOCAL_MODULE_3__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_2__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_LOCAL_MODULE_4__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_LOCAL_MODULE_1__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_7__;/*!\n * Draggabilly PACKAGED v1.2.4\n * Make that shiz draggable\n * http://draggabilly.desandro.com\n * MIT license\n */\n\n/**\n * Bridget makes jQuery widgets\n * v1.1.0\n * MIT license\n */\n\n( function( window ) {\n\n\n\n// -------------------------- utils -------------------------- //\n\nvar slice = Array.prototype.slice;\n\nfunction noop() {}\n\n// -------------------------- definition -------------------------- //\n\nfunction defineBridget( $ ) {\n\n// bail if no jQuery\nif ( !$ ) {\n return;\n}\n\n// -------------------------- addOptionMethod -------------------------- //\n\n/**\n * adds option method -> $().plugin('option', {...})\n * @param {Function} PluginClass - constructor class\n */\nfunction addOptionMethod( PluginClass ) {\n // don't overwrite original option method\n if ( PluginClass.prototype.option ) {\n return;\n }\n\n // option setter\n PluginClass.prototype.option = function( opts ) {\n // bail out if not an object\n if ( !$.isPlainObject( opts ) ){\n return;\n }\n this.options = $.extend( true, this.options, opts );\n };\n}\n\n// -------------------------- plugin bridge -------------------------- //\n\n// helper function for logging errors\n// $.error breaks jQuery chaining\nvar logError = typeof console === 'undefined' ? noop :\n function( message ) {\n console.error( message );\n };\n\n/**\n * jQuery plugin bridge, access methods like $elem.plugin('method')\n * @param {String} namespace - plugin name\n * @param {Function} PluginClass - constructor class\n */\nfunction bridge( namespace, PluginClass ) {\n // add to jQuery fn namespace\n $.fn[ namespace ] = function( options ) {\n if ( typeof options === 'string' ) {\n // call plugin method when first argument is a string\n // get arguments for method\n var args = slice.call( arguments, 1 );\n\n for ( var i=0, len = this.length; i < len; i++ ) {\n var elem = this[i];\n var instance = $.data( elem, namespace );\n if ( !instance ) {\n logError( \"cannot call methods on \" + namespace + \" prior to initialization; \" +\n \"attempted to call '\" + options + \"'\" );\n continue;\n }\n if ( !$.isFunction( instance[options] ) || options.charAt(0) === '_' ) {\n logError( \"no such method '\" + options + \"' for \" + namespace + \" instance\" );\n continue;\n }\n\n // trigger method with arguments\n var returnValue = instance[ options ].apply( instance, args );\n\n // break look and return first value if provided\n if ( returnValue !== undefined ) {\n return returnValue;\n }\n }\n // return this if no return value\n return this;\n } else {\n return this.each( function() {\n var instance = $.data( this, namespace );\n if ( instance ) {\n // apply options & init\n instance.option( options );\n instance._init();\n } else {\n // initialize new instance\n instance = new PluginClass( this, options );\n $.data( this, namespace, instance );\n }\n });\n }\n };\n\n}\n\n// -------------------------- bridget -------------------------- //\n\n/**\n * converts a Prototypical class into a proper jQuery plugin\n * the class must have a ._init method\n * @param {String} namespace - plugin name, used in $().pluginName\n * @param {Function} PluginClass - constructor class\n */\n$.bridget = function( namespace, PluginClass ) {\n addOptionMethod( PluginClass );\n bridge( namespace, PluginClass );\n};\n\nreturn $.bridget;\n\n}\n\n// transport\nif ( true ) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(2) ], __WEBPACK_AMD_DEFINE_FACTORY__ = (defineBridget), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n} else if ( typeof exports === 'object' ) {\n defineBridget( require('jquery') );\n} else {\n // get jquery from browser global\n defineBridget( window.jQuery );\n}\n\n})( window );\n\n/*!\n * classie v1.0.1\n * class helper functions\n * from bonzo https://github.com/ded/bonzo\n * MIT license\n * \n * classie.has( elem, 'my-class' ) -> true/false\n * classie.add( elem, 'my-new-class' )\n * classie.remove( elem, 'my-unwanted-class' )\n * classie.toggle( elem, 'my-class' )\n */\n\n/*jshint browser: true, strict: true, undef: true, unused: true */\n/*global define: false, module: false */\n\n( function( window ) {\n\n\n\n// class helper functions from bonzo https://github.com/ded/bonzo\n\nfunction classReg( className ) {\n return new RegExp(\"(^|\\\\s+)\" + className + \"(\\\\s+|$)\");\n}\n\n// classList support for class management\n// altho to be fair, the api sucks because it won't accept multiple classes at once\nvar hasClass, addClass, removeClass;\n\nif ( 'classList' in document.documentElement ) {\n hasClass = function( elem, c ) {\n return elem.classList.contains( c );\n };\n addClass = function( elem, c ) {\n elem.classList.add( c );\n };\n removeClass = function( elem, c ) {\n elem.classList.remove( c );\n };\n}\nelse {\n hasClass = function( elem, c ) {\n return classReg( c ).test( elem.className );\n };\n addClass = function( elem, c ) {\n if ( !hasClass( elem, c ) ) {\n elem.className = elem.className + ' ' + c;\n }\n };\n removeClass = function( elem, c ) {\n elem.className = elem.className.replace( classReg( c ), ' ' );\n };\n}\n\nfunction toggleClass( elem, c ) {\n var fn = hasClass( elem, c ) ? removeClass : addClass;\n fn( elem, c );\n}\n\nvar classie = {\n // full names\n hasClass: hasClass,\n addClass: addClass,\n removeClass: removeClass,\n toggleClass: toggleClass,\n // short names\n has: hasClass,\n add: addClass,\n remove: removeClass,\n toggle: toggleClass\n};\n\n// transport\nif ( true ) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_FACTORY__ = (classie), __WEBPACK_LOCAL_MODULE_1__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__));\n} else if ( typeof exports === 'object' ) {\n // CommonJS\n module.exports = classie;\n} else {\n // browser global\n window.classie = classie;\n}\n\n})( window );\n\n/*!\n * getStyleProperty v1.0.4\n * original by kangax\n * http://perfectionkills.com/feature-testing-css-properties/\n * MIT license\n */\n\n/*jshint browser: true, strict: true, undef: true */\n/*global define: false, exports: false, module: false */\n\n( function( window ) {\n\n\n\nvar prefixes = 'Webkit Moz ms Ms O'.split(' ');\nvar docElemStyle = document.documentElement.style;\n\nfunction getStyleProperty( propName ) {\n if ( !propName ) {\n return;\n }\n\n // test standard property first\n if ( typeof docElemStyle[ propName ] === 'string' ) {\n return propName;\n }\n\n // capitalize\n propName = propName.charAt(0).toUpperCase() + propName.slice(1);\n\n // test vendor specific properties\n var prefixed;\n for ( var i=0, len = prefixes.length; i < len; i++ ) {\n prefixed = prefixes[i] + propName;\n if ( typeof docElemStyle[ prefixed ] === 'string' ) {\n return prefixed;\n }\n }\n}\n\n// transport\nif ( true ) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_LOCAL_MODULE_2__ = (function() {\n return getStyleProperty;\n }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)));\n} else if ( typeof exports === 'object' ) {\n // CommonJS for Component\n module.exports = getStyleProperty;\n} else {\n // browser global\n window.getStyleProperty = getStyleProperty;\n}\n\n})( window );\n\n/*!\n * getSize v1.2.2\n * measure size of elements\n * MIT license\n */\n\n/*jshint browser: true, strict: true, undef: true, unused: true */\n/*global define: false, exports: false, require: false, module: false, console: false */\n\n( function( window, undefined ) {\n\n\n\n// -------------------------- helpers -------------------------- //\n\n// get a number from a string, not a percentage\nfunction getStyleSize( value ) {\n var num = parseFloat( value );\n // not a percent like '100%', and a number\n var isValid = value.indexOf('%') === -1 && !isNaN( num );\n return isValid && num;\n}\n\nfunction noop() {}\n\nvar logError = typeof console === 'undefined' ? noop :\n function( message ) {\n console.error( message );\n };\n\n// -------------------------- measurements -------------------------- //\n\nvar measurements = [\n 'paddingLeft',\n 'paddingRight',\n 'paddingTop',\n 'paddingBottom',\n 'marginLeft',\n 'marginRight',\n 'marginTop',\n 'marginBottom',\n 'borderLeftWidth',\n 'borderRightWidth',\n 'borderTopWidth',\n 'borderBottomWidth'\n];\n\nfunction getZeroSize() {\n var size = {\n width: 0,\n height: 0,\n innerWidth: 0,\n innerHeight: 0,\n outerWidth: 0,\n outerHeight: 0\n };\n for ( var i=0, len = measurements.length; i < len; i++ ) {\n var measurement = measurements[i];\n size[ measurement ] = 0;\n }\n return size;\n}\n\n\n\nfunction defineGetSize( getStyleProperty ) {\n\n// -------------------------- setup -------------------------- //\n\nvar isSetup = false;\n\nvar getStyle, boxSizingProp, isBoxSizeOuter;\n\n/**\n * setup vars and functions\n * do it on initial getSize(), rather than on script load\n * For Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n */\nfunction setup() {\n // setup once\n if ( isSetup ) {\n return;\n }\n isSetup = true;\n\n var getComputedStyle = window.getComputedStyle;\n getStyle = ( function() {\n var getStyleFn = getComputedStyle ?\n function( elem ) {\n return getComputedStyle( elem, null );\n } :\n function( elem ) {\n return elem.currentStyle;\n };\n\n return function getStyle( elem ) {\n var style = getStyleFn( elem );\n if ( !style ) {\n logError( 'Style returned ' + style +\n '. Are you running this code in a hidden iframe on Firefox? ' +\n 'See http://bit.ly/getsizebug1' );\n }\n return style;\n };\n })();\n\n // -------------------------- box sizing -------------------------- //\n\n boxSizingProp = getStyleProperty('boxSizing');\n\n /**\n * WebKit measures the outer-width on style.width on border-box elems\n * IE & Firefox measures the inner-width\n */\n if ( boxSizingProp ) {\n var div = document.createElement('div');\n div.style.width = '200px';\n div.style.padding = '1px 2px 3px 4px';\n div.style.borderStyle = 'solid';\n div.style.borderWidth = '1px 2px 3px 4px';\n div.style[ boxSizingProp ] = 'border-box';\n\n var body = document.body || document.documentElement;\n body.appendChild( div );\n var style = getStyle( div );\n\n isBoxSizeOuter = getStyleSize( style.width ) === 200;\n body.removeChild( div );\n }\n\n}\n\n// -------------------------- getSize -------------------------- //\n\nfunction getSize( elem ) {\n setup();\n\n // use querySeletor if elem is string\n if ( typeof elem === 'string' ) {\n elem = document.querySelector( elem );\n }\n\n // do not proceed on non-objects\n if ( !elem || typeof elem !== 'object' || !elem.nodeType ) {\n return;\n }\n\n var style = getStyle( elem );\n\n // if hidden, everything is 0\n if ( style.display === 'none' ) {\n return getZeroSize();\n }\n\n var size = {};\n size.width = elem.offsetWidth;\n size.height = elem.offsetHeight;\n\n var isBorderBox = size.isBorderBox = !!( boxSizingProp &&\n style[ boxSizingProp ] && style[ boxSizingProp ] === 'border-box' );\n\n // get all measurements\n for ( var i=0, len = measurements.length; i < len; i++ ) {\n var measurement = measurements[i];\n var value = style[ measurement ];\n value = mungeNonPixel( elem, value );\n var num = parseFloat( value );\n // any 'auto', 'medium' value will be 0\n size[ measurement ] = !isNaN( num ) ? num : 0;\n }\n\n var paddingWidth = size.paddingLeft + size.paddingRight;\n var paddingHeight = size.paddingTop + size.paddingBottom;\n var marginWidth = size.marginLeft + size.marginRight;\n var marginHeight = size.marginTop + size.marginBottom;\n var borderWidth = size.borderLeftWidth + size.borderRightWidth;\n var borderHeight = size.borderTopWidth + size.borderBottomWidth;\n\n var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter;\n\n // overwrite width and height if we can get it from style\n var styleWidth = getStyleSize( style.width );\n if ( styleWidth !== false ) {\n size.width = styleWidth +\n // add padding and border unless it's already including it\n ( isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth );\n }\n\n var styleHeight = getStyleSize( style.height );\n if ( styleHeight !== false ) {\n size.height = styleHeight +\n // add padding and border unless it's already including it\n ( isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight );\n }\n\n size.innerWidth = size.width - ( paddingWidth + borderWidth );\n size.innerHeight = size.height - ( paddingHeight + borderHeight );\n\n size.outerWidth = size.width + marginWidth;\n size.outerHeight = size.height + marginHeight;\n\n return size;\n}\n\n// IE8 returns percent values, not pixels\n// taken from jQuery's curCSS\nfunction mungeNonPixel( elem, value ) {\n // IE8 and has percent value\n if ( window.getComputedStyle || value.indexOf('%') === -1 ) {\n return value;\n }\n var style = elem.style;\n // Remember the original values\n var left = style.left;\n var rs = elem.runtimeStyle;\n var rsLeft = rs && rs.left;\n\n // Put in the new values to get a computed value out\n if ( rsLeft ) {\n rs.left = elem.currentStyle.left;\n }\n style.left = value;\n value = style.pixelLeft;\n\n // Revert the changed values\n style.left = left;\n if ( rsLeft ) {\n rs.left = rsLeft;\n }\n\n return value;\n}\n\nreturn getSize;\n\n}\n\n// transport\nif ( true ) {\n // AMD for RequireJS\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __WEBPACK_LOCAL_MODULE_2__ ], __WEBPACK_AMD_DEFINE_FACTORY__ = (defineGetSize), __WEBPACK_LOCAL_MODULE_3__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__));\n} else if ( typeof exports === 'object' ) {\n // CommonJS for Component\n module.exports = defineGetSize( require('desandro-get-style-property') );\n} else {\n // browser global\n window.getSize = defineGetSize( window.getStyleProperty );\n}\n\n})( window );\n\n/*!\n * eventie v1.0.6\n * event binding helper\n * eventie.bind( elem, 'click', myFn )\n * eventie.unbind( elem, 'click', myFn )\n * MIT license\n */\n\n/*jshint browser: true, undef: true, unused: true */\n/*global define: false, module: false */\n\n( function( window ) {\n\n\n\nvar docElem = document.documentElement;\n\nvar bind = function() {};\n\nfunction getIEEvent( obj ) {\n var event = window.event;\n // add event.target\n event.target = event.target || event.srcElement || obj;\n return event;\n}\n\nif ( docElem.addEventListener ) {\n bind = function( obj, type, fn ) {\n obj.addEventListener( type, fn, false );\n };\n} else if ( docElem.attachEvent ) {\n bind = function( obj, type, fn ) {\n obj[ type + fn ] = fn.handleEvent ?\n function() {\n var event = getIEEvent( obj );\n fn.handleEvent.call( fn, event );\n } :\n function() {\n var event = getIEEvent( obj );\n fn.call( obj, event );\n };\n obj.attachEvent( \"on\" + type, obj[ type + fn ] );\n };\n}\n\nvar unbind = function() {};\n\nif ( docElem.removeEventListener ) {\n unbind = function( obj, type, fn ) {\n obj.removeEventListener( type, fn, false );\n };\n} else if ( docElem.detachEvent ) {\n unbind = function( obj, type, fn ) {\n obj.detachEvent( \"on\" + type, obj[ type + fn ] );\n try {\n delete obj[ type + fn ];\n } catch ( err ) {\n // can't delete window object properties\n obj[ type + fn ] = undefined;\n }\n };\n}\n\nvar eventie = {\n bind: bind,\n unbind: unbind\n};\n\n// ----- module definition ----- //\n\nif ( true ) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_FACTORY__ = (eventie), __WEBPACK_LOCAL_MODULE_4__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__));\n} else if ( typeof exports === 'object' ) {\n // CommonJS\n module.exports = eventie;\n} else {\n // browser global\n window.eventie = eventie;\n}\n\n})( window );\n\n/*!\n * EventEmitter v4.2.11 - git.io/ee\n * Unlicense - http://unlicense.org/\n * Oliver Caldwell - http://oli.me.uk/\n * @preserve\n */\n\n;(function () {\n \n\n /**\n * Class for managing events.\n * Can be extended to provide event functionality in other classes.\n *\n * @class EventEmitter Manages event registering and emitting.\n */\n function EventEmitter() {}\n\n // Shortcuts to improve speed and size\n var proto = EventEmitter.prototype;\n var exports = this;\n var originalGlobalValue = exports.EventEmitter;\n\n /**\n * Finds the index of the listener for the event in its storage array.\n *\n * @param {Function[]} listeners Array of listeners to search through.\n * @param {Function} listener Method to look for.\n * @return {Number} Index of the specified listener, -1 if not found\n * @api private\n */\n function indexOfListener(listeners, listener) {\n var i = listeners.length;\n while (i--) {\n if (listeners[i].listener === listener) {\n return i;\n }\n }\n\n return -1;\n }\n\n /**\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\n *\n * @param {String} name The name of the target method.\n * @return {Function} The aliased method\n * @api private\n */\n function alias(name) {\n return function aliasClosure() {\n return this[name].apply(this, arguments);\n };\n }\n\n /**\n * Returns the listener array for the specified event.\n * Will initialise the event object and listener arrays if required.\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n * Each property in the object response is an array of listener functions.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Function[]|Object} All listener functions for the event.\n */\n proto.getListeners = function getListeners(evt) {\n var events = this._getEvents();\n var response;\n var key;\n\n // Return a concatenated array of all matching events if\n // the selector is a regular expression.\n if (evt instanceof RegExp) {\n response = {};\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n response[key] = events[key];\n }\n }\n }\n else {\n response = events[evt] || (events[evt] = []);\n }\n\n return response;\n };\n\n /**\n * Takes a list of listener objects and flattens it into a list of listener functions.\n *\n * @param {Object[]} listeners Raw listener objects.\n * @return {Function[]} Just the listener functions.\n */\n proto.flattenListeners = function flattenListeners(listeners) {\n var flatListeners = [];\n var i;\n\n for (i = 0; i < listeners.length; i += 1) {\n flatListeners.push(listeners[i].listener);\n }\n\n return flatListeners;\n };\n\n /**\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Object} All listener functions for an event in an object.\n */\n proto.getListenersAsObject = function getListenersAsObject(evt) {\n var listeners = this.getListeners(evt);\n var response;\n\n if (listeners instanceof Array) {\n response = {};\n response[evt] = listeners;\n }\n\n return response || listeners;\n };\n\n /**\n * Adds a listener function to the specified event.\n * The listener will not be added if it is a duplicate.\n * If the listener returns true then it will be removed after it is called.\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListener = function addListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var listenerIsWrapped = typeof listener === 'object';\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n listeners[key].push(listenerIsWrapped ? listener : {\n listener: listener,\n once: false\n });\n }\n }\n\n return this;\n };\n\n /**\n * Alias of addListener\n */\n proto.on = alias('addListener');\n\n /**\n * Semi-alias of addListener. It will add a listener that will be\n * automatically removed after its first execution.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addOnceListener = function addOnceListener(evt, listener) {\n return this.addListener(evt, {\n listener: listener,\n once: true\n });\n };\n\n /**\n * Alias of addOnceListener.\n */\n proto.once = alias('addOnceListener');\n\n /**\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n * You need to tell it what event names should be matched by a regex.\n *\n * @param {String} evt Name of the event to create.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvent = function defineEvent(evt) {\n this.getListeners(evt);\n return this;\n };\n\n /**\n * Uses defineEvent to define multiple events.\n *\n * @param {String[]} evts An array of event names to define.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvents = function defineEvents(evts) {\n for (var i = 0; i < evts.length; i += 1) {\n this.defineEvent(evts[i]);\n }\n return this;\n };\n\n /**\n * Removes a listener function from the specified event.\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to remove the listener from.\n * @param {Function} listener Method to remove from the event.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListener = function removeListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var index;\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n index = indexOfListener(listeners[key], listener);\n\n if (index !== -1) {\n listeners[key].splice(index, 1);\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of removeListener\n */\n proto.off = alias('removeListener');\n\n /**\n * Adds listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\n * Yeah, this function does quite a bit. That's probably a bad thing.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListeners = function addListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(false, evt, listeners);\n };\n\n /**\n * Removes listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be removed.\n * You can also pass it a regular expression to remove the listeners from all events that match it.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListeners = function removeListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(true, evt, listeners);\n };\n\n /**\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n * The first argument will determine if the listeners are removed (true) or added (false).\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be added/removed.\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n *\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n var i;\n var value;\n var single = remove ? this.removeListener : this.addListener;\n var multiple = remove ? this.removeListeners : this.addListeners;\n\n // If evt is an object then pass each of its properties to this method\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n for (i in evt) {\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\n // Pass the single listener straight through to the singular method\n if (typeof value === 'function') {\n single.call(this, i, value);\n }\n else {\n // Otherwise pass back to the multiple function\n multiple.call(this, i, value);\n }\n }\n }\n }\n else {\n // So evt must be a string\n // And listeners must be an array of listeners\n // Loop over it and pass each one to the multiple method\n i = listeners.length;\n while (i--) {\n single.call(this, evt, listeners[i]);\n }\n }\n\n return this;\n };\n\n /**\n * Removes all listeners from a specified event.\n * If you do not specify an event then all listeners will be removed.\n * That means every event will be emptied.\n * You can also pass a regex to remove all events that match it.\n *\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeEvent = function removeEvent(evt) {\n var type = typeof evt;\n var events = this._getEvents();\n var key;\n\n // Remove different things depending on the state of evt\n if (type === 'string') {\n // Remove all listeners for the specified event\n delete events[evt];\n }\n else if (evt instanceof RegExp) {\n // Remove all events matching the regex.\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n delete events[key];\n }\n }\n }\n else {\n // Remove all listeners in all events\n delete this._events;\n }\n\n return this;\n };\n\n /**\n * Alias of removeEvent.\n *\n * Added to mirror the node API.\n */\n proto.removeAllListeners = alias('removeEvent');\n\n /**\n * Emits an event of your choice.\n * When emitted, every listener attached to that event will be executed.\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n * So they will not arrive within the array on the other side, they will be separate.\n * You can also pass a regular expression to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emitEvent = function emitEvent(evt, args) {\n var listeners = this.getListenersAsObject(evt);\n var listener;\n var i;\n var key;\n var response;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n i = listeners[key].length;\n\n while (i--) {\n // If the listener returns true then it shall be removed from the event\n // The function is executed either with a basic call or an apply if there is an args array\n listener = listeners[key][i];\n\n if (listener.once === true) {\n this.removeListener(evt, listener.listener);\n }\n\n response = listener.listener.apply(this, args || []);\n\n if (response === this._getOnceReturnValue()) {\n this.removeListener(evt, listener.listener);\n }\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of emitEvent\n */\n proto.trigger = alias('emitEvent');\n\n /**\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {...*} Optional additional arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emit = function emit(evt) {\n var args = Array.prototype.slice.call(arguments, 1);\n return this.emitEvent(evt, args);\n };\n\n /**\n * Sets the current value to check against when executing listeners. If a\n * listeners return value matches the one set here then it will be removed\n * after execution. This value defaults to true.\n *\n * @param {*} value The new value to check for when executing listeners.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\n this._onceReturnValue = value;\n return this;\n };\n\n /**\n * Fetches the current value to check against when executing listeners. If\n * the listeners return value matches this one then it should be removed\n * automatically. It will return true by default.\n *\n * @return {*|Boolean} The current value to check for or the default, true.\n * @api private\n */\n proto._getOnceReturnValue = function _getOnceReturnValue() {\n if (this.hasOwnProperty('_onceReturnValue')) {\n return this._onceReturnValue;\n }\n else {\n return true;\n }\n };\n\n /**\n * Fetches the events object and creates one if required.\n *\n * @return {Object} The events storage object.\n * @api private\n */\n proto._getEvents = function _getEvents() {\n return this._events || (this._events = {});\n };\n\n /**\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n *\n * @return {Function} Non conflicting EventEmitter class.\n */\n EventEmitter.noConflict = function noConflict() {\n exports.EventEmitter = originalGlobalValue;\n return EventEmitter;\n };\n\n // Expose the class either via AMD, CommonJS or the global object\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_LOCAL_MODULE_5__ = (function () {\n return EventEmitter;\n }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)));\n }\n else if (typeof module === 'object' && module.exports){\n module.exports = EventEmitter;\n }\n else {\n exports.EventEmitter = EventEmitter;\n }\n}.call(this));\n\n/*!\n * Unipointer v1.1.0\n * base class for doing one thing with pointer event\n * MIT license\n */\n\n/*jshint browser: true, undef: true, unused: true, strict: true */\n/*global define: false, module: false, require: false */\n\n( function( window, factory ) {\n \n // universal module definition\n\n if ( true ) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [\n __WEBPACK_LOCAL_MODULE_5__,\n __WEBPACK_LOCAL_MODULE_4__\n ], __WEBPACK_LOCAL_MODULE_6__ = (function( EventEmitter, eventie ) {\n return factory( window, EventEmitter, eventie );\n }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)));\n } else if ( typeof exports == 'object' ) {\n // CommonJS\n module.exports = factory(\n window,\n require('wolfy87-eventemitter'),\n require('eventie')\n );\n } else {\n // browser global\n window.Unipointer = factory(\n window,\n window.EventEmitter,\n window.eventie\n );\n }\n\n}( window, function factory( window, EventEmitter, eventie ) {\n\n\n\nfunction noop() {}\n\nfunction Unipointer() {}\n\n// inherit EventEmitter\nUnipointer.prototype = new EventEmitter();\n\nUnipointer.prototype.bindStartEvent = function( elem ) {\n this._bindStartEvent( elem, true );\n};\n\nUnipointer.prototype.unbindStartEvent = function( elem ) {\n this._bindStartEvent( elem, false );\n};\n\n/**\n * works as unbinder, as you can ._bindStart( false ) to unbind\n * @param {Boolean} isBind - will unbind if falsey\n */\nUnipointer.prototype._bindStartEvent = function( elem, isBind ) {\n // munge isBind, default to true\n isBind = isBind === undefined ? true : !!isBind;\n var bindMethod = isBind ? 'bind' : 'unbind';\n\n if ( window.navigator.pointerEnabled ) {\n // W3C Pointer Events, IE11. See https://coderwall.com/p/mfreca\n eventie[ bindMethod ]( elem, 'pointerdown', this );\n } else if ( window.navigator.msPointerEnabled ) {\n // IE10 Pointer Events\n eventie[ bindMethod ]( elem, 'MSPointerDown', this );\n } else {\n // listen for both, for devices like Chrome Pixel\n eventie[ bindMethod ]( elem, 'mousedown', this );\n eventie[ bindMethod ]( elem, 'touchstart', this );\n }\n};\n\n// trigger handler methods for events\nUnipointer.prototype.handleEvent = function( event ) {\n var method = 'on' + event.type;\n if ( this[ method ] ) {\n this[ method ]( event );\n }\n};\n\n// returns the touch that we're keeping track of\nUnipointer.prototype.getTouch = function( touches ) {\n for ( var i=0, len = touches.length; i < len; i++ ) {\n var touch = touches[i];\n if ( touch.identifier == this.pointerIdentifier ) {\n return touch;\n }\n }\n};\n\n// ----- start event ----- //\n\nUnipointer.prototype.onmousedown = function( event ) {\n // dismiss clicks from right or middle buttons\n var button = event.button;\n if ( button && ( button !== 0 && button !== 1 ) ) {\n return;\n }\n this._pointerDown( event, event );\n};\n\nUnipointer.prototype.ontouchstart = function( event ) {\n this._pointerDown( event, event.changedTouches[0] );\n};\n\nUnipointer.prototype.onMSPointerDown =\nUnipointer.prototype.onpointerdown = function( event ) {\n this._pointerDown( event, event );\n};\n\n/**\n * pointer start\n * @param {Event} event\n * @param {Event or Touch} pointer\n */\nUnipointer.prototype._pointerDown = function( event, pointer ) {\n // dismiss other pointers\n if ( this.isPointerDown ) {\n return;\n }\n\n this.isPointerDown = true;\n // save pointer identifier to match up touch events\n this.pointerIdentifier = pointer.pointerId !== undefined ?\n // pointerId for pointer events, touch.indentifier for touch events\n pointer.pointerId : pointer.identifier;\n\n this.pointerDown( event, pointer );\n};\n\nUnipointer.prototype.pointerDown = function( event, pointer ) {\n this._bindPostStartEvents( event );\n this.emitEvent( 'pointerDown', [ event, pointer ] );\n};\n\n// hash of events to be bound after start event\nvar postStartEvents = {\n mousedown: [ 'mousemove', 'mouseup' ],\n touchstart: [ 'touchmove', 'touchend', 'touchcancel' ],\n pointerdown: [ 'pointermove', 'pointerup', 'pointercancel' ],\n MSPointerDown: [ 'MSPointerMove', 'MSPointerUp', 'MSPointerCancel' ]\n};\n\nUnipointer.prototype._bindPostStartEvents = function( event ) {\n if ( !event ) {\n return;\n }\n // get proper events to match start event\n var events = postStartEvents[ event.type ];\n // IE8 needs to be bound to document\n var node = event.preventDefault ? window : document;\n // bind events to node\n for ( var i=0, len = events.length; i < len; i++ ) {\n var evnt = events[i];\n eventie.bind( node, evnt, this );\n }\n // save these arguments\n this._boundPointerEvents = {\n events: events,\n node: node\n };\n};\n\nUnipointer.prototype._unbindPostStartEvents = function() {\n var args = this._boundPointerEvents;\n // IE8 can trigger dragEnd twice, check for _boundEvents\n if ( !args || !args.events ) {\n return;\n }\n\n for ( var i=0, len = args.events.length; i < len; i++ ) {\n var event = args.events[i];\n eventie.unbind( args.node, event, this );\n }\n delete this._boundPointerEvents;\n};\n\n// ----- move event ----- //\n\nUnipointer.prototype.onmousemove = function( event ) {\n this._pointerMove( event, event );\n};\n\nUnipointer.prototype.onMSPointerMove =\nUnipointer.prototype.onpointermove = function( event ) {\n if ( event.pointerId == this.pointerIdentifier ) {\n this._pointerMove( event, event );\n }\n};\n\nUnipointer.prototype.ontouchmove = function( event ) {\n var touch = this.getTouch( event.changedTouches );\n if ( touch ) {\n this._pointerMove( event, touch );\n }\n};\n\n/**\n * pointer move\n * @param {Event} event\n * @param {Event or Touch} pointer\n * @private\n */\nUnipointer.prototype._pointerMove = function( event, pointer ) {\n this.pointerMove( event, pointer );\n};\n\n// public\nUnipointer.prototype.pointerMove = function( event, pointer ) {\n this.emitEvent( 'pointerMove', [ event, pointer ] );\n};\n\n// ----- end event ----- //\n\n\nUnipointer.prototype.onmouseup = function( event ) {\n this._pointerUp( event, event );\n};\n\nUnipointer.prototype.onMSPointerUp =\nUnipointer.prototype.onpointerup = function( event ) {\n if ( event.pointerId == this.pointerIdentifier ) {\n this._pointerUp( event, event );\n }\n};\n\nUnipointer.prototype.ontouchend = function( event ) {\n var touch = this.getTouch( event.changedTouches );\n if ( touch ) {\n this._pointerUp( event, touch );\n }\n};\n\n/**\n * pointer up\n * @param {Event} event\n * @param {Event or Touch} pointer\n * @private\n */\nUnipointer.prototype._pointerUp = function( event, pointer ) {\n this._pointerDone();\n this.pointerUp( event, pointer );\n};\n\n// public\nUnipointer.prototype.pointerUp = function( event, pointer ) {\n this.emitEvent( 'pointerUp', [ event, pointer ] );\n};\n\n// ----- pointer done ----- //\n\n// triggered on pointer up & pointer cancel\nUnipointer.prototype._pointerDone = function() {\n // reset properties\n this.isPointerDown = false;\n delete this.pointerIdentifier;\n // remove events\n this._unbindPostStartEvents();\n this.pointerDone();\n};\n\nUnipointer.prototype.pointerDone = noop;\n\n// ----- pointer cancel ----- //\n\nUnipointer.prototype.onMSPointerCancel =\nUnipointer.prototype.onpointercancel = function( event ) {\n if ( event.pointerId == this.pointerIdentifier ) {\n this._pointerCancel( event, event );\n }\n};\n\nUnipointer.prototype.ontouchcancel = function( event ) {\n var touch = this.getTouch( event.changedTouches );\n if ( touch ) {\n this._pointerCancel( event, touch );\n }\n};\n\n/**\n * pointer cancel\n * @param {Event} event\n * @param {Event or Touch} pointer\n * @private\n */\nUnipointer.prototype._pointerCancel = function( event, pointer ) {\n this._pointerDone();\n this.pointerCancel( event, pointer );\n};\n\n// public\nUnipointer.prototype.pointerCancel = function( event, pointer ) {\n this.emitEvent( 'pointerCancel', [ event, pointer ] );\n};\n\n// ----- ----- //\n\n// utility function for getting x/y cooridinates from event, because IE8\nUnipointer.getPointerPoint = function( pointer ) {\n return {\n x: pointer.pageX !== undefined ? pointer.pageX : pointer.clientX,\n y: pointer.pageY !== undefined ? pointer.pageY : pointer.clientY\n };\n};\n\n// ----- ----- //\n\nreturn Unipointer;\n\n}));\n\n/*!\n * Unidragger v1.1.0\n * Draggable base class\n * MIT license\n */\n\n/*jshint browser: true, unused: true, undef: true, strict: true */\n\n( function( window, factory ) {\n /*global define: false, module: false, require: false */\n \n // universal module definition\n\n if ( true ) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [\n __WEBPACK_LOCAL_MODULE_4__,\n __WEBPACK_LOCAL_MODULE_6__\n ], __WEBPACK_LOCAL_MODULE_7__ = (function( eventie, Unipointer ) {\n return factory( window, eventie, Unipointer );\n }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)));\n } else if ( typeof exports == 'object' ) {\n // CommonJS\n module.exports = factory(\n window,\n require('eventie'),\n require('unipointer')\n );\n } else {\n // browser global\n window.Unidragger = factory(\n window,\n window.eventie,\n window.Unipointer\n );\n }\n\n}( window, function factory( window, eventie, Unipointer ) {\n\n\n\n// ----- ----- //\n\nfunction noop() {}\n\n// handle IE8 prevent default\nfunction preventDefaultEvent( event ) {\n if ( event.preventDefault ) {\n event.preventDefault();\n } else {\n event.returnValue = false;\n }\n}\n\nfunction getParentLink( elem ) {\n while ( elem != document.body ) {\n elem = elem.parentNode;\n if ( elem.nodeName == 'A' ) {\n return elem;\n }\n }\n}\n\n// -------------------------- Unidragger -------------------------- //\n\nfunction Unidragger() {}\n\n// inherit Unipointer & EventEmitter\nUnidragger.prototype = new Unipointer();\n\n// ----- bind start ----- //\n\nUnidragger.prototype.bindHandles = function() {\n this._bindHandles( true );\n};\n\nUnidragger.prototype.unbindHandles = function() {\n this._bindHandles( false );\n};\n\nvar navigator = window.navigator;\n/**\n * works as unbinder, as you can .bindHandles( false ) to unbind\n * @param {Boolean} isBind - will unbind if falsey\n */\nUnidragger.prototype._bindHandles = function( isBind ) {\n // munge isBind, default to true\n isBind = isBind === undefined ? true : !!isBind;\n // extra bind logic\n var binderExtra;\n if ( navigator.pointerEnabled ) {\n binderExtra = function( handle ) {\n // disable scrolling on the element\n handle.style.touchAction = isBind ? 'none' : '';\n };\n } else if ( navigator.msPointerEnabled ) {\n binderExtra = function( handle ) {\n // disable scrolling on the element\n handle.style.msTouchAction = isBind ? 'none' : '';\n };\n } else {\n binderExtra = function() {\n // TODO re-enable img.ondragstart when unbinding\n if ( isBind ) {\n disableImgOndragstart( handle );\n }\n };\n }\n // bind each handle\n var bindMethod = isBind ? 'bind' : 'unbind';\n for ( var i=0, len = this.handles.length; i < len; i++ ) {\n var handle = this.handles[i];\n this._bindStartEvent( handle, isBind );\n binderExtra( handle );\n eventie[ bindMethod ]( handle, 'click', this );\n }\n};\n\n// remove default dragging interaction on all images in IE8\n// IE8 does its own drag thing on images, which messes stuff up\n\nfunction noDragStart() {\n return false;\n}\n\n// TODO replace this with a IE8 test\nvar isIE8 = 'attachEvent' in document.documentElement;\n\n// IE8 only\nvar disableImgOndragstart = !isIE8 ? noop : function( handle ) {\n\n if ( handle.nodeName == 'IMG' ) {\n handle.ondragstart = noDragStart;\n }\n\n var images = handle.querySelectorAll('img');\n for ( var i=0, len = images.length; i < len; i++ ) {\n var img = images[i];\n img.ondragstart = noDragStart;\n }\n};\n\n// ----- start event ----- //\n\nvar allowTouchstartNodes = Unidragger.allowTouchstartNodes = {\n INPUT: true,\n A: true,\n BUTTON: true,\n SELECT: true\n};\n\n/**\n * pointer start\n * @param {Event} event\n * @param {Event or Touch} pointer\n */\nUnidragger.prototype.pointerDown = function( event, pointer ) {\n this._dragPointerDown( event, pointer );\n // kludge to blur focused inputs in dragger\n var focused = document.activeElement;\n if ( focused && focused.blur ) {\n focused.blur();\n }\n // bind move and end events\n this._bindPostStartEvents( event );\n this.emitEvent( 'pointerDown', [ event, pointer ] );\n};\n\n// base pointer down logic\nUnidragger.prototype._dragPointerDown = function( event, pointer ) {\n // track to see when dragging starts\n this.pointerDownPoint = Unipointer.getPointerPoint( pointer );\n\n var targetNodeName = event.target.nodeName;\n // HACK iOS, allow clicks on buttons, inputs, and links, or children of links\n var isTouchstartNode = event.type == 'touchstart' &&\n ( allowTouchstartNodes[ targetNodeName ] || getParentLink( event.target ) );\n // do not prevent default on touchstart nodes or <select>\n if ( !isTouchstartNode && targetNodeName != 'SELECT' ) {\n preventDefaultEvent( event );\n }\n};\n\n// ----- move event ----- //\n\n/**\n * drag move\n * @param {Event} event\n * @param {Event or Touch} pointer\n */\nUnidragger.prototype.pointerMove = function( event, pointer ) {\n var moveVector = this._dragPointerMove( event, pointer );\n this.emitEvent( 'pointerMove', [ event, pointer, moveVector ] );\n this._dragMove( event, pointer, moveVector );\n};\n\n// base pointer move logic\nUnidragger.prototype._dragPointerMove = function( event, pointer ) {\n var movePoint = Unipointer.getPointerPoint( pointer );\n var moveVector = {\n x: movePoint.x - this.pointerDownPoint.x,\n y: movePoint.y - this.pointerDownPoint.y\n };\n // start drag if pointer has moved far enough to start drag\n if ( !this.isDragging && this.hasDragStarted( moveVector ) ) {\n this._dragStart( event, pointer );\n }\n return moveVector;\n};\n\n// condition if pointer has moved far enough to start drag\nUnidragger.prototype.hasDragStarted = function( moveVector ) {\n return Math.abs( moveVector.x ) > 3 || Math.abs( moveVector.y ) > 3;\n};\n\n\n// ----- end event ----- //\n\n/**\n * pointer up\n * @param {Event} event\n * @param {Event or Touch} pointer\n */\nUnidragger.prototype.pointerUp = function( event, pointer ) {\n this.emitEvent( 'pointerUp', [ event, pointer ] );\n this._dragPointerUp( event, pointer );\n};\n\nUnidragger.prototype._dragPointerUp = function( event, pointer ) {\n if ( this.isDragging ) {\n this._dragEnd( event, pointer );\n } else {\n // pointer didn't move enough for drag to start\n this._staticClick( event, pointer );\n }\n};\n\n// -------------------------- drag -------------------------- //\n\n// dragStart\nUnidragger.prototype._dragStart = function( event, pointer ) {\n this.isDragging = true;\n this.dragStartPoint = Unidragger.getPointerPoint( pointer );\n // prevent clicks\n this.isPreventingClicks = true;\n\n this.dragStart( event, pointer );\n};\n\nUnidragger.prototype.dragStart = function( event, pointer ) {\n this.emitEvent( 'dragStart', [ event, pointer ] );\n};\n\n// dragMove\nUnidragger.prototype._dragMove = function( event, pointer, moveVector ) {\n // do not drag if not dragging yet\n if ( !this.isDragging ) {\n return;\n }\n\n this.dragMove( event, pointer, moveVector );\n};\n\nUnidragger.prototype.dragMove = function( event, pointer, moveVector ) {\n this.emitEvent( 'dragMove', [ event, pointer, moveVector ] );\n};\n\n// dragEnd\nUnidragger.prototype._dragEnd = function( event, pointer ) {\n // set flags\n this.isDragging = false;\n // re-enable clicking async\n var _this = this;\n setTimeout( function() {\n delete _this.isPreventingClicks;\n });\n\n this.dragEnd( event, pointer );\n};\n\nUnidragger.prototype.dragEnd = function( event, pointer ) {\n this.emitEvent( 'dragEnd', [ event, pointer ] );\n};\n\n// ----- onclick ----- //\n\n// handle all clicks and prevent clicks when dragging\nUnidragger.prototype.onclick = function( event ) {\n if ( this.isPreventingClicks ) {\n preventDefaultEvent( event );\n }\n};\n\n// ----- staticClick ----- //\n\n// triggered after pointer down & up with no/tiny movement\nUnidragger.prototype._staticClick = function( event, pointer ) {\n // allow click in text input\n if ( event.target.nodeName == 'INPUT' && event.target.type == 'text' ) {\n event.target.focus();\n }\n this.staticClick( event, pointer );\n};\n\nUnidragger.prototype.staticClick = function( event, pointer ) {\n this.emitEvent( 'staticClick', [ event, pointer ] );\n};\n\n// ----- ----- //\n\nUnidragger.getPointerPoint = function( pointer ) {\n return {\n x: pointer.pageX !== undefined ? pointer.pageX : pointer.clientX,\n y: pointer.pageY !== undefined ? pointer.pageY : pointer.clientY\n };\n};\n\n// ----- ----- //\n\nUnidragger.getPointerPoint = Unipointer.getPointerPoint;\n\nreturn Unidragger;\n\n}));\n\n/*!\n * Draggabilly v1.2.4\n * Make that shiz draggable\n * http://draggabilly.desandro.com\n * MIT license\n */\n\n( function( window, factory ) {\n \n\n if ( true ) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [\n __WEBPACK_LOCAL_MODULE_1__,\n __WEBPACK_LOCAL_MODULE_2__,\n __WEBPACK_LOCAL_MODULE_3__,\n __WEBPACK_LOCAL_MODULE_7__\n ], __WEBPACK_AMD_DEFINE_RESULT__ = function( classie, getStyleProperty, getSize, Unidragger ) {\n return factory( window, classie, getStyleProperty, getSize, Unidragger );\n }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else if ( typeof exports == 'object' ) {\n // CommonJS\n module.exports = factory(\n window,\n require('desandro-classie'),\n require('desandro-get-style-property'),\n require('get-size'),\n require('unidragger')\n );\n } else {\n // browser global\n window.Draggabilly = factory(\n window,\n window.classie,\n window.getStyleProperty,\n window.getSize,\n window.Unidragger\n );\n }\n\n}( window, function factory( window, classie, getStyleProperty, getSize, Unidragger ) {\n\n\n\n// vars\nvar document = window.document;\n\nfunction noop() {}\n\n// -------------------------- helpers -------------------------- //\n\n// extend objects\nfunction extend( a, b ) {\n for ( var prop in b ) {\n a[ prop ] = b[ prop ];\n }\n return a;\n}\n\n// ----- get style ----- //\n\nvar defView = document.defaultView;\n\nvar getStyle = defView && defView.getComputedStyle ?\n function( elem ) {\n return defView.getComputedStyle( elem, null );\n } :\n function( elem ) {\n return elem.currentStyle;\n };\n\n\n// http://stackoverflow.com/a/384380/182183\nvar isElement = ( typeof HTMLElement == 'object' ) ?\n function isElementDOM2( obj ) {\n return obj instanceof HTMLElement;\n } :\n function isElementQuirky( obj ) {\n return obj && typeof obj == 'object' &&\n obj.nodeType == 1 && typeof obj.nodeName == 'string';\n };\n\n// -------------------------- requestAnimationFrame -------------------------- //\n\n// https://gist.github.com/1866474\n\nvar lastTime = 0;\nvar prefixes = 'webkit moz ms o'.split(' ');\n// get unprefixed rAF and cAF, if present\nvar requestAnimationFrame = window.requestAnimationFrame;\nvar cancelAnimationFrame = window.cancelAnimationFrame;\n// loop through vendor prefixes and get prefixed rAF and cAF\nvar prefix;\nfor( var i = 0; i < prefixes.length; i++ ) {\n if ( requestAnimationFrame && cancelAnimationFrame ) {\n break;\n }\n prefix = prefixes[i];\n requestAnimationFrame = requestAnimationFrame || window[ prefix + 'RequestAnimationFrame' ];\n cancelAnimationFrame = cancelAnimationFrame || window[ prefix + 'CancelAnimationFrame' ] ||\n window[ prefix + 'CancelRequestAnimationFrame' ];\n}\n\n// fallback to setTimeout and clearTimeout if either request/cancel is not supported\nif ( !requestAnimationFrame || !cancelAnimationFrame ) {\n requestAnimationFrame = function( callback ) {\n var currTime = new Date().getTime();\n var timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) );\n var id = window.setTimeout( function() {\n callback( currTime + timeToCall );\n }, timeToCall );\n lastTime = currTime + timeToCall;\n return id;\n };\n\n cancelAnimationFrame = function( id ) {\n window.clearTimeout( id );\n };\n}\n\n// -------------------------- support -------------------------- //\n\nvar transformProperty = getStyleProperty('transform');\n// TODO fix quick & dirty check for 3D support\nvar is3d = !!getStyleProperty('perspective');\n\nvar jQuery = window.jQuery;\n\n// -------------------------- -------------------------- //\n\nfunction Draggabilly( element, options ) {\n // querySelector if string\n this.element = typeof element == 'string' ?\n document.querySelector( element ) : element;\n\n if ( jQuery ) {\n this.$element = jQuery( this.element );\n }\n\n // options\n this.options = extend( {}, this.constructor.defaults );\n this.option( options );\n\n this._create();\n}\n\n// inherit Unidragger methods\nextend( Draggabilly.prototype, Unidragger.prototype );\n\nDraggabilly.defaults = {\n};\n\n/**\n * set options\n * @param {Object} opts\n */\nDraggabilly.prototype.option = function( opts ) {\n extend( this.options, opts );\n};\n\nDraggabilly.prototype._create = function() {\n\n // properties\n this.position = {};\n this._getPosition();\n\n this.startPoint = { x: 0, y: 0 };\n this.dragPoint = { x: 0, y: 0 };\n\n this.startPosition = extend( {}, this.position );\n\n // set relative positioning\n var style = getStyle( this.element );\n if ( style.position != 'relative' && style.position != 'absolute' ) {\n this.element.style.position = 'relative';\n }\n\n this.enable();\n this.setHandles();\n\n};\n\n/**\n * set this.handles and bind start events to 'em\n */\nDraggabilly.prototype.setHandles = function() {\n this.handles = this.options.handle ?\n this.element.querySelectorAll( this.options.handle ) : [ this.element ];\n\n this.bindHandles();\n};\n\n/**\n * emits events via eventEmitter and jQuery events\n * @param {String} type - name of event\n * @param {Event} event - original event\n * @param {Array} args - extra arguments\n */\nDraggabilly.prototype.dispatchEvent = function( type, event, args ) {\n var emitArgs = [ event ].concat( args );\n this.emitEvent( type, emitArgs );\n var jQuery = window.jQuery;\n // trigger jQuery event\n if ( jQuery && this.$element ) {\n if ( event ) {\n // create jQuery event\n var $event = jQuery.Event( event );\n $event.type = type;\n this.$element.trigger( $event, args );\n } else {\n // just trigger with type if no event available\n this.$element.trigger( type, args );\n }\n }\n};\n\n// -------------------------- position -------------------------- //\n\n// get left/top position from style\nDraggabilly.prototype._getPosition = function() {\n // properties\n var style = getStyle( this.element );\n\n var x = parseInt( style.left, 10 );\n var y = parseInt( style.top, 10 );\n\n // clean up 'auto' or other non-integer values\n this.position.x = isNaN( x ) ? 0 : x;\n this.position.y = isNaN( y ) ? 0 : y;\n\n this._addTransformPosition( style );\n};\n\n// add transform: translate( x, y ) to position\nDraggabilly.prototype._addTransformPosition = function( style ) {\n if ( !transformProperty ) {\n return;\n }\n var transform = style[ transformProperty ];\n // bail out if value is 'none'\n if ( transform.indexOf('matrix') !== 0 ) {\n return;\n }\n // split matrix(1, 0, 0, 1, x, y)\n var matrixValues = transform.split(',');\n // translate X value is in 12th or 4th position\n var xIndex = transform.indexOf('matrix3d') === 0 ? 12 : 4;\n var translateX = parseInt( matrixValues[ xIndex ], 10 );\n // translate Y value is in 13th or 5th position\n var translateY = parseInt( matrixValues[ xIndex + 1 ], 10 );\n this.position.x += translateX;\n this.position.y += translateY;\n};\n\n// -------------------------- events -------------------------- //\n\n/**\n * pointer start\n * @param {Event} event\n * @param {Event or Touch} pointer\n */\nDraggabilly.prototype.pointerDown = function( event, pointer ) {\n this._dragPointerDown( event, pointer );\n // kludge to blur focused inputs in dragger\n var focused = document.activeElement;\n if ( focused && focused.blur ) {\n focused.blur();\n }\n // bind move and end events\n this._bindPostStartEvents( event );\n classie.add( this.element, 'is-pointer-down' );\n this.dispatchEvent( 'pointerDown', event, [ pointer ] );\n};\n\n/**\n * drag move\n * @param {Event} event\n * @param {Event or Touch} pointer\n */\nDraggabilly.prototype.pointerMove = function( event, pointer ) {\n var moveVector = this._dragPointerMove( event, pointer );\n this.dispatchEvent( 'pointerMove', event, [ pointer, moveVector ] );\n this._dragMove( event, pointer, moveVector );\n};\n\n/**\n * drag start\n * @param {Event} event\n * @param {Event or Touch} pointer\n */\nDraggabilly.prototype.dragStart = function( event, pointer ) {\n if ( !this.isEnabled ) {\n return;\n }\n this._getPosition();\n this.measureContainment();\n // position _when_ drag began\n this.startPosition.x = this.position.x;\n this.startPosition.y = this.position.y;\n // reset left/top style\n this.setLeftTop();\n\n this.dragPoint.x = 0;\n this.dragPoint.y = 0;\n\n // reset isDragging flag\n this.isDragging = true;\n classie.add( this.element, 'is-dragging' );\n this.dispatchEvent( 'dragStart', event, [ pointer ] );\n // start animation\n this.animate();\n};\n\nDraggabilly.prototype.measureContainment = function() {\n var containment = this.options.containment;\n if ( !containment ) {\n return;\n }\n\n this.size = getSize( this.element );\n var elemRect = this.element.getBoundingClientRect();\n\n // use element if element\n var container = isElement( containment ) ? containment :\n // fallback to querySelector if string\n typeof containment == 'string' ? document.querySelector( containment ) :\n // otherwise just `true`, use the parent\n this.element.parentNode;\n\n this.containerSize = getSize( container );\n var containerRect = container.getBoundingClientRect();\n\n this.relativeStartPosition = {\n x: elemRect.left - containerRect.left,\n y: elemRect.top - containerRect.top\n };\n};\n\n// ----- move event ----- //\n\n/**\n * drag move\n * @param {Event} event\n * @param {Event or Touch} pointer\n */\nDraggabilly.prototype.dragMove = function( event, pointer, moveVector ) {\n if ( !this.isEnabled ) {\n return;\n }\n var dragX = moveVector.x;\n var dragY = moveVector.y;\n\n var grid = this.options.grid;\n var gridX = grid && grid[0];\n var gridY = grid && grid[1];\n\n dragX = applyGrid( dragX, gridX );\n dragY = applyGrid( dragY, gridY );\n\n dragX = this.containDrag( 'x', dragX, gridX );\n dragY = this.containDrag( 'y', dragY, gridY );\n\n // constrain to axis\n dragX = this.options.axis == 'y' ? 0 : dragX;\n dragY = this.options.axis == 'x' ? 0 : dragY;\n\n this.position.x = this.startPosition.x + dragX;\n this.position.y = this.startPosition.y + dragY;\n // set dragPoint properties\n this.dragPoint.x = dragX;\n this.dragPoint.y = dragY;\n\n this.dispatchEvent( 'dragMove', event, [ pointer, moveVector ] );\n};\n\nfunction applyGrid( value, grid, method ) {\n method = method || 'round';\n return grid ? Math[ method ]( value / grid ) * grid : value;\n}\n\nDraggabilly.prototype.containDrag = function( axis, drag, grid ) {\n if ( !this.options.containment ) {\n return drag;\n }\n var measure = axis == 'x' ? 'width' : 'height';\n\n var rel = this.relativeStartPosition[ axis ];\n var min = applyGrid( -rel, grid, 'ceil' );\n var max = this.containerSize[ measure ] - rel - this.size[ measure ];\n max = applyGrid( max, grid, 'floor' );\n return Math.min( max, Math.max( min, drag ) );\n};\n\n// ----- end event ----- //\n\n/**\n * pointer up\n * @param {Event} event\n * @param {Event or Touch} pointer\n */\nDraggabilly.prototype.pointerUp = function( event, pointer ) {\n classie.remove( this.element, 'is-pointer-down' );\n this.dispatchEvent( 'pointerUp', event, [ pointer ] );\n this._dragPointerUp( event, pointer );\n};\n\n/**\n * drag end\n * @param {Event} event\n * @param {Event or Touch} pointer\n */\nDraggabilly.prototype.dragEnd = function( event, pointer ) {\n if ( !this.isEnabled ) {\n return;\n }\n this.isDragging = false;\n // use top left position when complete\n if ( transformProperty ) {\n this.element.style[ transformProperty ] = '';\n this.setLeftTop();\n }\n classie.remove( this.element, 'is-dragging' );\n this.dispatchEvent( 'dragEnd', event, [ pointer ] );\n};\n\n// -------------------------- animation -------------------------- //\n\nDraggabilly.prototype.animate = function() {\n // only render and animate if dragging\n if ( !this.isDragging ) {\n return;\n }\n\n this.positionDrag();\n\n var _this = this;\n requestAnimationFrame( function animateFrame() {\n _this.animate();\n });\n\n};\n\n// transform translate function\nvar translate = is3d ?\n function( x, y ) {\n return 'translate3d( ' + x + 'px, ' + y + 'px, 0)';\n } :\n function( x, y ) {\n return 'translate( ' + x + 'px, ' + y + 'px)';\n };\n\n// left/top positioning\nDraggabilly.prototype.setLeftTop = function() {\n this.element.style.left = this.position.x + 'px';\n this.element.style.top = this.position.y + 'px';\n};\n\nDraggabilly.prototype.positionDrag = transformProperty ?\n function() {\n // position with transform\n this.element.style[ transformProperty ] = translate( this.dragPoint.x, this.dragPoint.y );\n } : Draggabilly.prototype.setLeftTop;\n\n// ----- staticClick ----- //\n\nDraggabilly.prototype.staticClick = function( event, pointer ) {\n this.dispatchEvent( 'staticClick', event, [ pointer ] );\n};\n\n// ----- methods ----- //\n\nDraggabilly.prototype.enable = function() {\n this.isEnabled = true;\n};\n\nDraggabilly.prototype.disable = function() {\n this.isEnabled = false;\n if ( this.isDragging ) {\n this.dragEnd();\n }\n};\n\nDraggabilly.prototype.destroy = function() {\n this.disable();\n // reset styles\n if ( transformProperty ) {\n this.element.style[ transformProperty ] = '';\n }\n this.element.style.left = '';\n this.element.style.top = '';\n this.element.style.position = '';\n // unbind handles\n this.unbindHandles();\n // remove jQuery data\n if ( this.$element ) {\n this.$element.removeData('draggabilly');\n }\n};\n\n// ----- jQuery bridget ----- //\n\n// required for jQuery bridget\nDraggabilly.prototype._init = noop;\n\nif ( jQuery && jQuery.bridget ) {\n jQuery.bridget( 'draggabilly', Draggabilly );\n}\n\n// ----- ----- //\n\nreturn Draggabilly;\n\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./bower_components/draggabilly/dist/draggabilly.pkgd.js\n ** module id = 20\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./bower_components/draggabilly/dist/draggabilly.pkgd.js?");
|
|
},function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(4)();\nexports.push([module.id, "#NotoneDrawer{top:0;left:0;position:absolute;width:2px;height:auto;background-color:#fff;border-color:#000;border-style:solid;border-width:0 25px 2px 0;-webkit-transition:width .15s;transition:width .15s}#NotoneDrawer #OpenButton,#NotoneDrawer #Search{width:calc(100% - 4px);border-style:solid;border-color:#000;margin-bottom:2px;margin-left:2px}#NotoneDrawer #OpenButton,#NotoneDrawer #Search,#NotoneDrawer .Notone{opacity:0;-webkit-transition:opacity .15s;transition:opacity .15s}#NotoneDrawer .Notone{position:relative}#NotoneDrawer #OpenButton{cursor:pointer;height:25px;line-height:25px;background-color:#fff;border-width:2px 0 0 2px;font-family:monospace;text-align:center}#NotoneDrawer #OpenButton:hover{border-width:0 2px 2px 0}#NotoneDrawer #Search{display:none;overflow:hidden;border-width:2px 0 2px 2px;height:21px}#NotoneDrawer #Search input{font-family:inherit;width:calc(100% - 10px);padding-left:10px;height:calc(100% - 2px);-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:0}#NotoneDrawer #Search #Clear{width:16.8px;height:16.8px;position:absolute;right:2.2px;top:4.2px;background-color:#000;color:#fff;text-align:center;cursor:pointer;line-height:16.8px}#NotoneDrawer #Search #Clear:hover{background-color:#ECECEC;color:#000}#NotoneDrawer #Search #Clear:hover:active{background-color:#fff;color:#000}#NotoneDrawer #Search.Visible{display:inherit}#NotoneDrawer #OpenText{position:absolute;right:-25px;width:25px;top:0;height:100%;line-height:25px;cursor:pointer}#NotoneDrawer #OpenText:before{color:#ECECEC;text-align:center;-webkit-transform:translate(0,-50%)rotate(-90deg);-ms-transform:translate(0,-50%)rotate(-90deg);transform:translate(0,-50%)rotate(-90deg);top:50%;-webkit-transform-origin:50% 50%;-ms-transform-origin:50% 50%;transform-origin:50% 50%;content:\\"OPEN\\";font-family:monospace;right:-2px;position:absolute;height:25px;line-height:25px;-webkit-transition:opacity .15s;transition:opacity .15s}#NotoneDrawer #Tones{overflow:hidden}#NotoneDrawer.Expanded{width:244px;padding-left:2px;padding-right:2px}#NotoneDrawer.Expanded #OpenText:before{opacity:0}#NotoneDrawer.Expanded #OpenButton,#NotoneDrawer.Expanded #Search,#NotoneDrawer.Expanded .Notone{opacity:1}#OpenButton.Expanded{color:#aaa!important}#OpenButton:hover:active{border-color:#aaa!important}", ""]);\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/css-loader!./~/autoprefixer-loader!./~/sass-loader!./style/drawer.scss\n ** module id = 21\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./style/drawer.scss?./~/css-loader!./~/autoprefixer-loader!./~/sass-loader')},function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(4)();\nexports.push([module.id, ".Notone,.Notone #OpenButton{border-style:solid;font-family:monospace}.Notone #OpenButton,.Notone .Notone{margin-left:2px;border-color:#000;box-sizing:border-box}.Notone{margin-bottom:2px;width:240px;background-color:#fff;border-color:#000;border-width:2px 0 0 10px;font-size:11px;position:absolute}.Notone #Title{position:relative;width:100%;text-align:center;height:25px;line-height:25px;font-size:1.2em}.Notone #Title #Listen{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;position:absolute;height:25px;width:12px;right:0;top:0;border-width:0}.Notone #Title #Listen:active{background-color:#00f}.Notone #Title #Close{width:23px;height:23px;position:absolute;left:2px;top:2px;background-color:#000;color:#fff;text-align:center;cursor:pointer;line-height:23px}.Notone #Title #Close:hover{background-color:#3833ED;color:#fff}.Notone #Title #Close:hover:active{background-color:#ED33CF;color:#22DBC0}.Notone #OpenButton,.Notone .Notone #Title{color:#000;margin-top:2px;height:25px;line-height:25px}.Notone #OpenButton{cursor:pointer;width:calc(100% - $innerOffset);text-align:center;border-width:4px 0 0 4px}.Notone #OpenButton:hover{border-width:0 4px 4px 0}.Notone .Notone{width:calc(100% - 2px);margin-top:2px;border-width:2px 0 0 2px;overflow:hidden}.Notone .Notone #Title{font-size:1em}.Notone .Notone #Close,.Notone .Notone #Listen{display:none}.Notone .Notone.Expanded{height:auto}.Notone.Draggable{box-shadow:4px 4px 24px -2px #888;cursor:-webkit-grab;cursor:grab}.Notone.Draggable.is-pointer-down{cursor:-webkit-grabbing;cursor:grabbing}", ""]);\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/css-loader!./~/autoprefixer-loader!./~/sass-loader!./style/main.scss\n ** module id = 22\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./style/main.scss?./~/css-loader!./~/autoprefixer-loader!./~/sass-loader')},function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(4)();\nexports.push([module.id, ".Notone.Meter .Parameter.Meter #Name{font-size:1.2em}.Notone.Meter .Parameter.Meter #Units{width:56px;text-align:center;color:#000;font-size:1.1em;line-height:23px}", ""]);\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/css-loader!./~/autoprefixer-loader!./~/sass-loader!./style/meter.scss\n ** module id = 23\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./style/meter.scss?./~/css-loader!./~/autoprefixer-loader!./~/sass-loader')},function(module,exports,__webpack_require__){eval('exports = module.exports = __webpack_require__(4)();\nexports.push([module.id, ".Notone .Parameter{margin-left:2px;position:relative;margin-top:2px;background-color:#000;color:#fff;line-height:24px;width:calc(100% - 2px * 2);height:24px}.Notone .Parameter #Name{position:relative;display:inline-block;width:auto;margin-left:4px;height:24px}.Notone .Parameter #Units{position:absolute;right:0;width:36px;padding-right:4px;height:22px;background-color:#fff;top:2px;color:#8C8C8C;font-size:.7em;text-align:left;line-height:28px}.Notone .Parameter #Value{position:absolute;right:40px;width:70px;height:24px}.Notone .Parameter #Value *{display:inline-block;width:70px;margin-top:2px;height:20px;background-color:#fff}.Notone .Parameter #Value .Number{cursor:ns-resize}.Notone .Parameter #Value .Boolean{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;margin:0;position:absolute;top:2px}.Notone .Parameter #Value .Boolean:checked{background-color:#00f}.Notone .Parameter #Value input{font-size:1em;font-family:monospace;text-align:center;border-width:0;-webkit-transition:background-color 2s;transition:background-color 2s;background-color:#fff}.Notone .Parameter #Value.Error input{background-color:red;-webkit-transition:background-color 0s;transition:background-color 0s}.Notone .Parameter.Overridden{display:none;background-color:#aaa}.Notone .Parameter.Overridden input{pointer-events:none;color:#aaa}.Notone .Parameter.Hidden{display:none}", ""]);\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/css-loader!./~/autoprefixer-loader!./~/sass-loader!./style/parameter.scss\n ** module id = 24\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./style/parameter.scss?./~/css-loader!./~/autoprefixer-loader!./~/sass-loader')},function(module,exports,__webpack_require__){eval('module.exports = {\n "Buffer": {\n "url": {\n "description": "The url of the buffer. <code>undefined</code> if it was \\n constructed with a buffer",\n "type": [\n "string"\n ],\n "readonly": true\n },\n "loaded": {\n "description": "Indicates if the buffer is loaded or not.",\n "type": [\n "boolean"\n ],\n "readonly": true\n },\n "onload": {\n "description": "The callback to invoke when everything is loaded.",\n "type": [\n "function"\n ]\n },\n "duration": {\n "description": "The duration of the buffer.",\n "type": [\n "number"\n ],\n "readonly": true\n },\n "reverse": {\n "description": "Reverse the buffer.",\n "type": [\n "boolean"\n ]\n }\n },\n "Clock": {\n "frequency": {\n "description": "The frequency in which the callback will be invoked.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "tick": {\n "description": "The callback which is invoked on every tick\\n with the time of that tick as the argument",\n "type": [\n "function"\n ]\n },\n "onended": {\n "description": "Callback is invoked when the clock is stopped.",\n "type": [\n "function"\n ]\n }\n },\n "Master": {\n "volume": {\n "description": "The volume of the master output.",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "mute": {\n "description": "Mute the output.",\n "type": [\n "boolean"\n ]\n }\n },\n "Note": {\n "value": {\n "description": "the value of the note. This value is returned\\n when the channel callback is invoked.",\n "type": [\n "string",\n "number",\n "Object"\n ]\n }\n },\n "Tone": {\n "context": {\n "description": "The audio context.",\n "type": [\n "AudioContext"\n ]\n }\n },\n "Transport": {\n "loop": {\n "description": "If the transport loops or not.",\n "type": [\n "boolean"\n ]\n },\n "bpm": {\n "description": "The Beats Per Minute of the Transport.",\n "type": [\n "BPM"\n ],\n "signal": true\n },\n "state": {\n "description": "The state of the transport. READ ONLY.",\n "type": [\n "Tone.State"\n ]\n },\n "timeSignature": {\n "description": "The time signature as just the numerator over 4. \\n For example 4/4 would be just 4 and 6/8 would be 3.",\n "type": [\n "number"\n ]\n },\n "loopStart": {\n "description": "When the Tone.Transport.loop = true, this is the starting position of the loop.",\n "type": [\n "Time"\n ]\n },\n "loopEnd": {\n "description": "When the Tone.Transport.loop = true, this is the ending position of the loop.",\n "type": [\n "Time"\n ]\n },\n "swing": {\n "description": "The swing value. Between 0-1 where 1 equal to \\n the note + half the subdivision.",\n "type": [\n "NormalRange"\n ]\n },\n "swingSubdivision": {\n "description": "Set the subdivision which the swing will be applied to. \\n The default values is a 16th note. Value must be less \\n than a quarter note.",\n "type": [\n "Time"\n ]\n },\n "position": {\n "description": "The Transport\'s position in MEASURES:BEATS:SIXTEENTHS.\\n Setting the value will jump to that position right away.",\n "type": [\n "TransportTime"\n ]\n }\n },\n "Compressor": {\n "threshold": {\n "description": "the threshold vaue",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "attack": {\n "description": "The attack parameter",\n "type": [\n "Time"\n ],\n "signal": true\n },\n "release": {\n "description": "The release parameter",\n "type": [\n "Time"\n ],\n "signal": true\n },\n "knee": {\n "description": "The knee parameter",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "ratio": {\n "description": "The ratio value",\n "type": [\n "Number"\n ],\n "signal": true\n }\n },\n "CrossFade": {\n "a": {\n "description": "Alias for <code>input[0]</code>.",\n "type": [\n "GainNode"\n ]\n },\n "b": {\n "description": "Alias for <code>input[1]</code>.",\n "type": [\n "GainNode"\n ]\n },\n "fade": {\n "description": "The mix between the two inputs. A fade value of 0\\n\\twill output 100% <code>input[0]</code> and \\n\\ta value of 1 will output 100% <code>input[1]</code>.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "EQ3": {\n "low": {\n "description": "The gain in decibels of the low part",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "mid": {\n "description": "The gain in decibels of the mid part",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "high": {\n "description": "The gain in decibels of the high part",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "Q": {\n "description": "The Q value for all of the filters.",\n "type": [\n "Positive"\n ],\n "signal": true\n },\n "lowFrequency": {\n "description": "The low/mid crossover frequency.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "highFrequency": {\n "description": "The mid/high crossover frequency.",\n "type": [\n "Frequency"\n ],\n "signal": true\n }\n },\n "Envelope": {\n "attack": {\n "description": "When triggerAttack is called, the attack time is the amount of\\n time it takes for the envelope to reach it\'s maximum value.",\n "type": [\n "Time"\n ]\n },\n "decay": {\n "description": "After the attack portion of the envelope, the value will fall\\n over the duration of the decay time to it\'s sustain value.",\n "type": [\n "Time"\n ]\n },\n "sustain": {\n "description": "The sustain value is the value \\n\\twhich the envelope rests at after triggerAttack is\\n\\tcalled, but before triggerRelease is invoked.",\n "type": [\n "NormalRange"\n ]\n },\n "release": {\n "description": "After triggerRelease is called, the envelope\'s\\n value will fall to it\'s miminum value over the\\n duration of the release time.",\n "type": [\n "Time"\n ]\n },\n "value": {\n "description": "Read the current value of the envelope. Useful for \\nsyncronizing visual output to the envelope.",\n "type": [\n "Number"\n ],\n "readonly": true\n },\n "attackCurve": {\n "description": "The slope of the attack. Either \\"linear\\" or \\"exponential\\".",\n "type": [\n "string"\n ]\n }\n },\n "FeedbackCombFilter": {\n "resonance": {\n "description": "The amount of feedback of the delayed signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "delayTime": {\n "description": "The amount of delay of the comb filter.",\n "type": [\n "Time"\n ],\n "signal": true\n }\n },\n "Filter": {\n "frequency": {\n "description": "The cutoff frequency of the filter.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "detune": {\n "description": "The detune parameter",\n "type": [\n "Cents"\n ],\n "signal": true\n },\n "gain": {\n "description": "The gain of the filter, only used in certain filter types",\n "type": [\n "Gain"\n ],\n "signal": true\n },\n "Q": {\n "description": "The Q or Quality of the filter",\n "type": [\n "Positive"\n ],\n "signal": true\n },\n "type": {\n "description": "The type of the filter. Types: \\"lowpass\\", \\"highpass\\", \\n\\"bandpass\\", \\"lowshelf\\", \\"highshelf\\", \\"notch\\", \\"allpass\\", or \\"peaking\\".",\n "type": [\n "string"\n ]\n },\n "rolloff": {\n "description": "The rolloff of the filter which is the drop in db\\nper octave. Implemented internally by cascading filters.\\nOnly accepts the values -12, -24, and -48.",\n "type": [\n "number"\n ]\n }\n },\n "Follower": {\n "attack": {\n "description": "The attack time.",\n "type": [\n "Time"\n ]\n },\n "release": {\n "description": "The release time.",\n "type": [\n "Time"\n ]\n }\n },\n "Gate": {\n "threshold": {\n "description": "The threshold of the gate in decibels",\n "type": [\n "Decibels"\n ]\n },\n "attack": {\n "description": "The attack speed of the gate",\n "type": [\n "Time"\n ]\n },\n "release": {\n "description": "The release speed of the gate",\n "type": [\n "Time"\n ]\n }\n },\n "LFO": {\n "frequency": {\n "description": "the lfo\'s frequency",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "amplitude": {\n "description": "The amplitude of the LFO, which controls the output range between\\nthe min and max output. For example if the min is -10 and the max \\nis 10, setting the amplitude to 0.5 would make the LFO modulate\\nbetween -5 and 5.",\n "type": [\n "Number"\n ],\n "signal": true\n },\n "min": {\n "description": "The miniumum output of the LFO.",\n "type": [\n "number"\n ]\n },\n "max": {\n "description": "The maximum output of the LFO.",\n "type": [\n "number"\n ]\n },\n "type": {\n "description": "The type of the oscillator: sine, square, sawtooth, triangle.",\n "type": [\n "string"\n ]\n },\n "phase": {\n "description": "The phase of the LFO.",\n "type": [\n "number"\n ]\n },\n "units": {\n "description": "The output units of the LFO.",\n "type": [\n "Tone.Type"\n ]\n },\n "detune": {\n "description": "The detune control signal.",\n "type": [\n "Cents"\n ],\n "signal": true\n },\n "onended": {\n "description": "Callback is invoked when the source is done playing.",\n "type": [\n "function"\n ]\n },\n "volume": {\n "description": "The volume of the output in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "state": {\n "description": "Returns the playback state of the source, either \\"started\\" or \\"stopped\\".",\n "type": [\n "Tone.State"\n ],\n "readonly": true\n }\n },\n "Limiter": {\n "threshold": {\n "description": "The threshold of of the limiter",\n "type": [\n "Decibel"\n ],\n "signal": true\n }\n },\n "LowpassCombFilter": {\n "delayTime": {\n "description": "The delayTime of the comb filter.",\n "type": [\n "Time"\n ],\n "signal": true\n },\n "dampening": {\n "description": "The dampening control of the feedback",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "resonance": {\n "description": "The amount of feedback of the delayed signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Merge": {\n "left": {\n "description": "The left input channel.\\n Alias for <code>input[0]</code>",\n "type": [\n "GainNode"\n ]\n },\n "right": {\n "description": "The right input channel.\\n Alias for <code>input[1]</code>.",\n "type": [\n "GainNode"\n ]\n }\n },\n "MidSideCompressor": {\n "mid": {\n "description": "The compressor applied to the mid signal",\n "type": [\n "Tone.Compressor"\n ]\n },\n "side": {\n "description": "The compressor applied to the side signal",\n "type": [\n "Tone.Compressor"\n ]\n }\n },\n "MidSideMerge": {\n "mid": {\n "description": "The mid signal input. Alias for\\n <code>input[0]</code>",\n "type": [\n "GainNode"\n ]\n },\n "side": {\n "description": "The side signal input. Alias for\\n <code>input[1]</code>",\n "type": [\n "GainNode"\n ]\n },\n "wet": {\n "description": "The wet control, i.e. how much of the effected\\n will pass through to the output.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "MidSideSplit": {\n "mid": {\n "description": "The mid send. Connect to mid processing. Alias for\\n <code>output[0]</code>",\n "type": [\n "Tone.Expr"\n ]\n },\n "side": {\n "description": "The side output. Connect to side processing. Alias for\\n <code>output[1]</code>",\n "type": [\n "Tone.Expr"\n ]\n }\n },\n "MultibandCompressor": {\n "lowFrequency": {\n "description": "low/mid crossover frequency.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "highFrequency": {\n "description": "mid/high crossover frequency.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "low": {\n "description": "The compressor applied to the low frequencies.",\n "type": [\n "Tone.Compressor"\n ]\n },\n "mid": {\n "description": "The compressor applied to the mid frequencies.",\n "type": [\n "Tone.Compressor"\n ]\n },\n "high": {\n "description": "The compressor applied to the high frequencies.",\n "type": [\n "Tone.Compressor"\n ]\n }\n },\n "MultibandSplit": {\n "low": {\n "description": "The low band. Alias for <code>output[0]</code>",\n "type": [\n "Tone.Filter"\n ]\n },\n "mid": {\n "description": "The mid band output. Alias for <code>output[1]</code>",\n "type": [\n "Tone.Filter"\n ]\n },\n "high": {\n "description": "The high band output. Alias for <code>output[2]</code>",\n "type": [\n "Tone.Filter"\n ]\n },\n "lowFrequency": {\n "description": "The low/mid crossover frequency.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "highFrequency": {\n "description": "The mid/high crossover frequency.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "Q": {\n "description": "The quality of all the filters",\n "type": [\n "Number"\n ],\n "signal": true\n }\n },\n "PanVol": {\n "pan": {\n "description": "The L/R panning control.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "volume": {\n "description": "The volume control in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "Panner": {\n "pan": {\n "description": "The pan control. 0 = hard left, 1 = hard right.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "ScaledEnvelope": {\n "min": {\n "description": "The envelope\'s min output value. This is the value which it\\nstarts at.",\n "type": [\n "number"\n ]\n },\n "max": {\n "description": "The envelope\'s max output value. In other words, the value\\nat the peak of the attack portion of the envelope.",\n "type": [\n "number"\n ]\n },\n "exponent": {\n "description": "The envelope\'s exponent value.",\n "type": [\n "number"\n ]\n },\n "attack": {\n "description": "When triggerAttack is called, the attack time is the amount of\\n time it takes for the envelope to reach it\'s maximum value.",\n "type": [\n "Time"\n ]\n },\n "decay": {\n "description": "After the attack portion of the envelope, the value will fall\\n over the duration of the decay time to it\'s sustain value.",\n "type": [\n "Time"\n ]\n },\n "sustain": {\n "description": "The sustain value is the value \\n\\twhich the envelope rests at after triggerAttack is\\n\\tcalled, but before triggerRelease is invoked.",\n "type": [\n "NormalRange"\n ]\n },\n "release": {\n "description": "After triggerRelease is called, the envelope\'s\\n value will fall to it\'s miminum value over the\\n duration of the release time.",\n "type": [\n "Time"\n ]\n },\n "value": {\n "description": "Read the current value of the envelope. Useful for \\nsyncronizing visual output to the envelope.",\n "type": [\n "Number"\n ],\n "readonly": true\n },\n "attackCurve": {\n "description": "The slope of the attack. Either \\"linear\\" or \\"exponential\\".",\n "type": [\n "string"\n ]\n }\n },\n "Split": {\n "left": {\n "description": "Left channel output. \\n Alias for <code>output[0]</code>",\n "type": [\n "GainNode"\n ]\n },\n "right": {\n "description": "Right channel output.\\n Alias for <code>output[1]</code>",\n "type": [\n "GainNode"\n ]\n }\n },\n "Volume": {\n "volume": {\n "description": "The volume control in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "AMSynth": {\n "carrier": {\n "description": "The carrier voice.",\n "type": [\n "Tone.MonoSynth"\n ]\n },\n "modulator": {\n "description": "The modulator voice.",\n "type": [\n "Tone.MonoSynth"\n ]\n },\n "frequency": {\n "description": "The frequency.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "harmonicity": {\n "description": "Harmonicity is the ratio between the two voices. A harmonicity of\\n 1 is no change. Harmonicity = 2 means a change of an octave.",\n "type": [\n "Positive"\n ],\n "signal": true\n },\n "portamento": {\n "description": "The glide time between notes.",\n "type": [\n "Time"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "DrumSynth": {\n "oscillator": {\n "description": "The oscillator.",\n "type": [\n "Tone.Oscillator"\n ]\n },\n "envelope": {\n "description": "The amplitude envelope.",\n "type": [\n "Tone.AmplitudeEnvelope"\n ]\n },\n "octaves": {\n "description": "The number of octaves the pitch envelope ramps.",\n "type": [\n "Positive"\n ]\n },\n "pitchDecay": {\n "description": "The amount of time the frequency envelope takes.",\n "type": [\n "Time"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "DuoSynth": {\n "voice0": {\n "description": "the first voice",\n "type": [\n "Tone.MonoSynth"\n ]\n },\n "voice1": {\n "description": "the second voice",\n "type": [\n "Tone.MonoSynth"\n ]\n },\n "vibratoRate": {\n "description": "the vibrato frequency",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "vibratoAmount": {\n "description": "The amount of vibrato",\n "type": [\n "Gain"\n ],\n "signal": true\n },\n "frequency": {\n "description": "the frequency control",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "harmonicity": {\n "description": "Harmonicity is the ratio between the two voices. A harmonicity of\\n 1 is no change. Harmonicity = 2 means a change of an octave.",\n "type": [\n "Positive"\n ],\n "signal": true\n },\n "portamento": {\n "description": "The glide time between notes.",\n "type": [\n "Time"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "FMSynth": {\n "carrier": {\n "description": "The carrier voice.",\n "type": [\n "Tone.MonoSynth"\n ]\n },\n "modulator": {\n "description": "The modulator voice.",\n "type": [\n "Tone.MonoSynth"\n ]\n },\n "frequency": {\n "description": "The frequency control.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "harmonicity": {\n "description": "Harmonicity is the ratio between the two voices. A harmonicity of\\n 1 is no change. Harmonicity = 2 means a change of an octave.",\n "type": [\n "Positive"\n ],\n "signal": true\n },\n "modulationIndex": {\n "description": "The modulation index which essentially the depth or amount of the modulation. It is the \\n ratio of the frequency of the modulating signal (mf) to the amplitude of the \\n modulating signal (ma) -- as in ma/mf.",\n "type": [\n "Positive"\n ],\n "signal": true\n },\n "portamento": {\n "description": "The glide time between notes.",\n "type": [\n "Time"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "Instrument": {\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "MonoSynth": {\n "oscillator": {\n "description": "The oscillator.",\n "type": [\n "Tone.OmniOscillator"\n ]\n },\n "frequency": {\n "description": "The frequency control.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "detune": {\n "description": "The detune control.",\n "type": [\n "Cents"\n ],\n "signal": true\n },\n "filter": {\n "description": "The filter.",\n "type": [\n "Tone.Filter"\n ]\n },\n "filterEnvelope": {\n "description": "The filter envelope.",\n "type": [\n "Tone.ScaledEnvelope"\n ]\n },\n "envelope": {\n "description": "The amplitude envelope.",\n "type": [\n "Tone.AmplitudeEnvelope"\n ]\n },\n "portamento": {\n "description": "The glide time between notes.",\n "type": [\n "Time"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "Monophonic": {\n "portamento": {\n "description": "The glide time between notes.",\n "type": [\n "Time"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "NoiseSynth": {\n "noise": {\n "description": "The noise source.",\n "type": [\n "Tone.Noise"\n ]\n },\n "filter": {\n "description": "The filter.",\n "type": [\n "Tone.Filter"\n ]\n },\n "filterEnvelope": {\n "description": "The filter envelope.",\n "type": [\n "Tone.ScaledEnvelope"\n ]\n },\n "envelope": {\n "description": "The amplitude envelope.",\n "type": [\n "Tone.AmplitudeEnvelope"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "PluckSynth": {\n "attackNoise": {\n "description": "The amount of noise at the attack. \\n Nominal range of [0.1, 20]",\n "type": [\n "number"\n ]\n },\n "resonance": {\n "description": "The resonance control.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "dampening": {\n "description": "The dampening control. i.e. the lowpass filter frequency of the comb filter",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "PolySynth": {\n "voices": {\n "description": "the array of voices",\n "type": [\n "Array"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "Sampler": {\n "player": {\n "description": "The sample player.",\n "type": [\n "Tone.Player"\n ]\n },\n "envelope": {\n "description": "The amplitude envelope.",\n "type": [\n "Tone.AmplitudeEnvelope"\n ]\n },\n "filterEnvelope": {\n "description": "The filter envelope.",\n "type": [\n "Tone.ScaledEnvelope"\n ]\n },\n "filter": {\n "description": "The filter.",\n "type": [\n "Tone.Filter"\n ]\n },\n "sample": {\n "description": "The name of the sample to trigger.",\n "type": [\n "number",\n "string"\n ]\n },\n "reverse": {\n "description": "The direction the buffer should play in",\n "type": [\n "boolean"\n ]\n },\n "pitch": {\n "description": "Repitch the sampled note by some interval (measured\\nin semi-tones).",\n "type": [\n "Interval"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "SimpleAM": {\n "carrier": {\n "description": "The carrier voice.",\n "type": [\n "Tone.SimpleSynth"\n ]\n },\n "modulator": {\n "description": "The modulator voice.",\n "type": [\n "Tone.SimpleSynth"\n ]\n },\n "frequency": {\n "description": "the frequency control",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "harmonicity": {\n "description": "The ratio between the carrier and the modulator frequencies. A value of 1\\n makes both voices in unison, a value of 0.5 puts the modulator an octave below\\n the carrier.",\n "type": [\n "Positive"\n ],\n "signal": true\n },\n "portamento": {\n "description": "The glide time between notes.",\n "type": [\n "Time"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "SimpleFM": {\n "carrier": {\n "description": "The carrier voice.",\n "type": [\n "Tone.SimpleSynth"\n ]\n },\n "modulator": {\n "description": "The modulator voice.",\n "type": [\n "Tone.SimpleSynth"\n ]\n },\n "frequency": {\n "description": "the frequency control",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "harmonicity": {\n "description": "Harmonicity is the ratio between the two voices. A harmonicity of\\n 1 is no change. Harmonicity = 2 means a change of an octave.",\n "type": [\n "Positive"\n ],\n "signal": true\n },\n "modulationIndex": {\n "description": "The modulation index which is in essence the depth or amount of the modulation. In other terms it is the \\n ratio of the frequency of the modulating signal (mf) to the amplitude of the \\n modulating signal (ma) -- as in ma/mf.",\n "type": [\n "Positive"\n ],\n "signal": true\n },\n "portamento": {\n "description": "The glide time between notes.",\n "type": [\n "Time"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "SimpleSynth": {\n "oscillator": {\n "description": "The oscillator.",\n "type": [\n "Tone.OmniOscillator"\n ]\n },\n "frequency": {\n "description": "The frequency control.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "detune": {\n "description": "The detune control.",\n "type": [\n "Cents"\n ],\n "signal": true\n },\n "envelope": {\n "description": "The amplitude envelope.",\n "type": [\n "Tone.AmplitudeEnvelope"\n ]\n },\n "portamento": {\n "description": "The glide time between notes.",\n "type": [\n "Time"\n ]\n },\n "volume": {\n "description": "The volume of the instrument.",\n "type": [\n "Decibels"\n ],\n "signal": true\n }\n },\n "AutoFilter": {\n "depth": {\n "description": "The range of the filter modulating between the min and max frequency. \\n0 = no modulation. 1 = full modulation.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "frequency": {\n "description": "How fast the filter modulates between min and max.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "filter": {\n "description": "The filter node",\n "type": [\n "Tone.Filter"\n ]\n },\n "type": {\n "description": "Type of oscillator attached to the AutoFilter. \\nPossible values: \\"sine\\", \\"square\\", \\"triangle\\", \\"sawtooth\\".",\n "type": [\n "string"\n ]\n },\n "min": {\n "description": "The minimum value of the LFO attached to the cutoff frequency of the filter.",\n "type": [\n "Frequency"\n ]\n },\n "max": {\n "description": "The minimum value of the LFO attached to the cutoff frequency of the filter.",\n "type": [\n "Frequency"\n ]\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "AutoPanner": {\n "depth": {\n "description": "The amount of panning between left and right. \\n0 = always center. 1 = full range between left and right.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "frequency": {\n "description": "How fast the panner modulates between left and right.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "AutoWah": {\n "gain": {\n "description": "The gain of the filter.",\n "type": [\n "Gain"\n ],\n "signal": true\n },\n "Q": {\n "description": "The quality of the filter.",\n "type": [\n "Positive"\n ],\n "signal": true\n },\n "octaves": {\n "description": "The number of octaves that the filter will sweep above the \\nbaseFrequency.",\n "type": [\n "Number"\n ]\n },\n "baseFrequency": {\n "description": "The base frequency from which the sweep will start from.",\n "type": [\n "Frequency"\n ]\n },\n "sensitivity": {\n "description": "The sensitivity to control how responsive to the input signal the filter is.",\n "type": [\n "Decibels"\n ]\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "BitCrusher": {\n "bits": {\n "description": "The bit depth of the effect. Nominal range of 1-8.",\n "type": [\n "number"\n ]\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Chebyshev": {\n "order": {\n "description": "The order of the Chebyshev polynomial which creates\\nthe equation which is applied to the incoming \\nsignal through a Tone.WaveShaper. The equations\\nare in the form:<br>\\norder 2: 2x^2 + 1<br>\\norder 3: 4x^3 + 3x <br>",\n "type": [\n "Positive"\n ]\n },\n "oversample": {\n "description": "The oversampling of the effect. Can either be \\"none\\", \\"2x\\" or \\"4x\\".",\n "type": [\n "string"\n ]\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Chorus": {\n "frequency": {\n "description": "The frequency of the LFO which modulates the delayTime.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "depth": {\n "description": "The depth of the effect. A depth of 1 makes the delayTime\\nmodulate between 0 and 2*delayTime (centered around the delayTime).",\n "type": [\n "NormalRange"\n ]\n },\n "delayTime": {\n "description": "The delayTime in milliseconds of the chorus. A larger delayTime\\nwill give a more pronounced effect. Nominal range a delayTime\\nis between 2 and 20ms.",\n "type": [\n "Number"\n ]\n },\n "type": {\n "description": "The oscillator type of the LFO.",\n "type": [\n "string"\n ]\n },\n "feedback": {\n "description": "The amount of feedback from the output\\n back into the input of the effect (routed\\n across left and right channels).",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Convolver": {\n "buffer": {\n "description": "The convolver\'s buffer",\n "type": [\n "AudioBuffer"\n ]\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Distortion": {\n "distortion": {\n "description": "The amount of distortion. Range between 0-1.",\n "type": [\n "number"\n ]\n },\n "oversample": {\n "description": "The oversampling of the effect. Can either be \\"none\\", \\"2x\\" or \\"4x\\".",\n "type": [\n "string"\n ]\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Effect": {\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "FeedbackDelay": {\n "delayTime": {\n "description": "The delayTime of the DelayNode.",\n "type": [\n "Time"\n ],\n "signal": true\n },\n "feedback": {\n "description": "The amount of signal which is fed back into the effect input.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "FeedbackEffect": {\n "feedback": {\n "description": "The amount of signal which is fed back into the effect input.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Freeverb": {\n "roomSize": {\n "description": "The roomSize value between. A larger roomSize\\n will result in a longer decay.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "dampening": {\n "description": "The amount of dampening of the reverberant signal.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "JCReverb": {\n "roomSize": {\n "description": "room size control values between [0,1]",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Phaser": {\n "frequency": {\n "description": "the frequency of the effect",\n "type": [\n "Tone.Signal"\n ]\n },\n "depth": {\n "description": "The depth of the effect.",\n "type": [\n "number"\n ]\n },\n "baseFrequency": {\n "description": "The the base frequency of the filters.",\n "type": [\n "number"\n ]\n },\n "wet": {\n "description": "The wet control, i.e. how much of the effected\\n will pass through to the output.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "PingPongDelay": {\n "delayTime": {\n "description": "the delay time signal",\n "type": [\n "Time"\n ],\n "signal": true\n },\n "feedback": {\n "description": "The amount of feedback from the output\\n back into the input of the effect (routed\\n across left and right channels).",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "StereoEffect": {\n "wet": {\n "description": "The wet control, i.e. how much of the effected\\n will pass through to the output.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "StereoFeedbackEffect": {\n "feedback": {\n "description": "controls the amount of feedback",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "StereoWidener": {\n "width": {\n "description": "The width control. 0 = 100% mid. 1 = 100% side. 0.5 = no change.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "StereoXFeedbackEffect": {\n "feedback": {\n "description": "The amount of feedback from the output\\n back into the input of the effect (routed\\n across left and right channels).",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Tremolo": {\n "frequency": {\n "description": "The frequency of the tremolo.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "depth": {\n "description": "The depth of the effect. A depth of 0, has no effect\\n on the amplitude, and a depth of 1 makes the amplitude\\n modulate fully between 0 and 1.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "type": {\n "description": "Type of oscillator attached to the Tremolo.",\n "type": [\n "string"\n ]\n },\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Clip": {\n "min": {\n "description": "The min clip value",\n "type": [\n "Number"\n ],\n "signal": true\n },\n "max": {\n "description": "The max clip value",\n "type": [\n "Number"\n ],\n "signal": true\n }\n },\n "Equal": {\n "value": {\n "description": "The value to compare to the incoming signal.",\n "type": [\n "number"\n ]\n }\n },\n "Expr": {\n "input": {\n "description": "The inputs. The length is determined by the expression.",\n "type": [\n "Array"\n ]\n },\n "output": {\n "description": "The output node is the result of the expression",\n "type": [\n "Tone"\n ]\n }\n },\n "Modulo": {\n "value": {\n "description": "The modulus value.",\n "type": [\n "NormalRange"\n ]\n }\n },\n "Normalize": {\n "min": {\n "description": "The minimum value the input signal will reach.",\n "type": [\n "number"\n ]\n },\n "max": {\n "description": "The maximum value the input signal will reach.",\n "type": [\n "number"\n ]\n }\n },\n "Pow": {\n "value": {\n "description": "The value of the exponent.",\n "type": [\n "number"\n ]\n }\n },\n "Route": {\n "gate": {\n "description": "The control signal.",\n "type": [\n "Number"\n ],\n "signal": true\n }\n },\n "<anonymous>~RouteGate": {\n "selecter": {\n "description": "the selector",\n "type": [\n "Tone.Equal"\n ]\n },\n "gate": {\n "description": "the gate",\n "type": [\n "GainNode"\n ]\n }\n },\n "Scale": {\n "min": {\n "description": "The minimum output value. This number is output when \\nthe value input value is 0.",\n "type": [\n "number"\n ]\n },\n "max": {\n "description": "The maximum output value. This number is output when \\nthe value input value is 1.",\n "type": [\n "number"\n ]\n }\n },\n "ScaleExp": {\n "exponent": {\n "description": "Instead of interpolating linearly between the <code>min</code> and \\n<code>max</code> values, setting the exponent will interpolate between\\nthe two values with an exponential curve.",\n "type": [\n "number"\n ]\n },\n "min": {\n "description": "The minimum output value. This number is output when \\nthe value input value is 0.",\n "type": [\n "number"\n ]\n },\n "max": {\n "description": "The maximum output value. This number is output when \\nthe value input value is 1.",\n "type": [\n "number"\n ]\n }\n },\n "Select": {\n "gate": {\n "description": "the control signal",\n "type": [\n "Number"\n ],\n "signal": true\n }\n },\n "<anonymous>~SelectGate": {\n "selecter": {\n "description": "the selector",\n "type": [\n "Tone.Equal"\n ]\n },\n "gate": {\n "description": "the gate",\n "type": [\n "GainNode"\n ]\n }\n },\n "Signal": {\n "units": {\n "description": "The units of the signal.",\n "type": [\n "string"\n ]\n },\n "convert": {\n "description": "When true, converts the set value\\n based on the units given. When false,\\n applies no conversion and the units\\n are merely used as a label.",\n "type": [\n "boolean"\n ]\n },\n "value": {\n "description": "The current value of the signal.",\n "type": [\n "Number"\n ]\n }\n },\n "Switch": {\n "gate": {\n "description": "The control signal for the switch.\\n When this value is 0, the input signal will NOT pass through,\\n when it is high (1), the input signal will pass through.",\n "type": [\n "Number"\n ],\n "signal": true\n }\n },\n "WaveShaper": {\n "curve": {\n "description": "The array to set as the waveshaper curve. For linear curves\\narray length does not make much difference, but for complex curves\\nlonger arrays will provide smoother interpolation.",\n "type": [\n "Array"\n ]\n },\n "oversample": {\n "description": "Specifies what type of oversampling (if any) should be used when \\napplying the shaping curve. Can either be \\"none\\", \\"2x\\" or \\"4x\\".",\n "type": [\n "string"\n ]\n }\n },\n "Noise": {\n "type": {\n "description": "The type of the noise. Can be \\"white\\", \\"brown\\", or \\"pink\\".",\n "type": [\n "string"\n ]\n },\n "onended": {\n "description": "Callback is invoked when the source is done playing.",\n "type": [\n "function"\n ]\n },\n "volume": {\n "description": "The volume of the output in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "state": {\n "description": "Returns the playback state of the source, either \\"started\\" or \\"stopped\\".",\n "type": [\n "Tone.State"\n ],\n "readonly": true\n }\n },\n "OmniOscillator": {\n "frequency": {\n "description": "The frequency control.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "detune": {\n "description": "The detune control",\n "type": [\n "Cents"\n ],\n "signal": true\n },\n "type": {\n "description": "The type of the oscillator. sine, square, triangle, sawtooth, pwm, or pulse.",\n "type": [\n "string"\n ]\n },\n "phase": {\n "description": "The phase of the oscillator in degrees.",\n "type": [\n "Degrees"\n ]\n },\n "width": {\n "description": "The width of the oscillator (only if the oscillator is set to pulse)",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "modulationFrequency": {\n "description": "The modulationFrequency Signal of the oscillator \\n(only if the oscillator type is set to pwm).",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "onended": {\n "description": "Callback is invoked when the source is done playing.",\n "type": [\n "function"\n ]\n },\n "volume": {\n "description": "The volume of the output in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "state": {\n "description": "Returns the playback state of the source, either \\"started\\" or \\"stopped\\".",\n "type": [\n "Tone.State"\n ],\n "readonly": true\n }\n },\n "Oscillator": {\n "frequency": {\n "description": "The frequency control.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "detune": {\n "description": "The detune control signal.",\n "type": [\n "Cents"\n ],\n "signal": true\n },\n "type": {\n "description": "The type of the oscillator: either sine, square, triangle, or sawtooth. Also capable of\\nsetting the first x number of partials of the oscillator. For example: \\"sine4\\" would\\nset be the first 4 partials of the sine wave and \\"triangle8\\" would set the first\\n8 partials of the triangle wave.\\n<br><br> \\nUses PeriodicWave internally even for native types so that it can set the phase. \\nPeriodicWave equations are from the \\n<a href=\\"https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp&sq=package:chromium\\">Webkit Web Audio implementation</a>.",\n "type": [\n "string"\n ]\n },\n "phase": {\n "description": "The phase of the oscillator in degrees.",\n "type": [\n "Degrees"\n ]\n },\n "onended": {\n "description": "Callback is invoked when the source is done playing.",\n "type": [\n "function"\n ]\n },\n "volume": {\n "description": "The volume of the output in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "state": {\n "description": "Returns the playback state of the source, either \\"started\\" or \\"stopped\\".",\n "type": [\n "Tone.State"\n ],\n "readonly": true\n }\n },\n "PWMOscillator": {\n "frequency": {\n "description": "The frequency control.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "detune": {\n "description": "The detune of the oscillator.",\n "type": [\n "Cents"\n ],\n "signal": true\n },\n "modulationFrequency": {\n "description": "The modulation rate of the oscillator.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "type": {\n "description": "The type of the oscillator. Always returns \\"pwm\\".",\n "type": [\n "string"\n ],\n "readonly": true\n },\n "phase": {\n "description": "The phase of the oscillator in degrees.",\n "type": [\n "number"\n ]\n },\n "onended": {\n "description": "Callback is invoked when the source is done playing.",\n "type": [\n "function"\n ]\n },\n "volume": {\n "description": "The volume of the output in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "state": {\n "description": "Returns the playback state of the source, either \\"started\\" or \\"stopped\\".",\n "type": [\n "Tone.State"\n ],\n "readonly": true\n }\n },\n "Player": {\n "autostart": {\n "description": "If the file should play as soon\\n as the buffer is loaded.",\n "type": [\n "boolean"\n ]\n },\n "retrigger": {\n "description": "Enabling retrigger will allow a player to be restarted\\n before the the previous \'start\' is done playing. Otherwise, \\n successive calls to Tone.Player.start will only start\\n the sample if it had played all the way through.",\n "type": [\n "boolean"\n ]\n },\n "loopStart": {\n "description": "If loop is true, the loop will start at this position.",\n "type": [\n "Time"\n ]\n },\n "loopEnd": {\n "description": "If loop is true, the loop will end at this position.",\n "type": [\n "Time"\n ]\n },\n "buffer": {\n "description": "The audio buffer belonging to the player.",\n "type": [\n "AudioBuffer"\n ]\n },\n "loop": {\n "description": "If the buffer should loop once it\'s over.",\n "type": [\n "boolean"\n ]\n },\n "playbackRate": {\n "description": "The playback speed. 1 is normal speed. \\nNote that this is not a Tone.Signal because of a bug in Blink. \\nPlease star <a href=\\"https://code.google.com/p/chromium/issues/detail?id=311284\\">this</a>\\nissue if this an important thing to you.",\n "type": [\n "number"\n ]\n },\n "reverse": {\n "description": "The direction the buffer should play in",\n "type": [\n "boolean"\n ]\n },\n "onended": {\n "description": "Callback is invoked when the source is done playing.",\n "type": [\n "function"\n ]\n },\n "volume": {\n "description": "The volume of the output in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "state": {\n "description": "Returns the playback state of the source, either \\"started\\" or \\"stopped\\".",\n "type": [\n "Tone.State"\n ],\n "readonly": true\n }\n },\n "PulseOscillator": {\n "width": {\n "description": "The width of the pulse.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n },\n "frequency": {\n "description": "The frequency control.",\n "type": [\n "Frequency"\n ],\n "signal": true\n },\n "detune": {\n "description": "The detune in cents.",\n "type": [\n "Cents"\n ],\n "signal": true\n },\n "phase": {\n "description": "The phase of the oscillator in degrees.",\n "type": [\n "Degrees"\n ]\n },\n "type": {\n "description": "The type of the oscillator. Always returns \\"pulse\\".",\n "type": [\n "string"\n ],\n "readonly": true\n },\n "onended": {\n "description": "Callback is invoked when the source is done playing.",\n "type": [\n "function"\n ]\n },\n "volume": {\n "description": "The volume of the output in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "state": {\n "description": "Returns the playback state of the source, either \\"started\\" or \\"stopped\\".",\n "type": [\n "Tone.State"\n ],\n "readonly": true\n }\n },\n "Source": {\n "onended": {\n "description": "Callback is invoked when the source is done playing.",\n "type": [\n "function"\n ]\n },\n "volume": {\n "description": "The volume of the output in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "state": {\n "description": "Returns the playback state of the source, either \\"started\\" or \\"stopped\\".",\n "type": [\n "Tone.State"\n ],\n "readonly": true\n }\n },\n "AmplitudeEnvelope": {\n "attack": {\n "description": "When triggerAttack is called, the attack time is the amount of\\n time it takes for the envelope to reach it\'s maximum value.",\n "type": [\n "Time"\n ]\n },\n "decay": {\n "description": "After the attack portion of the envelope, the value will fall\\n over the duration of the decay time to it\'s sustain value.",\n "type": [\n "Time"\n ]\n },\n "sustain": {\n "description": "The sustain value is the value \\n\\twhich the envelope rests at after triggerAttack is\\n\\tcalled, but before triggerRelease is invoked.",\n "type": [\n "NormalRange"\n ]\n },\n "release": {\n "description": "After triggerRelease is called, the envelope\'s\\n value will fall to it\'s miminum value over the\\n duration of the release time.",\n "type": [\n "Time"\n ]\n },\n "value": {\n "description": "Read the current value of the envelope. Useful for \\nsyncronizing visual output to the envelope.",\n "type": [\n "Number"\n ],\n "readonly": true\n },\n "attackCurve": {\n "description": "The slope of the attack. Either \\"linear\\" or \\"exponential\\".",\n "type": [\n "string"\n ]\n }\n },\n "MidSideEffect": {\n "wet": {\n "description": "The wet control is how much of the effected\\n will pass through to the output. 1 = 100% effected\\n signal, 0 = 100% dry signal.",\n "type": [\n "NormalRange"\n ],\n "signal": true\n }\n },\n "Add": {\n "units": {\n "description": "The units of the signal.",\n "type": [\n "string"\n ]\n },\n "convert": {\n "description": "When true, converts the set value\\n based on the units given. When false,\\n applies no conversion and the units\\n are merely used as a label.",\n "type": [\n "boolean"\n ]\n },\n "value": {\n "description": "The current value of the signal.",\n "type": [\n "Number"\n ]\n }\n },\n "GreaterThan": {\n "units": {\n "description": "The units of the signal.",\n "type": [\n "string"\n ]\n },\n "convert": {\n "description": "When true, converts the set value\\n based on the units given. When false,\\n applies no conversion and the units\\n are merely used as a label.",\n "type": [\n "boolean"\n ]\n },\n "value": {\n "description": "The current value of the signal.",\n "type": [\n "Number"\n ]\n }\n },\n "LessThan": {\n "units": {\n "description": "The units of the signal.",\n "type": [\n "string"\n ]\n },\n "convert": {\n "description": "When true, converts the set value\\n based on the units given. When false,\\n applies no conversion and the units\\n are merely used as a label.",\n "type": [\n "boolean"\n ]\n },\n "value": {\n "description": "The current value of the signal.",\n "type": [\n "Number"\n ]\n }\n },\n "Max": {\n "units": {\n "description": "The units of the signal.",\n "type": [\n "string"\n ]\n },\n "convert": {\n "description": "When true, converts the set value\\n based on the units given. When false,\\n applies no conversion and the units\\n are merely used as a label.",\n "type": [\n "boolean"\n ]\n },\n "value": {\n "description": "The current value of the signal.",\n "type": [\n "Number"\n ]\n }\n },\n "Min": {\n "units": {\n "description": "The units of the signal.",\n "type": [\n "string"\n ]\n },\n "convert": {\n "description": "When true, converts the set value\\n based on the units given. When false,\\n applies no conversion and the units\\n are merely used as a label.",\n "type": [\n "boolean"\n ]\n },\n "value": {\n "description": "The current value of the signal.",\n "type": [\n "Number"\n ]\n }\n },\n "Multiply": {\n "units": {\n "description": "The units of the signal.",\n "type": [\n "string"\n ]\n },\n "convert": {\n "description": "When true, converts the set value\\n based on the units given. When false,\\n applies no conversion and the units\\n are merely used as a label.",\n "type": [\n "boolean"\n ]\n },\n "value": {\n "description": "The current value of the signal.",\n "type": [\n "Number"\n ]\n }\n },\n "Subtract": {\n "units": {\n "description": "The units of the signal.",\n "type": [\n "string"\n ]\n },\n "convert": {\n "description": "When true, converts the set value\\n based on the units given. When false,\\n applies no conversion and the units\\n are merely used as a label.",\n "type": [\n "boolean"\n ]\n },\n "value": {\n "description": "The current value of the signal.",\n "type": [\n "Number"\n ]\n }\n },\n "Microphone": {\n "onended": {\n "description": "Callback is invoked when the source is done playing.",\n "type": [\n "function"\n ]\n },\n "volume": {\n "description": "The volume of the output in decibels.",\n "type": [\n "Decibels"\n ],\n "signal": true\n },\n "state": {\n "description": "Returns the playback state of the source, either \\"started\\" or \\"stopped\\".",\n "type": [\n "Tone.State"\n ],\n "readonly": true\n }\n }\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ../Tonejs.org/docgen/description/members.json\n ** module id = 25\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///../Tonejs.org/docgen/description/members.json?');
|
|
},function(module,exports,__webpack_require__){eval('module.exports = {\n "Time": {\n "description": "Time can be described in a number of ways. Read more <a href=\\"https://github.com/TONEnoTONE/Tone.js/wiki/Time\\">here</a>.\\n\\n <ul>\\n <li>Numbers, which will be taken literally as the time (in seconds).</li>\\n <li>Notation, (\\"4n\\", \\"8t\\") describes time in BPM and time signature relative values.</li>\\n <li>TransportTime, (\\"4:3:2\\") will also provide tempo and time signature relative times \\n in the form BARS:QUARTERS:SIXTEENTHS.</li>\\n <li>Frequency, (\\"8hz\\") is converted to the length of the cycle in seconds.</li>\\n <li>Now-Relative, (\\"+1\\") prefix any of the above with \\"+\\" and it will be interpreted as \\n \\"the current time plus whatever expression follows\\".</li>\\n <li>Expressions, (\\"3:0 + 2 - (1m / 7)\\") any of the above can also be combined \\n into a mathematical expression which will be evaluated to compute the desired time.</li>\\n <li>No Argument, for methods which accept time, no argument will be interpreted as \\n \\"now\\" (i.e. the currentTime).</li>\\n </ul>",\n "name": "Time",\n "value": "time"\n },\n "Frequency": {\n "description": "Frequency can be described similar to time, except ultimately the\\n values are converted to frequency instead of seconds. A number\\n is taken literally as the value in hertz. Additionally any of the \\n Time encodings can be used. Note names in the form\\n of NOTE OCTAVE (i.e. C4) are also accepted and converted to their\\n frequency value.",\n "name": "Frequency",\n "value": "frequency"\n },\n "Gain": {\n "description": "Gain is the ratio between the input and the output value of a signal.",\n "name": "Gain",\n "value": "gain"\n },\n "NormalRange": {\n "description": "Normal values are within the range [0, 1].",\n "name": "NormalRange",\n "value": "normalrange"\n },\n "AudioRange": {\n "description": "AudioRange values are between [-1, 1].",\n "name": "AudioRange",\n "value": "audiorange"\n },\n "Decibels": {\n "description": "Decibels are a logarithmic unit of measurement which is useful for volume\\n because of the logarithmic way that we perceive loudness. 0 decibels \\n means no change in volume. -10db is approximately half as loud and 10db \\n is twice is loud.",\n "name": "Decibels",\n "value": "db"\n },\n "Interval": {\n "description": "Half-step note increments, i.e. 12 is an octave above the root. and 1 is a half-step up.",\n "name": "Interval",\n "value": "interval"\n },\n "BPM": {\n "description": "Beats per minute.",\n "name": "BPM",\n "value": "bpm"\n },\n "Positive": {\n "description": "The value must be greater than 0.",\n "name": "Positive",\n "value": "positive"\n },\n "Cents": {\n "description": "A cent is a hundredth of a semitone.",\n "name": "Cents",\n "value": "cents"\n },\n "Degrees": {\n "description": "Angle between 0 and 360.",\n "name": "Degrees",\n "value": "degrees"\n },\n "MIDI": {\n "description": "A number representing a midi note.",\n "name": "MIDI",\n "value": "midi"\n },\n "TransportTime": {\n "description": "A colon-separated representation of time in the form of\\n BARS:QUARTERS:SIXTEENTHS.",\n "name": "TransportTime",\n "value": "transporttime"\n }\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ../Tonejs.org/docgen/description/types.json\n ** module id = 26\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///../Tonejs.org/docgen/description/types.json?')},function(module,exports,__webpack_require__){eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(21);\nif(typeof content === 'string') content = [[module.id, content, '']];\n// add the styles to the DOM\nvar update = __webpack_require__(5)(content, {});\nif(content.locals) module.exports = content.locals;\n// Hot Module Replacement\nif(false) {\n // When the styles change, update the <style> tags\n if(!content.locals) {\n module.hot.accept(\"!!./../node_modules/css-loader/index.js!./../node_modules/autoprefixer-loader/index.js!./../node_modules/sass-loader/index.js!./drawer.scss\", function() {\n var newContent = require(\"!!./../node_modules/css-loader/index.js!./../node_modules/autoprefixer-loader/index.js!./../node_modules/sass-loader/index.js!./drawer.scss\");\n if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n update(newContent);\n });\n }\n // When the module is disposed, remove the <style> tags\n module.hot.dispose(function() { update(); });\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./style/drawer.scss\n ** module id = 27\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./style/drawer.scss?")},function(module,exports,__webpack_require__){eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(22);\nif(typeof content === 'string') content = [[module.id, content, '']];\n// add the styles to the DOM\nvar update = __webpack_require__(5)(content, {});\nif(content.locals) module.exports = content.locals;\n// Hot Module Replacement\nif(false) {\n // When the styles change, update the <style> tags\n if(!content.locals) {\n module.hot.accept(\"!!./../node_modules/css-loader/index.js!./../node_modules/autoprefixer-loader/index.js!./../node_modules/sass-loader/index.js!./main.scss\", function() {\n var newContent = require(\"!!./../node_modules/css-loader/index.js!./../node_modules/autoprefixer-loader/index.js!./../node_modules/sass-loader/index.js!./main.scss\");\n if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n update(newContent);\n });\n }\n // When the module is disposed, remove the <style> tags\n module.hot.dispose(function() { update(); });\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./style/main.scss\n ** module id = 28\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./style/main.scss?")},function(module,exports,__webpack_require__){eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(23);\nif(typeof content === 'string') content = [[module.id, content, '']];\n// add the styles to the DOM\nvar update = __webpack_require__(5)(content, {});\nif(content.locals) module.exports = content.locals;\n// Hot Module Replacement\nif(false) {\n // When the styles change, update the <style> tags\n if(!content.locals) {\n module.hot.accept(\"!!./../node_modules/css-loader/index.js!./../node_modules/autoprefixer-loader/index.js!./../node_modules/sass-loader/index.js!./meter.scss\", function() {\n var newContent = require(\"!!./../node_modules/css-loader/index.js!./../node_modules/autoprefixer-loader/index.js!./../node_modules/sass-loader/index.js!./meter.scss\");\n if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n update(newContent);\n });\n }\n // When the module is disposed, remove the <style> tags\n module.hot.dispose(function() { update(); });\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./style/meter.scss\n ** module id = 29\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./style/meter.scss?")},function(module,exports,__webpack_require__){eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(24);\nif(typeof content === 'string') content = [[module.id, content, '']];\n// add the styles to the DOM\nvar update = __webpack_require__(5)(content, {});\nif(content.locals) module.exports = content.locals;\n// Hot Module Replacement\nif(false) {\n // When the styles change, update the <style> tags\n if(!content.locals) {\n module.hot.accept(\"!!./../node_modules/css-loader/index.js!./../node_modules/autoprefixer-loader/index.js!./../node_modules/sass-loader/index.js!./parameter.scss\", function() {\n var newContent = require(\"!!./../node_modules/css-loader/index.js!./../node_modules/autoprefixer-loader/index.js!./../node_modules/sass-loader/index.js!./parameter.scss\");\n if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n update(newContent);\n });\n }\n // When the module is disposed, remove the <style> tags\n module.hot.dispose(function() { update(); });\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./style/parameter.scss\n ** module id = 30\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./style/parameter.scss?")}])}); |