-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (80 loc) · 3.29 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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<title>Piano Practice</title>
<link rel="stylesheet" type="text/css" href="piano-practice.css" />
<script type="text/javascript" src="libs/axios.min.js"></script>
<script type="text/javascript" src="libs/vue/vue.js" ></script>
<script type="text/javascript" src="libs/abcjs/abcjs_basic_6.0.0-beta.9-min.js" ></script>
<script type="text/javascript" src="libs/midi/Base64.js" ></script>
<script type="text/javascript" src="libs/midi/Base64binary.js" ></script>
<script type="text/javascript" src="libs/midi/WebAudioAPI.js" ></script>
<script type="text/javascript" src="libs/midi/audioDetect.js" ></script>
<script type="text/javascript" src="libs/midi/loader.js" ></script>
<script type="text/javascript" src="libs/midi/player.js" ></script>
<script type="text/javascript" src="libs/midi/gm.js" ></script>
<script type="text/javascript" src="libs/midi/plugin.audiotag.js" ></script>
<script type="text/javascript" src="libs/midi/plugin.webaudio.js" ></script>
<script type="text/javascript" src="libs/midi/dom_request_xhr.js" ></script>
<script type="text/javascript" src="libs/midi/dom_request_script.js" ></script>
<script type="text/javascript" src="js/note.js" ></script>
</head>
<body>
<div id="app" >
<div id="top-bar" >
<select v-model="selectedMode" >
<option v-for="m in modes" v-bind:value="m.id" >
{{ m.name }}
</option>
</select>
<select v-if="showSongSelection" v-model="selectedSong" >
<option v-for="s in songs" v-bind:value="s.id" >
{{ s.name }}
</option>
</select>
<select v-if="selectedMode == 1" v-model="selectedNoteRange" >
<option v-for="s in singleNoteRanges" v-bind:value="s.id" >
{{ s.name }}
</option>
</select>
<select v-if="selectedMode == 3" v-model="selectedScale" >
<option v-for="s in scales" v-bind:value="s.id" >
{{ s.name }}
</option>
</select>
<keymap-window class="float-right" v-bind:keymap="this.keymap" />
<button v-if="!loaded" class="float-right" v-on:click="loadSoundFont()" type="button" >
Load Soundfont
</button>
</div>
<div id="content-container" ><div id="content" >
<div id="music-page" ></div>
<div id="notes-on" v-bind:class="{ red: showFail, green: showSuccess }" >{{ notesOn }}</div>
<br />
<div id="instructions" >
Use the home-row keys to play notes. <br />
Press the "Keys" button on the top right to see the key bindings.
</div>
</div></div>
<div v-if="showHint" id="help-dialog" >
<div id="hint" >
{{ hint }}
</div>
<br />
<button v-if="!loaded" v-on:click="loadSoundFont()" type="button" >Load Soundfont</button>
</div>
</div>
<script type="text/javascript" src="js/keymap.js" ></script>
<script type="text/javascript" src="js/main_page.js" ></script>
<script type="text/javascript" src="js/tests.js" ></script>
</body>
</html>