deploy: 0c21770eaa
This commit is contained in:
1
assets/TransportProcessor-6c073985.js
Normal file
1
assets/TransportProcessor-6c073985.js
Normal file
@ -0,0 +1 @@
|
||||
var o=Object.defineProperty;var u=(e,s,i)=>s in e?o(e,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[s]=i;var a=(e,s,i)=>(u(e,typeof s!="symbol"?s+"":s,i),i);(function(){"use strict";class e extends AudioWorkletProcessor{constructor(t){super(t);a(this,"handleMessage",t=>{t.data&&t.data.type==="ping"?this.port.postMessage(t.data):t.data==="start"?this.started=!0:t.data==="pause"?this.started=!1:t.data==="stop"?this.started=!1:t.data.type==="bpm"?(this.bpm=t.data.value,this.currentPulsePosition=0):t.data.type==="ppqn"?(this.ppqn=t.data.value,this.currentPulsePosition=0):t.data.type==="nudge"&&(this.nudge=t.data.value)});this.port.addEventListener("message",this.handleMessage),this.port.start(),this.nudge=0,this.started=!1,this.bpm=120,this.ppqn=48,this.currentPulsePosition=0}process(t,p,d){if(this.started){const n=(currentTime+this.nudge/1e3)/(60/this.bpm),r=Math.ceil(n*this.ppqn);r>this.currentPulsePosition&&(this.currentPulsePosition=r,this.port.postMessage({type:"bang"}))}return!0}}registerProcessor("transport",e)})();
|
||||
@ -1 +0,0 @@
|
||||
var n=Object.defineProperty;var p=(e,s,r)=>s in e?n(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r;var a=(e,s,r)=>(p(e,typeof s!="symbol"?s+"":s,r),r);(function(){"use strict";class e extends AudioWorkletProcessor{constructor(t){super(t);a(this,"handleMessage",t=>{t.data&&t.data.type==="ping"?this.port.postMessage(t.data):t.data==="start"?this.started=!0:t.data==="pause"?this.started=!1:t.data==="stop"?this.started=!1:t.data.type==="bpm"?(this.bpm=t.data.value,this.currentPulsePosition=0):t.data.type==="ppqn"&&(this.ppqn=t.data.value,this.currentPulsePosition=0)});this.port.addEventListener("message",this.handleMessage),this.port.start(),this.started=!1,this.bpm=120,this.ppqn=48,this.currentPulsePosition=0}process(t,u,h){if(this.started){const o=currentTime/(60/this.bpm),i=Math.ceil(o*this.ppqn);i>this.currentPulsePosition&&(this.currentPulsePosition=i,this.port.postMessage({type:"bang"}))}return!0}}registerProcessor("transport",e)})();
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
22
index.html
22
index.html
@ -8,8 +8,8 @@
|
||||
|
||||
|
||||
<script src="https://unpkg.com/hydra-synth"></script>
|
||||
<script type="module" crossorigin src="/assets/index-7ec2a84a.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-3ab5b43f.css">
|
||||
<script type="module" crossorigin src="/assets/index-5f8bce62.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-59cf8db1.css">
|
||||
</head>
|
||||
<style>
|
||||
|
||||
@ -306,7 +306,23 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Audio nudge slider -->
|
||||
<div id="midi-settings-container" class="bg-gray-200 rounded-lg flex flex-col mx-4 my-4 pt-4 pb-2">
|
||||
<p class="font-bold text-xl ml-4 pb-4 underline underline-offset-4">Audio Output nudge</p>
|
||||
<div class="flex flex-colunm">
|
||||
<input
|
||||
type="range" id="audio_nudge"
|
||||
name="rangeInput"
|
||||
min="-1000" max="1000"
|
||||
value="0"
|
||||
class="w-full ml-4"
|
||||
oninput="amount.value=audio_nudge.value"
|
||||
>
|
||||
<output name="amount" id="amount" for="rangeInput" class="bg-gray-500 rounded-lg ml-2 mr-4 px-4 py-1 text-white">0</output>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex space-x-6 border-t border-gray-200 rounded-b dark:border-gray-600 mx-4 border-spacing-y-4">
|
||||
<button id="close-settings-button" data-modal-hide="defaultModal" type="button" class="hover:bg-gray-700 bg-gray-800 mt-4 mb-4 text-white focus:ring-4 font-medium rounded-lg text-sm px-5 py-2.5 text-center">OK</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user