-
Notifications
You must be signed in to change notification settings - Fork 5
/
single-track-daw.html
273 lines (234 loc) · 12.1 KB
/
single-track-daw.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<html>
<head>
<meta charset="utf-8">
<title>Single Track DAW</title>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/sticky-footer-navbar.css" rel="stylesheet">
<style type="text/css">
body { font-family:Arial; padding-top: 0px; }
.pianorollcanvas{ width:800px; }
.navbar-inverse {
background-color: #222222;/*#4b1e78;*/
border-color: #080808;
}
</style>
</head>
<body>
<script>
/*if (window.location.protocol !== 'https:' && window.location.hostname!='localhost') {
window.location = 'https://' + window.location.hostname + window.location.pathname + window.location.hash;
}*/
</script>
<div id="wrap" style="margin-top:0px;">
<div class="navbar navbar-default navbar-fixed-top" id="navbar.bs">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="..">Single Track DAW</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">File <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a data-toggle="modal" href="#fileImport">Import</a></li>
<li><a href="#fileExport" id="fileExport">Export</a></li>
</ul>
</li>
<li class="dropdown">
<a data-toggle="modal" href="#midiOutSelM">MIDI OUT</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a data-toggle="modal" href="#showToU" id="showToUJ">Terms of Use</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container" style="width:800px;">
<div class="container">
<div style="width:800px;">
<div style="width:400px; float:left;">
<div style="width:392px; float:left; margin-left:4px;">
<div>
<div id="divSetOutput" style="background-color:#f0f0f0; border: 1px solid #e4e4e4; border-radius:3px; padding: 5px;"><span class="glyphicon glyphicon-log-out"></span><span id="setOutput" style="padding-left:8px;"></span></div>
</div>
</div>
</div>
<div style="width:400px; float:left;">
<div style="width:400px;">
<div style="float:right; margin-bottom: 6px;">
<div style="float:right;"><input id="resetAllController" class="btn btn-warning panicButton" type="button" value="Panic"></div>
</div>
<div style="float:right; margin-bottom: 6px;">
<div class="btn-group" style="margin-right:12px;">
<button type="button" class="btn btn-default" id="zero" style="height:34px;"><span class="glyphicon glyphicon-fast-backward"></span></button>
<button type="button" class="btn btn-default" id="start" style="height:34px; width:60px;"><span id="startButton" class="glyphicon glyphicon-play"></span></button>
<button type="button" class="btn btn-default" id="stop" style="height:34px;"><span class="glyphicon glyphicon-stop"></span></button>
</div>
</div>
<div class="input-group" style="width: 170px; float:right; margin-right:12px;">
<span class="input-group-addon"><span class="glyphicon glyphicon-heart"></span> Tempo</span>
<input type="number" class="form-control" placeholder="Set Tempo" id="tempo" value="120">
</div>
</div>
</div>
</div>
<div style="clear:both;"></div>
<div style="margin-top:10px;"></div>
<ul class="nav nav-tabs" style="width:800px;">
<li class="active"><a href="#pianorolltab" data-toggle="tab">Ch 1</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="pianorolltab">
<br style="clear:both;">
<div style="margin-top:5px;"></div>
<div style="width: 800px;">
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Mode <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#" id="inputTextMode"><span class="glyphicon glyphicon-pencil"></span> InputText</a></li>
<li><a href="#" id="autoDoremiMode"><span class="glyphicon glyphicon-music"></span> DoReMi</a></li>
</ul>
</div><!-- /btn-group -->
<span class="input-group-addon" id="modeName"><span class="glyphicon glyphicon-pencil"></span> InputText</span>
<input type="text" class="form-control" id="inputText" placeholder="Input Text" value="do re mi fa so ra shi do">
<span class="input-group-btn">
<button class="btn btn-primary" type="button" id="inputTextButton">Send</button>
</span>
</div><!-- /input-group -->
<div style="margin:2px 0px 0px 98px;"><span class="glyphicon glyphicon-bullhorn"></span> Set: <span id="setletter"> -- </span></div>
</div>
<div style="margin-top:5px;"></div>
<div style="width:800px; margin-top:10px;">
<div style="float:right; margin-bottom:6px;" class="btn-group dropup">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
<li><a href="#" id="actionDelete">Delete</a></li>
</ul>
</div>
</div>
<div class="pianorollcanvas">
<canvas id="pianoroll"></canvas>
<div id="memoryCanvas" sytle="display:none;"></div>
</div>
<div style="margin-top:10px;"></div>
</div>
</div>
</div>
</div>
<!-- fileImport -->
<div class="modal fade" id="fileImport" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<div><input type="file" id="import" class="form-control" name="files[]" style="width:200px; margin:0px 10px 0px 0px; "></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- MIDI IN -->
<div class="modal fade" id="midiInSelM" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title"><span class="glyphicon glyphicon-log-in"></span> MIDI IN</h4>
</div>
<div class="modal-body">
<div id="divMidiInSelWarning"></div>
<select id="midiInSel" type="text" class="form-control input"></select>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="midiInSelB">Set MIDI IN</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- MIDI OUT -->
<div class="modal fade" id="midiOutSelM" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title"><span class="glyphicon glyphicon-log-out"></span> MIDI OUT</h4>
</div>
<div class="modal-body">
<div id="divMidiOutSelWarning"></div>
<select id="midiOutSel" type="text" class="form-control"></select>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="midiOutSelB">Set MIDI OUT</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!--ToU -->
<div class="modal fade" id="showToU" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" style="width:640px;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title"><span class="glyphicon glyphicon-check"></span> Terms of Use</h4>
</div>
<div class="modal-body">
<textarea id="regContent" style="width:600px; height:260px;"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</div><!-- /.wrap -->
<div id="footer">
<div class="container">
<p class="text-muted credit">Copyright (c) 2013 Yamaha Corporation. All rights reserved.</p>
</div>
</div>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript">
$(function () {
// add include javcascript
var scList=[
{"type":"text/javascript", "script":"js/WebMIDIAPI.js"},
{"type":"text/javascript", "script":"js/pianoroll.js"},
{"type":"text/javascript", "script":"js/nsx1.js"},
{"type":"text/javascript", "script":"js/regulation.js"},
{"type":"text/javascript", "script":"js/a2j.js"},
{"type":"text/javascript", "script":"js/app-single-track-daw.js"},
];
for(var i=0; i<scList.length; i++) {
var tscr=document.createElement("script");
tscr.type=scList[i].type;
tscr.src=scList[i].script;
document.body.appendChild(tscr);
}
});
</script>
<script>
/*(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45092290-1', 'yamaha-webmusic.github.io');
ga('send', 'pageview');*/
</script>
</body>
</html>