-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (95 loc) · 1.97 KB
/
index.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!doctype html>
<html>
<head>
<title>Choon.js</title>
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0;
border: 0;
padding: 0;
}
body {
background: black;
color: white;
font-family: Helvetica;
}
* {
user-select: none;
}
textarea,
output {
user-select: text;
}
textarea {
width: calc(100% - 16px);
max-width: calc(100% - 16px);
margin: 5px;
white-space: pre;
word-wrap: normal;
overflow-x: auto;
font-family: monospace;
background: black;
color: white;
border: 1px solid white;
}
fieldset {
border: 1px solid white;
}
textarea:focus {
box-shadow: 0 0 1px 1px hsl(190, 100%, 50%);
border: 1px solid hsl(200, 100%, 80%);
outline: none;
}
output {
display: block;
font-family: monospace;
opacity: 0.9;
}
output.error {
color: red;
}
h1 {
margin: 0;
padding: 15px;
}
a {
color: hsl(190, 100%, 70%);
text-decoration: none;
border-bottom: 1px solid hsl(190, 100%, 70%);
}
a:nth-child(2) {
opacity: 0.7;
}
</style>
<script src="choon.js"></script>
<script src="app.js"></script>
</head>
<body>
<h1><a href="https://web.archive.org/web/20160719132722/http://www.stephensykes.com/choon/choon.html">Choon</a><a
href="https://github.com/1j01/choon.js">.js</a></h1>
<textarea spellcheck="false">B+B+B+E
||:
F#
||:
%%%%%
FFF%FFF%FFF%CCC%CCC%CCC%FFF%FFF%FFF%FFFFFF%%%%%%
GGG%GGG%GGG%DDD%DDD%DDD%GGGGGGGGG%%%%%%
EEEE%%%EEE%EEE%%%%%%EEE%EEE%EEE%EEE%%%%%%
CCC%%%%%CCC%DDD%%%%%EEE%FFF%FFF%FFF%FFFFFF
%%%%%
:||
:||</textarea>
<fieldset>
<legend>Sound Type:</legend>
<label><input type="radio" name="sound" value="sharp">Original</label>
<label><input type="radio" name="sound" value="smooth">Whistling</label>
</fieldset>
<label>Note Length: <input id="note-length" type="number" min="10" max="5000" value="100" step="10">ms</label><br>
<button id="play">Play!</button>
<button id="stop">Stop</button>
<output></output>
</body>
</html>