-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindexwithfeatures.html_old
485 lines (438 loc) · 33.8 KB
/
indexwithfeatures.html_old
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>Chanter Practice</title>
<link href="favicon.ico" rel="icon" type="image/x-icon">
<meta content="Donald G Gray" name="author">
<meta content="Here are some bagpipe tunes for you to play along to on your practice chanter." name="description">
<meta property="og:image" content="http://audovia.com/image/Kelpies1280.jpg">
<!--<meta property="og:image" content="http://chanterpractice.com/image/chanterpractice.png">-->
<meta property="og:type" content="website">
<meta property="og:title" content="Chanter Practice">
<meta property="og:description" content="Here are some bagpipe tunes for you to play along to on your practice chanter.">
<style type="text/css">
body {background-color: #f4f4f4;}
a:link {color: #551A8B;}
a:visited {color: #551A8B;}
a:active {color: #EE0000;}
a.nounderline {text-decoration:none; font-weight:bold;}
a.pdflink {text-decoration:none;}
div.centre {text-align: center;}
div.left {text-align: left;}
div.subheader {color: #551A8B; line-height: 1.8; text-align: center;}
span.header {color: #551A8B; font-family: Trebuchet MS; font-size: 40px;}
span.subheader {font-family: Perpetua; font-size: 22px;}
span.invite {color: #555555; font-family: Verdana; font-size: 15px;}
span.composer {color: #817F73; font-family: Verdana; font-size: 16px;}
span.song {color: #551A8B; cursor: pointer; font-family: Verdana; font-size: 16px;}
span.caption {color: #551A8B; font-family: Verdana; font-size: 16px;}
span.part {color: #551A8B; cursor: pointer; font-family: Verdana; font-size: 14px;}
span.xml {color: #551A8B; cursor: pointer; font-family: Verdana;}
span.title {color: #817F73; font-family: Verdana; font-size: small;}
span.subtitle {color: #551A8B; font-family: Verdana; font-size: 14px; line-height: 2.0;}
span.body {color: #555555; font-family: Verdana; font-size: 14px; line-height: 1.3;}
span.fullsize {color: #555555; font-family: Verdana; font-size: 14px; line-height: 1.5;}
td.heading {background-color: transparent;}
td.background {background-color: transparent;}
</style>
</head>
<body>
<table style="width: 980px; text-align: left; margin-left: auto;
margin-right: auto;" border="0" cellpadding="4" cellspacing="0">
<tbody>
<!-- <tr>
<td><br></td>
<td><br></td>
<td><br></td>
</tr> -->
<tr>
<td style="vertical-align: top; width: 180px;">
<!--<a href="doc/AudoviaDocumentation-3-0-8.pdf" target="_blank">-->
<img title="Audovia Icon"
alt="Audovia Icon" src="image/SongBuilderColourIcon74.png"
style="border: 0px solid;" align="left"><!--</a>-->
<!--<a href="http://www.nga.gov/content/ngaweb/Collection/art-object-page.144298.html" target="_blank">
<img title="Bagpipe Player
Hendrick ter Brugghen
1624"
alt="Bagpipe Player" src="image/BagpiperIcon.jpg"
style="border: 0px solid;" align="left"></a>-->
</td>
<h1 style="font-weight: normal;"> <td style=" vertical-align: top;">
<div class="centre">
<span class="header" style="font-family: Trebuchet MS;">Chanter Practice</span>
<span class="subtitle"><br><em>bagpipe tunes to play along to on your practice chanter</em></span>
<!--<br>-->
</div>
</td> </h1>
<td style=" vertical-align: top; text-align: right; width: 180px;">
<!-- Place this code where you want the badge to render. -->
<a href="https://plus.google.com/u/0/communities/107805740388997298348?prsrc=3"
rel="publisher" target="_blank"
style="text-decoration:none; display:inline-block; color:#333; text-align:center;
font:13px/16px arial,sans-serif; white-space:nowrap;">
<!--<span style="display:inline-block; font-weight:bold; vertical-align:top; margin-right:5px;
margin-top:8px;">
</span>
<span style="display:inline-block; vertical-align:top; margin-right:15px;
margin-top:8px;">
</span>-->
<img src="http://ssl.gstatic.com/images/icons/gplus-32.png"
alt="Google+" style="border:0; width:32px; height:32px;">
</a>
<!--
<a href="https://github.com/SongBase/Audovia"
target="_blank"><img src="image/GitHub-Mark-32px.png"
alt="GitHub" style="border:0; width:32px; height:32px;">
</a>-->
</td>
</tr>
</tbody>
</table>
<div style="position: absolute; left: 50%; margin-left: -486px; top: 120px;">
<span class="caption">
<em>Light Music</em>
</span>
</div>
<!-- Start of bagpipe playlist -->
<div style="position: absolute; left: 50%; margin-left: -486px; top: 150px; background-color: #FFFFFF;">
<div style="border-style: none; width: 575px; height: 296px; overflow: auto; margin-top: 10px; margin-bottom: 10px; margin-left: 20px;">
<div id="playlist">
</div>
<div id="audio">
</div>
<script type="text/javascript">
var text = '{ "songs" : [' +
'{ "record_type":"song" , "composer":"Alexander Cameron" , "song":"Captain Colin Campbell\'s March" , "mp3":"Captain Colin Campbell\'s March-Song.mp3" , "pdf":"https://drive.google.com/open?id=0B6s7db9SsZhVVEdJUVRYVlFCYWM" } ,' +
'{ "record_type":"part" , "composer":"Alexander Cameron" , "song":"Part 1" , "mp3":"Captain Colin Campbell\'s March-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Alexander Cameron" , "song":"Part 2" , "mp3":"Captain Colin Campbell\'s March-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Alexander Cameron" , "song":"Part 3" , "mp3":"Captain Colin Campbell\'s March-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Alexander Cameron" , "song":"Part 4" , "mp3":"Captain Colin Campbell\'s March-Part 4.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"James Haugh" , "song":"Castle Dangerous" , "mp3":"Castle Dangerous-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Archie MacNeill" , "song":"Donald MacLean\'s Farewell to Oban" , "mp3":"Donald MacLean\'s Farewell to Oban-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Archie MacNeill" , "song":"Part 1" , "mp3":"Donald MacLean\'s Farewell to Oban-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Archie MacNeill" , "song":"Part 2" , "mp3":"Donald MacLean\'s Farewell to Oban-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Archie MacNeill" , "song":"Part 3" , "mp3":"Donald MacLean\'s Farewell to Oban-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Archie MacNeill" , "song":"Part 4" , "mp3":"Donald MacLean\'s Farewell to Oban-Part 4.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Simon McKerrell" , "song":"Gary McDonald\'s 40th Birthday Jig" , "mp3":"Gary McDonald\'s 40th Birthday Jig-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Ian Hardie" , "song":"Horsbrugh Castle" , "mp3":"HorsbrughCastle.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Hance Gates" , "song":"J Carnegie\'s March" , "mp3":"J Carnegie\'s March-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 1" , "mp3":"J Carnegie\'s March-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 2" , "mp3":"J Carnegie\'s March-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 3" , "mp3":"J Carnegie\'s March-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 4" , "mp3":"J Carnegie\'s March-Part 4.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"William Ross" , "song":"Leaving Port Askaig" , "mp3":"Leaving Port Askaig-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"William Ross" , "song":"Part 1" , "mp3":"Leaving Port Askaig-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"William Ross" , "song":"Part 2" , "mp3":"Leaving Port Askaig-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"William Ross" , "song":"Part 3" , "mp3":"Leaving Port Askaig-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"William Ross" , "song":"Part 4" , "mp3":"Leaving Port Askaig-Part 4.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Hamish MacColl" , "song":"Major A C W May\'s Welcome" , "mp3":"MajorACWMaysWelcome.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Hamish MacColl" , "song":"Major Bobby" , "mp3":"MajorBobby.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Gavin Stoddart" , "song":"On the Road to Passchendaele" , "mp3":"OnTheRoadToPasschendaele.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Hance Gates" , "song":"Pipe Major Diarmid Lindsay" , "mp3":"Pipe Major Diarmid Lindsay-Song.mp3" , "pdf":"https://drive.google.com/open?id=0B6s7db9SsZhVbTVUWEhmcUstYTg" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 1" , "mp3":"Pipe Major Diarmid Lindsay-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 2" , "mp3":"Pipe Major Diarmid Lindsay-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 3" , "mp3":"Pipe Major Diarmid Lindsay-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 4" , "mp3":"Pipe Major Diarmid Lindsay-Part 4.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Hance Gates" , "song":"Pipe Major Donald Noble\'s Farewell<br> to the Royal High School" , "mp3":"Pipe Major Donald Noble\'s Farewell to the Royal High School-Song.mp3" , "pdf":"https://drive.google.com/open?id=0B6s7db9SsZhVbXRTWnZRR1MzbTA" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 1" , "mp3":"Pipe Major Donald Noble\'s Farewell to the Royal High School-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 2" , "mp3":"Pipe Major Donald Noble\'s Farewell to the Royal High School-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 3" , "mp3":"Pipe Major Donald Noble\'s Farewell to the Royal High School-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Hance Gates" , "song":"Part 4" , "mp3":"Pipe Major Donald Noble\'s Farewell to the Royal High School-Part 4.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Ian Duncan" , "song":"Pipe Sergeant John Barclay" , "mp3":"PipeSergeantJohnBarclay.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Ian Duncan" , "song":"Part 1" , "mp3":"Pipe Sergeant John Barclay-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Ian Duncan" , "song":"Part 2" , "mp3":"Pipe Sergeant John Barclay-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Ian Duncan" , "song":"Part 3" , "mp3":"Pipe Sergeant John Barclay-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Ian Duncan" , "song":"Part 4" , "mp3":"Pipe Sergeant John Barclay-Part 4.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Traditional" , "song":"Rocking the Baby" , "mp3":"RockingTheBaby.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Donald Cameron" , "song":"Rosehaugh Dance" , "mp3":"Rosehaugh Dance-Song.mp3" , "pdf":"https://drive.google.com/open?id=0B6s7db9SsZhVMElzVG8xeWl6aXM" } ,' +
'{ "record_type":"song" , "composer":"Traditional" , "song":"Scotland The Brave" , "mp3":"Scotland The Brave-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"John MacDonald" , "song":"The 79th Farewell to Gibralter" , "mp3":"The 79th Farewell to Gibralter-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"John MacDonald" , "song":"Part 1" , "mp3":"The 79th Farewell to Gibralter-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"John MacDonald" , "song":"Part 2" , "mp3":"The 79th Farewell to Gibralter-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"John MacDonald" , "song":"Part 3" , "mp3":"The 79th Farewell to Gibralter-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"John MacDonald" , "song":"Part 4" , "mp3":"The 79th Farewell to Gibralter-Part 4.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"William Fergusson" , "song":"The Australian Ladies" , "mp3":"The Australian Ladies-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"William Fergusson" , "song":"Part 1" , "mp3":"The Australian Ladies-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"William Fergusson" , "song":"Part 2" , "mp3":"The Australian Ladies-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"William Fergusson" , "song":"Part 3" , "mp3":"The Australian Ladies-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"William Fergusson" , "song":"Part 4" , "mp3":"The Australian Ladies-Part 4.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"William Lawrie" , "song":"The Battle of the Somme" , "mp3":"The Battle of the Somme-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Traditional" , "song":"The Black Bear" , "mp3":"The Black Bear-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Traditional" , "song":"The Bonnie Lass of Fyvie" , "mp3":"BonnieLassOfFyvie.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"John MacLellan" , "song":"The Heroes of Vittoria" , "mp3":"TheHeroesOfVittoria.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Traditional" , "song":"The Highland Laddie" , "mp3":"The Highland Laddie-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Angus Mackay" , "song":"The Highland Wedding" , "mp3":"The Highland Wedding-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Angus Mackay" , "song":"Part 1" , "mp3":"The Highland Wedding-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Angus Mackay" , "song":"Part 2" , "mp3":"The Highland Wedding-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Angus Mackay" , "song":"Part 3" , "mp3":"The Highland Wedding-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Angus Mackay" , "song":"Part 4" , "mp3":"The Highland Wedding-Part 4.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Angus Mackay" , "song":"Part 5" , "mp3":"The Highland Wedding-Part 5.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Angus Mackay" , "song":"Part 6" , "mp3":"The Highland Wedding-Part 6.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Tom Muirhead" , "song":"The Hills of Alva" , "mp3":"The Hills of Alva-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Traditional" , "song":"The Lass of Richmond Hill" , "mp3":"The Lass of Richmond Hill-Song.mp3" , "pdf":"https://drive.google.com/open?id=0B6s7db9SsZhVamlocnczanctR2M" } ,' +
'{ "record_type":"song" , "composer":"Traditional" , "song":"The Rowan Tree" , "mp3":"The Rowan Tree-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Gordon Mackenzie" , "song":"The Sands of Kuwait" , "mp3":"TheSandsOfKuwait.mp3" , "pdf":"" } ,' +
'{ "record_type":"song" , "composer":"Hance Gates" , "song":"William Ure\'s Fancy" , "mp3":"William Ure\'s Fancy-Song.mp3" , "pdf":"https://drive.google.com/open?id=0B6s7db9SsZhVZG9mYnFLQXpIYmM" } ' +
']}';
var obj = JSON.parse(text);
var table_content = '<table width="545" border="0" cellpadding="2" cellspacing="0"><tbody>';
var audio_content = '';
for (i = 0; i < obj.songs.length; i++)
{
if (obj.songs[i].record_type == "song")
{
if (i > 0)
{
table_content += '<tr><td> </td></tr>';
}
table_content += '<tr><td><span title="Click to play or pause and double-click to rewind." ' +
'onclick="playPause(songArray[' + i + '], audioArray[' + i + '])" ' +
'ondblclick="onEnd(songArray[' + i + '], audioArray[' + i + '])" ' +
'class="song" id="song' + i + '">' + obj.songs[i].song + '</span></td>';
table_content += '<td style=" vertical-align: top;"><span class="composer">' + obj.songs[i].composer + '</span></td>';
if (obj.songs[i].pdf != "")
{
table_content += '<td style=" vertical-align: top;"><span title="Click to view score." class="song"><a class="pdflink" href="' + obj.songs[i].pdf + '" target="_blank">PDF</a></span></td>';
}
else
{
table_content += '<td style=" vertical-align: top;"> </td>';
}
table_content += '</tr>';
}
else
{
table_content += '<tr><td><span title="Click to play or pause and double-click to rewind." ' +
'onclick="playPause(songArray[' + i + '], audioArray[' + i + '])" ' +
'ondblclick="onEnd(songArray[' + i + '], audioArray[' + i + '])" ' +
'class="part" id="song' + i + '"> ' + obj.songs[i].song + '</span></td><td style=" vertical-align: top;"> </td></tr>';
}
audio_content += '<audio id="audio' + i + '" onended="onEnd(songArray[' + i + '], audioArray[' + i + '])" src="music/' + obj.songs[i].mp3 + '"></audio>';
}
table_content += '</tbody></table>';
document.getElementById("playlist").innerHTML = table_content;
document.getElementById("audio").innerHTML = audio_content;
var audioArray = new Array();
var songArray = new Array();
for (i = 0; i < obj.songs.length; i++)
{
audioArray[i] = document.getElementById("audio" + i);
songArray[i] = document.getElementById("song" + i);
}
</script>
</div>
</div>
<!-- End of bagpipe playlist -->
<div style="position: absolute; left: 50%; margin-left: 162px; top: 120px;">
<span class="caption">
<em>Piobaireachd</em>
</span>
</div>
<!-- Start of piobaireachd playlist -->
<div style="position: absolute; left: 50%; margin-left: 162px; top: 150px; background-color: #FFFFFF;">
<div style="border-style: none; height: 296px; width: 320px; overflow: auto; margin-top: 10px; margin-bottom: 10px; margin-left: 20px;">
<div id="table2_playlist">
</div>
<div id="table2_audio">
</div>
<script type="text/javascript">
var text = '{ "songs" : [' +
'{ "record_type":"song" , "song":"I got a Kiss of the King\'s Hand" , "mp3":"IGotAKissOfTheKingsHand.mp3" } ,' +
'{ "record_type":"part" , "song":"Urlar" , "mp3":"IGotAKissOfTheKingsHandUrlar.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation" , "mp3":"IGotAKissOfTheKingsHandVariation.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation Doubling" , "mp3":"IGotAKissOfTheKingsHandVariationDoubling.mp3" } ,' +
'{ "record_type":"part" , "song":"Taorluath" , "mp3":"IGotAKissOfTheKingsHandTaorluath.mp3" } ,' +
'{ "record_type":"part" , "song":"Taorluath Doubling" , "mp3":"IGotAKissOfTheKingsHandTaorluathDoubling.mp3" } ,' +
'{ "record_type":"part" , "song":"Crunluath" , "mp3":"IGotAKissOfTheKingsHandCrunluath.mp3" } ,' +
'{ "record_type":"part" , "song":"Crunluath Doubling" , "mp3":"IGotAKissOfTheKingsHandCrunluathDoubling.mp3" } ,' +
'{ "record_type":"part" , "song":"Crunluath A Mach" , "mp3":"IGotAKissOfTheKingsHandCrunluathAMach.mp3" } ,' +
'{ "record_type":"song" , "song":"The Desperate Battle" , "mp3":"The Desperate Battle-Piobaireachd.mp3" } ,' +
'{ "record_type":"part" , "song":"Urlar" , "mp3":"The Desperate Battle-Urlar.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation 1" , "mp3":"The Desperate Battle-Variation 1.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation 1 Doubling" , "mp3":"The Desperate Battle-Variation 1 Doubling.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation 2" , "mp3":"The Desperate Battle-Variation 2.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation 2 Doubling" , "mp3":"The Desperate Battle-Variation 2 Doubling.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation 3" , "mp3":"The Desperate Battle-Variation 3.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation 3 Doubling" , "mp3":"The Desperate Battle-Variation 3 Doubling.mp3" } ,' +
'{ "record_type":"part" , "song":"Taorluath" , "mp3":"The Desperate Battle-Taorluath.mp3" } ,' +
'{ "record_type":"part" , "song":"Taorluath A Mach" , "mp3":"The Desperate Battle-Taorluath A Mach.mp3" } ,' +
'{ "record_type":"part" , "song":"Crunluath" , "mp3":"The Desperate Battle-Crunluath.mp3" } ,' +
'{ "record_type":"part" , "song":"Crunluath A Mach" , "mp3":"The Desperate Battle-Crunluath A Mach.mp3" } ,' +
'{ "record_type":"song" , "song":"The Glen is Mine" , "mp3":"TheGlenIsMine.mp3" } ,' +
'{ "record_type":"part" , "song":"Urlar" , "mp3":"TheGlenIsMineUrlar.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation 1" , "mp3":"TheGlenIsMineVariation1.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation 2" , "mp3":"TheGlenIsMineVariation2.mp3" } ,' +
'{ "record_type":"part" , "song":"Variation 3" , "mp3":"TheGlenIsMineVariation3.mp3" } ,' +
'{ "record_type":"part" , "song":"Leamluath" , "mp3":"TheGlenIsMineLeamluath.mp3" } ,' +
'{ "record_type":"part" , "song":"Leamluath Doubling" , "mp3":"TheGlenIsMineLeamluathDoubling.mp3" } ,' +
'{ "record_type":"part" , "song":"Taorluath" , "mp3":"TheGlenIsMineTaorluath.mp3" } ,' +
'{ "record_type":"part" , "song":"Taorluath Doubling" , "mp3":"TheGlenIsMineTaorluathDoubling.mp3" } ,' +
'{ "record_type":"part" , "song":"Crunluath" , "mp3":"TheGlenIsMineCrunluath.mp3" } ,' +
'{ "record_type":"part" , "song":"Crunluath Doubling" , "mp3":"TheGlenIsMineCrunluathDoubling.mp3" } ,' +
'{ "record_type":"part" , "song":"Crunluath A Mach" , "mp3":"TheGlenIsMineCrunluathAMach.mp3" } ' +
']}';
var obj = JSON.parse(text);
var table2_content = '<table width="300" border="0" cellpadding="4" cellspacing="0" style="line-height: 1.0;"><tbody>';
var audio2_content = '';
for (i = 0; i < obj.songs.length; i++)
{
if (obj.songs[i].record_type == "song")
{
if (i > 0)
{
table2_content += '<tr><td> </td></tr>';
}
table2_content += '<tr><td><span title="Click to play or pause and double-click to rewind." ' +
'onclick="playPause(songArray2[' + i + '], audioArray2[' + i + '])" ' +
'ondblclick="onEnd(songArray2[' + i + '], audioArray2[' + i + '])" ' +
'class="song" id="table2_song' + i + '">' + obj.songs[i].song + '</span></td></tr>';
}
else
{
table2_content += '<tr><td><span title="Click to play or pause and double-click to rewind." ' +
'onclick="playPause(songArray2[' + i + '], audioArray2[' + i + '])" ' +
'ondblclick="onEnd(songArray2[' + i + '], audioArray2[' + i + '])" ' +
'class="part" id="table2_song' + i + '"> ' + obj.songs[i].song + '</span></td></tr>';
}
audio2_content += '<audio id="table2_audio' + i + '" onended="onEnd(songArray2[' + i + '], audioArray2[' + i + '])" src="music/' + obj.songs[i].mp3 + '"></audio>';
}
table2_content += '</tbody></table>';
document.getElementById("table2_playlist").innerHTML = table2_content;
document.getElementById("table2_audio").innerHTML = audio2_content;
var audioArray2 = new Array();
var songArray2 = new Array();
for (i = 0; i < obj.songs.length; i++)
{
audioArray2[i] = document.getElementById("table2_audio" + i);
songArray2[i] = document.getElementById("table2_song" + i);
}
</script>
</div>
</div>
<!-- End of piobaireachd playlist -->
<script type="text/javascript">
function onEnd(song, audio)
{
song.style.color = '#551A8B';
audio.load();
}
function playPause(song, audio)
{
for (i = 0; i < songArray.length; i++)
{
if (song != songArray[i])
{
if (!audioArray[i].paused)
{
songArray[i].style.color = 'red';
audioArray[i].pause();
}
}
}
for (i = 0; i < songArray2.length; i++)
{
if (song != songArray2[i])
{
if (!audioArray2[i].paused)
{
songArray2[i].style.color = 'red';
audioArray2[i].pause();
}
}
}
if (audio.paused)
{
song.style.color = 'green';
audio.play();
}
else
{
song.style.color = 'red';
audio.pause();
}
}
</script>
<div style="position: absolute; left: 50%; margin-left: -486px; top: 500px;">
<span class="caption">
<em>How it was done</em>
</span>
</div>
<div style="width: 944px; background-color: #ffffff; margin-left: -486px; position: absolute; top: 530px; left: 50%; border-width: 0px 22px 0px 22px; border-style: solid; border-color: white;">
<span class="fullsize">
<p>
These tunes were produced using
<a class="nounderline" href="http://audovia.com/" target="_blank">Audovia</a> which uses
<a class="nounderline" href="http://www.jfugue.org/" target="_blank">JFugue</a>
MusicString notation to let you make music with up to fifteen instrumental voices and a percussion track.
Notes within a MusicString are specified by their name and duration.
Durations can be expressed as pulses where 32 pulses represents a quarter note (crotchet).
An 'E' quarter note preceded by a 'G' gracenote can be written as [G]/2 [E]/30.
</p>
<p>
In most of the tunes, the taorluaths and grips have been moved forward so that the beat falls on the 'D' gracenote. This improves expression and helps to give the tune that elusive "lift".
</p>
<p>
The tunes were exported from <a class="nounderline" href="http://audovia.com/" target="_blank">Audovia</a> to WAV format and opened in
<a class="nounderline" href="http://audacityteam.org/" target="_blank">Audacity</a>
where they were amplified by 8 and exported to MP3.
XML versions which you can import into
<a class="nounderline" href="http://audovia.com/" target="_blank">Audovia</a> are available
<a class="nounderline" href="https://drive.google.com/folderview?id=0B6s7db9SsZhVUmFhM2VVaG5raTg&usp=sharing"
target="_blank">here</a>.
</p>
</span>
</div>
<!--<div align="center" style=" margin: auto; position: absolute; top: 840px; left: 0px; right: 0px;">-->
<div align="center" style=" margin: auto; position: absolute; top: 790px; left: 0px; right: 0px;">
<span class="body"><em>Copyright © 2016
Donald G Gray</em><br>
</span>
</div>
<!--<div style="position: absolute; left: 50%; margin-left: -486px; top: 880px;">-->
<!-- <div style="position: absolute; left: 50%; margin-left: -486px; top: 844px;">
<span class="caption">
<em>Featured Tunes</em>
</span>
</div> -->
<!--<div style="position: absolute; left: 50%; margin-left: -486px; top: 910px;">-->
<div style="position: absolute; left: 50%; margin-left: -486px; top: 874px;">
<!--<iframe width="640" height="480" src="https://www.youtube-nocookie.com/embed/SxGU0sXPL6M?rel=0" frameborder="0" allowfullscreen></iframe>-->
<!--<iframe width="640" height="480" src="https://www.youtube-nocookie.com/embed/Y_EMCpR7BPw?rel=0" frameborder="0" allowfullscreen></iframe>-->
</div>
<!--<div style="width: 264px; background-color: #ffffff; margin-left: 194px; position: absolute; top: 910px; left: 50%; border-width: 0px 22px 0px 22px; border-style: solid; border-color: white;">-->
<div style="width: 264px; background-color: #ffffff; margin-left: 194px; position: absolute; top: 874px; left: 50%; border-width: 0px 22px 0px 22px; border-style: solid; border-color: white;">
<span class="fullsize">
<!-- <p>
I found this tune among some 50 year old manuscripts and I am not aware of it being published anywhere else.
</p> -->
<!--<p>
This is my arrangement of Rosehaugh Dance which I found in Ross's Collection of Pipe Music, 1885.
</p>
<p>
Donald Cameron (1810–1868) was one of the best known pipers of his generation.
</p>
<p>
He was the father of Alexander Cameron whose tune
Captain Colin Campbell's March is also featured on this website.
</p>-->
</span>
</div>
<div style="position: absolute; left: 50%; margin-left: -486px; top: 1400px;">
<!--<iframe width="640" height="480" src="https://www.youtube-nocookie.com/embed/o1ri-3ZmI0U?rel=0" frameborder="0" allowfullscreen></iframe>-->
<!--<iframe width="640" height="480" src="https://www.youtube-nocookie.com/embed/MiJxsr1VL2s?rel=0" frameborder="0" allowfullscreen></iframe>-->
</div>
<div style="width: 264px; background-color: #ffffff; margin-left: 194px; position: absolute; top: 1400px; left: 50%; border-width: 0px 22px 0px 22px; border-style: solid; border-color: white;">
<span class="fullsize">
<!-- <p>
Here is my arrangement of Captain Colin Campbell's March which I found in Ross's Collection of Pipe Music, 1885.
</p> -->
<!--<p>
Hance Gates was Pipe Major of the Edinburgh City Police Pipe Band in the 1930s and, after retirement, taught piping in Edinburgh schools.
</p>
<p>
He named this tune after Diarmid Lindsay who was Pipe Major of the Royal High School Pipe Band between 1961 and 1964.
</p>-->
</span>
</div>
</body>
</html>