-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseq.html
More file actions
31 lines (25 loc) · 691 Bytes
/
seq.html
File metadata and controls
31 lines (25 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<title>Seq</title>
<link rel="stylesheet" href="seq.css" />
</head>
<body>
<div class="transport">
<div class="play" data-bind="css:{on:playing}, click:playClicked">▶</div>
</div>
<div class="sequence" data-bind="with: sequence">
<!-- ko foreach: ticks -->
<div class="tick" data-bind="css:{'tick-current':current}">
<!-- ko foreach: notes -->
<div class="note" data-bind="css:{'note-on':on}, click:onClick"></div>
<!-- /ko -->
</div>
<!-- /ko -->
</div>
<canvas data-bind="analyser: { audioContext: a, target: out } " />
<script src="knockout.js"></script>
<script src="seq.js"></script>
<script src="seq-test.js"></script>
</body>
</html>