-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_20171224.html_old
450 lines (411 loc) · 33.9 KB
/
index_20171224.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title lang="en-gb">Bagpipe Play Along</title>
<link href="favicon.ico" rel="icon" type="image/x-icon">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Open Sans">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Ubuntu">
<meta content="Donald G Gray" name="author">
<meta content="Bagpipe tunes for playing along to on your practice chanter" name="description">
<meta property="og:image" content="http://pipetunes.uk/image/pipetunes.png">
<meta property="og:image:width" content="1280" >
<meta property="og:image:height" content="800" >
<meta property="og:type" content="website">
<meta property="og:title" content="Bagpipe Play Along">
<meta property="og:description" content="Bagpipe tunes for playing along to on your practice chanter">
<meta property="og:url" content="http://pipetunes.uk/">
<style type="text/css">
body {background-color: #ffffff;}
h1 {color: #551A8B; font-family: Ubuntu; font-size: 40px; font-weight: normal; text-align: center;}
h2 {color: #551A8B; font-family: Ubuntu; font-size: 18px; line-height: 0.0; font-weight: normal; text-align: center;}
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;}
span.composer {color: #817F73; font-family: Open Sans; font-size: 16px;}
span.song {color: #551A8B; cursor: pointer; font-family: Open Sans; font-size: 16px;}
span.caption {color: #551A8B; font-family: Open Sans; font-size: 16px;}
span.part {color: #551A8B; cursor: pointer; font-family: Open Sans; font-size: 14px;}
span.text {color: #555555; font-family: Open Sans; font-size: 14px; line-height: 1.5;}
</style>
</head>
<body style="margin: 0;">
<div style="position: absolute; top: 0px; width: 100%; height: 140px; background: linear-gradient(#8000ff,#ffffff);">
<h1><strong>Bagpipe Play Along</strong></h1>
<h2><em>Play along to these tunes on your practice chanter!</em></h2>
<!--
<div style="position: absolute; left: 50%; margin-left: -486px; top: 36px;">
<img title="St Andrew's Saltire"
alt="St Andrew's Saltire" src="image/saltire.png" height="52" width="86"
style="border: 0px solid;">
</div>
<div style="position: absolute; left: 50%; margin-left: 416px; top: 36px;">
<img title="St Andrew's Saltire"
alt="St Andrew's Saltire" src="image/saltire.png" height="52" width="86"
style="border: 0px solid;">
</div>
-->
<div style="position: absolute; left: 50%; margin-left: -486px; top: 36px;">
<img title="Audovia Icon"
alt="Audovia Icon" src="image/SongBuilderColourIcon74.png"
style="border: 0px solid;">
</div>
</div>
<div style="position: absolute; left: 50%; margin-left: -486px; top: 150px;">
<span class="caption">
<em>Light Music</em>
</span>
</div>
<!-- Start of bagpipe playlist -->
<div style="position: absolute; left: 50%; margin-left: -486px; top: 180px; background-color: #f4f4f4;">
<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":"Donald Ramsay" , "song":"Angus MacKinnon" , "mp3":"Angus MacKinnon-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Donald Ramsay" , "song":"Part 1" , "mp3":"Angus MacKinnon-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Donald Ramsay" , "song":"Part 2" , "mp3":"Angus MacKinnon-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Donald Ramsay" , "song":"Part 3" , "mp3":"Angus MacKinnon-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Donald Ramsay" , "song":"Part 4" , "mp3":"Angus MacKinnon-Part 4.mp3" , "pdf":"" } ,' +
'{ "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":"Albert Sim" , "song":"Colonel Scarth of Breckness" , "mp3":"Colonel Scarth of Breckness-Song.mp3" , "pdf":"https://drive.google.com/open?id=0B6s7db9SsZhVdWRqQndYdHVwVVk" } ,' +
'{ "record_type":"part" , "composer":"Albert Sim" , "song":"Part 1" , "mp3":"Colonel Scarth of Breckness-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Albert Sim" , "song":"Part 2" , "mp3":"Colonel Scarth of Breckness-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Albert Sim" , "song":"Part 3" , "mp3":"Colonel Scarth of Breckness-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Albert Sim" , "song":"Part 4" , "mp3":"Colonel Scarth of Breckness-Part 4.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":"Donald Ramsay" , "song":"Mrs Lily Christie (PC tuned)" , "mp3":"Mrs Lilly Christie-Song.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Donald Ramsay" , "song":"Part 1" , "mp3":"Mrs Lilly Christie-Part 1.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Donald Ramsay" , "song":"Part 2" , "mp3":"Mrs Lilly Christie-Part 2.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Donald Ramsay" , "song":"Part 3" , "mp3":"Mrs Lilly Christie-Part 3.mp3" , "pdf":"" } ,' +
'{ "record_type":"part" , "composer":"Donald Ramsay" , "song":"Part 4" , "mp3":"Mrs Lilly Christie-Part 4.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" rel="noopener noreferrer">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="width: 340px; text-align: right; position: absolute; left: 50%; margin-left: 162px; top: 150px;">
<span class="caption">
<em>Piobaireachd</em>
</span>
</div>
<!-- Start of piobaireachd playlist -->
<div style="position: absolute; left: 50%; margin-left: 162px; top: 180px; background-color: #f4f4f4;">
<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: 510px;">
<span class="caption">
<em>How it was done</em>
</span>
</div>-->
<div style="width: 988px; background-color: #ffffff; margin-left: -486px; position: absolute; top: 516px; left: 50%; border-width: 0px 0px 0px 0px; border-style: solid; border-color: white;">
<span class="text">
<p>
These tunes were produced using
<a class="nounderline" href="http://audovia.com/" target="_blank" rel="noopener noreferrer">Audovia</a> which uses
<a class="nounderline" href="http://www.jfugue.org/" target="_blank" rel="noopener noreferrer">JFugue</a>
MusicString notation.
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" rel="noopener noreferrer">Audovia</a> to WAV format, most using the Roland gm.dls soundbank, and opened in
<a class="nounderline" href="http://audacityteam.org/" target="_blank" rel="noopener noreferrer">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" rel="noopener noreferrer">Audovia</a> are available
<a class="nounderline" href="https://drive.google.com/folderview?id=0B6s7db9SsZhVUmFhM2VVaG5raTg&usp=sharing"
target="_blank" rel="noopener noreferrer">here</a>.
</p>
<p>
For a more realistic practice chanter sound you can use the TimGM6mbPC1t.sf2 soundbank with <em>I[chanter] X[bank_select_coarse]=1</em> as in <strong>Mrs Lily Christie</strong>.
</p>
</span>
</div>
<!-- <div style="position: absolute; left: 50%; margin-left: -486px; top: 832px;">
<span class="caption">
<em>Publishing Service</em>
</span>
</div>
<div style="width: 944px; background-color: #ffffff; margin-left: -486px; position: absolute; top: 862px; left: 50%; border-width: 0px 22px 0px 22px; border-style: solid; border-color: white;">
<span class="text">
<p>
We can publish your tunes in MP3 and/or PDF format. Please contact <a class="nounderline" href="mailto:info@pipetunes.uk"
rel="noopener noreferrer">info@pipetunes.uk</a>.
</p>
</span>
</div> -->
<!-- changed encoding to UTF-8 -->
<div align="center" style="width: 968px; margin: auto; position: absolute; top: 800px; left: 0px; right: 0px;">
<span class="text"><em>Copyright © 2017 Donald G Gray</em><br><br>
</span>
<!-- <div align="left">
<span class="caption"><em>Open Discussion</em></span>
</div>
<div id="disqus_thread" align="center" style="width: 600px;"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
var disqus_config = function () {
this.page.url = 'http://pipetunes.uk/'; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = 'pipetunes'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = '//pipetunes.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</div> -->
</div>
</body>
</html>