-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.4bc890d7b5bd8132dfa7.bundle.js
1 lines (1 loc) · 107 KB
/
main.4bc890d7b5bd8132dfa7.bundle.js
1
webpackJsonp([1,5],{"+lQW":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".ping-pong-left[_ngcontent-%COMP%]{float:left}"]},"/JHn":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=['.socket[_ngcontent-%COMP%]{width:32px;height:32px;display:inline-block;cursor:pointer}.patch-menu[_ngcontent-%COMP%]{position:absolute;background-color:#f5f5f5;width:128px}.patch-menu-close[_ngcontent-%COMP%]{font-size:8px;font-weight:700;padding:4px;display:block;cursor:pointer}.patch-menu-close[_ngcontent-%COMP%]:hover{background-color:red}.patch-menu-item[_ngcontent-%COMP%]{font-size:8px;font-weight:700;padding:4px;display:block;cursor:pointer}.patch-menu-item[_ngcontent-%COMP%]:hover{background-color:red}.patch-menu-item[_ngcontent-%COMP%]:hover:after{content:"[delete] "}']},"/Nrj":function(n,l,t){"use strict";var e=t("fH5F");t.d(l,"a",function(){return u});var u=function(){function n(n){this.patches=n,this.name="",this.parent="",this.isSelected=!1}return n.prototype.centrePoint=function(){return{x:this.socket.nativeElement.offsetLeft+this.socket.nativeElement.offsetWidth/2,y:this.socket.nativeElement.offsetTop+this.socket.nativeElement.offsetHeight/2}},n.prototype.ngAfterViewInit=function(){this.patches.registerTarget(this.socket,this)},n.prototype.ngOnDestroy=function(){this.patches.deregisterTarget(this)},n.ctorParameters=function(){return[{type:e.a}]},n}()},"/fcW":function(n,l){function t(n){throw new Error("Cannot find module '"+n+"'.")}t.keys=function(){return[]},t.resolve=t,n.exports=t,t.id="/fcW"},0:function(n,l,t){n.exports=t("x35b")},"0cA2":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=function(){function n(){this.activeFilterType=0,this.filterTypes=["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"],this.activeRollOff=0,this.rollOffs=[-12,-24,-48,-96],this.filter=new Tone.Filter}return n.prototype.setType=function(n){this.activeFilterType=n,this.filter.type=this.filterTypes[n]},n.prototype.setRollOff=function(n){this.activeRollOff=n,this.filter.rolloff=this.rollOffs[n]},n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}()},"15Lw":function(n,l,t){"use strict";function e(n){return a._15(0,[(n()(),a._16(0,null,null,9,":svg:g",[],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,0,":svg:path",[["fill","none"],["stroke","blue"],["stroke-linecap","round"],["stroke-opacity","0.25"],["stroke-width","5"]],[[1,"d",0]],null,null,null,null)),(n()(),a._18(null,["\n\n "])),(n()(),a._16(0,null,null,1,":svg:circle",[["fill","blue"],["fill-opacity","0.25"],["r","7"]],[[1,"cx",0],[1,"cy",0]],null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,1,":svg:circle",[["fill","blue"],["fill-opacity","0.25"],["r","7"]],[[1,"cx",0],[1,"cy",0]],null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n "]))],null,function(n,l){n(l,2,0,l.context.$implicit.path),n(l,4,0,l.context.$implicit.cX1,l.context.$implicit.cY1),n(l,7,0,l.context.$implicit.cX2,l.context.$implicit.cY2)})}function u(n){return a._15(0,[(n()(),a._16(0,null,null,7,"div",[["class","patch-overlay"]],[[4,"width","px"],[4,"height","px"]],null,null,null,null)),(n()(),a._18(null,["\n\n "])),(n()(),a._16(0,null,null,4,":svg:svg",[["height","100%"],["width","100%"]],null,null,null,null,null)),(n()(),a._18(null,["\n\n "])),(n()(),a._19(8388608,null,null,1,null,e)),a._17(401408,null,0,r.h,[a._0,a._1,a.t],{ngForOf:[0,"ngForOf"]},null),(n()(),a._18(null,["\n\n "])),(n()(),a._18(null,["\n\n"])),(n()(),a._18(null,["\n"]))],function(n,l){n(l,5,0,l.component.paths)},function(n,l){var t=l.component;n(l,0,0,t.w,t.h)})}function i(n){return a._15(0,[(n()(),a._16(0,null,null,1,"app-patch-overlay",[],null,null,null,u,p)),a._17(2121728,null,0,c.a,[s.a],null,null)],null,null)}var o=t("Gl1D"),a=t("3j3K"),r=t("2Je8"),c=t("x+TL"),s=t("fH5F");t.d(l,"b",function(){return p}),l.a=u;var _=[o.a],p=a._14({encapsulation:0,styles:_,data:{}});a._20("app-patch-overlay",c.a,i,{},{},[])},"1A80":function(n,l,t){"use strict";function e(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-lfo",[],null,null,null,w.a,w.b)),k._17(57344,null,0,T.a,[],null,null)],function(n,l){n(l,1,0)},null)}function u(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-filter",[],null,null,null,S.a,S.b)),k._17(57344,null,0,C.a,[],null,null)],function(n,l){n(l,1,0)},null)}function i(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-gain",[],null,null,null,M.a,M.b)),k._17(57344,null,0,F.a,[],null,null)],function(n,l){n(l,1,0)},null)}function o(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-noise",[],null,null,null,q.a,q.b)),k._17(57344,null,0,I.a,[],null,null)],function(n,l){n(l,1,0)},null)}function a(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-osc",[],null,null,null,R.a,R.b)),k._17(24576,null,0,j.a,[],null,null)],null,null)}function r(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-pingpong",[],null,null,null,E.a,E.b)),k._17(57344,null,0,L.a,[],null,null)],function(n,l){n(l,1,0)},null)}function c(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-seq",[],null,null,null,A.a,A.b)),k._17(57344,null,0,D.a,[k.h],null,null)],function(n,l){n(l,1,0)},null)}function s(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-seq2",[],null,null,null,H.a,H.b)),k._17(57344,null,0,N.a,[k.h],null,null)],function(n,l){n(l,1,0)},null)}function _(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-compressor",[],null,null,null,G.a,G.b)),k._17(90112,null,0,V.a,[],null,null)],null,null)}function p(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-signal",[],null,null,null,K.a,K.b)),k._17(57344,null,0,X.a,[],null,null)],function(n,l){n(l,1,0)},null)}function f(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-trigger",[],null,null,null,B.a,B.b)),k._17(122880,null,0,z.a,[k.h],null,null)],function(n,l){n(l,1,0)},null)}function g(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-analyser",[],null,null,null,U.a,U.b)),k._17(122880,null,0,Y.a,[],null,null)],function(n,l){n(l,1,0)},null)}function h(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-membrane",[],null,null,null,J.a,J.b)),k._17(122880,null,0,Q.a,[k.h],null,null)],function(n,l){n(l,1,0)},null)}function m(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-clock",[],null,null,null,W.a,W.b)),k._17(24576,null,0,$.a,[],null,null)],null,null)}function d(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-adsr",[],null,null,null,Z.a,Z.b)),k._17(57344,null,0,nn.a,[],null,null)],function(n,l){n(l,1,0)},null)}function v(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-divider",[],null,null,null,ln.a,ln.b)),k._17(57344,null,0,tn.a,[],null,null)],function(n,l){n(l,1,0)},null)}function y(n){return k._15(0,[(n()(),k._16(0,null,null,51,"app-frame",[],null,[[null,"closed"]],function(n,l,t){var e=!0,u=n.component;if("closed"===l){e=!1!==u.remove(n.context.index)&&e}return e},en.a,en.b)),k._17(8192,null,0,un.f,[],{ngSwitch:[0,"ngSwitch"]},null),k._17(57344,null,0,on.a,[],{name:[0,"name"]},{closed:"closed"}),(n()(),k._18(0,["\n\n "])),(n()(),k._19(8388608,null,0,1,null,e)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,u)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,i)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,o)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,a)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,r)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,c)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,s)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,_)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,p)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,f)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,g)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,h)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,m)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,d)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n "])),(n()(),k._19(8388608,null,0,1,null,v)),k._17(139264,null,0,un.g,[k._0,k._1,un.f],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),k._18(0,["\n\n "]))],function(n,l){n(l,1,0,l.context.$implicit),n(l,2,0,l.context.$implicit),n(l,5,0,"LFO"),n(l,8,0,"Filter"),n(l,11,0,"Gain"),n(l,14,0,"Noise"),n(l,17,0,"Oscillator"),n(l,20,0,"Ping Pong"),n(l,23,0,"Sequencer"),n(l,26,0,"Sequencer #2"),n(l,29,0,"Compressor"),n(l,32,0,"Slider"),n(l,35,0,"Trigger"),n(l,38,0,"Analyser"),n(l,41,0,"Membrane"),n(l,44,0,"Clock"),n(l,47,0,"Envelope"),n(l,50,0,"Clock Divider")},null)}function b(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-patch-overlay",[],null,null,null,an.a,an.b)),k._17(2121728,null,0,rn.a,[cn.a],null,null)],null,null)}function x(n){return k._15(0,[(n()(),k._16(0,null,null,11,"div",[["class","main"]],null,null,null,null,null)),(n()(),k._18(null,["\n "])),(n()(),k._16(0,null,null,5,"app-frame",[],null,null,null,en.a,en.b)),k._17(57344,null,0,on.a,[],{name:[0,"name"]},null),(n()(),k._18(0,["\n "])),(n()(),k._16(0,null,0,1,"app-mixer",[],null,null,null,sn.a,sn.b)),k._17(122880,null,0,_n.a,[],null,null),(n()(),k._18(0,["\n "])),(n()(),k._18(null,["\n\n "])),(n()(),k._19(8388608,null,null,1,null,y)),k._17(401408,null,0,un.h,[k._0,k._1,k.t],{ngForOf:[0,"ngForOf"]},null),(n()(),k._18(null,["\n"])),(n()(),k._18(null,["\n\n"])),(n()(),k._16(0,null,null,0,"br",[["clear","both"]],null,null,null,null,null)),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Oscillator")&&e}return e},null,null)),(n()(),k._18(null,["Oscillator"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Filter")&&e}return e},null,null)),(n()(),k._18(null,["Filter"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Gain")&&e}return e},null,null)),(n()(),k._18(null,["Gain"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("LFO")&&e}return e},null,null)),(n()(),k._18(null,["LFO"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Noise")&&e}return e},null,null)),(n()(),k._18(null,["Noise"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Sequencer")&&e}return e},null,null)),(n()(),k._18(null,["Sequencer"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Sequencer #2")&&e}return e},null,null)),(n()(),k._18(null,["Sequencer #2"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Ping Pong")&&e}return e},null,null)),(n()(),k._18(null,["Ping Pong"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Compressor")&&e}return e},null,null)),(n()(),k._18(null,["Compressor"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Slider")&&e}return e},null,null)),(n()(),k._18(null,["Slider"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Trigger")&&e}return e},null,null)),(n()(),k._18(null,["Trigger"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Analyser")&&e}return e},null,null)),(n()(),k._18(null,["Analyser"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Membrane")&&e}return e},null,null)),(n()(),k._18(null,["Membrane"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Clock")&&e}return e},null,null)),(n()(),k._18(null,["Clock"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Envelope")&&e}return e},null,null)),(n()(),k._18(null,["Envelope"])),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,1,"a",[["class","add-module-btn"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.add("Clock Divider")&&e}return e},null,null)),(n()(),k._18(null,["Clock Divider"])),(n()(),k._18(null,["\n\n"])),(n()(),k._19(8388608,null,null,1,null,b)),k._17(8192,null,0,un.i,[k._0,k._1],{ngIf:[0,"ngIf"]},null),(n()(),k._18(null,["\n"])),(n()(),k._16(0,null,null,0,"br",[["clear","both"]],null,null,null,null,null)),(n()(),k._18(null,["\n"]))],function(n,l){var t=l.component;n(l,3,0,"Mixer (Master Output)"),n(l,6,0),n(l,10,0,t.modules),n(l,64,0,t.showPatches)},null)}function P(n){return k._15(0,[(n()(),k._16(0,null,null,1,"app-root",[],null,null,null,x,gn)),k._17(24576,null,0,pn.a,[k.h,cn.a],null,null)],null,null)}var O=t("l0Vc"),k=t("3j3K"),w=t("ijXj"),T=t("Qwg6"),S=t("kh17"),C=t("0cA2"),M=t("PQI/"),F=t("Rhtc"),q=t("clwv"),I=t("1GF8"),R=t("s41N"),j=t("Gvaq"),E=t("Timj"),L=t("oCiJ"),A=t("zcbK"),D=t("psdp"),H=t("6QLa"),N=t("3lMx"),G=t("j78t"),V=t("t6/e"),K=t("XF4d"),X=t("3kx/"),B=t("TMbC"),z=t("W+DQ"),U=t("W6ND"),Y=t("U6uy"),J=t("J3oV"),Q=t("ly/L"),W=t("4P4K"),$=t("vA8A"),Z=t("pNyw"),nn=t("b9kn"),ln=t("xVmY"),tn=t("j7Og"),en=t("UJZv"),un=t("2Je8"),on=t("Ty9X"),an=t("15Lw"),rn=t("x+TL"),cn=t("fH5F"),sn=t("aeoC"),_n=t("RSYd"),pn=t("YWx4");t.d(l,"a",function(){return hn});var fn=[O.a],gn=k._14({encapsulation:0,styles:fn,data:{}}),hn=k._20("app-root",pn.a,P,{},{},[])},"1GF8":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=function(){function n(){this.currentType=0,this.types=["white","brown","pink"],this.noise=(new Tone.Noise).start()}return n.prototype.ngOnInit=function(){},n.prototype.setType=function(n){this.currentType=n,this.noise.type=this.types[n]},n.ctorParameters=function(){return[]},n}()},"3DQ6":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[""]},"3kx/":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=function(){function n(){this.signal=new Tone.Signal(0)}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}()},"3lMx":function(n,l,t){"use strict";var e=t("3j3K"),u=t("nStF");t.d(l,"a",function(){return i});var i=function(){function n(n){this.zone=n,this.seq=new u.a(Tone.context),this.nullOut=new Tone.Gain,this.nullOut.gain.value=0,this.nullOut.connect(Tone.Master),this.seq.cv.connect(this.nullOut)}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[{type:e.h}]},n}()},"4P4K":function(n,l,t){"use strict";function e(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-source",[],null,null,null,a.a,a.b)),o._17(2187264,[["source",4]],0,r.a,[c.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),o._18(null,["\n"]))],function(n,l){n(l,1,0,"clock",l.component.clock)},null)}function u(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-clock",[],null,null,null,e,p)),o._17(24576,null,0,s.a,[],null,null)],null,null)}var i=t("7ycK"),o=t("3j3K"),a=t("FfTB"),r=t("Tg2U"),c=t("fH5F"),s=t("vA8A");t.d(l,"b",function(){return p}),l.a=e;var _=[i.a],p=o._14({encapsulation:0,styles:_,data:{}});o._20("app-clock",s.a,u,{},{},[])},"5XgQ":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".filter-type-toggle[_ngcontent-%COMP%]{width:128px;display:inline-block}.filter-rolloff-toggle[_ngcontent-%COMP%]{width:64px;display:inline-block}.filter-left[_ngcontent-%COMP%]{float:left}"]},"6LEp":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[""]},"6QLa":function(n,l,t){"use strict";function e(n){return a._15(0,[(n()(),a._16(0,null,null,13,"div",[["class","seq-signals"]],null,null,null,null,null)),(n()(),a._18(null,["\n\n "])),(n()(),a._16(0,null,null,1,"app-slider",[],[[4,"color",null]],null,null,r.a,r.b)),a._17(2220032,null,0,c.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),a._18(null,["\n\n "])),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n\n "])),(n()(),a._16(0,null,null,1,"a",[["class","binary-toggle"]],[[2,"active",null]],[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!=(u.seq.active[n.context.index]=!u.seq.active[n.context.index])&&e}return e},null,null)),(n()(),a._18(null,["",""])),(n()(),a._18(null,["\n\n "])),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n"]))],function(n,l){n(l,3,0,l.context.index+1,l.context.$implicit,0,1)},function(n,l){var t=l.component;n(l,2,0,t.seq.state===l.context.index?"red":"grey"),n(l,8,0,t.seq.active[l.context.index]),n(l,9,0,t.seq.active[l.context.index]?"1":"0")})}function u(n){return a._15(0,[(n()(),a._18(null,["\n\n\n"])),(n()(),a._19(8388608,null,null,1,null,e)),a._17(401408,null,0,s.h,[a._0,a._1,a.t],{ngForOf:[0,"ngForOf"]},null),(n()(),a._18(null,["\n\n"])),(n()(),a._16(0,null,null,18,"div",[["class","seq-right"]],null,null,null,null,null)),(n()(),a._18(null,["\n\n "])),(n()(),a._16(0,null,null,1,"app-sink",[],null,null,null,_.a,_.b)),a._17(2187264,null,0,p.a,[f.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),a._18(null,["\n\n "])),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),a._18(null,["\n\n "])),(n()(),a._16(0,null,null,1,"app-source",[],null,null,null,g.a,g.b)),a._17(2187264,null,0,h.a,[f.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,1,"app-source",[],null,null,null,g.a,g.b)),a._17(2187264,[["source",4]],0,h.a,[f.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),a._18(null,["\n"])),(n()(),a._18(null,["\n\n"]))],function(n,l){var t=l.component;n(l,2,0,t.seq.values),n(l,7,0,"clk","clk",t.seq.clock),n(l,16,0,"cv",t.seq.cv),n(l,21,0,"gate",t.seq.gate)},null)}function i(n){return a._15(0,[(n()(),a._16(0,null,null,1,"app-seq2",[],null,null,null,u,v)),a._17(57344,null,0,m.a,[a.h],null,null)],function(n,l){n(l,1,0)},null)}var o=t("oAJ2"),a=t("3j3K"),r=t("Txyh"),c=t("PP/s"),s=t("2Je8"),_=t("epGi"),p=t("/Nrj"),f=t("fH5F"),g=t("FfTB"),h=t("Tg2U"),m=t("3lMx");t.d(l,"b",function(){return v}),l.a=u;var d=[o.a],v=a._14({encapsulation:0,styles:d,data:{}});a._20("app-seq2",m.a,i,{},{},[])},"6aZM":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=function(){function n(){this.isPatching=!1}return n.prototype.startPatch=function(n,l){this.startX=n.nativeElement.offsetLeft+n.nativeElement.offsetWidth/2,this.startY=n.nativeElement.offsetTop+n.nativeElement.offsetHeight/2,this.moveX=l.clientX,this.moveY=l.clientY,this.isPatching=!0},n.prototype.movePatch=function(n){this.moveX=n.clientX,this.moveY=n.clientY},n.prototype.endPatch=function(){this.isPatching=!1},Object.defineProperty(n.prototype,"cX1",{get:function(){return this.startX-window.scrollX},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cY1",{get:function(){return this.startY-window.scrollY},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cX2",{get:function(){return this.moveX},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cY2",{get:function(){return this.moveY},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){var n=this.startX-window.scrollX,l=this.startY-window.scrollY;return"M "+n+" "+l+" Q "+(l<this.moveY?n:this.moveX)+" "+(l<this.moveY?this.moveY:l)+", "+this.moveX+" "+this.moveY},enumerable:!0,configurable:!0}),n}()},"75vd":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[""]},"7ycK":function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".clock-period-toggle[_ngcontent-%COMP%]{width:34px;display:inline-block}"]},AjrG:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".socket[_ngcontent-%COMP%]{width:32px;height:32px;display:inline-block;cursor:default}"]},BYSp:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".seq-left[_ngcontent-%COMP%], .seq-signals[_ngcontent-%COMP%]{float:left}.seq-right[_ngcontent-%COMP%]{float:right}.seq-btn[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;width:32px;height:32px;font-size:8px;font-weight:700;background-color:#f5f5f5;line-height:32px;text-align:center}.seq-btn-stop[_ngcontent-%COMP%]{background-color:#add8e6}.seq-btn-pulse[_ngcontent-%COMP%]{background-color:red}a.binary-toggle[_ngcontent-%COMP%]{background-color:#f5f5f5;cursor:pointer;text-align:center;font-size:8px;font-weight:700;text-transform:uppercase}a.binary-toggle[_ngcontent-%COMP%], a.binary-toggle.active[_ngcontent-%COMP%]{padding:4px;display:block;margin:0 4px 4px 0}a.binary-toggle.active[_ngcontent-%COMP%]{background-color:#add8e6}"]},"D+73":function(n,l,t){"use strict";function e(n){return a._15(0,[(n()(),a._16(0,null,null,12,"div",[["class","patch-overlay"]],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,9,":svg:svg",[["height","100%"],["width","100%"]],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,0,":svg:path",[["fill","none"],["stroke","red"],["stroke-linecap","round"],["stroke-opacity","0.5"],["stroke-width","5"]],[[1,"d",0]],null,null,null,null)),(n()(),a._18(null,["\n\n "])),(n()(),a._16(0,null,null,1,":svg:circle",[["fill","red"],["fill-opacity","0.5"],["r","7"]],[[1,"cx",0],[1,"cy",0]],null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,1,":svg:circle",[["fill","red"],["fill-opacity","0.5"],["r","7"]],[[1,"cx",0],[1,"cy",0]],null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n"]))],null,function(n,l){var t=l.component;n(l,4,0,t.path),n(l,6,0,t.cX1,t.cY1),n(l,9,0,t.cX2,t.cY2)})}function u(n){return a._15(0,[(n()(),a._19(8388608,null,null,1,null,e)),a._17(8192,null,0,r.i,[a._0,a._1],{ngIf:[0,"ngIf"]},null),(n()(),a._18(null,["\n"]))],function(n,l){n(l,1,0,l.component.isPatching)},null)}function i(n){return a._15(0,[(n()(),a._16(0,null,null,1,"app-cable",[],null,null,null,u,_)),a._17(24576,null,0,c.a,[],null,null)],null,null)}var o=t("Z42L"),a=t("3j3K"),r=t("2Je8"),c=t("6aZM");t.d(l,"b",function(){return _}),l.a=u;var s=[o.a],_=a._14({encapsulation:0,styles:s,data:{}});a._20("app-cable",c.a,i,{},{},[])},FXjM:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".adsr-range-toggle[_ngcontent-%COMP%]{width:32px;display:inline-block}.adsr-out[_ngcontent-%COMP%]{float:right}"]},FfTB:function(n,l,t){"use strict";function e(n){return c._15(0,[(n()(),c._16(0,null,null,1,":svg:text",[["fill","gray"],["font-family","monospace"],["font-size","24"],["text-anchor","middle"],["x","50"],["y","56"]],null,null,null,null,null)),(n()(),c._18(null,["\n ","\n "]))],null,function(n,l){n(l,1,0,l.component.name)})}function u(n){return c._15(0,[(n()(),c._16(0,null,null,1,"a",[["class","patch-menu-item"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.removeConnectionToSink(n.context.index)&&e}return e},null,null)),(n()(),c._18(null,["\n ","\n "]))],null,function(n,l){n(l,1,0,l.context.$implicit)})}function i(n){return c._15(0,[(n()(),c._16(0,null,null,7,"div",[["class","patch-menu"]],[[4,"top","px"],[4,"left","px"]],null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"a",[["class","patch-menu-close"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!=(u.menuActive=!1)&&e}return e},null,null)),(n()(),c._18(null,["cancel"])),(n()(),c._18(null,["\n "])),(n()(),c._19(8388608,null,null,1,null,u)),c._17(401408,null,0,s.h,[c._0,c._1,c.t],{ngForOf:[0,"ngForOf"]},null),(n()(),c._18(null,["\n"]))],function(n,l){n(l,6,0,l.component.sinks)},function(n,l){var t=l.component;n(l,0,0,t.centrePoint().y,t.centrePoint().x)})}function o(n){return c._15(0,[c._21(201326592,1,{socket:0}),c._21(201326592,2,{cable:0}),(n()(),c._16(0,[[1,0],["socket",1]],null,9,"div",[["class","socket"]],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,6,":svg:svg",[["viewBox","0 0 100 100"]],null,null,null,null,null)),(n()(),c._18(null,["\n\n "])),(n()(),c._16(0,null,null,0,":svg:circle",[["cx","50"],["cy","50"],["fill","none"],["r","45"],["stroke","grey"],["stroke-width","5"]],null,null,null,null,null)),(n()(),c._18(null,["\n\n "])),(n()(),c._19(8388608,null,null,1,null,e)),c._17(8192,null,0,s.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,["\n\n "])),(n()(),c._18(null,["\n"])),(n()(),c._18(null,["\n\n"])),(n()(),c._19(8388608,null,null,1,null,i)),c._17(8192,null,0,s.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,["\n\n"])),(n()(),c._16(0,null,null,1,"app-cable",[],null,null,null,_.a,_.b)),c._17(24576,[[2,4],["cable",4]],0,p.a,[],null,null),(n()(),c._18(null,["\n"]))],function(n,l){var t=l.component;n(l,9,0,!!t.name),n(l,14,0,t.menuActive)},null)}function a(n){return c._15(0,[(n()(),c._16(0,null,null,1,"app-source",[],null,null,null,o,m)),c._17(2187264,null,0,f.a,[g.a],null,null)],null,null)}var r=t("/JHn"),c=t("3j3K"),s=t("2Je8"),_=t("D+73"),p=t("6aZM"),f=t("Tg2U"),g=t("fH5F");t.d(l,"b",function(){return m}),l.a=o;var h=[r.a],m=c._14({encapsulation:0,styles:h,data:{}});c._20("app-source",f.a,a,{name:"name",signal:"signal"},{},[])},G8N1:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".divisor-toggle[_ngcontent-%COMP%]{width:90px;display:inline-block}"]},Gl1D:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".patch-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;pointer-events:none}"]},Gvaq:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=function(){function n(){this.currentType=0,this.types=["sine","sawtooth","square","triangle"],this.currentClass=0,this.classes=["simple","fat","pwm","fm","am","pulse"],this.osc=(new Tone.OmniOscillator).start(),this.cvIn=new Tone.Scale(Tone.Frequency("C3").toFrequency(),Tone.Frequency("C7").toFrequency()),this.cvIn.connect(this.osc.frequency)}return n.prototype.updateType=function(){switch(this.currentClass){case 1:this.osc.type="fat"+this.types[this.currentType];break;case 2:this.osc.type="pwm";break;case 3:this.osc.type="fm"+this.types[this.currentType];break;case 4:this.osc.type="am"+this.types[this.currentType];break;case 5:this.osc.type="pulse";break;default:case 0:this.osc.type=this.types[this.currentType]}},n.prototype.setType=function(n){this.currentType=n,this.updateType()},n.prototype.setClass=function(n){this.currentClass=n,this.updateType()},n.ctorParameters=function(){return[]},n}()},Iksp:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=function(){function n(){}return n}()},J3oV:function(n,l,t){"use strict";function e(n){return c._15(0,[(n()(),c._16(0,null,null,1,"a",[["class","seq-btn seq-btn-start"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.start()&&e}return e},null,null)),(n()(),c._18(null,["START"]))],null,null)}function u(n){return c._15(0,[(n()(),c._16(0,null,null,1,"a",[["class","seq-btn"]],[[2,"seq-btn-pulse",null]],[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.stop()&&e}return e},null,null)),(n()(),c._18(null,["STOP"]))],null,function(n,l){n(l,0,0,l.component.pulse)})}function i(n){return c._15(0,[(n()(),c._16(0,null,null,0,":svg:path",[],[[1,"d",0],[1,"stroke",0],[1,"fill",0]],[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.toggleBox(n.context.index)&&e}return e},null,null))],null,function(n,l){var t=l.component;n(l,0,0,l.context.$implicit,t.activeBox===l.context.index?"red":"none",t.box[l.context.index]?"grey":"whitesmoke")})}function o(n){return c._15(0,[(n()(),c._18(null,["\n"])),(n()(),c._16(0,null,null,1,"app-sink",[],null,null,null,s.a,s.b)),c._17(2187264,null,0,_.a,[p.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),c._18(null,["\n"])),(n()(),c._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,f.a,f.b)),c._17(2220032,null,0,g.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),c._18(null,["\n\n"])),(n()(),c._16(0,null,null,12,"div",[["class","mem-right"]],null,null,null,null,null)),(n()(),c._18(null,["\n\n "])),(n()(),c._19(8388608,null,null,1,null,e)),c._17(8192,null,0,h.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,["\n "])),(n()(),c._19(8388608,null,null,1,null,u)),c._17(8192,null,0,h.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,[" "])),(n()(),c._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),c._18(null,["\n\n "])),(n()(),c._16(0,null,null,1,"app-source",[],null,null,null,m.a,m.b)),c._17(2187264,null,0,d.a,[p.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),c._18(null,["\n"])),(n()(),c._18(null,["\n\n"])),(n()(),c._16(0,null,null,10,"div",[["class","seq-left"]],null,null,null,null,null)),(n()(),c._18(null,["\n\n "])),(n()(),c._16(0,null,null,1,"app-toggles",[],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setPeriod(t)&&e}return e},y.a,y.b)),c._17(24576,null,0,b.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),c._18(null,["\n\n\n "])),(n()(),c._16(0,null,null,4,":svg:svg",[["class","beat-box"]],null,null,null,null,null)),(n()(),c._18(null,["\n\n "])),(n()(),c._19(8388608,null,null,1,null,i)),c._17(401408,null,0,h.h,[c._0,c._1,c.t],{ngForOf:[0,"ngForOf"]},null),(n()(),c._18(null,["\n\n "])),(n()(),c._18(null,["\n\n\n"])),(n()(),c._18(null,["\n\n\n"])),(n()(),c._16(0,null,null,7,"div",[["class","seq-signals"]],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.synth.envelope.attack=t)&&e}return e},f.a,f.b)),c._17(2220032,null,0,g.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.synth.envelope.release=t)&&e}return e},f.a,f.b)),c._17(2220032,null,0,g.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),c._18(null,["\n"])),(n()(),c._18(null,["\n"]))],function(n,l){var t=l.component;n(l,2,0,"freq","membrane",t.pitch),n(l,5,0,"pitch",t.pitch,0,200),n(l,10,0,!t.isPlaying),n(l,13,0,t.isPlaying),n(l,18,0,"out",t.synth),n(l,24,0,"Period",t.currentPeriod,t.noteLengths),n(l,29,0,t.boxes),n(l,36,0,"Attack",0,.5,.01),n(l,39,0,"Release",0,1,.01)},function(n,l){n(l,35,0,"grey"),n(l,38,0,"grey")})}function a(n){return c._15(0,[(n()(),c._16(0,null,null,1,"app-membrane",[],null,null,null,o,P)),c._17(122880,null,0,v.a,[c.h],null,null)],function(n,l){n(l,1,0)},null)}var r=t("abao"),c=t("3j3K"),s=t("epGi"),_=t("/Nrj"),p=t("fH5F"),f=t("Txyh"),g=t("PP/s"),h=t("2Je8"),m=t("FfTB"),d=t("Tg2U"),v=t("ly/L"),y=t("l35h"),b=t("xMaR");t.d(l,"b",function(){return P}),l.a=o;var x=[r.a],P=c._14({encapsulation:0,styles:x,data:{}});c._20("app-membrane",v.a,a,{},{},[])},JaQH:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".comp-right[_ngcontent-%COMP%]{float:right}.comp-reduction[_ngcontent-%COMP%]{display:inline-block;padding:5px;text-align:right;width:64px;margin:0 0 5px;background-color:#f5f5f5;font-size:8px}"]},NQuz:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".lfo-range-toggle[_ngcontent-%COMP%]{width:70px;display:inline-block}.lfo-right[_ngcontent-%COMP%]{float:left}.lfo-waveform-toggle[_ngcontent-%COMP%]{width:64px;display:inline-block}.lfo-freq-notes-toggle[_ngcontent-%COMP%]{width:32px;display:inline-block}"]},"PP/s":function(n,l,t){"use strict";var e=t("3j3K"),u=t("rCTf"),i=(t.n(u),t("/lY3")),o=(t.n(i),t("M4fF"));t.n(o);t.d(l,"a",function(){return a});var a=function(){function n(){this.name="",this.change=new e.R,this.cursorPt={x:0,y:0}}return n.prototype.ngOnInit=function(){this.signal||(this.signal=new Tone.Signal(this.defaultValue?this.defaultValue:(this.max-this.min)/2));var n=(this.signal.value-this.min)/(this.max-this.min);this.cursorPt={x:0,y:128-128*n}},n.prototype.ngAfterViewInit=function(){var n=this;this.pt=this.slider.nativeElement.createSVGPoint();var l=u.Observable.fromEvent(this.slider.nativeElement,"mousedown").do(function(n){return n.preventDefault()}),t=u.Observable.fromEvent(document,"mousemove").do(function(n){return n.preventDefault()}),e=u.Observable.fromEvent(document,"mouseup").do(function(n){return n.preventDefault()}),i=l.mergeMap(function(n){return t.startWith(n).takeUntil(e.take(1))});this.handle=i.subscribe(function(l){n.pt.x=l.clientX,n.pt.y=l.clientY,n.cursorPt=n.pt.matrixTransform(n.slider.nativeElement.getScreenCTM().inverse()),n.cursorPt.y=o.clamp(n.cursorPt.y,0,128);var t=1-n.cursorPt.y/128,e=t*(n.max-n.min)+n.min;n.signal.setValueAtTime(e,.1),n.change.emit(e)})},n.prototype.ngOnDestroy=function(){this.handle.unsubscribe()},n.ctorParameters=function(){return[]},n}()},"PQI/":function(n,l,t){"use strict";function e(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-sink",[],null,null,null,a.a,a.b)),o._17(2187264,null,0,r.a,[c.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-sink",[],null,null,null,a.a,a.b)),o._17(2187264,null,0,r.a,[c.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-source",[],null,null,null,s.a,s.b)),o._17(2187264,null,0,_.a,[c.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),o._18(null,["\n"]))],function(n,l){var t=l.component;n(l,1,0,"in","gain",t.gain),n(l,6,0,"cv","gain",t.gain.gain),n(l,11,0,"out",t.gain)},null)}function u(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-gain",[],null,null,null,e,g)),o._17(57344,null,0,p.a,[],null,null)],function(n,l){n(l,1,0)},null)}var i=t("75vd"),o=t("3j3K"),a=t("epGi"),r=t("/Nrj"),c=t("fH5F"),s=t("FfTB"),_=t("Tg2U"),p=t("Rhtc");t.d(l,"b",function(){return g}),l.a=e;var f=[i.a],g=o._14({encapsulation:0,styles:f,data:{}});o._20("app-gain",p.a,u,{},{},[])},PeXh:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".seq-btn[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;width:32px;height:32px;font-size:8px;font-weight:700;background-color:#f5f5f5;line-height:32px;text-align:center}.seq-btn-stop[_ngcontent-%COMP%]{background-color:#add8e6}.seq-btn-pulse[_ngcontent-%COMP%]{background-color:red}.seq-signals[_ngcontent-%COMP%]{float:right}.seq-left[_ngcontent-%COMP%]{float:left}"]},Qwg6:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=function(){function n(){this.currentType=0,this.types=["sine","sawtooth","square","triangle"],this.activeRange=2,this.rangeLabels=["0.1 - 10.0","10 - 40","40 - 400","400 - 4000"],this.currentKind=0,this.kinds=["freq","sync"],this.currentLength=2,this.noteLengths=["32n","16n","8n","4n","2n","1m"],this.ranges=[{min:.1,max:10},{min:10,max:40},{min:40,max:400},{min:400,max:4e3}],this.lfo=new Tone.LFO("4n").start(),this.setRange(this.activeRange)}return n.prototype.setRange=function(n){this.activeRange=n,this.lfo.min=this.ranges[this.activeRange].min,this.lfo.max=this.ranges[this.activeRange].max},n.prototype.setLength=function(n){this.currentLength=n,this.updateFreq()},n.prototype.updateFreq=function(){this.lfo.frequency.setValueAtTime(this.noteLengths[this.currentLength],.01)},n.prototype.ngOnInit=function(){},n.prototype.setKind=function(n){this.currentKind=n,this.updateFreq(),1===this.currentKind?this.lfo.sync():this.lfo.unsync()},n.prototype.setType=function(n){this.currentType=n,this.lfo.type=this.types[n]},n.ctorParameters=function(){return[]},n}()},RSYd:function(n,l,t){"use strict";var e=t("rCTf"),u=(t.n(e),t("1APj")),i=(t.n(u),t("XZ4o")),o=(t.n(i),t("HwIK"));t.n(o);t.d(l,"a",function(){return a});var a=function(){function n(){var n=this;this.channels=[new Tone.Gain(0).toMaster(),new Tone.Gain(0).toMaster(),new Tone.Gain(0).toMaster(),new Tone.Gain(0).toMaster()],this.bpm=Tone.Transport.bpm,this.anim=e.Observable.of(0,o.animationFrame).repeat().subscribe(function(){n.beats=Tone.Transport.bpm.value})}return n.prototype.ngOnInit=function(){},n.prototype.ngOnDestroy=function(){this.anim.unsubscribe()},n.ctorParameters=function(){return[]},n}()},Rhtc:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=function(){function n(){this.gain=new Tone.Gain(0)}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}()},Spwa:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".spectrum[_ngcontent-%COMP%]{width:256px;height:126px}"]},TMbC:function(n,l,t){"use strict";function e(n){return r._15(0,[(n()(),r._16(0,null,null,1,"a",[["class","seq-btn seq-btn-start"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.start()&&e}return e},null,null)),(n()(),r._18(null,["START"]))],null,null)}function u(n){return r._15(0,[(n()(),r._16(0,null,null,1,"a",[["class","seq-btn"]],[[2,"seq-btn-pulse",null]],[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.stop()&&e}return e},null,null)),(n()(),r._18(null,["STOP"]))],null,function(n,l){n(l,0,0,l.component.pulse)})}function i(n){return r._15(0,[(n()(),r._16(0,null,null,16,"div",[["class","seq-left"]],null,null,null,null,null)),(n()(),r._18(null,["\n\n "])),(n()(),r._16(0,null,null,1,"app-toggles",[],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setPeriod(t)&&e}return e},s.a,s.b)),r._17(24576,null,0,_.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),r._18(null,["\n\n "])),(n()(),r._16(0,null,null,1,"app-toggles",[],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setLength(t)&&e}return e},s.a,s.b)),r._17(24576,null,0,_.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),r._18(null,["\n\n "])),(n()(),r._19(8388608,null,null,1,null,e)),r._17(8192,null,0,p.i,[r._0,r._1],{ngIf:[0,"ngIf"]},null),(n()(),r._18(null,["\n "])),(n()(),r._19(8388608,null,null,1,null,u)),r._17(8192,null,0,p.i,[r._0,r._1],{ngIf:[0,"ngIf"]},null),(n()(),r._18(null,["\n "])),(n()(),r._16(0,null,null,1,"app-source",[],null,null,null,f.a,f.b)),r._17(2187264,null,0,g.a,[h.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),r._18(null,["\n"])),(n()(),r._18(null,["\n\n\n"])),(n()(),r._16(0,null,null,7,"div",[["class","seq-signals"]],null,null,null,null,null)),(n()(),r._18(null,["\n "])),(n()(),r._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.gate.attack=t)&&e}return e},m.a,m.b)),r._17(2220032,null,0,d.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),r._18(null,["\n "])),(n()(),r._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.gate.release=t)&&e}return e},m.a,m.b)),r._17(2220032,null,0,d.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),r._18(null,["\n"])),(n()(),r._18(null,["\n"]))],function(n,l){var t=l.component;n(l,3,0,"Period",t.currentPeriod,t.noteLengths),n(l,6,0,"Note length",t.currentLength,t.noteLengths),n(l,9,0,!t.isPlaying),n(l,12,0,t.isPlaying),n(l,15,0,"env",t.gate),n(l,21,0,"Attack",0,1,.01),n(l,24,0,"Release",0,1,.01)},function(n,l){n(l,20,0,"grey"),n(l,23,0,"grey")})}function o(n){return r._15(0,[(n()(),r._16(0,null,null,1,"app-trigger",[],null,null,null,i,y)),r._17(122880,null,0,c.a,[r.h],null,null)],function(n,l){n(l,1,0)},null)}var a=t("PeXh"),r=t("3j3K"),c=t("W+DQ"),s=t("l35h"),_=t("xMaR"),p=t("2Je8"),f=t("FfTB"),g=t("Tg2U"),h=t("fH5F"),m=t("Txyh"),d=t("PP/s");t.d(l,"b",function(){return y}),l.a=i;var v=[a.a],y=r._14({encapsulation:0,styles:v,data:{}});r._20("app-trigger",c.a,o,{},{},[])},Tg2U:function(n,l,t){"use strict";var e=t("M4fF"),u=(t.n(e),t("rCTf")),i=(t.n(u),t("E7Yq")),o=(t.n(i),t("SUuD")),a=(t.n(o),t("EnA3")),r=(t.n(a),t("HcJ8")),c=(t.n(r),t("XlOA")),s=(t.n(c),t("+pb+")),_=(t.n(s),t("T3fU")),p=(t.n(_),t("hzF8")),f=(t.n(p),t("wUn1")),g=(t.n(f),t("8szd")),h=(t.n(g),t("/lY3")),m=(t.n(h),t("/rMs")),d=(t.n(m),t("EGMK")),v=(t.n(d),t("fH5F"));t.d(l,"a",function(){return y});var y=function(){function n(n){this.patches=n,this.menuActive=!1}return n.prototype.centrePoint=function(){return{x:this.socket.nativeElement.offsetLeft+this.socket.nativeElement.offsetWidth/2,y:this.socket.nativeElement.offsetTop+this.socket.nativeElement.offsetHeight/2}},Object.defineProperty(n.prototype,"sinks",{get:function(){var n=this.patches.getConnectionsFor(this);return e.map(n,function(n,l){var t=n.sink;return l+":"+t.parent+":"+t.name})},enumerable:!0,configurable:!0}),n.prototype.removeConnectionToSink=function(n){var l=this;this.menuActive=!1;var t=this.patches.removeConnectionsFor(this);e.map(t,function(n){return l.signal.disconnect(n.signal)})},n.prototype.ngAfterViewInit=function(){var n=this;this.menu=u.Observable.fromEvent(this.socket.nativeElement,"mousedown").filter(function(n){return n.which&&3==n.which||n.button&&2==n.button}).do(function(n){return n.preventDefault()}).subscribe(function(){return n.menuActive=!0});var l=u.Observable.fromEvent(this.socket.nativeElement,"mousedown").filter(function(n){return!(n.which&&3==n.which||n.button&&2==n.button)}).do(function(n){return n.preventDefault()}).do(function(l){return n.cable.startPatch(n.socket,l)}).do(function(n){}),t=u.Observable.fromEvent(document,"mouseup").do(function(n){return n.preventDefault()}),e=u.Observable.fromEvent(document,"mousemove").do(function(n){return n.stopPropagation()}),i=u.Observable.fromEvent(document,"scroll").startWith({}),o=u.Observable.combineLatest(e,i),a=l.mergeMap(function(l){return o.map(function(n){var l=n[0];n[1];return l}).do(function(l){n.cable.movePatch(l),n.patches.resetSelection();var t=n.patches.locateTarget(l);t&&(t.isSelected=!0)}).skipUntil(t.take(1).do(function(){return n.cable.endPatch()})).take(1)});this.draggable=a.subscribe(function(l){var t=n.patches.locateTarget(l);t&&n.patches.notConnected(n,t)&&(n.patches.connect(n,t),n.signal.connect(t.signal)),n.patches.resetSelection()})},n.prototype.ngOnDestroy=function(){var n=this.patches.removeConnectionsFor(this);this.signal.disconnect(n.signal),this.draggable.unsubscribe(),this.menu.unsubscribe()},n.ctorParameters=function(){return[{type:v.a}]},n}()},Timj:function(n,l,t){"use strict";function e(n){return o._15(0,[(n()(),o._16(0,null,null,14,"div",[["class","ping-pong-left"]],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-sink",[],null,null,null,a.a,a.b)),o._17(2187264,null,0,r.a,[c.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-sink",[],null,null,null,a.a,a.b)),o._17(2187264,null,0,r.a,[c.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-source",[],null,null,null,s.a,s.b)),o._17(2187264,null,0,_.a,[c.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),o._18(null,["\n"])),(n()(),o._18(null,["\n\n\n"])),(n()(),o._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,p.a,p.b)),o._17(2220032,null,0,f.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),o._18(null,["\n\n"])),(n()(),o._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,p.a,p.b)),o._17(2220032,null,0,f.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),o._18(null,["\n\n"]))],function(n,l){var t=l.component;n(l,3,0,"in","pingpong",t.delay),n(l,8,0,"time","pingpong",t.delay.delayTime),n(l,13,0,"out",t.delay),n(l,17,0,"feedback",t.delay.feedback,0,1),n(l,20,0,"wet/dry",t.delay.wet,0,1)},null)}function u(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-pingpong",[],null,null,null,e,m)),o._17(57344,null,0,g.a,[],null,null)],function(n,l){n(l,1,0)},null)}var i=t("+lQW"),o=t("3j3K"),a=t("epGi"),r=t("/Nrj"),c=t("fH5F"),s=t("FfTB"),_=t("Tg2U"),p=t("Txyh"),f=t("PP/s"),g=t("oCiJ");t.d(l,"b",function(){return m}),l.a=e;var h=[i.a],m=o._14({encapsulation:0,styles:h,data:{}});o._20("app-pingpong",g.a,u,{},{},[])},Txyh:function(n,l,t){"use strict";function e(n){return a._15(0,[(n()(),a._16(0,null,null,1,":svg:text",[["class","slider-text"],["fill","lightgrey"],["transform","rotate(90)"],["y","-8"]],null,null,null,null,null)),(n()(),a._18(null,["",""]))],null,function(n,l){n(l,1,0,l.component.name)})}function u(n){return a._15(0,[a._21(201326592,1,{slider:0}),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n\n"])),(n()(),a._16(0,null,null,11,"div",[["class","slider"]],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,[[1,0],["slider",1]],null,8,":svg:svg",[["viewBox","0 0 32 128"]],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._19(8388608,null,null,1,null,e)),a._17(8192,null,0,r.i,[a._0,a._1],{ngIf:[0,"ngIf"]},null),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,0,":svg:path",[["d","M 16 0 v 128"],["fill","none"],["stroke","grey"]],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,0,":svg:circle",[["cx","16"],["fill","currentColor"],["r","4"]],[[1,"cy",0]],null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._18(null,["\n"])),(n()(),a._18(null,["\n"]))],function(n,l){n(l,8,0,!!l.component.name)},function(n,l){n(l,12,0,l.component.cursorPt.y)})}function i(n){return a._15(0,[(n()(),a._16(0,null,null,1,"app-slider",[],null,null,null,u,_)),a._17(2220032,null,0,c.a,[],null,null)],function(n,l){n(l,1,0)},null)}var o=t("VQJN"),a=t("3j3K"),r=t("2Je8"),c=t("PP/s");t.d(l,"b",function(){return _}),l.a=u;var s=[o.a],_=a._14({encapsulation:0,styles:s,data:{}});a._20("app-slider",c.a,i,{name:"name",signal:"signal",min:"min",max:"max",defaultValue:"defaultValue"},{change:"change"},[])},Ty9X:function(n,l,t){"use strict";var e=t("3j3K");t.d(l,"a",function(){return u});var u=function(){function n(){this.closed=new e.R}return n.prototype.ngOnInit=function(){},n.prototype.close=function(){this.closed.emit()},n.ctorParameters=function(){return[]},n}()},U6uy:function(n,l,t){"use strict";var e=t("rCTf"),u=(t.n(e),t("HwIK")),i=(t.n(u),t("M4fF"));t.n(i);t.d(l,"a",function(){return o});var o=function(){function n(){var n=this;this.fft=new Tone.Analyser("fft",256),this.wave=new Tone.Analyser("waveform",256),this.fft.connect(this.wave),this.anim=e.Observable.of(0,u.animationFrame).repeat().subscribe(function(){n.bands=n.fft.analyse(),n.wavePoints=n.wave.analyse()})}return Object.defineProperty(n.prototype,"paths",{get:function(){return i.map(this.bands,function(n,l){return"M "+l+" 128 L "+l+" "+(128-n/2)})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"w",{get:function(){return"M 0 64 "+i.map(this.wavePoints,function(n,l){return"L "+l+" "+(128-n/2)}).join(" ")},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.ngOnDestroy=function(){this.anim.unsubscribe()},n.ctorParameters=function(){return[]},n}()},UJZv:function(n,l,t){"use strict";function e(n){return o._15(0,[(n()(),o._16(0,null,null,12,"div",[["class","instr"]],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,2,"h1",[["class","instr-title"]],null,null,null,null,null)),(n()(),o._18(null,["","\n "])),(n()(),o._18(null,["\n "])),(n()(),o._18(null,["\n\n "])),(n()(),o._16(0,null,null,5,"div",[["class","instr-controls"]],null,null,null,null,null)),(n()(),o._18(null,["\n "])),o._22(null,0),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,0,"br",[["clear","both"]],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._18(null,["\n"])),(n()(),o._18(null,["\n"]))],null,function(n,l){n(l,3,0,l.component.name)})}function u(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-frame",[],null,null,null,e,c)),o._17(57344,null,0,a.a,[],null,null)],function(n,l){n(l,1,0)},null)}var i=t("6LEp"),o=t("3j3K"),a=t("Ty9X");t.d(l,"b",function(){return c}),l.a=e;var r=[i.a],c=o._14({encapsulation:0,styles:r,data:{}});o._20("app-frame",a.a,u,{name:"name"},{closed:"closed"},["*"])},UeSE:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".noise-type-toggle[_ngcontent-%COMP%]{width:32px;display:inline-block}"]},VQJN:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".slider[_ngcontent-%COMP%]{width:32px;height:128px;display:inline-block;cursor:pointer}.slider-text[_ngcontent-%COMP%]{font-size:8px;text-transform:uppercase;font-weight:700}"]},"W+DQ":function(n,l,t){"use strict";var e=t("3j3K");t.d(l,"a",function(){return u});var u=function(){function n(n){this.zone=n,this.isPlaying=!1,this.currentPeriod=3,this.currentLength=2,this.noteLengths=["64n","32n","16n","8n","4n"],this.pulse=!1,this.gate=new Tone.Envelope({attack:.01,decay:0,sustain:1,release:.01}),this.configureSequence()}return n.prototype.configureSequence=function(){var n=this,l=!1;this.loop&&(l="started"===this.loop.state,this.loop.dispose()),this.loop=new Tone.Loop(function(l){n.gate.triggerAttackRelease(n.noteLengths[n.currentLength],l),Tone.Draw.schedule(function(){n.zone.run(function(){return n.pulse=!n.pulse})},l)},this.noteLengths[this.currentPeriod]),l&&(this.pulse=!1,this.loop.start("@4n"))},n.prototype.setPeriod=function(n){this.currentPeriod=n,this.configureSequence()},n.prototype.setLength=function(n){this.currentLength=n,this.configureSequence()},n.prototype.ngOnInit=function(){},n.prototype.ngOnDestroy=function(){this.loop&&this.loop.dispose()},n.prototype.start=function(){this.loop.start("@4n"),this.pulse=!1,this.isPlaying=!0},n.prototype.stop=function(){this.loop.stop(),this.pulse=!1,this.isPlaying=!1},n.ctorParameters=function(){return[{type:e.h}]},n}()},W6ND:function(n,l,t){"use strict";function e(n){return c._15(0,[(n()(),c._16(0,null,null,0,":svg:path",[["fill","none"],["stroke","lightgrey"]],[[1,"d",0]],null,null,null,null))],null,function(n,l){n(l,0,0,l.context.$implicit)})}function u(n){return c._15(0,[(n()(),c._16(0,null,null,4,":svg:g",[],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._19(8388608,null,null,1,null,e)),c._17(401408,null,0,s.h,[c._0,c._1,c.t],{ngForOf:[0,"ngForOf"]},null),(n()(),c._18(null,["\n "]))],function(n,l){n(l,3,0,l.component.paths)},null)}function i(n){return c._15(0,[(n()(),c._16(0,null,null,3,":svg:g",[],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,0,":svg:path",[["fill","none"],["stroke","black"],["stroke-opacity","0.75"]],[[1,"d",0]],null,null,null,null)),(n()(),c._18(null,["\n "]))],null,function(n,l){n(l,2,0,l.component.w)})}function o(n){return c._15(0,[(n()(),c._16(0,null,null,7,":svg:svg",[["class","spectrum"]],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._19(8388608,null,null,1,null,u)),c._17(8192,null,0,s.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,["\n "])),(n()(),c._19(8388608,null,null,1,null,i)),c._17(8192,null,0,s.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,["\n"])),(n()(),c._18(null,["\n"])),(n()(),c._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),c._18(null,["\n"])),(n()(),c._16(0,null,null,7,"div",[["class","analyser-right"]],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-sink",[],null,null,null,_.a,_.b)),c._17(2187264,null,0,p.a,[f.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-source",[],null,null,null,g.a,g.b)),c._17(2187264,null,0,h.a,[f.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),c._18(null,["\n"])),(n()(),c._18(null,["\n"]))],function(n,l){var t=l.component;n(l,3,0,!!t.bands),n(l,6,0,!!t.wavePoints),n(l,14,0,"in","analyser",t.fft),n(l,17,0,"out",t.wave)},null)}function a(n){return c._15(0,[(n()(),c._16(0,null,null,1,"app-analyser",[],null,null,null,o,v)),c._17(122880,null,0,m.a,[],null,null)],function(n,l){n(l,1,0)},null)}var r=t("Spwa"),c=t("3j3K"),s=t("2Je8"),_=t("epGi"),p=t("/Nrj"),f=t("fH5F"),g=t("FfTB"),h=t("Tg2U"),m=t("U6uy");t.d(l,"b",function(){return v}),l.a=o;var d=[r.a],v=c._14({encapsulation:0,styles:d,data:{}});c._20("app-analyser",m.a,a,{},{},[])},XF4d:function(n,l,t){"use strict";function e(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,a.a,a.b)),o._17(2220032,null,0,r.a,[],{signal:[0,"signal"],min:[1,"min"],max:[2,"max"]},null),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-source",[],null,null,null,c.a,c.b)),o._17(2187264,null,0,s.a,[_.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),o._18(null,["\n\n"]))],function(n,l){var t=l.component;n(l,1,0,t.signal,0,1),n(l,6,0,"out",t.signal)},null)}function u(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-signal",[],null,null,null,e,g)),o._17(57344,null,0,p.a,[],null,null)],function(n,l){n(l,1,0)},null)}var i=t("3DQ6"),o=t("3j3K"),a=t("Txyh"),r=t("PP/s"),c=t("FfTB"),s=t("Tg2U"),_=t("fH5F"),p=t("3kx/");t.d(l,"b",function(){return g}),l.a=e;var f=[i.a],g=o._14({encapsulation:0,styles:f,data:{}});o._20("app-signal",p.a,u,{},{},[])},YWx4:function(n,l,t){"use strict";var e=t("3j3K"),u=t("fH5F");t.d(l,"a",function(){return i});var i=function(){function n(n,l){this.zone=n,this.patches=l,this.showPatches=!0,this.modules=[],Tone.Transport.start(),this.master=Tone.Master,document.oncontextmenu=function(){return!1}}return n.prototype.add=function(n){var l=this;this.showPatches=!1,this.modules.push(n),setTimeout(function(){l.zone.run(function(){return l.showPatches=!0})},10)},n.prototype.remove=function(n){this.modules.splice(n,1)},n.ctorParameters=function(){return[{type:e.h},{type:u.a}]},n}()},Z42L:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".patch-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%}"]},abao:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".seq-left[_ngcontent-%COMP%], .seq-signals[_ngcontent-%COMP%]{float:left}.seq-right[_ngcontent-%COMP%]{float:right}.seq-btn[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;width:32px;height:32px;font-size:8px;font-weight:700;background-color:#f5f5f5;line-height:32px;text-align:center;margin-bottom:5px}.seq-btn-stop[_ngcontent-%COMP%]{background-color:#add8e6}.seq-btn-pulse[_ngcontent-%COMP%]{background-color:red}.mem-right[_ngcontent-%COMP%]{float:right}.beat-box[_ngcontent-%COMP%]{width:128px;height:128px}"]},aeoC:function(n,l,t){"use strict";function e(n){return a._15(0,[(n()(),a._16(0,null,null,9,"div",[["class","mixer-channel"]],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,r.a,r.b)),a._17(2220032,null,0,c.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,1,"app-sink",[],null,null,null,s.a,s.b)),a._17(2187264,null,0,_.a,[p.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),a._18(null,["\n "]))],function(n,l){n(l,3,0,"volume",l.context.$implicit.gain,0,1),n(l,8,0,"ch"+(l.context.index+1),"master",l.context.$implicit)},null)}function u(n){return a._15(0,[(n()(),a._18(null,["\n\n"])),(n()(),a._16(0,null,null,9,"div",[["class","master-left"]],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,r.a,r.b)),a._17(2220032,null,0,c.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,1,"span",[["class","tag"]],null,null,null,null,null)),(n()(),a._18(null,["",""])),(n()(),a._18(null,["\n"])),(n()(),a._18(null,["\n\n "])),(n()(),a._19(8388608,null,null,1,null,e)),a._17(401408,null,0,f.h,[a._0,a._1,a.t],{ngForOf:[0,"ngForOf"]},null),(n()(),a._18(null,["\n\n"]))],function(n,l){var t=l.component;n(l,4,0,"bpm",t.bpm,50,200),n(l,13,0,t.channels)},function(n,l){var t=l.component;n(l,9,0,null==t.beats?null:t.beats.toFixed(0))})}function i(n){return a._15(0,[(n()(),a._16(0,null,null,1,"app-mixer",[],null,null,null,u,m)),a._17(122880,null,0,g.a,[],null,null)],function(n,l){n(l,1,0)},null)}var o=t("b4aw"),a=t("3j3K"),r=t("Txyh"),c=t("PP/s"),s=t("epGi"),_=t("/Nrj"),p=t("fH5F"),f=t("2Je8"),g=t("RSYd");t.d(l,"b",function(){return m}),l.a=u;var h=[o.a],m=a._14({encapsulation:0,styles:h,data:{}});a._20("app-mixer",g.a,i,{},{},[])},b4aw:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".master-left[_ngcontent-%COMP%], .mixer-channel[_ngcontent-%COMP%]{float:left}.tag[_ngcontent-%COMP%]{display:inline-block;padding:5px;text-align:right;width:24px;margin:0 0 5px;background-color:#f5f5f5;font-size:8px}.spectrum[_ngcontent-%COMP%]{width:256px;height:512px}"]},b9kn:function(n,l,t){"use strict";var e=t("M4fF");t.n(e);t.d(l,"a",function(){return u});var u=function(){function n(){var n=this;this.activeRange=1,this.rangeLabels=["1ms","1s","5s","10s"],this.ranges=[{min:0,max:.001},{min:0,max:1},{min:0,max:5},{min:0,max:10}],this.latch=!1,this.adsr=new Tone.Envelope,this.inv=new Tone.Negate,this.adsr.connect(this.inv),this.input=Tone.context.createScriptProcessor(2048,1,1),this.trigger=Tone.context.createScriptProcessor(2048,1,1);var l=Tone.context.createGain();l.gain.value=0,l.connect(Tone.context.destination),this.input.connect(l),this.trigger.connect(l),this.input.onaudioprocess=function(l){var u=l.inputBuffer.getChannelData(0),i=l.inputBuffer.duration/l.inputBuffer.length;t.i(e.map)(u,function(t,e){var u=l.playbackTime+e*i;!n.latch&&t>=.5?(n.adsr.triggerAttack(u),n.latch=!0):n.latch&&t<.5&&(n.adsr.triggerRelease(u),n.latch=!1)})},this.trigger.onaudioprocess=function(l){var u=l.inputBuffer.getChannelData(0),i=l.inputBuffer.duration/l.inputBuffer.length;t.i(e.map)(u,function(t,e){var u=l.playbackTime+e*i;!n.latch&&t>=.5?(n.adsr.triggerAttack(u),n.latch=!0):n.latch&&t<.5&&(n.latch=!1)})}}return n.prototype.ngOnInit=function(){},n.prototype.setRange=function(n){this.activeRange=n},n.ctorParameters=function(){return[]},n}()},clwv:function(n,l,t){"use strict";function e(n){return o._15(0,[(n()(),o._18(null,["\n\n "])),(n()(),o._16(0,null,null,1,"app-toggles",[["class","noise-type-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setType(t)&&e}return e},r.a,r.b)),o._17(24576,null,0,c.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-source",[],null,null,null,s.a,s.b)),o._17(2187264,null,0,_.a,[p.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),o._18(null,["\n\n"]))],function(n,l){var t=l.component;n(l,2,0,"type",t.currentType,t.types),n(l,7,0,"out",t.noise)},null)}function u(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-noise",[],null,null,null,e,g)),o._17(57344,null,0,a.a,[],null,null)],function(n,l){n(l,1,0)},null)}var i=t("UeSE"),o=t("3j3K"),a=t("1GF8"),r=t("l35h"),c=t("xMaR"),s=t("FfTB"),_=t("Tg2U"),p=t("fH5F");t.d(l,"b",function(){return g}),l.a=e;var f=[i.a],g=o._14({encapsulation:0,styles:f,data:{}});o._20("app-noise",a.a,u,{},{},[])},epGi:function(n,l,t){"use strict";function e(n){return a._15(0,[(n()(),a._16(0,null,null,1,":svg:text",[["fill","gray"],["font-family","monospace"],["font-size","24"],["text-anchor","middle"],["x","50"],["y","56"]],null,null,null,null,null)),(n()(),a._18(null,["\n ","\n "]))],null,function(n,l){n(l,1,0,l.component.name)})}function u(n){return a._15(0,[a._21(201326592,1,{socket:0}),(n()(),a._16(0,[[1,0],["socket",1]],null,9,"div",[["class","socket"]],null,null,null,null,null)),(n()(),a._18(null,["\n "])),(n()(),a._16(0,null,null,6,":svg:svg",[["viewBox","0 0 100 100"]],null,null,null,null,null)),(n()(),a._18(null,["\n\n "])),(n()(),a._16(0,null,null,0,":svg:rect",[["fill","none"],["height","90"],["stroke-width","5"],["width","90"],["x","5"],["y","5"]],[[1,"stroke",0]],null,null,null,null)),(n()(),a._18(null,["\n\n "])),(n()(),a._19(8388608,null,null,1,null,e)),a._17(8192,null,0,r.i,[a._0,a._1],{ngIf:[0,"ngIf"]},null),(n()(),a._18(null,["\n\n "])),(n()(),a._18(null,["\n"])),(n()(),a._18(null,["\n"]))],function(n,l){n(l,8,0,!!l.component.name)},function(n,l){n(l,5,0,l.component.isSelected?"red":"grey")})}function i(n){return a._15(0,[(n()(),a._16(0,null,null,1,"app-sink",[],null,null,null,u,p)),a._17(2187264,null,0,c.a,[s.a],null,null)],null,null)}var o=t("AjrG"),a=t("3j3K"),r=t("2Je8"),c=t("/Nrj"),s=t("fH5F");t.d(l,"b",function(){return p}),l.a=u;var _=[o.a],p=a._14({encapsulation:0,styles:_,data:{}});a._20("app-sink",c.a,i,{name:"name",parent:"parent",signal:"signal"},{},[])},fH5F:function(n,l,t){"use strict";var e=t("M4fF");t.n(e);t.d(l,"a",function(){return u});var u=function(){function n(){this.sockets=[],this.connections=[]}return n.prototype.connect=function(n,l){this.connections.push({source:n,sink:l})},n.prototype.notConnected=function(n,l){return e.isUndefined(e.find(this.connections,function(t){var e=t.source,u=t.sink;return e===n&&u===l}))},n.prototype.getConnectionsFor=function(n){return e.filter(this.connections,function(l){return l.source===n})},n.prototype.removeConnection=function(n,l){var t=this.getConnectionsFor(n);return e.remove(this.connections,function(e){var u=e.source,i=e.sink;return u===n&&i===t[l].sink})},n.prototype.registerTarget=function(n,l){var t=n.nativeElement.offsetLeft,e=n.nativeElement.offsetTop,u=t+n.nativeElement.offsetWidth,i=e+n.nativeElement.offsetHeight;this.sockets.push({x1:t,y1:e,x2:u,y2:i,sink:l})},n.prototype.resetSelection=function(){e.map(this.sockets,function(n){return n.sink.isSelected=!1})},n.prototype.deregisterTarget=function(n){this.sockets=e.filter(this.sockets,function(l){return l!==n})},n.prototype.removeConnectionsFor=function(n){return e.remove(this.connections,function(l){var t=l.source,e=l.target;return t===n||e===n})},n.prototype.locateTarget=function(n){var l=n.clientX+window.scrollX,t=n.clientY+window.scrollY,u=e.find(this.sockets,function(n){return l<=n.x2&&l>=n.x1&&t<=n.y2&&t>=n.y1});return e.get(u,"sink",!1)},n}()},ijXj:function(n,l,t){"use strict";function e(n){return r._15(0,[(n()(),r._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,c.a,c.b)),r._17(2220032,null,0,s.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null)],function(n,l){n(l,1,0,"frequency",l.component.lfo.frequency,.1,10)},null)}function u(n){return r._15(0,[(n()(),r._16(0,null,null,1,"app-toggles",[["class","lfo-freq-notes-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setLength(t)&&e}return e},_.a,_.b)),r._17(24576,null,0,p.a,[],{activeOption:[0,"activeOption"],options:[1,"options"]},{toggle:"toggle"})],function(n,l){var t=l.component;n(l,1,0,t.currentLength,t.noteLengths)},null)}function i(n){return r._15(0,[(n()(),r._18(null,["\n"])),(n()(),r._16(0,null,null,1,"app-toggles",[["class","lfo-kind-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setKind(t)&&e}return e},_.a,_.b)),r._17(24576,null,0,p.a,[],{activeOption:[0,"activeOption"],options:[1,"options"]},{toggle:"toggle"}),(n()(),r._18(null,["\n\n"])),(n()(),r._19(8388608,null,null,1,null,e)),r._17(8192,null,0,g.i,[r._0,r._1],{ngIf:[0,"ngIf"]},null),(n()(),r._18(null,["\n\n"])),(n()(),r._19(8388608,null,null,1,null,u)),r._17(8192,null,0,g.i,[r._0,r._1],{ngIf:[0,"ngIf"]},null),(n()(),r._18(null,["\n\n\n"])),(n()(),r._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,c.a,c.b)),r._17(2220032,null,0,s.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),r._18(null,["\n\n"])),(n()(),r._16(0,null,null,1,"app-toggles",[["class","lfo-waveform-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setType(t)&&e}return e},_.a,_.b)),r._17(24576,null,0,p.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),r._18(null,["\n\n"])),(n()(),r._16(0,null,null,9,"div",[["class","lfo-right"]],null,null,null,null,null)),(n()(),r._18(null,["\n "])),(n()(),r._16(0,null,null,1,"app-toggles",[["class","lfo-range-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setRange(t)&&e}return e},_.a,_.b)),r._17(24576,null,0,p.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),r._18(null,["\n\n "])),(n()(),r._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),r._18(null,["\n "])),(n()(),r._16(0,null,null,1,"app-source",[],null,null,null,h.a,h.b)),r._17(2187264,null,0,m.a,[d.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),r._18(null,["\n"])),(n()(),r._18(null,["\n"]))],function(n,l){var t=l.component;n(l,2,0,t.currentKind,t.kinds),n(l,5,0,0===t.currentKind),n(l,8,0,1===t.currentKind),n(l,11,0,"depth",t.lfo.amplitude,0,2),n(l,14,0,"waveform",t.currentType,t.types),n(l,19,0,"range",t.activeRange,t.rangeLabels),n(l,24,0,"out",t.lfo)},null)}function o(n){return r._15(0,[(n()(),r._16(0,null,null,1,"app-lfo",[],null,null,null,i,y)),r._17(57344,null,0,f.a,[],null,null)],function(n,l){n(l,1,0)},null)}var a=t("NQuz"),r=t("3j3K"),c=t("Txyh"),s=t("PP/s"),_=t("l35h"),p=t("xMaR"),f=t("Qwg6"),g=t("2Je8"),h=t("FfTB"),m=t("Tg2U"),d=t("fH5F");t.d(l,"b",function(){return y}),l.a=i;var v=[a.a],y=r._14({encapsulation:0,styles:v,data:{}});r._20("app-lfo",f.a,o,{},{},[])},j78t:function(n,l,t){"use strict";function e(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,a.a,a.b)),o._17(2220032,null,0,r.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,a.a,a.b)),o._17(2220032,null,0,r.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,a.a,a.b)),o._17(2220032,null,0,r.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,a.a,a.b)),o._17(2220032,null,0,r.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,a.a,a.b)),o._17(2220032,null,0,r.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),o._18(null,["\n\n"])),(n()(),o._16(0,null,null,11,"div",[["class","comp-right"]],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"span",[["class","comp-reduction"]],null,null,null,null,null)),(n()(),o._18(null,["",""])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-sink",[],null,null,null,c.a,c.b)),o._17(2187264,null,0,s.a,[_.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-source",[],null,null,null,p.a,p.b)),o._17(2187264,null,0,f.a,[_.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),o._18(null,["\n"])),(n()(),o._18(null,["\n"]))],function(n,l){var t=l.component;n(l,1,0,"threshold",t.comp.threshold,-60,0),n(l,4,0,"attack",t.comp.attack,0,1),n(l,7,0,"release",t.comp.release,0,1),n(l,10,0,"knee",t.comp.knee,0,60),n(l,13,0,"ratio",t.comp.ratio,0,20),n(l,22,0,"in","comp",t.comp),n(l,25,0,"out",t.comp)},function(n,l){n(l,18,0,l.component.reduction.toFixed(2))})}function u(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-compressor",[],null,null,null,e,m)),o._17(90112,null,0,g.a,[],null,null)],null,null)}var i=t("JaQH"),o=t("3j3K"),a=t("Txyh"),r=t("PP/s"),c=t("epGi"),s=t("/Nrj"),_=t("fH5F"),p=t("FfTB"),f=t("Tg2U"),g=t("t6/e");t.d(l,"b",function(){return m}),l.a=e;var h=[i.a],m=o._14({encapsulation:0,styles:h,data:{}});o._20("app-compressor",g.a,u,{},{},[])},j7Og:function(n,l,t){"use strict";var e=t("M4fF");t.n(e);t.d(l,"a",function(){return u});var u=function(){function n(){var n=this;this.latch=!1,this.count=0,this.divisor=1,this.rangeLabels=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.input=Tone.context.createScriptProcessor(2048,1,1),this.input.onaudioprocess=function(l){var u=l.inputBuffer.getChannelData(0),i=l.outputBuffer.getChannelData(0);l.inputBuffer.duration,l.inputBuffer.length;t.i(e.map)(u,function(l,t){!n.latch&&l>=.5?(n.count++,n.latch=!0):n.latch&&l<.5&&(n.latch=!1),i[t]=n.count%n.rangeLabels[n.divisor]==0?1:0})}}return n.prototype.ngOnInit=function(){},n.prototype.setRange=function(n){this.divisor=n},n.ctorParameters=function(){return[]},n}()},kZql:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e={production:!0}},kh17:function(n,l,t){"use strict";function e(n){return o._15(0,[(n()(),o._16(0,null,null,19,"div",[["class","filter-left"]],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-sink",[],null,null,null,a.a,a.b)),o._17(2187264,null,0,r.a,[c.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-sink",[],null,null,null,a.a,a.b)),o._17(2187264,null,0,r.a,[c.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-source",[],null,null,null,s.a,s.b)),o._17(2187264,null,0,_.a,[c.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-toggles",[["class","filter-rolloff-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setRollOff(t)&&e}return e},f.a,f.b)),o._17(24576,null,0,g.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),o._18(null,["\n"])),(n()(),o._18(null,["\n\n\n"])),(n()(),o._16(0,null,null,1,"app-toggles",[["class","filter-type-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setType(t)&&e}return e},f.a,f.b)),o._17(24576,null,0,g.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),o._18(null,["\n\n\n"])),(n()(),o._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,h.a,h.b)),o._17(2220032,null,0,m.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),o._18(null,["\n\n"]))],function(n,l){var t=l.component;n(l,3,0,"in","filter",t.filter),n(l,8,0,"freq","filter",t.filter.frequency),n(l,13,0,"out",t.filter),n(l,18,0,"rolloff",t.activeRollOff,t.rollOffs),n(l,22,0,"type",t.activeFilterType,t.filterTypes),n(l,25,0,"Q",t.filter.Q,0,10)},null)}function u(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-filter",[],null,null,null,e,v)),o._17(57344,null,0,p.a,[],null,null)],function(n,l){n(l,1,0)},null)}var i=t("5XgQ"),o=t("3j3K"),a=t("epGi"),r=t("/Nrj"),c=t("fH5F"),s=t("FfTB"),_=t("Tg2U"),p=t("0cA2"),f=t("l35h"),g=t("xMaR"),h=t("Txyh"),m=t("PP/s");t.d(l,"b",function(){return v}),l.a=e;var d=[i.a],v=o._14({encapsulation:0,styles:d,data:{}});o._20("app-filter",p.a,u,{},{},[])},kke6:function(n,l,t){"use strict";var e=t("3j3K"),u=t("Iksp"),i=t("2Je8"),o=t("Qbdm"),a=t("NVOs"),r=t("Fzro"),c=t("fH5F"),s=t("1A80");t.d(l,"a",function(){return f});var _=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var t in l)l.hasOwnProperty(t)&&(n[t]=l[t])};return function(l,t){function e(){this.constructor=l}n(l,t),l.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}}(),p=function(n){function l(l){return n.call(this,l,[s.a],[s.a])||this}return _(l,n),Object.defineProperty(l.prototype,"_LOCALE_ID_12",{get:function(){return null==this.__LOCALE_ID_12&&(this.__LOCALE_ID_12=e.b(this.parent.get(e.c,null))),this.__LOCALE_ID_12},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_NgLocalization_13",{get:function(){return null==this.__NgLocalization_13&&(this.__NgLocalization_13=new i.a(this._LOCALE_ID_12)),this.__NgLocalization_13},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_Compiler_14",{get:function(){return null==this.__Compiler_14&&(this.__Compiler_14=new e.d),this.__Compiler_14},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_APP_ID_15",{get:function(){return null==this.__APP_ID_15&&(this.__APP_ID_15=e.e()),this.__APP_ID_15},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_IterableDiffers_16",{get:function(){return null==this.__IterableDiffers_16&&(this.__IterableDiffers_16=e.f()),this.__IterableDiffers_16},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_KeyValueDiffers_17",{get:function(){return null==this.__KeyValueDiffers_17&&(this.__KeyValueDiffers_17=e.g()),this.__KeyValueDiffers_17},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_DomSanitizer_18",{get:function(){return null==this.__DomSanitizer_18&&(this.__DomSanitizer_18=new o.b(this.parent.get(o.c))),this.__DomSanitizer_18},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_Sanitizer_19",{get:function(){return null==this.__Sanitizer_19&&(this.__Sanitizer_19=this._DomSanitizer_18),this.__Sanitizer_19},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_HAMMER_GESTURE_CONFIG_20",{get:function(){return null==this.__HAMMER_GESTURE_CONFIG_20&&(this.__HAMMER_GESTURE_CONFIG_20=new o.d),this.__HAMMER_GESTURE_CONFIG_20},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_EVENT_MANAGER_PLUGINS_21",{get:function(){return null==this.__EVENT_MANAGER_PLUGINS_21&&(this.__EVENT_MANAGER_PLUGINS_21=[new o.e(this.parent.get(o.c)),new o.f(this.parent.get(o.c)),new o.g(this.parent.get(o.c),this._HAMMER_GESTURE_CONFIG_20)]),this.__EVENT_MANAGER_PLUGINS_21},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_EventManager_22",{get:function(){return null==this.__EventManager_22&&(this.__EventManager_22=new o.h(this._EVENT_MANAGER_PLUGINS_21,this.parent.get(e.h))),this.__EventManager_22},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_ɵDomSharedStylesHost_23",{get:function(){return null==this.__ɵDomSharedStylesHost_23&&(this.__ɵDomSharedStylesHost_23=new o.i(this.parent.get(o.c))),this.__ɵDomSharedStylesHost_23},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_ɵDomRendererFactory2_24",{get:function(){return null==this.__ɵDomRendererFactory2_24&&(this.__ɵDomRendererFactory2_24=new o.j(this._EventManager_22,this._ɵDomSharedStylesHost_23)),this.__ɵDomRendererFactory2_24},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_RendererFactory2_25",{get:function(){return null==this.__RendererFactory2_25&&(this.__RendererFactory2_25=this._ɵDomRendererFactory2_24),this.__RendererFactory2_25},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_ɵSharedStylesHost_26",{get:function(){return null==this.__ɵSharedStylesHost_26&&(this.__ɵSharedStylesHost_26=this._ɵDomSharedStylesHost_23),this.__ɵSharedStylesHost_26},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_Testability_27",{get:function(){return null==this.__Testability_27&&(this.__Testability_27=new e.i(this.parent.get(e.h))),this.__Testability_27},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_Meta_28",{get:function(){return null==this.__Meta_28&&(this.__Meta_28=new o.k(this.parent.get(o.c))),this.__Meta_28},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_Title_29",{get:function(){return null==this.__Title_29&&(this.__Title_29=new o.l(this.parent.get(o.c))),this.__Title_29},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_ɵi_30",{get:function(){return null==this.__ɵi_30&&(this.__ɵi_30=new a.a),this.__ɵi_30},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_BrowserXhr_31",{get:function(){return null==this.__BrowserXhr_31&&(this.__BrowserXhr_31=new r.a),this.__BrowserXhr_31},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_ResponseOptions_32",{get:function(){return null==this.__ResponseOptions_32&&(this.__ResponseOptions_32=new r.b),this.__ResponseOptions_32},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_XSRFStrategy_33",{get:function(){return null==this.__XSRFStrategy_33&&(this.__XSRFStrategy_33=r.c()),this.__XSRFStrategy_33},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_XHRBackend_34",{get:function(){return null==this.__XHRBackend_34&&(this.__XHRBackend_34=new r.d(this._BrowserXhr_31,this._ResponseOptions_32,this._XSRFStrategy_33)),this.__XHRBackend_34},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_RequestOptions_35",{get:function(){return null==this.__RequestOptions_35&&(this.__RequestOptions_35=new r.e),this.__RequestOptions_35},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_Http_36",{get:function(){return null==this.__Http_36&&(this.__Http_36=r.f(this._XHRBackend_34,this._RequestOptions_35)),this.__Http_36},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"_PatchesService_37",{get:function(){return null==this.__PatchesService_37&&(this.__PatchesService_37=new c.a),this.__PatchesService_37},enumerable:!0,configurable:!0}),l.prototype.createInternal=function(){return this._CommonModule_0=new i.b,this._ErrorHandler_1=o.m(),this._APP_INITIALIZER_2=[e.j,o.n(this.parent.get(o.o,null),this.parent.get(e.k,null))],this._ApplicationInitStatus_3=new e.l(this._APP_INITIALIZER_2),this._ɵf_4=new e.m(this.parent.get(e.h),this.parent.get(e.n),this,this._ErrorHandler_1,this.componentFactoryResolver,this._ApplicationInitStatus_3),this._ApplicationRef_5=this._ɵf_4,this._ApplicationModule_6=new e.o(this._ApplicationRef_5),this._BrowserModule_7=new o.p(this.parent.get(o.p,null)),this._ɵba_8=new a.b,this._FormsModule_9=new a.c,this._HttpModule_10=new r.g,this._AppModule_11=new u.a,this._AppModule_11},l.prototype.getInternal=function(n,l){return n===i.b?this._CommonModule_0:n===e.p?this._ErrorHandler_1:n===e.q?this._APP_INITIALIZER_2:n===e.l?this._ApplicationInitStatus_3:n===e.m?this._ɵf_4:n===e.r?this._ApplicationRef_5:n===e.o?this._ApplicationModule_6:n===o.p?this._BrowserModule_7:n===a.b?this._ɵba_8:n===a.c?this._FormsModule_9:n===r.g?this._HttpModule_10:n===u.a?this._AppModule_11:n===e.c?this._LOCALE_ID_12:n===i.c?this._NgLocalization_13:n===e.d?this._Compiler_14:n===e.s?this._APP_ID_15:n===e.t?this._IterableDiffers_16:n===e.u?this._KeyValueDiffers_17:n===o.q?this._DomSanitizer_18:n===e.v?this._Sanitizer_19:n===o.r?this._HAMMER_GESTURE_CONFIG_20:n===o.s?this._EVENT_MANAGER_PLUGINS_21:n===o.h?this._EventManager_22:n===o.i?this._ɵDomSharedStylesHost_23:n===o.j?this._ɵDomRendererFactory2_24:n===e.w?this._RendererFactory2_25:n===o.t?this._ɵSharedStylesHost_26:n===e.i?this._Testability_27:n===o.k?this._Meta_28:n===o.l?this._Title_29:n===a.a?this._ɵi_30:n===r.a?this._BrowserXhr_31:n===r.h?this._ResponseOptions_32:n===r.i?this._XSRFStrategy_33:n===r.d?this._XHRBackend_34:n===r.j?this._RequestOptions_35:n===r.k?this._Http_36:n===c.a?this._PatchesService_37:l},l.prototype.destroyInternal=function(){this._ɵf_4.ngOnDestroy(),this.__ɵDomSharedStylesHost_23&&this._ɵDomSharedStylesHost_23.ngOnDestroy()},l}(e.x),f=new e.y(p,u.a)},l0Vc:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=['.add-module-btn[_ngcontent-%COMP%]{cursor:pointer;font-size:8px;font-weight:700;padding:5px;margin:0 5px 5px 0;background:#f5f5f5;text-transform:uppercase;display:inline-block}.add-module-btn[_ngcontent-%COMP%]:before{content:"+ "}']},l35h:function(n,l,t){"use strict";function e(n){return s._15(0,[(n()(),s._16(0,null,null,1,"div",[["class","toggle-label"]],null,null,null,null,null)),(n()(),s._18(null,["",""]))],null,function(n,l){n(l,1,0,l.component.name)})}function u(n){return s._15(0,[(n()(),s._16(0,null,null,1,"a",[],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.pickOption(n.parent.context.index)&&e}return e},null,null)),(n()(),s._18(null,["",""]))],null,function(n,l){n(l,1,0,l.parent.context.$implicit)})}function i(n){return s._15(0,[(n()(),s._16(0,null,null,1,"b",[],null,null,null,null,null)),(n()(),s._18(null,["",""]))],null,function(n,l){n(l,1,0,l.parent.context.$implicit)})}function o(n){return s._15(0,[(n()(),s._16(0,null,null,7,"div",[["class","toggle-option"]],null,null,null,null,null)),(n()(),s._18(null,["\n\n "])),(n()(),s._19(8388608,null,null,1,null,u)),s._17(8192,null,0,_.i,[s._0,s._1],{ngIf:[0,"ngIf"]},null),(n()(),s._18(null,["\n "])),(n()(),s._19(8388608,null,null,1,null,i)),s._17(8192,null,0,_.i,[s._0,s._1],{ngIf:[0,"ngIf"]},null),(n()(),s._18(null,["\n\n "]))],function(n,l){var t=l.component;n(l,3,0,l.context.index!==t.activeOption),n(l,6,0,l.context.index===t.activeOption)},null)}function a(n){return s._15(0,[(n()(),s._16(0,null,null,7,"div",[["class","toggle"]],null,null,null,null,null)),(n()(),s._18(null,["\n "])),(n()(),s._19(8388608,null,null,1,null,e)),s._17(8192,null,0,_.i,[s._0,s._1],{ngIf:[0,"ngIf"]},null),(n()(),s._18(null,["\n\n "])),(n()(),s._19(8388608,null,null,1,null,o)),s._17(401408,null,0,_.h,[s._0,s._1,s.t],{ngForOf:[0,"ngForOf"]},null),(n()(),s._18(null,["\n"])),(n()(),s._18(null,["\n"]))],function(n,l){var t=l.component;n(l,3,0,!!t.name),n(l,6,0,t.options)},null)}function r(n){return s._15(0,[(n()(),s._16(0,null,null,1,"app-toggles",[],null,null,null,a,g)),s._17(24576,null,0,p.a,[],null,null)],null,null)}var c=t("wSO0"),s=t("3j3K"),_=t("2Je8"),p=t("xMaR");t.d(l,"b",function(){return g}),l.a=a;var f=[c.a],g=s._14({encapsulation:0,styles:f,data:{}});s._20("app-toggles",p.a,r,{name:"name",activeOption:"activeOption",options:"options"},{toggle:"toggle"},[])},"ly/L":function(n,l,t){"use strict";var e=t("3j3K"),u=t("M4fF");t.n(u);t.d(l,"a",function(){return i});var i=function(){function n(n){this.zone=n,this.isPlaying=!1,this.currentPeriod=2,this.noteLengths=["64n","32n","16n","8n","4n"],this.pulse=!1,this.activeBox=0,this.box=u.fill(u.range(16),!1),this.coords=[[0,0],[1,0],[2,0],[3,0],[0,1],[1,1],[2,1],[3,1],[0,2],[1,2],[2,2],[3,2],[0,3],[1,3],[2,3],[3,3]],this.synth=new Tone.MembraneSynth,this.pitch=new Tone.Signal(40),this.configureSequence()}return n.prototype.configureSequence=function(){var n=this,l=!1;this.loop&&(l="started"===this.loop.state,this.loop.dispose()),this.loop=new Tone.Sequence(function(l,t){n.box[t]&&n.synth.triggerAttackRelease(n.pitch.value,n.noteLengths[n.currentPeriod],l),Tone.Draw.schedule(function(){n.activeBox=t,n.zone.run(function(){return n.pulse=!n.pulse})},l)},u.range(16),this.noteLengths[this.currentPeriod]),l&&(this.pulse=!1,this.loop.start("@4n"))},n.prototype.setPeriod=function(n){this.currentPeriod=n,this.configureSequence()},n.prototype.ngOnInit=function(){},n.prototype.toggleBox=function(n){this.box[n]=!this.box[n]},Object.defineProperty(n.prototype,"boxes",{get:function(){return u.map(this.coords,function(n){return"M "+32*n[0]+" "+32*n[1]+" h 30 v 30 h -30 v -30"})},enumerable:!0,configurable:!0}),n.prototype.ngOnDestroy=function(){this.loop&&this.loop.dispose()},n.prototype.start=function(){this.loop.start("@4n"),this.pulse=!1,this.isPlaying=!0},n.prototype.stop=function(){this.loop.stop(),this.pulse=!1,this.isPlaying=!1},n.ctorParameters=function(){return[{type:e.h}]},n}()},nStF:function(n,l,t){"use strict";var e=t("M4fF");t.n(e);t.d(l,"a",function(){return u});var u=function(){function n(n){var l=this;this.context=n,this.active=[!0,!0,!0,!0,!0,!0,!0,!0],this.state=0,this.latch=!1,this.nextValue=0,this.values=[new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0)],this.clock=this.context.createScriptProcessor(2048,1,2),this.cv=this.context.createGain(),this.cv.gain.value=1,this.gate=this.context.createGain(),this.gate.gain.value=1;var u=this.context.createChannelSplitter(2);this.clock.connect(u),u.connect(this.cv,0),u.connect(this.gate,1),this.clock.onaudioprocess=function(n){var u=n.inputBuffer.getChannelData(0),i=n.outputBuffer.getChannelData(0),o=n.outputBuffer.getChannelData(1);t.i(e.map)(u,function(n,t){!l.latch&&n>=.5?(l.state++,l.state>=8&&(l.state=0),l.latch=!0):l.latch&&n<.5&&(l.latch=!1),l.active[l.state]&&(l.nextValue=l.values[l.state].value),o[t]=l.active[l.state]?1:0,i[t]=l.nextValue})}}return n.prototype.setValue=function(n,l){this.values[n].value=l},n.prototype.setActive=function(n,l){this.active[n]=l},n}()},oAJ2:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".seq-signals[_ngcontent-%COMP%]{float:left}a.binary-toggle[_ngcontent-%COMP%]{background-color:#f5f5f5;cursor:pointer;text-align:center;font-size:8px;font-weight:700;text-transform:uppercase}a.binary-toggle[_ngcontent-%COMP%], a.binary-toggle.active[_ngcontent-%COMP%]{padding:4px;display:block;margin:0 4px 4px 0}a.binary-toggle.active[_ngcontent-%COMP%]{background-color:#add8e6}.seq-right[_ngcontent-%COMP%]{float:right}"]},oCiJ:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=function(){function n(){this.delay=new Tone.PingPongDelay,this.delay.wet.value=.5}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}()},pNyw:function(n,l,t){"use strict";function e(n){return o._15(0,[(n()(),o._18(null,["\n\n"])),(n()(),o._16(0,null,null,1,"app-toggles",[["class","adsr-range-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setRange(t)&&e}return e},r.a,r.b)),o._17(24576,null,0,c.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),o._18(null,["\n\n"])),(n()(),o._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.adsr.attack=t)&&e}return e},s.a,s.b)),o._17(2220032,null,0,_.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.adsr.decay=t)&&e}return e},s.a,s.b)),o._17(2220032,null,0,_.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.adsr.sustain=t)&&e}return e},s.a,s.b)),o._17(2220032,null,0,_.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.adsr.release=t)&&e}return e},s.a,s.b)),o._17(2220032,null,0,_.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,19,"div",[["class","adsr-out"]],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-sink",[],null,null,null,p.a,p.b)),o._17(2187264,null,0,f.a,[g.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-sink",[],null,null,null,p.a,p.b)),o._17(2187264,null,0,f.a,[g.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-source",[],null,null,null,h.a,h.b)),o._17(2187264,null,0,m.a,[g.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n "])),(n()(),o._16(0,null,null,1,"app-source",[],null,null,null,h.a,h.b)),o._17(2187264,null,0,m.a,[g.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),o._18(null,["\n"])),(n()(),o._18(null,["\n"]))],function(n,l){var t=l.component;n(l,2,0,"range",t.activeRange,t.rangeLabels),n(l,5,0,"Attack",0,t.ranges[t.activeRange].max,.1),n(l,8,0,"Decay",0,t.ranges[t.activeRange].max,0),n(l,11,0,"Sustain",0,1,1),n(l,14,0,"Release",0,t.ranges[t.activeRange].max,.1),n(l,19,0,"gate","adsr",t.input),n(l,24,0,"trig","adsr",t.trigger),n(l,29,0,"env",t.adsr),n(l,34,0,"inv",t.inv)},function(n,l){n(l,4,0,"grey"),n(l,7,0,"grey"),n(l,10,0,"grey"),n(l,13,0,"grey")})}function u(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-adsr",[],null,null,null,e,v)),o._17(57344,null,0,a.a,[],null,null)],function(n,l){n(l,1,0)},null)}var i=t("FXjM"),o=t("3j3K"),a=t("b9kn"),r=t("l35h"),c=t("xMaR"),s=t("Txyh"),_=t("PP/s"),p=t("epGi"),f=t("/Nrj"),g=t("fH5F"),h=t("FfTB"),m=t("Tg2U");t.d(l,"b",function(){return v}),l.a=e;var d=[i.a],v=o._14({encapsulation:0,styles:d,data:{}});o._20("app-adsr",a.a,u,{},{},[])},psdp:function(n,l,t){"use strict";var e=t("3j3K"),u=t("M4fF");t.n(u);t.d(l,"a",function(){return i});var i=function(){function n(n){this.zone=n,this.value="c3 eb3 g3 c4",this.period="4n",this.noteLength="8n",this.signals=[],this.activeSignals=[],this.isPlaying=!1,this.pulse=!1,this.activeSignal=-1,this.currentPeriod=3,this.currentLength=2,this.noteLengths=["32n","16n","8n","4n","2n","1m"],this.freqConv=new Tone.CtrlInterpolate([32.708,523.25]),this.freq=new Tone.Signal,this.gate=new Tone.Envelope({attack:.01,decay:0,sustain:1,release:.01}),this.signals=[new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0),new Tone.Signal(0)],this.activeSignals=u.fill(u.range(8),1),this.configureSequence()}return n.prototype.ngOnInit=function(){},n.prototype.configureSequence=function(){var n=this,l=!1;this.sequence&&(l="started"===this.sequence.state,this.sequence.dispose()),this.sequence=new Tone.Sequence(function(l,t){n.activeSignals[t]&&(n.freqConv.index=n.signals[t].value,n.freq.linearRampToValue(n.freqConv.value,.01,l),n.gate.triggerAttackRelease(n.noteLength,l)),Tone.Draw.schedule(function(){n.zone.run(function(){return n.activeSignal=t}),n.zone.run(function(){return n.pulse=!n.pulse})},l)},u.range(8),this.period),l&&(this.pulse=!1,this.sequence.start("@4n"))},n.prototype.setPeriod=function(n){this.currentPeriod=n,this.period=this.noteLengths[n],this.configureSequence()},n.prototype.setLength=function(n){this.currentLength=n,this.noteLength=this.noteLengths[n],this.configureSequence()},n.prototype.seq=function(){this.sequence&&this.sequence.stop(),this.configureSequence(),this.sequence.start("@4n"),this.pulse=!1,this.isPlaying=!0},n.prototype.stop=function(){this.sequence&&(this.sequence.stop(),this.sequence.cancel()),this.activeSignal=-1,this.pulse=!1,this.isPlaying=!1},n.ctorParameters=function(){return[{type:e.h}]},n}()},s41N:function(n,l,t){"use strict";function e(n){return c._15(0,[(n()(),c._16(0,null,null,1,"app-toggles",[["class","osc-waveform-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setType(t)&&e}return e},s.a,s.b)),c._17(24576,null,0,_.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"})],function(n,l){var t=l.component;n(l,1,0,"waveform",t.currentType,t.types)},null)}function u(n){return c._15(0,[(n()(),c._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,p.a,p.b)),c._17(2220032,null,0,f.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null)],function(n,l){n(l,1,0,"width",l.component.osc.width,0,1)},null)}function i(n){return c._15(0,[(n()(),c._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,p.a,p.b)),c._17(2220032,null,0,f.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null)],function(n,l){n(l,1,0,"harmonicity",l.component.osc.harmonicity,0,5)},null)}function o(n){return c._15(0,[(n()(),c._16(0,null,null,4,"div",[["class","osc-top"]],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-toggles",[["class","osc-class-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setClass(t)&&e}return e},s.a,s.b)),c._17(24576,null,0,_.a,[],{activeOption:[0,"activeOption"],options:[1,"options"]},{toggle:"toggle"}),(n()(),c._18(null,["\n"])),(n()(),c._18(null,["\n"])),(n()(),c._16(0,null,null,8,"div",[["class","osc-left"]],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-sink",[],null,null,null,h.a,h.b)),c._17(2187264,null,0,m.a,[d.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),c._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-sink",[],null,null,null,h.a,h.b)),c._17(2187264,null,0,m.a,[d.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),c._18(null,["\n"])),(n()(),c._18(null,["\n\n"])),(n()(),c._19(8388608,null,null,1,null,e)),c._17(8192,null,0,v.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,["\n\n"])),(n()(),c._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,p.a,p.b)),c._17(2220032,null,0,f.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),c._18(null,["\n\n"])),(n()(),c._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,p.a,p.b)),c._17(2220032,null,0,f.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),c._18(null,["\n\n"])),(n()(),c._16(0,null,null,1,"app-slider",[["style","color:grey"]],null,null,null,p.a,p.b)),c._17(2220032,null,0,f.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),c._18(null,["\n\n"])),(n()(),c._19(8388608,null,null,1,null,u)),c._17(8192,null,0,v.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,["\n\n"])),(n()(),c._19(8388608,null,null,1,null,i)),c._17(8192,null,0,v.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,["\n\n"])),(n()(),c._16(0,null,null,1,"app-source",[],null,null,null,y.a,y.b)),c._17(2187264,null,0,b.a,[d.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),c._18(null,["\n\n"]))],function(n,l){var t=l.component;n(l,3,0,t.currentClass,t.classes),n(l,9,0,"cv","osc",t.cvIn),n(l,13,0,"freq","osc",t.osc.frequency),n(l,17,0,2!==t.currentClass&&5!==t.currentClass),n(l,20,0,"frequency",t.osc.frequency,0,4e3),n(l,23,0,"detune",t.osc.detune,-12,12),n(l,26,0,"volume",t.osc.volume,-10,10),n(l,29,0,5===t.currentClass),n(l,32,0,3===t.currentClass||4===t.currentClass),n(l,35,0,"out",t.osc)},null)}function a(n){return c._15(0,[(n()(),c._16(0,null,null,1,"app-osc",[],null,null,null,o,P)),c._17(24576,null,0,g.a,[],null,null)],null,null)}var r=t("z1yJ"),c=t("3j3K"),s=t("l35h"),_=t("xMaR"),p=t("Txyh"),f=t("PP/s"),g=t("Gvaq"),h=t("epGi"),m=t("/Nrj"),d=t("fH5F"),v=t("2Je8"),y=t("FfTB"),b=t("Tg2U");t.d(l,"b",function(){return P}),l.a=o;var x=[r.a],P=c._14({encapsulation:0,styles:x,data:{}});c._20("app-osc",g.a,a,{},{},[])},"t6/e":function(n,l,t){"use strict";var e=t("bZY+");t.n(e);t.d(l,"a",function(){return u});var u=function(){function n(){var n=this;this.reduction=0,this.comp=new Tone.Compressor,this.anim=e.IntervalObservable.create(500).subscribe(function(){n.reduction=n.comp._compressor.reduction})}return n.prototype.ngOnDestroy=function(){this.anim.unsubscribe()},n.ctorParameters=function(){return[]},n}()},vA8A:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=function(){function n(){this.clock=new Tone.LFO("32n").start("@16n")}return n.ctorParameters=function(){return[]},n}()},wSO0:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".toggle-label[_ngcontent-%COMP%]{font-size:8px;margin:0 4px 4px 0;color:#d3d3d3;font-weight:700;text-transform:uppercase}.toggle-option[_ngcontent-%COMP%]{font-size:8px;cursor:pointer;display:inline-block}.toggle-option[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{background-color:#f5f5f5}.toggle-option[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .toggle-option[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{padding:4px;margin:0 4px 4px 0;display:block}.toggle-option[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{background-color:#add8e6}"]},"x+TL":function(n,l,t){"use strict";var e=t("fH5F"),u=t("M4fF");t.n(u);t.d(l,"a",function(){return i});var i=function(){function n(n){this.patches=n,this.w=0,this.h=0}return Object.defineProperty(n.prototype,"paths",{get:function(){return u.map(this.patches.connections,function(n){var l=n.source.centrePoint(),t=l.x,e=l.y,u=n.sink.centrePoint(),i=u.x,o=u.y;return{cX1:t,cY1:e,cX2:i,cY2:o,path:"M "+t+" "+e+" Q "+(e<o?t:i)+" "+(e<o?o:e)+", "+i+" "+o}})},enumerable:!0,configurable:!0}),n.prototype.ngAfterViewInit=function(){var n=this;setTimeout(function(){return n.calculateSize()},10)},n.prototype.calculateSize=function(){this.w=document.body.clientWidth,this.h=document.body.clientHeight},n.ctorParameters=function(){return[{type:e.a}]},n}()},x35b:function(n,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var e=t("3j3K"),u=t("kZql"),i=t("Qbdm"),o=t("kke6");u.a.production&&t.i(e.a)(),t.i(i.a)().bootstrapModuleFactory(o.a)},xMaR:function(n,l,t){"use strict";var e=t("3j3K");t.d(l,"a",function(){return u});var u=function(){function n(){this.name="",this.activeOption=0,this.options=[],this.toggle=new e.R}return n.prototype.pickOption=function(n){this.toggle.emit(n)},n}()},xVmY:function(n,l,t){"use strict";function e(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-sink",[],null,null,null,a.a,a.b)),o._17(2187264,null,0,r.a,[c.a],{name:[0,"name"],parent:[1,"parent"],signal:[2,"signal"]},null),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-toggles",[["class","divisor-toggle"]],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setRange(t)&&e}return e},_.a,_.b)),o._17(24576,null,0,p.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),o._18(null,["\n"])),(n()(),o._16(0,null,null,1,"app-source",[],null,null,null,f.a,f.b)),o._17(2187264,null,0,g.a,[c.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),o._18(null,["\n"]))],function(n,l){var t=l.component;n(l,1,0,"clock","divider",t.input),n(l,6,0,"divisor",t.divisor,t.rangeLabels),n(l,11,0,"out",t.input)},null)}function u(n){return o._15(0,[(n()(),o._16(0,null,null,1,"app-divider",[],null,null,null,e,m)),o._17(57344,null,0,s.a,[],null,null)],function(n,l){n(l,1,0)},null)}var i=t("G8N1"),o=t("3j3K"),a=t("epGi"),r=t("/Nrj"),c=t("fH5F"),s=t("j7Og"),_=t("l35h"),p=t("xMaR"),f=t("FfTB"),g=t("Tg2U");t.d(l,"b",function(){return m}),l.a=e;var h=[i.a],m=o._14({encapsulation:0,styles:h,data:{}});o._20("app-divider",s.a,u,{},{},[])},z1yJ:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var e=[".osc-waveform-toggle[_ngcontent-%COMP%]{width:64px;display:inline-block}.osc.osc-class-toggle[_ngcontent-%COMP%]{width:128px;display:inline-block}.osc-top[_ngcontent-%COMP%]{margin-bottom:5px}.osc-left[_ngcontent-%COMP%]{float:left}"]},zcbK:function(n,l,t){"use strict";function e(n){return c._15(0,[(n()(),c._16(0,null,null,7,"div",[["class","seq-signals"]],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-slider",[],[[4,"color",null]],null,null,s.a,s.b)),c._17(2220032,null,0,_.a,[],{name:[0,"name"],signal:[1,"signal"],min:[2,"min"],max:[3,"max"]},null),(n()(),c._18(null,["\n\n "])),(n()(),c._16(0,null,null,1,"a",[["class","binary-toggle"]],[[2,"active",null]],[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!=(u.activeSignals[n.context.index]=!u.activeSignals[n.context.index])&&e}return e},null,null)),(n()(),c._18(null,["",""])),(n()(),c._18(null,["\n\n "]))],function(n,l){n(l,3,0,l.context.index+1,l.context.$implicit,0,1)},function(n,l){var t=l.component;n(l,2,0,l.context.index===t.activeSignal?"red":"grey"),n(l,5,0,t.activeSignals[l.context.index]),n(l,6,0,t.activeSignals[l.context.index]?"1":"0")})}function u(n){return c._15(0,[(n()(),c._16(0,null,null,1,"a",[["class","seq-btn seq-btn-start"]],null,[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.seq()&&e}return e},null,null)),(n()(),c._18(null,["START"]))],null,null)}function i(n){return c._15(0,[(n()(),c._16(0,null,null,1,"a",[["class","seq-btn"]],[[2,"seq-btn-pulse",null]],[[null,"click"]],function(n,l,t){var e=!0,u=n.component;if("click"===l){e=!1!==u.stop()&&e}return e},null,null)),(n()(),c._18(null,["STOP"]))],null,function(n,l){n(l,0,0,l.component.pulse)})}function o(n){return c._15(0,[(n()(),c._18(null,["\n\n\n "])),(n()(),c._19(8388608,null,null,1,null,e)),c._17(401408,null,0,p.h,[c._0,c._1,c.t],{ngForOf:[0,"ngForOf"]},null),(n()(),c._18(null,["\n\n "])),(n()(),c._16(0,null,null,18,"div",[["class","seq-left"]],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-toggles",[],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setPeriod(t)&&e}return e},g.a,g.b)),c._17(24576,null,0,h.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),c._18(null,["\n\n "])),(n()(),c._16(0,null,null,1,"app-toggles",[],null,[[null,"toggle"]],function(n,l,t){var e=!0,u=n.component;if("toggle"===l){e=!1!==u.setLength(t)&&e}return e},g.a,g.b)),c._17(24576,null,0,h.a,[],{name:[0,"name"],activeOption:[1,"activeOption"],options:[2,"options"]},{toggle:"toggle"}),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,0,"br",[],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._19(8388608,null,null,1,null,u)),c._17(8192,null,0,p.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,["\n "])),(n()(),c._19(8388608,null,null,1,null,i)),c._17(8192,null,0,p.i,[c._0,c._1],{ngIf:[0,"ngIf"]},null),(n()(),c._18(null,["\n\n "])),(n()(),c._16(0,null,null,1,"app-source",[],null,null,null,m.a,m.b)),c._17(2187264,null,0,d.a,[v.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),c._18(null,["\n\n "])),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,13,"div",[["class","seq-signals"]],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.gate.attack=t)&&e}return e},s.a,s.b)),c._17(2220032,null,0,_.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.gate.decay=t)&&e}return e},s.a,s.b)),c._17(2220032,null,0,_.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.gate.sustain=t)&&e}return e},s.a,s.b)),c._17(2220032,null,0,_.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-slider",[],[[4,"color",null]],[[null,"change"]],function(n,l,t){var e=!0,u=n.component;if("change"===l){e=!1!==(u.gate.release=t)&&e}return e},s.a,s.b)),c._17(2220032,null,0,_.a,[],{name:[0,"name"],min:[1,"min"],max:[2,"max"],defaultValue:[3,"defaultValue"]},{change:"change"}),(n()(),c._18(null,["\n "])),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,4,"div",[["class","seq-right"]],null,null,null,null,null)),(n()(),c._18(null,["\n "])),(n()(),c._16(0,null,null,1,"app-source",[],null,null,null,m.a,m.b)),c._17(2187264,null,0,d.a,[v.a],{name:[0,"name"],signal:[1,"signal"]},null),(n()(),c._18(null,["\n "])),(n()(),c._18(null,["\n\n"]))],function(n,l){var t=l.component;n(l,2,0,t.signals),n(l,7,0,"Period",t.currentPeriod,t.noteLengths),n(l,10,0,"Note length",t.currentLength,t.noteLengths),n(l,15,0,!t.isPlaying),n(l,18,0,t.isPlaying),n(l,21,0,"freq",t.freq),n(l,27,0,"Attack",0,1,.01),n(l,30,0,"Decay",0,1,0),n(l,33,0,"Sustain",0,1,1),n(l,36,0,"Release",0,1,.01),n(l,42,0,"env",t.gate)},function(n,l){n(l,26,0,"grey"),n(l,29,0,"grey"),n(l,32,0,"grey"),n(l,35,0,"grey")})}function a(n){return c._15(0,[(n()(),c._16(0,null,null,1,"app-seq",[],null,null,null,o,b)),c._17(57344,null,0,f.a,[c.h],null,null)],function(n,l){n(l,1,0)},null)}var r=t("BYSp"),c=t("3j3K"),s=t("Txyh"),_=t("PP/s"),p=t("2Je8"),f=t("psdp"),g=t("l35h"),h=t("xMaR"),m=t("FfTB"),d=t("Tg2U"),v=t("fH5F");t.d(l,"b",function(){return b}),l.a=o;var y=[r.a],b=c._14({encapsulation:0,styles:y,data:{}});c._20("app-seq",f.a,a,{},{},[])}},[0]);