(function(e){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=e()}else if(typeof define==="function"&&define.amd){define([],e)}else{var n;if(typeof window!=="undefined"){n=window}else if(typeof global!=="undefined"){n=global}else if(typeof self!=="undefined"){n=self}else{n=this}n.Ciseaux=e()}})(function(){var e,n,t;return function r(e,n,t){function a(u,s){if(!n[u]){if(!e[u]){var o=typeof require=="function"&&require;if(!s&&o)return o(u,!0);if(i)return i(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var c=n[u]={exports:{}};e[u][0].call(c.exports,function(n){var t=e[u][1][n];return a(t?t:n)},c,c.exports,r,e,n,t)}return n[u].exports}var i=typeof require=="function"&&require;for(var u=0;u"+g.length](v,g)}else{self.process(v,g,{gain:o.gain,pan:a?Math.max(-1,Math.min(o.pan,+1)):null,reverse:!!o.reverse})}i+=l}};self.subarray=function(e,n,t){var r=new Array(e.length);for(var a=0;a"+i]||self.mix1.nop;if(t.reverse){c=n[0].length-1;l=-1}else{c=0;l=+1}for(var v=0;v1"]=function(e,n){n[0].set(e[0])};self.mix["1->2"]=function(e,n){n[0].set(e[0]);n[1].set(e[0])};self.mix["1->4"]=function(e,n){n[0].set(e[0]);n[1].set(e[0])};self.mix["1->6"]=function(e,n){n[2].set(e[0])};self.mix["2->2"]=function(e,n){n[0].set(e[0]);n[1].set(e[1])};self.mix["2->4"]=function(e,n){n[0].set(e[0]);n[1].set(e[1])};self.mix["2->6"]=function(e,n){n[0].set(e[0]);n[1].set(e[1])};self.mix["4->4"]=function(e,n){n[0].set(e[0]);n[1].set(e[1]);n[2].set(e[2]);n[3].set(e[3])};self.mix["4->6"]=function(e,n){n[0].set(e[0]);n[1].set(e[1]);n[4].set(e[2]);n[5].set(e[3])};self.mix["6->6"]=function(e,n){n[0].set(e[0]);n[1].set(e[1]);n[2].set(e[2]);n[3].set(e[3]);n[4].set(e[4]);n[5].set(e[5])};self.mix1={};self.mix1.nop=function(e){return e};self.mix1["1->2"]=function(e){return[e[0],e[0]]};self.mix1["1->4"]=function(e){return[e[0],e[0],0,0]};self.mix1["1->6"]=function(e){return[0,0,e[0],0,0,0]};self.mix1["2->4"]=function(e){return[e[0],e[1],0,0]};self.mix1["2->6"]=function(e){return[e[0],e[1],0,0,0,0]};self.mix1["4->6"]=function(e){return[e[0],e[1],0,0,e[2],e[3]]};self.mix1["2->1"]=function(e){return[.5*(e[0]+e[1])]};self.mix1["4->1"]=function(e){return[.25*(e[0]+e[1]+e[2]+e[3])]};self.mix1["6->1"]=function(e){return[.7071*(e[0]+e[1])+e[2]+.5*(e[4]+e[5])]};self.mix1["4->2"]=function(e){return[.5*(e[0]+e[2]),.5*(e[1]+e[3])]};self.mix1["6->2"]=function(e){return[e[0]+.7071*(e[2]+e[4]),e[1]+.7071*(e[2]+e[5])]};self.mix1["6->4"]=function(e){return[e[0]+.7071*e[2],e[1]+.7071*e[2],e[4],e[5]]}}t.self=t.util=self;n.exports=t}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],7:[function(e,n,t){"use strict";var r=e("inline-worker");var a=e("./render-worker");var i=new r(a,a.self);var u=[];var s=1;i.onmessage=function(e){var n=e.data.buffers.map(function(e){return new Float32Array(e)});u[e.data.callbackId](n);u[e.data.callbackId]=null};n.exports={transfer:function o(e){var n=s++;var t=e.channelData.map(function(e){return e.buffer});i.postMessage({type:"transfer",data:n,buffers:t},t);return n},dispose:function f(e){i.postMessage({type:"dispose",data:e})},render:function c(e){var n=u.length;i.postMessage({type:"render",tape:e,callbackId:n});return new Promise(function(e){u[n]=e})},util:a.util}},{"./render-worker":6,"inline-worker":12}],8:[function(e,n,t){"use strict";var r=function(){function e(e,n){for(var t=0;t