Details container, webpack caching
Added the information in a container because I don't think that many people care about what's going on. worklet-loader uses a hash to avoid caching issues, I just ran into them
This commit is contained in:
6 files changed
+81
-90
No files matched your search
+77
-73
@@ -16,6 +16,7 @@
|
||||
:root {
|
||||
--input-color: rgb(255 255 255 / .52);
|
||||
--input-border: #424242;
|
||||
--accent: #448aff;
|
||||
}
|
||||
html, body {
|
||||
font-family: "Roboto", Helvetica, Arial, sans-serif;
|
||||
@@ -71,12 +72,31 @@
|
||||
option[disabled] { color: rgb(0 0 0 / .3); }
|
||||
button:focus,
|
||||
select:focus {
|
||||
border-color: #448aff;
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
button, select {
|
||||
button, select, details {
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
margin: -1em;
|
||||
padding: 1em;
|
||||
/* color: var(--input-color); */
|
||||
}
|
||||
details {
|
||||
border: 2px solid var(--input-border);
|
||||
padding: 1em;
|
||||
}
|
||||
details[open] > summary {
|
||||
margin: -1em -1em 1em;
|
||||
border-bottom: 2px solid var(--input-border);
|
||||
}
|
||||
details > summary:focus {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
canvas {
|
||||
position: fixed;
|
||||
@@ -110,30 +130,10 @@
|
||||
opacity: .5;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
|
||||
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
|
||||
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"
|
||||
onload="renderMathInElement(document.body, {
|
||||
fleqn: true,
|
||||
delimiters: [
|
||||
{ left: '$$', right: '$$', display: true },
|
||||
{ left: '$', right: '$', display: false }
|
||||
]
|
||||
});"></script> -->
|
||||
</head>
|
||||
<body>
|
||||
<canvas></canvas>
|
||||
<div class="container">
|
||||
<div class="warn">
|
||||
<p>
|
||||
There’s currently a bug in Chrome that causes the <code>subtract-overlap</code> filter to glitch and scream.
|
||||
Refrain from using it, it’ll hurt your years X(
|
||||
</p>
|
||||
<p>(This glitch doesn’t occur in Firefox, so maybe try that instead :) )</p>
|
||||
</div>
|
||||
<p>
|
||||
Drag and drop an audio file anywhere or <button id="choose">choose one from your filesystem.</button>
|
||||
</p>
|
||||
@@ -163,57 +163,61 @@
|
||||
</p>
|
||||
<audio controls></audio>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<code>noop</code>
|
||||
<p>Leaves the audio unchanged.</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>derivative</code>
|
||||
<p>
|
||||
Approximates the first derivative of the audio as a function respect to time.
|
||||
Sounds like a <strong>high-pass filter</strong>.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>integral</code>
|
||||
<p>
|
||||
Approximates the first integral of the audio as a function respect to time. Plus C of zero. Sounds like a <strong>low-pass filter</strong>.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>subtract-overlap</code>
|
||||
<p>Inverts the amplitude of every even-numbered channel and merges all channels to mono. This effectively cancels the sounds the left and right channels share in common. Quick-and-dirty way of removing vocals.</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>isolate-overlap</code>
|
||||
<p>The opposite of subtract-overlap. You think it'd be simple but I can't get it to work :/</p>
|
||||
</li>
|
||||
<!-- bit-crusher-sr8
|
||||
bit-crusher-res -->
|
||||
<li>
|
||||
<code>bit-crusher-sr8</code>
|
||||
<p>Bitcrusher. Works by taking the average of 8 samples of the input and setting that average as the output for those 8 samples, effectively <strong>reducing the sampling rate</strong>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>bit-crusher-res</code>
|
||||
<p>Bitcrusher. Works by <strong>reducing the resolution of each sample</strong> from a 32-bit float to a 8-bit float.</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>bit-crusher-both</code>
|
||||
<p>Bitcrusher. Combines the output of bit-crusher-sr8 and bit-crusher-res.</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>mono</code>
|
||||
<p>
|
||||
Converts the audio to mono by taking the arithmetic average of the samples of each channel.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>zeroes</code>
|
||||
<p>Outputs no sound.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<details>
|
||||
<summary>What does each filter do?</summary>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<code>noop</code>
|
||||
<p>Leaves the audio unchanged.</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>derivative</code>
|
||||
<p>
|
||||
Approximates the first derivative of the audio as a function respect to time.
|
||||
Sounds like a <strong>high-pass filter</strong>.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>integral</code>
|
||||
<p>
|
||||
Approximates the first integral of the audio as a function respect to time. Plus C of zero. Sounds like a <strong>low-pass filter</strong>.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>subtract-overlap</code>
|
||||
<p>Inverts the amplitude of every even-numbered channel and merges all channels to mono. This effectively cancels the sounds the left and right channels share in common. Quick-and-dirty way of removing vocals.</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>isolate-overlap</code>
|
||||
<p>The opposite of subtract-overlap. You think it'd be simple but I can't get it to work :/</p>
|
||||
</li>
|
||||
<!-- bit-crusher-sr8
|
||||
bit-crusher-res -->
|
||||
<li>
|
||||
<code>bit-crusher-sr8</code>
|
||||
<p>Bitcrusher. Works by taking the average of 8 samples of the input and setting that average as the output for those 8 samples, effectively <strong>reducing the sampling rate</strong>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>bit-crusher-res</code>
|
||||
<p>Bitcrusher. Works by <strong>reducing the resolution of each sample</strong> from a 32-bit float to a 8-bit float.</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>bit-crusher-both</code>
|
||||
<p>Bitcrusher. Combines the output of bit-crusher-sr8 and bit-crusher-res.</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>mono</code>
|
||||
<p>
|
||||
Converts the audio to mono by taking the arithmetic average of the samples of each channel.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<code>zeroes</code>
|
||||
<p>Outputs no sound.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<p class="credits">
|
||||
Made with :3c by <a href="https://benjic.xyz">MindfulMinun</a>
|
||||
|
||||
Reference in new issue
Block a user