mirror of
https://github.com/TrentSPalmer/fcc-challenges.git
synced 2024-11-16 10:11:30 -08:00
2 lines
53 KiB
JavaScript
2 lines
53 KiB
JavaScript
(this["webpackJsonpdrum-machine-react"]=this["webpackJsonpdrum-machine-react"]||[]).push([[0],{12:function(e,a,t){},22:function(e,a,t){e.exports=t(40)},31:function(e,a,t){},32:function(e,a,t){},33:function(e,a,t){},34:function(e,a,t){},38:function(e,a,t){},39:function(e,a,t){},40:function(e,a,t){"use strict";t.r(a);var C=t(0),r=t.n(C),o=t(14),n=t.n(o),d=t(5),i=t(10),l=["Q","W","E","A","S","D","Z","X","C"],h=function(){l.forEach((function(e){sessionStorage.hasOwnProperty(e+"volume")||sessionStorage.setItem(e+"volume","+0")}))},s=function(){l.forEach((function(e){sessionStorage.hasOwnProperty(e+"isMetronome")||sessionStorage.setItem(e+"isMetronome",!1)}))},v=function(){l.forEach((function(e){sessionStorage.hasOwnProperty(e+"metronomeTempo")||sessionStorage.setItem(e+"metronomeTempo",652)}))},c=function(){sessionStorage.hasOwnProperty(l[0])||sessionStorage.setItem(l[0],"Assorted-Hits/Cymbals/CYCdh_Crash-01.wav"),sessionStorage.hasOwnProperty(l[1])||sessionStorage.setItem(l[1],"Assorted-Hits/Cymbals/CYCdh_MultiCrash-01.wav"),sessionStorage.hasOwnProperty(l[2])||sessionStorage.setItem(l[2],"Assorted-Hits/Cymbals/CYCdh_MultiCrashHi-01.wav"),sessionStorage.hasOwnProperty(l[3])||sessionStorage.setItem(l[3],"Assorted-Hits/Cymbals/CYCdh_MultiCrashLo-01.wav"),sessionStorage.hasOwnProperty(l[4])||sessionStorage.setItem(l[4],"Assorted-Hits/Snares/Ludwig-A/CYCdh_LudFlamA-05.wav"),sessionStorage.hasOwnProperty(l[5])||sessionStorage.setItem(l[5],"Assorted-Hits/Snares/Ludwig-A/CYCdh_LudRimA-07.wav"),sessionStorage.hasOwnProperty(l[6])||sessionStorage.setItem(l[6],"Assorted-Hits/Kicks/Loose-Kick/CYCdh_LooseKick-08.wav"),sessionStorage.hasOwnProperty(l[7])||sessionStorage.setItem(l[7],"Assorted-Hits/Snares/Ludwig-A/CYCdh_LudSnrA-05.wav"),sessionStorage.hasOwnProperty(l[8])||sessionStorage.setItem(l[8],"Assorted-Hits/Snares/Ludwig-A/CYCdh_LudSnrOffA-08.wav")},m=function(){var e={};return l.forEach((function(a){e[a]=sessionStorage.getItem(a)})),e},u=function(e){return{type:"CHANGEVOLUME",volume:e}},_=30;sessionStorage.hasOwnProperty("volume")?_=sessionStorage.getItem("volume"):sessionStorage.setItem("volume","30");var w=function(e){return{type:"DRUMPADGRID",drumPadGrid:e}},Y=function(e){return{type:"SELECTIONMENU",selectionMenu:e}},K=function(e,a){return{type:"TOGGLEMETRONOME",key:e,metronomeIsPlaying:a}},p=function(e,a){return{type:"RESTARTMETRONOME",key:e,restartMetronome:a}},S=Object(i.b)({samplesUrls:function(e,a){switch(e||(c(),e=m()),a.type){case"SETSAMPLE":return e[a.key]=a.sample,e;default:return e=m()}},volumeOffSets:function(e,a){return e||(h(),e=function(){var e={};return l.forEach((function(a){e[a+"volume"]=sessionStorage.getItem(a+"volume")})),e}()),a.type,e},volume:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"CHANGEVOLUME":return a.volume;default:return e}},drumPadGrid:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"drumPadGrid",a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"DRUMPADGRID":return a.drumPadGrid;default:return e}},selectionMenu:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pads",a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"SELECTIONMENU":return a.selectionMenu;default:return e}},metronomeStatuses:function(e,a){return s(),a.type,function(){var e={};return l.forEach((function(a){e[a+"isMetronome"]=sessionStorage.getItem(a+"isMetronome")})),e}()},metronomeTempos:function(e,a){switch(e||(v(),e=function(){var e={};return l.forEach((function(a){e[a+"metronomeTempo"]=parseInt(sessionStorage.getItem(a+"metronomeTempo"))})),e}()),a.type){case"SETMETRONOMETEMPO":return e[a.key+"metronomeTempo"]=a.tempo,e;default:return e}},metronomePlayingStates:function(e,a){switch(e||(e=function(){var e={};return l.forEach((function(a){e[a+"metronomeIsPlaying"]=!1})),e}()),a.type){case"TOGGLEMETRONOME":return e[a.key+"metronomeIsPlaying"]=a.metronomeIsPlaying,e;default:return e}},shouldMetronomeRestart:function(e,a){switch(e||(e=function(){var e={};return l.forEach((function(a){e[a+"restartMetronome"]=!1})),e}()),a.type){case"RESTARTMETRONOME":return e[a.key+"restartMetronome"]=a.restartMetronome,e;default:return e}}}),f=Object(i.c)(S),b=(t(31),t(3)),g=t(4),y=t(7),A=t(6),O=(t(32),t(33),t(1)),T=t(8),E=(t(34),t(11)),H=t(9),k=(t(38),function(e){Object(y.a)(t,e);var a=Object(A.a)(t);function t(e){var C;return Object(b.a)(this,t),(C=a.call(this,e)).playSample=C.playSample.bind(Object(O.a)(C)),C.metronome=C.metronome.bind(Object(O.a)(C)),C.getVolume=C.getVolume.bind(Object(O.a)(C)),C.handleKeyPress=C.handleKeyPress.bind(Object(O.a)(C)),C}return Object(g.a)(t,[{key:"playSample",value:function(e){if("false"===this.props.metronomeStatuses[e+"isMetronome"]){var a=document.getElementById(e).src.slice(36);document.getElementById("display-top").innerHTML="<p>"+e+": "+a.replace(/\//g," ").replace(/-/g,"‑")+"</p>";var t=document.getElementById(e),C=this.props.samplesUrls[e],r=this.getVolume(e);if(0===t.currentTime)t.volume=r,t.play(),setTimeout((function(){var e=Math.floor(t.duration);e>1&&(t.currentTime=e)}),1e3);else{var o=new Audio("https://trentpalmer.org/drumsamples/"+C);o.volume=r,o.play(),setTimeout((function(){var e=Math.floor(o.duration);e>1&&(o.currentTime=e)}),1e3)}}else!1===this.props.metronomePlayingStates[e+"metronomeIsPlaying"]?(this.props.toggleMetronomeIsPlayingAction(e,!0),this.metronome(e)):this.props.toggleMetronomeIsPlayingAction(e,!1)}},{key:"handleKeyPress",value:function(e){[81,87,69,65,83,68,90,88,67].includes(e.keyCode)?this.playSample(String.fromCharCode(e.keyCode)):86===e.keyCode&&document.getElementById("volume").focus()}},{key:"getVolume",value:function(e){var a=(parseInt(sessionStorage.getItem("volume"))+parseInt(sessionStorage.getItem(e+"volume")))/100;return a>1?1:a<0?0:a}},{key:"metronome",value:function(e){var a=document.getElementById(e).src.slice(36);document.getElementById("display-top").innerHTML="<p>"+e+": "+a.replace(/\//g," ").replace(/-/g,"‑")+"</p>";var t=this.props.metronomeTempos[e+"metronomeTempo"],C=document.getElementById(e);C.volume=this.getVolume(e),C.play();var r=this,o=setInterval((function(){C.pause(),C.currentTime=0,C.volume=r.getVolume(e),C.play(),r.props.shouldMetronomeRestart[e+"restartMetronome"]&&(r.props.shouldMetronomeRestartAction(e,!1),clearInterval(o),r.metronome(e)),t!==r.props.metronomeTempos[e+"metronomeTempo"]&&(clearInterval(o),r.metronome(e)),!1===r.props.metronomePlayingStates[e+"metronomeIsPlaying"]&&clearInterval(o)}),t)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyPress,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyPress,!1)}},{key:"render",value:function(){var e=this,a=function(a){return a.map((function(a,t){return r.a.createElement("div",{key:t,id:a+"pad",className:"drum-pad",onClick:function(){return e.playSample(a)}},r.a.createElement("audio",{id:a,className:"clip",src:"https://trentpalmer.org/drumsamples/"+e.props.samplesUrls[a]}),function(){if("false"===e.props.metronomeStatuses[a+"isMetronome"])return r.a.createElement("p",null,a);if("true"===e.props.metronomeStatuses[a+"isMetronome"]&&!1===e.props.metronomePlayingStates[a+"metronomeIsPlaying"])return r.a.createElement("p",null,a+" ",r.a.createElement(E.a,{id:"metronomeIcon",icon:H.a,className:"metronomeIcon"}));if("true"===e.props.metronomeStatuses[a+"isMetronome"]&&!0===e.props.metronomePlayingStates[a+"metronomeIsPlaying"]){var t=Math.round(6e4/e.props.metronomeTempos[a+"metronomeTempo"]);return r.a.createElement("p",null,t+" ",r.a.createElement(E.a,{id:"metronomeIcon",icon:H.a,className:"metronomeIcon"}))}}())}))};return r.a.createElement("div",{id:"drum-pad-grid"},r.a.createElement("div",{className:"drum-pad-row"},a(l.slice(0,3))),r.a.createElement("div",{className:"drum-pad-row"},a(l.slice(3,6))),r.a.createElement("div",{className:"drum-pad-row"},a(l.slice(6))))}}]),t}(r.a.Component)),M=Object(d.b)((function(e){return Object(T.a)({},e)}),(function(e){return{toggleMetronomeIsPlayingAction:function(a,t){return e(K(a,t))},shouldMetronomeRestartAction:function(a,t){return e(p(a,t))}}}))(k),P=(t(12),function(e){Object(y.a)(t,e);var a=Object(A.a)(t);function t(e){var C;return Object(b.a)(this,t),(C=a.call(this,e)).handleClick=C.handleClick.bind(Object(O.a)(C)),C}return Object(g.a)(t,[{key:"handleClick",value:function(){this.props.setSelectionMenuAction("pads"),this.props.setDrumPadGridAction("selectionMenu")}},{key:"render",value:function(){return r.a.createElement("div",{id:"selection",className:"selection",onClick:this.handleClick},r.a.createElement("p",null,"select",r.a.createElement("br",null),"a sound"))}}]),t}(r.a.Component)),z=Object(d.b)((function(e){return Object(T.a)({},e)}),(function(e){return{setDrumPadGridAction:function(a){return e(w(a))},setSelectionMenuAction:function(a){return e(Y(a))}}}))(P),L=function(e){Object(y.a)(t,e);var a=Object(A.a)(t);function t(e){var C;return Object(b.a)(this,t),(C=a.call(this,e)).handleClick=C.handleClick.bind(Object(O.a)(C)),C}return Object(g.a)(t,[{key:"handleClick",value:function(){this.props.setSelectionMenuAction("pads"),this.props.setDrumPadGridAction("volumeSelectionMenu")}},{key:"render",value:function(){return r.a.createElement("div",{id:"select-volume",className:"selection",onClick:this.handleClick},r.a.createElement("p",null,"select",r.a.createElement("br",null),"a volume"))}}]),t}(r.a.Component),V=Object(d.b)((function(e){return Object(T.a)({},e)}),(function(e){return{setDrumPadGridAction:function(a){return e(w(a))},setSelectionMenuAction:function(a){return e(Y(a))}}}))(L),R=function(e){Object(y.a)(t,e);var a=Object(A.a)(t);function t(e){var C;return Object(b.a)(this,t),(C=a.call(this,e)).handleClick=C.handleClick.bind(Object(O.a)(C)),C}return Object(g.a)(t,[{key:"handleClick",value:function(){this.props.setSelectionMenuAction("pads"),this.props.setDrumPadGridAction("metronomeSelectionMenu")}},{key:"render",value:function(){return r.a.createElement("div",{id:"metronome",className:"selection",onClick:this.handleClick},r.a.createElement("p",null,"metronome"))}}]),t}(r.a.Component),I=Object(d.b)((function(e){return Object(T.a)({},e)}),(function(e){return{setDrumPadGridAction:function(a){return e(w(a))},setSelectionMenuAction:function(a){return e(Y(a))}}}))(R),j=function(){return r.a.createElement("div",{id:"selection-left"},r.a.createElement(z,null),r.a.createElement(V,null),r.a.createElement(I,null))},B=function(e){Object(y.a)(t,e);var a=Object(A.a)(t);function t(e){var C;return Object(b.a)(this,t),(C=a.call(this,e)).handleClick=C.handleClick.bind(Object(O.a)(C)),C}return Object(g.a)(t,[{key:"handleClick",value:function(){var e=this;sessionStorage.clear(),c(),h(),s(),v(),this.props.setVolumeAction(30),l.forEach((function(a){!0===e.props.metronomePlayingStates[a+"metronomeIsPlaying"]&&e.props.toggleMetronomeIsPlayingAction(a,!1)})),sessionStorage.setItem("volume",30)}},{key:"render",value:function(){return r.a.createElement("div",{id:"reset",className:"selection",onClick:this.handleClick},r.a.createElement("p",null,"RESET"))}}]),t}(r.a.Component),D=Object(d.b)((function(e){return Object(T.a)({},e)}),(function(e){return{setVolumeAction:function(a){return e(u(a))},toggleMetronomeIsPlayingAction:function(a,t){return e(K(a,t))}}}))(B),F=function(e){Object(y.a)(t,e);var a=Object(A.a)(t);function t(e){var C;return Object(b.a)(this,t),(C=a.call(this,e)).handleClick=C.handleClick.bind(Object(O.a)(C)),C}return Object(g.a)(t,[{key:"handleClick",value:function(){var e=this;l.forEach((function(a){!0===e.props.metronomePlayingStates[a+"metronomeIsPlaying"]&&e.props.toggleMetronomeIsPlayingAction(a,!1)}))}},{key:"render",value:function(){return r.a.createElement("div",{id:"stop",className:"selection",onClick:this.handleClick},r.a.createElement("p",null,"STOP"))}}]),t}(r.a.Component),G=Object(d.b)((function(e){return Object(T.a)({},e)}),(function(e){return{toggleMetronomeIsPlayingAction:function(a,t){return e(K(a,t))}}}))(F),N=function(){return r.a.createElement("div",{id:"selection-right"},r.a.createElement(D,null),r.a.createElement(G,null))},U=(t(39),function(e){Object(y.a)(t,e);var a=Object(A.a)(t);function t(e){var C;return Object(b.a)(this,t),(C=a.call(this,e)).handleVolumeChange=C.handleVolumeChange.bind(Object(O.a)(C)),C}return Object(g.a)(t,[{key:"handleVolumeChange",value:function(e){this.props.setVolumeAction(e.target.value),sessionStorage.setItem("volume",e.target.value)}},{key:"componentDidMount",value:function(){document.getElementById("display-top").innerHTML='<p id="volumeTip">press "V" to focus Volume so you can adjust with arrow keys</p>'}},{key:"render",value:function(){return r.a.createElement("div",{id:"volume-container"},r.a.createElement("div",{id:"volume-up-icon-container"},r.a.createElement(E.a,{id:"volumeUpIcon",icon:H.c,className:"volumeIcon"})),r.a.createElement("div",{id:"volume-input-container"},r.a.createElement("input",{id:"volume",type:"range",min:"1",max:"100",value:this.props.volume,onChange:this.handleVolumeChange})),r.a.createElement("div",{id:"volume-down-icon-container"},r.a.createElement(E.a,{id:"volumeDownIcon",icon:H.b,className:"volumeIcon"})))}}]),t}(r.a.Component)),x=Object(d.b)((function(e){return Object(T.a)({},e)}),(function(e){return{setVolumeAction:function(a){return e(u(a))}}}))(U),W=t(21),X={"Assorted-Hits":{Kicks:[{"Loose-Kick":["CYCdh_LooseKick-01.wav","CYCdh_LooseKick-02.wav","CYCdh_LooseKick-03.wav","CYCdh_LooseKick-04.wav","CYCdh_LooseKick-05.wav","CYCdh_LooseKick-06.wav","CYCdh_LooseKick-07.wav","CYCdh_LooseKick-08.wav"],Acoustic:["CYCdh_AcouKick-01.wav","CYCdh_AcouKick-02.wav","CYCdh_AcouKick-03.wav","CYCdh_AcouKick-04.wav","CYCdh_AcouKick-05.wav","CYCdh_AcouKick-06.wav","CYCdh_AcouKick-07.wav","CYCdh_AcouKick-08.wav","CYCdh_AcouKick-09.wav","CYCdh_AcouKick-10.wav","CYCdh_AcouKick-11.wav","CYCdh_AcouKick-12.wav","CYCdh_AcouKick-13.wav","CYCdh_AcouKick-14.wav","CYCdh_AcouKick-15.wav","CYCdh_AcouKick-16.wav","CYCdh_AcouKick-17.wav","CYCdh_AcouKick-18.wav","CYCdh_AcouKick-19.wav","CYCdh_AcouKick-20.wav"],"Kes-Kick":["CYCdh_KesKick-01.wav","CYCdh_KesKick-02.wav","CYCdh_KesKick-03.wav","CYCdh_KesKick-04.wav","CYCdh_KesKick-05.wav","CYCdh_KesKick-06.wav","CYCdh_KesKick-07.wav","CYCdh_KesKick-08.wav"]}],Cymbals:[{"Trash-Crashes":["CYCdh_TrashA-01.wav","CYCdh_TrashA-02.wav","CYCdh_TrashA-03.wav","CYCdh_TrashA-04.wav","CYCdh_TrashA-05.wav","CYCdh_TrashA-06.wav","CYCdh_TrashA-07.wav","CYCdh_TrashA-08.wav","CYCdh_TrashA-09.wav","CYCdh_TrashB-01.wav","CYCdh_TrashB-02.wav","CYCdh_TrashB-03.wav","CYCdh_TrashC-01.wav","CYCdh_TrashC-02.wav","CYCdh_TrashC-03.wav","CYCdh_TrashC-04.wav","CYCdh_TrashD-01.wav","CYCdh_TrashD-02.wav","CYCdh_TrashE-01.wav","CYCdh_TrashE-02.wav","CYCdh_TrashE-03.wav","CYCdh_TrashE-04.wav","CYCdh_TrashE-05.wav","CYCdh_TrashF-01.wav","CYCdh_TrashF-02.wav","CYCdh_TrashF-03.wav","CYCdh_TrashF-04.wav"]},"CYCdh_Crash-01.wav","CYCdh_Crash-02.wav","CYCdh_Crash-03.wav","CYCdh_MultiCrash-01.wav","CYCdh_MultiCrash-02.wav","CYCdh_MultiCrash-03.wav","CYCdh_MultiCrashHi-01.wav","CYCdh_MultiCrashHi-02.wav","CYCdh_MultiCrashHi-03.wav","CYCdh_MultiCrashLo-01.wav","CYCdh_MultiCrashLo-02.wav","CYCdh_MultiCrashLo-03.wav"],"Hi-Hats":[{Acoustic:["Acoustic-Hat-01.wav","Acoustic-Hat-02.wav","Acoustic-Hat-03.wav","Acoustic-Hat-04.wav","Acoustic-Hat-05.wav","Acoustic-Hat-06.wav"],"Sabian-B8":["CYCdh_Sab_ClHat-01.wav","CYCdh_Sab_ClHat-02.wav","CYCdh_Sab_ClHat-03.wav","CYCdh_Sab_ClHat-04.wav","CYCdh_Sab_ClHat-05.wav","CYCdh_Sab_ClHat-06.wav","CYCdh_Sab_ClHat-07.wav","CYCdh_Sab_ClHat-08.wav","CYCdh_Sab_ClHat-09.wav","CYCdh_Sab_ClHat-10.wav","CYCdh_Sab_ClHat-11.wav","CYCdh_Sab_ClHat-12.wav","CYCdh_Sab_ClHat-13.wav","CYCdh_Sab_ClHat-14.wav","CYCdh_Sab_HfHat-01.wav","CYCdh_Sab_HfHat-02.wav","CYCdh_Sab_HfHat-03.wav","CYCdh_Sab_HfHat-04.wav","CYCdh_Sab_OpHat-01.wav","CYCdh_Sab_OpHat-02.wav","CYCdh_Sab_OpHat-03.wav","CYCdh_Sab_OpHat-04.wav","CYCdh_Sab_OpHat-05.wav","CYCdh_Sab_OpHat-06.wav","CYCdh_Sab_OpHat-07.wav","CYCdh_Sab_OpHat-08.wav","CYCdh_Sab_OpHat-09.wav","CYCdh_Sab_PdHat-01.wav","CYCdh_Sab_PdHat-02.wav"],"Zildjian-K-Hats":["KHats-Clsd-01.wav","KHats-Clsd-02.wav","KHats-Clsd-03.wav","KHats-Clsd-04.wav","KHats-Clsd-05.wav","KHats-Clsd-06.wav","KHats-Clsd-07.wav","KHats-Clsd-08.wav","KHats-Clsd-09.wav","KHats-Clsd-10.wav","KHats-Clsd-11.wav","KHats-HlfOp-01.wav","KHats-HlfOp-02.wav","KHats-HlfOp-03.wav","KHats-Open-01.wav","KHats-Open-02.wav","KHats-Open-03.wav","KHats-Open-04.wav","KHats-Open-05.wav","KHats-Open-06.wav","KHats-Open-07.wav","KHats-Open-08.wav","KHats-Open-09.wav","KHats-Pdl-01.wav","KHats-Pdl-02.wav","KHats-Pdl-03.wav","KHats-Pdl-04.wav"]}],Snares:[{Acoustic:["Acoustic-Snare-01.wav","Acoustic-Snare-02.wav","Acoustic-Snare-03.wav","Acoustic-Snare-04.wav"],"Ludwig-A":["CYCdh_LudFlamA-01.wav","CYCdh_LudFlamA-02.wav","CYCdh_LudFlamA-03.wav","CYCdh_LudFlamA-04.wav","CYCdh_LudFlamA-05.wav","CYCdh_LudRimA-01.wav","CYCdh_LudRimA-02.wav","CYCdh_LudRimA-03.wav","CYCdh_LudRimA-04.wav","CYCdh_LudRimA-05.wav","CYCdh_LudRimA-06.wav","CYCdh_LudRimA-07.wav","CYCdh_LudSdStA-01.wav","CYCdh_LudSdStA-02.wav","CYCdh_LudSdStA-03.wav","CYCdh_LudSdStA-04.wav","CYCdh_LudSdStA-05.wav","CYCdh_LudSdStA-06.wav","CYCdh_LudSdStA-07.wav","CYCdh_LudSnrA-01.wav","CYCdh_LudSnrA-02.wav","CYCdh_LudSnrA-03.wav","CYCdh_LudSnrA-04.wav","CYCdh_LudSnrA-05.wav","CYCdh_LudSnrOffA-01.wav","CYCdh_LudSnrOffA-02.wav","CYCdh_LudSnrOffA-03.wav","CYCdh_LudSnrOffA-04.wav","CYCdh_LudSnrOffA-05.wav","CYCdh_LudSnrOffA-06.wav","CYCdh_LudSnrOffA-07.wav","CYCdh_LudSnrOffA-08.wav"],"Ludwig-B":["CYCdh_LudFlamB-01.wav","CYCdh_LudFlamB-02.wav","CYCdh_LudFlamB-03.wav","CYCdh_LudFlamB-04.wav","CYCdh_LudFlamB-05.wav","CYCdh_LudRimB-01.wav","CYCdh_LudRimB-02.wav","CYCdh_LudRimB-03.wav","CYCdh_LudRimB-04.wav","CYCdh_LudRimB-05.wav","CYCdh_LudRimB-06.wav","CYCdh_LudRimB-07.wav","CYCdh_LudSdStB-01.wav","CYCdh_LudSdStB-02.wav","CYCdh_LudSdStB-03.wav","CYCdh_LudSdStB-04.wav","CYCdh_LudSdStB-05.wav","CYCdh_LudSdStB-06.wav","CYCdh_LudSdStB-07.wav","CYCdh_LudSnrB-01.wav","CYCdh_LudSnrB-02.wav","CYCdh_LudSnrB-03.wav","CYCdh_LudSnrB-04.wav","CYCdh_LudSnrB-05.wav","CYCdh_LudSnrOffB-01.wav","CYCdh_LudSnrOffB-02.wav","CYCdh_LudSnrOffB-03.wav","CYCdh_LudSnrOffB-04.wav","CYCdh_LudSnrOffB-05.wav","CYCdh_LudSnrOffB-06.wav","CYCdh_LudSnrOffB-07.wav","CYCdh_LudSnrOffB-08.wav"],"Ludwig-C":["CYCdh_LudFlamC-01.wav","CYCdh_LudFlamC-02.wav","CYCdh_LudFlamC-03.wav","CYCdh_LudFlamC-04.wav","CYCdh_LudFlamC-05.wav","CYCdh_LudRimC-01.wav","CYCdh_LudRimC-02.wav","CYCdh_LudRimC-03.wav","CYCdh_LudRimC-04.wav","CYCdh_LudRimC-05.wav","CYCdh_LudRimC-06.wav","CYCdh_LudRimC-07.wav","CYCdh_LudSdStC-01.wav","CYCdh_LudSdStC-02.wav","CYCdh_LudSdStC-03.wav","CYCdh_LudSdStC-04.wav","CYCdh_LudSdStC-05.wav","CYCdh_LudSdStC-06.wav","CYCdh_LudSdStC-07.wav","CYCdh_LudSnrC-01.wav","CYCdh_LudSnrC-02.wav","CYCdh_LudSnrC-03.wav","CYCdh_LudSnrC-04.wav","CYCdh_LudSnrC-05.wav","CYCdh_LudSnrOffC-01.wav","CYCdh_LudSnrOffC-02.wav","CYCdh_LudSnrOffC-03.wav","CYCdh_LudSnrOffC-04.wav","CYCdh_LudSnrOffC-05.wav","CYCdh_LudSnrOffC-06.wav","CYCdh_LudSnrOffC-07.wav","CYCdh_LudSnrOffC-08.wav"],"Piccolo-Sidestick":["PearlPiccolo-Side-SnrOff-01.wav","PearlPiccolo-Side-SnrOff-02.wav","PearlPiccolo-Side-SnrOff-03.wav","PearlPiccolo-Side-SnrOff-04.wav","PearlPiccolo-Side-SnrOff-05.wav","PearlPiccolo-Side-SnrOn-01.wav","PearlPiccolo-Side-SnrOn-02.wav","PearlPiccolo-Side-SnrOn-03.wav","PearlPiccolo-Side-SnrOn-04.wav","PearlPiccolo-Side-SnrOn-05.wav","PearlPiccolo-Side-SnrOn-06.wav","PearlPiccolo-Side-SnrOn-07.wav","PearlPiccolo-Side-SnrOn-08.wav","PearlPiccolo-Side-SnrOn-09.wav"],"Sonor-Force-3000":["CYCdh_SonFlam-01.wav","CYCdh_SonFlam-02.wav","CYCdh_SonFlam-03.wav","CYCdh_SonRim-01.wav","CYCdh_SonRim-02.wav","CYCdh_SonRim-03.wav","CYCdh_SonRim-04.wav","CYCdh_SonRim-05.wav","CYCdh_SonRim-06.wav","CYCdh_SonRim-07.wav","CYCdh_SonRim-08.wav","CYCdh_SonRim-09.wav","CYCdh_SonRim-10.wav","CYCdh_SonSdSt-01.wav","CYCdh_SonSdSt-02.wav","CYCdh_SonSdSt-03.wav","CYCdh_SonSdSt-04.wav","CYCdh_SonSdSt-05.wav","CYCdh_SonSdSt-06.wav","CYCdh_SonSdSt-07.wav","CYCdh_SonSnr-01.wav","CYCdh_SonSnr-02.wav","CYCdh_SonSnr-03.wav","CYCdh_SonSnr-04.wav","CYCdh_SonSnr-05.wav","CYCdh_SonSnr-06.wav","CYCdh_SonSnrOff-01.wav","CYCdh_SonSnrOff-02.wav","CYCdh_SonSnrOff-03.wav","CYCdh_SonSnrOff-04.wav","CYCdh_SonSnrOff-05.wav","CYCdh_SonSnrOff-06.wav","CYCdh_SonUpsd-01.wav","CYCdh_SonUpsd-02.wav","CYCdh_SonUpsd-03.wav","CYCdh_SonUpsd-04.wav","CYCdh_SonUpsd-05.wav","CYCdh_SonUpsd-06.wav","CYCdh_SonUpsd-07.wav","CYCdh_SonUpsd-08.wav"],"Tama-Wood":["CYCdh_TamFlam-01.wav","CYCdh_TamFlam-02.wav","CYCdh_TamFlam-03.wav","CYCdh_TamRim-01.wav","CYCdh_TamRim-02.wav","CYCdh_TamRim-03.wav","CYCdh_TamRim-04.wav","CYCdh_TamRim-05.wav","CYCdh_TamRim-06.wav","CYCdh_TamRim-07.wav","CYCdh_TamRim-08.wav","CYCdh_TamRimTgt-01.wav","CYCdh_TamRimTgt-02.wav","CYCdh_TamRimTgt-03.wav","CYCdh_TamRimTgt-04.wav","CYCdh_TamRimTgt-05.wav","CYCdh_TamSdSt-01.wav","CYCdh_TamSdSt-02.wav","CYCdh_TamSdSt-03.wav","CYCdh_TamSdSt-04.wav","CYCdh_TamSdSt-05.wav","CYCdh_TamSdSt-06.wav","CYCdh_TamSdSt-07.wav","CYCdh_TamSdSt-08.wav","CYCdh_TamSnr-01.wav","CYCdh_TamSnr-02.wav","CYCdh_TamSnr-03.wav","CYCdh_TamSnr-04.wav","CYCdh_TamSnr-05.wav","CYCdh_TamSnr-06.wav","CYCdh_TamSnr-07.wav","CYCdh_TamSnr-08.wav","CYCdh_TamSnrEd-01.wav","CYCdh_TamSnrEd-02.wav","CYCdh_TamSnrEd-03.wav","CYCdh_TamSnrEd-04.wav","CYCdh_TamSnrEd-05.wav","CYCdh_TamSnrEd-06.wav","CYCdh_TamSnrEd-07.wav","CYCdh_TamSnrEd-08.wav","CYCdh_TamSnrTgt-01.wav","CYCdh_TamSnrTgt-02.wav","CYCdh_TamSnrTgt-03.wav","CYCdh_TamSnrTgt-04.wav","CYCdh_TamSnrTgt-05.wav","CYCdh_TamSnrTgt-06.wav","CYCdh_TamSnrTgt-07.wav","CYCdh_TamUpsd-01.wav","CYCdh_TamUpsd-02.wav","CYCdh_TamUpsd-03.wav","CYCdh_TamUpsd-04.wav","CYCdh_TamUpsd-05.wav","CYCdh_TamUpsd-06.wav","CYCdh_TamUpsd-07.wav","CYCdh_TamUpsd-08.wav","CYCdh_TamUpsd-09.wav"],"Wooden-Piccolo":["CYCdh_PiccoloA-01.wav","CYCdh_PiccoloA-02.wav","CYCdh_PiccoloA-03.wav","CYCdh_PiccoloA-04.wav","CYCdh_PiccoloB-01.wav","CYCdh_PiccoloB-02.wav","CYCdh_PiccoloB-03.wav","CYCdh_PiccoloB-04.wav","CYCdh_PiccoloC-01.wav","CYCdh_PiccoloC-02.wav","CYCdh_PiccoloC-03.wav","CYCdh_PiccoloC-04.wav","CYCdh_PiccoloD-01.wav","CYCdh_PiccoloD-02.wav","CYCdh_PiccoloD-03.wav","CYCdh_PiccoloD-04.wav","CYCdh_PiccoloE-01.wav","CYCdh_PiccoloE-02.wav","CYCdh_PiccoloE-03.wav","CYCdh_PiccoloE-04.wav"]}]},"Drum-Kits":{"Kit-10-Vinyl":["CYCdh_VinylK3-ClHat01.wav","CYCdh_VinylK3-ClHat02.wav","CYCdh_VinylK3-Kick01.wav","CYCdh_VinylK3-Kick02.wav","CYCdh_VinylK3-Kick03.wav","CYCdh_VinylK3-Kick04.wav","CYCdh_VinylK3-OpHat.wav","CYCdh_VinylK3-Perc01.wav","CYCdh_VinylK3-Perc02.wav","CYCdh_VinylK3-Perc03.wav","CYCdh_VinylK3-Perc04.wav","CYCdh_VinylK3-Snr01.wav","CYCdh_VinylK3-Snr02.wav"],"Kit-11-Vinyl":["CYCdh_VinylK4-China.wav","CYCdh_VinylK4-ClHat01.wav","CYCdh_VinylK4-ClHat02.wav","CYCdh_VinylK4-ClHat03.wav","CYCdh_VinylK4-ClHat04.wav","CYCdh_VinylK4-ClHat05.wav","CYCdh_VinylK4-Crash01.wav","CYCdh_VinylK4-Crash02.wav","CYCdh_VinylK4-Kick01.wav","CYCdh_VinylK4-Kick02.wav","CYCdh_VinylK4-OpHat01.wav","CYCdh_VinylK4-OpHat02.wav","CYCdh_VinylK4-Ride01.wav","CYCdh_VinylK4-Ride02.wav","CYCdh_VinylK4-Ride03.wav","CYCdh_VinylK4-Ride04.wav","CYCdh_VinylK4-Snr01.wav","CYCdh_VinylK4-Snr02.wav","CYCdh_VinylK4-Snr03.wav","CYCdh_VinylK4-Snr04.wav","CYCdh_VinylK4-Snr05.wav","CYCdh_VinylK4-Snr06.wav","CYCdh_VinylK4-Tom01.wav","CYCdh_VinylK4-Tom02.wav","CYCdh_VinylK4-Tom03.wav"],"Kit-12-Vinyl":["CYCdh_VinylK5-ClHat01.wav","CYCdh_VinylK5-ClHat02.wav","CYCdh_VinylK5-ClHat03.wav","CYCdh_VinylK5-Kick01.wav","CYCdh_VinylK5-Kick02.wav","CYCdh_VinylK5-OpHat.wav","CYCdh_VinylK5-Snr01.wav","CYCdh_VinylK5-Snr02.wav","CYCdh_VinylK5-Snr03.wav","CYCdh_VinylK5-Snr04.wav","CYCdh_VinylK5-Tom01.wav","CYCdh_VinylK5-Tom02.wav","CYCdh_VinylK5-Tom03.wav"],"Kit-13-Acoustic":["CYCdh_K4-4OpHat03.wav","CYCdh_K4-ClHat01.wav","CYCdh_K4-ClHat02.wav","CYCdh_K4-ClHat03.wav","CYCdh_K4-Kick01.wav","CYCdh_K4-Kick02.wav","CYCdh_K4-Kick03.wav","CYCdh_K4-Kick04.wav","CYCdh_K4-Kick05.wav","CYCdh_K4-OpHat01.wav","CYCdh_K4-OpHat02.wav","CYCdh_K4-Snr01.wav","CYCdh_K4-Snr02.wav","CYCdh_K4-Snr03.wav","CYCdh_K4-Snr04.wav","CYCdh_K4-Snr05.wav","CYCdh_K4-Snr06.wav","CYCdh_K4-Snr07.wav","CYCdh_K4-Snr08.wav","CYCdh_K4-Snr09.wav","CYCdh_K4-Snr10.wav","CYCdh_K4-Snr11.wav","CYCdh_K4-Trash01.wav","CYCdh_K4-Trash02.wav","CYCdh_K4-Trash03.wav","CYCdh_K4-Trash04.wav","CYCdh_K4-Trash05.wav","CYCdh_K4-Trash06.wav","CYCdh_K4-Trash07.wav","CYCdh_K4-Trash08.wav","CYCdh_K4-Trash09.wav","CYCdh_K4-Trash10.wav"],"Kit-14-Acoustic":["CYCdh_K5-ClHat01.wav","CYCdh_K5-ClHat02.wav","CYCdh_K5-ClHat03.wav","CYCdh_K5-Kick01.wav","CYCdh_K5-Kick02.wav","CYCdh_K5-Kick93.wav","CYCdh_K5-OpHat01.wav","CYCdh_K5-OpHat02.wav","CYCdh_K5-PdHat.wav","CYCdh_K5-Rim01.wav","CYCdh_K5-Rim02.wav","CYCdh_K5-Rim03.wav","CYCdh_K5-SdSt01.wav","CYCdh_K5-SdSt02.wav","CYCdh_K5-SdSt03.wav","CYCdh_K5-Snr01.wav","CYCdh_K5-Snr02.wav","CYCdh_K5-Snr03.wav","CYCdh_K5-Snr04.wav","CYCdh_K5-Tom01a.wav","CYCdh_K5-Tom01b.wav","CYCdh_K5-Tom01c.wav","CYCdh_K5-Tom02a.wav","CYCdh_K5-Tom02b.wav","CYCdh_K5-Tom02c.wav","CYCdh_K5-Tom03a.wav","CYCdh_K5-Tom03b.wav","CYCdh_K5-Tom03c.wav"],"Kit-15-Electro":["CYCdh_ElecK05-Clap01.wav","CYCdh_ElecK05-Clap02.wav","CYCdh_ElecK05-ClHat01.wav","CYCdh_ElecK05-ClHat02.wav","CYCdh_ElecK05-ClHat03.wav","CYCdh_ElecK05-ClHat04.wav","CYCdh_ElecK05-Kick01.wav","CYCdh_ElecK05-Kick02.wav","CYCdh_ElecK05-OpHat01.wav","CYCdh_ElecK05-OpHat02.wav","CYCdh_ElecK05-Snr01.wav","CYCdh_ElecK05-Snr02.wav","CYCdh_ElecK05-Snr03.wav","CYCdh_ElecK05-Snr04.wav"],"Kit-16-Electro":["CYCdh_ElecK06-Clap01.wav","CYCdh_ElecK06-Clap02.wav","CYCdh_ElecK06-Clap03.wav","CYCdh_ElecK06-ClHat01.wav","CYCdh_ElecK06-ClHat02.wav","CYCdh_ElecK06-Kick01.wav","CYCdh_ElecK06-Kick02.wav","CYCdh_ElecK06-OpHat.wav","CYCdh_ElecK06-Snr01.wav","CYCdh_ElecK06-Snr02.wav","CYCdh_ElecK06-Snr03.wav"],"Kit-17-Electro":["CYCdh_ElecK07-ClHat01.wav","CYCdh_ElecK07-ClHat02.wav","CYCdh_ElecK07-Kick01.wav","CYCdh_ElecK07-Kick02.wav","CYCdh_ElecK07-OpHat.wav","CYCdh_ElecK07-Snr01.wav","CYCdh_ElecK07-Snr02.wav","CYCdh_ElecK07-Snr03.wav"],"Kit-18-Acoustic":["CYCdh_K6-ClHat.wav","CYCdh_K6-Kick01.wav","CYCdh_K6-OpHat01.wav","CYCdh_K6-OpHat02.wav","CYCdh_K6-Snr01.wav","CYCdh_K6-Snr02.wav","CYCdh_K6-Snr03.wav","CYCdh_K6-Snr04.wav","CYCdh_K6-SnrBuzz.wav"],"Kit-1-Acoustic-close":["CYCdh_K1close_ClHat-01.wav","CYCdh_K1close_ClHat-02.wav","CYCdh_K1close_ClHat-03.wav","CYCdh_K1close_ClHat-04.wav","CYCdh_K1close_ClHat-05.wav","CYCdh_K1close_ClHat-06.wav","CYCdh_K1close_ClHat-07.wav","CYCdh_K1close_ClHat-08.wav","CYCdh_K1close_ClHat-09.wav","CYCdh_K1close_Flam-01.wav","CYCdh_K1close_Flam-02.wav","CYCdh_K1close_Flam-03.wav","CYCdh_K1close_Flam-04.wav","CYCdh_K1close_Flam-05.wav","CYCdh_K1close_Kick-01.wav","CYCdh_K1close_Kick-02.wav","CYCdh_K1close_Kick-03.wav","CYCdh_K1close_Kick-04.wav","CYCdh_K1close_Kick-05.wav","CYCdh_K1close_Kick-06.wav","CYCdh_K1close_Kick-07.wav","CYCdh_K1close_Kick-08.wav","CYCdh_K1close_OpHat-01.wav","CYCdh_K1close_OpHat-02.wav","CYCdh_K1close_OpHat-03.wav","CYCdh_K1close_OpHat-04.wav","CYCdh_K1close_OpHat-05.wav","CYCdh_K1close_OpHat-06.wav","CYCdh_K1close_OpHat-07.wav","CYCdh_K1close_PdHat-01.wav","CYCdh_K1close_PdHat-02.wav","CYCdh_K1close_PdHat-03.wav","CYCdh_K1close_PdHat-04.wav","CYCdh_K1close_Rim-01.wav","CYCdh_K1close_Rim-02.wav","CYCdh_K1close_Rim-03.wav","CYCdh_K1close_Rim-04.wav","CYCdh_K1close_Rim-05.wav","CYCdh_K1close_Rim-06.wav","CYCdh_K1close_Rim-07.wav","CYCdh_K1close_SdSt-01.wav","CYCdh_K1close_SdSt-02.wav","CYCdh_K1close_SdSt-03.wav","CYCdh_K1close_SdSt-04.wav","CYCdh_K1close_SdSt-05.wav","CYCdh_K1close_SdSt-06.wav","CYCdh_K1close_SdSt-07.wav","CYCdh_K1close_Snr-01.wav","CYCdh_K1close_Snr-02.wav","CYCdh_K1close_Snr-03.wav","CYCdh_K1close_Snr-04.wav","CYCdh_K1close_Snr-05.wav","CYCdh_K1close_SnrOff-01.wav","CYCdh_K1close_SnrOff-02.wav","CYCdh_K1close_SnrOff-03.wav","CYCdh_K1close_SnrOff-04.wav","CYCdh_K1close_SnrOff-05.wav","CYCdh_K1close_SnrOff-06.wav","CYCdh_K1close_SnrOff-07.wav","CYCdh_K1close_SnrOff-08.wav"],"Kit-2-Acoustic-room":["CYCdh_K2room_ClHat-01.wav","CYCdh_K2room_ClHat-02.wav","CYCdh_K2room_ClHat-03.wav","CYCdh_K2room_ClHat-04.wav","CYCdh_K2room_ClHat-05.wav","CYCdh_K2room_ClHat-06.wav","CYCdh_K2room_ClHat-07.wav","CYCdh_K2room_ClHat-08.wav","CYCdh_K2room_ClHat-09.wav","CYCdh_K2room_Flam-01.wav","CYCdh_K2room_Flam-02.wav","CYCdh_K2room_Flam-03.wav","CYCdh_K2room_Flam-04.wav","CYCdh_K2room_Flam-05.wav","CYCdh_K2room_Kick-01.wav","CYCdh_K2room_Kick-02.wav","CYCdh_K2room_Kick-03.wav","CYCdh_K2room_Kick-04.wav","CYCdh_K2room_Kick-05.wav","CYCdh_K2room_Kick-06.wav","CYCdh_K2room_Kick-07.wav","CYCdh_K2room_Kick-08.wav","CYCdh_K2room_OpHat-01.wav","CYCdh_K2room_OpHat-02.wav","CYCdh_K2room_OpHat-03.wav","CYCdh_K2room_OpHat-04.wav","CYCdh_K2room_OpHat-05.wav","CYCdh_K2room_OpHat-06.wav","CYCdh_K2room_OpHat-07.wav","CYCdh_K2room_PdHat-01.wav","CYCdh_K2room_PdHat-02.wav","CYCdh_K2room_PdHat-03.wav","CYCdh_K2room_PdHat-04.wav","CYCdh_K2room_Rim-01.wav","CYCdh_K2room_Rim-02.wav","CYCdh_K2room_Rim-03.wav","CYCdh_K2room_Rim-04.wav","CYCdh_K2room_Rim-05.wav","CYCdh_K2room_Rim-06.wav","CYCdh_K2room_Rim-07.wav","CYCdh_K2room_SdSt-01.wav","CYCdh_K2room_SdSt-02.wav","CYCdh_K2room_SdSt-03.wav","CYCdh_K2room_SdSt-04.wav","CYCdh_K2room_SdSt-05.wav","CYCdh_K2room_SdSt-06.wav","CYCdh_K2room_SdSt-07.wav","CYCdh_K2room_Snr-01.wav","CYCdh_K2room_Snr-02.wav","CYCdh_K2room_Snr-03.wav","CYCdh_K2room_Snr-04.wav","CYCdh_K2room_Snr-05.wav","CYCdh_K2room_SnrOff-01.wav","CYCdh_K2room_SnrOff-02.wav","CYCdh_K2room_SnrOff-03.wav","CYCdh_K2room_SnrOff-04.wav","CYCdh_K2room_SnrOff-05.wav","CYCdh_K2room_SnrOff-06.wav","CYCdh_K2room_SnrOff-07.wav","CYCdh_K2room_SnrOff-08.wav"],"Kit-3-Acoustic":["CyCdh_K3ClHat-01.wav","CyCdh_K3ClHat-02.wav","CyCdh_K3ClHat-03.wav","CyCdh_K3ClHat-04.wav","CyCdh_K3Crash-01.wav","CyCdh_K3Crash-02.wav","CyCdh_K3Crash-03.wav","CyCdh_K3Crash-04.wav","CyCdh_K3Crash-05.wav","CyCdh_K3Crash-06.wav","CyCdh_K3Crash-07.wav","CyCdh_K3HfHat.wav","CyCdh_K3Kick-01.wav","CyCdh_K3Kick-02.wav","CyCdh_K3Kick-03.wav","CyCdh_K3OpHat-01.wav","CyCdh_K3OpHat-02.wav","CyCdh_K3OpHat-03.wav","CyCdh_K3Rim-01.wav","CyCdh_K3SdSt-01.wav","CyCdh_K3SdSt-02.wav","CyCdh_K3SdSt-03.wav","CyCdh_K3SdSt-04.wav","CyCdh_K3SdSt-05.wav","CyCdh_K3SdSt-06.wav","CyCdh_K3SdSt-07.wav","CyCdh_K3Snr-01.wav","CyCdh_K3Snr-02.wav","CyCdh_K3Snr-03.wav","CyCdh_K3Snr-04.wav","CyCdh_K3Snr-05.wav","CyCdh_K3Snr-06.wav","CyCdh_K3Snr-07.wav","CyCdh_K3Snr-08.wav","CyCdh_K3Snr-09.wav","CyCdh_K3Snr-10.wav","CyCdh_K3Tom-01.wav","CyCdh_K3Tom-04.wav","CyCdh_K3Tom-05.wav"],"Kit-4-Electro":["CYCdh_ElecK01-ClHat01.wav","CYCdh_ElecK01-ClHat02.wav","CYCdh_ElecK01-ClHat03.wav","CYCdh_ElecK01-Cymbal.wav","CYCdh_ElecK01-Kick01.wav","CYCdh_ElecK01-Kick02.wav","CYCdh_ElecK01-OpHat01.wav","CYCdh_ElecK01-OpHat02.wav","CYCdh_ElecK01-Snr01.wav","CYCdh_ElecK01-Snr02.wav","CYCdh_ElecK01-Snr03.wav","CYCdh_ElecK01-Tom01.wav","CYCdh_ElecK01-Tom02.wav","CYCdh_ElecK01-Tom03.wav","CYCdh_ElecK01-Tom04.wav"],"Kit-5-Electro":["CYCdh_ElecK02-Clap01.wav","CYCdh_ElecK02-Clap02.wav","CYCdh_ElecK02-ClHat01.wav","CYCdh_ElecK02-ClHat02.wav","CYCdh_ElecK02-FX01.wav","CYCdh_ElecK02-FX02.wav","CYCdh_ElecK02-FX03.wav","CYCdh_ElecK02-HfHat.wav","CYCdh_ElecK02-Kick01.wav","CYCdh_ElecK02-Kick02.wav","CYCdh_ElecK02-Snr01.wav","CYCdh_ElecK02-Snr02.wav","CYCdh_ElecK02-Tom01.wav","CYCdh_ElecK02-Tom02.wav","CYCdh_ElecK02-Tom03.wav"],"Kit-6-Electro":["CYCdh_ElecK03-Clap01.wav","CYCdh_ElecK03-Clap02.wav","CYCdh_ElecK03-ClHat.wav","CYCdh_ElecK03-Kick01.wav","CYCdh_ElecK03-Kick02.wav","CYCdh_ElecK03-OpHat.wav","CYCdh_ElecK03-PdHat.wav","CYCdh_ElecK03-Snr01.wav","CYCdh_ElecK03-Snr02.wav","CYCdh_ElecK03-Tom01.wav","CYCdh_ElecK03-Tom02.wav","CYCdh_ElecK03-Tom03.wav","CYCdh_ElecK03-Tom04.wav","CYCdh_ElecK03-Tom05.wav"],"Kit-7-Electro":["CYCdh_ElecK04-Clap.wav","CYCdh_ElecK04-ClHat01.wav","CYCdh_ElecK04-ClHat02.wav","CYCdh_ElecK04-Cymbal01.wav","CYCdh_ElecK04-Cymbal02.wav","CYCdh_ElecK04-HfHat.wav","CYCdh_ElecK04-Kick01.wav","CYCdh_ElecK04-Kick02.wav","CYCdh_ElecK04-Kick03.wav","CYCdh_ElecK04-Snr01.wav","CYCdh_ElecK04-Snr02.wav","CYCdh_ElecK04-Snr03.wav","CYCdh_ElecK04-Tom01.wav","CYCdh_ElecK04-Tom02.wav","CYCdh_ElecK04-Tom03.wav","CYCdh_ElecK04-Tom04.wav"],"Kit-8-Vinyl":["CYCdh_VinylK1-ClHat01.wav","CYCdh_VinylK1-ClHat02.wav","CYCdh_VinylK1-Kick01.wav","CYCdh_VinylK1-Kick02.wav","CYCdh_VinylK1-Kick03.wav","CYCdh_VinylK1-OpHat.wav","CYCdh_VinylK1-Shkr01.wav","CYCdh_VinylK1-Shkr02.wav","CYCdh_VinylK1-Shkr03.wav","CYCdh_VinylK1-Snr01.wav","CYCdh_VinylK1-Snr02.wav","CYCdh_VinylK1-Tamb.wav"],"Kit-9-Vinyl":["CYCdh_VinylK2-ClHat.wav","CYCdh_VinylK2-HfHat.wav","CYCdh_VinylK2-Kick02.wav","CYCdh_VinylK2-Kicki01.wav","CYCdh_VinylK2-OpHat01.wav","CYCdh_VinylK2-OpHat02.wav","CYCdh_VinylK2-Ride01.wav","CYCdh_VinylK2-Ride02.wav","CYCdh_VinylK2-Snr01.wav","CYCdh_VinylK2-Snr02.wav","CYCdh_VinylK2-Tom01.wav","CYCdh_VinylK2-Tom02.wav"],"Kurzweil-Kit-01":["CYCdh_Kurz01-ClHat.wav","CYCdh_Kurz01-Crash01.wav","CYCdh_Kurz01-Crash02.wav","CYCdh_Kurz01-Crash03.wav","CYCdh_Kurz01-Crash04.wav","CYCdh_Kurz01-HfHat.wav","CYCdh_Kurz01-Kick01.wav","CYCdh_Kurz01-Kick02.wav","CYCdh_Kurz01-Kick03.wav","CYCdh_Kurz01-OpHat01.wav","CYCdh_Kurz01-OpHat02.wav","CYCdh_Kurz01-PdHat.wav","CYCdh_Kurz01-RevCrash.wav","CYCdh_Kurz01-Ride01.wav","CYCdh_Kurz01-Ride02.wav","CYCdh_Kurz01-SdSt.wav","CYCdh_Kurz01-Snr01.wav","CYCdh_Kurz01-Snr02.wav","CYCdh_Kurz01-Snr03.wav","CYCdh_Kurz01-Tom01.wav","CYCdh_Kurz01-Tom02.wav","CYCdh_Kurz01-Tom03.wav","CYCdh_Kurz01-Tom04.wav"],"Kurzweil-Kit-02":["CYCdh_Kurz02-ClHat.wav","CYCdh_Kurz02-Crash01.wav","CYCdh_Kurz02-Crash02.wav","CYCdh_Kurz02-HfHat.wav","CYCdh_Kurz02-Kick01.wav","CYCdh_Kurz02-Kick02.wav","CYCdh_Kurz02-OpHat.wav","CYCdh_Kurz02-PdHat.wav","CYCdh_Kurz02-Ride01.wav","CYCdh_Kurz02-Ride02.wav","CYCdh_Kurz02-SdSt.wav","CYCdh_Kurz02-Snr01.wav","CYCdh_Kurz02-Snr02.wav","CYCdh_Kurz02-Tom01.wav","CYCdh_Kurz02-Tom02.wav","CYCdh_Kurz02-Tom03.wav","CYCdh_Kurz02-Tom04.wav"],"Kurzweil-Kit-03":["CYCdh_Kurz03-ClHat01.wav","CYCdh_Kurz03-ClHat02.wav","CYCdh_Kurz03-Crash01.wav","CYCdh_Kurz03-Crash02.wav","CYCdh_Kurz03-Crash03.wav","CYCdh_Kurz03-HfHat.wav","CYCdh_Kurz03-Kick.wav","CYCdh_Kurz03-OpHat.wav","CYCdh_Kurz03-PdHat.wav","CYCdh_Kurz03-Ride.wav","CYCdh_Kurz03-SdSt.wav","CYCdh_Kurz03-Snr01.wav","CYCdh_Kurz03-Snr02.wav","CYCdh_Kurz03-Tom01.wav","CYCdh_Kurz03-Tom02.wav","CYCdh_Kurz03-Tom03.wav","CYCdh_Kurz03-Tom04.wav"],"Kurzweil-Kit-04":["CYCdh_Kurz04-ClHat.wav","CYCdh_Kurz04-Crash01.wav","CYCdh_Kurz04-Crash02.wav","CYCdh_Kurz04-HfHat.wav","CYCdh_Kurz04-Kick01.wav","CYCdh_Kurz04-Kick02.wav","CYCdh_Kurz04-OpHat.wav","CYCdh_Kurz04-PdHat.wav","CYCdh_Kurz04-Ride01.wav","CYCdh_Kurz04-Ride02.wav","CYCdh_Kurz04-SdSt.wav","CYCdh_Kurz04-Snr01.wav","CYCdh_Kurz04-Snr02.wav","CYCdh_Kurz04-Snr03.wav","CYCdh_Kurz04-Snr04.wav","CYCdh_Kurz04-Tom01.wav","CYCdh_Kurz04-Tom02.wav","CYCdh_Kurz04-Tom03.wav","CYCdh_Kurz04-Tom04.wav","CYCdh_Kurz04-Tom05.wav","CYCdh_Kurz04-Tom06.wav"],"Kurzweil-Kit-05":["CYCdh_Kurz05-Brsh01.wav","CYCdh_Kurz05-Brsh02.wav","CYCdh_Kurz05-Brsh03.wav","CYCdh_Kurz05-ClHat.wav","CYCdh_Kurz05-Crash01.wav","CYCdh_Kurz05-Crash02.wav","CYCdh_Kurz05-HfHat.wav","CYCdh_Kurz05-Kick01.wav","CYCdh_Kurz05-Kicki02.wav","CYCdh_Kurz05-OpHat.wav","CYCdh_Kurz05-PdHat.wav","CYCdh_Kurz05-Ride01.wav","CYCdh_Kurz05-Ride02.wav","CYCdh_Kurz05-SdSt.wav","CYCdh_Kurz05-Snr.wav","CYCdh_Kurz05-Tom01.wav","CYCdh_Kurz05-Tom02.wav","CYCdh_Kurz05-Tom03.wav","CYCdh_Kurz05-Tom04.wav"],"Kurzweil-Kit-06":["CYCdh_Kurz06-ClHat.wav","CYCdh_Kurz06-Crash01.wav","CYCdh_Kurz06-Crash02.wav","CYCdh_Kurz06-HfHat01.wav","CYCdh_Kurz06-HfHat02.wav","CYCdh_Kurz06-Kick01.wav","CYCdh_Kurz06-Kick02.wav","CYCdh_Kurz06-OpHat.wav","CYCdh_Kurz06-PdHat.wav","CYCdh_Kurz06-Ride01.wav","CYCdh_Kurz06-Ride02.wav","CYCdh_Kurz06-SdSt.wav","CYCdh_Kurz06-Snr01.wav","CYCdh_Kurz06-Snr02.wav","CYCdh_Kurz06-Snr03.wav","CYCdh_Kurz06-Tom01.wav","CYCdh_Kurz06-Tom02.wav","CYCdh_Kurz06-Tom03.wav","CYCdh_Kurz06-Tom04.wav"],"Kurzweil-Kit-07":["CYCdh_Kurz07-ClHat01.wav","CYCdh_Kurz07-ClHat02.wav","CYCdh_Kurz07-Crash01.wav","CYCdh_Kurz07-Crash02.wav","CYCdh_Kurz07-HfHat01.wav","CYCdh_Kurz07-HfHat02.wav","CYCdh_Kurz07-Kick02.wav","CYCdh_Kurz07-Kick03.wav","CYCdh_Kurz07-Kicki01.wav","CYCdh_Kurz07-OpHat01.wav","CYCdh_Kurz07-OpHat02.wav","CYCdh_Kurz07-Perc01.wav","CYCdh_Kurz07-Perc03.wav","CYCdh_Kurz07-RevCrash01.wav","CYCdh_Kurz07-RevCrash02.wav","CYCdh_Kurz07-RevHat.wav","CYCdh_Kurz07-SdSt.wav","CYCdh_Kurz07-Snr01.wav","CYCdh_Kurz07-Snr02.wav","CYCdh_Kurz07-Snr03.wav","CYCdh_Kurz07-Snr04.wav","CYCdh_Kurz07-Tom01.wav","CYCdh_Kurz07-Tom02.wav","CYCdh_Kurz07-Tom03.wav","CYCdh_Kurz07-Tom04.wav","CYCdh_Kurz07-Tom05.wav"],"Kurzweil-Kit-08":["CYCdh_Kurz08-Clap.wav","CYCdh_Kurz08-ClHat.wav","CYCdh_Kurz08-Crash01.wav","CYCdh_Kurz08-Crash02.wav","CYCdh_Kurz08-Crash03.wav","CYCdh_Kurz08-Kick01.wav","CYCdh_Kurz08-Kick02.wav","CYCdh_Kurz08-OpHat.wav","CYCdh_Kurz08-PdHat.wav","CYCdh_Kurz08-Perc01.wav","CYCdh_Kurz08-Perc02.wav","CYCdh_Kurz08-Perc03.wav","CYCdh_Kurz08-Perc04.wav","CYCdh_Kurz08-Perc05.wav","CYCdh_Kurz08-Perc06.wav","CYCdh_Kurz08-Perc07.wav","CYCdh_Kurz08-Perc08.wav","CYCdh_Kurz08-Perc09.wav","CYCdh_Kurz08-Scratch01.wav","CYCdh_Kurz08-Scratch02.wav","CYCdh_Kurz08-Scratch03.wav","CYCdh_Kurz08-SdSt01.wav","CYCdh_Kurz08-SdSt02.wav","CYCdh_Kurz08-Snr01.wav","CYCdh_Kurz08-Snr02.wav","CYCdh_Kurz08-Tom01.wav","CYCdh_Kurz08-Tom02.wav","CYCdh_Kurz08-Tom03.wav","CYCdh_Kurz08-Tom04.wav"]}},J={"Larghissimo 20":"20 bpm","Larghissimo 21":"21 bpm","Larghissimo 22":"22 bpm","Larghissimo 23":"23 bpm","Adagissimo 24":"24 bpm","Adagissimo 25":"25 bpm","Adagissimo 26":"26 bpm","Adagissimo 27":"27 bpm","Adagissimo 28":"28 bpm","Adagissimo 29":"29 bpm","Adagissimo 30":"30 bpm","Adagissimo 31":"31 bpm","Adagissimo 32":"32 bpm","Adagissimo 33":"33 bpm","Adagissimo 34":"34 bpm","Grave 35":"35 bpm","Grave 36":"36 bpm","Grave 37":"37 bpm","Grave 38":"38 bpm","Grave 39":"39 bpm","Grave 40":"40 bpm","Grave 41":"41 bpm","Grave 42":"42 bpm","Grave 43":"43 bpm","Grave 44":"44 bpm","Grave 45":"45 bpm","Grave 46":"46 bpm","Grave 47":"47 bpm","Grave 48":"48 bpm","Grave 49":"49 bpm","Largo 50":"50 bpm","Largo 51":"51 bpm","Largo 52":"52 bpm","Lento 53":"53 bpm","Lento 54":"54 bpm","Lento 55":"55 bpm","Lento 56":"56 bpm","Lento 57":"57 bpm","Lento 58":"58 bpm","Lento 59":"59 bpm","Lento 60":"60 bpm","Lento 61":"61 bpm","Lento 62":"62 bpm","Larghetto 63":"63 bpm","Larghetto 64":"64 bpm","Larghetto 65":"65 bpm","Larghetto 66":"66 bpm","Larghetto 67":"67 bpm","Larghetto 68":"68 bpm","Larghetto 69":"69 bpm","Larghetto 70":"70 bpm","Adagio 71":"71 bpm","Adagio 72":"72 bpm","Adagio 73":"73 bpm","Adagio 74":"74 bpm","Adagietto 75":"75 bpm","Adagietto 76":"76 bpm","Adagietto 77":"77 bpm","Adagietto 78":"78 bpm","Adagietto 79":"79 bpm","Adagietto 80":"80 bpm","Adagietto 81":"81 bpm","Adagietto 82":"82 bpm","Adagietto 83":"83 bpm","Marcia moderato 84":"84 bpm","Marcia moderato 85":"85 bpm","Marcia moderato 86":"86 bpm","Marcia moderato 87":"87 bpm","Marcia moderato 88":"88 bpm","Marcia moderato 89":"89 bpm","Marcia moderato 90":"90 bpm","Marcia moderato 91":"91 bpm","Andante 92":"92 bpm","Andante 93":"93 bpm","Andantino 94":"94 bpm","Andante moderato 95":"95 bpm","Andante moderato 96":"96 bpm","Andante moderato 97":"97 bpm","Andante moderato 98":"98 bpm","Andante moderato 99":"99 bpm","Andante moderato 100":"100 bpm","Andante moderato 101":"101 bpm","Andante moderato 102":"102 bpm","Andante moderato 103":"103 bpm","Andante moderato 104":"104 bpm","Moderato 105":"105 bpm","Allegretto 106":"106 bpm","Allegretto 107":"107 bpm","Allegretto 108":"108 bpm","Allegretto 109":"109 bpm","Allegretto 110":"110 bpm","Allegretto 111":"111 bpm","Allegretto 112":"112 bpm","Allegretto 113":"113 bpm","Allegretto 114":"114 bpm","Allegretto 115":"115 bpm","Allegretto 116":"116 bpm","Allegretto 117":"117 bpm","Allegro moderato 118":"118 bpm","Allegro moderato 119":"119 bpm","Allegro moderato 120":"120 bpm","Allegro moderato 121":"121 bpm","Allegro moderato 122":"122 bpm","Allegro moderato 123":"123 bpm","Allegro moderato 124":"124 bpm","Allegro moderato 125":"125 bpm","Allegro moderato 126":"126 bpm","Allegro moderato 127":"127 bpm","Allegro moderato 128":"128 bpm","Allegro moderato 129":"129 bpm","Allegro moderato 130":"130 bpm","Allegro moderato 131":"131 bpm","Allegro moderato 132":"132 bpm","Allegro moderato 133":"133 bpm","Allegro moderato 134":"134 bpm","Allegro moderato 135":"135 bpm","Allegro moderato 136":"136 bpm","Allegro moderato 137":"137 bpm","Allegro 138":"138 bpm","Allegro 139":"139 bpm","Allegro 140":"140 bpm","Allegro 141":"141 bpm","Allegro 142":"142 bpm","Allegro 143":"143 bpm","Allegro 144":"144 bpm","Allegro 145":"145 bpm","Allegro 146":"146 bpm","Allegro 147":"147 bpm","Allegro 148":"148 bpm","Allegro 149":"149 bpm","Allegro 150":"150 bpm","Allegro 151":"151 bpm","Allegro 152":"152 bpm","Allegro 153":"153 bpm","Allegro 154":"154 bpm","Allegro 155":"155 bpm","Allegro 156":"156 bpm","Allegro 157":"157 bpm","Allegro 158":"158 bpm","Allegro 159":"159 bpm","Allegro 160":"160 bpm","Allegro 161":"161 bpm","Allegro 162":"162 bpm","Allegro 163":"163 bpm","Allegro 164":"164 bpm","Allegro 165":"165 bpm","Vivace 166":"166 bpm","Vivace 167":"167 bpm","Vivace 168":"168 bpm","Vivace 169":"169 bpm","Vivace 170":"170 bpm","Vivace 171":"171 bpm","Vivace 172":"172 bpm","Vivace 173":"173 bpm","Vivacissimo 174":"174 bpm","Allegrissimo 174":"174 bpm","Allegro vivace 174":"174 bpm","Allegro vivace 175":"175 bpm","Allegro vivace 176":"176 bpm","Allegro vivace 177":"177 bpm","Allegro vivace 178":"178 bpm","Allegro vivace 179":"179 bpm","Allegro vivace 180":"180 bpm","Allegro vivace 181":"181 bpm","Allegro vivace 182":"182 bpm","Allegro vivace 183":"183 bpm","Presto 184":"184 bpm","Presto 185":"185 bpm","Presto 186":"186 bpm","Presto 187":"187 bpm","Presto 188":"188 bpm","Presto 189":"189 bpm","Presto 190":"190 bpm","Presto 191":"191 bpm","Presto 192":"192 bpm","Presto 193":"193 bpm","Presto 194":"194 bpm","Presto 195":"195 bpm","Presto 196":"196 bpm","Presto 197":"197 bpm","Presto 198":"198 bpm","Presto 199":"199 bpm","Presto 200":"200 bpm","Presto 201":"201 bpm","Presto 202":"202 bpm","Presto 203":"203 bpm","Presto 204":"204 bpm","Prestissimo 205":"205 bpm"},Z=["+30","+20","+10","+0","-10","-20","-30"],Q=function(e){Object(y.a)(t,e);var a=Object(A.a)(t);function t(e){var C;return Object(b.a)(this,t),(C=a.call(this,e)).state={fileStringArray:[],padSelectingFor:""},C.handleMouseOver=C.handleMouseOver.bind(Object(O.a)(C)),C.handleMouseOut=C.handleMouseOut.bind(Object(O.a)(C)),C.makeMenuToolTipText=C.makeMenuToolTipText.bind(Object(O.a)(C)),C.handleClick=C.handleClick.bind(Object(O.a)(C)),C.handleBackNav=C.handleBackNav.bind(Object(O.a)(C)),C.backToDrumPad=C.backToDrumPad.bind(Object(O.a)(C)),C.handleEscKey=C.handleEscKey.bind(Object(O.a)(C)),C}return Object(g.a)(t,[{key:"makeMenuToolTipText",value:function(e){if("( cancel -- back )"===e)return e;if("selectionMenu"===this.props.drumPadGrid)return"pads"===this.props.selectionMenu?"select for "+e:"firstDirMenu"===this.props.selectionMenu?"select for "+this.state.padSelectingFor+": "+e:"secondDirMenu"===this.props.selectionMenu?"select for "+this.state.padSelectingFor+": "+this.state.fileStringArray[0]+"/"+e:"select for "+this.state.padSelectingFor+": "+this.state.fileStringArray.join("/")+"/"+e;if("volumeSelectionMenu"===this.props.drumPadGrid){if("pads"===this.props.selectionMenu)return"volume offset for "+e;if("volumeSelectionMenuItems"===this.props.selectionMenu)return"set volume offset for "+this.state.padSelectingFor+" "+e}else if("metronomeSelectionMenu"===this.props.drumPadGrid){if("pads"===this.props.selectionMenu)return"set metronome tempo for "+e+" (or disable)";if("metronomeSelectionMenuItems"===this.props.selectionMenu)return"Metronome Off"===e?"turn "+e+" for "+this.state.padSelectingFor:"set metronome tempo for "+this.state.padSelectingFor+":"+e.split(":")[1]+" BPM"}}},{key:"handleBackNav",value:function(){"pads"===this.props.selectionMenu?this.backToDrumPad():"selectionMenu"===this.props.drumPadGrid?"firstDirMenu"===this.props.selectionMenu?this.props.setSelectionMenuAction("pads"):"secondDirMenu"===this.props.selectionMenu?this.props.setSelectionMenuAction("firstDirMenu"):"thirdDirMenu"===this.props.selectionMenu||"thirdDirMenu"===this.props.selectionMenu?this.props.setSelectionMenuAction("secondDirMenu"):"fourthDirMenu"===this.props.selectionMenu&&this.props.setSelectionMenuAction("thirdDirMenu"):(this.props.setSelectionMenuAction("pads"),this.setState({padSelectingFor:""}))}},{key:"backToDrumPad",value:function(){this.setState({fileStringArray:[],padSelectingFor:""}),this.props.setDrumPadGridAction("drumPadGrid")}},{key:"handleEscKey",value:function(e){27===e.keyCode&&this.handleClick("( cancel -- back )")}},{key:"handleMouseOver",value:function(e){var a=document.createElement("div");a.setAttribute("id","menuToolTip"),a.textContent=this.makeMenuToolTipText(e),document.getElementById("display-bottom").appendChild(a)}},{key:"handleMouseOut",value:function(){var e=document.getElementById("menuToolTip");e&&e.parentNode.removeChild(e)}},{key:"componentDidMount",value:function(){if(document.addEventListener("keyup",this.handleEscKey,!1),document.getElementById(this.props.drumPadGrid).tabIndex="0",document.getElementById(this.props.drumPadGrid).focus(),!document.getElementById("menuScrollTip")){var e=document.createElement("p");e.setAttribute("id","menuScrollTip"),e.textContent='scroll menu with arrow keys or PgUpDn, "esc" key to go back',document.getElementById("display-top").appendChild(e)}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keyup",this.handleEscKey,!1);var e=document.getElementById("menuScrollTip");e&&e.parentNode.removeChild(e)}},{key:"componentDidUpdate",value:function(e){"selectionMenu"===this.props.drumPadGrid&&("secondDirMenu"===e.selectionMenu&&"firstDirMenu"===this.props.selectionMenu?this.setState({fileStringArray:[]}):"thirdDirMenu"===e.selectionMenu&&"secondDirMenu"===this.props.selectionMenu?this.setState((function(e){return{fileStringArray:[e.fileStringArray[0]]}})):"fourthDirMenu"===e.selectionMenu&&"thirdDirMenu"===this.props.selectionMenu&&this.setState((function(e){return{fileStringArray:[e.fileStringArray[0],e.fileStringArray[1]]}})))}},{key:"handleClick",value:function(e){if("( cancel -- back )"===e)this.handleBackNav();else if("selectionMenu"===this.props.drumPadGrid){if("pads"===this.props.selectionMenu)this.setState({fileStringArray:[],padSelectingFor:e}),this.props.setSelectionMenuAction("firstDirMenu");else if("firstDirMenu"===this.props.selectionMenu)this.setState({fileStringArray:[e]}),this.props.setSelectionMenuAction("secondDirMenu");else if("secondDirMenu"===this.props.selectionMenu)this.setState((function(a){return{fileStringArray:[a.fileStringArray[0],e]}})),this.props.setSelectionMenuAction("thirdDirMenu");else if("thirdDirMenu"===this.props.selectionMenu)if(".wav"===e.substring(e.length-4)){var a=this.state.fileStringArray.join("/")+"/"+e;sessionStorage.setItem(this.state.padSelectingFor,a),this.props.shouldMetronomeRestartAction(this.state.padSelectingFor,!0),this.backToDrumPad()}else this.setState((function(a){return{fileStringArray:[].concat(Object(W.a)(a.fileStringArray),[e])}})),this.props.setSelectionMenuAction("fourthDirMenu");else if("fourthDirMenu"===this.props.selectionMenu){var t=this.state.fileStringArray.join("/")+"/"+e;sessionStorage.setItem(this.state.padSelectingFor,t),this.props.shouldMetronomeRestartAction(this.state.padSelectingFor,!0),this.backToDrumPad()}}else if("volumeSelectionMenu"===this.props.drumPadGrid)"pads"===this.props.selectionMenu?(this.setState({padSelectingFor:e}),this.props.setSelectionMenuAction("volumeSelectionMenuItems")):"volumeSelectionMenuItems"===this.props.selectionMenu&&(sessionStorage.setItem(this.state.padSelectingFor+"volume",e),this.backToDrumPad());else if("metronomeSelectionMenu"===this.props.drumPadGrid)if("pads"===this.props.selectionMenu)this.setState({padSelectingFor:e}),this.props.setSelectionMenuAction("metronomeSelectionMenuItems");else if("metronomeSelectionMenuItems"===this.props.selectionMenu)if("Metronome Off"===e)sessionStorage.setItem(this.state.padSelectingFor+"isMetronome",!1),this.props.toggleMetronomeIsPlayingAction(this.state.padSelectingFor,!1),this.backToDrumPad();else{sessionStorage.setItem(this.state.padSelectingFor+"isMetronome",!0);var C=Math.round(6e4/parseInt(e.split(": ")[1]));sessionStorage.setItem(this.state.padSelectingFor+"metronomeTempo",C),this.props.setMetronomeTempoAction(this.state.padSelectingFor,C),this.backToDrumPad()}this.handleMouseOut()}},{key:"render",value:function(){var e=this,a=function(a){var t=a.map((function(e){return e}));return t.unshift("( cancel -- back )"),t.map((function(a){return function(a){return r.a.createElement("div",{key:e.props.drumPadGrid+e.props.selectionMenu+a,className:"selectionMenuItem",onMouseEnter:function(t){return e.handleMouseOver(a)},onMouseLeave:function(a){return e.handleMouseOut()},onClick:function(){return e.handleClick(a)}},a)}(a)}))};return"selectionMenu"===this.props.drumPadGrid?r.a.createElement("div",{id:"selectionMenu",className:"selectionMenu"},"pads"===this.props.selectionMenu&&a(l),"firstDirMenu"===this.props.selectionMenu&&a(Object.keys(X)),"secondDirMenu"===this.props.selectionMenu&&a(Object.keys(X[this.state.fileStringArray[0]])),"thirdDirMenu"===this.props.selectionMenu&&a(function(){var a=X[e.state.fileStringArray[0]][e.state.fileStringArray[1]].filter((function(e){return"string"===typeof e}));"string"!==typeof X[e.state.fileStringArray[0]][e.state.fileStringArray[1]][0]&&Object.keys(X[e.state.fileStringArray[0]][e.state.fileStringArray[1]][0]).forEach((function(e){return a.push(e)}));return a}()),"fourthDirMenu"===this.props.selectionMenu&&a(X[this.state.fileStringArray[0]][this.state.fileStringArray[1]][0][this.state.fileStringArray[2]])):"volumeSelectionMenu"===this.props.drumPadGrid?r.a.createElement("div",{id:"volumeSelectionMenu",className:"selectionMenu"},"pads"===this.props.selectionMenu&&a(l),"volumeSelectionMenuItems"===this.props.selectionMenu&&a(Z)):"metronomeSelectionMenu"===this.props.drumPadGrid?r.a.createElement("div",{id:"metronomeSelectionMenu",className:"selectionMenu"},"pads"===this.props.selectionMenu&&a(l),"metronomeSelectionMenuItems"===this.props.selectionMenu&&a(function(){var e=Object.keys(J).map((function(e){var a=e.split(" ");return 3===a.length?a[0]+" "+a[1]+": "+J[e].slice(0,-4):a[0]+": "+J[e].slice(0,-4)}));return e.unshift("Metronome Off"),e}())):void 0}}]),t}(r.a.Component),$=Object(d.b)((function(e){return Object(T.a)({},e)}),(function(e){return{setDrumPadGridAction:function(a){return e(w(a))},setSelectionMenuAction:function(a){return e(Y(a))},setMetronomeTempoAction:function(a,t){return e(function(e,a){return{type:"SETMETRONOMETEMPO",key:e,tempo:a}}(a,t))},toggleMetronomeIsPlayingAction:function(a,t){return e(K(a,t))},setSampleAction:function(a,t){return e(function(e,a){return{type:"SETSAMPLE",key:e,sample:a}}(a,t))},shouldMetronomeRestartAction:function(a,t){return e(p(a,t))}}}))(Q),q=function(e){Object(y.a)(t,e);var a=Object(A.a)(t);function t(e){var C;return Object(b.a)(this,t),(C=a.call(this,e)).state={showVolumeToolTip:!1},C.handleMouseOverOut=C.handleMouseOverOut.bind(Object(O.a)(C)),C}return Object(g.a)(t,[{key:"handleMouseOverOut",value:function(e){e!==this.state.showVolumeToolTip&&this.setState({showVolumeToolTip:e})}},{key:"render",value:function(){var e=this;return r.a.createElement("div",{id:"display-middle"},r.a.createElement("div",{id:"display-middle-left"},r.a.createElement("div",{id:"display-middle-left-a"}),r.a.createElement("div",{id:"display-middle-left-b"},"drumPadGrid"===this.props.drumPadGrid&&r.a.createElement(M,null),["selectionMenu","volumeSelectionMenu","metronomeSelectionMenu"].includes(this.props.drumPadGrid)&&r.a.createElement($,null)),r.a.createElement("div",{id:"display-middle-left-c"})),r.a.createElement("div",{id:"display-middle-right"},r.a.createElement("div",{id:"display-middle-right-a"}),r.a.createElement(j,null),r.a.createElement("div",{id:"display-middle-right-c"}),r.a.createElement(N,null),r.a.createElement("div",{id:"display-middle-right-e"}),r.a.createElement("div",{id:"display-middle-right-f",onMouseEnter:function(a){return e.handleMouseOverOut(!0)},onMouseLeave:function(a){return e.handleMouseOverOut(!1)}},this.state.showVolumeToolTip&&r.a.createElement("div",{className:"volumeToolTipContainer"},r.a.createElement("div",{className:"volumeToolTip"},this.props.volume)),r.a.createElement(x,null)),r.a.createElement("div",{id:"display-middle-right-g"})))}}]),t}(r.a.Component),ee=Object(d.b)((function(e){return Object(T.a)({},e)}))(q),ae=function(){return r.a.createElement("div",{id:"drum-machine"},r.a.createElement("div",{id:"display"},r.a.createElement("div",{id:"display-top"}),r.a.createElement(ee,null),r.a.createElement("div",{id:"display-bottom"})))},te=function(e){Object(y.a)(t,e);var a=Object(A.a)(t);function t(){return Object(b.a)(this,t),a.apply(this,arguments)}return Object(g.a)(t,[{key:"render",value:function(){return r.a.createElement("div",{className:"App"},r.a.createElement("a",{href:"https://github.com/TrentSPalmer/fcc-challenges/tree/gh-pages/drum-machine-react",className:"githubLabel",target:"_blank",rel:"noopener noreferrer"},r.a.createElement("img",{src:"https://github.blog/wp-content/uploads/2008/12/forkme_right_white_ffffff.png?resize=149%2C149",className:"attachment-full size-full",alt:"Fork me on GitHub","data-recalc-dims":"1"})),r.a.createElement(ae,null))}}]),t}(r.a.Component);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));n.a.render(r.a.createElement(d.a,{store:f},r.a.createElement(te,null)),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[22,1,2]]]);
|
|
//# sourceMappingURL=main.918fd14d.chunk.js.map
|