2018-11-21 13:19:31 -07:00
|
|
|
|
---
|
|
|
|
|
title: Starship Noise Generator
|
|
|
|
|
scripts:
|
|
|
|
|
- starship.js
|
|
|
|
|
---
|
|
|
|
|
|
2018-11-21 12:19:47 -07:00
|
|
|
|
#play {
|
|
|
|
|
padding: 0;
|
|
|
|
|
border: 0;
|
|
|
|
|
margin: 1em;
|
|
|
|
|
font-size: 2em;
|
|
|
|
|
background: inherit;
|
|
|
|
|
}
|
2018-11-21 13:19:31 -07:00
|
|
|
|
<div>
|
|
|
|
|
<button id="play">⏯️</button>
|
|
|
|
|
🔉
|
|
|
|
|
<input id="fader" type="range" min="0" max="10" step="0.01" />
|
|
|
|
|
🔊
|
|
|
|
|
</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 don’t 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) and seriously perfect for this application
|
|
|
|
|
[Web Audio API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API)
|
2018-11-21 12:19:47 -07:00
|
|
|
|
|