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

Add sound to keys #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jeffreyhshapiro
Copy link

Description

This is a small PR just that adds sound to the keys only. None of the knobs or buttons were given functionality (yet). The sound was hidden behind a flag so that a user wouldn't start hitting buttons and wonder why knobs/buttons appear to not work since the keys do.

The sound was made possible with ToneJS, which adds a layer of organization over the WebAudio API.

To Test

To hear sound, add ?playSound=true to the URL. It's currently a synth sound, but ToneJS makes it possible to swap in sound files (using Sampler) which can then make it possible to make it play a piano sound.

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.

1 participant