diff options
author | Joris | 2022-06-19 16:31:38 +0200 |
---|---|---|
committer | Joris | 2022-06-19 16:31:38 +0200 |
commit | 6571d1a72c1828d7c2ed902d07ec412110787bcf (patch) | |
tree | ec3aabd86ff4ccda2e61251e44a872d475e39b42 /src/view/sequencer | |
parent | 91438efeff2cdad7997687ebf4139ce0723982b9 (diff) |
Add snare and hit hat closed sounds
Diffstat (limited to 'src/view/sequencer')
-rw-r--r-- | src/view/sequencer/block.ts | 9 |
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, |