diff options
author | Joris | 2022-06-12 14:10:00 +0200 |
---|---|---|
committer | Joris | 2022-06-12 14:10:00 +0200 |
commit | 91438efeff2cdad7997687ebf4139ce0723982b9 (patch) | |
tree | bee0a707370a1123314a584c4a246889cdc7e203 /src/view/sequencer.ts | |
parent | 1e0c8631f228ceb251f838b40d0a6efae0b4cf4d (diff) |
Play drum sound when clicking on the name
Diffstat (limited to 'src/view/sequencer.ts')
-rw-r--r-- | src/view/sequencer.ts | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/view/sequencer.ts b/src/view/sequencer.ts index 150f89b..3bca278 100644 --- a/src/view/sequencer.ts +++ b/src/view/sequencer.ts @@ -53,7 +53,21 @@ export function view() { })) } }), - blocksNode + h('div', + { className: 'g-Sequencer__Grid' }, + h('ol', + { className: 'g-Sequencer__Sounds' }, + h('li', + { onclick: async () => { + let sounds = await soundsLib.load() + soundsLib.playKick(sounds) + } + }, + 'Bass' + ) + ), + blocksNode + ) ) return sequencer |