aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoris2022-06-12 14:10:00 +0200
committerJoris2022-06-12 14:10:00 +0200
commit91438efeff2cdad7997687ebf4139ce0723982b9 (patch)
treebee0a707370a1123314a584c4a246889cdc7e203 /src
parent1e0c8631f228ceb251f838b40d0a6efae0b4cf4d (diff)
Play drum sound when clicking on the name
Diffstat (limited to 'src')
-rw-r--r--src/view/sequencer.ts16
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