diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-04-29 13:44:55 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-04-29 13:44:55 -0400 |
| commit | 981ca86789e7fb12df0de81907075d397dd74f50 (patch) | |
| tree | 226e5922f91f41103275b1dfbe84f358838c87cb /client | |
honeycomb init
Diffstat (limited to 'client')
| -rw-r--r-- | client/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/client/index.js b/client/index.js new file mode 100644 index 0000000..66edc9a --- /dev/null +++ b/client/index.js @@ -0,0 +1,14 @@ +import Tone from 'tone' +import keys from './lib/keys' +import kalimba from './lib/kalimba' +import colundi from './lib/colundi' +import { mod, browser, requestAudioContext } from './lib/util' + +requestAudioContext(() => { +}) + +keys.listen(function(index){ + const freq = colundi.index(index) + kalimba.play(freq) +}) + |
