-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjampal.html
159 lines (151 loc) · 6.15 KB
/
jampal.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Jam Pal</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/spectrum.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div id="jampal">
<div class="head">
<div class="songname"><input type="text" name="songname"/></div>
<div class="storage"><span class="material-icons">storage</span></div>
<div class="signature">
<input type="number" min="1" max="20" value="4" name="signatureA" class="siga" />
<input type="number" min="1" max="20" value="4" name="signatureB" class="sigb"/>
</div>
<div class="tempo"><input type="number" min="1" max="300" value="120" name="tempo" id="bpm"/><br /> <!--i>bpm</i--> <a href="#"><span class="material-icons" id="taptempo">insert_link</span></a></div>
<div class="metronome">
<a href="#"><span class="material-icons" id="metronome_toggle">call_merge</span></a>
<a href="#"><span class="material-icons" id="running_toggle">redo</span></a>
</div>
<div class="addpart"><a href="#" title="(P)">Add<br/>Part</a></div>
<div class="repetitions">
<a href="#" class="plus" title="(+)">+</a>
<a href="#" class="minus" title="(-)">-</a>
<span class="material-icons" >sync</span>
</div>
<div class="chordlength">
<a href="#" class="plus" title="(L)">+</a>
<a href="#" class="minus" title="(K)">-</a>
<span class="material-icons" >swap_horiz</span>
</div>
<div class="mode">
<select name="modeselect">
<option value="chords">chords</option>
</select>
</div>
<div class="settings"><a href="#"><span class="set material-icons" >settings</span></a><a href="#" ><span class="hlp material-icons" >help</span></a></div>
</div>
<div class="main ">
<div class="thediv"></div>
</div>
<!-- Modal -->
<div class="modal fade" id="noteModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg " role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Note</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<textarea id="noteedit"></textarea>
</div>
<!--<div class="modal-footer">-->
<!--<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>-->
<!--<button type="button" class="btn btn-primary">Save changes</button>-->
<!--</div>-->
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="helpModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg " role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="helpModalLabel">Help</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h6>keyboard control</h6>
<ul>
<li><b>?</b>, <b>/</b> - this help</li>
</ul>
<ul>
<li><b>↑ ↓</b> - select part</li>
<li><b>← → (ctrl + ← →)</b> - select chords (rounds)</li>
<li><b>alt + ↑ ↓</b> - move part up/down</li>
<li><b>P</b> - add new part</li>
<li><b>B</b> - duplicate selected part</li>
<li><b>backspace, delete</b> - remove selected item</li>
</ul>
<ul>
<li><b>space</b> - edit selected part name</li>
<li><b>N</b> - edit note for this part</li>
<li><b>+</b>, <b>-</b> - increase/decrease round repetitions</li>
<li><b>K</b>, <b>L</b> - increase/decrease chord length</li>
<li><b>T</b> - tap metronome tempo</li>
<li><b>R</b> - toggle metronome</li>
</ul>
<ul>
<li><b>C</b>,<b>D</b>,<b>E</b>,<b>F</b>,<b>G</b>,<b>A</b>,<b>H</b> - set root note of chord</li>
<li><b>m</b> - set as minor</li>
<li><b>#</b>, <b>3</b> - add halftone </li>
<li><b>7</b> - set as 7 chord type</li>
<li><b>s</b> - set as sub chord</li>
<li><b>2</b> - set as octova higher chord</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="storageModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg " role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="storageModalLabel">Load & save</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h6>Save song</h6>
<div><a href="#" id="downloadLink">download.json</a></div>
<hr/>
<h6>Load song</h6>
<div><input id="fileField" type="file" accept=".jpl" /></div>
<hr/>
<h6>New song</h6>
<div><a href="#" id="newSongLink">clear everything</a></div>
</div>
</div>
</div>
</div>
<div id="tempooverlay" data-n="1"> </div>
</div>
</body>
<!--<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>-->
<script src="js/jquery-3.3.1.slim.min.js"></script>
<script src="js/bootstrap.bundle.js"></script>
<script src="js/jquery.hotkeys.js"></script>
<script src='js/spectrum.js'></script>
<!--<script src='js/jquery-sortable.js'></script>-->
<script src="js/metronome.js"></script>
<script src="js/persistence.js"></script>
<script src="js/jampal.js"></script>
<script src="js/example_data1.js"></script>
<script src="js/example_nobody.js"></script>
<script>
$(document).ready(function(){
initJamPal();
});
</script>
</html>