-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpiobaireachd.html
247 lines (219 loc) · 13.5 KB
/
piobaireachd.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CX9WR7KTE7"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-CX9WR7KTE7');
</script>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title lang="en-gb">Piobaireachd</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="The classical music of the Great Highland Bagpipe" name="description">
<meta property="og:image" content="https://songbase.github.io/pipetunes/image/Kelpies1280balanced.jpg">
<meta property="og:image:width" content="1280" >
<meta property="og:image:height" content="960" >
<meta property="og:type" content="website">
<meta property="og:title" content="Piobaireachd">
<meta property="og:description" content="The classical music of the Great Highland Bagpipe">
<meta property="og:url" content="https://songbase.github.io/pipetunes/piobaireachd.html">
<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; font-weight: normal; text-align: center;}
h3 {color: #551A8B; font-family: Ubuntu; font-size: 18px; font-weight: normal; text-align: left;}
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: 16px;}
span.text {color: #555555; font-family: Open Sans; font-size: 16px; line-height: 1.5;}
span.source {color: #555555; font-family: Open Sans; font-size: 16px;}
.menu { display: flex; justify-content: space-around; }
@media all and (max-width:900px) {
.big-menu {display:none;}
.small-menu {display:block;}
}
@media all and (min-width:900px) {
.big-menu {display:block;}
.small-menu {display:none;}
</style>
</head>
<body style="margin: 0;">
<div style="width: 80%; margin: auto; margin-top: 50px;">
<img title="Audovia Icon" alt="Audovia Icon" src="image/SongBuilderColourIcon74.png"
style="border: 0px solid; margin-right: 20px; margin-top: 8px; margin-bottom: 0px; float: left;">
<div>
<h1 style="width:92%"><strong>Piobaireachd</strong></h1>
</div>
<div style="margin-top: -10px;">
<h2 style="width:92%;"><em>The unique and historic music of the Great Highland Bagpipe brought to you by <a class="nounderline" href="https://songbase.github.io/" target="_blank" rel="noopener noreferrer">Audovia Music</a></em></h2>
</div>
</div>
<div class="big-menu" style="width: 80%; margin: auto; margin-top: 40px; text-align: center; background: linear-gradient(to right, #8000ff, white, white, white, #8000ff);">
<span class="text"> <hr style="height:1px;border-width:0;color:grey;background-color:grey">
<a href="index.html" style="text-decoration:none;">Light Music</a>
<a href="piobaireachd.html" style="text-decoration:none;"><b>Piobaireachd</b></a>
<a href="https://www.facebook.com/groups/piobaireachd" style="text-decoration:none;" target="_blank" rel="noopener noreferrer">Facebook Group</a>
<a href="https://www.altpibroch.com/" style="text-decoration:none;" target="_blank" rel="noopener noreferrer">Alt Pibroch Club</a>
<hr style="height:1px;border-width:0;color:grey;background-color:grey">
</span>
</div>
<div class="small-menu" style="width: 80%; margin: auto; margin-top: 40px; text-align: center;">
<hr style="height:1px;border-width:0;color:grey;background-color:grey">
<div class="menu">
<span class="text">
<a href="index.html" style="text-decoration:none; font-size: 18px;">Light Music</a>
</span>
<span class="text" style="color: #551A8B; font-size: 18px;">
<b>Piobaireachd</b>
</span>
</div>
<hr style="height:1px;border-width:0;color:grey;background-color:grey">
</div>
<div style="width: 80%; margin: auto; margin-top: 35px; background-color: #ffffff; border-width: 0px 0px 0px 0px; border-style: solid; border-color: white;">
<h3>Click on a song name to play or pause and double-click to rewind.</h3>
</div>
<!-- Start of piobaireachd playlist -->
<div style="width: 80%; margin: auto;">
<div style="border-style: solid; border-color: #f4f4f4; border-width: 10px 0px 10px 20px; width: 630px; height: 320px; overflow: auto; margin-top: 0px; margin-bottom: 20px; margin-left: 0px; margin-right: 30px; float: left; background-color: #f4f4f4;">
<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" , "source":"The Piobaireachd Society Book 7" } ,' +
'{ "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" , "source":"The Piobaireachd Society Book 7" } ,' +
'{ "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" , "source":"The Piobaireachd Society Book 6" } ,' +
'{ "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="600" border="0" cellpadding="0" cellspacing="22"><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><td><span class="source">' + obj.songs[i].source + '</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>
<span class="text">
These tunes were produced using Audovia which uses JFugue MusicString notation to make music with up to fifteen instrumental voices and a percussion track.
<p>
Notes within a MusicString are specified by their name and duration.
</p>
Durations can be expressed as pulses where 32 pulses represents a quarter note (crotchet).
A Crunluath on 'E' can be written as [G]/1 [E]/16 [LG]/2 [D]/1 [LG]/1 [E]/1 [A]/1 [F]/1 [A]/2 [E]/6.
</span>
<div align="center">
<span class="text"><em>
<br clear="all">
<br>
Copyright © 2017 - 2021 <a class="nounderline" href="https://songbase.github.io/mywebsite/" target="_blank" rel="noopener noreferrer">Donald G Gray</a></em><br><br>
</span>
</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 < 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>
</body>
</html>