forked from rism-digital/verovio.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpae-examples.xhtml
201 lines (161 loc) · 5.79 KB
/
pae-examples.xhtml
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
---
layout: verovio
verovio-light: true
title: Verovio PAE Examples
active: other-formats
other-active: pae-examples
version-footer: true
---
<script type="text/javascript">
//<![CDATA[
var zoom = 40;
var pageHeight = 2970;
var pageWidth = 1400;
var spacingStaff = 0;
var border = 20;
var adjustPageHeight = 1;
var vrvToolkit = new verovio.toolkit();
function load_data(data, output_div) {
options = {
inputFormat: 'pae',
pageHeight: pageHeight,
pageWidth: pageWidth,
adjustPageHeight: adjustPageHeight,
spacingStaff: spacingStaff,
pageMarginLeft: border,
pageMarginRight: border,
scale: zoom
};
var svg = vrvToolkit.renderData( data + "\n", options );
console.log( options );
output_div.html(svg);
}
var incipits = [
"@clef:G-2\n\
@keysig:xFCGD\n\
@timesig:3/8\n\
@data:'6B/{8B+(6B''E'B})({AFD})/{6.E3G},8B-/({6'EGF})({FAG})({GEB})/4F6-",
"@clef:G-2\n\
@keysig:xF\n\
@timesig:3/8\n\
@data:=25//$xFCG @c 2-4.-'8E/{6AGFE}{8A''C}'B''4D{6C'B}/{''DC'BA}{''8EA}",
"@clef:F-4\n\
@keysig:bB\n\
@timesig:c\n\
@data:,6{FA'CF} %G-2{''6CEA'''C} %F-4{,6FB'DF} %G-2{''6DFA'''D}/\n",
"@clef:C-4\n\
@keysig:xFC\n\
@timesig:c/\n\
@data:,{8.A6A}/'4.Dt8D4.Ct8D/{8.E6C},8(A)'E4DtE/{8.Ft3GE}8(D)-2-/\n",
"@clef:G-2\n\
@keysig:xFCG\n\
@timesig:3/8\n\
@data:''8-{CD}+/{DC'B}/{xAB''F+}/{FED}/{CGB+}/{BAG+}/{GFE}/\n",
"@clef:G-2\n\
@keysig:bBE\n\
@timesig:2/4\n\
@data:''{8.F6D'8B}6-''F/{8.F6E8C}6-E/{8DC}{'8B''gCg'BgAgB''6FE}/2D\n",
"@clef:F-4\n\
@keysig:xF\n\
@timesig:c\n\
@data:qq,3{DnF'D}r/2Fqq,3{DnF'D}r2Aqq3,{DF'D}r/b1B,qq3{EG'C}r/1A//",
"@clef:C-1\n\
@keysig:xFCGD\n\
@timesig:c\n\
@data:'2-4.-8D/{EG}6.3{BA}{GF}{ED}{EF}{GA}{GF}/4E",
"@clef:G-2\n\
@keysig:none\n\
@timesig:3/4\n\
@data:'6!{GGCC}!f{GCGC}/i/i/"
];
//]]>
</script>
<div class="row">
<div class="col-md-3 sidebar-offcanvas" id="sidebar" role="navigation">
<div class="panel panel-default">
{% include other-sidebar.html %}
</div>
</div>
<div class="col-md-9">
<div class="panel-body">
<h3>Plaine & Easie Input</h3>
<p>
The Plaine & Easie Code is a library standard that enables entering music incipits in modern or mensural notation. It is mostly used by the <a href="http://www.rism.info" target="_blank">Répertoire International des Sources Musicales (RISM)</a> for inventorying the music incipits of the manuscripts. More information about the syntax is available on the <a href="http://www.iaml.info/plaine-easie-code" target="_blank">IAML</a> website.
</p>
<p>
The examples below show some features of the PAE code. They are all rendered dynamically in the web-browser with the <a href="{{ site.baseurl }}/javascript.xhtml">JavaScript toolkit</a> version of Verovio.
</p>
<h4>Beams and tuplets</h4>
<div id="svg_pae0" style="overflow:auto;"/>
<p>
<div class="highlight"><pre><code id="code_pae0"></code></pre></div>
</p>
<h4>Measure rests and key and time signature changes</h4>
<div id="svg_pae1" style="overflow:auto;"/>
<p>
<div class="highlight"><pre><code id="code_pae1"></code></pre></div>
</p>
<h4>Clef changes</h4>
<div id="svg_pae2" style="overflow:auto;"/>
<p>
<div class="highlight"><pre><code id="code_pae2"></code></pre></div>
</p>
<h4>Trills and fermata</h4>
<div id="svg_pae3" style="overflow:auto;"/>
<p>
<div class="highlight"><pre><code id="code_pae3"></code></pre></div>
</p>
<h4>Ties</h4>
<div id="svg_pae4" style="overflow:auto;"/>
<p>
<div class="highlight"><pre><code id="code_pae4"></code></pre></div>
</p>
<h4>Grace notes (acciaccaturas)</h4>
<div id="svg_pae5" style="overflow:auto;"/>
<p>
<div class="highlight"><pre><code id="code_pae5"></code></pre></div>
</p>
<h4>Grace notes (appoggiaturas)</h4>
<div id="svg_pae6" style="overflow:auto;"/>
<p>
<div class="highlight"><pre><code id="code_pae6"></code></pre></div>
</p>
<h4>Rhythmic patterns</h4>
<div id="svg_pae7" style="overflow:auto;"/>
<p>
<div class="highlight"><pre><code id="code_pae7"></code></pre></div>
</p>
<h4>Abbreviated writing</h4>
<div id="svg_pae8" style="overflow:auto;"/>
<p>
<div class="highlight"><pre><code id="code_pae8"></code></pre></div>
</p>
</div>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
$( document ).ready(function() {
// adjust the zoom for small screens
width = $('#svg_pae1').width();
if ( width < zoom * pageWidth / 100 ) {
zoom = width * 100 / pageWidth;
}
/*
var mei;
$.get( "{{ site.baseurl }}/examples/features/tuplets-4.mei" , function( data ) {
mei = data;
var incipits = [mei, mei, mei, mei, mei, mei, mei, mei, mei];
for (i = 0; i < incipits.length; i++) {
load_data( incipits[i], $('#svg_pae' + i) );
//$('#code_pae' + i).html( incipits[i] );
}
});
*/
for (i = 0; i < incipits.length; i++) {
load_data( incipits[i], $('#svg_pae' + i) );
$('#code_pae' + i).html( incipits[i] );
}
});
//]]>
</script>