!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jQuery")):"function"==typeof define&&define.amd?define(["jQuery"],e):"object"==typeof exports?exports.Logo=e(require("jQuery")):t.Logo=e(t.jQuery)}(this,function(t){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var o,r;o=[n(6),n(5),n(1)],r=function(t,e,n){var o=256,r=n(o).random,i="function"==typeof window.Tone,s=function(e){for(var n in s.defaults)"undefined"==typeof e[n]&&(e[n]=s.defaults[n]);this.element=t("
",{id:"TonejsLogo"}).appendTo(e.container).on("click",function(t){t.preventDefault(),window.location.href="http://tonejs.org"}),this.textContainer=t("
",{id:"TextContainer"}).appendTo(this.element),this.canvas=t("",{id:"Canvas"}).appendTo(this.textContainer),this.context=this.canvas.get(0).getContext("2d"),this.title=t("
",{id:"Title"}).appendTo(this.textContainer).html("Tone.js"),i&&(this.analyser=new Tone.Analyser({size:o,type:"waveform",returnType:"byte"}),this._signal=new Tone.Signal(0).connect(this.analyser),Tone.Master.connect(this.analyser)),this._silentThresh=.01,this._rms=0,this.resize(e.width,e.height),i?this._draw():this._drawBuffer(r,!0)};return s.defaults={container:"body",width:300,height:80},s.prototype.resize=function(t,e){return this.element.width(t),this.element.height(e),this.context.canvas.width=2*this.canvas.height(),this.context.canvas.height=2*this.canvas.height(),this.title.css({"line-height":(.85*e).toString()+"px","font-size":.88*e}),this.canvas.css({"border-radius":e/50,width:this.canvas.height(),height:this.canvas.height()}),this},s.prototype._draw=function(){requestAnimationFrame(this._draw.bind(this));var t=this.analyser.analyse();this._isSilent(t)?this._drawBuffer(r,!0):this._drawBuffer(t,!1)},s.prototype._drawBuffer=function(t,e){var n=this.context,o=this.context.canvas.width,r=this.context.canvas.height;e?margin=this._scale(this._rms,0,this._silentThresh,.2*r,.5*r):margin=.2*r,n.clearRect(0,0,o,r),n.beginPath();for(var i,s=0,a=t.length;a>s;s++){var h=this._scale(s,0,a-1,0,o),l=this._scale(t[s],0,255,r-margin,margin);0===s?(i=l,n.moveTo(h,l)):n.lineTo(h,l)}n.lineTo(o,r),n.lineTo(0,r),n.lineTo(0,i),n.lineCap="round",n.fillStyle="#22DBC0",n.fill()},s.prototype._isSilent=function(t){for(var e=0,n=0;ne;e++)n[e]=128*(Math.sin(2*Math.PI*e/255)+1);for(e=0;t>e;e++)r[e]=(e+t/2)%t/t*255;for(e=0;t>e;e++)t/4>e?i[e]=e/(t/4)*127+128:.75*t>e?i[e]=255*(1-(e-t/4)/(t/2)):i[e]=(e-.75*t)/(t/4)*127;for(e=0;t>e;e++){var a=t/16;a>e?o[e]=0:t/2>e?o[e]=255:t-a>e?o[e]=0:o[e]=255}var h=s[Math.floor(Math.random()*s.length)];return{sawtooth:r,sine:n,triangle:i,square:o,random:h}}}.call(e,n,e,t),!(void 0!==o&&(t.exports=o))},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,"@import url(https://fonts.googleapis.com/css?family=Roboto+Mono);",""]),e.push([t.id,'#TonejsLogo{background-color:#000;cursor:pointer}#TonejsLogo,#TonejsLogo #Border,#TonejsLogo #Canvas,#TonejsLogo #Title{position:absolute}#TonejsLogo #TextContainer{position:absolute;width:auto;-webkit-transform:translate(-50%, 0px);-ms-transform:translate(-50%, 0px);transform:translate(-50%, 0px);left:50%;height:100%}#TonejsLogo #TextContainer #Title{position:relative;display:inline-block;font-family:"Roboto Mono" monospace;color:#fff;text-align:center;height:100%;top:0;width:100%;font-weight:400}#TonejsLogo #TextContainer #Title .Closer{margin:-3%}#TonejsLogo #TextContainer #Canvas{position:absolute;height:100%;top:0;border-radius:2%;z-index:0;right:0;width:10px;background-color:#f734d7}',""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e