aboutsummaryrefslogtreecommitdiff
path: root/src/view/sequencer
diff options
context:
space:
mode:
authorJoris2022-06-19 16:31:38 +0200
committerJoris2022-06-19 16:31:38 +0200
commit6571d1a72c1828d7c2ed902d07ec412110787bcf (patch)
treeec3aabd86ff4ccda2e61251e44a872d475e39b42 /src/view/sequencer
parent91438efeff2cdad7997687ebf4139ce0723982b9 (diff)
Add snare and hit hat closed sounds
Diffstat (limited to 'src/view/sequencer')
-rw-r--r--src/view/sequencer/block.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/view/sequencer/block.ts b/src/view/sequencer/block.ts
index 5776120..ff8d2db 100644
--- a/src/view/sequencer/block.ts
+++ b/src/view/sequencer/block.ts
@@ -5,7 +5,14 @@ interface Params {
onCheck: (checked: boolean) => void
}
-export function view({ checked, onCheck }: Params) {
+export function column(xs: Array<Params>) {
+ return h('ol',
+ { className: 'g-Sequencer__Column' },
+ ...xs.map(params => h('li', {}, block(params)))
+ )
+}
+
+function block({ checked, onCheck }: Params) {
return h('div',
{ className: classNames({
'g-Sequencer__Block': true,