Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geiger counter view #115

Merged
merged 1 commit into from Mar 14, 2016
Merged

Geiger counter view #115

merged 1 commit into from Mar 14, 2016

Conversation

gfv
Copy link

@gfv gfv commented Mar 12, 2016

Glancing across the dashboard several times a minute is a bad thing to do if you're doing something that requires concentration. However, you probably want to notice if something goes wrong.

Your visual attention is usually taken by terminals and text editors, but hearing is probably left underused. This patch adds a view that emits a "click" sound when it gets an event, almost like a Geiger radiation counter. When bound to a stream that emits an event on every exception in your system, it should sound pretty rarely and your mind will tune it out eventually, but when something goes wrong, the amount of clicks will sharply rise, changing the sound and grabbing your attention to the issue.

On the technical side: this thing uses WebAudio's AudioBuffers to cache sounds. Sounds can be played concurrently, so to smooth out the volume all playing sounds are mixed into a hard limiter and then to an amplifier node. Amplifier gain is controlled with a volume slider in view options. I've experimented for a bit and it seems like a quadratic relationship between slider value and gain is very intuitive.

Included sound files are a Geiger counter click (geiger.wav) and a short 1000hz beep (beep.wav).

@faxm0dem
Copy link

This sounds brilliant (pun intended)!

@aphyr
Copy link
Collaborator

aphyr commented Mar 12, 2016

Neat!

@mfournier
Copy link

This is an excellent idea, thanks so much @gfv !
Using beep.wav you almost feel like in a hospital ER ;-)

mfournier pushed a commit that referenced this pull request Mar 14, 2016
@mfournier mfournier merged commit 9d7cfaf into riemann:master Mar 14, 2016
@faxm0dem
Copy link

@gfv how do you activate this view?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants