From 91438efeff2cdad7997687ebf4139ce0723982b9 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 12 Jun 2022 14:10:00 +0200 Subject: Play drum sound when clicking on the name --- src/view/sequencer.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/view') 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 -- cgit v1.2.3