From 6571d1a72c1828d7c2ed902d07ec412110787bcf Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 19 Jun 2022 16:31:38 +0200 Subject: Add snare and hit hat closed sounds --- src/view/sequencer/block.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/view/sequencer') 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) { + 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, -- cgit v1.2.3