homepage/content/toys/starship/index.md

33 lines
840 B
Markdown
Raw Normal View History

2018-11-21 13:29:51 -07:00
---
title: Starship Noise Generator
2022-09-04 16:59:13 -06:00
description: generate some background noise if your workspace is too quiet
2018-11-21 13:29:51 -07:00
scripts:
- starship.js
headers:
- <link rel="manifest" href="manifest.json">
---
<div>
2018-11-21 15:22:41 -07:00
<button id="play" class="big">▶️</button>
2018-11-21 13:29:51 -07:00
<span>
🔉
<input id="fader" type="range" min="0" max="10" step="0.01" />
🔊
</span>
</div>
2018-11-21 15:09:43 -07:00
2018-11-21 13:29:51 -07:00
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)