-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpitchpipe.html
99 lines (85 loc) · 3.88 KB
/
pitchpipe.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
<title>HTML5 Chromatic Pitchpipe</title>
<!-- Bootstrap core CSS -->
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<!-- Custom styles for this template -->
<link href="starter-template.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.btn { width: 75px; margin-left: 3px; margin-top: 10px; }
</style>
</head>
<body>
<div class="container">
<div>
<h3>Chromatic Pitch Pipe</h3>
<div style="min-width:300px; max-width:400px">
<button class="btn btn-primary noteButton" data-note-id="f_low">F (low)</button>
<button class="btn btn-primary noteButton" data-note-id="f_sharp">F♯ / G♭</button>
<button class="btn btn-primary noteButton" data-note-id="g">G</button>
<button class="btn btn-primary noteButton" data-note-id="g_sharp">G♯ / A♭</button>
<button class="btn btn-primary noteButton" data-note-id="a">A</button>
<button class="btn btn-primary noteButton" data-note-id="a_sharp">A♯ / B♭</button>
<button class="btn btn-primary noteButton" data-note-id="b">B</button>
<button class="btn btn-primary noteButton" data-note-id="c">C</button>
<button class="btn btn-primary noteButton" data-note-id="c_sharp">C♯ / D♭</button>
<button class="btn btn-primary noteButton" data-note-id="d">D</button>
<button class="btn btn-primary noteButton" data-note-id="d_sharp">D♯ / E♭</button>
<button class="btn btn-primary noteButton" data-note-id="e">E</button>
<button class="btn btn-primary noteButton" data-note-id="f_high">F (high)</button>
</div>
<div style="width:200px">
<div class="form-group">
<label for="duration">Duration in seconds </label>
<select class="form-control" id="duration">
<option value="1">1</option>
<option value="2">2</option>
<option value="3" selected="selected">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
</div>
<div class="form-group">
<label for="baselineFreq">Baseline frequency</label>
<select class="form-control" name="baselineFreq">
<option value="440" selected="selected">A = 440 Hz</option>
<option value="443">A = 443 Hz</option>
<option value="445">A = 445 Hz</option>
</select>
</div>
<div class="form-group">
<label for="oscType">Waveform</label>
<select class="form-control" name="waveform">
<option value="sine" selected="selected">Sine</option>
<option value="square">Square</option>
<option value="triangle">Triangle</option>
</select>
</div>
</div>
</div>
</div><!-- /.container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="./pitchpipe.js"></script>
</body>
</html>