-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
166 lines (145 loc) · 6.2 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Musician's Website</title>
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/select2.min.css" media="all" type="text/css"/>
<link rel="stylesheet" href="css/abcjs-midi.css" media="all" type="text/css"/>
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div class="row">
<div class="col-md-12 center-block text-center">
<h1 style="margin-bottom: 5%">Musician's Website <span class="small">(An experiment in design and using the latest web features)</span>
</h1>
</div>
</div>
<!-- NOTATION -->
<!-- Staff to draw-->
<div class="row">
<div class="col-md-12 center-block text-center">
<h2 class="lead">Notation - For Composers</h2>
<div class="center-block" id="staff"></div>
</div>
</div>
<!-- Where to display warnings -->
<div class="row">
<div class="col-md-12">
<div id="warnings"></div>
</div>
</div>
<!-- ABC Editor -->
<div class="row">
<div class="col-lg-12 center-block text-center">
<textarea title="abc" class="form-control center-block" rows="5" name="abc" id="abc">
X:1
T: Etude of Platte
C: Tresdon Jones
M: 4/4
abce | abce | bcde | fbcd| bcde |
B3a1 | CD3 | Ba3 | B4| bcde |
a2c2 | a1c3 | bcde | b2cd| bed2 ||
</textarea>
</div>
</div>
<!-- Midi Renderer -->
<div class="row text-center center-block">
<div class="col-lg-12 center-block text-center">
<div id="abc-midi" class="center-block text-center" style="margin-top:2%;"></div>
</div>
</div>
<!-- BUTTONS -->
<div class="row text-center center-block">
<div class="col-lg-12 center-block text-center" style="margin-top:2%;">
<button id="etude_of_platte" onclick="etudeOfPlatte()" type="button" class="btn btn-primary">Etude of Platte
</button>
<button id="why_wont_it_snow" onclick="whyWontItSnow()" type="button" class="btn btn-primary">Why won't it
snow
</button>
<button id="apple_tree" onclick="appleTree()" type="button" class="btn btn-primary">Apple Tree</button>
</div>
</div>
<!-- VIDEO -->
<div class="row text-center center-block" style="margin-top: 7%;">
<div class="col-lg-12 center-block text-center">
<h2 class="lead">Video - For Performers</h2>
<audio id="audio_for_video" controls mediagroup="video-example" style="margin-top: 2%;">
<source src="video/audio.mp3">
</audio>
</div>
</div>
<div class="row text-center center-block">
<div class="col-lg-12 center-block text-center">
<video id="angle1" class="center-block" width="75%" height="75%" mediagroup="video-example" preload="auto">
<source src="video/angle1.mp4">
</video>
<video id="angle2" class="center-block" width="75%" height="75%" mediagroup="video-example" preload="auto"
style="display:none">
<source src="video/angle2.mp4">
</video>
<video id="angle3" class="center-block" width="75%" height="75%" mediagroup="video-example" preload="auto"
style="display:none">
<source src="video/angle3.mp4">
</video>
</div>
</div>
<div class="row text-center center-block" style="margin-top:3%; margin-bottom: 10%">
<div class="col-lg-12 center-block text-center">
<button id="angle1button" onclick="switchToAngle1()" type="button" class="btn btn-primary">Angle 1</button>
<button id="angle2button" onclick="switchToAngle2()" type="button" class="btn btn-primary">Angle 2</button>
<button id="angle3button" onclick="switchToAngle3()" type="button" class="btn btn-primary">Angle 3</button>
</div>
</div>
<!-- CANVAS STUFF -->
<div class="row text-center center-block" style="margin-top:3%; margin-bottom: 10%">
<div class="col-lg-12 center-block text-center">
<h2 class="lead">If you have a midi device plugged in try banging on that thing now!</h2>
<canvas id="canvas"></canvas>
<div class="row text-center center-block" style="margin-top:3%; margin-bottom: 10%">
<div class="col-lg-12 center-block text-center">
<button type="button" class="btn btn-primary" onclick="clearCanvas()">Clear Canvas</button>
</div>
</div>
</div>
</div>
<!-- PLAY MIDI -->
<div class="row">
<div class="col-md-12">
<div id="midi"></div>
</div>
</div>
<!-- JQuery and Bootstrap -->
<script src="js/jquery-3.1.1.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<!-- abc.js -->
<script src="js/abcjs/abcjs_editor.min.js" type="text/javascript"></script>
<!-- polyfill -->
<script src="js/shim/Base64.js" type="text/javascript"></script>
<script src="js/shim/Base64binary.js" type="text/javascript"></script>
<script src="js/shim/WebAudioAPI.js" type="text/javascript"></script>
<!-- midi.js package -->
<script src="js/midi/audioDetect.js" type="text/javascript"></script>
<script src="js/midi/gm.js" type="text/javascript"></script>
<script src="js/midi/loader.js" type="text/javascript"></script>
<script src="js/midi/player.js" type="text/javascript"></script>
<script src="js/midi/plugin.audiotag.js" type="text/javascript"></script>
<script src="js/midi/plugin.webaudio.js" type="text/javascript"></script>
<script src="js/midi/plugin.webmidi.js" type="text/javascript"></script>
<!-- JSMIDI -->
<script src="js/midi.js" type="text/javascript"></script>
<!-- utils -->
<script src="js/util/dom_request_xhr.js" type="text/javascript"></script>
<script src="js/util/dom_request_script.js" type="text/javascript"></script>
<!-- Jasmid -->
<script src="js/jasmid/midifile.js" type="text/javascript"></script>
<script src="js/jasmid/replayer.js" type="text/javascript"></script>
<script src="js/jasmid/stream.js" type="text/javascript"></script>
<!--Our JS-->
<script src="js/abcjs/abcstaff.js" type="text/javascript"></script>
<script src="js/midi.js" type="text/javascript"></script>
<script src="js/video.js" type="text/javascript"></script>
</body>
</html>