text: (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{
  
  /***/ "./node_modules/webpack/buildin/harmony-module.js":
  /*!*******************************************!*\
    !*** (webpack)/buildin/harmony-module.js ***!
    \*******************************************/
  /*! no static exports found */
  /***/ (function(module, exports) {
  
  eval("module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n\n\n//# sourceURL=webpack:///(webpack)/buildin/harmony-module.js?");
  
  /***/ }),
  
  /***/ "./pkg/index.js":
  /*!**********************!*\
    !*** ./pkg/index.js ***!
    \**********************/
  /*! exports provided: set_wave_from_amp_external, set_wave_from_freq_external, main_js, WaveSynth, __wbindgen_number_new, __wbindgen_string_new, __wbg_error_4bb6c2a97407129a, __wbg_new_59cb74e423758ede, __wbg_stack_558ba5917b466edd, __wbindgen_object_drop_ref, __wbg_log_9a99fb1af846153b, __wbg_connect_796a016dae0d9764, __wbg_setvalue_6e17b5b4894860a0, __wbg_frequency_df03f59e234cf86e, __wbg_setPeriodicWave_b58026e18e8c4604, __wbg_start_c349669816506d38, __wbg_setfftSize_2fef6fef11093d85, __wbg_getFloatFrequencyData_9fe8781daa2273ef, __wbg_getFloatTimeDomainData_bd69a06d44d7a839, __wbg_destination_f9a58d7e763557df, __wbg_sampleRate_0c5b7e4d1d000ff1, __wbg_new_513f7c570bdcbfc5, __wbg_createAnalyser_401c5bef25090afd, __wbg_createGain_fa8df723598c5011, __wbg_createOscillator_f8dd8d56f937c0dd, __wbg_createPeriodicWave_48c7444d9649abdb, __wbg_gain_f6c8ef1bb6ff877e, __wbg_new_d69bbe3db485d457, __wbg_newwithlength_45efe1b5de656195, __wbg_newwithbyteoffsetandlength_abfc24c57fd08e6d, __wbg_length_523cf4a01041a7a6, __wbg_set_0fa56ca792d65861, __wbg_buffer_9e184d6f785de5ed, __wbindgen_debug_string, __wbindgen_throw, __wbindgen_rethrow, __wbindgen_memory */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index_bg.wasm */ \"./pkg/index_bg.wasm\");\n/* harmony import */ var _index_bg_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index_bg.js */ \"./pkg/index_bg.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"set_wave_from_amp_external\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"set_wave_from_amp_external\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"set_wave_from_freq_external\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"set_wave_from_freq_external\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"main_js\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"main_js\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"WaveSynth\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"WaveSynth\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_number_new\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_number_new\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_string_new\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_string_new\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_error_4bb6c2a97407129a\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_error_4bb6c2a97407129a\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_new_59cb74e423758ede\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_new_59cb74e423758ede\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_stack_558ba5917b466edd\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_stack_558ba5917b466edd\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_object_drop_ref\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_object_drop_ref\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_9a99fb1af846153b\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_log_9a99fb1af846153b\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_connect_796a016dae0d9764\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_connect_796a016dae0d9764\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_setvalue_6e17b5b4894860a0\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_setvalue_6e17b5b4894860a0\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_frequency_df03f59e234cf86e\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_frequency_df03f59e234cf86e\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_setPeriodicWave_b58026e18e8c4604\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_setPeriodicWave_b58026e18e8c4604\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_start_c349669816506d38\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_start_c349669816506d38\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_setfftSize_2fef6fef11093d85\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_setfftSize_2fef6fef11093d85\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_getFloatFrequencyData_9fe8781daa2273ef\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_getFloatFrequencyData_9fe8781daa2273ef\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_getFloatTimeDomainData_bd69a06d44d7a839\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_getFloatTimeDomainData_bd69a06d44d7a839\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_destination_f9a58d7e763557df\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_destination_f9a58d7e763557df\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_sampleRate_0c5b7e4d1d000ff1\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_sampleRate_0c5b7e4d1d000ff1\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_new_513f7c570bdcbfc5\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_new_513f7c570bdcbfc5\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_createAnalyser_401c5bef25090afd\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_createAnalyser_401c5bef25090afd\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_createGain_fa8df723598c5011\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_createGain_fa8df723598c5011\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_createOscillator_f8dd8d56f937c0dd\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_createOscillator_f8dd8d56f937c0dd\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_createPeriodicWave_48c7444d9649abdb\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_createPeriodicWave_48c7444d9649abdb\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_gain_f6c8ef1bb6ff877e\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_gain_f6c8ef1bb6ff877e\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_new_d69bbe3db485d457\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_new_d69bbe3db485d457\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_newwithlength_45efe1b5de656195\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_newwithlength_45efe1b5de656195\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_newwithbyteoffsetandlength_abfc24c57fd08e6d\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_newwithbyteoffsetandlength_abfc24c57fd08e6d\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_length_523cf4a01041a7a6\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_length_523cf4a01041a7a6\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_set_0fa56ca792d65861\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_set_0fa56ca792d65861\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbg_buffer_9e184d6f785de5ed\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbg_buffer_9e184d6f785de5ed\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_debug_string\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_debug_string\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_throw\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_throw\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_rethrow\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_rethrow\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_memory\", function() { return _index_bg_js__WEBPACK_IMPORTED_MODULE_1__[\"__wbindgen_memory\"]; });\n\n\n\n\n_index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbindgen_start\"]();\n\n//# sourceURL=webpack:///./pkg/index.js?");
  
  /***/ }),
  
  /***/ "./pkg/index_bg.js":
  /*!*************************!*\
    !*** ./pkg/index_bg.js ***!
    \*************************/
  /*! exports provided: set_wave_from_amp_external, set_wave_from_freq_external, main_js, WaveSynth, __wbindgen_number_new, __wbindgen_string_new, __wbg_error_4bb6c2a97407129a, __wbg_new_59cb74e423758ede, __wbg_stack_558ba5917b466edd, __wbindgen_object_drop_ref, __wbg_log_9a99fb1af846153b, __wbg_connect_796a016dae0d9764, __wbg_setvalue_6e17b5b4894860a0, __wbg_frequency_df03f59e234cf86e, __wbg_setPeriodicWave_b58026e18e8c4604, __wbg_start_c349669816506d38, __wbg_setfftSize_2fef6fef11093d85, __wbg_getFloatFrequencyData_9fe8781daa2273ef, __wbg_getFloatTimeDomainData_bd69a06d44d7a839, __wbg_destination_f9a58d7e763557df, __wbg_sampleRate_0c5b7e4d1d000ff1, __wbg_new_513f7c570bdcbfc5, __wbg_createAnalyser_401c5bef25090afd, __wbg_createGain_fa8df723598c5011, __wbg_createOscillator_f8dd8d56f937c0dd, __wbg_createPeriodicWave_48c7444d9649abdb, __wbg_gain_f6c8ef1bb6ff877e, __wbg_new_d69bbe3db485d457, __wbg_newwithlength_45efe1b5de656195, __wbg_newwithbyteoffsetandlength_abfc24c57fd08e6d, __wbg_length_523cf4a01041a7a6, __wbg_set_0fa56ca792d65861, __wbg_buffer_9e184d6f785de5ed, __wbindgen_debug_string, __wbindgen_throw, __wbindgen_rethrow, __wbindgen_memory */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(module) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"set_wave_from_amp_external\", function() { return set_wave_from_amp_external; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"set_wave_from_freq_external\", function() { return set_wave_from_freq_external; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"main_js\", function() { return main_js; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"WaveSynth\", function() { return WaveSynth; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_number_new\", function() { return __wbindgen_number_new; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_string_new\", function() { return __wbindgen_string_new; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_error_4bb6c2a97407129a\", function() { return __wbg_error_4bb6c2a97407129a; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_new_59cb74e423758ede\", function() { return __wbg_new_59cb74e423758ede; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_stack_558ba5917b466edd\", function() { return __wbg_stack_558ba5917b466edd; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_object_drop_ref\", function() { return __wbindgen_object_drop_ref; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_log_9a99fb1af846153b\", function() { return __wbg_log_9a99fb1af846153b; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_connect_796a016dae0d9764\", function() { return __wbg_connect_796a016dae0d9764; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_setvalue_6e17b5b4894860a0\", function() { return __wbg_setvalue_6e17b5b4894860a0; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_frequency_df03f59e234cf86e\", function() { return __wbg_frequency_df03f59e234cf86e; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_setPeriodicWave_b58026e18e8c4604\", function() { return __wbg_setPeriodicWave_b58026e18e8c4604; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_start_c349669816506d38\", function() { return __wbg_start_c349669816506d38; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_setfftSize_2fef6fef11093d85\", function() { return __wbg_setfftSize_2fef6fef11093d85; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_getFloatFrequencyData_9fe8781daa2273ef\", function() { return __wbg_getFloatFrequencyData_9fe8781daa2273ef; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_getFloatTimeDomainData_bd69a06d44d7a839\", function() { return __wbg_getFloatTimeDomainData_bd69a06d44d7a839; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_destination_f9a58d7e763557df\", function() { return __wbg_destination_f9a58d7e763557df; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_sampleRate_0c5b7e4d1d000ff1\", function() { return __wbg_sampleRate_0c5b7e4d1d000ff1; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_new_513f7c570bdcbfc5\", function() { return __wbg_new_513f7c570bdcbfc5; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_createAnalyser_401c5bef25090afd\", function() { return __wbg_createAnalyser_401c5bef25090afd; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_createGain_fa8df723598c5011\", function() { return __wbg_createGain_fa8df723598c5011; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_createOscillator_f8dd8d56f937c0dd\", function() { return __wbg_createOscillator_f8dd8d56f937c0dd; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_createPeriodicWave_48c7444d9649abdb\", function() { return __wbg_createPeriodicWave_48c7444d9649abdb; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_gain_f6c8ef1bb6ff877e\", function() { return __wbg_gain_f6c8ef1bb6ff877e; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_new_d69bbe3db485d457\", function() { return __wbg_new_d69bbe3db485d457; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_newwithlength_45efe1b5de656195\", function() { return __wbg_newwithlength_45efe1b5de656195; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_newwithbyteoffsetandlength_abfc24c57fd08e6d\", function() { return __wbg_newwithbyteoffsetandlength_abfc24c57fd08e6d; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_length_523cf4a01041a7a6\", function() { return __wbg_length_523cf4a01041a7a6; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_set_0fa56ca792d65861\", function() { return __wbg_set_0fa56ca792d65861; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbg_buffer_9e184d6f785de5ed\", function() { return __wbg_buffer_9e184d6f785de5ed; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_debug_string\", function() { return __wbindgen_debug_string; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_throw\", function() { return __wbindgen_throw; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_rethrow\", function() { return __wbindgen_rethrow; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__wbindgen_memory\", function() { return __wbindgen_memory; });\n/* harmony import */ var _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index_bg.wasm */ \"./pkg/index_bg.wasm\");\n\nconst lAudioContext = typeof AudioContext !== 'undefined' ? AudioContext : typeof webkitAudioContext !== 'undefined' ? webkitAudioContext : undefined;\nconst heap = new Array(32).fill(undefined);\nheap.push(undefined, null, true, false);\nlet heap_next = heap.length;\n\nfunction addHeapObject(obj) {\n  if (heap_next === heap.length) heap.push(heap.length + 1);\n  const idx = heap_next;\n  heap_next = heap[idx];\n  if (typeof heap_next !== 'number') throw new Error('corrupt heap');\n  heap[idx] = obj;\n  return idx;\n}\n\nconst lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;\nlet cachedTextDecoder = new lTextDecoder('utf-8', {\n  ignoreBOM: true,\n  fatal: true\n});\ncachedTextDecoder.decode();\nlet cachegetUint8Memory0 = null;\n\nfunction getUint8Memory0() {\n  if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"memory\"].buffer) {\n    cachegetUint8Memory0 = new Uint8Array(_index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"memory\"].buffer);\n  }\n\n  return cachegetUint8Memory0;\n}\n\nfunction getStringFromWasm0(ptr, len) {\n  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));\n}\n\nfunction getObject(idx) {\n  return heap[idx];\n}\n\nfunction dropObject(idx) {\n  if (idx < 36) return;\n  heap[idx] = heap_next;\n  heap_next = idx;\n}\n\nfunction takeObject(idx) {\n  const ret = getObject(idx);\n  dropObject(idx);\n  return ret;\n}\n\nfunction debugString(val) {\n  // primitive types\n  const type = typeof val;\n\n  if (type == 'number' || type == 'boolean' || val == null) {\n    return `${val}`;\n  }\n\n  if (type == 'string') {\n    return `\"${val}\"`;\n  }\n\n  if (type == 'symbol') {\n    const description = val.description;\n\n    if (description == null) {\n      return 'Symbol';\n    } else {\n      return `Symbol(${description})`;\n    }\n  }\n\n  if (type == 'function') {\n    const name = val.name;\n\n    if (typeof name == 'string' && name.length > 0) {\n      return `Function(${name})`;\n    } else {\n      return 'Function';\n    }\n  } // objects\n\n\n  if (Array.isArray(val)) {\n    const length = val.length;\n    let debug = '[';\n\n    if (length > 0) {\n      debug += debugString(val[0]);\n    }\n\n    for (let i = 1; i < length; i++) {\n      debug += ', ' + debugString(val[i]);\n    }\n\n    debug += ']';\n    return debug;\n  } // Test for built-in\n\n\n  const builtInMatches = /\\[object ([^\\]]+)\\]/.exec(toString.call(val));\n  let className;\n\n  if (builtInMatches.length > 1) {\n    className = builtInMatches[1];\n  } else {\n    // Failed to match the standard '[object ClassName]'\n    return toString.call(val);\n  }\n\n  if (className == 'Object') {\n    // we're a user defined class or Object\n    // JSON.stringify avoids problems with cycles, and is generally much\n    // easier than looping through ownProperties of `val`.\n    try {\n      return 'Object(' + JSON.stringify(val) + ')';\n    } catch (_) {\n      return 'Object';\n    }\n  } // errors\n\n\n  if (val instanceof Error) {\n    return `${val.name}: ${val.message}\\n${val.stack}`;\n  } // TODO we could test for more things here, like `Set`s and `Map`s.\n\n\n  return className;\n}\n\nlet WASM_VECTOR_LEN = 0;\nconst lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;\nlet cachedTextEncoder = new lTextEncoder('utf-8');\nconst encodeString = typeof cachedTextEncoder.encodeInto === 'function' ? function (arg, view) {\n  return cachedTextEncoder.encodeInto(arg, view);\n} : function (arg, view) {\n  const buf = cachedTextEncoder.encode(arg);\n  view.set(buf);\n  return {\n    read: arg.length,\n    written: buf.length\n  };\n};\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n  if (typeof arg !== 'string') throw new Error('expected a string argument');\n\n  if (realloc === undefined) {\n    const buf = cachedTextEncoder.encode(arg);\n    const ptr = malloc(buf.length);\n    getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);\n    WASM_VECTOR_LEN = buf.length;\n    return ptr;\n  }\n\n  let len = arg.length;\n  let ptr = malloc(len);\n  const mem = getUint8Memory0();\n  let offset = 0;\n\n  for (; offset < len; offset++) {\n    const code = arg.charCodeAt(offset);\n    if (code > 0x7F) break;\n    mem[ptr + offset] = code;\n  }\n\n  if (offset !== len) {\n    if (offset !== 0) {\n      arg = arg.slice(offset);\n    }\n\n    ptr = realloc(ptr, len, len = offset + arg.length * 3);\n    const view = getUint8Memory0().subarray(ptr + offset, ptr + len);\n    const ret = encodeString(arg, view);\n    if (ret.read !== arg.length) throw new Error('failed to pass whole string');\n    offset += ret.written;\n  }\n\n  WASM_VECTOR_LEN = offset;\n  return ptr;\n}\n\nlet cachegetInt32Memory0 = null;\n\nfunction getInt32Memory0() {\n  if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"memory\"].buffer) {\n    cachegetInt32Memory0 = new Int32Array(_index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"memory\"].buffer);\n  }\n\n  return cachegetInt32Memory0;\n}\n\nfunction _assertNum(n) {\n  if (typeof n !== 'number') throw new Error('expected a number argument');\n}\n\nfunction _assertClass(instance, klass) {\n  if (!(instance instanceof klass)) {\n    throw new Error(`expected instance of ${klass.name}`);\n  }\n\n  return instance.ptr;\n}\n\nlet cachegetFloat32Memory0 = null;\n\nfunction getFloat32Memory0() {\n  if (cachegetFloat32Memory0 === null || cachegetFloat32Memory0.buffer !== _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"memory\"].buffer) {\n    cachegetFloat32Memory0 = new Float32Array(_index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"memory\"].buffer);\n  }\n\n  return cachegetFloat32Memory0;\n}\n\nfunction passArrayF32ToWasm0(arg, malloc) {\n  const ptr = malloc(arg.length * 4);\n  getFloat32Memory0().set(arg, ptr / 4);\n  WASM_VECTOR_LEN = arg.length;\n  return ptr;\n}\n/**\n* @param {WaveSynth} syn\n* @param {Float32Array} js_buff\n*/\n\n\nfunction set_wave_from_amp_external(syn, js_buff) {\n  _assertClass(syn, WaveSynth);\n\n  if (syn.ptr === 0) {\n    throw new Error('Attempt to use a moved value');\n  }\n\n  var ptr0 = passArrayF32ToWasm0(js_buff, _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbindgen_malloc\"]);\n  var len0 = WASM_VECTOR_LEN;\n  _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"set_wave_from_amp_external\"](syn.ptr, ptr0, len0);\n}\n/**\n* @param {WaveSynth} syn\n* @param {Float32Array} js_buff\n*/\n\nfunction set_wave_from_freq_external(syn, js_buff) {\n  _assertClass(syn, WaveSynth);\n\n  if (syn.ptr === 0) {\n    throw new Error('Attempt to use a moved value');\n  }\n\n  var ptr0 = passArrayF32ToWasm0(js_buff, _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbindgen_malloc\"]);\n  var len0 = WASM_VECTOR_LEN;\n  _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"set_wave_from_freq_external\"](syn.ptr, ptr0, len0);\n}\n/**\n*/\n\nfunction main_js() {\n  _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"main_js\"]();\n}\n\nfunction logError(f, args) {\n  try {\n    return f.apply(this, args);\n  } catch (e) {\n    let error = function () {\n      try {\n        return e instanceof Error ? `${e.message}\\n\\nStack:\\n${e.stack}` : e.toString();\n      } catch (_) {\n        return \"<failed to stringify thrown value>\";\n      }\n    }();\n\n    console.error(\"wasm-bindgen: imported JS function that was not marked as `catch` threw an error:\", error);\n    throw e;\n  }\n}\n\nfunction handleError(f, args) {\n  try {\n    return f.apply(this, args);\n  } catch (e) {\n    _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbindgen_exn_store\"](addHeapObject(e));\n  }\n}\n\nfunction getArrayF32FromWasm0(ptr, len) {\n  return getFloat32Memory0().subarray(ptr / 4, ptr / 4 + len);\n}\n/**\n*/\n\n\nclass WaveSynth {\n  static __wrap(ptr) {\n    const obj = Object.create(WaveSynth.prototype);\n    obj.ptr = ptr;\n    return obj;\n  }\n\n  __destroy_into_raw() {\n    const ptr = this.ptr;\n    this.ptr = 0;\n    return ptr;\n  }\n\n  free() {\n    const ptr = this.__destroy_into_raw();\n\n    _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbg_wavesynth_free\"](ptr);\n  }\n  /**\n  */\n\n\n  constructor() {\n    var ret = _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"wavesynth_new\"]();\n    return WaveSynth.__wrap(ret);\n  }\n  /**\n  * @param {number} note\n  */\n\n\n  start_note(note) {\n    if (this.ptr == 0) throw new Error('Attempt to use a moved value');\n\n    _assertNum(this.ptr);\n\n    _assertNum(note);\n\n    _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"wavesynth_start_note\"](this.ptr, note);\n  }\n  /**\n  * @param {number} note\n  */\n\n\n  end_note(note) {\n    if (this.ptr == 0) throw new Error('Attempt to use a moved value');\n\n    _assertNum(this.ptr);\n\n    _assertNum(note);\n\n    _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"wavesynth_end_note\"](this.ptr, note);\n  }\n  /**\n  * @param {number} g\n  */\n\n\n  set_gain_node(g) {\n    if (this.ptr == 0) throw new Error('Attempt to use a moved value');\n\n    _assertNum(this.ptr);\n\n    _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"wavesynth_set_gain_node\"](this.ptr, g);\n  }\n  /**\n  * @returns {number}\n  */\n\n\n  get_sample_rate() {\n    if (this.ptr == 0) throw new Error('Attempt to use a moved value');\n\n    _assertNum(this.ptr);\n\n    var ret = _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"wavesynth_get_sample_rate\"](this.ptr);\n    return ret;\n  }\n  /**\n  * @returns {number}\n  */\n\n\n  get_fft_len() {\n    if (this.ptr == 0) throw new Error('Attempt to use a moved value');\n\n    _assertNum(this.ptr);\n\n    var ret = _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"wavesynth_get_fft_len\"](this.ptr);\n    return ret;\n  }\n  /**\n  * @returns {Float32Array}\n  */\n\n\n  get_tspace() {\n    if (this.ptr == 0) throw new Error('Attempt to use a moved value');\n\n    _assertNum(this.ptr);\n\n    var ret = _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"wavesynth_get_tspace\"](this.ptr);\n    return takeObject(ret);\n  }\n  /**\n  * @returns {Float32Array}\n  */\n\n\n  get_fspace() {\n    if (this.ptr == 0) throw new Error('Attempt to use a moved value');\n\n    _assertNum(this.ptr);\n\n    var ret = _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"wavesynth_get_fspace\"](this.ptr);\n    return takeObject(ret);\n  }\n  /**\n  * @returns {Float32Array}\n  */\n\n\n  get_wave_tspace() {\n    if (this.ptr == 0) throw new Error('Attempt to use a moved value');\n\n    _assertNum(this.ptr);\n\n    var ret = _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"wavesynth_get_wave_tspace\"](this.ptr);\n    return takeObject(ret);\n  }\n  /**\n  * @returns {Float32Array}\n  */\n\n\n  get_wave_fspace() {\n    if (this.ptr == 0) throw new Error('Attempt to use a moved value');\n\n    _assertNum(this.ptr);\n\n    var ret = _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"wavesynth_get_wave_fspace\"](this.ptr);\n    return takeObject(ret);\n  }\n\n}\nfunction __wbindgen_number_new(arg0) {\n  var ret = arg0;\n  return addHeapObject(ret);\n}\n;\nfunction __wbindgen_string_new(arg0, arg1) {\n  var ret = getStringFromWasm0(arg0, arg1);\n  return addHeapObject(ret);\n}\n;\nfunction __wbg_error_4bb6c2a97407129a() {\n  return logError(function (arg0, arg1) {\n    try {\n      console.error(getStringFromWasm0(arg0, arg1));\n    } finally {\n      _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbindgen_free\"](arg0, arg1);\n    }\n  }, arguments);\n}\n;\nfunction __wbg_new_59cb74e423758ede() {\n  return logError(function () {\n    var ret = new Error();\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_stack_558ba5917b466edd() {\n  return logError(function (arg0, arg1) {\n    var ret = getObject(arg1).stack;\n    var ptr0 = passStringToWasm0(ret, _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbindgen_malloc\"], _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbindgen_realloc\"]);\n    var len0 = WASM_VECTOR_LEN;\n    getInt32Memory0()[arg0 / 4 + 1] = len0;\n    getInt32Memory0()[arg0 / 4 + 0] = ptr0;\n  }, arguments);\n}\n;\nfunction __wbindgen_object_drop_ref(arg0) {\n  takeObject(arg0);\n}\n;\nfunction __wbg_log_9a99fb1af846153b() {\n  return logError(function (arg0) {\n    console.log(getObject(arg0));\n  }, arguments);\n}\n;\nfunction __wbg_connect_796a016dae0d9764() {\n  return handleError(function (arg0, arg1) {\n    var ret = getObject(arg0).connect(getObject(arg1));\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_setvalue_6e17b5b4894860a0() {\n  return logError(function (arg0, arg1) {\n    getObject(arg0).value = arg1;\n  }, arguments);\n}\n;\nfunction __wbg_frequency_df03f59e234cf86e() {\n  return logError(function (arg0) {\n    var ret = getObject(arg0).frequency;\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_setPeriodicWave_b58026e18e8c4604() {\n  return logError(function (arg0, arg1) {\n    getObject(arg0).setPeriodicWave(getObject(arg1));\n  }, arguments);\n}\n;\nfunction __wbg_start_c349669816506d38() {\n  return handleError(function (arg0) {\n    getObject(arg0).start();\n  }, arguments);\n}\n;\nfunction __wbg_setfftSize_2fef6fef11093d85() {\n  return logError(function (arg0, arg1) {\n    getObject(arg0).fftSize = arg1 >>> 0;\n  }, arguments);\n}\n;\nfunction __wbg_getFloatFrequencyData_9fe8781daa2273ef() {\n  return logError(function (arg0, arg1, arg2) {\n    getObject(arg0).getFloatFrequencyData(getArrayF32FromWasm0(arg1, arg2));\n  }, arguments);\n}\n;\nfunction __wbg_getFloatTimeDomainData_bd69a06d44d7a839() {\n  return logError(function (arg0, arg1, arg2) {\n    getObject(arg0).getFloatTimeDomainData(getArrayF32FromWasm0(arg1, arg2));\n  }, arguments);\n}\n;\nfunction __wbg_destination_f9a58d7e763557df() {\n  return logError(function (arg0) {\n    var ret = getObject(arg0).destination;\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_sampleRate_0c5b7e4d1d000ff1() {\n  return logError(function (arg0) {\n    var ret = getObject(arg0).sampleRate;\n    return ret;\n  }, arguments);\n}\n;\nfunction __wbg_new_513f7c570bdcbfc5() {\n  return handleError(function () {\n    var ret = new lAudioContext();\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_createAnalyser_401c5bef25090afd() {\n  return handleError(function (arg0) {\n    var ret = getObject(arg0).createAnalyser();\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_createGain_fa8df723598c5011() {\n  return handleError(function (arg0) {\n    var ret = getObject(arg0).createGain();\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_createOscillator_f8dd8d56f937c0dd() {\n  return handleError(function (arg0) {\n    var ret = getObject(arg0).createOscillator();\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_createPeriodicWave_48c7444d9649abdb() {\n  return handleError(function (arg0, arg1, arg2, arg3, arg4) {\n    var ret = getObject(arg0).createPeriodicWave(getArrayF32FromWasm0(arg1, arg2), getArrayF32FromWasm0(arg3, arg4));\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_gain_f6c8ef1bb6ff877e() {\n  return logError(function (arg0) {\n    var ret = getObject(arg0).gain;\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_new_d69bbe3db485d457() {\n  return logError(function (arg0) {\n    var ret = new Float32Array(getObject(arg0));\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_newwithlength_45efe1b5de656195() {\n  return logError(function (arg0) {\n    var ret = new Float32Array(arg0 >>> 0);\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_newwithbyteoffsetandlength_abfc24c57fd08e6d() {\n  return logError(function (arg0, arg1, arg2) {\n    var ret = new Float32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbg_length_523cf4a01041a7a6() {\n  return logError(function (arg0) {\n    var ret = getObject(arg0).length;\n\n    _assertNum(ret);\n\n    return ret;\n  }, arguments);\n}\n;\nfunction __wbg_set_0fa56ca792d65861() {\n  return logError(function (arg0, arg1, arg2) {\n    getObject(arg0).set(getObject(arg1), arg2 >>> 0);\n  }, arguments);\n}\n;\nfunction __wbg_buffer_9e184d6f785de5ed() {\n  return logError(function (arg0) {\n    var ret = getObject(arg0).buffer;\n    return addHeapObject(ret);\n  }, arguments);\n}\n;\nfunction __wbindgen_debug_string(arg0, arg1) {\n  var ret = debugString(getObject(arg1));\n  var ptr0 = passStringToWasm0(ret, _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbindgen_malloc\"], _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"__wbindgen_realloc\"]);\n  var len0 = WASM_VECTOR_LEN;\n  getInt32Memory0()[arg0 / 4 + 1] = len0;\n  getInt32Memory0()[arg0 / 4 + 0] = ptr0;\n}\n;\nfunction __wbindgen_throw(arg0, arg1) {\n  throw new Error(getStringFromWasm0(arg0, arg1));\n}\n;\nfunction __wbindgen_rethrow(arg0) {\n  throw takeObject(arg0);\n}\n;\nfunction __wbindgen_memory() {\n  var ret = _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[\"memory\"];\n  return addHeapObject(ret);\n}\n;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node_modules/webpack/buildin/harmony-module.js */ \"./node_modules/webpack/buildin/harmony-module.js\")(module)))\n\n//# sourceURL=webpack:///./pkg/index_bg.js?");
  
  /***/ }),
  
  /***/ "./pkg/index_bg.wasm":
  /*!***************************!*\
    !*** ./pkg/index_bg.wasm ***!
    \***************************/
  /*! exports provided: memory, __wbg_wavesynth_free, wavesynth_new, wavesynth_start_note, wavesynth_end_note, wavesynth_set_gain_node, wavesynth_get_sample_rate, wavesynth_get_fft_len, wavesynth_get_tspace, wavesynth_get_fspace, wavesynth_get_wave_tspace, wavesynth_get_wave_fspace, set_wave_from_amp_external, set_wave_from_freq_external, main_js, __wbindgen_malloc, __wbindgen_realloc, __wbindgen_free, __wbindgen_exn_store, __wbindgen_start */
  /***/ (function(module, exports, __webpack_require__) {
  
  eval("\"use strict\";\n// Instantiate WebAssembly module\nvar wasmExports = __webpack_require__.w[module.i];\n__webpack_require__.r(exports);\n// export exports from WebAssembly module\nfor(var name in wasmExports) if(name != \"__webpack_init__\") exports[name] = wasmExports[name];\n// exec imports from WebAssembly module (for esm order)\n/* harmony import */ var m0 = __webpack_require__(/*! ./index_bg.js */ \"./pkg/index_bg.js\");\n\n\n// exec wasm module\nwasmExports[\"__webpack_init__\"]()\n\n//# sourceURL=webpack:///./pkg/index_bg.wasm?");
  
  /***/ })
  
  }]);