homepage/toys/starship/index.md

32 lines
765 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Starship Noise Generator
scripts:
- starship.js
headers:
- <link rel="manifest" href="manifest.json">
---
<div>
<button id="play" class="big">▶️</button>
<span>
🔉
<input id="fader" type="range" min="0" max="10" step="0.01" />
🔊
</span>
</div>
I work in a building with no HVAC,
which means we can hear <em>everything</em> people are saying,
anywhere in the building.
This page is a low-CPU noise generator that runs entirely in JavaScript.
Once it starts,
you dont need an Internet connection to keep it going.
You can leave it running forever, if you like.
For those interested,
it uses the new (in 2017), perfect for this application,
[Web Audio API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API)