| 1 |
unit lyrics; |
| 2 |
{ Everything related to lyrics } |
| 3 |
|
| 4 |
interface uses globals; |
| 5 |
|
| 6 |
procedure initLyrics; |
| 7 |
procedure clearTags; |
| 8 |
procedure reviseLyrics; |
| 9 |
procedure lyrTranslate(var P: string; var numbered: boolean); |
| 10 |
procedure getSyllable(voice: voice_index; var pretex: string); |
| 11 |
function lyricsReport (voice: voice_index): string; |
| 12 |
procedure maybeLyrics (voice: voice_index; parline: paragraph_index; |
| 13 |
w: string); |
| 14 |
procedure extractLyrtag (voice: voice_index; var note: string); |
| 15 |
procedure lyricsAdjust (voice: voice_index; var note: string); |
| 16 |
procedure assignLyrics(stave: stave_index; var lyrassign: string); |
| 17 |
procedure lyricsParagraph; |
| 18 |
function hasVerseNumber(voice: voice_index): boolean; |
| 19 |
|
| 20 |
implementation uses control, strings, mtxline, status, files, utility; |
| 21 |
|
| 22 |
{ Symbols used in strings of melismatype } |
| 23 |
const |
| 24 |
beam_melisma = '['; |
| 25 |
inhibit_beam_melisma = '<'; |
| 26 |
slur_melisma = '('; |
| 27 |
inhibit_slur_melisma = '{'; |
| 28 |
|
| 29 |
type |
| 30 |
other_index = 1..10; |
| 31 |
other_index0 = 0..10; |
| 32 |
melismatype = string; |
| 33 |
haslyrtype = (nolyr, haslyr); |
| 34 |
auxtype= (normal, aux); |
| 35 |
assigntype = (asbefore, newassign); |
| 36 |
inittype = (virgin,active); |
| 37 |
lyrinfotype = record |
| 38 |
lyr_adjust, slur_level, slur_change, beam_level, beam_change: integer; |
| 39 |
melisma: melismatype; |
| 40 |
numbered: boolean; |
| 41 |
end; |
| 42 |
|
| 43 |
lyrlinetype = (none_given, global_lyrics, local_lyrics); |
| 44 |
lyrtagtype = record |
| 45 |
lyrsource: lyrlinetype; |
| 46 |
has_lyrics: haslyrtype; |
| 47 |
auxiliary: auxtype; |
| 48 |
new_assign: assigntype; |
| 49 |
initialized: inittype; |
| 50 |
linecount: integer; |
| 51 |
tags: string; |
| 52 |
end; |
| 53 |
|
| 54 |
const maxLyrNums=64; |
| 55 |
lyrtaglength=40; |
| 56 |
LyrNum: integer=0; |
| 57 |
|
| 58 |
var lyrmodealter, oldlyrmodealter: array[stave_index] of boolean; |
| 59 |
tag, oldtag: array[voice_index] of lyrtagtype; |
| 60 |
lyrinfo: array[voice_index] of lyrinfotype; |
| 61 |
numberedParagraph: array[1..maxLyrNums] of string[lyrtaglength]; |
| 62 |
|
| 63 |
const lyr_adjust_undef = -12345; |
| 64 |
interstave = 24; |
| 65 |
|
| 66 |
{ Information flow for verse numbers: at the SetLyrics stage, the first |
| 67 |
line of each lyrics paragraph is checked for a verse number, and if |
| 68 |
found, the paragraph tag is remembered. At the AssignLyrics stage, |
| 69 |
the first time that paragraph is encountered, the particular voice |
| 70 |
is marked in lyrinfo as being numbered. When that voice is later processed, |
| 71 |
the mark in lyrinfo is interrogated and turned off: if it was on, the |
| 72 |
mtxVerse pre-TeX string is put into the output. } |
| 73 |
|
| 74 |
function hasVerseNumber(voice: voice_index): boolean; |
| 75 |
begin hasVerseNumber:=lyrinfo[voice].numbered; |
| 76 |
lyrinfo[voice].numbered:=false; |
| 77 |
end; |
| 78 |
|
| 79 |
function isNumberedLyricsParagraph(tag: string): boolean; |
| 80 |
var i: integer; |
| 81 |
begin |
| 82 |
for i:=1 to LyrNum do if tag=numberedParagraph[i] then |
| 83 |
begin isNumberedLyricsParagraph:=true; exit; end; |
| 84 |
isNumberedLyricsParagraph:=false; |
| 85 |
end; |
| 86 |
|
| 87 |
function anyTagNumbered(tags: string): boolean; |
| 88 |
var s: string; |
| 89 |
begin anyTagNumbered:=false; |
| 90 |
if curtail(tags,'}')>0 then delete1(tags,1); |
| 91 |
repeat s:=getNextWord(tags,',',dummy); |
| 92 |
if s='' then exit; |
| 93 |
if isNumberedLyricsParagraph(s) then |
| 94 |
begin anyTagNumbered:=true; exit; end; |
| 95 |
until false; |
| 96 |
end; |
| 97 |
|
| 98 |
{ Save the tag in the numberedParagraph list, stripping off braces if any } |
| 99 |
procedure markNumbered(tag: string); |
| 100 |
begin if LyrNum >= maxLyrNums then |
| 101 |
begin error('Too many numbered lines in the lyrics',not print); exit; end; |
| 102 |
inc(LyrNum); |
| 103 |
if curtail(tag,'}')>0 then delete1(tag,1); |
| 104 |
numberedParagraph[LyrNum] := tag; |
| 105 |
end; |
| 106 |
|
| 107 |
{ --- end of procedures to keep track of verse numbering --- } |
| 108 |
|
| 109 |
procedure lyricsParagraph; |
| 110 |
var first, w: string; |
| 111 |
l, line: paragraph_index0; |
| 112 |
i, nother: other_index0; |
| 113 |
other: array[other_index] of string[lyrtaglength]; |
| 114 |
numbered: boolean; |
| 115 |
begin if not doLyrics then exit; |
| 116 |
if para_len<2 then fatalerror('empty lyrics paragraph'); |
| 117 |
w:=NextWord(P[1],blank,dummy); l:=length(w); line_no := orig_line_no[1]; |
| 118 |
if w[l]<>'}' then w:=w+'}'; |
| 119 |
first:=GetNextWord(w,dummy,'}'); nother:=0; |
| 120 |
while w<>'' do |
| 121 |
begin if w[1]='=' then predelete(w,1); |
| 122 |
if w[1]<>'{' then w:='{'+w; |
| 123 |
inc(nother); other[nother]:=GetNextWord(w,dummy,'}'); |
| 124 |
end; |
| 125 |
if beVerbose then |
| 126 |
begin write('---- Paragraph ', paragraph_no, ' starting at line ', line_no, |
| 127 |
' has lyrics headed ',first); |
| 128 |
for i:=1 to nother do write('=',other[i]); writeln; |
| 129 |
end; |
| 130 |
TeXtype2(comment+' Paragraph '+toString(paragraph_no)+' line '+ |
| 131 |
toString(line_no)+' bar '+toString(bar_no)); |
| 132 |
TeXtype2('\mtxSetLyrics'+first+'{%'); |
| 133 |
for line:=2 to para_len do |
| 134 |
begin lyrTranslate(P[line],numbered); |
| 135 |
if numbered then if (line>2) then warning( |
| 136 |
'Verse number not in first line of paragraph treated as lyrics',print) |
| 137 |
else |
| 138 |
begin markNumbered(first); for i:=1 to nother do markNumbered(other[i]); |
| 139 |
end; |
| 140 |
line_no:=orig_line_no[line]; |
| 141 |
if (length(P[line])>max_lyrics_line_length) and pmx_preamble_done |
| 142 |
then error('Lyrics line too long',print); |
| 143 |
if pmx_preamble_done then |
| 144 |
if line=2 then put('\\\:'+P[line],putspace) |
| 145 |
else put('\\\ ' + P[line],putspace) |
| 146 |
else put(P[line],putspace); |
| 147 |
if line<para_len then |
| 148 |
if pmx_preamble_done then putLine(' %\') |
| 149 |
else putLine(' %') |
| 150 |
else if pmx_preamble_done then putLine('}\') |
| 151 |
else putLine('}') |
| 152 |
end; |
| 153 |
for i:=1 to nother do TeXtype2('\mtxCopyLyrics'+first+other[i]); |
| 154 |
end; |
| 155 |
|
| 156 |
function songraise(voice: voice_index): string; |
| 157 |
var s: string; |
| 158 |
begin with tag[voice] do with lyrinfo[voice] do |
| 159 |
if (initialized=virgin) and (lyr_adjust=0) then songraise:='' else |
| 160 |
begin |
| 161 |
if auxiliary=aux then s:='Aux' else s:=''; |
| 162 |
songraise:='\mtx'+s+'LyricsAdjust{'+toString(PMXinstr(voiceStave(voice))) |
| 163 |
+'}{'+toString(lyr_adjust)+'}'; |
| 164 |
end; |
| 165 |
end; |
| 166 |
|
| 167 |
function lyricsReport (voice: voice_index): string; |
| 168 |
var l: string; |
| 169 |
begin with tag[voice] do |
| 170 |
if (has_lyrics=nolyr) or (lyrsource=none_given) and (tags='') then |
| 171 |
lyricsReport := ' but has no own lyrics' |
| 172 |
else begin |
| 173 |
l := ' with '; |
| 174 |
if auxiliary=aux then l := l + 'auxiliary '; |
| 175 |
l := l + 'lyrics '; |
| 176 |
if lyrsource=local_lyrics then l:= l + 'locally defined as "' |
| 177 |
else l := l + 'labelled "'; |
| 178 |
l := l + tags + '"'; |
| 179 |
if anyTagNumbered(tags) then l := l + ' with verse numbers'; |
| 180 |
lyricsReport := l; |
| 181 |
end; |
| 182 |
end; |
| 183 |
|
| 184 |
procedure initLyrics; { at the start only } |
| 185 |
var stave: stave_index; |
| 186 |
voice: voice_index; |
| 187 |
begin for voice:=1 to nvoices do |
| 188 |
with lyrinfo[voice] do with tag[voice] do |
| 189 |
begin has_lyrics:=nolyr; lyr_adjust:=lyr_adjust_undef; |
| 190 |
melisma:=''; slur_level:=0; beam_level:=0; auxiliary:=aux; |
| 191 |
lyrsource:=none_given; new_assign := asbefore; initialized := virgin; |
| 192 |
end; |
| 193 |
for stave:=1 to nstaves do oldlyrmodealter[stave] := false; |
| 194 |
end; |
| 195 |
|
| 196 |
procedure registerLyrics (voice: voice_index; w: string); |
| 197 |
begin |
| 198 |
with tag[voice] do |
| 199 |
begin oldtag[voice].tags:=tags; |
| 200 |
oldtag[voice].lyrsource:=lyrsource; |
| 201 |
lyrsource:=global_lyrics; |
| 202 |
case length(w) of |
| 203 |
0: tags := ''; |
| 204 |
1: FatalError('M-Tx system error in registerLyrics'); |
| 205 |
else tags := w; |
| 206 |
end; |
| 207 |
end; |
| 208 |
end; |
| 209 |
|
| 210 |
procedure extractLyrtag (voice: voice_index; var note: string); |
| 211 |
{ inline lyrics change } |
| 212 |
begin with tag[voice] do |
| 213 |
if has_lyrics=nolyr then |
| 214 |
error3(voice,'Inline lyrics change on no-lyrics line') |
| 215 |
else begin registerLyrics(voice,note); { was: ''); } |
| 216 |
note:='\mtxAssignLyrics{'+toString(PMXinstr(voiceStave(voice)))+'}'+note; |
| 217 |
if auxiliary=aux then note:='\mtxAuxLyr{'+note+'}\' else note:=note+'\'; |
| 218 |
end; |
| 219 |
end; |
| 220 |
|
| 221 |
procedure clearTags; { at start of paragraph analyis } |
| 222 |
var voice: voice_index; |
| 223 |
begin |
| 224 |
oldtag:=tag; |
| 225 |
for voice:=1 to nvoices do with tag[voice] do |
| 226 |
begin |
| 227 |
lyrsource:=none_given; tags := ''; linecount:=0; |
| 228 |
end; |
| 229 |
end; |
| 230 |
|
| 231 |
procedure maybeLyrics (voice: voice_index; parline: paragraph_index; |
| 232 |
w: string); |
| 233 |
{ during paragraph analysis, parline had L:, already stripped } |
| 234 |
var k: voice_index0; |
| 235 |
procedure convertlyrics(var lyn: string; voice: voice_index; mx: auxtype); |
| 236 |
const setlyr: string = '%%\\\mtxSetLyrics'; |
| 237 |
maxlyrlen = PMXlinelength-15; |
| 238 |
var btag, thistag, w: string; |
| 239 |
numbered: boolean; |
| 240 |
begin |
| 241 |
w:=NextWord(lyn,blank,dummy); with tag[voice] do |
| 242 |
begin |
| 243 |
if w='' then tags:='' |
| 244 |
else begin |
| 245 |
has_lyrics:=haslyr; auxiliary:=mx; |
| 246 |
if w[1]='{' then registerLyrics(voice,w) |
| 247 |
else begin lyrsource:=local_lyrics; |
| 248 |
inc(linecount); thistag:=toString(10*voice+linecount); |
| 249 |
btag := '{'+thistag+'}'; |
| 250 |
if tags='' then tags:=btag |
| 251 |
else begin tags[length(tags)]:=','; tags:=tags+thistag+'}'; end; |
| 252 |
trim(lyn); lyrTranslate(lyn,numbered); |
| 253 |
if numbered then markNumbered(thistag); |
| 254 |
if length(lyn)+length(btag)>maxlyrlen then |
| 255 |
lyn := setlyr + btag + '{\'^J'\\\:' + lyn +'}\' |
| 256 |
else lyn:= setlyr + btag + '{' + lyn +'}\'; |
| 257 |
end; |
| 258 |
end; |
| 259 |
end; |
| 260 |
end; |
| 261 |
begin if not dolyrics then exit; |
| 262 |
if (length(w)=1) and (voice=0) then |
| 263 |
warning('Lyrics line above top voice should be labelled',print); |
| 264 |
if length(w)=1 then {* Standard lyrics line -------- } |
| 265 |
begin k:=voice; if k=0 then k:=1; convertlyrics(P[parline],k,normal); |
| 266 |
end |
| 267 |
else {* Labelled lyrics line -- } |
| 268 |
begin predelete(w,1); k:=findVoice(w); |
| 269 |
if k=0 then error('Lyrics line belongs to unknown voice',print) |
| 270 |
else convertlyrics(P[parline],k,aux); |
| 271 |
end; |
| 272 |
end; |
| 273 |
|
| 274 |
procedure reviseLyrics; { after paragraph analysis } |
| 275 |
var voice : voice_index; |
| 276 |
stave : stave_index; |
| 277 |
begin |
| 278 |
for voice:=1 to nvoices do with tag[voice] do |
| 279 |
begin if (oldtag[voice].lyrsource=global_lyrics) and |
| 280 |
(lyrsource=none_given) then |
| 281 |
begin tags:=oldtag[voice].tags; lyrsource:=global_lyrics; end; |
| 282 |
new_assign := |
| 283 |
assigntype(ord((has_lyrics=haslyr) and (tags<>oldtag[voice].tags))); |
| 284 |
if tags='' then has_lyrics := nolyr; |
| 285 |
oldtag[voice].tags := tags; |
| 286 |
oldtag[voice].lyrsource := lyrsource; |
| 287 |
end; |
| 288 |
for stave:=1 to nstaves do with tag[first_on_stave[stave]] do |
| 289 |
lyrmodealter[stave] := not aloneOnStave(stave) and |
| 290 |
(has_lyrics=haslyr) and (auxiliary=normal); |
| 291 |
end; |
| 292 |
|
| 293 |
procedure assignLyrics(stave: stave_index; var lyrassign: string); |
| 294 |
{ at start of new block } |
| 295 |
var atag, instr, l: string; |
| 296 |
v1, v2, voice: voice_index; |
| 297 |
begin lyrassign:=''; instr := toString(pmxinstr(stave)); |
| 298 |
v1:=first_on_stave[stave]; v2:=v1+number_on_stave[stave]-1; |
| 299 |
if v1<v2 then { don't reassign if other voice takes over }; |
| 300 |
if (tag[v1].auxiliary=tag[v2].auxiliary) and |
| 301 |
(tag[v1].has_lyrics<>tag[v2].has_lyrics) then |
| 302 |
for voice:=v1 to v2 do with tag[voice] do |
| 303 |
if new_assign=newassign then new_assign:=assigntype(has_lyrics); |
| 304 |
for voice:=v1 to v2 do lyrinfo[voice].numbered:=false; |
| 305 |
for voice:=v1 to v2 do |
| 306 |
with tag[voice] do if new_assign=newassign then |
| 307 |
begin atag:=tags; if atag='' then atag:='{}'; |
| 308 |
l := '\mtxAssignLyrics{' + instr + '}' + atag; |
| 309 |
if auxiliary=aux then l:='\mtxAuxLyr{' + l + '}'; |
| 310 |
lyrassign := lyrassign + l; |
| 311 |
if tags='' then has_lyrics:=nolyr; |
| 312 |
if (has_lyrics=haslyr) and (initialized=virgin) then |
| 313 |
with lyrinfo[voice] do |
| 314 |
begin if (auxiliary=aux) and upper(voice) then |
| 315 |
lyr_adjust:=interstave else lyr_adjust:=0; |
| 316 |
lyrassign := lyrassign + songraise(voice); |
| 317 |
initialized := active; |
| 318 |
end; |
| 319 |
if anyTagNumbered(atag) then lyrinfo[voice].numbered:=true; |
| 320 |
end; |
| 321 |
if lyrmodealter[stave]<>oldlyrmodealter[stave] then |
| 322 |
begin if lyrmodealter[stave] then |
| 323 |
lyrassign := lyrassign + '\mtxLyrModeAlter{' + instr + '}' |
| 324 |
else lyrassign := lyrassign + '\mtxLyrModeNormal{' + instr + '}'; |
| 325 |
oldlyrmodealter[stave] := lyrmodealter[stave]; |
| 326 |
end; |
| 327 |
end; |
| 328 |
|
| 329 |
procedure lyricsAdjust (voice: voice_index; var note: string); |
| 330 |
{ inline at-word } |
| 331 |
var adj: integer; |
| 332 |
force, put_above, put_below: boolean; |
| 333 |
begin with lyrinfo[voice] do with tag[voice] do |
| 334 |
begin predelete(note,1); |
| 335 |
force:=note[1]='='; if force then predelete(note,1); |
| 336 |
put_above:=note[1]='^'; if put_above then predelete(note,1); |
| 337 |
put_below:=note[1]='v'; if put_below then predelete(note,1); |
| 338 |
if note<>'' then getNum(note,adj) else adj:=0; |
| 339 |
if has_lyrics=nolyr then begin note:=''; exit; end; |
| 340 |
if put_above then lyr_adjust:=interstave |
| 341 |
else if put_below then lyr_adjust:=0; |
| 342 |
if force then lyr_adjust:=adj else inc(lyr_adjust,adj); |
| 343 |
note:=songraise(voice); if note<>'' then note:='\\'+note+'\'; |
| 344 |
end |
| 345 |
end; |
| 346 |
|
| 347 |
procedure lyrTranslate(var P: string; var numbered: boolean); |
| 348 |
var k, l, number: integer; |
| 349 |
Q, w: string; |
| 350 |
begin { Test for starting number } w:=NextWord(P,blank,dummy); |
| 351 |
numbered:=false; |
| 352 |
if endsWith(w,'.') then begin getNum(w,number); numbered:=number<>0 end; |
| 353 |
{Translate lyrics link } Q := ''; l:=length(P); |
| 354 |
for k:=1 to l-1 do |
| 355 |
if (P[k]<>'_') or (P[k+1]='_') or (P[k+1]=' ') or (pos1(P[k+1],digits)>0) |
| 356 |
then Q := Q+P[k] |
| 357 |
else if (k>1) and (P[k-1]='\') then Q := Q+'mtxLowLyrlink ' |
| 358 |
else Q := Q+'\mtxLyrlink '; |
| 359 |
Q:=Q+P[l]; |
| 360 |
P := Q; |
| 361 |
end; |
| 362 |
|
| 363 |
type melismaEnd = (beam, slur); |
| 364 |
|
| 365 |
function removeLast(var s: string; t: string): char; |
| 366 |
var i,l: integer; |
| 367 |
begin l:=length(s); |
| 368 |
for i:=l downto 1 do if pos1(s[i],t)>0 then |
| 369 |
begin removeLast:=s[i]; delete1(s,i); exit; end; |
| 370 |
removeLast := dummy; |
| 371 |
end; |
| 372 |
|
| 373 |
function OpenMelisma(s: string): boolean; |
| 374 |
begin OpenMelisma := (pos1(slur_melisma,s)>0) or (pos1(beam_melisma,s)>0); |
| 375 |
end; |
| 376 |
|
| 377 |
{ Append mtxBM or mtxEM to pretex when appropriate } |
| 378 |
procedure getSyllable(voice: voice_index; var pretex: string); |
| 379 |
var BM, EM: boolean; |
| 380 |
procedure startMelismas (t: string); |
| 381 |
var open_before, open_now: boolean; |
| 382 |
i, k: integer; |
| 383 |
begin k:=length(t); |
| 384 |
for i:=1 to k do with lyrinfo[voice] do |
| 385 |
begin open_before := OpenMelisma(melisma); |
| 386 |
melisma := melisma + t[i]; |
| 387 |
open_now := OpenMelisma(melisma); |
| 388 |
BM := BM or (open_now and not open_before) |
| 389 |
end; |
| 390 |
end; |
| 391 |
function endMelisma(voice: integer): boolean; |
| 392 |
var found: char; |
| 393 |
i: integer; |
| 394 |
count: array[melismaEnd] of integer; |
| 395 |
t: melismaEnd; |
| 396 |
begin EM := false; |
| 397 |
count[slur] := -lyrinfo[voice].slur_change; |
| 398 |
count[beam] := -lyrinfo[voice].beam_change; |
| 399 |
for t:=beam to slur do for i:=1 to count[t] do with lyrinfo[voice] do |
| 400 |
begin |
| 401 |
case t of |
| 402 |
slur: found := removeLast(melisma,slur_melisma+inhibit_slur_melisma); |
| 403 |
beam: found := removeLast(melisma,beam_melisma+inhibit_beam_melisma); |
| 404 |
end; |
| 405 |
if found=dummy then |
| 406 |
error3(voice,'Ending a melisma that was never started'); |
| 407 |
EM := EM or (not openMelisma(melisma) |
| 408 |
and (pos1(found,slur_melisma+beam_melisma)>0)) |
| 409 |
end; |
| 410 |
endMelisma := EM |
| 411 |
end; |
| 412 |
procedure startSlurMelisma(voice: voice_index); |
| 413 |
const start: array[boolean] of char = (slur_melisma,inhibit_slur_melisma); |
| 414 |
var slurs: string; |
| 415 |
k: integer; |
| 416 |
begin slurs:=''; |
| 417 |
for k:=1 to lyrinfo[voice].slur_change do |
| 418 |
slurs:=start[noSlurMelisma(voice,1-k)]+slurs; |
| 419 |
startMelismas(slurs) |
| 420 |
end; |
| 421 |
procedure startBeamMelisma(voice: voice_index); |
| 422 |
const start: array[boolean] of char = (beam_melisma,inhibit_beam_melisma); |
| 423 |
var beams: string; |
| 424 |
k: integer; |
| 425 |
begin beams:=''; |
| 426 |
for k:=1 to lyrinfo[voice].beam_change do |
| 427 |
beams:=start[noBeamMelisma(voice)]+beams; |
| 428 |
startMelismas(beams) |
| 429 |
end; |
| 430 |
function startMelisma(voice: integer): boolean; |
| 431 |
begin BM:=false; startSlurMelisma(voice); startBeamMelisma(voice); |
| 432 |
startMelisma := BM |
| 433 |
end; |
| 434 |
var t: integer; |
| 435 |
begin with tag[voice] do with lyrinfo[voice] do |
| 436 |
begin if has_lyrics<>haslyr then exit; |
| 437 |
t:=slur_level; slur_level:=slurLevel(voice); slur_change:=slur_level-t; |
| 438 |
t:=beam_level; beam_level:=beamLevel(voice); beam_change:=beam_level-t; |
| 439 |
if startMelisma(voice) then if auxiliary=aux |
| 440 |
then pretex:=pretex+'\mtxAuxBM' else pretex:=pretex+'\mtxBM'; |
| 441 |
if endMelisma(voice) then if auxiliary=aux |
| 442 |
then pretex:=pretex+'\mtxAuxEM' else pretex:=pretex+'\mtxEM' |
| 443 |
end |
| 444 |
end; |
| 445 |
|
| 446 |
procedure getSyllable1(voice: voice_index; var pretex: string); |
| 447 |
begin with lyrinfo[voice] do |
| 448 |
begin |
| 449 |
writeln('voice=',voice, ', slurchange=',slur_change, |
| 450 |
', melisma=',melisma, ', beamchange=', beam_change) |
| 451 |
end; |
| 452 |
getSyllable1(voice,pretex); |
| 453 |
if pretex<>'' then writeln('pretex = ',pretex) |
| 454 |
end; |
| 455 |
|
| 456 |
end. |