diff options
Diffstat (limited to 'Build/source/utils/pmx')
-rw-r--r-- | Build/source/utils/pmx/pmx-PATCHES/TL-Changes | 2 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/Makefile.am | 4 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/Makefile.f2c | 4 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/PATCH-pmx273.for-1 | 34 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/PATCH-pmx273.for-2 | 10 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/PATCH-pmx274.for | 166 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/README | 2 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/pmx274.for (renamed from Build/source/utils/pmx/pmx-src/pmx273.for) | 292 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/pmx274.for.orig (renamed from Build/source/utils/pmx/pmx-src/pmx273.for.orig) | 286 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/pmxab.c | 45773 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/scor2prt.c | 3401 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/scor2prt.for | 41 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/tests/barsant.mid | bin | 3071 -> 3071 bytes | |||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/tests/barsant.pml | 2 | ||||
-rw-r--r-- | Build/source/utils/pmx/pmx-src/version.ac | 2 |
15 files changed, 25243 insertions, 24776 deletions
diff --git a/Build/source/utils/pmx/pmx-PATCHES/TL-Changes b/Build/source/utils/pmx/pmx-PATCHES/TL-Changes index 5d8d9f5f938..a4df40e74fb 100644 --- a/Build/source/utils/pmx/pmx-PATCHES/TL-Changes +++ b/Build/source/utils/pmx/pmx-PATCHES/TL-Changes @@ -1,4 +1,4 @@ -Changes applied to the pmx-2.7.3 tree as obtained from: +Changes applied to the pmx-2.7.4 tree as obtained from: http://www.ctan.org/tex-archive/support/pmx/ Remove: diff --git a/Build/source/utils/pmx/pmx-src/Makefile.am b/Build/source/utils/pmx/pmx-src/Makefile.am index e1e2eb6d5e4..323d74c7e00 100644 --- a/Build/source/utils/pmx/pmx-src/Makefile.am +++ b/Build/source/utils/pmx/pmx-src/Makefile.am @@ -233,11 +233,11 @@ PATCHES = libf2c/patch-01-binary libf2c/patch-03-DOS-line-endings \ libf2c/patch-07-MuslLibc \ libf2c/patch-08-WIN64 \ libf2c/patch-09-tmpfile \ - PATCH-pmx273.for-1 PATCH-pmx273.for-2 + PATCH-pmx274.for ## pmx.test EXTRA_DIST += tests/barsant.mid tests/barsant.pml tests/barsant.pmx \ tests/barsant.tex tests/barsant1.pmx tests/barsant2.pmx -EXTRA_DIST += scor2prt.for pmx273.for.orig pmx273.for +EXTRA_DIST += scor2prt.for pmx274.for.orig pmx274.for EXTRA_DIST += $(PATCHES) EXTRA_DIST += version.ac configure.ac Makefile.am Makefile.f2c DISTCLEANFILES = barsant* pmxaerr.dat diff --git a/Build/source/utils/pmx/pmx-src/Makefile.f2c b/Build/source/utils/pmx/pmx-src/Makefile.f2c index 60b08df4439..ae58b8792fe 100644 --- a/Build/source/utils/pmx/pmx-src/Makefile.f2c +++ b/Build/source/utils/pmx/pmx-src/Makefile.f2c @@ -1,7 +1,7 @@ all: pmxab.c scor2prt.c -pmxab.c: pmx273.for - f2c -g -\!bs < pmx273.for > pmxab.c +pmxab.c: pmx274.for + f2c -g -\!bs < pmx274.for > pmxab.c scor2prt.c: scor2prt.for f2c -g -\!bs < scor2prt.for > scor2prt.c diff --git a/Build/source/utils/pmx/pmx-src/PATCH-pmx273.for-1 b/Build/source/utils/pmx/pmx-src/PATCH-pmx273.for-1 deleted file mode 100644 index ac8f2bcbf59..00000000000 --- a/Build/source/utils/pmx/pmx-src/PATCH-pmx273.for-1 +++ /dev/null @@ -1,34 +0,0 @@ -11004c11004 -< subroutine getmidi(noinst,lineq,iccount,ibarcnt,ibaroff,nbars, ---- -> subroutine getmidi(noinstarg,lineq,iccount,ibarcnt,ibaroff,nbars, -11033c11033 -< * ,miditran(nm),midtc(0:nm),noinstdum,iinsiv(nm) ---- -> * ,miditran(nm),midtc(0:nm),noinst,iinsiv(nm) -11110c11110 -< do 2 ivx = 1 , noinst ---- -> do 2 ivx = 1 , noinstarg -11155c11155 -< do 7 ivx = 1 , noinst ---- -> do 7 ivx = 1 , noinstarg -11178c11178 -< do 8 ivx = 1 , noinst ---- -> do 8 ivx = 1 , noinstarg -11201c11201 -< do 9 ivx = 1 , noinst ---- -> do 9 ivx = 1 , noinstarg -19791c19791,19792 -< logical inputmlyr /.false./ ---- -> logical inputmlyr -> data inputmlyr /.false./ -24429c24430,24431 -< character*1 sq /'\'/ ---- -> character*1 sq -> data sq /'\'/ diff --git a/Build/source/utils/pmx/pmx-src/PATCH-pmx273.for-2 b/Build/source/utils/pmx/pmx-src/PATCH-pmx273.for-2 deleted file mode 100644 index 44b4de79f1f..00000000000 --- a/Build/source/utils/pmx/pmx-src/PATCH-pmx273.for-2 +++ /dev/null @@ -1,10 +0,0 @@ -113,114c113,114 -< call getarg(1,jobname,idum) ! May need to replace this w/ next line -< c call getarg(1,jobname) ---- -> c call getarg(1,jobname,idum) ! May need to replace this w/ next line -> call getarg(1,jobname) -1485c1485 -< logical insetup,replacing ---- -> logical insetup,replacing,botv diff --git a/Build/source/utils/pmx/pmx-src/PATCH-pmx274.for b/Build/source/utils/pmx/pmx-src/PATCH-pmx274.for new file mode 100644 index 00000000000..5a5a7179bcc --- /dev/null +++ b/Build/source/utils/pmx/pmx-src/PATCH-pmx274.for @@ -0,0 +1,166 @@ +*** pmx274.for.orig 2016-02-20 22:48:43.793458913 -0500 +--- pmx274.for 2016-02-20 23:08:55.803226069 -0500 +*************** +*** 11062,11068 **** + end if + go to 1 + end +! subroutine getmidi(noinst,lineq,iccount,ibarcnt,ibaroff,nbars, + * lenbar, + c subroutine getmidi(nv,lineq,iccount,ibarcnt,ibaroff,nbars,lenbar, + * mtrdenl,first) +--- 11062,11068 ---- + end if + go to 1 + end +! subroutine getmidi(noinstarg,lineq,iccount,ibarcnt,ibaroff,nbars, + * lenbar, + c subroutine getmidi(nv,lineq,iccount,ibarcnt,ibaroff,nbars,lenbar, + * mtrdenl,first) +*************** +*** 11091,11097 **** + * debugmidi + logical debugmidi + common /commvel/ midivel(nm),midvelc(0:nm),midibal(nm),midbc(0:nm) +! * ,miditran(nm),midtc(0:nm),noinstdum,iinsiv(nm) + integer*2 iinsiv + character*1 durq + character*2 instq +--- 11091,11097 ---- + * debugmidi + logical debugmidi + common /commvel/ midivel(nm),midvelc(0:nm),midibal(nm),midbc(0:nm) +! * ,miditran(nm),midtc(0:nm),noinst,iinsiv(nm) + integer*2 iinsiv + character*1 durq + character*2 instq +*************** +*** 11168,11174 **** + c Instrument numbers or letters. Expect noinst of them. + c + c do 2 ivx = 1 , nv +! do 2 ivx = 1 , noinst + call getchar(lineq,iccount,durq) + if (ichar(durq) .gt. 96) then + c +--- 11168,11174 ---- + c Instrument numbers or letters. Expect noinst of them. + c + c do 2 ivx = 1 , nv +! do 2 ivx = 1 , noinstarg + call getchar(lineq,iccount,durq) + if (ichar(durq) .gt. 96) then + c +*************** +*** 11213,11219 **** + c Follow same pattern as for insttrument numbers above. + c + c do 7 ivx = 1 , nv +! do 7 ivx = 1 , noinst + call getchar(lineq,iccount,durq) + if (index('123456789',durq) .eq. 0) then + call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, +--- 11213,11219 ---- + c Follow same pattern as for insttrument numbers above. + c + c do 7 ivx = 1 , nv +! do 7 ivx = 1 , noinstarg + call getchar(lineq,iccount,durq) + if (index('123456789',durq) .eq. 0) then + call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, +*************** +*** 11236,11242 **** + c Follow same pattern as for instrument numbers above. + c + c do 8 ivx = 1 , nv +! do 8 ivx = 1 , noinst + call getchar(lineq,iccount,durq) + if (index('123456789',durq) .eq. 0) then + call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, +--- 11236,11242 ---- + c Follow same pattern as for instrument numbers above. + c + c do 8 ivx = 1 , nv +! do 8 ivx = 1 , noinstarg + call getchar(lineq,iccount,durq) + if (index('123456789',durq) .eq. 0) then + call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, +*************** +*** 11259,11265 **** + c Follow similar pattern as above, but separator is +|-. + c + c do 9 ivx = 1 , nv +! do 9 ivx = 1 , noinst + call getchar(lineq,iccount,durq) + ipm = index('-+',durq) + if (ipm .eq. 0) then +--- 11259,11265 ---- + c Follow similar pattern as above, but separator is +|-. + c + c do 9 ivx = 1 , nv +! do 9 ivx = 1 , noinstarg + call getchar(lineq,iccount,durq) + ipm = index('-+',durq) + if (ipm .eq. 0) then +*************** +*** 11592,11597 **** +--- 11592,11598 ---- + common /commidisig/ midisig + common /comlyr/ inputmlyr + logical inputmlyr ++ data inputmlyr /.false./ + cdot = .false. + 1 call getchar(lineq,iccount,charq) + if (lastchar) return +*************** +*** 14491,14497 **** + c + c 160130 Replace '\' by '/' + c +! 12 ipos = index(pathnameq,'\') + if (ipos .gt. 0) then + pathnameq(ipos:ipos)='/' + print*,'Changed pathname to ',pathnameq(1:lpath) +--- 14492,14498 ---- + c + c 160130 Replace '\' by '/' + c +! 12 ipos = index(pathnameq,'\\') + if (ipos .gt. 0) then + pathnameq(ipos:ipos)='/' + print*,'Changed pathname to ',pathnameq(1:lpath) +*************** +*** 19855,19861 **** + common /comclefrests/ centrests + logical newclef, centrests + common /comlyr/ inputmlyr +! logical inputmlyr /.false./ + if (.not.optimize) then + print* + print*,'Starting second PMX pass' +--- 19856,19862 ---- + common /comclefrests/ centrests + logical newclef, centrests + common /comlyr/ inputmlyr +! logical inputmlyr + if (.not.optimize) then + print* + print*,'Starting second PMX pass' +*************** +*** 24497,24503 **** + c (unless preceded with '\'), check length + c + character*128 lineq,lineqt +! character*1 sq /'\'/ + iend = lenstr(lineq,128) + c + c i2nd = iccount+index(lineq(iccount+1:128),'"') +--- 24498,24505 ---- + c (unless preceded with '\'), check length + c + character*128 lineq,lineqt +! character*1 sq +! data sq /'\\'/ + iend = lenstr(lineq,128) + c + c i2nd = iccount+index(lineq(iccount+1:128),'"') diff --git a/Build/source/utils/pmx/pmx-src/README b/Build/source/utils/pmx/pmx-src/README index 833060ed60e..c5725475eaf 100644 --- a/Build/source/utils/pmx/pmx-src/README +++ b/Build/source/utils/pmx/pmx-src/README @@ -1,4 +1,4 @@ -This is PMX, version 2.7.3 (2016-02-02). PMX provides a preprocessor for MusiXTeX. +This is PMX, version 2.7.4 (2016-02-20). PMX provides a preprocessor for MusiXTeX. pmxab builds a TeX input file based on a .pmx input file in a much simpler language, making most of the layout decisions by itself. It has diff --git a/Build/source/utils/pmx/pmx-src/pmx273.for b/Build/source/utils/pmx/pmx-src/pmx274.for index 7138e7d5ad6..8549479738a 100644 --- a/Build/source/utils/pmx/pmx-src/pmx273.for +++ b/Build/source/utils/pmx/pmx-src/pmx274.for @@ -63,13 +63,21 @@ c Undotted chord notes with dotted main note. c Forced line break without line number c Fix dot moving when 2nds in chord get flipped c To do: increase length on notexq in dodyn +c 2.74 +c For staff-crossing beamed xtuplet chords, if 2nd segment of a joined beam +c starts with a blank rest, put '\sk' into the TeX. +c To enable high-to-both beamed etup staff-crossing chord, for blank +c rest at start of forced beam, shift \sk's from before to after \ib..; +c so \ib is at start and note in upper voice has a beam to connect to. +c Expand range of vertical xtup number shift, now stored in mult(16-22) +c Check for and allow \" within lyrics strings, for umlauts. c 2.73 (160121) c Dirk's "..." command, to convert "text" into \pmxlyr{text}\ and insert as c inline TeX. Replace all '~' inside "..." and not preceded with '\', by c '\lk '. Right after 2nd ", replace @[a,b][+,-]n with \at{[a,b][+,-]n}\ c Include definitions of \ly and \at in pmx.tex (2 Feb 16). After first ", c add (as type 2 string) '\\input musixlyr \' -c After inputting pathname, change any '\' to '/', for Linux compatibility. +c After inputting pathname, change any '\' to '/', for Linux compatibility. c 2.72 (160110) c Really finalize \mbrest...go back to 3 args to deal with clef changes. c Fine tune centered whole bar rests to deal with clef changes @@ -754,8 +762,8 @@ c nmidsec section starts and stops based on PLAYING macros (not recording). c ccccccccccccccccccccccccc c - data date /'2 Feb 16'/ - data version /'2.73'/ + data date /'20 Feb 16'/ + data version /'2.74'/ c ccccccccccccccccccccccccc data maxit,ncalls /200,0/ @@ -2014,6 +2022,15 @@ c end if end if c +c Check for end of 2nd seg of staff-jump xtup chord blank rest +c +c if (isbjmp.and.ivx.eq.ivbj2 + if (isbjmp + * .and.btest(islur(ivx,ip),29)) then + notexq = notexq(1:lnote)//sq//'sk' + return + end if +c c And now the note c if (lnote .gt. 0) then @@ -2236,7 +2253,9 @@ c call putxtn(mprint,iflop,multip,iud,wheadpt,poenom, * nolev1(ivx),islope(ivx),slfac, * xnlmid,islur(ivx,ip),lnote,notexq,ncmid(iv,ip),nlnum, - * eloff(ivx,nxtinbm(ivx)),iup,irest(ivx,ip),.false.) +c * eloff(ivx,nxtinbm(ivx)),iup,irest(ivx,ip),.false.) + * eloff(ivx,nxtinbm(ivx)),iup,irest(ivx,ip), + * mult(ivx,ip),.false.) end if call notefq(noteq,lnoten,nole,ncmid(iv,ip)) else @@ -2258,53 +2277,66 @@ c call notefq(noteq,lnoten,nole,ncmid(iv,ip)) end if c -c Check if multiplicity changes in a way requiring action -c - ipleft = ip-1 - if (btest(irest(ivx,ipleft),0)) ipleft = ipleft-1 - if (.not.btest(islur(ivx,ipleft),20)) then - multl = iand(15,mult(ivx,ipleft))-8 - else - multl = 1 - end if - mub = multip - multl - ipright = ip+1 - if (btest(irest(ivx,ipright),0)) ipright = ipright+1 - if (.not.btest(islur(ivx,ip),20)) then - multr = iand(15,mult(ivx,ipright))-8 - else - multr = 1 - end if - mua = multr-multip - if (mub.gt.0 .or. mua .lt. 0) then -c -c Multiplicity has increased from left or will decrease to right. Need action. +c Check if multiplicity changes in a way requiring action, +c unless (160211) it's blank rest on start of 2nd seg of joined beam c - if (isbjmp .and. ivx.eq.ivbj2) then - ivb = ivbj1 - ulqq = chax(225-ichar(ulq(ivx,ibmcnt(ivx)))) + if(.not.btest(irest(ivx,ip-1),24) + * .or..not.btest(islur(ivx,ip-1),29)) then + ipleft = ip-1 + if (btest(irest(ivx,ipleft),0)) ipleft = ipleft-1 + if (.not.btest(islur(ivx,ipleft),20)) then + multl = iand(15,mult(ivx,ipleft))-8 else - ivb = ivx - ulqq = ulq(ivx,ibmcnt(ivx)) - end if - if (mua .ge. 0) then - call ntrbbb(multip,'n',ulqq,ivb,notexq,lnote) - else if (multl .ge. multr) then - do 1 im = multip , 1+multr, -1 - call ntrbbb(im,'t',ulqq,ivb,notexq,lnote) -1 continue + multl = 1 + end if + mub = multip - multl + ipright = ip+1 + if (btest(irest(ivx,ipright),0)) ipright = ipright+1 + if (.not.btest(islur(ivx,ip),20)) then + multr = iand(15,mult(ivx,ipright))-8 else - do 2 im = 1+multr, multip - call ntrbbb(im,'r',ulqq,ivb,notexq,lnote) -2 continue - call ntrbbb(multr,'n',ulqq,ivb,notexq,lnote) + multr = 1 end if - else if (ip .gt. 1) then + mua = multr-multip + if (mub.gt.0 .or. mua .lt. 0) then +c +c Multiplicity has increased from left or will decrease to right. Need action. +c + if (isbjmp .and. ivx.eq.ivbj2) then + ivb = ivbj1 + ulqq = chax(225-ichar(ulq(ivx,ibmcnt(ivx)))) + else + ivb = ivx + ulqq = ulq(ivx,ibmcnt(ivx)) + end if + if (mua .ge. 0) then + call ntrbbb(multip,'n',ulqq,ivb,notexq,lnote) +c else if (multl .ge. multr) then +c Test for next note being blank rest, assuming staff-crossing +c xtup chord +c + else if (multl .ge. multr .and. + * .not.btest(islur(ivx,ip+1),29)) then + do 1 im = multip , 1+multr, -1 + call ntrbbb(im,'t',ulqq,ivb,notexq,lnote) +1 continue +c else +c Test for next note being blank rest, assuming staff-crossing +c xtup chord +c + else if (.not.btest(islur(ivx,ip+1),29)) then + do 2 im = 1+multr, multip + call ntrbbb(im,'r',ulqq,ivb,notexq,lnote) +2 continue + call ntrbbb(multr,'n',ulqq,ivb,notexq,lnote) + end if + else if (ip .gt. 1) then c c Check for 2nd member of dotted xtup c - if (btest(nacc(ivx,ip-1),27)) call ntrbbb(multip+1,'t', + if (btest(nacc(ivx,ip-1),27)) call ntrbbb(multip+1,'t', * ulq(ivx,ibmcnt(ivx)),ivx,notexq,lnote) + end if end if c c Now put in the note @@ -2596,11 +2628,13 @@ c character*79 notexq,tempq integer nornb(nm),ihornb(nm,24) real*4 space(80),squez(80) - logical novshrinktop,cstuplet,usexnumt + logical novshrinktop,cstuplet,usexnumt,writebrests common /comnvst/ novshrinktop,cstuplet common /comfig/ itfig(2,74),figq(2,74),ivupfig(2,74),nfigs(2), * fullsize(nm),ivxfig2,ivvfig(2,74) character*10 figq + common /xjbeambrests/ nbrests + writebrests = .true. ibc = ibmcnt(ivx) ipb1 = ibm1(ivx,ibc) multb = iand(15,mult(ivx,ipb1))-8 @@ -2692,7 +2726,8 @@ c call putxtn(mprint,iflop,multb,iud,wheadpt, * poenom,nolev1(ivx),islope(ivx),slfac,xnlmid,islur(ivx,ipb1), * lnote,notexq,ncmid(iv,ipb1),nlnum,eloff(ivx,nxtinbm(ivx)), - * iup,irest(ivx,ipb1),usexnumt) +c * iup,irest(ivx,ipb1),usexnumt) + * iup,irest(ivx,ipb1),mult(ivx,ipb1),usexnumt) end if if (.not.drawbm(ivx)) then c @@ -2850,15 +2885,22 @@ c if (ixrest(ivx) .eq. 1) then c c Insert rest at start of beamed xtup. See above note for possible problem. +c But first check if blank rest and if in forced beam (assuming xtuplet), +c and if so, count rest from beginning, add \sk's AFTER starting beam '\ib*' c - nodur(ivx,ipb1) = 2**(4-multb) - call notex(tempq,ltemp) - if (lnote .gt. 0) then - notexq = notexq(1:lnote)//tempq(1:ltemp) + if (btest(islur(ivx,ip),29) .and. btest(ipl(ivx,ip),30)) then + nbrests = nbrests+1 + writebrests = .false. else - notexq = tempq(1:ltemp) + nodur(ivx,ipb1) = 2**(4-multb) + call notex(tempq,ltemp) + if (lnote .gt. 0) then + notexq = notexq(1:lnote)//tempq(1:ltemp) + else + notexq = tempq(1:ltemp) + end if + lnote = lnote+ltemp end if - lnote = lnote+ltemp c c Re-zero just in case! c @@ -2923,7 +2965,7 @@ c Beam segment start. New start level 4 continue end if end if - end if + end if iadj = igetbits(islur(ivx,ipb1),2,27) addbrack = .false. if (btest(ipl(ivx,ipb1),30)) then @@ -2995,6 +3037,18 @@ c lnote = lnote+1 end if c +c Add in \sk's for very special case of staff-crossing xtup chords +c Assumes we are in lower (first) voice of up-to-both beamed xtup +c that starts with blank rests (notes in upper voice here). +c + if (nbrests.gt.0 .and. writebrests) then + do 7 isk = 1 , nbrests + notexq = notexq(1:lnote)//chax(92)//'sk' + lnote = lnote+3 +7 continue + nbrests = 0 + end if +c c Get 'floor' zmin for figures c Note: Will not come thru here on 1st note of unbeamed xtup, so figure height c won't be adjusted. If anyone ever needs that, need to duplicate this @@ -4508,8 +4562,6 @@ c c c Arpeggio signal c -c call putarp(tnow,iv,ip,nolev,ncm,soutq,lsout) - print*,'Calling putarp chord, iv,ivx:',iv,ivx call putarp(tnow,ivx,ip,nolev,ncm,soutq,lsout) end if call addstr(notexq,lnote,soutq,lsout) @@ -7767,7 +7819,8 @@ c c else if (index('ulare',durq) .gt. 0) then else if (index('ularec',durq) .gt. 0) then go to 2 - else if (durq .eq. 'S') then +c else if (durq .eq. 'S') then + else if (index('LS',durq) .gt. 0) then c c Stemlength change c @@ -7780,16 +7833,18 @@ c if (durq .eq. ':') then if (.not.stickyS) then call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, - * 'Turned off sticky stemshrinks without turning on!') + * 'Turned off sticky stemlegth changes without turning on!') call stop1() end if stickyS = .false. go to 2 end if call readnum(lineq,iccount,durq,dum) - if (dum.lt..5 .or. dum.gt.4.) then +c if (dum.lt..5 .or. dum.gt.4.) then + if ((durq.eq.'L'.and.dum.gt.20.).or. + * (durq.eq.'S'.and.dum.gt.4.)) then call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1, - * 'Stemlength shortening must be from .5 to 4!') + * 'Stemlength change amount too big!') call stop1() end if if (durq .ne. ':') then @@ -7894,7 +7949,8 @@ c end if call readnum(lineq,iccount,durq,snum) iccount = iccount-1 - if ((numshft.eq.1 .and. snum.gt.15.1) .or. +c if ((numshft.eq.1 .and. snum.gt.15.1) .or. + if ((numshft.eq.1 .and. snum.gt.64.) .or. * (numshft.eq.2 .and. snum.gt.1.51)) then call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, * 'Shift number after "n" in xtup is out of range!') @@ -8393,9 +8449,14 @@ c call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, * 'In xtup, this character is not allowed!') call stop1() - else if (durq.eq.'r' .and. itup.eq.ntup) then +c else if (durq.eq.'r' .and. itup.eq.ntup) then +c call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, +c * 'Sorry, PMX cannot end an xtuplet with a rest!') +c call stop1() + else if (durq.eq.'r' .and. itup.eq.ntup .and. + * index(lineq(iccount+1:iccount+2),'b').eq.0) then call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, - * 'Sorry, PMX cannot end an xtuplet with a rest!') + * 'Sorry, PMX cannot end an xtuplet with a non-blank rest!') call stop1() end if 7 call g1etchar(lineq,iccount,durq) @@ -11531,6 +11592,7 @@ c common /commidisig/ midisig common /comlyr/ inputmlyr logical inputmlyr + data inputmlyr /.false./ cdot = .false. 1 call getchar(lineq,iccount,charq) if (lastchar) return @@ -11606,8 +11668,10 @@ c c Grab stemlength shortening parameters from prior note c mult(ivx,nnl(ivx)) = ibset(mult(ivx,nnl(ivx)),27) - call setbits (mult(ivx,nnl(ivx)),3,28, - * igetbits(mult(ivx,nnl(ivx)-1),3,28)) +c call setbits (mult(ivx,nnl(ivx)),3,28, +c * igetbits(mult(ivx,nnl(ivx)-1),3,28)) + call setbits (mult(ivx,nnl(ivx)),6,10, + * igetbits(mult(ivx,nnl(ivx)-1),6,10)) end if if (autofbon .and. tautofb.gt.tol .and. .not.fbon) then c @@ -11849,13 +11913,17 @@ c if (numshft .eq. 1) then c c Vertical shift +c 160214 Allow (-64,64) +c iofforn = iofforn*nint(xofforn) + 16 + iofforn = iofforn*nint(xofforn) + 64 c - iofforn = iofforn*nint(xofforn) + 16 +cc Turn on bit 1; set bits 2-6 to iofforn +c Turn on bit 1 of irest; set bits 16-22 of mult to iofforn c -c Turn on bit 1; set bits 2-6 to iofforn -c - irest(ivx,nnl(ivx)) = - * ior(irest(ivx,nnl(ivx)),2+4*iofforn) +c irest(ivx,nnl(ivx)) = +c * ior(irest(ivx,nnl(ivx)),2+4*iofforn) + irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),1) + call setbits(mult(ivx,nnl(ivx)),8,16,iofforn) else c c Horizontal shift @@ -11982,22 +12050,9 @@ c call littex(islur,nnl(ivx),ivx,topmods,lineq,iccount) go to 7 else if (charq .eq. '"') then -cc -cc pmxlyr string in xtup. Expand "..." to \pmxlyr{...}\ -cc -c do 90 i2nd = iccount+1 , 128 -c if (lineq(i2nd:i2nd) .eq. '"') go to 91 -c90 continue -c91 continue -c if (iccount .eq. 1) then -c lineqt = sq//'pmxlyr{'//lineq(2:i2nd-1)//'}'//sq -c * //lineq(i2nd+1:128) -c else -c lineqt = lineq(1:iccount-1)//sq//'pmxlyr{' -c * //lineq(iccount+1:i2nd-1)//'}'//sq -c * //lineq(i2nd+1:128) -c end if -c lineq = lineqt +c +c pmxlyr string in xtup. Expand "..." to \pmxlyr{...}\ +c call dopmxlyr(lineq,iccount) charq = sq call littex(islur,nnl(ivx),ivx,topmods,lineq,iccount) @@ -12438,20 +12493,24 @@ c ipl(ivx,nnl(ivx)) = ibset(ipl(ivx,nnl(ivx)),8) irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),27) go to 2 - else if (durq .eq. 'S') then +c else if (durq .eq. 'S') then + else if (index('LS',durq) .gt. 0) then c -c Stemlength change. Get -dstemlen in \internotes. Allowable values are .5 to 4 -c Set mult(27). Map value to 0 to 7, store in mult(28-30). Later convert to +c Stemlength change. Get dstemlen in \internotes. Allowable values are -4 to 27.5 +c Set mult(27). Map value to 0 to 63, store in mult(10-15). Later convert to c interbeams = internotes*2/3. c +c + isign = 1 + if (durq .eq. 'S') isign = -1 mult(ivx,nnl(ivx)) = ibset(mult(ivx,nnl(ivx)),27) call getchar(lineq,iccount,durq) if (durq .eq. ':') then c c End stickyS. Grab data now from prior note, since we have to shut off stickyS. c - call setbits (mult(ivx,nnl(ivx)),3,28, - * igetbits(mult(ivx,nnl(ivx)-1),3,28)) + call setbits (mult(ivx,nnl(ivx)),6,10, + * igetbits(mult(ivx,nnl(ivx)-1),6,10)) stickyS = .false. go to 2 end if @@ -12459,7 +12518,8 @@ c c If durq .ne. ':' then iccount is now on the start of the number c call readnum(lineq,iccount,durq,dum) - call setbits (mult(ivx,nnl(ivx)),3,28,nint((dum-.5)*2)) + dum = isign*dum + call setbits (mult(ivx,nnl(ivx)),6,10,nint((dum+4.)*2)) if (durq .eq. ':') then stickyS = .true. else @@ -14432,7 +14492,7 @@ c c c 160130 Replace '\' by '/' c -12 ipos = index(pathnameq,'\') +12 ipos = index(pathnameq,'\\') if (ipos .gt. 0) then pathnameq(ipos:ipos)='/' print*,'Changed pathname to ',pathnameq(1:lpath) @@ -15971,6 +16031,8 @@ c 130316 * ,miditran(nm),midtc(0:nm),noinst,iinsiv(nm) common /comclefrests/ centrests logical centrests + common /xjbeambrests/ nbrests + nbrests = 0 c c Set up main ib loop within which a block (notes group) is written c @@ -16718,7 +16780,6 @@ c Arpeggio on a main (non-chordal) note? c if (btest(iornq(ivx,ip),27)) then c call putarp(tnow,iv,ip,nolev(ivx,ip),ncmid(iv,ip), - print*,'Calling putarp main, iv,ivx:',iv,ivx call putarp(tnow,ivx,ip,nolev(ivx,ip),ncmid(iv,ip), * soutq,lsout) end if @@ -16737,7 +16798,6 @@ c * nolev(ivx,ip).le.50) * call chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev, * ivmx,nib,nv,ibar,tnow,tol,nodur,2,levtopr,levbotr, -c * mult) * mult,ipl) call beamstrt(notexq,lnote,nornb,ihornb,space,squez,ib) c @@ -17081,12 +17141,13 @@ c * soutq,lsout,igetbits(islur(ivx,ip),1,3)) end if c -c Stemlength shortening? +c Stemlength changes c if (btest(mult(ivx,ip),27)) then - stemshort = 4.66-.667*(igetbits(mult(ivx,ip),3,28)+1)*.5 + dstemlen = igetbits(mult(ivx,ip),6,10)*.5-4. + stemshort = 4.66+.667*dstemlen call addstr(sq//'stemlength{',12,soutq,lsout) - write(notexq,'(f4.2)')stemshort + write(notexq,'(f4.1)')stemshort call addstr(notexq(1:4)//'}',5,soutq,lsout) else if (ip .gt. 1) then if (btest(mult(ivx,ip-1),27)) @@ -17116,9 +17177,14 @@ c * nolev(ivx,ip).le.50) * call chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev, * ivmx,nib,nv,ibar,tnow,tol,nodur,2,levtopr,levbotr, -c * mult) * mult,ipl) - call beamn1(notexq,lnote) + if (btest(islur(ivx,ip),29) + * .and.btest(irest(ivx,ip),24)) then + notexq = chax(92)//'sk' + lnote = 3 + else + call beamn1(notexq,lnote) + end if end if bspend = .false. c @@ -17153,7 +17219,6 @@ c * nolev(ivx,ip).le.50) * call chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev, * ivmx,nib,nv,ibar,tnow,tol,nodur,2,levtopr,levbotr, -c * mult) * mult,ipl) call beamid(notexq,lnote) c @@ -19546,7 +19611,8 @@ cc irest cc ccccccccccccc c 0 rest=1, no rest = 0 c 1 There will be a vertical shift for number of this xtup -c 2-6 Height shift, 1 => -15, 31 => +15 Indicate by +/- [n] after 'n' +c Moved hgt shft to mult 16-22, so could span -64,64. +cc 2-6 Height shift, 1 => -15, 31 => +15 Indicate by +/- [n] after 'n' c 7 There is a horizontal shift for xtup number c 9-13 Horiz shift, 1=>-1.5, ... , 31=>+1.5 c 14 Flip up/down-ness of xtup number @@ -19597,8 +19663,10 @@ ccccccccccccc c 0-3 Multiplicity+8 (mult= # of flags) c 4 Set if slope adjustment for xtup bracket c 5-9 16+slope adjustment +c 10-15 New stem length, [0-63] => (-4,0,+27.5) +c 16-22 64+Vertical offset of xtup # c 27 Stemlength override -c 28-30 New stem length. +cc 28-30 New stem length. ccccccccccccc cc isdat1 cc ccccccccccccc @@ -19789,7 +19857,6 @@ cccccccccccccccccccccccccccccccc logical newclef, centrests common /comlyr/ inputmlyr logical inputmlyr - data inputmlyr /.false./ if (.not.optimize) then print* print*,'Starting second PMX pass' @@ -22494,7 +22561,8 @@ c end subroutine putxtn(ntupv,iflop,multb,iud,wheadpt,poenom, * nolev1,islope,slfac,xnlmid,islur,lnote,notexq,ncmid,nlnum, - * eloff,iup,irest,usexnumt) +c * eloff,iup,irest,usexnumt) + * eloff,iup,irest,mult,usexnumt) c c Places digit for xtuplet. c @@ -22519,7 +22587,8 @@ c c c Only print number when wanted. First check vert, horiz offset c - if (btest(irest,1)) nlnum = nlnum+iand(31,ishft(irest,-2))-16 +c if (btest(irest,1)) nlnum = nlnum+iand(31,ishft(irest,-2))-16 + if (btest(irest,1)) nlnum = nlnum+igetbits(mult,8,16)-64 if (btest(irest,7)) eloff = eloff+ * (.1*iand(31,ishft(irest,-9))-1.6)*wheadpt/poenom if (.not.usexnumt) then @@ -24383,7 +24452,9 @@ c if (iccount .eq. 121) then lyrerr = 2 return - else if (charq.eq.'"') then +c else if (charq.eq.'"') then + else if (charq.eq.'"' .and. + * .not.(lineq(iccount-1:iccount-1).eq.char(92))) then call g1etchar(lineq,iccount,charq) c c Check for raise/lower command @@ -24428,9 +24499,18 @@ c (unless preceded with '\'), check length c character*128 lineq,lineqt character*1 sq - data sq /'\'/ + data sq /'\\'/ iend = lenstr(lineq,128) +c +c i2nd = iccount+index(lineq(iccount+1:128),'"') +c Find position of closing '"'; must bypass any \" which is used for umlaut +c i2nd = iccount+index(lineq(iccount+1:128),'"') +2 continue + if (lineq(i2nd-1:i2nd-1).eq.char(92)) then + i2nd = i2nd+index(lineq(i2nd+1:128),'"') + go to 2 + end if istart = iccount 1 itilde = istart+index(lineq(istart+1:i2nd-1),'~') if (itilde.gt.istart.and.itilde.lt.i2nd) then diff --git a/Build/source/utils/pmx/pmx-src/pmx273.for.orig b/Build/source/utils/pmx/pmx-src/pmx274.for.orig index 9a00d71adab..7049d379d9b 100644 --- a/Build/source/utils/pmx/pmx-src/pmx273.for.orig +++ b/Build/source/utils/pmx/pmx-src/pmx274.for.orig @@ -63,13 +63,21 @@ c Undotted chord notes with dotted main note. c Forced line break without line number c Fix dot moving when 2nds in chord get flipped c To do: increase length on notexq in dodyn +c 2.74 +c For staff-crossing beamed xtuplet chords, if 2nd segment of a joined beam +c starts with a blank rest, put '\sk' into the TeX. +c To enable high-to-both beamed etup staff-crossing chord, for blank +c rest at start of forced beam, shift \sk's from before to after \ib..; +c so \ib is at start and note in upper voice has a beam to connect to. +c Expand range of vertical xtup number shift, now stored in mult(16-22) +c Check for and allow \" within lyrics strings, for umlauts. c 2.73 (160121) c Dirk's "..." command, to convert "text" into \pmxlyr{text}\ and insert as c inline TeX. Replace all '~' inside "..." and not preceded with '\', by c '\lk '. Right after 2nd ", replace @[a,b][+,-]n with \at{[a,b][+,-]n}\ c Include definitions of \ly and \at in pmx.tex (2 Feb 16). After first ", c add (as type 2 string) '\\input musixlyr \' -c After inputting pathname, change any '\' to '/', for Linux compatibility. +c After inputting pathname, change any '\' to '/', for Linux compatibility. c 2.72 (160110) c Really finalize \mbrest...go back to 3 args to deal with clef changes. c Fine tune centered whole bar rests to deal with clef changes @@ -754,8 +762,8 @@ c nmidsec section starts and stops based on PLAYING macros (not recording). c ccccccccccccccccccccccccc c - data date /'2 Feb 16'/ - data version /'2.73'/ + data date /'20 Feb 16'/ + data version /'2.74'/ c ccccccccccccccccccccccccc data maxit,ncalls /200,0/ @@ -2014,6 +2022,15 @@ c end if end if c +c Check for end of 2nd seg of staff-jump xtup chord blank rest +c +c if (isbjmp.and.ivx.eq.ivbj2 + if (isbjmp + * .and.btest(islur(ivx,ip),29)) then + notexq = notexq(1:lnote)//sq//'sk' + return + end if +c c And now the note c if (lnote .gt. 0) then @@ -2236,7 +2253,9 @@ c call putxtn(mprint,iflop,multip,iud,wheadpt,poenom, * nolev1(ivx),islope(ivx),slfac, * xnlmid,islur(ivx,ip),lnote,notexq,ncmid(iv,ip),nlnum, - * eloff(ivx,nxtinbm(ivx)),iup,irest(ivx,ip),.false.) +c * eloff(ivx,nxtinbm(ivx)),iup,irest(ivx,ip),.false.) + * eloff(ivx,nxtinbm(ivx)),iup,irest(ivx,ip), + * mult(ivx,ip),.false.) end if call notefq(noteq,lnoten,nole,ncmid(iv,ip)) else @@ -2258,53 +2277,66 @@ c call notefq(noteq,lnoten,nole,ncmid(iv,ip)) end if c -c Check if multiplicity changes in a way requiring action -c - ipleft = ip-1 - if (btest(irest(ivx,ipleft),0)) ipleft = ipleft-1 - if (.not.btest(islur(ivx,ipleft),20)) then - multl = iand(15,mult(ivx,ipleft))-8 - else - multl = 1 - end if - mub = multip - multl - ipright = ip+1 - if (btest(irest(ivx,ipright),0)) ipright = ipright+1 - if (.not.btest(islur(ivx,ip),20)) then - multr = iand(15,mult(ivx,ipright))-8 - else - multr = 1 - end if - mua = multr-multip - if (mub.gt.0 .or. mua .lt. 0) then -c -c Multiplicity has increased from left or will decrease to right. Need action. +c Check if multiplicity changes in a way requiring action, +c unless (160211) it's blank rest on start of 2nd seg of joined beam c - if (isbjmp .and. ivx.eq.ivbj2) then - ivb = ivbj1 - ulqq = chax(225-ichar(ulq(ivx,ibmcnt(ivx)))) + if(.not.btest(irest(ivx,ip-1),24) + * .or..not.btest(islur(ivx,ip-1),29)) then + ipleft = ip-1 + if (btest(irest(ivx,ipleft),0)) ipleft = ipleft-1 + if (.not.btest(islur(ivx,ipleft),20)) then + multl = iand(15,mult(ivx,ipleft))-8 else - ivb = ivx - ulqq = ulq(ivx,ibmcnt(ivx)) - end if - if (mua .ge. 0) then - call ntrbbb(multip,'n',ulqq,ivb,notexq,lnote) - else if (multl .ge. multr) then - do 1 im = multip , 1+multr, -1 - call ntrbbb(im,'t',ulqq,ivb,notexq,lnote) -1 continue + multl = 1 + end if + mub = multip - multl + ipright = ip+1 + if (btest(irest(ivx,ipright),0)) ipright = ipright+1 + if (.not.btest(islur(ivx,ip),20)) then + multr = iand(15,mult(ivx,ipright))-8 else - do 2 im = 1+multr, multip - call ntrbbb(im,'r',ulqq,ivb,notexq,lnote) -2 continue - call ntrbbb(multr,'n',ulqq,ivb,notexq,lnote) + multr = 1 end if - else if (ip .gt. 1) then + mua = multr-multip + if (mub.gt.0 .or. mua .lt. 0) then +c +c Multiplicity has increased from left or will decrease to right. Need action. +c + if (isbjmp .and. ivx.eq.ivbj2) then + ivb = ivbj1 + ulqq = chax(225-ichar(ulq(ivx,ibmcnt(ivx)))) + else + ivb = ivx + ulqq = ulq(ivx,ibmcnt(ivx)) + end if + if (mua .ge. 0) then + call ntrbbb(multip,'n',ulqq,ivb,notexq,lnote) +c else if (multl .ge. multr) then +c Test for next note being blank rest, assuming staff-crossing +c xtup chord +c + else if (multl .ge. multr .and. + * .not.btest(islur(ivx,ip+1),29)) then + do 1 im = multip , 1+multr, -1 + call ntrbbb(im,'t',ulqq,ivb,notexq,lnote) +1 continue +c else +c Test for next note being blank rest, assuming staff-crossing +c xtup chord +c + else if (.not.btest(islur(ivx,ip+1),29)) then + do 2 im = 1+multr, multip + call ntrbbb(im,'r',ulqq,ivb,notexq,lnote) +2 continue + call ntrbbb(multr,'n',ulqq,ivb,notexq,lnote) + end if + else if (ip .gt. 1) then c c Check for 2nd member of dotted xtup c - if (btest(nacc(ivx,ip-1),27)) call ntrbbb(multip+1,'t', + if (btest(nacc(ivx,ip-1),27)) call ntrbbb(multip+1,'t', * ulq(ivx,ibmcnt(ivx)),ivx,notexq,lnote) + end if end if c c Now put in the note @@ -2596,11 +2628,13 @@ c character*79 notexq,tempq integer nornb(nm),ihornb(nm,24) real*4 space(80),squez(80) - logical novshrinktop,cstuplet,usexnumt + logical novshrinktop,cstuplet,usexnumt,writebrests common /comnvst/ novshrinktop,cstuplet common /comfig/ itfig(2,74),figq(2,74),ivupfig(2,74),nfigs(2), * fullsize(nm),ivxfig2,ivvfig(2,74) character*10 figq + common /xjbeambrests/ nbrests + writebrests = .true. ibc = ibmcnt(ivx) ipb1 = ibm1(ivx,ibc) multb = iand(15,mult(ivx,ipb1))-8 @@ -2692,7 +2726,8 @@ c call putxtn(mprint,iflop,multb,iud,wheadpt, * poenom,nolev1(ivx),islope(ivx),slfac,xnlmid,islur(ivx,ipb1), * lnote,notexq,ncmid(iv,ipb1),nlnum,eloff(ivx,nxtinbm(ivx)), - * iup,irest(ivx,ipb1),usexnumt) +c * iup,irest(ivx,ipb1),usexnumt) + * iup,irest(ivx,ipb1),mult(ivx,ipb1),usexnumt) end if if (.not.drawbm(ivx)) then c @@ -2850,15 +2885,22 @@ c if (ixrest(ivx) .eq. 1) then c c Insert rest at start of beamed xtup. See above note for possible problem. +c But first check if blank rest and if in forced beam (assuming xtuplet), +c and if so, count rest from beginning, add \sk's AFTER starting beam '\ib*' c - nodur(ivx,ipb1) = 2**(4-multb) - call notex(tempq,ltemp) - if (lnote .gt. 0) then - notexq = notexq(1:lnote)//tempq(1:ltemp) + if (btest(islur(ivx,ip),29) .and. btest(ipl(ivx,ip),30)) then + nbrests = nbrests+1 + writebrests = .false. else - notexq = tempq(1:ltemp) + nodur(ivx,ipb1) = 2**(4-multb) + call notex(tempq,ltemp) + if (lnote .gt. 0) then + notexq = notexq(1:lnote)//tempq(1:ltemp) + else + notexq = tempq(1:ltemp) + end if + lnote = lnote+ltemp end if - lnote = lnote+ltemp c c Re-zero just in case! c @@ -2923,7 +2965,7 @@ c Beam segment start. New start level 4 continue end if end if - end if + end if iadj = igetbits(islur(ivx,ipb1),2,27) addbrack = .false. if (btest(ipl(ivx,ipb1),30)) then @@ -2995,6 +3037,18 @@ c lnote = lnote+1 end if c +c Add in \sk's for very special case of staff-crossing xtup chords +c Assumes we are in lower (first) voice of up-to-both beamed xtup +c that starts with blank rests (notes in upper voice here). +c + if (nbrests.gt.0 .and. writebrests) then + do 7 isk = 1 , nbrests + notexq = notexq(1:lnote)//chax(92)//'sk' + lnote = lnote+3 +7 continue + nbrests = 0 + end if +c c Get 'floor' zmin for figures c Note: Will not come thru here on 1st note of unbeamed xtup, so figure height c won't be adjusted. If anyone ever needs that, need to duplicate this @@ -4508,8 +4562,6 @@ c c c Arpeggio signal c -c call putarp(tnow,iv,ip,nolev,ncm,soutq,lsout) - print*,'Calling putarp chord, iv,ivx:',iv,ivx call putarp(tnow,ivx,ip,nolev,ncm,soutq,lsout) end if call addstr(notexq,lnote,soutq,lsout) @@ -7767,7 +7819,8 @@ c c else if (index('ulare',durq) .gt. 0) then else if (index('ularec',durq) .gt. 0) then go to 2 - else if (durq .eq. 'S') then +c else if (durq .eq. 'S') then + else if (index('LS',durq) .gt. 0) then c c Stemlength change c @@ -7780,16 +7833,18 @@ c if (durq .eq. ':') then if (.not.stickyS) then call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, - * 'Turned off sticky stemshrinks without turning on!') + * 'Turned off sticky stemlegth changes without turning on!') call stop1() end if stickyS = .false. go to 2 end if call readnum(lineq,iccount,durq,dum) - if (dum.lt..5 .or. dum.gt.4.) then +c if (dum.lt..5 .or. dum.gt.4.) then + if ((durq.eq.'L'.and.dum.gt.20.).or. + * (durq.eq.'S'.and.dum.gt.4.)) then call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1, - * 'Stemlength shortening must be from .5 to 4!') + * 'Stemlength change amount too big!') call stop1() end if if (durq .ne. ':') then @@ -7894,7 +7949,8 @@ c end if call readnum(lineq,iccount,durq,snum) iccount = iccount-1 - if ((numshft.eq.1 .and. snum.gt.15.1) .or. +c if ((numshft.eq.1 .and. snum.gt.15.1) .or. + if ((numshft.eq.1 .and. snum.gt.64.) .or. * (numshft.eq.2 .and. snum.gt.1.51)) then call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, * 'Shift number after "n" in xtup is out of range!') @@ -8393,9 +8449,14 @@ c call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, * 'In xtup, this character is not allowed!') call stop1() - else if (durq.eq.'r' .and. itup.eq.ntup) then +c else if (durq.eq.'r' .and. itup.eq.ntup) then +c call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, +c * 'Sorry, PMX cannot end an xtuplet with a rest!') +c call stop1() + else if (durq.eq.'r' .and. itup.eq.ntup .and. + * index(lineq(iccount+1:iccount+2),'b').eq.0) then call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, - * 'Sorry, PMX cannot end an xtuplet with a rest!') + * 'Sorry, PMX cannot end an xtuplet with a non-blank rest!') call stop1() end if 7 call g1etchar(lineq,iccount,durq) @@ -11606,8 +11667,10 @@ c c Grab stemlength shortening parameters from prior note c mult(ivx,nnl(ivx)) = ibset(mult(ivx,nnl(ivx)),27) - call setbits (mult(ivx,nnl(ivx)),3,28, - * igetbits(mult(ivx,nnl(ivx)-1),3,28)) +c call setbits (mult(ivx,nnl(ivx)),3,28, +c * igetbits(mult(ivx,nnl(ivx)-1),3,28)) + call setbits (mult(ivx,nnl(ivx)),6,10, + * igetbits(mult(ivx,nnl(ivx)-1),6,10)) end if if (autofbon .and. tautofb.gt.tol .and. .not.fbon) then c @@ -11849,13 +11912,17 @@ c if (numshft .eq. 1) then c c Vertical shift +c 160214 Allow (-64,64) +c iofforn = iofforn*nint(xofforn) + 16 + iofforn = iofforn*nint(xofforn) + 64 c - iofforn = iofforn*nint(xofforn) + 16 +cc Turn on bit 1; set bits 2-6 to iofforn +c Turn on bit 1 of irest; set bits 16-22 of mult to iofforn c -c Turn on bit 1; set bits 2-6 to iofforn -c - irest(ivx,nnl(ivx)) = - * ior(irest(ivx,nnl(ivx)),2+4*iofforn) +c irest(ivx,nnl(ivx)) = +c * ior(irest(ivx,nnl(ivx)),2+4*iofforn) + irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),1) + call setbits(mult(ivx,nnl(ivx)),8,16,iofforn) else c c Horizontal shift @@ -11982,22 +12049,9 @@ c call littex(islur,nnl(ivx),ivx,topmods,lineq,iccount) go to 7 else if (charq .eq. '"') then -cc -cc pmxlyr string in xtup. Expand "..." to \pmxlyr{...}\ -cc -c do 90 i2nd = iccount+1 , 128 -c if (lineq(i2nd:i2nd) .eq. '"') go to 91 -c90 continue -c91 continue -c if (iccount .eq. 1) then -c lineqt = sq//'pmxlyr{'//lineq(2:i2nd-1)//'}'//sq -c * //lineq(i2nd+1:128) -c else -c lineqt = lineq(1:iccount-1)//sq//'pmxlyr{' -c * //lineq(iccount+1:i2nd-1)//'}'//sq -c * //lineq(i2nd+1:128) -c end if -c lineq = lineqt +c +c pmxlyr string in xtup. Expand "..." to \pmxlyr{...}\ +c call dopmxlyr(lineq,iccount) charq = sq call littex(islur,nnl(ivx),ivx,topmods,lineq,iccount) @@ -12438,20 +12492,24 @@ c ipl(ivx,nnl(ivx)) = ibset(ipl(ivx,nnl(ivx)),8) irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),27) go to 2 - else if (durq .eq. 'S') then +c else if (durq .eq. 'S') then + else if (index('LS',durq) .gt. 0) then c -c Stemlength change. Get -dstemlen in \internotes. Allowable values are .5 to 4 -c Set mult(27). Map value to 0 to 7, store in mult(28-30). Later convert to +c Stemlength change. Get dstemlen in \internotes. Allowable values are -4 to 27.5 +c Set mult(27). Map value to 0 to 63, store in mult(10-15). Later convert to c interbeams = internotes*2/3. c +c + isign = 1 + if (durq .eq. 'S') isign = -1 mult(ivx,nnl(ivx)) = ibset(mult(ivx,nnl(ivx)),27) call getchar(lineq,iccount,durq) if (durq .eq. ':') then c c End stickyS. Grab data now from prior note, since we have to shut off stickyS. c - call setbits (mult(ivx,nnl(ivx)),3,28, - * igetbits(mult(ivx,nnl(ivx)-1),3,28)) + call setbits (mult(ivx,nnl(ivx)),6,10, + * igetbits(mult(ivx,nnl(ivx)-1),6,10)) stickyS = .false. go to 2 end if @@ -12459,7 +12517,8 @@ c c If durq .ne. ':' then iccount is now on the start of the number c call readnum(lineq,iccount,durq,dum) - call setbits (mult(ivx,nnl(ivx)),3,28,nint((dum-.5)*2)) + dum = isign*dum + call setbits (mult(ivx,nnl(ivx)),6,10,nint((dum+4.)*2)) if (durq .eq. ':') then stickyS = .true. else @@ -15971,6 +16030,8 @@ c 130316 * ,miditran(nm),midtc(0:nm),noinst,iinsiv(nm) common /comclefrests/ centrests logical centrests + common /xjbeambrests/ nbrests + nbrests = 0 c c Set up main ib loop within which a block (notes group) is written c @@ -16718,7 +16779,6 @@ c Arpeggio on a main (non-chordal) note? c if (btest(iornq(ivx,ip),27)) then c call putarp(tnow,iv,ip,nolev(ivx,ip),ncmid(iv,ip), - print*,'Calling putarp main, iv,ivx:',iv,ivx call putarp(tnow,ivx,ip,nolev(ivx,ip),ncmid(iv,ip), * soutq,lsout) end if @@ -16737,7 +16797,6 @@ c * nolev(ivx,ip).le.50) * call chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev, * ivmx,nib,nv,ibar,tnow,tol,nodur,2,levtopr,levbotr, -c * mult) * mult,ipl) call beamstrt(notexq,lnote,nornb,ihornb,space,squez,ib) c @@ -17081,12 +17140,13 @@ c * soutq,lsout,igetbits(islur(ivx,ip),1,3)) end if c -c Stemlength shortening? +c Stemlength changes c if (btest(mult(ivx,ip),27)) then - stemshort = 4.66-.667*(igetbits(mult(ivx,ip),3,28)+1)*.5 + dstemlen = igetbits(mult(ivx,ip),6,10)*.5-4. + stemshort = 4.66+.667*dstemlen call addstr(sq//'stemlength{',12,soutq,lsout) - write(notexq,'(f4.2)')stemshort + write(notexq,'(f4.1)')stemshort call addstr(notexq(1:4)//'}',5,soutq,lsout) else if (ip .gt. 1) then if (btest(mult(ivx,ip-1),27)) @@ -17116,9 +17176,14 @@ c * nolev(ivx,ip).le.50) * call chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev, * ivmx,nib,nv,ibar,tnow,tol,nodur,2,levtopr,levbotr, -c * mult) * mult,ipl) - call beamn1(notexq,lnote) + if (btest(islur(ivx,ip),29) + * .and.btest(irest(ivx,ip),24)) then + notexq = chax(92)//'sk' + lnote = 3 + else + call beamn1(notexq,lnote) + end if end if bspend = .false. c @@ -17153,7 +17218,6 @@ c * nolev(ivx,ip).le.50) * call chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev, * ivmx,nib,nv,ibar,tnow,tol,nodur,2,levtopr,levbotr, -c * mult) * mult,ipl) call beamid(notexq,lnote) c @@ -19546,7 +19610,8 @@ cc irest cc ccccccccccccc c 0 rest=1, no rest = 0 c 1 There will be a vertical shift for number of this xtup -c 2-6 Height shift, 1 => -15, 31 => +15 Indicate by +/- [n] after 'n' +c Moved hgt shft to mult 16-22, so could span -64,64. +cc 2-6 Height shift, 1 => -15, 31 => +15 Indicate by +/- [n] after 'n' c 7 There is a horizontal shift for xtup number c 9-13 Horiz shift, 1=>-1.5, ... , 31=>+1.5 c 14 Flip up/down-ness of xtup number @@ -19597,8 +19662,10 @@ ccccccccccccc c 0-3 Multiplicity+8 (mult= # of flags) c 4 Set if slope adjustment for xtup bracket c 5-9 16+slope adjustment +c 10-15 New stem length, [0-63] => (-4,0,+27.5) +c 16-22 64+Vertical offset of xtup # c 27 Stemlength override -c 28-30 New stem length. +cc 28-30 New stem length. ccccccccccccc cc isdat1 cc ccccccccccccc @@ -22493,7 +22560,8 @@ c end subroutine putxtn(ntupv,iflop,multb,iud,wheadpt,poenom, * nolev1,islope,slfac,xnlmid,islur,lnote,notexq,ncmid,nlnum, - * eloff,iup,irest,usexnumt) +c * eloff,iup,irest,usexnumt) + * eloff,iup,irest,mult,usexnumt) c c Places digit for xtuplet. c @@ -22518,7 +22586,8 @@ c c c Only print number when wanted. First check vert, horiz offset c - if (btest(irest,1)) nlnum = nlnum+iand(31,ishft(irest,-2))-16 +c if (btest(irest,1)) nlnum = nlnum+iand(31,ishft(irest,-2))-16 + if (btest(irest,1)) nlnum = nlnum+igetbits(mult,8,16)-64 if (btest(irest,7)) eloff = eloff+ * (.1*iand(31,ishft(irest,-9))-1.6)*wheadpt/poenom if (.not.usexnumt) then @@ -24382,7 +24451,9 @@ c if (iccount .eq. 121) then lyrerr = 2 return - else if (charq.eq.'"') then +c else if (charq.eq.'"') then + else if (charq.eq.'"' .and. + * .not.(lineq(iccount-1:iccount-1).eq.char(92))) then call g1etchar(lineq,iccount,charq) c c Check for raise/lower command @@ -24428,7 +24499,16 @@ c character*128 lineq,lineqt character*1 sq /'\'/ iend = lenstr(lineq,128) +c +c i2nd = iccount+index(lineq(iccount+1:128),'"') +c Find position of closing '"'; must bypass any \" which is used for umlaut +c i2nd = iccount+index(lineq(iccount+1:128),'"') +2 continue + if (lineq(i2nd-1:i2nd-1).eq.char(92)) then + i2nd = i2nd+index(lineq(i2nd+1:128),'"') + go to 2 + end if istart = iccount 1 itilde = istart+index(lineq(istart+1:i2nd-1),'~') if (itilde.gt.istart.and.itilde.lt.i2nd) then diff --git a/Build/source/utils/pmx/pmx-src/pmxab.c b/Build/source/utils/pmx/pmx-src/pmxab.c index 66a62200a33..dd79c00b18f 100644 --- a/Build/source/utils/pmx/pmx-src/pmxab.c +++ b/Build/source/utils/pmx/pmx-src/pmxab.c @@ -397,6 +397,12 @@ union { #define comfig_1 (comfig_._1) #define comfig_2 (comfig_._2) +struct { + integer nbrests; +} xjbeambrests_; + +#define xjbeambrests_1 xjbeambrests_ + struct comtrans_1_ { char cheadq[60]; }; @@ -870,9 +876,9 @@ static integer c__27 = 27; static integer c__7 = 7; static integer c__10 = 10; static integer c__20 = 20; -static real c_b761 = -2.f; -static real c_b762 = 0.f; -static real c_b814 = 1.f; +static real c_b767 = -2.f; +static real c_b768 = 0.f; +static real c_b813 = 1.f; static integer c__8 = 8; static integer c__16 = 16; static integer c__23 = 23; @@ -884,7 +890,7 @@ static integer c__24 = 24; static integer c__13 = 13; static integer c__28 = 28; static integer c__18 = 18; -static real c_b1670 = 2.f; +static real c_b1669 = 2.f; static integer c__30 = 30; static integer c__60 = 60; static integer c__80 = 80; @@ -899,8 +905,8 @@ static integer c__47 = 47; { /* Initialized data */ - static char date[9] = "2 Feb 16 "; - static char version[5] = "2.73 "; + static char date[9] = "20 Feb 16"; + static char version[5] = "2.74 "; static integer maxit = 200; static integer ncalls = 0; static logical isfirst = TRUE_; @@ -1052,6 +1058,14 @@ static integer c__47 = 47; /* Forced line break without line number */ /* Fix dot moving when 2nds in chord get flipped */ /* To do: increase length on notexq in dodyn */ +/* 2.74 */ +/* For staff-crossing beamed xtuplet chords, if 2nd segment of a joined beam */ +/* starts with a blank rest, put '\sk' into the TeX. */ +/* To enable high-to-both beamed etup staff-crossing chord, for blank */ +/* rest at start of forced beam, shift \sk's from before to after \ib..; */ +/* so \ib is at start and note in upper voice has a beam to connect to. */ +/* Expand range of vertical xtup number shift, now stored in mult(16-22) */ +/* Check for and allow \" within lyrics strings, for umlauts. */ /* 2.73 (160121) */ /* Dirk's "..." command, to convert "text" into \pmxlyr{text}\ and insert as */ /* inline TeX. Replace all '~' inside "..." and not preceded with '\', by */ @@ -1703,673 +1717,673 @@ static integer c__47 = 47; /* cccccccccccccccccccccccc */ /* itstart = mytime() */ -#line 764 "" +#line 772 "" s_copy(comver_1.versionc, version, (ftnlen)5, (ftnlen)5); /* Initialize midi parameters */ -#line 768 "" +#line 776 "" commmac_1.gottempo = FALSE_; -#line 769 "" +#line 777 "" commidi_1.ismidi = FALSE_; -#line 770 "" +#line 778 "" commidi_1.debugmidi = FALSE_; -#line 771 "" +#line 779 "" commidi_1.relacc = FALSE_; -#line 772 "" +#line 780 "" commmac_1.mmacrec = FALSE_; -#line 773 "" +#line 781 "" commmac_1.nmidsec = 1; -#line 774 "" +#line 782 "" commidi_1.mgap = 10; -#line 775 "" +#line 783 "" comevent_1.miditime = 0; -#line 776 "" +#line 784 "" comevent_1.lasttime = 0; -#line 777 "" +#line 785 "" commidi_1.nmidcrd = 0; -#line 778 "" +#line 786 "" comslm_1.nusebl = 0; -#line 779 "" +#line 787 "" commidi_1.notmain = FALSE_; -#line 780 "" +#line 788 "" for (ivx = 1; ivx <= 24; ++ivx) { -#line 781 "" +#line 789 "" commidi_1.twoline[ivx - 1] = FALSE_; -#line 782 "" +#line 790 "" commidi_1.midinst[ivx - 1] = 6; -#line 783 "" +#line 791 "" commvel_1.midivel[ivx - 1] = 127; -#line 784 "" +#line 792 "" commvel_1.midibal[ivx - 1] = 64; -#line 785 "" +#line 793 "" commvel_1.miditran[ivx - 1] = 0; -#line 786 "" +#line 794 "" /* L3: */ -#line 786 "" +#line 794 "" } -#line 787 "" +#line 795 "" for (icm = 0; icm <= 24; ++icm) { -#line 788 "" +#line 796 "" commidi_1.imidi[icm] = 0; -#line 789 "" +#line 797 "" commidi_1.restpend[icm] = FALSE_; -#line 790 "" +#line 798 "" commidi_1.trest[icm] = 0.f; -#line 791 "" +#line 799 "" comslm_1.levson[icm] = 0; -#line 792 "" +#line 800 "" comslm_1.levsoff[icm] = 0; -#line 793 "" +#line 801 "" comslm_1.slmon[icm] = FALSE_; -#line 794 "" +#line 802 "" comslm_1.naccbl[icm] = 0; -#line 795 "" +#line 803 "" comdiag_1.n69[icm] = 0; -#line 796 "" +#line 804 "" comdiag_1.n34[icm] = 0; -#line 797 "" +#line 805 "" commmac_1.msecstrt[icm] = 1; -#line 798 "" +#line 806 "" /* L12: */ -#line 798 "" +#line 806 "" } /* End of midi parameter initialization */ -#line 802 "" +#line 810 "" commus_1.musize = 0; -#line 803 "" +#line 811 "" optimize = FALSE_; -#line 804 "" +#line 812 "" numargs = iargc_(); -#line 805 "" +#line 813 "" if (numargs == 0) { -#line 806 "" +#line 814 "" s_wsle(&io___10); -#line 806 "" +#line 814 "" do_lio(&c__9, &c__1, "You could have entered a jobname on the comman"\ "d line,", (ftnlen)53); -#line 806 "" +#line 814 "" e_wsle(); -#line 807 "" +#line 815 "" s_wsle(&io___11); -#line 807 "" +#line 815 "" do_lio(&c__9, &c__1, " but you may enter one now:", (ftnlen)32); -#line 807 "" +#line 815 "" e_wsle(); -#line 808 "" +#line 816 "" s_rsfe(&io___12); -#line 808 "" +#line 816 "" do_fio(&c__1, jobname, (ftnlen)44); -#line 808 "" +#line 816 "" e_rsfe(); -#line 809 "" +#line 817 "" numargs = 1; -#line 810 "" +#line 818 "" } else { /* call getarg(1,jobname,idum) ! May need to replace this w/ next line */ -#line 812 "" +#line 820 "" getarg_(&c__1, jobname, (ftnlen)44); -#line 813 "" +#line 821 "" } -#line 814 "" +#line 822 "" L10: -#line 814 "" +#line 822 "" ljob = lenstr_(jobname, &c__44, (ftnlen)44); -#line 815 "" +#line 823 "" if (ljob > 44) { -#line 816 "" +#line 824 "" s_wsle(&io___15); -#line 816 "" +#line 824 "" do_lio(&c__9, &c__1, "Jobname is too long. Try again.", (ftnlen)31); -#line 816 "" +#line 824 "" e_wsle(); -#line 817 "" +#line 825 "" stop1_(); -#line 818 "" +#line 826 "" } else if (ljob == 0) { -#line 819 "" +#line 827 "" s_wsle(&io___16); -#line 819 "" +#line 827 "" do_lio(&c__9, &c__1, "No was jobname entered. Try again.", (ftnlen)34) ; -#line 819 "" +#line 827 "" e_wsle(); -#line 820 "" +#line 828 "" stop1_(); -#line 821 "" +#line 829 "" } else if (numargs == 2) { -#line 822 "" +#line 830 "" if (ljob == 2 && s_cmp(jobname, "-o", (ftnlen)2, (ftnlen)2) == 0) { -#line 823 "" +#line 831 "" optimize = TRUE_; /* call getarg(2,jobname,idum) ! May need to replace this w/ next line */ -#line 825 "" +#line 833 "" getarg_(&c__2, jobname, (ftnlen)44); -#line 826 "" +#line 834 "" numargs = 1; -#line 827 "" +#line 835 "" goto L10; -#line 828 "" +#line 836 "" } else { -#line 829 "" +#line 837 "" s_wsle(&io___17); -#line 829 "" +#line 837 "" do_lio(&c__9, &c__1, "Illegal option on command line", (ftnlen)30) ; -#line 829 "" +#line 837 "" e_wsle(); -#line 830 "" +#line 838 "" stop1_(); -#line 831 "" +#line 839 "" } -#line 832 "" +#line 840 "" } /* Strip ".pmx" if necessary */ /* Computing MAX */ -#line 836 "" +#line 844 "" i__1 = i_indx(jobname, ".pmx", (ftnlen)44, (ftnlen)4), i__2 = i_indx( jobname, ".PMX", (ftnlen)44, (ftnlen)4); -#line 836 "" +#line 844 "" ndxpmx = max(i__1,i__2); -#line 837 "" +#line 845 "" if (ndxpmx > 0) { -#line 838 "" +#line 846 "" s_copy(jobname, jobname, (ftnlen)44, ndxpmx - 1); -#line 839 "" +#line 847 "" ljob += -4; -#line 840 "" +#line 848 "" } /* Check for existence of input file */ /* Writing concatenation */ -#line 844 "" +#line 852 "" i__3[0] = ljob, a__1[0] = jobname; -#line 844 "" +#line 852 "" i__3[1] = 4, a__1[1] = ".pmx"; -#line 844 "" +#line 852 "" s_cat(infileq, a__1, i__3, &c__2, (ftnlen)47); -#line 845 "" +#line 853 "" ioin__1.inerr = 0; -#line 845 "" +#line 853 "" ioin__1.infilen = 47; -#line 845 "" +#line 853 "" ioin__1.infile = infileq; -#line 845 "" +#line 853 "" ioin__1.inex = &fexist; -#line 845 "" +#line 853 "" ioin__1.inopen = 0; -#line 845 "" +#line 853 "" ioin__1.innum = 0; -#line 845 "" +#line 853 "" ioin__1.innamed = 0; -#line 845 "" +#line 853 "" ioin__1.inname = 0; -#line 845 "" +#line 853 "" ioin__1.inacc = 0; -#line 845 "" +#line 853 "" ioin__1.inseq = 0; -#line 845 "" +#line 853 "" ioin__1.indir = 0; -#line 845 "" +#line 853 "" ioin__1.infmt = 0; -#line 845 "" +#line 853 "" ioin__1.inform = 0; -#line 845 "" +#line 853 "" ioin__1.inunf = 0; -#line 845 "" +#line 853 "" ioin__1.inrecl = 0; -#line 845 "" +#line 853 "" ioin__1.innrec = 0; -#line 845 "" +#line 853 "" ioin__1.inblank = 0; -#line 845 "" +#line 853 "" f_inqu(&ioin__1); -#line 846 "" +#line 854 "" if (! fexist) { -#line 847 "" +#line 855 "" ioin__1.inerr = 0; -#line 847 "" +#line 855 "" ioin__1.infilen = ljob + 4; /* Writing concatenation */ -#line 847 "" +#line 855 "" i__3[0] = ljob, a__1[0] = jobname; -#line 847 "" +#line 855 "" i__3[1] = 4, a__1[1] = ".PMX"; -#line 847 "" +#line 855 "" s_cat(ch__1, a__1, i__3, &c__2, (ftnlen)48); -#line 847 "" +#line 855 "" ioin__1.infile = ch__1; -#line 847 "" +#line 855 "" ioin__1.inex = &fexist; -#line 847 "" +#line 855 "" ioin__1.inopen = 0; -#line 847 "" +#line 855 "" ioin__1.innum = 0; -#line 847 "" +#line 855 "" ioin__1.innamed = 0; -#line 847 "" +#line 855 "" ioin__1.inname = 0; -#line 847 "" +#line 855 "" ioin__1.inacc = 0; -#line 847 "" +#line 855 "" ioin__1.inseq = 0; -#line 847 "" +#line 855 "" ioin__1.indir = 0; -#line 847 "" +#line 855 "" ioin__1.infmt = 0; -#line 847 "" +#line 855 "" ioin__1.inform = 0; -#line 847 "" +#line 855 "" ioin__1.inunf = 0; -#line 847 "" +#line 855 "" ioin__1.inrecl = 0; -#line 847 "" +#line 855 "" ioin__1.innrec = 0; -#line 847 "" +#line 855 "" ioin__1.inblank = 0; -#line 847 "" +#line 855 "" f_inqu(&ioin__1); -#line 848 "" +#line 856 "" if (! fexist) { -#line 849 "" +#line 857 "" s_wsle(&io___21); /* Writing concatenation */ -#line 849 "" +#line 857 "" i__3[0] = 17, a__1[0] = "Cannot find file "; -#line 849 "" +#line 857 "" i__3[1] = 47, a__1[1] = infileq; -#line 849 "" +#line 857 "" s_cat(ch__2, a__1, i__3, &c__2, (ftnlen)64); -#line 849 "" +#line 857 "" do_lio(&c__9, &c__1, ch__2, (ftnlen)64); -#line 849 "" +#line 857 "" e_wsle(); -#line 850 "" +#line 858 "" stop1_(); -#line 851 "" +#line 859 "" } else { /* Writing concatenation */ -#line 852 "" +#line 860 "" i__3[0] = ljob, a__1[0] = jobname; -#line 852 "" +#line 860 "" i__3[1] = 4, a__1[1] = ".PMX"; -#line 852 "" +#line 860 "" s_cat(infileq, a__1, i__3, &c__2, (ftnlen)47); -#line 853 "" +#line 861 "" } -#line 854 "" +#line 862 "" } /* Open a log file */ -#line 858 "" +#line 866 "" o__1.oerr = 0; -#line 858 "" +#line 866 "" o__1.ounit = 15; -#line 858 "" +#line 866 "" o__1.ofnmlen = ljob + 4; /* Writing concatenation */ -#line 858 "" +#line 866 "" i__3[0] = ljob, a__1[0] = jobname; -#line 858 "" +#line 866 "" i__3[1] = 4, a__1[1] = ".pml"; -#line 858 "" +#line 866 "" s_cat(ch__1, a__1, i__3, &c__2, (ftnlen)48); -#line 858 "" +#line 866 "" o__1.ofnm = ch__1; -#line 858 "" +#line 866 "" o__1.orl = 0; -#line 858 "" +#line 866 "" o__1.osta = 0; -#line 858 "" +#line 866 "" o__1.oacc = 0; -#line 858 "" +#line 866 "" o__1.ofm = 0; -#line 858 "" +#line 866 "" o__1.oblnk = 0; -#line 858 "" +#line 866 "" f_open(&o__1); /* Writing concatenation */ -#line 859 "" +#line 867 "" i__4[0] = 21, a__2[0] = "This is PMX, Version "; -#line 859 "" +#line 867 "" i__4[1] = 5, a__2[1] = version; -#line 859 "" +#line 867 "" i__4[2] = 2, a__2[2] = ", "; -#line 859 "" +#line 867 "" i__4[3] = 9, a__2[3] = date; -#line 859 "" +#line 867 "" s_cat(ch__3, a__2, i__4, &c__4, (ftnlen)37); -#line 859 "" +#line 867 "" printl_(ch__3, (ftnlen)37); -#line 860 "" +#line 868 "" ljob4 = ljob; /* Writing concatenation */ -#line 861 "" +#line 869 "" i__3[0] = 8, a__1[0] = "Opening "; -#line 861 "" +#line 869 "" i__3[1] = 47, a__1[1] = infileq; -#line 861 "" +#line 869 "" s_cat(ch__4, a__1, i__3, &c__2, (ftnlen)55); -#line 861 "" +#line 869 "" printl_(ch__4, (ftnlen)55); -#line 862 "" +#line 870 "" o__1.oerr = 0; -#line 862 "" +#line 870 "" o__1.ounit = 18; -#line 862 "" +#line 870 "" o__1.ofnmlen = 47; -#line 862 "" +#line 870 "" o__1.ofnm = infileq; -#line 862 "" +#line 870 "" o__1.orl = 0; -#line 862 "" +#line 870 "" o__1.osta = 0; -#line 862 "" +#line 870 "" o__1.oacc = 0; -#line 862 "" +#line 870 "" o__1.ofm = 0; -#line 862 "" +#line 870 "" o__1.oblnk = 0; -#line 862 "" +#line 870 "" f_open(&o__1); /* Copy input file into common buffer */ -#line 866 "" +#line 874 "" inbuff_1.ipbuf = 0; -#line 867 "" +#line 875 "" truelinecount_1.linewcom[0] = 1; -#line 868 "" +#line 876 "" for (inbuff_1.ilbuf = 1; inbuff_1.ilbuf <= 4000; ++inbuff_1.ilbuf) { -#line 869 "" +#line 877 "" ncomments = 0; -#line 870 "" +#line 878 "" L14: -#line 870 "" +#line 878 "" i__1 = s_rsfe(&io___24); -#line 870 "" +#line 878 "" if (i__1 != 0) { -#line 870 "" +#line 878 "" goto L9; -#line 870 "" +#line 878 "" } -#line 870 "" +#line 878 "" i__1 = do_fio(&c__1, lnholdq, (ftnlen)128); -#line 870 "" +#line 878 "" if (i__1 != 0) { -#line 870 "" +#line 878 "" goto L9; -#line 870 "" +#line 878 "" } -#line 870 "" +#line 878 "" i__1 = e_rsfe(); -#line 870 "" +#line 878 "" if (i__1 != 0) { -#line 870 "" +#line 878 "" goto L9; -#line 870 "" +#line 878 "" } -#line 871 "" +#line 879 "" inbuff_1.lbuf[inbuff_1.ilbuf - 1] = (shortint) lenstr_(lnholdq, & c__128, (ftnlen)128); -#line 872 "" +#line 880 "" if (inbuff_1.lbuf[inbuff_1.ilbuf - 1] == 0) { /* Blank line. Make it a single blank with length 1 */ -#line 876 "" +#line 884 "" inbuff_1.lbuf[inbuff_1.ilbuf - 1] = 1; -#line 877 "" +#line 885 "" s_copy(lnholdq, " ", (ftnlen)128, (ftnlen)1); -#line 878 "" +#line 886 "" } /* Now line has at least one non blank character. Check for comment */ /* As of Version 260, do not copy comments into bufq */ /* But need to count %'s for error messaging */ /* if (lnholdq(1:1).eq.'%') go to 14 */ -#line 884 "" +#line 892 "" if (*(unsigned char *)lnholdq == '%') { -#line 885 "" +#line 893 "" ++ncomments; -#line 886 "" +#line 894 "" goto L14; -#line 887 "" +#line 895 "" } /* When here, have counted all preceding comments and have a real line */ -#line 891 "" +#line 899 "" if (inbuff_1.ilbuf > 1) { -#line 892 "" +#line 900 "" truelinecount_1.linewcom[inbuff_1.ilbuf - 1] = truelinecount_1.linewcom[inbuff_1.ilbuf - 2] + 1 + ncomments; -#line 893 "" +#line 901 "" } else { -#line 894 "" +#line 902 "" truelinecount_1.linewcom[0] = ncomments + 1; -#line 895 "" +#line 903 "" } -#line 896 "" +#line 904 "" if (inbuff_1.ipbuf + inbuff_1.lbuf[inbuff_1.ilbuf - 1] > 65536) { -#line 897 "" +#line 905 "" s_wsle(&io___26); -#line 897 "" +#line 905 "" do_lio(&c__9, &c__1, "Too many characters in file, stopping", ( ftnlen)37); -#line 897 "" +#line 905 "" e_wsle(); -#line 898 "" +#line 906 "" stop1_(); -#line 899 "" +#line 907 "" } -#line 900 "" +#line 908 "" i__1 = inbuff_1.ipbuf; -#line 900 "" +#line 908 "" s_copy(inbuff_1.bufq + i__1, lnholdq, inbuff_1.ipbuf + inbuff_1.lbuf[ inbuff_1.ilbuf - 1] - i__1, (ftnlen)128); -#line 901 "" +#line 909 "" inbuff_1.ipbuf += inbuff_1.lbuf[inbuff_1.ilbuf - 1]; -#line 902 "" +#line 910 "" /* L8: */ -#line 902 "" +#line 910 "" } -#line 903 "" +#line 911 "" printl_("Too many lines in input file", (ftnlen)28); -#line 904 "" +#line 912 "" stop1_(); -#line 905 "" +#line 913 "" L9: /* Insert dummy line to handle input files w/o CR-LF at end. */ -#line 909 "" +#line 917 "" inbuff_1.nlbuf = inbuff_1.ilbuf - 1; /* nlbuf = ilbuf */ /* bufq(ipbuf+1:ipbuf+3) = ' / ' */ /* lbuf(nlbuf) = 3 */ -#line 913 "" +#line 921 "" cl__1.cerr = 0; -#line 913 "" +#line 921 "" cl__1.cunit = 18; -#line 913 "" +#line 921 "" cl__1.csta = 0; -#line 913 "" +#line 921 "" f_clos(&cl__1); -#line 914 "" +#line 922 "" i__1 = maxit; -#line 914 "" +#line 922 "" for (numit = 1; numit <= i__1; ++numit) { -#line 915 "" +#line 923 "" if (optimize) { -#line 915 "" +#line 923 "" printl_("Starting an iteration", (ftnlen)21); -#line 915 "" +#line 923 "" } /* When isfirst=.true., pmxa() generates linebreaks normally, output in nbars0. */ /* Otherwise, nbars0 is the input */ /* When islast=.false., pmxb only returns poe's, otherwise does whole job */ -#line 921 "" +#line 929 "" pmxa_(jobname, &ljob4, &isfirst, &nsyst, nbars0, &optimize, (ftnlen) 44); -#line 922 "" +#line 930 "" if (! optimize) { -#line 923 "" +#line 931 "" if (commidi_1.ismidi) { /* This was moved here from writemidi 130302 to allow midivel,bal,tran, to be */ /* set up here as functions of instrument rather than iv (staff). */ /* Count up staves(iv,nv) vs instruments. Store instr# for iv in iinsiv(iv) */ -#line 929 "" +#line 937 "" nstaves = 0; -#line 930 "" +#line 938 "" ivt = 0; -#line 931 "" +#line 939 "" for (iinst = 1; iinst <= 24; ++iinst) { -#line 932 "" +#line 940 "" nstaves += c1omget_1.nsperi[iinst - 1]; -#line 933 "" +#line 941 "" i__2 = c1omget_1.nsperi[iinst - 1]; -#line 933 "" +#line 941 "" for (ivtt = 1; ivtt <= i__2; ++ivtt) { -#line 934 "" +#line 942 "" ++ivt; -#line 935 "" +#line 943 "" commvel_1.iinsiv[ivt - 1] = (shortint) iinst; -#line 936 "" +#line 944 "" /* L17: */ -#line 936 "" +#line 944 "" } -#line 937 "" +#line 945 "" if (nstaves == a1ll_1.nv) { -#line 937 "" +#line 945 "" goto L18; -#line 937 "" +#line 945 "" } -#line 938 "" +#line 946 "" /* L16: */ -#line 938 "" +#line 946 "" } -#line 939 "" +#line 947 "" s_wsle(&io___34); -#line 939 "" +#line 947 "" do_lio(&c__9, &c__1, "Screwup!", (ftnlen)8); -#line 939 "" +#line 947 "" e_wsle(); -#line 940 "" +#line 948 "" stop1_(); -#line 941 "" +#line 949 "" L18: /* Set up channel numbers for midi. */ -#line 945 "" +#line 953 "" commidi_1.numchan = 0; -#line 946 "" +#line 954 "" for (a1ll_1.iv = a1ll_1.nv; a1ll_1.iv >= 1; --a1ll_1.iv) { -#line 947 "" +#line 955 "" if (commidi_1.twoline[a1ll_1.iv - 1]) { -#line 948 "" +#line 956 "" commidi_1.midchan[a1ll_1.iv + 23] = commidi_1.numchan; -#line 949 "" +#line 957 "" ++commidi_1.numchan; -#line 950 "" +#line 958 "" } -#line 951 "" +#line 959 "" commidi_1.midchan[a1ll_1.iv - 1] = commidi_1.numchan; -#line 952 "" +#line 960 "" ++commidi_1.numchan; -#line 953 "" +#line 961 "" /* L11: */ -#line 953 "" +#line 961 "" } /* numchan will now be the number of channels, but max channel # is numchan-1 */ /* Set up velocities, balances, and midi-transpositions */ -#line 959 "" +#line 967 "" for (a1ll_1.iv = a1ll_1.nv; a1ll_1.iv >= 1; --a1ll_1.iv) { -#line 960 "" +#line 968 "" if (commidi_1.twoline[a1ll_1.iv - 1]) { /* 130302 Make these functions of instrument rather than staff (iv) */ /* midvelc(midchan(iv,2)) = midivel(iv) */ /* midbc(midchan(iv,2)) = midibal(iv) */ /* midtc(midchan(iv,2)) = miditran(iv) */ -#line 965 "" +#line 973 "" commvel_1.midvelc[commidi_1.midchan[a1ll_1.iv + 23]] = commvel_1.midivel[commvel_1.iinsiv[a1ll_1.iv - 1] - 1]; -#line 966 "" +#line 974 "" commvel_1.midbc[commidi_1.midchan[a1ll_1.iv + 23]] = commvel_1.midibal[commvel_1.iinsiv[a1ll_1.iv - 1] - 1]; -#line 967 "" +#line 975 "" commvel_1.midtc[commidi_1.midchan[a1ll_1.iv + 23]] = commvel_1.miditran[commvel_1.iinsiv[a1ll_1.iv - 1] - 1]; -#line 968 "" +#line 976 "" } /* midvelc(midchan(iv,1)) = midivel(iv) */ /* midbc(midchan(iv,1)) = midibal(iv) */ /* midtc(midchan(iv,1)) = miditran(iv) */ -#line 972 "" +#line 980 "" commvel_1.midvelc[commidi_1.midchan[a1ll_1.iv - 1]] = commvel_1.midivel[commvel_1.iinsiv[a1ll_1.iv - 1] - 1]; -#line 973 "" +#line 981 "" commvel_1.midbc[commidi_1.midchan[a1ll_1.iv - 1]] = commvel_1.midibal[commvel_1.iinsiv[a1ll_1.iv - 1] - 1]; -#line 974 "" +#line 982 "" commvel_1.midtc[commidi_1.midchan[a1ll_1.iv - 1]] = commvel_1.miditran[commvel_1.iinsiv[a1ll_1.iv - 1] - 1]; -#line 975 "" +#line 983 "" /* L13: */ -#line 975 "" +#line 983 "" } -#line 976 "" +#line 984 "" } /* TEMPORARY!!! */ -#line 980 "" +#line 988 "" s_wsle(&io___35); -#line 980 "" +#line 988 "" do_lio(&c__9, &c__1, "nlbuf: ", (ftnlen)7); -#line 980 "" +#line 988 "" do_lio(&c__3, &c__1, (char *)&inbuff_1.nlbuf, (ftnlen)sizeof( integer)); -#line 980 "" +#line 988 "" e_wsle(); -#line 981 "" +#line 989 "" ip1 = 1; -#line 982 "" +#line 990 "" i__2 = inbuff_1.nlbuf; -#line 982 "" +#line 990 "" for (ilb = 1; ilb <= i__2; ++ilb) { /* write(15,'(2i5,a40,3i5)')ilb,lbuf(ilb), */ /* * bufq(ip1:ip1+lbuf(ilb)-1), */ /* * (ichar(bufq(ip1+lbuf(ilb)-k:ip1+lbuf(ilb)-k)), */ /* * k=min(3,lbuf(ilb)),1,-1) */ -#line 987 "" +#line 995 "" ip1 += inbuff_1.lbuf[ilb - 1]; -#line 988 "" +#line 996 "" /* L10000: */ -#line 988 "" +#line 996 "" } -#line 989 "" +#line 997 "" iplast = ip1 - 1; /* Check to see if (1) last line is "<blank><blank>/" and (2) next to last */ @@ -2380,480 +2394,480 @@ L18: /* print*,bufq(iplast+1-lbuf(nlbuf):iplast) */ /* print*,'Last char of next to last line:' */ /* print*,bufq(iplast-lbuf(nlbuf):iplast-lbuf(nlbuf)) */ -#line 999 "" +#line 1007 "" i__2 = iplast + 1 - inbuff_1.lbuf[inbuff_1.nlbuf - 1] - 1; -#line 999 "" +#line 1007 "" if (s_cmp(inbuff_1.bufq + i__2, " /", iplast - i__2, (ftnlen)3) == 0) { -#line 1000 "" +#line 1008 "" i__2 = iplast - inbuff_1.lbuf[inbuff_1.nlbuf - 1] - 1; -#line 1000 "" +#line 1008 "" if (s_cmp(inbuff_1.bufq + i__2, "/", iplast - inbuff_1.lbuf[ inbuff_1.nlbuf - 1] - i__2, (ftnlen)1) == 0) { -#line 1001 "" +#line 1009 "" s_wsle(&io___39); -#line 1001 "" +#line 1009 "" do_lio(&c__9, &c__1, "Removing last line of \"<blank><bl"\ "ank>/\"", (ftnlen)39); -#line 1001 "" +#line 1009 "" e_wsle(); -#line 1002 "" +#line 1010 "" s_wsle(&io___40); -#line 1002 "" +#line 1010 "" do_lio(&c__9, &c__1, "Removing last line of \"<blank><bl"\ "ank>/\"", (ftnlen)39); -#line 1002 "" +#line 1010 "" e_wsle(); -#line 1003 "" +#line 1011 "" --inbuff_1.nlbuf; -#line 1004 "" +#line 1012 "" } -#line 1005 "" +#line 1013 "" } -#line 1007 "" +#line 1015 "" pmxb_(&c_true, poe0, &ncalls, &optimize); -#line 1008 "" +#line 1016 "" if (commidi_1.ismidi) { /* Write midi file */ -#line 1012 "" +#line 1020 "" o__1.oerr = 0; -#line 1012 "" +#line 1020 "" o__1.ounit = 51; -#line 1012 "" +#line 1020 "" o__1.ofnmlen = ljob + 4; /* Writing concatenation */ -#line 1012 "" +#line 1020 "" i__3[0] = ljob, a__1[0] = jobname; -#line 1012 "" +#line 1020 "" i__3[1] = 4, a__1[1] = ".mid"; -#line 1012 "" +#line 1020 "" s_cat(ch__1, a__1, i__3, &c__2, (ftnlen)48); -#line 1012 "" +#line 1020 "" o__1.ofnm = ch__1; -#line 1012 "" +#line 1020 "" o__1.orl = 0; -#line 1012 "" +#line 1020 "" o__1.osta = 0; -#line 1012 "" +#line 1020 "" o__1.oacc = 0; -#line 1012 "" +#line 1020 "" o__1.ofm = 0; -#line 1012 "" +#line 1020 "" o__1.oblnk = 0; -#line 1012 "" +#line 1020 "" f_open(&o__1); -#line 1013 "" +#line 1021 "" if (commidi_1.debugmidi) { -#line 1013 "" +#line 1021 "" o__1.oerr = 0; -#line 1013 "" +#line 1021 "" o__1.ounit = 52; -#line 1013 "" +#line 1021 "" o__1.ofnmlen = ljob + 4; /* Writing concatenation */ -#line 1013 "" +#line 1021 "" i__3[0] = ljob, a__1[0] = jobname; -#line 1013 "" +#line 1021 "" i__3[1] = 4, a__1[1] = ".dbm"; -#line 1013 "" +#line 1021 "" s_cat(ch__1, a__1, i__3, &c__2, (ftnlen)48); -#line 1013 "" +#line 1021 "" o__1.ofnm = ch__1; -#line 1013 "" +#line 1021 "" o__1.orl = 0; -#line 1013 "" +#line 1021 "" o__1.osta = 0; -#line 1013 "" +#line 1021 "" o__1.oacc = 0; -#line 1013 "" +#line 1021 "" o__1.ofm = 0; -#line 1013 "" +#line 1021 "" o__1.oblnk = 0; -#line 1013 "" +#line 1021 "" f_open(&o__1); -#line 1013 "" +#line 1021 "" } -#line 1014 "" +#line 1022 "" printl_(" ", (ftnlen)1); /* Writing concatenation */ -#line 1015 "" +#line 1023 "" i__5[0] = 8, a__3[0] = "Writing "; -#line 1015 "" +#line 1023 "" i__5[1] = ljob, a__3[1] = jobname; -#line 1015 "" +#line 1023 "" i__5[2] = 4, a__3[2] = ".mid"; -#line 1015 "" +#line 1023 "" s_cat(ch__5, a__3, i__5, &c__3, (ftnlen)56); -#line 1015 "" +#line 1023 "" printl_(ch__5, ljob + 12); -#line 1016 "" +#line 1024 "" writemidi_(jobname, &ljob, (ftnlen)44); -#line 1017 "" +#line 1025 "" } -#line 1018 "" +#line 1026 "" cl__1.cerr = 0; -#line 1018 "" +#line 1026 "" cl__1.cunit = 15; -#line 1018 "" +#line 1026 "" cl__1.csta = 0; -#line 1018 "" +#line 1026 "" f_clos(&cl__1); -#line 1019 "" +#line 1027 "" s_stop("", (ftnlen)0); -#line 1020 "" +#line 1028 "" } -#line 1021 "" +#line 1029 "" s_wsle(&io___42); -#line 1021 "" +#line 1029 "" do_lio(&c__9, &c__1, "nlbuf: ", (ftnlen)7); -#line 1021 "" +#line 1029 "" do_lio(&c__3, &c__1, (char *)&inbuff_1.nlbuf, (ftnlen)sizeof(integer)) ; -#line 1021 "" +#line 1029 "" e_wsle(); -#line 1022 "" +#line 1030 "" ip1 = 1; -#line 1023 "" +#line 1031 "" pmxb_(&c_false, poe0, &ncalls, &optimize); -#line 1024 "" +#line 1032 "" poestats_(&nsyst, poe0, &poebar0, &devnorm0); /* Save initial deviation and line breaks for later comparison */ -#line 1028 "" +#line 1036 "" if (numit == 1) { -#line 1029 "" +#line 1037 "" devpmx = devnorm0; -#line 1030 "" +#line 1038 "" i__2 = nsyst; -#line 1030 "" +#line 1038 "" for (isys = 1; isys <= i__2; ++isys) { -#line 1031 "" +#line 1039 "" nbari[isys - 1] = nbars0[isys - 1]; -#line 1032 "" +#line 1040 "" /* L20: */ -#line 1032 "" +#line 1040 "" } -#line 1033 "" +#line 1041 "" } -#line 1034 "" +#line 1042 "" sortpoe_(&nsyst, poe0, ipoe); -#line 1035 "" +#line 1043 "" for (iupord = nsyst; iupord >= 1; --iupord) { -#line 1036 "" +#line 1044 "" isysu = ipoe[iupord - 1]; -#line 1037 "" +#line 1045 "" s_wsle(&io___51); -#line 1037 "" +#line 1045 "" do_lio(&c__9, &c__1, "isysu=", (ftnlen)6); -#line 1037 "" +#line 1045 "" do_lio(&c__3, &c__1, (char *)&isysu, (ftnlen)sizeof(integer)); -#line 1037 "" +#line 1045 "" e_wsle(); -#line 1038 "" +#line 1046 "" s_wsle(&io___52); -#line 1038 "" +#line 1046 "" do_lio(&c__9, &c__1, "isysu=", (ftnlen)6); -#line 1038 "" +#line 1046 "" do_lio(&c__3, &c__1, (char *)&isysu, (ftnlen)sizeof(integer)); -#line 1038 "" +#line 1046 "" e_wsle(); /* Skip if system isysu has poe0 < avg or isysd has poe0 > avg */ -#line 1042 "" +#line 1050 "" if (poe0[isysu - 1] < poebar0) { -#line 1042 "" +#line 1050 "" goto L1; -#line 1042 "" +#line 1050 "" } -#line 1043 "" +#line 1051 "" i__2 = nsyst; -#line 1043 "" +#line 1051 "" for (idnord = 1; idnord <= i__2; ++idnord) { -#line 1044 "" +#line 1052 "" isysd = ipoe[idnord - 1]; -#line 1045 "" +#line 1053 "" if (isysu == isysd || nbars0[isysd - 1] == 1 || poe0[isysd - 1] > poebar0) { -#line 1045 "" +#line 1053 "" goto L5; -#line 1045 "" +#line 1053 "" } -#line 1047 "" +#line 1055 "" i__6 = nsyst; -#line 1047 "" +#line 1055 "" for (isyst = 1; isyst <= i__6; ++isyst) { -#line 1048 "" +#line 1056 "" nbars[isyst - 1] = nbars0[isyst - 1]; -#line 1049 "" +#line 1057 "" if (isyst == isysu) { -#line 1050 "" +#line 1058 "" ++nbars[isyst - 1]; -#line 1051 "" +#line 1059 "" } else if (isyst == isysd) { -#line 1052 "" +#line 1060 "" --nbars[isyst - 1]; -#line 1053 "" +#line 1061 "" } -#line 1054 "" +#line 1062 "" /* L2: */ -#line 1054 "" +#line 1062 "" } -#line 1055 "" +#line 1063 "" pmxa_(jobname, &ljob4, &isfirst, &nsyst, nbars, &optimize, ( ftnlen)44); -#line 1056 "" +#line 1064 "" pmxb_(&c_false, poe, &ncalls, &optimize); -#line 1057 "" +#line 1065 "" poestats_(&nsyst, poe, &poebar, &devnorm); -#line 1058 "" +#line 1066 "" if (devnorm < devnorm0) { -#line 1059 "" +#line 1067 "" devnorm0 = devnorm; -#line 1060 "" +#line 1068 "" poebar0 = poebar; -#line 1061 "" +#line 1069 "" i__6 = nsyst; -#line 1061 "" +#line 1069 "" for (isys = 1; isys <= i__6; ++isys) { -#line 1062 "" +#line 1070 "" nbars0[isys - 1] = nbars[isys - 1]; -#line 1063 "" +#line 1071 "" poe0[isys - 1] = poe[isys - 1]; -#line 1064 "" +#line 1072 "" /* L4: */ -#line 1064 "" +#line 1072 "" } -#line 1065 "" +#line 1073 "" s_wsle(&io___60); -#line 1065 "" +#line 1073 "" do_lio(&c__9, &c__1, "Improved with iup,idown,devnorm:", ( ftnlen)32); -#line 1065 "" +#line 1073 "" do_lio(&c__3, &c__1, (char *)&isysu, (ftnlen)sizeof( integer)); -#line 1065 "" +#line 1073 "" do_lio(&c__3, &c__1, (char *)&isysd, (ftnlen)sizeof( integer)); -#line 1065 "" +#line 1073 "" do_lio(&c__4, &c__1, (char *)&devnorm0, (ftnlen)sizeof( real)); -#line 1065 "" +#line 1073 "" e_wsle(); -#line 1067 "" +#line 1075 "" s_wsle(&io___61); -#line 1067 "" +#line 1075 "" do_lio(&c__9, &c__1, "Improved with iup,idown,devnorm:", ( ftnlen)32); -#line 1067 "" +#line 1075 "" do_lio(&c__3, &c__1, (char *)&isysu, (ftnlen)sizeof( integer)); -#line 1067 "" +#line 1075 "" do_lio(&c__3, &c__1, (char *)&isysd, (ftnlen)sizeof( integer)); -#line 1067 "" +#line 1075 "" do_lio(&c__4, &c__1, (char *)&devnorm0, (ftnlen)sizeof( real)); -#line 1067 "" +#line 1075 "" e_wsle(); -#line 1069 "" +#line 1077 "" s_wsfe(&io___62); -#line 1069 "" +#line 1077 "" i__6 = nsyst; -#line 1069 "" +#line 1077 "" for (isys = 1; isys <= i__6; ++isys) { -#line 1069 "" +#line 1077 "" do_fio(&c__1, (char *)&nbars0[isys - 1], (ftnlen) sizeof(integer)); -#line 1069 "" +#line 1077 "" } -#line 1069 "" +#line 1077 "" e_wsfe(); -#line 1070 "" +#line 1078 "" s_wsfe(&io___63); -#line 1070 "" +#line 1078 "" i__6 = nsyst; -#line 1070 "" +#line 1078 "" for (isys = 1; isys <= i__6; ++isys) { -#line 1070 "" +#line 1078 "" do_fio(&c__1, (char *)&nbars0[isys - 1], (ftnlen) sizeof(integer)); -#line 1070 "" +#line 1078 "" } -#line 1070 "" +#line 1078 "" e_wsfe(); -#line 1071 "" +#line 1079 "" sortpoe_(&nsyst, poe0, ipoe); -#line 1072 "" +#line 1080 "" goto L6; -#line 1073 "" +#line 1081 "" } -#line 1074 "" +#line 1082 "" L5: -#line 1074 "" +#line 1082 "" ; -#line 1074 "" +#line 1082 "" } -#line 1075 "" +#line 1083 "" L1: -#line 1075 "" +#line 1083 "" ; -#line 1075 "" +#line 1083 "" } /* If we get here, must have gone thru all switches and found nothing better, */ /* so done! */ -#line 1080 "" +#line 1088 "" goto L7; -#line 1081 "" +#line 1089 "" L6: -#line 1081 "" +#line 1089 "" ; -#line 1081 "" +#line 1089 "" } -#line 1082 "" +#line 1090 "" L7: -#line 1083 "" +#line 1091 "" s_wsle(&io___64); -#line 1083 "" +#line 1091 "" do_lio(&c__9, &c__1, "Optimum located, numit:", (ftnlen)23); -#line 1083 "" +#line 1091 "" do_lio(&c__3, &c__1, (char *)&numit, (ftnlen)sizeof(integer)); -#line 1083 "" +#line 1091 "" do_lio(&c__9, &c__1, ", ncalls:", (ftnlen)10); -#line 1083 "" +#line 1091 "" do_lio(&c__3, &c__1, (char *)&ncalls, (ftnlen)sizeof(integer)); -#line 1083 "" +#line 1091 "" e_wsle(); -#line 1084 "" +#line 1092 "" s_wsle(&io___65); -#line 1084 "" +#line 1092 "" do_lio(&c__9, &c__1, "Optimum located, numit:", (ftnlen)23); -#line 1084 "" +#line 1092 "" do_lio(&c__3, &c__1, (char *)&numit, (ftnlen)sizeof(integer)); -#line 1084 "" +#line 1092 "" do_lio(&c__9, &c__1, ", ncalls:", (ftnlen)10); -#line 1084 "" +#line 1092 "" do_lio(&c__3, &c__1, (char *)&ncalls, (ftnlen)sizeof(integer)); -#line 1084 "" +#line 1092 "" e_wsle(); -#line 1085 "" +#line 1093 "" s_wsle(&io___66); -#line 1085 "" +#line 1093 "" do_lio(&c__9, &c__1, "Final error:", (ftnlen)12); -#line 1085 "" +#line 1093 "" do_lio(&c__4, &c__1, (char *)&devnorm0, (ftnlen)sizeof(real)); -#line 1085 "" +#line 1093 "" do_lio(&c__9, &c__1, ", initial error:", (ftnlen)16); -#line 1085 "" +#line 1093 "" do_lio(&c__4, &c__1, (char *)&devpmx, (ftnlen)sizeof(real)); -#line 1085 "" +#line 1093 "" e_wsle(); -#line 1086 "" +#line 1094 "" s_wsle(&io___67); -#line 1086 "" +#line 1094 "" do_lio(&c__9, &c__1, "Final error:", (ftnlen)12); -#line 1086 "" +#line 1094 "" do_lio(&c__4, &c__1, (char *)&devnorm0, (ftnlen)sizeof(real)); -#line 1086 "" +#line 1094 "" do_lio(&c__9, &c__1, ", initial error:", (ftnlen)16); -#line 1086 "" +#line 1094 "" do_lio(&c__4, &c__1, (char *)&devpmx, (ftnlen)sizeof(real)); -#line 1086 "" +#line 1094 "" e_wsle(); -#line 1087 "" +#line 1095 "" s_wsle(&io___68); -#line 1087 "" +#line 1095 "" do_lio(&c__9, &c__1, "Percentage improvement:", (ftnlen)23); -#line 1087 "" +#line 1095 "" r__1 = (1 - devnorm0 / devpmx) * 100.f; -#line 1087 "" +#line 1095 "" do_lio(&c__4, &c__1, (char *)&r__1, (ftnlen)sizeof(real)); -#line 1087 "" +#line 1095 "" e_wsle(); -#line 1088 "" +#line 1096 "" s_wsle(&io___69); -#line 1088 "" +#line 1096 "" do_lio(&c__9, &c__1, "Percentage improvement:", (ftnlen)23); -#line 1088 "" +#line 1096 "" r__1 = (1 - devnorm0 / devpmx) * 100.f; -#line 1088 "" +#line 1096 "" do_lio(&c__4, &c__1, (char *)&r__1, (ftnlen)sizeof(real)); -#line 1088 "" +#line 1096 "" e_wsle(); -#line 1089 "" +#line 1097 "" printl_("Initial bars/system:", (ftnlen)20); -#line 1090 "" +#line 1098 "" s_wsfe(&io___70); -#line 1090 "" +#line 1098 "" i__1 = nsyst; -#line 1090 "" +#line 1098 "" for (isys = 1; isys <= i__1; ++isys) { -#line 1090 "" +#line 1098 "" do_fio(&c__1, (char *)&nbari[isys - 1], (ftnlen)sizeof(integer)); -#line 1090 "" +#line 1098 "" } -#line 1090 "" +#line 1098 "" e_wsfe(); -#line 1091 "" +#line 1099 "" s_wsfe(&io___71); -#line 1091 "" +#line 1099 "" i__1 = nsyst; -#line 1091 "" +#line 1099 "" for (isys = 1; isys <= i__1; ++isys) { -#line 1091 "" +#line 1099 "" do_fio(&c__1, (char *)&nbari[isys - 1], (ftnlen)sizeof(integer)); -#line 1091 "" +#line 1099 "" } -#line 1091 "" +#line 1099 "" e_wsfe(); -#line 1092 "" +#line 1100 "" printl_("Final bars/system:", (ftnlen)18); -#line 1093 "" +#line 1101 "" s_wsfe(&io___72); -#line 1093 "" +#line 1101 "" i__1 = nsyst; -#line 1093 "" +#line 1101 "" for (isys = 1; isys <= i__1; ++isys) { -#line 1093 "" +#line 1101 "" do_fio(&c__1, (char *)&nbars0[isys - 1], (ftnlen)sizeof(integer)); -#line 1093 "" +#line 1101 "" } -#line 1093 "" +#line 1101 "" e_wsfe(); -#line 1094 "" +#line 1102 "" s_wsfe(&io___73); -#line 1094 "" +#line 1102 "" i__1 = nsyst; -#line 1094 "" +#line 1102 "" for (isys = 1; isys <= i__1; ++isys) { -#line 1094 "" +#line 1102 "" do_fio(&c__1, (char *)&nbars0[isys - 1], (ftnlen)sizeof(integer)); -#line 1094 "" +#line 1102 "" } -#line 1094 "" +#line 1102 "" e_wsfe(); -#line 1095 "" +#line 1103 "" pmxa_(jobname, &ljob4, &c_false, &nsyst, nbars0, &optimize, (ftnlen)44); -#line 1096 "" +#line 1104 "" pmxb_(&c_true, poe0, &ncalls, &optimize); /* itend = mytime() */ /* print*,'Elapsed time in ms:',itend-itstart */ /* write(15,*)'Elapsed time in ms:',itend-itstart */ -#line 1100 "" +#line 1108 "" cl__1.cerr = 0; -#line 1100 "" +#line 1108 "" cl__1.cunit = 15; -#line 1100 "" +#line 1108 "" cl__1.csta = 0; -#line 1100 "" +#line 1108 "" f_clos(&cl__1); -#line 1101 "" +#line 1109 "" return 0; } /* MAIN__ */ @@ -2872,51 +2886,51 @@ L7: static cilist io___75 = { 0, 6, 0, 0, 0 }; -#line 1104 "" +#line 1112 "" iacc = *nacc & 7; -#line 1105 "" +#line 1113 "" if (iacc == 1) { -#line 1106 "" +#line 1114 "" s_copy(acsymq, "fl", (ftnlen)3, (ftnlen)2); -#line 1107 "" +#line 1115 "" *lacc = 2; -#line 1108 "" +#line 1116 "" } else if (iacc == 2) { -#line 1109 "" +#line 1117 "" s_copy(acsymq, "sh", (ftnlen)3, (ftnlen)2); -#line 1110 "" +#line 1118 "" *lacc = 2; -#line 1111 "" +#line 1119 "" } else if (iacc == 3) { -#line 1112 "" +#line 1120 "" s_copy(acsymq, "na", (ftnlen)3, (ftnlen)2); -#line 1113 "" +#line 1121 "" *lacc = 2; -#line 1114 "" +#line 1122 "" } else if (iacc == 5) { -#line 1115 "" +#line 1123 "" s_copy(acsymq, "dfl", (ftnlen)3, (ftnlen)3); -#line 1116 "" +#line 1124 "" *lacc = 3; -#line 1117 "" +#line 1125 "" } else if (iacc == 6) { -#line 1118 "" +#line 1126 "" s_copy(acsymq, "dsh", (ftnlen)3, (ftnlen)3); -#line 1119 "" +#line 1127 "" *lacc = 3; -#line 1120 "" +#line 1128 "" } else { -#line 1121 "" +#line 1129 "" s_wsle(&io___75); -#line 1121 "" +#line 1129 "" do_lio(&c__9, &c__1, "bad accidental: ", (ftnlen)16); -#line 1121 "" +#line 1129 "" do_lio(&c__3, &c__1, (char *)&iacc, (ftnlen)sizeof(integer)); -#line 1121 "" +#line 1129 "" e_wsle(); -#line 1122 "" +#line 1130 "" } -#line 1123 "" +#line 1131 "" return 0; } /* accsym_ */ @@ -2941,123 +2955,123 @@ L7: static cilist io___77 = { 0, 6, 0, 0, 0 }; -#line 1132 "" +#line 1140 "" if (*isudsp) { /* Find which udsp we're dealing with */ -#line 1136 "" +#line 1144 "" i__1 = comudsp_1.nudsp; -#line 1136 "" +#line 1144 "" for (iudsp = 1; iudsp <= i__1; ++iudsp) { -#line 1137 "" +#line 1145 "" if ((r__1 = *taskn + *tglp1 - comudsp_1.tudsp[iudsp - 1], dabs( r__1)) < comtol_1.tol) { -#line 1137 "" +#line 1145 "" goto L2; -#line 1137 "" +#line 1145 "" } -#line 1138 "" +#line 1146 "" /* L1: */ -#line 1138 "" +#line 1146 "" } -#line 1139 "" +#line 1147 "" s_wsle(&io___77); -#line 1139 "" +#line 1147 "" do_lio(&c__9, &c__1, "You should note BEEE here in addask!", (ftnlen) 36); -#line 1139 "" +#line 1147 "" e_wsle(); -#line 1140 "" +#line 1148 "" stop1_(); -#line 1141 "" +#line 1149 "" L2: /* Fixednew and scaldold must not be changed, since udsp's are already included */ /* in fsyst from pmxa, and udsp don't involve scaled space.. */ -#line 1146 "" +#line 1154 "" if (comas1_1.naskb > 0 && (r__1 = *taskn - comas1_1.task[max(1, comas1_1.naskb) - 1], dabs(r__1)) < comtol_1.tol) { /* Must add user-defined space to what's there already. */ -#line 1150 "" +#line 1158 "" comas1_1.wask[comas1_1.naskb - 1] += comudsp_1.udsp[iudsp - 1]; -#line 1151 "" +#line 1159 "" } else { /* This place has no other space. */ -#line 1155 "" +#line 1163 "" ++comas1_1.naskb; -#line 1156 "" +#line 1164 "" comas1_1.task[comas1_1.naskb - 1] = *taskn; -#line 1157 "" +#line 1165 "" comas1_1.wask[comas1_1.naskb - 1] = comudsp_1.udsp[iudsp - 1]; -#line 1158 "" +#line 1166 "" comas1_1.elask[comas1_1.naskb - 1] = 0.f; -#line 1159 "" +#line 1167 "" } -#line 1160 "" +#line 1168 "" } else { /* 130330 start */ -#line 1162 "" +#line 1170 "" oldwask = 0.f; -#line 1163 "" +#line 1171 "" oldelask = 0.f; /* 130330 end */ /* This is a normal space, no effect if smaller than existing space */ -#line 1168 "" +#line 1176 "" if (comas1_1.naskb > 0 && (r__1 = *taskn - comas1_1.task[max(1, comas1_1.naskb) - 1], dabs(r__1)) < comtol_1.tol) { /* We already put in some space at this time */ /* Check if new one needs more space than old one at same time */ -#line 1173 "" +#line 1181 "" if (*waskn > comas1_1.wask[comas1_1.naskb - 1]) { /* 130330 We were double counting the larger space when it came 2nd */ /* Need to fix but don't see how yet. Assume times came in order and */ /* that last naskb defined spaces that need updating */ -#line 1179 "" +#line 1187 "" oldwask = comas1_1.wask[comas1_1.naskb - 1]; -#line 1180 "" +#line 1188 "" oldelask = comas1_1.elask[comas1_1.naskb - 1]; /* End of 130330 insertions */ -#line 1182 "" +#line 1190 "" --comas1_1.naskb; -#line 1183 "" +#line 1191 "" } else { -#line 1184 "" +#line 1192 "" return 0; -#line 1185 "" +#line 1193 "" } -#line 1186 "" +#line 1194 "" } -#line 1187 "" +#line 1195 "" ++comas1_1.naskb; -#line 1188 "" +#line 1196 "" comas1_1.task[comas1_1.naskb - 1] = *taskn; -#line 1189 "" +#line 1197 "" comas1_1.wask[comas1_1.naskb - 1] = *waskn; -#line 1190 "" +#line 1198 "" comas1_1.elask[comas1_1.naskb - 1] = *elaskn; /* 130330 start */ /* fixednew = fixednew+waskn */ /* scaldold = scaldold+elaskn */ -#line 1194 "" +#line 1202 "" *fixednew = *fixednew + *waskn - oldwask; -#line 1195 "" +#line 1203 "" *scaldold = *scaldold + *elaskn - oldelask; /* 130330 end */ -#line 1197 "" +#line 1205 "" } -#line 1198 "" +#line 1206 "" return 0; } /* addask_ */ @@ -3073,18 +3087,18 @@ L2: /* Local variables */ static char tchar[1]; -#line 1203 "" +#line 1211 "" *(unsigned char *)tchar = *(unsigned char *)noteq; /* Writing concatenation */ -#line 1204 "" +#line 1212 "" i__1[0] = 1, a__1[0] = " "; -#line 1204 "" +#line 1212 "" i__1[1] = 1, a__1[1] = tchar; -#line 1204 "" +#line 1212 "" s_cat(noteq, a__1, i__1, &c__2, (ftnlen)8); -#line 1205 "" +#line 1213 "" *lnoten = 2; -#line 1206 "" +#line 1214 "" return 0; } /* addblank_ */ @@ -3093,54 +3107,54 @@ L2: { static integer ifb; -#line 1214 "" +#line 1222 "" /* Parameter adjustments */ -#line 1214 "" +#line 1222 "" ulfbq -= 25; -#line 1214 "" +#line 1222 "" t2fb -= 25; -#line 1214 "" +#line 1222 "" t1fb -= 25; -#line 1214 "" +#line 1222 "" --nfb; -#line 1214 "" +#line 1222 "" -#line 1214 "" +#line 1222 "" /* Function Body */ -#line 1214 "" +#line 1222 "" *ifbadd = 1; -#line 1215 "" +#line 1223 "" ++nfb[*iv]; -#line 1216 "" +#line 1224 "" for (ifb = nfb[*iv] - 1; ifb >= 1; --ifb) { -#line 1217 "" +#line 1225 "" if (*tnew < t1fb[*iv + ifb * 24] - comtol_1.tol) { -#line 1218 "" +#line 1226 "" t1fb[*iv + (ifb + 1) * 24] = t1fb[*iv + ifb * 24]; -#line 1219 "" +#line 1227 "" t2fb[*iv + (ifb + 1) * 24] = t2fb[*iv + ifb * 24]; -#line 1220 "" +#line 1228 "" *(unsigned char *)&ulfbq[*iv + (ifb + 1) * 24] = *(unsigned char * )&ulfbq[*iv + ifb * 24]; -#line 1221 "" +#line 1229 "" } else { -#line 1222 "" +#line 1230 "" *ifbadd = ifb + 1; -#line 1223 "" +#line 1231 "" goto L2; -#line 1224 "" +#line 1232 "" } -#line 1225 "" +#line 1233 "" /* L1: */ -#line 1225 "" +#line 1233 "" } -#line 1226 "" +#line 1234 "" L2: -#line 1227 "" +#line 1235 "" t1fb[*iv + *ifbadd * 24] = *tnew; -#line 1228 "" +#line 1236 "" *(unsigned char *)&ulfbq[*iv + *ifbadd * 24] = 'x'; -#line 1229 "" +#line 1237 "" return 0; } /* addfb_ */ @@ -3197,179 +3211,179 @@ L2: /* Cancel out barline accidentals if there's a rest. */ -#line 1269 "" +#line 1277 "" if (*rest) { -#line 1269 "" +#line 1277 "" comslm_1.naccbl[(300 + (0 + (*icm - 0 << 2)) - 300) / 4] = 0; -#line 1269 "" +#line 1277 "" } /* Special path to insert dummy rest at end of a section */ -#line 1273 "" +#line 1281 "" if (*endrest) { -#line 1273 "" +#line 1281 "" goto L20; -#line 1273 "" +#line 1281 "" } -#line 1275 "" +#line 1283 "" i__1 = commidi_1.nmidcrd; -#line 1275 "" +#line 1283 "" for (ion = 0; ion <= i__1; ++ion) { /* check if this is only to get pitch of a chord note */ -#line 1279 "" +#line 1287 "" if (commidi_1.notmain) { -#line 1279 "" +#line 1287 "" goto L6; -#line 1279 "" +#line 1287 "" } /* check for rest */ -#line 1283 "" +#line 1291 "" if (*rest) { /* Will not put in a note, but must update timing */ -#line 1287 "" +#line 1295 "" if (! commidi_1.restpend[*icm]) { /* First rest in sequence, save the time */ -#line 1291 "" +#line 1299 "" commidi_1.restpend[*icm] = TRUE_; -#line 1292 "" +#line 1300 "" commidi_1.trest[*icm] = *time; -#line 1293 "" +#line 1301 "" } else { -#line 1294 "" +#line 1302 "" commidi_1.trest[*icm] += *time; -#line 1295 "" +#line 1303 "" } /* Note: code checkers don't like the above due to calling addmidi(trest(icm)) */ /* but this only happens if rest at end of section (endrest=.true.) (called */ /* from getmidi(), in which case these above lines are bypassed. */ -#line 1301 "" +#line 1309 "" chkimidi_(icm); -#line 1302 "" +#line 1310 "" return 0; -#line 1303 "" +#line 1311 "" } /* time tics */ -#line 1307 "" +#line 1315 "" if (commidi_1.imidi[*icm] > 0 && ion == 0) { -#line 1308 "" +#line 1316 "" idur = commidi_1.mgap; -#line 1309 "" +#line 1317 "" } else { -#line 1310 "" +#line 1318 "" idur = 0; -#line 1311 "" +#line 1319 "" } -#line 1312 "" +#line 1320 "" if (commidi_1.restpend[*icm]) { -#line 1313 "" +#line 1321 "" commidi_1.restpend[*icm] = FALSE_; -#line 1314 "" +#line 1322 "" r__1 = commidi_1.trest[*icm] * 15; -#line 1314 "" +#line 1322 "" idur += i_nint(&r__1); -#line 1315 "" +#line 1323 "" } /* time to start of note */ -#line 1319 "" +#line 1327 "" idurvar = isetvarlen_(&idur, &nby2on); -#line 1320 "" +#line 1328 "" if (nby2on > 4) { -#line 1321 "" +#line 1329 "" s_wsle(&io___87); -#line 1321 "" +#line 1329 "" do_lio(&c__9, &c__1, "You got >4 bytes, something is bogus.", ( ftnlen)37); -#line 1321 "" +#line 1329 "" e_wsle(); -#line 1322 "" +#line 1330 "" stop1_(); -#line 1323 "" +#line 1331 "" } -#line 1324 "" +#line 1332 "" ++commidi_1.imidi[*icm]; -#line 1325 "" +#line 1333 "" i__2 = nby2on; -#line 1325 "" +#line 1333 "" for (i__ = 1; i__ <= i__2; ++i__) { /* imidi points to cell before highest (leftmost) byte. Start with lowest byte */ /* at far right, fill in backwards */ -#line 1330 "" +#line 1338 "" commidi_1.mmidi[*icm + (commidi_1.imidi[*icm] + nby2on - i__) * 25 - 25] = (shortint) (idurvar % 256); -#line 1331 "" +#line 1339 "" if (nby2on > 1) { -#line 1331 "" +#line 1339 "" idurvar /= 256; -#line 1331 "" +#line 1339 "" } -#line 1332 "" +#line 1340 "" /* L2: */ -#line 1332 "" +#line 1340 "" } -#line 1333 "" +#line 1341 "" commidi_1.imidi[*icm] = commidi_1.imidi[*icm] + nby2on - 1; /* Note-on signal */ -#line 1337 "" +#line 1345 "" ++commidi_1.imidi[*icm]; /* mmidi(icm,imidi(icm)) = 9*16+icm */ -#line 1339 "" +#line 1347 "" commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (shortint) ( icmm[*icm] + 144); /* Entry point for chord note pitch determination */ -#line 1343 "" +#line 1351 "" L6: /* Get midi pitch. On chord iteration, only do this first time (main note), */ /* since pitch was already computed for nonmain chord notes. */ -#line 1348 "" +#line 1356 "" if (ion == 0) { -#line 1349 "" +#line 1357 "" ipsav = *nolev * 12.f / 7 + 11; -#line 1350 "" +#line 1358 "" ipsav0 = ipsav; -#line 1351 "" +#line 1359 "" if (*midisig != 0) { /* Adjust for signature */ -#line 1355 "" +#line 1363 "" *(unsigned char *)notenumq = (char) (*nolev % 7 + 48); -#line 1356 "" +#line 1364 "" if (*midisig >= i_indx("4152630", notenumq, (ftnlen)7, ( ftnlen)1)) { -#line 1357 "" +#line 1365 "" ++ipsav; -#line 1358 "" +#line 1366 "" } else if (-(*midisig) >= i_indx("0362514", notenumq, (ftnlen) 7, (ftnlen)1)) { -#line 1359 "" +#line 1367 "" --ipsav; -#line 1360 "" +#line 1368 "" } -#line 1361 "" +#line 1369 "" } /* Deal with accidentals. */ @@ -3378,445 +3392,445 @@ L6: /* effect X fl sh na X dfl dsh X */ /* iashft X -1 1 0 X -2 2 X */ -#line 1369 "" +#line 1377 "" jacc = 0; -#line 1370 "" +#line 1378 "" eximacc = FALSE_; -#line 1371 "" +#line 1379 "" if (*iacc > 0) { /* Adjust key-sig-adjusted pitch for explicit accidental (and exit) */ -#line 1375 "" +#line 1383 "" jacc = iashft_(iacc); -#line 1376 "" +#line 1384 "" eximacc = TRUE_; -#line 1377 "" +#line 1385 "" if (! commidi_1.relacc) { -#line 1377 "" +#line 1385 "" jacc = jacc + ipsav0 - ipsav; -#line 1377 "" +#line 1385 "" } /* (Above) Shift applies to diatonic pitch but will be added to adjusted one */ -#line 1381 "" +#line 1389 "" } else if (commidi_1.naccim[*icm] > 0) { /* Possible implicit accidental from earlier in the bar */ /* Check for prior accid in this bar at this note level */ -#line 1386 "" +#line 1394 "" i__2 = commidi_1.naccim[*icm]; -#line 1386 "" +#line 1394 "" for (kacc = 1; kacc <= i__2; ++kacc) { -#line 1387 "" +#line 1395 "" if (commidi_1.laccim[*icm + kacc * 25 - 25] == *nolev) { -#line 1388 "" +#line 1396 "" jacc = commidi_1.jaccim[*icm + kacc * 25 - 25]; -#line 1389 "" +#line 1397 "" eximacc = TRUE_; -#line 1390 "" +#line 1398 "" if (! commidi_1.relacc) { -#line 1390 "" +#line 1398 "" jacc = jacc + ipsav0 - ipsav; -#line 1390 "" +#line 1398 "" } -#line 1391 "" +#line 1399 "" goto L4; -#line 1392 "" +#line 1400 "" } -#line 1393 "" +#line 1401 "" /* L3: */ -#line 1393 "" +#line 1401 "" } -#line 1394 "" +#line 1402 "" L4: -#line 1395 "" +#line 1403 "" ; -#line 1395 "" +#line 1403 "" } /* Must split off the following if block from those above because chord */ /* notes can cause naccim>0, forcing us to miss other chord note's */ /* accross-bar-line accidental */ -#line 1401 "" +#line 1409 "" if (comslm_1.naccbl[*icm] > 0 && ! eximacc) { /* Possible carryover accid from prior bar (or prior same-pitch note). */ -#line 1405 "" +#line 1413 "" i__2 = comslm_1.naccbl[*icm]; -#line 1405 "" +#line 1413 "" for (kacc = 1; kacc <= i__2; ++kacc) { -#line 1406 "" +#line 1414 "" if (comslm_1.laccbl[*icm + kacc * 25 - 25] == *nolev) { -#line 1407 "" +#line 1415 "" jacc = comslm_1.jaccbl[*icm + kacc * 25 - 25]; /* Since we are *using* the bar-line accid, must flag it to be saved for next. */ -#line 1411 "" +#line 1419 "" ++comslm_1.nusebl; -#line 1412 "" +#line 1420 "" comips_1.jusebl[comslm_1.nusebl - 1] = (shortint) jacc; -#line 1413 "" +#line 1421 "" comips_1.lusebl[comslm_1.nusebl - 1] = (shortint) (* nolev); -#line 1414 "" +#line 1422 "" if (! commidi_1.relacc) { -#line 1414 "" +#line 1422 "" jacc = jacc + ipsav0 - ipsav; -#line 1414 "" +#line 1422 "" } -#line 1415 "" +#line 1423 "" goto L22; -#line 1416 "" +#line 1424 "" } -#line 1417 "" +#line 1425 "" /* L21: */ -#line 1417 "" +#line 1425 "" } -#line 1418 "" +#line 1426 "" L22: -#line 1419 "" +#line 1427 "" ; -#line 1419 "" +#line 1427 "" } -#line 1420 "" +#line 1428 "" ipsav += jacc; -#line 1421 "" +#line 1429 "" } -#line 1422 "" +#line 1430 "" if (commidi_1.notmain) { -#line 1423 "" +#line 1431 "" commidi_1.mcpitch[commidi_1.nmidcrd - 1] = ipsav; /* Save pitch for tie checks */ -#line 1427 "" +#line 1435 "" if (comslm_1.levson[*icm] == *nolev && ! comslm_1.slmon[*icm]) { -#line 1427 "" +#line 1435 "" comips_1.ipslon[*icm] = (shortint) ipsav; -#line 1427 "" +#line 1435 "" } -#line 1429 "" +#line 1437 "" } else { -#line 1430 "" +#line 1438 "" ++commidi_1.imidi[*icm]; -#line 1431 "" +#line 1439 "" if (ion == 0) { -#line 1432 "" +#line 1440 "" commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = ( shortint) ipsav; -#line 1433 "" +#line 1441 "" if (comslm_1.levson[*icm] == *nolev && ! comslm_1.slmon[*icm]) { -#line 1433 "" +#line 1441 "" comips_1.ipslon[*icm] = (shortint) ipsav; -#line 1433 "" +#line 1441 "" } -#line 1435 "" +#line 1443 "" } else { -#line 1436 "" +#line 1444 "" commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = ( shortint) commidi_1.mcpitch[ion - 1]; -#line 1437 "" +#line 1445 "" } -#line 1438 "" +#line 1446 "" } -#line 1439 "" +#line 1447 "" if (ion == 0) { /* Only record accids for non-chords, main chord note during chord iteration */ /* and chordnotes on first call but not during iteration */ -#line 1444 "" +#line 1452 "" if (*iacc > 0) { /* Set marker for accidental for possible continuations later this bar */ /* but first check and clear earlier ones on same note. */ -#line 1449 "" +#line 1457 "" i__2 = commidi_1.naccim[*icm]; -#line 1449 "" +#line 1457 "" for (kacc = 1; kacc <= i__2; ++kacc) { -#line 1450 "" +#line 1458 "" if (commidi_1.laccim[*icm + kacc * 25 - 25] == *nolev) { -#line 1451 "" +#line 1459 "" i__3 = commidi_1.naccim[*icm] - 1; -#line 1451 "" +#line 1459 "" for (macc = kacc; macc <= i__3; ++macc) { -#line 1452 "" +#line 1460 "" commidi_1.laccim[*icm + macc * 25 - 25] = commidi_1.laccim[*icm + (macc + 1) * 25 - 25]; -#line 1453 "" +#line 1461 "" commidi_1.jaccim[*icm + macc * 25 - 25] = commidi_1.jaccim[*icm + (macc + 1) * 25 - 25]; -#line 1454 "" +#line 1462 "" /* L24: */ -#line 1454 "" +#line 1462 "" } -#line 1455 "" +#line 1463 "" goto L25; -#line 1456 "" +#line 1464 "" } -#line 1457 "" +#line 1465 "" /* L23: */ -#line 1457 "" +#line 1465 "" } -#line 1458 "" +#line 1466 "" goto L26; -#line 1459 "" +#line 1467 "" L25: -#line 1460 "" +#line 1468 "" --commidi_1.naccim[*icm]; -#line 1461 "" +#line 1469 "" L26: /* Flag new accidental */ -#line 1465 "" +#line 1473 "" ++commidi_1.naccim[*icm]; -#line 1466 "" +#line 1474 "" commidi_1.laccim[*icm + commidi_1.naccim[*icm] * 25 - 25] = * nolev; -#line 1467 "" +#line 1475 "" commidi_1.jaccim[*icm + commidi_1.naccim[*icm] * 25 - 25] = iashft_(iacc); -#line 1468 "" +#line 1476 "" } /* Bail if this is a chord note on the first call (from docrd) */ -#line 1472 "" +#line 1480 "" if (commidi_1.notmain) { -#line 1473 "" +#line 1481 "" chkimidi_(icm); -#line 1474 "" +#line 1482 "" return 0; -#line 1475 "" +#line 1483 "" } -#line 1476 "" +#line 1484 "" } /* Vel */ -#line 1480 "" +#line 1488 "" ++commidi_1.imidi[*icm]; /* mmidi(icm,imidi(icm)) = 127 */ -#line 1482 "" +#line 1490 "" commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (shortint) commvel_1.midvelc[*icm]; -#line 1483 "" +#line 1491 "" chkimidi_(icm); -#line 1484 "" +#line 1492 "" /* L7: */ -#line 1484 "" +#line 1492 "" } /* For tie checks */ -#line 1488 "" +#line 1496 "" if (comslm_1.levson[*icm] > 0 && ! comslm_1.slmon[*icm]) { -#line 1488 "" +#line 1496 "" comslm_1.imidso[*icm] = commidi_1.imidi[*icm]; -#line 1488 "" +#line 1496 "" } /* Entry point for special rests at section ends (endrest=T) */ -#line 1492 "" +#line 1500 "" L20: /* Now insert all the ends */ -#line 1496 "" +#line 1504 "" i__1 = commidi_1.nmidcrd; -#line 1496 "" +#line 1504 "" for (ioff = 0; ioff <= i__1; ++ioff) { -#line 1497 "" +#line 1505 "" if (ioff == 0) { /* time to end */ -#line 1501 "" +#line 1509 "" r__1 = *time * 15; -#line 1501 "" +#line 1509 "" idur1 = i_nint(&r__1); -#line 1502 "" +#line 1510 "" r__1 = commidi_1.trest[*icm] * 15; -#line 1502 "" +#line 1510 "" if (! (*endrest) || comevent_1.miditime == i_nint(&r__1)) { -#line 1503 "" +#line 1511 "" idur = idur1 - commidi_1.mgap; -#line 1504 "" +#line 1512 "" } else { -#line 1505 "" +#line 1513 "" idur = idur1; -#line 1506 "" +#line 1514 "" } /* Deal with roundoff problems with 7-tuplets on half or quarters */ -#line 1510 "" +#line 1518 "" if (idur1 == 69) { -#line 1511 "" +#line 1519 "" ++comdiag_1.n69[*icm]; /* if (mod(n69(icm)+6,7) .gt. 3) idur = 58 */ -#line 1513 "" +#line 1521 "" if ((comdiag_1.n69[*icm] + 6) % 7 > 3) { -#line 1513 "" +#line 1521 "" idur = idur1 - commidi_1.mgap - 1; -#line 1513 "" +#line 1521 "" } -#line 1514 "" +#line 1522 "" } else if (idur1 == 34) { -#line 1515 "" +#line 1523 "" ++comdiag_1.n34[*icm]; -#line 1516 "" +#line 1524 "" if ((comdiag_1.n34[*icm] + 6) % 7 > 4) { -#line 1516 "" +#line 1524 "" idur = idur1 - commidi_1.mgap + 1; -#line 1516 "" +#line 1524 "" } -#line 1517 "" +#line 1525 "" } -#line 1518 "" +#line 1526 "" idurvar = isetvarlen_(&idur, &nby2off); -#line 1519 "" +#line 1527 "" if (nby2off > 4) { -#line 1520 "" +#line 1528 "" s_wsle(&io___99); -#line 1520 "" +#line 1528 "" do_lio(&c__9, &c__1, "You got >4 bytes, something is bogus.", (ftnlen)37); -#line 1520 "" +#line 1528 "" e_wsle(); -#line 1521 "" +#line 1529 "" stop1_(); -#line 1522 "" +#line 1530 "" } -#line 1523 "" +#line 1531 "" ++commidi_1.imidi[*icm]; -#line 1524 "" +#line 1532 "" chkimidi_(icm); -#line 1525 "" +#line 1533 "" i__2 = nby2off; -#line 1525 "" +#line 1533 "" for (i__ = 1; i__ <= i__2; ++i__) { -#line 1526 "" +#line 1534 "" commidi_1.mmidi[*icm + (commidi_1.imidi[*icm] + nby2off - i__) * 25 - 25] = (shortint) (idurvar % 256); -#line 1527 "" +#line 1535 "" if (nby2off > 1) { -#line 1527 "" +#line 1535 "" idurvar /= 256; -#line 1527 "" +#line 1535 "" } -#line 1528 "" +#line 1536 "" /* L1: */ -#line 1528 "" +#line 1536 "" } -#line 1529 "" +#line 1537 "" commidi_1.imidi[*icm] = commidi_1.imidi[*icm] + nby2off - 1; -#line 1530 "" +#line 1538 "" } else { /* Inserting end of chord note, delta time is 0 */ -#line 1534 "" +#line 1542 "" ++commidi_1.imidi[*icm]; -#line 1535 "" +#line 1543 "" commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = 0; -#line 1536 "" +#line 1544 "" } /* Note off */ -#line 1540 "" +#line 1548 "" ++commidi_1.imidi[*icm]; /* mmidi(icm,imidi(icm)) = 8*16+icm */ -#line 1542 "" +#line 1550 "" commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (shortint) ( icmm[*icm] + 128); /* Pitch */ -#line 1546 "" +#line 1554 "" ++commidi_1.imidi[*icm]; -#line 1547 "" +#line 1555 "" if (ioff == 0) { -#line 1548 "" +#line 1556 "" commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = ( shortint) ipsav; -#line 1549 "" +#line 1557 "" } else { -#line 1550 "" +#line 1558 "" commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = ( shortint) commidi_1.mcpitch[ioff - 1]; -#line 1551 "" +#line 1559 "" } /* Vel */ -#line 1555 "" +#line 1563 "" ++commidi_1.imidi[*icm]; -#line 1556 "" +#line 1564 "" commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = 0; -#line 1557 "" +#line 1565 "" chkimidi_(icm); -#line 1558 "" +#line 1566 "" if (*endrest) { -#line 1559 "" +#line 1567 "" return 0; -#line 1560 "" +#line 1568 "" } /* print*,'Off, icm,imidi,ipsav,idur:',icm,imidi(icm),ipsav,time */ -#line 1564 "" +#line 1572 "" /* L8: */ -#line 1564 "" +#line 1572 "" } -#line 1565 "" +#line 1573 "" comslm_1.naccbl[*icm] = comslm_1.nusebl; -#line 1566 "" +#line 1574 "" if (comslm_1.nusebl > 0) { /* Fix tables of "bar-line" accids that are saved due to consecutive notes. */ -#line 1570 "" +#line 1578 "" i__1 = comslm_1.nusebl; -#line 1570 "" +#line 1578 "" for (kacc = 1; kacc <= i__1; ++kacc) { -#line 1571 "" +#line 1579 "" comslm_1.laccbl[*icm + kacc * 25 - 25] = comips_1.lusebl[kacc - 1] ; -#line 1572 "" +#line 1580 "" comslm_1.jaccbl[*icm + kacc * 25 - 25] = comips_1.jusebl[kacc - 1] ; -#line 1573 "" +#line 1581 "" /* L30: */ -#line 1573 "" +#line 1581 "" } -#line 1574 "" +#line 1582 "" comslm_1.nusebl = 0; -#line 1575 "" +#line 1583 "" } /* Begin tie checks */ -#line 1579 "" +#line 1587 "" if (comslm_1.slmon[*icm]) { /* Prior note had a slur start */ -#line 1583 "" +#line 1591 "" if (comslm_1.levson[*icm] == comslm_1.levsoff[*icm] && *iacc == 0) { /* We have a tie! (Assumed there would be no accidental on tie-ending note) */ @@ -3825,198 +3839,198 @@ L20: /* comparing pitches. Save the 4 pieces of data in itiesav(1...4,nsav4tie) */ /* Store actual time in itiesav(5,nsav4tie), using itiesav(1,1) as initial */ /* time. */ -#line 1591 "" +#line 1599 "" nsav4tie = 0; -#line 1592 "" +#line 1600 "" imidt = comslm_1.imidso[*icm]; -#line 1593 "" +#line 1601 "" L10: -#line 1593 "" +#line 1601 "" ++nsav4tie; -#line 1594 "" +#line 1602 "" itiesav[nsav4tie * 5 - 5] = igetvarlen_(commidi_1.mmidi, icm, & imidt, &nbytes); -#line 1595 "" +#line 1603 "" imidt += nbytes; -#line 1596 "" +#line 1604 "" for (j = 1; j <= 3; ++j) { -#line 1597 "" +#line 1605 "" itiesav[j + 1 + nsav4tie * 5 - 6] = commidi_1.mmidi[*icm + ( imidt + j) * 25 - 25]; -#line 1598 "" +#line 1606 "" /* L11: */ -#line 1598 "" +#line 1606 "" } -#line 1599 "" +#line 1607 "" imidt += 3; -#line 1600 "" +#line 1608 "" if (nsav4tie == 1) { -#line 1601 "" +#line 1609 "" itiesav[4] = itiesav[0]; -#line 1602 "" +#line 1610 "" } else { -#line 1603 "" +#line 1611 "" itiesav[nsav4tie * 5 - 1] = itiesav[nsav4tie * 5 - 5] + itiesav[(nsav4tie - 1) * 5 - 1]; -#line 1605 "" +#line 1613 "" } -#line 1606 "" +#line 1614 "" if (imidt != commidi_1.imidi[*icm]) { -#line 1606 "" +#line 1614 "" goto L10; -#line 1606 "" +#line 1614 "" } /* Find which two pitches agree with saved slur pitch. */ -#line 1610 "" +#line 1618 "" it1found = FALSE_; -#line 1611 "" +#line 1619 "" i__1 = nsav4tie; -#line 1611 "" +#line 1619 "" for (it2 = 1; it2 <= i__1; ++it2) { -#line 1612 "" +#line 1620 "" if (itiesav[it2 * 5 - 3] == comips_1.ipslon[*icm]) { -#line 1613 "" +#line 1621 "" if (it1found) { -#line 1613 "" +#line 1621 "" goto L13; -#line 1613 "" +#line 1621 "" } -#line 1614 "" +#line 1622 "" it1 = it2; -#line 1615 "" +#line 1623 "" it1found = TRUE_; -#line 1616 "" +#line 1624 "" } -#line 1617 "" +#line 1625 "" /* L12: */ -#line 1617 "" +#line 1625 "" } -#line 1618 "" +#line 1626 "" printl_("Program error, tied notes, send source to Dr. Don", ( ftnlen)49); -#line 1620 "" +#line 1628 "" it1 = nsav4tie + 1; -#line 1621 "" +#line 1629 "" it2 = nsav4tie + 1; -#line 1622 "" +#line 1630 "" L13: /* List the positions we want to keep */ -#line 1626 "" +#line 1634 "" jsav = 0; -#line 1627 "" +#line 1635 "" i__1 = nsav4tie; -#line 1627 "" +#line 1635 "" for (isav = 1; isav <= i__1; ++isav) { -#line 1628 "" +#line 1636 "" if (isav == it1 || isav == it2) { -#line 1628 "" +#line 1636 "" goto L14; -#line 1628 "" +#line 1636 "" } -#line 1629 "" +#line 1637 "" ++jsav; -#line 1630 "" +#line 1638 "" itk[jsav - 1] = (shortint) isav; -#line 1631 "" +#line 1639 "" L14: -#line 1631 "" +#line 1639 "" ; -#line 1631 "" +#line 1639 "" } -#line 1632 "" +#line 1640 "" nsav4tie += -2; /* Now dump events it1 & it2, recompute times, restack mmidi. */ -#line 1636 "" +#line 1644 "" commidi_1.imidi[*icm] = comslm_1.imidso[*icm]; -#line 1637 "" +#line 1645 "" i__1 = nsav4tie; -#line 1637 "" +#line 1645 "" for (isav = 1; isav <= i__1; ++isav) { -#line 1638 "" +#line 1646 "" if (isav == 1) { -#line 1639 "" +#line 1647 "" idurvar = isetvarlen_(&itiesav[itk[isav - 1] * 5 - 1], & nbytes); -#line 1640 "" +#line 1648 "" } else { -#line 1641 "" +#line 1649 "" i__2 = itiesav[itk[isav - 1] * 5 - 1] - itiesav[itk[isav - 2] * 5 - 1]; -#line 1641 "" +#line 1649 "" idurvar = isetvarlen_(&i__2, &nbytes); -#line 1643 "" +#line 1651 "" } -#line 1644 "" +#line 1652 "" ++commidi_1.imidi[*icm]; -#line 1645 "" +#line 1653 "" i__2 = nbytes; -#line 1645 "" +#line 1653 "" for (i__ = 1; i__ <= i__2; ++i__) { -#line 1646 "" +#line 1654 "" commidi_1.mmidi[*icm + (commidi_1.imidi[*icm] + nbytes - i__) * 25 - 25] = (shortint) (idurvar % 256); -#line 1647 "" +#line 1655 "" if (nbytes > 1) { -#line 1647 "" +#line 1655 "" idurvar /= 256; -#line 1647 "" +#line 1655 "" } -#line 1648 "" +#line 1656 "" /* L16: */ -#line 1648 "" +#line 1656 "" } -#line 1649 "" +#line 1657 "" commidi_1.imidi[*icm] = commidi_1.imidi[*icm] + nbytes - 1; -#line 1650 "" +#line 1658 "" for (i__ = 2; i__ <= 4; ++i__) { -#line 1651 "" +#line 1659 "" ++commidi_1.imidi[*icm]; -#line 1652 "" +#line 1660 "" commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (shortint) itiesav[i__ + itk[isav - 1] * 5 - 6]; -#line 1653 "" +#line 1661 "" /* L17: */ -#line 1653 "" +#line 1661 "" } -#line 1654 "" +#line 1662 "" /* L15: */ -#line 1654 "" +#line 1662 "" } -#line 1655 "" +#line 1663 "" } -#line 1656 "" +#line 1664 "" comslm_1.slmon[*icm] = FALSE_; -#line 1657 "" +#line 1665 "" comslm_1.levsoff[*icm] = 0; -#line 1658 "" +#line 1666 "" if (! comslm_1.dbltie) { -#line 1658 "" +#line 1666 "" comslm_1.levson[*icm] = 0; -#line 1658 "" +#line 1666 "" } -#line 1659 "" +#line 1667 "" } -#line 1660 "" +#line 1668 "" if (comslm_1.levson[*icm] > 0) { -#line 1660 "" +#line 1668 "" comslm_1.slmon[*icm] = TRUE_; -#line 1660 "" +#line 1668 "" } -#line 1661 "" +#line 1669 "" if (commidi_1.nmidcrd > 0) { -#line 1661 "" +#line 1669 "" commidi_1.nmidcrd = 0; -#line 1661 "" +#line 1669 "" } -#line 1662 "" +#line 1670 "" chkimidi_(icm); -#line 1663 "" +#line 1671 "" return 0; } /* addmidi_ */ @@ -4038,47 +4052,47 @@ L14: static cilist io___111 = { 0, 11, 0, "(a)", 0 }; -#line 1670 "" +#line 1678 "" if (*lsout + *lnote > 72) { -#line 1671 "" +#line 1679 "" if (comlast_1.islast) { -#line 1671 "" +#line 1679 "" s_wsfe(&io___111); /* Writing concatenation */ -#line 1671 "" +#line 1679 "" i__1[0] = *lsout, a__1[0] = soutq; -#line 1671 "" +#line 1679 "" i__1[1] = 1, a__1[1] = "%"; -#line 1671 "" +#line 1679 "" s_cat(ch__1, a__1, i__1, &c__2, (ftnlen)81); -#line 1671 "" +#line 1679 "" do_fio(&c__1, ch__1, *lsout + 1); -#line 1671 "" +#line 1679 "" e_wsfe(); -#line 1671 "" +#line 1679 "" } -#line 1672 "" +#line 1680 "" *lsout = 0; -#line 1673 "" +#line 1681 "" } -#line 1674 "" +#line 1682 "" if (*lsout > 0) { /* Writing concatenation */ -#line 1675 "" +#line 1683 "" i__1[0] = *lsout, a__1[0] = soutq; -#line 1675 "" +#line 1683 "" i__1[1] = *lnote, a__1[1] = notexq; -#line 1675 "" +#line 1683 "" s_cat(soutq, a__1, i__1, &c__2, (ftnlen)80); -#line 1676 "" +#line 1684 "" } else { -#line 1677 "" +#line 1685 "" s_copy(soutq, notexq, (ftnlen)80, (*lnote)); -#line 1678 "" +#line 1686 "" } -#line 1679 "" +#line 1687 "" *lsout += *lnote; -#line 1680 "" +#line 1688 "" return 0; } /* addstr_ */ @@ -4096,63 +4110,63 @@ L14: /* For block ib, this adds accidental spaces to eskz, for use in getting */ /* length of xtup bracket and slopes of brackets and beams. */ -#line 1706 "" +#line 1714 "" /* Parameter adjustments */ -#line 1706 "" +#line 1714 "" --istart; -#line 1706 "" +#line 1714 "" -#line 1706 "" +#line 1714 "" /* Function Body */ -#line 1706 "" +#line 1714 "" inmin = istart[*ib] + 1; -#line 1707 "" +#line 1715 "" i__1 = comas1_1.naskb; -#line 1707 "" +#line 1715 "" for (iaskb = 1; iaskb <= i__1; ++iaskb) { -#line 1708 "" +#line 1716 "" if (comas1_1.task[iaskb - 1] < all_1.to[istart[*ib] - 1] - comtol_1.tol) { -#line 1708 "" +#line 1716 "" goto L10; -#line 1708 "" +#line 1716 "" } -#line 1709 "" +#line 1717 "" eskadd = comas1_1.wask[iaskb - 1] / *poenom - comas1_1.elask[iaskb - 1]; -#line 1710 "" +#line 1718 "" i__2 = comntot_1.ntot; -#line 1710 "" +#line 1718 "" for (in = inmin; in <= i__2; ++in) { -#line 1711 "" +#line 1719 "" if (all_1.to[in - 1] > comas1_1.task[iaskb - 1] - comtol_1.tol) { -#line 1712 "" +#line 1720 "" comeskz2_1.eskz2[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25] += eskadd; -#line 1713 "" +#line 1721 "" if ((r__1 = all_1.to[in - 1] - comas1_1.task[iaskb - 1], dabs( r__1)) < comtol_1.tol) { -#line 1713 "" +#line 1721 "" --inmin; -#line 1713 "" +#line 1721 "" } -#line 1714 "" +#line 1722 "" } else { -#line 1715 "" +#line 1723 "" ++inmin; -#line 1716 "" +#line 1724 "" } -#line 1717 "" +#line 1725 "" /* L11: */ -#line 1717 "" +#line 1725 "" } -#line 1718 "" +#line 1726 "" L10: -#line 1718 "" +#line 1726 "" ; -#line 1718 "" +#line 1726 "" } -#line 1719 "" +#line 1727 "" return 0; } /* adjusteskz_ */ @@ -4198,333 +4212,333 @@ L10: static cilist io___129 = { 0, 12, 0, "(a)", 0 }; -#line 1731 "" +#line 1739 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 1731 "" +#line 1739 "" *(unsigned char *)sq = *(unsigned char *)&ch__1[0]; -#line 1732 "" +#line 1740 "" o__1.oerr = 0; -#line 1732 "" +#line 1740 "" o__1.ounit = 12; -#line 1732 "" +#line 1740 "" o__1.ofnmlen = *lpath + *lbase + 4; /* Writing concatenation */ -#line 1732 "" +#line 1740 "" i__1[0] = *lpath, a__1[0] = pathnameq; -#line 1732 "" +#line 1740 "" i__1[1] = *lbase, a__1[1] = basenameq; -#line 1732 "" +#line 1740 "" i__1[2] = 4, a__1[2] = ".tex"; -#line 1732 "" +#line 1740 "" s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)88); -#line 1732 "" +#line 1740 "" o__1.ofnm = ch__2; -#line 1732 "" +#line 1740 "" o__1.orl = 0; -#line 1732 "" +#line 1740 "" o__1.osta = 0; -#line 1732 "" +#line 1740 "" o__1.oacc = 0; -#line 1732 "" +#line 1740 "" o__1.ofm = 0; -#line 1732 "" +#line 1740 "" o__1.oblnk = 0; -#line 1732 "" +#line 1740 "" f_open(&o__1); /* Transfer first 5 lines of main internal TeX file */ -#line 1736 "" +#line 1744 "" for (il = 1; il <= 5; ++il) { -#line 1737 "" +#line 1745 "" moveln_(&c__11, &c__12, &done); -#line 1738 "" +#line 1746 "" /* L11: */ -#line 1738 "" +#line 1746 "" } -#line 1739 "" +#line 1747 "" if (*istype0) { /* Transfer literal TeX stuff from special scratch file */ -#line 1743 "" +#line 1751 "" al__1.aerr = 0; -#line 1743 "" +#line 1751 "" al__1.aunit = 17; -#line 1743 "" +#line 1751 "" f_rew(&al__1); -#line 1744 "" +#line 1752 "" L10: -#line 1744 "" +#line 1752 "" moveln_(&c__17, &c__12, &done); -#line 1745 "" +#line 1753 "" if (! done) { -#line 1745 "" +#line 1753 "" goto L10; -#line 1745 "" +#line 1753 "" } -#line 1746 "" +#line 1754 "" cl__1.cerr = 0; -#line 1746 "" +#line 1754 "" cl__1.cunit = 17; -#line 1746 "" +#line 1754 "" cl__1.csta = 0; -#line 1746 "" +#line 1754 "" f_clos(&cl__1); -#line 1747 "" +#line 1755 "" } /* Transfer next 2 lines from main scratch file */ -#line 1751 "" +#line 1759 "" for (il = 1; il <= 2; ++il) { -#line 1752 "" +#line 1760 "" moveln_(&c__11, &c__12, &done); -#line 1753 "" +#line 1761 "" /* L3: */ -#line 1753 "" +#line 1761 "" } -#line 1754 "" +#line 1762 "" if (compoi_1.ispoi) { -#line 1754 "" +#line 1762 "" s_wsfe(&io___119); /* Writing concatenation */ -#line 1754 "" +#line 1762 "" i__2[0] = 1, a__2[0] = sq; -#line 1754 "" +#line 1762 "" i__2[1] = 14, a__2[1] = "input musixpoi"; -#line 1754 "" +#line 1762 "" s_cat(ch__3, a__2, i__2, &c__2, (ftnlen)15); -#line 1754 "" +#line 1762 "" do_fio(&c__1, ch__3, (ftnlen)15); -#line 1754 "" +#line 1762 "" e_wsfe(); -#line 1754 "" +#line 1762 "" } -#line 1755 "" +#line 1763 "" if (combbm_1.isbbm) { -#line 1755 "" +#line 1763 "" s_wsfe(&io___120); /* Writing concatenation */ -#line 1755 "" +#line 1763 "" i__2[0] = 1, a__2[0] = sq; -#line 1755 "" +#line 1763 "" i__2[1] = 14, a__2[1] = "input musixbbm"; -#line 1755 "" +#line 1763 "" s_cat(ch__3, a__2, i__2, &c__2, (ftnlen)15); -#line 1755 "" +#line 1763 "" do_fio(&c__1, ch__3, (ftnlen)15); -#line 1755 "" +#line 1763 "" e_wsfe(); -#line 1755 "" +#line 1763 "" } -#line 1756 "" +#line 1764 "" if (*figbass) { /* Transfer .fig data from scratch (unit 14) into external .tex (unit 12) */ -#line 1760 "" +#line 1768 "" L4: -#line 1760 "" +#line 1768 "" moveln_(&c__14, &c__12, &done); -#line 1761 "" +#line 1769 "" if (! done) { -#line 1761 "" +#line 1769 "" goto L4; -#line 1761 "" +#line 1769 "" } -#line 1762 "" +#line 1770 "" cl__1.cerr = 0; -#line 1762 "" +#line 1770 "" cl__1.cunit = 14; -#line 1762 "" +#line 1770 "" cl__1.csta = 0; -#line 1762 "" +#line 1770 "" f_clos(&cl__1); -#line 1763 "" +#line 1771 "" } -#line 1764 "" +#line 1772 "" comas3_1.iask = 0; -#line 1765 "" +#line 1773 "" ihs = 0; -#line 1766 "" +#line 1774 "" L1: -#line 1766 "" +#line 1774 "" i__3 = s_rsfe(&io___122); -#line 1766 "" +#line 1774 "" if (i__3 != 0) { -#line 1766 "" +#line 1774 "" goto L999; -#line 1766 "" +#line 1774 "" } -#line 1766 "" +#line 1774 "" i__3 = do_fio(&c__1, outq, (ftnlen)129); -#line 1766 "" +#line 1774 "" if (i__3 != 0) { -#line 1766 "" +#line 1774 "" goto L999; -#line 1766 "" +#line 1774 "" } -#line 1766 "" +#line 1774 "" i__3 = e_rsfe(); -#line 1766 "" +#line 1774 "" if (i__3 != 0) { -#line 1766 "" +#line 1774 "" goto L999; -#line 1766 "" +#line 1774 "" } /* Hardspaces. */ /* Writing concatenation */ -#line 1770 "" +#line 1778 "" i__2[0] = 1, a__2[0] = sq; -#line 1770 "" +#line 1778 "" i__2[1] = 4, a__2[1] = "xard"; -#line 1770 "" +#line 1778 "" s_cat(ch__4, a__2, i__2, &c__2, (ftnlen)5); -#line 1770 "" +#line 1778 "" if (s_cmp(outq, ch__4, (ftnlen)5, (ftnlen)5) == 0) { -#line 1771 "" +#line 1779 "" ++ihs; -#line 1772 "" +#line 1780 "" *(unsigned char *)&outq[1] = 'h'; -#line 1773 "" +#line 1781 "" s_wsfi(&io___124); -#line 1773 "" +#line 1781 "" do_fio(&c__1, (char *)&comhsp_1.hpttot[ihs - 1], (ftnlen)sizeof(real)) ; -#line 1773 "" +#line 1781 "" e_wsfi(); -#line 1774 "" +#line 1782 "" lenout = 19; -#line 1775 "" +#line 1783 "" goto L9; -#line 1776 "" +#line 1784 "" } /* This part hard-wires ask's into new .tex file as ast's */ -#line 1780 "" +#line 1788 "" L2: /* Writing concatenation */ -#line 1780 "" +#line 1788 "" i__2[0] = 1, a__2[0] = sq; -#line 1780 "" +#line 1788 "" i__2[1] = 3, a__2[1] = "ask"; -#line 1780 "" +#line 1788 "" s_cat(ch__5, a__2, i__2, &c__2, (ftnlen)4); -#line 1780 "" +#line 1788 "" indxask = i_indx(outq, ch__5, (ftnlen)129, (ftnlen)4); -#line 1781 "" +#line 1789 "" if (indxask != 0) { -#line 1782 "" +#line 1790 "" ++comas3_1.iask; -#line 1783 "" +#line 1791 "" putast_(&comas3_1.ask[comas3_1.iask - 1], &indxask, outq, (ftnlen)129) ; -#line 1784 "" +#line 1792 "" goto L2; -#line 1785 "" +#line 1793 "" } -#line 1786 "" +#line 1794 "" lenout = llen_(outq, &c__129, (ftnlen)129); -#line 1787 "" +#line 1795 "" L9: -#line 1788 "" +#line 1796 "" s_wsfe(&io___127); -#line 1788 "" +#line 1796 "" do_fio(&c__1, outq, lenout); -#line 1788 "" +#line 1796 "" e_wsfe(); /* If this is the line with "readmod", check for topmods. */ -#line 1792 "" +#line 1800 "" if (comas3_1.topmods && s_cmp(outq + 1, "readmod", (ftnlen)7, (ftnlen)7) == 0) { -#line 1793 "" +#line 1801 "" comas3_1.topmods = FALSE_; -#line 1794 "" +#line 1802 "" al__1.aerr = 0; -#line 1794 "" +#line 1802 "" al__1.aunit = 16; -#line 1794 "" +#line 1802 "" f_rew(&al__1); -#line 1795 "" +#line 1803 "" for (il = 1; il <= 1000; ++il) { -#line 1796 "" +#line 1804 "" i__3 = s_rsfe(&io___128); -#line 1796 "" +#line 1804 "" if (i__3 != 0) { -#line 1796 "" +#line 1804 "" goto L8; -#line 1796 "" +#line 1804 "" } -#line 1796 "" +#line 1804 "" i__3 = do_fio(&c__1, outq, (ftnlen)129); -#line 1796 "" +#line 1804 "" if (i__3 != 0) { -#line 1796 "" +#line 1804 "" goto L8; -#line 1796 "" +#line 1804 "" } -#line 1796 "" +#line 1804 "" i__3 = e_rsfe(); -#line 1796 "" +#line 1804 "" if (i__3 != 0) { -#line 1796 "" +#line 1804 "" goto L8; -#line 1796 "" +#line 1804 "" } -#line 1797 "" +#line 1805 "" lenout = llen_(outq, &c__129, (ftnlen)129); /* We inserted the '%' in subroutine littex, to guarantee including blank. */ -#line 1801 "" +#line 1809 "" s_wsfe(&io___129); -#line 1801 "" +#line 1809 "" do_fio(&c__1, outq, lenout); -#line 1801 "" +#line 1809 "" e_wsfe(); -#line 1802 "" +#line 1810 "" /* L7: */ -#line 1802 "" +#line 1810 "" } -#line 1803 "" +#line 1811 "" L8: -#line 1804 "" +#line 1812 "" cl__1.cerr = 0; -#line 1804 "" +#line 1812 "" cl__1.cunit = 16; -#line 1804 "" +#line 1812 "" cl__1.csta = 0; -#line 1804 "" +#line 1812 "" f_clos(&cl__1); -#line 1805 "" +#line 1813 "" } -#line 1806 "" +#line 1814 "" goto L1; -#line 1807 "" +#line 1815 "" L999: -#line 1807 "" +#line 1815 "" cl__1.cerr = 0; -#line 1807 "" +#line 1815 "" cl__1.cunit = 11; -#line 1807 "" +#line 1815 "" cl__1.csta = 0; -#line 1807 "" +#line 1815 "" f_clos(&cl__1); -#line 1808 "" +#line 1816 "" cl__1.cerr = 0; -#line 1808 "" +#line 1816 "" cl__1.cunit = 12; -#line 1808 "" +#line 1816 "" cl__1.csta = 0; -#line 1808 "" +#line 1816 "" f_clos(&cl__1); -#line 1809 "" +#line 1817 "" return 0; } /* askfig_ */ @@ -4556,80 +4570,80 @@ L999: /* In iunit, looks backward for oldq, overwrites newq */ /* Safest if both are same length! */ -#line 1818 "" +#line 1826 "" linesback = 0; -#line 1819 "" +#line 1827 "" L1: -#line 1820 "" +#line 1828 "" al__1.aerr = 0; -#line 1820 "" +#line 1828 "" al__1.aunit = *iunit; -#line 1820 "" +#line 1828 "" f_back(&al__1); -#line 1821 "" +#line 1829 "" io___131.ciunit = *iunit; -#line 1821 "" +#line 1829 "" s_rsfe(&io___131); -#line 1821 "" +#line 1829 "" do_fio(&c__1, nowq, (ftnlen)128); -#line 1821 "" +#line 1829 "" e_rsfe(); -#line 1822 "" +#line 1830 "" ndx = i_indx(nowq, oldq, (ftnlen)128, (*lenold)); /* Save the line just read */ -#line 1826 "" +#line 1834 "" ++linesback; -#line 1827 "" +#line 1835 "" s_copy(lineq + (linesback - 1 << 7), nowq, (ftnlen)128, (ftnlen)128); -#line 1828 "" +#line 1836 "" if (ndx == 0) { -#line 1829 "" +#line 1837 "" al__1.aerr = 0; -#line 1829 "" +#line 1837 "" al__1.aunit = *iunit; -#line 1829 "" +#line 1837 "" f_back(&al__1); -#line 1830 "" +#line 1838 "" goto L1; -#line 1831 "" +#line 1839 "" } /* If here, it's replacement time. */ -#line 1835 "" +#line 1843 "" i__1 = ndx + *lenold - 1; /* Writing concatenation */ -#line 1835 "" +#line 1843 "" i__2[0] = ndx - 1, a__1[0] = nowq; -#line 1835 "" +#line 1843 "" i__2[1] = *lennew, a__1[1] = newq; -#line 1835 "" +#line 1843 "" i__2[2] = 128 - i__1, a__1[2] = nowq + i__1; -#line 1835 "" +#line 1843 "" s_cat(lineq + (linesback - 1 << 7), a__1, i__2, &c__3, (ftnlen)128); -#line 1837 "" +#line 1845 "" al__1.aerr = 0; -#line 1837 "" +#line 1845 "" al__1.aunit = *iunit; -#line 1837 "" +#line 1845 "" f_back(&al__1); -#line 1838 "" +#line 1846 "" for (line = linesback; line >= 1; --line) { -#line 1839 "" +#line 1847 "" io___136.ciunit = *iunit; -#line 1839 "" +#line 1847 "" s_wsfe(&io___136); -#line 1839 "" +#line 1847 "" do_fio(&c__1, lineq + (line - 1 << 7), (ftnlen)128); -#line 1839 "" +#line 1847 "" e_wsfe(); -#line 1840 "" +#line 1848 "" /* L2: */ -#line 1840 "" +#line 1848 "" } -#line 1841 "" +#line 1849 "" return 0; } /* backfill_ */ @@ -4671,338 +4685,338 @@ L1: static cilist io___144 = { 0, 6, 0, 0, 0 }; -#line 1869 "" +#line 1877 "" ip = all_1.ipo[all_1.jn - 1]; -#line 1870 "" +#line 1878 "" multip = (all_1.mult[commvl_1.ivx + ip * 24 - 25] & 15) - 8; -#line 1871 "" +#line 1879 "" if (strtmid_1.ixrest[commvl_1.ivx - 1] == 4) { /* This is the LAST note in the xtup (i.e., all rests before). Make single. */ -#line 1875 "" +#line 1883 "" i__1 = 4 - multip; -#line 1875 "" +#line 1883 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] = pow_ii(&c__2, &i__1); -#line 1876 "" +#line 1884 "" notex_(notexq, lnote, (ftnlen)79); -#line 1877 "" +#line 1885 "" strtmid_1.ixrest[commvl_1.ivx - 1] = 0; -#line 1878 "" +#line 1886 "" return 0; -#line 1879 "" +#line 1887 "" } -#line 1880 "" +#line 1888 "" nole = all_1.nolev[commvl_1.ivx + ip * 24 - 25]; /* Check for special situations with 2nds (see precrd) */ -#line 1884 "" +#line 1892 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],30)) { -#line 1885 "" +#line 1893 "" --nole; -#line 1886 "" +#line 1894 "" } else if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],31)) { -#line 1887 "" +#line 1895 "" ++nole; -#line 1888 "" +#line 1896 "" } -#line 1889 "" +#line 1897 "" if (! comdraw_1.drawbm[commvl_1.ivx - 1]) { /* Xtuplet with no beam, just put in the right kind of note */ -#line 1893 "" +#line 1901 "" if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],30)) { /* Forced stem direction */ -#line 1897 "" +#line 1905 "" ndsav = all_1.nodur[commvl_1.ivx + ip * 24 - 25]; -#line 1898 "" +#line 1906 "" i__1 = 4 - multip; -#line 1898 "" +#line 1906 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] = pow_ii(&c__2, &i__1); -#line 1899 "" +#line 1907 "" if (bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],27)) { -#line 1899 "" +#line 1907 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] /= 2; -#line 1899 "" +#line 1907 "" } -#line 1901 "" +#line 1909 "" notex_(notexq, lnote, (ftnlen)79); -#line 1902 "" +#line 1910 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] = ndsav; -#line 1903 "" +#line 1911 "" } else { -#line 1904 "" +#line 1912 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 1904 "" +#line 1912 "" notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); -#line 1905 "" +#line 1913 "" if (lnoten == 1) { -#line 1905 "" +#line 1913 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 1905 "" +#line 1913 "" } -#line 1906 "" +#line 1914 "" *lnote = lnoten + 3; -#line 1907 "" +#line 1915 "" if (! bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],27)) { /* Prior note is not regular-dotted */ -#line 1912 "" +#line 1920 "" if (multip == 0) { /* Writing concatenation */ -#line 1913 "" +#line 1921 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 1913 "" +#line 1921 "" i__2[1] = 1, a__1[1] = "q"; -#line 1913 "" +#line 1921 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 1913 "" +#line 1921 "" i__2[3] = 8, a__1[3] = noteq; -#line 1913 "" +#line 1921 "" s_cat(notexq, a__1, i__2, &c__4, (ftnlen)79); -#line 1914 "" +#line 1922 "" } else if (multip == -1) { /* Writing concatenation */ -#line 1915 "" +#line 1923 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 1915 "" +#line 1923 "" i__2[1] = 1, a__1[1] = "h"; -#line 1915 "" +#line 1923 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 1915 "" +#line 1923 "" i__2[3] = 8, a__1[3] = noteq; -#line 1915 "" +#line 1923 "" s_cat(notexq, a__1, i__2, &c__4, (ftnlen)79); -#line 1916 "" +#line 1924 "" } else if (multip == 1) { /* Writing concatenation */ -#line 1917 "" +#line 1925 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 1917 "" +#line 1925 "" i__2[1] = 1, a__1[1] = "c"; -#line 1917 "" +#line 1925 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 1917 "" +#line 1925 "" i__2[3] = 8, a__1[3] = noteq; -#line 1917 "" +#line 1925 "" s_cat(notexq, a__1, i__2, &c__4, (ftnlen)79); -#line 1918 "" +#line 1926 "" } else if (multip == 2) { /* Writing concatenation */ -#line 1919 "" +#line 1927 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 1919 "" +#line 1927 "" i__2[1] = 2, a__1[1] = "cc"; -#line 1919 "" +#line 1927 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 1919 "" +#line 1927 "" i__2[3] = 8, a__1[3] = noteq; -#line 1919 "" +#line 1927 "" s_cat(notexq, a__1, i__2, &c__4, (ftnlen)79); -#line 1920 "" +#line 1928 "" ++(*lnote); -#line 1921 "" +#line 1929 "" } else if (multip == 3) { /* Writing concatenation */ -#line 1922 "" +#line 1930 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 1922 "" +#line 1930 "" i__2[1] = 3, a__1[1] = "ccc"; -#line 1922 "" +#line 1930 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 1922 "" +#line 1930 "" i__2[3] = 8, a__1[3] = noteq; -#line 1922 "" +#line 1930 "" s_cat(notexq, a__1, i__2, &c__4, (ftnlen)79); -#line 1923 "" +#line 1931 "" *lnote += 2; -#line 1924 "" +#line 1932 "" } else if (multip == -2) { /* Writing concatenation */ -#line 1925 "" +#line 1933 "" i__3[0] = 1, a__2[0] = all_1.sq; -#line 1925 "" +#line 1933 "" i__3[1] = 2, a__2[1] = "wh"; -#line 1925 "" +#line 1933 "" i__3[2] = 8, a__2[2] = noteq; -#line 1925 "" +#line 1933 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79); -#line 1926 "" +#line 1934 "" } else if (multip == -3) { /* Writing concatenation */ -#line 1927 "" +#line 1935 "" i__3[0] = 1, a__2[0] = all_1.sq; -#line 1927 "" +#line 1935 "" i__3[1] = 5, a__2[1] = "breve"; -#line 1927 "" +#line 1935 "" i__3[2] = 8, a__2[2] = noteq; -#line 1927 "" +#line 1935 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79); -#line 1928 "" +#line 1936 "" *lnote += 3; -#line 1929 "" +#line 1937 "" } else { -#line 1930 "" +#line 1938 "" s_wsle(&io___143); -#line 1930 "" +#line 1938 "" e_wsle(); -#line 1931 "" +#line 1939 "" s_wsle(&io___144); -#line 1931 "" +#line 1939 "" do_lio(&c__9, &c__1, "(Error in beamend, send source to "\ "Dr. Don)", (ftnlen)42); -#line 1931 "" +#line 1939 "" e_wsle(); -#line 1932 "" +#line 1940 "" stop1_(); -#line 1933 "" +#line 1941 "" } -#line 1934 "" +#line 1942 "" } else { /* Prior note is regular-dotted so this one is halved */ -#line 1938 "" +#line 1946 "" if (multip == 0) { /* Writing concatenation */ -#line 1939 "" +#line 1947 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 1939 "" +#line 1947 "" i__2[1] = 1, a__1[1] = "c"; -#line 1939 "" +#line 1947 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 1939 "" +#line 1947 "" i__2[3] = 8, a__1[3] = noteq; -#line 1939 "" +#line 1947 "" s_cat(notexq, a__1, i__2, &c__4, (ftnlen)79); -#line 1940 "" +#line 1948 "" } else if (multip == -1) { /* Writing concatenation */ -#line 1941 "" +#line 1949 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 1941 "" +#line 1949 "" i__2[1] = 1, a__1[1] = "q"; -#line 1941 "" +#line 1949 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 1941 "" +#line 1949 "" i__2[3] = 8, a__1[3] = noteq; -#line 1941 "" +#line 1949 "" s_cat(notexq, a__1, i__2, &c__4, (ftnlen)79); -#line 1942 "" +#line 1950 "" } else if (multip == -2) { /* Writing concatenation */ -#line 1943 "" +#line 1951 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 1943 "" +#line 1951 "" i__2[1] = 1, a__1[1] = "h"; -#line 1943 "" +#line 1951 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 1943 "" +#line 1951 "" i__2[3] = 8, a__1[3] = noteq; -#line 1943 "" +#line 1951 "" s_cat(notexq, a__1, i__2, &c__4, (ftnlen)79); -#line 1944 "" +#line 1952 "" } -#line 1945 "" +#line 1953 "" } -#line 1946 "" +#line 1954 "" } -#line 1947 "" +#line 1955 "" return 0; -#line 1948 "" +#line 1956 "" } -#line 1949 "" +#line 1957 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 1949 "" +#line 1957 "" notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); -#line 1950 "" +#line 1958 "" *lnote = 0; /* New way, with flipend, which was computed in beamstrt. */ -#line 1954 "" +#line 1962 "" if (strtmid_1.flipend[commvl_1.ivx - 1] && bit_test(all_1.ipl[ commvl_1.ivx + ip * 24 - 25],30)) { -#line 1954 "" +#line 1962 "" i__1 = 225 - *(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25]; -#line 1954 "" +#line 1962 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 1954 "" +#line 1962 "" *(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25] = *(unsigned char *)&ch__1[0]; -#line 1954 "" +#line 1962 "" } -#line 1956 "" +#line 1964 "" if (ip > all_1.ibm1[commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25]) { /* This is not a one-noter from beam-jump. Check if multiplicity has increased */ -#line 1960 "" +#line 1968 "" if (bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25],0)) { /* Prior note is a rest, check one before that */ -#line 1964 "" +#line 1972 "" mp = (all_1.mult[commvl_1.ivx + (ip - 2) * 24 - 25] & 15) - 8; -#line 1965 "" +#line 1973 "" } else { -#line 1966 "" +#line 1974 "" mp = (all_1.mult[commvl_1.ivx + (ip - 1) * 24 - 25] & 15) - 8; -#line 1967 "" +#line 1975 "" } -#line 1968 "" +#line 1976 "" if (multip > mp) { /* Assume 1-3, 2-3, or 1-2 */ -#line 1972 "" +#line 1980 "" i__1 = mp + 1; -#line 1972 "" +#line 1980 "" for (imp = multip; imp >= i__1; --imp) { -#line 1973 "" +#line 1981 "" ntrbbb_(&imp, "t", all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25), &commvl_1.ivx, notexq, lnote, (ftnlen)1, (ftnlen)1, (ftnlen)79); -#line 1974 "" +#line 1982 "" /* L2: */ -#line 1974 "" +#line 1982 "" } -#line 1975 "" +#line 1983 "" } else if (bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],27)) { /* 2nd member of dotted xtup */ -#line 1979 "" +#line 1987 "" i__1 = multip + 1; -#line 1979 "" +#line 1987 "" ntrbbb_(&i__1, "t", all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25), &commvl_1.ivx, notexq, lnote, (ftnlen)1, (ftnlen)1, (ftnlen)79); -#line 1981 "" +#line 1989 "" } -#line 1982 "" +#line 1990 "" } /* Beam termination and direction analysis */ -#line 1986 "" +#line 1994 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],23) && ! combjmp_1.isbjmp) { @@ -5011,197 +5025,217 @@ L1: /* voice of the 2nd part of jumped beam. (May need special treatment for */ /* multi-segment jump-beams */ -#line 1993 "" +#line 2001 "" combjmp_1.isbjmp = TRUE_; -#line 1994 "" +#line 2002 "" combjmp_1.ivbj1 = commvl_1.ivx; -#line 1995 "" +#line 2003 "" combjmp_1.ivbj2 = 0; -#line 1996 "" +#line 2004 "" } -#line 1997 "" +#line 2005 "" if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],23)) { /* This is either a normal beamend or end of a sequence of jump-beam segments, */ /* so some sort of termination is required */ -#line 2002 "" +#line 2010 "" *(unsigned char *)ulqq = *(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25]; -#line 2003 "" +#line 2011 "" if (! combjmp_1.isbjmp || commvl_1.ivx != combjmp_1.ivbj2) { /* Normal termination */ -#line 2007 "" +#line 2015 "" i__1 = commvl_1.ivx % 24; -#line 2007 "" +#line 2015 "" ntrbbb_(&c__1, "t", ulqq, &i__1, notexq, lnote, (ftnlen)1, ( ftnlen)1, (ftnlen)79); -#line 2008 "" +#line 2016 "" } else { /* Terminate a sequence of jump-beam segments. */ -#line 2012 "" +#line 2020 "" i__1 = 225 - *(unsigned char *)ulqq; -#line 2012 "" +#line 2020 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 2012 "" +#line 2020 "" *(unsigned char *)ulqq = *(unsigned char *)&ch__1[0]; -#line 2013 "" +#line 2021 "" i__1 = combjmp_1.ivbj1 % 24; -#line 2013 "" +#line 2021 "" ntrbbb_(&c__1, "t", ulqq, &i__1, notexq, lnote, (ftnlen)1, ( ftnlen)1, (ftnlen)79); -#line 2014 "" +#line 2022 "" } -#line 2015 "" +#line 2023 "" + } + +/* Check for end of 2nd seg of staff-jump xtup chord blank rest */ + +/* if (isbjmp.and.ivx.eq.ivbj2 */ +#line 2028 "" + if (combjmp_1.isbjmp && bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25], + 29)) { +/* Writing concatenation */ +#line 2030 "" + i__3[0] = *lnote, a__2[0] = notexq; +#line 2030 "" + i__3[1] = 1, a__2[1] = all_1.sq; +#line 2030 "" + i__3[2] = 2, a__2[2] = "sk"; +#line 2030 "" + s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79); +#line 2031 "" + return 0; +#line 2032 "" } /* And now the note */ -#line 2019 "" +#line 2036 "" if (*lnote > 0) { /* Writing concatenation */ -#line 2020 "" +#line 2037 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2020 "" +#line 2037 "" i__3[1] = 1, a__2[1] = all_1.sq; -#line 2020 "" +#line 2037 "" i__3[2] = 2, a__2[2] = "qb"; -#line 2020 "" +#line 2037 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79); -#line 2021 "" +#line 2038 "" } else { /* Writing concatenation */ -#line 2022 "" +#line 2039 "" i__4[0] = 1, a__3[0] = all_1.sq; -#line 2022 "" +#line 2039 "" i__4[1] = 2, a__3[1] = "qb"; -#line 2022 "" +#line 2039 "" s_cat(notexq, a__3, i__4, &c__2, (ftnlen)79); -#line 2023 "" +#line 2040 "" } -#line 2024 "" +#line 2041 "" *lnote += 3; -#line 2025 "" +#line 2042 "" isdotm = FALSE_; -#line 2026 "" +#line 2043 "" if (! comxtup_1.vxtup[commvl_1.ivx - 1]) { -#line 2027 "" +#line 2044 "" i__1 = log2_(&all_1.nodur[commvl_1.ivx + ip * 24 - 25]); -#line 2027 "" +#line 2044 "" if (pow_ii(&c__2, &i__1) != all_1.nodur[commvl_1.ivx + ip * 24 - 25]) { -#line 2028 "" +#line 2045 "" if (! bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],13)) { /* Writing concatenation */ -#line 2029 "" +#line 2046 "" i__4[0] = *lnote, a__3[0] = notexq; -#line 2029 "" +#line 2046 "" i__4[1] = 1, a__3[1] = "p"; -#line 2029 "" +#line 2046 "" s_cat(notexq, a__3, i__4, &c__2, (ftnlen)79); -#line 2030 "" +#line 2047 "" } else { /* Writing concatenation */ -#line 2031 "" +#line 2048 "" i__4[0] = *lnote, a__3[0] = notexq; -#line 2031 "" +#line 2048 "" i__4[1] = 1, a__3[1] = "m"; -#line 2031 "" +#line 2048 "" s_cat(notexq, a__3, i__4, &c__2, (ftnlen)79); -#line 2032 "" +#line 2049 "" isdotm = TRUE_; -#line 2033 "" +#line 2050 "" } -#line 2034 "" +#line 2051 "" ++(*lnote); -#line 2035 "" +#line 2052 "" } -#line 2036 "" +#line 2053 "" } /* 5/25/08 Allow >12 */ /* 5/9/10 Up to 24; replace 24 with 0 */ -#line 2041 "" +#line 2058 "" if (! (combjmp_1.isbjmp && commvl_1.ivx == combjmp_1.ivbj2)) { /* call istring(mod(ivx,12),tempq,len) */ -#line 2043 "" +#line 2060 "" i__1 = commvl_1.ivx % 24; -#line 2043 "" +#line 2060 "" istring_(&i__1, tempq, &len, (ftnlen)4); -#line 2044 "" +#line 2061 "" } else { /* call istring(mod(ivbj1,12),tempq,len) */ -#line 2046 "" +#line 2063 "" i__1 = combjmp_1.ivbj1 % 24; -#line 2046 "" +#line 2063 "" istring_(&i__1, tempq, &len, (ftnlen)4); -#line 2047 "" +#line 2064 "" } -#line 2048 "" +#line 2065 "" if (combjmp_1.isbjmp && commvl_1.ivx == combjmp_1.ivbj2 && ! bit_test( all_1.irest[commvl_1.ivx + ip * 24 - 25],23)) { -#line 2048 "" +#line 2065 "" combjmp_1.isbjmp = FALSE_; -#line 2048 "" +#line 2065 "" } /* Writing concatenation */ -#line 2050 "" +#line 2067 "" i__4[0] = *lnote, a__3[0] = notexq; -#line 2050 "" +#line 2067 "" i__4[1] = len, a__3[1] = tempq; -#line 2050 "" +#line 2067 "" s_cat(notexq, a__3, i__4, &c__2, (ftnlen)79); -#line 2051 "" +#line 2068 "" *lnote += len; /* Writing concatenation */ -#line 2052 "" +#line 2069 "" i__4[0] = *lnote, a__3[0] = notexq; -#line 2052 "" +#line 2069 "" i__4[1] = lnoten, a__3[1] = noteq; -#line 2052 "" +#line 2069 "" s_cat(notexq, a__3, i__4, &c__2, (ftnlen)79); -#line 2053 "" +#line 2070 "" *lnote += lnoten; -#line 2054 "" +#line 2071 "" if (isdotm) { -#line 2055 "" +#line 2072 "" if (lnoten == 1) { /* Writing concatenation */ -#line 2056 "" +#line 2073 "" i__2[0] = *lnote, a__1[0] = notexq; -#line 2056 "" +#line 2073 "" i__2[1] = 1, a__1[1] = "{"; -#line 2056 "" +#line 2073 "" i__2[2] = 1, a__1[2] = noteq; -#line 2056 "" +#line 2073 "" i__2[3] = 1, a__1[3] = "}"; -#line 2056 "" +#line 2073 "" s_cat(notexq, a__1, i__2, &c__4, (ftnlen)79); -#line 2057 "" +#line 2074 "" *lnote += 3; -#line 2058 "" +#line 2075 "" } else { -#line 2059 "" +#line 2076 "" i__1 = lnoten - 2; /* Writing concatenation */ -#line 2059 "" +#line 2076 "" i__4[0] = *lnote, a__3[0] = notexq; -#line 2059 "" +#line 2076 "" i__4[1] = lnoten - 1 - i__1, a__3[1] = noteq + i__1; -#line 2059 "" +#line 2076 "" s_cat(notexq, a__3, i__4, &c__2, (ftnlen)79); -#line 2060 "" +#line 2077 "" ++(*lnote); -#line 2061 "" +#line 2078 "" } -#line 2062 "" +#line 2079 "" } -#line 2063 "" +#line 2080 "" return 0; } /* beamend_ */ @@ -5243,33 +5277,33 @@ L1: extern /* Subroutine */ int putxtn_(integer *, integer *, integer *, integer *, real *, real *, integer *, integer *, real *, real *, integer *, integer *, char *, integer *, integer *, real *, - integer *, integer *, logical *, ftnlen); + integer *, integer *, integer *, logical *, ftnlen); static integer ipright; extern /* Subroutine */ int istring_(integer *, char *, integer *, ftnlen) ; -#line 2093 "" +#line 2110 "" *lnote = 0; -#line 2094 "" +#line 2111 "" ip = all_1.ipo[all_1.jn - 1]; -#line 2095 "" +#line 2112 "" nole = all_1.nolev[commvl_1.ivx + ip * 24 - 25]; /* Check for special situations with 2nds (see precrd) */ -#line 2099 "" +#line 2116 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],30)) { -#line 2100 "" +#line 2117 "" --nole; -#line 2101 "" +#line 2118 "" } else if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],31)) { -#line 2102 "" +#line 2119 "" ++nole; -#line 2103 "" +#line 2120 "" } -#line 2104 "" +#line 2121 "" if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) { -#line 2105 "" +#line 2122 "" multip = (all_1.mult[commvl_1.ivx + ip * 24 - 25] & 15) - 8; /* if (btest(islur(ivx,ip-1),3)) multip = multip+1 */ @@ -5279,346 +5313,346 @@ L1: /* embedded xtup with number, due to ordering/octave feature. */ /* call notefq(noteq,lnoten,nolev(ivx,ip),ncmid(iv,ip)) */ -#line 2114 "" +#line 2131 "" } -#line 2115 "" +#line 2132 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],28)) { -#line 2115 "" +#line 2132 "" comxtup_1.vxtup[commvl_1.ivx - 1] = TRUE_; -#line 2115 "" +#line 2132 "" } -#line 2116 "" +#line 2133 "" if (comxtup_1.vxtup[commvl_1.ivx - 1]) { /* In an xtup */ -#line 2120 "" +#line 2137 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) { /* Intermediate rest in xtup, put in the rest. Reset nodur so notex works OK */ -#line 2124 "" +#line 2141 "" i__1 = 4 - ((all_1.mult[commvl_1.ivx + ip * 24 - 25] & 15) - 8); -#line 2124 "" +#line 2141 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] = pow_ii(&c__2, &i__1); -#line 2125 "" +#line 2142 "" notex_(notexq, lnote, (ftnlen)79); /* Re-zero so next note does not get confused */ -#line 2129 "" +#line 2146 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] = 0; -#line 2130 "" +#line 2147 "" return 0; -#line 2131 "" +#line 2148 "" } /* if (multip.le.0) then */ /* if (multip.le.0 .or. */ /* * (multip.eq.1.and.btest(nacc(ivx,ip-1),18))) then */ -#line 2135 "" +#line 2152 "" if (! comdraw_1.drawbm[commvl_1.ivx - 1]) { /* Xtuplet with no beam, just put in the right kind of note */ -#line 2139 "" +#line 2156 "" if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],30)) { /* Forced stem direction */ -#line 2143 "" +#line 2160 "" ndsav = all_1.nodur[commvl_1.ivx + ip * 24 - 25]; -#line 2144 "" +#line 2161 "" i__1 = 4 - multip; -#line 2144 "" +#line 2161 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] = pow_ii(&c__2, & i__1); -#line 2145 "" +#line 2162 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],19) || bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],27)) { -#line 2147 "" +#line 2164 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] = all_1.nodur[ commvl_1.ivx + ip * 24 - 25] * 3 / 2; -#line 2148 "" +#line 2165 "" } else if (bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],27)) { -#line 2149 "" +#line 2166 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] /= 2; -#line 2150 "" +#line 2167 "" } -#line 2151 "" +#line 2168 "" notex_(notexq, lnote, (ftnlen)79); -#line 2152 "" +#line 2169 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] = ndsav; -#line 2153 "" +#line 2170 "" } else { /* Use ulq for stem direction */ -#line 2157 "" +#line 2174 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 2157 "" +#line 2174 "" notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); -#line 2158 "" +#line 2175 "" if (lnoten == 1) { -#line 2158 "" +#line 2175 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 2158 "" +#line 2175 "" } -#line 2159 "" +#line 2176 "" *lnote = 3; -#line 2160 "" +#line 2177 "" if (! bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25], 27)) { /* Prior note is not regular-dotted */ -#line 2164 "" +#line 2181 "" if (multip == 0) { /* Writing concatenation */ -#line 2165 "" +#line 2182 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2165 "" +#line 2182 "" i__2[1] = 1, a__1[1] = "q"; -#line 2165 "" +#line 2182 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2165 "" +#line 2182 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2166 "" +#line 2183 "" } else if (multip == -1) { /* Writing concatenation */ -#line 2167 "" +#line 2184 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2167 "" +#line 2184 "" i__2[1] = 1, a__1[1] = "h"; -#line 2167 "" +#line 2184 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2167 "" +#line 2184 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2168 "" +#line 2185 "" } else if (multip == 1) { /* Writing concatenation */ -#line 2169 "" +#line 2186 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2169 "" +#line 2186 "" i__2[1] = 1, a__1[1] = "c"; -#line 2169 "" +#line 2186 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2169 "" +#line 2186 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2170 "" +#line 2187 "" } else if (multip == 2) { /* Writing concatenation */ -#line 2171 "" +#line 2188 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2171 "" +#line 2188 "" i__2[1] = 2, a__1[1] = "cc"; -#line 2171 "" +#line 2188 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2171 "" +#line 2188 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2172 "" +#line 2189 "" *lnote = 4; -#line 2173 "" +#line 2190 "" } else if (multip == 3) { /* Writing concatenation */ -#line 2174 "" +#line 2191 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2174 "" +#line 2191 "" i__2[1] = 3, a__1[1] = "ccc"; -#line 2174 "" +#line 2191 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2174 "" +#line 2191 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2175 "" +#line 2192 "" *lnote = 5; -#line 2176 "" +#line 2193 "" } else if (multip == -2) { /* Writing concatenation */ -#line 2177 "" +#line 2194 "" i__3[0] = 1, a__2[0] = all_1.sq; -#line 2177 "" +#line 2194 "" i__3[1] = 2, a__2[1] = "wh"; -#line 2177 "" +#line 2194 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2178 "" +#line 2195 "" } -#line 2179 "" +#line 2196 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],27)) { /* This note is regular dotted non-beamed xtup */ /* Writing concatenation */ -#line 2183 "" +#line 2200 "" i__3[0] = 3, a__2[0] = notexq; -#line 2183 "" +#line 2200 "" i__3[1] = 1, a__2[1] = "p"; -#line 2183 "" +#line 2200 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2184 "" +#line 2201 "" *lnote = 4; -#line 2185 "" +#line 2202 "" } -#line 2186 "" +#line 2203 "" } else { /* Prior note is regular-dotted so this one is halved */ -#line 2190 "" +#line 2207 "" if (multip == 0) { /* Writing concatenation */ -#line 2191 "" +#line 2208 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2191 "" +#line 2208 "" i__2[1] = 1, a__1[1] = "c"; -#line 2191 "" +#line 2208 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2191 "" +#line 2208 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2192 "" +#line 2209 "" } else if (multip == -1) { /* Writing concatenation */ -#line 2193 "" +#line 2210 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2193 "" +#line 2210 "" i__2[1] = 1, a__1[1] = "q"; -#line 2193 "" +#line 2210 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2193 "" +#line 2210 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2194 "" +#line 2211 "" } else if (multip == -2) { /* Writing concatenation */ -#line 2195 "" +#line 2212 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2195 "" +#line 2212 "" i__2[1] = 1, a__1[1] = "h"; -#line 2195 "" +#line 2212 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2195 "" +#line 2212 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2196 "" +#line 2213 "" } -#line 2197 "" +#line 2214 "" } /* Writing concatenation */ -#line 2198 "" +#line 2215 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2198 "" +#line 2215 "" i__3[1] = 8, a__2[1] = noteq; -#line 2198 "" +#line 2215 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2199 "" +#line 2216 "" *lnote += lnoten; -#line 2200 "" +#line 2217 "" } -#line 2201 "" +#line 2218 "" return 0; -#line 2202 "" +#line 2219 "" } else if (all_1.nodur[commvl_1.ivx + ip * 24 - 25] == 0) { /* In the beamed xtup but not the last note */ -#line 2206 "" +#line 2223 "" if (all_1.nodur[commvl_1.ivx + (ip - 1) * 24 - 25] > 0) { /* Embedded Xtup, mult>0, starts here. Put in number if needed */ -#line 2210 "" +#line 2227 "" ++comxtup_1.nxtinbm[commvl_1.ivx - 1]; -#line 2211 "" +#line 2228 "" iud = 1; -#line 2212 "" +#line 2229 "" if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25] == 'u') { -#line 2212 "" +#line 2229 "" iud = -1; -#line 2212 "" +#line 2229 "" } /* Get ip#, notelevel of middle note (or gap) in xtup */ -#line 2216 "" +#line 2233 "" ipmid = ip + comxtup_1.ntupv[commvl_1.ivx + comxtup_1.nxtinbm[ commvl_1.ivx - 1] * 24 - 25] / 2; -#line 2217 "" +#line 2234 "" i__1 = ncmid_(&all_1.iv, &ipmid); -#line 2217 "" +#line 2234 "" i__4 = (15 & all_1.mult[commvl_1.ivx + ipmid * 24 - 25]) - 8; -#line 2217 "" +#line 2234 "" xnlmid = (real) levrn_(&all_1.nolev[commvl_1.ivx + ipmid * 24 - 25], &all_1.irest[commvl_1.ivx + ipmid * 24 - 25], & iud, &i__1, &i__4); -#line 2219 "" +#line 2236 "" if (comxtup_1.ntupv[commvl_1.ivx + comxtup_1.nxtinbm[ commvl_1.ivx - 1] * 24 - 25] % 2 == 0) { -#line 2219 "" +#line 2236 "" i__4 = ipmid - 1; -#line 2219 "" +#line 2236 "" i__1 = ncmid_(&all_1.iv, &i__4); -#line 2219 "" +#line 2236 "" i__5 = (15 & all_1.mult[commvl_1.ivx + (ipmid - 1) * 24 - 25]) - 8; -#line 2219 "" +#line 2236 "" xnlmid = (xnlmid + levrn_(&all_1.nolev[commvl_1.ivx + ( ipmid - 1) * 24 - 25], &all_1.irest[commvl_1.ivx + (ipmid - 1) * 24 - 25], &iud, &i__1, &i__5)) / 2; -#line 2219 "" +#line 2236 "" } -#line 2222 "" +#line 2239 "" iflop = 0; -#line 2223 "" +#line 2240 "" if ((r__1 = xnlmid - ncmid_(&all_1.iv, &ip), dabs(r__1)) < 3.f) { -#line 2223 "" +#line 2240 "" iflop = -iud; -#line 2223 "" +#line 2240 "" } -#line 2224 "" +#line 2241 "" iup = iud + (iflop << 1); -#line 2225 "" +#line 2242 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],14)) { -#line 2226 "" +#line 2243 "" iup = -iup; -#line 2227 "" +#line 2244 "" iflop = 0; -#line 2228 "" +#line 2245 "" if (iud * iup < 0) { -#line 2228 "" +#line 2245 "" iflop = iup; -#line 2228 "" +#line 2245 "" } -#line 2229 "" +#line 2246 "" } /* Place number if needed */ -#line 2233 "" +#line 2250 "" if (! bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],31)) { -#line 2234 "" +#line 2251 "" mprint = igetbits_(&all_1.nacc[commvl_1.ivx + ip * 24 - 25], &c__5, &c__22); -#line 2235 "" +#line 2252 "" if (mprint == 0) { -#line 2235 "" +#line 2252 "" mprint = comxtup_1.mtupv[commvl_1.ivx + comxtup_1.nxtinbm[commvl_1.ivx - 1] * 24 - 25] ; -#line 2235 "" +#line 2252 "" } -#line 2236 "" +#line 2253 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 2236 "" +#line 2253 "" putxtn_(&mprint, &iflop, &multip, &iud, &comask_1.wheadpt, &comask_1.poenom, &comxtup_1.nolev1[commvl_1.ivx - 1], &comxtup_1.islope[commvl_1.ivx - 1], & @@ -5626,336 +5660,355 @@ L1: ip * 24 - 25], lnote, notexq, &i__1, &nlnum, & comxtup_1.eloff[commvl_1.ivx + comxtup_1.nxtinbm[ commvl_1.ivx - 1] * 24 - 25], &iup, &all_1.irest[ + commvl_1.ivx + ip * 24 - 25], &all_1.mult[ commvl_1.ivx + ip * 24 - 25], &c_false, (ftnlen) 79); -#line 2240 "" +/* * eloff(ivx,nxtinbm(ivx)),iup,irest(ivx,ip),.false.) */ +#line 2259 "" } -#line 2241 "" +#line 2260 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 2241 "" +#line 2260 "" notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); -#line 2242 "" +#line 2261 "" } else { /* Intermediate note of xtup */ -#line 2246 "" +#line 2265 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 2246 "" +#line 2265 "" notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); -#line 2247 "" +#line 2266 "" } -#line 2248 "" +#line 2267 "" } else { /* Last note of xtup (but not last note of beam!) */ -#line 2252 "" +#line 2271 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 2252 "" +#line 2271 "" notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); -#line 2253 "" +#line 2272 "" } -#line 2254 "" +#line 2273 "" } else if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) { -#line 2255 "" +#line 2274 "" notex_(notexq, lnote, (ftnlen)79); -#line 2256 "" +#line 2275 "" return 0; -#line 2257 "" +#line 2276 "" } else { -#line 2258 "" +#line 2277 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 2258 "" - notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); -#line 2259 "" - } - -/* Check if multiplicity changes in a way requiring action */ - -#line 2263 "" - ipleft = ip - 1; -#line 2264 "" - if (bit_test(all_1.irest[commvl_1.ivx + ipleft * 24 - 25],0)) { -#line 2264 "" - --ipleft; -#line 2264 "" - } -#line 2265 "" - if (! bit_test(all_1.islur[commvl_1.ivx + ipleft * 24 - 25],20)) { -#line 2266 "" - multl = (15 & all_1.mult[commvl_1.ivx + ipleft * 24 - 25]) - 8; -#line 2267 "" - } else { -#line 2268 "" - multl = 1; -#line 2269 "" - } -#line 2270 "" - mub = multip - multl; -#line 2271 "" - ipright = ip + 1; -#line 2272 "" - if (bit_test(all_1.irest[commvl_1.ivx + ipright * 24 - 25],0)) { -#line 2272 "" - ++ipright; -#line 2272 "" - } -#line 2273 "" - if (! bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],20)) { -#line 2274 "" - multr = (15 & all_1.mult[commvl_1.ivx + ipright * 24 - 25]) - 8; -#line 2275 "" - } else { -#line 2276 "" - multr = 1; #line 2277 "" - } + notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); #line 2278 "" - mua = multr - multip; -#line 2279 "" - if (mub > 0 || mua < 0) { + } -/* Multiplicity has increased from left or will decrease to right. Need action. */ +/* Check if multiplicity changes in a way requiring action, */ +/* unless (160211) it's blank rest on start of 2nd seg of joined beam */ #line 2283 "" - if (combjmp_1.isbjmp && commvl_1.ivx == combjmp_1.ivbj2) { -#line 2284 "" - ivb = combjmp_1.ivbj1; -#line 2285 "" - i__1 = 225 - *(unsigned char *)&all_1.ulq[commvl_1.ivx + - all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25]; -#line 2285 "" - chax_(ch__1, (ftnlen)1, &i__1); + if (! bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25],24) || ! + bit_test(all_1.islur[commvl_1.ivx + (ip - 1) * 24 - 25],29)) { #line 2285 "" - *(unsigned char *)ulqq = *(unsigned char *)&ch__1[0]; + ipleft = ip - 1; #line 2286 "" - } else { + if (bit_test(all_1.irest[commvl_1.ivx + ipleft * 24 - 25],0)) { +#line 2286 "" + --ipleft; +#line 2286 "" + } #line 2287 "" - ivb = commvl_1.ivx; + if (! bit_test(all_1.islur[commvl_1.ivx + ipleft * 24 - 25],20)) { #line 2288 "" - *(unsigned char *)ulqq = *(unsigned char *)&all_1.ulq[ - commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25]; + multl = (15 & all_1.mult[commvl_1.ivx + ipleft * 24 - 25]) - 8; #line 2289 "" - } + } else { #line 2290 "" - if (mua >= 0) { + multl = 1; #line 2291 "" - ntrbbb_(&multip, "n", ulqq, &ivb, notexq, lnote, (ftnlen)1, ( - ftnlen)1, (ftnlen)79); + } #line 2292 "" - } else if (multl >= multr) { -#line 2293 "" - i__1 = multr + 1; + mub = multip - multl; #line 2293 "" - for (im = multip; im >= i__1; --im) { + ipright = ip + 1; #line 2294 "" - ntrbbb_(&im, "t", ulqq, &ivb, notexq, lnote, (ftnlen)1, ( - ftnlen)1, (ftnlen)79); -#line 2295 "" -/* L1: */ + if (bit_test(all_1.irest[commvl_1.ivx + ipright * 24 - 25],0)) { +#line 2294 "" + ++ipright; +#line 2294 "" + } #line 2295 "" - } + if (! bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],20)) { #line 2296 "" - } else { -#line 2297 "" - i__1 = multip; + multr = (15 & all_1.mult[commvl_1.ivx + ipright * 24 - 25]) - 8; #line 2297 "" - for (im = multr + 1; im <= i__1; ++im) { + } else { #line 2298 "" - ntrbbb_(&im, "r", ulqq, &ivb, notexq, lnote, (ftnlen)1, ( - ftnlen)1, (ftnlen)79); -#line 2299 "" -/* L2: */ + multr = 1; #line 2299 "" - } + } #line 2300 "" - ntrbbb_(&multr, "n", ulqq, &ivb, notexq, lnote, (ftnlen)1, ( - ftnlen)1, (ftnlen)79); + mua = multr - multip; #line 2301 "" - } -#line 2302 "" - } else if (ip > 1) { + if (mub > 0 || mua < 0) { -/* Check for 2nd member of dotted xtup */ +/* Multiplicity has increased from left or will decrease to right. Need action. */ +#line 2305 "" + if (combjmp_1.isbjmp && commvl_1.ivx == combjmp_1.ivbj2) { #line 2306 "" - if (bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],27)) { -#line 2306 "" - i__1 = multip + 1; -#line 2306 "" - ntrbbb_(&i__1, "t", all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[ - commvl_1.ivx - 1] * 24 - 25), &commvl_1.ivx, notexq, - lnote, (ftnlen)1, (ftnlen)1, (ftnlen)79); -#line 2306 "" - } + ivb = combjmp_1.ivbj1; +#line 2307 "" + i__1 = 225 - *(unsigned char *)&all_1.ulq[commvl_1.ivx + + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25]; +#line 2307 "" + chax_(ch__1, (ftnlen)1, &i__1); +#line 2307 "" + *(unsigned char *)ulqq = *(unsigned char *)&ch__1[0]; #line 2308 "" + } else { +#line 2309 "" + ivb = commvl_1.ivx; +#line 2310 "" + *(unsigned char *)ulqq = *(unsigned char *)&all_1.ulq[ + commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - + 25]; +#line 2311 "" + } +#line 2312 "" + if (mua >= 0) { +#line 2313 "" + ntrbbb_(&multip, "n", ulqq, &ivb, notexq, lnote, (ftnlen)1, ( + ftnlen)1, (ftnlen)79); +/* else if (multl .ge. multr) then */ +/* Test for next note being blank rest, assuming staff-crossing */ +/* xtup chord */ + +#line 2318 "" + } else if (multl >= multr && ! bit_test(all_1.islur[commvl_1.ivx + + (ip + 1) * 24 - 25],29)) { +#line 2320 "" + i__1 = multr + 1; +#line 2320 "" + for (im = multip; im >= i__1; --im) { +#line 2321 "" + ntrbbb_(&im, "t", ulqq, &ivb, notexq, lnote, (ftnlen)1, ( + ftnlen)1, (ftnlen)79); +#line 2322 "" +/* L1: */ +#line 2322 "" + } +/* else */ +/* Test for next note being blank rest, assuming staff-crossing */ +/* xtup chord */ + +#line 2327 "" + } else if (! bit_test(all_1.islur[commvl_1.ivx + (ip + 1) * 24 - + 25],29)) { +#line 2328 "" + i__1 = multip; +#line 2328 "" + for (im = multr + 1; im <= i__1; ++im) { +#line 2329 "" + ntrbbb_(&im, "r", ulqq, &ivb, notexq, lnote, (ftnlen)1, ( + ftnlen)1, (ftnlen)79); +#line 2330 "" +/* L2: */ +#line 2330 "" + } +#line 2331 "" + ntrbbb_(&multr, "n", ulqq, &ivb, notexq, lnote, (ftnlen)1, ( + ftnlen)1, (ftnlen)79); +#line 2332 "" + } +#line 2333 "" + } else if (ip > 1) { + +/* Check for 2nd member of dotted xtup */ + +#line 2337 "" + if (bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],27)) { +#line 2337 "" + i__1 = multip + 1; +#line 2337 "" + ntrbbb_(&i__1, "t", all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[ + commvl_1.ivx - 1] * 24 - 25), &commvl_1.ivx, notexq, + lnote, (ftnlen)1, (ftnlen)1, (ftnlen)79); +#line 2337 "" + } +#line 2339 "" + } +#line 2340 "" } /* Now put in the note */ -#line 2312 "" +#line 2344 "" if (*lnote > 0) { /* Writing concatenation */ -#line 2313 "" +#line 2345 "" i__2[0] = *lnote, a__1[0] = notexq; -#line 2313 "" +#line 2345 "" i__2[1] = 1, a__1[1] = all_1.sq; -#line 2313 "" +#line 2345 "" i__2[2] = 2, a__1[2] = "qb"; -#line 2313 "" +#line 2345 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2314 "" +#line 2346 "" } else { /* Writing concatenation */ -#line 2315 "" +#line 2347 "" i__3[0] = 1, a__2[0] = all_1.sq; -#line 2315 "" +#line 2347 "" i__3[1] = 2, a__2[1] = "qb"; -#line 2315 "" +#line 2347 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2316 "" +#line 2348 "" } -#line 2317 "" +#line 2349 "" *lnote += 3; -#line 2318 "" +#line 2350 "" isdotm = FALSE_; -#line 2319 "" +#line 2351 "" if (isdotted_(all_1.nodur, &commvl_1.ivx, &ip)) { /* rule out ')' */ -#line 2323 "" +#line 2355 "" if (! bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],13)) { -#line 2324 "" +#line 2356 "" if (! bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],3)) { /* Writing concatenation */ -#line 2325 "" +#line 2357 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2325 "" +#line 2357 "" i__3[1] = 1, a__2[1] = "p"; -#line 2325 "" +#line 2357 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2326 "" +#line 2358 "" } else { /* Double dot */ /* Writing concatenation */ -#line 2330 "" +#line 2362 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2330 "" +#line 2362 "" i__3[1] = 2, a__2[1] = "pp"; -#line 2330 "" +#line 2362 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2331 "" +#line 2363 "" ++(*lnote); -#line 2332 "" +#line 2364 "" } -#line 2333 "" +#line 2365 "" } else { /* Writing concatenation */ -#line 2334 "" +#line 2366 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2334 "" +#line 2366 "" i__3[1] = 1, a__2[1] = "m"; -#line 2334 "" +#line 2366 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2335 "" +#line 2367 "" isdotm = TRUE_; -#line 2336 "" +#line 2368 "" } -#line 2337 "" +#line 2369 "" ++(*lnote); -#line 2338 "" +#line 2370 "" } else if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],19) || bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],27)) { /* Special dotted notation for 2:1 xtup, or normal dot in xtup */ /* Writing concatenation */ -#line 2343 "" +#line 2375 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2343 "" +#line 2375 "" i__3[1] = 1, a__2[1] = "p"; -#line 2343 "" +#line 2375 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2344 "" +#line 2376 "" ++(*lnote); -#line 2345 "" +#line 2377 "" } /* 5/25/08 Allow >12 */ -#line 2349 "" +#line 2381 "" if (! (combjmp_1.isbjmp && commvl_1.ivx == combjmp_1.ivbj2)) { /* call istring(mod(ivx,12),tempq,len) */ -#line 2351 "" +#line 2383 "" i__1 = commvl_1.ivx % 24; -#line 2351 "" +#line 2383 "" istring_(&i__1, tempq, &len, (ftnlen)4); -#line 2352 "" +#line 2384 "" } else { /* call istring(mod(ivbj1,12),tempq,len) */ -#line 2354 "" +#line 2386 "" i__1 = combjmp_1.ivbj1 % 24; -#line 2354 "" +#line 2386 "" istring_(&i__1, tempq, &len, (ftnlen)4); -#line 2355 "" +#line 2387 "" } /* Writing concatenation */ -#line 2356 "" +#line 2388 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2356 "" +#line 2388 "" i__3[1] = len, a__2[1] = tempq; -#line 2356 "" +#line 2388 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2357 "" +#line 2389 "" *lnote += len; /* Writing concatenation */ -#line 2358 "" +#line 2390 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2358 "" +#line 2390 "" i__3[1] = lnoten, a__2[1] = noteq; -#line 2358 "" +#line 2390 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2359 "" +#line 2391 "" *lnote += lnoten; -#line 2360 "" +#line 2392 "" if (isdotm) { -#line 2361 "" +#line 2393 "" if (lnoten == 2) { /* Writing concatenation */ -#line 2362 "" +#line 2394 "" i__6[0] = *lnote, a__3[0] = notexq; -#line 2362 "" +#line 2394 "" i__6[1] = 1, a__3[1] = "{"; -#line 2362 "" +#line 2394 "" i__6[2] = 1, a__3[2] = noteq + 1; -#line 2362 "" +#line 2394 "" i__6[3] = 1, a__3[3] = "}"; -#line 2362 "" +#line 2394 "" s_cat(notexq, a__3, i__6, &c__4, (ftnlen)79); -#line 2363 "" +#line 2395 "" *lnote += 3; -#line 2364 "" +#line 2396 "" } else { -#line 2365 "" +#line 2397 "" i__1 = lnoten - 2; /* Writing concatenation */ -#line 2365 "" +#line 2397 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2365 "" +#line 2397 "" i__3[1] = lnoten - 1 - i__1, a__2[1] = noteq + i__1; -#line 2365 "" +#line 2397 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2366 "" +#line 2398 "" ++(*lnote); -#line 2367 "" +#line 2399 "" } -#line 2368 "" +#line 2400 "" } -#line 2369 "" +#line 2401 "" return 0; } /* beamid_ */ @@ -5995,441 +6048,441 @@ L1: static cilist io___183 = { 0, 6, 0, 0, 0 }; -#line 2395 "" +#line 2427 "" ip1 = all_1.ipo[all_1.jn - 1]; -#line 2396 "" +#line 2428 "" multip = (15 & all_1.mult[commvl_1.ivx + ip1 * 24 - 25]) - 8; /* if (multip.le.0 .and. btest(irest(ivx,ip1),0)) then */ -#line 2398 "" +#line 2430 "" if (! comdraw_1.drawbm[commvl_1.ivx - 1] && bit_test(all_1.irest[ commvl_1.ivx + ip1 * 24 - 25],0)) { -#line 2399 "" +#line 2431 "" *lnote = 0; /* The rest was already written in beamstrt, so just get out of here */ -#line 2403 "" +#line 2435 "" return 0; -#line 2404 "" +#line 2436 "" } -#line 2405 "" +#line 2437 "" nole = all_1.nolev[commvl_1.ivx + all_1.ipo[all_1.jn - 1] * 24 - 25]; /* Check for special situations with 2nds (see precrd) */ -#line 2409 "" +#line 2441 "" if (bit_test(all_1.nacc[commvl_1.ivx + all_1.ipo[all_1.jn - 1] * 24 - 25], 30)) { -#line 2410 "" +#line 2442 "" --nole; -#line 2411 "" +#line 2443 "" } else if (bit_test(all_1.nacc[commvl_1.ivx + all_1.ipo[all_1.jn - 1] * 24 - 25],31)) { -#line 2412 "" +#line 2444 "" ++nole; -#line 2413 "" +#line 2445 "" } -#line 2414 "" +#line 2446 "" if (comxtup_1.vxtup[commvl_1.ivx - 1] && ! comdraw_1.drawbm[commvl_1.ivx - 1]) { /* Xtuplet with no beam, just put in the right kind of note */ -#line 2418 "" +#line 2450 "" if (bit_test(all_1.islur[commvl_1.ivx + ip1 * 24 - 25],30)) { /* Forced stem direction */ -#line 2422 "" +#line 2454 "" ndsav = all_1.nodur[commvl_1.ivx + ip1 * 24 - 25]; -#line 2423 "" +#line 2455 "" i__1 = 4 - multip; -#line 2423 "" +#line 2455 "" all_1.nodur[commvl_1.ivx + ip1 * 24 - 25] = pow_ii(&c__2, &i__1); -#line 2424 "" +#line 2456 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip1 * 24 - 25],19) || bit_test(all_1.nacc[commvl_1.ivx + ip1 * 24 - 25],27)) { -#line 2424 "" +#line 2456 "" all_1.nodur[commvl_1.ivx + ip1 * 24 - 25] = all_1.nodur[ commvl_1.ivx + ip1 * 24 - 25] * 3 / 2; -#line 2424 "" +#line 2456 "" } -#line 2426 "" +#line 2458 "" notex_(notexq, lnote, (ftnlen)79); -#line 2427 "" +#line 2459 "" all_1.nodur[commvl_1.ivx + ip1 * 24 - 25] = ndsav; -#line 2428 "" +#line 2460 "" } else { -#line 2429 "" +#line 2461 "" i__1 = ncmid_(&all_1.iv, &ip1); -#line 2429 "" +#line 2461 "" notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); -#line 2430 "" +#line 2462 "" if (lnoten == 1) { -#line 2430 "" +#line 2462 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 2430 "" +#line 2462 "" } -#line 2431 "" +#line 2463 "" *lnote = 3; -#line 2432 "" +#line 2464 "" if (multip == 0) { /* Writing concatenation */ -#line 2433 "" +#line 2465 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2433 "" +#line 2465 "" i__2[1] = 1, a__1[1] = "q"; -#line 2433 "" +#line 2465 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2433 "" +#line 2465 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2434 "" +#line 2466 "" } else if (multip == -1) { /* Writing concatenation */ -#line 2435 "" +#line 2467 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2435 "" +#line 2467 "" i__2[1] = 1, a__1[1] = "h"; -#line 2435 "" +#line 2467 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2435 "" +#line 2467 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2436 "" +#line 2468 "" } else if (multip == 1) { /* Writing concatenation */ -#line 2437 "" +#line 2469 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2437 "" +#line 2469 "" i__2[1] = 1, a__1[1] = "c"; -#line 2437 "" +#line 2469 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2437 "" +#line 2469 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2438 "" +#line 2470 "" } else if (multip == 2) { /* Writing concatenation */ -#line 2439 "" +#line 2471 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2439 "" +#line 2471 "" i__2[1] = 2, a__1[1] = "cc"; -#line 2439 "" +#line 2471 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2439 "" +#line 2471 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2440 "" +#line 2472 "" *lnote = 4; -#line 2441 "" +#line 2473 "" } else if (multip == 3) { /* Writing concatenation */ -#line 2442 "" +#line 2474 "" i__2[0] = 1, a__1[0] = all_1.sq; -#line 2442 "" +#line 2474 "" i__2[1] = 3, a__1[1] = "ccc"; -#line 2442 "" +#line 2474 "" i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25); -#line 2442 "" +#line 2474 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2443 "" +#line 2475 "" *lnote = 5; -#line 2444 "" +#line 2476 "" } else if (multip == -2) { /* Writing concatenation */ -#line 2445 "" +#line 2477 "" i__3[0] = 1, a__2[0] = all_1.sq; -#line 2445 "" +#line 2477 "" i__3[1] = 2, a__2[1] = "wh"; -#line 2445 "" +#line 2477 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2446 "" +#line 2478 "" } else if (multip == -3) { /* Writing concatenation */ -#line 2447 "" +#line 2479 "" i__3[0] = 1, a__2[0] = all_1.sq; -#line 2447 "" +#line 2479 "" i__3[1] = 5, a__2[1] = "breve"; -#line 2447 "" +#line 2479 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2448 "" +#line 2480 "" *lnote = 6; -#line 2449 "" +#line 2481 "" } else { -#line 2450 "" +#line 2482 "" s_wsle(&io___182); -#line 2450 "" +#line 2482 "" e_wsle(); -#line 2451 "" +#line 2483 "" s_wsle(&io___183); -#line 2451 "" +#line 2483 "" do_lio(&c__9, &c__1, "(Error in beamn1, send source to Dr. D"\ "on)", (ftnlen)41); -#line 2451 "" +#line 2483 "" e_wsle(); -#line 2452 "" +#line 2484 "" stop1_(); -#line 2453 "" +#line 2485 "" } -#line 2454 "" +#line 2486 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip1 * 24 - 25],19) || bit_test(all_1.nacc[commvl_1.ivx + ip1 * 24 - 25],27)) { /* Writing concatenation */ -#line 2455 "" +#line 2487 "" i__3[0] = 3, a__2[0] = notexq; -#line 2455 "" +#line 2487 "" i__3[1] = 1, a__2[1] = "p"; -#line 2455 "" +#line 2487 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2456 "" +#line 2488 "" *lnote = 4; -#line 2457 "" +#line 2489 "" } /* Writing concatenation */ -#line 2458 "" +#line 2490 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2458 "" +#line 2490 "" i__3[1] = 8, a__2[1] = noteq; -#line 2458 "" +#line 2490 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2459 "" +#line 2491 "" *lnote += lnoten; -#line 2460 "" +#line 2492 "" } -#line 2461 "" +#line 2493 "" return 0; -#line 2462 "" +#line 2494 "" } /* Check if mult. decreases from 1st note to 2nd */ -#line 2466 "" +#line 2498 "" if (all_1.ibm2[commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25] > ip1 || bit_test(all_1.islur[commvl_1.ivx + ip1 * 24 - 25],20)) { /* More than one note or single-note before a multiplicity-down-up "][" */ -#line 2471 "" +#line 2503 "" if (bit_test(all_1.islur[commvl_1.ivx + ip1 * 24 - 25],20)) { -#line 2472 "" +#line 2504 "" multr = 1; -#line 2473 "" +#line 2505 "" } else if (! bit_test(all_1.irest[commvl_1.ivx + (ip1 + 1) * 24 - 25], 0)) { -#line 2474 "" +#line 2506 "" multr = (15 & all_1.mult[commvl_1.ivx + (ip1 + 1) * 24 - 25]) - 8; -#line 2475 "" +#line 2507 "" } else { -#line 2476 "" +#line 2508 "" multr = (15 & all_1.mult[commvl_1.ivx + (ip1 + 2) * 24 - 25]) - 8; -#line 2477 "" +#line 2509 "" } -#line 2478 "" +#line 2510 "" *lnote = 0; -#line 2479 "" +#line 2511 "" if (multr < multip) { -#line 2480 "" +#line 2512 "" i__1 = multr + 1; -#line 2480 "" +#line 2512 "" for (im = multip; im >= i__1; --im) { -#line 2481 "" +#line 2513 "" ntrbbb_(&im, "r", all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25), &commvl_1.ivx, notexq, lnote, (ftnlen)1, (ftnlen)1, (ftnlen)79); -#line 2482 "" +#line 2514 "" /* L1: */ -#line 2482 "" +#line 2514 "" } -#line 2483 "" +#line 2515 "" } -#line 2484 "" +#line 2516 "" } /* Put in the note */ -#line 2488 "" +#line 2520 "" if (*lnote > 0) { /* Writing concatenation */ -#line 2489 "" +#line 2521 "" i__2[0] = *lnote, a__1[0] = notexq; -#line 2489 "" +#line 2521 "" i__2[1] = 1, a__1[1] = all_1.sq; -#line 2489 "" +#line 2521 "" i__2[2] = 2, a__1[2] = "qb"; -#line 2489 "" +#line 2521 "" s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79); -#line 2490 "" +#line 2522 "" } else { /* Writing concatenation */ -#line 2491 "" +#line 2523 "" i__3[0] = 1, a__2[0] = all_1.sq; -#line 2491 "" +#line 2523 "" i__3[1] = 2, a__2[1] = "qb"; -#line 2491 "" +#line 2523 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2492 "" +#line 2524 "" } -#line 2493 "" +#line 2525 "" *lnote += 3; /* Check for dot */ -#line 2497 "" +#line 2529 "" isdotm = FALSE_; -#line 2498 "" +#line 2530 "" if (! comxtup_1.vxtup[commvl_1.ivx - 1]) { -#line 2499 "" +#line 2531 "" nd = all_1.nodur[commvl_1.ivx + all_1.ipo[all_1.jn - 1] * 24 - 25]; -#line 2500 "" +#line 2532 "" if (nd != 0) { -#line 2501 "" +#line 2533 "" i__1 = log2_(&nd); -#line 2501 "" +#line 2533 "" if (pow_ii(&c__2, &i__1) != nd) { -#line 2502 "" +#line 2534 "" if (! bit_test(all_1.iornq[commvl_1.ivx + ip1 * 24 - 1],13)) { -#line 2503 "" +#line 2535 "" if (! bit_test(all_1.islur[commvl_1.ivx + ip1 * 24 - 25], 3)) { /* Writing concatenation */ -#line 2504 "" +#line 2536 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2504 "" +#line 2536 "" i__3[1] = 1, a__2[1] = "p"; -#line 2504 "" +#line 2536 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2505 "" +#line 2537 "" } else { /* Double dot */ /* Writing concatenation */ -#line 2509 "" +#line 2541 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2509 "" +#line 2541 "" i__3[1] = 2, a__2[1] = "pp"; -#line 2509 "" +#line 2541 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2510 "" +#line 2542 "" ++(*lnote); -#line 2511 "" +#line 2543 "" } -#line 2512 "" +#line 2544 "" } else { /* Writing concatenation */ -#line 2513 "" +#line 2545 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2513 "" +#line 2545 "" i__3[1] = 1, a__2[1] = "m"; -#line 2513 "" +#line 2545 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2514 "" +#line 2546 "" isdotm = TRUE_; -#line 2515 "" +#line 2547 "" } -#line 2516 "" +#line 2548 "" ++(*lnote); -#line 2517 "" +#line 2549 "" } -#line 2518 "" +#line 2550 "" } -#line 2519 "" +#line 2551 "" } else if (bit_test(all_1.nacc[commvl_1.ivx + ip1 * 24 - 25],19) || bit_test(all_1.nacc[commvl_1.ivx + ip1 * 24 - 25],27)) { /* In an xtup with special 2:1 notation with a dot on 1st note, or normal dot */ /* Writing concatenation */ -#line 2524 "" +#line 2556 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2524 "" +#line 2556 "" i__3[1] = 1, a__2[1] = "p"; -#line 2524 "" +#line 2556 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2525 "" +#line 2557 "" ++(*lnote); -#line 2526 "" +#line 2558 "" } /* Do the number; 0 if 12 */ /* 5/25/08 allow >12 */ -#line 2532 "" +#line 2564 "" if (! bit_test(all_1.irest[commvl_1.ivx + ip1 * 24 - 25],24)) { /* call istring(mod(ivx,12),noteq,len) */ -#line 2534 "" +#line 2566 "" i__1 = commvl_1.ivx % 24; -#line 2534 "" +#line 2566 "" istring_(&i__1, noteq, &len, (ftnlen)8); -#line 2535 "" +#line 2567 "" } else { /* call istring(mod(ivbj1,12),noteq,len) */ -#line 2537 "" +#line 2569 "" i__1 = combjmp_1.ivbj1 % 24; -#line 2537 "" +#line 2569 "" istring_(&i__1, noteq, &len, (ftnlen)8); -#line 2538 "" +#line 2570 "" } /* Writing concatenation */ -#line 2539 "" +#line 2571 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2539 "" +#line 2571 "" i__3[1] = len, a__2[1] = noteq; -#line 2539 "" +#line 2571 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2540 "" +#line 2572 "" *lnote += len; -#line 2541 "" +#line 2573 "" i__1 = ncmid_(&all_1.iv, &ip1); -#line 2541 "" +#line 2573 "" notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); /* Writing concatenation */ -#line 2542 "" +#line 2574 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2542 "" +#line 2574 "" i__3[1] = lnoten, a__2[1] = noteq; -#line 2542 "" +#line 2574 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2543 "" +#line 2575 "" *lnote += lnoten; -#line 2544 "" +#line 2576 "" if (isdotm) { -#line 2545 "" +#line 2577 "" if (lnoten == 1) { /* Writing concatenation */ -#line 2546 "" +#line 2578 "" i__4[0] = *lnote, a__3[0] = notexq; -#line 2546 "" +#line 2578 "" i__4[1] = 1, a__3[1] = "{"; -#line 2546 "" +#line 2578 "" i__4[2] = 1, a__3[2] = noteq; -#line 2546 "" +#line 2578 "" i__4[3] = 1, a__3[3] = "}"; -#line 2546 "" +#line 2578 "" s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79); -#line 2547 "" +#line 2579 "" *lnote += 3; -#line 2548 "" +#line 2580 "" } else { -#line 2549 "" +#line 2581 "" i__1 = lnoten - 2; /* Writing concatenation */ -#line 2549 "" +#line 2581 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 2549 "" +#line 2581 "" i__3[1] = lnoten - 1 - i__1, a__2[1] = noteq + i__1; -#line 2549 "" +#line 2581 "" s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79); -#line 2550 "" +#line 2582 "" ++(*lnote); -#line 2551 "" +#line 2583 "" } -#line 2552 "" +#line 2584 "" } -#line 2553 "" +#line 2585 "" return 0; } /* beamn1_ */ @@ -6457,10 +6510,12 @@ L1: extern /* Subroutine */ int addblank_(char *, integer *, ftnlen); extern integer igetbits_(integer *, integer *, integer *); static logical usexnumt; - static integer nomornlev, ip, levbracket, ibc, inb, iud, imp, ivf, ipp, - iup; + static integer nomornlev, ip, levbracket, ibc, inb, iud, imp, isk, ipp, + ivf, iup; static logical xto; - static integer ipb1, iadj, icrd; + static integer ipb1, iadj; + static logical writebrests; + static integer icrd; extern /* Character */ VOID chax_(char *, ftnlen, integer *); extern doublereal feon_(real *); static integer levc, nole, iorn; @@ -6493,75 +6548,77 @@ L1: extern /* Subroutine */ int putxtn_(integer *, integer *, integer *, integer *, real *, real *, integer *, integer *, real *, real *, integer *, integer *, char *, integer *, integer *, real *, - integer *, integer *, logical *, ftnlen); + integer *, integer *, integer *, logical *, ftnlen); static integer maxdrop; /* Fortran I/O blocks */ - static icilist io___212 = { 0, tempq, 0, "(i2)", 2, 1 }; + static icilist io___213 = { 0, tempq, 0, "(i2)", 2, 1 }; /* The following is just to save the outputs from SetupB for the case of */ /* xtups starting with a rest, where beamstrt is called twice. */ -#line 2604 "" +#line 2637 "" /* Parameter adjustments */ -#line 2604 "" +#line 2637 "" --squez; -#line 2604 "" +#line 2637 "" --space; -#line 2604 "" +#line 2637 "" ihornb -= 25; -#line 2604 "" +#line 2637 "" --nornb; -#line 2604 "" +#line 2637 "" -#line 2604 "" +#line 2637 "" /* Function Body */ -#line 2604 "" +#line 2637 "" + writebrests = TRUE_; +#line 2638 "" ibc = all_1.ibmcnt[commvl_1.ivx - 1]; -#line 2605 "" +#line 2639 "" ipb1 = all_1.ibm1[commvl_1.ivx + ibc * 24 - 25]; -#line 2606 "" +#line 2640 "" multb = (15 & all_1.mult[commvl_1.ivx + ipb1 * 24 - 25]) - 8; -#line 2607 "" +#line 2641 "" ip = all_1.ipo[all_1.jn - 1]; /* Compute slopes and note offsets from start of beam. Inside SetupB, for each */ /* xtup in the beam, set eloff,mtupv (in comxtup) for printed number. */ -#line 2612 "" +#line 2646 "" if (strtmid_1.ixrest[commvl_1.ivx - 1] == 0 && ! bit_test(all_1.nacc[ commvl_1.ivx + ip * 24 - 25],21)) { -#line 2612 "" +#line 2646 "" setupb_(comxtup_1.xelsk, &comipb_1.nnb, &comipb_1.sumx, & comipb_1.sumy, comipb_1.ipb, &comipb_1.smed, & strtmid_1.ixrest[commvl_1.ivx - 1]); -#line 2612 "" +#line 2646 "" } -#line 2614 "" +#line 2648 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],21)) { /* This is start of later segment of single-slope beam group so use slope and */ /* height from prior beam. Slope is already OK. */ -#line 2619 "" +#line 2653 "" ++comxtup_1.issb[commvl_1.ivx - 1]; -#line 2620 "" +#line 2654 "" comxtup_1.nolev1[commvl_1.ivx - 1] = comxtup_1.lev1ssb[commvl_1.ivx + comxtup_1.issb[commvl_1.ivx - 1] * 24 - 25]; -#line 2621 "" +#line 2655 "" } -#line 2622 "" +#line 2656 "" *lnote = 0; -#line 2623 "" +#line 2657 "" comdraw_1.drawbm[commvl_1.ivx - 1] = TRUE_; -#line 2624 "" +#line 2658 "" if (bit_test(all_1.irest[commvl_1.ivx + ipb1 * 24 - 25],28) && strtmid_1.ixrest[commvl_1.ivx - 1] != 2) { -#line 2625 "" +#line 2659 "" comxtup_1.vxtup[commvl_1.ivx - 1] = TRUE_; -#line 2626 "" +#line 2660 "" ++comxtup_1.nxtinbm[commvl_1.ivx - 1]; /* irest(28)=>Xtup starts on this note. Set up for xtuplet. */ @@ -6576,467 +6633,468 @@ L1: /* iflop 0 1 -1 0 ...direction of flop */ /* iup -1 1 -1 1 ...direction of number and bracket */ -#line 2640 "" +#line 2674 "" iud = 1; -#line 2641 "" +#line 2675 "" if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u') { -#line 2641 "" +#line 2675 "" iud = -1; -#line 2641 "" +#line 2675 "" } /* Get ip#, note level of middle note (or gap) in xtup */ -#line 2645 "" +#line 2679 "" ipmid = ipb1 + comxtup_1.ntupv[commvl_1.ivx + comxtup_1.nxtinbm[ commvl_1.ivx - 1] * 24 - 25] / 2; /* 130129 If middle note is a rest, go to next note. Note last note cannot */ /* be a rest */ -#line 2650 "" +#line 2684 "" L14: -#line 2651 "" +#line 2685 "" if (bit_test(all_1.irest[commvl_1.ivx + ipmid * 24 - 25],0)) { -#line 2652 "" +#line 2686 "" ++ipmid; -#line 2653 "" +#line 2687 "" goto L14; -#line 2654 "" +#line 2688 "" } -#line 2655 "" +#line 2689 "" i__1 = ncmid_(&all_1.iv, &ipmid); -#line 2655 "" +#line 2689 "" i__2 = (15 & all_1.mult[commvl_1.ivx + ipmid * 24 - 25]) - 8; -#line 2655 "" +#line 2689 "" xnlmid = (real) levrn_(&all_1.nolev[commvl_1.ivx + ipmid * 24 - 25], & all_1.irest[commvl_1.ivx + ipmid * 24 - 25], &iud, &i__1, & i__2); -#line 2657 "" +#line 2691 "" if (comxtup_1.ntupv[commvl_1.ivx + comxtup_1.nxtinbm[commvl_1.ivx - 1] * 24 - 25] % 2 == 0) { -#line 2657 "" +#line 2691 "" i__2 = ipmid - 1; -#line 2657 "" +#line 2691 "" i__1 = ncmid_(&all_1.iv, &i__2); -#line 2657 "" +#line 2691 "" i__3 = (15 & all_1.mult[commvl_1.ivx + (ipmid - 1) * 24 - 25]) - 8; -#line 2657 "" +#line 2691 "" xnlmid = (xnlmid + levrn_(&all_1.nolev[commvl_1.ivx + (ipmid - 1) * 24 - 25], &all_1.irest[commvl_1.ivx + (ipmid - 1) * 24 - 25], &iud, &i__1, &i__3)) / 2; -#line 2657 "" +#line 2691 "" } -#line 2660 "" +#line 2694 "" iflop = 0; -#line 2661 "" +#line 2695 "" if ((r__1 = xnlmid - ncmid_(&all_1.iv, &ipb1), dabs(r__1)) < 3.f) { -#line 2661 "" +#line 2695 "" iflop = -iud; -#line 2661 "" +#line 2695 "" } -#line 2662 "" +#line 2696 "" iup = iud + (iflop << 1); -#line 2663 "" +#line 2697 "" if (bit_test(all_1.irest[commvl_1.ivx + ipb1 * 24 - 25],14)) { /* Alter iud, iflop, iup to flip number/bracket. (Stare at above pic) */ -#line 2667 "" +#line 2701 "" iup = -iup; -#line 2668 "" +#line 2702 "" iflop = 0; -#line 2669 "" +#line 2703 "" if (iud * iup < 0) { -#line 2669 "" +#line 2703 "" iflop = iup; -#line 2669 "" +#line 2703 "" } -#line 2670 "" +#line 2704 "" } /* Determine if a beam is to be drawn */ -#line 2674 "" +#line 2708 "" i__1 = all_1.ibm2[commvl_1.ivx + ibc * 24 - 25]; -#line 2674 "" +#line 2708 "" for (ipp = all_1.ibm1[commvl_1.ivx + ibc * 24 - 25]; ipp <= i__1; ++ipp) { -#line 2675 "" +#line 2709 "" if ((15 & all_1.mult[commvl_1.ivx + ipp * 24 - 25]) - 8 <= 0) { -#line 2676 "" +#line 2710 "" comdraw_1.drawbm[commvl_1.ivx - 1] = FALSE_; -#line 2677 "" +#line 2711 "" goto L6; -#line 2678 "" +#line 2712 "" } -#line 2679 "" +#line 2713 "" /* L5: */ -#line 2679 "" +#line 2713 "" } -#line 2680 "" +#line 2714 "" comdraw_1.drawbm[commvl_1.ivx - 1] = ! bit_test(all_1.islur[ commvl_1.ivx + all_1.ibm1[commvl_1.ivx + ibc * 24 - 25] * 24 - 25],18); -#line 2681 "" +#line 2715 "" L6: /* Are we using tuplet.tex? */ -#line 2685 "" +#line 2719 "" usexnumt = comnvst_1.cstuplet && ! comdraw_1.drawbm[commvl_1.ivx - 1]; /* Place xtup number if needed */ -#line 2689 "" +#line 2723 "" if (! bit_test(all_1.islur[commvl_1.ivx + ipb1 * 24 - 25],31) || multb <= 0) { -#line 2690 "" +#line 2724 "" mprint = igetbits_(&all_1.nacc[commvl_1.ivx + ip * 24 - 25], & c__5, &c__22); -#line 2691 "" +#line 2725 "" if (mprint == 0) { -#line 2691 "" +#line 2725 "" mprint = comxtup_1.mtupv[commvl_1.ivx + comxtup_1.nxtinbm[ commvl_1.ivx - 1] * 24 - 25]; -#line 2691 "" +#line 2725 "" } -#line 2692 "" +#line 2726 "" i__1 = ncmid_(&all_1.iv, &ipb1); -#line 2692 "" +#line 2726 "" putxtn_(&mprint, &iflop, &multb, &iud, &comask_1.wheadpt, & comask_1.poenom, &comxtup_1.nolev1[commvl_1.ivx - 1], & comxtup_1.islope[commvl_1.ivx - 1], &all_1.slfac, &xnlmid, &all_1.islur[commvl_1.ivx + ipb1 * 24 - 25], lnote, notexq, &i__1, &nlnum, &comxtup_1.eloff[commvl_1.ivx + comxtup_1.nxtinbm[commvl_1.ivx - 1] * 24 - 25], &iup, & - all_1.irest[commvl_1.ivx + ipb1 * 24 - 25], &usexnumt, ( - ftnlen)79); -#line 2696 "" + all_1.irest[commvl_1.ivx + ipb1 * 24 - 25], &all_1.mult[ + commvl_1.ivx + ipb1 * 24 - 25], &usexnumt, (ftnlen)79); +/* * iup,irest(ivx,ipb1),usexnumt) */ +#line 2731 "" } -#line 2697 "" +#line 2732 "" if (! comdraw_1.drawbm[commvl_1.ivx - 1]) { /* Xtuplet with no beam */ -#line 2701 "" +#line 2736 "" if (! bit_test(all_1.islur[commvl_1.ivx + ipb1 * 24 - 25],31)) { /* Number printing has not been suppressed, so put in the bracket. */ /* scale = stretch factor for bracket if there are asx's */ /* xnsk = length of the bracket in \noteskips = (\elemskips)/(eon) */ -#line 2707 "" +#line 2742 "" r__1 = space[*ib] / squez[*ib]; -#line 2707 "" +#line 2742 "" xnsk = (comeskz2_1.eskz2[commvl_1.ivx + (ipb1 + comxtup_1.ntupv[commvl_1.ivx + comxtup_1.nxtinbm[ commvl_1.ivx - 1] * 24 - 25] - 1) * 24 - 25] - comeskz2_1.eskz2[commvl_1.ivx + ipb1 * 24 - 25]) / squez[*ib] / feon_(&r__1); -#line 2709 "" +#line 2744 "" if (iup == 1) { -#line 2710 "" +#line 2745 "" if (*lnote > 0) { /* Writing concatenation */ -#line 2711 "" +#line 2746 "" i__4[0] = *lnote, a__1[0] = notexq; -#line 2711 "" +#line 2746 "" i__4[1] = 1, a__1[1] = all_1.sq; -#line 2711 "" +#line 2746 "" i__4[2] = 5, a__1[2] = "ovbkt"; -#line 2711 "" +#line 2746 "" s_cat(notexq, a__1, i__4, &c__3, (ftnlen)79); -#line 2712 "" +#line 2747 "" } else { /* Writing concatenation */ -#line 2713 "" +#line 2748 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 2713 "" +#line 2748 "" i__5[1] = 5, a__2[1] = "ovbkt"; -#line 2713 "" +#line 2748 "" s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2714 "" +#line 2749 "" } -#line 2715 "" +#line 2750 "" } else { -#line 2716 "" +#line 2751 "" if (*lnote > 0) { /* Writing concatenation */ -#line 2717 "" +#line 2752 "" i__4[0] = *lnote, a__1[0] = notexq; -#line 2717 "" +#line 2752 "" i__4[1] = 1, a__1[1] = all_1.sq; -#line 2717 "" +#line 2752 "" i__4[2] = 5, a__1[2] = "unbkt"; -#line 2717 "" +#line 2752 "" s_cat(notexq, a__1, i__4, &c__3, (ftnlen)79); -#line 2718 "" +#line 2753 "" } else { /* Introduced 12/5/98, req'd due to possible presence of in-line TeX */ /* Writing concatenation */ -#line 2722 "" +#line 2757 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 2722 "" +#line 2757 "" i__5[1] = 5, a__2[1] = "unbkt"; -#line 2722 "" +#line 2757 "" s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2723 "" +#line 2758 "" } -#line 2724 "" +#line 2759 "" } -#line 2725 "" +#line 2760 "" *lnote += 6; -#line 2726 "" +#line 2761 "" if (all_1.iline == 1) { -#line 2727 "" +#line 2762 "" comipb_1.smed /= 1.f - comtop_1.fracindent; -#line 2728 "" +#line 2763 "" } -#line 2729 "" +#line 2764 "" xslope = comipb_1.smed * 1.8f * all_1.slfac; -#line 2730 "" +#line 2765 "" comxtup_1.islope[commvl_1.ivx - 1] = i_nint(&xslope); -#line 2731 "" +#line 2766 "" r__1 = comipb_1.smed * comxtup_1.eloff[commvl_1.ivx - 1]; -#line 2731 "" +#line 2766 "" comxtup_1.nolev1[commvl_1.ivx - 1] = nlnum - i_nint(&r__1); -#line 2732 "" +#line 2767 "" if (comxtup_1.islope[commvl_1.ivx - 1] == 0) { -#line 2732 "" +#line 2767 "" --comxtup_1.nolev1[commvl_1.ivx - 1]; -#line 2732 "" +#line 2767 "" } -#line 2733 "" +#line 2768 "" if (iup == 1) { -#line 2733 "" +#line 2768 "" comxtup_1.nolev1[commvl_1.ivx - 1] += 4; -#line 2733 "" +#line 2768 "" } -#line 2734 "" +#line 2769 "" levbracket = comxtup_1.nolev1[commvl_1.ivx - 1]; -#line 2735 "" +#line 2770 "" if (iup == 1 && comnvst_1.cstuplet) { -#line 2735 "" +#line 2770 "" --levbracket; -#line 2735 "" +#line 2770 "" } -#line 2736 "" +#line 2771 "" i__1 = ncmid_(&all_1.iv, &ipb1); -#line 2736 "" +#line 2771 "" notefq_(noteq, &lnoten, &levbracket, &i__1, (ftnlen)8); -#line 2737 "" +#line 2772 "" if (lnoten == 1) { -#line 2737 "" +#line 2772 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 2737 "" +#line 2772 "" } /* Writing concatenation */ -#line 2738 "" +#line 2773 "" i__4[0] = *lnote, a__1[0] = notexq; -#line 2738 "" +#line 2773 "" i__4[1] = lnoten, a__1[1] = noteq; -#line 2738 "" +#line 2773 "" i__4[2] = 1, a__1[2] = "{"; -#line 2738 "" +#line 2773 "" s_cat(notexq, a__1, i__4, &c__3, (ftnlen)79); -#line 2739 "" +#line 2774 "" *lnote = *lnote + lnoten + 1; -#line 2740 "" +#line 2775 "" if (xnsk < .995f) { -#line 2741 "" +#line 2776 "" i__1 = *lnote; -#line 2741 "" +#line 2776 "" ici__1.icierr = 0; -#line 2741 "" +#line 2776 "" ici__1.icirnum = 1; -#line 2741 "" +#line 2776 "" ici__1.icirlen = *lnote + 4 - i__1; -#line 2741 "" +#line 2776 "" ici__1.iciunit = notexq + i__1; -#line 2741 "" +#line 2776 "" ici__1.icifmt = "(i1,f3.2)"; -#line 2741 "" +#line 2776 "" s_wsfi(&ici__1); -#line 2741 "" +#line 2776 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 2741 "" +#line 2776 "" do_fio(&c__1, (char *)&xnsk, (ftnlen)sizeof(real)); -#line 2741 "" +#line 2776 "" e_wsfi(); -#line 2742 "" +#line 2777 "" *lnote += 4; -#line 2743 "" +#line 2778 "" } else if (xnsk < 9.995f) { -#line 2744 "" +#line 2779 "" i__1 = *lnote; -#line 2744 "" +#line 2779 "" ici__1.icierr = 0; -#line 2744 "" +#line 2779 "" ici__1.icirnum = 1; -#line 2744 "" +#line 2779 "" ici__1.icirlen = *lnote + 4 - i__1; -#line 2744 "" +#line 2779 "" ici__1.iciunit = notexq + i__1; -#line 2744 "" +#line 2779 "" ici__1.icifmt = "(f4.2)"; -#line 2744 "" +#line 2779 "" s_wsfi(&ici__1); -#line 2744 "" +#line 2779 "" do_fio(&c__1, (char *)&xnsk, (ftnlen)sizeof(real)); -#line 2744 "" +#line 2779 "" e_wsfi(); -#line 2745 "" +#line 2780 "" *lnote += 4; -#line 2746 "" +#line 2781 "" } else { -#line 2747 "" +#line 2782 "" i__1 = *lnote; -#line 2747 "" +#line 2782 "" ici__1.icierr = 0; -#line 2747 "" +#line 2782 "" ici__1.icirnum = 1; -#line 2747 "" +#line 2782 "" ici__1.icirlen = *lnote + 5 - i__1; -#line 2747 "" +#line 2782 "" ici__1.iciunit = notexq + i__1; -#line 2747 "" +#line 2782 "" ici__1.icifmt = "(f5.2)"; -#line 2747 "" +#line 2782 "" s_wsfi(&ici__1); -#line 2747 "" +#line 2782 "" do_fio(&c__1, (char *)&xnsk, (ftnlen)sizeof(real)); -#line 2747 "" +#line 2782 "" e_wsfi(); -#line 2748 "" +#line 2783 "" *lnote += 5; -#line 2749 "" +#line 2784 "" } /* Writing concatenation */ -#line 2750 "" +#line 2785 "" i__5[0] = *lnote, a__2[0] = notexq; -#line 2750 "" +#line 2785 "" i__5[1] = 1, a__2[1] = "}"; -#line 2750 "" +#line 2785 "" s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2751 "" +#line 2786 "" ++(*lnote); -#line 2752 "" +#line 2787 "" if (bit_test(all_1.mult[commvl_1.ivx + ipb1 * 24 - 25],4)) { /* Tweak slope of bracket */ -#line 2756 "" +#line 2791 "" comxtup_1.islope[commvl_1.ivx - 1] = comxtup_1.islope[ commvl_1.ivx - 1] + igetbits_(&all_1.mult[ commvl_1.ivx + ipb1 * 24 - 25], &c__5, &c__5) - 16; -#line 2757 "" +#line 2792 "" } -#line 2758 "" +#line 2793 "" if (comxtup_1.islope[commvl_1.ivx - 1] < 0 || comxtup_1.islope[commvl_1.ivx - 1] >= 10) { /* Writing concatenation */ -#line 2759 "" +#line 2794 "" i__5[0] = *lnote, a__2[0] = notexq; -#line 2759 "" +#line 2794 "" i__5[1] = 1, a__2[1] = "{"; -#line 2759 "" +#line 2794 "" s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2760 "" +#line 2795 "" ++(*lnote); -#line 2761 "" +#line 2796 "" if (comxtup_1.islope[commvl_1.ivx - 1] < -9) { -#line 2762 "" +#line 2797 "" i__1 = *lnote; -#line 2762 "" +#line 2797 "" ici__1.icierr = 0; -#line 2762 "" +#line 2797 "" ici__1.icirnum = 1; -#line 2762 "" +#line 2797 "" ici__1.icirlen = *lnote + 3 - i__1; -#line 2762 "" +#line 2797 "" ici__1.iciunit = notexq + i__1; -#line 2762 "" +#line 2797 "" ici__1.icifmt = "(i3)"; -#line 2762 "" +#line 2797 "" s_wsfi(&ici__1); -#line 2762 "" +#line 2797 "" do_fio(&c__1, (char *)&comxtup_1.islope[commvl_1.ivx - 1], (ftnlen)sizeof(integer)); -#line 2762 "" +#line 2797 "" e_wsfi(); -#line 2763 "" +#line 2798 "" *lnote += 3; -#line 2764 "" +#line 2799 "" } else { -#line 2765 "" +#line 2800 "" i__1 = *lnote; -#line 2765 "" +#line 2800 "" ici__1.icierr = 0; -#line 2765 "" +#line 2800 "" ici__1.icirnum = 1; -#line 2765 "" +#line 2800 "" ici__1.icirlen = *lnote + 2 - i__1; -#line 2765 "" +#line 2800 "" ici__1.iciunit = notexq + i__1; -#line 2765 "" +#line 2800 "" ici__1.icifmt = "(i2)"; -#line 2765 "" +#line 2800 "" s_wsfi(&ici__1); -#line 2765 "" +#line 2800 "" do_fio(&c__1, (char *)&comxtup_1.islope[commvl_1.ivx - 1], (ftnlen)sizeof(integer)); -#line 2765 "" +#line 2800 "" e_wsfi(); -#line 2766 "" +#line 2801 "" *lnote += 2; -#line 2767 "" +#line 2802 "" } /* Writing concatenation */ -#line 2768 "" +#line 2803 "" i__5[0] = *lnote, a__2[0] = notexq; -#line 2768 "" +#line 2803 "" i__5[1] = 1, a__2[1] = "}"; -#line 2768 "" +#line 2803 "" s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2769 "" +#line 2804 "" ++(*lnote); -#line 2770 "" +#line 2805 "" } else { -#line 2771 "" +#line 2806 "" i__1 = *lnote; -#line 2771 "" +#line 2806 "" ici__1.icierr = 0; -#line 2771 "" +#line 2806 "" ici__1.icirnum = 1; -#line 2771 "" +#line 2806 "" ici__1.icirlen = *lnote + 1 - i__1; -#line 2771 "" +#line 2806 "" ici__1.iciunit = notexq + i__1; -#line 2771 "" +#line 2806 "" ici__1.icifmt = "(i1)"; -#line 2771 "" +#line 2806 "" s_wsfi(&ici__1); -#line 2771 "" +#line 2806 "" do_fio(&c__1, (char *)&comxtup_1.islope[commvl_1.ivx - 1], (ftnlen)sizeof(integer)); -#line 2771 "" +#line 2806 "" e_wsfi(); -#line 2772 "" +#line 2807 "" ++(*lnote); -#line 2773 "" +#line 2808 "" } /* Done with bracket */ -#line 2777 "" +#line 2812 "" } -#line 2778 "" +#line 2813 "" if (strtmid_1.ixrest[commvl_1.ivx - 1] == 1) { /* Put in the rest. Possible problem: Rest is a spacing char, but between */ @@ -7060,541 +7118,587 @@ L6: /* notexq = notexq(1:lnote)//sq//'hpause' */ /* lnote = lnote+7 */ /* end if */ -#line 2802 "" +#line 2837 "" lrest = 3; -#line 2803 "" +#line 2838 "" if (multb == 0) { /* Writing concatenation */ -#line 2804 "" +#line 2839 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 2804 "" +#line 2839 "" i__5[1] = 2, a__2[1] = "qp"; -#line 2804 "" +#line 2839 "" s_cat(restq, a__2, i__5, &c__2, (ftnlen)40); -#line 2805 "" +#line 2840 "" } else if (! comdraw_1.drawbm[commvl_1.ivx - 1] && multb == 1) { /* Writing concatenation */ -#line 2806 "" +#line 2841 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 2806 "" +#line 2841 "" i__5[1] = 2, a__2[1] = "ds"; -#line 2806 "" +#line 2841 "" s_cat(restq, a__2, i__5, &c__2, (ftnlen)40); -#line 2807 "" +#line 2842 "" } else if (! comdraw_1.drawbm[commvl_1.ivx - 1] && multb == 2) { /* Writing concatenation */ -#line 2808 "" +#line 2843 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 2808 "" +#line 2843 "" i__5[1] = 2, a__2[1] = "qs"; -#line 2808 "" +#line 2843 "" s_cat(restq, a__2, i__5, &c__2, (ftnlen)40); -#line 2809 "" +#line 2844 "" } else if (! comdraw_1.drawbm[commvl_1.ivx - 1] && multb == 3) { /* Writing concatenation */ -#line 2810 "" +#line 2845 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 2810 "" +#line 2845 "" i__5[1] = 2, a__2[1] = "hs"; -#line 2810 "" +#line 2845 "" s_cat(restq, a__2, i__5, &c__2, (ftnlen)40); -#line 2811 "" +#line 2846 "" } else { /* Writing concatenation */ -#line 2812 "" +#line 2847 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 2812 "" +#line 2847 "" i__5[1] = 6, a__2[1] = "hpause"; -#line 2812 "" +#line 2847 "" s_cat(restq, a__2, i__5, &c__2, (ftnlen)40); -#line 2813 "" +#line 2848 "" lrest = 7; -#line 2814 "" +#line 2849 "" } -#line 2815 "" +#line 2850 "" nole = (all_1.nolev[commvl_1.ivx + ip * 24 - 25] + 20) % 100 - 20; -#line 2816 "" +#line 2851 "" if (nole == 0) { /* Rest is not raised */ /* Writing concatenation */ -#line 2820 "" +#line 2855 "" i__5[0] = *lnote, a__2[0] = notexq; -#line 2820 "" +#line 2855 "" i__5[1] = 40, a__2[1] = restq; -#line 2820 "" +#line 2855 "" s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2821 "" +#line 2856 "" *lnote += lrest; -#line 2822 "" +#line 2857 "" } else { -#line 2823 "" +#line 2858 "" if (abs(nole) < 10) { -#line 2824 "" +#line 2859 "" i__1 = abs(nole) + 48; -#line 2824 "" +#line 2859 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 2824 "" +#line 2859 "" s_copy(tempq, ch__1, (ftnlen)79, (ftnlen)1); -#line 2825 "" +#line 2860 "" ltemp = 1; -#line 2826 "" +#line 2861 "" } else { -#line 2827 "" - s_wsfi(&io___212); -#line 2827 "" +#line 2862 "" + s_wsfi(&io___213); +#line 2862 "" i__1 = abs(nole); -#line 2827 "" +#line 2862 "" do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 2827 "" +#line 2862 "" e_wsfi(); -#line 2828 "" +#line 2863 "" ltemp = 2; -#line 2829 "" +#line 2864 "" } -#line 2830 "" +#line 2865 "" if (nole > 0) { /* Writing concatenation */ -#line 2831 "" +#line 2866 "" i__6[0] = 1, a__3[0] = all_1.sq; -#line 2831 "" +#line 2866 "" i__6[1] = 5, a__3[1] = "raise"; -#line 2831 "" +#line 2866 "" i__6[2] = ltemp, a__3[2] = tempq; -#line 2831 "" +#line 2866 "" i__6[3] = 1, a__3[3] = all_1.sq; -#line 2831 "" +#line 2866 "" i__6[4] = 9, a__3[4] = "internote"; -#line 2831 "" +#line 2866 "" s_cat(tempq, a__3, i__6, &c__5, (ftnlen)79); -#line 2832 "" +#line 2867 "" } else { /* Writing concatenation */ -#line 2833 "" +#line 2868 "" i__6[0] = 1, a__3[0] = all_1.sq; -#line 2833 "" +#line 2868 "" i__6[1] = 5, a__3[1] = "lower"; -#line 2833 "" +#line 2868 "" i__6[2] = ltemp, a__3[2] = tempq; -#line 2833 "" +#line 2868 "" i__6[3] = 1, a__3[3] = all_1.sq; -#line 2833 "" +#line 2868 "" i__6[4] = 9, a__3[4] = "internote"; -#line 2833 "" +#line 2868 "" s_cat(tempq, a__3, i__6, &c__5, (ftnlen)79); -#line 2834 "" +#line 2869 "" } -#line 2835 "" +#line 2870 "" ltemp += 16; /* Writing concatenation */ -#line 2836 "" +#line 2871 "" i__4[0] = *lnote, a__1[0] = notexq; -#line 2836 "" +#line 2871 "" i__4[1] = ltemp, a__1[1] = tempq; -#line 2836 "" +#line 2871 "" i__4[2] = lrest, a__1[2] = restq; -#line 2836 "" +#line 2871 "" s_cat(notexq, a__1, i__4, &c__3, (ftnlen)79); -#line 2837 "" +#line 2872 "" *lnote = *lnote + ltemp + lrest; -#line 2838 "" +#line 2873 "" } /* No need to come back through this subroutine (as would if rest starts bar */ /* & multb>0), so do not advance ibm1. But must check in beamn1 and do nothing. */ -#line 2843 "" +#line 2878 "" strtmid_1.ixrest[commvl_1.ivx - 1] = 0; -#line 2844 "" +#line 2879 "" } -#line 2845 "" +#line 2880 "" return 0; -#line 2846 "" +#line 2881 "" } /* End if block for non-beamed xtup start...note we returned */ -#line 2850 "" +#line 2885 "" if (strtmid_1.ixrest[commvl_1.ivx - 1] == 1) { /* Insert rest at start of beamed xtup. See above note for possible problem. */ +/* But first check if blank rest and if in forced beam (assuming xtuplet), */ +/* and if so, count rest from beginning, add \sk's AFTER starting beam '\ib*' */ -#line 2854 "" - i__1 = 4 - multb; -#line 2854 "" - all_1.nodur[commvl_1.ivx + ipb1 * 24 - 25] = pow_ii(&c__2, &i__1); -#line 2855 "" - notex_(tempq, <emp, (ftnlen)79); -#line 2856 "" - if (*lnote > 0) { -/* Writing concatenation */ -#line 2857 "" - i__5[0] = *lnote, a__2[0] = notexq; -#line 2857 "" - i__5[1] = ltemp, a__2[1] = tempq; -#line 2857 "" - s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2858 "" +#line 2891 "" + if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],29) && + bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],30)) { +#line 2892 "" + ++xjbeambrests_1.nbrests; +#line 2893 "" + writebrests = FALSE_; +#line 2894 "" } else { -#line 2859 "" - s_copy(notexq, tempq, (ftnlen)79, ltemp); -#line 2860 "" +#line 2895 "" + i__1 = 4 - multb; +#line 2895 "" + all_1.nodur[commvl_1.ivx + ipb1 * 24 - 25] = pow_ii(&c__2, & + i__1); +#line 2896 "" + notex_(tempq, <emp, (ftnlen)79); +#line 2897 "" + if (*lnote > 0) { +/* Writing concatenation */ +#line 2898 "" + i__5[0] = *lnote, a__2[0] = notexq; +#line 2898 "" + i__5[1] = ltemp, a__2[1] = tempq; +#line 2898 "" + s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); +#line 2899 "" + } else { +#line 2900 "" + s_copy(notexq, tempq, (ftnlen)79, ltemp); +#line 2901 "" + } +#line 2902 "" + *lnote += ltemp; +#line 2903 "" } -#line 2861 "" - *lnote += ltemp; /* Re-zero just in case! */ -#line 2865 "" +#line 2907 "" all_1.nodur[commvl_1.ivx + ipb1 * 24 - 25] = 0; -#line 2866 "" +#line 2908 "" ++all_1.ibm1[commvl_1.ivx + ibc * 24 - 25]; /* See if next note is a non-rest */ -#line 2870 "" +#line 2912 "" if (! bit_test(all_1.irest[commvl_1.ivx + (ipb1 + 1) * 24 - 25],0) ) { -#line 2871 "" +#line 2913 "" strtmid_1.ixrest[commvl_1.ivx - 1] = 2; -#line 2872 "" +#line 2914 "" } else { /* Suppress reprinting xtup number next time through beamstrt */ -#line 2876 "" +#line 2918 "" all_1.islur[commvl_1.ivx + (ipb1 + 1) * 24 - 25] = bit_set( all_1.islur[commvl_1.ivx + (ipb1 + 1) * 24 - 25],31); /* Set new xtup start flag */ -#line 2880 "" +#line 2922 "" all_1.irest[commvl_1.ivx + (ipb1 + 1) * 24 - 25] = bit_set( all_1.irest[commvl_1.ivx + (ipb1 + 1) * 24 - 25],28); -#line 2881 "" +#line 2923 "" } -#line 2882 "" +#line 2924 "" return 0; -#line 2883 "" +#line 2925 "" } -#line 2884 "" +#line 2926 "" } /* Just ended if block for xtups */ -#line 2888 "" +#line 2930 "" if (comxtup_1.vxtup[commvl_1.ivx - 1] && ipb1 == all_1.ibm2[commvl_1.ivx + ibc * 24 - 25]) { /* Move actual note writing to beamend */ -#line 2892 "" +#line 2934 "" strtmid_1.ixrest[commvl_1.ivx - 1] = 4; -#line 2893 "" +#line 2935 "" return 0; -#line 2894 "" +#line 2936 "" } -#line 2895 "" +#line 2937 "" if (comxtup_1.issb[commvl_1.ivx - 1] == 0) { /* 1st bmstrt in single-slope bm grp, Adjust start level(s) and slope if needed */ -#line 2899 "" +#line 2941 "" iadj = igetbits_(&all_1.ipl[commvl_1.ivx + ipb1 * 24 - 25], &c__6, & c__11) - 30; -#line 2900 "" +#line 2942 "" if (iadj != -30) { -#line 2901 "" +#line 2943 "" comxtup_1.nolev1[commvl_1.ivx - 1] += iadj; -#line 2902 "" +#line 2944 "" i__1 = comxtup_1.nssb[commvl_1.ivx - 1]; -#line 2902 "" +#line 2944 "" for (isssb = 1; isssb <= i__1; ++isssb) { -#line 2903 "" +#line 2945 "" comxtup_1.lev1ssb[commvl_1.ivx + isssb * 24 - 25] += iadj; -#line 2904 "" +#line 2946 "" /* L2: */ -#line 2904 "" +#line 2946 "" } -#line 2905 "" +#line 2947 "" } -#line 2906 "" +#line 2948 "" iadj = igetbits_(&all_1.ipl[commvl_1.ivx + ipb1 * 24 - 25], &c__6, & c__17) - 30; -#line 2907 "" +#line 2949 "" if (iadj != -30) { -#line 2908 "" +#line 2950 "" comxtup_1.islope[commvl_1.ivx - 1] += iadj; -#line 2909 "" +#line 2951 "" if ((i__1 = comxtup_1.islope[commvl_1.ivx - 1], abs(i__1)) > 9) { -#line 2909 "" +#line 2951 "" comxtup_1.islope[commvl_1.ivx - 1] = i_sign(&c__9, & comxtup_1.islope[commvl_1.ivx - 1]); -#line 2909 "" +#line 2951 "" } -#line 2910 "" +#line 2952 "" if (comxtup_1.nssb[commvl_1.ivx - 1] > 0) { /* Cycle thru non-rest notes in SSBG, looking for bmstrts. */ -#line 2914 "" +#line 2956 "" isssb = 0; -#line 2915 "" +#line 2957 "" i__1 = comipb_1.nnb; -#line 2915 "" +#line 2957 "" for (inb = 2; inb <= i__1; ++inb) { -#line 2916 "" +#line 2958 "" if (bit_test(all_1.nacc[commvl_1.ivx + comipb_1.ipb[inb - 1] * 24 - 25],21)) { /* Beam segment start. New start level */ -#line 2919 "" +#line 2961 "" ++isssb; -#line 2920 "" +#line 2962 "" comxtup_1.lev1ssb[commvl_1.ivx + isssb * 24 - 25] += comxtup_1.islope[commvl_1.ivx - 1] * comxtup_1.xelsk[inb - 1] / all_1.slfac; -#line 2922 "" +#line 2964 "" } -#line 2923 "" +#line 2965 "" /* L4: */ -#line 2923 "" +#line 2965 "" } -#line 2924 "" +#line 2966 "" } -#line 2925 "" +#line 2967 "" } -#line 2926 "" +#line 2968 "" } -#line 2927 "" +#line 2969 "" iadj = igetbits_(&all_1.islur[commvl_1.ivx + ipb1 * 24 - 25], &c__2, & c__27); -#line 2928 "" +#line 2970 "" addbrack = FALSE_; -#line 2929 "" +#line 2971 "" if (bit_test(all_1.ipl[commvl_1.ivx + ipb1 * 24 - 25],30)) { /* Check for altered starting polarity. Only in forced beams. Nominal start */ /* level is nolev1. So beam level is nolev1 +/- 6, to be compared w/ nolev(.,.). */ -#line 2934 "" +#line 2976 "" if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u' && comxtup_1.nolev1[commvl_1.ivx - 1] + 6 < all_1.nolev[ commvl_1.ivx + ipb1 * 24 - 25]) { -#line 2936 "" +#line 2978 "" if (*lnote == 0) { /* Writing concatenation */ -#line 2937 "" +#line 2979 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 2937 "" +#line 2979 "" i__5[1] = 5, a__2[1] = "loff{"; -#line 2937 "" +#line 2979 "" s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2938 "" +#line 2980 "" } else { /* Writing concatenation */ -#line 2939 "" +#line 2981 "" i__4[0] = *lnote, a__1[0] = notexq; -#line 2939 "" +#line 2981 "" i__4[1] = 1, a__1[1] = all_1.sq; -#line 2939 "" +#line 2981 "" i__4[2] = 5, a__1[2] = "loff{"; -#line 2939 "" +#line 2981 "" s_cat(notexq, a__1, i__4, &c__3, (ftnlen)79); -#line 2940 "" +#line 2982 "" } -#line 2941 "" +#line 2983 "" *lnote += 6; -#line 2942 "" +#line 2984 "" addbrack = TRUE_; -#line 2943 "" +#line 2985 "" } else if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'l' && comxtup_1.nolev1[commvl_1.ivx - 1] - 6 > all_1.nolev[commvl_1.ivx + ipb1 * 24 - 25]) { -#line 2945 "" +#line 2987 "" if (*lnote == 0) { /* Writing concatenation */ -#line 2946 "" +#line 2988 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 2946 "" +#line 2988 "" i__5[1] = 5, a__2[1] = "roff{"; -#line 2946 "" +#line 2988 "" s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2947 "" +#line 2989 "" } else { /* Writing concatenation */ -#line 2948 "" +#line 2990 "" i__4[0] = *lnote, a__1[0] = notexq; -#line 2948 "" +#line 2990 "" i__4[1] = 1, a__1[1] = all_1.sq; -#line 2948 "" +#line 2990 "" i__4[2] = 5, a__1[2] = "roff{"; -#line 2948 "" +#line 2990 "" s_cat(notexq, a__1, i__4, &c__3, (ftnlen)79); -#line 2949 "" +#line 2991 "" } -#line 2950 "" +#line 2992 "" *lnote += 6; -#line 2951 "" +#line 2993 "" addbrack = TRUE_; -#line 2952 "" +#line 2994 "" } /* Check end level for possible flipping in forced beam. Have to do it */ /* here since with multiple voices, xelsk will not be preserved. */ -#line 2957 "" +#line 2999 "" if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25] == 'u') { -#line 2958 "" +#line 3000 "" bmlev = comxtup_1.nolev1[commvl_1.ivx - 1] + 6 + comxtup_1.islope[ commvl_1.ivx - 1] * comxtup_1.xelsk[comipb_1.nnb - 1] / all_1.slfac; -#line 2959 "" +#line 3001 "" strtmid_1.flipend[commvl_1.ivx - 1] = bmlev < (real) all_1.nolev[ commvl_1.ivx + all_1.ibm2[commvl_1.ivx + ibc * 24 - 25] * 24 - 25]; -#line 2960 "" +#line 3002 "" } else if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25] == 'l') { -#line 2961 "" +#line 3003 "" bmlev = comxtup_1.nolev1[commvl_1.ivx - 1] - 6 + comxtup_1.islope[ commvl_1.ivx - 1] * comxtup_1.xelsk[comipb_1.nnb - 1] / all_1.slfac; -#line 2962 "" +#line 3004 "" strtmid_1.flipend[commvl_1.ivx - 1] = bmlev > (real) all_1.nolev[ commvl_1.ivx + all_1.ibm2[commvl_1.ivx + ibc * 24 - 25] * 24 - 25]; -#line 2963 "" +#line 3005 "" } -#line 2964 "" +#line 3006 "" } -#line 2965 "" +#line 3007 "" i__1 = multb + iadj; -#line 2965 "" +#line 3007 "" ntrbbb_(&i__1, "i", all_1.ulq + (commvl_1.ivx + ibc * 24 - 25), & commvl_1.ivx, notexq, lnote, (ftnlen)1, (ftnlen)1, (ftnlen)79); /* Put in name of start level and slope, after correcting nolev1 if xtup */ /* started with a rest. */ -#line 2970 "" +#line 3012 "" if (strtmid_1.ixrest[commvl_1.ivx - 1] == 2) { -#line 2970 "" +#line 3012 "" r__1 = comxtup_1.nolev1[commvl_1.ivx - 1] + comxtup_1.xelsk[0] * comxtup_1.islope[commvl_1.ivx - 1] / all_1.slfac; -#line 2970 "" +#line 3012 "" comxtup_1.nolev1[commvl_1.ivx - 1] = i_nint(&r__1); -#line 2970 "" +#line 3012 "" } -#line 2972 "" +#line 3014 "" i__1 = ncmid_(&all_1.iv, &ipb1); -#line 2972 "" +#line 3014 "" notefq_(noteq, &lnoten, &comxtup_1.nolev1[commvl_1.ivx - 1], &i__1, ( ftnlen)8); -#line 2973 "" +#line 3015 "" if (comxtup_1.islope[commvl_1.ivx - 1] < 0) { /* Writing concatenation */ -#line 2974 "" +#line 3016 "" i__4[0] = *lnote, a__1[0] = notexq; -#line 2974 "" +#line 3016 "" i__4[1] = lnoten, a__1[1] = noteq; -#line 2974 "" +#line 3016 "" i__4[2] = 1, a__1[2] = "{"; -#line 2974 "" +#line 3016 "" s_cat(notexq, a__1, i__4, &c__3, (ftnlen)79); -#line 2975 "" +#line 3017 "" *lnote = *lnote + 4 + lnoten; -#line 2976 "" +#line 3018 "" i__1 = *lnote - 3; -#line 2976 "" +#line 3018 "" ici__1.icierr = 0; -#line 2976 "" +#line 3018 "" ici__1.icirnum = 1; -#line 2976 "" +#line 3018 "" ici__1.icirlen = *lnote - i__1; -#line 2976 "" +#line 3018 "" ici__1.iciunit = notexq + i__1; -#line 2976 "" +#line 3018 "" ici__1.icifmt = "(i2,a1)"; -#line 2976 "" +#line 3018 "" s_wsfi(&ici__1); -#line 2976 "" +#line 3018 "" do_fio(&c__1, (char *)&comxtup_1.islope[commvl_1.ivx - 1], (ftnlen) sizeof(integer)); -#line 2976 "" +#line 3018 "" do_fio(&c__1, "}", (ftnlen)1); -#line 2976 "" +#line 3018 "" e_wsfi(); -#line 2977 "" +#line 3019 "" } else { /* Writing concatenation */ -#line 2978 "" +#line 3020 "" i__5[0] = *lnote, a__2[0] = notexq; -#line 2978 "" +#line 3020 "" i__5[1] = lnoten, a__2[1] = noteq; -#line 2978 "" +#line 3020 "" s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2979 "" +#line 3021 "" *lnote = *lnote + 1 + lnoten; -#line 2980 "" +#line 3022 "" ici__1.icierr = 0; -#line 2980 "" +#line 3022 "" ici__1.icirnum = 1; -#line 2980 "" +#line 3022 "" ici__1.icirlen = 1; -#line 2980 "" +#line 3022 "" ici__1.iciunit = notexq + (*lnote - 1); -#line 2980 "" +#line 3022 "" ici__1.icifmt = "(i1)"; -#line 2980 "" +#line 3022 "" s_wsfi(&ici__1); -#line 2980 "" +#line 3022 "" do_fio(&c__1, (char *)&comxtup_1.islope[commvl_1.ivx - 1], (ftnlen) sizeof(integer)); -#line 2980 "" +#line 3022 "" e_wsfi(); -#line 2981 "" +#line 3023 "" } /* Check for beam-thk fine-tuning */ -#line 2985 "" +#line 3027 "" if (iadj > 0) { -#line 2986 "" +#line 3028 "" i__1 = multb + 1; -#line 2986 "" +#line 3028 "" for (imp = multb + iadj; imp >= i__1; --imp) { -#line 2987 "" +#line 3029 "" ntrbbb_(&imp, "t", all_1.ulq + (commvl_1.ivx + ibc * 24 - 25), & commvl_1.ivx, notexq, lnote, (ftnlen)1, (ftnlen)1, ( ftnlen)79); -#line 2988 "" +#line 3030 "" /* L1: */ -#line 2988 "" +#line 3030 "" } -#line 2989 "" +#line 3031 "" } /* If we shifted, must close with right bracket */ -#line 2993 "" +#line 3035 "" if (addbrack) { /* Writing concatenation */ -#line 2994 "" +#line 3036 "" i__5[0] = *lnote, a__2[0] = notexq; -#line 2994 "" +#line 3036 "" i__5[1] = 1, a__2[1] = "}"; -#line 2994 "" +#line 3036 "" s_cat(notexq, a__2, i__5, &c__2, (ftnlen)79); -#line 2995 "" +#line 3037 "" ++(*lnote); -#line 2996 "" +#line 3038 "" + } + +/* Add in \sk's for very special case of staff-crossing xtup chords */ +/* Assumes we are in lower (first) voice of up-to-both beamed xtup */ +/* that starts with blank rests (notes in upper voice here). */ + +#line 3044 "" + if (xjbeambrests_1.nbrests > 0 && writebrests) { +#line 3045 "" + i__1 = xjbeambrests_1.nbrests; +#line 3045 "" + for (isk = 1; isk <= i__1; ++isk) { +/* Writing concatenation */ +#line 3046 "" + i__4[0] = *lnote, a__1[0] = notexq; +#line 3046 "" + chax_(ch__1, (ftnlen)1, &c__92); +#line 3046 "" + i__4[1] = 1, a__1[1] = ch__1; +#line 3046 "" + i__4[2] = 2, a__1[2] = "sk"; +#line 3046 "" + s_cat(notexq, a__1, i__4, &c__3, (ftnlen)79); +#line 3047 "" + *lnote += 3; +#line 3048 "" +/* L7: */ +#line 3048 "" + } +#line 3049 "" + xjbeambrests_1.nbrests = 0; +#line 3050 "" } /* Get 'floor' zmin for figures */ @@ -7602,100 +7706,100 @@ L6: /* won't be adjusted. If anyone ever needs that, need to duplicate this */ /* functionality up above, before exiting. */ -#line 3003 "" +#line 3057 "" if (all_1.figbass && (commvl_1.ivx == 1 || commvl_1.ivx == comfig_1.ivxfig2)) { -#line 3004 "" +#line 3058 "" if (commvl_1.ivx == 1) { -#line 3005 "" +#line 3059 "" ivf = 1; -#line 3006 "" +#line 3060 "" } else { -#line 3007 "" +#line 3061 "" ivf = comfig_1.ivxfig2; -#line 3008 "" +#line 3062 "" } -#line 3009 "" +#line 3063 "" zmult = (multb - 1) * 1.2f; -#line 3010 "" +#line 3064 "" ymin = 100.f; -#line 3011 "" +#line 3065 "" i__1 = comipb_1.nnb; -#line 3011 "" +#line 3065 "" for (inb = 1; inb <= i__1; ++inb) { -#line 3012 "" +#line 3066 "" if (all_1.isfig[ivf + (comipb_1.ipb[inb - 1] << 1) - 3]) { -#line 3013 "" +#line 3067 "" if (*(unsigned char *)&all_1.ulq[all_1.iv + ibc * 24 - 25] == 'u') { -#line 3014 "" +#line 3068 "" ybot = (real) all_1.nolev[all_1.iv + comipb_1.ipb[inb - 1] * 24 - 25]; -#line 3015 "" +#line 3069 "" } else { -#line 3016 "" +#line 3070 "" ybot = comxtup_1.islope[commvl_1.ivx - 1] / all_1.slfac * comxtup_1.xelsk[inb - 1] + comxtup_1.nolev1[ commvl_1.ivx - 1] - all_1.stemlen - zmult; -#line 3018 "" +#line 3072 "" } -#line 3019 "" +#line 3073 "" ymin = dmin(ymin,ybot); -#line 3020 "" +#line 3074 "" } -#line 3021 "" +#line 3075 "" /* L3: */ -#line 3021 "" +#line 3075 "" } -#line 3022 "" +#line 3076 "" maxdrop = ncmid_(&all_1.iv, &ipb1) - 4 - ymin + 5.01f; /* Computing MAX */ -#line 3023 "" +#line 3077 "" i__1 = all_1.ifigdr[ivf + (all_1.iline << 1) - 3]; -#line 3023 "" +#line 3077 "" all_1.ifigdr[ivf + (all_1.iline << 1) - 3] = max(i__1,maxdrop); -#line 3024 "" +#line 3078 "" } /* Compute ornament levels if needed */ -#line 3028 "" +#line 3082 "" nomornlev = ncmid_(&all_1.iv, &ipb1) + 5; -#line 3029 "" +#line 3083 "" iorn = 0; -#line 3030 "" +#line 3084 "" i__1 = comipb_1.nnb; -#line 3030 "" +#line 3084 "" for (inb = 1; inb <= i__1; ++inb) { -#line 3031 "" +#line 3085 "" ip = comipb_1.ipb[inb - 1]; -#line 3032 "" +#line 3086 "" if (! bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],23)) { -#line 3032 "" +#line 3086 "" goto L8; -#line 3032 "" +#line 3086 "" } -#line 3033 "" +#line 3087 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],26) && *( unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'l') { /* letter-dynamic or hairpin ending under down-beamed */ -#line 3037 "" +#line 3091 "" ++iorn; -#line 3038 "" +#line 3092 "" ybeam = comxtup_1.nolev1[commvl_1.ivx - 1] - all_1.stemlen + comxtup_1.islope[commvl_1.ivx - 1] * comxtup_1.xelsk[inb - 1] / all_1.slfac + 1 - (multb - 1) * 1.2f; /* Computing MIN */ -#line 3040 "" +#line 3094 "" r__1 = ybeam - 3.f; -#line 3040 "" +#line 3094 "" i__2 = i_nint(&r__1), i__3 = nomornlev - 10; -#line 3040 "" +#line 3094 "" ihornb[commvl_1.ivx + iorn * 24] = min(i__2,i__3); -#line 3041 "" +#line 3095 "" } else if (! bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10)) { /* Bits 0-13: (stmgx+Tupf._) , 14: Down fermata, was F */ @@ -7704,52 +7808,52 @@ L6: /* Non-chord. There IS an ornament. Need ihornb only if upbeam, and if */ /* ornament is 1,2,3,5,6,7,8,9,10,15-21 (up- but not domn ferm.) */ -#line 3049 "" +#line 3103 "" if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u' && (all_1.iornq[commvl_1.ivx + comipb_1.ipb[inb - 1] * 24 - 1] & 4163566) > 0) { -#line 3051 "" +#line 3105 "" ++iorn; -#line 3052 "" +#line 3106 "" all_1.iornq[commvl_1.ivx + ip * 24 - 1] = bit_set(all_1.iornq[ commvl_1.ivx + ip * 24 - 1],22); -#line 3053 "" +#line 3107 "" ybeam = comxtup_1.nolev1[commvl_1.ivx - 1] + all_1.stemlen + comxtup_1.islope[commvl_1.ivx - 1] * comxtup_1.xelsk[ inb - 1] / all_1.slfac - 1 + (multb - 1) * 1.2f; /* Computing MAX */ -#line 3055 "" +#line 3109 "" r__1 = ybeam + 3.f; -#line 3055 "" +#line 3109 "" i__2 = i_nint(&r__1); -#line 3055 "" +#line 3109 "" ihornb[commvl_1.ivx + iorn * 24] = max(i__2,nomornlev); -#line 3056 "" +#line 3110 "" } -#line 3057 "" +#line 3111 "" } else { /* In a chord. Orn may be on main note or non-main or both. Set ihornb if */ /* upbeam and highest note has orn, or down beam and lowest. Find 1st chord note */ -#line 3062 "" +#line 3116 "" i__2 = comtrill_1.ncrd; -#line 3062 "" +#line 3116 "" for (comtrill_1.icrd1 = 1; comtrill_1.icrd1 <= i__2; ++comtrill_1.icrd1) { -#line 3063 "" +#line 3117 "" if ((255 & comtrill_1.icrdat[comtrill_1.icrd1 - 1]) == ip && ( 15 & lbit_shift(comtrill_1.icrdat[comtrill_1.icrd1 - 1], (ftnlen)-8)) == commvl_1.ivx) { -#line 3063 "" +#line 3117 "" goto L11; -#line 3063 "" +#line 3117 "" } -#line 3065 "" +#line 3119 "" /* L10: */ -#line 3065 "" +#line 3119 "" } -#line 3066 "" +#line 3120 "" L11: /* Find outermost note, min or max depending on beam direction ulq. xto is true */ @@ -7757,126 +7861,126 @@ L11: /* on extreme chord note in beam, will move. */ /* So ornaments are all except 0,4,13 (,g,) */ -#line 3073 "" +#line 3127 "" levx = all_1.nolev[commvl_1.ivx + ip * 24 - 25]; -#line 3074 "" +#line 3128 "" xto = (all_1.iornq[commvl_1.ivx + comipb_1.ipb[inb - 1] * 24 - 1] & 4186094) > 0; -#line 3075 "" +#line 3129 "" icrdx = 0; -#line 3076 "" +#line 3130 "" i__2 = comtrill_1.ncrd; -#line 3076 "" +#line 3130 "" for (icrd = comtrill_1.icrd1; icrd <= i__2; ++icrd) { -#line 3077 "" +#line 3131 "" if ((255 & comtrill_1.icrdat[icrd - 1]) != ip || (15 & lbit_shift(comtrill_1.icrdat[icrd - 1], (ftnlen)-8)) != commvl_1.ivx) { -#line 3077 "" +#line 3131 "" goto L13; -#line 3077 "" +#line 3131 "" } -#line 3079 "" +#line 3133 "" levc = 127 & lbit_shift(comtrill_1.icrdat[icrd - 1], (ftnlen) -12); -#line 3080 "" +#line 3134 "" if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u' && levc > levx || *(unsigned char *)& all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'l' && levc < levx) { -#line 3082 "" +#line 3136 "" levx = levc; -#line 3083 "" +#line 3137 "" icrdx = icrd; -#line 3084 "" +#line 3138 "" xto = (comtrill_1.icrdorn[icrd - 1] & 4186094) > 0; -#line 3085 "" +#line 3139 "" } -#line 3086 "" +#line 3140 "" /* L12: */ -#line 3086 "" +#line 3140 "" } -#line 3087 "" +#line 3141 "" L13: /* If there's orn on extreme note, do stuff */ -#line 3091 "" +#line 3145 "" if (xto) { -#line 3092 "" +#line 3146 "" ++iorn; -#line 3093 "" +#line 3147 "" if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u') { -#line 3094 "" +#line 3148 "" ybeam = comxtup_1.nolev1[commvl_1.ivx - 1] + all_1.stemlen + comxtup_1.islope[commvl_1.ivx - 1] * comxtup_1.xelsk[inb - 1] / all_1.slfac - 1 + ( multb - 1) * 1.2f; /* Computing MAX */ -#line 3096 "" +#line 3150 "" r__1 = ybeam + 3.f; -#line 3096 "" +#line 3150 "" i__2 = i_nint(&r__1); -#line 3096 "" +#line 3150 "" ihornb[commvl_1.ivx + iorn * 24] = max(i__2,nomornlev); -#line 3097 "" +#line 3151 "" } else { -#line 3098 "" +#line 3152 "" ybeam = comxtup_1.nolev1[commvl_1.ivx - 1] - all_1.stemlen + comxtup_1.islope[commvl_1.ivx - 1] * comxtup_1.xelsk[inb - 1] / all_1.slfac + 1 - ( multb - 1) * 1.2f; /* Computing MIN */ -#line 3100 "" +#line 3154 "" r__1 = ybeam - 3.f; -#line 3100 "" +#line 3154 "" i__2 = i_nint(&r__1), i__3 = nomornlev - 10; -#line 3100 "" +#line 3154 "" ihornb[commvl_1.ivx + iorn * 24] = min(i__2,i__3); -#line 3101 "" +#line 3155 "" } -#line 3102 "" +#line 3156 "" if (icrdx == 0) { /* Affected ornament is on main note */ -#line 3106 "" +#line 3160 "" all_1.iornq[commvl_1.ivx + ip * 24 - 1] = bit_set( all_1.iornq[commvl_1.ivx + ip * 24 - 1],22); -#line 3107 "" +#line 3161 "" } else { -#line 3108 "" +#line 3162 "" comtrill_1.icrdorn[icrdx - 1] = bit_set( comtrill_1.icrdorn[icrdx - 1],22); -#line 3109 "" +#line 3163 "" } -#line 3110 "" +#line 3164 "" } -#line 3111 "" +#line 3165 "" } -#line 3112 "" +#line 3166 "" L8: -#line 3112 "" +#line 3166 "" ; -#line 3112 "" +#line 3166 "" } /* Henceforth nornb will be a counter. */ -#line 3116 "" +#line 3170 "" if (iorn > 0) { -#line 3116 "" +#line 3170 "" nornb[commvl_1.ivx] = 1; -#line 3116 "" +#line 3170 "" } -#line 3117 "" +#line 3171 "" if (strtmid_1.ixrest[commvl_1.ivx - 1] == 2) { -#line 3117 "" +#line 3171 "" strtmid_1.ixrest[commvl_1.ivx - 1] = 0; -#line 3117 "" +#line 3171 "" } -#line 3118 "" +#line 3172 "" return 0; } /* beamstrt_ */ @@ -7900,45 +8004,45 @@ L8: /* * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks) */ /* logical gotclef */ -#line 3202 "" +#line 3256 "" i__1 = c1omnotes_1.nptr[c1omnotes_1.ibarcnt] - 1; -#line 3202 "" +#line 3256 "" for (iptr = c1omnotes_1.nptr[c1omnotes_1.ibarcnt - 1]; iptr <= i__1; ++iptr) { -#line 3203 "" +#line 3257 "" if ((r__1 = *space - c1omnotes_1.durb[iptr - 1], dabs(r__1)) < comtol_1.tol) { -#line 3204 "" +#line 3258 "" if ((r__1 = *squez - c1omnotes_1.sqzb[iptr - 1], dabs(r__1)) < comtol_1.tol) { /* Increment pre-existing entry */ -#line 3208 "" +#line 3262 "" c1omnotes_1.nnpd[iptr - 1] += *nnsk; -#line 3209 "" +#line 3263 "" return 0; -#line 3210 "" +#line 3264 "" } -#line 3211 "" +#line 3265 "" } -#line 3212 "" +#line 3266 "" /* L16: */ -#line 3212 "" +#line 3266 "" } /* Didn't find current duration & squez, so add a new entry. */ /* No particular reason to keep in order, so add at the end. */ -#line 3217 "" +#line 3271 "" c1omnotes_1.nnpd[c1omnotes_1.nptr[c1omnotes_1.ibarcnt] - 1] = *nnsk; -#line 3218 "" +#line 3272 "" c1omnotes_1.durb[c1omnotes_1.nptr[c1omnotes_1.ibarcnt] - 1] = *space; -#line 3219 "" +#line 3273 "" c1omnotes_1.sqzb[c1omnotes_1.nptr[c1omnotes_1.ibarcnt] - 1] = *squez; -#line 3220 "" +#line 3274 "" ++c1omnotes_1.nptr[c1omnotes_1.ibarcnt]; -#line 3221 "" +#line 3275 "" return 0; } /* catspace_ */ @@ -7948,9 +8052,9 @@ L8: /* The only reason for this seemingly do-nothing function is to get around an */ /* apparent bug in the Visual Fortran Standard Edition 5.0.A compiler! */ -#line 3228 "" +#line 3282 "" *(unsigned char *)ret_val = (char) (*n); -#line 3229 "" +#line 3283 "" return ; } /* chax_ */ @@ -7984,222 +8088,222 @@ L8: ftnlen, ftnlen); static char dynsymq[4]; -#line 3236 "" +#line 3290 "" txtdyn = FALSE_; /* On entry, iccount is on "D" */ -#line 3240 "" +#line 3294 "" i__1 = *iccount; -#line 3240 "" +#line 3294 "" if (s_cmp(lineq + i__1, "\"", *iccount + 1 - i__1, (ftnlen)1) == 0) { /* Dynamic text */ -#line 3244 "" +#line 3298 "" i__1 = *iccount + 1; -#line 3244 "" +#line 3298 "" iend = i_indx(lineq + i__1, "\"", 128 - i__1, (ftnlen)1); -#line 3245 "" +#line 3299 "" if (iend == 0) { -#line 3246 "" +#line 3300 "" i__1 = *iccount + 1; -#line 3246 "" +#line 3300 "" errmsg_(lineq, &i__1, ibar, "Dynamic text must be terminated wit"\ "h double quote!", (ftnlen)128, (ftnlen)50); -#line 3248 "" +#line 3302 "" stop1_(); -#line 3249 "" +#line 3303 "" } /* Set iccount to character after 2nd ", and set ipm */ -#line 3253 "" +#line 3307 "" *iccount = *iccount + iend + 2; -#line 3254 "" +#line 3308 "" ipm = i_indx("- +", lineq + (*iccount - 1), (ftnlen)3, (ftnlen)1); -#line 3255 "" +#line 3309 "" if (ipm == 0) { -#line 3256 "" +#line 3310 "" errmsg_(lineq, iccount, ibar, "Expected \"-\", \"+\", or blank h"\ "ere!", (ftnlen)128, (ftnlen)33); -#line 3258 "" +#line 3312 "" stop1_(); -#line 3259 "" +#line 3313 "" } -#line 3260 "" +#line 3314 "" } else { /* Expect ordinary dynamic */ -#line 3264 "" +#line 3318 "" for (iend = *iccount + 2; iend <= 128; ++iend) { -#line 3265 "" +#line 3319 "" ipm = i_indx("- +", lineq + (iend - 1), (ftnlen)3, (ftnlen)1); -#line 3266 "" +#line 3320 "" if (ipm > 0) { -#line 3266 "" +#line 3320 "" goto L2; -#line 3266 "" +#line 3320 "" } -#line 3267 "" +#line 3321 "" /* L1: */ -#line 3267 "" +#line 3321 "" } -#line 3268 "" +#line 3322 "" L2: -#line 3269 "" +#line 3323 "" if (iend - *iccount > 5 || iend - *iccount < 2) { -#line 3270 "" +#line 3324 "" i__1 = iend - 1; -#line 3270 "" +#line 3324 "" errmsg_(lineq, &i__1, ibar, "Wrong length for dynamic mark!", ( ftnlen)128, (ftnlen)30); -#line 3272 "" +#line 3326 "" stop1_(); -#line 3273 "" +#line 3327 "" } -#line 3274 "" +#line 3328 "" i__1 = *iccount; -#line 3274 "" +#line 3328 "" ici__1.icierr = 0; -#line 3274 "" +#line 3328 "" ici__1.iciend = 0; -#line 3274 "" +#line 3328 "" ici__1.icirnum = 1; -#line 3274 "" +#line 3328 "" ici__1.icirlen = iend - 1 - i__1; -#line 3274 "" +#line 3328 "" ici__1.iciunit = lineq + i__1; /* Writing concatenation */ -#line 3274 "" +#line 3328 "" i__2[0] = 2, a__1[0] = "(a"; -#line 3274 "" +#line 3328 "" i__3 = iend + 47 - *iccount; -#line 3274 "" +#line 3328 "" chax_(ch__2, (ftnlen)1, &i__3); -#line 3274 "" +#line 3328 "" i__2[1] = 1, a__1[1] = ch__2; -#line 3274 "" +#line 3328 "" i__2[2] = 1, a__1[2] = ")"; -#line 3274 "" +#line 3328 "" ici__1.icifmt = (s_cat(ch__1, a__1, i__2, &c__3, (ftnlen)4), ch__1); -#line 3274 "" +#line 3328 "" s_rsfi(&ici__1); -#line 3274 "" +#line 3328 "" do_fio(&c__1, dynsymq, (ftnlen)4); -#line 3274 "" +#line 3328 "" e_rsfi(); -#line 3276 "" +#line 3330 "" idno = (i_indx("ppppppp pp p mp mf f fp sfz ff fff ffff< "\ "> ", dynsymq, (ftnlen)56, (ftnlen)4) + 3) / 4; -#line 3279 "" +#line 3333 "" if (idno == 0) { -#line 3280 "" +#line 3334 "" i__1 = *iccount + 1; -#line 3280 "" +#line 3334 "" errmsg_(lineq, &i__1, ibar, "Illegal dynamic mark!", (ftnlen)128, (ftnlen)21); -#line 3281 "" +#line 3335 "" stop1_(); -#line 3282 "" +#line 3336 "" } -#line 3283 "" +#line 3337 "" *iccount = iend; -#line 3284 "" +#line 3338 "" } -#line 3285 "" +#line 3339 "" if (ipm != 2) { /* There is a vertical shift, have "+" or "-" */ -#line 3289 "" +#line 3343 "" ++(*iccount); -#line 3290 "" +#line 3344 "" if (i_indx("0123456789", lineq + (*iccount - 1), (ftnlen)10, (ftnlen) 1) == 0) { -#line 3291 "" +#line 3345 "" errmsg_(lineq, iccount, ibar, "Expected integer here for vertica"\ "l offset!", (ftnlen)128, (ftnlen)42); -#line 3293 "" +#line 3347 "" stop1_(); -#line 3294 "" +#line 3348 "" } -#line 3295 "" +#line 3349 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 3296 "" +#line 3350 "" idno = i_nint(&fnum); -#line 3297 "" +#line 3351 "" if (idno > 63) { -#line 3298 "" +#line 3352 "" i__1 = *iccount - 1; -#line 3298 "" +#line 3352 "" errmsg_(lineq, &i__1, ibar, "Vertical offset for dynamic mark mu"\ "st be (-63,63)!", (ftnlen)128, (ftnlen)50); -#line 3300 "" +#line 3354 "" stop1_(); -#line 3301 "" +#line 3355 "" } -#line 3302 "" +#line 3356 "" ipm = i_indx("- +", durq, (ftnlen)3, (ftnlen)1); -#line 3303 "" +#line 3357 "" if (ipm == 0) { -#line 3304 "" +#line 3358 "" errmsg_(lineq, iccount, ibar, "Expected \"+\", \"-\", or blank h"\ "ere!", (ftnlen)128, (ftnlen)33); -#line 3306 "" +#line 3360 "" stop1_(); -#line 3307 "" +#line 3361 "" } -#line 3308 "" +#line 3362 "" if (ipm != 2) { /* There is a horizontal shift */ -#line 3312 "" +#line 3366 "" ++(*iccount); -#line 3313 "" +#line 3367 "" if (i_indx(".0123456789", lineq + (*iccount - 1), (ftnlen)11, ( ftnlen)1) == 0) { -#line 3314 "" +#line 3368 "" errmsg_(lineq, iccount, ibar, "Expected number here for hori"\ "zontal offset!", (ftnlen)128, (ftnlen)43); -#line 3316 "" +#line 3370 "" stop1_(); -#line 3317 "" +#line 3371 "" } -#line 3318 "" +#line 3372 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 3319 "" +#line 3373 "" r__1 = fnum * 10; -#line 3319 "" +#line 3373 "" idno = i_nint(&r__1); -#line 3320 "" +#line 3374 "" if (idno > 255) { -#line 3321 "" +#line 3375 "" i__1 = *iccount - 1; -#line 3321 "" +#line 3375 "" errmsg_(lineq, &i__1, ibar, "Horizontal offset for dynamic m"\ "ark must be (-25.5,25.5)!", (ftnlen)128, (ftnlen)56); -#line 3323 "" +#line 3377 "" stop1_(); -#line 3324 "" +#line 3378 "" } else if (*(unsigned char *)durq != ' ') { -#line 3325 "" +#line 3379 "" errmsg_(lineq, iccount, ibar, "There should be a blank here!", (ftnlen)128, (ftnlen)29); -#line 3327 "" +#line 3381 "" stop1_(); -#line 3328 "" +#line 3382 "" } -#line 3329 "" +#line 3383 "" } /* iccount should be on the blank at the end of the entire symbol */ -#line 3333 "" +#line 3387 "" } -#line 3334 "" +#line 3388 "" return 0; } /* checkdyn_ */ @@ -8218,15 +8322,15 @@ L2: /* subroutine chkarp(found1,ncrd,icrdat,icrdot,ivx,ip,isacc,isarp, */ /* * icashft) */ -#line 3341 "" +#line 3395 "" /* Parameter adjustments */ -#line 3341 "" +#line 3395 "" --icrdat; -#line 3341 "" +#line 3395 "" -#line 3341 "" +#line 3395 "" /* Function Body */ -#line 3341 "" +#line 3395 "" found1 = FALSE_; /* icashft will be max left shift of accid's in chord notes. */ @@ -8234,19 +8338,19 @@ L2: /* Will include left shift of chord note itself. */ /* Rezero after use. */ -#line 3348 "" +#line 3402 "" i__1 = *ncrd; -#line 3348 "" +#line 3402 "" for (icrd = 1; icrd <= i__1; ++icrd) { /* This if block cycles thru all chord notes on ivx,ip; then returns. */ -#line 3352 "" +#line 3406 "" if ((255 & icrdat[icrd]) == *ip && (15 & lbit_shift(icrdat[icrd], ( ftnlen)-8)) == *ivx) { -#line 3354 "" +#line 3408 "" found1 = TRUE_; -#line 3355 "" +#line 3409 "" *iscacc = *iscacc || bit_test(icrdat[icrd],19) && ! bit_test( icrdat[icrd],27); @@ -8270,19 +8374,19 @@ L2: /* if (irshft .lt. 64) icashft = max(icashft,64-irshft) */ /* end if */ /* end if */ -#line 3378 "" +#line 3432 "" *isarp = *isarp || bit_test(icrdat[icrd],25); -#line 3379 "" +#line 3433 "" } else if (found1) { -#line 3380 "" +#line 3434 "" return 0; -#line 3381 "" +#line 3435 "" } -#line 3382 "" +#line 3436 "" /* L18: */ -#line 3382 "" +#line 3436 "" } -#line 3383 "" +#line 3437 "" return 0; } /* chkarp_ */ @@ -8294,41 +8398,41 @@ L2: e_wsfe(void); /* Fortran I/O blocks */ - static cilist io___242 = { 0, 6, 0, 0, 0 }; - static cilist io___243 = { 0, 6, 0, 0, 0 }; - static cilist io___244 = { 0, 6, 0, "(a6,2x,4i8)", 0 }; + static cilist io___244 = { 0, 6, 0, 0, 0 }; + static cilist io___245 = { 0, 6, 0, 0, 0 }; + static cilist io___246 = { 0, 6, 0, "(a6,2x,4i8)", 0 }; -#line 3396 "" +#line 3450 "" if (commidi_1.imidi[*icm] >= 24576) { -#line 3397 "" - s_wsle(&io___242); -#line 3397 "" +#line 3451 "" + s_wsle(&io___244); +#line 3451 "" e_wsle(); -#line 3398 "" - s_wsle(&io___243); -#line 3398 "" +#line 3452 "" + s_wsle(&io___245); +#line 3452 "" do_lio(&c__9, &c__1, "Midi file is too long! It will be corrupted or"\ " worse", (ftnlen)52); -#line 3398 "" +#line 3452 "" e_wsle(); -#line 3399 "" - s_wsfe(&io___244); -#line 3399 "" +#line 3453 "" + s_wsfe(&io___246); +#line 3453 "" do_fio(&c__1, "imidi:", (ftnlen)6); -#line 3399 "" +#line 3453 "" do_fio(&c__1, (char *)&commidi_1.imidi[0], (ftnlen)sizeof(integer)); -#line 3399 "" +#line 3453 "" do_fio(&c__1, (char *)&commidi_1.imidi[1], (ftnlen)sizeof(integer)); -#line 3399 "" +#line 3453 "" do_fio(&c__1, (char *)&commidi_1.imidi[2], (ftnlen)sizeof(integer)); -#line 3399 "" +#line 3453 "" do_fio(&c__1, (char *)&commidi_1.imidi[3], (ftnlen)sizeof(integer)); -#line 3399 "" +#line 3453 "" e_wsfe(); -#line 3401 "" +#line 3455 "" } -#line 3402 "" +#line 3456 "" return 0; } /* chkimidi_ */ @@ -8366,223 +8470,223 @@ L2: /* otherwise next prior note. Relative to bottom line. */ /* if (ip.ne.nn(ivx).and..not.btest(iornq(ivx,ip),30)) then */ -#line 3424 "" +#line 3478 "" /* Parameter adjustments */ -#line 3424 "" +#line 3478 "" ipl -= 25; -#line 3424 "" +#line 3478 "" mult -= 25; -#line 3424 "" +#line 3478 "" --levbotr; -#line 3424 "" +#line 3478 "" --levtopr; -#line 3424 "" +#line 3478 "" nodur -= 25; -#line 3424 "" +#line 3478 "" nib -= 25; -#line 3424 "" +#line 3478 "" ivmx -= 25; -#line 3424 "" +#line 3478 "" nolev -= 25; -#line 3424 "" +#line 3478 "" irest -= 25; -#line 3424 "" +#line 3478 "" islur -= 25; -#line 3424 "" +#line 3478 "" --nn; -#line 3424 "" +#line 3478 "" -#line 3424 "" +#line 3478 "" /* Function Body */ -#line 3424 "" +#line 3478 "" if (*ip != nn[*ivx] && ! bit_test(ipl[*ivx + *ip * 24],1)) { /* Not the last note and not "look-left" for level */ -#line 3428 "" +#line 3482 "" i__1 = nn[*ivx]; -#line 3428 "" +#line 3482 "" for (kkp = *ip + 1; kkp <= i__1; ++kkp) { -#line 3429 "" +#line 3483 "" if (bit_test(islur[*ivx + kkp * 24],29)) { -#line 3429 "" +#line 3483 "" goto L4; -#line 3429 "" +#line 3483 "" } -#line 3430 "" +#line 3484 "" if (! bit_test(irest[*ivx + kkp * 24],0)) { -#line 3431 "" +#line 3485 "" levnext = nolev[*ivx + kkp * 24] - ncmid_(iv, &kkp) + 4; /* Relative to botto */ -#line 3432 "" +#line 3486 "" goto L9; -#line 3433 "" +#line 3487 "" } -#line 3434 "" +#line 3488 "" /* L8: */ -#line 3434 "" +#line 3488 "" } -#line 3435 "" +#line 3489 "" } -#line 3436 "" +#line 3490 "" L4: /* If here, there were no following notes or came to a blank rest, or */ /* "look-left" option set. So look before */ /* if (ip .eq. 1) go to 2 ! Get out if this is the first note. */ -#line 3442 "" +#line 3496 "" if (*ip == 1) { -#line 3442 "" +#line 3496 "" return 0; -#line 3442 "" +#line 3496 "" } /* Get out if this is the first note. */ -#line 3443 "" +#line 3497 "" for (kkp = *ip - 1; kkp >= 1; --kkp) { -#line 3444 "" +#line 3498 "" if (! bit_test(irest[*ivx + kkp * 24],0)) { -#line 3445 "" +#line 3499 "" levnext = nolev[*ivx + kkp * 24] - ncmid_(iv, &kkp) + 4; /* Relative to bottom */ -#line 3446 "" +#line 3500 "" goto L9; -#line 3447 "" +#line 3501 "" } -#line 3448 "" +#line 3502 "" /* L3: */ -#line 3448 "" +#line 3502 "" } /* go to 2 ! Pretty odd, should never be here, but get out if so. */ -#line 3450 "" +#line 3504 "" return 0; /* Pretty odd, should never be here, but get out if so. */ -#line 3451 "" +#line 3505 "" L9: /* Find note in other voice at same time */ -#line 3455 "" +#line 3509 "" i__1 = *ivx - *nv - 1; -#line 3455 "" +#line 3509 "" iupdown = i_sign(&c__1, &i__1); -#line 3456 "" +#line 3510 "" ivother = ivmx[*iv + (3 - iupdown) / 2 * 24]; -#line 3457 "" +#line 3511 "" tother = 0.f; -#line 3458 "" +#line 3512 "" i__1 = nib[ivother + *ibar * 24]; -#line 3458 "" +#line 3512 "" for (kkp = 1; kkp <= i__1; ++kkp) { -#line 3459 "" +#line 3513 "" if ((r__1 = tother - *tnow, dabs(r__1)) < *tol) { -#line 3459 "" +#line 3513 "" goto L6; -#line 3459 "" +#line 3513 "" } -#line 3460 "" +#line 3514 "" tother += nodur[ivother + kkp * 24]; -#line 3461 "" +#line 3515 "" /* L5: */ -#line 3461 "" +#line 3515 "" } /* If here, then no note starts in other voice at same time, so set default */ -#line 3465 "" +#line 3519 "" levother = -iupdown * 50; -#line 3466 "" +#line 3520 "" goto L7; -#line 3467 "" +#line 3521 "" L6: /* If here, have just identified a simultaneous note or rest in other voice */ -#line 3471 "" +#line 3525 "" if (! bit_test(irest[ivother + kkp * 24],0)) { /* Not a rest, use it */ -#line 3472 "" +#line 3526 "" levother = nolev[ivother + kkp * 24] - ncmid_(iv, ip) + 4; -#line 3473 "" +#line 3527 "" } else { -#line 3474 "" +#line 3528 "" if (nodur[ivother + kkp * 24] == nodur[*ivx + *ip * 24]) { /* Rest in other voice has same duration, get out (so defualt spacing is used) */ /* go to 2 */ -#line 3479 "" +#line 3533 "" return 0; -#line 3480 "" +#line 3534 "" } -#line 3481 "" +#line 3535 "" levother = -iupdown * 50; -#line 3482 "" +#line 3536 "" } -#line 3483 "" +#line 3537 "" L7: -#line 3484 "" +#line 3538 "" if (*mode == 1) { -#line 3485 "" +#line 3539 "" indxr = log2_(&nodur[*ivx + *ip * 24]) + 1; -#line 3486 "" +#line 3540 "" } else { /* nodu = 2**(4-(iand(mult(ivx,ip),15)-8)) */ -#line 3488 "" +#line 3542 "" indxr = 4 - ((mult[*ivx + *ip * 24] & 15) - 8) + 1; -#line 3489 "" +#line 3543 "" } -#line 3490 "" +#line 3544 "" if (iupdown < 0) { -#line 3491 "" +#line 3545 "" levtop = levtopr[indxr]; -#line 3492 "" +#line 3546 "" iraise1 = levother - levtop - 3; /* Based on other note */ -#line 3493 "" +#line 3547 "" iraise2 = levnext - levtop; /* Based on following note */ -#line 3494 "" +#line 3548 "" if (indxr == 5 && levnext < 1) { -#line 3494 "" +#line 3548 "" iraise2 += 2; -#line 3494 "" +#line 3548 "" } -#line 3495 "" +#line 3549 "" iraise = min(iraise1,iraise2); -#line 3496 "" +#line 3550 "" if ((iraise + 50) % 2 == 1 && iraise + levtop > -1) { -#line 3496 "" +#line 3550 "" --iraise; -#line 3496 "" +#line 3550 "" } -#line 3498 "" +#line 3552 "" } else { -#line 3499 "" +#line 3553 "" levbot = levbotr[indxr]; -#line 3500 "" +#line 3554 "" iraise1 = levother - levbot + 3; -#line 3501 "" +#line 3555 "" iraise2 = levnext - levbot; -#line 3502 "" +#line 3556 "" if (indxr == 5 && levnext > 8) { -#line 3502 "" +#line 3556 "" --iraise2; -#line 3502 "" +#line 3556 "" } -#line 3503 "" +#line 3557 "" iraise = max(iraise1,iraise2); -#line 3504 "" +#line 3558 "" if ((iraise + 50) % 2 == 1 && iraise + levbot <= 9) { -#line 3504 "" +#line 3558 "" --iraise; -#line 3504 "" +#line 3558 "" } -#line 3506 "" +#line 3560 "" } -#line 3507 "" +#line 3561 "" nolev[*ivx + *ip * 24] = iraise + 100; -#line 3508 "" +#line 3562 "" return 0; } /* chkkbdrests_ */ @@ -8599,80 +8703,80 @@ L7: extern /* Subroutine */ int g1etchar_(char *, integer *, char *, ftnlen, ftnlen); -#line 3513 "" +#line 3567 "" *literr = 0; -#line 3514 "" +#line 3568 "" itype = 1; -#line 3515 "" +#line 3569 "" L17: -#line 3515 "" +#line 3569 "" g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 3516 "" +#line 3570 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 3516 "" +#line 3570 "" if (*(unsigned char *)charq == *(unsigned char *)&ch__1[0]) { -#line 3517 "" +#line 3571 "" ++itype; -#line 3518 "" +#line 3572 "" if (itype > 3) { -#line 3519 "" +#line 3573 "" *literr = 1; -#line 3520 "" +#line 3574 "" return 0; -#line 3521 "" +#line 3575 "" } -#line 3522 "" +#line 3576 "" goto L17; -#line 3523 "" +#line 3577 "" } -#line 3524 "" +#line 3578 "" lenlit = itype; -#line 3525 "" +#line 3579 "" L18: -#line 3525 "" +#line 3579 "" g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 3526 "" +#line 3580 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 3526 "" +#line 3580 "" if (*(unsigned char *)charq == *(unsigned char *)&ch__1[0]) { -#line 3527 "" +#line 3581 "" g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 3528 "" +#line 3582 "" if (*(unsigned char *)charq != ' ') { /* Starting a new tex command withing the string */ -#line 3532 "" +#line 3586 "" lenlit += 2; -#line 3533 "" +#line 3587 "" if (lenlit > 128) { -#line 3534 "" +#line 3588 "" *literr = 2; -#line 3535 "" +#line 3589 "" return 0; -#line 3536 "" +#line 3590 "" } -#line 3537 "" +#line 3591 "" goto L18; -#line 3538 "" +#line 3592 "" } -#line 3539 "" +#line 3593 "" } else { -#line 3540 "" +#line 3594 "" ++lenlit; -#line 3541 "" +#line 3595 "" if (lenlit > 128) { -#line 3542 "" +#line 3596 "" *literr = 2; -#line 3543 "" +#line 3597 "" return 0; -#line 3544 "" +#line 3598 "" } -#line 3545 "" +#line 3599 "" goto L18; -#line 3546 "" +#line 3600 "" } -#line 3547 "" +#line 3601 "" return 0; } /* chklit_ */ @@ -8704,11 +8808,11 @@ L18: /* numbers. If moved=.true., iccount on exit is on end of last number. */ /* If moved=.false., iccount still on +/- */ -#line 3560 "" +#line 3614 "" i__1 = *iccount - 2; -#line 3560 "" +#line 3614 "" i__2 = *iccount; -#line 3560 "" +#line 3614 "" if (i_indx("sfnA", lineq + i__1, (ftnlen)4, *iccount - 1 - i__1) > 0 && i_indx("0123456789.", lineq + i__2, (ftnlen)11, *iccount + 1 - i__2) > 0) { @@ -8716,100 +8820,100 @@ L18: /* Prior char was accid & next is #; this may be start of accidental shift. */ /* Must test for "." above in case we get "<" or ">" */ -#line 3566 "" +#line 3620 "" ipm = i_indx("- +< >", lineq + (*iccount - 1), (ftnlen)6, (ftnlen)1) - 2; -#line 3567 "" +#line 3621 "" i__1 = *iccount + 1; -#line 3567 "" +#line 3621 "" i__2 = *iccount; -#line 3567 "" +#line 3621 "" if (s_cmp(lineq + i__2, ".", *iccount + 1 - i__2, (ftnlen)1) == 0 && i_indx("0123456789", lineq + i__1, (ftnlen)10, *iccount + 2 - i__1) == 0) { /* Rare case of [accid][+/-].[letter]. Bail out */ -#line 3572 "" +#line 3626 "" *moved = FALSE_; -#line 3573 "" +#line 3627 "" return 0; -#line 3574 "" +#line 3628 "" } -#line 3575 "" +#line 3629 "" ishorz = ipm > 1; /* Save iccount in case it's not accid shift and we have to reset. */ -#line 3579 "" +#line 3633 "" icsav = *iccount; -#line 3580 "" +#line 3634 "" ++(*iccount); -#line 3581 "" +#line 3635 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 3582 "" +#line 3636 "" if (ishorz || i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* This has to be accidental shift. Set vert. shift. */ -#line 3586 "" +#line 3640 "" if (! ishorz) { /* +/- syntax, both shifts set, vertical first */ -#line 3590 "" +#line 3644 "" i__1 = (integer) (ipm * fnum + 32.5f); -#line 3590 "" +#line 3644 "" setbits_(nacc, &c__6, &c__4, &i__1); -#line 3591 "" +#line 3645 "" ipm = i_indx("- +", durq, (ftnlen)3, (ftnlen)1) - 2; -#line 3592 "" +#line 3646 "" ++(*iccount); -#line 3593 "" +#line 3647 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 3594 "" +#line 3648 "" } else { /* </> syntax, only horiz set */ -#line 3598 "" +#line 3652 "" ipm += -3; -#line 3599 "" +#line 3653 "" } /* Set horiz. shift */ -#line 3603 "" +#line 3657 "" r__1 = (ipm * fnum + 5.35f) * 20; -#line 3603 "" +#line 3657 "" i__1 = i_nint(&r__1); -#line 3603 "" +#line 3657 "" setbits_(nacc, &c__7, &c__10, &i__1); -#line 3604 "" +#line 3658 "" --(*iccount); -#line 3605 "" +#line 3659 "" *moved = TRUE_; -#line 3606 "" +#line 3660 "" } else { /* False alarm. Reset everything and flow onward */ -#line 3610 "" +#line 3664 "" *moved = FALSE_; -#line 3611 "" +#line 3665 "" *iccount = icsav; -#line 3612 "" +#line 3666 "" } -#line 3613 "" +#line 3667 "" } else { /* Either prior char was not 'sfn' or next was not digit, so take no action */ -#line 3617 "" +#line 3671 "" *moved = FALSE_; -#line 3618 "" +#line 3672 "" } -#line 3619 "" +#line 3673 "" return 0; } /* chkpm4ac_ */ @@ -8832,62 +8936,62 @@ L18: /* Returns string calling Don's TeX macro \pmxclef, for drawing small clefs. */ -#line 3627 "" +#line 3681 "" *nclef = lbit_shift(*isl, (ftnlen)-12) & 7; -#line 3628 "" +#line 3682 "" if (*nclef == 0) { /* treble */ -#line 3632 "" +#line 3686 "" nlev = 2; -#line 3633 "" +#line 3687 "" } else if (*nclef > 6) { /* French violin */ -#line 3637 "" +#line 3691 "" nlev = 0; -#line 3638 "" +#line 3692 "" } else if (*nclef < 5) { /* C-clef */ -#line 3642 "" +#line 3696 "" nlev = (*nclef << 1) - 2; -#line 3643 "" +#line 3697 "" } else { /* F-clef */ -#line 3647 "" +#line 3701 "" nlev = (*nclef << 1) - 6; -#line 3648 "" +#line 3702 "" } /* Writing concatenation */ -#line 3649 "" +#line 3703 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 3649 "" +#line 3703 "" i__1[0] = 1, a__1[0] = ch__1; -#line 3649 "" +#line 3703 "" i__1[1] = 7, a__1[1] = "pmxclef"; -#line 3649 "" +#line 3703 "" i__2 = min(*nclef,7) + 48; -#line 3649 "" +#line 3703 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 3649 "" +#line 3703 "" i__1[2] = 1, a__1[2] = ch__2; -#line 3649 "" +#line 3703 "" i__3 = nlev + 48; -#line 3649 "" +#line 3703 "" chax_(ch__3, (ftnlen)1, &i__3); -#line 3649 "" +#line 3703 "" i__1[3] = 1, a__1[3] = ch__3; -#line 3649 "" +#line 3703 "" s_cat(notexq, a__1, i__1, &c__4, notexq_len); -#line 3651 "" +#line 3705 "" *lnote = 10; -#line 3652 "" +#line 3706 "" return 0; } /* clefsym_ */ @@ -8942,8 +9046,8 @@ L18: integer *); /* Fortran I/O blocks */ - static cilist io___291 = { 0, 6, 0, 0, 0 }; - static cilist io___292 = { 0, 6, 0, 0, 0 }; + static cilist io___293 = { 0, 6, 0, 0, 0 }; + static cilist io___294 = { 0, 6, 0, 0, 0 }; @@ -8962,17 +9066,17 @@ L18: /* icrdot(icrd)(27-29) = level rank of chord-note among accid-notes */ /* twooftwo will be true 2nd time thru; signal to store shifts w/ notes */ -#line 3679 "" +#line 3733 "" /* Parameter adjustments */ -#line 3679 "" +#line 3733 "" --ksegrb0; -#line 3679 "" +#line 3733 "" segrb0 -= 3; -#line 3679 "" +#line 3733 "" --micrd; -#line 3679 "" +#line 3733 "" -#line 3679 "" +#line 3733 "" /* Function Body */ /* Fancy sharp boundary. fl,sh,na,dfl,dsh */ @@ -8989,152 +9093,152 @@ L18: /* Set up barrier segrb(iseg,ipoint) to define coords of corner points */ /* on stem+notes */ -#line 3710 "" +#line 3764 "" i__1 = *nsegrb0; -#line 3710 "" +#line 3764 "" for (iseg = 1; iseg <= i__1; ++iseg) { -#line 3711 "" +#line 3765 "" segrb[(iseg << 1) - 2] = segrb0[(iseg << 1) + 1]; -#line 3712 "" +#line 3766 "" segrb[(iseg << 1) - 1] = segrb0[(iseg << 1) + 2]; -#line 3713 "" +#line 3767 "" ksegrb[iseg - 1] = ksegrb0[iseg]; -#line 3714 "" +#line 3768 "" /* L11: */ -#line 3714 "" +#line 3768 "" } -#line 3715 "" +#line 3769 "" nsegrb = *nsegrb0; -#line 3716 "" +#line 3770 "" *rmsshift = 0.f; -#line 3717 "" +#line 3771 "" shiftmin = 1e3f; -#line 3718 "" +#line 3772 "" i__1 = *naccid; -#line 3718 "" +#line 3772 "" for (iwa = 1; iwa <= i__1; ++iwa) { /* Initialize shift for this note */ -#line 3722 "" +#line 3776 "" shift = 0.f; -#line 3723 "" +#line 3777 "" mainnote = micrd[iwa] == 0; -#line 3724 "" +#line 3778 "" isetshft[iwa - 1] = -1; /* Get note level and accidental type */ -#line 3728 "" +#line 3782 "" if (mainnote) { -#line 3729 "" +#line 3783 "" nolev = *nolevm; -#line 3730 "" +#line 3784 "" iacctype = iacctbl[igetbits_(nacc, &c__3, &c__0) - 1]; -#line 3731 "" +#line 3785 "" } else { -#line 3732 "" +#line 3786 "" nolev = igetbits_(&comtrill_1.icrdat[micrd[iwa] - 1], &c__7, & c__12); -#line 3733 "" +#line 3787 "" iacctype = iacctbl[igetbits_(&comtrill_1.icrdat[micrd[iwa] - 1], & c__3, &c__20) - 1]; -#line 3734 "" +#line 3788 "" } /* Cycle thru segments on right edge of this accidental */ -#line 3738 "" +#line 3792 "" i__2 = nsegar[iacctype - 1] - 1; -#line 3738 "" +#line 3792 "" for (isega = 1; isega <= i__2; ++isega) { -#line 3739 "" +#line 3793 "" ybotaseg = nolev + segar[iacctype + ((isega << 1) + 2) * 5 - 16]; -#line 3740 "" +#line 3794 "" ytopaseg = nolev + segar[iacctype + ((isega + 1 << 1) + 2) * 5 - 16]; /* Cycle thru segments of right-hand barrier */ -#line 3744 "" +#line 3798 "" i__3 = nsegrb - 1; -#line 3744 "" +#line 3798 "" for (isegrb = 1; isegrb <= i__3; ++isegrb) { /* Must find all barrier segments that start below ytopseg & end above ybotseg */ -#line 3748 "" +#line 3802 "" if (segrb[(isegrb << 1) - 1] < ytopaseg) { /* Barrier seg starts below top of accid */ /* Check if barrier seg ends above bottom of accid */ -#line 3753 "" +#line 3807 "" if (segrb[(isegrb + 1 << 1) - 1] > ybotaseg) { -#line 3754 "" +#line 3808 "" if (shift > segrb[(isegrb << 1) - 2] - segar[iacctype + ((isega << 1) + 1) * 5 - 16]) { -#line 3756 "" +#line 3810 "" shift = segrb[(isegrb << 1) - 2] - segar[iacctype + ((isega << 1) + 1) * 5 - 16]; /* Record the cause of the shift */ -#line 3760 "" +#line 3814 "" isetshft[iwa - 1] = ksegrb[isegrb - 1]; -#line 3761 "" +#line 3815 "" } -#line 3762 "" +#line 3816 "" } /* Does barrier segment end above top of accid seg? */ -#line 3766 "" +#line 3820 "" if (segrb[(isegrb + 1 << 1) - 1] > ytopaseg) { -#line 3766 "" +#line 3820 "" goto L4; -#line 3766 "" +#line 3820 "" } -#line 3767 "" +#line 3821 "" } -#line 3768 "" +#line 3822 "" /* L3: */ -#line 3768 "" +#line 3822 "" } -#line 3769 "" +#line 3823 "" L4: -#line 3770 "" +#line 3824 "" /* L2: */ -#line 3770 "" +#line 3824 "" ; -#line 3770 "" +#line 3824 "" } -#line 3771 "" +#line 3825 "" if (! bit_test(*nacc,28) && dabs(shift) > 1e-4f && ! (*lasttime)) { /* if (nolev .eq. levmaxacc) then */ -#line 3774 "" +#line 3828 "" if (nolev == *levmaxacc && isetshft[iwa - 1] == -1) { -#line 3775 "" +#line 3829 "" *rmsshift = 1e3f; -#line 3776 "" +#line 3830 "" return 0; -#line 3777 "" +#line 3831 "" } /* Does the following properly account for left-shifted noteheads? */ /* Top-down rank of this note we just shifted */ -#line 3783 "" +#line 3837 "" if (mainnote) { -#line 3784 "" +#line 3838 "" irank = *icrdot0; -#line 3785 "" +#line 3839 "" } else { -#line 3786 "" +#line 3840 "" irank = igetbits_(&comtrill_1.icrdot[micrd[iwa] - 1], &c__3, & c__27); -#line 3787 "" +#line 3841 "" } /* Compare level-rank of this note vs. that of note that caused the shift. */ @@ -9147,264 +9251,264 @@ L4: /* icrd: Chord-note accidental */ /* isetshft(i),i=1,naccid: what set shift for this accid, same codes */ -#line 3799 "" +#line 3853 "" if (isetshft[iwa - 1] < 0) { -#line 3800 "" +#line 3854 "" iranksetter = 0; -#line 3801 "" +#line 3855 "" } else if (isetshft[iwa - 1] == 0) { -#line 3802 "" +#line 3856 "" iranksetter = *icrdot0; -#line 3803 "" +#line 3857 "" } else { -#line 3804 "" +#line 3858 "" iranksetter = igetbits_(&comtrill_1.icrdot[isetshft[iwa - 1] - 1], &c__3, &c__27); -#line 3805 "" +#line 3859 "" } -#line 3806 "" +#line 3860 "" if (iranksetter != 0 && irank != iranksetter + 1) { -#line 3807 "" +#line 3861 "" *rmsshift = 1e3f; -#line 3808 "" +#line 3862 "" return 0; -#line 3809 "" +#line 3863 "" } -#line 3810 "" +#line 3864 "" } /* Computing 2nd power */ -#line 3811 "" +#line 3865 "" r__1 = shift; -#line 3811 "" +#line 3865 "" *rmsshift += r__1 * r__1; -#line 3812 "" +#line 3866 "" if (*lasttime && dabs(shift) > 1e-4f) { -#line 3813 "" +#line 3867 "" if (mainnote) { -#line 3814 "" +#line 3868 "" if (! bit_test(*nacc,29)) { -#line 3814 "" +#line 3868 "" goto L10; -#line 3814 "" +#line 3868 "" } -#line 3815 "" +#line 3869 "" } else { -#line 3816 "" +#line 3870 "" if (! bit_test(comtrill_1.icrdat[micrd[iwa] - 1],29)) { -#line 3816 "" +#line 3870 "" goto L10; -#line 3816 "" +#line 3870 "" } -#line 3817 "" +#line 3871 "" } /* If here, "A" was set on a manual shift, so must cumulate the shift. Note that if there */ /* was a manual shift but auto-shift was zero, will not come thru here, but shift value */ /* will be left intact. */ -#line 3823 "" +#line 3877 "" if (mainnote) { -#line 3824 "" +#line 3878 "" shift += (igetbits_(nacc, &c__7, &c__10) - 107) * .05f; -#line 3825 "" +#line 3879 "" } else { -#line 3826 "" +#line 3880 "" shift += (igetbits_(&comtrill_1.icrdot[micrd[iwa] - 1], &c__7, &c__20) - 107) * .05f; -#line 3827 "" +#line 3881 "" } -#line 3828 "" +#line 3882 "" L10: -#line 3829 "" +#line 3883 "" if (*twooftwo) { /* Record the shift for this accidental */ -#line 3833 "" +#line 3887 "" if (shift < -5.35f) { -#line 3834 "" +#line 3888 "" printl_(" ", (ftnlen)1); -#line 3835 "" +#line 3889 "" printl_("WARNING: auto-generated accidental shift too bi"\ "g for PMX, ignoring", (ftnlen)66); -#line 3837 "" +#line 3891 "" } else { -#line 3838 "" +#line 3892 "" r__1 = (shift + 5.35f) * 20; -#line 3838 "" +#line 3892 "" ishift = i_nint(&r__1); -#line 3839 "" +#line 3893 "" if (mainnote) { -#line 3840 "" +#line 3894 "" setbits_(nacc, &c__7, &c__10, &ishift); -#line 3841 "" +#line 3895 "" } else { -#line 3842 "" +#line 3896 "" setbits_(&comtrill_1.icrdot[micrd[iwa] - 1], &c__7, & c__20, &ishift); -#line 3843 "" +#line 3897 "" } -#line 3844 "" +#line 3898 "" } -#line 3845 "" +#line 3899 "" } else { /* This is the earlier call to precrd, so need minimum shift */ -#line 3849 "" +#line 3903 "" shiftmin = dmin(shiftmin,shift); -#line 3850 "" +#line 3904 "" } -#line 3851 "" +#line 3905 "" } /* Bail out if this is the last accidental to check */ -#line 3855 "" +#line 3909 "" if (iwa == *naccid) { -#line 3855 "" +#line 3909 "" goto L1; -#line 3855 "" +#line 3909 "" } /* Add this accidental to the right barrier! Count down from highest barrier segment, */ /* find 1st one starting below top of accid, and first one starting below bot. */ -#line 3860 "" +#line 3914 "" for (ibelowtop = nsegrb; ibelowtop >= 1; --ibelowtop) { -#line 3861 "" +#line 3915 "" if (segrb[(ibelowtop << 1) - 1] < nolev + segal[iacctype + (( nsegal[iacctype - 1] << 1) + 2) * 5 - 16]) { -#line 3863 "" +#line 3917 "" for (ibelowbot = ibelowtop; ibelowbot >= 1; --ibelowbot) { -#line 3864 "" +#line 3918 "" if (segrb[(ibelowbot << 1) - 1] < nolev + segal[iacctype + 4]) { -#line 3864 "" +#line 3918 "" goto L6; -#line 3864 "" +#line 3918 "" } -#line 3866 "" +#line 3920 "" /* L9: */ -#line 3866 "" +#line 3920 "" } -#line 3867 "" - s_wsle(&io___291); -#line 3867 "" +#line 3921 "" + s_wsle(&io___293); +#line 3921 "" do_lio(&c__9, &c__1, "Oops2!", (ftnlen)6); -#line 3867 "" +#line 3921 "" e_wsle(); -#line 3868 "" +#line 3922 "" stop1_(); -#line 3869 "" +#line 3923 "" } -#line 3870 "" +#line 3924 "" /* L5: */ -#line 3870 "" +#line 3924 "" } -#line 3871 "" - s_wsle(&io___292); -#line 3871 "" +#line 3925 "" + s_wsle(&io___294); +#line 3925 "" do_lio(&c__9, &c__1, "Ugh0! in crdaccs", (ftnlen)16); -#line 3871 "" +#line 3925 "" e_wsle(); -#line 3872 "" +#line 3926 "" stop1_(); -#line 3873 "" +#line 3927 "" L6: -#line 3874 "" +#line 3928 "" netgain = nsegal[iacctype - 1] - ibelowtop + ibelowbot; /* Shift high segments up */ -#line 3878 "" +#line 3932 "" if (netgain >= 0) { -#line 3879 "" +#line 3933 "" i__2 = ibelowtop + 1; -#line 3879 "" +#line 3933 "" for (isegrb = nsegrb; isegrb >= i__2; --isegrb) { -#line 3880 "" +#line 3934 "" segrb[(isegrb + netgain << 1) - 2] = segrb[(isegrb << 1) - 2]; -#line 3881 "" +#line 3935 "" segrb[(isegrb + netgain << 1) - 1] = segrb[(isegrb << 1) - 1]; -#line 3882 "" +#line 3936 "" ksegrb[isegrb + netgain - 1] = ksegrb[isegrb - 1]; -#line 3883 "" +#line 3937 "" /* L7: */ -#line 3883 "" +#line 3937 "" } /* Set up 1st segment above accid */ -#line 3887 "" +#line 3941 "" segrb[(ibelowtop + netgain << 1) - 2] = segrb[(ibelowtop << 1) - 2]; -#line 3888 "" +#line 3942 "" segrb[(ibelowtop + netgain << 1) - 1] = nolev + segal[iacctype + ( (nsegal[iacctype - 1] << 1) + 2) * 5 - 16]; -#line 3890 "" +#line 3944 "" ksegrb[ibelowtop + netgain - 1] = ksegrb[ibelowtop - 1]; -#line 3891 "" +#line 3945 "" } else { /* netgain<0, must remove segments. Use same coding but reverse order, */ /* work from bottom up */ -#line 3896 "" +#line 3950 "" segrb[(ibelowtop + netgain << 1) - 2] = segrb[(ibelowtop << 1) - 2]; -#line 3897 "" +#line 3951 "" segrb[(ibelowtop + netgain << 1) - 1] = nolev + segal[iacctype + ( (nsegal[iacctype - 1] << 1) + 2) * 5 - 16]; -#line 3899 "" +#line 3953 "" ksegrb[ibelowtop + netgain - 1] = ksegrb[ibelowtop - 1]; -#line 3900 "" +#line 3954 "" i__2 = nsegrb; -#line 3900 "" +#line 3954 "" for (isegrb = ibelowtop + 1; isegrb <= i__2; ++isegrb) { -#line 3901 "" +#line 3955 "" segrb[(isegrb + netgain << 1) - 2] = segrb[(isegrb << 1) - 2]; -#line 3902 "" +#line 3956 "" segrb[(isegrb + netgain << 1) - 1] = segrb[(isegrb << 1) - 1]; -#line 3903 "" +#line 3957 "" ksegrb[isegrb + netgain - 1] = ksegrb[isegrb - 1]; -#line 3904 "" +#line 3958 "" /* L12: */ -#line 3904 "" +#line 3958 "" } -#line 3905 "" +#line 3959 "" } /* Insert new segments */ -#line 3909 "" +#line 3963 "" i__2 = nsegal[iacctype - 1] - 1; -#line 3909 "" +#line 3963 "" for (isega = 1; isega <= i__2; ++isega) { -#line 3910 "" +#line 3964 "" segrb[(ibelowbot + isega << 1) - 2] = shift + segal[iacctype + (( isega << 1) + 1) * 5 - 16]; -#line 3911 "" +#line 3965 "" segrb[(ibelowbot + isega << 1) - 1] = nolev + segal[iacctype + (( isega << 1) + 2) * 5 - 16]; -#line 3912 "" +#line 3966 "" if (mainnote) { -#line 3913 "" +#line 3967 "" ksegrb[ibelowbot + isega - 1] = 0; -#line 3914 "" +#line 3968 "" } else { -#line 3915 "" +#line 3969 "" ksegrb[ibelowbot + isega - 1] = micrd[iwa]; -#line 3916 "" +#line 3970 "" } -#line 3917 "" +#line 3971 "" /* L8: */ -#line 3917 "" +#line 3971 "" } /* Update number of barrier segments */ -#line 3921 "" +#line 3975 "" nsegrb += netgain; /* c */ /* c Temporary printout for boundary segments as built up */ @@ -9415,23 +9519,23 @@ L6: /* write(15,'(a/(2i5))')' micrd isetshft', */ /* * (micrd(iwa1),isetshft(iwa1),iwa1=1,iwa) */ /* c */ -#line 3931 "" +#line 3985 "" L1: -#line 3931 "" +#line 3985 "" ; -#line 3931 "" +#line 3985 "" } /* next accidental */ -#line 3932 "" +#line 3986 "" if (*lasttime && ! (*twooftwo)) { /* This is the final call on the pre-ask pass, so compute left-shift rqmt. */ -#line 3936 "" +#line 3990 "" r__1 = shiftmin * -20; -#line 3936 "" +#line 3990 "" *icashft = i_nint(&r__1); -#line 3937 "" +#line 3991 "" } /* c */ /* c Temporary printout for boundary segments */ @@ -9444,7 +9548,7 @@ L1: /* * (micrd(iwa),isetshft(iwa),iwa=1,naccid) */ /* end if */ /* c */ -#line 3949 "" +#line 4003 "" return 0; } /* crdacc_ */ @@ -9481,7 +9585,7 @@ L1: integer *); /* Fortran I/O blocks */ - static cilist io___321 = { 0, 6, 0, 0, 0 }; + static cilist io___323 = { 0, 6, 0, 0, 0 }; @@ -9514,27 +9618,27 @@ L1: /* Initialize right-barrier */ -#line 3989 "" +#line 4043 "" /* Parameter adjustments */ -#line 3989 "" +#line 4043 "" --kicrd; -#line 3989 "" +#line 4043 "" -#line 3989 "" +#line 4043 "" /* Function Body */ -#line 3989 "" +#line 4043 "" segrb0[0] = 0.f; -#line 3990 "" +#line 4044 "" segrb0[1] = -1e3f; -#line 3991 "" +#line 4045 "" segrb0[2] = 0.f; -#line 3992 "" +#line 4046 "" segrb0[3] = 1e3f; -#line 3993 "" +#line 4047 "" nsegrb0 = 2; -#line 3994 "" +#line 4048 "" ksegrb0[0] = -1; -#line 3995 "" +#line 4049 "" ksegrb0[1] = -1; /* Search for left-shifted notes, Make up the initial right-barrier, which */ @@ -9542,124 +9646,124 @@ L1: /* irest()(27) is set if any notes are left-shifted */ /* Must use ALL chord notes, not just ones w/ accid's. */ -#line 4002 "" +#line 4056 "" if (bit_test(*irest,27)) { -#line 4003 "" +#line 4057 "" i__1 = comtrill_1.icrd2; -#line 4003 "" +#line 4057 "" for (icrd = comtrill_1.icrd1 - 1; icrd <= i__1; ++icrd) { -#line 4004 "" +#line 4058 "" if (icrd == comtrill_1.icrd1 - 1) { /* Main note */ /* lshift = btest(ipl,8) */ -#line 4009 "" +#line 4063 "" lshift = bit_test(*ipl,8) || bit_test(*nacc,31); -#line 4010 "" +#line 4064 "" if (lshift) { -#line 4010 "" +#line 4064 "" nolev = *nolevm; -#line 4010 "" +#line 4064 "" } -#line 4011 "" +#line 4065 "" } else { /* Chord note */ -#line 4015 "" +#line 4069 "" lshift = bit_test(comtrill_1.icrdat[icrd - 1],23); /* if (lshift) nolev = igetbits(icrdat(icrd),7,12) */ -#line 4017 "" +#line 4071 "" if (lshift) { -#line 4018 "" +#line 4072 "" nolev = igetbits_(&comtrill_1.icrdat[icrd - 1], &c__7, & c__12); -#line 4019 "" +#line 4073 "" if (bit_test(*nacc,31) && nolev == *nolevm + 1) { /* This note is not really shifted, It is the upper of a 2nd with the main */ /* note on an upstem, and Main note must be shifted. */ /* nacc(31) signals the real truth. */ -#line 4025 "" +#line 4079 "" lshift = FALSE_; -#line 4026 "" +#line 4080 "" } -#line 4027 "" +#line 4081 "" } -#line 4028 "" +#line 4082 "" } -#line 4029 "" +#line 4083 "" if (lshift) { -#line 4030 "" +#line 4084 "" i__2 = nsegrb0 - 1; -#line 4030 "" +#line 4084 "" for (isegrb = 1; isegrb <= i__2; ++isegrb) { -#line 4031 "" +#line 4085 "" if (segrb0[(isegrb + 1 << 1) - 1] > (real) (nolev - 1)) { /* Add this notehead to the right boundary here. Move all higher segs up 2. */ -#line 4035 "" +#line 4089 "" i__3 = isegrb + 1; -#line 4035 "" +#line 4089 "" for (iiseg = nsegrb0; iiseg >= i__3; --iiseg) { -#line 4036 "" +#line 4090 "" segrb0[(iiseg + 2 << 1) - 2] = segrb0[(iiseg << 1) - 2]; -#line 4037 "" +#line 4091 "" segrb0[(iiseg + 2 << 1) - 1] = segrb0[(iiseg << 1) - 1]; -#line 4038 "" +#line 4092 "" ksegrb0[iiseg + 1] = ksegrb0[iiseg - 1]; -#line 4039 "" +#line 4093 "" /* L17: */ -#line 4039 "" +#line 4093 "" } -#line 4040 "" +#line 4094 "" goto L18; -#line 4041 "" +#line 4095 "" } -#line 4042 "" +#line 4096 "" /* L16: */ -#line 4042 "" +#line 4096 "" } -#line 4043 "" +#line 4097 "" L18: /* Insert notehead into list. Set kseg=-2 to signal notehead shift. */ -#line 4047 "" +#line 4101 "" iiseg = isegrb + 1; -#line 4048 "" +#line 4102 "" segrb0[(iiseg << 1) - 2] = -1.2f; -#line 4049 "" +#line 4103 "" segrb0[(iiseg << 1) - 1] = nolev - 1.f; -#line 4050 "" +#line 4104 "" ksegrb0[iiseg - 1] = -2; -#line 4051 "" +#line 4105 "" segrb0[(iiseg + 1 << 1) - 2] = 0.f; -#line 4052 "" +#line 4106 "" segrb0[(iiseg + 1 << 1) - 1] = nolev + 1.f; -#line 4053 "" +#line 4107 "" ksegrb0[iiseg] = -1; -#line 4054 "" +#line 4108 "" nsegrb0 += 2; -#line 4055 "" +#line 4109 "" } -#line 4056 "" +#line 4110 "" /* L15: */ -#line 4056 "" +#line 4110 "" } -#line 4057 "" +#line 4111 "" } /* Done setting right barrier for left-shifted noteheads */ -#line 4061 "" +#line 4115 "" tagged = FALSE_; -#line 4062 "" +#line 4116 "" manual = FALSE_; /* Preprocess to check for manual shifts. */ @@ -9673,302 +9777,302 @@ L18: /* End if */ /* End if */ -#line 4075 "" +#line 4129 "" maxmanshft = 0; -#line 4076 "" +#line 4130 "" i__1 = *naccid; -#line 4076 "" +#line 4130 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 4077 "" +#line 4131 "" if (kicrd[i__] == 0) { /* Main note */ -#line 4081 "" +#line 4135 "" manshft = igetbits_(nacc, &c__7, &c__10); -#line 4082 "" +#line 4136 "" if (manshft != 0) { -#line 4083 "" +#line 4137 "" manual = TRUE_; -#line 4084 "" +#line 4138 "" if (bit_test(*nacc,29)) { -#line 4085 "" +#line 4139 "" tagged = TRUE_; -#line 4086 "" +#line 4140 "" } else { /* maxmanshft = max(maxmanshft,64-manshft) */ /* Computing MAX */ -#line 4088 "" +#line 4142 "" i__2 = maxmanshft, i__3 = 107 - manshft; -#line 4088 "" +#line 4142 "" maxmanshft = max(i__2,i__3); -#line 4089 "" +#line 4143 "" } -#line 4090 "" +#line 4144 "" } -#line 4091 "" +#line 4145 "" } else { /* Chord note */ -#line 4095 "" +#line 4149 "" manshft = igetbits_(&comtrill_1.icrdot[kicrd[i__] - 1], &c__7, & c__20); -#line 4096 "" +#line 4150 "" if (manshft != 0) { -#line 4097 "" +#line 4151 "" manual = TRUE_; -#line 4098 "" +#line 4152 "" if (bit_test(comtrill_1.icrdat[kicrd[i__] - 1],29)) { -#line 4099 "" +#line 4153 "" tagged = TRUE_; -#line 4100 "" +#line 4154 "" } else { /* maxmanshft = max(maxmanshft,64-manshft) */ /* Computing MAX */ -#line 4102 "" +#line 4156 "" i__2 = maxmanshft, i__3 = 107 - manshft; -#line 4102 "" +#line 4156 "" maxmanshft = max(i__2,i__3); -#line 4103 "" +#line 4157 "" } -#line 4104 "" +#line 4158 "" } -#line 4105 "" +#line 4159 "" } -#line 4106 "" +#line 4160 "" /* L13: */ -#line 4106 "" +#line 4160 "" } -#line 4107 "" +#line 4161 "" if (manual) { -#line 4108 "" +#line 4162 "" if (tagged) { /* zero out all untagged shifts */ -#line 4112 "" +#line 4166 "" i__1 = *naccid; -#line 4112 "" +#line 4166 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 4113 "" +#line 4167 "" if (kicrd[i__] == 0) { -#line 4114 "" +#line 4168 "" if (! bit_test(*nacc,29)) { -#line 4114 "" +#line 4168 "" setbits_(nacc, &c__7, &c__10, &c__0); -#line 4114 "" +#line 4168 "" } -#line 4115 "" +#line 4169 "" } else { -#line 4116 "" +#line 4170 "" if (! bit_test(comtrill_1.icrdat[kicrd[i__] - 1],29)) { -#line 4116 "" +#line 4170 "" setbits_(&comtrill_1.icrdot[kicrd[i__] - 1], &c__7, & c__20, &c__0); -#line 4116 "" +#line 4170 "" } -#line 4118 "" +#line 4172 "" } -#line 4119 "" +#line 4173 "" /* L14: */ -#line 4119 "" +#line 4173 "" } -#line 4120 "" +#line 4174 "" } else { /* There are manual shifts but none tagged. Only proceed if "Ao" was entered */ -#line 4124 "" +#line 4178 "" if (! bit_test(*nacc,28)) { -#line 4125 "" +#line 4179 "" *icashft = maxmanshft; -#line 4126 "" +#line 4180 "" return 0; -#line 4127 "" +#line 4181 "" } -#line 4128 "" +#line 4182 "" } -#line 4129 "" +#line 4183 "" } -#line 4130 "" +#line 4184 "" if (bit_test(*nacc,28)) { /* Take the accidentals in order as originally input, then exit. */ -#line 4134 "" +#line 4188 "" crdacc_(nacc, naccid, &kicrd[1], nolevm, &rmsshift, &c_true, &idummy, &idummy, segrb0, ksegrb0, &nsegrb0, twooftwo, icashft); -#line 4136 "" +#line 4190 "" return 0; /* end if */ -#line 4138 "" +#line 4192 "" } else if (*naccid == 3) { /* Special treatment if 3 accidentals in chord. If there aren't accids on a 2nd */ /* then place in order top, bottom, middle. */ -#line 4143 "" +#line 4197 "" for (i__ = 1; i__ <= 3; ++i__) { -#line 4144 "" +#line 4198 "" if (kicrd[i__] == 0) { -#line 4145 "" +#line 4199 "" irank = *icrdot0; -#line 4146 "" +#line 4200 "" nolev = *nolevm; -#line 4147 "" +#line 4201 "" } else { -#line 4148 "" +#line 4202 "" irank = igetbits_(&comtrill_1.icrdot[kicrd[i__] - 1], &c__3, & c__27); -#line 4149 "" +#line 4203 "" nolev = igetbits_(&comtrill_1.icrdat[kicrd[i__] - 1], &c__7, & c__12); -#line 4150 "" +#line 4204 "" } -#line 4151 "" +#line 4205 "" if (irank == 1) { -#line 4152 "" +#line 4206 "" micrd[0] = kicrd[i__]; -#line 4153 "" +#line 4207 "" } else { -#line 4154 "" +#line 4208 "" micrd[5 - irank - 1] = kicrd[i__]; -#line 4155 "" +#line 4209 "" } -#line 4156 "" +#line 4210 "" if (irank == 2) { -#line 4157 "" +#line 4211 "" levmidacc = nolev; -#line 4158 "" +#line 4212 "" } -#line 4159 "" +#line 4213 "" /* L20: */ -#line 4159 "" +#line 4213 "" } -#line 4160 "" +#line 4214 "" if (*levmaxacc != levmidacc + 1 && levmidacc != *levminacc + 1) { -#line 4162 "" +#line 4216 "" crdacc_(nacc, naccid, micrd, nolevm, &rmsshift, &c_true, &idummy, &idummy, segrb0, ksegrb0, &nsegrb0, twooftwo, icashft); -#line 4164 "" +#line 4218 "" return 0; -#line 4165 "" +#line 4219 "" } -#line 4166 "" +#line 4220 "" } -#line 4167 "" +#line 4221 "" rmsmin = 1e5f; /* Initialize permutation array */ -#line 4171 "" +#line 4225 "" i__1 = *naccid; -#line 4171 "" +#line 4225 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 4172 "" +#line 4226 "" iperm[i__ - 1] = i__; -#line 4173 "" +#line 4227 "" /* L7: */ -#line 4173 "" +#line 4227 "" } /* Start looping over permutations */ -#line 4177 "" +#line 4231 "" for (ip = 1; ip <= 5041; ++ip) { -#line 4178 "" +#line 4232 "" if (ip != 1) { /* Work the magic algorithm to get the next permutation */ -#line 4182 "" +#line 4236 "" for (k = *naccid - 1; k >= 1; --k) { -#line 4183 "" +#line 4237 "" if (iperm[k - 1] <= iperm[k]) { -#line 4183 "" +#line 4237 "" goto L2; -#line 4183 "" +#line 4237 "" } -#line 4184 "" +#line 4238 "" /* L1: */ -#line 4184 "" +#line 4238 "" } /* If here, we just got the last permutation, so exit the loop over permutations */ -#line 4188 "" +#line 4242 "" goto L10; -#line 4189 "" +#line 4243 "" L2: -#line 4190 "" +#line 4244 "" for (j = *naccid; j >= 1; --j) { -#line 4191 "" +#line 4245 "" if (iperm[k - 1] <= iperm[j - 1]) { -#line 4191 "" +#line 4245 "" goto L4; -#line 4191 "" +#line 4245 "" } -#line 4192 "" +#line 4246 "" /* L3: */ -#line 4192 "" +#line 4246 "" } -#line 4193 "" +#line 4247 "" L4: -#line 4194 "" +#line 4248 "" it = iperm[j - 1]; -#line 4195 "" +#line 4249 "" iperm[j - 1] = iperm[k - 1]; -#line 4196 "" +#line 4250 "" iperm[k - 1] = it; -#line 4197 "" +#line 4251 "" is = k + 1; -#line 4198 "" +#line 4252 "" for (ir = *naccid; ir >= 1; --ir) { -#line 4199 "" +#line 4253 "" if (ir <= is) { -#line 4199 "" +#line 4253 "" goto L6; -#line 4199 "" +#line 4253 "" } -#line 4200 "" +#line 4254 "" it = iperm[ir - 1]; -#line 4201 "" +#line 4255 "" iperm[ir - 1] = iperm[is - 1]; -#line 4202 "" +#line 4256 "" iperm[is - 1] = it; -#line 4203 "" +#line 4257 "" ++is; -#line 4204 "" +#line 4258 "" /* L5: */ -#line 4204 "" +#line 4258 "" } -#line 4205 "" +#line 4259 "" L6: -#line 4206 "" +#line 4260 "" ; -#line 4206 "" +#line 4260 "" } /* New we have a permutation. Take icrd values out of kicrd and put them into */ /* micrd in the order of the permutation */ -#line 4211 "" +#line 4265 "" i__1 = *naccid; -#line 4211 "" +#line 4265 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 4212 "" +#line 4266 "" micrd[i__ - 1] = kicrd[iperm[i__ - 1]]; -#line 4213 "" +#line 4267 "" /* L9: */ -#line 4213 "" +#line 4267 "" } /* c */ /* c Temporary printout */ /* c */ /* write(15,'(/a6,10i3)')'perm:',(iperm(i),i=1,naccid) */ /* c */ -#line 4219 "" +#line 4273 "" crdacc_(nacc, naccid, micrd, nolevm, &rmsshift, &c_false, levmaxacc, icrdot0, segrb0, ksegrb0, &nsegrb0, twooftwo, icashft); /* c */ @@ -9976,61 +10080,61 @@ L6: /* c */ /* write(15,*)'perm done, rmsshift:',rmsshift */ /* c */ -#line 4226 "" +#line 4280 "" if (rmsshift < rmsmin) { /* Save this permutation, reset minrms */ -#line 4230 "" +#line 4284 "" i__1 = *naccid; -#line 4230 "" +#line 4284 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 4231 "" +#line 4285 "" ipermsav[i__ - 1] = iperm[i__ - 1]; -#line 4232 "" +#line 4286 "" rmsmin = rmsshift; -#line 4233 "" +#line 4287 "" /* L11: */ -#line 4233 "" +#line 4287 "" } -#line 4234 "" +#line 4288 "" } -#line 4235 "" +#line 4289 "" /* L8: */ -#line 4235 "" +#line 4289 "" } -#line 4236 "" - s_wsle(&io___321); -#line 4236 "" +#line 4290 "" + s_wsle(&io___323); +#line 4290 "" do_lio(&c__9, &c__1, "Should not BEEEEEE here!", (ftnlen)24); -#line 4236 "" +#line 4290 "" e_wsle(); -#line 4237 "" +#line 4291 "" stop1_(); -#line 4238 "" +#line 4292 "" L10: /* Done looping, get info for the final choice */ -#line 4242 "" +#line 4296 "" i__1 = *naccid; -#line 4242 "" +#line 4296 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 4243 "" +#line 4297 "" micrd[i__ - 1] = kicrd[ipermsav[i__ - 1]]; -#line 4244 "" +#line 4298 "" /* L12: */ -#line 4244 "" +#line 4298 "" } /* c */ /* c Temporary printout */ /* c */ /* write(15,'(/a6,10i3)')'Final perm:',(ipermsav(i),i=1,naccid) */ /* c */ -#line 4250 "" +#line 4304 "" crdacc_(nacc, naccid, micrd, nolevm, &rmsshift, &c_true, &idummy, &idummy, segrb0, ksegrb0, &nsegrb0, twooftwo, icashft); -#line 4252 "" +#line 4306 "" return 0; } /* crdaccs_ */ @@ -10064,191 +10168,191 @@ L10: static char acsymq[3]; static integer lnoten; -#line 4260 "" +#line 4314 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4260 "" +#line 4314 "" *(unsigned char *)sq = *(unsigned char *)&ch__1[0]; -#line 4261 "" +#line 4315 "" if (*ihshft == -107) { -#line 4261 "" +#line 4315 "" *ihshft = 0; -#line 4261 "" +#line 4315 "" } /* c */ /* c If main note shifted left, so shift accid. Terminate below, when acc. is done. */ /* c */ -#line 4265 "" +#line 4319 "" if (*ihshft != 0) { /* Accid must be shifted horizontally */ -#line 4269 "" +#line 4323 "" if (*ihshft < 0) { /* Writing concatenation */ -#line 4270 "" +#line 4324 "" i__1[0] = 1, a__1[0] = sq; -#line 4270 "" +#line 4324 "" i__1[1] = 8, a__1[1] = "loffset{"; -#line 4270 "" +#line 4324 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 4271 "" +#line 4325 "" *ihshft = -(*ihshft); -#line 4272 "" +#line 4326 "" } else { /* Writing concatenation */ -#line 4273 "" +#line 4327 "" i__1[0] = 1, a__1[0] = sq; -#line 4273 "" +#line 4327 "" i__1[1] = 8, a__1[1] = "roffset{"; -#line 4273 "" +#line 4327 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 4274 "" +#line 4328 "" } -#line 4275 "" +#line 4329 "" hshft = *ihshft * .05f; -#line 4276 "" +#line 4330 "" if (hshft < 1.f) { -#line 4277 "" +#line 4331 "" ici__1.icierr = 0; -#line 4277 "" +#line 4331 "" ici__1.icirnum = 1; -#line 4277 "" +#line 4331 "" ici__1.icirlen = 3; -#line 4277 "" +#line 4331 "" ici__1.iciunit = notexq + 9; -#line 4277 "" +#line 4331 "" ici__1.icifmt = "(f3.2)"; -#line 4277 "" +#line 4331 "" s_wsfi(&ici__1); -#line 4277 "" +#line 4331 "" do_fio(&c__1, (char *)&hshft, (ftnlen)sizeof(real)); -#line 4277 "" +#line 4331 "" e_wsfi(); -#line 4278 "" +#line 4332 "" *lnote = 12; -#line 4279 "" +#line 4333 "" } else { -#line 4280 "" +#line 4334 "" ici__1.icierr = 0; -#line 4280 "" +#line 4334 "" ici__1.icirnum = 1; -#line 4280 "" +#line 4334 "" ici__1.icirlen = 4; -#line 4280 "" +#line 4334 "" ici__1.iciunit = notexq + 9; -#line 4280 "" +#line 4334 "" ici__1.icifmt = "(f4.2)"; -#line 4280 "" +#line 4334 "" s_wsfi(&ici__1); -#line 4280 "" +#line 4334 "" do_fio(&c__1, (char *)&hshft, (ftnlen)sizeof(real)); -#line 4280 "" +#line 4334 "" e_wsfi(); -#line 4281 "" +#line 4335 "" *lnote = 13; -#line 4282 "" +#line 4336 "" } /* Writing concatenation */ -#line 4283 "" +#line 4337 "" i__2[0] = *lnote, a__2[0] = notexq; -#line 4283 "" +#line 4337 "" i__2[1] = 2, a__2[1] = "}{"; -#line 4283 "" +#line 4337 "" i__2[2] = 1, a__2[2] = sq; -#line 4283 "" +#line 4337 "" s_cat(notexq, a__2, i__2, &c__3, (ftnlen)79); -#line 4284 "" +#line 4338 "" *lnote += 3; -#line 4285 "" +#line 4339 "" } else { -#line 4286 "" +#line 4340 "" s_copy(notexq, sq, (ftnlen)79, (ftnlen)1); -#line 4287 "" +#line 4341 "" *lnote = 1; -#line 4288 "" +#line 4342 "" } -#line 4289 "" +#line 4343 "" if (bit_test(*nacc,3)) { /* Writing concatenation */ -#line 4290 "" +#line 4344 "" i__1[0] = *lnote, a__1[0] = notexq; -#line 4290 "" +#line 4344 "" i__1[1] = 3, a__1[1] = "big"; -#line 4290 "" +#line 4344 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 4291 "" +#line 4345 "" *lnote += 3; -#line 4292 "" +#line 4346 "" } -#line 4293 "" +#line 4347 "" if (*caut) { /* Cautionary accidental. Need to define bigcna,... in pmx.tex */ /* Writing concatenation */ -#line 4297 "" +#line 4351 "" i__1[0] = *lnote, a__1[0] = notexq; -#line 4297 "" +#line 4351 "" i__1[1] = 1, a__1[1] = "c"; -#line 4297 "" +#line 4351 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 4298 "" +#line 4352 "" ++(*lnote); -#line 4299 "" +#line 4353 "" } -#line 4300 "" +#line 4354 "" accsym_(nacc, acsymq, &lacc, (ftnlen)3); /* Writing concatenation */ -#line 4301 "" +#line 4355 "" i__1[0] = *lnote, a__1[0] = notexq; -#line 4301 "" +#line 4355 "" i__1[1] = lacc, a__1[1] = acsymq; -#line 4301 "" +#line 4355 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 4302 "" +#line 4356 "" *lnote += lacc; -#line 4303 "" +#line 4357 "" noleva = *nolev; -#line 4304 "" +#line 4358 "" if (*ivshft != 0) { -#line 4304 "" +#line 4358 "" noleva = noleva + *ivshft - 32; -#line 4304 "" +#line 4358 "" } -#line 4305 "" +#line 4359 "" notefq_(noteq, &lnoten, &noleva, ncm, (ftnlen)8); -#line 4306 "" +#line 4360 "" if (lnoten == 1) { -#line 4306 "" +#line 4360 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 4306 "" +#line 4360 "" } /* Writing concatenation */ -#line 4307 "" +#line 4361 "" i__1[0] = *lnote, a__1[0] = notexq; -#line 4307 "" +#line 4361 "" i__1[1] = lnoten, a__1[1] = noteq; -#line 4307 "" +#line 4361 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 4308 "" +#line 4362 "" *lnote += lnoten; -#line 4309 "" +#line 4363 "" if (*ihshft != 0) { /* Terminate horizontal shift */ /* Writing concatenation */ -#line 4313 "" +#line 4367 "" i__1[0] = *lnote, a__1[0] = notexq; -#line 4313 "" +#line 4367 "" i__1[1] = 1, a__1[1] = "}"; -#line 4313 "" +#line 4367 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 4314 "" +#line 4368 "" ++(*lnote); -#line 4315 "" +#line 4369 "" } -#line 4316 "" +#line 4370 "" return 0; } /* doacc_ */ @@ -10269,8 +10373,8 @@ L10: integer pow_ii(integer *, integer *), lbit_shift(integer, integer); /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen), s_copy(char *, char *, ftnlen, ftnlen); - integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen), - e_wsle(void); + integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char + *, ftnlen); /* Local variables */ extern /* Subroutine */ int addblank_(char *, integer *, ftnlen); @@ -10310,9 +10414,8 @@ L10: integer *); /* Fortran I/O blocks */ - static cilist io___345 = { 0, 6, 0, 0, 0 }; - static cilist io___347 = { 0, 6, 0, 0, 0 }; static cilist io___348 = { 0, 6, 0, 0, 0 }; + static cilist io___349 = { 0, 6, 0, 0, 0 }; /* 130316 */ @@ -10326,57 +10429,57 @@ L10: /* Set counter (for this note) for chord notes present. Set notmain=T. */ /* Will test for notmain=.true. in addmidi to tell whether to save pitch. */ -#line 4369 "" +#line 4423 "" /* Parameter adjustments */ -#line 4369 "" +#line 4423 "" --nornb; -#line 4369 "" +#line 4423 "" ihornb -= 25; -#line 4369 "" +#line 4423 "" ulq -= 25; -#line 4369 "" +#line 4423 "" -#line 4369 "" +#line 4423 "" /* Function Body */ -#line 4369 "" +#line 4423 "" commidi_1.nmidcrd = 0; -#line 4370 "" +#line 4424 "" commidi_1.notmain = TRUE_; -#line 4371 "" +#line 4425 "" commidi_1.crdacc = FALSE_; -#line 4372 "" +#line 4426 "" i__1 = comtrill_1.icrd2; -#line 4372 "" +#line 4426 "" for (icrd = comtrill_1.icrd1; icrd <= i__1; ++icrd) { -#line 4373 "" +#line 4427 "" lnote = 0; -#line 4374 "" +#line 4428 "" nolev = igetbits_(&comtrill_1.icrdat[icrd - 1], &c__7, &c__12); /* 3/8/03 save original pitch to use in midi, in case 2nds alter things. */ -#line 4378 "" +#line 4432 "" nolevo = nolev; /* Check for special situations with 2nds (see precrd). */ -#line 4382 "" +#line 4436 "" if (bit_test(*nacc,30)) { -#line 4383 "" +#line 4437 "" if (nolev == *nolevm - 1) { -#line 4383 "" +#line 4437 "" nolev = *nolevm; -#line 4383 "" +#line 4437 "" } -#line 4384 "" +#line 4438 "" } else if (bit_test(*nacc,31)) { -#line 4385 "" +#line 4439 "" if (nolev == *nolevm + 1) { -#line 4385 "" +#line 4439 "" nolev = *nolevm; -#line 4385 "" +#line 4439 "" } -#line 4386 "" +#line 4440 "" } /* Lower dot for lower-voice notes?. Conditions are: */ @@ -10386,65 +10489,65 @@ L10: /* 4. Not a rest (cannot be a rest in a chord!) */ /* . 5. Flag (lowdot) is set to true */ -#line 4395 "" +#line 4449 "" if (comarp_1.lowdot && *nvmx == 2 && *ivx <= *nv) { -#line 4396 "" +#line 4450 "" i__2 = log2_(nodu); -#line 4396 "" +#line 4450 "" if (pow_ii(&c__2, &i__2) != *nodu && (nolev - *ncm) % 2 == 0) { -#line 4397 "" +#line 4451 "" if (bit_test(comtrill_1.icrdat[icrd - 1],26)) { /* Note already in movdot list. Drop by 2. */ -#line 4401 "" +#line 4455 "" i__2 = igetbits_(&comtrill_1.icrdot[icrd - 1], &c__7, & c__0) - 20; -#line 4401 "" +#line 4455 "" setbits_(&comtrill_1.icrdot[icrd - 1], &c__7, &c__0, & i__2); -#line 4403 "" +#line 4457 "" } else { /* Not in list so just move it right now */ -#line 4407 "" +#line 4461 "" i__2 = igetbits_(islur, &c__1, &c__3); -#line 4407 "" - dotmov_(&c_b761, &c_b762, soutq, lsout, &i__2, (ftnlen)80) +#line 4461 "" + dotmov_(&c_b767, &c_b768, soutq, lsout, &i__2, (ftnlen)80) ; -#line 4408 "" +#line 4462 "" } -#line 4409 "" +#line 4463 "" } -#line 4410 "" +#line 4464 "" } -#line 4411 "" +#line 4465 "" if (bit_test(comtrill_1.icrdat[icrd - 1],26)) { /* Move the dot. */ -#line 4415 "" +#line 4469 "" updotc = ((127 & comtrill_1.icrdot[icrd - 1]) - 64) * .1f; -#line 4416 "" +#line 4470 "" rtdotc = ((127 & lbit_shift(comtrill_1.icrdot[icrd - 1], (ftnlen) -7)) - 64) * .1f; -#line 4417 "" +#line 4471 "" i__2 = igetbits_(islur, &c__1, &c__3); -#line 4417 "" +#line 4471 "" dotmov_(&updotc, &rtdotc, soutq, lsout, &i__2, (ftnlen)80); -#line 4418 "" +#line 4472 "" } -#line 4419 "" +#line 4473 "" isleft = bit_test(comtrill_1.icrdat[icrd - 1],23); -#line 4420 "" +#line 4474 "" isright = bit_test(comtrill_1.icrdat[icrd - 1],24); /* Check for ornament in chord. */ -#line 4424 "" +#line 4478 "" if (comtrill_1.icrdorn[icrd - 1] > 0) { -#line 4425 "" +#line 4479 "" putorn_(&comtrill_1.icrdorn[icrd - 1], &nolev, nolevm, nodu, & nornb[1], ulq + 25, ibmcnt, ivx, ncm, islur, nvmx, nv, & ihornb[25], stemlen, outq, &lout, ip, &c__0, beamon, & @@ -10454,230 +10557,219 @@ L10: /* * ncm,islur,nvmx,nv,ihornb,stemlen,outq,lout,ip,islhgt, */ /* * notcrd,beamon,iscrd) */ -#line 4433 "" +#line 4487 "" addstr_(outq, &lout, soutq, lsout, (ftnlen)79, (ftnlen)80); -#line 4434 "" +#line 4488 "" } /* Chord-note symbol. First check for breve */ -#line 4438 "" +#line 4492 "" if (*nodu == 128) { /* Writing concatenation */ -#line 4439 "" +#line 4493 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4439 "" +#line 4493 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4439 "" +#line 4493 "" i__3[1] = 6, a__1[1] = "zbreve"; -#line 4439 "" +#line 4493 "" s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7); -#line 4440 "" +#line 4494 "" lsym = 7; -#line 4441 "" +#line 4495 "" } else { /* Not a breve chord. Get first letters in chord-note symbol */ -#line 4445 "" +#line 4499 "" if (isleft) { /* Writing concatenation */ -#line 4446 "" +#line 4500 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4446 "" +#line 4500 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4446 "" +#line 4500 "" i__3[1] = 1, a__1[1] = "l"; -#line 4446 "" +#line 4500 "" s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7); -#line 4447 "" +#line 4501 "" } else if (isright) { /* Writing concatenation */ -#line 4448 "" +#line 4502 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4448 "" +#line 4502 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4448 "" +#line 4502 "" i__3[1] = 1, a__1[1] = "r"; -#line 4448 "" +#line 4502 "" s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7); -#line 4449 "" +#line 4503 "" } else { /* Writing concatenation */ -#line 4450 "" +#line 4504 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4450 "" +#line 4504 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4450 "" +#line 4504 "" i__3[1] = 1, a__1[1] = "z"; -#line 4450 "" +#line 4504 "" s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7); -#line 4451 "" +#line 4505 "" } -#line 4452 "" +#line 4506 "" if (*nodu >= 64) { /* Writing concatenation */ -#line 4453 "" +#line 4507 "" i__3[0] = 2, a__1[0] = nosymq; -#line 4453 "" +#line 4507 "" i__3[1] = 1, a__1[1] = "w"; -#line 4453 "" +#line 4507 "" s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7); -#line 4454 "" +#line 4508 "" } else if (*nodu >= 32) { /* Writing concatenation */ -#line 4455 "" +#line 4509 "" i__3[0] = 2, a__1[0] = nosymq; -#line 4455 "" +#line 4509 "" i__3[1] = 1, a__1[1] = "h"; -#line 4455 "" +#line 4509 "" s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7); -#line 4456 "" +#line 4510 "" } else { /* Writing concatenation */ -#line 4457 "" +#line 4511 "" i__3[0] = 2, a__1[0] = nosymq; -#line 4457 "" +#line 4511 "" i__3[1] = 1, a__1[1] = "q"; -#line 4457 "" +#line 4511 "" s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7); -#line 4458 "" +#line 4512 "" } -#line 4459 "" +#line 4513 "" i__2 = log2_(nodu); -#line 4459 "" +#line 4513 "" if (pow_ii(&c__2, &i__2) == *nodu && ! (*dotxtup)) { -#line 4460 "" +#line 4514 "" lsym = 3; -#line 4461 "" +#line 4515 "" } else if (! bit_test(*islur,3) || *dotxtup) { /* Single dot */ /* Writing concatenation */ -#line 4465 "" +#line 4519 "" i__3[0] = 3, a__1[0] = nosymq; -#line 4465 "" +#line 4519 "" i__3[1] = 1, a__1[1] = "p"; -#line 4465 "" +#line 4519 "" s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7); -#line 4466 "" +#line 4520 "" lsym = 4; -#line 4467 "" +#line 4521 "" } else { /* Double dot */ /* Writing concatenation */ -#line 4471 "" +#line 4525 "" i__3[0] = 3, a__1[0] = nosymq; -#line 4471 "" +#line 4525 "" i__3[1] = 2, a__1[1] = "pp"; -#line 4471 "" +#line 4525 "" s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7); -#line 4472 "" +#line 4526 "" lsym = 5; -#line 4473 "" +#line 4527 "" } -#line 4474 "" +#line 4528 "" } -#line 4475 "" +#line 4529 "" if (bit_test(comtrill_1.icrdat[icrd - 1],19) && ! bit_test( comtrill_1.icrdat[icrd - 1],27)) { /* Accidental and not MIDI-only. Build up bits 0-3 of nacc */ -#line 4479 "" +#line 4533 "" nactmp = igetbits_(&comtrill_1.icrdat[icrd - 1], &c__3, &c__20); /* Kluge for bigness. Only means 'As' has not been issued */ -#line 4483 "" +#line 4537 "" if (spfacs_1.bacfac != 1e6f) { -#line 4483 "" +#line 4537 "" nactmp += 8; -#line 4483 "" +#line 4537 "" } -#line 4484 "" +#line 4538 "" i__2 = igetbits_(&comtrill_1.icrdot[icrd - 1], &c__7, &c__20) - 107; -#line 4484 "" +#line 4538 "" i__4 = igetbits_(&comtrill_1.icrdot[icrd - 1], &c__6, &c__14); -#line 4484 "" +#line 4538 "" i__5 = igetbits_(&comtrill_1.icrdat[icrd - 1], &c__7, &c__12); -#line 4484 "" +#line 4538 "" i__6 = ncmid_(iv, ip); -#line 4484 "" +#line 4538 "" L__1 = bit_test(comtrill_1.icrdat[icrd - 1],31); -#line 4484 "" +#line 4538 "" doacc_(&i__2, &i__4, notexq, &lnote, &nactmp, &i__5, &i__6, &L__1, (ftnlen)79); /* * notexq,lnote,nactmp,nolev,ncmid(iv,ip)) */ /* Get original nolev, not altered to deal with 2nds */ /* * ncmid(iv,ip)) */ /* Writing concatenation */ -#line 4491 "" +#line 4545 "" i__3[0] = lnote, a__1[0] = notexq; -#line 4491 "" +#line 4545 "" i__3[1] = 7, a__1[1] = nosymq; -#line 4491 "" +#line 4545 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4492 "" +#line 4546 "" commidi_1.crdacc = TRUE_; -#line 4493 "" +#line 4547 "" } else { -#line 4494 "" +#line 4548 "" s_copy(notexq, nosymq, (ftnlen)79, (ftnlen)7); -#line 4495 "" +#line 4549 "" } -#line 4496 "" +#line 4550 "" lnote += lsym; /* Get note name (again if accid, due to possible octave jump) */ -#line 4500 "" +#line 4554 "" notefq_(noteq, &lnoten, &nolev, ncm, (ftnlen)8); -#line 4501 "" +#line 4555 "" if (lnoten == 1) { -#line 4501 "" +#line 4555 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 4501 "" +#line 4555 "" } /* Put in note name */ /* Writing concatenation */ -#line 4505 "" +#line 4559 "" i__3[0] = lnote, a__1[0] = notexq; -#line 4505 "" +#line 4559 "" i__3[1] = 8, a__1[1] = noteq; -#line 4505 "" +#line 4559 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4506 "" +#line 4560 "" lnote += lnoten; -#line 4507 "" +#line 4561 "" if (bit_test(comtrill_1.icrdat[icrd - 1],25)) { /* Arpeggio signal */ -/* call putarp(tnow,iv,ip,nolev,ncm,soutq,lsout) */ -#line 4512 "" - s_wsle(&io___345); -#line 4512 "" - do_lio(&c__9, &c__1, "Calling putarp chord, iv,ivx:", (ftnlen)29); -#line 4512 "" - do_lio(&c__3, &c__1, (char *)&(*iv), (ftnlen)sizeof(integer)); -#line 4512 "" - do_lio(&c__3, &c__1, (char *)&(*ivx), (ftnlen)sizeof(integer)); -#line 4512 "" - e_wsle(); -#line 4513 "" +#line 4565 "" putarp_(tnow, ivx, ip, &nolev, ncm, soutq, lsout, (ftnlen)80); -#line 4514 "" +#line 4566 "" } -#line 4515 "" +#line 4567 "" addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80); -#line 4516 "" +#line 4568 "" if (commidi_1.ismidi) { /* Here is where we collect MIDI pitch info for the chord note. By checking */ @@ -10685,58 +10777,58 @@ L10: /* pitch number and store it in mcpitch(nmidcrd). Then on call to addmidi() */ /* for MAIN note, will put in note codes for all chord notes + main note. */ -#line 4523 "" +#line 4575 "" kv = 1; -#line 4524 "" +#line 4576 "" if (*ivx > *iv) { -#line 4524 "" +#line 4576 "" kv = 2; -#line 4524 "" +#line 4576 "" } -#line 4525 "" +#line 4577 "" ++commidi_1.nmidcrd; -#line 4526 "" +#line 4578 "" if (commidi_1.nmidcrd > 20) { -#line 4527 "" - s_wsle(&io___347); -#line 4527 "" - e_wsle(); -#line 4528 "" +#line 4579 "" s_wsle(&io___348); -#line 4528 "" +#line 4579 "" + e_wsle(); +#line 4580 "" + s_wsle(&io___349); +#line 4580 "" do_lio(&c__9, &c__1, "21 chord notes is too many for midi pr"\ "ocessor", (ftnlen)45); -#line 4528 "" +#line 4580 "" e_wsle(); -#line 4529 "" +#line 4581 "" stop1_(); -#line 4530 "" +#line 4582 "" } /* Use original saved pitch level, unaltered by 2nds logic. */ /* 130316 */ /* call addmidi(midchan(iv,kv),nolevo-iTransAmt(instno(iv)), */ -#line 4536 "" +#line 4588 "" i__2 = nolevo + commvel_1.miditran[cominsttrans_1.instno[*iv - 1] - 1]; -#line 4536 "" +#line 4588 "" i__4 = igetbits_(&comtrill_1.icrdat[icrd - 1], &c__3, &c__20); -#line 4536 "" +#line 4588 "" addmidi_(&commidi_1.midchan[*iv + kv * 24 - 25], &i__2, &i__4, & - commidisig_1.midisig, &c_b814, &c_false, &c_false); + commidisig_1.midisig, &c_b813, &c_false, &c_false); /* * igetbits(icrdat(icrd),3,20),isig,1.,.false.,.false.) */ /* 130316 */ /* * igetbits(icrdat(icrd),3,20),midisig(instno(iv)),1., */ -#line 4544 "" +#line 4596 "" } -#line 4545 "" +#line 4597 "" /* L5: */ -#line 4545 "" +#line 4597 "" } -#line 4546 "" +#line 4598 "" commidi_1.notmain = FALSE_; -#line 4547 "" +#line 4599 "" return 0; } /* docrd_ */ @@ -10796,200 +10888,200 @@ L10: static integer jtxtdyn, ltxtdyn; /* Fortran I/O blocks */ - static icilist io___369 = { 0, numpq+1, 0, "(i2)", 2, 1 }; - static icilist io___371 = { 0, numpq+1, 0, "(i2)", 2, 1 }; - static icilist io___372 = { 0, numpq+1, 0, "(i3)", 3, 1 }; - static icilist io___379 = { 0, numpq+1, 0, "(i2)", 2, 1 }; + static icilist io___370 = { 0, numpq+1, 0, "(i2)", 2, 1 }; + static icilist io___372 = { 0, numpq+1, 0, "(i2)", 2, 1 }; + static icilist io___373 = { 0, numpq+1, 0, "(i3)", 3, 1 }; static icilist io___380 = { 0, numpq+1, 0, "(i2)", 2, 1 }; - static icilist io___381 = { 0, numpq+1, 0, "(i3)", 3, 1 }; - static cilist io___384 = { 0, 11, 0, "(a)", 0 }; + static icilist io___381 = { 0, numpq+1, 0, "(i2)", 2, 1 }; + static icilist io___382 = { 0, numpq+1, 0, "(i3)", 3, 1 }; + static cilist io___385 = { 0, 11, 0, "(a)", 0 }; /* Inputs are array *elements* except ihornb,nornb,ulq */ -#line 4574 "" +#line 4626 "" /* Parameter adjustments */ -#line 4574 "" +#line 4626 "" ulq -= 25; -#line 4574 "" +#line 4626 "" --nornb; -#line 4574 "" +#line 4626 "" ihornb -= 25; -#line 4574 "" +#line 4626 "" -#line 4574 "" +#line 4626 "" /* Function Body */ -#line 4575 "" +#line 4627 "" numdyn = 0; /* Find dynamics for (ivx,ip) in list. May be as many as 4. Store idyn values */ /* in idynn(1...4) */ -#line 4580 "" +#line 4632 "" i__1 = comdyn_1.ndyn; -#line 4580 "" +#line 4632 "" for (idyn = 1; idyn <= i__1; ++idyn) { /* ivxtent = iand(idyndat(idyn),15) */ -#line 4582 "" +#line 4634 "" ivxtent = (comdyn_1.idyndat[idyn - 1] & 15) + (igetbits_(& comdyn_1.idynda2[idyn - 1], &c__1, &c__10) << 4); -#line 4584 "" +#line 4636 "" if (ivxtent == *ivx) { -#line 4585 "" +#line 4637 "" iptent = igetbits_(&comdyn_1.idyndat[idyn - 1], &c__8, &c__4); -#line 4586 "" +#line 4638 "" if (iptent == *ip) { -#line 4587 "" +#line 4639 "" ++numdyn; -#line 4588 "" +#line 4640 "" idynn[numdyn - 1] = idyn; -#line 4589 "" +#line 4641 "" } else if (iptent > *ip) { /* I don't think there are any more possible for this ivx,ip, so exit loop */ -#line 4593 "" +#line 4645 "" goto L2; -#line 4594 "" +#line 4646 "" } /* else if (ivxtent .gt. ivx) then */ /* go to 2 */ -#line 4597 "" +#line 4649 "" } -#line 4598 "" +#line 4650 "" /* L1: */ -#line 4598 "" +#line 4650 "" } -#line 4599 "" +#line 4651 "" L2: /* At this point there is a list of idyn's in idynn(1...numdyn) */ /* Compute level, and stem-dir'n-based horizontal tweaks */ -#line 4604 "" +#line 4656 "" hoffsd = 0.f; /* Set upstem to false as default */ -#line 4608 "" +#line 4660 "" upstem = FALSE_; -#line 4609 "" +#line 4661 "" if (bit_test(*irest,0)) { /* It's a rest. Assume it doesn't go below the staff */ -#line 4613 "" +#line 4665 "" lbot = *ncm - 4; -#line 4614 "" +#line 4666 "" } else if (! (*beamon)) { -#line 4615 "" +#line 4667 "" udqq_(ch__1, (ftnlen)1, nolev, ncm, islur, nvmx, ivx, nv); -#line 4615 "" +#line 4667 "" if (*(unsigned char *)&ch__1[0] == 'u' || *nostem) { -#line 4616 "" +#line 4668 "" upstem = TRUE_; -#line 4617 "" +#line 4669 "" if (! bit_test(*ipl,10)) { /* Computing MIN */ -#line 4618 "" +#line 4670 "" i__1 = *nolev - 1, i__2 = *ncm - 4; -#line 4618 "" +#line 4670 "" lbot = min(i__1,i__2); -#line 4619 "" +#line 4671 "" } else { /* Computing MIN */ -#line 4620 "" +#line 4672 "" i__1 = comtrill_1.minlev - 1, i__2 = *ncm - 4; -#line 4620 "" +#line 4672 "" lbot = min(i__1,i__2); -#line 4621 "" +#line 4673 "" } -#line 4622 "" +#line 4674 "" } else { -#line 4623 "" +#line 4675 "" hoffsd = -.5f; -#line 4624 "" +#line 4676 "" if (! bit_test(*ipl,10)) { /* Computing MIN */ -#line 4625 "" +#line 4677 "" i__1 = *nolev - 7, i__2 = *ncm - 4; -#line 4625 "" +#line 4677 "" lbot = min(i__1,i__2); -#line 4626 "" +#line 4678 "" } else { /* Computing MIN */ -#line 4627 "" +#line 4679 "" i__1 = comtrill_1.minlev - 7, i__2 = *ncm - 4; -#line 4627 "" +#line 4679 "" lbot = min(i__1,i__2); -#line 4628 "" +#line 4680 "" } -#line 4629 "" +#line 4681 "" } -#line 4630 "" +#line 4682 "" } else { -#line 4631 "" +#line 4683 "" if (*(unsigned char *)&ulq[*ivx + *ibmcnt * 24] == 'u') { -#line 4632 "" +#line 4684 "" upstem = TRUE_; -#line 4633 "" +#line 4685 "" if (! bit_test(*ipl,10)) { /* Computing MIN */ -#line 4634 "" +#line 4686 "" i__1 = *nolev - 1, i__2 = *ncm - 4; -#line 4634 "" +#line 4686 "" lbot = min(i__1,i__2); -#line 4635 "" +#line 4687 "" } else { /* Computing MIN */ -#line 4636 "" +#line 4688 "" i__1 = comtrill_1.minlev - 1, i__2 = *ncm - 4; -#line 4636 "" +#line 4688 "" lbot = min(i__1,i__2); -#line 4637 "" +#line 4689 "" } -#line 4638 "" +#line 4690 "" } else { -#line 4639 "" +#line 4691 "" hoffsd = -.5f; -#line 4640 "" +#line 4692 "" lbot = ihornb[*ivx + nornb[*ivx] * 24] + 1; -#line 4641 "" +#line 4693 "" if (lbot == 1) { /* Kluge for non-beamed, down xtup, for which ihorb was never set. */ /* Assumes stem is shortened. */ -#line 4646 "" +#line 4698 "" lbot = *nolev - 5; -#line 4647 "" +#line 4699 "" } -#line 4648 "" +#line 4700 "" ++nornb[*ivx]; -#line 4649 "" +#line 4701 "" } -#line 4650 "" +#line 4702 "" } -#line 4651 "" +#line 4703 "" lbot += -5; -#line 4652 "" +#line 4704 "" jtxtdyn1 = 1; /* Now ready to loop over current dyn's */ -#line 4656 "" +#line 4708 "" i__1 = numdyn; -#line 4656 "" +#line 4708 "" for (icntdyn = 1; icntdyn <= i__1; ++icntdyn) { -#line 4657 "" +#line 4709 "" idynd = comdyn_1.idyndat[idynn[icntdyn - 1] - 1]; -#line 4658 "" +#line 4710 "" idynd2 = comdyn_1.idynda2[idynn[icntdyn - 1] - 1]; -#line 4659 "" +#line 4711 "" idno = igetbits_(&idynd, &c__4, &c__12); /* ivx = iand(15,idynd) */ -#line 4661 "" +#line 4713 "" *ivx = (15 & idynd) + (igetbits_(&idynd2, &c__1, &c__10) << 4); /* Build the command into notex in stages. Insert name & rq'd args in order: */ @@ -11005,278 +11097,278 @@ L2: /* d-mark */ /* X */ -#line 4676 "" +#line 4728 "" if (idno == 0) { /* Text-dynamic */ /* Writing concatenation */ -#line 4680 "" +#line 4732 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4680 "" +#line 4732 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4680 "" +#line 4732 "" i__3[1] = 6, a__1[1] = "txtdyn"; -#line 4680 "" +#line 4732 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4681 "" +#line 4733 "" lnote = 7; -#line 4682 "" +#line 4734 "" } else if (idno <= 12) { /* Letter-group */ /* Writing concatenation */ -#line 4686 "" +#line 4738 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4686 "" +#line 4738 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4686 "" +#line 4738 "" i__3[1] = 6, a__1[1] = "pmxdyn"; -#line 4686 "" +#line 4738 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4687 "" +#line 4739 "" lnote = 7; -#line 4688 "" +#line 4740 "" } else if (comslur_1.fontslur) { -#line 4689 "" +#line 4741 "" lnote = 7; -#line 4690 "" +#line 4742 "" if (idno == 13) { /* Start a hairpin */ /* Writing concatenation */ -#line 4694 "" +#line 4746 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4694 "" +#line 4746 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4694 "" +#line 4746 "" i__3[1] = 6, a__1[1] = "hpstrt"; -#line 4694 "" +#line 4746 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4695 "" +#line 4747 "" } else if (idno == 14) { /* End crescendo */ /* Writing concatenation */ -#line 4699 "" +#line 4751 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4699 "" +#line 4751 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4699 "" +#line 4751 "" i__3[1] = 6, a__1[1] = "hpcend"; -#line 4699 "" +#line 4751 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4700 "" +#line 4752 "" } else { /* End decrescendo */ /* Writing concatenation */ -#line 4704 "" +#line 4756 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4704 "" +#line 4756 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4704 "" +#line 4756 "" i__3[1] = 6, a__1[1] = "hpdend"; -#line 4704 "" +#line 4756 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4705 "" +#line 4757 "" } -#line 4706 "" +#line 4758 "" } else { /* Postscript hairpins */ -#line 4710 "" +#line 4762 "" lnote = 7; -#line 4711 "" +#line 4763 "" if (idno == 13) { /* Writing concatenation */ -#line 4712 "" +#line 4764 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4712 "" +#line 4764 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4712 "" +#line 4764 "" i__3[1] = 6, a__1[1] = "Icresc"; -#line 4712 "" +#line 4764 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4713 "" +#line 4765 "" } else if (idno == 14) { /* Writing concatenation */ -#line 4714 "" +#line 4766 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4714 "" +#line 4766 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4714 "" +#line 4766 "" i__3[1] = 8, a__1[1] = "Idecresc"; -#line 4714 "" +#line 4766 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4715 "" +#line 4767 "" lnote = 9; -#line 4716 "" +#line 4768 "" } else { /* Writing concatenation */ -#line 4717 "" +#line 4769 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4717 "" +#line 4769 "" i__3[0] = 1, a__1[0] = ch__1; -#line 4717 "" +#line 4769 "" i__3[1] = 6, a__1[1] = "Tcresc"; -#line 4717 "" +#line 4769 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4718 "" +#line 4770 "" } -#line 4719 "" +#line 4771 "" } -#line 4720 "" +#line 4772 "" if (idno >= 13) { /* Put in voice number */ -#line 4724 "" +#line 4776 "" if (*ivx <= 9) { /* Writing concatenation */ -#line 4725 "" +#line 4777 "" i__3[0] = lnote, a__1[0] = notexq; -#line 4725 "" +#line 4777 "" *(unsigned char *)&ch__1[0] = *ivx + 48; -#line 4725 "" +#line 4777 "" i__3[1] = 1, a__1[1] = ch__1; -#line 4725 "" +#line 4777 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4726 "" +#line 4778 "" ++lnote; -#line 4727 "" +#line 4779 "" } else if (*ivx <= 19) { /* Writing concatenation */ -#line 4728 "" +#line 4780 "" i__4[0] = lnote, a__2[0] = notexq; -#line 4728 "" +#line 4780 "" i__4[1] = 2, a__2[1] = "{1"; -#line 4728 "" +#line 4780 "" *(unsigned char *)&ch__1[0] = *ivx + 38; -#line 4728 "" +#line 4780 "" i__4[2] = 1, a__2[2] = ch__1; -#line 4728 "" +#line 4780 "" i__4[3] = 1, a__2[3] = "}"; -#line 4728 "" +#line 4780 "" s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79); -#line 4729 "" +#line 4781 "" lnote += 4; -#line 4730 "" +#line 4782 "" } else { /* Writing concatenation */ -#line 4731 "" +#line 4783 "" i__4[0] = lnote, a__2[0] = notexq; -#line 4731 "" +#line 4783 "" i__4[1] = 2, a__2[1] = "{2"; -#line 4731 "" +#line 4783 "" *(unsigned char *)&ch__1[0] = *ivx + 28; -#line 4731 "" +#line 4783 "" i__4[2] = 1, a__2[2] = ch__1; -#line 4731 "" +#line 4783 "" i__4[3] = 1, a__2[3] = "}"; -#line 4731 "" +#line 4783 "" s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79); -#line 4732 "" +#line 4784 "" lnote += 4; -#line 4733 "" +#line 4785 "" } -#line 4734 "" +#line 4786 "" } /* Begin setting level */ -#line 4738 "" +#line 4790 "" lbot1 = lbot; -#line 4739 "" +#line 4791 "" if (idno > 0 && idno <= 5) { /* All letters are short so raise a bit. */ -#line 4743 "" +#line 4795 "" ++lbot1; -#line 4744 "" +#line 4796 "" } else if (idno >= 13) { -#line 4745 "" +#line 4797 "" lbot1 += 2; -#line 4746 "" +#line 4798 "" } /* Convert so reference is bottom line */ -#line 4750 "" +#line 4802 "" lbot1 = lbot1 - *ncm + 4; -#line 4751 "" +#line 4803 "" if (comslur_1.fontslur && idno == 13 || ! comslur_1.fontslur && (idno == 13 || idno == 14)) { /* Hairpin start. Save level and user-tweak before applying user tweak. */ -#line 4756 "" +#line 4808 "" comdyn_1.levdsav[*ivx - 1] = lbot1; -#line 4757 "" +#line 4809 "" comdyn_1.levhssav[*ivx - 1] = 0; -#line 4758 "" +#line 4810 "" if (bit_test(idynd,16)) { -#line 4758 "" +#line 4810 "" comdyn_1.levhssav[*ivx - 1] = igetbits_(&idynd, &c__7, &c__17) - 64; -#line 4758 "" +#line 4810 "" } -#line 4759 "" +#line 4811 "" } else if (comslur_1.fontslur && idno >= 14 || idno == 15) { /* Hairpin end; Compare level with saved start level before user-tweaks */ /* Computing MIN */ -#line 4763 "" +#line 4815 "" i__2 = lbot1, i__5 = comdyn_1.levdsav[*ivx - 1]; -#line 4763 "" +#line 4815 "" lbot1 = min(i__2,i__5); /* Save pre-tweak level */ -#line 4767 "" +#line 4819 "" lpretweak = lbot1; -#line 4768 "" +#line 4820 "" } /* Check for user-defined vertical tweak */ -#line 4772 "" +#line 4824 "" if (bit_test(idynd,16)) { -#line 4772 "" +#line 4824 "" lbot1 = lbot1 - 64 + igetbits_(&idynd, &c__7, &c__17); -#line 4772 "" +#line 4824 "" } /* Now horizontal stuff */ -#line 4776 "" +#line 4828 "" hoff = hoffsd; /* Some special horizontal tweaks */ -#line 4780 "" +#line 4832 "" if (upstem && idno > 0 && (idno <= 4 || idno == 8 || idno == 9)) { -#line 4780 "" +#line 4832 "" hoff += .4f; -#line 4780 "" +#line 4832 "" } /* User-defined tweaks */ -#line 4785 "" +#line 4837 "" if (bit_test(idynd2,0)) { -#line 4785 "" +#line 4837 "" hoff += (igetbits_(&idynd2, &c__9, &c__1) - 256) * .1f; -#line 4785 "" +#line 4837 "" } -#line 4787 "" +#line 4839 "" if (numdyn > 1) { /* Horizontal-interaction-based tweaks. */ @@ -11288,23 +11380,23 @@ L2: /* 2 hrpnend hrpnstrt - hoh2h1(1...2) */ /* 3 hrpnend wrd-grp hrpnstrt ivowg,hoh2,hoh1 */ -#line 4798 "" +#line 4850 "" if (idno > 0 && idno <= 12) { /* Word-group, may need vertical tweak to line up. */ -#line 4802 "" +#line 4854 "" lbot1 += comdyn_1.ivowg[idno - 1]; /* Protecting against hp start-stop on same note */ -#line 4806 "" +#line 4858 "" } else if ((comslur_1.fontslur && idno >= 14 || idno == 15) && icntdyn < numdyn) { /* Hairpin ending, check next type */ -#line 4811 "" +#line 4863 "" if (comslur_1.fontslur && igetbits_(&comdyn_1.idyndat[idynn[ icntdyn] - 1], &c__4, &c__12) == 13 || ! comslur_1.fontslur && (igetbits_(&comdyn_1.idyndat[ @@ -11314,28 +11406,28 @@ L2: /* Hairpin end then hairpin start, no words, (remember dealing with end now) */ -#line 4821 "" +#line 4873 "" hoff += comdyn_1.hoh2h1[0]; -#line 4822 "" +#line 4874 "" } else { /* Hairpin end then word-group, need idno for w-g to set hp offset */ -#line 4826 "" +#line 4878 "" hoff += comdyn_1.hoh2[igetbits_(&comdyn_1.idyndat[idynn[ icntdyn] - 1], &c__4, &c__12) - 1]; -#line 4828 "" +#line 4880 "" } /* Protecting against hp start-stop on same note */ -#line 4832 "" +#line 4884 "" } else if (icntdyn > 1 && idno > 0 && (comslur_1.fontslur && idno < 14 || ! comslur_1.fontslur && idno < 15)) { /* Hairpin start, check prior type */ -#line 4838 "" +#line 4890 "" if (comslur_1.fontslur && igetbits_(&comdyn_1.idyndat[idynn[ icntdyn - 2] - 1], &c__4, &c__12) >= 14 || ! comslur_1.fontslur && igetbits_(&comdyn_1.idyndat[ @@ -11343,30 +11435,30 @@ L2: /* Hairpin end then hairpin start, (remember dealing with start now) */ -#line 4847 "" +#line 4899 "" hoff += comdyn_1.hoh2h1[1]; -#line 4848 "" +#line 4900 "" } else { /* Hairpin start after word-group, need idno for w-g to set hp offset */ -#line 4852 "" +#line 4904 "" hoff += comdyn_1.hoh1[igetbits_(&comdyn_1.idyndat[idynn[ icntdyn - 2] - 1], &c__4, &c__12) - 1]; -#line 4854 "" +#line 4906 "" } -#line 4855 "" +#line 4907 "" } -#line 4856 "" +#line 4908 "" } /* End of if-block for 2- or 3-way interactions. */ -#line 4860 "" +#line 4912 "" if (! comslur_1.fontslur && idno >= 13) { -#line 4860 "" +#line 4912 "" hoff = (hoff + .5f) * 6.f / 2.5f; -#line 4860 "" +#line 4912 "" } /* Slur font and hairpin. Add hoff, and change from \interneote to \qn@width */ @@ -11374,529 +11466,529 @@ L2: /* Position corrections all done now. Put in the level. */ -#line 4868 "" +#line 4920 "" if (comslur_1.fontslur && idno == 13 || ! comslur_1.fontslur && (idno == 13 || idno == 14)) { /* Hairpin start. */ -#line 4873 "" +#line 4925 "" if (! comslur_1.fontslur) { /* Postscript hairpin start...inset placeholder for start level. */ /* Writing concatenation */ -#line 4877 "" +#line 4929 "" i__3[0] = lnote, a__1[0] = notexq; -#line 4877 "" +#line 4929 "" i__3[1] = 5, a__1[1] = "{ }"; -#line 4877 "" +#line 4929 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4878 "" +#line 4930 "" lnote += 5; -#line 4879 "" +#line 4931 "" } -#line 4880 "" +#line 4932 "" } else { /* Insert actual level in all cases except hairpin start */ /* Create string with level in it */ -#line 4885 "" +#line 4937 "" if (lbot1 > 9) { -#line 4886 "" +#line 4938 "" s_copy(numpq, "{", (ftnlen)5, (ftnlen)1); -#line 4887 "" - s_wsfi(&io___369); -#line 4887 "" +#line 4939 "" + s_wsfi(&io___370); +#line 4939 "" do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer)); -#line 4887 "" +#line 4939 "" e_wsfi(); /* Writing concatenation */ -#line 4888 "" +#line 4940 "" i__3[0] = 3, a__1[0] = numpq; -#line 4888 "" +#line 4940 "" i__3[1] = 1, a__1[1] = "}"; -#line 4888 "" +#line 4940 "" s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5); -#line 4889 "" +#line 4941 "" lnumpq = 4; -#line 4890 "" +#line 4942 "" } else if (lbot1 > -1) { -#line 4891 "" +#line 4943 "" *(unsigned char *)&ch__1[0] = lbot1 + 48; -#line 4891 "" +#line 4943 "" s_copy(numpq, ch__1, (ftnlen)5, (ftnlen)1); -#line 4892 "" +#line 4944 "" lnumpq = 1; -#line 4893 "" +#line 4945 "" } else if (lbot1 > -10) { -#line 4894 "" +#line 4946 "" s_copy(numpq, "{", (ftnlen)5, (ftnlen)1); -#line 4895 "" - s_wsfi(&io___371); -#line 4895 "" +#line 4947 "" + s_wsfi(&io___372); +#line 4947 "" do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer)); -#line 4895 "" +#line 4947 "" e_wsfi(); /* Writing concatenation */ -#line 4896 "" +#line 4948 "" i__3[0] = 3, a__1[0] = numpq; -#line 4896 "" +#line 4948 "" i__3[1] = 1, a__1[1] = "}"; -#line 4896 "" +#line 4948 "" s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5); -#line 4897 "" +#line 4949 "" lnumpq = 4; -#line 4898 "" +#line 4950 "" } else { -#line 4899 "" +#line 4951 "" s_copy(numpq, "{", (ftnlen)5, (ftnlen)1); -#line 4900 "" - s_wsfi(&io___372); -#line 4900 "" +#line 4952 "" + s_wsfi(&io___373); +#line 4952 "" do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer)); -#line 4900 "" +#line 4952 "" e_wsfi(); /* Writing concatenation */ -#line 4901 "" +#line 4953 "" i__3[0] = 4, a__1[0] = numpq; -#line 4901 "" +#line 4953 "" i__3[1] = 1, a__1[1] = "}"; -#line 4901 "" +#line 4953 "" s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5); -#line 4902 "" +#line 4954 "" lnumpq = 5; -#line 4903 "" +#line 4955 "" } /* Level has now been computed and stored in numpq */ /* Append the level */ /* Writing concatenation */ -#line 4908 "" +#line 4960 "" i__3[0] = lnote, a__1[0] = notexq; -#line 4908 "" +#line 4960 "" i__3[1] = lnumpq, a__1[1] = numpq; -#line 4908 "" +#line 4960 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4909 "" +#line 4961 "" lnote += lnumpq; -#line 4910 "" +#line 4962 "" } -#line 4911 "" +#line 4963 "" if (dabs(hoff) < .001f) { /* No horiz offset */ /* Writing concatenation */ -#line 4915 "" +#line 4967 "" i__3[0] = lnote, a__1[0] = notexq; -#line 4915 "" +#line 4967 "" i__3[1] = 1, a__1[1] = "0"; -#line 4915 "" +#line 4967 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4916 "" +#line 4968 "" ++lnote; -#line 4917 "" +#line 4969 "" } else { /* Horizontal tweak */ -#line 4921 "" +#line 4973 "" lform = lfmt1_(&hoff); /* Writing concatenation */ -#line 4922 "" +#line 4974 "" i__3[0] = lnote, a__1[0] = notexq; -#line 4922 "" +#line 4974 "" i__3[1] = 1, a__1[1] = "{"; -#line 4922 "" +#line 4974 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4923 "" +#line 4975 "" ++lnote; -#line 4924 "" +#line 4976 "" i__2 = lnote; -#line 4924 "" +#line 4976 "" ici__1.icierr = 0; -#line 4924 "" +#line 4976 "" ici__1.icirnum = 1; -#line 4924 "" +#line 4976 "" ici__1.icirlen = lnote + lform - i__2; -#line 4924 "" +#line 4976 "" ici__1.iciunit = notexq + i__2; /* Writing concatenation */ -#line 4924 "" +#line 4976 "" i__6[0] = 2, a__3[0] = "(f"; -#line 4924 "" +#line 4976 "" i__5 = lform + 48; -#line 4924 "" +#line 4976 "" chax_(ch__1, (ftnlen)1, &i__5); -#line 4924 "" +#line 4976 "" i__6[1] = 1, a__3[1] = ch__1; -#line 4924 "" +#line 4976 "" i__6[2] = 3, a__3[2] = ".1)"; -#line 4924 "" +#line 4976 "" ici__1.icifmt = (s_cat(ch__2, a__3, i__6, &c__3, (ftnlen)6), ch__2); -#line 4924 "" +#line 4976 "" s_wsfi(&ici__1); -#line 4924 "" +#line 4976 "" do_fio(&c__1, (char *)&hoff, (ftnlen)sizeof(real)); -#line 4924 "" +#line 4976 "" e_wsfi(); -#line 4926 "" +#line 4978 "" lnote += lform; /* Writing concatenation */ -#line 4927 "" +#line 4979 "" i__3[0] = lnote, a__1[0] = notexq; -#line 4927 "" +#line 4979 "" i__3[1] = 1, a__1[1] = "}"; -#line 4927 "" +#line 4979 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 4928 "" +#line 4980 "" ++lnote; -#line 4929 "" +#line 4981 "" } -#line 4930 "" +#line 4982 "" if (idno == 0) { /* text-dynamic. Find the string and append it */ -#line 4934 "" +#line 4986 "" i__2 = comdyn_1.ntxtdyn; -#line 4934 "" +#line 4986 "" for (jtxtdyn = jtxtdyn1; jtxtdyn <= i__2; ++jtxtdyn) { /* ivxip = ivx+16*ip */ -#line 4936 "" +#line 4988 "" ivxip = *ivx + (*ip << 5); -#line 4937 "" +#line 4989 "" if (ivxip == comdyn_1.ivxiptxt[jtxtdyn - 1]) { -#line 4937 "" +#line 4989 "" goto L5; -#line 4937 "" +#line 4989 "" } -#line 4938 "" +#line 4990 "" /* L4: */ -#line 4938 "" +#line 4990 "" } -#line 4939 "" +#line 4991 "" printl_("Abnormal stop in putdyn", (ftnlen)23); -#line 4940 "" +#line 4992 "" stop1_(); -#line 4941 "" +#line 4993 "" L5: -#line 4942 "" +#line 4994 "" ltxtdyn = lenstr_(comdyn_1.txtdynq + (jtxtdyn - 1 << 7), &c__128, (ftnlen)128); /* Font size based on musicsize */ -#line 4946 "" +#line 4998 "" if (commus_1.musize == 20) { /* Writing concatenation */ -#line 4947 "" +#line 4999 "" i__7[0] = lnote, a__4[0] = notexq; -#line 4947 "" +#line 4999 "" i__7[1] = 1, a__4[1] = "{"; -#line 4947 "" +#line 4999 "" i__7[2] = 1, a__4[2] = "\\"; -#line 4947 "" +#line 4999 "" i__7[3] = 7, a__4[3] = "medtype"; -#line 4947 "" +#line 4999 "" i__7[4] = 1, a__4[4] = "\\"; -#line 4947 "" +#line 4999 "" i__7[5] = 3, a__4[5] = "it "; -#line 4947 "" +#line 4999 "" s_cat(notexq, a__4, i__7, &c__6, (ftnlen)79); -#line 4949 "" +#line 5001 "" lnote += 13; -#line 4950 "" +#line 5002 "" } else if (commus_1.musize == 16) { /* Writing concatenation */ -#line 4951 "" +#line 5003 "" i__7[0] = lnote, a__4[0] = notexq; -#line 4951 "" +#line 5003 "" i__7[1] = 1, a__4[1] = "{"; -#line 4951 "" +#line 5003 "" i__7[2] = 1, a__4[2] = "\\"; -#line 4951 "" +#line 5003 "" i__7[3] = 8, a__4[3] = "normtype"; -#line 4951 "" +#line 5003 "" i__7[4] = 1, a__4[4] = "\\"; -#line 4951 "" +#line 5003 "" i__7[5] = 3, a__4[5] = "it "; -#line 4951 "" +#line 5003 "" s_cat(notexq, a__4, i__7, &c__6, (ftnlen)79); -#line 4953 "" +#line 5005 "" lnote += 14; -#line 4954 "" +#line 5006 "" } else if (commus_1.musize == 24) { /* Writing concatenation */ -#line 4955 "" +#line 5007 "" i__7[0] = lnote, a__4[0] = notexq; -#line 4955 "" +#line 5007 "" i__7[1] = 1, a__4[1] = "{"; -#line 4955 "" +#line 5007 "" i__7[2] = 1, a__4[2] = "\\"; -#line 4955 "" +#line 5007 "" i__7[3] = 7, a__4[3] = "bigtype"; -#line 4955 "" +#line 5007 "" i__7[4] = 1, a__4[4] = "\\"; -#line 4955 "" +#line 5007 "" i__7[5] = 3, a__4[5] = "it "; -#line 4955 "" +#line 5007 "" s_cat(notexq, a__4, i__7, &c__6, (ftnlen)79); -#line 4957 "" +#line 5009 "" lnote += 13; -#line 4958 "" +#line 5010 "" } else if (commus_1.musize == 29) { /* Writing concatenation */ -#line 4959 "" +#line 5011 "" i__7[0] = lnote, a__4[0] = notexq; -#line 4959 "" +#line 5011 "" i__7[1] = 1, a__4[1] = "{"; -#line 4959 "" +#line 5011 "" i__7[2] = 1, a__4[2] = "\\"; -#line 4959 "" +#line 5011 "" i__7[3] = 7, a__4[3] = "Bigtype"; -#line 4959 "" +#line 5011 "" i__7[4] = 1, a__4[4] = "\\"; -#line 4959 "" +#line 5011 "" i__7[5] = 3, a__4[5] = "it "; -#line 4959 "" +#line 5011 "" s_cat(notexq, a__4, i__7, &c__6, (ftnlen)79); -#line 4961 "" +#line 5013 "" lnote += 13; -#line 4962 "" +#line 5014 "" } /* Writing concatenation */ -#line 4963 "" +#line 5015 "" i__6[0] = lnote, a__3[0] = notexq; -#line 4963 "" +#line 5015 "" i__6[1] = ltxtdyn, a__3[1] = comdyn_1.txtdynq + (jtxtdyn - 1 << 7) ; -#line 4963 "" +#line 5015 "" i__6[2] = 1, a__3[2] = "}"; -#line 4963 "" +#line 5015 "" s_cat(notexq, a__3, i__6, &c__3, (ftnlen)79); -#line 4965 "" +#line 5017 "" lnote = lnote + ltxtdyn + 1; /* Reset jtxtdyn1 just in case >1 txtdyn on same note. */ -#line 4969 "" +#line 5021 "" jtxtdyn1 = jtxtdyn + 1; -#line 4970 "" +#line 5022 "" } else if (idno <= 12) { /* Letter-group dynamic. Append the letter-group command */ -#line 4974 "" +#line 5026 "" id = idno << 2; -#line 4975 "" +#line 5027 "" i__2 = id - 4; -#line 4975 "" +#line 5027 "" s_copy(dynstrq, dyntablq + i__2, (ftnlen)4, id - i__2); -#line 4976 "" +#line 5028 "" id = lenstr_(dynstrq, &c__4, (ftnlen)4); /* Writing concatenation */ -#line 4977 "" +#line 5029 "" i__6[0] = lnote, a__3[0] = notexq; -#line 4977 "" +#line 5029 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 4977 "" +#line 5029 "" i__6[1] = 1, a__3[1] = ch__1; -#line 4977 "" +#line 5029 "" i__6[2] = id, a__3[2] = dynstrq; -#line 4977 "" +#line 5029 "" s_cat(notexq, a__3, i__6, &c__3, (ftnlen)79); -#line 4978 "" +#line 5030 "" lnote = lnote + 1 + id; -#line 4979 "" +#line 5031 "" } -#line 4980 "" +#line 5032 "" addstr_(notexq, &lnote, soutq, lsout, lnote, (ftnlen)80); -#line 4981 "" +#line 5033 "" if (! comslur_1.fontslur && idno == 15) { /* PS slurs on, hairpin is ending. Go back and set height at beginning. */ /* Add user-defined tweak to default level */ -#line 4986 "" +#line 5038 "" lbot1 = lpretweak + comdyn_1.levhssav[*ivx - 1]; -#line 4987 "" +#line 5039 "" if (lbot1 > 9) { -#line 4988 "" +#line 5040 "" s_copy(numpq, "{", (ftnlen)5, (ftnlen)1); -#line 4989 "" - s_wsfi(&io___379); -#line 4989 "" +#line 5041 "" + s_wsfi(&io___380); +#line 5041 "" do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer)); -#line 4989 "" +#line 5041 "" e_wsfi(); /* Writing concatenation */ -#line 4990 "" +#line 5042 "" i__3[0] = 3, a__1[0] = numpq; -#line 4990 "" +#line 5042 "" i__3[1] = 1, a__1[1] = "}"; -#line 4990 "" +#line 5042 "" s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5); -#line 4991 "" +#line 5043 "" lnumpq = 4; -#line 4992 "" +#line 5044 "" } else if (lbot1 > -1) { -#line 4993 "" +#line 5045 "" *(unsigned char *)&ch__1[0] = lbot1 + 48; -#line 4993 "" +#line 5045 "" s_copy(numpq, ch__1, (ftnlen)5, (ftnlen)1); -#line 4994 "" +#line 5046 "" lnumpq = 1; -#line 4995 "" +#line 5047 "" } else if (lbot1 > -10) { -#line 4996 "" +#line 5048 "" s_copy(numpq, "{", (ftnlen)5, (ftnlen)1); -#line 4997 "" - s_wsfi(&io___380); -#line 4997 "" +#line 5049 "" + s_wsfi(&io___381); +#line 5049 "" do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer)); -#line 4997 "" +#line 5049 "" e_wsfi(); /* Writing concatenation */ -#line 4998 "" +#line 5050 "" i__3[0] = 3, a__1[0] = numpq; -#line 4998 "" +#line 5050 "" i__3[1] = 1, a__1[1] = "}"; -#line 4998 "" +#line 5050 "" s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5); -#line 4999 "" +#line 5051 "" lnumpq = 4; -#line 5000 "" +#line 5052 "" } else { -#line 5001 "" +#line 5053 "" s_copy(numpq, "{", (ftnlen)5, (ftnlen)1); -#line 5002 "" - s_wsfi(&io___381); -#line 5002 "" +#line 5054 "" + s_wsfi(&io___382); +#line 5054 "" do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer)); -#line 5002 "" +#line 5054 "" e_wsfi(); /* Writing concatenation */ -#line 5003 "" +#line 5055 "" i__3[0] = 4, a__1[0] = numpq; -#line 5003 "" +#line 5055 "" i__3[1] = 1, a__1[1] = "}"; -#line 5003 "" +#line 5055 "" s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5); -#line 5004 "" +#line 5056 "" lnumpq = 5; -#line 5005 "" +#line 5057 "" } /* Construct string to search backwards for placeholder */ -#line 5009 "" +#line 5061 "" if (*ivx <= 9) { /* Writing concatenation */ -#line 5010 "" +#line 5062 "" i__6[0] = 5, a__3[0] = "cresc"; -#line 5010 "" +#line 5062 "" *(unsigned char *)&ch__1[0] = *ivx + 48; -#line 5010 "" +#line 5062 "" i__6[1] = 1, a__3[1] = ch__1; -#line 5010 "" +#line 5062 "" i__6[2] = 5, a__3[2] = "{ }"; -#line 5010 "" +#line 5062 "" s_cat(tempq, a__3, i__6, &c__3, (ftnlen)48); -#line 5011 "" +#line 5063 "" ltemp = 11; -#line 5012 "" +#line 5064 "" } else if (*ivx <= 19) { /* Writing concatenation */ -#line 5013 "" +#line 5065 "" i__6[0] = 7, a__3[0] = "cresc{1"; -#line 5013 "" +#line 5065 "" *(unsigned char *)&ch__1[0] = *ivx + 38; -#line 5013 "" +#line 5065 "" i__6[1] = 1, a__3[1] = ch__1; -#line 5013 "" +#line 5065 "" i__6[2] = 6, a__3[2] = "}{ }"; -#line 5013 "" +#line 5065 "" s_cat(tempq, a__3, i__6, &c__3, (ftnlen)48); -#line 5014 "" +#line 5066 "" ltemp = 14; -#line 5015 "" +#line 5067 "" } else { /* Writing concatenation */ -#line 5016 "" +#line 5068 "" i__6[0] = 7, a__3[0] = "cresc{2"; -#line 5016 "" +#line 5068 "" *(unsigned char *)&ch__1[0] = *ivx + 28; -#line 5016 "" +#line 5068 "" i__6[1] = 1, a__3[1] = ch__1; -#line 5016 "" +#line 5068 "" i__6[2] = 6, a__3[2] = "}{ }"; -#line 5016 "" +#line 5068 "" s_cat(tempq, a__3, i__6, &c__3, (ftnlen)48); -#line 5017 "" +#line 5069 "" ltemp = 14; -#line 5018 "" +#line 5070 "" } -#line 5019 "" - s_wsfe(&io___384); +#line 5071 "" + s_wsfe(&io___385); /* Writing concatenation */ -#line 5019 "" +#line 5071 "" i__3[0] = *lsout, a__1[0] = soutq; -#line 5019 "" +#line 5071 "" i__3[1] = 1, a__1[1] = "%"; -#line 5019 "" +#line 5071 "" s_cat(ch__3, a__1, i__3, &c__2, (ftnlen)81); -#line 5019 "" +#line 5071 "" do_fio(&c__1, ch__3, *lsout + 1); -#line 5019 "" +#line 5071 "" e_wsfe(); -#line 5020 "" +#line 5072 "" *lsout = 0; /* Writing concatenation */ -#line 5021 "" +#line 5073 "" i__3[0] = ltemp - 5, a__1[0] = tempq; -#line 5021 "" +#line 5073 "" i__3[1] = lnumpq, a__1[1] = numpq; -#line 5021 "" +#line 5073 "" s_cat(ch__4, a__1, i__3, &c__2, (ftnlen)53); -#line 5021 "" +#line 5073 "" i__2 = ltemp - 5 + lnumpq; -#line 5021 "" +#line 5073 "" backfill_(&c__11, tempq, <emp, ch__4, &i__2, (ftnlen)48, ltemp - 5 + lnumpq); -#line 5023 "" +#line 5075 "" } -#line 5024 "" +#line 5076 "" /* L3: */ -#line 5024 "" +#line 5076 "" } /* Shrink arrays, decrease ndyn 111109 */ -#line 5028 "" +#line 5080 "" for (icntdyn = numdyn; icntdyn >= 1; --icntdyn) { -#line 5029 "" +#line 5081 "" i__1 = comdyn_1.ndyn - 1; -#line 5029 "" +#line 5081 "" for (jdyn = idynn[icntdyn - 1]; jdyn <= i__1; ++jdyn) { -#line 5030 "" +#line 5082 "" comdyn_1.idyndat[jdyn - 1] = comdyn_1.idyndat[jdyn]; -#line 5031 "" +#line 5083 "" comdyn_1.idynda2[jdyn - 1] = comdyn_1.idynda2[jdyn]; -#line 5032 "" +#line 5084 "" /* L7: */ -#line 5032 "" +#line 5084 "" } -#line 5033 "" +#line 5085 "" --comdyn_1.ndyn; -#line 5034 "" +#line 5086 "" /* L6: */ -#line 5034 "" +#line 5086 "" } -#line 5035 "" +#line 5087 "" return 0; } /* dodyn_ */ @@ -11963,15 +12055,15 @@ L5: static real wheadpt1; /* Fortran I/O blocks */ - static cilist io___390 = { 0, 6, 0, 0, 0 }; - static cilist io___394 = { 0, 6, 0, 0, 0 }; + static cilist io___391 = { 0, 6, 0, 0, 0 }; static cilist io___395 = { 0, 6, 0, 0, 0 }; - static cilist io___396 = { 0, 15, 0, "(/,a)", 0 }; - static icilist io___399 = { 0, notexq, 0, "(i2)", 2, 1 }; - static cilist io___400 = { 0, 6, 0, 0, 0 }; - static icilist io___424 = { 0, notexq+13, 0, "(a1,f4.1)", 5, 1 }; - static icilist io___426 = { 0, notexq+13, 0, "(f4.1)", 4, 1 }; - static icilist io___428 = { 0, notexq+5, 0, "(f3.1)", 3, 1 }; + static cilist io___396 = { 0, 6, 0, 0, 0 }; + static cilist io___397 = { 0, 15, 0, "(/,a)", 0 }; + static icilist io___400 = { 0, notexq, 0, "(i2)", 2, 1 }; + static cilist io___401 = { 0, 6, 0, 0, 0 }; + static icilist io___425 = { 0, notexq+13, 0, "(a1,f4.1)", 5, 1 }; + static icilist io___427 = { 0, notexq+13, 0, "(f4.1)", 4, 1 }; + static icilist io___429 = { 0, notexq+5, 0, "(f3.1)", 3, 1 }; @@ -11979,334 +12071,334 @@ L5: /* It is only used to find ig. */ /* ig is returned to makeabar in case there's a slur that needs to be ended */ -#line 5074 "" +#line 5126 "" /* Parameter adjustments */ -#line 5074 "" +#line 5126 "" ulq -= 25; -#line 5074 "" +#line 5126 "" --ptgr; -#line 5074 "" +#line 5126 "" -#line 5074 "" +#line 5126 "" /* Function Body */ -#line 5074 "" +#line 5126 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 5074 "" +#line 5126 "" *(unsigned char *)sq = *(unsigned char *)&ch__1[0]; -#line 5075 "" +#line 5127 "" isgaft = bit_test(*ipl,29); -#line 5076 "" +#line 5128 "" iswaft = bit_test(*ipl,31); -#line 5077 "" +#line 5129 "" normsp = ! isgaft; /* Find ig. */ -#line 5081 "" +#line 5133 "" i__1 = comgrace_1.ngrace; -#line 5081 "" +#line 5133 "" for (*ig = 1; *ig <= i__1; ++(*ig)) { -#line 5082 "" +#line 5134 "" if (comgrace_1.ipg[*ig - 1] == *ip && comgrace_1.ivg[*ig - 1] == *ivx) { -#line 5082 "" +#line 5134 "" goto L121; -#line 5082 "" +#line 5134 "" } -#line 5083 "" +#line 5135 "" /* L120: */ -#line 5083 "" +#line 5135 "" } -#line 5084 "" - s_wsle(&io___390); -#line 5084 "" +#line 5136 "" + s_wsle(&io___391); +#line 5136 "" do_lio(&c__9, &c__1, "Problem finding grace index in dograce", (ftnlen)38) ; -#line 5084 "" +#line 5136 "" e_wsle(); -#line 5085 "" +#line 5137 "" s_stop("", (ftnlen)0); -#line 5086 "" +#line 5138 "" L121: -#line 5087 "" +#line 5139 "" ngs = comgrace_1.ngstrt[*ig - 1]; -#line 5088 "" +#line 5140 "" mg = comgrace_1.multg[*ig - 1]; /* wheadpt1 = wheadpt*fullsize(ivx) */ -#line 5090 "" +#line 5142 "" wheadpt1 = comask_1.wheadpt * comfig_1.fullsize[*instno - 1]; /* For way-after-graces at end of bar, must set the octave. */ -#line 5094 "" +#line 5146 "" if (*farend) { -#line 5095 "" +#line 5147 "" comoct_1.noctup = 0; -#line 5096 "" +#line 5148 "" if (*ncm == 23) { -#line 5096 "" +#line 5148 "" comoct_1.noctup = -2; -#line 5096 "" +#line 5148 "" } -#line 5097 "" +#line 5149 "" } -#line 5098 "" +#line 5150 "" if (comgrace_1.slurg[*ig - 1] && ! iswaft && ! isgaft) { -#line 5099 "" +#line 5151 "" if (comslur_1.listslur == 16777215) { -#line 5100 "" - s_wsle(&io___394); -#line 5100 "" - e_wsle(); -#line 5101 "" +#line 5152 "" s_wsle(&io___395); -#line 5101 "" +#line 5152 "" + e_wsle(); +#line 5153 "" + s_wsle(&io___396); +#line 5153 "" do_lio(&c__9, &c__1, "You defined the twentyfifth slur, one too "\ "many!", (ftnlen)47); -#line 5101 "" +#line 5153 "" e_wsle(); -#line 5102 "" - s_wsfe(&io___396); -#line 5102 "" +#line 5154 "" + s_wsfe(&io___397); +#line 5154 "" do_fio(&c__1, "You defined the twentyfifth slur, one too many!", ( ftnlen)47); -#line 5102 "" +#line 5154 "" e_wsfe(); -#line 5104 "" +#line 5156 "" stop1_(); -#line 5105 "" +#line 5157 "" } /* Slur on fore-grace. Get index of next slur not in use, from 23 down. */ -#line 5109 "" +#line 5161 "" i__1 = 16777215 - comslur_1.listslur; -#line 5109 "" +#line 5161 "" comslur_1.ndxslur = log2_(&i__1); -#line 5111 "" +#line 5163 "" } -#line 5112 "" +#line 5164 "" if (comgrace_1.nng[*ig - 1] == 1) { /* Single grace. */ -#line 5116 "" +#line 5168 "" if (normsp) { /* Anything but GA */ /* Writing concatenation */ -#line 5120 "" +#line 5172 "" i__2[0] = 1, a__1[0] = sq; -#line 5120 "" +#line 5172 "" i__2[1] = 5, a__1[1] = "shlft"; -#line 5120 "" +#line 5172 "" s_cat(ch__2, a__1, i__2, &c__2, (ftnlen)6); -#line 5120 "" +#line 5172 "" addstr_(ch__2, &c__6, soutq, lsout, (ftnlen)6, (ftnlen)80); -#line 5121 "" +#line 5173 "" niptgr = i_nint(&ptgr[*ig]); /* Empirical tweak for postscript. */ /* if (.not.fontslur) niptgr = niptgr+nint(wheadpt*.3) */ /* ++ */ -#line 5127 "" +#line 5179 "" if (niptgr < 10) { /* Writing concatenation */ -#line 5128 "" +#line 5180 "" i__1 = niptgr + 48; -#line 5128 "" +#line 5180 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5128 "" +#line 5180 "" i__2[0] = 1, a__1[0] = ch__1; -#line 5128 "" +#line 5180 "" i__2[1] = 1, a__1[1] = "{"; -#line 5128 "" +#line 5180 "" s_cat(ch__3, a__1, i__2, &c__2, (ftnlen)2); -#line 5128 "" +#line 5180 "" addstr_(ch__3, &c__2, soutq, lsout, (ftnlen)2, (ftnlen)80); -#line 5129 "" +#line 5181 "" } else if (niptgr < 100) { -#line 5130 "" - s_wsfi(&io___399); -#line 5130 "" +#line 5182 "" + s_wsfi(&io___400); +#line 5182 "" do_fio(&c__1, (char *)&niptgr, (ftnlen)sizeof(integer)); -#line 5130 "" +#line 5182 "" e_wsfi(); /* Writing concatenation */ -#line 5131 "" +#line 5183 "" i__3[0] = 1, a__2[0] = "{"; -#line 5131 "" +#line 5183 "" i__3[1] = 2, a__2[1] = notexq; -#line 5131 "" +#line 5183 "" i__3[2] = 2, a__2[2] = "}{"; -#line 5131 "" +#line 5183 "" s_cat(ch__4, a__2, i__3, &c__3, (ftnlen)5); -#line 5131 "" +#line 5183 "" addstr_(ch__4, &c__5, soutq, lsout, (ftnlen)5, (ftnlen)80); -#line 5132 "" +#line 5184 "" } else { -#line 5133 "" - s_wsle(&io___400); -#line 5133 "" +#line 5185 "" + s_wsle(&io___401); +#line 5185 "" do_lio(&c__9, &c__1, "Call Dr. Don if you really want grace "\ "note group > 99 pt", (ftnlen)56); -#line 5133 "" +#line 5185 "" e_wsle(); -#line 5135 "" +#line 5187 "" s_stop("", (ftnlen)0); -#line 5136 "" +#line 5188 "" } -#line 5137 "" +#line 5189 "" } else { /* Writing concatenation */ -#line 5138 "" +#line 5190 "" i__2[0] = 1, a__1[0] = sq; -#line 5138 "" +#line 5190 "" i__2[1] = 10, a__1[1] = "gaft{1.5}{"; -#line 5138 "" +#line 5190 "" s_cat(ch__5, a__1, i__2, &c__2, (ftnlen)11); -#line 5138 "" +#line 5190 "" addstr_(ch__5, &c__11, soutq, lsout, (ftnlen)11, (ftnlen)80); /* GA. Compute aftshft, for later use. */ -#line 5142 "" +#line 5194 "" comgrace_1.aftshft = spfacs_1.grafac; -#line 5143 "" +#line 5195 "" if (comgrace_1.naccg[comgrace_1.ngstrt[*ig - 1] - 1] > 0) { -#line 5143 "" +#line 5195 "" comgrace_1.aftshft += spfacs_1.agc1fac; -#line 5143 "" +#line 5195 "" } -#line 5144 "" +#line 5196 "" comgrace_1.aftshft *= comask_1.wheadpt; -#line 5145 "" +#line 5197 "" } -#line 5146 "" +#line 5198 "" if (comgrace_1.slurg[*ig - 1] && ! isgaft && ! iswaft) { /* Start slur on pre-grace. No accounting needed since will be ended very soon. */ -#line 5150 "" +#line 5202 "" notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen) 8); -#line 5151 "" +#line 5203 "" if (comslur_1.fontslur) { -#line 5152 "" +#line 5204 "" if (comgrace_1.upg[*ig - 1]) { /* Writing concatenation */ -#line 5153 "" +#line 5205 "" i__2[0] = 1, a__1[0] = sq; -#line 5153 "" +#line 5205 "" i__2[1] = 6, a__1[1] = "islurd"; -#line 5153 "" +#line 5205 "" s_cat(ch__6, a__1, i__2, &c__2, (ftnlen)7); -#line 5153 "" +#line 5205 "" addstr_(ch__6, &c__7, soutq, lsout, (ftnlen)7, (ftnlen)80) ; -#line 5154 "" +#line 5206 "" } else { /* Writing concatenation */ -#line 5155 "" +#line 5207 "" i__2[0] = 1, a__1[0] = sq; -#line 5155 "" +#line 5207 "" i__2[1] = 6, a__1[1] = "isluru"; -#line 5155 "" +#line 5207 "" s_cat(ch__6, a__1, i__2, &c__2, (ftnlen)7); -#line 5155 "" +#line 5207 "" addstr_(ch__6, &c__7, soutq, lsout, (ftnlen)7, (ftnlen)80) ; -#line 5156 "" +#line 5208 "" } -#line 5157 "" +#line 5209 "" } else { /* Start Postscript slur. */ -#line 5161 "" +#line 5213 "" if (comgrace_1.upg[*ig - 1]) { /* Writing concatenation */ -#line 5162 "" +#line 5214 "" i__2[0] = 1, a__1[0] = sq; -#line 5162 "" +#line 5214 "" i__2[1] = 3, a__1[1] = "isd"; -#line 5162 "" +#line 5214 "" s_cat(ch__7, a__1, i__2, &c__2, (ftnlen)4); -#line 5162 "" +#line 5214 "" addstr_(ch__7, &c__4, soutq, lsout, (ftnlen)4, (ftnlen)80) ; -#line 5163 "" +#line 5215 "" } else { /* Writing concatenation */ -#line 5164 "" +#line 5216 "" i__2[0] = 1, a__1[0] = sq; -#line 5164 "" +#line 5216 "" i__2[1] = 3, a__1[1] = "isu"; -#line 5164 "" +#line 5216 "" s_cat(ch__7, a__1, i__2, &c__2, (ftnlen)4); -#line 5164 "" +#line 5216 "" addstr_(ch__7, &c__4, soutq, lsout, (ftnlen)4, (ftnlen)80) ; -#line 5165 "" +#line 5217 "" } -#line 5166 "" +#line 5218 "" } /* Print slur number, 23-ndxslur */ -#line 5170 "" +#line 5222 "" lnote = 0; -#line 5171 "" +#line 5223 "" if (23 - comslur_1.ndxslur < 10) { /* notexq = notexq(1:lnote)//chax(59-ndxslur) */ -#line 5173 "" +#line 5225 "" i__1 = 71 - comslur_1.ndxslur; -#line 5173 "" +#line 5225 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5173 "" +#line 5225 "" s_copy(notexq, ch__1, (ftnlen)79, (ftnlen)1); -#line 5174 "" +#line 5226 "" lnote = 1; -#line 5175 "" +#line 5227 "" } else if (23 - comslur_1.ndxslur < 20) { /* notexq = notexq(1:lnote)//'{1'//chax(49-ndxslur)//'}' */ /* Writing concatenation */ -#line 5177 "" +#line 5229 "" i__3[0] = 2, a__2[0] = "{1"; -#line 5177 "" +#line 5229 "" i__1 = 61 - comslur_1.ndxslur; -#line 5177 "" +#line 5229 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5177 "" +#line 5229 "" i__3[1] = 1, a__2[1] = ch__1; -#line 5177 "" +#line 5229 "" i__3[2] = 1, a__2[2] = "}"; -#line 5177 "" +#line 5229 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79); -#line 5178 "" +#line 5230 "" lnote = 4; -#line 5179 "" +#line 5231 "" } else { /* Writing concatenation */ -#line 5180 "" +#line 5232 "" i__4[0] = lnote, a__3[0] = notexq; -#line 5180 "" +#line 5232 "" i__4[1] = 2, a__3[1] = "{2"; -#line 5180 "" +#line 5232 "" i__1 = 51 - comslur_1.ndxslur; -#line 5180 "" +#line 5232 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5180 "" +#line 5232 "" i__4[2] = 1, a__3[2] = ch__1; -#line 5180 "" +#line 5232 "" i__4[3] = 1, a__3[3] = "}"; -#line 5180 "" +#line 5232 "" s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79); -#line 5181 "" +#line 5233 "" lnote = 4; -#line 5182 "" +#line 5234 "" } /* if (11-ndxslur .lt. 10) then */ /* call addstr(chax(59-ndxslur)//noteq(1:lnoten),1+lnoten, */ @@ -12316,1100 +12408,1100 @@ L121: /* * 4+lnoten,soutq,lsout) */ /* end if */ /* Writing concatenation */ -#line 5190 "" +#line 5242 "" i__2[0] = lnote, a__1[0] = notexq; -#line 5190 "" +#line 5242 "" i__2[1] = lnoten, a__1[1] = noteq; -#line 5190 "" +#line 5242 "" s_cat(ch__8, a__1, i__2, &c__2, (ftnlen)87); -#line 5190 "" +#line 5242 "" i__1 = lnote + lnoten; -#line 5190 "" +#line 5242 "" addstr_(ch__8, &i__1, soutq, lsout, lnote + lnoten, (ftnlen)80); -#line 5192 "" +#line 5244 "" if (! comslur_1.fontslur) { /* Horizontal tweaks for postscript slur on single grace */ -#line 5196 "" +#line 5248 "" stemup = TRUE_; -#line 5197 "" +#line 5249 "" if (comgrace_1.upg[*ig - 1]) { /* Check for up-grace + down stem. Get stem direction */ -#line 5201 "" +#line 5253 "" if (! (*beamon)) { /* Separate note. Get stem direction. */ -#line 5205 "" +#line 5257 "" udqq_(ch__1, (ftnlen)1, nolev, ncmidx, islur, nvmx, ivx, nv); -#line 5205 "" +#line 5257 "" stemup = *(unsigned char *)&ch__1[0] == 'u'; -#line 5207 "" +#line 5259 "" } else { /* In a beam */ -#line 5211 "" +#line 5263 "" stemup = *(unsigned char *)&ulq[*ivx + *ibmcnt * 24] == 'u'; -#line 5212 "" +#line 5264 "" } /* Stop the shift if whole note */ -#line 5216 "" +#line 5268 "" stemup = stemup || *tnote > 63.f; -#line 5217 "" +#line 5269 "" } -#line 5218 "" +#line 5270 "" if (stemup) { -#line 5219 "" +#line 5271 "" addstr_("{-.3}", &c__5, soutq, lsout, (ftnlen)5, (ftnlen) 80); -#line 5220 "" +#line 5272 "" } else { -#line 5221 "" +#line 5273 "" addstr_("{-.8}", &c__5, soutq, lsout, (ftnlen)5, (ftnlen) 80); -#line 5222 "" +#line 5274 "" } -#line 5223 "" +#line 5275 "" } -#line 5224 "" +#line 5276 "" } -#line 5225 "" +#line 5277 "" if (comgrace_1.naccg[ngs - 1] > 0) { -#line 5226 "" +#line 5278 "" notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen) 8); /* Save for checking octave shifts in GA */ -#line 5230 "" +#line 5282 "" if (isgaft) { -#line 5231 "" +#line 5283 "" lnotenga = lnoten; -#line 5232 "" +#line 5284 "" s_copy(noteqga, noteq, (ftnlen)8, (ftnlen)8); -#line 5233 "" +#line 5285 "" } -#line 5235 "" +#line 5287 "" if (lnoten == 1) { -#line 5235 "" +#line 5287 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 5235 "" +#line 5287 "" } -#line 5236 "" +#line 5288 "" accsym_(&comgrace_1.naccg[ngs - 1], acsymq, &lacc, (ftnlen)3); /* Writing concatenation */ -#line 5237 "" +#line 5289 "" i__4[0] = 1, a__3[0] = sq; -#line 5237 "" +#line 5289 "" i__4[1] = 3, a__3[1] = "big"; -#line 5237 "" +#line 5289 "" i__4[2] = lacc, a__3[2] = acsymq; -#line 5237 "" +#line 5289 "" i__4[3] = lnoten, a__3[3] = noteq; -#line 5237 "" +#line 5289 "" s_cat(ch__9, a__3, i__4, &c__4, (ftnlen)15); -#line 5237 "" +#line 5289 "" i__1 = lacc + 4 + lnoten; -#line 5237 "" +#line 5289 "" addstr_(ch__9, &i__1, soutq, lsout, lacc + 4 + lnoten, (ftnlen)80) ; -#line 5239 "" +#line 5291 "" } -#line 5240 "" +#line 5292 "" if (comgrace_1.slashg[*ig - 1]) { /* Writing concatenation */ -#line 5241 "" +#line 5293 "" i__2[0] = 1, a__1[0] = sq; -#line 5241 "" +#line 5293 "" i__2[1] = 3, a__1[1] = "grc"; -#line 5241 "" +#line 5293 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5242 "" +#line 5294 "" lnote = 4; -#line 5243 "" +#line 5295 "" } else if (mg == 0) { /* Writing concatenation */ -#line 5244 "" +#line 5296 "" i__2[0] = 1, a__1[0] = sq; -#line 5244 "" +#line 5296 "" i__2[1] = 2, a__1[1] = "zq"; -#line 5244 "" +#line 5296 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5245 "" +#line 5297 "" lnote = 3; -#line 5246 "" +#line 5298 "" } else { /* Writing concatenation */ -#line 5247 "" +#line 5299 "" i__2[0] = 1, a__1[0] = sq; -#line 5247 "" +#line 5299 "" i__2[1] = 2, a__1[1] = "zc"; -#line 5247 "" +#line 5299 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5248 "" +#line 5300 "" i__1 = mg; -#line 5248 "" +#line 5300 "" for (i__ = 2; i__ <= i__1; ++i__) { /* Writing concatenation */ -#line 5249 "" +#line 5301 "" i__2[0] = i__ + 1, a__1[0] = notexq; -#line 5249 "" +#line 5301 "" i__2[1] = 1, a__1[1] = "c"; -#line 5249 "" +#line 5301 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5250 "" +#line 5302 "" /* L61: */ -#line 5250 "" +#line 5302 "" } -#line 5251 "" +#line 5303 "" lnote = mg + 2; -#line 5252 "" +#line 5304 "" } -#line 5253 "" +#line 5305 "" if (comgrace_1.upg[*ig - 1]) { /* Writing concatenation */ -#line 5254 "" +#line 5306 "" i__2[0] = lnote, a__1[0] = notexq; -#line 5254 "" +#line 5306 "" i__2[1] = 1, a__1[1] = "u"; -#line 5254 "" +#line 5306 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5255 "" +#line 5307 "" } else { /* Writing concatenation */ -#line 5256 "" +#line 5308 "" i__2[0] = lnote, a__1[0] = notexq; -#line 5256 "" +#line 5308 "" i__2[1] = 1, a__1[1] = "l"; -#line 5256 "" +#line 5308 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5257 "" +#line 5309 "" } -#line 5258 "" +#line 5310 "" i__1 = lnote + 1; -#line 5258 "" +#line 5310 "" addstr_(notexq, &i__1, soutq, lsout, (ftnlen)79, (ftnlen)80); -#line 5259 "" +#line 5311 "" notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen)8); -#line 5261 "" +#line 5313 "" if (isgaft && comgrace_1.naccg[ngs - 1] == 0) { -#line 5262 "" +#line 5314 "" lnotenga = lnoten; -#line 5263 "" +#line 5315 "" s_copy(noteqga, noteq, (ftnlen)8, (ftnlen)8); -#line 5264 "" +#line 5316 "" } -#line 5266 "" +#line 5318 "" if (lnoten == 1) { -#line 5266 "" +#line 5318 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 5266 "" +#line 5318 "" } -#line 5267 "" +#line 5319 "" addstr_(noteq, &lnoten, soutq, lsout, (ftnlen)8, (ftnlen)80); -#line 5268 "" +#line 5320 "" if (comgrace_1.slashg[*ig - 1]) { /* Writing concatenation */ -#line 5268 "" +#line 5320 "" i__4[0] = 1, a__3[0] = sq; -#line 5268 "" +#line 5320 "" i__4[1] = 5, a__3[1] = "off{-"; -#line 5268 "" +#line 5320 "" i__4[2] = 1, a__3[2] = sq; -#line 5268 "" +#line 5320 "" i__4[3] = 9, a__3[3] = "noteskip}"; -#line 5268 "" +#line 5320 "" s_cat(ch__10, a__3, i__4, &c__4, (ftnlen)16); -#line 5268 "" +#line 5320 "" addstr_(ch__10, &c__16, soutq, lsout, (ftnlen)16, (ftnlen)80); -#line 5268 "" +#line 5320 "" } /* Above code needed since slashg causes spacing */ -#line 5273 "" +#line 5325 "" if (comgrace_1.slurg[*ig - 1] && (iswaft || isgaft)) { /* Terminate slur on single after-grace */ /* ndxslur = igetbits(ipl,4,23) */ -#line 5278 "" +#line 5330 "" comslur_1.ndxslur = igetbits_(ipl, &c__5, &c__23); -#line 5279 "" +#line 5331 "" notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen) 8); /* Writing concatenation */ -#line 5280 "" +#line 5332 "" i__2[0] = 1, a__1[0] = sq; -#line 5280 "" +#line 5332 "" i__2[1] = 5, a__1[1] = "tslur"; -#line 5280 "" +#line 5332 "" s_cat(ch__2, a__1, i__2, &c__2, (ftnlen)6); -#line 5280 "" +#line 5332 "" addstr_(ch__2, &c__6, soutq, lsout, (ftnlen)6, (ftnlen)80); /* c Print 11-ndxslur */ /* Print 24-ndxslur */ /* if (11-ndxslur .lt. 10) then */ -#line 5286 "" +#line 5338 "" if (23 - comslur_1.ndxslur < 10) { /* call addstr(chax(59-ndxslur)//noteq(1:lnoten), */ /* Writing concatenation */ -#line 5288 "" +#line 5340 "" i__1 = 71 - comslur_1.ndxslur; -#line 5288 "" +#line 5340 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5288 "" +#line 5340 "" i__2[0] = 1, a__1[0] = ch__1; -#line 5288 "" +#line 5340 "" i__2[1] = lnoten, a__1[1] = noteq; -#line 5288 "" +#line 5340 "" s_cat(ch__11, a__1, i__2, &c__2, (ftnlen)9); -#line 5288 "" +#line 5340 "" i__5 = lnoten + 1; -#line 5288 "" +#line 5340 "" addstr_(ch__11, &i__5, soutq, lsout, lnoten + 1, (ftnlen)80); -#line 5290 "" +#line 5342 "" } else if (23 - comslur_1.ndxslur < 20) { /* Writing concatenation */ -#line 5291 "" +#line 5343 "" i__4[0] = 2, a__3[0] = "{2"; -#line 5291 "" +#line 5343 "" i__1 = 61 - comslur_1.ndxslur; -#line 5291 "" +#line 5343 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5291 "" +#line 5343 "" i__4[1] = 1, a__3[1] = ch__1; -#line 5291 "" +#line 5343 "" i__4[2] = 1, a__3[2] = "}"; -#line 5291 "" +#line 5343 "" i__4[3] = lnoten, a__3[3] = noteq; -#line 5291 "" +#line 5343 "" s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12); -#line 5291 "" +#line 5343 "" i__5 = lnoten + 4; -#line 5291 "" +#line 5343 "" addstr_(ch__12, &i__5, soutq, lsout, lnoten + 4, (ftnlen)80); -#line 5293 "" +#line 5345 "" } else { /* call addstr('{1'//chax(49-ndxslur)//'}'//noteq(1:lnoten), */ /* Writing concatenation */ -#line 5295 "" +#line 5347 "" i__4[0] = 2, a__3[0] = "{1"; -#line 5295 "" +#line 5347 "" i__1 = 51 - comslur_1.ndxslur; -#line 5295 "" +#line 5347 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5295 "" +#line 5347 "" i__4[1] = 1, a__3[1] = ch__1; -#line 5295 "" +#line 5347 "" i__4[2] = 1, a__3[2] = "}"; -#line 5295 "" +#line 5347 "" i__4[3] = lnoten, a__3[3] = noteq; -#line 5295 "" +#line 5347 "" s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12); -#line 5295 "" +#line 5347 "" i__5 = lnoten + 4; -#line 5295 "" +#line 5347 "" addstr_(ch__12, &i__5, soutq, lsout, lnoten + 4, (ftnlen)80); -#line 5297 "" +#line 5349 "" } -#line 5298 "" +#line 5350 "" comgrace_1.slurg[*ig - 1] = FALSE_; -#line 5299 "" +#line 5351 "" comslur_1.listslur = bit_clear(comslur_1.listslur, comslur_1.ndxslur); -#line 5300 "" +#line 5352 "" } -#line 5301 "" +#line 5353 "" addstr_("}", &c__1, soutq, lsout, (ftnlen)1, (ftnlen)80); /* +++ Try to fix loss of octave with single gaft */ /* if (isgaft) call addstr(sq//'zcharnote'//noteq(1:lnoten)//'{~}', */ /* * 13+lnoten,soutq,lsout) */ -#line 5307 "" +#line 5359 "" if (isgaft) { -#line 5308 "" +#line 5360 "" itrans = 0; -#line 5309 "" +#line 5361 "" i__1 = lnotenga; -#line 5309 "" +#line 5361 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 5310 "" +#line 5362 "" chax_(ch__1, (ftnlen)1, &c__39); -#line 5310 "" +#line 5362 "" if (*(unsigned char *)¬eqga[i__ - 1] == *(unsigned char *)& ch__1[0]) { -#line 5311 "" +#line 5363 "" itrans += 7; -#line 5312 "" +#line 5364 "" } else /* if(complicated condition) */ { -#line 5312 "" +#line 5364 "" chax_(ch__1, (ftnlen)1, &c__96); -#line 5312 "" +#line 5364 "" if (*(unsigned char *)¬eqga[i__ - 1] == *(unsigned char *)&ch__1[0]) { -#line 5313 "" +#line 5365 "" itrans += -7; -#line 5314 "" +#line 5366 "" } -#line 5314 "" +#line 5366 "" } -#line 5315 "" +#line 5367 "" /* L1: */ -#line 5315 "" +#line 5367 "" } -#line 5316 "" +#line 5368 "" if (itrans == -14) { /* Writing concatenation */ -#line 5317 "" +#line 5369 "" i__4[0] = 1, a__3[0] = sq; -#line 5317 "" +#line 5369 "" i__4[1] = 7, a__3[1] = "advance"; -#line 5317 "" +#line 5369 "" i__4[2] = 1, a__3[2] = sq; -#line 5317 "" +#line 5369 "" i__4[3] = 12, a__3[3] = "transpose-14"; -#line 5317 "" +#line 5369 "" s_cat(ch__13, a__3, i__4, &c__4, (ftnlen)21); -#line 5317 "" +#line 5369 "" addstr_(ch__13, &c__21, soutq, lsout, (ftnlen)21, (ftnlen)80); -#line 5319 "" +#line 5371 "" } else if (itrans == -7) { /* Writing concatenation */ -#line 5320 "" +#line 5372 "" i__4[0] = 1, a__3[0] = sq; -#line 5320 "" +#line 5372 "" i__4[1] = 7, a__3[1] = "advance"; -#line 5320 "" +#line 5372 "" i__4[2] = 1, a__3[2] = sq; -#line 5320 "" +#line 5372 "" i__4[3] = 11, a__3[3] = "transpose-7"; -#line 5320 "" +#line 5372 "" s_cat(ch__14, a__3, i__4, &c__4, (ftnlen)20); -#line 5320 "" +#line 5372 "" addstr_(ch__14, &c__20, soutq, lsout, (ftnlen)20, (ftnlen)80); -#line 5322 "" +#line 5374 "" } else if (itrans == 7) { /* Writing concatenation */ -#line 5323 "" +#line 5375 "" i__4[0] = 1, a__3[0] = sq; -#line 5323 "" +#line 5375 "" i__4[1] = 7, a__3[1] = "advance"; -#line 5323 "" +#line 5375 "" i__4[2] = 1, a__3[2] = sq; -#line 5323 "" +#line 5375 "" i__4[3] = 10, a__3[3] = "transpose7"; -#line 5323 "" +#line 5375 "" s_cat(ch__15, a__3, i__4, &c__4, (ftnlen)19); -#line 5323 "" +#line 5375 "" addstr_(ch__15, &c__19, soutq, lsout, (ftnlen)19, (ftnlen)80); -#line 5325 "" +#line 5377 "" } else if (itrans == 14) { /* Writing concatenation */ -#line 5326 "" +#line 5378 "" i__4[0] = 1, a__3[0] = sq; -#line 5326 "" +#line 5378 "" i__4[1] = 7, a__3[1] = "advance"; -#line 5326 "" +#line 5378 "" i__4[2] = 1, a__3[2] = sq; -#line 5326 "" +#line 5378 "" i__4[3] = 11, a__3[3] = "transpose14"; -#line 5326 "" +#line 5378 "" s_cat(ch__14, a__3, i__4, &c__4, (ftnlen)20); -#line 5326 "" +#line 5378 "" addstr_(ch__14, &c__20, soutq, lsout, (ftnlen)20, (ftnlen)80); -#line 5328 "" +#line 5380 "" } -#line 5329 "" +#line 5381 "" } -#line 5330 "" +#line 5382 "" } else { /* Multiple grace. Put in literally. Compute beam stuff */ -#line 5334 "" +#line 5386 "" sumx = 0.f; -#line 5335 "" +#line 5387 "" sumy = 0.f; -#line 5336 "" +#line 5388 "" sumxy = 0.f; -#line 5337 "" +#line 5389 "" sumxx = 0.f; -#line 5338 "" +#line 5390 "" sumyy = 0.f; -#line 5339 "" +#line 5391 "" x = 0.f; -#line 5340 "" +#line 5392 "" i__1 = ngs + comgrace_1.nng[*ig - 1] - 1; -#line 5340 "" +#line 5392 "" for (ing = ngs; ing <= i__1; ++ing) { -#line 5341 "" +#line 5393 "" if (ing > ngs && comgrace_1.naccg[ing - 1] > 0) { -#line 5341 "" +#line 5393 "" x += spfacs_1.acgfac; -#line 5341 "" +#line 5393 "" } -#line 5342 "" +#line 5394 "" y = (real) comgrace_1.nolevg[ing - 1]; -#line 5343 "" +#line 5395 "" sumx += x; -#line 5344 "" +#line 5396 "" sumy += y; -#line 5345 "" +#line 5397 "" sumxy += x * y; -#line 5346 "" +#line 5398 "" sumxx += x * x; -#line 5347 "" +#line 5399 "" sumyy += y * y; -#line 5348 "" +#line 5400 "" x += spfacs_1.emgfac; -#line 5349 "" +#line 5401 "" /* L118: */ -#line 5349 "" +#line 5401 "" } -#line 5350 "" +#line 5402 "" delta = comgrace_1.nng[*ig - 1] * sumxx - sumx * sumx; -#line 5351 "" +#line 5403 "" em = (comgrace_1.nng[*ig - 1] * sumxy - sumx * sumy) / delta; -#line 5352 "" +#line 5404 "" r__1 = em * .5f * spfacs_1.gslfac; -#line 5352 "" +#line 5404 "" islope = i_nint(&r__1); -#line 5353 "" +#line 5405 "" if (abs(islope) > 9) { -#line 5353 "" +#line 5405 "" islope = i_sign(&c__9, &islope); -#line 5353 "" +#line 5405 "" } -#line 5354 "" +#line 5406 "" beta = (sumy - islope / spfacs_1.gslfac * sumx) / comgrace_1.nng[*ig - 1]; -#line 5355 "" +#line 5407 "" nolev1 = i_nint(&beta); /* Back up */ /* Writing concatenation */ -#line 5359 "" +#line 5411 "" i__4[0] = 1, a__3[0] = sq; -#line 5359 "" +#line 5411 "" i__4[1] = 7, a__3[1] = "settiny"; -#line 5359 "" +#line 5411 "" i__4[2] = 1, a__3[2] = sq; -#line 5359 "" +#line 5411 "" i__4[3] = 4, a__3[3] = "off{"; -#line 5359 "" +#line 5411 "" s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79); -#line 5360 "" +#line 5412 "" if (normsp) { -#line 5361 "" - s_wsfi(&io___424); -#line 5361 "" +#line 5413 "" + s_wsfi(&io___425); +#line 5413 "" do_fio(&c__1, "-", (ftnlen)1); -#line 5361 "" +#line 5413 "" do_fio(&c__1, (char *)&ptgr[*ig], (ftnlen)sizeof(real)); -#line 5361 "" +#line 5413 "" e_wsfi(); /* Writing concatenation */ -#line 5362 "" +#line 5414 "" i__2[0] = 18, a__1[0] = notexq; -#line 5362 "" +#line 5414 "" i__2[1] = 3, a__1[1] = "pt}"; -#line 5362 "" +#line 5414 "" s_cat(ch__13, a__1, i__2, &c__2, (ftnlen)21); -#line 5362 "" +#line 5414 "" addstr_(ch__13, &c__21, soutq, lsout, (ftnlen)21, (ftnlen)80); -#line 5363 "" +#line 5415 "" finalshift = ptgr[*ig]; -#line 5364 "" +#line 5416 "" } else { -#line 5365 "" +#line 5417 "" comgrace_1.aftshft = comask_1.wheadpt * 1.33f; -#line 5366 "" +#line 5418 "" if (comgrace_1.naccg[comgrace_1.ngstrt[*ig - 1] - 1] > 0) { -#line 5366 "" +#line 5418 "" comgrace_1.aftshft += comask_1.wheadpt * .5f; -#line 5366 "" +#line 5418 "" } -#line 5367 "" - s_wsfi(&io___426); -#line 5367 "" +#line 5419 "" + s_wsfi(&io___427); +#line 5419 "" do_fio(&c__1, (char *)&comgrace_1.aftshft, (ftnlen)sizeof(real)); -#line 5367 "" +#line 5419 "" e_wsfi(); /* Writing concatenation */ -#line 5368 "" +#line 5420 "" i__4[0] = 17, a__3[0] = notexq; -#line 5368 "" +#line 5420 "" i__4[1] = 3, a__3[1] = "pt}"; -#line 5368 "" +#line 5420 "" i__4[2] = 1, a__3[2] = sq; -#line 5368 "" +#line 5420 "" i__4[3] = 3, a__3[3] = "bsk"; -#line 5368 "" +#line 5420 "" s_cat(ch__16, a__3, i__4, &c__4, (ftnlen)24); -#line 5368 "" +#line 5420 "" addstr_(ch__16, &c__24, soutq, lsout, (ftnlen)24, (ftnlen)80); -#line 5369 "" +#line 5421 "" } /* Start the beam */ /* Writing concatenation */ -#line 5373 "" +#line 5425 "" i__2[0] = 1, a__1[0] = sq; -#line 5373 "" +#line 5425 "" i__2[1] = 2, a__1[1] = "ib"; -#line 5373 "" +#line 5425 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5374 "" +#line 5426 "" i__1 = mg; -#line 5374 "" +#line 5426 "" for (ing = 2; ing <= i__1; ++ing) { /* Writing concatenation */ -#line 5375 "" +#line 5427 "" i__2[0] = ing + 1, a__1[0] = notexq; -#line 5375 "" +#line 5427 "" i__2[1] = 1, a__1[1] = "b"; -#line 5375 "" +#line 5427 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5376 "" +#line 5428 "" /* L119: */ -#line 5376 "" +#line 5428 "" } -#line 5377 "" +#line 5429 "" if (comgrace_1.upg[*ig - 1]) { /* Writing concatenation */ -#line 5378 "" +#line 5430 "" i__2[0] = mg + 2, a__1[0] = notexq; -#line 5378 "" +#line 5430 "" i__2[1] = 1, a__1[1] = "u"; -#line 5378 "" +#line 5430 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5379 "" +#line 5431 "" } else { /* Writing concatenation */ -#line 5380 "" +#line 5432 "" i__2[0] = mg + 2, a__1[0] = notexq; -#line 5380 "" +#line 5432 "" i__2[1] = 1, a__1[1] = "l"; -#line 5380 "" +#line 5432 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5381 "" +#line 5433 "" } /* Writing concatenation */ -#line 5382 "" +#line 5434 "" i__2[0] = mg + 3, a__1[0] = notexq; -#line 5382 "" +#line 5434 "" i__2[1] = 1, a__1[1] = "0"; -#line 5382 "" +#line 5434 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); /* Get starting note for beam */ -#line 5386 "" +#line 5438 "" notefq_(noteq, &lnoten, &nolev1, ncm, (ftnlen)8); /* Writing concatenation */ -#line 5387 "" +#line 5439 "" i__2[0] = mg + 4, a__1[0] = notexq; -#line 5387 "" +#line 5439 "" i__2[1] = lnoten, a__1[1] = noteq; -#line 5387 "" +#line 5439 "" s_cat(ch__8, a__1, i__2, &c__2, (ftnlen)87); -#line 5387 "" +#line 5439 "" i__1 = mg + 4 + lnoten; -#line 5387 "" +#line 5439 "" addstr_(ch__8, &i__1, soutq, lsout, mg + 4 + lnoten, (ftnlen)80); /* Put in the slope */ -#line 5392 "" +#line 5444 "" if (islope >= 0) { -#line 5393 "" +#line 5445 "" i__1 = islope + 48; -#line 5393 "" +#line 5445 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5393 "" +#line 5445 "" addstr_(ch__1, &c__1, soutq, lsout, (ftnlen)1, (ftnlen)80); -#line 5394 "" +#line 5446 "" } else { /* Writing concatenation */ -#line 5395 "" +#line 5447 "" i__3[0] = 2, a__2[0] = "{-"; -#line 5395 "" +#line 5447 "" i__1 = 48 - islope; -#line 5395 "" +#line 5447 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5395 "" +#line 5447 "" i__3[1] = 1, a__2[1] = ch__1; -#line 5395 "" +#line 5447 "" i__3[2] = 1, a__2[2] = "}"; -#line 5395 "" +#line 5447 "" s_cat(ch__7, a__2, i__3, &c__3, (ftnlen)4); -#line 5395 "" +#line 5447 "" addstr_(ch__7, &c__4, soutq, lsout, (ftnlen)4, (ftnlen)80); -#line 5396 "" +#line 5448 "" } /* Start a slur on multiple fore-grace */ -#line 5400 "" +#line 5452 "" if (comgrace_1.slurg[*ig - 1] && ! isgaft && ! iswaft) { -#line 5401 "" +#line 5453 "" notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen) 8); -#line 5402 "" +#line 5454 "" if (comslur_1.fontslur) { -#line 5403 "" +#line 5455 "" if (comgrace_1.upg[*ig - 1]) { /* Writing concatenation */ -#line 5404 "" +#line 5456 "" i__2[0] = 1, a__1[0] = sq; -#line 5404 "" +#line 5456 "" i__2[1] = 6, a__1[1] = "islurd"; -#line 5404 "" +#line 5456 "" s_cat(ch__6, a__1, i__2, &c__2, (ftnlen)7); -#line 5404 "" +#line 5456 "" addstr_(ch__6, &c__7, soutq, lsout, (ftnlen)7, (ftnlen)80) ; -#line 5405 "" +#line 5457 "" } else { /* Writing concatenation */ -#line 5406 "" +#line 5458 "" i__2[0] = 1, a__1[0] = sq; -#line 5406 "" +#line 5458 "" i__2[1] = 6, a__1[1] = "isluru"; -#line 5406 "" +#line 5458 "" s_cat(ch__6, a__1, i__2, &c__2, (ftnlen)7); -#line 5406 "" +#line 5458 "" addstr_(ch__6, &c__7, soutq, lsout, (ftnlen)7, (ftnlen)80) ; -#line 5407 "" +#line 5459 "" } -#line 5408 "" +#line 5460 "" } else { /* Need a tweak for postscript slur */ -#line 5412 "" +#line 5464 "" if (comgrace_1.upg[*ig - 1]) { /* Writing concatenation */ -#line 5413 "" +#line 5465 "" i__2[0] = 1, a__1[0] = sq; -#line 5413 "" +#line 5465 "" i__2[1] = 3, a__1[1] = "isd"; -#line 5413 "" +#line 5465 "" s_cat(ch__7, a__1, i__2, &c__2, (ftnlen)4); -#line 5413 "" +#line 5465 "" addstr_(ch__7, &c__4, soutq, lsout, (ftnlen)4, (ftnlen)80) ; -#line 5414 "" +#line 5466 "" } else { /* Writing concatenation */ -#line 5415 "" +#line 5467 "" i__2[0] = 1, a__1[0] = sq; -#line 5415 "" +#line 5467 "" i__2[1] = 3, a__1[1] = "isu"; -#line 5415 "" +#line 5467 "" s_cat(ch__7, a__1, i__2, &c__2, (ftnlen)4); -#line 5415 "" +#line 5467 "" addstr_(ch__7, &c__4, soutq, lsout, (ftnlen)4, (ftnlen)80) ; -#line 5416 "" +#line 5468 "" } -#line 5417 "" +#line 5469 "" } /* Print 11-ndxslur */ -#line 5421 "" +#line 5473 "" if (23 - comslur_1.ndxslur < 10) { /* Writing concatenation */ -#line 5422 "" +#line 5474 "" i__1 = 71 - comslur_1.ndxslur; -#line 5422 "" +#line 5474 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5422 "" +#line 5474 "" i__2[0] = 1, a__1[0] = ch__1; -#line 5422 "" +#line 5474 "" i__2[1] = lnoten, a__1[1] = noteq; -#line 5422 "" +#line 5474 "" s_cat(ch__11, a__1, i__2, &c__2, (ftnlen)9); -#line 5422 "" +#line 5474 "" i__5 = lnoten + 1; -#line 5422 "" +#line 5474 "" addstr_(ch__11, &i__5, soutq, lsout, lnoten + 1, (ftnlen)80); -#line 5424 "" +#line 5476 "" } else if (23 - comslur_1.ndxslur < 2) { /* Writing concatenation */ -#line 5425 "" +#line 5477 "" i__4[0] = 2, a__3[0] = "{1"; -#line 5425 "" +#line 5477 "" i__1 = 61 - comslur_1.ndxslur; -#line 5425 "" +#line 5477 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5425 "" +#line 5477 "" i__4[1] = 1, a__3[1] = ch__1; -#line 5425 "" +#line 5477 "" i__4[2] = 1, a__3[2] = "}"; -#line 5425 "" +#line 5477 "" i__4[3] = lnoten, a__3[3] = noteq; -#line 5425 "" +#line 5477 "" s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12); -#line 5425 "" +#line 5477 "" i__5 = lnoten + 4; -#line 5425 "" +#line 5477 "" addstr_(ch__12, &i__5, soutq, lsout, lnoten + 4, (ftnlen)80); -#line 5427 "" +#line 5479 "" } else { /* Writing concatenation */ -#line 5428 "" +#line 5480 "" i__4[0] = 2, a__3[0] = "{1"; -#line 5428 "" +#line 5480 "" i__1 = 51 - comslur_1.ndxslur; -#line 5428 "" +#line 5480 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 5428 "" +#line 5480 "" i__4[1] = 1, a__3[1] = ch__1; -#line 5428 "" +#line 5480 "" i__4[2] = 1, a__3[2] = "}"; -#line 5428 "" +#line 5480 "" i__4[3] = lnoten, a__3[3] = noteq; -#line 5428 "" +#line 5480 "" s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12); -#line 5428 "" +#line 5480 "" i__5 = lnoten + 4; -#line 5428 "" +#line 5480 "" addstr_(ch__12, &i__5, soutq, lsout, lnoten + 4, (ftnlen)80); -#line 5430 "" +#line 5482 "" } /* Put in tweak for postscript slur */ -#line 5434 "" +#line 5486 "" if (! comslur_1.fontslur) { -#line 5434 "" +#line 5486 "" addstr_("{-.3}", &c__5, soutq, lsout, (ftnlen)5, (ftnlen)80); -#line 5434 "" +#line 5486 "" } -#line 5435 "" +#line 5487 "" } /* Put in first note. Call notefq again in case octave changed */ -#line 5439 "" +#line 5491 "" notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen)8); -#line 5440 "" +#line 5492 "" if (comgrace_1.naccg[ngs - 1] == 0) { /* Writing concatenation */ -#line 5441 "" +#line 5493 "" i__3[0] = 1, a__2[0] = sq; -#line 5441 "" +#line 5493 "" i__3[1] = 4, a__2[1] = "zqb0"; -#line 5441 "" +#line 5493 "" i__3[2] = lnoten, a__2[2] = noteq; -#line 5441 "" +#line 5493 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79); -#line 5442 "" +#line 5494 "" lnote = lnoten + 5; -#line 5443 "" +#line 5495 "" } else { -#line 5444 "" +#line 5496 "" if (lnoten == 1) { -#line 5444 "" +#line 5496 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 5444 "" +#line 5496 "" } -#line 5445 "" +#line 5497 "" accsym_(&comgrace_1.naccg[ngs - 1], acsymq, &lacc, (ftnlen)3); /* Writing concatenation */ -#line 5446 "" +#line 5498 "" i__4[0] = 1, a__3[0] = sq; -#line 5446 "" +#line 5498 "" i__4[1] = 3, a__3[1] = "big"; -#line 5446 "" +#line 5498 "" i__4[2] = lacc, a__3[2] = acsymq; -#line 5446 "" +#line 5498 "" i__4[3] = lnoten, a__3[3] = noteq; -#line 5446 "" +#line 5498 "" s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79); -#line 5447 "" +#line 5499 "" lnote = lacc + 4 + lnoten; -#line 5448 "" +#line 5500 "" notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen) 8); /* Writing concatenation */ -#line 5449 "" +#line 5501 "" i__4[0] = lnote, a__3[0] = notexq; -#line 5449 "" +#line 5501 "" i__4[1] = 1, a__3[1] = sq; -#line 5449 "" +#line 5501 "" i__4[2] = 4, a__3[2] = "zqb0"; -#line 5449 "" +#line 5501 "" i__4[3] = lnoten, a__3[3] = noteq; -#line 5449 "" +#line 5501 "" s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79); -#line 5450 "" +#line 5502 "" lnote = lnote + 5 + lnoten; -#line 5451 "" +#line 5503 "" } -#line 5452 "" +#line 5504 "" addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80); -#line 5453 "" +#line 5505 "" i__1 = ngs + comgrace_1.nng[*ig - 1] - 1; -#line 5453 "" +#line 5505 "" for (ing = ngs + 1; ing <= i__1; ++ing) { /* Skip */ -#line 5457 "" +#line 5509 "" ptoff = wheadpt1 * spfacs_1.emgfac; -#line 5458 "" +#line 5510 "" if (comgrace_1.naccg[ing - 1] > 0) { -#line 5458 "" +#line 5510 "" ptoff += wheadpt1 * spfacs_1.acgfac; -#line 5458 "" +#line 5510 "" } -#line 5459 "" +#line 5511 "" if (isgaft && ! iswaft) { -#line 5459 "" +#line 5511 "" comgrace_1.aftshft += ptoff; -#line 5459 "" +#line 5511 "" } /* Writing concatenation */ -#line 5460 "" +#line 5512 "" i__2[0] = 1, a__1[0] = sq; -#line 5460 "" +#line 5512 "" i__2[1] = 4, a__1[1] = "off{"; -#line 5460 "" +#line 5512 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5461 "" - s_wsfi(&io___428); -#line 5461 "" +#line 5513 "" + s_wsfi(&io___429); +#line 5513 "" do_fio(&c__1, (char *)&ptoff, (ftnlen)sizeof(real)); -#line 5461 "" +#line 5513 "" e_wsfi(); -#line 5462 "" +#line 5514 "" if (normsp) { -#line 5462 "" +#line 5514 "" finalshift -= ptoff; -#line 5462 "" +#line 5514 "" } /* Writing concatenation */ -#line 5463 "" +#line 5515 "" i__2[0] = 8, a__1[0] = notexq; -#line 5463 "" +#line 5515 "" i__2[1] = 3, a__1[1] = "pt}"; -#line 5463 "" +#line 5515 "" s_cat(ch__5, a__1, i__2, &c__2, (ftnlen)11); -#line 5463 "" +#line 5515 "" addstr_(ch__5, &c__11, soutq, lsout, (ftnlen)11, (ftnlen)80); -#line 5464 "" +#line 5516 "" if (ing == ngs + comgrace_1.nng[*ig - 1] - 1) { /* Terminate beam if needed */ -#line 5468 "" +#line 5520 "" if (comgrace_1.upg[*ig - 1]) { /* Writing concatenation */ -#line 5469 "" +#line 5521 "" i__2[0] = 1, a__1[0] = sq; -#line 5469 "" +#line 5521 "" i__2[1] = 4, a__1[1] = "tbu0"; -#line 5469 "" +#line 5521 "" s_cat(ch__4, a__1, i__2, &c__2, (ftnlen)5); -#line 5469 "" +#line 5521 "" addstr_(ch__4, &c__5, soutq, lsout, (ftnlen)5, (ftnlen)80) ; -#line 5470 "" +#line 5522 "" } else { /* Writing concatenation */ -#line 5471 "" +#line 5523 "" i__2[0] = 1, a__1[0] = sq; -#line 5471 "" +#line 5523 "" i__2[1] = 4, a__1[1] = "tbl0"; -#line 5471 "" +#line 5523 "" s_cat(ch__4, a__1, i__2, &c__2, (ftnlen)5); -#line 5471 "" +#line 5523 "" addstr_(ch__4, &c__5, soutq, lsout, (ftnlen)5, (ftnlen)80) ; -#line 5472 "" +#line 5524 "" } /* Terminate after slur if needed */ -#line 5476 "" +#line 5528 "" if ((isgaft || iswaft) && comgrace_1.slurg[*ig - 1]) { /* if (iswaft) ndxslur = igetbits(ipl,4,23) */ -#line 5478 "" +#line 5530 "" if (iswaft) { -#line 5478 "" +#line 5530 "" comslur_1.ndxslur = igetbits_(ipl, &c__5, &c__23); -#line 5478 "" +#line 5530 "" } -#line 5479 "" +#line 5531 "" notefq_(noteq, &lnoten, &comgrace_1.nolevg[ing - 1], ncm, (ftnlen)8); /* Writing concatenation */ -#line 5480 "" +#line 5532 "" i__2[0] = 1, a__1[0] = sq; -#line 5480 "" +#line 5532 "" i__2[1] = 5, a__1[1] = "tslur"; -#line 5480 "" +#line 5532 "" s_cat(ch__2, a__1, i__2, &c__2, (ftnlen)6); -#line 5480 "" +#line 5532 "" addstr_(ch__2, &c__6, soutq, lsout, (ftnlen)6, (ftnlen)80) ; /* Print 11-ndxslur */ /* c Print 23-ndxslur */ -#line 5485 "" +#line 5537 "" if (23 - comslur_1.ndxslur < 10) { /* Writing concatenation */ -#line 5486 "" +#line 5538 "" i__5 = 71 - comslur_1.ndxslur; -#line 5486 "" +#line 5538 "" chax_(ch__1, (ftnlen)1, &i__5); -#line 5486 "" +#line 5538 "" i__2[0] = 1, a__1[0] = ch__1; -#line 5486 "" +#line 5538 "" i__2[1] = lnoten, a__1[1] = noteq; -#line 5486 "" +#line 5538 "" s_cat(ch__11, a__1, i__2, &c__2, (ftnlen)9); -#line 5486 "" +#line 5538 "" i__6 = lnoten + 1; -#line 5486 "" +#line 5538 "" addstr_(ch__11, &i__6, soutq, lsout, lnoten + 1, ( ftnlen)80); -#line 5488 "" +#line 5540 "" } else if (23 - comslur_1.ndxslur < 20) { /* Writing concatenation */ -#line 5489 "" +#line 5541 "" i__4[0] = 2, a__3[0] = "{2"; -#line 5489 "" +#line 5541 "" i__5 = 61 - comslur_1.ndxslur; -#line 5489 "" +#line 5541 "" chax_(ch__1, (ftnlen)1, &i__5); -#line 5489 "" +#line 5541 "" i__4[1] = 1, a__3[1] = ch__1; -#line 5489 "" +#line 5541 "" i__4[2] = 1, a__3[2] = "}"; -#line 5489 "" +#line 5541 "" i__4[3] = lnoten, a__3[3] = noteq; -#line 5489 "" +#line 5541 "" s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12); -#line 5489 "" +#line 5541 "" i__6 = lnoten + 4; -#line 5489 "" +#line 5541 "" addstr_(ch__12, &i__6, soutq, lsout, lnoten + 4, ( ftnlen)80); -#line 5491 "" +#line 5543 "" } else { /* Writing concatenation */ -#line 5492 "" +#line 5544 "" i__4[0] = 2, a__3[0] = "{1"; -#line 5492 "" +#line 5544 "" i__5 = 51 - comslur_1.ndxslur; -#line 5492 "" +#line 5544 "" chax_(ch__1, (ftnlen)1, &i__5); -#line 5492 "" +#line 5544 "" i__4[1] = 1, a__3[1] = ch__1; -#line 5492 "" +#line 5544 "" i__4[2] = 1, a__3[2] = "}"; -#line 5492 "" +#line 5544 "" i__4[3] = lnoten, a__3[3] = noteq; -#line 5492 "" +#line 5544 "" s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12); -#line 5492 "" +#line 5544 "" i__6 = lnoten + 4; -#line 5492 "" +#line 5544 "" addstr_(ch__12, &i__6, soutq, lsout, lnoten + 4, ( ftnlen)80); -#line 5494 "" +#line 5546 "" } /* Stop slur terminator after exit from this subroutine */ -#line 5498 "" +#line 5550 "" comslur_1.listslur = bit_clear(comslur_1.listslur, comslur_1.ndxslur); -#line 5499 "" +#line 5551 "" comgrace_1.slurg[*ig - 1] = FALSE_; -#line 5500 "" +#line 5552 "" } -#line 5501 "" +#line 5553 "" } /* Accidental if needed */ -#line 5505 "" +#line 5557 "" if (comgrace_1.naccg[ing - 1] > 0) { -#line 5506 "" +#line 5558 "" notefq_(noteq, &lnoten, &comgrace_1.nolevg[ing - 1], ncm, ( ftnlen)8); -#line 5507 "" +#line 5559 "" if (lnoten == 1) { -#line 5507 "" +#line 5559 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 5507 "" +#line 5559 "" } -#line 5508 "" +#line 5560 "" accsym_(&comgrace_1.naccg[ing - 1], acsymq, &lacc, (ftnlen)3); /* Writing concatenation */ -#line 5509 "" +#line 5561 "" i__4[0] = 1, a__3[0] = sq; -#line 5509 "" +#line 5561 "" i__4[1] = 3, a__3[1] = "big"; -#line 5509 "" +#line 5561 "" i__4[2] = lacc, a__3[2] = acsymq; -#line 5509 "" +#line 5561 "" i__4[3] = lnoten, a__3[3] = noteq; -#line 5509 "" +#line 5561 "" s_cat(ch__9, a__3, i__4, &c__4, (ftnlen)15); -#line 5509 "" +#line 5561 "" i__5 = lacc + 4 + lnoten; -#line 5509 "" +#line 5561 "" addstr_(ch__9, &i__5, soutq, lsout, lacc + 4 + lnoten, ( ftnlen)80); -#line 5511 "" +#line 5563 "" } /* Put in the (beamed) grace note */ -#line 5515 "" +#line 5567 "" notefq_(noteq, &lnoten, &comgrace_1.nolevg[ing - 1], ncm, (ftnlen) 8); /* Writing concatenation */ -#line 5516 "" +#line 5568 "" i__3[0] = 1, a__2[0] = sq; -#line 5516 "" +#line 5568 "" i__3[1] = 4, a__2[1] = "zqb0"; -#line 5516 "" +#line 5568 "" i__3[2] = lnoten, a__2[2] = noteq; -#line 5516 "" +#line 5568 "" s_cat(ch__17, a__2, i__3, &c__3, (ftnlen)13); -#line 5516 "" +#line 5568 "" i__5 = lnoten + 5; -#line 5516 "" +#line 5568 "" addstr_(ch__17, &i__5, soutq, lsout, lnoten + 5, (ftnlen)80); -#line 5518 "" +#line 5570 "" /* L127: */ -#line 5518 "" +#line 5570 "" } /* Terminate the grace */ @@ -13419,147 +13511,147 @@ L121: /* notexq = '}'//sq//'off{' */ /* lnote = 6 */ /* Writing concatenation */ -#line 5526 "" +#line 5578 "" i__2[0] = 1, a__1[0] = sq; -#line 5526 "" +#line 5578 "" i__2[1] = 4, a__1[1] = "off{"; -#line 5526 "" +#line 5578 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5527 "" +#line 5579 "" lnote = 5; -#line 5528 "" +#line 5580 "" ptoff = comask_1.wheadpt * spfacs_1.emgfac; -#line 5529 "" +#line 5581 "" if ((*nacc & 3) > 0 && ! bit_test(*nacc,17)) { -#line 5529 "" +#line 5581 "" ptoff += comask_1.wheadpt * spfacs_1.accfac; -#line 5529 "" +#line 5581 "" } -#line 5531 "" +#line 5583 "" if (isgaft && ! iswaft) { /* Writing concatenation */ -#line 5532 "" +#line 5584 "" i__2[0] = 5, a__1[0] = notexq; -#line 5532 "" +#line 5584 "" i__2[1] = 1, a__1[1] = "-"; -#line 5532 "" +#line 5584 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 5533 "" +#line 5585 "" lnote = 6; -#line 5534 "" +#line 5586 "" ptoff = comgrace_1.aftshft; -#line 5535 "" +#line 5587 "" } -#line 5536 "" +#line 5588 "" if (normsp) { -#line 5536 "" +#line 5588 "" ptoff = finalshift; -#line 5536 "" +#line 5588 "" } -#line 5537 "" +#line 5589 "" if (ptoff < 9.95f) { -#line 5538 "" +#line 5590 "" i__1 = lnote; -#line 5538 "" +#line 5590 "" ici__1.icierr = 0; -#line 5538 "" +#line 5590 "" ici__1.icirnum = 1; -#line 5538 "" +#line 5590 "" ici__1.icirlen = lnote + 3 - i__1; -#line 5538 "" +#line 5590 "" ici__1.iciunit = notexq + i__1; -#line 5538 "" +#line 5590 "" ici__1.icifmt = "(f3.1)"; -#line 5538 "" +#line 5590 "" s_wsfi(&ici__1); -#line 5538 "" +#line 5590 "" do_fio(&c__1, (char *)&ptoff, (ftnlen)sizeof(real)); -#line 5538 "" +#line 5590 "" e_wsfi(); -#line 5539 "" +#line 5591 "" lnote += 3; -#line 5540 "" +#line 5592 "" } else if (ptoff < 99.95f) { -#line 5541 "" +#line 5593 "" i__1 = lnote; -#line 5541 "" +#line 5593 "" ici__1.icierr = 0; -#line 5541 "" +#line 5593 "" ici__1.icirnum = 1; -#line 5541 "" +#line 5593 "" ici__1.icirlen = lnote + 4 - i__1; -#line 5541 "" +#line 5593 "" ici__1.iciunit = notexq + i__1; -#line 5541 "" +#line 5593 "" ici__1.icifmt = "(f4.1)"; -#line 5541 "" +#line 5593 "" s_wsfi(&ici__1); -#line 5541 "" +#line 5593 "" do_fio(&c__1, (char *)&ptoff, (ftnlen)sizeof(real)); -#line 5541 "" +#line 5593 "" e_wsfi(); -#line 5542 "" +#line 5594 "" lnote += 4; -#line 5543 "" +#line 5595 "" } else { -#line 5544 "" +#line 5596 "" i__1 = lnote; -#line 5544 "" +#line 5596 "" ici__1.icierr = 0; -#line 5544 "" +#line 5596 "" ici__1.icirnum = 1; -#line 5544 "" +#line 5596 "" ici__1.icirlen = lnote + 5 - i__1; -#line 5544 "" +#line 5596 "" ici__1.iciunit = notexq + i__1; -#line 5544 "" +#line 5596 "" ici__1.icifmt = "(f5.1)"; -#line 5544 "" +#line 5596 "" s_wsfi(&ici__1); -#line 5544 "" +#line 5596 "" do_fio(&c__1, (char *)&ptoff, (ftnlen)sizeof(real)); -#line 5544 "" +#line 5596 "" e_wsfi(); -#line 5545 "" +#line 5597 "" lnote += 5; -#line 5546 "" +#line 5598 "" } /* Writing concatenation */ -#line 5547 "" +#line 5599 "" i__2[0] = lnote, a__1[0] = notexq; -#line 5547 "" +#line 5599 "" i__2[1] = 3, a__1[1] = "pt}"; -#line 5547 "" +#line 5599 "" s_cat(ch__18, a__1, i__2, &c__2, (ftnlen)82); -#line 5547 "" +#line 5599 "" i__1 = lnote + 3; -#line 5547 "" +#line 5599 "" addstr_(ch__18, &i__1, soutq, lsout, lnote + 3, (ftnlen)80); -#line 5548 "" +#line 5600 "" if (isgaft && ! iswaft) { /* Writing concatenation */ -#line 5548 "" +#line 5600 "" i__2[0] = 1, a__1[0] = sq; -#line 5548 "" +#line 5600 "" i__2[1] = 2, a__1[1] = "sk"; -#line 5548 "" +#line 5600 "" s_cat(ch__19, a__1, i__2, &c__2, (ftnlen)3); -#line 5548 "" +#line 5600 "" addstr_(ch__19, &c__3, soutq, lsout, (ftnlen)3, (ftnlen)80); -#line 5548 "" +#line 5600 "" } /* Writing concatenation */ -#line 5549 "" +#line 5601 "" i__2[0] = 1, a__1[0] = sq; -#line 5549 "" +#line 5601 "" i__2[1] = 9, a__1[1] = "resetsize"; -#line 5549 "" +#line 5601 "" s_cat(ch__20, a__1, i__2, &c__2, (ftnlen)10); -#line 5549 "" +#line 5601 "" addstr_(ch__20, &c__10, soutq, lsout, (ftnlen)10, (ftnlen)80); -#line 5550 "" +#line 5602 "" } -#line 5551 "" +#line 5603 "" return 0; } /* dograce_ */ @@ -13617,10 +13709,10 @@ L121: static char slurudq[1]; /* Fortran I/O blocks */ - static cilist io___442 = { 0, 6, 0, 0, 0 }; static cilist io___443 = { 0, 6, 0, 0, 0 }; - static cilist io___444 = { 0, 15, 0, "(/,a)", 0 }; - static cilist io___452 = { 0, 6, 0, 0, 0 }; + static cilist io___444 = { 0, 6, 0, 0, 0 }; + static cilist io___445 = { 0, 15, 0, "(/,a)", 0 }; + static cilist io___453 = { 0, 6, 0, 0, 0 }; @@ -13680,286 +13772,286 @@ L121: /* If highest note has upslur, save slur height in islhgt in case */ /* ornament must be moved. */ -#line 5646 "" +#line 5698 "" /* Parameter adjustments */ -#line 5646 "" +#line 5698 "" --isdat4; -#line 5646 "" +#line 5698 "" --isdat3; -#line 5646 "" +#line 5698 "" --isdat2; -#line 5646 "" +#line 5698 "" --isdat1; -#line 5646 "" +#line 5698 "" -#line 5646 "" +#line 5698 "" /* Function Body */ -#line 5646 "" +#line 5698 "" *islhgt = 0; -#line 5647 "" +#line 5699 "" if (*beamon) { -#line 5648 "" +#line 5700 "" stemup = *(unsigned char *)ulq == 'u'; -#line 5649 "" +#line 5701 "" } else if (commvl_1.nvmx[*iv - 1] == 2) { -#line 5650 "" +#line 5702 "" if (! bit_test(*islur,30)) { /* Single note, 2 lines of music, stem direction not forced */ -#line 5654 "" +#line 5706 "" stemup = commvl_1.ivx > *nv; -#line 5655 "" +#line 5707 "" } else { -#line 5656 "" +#line 5708 "" stemup = bit_test(*islur,17); -#line 5657 "" +#line 5709 "" } -#line 5658 "" +#line 5710 "" } else { -#line 5659 "" +#line 5711 "" udqq_(ch__1, (ftnlen)1, nolev, ncm, islur, &commvl_1.nvmx[*iv - 1], & commvl_1.ivx, nv); -#line 5659 "" +#line 5711 "" stemup = *(unsigned char *)&ch__1[0] == 'u'; -#line 5660 "" +#line 5712 "" } -#line 5661 "" +#line 5713 "" iscrd = bit_test(*ipl,10); -#line 5662 "" +#line 5714 "" if (commidi_1.ismidi) { -#line 5663 "" +#line 5715 "" settie = FALSE_; -#line 5664 "" +#line 5716 "" comslm_1.dbltie = FALSE_; -#line 5665 "" +#line 5717 "" } -#line 5666 "" +#line 5718 "" i__1 = *nsdat; -#line 5666 "" +#line 5718 "" for (isdat = 1; isdat <= i__1; ++isdat) { -#line 5667 "" +#line 5719 "" isdata = isdat1[isdat]; -#line 5668 "" +#line 5720 "" if (*iv == igetbits_(&isdata, &c__5, &c__13) && *ip == igetbits_(& isdata, &c__8, &c__3) && *kv == igetbits_(&isdata, &c__1, & c__12) + 1) { /* Since iv and kv match, ivx will be correct */ -#line 5674 "" +#line 5726 "" idcode = igetbits_(&isdata, &c__7, &c__19); -#line 5675 "" +#line 5727 "" ivoff = igetbits_(&isdat2[isdat], &c__6, &c__6) - 32; -#line 5676 "" +#line 5728 "" ihoff = igetbits_(&isdat2[isdat], &c__7, &c__12) - 64; -#line 5677 "" +#line 5729 "" iupdn = 0; -#line 5678 "" +#line 5730 "" *(unsigned char *)slurudq = 'd'; -#line 5679 "" +#line 5731 "" nolevs = igetbits_(&isdat2[isdat], &c__7, &c__19); -#line 5680 "" +#line 5732 "" pstie = bit_test(isdat2[isdat],3) || idcode == 1; -#line 5681 "" +#line 5733 "" if (bit_test(isdata,11)) { /* Turnon */ /* Get slur direction */ -#line 5686 "" +#line 5738 "" if (bit_test(isdata,26)) { /* Force slur direction */ -#line 5690 "" +#line 5742 "" if (bit_test(isdata,27)) { -#line 5690 "" +#line 5742 "" *(unsigned char *)slurudq = 'u'; -#line 5690 "" +#line 5742 "" } -#line 5691 "" +#line 5743 "" } else if (commvl_1.nvmx[*iv - 1] == 1) { /* Only one voice per line */ -#line 5695 "" +#line 5747 "" if (! (*beamon)) { /* Separate note. */ -#line 5699 "" +#line 5751 "" udfq_(ch__1, (ftnlen)1, nolev, ncm); -#line 5699 "" +#line 5751 "" *(unsigned char *)slurudq = *(unsigned char *)&ch__1[ 0]; -#line 5700 "" +#line 5752 "" } else { /* In a beam */ -#line 5704 "" +#line 5756 "" if (*(unsigned char *)ulq != 'u') { -#line 5704 "" +#line 5756 "" *(unsigned char *)slurudq = 'u'; -#line 5704 "" +#line 5756 "" } -#line 5705 "" +#line 5757 "" } -#line 5706 "" +#line 5758 "" if (iscrd) { -#line 5707 "" +#line 5759 "" if (nolevs > *ncm) { -#line 5708 "" +#line 5760 "" *(unsigned char *)slurudq = 'u'; -#line 5709 "" +#line 5761 "" } else { -#line 5710 "" +#line 5762 "" *(unsigned char *)slurudq = 'd'; -#line 5711 "" +#line 5763 "" } -#line 5712 "" +#line 5764 "" } -#line 5713 "" +#line 5765 "" } else { /* Two voices per line. Get default */ -#line 5717 "" +#line 5769 "" if (commvl_1.ivx > *nv) { -#line 5717 "" +#line 5769 "" *(unsigned char *)slurudq = 'u'; -#line 5717 "" +#line 5769 "" } /* Upper voice of the two, so up slur */ -#line 5721 "" +#line 5773 "" } -#line 5722 "" +#line 5774 "" if (bit_test(isdata,2)) { /* ADjust for stem slur. ASSUME this is the ONLY pos'n adjustment. */ -#line 5726 "" +#line 5778 "" if (stemup) { -#line 5727 "" +#line 5779 "" *(unsigned char *)slurudq = 'u'; -#line 5728 "" +#line 5780 "" ivoff += 4; -#line 5729 "" +#line 5781 "" } else { -#line 5730 "" +#line 5782 "" *(unsigned char *)slurudq = 'd'; -#line 5731 "" +#line 5783 "" ivoff += -4; -#line 5732 "" +#line 5784 "" } -#line 5733 "" +#line 5785 "" } /* Set level for slur starting on rest */ -#line 5737 "" +#line 5789 "" if (nolevs == 0 || nolevs > 60) { -#line 5738 "" +#line 5790 "" if (*(unsigned char *)slurudq == 'u') { -#line 5739 "" +#line 5791 "" nolevs = *ncm + 2; -#line 5740 "" +#line 5792 "" } else { -#line 5741 "" +#line 5793 "" nolevs = *ncm - 2; -#line 5742 "" +#line 5794 "" } -#line 5743 "" +#line 5795 "" } /* Save up/down-ness for use at termination */ -#line 5747 "" +#line 5799 "" if (*(unsigned char *)slurudq == 'u') { -#line 5747 "" +#line 5799 "" isdata = bit_set(isdata,27); -#line 5747 "" +#line 5799 "" } /* End of section for setting slur direction, still in "Turnon" if-block. */ -#line 5751 "" +#line 5803 "" if (bit_test(*iornq,11) || bit_test(*iornq,12)) { /* Raise or lower slur by one unit provided . or _ is on same side as slur */ -#line 5755 "" +#line 5807 "" ivoffinc = 0; -#line 5756 "" +#line 5808 "" if (stemup && *(unsigned char *)slurudq == 'd' || ! stemup && *(unsigned char *)slurudq == 'u') { /* Must move the slur for _ or . */ -#line 5761 "" +#line 5813 "" if (stemup) { -#line 5762 "" +#line 5814 "" ivoffinc = -1; -#line 5763 "" +#line 5815 "" } else { -#line 5764 "" +#line 5816 "" ivoffinc = 1; -#line 5765 "" +#line 5817 "" } -#line 5766 "" +#line 5818 "" if ((stemup && *nolev >= *ncm - 2 || ! stemup && * nolev <= *ncm + 2) && (i__2 = *ncm - *nolev, abs(i__2)) % 2 == 0) { -#line 5766 "" +#line 5818 "" ivoffinc <<= 1; -#line 5766 "" +#line 5818 "" } -#line 5769 "" +#line 5821 "" ivoff += ivoffinc; -#line 5770 "" +#line 5822 "" } -#line 5771 "" +#line 5823 "" } -#line 5772 "" +#line 5824 "" if (comslur_1.listslur == 16777215) { -#line 5773 "" - s_wsle(&io___442); -#line 5773 "" - e_wsle(); -#line 5774 "" +#line 5825 "" s_wsle(&io___443); -#line 5774 "" +#line 5825 "" + e_wsle(); +#line 5826 "" + s_wsle(&io___444); +#line 5826 "" do_lio(&c__9, &c__1, "You1 defined the twentyfifth slur,"\ " one too many!", (ftnlen)48); -#line 5774 "" +#line 5826 "" e_wsle(); -#line 5775 "" - s_wsfe(&io___444); -#line 5775 "" +#line 5827 "" + s_wsfe(&io___445); +#line 5827 "" do_fio(&c__1, "You defined the twentyfifth slur, one too"\ " many!", (ftnlen)47); -#line 5775 "" +#line 5827 "" e_wsfe(); -#line 5777 "" +#line 5829 "" stop1_(); -#line 5778 "" +#line 5830 "" } /* Get index of next slur not in use, starting from 12 down */ -#line 5782 "" +#line 5834 "" i__2 = 16777215 - comslur_1.listslur; -#line 5782 "" +#line 5834 "" comslur_1.ndxslur = log2_(&i__2); /* write(*,'()') */ /* write(*,'(2i4,2x,B24)')ivx,ndxslur,listslur */ /* Record slur index */ -#line 5788 "" +#line 5840 "" comslur_1.listslur = bit_set(comslur_1.listslur, comslur_1.ndxslur); /* write(*,'(10x,B24)')listslur */ @@ -13968,206 +14060,206 @@ L121: /* call setbits(isdata,4,28,ndxslur) */ /* 080531 Allow >16 slurs */ -#line 5795 "" +#line 5847 "" i__2 = comslur_1.ndxslur % 16; -#line 5795 "" +#line 5847 "" setbits_(&isdata, &c__4, &c__28, &i__2); -#line 5796 "" +#line 5848 "" i__2 = comslur_1.ndxslur / 16; -#line 5796 "" +#line 5848 "" setbits_(&isdata, &c__1, &c__18, &i__2); /* Shift for stem? */ -#line 5800 "" +#line 5852 "" if (stemup && *(unsigned char *)slurudq == 'u' && *tno < 63.f) { -#line 5801 "" +#line 5853 "" if (! pstie) { -#line 5802 "" +#line 5854 "" ihoff += 8; -#line 5803 "" +#line 5855 "" } else { -#line 5804 "" +#line 5856 "" ihoff += 2; -#line 5805 "" +#line 5857 "" } -#line 5806 "" +#line 5858 "" } -#line 5807 "" +#line 5859 "" if (iscrd) { /* Additional horiz shifts for h-shifted noteheads? */ -#line 5811 "" +#line 5863 "" if (bit_test(isdat2[isdat],1)) { /* Slur start on left-shifted chord notehead. ASSUME downstem. */ -#line 5815 "" +#line 5867 "" if (nolevs == comtrill_1.minlev && *(unsigned char *) slurudq == 'd') { -#line 5816 "" +#line 5868 "" ihoff += -2; -#line 5817 "" +#line 5869 "" } else { -#line 5818 "" +#line 5870 "" ihoff += -10; -#line 5819 "" +#line 5871 "" } -#line 5820 "" +#line 5872 "" } else if (bit_test(isdat2[isdat],2)) { /* Right shifted chord notehead. ASSUME upstem. */ -#line 5824 "" +#line 5876 "" if (nolevs == comtrill_1.maxlev && *(unsigned char *) slurudq == 'u') { -#line 5825 "" +#line 5877 "" ihoff += 2; -#line 5826 "" +#line 5878 "" } else { -#line 5827 "" +#line 5879 "" ihoff += 10; -#line 5828 "" +#line 5880 "" } -#line 5829 "" +#line 5881 "" } -#line 5830 "" +#line 5882 "" } -#line 5831 "" +#line 5883 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 5831 "" +#line 5883 "" s_copy(notexq, ch__1, (ftnlen)79, (ftnlen)1); -#line 5832 "" +#line 5884 "" lnote = 1; /* Check for local adjustment default changes */ -#line 5836 "" +#line 5888 "" if (bit_test(isdat2[isdat],26)) { /* Writing concatenation */ -#line 5837 "" +#line 5889 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 5837 "" +#line 5889 "" i__3[0] = 1, a__1[0] = ch__1; -#line 5837 "" +#line 5889 "" i__3[1] = 10, a__1[1] = "sluradjust"; -#line 5837 "" +#line 5889 "" chax_(ch__2, (ftnlen)1, &c__92); -#line 5837 "" +#line 5889 "" i__3[2] = 1, a__1[2] = ch__2; -#line 5837 "" +#line 5889 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 5838 "" +#line 5890 "" lnote = 12; -#line 5839 "" +#line 5891 "" } else if (bit_test(isdat2[isdat],27)) { /* Writing concatenation */ -#line 5840 "" +#line 5892 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 5840 "" +#line 5892 "" i__3[0] = 1, a__1[0] = ch__1; -#line 5840 "" +#line 5892 "" i__3[1] = 12, a__1[1] = "nosluradjust"; -#line 5840 "" +#line 5892 "" chax_(ch__2, (ftnlen)1, &c__92); -#line 5840 "" +#line 5892 "" i__3[2] = 1, a__1[2] = ch__2; -#line 5840 "" +#line 5892 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 5841 "" +#line 5893 "" lnote = 14; -#line 5842 "" +#line 5894 "" } else if (bit_test(isdat2[isdat],28)) { /* Writing concatenation */ -#line 5843 "" +#line 5895 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 5843 "" +#line 5895 "" i__3[0] = 1, a__1[0] = ch__1; -#line 5843 "" +#line 5895 "" i__3[1] = 9, a__1[1] = "tieadjust"; -#line 5843 "" +#line 5895 "" chax_(ch__2, (ftnlen)1, &c__92); -#line 5843 "" +#line 5895 "" i__3[2] = 1, a__1[2] = ch__2; -#line 5843 "" +#line 5895 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 5844 "" +#line 5896 "" lnote = 11; -#line 5845 "" +#line 5897 "" } else if (bit_test(isdat2[isdat],29)) { /* Writing concatenation */ -#line 5846 "" +#line 5898 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 5846 "" +#line 5898 "" i__3[0] = 1, a__1[0] = ch__1; -#line 5846 "" +#line 5898 "" i__3[1] = 11, a__1[1] = "notieadjust"; -#line 5846 "" +#line 5898 "" chax_(ch__2, (ftnlen)1, &c__92); -#line 5846 "" +#line 5898 "" i__3[2] = 1, a__1[2] = ch__2; -#line 5846 "" +#line 5898 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 5847 "" +#line 5899 "" lnote = 13; -#line 5848 "" +#line 5900 "" } -#line 5849 "" +#line 5901 "" if (ihoff == 0) { /* Write stuff for non-shifted start */ /* Writing concatenation */ -#line 5853 "" +#line 5905 "" i__3[0] = lnote, a__1[0] = notexq; -#line 5853 "" +#line 5905 "" i__3[1] = 5, a__1[1] = "islur"; -#line 5853 "" +#line 5905 "" i__3[2] = 1, a__1[2] = slurudq; -#line 5853 "" +#line 5905 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 5854 "" +#line 5906 "" lnote += 6; -#line 5855 "" +#line 5907 "" } else { /* Writing concatenation */ -#line 5856 "" +#line 5908 "" i__3[0] = lnote, a__1[0] = notexq; -#line 5856 "" +#line 5908 "" i__3[1] = 2, a__1[1] = "is"; -#line 5856 "" +#line 5908 "" i__3[2] = 1, a__1[2] = slurudq; -#line 5856 "" +#line 5908 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 5857 "" +#line 5909 "" lnote += 3; -#line 5858 "" +#line 5910 "" } /* Prepend postscript tie switch */ -#line 5862 "" +#line 5914 "" if (pstie) { /* Writing concatenation */ -#line 5863 "" +#line 5915 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 5863 "" +#line 5915 "" i__4[0] = 1, a__2[0] = ch__1; -#line 5863 "" +#line 5915 "" i__4[1] = 8, a__2[1] = "tieforis"; -#line 5863 "" +#line 5915 "" i__4[2] = 1, a__2[2] = slurudq; -#line 5863 "" +#line 5915 "" i__4[3] = lnote, a__2[3] = notexq; -#line 5863 "" +#line 5915 "" s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79); -#line 5864 "" +#line 5916 "" lnote += 10; -#line 5865 "" +#line 5917 "" } -#line 5866 "" +#line 5918 "" if (bit_test(isdat2[isdat],4)) { /* Dotted slur */ @@ -14175,19 +14267,19 @@ L121: /* noteq = notexq */ /* notexq = chax(92)//'dotted'//noteq */ /* Writing concatenation */ -#line 5872 "" +#line 5924 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 5872 "" +#line 5924 "" i__3[0] = 1, a__1[0] = ch__1; -#line 5872 "" +#line 5924 "" i__3[1] = 6, a__1[1] = "dotted"; -#line 5872 "" +#line 5924 "" i__3[2] = lnote, a__1[2] = notexq; -#line 5872 "" +#line 5924 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 5873 "" +#line 5925 "" lnote += 7; -#line 5874 "" +#line 5926 "" } /* Add slur index to string */ @@ -14195,273 +14287,273 @@ L121: /* Print 23-ndxslur */ /* if (11-ndxslur .lt. 10) then */ -#line 5881 "" +#line 5933 "" if (23 - comslur_1.ndxslur < 10) { /* 5/25/08 Allow 24 slurs */ /* notexq = notexq(1:lnote)//chax(59-ndxslur) */ /* Writing concatenation */ -#line 5886 "" +#line 5938 "" i__5[0] = lnote, a__3[0] = notexq; -#line 5886 "" +#line 5938 "" i__2 = 71 - comslur_1.ndxslur; -#line 5886 "" +#line 5938 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 5886 "" +#line 5938 "" i__5[1] = 1, a__3[1] = ch__1; -#line 5886 "" +#line 5938 "" s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79); -#line 5887 "" +#line 5939 "" ++lnote; -#line 5888 "" +#line 5940 "" } else if (23 - comslur_1.ndxslur < 20) { /* notexq = notexq(1:lnote)//'{1'//chax(49-ndxslur)//'}' */ /* Writing concatenation */ -#line 5890 "" +#line 5942 "" i__4[0] = lnote, a__2[0] = notexq; -#line 5890 "" +#line 5942 "" i__4[1] = 2, a__2[1] = "{1"; -#line 5890 "" +#line 5942 "" i__2 = 61 - comslur_1.ndxslur; -#line 5890 "" +#line 5942 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 5890 "" +#line 5942 "" i__4[2] = 1, a__2[2] = ch__1; -#line 5890 "" +#line 5942 "" i__4[3] = 1, a__2[3] = "}"; -#line 5890 "" +#line 5942 "" s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79); -#line 5891 "" +#line 5943 "" lnote += 4; -#line 5892 "" +#line 5944 "" } else { /* Writing concatenation */ -#line 5893 "" +#line 5945 "" i__4[0] = lnote, a__2[0] = notexq; -#line 5893 "" +#line 5945 "" i__4[1] = 2, a__2[1] = "{2"; -#line 5893 "" +#line 5945 "" i__2 = 51 - comslur_1.ndxslur; -#line 5893 "" +#line 5945 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 5893 "" +#line 5945 "" i__4[2] = 1, a__2[2] = ch__1; -#line 5893 "" +#line 5945 "" i__4[3] = 1, a__2[3] = "}"; -#line 5893 "" +#line 5945 "" s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79); -#line 5894 "" +#line 5946 "" lnote += 4; -#line 5895 "" +#line 5947 "" } /* Add note name to string */ /* call notefq(noteq,lnoten,nolevs+iupdn+ivoff,ncm) */ -#line 5900 "" +#line 5952 "" *islhgt = nolevs + iupdn + ivoff; -#line 5901 "" +#line 5953 "" notefq_(noteq, &lnoten, islhgt, ncm, (ftnlen)8); /* Writing concatenation */ -#line 5902 "" +#line 5954 "" i__5[0] = lnote, a__3[0] = notexq; -#line 5902 "" +#line 5954 "" i__5[1] = lnoten, a__3[1] = noteq; -#line 5902 "" +#line 5954 "" s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79); -#line 5903 "" +#line 5955 "" lnote += lnoten; /* Store height and staff mid level for use with LineBreakTies */ -#line 5907 "" +#line 5959 "" setbits_(&isdat3[isdat], &c__8, &c__14, islhgt); -#line 5908 "" +#line 5960 "" setbits_(&isdat3[isdat], &c__8, &c__22, ncm); /* Save height (for ornament and barnobox interference) if topmost slur is up */ -#line 5912 "" +#line 5964 "" if (*(unsigned char *)slurudq == 'u' && (! bit_test(isdat2[ isdat],0) || nolevs == comtrill_1.maxlev)) { -#line 5914 "" +#line 5966 "" *islhgt = nolevs + iupdn + ivoff; /* Save height & idcode if top voice and slur start */ -#line 5918 "" +#line 5970 "" if (commvl_1.ivx == commvl_1.ivmx[*nv + commvl_1.nvmx[*nv - 1] * 24 - 25] && *islhgt > comsln_1.is1n1) { -#line 5919 "" +#line 5971 "" comsln_1.is1n1 = *islhgt; -#line 5920 "" +#line 5972 "" comsln_1.is2n1 = idcode; -#line 5921 "" +#line 5973 "" } -#line 5922 "" +#line 5974 "" } -#line 5923 "" +#line 5975 "" if ((real) ihoff != 0.f) { -#line 5924 "" +#line 5976 "" shift = ihoff * .1f; /* Writing concatenation */ -#line 5925 "" +#line 5977 "" i__5[0] = lnote, a__3[0] = notexq; -#line 5925 "" +#line 5977 "" i__5[1] = 1, a__3[1] = "{"; -#line 5925 "" +#line 5977 "" s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79); -#line 5926 "" +#line 5978 "" ++lnote; -#line 5927 "" +#line 5979 "" lform = lfmt1_(&shift); -#line 5928 "" +#line 5980 "" i__2 = lnote; -#line 5928 "" +#line 5980 "" ici__1.icierr = 0; -#line 5928 "" +#line 5980 "" ici__1.icirnum = 1; -#line 5928 "" +#line 5980 "" ici__1.icirlen = lnote + lform - i__2; -#line 5928 "" +#line 5980 "" ici__1.iciunit = notexq + i__2; /* Writing concatenation */ -#line 5928 "" +#line 5980 "" i__3[0] = 2, a__1[0] = "(f"; -#line 5928 "" +#line 5980 "" i__6 = lform + 48; -#line 5928 "" +#line 5980 "" chax_(ch__1, (ftnlen)1, &i__6); -#line 5928 "" +#line 5980 "" i__3[1] = 1, a__1[1] = ch__1; -#line 5928 "" +#line 5980 "" i__3[2] = 3, a__1[2] = ".1)"; -#line 5928 "" +#line 5980 "" ici__1.icifmt = (s_cat(ch__3, a__1, i__3, &c__3, (ftnlen) 6), ch__3); -#line 5928 "" +#line 5980 "" s_wsfi(&ici__1); -#line 5928 "" +#line 5980 "" do_fio(&c__1, (char *)&shift, (ftnlen)sizeof(real)); -#line 5928 "" +#line 5980 "" e_wsfi(); -#line 5930 "" +#line 5982 "" lnote += lform; /* Writing concatenation */ -#line 5931 "" +#line 5983 "" i__5[0] = lnote, a__3[0] = notexq; -#line 5931 "" +#line 5983 "" i__5[1] = 1, a__3[1] = "}"; -#line 5931 "" +#line 5983 "" s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79); -#line 5932 "" +#line 5984 "" ++lnote; -#line 5933 "" +#line 5985 "" } -#line 5934 "" +#line 5986 "" addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80); /* Zero out ip1 to avoid problems if slur goes to next input blk. */ -#line 5938 "" +#line 5990 "" setbits_(&isdata, &c__8, &c__3, &c__0); /* Set slur-on data for midi. Only treat null-index slurs and ps ties for now. */ -#line 5942 "" +#line 5994 "" if (commidi_1.ismidi && (idcode == 32 || idcode == 1)) { /* levson(midchan(iv,kv)) = nolevs */ /* 130316 */ /* levson(midchan(iv,kv)) = nolevs-iTransAmt(instno(iv)) */ -#line 5946 "" +#line 5998 "" comslm_1.levson[commidi_1.midchan[*iv + *kv * 24 - 25]] = nolevs + commvel_1.miditran[cominsttrans_1.instno[ *iv - 1] - 1]; -#line 5947 "" +#line 5999 "" if (settie) { -#line 5947 "" +#line 5999 "" comslm_1.dbltie = TRUE_; -#line 5947 "" +#line 5999 "" } /* Only way settie=T is if we just set a tie ending. So there's also a slur */ /* start here, so set a flag telling addmidi not to zero out levson */ -#line 5952 "" +#line 6004 "" } -#line 5953 "" +#line 6005 "" } else { /* Slur is ending. Back thru list to find starting slur */ -#line 5957 "" +#line 6009 "" for (j = isdat - 1; j >= 1; --j) { -#line 5958 "" +#line 6010 "" if (*iv == igetbits_(&isdat1[j], &c__5, &c__13) && *kv == igetbits_(&isdat1[j], &c__1, &c__12) + 1) { -#line 5960 "" +#line 6012 "" if (idcode == igetbits_(&isdat1[j], &c__7, &c__19)) { -#line 5961 "" +#line 6013 "" comslur_1.ndxslur = igetbits_(&isdat1[j], &c__4, & c__28) + (igetbits_(&isdat1[j], &c__1, & c__18) << 4); /* 080531 Allow >16 slurs */ -#line 5966 "" +#line 6018 "" if (bit_test(isdat1[j],27)) { -#line 5966 "" +#line 6018 "" *(unsigned char *)slurudq = 'u'; -#line 5966 "" +#line 6018 "" } -#line 5967 "" +#line 6019 "" goto L4; -#line 5968 "" +#line 6020 "" } -#line 5969 "" +#line 6021 "" } -#line 5970 "" +#line 6022 "" /* L3: */ -#line 5970 "" +#line 6022 "" } -#line 5971 "" - s_wsle(&io___452); -#line 5971 "" +#line 6023 "" + s_wsle(&io___453); +#line 6023 "" do_lio(&c__9, &c__1, "Bad place in doslur", (ftnlen)19); -#line 5971 "" +#line 6023 "" e_wsle(); -#line 5972 "" +#line 6024 "" stop1_(); -#line 5973 "" +#line 6025 "" L4: /* Bugfix 070901 for slur ending on rest in 2-voice staff */ /* if (nolevs.eq.0 .or. nolevs.gt.60) then */ -#line 5978 "" +#line 6030 "" if (nolevs <= 2 || nolevs > 60) { /* Ending is on a rest, reset nolevs to default starting height */ -#line 5982 "" +#line 6034 "" nolevs = igetbits_(&isdat2[j], &c__7, &c__19); -#line 5983 "" +#line 6035 "" } -#line 5984 "" +#line 6036 "" if (bit_test(isdat3[isdat],0) || bit_test(isdat3[j],0)) { /* Deal with \curve or \midslur. isdat is ending, j is start. */ -#line 5988 "" +#line 6040 "" if (bit_test(isdat3[isdat],0)) { -#line 5989 "" +#line 6041 "" imid = igetbits_(&isdat3[isdat], &c__6, &c__2) - 32; -#line 5990 "" +#line 6042 "" } else { -#line 5991 "" +#line 6043 "" imid = igetbits_(&isdat3[j], &c__6, &c__2) - 32; -#line 5992 "" +#line 6044 "" } /* Postscript slurs, and \midslur adjustment is needed. Invoke macro */ @@ -14474,384 +14566,384 @@ L4: /* 6+ HH */ /* Writing concatenation */ -#line 6003 "" +#line 6055 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6003 "" +#line 6055 "" i__3[0] = 1, a__1[0] = ch__1; -#line 6003 "" +#line 6055 "" i__3[1] = 7, a__1[1] = "psforts"; /* Computing MIN */ -#line 6003 "" +#line 6055 "" i__6 = abs(imid); -#line 6003 "" +#line 6055 "" i__2 = min(i__6,6) + 48; -#line 6003 "" +#line 6055 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 6003 "" +#line 6055 "" i__3[2] = 1, a__1[2] = ch__2; -#line 6003 "" +#line 6055 "" s_cat(ch__4, a__1, i__3, &c__3, (ftnlen)9); -#line 6003 "" +#line 6055 "" addstr_(ch__4, &c__9, soutq, lsout, (ftnlen)9, (ftnlen)80) ; -#line 6005 "" +#line 6057 "" } -#line 6006 "" +#line 6058 "" if (bit_test(isdata,2)) { /* ADjust for stem slur. */ -#line 6010 "" +#line 6062 "" if (stemup) { -#line 6011 "" +#line 6063 "" *(unsigned char *)slurudq = 'u'; -#line 6012 "" +#line 6064 "" ivoff += 4; -#line 6013 "" +#line 6065 "" } else { -#line 6014 "" +#line 6066 "" *(unsigned char *)slurudq = 'd'; -#line 6015 "" +#line 6067 "" ivoff += -4; -#line 6016 "" +#line 6068 "" } -#line 6017 "" +#line 6069 "" } /* Shift slur ending for stem on any note? */ -#line 6021 "" +#line 6073 "" if (! stemup && *(unsigned char *)slurudq == 'd' && *tno < 63.f) { -#line 6022 "" +#line 6074 "" if (! pstie) { -#line 6023 "" +#line 6075 "" ihoff += -8; -#line 6024 "" +#line 6076 "" } else { -#line 6025 "" +#line 6077 "" ihoff += -3; -#line 6026 "" +#line 6078 "" } -#line 6027 "" +#line 6079 "" } -#line 6028 "" +#line 6080 "" if (iscrd) { /* Shift termination for shifted notehead? */ -#line 6032 "" +#line 6084 "" if (bit_test(isdat2[isdat],1)) { /* Left-shifted chord notehead. ASSUME downstem. */ -#line 6036 "" +#line 6088 "" if (nolevs == comtrill_1.minlev && *(unsigned char *) slurudq == 'd') { -#line 6037 "" +#line 6089 "" ihoff += -2; -#line 6038 "" +#line 6090 "" } else { -#line 6039 "" +#line 6091 "" ihoff += -10; -#line 6040 "" +#line 6092 "" } -#line 6041 "" +#line 6093 "" } else if (bit_test(isdat2[isdat],2)) { /* Right shifted chord notehead. ASSUME upstem. */ -#line 6045 "" +#line 6097 "" if (nolevs == comtrill_1.maxlev && *(unsigned char *) slurudq == 'u') { -#line 6046 "" +#line 6098 "" ihoff += 2; -#line 6047 "" +#line 6099 "" } else { -#line 6048 "" +#line 6100 "" ihoff += 10; -#line 6049 "" +#line 6101 "" } -#line 6050 "" +#line 6102 "" } -#line 6051 "" +#line 6103 "" } -#line 6052 "" +#line 6104 "" if (ihoff == 0) { /* Writing concatenation */ -#line 6053 "" +#line 6105 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6053 "" +#line 6105 "" i__5[0] = 1, a__3[0] = ch__1; -#line 6053 "" +#line 6105 "" i__5[1] = 5, a__3[1] = "tslur"; -#line 6053 "" +#line 6105 "" s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79); -#line 6054 "" +#line 6106 "" lnote = 6; -#line 6055 "" +#line 6107 "" } else { /* Shift needed */ /* Writing concatenation */ -#line 6059 "" +#line 6111 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6059 "" +#line 6111 "" i__5[0] = 1, a__3[0] = ch__1; -#line 6059 "" +#line 6111 "" i__5[1] = 2, a__3[1] = "ts"; -#line 6059 "" +#line 6111 "" s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79); -#line 6060 "" +#line 6112 "" lnote = 3; -#line 6061 "" +#line 6113 "" } /* Switch to postscript tie */ -#line 6065 "" +#line 6117 "" if (pstie) { /* Writing concatenation */ -#line 6066 "" +#line 6118 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6066 "" +#line 6118 "" i__3[0] = 1, a__1[0] = ch__1; -#line 6066 "" +#line 6118 "" i__3[1] = 8, a__1[1] = "tieforts"; -#line 6066 "" +#line 6118 "" i__3[2] = lnote, a__1[2] = notexq; -#line 6066 "" +#line 6118 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 6067 "" +#line 6119 "" lnote += 9; -#line 6068 "" +#line 6120 "" } /* Print 13-ndxslur */ /* 5/25/08 Allow 14 slurs */ -#line 6073 "" +#line 6125 "" if (23 - comslur_1.ndxslur < 10) { /* Writing concatenation */ -#line 6074 "" +#line 6126 "" i__5[0] = lnote, a__3[0] = notexq; -#line 6074 "" +#line 6126 "" i__2 = 71 - comslur_1.ndxslur; -#line 6074 "" +#line 6126 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6074 "" +#line 6126 "" i__5[1] = 1, a__3[1] = ch__1; -#line 6074 "" +#line 6126 "" s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79); -#line 6075 "" +#line 6127 "" ++lnote; -#line 6076 "" +#line 6128 "" } else if (23 - comslur_1.ndxslur < 20) { /* Writing concatenation */ -#line 6077 "" +#line 6129 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6077 "" +#line 6129 "" i__4[1] = 2, a__2[1] = "{1"; -#line 6077 "" +#line 6129 "" i__2 = 61 - comslur_1.ndxslur; -#line 6077 "" +#line 6129 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6077 "" +#line 6129 "" i__4[2] = 1, a__2[2] = ch__1; -#line 6077 "" +#line 6129 "" i__4[3] = 1, a__2[3] = "}"; -#line 6077 "" +#line 6129 "" s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79); -#line 6078 "" +#line 6130 "" lnote += 4; -#line 6079 "" +#line 6131 "" } else { /* Writing concatenation */ -#line 6080 "" +#line 6132 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6080 "" +#line 6132 "" i__4[1] = 2, a__2[1] = "{2"; -#line 6080 "" +#line 6132 "" i__2 = 51 - comslur_1.ndxslur; -#line 6080 "" +#line 6132 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6080 "" +#line 6132 "" i__4[2] = 1, a__2[2] = ch__1; -#line 6080 "" +#line 6132 "" i__4[3] = 1, a__2[3] = "}"; -#line 6080 "" +#line 6132 "" s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79); -#line 6081 "" +#line 6133 "" lnote += 4; -#line 6082 "" +#line 6134 "" } -#line 6083 "" +#line 6135 "" if (bit_test(*iornq,11) || bit_test(*iornq,12)) { /* Raise or lower slur by one unit provided . or _ is on same side as slur */ -#line 6087 "" +#line 6139 "" ivoffinc = 0; -#line 6088 "" +#line 6140 "" if (stemup && *(unsigned char *)slurudq == 'd' || ! stemup && *(unsigned char *)slurudq == 'u') { -#line 6090 "" +#line 6142 "" if (stemup) { -#line 6091 "" +#line 6143 "" ivoffinc = -1; -#line 6092 "" +#line 6144 "" } else { -#line 6093 "" +#line 6145 "" ivoffinc = 1; -#line 6094 "" +#line 6146 "" } -#line 6095 "" +#line 6147 "" if ((stemup && *nolev >= *ncm - 2 || ! stemup && * nolev <= *ncm + 2) && (i__2 = *ncm - *nolev, abs(i__2)) % 2 == 0) { -#line 6095 "" +#line 6147 "" ivoffinc <<= 1; -#line 6095 "" +#line 6147 "" } -#line 6098 "" +#line 6150 "" } -#line 6099 "" +#line 6151 "" ivoff += ivoffinc; -#line 6100 "" +#line 6152 "" } -#line 6101 "" +#line 6153 "" i__2 = nolevs + iupdn + ivoff; -#line 6101 "" +#line 6153 "" notefq_(noteq, &lnoten, &i__2, ncm, (ftnlen)8); -#line 6102 "" +#line 6154 "" if (*(unsigned char *)slurudq == 'u' && (! bit_test(isdat2[ isdat],0) || nolevs == comtrill_1.maxlev)) { -#line 6104 "" +#line 6156 "" *islhgt = nolevs + iupdn + ivoff; /* If topvoice, upslur, and idcode checks, no more need to keep hgt for barno. */ -#line 6108 "" +#line 6160 "" if (commvl_1.ivx == commvl_1.ivmx[*nv + commvl_1.nvmx[*nv - 1] * 24 - 25] && comsln_1.is1n1 > 0) { -#line 6109 "" +#line 6161 "" if (idcode == comsln_1.is2n1) { -#line 6109 "" +#line 6161 "" comsln_1.is1n1 = 0; -#line 6109 "" +#line 6161 "" } -#line 6110 "" +#line 6162 "" } -#line 6111 "" +#line 6163 "" } /* Writing concatenation */ -#line 6112 "" +#line 6164 "" i__5[0] = lnote, a__3[0] = notexq; -#line 6112 "" +#line 6164 "" i__5[1] = lnoten, a__3[1] = noteq; -#line 6112 "" +#line 6164 "" s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79); -#line 6113 "" +#line 6165 "" lnote += lnoten; -#line 6114 "" +#line 6166 "" if (ihoff != 0) { -#line 6115 "" +#line 6167 "" shift = ihoff * .1f; /* Writing concatenation */ -#line 6116 "" +#line 6168 "" i__5[0] = lnote, a__3[0] = notexq; -#line 6116 "" +#line 6168 "" i__5[1] = 1, a__3[1] = "{"; -#line 6116 "" +#line 6168 "" s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79); -#line 6117 "" +#line 6169 "" ++lnote; -#line 6118 "" +#line 6170 "" lform = lfmt1_(&shift); -#line 6119 "" +#line 6171 "" i__2 = lnote; -#line 6119 "" +#line 6171 "" ici__1.icierr = 0; -#line 6119 "" +#line 6171 "" ici__1.icirnum = 1; -#line 6119 "" +#line 6171 "" ici__1.icirlen = lnote + lform - i__2; -#line 6119 "" +#line 6171 "" ici__1.iciunit = notexq + i__2; /* Writing concatenation */ -#line 6119 "" +#line 6171 "" i__3[0] = 2, a__1[0] = "(f"; -#line 6119 "" +#line 6171 "" i__6 = lform + 48; -#line 6119 "" +#line 6171 "" chax_(ch__1, (ftnlen)1, &i__6); -#line 6119 "" +#line 6171 "" i__3[1] = 1, a__1[1] = ch__1; -#line 6119 "" +#line 6171 "" i__3[2] = 3, a__1[2] = ".1)"; -#line 6119 "" +#line 6171 "" ici__1.icifmt = (s_cat(ch__3, a__1, i__3, &c__3, (ftnlen) 6), ch__3); -#line 6119 "" +#line 6171 "" s_wsfi(&ici__1); -#line 6119 "" +#line 6171 "" do_fio(&c__1, (char *)&shift, (ftnlen)sizeof(real)); -#line 6119 "" +#line 6171 "" e_wsfi(); -#line 6121 "" +#line 6173 "" lnote += lform; /* Writing concatenation */ -#line 6122 "" +#line 6174 "" i__5[0] = lnote, a__3[0] = notexq; -#line 6122 "" +#line 6174 "" i__5[1] = 1, a__3[1] = "}"; -#line 6122 "" +#line 6174 "" s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79); -#line 6123 "" +#line 6175 "" ++lnote; -#line 6124 "" +#line 6176 "" } -#line 6125 "" +#line 6177 "" addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80); /* Clear the bit from list of slurs in use */ -#line 6129 "" +#line 6181 "" comslur_1.listslur = bit_clear(comslur_1.listslur, comslur_1.ndxslur); /* Zero out the entire strings for start and stop */ -#line 6133 "" +#line 6185 "" isdata = 0; -#line 6134 "" +#line 6186 "" isdat2[isdat] = 0; -#line 6135 "" +#line 6187 "" isdat3[isdat] = 0; -#line 6136 "" +#line 6188 "" isdat4[isdat] = 0; -#line 6137 "" +#line 6189 "" isdat1[j] = 0; -#line 6138 "" +#line 6190 "" isdat2[j] = 0; -#line 6139 "" +#line 6191 "" isdat3[j] = 0; -#line 6140 "" +#line 6192 "" isdat4[j] = 0; /* Set midi info for slur ending */ -#line 6144 "" +#line 6196 "" if (commidi_1.ismidi && (idcode == 32 || idcode == 1)) { -#line 6145 "" +#line 6197 "" icm = commidi_1.midchan[*iv + *kv * 24 - 25]; -#line 6146 "" +#line 6198 "" if (comslm_1.slmon[icm]) { /* if (nolevs.eq.levson(icm) .and. iand(7,nacc).eq.0) then */ /* 130316 */ /* if (nolevs-iTransAmt(instno(iv)).eq.levson(icm) .and. */ -#line 6150 "" +#line 6202 "" if (nolevs + commvel_1.miditran[cominsttrans_1.instno[ *iv - 1] - 1] == comslm_1.levson[icm] && (7 & *nacc) == 0) { @@ -14861,77 +14953,77 @@ L4: /* levsoff(icm) = nolevs */ /* 130316 */ /* levsoff(icm) = nolevs-iTransAmt(instno(iv)) */ -#line 6158 "" +#line 6210 "" comslm_1.levsoff[icm] = nolevs + commvel_1.miditran[cominsttrans_1.instno[* iv - 1] - 1]; -#line 6159 "" +#line 6211 "" settie = TRUE_; -#line 6160 "" +#line 6212 "" } else { -#line 6161 "" +#line 6213 "" comslm_1.levsoff[icm] = 0; -#line 6162 "" +#line 6214 "" comslm_1.levson[icm] = 0; -#line 6163 "" +#line 6215 "" comslm_1.slmon[icm] = FALSE_; -#line 6164 "" +#line 6216 "" } -#line 6165 "" +#line 6217 "" } -#line 6166 "" +#line 6218 "" } -#line 6167 "" +#line 6219 "" } -#line 6168 "" +#line 6220 "" isdat1[isdat] = isdata; -#line 6169 "" +#line 6221 "" } -#line 6170 "" +#line 6222 "" /* L1: */ -#line 6170 "" +#line 6222 "" } /* Clear and collapse the slur data list */ -#line 6174 "" +#line 6226 "" numdrop = 0; -#line 6175 "" +#line 6227 "" i__1 = *nsdat; -#line 6175 "" +#line 6227 "" for (isdat = 1; isdat <= i__1; ++isdat) { -#line 6176 "" +#line 6228 "" if (isdat1[isdat] == 0) { -#line 6177 "" +#line 6229 "" ++numdrop; -#line 6178 "" +#line 6230 "" } else if (numdrop > 0) { -#line 6179 "" +#line 6231 "" isdat1[isdat - numdrop] = isdat1[isdat]; -#line 6180 "" +#line 6232 "" isdat2[isdat - numdrop] = isdat2[isdat]; -#line 6181 "" +#line 6233 "" isdat3[isdat - numdrop] = isdat3[isdat]; -#line 6182 "" +#line 6234 "" isdat4[isdat - numdrop] = isdat4[isdat]; -#line 6183 "" +#line 6235 "" isdat1[isdat] = 0; -#line 6184 "" +#line 6236 "" isdat2[isdat] = 0; -#line 6185 "" +#line 6237 "" isdat3[isdat] = 0; -#line 6186 "" +#line 6238 "" isdat4[isdat] = 0; -#line 6187 "" +#line 6239 "" } -#line 6188 "" +#line 6240 "" /* L2: */ -#line 6188 "" +#line 6240 "" } -#line 6189 "" +#line 6241 "" *nsdat -= numdrop; /* call report(nsdat,isdat1,isdat2) */ -#line 6191 "" +#line 6243 "" return 0; } /* dopsslur_ */ @@ -14993,11 +15085,11 @@ L4: static char slurudq[1]; /* Fortran I/O blocks */ - static cilist io___473 = { 0, 6, 0, 0, 0 }; - static cilist io___475 = { 0, 6, 0, 0, 0 }; + static cilist io___474 = { 0, 6, 0, 0, 0 }; static cilist io___476 = { 0, 6, 0, 0, 0 }; - static cilist io___477 = { 0, 15, 0, "(/,a)", 0 }; - static cilist io___485 = { 0, 6, 0, 0, 0 }; + static cilist io___477 = { 0, 6, 0, 0, 0 }; + static cilist io___478 = { 0, 15, 0, "(/,a)", 0 }; + static cilist io___486 = { 0, 6, 0, 0, 0 }; @@ -15041,129 +15133,129 @@ L4: /* If highest note has upslur, save slur height in islhgt in case */ /* ornament must be moved. */ -#line 6269 "" +#line 6321 "" /* Parameter adjustments */ -#line 6269 "" +#line 6321 "" --isdat3; -#line 6269 "" +#line 6321 "" --isdat2; -#line 6269 "" +#line 6321 "" --isdat1; -#line 6269 "" +#line 6321 "" -#line 6269 "" +#line 6321 "" /* Function Body */ -#line 6269 "" +#line 6321 "" *islhgt = 0; -#line 6270 "" +#line 6322 "" if (*beamon) { -#line 6271 "" +#line 6323 "" stemup = *(unsigned char *)ulq == 'u'; -#line 6272 "" +#line 6324 "" } else if (commvl_1.nvmx[*iv - 1] == 2) { -#line 6273 "" +#line 6325 "" if (! bit_test(*islur,30)) { /* Single note, 2 lines of music, stem direction not forced */ -#line 6277 "" +#line 6329 "" stemup = commvl_1.ivx > *nv; -#line 6278 "" +#line 6330 "" } else { -#line 6279 "" +#line 6331 "" stemup = bit_test(*islur,17); -#line 6280 "" +#line 6332 "" } -#line 6281 "" +#line 6333 "" } else { -#line 6282 "" +#line 6334 "" udqq_(ch__1, (ftnlen)1, nolev, ncm, islur, &commvl_1.nvmx[*iv - 1], & commvl_1.ivx, nv); -#line 6282 "" +#line 6334 "" stemup = *(unsigned char *)&ch__1[0] == 'u'; -#line 6283 "" +#line 6335 "" } -#line 6284 "" +#line 6336 "" iscrd = bit_test(*ipl,10); -#line 6285 "" +#line 6337 "" if (bit_test(*islur,1)) { /* 't'-slur (idcode=1) somewhere on this note. Find it, check height against */ /* 's'-slur (idcode=32) */ -#line 6290 "" +#line 6342 "" sfound = FALSE_; -#line 6291 "" +#line 6343 "" tfound = FALSE_; -#line 6292 "" +#line 6344 "" tmove = FALSE_; -#line 6293 "" +#line 6345 "" i__1 = *nsdat; -#line 6293 "" +#line 6345 "" for (isdat = 1; isdat <= i__1; ++isdat) { -#line 6294 "" +#line 6346 "" if (*iv == igetbits_(&isdat1[isdat], &c__5, &c__13) && *ip == igetbits_(&isdat1[isdat], &c__8, &c__3) && *kv == igetbits_(&isdat1[isdat], &c__1, &c__12) + 1) { -#line 6297 "" +#line 6349 "" if (! tfound) { -#line 6298 "" +#line 6350 "" tfound = igetbits_(&isdat1[isdat], &c__7, &c__19) == 1; -#line 6299 "" +#line 6351 "" if (tfound) { -#line 6300 "" +#line 6352 "" nolevt = igetbits_(&isdat2[isdat], &c__7, &c__19); -#line 6301 "" +#line 6353 "" isdatt = isdat; -#line 6302 "" +#line 6354 "" if (sfound) { -#line 6302 "" +#line 6354 "" goto L6; -#line 6302 "" +#line 6354 "" } -#line 6303 "" +#line 6355 "" } -#line 6304 "" +#line 6356 "" } -#line 6305 "" +#line 6357 "" if (! sfound) { -#line 6306 "" +#line 6358 "" sfound = igetbits_(&isdat1[isdat], &c__7, &c__19) == 32; -#line 6307 "" +#line 6359 "" if (sfound) { -#line 6308 "" +#line 6360 "" nolevs = igetbits_(&isdat2[isdat], &c__7, &c__19); -#line 6309 "" +#line 6361 "" isdats = isdat; -#line 6310 "" +#line 6362 "" if (tfound) { -#line 6310 "" +#line 6362 "" goto L6; -#line 6310 "" +#line 6362 "" } -#line 6311 "" +#line 6363 "" } -#line 6312 "" +#line 6364 "" } -#line 6313 "" +#line 6365 "" } -#line 6314 "" +#line 6366 "" /* L5: */ -#line 6314 "" +#line 6366 "" } /* Will come thru here if there is a t with no s, so comment out the following */ /* print*,'Did not find s+t-slurs in doslur' */ -#line 6319 "" +#line 6371 "" L6: -#line 6320 "" +#line 6372 "" if (sfound && tfound) { -#line 6320 "" +#line 6372 "" tmove = nolevs == nolevt && (bit_test(isdat1[isdats],11) && bit_test(isdat1[isdatt],11) || ! bit_test(isdat1[isdats], 11) && ! bit_test(isdat1[isdatt],11)); -#line 6320 "" +#line 6372 "" } /* Check if 2 starts or two stops */ @@ -15171,229 +15263,229 @@ L6: /* This is a flag for later changing slur level, after we know slur dir'n. */ -#line 6331 "" +#line 6383 "" } -#line 6332 "" +#line 6384 "" if (commidi_1.ismidi) { -#line 6333 "" +#line 6385 "" settie = FALSE_; -#line 6334 "" +#line 6386 "" comslm_1.dbltie = FALSE_; -#line 6335 "" +#line 6387 "" } -#line 6336 "" +#line 6388 "" i__1 = *nsdat; -#line 6336 "" +#line 6388 "" for (isdat = 1; isdat <= i__1; ++isdat) { -#line 6337 "" +#line 6389 "" isdata = isdat1[isdat]; -#line 6338 "" +#line 6390 "" if (*iv == igetbits_(&isdata, &c__5, &c__13) && *ip == igetbits_(& isdata, &c__8, &c__3) && *kv == igetbits_(&isdata, &c__1, & c__12) + 1) { /* Since iv and kv match, ivx will be correct */ -#line 6344 "" +#line 6396 "" idcode = igetbits_(&isdata, &c__7, &c__19); -#line 6345 "" +#line 6397 "" ivoff = igetbits_(&isdat2[isdat], &c__6, &c__6) - 32; -#line 6346 "" +#line 6398 "" ihoff = igetbits_(&isdat2[isdat], &c__7, &c__12) - 64; -#line 6347 "" +#line 6399 "" iupdn = 0; -#line 6348 "" +#line 6400 "" *(unsigned char *)slurudq = 'd'; -#line 6349 "" +#line 6401 "" nolevs = igetbits_(&isdat2[isdat], &c__7, &c__19); -#line 6350 "" +#line 6402 "" if (bit_test(isdata,11)) { /* Turnon, */ -#line 6354 "" +#line 6406 "" if (nolevs == 0 || nolevs > 60) { /* Note was a rest, cannot start slur on rest. */ -#line 6358 "" - s_wsle(&io___473); -#line 6358 "" +#line 6410 "" + s_wsle(&io___474); +#line 6410 "" e_wsle(); -#line 6359 "" +#line 6411 "" printl_("Cannot start slur on a rest", (ftnlen)27); -#line 6360 "" +#line 6412 "" stop1_(); -#line 6361 "" +#line 6413 "" } /* Get slur direction */ -#line 6365 "" +#line 6417 "" if (bit_test(isdata,26)) { /* Force slur direction */ -#line 6369 "" +#line 6421 "" if (bit_test(isdata,27)) { -#line 6369 "" +#line 6421 "" *(unsigned char *)slurudq = 'u'; -#line 6369 "" +#line 6421 "" } -#line 6370 "" +#line 6422 "" } else if (commvl_1.nvmx[*iv - 1] == 1) { /* Only one voice per line */ -#line 6374 "" +#line 6426 "" if (! (*beamon)) { /* Separate note. */ -#line 6378 "" +#line 6430 "" udfq_(ch__1, (ftnlen)1, nolev, ncm); -#line 6378 "" +#line 6430 "" *(unsigned char *)slurudq = *(unsigned char *)&ch__1[ 0]; -#line 6379 "" +#line 6431 "" } else { /* In a beam */ -#line 6383 "" +#line 6435 "" if (*(unsigned char *)ulq != 'u') { -#line 6383 "" +#line 6435 "" *(unsigned char *)slurudq = 'u'; -#line 6383 "" +#line 6435 "" } -#line 6384 "" +#line 6436 "" } -#line 6385 "" +#line 6437 "" if (iscrd) { -#line 6386 "" +#line 6438 "" if (nolevs > *ncm) { -#line 6387 "" +#line 6439 "" *(unsigned char *)slurudq = 'u'; -#line 6388 "" +#line 6440 "" } else { -#line 6389 "" +#line 6441 "" *(unsigned char *)slurudq = 'd'; -#line 6390 "" +#line 6442 "" } -#line 6391 "" +#line 6443 "" } -#line 6392 "" +#line 6444 "" } else { /* Two voices per line. Get default */ -#line 6396 "" +#line 6448 "" if (commvl_1.ivx > *nv) { -#line 6396 "" +#line 6448 "" *(unsigned char *)slurudq = 'u'; -#line 6396 "" +#line 6448 "" } /* Upper voice of the two, so up slur */ -#line 6400 "" +#line 6452 "" } /* Save up/down-ness for use at termination */ -#line 6404 "" +#line 6456 "" if (*(unsigned char *)slurudq == 'u') { -#line 6404 "" +#line 6456 "" isdata = bit_set(isdata,27); -#line 6404 "" +#line 6456 "" } /* End of section for setting slur direction, still in "Turnon" if-block. */ -#line 6408 "" +#line 6460 "" if (idcode == 1 && tmove) { -#line 6409 "" +#line 6461 "" iupdn = 1; -#line 6410 "" +#line 6462 "" if (*(unsigned char *)slurudq == 'd') { -#line 6410 "" +#line 6462 "" iupdn = -1; -#line 6410 "" +#line 6462 "" } -#line 6411 "" +#line 6463 "" } -#line 6412 "" +#line 6464 "" if (bit_test(*iornq,11) || bit_test(*iornq,12)) { /* Raise or lower slur by one unit provided . or _ is on same side as slur */ -#line 6416 "" +#line 6468 "" ivoffinc = 0; -#line 6417 "" +#line 6469 "" if (stemup && *(unsigned char *)slurudq == 'd' || ! stemup && *(unsigned char *)slurudq == 'u') { /* Must move the slur for _ or . */ -#line 6422 "" +#line 6474 "" if (stemup) { -#line 6423 "" +#line 6475 "" ivoffinc = -1; -#line 6424 "" +#line 6476 "" } else { -#line 6425 "" +#line 6477 "" ivoffinc = 1; -#line 6426 "" +#line 6478 "" } -#line 6427 "" +#line 6479 "" if ((stemup && *nolev >= *ncm - 2 || ! stemup && * nolev <= *ncm + 2) && (i__2 = *ncm - *nolev, abs(i__2)) % 2 == 0) { -#line 6427 "" +#line 6479 "" ivoffinc <<= 1; -#line 6427 "" +#line 6479 "" } -#line 6430 "" +#line 6482 "" ivoff += ivoffinc; -#line 6431 "" +#line 6483 "" } -#line 6432 "" +#line 6484 "" } -#line 6433 "" +#line 6485 "" if (comslur_1.listslur == 16777215) { -#line 6434 "" - s_wsle(&io___475); -#line 6434 "" - e_wsle(); -#line 6435 "" +#line 6486 "" s_wsle(&io___476); -#line 6435 "" +#line 6486 "" + e_wsle(); +#line 6487 "" + s_wsle(&io___477); +#line 6487 "" do_lio(&c__9, &c__1, "You1 defined the twenty-fifth slur"\ ", one too many!", (ftnlen)49); -#line 6435 "" +#line 6487 "" e_wsle(); -#line 6436 "" - s_wsfe(&io___477); -#line 6436 "" +#line 6488 "" + s_wsfe(&io___478); +#line 6488 "" do_fio(&c__1, "You2 defined the twenty-fifth slur, one t"\ "oo many!", (ftnlen)49); -#line 6436 "" +#line 6488 "" e_wsfe(); -#line 6438 "" +#line 6490 "" stop1_(); -#line 6439 "" +#line 6491 "" } /* Get index of next slur not in use, starting from ? down */ -#line 6443 "" +#line 6495 "" i__2 = 16777215 - comslur_1.listslur; -#line 6443 "" +#line 6495 "" comslur_1.ndxslur = log2_(&i__2); /* Record slur index */ -#line 6447 "" +#line 6499 "" comslur_1.listslur = bit_set(comslur_1.listslur, comslur_1.ndxslur); @@ -15401,149 +15493,149 @@ L6: /* call setbits(isdata,4,28,ndxslur) */ /* 080531 Allow >16 slurs */ -#line 6453 "" +#line 6505 "" i__2 = comslur_1.ndxslur % 16; -#line 6453 "" +#line 6505 "" setbits_(&isdata, &c__4, &c__28, &i__2); -#line 6454 "" +#line 6506 "" i__2 = comslur_1.ndxslur / 16; -#line 6454 "" +#line 6506 "" setbits_(&isdata, &c__1, &c__18, &i__2); /* Shift for stem? */ -#line 6458 "" +#line 6510 "" if (stemup && *(unsigned char *)slurudq == 'u' && *tno < 63.f) { -#line 6458 "" +#line 6510 "" ihoff += 8; -#line 6458 "" +#line 6510 "" } -#line 6460 "" +#line 6512 "" if (bit_test(isdat2[isdat],3)) { /* Tie spacing, (slur start) */ -#line 6464 "" +#line 6516 "" if (*(unsigned char *)slurudq == 'd') { -#line 6465 "" +#line 6517 "" ++ivoff; -#line 6466 "" +#line 6518 "" ihoff += 8; -#line 6467 "" +#line 6519 "" } else if (*(unsigned char *)slurudq == 'u') { -#line 6468 "" +#line 6520 "" --ivoff; -#line 6469 "" +#line 6521 "" if (! (stemup && *tno < 63.f)) { -#line 6469 "" +#line 6521 "" ihoff += 8; -#line 6469 "" +#line 6521 "" } /* (already shifted if (stemup.and.tno.gt.63.) and slurudq='u') */ -#line 6473 "" +#line 6525 "" } -#line 6474 "" +#line 6526 "" } -#line 6475 "" +#line 6527 "" if (iscrd) { /* Additional horiz shifts for h-shifted noteheads? */ -#line 6479 "" +#line 6531 "" if (bit_test(isdat2[isdat],1)) { /* Slur start on left-shifted chord notehead. ASSUME downstem. */ -#line 6483 "" +#line 6535 "" if (nolevs == comtrill_1.minlev && *(unsigned char *) slurudq == 'd') { -#line 6484 "" +#line 6536 "" ihoff += -2; -#line 6485 "" +#line 6537 "" } else { -#line 6486 "" +#line 6538 "" ihoff += -10; -#line 6487 "" +#line 6539 "" } -#line 6488 "" +#line 6540 "" } else if (bit_test(isdat2[isdat],2)) { /* Right shifted chord notehead. ASSUME upstem. */ -#line 6492 "" +#line 6544 "" if (nolevs == comtrill_1.maxlev && *(unsigned char *) slurudq == 'u') { -#line 6493 "" +#line 6545 "" ihoff += 2; -#line 6494 "" +#line 6546 "" } else { -#line 6495 "" +#line 6547 "" ihoff += 10; -#line 6496 "" +#line 6548 "" } -#line 6497 "" +#line 6549 "" } -#line 6498 "" +#line 6550 "" } -#line 6499 "" +#line 6551 "" if (ihoff == 0) { /* Write stuff for non-shifted start */ /* Writing concatenation */ -#line 6503 "" +#line 6555 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6503 "" +#line 6555 "" i__3[0] = 1, a__1[0] = ch__1; -#line 6503 "" +#line 6555 "" i__3[1] = 5, a__1[1] = "islur"; -#line 6503 "" +#line 6555 "" i__3[2] = 1, a__1[2] = slurudq; -#line 6503 "" +#line 6555 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 6504 "" +#line 6556 "" lnote = 7; -#line 6505 "" +#line 6557 "" } else { /* Writing concatenation */ -#line 6506 "" +#line 6558 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6506 "" +#line 6558 "" i__3[0] = 1, a__1[0] = ch__1; -#line 6506 "" +#line 6558 "" i__3[1] = 2, a__1[1] = "is"; -#line 6506 "" +#line 6558 "" i__3[2] = 1, a__1[2] = slurudq; -#line 6506 "" +#line 6558 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 6507 "" +#line 6559 "" lnote = 4; -#line 6508 "" +#line 6560 "" } -#line 6509 "" +#line 6561 "" if (bit_test(isdat2[isdat],4)) { /* Dotted slur */ -#line 6513 "" +#line 6565 "" s_copy(noteq, notexq, (ftnlen)8, (ftnlen)79); /* Writing concatenation */ -#line 6514 "" +#line 6566 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6514 "" +#line 6566 "" i__3[0] = 1, a__1[0] = ch__1; -#line 6514 "" +#line 6566 "" i__3[1] = 6, a__1[1] = "dotted"; -#line 6514 "" +#line 6566 "" i__3[2] = 8, a__1[2] = noteq; -#line 6514 "" +#line 6566 "" s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79); -#line 6515 "" +#line 6567 "" lnote += 7; -#line 6516 "" +#line 6568 "" } /* Add slur index to string */ @@ -15551,253 +15643,253 @@ L6: /* Print 23-ndxslur */ /* if (11-ndxslur .lt. 10) then */ -#line 6523 "" +#line 6575 "" if (23 - comslur_1.ndxslur < 10) { /* 5/25/08 Allow 24 slurs */ /* notexq = notexq(1:lnote)//chax(59-ndxslur) */ /* Writing concatenation */ -#line 6528 "" +#line 6580 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6528 "" +#line 6580 "" i__2 = 71 - comslur_1.ndxslur; -#line 6528 "" +#line 6580 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6528 "" +#line 6580 "" i__4[1] = 1, a__2[1] = ch__1; -#line 6528 "" +#line 6580 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6529 "" +#line 6581 "" ++lnote; -#line 6530 "" +#line 6582 "" } else if (23 - comslur_1.ndxslur < 20) { /* notexq = notexq(1:lnote)//'{1'//chax(49-ndxslur)//'}' */ /* Writing concatenation */ -#line 6532 "" +#line 6584 "" i__5[0] = lnote, a__3[0] = notexq; -#line 6532 "" +#line 6584 "" i__5[1] = 2, a__3[1] = "{1"; -#line 6532 "" +#line 6584 "" i__2 = 61 - comslur_1.ndxslur; -#line 6532 "" +#line 6584 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6532 "" +#line 6584 "" i__5[2] = 1, a__3[2] = ch__1; -#line 6532 "" +#line 6584 "" i__5[3] = 1, a__3[3] = "}"; -#line 6532 "" +#line 6584 "" s_cat(notexq, a__3, i__5, &c__4, (ftnlen)79); -#line 6533 "" +#line 6585 "" lnote += 4; -#line 6534 "" +#line 6586 "" } else { /* Writing concatenation */ -#line 6535 "" +#line 6587 "" i__5[0] = lnote, a__3[0] = notexq; -#line 6535 "" +#line 6587 "" i__5[1] = 2, a__3[1] = "{2"; -#line 6535 "" +#line 6587 "" i__2 = 51 - comslur_1.ndxslur; -#line 6535 "" +#line 6587 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6535 "" +#line 6587 "" i__5[2] = 1, a__3[2] = ch__1; -#line 6535 "" +#line 6587 "" i__5[3] = 1, a__3[3] = "}"; -#line 6535 "" +#line 6587 "" s_cat(notexq, a__3, i__5, &c__4, (ftnlen)79); -#line 6536 "" +#line 6588 "" lnote += 4; -#line 6537 "" +#line 6589 "" } /* Add note name to string */ -#line 6541 "" +#line 6593 "" i__2 = nolevs + iupdn + ivoff; -#line 6541 "" +#line 6593 "" notefq_(noteq, &lnoten, &i__2, ncm, (ftnlen)8); /* Writing concatenation */ -#line 6542 "" +#line 6594 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6542 "" +#line 6594 "" i__4[1] = lnoten, a__2[1] = noteq; -#line 6542 "" +#line 6594 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6543 "" +#line 6595 "" lnote += lnoten; /* Save height (for ornament and barnobox interference) if topmost slur is up */ -#line 6547 "" +#line 6599 "" if (*(unsigned char *)slurudq == 'u' && (! bit_test(isdat2[ isdat],0) || nolevs == comtrill_1.maxlev)) { -#line 6549 "" +#line 6601 "" *islhgt = nolevs + iupdn + ivoff; /* Save height & idcode if top voice and slur start */ -#line 6553 "" +#line 6605 "" if (commvl_1.ivx == commvl_1.ivmx[*nv + commvl_1.nvmx[*nv - 1] * 24 - 25] && *islhgt > comsln_1.is1n1) { -#line 6554 "" +#line 6606 "" comsln_1.is1n1 = *islhgt; -#line 6555 "" +#line 6607 "" comsln_1.is2n1 = idcode; -#line 6556 "" +#line 6608 "" } -#line 6557 "" +#line 6609 "" } -#line 6558 "" +#line 6610 "" if ((real) ihoff != 0.f) { -#line 6559 "" +#line 6611 "" shift = ihoff * .1f; /* Writing concatenation */ -#line 6560 "" +#line 6612 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6560 "" +#line 6612 "" i__4[1] = 1, a__2[1] = "{"; -#line 6560 "" +#line 6612 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6561 "" +#line 6613 "" ++lnote; -#line 6562 "" +#line 6614 "" lform = lfmt1_(&shift); -#line 6563 "" +#line 6615 "" i__2 = lnote; -#line 6563 "" +#line 6615 "" ici__1.icierr = 0; -#line 6563 "" +#line 6615 "" ici__1.icirnum = 1; -#line 6563 "" +#line 6615 "" ici__1.icirlen = lnote + lform - i__2; -#line 6563 "" +#line 6615 "" ici__1.iciunit = notexq + i__2; /* Writing concatenation */ -#line 6563 "" +#line 6615 "" i__3[0] = 2, a__1[0] = "(f"; -#line 6563 "" +#line 6615 "" i__6 = lform + 48; -#line 6563 "" +#line 6615 "" chax_(ch__1, (ftnlen)1, &i__6); -#line 6563 "" +#line 6615 "" i__3[1] = 1, a__1[1] = ch__1; -#line 6563 "" +#line 6615 "" i__3[2] = 3, a__1[2] = ".1)"; -#line 6563 "" +#line 6615 "" ici__1.icifmt = (s_cat(ch__2, a__1, i__3, &c__3, (ftnlen) 6), ch__2); -#line 6563 "" +#line 6615 "" s_wsfi(&ici__1); -#line 6563 "" +#line 6615 "" do_fio(&c__1, (char *)&shift, (ftnlen)sizeof(real)); -#line 6563 "" +#line 6615 "" e_wsfi(); -#line 6565 "" +#line 6617 "" lnote += lform; /* Writing concatenation */ -#line 6566 "" +#line 6618 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6566 "" +#line 6618 "" i__4[1] = 1, a__2[1] = "}"; -#line 6566 "" +#line 6618 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6567 "" +#line 6619 "" ++lnote; -#line 6568 "" +#line 6620 "" } -#line 6569 "" +#line 6621 "" addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80); /* Zero out ip1 to avoid problems if slur goes to next input blk. */ -#line 6573 "" +#line 6625 "" setbits_(&isdata, &c__8, &c__3, &c__0); /* Set slur-on data for midi. Only treat null-index slurs and ps ties for now. */ -#line 6577 "" +#line 6629 "" if (commidi_1.ismidi && idcode == 32) { /* levson(midchan(iv,kv)) = nolevs */ /* 130316 */ /* levson(midchan(iv,kv)) = nolevs-iTransAmt(instno(iv)) */ -#line 6581 "" +#line 6633 "" comslm_1.levson[commidi_1.midchan[*iv + *kv * 24 - 25]] = nolevs + commvel_1.miditran[cominsttrans_1.instno[ *iv - 1] - 1]; -#line 6582 "" +#line 6634 "" if (settie) { -#line 6582 "" +#line 6634 "" comslm_1.dbltie = TRUE_; -#line 6582 "" +#line 6634 "" } /* Only way settie=T is if we just set a tie ending. So there's also a slur */ /* start here, so set a flag telling addmidi not to zero out levson */ -#line 6587 "" +#line 6639 "" } -#line 6588 "" +#line 6640 "" } else { /* Slur is ending. Back thru list to find starting slur */ -#line 6592 "" +#line 6644 "" for (j = isdat - 1; j >= 1; --j) { -#line 6593 "" +#line 6645 "" if (*iv == igetbits_(&isdat1[j], &c__5, &c__13) && *kv == igetbits_(&isdat1[j], &c__1, &c__12) + 1) { -#line 6595 "" +#line 6647 "" if (idcode == igetbits_(&isdat1[j], &c__7, &c__19)) { -#line 6596 "" +#line 6648 "" comslur_1.ndxslur = igetbits_(&isdat1[j], &c__4, & c__28) + (igetbits_(&isdat1[j], &c__1, & c__18) << 4); /* 080531 Allow >16 slurs */ -#line 6601 "" +#line 6653 "" if (bit_test(isdat1[j],27)) { -#line 6601 "" +#line 6653 "" *(unsigned char *)slurudq = 'u'; -#line 6601 "" +#line 6653 "" } -#line 6602 "" +#line 6654 "" goto L4; -#line 6603 "" +#line 6655 "" } -#line 6604 "" +#line 6656 "" } -#line 6605 "" +#line 6657 "" /* L3: */ -#line 6605 "" +#line 6657 "" } -#line 6606 "" - s_wsle(&io___485); -#line 6606 "" +#line 6658 "" + s_wsle(&io___486); +#line 6658 "" do_lio(&c__9, &c__1, "Bad place in doslur", (ftnlen)19); -#line 6606 "" +#line 6658 "" e_wsle(); -#line 6607 "" +#line 6659 "" stop1_(); -#line 6608 "" +#line 6660 "" L4: -#line 6609 "" +#line 6661 "" if (nolevs == 0 || nolevs > 60) { /* Ending is on a rest, reset nolevs to default starting height */ -#line 6613 "" +#line 6665 "" nolevs = igetbits_(&isdat2[j], &c__7, &c__19); -#line 6614 "" +#line 6666 "" } -#line 6615 "" +#line 6667 "" if (bit_test(isdat3[isdat],0)) { /* Deal with \curve or \midslur */ -#line 6619 "" +#line 6671 "" imid = igetbits_(&isdat3[isdat], &c__6, &c__2) - 32; /* Remember, only dealing with non-ps slurs */ @@ -15807,528 +15899,528 @@ L4: /* if (slurudq .eq. 'd') imid = -imid */ /* 3/8/03 added the following */ -#line 6628 "" +#line 6680 "" if (*(unsigned char *)slurudq == 'd') { -#line 6628 "" +#line 6680 "" imid = -abs(imid); -#line 6628 "" +#line 6680 "" } -#line 6630 "" +#line 6682 "" if (bit_test(isdat3[isdat],1)) { /* Writing concatenation */ -#line 6631 "" +#line 6683 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6631 "" +#line 6683 "" i__4[0] = 1, a__2[0] = ch__1; -#line 6631 "" +#line 6683 "" i__4[1] = 5, a__2[1] = "curve"; -#line 6631 "" +#line 6683 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6632 "" +#line 6684 "" lnote = 6; -#line 6633 "" +#line 6685 "" } else { /* Writing concatenation */ -#line 6634 "" +#line 6686 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6634 "" +#line 6686 "" i__4[0] = 1, a__2[0] = ch__1; -#line 6634 "" +#line 6686 "" i__4[1] = 7, a__2[1] = "midslur"; -#line 6634 "" +#line 6686 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6635 "" +#line 6687 "" lnote = 8; -#line 6636 "" +#line 6688 "" } -#line 6637 "" +#line 6689 "" if (imid < 0 || imid > 9) { /* Need brackets */ /* Writing concatenation */ -#line 6641 "" +#line 6693 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6641 "" +#line 6693 "" i__4[1] = 1, a__2[1] = "{"; -#line 6641 "" +#line 6693 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6642 "" +#line 6694 "" ++lnote; -#line 6643 "" +#line 6695 "" if (imid < -9) { -#line 6644 "" +#line 6696 "" i__2 = lnote; -#line 6644 "" +#line 6696 "" ici__1.icierr = 0; -#line 6644 "" +#line 6696 "" ici__1.icirnum = 1; -#line 6644 "" +#line 6696 "" ici__1.icirlen = lnote + 3 - i__2; -#line 6644 "" +#line 6696 "" ici__1.iciunit = notexq + i__2; -#line 6644 "" +#line 6696 "" ici__1.icifmt = "(i3)"; -#line 6644 "" +#line 6696 "" s_wsfi(&ici__1); -#line 6644 "" +#line 6696 "" do_fio(&c__1, (char *)&imid, (ftnlen)sizeof( integer)); -#line 6644 "" +#line 6696 "" e_wsfi(); -#line 6645 "" +#line 6697 "" lnote += 3; -#line 6646 "" +#line 6698 "" } else if (imid < 0 || imid > 9) { -#line 6647 "" +#line 6699 "" i__2 = lnote; -#line 6647 "" +#line 6699 "" ici__1.icierr = 0; -#line 6647 "" +#line 6699 "" ici__1.icirnum = 1; -#line 6647 "" +#line 6699 "" ici__1.icirlen = lnote + 2 - i__2; -#line 6647 "" +#line 6699 "" ici__1.iciunit = notexq + i__2; -#line 6647 "" +#line 6699 "" ici__1.icifmt = "(i2)"; -#line 6647 "" +#line 6699 "" s_wsfi(&ici__1); -#line 6647 "" +#line 6699 "" do_fio(&c__1, (char *)&imid, (ftnlen)sizeof( integer)); -#line 6647 "" +#line 6699 "" e_wsfi(); -#line 6648 "" +#line 6700 "" lnote += 2; -#line 6649 "" +#line 6701 "" } else { -#line 6650 "" +#line 6702 "" i__2 = lnote; -#line 6650 "" +#line 6702 "" ici__1.icierr = 0; -#line 6650 "" +#line 6702 "" ici__1.icirnum = 1; -#line 6650 "" +#line 6702 "" ici__1.icirlen = lnote + 1 - i__2; -#line 6650 "" +#line 6702 "" ici__1.iciunit = notexq + i__2; -#line 6650 "" +#line 6702 "" ici__1.icifmt = "(i1)"; -#line 6650 "" +#line 6702 "" s_wsfi(&ici__1); -#line 6650 "" +#line 6702 "" do_fio(&c__1, (char *)&imid, (ftnlen)sizeof( integer)); -#line 6650 "" +#line 6702 "" e_wsfi(); -#line 6651 "" +#line 6703 "" ++lnote; -#line 6652 "" +#line 6704 "" } /* Writing concatenation */ -#line 6653 "" +#line 6705 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6653 "" +#line 6705 "" i__4[1] = 1, a__2[1] = "}"; -#line 6653 "" +#line 6705 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6654 "" +#line 6706 "" ++lnote; -#line 6655 "" +#line 6707 "" } else { /* 1=<imid=<9, no brackets */ /* Writing concatenation */ -#line 6659 "" +#line 6711 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6659 "" +#line 6711 "" *(unsigned char *)&ch__1[0] = imid + 48; -#line 6659 "" +#line 6711 "" i__4[1] = 1, a__2[1] = ch__1; -#line 6659 "" +#line 6711 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6660 "" +#line 6712 "" ++lnote; -#line 6661 "" +#line 6713 "" } -#line 6662 "" +#line 6714 "" if (bit_test(isdat3[isdat],1)) { /* \curve; 3 args */ /* Writing concatenation */ -#line 6666 "" +#line 6718 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6666 "" +#line 6718 "" *(unsigned char *)&ch__1[0] = igetbits_(&isdat3[isdat] , &c__3, &c__8) + 48; -#line 6666 "" +#line 6718 "" i__4[1] = 1, a__2[1] = ch__1; -#line 6666 "" +#line 6718 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); /* Writing concatenation */ -#line 6668 "" +#line 6720 "" i__4[0] = lnote + 1, a__2[0] = notexq; -#line 6668 "" +#line 6720 "" *(unsigned char *)&ch__1[0] = igetbits_(&isdat3[isdat] , &c__3, &c__11) + 48; -#line 6668 "" +#line 6720 "" i__4[1] = 1, a__2[1] = ch__1; -#line 6668 "" +#line 6720 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6670 "" +#line 6722 "" lnote += 2; -#line 6671 "" +#line 6723 "" } -#line 6672 "" +#line 6724 "" addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen) 80); -#line 6673 "" +#line 6725 "" } /* Shift slur ending for stem on any note? */ -#line 6677 "" +#line 6729 "" if (! stemup && *(unsigned char *)slurudq == 'd' && *tno < 63.f) { -#line 6677 "" +#line 6729 "" ihoff += -8; -#line 6677 "" +#line 6729 "" } -#line 6679 "" +#line 6731 "" if (bit_test(isdat2[isdat],3)) { /* Shift ending for tie spacing */ -#line 6683 "" +#line 6735 "" if (*(unsigned char *)slurudq == 'u') { -#line 6684 "" +#line 6736 "" ihoff += -8; -#line 6685 "" +#line 6737 "" --ivoff; -#line 6686 "" +#line 6738 "" } else if (*(unsigned char *)slurudq == 'd') { -#line 6687 "" +#line 6739 "" ++ivoff; -#line 6688 "" +#line 6740 "" if (stemup || *tno > 63.f) { -#line 6688 "" +#line 6740 "" ihoff += -8; -#line 6688 "" +#line 6740 "" } -#line 6689 "" +#line 6741 "" } -#line 6690 "" +#line 6742 "" } -#line 6691 "" +#line 6743 "" if (iscrd) { /* Shift termination for shifted notehead? */ -#line 6695 "" +#line 6747 "" if (bit_test(isdat2[isdat],1)) { /* Left-shifted chord notehead. ASSUME downstem. */ -#line 6699 "" +#line 6751 "" if (nolevs == comtrill_1.minlev && *(unsigned char *) slurudq == 'd') { -#line 6700 "" +#line 6752 "" ihoff += -2; -#line 6701 "" +#line 6753 "" } else { -#line 6702 "" +#line 6754 "" ihoff += -10; -#line 6703 "" +#line 6755 "" } -#line 6704 "" +#line 6756 "" } else if (bit_test(isdat2[isdat],2)) { /* Right shifted chord notehead. ASSUME upstem. */ -#line 6708 "" +#line 6760 "" if (nolevs == comtrill_1.maxlev && *(unsigned char *) slurudq == 'u') { -#line 6709 "" +#line 6761 "" ihoff += 2; -#line 6710 "" +#line 6762 "" } else { -#line 6711 "" +#line 6763 "" ihoff += 10; -#line 6712 "" +#line 6764 "" } -#line 6713 "" +#line 6765 "" } -#line 6714 "" +#line 6766 "" } -#line 6715 "" +#line 6767 "" if (ihoff == 0) { /* Writing concatenation */ -#line 6716 "" +#line 6768 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6716 "" +#line 6768 "" i__4[0] = 1, a__2[0] = ch__1; -#line 6716 "" +#line 6768 "" i__4[1] = 5, a__2[1] = "tslur"; -#line 6716 "" +#line 6768 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6717 "" +#line 6769 "" lnote = 6; -#line 6718 "" +#line 6770 "" } else { /* Shift needed */ /* Writing concatenation */ -#line 6722 "" +#line 6774 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6722 "" +#line 6774 "" i__4[0] = 1, a__2[0] = ch__1; -#line 6722 "" +#line 6774 "" i__4[1] = 2, a__2[1] = "ts"; -#line 6722 "" +#line 6774 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6723 "" +#line 6775 "" lnote = 3; -#line 6724 "" +#line 6776 "" } /* Print 23-ndxslur */ /* 5/25/08 Allow 14 slurs (???????????) */ -#line 6729 "" +#line 6781 "" if (23 - comslur_1.ndxslur < 10) { /* Writing concatenation */ -#line 6730 "" +#line 6782 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6730 "" +#line 6782 "" i__2 = 71 - comslur_1.ndxslur; -#line 6730 "" +#line 6782 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6730 "" +#line 6782 "" i__4[1] = 1, a__2[1] = ch__1; -#line 6730 "" +#line 6782 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6731 "" +#line 6783 "" ++lnote; -#line 6732 "" +#line 6784 "" } else if (23 - comslur_1.ndxslur < 20) { /* Writing concatenation */ -#line 6733 "" +#line 6785 "" i__5[0] = lnote, a__3[0] = notexq; -#line 6733 "" +#line 6785 "" i__5[1] = 2, a__3[1] = "{1"; -#line 6733 "" +#line 6785 "" i__2 = 61 - comslur_1.ndxslur; -#line 6733 "" +#line 6785 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6733 "" +#line 6785 "" i__5[2] = 1, a__3[2] = ch__1; -#line 6733 "" +#line 6785 "" i__5[3] = 1, a__3[3] = "}"; -#line 6733 "" +#line 6785 "" s_cat(notexq, a__3, i__5, &c__4, (ftnlen)79); -#line 6734 "" +#line 6786 "" lnote += 4; -#line 6735 "" +#line 6787 "" } else { /* Writing concatenation */ -#line 6736 "" +#line 6788 "" i__5[0] = lnote, a__3[0] = notexq; -#line 6736 "" +#line 6788 "" i__5[1] = 2, a__3[1] = "{2"; -#line 6736 "" +#line 6788 "" i__2 = 51 - comslur_1.ndxslur; -#line 6736 "" +#line 6788 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6736 "" +#line 6788 "" i__5[2] = 1, a__3[2] = ch__1; -#line 6736 "" +#line 6788 "" i__5[3] = 1, a__3[3] = "}"; -#line 6736 "" +#line 6788 "" s_cat(notexq, a__3, i__5, &c__4, (ftnlen)79); -#line 6737 "" +#line 6789 "" lnote += 4; -#line 6738 "" +#line 6790 "" } -#line 6739 "" +#line 6791 "" if (bit_test(*iornq,11) || bit_test(*iornq,12)) { /* Raise or lower slur by one unit provided . or _ is on same side as slur */ -#line 6743 "" +#line 6795 "" ivoffinc = 0; -#line 6744 "" +#line 6796 "" if (stemup && *(unsigned char *)slurudq == 'd' || ! stemup && *(unsigned char *)slurudq == 'u') { -#line 6746 "" +#line 6798 "" if (stemup) { -#line 6747 "" +#line 6799 "" ivoffinc = -1; -#line 6748 "" +#line 6800 "" } else { -#line 6749 "" +#line 6801 "" ivoffinc = 1; -#line 6750 "" +#line 6802 "" } -#line 6751 "" +#line 6803 "" if ((stemup && *nolev >= *ncm - 2 || ! stemup && * nolev <= *ncm + 2) && (i__2 = *ncm - *nolev, abs(i__2)) % 2 == 0) { -#line 6751 "" +#line 6803 "" ivoffinc <<= 1; -#line 6751 "" +#line 6803 "" } -#line 6754 "" +#line 6806 "" } -#line 6755 "" +#line 6807 "" ivoff += ivoffinc; -#line 6756 "" +#line 6808 "" } -#line 6757 "" +#line 6809 "" if (idcode == 1 && tmove) { /* t-slur height adjustment */ -#line 6761 "" +#line 6813 "" iupdn = 1; -#line 6762 "" +#line 6814 "" if (*(unsigned char *)slurudq == 'd') { -#line 6762 "" +#line 6814 "" iupdn = -1; -#line 6762 "" +#line 6814 "" } -#line 6763 "" +#line 6815 "" } -#line 6764 "" +#line 6816 "" i__2 = nolevs + iupdn + ivoff; -#line 6764 "" +#line 6816 "" notefq_(noteq, &lnoten, &i__2, ncm, (ftnlen)8); -#line 6765 "" +#line 6817 "" if (*(unsigned char *)slurudq == 'u' && (! bit_test(isdat2[ isdat],0) || nolevs == comtrill_1.maxlev)) { -#line 6767 "" +#line 6819 "" *islhgt = nolevs + iupdn + ivoff; /* If topvoice, upslur, and idcode checks, no more need to keep hgt for barno. */ -#line 6771 "" +#line 6823 "" if (commvl_1.ivx == commvl_1.ivmx[*nv + commvl_1.nvmx[*nv - 1] * 24 - 25] && comsln_1.is1n1 > 0) { -#line 6772 "" +#line 6824 "" if (idcode == comsln_1.is2n1) { -#line 6772 "" +#line 6824 "" comsln_1.is1n1 = 0; -#line 6772 "" +#line 6824 "" } -#line 6773 "" +#line 6825 "" } -#line 6774 "" +#line 6826 "" } /* Writing concatenation */ -#line 6775 "" +#line 6827 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6775 "" +#line 6827 "" i__4[1] = lnoten, a__2[1] = noteq; -#line 6775 "" +#line 6827 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6776 "" +#line 6828 "" lnote += lnoten; -#line 6777 "" +#line 6829 "" if (ihoff != 0) { -#line 6778 "" +#line 6830 "" shift = ihoff * .1f; /* Writing concatenation */ -#line 6779 "" +#line 6831 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6779 "" +#line 6831 "" i__4[1] = 1, a__2[1] = "{"; -#line 6779 "" +#line 6831 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6780 "" +#line 6832 "" ++lnote; -#line 6781 "" +#line 6833 "" lform = lfmt1_(&shift); -#line 6782 "" +#line 6834 "" i__2 = lnote; -#line 6782 "" +#line 6834 "" ici__1.icierr = 0; -#line 6782 "" +#line 6834 "" ici__1.icirnum = 1; -#line 6782 "" +#line 6834 "" ici__1.icirlen = lnote + lform - i__2; -#line 6782 "" +#line 6834 "" ici__1.iciunit = notexq + i__2; /* Writing concatenation */ -#line 6782 "" +#line 6834 "" i__3[0] = 2, a__1[0] = "(f"; -#line 6782 "" +#line 6834 "" i__6 = lform + 48; -#line 6782 "" +#line 6834 "" chax_(ch__1, (ftnlen)1, &i__6); -#line 6782 "" +#line 6834 "" i__3[1] = 1, a__1[1] = ch__1; -#line 6782 "" +#line 6834 "" i__3[2] = 3, a__1[2] = ".1)"; -#line 6782 "" +#line 6834 "" ici__1.icifmt = (s_cat(ch__2, a__1, i__3, &c__3, (ftnlen) 6), ch__2); -#line 6782 "" +#line 6834 "" s_wsfi(&ici__1); -#line 6782 "" +#line 6834 "" do_fio(&c__1, (char *)&shift, (ftnlen)sizeof(real)); -#line 6782 "" +#line 6834 "" e_wsfi(); -#line 6784 "" +#line 6836 "" lnote += lform; /* Writing concatenation */ -#line 6785 "" +#line 6837 "" i__4[0] = lnote, a__2[0] = notexq; -#line 6785 "" +#line 6837 "" i__4[1] = 1, a__2[1] = "}"; -#line 6785 "" +#line 6837 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 6786 "" +#line 6838 "" ++lnote; -#line 6787 "" +#line 6839 "" } -#line 6788 "" +#line 6840 "" addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80); /* Clear the bit from list of slurs in use */ -#line 6792 "" +#line 6844 "" comslur_1.listslur = bit_clear(comslur_1.listslur, comslur_1.ndxslur); /* Zero out the entire strings for start and stop */ -#line 6796 "" +#line 6848 "" isdata = 0; -#line 6797 "" +#line 6849 "" isdat2[isdat] = 0; -#line 6798 "" +#line 6850 "" isdat1[j] = 0; -#line 6799 "" +#line 6851 "" isdat2[j] = 0; -#line 6800 "" +#line 6852 "" isdat3[isdat] = 0; /* Set midi info for slur ending */ -#line 6804 "" +#line 6856 "" if (commidi_1.ismidi && idcode == 32) { -#line 6805 "" +#line 6857 "" icm = commidi_1.midchan[*iv + *kv * 24 - 25]; -#line 6806 "" +#line 6858 "" if (comslm_1.slmon[icm]) { /* if (nolevs.eq.levson(icm) .and. iand(7,nacc).eq.0) then */ /* 130316 */ /* if (nolevs-iTransAmt(instno(iv)).eq.levson(icm) .and. */ -#line 6810 "" +#line 6862 "" if (nolevs + commvel_1.miditran[cominsttrans_1.instno[ *iv - 1] - 1] == comslm_1.levson[icm] && (7 & *nacc) == 0) { @@ -16338,73 +16430,73 @@ L4: /* levsoff(icm) = nolevs */ /* 130316 */ /* levsoff(icm) = nolevs-iTransAmt(instno(iv)) */ -#line 6818 "" +#line 6870 "" comslm_1.levsoff[icm] = nolevs + commvel_1.miditran[cominsttrans_1.instno[* iv - 1] - 1]; -#line 6819 "" +#line 6871 "" settie = TRUE_; -#line 6820 "" +#line 6872 "" } else { -#line 6821 "" +#line 6873 "" comslm_1.levsoff[icm] = 0; -#line 6822 "" +#line 6874 "" comslm_1.levson[icm] = 0; -#line 6823 "" +#line 6875 "" comslm_1.slmon[icm] = FALSE_; -#line 6824 "" +#line 6876 "" } -#line 6825 "" +#line 6877 "" } -#line 6826 "" +#line 6878 "" } -#line 6827 "" +#line 6879 "" } -#line 6828 "" +#line 6880 "" isdat1[isdat] = isdata; -#line 6829 "" +#line 6881 "" } -#line 6830 "" +#line 6882 "" /* L1: */ -#line 6830 "" +#line 6882 "" } /* Clear and collapse the slur data list */ -#line 6834 "" +#line 6886 "" numdrop = 0; -#line 6835 "" +#line 6887 "" i__1 = *nsdat; -#line 6835 "" +#line 6887 "" for (isdat = 1; isdat <= i__1; ++isdat) { -#line 6836 "" +#line 6888 "" if (isdat1[isdat] == 0) { -#line 6837 "" +#line 6889 "" ++numdrop; -#line 6838 "" +#line 6890 "" } else if (numdrop > 0) { -#line 6839 "" +#line 6891 "" isdat1[isdat - numdrop] = isdat1[isdat]; -#line 6840 "" +#line 6892 "" isdat2[isdat - numdrop] = isdat2[isdat]; -#line 6841 "" +#line 6893 "" isdat3[isdat - numdrop] = isdat3[isdat]; -#line 6842 "" +#line 6894 "" isdat1[isdat] = 0; -#line 6843 "" +#line 6895 "" isdat2[isdat] = 0; -#line 6844 "" +#line 6896 "" isdat3[isdat] = 0; -#line 6845 "" +#line 6897 "" } -#line 6846 "" +#line 6898 "" /* L2: */ -#line 6846 "" +#line 6898 "" } -#line 6847 "" +#line 6899 "" *nsdat -= numdrop; /* call report(nsdat,isdat1,isdat2) */ -#line 6849 "" +#line 6901 "" return 0; } /* doslur_ */ @@ -16435,102 +16527,102 @@ L4: /* iddot = 0 for single dot, 1 for double */ -#line 6857 "" +#line 6909 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6857 "" +#line 6909 "" *(unsigned char *)sq = *(unsigned char *)&ch__1[0]; -#line 6858 "" +#line 6910 "" lfmtup = lfmt1_(updot); -#line 6859 "" +#line 6911 "" lfmtrt = lfmt1_(rtdot); -#line 6860 "" +#line 6912 "" ici__1.icierr = 0; -#line 6860 "" +#line 6912 "" ici__1.icirnum = 1; -#line 6860 "" +#line 6912 "" ici__1.icirlen = 80; -#line 6860 "" +#line 6912 "" ici__1.iciunit = notexq; /* Writing concatenation */ -#line 6860 "" +#line 6912 "" i__1[0] = 6, a__1[0] = "(a37,f"; -#line 6860 "" +#line 6912 "" i__2 = lfmtup + 48; -#line 6860 "" +#line 6912 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6860 "" +#line 6912 "" i__1[1] = 1, a__1[1] = ch__1; -#line 6860 "" +#line 6912 "" i__1[2] = 7, a__1[2] = ".1,a2,f"; -#line 6860 "" +#line 6912 "" i__3 = lfmtrt + 48; -#line 6860 "" +#line 6912 "" chax_(ch__3, (ftnlen)1, &i__3); -#line 6860 "" +#line 6912 "" i__1[3] = 1, a__1[3] = ch__3; -#line 6860 "" +#line 6912 "" i__1[4] = 7, a__1[4] = ".1,a15)"; -#line 6860 "" +#line 6912 "" ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__5, (ftnlen)22), ch__2); -#line 6860 "" +#line 6912 "" s_wsfi(&ici__1); /* Writing concatenation */ -#line 6860 "" +#line 6912 "" i__4[0] = 1, a__2[0] = sq; -#line 6860 "" +#line 6912 "" i__4[1] = 12, a__2[1] = "makeatletter"; -#line 6860 "" +#line 6912 "" i__4[2] = 1, a__2[2] = sq; -#line 6860 "" +#line 6912 "" i__4[3] = 3, a__2[3] = "def"; -#line 6860 "" +#line 6912 "" i__4[4] = 1, a__2[4] = sq; -#line 6860 "" +#line 6912 "" i__4[5] = 12, a__2[5] = "C@Point#1#2{"; -#line 6860 "" +#line 6912 "" i__4[6] = 1, a__2[6] = sq; -#line 6860 "" +#line 6912 "" i__4[7] = 6, a__2[7] = "PMXpt{"; -#line 6860 "" +#line 6912 "" s_cat(ch__4, a__2, i__4, &c__8, (ftnlen)37); -#line 6860 "" +#line 6912 "" do_fio(&c__1, ch__4, (ftnlen)37); -#line 6860 "" +#line 6912 "" do_fio(&c__1, (char *)&(*updot), (ftnlen)sizeof(real)); -#line 6860 "" +#line 6912 "" do_fio(&c__1, "}{", (ftnlen)2); -#line 6860 "" +#line 6912 "" do_fio(&c__1, (char *)&(*rtdot), (ftnlen)sizeof(real)); /* Writing concatenation */ -#line 6860 "" +#line 6912 "" i__5[0] = 1, a__3[0] = "}"; -#line 6860 "" +#line 6912 "" i__6 = *iddot + 48; -#line 6860 "" +#line 6912 "" chax_(ch__6, (ftnlen)1, &i__6); -#line 6860 "" +#line 6912 "" i__5[1] = 1, a__3[1] = ch__6; -#line 6860 "" +#line 6912 "" i__5[2] = 1, a__3[2] = "}"; -#line 6860 "" +#line 6912 "" i__5[3] = 1, a__3[3] = sq; -#line 6860 "" +#line 6912 "" i__5[4] = 11, a__3[4] = "makeatother"; -#line 6860 "" +#line 6912 "" s_cat(ch__5, a__3, i__5, &c__5, (ftnlen)15); -#line 6860 "" +#line 6912 "" do_fio(&c__1, ch__5, (ftnlen)15); -#line 6860 "" +#line 6912 "" e_wsfi(); /* Example of string just created: */ /* \makeatletter\def\C@Point#1#2{\PMXpt{.5}{.5}}\makeatother\ */ -#line 6869 "" +#line 6921 "" lnote = lfmtup + 54 + lfmtrt; -#line 6870 "" +#line 6922 "" addstr_(notexq, &lnote, soutq, lsout, lnote, (ftnlen)80); -#line 6871 "" +#line 6923 "" return 0; } /* dotmov_ */ @@ -16559,165 +16651,165 @@ L4: static logical tronly; /* Fortran I/O blocks */ - static cilist io___495 = { 0, 6, 0, 0, 0 }; + static cilist io___496 = { 0, 6, 0, 0, 0 }; -#line 6881 "" +#line 6933 "" i__1 = comtrill_1.ntrill; -#line 6881 "" +#line 6933 "" for (itr = 1; itr <= i__1; ++itr) { -#line 6882 "" +#line 6934 "" if (*iv == comtrill_1.ivtrill[itr - 1] && *ip == comtrill_1.iptrill[ itr - 1]) { -#line 6882 "" +#line 6934 "" goto L2; -#line 6882 "" +#line 6934 "" } -#line 6883 "" +#line 6935 "" /* L1: */ -#line 6883 "" +#line 6935 "" } -#line 6884 "" - s_wsle(&io___495); -#line 6884 "" +#line 6936 "" + s_wsle(&io___496); +#line 6936 "" do_lio(&c__9, &c__1, "Problem in dotrill. Call Dr. Don", (ftnlen)33); -#line 6884 "" +#line 6936 "" e_wsle(); -#line 6885 "" +#line 6937 "" s_stop("", (ftnlen)0); -#line 6886 "" +#line 6938 "" L2: -#line 6887 "" +#line 6939 "" tronly = comtrill_1.xnsktr[itr - 1] < .01f; -#line 6888 "" +#line 6940 "" if (tronly) { /* Writing concatenation */ -#line 6889 "" +#line 6941 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6889 "" +#line 6941 "" i__2[0] = 1, a__1[0] = ch__1; -#line 6889 "" +#line 6941 "" i__2[1] = 9, a__1[1] = "zcharnote"; -#line 6889 "" +#line 6941 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 6890 "" +#line 6942 "" *lnote = 10; -#line 6891 "" +#line 6943 "" } else if (bit_test(*iornq,7)) { /* Writing concatenation */ -#line 6892 "" +#line 6944 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6892 "" +#line 6944 "" i__2[0] = 1, a__1[0] = ch__1; -#line 6892 "" +#line 6944 "" i__2[1] = 6, a__1[1] = "Trille"; -#line 6892 "" +#line 6944 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 6893 "" +#line 6945 "" *lnote = 7; -#line 6894 "" +#line 6946 "" } else { /* Writing concatenation */ -#line 6895 "" +#line 6947 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6895 "" +#line 6947 "" i__2[0] = 1, a__1[0] = ch__1; -#line 6895 "" +#line 6947 "" i__2[1] = 6, a__1[1] = "trille"; -#line 6895 "" +#line 6947 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 6896 "" +#line 6948 "" *lnote = 7; -#line 6897 "" +#line 6949 "" } /* Writing concatenation */ -#line 6898 "" +#line 6950 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 6898 "" +#line 6950 "" i__3[1] = *lnoten, a__2[1] = noteq; -#line 6898 "" +#line 6950 "" i__3[2] = 1, a__2[2] = "{"; -#line 6898 "" +#line 6950 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79); -#line 6899 "" +#line 6951 "" *lnote = *lnote + *lnoten + 1; /* Write trill duration to nearest tenth of a noteskip */ -#line 6903 "" +#line 6955 "" if (tronly) { /* Writing concatenation */ -#line 6904 "" +#line 6956 "" i__3[0] = *lnote, a__2[0] = notexq; -#line 6904 "" +#line 6956 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6904 "" +#line 6956 "" i__3[1] = 1, a__2[1] = ch__1; -#line 6904 "" +#line 6956 "" i__3[2] = 6, a__2[2] = "it tr}"; -#line 6904 "" +#line 6956 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79); -#line 6905 "" +#line 6957 "" *lnote += 7; -#line 6906 "" +#line 6958 "" return 0; -#line 6907 "" +#line 6959 "" } -#line 6908 "" +#line 6960 "" if (comtrill_1.xnsktr[itr - 1] < .95f) { -#line 6909 "" +#line 6961 "" nfmt = 2; -#line 6910 "" +#line 6962 "" } else if (comtrill_1.xnsktr[itr - 1] < 9.95f) { -#line 6911 "" +#line 6963 "" nfmt = 3; -#line 6912 "" +#line 6964 "" } else { -#line 6913 "" +#line 6965 "" nfmt = 4; -#line 6914 "" +#line 6966 "" } -#line 6915 "" +#line 6967 "" i__1 = *lnote; -#line 6915 "" +#line 6967 "" ici__1.icierr = 0; -#line 6915 "" +#line 6967 "" ici__1.icirnum = 1; -#line 6915 "" +#line 6967 "" ici__1.icirlen = *lnote + nfmt - i__1; -#line 6915 "" +#line 6967 "" ici__1.iciunit = notexq + i__1; /* Writing concatenation */ -#line 6915 "" +#line 6967 "" i__3[0] = 2, a__2[0] = "(f"; -#line 6915 "" +#line 6967 "" i__4 = nfmt + 48; -#line 6915 "" +#line 6967 "" chax_(ch__1, (ftnlen)1, &i__4); -#line 6915 "" +#line 6967 "" i__3[1] = 1, a__2[1] = ch__1; -#line 6915 "" +#line 6967 "" i__3[2] = 3, a__2[2] = ".1)"; -#line 6915 "" +#line 6967 "" ici__1.icifmt = (s_cat(ch__2, a__2, i__3, &c__3, (ftnlen)6), ch__2); -#line 6915 "" +#line 6967 "" s_wsfi(&ici__1); -#line 6915 "" +#line 6967 "" do_fio(&c__1, (char *)&comtrill_1.xnsktr[itr - 1], (ftnlen)sizeof(real)); -#line 6915 "" +#line 6967 "" e_wsfi(); -#line 6917 "" +#line 6969 "" *lnote += nfmt; /* Writing concatenation */ -#line 6918 "" +#line 6970 "" i__2[0] = *lnote, a__1[0] = notexq; -#line 6918 "" +#line 6970 "" i__2[1] = 1, a__1[1] = "}"; -#line 6918 "" +#line 6970 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 6919 "" +#line 6971 "" ++(*lnote); -#line 6920 "" +#line 6972 "" return 0; } /* dotrill_ */ @@ -16747,41 +16839,41 @@ L2: /* Only called to end slur started in dograce. */ -#line 6932 "" +#line 6984 "" shift = ! (*stemup) && ! (*upslur); -#line 6933 "" +#line 6985 "" if (! shift) { /* No shift needed */ /* Writing concatenation */ -#line 6937 "" +#line 6989 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6937 "" +#line 6989 "" i__1[0] = 1, a__1[0] = ch__1; -#line 6937 "" +#line 6989 "" i__1[1] = 5, a__1[1] = "tslur"; -#line 6937 "" +#line 6989 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 6938 "" +#line 6990 "" lnote = 6; -#line 6939 "" +#line 6991 "" } else { /* Shift needed */ /* Writing concatenation */ -#line 6943 "" +#line 6995 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 6943 "" +#line 6995 "" i__1[0] = 1, a__1[0] = ch__1; -#line 6943 "" +#line 6995 "" i__1[1] = 2, a__1[1] = "ts"; -#line 6943 "" +#line 6995 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 6944 "" +#line 6996 "" lnote = 3; -#line 6945 "" +#line 6997 "" } /* if (ndxslur .lt. 10) then */ /* notexq = notexq(1:lnote)//chax(48+ndxslur) */ @@ -16795,105 +16887,105 @@ L2: /* Print 23-ndxslur */ /* if (11-ndxslur .lt. 10) then */ -#line 6958 "" +#line 7010 "" if (23 - *ndxslur < 10) { /* notexq = notexq(1:lnote)//chax(59-ndxslur) */ /* Writing concatenation */ -#line 6960 "" +#line 7012 "" i__1[0] = lnote, a__1[0] = notexq; -#line 6960 "" +#line 7012 "" i__2 = 71 - *ndxslur; -#line 6960 "" +#line 7012 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6960 "" +#line 7012 "" i__1[1] = 1, a__1[1] = ch__1; -#line 6960 "" +#line 7012 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 6961 "" +#line 7013 "" ++lnote; -#line 6962 "" +#line 7014 "" } else if (23 - *ndxslur < 20) { /* notexq = notexq(1:lnote)//'{1'//chax(49-ndxslur)//'}' */ /* Writing concatenation */ -#line 6964 "" +#line 7016 "" i__3[0] = lnote, a__2[0] = notexq; -#line 6964 "" +#line 7016 "" i__3[1] = 2, a__2[1] = "{1"; -#line 6964 "" +#line 7016 "" i__2 = 61 - *ndxslur; -#line 6964 "" +#line 7016 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6964 "" +#line 7016 "" i__3[2] = 1, a__2[2] = ch__1; -#line 6964 "" +#line 7016 "" i__3[3] = 1, a__2[3] = "}"; -#line 6964 "" +#line 7016 "" s_cat(notexq, a__2, i__3, &c__4, (ftnlen)79); -#line 6965 "" +#line 7017 "" lnote += 4; -#line 6966 "" +#line 7018 "" } else { /* Writing concatenation */ -#line 6967 "" +#line 7019 "" i__3[0] = lnote, a__2[0] = notexq; -#line 6967 "" +#line 7019 "" i__3[1] = 2, a__2[1] = "{2"; -#line 6967 "" +#line 7019 "" i__2 = 51 - *ndxslur; -#line 6967 "" +#line 7019 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 6967 "" +#line 7019 "" i__3[2] = 1, a__2[2] = ch__1; -#line 6967 "" +#line 7019 "" i__3[3] = 1, a__2[3] = "}"; -#line 6967 "" +#line 7019 "" s_cat(notexq, a__2, i__3, &c__4, (ftnlen)79); -#line 6968 "" +#line 7020 "" lnote += 4; -#line 6969 "" +#line 7021 "" } -#line 6970 "" +#line 7022 "" i__2 = *nolev + *iupdn + *ivoff; -#line 6970 "" +#line 7022 "" notefq_(noteq, &lnoten, &i__2, ncm, (ftnlen)8); /* Writing concatenation */ -#line 6971 "" +#line 7023 "" i__1[0] = lnote, a__1[0] = notexq; -#line 6971 "" +#line 7023 "" i__1[1] = lnoten, a__1[1] = noteq; -#line 6971 "" +#line 7023 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 6972 "" +#line 7024 "" lnote += lnoten; -#line 6973 "" +#line 7025 "" if (shift) { -#line 6974 "" +#line 7026 "" if (*fontslur) { /* Writing concatenation */ -#line 6975 "" +#line 7027 "" i__1[0] = lnote, a__1[0] = notexq; -#line 6975 "" +#line 7027 "" i__1[1] = 5, a__1[1] = "{-.6}"; -#line 6975 "" +#line 7027 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 6976 "" +#line 7028 "" } else { /* Writing concatenation */ -#line 6977 "" +#line 7029 "" i__1[0] = lnote, a__1[0] = notexq; -#line 6977 "" +#line 7029 "" i__1[1] = 5, a__1[1] = "{-.8}"; -#line 6977 "" +#line 7029 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 6978 "" +#line 7030 "" } -#line 6979 "" +#line 7031 "" lnote += 5; -#line 6980 "" +#line 7032 "" } -#line 6981 "" +#line 7033 "" addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80); -#line 6982 "" +#line 7034 "" return 0; } /* endslur_ */ @@ -16928,40 +17020,40 @@ L2: static integer ibarnop; /* Fortran I/O blocks */ - static cilist io___505 = { 0, 6, 0, 0, 0 }; - static cilist io___508 = { 0, 19, 0, "(i6)", 0 }; - static cilist io___512 = { 0, 6, 0, "(1x,a)", 0 }; - static cilist io___513 = { 0, 15, 0, "(a)", 0 }; - static cilist io___516 = { 0, 6, 0, 0, 0 }; - static cilist io___517 = { 0, 15, 0, "(a)", 0 }; + static cilist io___506 = { 0, 6, 0, 0, 0 }; + static cilist io___509 = { 0, 19, 0, "(i6)", 0 }; + static cilist io___513 = { 0, 6, 0, "(1x,a)", 0 }; + static cilist io___514 = { 0, 15, 0, "(a)", 0 }; + static cilist io___517 = { 0, 6, 0, 0, 0 }; + static cilist io___518 = { 0, 15, 0, "(a)", 0 }; -#line 6994 "" +#line 7046 "" if (*iccount <= 78) { -#line 6995 "" +#line 7047 "" s_copy(outq, lineq, (ftnlen)78, (ftnlen)78); -#line 6996 "" +#line 7048 "" iposn = *iccount; -#line 6997 "" +#line 7049 "" } else { /* Writing concatenation */ -#line 6998 "" +#line 7050 "" i__1[0] = 4, a__1[0] = "... "; -#line 6998 "" +#line 7050 "" i__1[1] = 74, a__1[1] = lineq + 54; -#line 6998 "" +#line 7050 "" s_cat(outq, a__1, i__1, &c__2, (ftnlen)78); -#line 6999 "" +#line 7051 "" iposn = *iccount - 50; -#line 7000 "" +#line 7052 "" } -#line 7001 "" - s_wsle(&io___505); -#line 7001 "" +#line 7053 "" + s_wsle(&io___506); +#line 7053 "" e_wsle(); -#line 7002 "" +#line 7054 "" ibarnop = *ibarno; -#line 7003 "" +#line 7055 "" if (c1omget_1.linesinpmxmod == 0 || c1omget_1.nline > c1omget_1.line1pmxmod + c1omget_1.linesinpmxmod) { @@ -16969,299 +17061,299 @@ L2: /* nlinep = nline-linesinpmxmod */ /* Correct for comments not copied into buffer */ -#line 7010 "" +#line 7062 "" nlinep = truelinecount_1.linewcom[c1omget_1.nline - 1] - c1omget_1.linesinpmxmod; -#line 7011 "" +#line 7063 "" } else { /* Error is in include file */ -#line 7015 "" +#line 7067 "" ibarnop = 0; -#line 7016 "" +#line 7068 "" nlinep = c1omget_1.nline - c1omget_1.line1pmxmod + 1; -#line 7017 "" +#line 7069 "" printl_("ERROR in include file named above, description given below", (ftnlen)58); -#line 7019 "" +#line 7071 "" } -#line 7020 "" +#line 7072 "" o__1.oerr = 0; -#line 7020 "" +#line 7072 "" o__1.ounit = 19; -#line 7020 "" +#line 7072 "" o__1.ofnmlen = 11; -#line 7020 "" +#line 7072 "" o__1.ofnm = "pmxaerr.dat"; -#line 7020 "" +#line 7072 "" o__1.orl = 0; -#line 7020 "" +#line 7072 "" o__1.osta = 0; -#line 7020 "" +#line 7072 "" o__1.oacc = 0; -#line 7020 "" +#line 7072 "" o__1.ofm = 0; -#line 7020 "" +#line 7072 "" o__1.oblnk = 0; -#line 7020 "" +#line 7072 "" f_open(&o__1); -#line 7021 "" - s_wsfe(&io___508); -#line 7021 "" +#line 7073 "" + s_wsfe(&io___509); +#line 7073 "" do_fio(&c__1, (char *)&nlinep, (ftnlen)sizeof(integer)); -#line 7021 "" +#line 7073 "" e_wsfe(); -#line 7022 "" +#line 7074 "" cl__1.cerr = 0; -#line 7022 "" +#line 7074 "" cl__1.cunit = 19; -#line 7022 "" +#line 7074 "" cl__1.csta = 0; -#line 7022 "" +#line 7074 "" f_clos(&cl__1); /* Computing MAX */ -#line 7023 "" +#line 7075 "" r__1 = ibarnop + .1f; -#line 7023 "" +#line 7075 "" i__2 = 1, i__3 = (integer) (r_lg10(&r__1) + 1); -#line 7023 "" +#line 7075 "" ndigbn = max(i__2,i__3); -#line 7024 "" +#line 7076 "" r__1 = nlinep + .1f; -#line 7024 "" +#line 7076 "" ndignl = (integer) (r_lg10(&r__1) + 1); -#line 7025 "" +#line 7077 "" lenmsg = i_indx(msgq, "!", msgq_len, (ftnlen)1) - 1; /* Split off msgq(..) since UNIX compilers don't allow concat substring!!! */ -#line 7029 "" +#line 7081 "" ci__1.cierr = 0; -#line 7029 "" +#line 7081 "" ci__1.ciunit = 6; /* Writing concatenation */ -#line 7029 "" +#line 7081 "" i__4[0] = 8, a__2[0] = "(/,a15,i"; -#line 7029 "" +#line 7081 "" i__2 = ndignl + 48; -#line 7029 "" +#line 7081 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 7029 "" +#line 7081 "" i__4[1] = 1, a__2[1] = ch__2; -#line 7029 "" +#line 7081 "" i__4[2] = 5, a__2[2] = ",a6,i"; -#line 7029 "" +#line 7081 "" i__3 = ndigbn + 48; -#line 7029 "" +#line 7081 "" chax_(ch__3, (ftnlen)1, &i__3); -#line 7029 "" +#line 7081 "" i__4[3] = 1, a__2[3] = ch__3; -#line 7029 "" +#line 7081 "" i__4[4] = 3, a__2[4] = ",$)"; -#line 7029 "" +#line 7081 "" ci__1.cifmt = (s_cat(ch__1, a__2, i__4, &c__5, (ftnlen)18), ch__1); -#line 7029 "" +#line 7081 "" s_wsfe(&ci__1); -#line 7029 "" +#line 7081 "" do_fio(&c__1, " ERROR in line ", (ftnlen)15); -#line 7029 "" +#line 7081 "" do_fio(&c__1, (char *)&nlinep, (ftnlen)sizeof(integer)); -#line 7029 "" +#line 7081 "" do_fio(&c__1, ", bar ", (ftnlen)6); -#line 7029 "" +#line 7081 "" do_fio(&c__1, (char *)&ibarnop, (ftnlen)sizeof(integer)); -#line 7029 "" +#line 7081 "" e_wsfe(); -#line 7031 "" - s_wsfe(&io___512); -#line 7031 "" +#line 7083 "" + s_wsfe(&io___513); +#line 7083 "" do_fio(&c__1, msgq, lenmsg); -#line 7031 "" +#line 7083 "" e_wsfe(); -#line 7032 "" +#line 7084 "" ci__1.cierr = 0; -#line 7032 "" +#line 7084 "" ci__1.ciunit = 15; /* Writing concatenation */ -#line 7032 "" +#line 7084 "" i__4[0] = 8, a__2[0] = "(/,a15,i"; -#line 7032 "" +#line 7084 "" i__2 = ndignl + 48; -#line 7032 "" +#line 7084 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 7032 "" +#line 7084 "" i__4[1] = 1, a__2[1] = ch__2; -#line 7032 "" +#line 7084 "" i__4[2] = 5, a__2[2] = ",a6,i"; -#line 7032 "" +#line 7084 "" i__3 = ndigbn + 48; -#line 7032 "" +#line 7084 "" chax_(ch__3, (ftnlen)1, &i__3); -#line 7032 "" +#line 7084 "" i__4[3] = 1, a__2[3] = ch__3; -#line 7032 "" +#line 7084 "" i__4[4] = 3, a__2[4] = ",$)"; -#line 7032 "" +#line 7084 "" ci__1.cifmt = (s_cat(ch__1, a__2, i__4, &c__5, (ftnlen)18), ch__1); -#line 7032 "" +#line 7084 "" s_wsfe(&ci__1); -#line 7032 "" +#line 7084 "" do_fio(&c__1, " ERROR in line ", (ftnlen)15); -#line 7032 "" +#line 7084 "" do_fio(&c__1, (char *)&nlinep, (ftnlen)sizeof(integer)); -#line 7032 "" +#line 7084 "" do_fio(&c__1, ", bar ", (ftnlen)6); -#line 7032 "" +#line 7084 "" do_fio(&c__1, (char *)&ibarnop, (ftnlen)sizeof(integer)); -#line 7032 "" +#line 7084 "" e_wsfe(); -#line 7034 "" - s_wsfe(&io___513); -#line 7034 "" +#line 7086 "" + s_wsfe(&io___514); +#line 7086 "" do_fio(&c__1, msgq, lenmsg); -#line 7034 "" +#line 7086 "" e_wsfe(); -#line 7035 "" +#line 7087 "" i10 = iposn / 10; -#line 7036 "" +#line 7088 "" i1 = iposn - i10 * 10; -#line 7037 "" +#line 7089 "" ci__1.cierr = 0; -#line 7037 "" +#line 7089 "" ci__1.ciunit = 6; /* Writing concatenation */ -#line 7037 "" +#line 7089 "" i__5[0] = 1, a__3[0] = "("; -#line 7037 "" +#line 7089 "" i__2 = i10 + 48; -#line 7037 "" +#line 7089 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 7037 "" +#line 7089 "" i__5[1] = 1, a__3[1] = ch__2; -#line 7037 "" +#line 7089 "" i__3 = i1 + 48; -#line 7037 "" +#line 7089 "" chax_(ch__3, (ftnlen)1, &i__3); -#line 7037 "" +#line 7089 "" i__5[2] = 1, a__3[2] = ch__3; -#line 7037 "" +#line 7089 "" i__5[3] = 4, a__3[3] = "x,a)"; -#line 7037 "" +#line 7089 "" ci__1.cifmt = (s_cat(ch__4, a__3, i__5, &c__4, (ftnlen)7), ch__4); -#line 7037 "" +#line 7089 "" s_wsfe(&ci__1); -#line 7037 "" +#line 7089 "" do_fio(&c__1, "v", (ftnlen)1); -#line 7037 "" +#line 7089 "" e_wsfe(); -#line 7038 "" +#line 7090 "" ci__1.cierr = 0; -#line 7038 "" +#line 7090 "" ci__1.ciunit = 15; /* Writing concatenation */ -#line 7038 "" +#line 7090 "" i__5[0] = 1, a__3[0] = "("; -#line 7038 "" +#line 7090 "" i__2 = i10 + 48; -#line 7038 "" +#line 7090 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 7038 "" +#line 7090 "" i__5[1] = 1, a__3[1] = ch__2; -#line 7038 "" +#line 7090 "" i__3 = i1 + 48; -#line 7038 "" +#line 7090 "" chax_(ch__3, (ftnlen)1, &i__3); -#line 7038 "" +#line 7090 "" i__5[2] = 1, a__3[2] = ch__3; -#line 7038 "" +#line 7090 "" i__5[3] = 4, a__3[3] = "x,a)"; -#line 7038 "" +#line 7090 "" ci__1.cifmt = (s_cat(ch__4, a__3, i__5, &c__4, (ftnlen)7), ch__4); -#line 7038 "" +#line 7090 "" s_wsfe(&ci__1); -#line 7038 "" +#line 7090 "" do_fio(&c__1, "v", (ftnlen)1); -#line 7038 "" +#line 7090 "" e_wsfe(); -#line 7039 "" - s_wsle(&io___516); -#line 7039 "" +#line 7091 "" + s_wsle(&io___517); +#line 7091 "" do_lio(&c__9, &c__1, outq, (ftnlen)78); -#line 7039 "" +#line 7091 "" e_wsle(); -#line 7040 "" - s_wsfe(&io___517); +#line 7092 "" + s_wsfe(&io___518); /* Writing concatenation */ -#line 7040 "" +#line 7092 "" i__1[0] = 1, a__1[0] = " "; -#line 7040 "" +#line 7092 "" i__1[1] = 78, a__1[1] = outq; -#line 7040 "" +#line 7092 "" s_cat(ch__5, a__1, i__1, &c__2, (ftnlen)79); -#line 7040 "" +#line 7092 "" do_fio(&c__1, ch__5, (ftnlen)79); -#line 7040 "" +#line 7092 "" e_wsfe(); -#line 7041 "" +#line 7093 "" ci__1.cierr = 0; -#line 7041 "" +#line 7093 "" ci__1.ciunit = 6; /* Writing concatenation */ -#line 7041 "" +#line 7093 "" i__5[0] = 1, a__3[0] = "("; -#line 7041 "" +#line 7093 "" i__2 = i10 + 48; -#line 7041 "" +#line 7093 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 7041 "" +#line 7093 "" i__5[1] = 1, a__3[1] = ch__2; -#line 7041 "" +#line 7093 "" i__3 = i1 + 48; -#line 7041 "" +#line 7093 "" chax_(ch__3, (ftnlen)1, &i__3); -#line 7041 "" +#line 7093 "" i__5[2] = 1, a__3[2] = ch__3; -#line 7041 "" +#line 7093 "" i__5[3] = 4, a__3[3] = "x,a)"; -#line 7041 "" +#line 7093 "" ci__1.cifmt = (s_cat(ch__4, a__3, i__5, &c__4, (ftnlen)7), ch__4); -#line 7041 "" +#line 7093 "" s_wsfe(&ci__1); -#line 7041 "" +#line 7093 "" do_fio(&c__1, "^", (ftnlen)1); -#line 7041 "" +#line 7093 "" e_wsfe(); -#line 7042 "" +#line 7094 "" ci__1.cierr = 0; -#line 7042 "" +#line 7094 "" ci__1.ciunit = 15; /* Writing concatenation */ -#line 7042 "" +#line 7094 "" i__5[0] = 1, a__3[0] = "("; -#line 7042 "" +#line 7094 "" i__2 = i10 + 48; -#line 7042 "" +#line 7094 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 7042 "" +#line 7094 "" i__5[1] = 1, a__3[1] = ch__2; -#line 7042 "" +#line 7094 "" i__3 = i1 + 48; -#line 7042 "" +#line 7094 "" chax_(ch__3, (ftnlen)1, &i__3); -#line 7042 "" +#line 7094 "" i__5[2] = 1, a__3[2] = ch__3; -#line 7042 "" +#line 7094 "" i__5[3] = 4, a__3[3] = "x,a)"; -#line 7042 "" +#line 7094 "" ci__1.cifmt = (s_cat(ch__4, a__3, i__5, &c__4, (ftnlen)7), ch__4); -#line 7042 "" +#line 7094 "" s_wsfe(&ci__1); -#line 7042 "" +#line 7094 "" do_fio(&c__1, "^", (ftnlen)1); -#line 7042 "" +#line 7094 "" e_wsfe(); -#line 7043 "" +#line 7095 "" return 0; } /* errmsg_ */ @@ -17282,82 +17374,82 @@ L2: static integer itnd, nnsk, itprev; /* Fortran I/O blocks */ - static cilist io___522 = { 0, 6, 0, 0, 0 }; + static cilist io___523 = { 0, 6, 0, 0, 0 }; /* Get elemskips to previous note. Called only for graces, no xtups involved. */ -#line 7063 "" +#line 7115 "" /* Parameter adjustments */ -#line 7063 "" +#line 7115 "" --tstart; -#line 7063 "" +#line 7115 "" --space; -#line 7063 "" +#line 7115 "" -#line 7063 "" +#line 7115 "" /* Function Body */ -#line 7063 "" +#line 7115 "" itnd = i_nint(&all_1.to[*in - 1]); -#line 7064 "" +#line 7116 "" if (*ip == 1 || itnd == *itrpt) { /* Start of bar or after rpt. */ -#line 7068 "" +#line 7120 "" *esk = *fbar; -#line 7069 "" +#line 7121 "" return 0; -#line 7070 "" +#line 7122 "" } else { -#line 7071 "" +#line 7123 "" *esk = 0.f; -#line 7072 "" +#line 7124 "" itprev = itnd - all_1.nodur[*ivx + (*ip - 1) * 24 - 25]; -#line 7073 "" +#line 7125 "" for (iib = *ib; iib >= 1; --iib) { -#line 7074 "" +#line 7126 "" if (tstart[iib] < itprev + comtol_1.tol) { /* This is the block */ -#line 7078 "" +#line 7130 "" r__1 = (real) (itnd - itprev) / space[iib]; -#line 7078 "" +#line 7130 "" nnsk = i_nint(&r__1); -#line 7079 "" +#line 7131 "" *esk += nnsk * feon_(&space[iib]); -#line 7080 "" +#line 7132 "" return 0; -#line 7081 "" +#line 7133 "" } else { -#line 7082 "" +#line 7134 "" r__1 = (itnd - tstart[iib]) / space[iib]; -#line 7082 "" +#line 7134 "" nnsk = i_nint(&r__1); -#line 7083 "" +#line 7135 "" *esk += nnsk * feon_(&space[iib]); -#line 7084 "" +#line 7136 "" itnd = i_nint(&tstart[iib]); -#line 7085 "" +#line 7137 "" } -#line 7086 "" +#line 7138 "" /* L1: */ -#line 7086 "" +#line 7138 "" } -#line 7087 "" +#line 7139 "" } -#line 7088 "" - s_wsle(&io___522); -#line 7088 "" +#line 7140 "" + s_wsle(&io___523); +#line 7140 "" do_lio(&c__9, &c__1, "Problem in eskb4. Send files to Dr. Don", (ftnlen) 40); -#line 7088 "" +#line 7140 "" e_wsle(); -#line 7089 "" +#line 7141 "" s_stop("", (ftnlen)0); -#line 7090 "" +#line 7142 "" return 0; } /* eskb4_ */ @@ -17369,9 +17461,9 @@ doublereal f1eon_(real *time) /* Builtin functions */ double sqrt(doublereal); -#line 7092 "" +#line 7144 "" ret_val = sqrt(*time / 2); -#line 7093 "" +#line 7145 "" return ret_val; } /* f1eon_ */ @@ -17384,13 +17476,13 @@ doublereal feon_(real *time) /* Builtin functions */ double sqrt(doublereal), pow_dd(doublereal *, doublereal *); -#line 7097 "" +#line 7149 "" d__1 = (doublereal) sqrt(*time / 2); -#line 7097 "" +#line 7149 "" d__2 = (doublereal) (1.f - comeon_1.eonk); -#line 7097 "" +#line 7149 "" ret_val = pow_dd(&d__1, &d__2) * comeon_1.ewmxk; -#line 7098 "" +#line 7150 "" return ret_val; } /* feon_ */ @@ -17463,7 +17555,7 @@ doublereal feon_(real *time) static integer masknow; /* Fortran I/O blocks */ - static cilist io___556 = { 0, 6, 0, 0, 0 }; + static cilist io___557 = { 0, 6, 0, 0, 0 }; @@ -17472,425 +17564,425 @@ doublereal feon_(real *time) /* integer numbms(nm),ipr(48),nip1(0:47),nip2(0:47),mapfb(16), */ /* * itr(48),nodue(48) */ /* logical short(48),eqonly */ -#line 7128 "" +#line 7180 "" /* Parameter adjustments */ -#line 7128 "" +#line 7180 "" --mapfb; -#line 7128 "" +#line 7180 "" --numbms; -#line 7128 "" +#line 7180 "" -#line 7128 "" +#line 7180 "" /* Function Body */ -#line 7149 "" +#line 7201 "" ip = 0; -#line 7150 "" +#line 7202 "" nreal = 0; -#line 7151 "" +#line 7203 "" itnow = 0; -#line 7152 "" +#line 7204 "" L1: -#line 7153 "" +#line 7205 "" ++ip; -#line 7154 "" +#line 7206 "" if (ip > all_1.nn[commvl_1.ivx - 1]) { -#line 7154 "" +#line 7206 "" goto L9; -#line 7154 "" +#line 7206 "" } -#line 7155 "" +#line 7207 "" L11: -#line 7155 "" +#line 7207 "" if (all_1.nodur[commvl_1.ivx + ip * 24 - 25] == 0) { /* Ignore all xtup notes except the last, the one with nodur > 0 . */ /* Xtups are irrelevant here since they are already all in forced beams. */ /* Will update itnow by nodur at the END of this loop */ -#line 7161 "" +#line 7213 "" ++ip; -#line 7162 "" +#line 7214 "" goto L11; -#line 7163 "" +#line 7215 "" } -#line 7164 "" +#line 7216 "" ++nreal; -#line 7165 "" +#line 7217 "" nodue[nreal - 1] = all_1.nodur[commvl_1.ivx + ip * 24 - 25]; -#line 7166 "" +#line 7218 "" short__[nreal - 1] = nodue[nreal - 1] < 16 && ! bit_test(all_1.irest[ commvl_1.ivx + ip * 24 - 25],0) && ! bit_test(all_1.islur[ commvl_1.ivx + ip * 24 - 25],18); /* Rule out notes that have 'alone'-flag set */ -#line 7172 "" +#line 7224 "" ipr[nreal - 1] = ip; -#line 7173 "" +#line 7225 "" itr[nreal - 1] = itnow; -#line 7174 "" +#line 7226 "" if (nodue[nreal - 1] == 1) { /* 64th gap */ -#line 7178 "" +#line 7230 "" if (itnow % 2 == 0) { /* Start of 32nd gap, lump with following note */ -#line 7182 "" +#line 7234 "" ++ip; -#line 7183 "" +#line 7235 "" nodue[nreal - 1] = all_1.nodur[commvl_1.ivx + ip * 24 - 25] + 1; -#line 7184 "" +#line 7236 "" itnow += nodue[nreal - 1]; -#line 7185 "" +#line 7237 "" } else { /* End of 32nd gap, lump with preceeding note */ -#line 7189 "" +#line 7241 "" --nreal; -#line 7190 "" +#line 7242 "" ++nodue[nreal - 1]; -#line 7191 "" +#line 7243 "" ++itnow; -#line 7192 "" +#line 7244 "" } -#line 7193 "" +#line 7245 "" } else { -#line 7194 "" +#line 7246 "" itnow += all_1.nodur[commvl_1.ivx + ip * 24 - 25]; -#line 7195 "" +#line 7247 "" } -#line 7196 "" +#line 7248 "" goto L1; -#line 7197 "" +#line 7249 "" L9: -#line 7198 "" +#line 7250 "" ir1 = 1; -#line 7199 "" +#line 7251 "" itseg = all_1.lenbar / *ibmrep; -#line 7200 "" +#line 7252 "" i__1 = *ibmrep; -#line 7200 "" +#line 7252 "" for (irep = 1; irep <= i__1; ++irep) { /* Set bitmaps for all shorts neighbored by a short. Each bit represents a */ /* span of 32nd note. maps, mapm, mape record start, full duration, and end */ /* of consecutive span of beamable (<1/4) notes. */ -#line 7206 "" +#line 7258 "" maps = 0; -#line 7207 "" +#line 7259 "" mapm = 0; -#line 7208 "" +#line 7260 "" mape = 0; -#line 7209 "" +#line 7261 "" itend = itseg * irep; -#line 7210 "" +#line 7262 "" itoff = itend - itseg; -#line 7211 "" +#line 7263 "" i__2 = nreal; -#line 7211 "" +#line 7263 "" for (ir = ir1; ir <= i__2; ++ir) { -#line 7212 "" +#line 7264 "" it2 = itr[ir - 1] + nodue[ir - 1] - 2; -#line 7213 "" +#line 7265 "" if (it2 >= itend) { -#line 7214 "" +#line 7266 "" ir1 = ir; -#line 7215 "" +#line 7267 "" goto L14; -#line 7216 "" +#line 7268 "" } /* if (short(ir).and.((ir.gt.1.and.short(ir-1)).or.(ir.lt.nreal */ /* Computing MAX */ -#line 7218 "" +#line 7270 "" i__3 = ir - 1; -#line 7218 "" +#line 7270 "" if (short__[ir - 1] && (ir > 1 && short__[max(i__3,1) - 1] || ir < nreal && short__[ir])) { -#line 7220 "" +#line 7272 "" ib1 = (itr[ir - 1] - itoff) / 2; -#line 7221 "" +#line 7273 "" ib2 = (it2 - itoff) / 2; -#line 7222 "" +#line 7274 "" if (max(ib1,ib2) > 47 || ir > 48 || min(ib1,ib2) < 0) { -#line 7222 "" +#line 7274 "" return 0; -#line 7222 "" +#line 7274 "" } /* Must have an odd number obe beats in a long bar. Auto-beam won't work */ -#line 7227 "" +#line 7279 "" nip1[ib1] = ipr[ir - 1]; -#line 7228 "" +#line 7280 "" nip2[ib2] = ipr[ir - 1]; /* nip1,2(ib) = 0 unless a real note starts,ends on bit ib; then = ip */ -#line 7232 "" +#line 7284 "" maps = bit_set(maps,ib1); -#line 7233 "" +#line 7285 "" mape = bit_set(mape,ib2); -#line 7234 "" +#line 7286 "" i__3 = ib2; -#line 7234 "" +#line 7286 "" for (ib = ib1; ib <= i__3; ++ib) { -#line 7235 "" +#line 7287 "" mapm = bit_set(mapm,ib); -#line 7236 "" +#line 7288 "" /* L3: */ -#line 7236 "" +#line 7288 "" } -#line 7237 "" +#line 7289 "" } -#line 7238 "" +#line 7290 "" /* L2: */ -#line 7238 "" +#line 7290 "" } -#line 7239 "" +#line 7291 "" L14: -#line 7240 "" +#line 7292 "" if (mapm == 0) { -#line 7240 "" +#line 7292 "" goto L13; -#line 7240 "" +#line 7292 "" } /* Zero out bits from forced beams */ -#line 7244 "" +#line 7296 "" maps &= ~ mapfb[irep]; -#line 7245 "" +#line 7297 "" mapm &= ~ mapfb[irep]; -#line 7246 "" +#line 7298 "" mape &= ~ mapfb[irep]; /* Compare map with template. */ -#line 7250 "" +#line 7302 "" i__2 = nummask[combeam_1.ibmtyp - 1]; -#line 7250 "" +#line 7302 "" for (it = 1; it <= i__2; ++it) { -#line 7251 "" +#line 7303 "" masknow = mask[it + combeam_1.ibmtyp * 49 - 50]; -#line 7252 "" +#line 7304 "" if ((masknow & mapm) == masknow) { /* Find least significant bit in the mask to check start time */ -#line 7256 "" +#line 7308 "" mtemp = masknow; -#line 7257 "" +#line 7309 "" maskm = masknow; -#line 7258 "" +#line 7310 "" for (is1 = 0; is1 <= 47; ++is1) { -#line 7259 "" +#line 7311 "" if ((1 & mtemp) == 1) { -#line 7259 "" +#line 7311 "" goto L6; -#line 7259 "" +#line 7311 "" } -#line 7260 "" +#line 7312 "" mtemp = lbit_shift(mtemp, (ftnlen)-1); -#line 7261 "" +#line 7313 "" /* L5: */ -#line 7261 "" +#line 7313 "" } -#line 7262 "" +#line 7314 "" L6: -#line 7263 "" +#line 7315 "" if ((lbit_shift((ftnlen)1, is1) & maps) == 0) { -#line 7263 "" +#line 7315 "" goto L4; -#line 7263 "" +#line 7315 "" } /* is1 is the bit where the beam starts. Continue shifting to */ /* find most significant bit in the mask to check ending time */ -#line 7268 "" +#line 7320 "" for (is2 = is1; is2 <= 47; ++is2) { -#line 7269 "" +#line 7321 "" mtemp = lbit_shift(mtemp, (ftnlen)-1); -#line 7270 "" +#line 7322 "" if ((1 & ~ mtemp) == 1) { -#line 7270 "" +#line 7322 "" goto L8; -#line 7270 "" +#line 7322 "" } -#line 7271 "" +#line 7323 "" /* L7: */ -#line 7271 "" +#line 7323 "" } -#line 7272 "" +#line 7324 "" L8: /* is2 is now the bit on which the beam ends. */ -#line 7276 "" +#line 7328 "" if ((lbit_shift((ftnlen)1, is2) & mape) == 0) { -#line 7276 "" +#line 7328 "" goto L4; -#line 7276 "" +#line 7328 "" } /* Did we pick out a single note from the middle of a longer sequence? */ -#line 7280 "" +#line 7332 "" if (nip1[is1] == nip2[is2]) { -#line 7280 "" +#line 7332 "" goto L4; -#line 7280 "" +#line 7332 "" } /* We almost have a beam. Check equality of notes if needed. */ -#line 7284 "" +#line 7336 "" if (eqonly[it + combeam_1.ibmtyp * 49 - 50]) { -#line 7285 "" +#line 7337 "" i__3 = nip2[is2]; -#line 7285 "" +#line 7337 "" for (ip = nip1[is1]; ip <= i__3; ++ip) { -#line 7286 "" +#line 7338 "" if (all_1.nodur[commvl_1.ivx + ip * 24 - 25] != 8) { /* There is a non-1/8th note in this beam. Exit if not 2 quarters */ -#line 7290 "" +#line 7342 "" if (is2 - is1 != 15) { -#line 7290 "" +#line 7342 "" goto L4; -#line 7290 "" +#line 7342 "" } /* Beam is 2 quarters long. Check if can split in half. */ -#line 7294 "" +#line 7346 "" ithalf = 0; -#line 7295 "" +#line 7347 "" i__4 = nip2[is2]; -#line 7295 "" +#line 7347 "" for (iip = nip1[is1]; iip <= i__4; ++iip) { -#line 7296 "" +#line 7348 "" ithalf += all_1.nodur[commvl_1.ivx + iip * 24 - 25]; -#line 7297 "" +#line 7349 "" if (ithalf > 16) { -#line 7297 "" +#line 7349 "" goto L4; -#line 7297 "" +#line 7349 "" } -#line 7298 "" +#line 7350 "" if (ithalf == 16) { -#line 7298 "" +#line 7350 "" goto L21; -#line 7298 "" +#line 7350 "" } -#line 7299 "" +#line 7351 "" /* L20: */ -#line 7299 "" +#line 7351 "" } -#line 7300 "" - s_wsle(&io___556); -#line 7300 "" +#line 7352 "" + s_wsle(&io___557); +#line 7352 "" do_lio(&c__9, &c__1, "Problem in findbeam, pleas"\ "e call Dr. Don", (ftnlen)40); -#line 7300 "" +#line 7352 "" e_wsle(); -#line 7301 "" +#line 7353 "" goto L4; -#line 7302 "" +#line 7354 "" L21: /* Otherwise, split in half by keeping only the first half. Other half will */ /* be picked up later, assuming masks are listed longest first. */ -#line 7307 "" +#line 7359 "" is2 = is1 + 7; /* Reset maskm (since only used part of mask), used later to zero out */ /* bits that contain beams */ -#line 7312 "" +#line 7364 "" maskm = 0; -#line 7313 "" +#line 7365 "" i__4 = is2; -#line 7313 "" +#line 7365 "" for (is = is1; is <= i__4; ++is) { -#line 7314 "" +#line 7366 "" maskm = bit_set(maskm,is); -#line 7315 "" +#line 7367 "" /* L15: */ -#line 7315 "" +#line 7367 "" } -#line 7316 "" +#line 7368 "" goto L16; -#line 7317 "" +#line 7369 "" } -#line 7318 "" +#line 7370 "" /* L10: */ -#line 7318 "" +#line 7370 "" } -#line 7319 "" +#line 7371 "" } -#line 7320 "" +#line 7372 "" L16: /* This is a beam. If last "effective" ends on odd 64th, add 1 more */ /* if (abs(mod(to(iand(255,ipl(ivx,nip2(is2)))) */ /* * +nodur(ivx,nip2(is2)),2.)) .gt. tol) then */ -#line 7326 "" +#line 7378 "" r__2 = all_1.to[comipl2_1.ipl2[commvl_1.ivx + nip2[is2] * 24 - 25] - 1] + all_1.nodur[commvl_1.ivx + nip2[is2] * 24 - 25] + comtol_1.tol * .5f; -#line 7326 "" - if ((r__1 = r_mod(&r__2, &c_b1670), dabs(r__1)) > +#line 7378 "" + if ((r__1 = r_mod(&r__2, &c_b1669), dabs(r__1)) > comtol_1.tol) { -#line 7328 "" +#line 7380 "" ++nip2[is2]; -#line 7329 "" +#line 7381 "" } -#line 7330 "" +#line 7382 "" ++numbms[commvl_1.ivx]; -#line 7331 "" +#line 7383 "" numnew = numbms[commvl_1.ivx]; -#line 7332 "" +#line 7384 "" logbeam_(&numnew, &nip1[is1], &nip2[is2]); /* Zero out the appropriate bits so these notes don't get used again */ -#line 7336 "" +#line 7388 "" mapm &= ~ maskm; -#line 7337 "" +#line 7389 "" if (mapm == 0) { -#line 7337 "" +#line 7389 "" goto L13; -#line 7337 "" +#line 7389 "" } -#line 7338 "" +#line 7390 "" maps &= ~ maskm; -#line 7339 "" +#line 7391 "" mape &= ~ maskm; -#line 7340 "" +#line 7392 "" } -#line 7341 "" +#line 7393 "" L4: -#line 7341 "" +#line 7393 "" ; -#line 7341 "" +#line 7393 "" } -#line 7342 "" +#line 7394 "" L13: -#line 7342 "" +#line 7394 "" ; -#line 7342 "" +#line 7394 "" } -#line 7343 "" +#line 7395 "" return 0; } /* findbeam_ */ @@ -17923,83 +18015,83 @@ L13: /* logical gotclef */ /* * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks) */ -#line 7358 "" +#line 7410 "" comeon_1.eonk = *eonk0; -#line 7359 "" +#line 7411 "" niter = 0; -#line 7360 "" +#line 7412 "" L1: -#line 7361 "" +#line 7413 "" d__1 = (doublereal) f1eon_(dtmax); -#line 7361 "" +#line 7413 "" d__2 = (doublereal) comeon_1.eonk; -#line 7361 "" +#line 7413 "" comeon_1.ewmxk = pow_dd(&d__1, &d__2); -#line 7362 "" +#line 7414 "" ++niter; -#line 7363 "" +#line 7415 "" esum = 0.f; -#line 7364 "" +#line 7416 "" desum = 0.f; -#line 7365 "" +#line 7417 "" i__1 = *nptr2; -#line 7365 "" +#line 7417 "" for (iptr = *nptr1; iptr <= i__1; ++iptr) { -#line 7366 "" +#line 7418 "" targ = c1omnotes_1.durb[iptr - 1] / c1omnotes_1.sqzb[iptr - 1]; -#line 7367 "" +#line 7419 "" esum += c1omnotes_1.nnpd[iptr - 1] * c1omnotes_1.sqzb[iptr - 1] * feon_(&targ); -#line 7368 "" +#line 7420 "" d__1 = (doublereal) (*dtmax / targ); -#line 7368 "" +#line 7420 "" d__2 = (doublereal) comeon_1.eonk; -#line 7368 "" +#line 7420 "" detarg = sqrt(targ / 2 * pow_dd(&d__1, &d__2)) * log(*dtmax / targ); -#line 7369 "" +#line 7421 "" desum += c1omnotes_1.nnpd[iptr - 1] * c1omnotes_1.sqzb[iptr - 1] * detarg; -#line 7370 "" +#line 7422 "" /* L2: */ -#line 7370 "" +#line 7422 "" } -#line 7371 "" +#line 7423 "" f = *wovera * feon_(dtmin) - *xelsk - esum; -#line 7372 "" +#line 7424 "" d__1 = (doublereal) (*dtmax / *dtmin); -#line 7372 "" +#line 7424 "" d__2 = (doublereal) comeon_1.eonk; -#line 7372 "" +#line 7424 "" fp = *wovera * sqrt(*dtmin / 2 * pow_dd(&d__1, &d__2)) * log(*dtmax / * dtmin) - desum; -#line 7374 "" +#line 7426 "" if (dabs(fp) < comtol_1.tol || (r__1 = comeon_1.eonk - .5f, dabs(r__1)) > .5f || niter > 100) { -#line 7375 "" +#line 7427 "" printl_("Error in findeonk. Please send source to Dr. Don", (ftnlen) 49); -#line 7377 "" +#line 7429 "" comeon_1.eonk = 0.f; -#line 7378 "" +#line 7430 "" comeon_1.ewmxk = 1.f; -#line 7379 "" +#line 7431 "" return 0; -#line 7380 "" +#line 7432 "" } -#line 7381 "" +#line 7433 "" dsoln = -f / fp; -#line 7382 "" +#line 7434 "" if (dabs(dsoln) < comtol_1.tol * .1f) { -#line 7382 "" +#line 7434 "" return 0; -#line 7382 "" +#line 7434 "" } /* Not converged yet, try again */ -#line 7386 "" +#line 7438 "" comeon_1.eonk += dsoln; -#line 7387 "" +#line 7439 "" goto L1; } /* findeonk_ */ @@ -18019,133 +18111,133 @@ doublereal fnote_(integer *nodur, integer *ivx, integer *ip, integer *nacc) extern /* Subroutine */ int printl_(char *, ftnlen); /* Fortran I/O blocks */ - static cilist io___572 = { 0, 6, 0, 0, 0 }; + static cilist io___573 = { 0, 6, 0, 0, 0 }; /* This return the real duration of a note */ -#line 7396 "" +#line 7448 "" /* Parameter adjustments */ -#line 7396 "" +#line 7448 "" nacc -= 25; -#line 7396 "" +#line 7448 "" nodur -= 25; -#line 7396 "" +#line 7448 "" -#line 7396 "" +#line 7448 "" /* Function Body */ -#line 7396 "" +#line 7448 "" ipback = *ip; -#line 7397 "" +#line 7449 "" if (nodur[*ivx + *ip * 24] > 0) { -#line 7398 "" +#line 7450 "" if (*ip > 1) { /* Check if this is last note of xtup */ -#line 7402 "" +#line 7454 "" if (nodur[*ivx + (*ip - 1) * 24] == 0) { -#line 7403 "" +#line 7455 "" ipback = *ip - 1; -#line 7404 "" +#line 7456 "" goto L2; -#line 7405 "" +#line 7457 "" } -#line 7406 "" +#line 7458 "" } -#line 7407 "" +#line 7459 "" ret_val = (real) nodur[*ivx + *ip * 24]; -#line 7408 "" +#line 7460 "" return ret_val; -#line 7409 "" +#line 7461 "" } -#line 7410 "" +#line 7462 "" L2: /* Count back to prior non zero note. Start at ip to avoid neg index if ip=1. */ /* Count how many doubled xtups notes there are from ip-1 to first note. */ -#line 7415 "" +#line 7467 "" ndoub = 0; -#line 7416 "" +#line 7468 "" for (ip1m1 = ipback; ip1m1 >= 1; --ip1m1) { -#line 7417 "" +#line 7469 "" if (nodur[*ivx + ip1m1 * 24] > 0) { -#line 7417 "" +#line 7469 "" goto L4; -#line 7417 "" +#line 7469 "" } -#line 7418 "" +#line 7470 "" if (ip1m1 < *ip && bit_test(nacc[*ivx + ip1m1 * 24],18)) { -#line 7418 "" +#line 7470 "" ++ndoub; -#line 7418 "" +#line 7470 "" } -#line 7419 "" +#line 7471 "" /* L1: */ -#line 7419 "" +#line 7471 "" } -#line 7420 "" +#line 7472 "" L4: /* count forward to next non-0 nodur. Start at ip in case last note of xtup. */ -#line 7424 "" +#line 7476 "" for (iip = *ip; iip <= 200; ++iip) { /* Count doubled xtup notes from ip to end. */ -#line 7428 "" +#line 7480 "" if (bit_test(nacc[*ivx + iip * 24],18)) { -#line 7428 "" +#line 7480 "" ++ndoub; -#line 7428 "" +#line 7480 "" } -#line 7429 "" +#line 7481 "" if (nodur[*ivx + iip * 24] > 0) { /* fnote = nodur(ivx,iip)/float(iip-ip1m1) */ -#line 7431 "" +#line 7483 "" ret_val = nodur[*ivx + iip * 24] / (real) (iip - ip1m1 + ndoub); -#line 7432 "" +#line 7484 "" if (bit_test(nacc[*ivx + *ip * 24],18)) { -#line 7433 "" +#line 7485 "" ret_val *= 2; -#line 7434 "" +#line 7486 "" } else if (bit_test(nacc[*ivx + *ip * 24],27)) { -#line 7435 "" +#line 7487 "" ret_val *= 1.5f; -#line 7436 "" +#line 7488 "" } else if (*ip > 1) { -#line 7437 "" +#line 7489 "" if (bit_test(nacc[*ivx + (*ip - 1) * 24],27)) { -#line 7437 "" +#line 7489 "" ret_val *= .5f; -#line 7437 "" +#line 7489 "" } -#line 7438 "" +#line 7490 "" } -#line 7439 "" +#line 7491 "" return ret_val; -#line 7440 "" +#line 7492 "" } -#line 7441 "" +#line 7493 "" /* L3: */ -#line 7441 "" +#line 7493 "" } -#line 7442 "" - s_wsle(&io___572); -#line 7442 "" +#line 7494 "" + s_wsle(&io___573); +#line 7494 "" do_lio(&c__9, &c__1, " ", (ftnlen)1); -#line 7442 "" +#line 7494 "" e_wsle(); -#line 7443 "" +#line 7495 "" printl_("Probable misplaced barline or incorrect meter, stopping", ( ftnlen)55); /* call printl('Program error in fnote, send source to Dr. Don') */ -#line 7446 "" +#line 7498 "" stop1_(); -#line 7447 "" +#line 7499 "" return ret_val; } /* fnote_ */ @@ -18166,50 +18258,50 @@ L4: /* Gets the next character out of lineq*128. If pointer iccount=128 on entry, */ /* then reads in a new line. Resets iccount. Ends program if no more input. */ -#line 7461 "" +#line 7513 "" if (*iccount == 128) { -#line 7462 "" +#line 7514 "" read10_(lineq, &c1omget_1.lastchar, (ftnlen)128); -#line 7463 "" +#line 7515 "" if (c1omget_1.lastchar) { -#line 7463 "" +#line 7515 "" return 0; -#line 7463 "" +#line 7515 "" } -#line 7464 "" +#line 7516 "" if (! commac_1.endmac) { -#line 7465 "" +#line 7517 "" *iccount = 0; -#line 7466 "" +#line 7518 "" if (! commac_1.mplay) { -#line 7466 "" +#line 7518 "" ++c1omget_1.nline; -#line 7466 "" +#line 7518 "" } -#line 7467 "" +#line 7519 "" } else { -#line 7468 "" +#line 7520 "" commac_1.endmac = FALSE_; -#line 7469 "" +#line 7521 "" *iccount = commac_1.icchold; -#line 7470 "" +#line 7522 "" s_copy(lineq, commac_1.lnholdq, (ftnlen)128, (ftnlen)128); -#line 7471 "" +#line 7523 "" } -#line 7472 "" +#line 7524 "" if (commac_1.mrecord) { -#line 7473 "" +#line 7525 "" m1rec1_(lineq, iccount, &ibarcnt, &ibaroff, &nbars, &ndxm, ( ftnlen)128); -#line 7474 "" +#line 7526 "" } -#line 7475 "" +#line 7527 "" } -#line 7476 "" +#line 7528 "" ++(*iccount); -#line 7477 "" +#line 7529 "" *(unsigned char *)charq = *(unsigned char *)&lineq[*iccount - 1]; -#line 7478 "" +#line 7530 "" return 0; } /* g1etchar_ */ @@ -18300,4443 +18392,4459 @@ L4: static integer lvoltxt; /* Fortran I/O blocks */ - static cilist io___583 = { 0, 6, 0, 0, 0 }; static cilist io___584 = { 0, 6, 0, 0, 0 }; static cilist io___585 = { 0, 6, 0, 0, 0 }; static cilist io___586 = { 0, 6, 0, 0, 0 }; - static cilist io___587 = { 0, 15, 0, "(/a)", 0 }; - static cilist io___588 = { 0, 15, 0, "(a11,2x,i3)", 0 }; - static cilist io___589 = { 0, 15, 0, 0, 0 }; - static cilist io___590 = { 0, 6, 0, 0, 0 }; - static cilist io___598 = { 0, 6, 0, 0, 0 }; + static cilist io___587 = { 0, 6, 0, 0, 0 }; + static cilist io___588 = { 0, 15, 0, "(/a)", 0 }; + static cilist io___589 = { 0, 15, 0, "(a11,2x,i3)", 0 }; + static cilist io___590 = { 0, 15, 0, 0, 0 }; + static cilist io___591 = { 0, 6, 0, 0, 0 }; static cilist io___599 = { 0, 6, 0, 0, 0 }; static cilist io___600 = { 0, 6, 0, 0, 0 }; - static cilist io___605 = { 0, 6, 0, 0, 0 }; + static cilist io___601 = { 0, 6, 0, 0, 0 }; static cilist io___606 = { 0, 6, 0, 0, 0 }; static cilist io___607 = { 0, 6, 0, 0, 0 }; - static cilist io___621 = { 0, 6, 0, 0, 0 }; - static cilist io___624 = { 0, 6, 0, 0, 0 }; + static cilist io___608 = { 0, 6, 0, 0, 0 }; + static cilist io___622 = { 0, 6, 0, 0, 0 }; static cilist io___625 = { 0, 6, 0, 0, 0 }; static cilist io___626 = { 0, 6, 0, 0, 0 }; - static cilist io___629 = { 0, 6, 0, 0, 0 }; - static cilist io___635 = { 0, 6, 0, 0, 0 }; + static cilist io___627 = { 0, 6, 0, 0, 0 }; + static cilist io___630 = { 0, 6, 0, 0, 0 }; static cilist io___636 = { 0, 6, 0, 0, 0 }; - static cilist io___637 = { 0, 15, 0, "(/,a)", 0 }; - static cilist io___638 = { 0, 6, 0, 0, 0 }; + static cilist io___637 = { 0, 6, 0, 0, 0 }; + static cilist io___638 = { 0, 15, 0, "(/,a)", 0 }; static cilist io___639 = { 0, 6, 0, 0, 0 }; - static cilist io___640 = { 0, 15, 0, "(a)", 0 }; + static cilist io___640 = { 0, 6, 0, 0, 0 }; static cilist io___641 = { 0, 15, 0, "(a)", 0 }; - static cilist io___646 = { 0, 6, 0, 0, 0 }; - static cilist io___647 = { 0, 15, 0, "(a)", 0 }; - static cilist io___651 = { 0, 6, 0, 0, 0 }; + static cilist io___642 = { 0, 15, 0, "(a)", 0 }; + static cilist io___647 = { 0, 6, 0, 0, 0 }; + static cilist io___648 = { 0, 15, 0, "(a)", 0 }; static cilist io___652 = { 0, 6, 0, 0, 0 }; static cilist io___653 = { 0, 6, 0, 0, 0 }; - static cilist io___654 = { 0, 6, 0, "(1x,a21,i3,a23)", 0 }; - static cilist io___658 = { 0, 6, 0, 0, 0 }; + static cilist io___654 = { 0, 6, 0, 0, 0 }; + static cilist io___655 = { 0, 6, 0, "(1x,a21,i3,a23)", 0 }; static cilist io___659 = { 0, 6, 0, 0, 0 }; - static cilist io___660 = { 0, 5, 0, "(a)", 0 }; - static cilist io___664 = { 0, 6, 0, 0, 0 }; + static cilist io___660 = { 0, 6, 0, 0, 0 }; + static cilist io___661 = { 0, 5, 0, "(a)", 0 }; static cilist io___665 = { 0, 6, 0, 0, 0 }; + static cilist io___666 = { 0, 6, 0, 0, 0 }; /* * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks) */ -#line 7545 "" +#line 7597 "" cdot = FALSE_; -#line 7546 "" +#line 7598 "" L1: -#line 7546 "" +#line 7598 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 7547 "" +#line 7599 "" if (*(unsigned char *)charq != ' ') { -#line 7547 "" +#line 7599 "" *(unsigned char *)charlq = *(unsigned char *)charq; -#line 7547 "" +#line 7599 "" } -#line 7548 "" +#line 7600 "" if (c1omget_1.lastchar) { -#line 7549 "" +#line 7601 "" if (i_indx("/%", charlq, (ftnlen)2, (ftnlen)1) == 0) { -#line 7550 "" - s_wsle(&io___583); -#line 7550 "" - e_wsle(); -#line 7551 "" +#line 7602 "" s_wsle(&io___584); -#line 7551 "" - do_lio(&c__9, &c__1, "WARNING:", (ftnlen)8); -#line 7551 "" +#line 7602 "" e_wsle(); -#line 7552 "" +#line 7603 "" s_wsle(&io___585); -#line 7552 "" +#line 7603 "" + do_lio(&c__9, &c__1, "WARNING:", (ftnlen)8); +#line 7603 "" + e_wsle(); +#line 7604 "" + s_wsle(&io___586); +#line 7604 "" do_lio(&c__9, &c__1, "Last non-blank character is \"", (ftnlen)29) ; -#line 7552 "" +#line 7604 "" do_lio(&c__9, &c__1, charlq, (ftnlen)1); -#line 7552 "" +#line 7604 "" do_lio(&c__9, &c__1, "\", not \"/,%\"", (ftnlen)12); -#line 7552 "" +#line 7604 "" e_wsle(); -#line 7553 "" - s_wsle(&io___586); -#line 7553 "" +#line 7605 "" + s_wsle(&io___587); +#line 7605 "" do_lio(&c__9, &c__1, "ASCII code:", (ftnlen)11); -#line 7553 "" +#line 7605 "" i__1 = *(unsigned char *)charlq; -#line 7553 "" +#line 7605 "" do_lio(&c__3, &c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 7553 "" +#line 7605 "" e_wsle(); -#line 7554 "" - s_wsfe(&io___587); +#line 7606 "" + s_wsfe(&io___588); /* Writing concatenation */ -#line 7554 "" +#line 7606 "" i__2[0] = 29, a__1[0] = "Last non-blank character is \""; -#line 7554 "" +#line 7606 "" i__2[1] = 1, a__1[1] = charlq; -#line 7554 "" +#line 7606 "" i__2[2] = 12, a__1[2] = "\", not \"/,%\""; -#line 7554 "" +#line 7606 "" s_cat(ch__1, a__1, i__2, &c__3, (ftnlen)42); -#line 7554 "" +#line 7606 "" do_fio(&c__1, ch__1, (ftnlen)42); -#line 7554 "" +#line 7606 "" e_wsfe(); -#line 7556 "" - s_wsfe(&io___588); -#line 7556 "" +#line 7608 "" + s_wsfe(&io___589); +#line 7608 "" do_fio(&c__1, "ASCII code:", (ftnlen)11); -#line 7556 "" +#line 7608 "" i__1 = *(unsigned char *)charlq; -#line 7556 "" +#line 7608 "" do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 7556 "" +#line 7608 "" e_wsfe(); /* Append " /" to last line. NB lastchar=.true. => ilbuf=nlbuf+1. */ -#line 7560 "" +#line 7612 "" --inbuff_1.ilbuf; -#line 7561 "" +#line 7613 "" inbuff_1.lbuf[inbuff_1.ilbuf - 1] = (shortint) (inbuff_1.lbuf[ inbuff_1.ilbuf - 1] + 2); /* Writing concatenation */ -#line 7562 "" +#line 7614 "" i__3[0] = inbuff_1.ipbuf, a__2[0] = inbuff_1.bufq; -#line 7562 "" +#line 7614 "" i__3[1] = 2, a__2[1] = " /"; -#line 7562 "" +#line 7614 "" s_cat(inbuff_1.bufq, a__2, i__3, &c__2, (ftnlen)65536); -#line 7563 "" - s_wsle(&io___589); -#line 7563 "" +#line 7615 "" + s_wsle(&io___590); +#line 7615 "" do_lio(&c__9, &c__1, "appending <blank>/", (ftnlen)18); -#line 7563 "" +#line 7615 "" e_wsle(); -#line 7564 "" - s_wsle(&io___590); -#line 7564 "" +#line 7616 "" + s_wsle(&io___591); +#line 7616 "" do_lio(&c__9, &c__1, "appending <blank>/", (ftnlen)18); -#line 7564 "" +#line 7616 "" e_wsle(); /* Writing concatenation */ -#line 7565 "" +#line 7617 "" i__3[0] = a1ll_2.iccount, a__2[0] = lineq; -#line 7565 "" +#line 7617 "" i__3[1] = 2, a__2[1] = " /"; -#line 7565 "" +#line 7617 "" s_cat(lineq, a__2, i__3, &c__2, (ftnlen)128); -#line 7566 "" +#line 7618 "" c1omget_1.lastchar = FALSE_; -#line 7567 "" +#line 7619 "" goto L1; -#line 7568 "" +#line 7620 "" } -#line 7569 "" +#line 7621 "" return 0; -#line 7570 "" +#line 7622 "" } -#line 7571 "" +#line 7623 "" if (*(unsigned char *)charq == ' ') { -#line 7572 "" +#line 7624 "" goto L1; -#line 7573 "" +#line 7625 "" } else if (*(unsigned char *)charq == '%' && a1ll_2.iccount == 1) { -#line 7574 "" +#line 7626 "" a1ll_2.iccount = 128; -#line 7575 "" +#line 7627 "" goto L1; /* Replacement 1/22/12 since gfortran 4.7 with -O was choking here! */ /* else if ((ichar(charq).ge.97.and.ichar(charq).le.103) .or. */ -#line 7580 "" +#line 7632 "" } else if (i_indx("abcdefg", charq, (ftnlen)7, (ftnlen)1) > 0 || *( unsigned char *)charq == 'r') { /* This is a note/rest. gotclef is only used for checking for clef before "/" */ -#line 7585 "" +#line 7637 "" if (cdot) { -#line 7585 "" +#line 7637 "" goto L28; -#line 7585 "" +#line 7637 "" } /* if (gotclef) gotclef=.false. */ -#line 7587 "" +#line 7639 "" idotform = 0; -#line 7588 "" +#line 7640 "" numnum = 0; -#line 7589 "" +#line 7641 "" plusmin = FALSE_; -#line 7590 "" +#line 7642 "" L28: -#line 7590 "" +#line 7642 "" ++a1ll_2.nnl[c1ommvl_1.ivx - 1]; -#line 7591 "" +#line 7643 "" if (a1ll_2.nnl[c1ommvl_1.ivx - 1] > 200) { -#line 7592 "" +#line 7644 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7592 "" +#line 7644 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, ">200 notes in line of mu"\ "sic. Use smaller blocks!", (ftnlen)128, (ftnlen)48); -#line 7594 "" +#line 7646 "" stop1_(); -#line 7595 "" +#line 7647 "" } -#line 7596 "" +#line 7648 "" *(unsigned char *)dotq = 'x'; /* Check if this is 'r ' and previous note was full-bar-pause */ -#line 7600 "" +#line 7652 "" i__1 = a1ll_2.iccount; /* Computing MAX */ -#line 7600 "" +#line 7652 "" i__4 = 1, i__5 = a1ll_2.nnl[c1ommvl_1.ivx - 1] - 1; /* Computing MAX */ -#line 7600 "" +#line 7652 "" i__6 = 1, i__7 = a1ll_2.nnl[c1ommvl_1.ivx - 1] - 1; -#line 7600 "" +#line 7652 "" fulbrp = *(unsigned char *)charq == 'r' && s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, (ftnlen)1) == 0 && a1ll_2.nnl[ c1ommvl_1.ivx - 1] > 1 && a1ll_2.rest[c1ommvl_1.ivx + max( i__4,i__5) * 24 - 25] && a1ll_2.nodur[c1ommvl_1.ivx + max( i__6,i__7) * 24 - 25] == a1ll_2.lenbar; -#line 7603 "" +#line 7655 "" L2: -#line 7603 "" +#line 7655 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 7604 "" +#line 7656 "" ic = *(unsigned char *)durq; -#line 7605 "" +#line 7657 "" if (ic <= 57 && ic >= 48) { /* Digit */ -#line 7609 "" +#line 7661 "" if (numnum == 0) { -#line 7610 "" +#line 7662 "" c1omnotes_1.nnodur = ic - 48; -#line 7611 "" +#line 7663 "" numnum = 1; -#line 7612 "" +#line 7664 "" goto L2; -#line 7613 "" +#line 7665 "" } else if (numnum == 1) { -#line 7614 "" +#line 7666 "" if (*(unsigned char *)charq == 'r') { -#line 7615 "" +#line 7667 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7615 "" +#line 7667 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only one digit a"\ "llowed after rest symbol \"r\"!", (ftnlen)128, ( ftnlen)45); -#line 7617 "" +#line 7669 "" stop1_(); -#line 7618 "" +#line 7670 "" } -#line 7619 "" +#line 7671 "" numnum = 2; -#line 7620 "" +#line 7672 "" if (plusmin) { -#line 7621 "" - s_wsle(&io___598); -#line 7621 "" - e_wsle(); -#line 7622 "" +#line 7673 "" s_wsle(&io___599); -#line 7622 "" +#line 7673 "" + e_wsle(); +#line 7674 "" + s_wsle(&io___600); +#line 7674 "" do_lio(&c__9, &c__1, "*********WARNING*********", (ftnlen) 25); -#line 7622 "" +#line 7674 "" e_wsle(); -#line 7623 "" +#line 7675 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7623 "" +#line 7675 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Before version 1"\ ".2, +/- was ignored if octave was!", (ftnlen)128, (ftnlen)50); -#line 7625 "" - s_wsle(&io___600); -#line 7625 "" +#line 7677 "" + s_wsle(&io___601); +#line 7677 "" do_lio(&c__9, &c__1, "explicitly specified. May need to"\ " edit old editions", (ftnlen)52); -#line 7625 "" +#line 7677 "" e_wsle(); -#line 7627 "" +#line 7679 "" } -#line 7628 "" +#line 7680 "" goto L2; -#line 7629 "" +#line 7681 "" } else { -#line 7630 "" +#line 7682 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7630 "" +#line 7682 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, ">2 digits in note sy"\ "mbol!", (ftnlen)128, (ftnlen)25); -#line 7632 "" +#line 7684 "" stop1_(); -#line 7633 "" +#line 7685 "" } -#line 7634 "" +#line 7686 "" } else if (*(unsigned char *)durq == 'd') { -#line 7635 "" +#line 7687 "" *(unsigned char *)dotq = *(unsigned char *)durq; -#line 7636 "" +#line 7688 "" i__1 = a1ll_2.iccount; -#line 7636 "" +#line 7688 "" if (s_cmp(lineq + i__1, "d", a1ll_2.iccount + 1 - i__1, (ftnlen)1) == 0) { -#line 7637 "" +#line 7689 "" c1omnotes_1.iddot = 1; -#line 7638 "" +#line 7690 "" ++a1ll_2.iccount; /* Since we flow out, double dots won't work with other dot options */ -#line 7642 "" +#line 7694 "" } -#line 7643 "" +#line 7695 "" i__1 = a1ll_2.iccount; -#line 7643 "" +#line 7695 "" if (i_indx("+-", lineq + i__1, (ftnlen)2, a1ll_2.iccount + 1 - i__1) > 0) { /* move a dot, provided a number follows. */ -#line 7647 "" +#line 7699 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 7648 "" +#line 7700 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 7649 "" +#line 7701 "" if (i_indx("0123456789-.", durq, (ftnlen)12, (ftnlen)1) == 0) { /* Backup, exit the loop normally */ -#line 7653 "" +#line 7705 "" a1ll_2.iccount += -2; -#line 7654 "" +#line 7706 "" goto L2; -#line 7655 "" +#line 7707 "" } -#line 7656 "" +#line 7708 "" readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 7657 "" +#line 7709 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) { /* Vertical shift also */ -#line 7661 "" +#line 7713 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 7662 "" +#line 7714 "" if (i_indx("0123456789-.", durq, (ftnlen)12, (ftnlen)1) == 0) { -#line 7663 "" +#line 7715 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7663 "" +#line 7715 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected num"\ "ber after 2nd +/- (shift dot)!", (ftnlen)128, (ftnlen)42); -#line 7665 "" +#line 7717 "" stop1_(); -#line 7666 "" +#line 7718 "" } -#line 7667 "" +#line 7719 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 7668 "" +#line 7720 "" } -#line 7669 "" +#line 7721 "" --a1ll_2.iccount; -#line 7670 "" +#line 7722 "" } -#line 7671 "" +#line 7723 "" goto L2; -#line 7672 "" +#line 7724 "" } else if (i_indx("<>", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Accidental shift */ /* if (index('fsn',lineq(iccount-1:iccount-1)) .eq. 0) then */ -#line 7677 "" +#line 7729 "" i__1 = a1ll_2.iccount - 2; -#line 7677 "" +#line 7729 "" if (i_indx("fsnA", lineq + i__1, (ftnlen)4, a1ll_2.iccount - 1 - i__1) == 0) { -#line 7678 "" +#line 7730 "" i__1 = a1ll_2.iccount - 1; -#line 7678 "" +#line 7730 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7678 "" +#line 7730 "" errmsg_(lineq, &i__1, &i__4, "Expected \"f\", \"s\", \"n\" o"\ "r \"A\" before \"<\" or \">\"!", (ftnlen)128, (ftnlen) 48); /* * 'Expected "f", "s", or "n" before "<" or ">"!') */ -#line 7681 "" +#line 7733 "" stop1_(); -#line 7682 "" +#line 7734 "" } -#line 7683 "" +#line 7735 "" ipm = 1; -#line 7684 "" +#line 7736 "" if (*(unsigned char *)durq == '<') { -#line 7684 "" +#line 7736 "" ipm = -1; -#line 7684 "" +#line 7736 "" } -#line 7685 "" +#line 7737 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 7686 "" +#line 7738 "" if (i_indx("123456789.0", durq, (ftnlen)11, (ftnlen)1) == 0) { -#line 7687 "" +#line 7739 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7687 "" +#line 7739 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected number afte"\ "r </> (accidental shift)!", (ftnlen)128, (ftnlen)45); -#line 7689 "" +#line 7741 "" stop1_(); -#line 7690 "" +#line 7742 "" } -#line 7691 "" +#line 7743 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 7692 "" +#line 7744 "" fnum = ipm * fnum; -#line 7693 "" +#line 7745 "" if (fnum < -5.35f || fnum > 1.f) { -#line 7694 "" +#line 7746 "" i__1 = a1ll_2.iccount - 1; -#line 7694 "" +#line 7746 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7694 "" +#line 7746 "" errmsg_(lineq, &i__1, &i__4, "Horizontal accidental shift mu"\ "st be >-5.35 and <1.0!", (ftnlen)128, (ftnlen)52); -#line 7696 "" +#line 7748 "" stop1_(); -#line 7697 "" +#line 7749 "" } -#line 7698 "" +#line 7750 "" --a1ll_2.iccount; -#line 7699 "" +#line 7751 "" goto L2; -#line 7700 "" +#line 7752 "" } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { -#line 7701 "" +#line 7753 "" if (*(unsigned char *)charq != 'r') { -#line 7702 "" +#line 7754 "" i__1 = a1ll_2.iccount - 2; -#line 7702 "" +#line 7754 "" if (i_indx("fsnA", lineq + i__1, (ftnlen)4, a1ll_2.iccount - 1 - i__1) > 0) { -#line 7703 "" +#line 7755 "" ipm = 1; -#line 7704 "" +#line 7756 "" if (*(unsigned char *)durq == '-') { -#line 7704 "" +#line 7756 "" ipm = -1; -#line 7704 "" +#line 7756 "" } -#line 7705 "" +#line 7757 "" i__1 = a1ll_2.iccount; -#line 7705 "" +#line 7757 "" if (i_indx("0123456789", lineq + i__1, (ftnlen)10, a1ll_2.iccount + 1 - i__1) > 0) { /* This may be start of accidental shift, but may be octave jump; then duration */ -#line 7710 "" +#line 7762 "" icsav = a1ll_2.iccount; -#line 7711 "" +#line 7763 "" ++a1ll_2.iccount; -#line 7712 "" +#line 7764 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen) 128, (ftnlen)1); -#line 7713 "" +#line 7765 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* This is an accid shift since there's a 2nd consecutive signed number. */ /* Check size of 1st number. */ -#line 7718 "" +#line 7770 "" if (fnum > 30.5f) { -#line 7719 "" +#line 7771 "" i__1 = a1ll_2.iccount - 1; -#line 7719 "" +#line 7771 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7719 "" +#line 7771 "" errmsg_(lineq, &i__1, &i__4, "Vertical accid"\ "ental shift must be less than 31!", ( ftnlen)128, (ftnlen)47); -#line 7721 "" +#line 7773 "" stop1_(); -#line 7722 "" +#line 7774 "" } -#line 7723 "" +#line 7775 "" ipm = 1; -#line 7724 "" +#line 7776 "" if (*(unsigned char *)durq == '-') { -#line 7724 "" +#line 7776 "" ipm = -1; -#line 7724 "" +#line 7776 "" } -#line 7725 "" +#line 7777 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen) 128, (ftnlen)1); -#line 7726 "" +#line 7778 "" if (i_indx("1234567890.", durq, (ftnlen)11, ( ftnlen)1) == 0) { -#line 7727 "" +#line 7779 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7727 "" +#line 7779 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expe"\ "cted 2nd number of accidental shift)!" , (ftnlen)128, (ftnlen)41); -#line 7729 "" +#line 7781 "" stop1_(); -#line 7730 "" +#line 7782 "" } -#line 7731 "" +#line 7783 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, ( ftnlen)128, (ftnlen)1); -#line 7732 "" +#line 7784 "" fnum = ipm * fnum; -#line 7733 "" +#line 7785 "" if (fnum < -5.35f || fnum > 1.f) { -#line 7734 "" +#line 7786 "" i__1 = a1ll_2.iccount - 1; -#line 7734 "" +#line 7786 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7734 "" +#line 7786 "" errmsg_(lineq, &i__1, &i__4, "Horiz. acciden"\ "tal shift must be >-5.35 and <1.0!", ( ftnlen)128, (ftnlen)48); -#line 7736 "" +#line 7788 "" stop1_(); -#line 7737 "" +#line 7789 "" } -#line 7738 "" +#line 7790 "" --a1ll_2.iccount; -#line 7739 "" +#line 7791 "" goto L2; -#line 7740 "" +#line 7792 "" } else { /* Not accid shift, reset, then flow out */ -#line 7744 "" +#line 7796 "" a1ll_2.iccount = icsav; -#line 7745 "" +#line 7797 "" } -#line 7746 "" +#line 7798 "" } -#line 7747 "" +#line 7799 "" } -#line 7748 "" +#line 7800 "" plusmin = TRUE_; -#line 7749 "" +#line 7801 "" if (numnum == 2) { -#line 7750 "" - s_wsle(&io___605); -#line 7750 "" - e_wsle(); -#line 7751 "" +#line 7802 "" s_wsle(&io___606); -#line 7751 "" +#line 7802 "" + e_wsle(); +#line 7803 "" + s_wsle(&io___607); +#line 7803 "" do_lio(&c__9, &c__1, "*********WARNING*********", (ftnlen) 25); -#line 7751 "" +#line 7803 "" e_wsle(); -#line 7752 "" +#line 7804 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7752 "" +#line 7804 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Before version 1"\ ".2, +/- was ignored if octave was!", (ftnlen)128, (ftnlen)50); -#line 7754 "" - s_wsle(&io___607); -#line 7754 "" +#line 7806 "" + s_wsle(&io___608); +#line 7806 "" do_lio(&c__9, &c__1, "explicitly specified. May need to"\ " edit old editions", (ftnlen)52); -#line 7754 "" +#line 7806 "" e_wsle(); -#line 7756 "" +#line 7808 "" } -#line 7757 "" +#line 7809 "" goto L2; /* It's a rest containing +|- . Must refer to a vertical shift. Read past. */ -#line 7761 "" +#line 7813 "" } else { -#line 7762 "" +#line 7814 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 7763 "" +#line 7815 "" readnum_(lineq, &a1ll_2.iccount, durq, &dum, (ftnlen)128, ( ftnlen)1); -#line 7764 "" +#line 7816 "" --a1ll_2.iccount; -#line 7765 "" +#line 7817 "" goto L2; -#line 7766 "" +#line 7818 "" } /* else if (index('ulare',durq) .gt. 0) then */ -#line 7768 "" +#line 7820 "" } else if (i_indx("ularec", durq, (ftnlen)6, (ftnlen)1) > 0) { -#line 7769 "" +#line 7821 "" goto L2; -#line 7770 "" - } else if (*(unsigned char *)durq == 'S') { +/* else if (durq .eq. 'S') then */ +#line 7823 "" + } else if (i_indx("LS", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Stemlength change */ -#line 7774 "" +#line 7827 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 7775 "" +#line 7828 "" if (i_indx(".0123456789:", durq, (ftnlen)12, (ftnlen)1) == 0) { -#line 7776 "" +#line 7829 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7776 "" +#line 7829 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "There must be a numb"\ "er or colon here!", (ftnlen)128, (ftnlen)37); -#line 7778 "" +#line 7831 "" stop1_(); -#line 7779 "" +#line 7832 "" } -#line 7780 "" +#line 7833 "" if (*(unsigned char *)durq == ':') { -#line 7781 "" +#line 7834 "" if (! comkeys_1.stickys) { -#line 7782 "" +#line 7835 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7782 "" +#line 7835 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Turned off stick"\ - "y stemshrinks without turning on!", (ftnlen)128, ( - ftnlen)49); -#line 7784 "" + "y stemlegth changes without turning on!", (ftnlen) + 128, (ftnlen)55); +#line 7837 "" stop1_(); -#line 7785 "" +#line 7838 "" } -#line 7786 "" +#line 7839 "" comkeys_1.stickys = FALSE_; -#line 7787 "" +#line 7840 "" goto L2; -#line 7788 "" +#line 7841 "" } -#line 7789 "" +#line 7842 "" readnum_(lineq, &a1ll_2.iccount, durq, &dum, (ftnlen)128, (ftnlen) 1); -#line 7790 "" - if (dum < .5f || dum > 4.f) { -#line 7791 "" +/* if (dum.lt..5 .or. dum.gt.4.) then */ +#line 7844 "" + if (*(unsigned char *)durq == 'L' && dum > 20.f || *(unsigned + char *)durq == 'S' && dum > 4.f) { +#line 7846 "" i__1 = a1ll_2.iccount - 1; -#line 7791 "" +#line 7846 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7791 "" - errmsg_(lineq, &i__1, &i__4, "Stemlength shortening must be "\ - "from .5 to 4!", (ftnlen)128, (ftnlen)43); -#line 7793 "" +#line 7846 "" + errmsg_(lineq, &i__1, &i__4, "Stemlength change amount too b"\ + "ig!", (ftnlen)128, (ftnlen)33); +#line 7848 "" stop1_(); -#line 7794 "" +#line 7849 "" } -#line 7795 "" +#line 7850 "" if (*(unsigned char *)durq != ':') { -#line 7796 "" +#line 7851 "" --a1ll_2.iccount; -#line 7797 "" +#line 7852 "" } else { -#line 7798 "" +#line 7853 "" if (comkeys_1.stickys) { -#line 7799 "" +#line 7854 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7799 "" +#line 7854 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Turned on sticky"\ " stemshrinks when already on!", (ftnlen)128, ( ftnlen)45); -#line 7801 "" +#line 7856 "" stop1_(); -#line 7802 "" +#line 7857 "" } -#line 7803 "" +#line 7858 "" comkeys_1.stickys = TRUE_; -#line 7804 "" +#line 7859 "" } -#line 7805 "" +#line 7860 "" goto L2; -#line 7806 "" +#line 7861 "" } else if (i_indx("fsn", durq, (ftnlen)3, (ftnlen)1) > 0) { /* Check for midi-only accid. CANNOT coesist with accidental position tweaks, so */ /* MUST come right after "f,s,n" */ -#line 7811 "" +#line 7866 "" i__1 = a1ll_2.iccount; -#line 7811 "" +#line 7866 "" if (s_cmp(lineq + i__1, "i", a1ll_2.iccount + 1 - i__1, (ftnlen)1) == 0) { -#line 7811 "" +#line 7866 "" ++a1ll_2.iccount; -#line 7811 "" +#line 7866 "" } -#line 7812 "" +#line 7867 "" goto L2; -#line 7813 "" +#line 7868 "" } else if (*(unsigned char *)durq == 'p') { -#line 7814 "" +#line 7869 "" fulbrp = *(unsigned char *)charq == 'r'; -#line 7815 "" +#line 7870 "" if (! fulbrp) { -#line 7816 "" +#line 7871 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7816 "" +#line 7871 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "The option \"p\" onl"\ "y works with \"r\" (rest)!", (ftnlen)128, (ftnlen)42); -#line 7818 "" +#line 7873 "" stop1_(); -#line 7819 "" +#line 7874 "" } -#line 7820 "" +#line 7875 "" goto L2; -#line 7821 "" +#line 7876 "" } else if (*(unsigned char *)durq == 'b') { -#line 7822 "" +#line 7877 "" if (*(unsigned char *)charq != 'r') { -#line 7823 "" +#line 7878 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7823 "" +#line 7878 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "You entered \"b\"; I"\ " expected \"rb\"!", (ftnlen)128, (ftnlen)33); -#line 7825 "" +#line 7880 "" stop1_(); -#line 7826 "" +#line 7881 "" } else if (numnum == 2) { -#line 7827 "" +#line 7882 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7827 "" +#line 7882 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "You entered \"r\" &"\ " \"b\" with two numbers!", (ftnlen)128, (ftnlen)39); -#line 7829 "" +#line 7884 "" } -#line 7830 "" +#line 7885 "" goto L2; -#line 7831 "" +#line 7886 "" } else if (*(unsigned char *)durq == 'x') { /* Xtuplet. Count number of doubled notes (for unequal xtups) */ -#line 7835 "" +#line 7890 "" if (bit_test(c1ommvl_1.nacc[c1ommvl_1.ivx + a1ll_2.nnl[ c1ommvl_1.ivx - 1] * 24 - 25],18)) { -#line 7836 "" +#line 7891 "" ndoub = 1; -#line 7837 "" +#line 7892 "" } else { -#line 7838 "" +#line 7893 "" ndoub = 0; -#line 7839 "" +#line 7894 "" } /* Will set all durations to 0 except last one. */ -#line 7843 "" +#line 7898 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 7844 "" +#line 7899 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 7845 "" +#line 7900 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7845 "" +#line 7900 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "First char after \""\ "x\" in xtuplet must be \"1\"-\"9\"!", (ftnlen)128, ( ftnlen)48); -#line 7847 "" +#line 7902 "" stop1_(); -#line 7848 "" +#line 7903 "" } -#line 7849 "" +#line 7904 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 7850 "" +#line 7905 "" if (fnum > 99.f) { -#line 7851 "" +#line 7906 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7851 "" +#line 7906 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Xtuplet cannot have "\ "more than 99 notes!", (ftnlen)128, (ftnlen)39); -#line 7853 "" +#line 7908 "" stop1_(); -#line 7854 "" +#line 7909 "" } else if (i_indx(" DFnd", durq, (ftnlen)5, (ftnlen)1) == 0) { -#line 7855 "" +#line 7910 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7855 "" +#line 7910 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only legal character"\ "s here are \" \",\"D\",\"F\",\"n\"!", (ftnlen)128, ( ftnlen)47); -#line 7857 "" +#line 7912 "" stop1_(); -#line 7858 "" +#line 7913 "" } /* End of mandatory xtup inputs. Check for options. Note D,F,d must precede n. */ -#line 7862 "" +#line 7917 "" if (i_indx("DF", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Double xtup note to make an un= xtup. Here, number already set, but may also */ /* have used this before number was set. */ -#line 7867 "" +#line 7922 "" c1ommvl_1.nacc[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = bit_set(c1ommvl_1.nacc[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25],18); -#line 7868 "" +#line 7923 "" ndoub = 1; -#line 7869 "" +#line 7924 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 7870 "" +#line 7925 "" } else if (*(unsigned char *)durq == 'd') { -#line 7871 "" +#line 7926 "" c1ommvl_1.nacc[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = bit_set(c1ommvl_1.nacc[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25],27); -#line 7872 "" +#line 7927 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 7873 "" +#line 7928 "" } -#line 7874 "" +#line 7929 "" if (*(unsigned char *)durq == 'n') { /* Number alteration stuff. After 'n', require '+-123456789fs ', no more 'DF'. */ -#line 7878 "" +#line 7933 "" numshft = 0; -#line 7879 "" +#line 7934 "" L30: -#line 7879 "" +#line 7934 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 7880 "" +#line 7935 "" if (*(unsigned char *)durq == 'f') { -#line 7881 "" +#line 7936 "" goto L30; -#line 7882 "" +#line 7937 "" } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { -#line 7883 "" +#line 7938 "" ++numshft; -#line 7884 "" +#line 7939 "" if (numshft == 3) { -#line 7885 "" +#line 7940 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7885 "" +#line 7940 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only 2 shift"\ "s are allowed after \"n\" in xtup!", (ftnlen) 128, (ftnlen)44); -#line 7887 "" +#line 7942 "" stop1_(); -#line 7888 "" +#line 7943 "" } -#line 7889 "" +#line 7944 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 7890 "" +#line 7945 "" if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) == 0) { -#line 7891 "" +#line 7946 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7891 "" +#line 7946 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "This charact"\ "er should be a digit or \".\"!", (ftnlen)128, (ftnlen)40); -#line 7893 "" +#line 7948 "" stop1_(); -#line 7894 "" +#line 7949 "" } -#line 7895 "" +#line 7950 "" readnum_(lineq, &a1ll_2.iccount, durq, &snum, (ftnlen)128, (ftnlen)1); -#line 7896 "" +#line 7951 "" --a1ll_2.iccount; -#line 7897 "" - if (numshft == 1 && snum > 15.1f || numshft == 2 && snum - > 1.51f) { -#line 7899 "" +/* if ((numshft.eq.1 .and. snum.gt.15.1) .or. */ +#line 7953 "" + if (numshft == 1 && snum > 64.f || numshft == 2 && snum > + 1.51f) { +#line 7955 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7899 "" +#line 7955 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Shift number"\ " after \"n\" in xtup is out of range!", ( ftnlen)128, (ftnlen)47); -#line 7901 "" +#line 7957 "" stop1_(); -#line 7902 "" +#line 7958 "" } -#line 7903 "" +#line 7959 "" goto L30; -#line 7904 "" +#line 7960 "" } else if (*(unsigned char *)durq == 's') { /* Slope alteration for bracket */ -#line 7908 "" +#line 7964 "" getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 7909 "" +#line 7965 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) { -#line 7910 "" +#line 7966 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7910 "" +#line 7966 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "For slope ad"\ "justment, this character must be \"+\" or \"-"\ "\"!", (ftnlen)128, (ftnlen)56); -#line 7912 "" +#line 7968 "" stop1_(); -#line 7913 "" +#line 7969 "" } -#line 7914 "" +#line 7970 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 7915 "" +#line 7971 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 7916 "" +#line 7972 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7916 "" +#line 7972 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "This charact"\ "er should be a digit!", (ftnlen)128, (ftnlen) 33); -#line 7918 "" +#line 7974 "" stop1_(); -#line 7919 "" +#line 7975 "" } -#line 7920 "" +#line 7976 "" readnum_(lineq, &a1ll_2.iccount, durq, &snum, (ftnlen)128, (ftnlen)1); -#line 7921 "" +#line 7977 "" --a1ll_2.iccount; -#line 7922 "" +#line 7978 "" if (i_nint(&snum) > 15) { -#line 7923 "" +#line 7979 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7923 "" +#line 7979 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Slope adjust"\ "ment cannot exceed 15!", (ftnlen)128, (ftnlen) 34); -#line 7925 "" +#line 7981 "" stop1_(); -#line 7926 "" +#line 7982 "" } -#line 7927 "" +#line 7983 "" goto L30; -#line 7928 "" +#line 7984 "" } else if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) > 0) { /* Unsigned integer => alternate printed number */ -#line 7932 "" +#line 7988 "" readnum_(lineq, &a1ll_2.iccount, durq, &snum, (ftnlen)128, (ftnlen)1); -#line 7933 "" +#line 7989 "" if (snum > 15.1f) { -#line 7934 "" +#line 7990 "" i__1 = a1ll_2.iccount - 1; -#line 7934 "" +#line 7990 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7934 "" +#line 7990 "" errmsg_(lineq, &i__1, &i__4, "Alternate xtup number "\ "after \"n\" must be <16!", (ftnlen)128, ( ftnlen)44); -#line 7936 "" +#line 7992 "" stop1_(); -#line 7937 "" +#line 7993 "" } -#line 7938 "" +#line 7994 "" --a1ll_2.iccount; -#line 7939 "" +#line 7995 "" goto L30; -#line 7940 "" +#line 7996 "" } else if (*(unsigned char *)durq != ' ') { -#line 7941 "" +#line 7997 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7941 "" +#line 7997 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\ "r after \"n\" in xtup!", (ftnlen)128, (ftnlen)36); -#line 7943 "" +#line 7999 "" stop1_(); -#line 7944 "" +#line 8000 "" } -#line 7945 "" +#line 8001 "" } -#line 7946 "" +#line 8002 "" ntup = i_nint(&fnum); -#line 7947 "" +#line 8003 "" i__1 = ntup; -#line 7947 "" +#line 8003 "" for (itup = 2; itup <= i__1; ++itup) { -#line 7948 "" +#line 8004 "" a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = 0; -#line 7949 "" +#line 8005 "" ++a1ll_2.nnl[c1ommvl_1.ivx - 1]; -#line 7950 "" +#line 8006 "" L110: -#line 7950 "" +#line 8006 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 7951 "" +#line 8007 "" if (*(unsigned char *)durq == ' ') { -#line 7952 "" +#line 8008 "" goto L110; -#line 7953 "" +#line 8009 "" } else if (*(unsigned char *)durq == 'o') { /* Ornament in xtup. "o" symbol must come AFTER the affected note */ -#line 7957 "" +#line 8013 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 7958 "" +#line 8014 "" if (i_indx("(stmx+Tup._)e:>^bc", dumq, (ftnlen)18, ( ftnlen)1) == 0) { -#line 7959 "" +#line 8015 "" if (i_indx("fg", dumq, (ftnlen)2, (ftnlen)1) > 0) { -#line 7960 "" +#line 8016 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7960 "" +#line 8016 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Fermata "\ "or segno not allowed in xtuplet!", ( ftnlen)128, (ftnlen)40); -#line 7962 "" +#line 8018 "" } else { -#line 7963 "" +#line 8019 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7963 "" +#line 8019 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal "\ "ornament!", (ftnlen)128, (ftnlen)17); -#line 7965 "" +#line 8021 "" } -#line 7966 "" +#line 8022 "" stop1_(); -#line 7967 "" +#line 8023 "" } -#line 7968 "" +#line 8024 "" if (*(unsigned char *)dumq == 'T') { /* Trill. may be followed by 't' and/or number. read 'til blank */ -#line 7972 "" +#line 8028 "" L29: -#line 7972 "" +#line 8028 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 7973 "" +#line 8029 "" if (*(unsigned char *)dumq != ' ') { -#line 7973 "" +#line 8029 "" goto L29; -#line 7973 "" +#line 8029 "" } -#line 7974 "" +#line 8030 "" } else if (*(unsigned char *)dumq == 'e') { -#line 7975 "" +#line 8031 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 7976 "" +#line 8032 "" if (i_indx("sfn?", dumq, (ftnlen)4, (ftnlen)1) == 0) { -#line 7977 "" +#line 8033 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7977 "" +#line 8033 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal "\ "character after \"e\" in edit. accid. sy"\ "mbol!", (ftnlen)128, (ftnlen)51); -#line 7979 "" +#line 8035 "" stop1_(); -#line 7980 "" +#line 8036 "" } -#line 7981 "" +#line 8037 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 7982 "" +#line 8038 "" if (*(unsigned char *)dumq == '?') { -#line 7982 "" +#line 8038 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen) 128, (ftnlen)1); -#line 7982 "" +#line 8038 "" } -#line 7983 "" +#line 8039 "" } else if (*(unsigned char *)dumq == ':') { -#line 7984 "" +#line 8040 "" i__4 = a1ll_2.iccount; -#line 7984 "" +#line 8040 "" if (s_cmp(lineq + i__4, " ", a1ll_2.iccount + 1 - i__4, (ftnlen)1) != 0) { -#line 7985 "" +#line 8041 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7985 "" +#line 8041 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "\":\" mu"\ "st be followed by blank in \"o: \"!", ( ftnlen)128, (ftnlen)39); -#line 7987 "" +#line 8043 "" stop1_(); -#line 7988 "" +#line 8044 "" } else if (! comkeys_1.ornrpt) { -#line 7989 "" +#line 8045 "" i__4 = a1ll_2.iccount - 1; -#line 7989 "" +#line 8045 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7989 "" +#line 8045 "" errmsg_(lineq, &i__4, &i__5, "Turned off repeate"\ "d ornaments before they were on!", ( ftnlen)128, (ftnlen)50); -#line 7991 "" +#line 8047 "" stop1_(); -#line 7992 "" +#line 8048 "" } -#line 7993 "" +#line 8049 "" comkeys_1.ornrpt = FALSE_; -#line 7994 "" +#line 8050 "" } else { -#line 7995 "" +#line 8051 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 7996 "" +#line 8052 "" } -#line 7997 "" +#line 8053 "" if (i_indx("+- :", dumq, (ftnlen)4, (ftnlen)1) == 0) { -#line 7998 "" +#line 8054 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 7998 "" +#line 8054 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal char"\ "acter in ornament symbol!", (ftnlen)128, ( ftnlen)37); -#line 8000 "" +#line 8056 "" stop1_(); -#line 8001 "" +#line 8057 "" } -#line 8002 "" +#line 8058 "" if (*(unsigned char *)dumq == ':') { -#line 8003 "" +#line 8059 "" i__4 = a1ll_2.iccount; -#line 8003 "" +#line 8059 "" if (s_cmp(lineq + i__4, " ", a1ll_2.iccount + 1 - i__4, (ftnlen)1) != 0) { -#line 8004 "" +#line 8060 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8004 "" +#line 8060 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "\":\" mu"\ "st be followed by blank in \"o: \"!", ( ftnlen)128, (ftnlen)39); -#line 8006 "" +#line 8062 "" stop1_(); -#line 8007 "" +#line 8063 "" } else if (comkeys_1.ornrpt) { -#line 8008 "" +#line 8064 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8008 "" +#line 8064 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Turned o"\ "n repeated ornaments but already on!", ( ftnlen)128, (ftnlen)44); -#line 8010 "" +#line 8066 "" stop1_(); -#line 8011 "" +#line 8067 "" } -#line 8012 "" +#line 8068 "" comkeys_1.ornrpt = TRUE_; -#line 8013 "" +#line 8069 "" } -#line 8014 "" +#line 8070 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) { -#line 8015 "" +#line 8071 "" i__4 = a1ll_2.iccount; -#line 8015 "" +#line 8071 "" if (i_indx("0123456789", lineq + i__4, (ftnlen)10, a1ll_2.iccount + 1 - i__4) == 0) { -#line 8017 "" +#line 8073 "" i__4 = a1ll_2.iccount + 1; -#line 8017 "" +#line 8073 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8017 "" +#line 8073 "" errmsg_(lineq, &i__4, &i__5, "There should be an"\ " integer here!", (ftnlen)128, (ftnlen)32); -#line 8019 "" +#line 8075 "" stop1_(); -#line 8020 "" +#line 8076 "" } -#line 8021 "" +#line 8077 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen) 128, (ftnlen)1); -#line 8022 "" +#line 8078 "" if (*(unsigned char *)durq == ':') { -#line 8023 "" +#line 8079 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8023 "" +#line 8079 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Cannot s"\ "hift AND repeat an ornament!", (ftnlen) 128, (ftnlen)36); -#line 8025 "" +#line 8081 "" stop1_(); -#line 8026 "" +#line 8082 "" } /* 12/7/03 Allow horizontal shift on any ornament, not just breath and ceas. */ -#line 8030 "" +#line 8086 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { -#line 8031 "" +#line 8087 "" i__4 = a1ll_2.iccount; -#line 8031 "" +#line 8087 "" if (i_indx(".0123456789", lineq + i__4, (ftnlen) 11, a1ll_2.iccount + 1 - i__4) == 0) { -#line 8033 "" +#line 8089 "" i__4 = a1ll_2.iccount + 1; -#line 8033 "" +#line 8089 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8033 "" +#line 8089 "" errmsg_(lineq, &i__4, &i__5, "There should b"\ "e a number here!", (ftnlen)128, ( ftnlen)30); -#line 8036 "" +#line 8092 "" stop1_(); -#line 8037 "" +#line 8093 "" } -#line 8038 "" +#line 8094 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, ( ftnlen)128, (ftnlen)1); -#line 8039 "" +#line 8095 "" } -#line 8040 "" +#line 8096 "" } -#line 8041 "" +#line 8097 "" goto L110; -#line 8042 "" +#line 8098 "" } else if (i_indx("st(){}", durq, (ftnlen)6, (ftnlen)1) > 0) { /* Slur in xtup */ -#line 8046 "" +#line 8102 "" iposn = 0; -#line 8047 "" +#line 8103 "" numint = 0; -#line 8048 "" +#line 8104 "" L15: -#line 8048 "" +#line 8104 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 8049 "" +#line 8105 "" ++iposn; -#line 8050 "" +#line 8106 "" if (i_indx("udlbfnhtv", dumq, (ftnlen)9, (ftnlen)1) > 0) { -#line 8051 "" +#line 8107 "" if (*(unsigned char *)dumq == 't' && *(unsigned char * )durq == 't') { -#line 8052 "" +#line 8108 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8052 "" +#line 8108 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Cannot u"\ "se \"t\" as an option on a tie!", (ftnlen) 128, (ftnlen)37); -#line 8054 "" +#line 8110 "" stop1_(); -#line 8055 "" +#line 8111 "" } -#line 8056 "" +#line 8112 "" goto L15; -#line 8057 "" +#line 8113 "" } else if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) { -#line 8058 "" +#line 8114 "" ++numint; -#line 8059 "" +#line 8115 "" ++a1ll_2.iccount; -#line 8060 "" +#line 8116 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen) 128, (ftnlen)1); -#line 8061 "" +#line 8117 "" if (numint == 1) { -#line 8062 "" +#line 8118 "" if (i_nint(&fnum) > 30) { -#line 8063 "" +#line 8119 "" i__4 = a1ll_2.iccount - 1; -#line 8063 "" +#line 8119 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8063 "" +#line 8119 "" errmsg_(lineq, &i__4, &i__5, "Magnitude of s"\ "lur height adjustment cannot exceed "\ "30!", (ftnlen)128, (ftnlen)53); -#line 8065 "" +#line 8121 "" stop1_(); -#line 8066 "" +#line 8122 "" } -#line 8067 "" +#line 8123 "" } else if (numint == 2) { -#line 8068 "" +#line 8124 "" if (dabs(fnum) > 6.3f) { -#line 8069 "" +#line 8125 "" i__4 = a1ll_2.iccount - 1; -#line 8069 "" +#line 8125 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8069 "" +#line 8125 "" errmsg_(lineq, &i__4, &i__5, "Slur horiz shi"\ "ft must be in the range (-6.3,6.3)!", (ftnlen)128, (ftnlen)49); -#line 8071 "" +#line 8127 "" stop1_(); -#line 8072 "" +#line 8128 "" } -#line 8073 "" +#line 8129 "" } else { /* Third signed integer, must be a midslur or curve spec. */ -#line 8077 "" +#line 8133 "" if (dabs(fnum) > 31.f) { -#line 8078 "" +#line 8134 "" i__4 = a1ll_2.iccount - 1; -#line 8078 "" +#line 8134 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8078 "" +#line 8134 "" errmsg_(lineq, &i__4, &i__5, "Slur midheight"\ " must be in the range (-31,31)!", ( ftnlen)128, (ftnlen)45); -#line 8080 "" +#line 8136 "" stop1_(); -#line 8081 "" +#line 8137 "" } -#line 8082 "" +#line 8138 "" if (*(unsigned char *)durq == ':') { /* Expecting curve parameters. Get two numbers */ -#line 8086 "" +#line 8142 "" for (i__ = 1; i__ <= 2; ++i__) { -#line 8087 "" +#line 8143 "" ++a1ll_2.iccount; -#line 8088 "" +#line 8144 "" fnum = (real) (*(unsigned char *)&lineq[ a1ll_2.iccount - 1] - 48); -#line 8089 "" +#line 8145 "" if ((r__1 = fnum - 3.5f, dabs(r__1)) > 3.6f) { -#line 8090 "" +#line 8146 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8090 "" +#line 8146 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Slur curve parameter must "\ "be in range (0,7)!", (ftnlen) 128, (ftnlen)44); -#line 8093 "" +#line 8149 "" stop1_(); -#line 8094 "" +#line 8150 "" } -#line 8095 "" +#line 8151 "" /* L40: */ -#line 8095 "" +#line 8151 "" } -#line 8096 "" +#line 8152 "" ++a1ll_2.iccount; -#line 8097 "" +#line 8153 "" } -#line 8098 "" +#line 8154 "" } -#line 8099 "" +#line 8155 "" --a1ll_2.iccount; -#line 8100 "" +#line 8156 "" goto L15; -#line 8102 "" +#line 8158 "" } else if (*(unsigned char *)dumq == 's') { /* What follows should be one or two signed numbers for adjustment of line break */ /* slur, end of 1st segment or start of second. */ -#line 8107 "" +#line 8163 "" if (comslur_1.fontslur) { -#line 8108 "" +#line 8164 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8108 "" +#line 8164 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "May not "\ "use linebreak slur options with font-bas"\ "ed slurs!", (ftnlen)128, (ftnlen)57); -#line 8110 "" +#line 8166 "" stop1_(); -#line 8111 "" +#line 8167 "" } -#line 8112 "" +#line 8168 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 8113 "" +#line 8169 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) == 0) { -#line 8114 "" +#line 8170 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8114 "" +#line 8170 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "This cha"\ "racter must be \"+\" or \"-\"!", (ftnlen) 128, (ftnlen)34); -#line 8116 "" +#line 8172 "" stop1_(); -#line 8117 "" +#line 8173 "" } -#line 8118 "" +#line 8174 "" ++a1ll_2.iccount; -#line 8119 "" +#line 8175 "" readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, (ftnlen) 128, (ftnlen)1); -#line 8120 "" +#line 8176 "" if (i_nint(&fnum) > 30) { -#line 8121 "" +#line 8177 "" i__4 = a1ll_2.iccount - 1; -#line 8121 "" +#line 8177 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8121 "" +#line 8177 "" errmsg_(lineq, &i__4, &i__5, "Magnitude of slur "\ "height adjustment cannot exceed 30!", ( ftnlen)128, (ftnlen)53); -#line 8123 "" +#line 8179 "" stop1_(); -#line 8124 "" +#line 8180 "" } -#line 8125 "" +#line 8181 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) { -#line 8126 "" +#line 8182 "" ++a1ll_2.iccount; -#line 8127 "" +#line 8183 "" readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, ( ftnlen)128, (ftnlen)1); -#line 8128 "" +#line 8184 "" if (dabs(fnum) > 6.3f) { -#line 8129 "" +#line 8185 "" i__4 = a1ll_2.iccount - 1; -#line 8129 "" +#line 8185 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8129 "" +#line 8185 "" errmsg_(lineq, &i__4, &i__5, "Slur horiz shi"\ "ft must be in range (-6.3,6.3)!", ( ftnlen)128, (ftnlen)45); -#line 8131 "" +#line 8187 "" stop1_(); -#line 8132 "" +#line 8188 "" } -#line 8133 "" +#line 8189 "" } -#line 8134 "" +#line 8190 "" --a1ll_2.iccount; -#line 8135 "" +#line 8191 "" goto L15; -#line 8136 "" +#line 8192 "" } else if (*(unsigned char *)dumq == 'H' && iposn > 1) { -#line 8137 "" +#line 8193 "" i__4 = a1ll_2.iccount; -#line 8137 "" +#line 8193 "" if (s_cmp(lineq + i__4, "H", a1ll_2.iccount + 1 - i__4, (ftnlen)1) == 0) { -#line 8137 "" +#line 8193 "" ++a1ll_2.iccount; -#line 8137 "" +#line 8193 "" } -#line 8139 "" +#line 8195 "" goto L15; -#line 8140 "" +#line 8196 "" } else if (*(unsigned char *)dumq == 'p') { /* local change in postscript slur/tie adjustment default */ -#line 8144 "" +#line 8200 "" if (comslur_1.fontslur) { -#line 8145 "" +#line 8201 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8145 "" +#line 8201 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Must use"\ " postscript slurs (\"Ap\") to use this o"\ "ption!", (ftnlen)128, (ftnlen)52); -#line 8147 "" +#line 8203 "" stop1_(); -#line 8148 "" +#line 8204 "" } -#line 8149 "" +#line 8205 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 8150 "" +#line 8206 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) == 0) { -#line 8151 "" +#line 8207 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8151 "" +#line 8207 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expect"\ "ed \"+\" or \"-\" here!", (ftnlen)128, ( ftnlen)25); -#line 8153 "" +#line 8209 "" stop1_(); -#line 8154 "" +#line 8210 "" } -#line 8155 "" +#line 8211 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 8156 "" +#line 8212 "" if (i_indx("st", dumq, (ftnlen)2, (ftnlen)1) == 0) { -#line 8157 "" +#line 8213 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8157 "" +#line 8213 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expect"\ "ed \"s\" or \"t\" here!", (ftnlen)128, ( ftnlen)25); -#line 8159 "" +#line 8215 "" stop1_(); -#line 8160 "" +#line 8216 "" } -#line 8161 "" +#line 8217 "" goto L15; -#line 8162 "" +#line 8218 "" } else if (*(unsigned char *)dumq != ' ') { -#line 8163 "" +#line 8219 "" ic = *(unsigned char *)dumq; -#line 8164 "" +#line 8220 "" if (ic >= 48 && ic <= 57 || ic >= 65 && ic <= 90) { -#line 8166 "" +#line 8222 "" if (iposn == 1) { -#line 8167 "" +#line 8223 "" if (*(unsigned char *)durq == 't' && comslur_1.fontslur) { -#line 8168 "" +#line 8224 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8168 "" +#line 8224 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Slur ID not allowed on non-post"\ "script tie!", (ftnlen)128, ( ftnlen)42); -#line 8170 "" +#line 8226 "" stop1_(); -#line 8171 "" +#line 8227 "" } -#line 8172 "" +#line 8228 "" goto L15; -#line 8173 "" +#line 8229 "" } -#line 8174 "" +#line 8230 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8174 "" +#line 8230 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Slur ID "\ "must be 2nd character in slur symbol!", ( ftnlen)128, (ftnlen)45); -#line 8176 "" +#line 8232 "" stop1_(); -#line 8177 "" +#line 8233 "" } -#line 8178 "" +#line 8234 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8178 "" +#line 8234 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal char"\ "acter in slur symbol!", (ftnlen)128, (ftnlen) 33); -#line 8180 "" +#line 8236 "" stop1_(); -#line 8181 "" +#line 8237 "" } -#line 8182 "" +#line 8238 "" goto L110; -#line 8183 "" +#line 8239 "" } else if (i_indx("0123456789#-nx_", durq, (ftnlen)15, ( ftnlen)1) > 0) { /* We have a figure. Only allow on 1st note of xtup */ -#line 8187 "" +#line 8243 "" if (itup != 2) { -#line 8188 "" +#line 8244 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8188 "" +#line 8244 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Figure in xt"\ "up only allowed on 1st note!", (ftnlen)128, ( ftnlen)40); -#line 8190 "" +#line 8246 "" stop1_(); -#line 8191 "" +#line 8247 "" } else if (*(unsigned char *)durq == 'x') { -#line 8192 "" +#line 8248 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8192 "" +#line 8248 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "No floating "\ "figures in xtuplets!", (ftnlen)128, (ftnlen) 32); -#line 8194 "" +#line 8250 "" stop1_(); -#line 8195 "" +#line 8251 "" } -#line 8196 "" +#line 8252 "" if (compage_1.usefig && c1ommvl_1.ivx == 1) { -#line 8196 "" +#line 8252 "" *ifig = 1; -#line 8196 "" +#line 8252 "" } -#line 8197 "" +#line 8253 "" L26: -#line 8197 "" +#line 8253 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); /* if (index('0123456789#-n_.:',durq) .gt. 0) then */ -#line 8199 "" +#line 8255 "" if (i_indx("0123456789#-n_.:v", durq, (ftnlen)17, (ftnlen) 1) > 0) { -#line 8200 "" +#line 8256 "" goto L26; -#line 8201 "" +#line 8257 "" } else if (*(unsigned char *)durq == 's') { -#line 8202 "" +#line 8258 "" comligfont_1.isligfont = TRUE_; -#line 8203 "" +#line 8259 "" goto L26; -#line 8204 "" +#line 8260 "" } else if (*(unsigned char *)durq == '+') { /* vertical offset, must be integer then blank */ -#line 8208 "" +#line 8264 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 8209 "" +#line 8265 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) != 0) { -#line 8210 "" +#line 8266 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8210 "" +#line 8266 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Integer "\ "for vertical offset expected here!", ( ftnlen)128, (ftnlen)42); -#line 8212 "" +#line 8268 "" stop1_(); -#line 8213 "" +#line 8269 "" } -#line 8214 "" +#line 8270 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen) 128, (ftnlen)1); -#line 8215 "" +#line 8271 "" if (*(unsigned char *)durq != ' ') { -#line 8216 "" +#line 8272 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8216 "" +#line 8272 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Vertical"\ " offset must terminate figure!", (ftnlen) 128, (ftnlen)38); -#line 8218 "" +#line 8274 "" stop1_(); -#line 8219 "" +#line 8275 "" } -#line 8220 "" +#line 8276 "" --a1ll_2.iccount; -#line 8221 "" +#line 8277 "" goto L26; -#line 8222 "" +#line 8278 "" } else if (*(unsigned char *)durq != ' ') { -#line 8223 "" +#line 8279 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8223 "" +#line 8279 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal char"\ "acter in figure in xtuplet!", (ftnlen)128, ( ftnlen)39); -#line 8225 "" +#line 8281 "" stop1_(); -#line 8226 "" +#line 8282 "" } -#line 8227 "" +#line 8283 "" goto L110; -#line 8228 "" +#line 8284 "" } else if (*(unsigned char *)durq == 'G') { -#line 8229 "" +#line 8285 "" ngr = 1; -#line 8230 "" +#line 8286 "" L79: -#line 8230 "" +#line 8286 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, ( ftnlen)1); -#line 8231 "" +#line 8287 "" if (i_indx("123456789", charq, (ftnlen)9, (ftnlen)1) > 0) { -#line 8232 "" +#line 8288 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen) 128, (ftnlen)1); -#line 8233 "" +#line 8289 "" ngr = i_nint(&fnum); -#line 8234 "" +#line 8290 "" --a1ll_2.iccount; -#line 8235 "" +#line 8291 "" goto L79; -#line 8236 "" +#line 8292 "" } else if (i_indx("AWulxs", charq, (ftnlen)6, (ftnlen)1) > 0) { -#line 8237 "" +#line 8293 "" goto L79; -#line 8238 "" +#line 8294 "" } else if (*(unsigned char *)charq == 'm') { -#line 8239 "" +#line 8295 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 8240 "" +#line 8296 "" if (i_indx("01234", charq, (ftnlen)5, (ftnlen)1) == 0) { -#line 8241 "" +#line 8297 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8241 "" +#line 8297 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "A digit "\ "less than 5 must follow \"m\" in a grace"\ " note!", (ftnlen)128, (ftnlen)52); -#line 8243 "" +#line 8299 "" stop1_(); -#line 8244 "" +#line 8300 "" } -#line 8245 "" +#line 8301 "" goto L79; -#line 8246 "" +#line 8302 "" } else if (*(unsigned char *)charq == 'X') { /* Space before main note */ -#line 8250 "" +#line 8306 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 8251 "" +#line 8307 "" if (i_indx("0123456789.", charq, (ftnlen)11, (ftnlen) 1) > 0) { -#line 8252 "" +#line 8308 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, ( ftnlen)128, (ftnlen)1); -#line 8253 "" +#line 8309 "" --a1ll_2.iccount; -#line 8254 "" +#line 8310 "" goto L79; -#line 8255 "" +#line 8311 "" } else { -#line 8256 "" +#line 8312 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8256 "" +#line 8312 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "A number"\ " must follow \"X\" in a grace note!", ( ftnlen)128, (ftnlen)41); -#line 8258 "" +#line 8314 "" stop1_(); -#line 8259 "" +#line 8315 "" } -#line 8260 "" +#line 8316 "" } /* At this point, charq is first note name in rest (grace?) */ -#line 8264 "" +#line 8320 "" i__4 = ngr; -#line 8264 "" +#line 8320 "" for (igr = 1; igr <= i__4; ++igr) { -#line 8265 "" +#line 8321 "" numnum = 0; -#line 8266 "" +#line 8322 "" if (igr > 1) { -#line 8267 "" +#line 8323 "" L75: -#line 8267 "" +#line 8323 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen) 128, (ftnlen)1); -#line 8268 "" +#line 8324 "" if (*(unsigned char *)charq == ' ') { -#line 8268 "" +#line 8324 "" goto L75; -#line 8268 "" +#line 8324 "" } -#line 8269 "" +#line 8325 "" } -#line 8270 "" +#line 8326 "" if (i_indx("abcdefg", charq, (ftnlen)7, (ftnlen)1) == 0) { -#line 8271 "" +#line 8327 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8271 "" +#line 8327 "" errmsg_(lineq, &a1ll_2.iccount, &i__5, "In grace"\ ", expected \"a\"-\"g\"!", (ftnlen)128, ( ftnlen)27); -#line 8273 "" +#line 8329 "" stop1_(); -#line 8274 "" +#line 8330 "" } -#line 8275 "" +#line 8331 "" L78: -#line 8275 "" +#line 8331 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 8276 "" +#line 8332 "" if (*(unsigned char *)charq != ' ') { -#line 8277 "" +#line 8333 "" if (i_indx("1234567", charq, (ftnlen)7, (ftnlen)1) > 0) { -#line 8278 "" +#line 8334 "" if (numnum == 1) { -#line 8279 "" +#line 8335 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8279 "" +#line 8335 "" errmsg_(lineq, &a1ll_2.iccount, &i__5, "Only one of \"+-1234567\" allow"\ "ed here in grace!", (ftnlen)128, ( ftnlen)46); -#line 8281 "" +#line 8337 "" stop1_(); -#line 8282 "" +#line 8338 "" } -#line 8283 "" +#line 8339 "" numnum = 1; -#line 8284 "" +#line 8340 "" goto L78; -#line 8285 "" +#line 8341 "" } else if (i_indx("+-nfs", charq, (ftnlen)5, ( ftnlen)1) > 0) { -#line 8286 "" +#line 8342 "" goto L78; -#line 8287 "" +#line 8343 "" } /* Digits are possible octave numbers */ -#line 8291 "" +#line 8347 "" i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8291 "" +#line 8347 "" errmsg_(lineq, &a1ll_2.iccount, &i__5, "Illegal "\ "character after note name in grace!", ( ftnlen)128, (ftnlen)43); -#line 8293 "" +#line 8349 "" stop1_(); -#line 8294 "" +#line 8350 "" } -#line 8295 "" +#line 8351 "" /* L71: */ -#line 8295 "" +#line 8351 "" } -#line 8296 "" +#line 8352 "" goto L110; -#line 8297 "" +#line 8353 "" } else /* if(complicated condition) */ { -#line 8297 "" +#line 8353 "" chax_(ch__2, (ftnlen)1, &c__92); -#line 8297 "" +#line 8353 "" if (*(unsigned char *)durq == *(unsigned char *)&ch__2[0]) { -#line 8298 "" +#line 8354 "" chklit_(lineq, &a1ll_2.iccount, &literr, (ftnlen)128); -#line 8299 "" +#line 8355 "" if (literr > 0) { -#line 8300 "" +#line 8356 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8300 "" +#line 8356 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, literq + ( literr - 1) * 51, (ftnlen)128, (ftnlen)51) ; -#line 8302 "" +#line 8358 "" stop1_(); -#line 8303 "" +#line 8359 "" } -#line 8304 "" +#line 8360 "" goto L110; -#line 8305 "" +#line 8361 "" } else if (*(unsigned char *)durq == '"') { /* pmx lyric */ -#line 8309 "" +#line 8365 "" chkpmxlyr_(lineq, &a1ll_2.iccount, &lyrerr, (ftnlen) 128); -#line 8310 "" +#line 8366 "" if (lyrerr > 0) { -#line 8311 "" +#line 8367 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8311 "" +#line 8367 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, lyrerq + ( lyrerr - 1) * 51, (ftnlen)128, (ftnlen)51) ; -#line 8313 "" +#line 8369 "" stop1_(); -#line 8314 "" +#line 8370 "" } -#line 8315 "" +#line 8371 "" goto L110; -#line 8316 "" +#line 8372 "" } else if (*(unsigned char *)durq == 'M') { /* Temporary trap until I get around putting this in pmxb */ -#line 8320 "" +#line 8376 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8320 "" +#line 8376 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Macros not y"\ "et allowed in xtuplets!", (ftnlen)128, ( ftnlen)35); -#line 8322 "" +#line 8378 "" stop1_(); -#line 8323 "" +#line 8379 "" } else if (*(unsigned char *)durq == 'X') { -#line 8324 "" +#line 8380 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8324 "" +#line 8380 "" g1etx_(lineq, &a1ll_2.iccount, &comkeys_1.shifton, & i__4, &c1omnotes_1.udsp[c1omnotes_1.ibarcnt + a1ll_2.nbars], &c1omnotes_1.wheadpt, (ftnlen) 128); -#line 8326 "" +#line 8382 "" goto L110; -#line 8327 "" +#line 8383 "" } else if (*(unsigned char *)durq == 'z') { /* Chord note in xtup. Read past for now. */ -#line 8331 "" +#line 8387 "" L33: -#line 8331 "" +#line 8387 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 8332 "" +#line 8388 "" if (*(unsigned char *)durq != ' ') { -#line 8332 "" +#line 8388 "" goto L33; -#line 8332 "" +#line 8388 "" } -#line 8333 "" +#line 8389 "" goto L110; -#line 8334 "" +#line 8390 "" } else if (*(unsigned char *)durq == 'D') { /* Dynamic mark */ -#line 8338 "" +#line 8394 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8338 "" +#line 8394 "" checkdyn_(lineq, &a1ll_2.iccount, &i__4, (ftnlen)128); -#line 8339 "" +#line 8395 "" goto L110; -#line 8340 "" +#line 8396 "" } else if (*(unsigned char *)durq == '%') { -#line 8341 "" +#line 8397 "" if (a1ll_2.iccount != 1) { -#line 8342 "" +#line 8398 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8342 "" +#line 8398 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Comment "\ "must have \"%\" in column 1!", (ftnlen) 128, (ftnlen)34); -#line 8344 "" +#line 8400 "" stop1_(); -#line 8345 "" +#line 8401 "" } -#line 8346 "" +#line 8402 "" a1ll_2.iccount = 128; -#line 8347 "" +#line 8403 "" goto L110; -#line 8348 "" +#line 8404 "" } else if (*(unsigned char *)durq == '?') { -#line 8349 "" +#line 8405 "" getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 8350 "" +#line 8406 "" if (*(unsigned char *)durq == ' ') { -#line 8351 "" +#line 8407 "" --a1ll_2.iccount; -#line 8352 "" +#line 8408 "" goto L110; -#line 8353 "" +#line 8409 "" } -#line 8354 "" +#line 8410 "" if (*(unsigned char *)durq != '-') { -#line 8355 "" +#line 8411 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8355 "" +#line 8411 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expectin"\ "g \"-\"", (ftnlen)128, (ftnlen)13); -#line 8357 "" +#line 8413 "" stop1_(); -#line 8358 "" +#line 8414 "" } -#line 8359 "" +#line 8415 "" getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 8360 "" +#line 8416 "" if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) == 0) { -#line 8361 "" +#line 8417 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8361 "" +#line 8417 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expectin"\ "g number", (ftnlen)128, (ftnlen)16); -#line 8363 "" +#line 8419 "" stop1_(); -#line 8364 "" +#line 8420 "" } -#line 8365 "" +#line 8421 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen) 128, (ftnlen)1); -#line 8366 "" +#line 8422 "" --a1ll_2.iccount; -#line 8367 "" +#line 8423 "" goto L110; /* 140215 Allow clef change inside xtup */ -#line 8371 "" +#line 8427 "" } else if (*(unsigned char *)durq == 'C') { -#line 8372 "" +#line 8428 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 8373 "" +#line 8429 "" if (! (i_indx("tsmanrbf", durq, (ftnlen)8, (ftnlen)1) > 0 || *(unsigned char *)durq >= 48 && *( unsigned char *)durq <= 56)) { /* * (ichar(durq).ge.48 .and. ichar(durq).le.55))) then */ -#line 8376 "" +#line 8432 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8376 "" +#line 8432 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Must hav"\ "e t,s,m,a,n,r,b,f or 0-8 after C!", ( ftnlen)128, (ftnlen)41); -#line 8378 "" +#line 8434 "" stop1_(); -#line 8379 "" +#line 8435 "" } /* gotclef = .true. */ -#line 8381 "" +#line 8437 "" goto L110; /* +++ */ -#line 8383 "" +#line 8439 "" } else /* if(complicated condition) */ { -#line 8383 "" +#line 8439 "" i__4 = a1ll_2.iccount; -#line 8383 "" +#line 8439 "" i__5 = a1ll_2.iccount + 1; -#line 8383 "" +#line 8439 "" if (*(unsigned char *)durq == ']' && s_cmp(lineq + i__4, "[", a1ll_2.iccount + 1 - i__4, (ftnlen) 1) == 0 && s_cmp(lineq + i__5, " ", a1ll_2.iccount + 2 - i__5, (ftnlen)1) == 0) { -#line 8385 "" +#line 8441 "" a1ll_2.iccount += 2; -#line 8386 "" +#line 8442 "" goto L110; /* +++ */ -#line 8388 "" +#line 8444 "" } -#line 8388 "" +#line 8444 "" } -#line 8388 "" +#line 8444 "" } /* End of xtup options. At this point symbol can only be note or rest */ -#line 8392 "" +#line 8448 "" if (i_indx("abcdefgr", durq, (ftnlen)8, (ftnlen)1) == 0) { -#line 8393 "" +#line 8449 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8393 "" +#line 8449 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "In xtup, this ch"\ "aracter is not allowed!", (ftnlen)128, (ftnlen)39) ; -#line 8395 "" - stop1_(); -#line 8396 "" - } else if (*(unsigned char *)durq == 'r' && itup == ntup) { -#line 8397 "" - i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + - a1ll_2.nbars + 1; -#line 8397 "" - errmsg_(lineq, &a1ll_2.iccount, &i__4, "Sorry, PMX canno"\ - "t end an xtuplet with a rest!", (ftnlen)128, ( - ftnlen)45); -#line 8399 "" +#line 8451 "" stop1_(); -#line 8400 "" +/* else if (durq.eq.'r' .and. itup.eq.ntup) then */ +/* call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, */ +/* * 'Sorry, PMX cannot end an xtuplet with a rest!') */ +/* call stop1() */ +#line 8456 "" + } else /* if(complicated condition) */ { +#line 8456 "" + i__4 = a1ll_2.iccount; +#line 8456 "" + if (*(unsigned char *)durq == 'r' && itup == ntup && + i_indx(lineq + i__4, "b", a1ll_2.iccount + 2 - + i__4, (ftnlen)1) == 0) { +#line 8458 "" + i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + + a1ll_2.nbars + 1; +#line 8458 "" + errmsg_(lineq, &a1ll_2.iccount, &i__4, "Sorry, PMX c"\ + "annot end an xtuplet with a non-blank rest!", + (ftnlen)128, (ftnlen)55); +#line 8460 "" + stop1_(); +#line 8461 "" + } +#line 8461 "" } -#line 8401 "" +#line 8462 "" L7: -#line 8401 "" +#line 8462 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 8402 "" +#line 8463 "" if (i_indx("2345678ulcb", durq, (ftnlen)11, (ftnlen)1) > 0) { -#line 8403 "" +#line 8464 "" goto L7; -#line 8404 "" +#line 8465 "" } else if (i_indx("sfn", durq, (ftnlen)3, (ftnlen)1) > 0) { /* Check for MIDI-only accidental. Cannot coexist with accid. pos'n shift. */ -#line 8408 "" +#line 8469 "" i__4 = a1ll_2.iccount; -#line 8408 "" +#line 8469 "" if (s_cmp(lineq + i__4, "i", a1ll_2.iccount + 1 - i__4, ( ftnlen)1) == 0) { -#line 8408 "" +#line 8469 "" ++a1ll_2.iccount; -#line 8408 "" +#line 8469 "" } -#line 8409 "" +#line 8470 "" goto L7; -#line 8410 "" +#line 8471 "" } else if (i_indx("+-<>", durq, (ftnlen)4, (ftnlen)1) > 0) { /* May have either octave jump or shifted accid. on main xtup note */ -#line 8414 "" +#line 8475 "" i__4 = a1ll_2.iccount; -#line 8414 "" +#line 8475 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0 && i_indx("01234567890", lineq + i__4, (ftnlen)11, a1ll_2.iccount + 1 - i__4) == 0) { -#line 8414 "" +#line 8475 "" goto L7; -#line 8414 "" +#line 8475 "" } -#line 8417 "" +#line 8478 "" ++a1ll_2.iccount; -#line 8418 "" +#line 8479 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 8419 "" +#line 8480 "" --a1ll_2.iccount; -#line 8420 "" +#line 8481 "" goto L7; -#line 8421 "" +#line 8482 "" } else if (i_indx("DF", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Double an xtup note to make an unequal xtup */ -#line 8425 "" +#line 8486 "" c1ommvl_1.nacc[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = bit_set(c1ommvl_1.nacc[ c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25],18); -#line 8426 "" +#line 8487 "" ++ndoub; -#line 8427 "" +#line 8488 "" goto L7; -#line 8428 "" +#line 8489 "" } else if (*(unsigned char *)durq == 'd') { -#line 8429 "" +#line 8490 "" c1ommvl_1.nacc[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = bit_set(c1ommvl_1.nacc[ c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25],27); -#line 8430 "" +#line 8491 "" goto L7; -#line 8431 "" +#line 8492 "" } else if (*(unsigned char *)durq != ' ') { -#line 8432 "" +#line 8493 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8432 "" +#line 8493 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal option o"\ "n xtuplet note!", (ftnlen)128, (ftnlen)31); -#line 8434 "" +#line 8495 "" stop1_(); -#line 8435 "" +#line 8496 "" } -#line 8436 "" +#line 8497 "" if (itup == ntup - ndoub) { -#line 8436 "" +#line 8497 "" goto L3; -#line 8436 "" +#line 8497 "" } -#line 8437 "" +#line 8498 "" /* L6: */ -#line 8437 "" +#line 8498 "" } -#line 8438 "" +#line 8499 "" L3: /* 6==End of loop for xtuplet input */ -#line 8442 "" +#line 8503 "" ; -#line 8442 "" +#line 8503 "" } else if (*(unsigned char *)durq == 'm') { /* Multi-bar rest: next 1 or two digits are # of bars. */ -#line 8446 "" +#line 8507 "" if (a1ll_2.itsofar[a1ll_2.iv - 1] % a1ll_2.lenbar != 0) { -#line 8447 "" +#line 8508 "" i__1 = a1ll_2.iccount - 1; -#line 8447 "" +#line 8508 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8447 "" +#line 8508 "" errmsg_(lineq, &i__1, &i__4, "Multibar rest must start at be"\ "ginning of bar!", (ftnlen)128, (ftnlen)45); -#line 8449 "" +#line 8510 "" stop1_(); -#line 8450 "" +#line 8511 "" } else if (a1ll_2.iv == 1 && c1omnotes_1.ibarmbr > 0) { -#line 8451 "" +#line 8512 "" i__1 = a1ll_2.iccount - 1; -#line 8451 "" +#line 8512 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8451 "" +#line 8512 "" errmsg_(lineq, &i__1, &i__4, "Multibar rest only OK at one t"\ "ime per block!", (ftnlen)128, (ftnlen)44); -#line 8453 "" +#line 8514 "" stop1_(); -#line 8454 "" +#line 8515 "" } /* For some purposes, pretend its one bar only */ -#line 8458 "" +#line 8519 "" a1ll_2.nodur[a1ll_2.iv + a1ll_2.nnl[a1ll_2.iv - 1] * 24 - 25] = a1ll_2.lenbar; -#line 8459 "" +#line 8520 "" c1omnotes_1.ibarmbr = a1ll_2.nbars + 1; -#line 8460 "" +#line 8521 "" c1omnotes_1.mbrest = 0; /* 20 call g1etchar(lineq,iccount,durq) */ -#line 8462 "" +#line 8523 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 8463 "" +#line 8524 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 8464 "" +#line 8525 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8464 "" +#line 8525 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected an integer "\ "after \"rm\"!", (ftnlen)128, (ftnlen)31); -#line 8466 "" +#line 8527 "" stop1_(); -#line 8467 "" +#line 8528 "" } -#line 8468 "" +#line 8529 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 8469 "" +#line 8530 "" c1omnotes_1.mbrest = i_nint(&fnum); -#line 8470 "" +#line 8531 "" --a1ll_2.iccount; /* if (ichar(durq).ge.48.and.ichar(durq).le.57) then */ /* mbrest = 10*mbrest+ichar(durq)-48 */ /* go to 20 */ /* end if */ -#line 8475 "" +#line 8536 "" if (a1ll_2.nv > 1) { -#line 8476 "" +#line 8537 "" if (a1ll_2.iv == 1) { -#line 8477 "" +#line 8538 "" comkeys_1.mbrestsav = c1omnotes_1.mbrest; -#line 8478 "" +#line 8539 "" } else { -#line 8479 "" +#line 8540 "" if (c1omnotes_1.mbrest != comkeys_1.mbrestsav) { -#line 8480 "" +#line 8541 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8480 "" +#line 8541 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must enter s"\ "ame multi-bar rest in every voice!", (ftnlen) 128, (ftnlen)46); -#line 8482 "" +#line 8543 "" stop1_(); -#line 8483 "" +#line 8544 "" } -#line 8484 "" +#line 8545 "" } /* Zero out mbrestsav so can check at end of input block whether */ /* all voices have one */ -#line 8489 "" +#line 8550 "" if (a1ll_2.iv == a1ll_2.nv) { -#line 8489 "" +#line 8550 "" comkeys_1.mbrestsav = 0; -#line 8489 "" +#line 8550 "" } -#line 8490 "" +#line 8551 "" } -#line 8491 "" +#line 8552 "" if (*(unsigned char *)durq != ' ') { -#line 8492 "" +#line 8553 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8492 "" +#line 8553 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character af"\ "ter \"rm\"!", (ftnlen)128, (ftnlen)29); -#line 8494 "" +#line 8555 "" stop1_(); -#line 8495 "" +#line 8556 "" } -#line 8496 "" +#line 8557 "" } else if (*(unsigned char *)durq == '.') { /* Dotted pattern. Close out note. Mult time by 3/4. */ /* Set time for next note to 1/4. Start the note. */ -#line 8501 "" +#line 8562 "" idotform = 1; -#line 8502 "" +#line 8563 "" } else if (*(unsigned char *)durq == ',') { -#line 8503 "" +#line 8564 "" idotform = 3; /* Now flow to duration setting, as if durq=' ' */ -#line 8507 "" +#line 8568 "" } else if (i_indx("oL", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Suppress full bar rest, or look left for height */ -#line 8511 "" +#line 8572 "" if (*(unsigned char *)charq != 'r') { -#line 8512 "" +#line 8573 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8512 "" +#line 8573 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"o\",\"L\" options "\ "only legal for rest, not note!", (ftnlen)128, (ftnlen) 46); -#line 8514 "" +#line 8575 "" stop1_(); -#line 8515 "" +#line 8576 "" } -#line 8516 "" +#line 8577 "" goto L2; -#line 8517 "" +#line 8578 "" } else if (i_indx("DF", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Double note for xtup. Must check here in case "D" or "F" came before "x" or on */ /* last note of xtup. Need to flag it in pmxa since affects horiz. spacing. */ -#line 8522 "" +#line 8583 "" c1ommvl_1.nacc[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = bit_set(c1ommvl_1.nacc[c1ommvl_1.ivx + a1ll_2.nnl[ c1ommvl_1.ivx - 1] * 24 - 25],18); -#line 8523 "" +#line 8584 "" goto L2; -#line 8524 "" +#line 8585 "" } else if (*(unsigned char *)durq == 'A') { /* Main note accidental option */ -#line 8528 "" +#line 8589 "" getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 8529 "" +#line 8590 "" if (i_indx("o+-<>", durq, (ftnlen)5, (ftnlen)1) == 0) { -#line 8530 "" +#line 8591 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8530 "" +#line 8591 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"o\",+\",\"-\",\""\ "<\",\">\" are the only legal options here!", (ftnlen) 128, (ftnlen)51); -#line 8532 "" +#line 8593 "" stop1_(); -#line 8533 "" +#line 8594 "" } /* Need more stuff here */ -#line 8537 "" +#line 8598 "" if (*(unsigned char *)durq != 'o') { /* Back up 1, flow out, will get +|-|<|> next loop preceded by "A", and will */ /* proceed to number input checking */ -#line 8542 "" +#line 8603 "" --a1ll_2.iccount; -#line 8543 "" +#line 8604 "" } -#line 8544 "" +#line 8605 "" goto L2; -#line 8545 "" +#line 8606 "" } else if (*(unsigned char *)durq != ' ') { -#line 8546 "" +#line 8607 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8546 "" +#line 8607 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character!", ( ftnlen)128, (ftnlen)18); -#line 8548 "" - s_wsle(&io___621); -#line 8548 "" +#line 8609 "" + s_wsle(&io___622); +#line 8609 "" do_lio(&c__9, &c__1, "ASCII code:", (ftnlen)11); -#line 8548 "" +#line 8609 "" i__1 = *(unsigned char *)durq; -#line 8548 "" +#line 8609 "" do_lio(&c__3, &c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 8548 "" +#line 8609 "" e_wsle(); -#line 8549 "" +#line 8610 "" stop1_(); -#line 8550 "" +#line 8611 "" } /* End of block for note options. */ /* Set the duration */ -#line 8556 "" +#line 8617 "" if (idotform > 0) { -#line 8557 "" +#line 8618 "" if (idotform == 1) { -#line 8558 "" +#line 8619 "" a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = i1fnodur_(&c1omnotes_1.nnodur, dotq, ( ftnlen)1) * 3 / 2; -#line 8559 "" +#line 8620 "" } else if (idotform == 2) { -#line 8560 "" +#line 8621 "" a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = a1ll_2.nodur[c1ommvl_1.ivx + (a1ll_2.nnl[ c1ommvl_1.ivx - 1] - 1) * 24 - 25] / 3; -#line 8561 "" +#line 8622 "" } else if (idotform == 3) { -#line 8562 "" +#line 8623 "" a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = i1fnodur_(&c1omnotes_1.nnodur, dotq, ( ftnlen)1); -#line 8563 "" +#line 8624 "" } else if (idotform == 4) { -#line 8564 "" +#line 8625 "" a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = a1ll_2.nodur[c1ommvl_1.ivx + (a1ll_2.nnl[ c1ommvl_1.ivx - 1] - 1) * 24 - 25] / 2; -#line 8565 "" +#line 8626 "" } -#line 8566 "" +#line 8627 "" } else if (c1omnotes_1.ibarmbr != a1ll_2.nbars + 1 && ! fulbrp) { -#line 8567 "" +#line 8628 "" a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = i1fnodur_(&c1omnotes_1.nnodur, dotq, (ftnlen)1); /* Check for double dot */ -#line 8571 "" +#line 8632 "" if (c1omnotes_1.iddot == 1) { -#line 8572 "" +#line 8633 "" a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[ c1ommvl_1.ivx - 1] * 24 - 25] * 7 / 6; -#line 8573 "" +#line 8634 "" c1omnotes_1.iddot = 0; -#line 8574 "" +#line 8635 "" } -#line 8575 "" +#line 8636 "" } else if (fulbrp) { -#line 8576 "" +#line 8637 "" a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = a1ll_2.lenbar; /* Use a one-line function to set nnodur. It gives inverse of ifnodur. */ -#line 8580 "" +#line 8641 "" i__1 = (integer) (log(a1ll_2.lenbar + .1f) / .69315f) + 48; -#line 8580 "" +#line 8641 "" chax_(ch__2, (ftnlen)1, &i__1); -#line 8580 "" +#line 8641 "" c1omnotes_1.nnodur = i_indx("62514x0x37", ch__2, (ftnlen)10, ( ftnlen)1) - 1; -#line 8582 "" +#line 8643 "" fulbrp = FALSE_; -#line 8583 "" +#line 8644 "" } -#line 8584 "" +#line 8645 "" a1ll_2.rest[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = *(unsigned char *)charq == 'r'; /* If inside forced beam, check if note is beamable */ -#line 8588 "" +#line 8649 "" if (c1omget_1.fbon) { -#line 8589 "" +#line 8650 "" if (a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] < 16) { -#line 8589 "" +#line 8650 "" goto L120; -#line 8589 "" +#line 8650 "" } -#line 8590 "" +#line 8651 "" if (a1ll_2.nnl[c1ommvl_1.ivx - 1] > 1) { -#line 8591 "" +#line 8652 "" if (a1ll_2.nodur[c1ommvl_1.ivx + (a1ll_2.nnl[c1ommvl_1.ivx - 1] - 1) * 24 - 25] == 0) { -#line 8591 "" +#line 8652 "" goto L120; -#line 8591 "" +#line 8652 "" } -#line 8592 "" +#line 8653 "" } -#line 8593 "" +#line 8654 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8593 "" +#line 8654 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Unbeamable thing in forc"\ "ed beam!", (ftnlen)128, (ftnlen)32); -#line 8595 "" +#line 8656 "" stop1_(); -#line 8596 "" +#line 8657 "" } -#line 8597 "" +#line 8658 "" L120: /* Get number of prior bars for later check on whether note spans bar line */ -#line 8601 "" +#line 8662 "" nbb4 = a1ll_2.itsofar[c1ommvl_1.ivx - 1] / a1ll_2.lenbar; -#line 8602 "" +#line 8663 "" a1ll_2.itsofar[c1ommvl_1.ivx - 1] += a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25]; -#line 8603 "" +#line 8664 "" if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] % a1ll_2.lenbar == 0) { -#line 8604 "" +#line 8665 "" ++a1ll_2.nbars; -#line 8605 "" +#line 8666 "" if (comkeys_1.shifton) { -#line 8605 "" +#line 8666 "" comkeys_1.barend = TRUE_; -#line 8605 "" +#line 8666 "" } /* Will check barend when 1st note of next bar is entered. */ -#line 8609 "" +#line 8670 "" if (a1ll_2.nbars > 15) { -#line 8610 "" +#line 8671 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8610 "" +#line 8671 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot have more tha"\ "n 15 bars in an input block!", (ftnlen)128, (ftnlen) 48); -#line 8612 "" +#line 8673 "" stop1_(); -#line 8613 "" +#line 8674 "" } -#line 8614 "" +#line 8675 "" a1ll_2.nib[c1ommvl_1.ivx + a1ll_2.nbars * 24 - 25] = a1ll_2.nnl[ c1ommvl_1.ivx - 1]; -#line 8615 "" +#line 8676 "" if (a1ll_2.firstline && a1ll_2.lenbar != a1ll_2.lenbr1) { /* Just finished the pickup bar for this voice. */ -#line 8619 "" +#line 8680 "" if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] != a1ll_2.lenbr0) { -#line 8620 "" +#line 8681 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8620 "" +#line 8681 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Pickup bar lengt"\ "h disagrees with mtrnum0!", (ftnlen)128, (ftnlen) 41); -#line 8622 "" +#line 8683 "" stop1_(); -#line 8623 "" +#line 8684 "" } -#line 8624 "" +#line 8685 "" a1ll_2.lenbar = a1ll_2.lenbr1; -#line 8625 "" +#line 8686 "" a1ll_2.itsofar[c1ommvl_1.ivx - 1] = 0; -#line 8626 "" +#line 8687 "" } -#line 8627 "" +#line 8688 "" } else if (comkeys_1.barend) { -#line 8628 "" +#line 8689 "" if (comkeys_1.shifton) { -#line 8629 "" +#line 8690 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8629 "" +#line 8690 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Bar ended with user-"\ "defined shift still on!", (ftnlen)128, (ftnlen)43); -#line 8631 "" +#line 8692 "" stop1_(); -#line 8632 "" +#line 8693 "" } -#line 8633 "" +#line 8694 "" comkeys_1.barend = FALSE_; -#line 8634 "" +#line 8695 "" } else if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] / a1ll_2.lenbar > nbb4) { -#line 8635 "" +#line 8696 "" i__1 = a1ll_2.iccount - 1; -#line 8635 "" +#line 8696 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8635 "" +#line 8696 "" errmsg_(lineq, &i__1, &i__4, "This note spans a bar line!", ( ftnlen)128, (ftnlen)27); -#line 8637 "" +#line 8698 "" stop1_(); -#line 8638 "" +#line 8699 "" } -#line 8639 "" +#line 8700 "" if (idotform == 1 || idotform == 3) { -#line 8640 "" +#line 8701 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 8641 "" +#line 8702 "" if (i_indx("abcedfgr", charq, (ftnlen)8, (ftnlen)1) == 0) { -#line 8642 "" +#line 8703 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8642 "" +#line 8703 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected note name o"\ "r \"r\" here!", (ftnlen)128, (ftnlen)31); -#line 8644 "" +#line 8705 "" stop1_(); -#line 8645 "" +#line 8706 "" } -#line 8646 "" +#line 8707 "" ++idotform; -#line 8647 "" +#line 8708 "" numnum = 1; -#line 8648 "" +#line 8709 "" goto L28; -#line 8649 "" +#line 8710 "" } /* End of sub block for note-rest */ -#line 8653 "" +#line 8714 "" } else if (*(unsigned char *)charq == 'z') { -#line 8654 "" +#line 8715 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 8655 "" +#line 8716 "" if (i_indx("abcdefg", charq, (ftnlen)7, (ftnlen)1) == 0) { -#line 8656 "" +#line 8717 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8656 "" +#line 8717 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected chord note name"\ " here!", (ftnlen)128, (ftnlen)30); -#line 8658 "" +#line 8719 "" stop1_(); -#line 8659 "" +#line 8720 "" } -#line 8660 "" +#line 8721 "" L25: -#line 8660 "" +#line 8721 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); /* if (index('dre12345678',durq) .gt. 0) then */ -#line 8662 "" +#line 8723 "" if (i_indx("dre12345678c", durq, (ftnlen)12, (ftnlen)1) > 0) { -#line 8663 "" +#line 8724 "" goto L25; -#line 8664 "" +#line 8725 "" } else if (i_indx("fsn", durq, (ftnlen)3, (ftnlen)1) > 0) { /* Check for midi-only accid. CANNOT coesist with accidental position tweaks, so */ /* MUST come right after "f,s,n" */ -#line 8669 "" +#line 8730 "" i__1 = a1ll_2.iccount; -#line 8669 "" +#line 8730 "" if (s_cmp(lineq + i__1, "i", a1ll_2.iccount + 1 - i__1, (ftnlen)1) == 0) { -#line 8669 "" +#line 8730 "" ++a1ll_2.iccount; -#line 8669 "" +#line 8730 "" } -#line 8670 "" +#line 8731 "" goto L25; -#line 8671 "" +#line 8732 "" } else if (*(unsigned char *)durq == 'A') { -#line 8672 "" +#line 8733 "" i__1 = a1ll_2.iccount - 2; -#line 8672 "" +#line 8733 "" if (i_indx("fsn", lineq + i__1, (ftnlen)3, a1ll_2.iccount - 1 - i__1) == 0) { -#line 8673 "" +#line 8734 "" i__1 = a1ll_2.iccount - 1; -#line 8673 "" +#line 8734 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8673 "" +#line 8734 "" errmsg_(lineq, &i__1, &i__4, "Must have \"f,s,n\" before \""\ "A\" in chord note!", (ftnlen)128, (ftnlen)43); -#line 8675 "" +#line 8736 "" stop1_(); -#line 8676 "" +#line 8737 "" } -#line 8677 "" +#line 8738 "" goto L25; -#line 8678 "" +#line 8739 "" } else if (i_indx("<>", durq, (ftnlen)2, (ftnlen)1) > 0) { -#line 8679 "" +#line 8740 "" i__1 = a1ll_2.iccount - 2; -#line 8679 "" +#line 8740 "" if (i_indx("fsnA", lineq + i__1, (ftnlen)4, a1ll_2.iccount - 1 - i__1) == 0) { /* if (index('fsncA',lineq(iccount-1:iccount-1)) .eq. 0) then ! Causes problems */ -#line 8681 "" +#line 8742 "" i__1 = a1ll_2.iccount - 1; -#line 8681 "" +#line 8742 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8681 "" +#line 8742 "" errmsg_(lineq, &i__1, &i__4, "Must have \"f,s,n,A\" before"\ " \"<\" or \">\"!", (ftnlen)128, (ftnlen)38); -#line 8683 "" +#line 8744 "" stop1_(); -#line 8684 "" +#line 8745 "" } -#line 8685 "" +#line 8746 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 8686 "" +#line 8747 "" if (i_indx("1234567890.", durq, (ftnlen)11, (ftnlen)1) == 0) { -#line 8687 "" +#line 8748 "" i__1 = a1ll_2.iccount - 1; -#line 8687 "" +#line 8748 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8687 "" +#line 8748 "" errmsg_(lineq, &i__1, &i__4, "Expected a number to start her"\ "e for accidental shift!", (ftnlen)128, (ftnlen)53); -#line 8689 "" +#line 8750 "" stop1_(); -#line 8690 "" +#line 8751 "" } -#line 8691 "" +#line 8752 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 8692 "" +#line 8753 "" --a1ll_2.iccount; -#line 8693 "" +#line 8754 "" goto L25; -#line 8694 "" +#line 8755 "" } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { -#line 8695 "" +#line 8756 "" i__1 = a1ll_2.iccount; -#line 8695 "" +#line 8756 "" if (i_indx("1234567890.", lineq + i__1, (ftnlen)11, a1ll_2.iccount + 1 - i__1) == 0) { -#line 8695 "" +#line 8756 "" goto L25; -#line 8695 "" +#line 8756 "" } /* Number or '.' (durq) follows +/- . Get it. */ -#line 8700 "" +#line 8761 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 8701 "" +#line 8762 "" i__1 = a1ll_2.iccount; -#line 8701 "" +#line 8762 "" if (*(unsigned char *)durq == '.' && i_indx("1234567890", lineq + i__1, (ftnlen)10, a1ll_2.iccount + 1 - i__1) == 0) { -#line 8703 "" +#line 8764 "" i__1 = a1ll_2.iccount - 1; -#line 8703 "" +#line 8764 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8703 "" +#line 8764 "" errmsg_(lineq, &i__1, &i__4, "\".\" here must be followed by"\ " a digit!", (ftnlen)128, (ftnlen)37); -#line 8705 "" +#line 8766 "" stop1_(); -#line 8706 "" +#line 8767 "" } else /* if(complicated condition) */ { -#line 8706 "" +#line 8767 "" i__1 = a1ll_2.iccount - 3; -#line 8706 "" +#line 8767 "" if (i_indx("sfndA", lineq + i__1, (ftnlen)5, a1ll_2.iccount - 2 - i__1) == 0) { -#line 8707 "" +#line 8768 "" i__1 = a1ll_2.iccount - 1; -#line 8707 "" +#line 8768 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8707 "" +#line 8768 "" errmsg_(lineq, &i__1, &i__4, "Number after +/- must foll"\ "ow \"d,s,f,n,A\"!", (ftnlen)128, (ftnlen)41); -#line 8709 "" +#line 8770 "" stop1_(); -#line 8710 "" +#line 8771 "" } -#line 8710 "" +#line 8771 "" } -#line 8711 "" +#line 8772 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 8712 "" +#line 8773 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) { -#line 8713 "" +#line 8774 "" --a1ll_2.iccount; -#line 8714 "" +#line 8775 "" goto L25; -#line 8715 "" +#line 8776 "" } /* 2nd +/- */ -#line 8719 "" +#line 8780 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 8720 "" +#line 8781 "" if (*(unsigned char *)durq == '.') { -#line 8720 "" +#line 8781 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 8720 "" +#line 8781 "" } -#line 8721 "" +#line 8782 "" if (i_indx("1234567890", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 8722 "" +#line 8783 "" i__1 = a1ll_2.iccount - 1; -#line 8722 "" +#line 8783 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8722 "" +#line 8783 "" errmsg_(lineq, &i__1, &i__4, "Expected a number here!", ( ftnlen)128, (ftnlen)23); -#line 8724 "" +#line 8785 "" stop1_(); -#line 8725 "" +#line 8786 "" } -#line 8726 "" +#line 8787 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 8727 "" +#line 8788 "" --a1ll_2.iccount; -#line 8728 "" +#line 8789 "" goto L25; -#line 8729 "" +#line 8790 "" } else if (*(unsigned char *)durq != ' ') { -#line 8730 "" +#line 8791 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8730 "" +#line 8791 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character in cho"\ "rd note!", (ftnlen)128, (ftnlen)32); -#line 8732 "" +#line 8793 "" stop1_(); -#line 8733 "" +#line 8794 "" } -#line 8734 "" +#line 8795 "" } else if (*(unsigned char *)charq == 'G') { -#line 8735 "" +#line 8796 "" ngr = 1; -#line 8736 "" +#line 8797 "" L9: -#line 8736 "" +#line 8797 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 8737 "" +#line 8798 "" if (i_indx("123456789", charq, (ftnlen)9, (ftnlen)1) > 0) { -#line 8738 "" +#line 8799 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 8739 "" +#line 8800 "" ngr = i_nint(&fnum); -#line 8740 "" +#line 8801 "" --a1ll_2.iccount; -#line 8741 "" +#line 8802 "" goto L9; -#line 8742 "" +#line 8803 "" } else if (i_indx("AWulxs", charq, (ftnlen)6, (ftnlen)1) > 0) { -#line 8743 "" +#line 8804 "" goto L9; -#line 8744 "" +#line 8805 "" } else if (*(unsigned char *)charq == 'm') { -#line 8745 "" +#line 8806 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 8746 "" +#line 8807 "" if (i_indx("01234", charq, (ftnlen)5, (ftnlen)1) == 0) { -#line 8747 "" +#line 8808 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8747 "" +#line 8808 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "A digit less than 5 "\ "must follow \"m\" in a grace note!", (ftnlen)128, ( ftnlen)52); -#line 8749 "" +#line 8810 "" stop1_(); -#line 8750 "" +#line 8811 "" } -#line 8751 "" +#line 8812 "" goto L9; -#line 8752 "" +#line 8813 "" } else if (*(unsigned char *)charq == 'X') { /* Space before main note */ -#line 8756 "" +#line 8817 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 8757 "" +#line 8818 "" if (i_indx("0123456789.", charq, (ftnlen)11, (ftnlen)1) > 0) { -#line 8758 "" +#line 8819 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 8759 "" +#line 8820 "" --a1ll_2.iccount; -#line 8760 "" +#line 8821 "" goto L9; -#line 8761 "" +#line 8822 "" } else { -#line 8762 "" +#line 8823 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8762 "" +#line 8823 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "A number must foll"\ "ow \"X\" in a grace note!", (ftnlen)128, (ftnlen)41); -#line 8764 "" +#line 8825 "" stop1_(); -#line 8765 "" +#line 8826 "" } -#line 8766 "" +#line 8827 "" } /* At this point, charq is first note name in rest (grace?) */ -#line 8770 "" +#line 8831 "" i__1 = ngr; -#line 8770 "" +#line 8831 "" for (igr = 1; igr <= i__1; ++igr) { -#line 8771 "" +#line 8832 "" numnum = 0; -#line 8772 "" +#line 8833 "" if (igr > 1) { -#line 8773 "" +#line 8834 "" L55: -#line 8773 "" +#line 8834 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen) 1); -#line 8774 "" +#line 8835 "" if (*(unsigned char *)charq == ' ') { -#line 8774 "" +#line 8835 "" goto L55; -#line 8774 "" +#line 8835 "" } -#line 8775 "" +#line 8836 "" } -#line 8776 "" +#line 8837 "" if (i_indx("abcdefg", charq, (ftnlen)7, (ftnlen)1) == 0) { -#line 8777 "" +#line 8838 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8777 "" +#line 8838 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "In grace, expected"\ " \"a\"-\"g\"!", (ftnlen)128, (ftnlen)27); -#line 8779 "" +#line 8840 "" stop1_(); -#line 8780 "" +#line 8841 "" } -#line 8781 "" +#line 8842 "" L18: -#line 8781 "" +#line 8842 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 8782 "" +#line 8843 "" if (*(unsigned char *)charq != ' ') { -#line 8783 "" +#line 8844 "" if (i_indx("1234567", charq, (ftnlen)7, (ftnlen)1) > 0) { -#line 8784 "" +#line 8845 "" if (numnum == 1) { -#line 8785 "" +#line 8846 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8785 "" +#line 8846 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Only one of"\ " \"+-1234567\" allowed here in grace!", ( ftnlen)128, (ftnlen)46); -#line 8787 "" +#line 8848 "" stop1_(); -#line 8788 "" +#line 8849 "" } -#line 8789 "" +#line 8850 "" numnum = 1; -#line 8790 "" +#line 8851 "" goto L18; /* else if (index('nfs',charq) .gt. 0) then */ -#line 8792 "" +#line 8853 "" } else if (i_indx("+-nfs", charq, (ftnlen)5, (ftnlen)1) > 0) { -#line 8793 "" +#line 8854 "" goto L18; -#line 8794 "" +#line 8855 "" } /* Digits are possible octave numbers */ -#line 8798 "" +#line 8859 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8798 "" +#line 8859 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal character af"\ "ter note name in grace!", (ftnlen)128, (ftnlen)43); -#line 8800 "" +#line 8861 "" stop1_(); -#line 8801 "" +#line 8862 "" } -#line 8802 "" +#line 8863 "" /* L19: */ -#line 8802 "" +#line 8863 "" } -#line 8803 "" +#line 8864 "" } else /* if(complicated condition) */ { -#line 8803 "" +#line 8864 "" chax_(ch__2, (ftnlen)1, &c__92); -#line 8803 "" +#line 8864 "" if (*(unsigned char *)charq == *(unsigned char *)&ch__2[0]) { -#line 8804 "" +#line 8865 "" chklit_(lineq, &a1ll_2.iccount, &literr, (ftnlen)128); -#line 8805 "" +#line 8866 "" if (literr > 0) { -#line 8806 "" +#line 8867 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8806 "" +#line 8867 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, literq + (literr - 1) * 51, (ftnlen)128, (ftnlen)51); -#line 8808 "" +#line 8869 "" stop1_(); -#line 8809 "" +#line 8870 "" } -#line 8810 "" +#line 8871 "" } else if (*(unsigned char *)charq == '"') { /* pmx lyric */ -#line 8814 "" +#line 8875 "" chkpmxlyr_(lineq, &a1ll_2.iccount, &lyrerr, (ftnlen)128); -#line 8815 "" +#line 8876 "" if (lyrerr > 0) { -#line 8816 "" +#line 8877 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8816 "" +#line 8877 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, lyrerq + (lyrerr - 1) * 51, (ftnlen)128, (ftnlen)51); -#line 8818 "" +#line 8879 "" stop1_(); -#line 8819 "" +#line 8880 "" } -#line 8820 "" +#line 8881 "" } else if (*(unsigned char *)charq == 'o') { /* Ornament on non-xtup note. "o" symbol must come AFTER the affected note */ -#line 8824 "" +#line 8885 "" if (a1ll_2.nnl[c1ommvl_1.ivx - 1] == 0) { -#line 8825 "" +#line 8886 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8825 "" +#line 8886 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"o\" must be in sam"\ "e input block, after affected note!", (ftnlen)128, ( ftnlen)53); -#line 8827 "" +#line 8888 "" stop1_(); -#line 8828 "" +#line 8889 "" } -#line 8829 "" +#line 8890 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)1); /* if (index('(stmgx+Tupf._)e:>^bc',dumq) .eq. 0 ) then */ -#line 8831 "" +#line 8892 "" if (i_indx("(stmgx+Tupf._)e:>^bcCG", dumq, (ftnlen)22, (ftnlen)1) == 0) { -#line 8832 "" +#line 8893 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8832 "" +#line 8893 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal ornament!", ( ftnlen)128, (ftnlen)17); -#line 8834 "" +#line 8895 "" stop1_(); -#line 8835 "" +#line 8896 "" } -#line 8836 "" +#line 8897 "" if (*(unsigned char *)dumq == ':') { -#line 8837 "" +#line 8898 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen) 1); -#line 8838 "" +#line 8899 "" if (*(unsigned char *)dumq != ' ') { -#line 8839 "" +#line 8900 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8839 "" +#line 8900 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected blank a"\ "fter \"o:\"!", (ftnlen)128, (ftnlen)26); -#line 8841 "" +#line 8902 "" stop1_(); -#line 8842 "" +#line 8903 "" } else if (! comkeys_1.ornrpt) { -#line 8843 "" +#line 8904 "" i__1 = a1ll_2.iccount - 1; -#line 8843 "" +#line 8904 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8843 "" +#line 8904 "" errmsg_(lineq, &i__1, &i__4, "Turned off repeated orname"\ "nts before they were on!", (ftnlen)128, (ftnlen) 50); -#line 8845 "" +#line 8906 "" stop1_(); -#line 8846 "" +#line 8907 "" } -#line 8847 "" +#line 8908 "" comkeys_1.ornrpt = FALSE_; -#line 8848 "" +#line 8909 "" } else if (*(unsigned char *)dumq == 'g') { -#line 8849 "" +#line 8910 "" if (c1omget_1.issegno) { -#line 8850 "" +#line 8911 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8850 "" +#line 8911 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Sorry, only one"\ " \"segno\" per input block!", (ftnlen)128, ( ftnlen)40); -#line 8852 "" +#line 8913 "" stop1_(); -#line 8853 "" +#line 8914 "" } else if (c1ommvl_1.ivx != 1) { -#line 8854 "" +#line 8915 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8854 "" +#line 8915 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "segno can only b"\ "e in voice 1!", (ftnlen)128, (ftnlen)29); -#line 8856 "" +#line 8917 "" stop1_(); -#line 8857 "" +#line 8918 "" } -#line 8858 "" +#line 8919 "" c1omget_1.issegno = TRUE_; -#line 8859 "" +#line 8920 "" L12: -#line 8859 "" +#line 8920 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen) 1); -#line 8860 "" +#line 8921 "" if (*(unsigned char *)dumq == '-' || *(unsigned char *)dumq >= 48 && *(unsigned char *)dumq <= 58) { -#line 8860 "" +#line 8921 "" goto L12; -#line 8860 "" +#line 8921 "" } -#line 8862 "" +#line 8923 "" if (*(unsigned char *)dumq != ' ') { -#line 8863 "" +#line 8924 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8863 "" +#line 8924 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\ "r in segno ornament symbol!", (ftnlen)128, ( ftnlen)43); -#line 8865 "" +#line 8926 "" stop1_(); -#line 8866 "" +#line 8927 "" } -#line 8867 "" +#line 8928 "" } else if (*(unsigned char *)dumq == 'T') { /* Trill. may be followed by 't' and/or number. read 'til blank */ -#line 8871 "" +#line 8932 "" L22: -#line 8871 "" +#line 8932 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen) 1); -#line 8872 "" +#line 8933 "" if (*(unsigned char *)dumq == ':') { -#line 8873 "" +#line 8934 "" i__1 = a1ll_2.iccount; -#line 8873 "" +#line 8934 "" if (s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, ( ftnlen)1) != 0) { -#line 8874 "" +#line 8935 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8874 "" +#line 8935 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected bla"\ "nk after \":\"!", (ftnlen)128, (ftnlen)25); -#line 8876 "" +#line 8937 "" stop1_(); -#line 8877 "" +#line 8938 "" } -#line 8878 "" +#line 8939 "" goto L32; -#line 8879 "" +#line 8940 "" } else if (*(unsigned char *)dumq != ' ') { -#line 8880 "" +#line 8941 "" goto L22; -#line 8881 "" +#line 8942 "" } -#line 8882 "" +#line 8943 "" } else if (*(unsigned char *)dumq == 'f') { -#line 8883 "" +#line 8944 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen) 1); -#line 8884 "" +#line 8945 "" if (i_indx(" d+-:", dumq, (ftnlen)5, (ftnlen)1) == 0) { -#line 8885 "" +#line 8946 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8885 "" +#line 8946 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\ "r after \"f\" in fermata ornament symbol!", ( ftnlen)128, (ftnlen)55); -#line 8887 "" +#line 8948 "" stop1_(); -#line 8888 "" +#line 8949 "" } -#line 8889 "" +#line 8950 "" if (*(unsigned char *)dumq == 'd') { -#line 8889 "" +#line 8950 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 8889 "" +#line 8950 "" } -#line 8890 "" +#line 8951 "" if (*(unsigned char *)dumq == ':') { -#line 8890 "" +#line 8951 "" goto L32; -#line 8890 "" +#line 8951 "" } -#line 8891 "" +#line 8952 "" } else if (*(unsigned char *)dumq == 'e') { -#line 8892 "" +#line 8953 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen) 1); -#line 8893 "" +#line 8954 "" if (i_indx("sfn?", dumq, (ftnlen)4, (ftnlen)1) == 0) { -#line 8894 "" +#line 8955 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8894 "" +#line 8955 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\ "r after \"e\" in edit. accid. symbol!", (ftnlen) 128, (ftnlen)51); -#line 8896 "" +#line 8957 "" stop1_(); -#line 8897 "" +#line 8958 "" } -#line 8898 "" +#line 8959 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen) 1); -#line 8899 "" +#line 8960 "" if (*(unsigned char *)dumq == '?') { -#line 8899 "" +#line 8960 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 8899 "" +#line 8960 "" } -#line 8900 "" +#line 8961 "" } else { -#line 8901 "" +#line 8962 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen) 1); -#line 8902 "" +#line 8963 "" } -#line 8903 "" +#line 8964 "" if (i_indx("+- :", dumq, (ftnlen)4, (ftnlen)1) == 0) { -#line 8904 "" +#line 8965 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8904 "" +#line 8965 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character in"\ " ornament symbol!", (ftnlen)128, (ftnlen)37); -#line 8906 "" +#line 8967 "" stop1_(); -#line 8907 "" +#line 8968 "" } -#line 8908 "" +#line 8969 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) { -#line 8909 "" +#line 8970 "" i__1 = a1ll_2.iccount; -#line 8909 "" +#line 8970 "" if (i_indx("0123456789", lineq + i__1, (ftnlen)10, a1ll_2.iccount + 1 - i__1) == 0) { -#line 8910 "" +#line 8971 "" i__1 = a1ll_2.iccount + 1; -#line 8910 "" +#line 8971 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8910 "" +#line 8971 "" errmsg_(lineq, &i__1, &i__4, "There should be an integer"\ " here!", (ftnlen)128, (ftnlen)32); -#line 8912 "" +#line 8973 "" stop1_(); -#line 8913 "" +#line 8974 "" } -#line 8914 "" +#line 8975 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 8915 "" +#line 8976 "" if (*(unsigned char *)durq == ':') { -#line 8916 "" +#line 8977 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8916 "" +#line 8977 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot shift AND"\ " repeat an ornament!", (ftnlen)128, (ftnlen)36); -#line 8918 "" +#line 8979 "" stop1_(); -#line 8919 "" +#line 8980 "" } /* 12/7/03 Allow horizontal shift on any ornament, not just breath and caes. */ -#line 8923 "" +#line 8984 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { -#line 8924 "" +#line 8985 "" i__1 = a1ll_2.iccount; -#line 8924 "" +#line 8985 "" if (i_indx(".0123456789", lineq + i__1, (ftnlen)11, a1ll_2.iccount + 1 - i__1) == 0) { -#line 8926 "" +#line 8987 "" i__1 = a1ll_2.iccount + 1; -#line 8926 "" +#line 8987 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8926 "" +#line 8987 "" errmsg_(lineq, &i__1, &i__4, "There should be a numb"\ "er here!", (ftnlen)128, (ftnlen)30); -#line 8928 "" +#line 8989 "" stop1_(); -#line 8929 "" +#line 8990 "" } -#line 8930 "" +#line 8991 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 8931 "" +#line 8992 "" } -#line 8932 "" +#line 8993 "" } -#line 8933 "" +#line 8994 "" L32: -#line 8934 "" +#line 8995 "" if (*(unsigned char *)dumq == ':') { -#line 8935 "" +#line 8996 "" i__1 = a1ll_2.iccount; -#line 8935 "" +#line 8996 "" if (s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, ( ftnlen)1) != 0) { -#line 8936 "" +#line 8997 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8936 "" +#line 8997 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\":\" must be fo"\ "llowed by blank in \"o: \"!", (ftnlen)128, ( ftnlen)39); -#line 8938 "" +#line 8999 "" stop1_(); -#line 8939 "" +#line 9000 "" } else if (comkeys_1.ornrpt) { -#line 8940 "" +#line 9001 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8940 "" +#line 9001 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Turned on repeat"\ "ed ornaments but already on!", (ftnlen)128, ( ftnlen)44); -#line 8942 "" +#line 9003 "" stop1_(); -#line 8943 "" +#line 9004 "" } -#line 8944 "" +#line 9005 "" comkeys_1.ornrpt = TRUE_; -#line 8945 "" +#line 9006 "" } -#line 8946 "" +#line 9007 "" } else if (i_indx("st(){}", charq, (ftnlen)6, (ftnlen)1) > 0) { -#line 8947 "" +#line 9008 "" numint = 0; -#line 8948 "" +#line 9009 "" iposn = 0; -#line 8949 "" +#line 9010 "" L8: -#line 8949 "" +#line 9010 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)1); -#line 8950 "" +#line 9011 "" ++iposn; -#line 8951 "" +#line 9012 "" if (*(unsigned char *)charq == 't' && *(unsigned char *)dumq == 't') { -#line 8952 "" +#line 9013 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8952 "" +#line 9013 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot use \"t\" as "\ "an option on a tie!", (ftnlen)128, (ftnlen)37); -#line 8954 "" +#line 9015 "" stop1_(); -#line 8955 "" +#line 9016 "" } -#line 8956 "" +#line 9017 "" if (i_indx("udltb+-fnhHpsv ", dumq, (ftnlen)15, (ftnlen)1) == 0) { /* Check for explicit ID code. */ -#line 8960 "" +#line 9021 "" ic = *(unsigned char *)dumq; -#line 8961 "" +#line 9022 "" if (ic < 48 || ic > 57 && ic < 65 || ic > 90) { /* Not 0-9 or A-Z, so exit */ -#line 8966 "" +#line 9027 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8966 "" +#line 9027 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\ "r in slur symbol!", (ftnlen)128, (ftnlen)33); -#line 8968 "" +#line 9029 "" stop1_(); -#line 8969 "" +#line 9030 "" } else { /* It is a possible ID code. Right place? */ -#line 8973 "" +#line 9034 "" if (iposn != 1) { /* Slur ID is not 2nd! */ -#line 8977 "" +#line 9038 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8977 "" +#line 9038 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Slur ID must"\ " be second character in slur symbol!", ( ftnlen)128, (ftnlen)48); -#line 8979 "" +#line 9040 "" stop1_(); -#line 8980 "" +#line 9041 "" } else if (*(unsigned char *)charq == 't' && comslur_1.fontslur) { -#line 8981 "" +#line 9042 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8981 "" +#line 9042 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Slur ID not "\ "allowed on non-postscript tie!", (ftnlen)128, (ftnlen)42); -#line 8983 "" +#line 9044 "" stop1_(); -#line 8984 "" +#line 9045 "" } -#line 8985 "" +#line 9046 "" } /* Slur ID is OK. Note it cannot be "H" at this point.. */ -#line 8989 "" +#line 9050 "" goto L8; -#line 8990 "" +#line 9051 "" } else if (*(unsigned char *)dumq == 'H') { -#line 8991 "" +#line 9052 "" if (iposn == 1) { -#line 8991 "" +#line 9052 "" goto L8; -#line 8991 "" +#line 9052 "" } /* "H" is NOT an ID code. */ -#line 8995 "" +#line 9056 "" if (! comslur_1.fontslur && *(unsigned char *)charq == 't') { -#line 8996 "" +#line 9057 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 8996 "" +#line 9057 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot reshape p"\ "ostscript ties this way!", (ftnlen)128, (ftnlen) 40); -#line 8998 "" +#line 9059 "" stop1_(); -#line 8999 "" +#line 9060 "" } -#line 9000 "" +#line 9061 "" i__1 = a1ll_2.iccount; -#line 9000 "" +#line 9061 "" if (s_cmp(lineq + i__1, "H", a1ll_2.iccount + 1 - i__1, ( ftnlen)1) == 0) { -#line 9001 "" +#line 9062 "" ++a1ll_2.iccount; -#line 9002 "" +#line 9063 "" ++iposn; -#line 9003 "" +#line 9064 "" } -#line 9004 "" +#line 9065 "" goto L8; -#line 9005 "" +#line 9066 "" } else if (i_indx("fh", dumq, (ftnlen)2, (ftnlen)1) > 0 && ! comslur_1.fontslur && *(unsigned char *)charq == 't') { /* 3/9/03 Can't reshape postscript tie. */ -#line 9010 "" +#line 9071 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9010 "" +#line 9071 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot reshape posts"\ "cript ties this way!", (ftnlen)128, (ftnlen)40); -#line 9012 "" +#line 9073 "" stop1_(); -#line 9013 "" +#line 9074 "" } else if (*(unsigned char *)dumq == 'p') { /* local change in postscript slur/tie adjustment default */ -#line 9017 "" +#line 9078 "" if (comslur_1.fontslur) { -#line 9018 "" +#line 9079 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9018 "" +#line 9079 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must use postscr"\ "ipt slurs (\"Ap\") to use this option!", (ftnlen) 128, (ftnlen)52); -#line 9020 "" +#line 9081 "" stop1_(); -#line 9021 "" +#line 9082 "" } -#line 9022 "" +#line 9083 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen) 1); -#line 9023 "" +#line 9084 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) == 0) { -#line 9024 "" +#line 9085 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9024 "" +#line 9085 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected \"+\" o"\ "r \"-\" here!", (ftnlen)128, (ftnlen)25); -#line 9026 "" +#line 9087 "" stop1_(); -#line 9027 "" +#line 9088 "" } -#line 9028 "" +#line 9089 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen) 1); -#line 9029 "" +#line 9090 "" if (i_indx("st", dumq, (ftnlen)2, (ftnlen)1) == 0) { -#line 9030 "" +#line 9091 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9030 "" +#line 9091 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected \"s\" o"\ "r \"t\" here!", (ftnlen)128, (ftnlen)25); -#line 9032 "" +#line 9093 "" stop1_(); -#line 9033 "" +#line 9094 "" } -#line 9034 "" +#line 9095 "" iposn += 2; -#line 9035 "" +#line 9096 "" goto L8; -#line 9036 "" +#line 9097 "" } -#line 9037 "" +#line 9098 "" if (i_indx("udltbfnh", dumq, (ftnlen)8, (ftnlen)1) > 0) { -#line 9038 "" +#line 9099 "" goto L8; -#line 9039 "" +#line 9100 "" } else if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) { -#line 9040 "" +#line 9101 "" ++numint; -#line 9041 "" +#line 9102 "" if (comslur_1.fontslur && *(unsigned char *)charq == 't') { -#line 9042 "" +#line 9103 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9042 "" +#line 9103 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"+|-\" for slur"\ " height only allowed in \"s\"-slurs!", (ftnlen) 128, (ftnlen)48); -#line 9044 "" +#line 9105 "" stop1_(); -#line 9045 "" +#line 9106 "" } -#line 9046 "" +#line 9107 "" ++a1ll_2.iccount; -#line 9047 "" +#line 9108 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 9048 "" +#line 9109 "" if (numint == 1) { -#line 9049 "" +#line 9110 "" if (i_nint(&fnum) > 30) { -#line 9050 "" +#line 9111 "" i__1 = a1ll_2.iccount - 1; -#line 9050 "" +#line 9111 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9050 "" +#line 9111 "" errmsg_(lineq, &i__1, &i__4, "Magnitude of slur heig"\ "ht adjustment cannot exceed 30!", (ftnlen)128, (ftnlen)53); -#line 9052 "" +#line 9113 "" stop1_(); -#line 9053 "" +#line 9114 "" } -#line 9054 "" +#line 9115 "" } else if (numint == 2) { -#line 9055 "" +#line 9116 "" if (dabs(fnum) > 6.3f) { -#line 9056 "" +#line 9117 "" i__1 = a1ll_2.iccount - 1; -#line 9056 "" +#line 9117 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9056 "" +#line 9117 "" errmsg_(lineq, &i__1, &i__4, "Slur horiz shift must "\ "be in range (-6.3,6.3)!", (ftnlen)128, ( ftnlen)45); -#line 9058 "" +#line 9119 "" stop1_(); -#line 9059 "" +#line 9120 "" } -#line 9060 "" +#line 9121 "" } else { /* Third signed integer, must be a midslur or curve spec. */ -#line 9064 "" +#line 9125 "" if (dabs(fnum) > 31.f) { -#line 9065 "" +#line 9126 "" i__1 = a1ll_2.iccount - 1; -#line 9065 "" +#line 9126 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9065 "" +#line 9126 "" errmsg_(lineq, &i__1, &i__4, "Slur midheight must be"\ " in the range (-31,31)!", (ftnlen)128, ( ftnlen)45); -#line 9067 "" +#line 9128 "" stop1_(); -#line 9068 "" +#line 9129 "" } -#line 9069 "" +#line 9130 "" if (*(unsigned char *)durq == ':') { /* Expecting curve parameters. Get two numbers */ -#line 9073 "" +#line 9134 "" for (i__ = 1; i__ <= 2; ++i__) { -#line 9074 "" +#line 9135 "" ++a1ll_2.iccount; -#line 9075 "" +#line 9136 "" fnum = (real) (*(unsigned char *)&lineq[ a1ll_2.iccount - 1] - 48); -#line 9076 "" +#line 9137 "" if ((r__1 = fnum - 3.5f, dabs(r__1)) > 3.6f) { -#line 9077 "" +#line 9138 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9077 "" +#line 9138 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Slur"\ " curve parameter must be in range (0"\ ",7)!", (ftnlen)128, (ftnlen)44); -#line 9079 "" +#line 9140 "" stop1_(); -#line 9080 "" +#line 9141 "" } -#line 9081 "" +#line 9142 "" /* L41: */ -#line 9081 "" +#line 9142 "" } -#line 9082 "" +#line 9143 "" ++a1ll_2.iccount; -#line 9083 "" +#line 9144 "" } -#line 9084 "" +#line 9145 "" } -#line 9085 "" +#line 9146 "" --a1ll_2.iccount; -#line 9086 "" +#line 9147 "" goto L8; -#line 9087 "" +#line 9148 "" } else if (*(unsigned char *)dumq == 's') { /* What follows should be one or two signed numbers for adjustment of line break */ /* slur, end of 1st segment or start of second. */ -#line 9092 "" +#line 9153 "" if (comslur_1.fontslur) { -#line 9093 "" +#line 9154 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9093 "" +#line 9154 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "May not use line"\ "break slur options with font-based slurs!", ( ftnlen)128, (ftnlen)57); -#line 9095 "" +#line 9156 "" stop1_(); -#line 9096 "" +#line 9157 "" } -#line 9097 "" +#line 9158 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen) 1); -#line 9098 "" +#line 9159 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) == 0) { -#line 9099 "" +#line 9160 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9099 "" +#line 9160 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "This character m"\ "ust be \"+\" or \"-\"!", (ftnlen)128, (ftnlen)34); -#line 9101 "" +#line 9162 "" stop1_(); -#line 9102 "" +#line 9163 "" } -#line 9103 "" +#line 9164 "" ++a1ll_2.iccount; -#line 9104 "" +#line 9165 "" readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 9105 "" +#line 9166 "" if (i_nint(&fnum) > 30) { -#line 9106 "" +#line 9167 "" i__1 = a1ll_2.iccount - 1; -#line 9106 "" +#line 9167 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9106 "" +#line 9167 "" errmsg_(lineq, &i__1, &i__4, "Magnitude of slur height a"\ "djustment cannot exceed 30!", (ftnlen)128, ( ftnlen)53); -#line 9108 "" +#line 9169 "" stop1_(); -#line 9109 "" +#line 9170 "" } -#line 9110 "" +#line 9171 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) { -#line 9111 "" +#line 9172 "" ++a1ll_2.iccount; -#line 9112 "" +#line 9173 "" readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1); -#line 9113 "" +#line 9174 "" if (dabs(fnum) > 6.3f) { -#line 9114 "" +#line 9175 "" i__1 = a1ll_2.iccount - 1; -#line 9114 "" +#line 9175 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9114 "" +#line 9175 "" errmsg_(lineq, &i__1, &i__4, "Slur horiz shift must "\ "be in range (-6.3,6.3)!", (ftnlen)128, ( ftnlen)45); -#line 9116 "" +#line 9177 "" stop1_(); -#line 9117 "" +#line 9178 "" } -#line 9118 "" +#line 9179 "" } -#line 9119 "" +#line 9180 "" --a1ll_2.iccount; -#line 9120 "" +#line 9181 "" goto L8; -#line 9121 "" +#line 9182 "" } else if (*(unsigned char *)dumq == 'H' && iposn > 1) { -#line 9122 "" +#line 9183 "" i__1 = a1ll_2.iccount; -#line 9122 "" +#line 9183 "" if (s_cmp(lineq + i__1, "H", a1ll_2.iccount + 1 - i__1, ( ftnlen)1) == 0) { -#line 9122 "" +#line 9183 "" ++a1ll_2.iccount; -#line 9122 "" +#line 9183 "" } -#line 9123 "" +#line 9184 "" goto L8; -#line 9124 "" +#line 9185 "" } -#line 9125 "" +#line 9186 "" } else if (*(unsigned char *)charq == '?') { -#line 9126 "" +#line 9187 "" getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9127 "" +#line 9188 "" if (*(unsigned char *)durq == ' ') { -#line 9128 "" +#line 9189 "" --a1ll_2.iccount; -#line 9129 "" +#line 9190 "" } else { -#line 9130 "" +#line 9191 "" if (*(unsigned char *)durq != '-') { -#line 9131 "" +#line 9192 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9131 "" +#line 9192 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expecting \"-\"!", (ftnlen)128, (ftnlen)14); -#line 9133 "" +#line 9194 "" stop1_(); -#line 9134 "" +#line 9195 "" } -#line 9135 "" +#line 9196 "" getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1) ; -#line 9136 "" +#line 9197 "" if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) == 0) { -#line 9137 "" +#line 9198 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9137 "" +#line 9198 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expecting number!" , (ftnlen)128, (ftnlen)17); -#line 9139 "" +#line 9200 "" stop1_(); -#line 9140 "" +#line 9201 "" } -#line 9141 "" +#line 9202 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 9142 "" +#line 9203 "" --a1ll_2.iccount; -#line 9143 "" +#line 9204 "" } -#line 9144 "" +#line 9205 "" } else if (*(unsigned char *)charq >= 48 && *(unsigned char *)charq <= 57 || i_indx("#-nx_", charq, (ftnlen)5, (ftnlen)1) > 0) { /* We have a figure. Must come AFTER the note it goes under */ -#line 9149 "" +#line 9210 "" if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] == 0 && (! a1ll_2.firstline || a1ll_2.lenbr0 == 0 || a1ll_2.lenbar == a1ll_2.lenbr0)) { /* Figure before first note in block */ -#line 9154 "" +#line 9215 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9154 "" +#line 9215 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot put figure be"\ "fore first note in block!", (ftnlen)128, (ftnlen)45); -#line 9156 "" +#line 9217 "" stop1_(); -#line 9157 "" +#line 9218 "" } -#line 9158 "" +#line 9219 "" if (*(unsigned char *)charq == 'x') { -#line 9159 "" +#line 9220 "" indxb = i_indx(lineq + (a1ll_2.iccount - 1), " ", 128 - ( a1ll_2.iccount - 1), (ftnlen)1); -#line 9160 "" +#line 9221 "" if (indxb < 5) { -#line 9161 "" +#line 9222 "" i__1 = a1ll_2.iccount + indxb - 1; -#line 9161 "" +#line 9222 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9161 "" +#line 9222 "" errmsg_(lineq, &i__1, &i__4, "Cannot have a blank here i"\ "n floating figure!", (ftnlen)128, (ftnlen)44); -#line 9163 "" +#line 9224 "" stop1_(); -#line 9164 "" +#line 9225 "" } -#line 9165 "" +#line 9226 "" } -#line 9166 "" +#line 9227 "" if (compage_1.usefig) { -#line 9166 "" +#line 9227 "" *ifig = 1; -#line 9166 "" +#line 9227 "" } -#line 9167 "" +#line 9228 "" L5: -#line 9167 "" +#line 9228 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 9168 "" +#line 9229 "" if (i_indx(" 0123456789#-nx_.:+sv", charq, (ftnlen)21, (ftnlen)1) == 0) { -#line 9169 "" +#line 9230 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9169 "" +#line 9230 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character in"\ " figure!", (ftnlen)128, (ftnlen)28); -#line 9171 "" +#line 9232 "" stop1_(); -#line 9172 "" +#line 9233 "" } else if (*(unsigned char *)charq == '+') { /* vertical offset, must be integer, then blank */ -#line 9176 "" +#line 9237 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen) 1); -#line 9177 "" +#line 9238 "" if (i_indx("123456789", charq, (ftnlen)9, (ftnlen)1) == 0) { -#line 9178 "" +#line 9239 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9178 "" +#line 9239 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Integer for vert"\ "ical offset expected here!", (ftnlen)128, (ftnlen) 42); -#line 9180 "" +#line 9241 "" stop1_(); -#line 9181 "" +#line 9242 "" } -#line 9182 "" +#line 9243 "" readnum_(lineq, &a1ll_2.iccount, charq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 9183 "" +#line 9244 "" if (*(unsigned char *)charq != ' ') { -#line 9184 "" +#line 9245 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9184 "" +#line 9245 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Vertical offset "\ "must terminate figure!", (ftnlen)128, (ftnlen)38); -#line 9186 "" +#line 9247 "" stop1_(); -#line 9187 "" +#line 9248 "" } -#line 9188 "" +#line 9249 "" --a1ll_2.iccount; -#line 9189 "" +#line 9250 "" goto L5; -#line 9190 "" +#line 9251 "" } else if (*(unsigned char *)charq == 's') { -#line 9191 "" +#line 9252 "" comligfont_1.isligfont = TRUE_; -#line 9192 "" +#line 9253 "" } -#line 9193 "" +#line 9254 "" if (*(unsigned char *)charq != ' ') { -#line 9193 "" +#line 9254 "" goto L5; -#line 9193 "" +#line 9254 "" } -#line 9194 "" +#line 9255 "" } else if (*(unsigned char *)charq == '[') { -#line 9195 "" +#line 9256 "" if (c1omget_1.fbon) { -#line 9196 "" +#line 9257 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9196 "" +#line 9257 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Started forced beam "\ "while another was open!", (ftnlen)128, (ftnlen)43); -#line 9198 "" +#line 9259 "" stop1_(); -#line 9199 "" +#line 9260 "" } -#line 9200 "" +#line 9261 "" c1omget_1.fbon = TRUE_; -#line 9201 "" +#line 9262 "" L17: -#line 9201 "" +#line 9262 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 9202 "" +#line 9263 "" if (i_indx("uljhf:", charq, (ftnlen)6, (ftnlen)1) > 0) { -#line 9203 "" +#line 9264 "" goto L17; -#line 9204 "" +#line 9265 "" } else if (i_indx("+-", charq, (ftnlen)2, (ftnlen)1) > 0) { -#line 9205 "" +#line 9266 "" ++a1ll_2.iccount; -#line 9206 "" +#line 9267 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 9207 "" +#line 9268 "" --a1ll_2.iccount; -#line 9208 "" +#line 9269 "" goto L17; -#line 9209 "" +#line 9270 "" } else if (*(unsigned char *)charq == 'm') { /* Forced multiplicity, next char should be 1-4 */ -#line 9213 "" +#line 9274 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen) 1); -#line 9214 "" +#line 9275 "" if (i_indx("1234", charq, (ftnlen)4, (ftnlen)1) == 0) { -#line 9215 "" +#line 9276 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9215 "" +#line 9276 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Forced multiplic"\ "ity for a beam must be 1, 2, 3, or 4!", (ftnlen) 128, (ftnlen)53); -#line 9217 "" +#line 9278 "" stop1_(); -#line 9218 "" +#line 9279 "" } -#line 9219 "" +#line 9280 "" goto L17; -#line 9220 "" +#line 9281 "" } else if (*(unsigned char *)charq != ' ') { -#line 9221 "" +#line 9282 "" if (i_indx("0123456789", charq, (ftnlen)10, (ftnlen)1) > 0) { -#line 9222 "" +#line 9283 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9222 "" +#line 9283 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "After \"[\", dig"\ "its must now be preceeded by \"+\" or \"-\"!", ( ftnlen)128, (ftnlen)54); -#line 9224 "" - s_wsle(&io___624); -#line 9224 "" +#line 9285 "" + s_wsle(&io___625); +#line 9285 "" do_lio(&c__9, &c__1, "You will have to edit older source"\ "s to meet this rqmt,", (ftnlen)54); -#line 9224 "" +#line 9285 "" e_wsle(); -#line 9225 "" - s_wsle(&io___625); -#line 9225 "" +#line 9286 "" + s_wsle(&io___626); +#line 9286 "" do_lio(&c__9, &c__1, "but it was needed to allow 2-digit"\ " height adjustments.", (ftnlen)54); -#line 9225 "" +#line 9286 "" e_wsle(); -#line 9226 "" - s_wsle(&io___626); -#line 9226 "" +#line 9287 "" + s_wsle(&io___627); +#line 9287 "" do_lio(&c__9, &c__1, "Sorry for the inconvenience. --Th"\ "e Management", (ftnlen)46); -#line 9226 "" +#line 9287 "" e_wsle(); -#line 9227 "" +#line 9288 "" } else { -#line 9228 "" +#line 9289 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9228 "" +#line 9289 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\ "r after [!", (ftnlen)128, (ftnlen)26); -#line 9230 "" +#line 9291 "" } -#line 9231 "" +#line 9292 "" stop1_(); -#line 9232 "" +#line 9293 "" } -#line 9233 "" +#line 9294 "" } else if (*(unsigned char *)charq == ']') { -#line 9234 "" +#line 9295 "" if (! c1omget_1.fbon) { -#line 9235 "" +#line 9296 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9235 "" +#line 9296 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Forced beam stop wit"\ "h no corresponding start!", (ftnlen)128, (ftnlen)45); -#line 9237 "" +#line 9298 "" stop1_(); -#line 9238 "" +#line 9299 "" } -#line 9239 "" +#line 9300 "" g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 9240 "" +#line 9301 "" if (*(unsigned char *)charq == '-') { -#line 9241 "" +#line 9302 "" i__1 = a1ll_2.iccount; -#line 9241 "" +#line 9302 "" if (s_cmp(lineq + i__1, "[ ", a1ll_2.iccount + 2 - i__1, ( ftnlen)2) != 0) { -#line 9242 "" +#line 9303 "" i__1 = a1ll_2.iccount + 1; -#line 9242 "" +#line 9303 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9242 "" +#line 9303 "" errmsg_(lineq, &i__1, &i__4, "Only sequence allowed here"\ " is \"[ \"!", (ftnlen)128, (ftnlen)35); -#line 9244 "" +#line 9305 "" stop1_(); -#line 9245 "" +#line 9306 "" } else { -#line 9246 "" +#line 9307 "" a1ll_2.iccount += 2; -#line 9247 "" +#line 9308 "" } -#line 9248 "" +#line 9309 "" } else if (*(unsigned char *)charq == '[') { -#line 9249 "" +#line 9310 "" i__1 = a1ll_2.iccount; -#line 9249 "" +#line 9310 "" if (s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, ( ftnlen)1) != 0) { -#line 9250 "" +#line 9311 "" i__1 = a1ll_2.iccount + 1; -#line 9250 "" +#line 9311 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9250 "" +#line 9311 "" errmsg_(lineq, &i__1, &i__4, "This character must be a b"\ "lank!", (ftnlen)128, (ftnlen)31); -#line 9252 "" +#line 9313 "" stop1_(); -#line 9253 "" +#line 9314 "" } -#line 9254 "" +#line 9315 "" } else { /* Forced beam is really ending */ -#line 9258 "" +#line 9319 "" c1omget_1.fbon = FALSE_; -#line 9259 "" +#line 9320 "" if (*(unsigned char *)charq == 'j') { -#line 9260 "" +#line 9321 "" i__1 = a1ll_2.iccount; -#line 9260 "" +#line 9321 "" if (s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, ( ftnlen)1) != 0) { -#line 9261 "" +#line 9322 "" i__1 = a1ll_2.iccount + 1; -#line 9261 "" +#line 9322 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9261 "" +#line 9322 "" errmsg_(lineq, &i__1, &i__4, "This character must be"\ " a blank!", (ftnlen)128, (ftnlen)31); -#line 9263 "" +#line 9324 "" stop1_(); -#line 9264 "" +#line 9325 "" } -#line 9265 "" +#line 9326 "" } else if (*(unsigned char *)charq != ' ') { -#line 9266 "" +#line 9327 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9266 "" +#line 9327 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"]\" must be fo"\ "llowed by blank, \"j\", \"-\", or \"[\"!", ( ftnlen)128, (ftnlen)48); -#line 9268 "" +#line 9329 "" stop1_(); -#line 9269 "" +#line 9330 "" } -#line 9270 "" +#line 9331 "" } -#line 9271 "" +#line 9332 "" } else if (*(unsigned char *)charq == 'D') { /* Dynamic mark */ -#line 9275 "" +#line 9336 "" if (a1ll_2.nnl[c1ommvl_1.ivx - 1] == 0) { -#line 9276 "" +#line 9337 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9276 "" +#line 9337 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"D\" must not come "\ "before any notes have been entered!", (ftnlen)128, ( ftnlen)53); -#line 9278 "" +#line 9339 "" stop1_(); -#line 9279 "" +#line 9340 "" } -#line 9280 "" +#line 9341 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9280 "" +#line 9341 "" checkdyn_(lineq, &a1ll_2.iccount, &i__1, (ftnlen)128); -#line 9281 "" +#line 9342 "" } else if (i_indx("lhw", charq, (ftnlen)3, (ftnlen)1) > 0) { /* Save position for later check */ -#line 9285 "" +#line 9346 "" icclhw = a1ll_2.iccount; -#line 9286 "" +#line 9347 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9287 "" +#line 9348 "" if (i_indx("0123456789.+- ", durq, (ftnlen)14, (ftnlen)1) == 0) { -#line 9288 "" +#line 9349 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9288 "" +#line 9349 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character af"\ "ter \"l\", \"w\", or \"h\"!", (ftnlen)128, (ftnlen)41) ; -#line 9290 "" +#line 9351 "" stop1_(); -#line 9291 "" +#line 9352 "" } -#line 9292 "" +#line 9353 "" c1omget_1.isheadr = c1omget_1.isheadr || *(unsigned char *)charq == 'h'; -#line 9293 "" +#line 9354 "" if (i_indx(" +-", durq, (ftnlen)3, (ftnlen)1) > 0) { /* There is a header (or lower string?) */ -#line 9297 "" +#line 9358 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* User-defined vert offset (\internote). */ -#line 9301 "" +#line 9362 "" if (*(unsigned char *)charq != 'h') { -#line 9302 "" +#line 9363 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9302 "" +#line 9363 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"+\" or \""\ "-\" not permitted here!", (ftnlen)128, ( ftnlen)30); -#line 9304 "" +#line 9365 "" stop1_(); -#line 9305 "" +#line 9366 "" } /* Have "h" followed by +/- . Check for digit. */ /* Can blow durq since not using fnum for now, but... */ -#line 9310 "" +#line 9371 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 9311 "" +#line 9372 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 9312 "" +#line 9373 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9312 "" +#line 9373 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "There must b"\ "e a digit here!", (ftnlen)128, (ftnlen)27); -#line 9314 "" +#line 9375 "" stop1_(); -#line 9315 "" +#line 9376 "" } /* Have "h" followed by +/- followed by a digit. No need to get the number. */ /* call readnum(lineq,iccount,durq,fnum) */ -#line 9320 "" +#line 9381 "" } -#line 9321 "" +#line 9382 "" if (*(unsigned char *)charq != 'w') { /* Header or lower string. */ -#line 9325 "" +#line 9386 "" if (icclhw != 1) { -#line 9326 "" +#line 9387 "" i__1 = a1ll_2.iccount - 1; -#line 9326 "" +#line 9387 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9326 "" +#line 9387 "" errmsg_(lineq, &i__1, &i__4, "\"h\" or \"l\" must be"\ " first character in line!", (ftnlen)128, ( ftnlen)43); -#line 9328 "" +#line 9389 "" stop1_(); -#line 9329 "" +#line 9390 "" } /* Read past the next line, which has the string. */ -#line 9333 "" +#line 9394 "" read10_(charq, &c1omget_1.lastchar, (ftnlen)1); -#line 9334 "" +#line 9395 "" ++c1omget_1.nline; -#line 9335 "" +#line 9396 "" a1ll_2.iccount = 128; -#line 9336 "" +#line 9397 "" } else { -#line 9337 "" +#line 9398 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9337 "" +#line 9398 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Symbol \"w\" (wi"\ "dth) must be followed by a digit!", (ftnlen)128, ( ftnlen)47); -#line 9339 "" +#line 9400 "" stop1_(); -#line 9340 "" +#line 9401 "" } -#line 9341 "" +#line 9402 "" } else { /* Height or width change spec. Check if at start of piece. */ -#line 9345 "" +#line 9406 "" if (c1omnotes_1.ibarcnt > 0) { -#line 9346 "" +#line 9407 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9346 "" +#line 9407 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Symbol must go a"\ "t top of first input block!", (ftnlen)128, ( ftnlen)43); -#line 9348 "" +#line 9409 "" stop1_(); -#line 9349 "" +#line 9410 "" } -#line 9350 "" +#line 9411 "" readnum_(lineq, &a1ll_2.iccount, durq, &dimen, (ftnlen)128, ( ftnlen)1); /* Check units. Convert to points */ -#line 9354 "" +#line 9415 "" if (*(unsigned char *)durq == ' ' || *(unsigned char *)durq == 'p') { -#line 9355 "" +#line 9416 "" dimen += .5f; -#line 9356 "" +#line 9417 "" } else if (*(unsigned char *)durq == 'i') { -#line 9357 "" +#line 9418 "" dimen = dimen * 72 + .5f; -#line 9358 "" +#line 9419 "" } else if (*(unsigned char *)durq == 'm') { -#line 9359 "" +#line 9420 "" dimen = dimen / 25.4f * 72 + .5f; -#line 9360 "" +#line 9421 "" } else { -#line 9361 "" +#line 9422 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9361 "" +#line 9422 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal unit; mu"\ "st be \"p\",\"i\",or\"m\"!", (ftnlen)128, (ftnlen) 36); -#line 9363 "" +#line 9424 "" stop1_(); -#line 9364 "" +#line 9425 "" } /* 151211 fix. May have extra character. */ -#line 9368 "" +#line 9429 "" if (i_indx("pim", durq, (ftnlen)3, (ftnlen)1) > 0) { /* Get another character, see if it's blank */ -#line 9372 "" +#line 9433 "" i__1 = a1ll_2.iccount; -#line 9372 "" +#line 9433 "" if (s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, ( ftnlen)1) != 0) { -#line 9373 "" +#line 9434 "" i__1 = a1ll_2.iccount + 1; -#line 9373 "" +#line 9434 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9373 "" +#line 9434 "" errmsg_(lineq, &i__1, &i__4, "This character should "\ "be a blank!", (ftnlen)128, (ftnlen)33); -#line 9375 "" +#line 9436 "" stop1_(); -#line 9376 "" +#line 9437 "" } -#line 9377 "" +#line 9438 "" } -#line 9378 "" +#line 9439 "" if (*(unsigned char *)charq == 'h') { -#line 9379 "" +#line 9440 "" compage_1.ptheight = (real) ((integer) dimen); -#line 9380 "" +#line 9441 "" } else { -#line 9381 "" +#line 9442 "" compage_1.widthpt = (real) ((integer) dimen); -#line 9382 "" +#line 9443 "" } -#line 9383 "" +#line 9444 "" } -#line 9384 "" +#line 9445 "" } else if (*(unsigned char *)charq == 'm') { /* Time signature change. Only allow at beginning of block. */ @@ -22745,44 +22853,44 @@ L17: /* Check whether at beginning of a block */ -#line 9392 "" +#line 9453 "" if (c1ommvl_1.ivx != 1 || a1ll_2.nnl[0] != 0) { -#line 9393 "" +#line 9454 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9393 "" +#line 9454 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Meter change only OK"\ " in voice 1, at start of block!", (ftnlen)128, ( ftnlen)51); -#line 9395 "" - s_wsle(&io___629); -#line 9395 "" +#line 9456 "" + s_wsle(&io___630); +#line 9456 "" do_lio(&c__9, &c__1, "voice number is", (ftnlen)15); -#line 9395 "" +#line 9456 "" do_lio(&c__3, &c__1, (char *)&c1ommvl_1.ivx, (ftnlen)sizeof( integer)); -#line 9395 "" +#line 9456 "" e_wsle(); -#line 9396 "" +#line 9457 "" stop1_(); -#line 9397 "" +#line 9458 "" } -#line 9398 "" +#line 9459 "" a1ll_2.newmeter = TRUE_; -#line 9399 "" +#line 9460 "" readmeter_(lineq, &a1ll_2.iccount, &a1ll_2.mtrnuml, &mtrdenl, ( ftnlen)128); -#line 9400 "" +#line 9461 "" if (a1ll_2.mtrnuml == 0) { -#line 9401 "" +#line 9462 "" i__1 = a1ll_2.iccount - 1; -#line 9401 "" +#line 9462 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9401 "" +#line 9462 "" errmsg_(lineq, &i__1, &i__4, "Digit 0 not allowed here!", ( ftnlen)128, (ftnlen)25); -#line 9403 "" +#line 9464 "" stop1_(); /* else if (mtrdenl .eq. 1) then */ /* c */ @@ -22790,645 +22898,645 @@ L17: /* c */ /* mtrdenl = 2 */ /* mtrnuml = 2*mtrnuml */ -#line 9410 "" +#line 9471 "" } -#line 9411 "" +#line 9472 "" readmeter_(lineq, &a1ll_2.iccount, &mtrnmp, &mtrdnp, (ftnlen)128); /* Read past printed time signature; not used in pmxa. */ -#line 9415 "" +#line 9476 "" lenbeat = i1fnodur_(&mtrdenl, "x", (ftnlen)1); -#line 9416 "" +#line 9477 "" lenmult = 1; -#line 9417 "" +#line 9478 "" if (mtrdenl == 2) { -#line 9418 "" +#line 9479 "" lenbeat = 16; -#line 9419 "" +#line 9480 "" lenmult = 2; -#line 9420 "" +#line 9481 "" } -#line 9421 "" +#line 9482 "" a1ll_2.lenbar = lenmult * a1ll_2.mtrnuml * lenbeat; -#line 9422 "" +#line 9483 "" a1ll_2.mtrnuml = 0; -#line 9423 "" +#line 9484 "" } else if (*(unsigned char *)charq == 'C') { -#line 9424 "" +#line 9485 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9425 "" +#line 9486 "" if (! (i_indx("tsmanrbf", durq, (ftnlen)8, (ftnlen)1) > 0 || *( unsigned char *)durq >= 48 && *(unsigned char *)durq <= 56)) { /* * (ichar(durq).ge.48 .and. ichar(durq).le.54))) then */ /* * (ichar(durq).ge.48 .and. ichar(durq).le.55))) then */ -#line 9429 "" +#line 9490 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9429 "" +#line 9490 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must have t,s,m,a,n,"\ "r,b,f or 0-8 after C!", (ftnlen)128, (ftnlen)41); /* * 'Must have t,s,m,a,n,r,b,f or 1-6 after C!') */ -#line 9432 "" +#line 9493 "" stop1_(); -#line 9433 "" +#line 9494 "" } /* gotclef = .true. */ -#line 9435 "" +#line 9496 "" } else if (*(unsigned char *)charq == 'R') { -#line 9436 "" +#line 9497 "" if (c1ommvl_1.ivx != 1) { -#line 9437 "" +#line 9498 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9437 "" +#line 9498 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Repeats can only go "\ "in voice 1!", (ftnlen)128, (ftnlen)31); -#line 9439 "" +#line 9500 "" stop1_(); -#line 9440 "" +#line 9501 "" } -#line 9441 "" +#line 9502 "" L10: -#line 9441 "" +#line 9502 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9442 "" +#line 9503 "" if (i_indx("lrdDbz", durq, (ftnlen)6, (ftnlen)1) > 0) { -#line 9442 "" +#line 9503 "" goto L10; -#line 9442 "" +#line 9503 "" } -#line 9443 "" +#line 9504 "" if (*(unsigned char *)durq != ' ') { -#line 9444 "" +#line 9505 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9444 "" +#line 9505 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character af"\ "ter \"R\" (repeat/double bar)!", (ftnlen)128, (ftnlen) 48); -#line 9446 "" +#line 9507 "" stop1_(); -#line 9447 "" +#line 9508 "" } -#line 9448 "" +#line 9509 "" } else if (*(unsigned char *)charq == 'V') { /* Ending */ -#line 9452 "" +#line 9513 "" if (a1ll_2.iv != 1) { -#line 9453 "" +#line 9514 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9453 "" +#line 9514 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Voltas are only allo"\ "wed in voice #1!", (ftnlen)128, (ftnlen)36); -#line 9455 "" +#line 9516 "" stop1_(); -#line 9456 "" +#line 9517 "" } else if (c1omget_1.isvolt) { -#line 9457 "" - s_wsle(&io___635); -#line 9457 "" - e_wsle(); -#line 9458 "" +#line 9518 "" s_wsle(&io___636); -#line 9458 "" +#line 9518 "" + e_wsle(); +#line 9519 "" + s_wsle(&io___637); +#line 9519 "" do_lio(&c__9, &c__1, "*******WARNING********", (ftnlen)22); -#line 9458 "" +#line 9519 "" e_wsle(); -#line 9459 "" - s_wsfe(&io___637); -#line 9459 "" +#line 9520 "" + s_wsfe(&io___638); +#line 9520 "" do_fio(&c__1, "*******WARNING********", (ftnlen)22); -#line 9459 "" +#line 9520 "" e_wsfe(); -#line 9460 "" +#line 9521 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9460 "" +#line 9521 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "There is more than o"\ "ne volta in this input block.!", (ftnlen)128, (ftnlen) 50); -#line 9462 "" - s_wsle(&io___638); -#line 9462 "" +#line 9523 "" + s_wsle(&io___639); +#line 9523 "" do_lio(&c__9, &c__1, "This may work in a score, but WILL NOT"\ " work in parts.", (ftnlen)53); -#line 9462 "" +#line 9523 "" e_wsle(); -#line 9463 "" - s_wsle(&io___639); -#line 9463 "" +#line 9524 "" + s_wsle(&io___640); +#line 9524 "" do_lio(&c__9, &c__1, "Safest to have only 1 volta per block,"\ " at the start of the block", (ftnlen)64); -#line 9463 "" +#line 9524 "" e_wsle(); -#line 9465 "" - s_wsfe(&io___640); -#line 9465 "" +#line 9526 "" + s_wsfe(&io___641); +#line 9526 "" do_fio(&c__1, "This may work in a score, but WILL NOT work i"\ "n parts.", (ftnlen)53); -#line 9465 "" +#line 9526 "" e_wsfe(); -#line 9467 "" - s_wsfe(&io___641); -#line 9467 "" +#line 9528 "" + s_wsfe(&io___642); +#line 9528 "" do_fio(&c__1, "Safest to have only 1 volta per block, at the"\ " start of the block", (ftnlen)64); -#line 9467 "" +#line 9528 "" e_wsfe(); -#line 9469 "" +#line 9530 "" } -#line 9470 "" +#line 9531 "" c1omget_1.isvolt = TRUE_; -#line 9471 "" +#line 9532 "" lvoltxt = 0; -#line 9472 "" +#line 9533 "" L11: -#line 9472 "" +#line 9533 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9473 "" +#line 9534 "" if (*(unsigned char *)durq != ' ') { -#line 9474 "" +#line 9535 "" goto L11; -#line 9475 "" +#line 9536 "" } -#line 9476 "" +#line 9537 "" } else if (*(unsigned char *)charq == 'B') { -#line 9478 "" +#line 9539 "" } else if (*(unsigned char *)charq == 'P') { -#line 9479 "" +#line 9540 "" if (c1ommvl_1.ivx != 1 || a1ll_2.nnl[0] != 0) { -#line 9480 "" +#line 9541 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9480 "" +#line 9541 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only allowed at begi"\ "nning of block!", (ftnlen)128, (ftnlen)35); -#line 9482 "" +#line 9543 "" stop1_(); -#line 9483 "" +#line 9544 "" } -#line 9484 "" +#line 9545 "" L16: -#line 9484 "" +#line 9545 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9485 "" +#line 9546 "" if (*(unsigned char *)durq == 'l' || *(unsigned char *)durq == 'r' || *(unsigned char *)durq >= 48 && *(unsigned char *) durq <= 57) { -#line 9485 "" +#line 9546 "" goto L16; -#line 9485 "" +#line 9546 "" } -#line 9487 "" +#line 9548 "" if (*(unsigned char *)durq == 'c') { /* Expect a centered name, and it has to be last option */ -#line 9491 "" +#line 9552 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 9492 "" +#line 9553 "" if (*(unsigned char *)durq == '"') { /* Quoted name, go to next quote mark */ -#line 9496 "" +#line 9557 "" for (++a1ll_2.iccount; a1ll_2.iccount <= 127; ++a1ll_2.iccount) { -#line 9497 "" +#line 9558 "" if (*(unsigned char *)&lineq[a1ll_2.iccount - 1] == '"') { -#line 9497 "" +#line 9558 "" goto L36; -#line 9497 "" +#line 9558 "" } -#line 9498 "" +#line 9559 "" /* L35: */ -#line 9498 "" +#line 9559 "" } -#line 9499 "" +#line 9560 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9499 "" +#line 9560 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Missing close qu"\ "ote after page number command (P)!", (ftnlen)128, (ftnlen)50); -#line 9501 "" +#line 9562 "" stop1_(); -#line 9502 "" +#line 9563 "" L36: -#line 9503 "" +#line 9564 "" ; -#line 9503 "" +#line 9564 "" } else if (*(unsigned char *)durq != ' ') { /* Space-delimited name, look for next blank */ -#line 9507 "" +#line 9568 "" for (++a1ll_2.iccount; a1ll_2.iccount <= 127; ++a1ll_2.iccount) { -#line 9508 "" +#line 9569 "" if (*(unsigned char *)&lineq[a1ll_2.iccount - 1] == ' ') { -#line 9508 "" +#line 9569 "" goto L38; -#line 9508 "" +#line 9569 "" } -#line 9509 "" +#line 9570 "" /* L37: */ -#line 9509 "" +#line 9570 "" } -#line 9510 "" +#line 9571 "" L38: -#line 9511 "" +#line 9572 "" ; -#line 9511 "" +#line 9572 "" } -#line 9512 "" +#line 9573 "" } else if (*(unsigned char *)durq != ' ') { -#line 9513 "" +#line 9574 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9513 "" +#line 9574 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only \"l\",\"r\",\""\ "c\" or digit allowed after \"P\"!", (ftnlen)128, ( ftnlen)44); -#line 9515 "" +#line 9576 "" stop1_(); -#line 9516 "" +#line 9577 "" } -#line 9517 "" +#line 9578 "" } else if (*(unsigned char *)charq == 'W') { -#line 9518 "" +#line 9579 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9519 "" +#line 9580 "" if (i_indx(".0123456789", durq, (ftnlen)11, (ftnlen)1) == 0) { -#line 9520 "" +#line 9581 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9520 "" +#line 9581 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected a number to"\ " start here!", (ftnlen)128, (ftnlen)32); -#line 9522 "" +#line 9583 "" stop1_(); -#line 9523 "" +#line 9584 "" } -#line 9524 "" +#line 9585 "" readnum_(lineq, &a1ll_2.iccount, durq, &c1omnotes_1.wminnh[ c1omnotes_1.ibarcnt + a1ll_2.nbars], (ftnlen)128, (ftnlen) 1); -#line 9525 "" +#line 9586 "" } else if (*(unsigned char *)charq == 'T') { /* Titles */ -#line 9529 "" +#line 9590 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9530 "" +#line 9591 "" if (i_indx("itc", durq, (ftnlen)3, (ftnlen)1) == 0) { -#line 9531 "" +#line 9592 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9531 "" +#line 9592 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must put \"i\", \""\ "t\", or \"c\" after \"T\"!", (ftnlen)128, (ftnlen)36); -#line 9533 "" +#line 9594 "" stop1_(); -#line 9534 "" +#line 9595 "" } -#line 9535 "" +#line 9596 "" i__1 = i_indx("itc", durq, (ftnlen)3, (ftnlen)1) - 1; -#line 9535 "" +#line 9596 "" c1omget_1.ihead += pow_ii(&c__2, &i__1); /* Maybe a number after 'Tt', but ignore here. Read past string on next line. */ -#line 9539 "" +#line 9600 "" read10_(charq, &c1omget_1.lastchar, (ftnlen)1); -#line 9540 "" +#line 9601 "" ++c1omget_1.nline; -#line 9541 "" +#line 9602 "" a1ll_2.iccount = 128; -#line 9542 "" +#line 9603 "" } else if (*(unsigned char *)charq == 'A') { -#line 9543 "" +#line 9604 "" L27: -#line 9543 "" +#line 9604 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9544 "" +#line 9605 "" if (i_indx("rbsdeK", durq, (ftnlen)6, (ftnlen)1) > 0) { -#line 9545 "" +#line 9606 "" goto L27; -#line 9546 "" +#line 9607 "" } else if (*(unsigned char *)durq == 'v') { -#line 9547 "" +#line 9608 "" if (c1omnotes_1.ibarcnt == 0) { -#line 9547 "" +#line 9608 "" comnvst_1.novshrinktop = TRUE_; -#line 9547 "" +#line 9608 "" } -#line 9548 "" +#line 9609 "" goto L27; -#line 9549 "" +#line 9610 "" } else if (*(unsigned char *)durq == 'a') { -#line 9550 "" +#line 9611 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 9551 "" +#line 9612 "" if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) == 0) { -#line 9552 "" +#line 9613 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9552 "" +#line 9613 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "After \"Aa\", ne"\ "ed decimal number!", (ftnlen)128, (ftnlen)32); -#line 9554 "" +#line 9615 "" stop1_(); -#line 9555 "" +#line 9616 "" } -#line 9556 "" +#line 9617 "" readnum_(lineq, &a1ll_2.iccount, durq, &c1ommvl_1.fbar, ( ftnlen)128, (ftnlen)1); -#line 9557 "" +#line 9618 "" --a1ll_2.iccount; -#line 9558 "" +#line 9619 "" goto L27; -#line 9559 "" +#line 9620 "" } else if (*(unsigned char *)durq == 'i') { -#line 9560 "" +#line 9621 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); /* Local interstaff correction. Set to -1. if not specifiec, or after use, */ /* or anytime except at top, since pmxb handles all times except at top. */ -#line 9565 "" +#line 9626 "" readnum_(lineq, &a1ll_2.iccount, durq, &tintstf, (ftnlen)128, (ftnlen)1); -#line 9566 "" +#line 9627 "" if (c1omnotes_1.ibarcnt == 0) { -#line 9566 "" +#line 9627 "" compage_1.fintstf = tintstf; -#line 9566 "" +#line 9627 "" } -#line 9567 "" +#line 9628 "" --a1ll_2.iccount; -#line 9568 "" +#line 9629 "" goto L27; -#line 9569 "" +#line 9630 "" } else if (*(unsigned char *)durq == 'I') { /* Global interstaff correction. Use in place of fintstf if fintstf<0 */ -#line 9573 "" +#line 9634 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 9574 "" +#line 9635 "" readnum_(lineq, &a1ll_2.iccount, durq, &compage_1.gintstf, ( ftnlen)128, (ftnlen)1); -#line 9575 "" +#line 9636 "" --a1ll_2.iccount; -#line 9576 "" +#line 9637 "" goto L27; -#line 9577 "" +#line 9638 "" } else if (*(unsigned char *)durq == 'o') { -#line 9578 "" +#line 9639 "" *optimize = TRUE_; -#line 9579 "" +#line 9640 "" goto L27; -#line 9580 "" +#line 9641 "" } else if (*(unsigned char *)durq == 'S') { /* 130324 */ /* do 50 iiv = 1 , nv */ -#line 9583 "" +#line 9644 "" i__1 = comkeys_1.noinst; -#line 9583 "" +#line 9644 "" for (iiv = 1; iiv <= i__1; ++iiv) { -#line 9584 "" +#line 9645 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 9585 "" +#line 9646 "" if (i_indx("-0st", durq, (ftnlen)4, (ftnlen)1) == 0) { -#line 9586 "" +#line 9647 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9586 "" +#line 9647 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "After \"AS\""\ ", need nv instances of \"s,t,-,0\"!", (ftnlen) 128, (ftnlen)43); -#line 9588 "" +#line 9649 "" stop1_(); -#line 9589 "" +#line 9650 "" } -#line 9590 "" +#line 9651 "" if (*(unsigned char *)durq == '-' || *(unsigned char *) durq == 's') { -#line 9591 "" +#line 9652 "" comsize_1.isize[iiv - 1] = 1; -#line 9592 "" +#line 9653 "" } else if (*(unsigned char *)durq == 't') { -#line 9593 "" +#line 9654 "" comsize_1.isize[iiv - 1] = 2; -#line 9594 "" +#line 9655 "" } -#line 9595 "" +#line 9656 "" /* L50: */ -#line 9595 "" +#line 9656 "" } -#line 9596 "" +#line 9657 "" goto L27; -#line 9597 "" +#line 9658 "" } else if (*(unsigned char *)durq == 'p') { -#line 9598 "" +#line 9659 "" comslur_1.fontslur = FALSE_; -#line 9599 "" +#line 9660 "" L42: -#line 9600 "" +#line 9661 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 9601 "" +#line 9662 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Characters to change defaults for ps slurs */ -#line 9605 "" +#line 9666 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 9606 "" +#line 9667 "" if (i_indx("shtc", durq, (ftnlen)4, (ftnlen)1) == 0) { -#line 9607 "" +#line 9668 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9607 "" +#line 9668 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only letters"\ " allowed here are \"s\",\"h\",\"t\",\"c\"!", ( ftnlen)128, (ftnlen)46); -#line 9609 "" +#line 9670 "" stop1_(); -#line 9610 "" +#line 9671 "" } /* Now check for another default modifier */ -#line 9614 "" +#line 9675 "" goto L42; -#line 9615 "" +#line 9676 "" } else if (i_indx("lh", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Flags for optional linebreak ties or header specials */ -#line 9619 "" +#line 9680 "" goto L42; -#line 9620 "" +#line 9681 "" } else { -#line 9621 "" +#line 9682 "" --a1ll_2.iccount; -#line 9622 "" +#line 9683 "" } -#line 9623 "" +#line 9684 "" goto L27; -#line 9624 "" +#line 9685 "" } else if (*(unsigned char *)durq == 'N') { /* Override default name for a part file. Must have part number, then */ /* partname in quotes. Must be on line by itself, and start in column 1. */ /* Will only be passed thru to scor2prt. */ -#line 9630 "" +#line 9691 "" if (a1ll_2.iccount != 2) { -#line 9631 "" +#line 9692 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9631 "" +#line 9692 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"AN\" must star"\ "t in column 1!", (ftnlen)128, (ftnlen)28); -#line 9633 "" +#line 9694 "" stop1_(); -#line 9634 "" +#line 9695 "" } -#line 9635 "" +#line 9696 "" ndxquote = i_indx(lineq, "\"", (ftnlen)128, (ftnlen)1); -#line 9636 "" +#line 9697 "" if (ndxquote < 4 || ndxquote > 5 || i_indx("123456789", lineq + 2, (ftnlen)9, (ftnlen)1) == 0 || ndxquote == 5 && i_indx("012", lineq + 3, (ftnlen)3, (ftnlen)1) == 0) { -#line 9639 "" +#line 9700 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9639 "" +#line 9700 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"AN\" must be f"\ "ollowed by inst. #, then quote!", (ftnlen)128, ( ftnlen)45); -#line 9641 "" +#line 9702 "" stop1_(); -#line 9642 "" +#line 9703 "" } -#line 9643 "" +#line 9704 "" i__1 = ndxquote; -#line 9643 "" +#line 9704 "" ndxquote = i_indx(lineq + i__1, "\"", 128 - i__1, (ftnlen)1); -#line 9644 "" +#line 9705 "" if (ndxquote == 0) { -#line 9645 "" +#line 9706 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9645 "" +#line 9706 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "In \"AN\", file "\ "name must be in quotes!", (ftnlen)128, (ftnlen)37) ; -#line 9647 "" +#line 9708 "" stop1_(); -#line 9648 "" +#line 9709 "" } -#line 9649 "" +#line 9710 "" a1ll_2.iccount = 128; -#line 9650 "" +#line 9711 "" } else if (*(unsigned char *)durq == 'T') { -#line 9651 "" +#line 9712 "" comnvst_1.cstuplet = TRUE_; -#line 9652 "" +#line 9713 "" } else if (*(unsigned char *)durq == 'R') { /* Get full name of normal include file; must occupy remainder of line */ -#line 9656 "" +#line 9717 "" i__1 = a1ll_2.iccount; -#line 9656 "" +#line 9717 "" getpmxmod_(&c_false, lineq + i__1, 128 - i__1); -#line 9657 "" +#line 9718 "" a1ll_2.iccount = 128; -#line 9658 "" +#line 9719 "" } else if (*(unsigned char *)durq == 'c') { -#line 9659 "" +#line 9720 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 9660 "" +#line 9721 "" if (i_indx("l4", durq, (ftnlen)2, (ftnlen)1) == 0) { -#line 9661 "" +#line 9722 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9661 "" +#line 9722 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only \"l\" or"\ " \"4\" is allowed here!", (ftnlen)128, (ftnlen)32) ; -#line 9663 "" +#line 9724 "" stop1_(); -#line 9664 "" +#line 9725 "" } -#line 9665 "" +#line 9726 "" if (*(unsigned char *)durq == 'l') { -#line 9666 "" +#line 9727 "" compage_1.hoffpt = -25.f; -#line 9667 "" +#line 9728 "" compage_1.voffpt = -45.f; -#line 9668 "" +#line 9729 "" } else if (*(unsigned char *)durq == '4') { -#line 9669 "" +#line 9730 "" compage_1.ptheight = 745.f; -#line 9670 "" +#line 9731 "" compage_1.widthpt = 499.f; -#line 9671 "" +#line 9732 "" compage_1.hoffpt = -24.f; -#line 9672 "" +#line 9733 "" compage_1.voffpt = -24.f; -#line 9673 "" +#line 9734 "" } -#line 9674 "" +#line 9735 "" goto L27; -#line 9675 "" +#line 9736 "" } else if (*(unsigned char *)durq != ' ') { -#line 9676 "" +#line 9737 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9676 "" +#line 9737 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "After \"A\" must fol"\ "low one of the letters abcdeiILNprRsST!", (ftnlen)128, (ftnlen)57); /* * 'After "A" must follow one of the letters abcdeiINprRsST!') */ -#line 9679 "" - s_wsle(&io___646); -#line 9679 "" +#line 9740 "" + s_wsle(&io___647); +#line 9740 "" do_lio(&c__9, &c__1, "For AS, since ver. 2.7, must only have"\ " noinst args.", (ftnlen)51); -#line 9679 "" +#line 9740 "" e_wsle(); -#line 9680 "" - s_wsfe(&io___647); -#line 9680 "" +#line 9741 "" + s_wsfe(&io___648); +#line 9741 "" do_fio(&c__1, "For AS, since ver. 2.7, must only have noinst"\ " args.", (ftnlen)51); -#line 9680 "" +#line 9741 "" e_wsfe(); -#line 9682 "" +#line 9743 "" stop1_(); -#line 9683 "" +#line 9744 "" } -#line 9684 "" +#line 9745 "" } else if (*(unsigned char *)charq == 'K') { /* Rules and function of K command */ @@ -23440,165 +23548,165 @@ L42: /* then adjust fbar to make poenom much more accurate. */ /* Jan 02: Now K-0+[n] is used to transpose e.g. from f to f#. */ -#line 9695 "" +#line 9756 "" L77: -#line 9696 "" +#line 9757 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); /* if (index('+-i',durq) .eq. 0) then */ -#line 9698 "" +#line 9759 "" if (i_indx("+-in", durq, (ftnlen)4, (ftnlen)1) == 0) { -#line 9699 "" +#line 9760 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9699 "" +#line 9760 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"K\" (transpose or "\ "key change) must be followed by \"+,-,i,n\"!", ( ftnlen)128, (ftnlen)60); -#line 9701 "" +#line 9762 "" stop1_(); -#line 9702 "" +#line 9763 "" } -#line 9703 "" +#line 9764 "" if (*(unsigned char *)durq == 'n') { -#line 9703 "" +#line 9764 "" goto L77; -#line 9703 "" +#line 9764 "" } -#line 9704 "" +#line 9765 "" if (*(unsigned char *)durq != 'i') { /* Normal key change and/or transposition) */ /* iccount = iccount+1 */ -#line 9709 "" +#line 9770 "" num1 = 44 - *(unsigned char *)durq; /* num1= +1 or -1 */ -#line 9713 "" +#line 9774 "" ztrans = num1 == -1; -#line 9714 "" +#line 9775 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 9715 "" +#line 9776 "" if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 9716 "" +#line 9777 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9716 "" +#line 9777 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "1st +/- must be "\ "followed by a number!", (ftnlen)128, (ftnlen)37); -#line 9718 "" +#line 9779 "" stop1_(); -#line 9719 "" +#line 9780 "" } /* iccount = iccount+1 */ -#line 9721 "" +#line 9782 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 9722 "" +#line 9783 "" num1 = i_nint(&fnum) * num1; -#line 9723 "" +#line 9784 "" ztrans = ztrans && num1 == 0; -#line 9724 "" +#line 9785 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) { -#line 9725 "" +#line 9786 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9725 "" +#line 9786 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "1st number aft"\ "er \"K\" must be followed by \"+,-\"!", (ftnlen) 128, (ftnlen)47); -#line 9727 "" +#line 9788 "" stop1_(); -#line 9728 "" +#line 9789 "" } -#line 9729 "" +#line 9790 "" ++a1ll_2.iccount; -#line 9730 "" +#line 9791 "" num2 = 44 - *(unsigned char *)durq; -#line 9731 "" +#line 9792 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 9732 "" +#line 9793 "" num2 *= (integer) (fnum + .1f); -#line 9733 "" +#line 9794 "" if (num1 == 0 && ! ztrans) { /* Key change, only one per block allowed */ -#line 9737 "" +#line 9798 "" if (comkeys_1.iskchb) { -#line 9738 "" +#line 9799 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9738 "" +#line 9799 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only one key"\ " change allowed per input block!", (ftnlen) 128, (ftnlen)44); -#line 9740 "" +#line 9801 "" stop1_(); -#line 9741 "" +#line 9802 "" } -#line 9742 "" +#line 9803 "" comkeys_1.iskchb = TRUE_; -#line 9743 "" +#line 9804 "" ++comkeys_1.nkeys; -#line 9744 "" +#line 9805 "" comkeys_1.kchmid[comkeys_1.nkeys - 1] = a1ll_2.itsofar[ c1ommvl_1.ivx - 1] % a1ll_2.lenbar != 0; /* Make ibrkch = barnum-1 if at start of bar, so fsyst advances ok at linebreak. */ -#line 9748 "" +#line 9809 "" comkeys_1.ibrkch[comkeys_1.nkeys - 1] = c1omnotes_1.ibarcnt + a1ll_2.nbars; -#line 9749 "" +#line 9810 "" if (comkeys_1.kchmid[comkeys_1.nkeys - 1]) { -#line 9749 "" +#line 9810 "" ++comkeys_1.ibrkch[comkeys_1.nkeys - 1]; -#line 9749 "" +#line 9810 "" } -#line 9750 "" +#line 9811 "" comkeys_1.newkey[comkeys_1.nkeys - 1] = num2 + comkeys_1.idsig; /* 130316 */ /* do 43 iinst = 1 , noinst */ -#line 9753 "" +#line 9814 "" commidisig_1.midisig = comkeys_1.newkey[comkeys_1.nkeys - 1]; /* 43 continue */ -#line 9755 "" +#line 9816 "" } else { /* Transposition */ -#line 9759 "" +#line 9820 "" *fulltrans = TRUE_; -#line 9760 "" +#line 9821 "" if (c1omnotes_1.ibarcnt > 0) { -#line 9761 "" +#line 9822 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9761 "" +#line 9822 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Transpositio"\ "n must be at top of first input block!", ( ftnlen)128, (ftnlen)50); -#line 9763 "" +#line 9824 "" stop1_(); -#line 9764 "" +#line 9825 "" } -#line 9765 "" +#line 9826 "" comkeys_1.isig1 = num2; -#line 9766 "" +#line 9827 "" comkeys_1.idsig = comkeys_1.isig1 - comkeys_1.newkey[0]; /* idsig is the difference between sig after transposition, and sig in setup. */ /* It may alter # of accid's in key changes if there is transposition. */ -#line 9771 "" +#line 9832 "" } -#line 9772 "" +#line 9833 "" } else { /* 110522/110529 */ @@ -23618,86 +23726,86 @@ L77: /* call stop1() */ /* end if */ /* durq='i' */ -#line 9790 "" +#line 9851 "" getitransinfo_(&c_true, &c1omnotes_1.ibarcnt, lineq, & a1ll_2.iccount, &c1omnotes_1.ibaroff, &a1ll_2.nbars, & comkeys_1.noinst, (ftnlen)128); -#line 9792 "" +#line 9853 "" } -#line 9793 "" +#line 9854 "" } else if (*(unsigned char *)charq == '|') { /* Optional bar symbol */ -#line 9797 "" +#line 9858 "" if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] % a1ll_2.lenbar != 0) { -#line 9798 "" +#line 9859 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9798 "" +#line 9859 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Bar line marker out "\ "of place!", (ftnlen)128, (ftnlen)29); -#line 9800 "" +#line 9861 "" stop1_(); -#line 9801 "" +#line 9862 "" } else if (comkeys_1.shifton) { -#line 9802 "" +#line 9863 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9802 "" +#line 9863 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Bar ended with user-"\ "defined shift still on!", (ftnlen)128, (ftnlen)43); -#line 9804 "" +#line 9865 "" stop1_(); -#line 9805 "" +#line 9866 "" } -#line 9806 "" +#line 9867 "" } else if (*(unsigned char *)charq == '/') { -#line 9807 "" +#line 9868 "" if (comkeys_1.ornrpt) { -#line 9808 "" +#line 9869 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9808 "" +#line 9869 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "WARNING: Block ended"\ " with repeated ornament still on!", (ftnlen)128, ( ftnlen)53); -#line 9810 "" +#line 9871 "" comkeys_1.ornrpt = FALSE_; -#line 9811 "" +#line 9872 "" } -#line 9812 "" +#line 9873 "" if (comkeys_1.stickys) { -#line 9813 "" +#line 9874 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9813 "" +#line 9874 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "WARNING: Block ended"\ " with sticky stemshrink still on!", (ftnlen)128, ( ftnlen)53); -#line 9815 "" +#line 9876 "" comkeys_1.stickys = FALSE_; -#line 9816 "" +#line 9877 "" } -#line 9817 "" +#line 9878 "" if (c1omget_1.fbon) { -#line 9818 "" +#line 9879 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9818 "" +#line 9879 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Block ended with for"\ "ced beam open!", (ftnlen)128, (ftnlen)34); -#line 9820 "" +#line 9881 "" stop1_(); -#line 9821 "" +#line 9882 "" } else if (comkeys_1.shifton) { -#line 9822 "" +#line 9883 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9822 "" +#line 9883 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Bar ended with user-"\ "defined shift still on!", (ftnlen)128, (ftnlen)43); -#line 9824 "" +#line 9885 "" stop1_(); /* 140215 Temporary to allow clef change in stup */ @@ -23706,998 +23814,998 @@ L77: /* call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, */ /* * 'May not enter clef at end of input block!') */ /* call stop1() */ -#line 9832 "" +#line 9893 "" } -#line 9833 "" +#line 9894 "" comkeys_1.barend = FALSE_; /* Perform time checks */ -#line 9837 "" +#line 9898 "" if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] % a1ll_2.lenbar != 0) { -#line 9838 "" +#line 9899 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9838 "" +#line 9899 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Block duration not d"\ "ivisible by lenbar!", (ftnlen)128, (ftnlen)39); -#line 9840 "" - s_wsle(&io___651); -#line 9840 "" +#line 9901 "" + s_wsle(&io___652); +#line 9901 "" do_lio(&c__9, &c__1, "lenbar is ", (ftnlen)10); -#line 9840 "" +#line 9901 "" do_lio(&c__3, &c__1, (char *)&a1ll_2.lenbar, (ftnlen)sizeof( integer)); -#line 9840 "" +#line 9901 "" e_wsle(); -#line 9841 "" +#line 9902 "" stop1_(); -#line 9842 "" +#line 9903 "" } else if (c1ommvl_1.ivx > 1 && a1ll_2.itsofar[c1ommvl_1.ivx - 1] != a1ll_2.itsofar[0]) { -#line 9843 "" - s_wsle(&io___652); -#line 9843 "" - e_wsle(); -#line 9844 "" +#line 9904 "" s_wsle(&io___653); -#line 9844 "" +#line 9904 "" + e_wsle(); +#line 9905 "" + s_wsle(&io___654); +#line 9905 "" do_lio(&c__9, &c__1, "# of bars in voice 1, current voice:", ( ftnlen)36); -#line 9844 "" +#line 9905 "" i__1 = a1ll_2.itsofar[0] / a1ll_2.lenbar; -#line 9844 "" +#line 9905 "" do_lio(&c__3, &c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 9844 "" +#line 9905 "" i__4 = a1ll_2.itsofar[c1ommvl_1.ivx - 1] / a1ll_2.lenbar; -#line 9844 "" +#line 9905 "" do_lio(&c__3, &c__1, (char *)&i__4, (ftnlen)sizeof(integer)); -#line 9844 "" +#line 9905 "" e_wsle(); -#line 9846 "" +#line 9907 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9846 "" +#line 9907 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Block duration not e"\ "qual to voice 1!", (ftnlen)128, (ftnlen)36); -#line 9848 "" +#line 9909 "" stop1_(); -#line 9849 "" +#line 9910 "" } -#line 9850 "" +#line 9911 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9851 "" +#line 9912 "" if (*(unsigned char *)durq == ' ' && a1ll_2.iv == a1ll_2.nv) { /* End of input block */ -#line 9855 "" +#line 9916 "" *loop = FALSE_; -#line 9856 "" +#line 9917 "" } else { /* Start a new voice */ -#line 9860 "" +#line 9921 "" if (a1ll_2.lenbr0 != 0 && a1ll_2.firstline) { -#line 9860 "" +#line 9921 "" a1ll_2.lenbar = a1ll_2.lenbr0; -#line 9860 "" +#line 9921 "" } -#line 9861 "" +#line 9922 "" a1ll_2.nbars = 0; -#line 9862 "" +#line 9923 "" if (*(unsigned char *)durq == ' ') { /* New voice is on next staff */ -#line 9866 "" +#line 9927 "" ++a1ll_2.iv; -#line 9867 "" +#line 9928 "" c1ommvl_1.ivx = a1ll_2.iv; -#line 9868 "" +#line 9929 "" } else { /* New voice is on same staff. Set up for it */ -#line 9872 "" +#line 9933 "" c1ommvl_1.ivx = a1ll_2.nv + 1; -#line 9873 "" +#line 9934 "" i__1 = a1ll_2.nv; -#line 9873 "" +#line 9934 "" for (iiv = 1; iiv <= i__1; ++iiv) { -#line 9874 "" +#line 9935 "" if (c1ommvl_1.nvmx[iiv - 1] == 2) { -#line 9874 "" +#line 9935 "" ++c1ommvl_1.ivx; -#line 9874 "" +#line 9935 "" } -#line 9875 "" +#line 9936 "" /* L23: */ -#line 9875 "" +#line 9936 "" } -#line 9876 "" +#line 9937 "" if (c1ommvl_1.ivx > 24) { -#line 9877 "" - s_wsfe(&io___654); -#line 9877 "" +#line 9938 "" + s_wsfe(&io___655); +#line 9938 "" do_fio(&c__1, "Cannot have more than", (ftnlen)21); -#line 9877 "" +#line 9938 "" do_fio(&c__1, (char *)&c__24, (ftnlen)sizeof(integer)) ; -#line 9877 "" +#line 9938 "" do_fio(&c__1, " lines of music at once", (ftnlen)23); -#line 9877 "" +#line 9938 "" e_wsfe(); -#line 9879 "" +#line 9940 "" stop1_(); -#line 9880 "" +#line 9941 "" } -#line 9881 "" +#line 9942 "" c1ommvl_1.nvmx[a1ll_2.iv - 1] = 2; -#line 9882 "" +#line 9943 "" c1ommvl_1.ivmx[a1ll_2.iv + 23] = c1ommvl_1.ivx; -#line 9883 "" +#line 9944 "" a1ll_2.itsofar[c1ommvl_1.ivx - 1] = 0; -#line 9884 "" +#line 9945 "" a1ll_2.nnl[c1ommvl_1.ivx - 1] = 0; -#line 9885 "" +#line 9946 "" for (j = 1; j <= 200; ++j) { -#line 9886 "" +#line 9947 "" a1ll_2.rest[c1ommvl_1.ivx + j * 24 - 25] = FALSE_; -#line 9887 "" +#line 9948 "" c1ommvl_1.nacc[c1ommvl_1.ivx + j * 24 - 25] = 0; -#line 9888 "" +#line 9949 "" /* L24: */ -#line 9888 "" +#line 9949 "" } /* For midi stuff, record that there is a 2nd line of music in this voice */ -#line 9892 "" +#line 9953 "" if (commidi_1.ismidi) { -#line 9892 "" +#line 9953 "" commidi_1.twoline[a1ll_2.iv - 1] = TRUE_; -#line 9892 "" +#line 9953 "" } -#line 9893 "" +#line 9954 "" } -#line 9894 "" +#line 9955 "" } -#line 9895 "" +#line 9956 "" a1ll_2.iccount = 128; -#line 9896 "" +#line 9957 "" } else if (*(unsigned char *)charq == 'S') { /* New nsyst: for use with partmaker scor2prt, for parts w/ diff # of systs. */ -#line 9900 "" +#line 9961 "" if (c1omnotes_1.ibarcnt > 0) { -#line 9901 "" +#line 9962 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9901 "" +#line 9962 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"S\" can only be in"\ " first input block!", (ftnlen)128, (ftnlen)37); -#line 9903 "" +#line 9964 "" stop1_(); -#line 9904 "" +#line 9965 "" } -#line 9905 "" +#line 9966 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9906 "" +#line 9967 "" if (i_indx("123456789 ", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 9907 "" +#line 9968 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9907 "" +#line 9968 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "A digit must follow"\ " \"S\"!", (ftnlen)128, (ftnlen)24); -#line 9909 "" +#line 9970 "" stop1_(); -#line 9910 "" +#line 9971 "" } -#line 9911 "" +#line 9972 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnsyst, (ftnlen)128, ( ftnlen)1); -#line 9912 "" +#line 9973 "" compage_1.nsyst = i_nint(&fnsyst); -#line 9913 "" +#line 9974 "" L14: -#line 9914 "" +#line 9975 "" if (*(unsigned char *)durq == 'P') { /* New npages for parts. */ -#line 9918 "" +#line 9979 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 9919 "" +#line 9980 "" if (i_indx("123456789 ", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 9920 "" +#line 9981 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9920 "" +#line 9981 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must have a numb"\ "er here!", (ftnlen)128, (ftnlen)24); -#line 9922 "" +#line 9983 "" stop1_(); -#line 9923 "" +#line 9984 "" } -#line 9924 "" +#line 9985 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnsyst, (ftnlen)128, ( ftnlen)1); -#line 9925 "" +#line 9986 "" compage_1.npages = i_nint(&fnsyst); -#line 9926 "" +#line 9987 "" goto L14; -#line 9927 "" +#line 9988 "" } else if (*(unsigned char *)durq == 'm') { /* Reset musize (musicsize). */ -#line 9931 "" +#line 9992 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 9932 "" +#line 9993 "" if (i_indx("123456789 ", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 9933 "" +#line 9994 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9933 "" +#line 9994 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must have a numb"\ "er here!", (ftnlen)128, (ftnlen)24); -#line 9935 "" +#line 9996 "" stop1_(); -#line 9936 "" +#line 9997 "" } -#line 9937 "" +#line 9998 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnsyst, (ftnlen)128, ( ftnlen)1); -#line 9938 "" +#line 9999 "" commus_1.musize = i_nint(&fnsyst); -#line 9939 "" +#line 10000 "" c1omnotes_1.wheadpt = commus_1.whead20 * commus_1.musize; -#line 9940 "" +#line 10001 "" goto L14; -#line 9941 "" +#line 10002 "" } else if (*(unsigned char *)durq != ' ') { -#line 9942 "" +#line 10003 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9942 "" +#line 10003 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character "\ "in \"S\" symbol!", (ftnlen)128, (ftnlen)32); -#line 9944 "" +#line 10005 "" stop1_(); -#line 9945 "" +#line 10006 "" } -#line 9946 "" +#line 10007 "" } else if (*(unsigned char *)charq == 'L') { -#line 9947 "" +#line 10008 "" ++compage_1.nflb; -#line 9948 "" +#line 10009 "" compage_1.ibarflb[compage_1.nflb] = c1omnotes_1.ibarcnt + a1ll_2.nbars + 1; -#line 9949 "" +#line 10010 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 9950 "" +#line 10011 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 9951 "" +#line 10012 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9951 "" +#line 10012 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Need integer to defi"\ "ne forced line break!", (ftnlen)128, (ftnlen)41); -#line 9953 "" +#line 10014 "" stop1_(); -#line 9954 "" +#line 10015 "" } -#line 9955 "" +#line 10016 "" readnum_(lineq, &a1ll_2.iccount, durq, &sysflb, (ftnlen)128, ( ftnlen)1); -#line 9956 "" +#line 10017 "" compage_1.isysflb[compage_1.nflb] = i_nint(&sysflb); -#line 9957 "" +#line 10018 "" if (compage_1.nflb > 1) { /* Check if new number is > prior one */ -#line 9961 "" +#line 10022 "" if (compage_1.isysflb[compage_1.nflb] <= compage_1.isysflb[ compage_1.nflb - 1]) { -#line 9962 "" +#line 10023 "" i__1 = a1ll_2.iccount - 1; -#line 9962 "" +#line 10023 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9962 "" +#line 10023 "" errmsg_(lineq, &i__1, &i__4, "You already forced a line "\ "break at a later line!", (ftnlen)128, (ftnlen)48); -#line 9964 "" +#line 10025 "" stop1_(); -#line 9965 "" +#line 10026 "" } -#line 9966 "" +#line 10027 "" } -#line 9967 "" +#line 10028 "" if (compage_1.npages == 0) { -#line 9968 "" - s_wsle(&io___658); -#line 9968 "" - e_wsle(); -#line 9969 "" +#line 10029 "" s_wsle(&io___659); -#line 9969 "" +#line 10029 "" + e_wsle(); +#line 10030 "" + s_wsle(&io___660); +#line 10030 "" do_lio(&c__9, &c__1, "WARNING! You forced a line break at li"\ "ne ", (ftnlen)41); -#line 9969 "" +#line 10030 "" do_lio(&c__3, &c__1, (char *)&compage_1.isysflb[ compage_1.nflb], (ftnlen)sizeof(integer)); -#line 9969 "" +#line 10030 "" do_lio(&c__9, &c__1, " but npage = 0. Continue?", (ftnlen)26) ; -#line 9969 "" +#line 10030 "" e_wsle(); -#line 9971 "" - s_rsfe(&io___660); -#line 9971 "" +#line 10032 "" + s_rsfe(&io___661); +#line 10032 "" do_fio(&c__1, charq, (ftnlen)1); -#line 9971 "" +#line 10032 "" e_rsfe(); -#line 9972 "" +#line 10033 "" if (i_indx("yY", charq, (ftnlen)2, (ftnlen)1) == 0) { -#line 9972 "" +#line 10033 "" stop1_(); -#line 9972 "" +#line 10033 "" } -#line 9973 "" +#line 10034 "" } else if (compage_1.isysflb[compage_1.nflb] > compage_1.nsyst) { -#line 9974 "" +#line 10035 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9974 "" +#line 10035 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Forced line break at"\ " line num > nsyst!", (ftnlen)128, (ftnlen)38); -#line 9976 "" +#line 10037 "" stop1_(); -#line 9977 "" +#line 10038 "" } else if (i_indx(" PM", durq, (ftnlen)3, (ftnlen)1) == 0) { -#line 9978 "" +#line 10039 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9978 "" +#line 10039 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must have \" \", \""\ "P\", or \"M\" here!", (ftnlen)128, (ftnlen)32); -#line 9980 "" +#line 10041 "" stop1_(); -#line 9981 "" +#line 10042 "" } -#line 9982 "" +#line 10043 "" if (*(unsigned char *)durq == 'P') { /* Forced page break here, get page number. */ -#line 9986 "" +#line 10047 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 9987 "" +#line 10048 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 9988 "" +#line 10049 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9988 "" +#line 10049 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Need integer to "\ "define forced page break!", (ftnlen)128, (ftnlen) 41); -#line 9990 "" +#line 10051 "" stop1_(); -#line 9991 "" +#line 10052 "" } -#line 9992 "" +#line 10053 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 9993 "" +#line 10054 "" ++compage_1.nfpb; -#line 9994 "" +#line 10055 "" compage_1.ipagfpb[compage_1.nfpb] = i_nint(&fnum); -#line 9995 "" +#line 10056 "" compage_1.isysfpb[compage_1.nfpb] = compage_1.isysflb[ compage_1.nflb]; -#line 9996 "" +#line 10057 "" if (compage_1.ipagfpb[compage_1.nfpb] > compage_1.npages) { -#line 9997 "" +#line 10058 "" i__1 = a1ll_2.iccount - 1; -#line 9997 "" +#line 10058 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 9997 "" +#line 10058 "" errmsg_(lineq, &i__1, &i__4, "Forced page break at page "\ "num > npages!", (ftnlen)128, (ftnlen)39); -#line 9999 "" +#line 10060 "" stop1_(); -#line 10000 "" +#line 10061 "" } else if (compage_1.nfpb > 1) { -#line 10001 "" +#line 10062 "" if (compage_1.ipagfpb[compage_1.nfpb] <= compage_1.ipagfpb[compage_1.nfpb - 1]) { -#line 10002 "" +#line 10063 "" i__1 = a1ll_2.iccount - 1; -#line 10002 "" +#line 10063 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10002 "" +#line 10063 "" errmsg_(lineq, &i__1, &i__4, "Forced page break numb"\ "ers must increase!", (ftnlen)128, (ftnlen)40); -#line 10004 "" +#line 10065 "" stop1_(); -#line 10005 "" +#line 10066 "" } -#line 10006 "" +#line 10067 "" } -#line 10007 "" +#line 10068 "" } -#line 10008 "" +#line 10069 "" if (i_indx(" M", durq, (ftnlen)2, (ftnlen)1) == 0) { -#line 10009 "" +#line 10070 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10009 "" +#line 10070 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character in"\ " linebreak symbol!", (ftnlen)128, (ftnlen)38); -#line 10011 "" +#line 10072 "" stop1_(); -#line 10012 "" +#line 10073 "" } else if (*(unsigned char *)durq == 'M') { -#line 10013 "" +#line 10074 "" ++compage_1.nmovbrk; -#line 10014 "" +#line 10075 "" compage_1.isysmb[compage_1.nmovbrk] = compage_1.isysflb[ compage_1.nflb]; -#line 10015 "" +#line 10076 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen) 1); -#line 10016 "" +#line 10077 "" L31: -#line 10016 "" +#line 10077 "" if (*(unsigned char *)durq == '+') { /* Vertical spacing, read past number. */ -#line 10020 "" +#line 10081 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 10021 "" +#line 10082 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 10022 "" +#line 10083 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10022 "" +#line 10083 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Integer requ"\ "ired here!", (ftnlen)128, (ftnlen)22); -#line 10024 "" +#line 10085 "" stop1_(); -#line 10025 "" +#line 10086 "" } -#line 10026 "" +#line 10087 "" readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 10027 "" +#line 10088 "" goto L31; -#line 10028 "" +#line 10089 "" } else if (*(unsigned char *)durq == 'i') { /* Change indentation, */ -#line 10032 "" +#line 10093 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 10033 "" +#line 10094 "" if (i_indx(".123456789", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 10034 "" +#line 10095 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10034 "" +#line 10095 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Decimal numb"\ "er required here!", (ftnlen)128, (ftnlen)29); -#line 10036 "" +#line 10097 "" stop1_(); -#line 10037 "" +#line 10098 "" } /* fracsys was initialized in block data to all 0.'s */ -#line 10041 "" +#line 10102 "" readnum_(lineq, &a1ll_2.iccount, durq, &compage_1.fracsys[ compage_1.nmovbrk - 1], (ftnlen)128, (ftnlen)1); -#line 10042 "" +#line 10103 "" goto L31; -#line 10043 "" +#line 10104 "" } else if (*(unsigned char *)durq == 'c') { -#line 10044 "" +#line 10105 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 10045 "" +#line 10106 "" goto L31; -#line 10046 "" +#line 10107 "" } else if (*(unsigned char *)durq == 'r') { -#line 10047 "" +#line 10108 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 10048 "" +#line 10109 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) { -#line 10049 "" +#line 10110 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10049 "" +#line 10110 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must have"\ " \"+\" or \"-\" after \"r\" as movement brea"\ "k option!", (ftnlen)128, (ftnlen)56); -#line 10051 "" +#line 10112 "" stop1_(); -#line 10052 "" +#line 10113 "" } -#line 10053 "" +#line 10114 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 10054 "" +#line 10115 "" goto L31; -#line 10055 "" +#line 10116 "" } else if (*(unsigned char *)durq == 'n') { /* Change # of voices. Input ninow, iorig(1...ninow). Will use names, */ /* staves per inst. and clefs corr. to iorig in original list of instruments. */ -#line 10060 "" +#line 10121 "" a1ll_2.nv = 0; -#line 10061 "" +#line 10122 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 10062 "" +#line 10123 "" if (*(unsigned char *)durq == ':') { /* Signals a 2-digit number, get next two characters */ -#line 10066 "" +#line 10127 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 10067 "" +#line 10128 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, ( ftnlen)1); -#line 10068 "" +#line 10129 "" if (i_indx("12", durq, (ftnlen)2, (ftnlen)1) == 0 || i_indx("0123456789", dumq, (ftnlen)10, ( ftnlen)1) == 0) { -#line 10070 "" +#line 10131 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; /* Writing concatenation */ -#line 10070 "" +#line 10131 "" i__8[0] = 34, a__3[0] = "Illegal new number of i"\ "nstruments "; -#line 10070 "" +#line 10131 "" i__8[1] = 1, a__3[1] = durq; -#line 10070 "" +#line 10131 "" i__8[2] = 1, a__3[2] = dumq; -#line 10070 "" +#line 10131 "" i__8[3] = 19, a__3[3] = " at movement break!"; -#line 10070 "" +#line 10131 "" s_cat(ch__3, a__3, i__8, &c__4, (ftnlen)55); -#line 10070 "" +#line 10131 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, ch__3, ( ftnlen)128, (ftnlen)55); -#line 10073 "" +#line 10134 "" stop1_(); -#line 10074 "" +#line 10135 "" } -#line 10075 "" +#line 10136 "" i__1 = a1ll_2.iccount - 2; -#line 10075 "" +#line 10136 "" ici__1.icierr = 0; -#line 10075 "" +#line 10136 "" ici__1.iciend = 0; -#line 10075 "" +#line 10136 "" ici__1.icirnum = 1; -#line 10075 "" +#line 10136 "" ici__1.icirlen = a1ll_2.iccount - i__1; -#line 10075 "" +#line 10136 "" ici__1.iciunit = lineq + i__1; -#line 10075 "" +#line 10136 "" ici__1.icifmt = "(i2)"; -#line 10075 "" +#line 10136 "" s_rsfi(&ici__1); -#line 10075 "" +#line 10136 "" do_fio(&c__1, (char *)&ninow, (ftnlen)sizeof(integer)) ; -#line 10075 "" +#line 10136 "" e_rsfi(); -#line 10076 "" +#line 10137 "" } else { /* durq is a single digit number for noinow */ -#line 10080 "" +#line 10141 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 10081 "" +#line 10142 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; /* Writing concatenation */ -#line 10081 "" +#line 10142 "" i__2[0] = 34, a__1[0] = "Illegal new number of i"\ "nstruments "; -#line 10081 "" +#line 10142 "" i__2[1] = 1, a__1[1] = durq; -#line 10081 "" +#line 10142 "" i__2[2] = 19, a__1[2] = " at movement break!"; -#line 10081 "" +#line 10142 "" s_cat(ch__4, a__1, i__2, &c__3, (ftnlen)54); -#line 10081 "" +#line 10142 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, ch__4, ( ftnlen)128, (ftnlen)54); -#line 10084 "" +#line 10145 "" stop1_(); -#line 10085 "" +#line 10146 "" } -#line 10086 "" +#line 10147 "" ninow = *(unsigned char *)durq - 48; -#line 10087 "" +#line 10148 "" } -#line 10088 "" +#line 10149 "" if (ninow > comkeys_1.noinst) { -#line 10089 "" +#line 10150 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10089 "" +#line 10150 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "New number o"\ "f instruments must be <= original!", (ftnlen) 128, (ftnlen)46); -#line 10091 "" +#line 10152 "" stop1_(); -#line 10092 "" +#line 10153 "" } -#line 10093 "" +#line 10154 "" i__1 = ninow; -#line 10093 "" +#line 10154 "" for (iinow = 1; iinow <= i__1; ++iinow) { -#line 10094 "" +#line 10155 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 10095 "" +#line 10156 "" if (*(unsigned char *)durq == ':') { /* Signals a 2-digit number */ -#line 10099 "" +#line 10160 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen) 128, (ftnlen)1); -#line 10100 "" +#line 10161 "" g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen) 128, (ftnlen)1); -#line 10101 "" +#line 10162 "" if (i_indx("12", durq, (ftnlen)2, (ftnlen)1) == 0 || i_indx("0123456789", dumq, (ftnlen)10, (ftnlen)1) == 0) { -#line 10103 "" +#line 10164 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; /* Writing concatenation */ -#line 10103 "" +#line 10164 "" i__8[0] = 34, a__3[0] = "Illegal 2-digit ins"\ "trument number "; -#line 10103 "" +#line 10164 "" i__8[1] = 1, a__3[1] = durq; -#line 10103 "" +#line 10164 "" i__8[2] = 1, a__3[2] = dumq; -#line 10103 "" +#line 10164 "" i__8[3] = 19, a__3[3] = " at movement break!"; -#line 10103 "" +#line 10164 "" s_cat(ch__3, a__3, i__8, &c__4, (ftnlen)55); -#line 10103 "" +#line 10164 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, ch__3, (ftnlen)128, (ftnlen)55); -#line 10106 "" +#line 10167 "" stop1_(); -#line 10107 "" +#line 10168 "" } -#line 10108 "" +#line 10169 "" i__4 = a1ll_2.iccount - 2; -#line 10108 "" +#line 10169 "" ici__1.icierr = 0; -#line 10108 "" +#line 10169 "" ici__1.iciend = 0; -#line 10108 "" +#line 10169 "" ici__1.icirnum = 1; -#line 10108 "" +#line 10169 "" ici__1.icirlen = a1ll_2.iccount - i__4; -#line 10108 "" +#line 10169 "" ici__1.iciunit = lineq + i__4; -#line 10108 "" +#line 10169 "" ici__1.icifmt = "(i2)"; -#line 10108 "" +#line 10169 "" s_rsfi(&ici__1); -#line 10108 "" +#line 10169 "" do_fio(&c__1, (char *)&iorig, (ftnlen)sizeof( integer)); -#line 10108 "" +#line 10169 "" e_rsfi(); -#line 10109 "" +#line 10170 "" } else { /* durq is a single digit number for iorig */ -#line 10113 "" +#line 10174 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen) 1) == 0) { -#line 10114 "" +#line 10175 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; /* Writing concatenation */ -#line 10114 "" +#line 10175 "" i__2[0] = 26, a__1[0] = "Illegal instrument "\ "number "; -#line 10114 "" +#line 10175 "" i__2[1] = 1, a__1[1] = durq; -#line 10114 "" +#line 10175 "" i__2[2] = 19, a__1[2] = " at movement break!"; -#line 10114 "" +#line 10175 "" s_cat(ch__5, a__1, i__2, &c__3, (ftnlen)46); -#line 10114 "" +#line 10175 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, ch__5, (ftnlen)128, (ftnlen)46); -#line 10117 "" +#line 10178 "" stop1_(); -#line 10118 "" +#line 10179 "" } -#line 10119 "" +#line 10180 "" iorig = *(unsigned char *)durq - 48; -#line 10120 "" +#line 10181 "" } -#line 10121 "" +#line 10182 "" if (iorig > comkeys_1.noinst) { -#line 10122 "" +#line 10183 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10122 "" +#line 10183 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "New inst"\ "rument number must be <= original noinst!" , (ftnlen)128, (ftnlen)49); -#line 10124 "" +#line 10185 "" stop1_(); -#line 10125 "" +#line 10186 "" } -#line 10126 "" +#line 10187 "" a1ll_2.nv += c1omget_1.nsperi[iorig - 1]; -#line 10127 "" +#line 10188 "" /* L63: */ -#line 10127 "" +#line 10188 "" } -#line 10128 "" +#line 10189 "" i__1 = a1ll_2.nv; -#line 10128 "" +#line 10189 "" for (iiv = 1; iiv <= i__1; ++iiv) { /* Get clef names */ -#line 10132 "" +#line 10193 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 10133 "" +#line 10194 "" if (! (i_indx("tsmanrbf", durq, (ftnlen)8, (ftnlen)1) > 0 || *(unsigned char *)durq >= 48 && *( unsigned char *)durq <= 55)) { -#line 10135 "" +#line 10196 "" i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10135 "" +#line 10196 "" errmsg_(lineq, &a1ll_2.iccount, &i__4, "Must hav"\ "e t,s,m,a,n,r,b,f or 1-7 as clef symbol "\ "here!", (ftnlen)128, (ftnlen)53); -#line 10137 "" +#line 10198 "" stop1_(); -#line 10138 "" +#line 10199 "" } /* Initialize new voices */ -#line 10142 "" +#line 10203 "" c1ommvl_1.nvmx[iiv - 1] = 1; -#line 10143 "" +#line 10204 "" c1ommvl_1.ivmx[iiv - 1] = iiv; -#line 10144 "" +#line 10205 "" a1ll_2.itsofar[iiv - 1] = 0; -#line 10145 "" +#line 10206 "" a1ll_2.nnl[iiv - 1] = 0; -#line 10146 "" +#line 10207 "" for (j = 1; j <= 200; ++j) { -#line 10147 "" +#line 10208 "" a1ll_2.rest[iiv + j * 24 - 25] = FALSE_; -#line 10148 "" +#line 10209 "" /* L62: */ -#line 10148 "" +#line 10209 "" } -#line 10149 "" +#line 10210 "" /* L61: */ -#line 10149 "" +#line 10210 "" } /* Loop back up, this might not be last option in M */ -#line 10153 "" +#line 10214 "" g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 10154 "" +#line 10215 "" goto L31; -#line 10155 "" +#line 10216 "" } else if (*(unsigned char *)durq != ' ') { -#line 10156 "" +#line 10217 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10156 "" +#line 10217 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\ "r after Movement break symbol!", (ftnlen)128, ( ftnlen)46); -#line 10158 "" +#line 10219 "" stop1_(); -#line 10159 "" +#line 10220 "" } -#line 10160 "" +#line 10221 "" if (compage_1.fracsys[compage_1.nmovbrk - 1] < .001f) { /* Since fracsys was not explicitly set, set it to prior value. */ -#line 10164 "" +#line 10225 "" if (compage_1.nmovbrk == 1) { -#line 10165 "" +#line 10226 "" compage_1.fracsys[compage_1.nmovbrk - 1] = c1omget_1.fracindent; -#line 10166 "" +#line 10227 "" } else { -#line 10167 "" +#line 10228 "" compage_1.fracsys[compage_1.nmovbrk - 1] = compage_1.fracsys[compage_1.nmovbrk - 2]; -#line 10168 "" +#line 10229 "" } -#line 10169 "" +#line 10230 "" } -#line 10170 "" +#line 10231 "" } /* Just before exiting if-block for forced line breaks, set counter to use when */ /* dealing with vertical space calcs */ -#line 10175 "" +#line 10236 "" compage_1.nistaff[compage_1.nflb] = a1ll_2.nv - 1; -#line 10176 "" +#line 10237 "" } else if (*(unsigned char *)charq == 'F') { -#line 10177 "" +#line 10238 "" compage_1.usefig = FALSE_; -#line 10178 "" +#line 10239 "" } else if (*(unsigned char *)charq == 'X') { -#line 10179 "" +#line 10240 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10179 "" +#line 10240 "" g1etx_(lineq, &a1ll_2.iccount, &comkeys_1.shifton, &i__1, & c1omnotes_1.udsp[c1omnotes_1.ibarcnt + a1ll_2.nbars], & c1omnotes_1.wheadpt, (ftnlen)128); -#line 10181 "" +#line 10242 "" } else if (*(unsigned char *)charq == 'I') { /* MIDI settings. */ -#line 10185 "" +#line 10246 "" if (c1ommvl_1.ivx != 1 || a1ll_2.nnl[0] != 0) { -#line 10186 "" +#line 10247 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10186 "" +#line 10247 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "MIDI stuff only allo"\ "wed at start of block!", (ftnlen)128, (ftnlen)42); -#line 10188 "" +#line 10249 "" stop1_(); -#line 10189 "" +#line 10250 "" } -#line 10190 "" +#line 10251 "" if (a1ll_2.nv > 15) { -#line 10191 "" +#line 10252 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10191 "" +#line 10252 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "Sorry but MIDI does "\ "not work with more than 15 voices!", (ftnlen)128, ( ftnlen)54); -#line 10193 "" +#line 10254 "" stop1_(); -#line 10194 "" +#line 10255 "" } -#line 10195 "" +#line 10256 "" commidi_1.ismidi = TRUE_; /* call getmidi(nv,lineq,iccount,ibarcnt,ibaroff,nbars,lenbar, */ -#line 10197 "" +#line 10258 "" getmidi_(&comkeys_1.noinst, lineq, &a1ll_2.iccount, & c1omnotes_1.ibarcnt, &c1omnotes_1.ibaroff, &a1ll_2.nbars, &a1ll_2.lenbar, &mtrdenl, &c_true, (ftnlen)128); -#line 10199 "" +#line 10260 "" } else if (*(unsigned char *)charq == 'M') { -#line 10200 "" +#line 10261 "" setmac_(lineq, &a1ll_2.iccount, &c1omnotes_1.ibarcnt, & c1omnotes_1.ibaroff, &a1ll_2.nbars, charq, durq, & c1ommvl_1.ivx, &c1omget_1.nline, (ftnlen)128, (ftnlen)1, ( ftnlen)1); -#line 10202 "" +#line 10263 "" } else if (i_indx(",.", charq, (ftnlen)2, (ftnlen)1) > 0) { /* Continued rhythmic shortcut */ -#line 10206 "" +#line 10267 "" idotform = i_indx(". ,", charq, (ftnlen)3, (ftnlen)1); -#line 10207 "" +#line 10268 "" if (idotform == 1) { /* Change duration of prior note */ -#line 10211 "" +#line 10272 "" a1ll_2.itsofar[c1ommvl_1.ivx - 1] -= a1ll_2.nodur[ c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25]; -#line 10212 "" +#line 10273 "" a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25] = a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[ c1ommvl_1.ivx - 1] * 24 - 25] * 3 / 2; -#line 10213 "" +#line 10274 "" a1ll_2.itsofar[c1ommvl_1.ivx - 1] += a1ll_2.nodur[ c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25]; -#line 10214 "" +#line 10275 "" } -#line 10215 "" +#line 10276 "" ++idotform; -#line 10216 "" +#line 10277 "" numnum = 1; -#line 10217 "" +#line 10278 "" cdot = TRUE_; -#line 10218 "" +#line 10279 "" goto L1; -#line 10219 "" +#line 10280 "" } else { -#line 10220 "" - s_wsle(&io___664); -#line 10220 "" +#line 10281 "" + s_wsle(&io___665); +#line 10281 "" do_lio(&c__9, &c__1, "ASCII code:", (ftnlen)11); -#line 10220 "" +#line 10281 "" i__1 = *(unsigned char *)charq; -#line 10220 "" +#line 10281 "" do_lio(&c__3, &c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 10220 "" +#line 10281 "" e_wsle(); -#line 10221 "" +#line 10282 "" i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars + 1; -#line 10221 "" +#line 10282 "" errmsg_(lineq, &a1ll_2.iccount, &i__1, "This character is not al"\ "lowed here!", (ftnlen)128, (ftnlen)35); -#line 10223 "" - s_wsle(&io___665); -#line 10223 "" +#line 10284 "" + s_wsle(&io___666); +#line 10284 "" do_lio(&c__9, &c__1, "ASCII code:", (ftnlen)11); -#line 10223 "" +#line 10284 "" i__1 = *(unsigned char *)charq; -#line 10223 "" +#line 10284 "" do_lio(&c__3, &c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 10223 "" +#line 10284 "" e_wsle(); -#line 10224 "" +#line 10285 "" stop1_(); -#line 10225 "" +#line 10286 "" } -#line 10225 "" +#line 10286 "" } -#line 10226 "" +#line 10287 "" return 0; } /* g1etnote_ */ @@ -24733,159 +24841,159 @@ L31: static integer iccount; /* Fortran I/O blocks */ - static cilist io___668 = { 0, 6, 0, 0, 0 }; - static cilist io___669 = { 0, 6, 0, "(1x,a46,i3)", 0 }; - static cilist io___670 = { 0, 6, 0, "(a)", 0 }; - static cilist io___673 = { 0, 6, 0, "(a)", 0 }; + static cilist io___669 = { 0, 6, 0, 0, 0 }; + static cilist io___670 = { 0, 6, 0, "(1x,a46,i3)", 0 }; + static cilist io___671 = { 0, 6, 0, "(a)", 0 }; static cilist io___674 = { 0, 6, 0, "(a)", 0 }; - static cilist io___675 = { 0, 6, 0, 0, 0 }; + static cilist io___675 = { 0, 6, 0, "(a)", 0 }; + static cilist io___676 = { 0, 6, 0, 0, 0 }; /* Get the first line */ -#line 10244 "" +#line 10305 "" iccount = 0; -#line 10245 "" +#line 10306 "" c1omget_1.nline = 1; -#line 10246 "" +#line 10307 "" L9: -#line 10246 "" +#line 10307 "" getbuf_(lineq, (ftnlen)128); -#line 10247 "" +#line 10308 "" if (*(unsigned char *)lineq == '%') { -#line 10248 "" +#line 10309 "" ++c1omget_1.nline; -#line 10249 "" +#line 10310 "" goto L9; -#line 10250 "" +#line 10311 "" } -#line 10251 "" +#line 10312 "" if (s_cmp(lineq, "---", (ftnlen)3, (ftnlen)3) == 0) { /* Have TeX input until next line that starts with '---' */ -#line 10255 "" +#line 10316 "" L3: -#line 10255 "" +#line 10316 "" ++c1omget_1.nline; -#line 10256 "" +#line 10317 "" getbuf_(lineq, (ftnlen)128); -#line 10257 "" +#line 10318 "" if (inbuff_1.ilbuf > inbuff_1.nlbuf) { -#line 10257 "" +#line 10318 "" goto L1; -#line 10257 "" +#line 10318 "" } -#line 10258 "" +#line 10319 "" goto L2; -#line 10259 "" +#line 10320 "" L1: -#line 10259 "" - s_wsle(&io___668); -#line 10259 "" +#line 10320 "" + s_wsle(&io___669); +#line 10320 "" do_lio(&c__9, &c__1, "You did not terminate type 0 TeX input with \""\ "---\"", (ftnlen)49); -#line 10259 "" +#line 10320 "" e_wsle(); -#line 10260 "" +#line 10321 "" stop1_(); -#line 10261 "" +#line 10322 "" L2: -#line 10262 "" +#line 10323 "" if (s_cmp(lineq, "---", (ftnlen)3, (ftnlen)3) != 0) { -#line 10262 "" +#line 10323 "" goto L3; -#line 10262 "" +#line 10323 "" } /* Force a new line read on first call to readin */ -#line 10266 "" +#line 10327 "" iccount = 128; -#line 10267 "" +#line 10328 "" } /* Here, lineq and nline are first non-TeX lines. */ -#line 10271 "" +#line 10332 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10271 "" +#line 10332 "" *nv = i_nint(&r__1); -#line 10272 "" +#line 10333 "" if (*nv > 24) { -#line 10273 "" - s_wsfe(&io___669); -#line 10273 "" +#line 10334 "" + s_wsfe(&io___670); +#line 10334 "" do_fio(&c__1, "In setup data, number of voices cannot exceed", ( ftnlen)45); -#line 10273 "" +#line 10334 "" do_fio(&c__1, (char *)&c__24, (ftnlen)sizeof(integer)); -#line 10273 "" +#line 10334 "" e_wsfe(); -#line 10275 "" +#line 10336 "" stop1_(); -#line 10276 "" +#line 10337 "" } -#line 10277 "" +#line 10338 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10277 "" +#line 10338 "" *noinst = i_nint(&r__1); -#line 10278 "" +#line 10339 "" if (*noinst > *nv) { -#line 10279 "" - s_wsfe(&io___670); -#line 10279 "" +#line 10340 "" + s_wsfe(&io___671); +#line 10340 "" do_fio(&c__1, "In setup data, cannot have more instruments than stav"\ "es", (ftnlen)55); -#line 10279 "" +#line 10340 "" e_wsfe(); -#line 10281 "" +#line 10342 "" stop1_(); -#line 10282 "" +#line 10343 "" } -#line 10283 "" +#line 10344 "" newway = *noinst <= 0; -#line 10284 "" +#line 10345 "" if (newway) { -#line 10284 "" +#line 10345 "" *noinst = -(*noinst); -#line 10284 "" +#line 10345 "" } -#line 10285 "" +#line 10346 "" i__1 = *noinst; -#line 10285 "" +#line 10346 "" for (iinst = 1; iinst <= i__1; ++iinst) { /* Seve # of staves per inst in case later drop some inst's. */ -#line 10289 "" +#line 10350 "" if (newway) { -#line 10290 "" +#line 10351 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10290 "" +#line 10351 "" c1omget_1.nsperi[iinst - 1] = i_nint(&r__1); -#line 10291 "" +#line 10352 "" } else if (iinst > 1) { -#line 10292 "" +#line 10353 "" c1omget_1.nsperi[iinst - 1] = 1; -#line 10293 "" +#line 10354 "" } else { -#line 10294 "" +#line 10355 "" c1omget_1.nsperi[iinst - 1] = *nv - *noinst + 1; -#line 10295 "" +#line 10356 "" } -#line 10296 "" +#line 10357 "" /* L10: */ -#line 10296 "" +#line 10357 "" } -#line 10297 "" +#line 10358 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10297 "" +#line 10358 "" *mtrnuml = i_nint(&r__1); -#line 10298 "" +#line 10359 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10298 "" +#line 10359 "" *mtrdenl = i_nint(&r__1); /* c */ /* c Kluge!!! */ @@ -24894,208 +25002,208 @@ L2: /* mtrdenl = 2 */ /* mtrnuml = mtrnuml*2 */ /* end if */ -#line 10306 "" +#line 10367 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10306 "" +#line 10367 "" *mtrnmp = i_nint(&r__1); -#line 10307 "" +#line 10368 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10307 "" +#line 10368 "" *mtrdnp = i_nint(&r__1); -#line 10308 "" +#line 10369 "" if (*mtrnmp == 0 && *mtrdnp >= 8) { -#line 10309 "" - s_wsfe(&io___673); -#line 10309 "" +#line 10370 "" + s_wsfe(&io___674); +#line 10370 "" do_fio(&c__1, "In setup data, with mtrnmp=0, mtrdnp must be <8", ( ftnlen)47); -#line 10309 "" +#line 10370 "" e_wsfe(); -#line 10310 "" +#line 10371 "" stop1_(); -#line 10311 "" +#line 10372 "" } -#line 10312 "" +#line 10373 "" *xmtrnum0 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10313 "" +#line 10374 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10313 "" +#line 10374 "" *newkey = i_nint(&r__1); /* 130316 */ /* do 11 iinst = 1 , noinst */ -#line 10316 "" +#line 10377 "" commidisig_1.midisig = *newkey; /* 11 continue */ -#line 10318 "" +#line 10379 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10318 "" +#line 10379 "" *npages = i_nint(&r__1); -#line 10319 "" +#line 10380 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10319 "" +#line 10380 "" *nsyst = i_nint(&r__1); -#line 10320 "" +#line 10381 "" r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128); -#line 10320 "" +#line 10381 "" *musize = i_nint(&r__1); -#line 10321 "" +#line 10382 "" c1omget_1.fracindent = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen) 128); -#line 10322 "" +#line 10383 "" if (c1omget_1.fracindent >= 1.f) { -#line 10323 "" - s_wsfe(&io___674); -#line 10323 "" +#line 10384 "" + s_wsfe(&io___675); +#line 10384 "" do_fio(&c__1, "In setup data, fracindent must be <1", (ftnlen)36); -#line 10323 "" +#line 10384 "" e_wsfe(); -#line 10324 "" +#line 10385 "" stop1_(); -#line 10325 "" +#line 10386 "" } -#line 10326 "" +#line 10387 "" if (*npages > *nsyst) { -#line 10327 "" - s_wsle(&io___675); -#line 10327 "" +#line 10388 "" + s_wsle(&io___676); +#line 10388 "" do_lio(&c__9, &c__1, "Error in input file: npages > nsyst", (ftnlen) 35); -#line 10327 "" +#line 10388 "" e_wsle(); -#line 10328 "" +#line 10389 "" stop1_(); -#line 10329 "" +#line 10390 "" } else if ((*musize - 16) * (*musize - 20) * (*musize - 24) * (*musize - 29) != 0) { -#line 10330 "" +#line 10391 "" printl_("Musicsize must be 16, 20, 24, or 29", (ftnlen)35); -#line 10331 "" +#line 10392 "" stop1_(); -#line 10332 "" +#line 10393 "" } /* Next noinst non-comment lines are names of instruments. */ -#line 10336 "" +#line 10397 "" i__1 = abs(*noinst); -#line 10336 "" +#line 10397 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 10337 "" +#line 10398 "" L5: -#line 10337 "" +#line 10398 "" getbuf_(lineq, (ftnlen)128); -#line 10338 "" +#line 10399 "" ++c1omget_1.nline; -#line 10339 "" +#line 10400 "" if (*(unsigned char *)lineq == '%') { -#line 10339 "" +#line 10400 "" goto L5; -#line 10339 "" +#line 10400 "" } -#line 10340 "" +#line 10401 "" /* L4: */ -#line 10340 "" +#line 10401 "" } /* Mext non-comment line has nv clef names */ -#line 10344 "" +#line 10405 "" L6: -#line 10344 "" +#line 10405 "" getbuf_(lineq, (ftnlen)128); -#line 10345 "" +#line 10406 "" ++c1omget_1.nline; -#line 10346 "" +#line 10407 "" if (*(unsigned char *)lineq == '%') { -#line 10346 "" +#line 10407 "" goto L6; -#line 10346 "" +#line 10407 "" } -#line 10347 "" +#line 10408 "" i__1 = *nv; -#line 10347 "" +#line 10408 "" for (iv = 1; iv <= i__1; ++iv) { /* if (index('brnamstf01234567',lineq(iv:iv)) .eq. 0) then */ -#line 10349 "" +#line 10410 "" if (i_indx("brnamstf012345678", lineq + (iv - 1), (ftnlen)17, (ftnlen) 1) == 0) { -#line 10350 "" +#line 10411 "" errmsg_(lineq, &iv, &c__0, "There should be a clef symbol here!", (ftnlen)128, (ftnlen)35); -#line 10352 "" +#line 10413 "" stop1_(); -#line 10353 "" +#line 10414 "" } -#line 10354 "" +#line 10415 "" /* L7: */ -#line 10354 "" +#line 10415 "" } -#line 10355 "" +#line 10416 "" i__1 = *nv; -#line 10355 "" +#line 10416 "" if (s_cmp(lineq + i__1, " ", *nv + 1 - i__1, (ftnlen)1) != 0) { -#line 10356 "" +#line 10417 "" i__1 = *nv + 1; -#line 10356 "" +#line 10417 "" errmsg_(lineq, &i__1, &c__0, "There should be a blank here!", (ftnlen) 128, (ftnlen)29); -#line 10358 "" +#line 10419 "" stop1_(); -#line 10359 "" +#line 10420 "" } /* Set flag if voice 1 is treble, since it affects vertical spacing */ /* bottreb = lineq(1:1).eq.'t' */ -#line 10364 "" +#line 10425 "" *bottreb = i_indx("t08", lineq, (ftnlen)3, (ftnlen)1) > 0; /* Next non-comment line has path name */ -#line 10368 "" +#line 10429 "" L8: -#line 10368 "" +#line 10429 "" getbuf_(lineq, (ftnlen)128); -#line 10369 "" +#line 10430 "" ++c1omget_1.nline; -#line 10370 "" +#line 10431 "" if (*(unsigned char *)lineq == '%') { -#line 10370 "" +#line 10431 "" goto L8; -#line 10370 "" +#line 10431 "" } -#line 10371 "" +#line 10432 "" lpath = i_indx(lineq, " ", (ftnlen)128, (ftnlen)1) - 1; /* Writing concatenation */ -#line 10372 "" +#line 10433 "" i__2[0] = 2, a__1[0] = "/:"; -#line 10372 "" +#line 10433 "" chax_(ch__2, (ftnlen)1, &c__92); -#line 10372 "" +#line 10433 "" i__2[1] = 1, a__1[1] = ch__2; -#line 10372 "" +#line 10433 "" s_cat(ch__1, a__1, i__2, &c__2, (ftnlen)3); -#line 10372 "" +#line 10433 "" if (i_indx(ch__1, lineq + (lpath - 1), (ftnlen)3, (ftnlen)1) == 0) { /* Writing concatenation */ -#line 10373 "" +#line 10434 "" i__3[0] = 47, a__2[0] = "Last character of pathname is not \"/\",\""\ ":\", or \""; -#line 10373 "" +#line 10434 "" chax_(ch__2, (ftnlen)1, &c__92); -#line 10373 "" +#line 10434 "" i__3[1] = 1, a__2[1] = ch__2; -#line 10373 "" +#line 10434 "" i__3[2] = 2, a__2[2] = "\"!"; -#line 10373 "" +#line 10434 "" s_cat(ch__3, a__2, i__3, &c__3, (ftnlen)50); -#line 10373 "" +#line 10434 "" errmsg_(lineq, &lpath, &c__0, ch__3, (ftnlen)128, (ftnlen)50); -#line 10376 "" +#line 10437 "" stop1_(); -#line 10377 "" +#line 10438 "" } -#line 10378 "" +#line 10439 "" return 0; } /* g1etset_ */ @@ -25124,155 +25232,155 @@ L8: /* Parse "X" commands. Ignore all "B"; "P" means to ignore whole symbol. */ /* In scor2prt, must strip out "P", copy only "B" and "P"-type "X"-symbols. */ -#line 10388 "" +#line 10449 "" number = FALSE_; -#line 10389 "" +#line 10450 "" npbsc = 0; -#line 10390 "" +#line 10451 "" L1: -#line 10390 "" +#line 10451 "" g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 10391 "" +#line 10452 "" if (i_indx("PBS:", charq, (ftnlen)4, (ftnlen)1) > 0) { /* Continue checking here even if "P". */ -#line 10395 "" +#line 10456 "" ipbsc = i_indx("PBS:", charq, (ftnlen)4, (ftnlen)1); -#line 10396 "" +#line 10457 "" if (bit_test(npbsc,ipbsc)) { -#line 10397 "" +#line 10458 "" errmsg_(lineq, iccount, ibar, "Only one allowed per symbol!", ( ftnlen)128, (ftnlen)28); -#line 10398 "" +#line 10459 "" stop1_(); -#line 10399 "" +#line 10460 "" } -#line 10400 "" +#line 10461 "" npbsc = bit_set(npbsc,ipbsc); -#line 10401 "" +#line 10462 "" goto L1; -#line 10402 "" +#line 10463 "" } else if (i_indx("+-.0123456789", charq, (ftnlen)13, (ftnlen)1) > 0) { -#line 10403 "" +#line 10464 "" number = TRUE_; -#line 10404 "" +#line 10465 "" if (i_indx("+-", charq, (ftnlen)2, (ftnlen)1) > 0) { -#line 10405 "" +#line 10466 "" g1etchar_(lineq, iccount, dumq, (ftnlen)128, (ftnlen)1); -#line 10406 "" +#line 10467 "" if (i_indx(".0123456789", dumq, (ftnlen)11, (ftnlen)1) == 0) { -#line 10407 "" +#line 10468 "" errmsg_(lineq, iccount, ibar, "Expected a number here!", ( ftnlen)128, (ftnlen)23); -#line 10408 "" +#line 10469 "" stop1_(); -#line 10409 "" +#line 10470 "" } -#line 10410 "" +#line 10471 "" } -#line 10411 "" +#line 10472 "" readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1); -#line 10412 "" +#line 10473 "" if (*(unsigned char *)charq == '-') { -#line 10412 "" +#line 10473 "" fnum = -fnum; -#line 10412 "" +#line 10473 "" } -#line 10413 "" +#line 10474 "" if (*(unsigned char *)dumq != 'p') { -#line 10414 "" +#line 10475 "" --(*iccount); -#line 10415 "" +#line 10476 "" fnum *= *wheadpt; -#line 10416 "" +#line 10477 "" } -#line 10417 "" +#line 10478 "" goto L1; -#line 10418 "" +#line 10479 "" } else if (*(unsigned char *)charq != ' ') { -#line 10419 "" +#line 10480 "" errmsg_(lineq, iccount, ibar, "Not allowed in \"X\" symbol!", (ftnlen) 128, (ftnlen)26); -#line 10420 "" +#line 10481 "" stop1_(); -#line 10421 "" +#line 10482 "" } /* Done with parsing. Other checks */ -#line 10425 "" +#line 10486 "" if ((6 & npbsc) == 6 || (24 & npbsc) == 24) { -#line 10426 "" +#line 10487 "" i__1 = *iccount - 1; -#line 10426 "" +#line 10487 "" errmsg_(lineq, &i__1, ibar, "Cannot have both \"P\" and \"B\" or \""\ "S\" and \":\"!", (ftnlen)128, (ftnlen)44); -#line 10428 "" +#line 10489 "" stop1_(); -#line 10429 "" +#line 10490 "" } -#line 10430 "" +#line 10491 "" if (bit_test(npbsc,4)) { -#line 10431 "" +#line 10492 "" if (number) { -#line 10432 "" +#line 10493 "" if (*shifton) { -#line 10433 "" +#line 10494 "" i__1 = *iccount - 1; -#line 10433 "" +#line 10494 "" errmsg_(lineq, &i__1, ibar, "Started a group shift without s"\ "topping prior one!", (ftnlen)128, (ftnlen)49); -#line 10435 "" +#line 10496 "" stop1_(); -#line 10436 "" +#line 10497 "" } else { -#line 10437 "" +#line 10498 "" *shifton = TRUE_; -#line 10438 "" +#line 10499 "" } -#line 10439 "" +#line 10500 "" } else { -#line 10440 "" +#line 10501 "" if (! (*shifton)) { -#line 10441 "" +#line 10502 "" i__1 = *iccount - 1; -#line 10441 "" +#line 10502 "" errmsg_(lineq, &i__1, ibar, "Ended a group shift without sta"\ "rting one!", (ftnlen)128, (ftnlen)41); -#line 10443 "" +#line 10504 "" stop1_(); -#line 10444 "" +#line 10505 "" } else { -#line 10445 "" +#line 10506 "" *shifton = FALSE_; -#line 10446 "" +#line 10507 "" } -#line 10447 "" +#line 10508 "" } -#line 10448 "" +#line 10509 "" } /* P off, S off, c off => normal user-defined space. Add to udsp (later fsyst) */ -#line 10452 "" +#line 10513 "" if ((npbsc & 26) == 0) { -#line 10452 "" +#line 10513 "" *udsp += fnum; -#line 10452 "" +#line 10513 "" } -#line 10453 "" +#line 10514 "" if (! number && ! bit_test(npbsc,4)) { -#line 10454 "" +#line 10515 "" i__1 = *iccount - 1; -#line 10454 "" +#line 10515 "" errmsg_(lineq, &i__1, ibar, "Must have either a number or a colon "\ "in \"X\" symbol!", (ftnlen)128, (ftnlen)51); -#line 10456 "" +#line 10517 "" stop1_(); -#line 10457 "" +#line 10518 "" } -#line 10458 "" +#line 10519 "" return 0; } /* g1etx_ */ @@ -25291,16 +25399,16 @@ L1: /* Builtin functions */ /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen); -#line 10473 "" +#line 10534 "" i__1 = inbuff_1.ipbuf; -#line 10473 "" +#line 10534 "" s_copy(lineq, inbuff_1.bufq + i__1, lineq_len, inbuff_1.ipbuf + inbuff_1.lbuf[inbuff_1.ilbuf - 1] - i__1); -#line 10474 "" +#line 10535 "" inbuff_1.ipbuf += inbuff_1.lbuf[inbuff_1.ilbuf - 1]; -#line 10475 "" +#line 10536 "" ++inbuff_1.ilbuf; -#line 10476 "" +#line 10537 "" return 0; } /* getbuf_ */ @@ -25319,43 +25427,43 @@ L1: /* Gets the next character out of lineq*128. If pointer iccount=128 on entry, */ /* then reads in a new line. Resets iccount. Ends program if no more input. */ -#line 10492 "" +#line 10553 "" if (*iccount == 128) { -#line 10493 "" +#line 10554 "" read10_(lineq, &comget_1.lastchar, (ftnlen)128); -#line 10494 "" +#line 10555 "" if (comget_1.lastchar) { -#line 10494 "" +#line 10555 "" return 0; -#line 10494 "" +#line 10555 "" } -#line 10495 "" +#line 10556 "" if (! commac_1.endmac) { -#line 10496 "" +#line 10557 "" *iccount = 0; -#line 10497 "" +#line 10558 "" } else { -#line 10498 "" +#line 10559 "" commac_1.endmac = FALSE_; -#line 10499 "" +#line 10560 "" *iccount = commac_1.icchold; -#line 10500 "" +#line 10561 "" s_copy(lineq, commac_1.lnholdq, (ftnlen)128, (ftnlen)128); -#line 10501 "" +#line 10562 "" } -#line 10502 "" +#line 10563 "" if (commac_1.mrecord) { -#line 10503 "" +#line 10564 "" mrec1_(lineq, iccount, &ndxm, (ftnlen)128); -#line 10504 "" +#line 10565 "" } -#line 10505 "" +#line 10566 "" } -#line 10506 "" +#line 10567 "" ++(*iccount); -#line 10507 "" +#line 10568 "" *(unsigned char *)charq = *(unsigned char *)&lineq[*iccount - 1]; -#line 10508 "" +#line 10569 "" return 0; } /* getchar_ */ @@ -25412,39 +25520,39 @@ L1: /* 01-09 (horizontal offset)/10 + 25.6 notehead widths */ /* 10 5th bit for ivx (5/15/10) */ -#line 10545 "" +#line 10606 "" *irest = bit_set(*irest,26); -#line 10546 "" +#line 10607 "" ++comdyn_1.ndyn; -#line 10547 "" +#line 10608 "" idyn = *ivx; -#line 10548 "" +#line 10609 "" comdyn_1.idynda2[comdyn_1.ndyn - 1] = 0; -#line 10549 "" +#line 10610 "" if (*ivx >= 16) { -#line 10549 "" +#line 10610 "" setbits_(&comdyn_1.idynda2[comdyn_1.ndyn - 1], &c__1, &c__10, &c__1); -#line 10549 "" +#line 10610 "" } -#line 10550 "" +#line 10611 "" setbits_(&idyn, &c__8, &c__4, ip); -#line 10551 "" +#line 10612 "" i__1 = *iccount; -#line 10551 "" +#line 10612 "" if (s_cmp(lineq + i__1, "\"", *iccount + 1 - i__1, (ftnlen)1) == 0) { /* text-dynamic */ -#line 10555 "" +#line 10616 "" ++comdyn_1.ntxtdyn; -#line 10556 "" +#line 10617 "" i__1 = *iccount + 1; -#line 10556 "" +#line 10617 "" iend = *iccount + i_indx(lineq + i__1, "\"", 128 - i__1, (ftnlen)1) + 2; -#line 10557 "" +#line 10618 "" i__1 = *iccount + 1; -#line 10557 "" +#line 10618 "" s_copy(comdyn_1.txtdynq + (comdyn_1.ntxtdyn - 1 << 7), lineq + i__1, ( ftnlen)128, iend - 2 - i__1); @@ -25452,232 +25560,232 @@ L1: /* Store ivx, ip in bits 0-12 */ /* ivxiptxt(ntxtdyn) = idyn */ -#line 10563 "" +#line 10624 "" comdyn_1.ivxiptxt[comdyn_1.ntxtdyn - 1] = *ivx + (*ip << 5); -#line 10564 "" +#line 10625 "" ipm = i_indx("- +", lineq + (iend - 1), (ftnlen)3, (ftnlen)1); -#line 10565 "" +#line 10626 "" idno = 0; -#line 10566 "" +#line 10627 "" } else { /* Word-group or hairpin */ -#line 10570 "" +#line 10631 "" for (iend = *iccount + 2; iend <= 128; ++iend) { -#line 10571 "" +#line 10632 "" ipm = i_indx("- +", lineq + (iend - 1), (ftnlen)3, (ftnlen)1); /* Exit the loop at first blank, "+", or "-" */ -#line 10575 "" +#line 10636 "" if (ipm > 0) { -#line 10575 "" +#line 10636 "" goto L2; -#line 10575 "" +#line 10636 "" } -#line 10576 "" +#line 10637 "" /* L1: */ -#line 10576 "" +#line 10637 "" } -#line 10577 "" +#line 10638 "" L2: -#line 10578 "" +#line 10639 "" i__1 = *iccount; -#line 10578 "" +#line 10639 "" ici__1.icierr = 0; -#line 10578 "" +#line 10639 "" ici__1.iciend = 0; -#line 10578 "" +#line 10639 "" ici__1.icirnum = 1; -#line 10578 "" +#line 10639 "" ici__1.icirlen = iend - 1 - i__1; -#line 10578 "" +#line 10639 "" ici__1.iciunit = lineq + i__1; /* Writing concatenation */ -#line 10578 "" +#line 10639 "" i__2[0] = 2, a__1[0] = "(a"; -#line 10578 "" +#line 10639 "" i__3 = iend + 47 - *iccount; -#line 10578 "" +#line 10639 "" chax_(ch__2, (ftnlen)1, &i__3); -#line 10578 "" +#line 10639 "" i__2[1] = 1, a__1[1] = ch__2; -#line 10578 "" +#line 10639 "" i__2[2] = 1, a__1[2] = ")"; -#line 10578 "" +#line 10639 "" ici__1.icifmt = (s_cat(ch__1, a__1, i__2, &c__3, (ftnlen)4), ch__1); -#line 10578 "" +#line 10639 "" s_rsfi(&ici__1); -#line 10578 "" +#line 10639 "" do_fio(&c__1, dynsymq, (ftnlen)4); -#line 10578 "" +#line 10639 "" e_rsfi(); -#line 10580 "" +#line 10641 "" idno = (i_indx("ppppppp pp p mp mf f fp sfz ff fff ffff "\ "< > ", dynsymq, (ftnlen)60, (ftnlen)4) + 3) / 4; /* Save for later down */ -#line 10586 "" +#line 10647 "" idno1 = idno; -#line 10587 "" +#line 10648 "" } /* Set flag to check level later if in beam */ -#line 10591 "" +#line 10652 "" *iornq = bit_set(*iornq,23); -#line 10592 "" +#line 10653 "" if (idno >= 14) { /* Hairpin here. Check if opposite type from one that's already on */ -#line 10596 "" +#line 10657 "" if (idno == 14 && bit_test(comdyn_1.listdecresc,*ivx) || idno == 15 && bit_test(comdyn_1.listcresc,*ivx)) { -#line 10598 "" +#line 10659 "" printl_(" ", (ftnlen)1); -#line 10599 "" +#line 10660 "" printl_("Started one kind of hairpin while other is on", (ftnlen) 45); -#line 10600 "" +#line 10661 "" stop1_(); -#line 10601 "" +#line 10662 "" } /* Start or stop? */ -#line 10605 "" +#line 10666 "" if (bit_test(comdyn_1.listcresc,*ivx) || bit_test( comdyn_1.listdecresc,*ivx)) { /* Cresc/decresc is on, this is an ending. If fontslur, leave idno as is. */ -#line 10609 "" +#line 10670 "" if (! comslur_1.fontslur) { -#line 10609 "" +#line 10670 "" idno = 15; -#line 10609 "" +#line 10670 "" } -#line 10610 "" +#line 10671 "" } else if (comslur_1.fontslur) { /* Start of font slur */ -#line 10614 "" +#line 10675 "" idno = 13; -#line 10615 "" +#line 10676 "" } else { /* Start of postscript slur */ -#line 10619 "" +#line 10680 "" --idno; -#line 10620 "" +#line 10681 "" } -#line 10621 "" +#line 10682 "" } /* Now that we used list[de]cresc, update */ -#line 10625 "" +#line 10686 "" if (idno >= 13) { -#line 10626 "" +#line 10687 "" if (idno == 15 || comslur_1.fontslur && idno == 14) { /* Something's ending */ -#line 10630 "" +#line 10691 "" if (bit_test(comdyn_1.listcresc,*ivx)) { /* It's a cresc! */ -#line 10634 "" +#line 10695 "" comdyn_1.listcresc = bit_clear(comdyn_1.listcresc,*ivx); -#line 10635 "" +#line 10696 "" } else { -#line 10636 "" +#line 10697 "" comdyn_1.listdecresc = bit_clear(comdyn_1.listdecresc,*ivx); -#line 10637 "" +#line 10698 "" } -#line 10638 "" +#line 10699 "" } else { /* Something's starting */ -#line 10642 "" +#line 10703 "" if (idno1 == 14) { /* It's a cresc! */ -#line 10646 "" +#line 10707 "" comdyn_1.listcresc = bit_set(comdyn_1.listcresc,*ivx); -#line 10647 "" +#line 10708 "" } else { -#line 10648 "" +#line 10709 "" comdyn_1.listdecresc = bit_set(comdyn_1.listdecresc,*ivx); -#line 10649 "" +#line 10710 "" } -#line 10650 "" +#line 10711 "" } -#line 10651 "" +#line 10712 "" } -#line 10652 "" +#line 10713 "" setbits_(&idyn, &c__4, &c__12, &idno); -#line 10653 "" +#line 10714 "" *iccount = iend; -#line 10654 "" +#line 10715 "" if (ipm != 2) { /* There is a vertical shift */ -#line 10658 "" +#line 10719 "" idyn = bit_set(idyn,16); -#line 10659 "" +#line 10720 "" ++(*iccount); -#line 10660 "" +#line 10721 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 10661 "" +#line 10722 "" idno = i_nint(&fnum); -#line 10662 "" +#line 10723 "" i__1 = (ipm - 2) * idno + 64; -#line 10662 "" +#line 10723 "" setbits_(&idyn, &c__7, &c__17, &i__1); -#line 10663 "" +#line 10724 "" ipm = i_indx("- +", durq, (ftnlen)3, (ftnlen)1); -#line 10664 "" +#line 10725 "" if (ipm != 2) { /* There is a horizontal shift */ /* idynda2(ndyn) = ibset(idyn,23) */ -#line 10669 "" +#line 10730 "" comdyn_1.idynda2[comdyn_1.ndyn - 1] = bit_set(comdyn_1.idynda2[ comdyn_1.ndyn - 1],0); -#line 10670 "" +#line 10731 "" ++(*iccount); -#line 10671 "" +#line 10732 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 10672 "" +#line 10733 "" r__1 = fnum * 10; -#line 10672 "" +#line 10733 "" idno = i_nint(&r__1); -#line 10673 "" +#line 10734 "" i__1 = (ipm - 2) * idno + 256; -#line 10673 "" +#line 10734 "" setbits_(&comdyn_1.idynda2[comdyn_1.ndyn - 1], &c__9, &c__1, & i__1); -#line 10674 "" +#line 10735 "" } /* iccount should be on the blank at the end of the entire symbol */ -#line 10678 "" +#line 10739 "" } -#line 10679 "" +#line 10740 "" comdyn_1.idyndat[comdyn_1.ndyn - 1] = idyn; -#line 10680 "" +#line 10741 "" return 0; } /* getdyn_ */ @@ -25709,129 +25817,129 @@ L2: extern integer ifnodur_(integer *, char *, ftnlen); /* * itsofar,nodur,figq,ivupfig,nfigs) */ -#line 10689 "" +#line 10750 "" ++(*nfigs); -#line 10690 "" +#line 10751 "" *ivupfig = 0; -#line 10691 "" +#line 10752 "" *ivvfig = 0; -#line 10692 "" +#line 10753 "" *itoff = 0; -#line 10693 "" +#line 10754 "" if (*(unsigned char *)charq == 'x') { /* Floating figure. */ -#line 10697 "" +#line 10758 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 10698 "" +#line 10759 "" ici__1.icierr = 0; -#line 10698 "" +#line 10759 "" ici__1.iciend = 0; -#line 10698 "" +#line 10759 "" ici__1.icirnum = 1; -#line 10698 "" +#line 10759 "" ici__1.icirlen = 1; -#line 10698 "" +#line 10759 "" ici__1.iciunit = charq; -#line 10698 "" +#line 10759 "" ici__1.icifmt = "(i1)"; -#line 10698 "" +#line 10759 "" s_rsfi(&ici__1); -#line 10698 "" +#line 10759 "" do_fio(&c__1, (char *)&noff, (ftnlen)sizeof(integer)); -#line 10698 "" +#line 10759 "" e_rsfi(); -#line 10699 "" +#line 10760 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 10700 "" +#line 10761 "" ici__1.icierr = 0; -#line 10700 "" +#line 10761 "" ici__1.iciend = 0; -#line 10700 "" +#line 10761 "" ici__1.icirnum = 1; -#line 10700 "" +#line 10761 "" ici__1.icirlen = 1; -#line 10700 "" +#line 10761 "" ici__1.iciunit = charq; -#line 10700 "" +#line 10761 "" ici__1.icifmt = "(i1)"; -#line 10700 "" +#line 10761 "" s_rsfi(&ici__1); -#line 10700 "" +#line 10761 "" do_fio(&c__1, (char *)&loff, (ftnlen)sizeof(integer)); -#line 10700 "" +#line 10761 "" e_rsfi(); -#line 10701 "" +#line 10762 "" *itoff = noff * ifnodur_(&loff, "x", (ftnlen)1); -#line 10702 "" +#line 10763 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 10703 "" +#line 10764 "" } else { /* Figure on a note */ -#line 10707 "" +#line 10768 "" *isfig = TRUE_; -#line 10708 "" +#line 10769 "" } -#line 10709 "" +#line 10770 "" *itfig = *itsofar + *itoff - *nodur; -#line 10710 "" +#line 10771 "" lfig = 1; -#line 10711 "" +#line 10772 "" s_copy(figq, charq, (ftnlen)10, (ftnlen)1); -#line 10712 "" +#line 10773 "" L5: -#line 10712 "" +#line 10773 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); /* if (index(' +',charq) .eq. 0) then */ -#line 10714 "" +#line 10775 "" if (i_indx(" +v", charq, (ftnlen)3, (ftnlen)1) == 0) { /* Writing concatenation */ -#line 10715 "" +#line 10776 "" i__1[0] = lfig, a__1[0] = figq; -#line 10715 "" +#line 10776 "" i__1[1] = 1, a__1[1] = charq; -#line 10715 "" +#line 10776 "" s_cat(figq, a__1, i__1, &c__2, (ftnlen)10); -#line 10716 "" +#line 10777 "" ++lfig; -#line 10717 "" +#line 10778 "" goto L5; -#line 10718 "" +#line 10779 "" } else if (*(unsigned char *)charq == '+') { /* Get vertical offset for figure. Next character after number has to be blank. */ -#line 10722 "" +#line 10783 "" ++(*iccount); -#line 10723 "" +#line 10784 "" readnum_(lineq, iccount, charq, &fnum, (ftnlen)128, (ftnlen)1); -#line 10724 "" +#line 10785 "" *ivupfig = i_nint(&fnum); -#line 10725 "" +#line 10786 "" } else if (*(unsigned char *)charq == 'v') { /* Get vertical change in figdrop. Must be last item in figure word. */ -#line 10729 "" +#line 10790 "" isign = 1; -#line 10730 "" +#line 10791 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 10731 "" +#line 10792 "" if (*(unsigned char *)charq == '-') { -#line 10732 "" +#line 10793 "" isign = -1; -#line 10733 "" +#line 10794 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 10734 "" +#line 10795 "" } -#line 10735 "" +#line 10796 "" *ivvfig = isign * (*(unsigned char *)charq - 48); -#line 10736 "" +#line 10797 "" } -#line 10737 "" +#line 10798 "" return 0; } /* getfig_ */ @@ -25869,289 +25977,289 @@ L5: /* These data MUST precede note name of first note */ /* nolevg, naccg: lists of levels and accid's, indexed as described above. */ -#line 10771 "" +#line 10832 "" /* Parameter adjustments */ -#line 10771 "" +#line 10832 "" ndlev -= 25; -#line 10771 "" +#line 10832 "" ipl -= 25; -#line 10771 "" +#line 10832 "" --iornq; -#line 10771 "" +#line 10832 "" islur -= 25; -#line 10771 "" +#line 10832 "" --nnl; -#line 10771 "" +#line 10832 "" -#line 10771 "" +#line 10832 "" /* Function Body */ -#line 10771 "" +#line 10832 "" ++comgrace_1.ngrace; -#line 10772 "" +#line 10833 "" comgrace_1.ivg[comgrace_1.ngrace - 1] = *ivx; -#line 10773 "" +#line 10834 "" comgrace_1.ipg[comgrace_1.ngrace - 1] = nnl[*ivx] + 1; -#line 10774 "" +#line 10835 "" if (comgrace_1.ngrace == 1) { -#line 10775 "" +#line 10836 "" comgrace_1.ngstrt[comgrace_1.ngrace - 1] = 1; -#line 10776 "" +#line 10837 "" } else { -#line 10777 "" +#line 10838 "" comgrace_1.ngstrt[comgrace_1.ngrace - 1] = comgrace_1.ngstrt[ comgrace_1.ngrace - 2] + comgrace_1.nng[comgrace_1.ngrace - 2] ; -#line 10778 "" +#line 10839 "" } -#line 10779 "" +#line 10840 "" islur[*ivx + (nnl[*ivx] + 1) * 24] = bit_set(islur[*ivx + (nnl[*ivx] + 1) * 24],4); -#line 10780 "" +#line 10841 "" comgrace_1.nng[comgrace_1.ngrace - 1] = 1; -#line 10781 "" +#line 10842 "" comgrace_1.multg[comgrace_1.ngrace - 1] = 1; -#line 10782 "" +#line 10843 "" comgrace_1.upg[comgrace_1.ngrace - 1] = TRUE_; -#line 10783 "" +#line 10844 "" comgrace_1.slurg[comgrace_1.ngrace - 1] = FALSE_; -#line 10784 "" +#line 10845 "" comgrace_1.slashg[comgrace_1.ngrace - 1] = FALSE_; -#line 10785 "" +#line 10846 "" L18: -#line 10785 "" +#line 10846 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 10786 "" +#line 10847 "" if (i_indx("WA", charq, (ftnlen)2, (ftnlen)1) > 0) { /* Grace is on note that was already done, so shift flags forward one note. */ /* This puts flag on actual note with grace; later for W will go ahead one more. */ -#line 10791 "" +#line 10852 "" comgrace_1.ipg[comgrace_1.ngrace - 1] = nnl[*ivx]; -#line 10792 "" +#line 10853 "" islur[*ivx + (nnl[*ivx] + 1) * 24] = bit_clear(islur[*ivx + (nnl[*ivx] + 1) * 24],4); -#line 10793 "" +#line 10854 "" islur[*ivx + nnl[*ivx] * 24] = bit_set(islur[*ivx + nnl[*ivx] * 24],4) ; -#line 10794 "" +#line 10855 "" if (comgrace_1.slurg[comgrace_1.ngrace - 1]) { -#line 10794 "" +#line 10855 "" iornq[*ivx + nnl[*ivx] * 24] = bit_set(iornq[*ivx + nnl[*ivx] * 24],24); -#line 10794 "" +#line 10855 "" } -#line 10796 "" +#line 10857 "" if (*(unsigned char *)charq == 'A') { /* close After, clear way-after bit, to ensure priority of most recent A/W */ -#line 10800 "" +#line 10861 "" ipl[*ivx + nnl[*ivx] * 24] = bit_set(bit_clear(ipl[*ivx + nnl[* ivx] * 24],31),29); -#line 10801 "" +#line 10862 "" } else { /* Way after; later assign to following note, and position like normal grace. */ -#line 10805 "" +#line 10866 "" ipl[*ivx + nnl[*ivx] * 24] = bit_set(bit_clear(ipl[*ivx + nnl[* ivx] * 24],29),31); -#line 10806 "" +#line 10867 "" } -#line 10807 "" +#line 10868 "" } else if (*(unsigned char *)charq == 'm') { -#line 10808 "" +#line 10869 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 10809 "" +#line 10870 "" comgrace_1.multg[comgrace_1.ngrace - 1] = *(unsigned char *)charq - 48; -#line 10810 "" +#line 10871 "" } else if (i_indx("123456789", charq, (ftnlen)9, (ftnlen)1) > 0) { -#line 10811 "" +#line 10872 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 10812 "" +#line 10873 "" --(*iccount); -#line 10813 "" +#line 10874 "" comgrace_1.nng[comgrace_1.ngrace - 1] = i_nint(&fnum); -#line 10814 "" +#line 10875 "" } else if (*(unsigned char *)charq == 'l') { -#line 10815 "" +#line 10876 "" comgrace_1.upg[comgrace_1.ngrace - 1] = FALSE_; -#line 10816 "" +#line 10877 "" } else if (*(unsigned char *)charq == 's') { -#line 10817 "" +#line 10878 "" comgrace_1.slurg[comgrace_1.ngrace - 1] = TRUE_; -#line 10818 "" +#line 10879 "" if (nnl[*ivx] > 0) { /* If A- or W-grace, set signal to start slur on main note. */ -#line 10822 "" +#line 10883 "" if (bit_test(ipl[*ivx + nnl[*ivx] * 24],31) || bit_test(ipl[*ivx + nnl[*ivx] * 24],29)) { -#line 10822 "" +#line 10883 "" iornq[*ivx + nnl[*ivx] * 24] = bit_set(iornq[*ivx + nnl[*ivx] * 24],24); -#line 10822 "" +#line 10883 "" } -#line 10825 "" +#line 10886 "" } -#line 10826 "" +#line 10887 "" } else if (*(unsigned char *)charq == 'x') { -#line 10827 "" +#line 10888 "" comgrace_1.slashg[comgrace_1.ngrace - 1] = TRUE_; -#line 10828 "" +#line 10889 "" } else if (*(unsigned char *)charq == 'u') { -#line 10829 "" +#line 10890 "" } else if (*(unsigned char *)charq == 'X') { /* Space before main note of grace. Number will come next. */ -#line 10833 "" +#line 10894 "" ++(*iccount); -#line 10834 "" +#line 10895 "" readnum_(lineq, iccount, durq, &comgrace_1.graspace[comgrace_1.ngrace - 1], (ftnlen)128, (ftnlen)1); -#line 10835 "" +#line 10896 "" --(*iccount); -#line 10836 "" +#line 10897 "" } -#line 10837 "" +#line 10898 "" if (i_indx("abcdefg", charq, (ftnlen)7, (ftnlen)1) == 0) { -#line 10837 "" +#line 10898 "" goto L18; -#line 10837 "" +#line 10898 "" } /* At this point, charq is first note name in grace */ -#line 10841 "" +#line 10902 "" i__1 = comgrace_1.ngstrt[comgrace_1.ngrace - 1] + comgrace_1.nng[ comgrace_1.ngrace - 1] - 1; -#line 10841 "" +#line 10902 "" for (ing = comgrace_1.ngstrt[comgrace_1.ngrace - 1]; ing <= i__1; ++ing) { -#line 10842 "" +#line 10903 "" comgrace_1.naccg[ing - 1] = 0; -#line 10843 "" +#line 10904 "" ioct = 0; -#line 10844 "" +#line 10905 "" if (ing > comgrace_1.ngstrt[comgrace_1.ngrace - 1]) { -#line 10845 "" +#line 10906 "" L55: -#line 10845 "" +#line 10906 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 10846 "" +#line 10907 "" if (*(unsigned char *)charq == ' ') { -#line 10846 "" +#line 10907 "" goto L55; -#line 10846 "" +#line 10907 "" } -#line 10847 "" +#line 10908 "" } -#line 10848 "" +#line 10909 "" iclastlev = 0; -#line 10849 "" +#line 10910 "" L9: -#line 10849 "" +#line 10910 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 10850 "" +#line 10911 "" if (*(unsigned char *)durq != ' ') { -#line 10851 "" +#line 10912 "" if (*(unsigned char *)durq == '+') { -#line 10852 "" +#line 10913 "" *lastlev += 7; -#line 10853 "" +#line 10914 "" iclastlev += 7; -#line 10854 "" +#line 10915 "" } else if (*(unsigned char *)durq == '-') { -#line 10855 "" +#line 10916 "" *lastlev += -7; -#line 10856 "" +#line 10917 "" iclastlev += -7; -#line 10857 "" +#line 10918 "" } else if (i_indx("fsn", durq, (ftnlen)3, (ftnlen)1) > 0) { -#line 10858 "" +#line 10919 "" if (comgrace_1.naccg[ing - 1] == 0) { -#line 10859 "" +#line 10920 "" comgrace_1.naccg[ing - 1] = i_indx("fsn", durq, (ftnlen)3, (ftnlen)1); -#line 10860 "" +#line 10921 "" } else { /* Double accidental */ -#line 10864 "" +#line 10925 "" comgrace_1.naccg[ing - 1] = bit_set(comgrace_1.naccg[ing - 1],2); -#line 10865 "" +#line 10926 "" } -#line 10866 "" +#line 10927 "" } else { -#line 10867 "" +#line 10928 "" ioct = *(unsigned char *)durq - 48; -#line 10868 "" +#line 10929 "" } -#line 10869 "" +#line 10930 "" goto L9; -#line 10870 "" +#line 10931 "" } -#line 10871 "" +#line 10932 "" if (ioct > 0) { -#line 10872 "" +#line 10933 "" *lastlev = ifnolev_(charq, &ioct, &cominsttrans_1.itransamt[ cominsttrans_1.instno[*iv - 1] - 1], (ftnlen)1); -#line 10873 "" +#line 10934 "" } else { -#line 10874 "" +#line 10935 "" if (nnl[*ivx] == 0 && ing == comgrace_1.ngstrt[comgrace_1.ngrace - 1]) { -#line 10875 "" +#line 10936 "" if (*ivx <= *nv) { -#line 10876 "" +#line 10937 "" kv = 1; -#line 10877 "" +#line 10938 "" } else { -#line 10878 "" +#line 10939 "" kv = 2; -#line 10879 "" +#line 10940 "" } -#line 10880 "" +#line 10941 "" *lastlev = ndlev[*iv + kv * 24] + iclastlev; -#line 10881 "" +#line 10942 "" } -#line 10882 "" +#line 10943 "" *lastlev = *lastlev - 3 + (ifnolev_(charq, &c__10, & cominsttrans_1.itransamt[cominsttrans_1.instno[*iv - 1] - 1], (ftnlen)1) - *lastlev + 3) % 7; -#line 10884 "" +#line 10945 "" } -#line 10885 "" +#line 10946 "" comgrace_1.nolevg[ing - 1] = *lastlev; -#line 10886 "" +#line 10947 "" /* L19: */ -#line 10886 "" +#line 10947 "" } /* Grace could come before first note of block, so reset end level. */ -#line 10890 "" +#line 10951 "" if (nnl[*ivx] == 0) { -#line 10891 "" +#line 10952 "" if (*ivx <= *nv) { -#line 10892 "" +#line 10953 "" kv = 1; -#line 10893 "" +#line 10954 "" } else { -#line 10894 "" +#line 10955 "" kv = 2; -#line 10895 "" +#line 10956 "" } -#line 10896 "" +#line 10957 "" ndlev[*iv + kv * 24] = *lastlev; -#line 10897 "" +#line 10958 "" } -#line 10898 "" +#line 10959 "" return 0; } /* getgrace_ */ @@ -26207,166 +26315,166 @@ L9: /* fn. of nm, just a counter, where corr. inst num is iInstTrans(nm). This */ /* simplifies use of iTransAmt for all calls to ifnolev. */ -#line 10937 "" +#line 10998 "" *(unsigned char *)durq = 'x'; /* Can't initialize in declaration stmt, only works onc */ -#line 10938 "" +#line 10999 "" if (! cominsttrans_1.earlytranson) { -#line 10938 "" +#line 10999 "" cominsttrans_1.earlytranson = *from1 && *ibarcnt == 0; -#line 10938 "" +#line 10999 "" } -#line 10939 "" +#line 11000 "" store = cominsttrans_1.earlytranson && *ibarcnt == 0 || *ibarcnt > 0 && ! (*from1); -#line 10941 "" +#line 11002 "" cominsttrans_1.laterinsttrans = ! (*from1) && *ibarcnt > 0; -#line 10942 "" +#line 11003 "" if (store) { -#line 10942 "" +#line 11003 "" cominsttrans_1.ninsttrans = 0; -#line 10942 "" +#line 11003 "" } -#line 10943 "" +#line 11004 "" L1: -#line 10944 "" +#line 11005 "" if (*(unsigned char *)durq == ' ') { -#line 10944 "" +#line 11005 "" return 0; -#line 10944 "" +#line 11005 "" } -#line 10945 "" +#line 11006 "" g1etchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 10946 "" +#line 11007 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 10947 "" +#line 11008 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 10947 "" +#line 11008 "" errmsg_(lineq, iccount, &i__1, "There must be an instrument number h"\ "ere!", (ftnlen)128, (ftnlen)40); -#line 10949 "" +#line 11010 "" stop1_(); -#line 10950 "" +#line 11011 "" } -#line 10951 "" +#line 11012 "" if (store) { -#line 10951 "" +#line 11012 "" ++cominsttrans_1.ninsttrans; -#line 10951 "" +#line 11012 "" } -#line 10952 "" +#line 11013 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 10953 "" +#line 11014 "" instn = i_nint(&fnum); -#line 10954 "" +#line 11015 "" if (instn > *noinst) { -#line 10955 "" +#line 11016 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 10955 "" +#line 11016 "" errmsg_(lineq, iccount, &i__1, "Instrument number out of range!", ( ftnlen)128, (ftnlen)31); -#line 10957 "" +#line 11018 "" stop1_(); -#line 10958 "" +#line 11019 "" } -#line 10959 "" +#line 11020 "" if (store) { -#line 10959 "" +#line 11020 "" cominsttrans_1.iinsttrans[cominsttrans_1.ninsttrans - 1] = instn; -#line 10959 "" +#line 11020 "" } /* durq is +/- following inst # (for iTransAmt), iccount is on it. */ -#line 10963 "" +#line 11024 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) { -#line 10964 "" +#line 11025 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 10964 "" +#line 11025 "" errmsg_(lineq, iccount, &i__1, "1st character after instrument numbe"\ "r must be \"+,-\"!", (ftnlen)128, (ftnlen)52); -#line 10966 "" +#line 11027 "" stop1_(); -#line 10967 "" +#line 11028 "" } -#line 10968 "" +#line 11029 "" itramt = 44 - *(unsigned char *)durq; /* +1/-1 for itramt */ -#line 10969 "" +#line 11030 "" g1etchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 10970 "" +#line 11031 "" if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 10971 "" +#line 11032 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 10971 "" +#line 11032 "" errmsg_(lineq, iccount, &i__1, "There must be a transposition amount"\ " here!", (ftnlen)128, (ftnlen)42); -#line 10973 "" +#line 11034 "" stop1_(); -#line 10974 "" +#line 11035 "" } -#line 10975 "" +#line 11036 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 10976 "" +#line 11037 "" if (store) { -#line 10976 "" +#line 11037 "" cominsttrans_1.itransamt[instn - 1] = i_nint(&fnum) * itramt; -#line 10976 "" +#line 11037 "" } /* durq is +/- following iTransAmt (for iTransKey), iccount is on it. */ -#line 10980 "" +#line 11041 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) { -#line 10981 "" +#line 11042 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 10981 "" +#line 11042 "" errmsg_(lineq, iccount, &i__1, "1st character after transposition am"\ "ount must be \"+,-\"!", (ftnlen)128, (ftnlen)55); -#line 10983 "" +#line 11044 "" stop1_(); -#line 10984 "" +#line 11045 "" } -#line 10985 "" +#line 11046 "" ikey = 44 - *(unsigned char *)durq; /* +1/-1 */ -#line 10986 "" +#line 11047 "" g1etchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 10987 "" +#line 11048 "" if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 10988 "" +#line 11049 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 10988 "" +#line 11049 "" errmsg_(lineq, iccount, &i__1, "There must be a key indicator here!", (ftnlen)128, (ftnlen)35); -#line 10990 "" +#line 11051 "" stop1_(); -#line 10991 "" +#line 11052 "" } -#line 10992 "" +#line 11053 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 10993 "" +#line 11054 "" if (store) { -#line 10993 "" +#line 11054 "" cominsttrans_1.itranskey[cominsttrans_1.ninsttrans - 1] = i_nint(& fnum) * ikey; -#line 10993 "" +#line 11054 "" } /* durq is now 1st character after iTransKey, should be either 'i' or ' ' */ -#line 10997 "" +#line 11058 "" if (*(unsigned char *)durq != 'i' && *(unsigned char *)durq != ' ') { -#line 10998 "" +#line 11059 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 10998 "" +#line 11059 "" errmsg_(lineq, iccount, &i__1, "There must be blank or \"i\" here!", ( ftnlen)128, (ftnlen)32); -#line 11000 "" +#line 11061 "" stop1_(); -#line 11001 "" +#line 11062 "" } -#line 11002 "" +#line 11063 "" goto L1; } /* getitransinfo_ */ @@ -26408,8 +26516,8 @@ L1: char *, real *, ftnlen, ftnlen); /* Fortran I/O blocks */ - static cilist io___723 = { 0, 6, 0, "(a)", 0 }; - static cilist io___724 = { 0, 15, 0, "(a)", 0 }; + static cilist io___724 = { 0, 6, 0, "(a)", 0 }; + static cilist io___725 = { 0, 15, 0, "(a)", 0 }; /* subroutine getmidi(nv,lineq,iccount,ibarcnt,ibaroff,nbars,lenbar, */ @@ -26429,467 +26537,467 @@ L1: /* bsXobXbaXclXflXreXctXvo */ -#line 11050 "" +#line 11111 "" L1: -#line 11050 "" +#line 11111 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11051 "" +#line 11112 "" if (*(unsigned char *)durq == 't') { /* Tempo in beats ber minute */ -#line 11055 "" +#line 11116 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11056 "" +#line 11117 "" if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 11057 "" +#line 11118 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11057 "" +#line 11118 "" errmsg_(lineq, iccount, &i__1, "Expected an integer here for the"\ " pause!", (ftnlen)128, (ftnlen)39); -#line 11059 "" +#line 11120 "" stop1_(); /* else if (mmacrec) then */ /* call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, */ /* * 'Cannot change MIDI tempo while recording a MidiMacro!') */ /* call stop1() */ -#line 11064 "" +#line 11125 "" } -#line 11065 "" +#line 11126 "" readnum_(lineq, iccount, durq, &qpm, (ftnlen)128, (ftnlen)1); -#line 11066 "" +#line 11127 "" --(*iccount); -#line 11067 "" +#line 11128 "" if (! (*first)) { -#line 11068 "" +#line 11129 "" i__1 = i_nint(&qpm); -#line 11068 "" +#line 11129 "" midievent_("t", &i__1, &c__0, (ftnlen)1); -#line 11069 "" +#line 11130 "" commmac_1.gottempo = TRUE_; -#line 11070 "" +#line 11131 "" } -#line 11071 "" +#line 11132 "" goto L1; -#line 11072 "" +#line 11133 "" } else if (*(unsigned char *)durq == 'p') { /* Insert a pause. pausemid = pause in 1/4's */ -#line 11076 "" +#line 11137 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11077 "" +#line 11138 "" if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) == 0) { -#line 11078 "" +#line 11139 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11078 "" +#line 11139 "" errmsg_(lineq, iccount, &i__1, "Expected a number here for the p"\ "ause!", (ftnlen)128, (ftnlen)37); -#line 11080 "" +#line 11141 "" stop1_(); -#line 11081 "" +#line 11142 "" } -#line 11082 "" +#line 11143 "" readnum_(lineq, iccount, durq, &pausemid, (ftnlen)128, (ftnlen)1); -#line 11083 "" +#line 11144 "" --(*iccount); -#line 11084 "" +#line 11145 "" if (! (*first)) { /* Compute a meter for the pause. This is only to keep MidiNotate on track. */ /* Round pause to nearest 16th. Let denominator always be 16. */ -#line 11089 "" +#line 11150 "" r__1 = pausemid * 4; -#line 11089 "" +#line 11150 "" numb16 = i_nint(&r__1); -#line 11090 "" +#line 11151 "" midievent_("m", &numb16, &c__16, (ftnlen)1); /* Put in pausemid beats of rest */ -#line 11094 "" +#line 11155 "" i__1 = commidi_1.numchan - 1; -#line 11094 "" +#line 11155 "" for (icm = 0; icm <= i__1; ++icm) { -#line 11095 "" +#line 11156 "" r__1 = numb16 * 4.f; -#line 11095 "" +#line 11156 "" addmidi_(&icm, &c__0, &c__0, &c__0, &r__1, &c_true, &c_false); -#line 11096 "" +#line 11157 "" /* L3: */ -#line 11096 "" +#line 11157 "" } -#line 11097 "" +#line 11158 "" r__1 = pausemid * 240; -#line 11097 "" +#line 11158 "" comevent_1.miditime += i_nint(&r__1); /* Restore meter */ -#line 11101 "" +#line 11162 "" i__1 = *mtrdenl * *lenbar / 64; -#line 11101 "" +#line 11162 "" midievent_("m", &i__1, mtrdenl, (ftnlen)1); -#line 11102 "" +#line 11163 "" } -#line 11103 "" +#line 11164 "" goto L1; -#line 11104 "" +#line 11165 "" } else if (*(unsigned char *)durq == 'i') { /* c Instrument numbers or letters. Expect nv of them. */ /* Instrument numbers or letters. Expect noinst of them. */ /* do 2 ivx = 1 , nv */ -#line 11110 "" +#line 11171 "" i__1 = *noinstarg; -#line 11110 "" +#line 11171 "" for (ivx = 1; ivx <= i__1; ++ivx) { -#line 11111 "" +#line 11172 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11112 "" +#line 11173 "" if (*(unsigned char *)durq > 96) { /* It's a lowercase letter. Get another, find corr. instrument #. */ -#line 11116 "" +#line 11177 "" *(unsigned char *)instq = *(unsigned char *)durq; -#line 11117 "" +#line 11178 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); /* Writing concatenation */ -#line 11118 "" +#line 11179 "" i__2[0] = 1, a__1[0] = instq; -#line 11118 "" +#line 11179 "" i__2[1] = 1, a__1[1] = durq; -#line 11118 "" +#line 11179 "" s_cat(instq, a__1, i__2, &c__2, (ftnlen)2); -#line 11119 "" +#line 11180 "" iname = i_indx("XXpiXrhXhaXmaXorXguXabXvlXvaXvcXcbXtrXtbXtuX"\ "frXsoXalXteXbsXobXbaXclXflXreXctXvo", instq, (ftnlen) 79, (ftnlen)2) / 3; -#line 11121 "" +#line 11182 "" if (iname == 0) { -#line 11122 "" +#line 11183 "" i__3 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11122 "" +#line 11183 "" errmsg_(lineq, iccount, &i__3, "Unrecognized 2-letter mi"\ "di instrument name!", (ftnlen)128, (ftnlen)43); -#line 11124 "" +#line 11185 "" stop1_(); -#line 11125 "" +#line 11186 "" } -#line 11126 "" +#line 11187 "" commidi_1.midinst[ivx - 1] = midinum[iname - 1] - 1; -#line 11127 "" +#line 11188 "" } else { /* Expect a number, followed by ":" if that is followed by another number. */ /* I.e., if after call to readnum, durq is not ":", it must be either blank */ /* or next instrument letter. */ -#line 11133 "" +#line 11194 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 11134 "" +#line 11195 "" i__3 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11134 "" +#line 11195 "" errmsg_(lineq, iccount, &i__3, "Expected a midi instrume"\ "nt number here!", (ftnlen)128, (ftnlen)39); -#line 11136 "" +#line 11197 "" stop1_(); -#line 11137 "" +#line 11198 "" } -#line 11138 "" +#line 11199 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 11139 "" +#line 11200 "" commidi_1.midinst[ivx - 1] = i_nint(&fnum) - 1; -#line 11140 "" +#line 11201 "" if (commidi_1.midinst[ivx - 1] < 0 || commidi_1.midinst[ivx - 1] > 255) { -#line 11141 "" +#line 11202 "" i__3 = *iccount - 1; -#line 11141 "" +#line 11202 "" i__4 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11141 "" +#line 11202 "" errmsg_(lineq, &i__3, &i__4, "Midi instrument number mus"\ "t be in range 1-128!", (ftnlen)128, (ftnlen)46); -#line 11143 "" +#line 11204 "" stop1_(); -#line 11144 "" +#line 11205 "" } -#line 11145 "" +#line 11206 "" if (*(unsigned char *)durq != ':') { -#line 11145 "" +#line 11206 "" --(*iccount); -#line 11145 "" +#line 11206 "" } -#line 11146 "" +#line 11207 "" } -#line 11147 "" +#line 11208 "" /* L2: */ -#line 11147 "" +#line 11208 "" } -#line 11148 "" +#line 11209 "" goto L1; -#line 11149 "" +#line 11210 "" } else if (*(unsigned char *)durq == 'v') { /* Get volumes for each instrument. Expect nv of them. */ /* Follow same pattern as for insttrument numbers above. */ /* do 7 ivx = 1 , nv */ -#line 11155 "" +#line 11216 "" i__1 = *noinstarg; -#line 11155 "" +#line 11216 "" for (ivx = 1; ivx <= i__1; ++ivx) { -#line 11156 "" +#line 11217 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11157 "" +#line 11218 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 11158 "" +#line 11219 "" i__3 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11158 "" +#line 11219 "" errmsg_(lineq, iccount, &i__3, "Expected a midi velocity num"\ "ber here!", (ftnlen)128, (ftnlen)37); -#line 11160 "" +#line 11221 "" stop1_(); -#line 11161 "" +#line 11222 "" } -#line 11162 "" +#line 11223 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 11163 "" +#line 11224 "" commvel_1.midivel[ivx - 1] = i_nint(&fnum) - 1; -#line 11164 "" +#line 11225 "" if (commvel_1.midivel[ivx - 1] < 0 || commvel_1.midivel[ivx - 1] > 127) { -#line 11165 "" +#line 11226 "" i__3 = *iccount - 1; -#line 11165 "" +#line 11226 "" i__4 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11165 "" +#line 11226 "" errmsg_(lineq, &i__3, &i__4, "Midi velocity must be in range"\ " 1-128!", (ftnlen)128, (ftnlen)37); -#line 11167 "" +#line 11228 "" stop1_(); -#line 11168 "" +#line 11229 "" } -#line 11169 "" +#line 11230 "" if (*(unsigned char *)durq != ':') { -#line 11169 "" +#line 11230 "" --(*iccount); -#line 11169 "" +#line 11230 "" } -#line 11170 "" +#line 11231 "" /* L7: */ -#line 11170 "" +#line 11231 "" } -#line 11171 "" +#line 11232 "" goto L1; -#line 11172 "" +#line 11233 "" } else if (*(unsigned char *)durq == 'b') { /* Get balance for each instrument. Expect nv of them. */ /* Follow same pattern as for instrument numbers above. */ /* do 8 ivx = 1 , nv */ -#line 11178 "" +#line 11239 "" i__1 = *noinstarg; -#line 11178 "" +#line 11239 "" for (ivx = 1; ivx <= i__1; ++ivx) { -#line 11179 "" +#line 11240 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11180 "" +#line 11241 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 11181 "" +#line 11242 "" i__3 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11181 "" +#line 11242 "" errmsg_(lineq, iccount, &i__3, "Expected a balance number he"\ "re!", (ftnlen)128, (ftnlen)31); -#line 11183 "" +#line 11244 "" stop1_(); -#line 11184 "" +#line 11245 "" } -#line 11185 "" +#line 11246 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 11186 "" +#line 11247 "" commvel_1.midibal[ivx - 1] = i_nint(&fnum) - 1; -#line 11187 "" +#line 11248 "" if (commvel_1.midibal[ivx - 1] < 0 || commvel_1.midibal[ivx - 1] > 127) { -#line 11188 "" +#line 11249 "" i__3 = *iccount - 1; -#line 11188 "" +#line 11249 "" i__4 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11188 "" +#line 11249 "" errmsg_(lineq, &i__3, &i__4, "Midi balance must be in range "\ "1-128!", (ftnlen)128, (ftnlen)36); -#line 11190 "" +#line 11251 "" stop1_(); -#line 11191 "" +#line 11252 "" } -#line 11192 "" +#line 11253 "" if (*(unsigned char *)durq != ':') { -#line 11192 "" +#line 11253 "" --(*iccount); -#line 11192 "" +#line 11253 "" } -#line 11193 "" +#line 11254 "" /* L8: */ -#line 11193 "" +#line 11254 "" } -#line 11194 "" +#line 11255 "" goto L1; -#line 11195 "" +#line 11256 "" } else if (*(unsigned char *)durq == 'T') { /* Get transposition for each instrument. Expect nv of them. */ /* Follow similar pattern as above, but separator is +|-. */ /* do 9 ivx = 1 , nv */ -#line 11201 "" +#line 11262 "" i__1 = *noinstarg; -#line 11201 "" +#line 11262 "" for (ivx = 1; ivx <= i__1; ++ivx) { -#line 11202 "" +#line 11263 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11203 "" +#line 11264 "" ipm = i_indx("-+", durq, (ftnlen)2, (ftnlen)1); -#line 11204 "" +#line 11265 "" if (ipm == 0) { -#line 11205 "" +#line 11266 "" i__3 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11205 "" +#line 11266 "" errmsg_(lineq, iccount, &i__3, "Expected \"+\" or \"-\" for "\ "midi transposition here!", (ftnlen)128, (ftnlen)48); -#line 11207 "" +#line 11268 "" stop1_(); -#line 11208 "" +#line 11269 "" } -#line 11209 "" +#line 11270 "" ipm = (ipm << 1) - 3; -#line 11210 "" +#line 11271 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11211 "" +#line 11272 "" if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 11212 "" +#line 11273 "" i__3 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11212 "" +#line 11273 "" errmsg_(lineq, iccount, &i__3, "Expected a number here!", ( ftnlen)128, (ftnlen)23); -#line 11214 "" +#line 11275 "" stop1_(); -#line 11215 "" +#line 11276 "" } -#line 11216 "" +#line 11277 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 11217 "" +#line 11278 "" commvel_1.miditran[ivx - 1] = ipm * i_nint(&fnum); /* if (mod(miditran(ivx),12).ne. 0) then */ /* call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, */ /* * 'Midi transposition limited to multiples of 12!') */ /* call stop1() */ /* end if */ -#line 11223 "" +#line 11284 "" --(*iccount); -#line 11224 "" +#line 11285 "" /* L9: */ -#line 11224 "" +#line 11285 "" } -#line 11225 "" +#line 11286 "" goto L1; -#line 11226 "" +#line 11287 "" } else if (*(unsigned char *)durq == 'g') { -#line 11227 "" +#line 11288 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11228 "" +#line 11289 "" if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) { -#line 11229 "" +#line 11290 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11229 "" +#line 11290 "" errmsg_(lineq, iccount, &i__1, "Expected an integer here for the"\ " midi gap!", (ftnlen)128, (ftnlen)42); -#line 11231 "" +#line 11292 "" stop1_(); -#line 11232 "" +#line 11293 "" } -#line 11233 "" +#line 11294 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 11234 "" +#line 11295 "" commidi_1.mgap = i_nint(&fnum); -#line 11235 "" +#line 11296 "" --(*iccount); -#line 11236 "" +#line 11297 "" goto L1; -#line 11237 "" +#line 11298 "" } else if (*(unsigned char *)durq == 'M') { /* MidiMacros */ -#line 11241 "" +#line 11302 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11242 "" +#line 11303 "" if (*(unsigned char *)durq == 'R') { /* Start recording */ -#line 11246 "" +#line 11307 "" if (commmac_1.mmacrec) { -#line 11247 "" +#line 11308 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11247 "" +#line 11308 "" errmsg_(lineq, iccount, &i__1, "You tried to record a MidiMa"\ "cro while already recording!", (ftnlen)128, (ftnlen) 56); -#line 11249 "" +#line 11310 "" stop1_(); -#line 11250 "" +#line 11311 "" } -#line 11251 "" +#line 11312 "" commmac_1.mmacrec = TRUE_; -#line 11252 "" +#line 11313 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11253 "" +#line 11314 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 11254 "" +#line 11315 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11254 "" +#line 11315 "" errmsg_(lineq, iccount, &i__1, "Expected MidiMacro ID number"\ " here!", (ftnlen)128, (ftnlen)34); -#line 11256 "" +#line 11317 "" stop1_(); -#line 11257 "" +#line 11318 "" } -#line 11258 "" +#line 11319 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 11259 "" +#line 11320 "" --(*iccount); -#line 11260 "" +#line 11321 "" if (! (*first)) { -#line 11261 "" +#line 11322 "" commmac_1.immac = i_nint(&fnum); -#line 11262 "" +#line 11323 "" if (commmac_1.immac > 20) { -#line 11263 "" +#line 11324 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11263 "" +#line 11324 "" errmsg_(lineq, iccount, &i__1, "MidiMacro ID cannot exce"\ "ed 20!", (ftnlen)128, (ftnlen)30); -#line 11265 "" +#line 11326 "" stop1_(); -#line 11266 "" +#line 11327 "" } /* Save the start time */ -#line 11270 "" +#line 11331 "" commmac_1.mmactime[commmac_1.immac - 1] = comevent_1.miditime; -#line 11271 "" +#line 11332 "" i__1 = commidi_1.numchan; -#line 11271 "" +#line 11332 "" for (icm = 0; icm <= i__1; ++icm) { -#line 11272 "" +#line 11333 "" if (icm < commidi_1.numchan) { -#line 11273 "" +#line 11334 "" if (commidi_1.restpend[icm]) { /* Adjust if there's a rest at end of prior section. Insert dummy turnoff. */ @@ -26898,294 +27006,294 @@ L1: /* Before: section1 ------rest------- section2(to be recorded) */ /* After: section1 rest1 now rest2 section2(recorded) */ -#line 11281 "" +#line 11342 "" addmidi_(&icm, &c__30, &c__0, &c__0, & commidi_1.trest[icm], &c_false, &c_true); -#line 11282 "" +#line 11343 "" commidi_1.trest[icm] = 0.f; -#line 11283 "" +#line 11344 "" commidi_1.restpend[icm] = FALSE_; -#line 11284 "" +#line 11345 "" } -#line 11285 "" +#line 11346 "" } else { -#line 11286 "" +#line 11347 "" if (comevent_1.miditime > comevent_1.lasttime) { /* Insert a dummy turnoff in conductor track */ -#line 11290 "" +#line 11351 "" r__1 = (comevent_1.miditime - comevent_1.lasttime) / 15.f; -#line 11290 "" +#line 11351 "" addmidi_(&icm, &c__30, &c__0, &c__0, &r__1, & c_false, &c_true); -#line 11292 "" +#line 11353 "" comevent_1.lasttime = comevent_1.miditime; -#line 11293 "" +#line 11354 "" } -#line 11294 "" +#line 11355 "" } -#line 11295 "" +#line 11356 "" commmac_1.mmacstrt[icm + commmac_1.immac * 25 - 25] = commidi_1.imidi[icm] + 1; -#line 11296 "" +#line 11357 "" /* L4: */ -#line 11296 "" +#line 11357 "" } -#line 11297 "" +#line 11358 "" } -#line 11298 "" +#line 11359 "" goto L1; -#line 11299 "" +#line 11360 "" } else if (i_indx("123456789P", durq, (ftnlen)10, (ftnlen)1) == 0) { /* End recording; close the open macro. Get immac from common. */ -#line 11303 "" +#line 11364 "" if (! commmac_1.mmacrec) { -#line 11304 "" +#line 11365 "" i__1 = *iccount - 1; -#line 11304 "" +#line 11365 "" i__3 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11304 "" +#line 11365 "" errmsg_(lineq, &i__1, &i__3, "You tried to end a MidiMacro b"\ "efore starting one!", (ftnlen)128, (ftnlen)49); -#line 11306 "" +#line 11367 "" stop1_(); -#line 11307 "" +#line 11368 "" } -#line 11308 "" +#line 11369 "" commmac_1.mmacrec = FALSE_; -#line 11309 "" +#line 11370 "" --(*iccount); -#line 11310 "" +#line 11371 "" if (! (*first)) { /* Save the macro duration */ -#line 11314 "" +#line 11375 "" commmac_1.mmactime[commmac_1.immac - 1] = comevent_1.miditime - commmac_1.mmactime[commmac_1.immac - 1]; -#line 11315 "" +#line 11376 "" i__1 = commidi_1.numchan; -#line 11315 "" +#line 11376 "" for (icm = 0; icm <= i__1; ++icm) { -#line 11316 "" +#line 11377 "" if (icm < commidi_1.numchan) { -#line 11317 "" +#line 11378 "" if (commidi_1.restpend[icm]) { -#line 11318 "" +#line 11379 "" addmidi_(&icm, &c__30, &c__0, &c__0, & commidi_1.trest[icm], &c_false, &c_true); -#line 11319 "" +#line 11380 "" commidi_1.trest[icm] = 0.f; -#line 11320 "" +#line 11381 "" commidi_1.restpend[icm] = FALSE_; -#line 11321 "" +#line 11382 "" } -#line 11322 "" +#line 11383 "" } else { -#line 11323 "" +#line 11384 "" if (comevent_1.miditime > comevent_1.lasttime) { /* Insert a dummy turnoff in conductor track if needed. */ -#line 11327 "" +#line 11388 "" r__1 = (comevent_1.miditime - comevent_1.lasttime) / 15.f; -#line 11327 "" +#line 11388 "" addmidi_(&icm, &c__30, &c__0, &c__0, &r__1, & c_false, &c_true); -#line 11329 "" +#line 11390 "" comevent_1.lasttime = comevent_1.miditime; -#line 11330 "" +#line 11391 "" } -#line 11331 "" +#line 11392 "" } -#line 11332 "" +#line 11393 "" commmac_1.mmacend[icm + commmac_1.immac * 25 - 25] = commidi_1.imidi[icm]; -#line 11333 "" +#line 11394 "" /* L5: */ -#line 11333 "" +#line 11394 "" } -#line 11334 "" +#line 11395 "" } -#line 11335 "" +#line 11396 "" if (*(unsigned char *)durq != ' ') { -#line 11335 "" +#line 11396 "" goto L1; -#line 11335 "" +#line 11396 "" } -#line 11336 "" +#line 11397 "" } else if (*(unsigned char *)durq == 'P') { /* Play Back a Macro */ -#line 11340 "" +#line 11401 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11341 "" +#line 11402 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 11342 "" +#line 11403 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11342 "" +#line 11403 "" errmsg_(lineq, iccount, &i__1, "Expected MidiMacro ID number"\ " here!", (ftnlen)128, (ftnlen)34); -#line 11344 "" +#line 11405 "" stop1_(); -#line 11345 "" +#line 11406 "" } -#line 11346 "" +#line 11407 "" if (commmac_1.mmacrec) { -#line 11347 "" +#line 11408 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11347 "" +#line 11408 "" errmsg_(lineq, iccount, &i__1, "You tried to play a MidiMacr"\ "o before ending recording!", (ftnlen)128, (ftnlen)54); -#line 11349 "" +#line 11410 "" stop1_(); -#line 11350 "" +#line 11411 "" } -#line 11351 "" +#line 11412 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 11352 "" +#line 11413 "" --(*iccount); -#line 11353 "" +#line 11414 "" if (! (*first)) { -#line 11354 "" +#line 11415 "" commmac_1.immac = i_nint(&fnum); -#line 11355 "" +#line 11416 "" if (commmac_1.mmactime[commmac_1.immac - 1] == 0) { -#line 11356 "" +#line 11417 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11356 "" +#line 11417 "" errmsg_(lineq, iccount, &i__1, "Cannot play a MIDI macro"\ " before recording it!", (ftnlen)128, (ftnlen)45); -#line 11358 "" +#line 11419 "" stop1_(); -#line 11359 "" +#line 11420 "" } -#line 11360 "" +#line 11421 "" i__1 = commidi_1.numchan; -#line 11360 "" +#line 11421 "" for (icm = 0; icm <= i__1; ++icm) { -#line 11361 "" +#line 11422 "" if (icm < commidi_1.numchan) { -#line 11362 "" +#line 11423 "" if (commidi_1.restpend[icm]) { -#line 11363 "" +#line 11424 "" addmidi_(&icm, &c__30, &c__0, &c__0, & commidi_1.trest[icm], &c_false, &c_true); -#line 11364 "" +#line 11425 "" commidi_1.trest[icm] = 0.f; -#line 11365 "" +#line 11426 "" commidi_1.restpend[icm] = FALSE_; -#line 11366 "" +#line 11427 "" } -#line 11367 "" +#line 11428 "" } else { -#line 11368 "" +#line 11429 "" if (comevent_1.miditime > comevent_1.lasttime) { /* Insert a dummy turnoff in conductor track */ -#line 11372 "" +#line 11433 "" r__1 = (comevent_1.miditime - comevent_1.lasttime) / 15.f; -#line 11372 "" +#line 11433 "" addmidi_(&icm, &c__30, &c__0, &c__0, &r__1, & c_false, &c_true); -#line 11374 "" +#line 11435 "" } -#line 11375 "" +#line 11436 "" } -#line 11376 "" +#line 11437 "" commmac_1.msecend[icm + commmac_1.nmidsec * 25 - 25] = commidi_1.imidi[icm]; -#line 11377 "" +#line 11438 "" commmac_1.msecstrt[icm + (commmac_1.nmidsec + 1) * 25 - 25] = commmac_1.mmacstrt[icm + commmac_1.immac * 25 - 25]; -#line 11378 "" +#line 11439 "" commmac_1.msecend[icm + (commmac_1.nmidsec + 1) * 25 - 25] = commmac_1.mmacend[icm + commmac_1.immac * 25 - 25]; -#line 11379 "" +#line 11440 "" commmac_1.msecstrt[icm + (commmac_1.nmidsec + 2) * 25 - 25] = commidi_1.imidi[icm] + 1; -#line 11380 "" +#line 11441 "" /* L6: */ -#line 11380 "" +#line 11441 "" } -#line 11381 "" +#line 11442 "" commmac_1.nmidsec += 2; /* Update running time */ -#line 11385 "" +#line 11446 "" comevent_1.miditime += commmac_1.mmactime[commmac_1.immac - 1] ; -#line 11386 "" +#line 11447 "" comevent_1.lasttime = comevent_1.miditime; -#line 11387 "" +#line 11448 "" } -#line 11388 "" +#line 11449 "" goto L1; -#line 11389 "" +#line 11450 "" } else { -#line 11390 "" +#line 11451 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11390 "" +#line 11451 "" errmsg_(lineq, iccount, &i__1, "Illegal character in MidiMacro s"\ "ub-command!", (ftnlen)128, (ftnlen)43); -#line 11392 "" +#line 11453 "" stop1_(); -#line 11393 "" +#line 11454 "" } -#line 11394 "" +#line 11455 "" } else if (*(unsigned char *)durq == 'd') { -#line 11395 "" +#line 11456 "" commidi_1.debugmidi = TRUE_; -#line 11396 "" +#line 11457 "" goto L1; -#line 11397 "" +#line 11458 "" } else if (*(unsigned char *)durq != ' ') { -#line 11398 "" +#line 11459 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 11398 "" +#line 11459 "" errmsg_(lineq, iccount, &i__1, "Illegal character in MIDI input data!" , (ftnlen)128, (ftnlen)37); -#line 11400 "" - s_wsfe(&io___723); -#line 11400 "" +#line 11461 "" + s_wsfe(&io___724); +#line 11461 "" do_fio(&c__1, "May be too many args to i,v,b, or T. As of Ver. 2.7, "\ "should be noinst, not nv", (ftnlen)77); -#line 11400 "" +#line 11461 "" e_wsfe(); -#line 11403 "" - s_wsfe(&io___724); -#line 11403 "" +#line 11464 "" + s_wsfe(&io___725); +#line 11464 "" do_fio(&c__1, "May be too many args to i,v,b, or T. As of Ver. 2.7, "\ "should be noinst, not nv", (ftnlen)77); -#line 11403 "" +#line 11464 "" e_wsfe(); -#line 11406 "" +#line 11467 "" stop1_(); -#line 11407 "" +#line 11468 "" } -#line 11408 "" +#line 11469 "" if (! commmac_1.gottempo && ! (*first)) { /* If no tempo is set on first call on the pmxb pass, then set it */ -#line 11412 "" +#line 11473 "" midievent_("t", &c__96, &c__0, (ftnlen)1); -#line 11413 "" +#line 11474 "" commmac_1.gottempo = TRUE_; -#line 11414 "" +#line 11475 "" } -#line 11415 "" +#line 11476 "" return 0; } /* getmidi_ */ @@ -27253,7 +27361,7 @@ L1: extern /* Subroutine */ int sslur_(char *, integer *, integer *, integer * , integer *, integer *, integer *, integer *, integer *, logical * , integer *, char *, ftnlen, ftnlen); - static integer ifnum, nvold, iinow, iinst; + static integer isign, ifnum, nvold, iinow, iinst; extern /* Subroutine */ int getitransinfo_(logical *, integer *, char *, integer *, integer *, integer *, integer *, ftnlen); static logical quoted; @@ -27298,142 +27406,142 @@ L1: static real tintstf; /* Fortran I/O blocks */ - static cilist io___728 = { 0, 11, 0, "(a)", 0 }; - static cilist io___736 = { 0, 6, 0, 0, 0 }; - static cilist io___750 = { 0, 6, 0, 0, 0 }; + static cilist io___729 = { 0, 11, 0, "(a)", 0 }; + static cilist io___737 = { 0, 6, 0, 0, 0 }; static cilist io___751 = { 0, 6, 0, 0, 0 }; - static cilist io___762 = { 0, 6, 0, 0, 0 }; - static cilist io___766 = { 0, 6, 0, 0, 0 }; - static cilist io___767 = { 0, 6, 0, 0, 0 }; - static cilist io___770 = { 0, 6, 0, 0, 0 }; - static cilist io___775 = { 0, 11, 0, "(a)", 0 }; - static cilist io___776 = { 0, 11, 0, "(a)", 0 }; - static cilist io___779 = { 0, 11, 0, "(a)", 0 }; - static cilist io___780 = { 0, 11, 0, "(a)", 0 }; + static cilist io___752 = { 0, 6, 0, 0, 0 }; + static cilist io___764 = { 0, 6, 0, 0, 0 }; + static cilist io___768 = { 0, 6, 0, 0, 0 }; + static cilist io___769 = { 0, 6, 0, 0, 0 }; + static cilist io___772 = { 0, 6, 0, 0, 0 }; + static cilist io___777 = { 0, 11, 0, "(a)", 0 }; + static cilist io___778 = { 0, 11, 0, "(a)", 0 }; static cilist io___781 = { 0, 11, 0, "(a)", 0 }; static cilist io___782 = { 0, 11, 0, "(a)", 0 }; static cilist io___783 = { 0, 11, 0, "(a)", 0 }; - static cilist io___784 = { 0, 11, 0, "(a11,i2,a)", 0 }; - static cilist io___785 = { 0, 11, 0, "(a9,i2,a)", 0 }; - static cilist io___787 = { 0, 11, 0, "(a8,i1,a3)", 0 }; - static cilist io___788 = { 0, 11, 0, "(a9,i2,a4)", 0 }; - static cilist io___789 = { 0, 11, 0, "(a8,i1,a)", 0 }; - static cilist io___790 = { 0, 11, 0, "(a9,i2,a)", 0 }; - static cilist io___791 = { 0, 6, 0, 0, 0 }; - static cilist io___792 = { 0, 6, 0, 0, 0 }; - static cilist io___801 = { 0, 6, 0, 0, 0 }; - static cilist io___803 = { 0, 11, 0, "(a)", 0 }; - static cilist io___804 = { 0, 11, 0, "(a)", 0 }; + static cilist io___784 = { 0, 11, 0, "(a)", 0 }; + static cilist io___785 = { 0, 11, 0, "(a)", 0 }; + static cilist io___786 = { 0, 11, 0, "(a11,i2,a)", 0 }; + static cilist io___787 = { 0, 11, 0, "(a9,i2,a)", 0 }; + static cilist io___789 = { 0, 11, 0, "(a8,i1,a3)", 0 }; + static cilist io___790 = { 0, 11, 0, "(a9,i2,a4)", 0 }; + static cilist io___791 = { 0, 11, 0, "(a8,i1,a)", 0 }; + static cilist io___792 = { 0, 11, 0, "(a9,i2,a)", 0 }; + static cilist io___793 = { 0, 6, 0, 0, 0 }; + static cilist io___794 = { 0, 6, 0, 0, 0 }; + static cilist io___803 = { 0, 6, 0, 0, 0 }; static cilist io___805 = { 0, 11, 0, "(a)", 0 }; static cilist io___806 = { 0, 11, 0, "(a)", 0 }; + static cilist io___807 = { 0, 11, 0, "(a)", 0 }; static cilist io___808 = { 0, 11, 0, "(a)", 0 }; - static cilist io___811 = { 0, 11, 0, "(a)", 0 }; - static cilist io___812 = { 0, 11, 0, "(a)", 0 }; + static cilist io___810 = { 0, 11, 0, "(a)", 0 }; static cilist io___813 = { 0, 11, 0, "(a)", 0 }; static cilist io___814 = { 0, 11, 0, "(a)", 0 }; static cilist io___815 = { 0, 11, 0, "(a)", 0 }; static cilist io___816 = { 0, 11, 0, "(a)", 0 }; static cilist io___817 = { 0, 11, 0, "(a)", 0 }; static cilist io___818 = { 0, 11, 0, "(a)", 0 }; + static cilist io___819 = { 0, 11, 0, "(a)", 0 }; + static cilist io___820 = { 0, 11, 0, "(a)", 0 }; /* nvmx is either 1 or 2. ivmx(iv,1)=iv, ; ivmx(iv,2)>nv if defined */ /* ivx is current ivmx, and is the index for all notes, acc's etc. */ -#line 11534 "" +#line 11596 "" cdot = FALSE_; -#line 11535 "" +#line 11597 "" L1: -#line 11535 "" +#line 11597 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 11536 "" +#line 11598 "" if (comget_1.lastchar) { -#line 11536 "" +#line 11598 "" return 0; -#line 11536 "" +#line 11598 "" } -#line 11537 "" +#line 11599 "" if (*(unsigned char *)charq == ' ') { -#line 11537 "" +#line 11599 "" goto L1; -#line 11537 "" +#line 11599 "" } -#line 11538 "" +#line 11600 "" if (*(unsigned char *)charq == '%') { /* Check for a bar number format: */ -#line 11542 "" +#line 11604 "" if (all_1.iccount == 1 && *(unsigned char *)&lineq[1] == ' ' && i_indx("bB1234567890", lineq + 2, (ftnlen)12, (ftnlen)1) > 0) { -#line 11544 "" +#line 11606 "" if (comlast_1.islast) { -#line 11544 "" - s_wsfe(&io___728); -#line 11544 "" +#line 11606 "" + s_wsfe(&io___729); +#line 11606 "" do_fio(&c__1, lineq, lenstr_(lineq, &c__128, (ftnlen)128)); -#line 11544 "" +#line 11606 "" e_wsfe(); -#line 11544 "" +#line 11606 "" } -#line 11545 "" +#line 11607 "" } -#line 11546 "" +#line 11608 "" all_1.iccount = 128; -#line 11547 "" +#line 11609 "" goto L1; -#line 11548 "" +#line 11610 "" } /* Closing repeat iff charq='/' and the prev. char was 'R' with 'd' or 'r' */ -#line 11552 "" +#line 11614 "" if (comget_1.rptprev) { -#line 11553 "" +#line 11615 "" comget_1.rptnd1 = *(unsigned char *)charq == '/'; -#line 11554 "" +#line 11616 "" comget_1.rptprev = FALSE_; -#line 11555 "" +#line 11617 "" } /* Repeat at end of a piece */ -#line 11559 "" +#line 11621 "" if (*(unsigned char *)charq >= 97 && *(unsigned char *)charq <= 103 || *( unsigned char *)charq == 'r') { -#line 11561 "" +#line 11623 "" if (cdot) { -#line 11561 "" +#line 11623 "" goto L28; -#line 11561 "" +#line 11623 "" } /* This is a note/rest. */ -#line 11565 "" +#line 11627 "" idotform = 0; -#line 11566 "" +#line 11628 "" numnum = 0; /* If start of line of music, set pitch from previous */ -#line 11570 "" +#line 11632 "" if (commvl_1.ivx <= all_1.nv) { -#line 11571 "" +#line 11633 "" kv = 1; -#line 11572 "" +#line 11634 "" } else { -#line 11573 "" +#line 11635 "" kv = 2; -#line 11574 "" +#line 11636 "" } -#line 11575 "" +#line 11637 "" if (all_1.nnl[commvl_1.ivx - 1] == 0) { -#line 11575 "" +#line 11637 "" comnotes_1.lastlev = comnotes_1.ndlev[all_1.iv + kv * 24 - 25]; -#line 11575 "" +#line 11637 "" } /* notcrd is used to tell if orn. goes on main note or chord note */ @@ -27442,61 +27550,63 @@ L1: /* Increase note count, then loop 'til blank. Label 28 is for dotted shortcuts. */ -#line 11583 "" +#line 11645 "" L28: /* Moved this from just above, 2 Feb 02 */ -#line 11587 "" +#line 11649 "" comnotes_1.notcrd = TRUE_; -#line 11588 "" +#line 11650 "" ++all_1.nnl[commvl_1.ivx - 1]; -#line 11589 "" +#line 11651 "" if (comget_1.ornrpt) { /* Replicate ornament bits, also bit 23 for beam handling if chord. */ -#line 11593 "" +#line 11655 "" all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1] |= all_1.iornq[commvl_1.ivx - 1]; -#line 11594 "" +#line 11656 "" if ((all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1] & 32896) > 0) { /* This is a trill (bit 7 or 15) so must dup the parameters */ -#line 11598 "" +#line 11660 "" ++comtrill_1.ntrill; -#line 11599 "" +#line 11661 "" comtrill_1.ivtrill[comtrill_1.ntrill - 1] = commvl_1.ivx; -#line 11600 "" +#line 11662 "" comtrill_1.iptrill[comtrill_1.ntrill - 1] = all_1.nnl[ commvl_1.ivx - 1]; -#line 11601 "" +#line 11663 "" comtrill_1.xnsktr[comtrill_1.ntrill - 1] = comtrill_1.xnsktr[ comtrill_1.ntrill - 2]; -#line 11602 "" +#line 11664 "" } -#line 11603 "" +#line 11665 "" } -#line 11604 "" +#line 11666 "" if (comget_1.stickys) { /* Grab stemlength shortening parameters from prior note */ -#line 11608 "" +#line 11670 "" all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],27); -#line 11609 "" +/* call setbits (mult(ivx,nnl(ivx)),3,28, */ +/* * igetbits(mult(ivx,nnl(ivx)-1),3,28)) */ +#line 11673 "" i__1 = igetbits_(&all_1.mult[commvl_1.ivx + (all_1.nnl[ - commvl_1.ivx - 1] - 1) * 24 - 25], &c__3, &c__28); -#line 11609 "" + commvl_1.ivx - 1] - 1) * 24 - 25], &c__6, &c__10); +#line 11673 "" setbits_(&all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * - 24 - 25], &c__3, &c__28, &i__1); -#line 11611 "" + 24 - 25], &c__6, &c__10, &i__1); +#line 11675 "" } -#line 11612 "" +#line 11676 "" if (comfb_1.autofbon && comfb_1.tautofb > comtol_1.tol && ! comget_1.fbon) { @@ -27504,869 +27614,866 @@ L28: /* starts a period. */ /* if (mod(1.*itsofar(ivx),tautofb) .lt. tol) then */ -#line 11618 "" +#line 11682 "" r__1 = all_1.itsofar[commvl_1.ivx - 1] - comfb_1.t1autofb; -#line 11618 "" +#line 11682 "" if (r_mod(&r__1, &comfb_1.tautofb) < comtol_1.tol) { /* Start a forced beam here */ -#line 11622 "" +#line 11686 "" ++comfb_1.nfb[commvl_1.ivx - 1]; -#line 11623 "" +#line 11687 "" comget_1.fbon = TRUE_; -#line 11624 "" +#line 11688 "" *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.nfb[ commvl_1.ivx - 1] * 24 - 25] = 'x'; -#line 11625 "" +#line 11689 "" comfb_1.t1fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] * 24 - 25] = (real) all_1.itsofar[commvl_1.ivx - 1]; -#line 11626 "" +#line 11690 "" } -#line 11627 "" +#line 11691 "" } -#line 11628 "" +#line 11692 "" if (comget_1.fbon) { -#line 11628 "" +#line 11692 "" all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],30); -#line 11628 "" +#line 11692 "" } -#line 11629 "" +#line 11693 "" *(unsigned char *)dotq = 'x'; -#line 11630 "" +#line 11694 "" if (*(unsigned char *)charq == 'r') { -#line 11630 "" +#line 11694 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],0); -#line 11630 "" +#line 11694 "" } -#line 11632 "" +#line 11696 "" if (bit_test(all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],0)) { /* Rest stuff. First check if previous note was full-bar-pause */ -#line 11636 "" +#line 11700 "" i__1 = all_1.iccount; -#line 11636 "" +#line 11700 "" if (s_cmp(lineq + i__1, " ", all_1.iccount + 1 - i__1, (ftnlen)1) == 0 && all_1.nnl[commvl_1.ivx - 1] > 1) { -#line 11638 "" +#line 11702 "" if (bit_test(all_1.islur[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] - 1) * 24 - 25],19)) { -#line 11638 "" +#line 11702 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],19); -#line 11638 "" +#line 11702 "" } -#line 11640 "" +#line 11704 "" } /* Set default rest level at 0 unless 2 voices/staff in which case it's -4 or 2 */ /* for voice a or b. Set a-types at 0 as encountered and adjust later */ /* after '//'. (Override heights will be set to 100+offset) */ -#line 11646 "" +#line 11710 "" if (commvl_1.ivx <= all_1.nv) { -#line 11647 "" +#line 11711 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = 0; -#line 11648 "" +#line 11712 "" } else { -#line 11649 "" +#line 11713 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = 2; -#line 11650 "" +#line 11714 "" } -#line 11651 "" +#line 11715 "" } -#line 11652 "" +#line 11716 "" L2: -#line 11652 "" +#line 11716 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11653 "" +#line 11717 "" ic = *(unsigned char *)durq; -#line 11654 "" +#line 11718 "" if (ic <= 57 && ic >= 48) { /* Digit */ -#line 11658 "" +#line 11722 "" if (numnum == 0) { -#line 11659 "" +#line 11723 "" comnotes_1.nnodur = ic - 48; -#line 11660 "" +#line 11724 "" numnum = 1; -#line 11661 "" +#line 11725 "" goto L2; -#line 11662 "" +#line 11726 "" } else if (numnum == 1) { -#line 11663 "" +#line 11727 "" ioct = ic - 48; -#line 11664 "" +#line 11728 "" numnum = 2; -#line 11665 "" +#line 11729 "" goto L2; -#line 11666 "" +#line 11730 "" } else { -#line 11667 "" - s_wsle(&io___736); -#line 11667 "" +#line 11731 "" + s_wsle(&io___737); +#line 11731 "" do_lio(&c__9, &c__1, ">2 digits in note sym., ivx,nn:", ( ftnlen)31); -#line 11667 "" +#line 11731 "" do_lio(&c__3, &c__1, (char *)&commvl_1.ivx, (ftnlen)sizeof( integer)); -#line 11667 "" +#line 11731 "" do_lio(&c__3, &c__1, (char *)&all_1.nnl[commvl_1.ivx - 1], ( ftnlen)sizeof(integer)); -#line 11667 "" +#line 11731 "" e_wsle(); -#line 11668 "" +#line 11732 "" stop1_(); -#line 11669 "" +#line 11733 "" } -#line 11670 "" +#line 11734 "" } else if (*(unsigned char *)durq == 'd') { -#line 11671 "" +#line 11735 "" *(unsigned char *)dotq = *(unsigned char *)durq; -#line 11672 "" +#line 11736 "" i__1 = all_1.iccount; -#line 11672 "" +#line 11736 "" if (s_cmp(lineq + i__1, "d", all_1.iccount + 1 - i__1, (ftnlen)1) == 0) { /* Double dot. */ -#line 11676 "" +#line 11740 "" ++all_1.iccount; -#line 11677 "" +#line 11741 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],3); -#line 11678 "" +#line 11742 "" } -#line 11679 "" +#line 11743 "" i__1 = all_1.iccount; -#line 11679 "" +#line 11743 "" if (i_indx("+-", lineq + i__1, (ftnlen)2, all_1.iccount + 1 - i__1) > 0) { /* move a dot, unless next char is not part of a number */ -#line 11683 "" +#line 11747 "" i__1 = all_1.iccount + 1; -#line 11683 "" +#line 11747 "" if (i_indx("0123456789.", lineq + i__1, (ftnlen)11, all_1.iccount + 2 - i__1) == 0) { -#line 11683 "" +#line 11747 "" goto L2; -#line 11683 "" +#line 11747 "" } -#line 11685 "" +#line 11749 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],19); -#line 11686 "" +#line 11750 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11687 "" +#line 11751 "" ++comcc_1.ndotmv[commvl_1.ivx - 1]; -#line 11688 "" +#line 11752 "" ++all_1.iccount; -#line 11689 "" +#line 11753 "" readnum_(lineq, &all_1.iccount, dumq, &comcc_1.updot[ commvl_1.ivx + comcc_1.ndotmv[commvl_1.ivx - 1] * 24 - 25], (ftnlen)128, (ftnlen)1); -#line 11690 "" +#line 11754 "" if (*(unsigned char *)durq == '-') { -#line 11690 "" +#line 11754 "" comcc_1.updot[commvl_1.ivx + comcc_1.ndotmv[commvl_1.ivx - 1] * 24 - 25] = -comcc_1.updot[commvl_1.ivx + comcc_1.ndotmv[commvl_1.ivx - 1] * 24 - 25]; -#line 11690 "" +#line 11754 "" } -#line 11692 "" +#line 11756 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) { /* Vertical shift also */ -#line 11696 "" +#line 11760 "" ++all_1.iccount; -#line 11697 "" +#line 11761 "" readnum_(lineq, &all_1.iccount, durq, &comcc_1.rtdot[ commvl_1.ivx + comcc_1.ndotmv[commvl_1.ivx - 1] * 24 - 25], (ftnlen)128, (ftnlen)1); -#line 11698 "" +#line 11762 "" if (*(unsigned char *)dumq == '-') { -#line 11698 "" +#line 11762 "" comcc_1.rtdot[commvl_1.ivx + comcc_1.ndotmv[ commvl_1.ivx - 1] * 24 - 25] = -comcc_1.rtdot[ commvl_1.ivx + comcc_1.ndotmv[commvl_1.ivx - 1] * 24 - 25]; -#line 11698 "" +#line 11762 "" } -#line 11700 "" +#line 11764 "" } else { -#line 11701 "" +#line 11765 "" comcc_1.rtdot[commvl_1.ivx + comcc_1.ndotmv[commvl_1.ivx - 1] * 24 - 25] = 0.f; -#line 11702 "" +#line 11766 "" } -#line 11703 "" +#line 11767 "" --all_1.iccount; -#line 11704 "" +#line 11768 "" } -#line 11705 "" +#line 11769 "" goto L2; -#line 11706 "" +#line 11770 "" } else if (*(unsigned char *)durq == 'p') { /* Full-bar rest as pause */ -#line 11710 "" +#line 11774 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],19); -#line 11711 "" +#line 11775 "" goto L2; -#line 11712 "" +#line 11776 "" } else if (*(unsigned char *)durq == 'b') { /* Blank rest */ -#line 11716 "" +#line 11780 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],29); -#line 11717 "" +#line 11781 "" goto L2; -#line 11718 "" +#line 11782 "" } else if (i_indx("fsn", durq, (ftnlen)3, (ftnlen)1) > 0) { /* Accidental */ -#line 11722 "" +#line 11786 "" if (all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] == 0) { /* No accidental has been set yet */ -#line 11726 "" +#line 11790 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = i_indx("fsn", durq, (ftnlen)3, (ftnlen)1); -#line 11727 "" +#line 11791 "" } else { /* Repeated accid, so must be double */ -#line 11731 "" +#line 11795 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],2); -#line 11732 "" +#line 11796 "" } -#line 11733 "" +#line 11797 "" goto L2; -#line 11734 "" +#line 11798 "" } else if (*(unsigned char *)durq == 'i') { /* Set flag for MIDI-only accidental. */ -#line 11738 "" +#line 11802 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],17); -#line 11739 "" +#line 11803 "" goto L2; -#line 11740 "" +#line 11804 "" } else if (*(unsigned char *)durq == 'c') { /* Set flags for cautionary accidental */ -#line 11744 "" +#line 11808 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],31); -#line 11745 "" +#line 11809 "" all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1] = bit_set(all_1.iornq[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 1],31); -#line 11746 "" +#line 11810 "" goto L2; -#line 11747 "" +#line 11811 "" } else if (i_indx("+-<>", durq, (ftnlen)4, (ftnlen)1) > 0) { -#line 11748 "" +#line 11812 "" ipm = i_indx("- +", durq, (ftnlen)3, (ftnlen)1) - 2; -#line 11749 "" +#line 11813 "" if (! bit_test(all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],0)) { /* A note, not a rest. */ -#line 11753 "" +#line 11817 "" chkpm4ac_(lineq, &all_1.iccount, &all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25], &moved, ( ftnlen)128); -#line 11754 "" +#line 11818 "" if (moved) { -#line 11754 "" +#line 11818 "" goto L2; -#line 11754 "" +#line 11818 "" } /* Octave jump with a note */ -#line 11758 "" +#line 11822 "" if (numnum < 2) { -#line 11759 "" +#line 11823 "" comnotes_1.lastlev += ipm * 7; -#line 11760 "" +#line 11824 "" } else { -#line 11761 "" +#line 11825 "" ioct += ipm; -#line 11762 "" +#line 11826 "" } -#line 11763 "" +#line 11827 "" goto L2; -#line 11764 "" +#line 11828 "" } else { /* Override default height of a rest */ -#line 11768 "" +#line 11832 "" ++all_1.iccount; -#line 11769 "" +#line 11833 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 11770 "" +#line 11834 "" i__1 = all_1.iccount - 2; -#line 11770 "" +#line 11834 "" if (s_cmp(lineq + i__1, ".", all_1.iccount - 1 - i__1, ( ftnlen)1) == 0) { /* Kluge in case there is a shortcut ".". It will have been sucked up by */ /* readnum. (Same doesn't hold for ",") */ -#line 11775 "" +#line 11839 "" all_1.iccount += -2; -#line 11776 "" +#line 11840 "" goto L2; -#line 11777 "" +#line 11841 "" } -#line 11778 "" +#line 11842 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = ipm * i_nint(&fnum) + 100; /* There may be more characters for this rest */ -#line 11782 "" +#line 11846 "" --all_1.iccount; -#line 11783 "" +#line 11847 "" goto L2; -#line 11784 "" +#line 11848 "" } -#line 11785 "" +#line 11849 "" } else if (*(unsigned char *)durq == 'x') { /* Xtuplet. Count number of doubled notes (for unequal xtups) */ -#line 11789 "" +#line 11853 "" if (bit_test(all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],18)) { -#line 11790 "" +#line 11854 "" ndoub = 1; -#line 11791 "" +#line 11855 "" } else { -#line 11792 "" +#line 11856 "" ndoub = 0; -#line 11793 "" +#line 11857 "" } /* Will set all durations to 0 except last one. Set flag on this note. */ -#line 11797 "" +#line 11861 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],28); /* Next input will be digit */ -#line 11801 "" +#line 11865 "" ++all_1.iccount; -#line 11802 "" +#line 11866 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen) 1); -#line 11803 "" +#line 11867 "" ntup = i_nint(&fnum); -#line 11804 "" +#line 11868 "" if (i_indx("DF", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Double xtup note to make an un= xtup. Here xtup number already set but may also */ /* have this command before. */ -#line 11809 "" +#line 11873 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],18); -#line 11810 "" +#line 11874 "" if (*(unsigned char *)durq == 'F') { -#line 11810 "" +#line 11874 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],19); -#line 11810 "" +#line 11874 "" } -#line 11812 "" +#line 11876 "" ndoub = 1; -#line 11813 "" +#line 11877 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11814 "" +#line 11878 "" } else if (*(unsigned char *)durq == 'd') { -#line 11815 "" +#line 11879 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],27); -#line 11816 "" +#line 11880 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 11817 "" +#line 11881 "" } /* Only other possibilities here are ' ' or 'n' */ -#line 11821 "" +#line 11885 "" if (*(unsigned char *)durq == 'n') { /* Alter xtup number */ -#line 11825 "" +#line 11889 "" i__1 = all_1.iccount; -#line 11825 "" +#line 11889 "" if (s_cmp(lineq + i__1, " ", all_1.iccount + 1 - i__1, ( ftnlen)1) == 0) { /* If the only modifier is 'n', cancel the number */ -#line 11829 "" +#line 11893 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],31); -#line 11830 "" +#line 11894 "" } else { -#line 11831 "" +#line 11895 "" numshft = 0; -#line 11832 "" +#line 11896 "" L30: -#line 11832 "" +#line 11896 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 11833 "" +#line 11897 "" if (*(unsigned char *)durq == 'f') { /* Flip up-down-ness */ -#line 11837 "" +#line 11901 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],14); -#line 11838 "" +#line 11902 "" goto L30; -#line 11839 "" +#line 11903 "" } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Vertical or horiz shift */ -#line 11843 "" +#line 11907 "" ++numshft; -#line 11844 "" +#line 11908 "" iofforn = 1; -#line 11845 "" +#line 11909 "" if (*(unsigned char *)durq == '-') { -#line 11845 "" +#line 11909 "" iofforn = -1; -#line 11845 "" +#line 11909 "" } -#line 11846 "" +#line 11910 "" ++all_1.iccount; -#line 11847 "" +#line 11911 "" readnum_(lineq, &all_1.iccount, durq, &xofforn, ( ftnlen)128, (ftnlen)1); -#line 11848 "" +#line 11912 "" --all_1.iccount; -#line 11849 "" +#line 11913 "" if (numshft == 1) { /* Vertical shift */ +/* 160214 Allow (-64,64) */ +/* iofforn = iofforn*nint(xofforn) + 16 */ +#line 11918 "" + iofforn = iofforn * i_nint(&xofforn) + 64; -#line 11853 "" - iofforn = iofforn * i_nint(&xofforn) + 16; - -/* Turn on bit 1; set bits 2-6 to iofforn */ +/* c Turn on bit 1; set bits 2-6 to iofforn */ +/* Turn on bit 1 of irest; set bits 16-22 of mult to iofforn */ -#line 11857 "" +/* irest(ivx,nnl(ivx)) = */ +/* * ior(irest(ivx,nnl(ivx)),2+4*iofforn) */ +#line 11925 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - - 1] * 24 - 25] |= (iofforn << 2) + 2; -#line 11859 "" + - 1] * 24 - 25] = bit_set(all_1.irest[ + commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] + * 24 - 25],1); +#line 11926 "" + setbits_(&all_1.mult[commvl_1.ivx + all_1.nnl[ + commvl_1.ivx - 1] * 24 - 25], &c__8, & + c__16, &iofforn); +#line 11927 "" } else { /* Horizontal shift */ -#line 11863 "" +#line 11931 "" r__1 = xofforn * 10; -#line 11863 "" +#line 11931 "" iofforn = iofforn * i_nint(&r__1) + 16; -#line 11864 "" +#line 11932 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],7); -#line 11865 "" +#line 11933 "" setbits_(&all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25], &c__5, & c__9, &iofforn); -#line 11866 "" +#line 11934 "" } -#line 11867 "" +#line 11935 "" goto L30; -#line 11868 "" +#line 11936 "" } else if (*(unsigned char *)durq == 's') { /* Slope adjustment for bracket */ -#line 11872 "" +#line 11940 "" all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],4); -#line 11873 "" +#line 11941 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 11874 "" +#line 11942 "" iofforn = i_indx("- +", durq, (ftnlen)3, (ftnlen)1) - 2; -#line 11875 "" +#line 11943 "" ++all_1.iccount; -#line 11876 "" +#line 11944 "" readnum_(lineq, &all_1.iccount, durq, &xofforn, ( ftnlen)128, (ftnlen)1); -#line 11877 "" +#line 11945 "" --all_1.iccount; -#line 11878 "" +#line 11946 "" r__1 = iofforn * xofforn + 16; -#line 11878 "" +#line 11946 "" iofforn = i_nint(&r__1); -#line 11879 "" +#line 11947 "" setbits_(&all_1.mult[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25], &c__5, &c__5, & iofforn); -#line 11880 "" +#line 11948 "" } else if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) > 0) { /* Replacement printed number */ -#line 11884 "" +#line 11952 "" readnum_(lineq, &all_1.iccount, durq, &xofforn, ( ftnlen)128, (ftnlen)1); -#line 11885 "" +#line 11953 "" i__1 = i_nint(&xofforn); -#line 11885 "" +#line 11953 "" setbits_(&all_1.nacc[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25], &c__5, &c__22, & i__1); -#line 11886 "" +#line 11954 "" --all_1.iccount; -#line 11887 "" +#line 11955 "" goto L30; -#line 11888 "" +#line 11956 "" } -#line 11889 "" +#line 11957 "" } -#line 11890 "" +#line 11958 "" } /* Set note level of 1st note of xtup, provided not a rest */ -#line 11894 "" +#line 11962 "" if (! bit_test(all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],0)) { -#line 11895 "" +#line 11963 "" if (numnum == 2) { -#line 11896 "" +#line 11964 "" comnotes_1.lastlev = ifnolev_(charq, &ioct, & cominsttrans_1.itransamt[cominsttrans_1.instno[ all_1.iv - 1] - 1], (ftnlen)1); -#line 11897 "" +#line 11965 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = comnotes_1.lastlev; -#line 11898 "" +#line 11966 "" } else { -#line 11899 "" +#line 11967 "" comnotes_1.lastlev = comnotes_1.lastlev - 3 + (ifnolev_( charq, &c__10, &cominsttrans_1.itransamt[ cominsttrans_1.instno[all_1.iv - 1] - 1], (ftnlen) 1) - comnotes_1.lastlev + 3) % 7; -#line 11901 "" +#line 11969 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = comnotes_1.lastlev; -#line 11902 "" +#line 11970 "" } -#line 11903 "" +#line 11971 "" } -#line 11904 "" +#line 11972 "" for (comnotes_1.npreslur = comnotes_1.npreslur; comnotes_1.npreslur >= 1; --comnotes_1.npreslur) { /* Set note level for preslur on starting note of xtuplet */ -#line 11908 "" +#line 11976 "" setbits_(&all_1.isdat2[all_1.nsdat - comnotes_1.npreslur], & c__7, &c__19, &comnotes_1.lastlev); -#line 11909 "" +#line 11977 "" /* L40: */ -#line 11909 "" +#line 11977 "" } -#line 11910 "" +#line 11978 "" numnum = 0; -#line 11911 "" +#line 11979 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = 0; -#line 11912 "" +#line 11980 "" i__1 = ntup; -#line 11912 "" +#line 11980 "" for (itup = 2; itup <= i__1; ++itup) { -#line 11913 "" +#line 11981 "" if (comget_1.ornrpt) { -#line 11914 "" +#line 11982 "" all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1] |= all_1.iornq[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] - 1) * 24 - 1] & 10026991; -#line 11916 "" +#line 11984 "" if ((all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1] & 32896) > 0) { /* This is a trill (bit 7 or 15) so must dup the parameters */ -#line 11920 "" +#line 11988 "" ++comtrill_1.ntrill; -#line 11921 "" +#line 11989 "" comtrill_1.ivtrill[comtrill_1.ntrill - 1] = commvl_1.ivx; -#line 11922 "" +#line 11990 "" comtrill_1.iptrill[comtrill_1.ntrill - 1] = all_1.nnl[ commvl_1.ivx - 1]; -#line 11923 "" +#line 11991 "" comtrill_1.xnsktr[comtrill_1.ntrill - 1] = comtrill_1.xnsktr[comtrill_1.ntrill - 2]; -#line 11924 "" +#line 11992 "" } -#line 11925 "" +#line 11993 "" } -#line 11926 "" +#line 11994 "" ++all_1.nnl[commvl_1.ivx - 1]; -#line 11927 "" +#line 11995 "" if (comget_1.fbon) { -#line 11927 "" +#line 11995 "" all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],30); -#line 11927 "" +#line 11995 "" } -#line 11928 "" +#line 11996 "" L7: -#line 11928 "" +#line 11996 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1) ; -#line 11929 "" +#line 11997 "" if (*(unsigned char *)charq == ' ') { -#line 11930 "" +#line 11998 "" goto L7; -#line 11931 "" +#line 11999 "" } else if (*(unsigned char *)charq == '%') { -#line 11932 "" +#line 12000 "" all_1.iccount = 128; -#line 11933 "" +#line 12001 "" goto L7; -#line 11934 "" +#line 12002 "" } else if (*(unsigned char *)charq == 'o') { /* Ornament in xtuplet. "o" symbol must come AFTER the affected note */ -#line 11938 "" +#line 12006 "" if (comnotes_1.notcrd) { -#line 11939 "" +#line 12007 "" nole = all_1.nolev[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] - 1) * 24 - 25]; -#line 11940 "" +#line 12008 "" } else { -#line 11941 "" +#line 12009 "" nole = 127 & lbit_shift(comtrill_1.icrdat[ comtrill_1.ncrd - 1], (ftnlen)-12); -#line 11942 "" +#line 12010 "" } -#line 11943 "" +#line 12011 "" i__2 = all_1.nnl[commvl_1.ivx - 1] - 1; -#line 11943 "" +#line 12011 "" getorn_(lineq, &all_1.iccount, &all_1.iornq[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 1], & all_1.iornq[commvl_1.ivx - 1], &comget_1.ornrpt, & comgrace_1.noffseg, &i__2, &commvl_1.ivx, & c_false, &comnotes_1.notcrd, &nole, (ftnlen)128); -#line 11946 "" +#line 12014 "" goto L7; -#line 11947 "" +#line 12015 "" } else if (i_indx("st(){}", charq, (ftnlen)6, (ftnlen)1) > 0) { -#line 11948 "" +#line 12016 "" nnlivx = all_1.nnl[commvl_1.ivx - 1] - 1; -#line 11949 "" +#line 12017 "" if (*(unsigned char *)charq == '(' || *(unsigned char *) charq == '{') { /* Detected preslur in xtuplet loop, non-chord note */ -#line 11953 "" +#line 12021 "" ++nnlivx; -#line 11954 "" +#line 12022 "" ++comnotes_1.npreslur; -#line 11955 "" +#line 12023 "" } -#line 11956 "" +#line 12024 "" all_1.islur[commvl_1.ivx + nnlivx * 24 - 25] = bit_set( all_1.islur[commvl_1.ivx + nnlivx * 24 - 25],0); -#line 11957 "" +#line 12025 "" if (*(unsigned char *)charq == 't') { -#line 11957 "" +#line 12025 "" all_1.islur[commvl_1.ivx + nnlivx * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + nnlivx * 24 - 25],1); -#line 11957 "" +#line 12025 "" } -#line 11959 "" +#line 12027 "" if (commvl_1.ivx <= all_1.nv) { -#line 11960 "" +#line 12028 "" kv = 1; -#line 11961 "" +#line 12029 "" } else { -#line 11962 "" +#line 12030 "" kv = 2; -#line 11963 "" +#line 12031 "" } -#line 11964 "" +#line 12032 "" if (comslur_1.fontslur) { -#line 11965 "" +#line 12033 "" sslur_(lineq, &all_1.iccount, &all_1.iv, &kv, &nnlivx, all_1.isdat1, all_1.isdat2, all_1.isdat3, & all_1.nsdat, &comnotes_1.notcrd, &all_1.nolev[ commvl_1.ivx + nnlivx * 24 - 25], charq, ( ftnlen)128, (ftnlen)1); -#line 11967 "" +#line 12035 "" } else { -#line 11968 "" +#line 12036 "" spsslur_(lineq, &all_1.iccount, &all_1.iv, &kv, & nnlivx, all_1.isdat1, all_1.isdat2, all_1.isdat3, all_1.isdat4, &all_1.nsdat, & comnotes_1.notcrd, &all_1.nolev[commvl_1.ivx + nnlivx * 24 - 25], charq, (ftnlen)128, ( ftnlen)1); -#line 11970 "" +#line 12038 "" } -#line 11971 "" +#line 12039 "" goto L7; -#line 11972 "" +#line 12040 "" } else if (*(unsigned char *)charq == 'G') { /* Kluge to get grace in xtup at right location */ -#line 11976 "" +#line 12044 "" --all_1.nnl[commvl_1.ivx - 1]; -#line 11977 "" +#line 12045 "" getgrace_(&commvl_1.ivx, all_1.nnl, lineq, &all_1.iccount, all_1.islur, all_1.iornq, all_1.ipl, comnotes_1.ndlev, &comnotes_1.lastlev, &all_1.iv, &all_1.nv, (ftnlen)128); -#line 11979 "" +#line 12047 "" ++all_1.nnl[commvl_1.ivx - 1]; -#line 11980 "" +#line 12048 "" goto L7; -#line 11981 "" +#line 12049 "" } else if (*(unsigned char *)charq == *(unsigned char *) all_1.sq) { -#line 11982 "" +#line 12050 "" littex_(all_1.islur, &all_1.nnl[commvl_1.ivx - 1], & commvl_1.ivx, &comas3_1.topmods, lineq, & all_1.iccount, (ftnlen)128); -#line 11983 "" +#line 12051 "" goto L7; -#line 11984 "" +#line 12052 "" } else if (*(unsigned char *)charq == '"') { -/* c */ -/* c pmxlyr string in xtup. Expand "..." to \pmxlyr{...}\ */ -/* c */ -/* do 90 i2nd = iccount+1 , 128 */ -/* if (lineq(i2nd:i2nd) .eq. '"') go to 91 */ -/* 90 continue */ -/* 91 continue */ -/* if (iccount .eq. 1) then */ -/* lineqt = sq//'pmxlyr{'//lineq(2:i2nd-1)//'}'//sq */ -/* * //lineq(i2nd+1:128) */ -/* else */ -/* lineqt = lineq(1:iccount-1)//sq//'pmxlyr{' */ -/* * //lineq(iccount+1:i2nd-1)//'}'//sq */ -/* * //lineq(i2nd+1:128) */ -/* end if */ -/* lineq = lineqt */ -#line 12001 "" + +/* pmxlyr string in xtup. Expand "..." to \pmxlyr{...}\ */ + +#line 12056 "" dopmxlyr_(lineq, &all_1.iccount, (ftnlen)128); -#line 12002 "" +#line 12057 "" *(unsigned char *)charq = *(unsigned char *)all_1.sq; -#line 12003 "" +#line 12058 "" littex_(all_1.islur, &all_1.nnl[commvl_1.ivx - 1], & commvl_1.ivx, &comas3_1.topmods, lineq, & all_1.iccount, (ftnlen)128); -#line 12004 "" +#line 12059 "" goto L7; -#line 12005 "" +#line 12060 "" } else if (i_indx("0123456789#-nx_", charq, (ftnlen)15, ( ftnlen)1) > 0) { /* Figure. Must come AFTER the first note of xtup */ -#line 12009 "" +#line 12064 "" ivf = 1; -#line 12010 "" +#line 12065 "" if (commvl_1.ivx > 1) { -#line 12011 "" +#line 12066 "" if (comfig_1.ivxfig2 == 0) { -#line 12012 "" +#line 12067 "" comfig_1.ivxfig2 = commvl_1.ivx; -#line 12013 "" +#line 12068 "" } else if (commvl_1.ivx != comfig_1.ivxfig2) { -#line 12014 "" - s_wsle(&io___750); -#line 12014 "" - e_wsle(); -#line 12015 "" +#line 12069 "" s_wsle(&io___751); -#line 12015 "" +#line 12069 "" + e_wsle(); +#line 12070 "" + s_wsle(&io___752); +#line 12070 "" do_lio(&c__9, &c__1, "Figures not allowed in >1 "\ "voice above first", (ftnlen)43); -#line 12015 "" +#line 12070 "" e_wsle(); -#line 12016 "" +#line 12071 "" s_stop("", (ftnlen)0); -#line 12017 "" +#line 12072 "" } -#line 12018 "" +#line 12073 "" ivf = 2; -#line 12019 "" +#line 12074 "" } -#line 12020 "" +#line 12075 "" nfig1 = comfig_1.nfigs[ivf - 1] + 1; -#line 12021 "" +#line 12076 "" getfig_(&comgrace_1.itoff[ivf + (nfig1 << 1) - 3], charq, lineq, &all_1.iccount, &all_1.isfig[ivf + ( all_1.nnl[commvl_1.ivx - 1] - 1 << 1) - 3], & @@ -28378,14 +28485,14 @@ L7: comfig_1.nfigs[ivf - 1], (ftnlen)1, (ftnlen)128, ( ftnlen)10); /* * 0,figq(ivf,nfig1),ivupfig(ivf,nfig1),nfigs(ivf)) */ -#line 12026 "" +#line 12081 "" goto L7; -#line 12027 "" +#line 12082 "" } else if (*(unsigned char *)charq == 'X') { /* Computing MAX */ -#line 12028 "" +#line 12083 "" i__2 = 1, i__3 = all_1.nnl[commvl_1.ivx - 1] - 1; -#line 12028 "" +#line 12083 "" getx_(lineq, &all_1.iccount, &all_1.irest[commvl_1.ivx + max(i__2,i__3) * 24 - 25], &comnotes_1.shifton, & comask_1.wheadpt, &all_1.iornq[commvl_1.ivx + @@ -28395,211 +28502,211 @@ L7: all_1.itsofar[commvl_1.ivx - 1], &ntup, &itup, & comnotes_1.nnodur, dotq, &ndoub, (ftnlen)128, ( ftnlen)1); -#line 12032 "" +#line 12087 "" goto L7; -#line 12033 "" +#line 12088 "" } else if (*(unsigned char *)charq == 'z') { /* Chord note in xtup. Goes with *prior* note. */ -#line 12037 "" +#line 12092 "" comnotes_1.notcrd = FALSE_; -#line 12038 "" +#line 12093 "" ++comtrill_1.ncrd; -#line 12039 "" +#line 12094 "" all_1.ipl[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25] = bit_set(all_1.ipl[commvl_1.ivx + ( all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25],10); -#line 12040 "" +#line 12095 "" numnum = 0; /* icrdat(ncrd) = ior(nnl(ivx)-1,ishft(ivx,8)) */ -#line 12042 "" +#line 12097 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = all_1.nnl[ commvl_1.ivx - 1] - 1; -#line 12043 "" +#line 12098 "" i__2 = commvl_1.ivx % 16; -#line 12043 "" +#line 12098 "" setbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__4, & c__8, &i__2); -#line 12044 "" +#line 12099 "" if (commvl_1.ivx >= 16) { -#line 12044 "" +#line 12099 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],28); -#line 12044 "" +#line 12099 "" } -#line 12045 "" +#line 12100 "" comtrill_1.icrdorn[comtrill_1.ncrd - 1] = 0; /* Get note name */ -#line 12049 "" +#line 12104 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, ( ftnlen)1); /* Get optional inputs */ -#line 12053 "" +#line 12108 "" L34: -#line 12053 "" +#line 12108 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, ( ftnlen)1); /* When chord note is done, will get ' ', making ndx=0, so go past this block */ -#line 12057 "" +#line 12112 "" ndx = i_indx("fsn+-<>12345678reic", durq, (ftnlen)19, ( ftnlen)1); -#line 12058 "" +#line 12113 "" if (ndx > 0) { -#line 12059 "" +#line 12114 "" if (ndx <= 3) { -#line 12060 "" +#line 12115 "" if (! bit_test(comtrill_1.icrdat[comtrill_1.ncrd - 1],19)) { -#line 12061 "" +#line 12116 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(comtrill_1.icrdat[ comtrill_1.ncrd - 1],19); -#line 12062 "" +#line 12117 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] |= ndx << 20; -#line 12063 "" +#line 12118 "" } else { -#line 12064 "" +#line 12119 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(comtrill_1.icrdat[ comtrill_1.ncrd - 1],22); -#line 12065 "" +#line 12120 "" } -#line 12066 "" +#line 12121 "" } else if (ndx == 19) { /* Set flags for cautionary accidental */ -#line 12070 "" +#line 12125 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],31) ; -#line 12071 "" +#line 12126 "" all_1.iornq[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] - 1) * 24 - 1] = bit_set(all_1.iornq[commvl_1.ivx + ( all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 1] ,31); -#line 12073 "" +#line 12128 "" } else if (ndx <= 7) { /* +/-/</> Check whether octave or accidental shift */ -#line 12077 "" +#line 12132 "" nactmp = 0; -#line 12078 "" +#line 12133 "" chkpm4ac_(lineq, &all_1.iccount, &nactmp, &moved, (ftnlen)128); -#line 12079 "" +#line 12134 "" if (moved) { /* Transfer accidental shift values */ -#line 12083 "" +#line 12138 "" i__2 = igetbits_(&nactmp, &c__6, &c__4); -#line 12083 "" +#line 12138 "" setbits_(&comtrill_1.icrdot[comtrill_1.ncrd - 1], &c__6, &c__14, &i__2); -#line 12085 "" +#line 12140 "" i__2 = igetbits_(&nactmp, &c__7, &c__10); -#line 12085 "" +#line 12140 "" setbits_(&comtrill_1.icrdot[comtrill_1.ncrd - 1], &c__7, &c__20, &i__2); -#line 12087 "" +#line 12142 "" } else { -#line 12088 "" +#line 12143 "" if (*(unsigned char *)durq == '+') { -#line 12089 "" +#line 12144 "" comnotes_1.lastlev += 7; -#line 12090 "" +#line 12145 "" } else if (*(unsigned char *)durq == '-') { -#line 12091 "" +#line 12146 "" comnotes_1.lastlev += -7; -#line 12092 "" +#line 12147 "" } -#line 12093 "" +#line 12148 "" } -#line 12094 "" +#line 12149 "" } else if (*(unsigned char *)durq == 'e') { -#line 12095 "" +#line 12150 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],23) ; -#line 12096 "" +#line 12151 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],27); -#line 12097 "" +#line 12152 "" } else if (*(unsigned char *)durq == 'r') { -#line 12098 "" +#line 12153 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],24) ; -#line 12099 "" +#line 12154 "" all_1.irest[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] - 1) * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + ( all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25],20); -#line 12101 "" +#line 12156 "" } else if (*(unsigned char *)durq == 'i') { /* Midi-only accidental */ -#line 12105 "" +#line 12160 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],27) ; -#line 12106 "" +#line 12161 "" } else { /* must be a number, save it in ioct */ -#line 12110 "" +#line 12165 "" numnum = 1; -#line 12111 "" +#line 12166 "" ioct = ndx - 7; -#line 12112 "" +#line 12167 "" } -#line 12113 "" +#line 12168 "" goto L34; -#line 12114 "" +#line 12169 "" } -#line 12115 "" +#line 12170 "" if (numnum == 1) { -#line 12116 "" +#line 12171 "" comnotes_1.lastlev = ifnolev_(charq, &ioct, & cominsttrans_1.itransamt[ cominsttrans_1.instno[all_1.iv - 1] - 1], ( ftnlen)1); -#line 12117 "" +#line 12172 "" } else { -#line 12118 "" +#line 12173 "" comnotes_1.lastlev = comnotes_1.lastlev - 3 + ( ifnolev_(charq, &c__10, & cominsttrans_1.itransamt[ cominsttrans_1.instno[all_1.iv - 1] - 1], ( ftnlen)1) - comnotes_1.lastlev + 3) % 7; -#line 12120 "" +#line 12175 "" } -#line 12121 "" +#line 12176 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] |= comnotes_1.lastlev << 12; -#line 12122 "" +#line 12177 "" for (comnotes_1.npreslur = comnotes_1.npreslur; comnotes_1.npreslur >= 1; --comnotes_1.npreslur) { /* Set note level for preslur on chord note in xtup */ -#line 12126 "" +#line 12181 "" setbits_(&all_1.isdat2[all_1.nsdat - comnotes_1.npreslur], &c__7, &c__19, & comnotes_1.lastlev); @@ -28607,496 +28714,496 @@ L34: /* Following lines copied from loop for non-xtup, chord note, preslur */ /* Initially I assigned the slur(s) to next note, so fix. */ -#line 12131 "" +#line 12186 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_clear(all_1.islur[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],0); -#line 12132 "" +#line 12187 "" all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25] = bit_set(all_1.islur[ commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25],0); -#line 12133 "" +#line 12188 "" all_1.isdat2[all_1.nsdat - comnotes_1.npreslur] = bit_set(all_1.isdat2[all_1.nsdat - comnotes_1.npreslur],0); -#line 12135 "" +#line 12190 "" i__2 = igetbits_(&all_1.isdat1[all_1.nsdat - comnotes_1.npreslur], &c__8, &c__3) - 1; -#line 12135 "" +#line 12190 "" setbits_(&all_1.isdat1[all_1.nsdat - comnotes_1.npreslur], &c__8, &c__3, &i__2); -#line 12137 "" +#line 12192 "" /* L41: */ -#line 12137 "" +#line 12192 "" } -#line 12138 "" +#line 12193 "" goto L7; -#line 12139 "" +#line 12194 "" } else if (*(unsigned char *)charq == '?') { /* Arpeggio */ -#line 12143 "" +#line 12198 "" if (bit_test(all_1.ipl[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] - 1) * 24 - 25],10)) { /* This is a chordal note. Set a bit in icrdat. But if *main* (spacing) note */ /* of chord, will not set icrdat(25), but iornq(27) */ -#line 12148 "" +#line 12203 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],25); -#line 12149 "" +#line 12204 "" } else { -#line 12150 "" +#line 12205 "" all_1.iornq[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 1] = bit_set(all_1.iornq[ commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 1],27); -#line 12151 "" +#line 12206 "" } /* Check for shift */ -#line 12155 "" +#line 12210 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 12156 "" +#line 12211 "" if (*(unsigned char *)durq == ' ') { -#line 12157 "" +#line 12212 "" --all_1.iccount; -#line 12158 "" +#line 12213 "" } else { /* durq must be "-" */ -#line 12162 "" +#line 12217 "" ++all_1.iccount; -#line 12163 "" +#line 12218 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen) 128, (ftnlen)1); -#line 12164 "" +#line 12219 "" --all_1.iccount; /* record the shift */ -#line 12168 "" +#line 12223 "" ++comarpshift_1.numarpshift; -#line 12169 "" +#line 12224 "" comarpshift_1.ivarpshift[comarpshift_1.numarpshift - 1] = commvl_1.ivx; -#line 12170 "" +#line 12225 "" comarpshift_1.iparpshift[comarpshift_1.numarpshift - 1] = all_1.nnl[commvl_1.ivx - 1] - 1; -#line 12171 "" +#line 12226 "" comarpshift_1.arpshift[comarpshift_1.numarpshift - 1] = fnum; -#line 12172 "" +#line 12227 "" } -#line 12173 "" +#line 12228 "" goto L7; -#line 12174 "" +#line 12229 "" } else if (*(unsigned char *)charq == 'D') { -#line 12175 "" +#line 12230 "" i__2 = all_1.nnl[commvl_1.ivx - 1] - 1; -#line 12175 "" +#line 12230 "" getdyn_(&commvl_1.ivx, &i__2, &all_1.irest[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25], & all_1.iornq[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] - 1) * 24 - 1], lineq, & all_1.iccount, (ftnlen)128); -#line 12177 "" +#line 12232 "" goto L7; /* 140215 Allow clef change inside xtuplet. With normal code, came out one */ /* note too late, so try making it come earlier. */ -#line 12182 "" +#line 12237 "" } else if (*(unsigned char *)charq == 'C') { /* Clef change on next note. Set bits 11-15. Won't allow in 2nd line of music. */ /* if (nnl(iv) .gt. 0) ncc(iv) = ncc(iv)+1 */ -#line 12187 "" +#line 12242 "" if (all_1.nnl[all_1.iv - 1] - 1 > 0) { -#line 12187 "" +#line 12242 "" ++comcc_1.ncc[all_1.iv - 1]; -#line 12187 "" +#line 12242 "" } /* 140218 Need to get time differently inside xtup, since itsofar doesn't get */ /* updated until after xtup is done */ /* tcc(iv,ncc(iv)) = itsofar(iv) */ -#line 12193 "" +#line 12248 "" nodurt = ifnodur_(&comnotes_1.nnodur, dotq, (ftnlen)1); -#line 12194 "" +#line 12249 "" comcc_1.tcc[all_1.iv + comcc_1.ncc[all_1.iv - 1] * 24 - 25] = (real) (all_1.itsofar[all_1.iv - 1] + ( integer) (nodurt * 1.f / ntup * (itup - 1))); /* print*,'itsofar,ncc,nodurt,ntup,itup,tcc:' */ /* print*,itsofar(iv),ncc(iv),nodurt,ntup,itup,tcc(iv,ncc(iv)) */ /* isl = ibset(islur(iv,nnl(iv)+1),11) */ -#line 12198 "" +#line 12253 "" isl = bit_set(all_1.islur[all_1.iv + all_1.nnl[all_1.iv - 1] * 24 - 25],11); -#line 12199 "" +#line 12254 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, ( ftnlen)1); /* Store clef number, or 7 if clef number = 9 (French violin clef) */ /* Computing MIN */ -#line 12203 "" +#line 12258 "" i__2 = numclef_(durq, (ftnlen)1); -#line 12203 "" +#line 12258 "" isl |= min(i__2,7) << 12; -#line 12204 "" +#line 12259 "" comcc_1.ncmidcc[all_1.iv + comcc_1.ncc[all_1.iv - 1] * 24 - 25] = ncmidf_(durq, (ftnlen)1); -#line 12205 "" +#line 12260 "" if (*(unsigned char *)durq == '8') { -#line 12206 "" +#line 12261 "" all_1.ipl[all_1.iv + all_1.nnl[all_1.iv - 1] * 24 - 25] = bit_set(all_1.ipl[all_1.iv + all_1.nnl[ all_1.iv - 1] * 24 - 25],2); -#line 12207 "" +#line 12262 "" cominsttrans_1.itransamt[cominsttrans_1.instno[ all_1.iv - 1] - 1] = 7; -#line 12208 "" +#line 12263 "" } /* Set marker on note with lowest voice # starting at same time. */ -#line 12212 "" +#line 12267 "" if (all_1.iv == 1) { -#line 12213 "" +#line 12268 "" isl = bit_set(isl,15); -#line 12214 "" +#line 12269 "" } else { -#line 12215 "" +#line 12270 "" i__2 = all_1.iv; -#line 12215 "" +#line 12270 "" for (iiv = 1; iiv <= i__2; ++iiv) { /* nnliiv = nnl(iiv) */ -#line 12217 "" +#line 12272 "" nnliiv = all_1.nnl[iiv - 1] - 1; -#line 12218 "" +#line 12273 "" if (iiv == all_1.iv) { -#line 12218 "" +#line 12273 "" ++nnliiv; -#line 12218 "" +#line 12273 "" } -#line 12219 "" +#line 12274 "" itother = 0; -#line 12220 "" +#line 12275 "" i__3 = nnliiv; -#line 12220 "" +#line 12275 "" for (iip = 1; iip <= i__3; ++iip) { -#line 12221 "" +#line 12276 "" if (itother < all_1.itsofar[all_1.iv - 1]) { -#line 12222 "" +#line 12277 "" itother += all_1.nodur[iiv + iip * 24 - 25]; -#line 12223 "" +#line 12278 "" goto L71; -#line 12224 "" +#line 12279 "" } else if (itother == all_1.itsofar[all_1.iv - 1]) { -#line 12225 "" +#line 12280 "" all_1.islur[iiv + iip * 24 - 25] = bit_set(all_1.islur[iiv + iip * 24 - 25],15); -#line 12226 "" +#line 12281 "" goto L72; -#line 12227 "" +#line 12282 "" } -#line 12228 "" +#line 12283 "" L71: -#line 12228 "" +#line 12283 "" ; -#line 12228 "" +#line 12283 "" } -#line 12229 "" +#line 12284 "" /* L70: */ -#line 12229 "" +#line 12284 "" } -#line 12230 "" +#line 12285 "" L72: -#line 12231 "" +#line 12286 "" ; -#line 12231 "" +#line 12286 "" } /* Need 'or' since may have set bit 15 in the above loop */ /* islur(iv,nnl(iv)+1) = ior(isl,islur(iv,nnl(iv)+1)) */ -#line 12236 "" +#line 12291 "" all_1.islur[all_1.iv + all_1.nnl[all_1.iv - 1] * 24 - 25] = isl | all_1.islur[all_1.iv + all_1.nnl[all_1.iv - 1] * 24 - 25]; -#line 12237 "" +#line 12292 "" goto L7; /* +++ */ -#line 12239 "" +#line 12294 "" } else if (*(unsigned char *)charq == ']') { /* Multiplicity up-down, must have '][ ' */ -#line 12243 "" +#line 12298 "" all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25],20) ; -#line 12244 "" +#line 12299 "" all_1.iccount += 2; -#line 12245 "" +#line 12300 "" goto L7; /* c+++ */ -#line 12247 "" +#line 12302 "" } /* End of loop for xtup options. If here, charq must be a (non-crd) note name. */ /* or rest */ -#line 12252 "" +#line 12307 "" if (*(unsigned char *)charq == 'r') { /* Rest in xtup */ -#line 12256 "" +#line 12311 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],0); -#line 12257 "" +#line 12312 "" i__2 = all_1.iccount; -#line 12257 "" +#line 12312 "" if (i_indx("+-b", lineq + i__2, (ftnlen)3, all_1.iccount + 1 - i__2) > 0) { -#line 12258 "" +#line 12313 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 12259 "" +#line 12314 "" if (*(unsigned char *)durq == 'b') { /* Blank rest in middle of xtup */ -#line 12263 "" +#line 12318 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],29); -#line 12264 "" +#line 12319 "" } else { /* Override height of embedded xtup rest */ -#line 12268 "" +#line 12323 "" ipm = i_indx("- +", durq, (ftnlen)3, (ftnlen)1) - 2; -#line 12269 "" +#line 12324 "" ++all_1.iccount; -#line 12270 "" +#line 12325 "" readnum_(lineq, &all_1.iccount, durq, &fnum, ( ftnlen)128, (ftnlen)1); -#line 12271 "" +#line 12326 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = ipm * i_nint(&fnum) + 100; -#line 12272 "" +#line 12327 "" --all_1.iccount; -#line 12273 "" +#line 12328 "" } -#line 12274 "" +#line 12329 "" } else if (commvl_1.ivx <= all_1.nv) { -#line 12275 "" +#line 12330 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = 0; -#line 12276 "" +#line 12331 "" } else { -#line 12277 "" +#line 12332 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = 2; -#line 12278 "" +#line 12333 "" } -#line 12279 "" +#line 12334 "" } -#line 12280 "" +#line 12335 "" comnotes_1.notcrd = TRUE_; -#line 12281 "" +#line 12336 "" L8: -#line 12281 "" +#line 12336 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 12282 "" +#line 12337 "" if (*(unsigned char *)durq != ' ') { -#line 12283 "" +#line 12338 "" if (i_indx("+-<>", durq, (ftnlen)4, (ftnlen)1) > 0) { /* Accidental horizontal shift */ -#line 12287 "" +#line 12342 "" chkpm4ac_(lineq, &all_1.iccount, &all_1.nacc[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25], &moved, (ftnlen)128); -#line 12288 "" +#line 12343 "" if (! moved) { -#line 12289 "" +#line 12344 "" if (*(unsigned char *)durq == '+') { -#line 12290 "" +#line 12345 "" comnotes_1.lastlev += 7; -#line 12291 "" +#line 12346 "" } else if (*(unsigned char *)durq == '-') { -#line 12292 "" +#line 12347 "" comnotes_1.lastlev += -7; -#line 12293 "" +#line 12348 "" } -#line 12294 "" +#line 12349 "" } -#line 12295 "" +#line 12350 "" } else if (i_indx("fsn", durq, (ftnlen)3, (ftnlen)1) > 0) { -#line 12296 "" +#line 12351 "" if (all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] == 0) { /* No accid set yet */ -#line 12300 "" +#line 12355 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = i_indx("fsn", durq, ( ftnlen)3, (ftnlen)1); -#line 12301 "" +#line 12356 "" } else { /* Symbol must be repeated, so it's a double */ -#line 12305 "" +#line 12360 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],2); -#line 12306 "" +#line 12361 "" } -#line 12307 "" +#line 12362 "" } else if (*(unsigned char *)durq == 'i') { /* Set flag for midi-only accidental */ -#line 12311 "" +#line 12366 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],17); -#line 12313 "" +#line 12368 "" } else if (*(unsigned char *)durq == 'c') { /* Set flags for cautionary accidental */ -#line 12317 "" +#line 12372 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],31); -#line 12318 "" +#line 12373 "" all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1] = bit_set(all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1],31); -#line 12319 "" +#line 12374 "" } else if (i_indx("ul", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Force stem direction for non-beamed xtup note */ -#line 12323 "" +#line 12378 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],30); -#line 12324 "" +#line 12379 "" if (*(unsigned char *)durq == 'u') { -#line 12324 "" +#line 12379 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],17); -#line 12324 "" +#line 12379 "" } -#line 12326 "" +#line 12381 "" } else if (*(unsigned char *)durq == 'e') { /* Left-shift main xtup note */ -#line 12330 "" +#line 12385 "" all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],8); -#line 12331 "" +#line 12386 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],27); -#line 12332 "" +#line 12387 "" } else if (*(unsigned char *)durq == 'r') { /* Right-shift main xtup note */ -#line 12336 "" +#line 12391 "" all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],9); -#line 12337 "" +#line 12392 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],20); -#line 12338 "" +#line 12393 "" } else if (i_indx("DF", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Double an xtup note to make an unequal xtup */ -#line 12342 "" +#line 12397 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],18); -#line 12343 "" +#line 12398 "" if (*(unsigned char *)durq == 'F') { -#line 12343 "" +#line 12398 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],19); -#line 12343 "" +#line 12398 "" } -#line 12345 "" +#line 12400 "" ++ndoub; -#line 12346 "" +#line 12401 "" } else if (*(unsigned char *)durq == 'd') { /* Dotted xtup note */ -#line 12350 "" +#line 12405 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],27); -#line 12351 "" +#line 12406 "" } else { /* Must be an octave number */ -#line 12355 "" +#line 12410 "" i__2 = *(unsigned char *)durq - 48; -#line 12355 "" +#line 12410 "" comnotes_1.lastlev = ifnolev_(charq, &i__2, & cominsttrans_1.itransamt[ cominsttrans_1.instno[all_1.iv - 1] - 1], ( ftnlen)1); -#line 12357 "" +#line 12412 "" } -#line 12358 "" +#line 12413 "" goto L8; -#line 12359 "" +#line 12414 "" } -#line 12360 "" +#line 12415 "" if (itup < ntup) { /* Last note is handled *after* flowing out of the xtup if block, but still */ @@ -29104,547 +29211,559 @@ L8: /* Could have problem here if rests & doubled notes are combined in xtup, */ /* since might exit the loop at the wrong place. Worry about it later. */ -#line 12367 "" +#line 12422 "" if (! bit_test(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],0)) { -#line 12368 "" +#line 12423 "" comnotes_1.lastlev = comnotes_1.lastlev - 3 + ( ifnolev_(charq, &c__10, & cominsttrans_1.itransamt[ cominsttrans_1.instno[all_1.iv - 1] - 1], ( ftnlen)1) - comnotes_1.lastlev + 3) % 7; -#line 12370 "" +#line 12425 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = comnotes_1.lastlev; -#line 12371 "" +#line 12426 "" } -#line 12372 "" +#line 12427 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = 0; -#line 12373 "" +#line 12428 "" for (comnotes_1.npreslur = comnotes_1.npreslur; comnotes_1.npreslur >= 1; --comnotes_1.npreslur) { /* Set note level for preslur on internal xtup note */ -#line 12377 "" +#line 12432 "" setbits_(&all_1.isdat2[all_1.nsdat - comnotes_1.npreslur], &c__7, &c__19, & comnotes_1.lastlev); -#line 12378 "" +#line 12433 "" /* L42: */ -#line 12378 "" +#line 12433 "" } -#line 12379 "" +#line 12434 "" } -#line 12380 "" +#line 12435 "" if (itup == ntup - ndoub) { -#line 12380 "" +#line 12435 "" goto L12; -#line 12380 "" +#line 12435 "" } -#line 12381 "" +#line 12436 "" /* L6: */ -#line 12381 "" +#line 12436 "" } -#line 12382 "" +#line 12437 "" L12: -#line 12383 "" +#line 12438 "" if (comget_1.ornrpt) { -#line 12384 "" +#line 12439 "" all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1] |= all_1.iornq[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] - 1) * 24 - 1] & 10026991; -#line 12386 "" +#line 12441 "" if ((all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1] & 32896) > 0) { /* This is a trill (bit 7 or 15) so must dup the parameters */ -#line 12390 "" +#line 12445 "" ++comtrill_1.ntrill; -#line 12391 "" +#line 12446 "" comtrill_1.ivtrill[comtrill_1.ntrill - 1] = commvl_1.ivx; -#line 12392 "" +#line 12447 "" comtrill_1.iptrill[comtrill_1.ntrill - 1] = all_1.nnl[ commvl_1.ivx - 1]; -#line 12393 "" +#line 12448 "" comtrill_1.xnsktr[comtrill_1.ntrill - 1] = comtrill_1.xnsktr[comtrill_1.ntrill - 2]; -#line 12394 "" +#line 12449 "" } -#line 12395 "" +#line 12450 "" } /* End of if-block for xtuplet input */ -#line 12399 "" +#line 12454 "" } else if (*(unsigned char *)durq == 'm') { /* Multi-bar rest: next 1 or two digits are # of bars. */ /* For some purposes, pretend its one bar only */ -#line 12404 "" +#line 12459 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = all_1.lenbar; -#line 12405 "" +#line 12460 "" comgrace_1.ibarmbr = all_1.nbars + 1; -#line 12406 "" +#line 12461 "" comgrace_1.mbrest = 0; -#line 12407 "" +#line 12462 "" comgrace_1.xb4mbr = 0.f; -#line 12408 "" +#line 12463 "" L20: -#line 12408 "" +#line 12463 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 12409 "" +#line 12464 "" if (*(unsigned char *)durq >= 48 && *(unsigned char *)durq <= 57) { -#line 12410 "" +#line 12465 "" comgrace_1.mbrest = comgrace_1.mbrest * 10 + *(unsigned char * )durq - 48; -#line 12411 "" +#line 12466 "" goto L20; -#line 12412 "" +#line 12467 "" } -#line 12413 "" +#line 12468 "" } else if (i_indx("ul", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Set stem flipper */ -#line 12417 "" +#line 12472 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],30); -#line 12418 "" +#line 12473 "" if (*(unsigned char *)durq == 'u') { -#line 12418 "" +#line 12473 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],17); -#line 12418 "" +#line 12473 "" } -#line 12420 "" +#line 12475 "" goto L2; -#line 12421 "" +#line 12476 "" } else if (*(unsigned char *)durq == 'a') { /* "Alone", i.e., prohibit beam */ -#line 12425 "" +#line 12480 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],18); -#line 12426 "" +#line 12481 "" goto L2; -#line 12427 "" +#line 12482 "" } else if (*(unsigned char *)durq == 'r') { /* Right offset by one notehead */ -#line 12431 "" +#line 12486 "" all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],9); -#line 12432 "" +#line 12487 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],20); -#line 12433 "" +#line 12488 "" goto L2; -#line 12434 "" +#line 12489 "" } else if (*(unsigned char *)durq == 'e') { /* Left offset by one notehead */ -#line 12438 "" +#line 12493 "" all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],8); -#line 12439 "" +#line 12494 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],27); -#line 12440 "" +#line 12495 "" goto L2; -#line 12441 "" - } else if (*(unsigned char *)durq == 'S') { +/* else if (durq .eq. 'S') then */ +#line 12497 "" + } else if (i_indx("LS", durq, (ftnlen)2, (ftnlen)1) > 0) { -/* Stemlength change. Get -dstemlen in \internotes. Allowable values are .5 to 4 */ -/* Set mult(27). Map value to 0 to 7, store in mult(28-30). Later convert to */ +/* Stemlength change. Get dstemlen in \internotes. Allowable values are -4 to 27.5 */ +/* Set mult(27). Map value to 0 to 63, store in mult(10-15). Later convert to */ /* interbeams = internotes*2/3. */ -#line 12447 "" + +#line 12504 "" + isign = 1; +#line 12505 "" + if (*(unsigned char *)durq == 'S') { +#line 12505 "" + isign = -1; +#line 12505 "" + } +#line 12506 "" all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],27); -#line 12448 "" +#line 12507 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 12449 "" +#line 12508 "" if (*(unsigned char *)durq == ':') { /* End stickyS. Grab data now from prior note, since we have to shut off stickyS. */ -#line 12453 "" +#line 12512 "" i__1 = igetbits_(&all_1.mult[commvl_1.ivx + (all_1.nnl[ - commvl_1.ivx - 1] - 1) * 24 - 25], &c__3, &c__28); -#line 12453 "" + commvl_1.ivx - 1] - 1) * 24 - 25], &c__6, &c__10); +#line 12512 "" setbits_(&all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - - 1] * 24 - 25], &c__3, &c__28, &i__1); -#line 12455 "" + 1] * 24 - 25], &c__6, &c__10, &i__1); +#line 12514 "" comget_1.stickys = FALSE_; -#line 12456 "" +#line 12515 "" goto L2; -#line 12457 "" +#line 12516 "" } /* If durq .ne. ':' then iccount is now on the start of the number */ -#line 12461 "" +#line 12520 "" readnum_(lineq, &all_1.iccount, durq, &dum, (ftnlen)128, (ftnlen) 1); -#line 12462 "" - r__1 = (dum - .5f) * 2; -#line 12462 "" +#line 12521 "" + dum = isign * dum; +#line 12522 "" + r__1 = (dum + 4.f) * 2; +#line 12522 "" i__1 = i_nint(&r__1); -#line 12462 "" +#line 12522 "" setbits_(&all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * - 24 - 25], &c__3, &c__28, &i__1); -#line 12463 "" + 24 - 25], &c__6, &c__10, &i__1); +#line 12523 "" if (*(unsigned char *)durq == ':') { -#line 12464 "" +#line 12524 "" comget_1.stickys = TRUE_; -#line 12465 "" +#line 12525 "" } else { -#line 12466 "" +#line 12526 "" --all_1.iccount; -#line 12467 "" +#line 12527 "" } -#line 12468 "" +#line 12528 "" goto L2; -#line 12469 "" +#line 12529 "" } else if (*(unsigned char *)durq == ',') { /* 2:1 pattern */ -#line 12473 "" +#line 12533 "" idotform = 3; /* Now flow to duration setting, as if durq=' ' */ -#line 12477 "" +#line 12537 "" } else if (*(unsigned char *)durq == '.') { /* Dotted pattern. Close out note. Mult time by 3/4. */ /* Set time for next note to 1/4. Start the note. */ -#line 12482 "" +#line 12542 "" idotform = 1; -#line 12483 "" +#line 12543 "" } else if (*(unsigned char *)durq == 'o') { /* Suppress rest centering */ -#line 12487 "" +#line 12547 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],25); -#line 12488 "" +#line 12548 "" goto L2; -#line 12489 "" +#line 12549 "" } else if (*(unsigned char *)durq == 'L') { /* With keyboard rest option, look left */ /* iornq(ivx,nnl(ivx)) = ibset(iornq(ivx,nnl(ivx)),30) */ -#line 12494 "" +#line 12554 "" all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],1); -#line 12495 "" +#line 12555 "" goto L2; -#line 12496 "" +#line 12556 "" } else if (i_indx("DF", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Double note for xtup. Must check here in case "D" came before "x" or on */ /* last note of xtup. Need to flag it in pmxa since affects horiz. spacing. */ -#line 12501 "" +#line 12561 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],18); -#line 12502 "" +#line 12562 "" if (*(unsigned char *)durq == 'F') { -#line 12502 "" +#line 12562 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],19); -#line 12502 "" +#line 12562 "" } -#line 12504 "" +#line 12564 "" goto L2; -#line 12505 "" +#line 12565 "" } else if (*(unsigned char *)durq == 'A') { /* Accidental option */ -#line 12509 "" +#line 12569 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 12511 "" +#line 12571 "" if (*(unsigned char *)durq == 'o') { /* Ordered accidentals in a chord. Mark the main note. */ -#line 12515 "" +#line 12575 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],28); -#line 12516 "" +#line 12576 "" } else { /* Only other possibility is +-<> . Set tag, reduce iccount and loop to get #'s */ -#line 12520 "" +#line 12580 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],29); -#line 12521 "" +#line 12581 "" --all_1.iccount; -#line 12522 "" +#line 12582 "" } -#line 12523 "" +#line 12583 "" goto L2; -#line 12524 "" +#line 12584 "" } else if (*(unsigned char *)durq != ' ') { -#line 12525 "" - s_wsle(&io___762); -#line 12525 "" +#line 12585 "" + s_wsle(&io___764); +#line 12585 "" do_lio(&c__9, &c__1, "Illegal character in note: ", (ftnlen)27); -#line 12525 "" +#line 12585 "" do_lio(&c__9, &c__1, durq, (ftnlen)1); -#line 12525 "" +#line 12585 "" do_lio(&c__9, &c__1, ", ivx,nn:", (ftnlen)9); -#line 12525 "" +#line 12585 "" do_lio(&c__3, &c__1, (char *)&commvl_1.ivx, (ftnlen)sizeof( integer)); -#line 12525 "" +#line 12585 "" do_lio(&c__3, &c__1, (char *)&all_1.nnl[commvl_1.ivx - 1], ( ftnlen)sizeof(integer)); -#line 12525 "" +#line 12585 "" e_wsle(); -#line 12527 "" +#line 12587 "" stop1_(); -#line 12528 "" +#line 12588 "" } /* Done with note/rest options. Set level and duration. */ -#line 12532 "" +#line 12592 "" if (! bit_test(all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],0)) { -#line 12533 "" +#line 12593 "" if (numnum == 2) { -#line 12534 "" +#line 12594 "" comnotes_1.lastlev = ifnolev_(charq, &ioct, & cominsttrans_1.itransamt[cominsttrans_1.instno[ all_1.iv - 1] - 1], (ftnlen)1); -#line 12535 "" +#line 12595 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = comnotes_1.lastlev; -#line 12536 "" +#line 12596 "" } else { -#line 12537 "" +#line 12597 "" comnotes_1.lastlev = comnotes_1.lastlev - 3 + (ifnolev_(charq, &c__10, &cominsttrans_1.itransamt[ cominsttrans_1.instno[all_1.iv - 1] - 1], (ftnlen)1) - comnotes_1.lastlev + 3) % 7; -#line 12539 "" +#line 12599 "" all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = comnotes_1.lastlev; -#line 12540 "" +#line 12600 "" } -#line 12541 "" +#line 12601 "" for (comnotes_1.npreslur = comnotes_1.npreslur; comnotes_1.npreslur >= 1; --comnotes_1.npreslur) { /* Set level for preslur on normal note, non-chord */ -#line 12545 "" +#line 12605 "" setbits_(&all_1.isdat2[all_1.nsdat - comnotes_1.npreslur], & c__7, &c__19, &comnotes_1.lastlev); -#line 12546 "" +#line 12606 "" /* L43: */ -#line 12546 "" +#line 12606 "" } -#line 12547 "" +#line 12607 "" } -#line 12548 "" +#line 12608 "" if (idotform > 0) { -#line 12549 "" +#line 12609 "" if (idotform == 1) { -#line 12550 "" +#line 12610 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = ifnodur_(&comnotes_1.nnodur, dotq, (ftnlen)1) * 3 / 2; -#line 12551 "" +#line 12611 "" } else if (idotform == 2) { -#line 12552 "" +#line 12612 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = all_1.nodur[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] - 1) * 24 - 25] / 3; -#line 12553 "" +#line 12613 "" } else if (idotform == 3) { -#line 12554 "" +#line 12614 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = ifnodur_(&comnotes_1.nnodur, dotq, (ftnlen)1); -#line 12555 "" +#line 12615 "" } else if (idotform == 4) { -#line 12556 "" +#line 12616 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = all_1.nodur[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] - 1) * 24 - 25] / 2; -#line 12557 "" +#line 12617 "" } -#line 12558 "" +#line 12618 "" } else if (bit_test(all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],19)) { /* Set duration of full-bar rest as pause */ -#line 12562 "" +#line 12622 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = all_1.lenbar; /* Use a one-line function to set nnodur. It gives inverse of ifnodur. */ -#line 12566 "" +#line 12626 "" i__1 = (integer) (log(all_1.lenbar + .1f) / .69315f) + 48; -#line 12566 "" +#line 12626 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 12566 "" +#line 12626 "" comnotes_1.nnodur = i_indx("62514x0x37", ch__1, (ftnlen)10, ( ftnlen)1) - 1; -#line 12568 "" +#line 12628 "" } else if (comgrace_1.ibarmbr != all_1.nbars + 1) { -#line 12569 "" +#line 12629 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = ifnodur_(&comnotes_1.nnodur, dotq, (ftnlen)1); -#line 12570 "" +#line 12630 "" if (bit_test(all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],3)) { -#line 12570 "" +#line 12630 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = all_1.nodur[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25] * 7 / 6; -#line 12570 "" +#line 12630 "" } -#line 12572 "" +#line 12632 "" } -#line 12573 "" +#line 12633 "" if (comnotes_1.shifton && ! bit_test(all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],16)) { /* Shift is on, and this is not first shifted note. Check for duration change */ -#line 12577 "" +#line 12637 "" if (all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] != all_1.nodur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25]) { /* Must stop and restart the offset. */ -#line 12581 "" +#line 12641 "" all_1.irest[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + ( all_1.nnl[commvl_1.ivx - 1] - 1) * 24 - 25],17); -#line 12582 "" +#line 12642 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],16); -#line 12583 "" +#line 12643 "" ++comudsp_1.nudoff[commvl_1.ivx - 1]; -#line 12584 "" +#line 12644 "" comudsp_1.udoff[commvl_1.ivx + comudsp_1.nudoff[commvl_1.ivx - 1] * 24 - 25] = comudsp_1.udoff[commvl_1.ivx + ( comudsp_1.nudoff[commvl_1.ivx - 1] - 1) * 24 - 25]; -#line 12585 "" +#line 12645 "" } -#line 12586 "" +#line 12646 "" } -#line 12587 "" +#line 12647 "" all_1.itsofar[commvl_1.ivx - 1] += all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25]; -#line 12588 "" +#line 12648 "" if (comfb_1.autofbon && comfb_1.tautofb > comtol_1.tol && comget_1.fbon) { /* Check to see if need to terminate auto forced beam */ -#line 12592 "" +#line 12652 "" r__1 = all_1.itsofar[commvl_1.ivx - 1] - comfb_1.t1autofb; -#line 12592 "" +#line 12652 "" if (r_mod(&r__1, &comfb_1.tautofb) < comtol_1.tol) { /* Terminate autofb */ -#line 12596 "" +#line 12656 "" comfb_1.t2fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] * 24 - 25] = (real) all_1.itsofar[commvl_1.ivx - 1]; -#line 12597 "" +#line 12657 "" comget_1.fbon = FALSE_; -#line 12598 "" +#line 12658 "" } -#line 12599 "" +#line 12659 "" } -#line 12600 "" +#line 12660 "" if ((all_1.itsofar[commvl_1.ivx - 1] - all_1.lenb0) % all_1.lenbar == 0) { /* Finished a bar */ -#line 12604 "" +#line 12664 "" ++all_1.nbars; -#line 12605 "" +#line 12665 "" all_1.nib[commvl_1.ivx + all_1.nbars * 24 - 25] = all_1.nnl[ commvl_1.ivx - 1]; -#line 12606 "" +#line 12666 "" if (all_1.firstgulp && all_1.lenb0 != 0 && all_1.nbars == 1) { /* Just finished the pickup bar for this voice. */ -#line 12610 "" +#line 12670 "" all_1.lenbar = all_1.lenb1; -#line 12611 "" +#line 12671 "" } -#line 12612 "" +#line 12672 "" } -#line 12613 "" +#line 12673 "" if (idotform == 1) { -#line 12614 "" +#line 12674 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 12615 "" +#line 12675 "" idotform = 2; -#line 12616 "" +#line 12676 "" numnum = 1; -#line 12617 "" +#line 12677 "" goto L28; -#line 12618 "" +#line 12678 "" } else if (idotform == 3) { -#line 12619 "" +#line 12679 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 12620 "" +#line 12680 "" idotform = 4; -#line 12621 "" +#line 12681 "" numnum = 1; -#line 12622 "" +#line 12682 "" goto L28; -#line 12623 "" +#line 12683 "" } /* End of sub block for note-rest */ -#line 12627 "" +#line 12687 "" } else if (*(unsigned char *)charq == 'z') { /* Chord note. Must have note name, may have octave#,+,-,s,f,n,d */ @@ -29676,331 +29795,331 @@ L20: /* Bits in icrdorn are same as in iornq, even tho most orns won't go in crds. */ -#line 12658 "" +#line 12718 "" ++comtrill_1.ncrd; -#line 12659 "" +#line 12719 "" all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],10); -#line 12660 "" +#line 12720 "" numnum = 0; /* icrdat(ncrd) = ior(nnl(ivx)-1,ishft(ivx,8)) */ -#line 12662 "" +#line 12722 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = all_1.nnl[commvl_1.ivx - 1]; -#line 12663 "" +#line 12723 "" i__1 = commvl_1.ivx % 16; -#line 12663 "" +#line 12723 "" setbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__4, &c__8, &i__1) ; -#line 12664 "" +#line 12724 "" if (commvl_1.ivx >= 16) { -#line 12664 "" +#line 12724 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],28); -#line 12664 "" +#line 12724 "" } -#line 12665 "" +#line 12725 "" comtrill_1.icrdot[comtrill_1.ncrd - 1] = 0; -#line 12666 "" +#line 12726 "" comtrill_1.icrdorn[comtrill_1.ncrd - 1] = 0; /* Get note name */ -#line 12670 "" +#line 12730 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1); /* Get optional inputs */ -#line 12674 "" +#line 12734 "" L25: -#line 12674 "" +#line 12734 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); /* ndx = index('fsn+-<>12345678rediA',durq) */ -#line 12676 "" +#line 12736 "" ndx = i_indx("fsn+-<>12345678rediAc", durq, (ftnlen)21, (ftnlen)1); -#line 12677 "" +#line 12737 "" if (ndx == 20) { /* Expect +|-|<|> , set tag, loop */ -#line 12681 "" +#line 12741 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],29); -#line 12682 "" +#line 12742 "" goto L25; -#line 12683 "" +#line 12743 "" } else if (ndx > 0) { -#line 12684 "" +#line 12744 "" if (ndx <= 3) { -#line 12685 "" +#line 12745 "" if (! bit_test(comtrill_1.icrdat[comtrill_1.ncrd - 1],19)) { -#line 12686 "" +#line 12746 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],19); -#line 12687 "" +#line 12747 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] |= ndx << 20; -#line 12688 "" +#line 12748 "" } else { -#line 12689 "" +#line 12749 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],22); -#line 12690 "" +#line 12750 "" } -#line 12691 "" +#line 12751 "" } else if (ndx == 21) { /* Set flags for cautionary accidental */ -#line 12695 "" +#line 12755 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],31); -#line 12696 "" +#line 12756 "" all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1] = bit_set(all_1.iornq[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 1],31); -#line 12697 "" +#line 12757 "" } else if (ndx <= 7) { /* +/-/</> Check whether octave or accidental shift */ -#line 12701 "" +#line 12761 "" nactmp = 0; -#line 12702 "" +#line 12762 "" chkpm4ac_(lineq, &all_1.iccount, &nactmp, &moved, (ftnlen)128) ; -#line 12703 "" +#line 12763 "" if (moved) { /* Transfer accidental shift values */ -#line 12707 "" +#line 12767 "" i__1 = igetbits_(&nactmp, &c__6, &c__4); -#line 12707 "" +#line 12767 "" setbits_(&comtrill_1.icrdot[comtrill_1.ncrd - 1], &c__6, & c__14, &i__1); -#line 12708 "" +#line 12768 "" i__1 = igetbits_(&nactmp, &c__7, &c__10); -#line 12708 "" +#line 12768 "" setbits_(&comtrill_1.icrdot[comtrill_1.ncrd - 1], &c__7, & c__20, &i__1); -#line 12709 "" +#line 12769 "" } else { -#line 12710 "" +#line 12770 "" if (*(unsigned char *)durq == '+') { -#line 12711 "" +#line 12771 "" comnotes_1.lastlev += 7; -#line 12712 "" +#line 12772 "" } else if (*(unsigned char *)durq == '-') { -#line 12713 "" +#line 12773 "" comnotes_1.lastlev += -7; -#line 12714 "" +#line 12774 "" } -#line 12715 "" +#line 12775 "" } -#line 12716 "" +#line 12776 "" } else if (*(unsigned char *)durq == 'e') { -#line 12717 "" +#line 12777 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],23); -#line 12718 "" +#line 12778 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],27); -#line 12719 "" +#line 12779 "" } else if (*(unsigned char *)durq == 'r') { -#line 12720 "" +#line 12780 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],24); -#line 12721 "" +#line 12781 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],20); -#line 12722 "" +#line 12782 "" } else if (*(unsigned char *)durq == 'i') { /* Midi-only accidental on chord note */ -#line 12726 "" +#line 12786 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],27); -#line 12727 "" +#line 12787 "" } else if (*(unsigned char *)durq == 'd') { /* Must keep 'd' optional (backward compatibility), unless it is moved! */ -#line 12731 "" +#line 12791 "" i__1 = all_1.iccount; -#line 12731 "" +#line 12791 "" if (i_indx("+-", lineq + i__1, (ftnlen)2, all_1.iccount + 1 - i__1) > 0) { /* move a dot, unless next char is not part of a number */ -#line 12735 "" +#line 12795 "" i__1 = all_1.iccount + 1; -#line 12735 "" +#line 12795 "" if (i_indx("0123456789.", lineq + i__1, (ftnlen)11, all_1.iccount + 2 - i__1) == 0) { -#line 12735 "" +#line 12795 "" goto L25; -#line 12735 "" +#line 12795 "" } -#line 12737 "" +#line 12797 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],26); -#line 12738 "" +#line 12798 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 12739 "" +#line 12799 "" ++all_1.iccount; -#line 12740 "" +#line 12800 "" readnum_(lineq, &all_1.iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1); -#line 12741 "" +#line 12801 "" if (*(unsigned char *)durq == '+') { -#line 12742 "" +#line 12802 "" r__1 = fnum * 10; -#line 12742 "" +#line 12802 "" comtrill_1.icrdot[comtrill_1.ncrd - 1] |= i_nint(& r__1) + 64; -#line 12743 "" +#line 12803 "" } else { -#line 12744 "" +#line 12804 "" r__1 = fnum * 10; -#line 12744 "" +#line 12804 "" comtrill_1.icrdot[comtrill_1.ncrd - 1] |= -i_nint(& r__1) + 64; -#line 12745 "" +#line 12805 "" } -#line 12746 "" +#line 12806 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) { /* Vertical shift specified also */ -#line 12750 "" +#line 12810 "" ++all_1.iccount; -#line 12751 "" +#line 12811 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen) 128, (ftnlen)1); -#line 12752 "" +#line 12812 "" if (*(unsigned char *)dumq == '+') { -#line 12753 "" +#line 12813 "" r__1 = fnum * 10; -#line 12753 "" +#line 12813 "" ifnum = i_nint(&r__1) + 64; -#line 12754 "" +#line 12814 "" } else { -#line 12755 "" +#line 12815 "" r__1 = fnum * 10; -#line 12755 "" +#line 12815 "" ifnum = -i_nint(&r__1) + 64; -#line 12756 "" +#line 12816 "" } -#line 12757 "" +#line 12817 "" } else { -#line 12758 "" +#line 12818 "" ifnum = 64; -#line 12759 "" +#line 12819 "" } -#line 12760 "" +#line 12820 "" comtrill_1.icrdot[comtrill_1.ncrd - 1] |= ifnum << 7; -#line 12761 "" +#line 12821 "" --all_1.iccount; -#line 12762 "" +#line 12822 "" } -#line 12763 "" +#line 12823 "" } else { /* must be a single digit, save it in ioct */ -#line 12767 "" +#line 12827 "" numnum = 1; -#line 12768 "" +#line 12828 "" ioct = ndx - 7; -#line 12769 "" +#line 12829 "" } -#line 12770 "" +#line 12830 "" goto L25; -#line 12771 "" +#line 12831 "" } -#line 12772 "" +#line 12832 "" if (numnum == 1) { -#line 12773 "" +#line 12833 "" comnotes_1.lastlev = ifnolev_(charq, &ioct, & cominsttrans_1.itransamt[cominsttrans_1.instno[all_1.iv - 1] - 1], (ftnlen)1); -#line 12774 "" +#line 12834 "" } else { -#line 12775 "" +#line 12835 "" comnotes_1.lastlev = comnotes_1.lastlev - 3 + (ifnolev_(charq, & c__10, &cominsttrans_1.itransamt[cominsttrans_1.instno[ all_1.iv - 1] - 1], (ftnlen)1) - comnotes_1.lastlev + 3) % 7; -#line 12777 "" +#line 12837 "" } -#line 12778 "" +#line 12838 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] |= comnotes_1.lastlev << 12; -#line 12779 "" +#line 12839 "" for (comnotes_1.npreslur = comnotes_1.npreslur; comnotes_1.npreslur >= 1; --comnotes_1.npreslur) { -#line 12780 "" +#line 12840 "" setbits_(&all_1.isdat2[all_1.nsdat - comnotes_1.npreslur], &c__7, &c__19, &comnotes_1.lastlev); /* Set level for chord note. */ /* Initially I assigned the slur(s) to next note, so fix. */ -#line 12785 "" +#line 12845 "" all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25] = bit_clear(all_1.islur[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] + 1) * 24 - 25],0); -#line 12786 "" +#line 12846 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],0); -#line 12787 "" +#line 12847 "" all_1.isdat2[all_1.nsdat - comnotes_1.npreslur] = bit_set( all_1.isdat2[all_1.nsdat - comnotes_1.npreslur],0); -#line 12788 "" +#line 12848 "" i__1 = igetbits_(&all_1.isdat1[all_1.nsdat - comnotes_1.npreslur], &c__8, &c__3) - 1; -#line 12788 "" +#line 12848 "" setbits_(&all_1.isdat1[all_1.nsdat - comnotes_1.npreslur], &c__8, &c__3, &i__1); -#line 12790 "" +#line 12850 "" /* L44: */ -#line 12790 "" +#line 12850 "" } -#line 12791 "" +#line 12851 "" if (comnotes_1.notcrd) { /* This is the first chord note in this chord. */ /* Computing MIN */ -#line 12795 "" +#line 12855 "" i__1 = all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25]; -#line 12795 "" +#line 12855 "" comtrill_1.minlev = min(i__1,comnotes_1.lastlev); /* Computing MAX */ -#line 12796 "" +#line 12856 "" i__1 = all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25]; -#line 12796 "" +#line 12856 "" comtrill_1.maxlev = max(i__1,comnotes_1.lastlev); -#line 12797 "" +#line 12857 "" } else { -#line 12798 "" +#line 12858 "" comtrill_1.minlev = min(comtrill_1.minlev,comnotes_1.lastlev); -#line 12799 "" +#line 12859 "" comtrill_1.maxlev = max(comtrill_1.maxlev,comnotes_1.lastlev); -#line 12800 "" +#line 12860 "" } -#line 12801 "" +#line 12861 "" comnotes_1.notcrd = FALSE_; -#line 12802 "" +#line 12862 "" } else if (*(unsigned char *)charq == 'G') { -#line 12803 "" +#line 12863 "" getgrace_(&commvl_1.ivx, all_1.nnl, lineq, &all_1.iccount, all_1.islur, all_1.iornq, all_1.ipl, comnotes_1.ndlev, & comnotes_1.lastlev, &all_1.iv, &all_1.nv, (ftnlen)128); @@ -30018,228 +30137,228 @@ L25: /* These data MUST precede note name of first note */ /* nolevg, naccg: lists of levels and accid's, indexed as described above. */ -#line 12819 "" +#line 12879 "" } else if (*(unsigned char *)charq == *(unsigned char *)all_1.sq) { /* Literal TeX string */ -#line 12823 "" +#line 12883 "" i__1 = all_1.nnl[commvl_1.ivx - 1] + 1; -#line 12823 "" +#line 12883 "" littex_(all_1.islur, &i__1, &commvl_1.ivx, &comas3_1.topmods, lineq, & all_1.iccount, (ftnlen)128); -#line 12824 "" +#line 12884 "" } else if (*(unsigned char *)charq == '"') { /* pmxlyr string. Expand "..." to \pmxlyr{...}\ */ -#line 12828 "" +#line 12888 "" if (! comlyr_1.inputmlyr) { -#line 12829 "" +#line 12889 "" ictemp = 0; /* Writing concatenation */ -#line 12830 "" +#line 12890 "" i__4[0] = 1, a__1[0] = all_1.sq; -#line 12830 "" +#line 12890 "" i__4[1] = 1, a__1[1] = all_1.sq; -#line 12830 "" +#line 12890 "" i__4[2] = 1, a__1[2] = all_1.sq; -#line 12830 "" +#line 12890 "" i__4[3] = 15, a__1[3] = "input musixlyr "; -#line 12830 "" +#line 12890 "" i__4[4] = 1, a__1[4] = all_1.sq; -#line 12830 "" +#line 12890 "" s_cat(lineqt, a__1, i__4, &c__5, (ftnlen)128); -#line 12831 "" +#line 12891 "" i__1 = all_1.nnl[commvl_1.ivx - 1] + 1; -#line 12831 "" +#line 12891 "" littex_(all_1.islur, &i__1, &commvl_1.ivx, &comas3_1.topmods, lineqt, &ictemp, (ftnlen)128); -#line 12832 "" +#line 12892 "" comlyr_1.inputmlyr = TRUE_; -#line 12833 "" +#line 12893 "" } -#line 12834 "" +#line 12894 "" dopmxlyr_(lineq, &all_1.iccount, (ftnlen)128); -#line 12835 "" +#line 12895 "" *(unsigned char *)charq = *(unsigned char *)all_1.sq; -#line 12836 "" +#line 12896 "" i__1 = all_1.nnl[commvl_1.ivx - 1] + 1; -#line 12836 "" +#line 12896 "" littex_(all_1.islur, &i__1, &commvl_1.ivx, &comas3_1.topmods, lineq, & all_1.iccount, (ftnlen)128); -#line 12837 "" +#line 12897 "" } else if (*(unsigned char *)charq == 'o') { /* Ornament on non-xtup note. Symbol must come AFTER the affected note */ -#line 12841 "" +#line 12901 "" if (comnotes_1.notcrd) { -#line 12842 "" +#line 12902 "" nole = all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25]; -#line 12843 "" +#line 12903 "" } else { -#line 12844 "" +#line 12904 "" nole = 127 & lbit_shift(comtrill_1.icrdat[comtrill_1.ncrd - 1], ( ftnlen)-12); -#line 12845 "" +#line 12905 "" } -#line 12846 "" +#line 12906 "" getorn_(lineq, &all_1.iccount, &all_1.iornq[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 1], &all_1.iornq[commvl_1.ivx - 1], & comget_1.ornrpt, &comgrace_1.noffseg, &all_1.nnl[commvl_1.ivx - 1], &commvl_1.ivx, &c_true, &comnotes_1.notcrd, &nole, ( ftnlen)128); -#line 12849 "" +#line 12909 "" } else if (i_indx("st(){}", charq, (ftnlen)6, (ftnlen)1) > 0) { -#line 12850 "" +#line 12910 "" nnlivx = all_1.nnl[commvl_1.ivx - 1]; -#line 12851 "" +#line 12911 "" if (*(unsigned char *)charq == '(' || *(unsigned char *)charq == '{') { /* Detect preslur on normal non-chord note */ -#line 12855 "" +#line 12915 "" ++nnlivx; -#line 12856 "" +#line 12916 "" ++comnotes_1.npreslur; -#line 12857 "" +#line 12917 "" } -#line 12858 "" +#line 12918 "" all_1.islur[commvl_1.ivx + nnlivx * 24 - 25] = bit_set(all_1.islur[ commvl_1.ivx + nnlivx * 24 - 25],0); -#line 12859 "" +#line 12919 "" if (*(unsigned char *)charq == 't') { -#line 12859 "" +#line 12919 "" all_1.islur[commvl_1.ivx + nnlivx * 24 - 25] = bit_set( all_1.islur[commvl_1.ivx + nnlivx * 24 - 25],1); -#line 12859 "" +#line 12919 "" } -#line 12861 "" +#line 12921 "" if (commvl_1.ivx <= all_1.nv) { -#line 12862 "" +#line 12922 "" kv = 1; -#line 12863 "" +#line 12923 "" } else { -#line 12864 "" +#line 12924 "" kv = 2; -#line 12865 "" +#line 12925 "" } -#line 12866 "" +#line 12926 "" if (comslur_1.fontslur) { -#line 12867 "" +#line 12927 "" sslur_(lineq, &all_1.iccount, &all_1.iv, &kv, &nnlivx, all_1.isdat1, all_1.isdat2, all_1.isdat3, &all_1.nsdat, & comnotes_1.notcrd, &all_1.nolev[commvl_1.ivx + nnlivx * 24 - 25], charq, (ftnlen)128, (ftnlen)1); -#line 12869 "" +#line 12929 "" } else { -#line 12870 "" +#line 12930 "" spsslur_(lineq, &all_1.iccount, &all_1.iv, &kv, &nnlivx, all_1.isdat1, all_1.isdat2, all_1.isdat3, all_1.isdat4, & all_1.nsdat, &comnotes_1.notcrd, &all_1.nolev[ commvl_1.ivx + nnlivx * 24 - 25], charq, (ftnlen)128, ( ftnlen)1); -#line 12872 "" +#line 12932 "" } -#line 12873 "" +#line 12933 "" } else if (*(unsigned char *)charq == '?') { /* Arpeggio */ -#line 12877 "" +#line 12937 "" if (bit_test(all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],10)) { /* This is a chordal note. Set a bit in icrdat. But if *main* (spacing) note */ /* of chord, will not set icrdat(25), but iornq(27) */ -#line 12882 "" +#line 12942 "" comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set( comtrill_1.icrdat[comtrill_1.ncrd - 1],25); -#line 12883 "" +#line 12943 "" } else { -#line 12884 "" +#line 12944 "" all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1] = bit_set(all_1.iornq[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 1],27); -#line 12885 "" +#line 12945 "" } /* Check for shift */ -#line 12889 "" +#line 12949 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 12890 "" +#line 12950 "" if (*(unsigned char *)durq == ' ') { -#line 12891 "" +#line 12951 "" --all_1.iccount; -#line 12892 "" +#line 12952 "" } else { /* durq must be "-" */ -#line 12896 "" +#line 12956 "" ++all_1.iccount; -#line 12897 "" +#line 12957 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen) 1); -#line 12898 "" +#line 12958 "" --all_1.iccount; /* record the shift */ -#line 12902 "" +#line 12962 "" ++comarpshift_1.numarpshift; -#line 12903 "" +#line 12963 "" comarpshift_1.ivarpshift[comarpshift_1.numarpshift - 1] = commvl_1.ivx; -#line 12904 "" +#line 12964 "" comarpshift_1.iparpshift[comarpshift_1.numarpshift - 1] = all_1.nnl[commvl_1.ivx - 1]; -#line 12905 "" +#line 12965 "" comarpshift_1.arpshift[comarpshift_1.numarpshift - 1] = fnum; -#line 12906 "" +#line 12966 "" } -#line 12907 "" +#line 12967 "" } else if (i_indx("0123456789#-nx_", charq, (ftnlen)15, (ftnlen)1) > 0) { /* We have a figure. Must come AFTER the note it goes under */ -#line 12912 "" +#line 12972 "" ivf = 1; -#line 12913 "" +#line 12973 "" if (commvl_1.ivx > 1) { -#line 12914 "" +#line 12974 "" if (comfig_1.ivxfig2 == 0) { -#line 12915 "" +#line 12975 "" comfig_1.ivxfig2 = commvl_1.ivx; -#line 12916 "" +#line 12976 "" } else if (commvl_1.ivx != comfig_1.ivxfig2) { -#line 12917 "" - s_wsle(&io___766); -#line 12917 "" +#line 12977 "" + s_wsle(&io___768); +#line 12977 "" e_wsle(); -#line 12918 "" - s_wsle(&io___767); -#line 12918 "" +#line 12978 "" + s_wsle(&io___769); +#line 12978 "" do_lio(&c__9, &c__1, "Figures not allowed in >1 voice above "\ "first", (ftnlen)43); -#line 12918 "" +#line 12978 "" e_wsle(); -#line 12919 "" +#line 12979 "" s_stop("", (ftnlen)0); -#line 12920 "" +#line 12980 "" } -#line 12921 "" +#line 12981 "" ivf = 2; -#line 12922 "" +#line 12982 "" } -#line 12923 "" +#line 12983 "" nfig1 = comfig_1.nfigs[ivf - 1] + 1; -#line 12924 "" +#line 12984 "" getfig_(&comgrace_1.itoff[ivf + (nfig1 << 1) - 3], charq, lineq, & all_1.iccount, &all_1.isfig[ivf + (all_1.nnl[commvl_1.ivx - 1] << 1) - 3], &comfig_1.itfig[ivf + (nfig1 << 1) - 3], & @@ -30249,46 +30368,46 @@ L25: - 3], &comfig_1.ivvfig[ivf + (nfig1 << 1) - 3], & comfig_1.nfigs[ivf - 1], (ftnlen)1, (ftnlen)128, (ftnlen)10); /* * ivupfig(ivf,nfig1),nfigs(ivf)) */ -#line 12929 "" +#line 12989 "" } else if (*(unsigned char *)charq == '[') { /* Start forced beam. Record barno & time since start of inp. blk. Set signal */ -#line 12933 "" +#line 12993 "" ++comfb_1.nfb[commvl_1.ivx - 1]; -#line 12934 "" +#line 12994 "" comget_1.fbon = TRUE_; -#line 12935 "" +#line 12995 "" *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.nfb[ commvl_1.ivx - 1] * 24 - 25] = 'x'; -#line 12936 "" +#line 12996 "" comfb_1.t1fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] * 24 - 25] = (real) all_1.itsofar[commvl_1.ivx - 1]; -#line 12937 "" +#line 12997 "" nadj = 0; -#line 12938 "" +#line 12998 "" if (comfb_1.autofbon) { -#line 12939 "" +#line 12999 "" comfb_1.autofbon = FALSE_; -#line 12940 "" +#line 13000 "" } -#line 12941 "" +#line 13001 "" L17: -#line 12941 "" +#line 13001 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 12942 "" +#line 13002 "" if (i_indx("ulf", charq, (ftnlen)3, (ftnlen)1) > 0) { -#line 12943 "" +#line 13003 "" *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.nfb[ commvl_1.ivx - 1] * 24 - 25] = *(unsigned char *)charq; -#line 12944 "" +#line 13004 "" goto L17; -#line 12945 "" +#line 13005 "" } else if (*(unsigned char *)charq == 'j') { /* Continuing a jumped beam here */ -#line 12949 "" +#line 13009 "" all_1.irest[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] + 1) * 24 - 25],24); @@ -30296,457 +30415,457 @@ L17: /* Set flag to watch for END of this forced beam, so can set flag rest(30) on */ /* NEXT note as signal to start a new notes group there. */ -#line 12954 "" +#line 13014 "" combjmp_1.isbj2 = TRUE_; -#line 12955 "" +#line 13015 "" goto L17; -#line 12956 "" +#line 13016 "" } else if (*(unsigned char *)charq == 'h') { -#line 12957 "" +#line 13017 "" all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] + 1) * 24 - 25],2); -#line 12958 "" +#line 13018 "" goto L17; -#line 12959 "" +#line 13019 "" } else if (*(unsigned char *)charq == 'm') { /* Force multiplicity. Next input is digit */ -#line 12963 "" +#line 13023 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 12964 "" +#line 13024 "" all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] + 1) * 24 - 25],21); -#line 12965 "" +#line 13025 "" i__1 = *(unsigned char *)charq - 48; -#line 12965 "" +#line 13025 "" setbits_(&all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25], &c__3, &c__22, &i__1); -#line 12966 "" +#line 13026 "" goto L17; -#line 12967 "" +#line 13027 "" } else if (*(unsigned char *)charq == ':') { /* Start auto forced beam pattern */ -#line 12971 "" +#line 13031 "" comfb_1.autofbon = TRUE_; /* When forced later beam ends, check whether tautofv <=0; if so set it. */ -#line 12975 "" +#line 13035 "" comfb_1.tautofb = (real) (-all_1.itsofar[commvl_1.ivx - 1]); -#line 12976 "" +#line 13036 "" comfb_1.t1autofb = (real) all_1.itsofar[commvl_1.ivx - 1]; -#line 12977 "" +#line 13037 "" goto L17; -#line 12978 "" +#line 13038 "" } else if (*(unsigned char *)charq != ' ') { /* Must be '+/-' for height or slope shift */ -#line 12982 "" +#line 13042 "" ++nadj; /* nadj = 1,2, or 3 for normal start level, slope, or beam-thk start level. */ -#line 12986 "" +#line 13046 "" ++all_1.iccount; -#line 12987 "" +#line 13047 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen) 1); -#line 12988 "" +#line 13048 "" --all_1.iccount; -#line 12989 "" +#line 13049 "" iadj = i_nint(&fnum); -#line 12990 "" +#line 13050 "" if (*(unsigned char *)charq == '-') { -#line 12990 "" +#line 13050 "" iadj = -iadj; -#line 12990 "" +#line 13050 "" } -#line 12991 "" +#line 13051 "" if (nadj == 1) { /* This is a level shift. Note if 0 was entered, iadj = 30 */ -#line 12995 "" +#line 13055 "" i__1 = iadj + 30; -#line 12995 "" +#line 13055 "" setbits_(&all_1.ipl[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25], &c__6, &c__11, &i__1); -#line 12996 "" +#line 13056 "" } else if (nadj == 2) { /* Must be a slope shift */ -#line 13000 "" +#line 13060 "" i__1 = iadj + 30; -#line 13000 "" +#line 13060 "" setbits_(&all_1.ipl[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25], &c__6, &c__17, &i__1); -#line 13001 "" +#line 13061 "" } else { /* Beam-thk fine tune */ -#line 13005 "" +#line 13065 "" setbits_(&all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25], &c__2, &c__27, &iadj); -#line 13006 "" +#line 13066 "" } -#line 13007 "" +#line 13067 "" goto L17; -#line 13008 "" +#line 13068 "" } -#line 13009 "" +#line 13069 "" } else if (*(unsigned char *)charq == ']') { -#line 13010 "" +#line 13070 "" if (comfb_1.autofbon && comfb_1.tautofb < comtol_1.tol) { -#line 13011 "" +#line 13071 "" comfb_1.tautofb = all_1.itsofar[commvl_1.ivx - 1] + comfb_1.tautofb; -#line 13012 "" +#line 13072 "" } -#line 13013 "" +#line 13073 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 13014 "" +#line 13074 "" if (i_indx("j ", charq, (ftnlen)2, (ftnlen)1) > 0) { /* Since ']' comes AFTER note, itsofar has been updated. Set ending signal. */ -#line 13018 "" +#line 13078 "" comfb_1.t2fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] * 24 - 25] = (real) all_1.itsofar[commvl_1.ivx - 1]; -#line 13019 "" +#line 13079 "" comget_1.fbon = FALSE_; -#line 13020 "" +#line 13080 "" if (*(unsigned char *)charq == 'j') { -#line 13020 "" +#line 13080 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],23); -#line 13020 "" +#line 13080 "" } -#line 13022 "" +#line 13082 "" if (combjmp_1.isbj2) { /* This is the end of a fb segment of a jump beam. Set flag on NEXT note to */ /* force start of new notes group, provided this is not last note in bar. */ -#line 13027 "" +#line 13087 "" if (all_1.itsofar[commvl_1.ivx - 1] % all_1.lenbar != 0) { -#line 13027 "" +#line 13087 "" all_1.irest[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25],30) ; -#line 13027 "" +#line 13087 "" } -#line 13029 "" +#line 13089 "" combjmp_1.isbj2 = FALSE_; -#line 13030 "" +#line 13090 "" } -#line 13031 "" +#line 13091 "" } else if (*(unsigned char *)charq == '[') { /* Multiplicity down-up signal */ -#line 13035 "" +#line 13095 "" all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.islur[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],20); -#line 13036 "" +#line 13096 "" } else if (*(unsigned char *)charq == '-') { /* Set signals for gap in single-slope beam [...]-[...] */ -#line 13040 "" +#line 13100 "" all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25],20); -#line 13041 "" +#line 13101 "" all_1.nacc[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25] = bit_set(all_1.nacc[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] + 1) * 24 - 25],21); /* Next two characters must be "[ ". Skip over them. */ -#line 13045 "" +#line 13105 "" all_1.iccount += 2; -#line 13046 "" +#line 13106 "" } -#line 13047 "" +#line 13107 "" } else if (*(unsigned char *)charq == 'D') { -#line 13048 "" +#line 13108 "" getdyn_(&commvl_1.ivx, &all_1.nnl[commvl_1.ivx - 1], &all_1.irest[ commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25], & all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1], lineq, &all_1.iccount, (ftnlen)128); -#line 13050 "" +#line 13110 "" } else if (*(unsigned char *)charq == 'h') { /* Heading or height. For heading, only OK if at start of block */ /* Check whether at beginning of a block */ -#line 13055 "" +#line 13115 "" if (all_1.iv != 1 || all_1.nnl[0] != 0) { -#line 13056 "" - s_wsle(&io___770); -#line 13056 "" +#line 13116 "" + s_wsle(&io___772); +#line 13116 "" do_lio(&c__9, &c__1, "You entered \"h\" not at beginning of block" , (ftnlen)41); -#line 13056 "" +#line 13116 "" e_wsle(); -#line 13057 "" +#line 13117 "" stop1_(); -#line 13058 "" +#line 13118 "" } -#line 13059 "" +#line 13119 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13060 "" +#line 13120 "" comhead_1.ihdvrt = 0; -#line 13061 "" +#line 13121 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Vertical offset */ -#line 13065 "" +#line 13125 "" ++all_1.iccount; -#line 13066 "" +#line 13126 "" readnum_(lineq, &all_1.iccount, charq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 13067 "" +#line 13127 "" comhead_1.ihdvrt = fnum + .1f; -#line 13068 "" +#line 13128 "" if (*(unsigned char *)durq == '-') { -#line 13068 "" +#line 13128 "" comhead_1.ihdvrt = -comhead_1.ihdvrt; -#line 13068 "" +#line 13128 "" } -#line 13069 "" +#line 13129 "" *(unsigned char *)durq = *(unsigned char *)charq; -#line 13070 "" +#line 13130 "" } -#line 13071 "" +#line 13131 "" if (*(unsigned char *)durq != ' ') { /* Height symbol. Read past (until next blank) */ -#line 13075 "" +#line 13135 "" L3: -#line 13075 "" +#line 13135 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13076 "" +#line 13136 "" if (*(unsigned char *)durq != ' ') { -#line 13076 "" +#line 13136 "" goto L3; -#line 13076 "" +#line 13136 "" } -#line 13077 "" +#line 13137 "" } else { /* Set flag for header & read it in */ -#line 13081 "" +#line 13141 "" comhead_1.ihdht = 16; -#line 13082 "" +#line 13142 "" getbuf_(comhead_1.headrq, (ftnlen)80); -#line 13083 "" +#line 13143 "" all_1.iccount = 128; -#line 13084 "" +#line 13144 "" } -#line 13085 "" +#line 13145 "" } else if (*(unsigned char *)charq == 'L') { /* Linebreak, already handled in pmxa, but check for movement break */ -#line 13089 "" +#line 13149 "" ++all_1.iccount; -#line 13090 "" +#line 13150 "" readnum_(lineq, &all_1.iccount, durq, &fmovbrk, (ftnlen)128, (ftnlen) 1); -#line 13091 "" +#line 13151 "" if (*(unsigned char *)durq == 'P') { -#line 13092 "" +#line 13152 "" ++all_1.iccount; -#line 13093 "" +#line 13153 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen) 1); -#line 13094 "" +#line 13154 "" } -#line 13095 "" +#line 13155 "" if (*(unsigned char *)durq == 'M') { -#line 13096 "" +#line 13156 "" comget_1.movbrk = i_nint(&fmovbrk); -#line 13097 "" +#line 13157 "" comget_1.movgap = 0; -#line 13098 "" +#line 13158 "" comget_1.parmov = -1.f; -#line 13099 "" +#line 13159 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13100 "" +#line 13160 "" L31: -#line 13100 "" +#line 13160 "" if (*(unsigned char *)durq == '+') { /* Get vertical space (\internotes) */ -#line 13104 "" +#line 13164 "" ++all_1.iccount; -#line 13105 "" +#line 13165 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 13106 "" +#line 13166 "" comget_1.movgap = i_nint(&fnum); -#line 13107 "" +#line 13167 "" goto L31; -#line 13108 "" +#line 13168 "" } else if (*(unsigned char *)durq == 'i') { -#line 13109 "" +#line 13169 "" ++all_1.iccount; -#line 13110 "" +#line 13170 "" readnum_(lineq, &all_1.iccount, durq, &comget_1.parmov, ( ftnlen)128, (ftnlen)1); -#line 13111 "" +#line 13171 "" goto L31; -#line 13112 "" +#line 13172 "" } else if (*(unsigned char *)durq == 'c') { -#line 13113 "" +#line 13173 "" comnotes_1.nobar1 = TRUE_; -#line 13114 "" +#line 13174 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13115 "" +#line 13175 "" goto L31; -#line 13116 "" +#line 13176 "" } else if (*(unsigned char *)durq == 'r') { /* "rename" can be set on or off. */ -#line 13120 "" +#line 13180 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13121 "" +#line 13181 "" comnvi_1.rename = *(unsigned char *)durq == '+'; -#line 13122 "" +#line 13182 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13123 "" +#line 13183 "" goto L31; -#line 13124 "" +#line 13184 "" } else if (*(unsigned char *)durq == 'n') { /* Change # of voices. Input ninow, iiorig(1...ninow). Will use names, */ /* staves per inst. and clefs corr. to iiorig in original list of instruments. */ -#line 13129 "" +#line 13189 "" nvold = all_1.nv; -#line 13130 "" +#line 13190 "" all_1.nv = 0; -#line 13131 "" +#line 13191 "" comnvi_1.rename = TRUE_; -#line 13132 "" +#line 13192 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13133 "" +#line 13193 "" if (*(unsigned char *)durq == ':') { -#line 13134 "" +#line 13194 "" all_1.iccount += 2; -#line 13135 "" +#line 13195 "" i__1 = all_1.iccount - 2; -#line 13135 "" +#line 13195 "" ici__1.icierr = 0; -#line 13135 "" +#line 13195 "" ici__1.iciend = 0; -#line 13135 "" +#line 13195 "" ici__1.icirnum = 1; -#line 13135 "" +#line 13195 "" ici__1.icirlen = all_1.iccount - i__1; -#line 13135 "" +#line 13195 "" ici__1.iciunit = lineq + i__1; -#line 13135 "" +#line 13195 "" ici__1.icifmt = "(i2)"; -#line 13135 "" +#line 13195 "" s_rsfi(&ici__1); -#line 13135 "" +#line 13195 "" do_fio(&c__1, (char *)&comnotes_1.ninow, (ftnlen)sizeof( integer)); -#line 13135 "" +#line 13195 "" e_rsfi(); -#line 13136 "" +#line 13196 "" } else { -#line 13137 "" +#line 13197 "" comnotes_1.ninow = *(unsigned char *)durq - 48; -#line 13138 "" +#line 13198 "" } -#line 13139 "" +#line 13199 "" iiv = 0; -#line 13140 "" +#line 13200 "" i__1 = comnotes_1.ninow; -#line 13140 "" +#line 13200 "" for (iinow = 1; iinow <= i__1; ++iinow) { -#line 13141 "" +#line 13201 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, ( ftnlen)1); -#line 13142 "" +#line 13202 "" if (*(unsigned char *)durq == ':') { -#line 13143 "" +#line 13203 "" all_1.iccount += 2; -#line 13144 "" +#line 13204 "" i__2 = all_1.iccount - 2; -#line 13144 "" +#line 13204 "" ici__1.icierr = 0; -#line 13144 "" +#line 13204 "" ici__1.iciend = 0; -#line 13144 "" +#line 13204 "" ici__1.icirnum = 1; -#line 13144 "" +#line 13204 "" ici__1.icirlen = all_1.iccount - i__2; -#line 13144 "" +#line 13204 "" ici__1.iciunit = lineq + i__2; -#line 13144 "" +#line 13204 "" ici__1.icifmt = "(i2)"; -#line 13144 "" +#line 13204 "" s_rsfi(&ici__1); -#line 13144 "" +#line 13204 "" do_fio(&c__1, (char *)&comnvi_1.iiorig[iinow - 1], ( ftnlen)sizeof(integer)); -#line 13144 "" +#line 13204 "" e_rsfi(); -#line 13145 "" +#line 13205 "" } else { -#line 13146 "" +#line 13206 "" comnvi_1.iiorig[iinow - 1] = *(unsigned char *)durq - 48; -#line 13147 "" +#line 13207 "" } -#line 13148 "" +#line 13208 "" comnvi_1.nspern[iinow - 1] = comnvi_1.nsperi[ comnvi_1.iiorig[iinow - 1] - 1]; -#line 13149 "" +#line 13209 "" all_1.nv += comnvi_1.nspern[iinow - 1]; -#line 13150 "" +#line 13210 "" *(unsigned char *)&all_1.sepsymq[iiv + comnvi_1.nspern[ iinow - 1] - 1] = '&'; -#line 13151 "" +#line 13211 "" if (comnvi_1.nspern[iinow - 1] > 1) { -#line 13152 "" +#line 13212 "" i__2 = comnvi_1.nspern[iinow - 1] - 1; -#line 13152 "" +#line 13212 "" for (iis = 1; iis <= i__2; ++iis) { -#line 13153 "" +#line 13213 "" *(unsigned char *)&all_1.sepsymq[iiv + iis - 1] = '|'; -#line 13154 "" +#line 13214 "" /* L64: */ -#line 13154 "" +#line 13214 "" } -#line 13155 "" +#line 13215 "" } -#line 13156 "" +#line 13216 "" iiv += comnvi_1.nspern[iinow - 1]; -#line 13157 "" +#line 13217 "" /* L63: */ -#line 13157 "" +#line 13217 "" } /* 120818 Per Rainer's suggestion, defer changing \nbinstruments until issuing \newmovement */ @@ -30758,503 +30877,503 @@ L31: /* write(11,'(a8,i2,a2)')sq//'newnoi{',ninow,'}%' */ /* end if */ /* end if */ -#line 13168 "" +#line 13228 "" if (all_1.nv == 1 && nvold > 1) { -#line 13169 "" +#line 13229 "" if (comlast_1.islast) { -#line 13169 "" - s_wsfe(&io___775); +#line 13229 "" + s_wsfe(&io___777); /* Writing concatenation */ -#line 13169 "" +#line 13229 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13169 "" +#line 13229 "" i__5[1] = 11, a__2[1] = "nostartrule"; -#line 13169 "" +#line 13229 "" s_cat(ch__2, a__2, i__5, &c__2, (ftnlen)12); -#line 13169 "" +#line 13229 "" do_fio(&c__1, ch__2, (ftnlen)12); -#line 13169 "" +#line 13229 "" e_wsfe(); -#line 13169 "" +#line 13229 "" } -#line 13170 "" +#line 13230 "" } else if (all_1.nv > 1 && nvold == 1) { -#line 13171 "" +#line 13231 "" if (comlast_1.islast) { -#line 13171 "" - s_wsfe(&io___776); +#line 13231 "" + s_wsfe(&io___778); /* Writing concatenation */ -#line 13171 "" +#line 13231 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13171 "" +#line 13231 "" i__5[1] = 9, a__2[1] = "startrule"; -#line 13171 "" +#line 13231 "" s_cat(ch__3, a__2, i__5, &c__2, (ftnlen)10); -#line 13171 "" +#line 13231 "" do_fio(&c__1, ch__3, (ftnlen)10); -#line 13171 "" +#line 13231 "" e_wsfe(); -#line 13171 "" +#line 13231 "" } -#line 13172 "" +#line 13232 "" } -#line 13173 "" +#line 13233 "" iiv = 0; -#line 13174 "" +#line 13234 "" i__1 = comnotes_1.ninow; -#line 13174 "" +#line 13234 "" for (iinow = 1; iinow <= i__1; ++iinow) { -#line 13175 "" +#line 13235 "" i__2 = comnvi_1.nspern[iinow - 1]; -#line 13175 "" +#line 13235 "" for (iis = 1; iis <= i__2; ++iis) { -#line 13176 "" +#line 13236 "" ++iiv; /* May not really need to re-enter clefs, but it's easier to program since */ /* clef names are not saved but are needed in newvoice to set ncmidcc. */ -#line 13181 "" +#line 13241 "" getchar_(lineq, &all_1.iccount, comclefq_1.clefq + ( iiv - 1), (ftnlen)128, (ftnlen)1); -#line 13182 "" +#line 13242 "" newvoice_(&iiv, comclefq_1.clefq + (iiv - 1), &c_true, (ftnlen)1); -#line 13183 "" +#line 13243 "" if (comnvi_1.nspern[iinow - 1] == 1) { -#line 13184 "" +#line 13244 "" i__3 = numclef_(comclefq_1.clefq + (iiv - 1), ( ftnlen)1) + 48; -#line 13184 "" +#line 13244 "" chax_(ch__1, (ftnlen)1, &i__3); -#line 13184 "" +#line 13244 "" s_copy(hdlndq, ch__1, (ftnlen)59, (ftnlen)1); -#line 13185 "" +#line 13245 "" lclf = 1; -#line 13186 "" +#line 13246 "" } else if (iis == 1) { /* Writing concatenation */ -#line 13187 "" +#line 13247 "" i__5[0] = 1, a__2[0] = "{"; -#line 13187 "" +#line 13247 "" i__3 = numclef_(comclefq_1.clefq + (iiv - 1), ( ftnlen)1) + 48; -#line 13187 "" +#line 13247 "" chax_(ch__1, (ftnlen)1, &i__3); -#line 13187 "" +#line 13247 "" i__5[1] = 1, a__2[1] = ch__1; -#line 13187 "" +#line 13247 "" s_cat(hdlndq, a__2, i__5, &c__2, (ftnlen)59); -#line 13188 "" +#line 13248 "" lclf = 2; -#line 13189 "" +#line 13249 "" } else if (iis < comnvi_1.nspern[iinow - 1]) { /* Writing concatenation */ -#line 13190 "" +#line 13250 "" i__5[0] = lclf, a__2[0] = hdlndq; -#line 13190 "" +#line 13250 "" i__3 = numclef_(comclefq_1.clefq + (iiv - 1), ( ftnlen)1) + 48; -#line 13190 "" +#line 13250 "" chax_(ch__1, (ftnlen)1, &i__3); -#line 13190 "" +#line 13250 "" i__5[1] = 1, a__2[1] = ch__1; -#line 13190 "" +#line 13250 "" s_cat(hdlndq, a__2, i__5, &c__2, (ftnlen)59); -#line 13191 "" +#line 13251 "" ++lclf; -#line 13192 "" +#line 13252 "" } else { /* Writing concatenation */ -#line 13193 "" +#line 13253 "" i__6[0] = lclf, a__3[0] = hdlndq; -#line 13193 "" +#line 13253 "" i__3 = numclef_(comclefq_1.clefq + (iiv - 1), ( ftnlen)1) + 48; -#line 13193 "" +#line 13253 "" chax_(ch__1, (ftnlen)1, &i__3); -#line 13193 "" +#line 13253 "" i__6[1] = 1, a__3[1] = ch__1; -#line 13193 "" +#line 13253 "" i__6[2] = 1, a__3[2] = "}"; -#line 13193 "" +#line 13253 "" s_cat(hdlndq, a__3, i__6, &c__3, (ftnlen)59); -#line 13195 "" +#line 13255 "" lclf += 2; -#line 13196 "" +#line 13256 "" } -#line 13197 "" +#line 13257 "" /* L61: */ -#line 13197 "" +#line 13257 "" } /* setstaffs & setclef go by instrument, not voice */ -#line 13201 "" +#line 13261 "" if (comlast_1.islast) { -#line 13202 "" +#line 13262 "" if (iinow < 10) { -#line 13203 "" - s_wsfe(&io___779); +#line 13263 "" + s_wsfe(&io___781); /* Writing concatenation */ -#line 13203 "" +#line 13263 "" i__4[0] = 1, a__1[0] = all_1.sq; -#line 13203 "" +#line 13263 "" i__4[1] = 9, a__1[1] = "setstaffs"; -#line 13203 "" +#line 13263 "" i__2 = iinow + 48; -#line 13203 "" +#line 13263 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 13203 "" +#line 13263 "" i__4[2] = 1, a__1[2] = ch__1; -#line 13203 "" +#line 13263 "" i__3 = comnvi_1.nspern[iinow - 1] + 48; -#line 13203 "" +#line 13263 "" chax_(ch__5, (ftnlen)1, &i__3); -#line 13203 "" +#line 13263 "" i__4[3] = 1, a__1[3] = ch__5; -#line 13203 "" +#line 13263 "" i__4[4] = 1, a__1[4] = "%"; -#line 13203 "" +#line 13263 "" s_cat(ch__4, a__1, i__4, &c__5, (ftnlen)13); -#line 13203 "" +#line 13263 "" do_fio(&c__1, ch__4, (ftnlen)13); -#line 13203 "" +#line 13263 "" e_wsfe(); -#line 13205 "" - s_wsfe(&io___780); +#line 13265 "" + s_wsfe(&io___782); /* Writing concatenation */ -#line 13205 "" +#line 13265 "" i__4[0] = 1, a__1[0] = all_1.sq; -#line 13205 "" +#line 13265 "" i__4[1] = 7, a__1[1] = "setclef"; -#line 13205 "" +#line 13265 "" i__2 = iinow + 48; -#line 13205 "" +#line 13265 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 13205 "" +#line 13265 "" i__4[2] = 1, a__1[2] = ch__1; -#line 13205 "" +#line 13265 "" i__4[3] = lclf, a__1[3] = hdlndq; -#line 13205 "" +#line 13265 "" i__4[4] = 1, a__1[4] = "%"; -#line 13205 "" +#line 13265 "" s_cat(ch__6, a__1, i__4, &c__5, (ftnlen)69); -#line 13205 "" +#line 13265 "" do_fio(&c__1, ch__6, lclf + 10); -#line 13205 "" +#line 13265 "" e_wsfe(); -#line 13207 "" +#line 13267 "" if (comfig_1.fullsize[comnvi_1.iiorig[iinow - 1] - 1] > .9f) { -#line 13208 "" - s_wsfe(&io___781); +#line 13268 "" + s_wsfe(&io___783); /* Writing concatenation */ -#line 13208 "" +#line 13268 "" i__4[0] = 1, a__1[0] = all_1.sq; -#line 13208 "" +#line 13268 "" i__4[1] = 7, a__1[1] = "setsize"; -#line 13208 "" +#line 13268 "" i__2 = iinow + 48; -#line 13208 "" +#line 13268 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 13208 "" +#line 13268 "" i__4[2] = 1, a__1[2] = ch__1; -#line 13208 "" +#line 13268 "" i__4[3] = 1, a__1[3] = all_1.sq; -#line 13208 "" +#line 13268 "" i__4[4] = 12, a__1[4] = "normalvalue%"; -#line 13208 "" +#line 13268 "" s_cat(ch__7, a__1, i__4, &c__5, (ftnlen)22); -#line 13208 "" +#line 13268 "" do_fio(&c__1, ch__7, (ftnlen)22); -#line 13208 "" +#line 13268 "" e_wsfe(); /* 140526 Account for staff size specs when noinst changes. May be confusion */ /* here if more than one staff per instrument */ -#line 13214 "" +#line 13274 "" } else if (comfig_1.fullsize[comnvi_1.iiorig[ iinow - 1] - 1] > .7f) { -#line 13215 "" - s_wsfe(&io___782); +#line 13275 "" + s_wsfe(&io___784); /* Writing concatenation */ -#line 13215 "" +#line 13275 "" i__4[0] = 1, a__1[0] = all_1.sq; -#line 13215 "" +#line 13275 "" i__4[1] = 7, a__1[1] = "setsize"; -#line 13215 "" +#line 13275 "" i__2 = iinow + 48; -#line 13215 "" +#line 13275 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 13215 "" +#line 13275 "" i__4[2] = 1, a__1[2] = ch__1; -#line 13215 "" +#line 13275 "" i__4[3] = 1, a__1[3] = all_1.sq; -#line 13215 "" +#line 13275 "" i__4[4] = 11, a__1[4] = "smallvalue%"; -#line 13215 "" +#line 13275 "" s_cat(ch__8, a__1, i__4, &c__5, (ftnlen)21); -#line 13215 "" +#line 13275 "" do_fio(&c__1, ch__8, (ftnlen)21); -#line 13215 "" +#line 13275 "" e_wsfe(); -#line 13217 "" +#line 13277 "" } else { -#line 13218 "" - s_wsfe(&io___783); +#line 13278 "" + s_wsfe(&io___785); /* Writing concatenation */ -#line 13218 "" +#line 13278 "" i__4[0] = 1, a__1[0] = all_1.sq; -#line 13218 "" +#line 13278 "" i__4[1] = 7, a__1[1] = "setsize"; -#line 13218 "" +#line 13278 "" i__2 = iinow + 48; -#line 13218 "" +#line 13278 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 13218 "" +#line 13278 "" i__4[2] = 1, a__1[2] = ch__1; -#line 13218 "" +#line 13278 "" i__4[3] = 1, a__1[3] = all_1.sq; -#line 13218 "" +#line 13278 "" i__4[4] = 10, a__1[4] = "tinyvalue%"; -#line 13218 "" +#line 13278 "" s_cat(ch__9, a__1, i__4, &c__5, (ftnlen)20); -#line 13218 "" +#line 13278 "" do_fio(&c__1, ch__9, (ftnlen)20); -#line 13218 "" +#line 13278 "" e_wsfe(); -#line 13220 "" +#line 13280 "" } -#line 13221 "" +#line 13281 "" } else { -#line 13222 "" - s_wsfe(&io___784); +#line 13282 "" + s_wsfe(&io___786); /* Writing concatenation */ -#line 13222 "" +#line 13282 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13222 "" +#line 13282 "" i__5[1] = 10, a__2[1] = "setstaffs{"; -#line 13222 "" +#line 13282 "" s_cat(ch__10, a__2, i__5, &c__2, (ftnlen)11); -#line 13222 "" +#line 13282 "" do_fio(&c__1, ch__10, (ftnlen)11); -#line 13222 "" +#line 13282 "" do_fio(&c__1, (char *)&iinow, (ftnlen)sizeof( integer)); /* Writing concatenation */ -#line 13222 "" +#line 13282 "" i__6[0] = 1, a__3[0] = "}"; -#line 13222 "" +#line 13282 "" i__2 = comnvi_1.nspern[iinow - 1] + 48; -#line 13222 "" +#line 13282 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 13222 "" +#line 13282 "" i__6[1] = 1, a__3[1] = ch__1; -#line 13222 "" +#line 13282 "" i__6[2] = 1, a__3[2] = "%"; -#line 13222 "" +#line 13282 "" s_cat(ch__11, a__3, i__6, &c__3, (ftnlen)3); -#line 13222 "" +#line 13282 "" do_fio(&c__1, ch__11, (ftnlen)3); -#line 13222 "" +#line 13282 "" e_wsfe(); -#line 13224 "" - s_wsfe(&io___785); +#line 13284 "" + s_wsfe(&io___787); /* Writing concatenation */ -#line 13224 "" +#line 13284 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13224 "" +#line 13284 "" i__5[1] = 8, a__2[1] = "setclef{"; -#line 13224 "" +#line 13284 "" s_cat(ch__12, a__2, i__5, &c__2, (ftnlen)9); -#line 13224 "" +#line 13284 "" do_fio(&c__1, ch__12, (ftnlen)9); -#line 13224 "" +#line 13284 "" do_fio(&c__1, (char *)&iinow, (ftnlen)sizeof( integer)); /* Writing concatenation */ -#line 13224 "" +#line 13284 "" i__6[0] = 1, a__3[0] = "}"; -#line 13224 "" +#line 13284 "" i__6[1] = lclf, a__3[1] = hdlndq; -#line 13224 "" +#line 13284 "" i__6[2] = 1, a__3[2] = "%"; -#line 13224 "" +#line 13284 "" s_cat(ch__13, a__3, i__6, &c__3, (ftnlen)61); -#line 13224 "" +#line 13284 "" do_fio(&c__1, ch__13, lclf + 2); -#line 13224 "" +#line 13284 "" e_wsfe(); -#line 13226 "" +#line 13286 "" } -#line 13227 "" +#line 13287 "" } -#line 13228 "" +#line 13288 "" /* L60: */ -#line 13228 "" +#line 13288 "" } /* Loop back up, this may not be last option in M. Note flow out if durq=' ' */ -#line 13232 "" +#line 13292 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13233 "" +#line 13293 "" goto L31; -#line 13234 "" +#line 13294 "" } /* Write instrument names */ -#line 13238 "" +#line 13298 "" if (! comnvi_1.rename) { -#line 13239 "" +#line 13299 "" i__1 = comnotes_1.ninow; -#line 13239 "" +#line 13299 "" for (iinst = 1; iinst <= i__1; ++iinst) { -#line 13240 "" +#line 13300 "" if (comlast_1.islast) { -#line 13241 "" +#line 13301 "" if (iinst < 10) { -#line 13242 "" - s_wsfe(&io___787); +#line 13302 "" + s_wsfe(&io___789); /* Writing concatenation */ -#line 13242 "" +#line 13302 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13242 "" +#line 13302 "" i__5[1] = 7, a__2[1] = "setname"; -#line 13242 "" +#line 13302 "" s_cat(ch__14, a__2, i__5, &c__2, (ftnlen)8); -#line 13242 "" +#line 13302 "" do_fio(&c__1, ch__14, (ftnlen)8); -#line 13242 "" +#line 13302 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof( integer)); -#line 13242 "" +#line 13302 "" do_fio(&c__1, "{}%", (ftnlen)3); -#line 13242 "" +#line 13302 "" e_wsfe(); -#line 13243 "" +#line 13303 "" } else { -#line 13244 "" - s_wsfe(&io___788); +#line 13304 "" + s_wsfe(&io___790); /* Writing concatenation */ -#line 13244 "" +#line 13304 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13244 "" +#line 13304 "" i__5[1] = 8, a__2[1] = "setname{"; -#line 13244 "" +#line 13304 "" s_cat(ch__12, a__2, i__5, &c__2, (ftnlen)9); -#line 13244 "" +#line 13304 "" do_fio(&c__1, ch__12, (ftnlen)9); -#line 13244 "" +#line 13304 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof( integer)); -#line 13244 "" +#line 13304 "" do_fio(&c__1, "}{}%", (ftnlen)4); -#line 13244 "" +#line 13304 "" e_wsfe(); -#line 13245 "" +#line 13305 "" } -#line 13246 "" +#line 13306 "" } -#line 13247 "" +#line 13307 "" /* L62: */ -#line 13247 "" +#line 13307 "" } -#line 13248 "" +#line 13308 "" } else { -#line 13249 "" +#line 13309 "" i__1 = comnotes_1.ninow; -#line 13249 "" +#line 13309 "" for (iinst = 1; iinst <= i__1; ++iinst) { -#line 13250 "" +#line 13310 "" if (comlast_1.islast) { -#line 13251 "" +#line 13311 "" if (iinst < 10) { -#line 13252 "" - s_wsfe(&io___789); +#line 13312 "" + s_wsfe(&io___791); /* Writing concatenation */ -#line 13252 "" +#line 13312 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13252 "" +#line 13312 "" i__5[1] = 7, a__2[1] = "setname"; -#line 13252 "" +#line 13312 "" s_cat(ch__14, a__2, i__5, &c__2, (ftnlen)8); -#line 13252 "" +#line 13312 "" do_fio(&c__1, ch__14, (ftnlen)8); -#line 13252 "" +#line 13312 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof( integer)); /* Writing concatenation */ -#line 13252 "" +#line 13312 "" i__6[0] = 1, a__3[0] = "{"; -#line 13252 "" +#line 13312 "" i__6[1] = comtop_1.lnam[comnvi_1.iiorig[iinst - 1] - 1], a__3[1] = comtop_1.inameq + ( comnvi_1.iiorig[iinst - 1] - 1) * 79; -#line 13252 "" +#line 13312 "" i__6[2] = 2, a__3[2] = "}%"; -#line 13252 "" +#line 13312 "" s_cat(ch__15, a__3, i__6, &c__3, (ftnlen)82); -#line 13252 "" +#line 13312 "" do_fio(&c__1, ch__15, comtop_1.lnam[ comnvi_1.iiorig[iinst - 1] - 1] + 3); -#line 13252 "" +#line 13312 "" e_wsfe(); -#line 13254 "" +#line 13314 "" } else { -#line 13255 "" - s_wsfe(&io___790); +#line 13315 "" + s_wsfe(&io___792); /* Writing concatenation */ -#line 13255 "" +#line 13315 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13255 "" +#line 13315 "" i__5[1] = 8, a__2[1] = "setname{"; -#line 13255 "" +#line 13315 "" s_cat(ch__12, a__2, i__5, &c__2, (ftnlen)9); -#line 13255 "" +#line 13315 "" do_fio(&c__1, ch__12, (ftnlen)9); -#line 13255 "" +#line 13315 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof( integer)); /* Writing concatenation */ -#line 13255 "" +#line 13315 "" i__6[0] = 2, a__3[0] = "}{"; -#line 13255 "" +#line 13315 "" i__6[1] = comtop_1.lnam[comnvi_1.iiorig[iinst - 1] - 1], a__3[1] = comtop_1.inameq + ( comnvi_1.iiorig[iinst - 1] - 1) * 79; -#line 13255 "" +#line 13315 "" i__6[2] = 2, a__3[2] = "}%"; -#line 13255 "" +#line 13315 "" s_cat(ch__16, a__3, i__6, &c__3, (ftnlen)83); -#line 13255 "" +#line 13315 "" do_fio(&c__1, ch__16, comtop_1.lnam[ comnvi_1.iiorig[iinst - 1] - 1] + 4); -#line 13255 "" +#line 13315 "" e_wsfe(); -#line 13257 "" +#line 13317 "" } -#line 13258 "" +#line 13318 "" } -#line 13259 "" +#line 13319 "" /* L65: */ -#line 13259 "" +#line 13319 "" } -#line 13260 "" +#line 13320 "" comnvi_1.rename = FALSE_; -#line 13261 "" +#line 13321 "" } -#line 13262 "" +#line 13322 "" } -#line 13263 "" +#line 13323 "" } else if (*(unsigned char *)charq == '|') { /* End of bar symbol. Check about end of bar hardspace. */ -#line 13267 "" +#line 13327 "" if (bit_test(all_1.iornq[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 1],26)) { @@ -31262,67 +31381,67 @@ L31: /* list, store with shifts instead, set special bit. Need to repeat this code */ /* at '/'. */ -#line 13273 "" +#line 13333 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],18); -#line 13274 "" +#line 13334 "" ++comudsp_1.nudoff[commvl_1.ivx - 1]; -#line 13275 "" +#line 13335 "" comudsp_1.udoff[commvl_1.ivx + comudsp_1.nudoff[commvl_1.ivx - 1] * 24 - 25] = comudsp_1.udsp[comudsp_1.nudsp - 1]; -#line 13276 "" +#line 13336 "" --comudsp_1.nudsp; -#line 13277 "" +#line 13337 "" all_1.iornq[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 1] = bit_clear(all_1.iornq[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] + 1) * 24 - 1],26); -#line 13278 "" +#line 13338 "" } -#line 13279 "" +#line 13339 "" } else if (i_indx("wS", charq, (ftnlen)2, (ftnlen)1) > 0) { /* Width symbol or new nsyst. Read past (until blank) */ -#line 13283 "" +#line 13343 "" L4: -#line 13283 "" +#line 13343 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13284 "" +#line 13344 "" if (*(unsigned char *)durq != ' ') { -#line 13284 "" +#line 13344 "" goto L4; -#line 13284 "" +#line 13344 "" } -#line 13285 "" +#line 13345 "" } else if (*(unsigned char *)charq == 'l') { /* Lower string. Only OK if at start of block */ /* Check whether at beginning of a block */ -#line 13290 "" +#line 13350 "" if (all_1.iv != 1 || all_1.nnl[0] != 0) { -#line 13291 "" - s_wsle(&io___791); -#line 13291 "" +#line 13351 "" + s_wsle(&io___793); +#line 13351 "" do_lio(&c__9, &c__1, "You entered \"l\" not at beginning of block" , (ftnlen)41); -#line 13291 "" +#line 13351 "" e_wsle(); -#line 13292 "" +#line 13352 "" stop1_(); -#line 13293 "" +#line 13353 "" } /* Set flag for lower string & read it in */ -#line 13297 "" +#line 13357 "" comhead_1.lower = TRUE_; -#line 13298 "" +#line 13358 "" getbuf_(comhead_1.lowerq, (ftnlen)80); -#line 13299 "" +#line 13359 "" all_1.iccount = 128; -#line 13300 "" +#line 13360 "" } else if (*(unsigned char *)charq == 'm') { /* Meter change. Only allow at beginning of block. */ @@ -31331,572 +31450,572 @@ L4: /* Check whether at beginning of a block */ -#line 13308 "" +#line 13368 "" if (all_1.iv != 1 || all_1.nnl[0] != 0) { -#line 13309 "" - s_wsle(&io___792); -#line 13309 "" +#line 13369 "" + s_wsle(&io___794); +#line 13369 "" do_lio(&c__9, &c__1, "You entered \"m\" not at beginning of block" , (ftnlen)41); -#line 13309 "" +#line 13369 "" e_wsle(); -#line 13310 "" +#line 13370 "" stop1_(); -#line 13311 "" +#line 13371 "" } -#line 13312 "" +#line 13372 "" readmeter_(lineq, &all_1.iccount, &all_1.mtrnuml, &all_1.mtrdenl, ( ftnlen)128); -#line 13313 "" +#line 13373 "" readmeter_(lineq, &all_1.iccount, &all_1.mtrnmp, &all_1.mtrdnp, ( ftnlen)128); -#line 13314 "" +#line 13374 "" lenbeat = ifnodur_(&all_1.mtrdenl, "x", (ftnlen)1); -#line 13315 "" +#line 13375 "" if (all_1.mtrdenl == 2) { -#line 13315 "" +#line 13375 "" lenbeat = 16; -#line 13315 "" +#line 13375 "" } -#line 13316 "" +#line 13376 "" all_1.lenbar = all_1.mtrnuml * lenbeat; -#line 13317 "" +#line 13377 "" if (all_1.mtrdenl == 2) { -#line 13317 "" +#line 13377 "" all_1.lenbar <<= 1; -#line 13317 "" +#line 13377 "" } -#line 13318 "" +#line 13378 "" all_1.lenb1 = all_1.lenbar; -#line 13319 "" +#line 13379 "" all_1.lenb0 = 0; -#line 13320 "" +#line 13380 "" if (commidi_1.ismidi) { -#line 13320 "" +#line 13380 "" midievent_("m", &all_1.mtrnuml, &all_1.mtrdenl, (ftnlen)1); -#line 13320 "" +#line 13380 "" } -#line 13321 "" +#line 13381 "" } else if (*(unsigned char *)charq == 'C') { /* Clef change on next note. Set bits 11-15. Won't allow in 2nd line of music. */ -#line 13325 "" +#line 13385 "" if (all_1.nnl[all_1.iv - 1] > 0) { -#line 13325 "" +#line 13385 "" ++comcc_1.ncc[all_1.iv - 1]; -#line 13325 "" +#line 13385 "" } -#line 13326 "" +#line 13386 "" comcc_1.tcc[all_1.iv + comcc_1.ncc[all_1.iv - 1] * 24 - 25] = (real) all_1.itsofar[all_1.iv - 1]; -#line 13327 "" +#line 13387 "" isl = bit_set(all_1.islur[all_1.iv + (all_1.nnl[all_1.iv - 1] + 1) * 24 - 25],11); -#line 13328 "" +#line 13388 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); /* Store clef number, or 7 if clef number = 9 (French violin clef) */ /* Computing MIN */ -#line 13332 "" +#line 13392 "" i__1 = numclef_(durq, (ftnlen)1); -#line 13332 "" +#line 13392 "" isl |= min(i__1,7) << 12; -#line 13333 "" +#line 13393 "" comcc_1.ncmidcc[all_1.iv + comcc_1.ncc[all_1.iv - 1] * 24 - 25] = ncmidf_(durq, (ftnlen)1); -#line 13334 "" +#line 13394 "" if (*(unsigned char *)durq == '8') { -#line 13335 "" +#line 13395 "" all_1.ipl[all_1.iv + (all_1.nnl[all_1.iv - 1] + 1) * 24 - 25] = bit_set(all_1.ipl[all_1.iv + (all_1.nnl[all_1.iv - 1] + 1) * 24 - 25],2); -#line 13336 "" +#line 13396 "" cominsttrans_1.itransamt[cominsttrans_1.instno[all_1.iv - 1] - 1] = 7; -#line 13337 "" +#line 13397 "" } else { -#line 13338 "" +#line 13398 "" if (cominsttrans_1.itransamt[cominsttrans_1.instno[all_1.iv - 1] - 1] == 7) { -#line 13338 "" +#line 13398 "" cominsttrans_1.itransamt[cominsttrans_1.instno[all_1.iv - 1] - 1] = 0; -#line 13338 "" +#line 13398 "" } -#line 13339 "" +#line 13399 "" } /* Set marker on note with lowest voice # starting at same time. */ -#line 13343 "" +#line 13403 "" if (all_1.iv == 1) { -#line 13344 "" +#line 13404 "" isl = bit_set(isl,15); -#line 13345 "" +#line 13405 "" } else { -#line 13346 "" +#line 13406 "" i__1 = all_1.iv; -#line 13346 "" +#line 13406 "" for (iiv = 1; iiv <= i__1; ++iiv) { -#line 13347 "" +#line 13407 "" nnliiv = all_1.nnl[iiv - 1]; -#line 13348 "" +#line 13408 "" if (iiv == all_1.iv) { -#line 13348 "" +#line 13408 "" ++nnliiv; -#line 13348 "" +#line 13408 "" } -#line 13349 "" +#line 13409 "" itother = 0; -#line 13350 "" +#line 13410 "" i__2 = nnliiv; -#line 13350 "" +#line 13410 "" for (iip = 1; iip <= i__2; ++iip) { -#line 13351 "" +#line 13411 "" if (itother < all_1.itsofar[all_1.iv - 1]) { -#line 13352 "" +#line 13412 "" itother += all_1.nodur[iiv + iip * 24 - 25]; -#line 13353 "" +#line 13413 "" goto L14; -#line 13354 "" +#line 13414 "" } else if (itother == all_1.itsofar[all_1.iv - 1]) { -#line 13355 "" +#line 13415 "" all_1.islur[iiv + iip * 24 - 25] = bit_set( all_1.islur[iiv + iip * 24 - 25],15); -#line 13356 "" +#line 13416 "" goto L15; -#line 13357 "" +#line 13417 "" } -#line 13358 "" +#line 13418 "" L14: -#line 13358 "" +#line 13418 "" ; -#line 13358 "" +#line 13418 "" } -#line 13359 "" +#line 13419 "" /* L13: */ -#line 13359 "" +#line 13419 "" } -#line 13360 "" +#line 13420 "" L15: -#line 13361 "" +#line 13421 "" ; -#line 13361 "" +#line 13421 "" } /* Need 'or' since may have set bit 15 in the above loop */ -#line 13365 "" +#line 13425 "" all_1.islur[all_1.iv + (all_1.nnl[all_1.iv - 1] + 1) * 24 - 25] = isl | all_1.islur[all_1.iv + (all_1.nnl[all_1.iv - 1] + 1) * 24 - 25]; -#line 13366 "" +#line 13426 "" } else if (*(unsigned char *)charq == 'R') { /* Repeats. set bits 5, 6, and/or 8 of islur(1,ip+1) */ -#line 13370 "" +#line 13430 "" L10: -#line 13370 "" +#line 13430 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); /* Save designator in case it's a terminal Rr or Rd */ -#line 13374 "" +#line 13434 "" if (*(unsigned char *)durq == 'l') { -#line 13375 "" +#line 13435 "" all_1.islur[(all_1.nnl[0] + 1) * 24 - 24] = bit_set(all_1.islur[( all_1.nnl[0] + 1) * 24 - 24],5); -#line 13376 "" +#line 13436 "" goto L10; -#line 13377 "" +#line 13437 "" } else if (i_indx("rdDbz", durq, (ftnlen)5, (ftnlen)1) > 0) { -#line 13378 "" +#line 13438 "" if (*(unsigned char *)durq == 'r') { -#line 13379 "" +#line 13439 "" all_1.islur[(all_1.nnl[0] + 1) * 24 - 24] = bit_set( all_1.islur[(all_1.nnl[0] + 1) * 24 - 24],6); -#line 13380 "" +#line 13440 "" } else if (*(unsigned char *)durq == 'd') { -#line 13381 "" +#line 13441 "" all_1.islur[(all_1.nnl[0] + 1) * 24 - 24] = bit_set( all_1.islur[(all_1.nnl[0] + 1) * 24 - 24],8); -#line 13382 "" +#line 13442 "" } else if (*(unsigned char *)durq == 'D') { -#line 13383 "" +#line 13443 "" all_1.islur[(all_1.nnl[0] + 1) * 24 - 24] = bit_set( all_1.islur[(all_1.nnl[0] + 1) * 24 - 24],26); -#line 13384 "" +#line 13444 "" } else if (*(unsigned char *)durq == 'b') { -#line 13385 "" +#line 13445 "" all_1.islur[(all_1.nnl[0] + 1) * 24 - 24] = bit_set( all_1.islur[(all_1.nnl[0] + 1) * 24 - 24],25); -#line 13386 "" +#line 13446 "" } else if (*(unsigned char *)durq == 'z') { /* iornq(1,nnl(1)+1) = ibset(iornq(1,nnl(1)+1),29) */ -#line 13388 "" +#line 13448 "" all_1.ipl[(all_1.nnl[0] + 1) * 24 - 24] = bit_set(all_1.ipl[( all_1.nnl[0] + 1) * 24 - 24],0); -#line 13389 "" +#line 13449 "" } -#line 13390 "" +#line 13450 "" comget_1.rptprev = TRUE_; -#line 13391 "" +#line 13451 "" *(unsigned char *)comget_1.rptfq1 = *(unsigned char *)durq; -#line 13392 "" +#line 13452 "" goto L10; -#line 13393 "" +#line 13453 "" } -#line 13394 "" +#line 13454 "" } else if (*(unsigned char *)charq == 'V') { /* Ending */ -#line 13398 "" +#line 13458 "" nnnl = all_1.nnl[0] + 1; -#line 13399 "" +#line 13459 "" lvoltxt = 0; -#line 13400 "" +#line 13460 "" L11: -#line 13400 "" +#line 13460 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13401 "" +#line 13461 "" if (*(unsigned char *)durq == 'b' || *(unsigned char *)durq == 'x') { /* End Volta, set bit9, and bit10 on if 'b' (end w/ box) */ -#line 13405 "" +#line 13465 "" all_1.islur[nnnl * 24 - 24] = bit_set(all_1.islur[nnnl * 24 - 24], 9); -#line 13406 "" +#line 13466 "" if (*(unsigned char *)durq == 'b') { -#line 13406 "" +#line 13466 "" all_1.islur[nnnl * 24 - 24] = bit_set(all_1.islur[nnnl * 24 - 24],10); -#line 13406 "" +#line 13466 "" } -#line 13407 "" +#line 13467 "" goto L11; -#line 13408 "" +#line 13468 "" } else if (*(unsigned char *)durq != ' ') { /* Start volta; Get text */ -#line 13412 "" +#line 13472 "" if (lvoltxt == 0) { /* First character for text */ -#line 13416 "" +#line 13476 "" lvoltxt = 1; -#line 13417 "" +#line 13477 "" all_1.islur[nnnl * 24 - 24] = bit_set(all_1.islur[nnnl * 24 - 24],7); -#line 13418 "" +#line 13478 "" ++comgrace_1.nvolt; -#line 13419 "" +#line 13479 "" s_copy(comgrace_1.voltxtq + (comgrace_1.nvolt - 1) * 20, durq, (ftnlen)20, (ftnlen)1); -#line 13420 "" +#line 13480 "" } else { /* Writing concatenation */ -#line 13421 "" +#line 13481 "" i__5[0] = lvoltxt, a__2[0] = comgrace_1.voltxtq + ( comgrace_1.nvolt - 1) * 20; -#line 13421 "" +#line 13481 "" i__5[1] = 1, a__2[1] = durq; -#line 13421 "" +#line 13481 "" s_cat(comgrace_1.voltxtq + (comgrace_1.nvolt - 1) * 20, a__2, i__5, &c__2, (ftnlen)20); -#line 13422 "" +#line 13482 "" ++lvoltxt; -#line 13423 "" +#line 13483 "" } -#line 13424 "" +#line 13484 "" goto L11; -#line 13425 "" +#line 13485 "" } -#line 13426 "" +#line 13486 "" } else if (*(unsigned char *)charq == 'B') { -#line 13427 "" +#line 13487 "" combc_1.bcspec = ! combc_1.bcspec; -#line 13428 "" +#line 13488 "" } else if (*(unsigned char *)charq == 'P') { /* Page numbers. Print stuff right now. */ -#line 13432 "" +#line 13492 "" npg1 = 0; /* Will use ltopnam to signal whether there's a centered heading */ -#line 13436 "" +#line 13496 "" ltopnam = 0; -#line 13437 "" +#line 13497 "" ipg1r = 0; -#line 13438 "" +#line 13498 "" L16: -#line 13438 "" +#line 13498 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13439 "" +#line 13499 "" if (*(unsigned char *)durq >= 48 && *(unsigned char *)durq <= 57) { -#line 13440 "" +#line 13500 "" npg1 = npg1 * 10 + *(unsigned char *)durq - 48; -#line 13441 "" +#line 13501 "" goto L16; -#line 13442 "" +#line 13502 "" } else if (*(unsigned char *)durq == 'l') { -#line 13443 "" +#line 13503 "" if (npg1 == 0 || npg1 % 2 == 1) { -#line 13443 "" +#line 13503 "" ipg1r = 1; -#line 13443 "" +#line 13503 "" } -#line 13444 "" +#line 13504 "" goto L16; -#line 13445 "" +#line 13505 "" } else if (*(unsigned char *)durq == 'r') { -#line 13446 "" +#line 13506 "" if (npg1 > 0 && npg1 % 2 == 0) { -#line 13446 "" +#line 13506 "" ipg1r = 1; -#line 13446 "" +#line 13506 "" } -#line 13447 "" +#line 13507 "" goto L16; -#line 13448 "" +#line 13508 "" } else if (*(unsigned char *)durq == 'c') { /* Top-centered name. Assume this is last option. Read the name. */ /* May surround name in double quotes (to allow blanks). */ -#line 13453 "" +#line 13513 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13454 "" +#line 13514 "" if (*(unsigned char *)durq == ' ') { -#line 13455 "" +#line 13515 "" ltopnam = lenstr_(comtrans_1.cheadq, &c__60, (ftnlen)60); -#line 13456 "" +#line 13516 "" } else { -#line 13457 "" +#line 13517 "" namstrt = all_1.iccount; -#line 13458 "" +#line 13518 "" if (*(unsigned char *)durq == '"') { /* Using quote delimiters. */ -#line 13462 "" +#line 13522 "" quoted = TRUE_; -#line 13463 "" +#line 13523 "" ++namstrt; -#line 13464 "" +#line 13524 "" } else { -#line 13465 "" +#line 13525 "" quoted = FALSE_; -#line 13466 "" +#line 13526 "" } -#line 13467 "" +#line 13527 "" for (all_1.iccount = namstrt + 1; all_1.iccount <= 128; ++all_1.iccount) { -#line 13468 "" +#line 13528 "" if (quoted && *(unsigned char *)&lineq[all_1.iccount - 1] == '"' || ! quoted && *(unsigned char *)&lineq[ all_1.iccount - 1] == ' ') { -#line 13468 "" +#line 13528 "" goto L36; -#line 13468 "" +#line 13528 "" } /* On exit, iccount is OK, and name is in (namstrt:iccount-1) */ -#line 13474 "" +#line 13534 "" /* L35: */ -#line 13474 "" +#line 13534 "" } -#line 13475 "" - s_wsle(&io___801); -#line 13475 "" +#line 13535 "" + s_wsle(&io___803); +#line 13535 "" do_lio(&c__9, &c__1, "Awww, cmon, should not be here.", ( ftnlen)31); -#line 13475 "" +#line 13535 "" e_wsle(); -#line 13476 "" +#line 13536 "" stop1_(); -#line 13477 "" +#line 13537 "" L36: -#line 13478 "" +#line 13538 "" ltopnam = all_1.iccount - namstrt; -#line 13479 "" +#line 13539 "" s_copy(comtrans_1.cheadq, lineq + (namstrt - 1), (ftnlen)60, all_1.iccount - 1 - (namstrt - 1)); -#line 13480 "" +#line 13540 "" } -#line 13481 "" +#line 13541 "" } /* Done getting data, now assemble the command */ -#line 13485 "" +#line 13545 "" if (npg1 == 0) { -#line 13485 "" +#line 13545 "" npg1 = 1; -#line 13485 "" +#line 13545 "" } /* 2/23/03 Don't use \atnextline if on first page and only one system */ /* if (ipage.gt.1 .or. nsystp(1).gt.1) then */ /* Writing concatenation */ -#line 13490 "" +#line 13550 "" i__7[0] = 1, a__4[0] = all_1.sq; -#line 13490 "" +#line 13550 "" i__7[1] = 3, a__4[1] = "def"; -#line 13490 "" +#line 13550 "" i__7[2] = 1, a__4[2] = all_1.sq; -#line 13490 "" +#line 13550 "" i__7[3] = 11, a__4[3] = "atnextline{"; -#line 13490 "" +#line 13550 "" i__7[4] = 1, a__4[4] = all_1.sq; -#line 13490 "" +#line 13550 "" i__7[5] = 10, a__4[5] = "toppageno{"; -#line 13490 "" +#line 13550 "" s_cat(hdlndq, a__4, i__7, &c__6, (ftnlen)59); -#line 13491 "" +#line 13551 "" lhead = 27; /* else */ /* hdlndq = sq//'toppageno{' */ /* lhead = 11 */ /* end if */ -#line 13496 "" +#line 13556 "" if (npg1 < 10) { /* Note we are overwriting the last "{" */ -#line 13500 "" +#line 13560 "" ici__1.icierr = 0; -#line 13500 "" +#line 13560 "" ici__1.icirnum = 1; -#line 13500 "" +#line 13560 "" ici__1.icirlen = 1; -#line 13500 "" +#line 13560 "" ici__1.iciunit = hdlndq + (lhead - 1); -#line 13500 "" +#line 13560 "" ici__1.icifmt = "(i1)"; -#line 13500 "" +#line 13560 "" s_wsfi(&ici__1); -#line 13500 "" +#line 13560 "" do_fio(&c__1, (char *)&npg1, (ftnlen)sizeof(integer)); -#line 13500 "" +#line 13560 "" e_wsfi(); -#line 13501 "" +#line 13561 "" } else if (npg1 < 100) { -#line 13502 "" +#line 13562 "" lhead += 3; -#line 13503 "" +#line 13563 "" i__1 = lhead - 3; -#line 13503 "" +#line 13563 "" ici__1.icierr = 0; -#line 13503 "" +#line 13563 "" ici__1.icirnum = 1; -#line 13503 "" +#line 13563 "" ici__1.icirlen = lhead - i__1; -#line 13503 "" +#line 13563 "" ici__1.iciunit = hdlndq + i__1; -#line 13503 "" +#line 13563 "" ici__1.icifmt = "(i2,a1)"; -#line 13503 "" +#line 13563 "" s_wsfi(&ici__1); -#line 13503 "" +#line 13563 "" do_fio(&c__1, (char *)&npg1, (ftnlen)sizeof(integer)); -#line 13503 "" +#line 13563 "" do_fio(&c__1, "}", (ftnlen)1); -#line 13503 "" +#line 13563 "" e_wsfi(); -#line 13504 "" +#line 13564 "" } else { -#line 13505 "" +#line 13565 "" lhead += 4; -#line 13506 "" +#line 13566 "" i__1 = lhead - 4; -#line 13506 "" +#line 13566 "" ici__1.icierr = 0; -#line 13506 "" +#line 13566 "" ici__1.icirnum = 1; -#line 13506 "" +#line 13566 "" ici__1.icirlen = lhead - i__1; -#line 13506 "" +#line 13566 "" ici__1.iciunit = hdlndq + i__1; -#line 13506 "" +#line 13566 "" ici__1.icifmt = "(i3,a1)"; -#line 13506 "" +#line 13566 "" s_wsfi(&ici__1); -#line 13506 "" +#line 13566 "" do_fio(&c__1, (char *)&npg1, (ftnlen)sizeof(integer)); -#line 13506 "" +#line 13566 "" do_fio(&c__1, "}", (ftnlen)1); -#line 13506 "" +#line 13566 "" e_wsfi(); -#line 13507 "" +#line 13567 "" } /* Writing concatenation */ -#line 13508 "" +#line 13568 "" i__6[0] = lhead, a__3[0] = hdlndq; -#line 13508 "" +#line 13568 "" i__1 = ipg1r + 48; -#line 13508 "" +#line 13568 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 13508 "" +#line 13568 "" i__6[1] = 1, a__3[1] = ch__1; -#line 13508 "" +#line 13568 "" i__6[2] = 1, a__3[2] = "{"; -#line 13508 "" +#line 13568 "" s_cat(hdlndq, a__3, i__6, &c__3, (ftnlen)59); -#line 13509 "" +#line 13569 "" lhead += 2; /* if (ipage.gt.1 .or. nsystp(1).gt.1) then */ -#line 13511 "" +#line 13571 "" if (ltopnam == 0) { -#line 13512 "" +#line 13572 "" if (comlast_1.islast) { -#line 13512 "" - s_wsfe(&io___803); +#line 13572 "" + s_wsfe(&io___805); /* Writing concatenation */ -#line 13512 "" +#line 13572 "" i__5[0] = lhead, a__2[0] = hdlndq; -#line 13512 "" +#line 13572 "" i__5[1] = 3, a__2[1] = "}}%"; -#line 13512 "" +#line 13572 "" s_cat(ch__17, a__2, i__5, &c__2, (ftnlen)62); -#line 13512 "" +#line 13572 "" do_fio(&c__1, ch__17, lhead + 3); -#line 13512 "" +#line 13572 "" e_wsfe(); -#line 13512 "" +#line 13572 "" } -#line 13513 "" +#line 13573 "" } else { -#line 13514 "" +#line 13574 "" if (comlast_1.islast) { -#line 13514 "" - s_wsfe(&io___804); +#line 13574 "" + s_wsfe(&io___806); /* Writing concatenation */ -#line 13514 "" +#line 13574 "" i__6[0] = lhead, a__3[0] = hdlndq; -#line 13514 "" +#line 13574 "" i__6[1] = ltopnam, a__3[1] = comtrans_1.cheadq; -#line 13514 "" +#line 13574 "" i__6[2] = 3, a__3[2] = "}}%"; -#line 13514 "" +#line 13574 "" s_cat(ch__18, a__3, i__6, &c__3, (ftnlen)122); -#line 13514 "" +#line 13574 "" do_fio(&c__1, ch__18, lhead + ltopnam + 3); -#line 13514 "" +#line 13574 "" e_wsfe(); -#line 13514 "" +#line 13574 "" } -#line 13516 "" +#line 13576 "" } /* else */ /* if (ltopnam .eq. 0) then */ @@ -31906,831 +32025,831 @@ L36: /* * write(11,'(a)')hdlndq(1:lhead)//cheadq(1:ltopnam)//'}%' */ /* end if */ /* end if */ -#line 13525 "" +#line 13585 "" } else if (*(unsigned char *)charq == 'W') { /* Just eat the number that must follow, it was used in pmxa */ -#line 13529 "" +#line 13589 "" ++all_1.iccount; -#line 13530 "" +#line 13590 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 13531 "" +#line 13591 "" } else if (*(unsigned char *)charq == 'T') { -#line 13532 "" +#line 13592 "" comtitl_1.headlog = TRUE_; -#line 13533 "" +#line 13593 "" comtitl_1.inhead = 0; -#line 13534 "" +#line 13594 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13535 "" +#line 13595 "" if (*(unsigned char *)durq == 'i') { -#line 13536 "" +#line 13596 "" getbuf_(comtitl_1.instrq, (ftnlen)120); /* A kluge for parts from separate score file for later movements. */ -#line 13540 "" +#line 13600 "" if (*(unsigned char *)comtitl_1.instrq == ' ') { -#line 13540 "" +#line 13600 "" comtitl_1.headlog = FALSE_; -#line 13540 "" +#line 13600 "" } -#line 13541 "" +#line 13601 "" s_copy(comtrans_1.cheadq, comtitl_1.instrq, (ftnlen)60, (ftnlen) 60); -#line 13542 "" +#line 13602 "" } else if (*(unsigned char *)durq == 't') { -#line 13543 "" +#line 13603 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); /* Optionally can include extra vertical \internotes above inbothd */ -#line 13547 "" +#line 13607 "" if (i_indx("-+0123456789", durq, (ftnlen)12, (ftnlen)1) > 0) { -#line 13548 "" +#line 13608 "" ipm = 1; -#line 13549 "" +#line 13609 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Don't trust readnum to round this negative integer properly */ -#line 13553 "" +#line 13613 "" ++all_1.iccount; -#line 13554 "" +#line 13614 "" if (*(unsigned char *)durq == '-') { -#line 13554 "" +#line 13614 "" ipm = -1; -#line 13554 "" +#line 13614 "" } -#line 13555 "" +#line 13615 "" } -#line 13556 "" +#line 13616 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 13557 "" +#line 13617 "" comtitl_1.inhead = ipm * i_nint(&fnum); -#line 13558 "" +#line 13618 "" } -#line 13559 "" +#line 13619 "" getbuf_(comtitl_1.titleq, (ftnlen)120); -#line 13560 "" +#line 13620 "" } else { -#line 13561 "" +#line 13621 "" getbuf_(comtitl_1.compoq, (ftnlen)120); -#line 13562 "" +#line 13622 "" } -#line 13563 "" +#line 13623 "" comtitl_1.inhead += cominbot_1.inbothd; -#line 13564 "" +#line 13624 "" all_1.iccount = 128; -#line 13565 "" +#line 13625 "" } else if (*(unsigned char *)charq == 'A') { /* Accidental handling etc. */ -#line 13569 "" +#line 13629 "" L27: -#line 13569 "" +#line 13629 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13570 "" +#line 13630 "" if (*(unsigned char *)durq == 'r') { -#line 13571 "" +#line 13631 "" if (comlast_1.islast) { -#line 13572 "" +#line 13632 "" commidi_1.relacc = TRUE_; -#line 13573 "" - s_wsfe(&io___805); +#line 13633 "" + s_wsfe(&io___807); /* Writing concatenation */ -#line 13573 "" +#line 13633 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13573 "" +#line 13633 "" i__5[1] = 14, a__2[1] = "relativeaccid%"; -#line 13573 "" +#line 13633 "" s_cat(ch__19, a__2, i__5, &c__2, (ftnlen)15); -#line 13573 "" +#line 13633 "" do_fio(&c__1, ch__19, (ftnlen)15); -#line 13573 "" +#line 13633 "" e_wsfe(); -#line 13574 "" +#line 13634 "" } -#line 13575 "" +#line 13635 "" } else if (*(unsigned char *)durq == 's') { -#line 13576 "" +#line 13636 "" spfacs_1.bacfac = 1e6f; -#line 13577 "" +#line 13637 "" } else if (*(unsigned char *)durq == 'b') { -#line 13578 "" +#line 13638 "" if (comlast_1.islast) { -#line 13578 "" - s_wsfe(&io___806); +#line 13638 "" + s_wsfe(&io___808); /* Writing concatenation */ -#line 13578 "" +#line 13638 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13578 "" +#line 13638 "" i__5[1] = 9, a__2[1] = "bigaccid%"; -#line 13578 "" +#line 13638 "" s_cat(ch__3, a__2, i__5, &c__2, (ftnlen)10); -#line 13578 "" +#line 13638 "" do_fio(&c__1, ch__3, (ftnlen)10); -#line 13578 "" +#line 13638 "" e_wsfe(); -#line 13578 "" +#line 13638 "" } -#line 13579 "" +#line 13639 "" spfacs_1.accfac = spfacs_1.bacfac; -#line 13580 "" +#line 13640 "" } else if (*(unsigned char *)durq == 'a') { -#line 13581 "" +#line 13641 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13582 "" +#line 13642 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen) 1); -#line 13583 "" +#line 13643 "" --all_1.iccount; -#line 13584 "" +#line 13644 "" } else if (*(unsigned char *)durq == 'i') { -#line 13585 "" +#line 13645 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13586 "" +#line 13646 "" readnum_(lineq, &all_1.iccount, durq, &tintstf, (ftnlen)128, ( ftnlen)1); -#line 13587 "" +#line 13647 "" if (! all_1.firstgulp) { -#line 13587 "" +#line 13647 "" comget_1.fintstf = tintstf; -#line 13587 "" +#line 13647 "" } /* Local corrections for first page were handled by pmxa */ -#line 13591 "" +#line 13651 "" --all_1.iccount; -#line 13592 "" +#line 13652 "" } else if (*(unsigned char *)durq == 'I') { -#line 13593 "" +#line 13653 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13594 "" +#line 13654 "" readnum_(lineq, &all_1.iccount, durq, &comget_1.gintstf, (ftnlen) 128, (ftnlen)1); -#line 13595 "" +#line 13655 "" --all_1.iccount; -#line 13596 "" +#line 13656 "" } else if (*(unsigned char *)durq == 'd') { -#line 13597 "" +#line 13657 "" comarp_1.lowdot = TRUE_; -#line 13598 "" +#line 13658 "" } else if (*(unsigned char *)durq == 'o') { -#line 13600 "" +#line 13660 "" } else if (*(unsigned char *)durq == 'S') { /* 130324 */ /* do 50 iiv = 1 , nv */ -#line 13603 "" +#line 13663 "" i__1 = comkeys_2.noinst; -#line 13603 "" +#line 13663 "" for (iiv = 1; iiv <= i__1; ++iiv) { -#line 13604 "" +#line 13664 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13605 "" +#line 13665 "" if (i_indx("-s", durq, (ftnlen)2, (ftnlen)1) > 0) { -#line 13606 "" +#line 13666 "" comfig_1.fullsize[iiv - 1] = .8f; -#line 13607 "" +#line 13667 "" } else if (*(unsigned char *)durq == 't') { -#line 13608 "" +#line 13668 "" comfig_1.fullsize[iiv - 1] = .64f; -#line 13609 "" +#line 13669 "" } else { /* fullsize(ivx) = 1.0 */ -#line 13611 "" +#line 13671 "" comfig_1.fullsize[iiv - 1] = 1.f; -#line 13612 "" +#line 13672 "" } -#line 13613 "" +#line 13673 "" /* L50: */ -#line 13613 "" +#line 13673 "" } -#line 13614 "" +#line 13674 "" } else if (*(unsigned char *)durq == 'e') { /* Line-spacing equalization */ -#line 13618 "" +#line 13678 "" comget_1.equalize = TRUE_; /* The following redefinition of \parskip was put into pmx.tex in version 2.25 or so. */ /* But it causes problems with some older scores and when excerpts are combined */ /* with LaTeX. So as of 2.352 we write it here. */ -#line 13624 "" - s_wsfe(&io___808); +#line 13684 "" + s_wsfe(&io___810); /* Writing concatenation */ -#line 13624 "" +#line 13684 "" i__8[0] = 1, a__5[0] = all_1.sq; -#line 13624 "" +#line 13684 "" i__8[1] = 6, a__5[1] = "global"; -#line 13624 "" +#line 13684 "" i__8[2] = 1, a__5[2] = all_1.sq; -#line 13624 "" +#line 13684 "" i__8[3] = 19, a__5[3] = "parskip 0pt plus 12"; -#line 13624 "" +#line 13684 "" i__8[4] = 1, a__5[4] = all_1.sq; -#line 13624 "" +#line 13684 "" i__8[5] = 19, a__5[5] = "Interligne minus 99"; -#line 13624 "" +#line 13684 "" i__8[6] = 1, a__5[6] = all_1.sq; -#line 13624 "" +#line 13684 "" i__8[7] = 11, a__5[7] = "Interligne%"; -#line 13624 "" +#line 13684 "" s_cat(ch__20, a__5, i__8, &c__8, (ftnlen)59); -#line 13624 "" +#line 13684 "" do_fio(&c__1, ch__20, (ftnlen)59); -#line 13624 "" +#line 13684 "" e_wsfe(); -#line 13626 "" +#line 13686 "" s_copy(tempq, all_1.sepsymq, (ftnlen)24, (ftnlen)1); -#line 13627 "" +#line 13687 "" lentemp = 1; -#line 13628 "" +#line 13688 "" i__1 = all_1.nv - 1; -#line 13628 "" +#line 13688 "" for (iiv = 2; iiv <= i__1; ++iiv) { /* Writing concatenation */ -#line 13629 "" +#line 13689 "" i__5[0] = lentemp, a__2[0] = tempq; -#line 13629 "" +#line 13689 "" i__5[1] = 1, a__2[1] = all_1.sepsymq + (iiv - 1); -#line 13629 "" +#line 13689 "" s_cat(tempq, a__2, i__5, &c__2, (ftnlen)24); -#line 13630 "" +#line 13690 "" ++lentemp; -#line 13631 "" +#line 13691 "" /* L51: */ -#line 13631 "" +#line 13691 "" } -#line 13632 "" - s_wsfe(&io___811); +#line 13692 "" + s_wsfe(&io___813); /* Writing concatenation */ -#line 13632 "" +#line 13692 "" i__9[0] = 1, a__6[0] = all_1.sq; -#line 13632 "" +#line 13692 "" i__9[1] = 3, a__6[1] = "def"; -#line 13632 "" +#line 13692 "" i__9[2] = 1, a__6[2] = all_1.sq; -#line 13632 "" +#line 13692 "" i__9[3] = 8, a__6[3] = "upstrut{"; -#line 13632 "" +#line 13692 "" i__9[4] = 1, a__6[4] = all_1.sq; -#line 13632 "" +#line 13692 "" i__9[5] = 6, a__6[5] = "znotes"; -#line 13632 "" +#line 13692 "" i__9[6] = lentemp, a__6[6] = tempq; -#line 13632 "" +#line 13692 "" i__9[7] = 1, a__6[7] = all_1.sq; -#line 13632 "" +#line 13692 "" i__9[8] = 10, a__6[8] = "zcharnote{"; -#line 13632 "" +#line 13692 "" i__9[9] = 1, a__6[9] = all_1.sq; -#line 13632 "" +#line 13692 "" i__9[10] = 9, a__6[10] = "upamt}{~}"; -#line 13632 "" +#line 13692 "" i__9[11] = 1, a__6[11] = all_1.sq; -#line 13632 "" +#line 13692 "" i__9[12] = 4, a__6[12] = "en}%"; -#line 13632 "" +#line 13692 "" s_cat(ch__21, a__6, i__9, &c__13, (ftnlen)70); -#line 13632 "" +#line 13692 "" do_fio(&c__1, ch__21, lentemp + 46); -#line 13632 "" +#line 13692 "" e_wsfe(); -#line 13635 "" +#line 13695 "" } else if (*(unsigned char *)durq == 'v') { /* Toggle usevshrink */ -#line 13639 "" +#line 13699 "" comlast_1.usevshrink = ! comlast_1.usevshrink; -#line 13640 "" +#line 13700 "" } else if (*(unsigned char *)durq == 'p') { /* Postscript slurs. fontslur is already false (set in g1etnote) */ -#line 13644 "" +#line 13704 "" if (! comslur_1.wrotepsslurdefaults) { /* Set postscrirpt slur adjustment defaults */ -#line 13648 "" - s_wsfe(&io___812); +#line 13708 "" + s_wsfe(&io___814); /* Writing concatenation */ -#line 13648 "" +#line 13708 "" i__7[0] = 1, a__4[0] = all_1.sq; -#line 13648 "" +#line 13708 "" i__7[1] = 12, a__4[1] = "Nosluradjust"; -#line 13648 "" +#line 13708 "" i__7[2] = 1, a__4[2] = all_1.sq; -#line 13648 "" +#line 13708 "" i__7[3] = 11, a__4[3] = "Notieadjust"; -#line 13648 "" +#line 13708 "" i__7[4] = 1, a__4[4] = all_1.sq; -#line 13648 "" +#line 13708 "" i__7[5] = 10, a__4[5] = "nohalfties"; -#line 13648 "" +#line 13708 "" s_cat(ch__22, a__4, i__7, &c__6, (ftnlen)36); -#line 13648 "" +#line 13708 "" do_fio(&c__1, ch__22, (ftnlen)36); -#line 13648 "" +#line 13708 "" e_wsfe(); -#line 13650 "" +#line 13710 "" comslur_1.wrotepsslurdefaults = TRUE_; -#line 13651 "" +#line 13711 "" } -#line 13652 "" +#line 13712 "" L52: -#line 13653 "" +#line 13713 "" g1etchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); /* might be "+", "-", "h" or */ -#line 13654 "" +#line 13714 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Characters to change defaults for ps slurs */ -#line 13658 "" +#line 13718 "" g1etchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen) 1); /* charq will be "s,t,h,c */ -#line 13659 "" +#line 13719 "" if (*(unsigned char *)durq == '+') { -#line 13660 "" +#line 13720 "" if (*(unsigned char *)charq == 's') { -#line 13661 "" - s_wsfe(&io___813); +#line 13721 "" + s_wsfe(&io___815); /* Writing concatenation */ -#line 13661 "" +#line 13721 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13661 "" +#line 13721 "" i__5[1] = 10, a__2[1] = "Sluradjust"; -#line 13661 "" +#line 13721 "" s_cat(ch__10, a__2, i__5, &c__2, (ftnlen)11); -#line 13661 "" +#line 13721 "" do_fio(&c__1, ch__10, (ftnlen)11); -#line 13661 "" +#line 13721 "" e_wsfe(); -#line 13662 "" +#line 13722 "" } else if (*(unsigned char *)charq == 't') { -#line 13663 "" - s_wsfe(&io___814); +#line 13723 "" + s_wsfe(&io___816); /* Writing concatenation */ -#line 13663 "" +#line 13723 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13663 "" +#line 13723 "" i__5[1] = 9, a__2[1] = "Tieadjust"; -#line 13663 "" +#line 13723 "" s_cat(ch__3, a__2, i__5, &c__2, (ftnlen)10); -#line 13663 "" +#line 13723 "" do_fio(&c__1, ch__3, (ftnlen)10); -#line 13663 "" +#line 13723 "" e_wsfe(); -#line 13664 "" +#line 13724 "" } else if (*(unsigned char *)charq == 'h') { -#line 13665 "" - s_wsfe(&io___815); +#line 13725 "" + s_wsfe(&io___817); /* Writing concatenation */ -#line 13665 "" +#line 13725 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13665 "" +#line 13725 "" i__5[1] = 8, a__2[1] = "halfties"; -#line 13665 "" +#line 13725 "" s_cat(ch__12, a__2, i__5, &c__2, (ftnlen)9); -#line 13665 "" +#line 13725 "" do_fio(&c__1, ch__12, (ftnlen)9); -#line 13665 "" +#line 13725 "" e_wsfe(); -#line 13666 "" +#line 13726 "" } else { -#line 13667 "" +#line 13727 "" comslur_1.slurcurve += 1; -#line 13668 "" +#line 13728 "" if (comslur_1.slurcurve > 3.1f) { -#line 13669 "" +#line 13729 "" printl_("WARNING!", (ftnlen)8); -#line 13670 "" +#line 13730 "" printl_("Default slur curvature advanced past HH"\ ", resetting", (ftnlen)50); -#line 13672 "" +#line 13732 "" comslur_1.slurcurve = 3.f; -#line 13673 "" +#line 13733 "" } -#line 13674 "" +#line 13734 "" } -#line 13675 "" +#line 13735 "" } else { -#line 13676 "" +#line 13736 "" if (*(unsigned char *)charq == 's') { -#line 13677 "" - s_wsfe(&io___816); +#line 13737 "" + s_wsfe(&io___818); /* Writing concatenation */ -#line 13677 "" +#line 13737 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13677 "" +#line 13737 "" i__5[1] = 12, a__2[1] = "Nosluradjust"; -#line 13677 "" +#line 13737 "" s_cat(ch__4, a__2, i__5, &c__2, (ftnlen)13); -#line 13677 "" +#line 13737 "" do_fio(&c__1, ch__4, (ftnlen)13); -#line 13677 "" +#line 13737 "" e_wsfe(); -#line 13678 "" +#line 13738 "" } else if (*(unsigned char *)charq == 't') { -#line 13679 "" - s_wsfe(&io___817); +#line 13739 "" + s_wsfe(&io___819); /* Writing concatenation */ -#line 13679 "" +#line 13739 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13679 "" +#line 13739 "" i__5[1] = 11, a__2[1] = "Notieadjust"; -#line 13679 "" +#line 13739 "" s_cat(ch__2, a__2, i__5, &c__2, (ftnlen)12); -#line 13679 "" +#line 13739 "" do_fio(&c__1, ch__2, (ftnlen)12); -#line 13679 "" +#line 13739 "" e_wsfe(); -#line 13680 "" +#line 13740 "" } else if (*(unsigned char *)charq == 'h') { -#line 13681 "" - s_wsfe(&io___818); +#line 13741 "" + s_wsfe(&io___820); /* Writing concatenation */ -#line 13681 "" +#line 13741 "" i__5[0] = 1, a__2[0] = all_1.sq; -#line 13681 "" +#line 13741 "" i__5[1] = 10, a__2[1] = "nohalfties"; -#line 13681 "" +#line 13741 "" s_cat(ch__10, a__2, i__5, &c__2, (ftnlen)11); -#line 13681 "" +#line 13741 "" do_fio(&c__1, ch__10, (ftnlen)11); -#line 13681 "" +#line 13741 "" e_wsfe(); -#line 13682 "" +#line 13742 "" } else { -#line 13683 "" +#line 13743 "" comslur_1.slurcurve += -1; -#line 13684 "" +#line 13744 "" if (comslur_1.slurcurve < -1.1f) { -#line 13685 "" +#line 13745 "" printl_("WARNING!", (ftnlen)8); -#line 13686 "" +#line 13746 "" printl_("Default slur curvature decremented belo"\ "w f, resetting", (ftnlen)53); -#line 13688 "" +#line 13748 "" comslur_1.slurcurve = -1.f; -#line 13689 "" +#line 13749 "" } -#line 13690 "" +#line 13750 "" } -#line 13691 "" +#line 13751 "" } -#line 13692 "" +#line 13752 "" goto L52; /* Check for another set of default changes */ -#line 13693 "" +#line 13753 "" } else if (*(unsigned char *)durq == 'l') { /* Set optional linebreak ties */ -#line 13697 "" +#line 13757 "" comnotes_1.optlinebreakties = TRUE_; -#line 13698 "" +#line 13758 "" goto L52; -#line 13699 "" +#line 13759 "" } else if (*(unsigned char *)durq == 'h') { /* Set flag to write header special on every page */ -#line 13703 "" +#line 13763 "" comnotes_1.headerspecial = TRUE_; -#line 13704 "" +#line 13764 "" goto L52; -#line 13705 "" +#line 13765 "" } else { -#line 13706 "" +#line 13766 "" --all_1.iccount; -#line 13707 "" +#line 13767 "" } -#line 13708 "" +#line 13768 "" } else if (*(unsigned char *)durq == 'K') { /* Toggle keyboard rest placement flag */ -#line 13712 "" +#line 13772 "" comkbdrests_1.kbdrests = ! comkbdrests_1.kbdrests; -#line 13713 "" +#line 13773 "" } else if (*(unsigned char *)durq == 'c') { -#line 13714 "" +#line 13774 "" g1etchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); /* Just eat the input; it was used in pmxa */ -#line 13718 "" +#line 13778 "" goto L27; -#line 13719 "" +#line 13779 "" } -#line 13720 "" +#line 13780 "" if (i_indx("NR", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Override default part names for scor2prt, or normal include file. */ /* Just bypass rest of input line */ -#line 13725 "" +#line 13785 "" all_1.iccount = 128; -#line 13726 "" +#line 13786 "" } else if (*(unsigned char *)durq != ' ') { -#line 13727 "" +#line 13787 "" goto L27; -#line 13728 "" +#line 13788 "" } -#line 13729 "" +#line 13789 "" } else if (*(unsigned char *)charq == 'K') { -#line 13730 "" +#line 13790 "" L77: -#line 13731 "" +#line 13791 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13732 "" +#line 13792 "" if (*(unsigned char *)durq == 'n') { -#line 13733 "" +#line 13793 "" comignorenats_1.ignorenats = TRUE_; -#line 13734 "" +#line 13794 "" goto L77; -#line 13735 "" +#line 13795 "" } -#line 13736 "" +#line 13796 "" if (*(unsigned char *)durq != 'i') { /* Normal, full-score key change and/or transposition */ -#line 13740 "" +#line 13800 "" num1 = 44 - *(unsigned char *)durq; -#line 13741 "" +#line 13801 "" ++all_1.iccount; -#line 13742 "" +#line 13802 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen) 1); -#line 13743 "" +#line 13803 "" num1 *= i_nint(&fnum); /* On exit, durq='+','-'. But only need isig if after start, else done in pmxa */ -#line 13747 "" +#line 13807 "" ++all_1.iccount; -#line 13748 "" +#line 13808 "" readnum_(lineq, &all_1.iccount, charq, &fnum, (ftnlen)128, ( ftnlen)1); -#line 13749 "" +#line 13809 "" if (commidi_1.ismidi) { -#line 13750 "" +#line 13810 "" commidisig_1.midisig = i_nint(&fnum); -#line 13751 "" +#line 13811 "" if (*(unsigned char *)durq == '-') { -#line 13751 "" +#line 13811 "" commidisig_1.midisig = -commidisig_1.midisig; -#line 13751 "" +#line 13811 "" } /* 130317 */ -#line 13753 "" +#line 13813 "" commidisig_1.midisig += comtop_1.idsig; -#line 13754 "" +#line 13814 "" midievent_("k", &commidisig_1.midisig, &c__0, (ftnlen)1); -#line 13756 "" +#line 13816 "" } /* 70 continue */ -#line 13758 "" +#line 13818 "" if (num1 == 0) { /* Key change, not transposition. */ -#line 13762 "" +#line 13822 "" all_1.ipl[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25] = bit_set(all_1.ipl[commvl_1.ivx + ( all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25],28); -#line 13763 "" +#line 13823 "" comtop_1.lastisig = comtop_1.isig; -#line 13764 "" +#line 13824 "" comtop_1.isig = i_nint(&fnum); -#line 13765 "" +#line 13825 "" if (*(unsigned char *)durq == '-') { -#line 13765 "" +#line 13825 "" comtop_1.isig = -comtop_1.isig; -#line 13765 "" +#line 13825 "" } -#line 13766 "" +#line 13826 "" comtop_1.isig += comtop_1.idsig; -#line 13767 "" +#line 13827 "" if (commidi_1.ismidi) { -#line 13767 "" +#line 13827 "" midievent_("k", &comtop_1.isig, &c__0, (ftnlen)1); -#line 13767 "" +#line 13827 "" } -#line 13768 "" +#line 13828 "" } else { /* num1 .ne. 0, so transposition, so must be at beginning. isig came with K... */ /* but was passed to pmxb through pmxtex.dat. isig0 comes from setup data */ /* (signature before transposition). idsig must be added to future key changes. */ -#line 13774 "" +#line 13834 "" jv = 0; -#line 13775 "" +#line 13835 "" while(jv < 24) { -#line 13776 "" +#line 13836 "" ++jv; -#line 13777 "" +#line 13837 "" cominsttrans_1.itransamt[jv - 1] = num1; -#line 13778 "" +#line 13838 "" } -#line 13779 "" +#line 13839 "" comtop_1.idsig = comtop_1.isig - comtop_1.isig0; -#line 13780 "" +#line 13840 "" } -#line 13781 "" +#line 13841 "" } else { /* Instrument specific transposition. */ -#line 13785 "" +#line 13845 "" getitransinfo_(&c_false, &combibarcnt_1.ibarcnt, lineq, & all_1.iccount, &ibaroff, &all_1.nbars, &comkeys_2.noinst, (ftnlen)128); /* The sig parameters will have been set 1st time but that's OK */ -#line 13790 "" +#line 13850 "" } -#line 13791 "" +#line 13851 "" } else if (*(unsigned char *)charq == '/') { -#line 13792 "" +#line 13852 "" if (bit_test(all_1.iornq[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 1],26)) { /* There was a hardspace followed by end of block. Remove it from the hardspace */ /* list, store with shifts instead, set special bit. This code also at '|' */ -#line 13797 "" +#line 13857 "" all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = bit_set(all_1.irest[commvl_1.ivx + all_1.nnl[ commvl_1.ivx - 1] * 24 - 25],18); -#line 13798 "" +#line 13858 "" ++comudsp_1.nudoff[commvl_1.ivx - 1]; -#line 13799 "" +#line 13859 "" comudsp_1.udoff[commvl_1.ivx + comudsp_1.nudoff[commvl_1.ivx - 1] * 24 - 25] = comudsp_1.udsp[comudsp_1.nudsp - 1]; -#line 13800 "" +#line 13860 "" --comudsp_1.nudsp; -#line 13801 "" +#line 13861 "" all_1.iornq[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 1] = bit_clear(all_1.iornq[commvl_1.ivx + (all_1.nnl[ commvl_1.ivx - 1] + 1) * 24 - 1],26); -#line 13802 "" +#line 13862 "" } -#line 13803 "" +#line 13863 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); /* Save ending note level: */ -#line 13807 "" +#line 13867 "" if (commvl_1.ivx <= all_1.nv) { /* This is the first line of music on this staff. If previous block had only 1 */ /* voice, save last pitch from line 1 of prev. block to line 2, in case a */ /* 2nd line is started just below */ -#line 13813 "" +#line 13873 "" if (! comnotes_1.was2[all_1.iv - 1]) { -#line 13813 "" +#line 13873 "" comnotes_1.ndlev[all_1.iv + 23] = comnotes_1.ndlev[all_1.iv - 1]; -#line 13813 "" +#line 13873 "" } -#line 13814 "" +#line 13874 "" comnotes_1.was2[all_1.iv - 1] = FALSE_; -#line 13815 "" +#line 13875 "" comnotes_1.ndlev[all_1.iv - 1] = comnotes_1.lastlev; -#line 13816 "" +#line 13876 "" } else { /* This is the 2nd line of music on this staff. */ -#line 13820 "" +#line 13880 "" comnotes_1.was2[all_1.iv - 1] = TRUE_; -#line 13821 "" +#line 13881 "" comnotes_1.ndlev[all_1.iv + 23] = comnotes_1.lastlev; -#line 13822 "" +#line 13882 "" } -#line 13823 "" +#line 13883 "" if (*(unsigned char *)durq == ' ' && all_1.iv == all_1.nv) { /* End of input block */ -#line 13827 "" +#line 13887 "" *loop = FALSE_; -#line 13828 "" +#line 13888 "" } else { /* Start a new line of music */ -#line 13832 "" +#line 13892 "" if (all_1.lenb0 != 0 && all_1.firstgulp) { -#line 13832 "" +#line 13892 "" all_1.lenbar = all_1.lenb0; -#line 13832 "" +#line 13892 "" } -#line 13833 "" +#line 13893 "" all_1.nbars = 0; -#line 13834 "" +#line 13894 "" if (*(unsigned char *)durq == ' ') { /* New line of music is on next staff */ -#line 13838 "" +#line 13898 "" ++all_1.iv; -#line 13839 "" +#line 13899 "" commvl_1.ivx = all_1.iv; -#line 13840 "" +#line 13900 "" } else { /* durq must be 2nd '/'. New line of music is on same staff. Set up for it */ -#line 13844 "" +#line 13904 "" commvl_1.ivx = all_1.nv + 1; -#line 13845 "" +#line 13905 "" i__1 = all_1.nv; -#line 13845 "" +#line 13905 "" for (iiv = 1; iiv <= i__1; ++iiv) { -#line 13846 "" +#line 13906 "" if (commvl_1.nvmx[iiv - 1] == 2) { -#line 13846 "" +#line 13906 "" ++commvl_1.ivx; -#line 13846 "" +#line 13906 "" } -#line 13847 "" +#line 13907 "" /* L23: */ -#line 13847 "" +#line 13907 "" } -#line 13848 "" +#line 13908 "" commvl_1.nvmx[all_1.iv - 1] = 2; -#line 13849 "" +#line 13909 "" commvl_1.ivmx[all_1.iv + 23] = commvl_1.ivx; -#line 13850 "" +#line 13910 "" all_1.itsofar[commvl_1.ivx - 1] = 0; -#line 13851 "" +#line 13911 "" all_1.nnl[commvl_1.ivx - 1] = 0; -#line 13852 "" +#line 13912 "" comfb_1.nfb[commvl_1.ivx - 1] = 0; -#line 13853 "" +#line 13913 "" comudsp_1.nudoff[commvl_1.ivx - 1] = 0; -#line 13854 "" +#line 13914 "" comcc_1.ndotmv[commvl_1.ivx - 1] = 0; -#line 13855 "" +#line 13915 "" for (j = 1; j <= 200; ++j) { -#line 13856 "" +#line 13916 "" all_1.irest[commvl_1.ivx + j * 24 - 25] = 0; -#line 13857 "" +#line 13917 "" all_1.islur[commvl_1.ivx + j * 24 - 25] = 0; -#line 13858 "" +#line 13918 "" all_1.nacc[commvl_1.ivx + j * 24 - 25] = 0; -#line 13859 "" +#line 13919 "" all_1.iornq[commvl_1.ivx + j * 24 - 1] = 0; -#line 13860 "" +#line 13920 "" all_1.ipl[commvl_1.ivx + j * 24 - 25] = 0; -#line 13861 "" +#line 13921 "" all_1.mult[commvl_1.ivx + j * 24 - 25] = 0; -#line 13862 "" +#line 13922 "" /* L24: */ -#line 13862 "" +#line 13922 "" } /* Go back and lower the rests in voice "a" that don't have over-ridden heights */ -#line 13866 "" +#line 13926 "" i__1 = all_1.nnl[all_1.iv - 1]; -#line 13866 "" +#line 13926 "" for (j = 1; j <= i__1; ++j) { -#line 13867 "" +#line 13927 "" if (bit_test(all_1.irest[all_1.iv + j * 24 - 25],0) && all_1.nolev[all_1.iv + j * 24 - 25] == 0) { -#line 13867 "" +#line 13927 "" all_1.nolev[all_1.iv + j * 24 - 25] = -4; -#line 13867 "" +#line 13927 "" } -#line 13869 "" +#line 13929 "" /* L26: */ -#line 13869 "" +#line 13929 "" } -#line 13870 "" +#line 13930 "" } -#line 13871 "" +#line 13931 "" } -#line 13872 "" +#line 13932 "" all_1.iccount = 128; -#line 13873 "" +#line 13933 "" } else if (*(unsigned char *)charq == 'X') { /* 3rd arg is only for termination of group shifts. Use "max" to avoid zero index, */ @@ -32738,9 +32857,9 @@ L77: /* keep group shifts for crossing block boundaries. */ /* Computing MAX */ -#line 13879 "" +#line 13939 "" i__1 = 1, i__2 = all_1.nnl[commvl_1.ivx - 1]; -#line 13879 "" +#line 13939 "" getx_(lineq, &all_1.iccount, &all_1.irest[commvl_1.ivx + max(i__1, i__2) * 24 - 25], &comnotes_1.shifton, &comask_1.wheadpt, & all_1.iornq[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1] + 1) * @@ -32748,140 +32867,140 @@ L77: all_1.nnl[commvl_1.ivx - 1] + 1) * 24 - 25], &all_1.itsofar[ commvl_1.ivx - 1], &c__0, &c__0, &c__0, " ", &ndoub, (ftnlen) 128, (ftnlen)1); -#line 13882 "" +#line 13942 "" } else if (*(unsigned char *)charq == 'I') { /* Midi controls. */ /* call getmidi(nv,lineq,iccount,ibarcnt,ibaroff,nbars,lenbar, */ -#line 13887 "" +#line 13947 "" getmidi_(&comkeys_2.noinst, lineq, &all_1.iccount, & combibarcnt_1.ibarcnt, &ibaroff, &all_1.nbars, &all_1.lenbar, &all_1.mtrdenl, &c_false, (ftnlen)128); -#line 13889 "" +#line 13949 "" } else if (*(unsigned char *)charq == 'M') { /* Macro action */ -#line 13893 "" +#line 13953 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 13894 "" +#line 13954 "" if (i_indx("RS", charq, (ftnlen)2, (ftnlen)1) > 0) { /* Record or save a macro. Get the number of the macro. */ -#line 13898 "" +#line 13958 "" getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13899 "" +#line 13959 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen) 1); -#line 13900 "" +#line 13960 "" commac_1.macnum = i_nint(&fnum); -#line 13901 "" +#line 13961 "" commac_1.macuse = bit_set(commac_1.macuse,commac_1.macnum); -#line 13902 "" +#line 13962 "" if (*(unsigned char *)charq == 'R') { -#line 13903 "" +#line 13963 "" mrec1_(lineq, &all_1.iccount, &ndxm, (ftnlen)128); -#line 13904 "" +#line 13964 "" } else { /* Save (Record but don't activate) */ -#line 13908 "" +#line 13968 "" L5: -#line 13908 "" +#line 13968 "" mrec1_(lineq, &all_1.iccount, &ndxm, (ftnlen)128); -#line 13909 "" +#line 13969 "" if (commac_1.mrecord) { -#line 13910 "" +#line 13970 "" getbuf_(lineq, (ftnlen)128); -#line 13911 "" +#line 13971 "" all_1.iccount = 0; -#line 13912 "" +#line 13972 "" goto L5; -#line 13913 "" +#line 13973 "" } -#line 13914 "" +#line 13974 "" all_1.iccount = all_1.iccount + ndxm + 1; -#line 13915 "" +#line 13975 "" } -#line 13916 "" +#line 13976 "" } else if (*(unsigned char *)charq == 'P') { /* Playback the macro */ -#line 13920 "" +#line 13980 "" getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1); -#line 13921 "" +#line 13981 "" readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen) 1); -#line 13922 "" +#line 13982 "" commac_1.macnum = i_nint(&fnum); -#line 13923 "" +#line 13983 "" commac_1.icchold = all_1.iccount; -#line 13924 "" +#line 13984 "" s_copy(commac_1.lnholdq, lineq, (ftnlen)128, (ftnlen)128); -#line 13925 "" +#line 13985 "" all_1.iccount = 128; -#line 13926 "" +#line 13986 "" c1ommac_1.ilmac = c1ommac_1.il1mac[commac_1.macnum - 1]; -#line 13927 "" +#line 13987 "" commac_1.mplay = TRUE_; -#line 13928 "" +#line 13988 "" } -#line 13929 "" +#line 13989 "" } else if (i_indx(",.", charq, (ftnlen)2, (ftnlen)1) > 0) { /* Continued rhythmic shortcut */ -#line 13933 "" +#line 13993 "" idotform = i_indx(". ,", charq, (ftnlen)3, (ftnlen)1); -#line 13934 "" +#line 13994 "" if (idotform == 1) { /* Check for start of forced beam on 2nd member of dotform=1 shortcut */ -#line 13938 "" +#line 13998 "" if (comget_1.fbon) { -#line 13939 "" +#line 13999 "" if (comfb_1.t1fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] * 24 - 25] == (real) all_1.itsofar[commvl_1.ivx - 1]) { -#line 13939 "" +#line 13999 "" comfb_1.t1fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] * 24 - 25] += all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] / 2; -#line 13939 "" +#line 13999 "" } -#line 13942 "" +#line 14002 "" } /* Change duration of prior note */ -#line 13946 "" +#line 14006 "" all_1.itsofar[commvl_1.ivx - 1] -= all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25]; -#line 13947 "" +#line 14007 "" all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] = all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25] * 3 / 2; -#line 13948 "" +#line 14008 "" all_1.itsofar[commvl_1.ivx - 1] += all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25]; -#line 13949 "" +#line 14009 "" } -#line 13950 "" +#line 14010 "" ++idotform; -#line 13951 "" +#line 14011 "" numnum = 1; -#line 13952 "" +#line 14012 "" cdot = TRUE_; -#line 13953 "" +#line 14013 "" goto L1; -#line 13954 "" +#line 14014 "" } -#line 13955 "" +#line 14015 "" return 0; } /* getnote_ */ @@ -32916,7 +33035,7 @@ L5: static real xofforn; /* Fortran I/O blocks */ - static cilist io___830 = { 0, 6, 0, 0, 0 }; + static cilist io___832 = { 0, 6, 0, 0, 0 }; @@ -32930,9 +33049,9 @@ L5: /* Bits 0-13: (stmgx+Tupf._), 14: Down fermata, was F, 15: Trill w/o "tr", was U */ /* 16-18 Editorial sharp, flat, natural "oes,f,n"; 19-20: >^, 21 ? for ed. accid. */ -#line 13979 "" +#line 14039 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 13980 "" +#line 14040 "" if (i_indx("bc", charq, (ftnlen)2, (ftnlen)1) > 0) { /* caesura or breath, handle specially and exit. Set up data in ibcdata(1...nbc) */ @@ -32942,117 +33061,117 @@ L5: /* bit 27 = 0 if caesura, 1 if breath */ /* bit 28: 5th bit of ivx */ -#line 13989 "" +#line 14049 "" *iornq = bit_set(*iornq,28); -#line 13990 "" +#line 14050 "" ++comcb_1.nbc; /* ibcdata(nbc) = ivx+16*ip */ -#line 13992 "" +#line 14052 "" comcb_1.ibcdata[comcb_1.nbc - 1] = *ivx % 16 + (*ip << 4); -#line 13993 "" +#line 14053 "" if (*ivx >= 16) { -#line 13993 "" +#line 14053 "" comcb_1.ibcdata[comcb_1.nbc - 1] = bit_set(comcb_1.ibcdata[ comcb_1.nbc - 1],28); -#line 13993 "" +#line 14053 "" } -#line 13994 "" +#line 14054 "" if (*(unsigned char *)charq == 'b') { -#line 13994 "" +#line 14054 "" comcb_1.ibcdata[comcb_1.nbc - 1] = bit_set(comcb_1.ibcdata[ comcb_1.nbc - 1],27); -#line 13994 "" +#line 14054 "" } -#line 13995 "" +#line 14055 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 13996 "" +#line 14056 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* We have a vertical shift, get it */ -#line 14000 "" +#line 14060 "" ++(*iccount); -#line 14001 "" +#line 14061 "" readnum_(lineq, iccount, charq, &fnum, (ftnlen)128, (ftnlen)1); -#line 14002 "" +#line 14062 "" if (*(unsigned char *)durq == '-') { -#line 14002 "" +#line 14062 "" fnum = -fnum; -#line 14002 "" +#line 14062 "" } -#line 14003 "" +#line 14063 "" r__1 = fnum + 32; -#line 14003 "" +#line 14063 "" i__1 = i_nint(&r__1); -#line 14003 "" +#line 14063 "" setbits_(&comcb_1.ibcdata[comcb_1.nbc - 1], &c__6, &c__13, &i__1); -#line 14004 "" +#line 14064 "" if (i_indx("+-", charq, (ftnlen)2, (ftnlen)1) > 0) { /* Horizontal shift, get it */ -#line 14008 "" +#line 14068 "" ++(*iccount); -#line 14009 "" +#line 14069 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 14010 "" +#line 14070 "" if (*(unsigned char *)charq == '-') { -#line 14010 "" +#line 14070 "" fnum = -fnum; -#line 14010 "" +#line 14070 "" } -#line 14011 "" +#line 14071 "" r__1 = fnum * 10; -#line 14011 "" +#line 14071 "" i__1 = i_nint(&r__1) + 128; -#line 14011 "" +#line 14071 "" setbits_(&comcb_1.ibcdata[comcb_1.nbc - 1], &c__8, &c__19, & i__1); -#line 14012 "" +#line 14072 "" } -#line 14013 "" +#line 14073 "" } -#line 14014 "" +#line 14074 "" return 0; -#line 14015 "" +#line 14075 "" } /* Set signal on main note that some note at this time has ornament. ONLY used */ /* in beamstrt to activate further tests for whether ihornb is needed. */ -#line 14020 "" +#line 14080 "" *iornq = bit_set(*iornq,23); /* Isolate 21 bits defining exisiting ornaments */ -#line 14024 "" +#line 14084 "" if (*notcrd) { /* iorni = iand(4194303,iornq) */ /* iorni = iand(541065215,iornq) */ -#line 14027 "" +#line 14087 "" iorni = 1614807039 & *iornq; -#line 14028 "" +#line 14088 "" } else { -#line 14029 "" +#line 14089 "" iorni = 4194303 & comtrill_1.icrdorn[comtrill_1.ncrd - 1]; -#line 14030 "" +#line 14090 "" } /* korn = index('stmgx+Tupf._)e:XXX>^',charq) */ -#line 14032 "" +#line 14092 "" korn = i_indx("stmgx+Tupf._)e:XXX>^XXXXXXXXCG", charq, (ftnlen)30, ( ftnlen)1); -#line 14033 "" +#line 14093 "" if (korn != 15) { -#line 14033 "" +#line 14093 "" iorni = bit_set(iorni,korn); -#line 14033 "" +#line 14093 "" } /* Note that korn=0 => charq='(', and we set bit 0. if "e" (14), alter later */ /* as follows: korn=16-18 for sfn, and or 21 for bare ?. */ /* When this if-block is done, korn will = bit# of actual ornament (unless "?"). */ -#line 14039 "" +#line 14099 "" if (korn == 15) { /* c Turn off repeated ornament ('o:'), Replicate bits 0-3,5-15,19-20 prev iornq */ @@ -33062,236 +33181,236 @@ L5: /* iorni = ior(iorni,iand(iornq0,1638383)) */ /* iorni = ior(iorni,iand(iornq0,3735535)) */ /* iorni = ior(iorni,iand(iornq0,540606447)) */ -#line 14048 "" +#line 14108 "" iorni |= *iornq0 & 1614348271; -#line 14049 "" +#line 14109 "" *ornrpt = FALSE_; -#line 14050 "" +#line 14110 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); /* durq will be ' ' */ -#line 14054 "" +#line 14114 "" } else if (korn == 14) { /* Editorial accidental */ -#line 14058 "" +#line 14118 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); /* korn = 15+index('sfn',durq) */ -#line 14060 "" +#line 14120 "" korn = i_indx("sfn?", durq, (ftnlen)4, (ftnlen)1) + 15; -#line 14061 "" +#line 14121 "" if (korn == 19) { -#line 14061 "" +#line 14121 "" korn = 21; -#line 14061 "" +#line 14121 "" } -#line 14062 "" +#line 14122 "" iorni = bit_set(bit_clear(iorni,14),korn); -#line 14063 "" +#line 14123 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 14064 "" +#line 14124 "" if (*(unsigned char *)durq == '?') { /* This is "oe[s|f|n]?". Set 21st bit also. */ -#line 14068 "" +#line 14128 "" iorni = bit_set(iorni,21); -#line 14069 "" +#line 14129 "" korn += 6; -#line 14070 "" +#line 14130 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 14071 "" +#line 14131 "" } /* iorni = ibset(ibclr(iorni,14),korn) */ -#line 14073 "" +#line 14133 "" } else if (korn == 4 && *noxtup) { /* segno. Check in pmxa for just 1/block & notcrd. Get horiz. offset in points */ -#line 14077 "" +#line 14137 "" *noffseg = 0; -#line 14078 "" +#line 14138 "" negseg = FALSE_; -#line 14079 "" +#line 14139 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 14080 "" +#line 14140 "" if (*(unsigned char *)durq != ' ') { /* Segno shift is specified */ -#line 14084 "" +#line 14144 "" if (*(unsigned char *)durq == '-') { -#line 14085 "" +#line 14145 "" negseg = TRUE_; -#line 14086 "" +#line 14146 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 14087 "" +#line 14147 "" } -#line 14088 "" +#line 14148 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 14089 "" +#line 14149 "" *noffseg = (integer) fnum; -#line 14090 "" +#line 14150 "" if (negseg) { -#line 14090 "" +#line 14150 "" *noffseg = -(*noffseg); -#line 14090 "" +#line 14150 "" } -#line 14091 "" +#line 14151 "" } -#line 14092 "" +#line 14152 "" } else if (korn == 7) { /* Trill. Check in pmxa for notcrd. Default is 1 noteskip long, with "tr" */ -#line 14096 "" +#line 14156 "" ++comtrill_1.ntrill; -#line 14097 "" +#line 14157 "" comtrill_1.ivtrill[comtrill_1.ntrill - 1] = *ivx; -#line 14098 "" +#line 14158 "" comtrill_1.iptrill[comtrill_1.ntrill - 1] = *ip; -#line 14099 "" +#line 14159 "" comtrill_1.xnsktr[comtrill_1.ntrill - 1] = 1.f; -#line 14100 "" +#line 14160 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 14101 "" +#line 14161 "" if (*(unsigned char *)durq == 't') { /* Convert to new internal symbol for non-'"tr" trill */ -#line 14105 "" +#line 14165 "" korn = 15; -#line 14106 "" +#line 14166 "" iorni = bit_set(bit_clear(iorni,7),15); -#line 14107 "" +#line 14167 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 14108 "" +#line 14168 "" } -#line 14109 "" +#line 14169 "" if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) > 0) { /* We have a number for the length */ -#line 14113 "" +#line 14173 "" readnum_(lineq, iccount, durq, &comtrill_1.xnsktr[ comtrill_1.ntrill - 1], (ftnlen)128, (ftnlen)1); -#line 14114 "" +#line 14174 "" } -#line 14115 "" +#line 14175 "" } else if (korn == 10 && *noxtup) { /* Fermata */ -#line 14119 "" +#line 14179 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 14120 "" +#line 14180 "" if (*(unsigned char *)durq == 'd') { -#line 14121 "" +#line 14181 "" korn = 14; -#line 14122 "" +#line 14182 "" iorni = bit_set(bit_clear(iorni,10),14); -#line 14123 "" +#line 14183 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 14124 "" +#line 14184 "" } -#line 14125 "" +#line 14185 "" } else { -#line 14126 "" +#line 14186 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 14127 "" +#line 14187 "" } -#line 14128 "" +#line 14188 "" if (i_indx("+- :", durq, (ftnlen)4, (ftnlen)1) == 0) { -#line 14129 "" - s_wsle(&io___830); -#line 14129 "" +#line 14189 "" + s_wsle(&io___832); +#line 14189 "" do_lio(&c__9, &c__1, "Unexpected character at end of ornament: ", ( ftnlen)41); -#line 14129 "" +#line 14189 "" do_lio(&c__9, &c__1, durq, (ftnlen)1); -#line 14129 "" +#line 14189 "" e_wsle(); -#line 14130 "" +#line 14190 "" stop1_(); -#line 14131 "" +#line 14191 "" } -#line 14132 "" +#line 14192 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Shift ornament up or down */ -#line 14136 "" +#line 14196 "" ++comtrill_1.nudorn; /* Set bit 25 in iorni as a signal. This may not really be necessary. */ -#line 14140 "" +#line 14200 "" iorni = bit_set(iorni,25); /* Assemble info to put in kudorn(nudorn) Bits 0-7:ip, 8-11:ivx, 12-18:nolev, */ /* 19-24: type of ornament to be shifted, 25-30: shift+32, 31:h-shft present */ -#line 14145 "" +#line 14205 "" xofforn = (real) (44 - *(unsigned char *)durq); -#line 14146 "" +#line 14206 "" ++(*iccount); -#line 14147 "" +#line 14207 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 14148 "" +#line 14208 "" r__1 = xofforn * fnum; -#line 14148 "" +#line 14208 "" iofforn = i_nint(&r__1); -#line 14149 "" +#line 14209 "" comtrill_1.kudorn[comtrill_1.nudorn - 1] = *ip + (*ivx % 16 << 8) + (* nole << 12) + (korn << 19) + (iofforn + 32 << 25); -#line 14151 "" +#line 14211 "" comivxudorn_1.ivxudorn[comtrill_1.nudorn - 1] = *ivx; -#line 14152 "" +#line 14212 "" if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { /* Horizontal shift */ -#line 14156 "" +#line 14216 "" comtrill_1.kudorn[comtrill_1.nudorn - 1] = bit_set( comtrill_1.kudorn[comtrill_1.nudorn - 1],31); -#line 14157 "" +#line 14217 "" xofforn = (real) (44 - *(unsigned char *)durq); -#line 14158 "" +#line 14218 "" ++(*iccount); -#line 14159 "" +#line 14219 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); /* 141226 ornhshft(nudorn) = nint(xofforn*fnum) */ -#line 14161 "" +#line 14221 "" comtrill_1.ornhshft[comtrill_1.nudorn - 1] = xofforn * fnum; -#line 14162 "" +#line 14222 "" } -#line 14163 "" +#line 14223 "" } else if (*(unsigned char *)durq == ':') { /* Turn on repeated ornaments */ -#line 14167 "" +#line 14227 "" *ornrpt = TRUE_; /* Save the ornament value just set */ -#line 14171 "" +#line 14231 "" *iornq0 = iorni; -#line 14172 "" +#line 14232 "" } -#line 14173 "" +#line 14233 "" if (*notcrd) { -#line 14174 "" +#line 14234 "" *iornq |= iorni; -#line 14175 "" +#line 14235 "" } else { -#line 14176 "" +#line 14236 "" comtrill_1.icrdorn[comtrill_1.ncrd - 1] |= iorni; -#line 14177 "" +#line 14237 "" } -#line 14178 "" +#line 14238 "" return 0; } /* getorn_ */ @@ -33327,9 +33446,9 @@ L5: static char lnholdq[128]; /* Fortran I/O blocks */ - static cilist io___836 = { 0, 6, 0, 0, 0 }; - static cilist io___837 = { 0, 15, 0, "()", 0 }; - static cilist io___841 = { 0, 18, 1, "(a)", 0 }; + static cilist io___838 = { 0, 6, 0, 0, 0 }; + static cilist io___839 = { 0, 15, 0, "()", 0 }; + static cilist io___843 = { 0, 18, 1, "(a)", 0 }; @@ -33352,410 +33471,410 @@ L5: /* ipbufmod = points to last character of most recent inserted line */ /* from pmx.mod */ -#line 14212 "" +#line 14272 "" c1omget_1.line1pmxmod = inbuff_1.ilbuf; -#line 14213 "" +#line 14273 "" if (! (*global)) { -#line 14214 "" +#line 14274 "" ioin__1.inerr = 0; -#line 14214 "" +#line 14274 "" ioin__1.infilen = includeq_len; -#line 14214 "" +#line 14274 "" ioin__1.infile = includeq; -#line 14214 "" +#line 14274 "" ioin__1.inex = &fexist; -#line 14214 "" +#line 14274 "" ioin__1.inopen = 0; -#line 14214 "" +#line 14274 "" ioin__1.innum = 0; -#line 14214 "" +#line 14274 "" ioin__1.innamed = 0; -#line 14214 "" +#line 14274 "" ioin__1.inname = 0; -#line 14214 "" +#line 14274 "" ioin__1.inacc = 0; -#line 14214 "" +#line 14274 "" ioin__1.inseq = 0; -#line 14214 "" +#line 14274 "" ioin__1.indir = 0; -#line 14214 "" +#line 14274 "" ioin__1.infmt = 0; -#line 14214 "" +#line 14274 "" ioin__1.inform = 0; -#line 14214 "" +#line 14274 "" ioin__1.inunf = 0; -#line 14214 "" +#line 14274 "" ioin__1.inrecl = 0; -#line 14214 "" +#line 14274 "" ioin__1.innrec = 0; -#line 14214 "" +#line 14274 "" ioin__1.inblank = 0; -#line 14214 "" +#line 14274 "" f_inqu(&ioin__1); /* Transfer includeq to temporary char variable with known length */ -#line 14218 "" +#line 14278 "" s_copy(pmxmoddirq, includeq, (ftnlen)80, includeq_len); -#line 14219 "" +#line 14279 "" lpmxmoddirq = lenstr_(pmxmoddirq, &c__80, (ftnlen)80); -#line 14220 "" - s_wsle(&io___836); -#line 14220 "" +#line 14280 "" + s_wsle(&io___838); +#line 14280 "" e_wsle(); -#line 14221 "" - s_wsfe(&io___837); -#line 14221 "" +#line 14281 "" + s_wsfe(&io___839); +#line 14281 "" e_wsfe(); -#line 14222 "" +#line 14282 "" if (! fexist) { /* Writing concatenation */ -#line 14223 "" +#line 14283 "" i__1[0] = 15, a__1[0] = "Could not find "; -#line 14223 "" +#line 14283 "" i__1[1] = lpmxmoddirq, a__1[1] = pmxmoddirq; -#line 14223 "" +#line 14283 "" i__1[2] = 19, a__1[2] = ", checking further."; -#line 14223 "" +#line 14283 "" s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)114); -#line 14223 "" +#line 14283 "" printl_(ch__1, lpmxmoddirq + 34); /* File named includeq doesn't not exist. Get directory from PMXMODDIR and */ /* see if it's there */ -#line 14229 "" +#line 14289 "" getenv_("PMXMODDIR", pmxmoddirq, (ftnlen)9, (ftnlen)80); -#line 14230 "" +#line 14290 "" lpmxmoddirq = lenstr_(pmxmoddirq, &c__80, (ftnlen)80); -#line 14231 "" +#line 14291 "" if (lpmxmoddirq > 0) { /* Writing concatenation */ -#line 14232 "" +#line 14292 "" i__2[0] = lpmxmoddirq, a__2[0] = pmxmoddirq; -#line 14232 "" +#line 14292 "" i__2[1] = includeq_len, a__2[1] = includeq; -#line 14232 "" +#line 14292 "" s_cat(pmxmoddirq, a__2, i__2, &c__2, (ftnlen)80); -#line 14233 "" +#line 14293 "" lpmxmoddirq = lenstr_(pmxmoddirq, &c__80, (ftnlen)80); -#line 14234 "" +#line 14294 "" } else { -#line 14235 "" +#line 14295 "" printl_("No other directory defined by PMXMODDIR, stopping", ( ftnlen)49); -#line 14237 "" +#line 14297 "" stop1_(); -#line 14238 "" +#line 14298 "" } -#line 14239 "" +#line 14299 "" ioin__1.inerr = 0; -#line 14239 "" +#line 14299 "" ioin__1.infilen = 80; -#line 14239 "" +#line 14299 "" ioin__1.infile = pmxmoddirq; -#line 14239 "" +#line 14299 "" ioin__1.inex = &fexist; -#line 14239 "" +#line 14299 "" ioin__1.inopen = 0; -#line 14239 "" +#line 14299 "" ioin__1.innum = 0; -#line 14239 "" +#line 14299 "" ioin__1.innamed = 0; -#line 14239 "" +#line 14299 "" ioin__1.inname = 0; -#line 14239 "" +#line 14299 "" ioin__1.inacc = 0; -#line 14239 "" +#line 14299 "" ioin__1.inseq = 0; -#line 14239 "" +#line 14299 "" ioin__1.indir = 0; -#line 14239 "" +#line 14299 "" ioin__1.infmt = 0; -#line 14239 "" +#line 14299 "" ioin__1.inform = 0; -#line 14239 "" +#line 14299 "" ioin__1.inunf = 0; -#line 14239 "" +#line 14299 "" ioin__1.inrecl = 0; -#line 14239 "" +#line 14299 "" ioin__1.innrec = 0; -#line 14239 "" +#line 14299 "" ioin__1.inblank = 0; -#line 14239 "" +#line 14299 "" f_inqu(&ioin__1); -#line 14240 "" +#line 14300 "" if (! fexist) { /* Writing concatenation */ -#line 14241 "" +#line 14301 "" i__1[0] = 15, a__1[0] = "Could not find "; -#line 14241 "" +#line 14301 "" i__1[1] = lpmxmoddirq, a__1[1] = pmxmoddirq; -#line 14241 "" +#line 14301 "" i__1[2] = 11, a__1[2] = ", stopping."; -#line 14241 "" +#line 14301 "" s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)106); -#line 14241 "" +#line 14301 "" printl_(ch__2, lpmxmoddirq + 26); -#line 14243 "" +#line 14303 "" stop1_(); -#line 14244 "" +#line 14304 "" } -#line 14245 "" +#line 14305 "" } /* Writing concatenation */ -#line 14246 "" +#line 14306 "" i__2[0] = 28, a__2[0] = "Opening normal include file "; -#line 14246 "" +#line 14306 "" i__2[1] = lpmxmoddirq, a__2[1] = pmxmoddirq; -#line 14246 "" +#line 14306 "" s_cat(ch__3, a__2, i__2, &c__2, (ftnlen)108); -#line 14246 "" +#line 14306 "" printl_(ch__3, lpmxmoddirq + 28); -#line 14248 "" +#line 14308 "" o__1.oerr = 0; -#line 14248 "" +#line 14308 "" o__1.ounit = 18; -#line 14248 "" +#line 14308 "" o__1.ofnmlen = 80; -#line 14248 "" +#line 14308 "" o__1.ofnm = pmxmoddirq; -#line 14248 "" +#line 14308 "" o__1.orl = 0; -#line 14248 "" +#line 14308 "" o__1.osta = 0; -#line 14248 "" +#line 14308 "" o__1.oacc = 0; -#line 14248 "" +#line 14308 "" o__1.ofm = 0; -#line 14248 "" +#line 14308 "" o__1.oblnk = 0; -#line 14248 "" +#line 14308 "" f_open(&o__1); -#line 14249 "" +#line 14309 "" } else { /* Check for existence of pmx.mod */ -#line 14253 "" +#line 14313 "" getenv_("PMXMODDIR", pmxmoddirq, (ftnlen)9, (ftnlen)80); -#line 14254 "" +#line 14314 "" lpmxmoddirq = lenstr_(pmxmoddirq, &c__80, (ftnlen)80); -#line 14255 "" +#line 14315 "" if (lpmxmoddirq == 0) { -#line 14255 "" +#line 14315 "" return 0; -#line 14255 "" +#line 14315 "" } /* Writing concatenation */ -#line 14256 "" +#line 14316 "" i__2[0] = lpmxmoddirq, a__2[0] = pmxmoddirq; -#line 14256 "" +#line 14316 "" i__2[1] = 7, a__2[1] = "pmx.mod"; -#line 14256 "" +#line 14316 "" s_cat(pmxmoddirq, a__2, i__2, &c__2, (ftnlen)80); -#line 14257 "" +#line 14317 "" lpmxmoddirq += 7; -#line 14258 "" +#line 14318 "" ioin__1.inerr = 0; -#line 14258 "" +#line 14318 "" ioin__1.infilen = 80; -#line 14258 "" +#line 14318 "" ioin__1.infile = pmxmoddirq; -#line 14258 "" +#line 14318 "" ioin__1.inex = &fexist; -#line 14258 "" +#line 14318 "" ioin__1.inopen = 0; -#line 14258 "" +#line 14318 "" ioin__1.innum = 0; -#line 14258 "" +#line 14318 "" ioin__1.innamed = 0; -#line 14258 "" +#line 14318 "" ioin__1.inname = 0; -#line 14258 "" +#line 14318 "" ioin__1.inacc = 0; -#line 14258 "" +#line 14318 "" ioin__1.inseq = 0; -#line 14258 "" +#line 14318 "" ioin__1.indir = 0; -#line 14258 "" +#line 14318 "" ioin__1.infmt = 0; -#line 14258 "" +#line 14318 "" ioin__1.inform = 0; -#line 14258 "" +#line 14318 "" ioin__1.inunf = 0; -#line 14258 "" +#line 14318 "" ioin__1.inrecl = 0; -#line 14258 "" +#line 14318 "" ioin__1.innrec = 0; -#line 14258 "" +#line 14318 "" ioin__1.inblank = 0; -#line 14258 "" +#line 14318 "" f_inqu(&ioin__1); -#line 14259 "" +#line 14319 "" if (! fexist) { -#line 14259 "" +#line 14319 "" return 0; -#line 14259 "" +#line 14319 "" } /* Writing concatenation */ -#line 14260 "" +#line 14320 "" i__2[0] = 28, a__2[0] = "Opening global include file "; -#line 14260 "" +#line 14320 "" i__2[1] = lpmxmoddirq, a__2[1] = pmxmoddirq; -#line 14260 "" +#line 14320 "" s_cat(ch__3, a__2, i__2, &c__2, (ftnlen)108); -#line 14260 "" +#line 14320 "" printl_(ch__3, lpmxmoddirq + 28); -#line 14262 "" +#line 14322 "" o__1.oerr = 0; -#line 14262 "" +#line 14322 "" o__1.ounit = 18; -#line 14262 "" +#line 14322 "" o__1.ofnmlen = lpmxmoddirq; -#line 14262 "" +#line 14322 "" o__1.ofnm = pmxmoddirq; -#line 14262 "" +#line 14322 "" o__1.orl = 0; -#line 14262 "" +#line 14322 "" o__1.osta = 0; -#line 14262 "" +#line 14322 "" o__1.oacc = 0; -#line 14262 "" +#line 14322 "" o__1.ofm = 0; -#line 14262 "" +#line 14322 "" o__1.oblnk = 0; -#line 14262 "" +#line 14322 "" f_open(&o__1); -#line 14263 "" +#line 14323 "" } -#line 14264 "" +#line 14324 "" printl_("Adding include data", (ftnlen)19); /* Read lines in from pmx.mod one at a time */ -#line 14268 "" +#line 14328 "" ipbufmod = inbuff_1.ipbuf; -#line 14269 "" +#line 14329 "" lenbufmod = c1omget_1.lenbuf0; -#line 14270 "" +#line 14330 "" for (ilbufmod = inbuff_1.ilbuf; ilbufmod <= 4000; ++ilbufmod) { -#line 14271 "" - i__3 = s_rsfe(&io___841); -#line 14271 "" +#line 14331 "" + i__3 = s_rsfe(&io___843); +#line 14331 "" if (i__3 != 0) { -#line 14271 "" +#line 14331 "" goto L3; -#line 14271 "" +#line 14331 "" } -#line 14271 "" +#line 14331 "" i__3 = do_fio(&c__1, lnholdq, (ftnlen)128); -#line 14271 "" +#line 14331 "" if (i__3 != 0) { -#line 14271 "" +#line 14331 "" goto L3; -#line 14271 "" +#line 14331 "" } -#line 14271 "" +#line 14331 "" i__3 = e_rsfe(); -#line 14271 "" +#line 14331 "" if (i__3 != 0) { -#line 14271 "" +#line 14331 "" goto L3; -#line 14271 "" +#line 14331 "" } /* A line was read. Slide all existing lengths from here forward ahead by 1 */ -#line 14275 "" +#line 14335 "" i__3 = ilbufmod; -#line 14275 "" +#line 14335 "" for (ilbuff = inbuff_1.nlbuf; ilbuff >= i__3; --ilbuff) { -#line 14276 "" +#line 14336 "" inbuff_1.lbuf[ilbuff] = inbuff_1.lbuf[ilbuff - 1]; -#line 14277 "" +#line 14337 "" /* L2: */ -#line 14277 "" +#line 14337 "" } /* Get length of line from include file */ -#line 14281 "" +#line 14341 "" lenmodline = lenstr_(lnholdq, &c__128, (ftnlen)128); -#line 14282 "" +#line 14342 "" if (lenmodline == 0) { /* Blank line. Make it a single blank with length 1 */ -#line 14286 "" +#line 14346 "" lenmodline = 1; -#line 14287 "" +#line 14347 "" s_copy(lnholdq, " ", (ftnlen)128, (ftnlen)1); -#line 14288 "" +#line 14348 "" } -#line 14289 "" +#line 14349 "" inbuff_1.lbuf[ilbufmod - 1] = (shortint) lenmodline; -#line 14290 "" +#line 14350 "" printl_(lnholdq, lenmodline); /* Insert new stuff into bufq */ -#line 14294 "" +#line 14354 "" i__3 = ipbufmod; /* Writing concatenation */ -#line 14294 "" +#line 14354 "" i__1[0] = ipbufmod, a__1[0] = inbuff_1.bufq; -#line 14294 "" +#line 14354 "" i__1[1] = lenmodline, a__1[1] = lnholdq; -#line 14294 "" +#line 14354 "" i__1[2] = lenbufmod - i__3, a__1[2] = inbuff_1.bufq + i__3; -#line 14294 "" +#line 14354 "" s_cat(inbuff_1.bufq, a__1, i__1, &c__3, (ftnlen)65536); /* Update internal parameters */ -#line 14299 "" +#line 14359 "" ipbufmod += inbuff_1.lbuf[ilbufmod - 1]; -#line 14300 "" +#line 14360 "" lenbufmod += inbuff_1.lbuf[ilbufmod - 1]; -#line 14301 "" +#line 14361 "" ++inbuff_1.nlbuf; -#line 14302 "" +#line 14362 "" /* L1: */ -#line 14302 "" +#line 14362 "" } -#line 14303 "" +#line 14363 "" L3: /* Writing concatenation */ -#line 14304 "" +#line 14364 "" i__2[0] = 8, a__2[0] = "Closing "; -#line 14304 "" +#line 14364 "" i__2[1] = lpmxmoddirq, a__2[1] = pmxmoddirq; -#line 14304 "" +#line 14364 "" s_cat(ch__4, a__2, i__2, &c__2, (ftnlen)88); -#line 14304 "" +#line 14364 "" printl_(ch__4, lpmxmoddirq + 8); -#line 14305 "" +#line 14365 "" cl__1.cerr = 0; -#line 14305 "" +#line 14365 "" cl__1.cunit = 18; -#line 14305 "" +#line 14365 "" cl__1.csta = 0; -#line 14305 "" +#line 14365 "" f_clos(&cl__1); -#line 14306 "" +#line 14366 "" c1omget_1.linesinpmxmod = c1omget_1.linesinpmxmod + ilbufmod - inbuff_1.ilbuf; -#line 14307 "" +#line 14367 "" c1omget_1.lenbuf0 = lenbufmod; /* Fix Andre's error reporting problem 101211 leading to log(neg#) due */ /* to nline being 2 bigger than it should be */ -#line 14312 "" +#line 14372 "" c1omget_1.nline += -2; -#line 14314 "" +#line 14374 "" return 0; } /* getpmxmod_ */ @@ -33788,145 +33907,145 @@ L3: static integer iccount, nvsofar; /* Fortran I/O blocks */ - static cilist io___847 = { 0, 17, 0, "(a)", 0 }; - static cilist io___857 = { 0, 6, 0, 0, 0 }; + static cilist io___849 = { 0, 17, 0, "(a)", 0 }; + static cilist io___859 = { 0, 6, 0, 0, 0 }; /* Get the first line */ -#line 14330 "" +#line 14390 "" /* Parameter adjustments */ -#line 14330 "" +#line 14390 "" --sepsymq; -#line 14330 "" +#line 14390 "" --clefq; -#line 14330 "" +#line 14390 "" inameq -= 79; -#line 14330 "" +#line 14390 "" -#line 14330 "" +#line 14390 "" /* Function Body */ -#line 14330 "" +#line 14390 "" iccount = 0; -#line 14331 "" +#line 14391 "" L9: -#line 14331 "" +#line 14391 "" getbuf_(lineq, (ftnlen)128); -#line 14332 "" +#line 14392 "" if (*(unsigned char *)lineq == '%') { -#line 14332 "" +#line 14392 "" goto L9; -#line 14332 "" +#line 14392 "" } -#line 14333 "" +#line 14393 "" *istype0 = s_cmp(lineq, "---", (ftnlen)3, (ftnlen)3) == 0; -#line 14334 "" +#line 14394 "" if (*istype0) { /* Have TeX input until next line that starts with '---'. Save in scratch. */ -#line 14338 "" +#line 14398 "" o__1.oerr = 0; -#line 14338 "" +#line 14398 "" o__1.ounit = 17; -#line 14338 "" +#line 14398 "" o__1.ofnm = 0; -#line 14338 "" +#line 14398 "" o__1.orl = 0; -#line 14338 "" +#line 14398 "" o__1.osta = "SCRATCH"; -#line 14338 "" +#line 14398 "" o__1.oacc = 0; -#line 14338 "" +#line 14398 "" o__1.ofm = 0; -#line 14338 "" +#line 14398 "" o__1.oblnk = 0; -#line 14338 "" +#line 14398 "" f_open(&o__1); -#line 14339 "" +#line 14399 "" L3: -#line 14339 "" +#line 14399 "" getbuf_(lineq, (ftnlen)128); -#line 14340 "" +#line 14400 "" if (s_cmp(lineq, "---", (ftnlen)3, (ftnlen)3) != 0) { -#line 14341 "" - s_wsfe(&io___847); -#line 14341 "" +#line 14401 "" + s_wsfe(&io___849); +#line 14401 "" do_fio(&c__1, lineq, (ftnlen)128); -#line 14341 "" +#line 14401 "" e_wsfe(); -#line 14342 "" +#line 14402 "" goto L3; -#line 14343 "" +#line 14403 "" } /* Force a new line read on first call to readin */ -#line 14347 "" +#line 14407 "" iccount = 128; -#line 14348 "" +#line 14408 "" } /* Here, lineq is first line w/ numerical setup data. */ -#line 14352 "" +#line 14412 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14352 "" +#line 14412 "" *nv = i_nint(&r__1); -#line 14353 "" +#line 14413 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14353 "" +#line 14413 "" *noinst = i_nint(&r__1); -#line 14354 "" +#line 14414 "" newway = *noinst <= 0; -#line 14355 "" +#line 14415 "" if (newway) { -#line 14355 "" +#line 14415 "" *noinst = -(*noinst); -#line 14355 "" +#line 14415 "" } -#line 14356 "" +#line 14416 "" i__1 = *noinst; -#line 14356 "" +#line 14416 "" for (iinst = 1; iinst <= i__1; ++iinst) { /* Seve # of staves per inst in case later drop some inst's. */ -#line 14360 "" +#line 14420 "" if (newway) { /* Read in nvi for each instrument */ -#line 14364 "" +#line 14424 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14364 "" +#line 14424 "" comnvi_1.nsperi[iinst - 1] = i_nint(&r__1); -#line 14365 "" +#line 14425 "" } else if (iinst > 1) { -#line 14366 "" +#line 14426 "" comnvi_1.nsperi[iinst - 1] = 1; -#line 14367 "" +#line 14427 "" } else { -#line 14368 "" +#line 14428 "" comnvi_1.nsperi[iinst - 1] = *nv - *noinst + 1; -#line 14369 "" +#line 14429 "" } -#line 14370 "" +#line 14430 "" comnvi_1.iiorig[iinst - 1] = iinst; -#line 14371 "" +#line 14431 "" comnvi_1.nspern[iinst - 1] = comnvi_1.nsperi[iinst - 1]; -#line 14372 "" +#line 14432 "" /* L2: */ -#line 14372 "" +#line 14432 "" } -#line 14373 "" +#line 14433 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14373 "" +#line 14433 "" *mtrnuml = i_nint(&r__1); -#line 14374 "" +#line 14434 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14374 "" +#line 14434 "" *mtrdenl = i_nint(&r__1); /* c */ /* c Kluge to make mtrdenl work */ @@ -33935,154 +34054,154 @@ L3: /* mtrdenl = 2 */ /* mtrnuml = mtrnuml*2 */ /* end if */ -#line 14382 "" +#line 14442 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14382 "" +#line 14442 "" *mtrnmp = i_nint(&r__1); -#line 14383 "" +#line 14443 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14383 "" +#line 14443 "" *mtrdnp = i_nint(&r__1); -#line 14384 "" +#line 14444 "" *xmtrnum0 = readin_(lineq, &iccount, &nline, (ftnlen)128); /* Original key sig (before any trnasposition) in next position. Transposed */ /* sig for topfile was transferred thru pmxtex.dat. Need isig0 for key */ /* changes if transposed. */ -#line 14390 "" +#line 14450 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14390 "" +#line 14450 "" *isig0 = i_nint(&r__1); /* 130316 */ /* do 11 iinst = 1 , noinst */ /* midisig(iinst) = isig0 */ -#line 14394 "" +#line 14454 "" commidisig_1.midisig = *isig0; /* 11 continue */ -#line 14396 "" +#line 14456 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14396 "" +#line 14456 "" *npages = i_nint(&r__1); -#line 14397 "" +#line 14457 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14397 "" +#line 14457 "" *nsyst = i_nint(&r__1); -#line 14398 "" +#line 14458 "" r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128); -#line 14398 "" +#line 14458 "" *musicsize = i_nint(&r__1); -#line 14399 "" +#line 14459 "" *fracindent = readin_(lineq, &iccount, &nline, (ftnlen)128); /* Next noinst non-comment lines are names of instruments. */ -#line 14403 "" +#line 14463 "" i__1 = *noinst; -#line 14403 "" +#line 14463 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 14404 "" +#line 14464 "" L5: -#line 14404 "" +#line 14464 "" getbuf_(inameq + i__ * 79, (ftnlen)79); -#line 14405 "" +#line 14465 "" if (*(unsigned char *)&inameq[i__ * 79] == '%') { -#line 14405 "" +#line 14465 "" goto L5; -#line 14405 "" +#line 14465 "" } -#line 14406 "" +#line 14466 "" /* L4: */ -#line 14406 "" +#line 14466 "" } /* Next non-comment line has nv clef names */ -#line 14410 "" +#line 14470 "" L6: -#line 14410 "" +#line 14470 "" getbuf_(lineq, (ftnlen)128); -#line 14411 "" +#line 14471 "" if (*(unsigned char *)lineq == '%') { -#line 14411 "" +#line 14471 "" goto L6; -#line 14411 "" +#line 14471 "" } -#line 14412 "" +#line 14472 "" iv = 0; -#line 14413 "" +#line 14473 "" nvsofar = 0; -#line 14414 "" +#line 14474 "" i__1 = *noinst; -#line 14414 "" +#line 14474 "" for (jinst = 1; jinst <= i__1; ++jinst) { -#line 14415 "" +#line 14475 "" nvsofar += comnvi_1.nsperi[jinst - 1]; -#line 14416 "" +#line 14476 "" i__2 = comnvi_1.nsperi[jinst - 1]; -#line 14416 "" +#line 14476 "" for (ivi = 1; ivi <= i__2; ++ivi) { -#line 14417 "" +#line 14477 "" ++iv; -#line 14418 "" +#line 14478 "" *(unsigned char *)&clefq[iv] = *(unsigned char *)&lineq[iv - 1]; -#line 14419 "" +#line 14479 "" if (iv == nvsofar) { -#line 14420 "" +#line 14480 "" *(unsigned char *)&sepsymq[iv] = '&'; -#line 14421 "" +#line 14481 "" } else { -#line 14422 "" +#line 14482 "" *(unsigned char *)&sepsymq[iv] = '|'; -#line 14423 "" +#line 14483 "" } -#line 14424 "" +#line 14484 "" /* L10: */ -#line 14424 "" +#line 14484 "" } -#line 14425 "" +#line 14485 "" /* L1: */ -#line 14425 "" +#line 14485 "" } /* Mext non-comment line has path name */ -#line 14429 "" +#line 14489 "" L8: -#line 14429 "" +#line 14489 "" getbuf_(pathnameq, (ftnlen)40); -#line 14430 "" +#line 14490 "" if (*(unsigned char *)pathnameq == '%') { -#line 14430 "" +#line 14490 "" goto L8; -#line 14430 "" +#line 14490 "" } -#line 14431 "" +#line 14491 "" *lpath = i_indx(pathnameq, " ", (ftnlen)40, (ftnlen)1) - 1; /* 160130 Replace '\' by '/' */ -#line 14435 "" +#line 14495 "" L12: -#line 14435 "" - ipos = i_indx(pathnameq, "\\", (ftnlen)40, (ftnlen)1); -#line 14436 "" +#line 14495 "" + ipos = i_indx(pathnameq, "\\\\", (ftnlen)40, (ftnlen)2); +#line 14496 "" if (ipos > 0) { -#line 14437 "" +#line 14497 "" *(unsigned char *)&pathnameq[ipos - 1] = '/'; -#line 14438 "" - s_wsle(&io___857); -#line 14438 "" +#line 14498 "" + s_wsle(&io___859); +#line 14498 "" do_lio(&c__9, &c__1, "Changed pathname to ", (ftnlen)20); -#line 14438 "" +#line 14498 "" do_lio(&c__9, &c__1, pathnameq, (*lpath)); -#line 14438 "" +#line 14498 "" e_wsle(); -#line 14439 "" +#line 14499 "" goto L12; -#line 14440 "" +#line 14500 "" } -#line 14441 "" +#line 14501 "" return 0; } /* getset_ */ @@ -34106,55 +34225,55 @@ doublereal getsquez_(integer *n, integer *ntot, real *space, real *tnote, /* Since notes are ordered by increasing start times, as soon as we find one */ /* that starts too late, we are done checking. */ -#line 14455 "" +#line 14515 "" /* Parameter adjustments */ -#line 14455 "" +#line 14515 "" --to; -#line 14455 "" +#line 14515 "" --tnote; -#line 14455 "" +#line 14515 "" -#line 14455 "" +#line 14515 "" /* Function Body */ -#line 14455 "" +#line 14515 "" tgovern = 1e3f; -#line 14456 "" +#line 14516 "" tend = to[*n] + *space; -#line 14457 "" +#line 14517 "" i__1 = *ntot; -#line 14457 "" +#line 14517 "" for (in = 1; in <= i__1; ++in) { /* Since to() is ordered by start times, exit loop after first note that */ /* starts later than note of interest. */ -#line 14462 "" +#line 14522 "" if (to[in] > to[*n] + comtol_1.tol) { -#line 14462 "" +#line 14522 "" goto L2; -#line 14462 "" +#line 14522 "" } -#line 14463 "" +#line 14523 "" if (to[in] + tnote[in] > tend - comtol_1.tol) { /* If here, this note overlaps and must be tested. */ /* Computing MIN */ -#line 14467 "" +#line 14527 "" r__1 = tgovern, r__2 = tnote[in]; -#line 14467 "" +#line 14527 "" tgovern = dmin(r__1,r__2); -#line 14468 "" +#line 14528 "" } -#line 14469 "" +#line 14529 "" /* L1: */ -#line 14469 "" +#line 14529 "" } -#line 14470 "" +#line 14530 "" L2: -#line 14471 "" +#line 14531 "" ret_val = *space / tgovern; -#line 14472 "" +#line 14532 "" return ret_val; } /* getsquez_ */ @@ -34185,140 +34304,140 @@ L2: /* during xtups, we use itup and ntup to get actual time. On entry, ntup=0 if */ /* not in xtup. */ -#line 14488 "" +#line 14548 "" colon = FALSE_; -#line 14489 "" +#line 14549 "" ess = FALSE_; -#line 14490 "" +#line 14550 "" number = FALSE_; -#line 14491 "" +#line 14551 "" nextbl = *iccount + i_indx(lineq + (*iccount - 1), " ", 128 - (*iccount - 1), (ftnlen)1) - 1; -#line 14492 "" +#line 14552 "" if (i_indx(lineq + (*iccount - 1), "P", nextbl - (*iccount - 1), (ftnlen) 1) > 0) { /* "Parts only", ignore entire symbol */ -#line 14496 "" +#line 14556 "" *iccount = nextbl; -#line 14497 "" +#line 14557 "" return 0; -#line 14498 "" +#line 14558 "" } -#line 14499 "" +#line 14559 "" L1: -#line 14499 "" +#line 14559 "" getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 14500 "" +#line 14560 "" if (*(unsigned char *)charq == 'B') { /* "Both parts and score," ignore character */ -#line 14504 "" +#line 14564 "" goto L1; -#line 14505 "" +#line 14565 "" } else if (*(unsigned char *)charq == ':') { -#line 14506 "" +#line 14566 "" colon = TRUE_; -#line 14507 "" +#line 14567 "" goto L1; -#line 14508 "" +#line 14568 "" } else if (*(unsigned char *)charq == 'S') { -#line 14509 "" +#line 14569 "" ess = TRUE_; -#line 14510 "" +#line 14570 "" goto L1; -#line 14511 "" +#line 14571 "" } else if (i_indx("+-.0123456789", charq, (ftnlen)13, (ftnlen)1) > 0) { -#line 14512 "" +#line 14572 "" number = TRUE_; -#line 14513 "" +#line 14573 "" if (*(unsigned char *)charq == '-') { -#line 14513 "" +#line 14573 "" ++(*iccount); -#line 14513 "" +#line 14573 "" } -#line 14514 "" +#line 14574 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 14515 "" +#line 14575 "" if (*(unsigned char *)charq == '-') { -#line 14515 "" +#line 14575 "" fnum = -fnum; -#line 14515 "" +#line 14575 "" } -#line 14516 "" +#line 14576 "" if (*(unsigned char *)durq != 'p') { -#line 14517 "" +#line 14577 "" fnum *= *wheadpt; -#line 14518 "" +#line 14578 "" --(*iccount); -#line 14519 "" +#line 14579 "" } -#line 14520 "" +#line 14580 "" goto L1; -#line 14521 "" +#line 14581 "" } /* charq must be blank, so done parsing */ -#line 14525 "" +#line 14585 "" if (! ess && ! colon) { /* Ordinary hardspace. Goes before next note. */ /* (Later, at "|" or "/", check for presence and switch to udoff if there!) */ -#line 14530 "" +#line 14590 "" ++comudsp_1.nudsp; -#line 14531 "" +#line 14591 "" *iornq1 = bit_set(*iornq1,26); -#line 14532 "" +#line 14592 "" comudsp_1.udsp[comudsp_1.nudsp - 1] = fnum; -#line 14533 "" +#line 14593 "" comudsp_1.tudsp[comudsp_1.nudsp - 1] = (real) (*itsofar); -#line 14534 "" +#line 14594 "" if (*ntup > 0) { -#line 14534 "" +#line 14594 "" comudsp_1.tudsp[comudsp_1.nudsp - 1] += (real) (*itup - 1 + * ndoub) / *ntup * ifnodur_(nnodur, dotq, (ftnlen)1); -#line 14534 "" +#line 14594 "" } /* * +float(itup-1)/ntup*ifnodur(nnodur,dotq) */ -#line 14537 "" +#line 14597 "" } else if (! number) { /* Must be "X:" End a group offset. */ -#line 14541 "" +#line 14601 "" *irest = bit_set(*irest,17); -#line 14542 "" +#line 14602 "" *shifton = FALSE_; -#line 14543 "" +#line 14603 "" return 0; -#line 14544 "" +#line 14604 "" } else { /* Only other possibility is start offset, "S" for single, ':' for multiple */ -#line 14548 "" +#line 14608 "" ++comudsp_1.nudoff[*ivx - 1]; -#line 14549 "" +#line 14609 "" comudsp_1.udoff[*ivx + comudsp_1.nudoff[*ivx - 1] * 24 - 25] = fnum; -#line 14550 "" +#line 14610 "" if (ess) { -#line 14551 "" +#line 14611 "" *irest1 = bit_set(*irest1,15); -#line 14552 "" +#line 14612 "" } else { -#line 14553 "" +#line 14613 "" *irest1 = bit_set(*irest1,16); -#line 14554 "" +#line 14614 "" *shifton = TRUE_; -#line 14555 "" +#line 14615 "" } -#line 14556 "" +#line 14616 "" } -#line 14557 "" +#line 14617 "" return 0; } /* getx_ */ @@ -34335,75 +34454,75 @@ integer i1fnodur_(integer *idur, char *dotq, ftnlen dotq_len) extern /* Subroutine */ int stop1_(void); /* Fortran I/O blocks */ - static cilist io___868 = { 0, 6, 0, 0, 0 }; - static cilist io___869 = { 0, 6, 0, 0, 0 }; + static cilist io___870 = { 0, 6, 0, 0, 0 }; + static cilist io___871 = { 0, 6, 0, 0, 0 }; -#line 14561 "" +#line 14621 "" if (*idur == 6) { -#line 14562 "" +#line 14622 "" ret_val = 1; -#line 14563 "" +#line 14623 "" } else if (*idur == 3) { -#line 14564 "" +#line 14624 "" ret_val = 2; -#line 14565 "" +#line 14625 "" } else if (*idur == 1) { -#line 14566 "" +#line 14626 "" ret_val = 4; -#line 14567 "" +#line 14627 "" } else if (*idur == 8) { -#line 14568 "" +#line 14628 "" ret_val = 8; -#line 14569 "" +#line 14629 "" } else if (*idur == 4) { -#line 14570 "" +#line 14630 "" ret_val = 16; -#line 14571 "" +#line 14631 "" } else if (*idur == 2) { -#line 14572 "" +#line 14632 "" ret_val = 32; -#line 14573 "" +#line 14633 "" } else if (*idur == 0) { -#line 14574 "" +#line 14634 "" ret_val = 64; -#line 14575 "" +#line 14635 "" } else if (*idur == 16) { /* Only used for denominator of time signatures, not for notes */ -#line 14579 "" +#line 14639 "" ret_val = 4; -#line 14580 "" +#line 14640 "" } else if (*idur == 9) { -#line 14581 "" +#line 14641 "" ret_val = 128; -#line 14582 "" +#line 14642 "" } else { -#line 14583 "" - s_wsle(&io___868); -#line 14583 "" +#line 14643 "" + s_wsle(&io___870); +#line 14643 "" e_wsle(); -#line 14584 "" - s_wsle(&io___869); -#line 14584 "" +#line 14644 "" + s_wsle(&io___871); +#line 14644 "" do_lio(&c__9, &c__1, "You entered an invalid note-length value:", ( ftnlen)41); -#line 14584 "" +#line 14644 "" do_lio(&c__3, &c__1, (char *)&(*idur), (ftnlen)sizeof(integer)); -#line 14584 "" +#line 14644 "" e_wsle(); -#line 14585 "" +#line 14645 "" stop1_(); -#line 14586 "" +#line 14646 "" } -#line 14587 "" +#line 14647 "" if (*(unsigned char *)dotq == 'd') { -#line 14587 "" +#line 14647 "" ret_val = ret_val * 3 / 2; -#line 14587 "" +#line 14647 "" } -#line 14588 "" +#line 14648 "" return ret_val; } /* i1fnodur_ */ @@ -34421,9 +34540,9 @@ integer iashft_(integer *nacc) /* System generated locals */ integer ret_val; -#line 14598 "" +#line 14658 "" ret_val = ias[(0 + (0 + (*nacc - 1 << 2))) / 4]; -#line 14599 "" +#line 14659 "" return ret_val; } /* iashft_ */ @@ -34438,67 +34557,67 @@ integer ifnodur_(integer *idur, char *dotq, ftnlen dotq_len) /* Subroutine */ int s_stop(char *, ftnlen); /* Fortran I/O blocks */ - static cilist io___871 = { 0, 6, 0, 0, 0 }; + static cilist io___873 = { 0, 6, 0, 0, 0 }; -#line 14603 "" +#line 14663 "" if (*idur == 6) { -#line 14604 "" +#line 14664 "" ret_val = 1; -#line 14605 "" +#line 14665 "" } else if (*idur == 3) { -#line 14606 "" +#line 14666 "" ret_val = 2; -#line 14607 "" +#line 14667 "" } else if (*idur == 1) { -#line 14608 "" +#line 14668 "" ret_val = 4; -#line 14609 "" +#line 14669 "" } else if (*idur == 8) { -#line 14610 "" +#line 14670 "" ret_val = 8; -#line 14611 "" +#line 14671 "" } else if (*idur == 4) { -#line 14612 "" +#line 14672 "" ret_val = 16; -#line 14613 "" +#line 14673 "" } else if (*idur == 2) { -#line 14614 "" +#line 14674 "" ret_val = 32; -#line 14615 "" +#line 14675 "" } else if (*idur == 0) { -#line 14616 "" +#line 14676 "" ret_val = 64; -#line 14617 "" +#line 14677 "" } else if (*idur == 9) { -#line 14618 "" +#line 14678 "" ret_val = 128; -#line 14619 "" +#line 14679 "" } else if (*idur == 16) { /* Only used for denominator of time signatures, not for notes */ -#line 14623 "" +#line 14683 "" ret_val = 4; -#line 14624 "" +#line 14684 "" } else { -#line 14625 "" - s_wsle(&io___871); -#line 14625 "" +#line 14685 "" + s_wsle(&io___873); +#line 14685 "" do_lio(&c__9, &c__1, "You entered an invalid note value", (ftnlen)33); -#line 14625 "" +#line 14685 "" e_wsle(); -#line 14626 "" +#line 14686 "" s_stop("", (ftnlen)0); -#line 14627 "" +#line 14687 "" } -#line 14628 "" +#line 14688 "" if (*(unsigned char *)dotq == 'd') { -#line 14628 "" +#line 14688 "" ret_val = ret_val * 3 / 2; -#line 14628 "" +#line 14688 "" } -#line 14629 "" +#line 14689 "" return ret_val; } /* ifnodur_ */ @@ -34507,9 +34626,9 @@ integer ifnolev_(char *noq, integer *oct, integer *ntrans, ftnlen noq_len) /* System generated locals */ integer ret_val; -#line 14634 "" +#line 14694 "" ret_val = *oct * 7 + (*(unsigned char *)noq - 92) % 7 + 1 + *ntrans; -#line 14635 "" +#line 14695 "" return ret_val; } /* ifnolev_ */ @@ -34553,9 +34672,9 @@ integer igetbits_(integer *isdata, integer *iwidbit, integer *ishift) /* Extracts integer given by iwidbit bits of isdata, shifted by ishift, and */ /* then added to ioff */ -#line 14670 "" +#line 14730 "" ret_val = pow_ii(&c__2, iwidbit) - 1 & lbit_shift(*isdata, -(*ishift)); -#line 14671 "" +#line 14731 "" return ret_val; } /* igetbits_ */ @@ -34573,48 +34692,48 @@ integer igetvarlen_(shortint *mmidi, integer *icm, integer *imidi, integer * extern /* Subroutine */ int stop1_(void); /* Fortran I/O blocks */ - static cilist io___872 = { 0, 6, 0, 0, 0 }; + static cilist io___874 = { 0, 6, 0, 0, 0 }; /* Gets variable-length integer starting in mmidi at imidi+1. Returns nbytes. */ -#line 14679 "" +#line 14739 "" /* Parameter adjustments */ -#line 14679 "" +#line 14739 "" mmidi -= 25; -#line 14679 "" +#line 14739 "" -#line 14679 "" +#line 14739 "" /* Function Body */ -#line 14679 "" +#line 14739 "" ret_val = 0; -#line 14680 "" +#line 14740 "" for (*nbytes = 1; *nbytes <= 4; ++(*nbytes)) { -#line 14681 "" +#line 14741 "" ret_val = (ret_val << 7) + (127 & mmidi[*icm + (*imidi + *nbytes) * 25]); /* * +iand(127,longi(mmidi(icm,imidi+nbytes))) */ -#line 14684 "" +#line 14744 "" if (! bit_test(mmidi[*icm + (*imidi + *nbytes) * 25],7)) { -#line 14684 "" +#line 14744 "" return ret_val; -#line 14684 "" +#line 14744 "" } /* if (.not.btest(longi(mmidi(icm,imidi+nbytes)),7)) return */ -#line 14686 "" +#line 14746 "" /* L1: */ -#line 14686 "" +#line 14746 "" } -#line 14687 "" - s_wsle(&io___872); -#line 14687 "" +#line 14747 "" + s_wsle(&io___874); +#line 14747 "" do_lio(&c__9, &c__1, "Messup in igetvarlen", (ftnlen)20); -#line 14687 "" +#line 14747 "" e_wsle(); -#line 14688 "" +#line 14748 "" stop1_(); -#line 14689 "" +#line 14749 "" return ret_val; } /* igetvarlen_ */ @@ -34631,41 +34750,41 @@ logical isdotted_(integer *nodur, integer *ivx, integer *ip) /* Function returns true if note is dotted or double-dotted. */ /* Return false for any xtuplet. */ -#line 14698 "" +#line 14758 "" /* Parameter adjustments */ -#line 14698 "" +#line 14758 "" nodur -= 25; -#line 14698 "" +#line 14758 "" -#line 14698 "" +#line 14758 "" /* Function Body */ -#line 14698 "" +#line 14758 "" if (nodur[*ivx + *ip * 24] == 0) { -#line 14699 "" +#line 14759 "" ret_val = FALSE_; -#line 14700 "" +#line 14760 "" return ret_val; -#line 14701 "" +#line 14761 "" } else if (*ip > 1) { -#line 14702 "" +#line 14762 "" if (nodur[*ivx + (*ip - 1) * 24] == 0) { -#line 14703 "" +#line 14763 "" ret_val = FALSE_; -#line 14704 "" +#line 14764 "" return ret_val; -#line 14705 "" +#line 14765 "" } -#line 14706 "" +#line 14766 "" } /* Ruled out all xtups, so is dotted or double-dotted if not a power of 2. */ -#line 14710 "" +#line 14770 "" r__1 = log((real) nodur[*ivx + *ip * 24]) / .69314718f + comtol_1.tol * .5f; -#line 14710 "" - ret_val = r_mod(&r__1, &c_b814) > comtol_1.tol; -#line 14712 "" +#line 14770 "" + ret_val = r_mod(&r__1, &c_b813) > comtol_1.tol; +#line 14772 "" return ret_val; } /* isdotted_ */ @@ -34684,46 +34803,46 @@ integer isetvarlen_(integer *idur, integer *nbytes) static integer itemp; /* Fortran I/O blocks */ - static cilist io___874 = { 0, 6, 0, 0, 0 }; + static cilist io___876 = { 0, 6, 0, 0, 0 }; -#line 14715 "" +#line 14775 "" ret_val = 0; -#line 14716 "" +#line 14776 "" itemp = *idur; -#line 14717 "" +#line 14777 "" for (*nbytes = 1; *nbytes <= 4; ++(*nbytes)) { -#line 14718 "" +#line 14778 "" i__1 = *nbytes - 1; -#line 14718 "" +#line 14778 "" ret_val += (itemp & 127) * pow_ii(&c__256, &i__1); -#line 14719 "" +#line 14779 "" itemp = lbit_shift(itemp, (ftnlen)-7); -#line 14720 "" +#line 14780 "" if (itemp > 0) { -#line 14721 "" +#line 14781 "" i__1 = (*nbytes << 3) + 7; -#line 14721 "" +#line 14781 "" ret_val += pow_ii(&c__2, &i__1); -#line 14722 "" +#line 14782 "" } else { -#line 14723 "" +#line 14783 "" return ret_val; -#line 14724 "" +#line 14784 "" } -#line 14725 "" +#line 14785 "" /* L1: */ -#line 14725 "" +#line 14785 "" } -#line 14726 "" - s_wsle(&io___874); -#line 14726 "" +#line 14786 "" + s_wsle(&io___876); +#line 14786 "" do_lio(&c__9, &c__1, "Problem in function isetvarlen", (ftnlen)30); -#line 14726 "" +#line 14786 "" e_wsle(); -#line 14727 "" +#line 14787 "" stop1_(); -#line 14728 "" +#line 14788 "" return ret_val; } /* isetvarlen_ */ @@ -34748,75 +34867,75 @@ integer isetvarlen_(integer *idur, integer *nbytes) /* Returns string with integer only if length is 1, otherwise enclosed in */ /* brackets. */ -#line 14735 "" +#line 14795 "" if (*i__ != 0) { -#line 14736 "" +#line 14796 "" r__1 = abs(*i__) * 1.0001f; -#line 14736 "" +#line 14796 "" *len = r_lg10(&r__1) + 1; -#line 14737 "" +#line 14797 "" if (*i__ < 0) { -#line 14737 "" +#line 14797 "" ++(*len); -#line 14737 "" +#line 14797 "" } -#line 14738 "" +#line 14798 "" } else { -#line 14739 "" +#line 14799 "" s_copy(string, "0", string_len, (ftnlen)1); -#line 14740 "" +#line 14800 "" *len = 1; -#line 14741 "" +#line 14801 "" return 0; -#line 14742 "" +#line 14802 "" } -#line 14743 "" +#line 14803 "" if (*len == 1) { -#line 14744 "" +#line 14804 "" *(unsigned char *)&ch__1[0] = *i__ + 48; -#line 14744 "" +#line 14804 "" s_copy(string, ch__1, string_len, (ftnlen)1); -#line 14745 "" +#line 14805 "" } else { -#line 14746 "" +#line 14806 "" s_copy(string, "{", string_len, (ftnlen)1); -#line 14747 "" +#line 14807 "" ici__1.icierr = 0; -#line 14747 "" +#line 14807 "" ici__1.icirnum = 1; -#line 14747 "" +#line 14807 "" ici__1.icirlen = *len; -#line 14747 "" +#line 14807 "" ici__1.iciunit = string + 1; /* Writing concatenation */ -#line 14747 "" +#line 14807 "" i__1[0] = 2, a__1[0] = "(i"; -#line 14747 "" +#line 14807 "" *(unsigned char *)&ch__1[0] = *len + 48; -#line 14747 "" +#line 14807 "" i__1[1] = 1, a__1[1] = ch__1; -#line 14747 "" +#line 14807 "" i__1[2] = 1, a__1[2] = ")"; -#line 14747 "" +#line 14807 "" ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)4), ch__2); -#line 14747 "" +#line 14807 "" s_wsfi(&ici__1); -#line 14747 "" +#line 14807 "" do_fio(&c__1, (char *)&(*i__), (ftnlen)sizeof(integer)); -#line 14747 "" +#line 14807 "" e_wsfi(); /* Writing concatenation */ -#line 14748 "" +#line 14808 "" i__2[0] = *len + 1, a__2[0] = string; -#line 14748 "" +#line 14808 "" i__2[1] = 1, a__2[1] = "}"; -#line 14748 "" +#line 14808 "" s_cat(string, a__2, i__2, &c__2, string_len); -#line 14749 "" +#line 14809 "" *len += 2; -#line 14750 "" +#line 14810 "" } -#line 14751 "" +#line 14811 "" return 0; } /* istring_ */ @@ -34825,21 +34944,21 @@ integer lenstr_(char *string, integer *n, ftnlen string_len) /* System generated locals */ integer ret_val; -#line 14755 "" +#line 14815 "" for (ret_val = *n; ret_val >= 1; --ret_val) { -#line 14756 "" +#line 14816 "" if (*(unsigned char *)&string[ret_val - 1] != ' ') { -#line 14756 "" +#line 14816 "" return ret_val; -#line 14756 "" +#line 14816 "" } -#line 14757 "" +#line 14817 "" /* L1: */ -#line 14757 "" +#line 14817 "" } -#line 14758 "" +#line 14818 "" ret_val = 0; -#line 14759 "" +#line 14819 "" return ret_val; } /* lenstr_ */ @@ -34856,45 +34975,45 @@ integer levrn_(integer *nolev, integer *irest, integer *iud, integer *ncm, /* Used for placing numbers in xtups. Returns note level if not a rest, */ /* else level of top or bottom of rest symbol opposite beam. iud=-1 for upstm. */ -#line 14767 "" +#line 14827 "" if (! bit_test(*irest,0)) { -#line 14768 "" +#line 14828 "" ret_val = *nolev; -#line 14769 "" +#line 14829 "" } else { /* Restlevel is -4, 0, 2 or 100+offset. First get offset from 1-voice default. */ -#line 14773 "" +#line 14833 "" if (*mult > 0) { -#line 14774 "" +#line 14834 "" if (*mult == 2) { -#line 14775 "" +#line 14835 "" ioff = (*iud << 1) - 1; -#line 14776 "" +#line 14836 "" } else if (*mult != 4) { -#line 14777 "" +#line 14837 "" ioff = *iud * *mult; -#line 14778 "" +#line 14838 "" } else { -#line 14779 "" +#line 14839 "" ioff = (*iud << 2) + 1; -#line 14780 "" +#line 14840 "" } -#line 14781 "" +#line 14841 "" } else { /* May need to futz with this later for non-beamed xtups (quarter, half rests) */ -#line 14785 "" +#line 14845 "" ioff = *iud << 1; -#line 14786 "" +#line 14846 "" } -#line 14787 "" +#line 14847 "" ret_val = (*nolev + 20) % 100 - 20 + *ncm + ioff; -#line 14788 "" +#line 14848 "" } -#line 14789 "" +#line 14849 "" return ret_val; } /* levrn_ */ @@ -34914,29 +35033,29 @@ integer lfmt1_(real *x) /* Computes total length of an "f" format with one decimal place. */ /* First round to nearest 0.1 */ -#line 14796 "" +#line 14856 "" if (dabs(*x) < .001f) { -#line 14797 "" +#line 14857 "" ret_val = 2; -#line 14798 "" +#line 14858 "" } else { -#line 14799 "" +#line 14859 "" r__1 = (integer) (dabs(*x) * 10 + .5f) * .1f; -#line 14799 "" +#line 14859 "" y = r_sign(&r__1, x); -#line 14800 "" +#line 14860 "" r__1 = dabs(y) * 1000 + .001f; -#line 14800 "" +#line 14860 "" ret_val = (integer) r_lg10(&r__1); -#line 14801 "" +#line 14861 "" if (y < 0.f) { -#line 14801 "" +#line 14861 "" ++ret_val; -#line 14801 "" +#line 14861 "" } -#line 14802 "" +#line 14862 "" } -#line 14803 "" +#line 14863 "" return ret_val; } /* lfmt1_ */ @@ -34973,7 +35092,7 @@ integer lfmt1_(real *x) static char notexq[128]; /* Fortran I/O blocks */ - static cilist io___896 = { 0, 11, 0, "(a)", 0 }; + static cilist io___898 = { 0, 11, 0, "(a)", 0 }; @@ -34988,300 +35107,300 @@ integer lfmt1_(real *x) /* closing of full tie are not used except for shape alterations. */ /* do 1 ndx = 0 , 11 */ -#line 14828 "" +#line 14888 "" /* Parameter adjustments */ -#line 14828 "" +#line 14888 "" --sepsymq; -#line 14828 "" +#line 14888 "" --isdat4; -#line 14828 "" +#line 14888 "" --isdat3; -#line 14828 "" +#line 14888 "" --isdat2; -#line 14828 "" +#line 14888 "" --isdat1; -#line 14828 "" +#line 14888 "" -#line 14828 "" +#line 14888 "" /* Function Body */ -#line 14828 "" +#line 14888 "" for (ndx = 0; ndx <= 23; ++ndx) { -#line 14829 "" +#line 14889 "" if (bit_test(comslur_1.listslur,ndx)) { /* Slur or tie with index ndx is open. Find the one with right ndxb, see if tie */ -#line 14833 "" +#line 14893 "" i__1 = *nsdat; -#line 14833 "" +#line 14893 "" for (isdat = 1; isdat <= i__1; ++isdat) { /* if (igetbits(isdat1(isdat),4,28) .ne. ndx) go to 2 ! Wrong index */ -#line 14835 "" +#line 14895 "" if (igetbits_(&isdat1[isdat], &c__4, &c__28) + (igetbits_(& isdat1[isdat], &c__1, &c__18) << 4) != ndx) { -#line 14835 "" +#line 14895 "" goto L2; -#line 14835 "" +#line 14895 "" } /* Wron */ -#line 14837 "" +#line 14897 "" if (! bit_test(isdat1[isdat],11)) { -#line 14837 "" +#line 14897 "" goto L2; -#line 14837 "" +#line 14897 "" } /* Bypass if stop */ -#line 14838 "" +#line 14898 "" if (bit_test(isdat2[isdat],3)) { -#line 14838 "" +#line 14898 "" goto L3; -#line 14838 "" +#line 14898 "" } /* "st" */ -#line 14839 "" +#line 14899 "" idcode = igetbits_(&isdat1[isdat], &c__7, &c__19); -#line 14840 "" +#line 14900 "" if (idcode == 1) { -#line 14840 "" +#line 14900 "" goto L3; -#line 14840 "" +#line 14900 "" } /* "t" */ -#line 14841 "" +#line 14901 "" tie = FALSE_; -#line 14842 "" +#line 14902 "" goto L5; -#line 14843 "" +#line 14903 "" L2: -#line 14843 "" +#line 14903 "" ; -#line 14843 "" +#line 14903 "" } -#line 14844 "" +#line 14904 "" } -#line 14845 "" +#line 14905 "" goto L1; -#line 14846 "" +#line 14906 "" L3: -#line 14847 "" +#line 14907 "" tie = TRUE_; -#line 14848 "" +#line 14908 "" L5: /* A slur or tie is open, with index ndx */ -#line 14852 "" +#line 14912 "" iv = igetbits_(&isdat1[isdat], &c__5, &c__13); -#line 14853 "" +#line 14913 "" kv = igetbits_(&isdat1[isdat], &c__1, &c__12) + 1; -#line 14854 "" +#line 14914 "" *(unsigned char *)udq = 'd'; -#line 14855 "" +#line 14915 "" if (bit_test(isdat1[isdat],27)) { -#line 14855 "" +#line 14915 "" *(unsigned char *)udq = 'u'; -#line 14855 "" +#line 14915 "" } /* Writing concatenation */ -#line 14856 "" +#line 14916 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 14856 "" +#line 14916 "" i__2[0] = 1, a__1[0] = ch__1; -#line 14856 "" +#line 14916 "" i__2[1] = 6, a__1[1] = "znotes"; -#line 14856 "" +#line 14916 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128); -#line 14857 "" +#line 14917 "" lnote = 7; -#line 14858 "" +#line 14918 "" i__1 = iv - 1; -#line 14858 "" +#line 14918 "" for (iiv = 1; iiv <= i__1; ++iiv) { /* Writing concatenation */ -#line 14859 "" +#line 14919 "" i__2[0] = lnote, a__1[0] = notexq; -#line 14859 "" +#line 14919 "" i__2[1] = 1, a__1[1] = sepsymq + iiv; -#line 14859 "" +#line 14919 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128); -#line 14860 "" +#line 14920 "" ++lnote; -#line 14861 "" +#line 14921 "" /* L4: */ -#line 14861 "" +#line 14921 "" } -#line 14862 "" +#line 14922 "" if (kv == 2) { /* Writing concatenation */ -#line 14863 "" +#line 14923 "" i__3[0] = lnote, a__2[0] = notexq; -#line 14863 "" +#line 14923 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 14863 "" +#line 14923 "" i__3[1] = 1, a__2[1] = ch__1; -#line 14863 "" +#line 14923 "" i__3[2] = 9, a__2[2] = "nextvoice"; -#line 14863 "" +#line 14923 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128); -#line 14864 "" +#line 14924 "" lnote += 10; -#line 14865 "" +#line 14925 "" } /* Compute horiz and vert offsets */ /* nolev = igetbits(isdat2(isdat),7,19) */ -#line 14870 "" +#line 14930 "" islhgt = igetbits_(&isdat3[isdat], &c__8, &c__14); -#line 14871 "" +#line 14931 "" ilb12 = 0; -#line 14872 "" +#line 14932 "" if (*ispstie) { -#line 14872 "" +#line 14932 "" ilb12 = 1; -#line 14872 "" +#line 14932 "" } -#line 14873 "" +#line 14933 "" i__1 = ilb12 << 4; -#line 14873 "" +#line 14933 "" ivoff = igetbits_(&isdat4[isdat], &c__6, &i__1) - 32; -#line 14874 "" +#line 14934 "" if (ivoff == -32) { -#line 14874 "" +#line 14934 "" ivoff = 0; -#line 14874 "" +#line 14934 "" } /* nolev = nolev+ivoff */ -#line 14876 "" +#line 14936 "" islhgt += ivoff; -#line 14877 "" +#line 14937 "" i__1 = (ilb12 << 4) + 6; -#line 14877 "" +#line 14937 "" ihoff = igetbits_(&isdat4[isdat], &c__7, &i__1) - 64; /* This is 10X */ -#line 14878 "" +#line 14938 "" if (ihoff == -64) { -#line 14878 "" +#line 14938 "" ihoff = 0; -#line 14878 "" +#line 14938 "" } /* Add starting stuff for command */ -#line 14882 "" +#line 14942 "" if (! (*ispstie)) { /* End 1st segment */ /* Writing concatenation */ -#line 14883 "" +#line 14943 "" i__3[0] = lnote, a__2[0] = notexq; -#line 14883 "" +#line 14943 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 14883 "" +#line 14943 "" i__3[1] = 1, a__2[1] = ch__1; -#line 14883 "" +#line 14943 "" i__3[2] = 8, a__2[2] = "roffset{"; -#line 14883 "" +#line 14943 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128); -#line 14884 "" +#line 14944 "" lnote += 9; /* hoff = ihoff*.1-.5 */ /* hoff = ihoff*.1-.8 */ -#line 14887 "" +#line 14947 "" hoff = ihoff * .1f - .4f; -#line 14888 "" +#line 14948 "" if (hoff < 0.f) { -#line 14889 "" +#line 14949 "" hoff = -hoff; /* Writing concatenation */ -#line 14890 "" +#line 14950 "" i__2[0] = lnote, a__1[0] = notexq; -#line 14890 "" +#line 14950 "" i__2[1] = 1, a__1[1] = "-"; -#line 14890 "" +#line 14950 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128); -#line 14891 "" +#line 14951 "" ++lnote; -#line 14892 "" +#line 14952 "" } -#line 14893 "" +#line 14953 "" writflot_(&hoff, notexq, &lnote, (ftnlen)128); /* Writing concatenation */ -#line 14894 "" +#line 14954 "" i__2[0] = lnote, a__1[0] = notexq; -#line 14894 "" +#line 14954 "" i__2[1] = 2, a__1[1] = "}{"; -#line 14894 "" +#line 14954 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128); -#line 14895 "" +#line 14955 "" lnote += 2; -#line 14896 "" +#line 14956 "" } else { /* Writing concatenation */ -#line 14897 "" +#line 14957 "" i__4[0] = lnote, a__3[0] = notexq; -#line 14897 "" +#line 14957 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 14897 "" +#line 14957 "" i__4[1] = 1, a__3[1] = ch__1; -#line 14897 "" +#line 14957 "" i__4[2] = 5, a__3[2] = "off{-"; -#line 14897 "" +#line 14957 "" chax_(ch__2, (ftnlen)1, &c__92); -#line 14897 "" +#line 14957 "" i__4[3] = 1, a__3[3] = ch__2; -#line 14897 "" +#line 14957 "" i__4[4] = 14, a__3[4] = "afterruleskip}"; -#line 14897 "" +#line 14957 "" s_cat(notexq, a__3, i__4, &c__5, (ftnlen)128); -#line 14899 "" +#line 14959 "" lnote += 21; /* 091025 add dotting for 2nd segment if needed */ -#line 14903 "" +#line 14963 "" if (bit_test(isdat2[isdat],4)) { /* Writing concatenation */ -#line 14904 "" +#line 14964 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 14904 "" +#line 14964 "" i__3[0] = 1, a__2[0] = ch__1; -#line 14904 "" +#line 14964 "" i__3[1] = 6, a__2[1] = "dotted"; -#line 14904 "" +#line 14964 "" i__3[2] = lnote, a__2[2] = notexq; -#line 14904 "" +#line 14964 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128); -#line 14905 "" +#line 14965 "" lnote += 7; -#line 14906 "" +#line 14966 "" } -#line 14907 "" +#line 14967 "" } -#line 14908 "" +#line 14968 "" if (*ispstie && tie) { /* Writing concatenation */ -#line 14909 "" +#line 14969 "" i__5[0] = lnote, a__4[0] = notexq; -#line 14909 "" +#line 14969 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 14909 "" +#line 14969 "" i__5[1] = 1, a__4[1] = ch__1; -#line 14909 "" +#line 14969 "" i__5[2] = 8, a__4[2] = "tieforis"; -#line 14909 "" +#line 14969 "" i__5[3] = 1, a__4[3] = udq; -#line 14909 "" +#line 14969 "" s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128); -#line 14910 "" +#line 14970 "" lnote += 10; -#line 14911 "" +#line 14971 "" } -#line 14912 "" +#line 14972 "" if (bit_test(isdat3[isdat],0)) { /* Curvature tweak on termination of 1st seg */ -#line 14916 "" +#line 14976 "" imid = igetbits_(&isdat3[isdat], &c__6, &c__2) - 32; /* Invoke macro (from pmx.tex) that redefines \tslur as r'qd. mapping: */ @@ -35292,82 +35411,82 @@ L5: /* 6 HH */ /* Writing concatenation */ -#line 14925 "" +#line 14985 "" i__5[0] = lnote, a__4[0] = notexq; -#line 14925 "" +#line 14985 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 14925 "" +#line 14985 "" i__5[1] = 1, a__4[1] = ch__1; -#line 14925 "" +#line 14985 "" i__5[2] = 7, a__4[2] = "psforts"; -#line 14925 "" +#line 14985 "" i__1 = imid + 48; -#line 14925 "" +#line 14985 "" chax_(ch__2, (ftnlen)1, &i__1); -#line 14925 "" +#line 14985 "" i__5[3] = 1, a__4[3] = ch__2; -#line 14925 "" +#line 14985 "" s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128); -#line 14926 "" +#line 14986 "" lnote += 9; /* Zero out the flag in case there's a different curv on term of 2nd, */ -#line 14930 "" +#line 14990 "" isdat3[isdat] = bit_clear(isdat3[isdat],0); -#line 14931 "" +#line 14991 "" } /* Add the command name */ -#line 14935 "" +#line 14995 "" if (*ispstie) { /* Writing concatenation */ -#line 14936 "" +#line 14996 "" i__5[0] = lnote, a__4[0] = notexq; -#line 14936 "" +#line 14996 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 14936 "" +#line 14996 "" i__5[1] = 1, a__4[1] = ch__1; -#line 14936 "" +#line 14996 "" i__5[2] = 2, a__4[2] = "is"; -#line 14936 "" +#line 14996 "" i__5[3] = 1, a__4[3] = udq; -#line 14936 "" +#line 14996 "" s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128); -#line 14937 "" +#line 14997 "" lnote += 4; -#line 14938 "" +#line 14998 "" } else if (tie) { /* Writing concatenation */ -#line 14939 "" +#line 14999 "" i__3[0] = lnote, a__2[0] = notexq; -#line 14939 "" +#line 14999 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 14939 "" +#line 14999 "" i__3[1] = 1, a__2[1] = ch__1; -#line 14939 "" +#line 14999 "" i__3[2] = 4, a__2[2] = "ttie"; -#line 14939 "" +#line 14999 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128); -#line 14940 "" +#line 15000 "" lnote += 5; -#line 14941 "" +#line 15001 "" } else { /* Writing concatenation */ -#line 14942 "" +#line 15002 "" i__3[0] = lnote, a__2[0] = notexq; -#line 14942 "" +#line 15002 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 14942 "" +#line 15002 "" i__3[1] = 1, a__2[1] = ch__1; -#line 14942 "" +#line 15002 "" i__3[2] = 5, a__2[2] = "tslur"; -#line 14942 "" +#line 15002 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128); -#line 14943 "" +#line 15003 "" lnote += 6; -#line 14944 "" +#line 15004 "" } /* Add index */ @@ -35379,214 +35498,214 @@ L5: /* notexq = notexq(1:lnote)//'{1'//chax(49-ndx)//'}' */ /* lnote = lnote+4 */ /* end if */ -#line 14955 "" +#line 15015 "" if (23 - ndx < 10) { /* Writing concatenation */ -#line 14956 "" +#line 15016 "" i__2[0] = lnote, a__1[0] = notexq; -#line 14956 "" +#line 15016 "" i__1 = 71 - ndx; -#line 14956 "" +#line 15016 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 14956 "" +#line 15016 "" i__2[1] = 1, a__1[1] = ch__1; -#line 14956 "" +#line 15016 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128); -#line 14957 "" +#line 15017 "" ++lnote; -#line 14958 "" +#line 15018 "" } else if (23 - ndx < 20) { /* Writing concatenation */ -#line 14959 "" +#line 15019 "" i__5[0] = lnote, a__4[0] = notexq; -#line 14959 "" +#line 15019 "" i__5[1] = 2, a__4[1] = "{1"; -#line 14959 "" +#line 15019 "" i__1 = 61 - ndx; -#line 14959 "" +#line 15019 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 14959 "" +#line 15019 "" i__5[2] = 1, a__4[2] = ch__1; -#line 14959 "" +#line 15019 "" i__5[3] = 1, a__4[3] = "}"; -#line 14959 "" +#line 15019 "" s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128); -#line 14960 "" +#line 15020 "" lnote += 4; -#line 14961 "" +#line 15021 "" } else { /* Writing concatenation */ -#line 14962 "" +#line 15022 "" i__5[0] = lnote, a__4[0] = notexq; -#line 14962 "" +#line 15022 "" i__5[1] = 2, a__4[1] = "{2"; -#line 14962 "" +#line 15022 "" i__1 = 51 - ndx; -#line 14962 "" +#line 15022 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 14962 "" +#line 15022 "" i__5[2] = 1, a__4[2] = ch__1; -#line 14962 "" +#line 15022 "" i__5[3] = 1, a__4[3] = "}"; -#line 14962 "" +#line 15022 "" s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128); -#line 14963 "" +#line 15023 "" lnote += 4; -#line 14964 "" +#line 15024 "" } -#line 14965 "" +#line 15025 "" if (*ispstie || ! tie) { /* Add note name for slur height */ -#line 14969 "" +#line 15029 "" comoct_1.noctup = 0; -#line 14970 "" +#line 15030 "" ncm = igetbits_(&isdat3[isdat], &c__8, &c__22); -#line 14971 "" +#line 15031 "" if (ncm == 23) { -#line 14971 "" +#line 15031 "" comoct_1.noctup = -2; -#line 14971 "" +#line 15031 "" } /* call notefq(noteq,lnoten,nolev,ncm) */ -#line 14973 "" +#line 15033 "" notefq_(noteq, &lnoten, &islhgt, &ncm, (ftnlen)8); /* Writing concatenation */ -#line 14974 "" +#line 15034 "" i__5[0] = lnote, a__4[0] = notexq; -#line 14974 "" +#line 15034 "" i__5[1] = 1, a__4[1] = "{"; -#line 14974 "" +#line 15034 "" i__5[2] = lnoten, a__4[2] = noteq; -#line 14974 "" +#line 15034 "" i__5[3] = 1, a__4[3] = "}"; -#line 14974 "" +#line 15034 "" s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128); -#line 14975 "" +#line 15035 "" lnote = lnote + 1 + lnoten + 1; -#line 14976 "" +#line 15036 "" } -#line 14977 "" +#line 15037 "" if (*ispstie) { /* Horizontal shift start of new thing */ /* Writing concatenation */ -#line 14981 "" +#line 15041 "" i__2[0] = lnote, a__1[0] = notexq; -#line 14981 "" +#line 15041 "" i__2[1] = 1, a__1[1] = "{"; -#line 14981 "" +#line 15041 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128); -#line 14982 "" +#line 15042 "" ++lnote; /* ihoff = ihoff-13 */ -#line 14984 "" +#line 15044 "" if (tie) { -#line 14985 "" +#line 15045 "" ihoff += -12; -#line 14986 "" +#line 15046 "" } else { -#line 14987 "" +#line 15047 "" ihoff += -7; -#line 14988 "" +#line 15048 "" } -#line 14989 "" +#line 15049 "" if (ihoff < 0) { -#line 14990 "" +#line 15050 "" ihoff = -ihoff; /* Writing concatenation */ -#line 14991 "" +#line 15051 "" i__2[0] = lnote, a__1[0] = notexq; -#line 14991 "" +#line 15051 "" i__2[1] = 1, a__1[1] = "-"; -#line 14991 "" +#line 15051 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128); -#line 14992 "" +#line 15052 "" ++lnote; -#line 14993 "" +#line 15053 "" } -#line 14994 "" +#line 15054 "" r__1 = ihoff * .1f; -#line 14994 "" +#line 15054 "" writflot_(&r__1, notexq, &lnote, (ftnlen)128); /* Writing concatenation */ -#line 14995 "" +#line 15055 "" i__2[0] = lnote, a__1[0] = notexq; -#line 14995 "" +#line 15055 "" i__2[1] = 1, a__1[1] = "}"; -#line 14995 "" +#line 15055 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128); -#line 14996 "" +#line 15056 "" ++lnote; -#line 14997 "" +#line 15057 "" } /* Add closing stuff */ -#line 15001 "" +#line 15061 "" if (*ispstie) { /* Writing concatenation */ -#line 15002 "" +#line 15062 "" i__4[0] = lnote, a__3[0] = notexq; -#line 15002 "" +#line 15062 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 15002 "" +#line 15062 "" i__4[1] = 1, a__3[1] = ch__1; -#line 15002 "" +#line 15062 "" i__4[2] = 4, a__3[2] = "off{"; -#line 15002 "" +#line 15062 "" chax_(ch__2, (ftnlen)1, &c__92); -#line 15002 "" +#line 15062 "" i__4[3] = 1, a__3[3] = ch__2; -#line 15002 "" +#line 15062 "" i__4[4] = 14, a__3[4] = "afterruleskip}"; -#line 15002 "" +#line 15062 "" s_cat(notexq, a__3, i__4, &c__5, (ftnlen)128); -#line 15004 "" +#line 15064 "" lnote += 20; -#line 15005 "" +#line 15065 "" } else { /* Writing concatenation */ -#line 15006 "" +#line 15066 "" i__2[0] = lnote, a__1[0] = notexq; -#line 15006 "" +#line 15066 "" i__2[1] = 1, a__1[1] = "}"; -#line 15006 "" +#line 15066 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128); -#line 15007 "" +#line 15067 "" ++lnote; -#line 15008 "" +#line 15068 "" } /* Writing concatenation */ -#line 15009 "" +#line 15069 "" i__3[0] = lnote, a__2[0] = notexq; -#line 15009 "" +#line 15069 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 15009 "" +#line 15069 "" i__3[1] = 1, a__2[1] = ch__1; -#line 15009 "" +#line 15069 "" i__3[2] = 3, a__2[2] = "en%"; -#line 15009 "" +#line 15069 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128); -#line 15010 "" +#line 15070 "" lnote += 4; -#line 15011 "" - s_wsfe(&io___896); -#line 15011 "" +#line 15071 "" + s_wsfe(&io___898); +#line 15071 "" do_fio(&c__1, notexq, lnote); -#line 15011 "" +#line 15071 "" e_wsfe(); -#line 15012 "" +#line 15072 "" L1: -#line 15012 "" +#line 15072 "" ; -#line 15012 "" +#line 15072 "" } -#line 15013 "" +#line 15073 "" *ispstie = ! (*ispstie); -#line 15014 "" +#line 15074 "" return 0; } /* linebreakties_ */ @@ -35615,250 +35734,250 @@ L1: ftnlen); /* Fortran I/O blocks */ - static cilist io___900 = { 0, 6, 0, 0, 0 }; - static cilist io___901 = { 0, 6, 0, 0, 0 }; - static cilist io___902 = { 0, 15, 0, "(/,a)", 0 }; - static cilist io___903 = { 0, 11, 0, "(a)", 0 }; - static cilist io___904 = { 0, 16, 0, "(a)", 0 }; + static cilist io___902 = { 0, 6, 0, 0, 0 }; + static cilist io___903 = { 0, 6, 0, 0, 0 }; + static cilist io___904 = { 0, 15, 0, "(/,a)", 0 }; + static cilist io___905 = { 0, 11, 0, "(a)", 0 }; + static cilist io___906 = { 0, 16, 0, "(a)", 0 }; -#line 15032 "" +#line 15092 "" /* Parameter adjustments */ -#line 15032 "" +#line 15092 "" islur -= 25; -#line 15032 "" +#line 15092 "" -#line 15032 "" +#line 15092 "" /* Function Body */ -#line 15032 "" +#line 15092 "" merge = FALSE_; -#line 15033 "" +#line 15093 "" if (comgrace_1.nlit > 0) { -#line 15034 "" +#line 15094 "" merge = *iv == comgrace_1.ivlit[comgrace_1.nlit - 1] && *nnl == comgrace_1.iplit[comgrace_1.nlit - 1]; -#line 15035 "" +#line 15095 "" } -#line 15036 "" +#line 15096 "" ++comgrace_1.nlit; -#line 15037 "" +#line 15097 "" comgrace_1.ivlit[comgrace_1.nlit - 1] = *iv; -#line 15038 "" +#line 15098 "" comgrace_1.iplit[comgrace_1.nlit - 1] = *nnl; -#line 15039 "" +#line 15099 "" itype = 1; -#line 15040 "" +#line 15100 "" L17: -#line 15040 "" +#line 15100 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 15041 "" +#line 15101 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 15041 "" +#line 15101 "" if (*(unsigned char *)durq == *(unsigned char *)&ch__1[0]) { -#line 15042 "" +#line 15102 "" ++itype; -#line 15043 "" +#line 15103 "" goto L17; -#line 15044 "" +#line 15104 "" } /* Writing concatenation */ -#line 15045 "" +#line 15105 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 15045 "" +#line 15105 "" i__1[0] = 1, a__1[0] = ch__1; -#line 15045 "" +#line 15105 "" i__1[1] = 1, a__1[1] = durq; -#line 15045 "" +#line 15105 "" s_cat(comgrace_1.litq + (comgrace_1.nlit - 1 << 7), a__1, i__1, &c__2, ( ftnlen)128); -#line 15046 "" +#line 15106 "" comgrace_1.lenlit[comgrace_1.nlit - 1] = 2; -#line 15047 "" +#line 15107 "" L18: -#line 15047 "" +#line 15107 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 15048 "" +#line 15108 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 15048 "" +#line 15108 "" if (*(unsigned char *)durq == *(unsigned char *)&ch__1[0]) { -#line 15049 "" +#line 15109 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 15050 "" +#line 15110 "" if (*(unsigned char *)durq != ' ') { /* Starting a new tex command within the string */ /* Writing concatenation */ -#line 15054 "" +#line 15114 "" i__2[0] = comgrace_1.lenlit[comgrace_1.nlit - 1], a__2[0] = comgrace_1.litq + (comgrace_1.nlit - 1 << 7); -#line 15054 "" +#line 15114 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 15054 "" +#line 15114 "" i__2[1] = 1, a__2[1] = ch__1; -#line 15054 "" +#line 15114 "" i__2[2] = 1, a__2[2] = durq; -#line 15054 "" +#line 15114 "" s_cat(comgrace_1.litq + (comgrace_1.nlit - 1 << 7), a__2, i__2, & c__3, (ftnlen)128); -#line 15055 "" +#line 15115 "" comgrace_1.lenlit[comgrace_1.nlit - 1] += 2; -#line 15056 "" +#line 15116 "" goto L18; -#line 15057 "" +#line 15117 "" } -#line 15058 "" +#line 15118 "" } else { /* Writing concatenation */ -#line 15059 "" +#line 15119 "" i__1[0] = comgrace_1.lenlit[comgrace_1.nlit - 1], a__1[0] = comgrace_1.litq + (comgrace_1.nlit - 1 << 7); -#line 15059 "" +#line 15119 "" i__1[1] = 1, a__1[1] = durq; -#line 15059 "" +#line 15119 "" s_cat(comgrace_1.litq + (comgrace_1.nlit - 1 << 7), a__1, i__1, &c__2, (ftnlen)128); -#line 15060 "" +#line 15120 "" ++comgrace_1.lenlit[comgrace_1.nlit - 1]; -#line 15061 "" +#line 15121 "" goto L18; -#line 15062 "" +#line 15122 "" } /* If here, just read backslash-blank so string is done */ -#line 15066 "" +#line 15126 "" if (itype == 1) { -#line 15067 "" +#line 15127 "" islur[*iv + *nnl * 24] = bit_set(islur[*iv + *nnl * 24],16); -#line 15068 "" +#line 15128 "" if (merge) { /* There are 2 separate strings on the same note, so merge them. */ -#line 15072 "" +#line 15132 "" --comgrace_1.nlit; /* Writing concatenation */ -#line 15073 "" +#line 15133 "" i__1[0] = comgrace_1.lenlit[comgrace_1.nlit - 1], a__1[0] = comgrace_1.litq + (comgrace_1.nlit - 1 << 7); -#line 15073 "" +#line 15133 "" i__1[1] = comgrace_1.lenlit[comgrace_1.nlit], a__1[1] = comgrace_1.litq + (comgrace_1.nlit << 7); -#line 15073 "" +#line 15133 "" s_cat(comgrace_1.litq + (comgrace_1.nlit - 1 << 7), a__1, i__1, & c__2, (ftnlen)128); -#line 15075 "" +#line 15135 "" comgrace_1.lenlit[comgrace_1.nlit - 1] += comgrace_1.lenlit[ comgrace_1.nlit]; -#line 15076 "" +#line 15136 "" if (comgrace_1.lenlit[comgrace_1.nlit - 1] > 128) { -#line 15077 "" - s_wsle(&io___900); -#line 15077 "" +#line 15137 "" + s_wsle(&io___902); +#line 15137 "" e_wsle(); -#line 15078 "" - s_wsle(&io___901); -#line 15078 "" +#line 15138 "" + s_wsle(&io___903); +#line 15138 "" do_lio(&c__9, &c__1, "Merged type-1 TeX strings longer than "\ "128 characters", (ftnlen)52); -#line 15078 "" +#line 15138 "" e_wsle(); -#line 15080 "" - s_wsfe(&io___902); -#line 15080 "" +#line 15140 "" + s_wsfe(&io___904); +#line 15140 "" do_fio(&c__1, "Merged type-1 TeX strings longer than 128 cha"\ "racters", (ftnlen)52); -#line 15080 "" +#line 15140 "" e_wsfe(); -#line 15082 "" +#line 15142 "" stop1_(); -#line 15083 "" +#line 15143 "" } -#line 15084 "" +#line 15144 "" } -#line 15085 "" +#line 15145 "" } else { /* Type 2 or 3. */ -#line 15089 "" +#line 15149 "" if (itype == 3) { /* Write the string NOW */ -#line 15093 "" +#line 15153 "" if (comlast_1.islast) { -#line 15093 "" - s_wsfe(&io___903); +#line 15153 "" + s_wsfe(&io___905); /* Writing concatenation */ -#line 15093 "" +#line 15153 "" i__1[0] = comgrace_1.lenlit[comgrace_1.nlit - 1], a__1[0] = comgrace_1.litq + (comgrace_1.nlit - 1 << 7); -#line 15093 "" +#line 15153 "" i__1[1] = 1, a__1[1] = "%"; -#line 15093 "" +#line 15153 "" s_cat(ch__2, a__1, i__1, &c__2, (ftnlen)129); -#line 15093 "" +#line 15153 "" do_fio(&c__1, ch__2, comgrace_1.lenlit[comgrace_1.nlit - 1] + 1); -#line 15093 "" +#line 15153 "" e_wsfe(); -#line 15093 "" +#line 15153 "" } -#line 15095 "" +#line 15155 "" } else { /* Must go at top */ -#line 15099 "" +#line 15159 "" if (! (*topmods)) { -#line 15100 "" +#line 15160 "" *topmods = TRUE_; -#line 15101 "" +#line 15161 "" o__1.oerr = 0; -#line 15101 "" +#line 15161 "" o__1.ounit = 16; -#line 15101 "" +#line 15161 "" o__1.ofnm = 0; -#line 15101 "" +#line 15161 "" o__1.orl = 0; -#line 15101 "" +#line 15161 "" o__1.osta = "SCRATCH"; -#line 15101 "" +#line 15161 "" o__1.oacc = 0; -#line 15101 "" +#line 15161 "" o__1.ofm = 0; -#line 15101 "" +#line 15161 "" o__1.oblnk = 0; -#line 15101 "" +#line 15161 "" f_open(&o__1); -#line 15102 "" +#line 15162 "" } /* Must write '%' here rather than later, in case string ends with blank. */ -#line 15106 "" - s_wsfe(&io___904); +#line 15166 "" + s_wsfe(&io___906); /* Writing concatenation */ -#line 15106 "" +#line 15166 "" i__1[0] = comgrace_1.lenlit[comgrace_1.nlit - 1], a__1[0] = comgrace_1.litq + (comgrace_1.nlit - 1 << 7); -#line 15106 "" +#line 15166 "" i__1[1] = 1, a__1[1] = "%"; -#line 15106 "" +#line 15166 "" s_cat(ch__2, a__1, i__1, &c__2, (ftnlen)129); -#line 15106 "" +#line 15166 "" do_fio(&c__1, ch__2, comgrace_1.lenlit[comgrace_1.nlit - 1] + 1); -#line 15106 "" +#line 15166 "" e_wsfe(); -#line 15107 "" +#line 15167 "" } -#line 15108 "" +#line 15168 "" --comgrace_1.nlit; -#line 15109 "" +#line 15169 "" } -#line 15110 "" +#line 15170 "" return 0; } /* littex_ */ @@ -35867,19 +35986,19 @@ integer llen_(char *strq, integer *n, ftnlen strq_len) /* System generated locals */ integer ret_val; -#line 15114 "" +#line 15174 "" for (ret_val = *n; ret_val >= 0; --ret_val) { -#line 15115 "" +#line 15175 "" if (*(unsigned char *)&strq[ret_val - 1] != ' ') { -#line 15115 "" +#line 15175 "" return ret_val; -#line 15115 "" +#line 15175 "" } -#line 15116 "" +#line 15176 "" /* L1: */ -#line 15116 "" +#line 15176 "" } -#line 15117 "" +#line 15177 "" return ret_val; } /* llen_ */ @@ -35896,9 +36015,9 @@ integer log2_(integer *n) /* log2 = alog(1.*n)/0.6931472+.0001 */ /* log2 = dlog(1.d0*n)/0.693147181d0+.00000001d0 */ -#line 15124 "" +#line 15184 "" ret_val = (integer) (log(*n * 1.) / .693147181 + 2e-8); -#line 15125 "" +#line 15185 "" return ret_val; } /* log2_ */ @@ -35926,245 +36045,245 @@ integer log2_(integer *n) extern /* Subroutine */ int setbits_(integer *, integer *, integer *, integer *); -#line 15144 "" +#line 15204 "" all_1.ibm1[commvl_1.ivx + *numnew * 24 - 25] = *nip1; -#line 15145 "" +#line 15205 "" all_1.ibm2[commvl_1.ivx + *numnew * 24 - 25] = *nip2; -#line 15146 "" +#line 15206 "" numnow = *numnew; -#line 15147 "" +#line 15207 "" if (*numnew > 1) { /* If it starts before any others, must put it in order */ -#line 15151 "" +#line 15211 "" for (ib = *numnew - 1; ib >= 1; --ib) { -#line 15152 "" +#line 15212 "" if (all_1.ibm1[commvl_1.ivx + ib * 24 - 25] < *nip1) { -#line 15152 "" +#line 15212 "" goto L12; -#line 15152 "" +#line 15212 "" } -#line 15153 "" +#line 15213 "" all_1.ibm1[commvl_1.ivx + (ib + 1) * 24 - 25] = all_1.ibm1[ commvl_1.ivx + ib * 24 - 25]; -#line 15154 "" +#line 15214 "" all_1.ibm2[commvl_1.ivx + (ib + 1) * 24 - 25] = all_1.ibm2[ commvl_1.ivx + ib * 24 - 25]; -#line 15155 "" +#line 15215 "" *(unsigned char *)&all_1.ulq[commvl_1.ivx + (ib + 1) * 24 - 25] = *(unsigned char *)&all_1.ulq[commvl_1.ivx + ib * 24 - 25]; -#line 15156 "" +#line 15216 "" all_1.ibm1[commvl_1.ivx + ib * 24 - 25] = *nip1; -#line 15157 "" +#line 15217 "" all_1.ibm2[commvl_1.ivx + ib * 24 - 25] = *nip2; -#line 15158 "" +#line 15218 "" numnow = ib; -#line 15159 "" +#line 15219 "" /* L11: */ -#line 15159 "" +#line 15219 "" } -#line 15160 "" +#line 15220 "" L12: -#line 15161 "" +#line 15221 "" ; -#line 15161 "" +#line 15221 "" } -#line 15162 "" +#line 15222 "" sum = 0.f; /* Beam has non-xtup within */ -#line 15166 "" +#line 15226 "" nrests = 0; -#line 15167 "" +#line 15227 "" isxtup = FALSE_; -#line 15168 "" +#line 15228 "" i__1 = *nip2; -#line 15168 "" +#line 15228 "" for (iip = *nip1; iip <= i__1; ++iip) { -#line 15169 "" +#line 15229 "" if (bit_test(all_1.islur[commvl_1.ivx + *nip1 * 24 - 25],21)) { /* Forced multiplicity */ /* mult(ivx,iip) = igetbits(islur(ivx,nip1),3,22) */ -#line 15174 "" +#line 15234 "" i__2 = igetbits_(&all_1.islur[commvl_1.ivx + *nip1 * 24 - 25], & c__3, &c__22) + 8; -#line 15174 "" +#line 15234 "" setbits_(&all_1.mult[commvl_1.ivx + iip * 24 - 25], &c__4, &c__0, &i__2); -#line 15176 "" +#line 15236 "" } else if (! isxtup) { -#line 15177 "" +#line 15237 "" if (all_1.nodur[commvl_1.ivx + iip * 24 - 25] > 0) { /* mult(ivx,iip) = 4-log2(nodur(ivx,iip)) */ -#line 15179 "" +#line 15239 "" i__2 = 4 - log2_(&all_1.nodur[commvl_1.ivx + iip * 24 - 25]) + 8; -#line 15179 "" +#line 15239 "" setbits_(&all_1.mult[commvl_1.ivx + iip * 24 - 25], &c__4, & c__0, &i__2); -#line 15180 "" +#line 15240 "" } else { /* Start xtup within forced beam */ -#line 15184 "" +#line 15244 "" isxtup = TRUE_; -#line 15185 "" +#line 15245 "" iip1 = iip; -#line 15186 "" +#line 15246 "" } -#line 15187 "" +#line 15247 "" } else if (isxtup && all_1.nodur[commvl_1.ivx + iip * 24 - 25] > 0) { /* End of xtup within forced beam. Must count doubled notes */ -#line 15191 "" +#line 15251 "" ndoub = 0; -#line 15192 "" +#line 15252 "" i__2 = iip; -#line 15192 "" +#line 15252 "" for (iiip = iip1; iiip <= i__2; ++iiip) { -#line 15193 "" +#line 15253 "" if (bit_test(all_1.nacc[commvl_1.ivx + iiip * 24 - 25],18)) { -#line 15193 "" +#line 15253 "" ++ndoub; -#line 15193 "" +#line 15253 "" } -#line 15194 "" +#line 15254 "" /* L1: */ -#line 15194 "" +#line 15254 "" } -#line 15195 "" +#line 15255 "" multx = (integer) ((log(iip + 1.f - iip1 + ndoub) * .952f - log( all_1.nodur[commvl_1.ivx + iip * 24 - 25] / 2.f)) / .69315f + 13.429f) - 10; -#line 15197 "" +#line 15257 "" i__2 = iip; -#line 15197 "" +#line 15257 "" for (iiip = iip1; iiip <= i__2; ++iiip) { /* mult(ivx,iiip) = multx */ -#line 15199 "" +#line 15259 "" i__3 = multx + 8; -#line 15199 "" +#line 15259 "" setbits_(&all_1.mult[commvl_1.ivx + iiip * 24 - 25], &c__4, & c__0, &i__3); /* Note the following still works after making mult only the 1st 4 bits. */ -#line 15203 "" +#line 15263 "" if (bit_test(all_1.nacc[commvl_1.ivx + iiip * 24 - 25],18)) { -#line 15203 "" +#line 15263 "" --all_1.mult[commvl_1.ivx + iiip * 24 - 25]; -#line 15203 "" +#line 15263 "" } -#line 15205 "" +#line 15265 "" if (bit_test(all_1.nacc[commvl_1.ivx + iiip * 24 - 25],19)) { -#line 15206 "" +#line 15266 "" ++all_1.mult[commvl_1.ivx + iiip * 24 - 25]; -#line 15207 "" +#line 15267 "" } else if (iiip > 1) { -#line 15208 "" +#line 15268 "" if (bit_test(all_1.nacc[commvl_1.ivx + (iiip - 1) * 24 - 25],19)) { -#line 15208 "" +#line 15268 "" ++all_1.mult[commvl_1.ivx + iiip * 24 - 25]; -#line 15208 "" +#line 15268 "" } -#line 15210 "" +#line 15270 "" } -#line 15211 "" +#line 15271 "" /* L74: */ -#line 15211 "" +#line 15271 "" } -#line 15212 "" +#line 15272 "" isxtup = FALSE_; -#line 15213 "" +#line 15273 "" } -#line 15214 "" +#line 15274 "" if (bit_test(all_1.irest[commvl_1.ivx + iip * 24 - 25],0)) { -#line 15215 "" +#line 15275 "" ++nrests; -#line 15216 "" +#line 15276 "" } else { -#line 15217 "" +#line 15277 "" sum += all_1.nolev[commvl_1.ivx + iip * 24 - 25]; -#line 15218 "" +#line 15278 "" } -#line 15219 "" +#line 15279 "" /* L9: */ -#line 15219 "" +#line 15279 "" } /* Set beam up-down-ness */ -#line 15223 "" +#line 15283 "" if (comfb_1.ifb > 0 && *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + max(1,comfb_1.ifb) * 24 - 25] != 'x') { -#line 15224 "" +#line 15284 "" if (*(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.ifb * 24 - 25] == 'f') { /* Get default, then trade "l" and "u" */ -#line 15228 "" +#line 15288 "" r__1 = sum / (*nip2 - *nip1 + 1 - nrests); -#line 15228 "" +#line 15288 "" i__1 = ncmid_(&all_1.iv, nip1); -#line 15228 "" +#line 15288 "" ulfq_(ch__1, (ftnlen)1, &r__1, &i__1); -#line 15228 "" +#line 15288 "" *(unsigned char *)&all_1.ulq[commvl_1.ivx + numnow * 24 - 25] = ( char) (225 - *(unsigned char *)&ch__1[0]); -#line 15230 "" +#line 15290 "" } else { -#line 15231 "" +#line 15291 "" *(unsigned char *)&all_1.ulq[commvl_1.ivx + comfb_1.ifb * 24 - 25] = *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.ifb * 24 - 25]; -#line 15232 "" +#line 15292 "" } /* This probably works only because forced beams are done first, so they */ /* don't have to be re-sorted within each voice. ???? */ -#line 15237 "" +#line 15297 "" } else if (commvl_1.nvmx[all_1.iv - 1] == 2) { /* Multi-voice per staff */ -#line 15241 "" +#line 15301 "" if (commvl_1.ivx <= all_1.nv) { -#line 15242 "" +#line 15302 "" *(unsigned char *)&all_1.ulq[commvl_1.ivx + numnow * 24 - 25] = 'l'; -#line 15243 "" +#line 15303 "" } else { -#line 15244 "" +#line 15304 "" *(unsigned char *)&all_1.ulq[commvl_1.ivx + numnow * 24 - 25] = 'u'; -#line 15245 "" +#line 15305 "" } -#line 15246 "" +#line 15306 "" } else { /* Defaults */ -#line 15250 "" +#line 15310 "" r__1 = sum / (*nip2 - *nip1 + 1 - nrests); -#line 15250 "" +#line 15310 "" i__1 = ncmid_(&all_1.iv, nip1); -#line 15250 "" +#line 15310 "" ulfq_(ch__1, (ftnlen)1, &r__1, &i__1); -#line 15250 "" +#line 15310 "" *(unsigned char *)&all_1.ulq[commvl_1.ivx + numnow * 24 - 25] = *( unsigned char *)&ch__1[0]; -#line 15252 "" +#line 15312 "" } -#line 15253 "" +#line 15313 "" return 0; } /* logbeam_ */ @@ -36187,73 +36306,73 @@ L12: /* This is called when (a) macro recording is just starting and */ /* (b) at the start of a new line, if recording is on */ -#line 15269 "" +#line 15329 "" inbuff_1.lbuf[0] = inbuff_1.lbuf[0]; -#line 15270 "" +#line 15330 "" if (! commac_1.mrecord) { /* Starting the macro */ -#line 15274 "" +#line 15334 "" c1ommac_1.ip1mac[commac_1.macnum - 1] = inbuff_1.ipbuf - inbuff_1.lbuf[inbuff_1.ilbuf - 2] + *iccount; -#line 15275 "" +#line 15335 "" c1ommac_1.il1mac[commac_1.macnum - 1] = inbuff_1.ilbuf - 1; -#line 15276 "" +#line 15336 "" c1ommac_1.ic1mac[commac_1.macnum - 1] = *iccount; -#line 15277 "" +#line 15337 "" commac_1.mrecord = TRUE_; -#line 15278 "" +#line 15338 "" } -#line 15279 "" +#line 15339 "" if (*iccount < 128) { -#line 15280 "" +#line 15340 "" i__1 = *iccount; -#line 15280 "" +#line 15340 "" *ndxm = i_indx(lineq + i__1, "M", 128 - i__1, (ftnlen)1); -#line 15281 "" +#line 15341 "" if (*ndxm > 0) { -#line 15281 "" +#line 15341 "" i__1 = *iccount; -#line 15281 "" +#line 15341 "" i__2 = 128 - *iccount; -#line 15281 "" +#line 15341 "" *ndxm = ntindex_(lineq + i__1, "M", &i__2, 128 - i__1, (ftnlen)1); -#line 15281 "" +#line 15341 "" } -#line 15283 "" +#line 15343 "" if (*ndxm > 0) { /* This line ends the macro. */ -#line 15287 "" +#line 15347 "" i__1 = *iccount + *ndxm; -#line 15287 "" +#line 15347 "" if (s_cmp(lineq + i__1, " ", *iccount + *ndxm + 1 - i__1, (ftnlen) 1) != 0) { -#line 15288 "" +#line 15348 "" i__1 = *iccount + *ndxm + 1; -#line 15288 "" +#line 15348 "" i__2 = *ibarcnt - *ibaroff + *nbars + 1; -#line 15288 "" +#line 15348 "" errmsg_(lineq, &i__1, &i__2, "Improper macro termination!", ( ftnlen)128, (ftnlen)27); -#line 15290 "" +#line 15350 "" stop1_(); -#line 15291 "" +#line 15351 "" } -#line 15292 "" +#line 15352 "" c1ommac_1.ip2mac[commac_1.macnum - 1] = inbuff_1.ipbuf - inbuff_1.lbuf[inbuff_1.ilbuf - 2] + *iccount + *ndxm; -#line 15293 "" +#line 15353 "" c1ommac_1.il2mac[commac_1.macnum - 1] = inbuff_1.ilbuf - 1; -#line 15294 "" +#line 15354 "" commac_1.mrecord = FALSE_; -#line 15295 "" +#line 15355 "" } -#line 15296 "" +#line 15356 "" } -#line 15297 "" +#line 15357 "" return 0; } /* m1rec1_ */ @@ -36302,182 +36421,182 @@ L12: setbits_(integer *, integer *, integer *, integer *); /* Fortran I/O blocks */ - static cilist io___949 = { 0, 6, 0, 0, 0 }; - static cilist io___950 = { 0, 6, 0, 0, 0 }; - static cilist io___951 = { 0, 15, 0, "(/a)", 0 }; + static cilist io___951 = { 0, 6, 0, 0, 0 }; + static cilist io___952 = { 0, 6, 0, 0, 0 }; + static cilist io___953 = { 0, 15, 0, "(/a)", 0 }; /* Above are factors for grace note, clef spacing. (fraction of wheadpt) */ /* In 1.04, moved to block data subprogram */ -#line 15389 "" +#line 15449 "" /* Parameter adjustments */ -#line 15389 "" +#line 15449 "" --istart; -#line 15389 "" +#line 15449 "" --numbms; -#line 15389 "" +#line 15449 "" --istop; -#line 15389 "" +#line 15449 "" --squez; -#line 15389 "" +#line 15449 "" --cwrest; -#line 15389 "" +#line 15449 "" --tstart; -#line 15389 "" +#line 15449 "" -#line 15389 "" +#line 15449 "" /* Function Body */ -#line 15389 "" +#line 15449 "" if (commidi_1.ismidi) { /* Initialize for this bar the accidental counter for the midi file. */ /* naccim(icm) = # of accidentals from earlier in the bar */ -#line 15394 "" +#line 15454 "" i__1 = all_1.nv; -#line 15394 "" +#line 15454 "" for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) { -#line 15395 "" +#line 15455 "" i__2 = commvl_1.nvmx[all_1.iv - 1]; -#line 15395 "" +#line 15455 "" for (kv = 1; kv <= i__2; ++kv) { -#line 15396 "" +#line 15456 "" commidi_1.naccim[commidi_1.midchan[all_1.iv + kv * 24 - 25]] = 0; -#line 15397 "" +#line 15457 "" /* L45: */ -#line 15397 "" +#line 15457 "" } -#line 15397 "" +#line 15457 "" } -#line 15398 "" +#line 15458 "" } /* Time from start of gulp to end of bar, used with forced beams */ -#line 15402 "" +#line 15462 "" tglp2 = (real) (all_1.lenb0 + all_1.ibar * all_1.lenb1); -#line 15403 "" +#line 15463 "" if (all_1.lenb0 > 0) { -#line 15403 "" +#line 15463 "" tglp2 -= all_1.lenb1; -#line 15403 "" +#line 15463 "" } -#line 15404 "" +#line 15464 "" *tglp1 = tglp2 - all_1.lenbar; /* infbmx will only be true if in xtup that is NOT in explicit forced beam. */ -#line 15408 "" +#line 15468 "" i__2 = all_1.nv; -#line 15408 "" +#line 15468 "" for (all_1.iv = 1; all_1.iv <= i__2; ++all_1.iv) { -#line 15409 "" +#line 15469 "" i__1 = commvl_1.nvmx[all_1.iv - 1]; -#line 15409 "" +#line 15469 "" for (kv = 1; kv <= i__1; ++kv) { -#line 15410 "" +#line 15470 "" commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25]; -#line 15411 "" +#line 15471 "" cwrest[commvl_1.ivx] = FALSE_; -#line 15412 "" +#line 15472 "" infbmx[commvl_1.ivx - 1] = FALSE_; -#line 15413 "" +#line 15473 "" inxtup[commvl_1.ivx - 1] = FALSE_; -#line 15414 "" +#line 15474 "" if (all_1.ibar > 1) { -#line 15415 "" +#line 15475 "" all_1.nn[commvl_1.ivx - 1] = all_1.nib[commvl_1.ivx + all_1.ibar * 24 - 25] - all_1.nib[commvl_1.ivx + ( all_1.ibar - 1) * 24 - 25]; -#line 15416 "" +#line 15476 "" } else { -#line 15417 "" +#line 15477 "" all_1.nn[commvl_1.ivx - 1] = all_1.nib[commvl_1.ivx + all_1.ibar * 24 - 25]; -#line 15418 "" +#line 15478 "" } -#line 15419 "" +#line 15479 "" /* L1: */ -#line 15419 "" +#line 15479 "" } -#line 15419 "" +#line 15479 "" } /* initialize list note counter, time(iv), curr. note(iv). The loop to 4 */ /* ONLY initializes each voice. */ -#line 15424 "" +#line 15484 "" in = 1; -#line 15425 "" +#line 15485 "" nxtup = 0; -#line 15426 "" +#line 15486 "" comarp_1.narp = 0; -#line 15427 "" +#line 15487 "" i__1 = all_1.nv; -#line 15427 "" +#line 15487 "" for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) { -#line 15428 "" +#line 15488 "" i__2 = commvl_1.nvmx[all_1.iv - 1]; -#line 15428 "" +#line 15488 "" for (kv = 1; kv <= i__2; ++kv) { -#line 15429 "" +#line 15489 "" commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25]; -#line 15430 "" +#line 15490 "" comcwrf_1.cwrferm[commvl_1.ivx - 1] = FALSE_; -#line 15431 "" +#line 15491 "" cnn[commvl_1.ivx - 1] = 1; -#line 15432 "" +#line 15492 "" all_1.ivxo[in - 1] = commvl_1.ivx; -#line 15433 "" +#line 15493 "" all_1.ipo[in - 1] = cnn[commvl_1.ivx - 1]; -#line 15434 "" +#line 15494 "" all_1.tnote[in - 1] = fnote_(all_1.nodur, &commvl_1.ivx, &c__1, all_1.nacc); -#line 15435 "" +#line 15495 "" all_1.to[in - 1] = 0.f; -#line 15436 "" +#line 15496 "" xit[commvl_1.ivx - 1] = all_1.tnote[in - 1]; /* Note that xit(ivx) is to END of note in voice, but it1xtup is start time. */ -#line 15440 "" +#line 15500 "" if (all_1.nodur[commvl_1.ivx + all_1.ipo[in - 1] * 24 - 25] == 0) { /* First note of xtuplet at start of bar in voice ivx. */ -#line 15444 "" +#line 15504 "" ++nxtup; -#line 15445 "" +#line 15505 "" nxtnow[commvl_1.ivx - 1] = nxtup; -#line 15446 "" +#line 15506 "" inxtup[commvl_1.ivx - 1] = TRUE_; -#line 15447 "" +#line 15507 "" t1xtup[nxtup - 1] = 0.f; /* Xtup at start of bar. If no explicit forced beam, start one, set */ /* signal infbmx, and save number ifbnow for use at termination. */ -#line 15452 "" +#line 15512 "" if (comfb_1.nfb[commvl_1.ivx - 1] > 0) { -#line 15453 "" +#line 15513 "" i__3 = comfb_1.nfb[commvl_1.ivx - 1]; -#line 15453 "" +#line 15513 "" for (comfb_1.ifb = 1; comfb_1.ifb <= i__3; ++comfb_1.ifb) { -#line 15454 "" +#line 15514 "" if (comfb_1.t1fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] > *tglp1 + xit[commvl_1.ivx - 1] + comtol_1.tol) { /* No explicit fb here; so exit loop and insert one. */ -#line 15458 "" +#line 15518 "" goto L61; -#line 15459 "" +#line 15519 "" } else if (comfb_1.t1fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] < *tglp1 + xit[commvl_1.ivx - 1] + comtol_1.tol && comfb_1.t2fb[commvl_1.ivx + @@ -36486,156 +36605,156 @@ L12: /* IS explicit fb here; must NOT insert one */ -#line 15464 "" +#line 15524 "" goto L62; -#line 15465 "" +#line 15525 "" } -#line 15466 "" +#line 15526 "" /* L60: */ -#line 15466 "" +#line 15526 "" } -#line 15467 "" +#line 15527 "" } -#line 15468 "" +#line 15528 "" L61: /* If here, xtup isn't in explicit fb, so must insert one */ -#line 15472 "" +#line 15532 "" infbmx[commvl_1.ivx - 1] = TRUE_; -#line 15473 "" +#line 15533 "" r__1 = t1xtup[nxtup - 1] + *tglp1; -#line 15473 "" +#line 15533 "" addfb_(comfb_1.nfb, &commvl_1.ivx, &r__1, comfb_1.t1fb, comfb_1.t2fb, comfb_1.ulfbq, &ifbadd, (ftnlen)1); -#line 15475 "" +#line 15535 "" ifbnow[commvl_1.ivx - 1] = ifbadd; -#line 15476 "" +#line 15536 "" } -#line 15477 "" +#line 15537 "" L62: -#line 15478 "" +#line 15538 "" if ((r__1 = xit[commvl_1.ivx - 1] - all_1.lenbar, dabs(r__1)) < comtol_1.tol) { -#line 15478 "" +#line 15538 "" xit[commvl_1.ivx - 1] = 1e3f; -#line 15478 "" +#line 15538 "" } -#line 15479 "" +#line 15539 "" ++in; -#line 15480 "" +#line 15540 "" /* L4: */ -#line 15480 "" +#line 15540 "" } -#line 15480 "" +#line 15540 "" } /* Build the list: This is a manual loop starting at 5 */ -#line 15484 "" +#line 15544 "" L5: /* Determine which voice comes next from end of notes done so far. */ /* tmin is the earliest ending time of notes done so far */ -#line 15489 "" +#line 15549 "" tmin = 1e3f; -#line 15490 "" +#line 15550 "" i__2 = all_1.nv; -#line 15490 "" +#line 15550 "" for (iiv = 1; iiv <= i__2; ++iiv) { -#line 15491 "" +#line 15551 "" i__1 = commvl_1.nvmx[iiv - 1]; -#line 15491 "" +#line 15551 "" for (kv = 1; kv <= i__1; ++kv) { -#line 15492 "" +#line 15552 "" iivx = commvl_1.ivmx[iiv + kv * 24 - 25]; /* Computing MIN */ -#line 15493 "" +#line 15553 "" r__1 = tmin, r__2 = xit[iivx - 1]; -#line 15493 "" +#line 15553 "" tminn = dmin(r__1,r__2); -#line 15494 "" +#line 15554 "" if (tminn < tmin - comtol_1.tol) { -#line 15495 "" +#line 15555 "" tmin = tminn; -#line 15496 "" +#line 15556 "" commvl_1.ivx = iivx; -#line 15497 "" +#line 15557 "" } -#line 15498 "" +#line 15558 "" /* L6: */ -#line 15498 "" +#line 15558 "" } -#line 15498 "" +#line 15558 "" } -#line 15499 "" +#line 15559 "" if ((r__1 = tmin - 1e3f, dabs(r__1)) < comtol_1.tol) { -#line 15499 "" +#line 15559 "" goto L7; -#line 15499 "" +#line 15559 "" } -#line 15500 "" +#line 15560 "" all_1.ivxo[in - 1] = commvl_1.ivx; -#line 15501 "" +#line 15561 "" ++cnn[commvl_1.ivx - 1]; -#line 15502 "" +#line 15562 "" all_1.ipo[in - 1] = cnn[commvl_1.ivx - 1]; -#line 15503 "" +#line 15563 "" all_1.to[in - 1] = tmin; /* Check if this voice is done */ -#line 15507 "" +#line 15567 "" all_1.tnote[in - 1] = fnote_(all_1.nodur, &commvl_1.ivx, &cnn[ commvl_1.ivx - 1], all_1.nacc); -#line 15508 "" +#line 15568 "" if (cnn[commvl_1.ivx - 1] == all_1.nn[commvl_1.ivx - 1]) { -#line 15509 "" +#line 15569 "" xit[commvl_1.ivx - 1] = 1e3f; -#line 15510 "" +#line 15570 "" } else { -#line 15511 "" +#line 15571 "" xit[commvl_1.ivx - 1] += all_1.tnote[in - 1]; -#line 15512 "" +#line 15572 "" } /* Flag xtups */ -#line 15516 "" +#line 15576 "" if (all_1.nodur[commvl_1.ivx + cnn[commvl_1.ivx - 1] * 24 - 25] == 0) { -#line 15517 "" +#line 15577 "" if (! inxtup[commvl_1.ivx - 1]) { /* First note of xtup, not at start of bar. */ -#line 15521 "" +#line 15581 "" ++nxtup; -#line 15522 "" +#line 15582 "" nxtnow[commvl_1.ivx - 1] = nxtup; -#line 15523 "" +#line 15583 "" inxtup[commvl_1.ivx - 1] = TRUE_; -#line 15524 "" +#line 15584 "" t1xtup[nxtup - 1] = xit[commvl_1.ivx - 1] - all_1.tnote[in - 1]; /* (Note: can't be on last note in voice, so xit(ivx) <> 1000) */ /* Put xtuplet in a forced beam if not already in forced beam */ -#line 15529 "" +#line 15589 "" if (comfb_1.nfb[commvl_1.ivx - 1] > 0) { -#line 15530 "" +#line 15590 "" i__1 = comfb_1.nfb[commvl_1.ivx - 1]; -#line 15530 "" +#line 15590 "" for (comfb_1.ifb = 1; comfb_1.ifb <= i__1; ++comfb_1.ifb) { -#line 15531 "" +#line 15591 "" if (comfb_1.t1fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] > * tglp1 + xit[commvl_1.ivx - 1] + comtol_1.tol) { /* NO explicit bm; put one in */ -#line 15535 "" +#line 15595 "" goto L71; -#line 15536 "" +#line 15596 "" } else if (comfb_1.t1fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] < *tglp1 + xit[commvl_1.ivx - 1] + comtol_1.tol && comfb_1.t2fb[commvl_1.ivx + @@ -36644,59 +36763,59 @@ L5: /* IS explicit bm. Don't put one */ -#line 15541 "" +#line 15601 "" goto L72; -#line 15542 "" +#line 15602 "" } -#line 15543 "" +#line 15603 "" /* L70: */ -#line 15543 "" +#line 15603 "" } -#line 15544 "" +#line 15604 "" } -#line 15545 "" +#line 15605 "" L71: /* If here, no explicit bm, so put one in */ -#line 15549 "" +#line 15609 "" infbmx[commvl_1.ivx - 1] = TRUE_; -#line 15550 "" +#line 15610 "" r__1 = t1xtup[nxtup - 1] + *tglp1; -#line 15550 "" +#line 15610 "" addfb_(comfb_1.nfb, &commvl_1.ivx, &r__1, comfb_1.t1fb, comfb_1.t2fb, comfb_1.ulfbq, &ifbadd, (ftnlen)1); -#line 15552 "" +#line 15612 "" ifbnow[commvl_1.ivx - 1] = ifbadd; -#line 15553 "" +#line 15613 "" } -#line 15554 "" +#line 15614 "" L72: -#line 15555 "" +#line 15615 "" ; -#line 15555 "" +#line 15615 "" } else if (inxtup[commvl_1.ivx - 1]) { /* This test is sufficient because already know nodur>0 */ -#line 15559 "" +#line 15619 "" inxtup[commvl_1.ivx - 1] = FALSE_; -#line 15560 "" +#line 15620 "" if (infbmx[commvl_1.ivx - 1]) { /* Xtup is in auto-forced beam, so end it */ -#line 15564 "" +#line 15624 "" comfb_1.t2fb[commvl_1.ivx + ifbnow[commvl_1.ivx - 1] * 24 - 25] = t1xtup[nxtnow[commvl_1.ivx - 1] - 1] + all_1.nodur[ commvl_1.ivx + cnn[commvl_1.ivx - 1] * 24 - 25] + *tglp1; -#line 15566 "" +#line 15626 "" infbmx[commvl_1.ivx - 1] = FALSE_; -#line 15567 "" +#line 15627 "" } -#line 15568 "" +#line 15628 "" } -#line 15569 "" +#line 15629 "" if (bit_test(all_1.irest[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25] ,24) || bit_test(all_1.irest[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25],30)) { @@ -36704,62 +36823,62 @@ L72: /* For staff jumped beam, flag the first note (lowest voice) at same time. */ /* Later will start new notes group here. */ -#line 15575 "" +#line 15635 "" inj = in; -#line 15576 "" +#line 15636 "" if (all_1.ivxo[in - 1] > 1) { -#line 15577 "" +#line 15637 "" for (iin = in - 1; iin >= 1; --iin) { -#line 15578 "" +#line 15638 "" if (all_1.to[iin - 1] + comtol_1.tol < all_1.to[in - 1]) { -#line 15578 "" +#line 15638 "" goto L41; -#line 15578 "" +#line 15638 "" } -#line 15579 "" +#line 15639 "" if ((r__1 = all_1.to[iin - 1] - all_1.to[in - 1], dabs(r__1)) < comtol_1.tol) { -#line 15580 "" +#line 15640 "" inj = iin; -#line 15581 "" +#line 15641 "" goto L40; -#line 15582 "" +#line 15642 "" } -#line 15583 "" +#line 15643 "" L40: -#line 15583 "" +#line 15643 "" ; -#line 15583 "" +#line 15643 "" } -#line 15584 "" +#line 15644 "" } -#line 15585 "" +#line 15645 "" L41: -#line 15586 "" +#line 15646 "" all_1.irest[all_1.ivxo[inj - 1] + all_1.ipo[inj - 1] * 24 - 25] = bit_set(all_1.irest[all_1.ivxo[inj - 1] + all_1.ipo[inj - 1] * 24 - 25],29); -#line 15587 "" +#line 15647 "" } -#line 15588 "" +#line 15648 "" ++in; -#line 15589 "" +#line 15649 "" goto L5; -#line 15590 "" +#line 15650 "" L7: -#line 15591 "" +#line 15651 "" comntot_1.ntot = in - 1; -#line 15592 "" +#line 15652 "" i__1 = comntot_1.ntot - 1; -#line 15592 "" +#line 15652 "" for (in = 1; in <= i__1; ++in) { -#line 15593 "" +#line 15653 "" all_1.tno[in - 1] = all_1.to[in] - all_1.to[in - 1]; -#line 15594 "" +#line 15654 "" /* L8: */ -#line 15594 "" +#line 15654 "" } -#line 15595 "" +#line 15655 "" all_1.tno[comntot_1.ntot - 1] = all_1.tnote[comntot_1.ntot - 1]; /* Debug writes */ @@ -36775,32 +36894,32 @@ L7: /* Done w/ list. Loop for parsing into note blocks: */ -#line 15610 "" +#line 15670 "" ib = 1; -#line 15611 "" +#line 15671 "" istart[1] = 1; -#line 15612 "" +#line 15672 "" comnsp_2.space[0] = 0.f; -#line 15613 "" +#line 15673 "" in = 1; /* A manual loop to set space(ib) and istop(ib) */ -#line 15617 "" +#line 15677 "" L9: /* Computing MIN */ -#line 15619 "" +#line 15679 "" i__1 = in + 1; -#line 15619 "" +#line 15679 "" commvl_1.ivx = all_1.ivxo[min(i__1,comntot_1.ntot) - 1]; /* Computing MIN */ -#line 15620 "" +#line 15680 "" i__1 = in + 1; -#line 15620 "" +#line 15680 "" ip = all_1.ipo[min(i__1,comntot_1.ntot) - 1]; -#line 15621 "" +#line 15681 "" isl = all_1.islur[commvl_1.ivx + ip * 24 - 25]; -#line 15622 "" +#line 15682 "" if (in == comntot_1.ntot || (commvl_1.ivx == 1 && ((isl & 67109216) > 0 || bit_test(all_1.ipl[ip * 24 - 24],28) || bit_test(all_1.iornq[ip * 24],4)) || bit_test(isl,15)) || bit_test(all_1.irest[ @@ -36822,192 +36941,192 @@ L9: /* 5/25/98: This stuff causes trouble with just "c2 Ct c", maybe when clef */ /* changes on last note in the list? */ -#line 15643 "" +#line 15703 "" if (bit_test(isl,15) && in < comntot_1.ntot) { -#line 15644 "" +#line 15704 "" for (iin = in; iin >= 1; --iin) { -#line 15645 "" +#line 15705 "" if (all_1.tno[iin - 1] > comtol_1.tol) { -#line 15646 "" +#line 15706 "" in = iin; -#line 15647 "" +#line 15707 "" all_1.islur[commvl_1.ivx + ip * 24 - 25] = bit_clear( all_1.islur[commvl_1.ivx + ip * 24 - 25],15); -#line 15648 "" +#line 15708 "" all_1.islur[all_1.ivxo[in] + all_1.ipo[in] * 24 - 25] = bit_set(all_1.islur[all_1.ivxo[in] + all_1.ipo[in] * 24 - 25],15); -#line 15650 "" +#line 15710 "" goto L51; -#line 15651 "" +#line 15711 "" } -#line 15652 "" +#line 15712 "" /* L50: */ -#line 15652 "" +#line 15712 "" } -#line 15653 "" +#line 15713 "" L51: -#line 15654 "" +#line 15714 "" ; -#line 15654 "" +#line 15714 "" } -#line 15655 "" +#line 15715 "" if (comnsp_2.space[ib - 1] < comtol_1.tol) { -#line 15656 "" +#line 15716 "" comnsp_2.space[ib - 1] = all_1.tno[in - 1]; -#line 15657 "" +#line 15717 "" squez[ib] = 1.f; -#line 15658 "" +#line 15718 "" } -#line 15659 "" +#line 15719 "" istop[ib] = in; -#line 15660 "" +#line 15720 "" } else if (comnsp_2.space[ib - 1] < comtol_1.tol) { /* space hasn't been set yet, so tentatively set: */ -#line 15664 "" +#line 15724 "" comnsp_2.space[ib - 1] = all_1.tno[in - 1]; -#line 15665 "" +#line 15725 "" if (comnsp_2.space[ib - 1] < comtol_1.tol) { -#line 15666 "" +#line 15726 "" ++in; -#line 15667 "" +#line 15727 "" } else { -#line 15668 "" +#line 15728 "" squez[ib] = getsquez_(&in, &comntot_1.ntot, &comnsp_2.space[ib - 1], all_1.tnote, all_1.to); -#line 15669 "" +#line 15729 "" istop[ib] = in; -#line 15670 "" +#line 15730 "" } -#line 15671 "" +#line 15731 "" goto L9; -#line 15672 "" +#line 15732 "" } else if (all_1.tno[in] < comtol_1.tol) { /* This is not the last note in the group, so */ -#line 15676 "" +#line 15736 "" ++in; -#line 15677 "" +#line 15737 "" goto L9; -#line 15678 "" +#line 15738 "" } else if ((r__1 = all_1.tno[in] - comnsp_2.space[ib - 1], dabs(r__1)) < comtol_1.tol) { -#line 15679 "" +#line 15739 "" i__1 = in + 1; -#line 15679 "" +#line 15739 "" xsquez = getsquez_(&i__1, &comntot_1.ntot, &comnsp_2.space[ib - 1], all_1.tnote, all_1.to); -#line 15680 "" +#line 15740 "" if ((r__1 = xsquez - squez[ib], dabs(r__1)) < comtol_1.tol) { /* Keep spacing the same, update tentative stop point */ -#line 15684 "" +#line 15744 "" ++in; -#line 15685 "" +#line 15745 "" istop[ib] = in; -#line 15686 "" +#line 15746 "" goto L9; -#line 15687 "" +#line 15747 "" } -#line 15688 "" +#line 15748 "" } /* At this point istart and istop are good, so finalize block */ -#line 15692 "" +#line 15752 "" tstart[ib] = all_1.to[istart[ib] - 1]; -#line 15693 "" +#line 15753 "" if (istop[ib] == comntot_1.ntot) { -#line 15693 "" +#line 15753 "" goto L15; -#line 15693 "" +#line 15753 "" } -#line 15694 "" +#line 15754 "" ++ib; -#line 15695 "" +#line 15755 "" istart[ib] = istop[ib - 1] + 1; -#line 15696 "" +#line 15756 "" in = istart[ib]; /* Set tentative block space and squeeze-factor for upcoming block */ -#line 15700 "" +#line 15760 "" comnsp_2.space[ib - 1] = all_1.tno[in - 1]; -#line 15701 "" +#line 15761 "" if (comnsp_2.space[ib - 1] > comtol_1.tol) { -#line 15701 "" +#line 15761 "" squez[ib] = getsquez_(&in, &comntot_1.ntot, &comnsp_2.space[ib - 1], all_1.tnote, all_1.to); -#line 15701 "" +#line 15761 "" } -#line 15703 "" +#line 15763 "" istop[ib] = in; -#line 15704 "" +#line 15764 "" goto L9; -#line 15705 "" +#line 15765 "" L15: -#line 15706 "" +#line 15766 "" comnsp_2.nb = ib; /* Invert the list of places into ipl(0-7), making it easier to analyze a voice */ -#line 15710 "" +#line 15770 "" i__1 = comntot_1.ntot; -#line 15710 "" +#line 15770 "" for (in = 1; in <= i__1; ++in) { /* ??? This may fix extra \loff's (bit 8 of ipl) in measures with >255 notes. */ /* ipl(ivxo(in),ipo(in)) = ior(ipl(ivxo(in),ipo(in)),in) */ -#line 15715 "" +#line 15775 "" comipl2_1.ipl2[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25] = in; -#line 15716 "" +#line 15776 "" /* L13: */ -#line 15716 "" +#line 15776 "" } /* Compute elemskips from start of bar to each note in the bar, for beam slopes */ -#line 15720 "" +#line 15780 "" eskzb = 0.f; -#line 15721 "" +#line 15781 "" ib = 1; -#line 15722 "" +#line 15782 "" i__1 = comntot_1.ntot; -#line 15722 "" +#line 15782 "" for (in = 1; in <= i__1; ++in) { -#line 15723 "" +#line 15783 "" if (in == istart[ib]) { -#line 15724 "" +#line 15784 "" r__1 = comnsp_2.space[ib - 1] / squez[ib]; -#line 15724 "" +#line 15784 "" deskb = squez[ib] * feon_(&r__1); -#line 15725 "" +#line 15785 "" } else if (all_1.tno[in - 2] > comtol_1.tol) { -#line 15726 "" +#line 15786 "" eskzb += deskb; -#line 15727 "" +#line 15787 "" } -#line 15728 "" +#line 15788 "" all_1.eskz[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25] = eskzb; -#line 15729 "" +#line 15789 "" comeskz2_1.eskz2[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25] = eskzb; -#line 15730 "" +#line 15790 "" if (in == istop[ib]) { -#line 15731 "" +#line 15791 "" eskzb += deskb; -#line 15732 "" +#line 15792 "" ++ib; -#line 15733 "" +#line 15793 "" } -#line 15734 "" +#line 15794 "" /* L30: */ -#line 15734 "" +#line 15794 "" } /* Debug writes */ @@ -37027,163 +37146,163 @@ L15: /* Analyze for beams. */ -#line 15753 "" +#line 15813 "" i__1 = all_1.nv; -#line 15753 "" +#line 15813 "" for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) { -#line 15754 "" +#line 15814 "" i__2 = commvl_1.nvmx[all_1.iv - 1]; -#line 15754 "" +#line 15814 "" for (kv = 1; kv <= i__2; ++kv) { -#line 15755 "" +#line 15815 "" commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25]; -#line 15756 "" +#line 15816 "" numbms[commvl_1.ivx] = 0; -#line 15757 "" +#line 15817 "" mapfb[0] = 0; -#line 15758 "" +#line 15818 "" mapfb[1] = 0; -#line 15759 "" +#line 15819 "" mapfb[2] = 0; -#line 15760 "" +#line 15820 "" mapfb[3] = 0; /* First forced beams. */ -#line 15764 "" +#line 15824 "" if (comfb_1.nfb[commvl_1.ivx - 1] > 0) { /* tglp2 is time from start of gulp to end of current bar. */ -#line 15768 "" +#line 15828 "" nfbbar = 0; -#line 15769 "" +#line 15829 "" i__3 = comfb_1.nfb[commvl_1.ivx - 1]; -#line 15769 "" +#line 15829 "" for (comfb_1.ifb = 1; comfb_1.ifb <= i__3; ++comfb_1.ifb) { -#line 15770 "" +#line 15830 "" if (comfb_1.t1fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] > tglp2 - comtol_1.tol) { -#line 15770 "" +#line 15830 "" goto L81; -#line 15770 "" +#line 15830 "" } -#line 15771 "" +#line 15831 "" ++nfbbar; -#line 15772 "" +#line 15832 "" ++numbms[commvl_1.ivx]; -#line 15773 "" +#line 15833 "" numnew = numbms[commvl_1.ivx]; /* Times from beginning of bar */ -#line 15777 "" +#line 15837 "" itbb1 = (integer) (comfb_1.t1fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] - *tglp1 + comtol_1.tol); -#line 15778 "" +#line 15838 "" itbb2 = (integer) (comfb_1.t2fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] - *tglp1 + comtol_1.tol); -#line 15779 "" +#line 15839 "" i__4 = all_1.nn[commvl_1.ivx - 1]; -#line 15779 "" +#line 15839 "" for (ip = 1; ip <= i__4; ++ip) { -#line 15780 "" +#line 15840 "" if ((integer) (all_1.to[comipl2_1.ipl2[commvl_1.ivx + ip * 24 - 25] - 1] + comtol_1.tol) == itbb1) { -#line 15781 "" +#line 15841 "" nip1fb = ip; -#line 15782 "" +#line 15842 "" i__5 = all_1.nn[commvl_1.ivx - 1]; -#line 15782 "" +#line 15842 "" for (ip1 = ip; ip1 <= i__5; ++ip1) { -#line 15783 "" +#line 15843 "" inip1 = comipl2_1.ipl2[commvl_1.ivx + ip1 * 24 - 25]; -#line 15784 "" +#line 15844 "" if ((r__1 = all_1.to[inip1 - 1] + all_1.tnote[ inip1 - 1] - itbb2, dabs(r__1)) < comtol_1.tol) { -#line 15785 "" +#line 15845 "" nip2fb = ip1; -#line 15786 "" +#line 15846 "" itbb3 = itbb2 - 2; -#line 15787 "" +#line 15847 "" goto L85; -#line 15788 "" +#line 15848 "" } -#line 15789 "" +#line 15849 "" /* L84: */ -#line 15789 "" +#line 15849 "" } -#line 15790 "" +#line 15850 "" } -#line 15791 "" +#line 15851 "" /* L83: */ -#line 15791 "" +#line 15851 "" } -#line 15792 "" - s_wsle(&io___949); -#line 15792 "" +#line 15852 "" + s_wsle(&io___951); +#line 15852 "" e_wsle(); -#line 15793 "" - s_wsle(&io___950); -#line 15793 "" +#line 15853 "" + s_wsle(&io___952); +#line 15853 "" do_lio(&c__9, &c__1, "Timing problem w/ forced beams", ( ftnlen)30); -#line 15793 "" +#line 15853 "" e_wsle(); -#line 15794 "" - s_wsfe(&io___951); -#line 15794 "" +#line 15854 "" + s_wsfe(&io___953); +#line 15854 "" do_fio(&c__1, "Timing problem w/ forced beams", (ftnlen) 30); -#line 15794 "" +#line 15854 "" e_wsfe(); -#line 15795 "" +#line 15855 "" L85: -#line 15796 "" +#line 15856 "" logbeam_(&numnew, &nip1fb, &nip2fb); /* Set up mapfb for forced beam just logged: */ -#line 15800 "" +#line 15860 "" ib1 = itbb1 / 2; -#line 15801 "" +#line 15861 "" ib2 = itbb3 / 2; -#line 15802 "" +#line 15862 "" ibrep = all_1.lenbar / *ibmrep / 2; -#line 15803 "" +#line 15863 "" i__4 = *ibmrep; -#line 15803 "" +#line 15863 "" for (irep = 1; irep <= i__4; ++irep) { /* Computing MAX */ -#line 15804 "" +#line 15864 "" i__5 = 0, i__6 = ib1 - (irep - 1) * ibrep; -#line 15804 "" +#line 15864 "" ib1now = max(i__5,i__6); /* Computing MIN */ -#line 15805 "" +#line 15865 "" i__5 = irep * ibrep - 1, i__6 = ib2 - (irep - 1) * ibrep; -#line 15805 "" +#line 15865 "" ib2now = min(i__5,i__6); -#line 15806 "" +#line 15866 "" mapnow = 0; -#line 15807 "" +#line 15867 "" i__5 = ib2now; -#line 15807 "" +#line 15867 "" for (ib = ib1now; ib <= i__5; ++ib) { -#line 15808 "" +#line 15868 "" mapnow = bit_set(mapnow,ib); -#line 15809 "" +#line 15869 "" /* L87: */ -#line 15809 "" +#line 15869 "" } -#line 15810 "" +#line 15870 "" mapfb[irep - 1] |= mapnow; -#line 15811 "" +#line 15871 "" /* L86: */ -#line 15811 "" +#line 15871 "" } /* Since we are cycling thru forced beams, for those that start with a rest and */ @@ -37191,7 +37310,7 @@ L85: /* 060924: Copy to ALL later notes in fb, in case there's more than 1 rest at */ /* start of beam */ -#line 15818 "" +#line 15878 "" if (bit_test(all_1.irest[commvl_1.ivx + nip1fb * 24 - 25], 0)) { /* call setbits(ipl(ivx,nip1fb+1),6,11, */ @@ -37200,88 +37319,88 @@ L85: /* * igetbits(ipl(ivx,nip1fb),6,17)) */ /* call setbits(islur(ivx,nip1fb+1),2,27, */ /* * igetbits(islur(ivx,nip1fb),2,27)) */ -#line 15825 "" +#line 15885 "" i__4 = nip2fb; -#line 15825 "" +#line 15885 "" for (kp = nip1fb + 1; kp <= i__4; ++kp) { -#line 15826 "" +#line 15886 "" i__5 = igetbits_(&all_1.ipl[commvl_1.ivx + nip1fb * 24 - 25], &c__6, &c__11); -#line 15826 "" +#line 15886 "" setbits_(&all_1.ipl[commvl_1.ivx + kp * 24 - 25], &c__6, &c__11, &i__5); -#line 15828 "" +#line 15888 "" i__5 = igetbits_(&all_1.ipl[commvl_1.ivx + nip1fb * 24 - 25], &c__6, &c__17); -#line 15828 "" +#line 15888 "" setbits_(&all_1.ipl[commvl_1.ivx + kp * 24 - 25], &c__6, &c__17, &i__5); -#line 15830 "" +#line 15890 "" i__5 = igetbits_(&all_1.islur[commvl_1.ivx + nip1fb * 24 - 25], &c__2, &c__27); -#line 15830 "" +#line 15890 "" setbits_(&all_1.islur[commvl_1.ivx + kp * 24 - 25] , &c__2, &c__27, &i__5); -#line 15832 "" +#line 15892 "" /* L88: */ -#line 15832 "" +#line 15892 "" } -#line 15833 "" +#line 15893 "" } -#line 15834 "" +#line 15894 "" /* L80: */ -#line 15834 "" +#line 15894 "" } -#line 15835 "" +#line 15895 "" L81: /* Slide down, reduce nfb(ivx). This lets us count up from 1 for each new bar. */ /* Remember, makeabar is called 1/bar, and it calls findbeam once per voice. */ -#line 15840 "" +#line 15900 "" if (nfbbar > 0) { -#line 15841 "" +#line 15901 "" comfb_1.nfb[commvl_1.ivx - 1] -= nfbbar; -#line 15842 "" +#line 15902 "" i__3 = comfb_1.nfb[commvl_1.ivx - 1]; -#line 15842 "" +#line 15902 "" for (comfb_1.ifb = 1; comfb_1.ifb <= i__3; ++comfb_1.ifb) { -#line 15843 "" +#line 15903 "" comfb_1.t1fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] = comfb_1.t1fb[commvl_1.ivx + (comfb_1.ifb + nfbbar) * 24 - 25]; -#line 15844 "" +#line 15904 "" comfb_1.t2fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] = comfb_1.t2fb[commvl_1.ivx + (comfb_1.ifb + nfbbar) * 24 - 25]; -#line 15845 "" +#line 15905 "" *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.ifb * 24 - 25] = *(unsigned char *)& comfb_1.ulfbq[commvl_1.ivx + (comfb_1.ifb + nfbbar) * 24 - 25]; -#line 15846 "" +#line 15906 "" /* L82: */ -#line 15846 "" +#line 15906 "" } -#line 15847 "" +#line 15907 "" } -#line 15848 "" +#line 15908 "" } -#line 15849 "" +#line 15909 "" comfb_1.ifb = 0; /* Done with forced beam masks for this bar and voice. Now get normal beams. */ -#line 15853 "" +#line 15913 "" findbeam_(ibmrep, &numbms[1], mapfb); -#line 15854 "" +#line 15914 "" /* L20: */ -#line 15854 "" +#line 15914 "" } -#line 15854 "" +#line 15914 "" } -#line 15855 "" +#line 15915 "" return 0; } /* make1bar_ */ @@ -37316,6 +37435,7 @@ L81: /* Local variables */ extern integer igetbits_(integer *, integer *, integer *); + static real dstemlen; extern logical isdotted_(integer *, integer *, integer *); extern /* Subroutine */ int beamstrt_(char *, integer *, integer *, integer *, real *, real *, integer *, ftnlen); @@ -37428,61 +37548,59 @@ L81: extern /* Subroutine */ int clefsym_(integer *, char *, integer *, integer *, ftnlen); static logical isrshft, isfirst, nofirst; - extern /* Subroutine */ int endslur_(logical *, logical *, integer *, - integer *, integer *, integer *, integer *, char *, integer *, - logical *, ftnlen); static char slurudq[1]; extern /* Subroutine */ int putshft_(integer *, logical *, char *, - integer *, ftnlen), setbits_(integer *, integer *, integer *, + integer *, ftnlen), endslur_(logical *, logical *, integer *, + integer *, integer *, integer *, integer *, char *, integer *, + logical *, ftnlen), setbits_(integer *, integer *, integer *, integer *); static integer itright; extern integer iashft_(integer *); static integer nolevc, ivlast; extern /* Subroutine */ int istring_(integer *, char *, integer *, ftnlen) ; - static integer mtrspc; static real wheadpt1; + static integer mtrspc; /* Fortran I/O blocks */ - static icilist io___971 = { 0, noteq, 0, "(1H{,i3,1H})", 5, 1 }; - static icilist io___973 = { 0, noteq, 0, "(1H{,i2,1H})", 4, 1 }; - static icilist io___974 = { 0, noteq, 0, "(i1)", 1, 1 }; - static cilist io___977 = { 0, 11, 0, "(a)", 0 }; - static cilist io___978 = { 0, 11, 0, "(a)", 0 }; - static cilist io___981 = { 0, 11, 0, "(a20,i1,a)", 0 }; - static cilist io___982 = { 0, 11, 0, "(a20,i2,a)", 0 }; - static cilist io___983 = { 0, 11, 0, "(a)", 0 }; - static icilist io___986 = { 0, soutq+8, 0, "(f4.1)", 4, 1 }; - static icilist io___987 = { 0, soutq+8, 0, "(f4.2)", 4, 1 }; - static icilist io___988 = { 0, soutq+10, 0, "(i2)", 2, 1 }; - static icilist io___989 = { 0, soutq+11, 0, "(i1)", 1, 1 }; - static cilist io___994 = { 0, 6, 0, 0, 0 }; - static cilist io___995 = { 0, 6, 0, 0, 0 }; - static cilist io___1015 = { 0, 6, 0, 0, 0 }; - static cilist io___1031 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1032 = { 0, 11, 0, "(a)", 0 }; + static icilist io___973 = { 0, noteq, 0, "(1H{,i3,1H})", 5, 1 }; + static icilist io___975 = { 0, noteq, 0, "(1H{,i2,1H})", 4, 1 }; + static icilist io___976 = { 0, noteq, 0, "(i1)", 1, 1 }; + static cilist io___979 = { 0, 11, 0, "(a)", 0 }; + static cilist io___980 = { 0, 11, 0, "(a)", 0 }; + static cilist io___983 = { 0, 11, 0, "(a20,i1,a)", 0 }; + static cilist io___984 = { 0, 11, 0, "(a20,i2,a)", 0 }; + static cilist io___985 = { 0, 11, 0, "(a)", 0 }; + static icilist io___988 = { 0, soutq+8, 0, "(f4.1)", 4, 1 }; + static icilist io___989 = { 0, soutq+8, 0, "(f4.2)", 4, 1 }; + static icilist io___990 = { 0, soutq+10, 0, "(i2)", 2, 1 }; + static icilist io___991 = { 0, soutq+11, 0, "(i1)", 1, 1 }; + static cilist io___996 = { 0, 6, 0, 0, 0 }; + static cilist io___997 = { 0, 6, 0, 0, 0 }; + static cilist io___1017 = { 0, 6, 0, 0, 0 }; static cilist io___1033 = { 0, 11, 0, "(a)", 0 }; static cilist io___1034 = { 0, 11, 0, "(a)", 0 }; static cilist io___1035 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1036 = { 0, 6, 0, 0, 0 }; + static cilist io___1036 = { 0, 11, 0, "(a)", 0 }; static cilist io___1037 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1038 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1038 = { 0, 6, 0, 0, 0 }; static cilist io___1039 = { 0, 11, 0, "(a)", 0 }; - static icilist io___1043 = { 0, notexq+11, 0, "(i2)", 2, 1 }; - static icilist io___1049 = { 0, notexq+6, 0, "(f3.1)", 3, 1 }; - static icilist io___1050 = { 0, notexq+6, 0, "(f4.1)", 4, 1 }; - static icilist io___1052 = { 0, notexq+5, 0, "(f3.1)", 3, 1 }; - static icilist io___1053 = { 0, notexq+5, 0, "(f4.1)", 4, 1 }; - static cilist io___1055 = { 0, 6, 0, 0, 0 }; - static cilist io___1056 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1057 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1058 = { 0, 6, 0, 0, 0 }; - static icilist io___1065 = { 0, notexq, 0, "(f4.2)", 79, 1 }; - static cilist io___1068 = { 0, 6, 0, 0, 0 }; - static cilist io___1081 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1084 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1087 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1040 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1041 = { 0, 11, 0, "(a)", 0 }; + static icilist io___1045 = { 0, notexq+11, 0, "(i2)", 2, 1 }; + static icilist io___1051 = { 0, notexq+6, 0, "(f3.1)", 3, 1 }; + static icilist io___1052 = { 0, notexq+6, 0, "(f4.1)", 4, 1 }; + static icilist io___1054 = { 0, notexq+5, 0, "(f3.1)", 3, 1 }; + static icilist io___1055 = { 0, notexq+5, 0, "(f4.1)", 4, 1 }; + static cilist io___1057 = { 0, 6, 0, 0, 0 }; + static cilist io___1058 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1059 = { 0, 11, 0, "(a)", 0 }; + static icilist io___1067 = { 0, notexq, 0, "(f4.1)", 79, 1 }; + static cilist io___1070 = { 0, 6, 0, 0, 0 }; + static cilist io___1083 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1086 = { 0, 11, 0, "(a)", 0 }; static cilist io___1089 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1091 = { 0, 11, 0, "(a)", 0 }; @@ -37490,417 +37608,419 @@ L81: /* In 1.04, moved to block data subprogram */ /* 130316 */ - -/* Set up main ib loop within which a block (notes group) is written */ - -#line 15977 "" +#line 16035 "" /* Parameter adjustments */ -#line 15977 "" +#line 16035 "" --clefq; -#line 15977 "" +#line 16035 "" --istart; -#line 15977 "" +#line 16035 "" --numbms; -#line 15977 "" +#line 16035 "" --istop; -#line 15977 "" +#line 16035 "" --squez; -#line 15977 "" +#line 16035 "" --cwrest; -#line 15977 "" +#line 16035 "" --tstart; -#line 15977 "" +#line 16035 "" -#line 15977 "" +#line 16035 "" /* Function Body */ -#line 15977 "" +#line 16035 "" + xjbeambrests_1.nbrests = 0; + +/* Set up main ib loop within which a block (notes group) is written */ + +#line 16039 "" i__1 = all_1.nv; -#line 15977 "" +#line 16039 "" for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) { -#line 15978 "" +#line 16040 "" i__2 = commvl_1.nvmx[all_1.iv - 1]; -#line 15978 "" +#line 16040 "" for (kv = 1; kv <= i__2; ++kv) { -#line 15979 "" +#line 16041 "" commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25]; -#line 15980 "" +#line 16042 "" all_1.ibmcnt[commvl_1.ivx - 1] = 1; -#line 15981 "" +#line 16043 "" ibmcnt1[commvl_1.ivx - 1] = 1; -#line 15982 "" +#line 16044 "" all_1.beamon[commvl_1.ivx - 1] = FALSE_; -#line 15983 "" +#line 16045 "" beamon1[commvl_1.ivx - 1] = FALSE_; -#line 15984 "" +#line 16046 "" nornb[commvl_1.ivx - 1] = 0; -#line 15985 "" +#line 16047 "" iaskb[commvl_1.ivx - 1] = 1; -#line 15986 "" +#line 16048 "" comxtup_1.vxtup[commvl_1.ivx - 1] = FALSE_; -#line 15987 "" +#line 16049 "" comdraw_1.drawbm[commvl_1.ivx - 1] = TRUE_; -#line 15988 "" +#line 16050 "" /* L25: */ -#line 15988 "" +#line 16050 "" } -#line 15988 "" +#line 16050 "" } -#line 15989 "" +#line 16051 "" comas1_1.naskb = 0; -#line 15990 "" +#line 16052 "" ifig[0] = 1; -#line 15991 "" +#line 16053 "" ifig[1] = 1; -#line 15992 "" +#line 16054 "" comxtup_1.ixtup = 0; -#line 15993 "" +#line 16055 "" bspend = FALSE_; -#line 15994 "" +#line 16056 "" iscwr = FALSE_; -#line 15995 "" +#line 16057 "" rpndot = FALSE_; -#line 15996 "" +#line 16058 "" i__2 = comnsp_2.nb; -#line 15996 "" +#line 16058 "" for (ib = 1; ib <= i__2; ++ib) { /* Check for segno */ -#line 16000 "" +#line 16062 "" if (bit_test(all_1.iornq[all_1.ipo[istart[ib] - 1] * 24],4) && all_1.ivxo[istart[ib] - 1] == 1) { -#line 16002 "" +#line 16064 "" if (comgrace_1.noffseg <= -10) { -#line 16003 "" - s_wsfi(&io___971); -#line 16003 "" +#line 16065 "" + s_wsfi(&io___973); +#line 16065 "" do_fio(&c__1, (char *)&comgrace_1.noffseg, (ftnlen)sizeof( integer)); -#line 16003 "" +#line 16065 "" e_wsfi(); -#line 16004 "" +#line 16066 "" lnoten = 5; -#line 16005 "" +#line 16067 "" } else if (comgrace_1.noffseg < 0 || comgrace_1.noffseg >= 10) { -#line 16006 "" - s_wsfi(&io___973); -#line 16006 "" +#line 16068 "" + s_wsfi(&io___975); +#line 16068 "" do_fio(&c__1, (char *)&comgrace_1.noffseg, (ftnlen)sizeof( integer)); -#line 16006 "" +#line 16068 "" e_wsfi(); -#line 16007 "" +#line 16069 "" lnoten = 4; -#line 16008 "" +#line 16070 "" } else { -#line 16009 "" - s_wsfi(&io___974); -#line 16009 "" +#line 16071 "" + s_wsfi(&io___976); +#line 16071 "" do_fio(&c__1, (char *)&comgrace_1.noffseg, (ftnlen)sizeof( integer)); -#line 16009 "" +#line 16071 "" e_wsfi(); -#line 16010 "" +#line 16072 "" lnoten = 1; -#line 16011 "" +#line 16073 "" } /* Writing concatenation */ -#line 16012 "" +#line 16074 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 16012 "" +#line 16074 "" i__3[1] = 6, a__1[1] = "znotes"; -#line 16012 "" +#line 16074 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 16012 "" +#line 16074 "" i__3[3] = 6, a__1[3] = "segnoo"; -#line 16012 "" +#line 16074 "" i__3[4] = lnoten, a__1[4] = noteq; -#line 16012 "" +#line 16074 "" i__3[5] = 1, a__1[5] = "9"; -#line 16012 "" +#line 16074 "" s_cat(notexq, a__1, i__3, &c__6, (ftnlen)79); -#line 16013 "" +#line 16075 "" lnote = lnoten + 15; -#line 16014 "" +#line 16076 "" i__1 = all_1.nv; -#line 16014 "" +#line 16076 "" for (all_1.iv = 2; all_1.iv <= i__1; ++all_1.iv) { -#line 16015 "" +#line 16077 "" if (lnote > 60) { -#line 16016 "" +#line 16078 "" if (comlast_1.islast) { -#line 16016 "" - s_wsfe(&io___977); +#line 16078 "" + s_wsfe(&io___979); /* Writing concatenation */ -#line 16016 "" +#line 16078 "" i__4[0] = lnote, a__2[0] = notexq; -#line 16016 "" +#line 16078 "" i__4[1] = 1, a__2[1] = "%"; -#line 16016 "" +#line 16078 "" s_cat(ch__1, a__2, i__4, &c__2, (ftnlen)80); -#line 16016 "" +#line 16078 "" do_fio(&c__1, ch__1, lnote + 1); -#line 16016 "" +#line 16078 "" e_wsfe(); -#line 16016 "" +#line 16078 "" } /* Writing concatenation */ -#line 16017 "" +#line 16079 "" i__5[0] = 1, a__3[0] = all_1.sepsymq + (all_1.iv - 2); -#line 16017 "" +#line 16079 "" i__5[1] = 1, a__3[1] = all_1.sq; -#line 16017 "" +#line 16079 "" i__5[2] = 6, a__3[2] = "segnoo"; -#line 16017 "" +#line 16079 "" i__5[3] = lnoten, a__3[3] = noteq; -#line 16017 "" +#line 16079 "" i__5[4] = 1, a__3[4] = "9"; -#line 16017 "" +#line 16079 "" s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79); -#line 16019 "" +#line 16081 "" lnote = lnoten + 9; -#line 16020 "" +#line 16082 "" } else { /* Writing concatenation */ -#line 16021 "" +#line 16083 "" i__3[0] = lnote, a__1[0] = notexq; -#line 16021 "" +#line 16083 "" i__3[1] = 1, a__1[1] = all_1.sepsymq + (all_1.iv - 2); -#line 16021 "" +#line 16083 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 16021 "" +#line 16083 "" i__3[3] = 6, a__1[3] = "segnoo"; -#line 16021 "" +#line 16083 "" i__3[4] = lnoten, a__1[4] = noteq; -#line 16021 "" +#line 16083 "" i__3[5] = 1, a__1[5] = "9"; -#line 16021 "" +#line 16083 "" s_cat(notexq, a__1, i__3, &c__6, (ftnlen)79); -#line 16023 "" +#line 16085 "" lnote = lnote + lnoten + 9; -#line 16024 "" +#line 16086 "" } -#line 16025 "" +#line 16087 "" /* L130: */ -#line 16025 "" +#line 16087 "" } -#line 16026 "" +#line 16088 "" if (comlast_1.islast) { -#line 16026 "" - s_wsfe(&io___978); +#line 16088 "" + s_wsfe(&io___980); /* Writing concatenation */ -#line 16026 "" +#line 16088 "" i__6[0] = lnote, a__4[0] = notexq; -#line 16026 "" +#line 16088 "" i__6[1] = 1, a__4[1] = all_1.sq; -#line 16026 "" +#line 16088 "" i__6[2] = 2, a__4[2] = "en"; -#line 16026 "" +#line 16088 "" s_cat(ch__2, a__4, i__6, &c__3, (ftnlen)82); -#line 16026 "" +#line 16088 "" do_fio(&c__1, ch__2, lnote + 3); -#line 16026 "" +#line 16088 "" e_wsfe(); -#line 16026 "" +#line 16088 "" } -#line 16027 "" +#line 16089 "" lnote = 0; -#line 16028 "" +#line 16090 "" } /* Check for new clefs */ -#line 16032 "" +#line 16094 "" isclef = FALSE_; -#line 16033 "" +#line 16095 "" if (bit_test(all_1.islur[all_1.ivxo[istart[ib] - 1] + all_1.ipo[ istart[ib] - 1] * 24 - 25],15)) { /* In preceding line, fl32 gave wrong result for ... .gt.0 !!! */ -#line 16038 "" +#line 16100 "" i__1 = istop[ib]; -#line 16038 "" +#line 16100 "" for (in = istart[ib]; in <= i__1; ++in) { -#line 16039 "" +#line 16101 "" if (bit_test(all_1.islur[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25],11)) { -#line 16040 "" +#line 16102 "" i__7 = lbit_shift(all_1.islur[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25], (ftnlen)-12) & 7; -#line 16040 "" +#line 16102 "" wsclef_(&all_1.ivxo[in - 1], ninow, &i__7); /* If clefq = '8', must add eg \settrebleclefsymbol3\treblelowoct% */ /* if (clefq(ivxo(in)) .eq. '8') then */ -#line 16046 "" +#line 16108 "" if (bit_test(all_1.ipl[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25],2)) { -#line 16047 "" +#line 16109 "" if (all_1.iv <= 9) { -#line 16048 "" - s_wsfe(&io___981); +#line 16110 "" + s_wsfe(&io___983); /* Writing concatenation */ -#line 16048 "" +#line 16110 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16048 "" +#line 16110 "" i__4[1] = 19, a__2[1] = "settrebleclefsymbol"; -#line 16048 "" +#line 16110 "" s_cat(ch__3, a__2, i__4, &c__2, (ftnlen)20); -#line 16048 "" +#line 16110 "" do_fio(&c__1, ch__3, (ftnlen)20); -#line 16048 "" +#line 16110 "" do_fio(&c__1, (char *)&all_1.nv, (ftnlen)sizeof( integer)); /* Writing concatenation */ -#line 16048 "" +#line 16110 "" i__8[0] = 1, a__5[0] = all_1.sq; -#line 16048 "" +#line 16110 "" i__8[1] = 13, a__5[1] = "treblelowoct%"; -#line 16048 "" +#line 16110 "" s_cat(ch__4, a__5, i__8, &c__2, (ftnlen)14); -#line 16048 "" +#line 16110 "" do_fio(&c__1, ch__4, (ftnlen)14); -#line 16048 "" +#line 16110 "" e_wsfe(); -#line 16050 "" +#line 16112 "" } else { -#line 16051 "" - s_wsfe(&io___982); +#line 16113 "" + s_wsfe(&io___984); /* Writing concatenation */ -#line 16051 "" +#line 16113 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16051 "" +#line 16113 "" i__4[1] = 19, a__2[1] = "settrebleclefsymbol"; -#line 16051 "" +#line 16113 "" s_cat(ch__3, a__2, i__4, &c__2, (ftnlen)20); -#line 16051 "" +#line 16113 "" do_fio(&c__1, ch__3, (ftnlen)20); -#line 16051 "" +#line 16113 "" do_fio(&c__1, (char *)&all_1.nv, (ftnlen)sizeof( integer)); /* Writing concatenation */ -#line 16051 "" +#line 16113 "" i__8[0] = 1, a__5[0] = all_1.sq; -#line 16051 "" +#line 16113 "" i__8[1] = 13, a__5[1] = "treblelowoct%"; -#line 16051 "" +#line 16113 "" s_cat(ch__4, a__5, i__8, &c__2, (ftnlen)14); -#line 16051 "" +#line 16113 "" do_fio(&c__1, ch__4, (ftnlen)14); -#line 16051 "" +#line 16113 "" e_wsfe(); -#line 16053 "" +#line 16115 "" } -#line 16054 "" +#line 16116 "" } -#line 16055 "" +#line 16117 "" } -#line 16056 "" +#line 16118 "" /* L140: */ -#line 16056 "" +#line 16118 "" } -#line 16057 "" +#line 16119 "" if (comlast_1.islast) { -#line 16057 "" - s_wsfe(&io___983); +#line 16119 "" + s_wsfe(&io___985); /* Writing concatenation */ -#line 16057 "" +#line 16119 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16057 "" +#line 16119 "" i__4[1] = 11, a__2[1] = "pmxnewclefs"; -#line 16057 "" +#line 16119 "" s_cat(ch__5, a__2, i__4, &c__2, (ftnlen)12); -#line 16057 "" +#line 16119 "" do_fio(&c__1, ch__5, (ftnlen)12); -#line 16057 "" +#line 16119 "" e_wsfe(); -#line 16057 "" +#line 16119 "" } -#line 16058 "" +#line 16120 "" isclef = TRUE_; -#line 16059 "" +#line 16121 "" } /* Start a notes group. We're just gonna define every one using pnotes{n}, */ /* where \def\pnotes#1{\vnotes#1\elemskip} */ /* Writing concatenation */ -#line 16064 "" +#line 16126 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16064 "" +#line 16126 "" i__4[1] = 7, a__2[1] = "pnotes{"; -#line 16064 "" +#line 16126 "" s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80); -#line 16065 "" +#line 16127 "" r__1 = comnsp_2.space[ib - 1] / squez[ib]; -#line 16065 "" +#line 16127 "" eonsqz = squez[ib] * feon_(&r__1); -#line 16066 "" +#line 16128 "" if (eonsqz > 9.995f) { -#line 16067 "" - s_wsfi(&io___986); -#line 16067 "" +#line 16129 "" + s_wsfi(&io___988); +#line 16129 "" do_fio(&c__1, (char *)&eonsqz, (ftnlen)sizeof(real)); -#line 16067 "" +#line 16129 "" e_wsfi(); -#line 16068 "" +#line 16130 "" } else if (eonsqz > .995f) { -#line 16069 "" - s_wsfi(&io___987); -#line 16069 "" +#line 16131 "" + s_wsfi(&io___989); +#line 16131 "" do_fio(&c__1, (char *)&eonsqz, (ftnlen)sizeof(real)); -#line 16069 "" +#line 16131 "" e_wsfi(); -#line 16070 "" +#line 16132 "" } else if (eonsqz > .095f) { /* Writing concatenation */ -#line 16071 "" +#line 16133 "" i__4[0] = 8, a__2[0] = soutq; -#line 16071 "" +#line 16133 "" i__4[1] = 2, a__2[1] = "0."; -#line 16071 "" +#line 16133 "" s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80); -#line 16072 "" - s_wsfi(&io___988); -#line 16072 "" +#line 16134 "" + s_wsfi(&io___990); +#line 16134 "" r__1 = eonsqz * 100; -#line 16072 "" +#line 16134 "" i__1 = i_nint(&r__1); -#line 16072 "" +#line 16134 "" do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 16072 "" +#line 16134 "" e_wsfi(); -#line 16073 "" +#line 16135 "" } else { /* Writing concatenation */ -#line 16074 "" +#line 16136 "" i__4[0] = 8, a__2[0] = soutq; -#line 16074 "" +#line 16136 "" i__4[1] = 3, a__2[1] = "0.0"; -#line 16074 "" +#line 16136 "" s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80); -#line 16075 "" - s_wsfi(&io___989); -#line 16075 "" +#line 16137 "" + s_wsfi(&io___991); +#line 16137 "" r__1 = eonsqz * 100; -#line 16075 "" +#line 16137 "" i__1 = i_nint(&r__1); -#line 16075 "" +#line 16137 "" do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 16075 "" +#line 16137 "" e_wsfi(); -#line 16076 "" +#line 16138 "" } /* Writing concatenation */ -#line 16077 "" +#line 16139 "" i__4[0] = 12, a__2[0] = soutq; -#line 16077 "" +#line 16139 "" i__4[1] = 1, a__2[1] = "}"; -#line 16077 "" +#line 16139 "" s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80); -#line 16078 "" +#line 16140 "" lsout = 13; /* Check whole block, flag accidentals etc that are too close, one per *time*. */ @@ -37908,87 +38028,87 @@ L81: /* (fbar*wheadpt) following, but rpts seem to occupy some of that gap, so */ /* (dotsfac*wheadpt) is presumed to be filled up. */ -#line 16085 "" +#line 16147 "" in = istart[ib] - 1; -#line 16086 "" +#line 16148 "" itrpt = -1; -#line 16087 "" +#line 16149 "" itsig = -1; /* Begin big manual loop over notes in this block; ends at 112 */ -#line 16091 "" +#line 16153 "" L111: -#line 16091 "" +#line 16153 "" ++in; -#line 16092 "" +#line 16154 "" if (in > istop[ib]) { -#line 16092 "" +#line 16154 "" goto L112; -#line 16092 "" +#line 16154 "" } -#line 16093 "" +#line 16155 "" ip = all_1.ipo[in - 1]; -#line 16094 "" +#line 16156 "" commvl_1.ivx = all_1.ivxo[in - 1]; -#line 16095 "" +#line 16157 "" if (commvl_1.ivx <= all_1.nv) { -#line 16096 "" +#line 16158 "" all_1.iv = commvl_1.ivx; -#line 16097 "" +#line 16159 "" } else { -#line 16098 "" +#line 16160 "" i__1 = all_1.nv; -#line 16098 "" +#line 16160 "" for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) { -#line 16099 "" +#line 16161 "" if (commvl_1.nvmx[all_1.iv - 1] == 2 && commvl_1.ivmx[ all_1.iv + 23] == commvl_1.ivx) { -#line 16099 "" +#line 16161 "" goto L129; -#line 16099 "" +#line 16161 "" } -#line 16100 "" +#line 16162 "" /* L128: */ -#line 16100 "" +#line 16162 "" } -#line 16101 "" - s_wsle(&io___994); -#line 16101 "" +#line 16163 "" + s_wsle(&io___996); +#line 16163 "" do_lio(&c__9, &c__1, "Trouble finding iv!, ivx,nvmx,ivmx:", ( ftnlen)35); -#line 16101 "" +#line 16163 "" do_lio(&c__3, &c__1, (char *)&commvl_1.ivx, (ftnlen)sizeof( integer)); -#line 16101 "" +#line 16163 "" do_lio(&c__3, &c__1, (char *)&commvl_1.nvmx[0], (ftnlen)sizeof( integer)); -#line 16101 "" +#line 16163 "" do_lio(&c__3, &c__1, (char *)&commvl_1.nvmx[1], (ftnlen)sizeof( integer)); -#line 16101 "" +#line 16163 "" e_wsle(); -#line 16102 "" - s_wsle(&io___995); -#line 16102 "" +#line 16164 "" + s_wsle(&io___997); +#line 16164 "" do_lio(&c__3, &c__1, (char *)&commvl_1.ivmx[0], (ftnlen)sizeof( integer)); -#line 16102 "" +#line 16164 "" do_lio(&c__3, &c__1, (char *)&commvl_1.ivmx[24], (ftnlen)sizeof( integer)); -#line 16102 "" +#line 16164 "" do_lio(&c__3, &c__1, (char *)&commvl_1.ivmx[1], (ftnlen)sizeof( integer)); -#line 16102 "" +#line 16164 "" do_lio(&c__3, &c__1, (char *)&commvl_1.ivmx[25], (ftnlen)sizeof( integer)); -#line 16102 "" +#line 16164 "" e_wsle(); -#line 16103 "" +#line 16165 "" s_stop("", (ftnlen)0); -#line 16104 "" +#line 16166 "" } -#line 16105 "" +#line 16167 "" L129: /* Call precrd here so we know how much space to add for accid's in chords */ @@ -38002,65 +38122,65 @@ L129: /* * .and. ibm1(ivx,ibmcnt(ivx)) .eq. ip) .or. */ /* * btest(nacc(ivx,ip),21)) then */ /* if (.not.btest(irest(ivx,ip),24)) then */ -#line 16118 "" +#line 16180 "" if (numbms[commvl_1.ivx] > 0 && ibmcnt1[commvl_1.ivx - 1] <= numbms[ commvl_1.ivx] && all_1.ibm1[commvl_1.ivx + ibmcnt1[ commvl_1.ivx - 1] * 24 - 25] == ip) { -#line 16120 "" +#line 16182 "" beamon1[commvl_1.ivx - 1] = TRUE_; -#line 16121 "" +#line 16183 "" } -#line 16122 "" +#line 16184 "" icashft = 0; -#line 16123 "" +#line 16185 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10)) { /* There is a chord on this note. Need up-down-ness in precrd to auto shift for 2nds. */ -#line 16127 "" +#line 16189 "" if (beamon1[commvl_1.ivx - 1]) { -#line 16128 "" +#line 16190 "" precrd_(&commvl_1.ivx, &ip, &all_1.nolev[commvl_1.ivx + ip * 24 - 25], &all_1.nacc[commvl_1.ivx + ip * 24 - 25], & all_1.ipl[commvl_1.ivx + ip * 24 - 25], &all_1.irest[ commvl_1.ivx + ip * 24 - 25], all_1.ulq + ( commvl_1.ivx + ibmcnt1[commvl_1.ivx - 1] * 24 - 25), & c_false, &icashft, (ftnlen)1); -#line 16131 "" +#line 16193 "" } else { -#line 16132 "" +#line 16194 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 16132 "" +#line 16194 "" udqq_(ch__6, (ftnlen)1, &all_1.nolev[commvl_1.ivx + ip * 24 - 25], &i__1, &all_1.islur[commvl_1.ivx + ip * 24 - 25], &commvl_1.nvmx[all_1.iv - 1], &commvl_1.ivx, & all_1.nv); -#line 16132 "" +#line 16194 "" precrd_(&commvl_1.ivx, &ip, &all_1.nolev[commvl_1.ivx + ip * 24 - 25], &all_1.nacc[commvl_1.ivx + ip * 24 - 25], & all_1.ipl[commvl_1.ivx + ip * 24 - 25], &all_1.irest[ commvl_1.ivx + ip * 24 - 25], ch__6, &c_false, & icashft, (ftnlen)1); -#line 16136 "" +#line 16198 "" } -#line 16137 "" +#line 16199 "" } /* Turn beam off? */ -#line 16141 "" +#line 16203 "" if (beamon1[commvl_1.ivx - 1] && all_1.ibm2[commvl_1.ivx + ibmcnt1[ commvl_1.ivx - 1] * 24 - 25] == ip) { -#line 16142 "" +#line 16204 "" beamon1[commvl_1.ivx - 1] = FALSE_; -#line 16143 "" +#line 16205 "" ++ibmcnt1[commvl_1.ivx - 1]; -#line 16144 "" +#line 16206 "" } /* Remember, rpts & internal sigs can only come at start of (internal) block */ -#line 16148 "" +#line 16210 "" isacc = (all_1.nacc[commvl_1.ivx + ip * 24 - 25] & 3) > 0 && ! bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],17) && ! bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10); @@ -38069,7 +38189,7 @@ L129: /* !!! Need to do this for chord notes too. Maybe in chkarp? */ -#line 16156 "" +#line 16218 "" isaccs = isacc || bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],0); /* 5/15/02 Add check for ) ornament of prior note. */ @@ -38077,155 +38197,155 @@ L129: /* if (ip .gt. 1) then */ /* isaccs = isaccs .or. btest(iornq(ivx,ip-1),13) */ /* end if */ -#line 16163 "" +#line 16225 "" isarp = bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],27); -#line 16164 "" +#line 16226 "" iscacc = FALSE_; -#line 16165 "" +#line 16227 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10)) { /* There is a chord here; check for arpeggios and accidentals. Note accid shifts are */ /* not of concern here, only whether there's an accid, whick causes iscacc=.true. */ -#line 16170 "" +#line 16232 "" iscacc = igetbits_(&all_1.nacc[commvl_1.ivx + ip * 24 - 25], & c__3, &c__0) > 0 && ! bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],17); -#line 16172 "" +#line 16234 "" chkarp_(&comtrill_1.ncrd, comtrill_1.icrdat, &commvl_1.ivx, &ip, & iscacc, &isarp); -#line 16173 "" +#line 16235 "" } /* When we get motivated, will do spacing for arpeggios here. */ -#line 16177 "" +#line 16239 "" if (commvl_1.ivx == 1 && (all_1.islur[commvl_1.ivx + ip * 24 - 25] & 96) > 0) { -#line 16177 "" +#line 16239 "" itrpt = i_nint(&all_1.to[in - 1]); -#line 16177 "" +#line 16239 "" } -#line 16179 "" +#line 16241 "" issig = bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],28); -#line 16180 "" +#line 16242 "" if (commvl_1.ivx == 1 && issig) { -#line 16180 "" +#line 16242 "" itsig = i_nint(&all_1.to[in - 1]); -#line 16180 "" +#line 16242 "" } -#line 16181 "" +#line 16243 "" isgrace = bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],4) && ! bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],29) && ! bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],31); -#line 16183 "" +#line 16245 "" isgaft = FALSE_; -#line 16184 "" +#line 16246 "" if (ip > 1) { -#line 16185 "" +#line 16247 "" xnd = all_1.tnote[comipl2_1.ipl2[commvl_1.ivx + (ip - 1) * 24 - 25] - 1]; -#line 16186 "" +#line 16248 "" isgaft = bit_test(all_1.ipl[commvl_1.ivx + (ip - 1) * 24 - 25],29) || bit_test(all_1.ipl[commvl_1.ivx + (ip - 1) * 24 - 25], 31); -#line 16187 "" +#line 16249 "" isgrace = isgrace || isgaft; -#line 16188 "" +#line 16250 "" } -#line 16189 "" +#line 16251 "" iscln = isclef && bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25], 11); /* Is prev. note non-beamed, up-stemmed, & flagged? Recall if ip>1, have nd */ -#line 16193 "" +#line 16255 "" isflag = ip > 1 && xnd > comtol_1.tol && xnd < 16.f - comtol_1.tol; -#line 16194 "" +#line 16256 "" if (isflag) { -#line 16194 "" +#line 16256 "" i__7 = ip - 1; -#line 16194 "" +#line 16256 "" i__1 = ncmid_(&all_1.iv, &i__7); -#line 16194 "" +#line 16256 "" udqq_(ch__6, (ftnlen)1, &all_1.nolev[commvl_1.ivx + (ip - 1) * 24 - 25], &i__1, &all_1.islur[commvl_1.ivx + (ip - 1) * 24 - 25], &commvl_1.nvmx[all_1.iv - 1], &commvl_1.ivx, & all_1.nv); -#line 16194 "" +#line 16256 "" isflag = ! bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25] ,0) && *(unsigned char *)&ch__6[0] == 'u'; -#line 16194 "" +#line 16256 "" } -#line 16198 "" +#line 16260 "" if (isflag) { -#line 16199 "" +#line 16261 "" i__1 = numbms[commvl_1.ivx]; -#line 16199 "" +#line 16261 "" for (ibmchk = 1; ibmchk <= i__1; ++ibmchk) { -#line 16200 "" +#line 16262 "" if (ip - 1 < all_1.ibm1[commvl_1.ivx + ibmchk * 24 - 25]) { -#line 16201 "" +#line 16263 "" goto L117; /* Add check for non-beamed xtuplets. May be problem with stem direction. */ /* else if (ip-1.le.ibm2(ivx,ibmchk)) then */ -#line 16206 "" +#line 16268 "" } else if (ip - 1 <= all_1.ibm2[commvl_1.ivx + ibmchk * 24 - 25] && ! bit_test(all_1.islur[commvl_1.ivx + all_1.ibm1[commvl_1.ivx + ibmchk * 24 - 25] * 24 - 25] ,18)) { -#line 16208 "" +#line 16270 "" isflag = FALSE_; -#line 16209 "" +#line 16271 "" goto L117; -#line 16210 "" +#line 16272 "" } -#line 16211 "" +#line 16273 "" /* L116: */ -#line 16211 "" +#line 16273 "" } -#line 16212 "" +#line 16274 "" } -#line 16213 "" +#line 16275 "" L117: /* If isflag, then won't need to check for dot on prev. note. */ /* 5/16/02 ??? Try using this for ) ornament. */ -#line 16219 "" +#line 16281 "" isflag = isflag || bit_test(all_1.iornq[commvl_1.ivx + (ip - 1) * 24 - 1],13); -#line 16220 "" +#line 16282 "" isdot = ip > 1; -#line 16221 "" +#line 16283 "" if (isdot) { -#line 16221 "" +#line 16283 "" i__1 = ip - 1; -#line 16221 "" +#line 16283 "" isdot = isdotted_(all_1.nodur, &commvl_1.ivx, &i__1); -#line 16221 "" +#line 16283 "" } -#line 16222 "" +#line 16284 "" isrshft = ip > 1; -#line 16223 "" +#line 16285 "" if (isrshft) { -#line 16223 "" +#line 16285 "" isrshft = bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25], 20); -#line 16223 "" +#line 16285 "" } -#line 16224 "" +#line 16286 "" if (! (isaccs || isgrace || iscln || isflag || isrshft || isdot || bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],26) || bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],21) || isarp || bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],27) || iscacc)) { -#line 16224 "" +#line 16286 "" goto L111; -#line 16224 "" +#line 16286 "" } /* Here is an accid,grace,clef,flag,rtshft,dot,udsp,arpeg,left-shift. */ @@ -38233,71 +38353,71 @@ L117: /* 130324 */ /* wheadpt1 = wheadpt*fullsize(iv) */ -#line 16234 "" +#line 16296 "" wheadpt1 = comask_1.wheadpt * comfig_1.fullsize[cominsttrans_1.instno[ all_1.iv - 1] - 1]; -#line 16235 "" +#line 16297 "" pts = wheadpt1; /* Set up for possible cautionary accidental here */ -#line 16239 "" +#line 16301 "" if (isaccs || iscacc) { -#line 16240 "" +#line 16302 "" if (! bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],31)) { -#line 16241 "" +#line 16303 "" taccfac = spfacs_1.accfac; -#line 16242 "" +#line 16304 "" } else { -#line 16243 "" +#line 16305 "" taccfac = spfacs_1.accfac * 1.4f; /* cautionary accidental */ -#line 16244 "" +#line 16306 "" } -#line 16245 "" +#line 16307 "" } -#line 16246 "" +#line 16308 "" if (isgrace) { -#line 16247 "" +#line 16309 "" secondgrace = FALSE_; -#line 16248 "" +#line 16310 "" i__1 = comgrace_1.ngrace; -#line 16248 "" +#line 16310 "" for (ig = 1; ig <= i__1; ++ig) { -#line 16249 "" +#line 16311 "" if (! isgaft) { -#line 16250 "" +#line 16312 "" if (comgrace_1.ipg[ig - 1] == ip && comgrace_1.ivg[ig - 1] == commvl_1.ivx) { -#line 16250 "" +#line 16312 "" goto L123; -#line 16250 "" +#line 16312 "" } -#line 16251 "" +#line 16313 "" } else if (ip > 1) { -#line 16252 "" +#line 16314 "" if (comgrace_1.ipg[ig - 1] == ip - 1 && comgrace_1.ivg[ig - 1] == commvl_1.ivx) { -#line 16252 "" +#line 16314 "" goto L123; -#line 16252 "" +#line 16314 "" } -#line 16253 "" +#line 16315 "" } -#line 16254 "" +#line 16316 "" /* L122: */ -#line 16254 "" +#line 16316 "" } -#line 16255 "" - s_wsle(&io___1015); -#line 16255 "" +#line 16317 "" + s_wsle(&io___1017); +#line 16317 "" do_lio(&c__9, &c__1, "Problem finding grace index in makeabar", ( ftnlen)39); -#line 16255 "" +#line 16317 "" e_wsle(); -#line 16256 "" +#line 16318 "" s_stop("", (ftnlen)0); -#line 16257 "" +#line 16319 "" L123: /* wgr = distance to backspace (in headwidths), less main acc. */ @@ -38305,146 +38425,146 @@ L123: /* spgr = total space needed (w/o main acc). */ /* Also, spgr is same for b4 or after, but xb4fac-space will be in diff. place. */ -#line 16264 "" +#line 16326 "" if (comgrace_1.nng[ig - 1] == 1) { -#line 16265 "" +#line 16327 "" wgr = spfacs_1.grafac; -#line 16266 "" +#line 16328 "" if (comgrace_1.multg[ig - 1] == 0) { -#line 16266 "" +#line 16328 "" wgr += -.4f; -#line 16266 "" +#line 16328 "" } -#line 16267 "" +#line 16329 "" } else { -#line 16268 "" +#line 16330 "" wgr = comgrace_1.nng[ig - 1] * spfacs_1.emgfac; -#line 16269 "" +#line 16331 "" i__1 = comgrace_1.nng[ig - 1]; -#line 16269 "" +#line 16331 "" for (ing = 2; ing <= i__1; ++ing) { -#line 16270 "" +#line 16332 "" if (comgrace_1.naccg[comgrace_1.ngstrt[ig - 1] - 1 + ing - 1] > 0) { -#line 16270 "" +#line 16332 "" wgr += spfacs_1.acgfac; -#line 16270 "" +#line 16332 "" } -#line 16271 "" +#line 16333 "" /* L126: */ -#line 16271 "" +#line 16333 "" } -#line 16272 "" +#line 16334 "" } -#line 16273 "" +#line 16335 "" if (comgrace_1.graspace[ig - 1] > 0.f) { /* User-defined space before grace */ -#line 16277 "" +#line 16339 "" wgr += comgrace_1.graspace[ig - 1]; -#line 16278 "" +#line 16340 "" } -#line 16279 "" +#line 16341 "" ptgr[ig - 1] = wgr * wheadpt1; -#line 16280 "" +#line 16342 "" spgr = ptgr[ig - 1] + spfacs_1.xb4fac * wheadpt1; /* !!! May need to mod for chord accid's */ -#line 16284 "" +#line 16346 "" if (isaccs || iscacc) { -#line 16284 "" +#line 16346 "" ptgr[ig - 1] += taccfac * wheadpt1; -#line 16284 "" +#line 16346 "" } -#line 16285 "" +#line 16347 "" if (comgrace_1.naccg[comgrace_1.ngstrt[ig - 1] - 1] > 0) { -#line 16285 "" +#line 16347 "" spgr += wheadpt1 * spfacs_1.agc1fac; -#line 16285 "" +#line 16347 "" } -#line 16286 "" +#line 16348 "" pts += spgr; /* Special check for after-grace on ip-1 and normal on ip. Must go back thru */ /* loop again for the normal grace. */ -#line 16291 "" +#line 16353 "" if (isgaft && ig < comgrace_1.ngrace && ! secondgrace) { -#line 16292 "" +#line 16354 "" if (comgrace_1.ipg[ig] == ip) { -#line 16293 "" +#line 16355 "" secondgrace = TRUE_; -#line 16294 "" +#line 16356 "" ++ig; -#line 16295 "" +#line 16357 "" goto L123; -#line 16296 "" +#line 16358 "" } -#line 16297 "" +#line 16359 "" } -#line 16298 "" +#line 16360 "" } -#line 16299 "" +#line 16361 "" if (iscln) { -#line 16300 "" +#line 16362 "" pts += spfacs_1.clefac * wheadpt1; /* How far to backspace when printing the clef */ -#line 16304 "" +#line 16366 "" ptclef[commvl_1.ivx - 1] = 0.f; /* !!! May need to mod for chord accid's */ -#line 16308 "" +#line 16370 "" if (isaccs || iscacc) { -#line 16308 "" +#line 16370 "" ptclef[commvl_1.ivx - 1] += taccfac * wheadpt1; -#line 16308 "" +#line 16370 "" } -#line 16310 "" +#line 16372 "" if (isgrace) { -#line 16310 "" +#line 16372 "" ptclef[commvl_1.ivx - 1] += spgr; -#line 16310 "" +#line 16372 "" } -#line 16311 "" +#line 16373 "" } -#line 16312 "" +#line 16374 "" if (isrshft) { -#line 16313 "" +#line 16375 "" pts += spfacs_1.rtshfac * wheadpt1; -#line 16314 "" +#line 16376 "" } else if (isflag) { -#line 16315 "" +#line 16377 "" pts += spfacs_1.flagfac * wheadpt1; -#line 16316 "" +#line 16378 "" } else if (isdot) { -#line 16317 "" +#line 16379 "" pts += spfacs_1.dotfac * wheadpt1; -#line 16318 "" +#line 16380 "" } -#line 16319 "" +#line 16381 "" if ((r__1 = all_1.to[in - 1] - itrpt, dabs(r__1)) < comtol_1.tol) { /* Repeat, need a little extra space */ -#line 16323 "" +#line 16385 "" pts += spfacs_1.dotsfac * wheadpt1; -#line 16324 "" +#line 16386 "" } -#line 16325 "" +#line 16387 "" if (isarp) { -#line 16326 "" +#line 16388 "" pts += spfacs_1.arpfac * wheadpt1; -#line 16327 "" +#line 16389 "" } /* Add in padding space */ -#line 16331 "" +#line 16393 "" pts += spfacs_1.xspfac * wheadpt1; /* Now done with all items needing space except accidentals, */ @@ -38455,38 +38575,38 @@ L123: /* isfirst = ip.eq.1 .or. to(in).eq.itrpt .or. */ /* * to(in) .eq. itsig */ -#line 16341 "" +#line 16403 "" isfirst = ip == 1 || (r__1 = all_1.to[in - 1] - itrpt, dabs(r__1)) < comtol_1.tol || (r__2 = all_1.to[in - 1] - itsig, dabs(r__2)) < comtol_1.tol; -#line 16343 "" +#line 16405 "" if (isfirst) { /* At start of bar or after repeat sign or new signature */ /* if (to(in) .eq. itsig) then */ -#line 16348 "" +#line 16410 "" if ((r__1 = all_1.to[in - 1] - itsig, dabs(r__1)) < comtol_1.tol) { -#line 16349 "" +#line 16411 "" esk = 0.f; -#line 16350 "" +#line 16412 "" } else { -#line 16351 "" +#line 16413 "" esk = comask_1.fbar; -#line 16352 "" +#line 16414 "" } -#line 16353 "" +#line 16415 "" } else { /* Not 1st note of bar */ -#line 16357 "" +#line 16419 "" esk = all_1.eskz[commvl_1.ivx + ip * 24 - 25] - all_1.eskz[ commvl_1.ivx + (ip - 1) * 24 - 25]; -#line 16358 "" +#line 16420 "" } -#line 16359 "" +#line 16421 "" if (isgrace) { /* Since graces can be very long, cannot assume no interference if prior */ @@ -38496,1072 +38616,1059 @@ L123: /* 10/8/05 Kluge to not zero out esk if in xtup */ -#line 16368 "" +#line 16430 "" esksav = esk; /* Computing MAX */ -#line 16369 "" +#line 16431 "" i__1 = 1, i__7 = ip - 2; -#line 16369 "" +#line 16431 "" if ((ip <= 2 || all_1.nodur[commvl_1.ivx + max(i__1,i__7) * 24 - 25] > 0) && (r__1 = all_1.to[in - 1] - itsig, dabs(r__1)) > comtol_1.tol) { -#line 16369 "" +#line 16431 "" eskb4_(&ip, &commvl_1.ivx, &in, &ib, comnsp_2.space, &tstart[ 1], &comask_1.fbar, &itrpt, &esk); -#line 16369 "" +#line 16431 "" } /* * to(in).ne.itsig) */ -#line 16373 "" +#line 16435 "" if (dabs(esk) < comtol_1.tol) { -#line 16373 "" +#line 16435 "" esk = esksav; -#line 16373 "" +#line 16435 "" } -#line 16374 "" +#line 16436 "" } /* Done getting available elemskips. Remove headwidth if first. Must do here */ /* rather than earlier since check uses isfirst */ -#line 16379 "" +#line 16441 "" if (isfirst) { -#line 16379 "" +#line 16441 "" pts -= wheadpt1; -#line 16379 "" +#line 16441 "" } /* Deal with accidental shifts and left-notehead shifts */ -#line 16383 "" +#line 16445 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10)) { /* In a chord */ -#line 16387 "" +#line 16449 "" ptsl = 0.f; -#line 16388 "" +#line 16450 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],27)) { -#line 16388 "" +#line 16450 "" ptsl = wheadpt1; -#line 16388 "" +#line 16450 "" } /* Computing MAX */ -#line 16389 "" +#line 16451 "" r__1 = ptsl, r__2 = icashft * .05f * wheadpt1; -#line 16389 "" +#line 16451 "" ptsadd = dmax(r__1,r__2); /* Note: may have icashft=-20000 (if shftmin=-1000 in crdacc) but that's OK */ -#line 16393 "" +#line 16455 "" } else { /* Not in a chord */ -#line 16397 "" +#line 16459 "" ihshft = 0; -#line 16398 "" +#line 16460 "" if (isaccs) { -#line 16399 "" +#line 16461 "" ihshft = igetbits_(&all_1.nacc[commvl_1.ivx + ip * 24 - 25], & c__7, &c__10); /* if (ihshft .ne. 0) ihshft = max(0,64-ihshft) */ -#line 16401 "" +#line 16463 "" if (ihshft != 0) { /* Computing MAX */ -#line 16401 "" +#line 16463 "" i__1 = 0, i__7 = 107 - ihshft; -#line 16401 "" +#line 16463 "" ihshft = max(i__1,i__7); -#line 16401 "" +#line 16463 "" } -#line 16402 "" +#line 16464 "" } /* Check for left-shifted main note */ -#line 16406 "" +#line 16468 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],8)) { -#line 16406 "" +#line 16468 "" ihshft = max(20,ihshft); -#line 16406 "" +#line 16468 "" } -#line 16407 "" +#line 16469 "" ptsadd = ihshft * .05f * wheadpt1; -#line 16408 "" +#line 16470 "" } -#line 16409 "" +#line 16471 "" pts += ptsadd; -#line 16410 "" +#line 16472 "" if (isgrace) { -#line 16410 "" +#line 16472 "" ptgr[ig - 1] += ptsadd; -#line 16410 "" +#line 16472 "" } -#line 16411 "" +#line 16473 "" if (iscln) { -#line 16411 "" +#line 16473 "" ptclef[commvl_1.ivx - 1] += ptsadd; -#line 16411 "" +#line 16473 "" } /* Left-shifted, non-chord note before? */ -#line 16415 "" +#line 16477 "" if (ip > 1) { -#line 16416 "" +#line 16478 "" if (! bit_test(all_1.ipl[commvl_1.ivx + (ip - 1) * 24 - 25],10) && bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25], 27)) { -#line 16416 "" +#line 16478 "" pts -= wheadpt1; -#line 16416 "" +#line 16478 "" } -#line 16418 "" +#line 16480 "" } /* Try big accidentals first */ -#line 16422 "" +#line 16484 "" ptbneed = pts; -#line 16423 "" +#line 16485 "" if (isaccs || iscacc) { -#line 16424 "" +#line 16486 "" ptbneed += wheadpt1 * spfacs_1.bacfac; -#line 16425 "" +#line 16487 "" } -#line 16426 "" +#line 16488 "" if (comask_1.poenom * esk > ptbneed) { /* Set flag for big accidental */ -#line 16430 "" +#line 16492 "" if (isacc) { -#line 16430 "" +#line 16492 "" all_1.nacc[commvl_1.ivx + ip * 24 - 25] = bit_set(all_1.nacc[ commvl_1.ivx + ip * 24 - 25],3); -#line 16430 "" +#line 16492 "" } -#line 16431 "" +#line 16493 "" goto L99; -#line 16432 "" +#line 16494 "" } /* Cannot use big, so try small */ -#line 16436 "" +#line 16498 "" ptsneed = pts; -#line 16437 "" +#line 16499 "" if (isaccs || iscacc) { -#line 16438 "" +#line 16500 "" ptsneed += taccfac * wheadpt1; -#line 16439 "" +#line 16501 "" } -#line 16440 "" +#line 16502 "" if (comask_1.poenom * esk < ptsneed) { -#line 16440 "" +#line 16502 "" addask_(&all_1.to[in - 1], &ptsneed, &esk, &comask_1.fixednew, & - comask_1.scaldold, &c_b762, &c_false); -#line 16440 "" + comask_1.scaldold, &c_b768, &c_false); +#line 16502 "" } -#line 16442 "" +#line 16504 "" L99: -#line 16443 "" +#line 16505 "" if (bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],26)) { /* User-defined space. Warning, "zero" may change value in addask! */ -#line 16447 "" +#line 16509 "" zero = 0.f; -#line 16448 "" +#line 16510 "" addask_(&all_1.to[in - 1], &ptsneed, &zero, &comask_1.fixednew, & comask_1.scaldold, tglp1, &c_true); -#line 16450 "" +#line 16512 "" } /* End of big manual loop over "in" for accidental checking */ -#line 16454 "" +#line 16516 "" goto L111; -#line 16455 "" +#line 16517 "" L112: /* End of ask analysis for this block. */ /* Adjust eskz if there are added spaces. Corrects length of xtup brackets. */ -#line 16461 "" +#line 16523 "" if (comas1_1.naskb > 0) { -#line 16461 "" +#line 16523 "" adjusteskz_(&ib, &istart[1], &comask_1.poenom); -#line 16461 "" +#line 16523 "" } /* Check for internal repeat or sig change. */ -#line 16465 "" +#line 16527 "" if (ib > 1 && all_1.ivxo[istart[ib] - 1] == 1) { -#line 16466 "" +#line 16528 "" iirpt = all_1.islur[all_1.ipo[istart[ib] - 1] * 24 - 24] & 67109216; -#line 16467 "" +#line 16529 "" if (iirpt > 0) { /* Internal repeat */ -#line 16471 "" +#line 16533 "" if (comlast_1.islast) { -#line 16471 "" - s_wsfe(&io___1031); +#line 16533 "" + s_wsfe(&io___1033); /* Writing concatenation */ -#line 16471 "" +#line 16533 "" i__9[0] = 1, a__6[0] = all_1.sq; -#line 16471 "" +#line 16533 "" i__9[1] = 7, a__6[1] = "advance"; -#line 16471 "" +#line 16533 "" i__9[2] = 1, a__6[2] = all_1.sq; -#line 16471 "" +#line 16533 "" i__9[3] = 8, a__6[3] = "barno-1%"; -#line 16471 "" +#line 16533 "" s_cat(ch__7, a__6, i__9, &c__4, (ftnlen)17); -#line 16471 "" +#line 16533 "" do_fio(&c__1, ch__7, (ftnlen)17); -#line 16471 "" +#line 16533 "" e_wsfe(); -#line 16471 "" +#line 16533 "" } -#line 16472 "" +#line 16534 "" if (iirpt == 96) { -#line 16473 "" +#line 16535 "" if (comlast_1.islast) { -#line 16473 "" - s_wsfe(&io___1032); +#line 16535 "" + s_wsfe(&io___1034); /* Writing concatenation */ -#line 16473 "" +#line 16535 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16473 "" +#line 16535 "" i__4[1] = 15, a__2[1] = "leftrightrepeat"; -#line 16473 "" +#line 16535 "" s_cat(ch__8, a__2, i__4, &c__2, (ftnlen)16); -#line 16473 "" +#line 16535 "" do_fio(&c__1, ch__8, (ftnlen)16); -#line 16473 "" +#line 16535 "" e_wsfe(); -#line 16473 "" +#line 16535 "" } -#line 16474 "" +#line 16536 "" comask_1.fixednew += spfacs_1.lrrptfac * comask_1.wheadpt; -#line 16475 "" +#line 16537 "" } else if (bit_test(iirpt,5)) { -#line 16476 "" +#line 16538 "" if (comlast_1.islast) { -#line 16476 "" - s_wsfe(&io___1033); +#line 16538 "" + s_wsfe(&io___1035); /* Writing concatenation */ -#line 16476 "" +#line 16538 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16476 "" +#line 16538 "" i__4[1] = 10, a__2[1] = "leftrepeat"; -#line 16476 "" +#line 16538 "" s_cat(ch__9, a__2, i__4, &c__2, (ftnlen)11); -#line 16476 "" +#line 16538 "" do_fio(&c__1, ch__9, (ftnlen)11); -#line 16476 "" +#line 16538 "" e_wsfe(); -#line 16476 "" +#line 16538 "" } -#line 16477 "" +#line 16539 "" comask_1.fixednew += spfacs_1.rptfac * comask_1.wheadpt; -#line 16478 "" +#line 16540 "" } else if (bit_test(iirpt,6)) { -#line 16479 "" +#line 16541 "" if (comlast_1.islast) { -#line 16479 "" - s_wsfe(&io___1034); +#line 16541 "" + s_wsfe(&io___1036); /* Writing concatenation */ -#line 16479 "" +#line 16541 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16479 "" +#line 16541 "" i__4[1] = 11, a__2[1] = "rightrepeat"; -#line 16479 "" +#line 16541 "" s_cat(ch__5, a__2, i__4, &c__2, (ftnlen)12); -#line 16479 "" +#line 16541 "" do_fio(&c__1, ch__5, (ftnlen)12); -#line 16479 "" +#line 16541 "" e_wsfe(); -#line 16479 "" +#line 16541 "" } -#line 16480 "" +#line 16542 "" comask_1.fixednew += spfacs_1.rptfac * comask_1.wheadpt; -#line 16481 "" +#line 16543 "" } else if (bit_test(iirpt,8)) { -#line 16482 "" +#line 16544 "" if (comlast_1.islast) { -#line 16482 "" - s_wsfe(&io___1035); +#line 16544 "" + s_wsfe(&io___1037); /* Writing concatenation */ -#line 16482 "" +#line 16544 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16482 "" +#line 16544 "" i__4[1] = 9, a__2[1] = "doublebar"; -#line 16482 "" +#line 16544 "" s_cat(ch__10, a__2, i__4, &c__2, (ftnlen)10); -#line 16482 "" +#line 16544 "" do_fio(&c__1, ch__10, (ftnlen)10); -#line 16482 "" +#line 16544 "" e_wsfe(); -#line 16482 "" +#line 16544 "" } -#line 16483 "" +#line 16545 "" } else { -#line 16484 "" - s_wsle(&io___1036); -#line 16484 "" +#line 16546 "" + s_wsle(&io___1038); +#line 16546 "" do_lio(&c__9, &c__1, "Unexpected mid-bar repeat command "\ "R*", (ftnlen)36); -#line 16484 "" +#line 16546 "" e_wsle(); -#line 16485 "" +#line 16547 "" stop1_(); -#line 16486 "" +#line 16548 "" } -#line 16487 "" +#line 16549 "" comask_1.scaldold -= comask_1.fbar; -#line 16488 "" +#line 16550 "" } -#line 16489 "" +#line 16551 "" if (bit_test(all_1.ipl[all_1.ipo[istart[ib] - 1] * 24 - 24],28)) { /* Internal signature change. */ /* Writing concatenation */ -#line 16493 "" +#line 16555 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16493 "" +#line 16555 "" i__4[1] = 17, a__2[1] = "generalsignature{"; -#line 16493 "" +#line 16555 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 16494 "" +#line 16556 "" lnote = 18; -#line 16495 "" +#line 16557 "" if (comtop_1.isig < 0) { /* Writing concatenation */ -#line 16496 "" +#line 16558 "" i__4[0] = lnote, a__2[0] = notexq; -#line 16496 "" +#line 16558 "" i__4[1] = 1, a__2[1] = "-"; -#line 16496 "" +#line 16558 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 16497 "" +#line 16559 "" ++lnote; -#line 16498 "" +#line 16560 "" } -#line 16499 "" +#line 16561 "" if (comlast_1.islast) { -#line 16499 "" - s_wsfe(&io___1037); +#line 16561 "" + s_wsfe(&io___1039); /* Writing concatenation */ -#line 16499 "" +#line 16561 "" i__6[0] = lnote, a__4[0] = notexq; -#line 16499 "" +#line 16561 "" i__1 = abs(comtop_1.isig) + 48; -#line 16499 "" +#line 16561 "" chax_(ch__6, (ftnlen)1, &i__1); -#line 16499 "" +#line 16561 "" i__6[1] = 1, a__4[1] = ch__6; -#line 16499 "" +#line 16561 "" i__6[2] = 2, a__4[2] = "}%"; -#line 16499 "" +#line 16561 "" s_cat(ch__2, a__4, i__6, &c__3, (ftnlen)82); -#line 16499 "" +#line 16561 "" do_fio(&c__1, ch__2, lnote + 3); -#line 16499 "" +#line 16561 "" e_wsfe(); -#line 16499 "" +#line 16561 "" } -#line 16501 "" +#line 16563 "" if (comlast_1.islast && comignorenats_1.ignorenats) { -#line 16501 "" - s_wsfe(&io___1038); +#line 16563 "" + s_wsfe(&io___1040); /* Writing concatenation */ -#line 16501 "" +#line 16563 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16501 "" +#line 16563 "" i__4[1] = 11, a__2[1] = "ignorenats%"; -#line 16501 "" +#line 16563 "" s_cat(ch__5, a__2, i__4, &c__2, (ftnlen)12); -#line 16501 "" +#line 16563 "" do_fio(&c__1, ch__5, (ftnlen)12); -#line 16501 "" +#line 16563 "" e_wsfe(); -#line 16501 "" +#line 16563 "" } -#line 16503 "" +#line 16565 "" if (comlast_1.islast) { -#line 16503 "" - s_wsfe(&io___1039); +#line 16565 "" + s_wsfe(&io___1041); /* Writing concatenation */ -#line 16503 "" +#line 16565 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 16503 "" +#line 16565 "" i__3[1] = 14, a__1[1] = "zchangecontext"; -#line 16503 "" +#line 16565 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 16503 "" +#line 16565 "" i__3[3] = 12, a__1[3] = "addspace{-.5"; -#line 16503 "" +#line 16565 "" i__3[4] = 1, a__1[4] = all_1.sq; -#line 16503 "" +#line 16565 "" i__3[5] = 15, a__1[5] = "afterruleskip}%"; -#line 16503 "" +#line 16565 "" s_cat(ch__11, a__1, i__3, &c__6, (ftnlen)44); -#line 16503 "" +#line 16565 "" do_fio(&c__1, ch__11, (ftnlen)44); -#line 16503 "" +#line 16565 "" e_wsfe(); -#line 16503 "" +#line 16565 "" } -#line 16505 "" +#line 16567 "" lnote = 0; -#line 16506 "" +#line 16568 "" } -#line 16507 "" +#line 16569 "" } -#line 16508 "" +#line 16570 "" comnsp_2.flgndb = FALSE_; /* Done with start-of-block stuff. Begin main loop over voices. */ -#line 16512 "" +#line 16574 "" i__1 = all_1.nv; -#line 16512 "" +#line 16574 "" for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) { -#line 16513 "" +#line 16575 "" i__7 = commvl_1.nvmx[all_1.iv - 1]; -#line 16513 "" +#line 16575 "" for (kv = 1; kv <= i__7; ++kv) { -#line 16514 "" +#line 16576 "" commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25]; -#line 16515 "" +#line 16577 "" icm = commidi_1.midchan[all_1.iv + kv * 24 - 25]; /* A rather klugey way to set flag for figure in this voice */ /* Must always check figbass before figchk. */ -#line 16520 "" +#line 16582 "" if (all_1.figbass) { -#line 16521 "" +#line 16583 "" ivf = 0; -#line 16522 "" +#line 16584 "" if (commvl_1.ivx == 1) { -#line 16523 "" +#line 16585 "" ivf = 1; -#line 16524 "" +#line 16586 "" } else if (commvl_1.ivx == comfig_1.ivxfig2) { -#line 16525 "" +#line 16587 "" ivf = 2; -#line 16526 "" +#line 16588 "" } -#line 16527 "" +#line 16589 "" if (ivf > 0) { -#line 16527 "" +#line 16589 "" all_1.figchk[ivf - 1] = comfig_1.nfigs[ivf - 1] > 0; -#line 16527 "" +#line 16589 "" } -#line 16528 "" +#line 16590 "" } -#line 16529 "" +#line 16591 "" if (commvl_1.ivx > 1) { -#line 16530 "" +#line 16592 "" if (commvl_1.ivx <= all_1.nv) { -#line 16531 "" +#line 16593 "" addstr_(all_1.sepsymq + (all_1.iv - 2), &c__1, soutq, &lsout, (ftnlen)1, (ftnlen)80); -#line 16532 "" +#line 16594 "" } else { /* Writing concatenation */ -#line 16533 "" +#line 16595 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16533 "" +#line 16595 "" i__4[1] = 9, a__2[1] = "nextvoice"; -#line 16533 "" +#line 16595 "" s_cat(ch__10, a__2, i__4, &c__2, (ftnlen)10); -#line 16533 "" +#line 16595 "" addstr_(ch__10, &c__10, soutq, &lsout, (ftnlen)10, ( ftnlen)80); -#line 16534 "" +#line 16596 "" } -#line 16535 "" +#line 16597 "" } -#line 16536 "" +#line 16598 "" if (comhead_1.ihdht > 0 && commvl_1.ivx == all_1.nv) { /* Write header. First adjust height if needed to miss barno. */ -#line 16540 "" +#line 16602 "" if (comask_1.bar1syst && all_1.iline != 1) { -#line 16541 "" +#line 16603 "" comhead_1.ihdht = comsln_1.irzbnd + 15 + comsln_1.isnx; -#line 16542 "" +#line 16604 "" } /* Add user-defined vertical shift */ -#line 16546 "" +#line 16608 "" comhead_1.ihdht += comhead_1.ihdvrt; -#line 16547 "" +#line 16609 "" lchead = lenstr_(comhead_1.headrq, &c__80, (ftnlen)80); /* Writing concatenation */ -#line 16548 "" +#line 16610 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16548 "" +#line 16610 "" i__4[1] = 10, a__2[1] = "zcharnote{"; -#line 16548 "" +#line 16610 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 16549 "" - s_wsfi(&io___1043); -#line 16549 "" +#line 16611 "" + s_wsfi(&io___1045); +#line 16611 "" do_fio(&c__1, (char *)&comhead_1.ihdht, (ftnlen)sizeof( integer)); -#line 16549 "" +#line 16611 "" e_wsfi(); /* Writing concatenation */ -#line 16550 "" +#line 16612 "" i__3[0] = 13, a__1[0] = notexq; -#line 16550 "" +#line 16612 "" i__3[1] = 2, a__1[1] = "}{"; -#line 16550 "" +#line 16612 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 16550 "" +#line 16612 "" i__3[3] = 7, a__1[3] = "bigfont"; -#line 16550 "" +#line 16612 "" i__3[4] = 1, a__1[4] = all_1.sq; -#line 16550 "" +#line 16612 "" i__3[5] = 10, a__1[5] = "kern-30pt "; -#line 16550 "" +#line 16612 "" s_cat(notexq, a__1, i__3, &c__6, (ftnlen)79); -#line 16551 "" +#line 16613 "" addstr_(notexq, &c__34, soutq, &lsout, (ftnlen)79, ( ftnlen)80); /* Writing concatenation */ -#line 16552 "" +#line 16614 "" i__4[0] = lchead, a__2[0] = comhead_1.headrq; -#line 16552 "" +#line 16614 "" i__4[1] = 1, a__2[1] = "}"; -#line 16552 "" +#line 16614 "" s_cat(ch__12, a__2, i__4, &c__2, (ftnlen)81); -#line 16552 "" +#line 16614 "" i__10 = lchead + 1; -#line 16552 "" +#line 16614 "" addstr_(ch__12, &i__10, soutq, &lsout, lchead + 1, ( ftnlen)80); -#line 16553 "" +#line 16615 "" comhead_1.ihdht = 0; -#line 16554 "" +#line 16616 "" } -#line 16555 "" +#line 16617 "" if (comhead_1.lower && commvl_1.ivx == all_1.nv) { -#line 16556 "" +#line 16618 "" lclow = lenstr_(comhead_1.lowerq, &c__80, (ftnlen)80); /* Writing concatenation */ -#line 16557 "" +#line 16619 "" i__11[0] = 1, a__7[0] = all_1.sq; -#line 16557 "" +#line 16619 "" i__11[1] = 14, a__7[1] = "zcharnote{-6}{"; -#line 16557 "" +#line 16619 "" i__11[2] = 1, a__7[2] = all_1.sq; -#line 16557 "" +#line 16619 "" i__11[3] = 5, a__7[3] = "tempo"; -#line 16557 "" +#line 16619 "" i__11[4] = 1, a__7[4] = all_1.sq; -#line 16557 "" +#line 16619 "" i__11[5] = 10, a__7[5] = "kern-10pt "; -#line 16557 "" +#line 16619 "" i__11[6] = lclow, a__7[6] = comhead_1.lowerq; -#line 16557 "" +#line 16619 "" i__11[7] = 1, a__7[7] = "}"; -#line 16557 "" +#line 16619 "" s_cat(ch__13, a__7, i__11, &c__8, (ftnlen)113); -#line 16557 "" +#line 16619 "" i__10 = lclow + 33; -#line 16557 "" +#line 16619 "" addstr_(ch__13, &i__10, soutq, &lsout, lclow + 33, ( ftnlen)80); -#line 16560 "" +#line 16622 "" comhead_1.lower = FALSE_; -#line 16561 "" +#line 16623 "" } -#line 16562 "" +#line 16624 "" tnow = tstart[ib]; -#line 16563 "" +#line 16625 "" nofirst = TRUE_; /* Done setting up voice ivx for start of block ib. Loop over notes in voice. */ -#line 16567 "" +#line 16629 "" i__10 = istop[ib]; -#line 16567 "" +#line 16629 "" for (all_1.jn = istart[ib]; all_1.jn <= i__10; ++all_1.jn) { -#line 16568 "" +#line 16630 "" if (all_1.ivxo[all_1.jn - 1] != commvl_1.ivx) { -#line 16568 "" +#line 16630 "" goto L10; -#line 16568 "" +#line 16630 "" } -#line 16569 "" +#line 16631 "" ip = all_1.ipo[all_1.jn - 1]; /* May have problem with not initializing islhgt, so do it here */ -#line 16573 "" +#line 16635 "" islhgt = 0; -#line 16575 "" +#line 16637 "" if (nofirst) { -#line 16576 "" +#line 16638 "" comoct_1.noctup = 0; -#line 16577 "" +#line 16639 "" if (ncmid_(&all_1.iv, &ip) == 23) { -#line 16577 "" +#line 16639 "" comoct_1.noctup = -2; -#line 16577 "" +#line 16639 "" } -#line 16578 "" +#line 16640 "" nofirst = FALSE_; -#line 16579 "" +#line 16641 "" } /* Check for internal floating figure (before last note of group). */ -#line 16583 "" +#line 16645 "" L12: -#line 16583 "" +#line 16645 "" if (all_1.figbass) { -#line 16584 "" +#line 16646 "" if (commvl_1.ivx == 1 || commvl_1.ivx == comfig_1.ivxfig2) { -#line 16585 "" +#line 16647 "" ivf = 1; -#line 16586 "" +#line 16648 "" if (commvl_1.ivx > 1) { -#line 16586 "" +#line 16648 "" ivf = 2; -#line 16586 "" +#line 16648 "" } -#line 16587 "" +#line 16649 "" if (all_1.figchk[ivf - 1] && (real) comfig_1.itfig[ivf + (ifig[ivf - 1] << 1) - 3] < tnow - comtol_1.tol) { /* Bypassed figure location. Backup, place fig, return. */ -#line 16592 "" +#line 16654 "" offnsk = (tnow - comfig_1.itfig[ivf + (ifig[ ivf - 1] << 1) - 3]) / comnsp_2.space[ ib - 1]; -#line 16593 "" +#line 16655 "" putfig_(&ivf, &ifig[ivf - 1], &offnsk, & all_1.figchk[ivf - 1], soutq, &lsout, (ftnlen)80); -#line 16595 "" +#line 16657 "" goto L12; -#line 16596 "" +#line 16658 "" } -#line 16597 "" +#line 16659 "" } -#line 16598 "" +#line 16660 "" } /* Put in \sk if needed */ -#line 16602 "" +#line 16664 "" if (all_1.to[all_1.jn - 1] > tnow + comtol_1.tol) { /* Writing concatenation */ -#line 16603 "" +#line 16665 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16603 "" +#line 16665 "" i__4[1] = 2, a__2[1] = "sk"; -#line 16603 "" +#line 16665 "" s_cat(ch__14, a__2, i__4, &c__2, (ftnlen)3); -#line 16603 "" +#line 16665 "" addstr_(ch__14, &c__3, soutq, &lsout, (ftnlen)3, ( ftnlen)80); -#line 16604 "" +#line 16666 "" tnow += comnsp_2.space[ib - 1]; -#line 16605 "" +#line 16667 "" goto L12; -#line 16606 "" +#line 16668 "" } /* Check for user-defined shifts */ -#line 16610 "" +#line 16672 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],15) || bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],16)) { -#line 16610 "" +#line 16672 "" putshft_(&commvl_1.ivx, &c_true, soutq, &lsout, ( ftnlen)80); -#line 16610 "" +#line 16672 "" } -#line 16612 "" +#line 16674 "" L21: -#line 16612 "" +#line 16674 "" if (iaskb[commvl_1.ivx - 1] <= comas1_1.naskb && tnow > comas1_1.task[iaskb[commvl_1.ivx - 1] - 1] - comtol_1.tol) { -#line 16614 "" +#line 16676 "" if (comas1_1.task[iaskb[commvl_1.ivx - 1] - 1] > tstart[ib] - comtol_1.tol) { /* Insert placeholder for accidental skip */ /* Writing concatenation */ -#line 16618 "" +#line 16680 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16618 "" +#line 16680 "" i__4[1] = 8, a__2[1] = "ask "; -#line 16618 "" +#line 16680 "" s_cat(ch__15, a__2, i__4, &c__2, (ftnlen)9); -#line 16618 "" +#line 16680 "" addstr_(ch__15, &c__9, soutq, &lsout, (ftnlen)9, ( ftnlen)80); -#line 16619 "" +#line 16681 "" ++comas2_1.nasksys; -#line 16620 "" +#line 16682 "" comas2_1.wasksys[comas2_1.nasksys - 1] = comas1_1.wask[iaskb[commvl_1.ivx - 1] - 1] ; -#line 16621 "" +#line 16683 "" if (comas1_1.wask[iaskb[commvl_1.ivx - 1] - 1] > 0.f) { -#line 16622 "" +#line 16684 "" comas2_1.elasksys[comas2_1.nasksys - 1] = comas1_1.elask[iaskb[commvl_1.ivx - 1] - 1]; -#line 16623 "" +#line 16685 "" } else { /* This is a signal to permit negative ask's. Should really have elask>=0. */ -#line 16627 "" +#line 16689 "" comas2_1.elasksys[comas2_1.nasksys - 1] = -comas1_1.elask[iaskb[commvl_1.ivx - 1] - 1]; -#line 16628 "" +#line 16690 "" } -#line 16629 "" +#line 16691 "" } /* May have skipped some task's in earlier blocks (due to void voice) */ -#line 16633 "" +#line 16695 "" ++iaskb[commvl_1.ivx - 1]; -#line 16634 "" +#line 16696 "" goto L21; -#line 16635 "" +#line 16697 "" } -#line 16636 "" +#line 16698 "" if (all_1.figbass) { -#line 16637 "" +#line 16699 "" if (commvl_1.ivx == 1 || commvl_1.ivx == comfig_1.ivxfig2) { -#line 16638 "" +#line 16700 "" ivf = 1; -#line 16639 "" +#line 16701 "" if (commvl_1.ivx > 1) { -#line 16639 "" +#line 16701 "" ivf = 2; -#line 16639 "" +#line 16701 "" } -#line 16640 "" +#line 16702 "" if (all_1.figchk[ivf - 1] && (r__1 = comfig_1.itfig[ivf + (ifig[ivf - 1] << 1) - 3] - tnow, dabs(r__1)) < comtol_1.tol) { /* Figure on a note. NB: later special check for late figs. */ -#line 16645 "" - putfig_(&ivf, &ifig[ivf - 1], &c_b762, & +#line 16707 "" + putfig_(&ivf, &ifig[ivf - 1], &c_b768, & all_1.figchk[ivf - 1], soutq, &lsout, (ftnlen)80); -#line 16646 "" +#line 16708 "" } -#line 16647 "" +#line 16709 "" } -#line 16648 "" +#line 16710 "" } /* Check for new clef here. */ -#line 16652 "" +#line 16714 "" if (isclef && bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],11)) { /* print*,'At clef insertion, ptclef:',ptclef(iv) */ -#line 16654 "" +#line 16716 "" if (ptclef[all_1.iv - 1] > 0.f) { /* Writing concatenation */ -#line 16655 "" +#line 16717 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16655 "" +#line 16717 "" i__4[1] = 5, a__2[1] = "off{-"; -#line 16655 "" +#line 16717 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 16656 "" +#line 16718 "" if (ptclef[all_1.iv - 1] < 9.95f) { -#line 16657 "" - s_wsfi(&io___1049); -#line 16657 "" +#line 16719 "" + s_wsfi(&io___1051); +#line 16719 "" do_fio(&c__1, (char *)&ptclef[all_1.iv - 1], ( ftnlen)sizeof(real)); -#line 16657 "" +#line 16719 "" e_wsfi(); -#line 16658 "" +#line 16720 "" lnote = 9; -#line 16659 "" +#line 16721 "" } else { -#line 16660 "" - s_wsfi(&io___1050); -#line 16660 "" +#line 16722 "" + s_wsfi(&io___1052); +#line 16722 "" do_fio(&c__1, (char *)&ptclef[all_1.iv - 1], ( ftnlen)sizeof(real)); -#line 16660 "" +#line 16722 "" e_wsfi(); -#line 16661 "" +#line 16723 "" lnote = 10; -#line 16662 "" +#line 16724 "" } /* Writing concatenation */ -#line 16663 "" +#line 16725 "" i__4[0] = lnote, a__2[0] = notexq; -#line 16663 "" +#line 16725 "" i__4[1] = 3, a__2[1] = "pt}"; -#line 16663 "" +#line 16725 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 16664 "" +#line 16726 "" lnote += 3; -#line 16665 "" +#line 16727 "" addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, (ftnlen)80); /* print*,'Just added: ',notexq(1:lnote) */ -#line 16667 "" +#line 16729 "" } -#line 16668 "" +#line 16730 "" clefsym_(&all_1.islur[all_1.iv + ip * 24 - 25], notexq, &lnote, &nclef, (ftnlen)79); /* 151220 If clef is treblelowoct, change '0' in pos'n 9 to '8' */ -#line 16672 "" +#line 16734 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],2) ) { /* Writing concatenation */ -#line 16672 "" +#line 16734 "" i__6[0] = 8, a__4[0] = notexq; -#line 16672 "" +#line 16734 "" i__6[1] = 1, a__4[1] = "8"; -#line 16672 "" +#line 16734 "" i__6[2] = 1, a__4[2] = notexq + 9; -#line 16672 "" +#line 16734 "" s_cat(notexq, a__4, i__6, &c__3, (ftnlen)79); -#line 16672 "" +#line 16734 "" } -#line 16674 "" +#line 16736 "" addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, ( ftnlen)80); -#line 16675 "" +#line 16737 "" if (ptclef[all_1.iv - 1] > 0.f) { /* Writing concatenation */ -#line 16676 "" +#line 16738 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16676 "" +#line 16738 "" i__4[1] = 4, a__2[1] = "off{"; -#line 16676 "" +#line 16738 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 16677 "" +#line 16739 "" if (ptclef[all_1.iv - 1] < 9.95f) { -#line 16678 "" - s_wsfi(&io___1052); -#line 16678 "" +#line 16740 "" + s_wsfi(&io___1054); +#line 16740 "" do_fio(&c__1, (char *)&ptclef[all_1.iv - 1], ( ftnlen)sizeof(real)); -#line 16678 "" +#line 16740 "" e_wsfi(); -#line 16679 "" +#line 16741 "" lnote = 8; -#line 16680 "" +#line 16742 "" } else { -#line 16681 "" - s_wsfi(&io___1053); -#line 16681 "" +#line 16743 "" + s_wsfi(&io___1055); +#line 16743 "" do_fio(&c__1, (char *)&ptclef[all_1.iv - 1], ( ftnlen)sizeof(real)); -#line 16681 "" +#line 16743 "" e_wsfi(); -#line 16682 "" +#line 16744 "" lnote = 9; -#line 16683 "" +#line 16745 "" } /* Writing concatenation */ -#line 16684 "" +#line 16746 "" i__4[0] = lnote, a__2[0] = notexq; -#line 16684 "" +#line 16746 "" i__4[1] = 3, a__2[1] = "pt}"; -#line 16684 "" +#line 16746 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 16685 "" +#line 16747 "" lnote += 3; -#line 16686 "" +#line 16748 "" addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, (ftnlen)80); -#line 16687 "" +#line 16749 "" } -#line 16688 "" +#line 16750 "" } /* Checking for literal TeX string BEFORE starting beams!! */ -#line 16692 "" +#line 16754 "" if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],16)) { -#line 16693 "" +#line 16755 "" i__12 = comgrace_1.nlit; -#line 16693 "" +#line 16755 "" for (il = 1; il <= i__12; ++il) { -#line 16694 "" +#line 16756 "" if (comgrace_1.iplit[il - 1] == ip && comgrace_1.ivlit[il - 1] == commvl_1.ivx) { -#line 16694 "" +#line 16756 "" goto L125; -#line 16694 "" +#line 16756 "" } -#line 16695 "" +#line 16757 "" /* L124: */ -#line 16695 "" +#line 16757 "" } -#line 16696 "" - s_wsle(&io___1055); -#line 16696 "" +#line 16758 "" + s_wsle(&io___1057); +#line 16758 "" do_lio(&c__9, &c__1, "Problem finding index for lite"\ "ral string", (ftnlen)40); -#line 16696 "" +#line 16758 "" e_wsle(); -#line 16697 "" +#line 16759 "" stop1_(); -#line 16698 "" +#line 16760 "" L125: /* Write a type 1 tex string. */ -#line 16702 "" +#line 16764 "" if (comgrace_1.lenlit[il - 1] < 71) { /* Add normally */ -#line 16706 "" +#line 16768 "" addstr_(comgrace_1.litq + (il - 1 << 7), & comgrace_1.lenlit[il - 1], soutq, &lsout, (ftnlen)128, (ftnlen)80); -#line 16707 "" +#line 16769 "" } else { /* Longer than 71. Write souq, Write string, start new soutq. */ -#line 16711 "" +#line 16773 "" if (comlast_1.islast) { -#line 16711 "" - s_wsfe(&io___1056); +#line 16773 "" + s_wsfe(&io___1058); /* Writing concatenation */ -#line 16711 "" +#line 16773 "" i__4[0] = lsout, a__2[0] = soutq; -#line 16711 "" +#line 16773 "" i__4[1] = 1, a__2[1] = "%"; -#line 16711 "" +#line 16773 "" s_cat(ch__12, a__2, i__4, &c__2, (ftnlen)81); -#line 16711 "" +#line 16773 "" do_fio(&c__1, ch__12, lsout + 1); -#line 16711 "" +#line 16773 "" e_wsfe(); -#line 16711 "" +#line 16773 "" } -#line 16712 "" +#line 16774 "" if (comlast_1.islast) { -#line 16712 "" - s_wsfe(&io___1057); +#line 16774 "" + s_wsfe(&io___1059); /* Writing concatenation */ -#line 16712 "" +#line 16774 "" i__4[0] = comgrace_1.lenlit[il - 1], a__2[0] = comgrace_1.litq + (il - 1 << 7); -#line 16712 "" +#line 16774 "" i__4[1] = 1, a__2[1] = "%"; -#line 16712 "" +#line 16774 "" s_cat(ch__16, a__2, i__4, &c__2, (ftnlen)129); -#line 16712 "" +#line 16774 "" do_fio(&c__1, ch__16, comgrace_1.lenlit[il - 1] + 1); -#line 16712 "" +#line 16774 "" e_wsfe(); -#line 16712 "" +#line 16774 "" } -#line 16713 "" +#line 16775 "" lsout = 0; -#line 16714 "" +#line 16776 "" } -#line 16715 "" +#line 16777 "" } /* Arpeggio on a main (non-chordal) note? */ -#line 16719 "" +#line 16781 "" if (bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],27)) { /* call putarp(tnow,iv,ip,nolev(ivx,ip),ncmid(iv,ip), */ -#line 16721 "" - s_wsle(&io___1058); -#line 16721 "" - do_lio(&c__9, &c__1, "Calling putarp main, iv,ivx:", ( - ftnlen)28); -#line 16721 "" - do_lio(&c__3, &c__1, (char *)&all_1.iv, (ftnlen) - sizeof(integer)); -#line 16721 "" - do_lio(&c__3, &c__1, (char *)&commvl_1.ivx, (ftnlen) - sizeof(integer)); -#line 16721 "" - e_wsle(); -#line 16722 "" +#line 16783 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16722 "" +#line 16783 "" putarp_(&tnow, &commvl_1.ivx, &ip, &all_1.nolev[ commvl_1.ivx + ip * 24 - 25], &i__12, soutq, & lsout, (ftnlen)80); -#line 16724 "" +#line 16785 "" } /* See if a beam starts here */ -#line 16728 "" +#line 16789 "" if (numbms[commvl_1.ivx] > 0 && all_1.ibmcnt[commvl_1.ivx - 1] <= numbms[commvl_1.ivx] && all_1.ibm1[ commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25] == ip || bit_test(all_1.nacc[ commvl_1.ivx + ip * 24 - 25],21)) { -#line 16731 "" +#line 16792 "" if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],24)) { /* Not a jump start */ -#line 16735 "" +#line 16796 "" if (comkbdrests_1.kbdrests && bit_test( all_1.irest[commvl_1.ivx + ip * 24 - 25], 0) && ! bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],29) && commvl_1.nvmx[ all_1.iv - 1] == 2 && all_1.nolev[ commvl_1.ivx + ip * 24 - 25] <= 50) { -#line 16735 "" +#line 16796 "" chkkbdrests_(&ip, &all_1.iv, &commvl_1.ivx, all_1.nn, all_1.islur, all_1.irest, all_1.nolev, commvl_1.ivmx, all_1.nib, @@ -39570,118 +39677,117 @@ L125: comkbdrests_1.levtopr, comkbdrests_1.levbotr, all_1.mult, all_1.ipl); -#line 16735 "" +#line 16796 "" } -/* * mult) */ -#line 16742 "" +#line 16802 "" beamstrt_(notexq, &lnote, nornb, ihornb, comnsp_2.space, &squez[1], &ib, (ftnlen) 79); /* Shift beam start if notehead was shifted */ -#line 16746 "" +#line 16806 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],8)) { /* Writing concatenation */ -#line 16747 "" +#line 16807 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16747 "" +#line 16807 "" i__4[1] = 5, a__2[1] = "loff{"; -#line 16747 "" +#line 16807 "" s_cat(ch__17, a__2, i__4, &c__2, (ftnlen)6); -#line 16747 "" +#line 16807 "" addstr_(ch__17, &c__6, soutq, &lsout, (ftnlen) 6, (ftnlen)80); -#line 16748 "" +#line 16808 "" } else if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],9)) { /* Writing concatenation */ -#line 16749 "" +#line 16809 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 16749 "" +#line 16809 "" i__4[1] = 5, a__2[1] = "roff{"; -#line 16749 "" +#line 16809 "" s_cat(ch__17, a__2, i__4, &c__2, (ftnlen)6); -#line 16749 "" +#line 16809 "" addstr_(ch__17, &c__6, soutq, &lsout, (ftnlen) 6, (ftnlen)80); -#line 16750 "" +#line 16810 "" } -#line 16751 "" +#line 16811 "" if (lnote > 0) { -#line 16751 "" +#line 16811 "" addstr_(notexq, &lnote, soutq, &lsout, ( ftnlen)79, (ftnlen)80); -#line 16751 "" +#line 16811 "" } -#line 16752 "" +#line 16812 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],8) || bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],9)) { -#line 16752 "" +#line 16812 "" addstr_("}", &c__1, soutq, &lsout, (ftnlen)1, (ftnlen)80); -#line 16752 "" +#line 16812 "" } -#line 16754 "" +#line 16814 "" } else { /* Jump start. Set marker for second part of a jump beam. Note ivbj2 was set */ /* to 0 at end of first part of jump beam */ -#line 16759 "" +#line 16819 "" combjmp_1.ivbj2 = commvl_1.ivx; /* Check for xtup since we bypassed beamstrt wherein vxtup is normally set */ -#line 16763 "" +#line 16823 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],28) && strtmid_1.ixrest[commvl_1.ivx - 1] != 2) { -#line 16763 "" +#line 16823 "" comxtup_1.vxtup[commvl_1.ivx - 1] = TRUE_; -#line 16763 "" +#line 16823 "" } /* Since beamstrt is not called, and drawbm is normally set there, need to set */ /* it here. This could cause problems if someone tries a staff-jumping, */ /* unbarred beam, which I'll deal with when it comes up. */ -#line 16770 "" +#line 16830 "" comdraw_1.drawbm[commvl_1.ivx - 1] = TRUE_; -#line 16771 "" +#line 16831 "" } -#line 16772 "" +#line 16832 "" if (strtmid_1.ixrest[commvl_1.ivx - 1] == 0) { -#line 16773 "" +#line 16833 "" all_1.beamon[commvl_1.ivx - 1] = TRUE_; -#line 16774 "" +#line 16834 "" bspend = TRUE_; -#line 16775 "" +#line 16835 "" if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],24)) { -#line 16775 "" +#line 16835 "" bspend = TRUE_; -#line 16775 "" +#line 16835 "" } -#line 16776 "" +#line 16836 "" } -#line 16777 "" +#line 16837 "" } /* Setup for chords and possible slurs in chords */ -#line 16781 "" +#line 16841 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10)) { /* There is a chord on this note. Just rerun precrd. Klunky, but saves */ /* me from tracking down errors instroduced when I moved 1st call */ /* forward for accidental spacing analysis. */ -#line 16787 "" +#line 16847 "" if (all_1.beamon[commvl_1.ivx - 1]) { -#line 16788 "" +#line 16848 "" precrd_(&commvl_1.ivx, &ip, &all_1.nolev[ commvl_1.ivx + ip * 24 - 25], &all_1.nacc[ commvl_1.ivx + ip * 24 - 25], &all_1.ipl[ @@ -39690,57 +39796,57 @@ L125: all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25), &c_true, & icashft, (ftnlen)1); -#line 16791 "" +#line 16851 "" } else { -#line 16792 "" +#line 16852 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16792 "" +#line 16852 "" udqq_(ch__6, (ftnlen)1, &all_1.nolev[commvl_1.ivx + ip * 24 - 25], &i__12, &all_1.islur[ commvl_1.ivx + ip * 24 - 25], & commvl_1.nvmx[all_1.iv - 1], & commvl_1.ivx, &all_1.nv); -#line 16792 "" +#line 16852 "" precrd_(&commvl_1.ivx, &ip, &all_1.nolev[ commvl_1.ivx + ip * 24 - 25], &all_1.nacc[ commvl_1.ivx + ip * 24 - 25], &all_1.ipl[ commvl_1.ivx + ip * 24 - 25], & all_1.irest[commvl_1.ivx + ip * 24 - 25], ch__6, &c_true, &icashft, (ftnlen)1); -#line 16796 "" +#line 16856 "" } -#line 16797 "" +#line 16857 "" } /* Is there slur or grace activity? */ -#line 16801 "" +#line 16861 "" isgrace = bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],4); -#line 16802 "" +#line 16862 "" if (ip > 1) { -#line 16802 "" +#line 16862 "" isgrace = isgrace || bit_test(all_1.ipl[commvl_1.ivx + (ip - 1) * 24 - 25],31); -#line 16802 "" +#line 16862 "" } /* isgrace if not 1st note in bar and previous note has Way-after grace. */ -#line 16806 "" +#line 16866 "" if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],0) || isgrace) { -#line 16807 "" +#line 16867 "" if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25], 0)) { -#line 16808 "" +#line 16868 "" if (comslur_1.fontslur) { /* Call routine for non-postscript slurs */ -#line 16812 "" +#line 16872 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16812 "" +#line 16872 "" doslur_(&all_1.nolev[commvl_1.ivx + ip * 24 - 25], all_1.isdat1, all_1.isdat2, all_1.isdat3, &all_1.nsdat, &ip, & @@ -39757,14 +39863,14 @@ L125: - 25] - 1], &all_1.nacc[commvl_1.ivx + ip * 24 - 25], (ftnlen)80, (ftnlen) 1); -#line 16817 "" +#line 16877 "" } else { /* Postscript slurs */ -#line 16821 "" +#line 16881 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16821 "" +#line 16881 "" dopsslur_(&all_1.nolev[commvl_1.ivx + ip * 24 - 25], all_1.isdat1, all_1.isdat2, all_1.isdat3, all_1.isdat4, & @@ -39781,33 +39887,33 @@ L125: commvl_1.ivx + ip * 24 - 25] - 1], & all_1.nacc[commvl_1.ivx + ip * 24 - 25], (ftnlen)80, (ftnlen)1); -#line 16827 "" +#line 16887 "" } -#line 16828 "" +#line 16888 "" } -#line 16829 "" +#line 16889 "" if (isgrace) { /* Grace note. */ -#line 16833 "" +#line 16893 "" iphold = ip; -#line 16834 "" +#line 16894 "" isgrace = FALSE_; -#line 16835 "" +#line 16895 "" if (ip > 1) { -#line 16835 "" +#line 16895 "" isgrace = bit_test(all_1.ipl[commvl_1.ivx + ( ip - 1) * 24 - 25],31); -#line 16835 "" +#line 16895 "" } -#line 16836 "" +#line 16896 "" if (isgrace) { -#line 16836 "" +#line 16896 "" --iphold; -#line 16836 "" +#line 16896 "" } -#line 16837 "" +#line 16897 "" isgrace = isgrace || ! bit_test(all_1.ipl[ commvl_1.ivx + ip * 24 - 25],31) && ! bit_test(all_1.ipl[commvl_1.ivx + ip * 24 @@ -39816,13 +39922,13 @@ L125: /* Place grace now if (a) Way-after from prev note and ip>1 or (b) Pre-grace */ /* on current note. Do A-grace on current note, and W-grace at barend, later. */ -#line 16843 "" +#line 16903 "" if (isgrace) { -#line 16844 "" +#line 16904 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16844 "" +#line 16904 "" i__13 = ncmid_(&all_1.iv, &ip); -#line 16844 "" +#line 16904 "" dograce_(&commvl_1.ivx, &iphold, ptgr, soutq, &lsout, &i__12, &all_1.nacc[ commvl_1.ivx + ip * 24 - 25], &ig, & @@ -39839,233 +39945,233 @@ L125: all_1.iv - 1], (ftnlen)80, (ftnlen)1); /* 130324 */ /* * tnote(ipl2(ivx,ip)),ulq) */ -#line 16851 "" +#line 16911 "" if (comgrace_1.slurg[ig - 1]) { /* Terminate slur started in dograce. Get direction of main note stem */ -#line 16855 "" +#line 16915 "" if (! all_1.beamon[commvl_1.ivx - 1]) { /* Separate note. Get stem direction. */ -#line 16859 "" +#line 16919 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16859 "" +#line 16919 "" udqq_(ch__6, (ftnlen)1, &all_1.nolev[ commvl_1.ivx + ip * 24 - 25], &i__12, &all_1.islur[ commvl_1.ivx + ip * 24 - 25], &commvl_1.nvmx[all_1.iv - 1], &commvl_1.ivx, &all_1.nv); -#line 16859 "" +#line 16919 "" stemup = *(unsigned char *)&ch__6[0] == 'u'; -#line 16861 "" +#line 16921 "" } else { /* In a beam */ -#line 16865 "" +#line 16925 "" stemup = *(unsigned char *)&all_1.ulq[ commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25] == 'u'; -#line 16866 "" +#line 16926 "" } /* Stop the shift if whole note */ -#line 16870 "" +#line 16930 "" stemup = stemup || all_1.tnote[ comipl2_1.ipl2[commvl_1.ivx + ip * 24 - 25] - 1] > 63.f; -#line 16872 "" +#line 16932 "" L__1 = ! comgrace_1.upg[ig - 1]; -#line 16872 "" +#line 16932 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16872 "" +#line 16932 "" endslur_(&stemup, &L__1, &all_1.nolev[ commvl_1.ivx + ip * 24 - 25], & c__0, &comslur_1.ndxslur, &c__0, & i__12, soutq, &lsout, & comslur_1.fontslur, (ftnlen)80); -#line 16874 "" +#line 16934 "" } -#line 16875 "" +#line 16935 "" } -#line 16876 "" +#line 16936 "" } -#line 16877 "" +#line 16937 "" if (bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1], 24)) { /* Start slur on main note for After- or Way-after-grace. */ /* ???? ndxslur = log2(33554431-listslur) */ -#line 16882 "" +#line 16942 "" i__12 = 16777215 - comslur_1.listslur; -#line 16882 "" +#line 16942 "" comslur_1.ndxslur = log2_(&i__12); /* Get note name */ -#line 16886 "" +#line 16946 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16886 "" +#line 16946 "" notefq_(noteq, &lnoten, &all_1.nolev[commvl_1.ivx + ip * 24 - 25], &i__12, (ftnlen)8); /* Get slur direction */ -#line 16890 "" +#line 16950 "" *(unsigned char *)slurudq = 'u'; -#line 16891 "" +#line 16951 "" if (! all_1.beamon[commvl_1.ivx - 1]) { -#line 16892 "" +#line 16952 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16892 "" +#line 16952 "" udqq_(ch__6, (ftnlen)1, &all_1.nolev[ commvl_1.ivx + ip * 24 - 25], &i__12, &all_1.islur[commvl_1.ivx + ip * 24 - 25], &commvl_1.nvmx[all_1.iv - 1], & commvl_1.ivx, &all_1.nv); -#line 16892 "" +#line 16952 "" if (*(unsigned char *)&ch__6[0] == 'u') { -#line 16892 "" +#line 16952 "" *(unsigned char *)slurudq = 'd'; -#line 16892 "" +#line 16952 "" } -#line 16894 "" +#line 16954 "" } else { -#line 16895 "" +#line 16955 "" if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25] == 'u') { -#line 16895 "" +#line 16955 "" *(unsigned char *)slurudq = 'd'; -#line 16895 "" +#line 16955 "" } -#line 16896 "" +#line 16956 "" } /* c Replace ndxslur by 11-ndxslur when printing only. */ /* Replace ndxslur by 23-ndxslur when printing only. */ /* if (11-ndxslur .lt. 10) then */ -#line 16902 "" +#line 16962 "" if (23 - comslur_1.ndxslur < 10) { /* notexq = sq//'islur'//slurudq//chax(59-ndxslur) */ /* Writing concatenation */ -#line 16904 "" +#line 16964 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 16904 "" +#line 16964 "" i__5[1] = 5, a__3[1] = "islur"; -#line 16904 "" +#line 16964 "" i__5[2] = 1, a__3[2] = slurudq; -#line 16904 "" +#line 16964 "" i__12 = 71 - comslur_1.ndxslur; -#line 16904 "" +#line 16964 "" chax_(ch__6, (ftnlen)1, &i__12); -#line 16904 "" +#line 16964 "" i__5[3] = 1, a__3[3] = ch__6; -#line 16904 "" +#line 16964 "" i__5[4] = lnoten, a__3[4] = noteq; -#line 16904 "" +#line 16964 "" s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79); -#line 16906 "" +#line 16966 "" i__12 = lnoten + 8; -#line 16906 "" +#line 16966 "" addstr_(notexq, &i__12, soutq, &lsout, ( ftnlen)79, (ftnlen)80); -#line 16907 "" +#line 16967 "" } else if (23 - comslur_1.ndxslur < 20) { /* Writing concatenation */ -#line 16908 "" +#line 16968 "" i__14[0] = 1, a__8[0] = all_1.sq; -#line 16908 "" +#line 16968 "" i__14[1] = 5, a__8[1] = "islur"; -#line 16908 "" +#line 16968 "" i__14[2] = 1, a__8[2] = slurudq; -#line 16908 "" +#line 16968 "" i__14[3] = 2, a__8[3] = "{1"; -#line 16908 "" +#line 16968 "" i__12 = 61 - comslur_1.ndxslur; -#line 16908 "" +#line 16968 "" chax_(ch__6, (ftnlen)1, &i__12); -#line 16908 "" +#line 16968 "" i__14[4] = 1, a__8[4] = ch__6; -#line 16908 "" +#line 16968 "" i__14[5] = 1, a__8[5] = "}"; -#line 16908 "" +#line 16968 "" i__14[6] = lnoten, a__8[6] = noteq; -#line 16908 "" +#line 16968 "" s_cat(notexq, a__8, i__14, &c__7, (ftnlen)79); -#line 16910 "" +#line 16970 "" i__12 = lnoten + 11; -#line 16910 "" +#line 16970 "" addstr_(notexq, &i__12, soutq, &lsout, ( ftnlen)79, (ftnlen)80); -#line 16911 "" +#line 16971 "" } else { /* Writing concatenation */ -#line 16912 "" +#line 16972 "" i__14[0] = 1, a__8[0] = all_1.sq; -#line 16912 "" +#line 16972 "" i__14[1] = 5, a__8[1] = "islur"; -#line 16912 "" +#line 16972 "" i__14[2] = 1, a__8[2] = slurudq; -#line 16912 "" +#line 16972 "" i__14[3] = 2, a__8[3] = "{2"; -#line 16912 "" +#line 16972 "" i__12 = 51 - comslur_1.ndxslur; -#line 16912 "" +#line 16972 "" chax_(ch__6, (ftnlen)1, &i__12); -#line 16912 "" +#line 16972 "" i__14[4] = 1, a__8[4] = ch__6; -#line 16912 "" +#line 16972 "" i__14[5] = 1, a__8[5] = "}"; -#line 16912 "" +#line 16972 "" i__14[6] = lnoten, a__8[6] = noteq; -#line 16912 "" +#line 16972 "" s_cat(notexq, a__8, i__14, &c__7, (ftnlen)79); -#line 16914 "" +#line 16974 "" i__12 = lnoten + 11; -#line 16914 "" +#line 16974 "" addstr_(notexq, &i__12, soutq, &lsout, ( ftnlen)79, (ftnlen)80); -#line 16915 "" +#line 16975 "" } /* call setbits(ipl(ivx,ip),4,23,ndxslur) */ -#line 16917 "" +#line 16977 "" setbits_(&all_1.ipl[commvl_1.ivx + ip * 24 - 25], &c__5, &c__23, &comslur_1.ndxslur); -#line 16918 "" +#line 16978 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],31)) { -#line 16918 "" +#line 16978 "" comslur_1.listslur = bit_set( comslur_1.listslur,comslur_1.ndxslur); -#line 16918 "" +#line 16978 "" } /* Starting slur on W-grace on THIS note. Record ndxslur. */ -#line 16923 "" +#line 16983 "" } -#line 16924 "" +#line 16984 "" } /* Process dynamic marks */ -#line 16928 "" +#line 16988 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],26)) { -#line 16929 "" +#line 16989 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16929 "" +#line 16989 "" L__1 = all_1.nodur[commvl_1.ivx + ip * 24 - 25] >= 64; -#line 16929 "" +#line 16989 "" dodyn_(&commvl_1.ivx, &ip, &all_1.nolev[commvl_1.ivx + ip * 24 - 25], &i__12, &all_1.ipl[ commvl_1.ivx + ip * 24 - 25], &all_1.islur[ @@ -40075,12 +40181,12 @@ L125: commvl_1.ivx - 1], ihornb, nornb, all_1.ulq, & all_1.ibmcnt[commvl_1.ivx - 1], &L__1, soutq, &lsout, (ftnlen)1, (ftnlen)80); -#line 16933 "" +#line 16993 "" } /* Check for chord notes. Moved up from below, 10/27/96 so chord orns done 1st. */ -#line 16937 "" +#line 16997 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10)) { /* Need a duration to set type of note head */ @@ -40089,30 +40195,30 @@ L125: /* Clumsy test, but vxtup is not set until main note is processed. */ -#line 16945 "" +#line 17005 "" if (! (comxtup_1.vxtup[commvl_1.ivx - 1] || bit_test( all_1.irest[commvl_1.ivx + ip * 24 - 25],28))) { -#line 16946 "" +#line 17006 "" nodu = all_1.nodur[commvl_1.ivx + ip * 24 - 25]; /* else if (mult(ivx,ip) .lt. 0) then */ -#line 16948 "" +#line 17008 "" } else if ((all_1.mult[commvl_1.ivx + ip * 24 - 25] & 15) - 8 < 0) { -#line 16949 "" +#line 17009 "" nodu = 32; -#line 16950 "" +#line 17010 "" } else { -#line 16951 "" +#line 17011 "" nodu = 16; -#line 16952 "" +#line 17012 "" } -#line 16953 "" +#line 17013 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 16953 "" +#line 17013 "" L__1 = bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],27); -#line 16953 "" +#line 17013 "" docrd_(&commvl_1.ivx, &ip, &nodu, &i__12, &all_1.iv, & tnow, soutq, &lsout, all_1.ulq, &all_1.ibmcnt[ commvl_1.ivx - 1], &all_1.islur[commvl_1.ivx @@ -40122,27 +40228,27 @@ L125: ihornb, nornb, &all_1.stemlen, &L__1, & all_1.nacc[commvl_1.ivx + ip * 24 - 25], ( ftnlen)80, (ftnlen)1); -#line 16957 "" +#line 17017 "" } /* Now that chords are done, add stuff to midi file */ -#line 16961 "" +#line 17021 "" if (commidi_1.ismidi) { -#line 16961 "" +#line 17021 "" i__12 = all_1.nolev[commvl_1.ivx + ip * 24 - 25] + commvel_1.miditran[cominsttrans_1.instno[ all_1.iv - 1] - 1]; -#line 16961 "" +#line 17021 "" i__13 = all_1.nacc[commvl_1.ivx + ip * 24 - 25] & 7; -#line 16961 "" +#line 17021 "" L__1 = bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0); -#line 16961 "" +#line 17021 "" addmidi_(&icm, &i__12, &i__13, &commidisig_1.midisig, &all_1.tnote[comipl2_1.ipl2[commvl_1.ivx + ip * 24 - 25] - 1], &L__1, &c_false); -#line 16961 "" +#line 17021 "" } /* 130316 */ /* * nolev(ivx,ip)-iTransAmt(instno(iv)), */ @@ -40150,16 +40256,16 @@ L125: /* Check for breath or caesura */ -#line 16972 "" +#line 17032 "" if (bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],28)) { -#line 16973 "" +#line 17033 "" putcb_(&commvl_1.ivx, &ip, notexq, &lnote, (ftnlen)79) ; -#line 16974 "" +#line 17034 "" addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, ( ftnlen)80); -#line 16975 "" +#line 17035 "" } /* Check for main-note ornaments. ')' on dotted notes go in with note, not here. */ @@ -40168,73 +40274,73 @@ L125: /* isacc = iand(iornq(ivx,ip),4194287) .gt. 0 */ /* isacc = iand(iornq(ivx,ip),541065199) .gt. 0 */ -#line 16983 "" +#line 17043 "" isacc = (all_1.iornq[commvl_1.ivx + ip * 24 - 1] & 1614807023) > 0; /* isacc=.true. if any ornament except segno */ -#line 16987 "" +#line 17047 "" if (bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],13) && all_1.nodur[commvl_1.ivx + ip * 24 - 25] > 0) { /* If ). is only ornament, bypass. If with others, temporarirly zero the bit. */ -#line 16991 "" +#line 17051 "" i__12 = log2_(&all_1.nodur[commvl_1.ivx + ip * 24 - 25]); -#line 16991 "" +#line 17051 "" if (pow_ii(&c__2, &i__12) != all_1.nodur[commvl_1.ivx + ip * 24 - 25]) { -#line 16992 "" +#line 17052 "" if ((all_1.iornq[commvl_1.ivx + ip * 24 - 1] & 516079) == 0) { /* ). is the only non-segno ornament */ -#line 16996 "" +#line 17056 "" isacc = FALSE_; -#line 16997 "" +#line 17057 "" } else { /* There are other ornaments in addition */ -#line 17001 "" +#line 17061 "" rpndot = TRUE_; -#line 17002 "" +#line 17062 "" all_1.iornq[commvl_1.ivx + ip * 24 - 1] = bit_clear(all_1.iornq[commvl_1.ivx + ip * 24 - 1],13); -#line 17003 "" +#line 17063 "" } -#line 17004 "" +#line 17064 "" } -#line 17005 "" +#line 17065 "" } -#line 17006 "" +#line 17066 "" if (isacc && ! comcwrf_1.cwrferm[commvl_1.ivx - 1]) { /* Check for centered whole-bar rest with fermata (bits 10 or 14). */ -#line 17010 "" +#line 17070 "" if ((all_1.iornq[commvl_1.ivx + ip * 24 - 1] & 17408) > 0 && bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0) && all_1.nodur[commvl_1.ivx + ip * 24 - 25] == all_1.lenbar && ! ( all_1.firstgulp && all_1.ibar == 1 && all_1.lenb0 > 0)) { -#line 17014 "" +#line 17074 "" comcwrf_1.cwrferm[commvl_1.ivx - 1] = TRUE_; -#line 17015 "" +#line 17075 "" goto L30; -#line 17016 "" +#line 17076 "" } -#line 17017 "" +#line 17077 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 17017 "" +#line 17077 "" L__1 = bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25] ,10); -#line 17017 "" +#line 17077 "" putorn_(&all_1.iornq[commvl_1.ivx + ip * 24 - 1], & all_1.nolev[commvl_1.ivx + ip * 24 - 25], & all_1.nolev[commvl_1.ivx + ip * 24 - 25], & @@ -40246,66 +40352,66 @@ L125: all_1.stemlen, notexq, &lnote, &ip, &islhgt, & all_1.beamon[commvl_1.ivx - 1], &L__1, ( ftnlen)1, (ftnlen)79); -#line 17022 "" +#line 17082 "" addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, ( ftnlen)80); -#line 17023 "" +#line 17083 "" } -#line 17024 "" +#line 17084 "" if (rpndot) { -#line 17025 "" +#line 17085 "" all_1.iornq[commvl_1.ivx + ip * 24 - 1] = bit_set( all_1.iornq[commvl_1.ivx + ip * 24 - 1],13); -#line 17026 "" +#line 17086 "" rpndot = FALSE_; -#line 17027 "" +#line 17087 "" } -#line 17028 "" +#line 17088 "" L30: /* Check for main note accidental */ -#line 17032 "" +#line 17092 "" if ((all_1.nacc[commvl_1.ivx + ip * 24 - 25] & 3) > 0 && ! bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25], 17)) { -#line 17034 "" +#line 17094 "" ihshft = igetbits_(&all_1.nacc[commvl_1.ivx + ip * 24 - 25], &c__7, &c__10); -#line 17035 "" +#line 17095 "" if (ihshft != 0) { -#line 17035 "" +#line 17095 "" ihshft += -107; -#line 17035 "" +#line 17095 "" } -#line 17036 "" +#line 17096 "" if (! bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25], 10) && bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],8)) { -#line 17036 "" +#line 17096 "" ihshft += -20; -#line 17036 "" +#line 17096 "" } /* Not a chord, and left-shifted main note, so left-shift accid */ -#line 17041 "" +#line 17101 "" i__12 = igetbits_(&all_1.nacc[commvl_1.ivx + ip * 24 - 25], &c__6, &c__4); -#line 17041 "" +#line 17101 "" i__13 = ncmid_(&all_1.iv, &ip); -#line 17041 "" +#line 17101 "" L__1 = bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],31); -#line 17041 "" +#line 17101 "" doacc_(&ihshft, &i__12, notexq, &lnote, &all_1.nacc[ commvl_1.ivx + ip * 24 - 25], &all_1.nolev[ commvl_1.ivx + ip * 24 - 25], &i__13, &L__1, ( ftnlen)79); -#line 17044 "" +#line 17104 "" addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, ( ftnlen)80); -#line 17045 "" +#line 17105 "" } /* Lower dot for lower-voice notes. Conditions are: */ @@ -40316,155 +40422,156 @@ L30: /* . 5. Flag (lowdot) is set to true */ /* 6. Not in an xtuplet */ -#line 17055 "" +#line 17115 "" if (comarp_1.lowdot && commvl_1.nvmx[all_1.iv - 1] == 2 && commvl_1.ivx <= all_1.nv && all_1.nodur[ commvl_1.ivx + ip * 24 - 25] != 0) { -#line 17057 "" +#line 17117 "" i__12 = log2_(&all_1.nodur[commvl_1.ivx + ip * 24 - 25]); -#line 17057 "" +#line 17117 "" if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0) && pow_ii(&c__2, &i__12) != all_1.nodur[commvl_1.ivx + ip * 24 - 25] && ( all_1.nolev[commvl_1.ivx + ip * 24 - 25] - ncmid_(&commvl_1.ivx, &ip)) % 2 == 0) { -#line 17060 "" +#line 17120 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],19)) { /* Note already in movdot list. Drop by 2. */ -#line 17064 "" +#line 17124 "" comcc_1.updot[commvl_1.ivx + (comcc_1.ndotmv[ commvl_1.ivx - 1] + 1) * 24 - 25] += -2.f; -#line 17066 "" +#line 17126 "" } else { /* Not in list so just move it right now */ -#line 17070 "" +#line 17130 "" i__12 = igetbits_(&all_1.islur[commvl_1.ivx + ip * 24 - 25], &c__1, &c__3); -#line 17070 "" - dotmov_(&c_b761, &c_b762, soutq, &lsout, & +#line 17130 "" + dotmov_(&c_b767, &c_b768, soutq, &lsout, & i__12, (ftnlen)80); -#line 17072 "" +#line 17132 "" } -#line 17073 "" +#line 17133 "" } -#line 17074 "" +#line 17134 "" } /* Check for dotted notes with moved dots */ -#line 17078 "" +#line 17138 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],19)) { -#line 17079 "" +#line 17139 "" ++comcc_1.ndotmv[commvl_1.ivx - 1]; -#line 17080 "" +#line 17140 "" i__12 = igetbits_(&all_1.islur[commvl_1.ivx + ip * 24 - 25], &c__1, &c__3); -#line 17080 "" +#line 17140 "" dotmov_(&comcc_1.updot[commvl_1.ivx + comcc_1.ndotmv[ commvl_1.ivx - 1] * 24 - 25], &comcc_1.rtdot[ commvl_1.ivx + comcc_1.ndotmv[commvl_1.ivx - 1] * 24 - 25], soutq, &lsout, &i__12, (ftnlen) 80); -#line 17082 "" +#line 17142 "" } -/* Stemlength shortening? */ +/* Stemlength changes */ -#line 17086 "" +#line 17146 "" if (bit_test(all_1.mult[commvl_1.ivx + ip * 24 - 25],27)) { -#line 17087 "" - stemshort = 4.66f - (igetbits_(&all_1.mult[ - commvl_1.ivx + ip * 24 - 25], &c__3, &c__28) - + 1) * .667f * .5f; +#line 17147 "" + dstemlen = igetbits_(&all_1.mult[commvl_1.ivx + ip * + 24 - 25], &c__6, &c__10) * .5f - 4.f; +#line 17148 "" + stemshort = dstemlen * .667f + 4.66f; /* Writing concatenation */ -#line 17088 "" +#line 17149 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17088 "" +#line 17149 "" i__4[1] = 11, a__2[1] = "stemlength{"; -#line 17088 "" +#line 17149 "" s_cat(ch__5, a__2, i__4, &c__2, (ftnlen)12); -#line 17088 "" +#line 17149 "" addstr_(ch__5, &c__12, soutq, &lsout, (ftnlen)12, ( ftnlen)80); -#line 17089 "" - s_wsfi(&io___1065); -#line 17089 "" +#line 17150 "" + s_wsfi(&io___1067); +#line 17150 "" do_fio(&c__1, (char *)&stemshort, (ftnlen)sizeof(real) ); -#line 17089 "" +#line 17150 "" e_wsfi(); /* Writing concatenation */ -#line 17090 "" +#line 17151 "" i__4[0] = 4, a__2[0] = notexq; -#line 17090 "" +#line 17151 "" i__4[1] = 1, a__2[1] = "}"; -#line 17090 "" +#line 17151 "" s_cat(ch__18, a__2, i__4, &c__2, (ftnlen)5); -#line 17090 "" +#line 17151 "" addstr_(ch__18, &c__5, soutq, &lsout, (ftnlen)5, ( ftnlen)80); -#line 17091 "" +#line 17152 "" } else if (ip > 1) { -#line 17092 "" +#line 17153 "" if (bit_test(all_1.mult[commvl_1.ivx + (ip - 1) * 24 - 25],27)) { /* Writing concatenation */ -#line 17092 "" +#line 17153 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17092 "" +#line 17153 "" i__4[1] = 16, a__2[1] = "stemlength{4.66}"; -#line 17092 "" +#line 17153 "" s_cat(ch__7, a__2, i__4, &c__2, (ftnlen)17); -#line 17092 "" +#line 17153 "" addstr_(ch__7, &c__17, soutq, &lsout, (ftnlen)17, (ftnlen)80); -#line 17092 "" +#line 17153 "" } /* Cancel shortening. Looks like it gets automatically restored if new inst. or */ /* new line, so no need to worry about affecting other lines */ -#line 17098 "" +#line 17159 "" } /* Zero out slur-height marker for raising ornaments */ -#line 17102 "" +#line 17163 "" islhgt = 0; /* Now start with spacing notes. Is a beam start pending? */ -#line 17106 "" +#line 17167 "" if (bspend && all_1.ibm2[commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25] > all_1.ibm1[ commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25]) { -#line 17108 "" +#line 17169 "" if (strtmid_1.ixrest[commvl_1.ivx - 1] == 4) { /* Special path for single note at end of otherwise beamed xtup */ -#line 17112 "" +#line 17173 "" strtmid_1.ixrest[commvl_1.ivx - 1] = 0; -#line 17113 "" +#line 17174 "" } else { -#line 17114 "" +#line 17175 "" if (comkbdrests_1.kbdrests && bit_test( all_1.irest[commvl_1.ivx + ip * 24 - 25], 0) && ! bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],29) && commvl_1.nvmx[ all_1.iv - 1] == 2 && all_1.nolev[ commvl_1.ivx + ip * 24 - 25] <= 50) { -#line 17114 "" +#line 17175 "" chkkbdrests_(&ip, &all_1.iv, &commvl_1.ivx, all_1.nn, all_1.islur, all_1.irest, all_1.nolev, commvl_1.ivmx, all_1.nib, @@ -40473,66 +40580,84 @@ L30: comkbdrests_1.levtopr, comkbdrests_1.levbotr, all_1.mult, all_1.ipl); -#line 17114 "" +#line 17175 "" } -/* * mult) */ -#line 17121 "" - beamn1_(notexq, &lnote, (ftnlen)79); -#line 17122 "" +#line 17181 "" + if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - + 25],29) && bit_test(all_1.irest[ + commvl_1.ivx + ip * 24 - 25],24)) { +/* Writing concatenation */ +#line 17183 "" + chax_(ch__6, (ftnlen)1, &c__92); +#line 17183 "" + i__4[0] = 1, a__2[0] = ch__6; +#line 17183 "" + i__4[1] = 2, a__2[1] = "sk"; +#line 17183 "" + s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); +#line 17184 "" + lnote = 3; +#line 17185 "" + } else { +#line 17186 "" + beamn1_(notexq, &lnote, (ftnlen)79); +#line 17187 "" + } +#line 17188 "" } -#line 17123 "" +#line 17189 "" bspend = FALSE_; /* Is a beam ending? */ -#line 17127 "" +#line 17193 "" } else if (numbms[commvl_1.ivx] > 0 && all_1.ibmcnt[ commvl_1.ivx - 1] <= numbms[commvl_1.ivx] && ( all_1.ibm2[commvl_1.ivx + all_1.ibmcnt[ commvl_1.ivx - 1] * 24 - 25] == ip || bit_test( all_1.nacc[commvl_1.ivx + ip * 24 - 25],20))) { /* * .and. ibm2(ivx,ibmcnt(ivx)) .eq. ip) then */ -#line 17131 "" +#line 17197 "" if (bspend) { /* Must be a single-note ending of a jump-beam */ -#line 17135 "" +#line 17201 "" bspend = FALSE_; -#line 17136 "" +#line 17202 "" } -#line 17137 "" +#line 17203 "" beamend_(notexq, &lnote, (ftnlen)79); -#line 17138 "" +#line 17204 "" if (! bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25] ,20)) { -#line 17139 "" +#line 17205 "" comxtup_1.vxtup[commvl_1.ivx - 1] = FALSE_; -#line 17140 "" +#line 17206 "" nornb[commvl_1.ivx - 1] = 0; -#line 17141 "" +#line 17207 "" ++all_1.ibmcnt[commvl_1.ivx - 1]; -#line 17142 "" +#line 17208 "" all_1.beamon[commvl_1.ivx - 1] = FALSE_; -#line 17143 "" +#line 17209 "" } /* Or if we're in the middle of a beam */ -#line 17147 "" +#line 17213 "" } else if (numbms[commvl_1.ivx] > 0 && all_1.beamon[ commvl_1.ivx - 1]) { /* Added 130127 */ -#line 17151 "" +#line 17217 "" if (comkbdrests_1.kbdrests && bit_test(all_1.irest[ commvl_1.ivx + ip * 24 - 25],0) && ! bit_test( all_1.islur[commvl_1.ivx + ip * 24 - 25],29) && commvl_1.nvmx[all_1.iv - 1] == 2 && all_1.nolev[commvl_1.ivx + ip * 24 - 25] <= 50) { -#line 17151 "" +#line 17217 "" chkkbdrests_(&ip, &all_1.iv, &commvl_1.ivx, all_1.nn, all_1.islur, all_1.irest, all_1.nolev, commvl_1.ivmx, all_1.nib, & @@ -40541,15 +40666,14 @@ L30: comkbdrests_1.levtopr, comkbdrests_1.levbotr, all_1.mult, all_1.ipl); -#line 17151 "" +#line 17217 "" } -/* * mult) */ -#line 17158 "" +#line 17223 "" beamid_(notexq, &lnote, (ftnlen)79); /* Or whole-bar rest */ -#line 17162 "" +#line 17227 "" } else if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0) && all_1.nodur[commvl_1.ivx + ip * 24 - 25] == all_1.lenbar && ! (all_1.firstgulp && @@ -40560,18 +40684,18 @@ L30: /* Rule out pickup bar, blank rests, non-centered. Remember islur b19=> rp */ -#line 17170 "" +#line 17235 "" cwrest[commvl_1.ivx] = TRUE_; -#line 17171 "" +#line 17236 "" iscwr = TRUE_; -#line 17172 "" +#line 17237 "" notex_(cwrq + (commvl_1.ivx - 1) * 79, &lcwr[ commvl_1.ivx - 1], (ftnlen)79); -#line 17173 "" +#line 17238 "" tnow += all_1.lenbar; -#line 17174 "" +#line 17239 "" goto L10; -#line 17175 "" +#line 17240 "" } else if (strtmid_1.ixrest[commvl_1.ivx - 1] == 0) { /* Before writing note or rest, check for keyboard rest height adjustment. */ @@ -40582,7 +40706,7 @@ L30: /* c 4. Not last note in bar */ /* c 5. Followed by note (add better test later) */ -#line 17185 "" +#line 17250 "" if (comkbdrests_1.kbdrests && bit_test(all_1.irest[ commvl_1.ivx + ip * 24 - 25],0) && ! bit_test( all_1.islur[commvl_1.ivx + ip * 24 - 25],29) @@ -40677,7 +40801,7 @@ L30: /* The new subroutine call, to replace above code */ -#line 17276 "" +#line 17341 "" chkkbdrests_(&ip, &all_1.iv, &commvl_1.ivx, all_1.nn, all_1.islur, all_1.irest, all_1.nolev, commvl_1.ivmx, all_1.nib, & @@ -40687,74 +40811,74 @@ L30: comkbdrests_1.levbotr, all_1.mult, all_1.ipl); /* * mult) */ -#line 17280 "" +#line 17345 "" } /* 2 continue */ /* Write a separate note or rest */ -#line 17285 "" +#line 17350 "" notex_(notexq, &lnote, (ftnlen)79); -#line 17286 "" +#line 17351 "" } /* Right offset? This may cause trouble */ -#line 17290 "" +#line 17355 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],8)) { /* Writing concatenation */ -#line 17291 "" +#line 17356 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17291 "" +#line 17356 "" i__4[1] = 5, a__2[1] = "loff{"; -#line 17291 "" +#line 17356 "" s_cat(ch__17, a__2, i__4, &c__2, (ftnlen)6); -#line 17291 "" +#line 17356 "" addstr_(ch__17, &c__6, soutq, &lsout, (ftnlen)6, ( ftnlen)80); -#line 17292 "" +#line 17357 "" } else if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25] ,9)) { /* Writing concatenation */ -#line 17293 "" +#line 17358 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17293 "" +#line 17358 "" i__4[1] = 5, a__2[1] = "roff{"; -#line 17293 "" +#line 17358 "" s_cat(ch__17, a__2, i__4, &c__2, (ftnlen)6); -#line 17293 "" +#line 17358 "" addstr_(ch__17, &c__6, soutq, &lsout, (ftnlen)6, ( ftnlen)80); -#line 17294 "" +#line 17359 "" } -#line 17295 "" +#line 17360 "" if (strtmid_1.ixrest[commvl_1.ivx - 1] == 0 && lnote > 0) { -#line 17295 "" +#line 17360 "" addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, ( ftnlen)80); -#line 17295 "" +#line 17360 "" } -#line 17297 "" +#line 17362 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],8) || bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],9) ) { -#line 17297 "" +#line 17362 "" addstr_("}", &c__1, soutq, &lsout, (ftnlen)1, (ftnlen) 80); -#line 17297 "" +#line 17362 "" } /* Terminate user-defined offsets. Fix format */ -#line 17302 "" +#line 17367 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],15) || bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],17)) { -#line 17302 "" +#line 17367 "" putshft_(&commvl_1.ivx, &c_false, soutq, &lsout, ( ftnlen)80); -#line 17302 "" +#line 17367 "" } /* Deal with After- and Way-after-graces. First, if end of bar, compute space */ @@ -40762,225 +40886,225 @@ L30: /* rq'd, convert GW to GA. Therefore GW at end of bar never needs extra sp. */ /* But will still need to add extra space as hardspace. */ -#line 17310 "" +#line 17375 "" if (ip == all_1.nn[commvl_1.ivx - 1] && (bit_test( all_1.ipl[commvl_1.ivx + ip * 24 - 25],31) || bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25], 29))) { -#line 17312 "" +#line 17377 "" i__12 = comgrace_1.ngrace; -#line 17312 "" +#line 17377 "" for (ig = 1; ig <= i__12; ++ig) { -#line 17313 "" +#line 17378 "" if (comgrace_1.ipg[ig - 1] == ip && comgrace_1.ivg[ig - 1] == commvl_1.ivx) { -#line 17313 "" +#line 17378 "" goto L78; -#line 17313 "" +#line 17378 "" } -#line 17314 "" +#line 17379 "" /* L77: */ -#line 17314 "" +#line 17379 "" } -#line 17315 "" - s_wsle(&io___1068); -#line 17315 "" +#line 17380 "" + s_wsle(&io___1070); +#line 17380 "" do_lio(&c__9, &c__1, "Problem finding grace index "\ "at \"do 77\"", (ftnlen)38); -#line 17315 "" +#line 17380 "" e_wsle(); -#line 17316 "" +#line 17381 "" stop1_(); -#line 17317 "" +#line 17382 "" L78: /* Get elemskip to end of bar. WON'T WORK IF XTUPS !! */ -#line 17321 "" +#line 17386 "" esk = 0.f; -#line 17322 "" +#line 17387 "" i__12 = comnsp_2.nb; -#line 17322 "" +#line 17387 "" for (iib = ib; iib <= i__12; ++iib) { -#line 17323 "" +#line 17388 "" if (iib == ib) { -#line 17324 "" +#line 17389 "" itleft = i_nint(&all_1.to[comipl2_1.ipl2[ commvl_1.ivx + ip * 24 - 25] - 1]); -#line 17325 "" +#line 17390 "" } else { -#line 17326 "" +#line 17391 "" itleft = i_nint(&tstart[ib]); -#line 17327 "" +#line 17392 "" } -#line 17328 "" +#line 17393 "" if (iib < comnsp_2.nb) { -#line 17329 "" +#line 17394 "" itright = i_nint(&tstart[iib + 1]); -#line 17330 "" +#line 17395 "" } else { -#line 17331 "" +#line 17396 "" itright = all_1.lenbar; -#line 17332 "" +#line 17397 "" } -#line 17333 "" +#line 17398 "" esk += feon_(&comnsp_2.space[ib - 1]) * (itright - itleft) / comnsp_2.space[ib - 1]; -#line 17335 "" +#line 17400 "" /* L40: */ -#line 17335 "" +#line 17400 "" } -#line 17336 "" +#line 17401 "" ptsavail = comask_1.poenom * esk - comask_1.wheadpt; -#line 17337 "" +#line 17402 "" if (comgrace_1.nng[ig - 1] == 1) { -#line 17338 "" +#line 17403 "" wgr = spfacs_1.grafac; -#line 17339 "" +#line 17404 "" } else { -#line 17340 "" +#line 17405 "" wgr = comgrace_1.nng[ig - 1] * spfacs_1.emgfac; -#line 17341 "" +#line 17406 "" i__12 = comgrace_1.nng[ig - 1]; -#line 17341 "" +#line 17406 "" for (ing = 1; ing <= i__12; ++ing) { -#line 17342 "" +#line 17407 "" if (comgrace_1.naccg[comgrace_1.ngstrt[ig - 1] - 1 + ing - 1] > 0) { -#line 17342 "" +#line 17407 "" wgr += spfacs_1.acgfac; -#line 17342 "" +#line 17407 "" } -#line 17343 "" +#line 17408 "" /* L41: */ -#line 17343 "" +#line 17408 "" } -#line 17344 "" +#line 17409 "" } -#line 17345 "" +#line 17410 "" ptgr[ig - 1] = wgr * comask_1.wheadpt; -#line 17346 "" +#line 17411 "" ptsneed = (wgr + .5f) * comask_1.wheadpt; -#line 17347 "" +#line 17412 "" ptsndg[commvl_1.ivx - 1] = 0.f; -#line 17348 "" +#line 17413 "" if (ptsavail < ptsneed) { -#line 17349 "" +#line 17414 "" ptsndg[commvl_1.ivx - 1] = ptsneed; -#line 17350 "" +#line 17415 "" eskndg[commvl_1.ivx - 1] = esk; -#line 17351 "" +#line 17416 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],31)) { /* Convert GW to GA */ -#line 17355 "" +#line 17420 "" all_1.ipl[commvl_1.ivx + ip * 24 - 25] = bit_set(bit_clear(all_1.ipl[ commvl_1.ivx + ip * 24 - 25],31),29); -#line 17356 "" +#line 17421 "" } -#line 17357 "" +#line 17422 "" } -#line 17358 "" +#line 17423 "" } /* Check for GA */ -#line 17362 "" +#line 17427 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],29)) { -#line 17362 "" +#line 17427 "" i__12 = ncmid_(&all_1.iv, &ip); -#line 17362 "" +#line 17427 "" dograce_(&commvl_1.ivx, &ip, ptgr, soutq, &lsout, & i__12, &all_1.nacc[commvl_1.ivx + ip * 24 - 25], &ig, &all_1.ipl[commvl_1.ivx + ip * 24 - 25], &c_false, &c_false, &c__0, &c__0, &c__0, - &c__0, &c__0, &c__0, &c_b762, all_1.ulq, & + &c__0, &c__0, &c__0, &c_b768, all_1.ulq, & cominsttrans_1.instno[all_1.iv - 1], (ftnlen) 80, (ftnlen)1); -#line 17362 "" +#line 17427 "" } /* 130324 */ /* * .false.,0,0,0,0,0,0,0.,ulq) */ /* Update running time */ -#line 17371 "" +#line 17436 "" tnow += comnsp_2.space[ib - 1]; -#line 17372 "" +#line 17437 "" L10: -#line 17372 "" +#line 17437 "" ; -#line 17372 "" +#line 17437 "" } /* Have finished last note in this voice and block */ -#line 17376 "" +#line 17441 "" r__1 = all_1.to[istop[ib] - 1] + comnsp_2.space[ib - 1]; -#line 17376 "" +#line 17441 "" itendb = i_nint(&r__1); -#line 17377 "" +#line 17442 "" if (all_1.figbass && commvl_1.ivx == 1 || commvl_1.ivx == comfig_1.ivxfig2) { -#line 17378 "" +#line 17443 "" ivf = 1; -#line 17379 "" +#line 17444 "" if (commvl_1.ivx > 1) { -#line 17379 "" +#line 17444 "" ivf = 2; -#line 17379 "" +#line 17444 "" } -#line 17380 "" +#line 17445 "" L17: -#line 17380 "" +#line 17445 "" if (all_1.figchk[ivf - 1] && comfig_1.itfig[ivf + (ifig[ ivf - 1] << 1) - 3] < itendb) { /* There's at least one figure left. offnsk could be <0 */ -#line 17384 "" +#line 17449 "" offnsk = (tnow - comfig_1.itfig[ivf + (ifig[ivf - 1] << 1) - 3]) / comnsp_2.space[ib - 1]; -#line 17385 "" +#line 17450 "" putfig_(&ivf, &ifig[ivf - 1], &offnsk, &all_1.figchk[ ivf - 1], soutq, &lsout, (ftnlen)80); -#line 17386 "" +#line 17451 "" goto L17; -#line 17387 "" +#line 17452 "" } -#line 17388 "" +#line 17453 "" } /* Check for flag, dot, or upstem on last note of bar. */ -#line 17392 "" +#line 17457 "" if (ib == comnsp_2.nb) { -#line 17393 "" +#line 17458 "" ip = all_1.ipo[comipl2_1.ipl2[commvl_1.ivx + all_1.nn[ commvl_1.ivx - 1] * 24 - 25] - 1]; -#line 17394 "" +#line 17459 "" comnsp_2.flgndv[commvl_1.ivx - 1] = 0.f; -#line 17395 "" +#line 17460 "" if ((r__1 = all_1.tnote[comipl2_1.ipl2[commvl_1.ivx + ip * 24 - 25] - 1] - comnsp_2.space[ib - 1], dabs( r__1)) < comtol_1.tol) { -#line 17396 "" +#line 17461 "" if (comnsp_2.space[ib - 1] < 16.f - comtol_1.tol) { /* Note in last space, smaller than a quarter note. */ -#line 17400 "" +#line 17465 "" i__10 = ncmid_(&all_1.iv, &ip); -#line 17400 "" +#line 17465 "" udqq_(ch__6, (ftnlen)1, &all_1.nolev[commvl_1.ivx + ip * 24 - 25], &i__10, &all_1.islur[ commvl_1.ivx + ip * 24 - 25], & commvl_1.nvmx[all_1.iv - 1], & commvl_1.ivx, &all_1.nv); -#line 17400 "" +#line 17465 "" if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0) && *(unsigned char *)&ch__6[0] == 'u' || isdotted_(all_1.nodur, & @@ -40989,9 +41113,9 @@ L17: /* Upstem non-rest, or dotted */ /* Computing MAX */ -#line 17407 "" +#line 17472 "" i__10 = 1, i__12 = numbms[commvl_1.ivx]; -#line 17407 "" +#line 17472 "" if (numbms[commvl_1.ivx] > 0 && ip == all_1.ibm2[commvl_1.ivx + max(i__10, i__12) * 24 - 25] && ! isdotted_( @@ -40999,70 +41123,70 @@ L17: /* In beam and not dotted, so use smaller space */ -#line 17414 "" +#line 17479 "" comnsp_2.flgndv[commvl_1.ivx - 1] = spfacs_1.upstmfac; -#line 17415 "" +#line 17480 "" } else { -#line 17416 "" +#line 17481 "" comnsp_2.flgndv[commvl_1.ivx - 1] = spfacs_1.flagfac; -#line 17417 "" +#line 17482 "" } -#line 17418 "" +#line 17483 "" } -#line 17419 "" +#line 17484 "" } else { /* Last space, nonflagged (no beam) only worry dot or up */ -#line 17423 "" +#line 17488 "" if (isdotted_(all_1.nodur, &commvl_1.ivx, &ip)) { -#line 17424 "" +#line 17489 "" comnsp_2.flgndv[commvl_1.ivx - 1] = spfacs_1.flagfac; -#line 17425 "" +#line 17490 "" } else /* if(complicated condition) */ { -#line 17425 "" +#line 17490 "" i__10 = ncmid_(&all_1.iv, &ip); -#line 17425 "" +#line 17490 "" udqq_(ch__6, (ftnlen)1, &all_1.nolev[ commvl_1.ivx + ip * 24 - 25], &i__10, &all_1.islur[commvl_1.ivx + ip * 24 - 25], &commvl_1.nvmx[all_1.iv - 1], & commvl_1.ivx, &all_1.nv); -#line 17425 "" +#line 17490 "" if (all_1.tnote[comipl2_1.ipl2[commvl_1.ivx + ip * 24 - 25] - 1] < 64.f && *( unsigned char *)&ch__6[0] == 'u') { /* Upstem on last note , non-flagged */ -#line 17431 "" +#line 17496 "" comnsp_2.flgndv[commvl_1.ivx - 1] = spfacs_1.upstmfac; -#line 17432 "" +#line 17497 "" } -#line 17432 "" +#line 17497 "" } -#line 17433 "" +#line 17498 "" } -#line 17434 "" +#line 17499 "" } /* Check for right-shifted chordal note */ -#line 17438 "" +#line 17503 "" if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],20)) { -#line 17438 "" +#line 17503 "" comnsp_2.flgndv[commvl_1.ivx - 1] = spfacs_1.rtshfac; -#line 17438 "" +#line 17503 "" } -#line 17439 "" +#line 17504 "" comnsp_2.flgndb = comnsp_2.flgndb || comnsp_2.flgndv[ commvl_1.ivx - 1] > 0.f; -#line 17440 "" +#line 17505 "" if (commidi_1.ismidi) { /* For midi, set flags for accidentals on last note of bar. Assume they affect */ @@ -41074,102 +41198,102 @@ L17: /* c Old old lbacc(icm) = iand(nacc(ivx,ip),7) */ /* New old if (lbacc(icm).eq.0) lbacc(icm) = iand(nacc(ivx,ip),7) */ -#line 17451 "" +#line 17516 "" if ((all_1.nacc[commvl_1.ivx + ip * 24 - 25] & 7) > 0) { /* Explicit accidental on last main note in bar */ -#line 17455 "" +#line 17520 "" i__10 = comslm_1.naccbl[icm]; -#line 17455 "" +#line 17520 "" for (kacc = 1; kacc <= i__10; ++kacc) { -#line 17456 "" +#line 17521 "" if (comslm_1.laccbl[icm + kacc * 25 - 25] == all_1.nolev[commvl_1.ivx + ip * 24 - 25]) { -#line 17456 "" +#line 17521 "" goto L56; -#line 17456 "" +#line 17521 "" } -#line 17457 "" +#line 17522 "" /* L55: */ -#line 17457 "" +#line 17522 "" } -#line 17458 "" +#line 17523 "" ++comslm_1.naccbl[icm]; -#line 17459 "" +#line 17524 "" comslm_1.laccbl[icm + comslm_1.naccbl[icm] * 25 - 25] = all_1.nolev[commvl_1.ivx + ip * 24 - 25]; -#line 17460 "" +#line 17525 "" i__10 = all_1.nacc[commvl_1.ivx + ip * 24 - 25] & 7; -#line 17460 "" +#line 17525 "" comslm_1.jaccbl[icm + comslm_1.naccbl[icm] * 25 - 25] = iashft_(&i__10); -#line 17461 "" +#line 17526 "" } -#line 17462 "" +#line 17527 "" L56: -#line 17463 "" +#line 17528 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25], 10) && commidi_1.crdacc) { -#line 17464 "" +#line 17529 "" i__10 = comtrill_1.icrd2; -#line 17464 "" +#line 17529 "" for (icrd = comtrill_1.icrd1; icrd <= i__10; ++icrd) { -#line 17465 "" +#line 17530 "" iacc = igetbits_(&comtrill_1.icrdat[icrd - 1], &c__3, &c__20); -#line 17466 "" +#line 17531 "" if (iacc > 0) { /* Explicit accidental on chord note at end of bar */ -#line 17470 "" +#line 17535 "" nolevc = igetbits_(&comtrill_1.icrdat[ icrd - 1], &c__7, &c__12); -#line 17471 "" +#line 17536 "" i__12 = comslm_1.naccbl[icm]; -#line 17471 "" +#line 17536 "" for (kacc = 1; kacc <= i__12; ++kacc) { -#line 17472 "" +#line 17537 "" if (comslm_1.laccbl[icm + kacc * 25 - 25] == nolevc) { -#line 17472 "" +#line 17537 "" goto L59; -#line 17472 "" +#line 17537 "" } -#line 17473 "" +#line 17538 "" /* L58: */ -#line 17473 "" +#line 17538 "" } -#line 17474 "" +#line 17539 "" ++comslm_1.naccbl[icm]; -#line 17475 "" +#line 17540 "" comslm_1.laccbl[icm + comslm_1.naccbl[icm] * 25 - 25] = nolevc; -#line 17476 "" +#line 17541 "" comslm_1.jaccbl[icm + comslm_1.naccbl[icm] * 25 - 25] = iashft_(&iacc); -#line 17477 "" +#line 17542 "" } -#line 17478 "" +#line 17543 "" L59: -#line 17479 "" +#line 17544 "" /* L57: */ -#line 17479 "" +#line 17544 "" ; -#line 17479 "" +#line 17544 "" } -#line 17480 "" +#line 17545 "" } /* if (lbacc(icm).eq.0 .and. accb4(icm)) then */ -#line 17482 "" +#line 17547 "" i__10 = commidi_1.naccim[icm]; -#line 17482 "" +#line 17547 "" for (kacc = 1; kacc <= i__10; ++kacc) { /* If naccim(icm)>0, */ @@ -41178,570 +41302,570 @@ L59: /* explicit action from just above. Assuming any accid on last note in bar, */ /* either explicit or implicit, has same effect on 1st note of next bar. */ -#line 17490 "" +#line 17555 "" if (all_1.nolev[commvl_1.ivx + ip * 24 - 25] == commidi_1.laccim[icm + kacc * 25 - 25]) { -#line 17490 "" +#line 17555 "" goto L66; -#line 17490 "" +#line 17555 "" } -#line 17491 "" +#line 17556 "" if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10)) { -#line 17492 "" +#line 17557 "" i__12 = comtrill_1.icrd2; -#line 17492 "" +#line 17557 "" for (icrd = comtrill_1.icrd1; icrd <= i__12; ++icrd) { -#line 17493 "" +#line 17558 "" if ((lbit_shift(comtrill_1.icrdat[icrd - 1], (ftnlen)-12) & 127) == commidi_1.laccim[icm + kacc * 25 - 25]) { -#line 17493 "" +#line 17558 "" goto L66; -#line 17493 "" +#line 17558 "" } -#line 17495 "" +#line 17560 "" /* L67: */ -#line 17495 "" +#line 17560 "" } -#line 17496 "" +#line 17561 "" } -#line 17497 "" +#line 17562 "" goto L65; -#line 17498 "" +#line 17563 "" L66: /* So far we know there is a main or chord note at level laccim(icm,kacc). So */ /* it will get a bl-accid if it didn't just already get one. */ -#line 17503 "" +#line 17568 "" i__12 = comslm_1.naccbl[icm]; -#line 17503 "" +#line 17568 "" for (macc = 1; macc <= i__12; ++macc) { -#line 17504 "" +#line 17569 "" if (comslm_1.laccbl[icm + macc * 25 - 25] == commidi_1.laccim[icm + kacc * 25 - 25] ) { -#line 17504 "" +#line 17569 "" goto L65; -#line 17504 "" +#line 17569 "" } -#line 17505 "" +#line 17570 "" /* L68: */ -#line 17505 "" +#line 17570 "" } -#line 17506 "" +#line 17571 "" ++comslm_1.naccbl[icm]; -#line 17507 "" +#line 17572 "" comslm_1.laccbl[icm + comslm_1.naccbl[icm] * 25 - 25] = commidi_1.laccim[icm + kacc * 25 - 25]; -#line 17508 "" +#line 17573 "" comslm_1.jaccbl[icm + comslm_1.naccbl[icm] * 25 - 25] = commidi_1.jaccim[icm + kacc * 25 - 25]; -#line 17509 "" +#line 17574 "" L65: -#line 17509 "" +#line 17574 "" ; -#line 17509 "" +#line 17574 "" } -#line 17510 "" +#line 17575 "" } -#line 17511 "" +#line 17576 "" } -#line 17512 "" +#line 17577 "" /* L11: */ -#line 17512 "" +#line 17577 "" } -#line 17512 "" +#line 17577 "" } /* Close out the notes group */ /* Writing concatenation */ -#line 17516 "" +#line 17581 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17516 "" +#line 17581 "" i__4[1] = 2, a__2[1] = "en"; -#line 17516 "" +#line 17581 "" s_cat(ch__14, a__2, i__4, &c__2, (ftnlen)3); -#line 17516 "" +#line 17581 "" addstr_(ch__14, &c__3, soutq, &lsout, (ftnlen)3, (ftnlen)80); -#line 17517 "" +#line 17582 "" if (comlast_1.islast && lsout > 0) { -#line 17517 "" - s_wsfe(&io___1081); +#line 17582 "" + s_wsfe(&io___1083); /* Writing concatenation */ -#line 17517 "" +#line 17582 "" i__4[0] = lsout, a__2[0] = soutq; -#line 17517 "" +#line 17582 "" i__4[1] = 1, a__2[1] = "%"; -#line 17517 "" +#line 17582 "" s_cat(ch__12, a__2, i__4, &c__2, (ftnlen)81); -#line 17517 "" +#line 17582 "" do_fio(&c__1, ch__12, lsout + 1); -#line 17517 "" +#line 17582 "" e_wsfe(); -#line 17517 "" +#line 17582 "" } -#line 17518 "" +#line 17583 "" /* L16: */ -#line 17518 "" +#line 17583 "" } /* Check for way-after graces at end of bar. We could not link these to notes */ /* as in midbar since there is no note following grace! Also, set flag if */ /* hardspace is needed. Also, save nvmx, ivmx for use in space checks on reloop. */ -#line 17524 "" +#line 17589 "" isgrace = FALSE_; -#line 17525 "" +#line 17590 "" i__2 = all_1.nv; -#line 17525 "" +#line 17590 "" for (all_1.iv = 1; all_1.iv <= i__2; ++all_1.iv) { -#line 17526 "" +#line 17591 "" comnsp_2.nvmxsav[all_1.iv - 1] = commvl_1.nvmx[all_1.iv - 1]; -#line 17527 "" +#line 17592 "" i__7 = commvl_1.nvmx[all_1.iv - 1]; -#line 17527 "" +#line 17592 "" for (kv = 1; kv <= i__7; ++kv) { -#line 17528 "" +#line 17593 "" comnsp_2.ivmxsav[all_1.iv + kv * 24 - 25] = commvl_1.ivmx[ all_1.iv + kv * 24 - 25]; -#line 17529 "" +#line 17594 "" commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25]; -#line 17530 "" +#line 17595 "" comnsp_2.ptsgnd = 0.f; -#line 17531 "" +#line 17596 "" if ((bit_test(all_1.ipl[commvl_1.ivx + all_1.nn[commvl_1.ivx - 1] * 24 - 25],29) || bit_test(all_1.ipl[commvl_1.ivx + all_1.nn[commvl_1.ivx - 1] * 24 - 25],31)) && ptsndg[ commvl_1.ivx - 1] > 0.f) { -#line 17533 "" +#line 17598 "" comnsp_2.flgndb = TRUE_; -#line 17534 "" +#line 17599 "" if (ptsndg[commvl_1.ivx - 1] > comnsp_2.ptsgnd) { -#line 17535 "" +#line 17600 "" comnsp_2.ptsgnd = ptsndg[commvl_1.ivx - 1]; -#line 17536 "" +#line 17601 "" comnsp_2.eskgnd = eskndg[commvl_1.ivx - 1]; -#line 17537 "" +#line 17602 "" } -#line 17538 "" +#line 17603 "" } -#line 17539 "" +#line 17604 "" if (bit_test(all_1.ipl[commvl_1.ivx + all_1.nn[commvl_1.ivx - 1] * 24 - 25],31)) { /* This voice has a way-after grace here at end of bar */ -#line 17543 "" +#line 17608 "" if (! isgrace) { /* This is the first one, so set up the string */ -#line 17547 "" +#line 17612 "" isgrace = TRUE_; -#line 17548 "" +#line 17613 "" ivlast = 1; /* Writing concatenation */ -#line 17549 "" +#line 17614 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17549 "" +#line 17614 "" i__4[1] = 6, a__2[1] = "znotes"; -#line 17549 "" +#line 17614 "" s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80); -#line 17550 "" +#line 17615 "" lsout = 7; -#line 17551 "" +#line 17616 "" } -#line 17552 "" +#line 17617 "" i__1 = all_1.iv - 1; -#line 17552 "" +#line 17617 "" for (iiv = ivlast; iiv <= i__1; ++iiv) { -#line 17553 "" +#line 17618 "" addstr_(all_1.sepsymq + (iiv - 1), &c__1, soutq, &lsout, ( ftnlen)1, (ftnlen)80); -#line 17554 "" +#line 17619 "" /* L76: */ -#line 17554 "" +#line 17619 "" } -#line 17555 "" +#line 17620 "" ivlast = all_1.iv; /* No need to put in 'nextvoice', even if 2 lines/staff */ -#line 17559 "" +#line 17624 "" i__1 = ncmid_(&all_1.iv, &all_1.nn[commvl_1.ivx - 1]); -#line 17559 "" +#line 17624 "" dograce_(&commvl_1.ivx, &all_1.nn[commvl_1.ivx - 1], ptgr, soutq, &lsout, &i__1, &all_1.nacc[commvl_1.ivx + all_1.nn[commvl_1.ivx - 1] * 24 - 25], &ig, & all_1.ipl[commvl_1.ivx + all_1.nn[commvl_1.ivx - 1] * 24 - 25], &c_true, &c_false, &c__0, &c__0, &c__0, & - c__0, &c__0, &c__0, &c_b762, all_1.ulq, & + c__0, &c__0, &c__0, &c_b768, all_1.ulq, & cominsttrans_1.instno[all_1.iv - 1], (ftnlen)80, ( ftnlen)1); /* 130324 */ /* * .false.,0,0,0,0,0,0,0.,ulq) */ -#line 17564 "" +#line 17629 "" } -#line 17565 "" +#line 17630 "" /* L75: */ -#line 17565 "" +#line 17630 "" } -#line 17565 "" +#line 17630 "" } -#line 17566 "" +#line 17631 "" if (isgrace) { /* Writing concatenation */ -#line 17567 "" +#line 17632 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17567 "" +#line 17632 "" i__4[1] = 3, a__2[1] = "en%"; -#line 17567 "" +#line 17632 "" s_cat(ch__19, a__2, i__4, &c__2, (ftnlen)4); -#line 17567 "" +#line 17632 "" addstr_(ch__19, &c__4, soutq, &lsout, (ftnlen)4, (ftnlen)80); -#line 17568 "" +#line 17633 "" if (comlast_1.islast && lsout > 0) { -#line 17568 "" - s_wsfe(&io___1084); -#line 17568 "" +#line 17633 "" + s_wsfe(&io___1086); +#line 17633 "" do_fio(&c__1, soutq, lsout); -#line 17568 "" +#line 17633 "" e_wsfe(); -#line 17568 "" +#line 17633 "" } -#line 17569 "" +#line 17634 "" } -#line 17570 "" +#line 17635 "" lsout = 0; /* Write multibar rest. Assuming nv = 1 and do not worry about cwbrest */ /* This has to be the only use of atnextbar */ -#line 17575 "" +#line 17640 "" if (all_1.ibar == comgrace_1.ibarmbr && comlast_1.islast) { /* Writing concatenation */ -#line 17576 "" +#line 17641 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 17576 "" +#line 17641 "" i__3[1] = 3, a__1[1] = "def"; -#line 17576 "" +#line 17641 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 17576 "" +#line 17641 "" i__3[3] = 10, a__1[3] = "atnextbar{"; -#line 17576 "" +#line 17641 "" i__3[4] = 1, a__1[4] = all_1.sq; -#line 17576 "" +#line 17641 "" i__3[5] = 6, a__1[5] = "znotes"; -#line 17576 "" +#line 17641 "" s_cat(soutq, a__1, i__3, &c__6, (ftnlen)80); -#line 17577 "" +#line 17642 "" lsout = 22; /* Writing concatenation */ -#line 17578 "" +#line 17643 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17578 "" +#line 17643 "" i__4[1] = 6, a__2[1] = "mbrest"; -#line 17578 "" +#line 17643 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 17579 "" +#line 17644 "" lnote = 7; -#line 17580 "" +#line 17645 "" istring_(&comgrace_1.mbrest, noteq, &len, (ftnlen)8); /* Writing concatenation */ -#line 17581 "" +#line 17646 "" i__4[0] = lnote, a__2[0] = notexq; -#line 17581 "" +#line 17646 "" i__4[1] = len, a__2[1] = noteq; -#line 17581 "" +#line 17646 "" s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79); -#line 17582 "" +#line 17647 "" lnote += len; -#line 17583 "" +#line 17648 "" mtrspc = i_nint(&comgrace_1.xb4mbr); -#line 17584 "" +#line 17649 "" comgrace_1.xb4mbr = 0.f; -#line 17585 "" +#line 17650 "" istring_(&mtrspc, noteq, &len, (ftnlen)8); /* Writing concatenation */ -#line 17586 "" +#line 17651 "" i__6[0] = lnote, a__4[0] = notexq; -#line 17586 "" +#line 17651 "" i__6[1] = len, a__4[1] = noteq; -#line 17586 "" +#line 17651 "" i__6[2] = 1, a__4[2] = "0"; -#line 17586 "" +#line 17651 "" s_cat(notexq, a__4, i__6, &c__3, (ftnlen)79); -#line 17587 "" +#line 17652 "" lnote = lnote + len + 1; -#line 17588 "" +#line 17653 "" i__7 = all_1.nv; -#line 17588 "" +#line 17653 "" for (all_1.iv = 1; all_1.iv <= i__7; ++all_1.iv) { -#line 17589 "" +#line 17654 "" addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, (ftnlen)80); -#line 17590 "" +#line 17655 "" if (all_1.iv < all_1.nv) { -#line 17590 "" +#line 17655 "" addstr_(all_1.sepsymq + (all_1.iv - 1), &c__1, soutq, &lsout, (ftnlen)1, (ftnlen)80); -#line 17590 "" +#line 17655 "" } -#line 17591 "" +#line 17656 "" /* L62: */ -#line 17591 "" +#line 17656 "" } /* Writing concatenation */ -#line 17592 "" +#line 17657 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17592 "" +#line 17657 "" i__4[1] = 4, a__2[1] = "en}%"; -#line 17592 "" +#line 17657 "" s_cat(ch__18, a__2, i__4, &c__2, (ftnlen)5); -#line 17592 "" +#line 17657 "" addstr_(ch__18, &c__5, soutq, &lsout, (ftnlen)5, (ftnlen)80); -#line 17593 "" - s_wsfe(&io___1087); -#line 17593 "" +#line 17658 "" + s_wsfe(&io___1089); +#line 17658 "" do_fio(&c__1, soutq, lsout); -#line 17593 "" +#line 17658 "" e_wsfe(); -#line 17594 "" +#line 17659 "" lsout = 0; -#line 17595 "" +#line 17660 "" if (comgrace_1.mbrest > 1) { -#line 17596 "" +#line 17661 "" r__1 = comgrace_1.mbrest - 1 + .01f; -#line 17596 "" +#line 17661 "" ndig = (integer) r_lg10(&r__1) + 1; -#line 17597 "" +#line 17662 "" ci__1.cierr = 0; -#line 17597 "" +#line 17662 "" ci__1.ciunit = 11; /* Writing concatenation */ -#line 17597 "" +#line 17662 "" i__6[0] = 6, a__4[0] = "(a14,i"; -#line 17597 "" +#line 17662 "" i__7 = ndig + 48; -#line 17597 "" +#line 17662 "" chax_(ch__6, (ftnlen)1, &i__7); -#line 17597 "" +#line 17662 "" i__6[1] = 1, a__4[1] = ch__6; -#line 17597 "" +#line 17662 "" i__6[2] = 4, a__4[2] = ",a1)"; -#line 17597 "" +#line 17662 "" ci__1.cifmt = (s_cat(ch__9, a__4, i__6, &c__3, (ftnlen)11), ch__9) ; -#line 17597 "" +#line 17662 "" s_wsfe(&ci__1); /* Writing concatenation */ -#line 17597 "" +#line 17662 "" i__9[0] = 1, a__6[0] = all_1.sq; -#line 17597 "" +#line 17662 "" i__9[1] = 7, a__6[1] = "advance"; -#line 17597 "" +#line 17662 "" i__9[2] = 1, a__6[2] = all_1.sq; -#line 17597 "" +#line 17662 "" i__9[3] = 5, a__6[3] = "barno"; -#line 17597 "" +#line 17662 "" s_cat(ch__4, a__6, i__9, &c__4, (ftnlen)14); -#line 17597 "" +#line 17662 "" do_fio(&c__1, ch__4, (ftnlen)14); -#line 17597 "" +#line 17662 "" i__2 = comgrace_1.mbrest - 1; -#line 17597 "" +#line 17662 "" do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer)); -#line 17597 "" +#line 17662 "" do_fio(&c__1, "%", (ftnlen)1); -#line 17597 "" +#line 17662 "" e_wsfe(); -#line 17599 "" +#line 17664 "" } -#line 17600 "" +#line 17665 "" } else if (iscwr) { /* Centered whole-bar rests. Set flag to pass to pmxb at start of NEXT bar */ /* to check for new clef and add space by redefining \CenterBar */ -#line 17605 "" +#line 17670 "" comclefrests_1.centrests = TRUE_; /* Writing concatenation */ -#line 17606 "" +#line 17671 "" i__9[0] = 1, a__6[0] = all_1.sq; -#line 17606 "" +#line 17671 "" i__9[1] = 3, a__6[1] = "def"; -#line 17606 "" +#line 17671 "" i__9[2] = 1, a__6[2] = all_1.sq; -#line 17606 "" +#line 17671 "" i__9[3] = 8, a__6[3] = "value{0}"; -#line 17606 "" +#line 17671 "" s_cat(ch__20, a__6, i__9, &c__4, (ftnlen)13); -#line 17606 "" +#line 17671 "" addstr_(ch__20, &c__13, soutq, &lsout, (ftnlen)13, (ftnlen)80); /* Writing concatenation */ -#line 17607 "" +#line 17672 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 17607 "" +#line 17672 "" i__3[1] = 3, a__1[1] = "def"; -#line 17607 "" +#line 17672 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 17607 "" +#line 17672 "" i__3[3] = 10, a__1[3] = "atnextbar{"; -#line 17607 "" +#line 17672 "" i__3[4] = 1, a__1[4] = all_1.sq; -#line 17607 "" +#line 17672 "" i__3[5] = 6, a__1[5] = "znotes"; -#line 17607 "" +#line 17672 "" s_cat(ch__21, a__1, i__3, &c__6, (ftnlen)22); -#line 17607 "" +#line 17672 "" addstr_(ch__21, &c__22, soutq, &lsout, (ftnlen)22, (ftnlen)80); -#line 17609 "" +#line 17674 "" i__7 = all_1.nv; -#line 17609 "" +#line 17674 "" for (all_1.iv = 1; all_1.iv <= i__7; ++all_1.iv) { /* added */ -#line 17611 "" +#line 17676 "" lnote = 0; -#line 17613 "" +#line 17678 "" i__2 = commvl_1.nvmx[all_1.iv - 1]; -#line 17613 "" +#line 17678 "" for (kv = 1; kv <= i__2; ++kv) { -#line 17614 "" +#line 17679 "" commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25]; -#line 17615 "" +#line 17680 "" if (cwrest[commvl_1.ivx]) { /* Writing concatenation */ -#line 17616 "" +#line 17681 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17616 "" +#line 17681 "" i__4[1] = 10, a__2[1] = "CenterBar{"; -#line 17616 "" +#line 17681 "" s_cat(ch__9, a__2, i__4, &c__2, (ftnlen)11); -#line 17616 "" +#line 17681 "" addstr_(ch__9, &c__11, soutq, &lsout, (ftnlen)11, (ftnlen) 80); -#line 17617 "" +#line 17682 "" if (! comcwrf_1.cwrferm[commvl_1.ivx - 1]) { -#line 17618 "" +#line 17683 "" if (lcwr[commvl_1.ivx - 1] >= 11 && *(unsigned char *) &cwrq[(commvl_1.ivx - 1) * 79 + 10] != 'p') { /* Kluge to use new definitions for centered, stacked rests */ -#line 17622 "" +#line 17687 "" if (s_cmp(cwrq + ((commvl_1.ivx - 1) * 79 + 1), "liftpause", (ftnlen)9, (ftnlen)9) == 0 || s_cmp(cwrq + ((commvl_1.ivx - 1) * 79 + 1), "liftPAuse", (ftnlen)9, (ftnlen)9) == 0) { -#line 17622 "" +#line 17687 "" *(unsigned char *)&cwrq[(commvl_1.ivx - 1) * 79 + 9] = 'c'; -#line 17622 "" +#line 17687 "" } -#line 17625 "" +#line 17690 "" } -#line 17626 "" +#line 17691 "" addstr_(cwrq + (commvl_1.ivx - 1) * 79, &lcwr[ commvl_1.ivx - 1], soutq, &lsout, lcwr[ commvl_1.ivx - 1], (ftnlen)80); /* Writing concatenation */ -#line 17628 "" +#line 17693 "" i__6[0] = 6, a__4[0] = "}{-2}{"; -#line 17628 "" +#line 17693 "" i__6[1] = 1, a__4[1] = all_1.sq; -#line 17628 "" +#line 17693 "" i__6[2] = 6, a__4[2] = "value}"; -#line 17628 "" +#line 17693 "" s_cat(ch__20, a__4, i__6, &c__3, (ftnlen)13); -#line 17628 "" +#line 17693 "" addstr_(ch__20, &c__13, soutq, &lsout, (ftnlen)13, ( ftnlen)80); -#line 17629 "" +#line 17694 "" } else { /* Fermata on centered rest. Will need to fix up level. */ /* 12/6/07 shift it left so it's centered over rest */ /* Writing concatenation */ -#line 17634 "" +#line 17699 "" i__15[0] = lnote, a__9[0] = notexq; -#line 17634 "" +#line 17699 "" i__15[1] = 1, a__9[1] = all_1.sq; -#line 17634 "" +#line 17699 "" i__15[2] = 13, a__9[2] = "loffset{.33}{"; -#line 17634 "" +#line 17699 "" i__15[3] = 1, a__9[3] = all_1.sq; -#line 17634 "" +#line 17699 "" i__15[4] = 11, a__9[4] = "fermataup7}"; -#line 17634 "" +#line 17699 "" i__15[5] = lcwr[commvl_1.ivx - 1], a__9[5] = cwrq + ( commvl_1.ivx - 1) * 79; -#line 17634 "" +#line 17699 "" i__15[6] = 6, a__9[6] = "}{-2}{"; -#line 17634 "" +#line 17699 "" i__15[7] = 1, a__9[7] = all_1.sq; -#line 17634 "" +#line 17699 "" i__15[8] = 6, a__9[8] = "value}"; -#line 17634 "" +#line 17699 "" s_cat(notexq, a__9, i__15, &c__9, (ftnlen)79); -#line 17637 "" +#line 17702 "" lnote = lnote + 26 + lcwr[commvl_1.ivx - 1] + 13; -#line 17638 "" +#line 17703 "" addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, ( ftnlen)80); -#line 17639 "" +#line 17704 "" comcwrf_1.cwrferm[commvl_1.ivx - 1] = FALSE_; -#line 17640 "" +#line 17705 "" } -#line 17641 "" +#line 17706 "" } -#line 17642 "" +#line 17707 "" /* L61: */ -#line 17642 "" +#line 17707 "" } -#line 17643 "" +#line 17708 "" if (all_1.iv != all_1.nv) { -#line 17643 "" +#line 17708 "" addstr_(all_1.sepsymq + (all_1.iv - 1), &c__1, soutq, &lsout, (ftnlen)1, (ftnlen)80); -#line 17643 "" +#line 17708 "" } -#line 17644 "" +#line 17709 "" /* L60: */ -#line 17644 "" +#line 17709 "" } -#line 17645 "" +#line 17710 "" if (comlast_1.islast) { /* Writing concatenation */ -#line 17646 "" +#line 17711 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 17646 "" +#line 17711 "" i__4[1] = 4, a__2[1] = "en}%"; -#line 17646 "" +#line 17711 "" s_cat(ch__18, a__2, i__4, &c__2, (ftnlen)5); -#line 17646 "" +#line 17711 "" addstr_(ch__18, &c__5, soutq, &lsout, (ftnlen)5, (ftnlen)80); -#line 17647 "" +#line 17712 "" if (lsout > 0) { -#line 17647 "" - s_wsfe(&io___1089); -#line 17647 "" +#line 17712 "" + s_wsfe(&io___1091); +#line 17712 "" do_fio(&c__1, soutq, lsout); -#line 17647 "" +#line 17712 "" e_wsfe(); -#line 17647 "" +#line 17712 "" } -#line 17648 "" +#line 17713 "" } -#line 17649 "" +#line 17714 "" } /* End of block for centered whole-bar rests and multi-bar rests */ @@ -41749,52 +41873,52 @@ L65: /* If at end of block, save durations of last notes in bar, for possible use */ /* if clef changes at start of next bar */ -#line 17656 "" +#line 17721 "" if (all_1.ibar == all_1.nbars) { -#line 17657 "" +#line 17722 "" i__7 = all_1.nv; -#line 17657 "" +#line 17722 "" for (all_1.iv = 1; all_1.iv <= i__7; ++all_1.iv) { -#line 17658 "" +#line 17723 "" i__2 = commvl_1.nvmx[all_1.iv - 1]; -#line 17658 "" +#line 17723 "" for (kv = 1; kv <= i__2; ++kv) { -#line 17659 "" +#line 17724 "" commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25]; -#line 17660 "" +#line 17725 "" comnsp_2.prevtn[commvl_1.ivx - 1] = all_1.tnote[ comipl2_1.ipl2[commvl_1.ivx + all_1.nn[commvl_1.ivx - 1] * 24 - 25] - 1]; -#line 17661 "" +#line 17726 "" /* L63: */ -#line 17661 "" +#line 17726 "" } -#line 17661 "" +#line 17726 "" } -#line 17662 "" +#line 17727 "" } /* Update time for midi. This is only used for the event track */ -#line 17666 "" +#line 17731 "" if (commidi_1.ismidi) { -#line 17667 "" +#line 17732 "" comevent_1.miditime += all_1.lenbar * 15; /* If pickup, write the real time signature to the event track. Cannot use */ /* mtrnuml since it was reset to 0, have to recompute it */ -#line 17672 "" +#line 17737 "" if (all_1.lenb0 == all_1.lenbar) { -#line 17672 "" +#line 17737 "" i__2 = all_1.mtrdenl * all_1.lenb1 / 64; -#line 17672 "" +#line 17737 "" midievent_("m", &i__2, &all_1.mtrdenl, (ftnlen)1); -#line 17672 "" +#line 17737 "" } -#line 17674 "" +#line 17739 "" } -#line 17675 "" +#line 17740 "" return 0; } /* make2bar_ */ @@ -41860,185 +41984,185 @@ L65: /* * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks) */ /* logical rest,firstline,newmeter,gotclef */ -#line 17724 "" +#line 17789 "" linecom_1.elskb = 0.f; -#line 17725 "" +#line 17790 "" linecom_1.tnminb[c1omnotes_1.ibarcnt - 1] = 1e3f; -#line 17726 "" +#line 17791 "" i__1 = a1ll_2.nv; -#line 17726 "" +#line 17791 "" for (a1ll_2.iv = 1; a1ll_2.iv <= i__1; ++a1ll_2.iv) { -#line 17727 "" +#line 17792 "" i__2 = c1ommvl_1.nvmx[a1ll_2.iv - 1]; -#line 17727 "" +#line 17792 "" for (kv = 1; kv <= i__2; ++kv) { -#line 17728 "" +#line 17793 "" c1ommvl_1.ivx = c1ommvl_1.ivmx[a1ll_2.iv + kv * 24 - 25]; -#line 17729 "" +#line 17794 "" if (a1ll_2.ibar > 1) { -#line 17730 "" +#line 17795 "" a1ll_2.nn[c1ommvl_1.ivx - 1] = a1ll_2.nib[c1ommvl_1.ivx + a1ll_2.ibar * 24 - 25] - a1ll_2.nib[c1ommvl_1.ivx + ( a1ll_2.ibar - 1) * 24 - 25]; -#line 17731 "" +#line 17796 "" } else { -#line 17732 "" +#line 17797 "" a1ll_2.nn[c1ommvl_1.ivx - 1] = a1ll_2.nib[c1ommvl_1.ivx + a1ll_2.ibar * 24 - 25]; -#line 17733 "" +#line 17798 "" } -#line 17734 "" +#line 17799 "" /* L1: */ -#line 17734 "" +#line 17799 "" } -#line 17734 "" +#line 17799 "" } /* initialize list note counter, time(iv), curr. note(iv) */ -#line 17738 "" +#line 17803 "" ilnc = 1; -#line 17739 "" +#line 17804 "" i__2 = a1ll_2.nv; -#line 17739 "" +#line 17804 "" for (a1ll_2.iv = 1; a1ll_2.iv <= i__2; ++a1ll_2.iv) { -#line 17740 "" +#line 17805 "" i__1 = c1ommvl_1.nvmx[a1ll_2.iv - 1]; -#line 17740 "" +#line 17805 "" for (kv = 1; kv <= i__1; ++kv) { -#line 17741 "" +#line 17806 "" c1ommvl_1.ivx = c1ommvl_1.ivmx[a1ll_2.iv + kv * 24 - 25]; -#line 17742 "" +#line 17807 "" cnn[c1ommvl_1.ivx - 1] = 1; -#line 17743 "" +#line 17808 "" a1ll_2.ivxo[ilnc - 1] = c1ommvl_1.ivx; -#line 17744 "" +#line 17809 "" a1ll_2.ipo[ilnc - 1] = 1; -#line 17745 "" +#line 17810 "" a1ll_2.to[ilnc - 1] = 0.f; -#line 17746 "" +#line 17811 "" tnote[ilnc - 1] = fnote_(a1ll_2.nodur, &c1ommvl_1.ivx, &c__1, c1ommvl_1.nacc); -#line 17747 "" +#line 17812 "" xit[c1ommvl_1.ivx - 1] = tnote[ilnc - 1]; -#line 17748 "" +#line 17813 "" if ((r__1 = xit[c1ommvl_1.ivx - 1] - a1ll_2.lenbar, dabs(r__1)) < comtol_1.tol) { -#line 17748 "" +#line 17813 "" xit[c1ommvl_1.ivx - 1] = 1e3f; -#line 17748 "" +#line 17813 "" } -#line 17749 "" +#line 17814 "" ++ilnc; -#line 17750 "" +#line 17815 "" /* L4: */ -#line 17750 "" +#line 17815 "" } -#line 17750 "" +#line 17815 "" } /* Build the list */ -#line 17754 "" +#line 17819 "" L5: /* Determine which voice comes next from end of notes done so far. */ /* tmin is the earliest ending time of notes done so far */ -#line 17759 "" +#line 17824 "" tmin = 1e3f; -#line 17760 "" +#line 17825 "" i__1 = a1ll_2.nv; -#line 17760 "" +#line 17825 "" for (a1ll_2.iv = 1; a1ll_2.iv <= i__1; ++a1ll_2.iv) { -#line 17761 "" +#line 17826 "" i__2 = c1ommvl_1.nvmx[a1ll_2.iv - 1]; -#line 17761 "" +#line 17826 "" for (kv = 1; kv <= i__2; ++kv) { -#line 17762 "" +#line 17827 "" c1ommvl_1.ivx = c1ommvl_1.ivmx[a1ll_2.iv + kv * 24 - 25]; /* Computing MIN */ -#line 17763 "" +#line 17828 "" r__1 = tmin, r__2 = xit[c1ommvl_1.ivx - 1]; -#line 17763 "" +#line 17828 "" tminn = dmin(r__1,r__2); -#line 17764 "" +#line 17829 "" if (tminn < tmin) { -#line 17765 "" +#line 17830 "" tmin = tminn; -#line 17766 "" +#line 17831 "" ivnext = c1ommvl_1.ivx; -#line 17767 "" +#line 17832 "" } -#line 17768 "" +#line 17833 "" /* L6: */ -#line 17768 "" +#line 17833 "" } -#line 17768 "" +#line 17833 "" } -#line 17769 "" +#line 17834 "" if (tmin > 999.f) { -#line 17769 "" +#line 17834 "" goto L7; -#line 17769 "" +#line 17834 "" } -#line 17770 "" +#line 17835 "" a1ll_2.ivxo[ilnc - 1] = ivnext; -#line 17771 "" +#line 17836 "" ++cnn[ivnext - 1]; -#line 17772 "" +#line 17837 "" a1ll_2.ipo[ilnc - 1] = cnn[ivnext - 1]; -#line 17773 "" +#line 17838 "" a1ll_2.to[ilnc - 1] = tmin; /* Check if this voice is done */ -#line 17777 "" +#line 17842 "" tnote[ilnc - 1] = fnote_(a1ll_2.nodur, &ivnext, &cnn[ivnext - 1], c1ommvl_1.nacc); -#line 17778 "" +#line 17843 "" if (cnn[ivnext - 1] == a1ll_2.nn[ivnext - 1]) { -#line 17779 "" +#line 17844 "" xit[ivnext - 1] = 1e3f; -#line 17780 "" +#line 17845 "" } else { -#line 17781 "" +#line 17846 "" xit[ivnext - 1] += tnote[ilnc - 1]; -#line 17782 "" +#line 17847 "" } -#line 17783 "" +#line 17848 "" ++ilnc; -#line 17784 "" +#line 17849 "" goto L5; -#line 17785 "" +#line 17850 "" L7: -#line 17786 "" +#line 17851 "" ntot = ilnc - 1; -#line 17787 "" +#line 17852 "" if (ntot > 600) { -#line 17788 "" +#line 17853 "" printl_(" ", (ftnlen)1); -#line 17789 "" +#line 17854 "" printl_("Cannot have more than 600 notes per bar, stopping", (ftnlen) 49); -#line 17790 "" +#line 17855 "" stop1_(); -#line 17791 "" +#line 17856 "" } -#line 17792 "" +#line 17857 "" i__2 = ntot - 1; -#line 17792 "" +#line 17857 "" for (in = 1; in <= i__2; ++in) { -#line 17793 "" +#line 17858 "" a1ll_2.tno[in - 1] = a1ll_2.to[in] - a1ll_2.to[in - 1]; -#line 17794 "" +#line 17859 "" /* L8: */ -#line 17794 "" +#line 17859 "" } -#line 17795 "" +#line 17860 "" a1ll_2.tno[ntot - 1] = fnote_(a1ll_2.nodur, &a1ll_2.ivxo[ntot - 1], & a1ll_2.ipo[ntot - 1], c1ommvl_1.nacc); -#line 17796 "" +#line 17861 "" tnote[ntot - 1] = a1ll_2.tno[ntot - 1]; /* Debug writes */ @@ -42053,198 +42177,198 @@ L7: /* Done w/ list. Initialize loop for building note blocks: */ -#line 17810 "" +#line 17875 "" ib = 1; -#line 17811 "" +#line 17876 "" istart[0] = 1; -#line 17812 "" +#line 17877 "" space[0] = 0.f; -#line 17813 "" +#line 17878 "" in = 1; /* Start the loop */ -#line 17817 "" +#line 17882 "" L9: -#line 17818 "" +#line 17883 "" if (in == ntot) { -#line 17819 "" +#line 17884 "" if (space[ib - 1] < comtol_1.tol) { -#line 17820 "" +#line 17885 "" space[ib - 1] = a1ll_2.tno[in - 1]; /* Last gap in bar is spanned by a note, so cannot need a squeeze. */ -#line 17824 "" +#line 17889 "" squez[ib - 1] = 1.f; -#line 17825 "" +#line 17890 "" } -#line 17826 "" +#line 17891 "" istop[ib - 1] = ntot; /* From here flow out of this if block and into block-setup */ -#line 17830 "" +#line 17895 "" } else if (space[ib - 1] < comtol_1.tol) { /* space hasn't been set yet, so tentatively set: */ -#line 17834 "" +#line 17899 "" space[ib - 1] = a1ll_2.tno[in - 1]; -#line 17835 "" +#line 17900 "" if (space[ib - 1] < comtol_1.tol) { -#line 17836 "" +#line 17901 "" ++in; -#line 17837 "" +#line 17902 "" } else { /* Tentative space tno(in) is non-zero. Set squez, which will be kept (since */ /* it is a unique property of the particular increment starting here) : */ -#line 17842 "" +#line 17907 "" squez[ib - 1] = getsquez_(&in, &ntot, &space[ib - 1], tnote, a1ll_2.to); -#line 17843 "" +#line 17908 "" istop[ib - 1] = in; -#line 17844 "" +#line 17909 "" } -#line 17845 "" +#line 17910 "" goto L9; -#line 17846 "" +#line 17911 "" } else if (a1ll_2.tno[in] < comtol_1.tol) { /* This is not the last note in the space, so */ -#line 17850 "" +#line 17915 "" ++in; -#line 17851 "" +#line 17916 "" goto L9; -#line 17852 "" +#line 17917 "" } else if ((r__1 = a1ll_2.tno[in] - space[ib - 1], dabs(r__1)) < comtol_1.tol) { /* Next increment has same space. Does it have same squez? */ -#line 17856 "" +#line 17921 "" i__2 = in + 1; -#line 17856 "" +#line 17921 "" xsquez = getsquez_(&i__2, &ntot, &space[ib - 1], tnote, a1ll_2.to); /* If it does have the same squez, loop, otherwise flow out */ -#line 17860 "" +#line 17925 "" if ((r__1 = xsquez - squez[ib - 1], dabs(r__1)) < comtol_1.tol) { /* Keep spacing the same, update tentative stop point */ -#line 17864 "" +#line 17929 "" ++in; -#line 17865 "" +#line 17930 "" istop[ib - 1] = in; -#line 17866 "" +#line 17931 "" goto L9; -#line 17867 "" +#line 17932 "" } -#line 17868 "" +#line 17933 "" } /* At this point istart, istop, space, and squez are good, so close out block */ -#line 17872 "" +#line 17937 "" tstart[ib - 1] = a1ll_2.to[istart[ib - 1] - 1]; /* Compute elemskips assuming no flattening to increase min space. The formula */ /* is only correct if f1eon(t) = sqrt(t/2); more generally (after possible */ /* flattening in pmxb), elsperns = squez*feon(space/squez) */ -#line 17878 "" +#line 17943 "" r__1 = space[ib - 1] * squez[ib - 1]; -#line 17878 "" +#line 17943 "" elsperns = f1eon_(&r__1); -#line 17879 "" +#line 17944 "" if (istop[ib - 1] == ntot) { -#line 17880 "" +#line 17945 "" r__1 = (a1ll_2.lenbar - tstart[ib - 1]) / space[ib - 1]; -#line 17880 "" +#line 17945 "" nnsk = i_nint(&r__1); -#line 17881 "" +#line 17946 "" } else { -#line 17882 "" +#line 17947 "" r__1 = (a1ll_2.to[istop[ib - 1]] - tstart[ib - 1]) / space[ib - 1]; -#line 17882 "" +#line 17947 "" nnsk = i_nint(&r__1); -#line 17883 "" +#line 17948 "" } -#line 17884 "" +#line 17949 "" linecom_1.elskb += elsperns * nnsk; -#line 17885 "" +#line 17950 "" if (c1omnotes_1.nptr[c1omnotes_1.ibarcnt] > c1omnotes_1.nptr[ c1omnotes_1.ibarcnt - 1]) { -#line 17886 "" +#line 17951 "" catspace_(&space[ib - 1], &squez[ib - 1], &nnsk); -#line 17887 "" +#line 17952 "" } else { /* This is the first entry for this bar */ -#line 17891 "" +#line 17956 "" c1omnotes_1.nnpd[c1omnotes_1.nptr[c1omnotes_1.ibarcnt - 1] - 1] = nnsk; -#line 17892 "" +#line 17957 "" c1omnotes_1.durb[c1omnotes_1.nptr[c1omnotes_1.ibarcnt - 1] - 1] = space[ib - 1]; -#line 17893 "" +#line 17958 "" c1omnotes_1.sqzb[c1omnotes_1.nptr[c1omnotes_1.ibarcnt - 1] - 1] = squez[ib - 1]; -#line 17894 "" +#line 17959 "" ++c1omnotes_1.nptr[c1omnotes_1.ibarcnt]; -#line 17895 "" +#line 17960 "" } /* Update minimum space spanned by a note */ -#line 17899 "" +#line 17964 "" if ((r__1 = squez[ib - 1] - 1, dabs(r__1)) < comtol_1.tol) { /* Computing MIN */ -#line 17899 "" +#line 17964 "" r__2 = linecom_1.tnminb[c1omnotes_1.ibarcnt - 1], r__3 = space[ib - 1] ; -#line 17899 "" +#line 17964 "" linecom_1.tnminb[c1omnotes_1.ibarcnt - 1] = dmin(r__2,r__3); -#line 17899 "" +#line 17964 "" } -#line 17901 "" +#line 17966 "" if (istop[ib - 1] == ntot) { -#line 17901 "" +#line 17966 "" goto L15; -#line 17901 "" +#line 17966 "" } /* End of spatial accounting for now */ -#line 17905 "" +#line 17970 "" ++ib; -#line 17906 "" +#line 17971 "" istart[ib - 1] = istop[ib - 2] + 1; -#line 17907 "" +#line 17972 "" in = istart[ib - 1]; /* Set tentative block space for new block */ -#line 17911 "" +#line 17976 "" space[ib - 1] = a1ll_2.tno[in - 1]; -#line 17912 "" +#line 17977 "" if (space[ib - 1] > comtol_1.tol) { -#line 17912 "" +#line 17977 "" squez[ib - 1] = getsquez_(&in, &ntot, &space[ib - 1], tnote, a1ll_2.to); -#line 17912 "" +#line 17977 "" } -#line 17914 "" +#line 17979 "" istop[ib - 1] = in; -#line 17915 "" +#line 17980 "" goto L9; -#line 17916 "" +#line 17981 "" L15: /* nb = ib */ @@ -42255,7 +42379,7 @@ L15: /* write(*,'(16f5.1)')(space(ib),ib=1,nb) */ /* write(*,'(16f5.1)')(squez(ib),ib=1,nb) */ -#line 17926 "" +#line 17991 "" return 0; } /* makeabar_ */ @@ -42278,136 +42402,136 @@ L15: static integer nbytes, misperq; /* Fortran I/O blocks */ - static cilist io___1113 = { 0, 6, 0, 0, 0 }; + static cilist io___1115 = { 0, 6, 0, 0, 0 }; /* We now store "conductor" events in mmidi(numchan,.), and count bytes */ /* with imidi(numchan) */ -#line 17945 "" +#line 18010 "" i__1 = comevent_1.miditime - comevent_1.lasttime; -#line 17945 "" +#line 18010 "" idur = isetvarlen_(&i__1, &nbytes); -#line 17946 "" +#line 18011 "" commidi_1.imidi[commidi_1.numchan] = commidi_1.imidi[commidi_1.numchan] + nbytes + 1; -#line 17947 "" +#line 18012 "" i__1 = nbytes; -#line 17947 "" +#line 18012 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 17948 "" +#line 18013 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] - i__) * 25 - 25] = (shortint) (idur % 256) ; -#line 17949 "" +#line 18014 "" idur = lbit_shift(idur, (ftnlen)-8); -#line 17950 "" +#line 18015 "" /* L1: */ -#line 17950 "" +#line 18015 "" } -#line 17951 "" +#line 18016 "" commidi_1.mmidi[commidi_1.numchan + commidi_1.imidi[commidi_1.numchan] * 25 - 25] = 255; -#line 17952 "" +#line 18017 "" if (*(unsigned char *)typeq == 't') { /* Tempo event. in1 = quarters per minute (integer) */ -#line 17956 "" +#line 18021 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 1) * 25 - 25] = 81; -#line 17957 "" +#line 18022 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 2) * 25 - 25] = 3; -#line 17958 "" +#line 18023 "" r__1 = 6e7f / *in1; -#line 17958 "" +#line 18023 "" misperq = i_nint(&r__1); -#line 17959 "" +#line 18024 "" for (i__ = 1; i__ <= 3; ++i__) { -#line 17960 "" +#line 18025 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 6 - i__) * 25 - 25] = (shortint) ( misperq % 256); -#line 17961 "" +#line 18026 "" misperq = lbit_shift(misperq, (ftnlen)-8); -#line 17962 "" +#line 18027 "" /* L2: */ -#line 17962 "" +#line 18027 "" } -#line 17963 "" +#line 18028 "" commidi_1.imidi[commidi_1.numchan] += 5; -#line 17964 "" +#line 18029 "" } else if (*(unsigned char *)typeq == 'm') { /* Meter event. in1=numerator, in2=denom (power of 2) */ -#line 17968 "" +#line 18033 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 1) * 25 - 25] = 88; -#line 17969 "" +#line 18034 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 2) * 25 - 25] = 4; -#line 17970 "" +#line 18035 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 3) * 25 - 25] = (shortint) (*in1); -#line 17971 "" +#line 18036 "" if (*in2 > 0) { -#line 17972 "" +#line 18037 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 4) * 25 - 25] = (shortint) log2_(in2) ; -#line 17973 "" +#line 18038 "" } else { -#line 17974 "" +#line 18039 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 4) * 25 - 25] = 0; -#line 17975 "" +#line 18040 "" } -#line 17976 "" +#line 18041 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 5) * 25 - 25] = 24; -#line 17977 "" +#line 18042 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 6) * 25 - 25] = 8; -#line 17978 "" +#line 18043 "" commidi_1.imidi[commidi_1.numchan] += 6; -#line 17979 "" +#line 18044 "" } else if (*(unsigned char *)typeq == 'k') { /* Keychange event. in1 = isig */ -#line 17983 "" +#line 18048 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 1) * 25 - 25] = 89; -#line 17984 "" +#line 18049 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 2) * 25 - 25] = 2; -#line 17985 "" +#line 18050 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 3) * 25 - 25] = (shortint) ((*in1 + 256) % 256); -#line 17986 "" +#line 18051 "" commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[ commidi_1.numchan] + 4) * 25 - 25] = 0; -#line 17987 "" +#line 18052 "" commidi_1.imidi[commidi_1.numchan] += 4; -#line 17988 "" +#line 18053 "" } else { -#line 17989 "" - s_wsle(&io___1113); -#line 17989 "" +#line 18054 "" + s_wsle(&io___1115); +#line 18054 "" do_lio(&c__9, &c__1, "Program flameout in midievent", (ftnlen)29); -#line 17989 "" +#line 18054 "" e_wsle(); -#line 17990 "" +#line 18055 "" stop1_(); -#line 17991 "" +#line 18056 "" } -#line 17992 "" +#line 18057 "" comevent_1.lasttime = comevent_1.miditime; -#line 17993 "" +#line 18058 "" return 0; } /* midievent_ */ @@ -42426,55 +42550,55 @@ L15: static integer lenout; /* Fortran I/O blocks */ - static cilist io___1114 = { 0, 0, 1, "(a)", 0 }; - static cilist io___1117 = { 0, 0, 0, "(a)", 0 }; + static cilist io___1116 = { 0, 0, 1, "(a)", 0 }; + static cilist io___1119 = { 0, 0, 0, "(a)", 0 }; -#line 17998 "" +#line 18063 "" *done = FALSE_; -#line 17999 "" - io___1114.ciunit = *iuin; -#line 17999 "" - i__1 = s_rsfe(&io___1114); -#line 17999 "" +#line 18064 "" + io___1116.ciunit = *iuin; +#line 18064 "" + i__1 = s_rsfe(&io___1116); +#line 18064 "" if (i__1 != 0) { -#line 17999 "" +#line 18064 "" goto L1; -#line 17999 "" +#line 18064 "" } -#line 17999 "" +#line 18064 "" i__1 = do_fio(&c__1, outq, (ftnlen)129); -#line 17999 "" +#line 18064 "" if (i__1 != 0) { -#line 17999 "" +#line 18064 "" goto L1; -#line 17999 "" +#line 18064 "" } -#line 17999 "" +#line 18064 "" i__1 = e_rsfe(); -#line 17999 "" +#line 18064 "" if (i__1 != 0) { -#line 17999 "" +#line 18064 "" goto L1; -#line 17999 "" +#line 18064 "" } -#line 18000 "" +#line 18065 "" lenout = llen_(outq, &c__129, (ftnlen)129); -#line 18001 "" - io___1117.ciunit = *iuout; -#line 18001 "" - s_wsfe(&io___1117); -#line 18001 "" +#line 18066 "" + io___1119.ciunit = *iuout; +#line 18066 "" + s_wsfe(&io___1119); +#line 18066 "" do_fio(&c__1, outq, lenout); -#line 18001 "" +#line 18066 "" e_wsfe(); -#line 18002 "" +#line 18067 "" return 0; -#line 18003 "" +#line 18068 "" L1: -#line 18003 "" +#line 18068 "" *done = TRUE_; -#line 18004 "" +#line 18069 "" return 0; } /* moveln_ */ @@ -42494,55 +42618,55 @@ L1: /* This is called when (a) macro recording is just starting and */ /* (b) at the start of a new line, if recording is on */ -#line 18020 "" +#line 18085 "" if (! commac_1.mrecord) { /* Starting the macro */ -#line 18024 "" +#line 18089 "" c1ommac_1.ip1mac[commac_1.macnum - 1] = inbuff_1.ipbuf - inbuff_1.lbuf[inbuff_1.ilbuf - 2] + *iccount; -#line 18025 "" +#line 18090 "" c1ommac_1.il1mac[commac_1.macnum - 1] = inbuff_1.ilbuf - 1; -#line 18026 "" +#line 18091 "" c1ommac_1.ic1mac[commac_1.macnum - 1] = *iccount; -#line 18027 "" +#line 18092 "" commac_1.mrecord = TRUE_; -#line 18028 "" +#line 18093 "" } -#line 18029 "" +#line 18094 "" if (*iccount < 128) { -#line 18030 "" +#line 18095 "" i__1 = *iccount; -#line 18030 "" +#line 18095 "" *ndxm = i_indx(lineq + i__1, "M", 128 - i__1, (ftnlen)1); -#line 18031 "" +#line 18096 "" if (*ndxm > 0) { -#line 18031 "" +#line 18096 "" i__1 = *iccount; -#line 18031 "" +#line 18096 "" i__2 = 128 - *iccount; -#line 18031 "" +#line 18096 "" *ndxm = ntindex_(lineq + i__1, "M", &i__2, 128 - i__1, (ftnlen)1); -#line 18031 "" +#line 18096 "" } -#line 18033 "" +#line 18098 "" if (*ndxm > 0) { /* This line ends the macro. */ -#line 18037 "" +#line 18102 "" c1ommac_1.ip2mac[commac_1.macnum - 1] = inbuff_1.ipbuf - inbuff_1.lbuf[inbuff_1.ilbuf - 2] + *iccount + *ndxm; -#line 18038 "" +#line 18103 "" c1ommac_1.il2mac[commac_1.macnum - 1] = inbuff_1.ilbuf - 1; -#line 18039 "" +#line 18104 "" commac_1.mrecord = FALSE_; -#line 18040 "" +#line 18105 "" } -#line 18041 "" +#line 18106 "" } -#line 18042 "" +#line 18107 "" return 0; } /* mrec1_ */ @@ -42561,42 +42685,42 @@ integer ncmid_(integer *iv, integer *ip) static real xtime; /* Fortran I/O blocks */ - static cilist io___1120 = { 0, 6, 0, 0, 0 }; + static cilist io___1122 = { 0, 6, 0, 0, 0 }; -#line 18062 "" +#line 18127 "" if (comcc_1.ncc[*iv - 1] == 1) { -#line 18063 "" +#line 18128 "" ret_val = comcc_1.ncmidcc[*iv - 1]; -#line 18064 "" +#line 18129 "" } else { -#line 18065 "" +#line 18130 "" xtime = all_2.to[comipl2_1.ipl2[commvl_1.ivx + *ip * 24 - 25] - 1]; -#line 18066 "" +#line 18131 "" for (icc = comcc_1.ncc[*iv - 1]; icc >= 1; --icc) { -#line 18067 "" +#line 18132 "" if (xtime > comcc_1.tcc[*iv + icc * 24 - 25] - comtol_1.tol) { -#line 18068 "" +#line 18133 "" ret_val = comcc_1.ncmidcc[*iv + icc * 24 - 25]; -#line 18069 "" +#line 18134 "" return ret_val; -#line 18070 "" +#line 18135 "" } -#line 18071 "" +#line 18136 "" /* L1: */ -#line 18071 "" +#line 18136 "" } -#line 18072 "" - s_wsle(&io___1120); -#line 18072 "" +#line 18137 "" + s_wsle(&io___1122); +#line 18137 "" do_lio(&c__9, &c__1, "Problem in ncmid()", (ftnlen)18); -#line 18072 "" +#line 18137 "" e_wsle(); -#line 18073 "" +#line 18138 "" s_stop("", (ftnlen)0); -#line 18074 "" +#line 18139 "" } -#line 18075 "" +#line 18140 "" return ret_val; } /* ncmid_ */ @@ -42628,21 +42752,21 @@ integer ncmidf_(char *clefq, ftnlen clefq_len) /* else */ /* ncmidf = 23 */ /* end if */ -#line 18098 "" +#line 18163 "" if (*(unsigned char *)clefq == '8') { /* treblelowoct; will treat as treble for this purpose */ -#line 18102 "" +#line 18167 "" ret_val = 35; -#line 18103 "" +#line 18168 "" } else { -#line 18104 "" +#line 18169 "" ret_val = (i_indx(" b6r5n4a3m2s1t0f7", clefq, (ftnlen)17, (ftnlen)1) / 2 << 1) + 21; -#line 18105 "" +#line 18170 "" } -#line 18106 "" +#line 18171 "" return ret_val; } /* ncmidf_ */ @@ -42652,60 +42776,60 @@ integer ncmidf_(char *clefq, ftnlen clefq_len) static integer j; extern integer ncmidf_(char *, ftnlen); -#line 18129 "" +#line 18194 "" commvl_1.nvmx[*jv - 1] = 1; -#line 18130 "" +#line 18195 "" commvl_1.ivmx[*jv - 1] = *jv; -#line 18131 "" +#line 18196 "" all_1.itsofar[*jv - 1] = 0; -#line 18132 "" +#line 18197 "" all_1.nnl[*jv - 1] = 0; -#line 18133 "" +#line 18198 "" comfb_1.nfb[*jv - 1] = 0; -#line 18134 "" +#line 18199 "" if (all_1.firstgulp || *change) { -#line 18135 "" +#line 18200 "" comcc_1.ncmidcc[*jv - 1] = ncmidf_(clefq, (ftnlen)1); -#line 18136 "" +#line 18201 "" } else { -#line 18137 "" +#line 18202 "" comcc_1.ncmidcc[*jv - 1] = comcc_1.ncmidcc[*jv + comcc_1.ncc[*jv - 1] * 24 - 25]; -#line 18138 "" +#line 18203 "" } -#line 18139 "" +#line 18204 "" comcc_1.tcc[*jv - 1] = 0.f; -#line 18140 "" +#line 18205 "" comcc_1.ncc[*jv - 1] = 1; -#line 18141 "" +#line 18206 "" comudsp_1.nudoff[*jv - 1] = 0; -#line 18142 "" +#line 18207 "" comcc_1.ndotmv[*jv - 1] = 0; -#line 18143 "" +#line 18208 "" for (j = 1; j <= 200; ++j) { -#line 18144 "" +#line 18209 "" all_1.irest[*jv + j * 24 - 25] = 0; -#line 18145 "" +#line 18210 "" all_1.islur[*jv + j * 24 - 25] = 0; -#line 18146 "" +#line 18211 "" all_1.ipl[*jv + j * 24 - 25] = 0; -#line 18147 "" +#line 18212 "" all_1.nacc[*jv + j * 24 - 25] = 0; -#line 18148 "" +#line 18213 "" all_1.iornq[*jv + j * 24 - 1] = 0; -#line 18149 "" +#line 18214 "" all_1.mult[*jv + j * 24 - 25] = 0; -#line 18150 "" +#line 18215 "" if (*jv <= 2) { -#line 18150 "" +#line 18215 "" all_1.isfig[*jv + (j << 1) - 3] = FALSE_; -#line 18150 "" +#line 18215 "" } -#line 18151 "" +#line 18216 "" /* L5: */ -#line 18151 "" +#line 18216 "" } -#line 18152 "" +#line 18217 "" return 0; } /* newvoice_ */ @@ -42732,118 +42856,118 @@ integer ncmidf_(char *clefq, ftnlen clefq_len) /* Returns name of note level with octave transpositions, updates noctup. */ -#line 18161 "" +#line 18226 "" nupfroma = (*nolev + 1) % 7; -#line 18162 "" +#line 18227 "" iname = nupfroma + 97; -#line 18163 "" +#line 18228 "" ioctup = (*nolev + 1) / 7 - 4; -#line 18164 "" +#line 18229 "" chax_(ch__1, (ftnlen)1, &iname); -#line 18164 "" +#line 18229 "" *(unsigned char *)noteqt = *(unsigned char *)&ch__1[0]; -#line 18165 "" +#line 18230 "" if (*ncmid == 23) { -#line 18165 "" +#line 18230 "" upcaseq_(ch__1, (ftnlen)1, noteqt, (ftnlen)1); -#line 18165 "" +#line 18230 "" *(unsigned char *)noteqt = *(unsigned char *)&ch__1[0]; -#line 18165 "" +#line 18230 "" } -#line 18166 "" +#line 18231 "" if (ioctup == comoct_1.noctup) { -#line 18167 "" +#line 18232 "" s_copy(noteq, noteqt, (ftnlen)8, (ftnlen)1); -#line 18168 "" +#line 18233 "" *lnote = 1; /* Must ALWAYS check if lnote=1 for use with functions requiring a blank */ -#line 18172 "" +#line 18237 "" } else if (ioctup > comoct_1.noctup) { /* Raise octave. Encase in {} */ -#line 18176 "" +#line 18241 "" ici__1.icierr = 0; -#line 18176 "" +#line 18241 "" ici__1.icirnum = 1; -#line 18176 "" +#line 18241 "" ici__1.icirlen = 8; -#line 18176 "" +#line 18241 "" ici__1.iciunit = noteq; -#line 18176 "" +#line 18241 "" ici__1.icifmt = "(8a1)"; -#line 18176 "" +#line 18241 "" s_wsfi(&ici__1); -#line 18176 "" +#line 18241 "" do_fio(&c__1, "{", (ftnlen)1); -#line 18176 "" +#line 18241 "" i__1 = ioctup - 1; -#line 18176 "" +#line 18241 "" for (i__ = comoct_1.noctup; i__ <= i__1; ++i__) { -#line 18176 "" +#line 18241 "" chax_(ch__2, (ftnlen)1, &c__39); -#line 18176 "" +#line 18241 "" *(unsigned char *)&ch__1[0] = *(unsigned char *)&ch__2[0]; -#line 18176 "" +#line 18241 "" do_fio(&c__1, ch__1, (ftnlen)1); -#line 18176 "" +#line 18241 "" } -#line 18176 "" +#line 18241 "" do_fio(&c__1, noteqt, (ftnlen)1); -#line 18176 "" +#line 18241 "" do_fio(&c__1, "}", (ftnlen)1); -#line 18176 "" +#line 18241 "" e_wsfi(); -#line 18178 "" +#line 18243 "" *lnote = ioctup + 3 - comoct_1.noctup; -#line 18179 "" +#line 18244 "" comoct_1.noctup = ioctup; -#line 18180 "" +#line 18245 "" } else { /* Lower octave */ -#line 18184 "" +#line 18249 "" ici__1.icierr = 0; -#line 18184 "" +#line 18249 "" ici__1.icirnum = 1; -#line 18184 "" +#line 18249 "" ici__1.icirlen = 8; -#line 18184 "" +#line 18249 "" ici__1.iciunit = noteq; -#line 18184 "" +#line 18249 "" ici__1.icifmt = "(8a1)"; -#line 18184 "" +#line 18249 "" s_wsfi(&ici__1); -#line 18184 "" +#line 18249 "" do_fio(&c__1, "{", (ftnlen)1); -#line 18184 "" +#line 18249 "" i__1 = comoct_1.noctup - 1; -#line 18184 "" +#line 18249 "" for (i__ = ioctup; i__ <= i__1; ++i__) { -#line 18184 "" +#line 18249 "" chax_(ch__2, (ftnlen)1, &c__96); -#line 18184 "" +#line 18249 "" *(unsigned char *)&ch__1[0] = *(unsigned char *)&ch__2[0]; -#line 18184 "" +#line 18249 "" do_fio(&c__1, ch__1, (ftnlen)1); -#line 18184 "" +#line 18249 "" } -#line 18184 "" +#line 18249 "" do_fio(&c__1, noteqt, (ftnlen)1); -#line 18184 "" +#line 18249 "" do_fio(&c__1, "}", (ftnlen)1); -#line 18184 "" +#line 18249 "" e_wsfi(); -#line 18186 "" +#line 18251 "" *lnote = comoct_1.noctup + 3 - ioctup; -#line 18187 "" +#line 18252 "" comoct_1.noctup = ioctup; -#line 18188 "" +#line 18253 "" } -#line 18189 "" +#line 18254 "" return 0; } /* notefq_ */ @@ -42886,496 +43010,496 @@ integer ncmidf_(char *clefq, ftnlen clefq_len) static integer lnoten; /* Fortran I/O blocks */ - static icilist io___1139 = { 0, noteq, 0, "(i2)", 2, 1 }; - static icilist io___1143 = { 0, numq, 0, "(i2)", 2, 1 }; - static icilist io___1144 = { 0, noteq+1, 0, "(i2)", 2, 1 }; - static icilist io___1145 = { 0, noteq+1, 0, "(i3)", 3, 1 }; + static icilist io___1141 = { 0, noteq, 0, "(i2)", 2, 1 }; + static icilist io___1145 = { 0, numq, 0, "(i2)", 2, 1 }; + static icilist io___1146 = { 0, noteq+1, 0, "(i2)", 2, 1 }; + static icilist io___1147 = { 0, noteq+1, 0, "(i3)", 3, 1 }; /* Returns non-beamed full note name */ -#line 18219 "" +#line 18284 "" ip = all_1.ipo[all_1.jn - 1]; -#line 18220 "" +#line 18285 "" nole = all_1.nolev[commvl_1.ivx + ip * 24 - 25]; /* Check for special situations with 2nds (see precrd) */ -#line 18224 "" +#line 18289 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],30)) { -#line 18225 "" +#line 18290 "" --nole; -#line 18226 "" +#line 18291 "" } else if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],31)) { -#line 18227 "" +#line 18292 "" ++nole; -#line 18228 "" +#line 18293 "" } -#line 18229 "" +#line 18294 "" nodu = all_1.nodur[commvl_1.ivx + ip * 24 - 25]; -#line 18230 "" +#line 18295 "" if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) { -#line 18231 "" +#line 18296 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 18231 "" +#line 18296 "" udqq_(ch__1, (ftnlen)1, &nole, &i__1, &all_1.islur[commvl_1.ivx + ip * 24 - 25], &commvl_1.nvmx[all_1.iv - 1], &commvl_1.ivx, & all_1.nv); -#line 18231 "" +#line 18296 "" *(unsigned char *)udq = *(unsigned char *)&ch__1[0]; -#line 18233 "" +#line 18298 "" } /* Check figure level */ /* if (figbass .and. isfig(ivx,ip) */ /* * .and. .not.btest(irest(ivx,ip),0)) then */ -#line 18239 "" +#line 18304 "" if (all_1.figbass && ! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25], 0) && (commvl_1.ivx == 1 && all_1.isfig[(ip << 1) - 2] || commvl_1.ivx == comfig_1.ivxfig2 && all_1.isfig[(ip << 1) - 1])) { -#line 18242 "" +#line 18307 "" if (*(unsigned char *)udq == 'u' || nodu >= 64) { /* Upper or no stem, fnole (in noleunits) set by notehead */ -#line 18246 "" +#line 18311 "" fnole = (real) nole; -#line 18247 "" +#line 18312 "" } else { /* Lower stem, fnole set by bottom of stem */ -#line 18251 "" +#line 18316 "" fnole = nole - all_1.stemlen; -#line 18252 "" +#line 18317 "" } -#line 18253 "" +#line 18318 "" zmin = fnole - ncmid_(&commvl_1.ivx, &ip) + 4; -#line 18254 "" +#line 18319 "" if (commvl_1.ivx == 1) { /* Computing MAX */ -#line 18255 "" +#line 18320 "" r__1 = 4 - zmin; -#line 18255 "" +#line 18320 "" i__1 = all_1.ifigdr[(all_1.iline << 1) - 2], i__2 = i_nint(&r__1); -#line 18255 "" +#line 18320 "" all_1.ifigdr[(all_1.iline << 1) - 2] = max(i__1,i__2); -#line 18256 "" +#line 18321 "" } else { /* Computing MAX */ -#line 18257 "" +#line 18322 "" r__1 = 4 - zmin; -#line 18257 "" +#line 18322 "" i__1 = all_1.ifigdr[(all_1.iline << 1) - 1], i__2 = i_nint(&r__1); -#line 18257 "" +#line 18322 "" all_1.ifigdr[(all_1.iline << 1) - 1] = max(i__1,i__2); -#line 18258 "" +#line 18323 "" } -#line 18259 "" +#line 18324 "" } -#line 18260 "" +#line 18325 "" if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) { -#line 18261 "" +#line 18326 "" i__1 = ncmid_(&all_1.iv, &ip); -#line 18261 "" +#line 18326 "" notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8); -#line 18262 "" +#line 18327 "" if (lnoten == 1) { -#line 18262 "" +#line 18327 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 18262 "" +#line 18327 "" } -#line 18263 "" +#line 18328 "" if (nodu == 1) { /* Writing concatenation */ -#line 18264 "" +#line 18329 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 18264 "" +#line 18329 "" i__3[1] = 4, a__1[1] = "cccc"; -#line 18264 "" +#line 18329 "" i__3[2] = 1, a__1[2] = udq; -#line 18264 "" +#line 18329 "" i__3[3] = lnoten, a__1[3] = noteq; -#line 18264 "" +#line 18329 "" s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79); -#line 18265 "" +#line 18330 "" *lnote = lnoten + 6; -#line 18266 "" +#line 18331 "" } else if (nodu == 2) { /* Writing concatenation */ -#line 18267 "" +#line 18332 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 18267 "" +#line 18332 "" i__3[1] = 3, a__1[1] = "ccc"; -#line 18267 "" +#line 18332 "" i__3[2] = 1, a__1[2] = udq; -#line 18267 "" +#line 18332 "" i__3[3] = lnoten, a__1[3] = noteq; -#line 18267 "" +#line 18332 "" s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79); -#line 18268 "" +#line 18333 "" *lnote = lnoten + 5; -#line 18269 "" +#line 18334 "" } else if (nodu == 4) { /* Writing concatenation */ -#line 18270 "" +#line 18335 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 18270 "" +#line 18335 "" i__3[1] = 2, a__1[1] = "cc"; -#line 18270 "" +#line 18335 "" i__3[2] = 1, a__1[2] = udq; -#line 18270 "" +#line 18335 "" i__3[3] = lnoten, a__1[3] = noteq; -#line 18270 "" +#line 18335 "" s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79); -#line 18271 "" +#line 18336 "" *lnote = lnoten + 4; -#line 18272 "" +#line 18337 "" } else if (nodu == 8) { /* Writing concatenation */ -#line 18273 "" +#line 18338 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 18273 "" +#line 18338 "" i__3[1] = 1, a__1[1] = "c"; -#line 18273 "" +#line 18338 "" i__3[2] = 1, a__1[2] = udq; -#line 18273 "" +#line 18338 "" i__3[3] = lnoten, a__1[3] = noteq; -#line 18273 "" +#line 18338 "" s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79); -#line 18274 "" +#line 18339 "" *lnote = lnoten + 3; -#line 18275 "" +#line 18340 "" } else if (nodu == 16) { /* Writing concatenation */ -#line 18276 "" +#line 18341 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 18276 "" +#line 18341 "" i__3[1] = 1, a__1[1] = "q"; -#line 18276 "" +#line 18341 "" i__3[2] = 1, a__1[2] = udq; -#line 18276 "" +#line 18341 "" i__3[3] = lnoten, a__1[3] = noteq; -#line 18276 "" +#line 18341 "" s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79); -#line 18277 "" +#line 18342 "" *lnote = lnoten + 3; -#line 18278 "" +#line 18343 "" } else if (nodu == 32) { /* Writing concatenation */ -#line 18279 "" +#line 18344 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 18279 "" +#line 18344 "" i__3[1] = 1, a__1[1] = "h"; -#line 18279 "" +#line 18344 "" i__3[2] = 1, a__1[2] = udq; -#line 18279 "" +#line 18344 "" i__3[3] = lnoten, a__1[3] = noteq; -#line 18279 "" +#line 18344 "" s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79); -#line 18280 "" +#line 18345 "" *lnote = lnoten + 3; -#line 18281 "" +#line 18346 "" } else if (nodu == 64) { /* Writing concatenation */ -#line 18282 "" +#line 18347 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 18282 "" +#line 18347 "" i__4[1] = 2, a__2[1] = "wh"; -#line 18282 "" +#line 18347 "" i__4[2] = lnoten, a__2[2] = noteq; -#line 18282 "" +#line 18347 "" s_cat(notexq, a__2, i__4, &c__3, (ftnlen)79); -#line 18283 "" +#line 18348 "" *lnote = lnoten + 3; -#line 18284 "" +#line 18349 "" } else if (nodu == 128) { /* notexq =sq//'zbreve'//noteq(1:lnoten)//sq//'sk' */ /* lnote = lnoten+10 */ /* Writing concatenation */ -#line 18287 "" +#line 18352 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 18287 "" +#line 18352 "" i__4[1] = 5, a__2[1] = "breve"; -#line 18287 "" +#line 18352 "" i__4[2] = lnoten, a__2[2] = noteq; -#line 18287 "" +#line 18352 "" s_cat(notexq, a__2, i__4, &c__3, (ftnlen)79); -#line 18288 "" +#line 18353 "" *lnote = lnoten + 6; -#line 18289 "" +#line 18354 "" } else { -#line 18290 "" +#line 18355 "" s_copy(dotq, "p", (ftnlen)4, (ftnlen)1); -#line 18291 "" +#line 18356 "" ldot = 1; -#line 18292 "" +#line 18357 "" if (bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],13)) { /* Dotted note with ')' ornament */ -#line 18296 "" +#line 18361 "" s_copy(dotq, "m", (ftnlen)4, (ftnlen)1); -#line 18297 "" +#line 18362 "" } else if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],3)) { /* Double dot */ -#line 18301 "" +#line 18366 "" s_copy(dotq, "pp", (ftnlen)4, (ftnlen)2); -#line 18302 "" +#line 18367 "" ldot = 2; -#line 18303 "" +#line 18368 "" } -#line 18304 "" +#line 18369 "" if (nodu >= 192) { /* Writing concatenation */ -#line 18305 "" +#line 18370 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 18305 "" +#line 18370 "" i__3[1] = 5, a__1[1] = "breve"; -#line 18305 "" +#line 18370 "" i__3[2] = ldot, a__1[2] = dotq; -#line 18305 "" +#line 18370 "" i__3[3] = lnoten, a__1[3] = noteq; -#line 18305 "" +#line 18370 "" s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79); -#line 18306 "" +#line 18371 "" *lnote = lnoten + 6 + ldot; -#line 18307 "" +#line 18372 "" } else if (nodu >= 96) { /* Writing concatenation */ -#line 18308 "" +#line 18373 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 18308 "" +#line 18373 "" i__3[1] = 2, a__1[1] = "wh"; -#line 18308 "" +#line 18373 "" i__3[2] = ldot, a__1[2] = dotq; -#line 18308 "" +#line 18373 "" i__3[3] = lnoten, a__1[3] = noteq; -#line 18308 "" +#line 18373 "" s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79); -#line 18309 "" +#line 18374 "" *lnote = lnoten + 3 + ldot; -#line 18310 "" +#line 18375 "" } else if (nodu >= 48) { /* Writing concatenation */ -#line 18311 "" +#line 18376 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 18311 "" +#line 18376 "" i__5[1] = 1, a__3[1] = "h"; -#line 18311 "" +#line 18376 "" i__5[2] = 1, a__3[2] = udq; -#line 18311 "" +#line 18376 "" i__5[3] = ldot, a__3[3] = dotq; -#line 18311 "" +#line 18376 "" i__5[4] = lnoten, a__3[4] = noteq; -#line 18311 "" +#line 18376 "" s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79); -#line 18312 "" +#line 18377 "" *lnote = lnoten + 3 + ldot; -#line 18313 "" +#line 18378 "" } else if (nodu >= 24) { /* Writing concatenation */ -#line 18314 "" +#line 18379 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 18314 "" +#line 18379 "" i__5[1] = 1, a__3[1] = "q"; -#line 18314 "" +#line 18379 "" i__5[2] = 1, a__3[2] = udq; -#line 18314 "" +#line 18379 "" i__5[3] = ldot, a__3[3] = dotq; -#line 18314 "" +#line 18379 "" i__5[4] = lnoten, a__3[4] = noteq; -#line 18314 "" +#line 18379 "" s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79); -#line 18315 "" +#line 18380 "" *lnote = lnoten + 3 + ldot; -#line 18316 "" +#line 18381 "" } else if (nodu >= 12) { /* Writing concatenation */ -#line 18317 "" +#line 18382 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 18317 "" +#line 18382 "" i__5[1] = 1, a__3[1] = "c"; -#line 18317 "" +#line 18382 "" i__5[2] = 1, a__3[2] = udq; -#line 18317 "" +#line 18382 "" i__5[3] = ldot, a__3[3] = dotq; -#line 18317 "" +#line 18382 "" i__5[4] = lnoten, a__3[4] = noteq; -#line 18317 "" +#line 18382 "" s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79); -#line 18318 "" +#line 18383 "" *lnote = lnoten + 3 + ldot; -#line 18319 "" +#line 18384 "" } else if (nodu >= 6) { /* Writing concatenation */ -#line 18320 "" +#line 18385 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 18320 "" +#line 18385 "" i__5[1] = 2, a__3[1] = "cc"; -#line 18320 "" +#line 18385 "" i__5[2] = 1, a__3[2] = udq; -#line 18320 "" +#line 18385 "" i__5[3] = ldot, a__3[3] = dotq; -#line 18320 "" +#line 18385 "" i__5[4] = lnoten, a__3[4] = noteq; -#line 18320 "" +#line 18385 "" s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79); -#line 18321 "" +#line 18386 "" *lnote = lnoten + 4 + ldot; -#line 18322 "" +#line 18387 "" compoi_1.ispoi = TRUE_; -#line 18323 "" +#line 18388 "" } else { /* Writing concatenation */ -#line 18324 "" +#line 18389 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 18324 "" +#line 18389 "" i__5[1] = 3, a__3[1] = "ccc"; -#line 18324 "" +#line 18389 "" i__5[2] = 1, a__3[2] = udq; -#line 18324 "" +#line 18389 "" i__5[3] = ldot, a__3[3] = dotq; -#line 18324 "" +#line 18389 "" i__5[4] = lnoten, a__3[4] = noteq; -#line 18324 "" +#line 18389 "" s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79); -#line 18325 "" +#line 18390 "" *lnote = lnoten + 5 + ldot; -#line 18326 "" +#line 18391 "" compoi_1.ispoi = TRUE_; -#line 18327 "" +#line 18392 "" } -#line 18328 "" +#line 18393 "" if (*(unsigned char *)dotq == 'm') { /* Need another call to the note, in case the first one has octave shifts */ -#line 18332 "" +#line 18397 "" if (lnoten == 2) { /* Writing concatenation */ -#line 18333 "" +#line 18398 "" i__3[0] = *lnote, a__1[0] = notexq; -#line 18333 "" +#line 18398 "" i__3[1] = 1, a__1[1] = "{"; -#line 18333 "" +#line 18398 "" i__3[2] = 1, a__1[2] = noteq + 1; -#line 18333 "" +#line 18398 "" i__3[3] = 1, a__1[3] = "}"; -#line 18333 "" +#line 18398 "" s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79); -#line 18334 "" +#line 18399 "" *lnote += 3; -#line 18335 "" +#line 18400 "" } else { -#line 18336 "" +#line 18401 "" i__1 = lnoten - 2; /* Writing concatenation */ -#line 18336 "" +#line 18401 "" i__6[0] = *lnote, a__4[0] = notexq; -#line 18336 "" +#line 18401 "" i__6[1] = lnoten - 1 - i__1, a__4[1] = noteq + i__1; -#line 18336 "" +#line 18401 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18337 "" +#line 18402 "" ++(*lnote); -#line 18338 "" +#line 18403 "" } -#line 18339 "" +#line 18404 "" } -#line 18340 "" +#line 18405 "" } -#line 18341 "" +#line 18406 "" } else if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],29)) { /* Blank rest */ /* Writing concatenation */ -#line 18345 "" +#line 18410 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18345 "" +#line 18410 "" i__6[1] = 2, a__4[1] = "sk"; -#line 18345 "" +#line 18410 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18346 "" +#line 18411 "" *lnote = 3; -#line 18347 "" +#line 18412 "" } else { /* Non-blank rest */ -#line 18351 "" +#line 18416 "" *lnote = 0; -#line 18352 "" +#line 18417 "" nole = (nole + 20) % 100 - 20; /* Kluge to get pause symbol for rp: */ -#line 18356 "" +#line 18421 "" if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],19)) { -#line 18356 "" +#line 18421 "" nodu = 64; -#line 18356 "" +#line 18421 "" } -#line 18357 "" +#line 18422 "" if (nodu <= 28) { /* Normal rest < or = double-dotted quarter */ -#line 18361 "" +#line 18426 "" lrest = 3; -#line 18362 "" +#line 18427 "" if (nodu > 14) { /* Writing concatenation */ -#line 18363 "" +#line 18428 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18363 "" +#line 18428 "" i__6[1] = 2, a__4[1] = "qp"; -#line 18363 "" +#line 18428 "" s_cat(restq, a__4, i__6, &c__2, (ftnlen)40); -#line 18364 "" +#line 18429 "" } else if (nodu > 7) { /* Writing concatenation */ -#line 18365 "" +#line 18430 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18365 "" +#line 18430 "" i__6[1] = 2, a__4[1] = "ds"; -#line 18365 "" +#line 18430 "" s_cat(restq, a__4, i__6, &c__2, (ftnlen)40); -#line 18366 "" +#line 18431 "" } else if (nodu > 3) { /* Writing concatenation */ -#line 18367 "" +#line 18432 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18367 "" +#line 18432 "" i__6[1] = 2, a__4[1] = "qs"; -#line 18367 "" +#line 18432 "" s_cat(restq, a__4, i__6, &c__2, (ftnlen)40); -#line 18368 "" +#line 18433 "" } else if (nodu > 1) { /* Writing concatenation */ -#line 18369 "" +#line 18434 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18369 "" +#line 18434 "" i__6[1] = 2, a__4[1] = "hs"; -#line 18369 "" +#line 18434 "" s_cat(restq, a__4, i__6, &c__2, (ftnlen)40); -#line 18370 "" +#line 18435 "" } else { /* Writing concatenation */ -#line 18371 "" +#line 18436 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18371 "" +#line 18436 "" i__6[1] = 3, a__4[1] = "qqs"; -#line 18371 "" +#line 18436 "" s_cat(restq, a__4, i__6, &c__2, (ftnlen)40); -#line 18372 "" +#line 18437 "" lrest = 4; -#line 18373 "" +#line 18438 "" } /* if (2**log2(nodu) .ne. nodu) then */ /* c */ @@ -43391,72 +43515,72 @@ integer ncmidf_(char *clefq, ftnlen clefq_len) /* lrest = 5 */ /* end if */ /* end if */ -#line 18388 "" +#line 18453 "" s_copy(notexq, restq, (ftnlen)79, (ftnlen)40); -#line 18389 "" +#line 18454 "" *lnote = lrest; /* At this point notexq=restq,lnote=lrest are name of rest. Now raise if necc. */ -#line 18393 "" +#line 18458 "" if (nole != 0) { -#line 18394 "" +#line 18459 "" if (abs(nole) < 10) { -#line 18395 "" +#line 18460 "" i__1 = abs(nole) + 48; -#line 18395 "" +#line 18460 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 18395 "" +#line 18460 "" s_copy(noteq, ch__1, (ftnlen)8, (ftnlen)1); -#line 18396 "" +#line 18461 "" lnoten = 1; -#line 18397 "" +#line 18462 "" } else { -#line 18398 "" - s_wsfi(&io___1139); -#line 18398 "" +#line 18463 "" + s_wsfi(&io___1141); +#line 18463 "" i__1 = abs(nole); -#line 18398 "" +#line 18463 "" do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 18398 "" +#line 18463 "" e_wsfi(); -#line 18399 "" +#line 18464 "" lnoten = 2; -#line 18400 "" +#line 18465 "" } -#line 18401 "" +#line 18466 "" if (nole > 0) { /* Writing concatenation */ -#line 18402 "" +#line 18467 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 18402 "" +#line 18467 "" i__5[1] = 5, a__3[1] = "raise"; -#line 18402 "" +#line 18467 "" i__5[2] = lnoten, a__3[2] = noteq; -#line 18402 "" +#line 18467 "" i__5[3] = 1, a__3[3] = all_1.sq; -#line 18402 "" +#line 18467 "" i__5[4] = 9, a__3[4] = "internote"; -#line 18402 "" +#line 18467 "" s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79); -#line 18403 "" +#line 18468 "" } else { /* Writing concatenation */ -#line 18404 "" +#line 18469 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 18404 "" +#line 18469 "" i__5[1] = 5, a__3[1] = "lower"; -#line 18404 "" +#line 18469 "" i__5[2] = lnoten, a__3[2] = noteq; -#line 18404 "" +#line 18469 "" i__5[3] = 1, a__3[3] = all_1.sq; -#line 18404 "" +#line 18469 "" i__5[4] = 9, a__3[4] = "internote"; -#line 18404 "" +#line 18469 "" s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79); -#line 18405 "" +#line 18470 "" } -#line 18406 "" +#line 18471 "" *lnote = lnoten + 16; /* if (2**log2(nodu) .ne. nodu) then */ /* c */ @@ -43466,406 +43590,406 @@ integer ncmidf_(char *clefq, ftnlen clefq_len) /* lnote = lnote+6 */ /* end if */ /* Writing concatenation */ -#line 18414 "" +#line 18479 "" i__6[0] = *lnote, a__4[0] = notexq; -#line 18414 "" +#line 18479 "" i__6[1] = lrest, a__4[1] = restq; -#line 18414 "" +#line 18479 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18415 "" +#line 18480 "" *lnote += lrest; /* if (2**log2(nodu) .ne. nodu) then */ /* notexq = notexq(1:lnote)//'}' */ /* lnote = lnote+1 */ /* end if */ -#line 18420 "" +#line 18485 "" } -#line 18421 "" +#line 18486 "" i__1 = log2_(&nodu); -#line 18421 "" +#line 18486 "" if (pow_ii(&c__2, &i__1) != nodu) { /* Deal with dots (on rests shorter than half rest) */ /* Writing concatenation */ -#line 18425 "" +#line 18490 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18425 "" +#line 18490 "" i__6[1] = 2, a__4[1] = "pt"; -#line 18425 "" +#line 18490 "" s_cat(restq, a__4, i__6, &c__2, (ftnlen)40); -#line 18426 "" +#line 18491 "" lrest = 3; -#line 18427 "" +#line 18492 "" i__1 = log2_(&nodu); -#line 18427 "" +#line 18492 "" if (nodu << 1 > pow_ii(&c__2, &i__1) * 3) { /* Writing concatenation */ -#line 18428 "" +#line 18493 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18428 "" +#line 18493 "" i__6[1] = 3, a__4[1] = "ppt"; -#line 18428 "" +#line 18493 "" s_cat(restq, a__4, i__6, &c__2, (ftnlen)40); -#line 18429 "" +#line 18494 "" lrest = 4; -#line 18430 "" +#line 18495 "" } -#line 18431 "" +#line 18496 "" nole += 4; -#line 18432 "" +#line 18497 "" raisedot = 0.f; /* Tweak dot positions for special cases */ -#line 18436 "" +#line 18501 "" even = (nole + 100) % 2 == 0; /* if (.not.even.and.nodu.gt.8.and. */ /* * (nole.lt.0.or.nole.gt.8)) then */ -#line 18439 "" +#line 18504 "" if (! even && (nole < 0 || nole > 8)) { -#line 18440 "" +#line 18505 "" raisedot = 1.f; -#line 18441 "" +#line 18506 "" } -#line 18442 "" +#line 18507 "" if (nole >= 10 || nole <= -1) { -#line 18443 "" - s_wsfi(&io___1143); -#line 18443 "" +#line 18508 "" + s_wsfi(&io___1145); +#line 18508 "" do_fio(&c__1, (char *)&nole, (ftnlen)sizeof(integer)); -#line 18443 "" +#line 18508 "" e_wsfi(); /* Writing concatenation */ -#line 18444 "" +#line 18509 "" i__3[0] = lrest, a__1[0] = restq; -#line 18444 "" +#line 18509 "" i__3[1] = 1, a__1[1] = "{"; -#line 18444 "" +#line 18509 "" i__3[2] = 2, a__1[2] = numq; -#line 18444 "" +#line 18509 "" i__3[3] = 1, a__1[3] = "}"; -#line 18444 "" +#line 18509 "" s_cat(restq, a__1, i__3, &c__4, (ftnlen)40); -#line 18445 "" +#line 18510 "" lrest += 4; -#line 18446 "" +#line 18511 "" } else { /* Writing concatenation */ -#line 18447 "" +#line 18512 "" i__6[0] = lrest, a__4[0] = restq; -#line 18447 "" +#line 18512 "" i__1 = nole + 48; -#line 18447 "" +#line 18512 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 18447 "" +#line 18512 "" i__6[1] = 1, a__4[1] = ch__1; -#line 18447 "" +#line 18512 "" s_cat(restq, a__4, i__6, &c__2, (ftnlen)40); -#line 18448 "" +#line 18513 "" ++lrest; -#line 18449 "" +#line 18514 "" } -#line 18450 "" +#line 18515 "" if (raisedot > 0.f) { /* Writing concatenation */ -#line 18451 "" +#line 18516 "" i__7[0] = 1, a__5[0] = all_1.sq; -#line 18451 "" +#line 18516 "" i__7[1] = 5, a__5[1] = "raise"; -#line 18451 "" +#line 18516 "" i__7[2] = 1, a__5[2] = all_1.sq; -#line 18451 "" +#line 18516 "" i__7[3] = 9, a__5[3] = "internote"; -#line 18451 "" +#line 18516 "" i__7[4] = 1, a__5[4] = all_1.sq; -#line 18451 "" +#line 18516 "" i__7[5] = 5, a__5[5] = "hbox{"; -#line 18451 "" +#line 18516 "" i__7[6] = lrest, a__5[6] = restq; -#line 18451 "" +#line 18516 "" i__7[7] = 1, a__5[7] = "}"; -#line 18451 "" +#line 18516 "" s_cat(restq, a__5, i__7, &c__8, (ftnlen)40); -#line 18453 "" +#line 18518 "" lrest += 23; -#line 18454 "" +#line 18519 "" } /* Writing concatenation */ -#line 18458 "" +#line 18523 "" i__6[0] = lrest, a__4[0] = restq; -#line 18458 "" +#line 18523 "" i__6[1] = *lnote, a__4[1] = notexq; -#line 18458 "" +#line 18523 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18459 "" +#line 18524 "" *lnote += lrest; -#line 18460 "" +#line 18525 "" } -#line 18461 "" +#line 18526 "" } else { /* Half rest or longer */ -#line 18465 "" +#line 18530 "" if (nole == 0) { /* Half or longer rest is not raised or lowered */ -#line 18469 "" +#line 18534 "" if (nodu <= 56) { /* Writing concatenation */ -#line 18470 "" +#line 18535 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18470 "" +#line 18535 "" i__6[1] = 6, a__4[1] = "hpause"; -#line 18470 "" +#line 18535 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18471 "" +#line 18536 "" *lnote = 7; -#line 18472 "" +#line 18537 "" } else if (nodu <= 112) { -#line 18473 "" +#line 18538 "" if (! bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25], 19) || bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],25)) { /* Writing concatenation */ -#line 18475 "" +#line 18540 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18475 "" +#line 18540 "" i__6[1] = 5, a__4[1] = "pause"; -#line 18475 "" +#line 18540 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18476 "" +#line 18541 "" } else { /* Writing concatenation */ -#line 18477 "" +#line 18542 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18477 "" +#line 18542 "" i__6[1] = 5, a__4[1] = "pausc"; -#line 18477 "" +#line 18542 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18478 "" +#line 18543 "" } -#line 18479 "" +#line 18544 "" *lnote = 6; -#line 18480 "" +#line 18545 "" } else { /* Writing concatenation */ -#line 18481 "" +#line 18546 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18481 "" +#line 18546 "" i__6[1] = 5, a__4[1] = "PAuse"; -#line 18481 "" +#line 18546 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18482 "" +#line 18547 "" *lnote = 6; -#line 18483 "" +#line 18548 "" } -#line 18484 "" +#line 18549 "" i__1 = log2_(&nodu); -#line 18484 "" +#line 18549 "" if (pow_ii(&c__2, &i__1) != nodu) { /* Dotted rest, hpause or longer */ /* Writing concatenation */ -#line 18488 "" +#line 18553 "" i__6[0] = *lnote, a__4[0] = notexq; -#line 18488 "" +#line 18553 "" i__6[1] = 1, a__4[1] = "p"; -#line 18488 "" +#line 18553 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18489 "" +#line 18554 "" ++(*lnote); -#line 18490 "" +#line 18555 "" i__1 = log2_(&nodu); -#line 18490 "" +#line 18555 "" if (nodu << 1 > pow_ii(&c__2, &i__1) * 3) { /* Double dotted long rest */ /* Writing concatenation */ -#line 18494 "" +#line 18559 "" i__6[0] = *lnote, a__4[0] = notexq; -#line 18494 "" +#line 18559 "" i__6[1] = 1, a__4[1] = "p"; -#line 18494 "" +#line 18559 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18495 "" +#line 18560 "" ++(*lnote); -#line 18496 "" +#line 18561 "" } -#line 18497 "" +#line 18562 "" } -#line 18498 "" +#line 18563 "" } else { /* Raised or lowered half or whole rest */ -#line 18502 "" +#line 18567 "" if (nodu == 32) { /* Writing concatenation */ -#line 18503 "" +#line 18568 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18503 "" +#line 18568 "" i__6[1] = 10, a__4[1] = "lifthpause"; -#line 18503 "" +#line 18568 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18504 "" +#line 18569 "" *lnote = 11; -#line 18505 "" +#line 18570 "" } else if (nodu == 48) { /* Writing concatenation */ -#line 18506 "" +#line 18571 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18506 "" +#line 18571 "" i__6[1] = 11, a__4[1] = "lifthpausep"; -#line 18506 "" +#line 18571 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18507 "" +#line 18572 "" *lnote = 12; -#line 18508 "" +#line 18573 "" } else if (nodu == 56) { /* Writing concatenation */ -#line 18509 "" +#line 18574 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18509 "" +#line 18574 "" i__6[1] = 12, a__4[1] = "lifthpausepp"; -#line 18509 "" +#line 18574 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18510 "" +#line 18575 "" *lnote = 13; -#line 18511 "" +#line 18576 "" } else if (nodu == 64) { /* Writing concatenation */ -#line 18512 "" +#line 18577 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18512 "" +#line 18577 "" i__6[1] = 9, a__4[1] = "liftpause"; -#line 18512 "" +#line 18577 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18513 "" +#line 18578 "" *lnote = 10; -#line 18514 "" +#line 18579 "" } else if (nodu == 96) { /* Writing concatenation */ -#line 18515 "" +#line 18580 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18515 "" +#line 18580 "" i__6[1] = 10, a__4[1] = "liftpausep"; -#line 18515 "" +#line 18580 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18516 "" +#line 18581 "" *lnote = 11; -#line 18517 "" +#line 18582 "" } else if (nodu == 112) { /* Writing concatenation */ -#line 18518 "" +#line 18583 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18518 "" +#line 18583 "" i__6[1] = 11, a__4[1] = "liftpausepp"; -#line 18518 "" +#line 18583 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18519 "" +#line 18584 "" *lnote = 12; -#line 18520 "" +#line 18585 "" } else if (nodu == 128) { /* Writing concatenation */ -#line 18521 "" +#line 18586 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18521 "" +#line 18586 "" i__6[1] = 9, a__4[1] = "liftPAuse"; -#line 18521 "" +#line 18586 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18522 "" +#line 18587 "" *lnote = 10; -#line 18523 "" +#line 18588 "" } else { /* Assume dotted double whole rest */ /* Writing concatenation */ -#line 18527 "" +#line 18592 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 18527 "" +#line 18592 "" i__6[1] = 10, a__4[1] = "liftPAusep"; -#line 18527 "" +#line 18592 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18528 "" +#line 18593 "" *lnote = 11; -#line 18529 "" +#line 18594 "" } /* Set up height spec */ -#line 18533 "" +#line 18598 "" i__1 = abs(nole) / 2; -#line 18533 "" +#line 18598 "" nole = i_sign(&i__1, &nole); -#line 18534 "" +#line 18599 "" if (nole <= 9 && nole >= 0) { -#line 18535 "" +#line 18600 "" i__1 = nole + 48; -#line 18535 "" +#line 18600 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 18535 "" +#line 18600 "" s_copy(noteq, ch__1, (ftnlen)8, (ftnlen)1); -#line 18536 "" +#line 18601 "" lnoten = 1; -#line 18537 "" +#line 18602 "" } else { -#line 18538 "" +#line 18603 "" s_copy(noteq, "{", (ftnlen)8, (ftnlen)1); -#line 18539 "" +#line 18604 "" if (nole >= -9) { -#line 18540 "" - s_wsfi(&io___1144); -#line 18540 "" +#line 18605 "" + s_wsfi(&io___1146); +#line 18605 "" do_fio(&c__1, (char *)&nole, (ftnlen)sizeof(integer)); -#line 18540 "" +#line 18605 "" e_wsfi(); -#line 18541 "" +#line 18606 "" lnoten = 3; -#line 18542 "" +#line 18607 "" } else { -#line 18543 "" - s_wsfi(&io___1145); -#line 18543 "" +#line 18608 "" + s_wsfi(&io___1147); +#line 18608 "" do_fio(&c__1, (char *)&nole, (ftnlen)sizeof(integer)); -#line 18543 "" +#line 18608 "" e_wsfi(); -#line 18544 "" +#line 18609 "" lnoten = 4; -#line 18545 "" +#line 18610 "" } /* Writing concatenation */ -#line 18546 "" +#line 18611 "" i__6[0] = lnoten, a__4[0] = noteq; -#line 18546 "" +#line 18611 "" i__6[1] = 1, a__4[1] = "}"; -#line 18546 "" +#line 18611 "" s_cat(noteq, a__4, i__6, &c__2, (ftnlen)8); -#line 18547 "" +#line 18612 "" ++lnoten; -#line 18548 "" +#line 18613 "" } /* Writing concatenation */ -#line 18549 "" +#line 18614 "" i__6[0] = *lnote, a__4[0] = notexq; -#line 18549 "" +#line 18614 "" i__6[1] = lnoten, a__4[1] = noteq; -#line 18549 "" +#line 18614 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 18550 "" +#line 18615 "" *lnote += lnoten; -#line 18551 "" +#line 18616 "" } -#line 18552 "" +#line 18617 "" } -#line 18553 "" +#line 18618 "" } -#line 18554 "" +#line 18619 "" return 0; } /* notex_ */ @@ -43892,98 +44016,98 @@ integer ntindex_(char *line, char *s2q, integer *lenline, ftnlen line_len, /* Returns index(line,s2q) if NOT in TeX string, 0 otherwise */ -#line 18563 "" +#line 18628 "" ndxs2 = i_indx(line, s2q, line_len, s2q_len); -#line 18564 "" +#line 18629 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 18564 "" +#line 18629 "" ndxbs = i_indx(line, ch__1, line_len, (ftnlen)1); -#line 18565 "" +#line 18630 "" if (ndxbs == 0 || ndxs2 < ndxbs) { -#line 18566 "" +#line 18631 "" ret_val = ndxs2; -#line 18567 "" +#line 18632 "" } else { /* There are both bs and s2q, and bs is to the left of sq2. So check bs's to */ /* right of first: End is '\ ', start is ' \' */ -#line 18572 "" +#line 18637 "" len = lenstr_(line, lenline, line_len); -#line 18573 "" +#line 18638 "" intex = TRUE_; -#line 18574 "" +#line 18639 "" i__1 = len; -#line 18574 "" +#line 18639 "" for (ic = ndxbs + 1; ic <= i__1; ++ic) { -#line 18575 "" +#line 18640 "" if (ic == ndxs2) { -#line 18576 "" +#line 18641 "" if (intex) { -#line 18577 "" +#line 18642 "" ret_val = 0; -#line 18578 "" +#line 18643 "" i__2 = ic; -#line 18578 "" +#line 18643 "" ndxs2 = i_indx(line + i__2, s2q, len - i__2, s2q_len) + ic; -#line 18579 "" +#line 18644 "" } else { -#line 18580 "" +#line 18645 "" ret_val = ndxs2; -#line 18581 "" +#line 18646 "" return ret_val; -#line 18582 "" +#line 18647 "" } -#line 18583 "" +#line 18648 "" } else /* if(complicated condition) */ { -#line 18583 "" +#line 18648 "" i__2 = ic; /* Writing concatenation */ -#line 18583 "" +#line 18648 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 18583 "" +#line 18648 "" i__3[0] = 1, a__1[0] = ch__1; -#line 18583 "" +#line 18648 "" i__3[1] = 1, a__1[1] = " "; -#line 18583 "" +#line 18648 "" s_cat(ch__2, a__1, i__3, &c__2, (ftnlen)2); -#line 18583 "" +#line 18648 "" if (intex && s_cmp(line + i__2, ch__2, ic + 2 - i__2, (ftnlen) 2) == 0) { -#line 18584 "" +#line 18649 "" intex = FALSE_; -#line 18585 "" +#line 18650 "" } else /* if(complicated condition) */ { -#line 18585 "" +#line 18650 "" i__2 = ic; /* Writing concatenation */ -#line 18585 "" +#line 18650 "" i__3[0] = 1, a__1[0] = " "; -#line 18585 "" +#line 18650 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 18585 "" +#line 18650 "" i__3[1] = 1, a__1[1] = ch__1; -#line 18585 "" +#line 18650 "" s_cat(ch__2, a__1, i__3, &c__2, (ftnlen)2); -#line 18585 "" +#line 18650 "" if (! intex && s_cmp(line + i__2, ch__2, ic + 2 - i__2, ( ftnlen)2) == 0) { -#line 18587 "" +#line 18652 "" intex = TRUE_; -#line 18588 "" +#line 18653 "" } -#line 18588 "" +#line 18653 "" } -#line 18588 "" +#line 18653 "" } -#line 18589 "" +#line 18654 "" /* L1: */ -#line 18589 "" +#line 18654 "" } -#line 18590 "" +#line 18655 "" } -#line 18591 "" +#line 18656 "" return ret_val; } /* ntindex_ */ @@ -44010,56 +44134,56 @@ integer ntindex_(char *line, char *s2q, integer *lenline, ftnlen line_len, /* This appends to notexq e.g. '\ibbbu1' */ -#line 18602 "" +#line 18667 "" if (*n >= 5) { -#line 18602 "" +#line 18667 "" combbm_1.isbbm = TRUE_; -#line 18602 "" +#line 18667 "" } -#line 18603 "" +#line 18668 "" if (*lnote > 0) { /* Writing concatenation */ -#line 18604 "" +#line 18669 "" i__1[0] = *lnote, a__1[0] = notexq; -#line 18604 "" +#line 18669 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 18604 "" +#line 18669 "" i__1[1] = 1, a__1[1] = ch__1; -#line 18604 "" +#line 18669 "" i__1[2] = 1, a__1[2] = char1q; -#line 18604 "" +#line 18669 "" s_cat(notexq, a__1, i__1, &c__3, (ftnlen)79); -#line 18605 "" +#line 18670 "" } else { /* Writing concatenation */ -#line 18606 "" +#line 18671 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 18606 "" +#line 18671 "" i__2[0] = 1, a__2[0] = ch__1; -#line 18606 "" +#line 18671 "" i__2[1] = 1, a__2[1] = char1q; -#line 18606 "" +#line 18671 "" s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79); -#line 18607 "" +#line 18672 "" } -#line 18608 "" +#line 18673 "" *lnote += 2; -#line 18609 "" +#line 18674 "" i__3 = *n; -#line 18609 "" +#line 18674 "" for (im = 1; im <= i__3; ++im) { /* Writing concatenation */ -#line 18610 "" +#line 18675 "" i__2[0] = *lnote, a__2[0] = notexq; -#line 18610 "" +#line 18675 "" i__2[1] = 1, a__2[1] = "b"; -#line 18610 "" +#line 18675 "" s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79); -#line 18611 "" +#line 18676 "" ++(*lnote); -#line 18612 "" +#line 18677 "" /* L3: */ -#line 18612 "" +#line 18677 "" } /* add the number, 0 if 12 */ @@ -44067,36 +44191,36 @@ integer ntindex_(char *line, char *s2q, integer *lenline, ftnlen line_len, /* 5/25/08 Allow >12 */ /* call istring(mod(iv,12),tempq,len) */ -#line 18619 "" +#line 18684 "" if (*iv < 24) { -#line 18620 "" +#line 18685 "" istring_(iv, tempq, &len, (ftnlen)4); -#line 18621 "" +#line 18686 "" } else if (*iv == 24) { -#line 18622 "" +#line 18687 "" *(unsigned char *)tempq = '0'; -#line 18623 "" +#line 18688 "" len = 1; -#line 18624 "" +#line 18689 "" } else { -#line 18625 "" +#line 18690 "" printl_("Sorry, too man open beams", (ftnlen)25); -#line 18626 "" +#line 18691 "" stop1_(); -#line 18627 "" +#line 18692 "" } /* Writing concatenation */ -#line 18628 "" +#line 18693 "" i__1[0] = *lnote, a__1[0] = notexq; -#line 18628 "" +#line 18693 "" i__1[1] = 1, a__1[1] = ulqq; -#line 18628 "" +#line 18693 "" i__1[2] = len, a__1[2] = tempq; -#line 18628 "" +#line 18693 "" s_cat(notexq, a__1, i__1, &c__3, (ftnlen)79); -#line 18629 "" +#line 18694 "" *lnote = *lnote + 1 + len; -#line 18630 "" +#line 18695 "" return 0; } /* ntrbbb_ */ @@ -44114,27 +44238,27 @@ integer numclef_(char *clefq, ftnlen clefq_len) /* 7 f 9 */ /* 8 0 */ -#line 18640 "" +#line 18705 "" if (*(unsigned char *)clefq < 55) { /* if (ichar(clefq) .le. 55) then */ -#line 18642 "" +#line 18707 "" ret_val = *(unsigned char *)clefq - 48; /* if (numclef .eq. 7) numclef = 9 */ -#line 18644 "" +#line 18709 "" } else if (*(unsigned char *)clefq == '7') { -#line 18645 "" +#line 18710 "" ret_val = 9; -#line 18646 "" +#line 18711 "" } else if (*(unsigned char *)clefq == '8') { -#line 18647 "" +#line 18712 "" ret_val = 0; -#line 18648 "" +#line 18713 "" } else { -#line 18649 "" +#line 18714 "" ret_val = i_indx("tsmanrbxxf", clefq, (ftnlen)10, (ftnlen)1) - 1; -#line 18650 "" +#line 18715 "" } -#line 18651 "" +#line 18716 "" return ret_val; } /* numclef_ */ @@ -44156,121 +44280,121 @@ integer numclef_(char *clefq, ftnlen clefq_len) extern /* Character */ VOID chax_(char *, ftnlen, integer *); static integer nfmt; -#line 18655 "" +#line 18720 "" r__1 = *i__ + .5f; -#line 18655 "" +#line 18720 "" nfmt = r_lg10(&r__1) + 2; -#line 18656 "" +#line 18721 "" if (*jlast + 5 + nfmt < 80) { -#line 18657 "" +#line 18722 "" ci__1.cierr = 0; -#line 18657 "" +#line 18722 "" ci__1.ciunit = 6; /* Writing concatenation */ -#line 18657 "" +#line 18722 "" i__1[0] = 5, a__1[0] = "(a5,i"; -#line 18657 "" +#line 18722 "" i__2 = nfmt + 48; -#line 18657 "" +#line 18722 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 18657 "" +#line 18722 "" i__1[1] = 1, a__1[1] = ch__2; -#line 18657 "" +#line 18722 "" i__1[2] = 3, a__1[2] = ",$)"; -#line 18657 "" +#line 18722 "" ci__1.cifmt = (s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)9), ch__1); -#line 18657 "" +#line 18722 "" s_wsfe(&ci__1); -#line 18657 "" +#line 18722 "" do_fio(&c__1, " Bar", (ftnlen)5); -#line 18657 "" +#line 18722 "" do_fio(&c__1, (char *)&(*i__), (ftnlen)sizeof(integer)); -#line 18657 "" +#line 18722 "" e_wsfe(); -#line 18658 "" +#line 18723 "" ci__1.cierr = 0; -#line 18658 "" +#line 18723 "" ci__1.ciunit = 15; /* Writing concatenation */ -#line 18658 "" +#line 18723 "" i__1[0] = 5, a__1[0] = "(a5,i"; -#line 18658 "" +#line 18723 "" i__2 = nfmt + 48; -#line 18658 "" +#line 18723 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 18658 "" +#line 18723 "" i__1[1] = 1, a__1[1] = ch__2; -#line 18658 "" +#line 18723 "" i__1[2] = 3, a__1[2] = ",$)"; -#line 18658 "" +#line 18723 "" ci__1.cifmt = (s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)9), ch__1); -#line 18658 "" +#line 18723 "" s_wsfe(&ci__1); -#line 18658 "" +#line 18723 "" do_fio(&c__1, " Bar", (ftnlen)5); -#line 18658 "" +#line 18723 "" do_fio(&c__1, (char *)&(*i__), (ftnlen)sizeof(integer)); -#line 18658 "" +#line 18723 "" e_wsfe(); -#line 18659 "" +#line 18724 "" *jlast = *jlast + 5 + nfmt; -#line 18660 "" +#line 18725 "" } else { -#line 18661 "" +#line 18726 "" ci__1.cierr = 0; -#line 18661 "" +#line 18726 "" ci__1.ciunit = 6; /* Writing concatenation */ -#line 18661 "" +#line 18726 "" i__1[0] = 7, a__1[0] = "(/,a5,i"; -#line 18661 "" +#line 18726 "" i__2 = nfmt + 48; -#line 18661 "" +#line 18726 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 18661 "" +#line 18726 "" i__1[1] = 1, a__1[1] = ch__2; -#line 18661 "" +#line 18726 "" i__1[2] = 3, a__1[2] = ",$)"; -#line 18661 "" +#line 18726 "" ci__1.cifmt = (s_cat(ch__3, a__1, i__1, &c__3, (ftnlen)11), ch__3); -#line 18661 "" +#line 18726 "" s_wsfe(&ci__1); -#line 18661 "" +#line 18726 "" do_fio(&c__1, " Bar", (ftnlen)5); -#line 18661 "" +#line 18726 "" do_fio(&c__1, (char *)&(*i__), (ftnlen)sizeof(integer)); -#line 18661 "" +#line 18726 "" e_wsfe(); -#line 18662 "" +#line 18727 "" ci__1.cierr = 0; -#line 18662 "" +#line 18727 "" ci__1.ciunit = 15; /* Writing concatenation */ -#line 18662 "" +#line 18727 "" i__1[0] = 7, a__1[0] = "(/,a5,i"; -#line 18662 "" +#line 18727 "" i__2 = nfmt + 48; -#line 18662 "" +#line 18727 "" chax_(ch__2, (ftnlen)1, &i__2); -#line 18662 "" +#line 18727 "" i__1[1] = 1, a__1[1] = ch__2; -#line 18662 "" +#line 18727 "" i__1[2] = 3, a__1[2] = ",$)"; -#line 18662 "" +#line 18727 "" ci__1.cifmt = (s_cat(ch__3, a__1, i__1, &c__3, (ftnlen)11), ch__3); -#line 18662 "" +#line 18727 "" s_wsfe(&ci__1); -#line 18662 "" +#line 18727 "" do_fio(&c__1, " Bar", (ftnlen)5); -#line 18662 "" +#line 18727 "" do_fio(&c__1, (char *)&(*i__), (ftnlen)sizeof(integer)); -#line 18662 "" +#line 18727 "" e_wsfe(); -#line 18663 "" +#line 18728 "" *jlast = nfmt + 5; -#line 18664 "" +#line 18729 "" } -#line 18665 "" +#line 18730 "" return 0; } /* outbar_ */ @@ -44361,32 +44485,32 @@ integer numclef_(char *clefq, ftnlen clefq_len) static integer instnow, nsystpp; /* Fortran I/O blocks */ - static cilist io___1158 = { 0, 6, 0, 0, 0 }; - static cilist io___1159 = { 0, 6, 0, 0, 0 }; - static cilist io___1160 = { 0, 15, 0, "(a)", 0 }; - static cilist io___1161 = { 0, 19, 0, "(i6)", 0 }; - static cilist io___1173 = { 0, 6, 0, 0, 0 }; - static cilist io___1177 = { 0, 6, 0, 0, 0 }; - static cilist io___1183 = { 0, 15, 0, "(/,a20,i4,a1,i4)", 0 }; - static cilist io___1184 = { 0, 6, 0, "(/,a20,i4,a1,i4)", 0 }; - static cilist io___1189 = { 0, 6, 0, 0, 0 }; + static cilist io___1160 = { 0, 6, 0, 0, 0 }; + static cilist io___1161 = { 0, 6, 0, 0, 0 }; + static cilist io___1162 = { 0, 15, 0, "(a)", 0 }; + static cilist io___1163 = { 0, 19, 0, "(i6)", 0 }; + static cilist io___1175 = { 0, 6, 0, 0, 0 }; + static cilist io___1179 = { 0, 6, 0, 0, 0 }; + static cilist io___1185 = { 0, 15, 0, "(/,a20,i4,a1,i4)", 0 }; + static cilist io___1186 = { 0, 6, 0, "(/,a20,i4,a1,i4)", 0 }; static cilist io___1191 = { 0, 6, 0, 0, 0 }; - static cilist io___1192 = { 0, 6, 0, 0, 0 }; static cilist io___1193 = { 0, 6, 0, 0, 0 }; - static cilist io___1194 = { 0, 15, 0, "(a,2i5)", 0 }; - static cilist io___1195 = { 0, 15, 0, "(a)", 0 }; - static cilist io___1197 = { 0, 12, 0, "(a)", 0 }; - static cilist io___1198 = { 0, 12, 0, 0, 0 }; - static cilist io___1199 = { 0, 12, 0, "(6f10.5/f10.5,3i5)", 0 }; + static cilist io___1194 = { 0, 6, 0, 0, 0 }; + static cilist io___1195 = { 0, 6, 0, 0, 0 }; + static cilist io___1196 = { 0, 15, 0, "(a,2i5)", 0 }; + static cilist io___1197 = { 0, 15, 0, "(a)", 0 }; + static cilist io___1199 = { 0, 12, 0, "(a)", 0 }; static cilist io___1200 = { 0, 12, 0, 0, 0 }; - static cilist io___1219 = { 0, 12, 0, 0, 0 }; - static cilist io___1234 = { 0, 12, 0, "(i5)", 0 }; - static cilist io___1252 = { 0, 12, 0, "(1pe12.5/i5,5e12.3)", 0 }; - static cilist io___1253 = { 0, 13, 0, "(i5)", 0 }; - static cilist io___1254 = { 0, 6, 0, "(/,a)", 0 }; - static cilist io___1255 = { 0, 6, 0, 0, 0 }; - static cilist io___1256 = { 0, 15, 0, "(/,a)", 0 }; - static cilist io___1257 = { 0, 15, 0, "()", 0 }; + static cilist io___1201 = { 0, 12, 0, "(6f10.5/f10.5,3i5)", 0 }; + static cilist io___1202 = { 0, 12, 0, 0, 0 }; + static cilist io___1221 = { 0, 12, 0, 0, 0 }; + static cilist io___1236 = { 0, 12, 0, "(i5)", 0 }; + static cilist io___1254 = { 0, 12, 0, "(1pe12.5/i5,5e12.3)", 0 }; + static cilist io___1255 = { 0, 13, 0, "(i5)", 0 }; + static cilist io___1256 = { 0, 6, 0, "(/,a)", 0 }; + static cilist io___1257 = { 0, 6, 0, 0, 0 }; + static cilist io___1258 = { 0, 15, 0, "(/,a)", 0 }; + static cilist io___1259 = { 0, 15, 0, "()", 0 }; /* ccccccccccccccccccccccccccccccccccccccccccccccc */ @@ -44420,355 +44544,355 @@ integer numclef_(char *clefq, ftnlen clefq_len) /* cccccccccccccccccccccccccccccccccc */ /* * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks) */ /* logical mrecord,mplay,endmac,gotclef,cstuplet */ -#line 18748 "" +#line 18813 "" /* Parameter adjustments */ -#line 18748 "" +#line 18813 "" --nbarss; -#line 18748 "" +#line 18813 "" -#line 18748 "" +#line 18813 "" /* Function Body */ -#line 18750 "" +#line 18815 "" commus_1.whead20 = .3f; -#line 18751 "" +#line 18816 "" if (! (*optimize)) { -#line 18752 "" - s_wsle(&io___1158); -#line 18752 "" +#line 18817 "" + s_wsle(&io___1160); +#line 18817 "" e_wsle(); -#line 18753 "" - s_wsle(&io___1159); -#line 18753 "" +#line 18818 "" + s_wsle(&io___1161); +#line 18818 "" do_lio(&c__9, &c__1, "Starting first PMX pass", (ftnlen)23); -#line 18753 "" +#line 18818 "" e_wsle(); -#line 18754 "" - s_wsfe(&io___1160); -#line 18754 "" +#line 18819 "" + s_wsfe(&io___1162); +#line 18819 "" do_fio(&c__1, " Starting first PMX pass", (ftnlen)24); -#line 18754 "" +#line 18819 "" e_wsfe(); -#line 18755 "" +#line 18820 "" } -#line 18756 "" +#line 18821 "" if (*isfirst) { -#line 18757 "" +#line 18822 "" o__1.oerr = 0; -#line 18757 "" +#line 18822 "" o__1.ounit = 19; -#line 18757 "" +#line 18822 "" o__1.ofnmlen = 11; -#line 18757 "" +#line 18822 "" o__1.ofnm = "pmxaerr.dat"; -#line 18757 "" +#line 18822 "" o__1.orl = 0; -#line 18757 "" +#line 18822 "" o__1.osta = 0; -#line 18757 "" +#line 18822 "" o__1.oacc = 0; -#line 18757 "" +#line 18822 "" o__1.ofm = 0; -#line 18757 "" +#line 18822 "" o__1.oblnk = 0; -#line 18757 "" +#line 18822 "" f_open(&o__1); -#line 18758 "" - s_wsfe(&io___1161); -#line 18758 "" +#line 18823 "" + s_wsfe(&io___1163); +#line 18823 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 18758 "" +#line 18823 "" e_wsfe(); -#line 18759 "" +#line 18824 "" cl__1.cerr = 0; -#line 18759 "" +#line 18824 "" cl__1.cunit = 19; -#line 18759 "" +#line 18824 "" cl__1.csta = 0; -#line 18759 "" +#line 18824 "" f_clos(&cl__1); -#line 18760 "" +#line 18825 "" } -#line 18761 "" +#line 18826 "" if (! (*optimize)) { -#line 18761 "" +#line 18826 "" jprntb = 81; -#line 18761 "" +#line 18826 "" } -#line 18762 "" +#line 18827 "" commac_1.macuse = 0; -#line 18763 "" +#line 18828 "" comkeys_1.ornrpt = FALSE_; -#line 18764 "" +#line 18829 "" comkeys_1.stickys = FALSE_; -#line 18765 "" +#line 18830 "" commac_1.mrecord = FALSE_; -#line 18766 "" +#line 18831 "" commac_1.mplay = FALSE_; -#line 18767 "" +#line 18832 "" c1omget_1.lastchar = FALSE_; -#line 18768 "" +#line 18833 "" comnvst_2.novshrinktop = FALSE_; -#line 18769 "" +#line 18834 "" cstuplet = FALSE_; -#line 18770 "" +#line 18835 "" comslur_1.fontslur = TRUE_; -#line 18771 "" +#line 18836 "" comligfont_1.isligfont = FALSE_; -#line 18772 "" +#line 18837 "" fulltrans = FALSE_; -#line 18773 "" +#line 18838 "" for (c1omnotes_1.ibarcnt = 1; c1omnotes_1.ibarcnt <= 3999; ++c1omnotes_1.ibarcnt) { -#line 18774 "" +#line 18839 "" c1omnotes_1.udsp[c1omnotes_1.ibarcnt - 1] = 0.f; -#line 18775 "" +#line 18840 "" c1omnotes_1.wminnh[c1omnotes_1.ibarcnt - 1] = -1.f; -#line 18776 "" +#line 18841 "" /* L42: */ -#line 18776 "" +#line 18841 "" } /* Initialize input buffer */ -#line 18780 "" +#line 18845 "" c1omget_1.lenbuf0 = inbuff_1.ipbuf; -#line 18781 "" +#line 18846 "" inbuff_1.ipbuf = 0; -#line 18782 "" +#line 18847 "" inbuff_1.ilbuf = 1; -#line 18783 "" +#line 18848 "" g1etset_(&a1ll_2.nv, &comkeys_1.noinst, &a1ll_2.mtrnuml, &mtrdenl, & mtrnmp, &mtrdnp, &xmtrnum0, comkeys_1.newkey, &compage_1.npages, & compage_1.nsyst, &commus_1.musize, &bottreb); /* Set up list of instrument numbers (iv) */ -#line 18788 "" +#line 18853 "" ivnow = 0; -#line 18789 "" +#line 18854 "" i__1 = comkeys_1.noinst; -#line 18789 "" +#line 18854 "" for (instnow = 1; instnow <= i__1; ++instnow) { -#line 18790 "" +#line 18855 "" i__2 = c1omget_1.nsperi[instnow - 1]; -#line 18790 "" +#line 18855 "" for (iscount = 1; iscount <= i__2; ++iscount) { -#line 18791 "" +#line 18856 "" ++ivnow; -#line 18792 "" +#line 18857 "" cominsttrans_1.instno[ivnow - 1] = instnow; -#line 18793 "" +#line 18858 "" /* L14: */ -#line 18793 "" +#line 18858 "" } -#line 18794 "" +#line 18859 "" /* L13: */ -#line 18794 "" +#line 18859 "" } /* Save initial meter for midi */ -#line 18798 "" +#line 18863 "" if (! (*isfirst) && compage_1.npages == 0) { -#line 18799 "" - s_wsle(&io___1173); -#line 18799 "" +#line 18864 "" + s_wsle(&io___1175); +#line 18864 "" do_lio(&c__9, &c__1, "Sorry, must have npages>0 for optimization.", ( ftnlen)43); -#line 18799 "" +#line 18864 "" e_wsle(); -#line 18800 "" +#line 18865 "" stop1_(); -#line 18801 "" +#line 18866 "" } -#line 18802 "" +#line 18867 "" *nsyout = compage_1.nsyst; /* isig1 will be changed in getnote if there is a transposition */ -#line 18806 "" +#line 18871 "" comkeys_1.isig1 = comkeys_1.newkey[0]; -#line 18807 "" +#line 18872 "" if (compage_1.npages > compage_1.nsyst) { -#line 18808 "" +#line 18873 "" printl_("npages > nsyst in input. Please fix the input.", (ftnlen)47) ; -#line 18809 "" +#line 18874 "" stop1_(); -#line 18810 "" +#line 18875 "" } /* fbar = afterruleskip/elemskip */ /* apt = width of small accidental + space in points (= 6 at 20pt) =wheadpt */ -#line 18815 "" +#line 18880 "" c1ommvl_1.fbar = 1.f; -#line 18816 "" +#line 18881 "" c1omnotes_1.wheadpt = commus_1.whead20 * commus_1.musize; -#line 18817 "" +#line 18882 "" ifig = 0; -#line 18818 "" +#line 18883 "" compage_1.usefig = TRUE_; -#line 18819 "" +#line 18884 "" lenbeat = i1fnodur_(&mtrdenl, "x", (ftnlen)1); -#line 18820 "" +#line 18885 "" lenmult = 1; -#line 18821 "" +#line 18886 "" if (mtrdenl == 2) { -#line 18822 "" +#line 18887 "" lenbeat = 16; -#line 18823 "" +#line 18888 "" lenmult = 2; -#line 18824 "" +#line 18889 "" } -#line 18825 "" +#line 18890 "" a1ll_2.lenbr1 = lenmult * a1ll_2.mtrnuml * lenbeat; -#line 18826 "" +#line 18891 "" r__1 = lenmult * xmtrnum0 * lenbeat; -#line 18826 "" +#line 18891 "" a1ll_2.lenbr0 = i_nint(&r__1); -#line 18827 "" +#line 18892 "" a1ll_2.mtrnuml = 0; -#line 18828 "" +#line 18893 "" if (a1ll_2.lenbr0 != 0) { -#line 18829 "" +#line 18894 "" c1omnotes_1.ibaroff = 1; -#line 18830 "" +#line 18895 "" a1ll_2.lenbar = a1ll_2.lenbr0; -#line 18831 "" +#line 18896 "" } else { -#line 18832 "" +#line 18897 "" c1omnotes_1.ibaroff = 0; -#line 18833 "" +#line 18898 "" a1ll_2.lenbar = a1ll_2.lenbr1; -#line 18834 "" +#line 18899 "" } -#line 18835 "" +#line 18900 "" c1omnotes_1.ibarcnt = 0; -#line 18836 "" +#line 18901 "" c1omnotes_1.nptr[0] = 1; -#line 18837 "" +#line 18902 "" a1ll_2.iccount = 128; -#line 18838 "" +#line 18903 "" compage_1.nmovbrk = 0; -#line 18839 "" +#line 18904 "" compage_1.nflb = 0; -#line 18840 "" +#line 18905 "" compage_1.nfpb = 0; -#line 18841 "" +#line 18906 "" compage_1.ipagfpb[0] = 1; -#line 18842 "" +#line 18907 "" compage_1.isysfpb[0] = 1; -#line 18843 "" +#line 18908 "" compage_1.ibarflb[0] = 1; -#line 18844 "" +#line 18909 "" compage_1.isysflb[0] = 1; -#line 18845 "" +#line 18910 "" compage_1.nistaff[0] = a1ll_2.nv - 1; /* Check for pmx.mod */ -#line 18849 "" +#line 18914 "" c1omget_1.linesinpmxmod = 0; /* line1pmxmod = ilbuf */ -#line 18851 "" +#line 18916 "" getpmxmod_(&c_true, " ", (ftnlen)1); -#line 18852 "" +#line 18917 "" if (! (*isfirst) && c1omget_1.linesinpmxmod > 0) { -#line 18853 "" - s_wsle(&io___1177); -#line 18853 "" +#line 18918 "" + s_wsle(&io___1179); +#line 18918 "" do_lio(&c__9, &c__1, "Sorry, cannot optimize if there is a pmx.mod f"\ "ile", (ftnlen)49); -#line 18853 "" +#line 18918 "" e_wsle(); -#line 18854 "" +#line 18919 "" stop1_(); -#line 18855 "" +#line 18920 "" } /* Initialize for loop over lines */ -#line 18859 "" +#line 18924 "" comkeys_1.nkeys = 1; -#line 18860 "" +#line 18925 "" comkeys_1.ibrkch[0] = 1; -#line 18861 "" +#line 18926 "" comkeys_1.mbrestsav = 0; -#line 18862 "" +#line 18927 "" comkeys_1.shifton = FALSE_; -#line 18863 "" +#line 18928 "" a1ll_2.firstline = TRUE_; -#line 18864 "" +#line 18929 "" a1ll_2.newmeter = FALSE_; -#line 18865 "" +#line 18930 "" c1omget_1.ihead = 0; -#line 18866 "" +#line 18931 "" c1omget_1.isheadr = FALSE_; /* gotclef = .false. */ -#line 18868 "" +#line 18933 "" comkeys_1.idsig = 0; -#line 18869 "" +#line 18934 "" c1omnotes_1.iddot = 0; -#line 18870 "" +#line 18935 "" compage_1.fintstf = -1.f; -#line 18871 "" +#line 18936 "" compage_1.gintstf = 1.f; -#line 18872 "" +#line 18937 "" listcresc = 0; -#line 18873 "" +#line 18938 "" listdecresc = 0; -#line 18874 "" +#line 18939 "" L30: -#line 18874 "" +#line 18939 "" loop = TRUE_; -#line 18875 "" +#line 18940 "" comkeys_1.iskchb = FALSE_; -#line 18876 "" +#line 18941 "" c1omget_1.issegno = FALSE_; -#line 18877 "" +#line 18942 "" a1ll_2.nbars = 0; -#line 18878 "" +#line 18943 "" c1omnotes_1.ibarmbr = 0; -#line 18879 "" +#line 18944 "" i__1 = a1ll_2.nv; -#line 18879 "" +#line 18944 "" for (a1ll_2.iv = 1; a1ll_2.iv <= i__1; ++a1ll_2.iv) { -#line 18880 "" +#line 18945 "" c1ommvl_1.nvmx[a1ll_2.iv - 1] = 1; -#line 18881 "" +#line 18946 "" c1ommvl_1.ivmx[a1ll_2.iv - 1] = a1ll_2.iv; -#line 18882 "" +#line 18947 "" a1ll_2.itsofar[a1ll_2.iv - 1] = 0; -#line 18883 "" +#line 18948 "" a1ll_2.nnl[a1ll_2.iv - 1] = 0; -#line 18884 "" +#line 18949 "" for (j = 1; j <= 200; ++j) { -#line 18885 "" +#line 18950 "" a1ll_2.rest[a1ll_2.iv + j * 24 - 25] = FALSE_; -#line 18886 "" +#line 18951 "" c1ommvl_1.nacc[a1ll_2.iv + j * 24 - 25] = 0.f; -#line 18887 "" +#line 18952 "" /* L5: */ -#line 18887 "" +#line 18952 "" } -#line 18888 "" +#line 18953 "" /* L4: */ -#line 18888 "" +#line 18953 "" } -#line 18889 "" +#line 18954 "" a1ll_2.iv = 1; -#line 18890 "" +#line 18955 "" c1ommvl_1.ivx = 1; -#line 18891 "" +#line 18956 "" c1omget_1.fbon = FALSE_; -#line 18892 "" +#line 18957 "" comkeys_1.barend = FALSE_; -#line 18893 "" +#line 18958 "" c1omget_1.isvolt = FALSE_; -#line 18894 "" +#line 18959 "" L2: -#line 18894 "" +#line 18959 "" if (loop) { /* Within this short loop, nv voices are filled up for the duration of a block. */ @@ -44776,525 +44900,525 @@ L2: /* nodur(..),rest(..). nnl will later be */ /* increased and things slid around as accidental skips are added. */ -#line 18901 "" +#line 18966 "" g1etnote_(&loop, &ifig, optimize, &fulltrans); -#line 18902 "" +#line 18967 "" if (c1omget_1.lastchar) { -#line 18902 "" +#line 18967 "" goto L20; -#line 18902 "" +#line 18967 "" } -#line 18903 "" +#line 18968 "" goto L2; -#line 18904 "" +#line 18969 "" } -#line 18905 "" +#line 18970 "" if (comkeys_1.mbrestsav > 0) { -#line 18906 "" +#line 18971 "" printl_(" ", (ftnlen)1); -#line 18907 "" +#line 18972 "" printl_("You must enter the same multibar rest in ALL parts", (ftnlen) 50); -#line 18909 "" +#line 18974 "" stop1_(); -#line 18910 "" +#line 18975 "" } -#line 18911 "" +#line 18976 "" i__1 = a1ll_2.nbars; -#line 18911 "" +#line 18976 "" for (a1ll_2.ibar = 1; a1ll_2.ibar <= i__1; ++a1ll_2.ibar) { -#line 18912 "" +#line 18977 "" ++c1omnotes_1.ibarcnt; /* The following is just a signal to start a new bar when cataloging spaces */ /* for catspace(...) */ -#line 18917 "" +#line 18982 "" c1omnotes_1.nptr[c1omnotes_1.ibarcnt] = c1omnotes_1.nptr[ c1omnotes_1.ibarcnt - 1]; -#line 18918 "" +#line 18983 "" newmb[c1omnotes_1.ibarcnt - 1] = FALSE_; -#line 18919 "" +#line 18984 "" if (a1ll_2.newmeter && a1ll_2.ibar == 1) { -#line 18919 "" +#line 18984 "" newmb[c1omnotes_1.ibarcnt - 1] = TRUE_; -#line 18919 "" +#line 18984 "" } /* Above is only for spacing calcs later on. Remember new meter can only occur */ /* at START of a new input line (ibar = 1) */ -#line 18924 "" +#line 18989 "" if (a1ll_2.ibar != c1omnotes_1.ibarmbr) { -#line 18925 "" +#line 18990 "" if (! (*optimize)) { -#line 18925 "" +#line 18990 "" i__2 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff; -#line 18925 "" +#line 18990 "" outbar_(&i__2, &jprntb); -#line 18925 "" +#line 18990 "" } -#line 18926 "" +#line 18991 "" } else { -#line 18927 "" +#line 18992 "" if (! (*optimize)) { -#line 18928 "" - s_wsfe(&io___1183); -#line 18928 "" +#line 18993 "" + s_wsfe(&io___1185); +#line 18993 "" do_fio(&c__1, " Multibar rest, bars", (ftnlen)20); -#line 18928 "" +#line 18993 "" i__2 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff; -#line 18928 "" +#line 18993 "" do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer)); -#line 18928 "" +#line 18993 "" do_fio(&c__1, "-", (ftnlen)1); -#line 18928 "" +#line 18993 "" i__3 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + c1omnotes_1.mbrest - 1; -#line 18928 "" +#line 18993 "" do_fio(&c__1, (char *)&i__3, (ftnlen)sizeof(integer)); -#line 18928 "" +#line 18993 "" e_wsfe(); -#line 18930 "" - s_wsfe(&io___1184); -#line 18930 "" +#line 18995 "" + s_wsfe(&io___1186); +#line 18995 "" do_fio(&c__1, " Multibar rest, bars", (ftnlen)20); -#line 18930 "" +#line 18995 "" i__2 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff; -#line 18930 "" +#line 18995 "" do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer)); -#line 18930 "" +#line 18995 "" do_fio(&c__1, "-", (ftnlen)1); -#line 18930 "" +#line 18995 "" i__3 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + c1omnotes_1.mbrest - 1; -#line 18930 "" +#line 18995 "" do_fio(&c__1, (char *)&i__3, (ftnlen)sizeof(integer)); -#line 18930 "" +#line 18995 "" e_wsfe(); -#line 18932 "" +#line 18997 "" jprntb = 0; -#line 18933 "" +#line 18998 "" } -#line 18934 "" +#line 18999 "" c1omnotes_1.ibaroff = c1omnotes_1.ibaroff - c1omnotes_1.mbrest + 1; -#line 18935 "" +#line 19000 "" } -#line 18936 "" +#line 19001 "" if (a1ll_2.firstline && a1ll_2.lenbr0 != 0) { -#line 18937 "" +#line 19002 "" if (a1ll_2.ibar == 1) { -#line 18938 "" +#line 19003 "" a1ll_2.lenbar = a1ll_2.lenbr0; -#line 18939 "" +#line 19004 "" } else { -#line 18940 "" +#line 19005 "" a1ll_2.lenbar = a1ll_2.lenbr1; -#line 18941 "" +#line 19006 "" } -#line 18942 "" +#line 19007 "" } -#line 18943 "" +#line 19008 "" if (a1ll_2.ibar > 1) { /* For bars after first, slide all stuff down to beginning of arrays */ -#line 18947 "" +#line 19012 "" i__2 = a1ll_2.nv; -#line 18947 "" +#line 19012 "" for (a1ll_2.iv = 1; a1ll_2.iv <= i__2; ++a1ll_2.iv) { -#line 18948 "" +#line 19013 "" i__3 = c1ommvl_1.nvmx[a1ll_2.iv - 1]; -#line 18948 "" +#line 19013 "" for (kv = 1; kv <= i__3; ++kv) { -#line 18949 "" +#line 19014 "" c1ommvl_1.ivx = c1ommvl_1.ivmx[a1ll_2.iv + kv * 24 - 25]; -#line 18950 "" +#line 19015 "" ioff = a1ll_2.nib[c1ommvl_1.ivx + (a1ll_2.ibar - 1) * 24 - 25]; -#line 18951 "" +#line 19016 "" i__4 = a1ll_2.nib[c1ommvl_1.ivx + a1ll_2.ibar * 24 - 25] - ioff; -#line 18951 "" +#line 19016 "" for (ip = 1; ip <= i__4; ++ip) { -#line 18952 "" +#line 19017 "" a1ll_2.nodur[c1ommvl_1.ivx + ip * 24 - 25] = a1ll_2.nodur[c1ommvl_1.ivx + (ip + ioff) * 24 - 25]; -#line 18953 "" +#line 19018 "" a1ll_2.rest[c1ommvl_1.ivx + ip * 24 - 25] = a1ll_2.rest[c1ommvl_1.ivx + (ip + ioff) * 24 - 25]; -#line 18954 "" +#line 19019 "" c1ommvl_1.nacc[c1ommvl_1.ivx + ip * 24 - 25] = c1ommvl_1.nacc[c1ommvl_1.ivx + (ip + ioff) * 24 - 25]; -#line 18955 "" +#line 19020 "" /* L12: */ -#line 18955 "" +#line 19020 "" } -#line 18956 "" +#line 19021 "" /* L11: */ -#line 18956 "" +#line 19021 "" } -#line 18956 "" +#line 19021 "" } -#line 18957 "" +#line 19022 "" } -#line 18958 "" +#line 19023 "" i__3 = a1ll_2.nv; -#line 18958 "" +#line 19023 "" for (a1ll_2.iv = 1; a1ll_2.iv <= i__3; ++a1ll_2.iv) { -#line 18959 "" +#line 19024 "" i__2 = c1ommvl_1.nvmx[a1ll_2.iv - 1]; -#line 18959 "" +#line 19024 "" for (kv = 1; kv <= i__2; ++kv) { -#line 18960 "" +#line 19025 "" ioff = 0; -#line 18961 "" +#line 19026 "" if (a1ll_2.ibar > 1) { -#line 18961 "" +#line 19026 "" ioff = a1ll_2.nib[c1ommvl_1.ivmx[a1ll_2.iv + kv * 24 - 25] + (a1ll_2.ibar - 1) * 24 - 25]; -#line 18961 "" +#line 19026 "" } -#line 18962 "" +#line 19027 "" /* L67: */ -#line 18962 "" +#line 19027 "" } -#line 18962 "" +#line 19027 "" } -#line 18963 "" +#line 19028 "" makeabar_(); -#line 18964 "" +#line 19029 "" elsk[c1omnotes_1.ibarcnt - 1] = linecom_1.elskb + c1ommvl_1.fbar; -#line 18965 "" +#line 19030 "" /* L10: */ -#line 18965 "" +#line 19030 "" } -#line 18966 "" +#line 19031 "" a1ll_2.newmeter = FALSE_; -#line 18967 "" +#line 19032 "" a1ll_2.firstline = FALSE_; -#line 18968 "" +#line 19033 "" goto L30; -#line 18969 "" +#line 19034 "" L20: /* Vertical analysis. */ -#line 18973 "" +#line 19038 "" if (compage_1.npages == 0) { -#line 18974 "" +#line 19039 "" if (compage_1.nsyst == 0) { -#line 18975 "" - s_wsle(&io___1189); -#line 18975 "" +#line 19040 "" + s_wsle(&io___1191); +#line 19040 "" do_lio(&c__9, &c__1, "When npages=0, must set nsyst=bars/syst, n"\ "ot 0", (ftnlen)46); -#line 18975 "" +#line 19040 "" e_wsle(); -#line 18976 "" +#line 19041 "" stop1_(); -#line 18977 "" +#line 19042 "" } -#line 18978 "" +#line 19043 "" compage_1.nsyst = (c1omnotes_1.ibarcnt - 1) / compage_1.nsyst + 1; -#line 18979 "" +#line 19044 "" if (a1ll_2.nv == 1) { -#line 18980 "" +#line 19045 "" nsystpp = 12; -#line 18981 "" +#line 19046 "" } else if (a1ll_2.nv == 2) { -#line 18982 "" +#line 19047 "" nsystpp = 7; -#line 18983 "" +#line 19048 "" } else if (a1ll_2.nv == 3) { -#line 18984 "" +#line 19049 "" nsystpp = 5; -#line 18985 "" +#line 19050 "" } else if (a1ll_2.nv == 4) { -#line 18986 "" +#line 19051 "" nsystpp = 3; -#line 18987 "" +#line 19052 "" } else if (a1ll_2.nv <= 7) { -#line 18988 "" +#line 19053 "" nsystpp = 2; -#line 18989 "" +#line 19054 "" } else { -#line 18990 "" +#line 19055 "" nsystpp = 1; -#line 18991 "" +#line 19056 "" } -#line 18992 "" +#line 19057 "" compage_1.npages = (compage_1.nsyst - 1) / nsystpp + 1; -#line 18993 "" +#line 19058 "" } /* Check nsyst vs ibarcnt */ -#line 18997 "" +#line 19062 "" if (compage_1.nsyst > c1omnotes_1.ibarcnt) { -#line 18998 "" - s_wsle(&io___1191); -#line 18998 "" +#line 19063 "" + s_wsle(&io___1193); +#line 19063 "" e_wsle(); -#line 18999 "" - s_wsle(&io___1192); -#line 18999 "" +#line 19064 "" + s_wsle(&io___1194); +#line 19064 "" do_lio(&c__9, &c__1, "nsyst,ibarcnt:", (ftnlen)14); -#line 18999 "" +#line 19064 "" do_lio(&c__3, &c__1, (char *)&compage_1.nsyst, (ftnlen)sizeof(integer) ); -#line 18999 "" +#line 19064 "" do_lio(&c__3, &c__1, (char *)&c1omnotes_1.ibarcnt, (ftnlen)sizeof( integer)); -#line 18999 "" +#line 19064 "" e_wsle(); -#line 19000 "" - s_wsle(&io___1193); -#line 19000 "" +#line 19065 "" + s_wsle(&io___1195); +#line 19065 "" do_lio(&c__9, &c__1, "There are more systems than bars.", (ftnlen)33); -#line 19000 "" +#line 19065 "" e_wsle(); -#line 19001 "" - s_wsfe(&io___1194); -#line 19001 "" +#line 19066 "" + s_wsfe(&io___1196); +#line 19066 "" do_fio(&c__1, " nsyst,ibarcnt:", (ftnlen)15); -#line 19001 "" +#line 19066 "" do_fio(&c__1, (char *)&compage_1.nsyst, (ftnlen)sizeof(integer)); -#line 19001 "" +#line 19066 "" do_fio(&c__1, (char *)&c1omnotes_1.ibarcnt, (ftnlen)sizeof(integer)); -#line 19001 "" +#line 19066 "" e_wsfe(); -#line 19002 "" - s_wsfe(&io___1195); -#line 19002 "" +#line 19067 "" + s_wsfe(&io___1197); +#line 19067 "" do_fio(&c__1, " There are more systems than bars.", (ftnlen)34); -#line 19002 "" +#line 19067 "" e_wsfe(); -#line 19003 "" +#line 19068 "" stop1_(); -#line 19004 "" +#line 19069 "" } /* Set up dummy forced line & page breaks after last real one */ -#line 19008 "" +#line 19073 "" ++compage_1.nflb; -#line 19009 "" +#line 19074 "" compage_1.ibarflb[compage_1.nflb] = c1omnotes_1.ibarcnt + 1; -#line 19010 "" +#line 19075 "" compage_1.isysflb[compage_1.nflb] = compage_1.nsyst + 1; -#line 19011 "" +#line 19076 "" ++compage_1.nfpb; -#line 19012 "" +#line 19077 "" compage_1.ipagfpb[compage_1.nfpb] = compage_1.npages + 1; -#line 19013 "" +#line 19078 "" compage_1.isysfpb[compage_1.nfpb] = compage_1.nsyst + 1; -#line 19014 "" +#line 19079 "" heightil = compage_1.ptheight * 4.f / commus_1.musize; -#line 19015 "" +#line 19080 "" o__1.oerr = 0; -#line 19015 "" +#line 19080 "" o__1.ounit = 12; -#line 19015 "" +#line 19080 "" o__1.ofnm = 0; -#line 19015 "" +#line 19080 "" o__1.orl = 0; -#line 19015 "" +#line 19080 "" o__1.osta = "SCRATCH"; -#line 19015 "" +#line 19080 "" o__1.oacc = 0; -#line 19015 "" +#line 19080 "" o__1.ofm = 0; -#line 19015 "" +#line 19080 "" o__1.oblnk = 0; -#line 19015 "" +#line 19080 "" f_open(&o__1); -#line 19016 "" - s_wsfe(&io___1197); -#line 19016 "" +#line 19081 "" + s_wsfe(&io___1199); +#line 19081 "" do_fio(&c__1, basenameq, (*lbase)); -#line 19016 "" +#line 19081 "" e_wsfe(); -#line 19017 "" - s_wsle(&io___1198); -#line 19017 "" +#line 19082 "" + s_wsle(&io___1200); +#line 19082 "" do_lio(&c__3, &c__1, (char *)&(*lbase), (ftnlen)sizeof(integer)); -#line 19017 "" +#line 19082 "" e_wsle(); /* Pass to pmxb the initial signature, including effect of transposition. */ -#line 19021 "" - s_wsfe(&io___1199); -#line 19021 "" +#line 19086 "" + s_wsfe(&io___1201); +#line 19086 "" do_fio(&c__1, (char *)&c1ommvl_1.fbar, (ftnlen)sizeof(real)); -#line 19021 "" +#line 19086 "" do_fio(&c__1, (char *)&c1omnotes_1.wheadpt, (ftnlen)sizeof(real)); -#line 19021 "" +#line 19086 "" do_fio(&c__1, (char *)&cblock_1.etait, (ftnlen)sizeof(real)); -#line 19021 "" +#line 19086 "" do_fio(&c__1, (char *)&cblock_1.etatc, (ftnlen)sizeof(real)); -#line 19021 "" +#line 19086 "" do_fio(&c__1, (char *)&cblock_1.etacs1, (ftnlen)sizeof(real)); -#line 19021 "" +#line 19086 "" do_fio(&c__1, (char *)&cblock_1.etatop, (ftnlen)sizeof(real)); -#line 19021 "" +#line 19086 "" do_fio(&c__1, (char *)&cblock_1.etabot, (ftnlen)sizeof(real)); -#line 19021 "" +#line 19086 "" do_fio(&c__1, (char *)&cominbot_1.inbothd, (ftnlen)sizeof(integer)); -#line 19021 "" +#line 19086 "" do_fio(&c__1, (char *)&cblock_1.inhnoh, (ftnlen)sizeof(integer)); -#line 19021 "" +#line 19086 "" do_fio(&c__1, (char *)&comkeys_1.isig1, (ftnlen)sizeof(integer)); -#line 19021 "" +#line 19086 "" e_wsfe(); -#line 19023 "" - s_wsle(&io___1200); -#line 19023 "" +#line 19088 "" + s_wsle(&io___1202); +#line 19088 "" do_lio(&c__3, &c__1, (char *)&compage_1.npages, (ftnlen)sizeof(integer)); -#line 19023 "" +#line 19088 "" do_lio(&c__4, &c__1, (char *)&compage_1.widthpt, (ftnlen)sizeof(real)); -#line 19023 "" +#line 19088 "" do_lio(&c__4, &c__1, (char *)&compage_1.ptheight, (ftnlen)sizeof(real)); -#line 19023 "" +#line 19088 "" do_lio(&c__4, &c__1, (char *)&compage_1.hoffpt, (ftnlen)sizeof(real)); -#line 19023 "" +#line 19088 "" do_lio(&c__4, &c__1, (char *)&compage_1.voffpt, (ftnlen)sizeof(real)); -#line 19023 "" +#line 19088 "" do_lio(&c__3, &c__1, (char *)&compage_1.nsyst, (ftnlen)sizeof(integer)); -#line 19023 "" +#line 19088 "" e_wsle(); -#line 19024 "" +#line 19089 "" iflbnow = -1; -#line 19025 "" +#line 19090 "" isysb4 = 0; -#line 19026 "" +#line 19091 "" i__1 = compage_1.nfpb; -#line 19026 "" +#line 19091 "" for (ifpb = 1; ifpb <= i__1; ++ifpb) { /* Each time thru this loop is like a single score with several pages */ -#line 19030 "" +#line 19095 "" compage_1.npages = compage_1.ipagfpb[ifpb] - compage_1.ipagfpb[ifpb - 1]; -#line 19031 "" +#line 19096 "" compage_1.nsyst = compage_1.isysfpb[ifpb] - compage_1.isysfpb[ifpb - 1]; -#line 19032 "" +#line 19097 "" nomnsystp = (compage_1.nsyst - 1) / compage_1.npages + 1; -#line 19033 "" +#line 19098 "" nshort = nomnsystp * compage_1.npages - compage_1.nsyst; -#line 19034 "" +#line 19099 "" i__2 = compage_1.npages; -#line 19034 "" +#line 19099 "" for (ipage = 1; ipage <= i__2; ++ipage) { -#line 19035 "" +#line 19100 "" nsystp = nomnsystp; -#line 19036 "" +#line 19101 "" if (ipage <= nshort) { -#line 19036 "" +#line 19101 "" --nsystp; -#line 19036 "" +#line 19101 "" } /* Last system number on this page: */ -#line 19039 "" +#line 19104 "" isysendpg = isysb4 + nsystp; -#line 19040 "" +#line 19105 "" nintpg = 0; -#line 19041 "" +#line 19106 "" i__3 = isysendpg; -#line 19041 "" +#line 19106 "" for (isy = isysb4 + 1; isy <= i__3; ++isy) { -#line 19042 "" +#line 19107 "" if (compage_1.isysflb[iflbnow + 1] == isy) { -#line 19042 "" +#line 19107 "" ++iflbnow; -#line 19042 "" +#line 19107 "" } -#line 19043 "" +#line 19108 "" nintpg += compage_1.nistaff[iflbnow]; -#line 19044 "" +#line 19109 "" /* L15: */ -#line 19044 "" +#line 19109 "" } -#line 19045 "" +#line 19110 "" xilfrac = 0.f; -#line 19046 "" +#line 19111 "" xiltxt = 0.f; -#line 19047 "" +#line 19112 "" if (ipage == 1 && c1omget_1.ihead > 0) { /* Needn't zero out ihead after printing titles if we only allow titles at top? */ -#line 19051 "" +#line 19116 "" if ((c1omget_1.ihead & 1) == 1) { -#line 19052 "" +#line 19117 "" xiltxt += cblock_1.hgtin * 4 / commus_1.musize; -#line 19053 "" +#line 19118 "" xilfrac += cblock_1.etait; -#line 19054 "" +#line 19119 "" } -#line 19055 "" +#line 19120 "" if ((c1omget_1.ihead & 2) == 2) { -#line 19056 "" +#line 19121 "" xiltxt += cblock_1.hgtti * 4 / commus_1.musize; -#line 19057 "" +#line 19122 "" xilfrac += cblock_1.etatc; -#line 19058 "" +#line 19123 "" } -#line 19059 "" +#line 19124 "" if ((c1omget_1.ihead & 4) == 4) { -#line 19060 "" +#line 19125 "" xiltxt += cblock_1.hgtco * 4 / commus_1.musize; -#line 19061 "" +#line 19126 "" xilfrac += cblock_1.etacs1; -#line 19062 "" +#line 19127 "" } else { /* Use double the title-composer space if there is no composer */ -#line 19066 "" +#line 19131 "" xilfrac += cblock_1.etatc; -#line 19067 "" +#line 19132 "" } -#line 19068 "" +#line 19133 "" } -#line 19069 "" +#line 19134 "" d__ = xilfrac + nsystp - 1 + cblock_1.etatop + cblock_1.etabot; /* C = nsystp*(nv-1) */ -#line 19071 "" +#line 19136 "" c__ = (real) nintpg; /* xN = heightil - xiltxt - 4*nsystp*nv - (nsystp-1)*xilbn */ -#line 19073 "" +#line 19138 "" xn = heightil - xiltxt - (nintpg + nsystp << 2) - (nsystp - 1) * cblock_1.xilbn; -#line 19074 "" +#line 19139 "" if (bottreb) { -#line 19074 "" +#line 19139 "" xn -= (nsystp - 1) * cblock_1.xilbtc; -#line 19074 "" +#line 19139 "" } -#line 19075 "" +#line 19140 "" if (c1omget_1.ihead == 0 && c1omget_1.isheadr) { -#line 19075 "" +#line 19140 "" xn -= cblock_1.xilhdr; -#line 19075 "" +#line 19140 "" } -#line 19076 "" +#line 19141 "" if (ifig == 1) { -#line 19077 "" +#line 19142 "" xn -= nsystp * cblock_1.xilfig; -#line 19078 "" +#line 19143 "" } -#line 19079 "" +#line 19144 "" glueil = (xn - cblock_1.b * c__) / (d__ + cblock_1.a * c__); -#line 19080 "" +#line 19145 "" omegag = (cblock_1.b * d__ + cblock_1.a * xn) / (d__ + cblock_1.a * c__); @@ -45323,574 +45447,574 @@ L20: /* Only the first page will get local adjustment now if needed, others in pmxb */ -#line 19107 "" +#line 19172 "" if (ifpb == 1 && ipage == 1 && compage_1.fintstf > 0.f) { -#line 19108 "" +#line 19173 "" facins = compage_1.fintstf; -#line 19109 "" +#line 19174 "" compage_1.fintstf = -1.f; -#line 19110 "" +#line 19175 "" } else { /* gintstf = 1.0 by default, but may be changed with AI<x> */ -#line 19114 "" +#line 19179 "" facins = compage_1.gintstf; -#line 19115 "" +#line 19180 "" } -#line 19116 "" - s_wsle(&io___1219); -#line 19116 "" +#line 19181 "" + s_wsle(&io___1221); +#line 19181 "" do_lio(&c__3, &c__1, (char *)&nsystp, (ftnlen)sizeof(integer)); /* Computing MAX */ -#line 19116 "" +#line 19181 "" r__2 = 0.f, r__3 = cblock_1.etatop * glueil; -#line 19116 "" +#line 19181 "" r__1 = dmax(r__2,r__3); -#line 19116 "" +#line 19181 "" do_lio(&c__4, &c__1, (char *)&r__1, (ftnlen)sizeof(real)); -#line 19116 "" +#line 19181 "" r__4 = facins * (omegag + 4); -#line 19116 "" +#line 19181 "" do_lio(&c__4, &c__1, (char *)&r__4, (ftnlen)sizeof(real)); -#line 19116 "" +#line 19181 "" e_wsle(); -#line 19117 "" +#line 19182 "" c1omget_1.ihead = 0; -#line 19118 "" +#line 19183 "" c1omget_1.isheadr = FALSE_; -#line 19119 "" +#line 19184 "" isysb4 = isysendpg; -#line 19120 "" +#line 19185 "" /* L7: */ -#line 19120 "" +#line 19185 "" } -#line 19121 "" +#line 19186 "" /* L8: */ -#line 19121 "" +#line 19186 "" } /* Done with vertical, now do horizontals */ -#line 19125 "" +#line 19190 "" celsk[1] = elsk[0]; -#line 19126 "" +#line 19191 "" i__1 = c1omnotes_1.ibarcnt; -#line 19126 "" +#line 19191 "" for (a1ll_2.ibar = 2; a1ll_2.ibar <= i__1; ++a1ll_2.ibar) { -#line 19127 "" +#line 19192 "" celsk[a1ll_2.ibar] = celsk[a1ll_2.ibar - 1] + elsk[a1ll_2.ibar - 1]; -#line 19128 "" +#line 19193 "" /* L21: */ -#line 19128 "" +#line 19193 "" } -#line 19129 "" +#line 19194 "" lastbar[0] = 0; -#line 19130 "" +#line 19195 "" ibar1 = 1; -#line 19131 "" +#line 19196 "" wmins = -1.f; -#line 19132 "" +#line 19197 "" iflb = 1; -#line 19133 "" +#line 19198 "" imovbrk = 0; -#line 19134 "" +#line 19199 "" ikey = 1; /* Return nsyst to its *total* value */ -#line 19138 "" +#line 19203 "" compage_1.nsyst = compage_1.isysfpb[compage_1.nfpb] - 1; -#line 19139 "" +#line 19204 "" i__1 = compage_1.nsyst; -#line 19139 "" +#line 19204 "" for (isyst = 1; isyst <= i__1; ++isyst) { -#line 19140 "" +#line 19205 "" if (isyst == compage_1.isysflb[iflb]) { -#line 19140 "" +#line 19205 "" ++iflb; -#line 19140 "" +#line 19205 "" } -#line 19141 "" +#line 19206 "" if (compage_1.nmovbrk > 0 && imovbrk < compage_1.nmovbrk) { -#line 19142 "" +#line 19207 "" if (isyst == compage_1.isysmb[imovbrk + 1]) { -#line 19142 "" +#line 19207 "" ++imovbrk; -#line 19142 "" +#line 19207 "" } -#line 19143 "" +#line 19208 "" } -#line 19144 "" +#line 19209 "" ibarb4 = lastbar[isyst - 1]; -#line 19145 "" +#line 19210 "" if (isyst == 1) { -#line 19146 "" +#line 19211 "" if (*isfirst) { -#line 19146 "" +#line 19211 "" elsstarg = celsk[compage_1.ibarflb[1] - 1] / ( compage_1.isysflb[1] - 1 - c1omget_1.fracindent) * (1 - c1omget_1.fracindent); -#line 19146 "" +#line 19211 "" } -#line 19148 "" +#line 19213 "" celskb4 = 0.f; -#line 19149 "" +#line 19214 "" } else { -#line 19150 "" +#line 19215 "" celskb4 = celsk[ibarb4]; /* Must dimension isysmb(0:*) just so I can execute this test! */ -#line 19154 "" +#line 19219 "" if (*isfirst) { -#line 19155 "" +#line 19220 "" if (compage_1.nmovbrk > 0 && isyst == compage_1.isysmb[ imovbrk]) { /* First syst after forced line break. There may be indentation. */ -#line 19159 "" +#line 19224 "" elsstarg = (celsk[compage_1.ibarflb[iflb] - 1] - celskb4) / (compage_1.isysflb[iflb] - isyst - compage_1.fracsys[imovbrk - 1]) * (1 - compage_1.fracsys[imovbrk - 1]); -#line 19162 "" +#line 19227 "" } else { /* There is no indentation to deal with */ -#line 19166 "" +#line 19231 "" elsstarg = (celsk[compage_1.ibarflb[iflb] - 1] - celskb4) / (compage_1.isysflb[iflb] - isyst); -#line 19168 "" +#line 19233 "" } -#line 19169 "" +#line 19234 "" } -#line 19170 "" +#line 19235 "" } -#line 19171 "" +#line 19236 "" if (*isfirst) { -#line 19172 "" +#line 19237 "" diff1 = (r__1 = elsstarg - elsk[ibarb4], dabs(r__1)); -#line 19173 "" +#line 19238 "" i__2 = c1omnotes_1.ibarcnt; -#line 19173 "" +#line 19238 "" for (a1ll_2.ibar = ibarb4 + 2; a1ll_2.ibar <= i__2; ++a1ll_2.ibar) { -#line 19174 "" +#line 19239 "" diff = elsstarg - (celsk[a1ll_2.ibar] - celskb4); -#line 19175 "" +#line 19240 "" if (dabs(diff) >= diff1) { -#line 19175 "" +#line 19240 "" goto L24; -#line 19175 "" +#line 19240 "" } -#line 19176 "" +#line 19241 "" diff1 = dabs(diff); -#line 19177 "" +#line 19242 "" /* L23: */ -#line 19177 "" +#line 19242 "" } -#line 19178 "" +#line 19243 "" L24: -#line 19178 "" +#line 19243 "" --a1ll_2.ibar; -#line 19179 "" +#line 19244 "" lastbar[isyst] = a1ll_2.ibar; -#line 19180 "" +#line 19245 "" nbarss[isyst] = a1ll_2.ibar - ibarb4; -#line 19181 "" +#line 19246 "" } else { /* nbarss is given as an input, must compute lastbar and ibar */ -#line 19185 "" +#line 19250 "" lastbar[isyst] = nbarss[isyst] + ibarb4; -#line 19186 "" +#line 19251 "" a1ll_2.ibar = lastbar[isyst]; -#line 19187 "" +#line 19252 "" } /* elss is # of elemskip in the syst. from notes & ars's, not ruleskips, ask's. */ -#line 19191 "" +#line 19256 "" elss[isyst - 1] = celsk[a1ll_2.ibar] - celskb4; -#line 19192 "" - s_wsfe(&io___1234); -#line 19192 "" +#line 19257 "" + s_wsfe(&io___1236); +#line 19257 "" i__2 = lastbar[isyst - 1] + 1; -#line 19192 "" +#line 19257 "" do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer)); -#line 19192 "" +#line 19257 "" e_wsfe(); /* Transposed sigs are isig1, newkey(2,3,...). */ -#line 19196 "" +#line 19261 "" if (ikey == 1) { -#line 19197 "" +#line 19262 "" key1 = comkeys_1.isig1; -#line 19198 "" +#line 19263 "" } else { -#line 19199 "" +#line 19264 "" key1 = comkeys_1.newkey[ikey - 1]; -#line 19200 "" +#line 19265 "" } -#line 19201 "" +#line 19266 "" fsyst = wclef + abs(key1) * wkeysig + 2.f / commus_1.musize; -#line 19202 "" +#line 19267 "" xelsk = 0.f; -#line 19203 "" +#line 19268 "" L1: -#line 19203 "" +#line 19268 "" if (ikey < comkeys_1.nkeys) { -#line 19204 "" +#line 19269 "" if (comkeys_1.ibrkch[ikey] <= lastbar[isyst]) { /* Add space for all key changes */ -#line 19208 "" +#line 19273 "" ++ikey; -#line 19209 "" +#line 19274 "" key2 = comkeys_1.newkey[ikey - 1]; /* Computing MAX */ /* Computing MAX */ -#line 19210 "" +#line 19275 "" i__5 = abs(key1), i__6 = abs(key2); -#line 19210 "" +#line 19275 "" i__3 = (i__2 = key2 - key1, abs(i__2)), i__4 = max(i__5,i__6); -#line 19210 "" +#line 19275 "" naccs = max(i__3,i__4); -#line 19211 "" +#line 19276 "" fsyst += naccs * wkeysig; /* Account for afterruleskips (fbar) */ -#line 19215 "" +#line 19280 "" xelsk += c1ommvl_1.fbar / 2; -#line 19216 "" +#line 19281 "" if (comkeys_1.ibrkch[ikey - 1] < lastbar[isyst] && ! comkeys_1.kchmid[ikey - 1]) { -#line 19216 "" +#line 19281 "" xelsk += -1.f; -#line 19216 "" +#line 19281 "" } -#line 19218 "" +#line 19283 "" key1 = key2; -#line 19219 "" +#line 19284 "" goto L1; -#line 19220 "" +#line 19285 "" } -#line 19221 "" +#line 19286 "" } /* Add extra fixed space for double bar */ -#line 19225 "" +#line 19290 "" if (isyst == compage_1.nsyst) { -#line 19226 "" +#line 19291 "" fsyst += 4.5f / commus_1.musize; -#line 19227 "" +#line 19292 "" } /* Add extra fixed space for initial time signature */ -#line 19231 "" +#line 19296 "" if (isyst == 1) { -#line 19232 "" +#line 19297 "" fsyst += wtimesig; -#line 19233 "" +#line 19298 "" } /* Add extra fixed space for time signature changes & user-defined spaces */ -#line 19237 "" +#line 19302 "" i__2 = lastbar[isyst]; -#line 19237 "" +#line 19302 "" for (ibars = ibarb4 + 1; ibars <= i__2; ++ibars) { -#line 19238 "" +#line 19303 "" if (newmb[ibars - 1]) { -#line 19238 "" +#line 19303 "" fsyst += wtimesig; -#line 19238 "" +#line 19303 "" } -#line 19239 "" +#line 19304 "" fsyst += c1omnotes_1.udsp[ibars - 1] / commus_1.musize; -#line 19240 "" +#line 19305 "" /* L26: */ -#line 19240 "" +#line 19305 "" } -#line 19241 "" +#line 19306 "" if (isyst == 1) { -#line 19242 "" +#line 19307 "" wdpt = compage_1.widthpt * (1 - c1omget_1.fracindent); -#line 19243 "" +#line 19308 "" } else { -#line 19244 "" +#line 19309 "" if (compage_1.nmovbrk > 0 && imovbrk > 0 && isyst == compage_1.isysmb[imovbrk]) { -#line 19246 "" +#line 19311 "" wdpt = compage_1.widthpt * (1 - compage_1.fracsys[imovbrk - 1] ); -#line 19247 "" +#line 19312 "" } else { -#line 19248 "" +#line 19313 "" wdpt = compage_1.widthpt; -#line 19249 "" +#line 19314 "" } -#line 19250 "" +#line 19315 "" } -#line 19251 "" +#line 19316 "" wsyspt = wdpt - fsyst * commus_1.musize - nbarss[isyst] * .4f; /* Checks for min spacing */ /* Get min allowable space */ -#line 19256 "" +#line 19321 "" dtmin = 1e3f; -#line 19257 "" +#line 19322 "" i__2 = ibar1 + nbarss[isyst] - 1; -#line 19257 "" +#line 19322 "" for (a1ll_2.ibar = ibar1; a1ll_2.ibar <= i__2; ++a1ll_2.ibar) { /* Computing MIN */ -#line 19258 "" +#line 19323 "" r__1 = dtmin, r__2 = linecom_1.tnminb[a1ll_2.ibar - 1]; -#line 19258 "" +#line 19323 "" dtmin = dmin(r__1,r__2); -#line 19259 "" +#line 19324 "" if (c1omnotes_1.wminnh[a1ll_2.ibar - 1] >= 0.f) { -#line 19259 "" +#line 19324 "" wmins = c1omnotes_1.wminnh[a1ll_2.ibar - 1]; -#line 19259 "" +#line 19324 "" } -#line 19260 "" +#line 19325 "" /* L45: */ -#line 19260 "" +#line 19325 "" } -#line 19261 "" +#line 19326 "" if (wmins < 0.f) { -#line 19261 "" +#line 19326 "" wmins = .3f; -#line 19261 "" +#line 19326 "" } -#line 19262 "" +#line 19327 "" wminpt = (wmins + 1) * .3f * commus_1.musize; /* Find max duration & # of notes for this system */ -#line 19266 "" +#line 19331 "" dtmax = 0.f; -#line 19267 "" +#line 19332 "" nns = 0; -#line 19268 "" +#line 19333 "" i__2 = c1omnotes_1.nptr[ibar1 + nbarss[isyst] - 1] - 1; -#line 19268 "" +#line 19333 "" for (iptr = c1omnotes_1.nptr[ibar1 - 1]; iptr <= i__2; ++iptr) { /* Computing MAX */ -#line 19269 "" +#line 19334 "" r__1 = dtmax, r__2 = c1omnotes_1.durb[iptr - 1]; -#line 19269 "" +#line 19334 "" dtmax = dmax(r__1,r__2); -#line 19270 "" +#line 19335 "" nns += c1omnotes_1.nnpd[iptr - 1]; -#line 19271 "" +#line 19336 "" /* L43: */ -#line 19271 "" +#line 19336 "" } -#line 19272 "" +#line 19337 "" elmin0 = wsyspt * f1eon_(&dtmin) / (elss[isyst - 1] + xelsk); -#line 19273 "" +#line 19338 "" if (elmin0 >= wminpt) { /* Subtract out fbar stuff to keep old way of passing sumelsk to pmxb; */ /* there is no need to "flatten" */ -#line 19278 "" +#line 19343 "" sumelsk = elss[isyst - 1] - c1ommvl_1.fbar * nbarss[isyst]; -#line 19279 "" +#line 19344 "" comeon_1.eonk = 0.f; -#line 19280 "" +#line 19345 "" comeon_1.ewmxk = 1.f; -#line 19281 "" +#line 19346 "" } else { -#line 19282 "" +#line 19347 "" elmin1 = wsyspt / ((c1ommvl_1.fbar * nbarss[isyst] + xelsk) / f1eon_(&dtmax) + nns); -#line 19283 "" +#line 19348 "" if (elmin1 <= wminpt) { /* print* */ /* print*,'In system #',isyst,' cannot meet min. space rqmt' */ /* write(15,'(/a,i5,a)') */ /* * 'In system #',isyst,' cannot meet min. space rqmt' */ -#line 19288 "" +#line 19353 "" comeon_1.eonk = .9f; -#line 19289 "" +#line 19354 "" } else { /* Find eonk by Newton method */ /* eonk = min(.9,(wminpt-elmin0)/(elmin1-elmin0)) */ -#line 19294 "" +#line 19359 "" i__2 = c1omnotes_1.nptr[ibar1 + nbarss[isyst] - 1] - 1; -#line 19294 "" +#line 19359 "" r__1 = wsyspt / wminpt; -#line 19294 "" +#line 19359 "" r__2 = c1ommvl_1.fbar * nbarss[isyst] + xelsk; -#line 19294 "" +#line 19359 "" r__3 = (wminpt - elmin0) / (elmin1 - elmin0); -#line 19294 "" +#line 19359 "" findeonk_(&c1omnotes_1.nptr[ibar1 - 1], &i__2, &r__1, &r__2, & dtmin, &dtmax, &r__3); -#line 19297 "" +#line 19362 "" comeon_1.eonk = dmin(.9f,comeon_1.eonk); -#line 19298 "" +#line 19363 "" } -#line 19299 "" +#line 19364 "" d__1 = (doublereal) f1eon_(&dtmax); -#line 19299 "" +#line 19364 "" d__2 = (doublereal) comeon_1.eonk; -#line 19299 "" +#line 19364 "" comeon_1.ewmxk = pow_dd(&d__1, &d__2); /* Recompute poenom! */ -#line 19303 "" +#line 19368 "" sumelsk = 0.f; -#line 19304 "" +#line 19369 "" i__2 = c1omnotes_1.nptr[ibar1 + nbarss[isyst] - 1] - 1; -#line 19304 "" +#line 19369 "" for (iptr = c1omnotes_1.nptr[ibar1 - 1]; iptr <= i__2; ++iptr) { -#line 19305 "" +#line 19370 "" r__1 = c1omnotes_1.durb[iptr - 1] / c1omnotes_1.sqzb[iptr - 1] ; -#line 19305 "" +#line 19370 "" sumelsk += c1omnotes_1.nnpd[iptr - 1] * c1omnotes_1.sqzb[iptr - 1] * feon_(&r__1); -#line 19307 "" +#line 19372 "" /* L44: */ -#line 19307 "" +#line 19372 "" } -#line 19308 "" +#line 19373 "" } -#line 19309 "" +#line 19374 "" poenom = wsyspt / (sumelsk + c1ommvl_1.fbar * nbarss[isyst] + xelsk); /* Set fracindent for output: orig if isyst=1, fracsys(imovbrk) if movbrk, else 0 */ -#line 19313 "" +#line 19378 "" if (isyst > 0) { -#line 19314 "" +#line 19379 "" if (compage_1.nmovbrk > 0 && imovbrk > 0 && isyst == compage_1.isysmb[imovbrk]) { -#line 19316 "" +#line 19381 "" c1omget_1.fracindent = compage_1.fracsys[imovbrk - 1]; -#line 19317 "" +#line 19382 "" } else { -#line 19318 "" +#line 19383 "" c1omget_1.fracindent = 0.f; -#line 19319 "" +#line 19384 "" } -#line 19320 "" +#line 19385 "" } -#line 19321 "" - s_wsfe(&io___1252); -#line 19321 "" +#line 19386 "" + s_wsfe(&io___1254); +#line 19386 "" do_fio(&c__1, (char *)&poenom, (ftnlen)sizeof(real)); -#line 19321 "" +#line 19386 "" do_fio(&c__1, (char *)&nbarss[isyst], (ftnlen)sizeof(integer)); -#line 19321 "" +#line 19386 "" do_fio(&c__1, (char *)&sumelsk, (ftnlen)sizeof(real)); -#line 19321 "" +#line 19386 "" do_fio(&c__1, (char *)&fsyst, (ftnlen)sizeof(real)); -#line 19321 "" +#line 19386 "" do_fio(&c__1, (char *)&c1omget_1.fracindent, (ftnlen)sizeof(real)); -#line 19321 "" +#line 19386 "" do_fio(&c__1, (char *)&comeon_1.eonk, (ftnlen)sizeof(real)); -#line 19321 "" +#line 19386 "" do_fio(&c__1, (char *)&comeon_1.ewmxk, (ftnlen)sizeof(real)); -#line 19321 "" +#line 19386 "" e_wsfe(); -#line 19323 "" +#line 19388 "" ibar1 += nbarss[isyst]; -#line 19324 "" +#line 19389 "" /* L22: */ -#line 19324 "" +#line 19389 "" } -#line 19325 "" +#line 19390 "" al__1.aerr = 0; -#line 19325 "" +#line 19390 "" al__1.aunit = 12; -#line 19325 "" +#line 19390 "" f_rew(&al__1); -#line 19326 "" +#line 19391 "" o__1.oerr = 0; -#line 19326 "" +#line 19391 "" o__1.ounit = 13; -#line 19326 "" +#line 19391 "" o__1.ofnm = 0; -#line 19326 "" +#line 19391 "" o__1.orl = 0; -#line 19326 "" +#line 19391 "" o__1.osta = "SCRATCH"; -#line 19326 "" +#line 19391 "" o__1.oacc = 0; -#line 19326 "" +#line 19391 "" o__1.ofm = 0; -#line 19326 "" +#line 19391 "" o__1.oblnk = 0; -#line 19326 "" +#line 19391 "" f_open(&o__1); -#line 19327 "" - s_wsfe(&io___1253); -#line 19327 "" +#line 19392 "" + s_wsfe(&io___1255); +#line 19392 "" do_fio(&c__1, (char *)&ifig, (ftnlen)sizeof(integer)); -#line 19327 "" +#line 19392 "" e_wsfe(); -#line 19328 "" +#line 19393 "" al__1.aerr = 0; -#line 19328 "" +#line 19393 "" al__1.aunit = 13; -#line 19328 "" +#line 19393 "" f_rew(&al__1); -#line 19329 "" +#line 19394 "" inbuff_1.ilbuf = 1; -#line 19330 "" +#line 19395 "" inbuff_1.ipbuf = 0; -#line 19331 "" +#line 19396 "" if (! (*optimize)) { -#line 19332 "" - s_wsfe(&io___1254); -#line 19332 "" +#line 19397 "" + s_wsfe(&io___1256); +#line 19397 "" do_fio(&c__1, " Done with first pass", (ftnlen)21); -#line 19332 "" +#line 19397 "" e_wsfe(); -#line 19333 "" - s_wsle(&io___1255); -#line 19333 "" +#line 19398 "" + s_wsle(&io___1257); +#line 19398 "" e_wsle(); -#line 19334 "" - s_wsfe(&io___1256); -#line 19334 "" +#line 19399 "" + s_wsfe(&io___1258); +#line 19399 "" do_fio(&c__1, " Done with first pass", (ftnlen)21); -#line 19334 "" +#line 19399 "" e_wsfe(); -#line 19335 "" - s_wsfe(&io___1257); -#line 19335 "" +#line 19400 "" + s_wsfe(&io___1259); +#line 19400 "" e_wsfe(); -#line 19336 "" +#line 19401 "" } /* Following syntax is needed since pmxa is called with literal argument .false. */ -#line 19340 "" +#line 19405 "" if (*isfirst) { -#line 19340 "" +#line 19405 "" *isfirst = FALSE_; -#line 19340 "" +#line 19405 "" } -#line 19341 "" +#line 19406 "" return 0; } /* pmxa_ */ @@ -46037,73 +46161,71 @@ L1: static integer nvalue; /* Fortran I/O blocks */ - static cilist io___1258 = { 0, 6, 0, 0, 0 }; - static cilist io___1259 = { 0, 6, 0, 0, 0 }; static cilist io___1260 = { 0, 6, 0, 0, 0 }; - static cilist io___1261 = { 0, 15, 0, "(a)", 0 }; - static cilist io___1265 = { 0, 12, 0, "(a)", 0 }; - static cilist io___1267 = { 0, 12, 0, 0, 0 }; + static cilist io___1261 = { 0, 6, 0, 0, 0 }; + static cilist io___1262 = { 0, 6, 0, 0, 0 }; + static cilist io___1263 = { 0, 15, 0, "(a)", 0 }; + static cilist io___1267 = { 0, 12, 0, "(a)", 0 }; static cilist io___1269 = { 0, 12, 0, 0, 0 }; - static cilist io___1285 = { 0, 6, 0, 0, 0 }; - static cilist io___1286 = { 0, 12, 0, 0, 0 }; - static cilist io___1292 = { 0, 13, 0, 0, 0 }; - static cilist io___1294 = { 0, 14, 0, "(a)", 0 }; - static cilist io___1297 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1298 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1271 = { 0, 12, 0, 0, 0 }; + static cilist io___1287 = { 0, 6, 0, 0, 0 }; + static cilist io___1288 = { 0, 12, 0, 0, 0 }; + static cilist io___1294 = { 0, 13, 0, 0, 0 }; + static cilist io___1296 = { 0, 14, 0, "(a)", 0 }; static cilist io___1299 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1302 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1312 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1314 = { 0, 6, 0, "(/,a20,i4,a1,i4)", 0 }; - static cilist io___1315 = { 0, 15, 0, "(/,a20,i4,a1,i4)", 0 }; - static cilist io___1319 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1320 = { 0, 11, 0, "(a14,f4.1,a)", 0 }; - static cilist io___1329 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1338 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1339 = { 0, 11, 0, "(a20,i1,a)", 0 }; - static cilist io___1340 = { 0, 11, 0, "(a20,i2,a)", 0 }; - static cilist io___1341 = { 0, 11, 0, "(a20)", 0 }; - static cilist io___1342 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1344 = { 0, 11, 0, "(a11,i2,a2)", 0 }; - static cilist io___1345 = { 0, 11, 0, "(a11,i1,a2)", 0 }; - static cilist io___1346 = { 0, 12, 0, 0, 0 }; - static cilist io___1349 = { 0, 6, 0, 0, 0 }; - static cilist io___1350 = { 0, 6, 0, 0, 0 }; - static cilist io___1353 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1354 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1300 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1301 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1304 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1314 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1316 = { 0, 6, 0, "(/,a20,i4,a1,i4)", 0 }; + static cilist io___1317 = { 0, 15, 0, "(/,a20,i4,a1,i4)", 0 }; + static cilist io___1321 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1322 = { 0, 11, 0, "(a14,f4.1,a)", 0 }; + static cilist io___1331 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1340 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1341 = { 0, 11, 0, "(a20,i1,a)", 0 }; + static cilist io___1342 = { 0, 11, 0, "(a20,i2,a)", 0 }; + static cilist io___1343 = { 0, 11, 0, "(a20)", 0 }; + static cilist io___1344 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1346 = { 0, 11, 0, "(a11,i2,a2)", 0 }; + static cilist io___1347 = { 0, 11, 0, "(a11,i1,a2)", 0 }; + static cilist io___1348 = { 0, 12, 0, 0, 0 }; + static cilist io___1351 = { 0, 6, 0, 0, 0 }; + static cilist io___1352 = { 0, 6, 0, 0, 0 }; static cilist io___1355 = { 0, 11, 0, "(a)", 0 }; static cilist io___1356 = { 0, 11, 0, "(a)", 0 }; static cilist io___1357 = { 0, 11, 0, "(a)", 0 }; static cilist io___1358 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1361 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1362 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1359 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1360 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1363 = { 0, 11, 0, "(a)", 0 }; static cilist io___1364 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1365 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1374 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1375 = { 0, 12, 0, 0, 0 }; - static cilist io___1377 = { 0, 14, 0, "(a9,i2,a10,i2,1x,a4)", 0 }; - static cilist io___1380 = { 0, 11, 0, fmtq, 0 }; - static cilist io___1382 = { 0, 6, 0, 0, 0 }; - static cilist io___1383 = { 0, 6, 0, 0, 0 }; - static cilist io___1384 = { 0, 11, 0, "(a)", 0 }; - static icilist io___1387 = { 0, nmq+12, 0, "(2i1)", 2, 1 }; - static icilist io___1388 = { 0, nmq+12, 0, "(a1,i2,a1,i1)", 5, 1 }; - static cilist io___1389 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1390 = { 0, 11, 0, "(a18,i1,a2)", 0 }; - static cilist io___1391 = { 0, 11, 0, "(a18,i2,a2)", 0 }; - static cilist io___1393 = { 0, 11, 0, "(a11,i1,a2)", 0 }; - static cilist io___1394 = { 0, 11, 0, "(a11,i2,a2)", 0 }; - static cilist io___1395 = { 0, 11, 0, "(a11,i3,a2)", 0 }; - static cilist io___1397 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1398 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1366 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1367 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1376 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1377 = { 0, 12, 0, 0, 0 }; + static cilist io___1379 = { 0, 14, 0, "(a9,i2,a10,i2,1x,a4)", 0 }; + static cilist io___1382 = { 0, 11, 0, fmtq, 0 }; + static cilist io___1384 = { 0, 6, 0, 0, 0 }; + static cilist io___1385 = { 0, 6, 0, 0, 0 }; + static cilist io___1386 = { 0, 11, 0, "(a)", 0 }; + static icilist io___1389 = { 0, nmq+12, 0, "(2i1)", 2, 1 }; + static icilist io___1390 = { 0, nmq+12, 0, "(a1,i2,a1,i1)", 5, 1 }; + static cilist io___1391 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1392 = { 0, 11, 0, "(a18,i1,a2)", 0 }; + static cilist io___1393 = { 0, 11, 0, "(a18,i2,a2)", 0 }; + static cilist io___1395 = { 0, 11, 0, "(a11,i1,a2)", 0 }; + static cilist io___1396 = { 0, 11, 0, "(a11,i2,a2)", 0 }; + static cilist io___1397 = { 0, 11, 0, "(a11,i3,a2)", 0 }; static cilist io___1399 = { 0, 11, 0, "(a)", 0 }; static cilist io___1400 = { 0, 11, 0, "(a)", 0 }; static cilist io___1401 = { 0, 11, 0, "(a)", 0 }; static cilist io___1402 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1404 = { 0, 11, 0, fmtq, 0 }; - static cilist io___1405 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1403 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1404 = { 0, 11, 0, "(a)", 0 }; static cilist io___1406 = { 0, 11, 0, fmtq, 0 }; static cilist io___1407 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1408 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1408 = { 0, 11, 0, fmtq, 0 }; static cilist io___1409 = { 0, 11, 0, "(a)", 0 }; static cilist io___1410 = { 0, 11, 0, "(a)", 0 }; static cilist io___1411 = { 0, 11, 0, "(a)", 0 }; @@ -46119,42 +46241,44 @@ L1: static cilist io___1421 = { 0, 11, 0, "(a)", 0 }; static cilist io___1422 = { 0, 11, 0, "(a)", 0 }; static cilist io___1423 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1424 = { 0, 11, 0, "(a16,i1,a14)", 0 }; + static cilist io___1424 = { 0, 11, 0, "(a)", 0 }; static cilist io___1425 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1426 = { 0, 12, 1, 0, 0 }; - static cilist io___1429 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1430 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1426 = { 0, 11, 0, "(a16,i1,a14)", 0 }; + static cilist io___1427 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1428 = { 0, 12, 1, 0, 0 }; static cilist io___1431 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1432 = { 0, 11, 0, "(a)", 0 }; static cilist io___1433 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1434 = { 0, 11, 0, "(a)", 0 }; static cilist io___1435 = { 0, 11, 0, "(a)", 0 }; static cilist io___1436 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1437 = { 0, 11, 0, "(a,2i1,a)", 0 }; + static cilist io___1437 = { 0, 11, 0, "(a)", 0 }; static cilist io___1438 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1439 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1455 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1456 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1464 = { 0, 11, 0, "(a11,f5.1,a4)", 0 }; - static cilist io___1465 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1466 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1439 = { 0, 11, 0, "(a,2i1,a)", 0 }; + static cilist io___1440 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1441 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1457 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1458 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1466 = { 0, 11, 0, "(a11,f5.1,a4)", 0 }; static cilist io___1467 = { 0, 11, 0, "(a)", 0 }; static cilist io___1468 = { 0, 11, 0, "(a)", 0 }; static cilist io___1469 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1470 = { 0, 6, 0, 0, 0 }; - static cilist io___1471 = { 0, 6, 0, 0, 0 }; - static cilist io___1472 = { 0, 15, 0, 0, 0 }; - static cilist io___1473 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1474 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1475 = { 0, 11, 0, fmtq, 0 }; + static cilist io___1470 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1471 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1472 = { 0, 6, 0, 0, 0 }; + static cilist io___1473 = { 0, 6, 0, 0, 0 }; + static cilist io___1474 = { 0, 15, 0, 0, 0 }; + static cilist io___1475 = { 0, 11, 0, "(a)", 0 }; static cilist io___1476 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1477 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1477 = { 0, 11, 0, fmtq, 0 }; static cilist io___1478 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1479 = { 0, 14, 0, "(a9,i2,a10,i2,1x,a5)", 0 }; - static cilist io___1480 = { 0, 6, 0, 0, 0 }; - static cilist io___1481 = { 0, 6, 0, 0, 0 }; + static cilist io___1479 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1480 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1481 = { 0, 14, 0, "(a9,i2,a10,i2,1x,a5)", 0 }; static cilist io___1482 = { 0, 6, 0, 0, 0 }; - static cilist io___1483 = { 0, 15, 0, "(/,a)", 0 }; - static cilist io___1484 = { 0, 15, 0, "(a)", 0 }; + static cilist io___1483 = { 0, 6, 0, 0, 0 }; + static cilist io___1484 = { 0, 6, 0, 0, 0 }; + static cilist io___1485 = { 0, 15, 0, "(/,a)", 0 }; + static cilist io___1486 = { 0, 15, 0, "(a)", 0 }; /* ccccccccccccccccccccccccc */ @@ -46351,7 +46475,8 @@ L1: /* cccccccccccc */ /* 0 rest=1, no rest = 0 */ /* 1 There will be a vertical shift for number of this xtup */ -/* 2-6 Height shift, 1 => -15, 31 => +15 Indicate by +/- [n] after 'n' */ +/* Moved hgt shft to mult 16-22, so could span -64,64. */ +/* c 2-6 Height shift, 1 => -15, 31 => +15 Indicate by +/- [n] after 'n' */ /* 7 There is a horizontal shift for xtup number */ /* 9-13 Horiz shift, 1=>-1.5, ... , 31=>+1.5 */ /* 14 Flip up/down-ness of xtup number */ @@ -46402,8 +46527,10 @@ L1: /* 0-3 Multiplicity+8 (mult= # of flags) */ /* 4 Set if slope adjustment for xtup bracket */ /* 5-9 16+slope adjustment */ +/* 10-15 New stem length, [0-63] => (-4,0,+27.5) */ +/* 16-22 64+Vertical offset of xtup # */ /* 27 Stemlength override */ -/* 28-30 New stem length. */ +/* c 28-30 New stem length. */ /* cccccccccccc */ /* c isdat1 cc */ /* cccccccccccc */ @@ -46475,116 +46602,116 @@ L1: /* Bits in icrdorn are same as in iornq, even tho most orns won't go in crds. */ /* ccccccccccccccccccccccccccccccc */ -#line 19792 "" +#line 19860 "" /* Parameter adjustments */ -#line 19792 "" +#line 19860 "" --poevec; -#line 19792 "" +#line 19860 "" -#line 19792 "" +#line 19860 "" /* Function Body */ -#line 19793 "" +#line 19860 "" if (! (*optimize)) { -#line 19794 "" - s_wsle(&io___1258); -#line 19794 "" +#line 19861 "" + s_wsle(&io___1260); +#line 19861 "" e_wsle(); -#line 19795 "" - s_wsle(&io___1259); -#line 19795 "" +#line 19862 "" + s_wsle(&io___1261); +#line 19862 "" do_lio(&c__9, &c__1, "Starting second PMX pass", (ftnlen)24); -#line 19795 "" +#line 19862 "" e_wsle(); -#line 19796 "" - s_wsle(&io___1260); -#line 19796 "" +#line 19863 "" + s_wsle(&io___1262); +#line 19863 "" e_wsle(); -#line 19797 "" - s_wsfe(&io___1261); -#line 19797 "" +#line 19864 "" + s_wsfe(&io___1263); +#line 19864 "" do_fio(&c__1, "Starting second PMX pass", (ftnlen)24); -#line 19797 "" +#line 19864 "" e_wsfe(); -#line 19798 "" +#line 19865 "" } -#line 19799 "" +#line 19866 "" newclef = FALSE_; -#line 19800 "" +#line 19867 "" comclefrests_1.centrests = FALSE_; -#line 19801 "" +#line 19868 "" ++(*ncalls); -#line 19802 "" +#line 19869 "" comlast_1.islast = *inlast; -#line 19803 "" +#line 19870 "" commac_1.macuse = 0; -#line 19804 "" +#line 19871 "" isyscnt = 0; -#line 19805 "" +#line 19872 "" all_1.stemmax = 8.2f; -#line 19806 "" +#line 19873 "" all_1.stemmin = 3.9f; -#line 19807 "" +#line 19874 "" all_1.stemlen = 6.f; -#line 19808 "" +#line 19875 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 19808 "" +#line 19875 "" *(unsigned char *)all_1.sq = *(unsigned char *)&ch__1[0]; -#line 19809 "" +#line 19876 "" comignorenats_1.ignorenats = FALSE_; -#line 19810 "" +#line 19877 "" combc_1.bcspec = TRUE_; -#line 19811 "" +#line 19878 "" comas3_1.topmods = FALSE_; -#line 19812 "" +#line 19879 "" ismbr = FALSE_; -#line 19813 "" - s_rsfe(&io___1265); -#line 19813 "" +#line 19880 "" + s_rsfe(&io___1267); +#line 19880 "" do_fio(&c__1, basenameq, (ftnlen)44); -#line 19813 "" +#line 19880 "" e_rsfe(); -#line 19814 "" - s_rsle(&io___1267); -#line 19814 "" +#line 19881 "" + s_rsle(&io___1269); +#line 19881 "" do_lio(&c__3, &c__1, (char *)&lbase, (ftnlen)sizeof(integer)); -#line 19814 "" +#line 19881 "" e_rsle(); -#line 19815 "" - s_rsle(&io___1269); -#line 19815 "" +#line 19882 "" + s_rsle(&io___1271); +#line 19882 "" do_lio(&c__4, &c__1, (char *)&comask_1.fbar, (ftnlen)sizeof(real)); -#line 19815 "" +#line 19882 "" do_lio(&c__4, &c__1, (char *)&comask_1.wheadpt, (ftnlen)sizeof(real)); -#line 19815 "" +#line 19882 "" do_lio(&c__4, &c__1, (char *)&etait, (ftnlen)sizeof(real)); -#line 19815 "" +#line 19882 "" do_lio(&c__4, &c__1, (char *)&etatc, (ftnlen)sizeof(real)); -#line 19815 "" +#line 19882 "" do_lio(&c__4, &c__1, (char *)&etacs1, (ftnlen)sizeof(real)); -#line 19815 "" +#line 19882 "" do_lio(&c__4, &c__1, (char *)&etatop, (ftnlen)sizeof(real)); -#line 19815 "" +#line 19882 "" do_lio(&c__4, &c__1, (char *)&etabot, (ftnlen)sizeof(real)); -#line 19815 "" +#line 19882 "" do_lio(&c__3, &c__1, (char *)&cominbot_1.inbothd, (ftnlen)sizeof(integer)) ; -#line 19815 "" +#line 19882 "" do_lio(&c__3, &c__1, (char *)&inhnoh, (ftnlen)sizeof(integer)); -#line 19815 "" +#line 19882 "" do_lio(&c__3, &c__1, (char *)&comtop_1.isig, (ftnlen)sizeof(integer)); -#line 19815 "" +#line 19882 "" e_rsle(); -#line 19817 "" +#line 19884 "" inbuff_1.ilbuf = 1; -#line 19818 "" +#line 19885 "" inbuff_1.ipbuf = 0; -#line 19819 "" +#line 19886 "" getset_(&all_1.nv, &noinst, &all_1.mtrnuml, &all_1.mtrdenl, &all_1.mtrnmp, &all_1.mtrdnp, &xmtrnum0, &npages, &nsyst, &all_1.musicsize, & comtop_1.fracindent, &istype0, comtop_1.inameq, comclefq_1.clefq, all_1.sepsymq, pathnameq, &lpath, &comtop_1.isig0, (ftnlen)79, ( ftnlen)1, (ftnlen)1, (ftnlen)40); -#line 19822 "" +#line 19889 "" if (commidi_1.ismidi) { /* Initial key signature and meter for pickup bar */ @@ -46597,199 +46724,199 @@ L1: /* Above is probably cosmetic */ /* call midievent('k',midisig,0) */ -#line 19834 "" +#line 19901 "" if (xmtrnum0 > comtol_1.tol) { /* We have a pickup. Some tricky stuff to get a meter: */ -#line 19838 "" +#line 19905 "" xntrial = xmtrnum0; -#line 19839 "" +#line 19906 "" for (ip2 = 0; ip2 <= 5; ++ip2) { -#line 19840 "" - if ((r__1 = r_mod(&xntrial, &c_b814), dabs(r__1)) < +#line 19907 "" + if ((r__1 = r_mod(&xntrial, &c_b813), dabs(r__1)) < comtol_1.tol) { -#line 19840 "" +#line 19907 "" goto L6; -#line 19840 "" +#line 19907 "" } -#line 19841 "" +#line 19908 "" xntrial *= 2; -#line 19842 "" +#line 19909 "" /* L5: */ -#line 19842 "" +#line 19909 "" } -#line 19843 "" - s_wsle(&io___1285); -#line 19843 "" +#line 19910 "" + s_wsle(&io___1287); +#line 19910 "" do_lio(&c__9, &c__1, "Problem finding meter for pickup bar", ( ftnlen)36); -#line 19843 "" +#line 19910 "" e_wsle(); -#line 19844 "" +#line 19911 "" xntrial = 1.f; -#line 19845 "" +#line 19912 "" ip2 = 0; -#line 19846 "" +#line 19913 "" L6: -#line 19847 "" +#line 19914 "" i__1 = i_nint(&xntrial); -#line 19847 "" +#line 19914 "" i__2 = pow_ii(&c__2, &ip2) * all_1.mtrdenl; -#line 19847 "" +#line 19914 "" midievent_("m", &i__1, &i__2, (ftnlen)1); -#line 19848 "" +#line 19915 "" } else { /* No pickup, enter the starting meter */ -#line 19852 "" +#line 19919 "" midievent_("m", &all_1.mtrnuml, &all_1.mtrdenl, (ftnlen)1); -#line 19853 "" +#line 19920 "" } -#line 19854 "" +#line 19921 "" } /* Set musicsize from value passed in common, due to possible reset by S[n]m16 */ -#line 19858 "" +#line 19925 "" all_1.musicsize = commus_1.musize; -#line 19859 "" - s_rsle(&io___1286); -#line 19859 "" +#line 19926 "" + s_rsle(&io___1288); +#line 19926 "" do_lio(&c__3, &c__1, (char *)&npages, (ftnlen)sizeof(integer)); -#line 19859 "" +#line 19926 "" do_lio(&c__4, &c__1, (char *)&comtop_1.widthpt, (ftnlen)sizeof(real)); -#line 19859 "" +#line 19926 "" do_lio(&c__4, &c__1, (char *)&comtop_1.height, (ftnlen)sizeof(real)); -#line 19859 "" +#line 19926 "" do_lio(&c__4, &c__1, (char *)&comtop_1.hoffpt, (ftnlen)sizeof(real)); -#line 19859 "" +#line 19926 "" do_lio(&c__4, &c__1, (char *)&comtop_1.voffpt, (ftnlen)sizeof(real)); -#line 19859 "" +#line 19926 "" do_lio(&c__3, &c__1, (char *)&nsyst, (ftnlen)sizeof(integer)); -#line 19859 "" +#line 19926 "" i__1 = npages; -#line 19859 "" +#line 19926 "" for (ipa = 1; ipa <= i__1; ++ipa) { -#line 19859 "" +#line 19926 "" do_lio(&c__3, &c__1, (char *)&comnotes_1.nsystp[ipa - 1], (ftnlen) sizeof(integer)); -#line 19859 "" +#line 19926 "" do_lio(&c__4, &c__1, (char *)&xnsttop[ipa - 1], (ftnlen)sizeof(real)); -#line 19859 "" +#line 19926 "" do_lio(&c__4, &c__1, (char *)&xintstaff[ipa - 1], (ftnlen)sizeof(real) ); -#line 19859 "" +#line 19926 "" } -#line 19859 "" +#line 19926 "" do_lio(&c__3, &c__1, (char *)&iauto, (ftnlen)sizeof(integer)); -#line 19859 "" +#line 19926 "" e_rsle(); /* If default width ever changes, must adjust this stmt. */ -#line 19864 "" +#line 19931 "" slfac1 = 2.98156f / comtop_1.widthpt; -#line 19865 "" +#line 19932 "" all_1.figbass = FALSE_; -#line 19866 "" - s_rsle(&io___1292); -#line 19866 "" +#line 19933 "" + s_rsle(&io___1294); +#line 19933 "" do_lio(&c__3, &c__1, (char *)&ifig, (ftnlen)sizeof(integer)); -#line 19866 "" +#line 19933 "" e_rsle(); -#line 19867 "" +#line 19934 "" if (ifig == 1) { -#line 19868 "" +#line 19935 "" all_1.figbass = TRUE_; -#line 19869 "" +#line 19936 "" o__1.oerr = 0; -#line 19869 "" +#line 19936 "" o__1.ounit = 14; -#line 19869 "" +#line 19936 "" o__1.ofnm = 0; -#line 19869 "" +#line 19936 "" o__1.orl = 0; -#line 19869 "" +#line 19936 "" o__1.osta = "SCRATCH"; -#line 19869 "" +#line 19936 "" o__1.oacc = 0; -#line 19869 "" +#line 19936 "" o__1.ofm = 0; -#line 19869 "" +#line 19936 "" o__1.oblnk = 0; -#line 19869 "" +#line 19936 "" f_open(&o__1); -#line 19870 "" - s_wsfe(&io___1294); +#line 19937 "" + s_wsfe(&io___1296); /* Writing concatenation */ -#line 19870 "" +#line 19937 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 19870 "" +#line 19937 "" i__3[1] = 3, a__1[1] = "def"; -#line 19870 "" +#line 19937 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 19870 "" +#line 19937 "" i__3[3] = 8, a__1[3] = "fixdrop{"; -#line 19870 "" +#line 19937 "" i__3[4] = 1, a__1[4] = all_1.sq; -#line 19870 "" +#line 19937 "" i__3[5] = 7, a__1[5] = "advance"; -#line 19870 "" +#line 19937 "" i__3[6] = 1, a__1[6] = all_1.sq; -#line 19870 "" +#line 19937 "" i__3[7] = 10, a__1[7] = "sysno by 1"; -#line 19870 "" +#line 19937 "" i__3[8] = 1, a__1[8] = all_1.sq; -#line 19870 "" +#line 19937 "" i__3[9] = 6, a__1[9] = "ifcase"; -#line 19870 "" +#line 19937 "" i__3[10] = 1, a__1[10] = all_1.sq; -#line 19870 "" +#line 19937 "" i__3[11] = 6, a__1[11] = "sysno%"; -#line 19870 "" +#line 19937 "" s_cat(ch__2, a__1, i__3, &c__12, (ftnlen)46); -#line 19870 "" +#line 19937 "" do_fio(&c__1, ch__2, (ftnlen)46); -#line 19870 "" +#line 19937 "" e_wsfe(); -#line 19872 "" +#line 19939 "" } -#line 19873 "" +#line 19940 "" comget_1.lastchar = FALSE_; -#line 19874 "" +#line 19941 "" ibcoff = 0; -#line 19875 "" +#line 19942 "" if (xmtrnum0 > 0.f) { -#line 19875 "" +#line 19942 "" ibcoff = -1; -#line 19875 "" +#line 19942 "" } -#line 19876 "" +#line 19943 "" o__1.oerr = 0; -#line 19876 "" +#line 19943 "" o__1.ounit = 11; -#line 19876 "" +#line 19943 "" o__1.ofnm = 0; -#line 19876 "" +#line 19943 "" o__1.orl = 0; -#line 19876 "" +#line 19943 "" o__1.osta = "SCRATCH"; -#line 19876 "" +#line 19943 "" o__1.oacc = 0; -#line 19876 "" +#line 19943 "" o__1.ofm = 0; -#line 19876 "" +#line 19943 "" o__1.oblnk = 0; -#line 19876 "" +#line 19943 "" f_open(&o__1); /* vshrink for the first page is calculated in topfile, */ /* and if true set interstaff=10. vshrink affects Titles. */ /* Must also save vshrink for page ending. */ -#line 19882 "" +#line 19949 "" topfile_(basenameq, &lbase, &all_1.nv, comclefq_1.clefq, &noinst, & all_1.musicsize, xintstaff, &all_1.mtrnmp, &all_1.mtrdnp, & vshrink, &comask_1.fbar, &comslur_1.fontslur, (ftnlen)44, (ftnlen) @@ -46797,394 +46924,394 @@ L6: /* ninow is working value of # of instruments. noinst is max #, and # at start. */ -#line 19887 "" +#line 19954 "" comnotes_1.ninow = noinst; /* Save original printed meter in case movement breaks */ -#line 19891 "" +#line 19958 "" comget_1.movnmp = all_1.mtrnmp; -#line 19892 "" +#line 19959 "" comget_1.movdnp = all_1.mtrdnp; -#line 19894 "" +#line 19961 "" if (comlast_1.islast && all_1.figbass && all_1.musicsize == 16) { -#line 19894 "" - s_wsfe(&io___1297); +#line 19961 "" + s_wsfe(&io___1299); /* Writing concatenation */ -#line 19894 "" +#line 19961 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 19894 "" +#line 19961 "" i__4[1] = 3, a__2[1] = "def"; -#line 19894 "" +#line 19961 "" i__4[2] = 1, a__2[2] = all_1.sq; -#line 19894 "" +#line 19961 "" i__4[3] = 8, a__2[3] = "figfont{"; -#line 19894 "" +#line 19961 "" i__4[4] = 1, a__2[4] = all_1.sq; -#line 19894 "" +#line 19961 "" i__4[5] = 9, a__2[5] = "eightrm}%"; -#line 19894 "" +#line 19961 "" s_cat(ch__3, a__2, i__4, &c__6, (ftnlen)23); -#line 19894 "" +#line 19961 "" do_fio(&c__1, ch__3, (ftnlen)23); -#line 19894 "" +#line 19961 "" e_wsfe(); -#line 19894 "" +#line 19961 "" } -#line 19897 "" +#line 19964 "" if (comlast_1.islast && comligfont_1.isligfont) { -#line 19898 "" +#line 19965 "" if (all_1.musicsize == 16) { -#line 19899 "" - s_wsfe(&io___1298); +#line 19966 "" + s_wsfe(&io___1300); /* Writing concatenation */ -#line 19899 "" +#line 19966 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 19899 "" +#line 19966 "" i__5[1] = 4, a__3[1] = "font"; -#line 19899 "" +#line 19966 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 19899 "" +#line 19966 "" i__5[3] = 20, a__3[3] = "ligfont=cmrj at 8pt%"; -#line 19899 "" +#line 19966 "" s_cat(ch__4, a__3, i__5, &c__4, (ftnlen)26); -#line 19899 "" +#line 19966 "" do_fio(&c__1, ch__4, (ftnlen)26); -#line 19899 "" +#line 19966 "" e_wsfe(); -#line 19900 "" +#line 19967 "" } else { -#line 19901 "" - s_wsfe(&io___1299); +#line 19968 "" + s_wsfe(&io___1301); /* Writing concatenation */ -#line 19901 "" +#line 19968 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 19901 "" +#line 19968 "" i__5[1] = 4, a__3[1] = "font"; -#line 19901 "" +#line 19968 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 19901 "" +#line 19968 "" i__5[3] = 21, a__3[3] = "ligfont=cmrj at 10pt%"; -#line 19901 "" +#line 19968 "" s_cat(ch__5, a__3, i__5, &c__4, (ftnlen)27); -#line 19901 "" +#line 19968 "" do_fio(&c__1, ch__5, (ftnlen)27); -#line 19901 "" +#line 19968 "" e_wsfe(); -#line 19902 "" +#line 19969 "" } -#line 19903 "" +#line 19970 "" } -#line 19904 "" +#line 19971 "" lenbeat = ifnodur_(&all_1.mtrdenl, "x", (ftnlen)1); -#line 19905 "" +#line 19972 "" if (all_1.mtrdenl == 2) { -#line 19905 "" +#line 19972 "" lenbeat = 16; -#line 19905 "" +#line 19972 "" } -#line 19906 "" +#line 19973 "" all_1.lenb1 = all_1.mtrnuml * lenbeat; -#line 19907 "" +#line 19974 "" if (all_1.mtrdenl == 2) { -#line 19907 "" +#line 19974 "" all_1.lenb1 <<= 1; -#line 19907 "" +#line 19974 "" } -#line 19908 "" +#line 19975 "" setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, &combeam_1.ibmtyp, &ibmrep); -#line 19909 "" +#line 19976 "" r__1 = xmtrnum0 * lenbeat; -#line 19909 "" +#line 19976 "" all_1.lenb0 = i_nint(&r__1); -#line 19910 "" +#line 19977 "" if (all_1.mtrdenl == 2) { -#line 19910 "" +#line 19977 "" all_1.lenb0 <<= 1; -#line 19910 "" +#line 19977 "" } -#line 19911 "" +#line 19978 "" if (all_1.lenb0 != 0) { -#line 19912 "" +#line 19979 "" if (comlast_1.islast) { -#line 19912 "" - s_wsfe(&io___1302); +#line 19979 "" + s_wsfe(&io___1304); /* Writing concatenation */ -#line 19912 "" +#line 19979 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 19912 "" +#line 19979 "" i__5[1] = 7, a__3[1] = "advance"; -#line 19912 "" +#line 19979 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 19912 "" +#line 19979 "" i__5[3] = 11, a__3[3] = "barno by -1"; -#line 19912 "" +#line 19979 "" s_cat(ch__6, a__3, i__5, &c__4, (ftnlen)20); -#line 19912 "" +#line 19979 "" do_fio(&c__1, ch__6, (ftnlen)20); -#line 19912 "" +#line 19979 "" e_wsfe(); -#line 19912 "" +#line 19979 "" } -#line 19913 "" +#line 19980 "" all_1.lenbar = all_1.lenb0; -#line 19914 "" +#line 19981 "" } else { -#line 19915 "" +#line 19982 "" all_1.lenbar = all_1.lenb1; -#line 19916 "" +#line 19983 "" } /* Initialize full-program variables */ -#line 19920 "" +#line 19987 "" comask_1.fixednew = 0.f; -#line 19921 "" +#line 19988 "" comask_1.scaldold = 0.f; -#line 19922 "" +#line 19989 "" comget_1.fintstf = -1.f; -#line 19923 "" +#line 19990 "" comget_1.gintstf = 1.f; -#line 19924 "" +#line 19991 "" comas2_1.nasksys = 0; -#line 19925 "" +#line 19992 "" combibarcnt_1.ibarcnt = 0; -#line 19926 "" +#line 19993 "" all_1.iline = 0; -#line 19927 "" +#line 19994 "" comget_1.movbrk = 0; -#line 19928 "" +#line 19995 "" isystpg = 0; -#line 19929 "" +#line 19996 "" comnotes_1.ipage = 1; -#line 19930 "" +#line 19997 "" all_1.iccount = 128; -#line 19931 "" +#line 19998 "" comas3_1.iask = 0; -#line 19932 "" +#line 19999 "" nhstot = 0; -#line 19933 "" +#line 20000 "" comnsp_2.nb = 1; -#line 19934 "" +#line 20001 "" if (! (*optimize)) { -#line 19934 "" +#line 20001 "" jprntb = 81; -#line 19934 "" +#line 20001 "" } -#line 19935 "" +#line 20002 "" comtop_1.idsig = 0; /* Next 5 are raise-barno parameters. irzbnd is integer part of default level. */ -#line 19939 "" +#line 20006 "" comsln_1.irzbnd = 3; -#line 19940 "" +#line 20007 "" if (comtop_1.isig == 3 && *(unsigned char *)&comclefq_1.clefq[all_1.nv - 1] == 't') { -#line 19940 "" +#line 20007 "" comsln_1.irzbnd = 4; -#line 19940 "" +#line 20007 "" } -#line 19941 "" +#line 20008 "" comsln_1.is1n1 = 0; -#line 19942 "" +#line 20009 "" comsln_1.isnx = 0; -#line 19943 "" +#line 20010 "" comslur_1.slurcurve = 0.f; /* 111109 Made global rather than per gulp */ -#line 19947 "" +#line 20014 "" comdyn_1.ndyn = 0; -#line 19948 "" +#line 20015 "" compoi_1.ispoi = FALSE_; -#line 19949 "" +#line 20016 "" slint = FALSE_; -#line 19950 "" +#line 20017 "" lrptpend = FALSE_; -#line 19951 "" +#line 20018 "" comget_1.rptnd1 = FALSE_; -#line 19952 "" +#line 20019 "" *(unsigned char *)comget_1.rptfq2 = 'E'; -#line 19953 "" +#line 20020 "" comget_1.rptprev = FALSE_; -#line 19954 "" +#line 20021 "" onvolt = FALSE_; -#line 19955 "" +#line 20022 "" comnsp_2.flgndb = FALSE_; -#line 19956 "" +#line 20023 "" comget_1.fbon = FALSE_; -#line 19957 "" +#line 20024 "" comnotes_1.shifton = FALSE_; -#line 19958 "" +#line 20025 "" comget_1.ornrpt = FALSE_; -#line 19959 "" +#line 20026 "" comnotes_1.setis = FALSE_; -#line 19960 "" +#line 20027 "" comarp_1.lowdot = FALSE_; -#line 19961 "" +#line 20028 "" comnvi_1.rename = FALSE_; -#line 19962 "" +#line 20029 "" comnotes_1.nobar1 = FALSE_; -#line 19963 "" +#line 20030 "" comget_1.equalize = FALSE_; -#line 19964 "" +#line 20031 "" comlast_1.usevshrink = TRUE_; -#line 19965 "" +#line 20032 "" comslur_1.wrotepsslurdefaults = FALSE_; -#line 19966 "" +#line 20033 "" comnotes_1.optlinebreakties = FALSE_; -#line 19967 "" +#line 20034 "" comnotes_1.headerspecial = FALSE_; /* vshrink is initialized in topfile */ -#line 19971 "" +#line 20038 "" comget_1.stickys = FALSE_; /* ixrest = 1 or 2 if xtup has started with a rest */ -#line 19975 "" +#line 20042 "" for (commvl_1.ivx = 1; commvl_1.ivx <= 24; ++commvl_1.ivx) { -#line 19976 "" +#line 20043 "" strtmid_1.ixrest[commvl_1.ivx - 1] = 0; -#line 19977 "" +#line 20044 "" comfig_1.fullsize[commvl_1.ivx - 1] = 1.f; /* Set legacy note level to middle c as default */ -#line 19981 "" +#line 20048 "" comnotes_1.ndlev[commvl_1.ivx - 1] = 29; -#line 19982 "" +#line 20049 "" comnotes_1.ndlev[commvl_1.ivx + 23] = 29; -#line 19983 "" +#line 20050 "" /* L1: */ -#line 19983 "" +#line 20050 "" } -#line 19984 "" +#line 20051 "" comnotes_1.npreslur = 0; -#line 19985 "" +#line 20052 "" nhssys = 0; -#line 19986 "" +#line 20053 "" comslur_1.listslur = 0; -#line 19987 "" +#line 20054 "" for (i__ = 1; i__ <= 202; ++i__) { -#line 19988 "" +#line 20055 "" all_1.isdat1[i__ - 1] = 0; -#line 19989 "" +#line 20056 "" all_1.isdat2[i__ - 1] = 0; -#line 19990 "" +#line 20057 "" /* L31: */ -#line 19990 "" +#line 20057 "" } -#line 19991 "" +#line 20058 "" all_1.nsdat = 0; /* Initialize flag for figures in any other voice than 1 */ -#line 19995 "" +#line 20062 "" comfig_1.ivxfig2 = 0; /* Initialize for loop over gulps */ -#line 19999 "" +#line 20066 "" all_1.firstgulp = TRUE_; /* Start a gulp */ -#line 20003 "" +#line 20070 "" L30: -#line 20003 "" +#line 20070 "" loop = TRUE_; -#line 20004 "" +#line 20071 "" comnotes_1.notcrd = TRUE_; -#line 20005 "" +#line 20072 "" combjmp_1.isbjmp = FALSE_; -#line 20006 "" +#line 20073 "" combjmp_1.isbj2 = FALSE_; -#line 20007 "" +#line 20074 "" comfb_1.autofbon = FALSE_; -#line 20008 "" +#line 20075 "" comfb_1.tautofb = 0.f; -#line 20009 "" +#line 20076 "" all_1.nbars = 0; -#line 20010 "" +#line 20077 "" comfig_1.nfigs[0] = 0; -#line 20011 "" +#line 20078 "" comfig_1.nfigs[1] = 0; -#line 20012 "" +#line 20079 "" comgrace_1.ngrace = 0; -#line 20013 "" +#line 20080 "" comtrill_1.ntrill = 0; -#line 20014 "" +#line 20081 "" comtrill_1.ncrd = 0; -#line 20015 "" +#line 20082 "" comtrill_1.nudorn = 0; -#line 20016 "" +#line 20083 "" comgrace_1.nlit = 0; -#line 20017 "" +#line 20084 "" comgrace_1.nvolt = 0; -#line 20018 "" +#line 20085 "" comgrace_1.ibarmbr = 0; -#line 20019 "" +#line 20086 "" comudsp_1.nudsp = 0; /* ndyn = 0 ! 111109 */ -#line 20021 "" +#line 20088 "" comdyn_1.ntxtdyn = 0; -#line 20022 "" +#line 20089 "" comcb_1.nbc = 0; -#line 20023 "" +#line 20090 "" comarpshift_1.numarpshift = 0; -#line 20024 "" +#line 20091 "" for (i__ = 1; i__ <= 37; ++i__) { -#line 20025 "" +#line 20092 "" comgrace_1.graspace[i__ - 1] = 0.f; -#line 20026 "" +#line 20093 "" /* L3: */ -#line 20026 "" +#line 20093 "" } /* Now initialize up to nv. Do it in getnote as r'qd for 2nd voices per syst. */ /* and also if nv increases in an 'M' directive. */ -#line 20031 "" +#line 20098 "" i__1 = all_1.nv; -#line 20031 "" +#line 20098 "" for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) { -#line 20032 "" +#line 20099 "" newvoice_(&all_1.iv, comclefq_1.clefq + (all_1.iv - 1), &c_false, ( ftnlen)1); -#line 20033 "" +#line 20100 "" /* L4: */ -#line 20033 "" +#line 20100 "" } /* Check if endsymbol was set earlier */ -#line 20037 "" +#line 20104 "" if (comget_1.rptnd1) { -#line 20038 "" +#line 20105 "" comget_1.rptnd1 = FALSE_; -#line 20039 "" +#line 20106 "" *(unsigned char *)comget_1.rptfq2 = *(unsigned char *)comget_1.rptfq1; -#line 20040 "" +#line 20107 "" } else { /* Only use if movbrk>0, to signal default ('RD') */ -#line 20044 "" +#line 20111 "" *(unsigned char *)comget_1.rptfq2 = 'E'; -#line 20045 "" +#line 20112 "" } -#line 20046 "" +#line 20113 "" all_1.iv = 1; -#line 20047 "" +#line 20114 "" commvl_1.ivx = 1; -#line 20048 "" +#line 20115 "" L2: -#line 20048 "" +#line 20115 "" if (loop) { /* Within this loop, nv voices are filled up for the duration of the block. */ @@ -47194,210 +47321,210 @@ L2: /* Only at the beginning of an input block will there be a possible mtr change, */ /* signalled by a nonzero mtrnuml. (which will be re-zeroed right after change) */ -#line 20057 "" +#line 20124 "" getnote_(&loop); -#line 20058 "" +#line 20125 "" if (comget_1.lastchar) { -#line 20058 "" +#line 20125 "" goto L40; -#line 20058 "" +#line 20125 "" } -#line 20059 "" +#line 20126 "" goto L2; -#line 20060 "" +#line 20127 "" } /* Finished an input block (gulp). */ -#line 20064 "" +#line 20131 "" if (commidi_1.ismidi) { /* Put rests into midi array for 2nd lines that were not used in this gulp. */ -#line 20068 "" +#line 20135 "" i__1 = all_1.nv; -#line 20068 "" +#line 20135 "" for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) { -#line 20069 "" +#line 20136 "" if (commidi_1.twoline[all_1.iv - 1] && commvl_1.nvmx[all_1.iv - 1] == 1) { -#line 20070 "" +#line 20137 "" if (all_1.firstgulp && all_1.lenb0 != 0) { -#line 20071 "" +#line 20138 "" r__1 = (all_1.nbars - 1.f) * all_1.lenbar + all_1.lenb0; -#line 20071 "" +#line 20138 "" addmidi_(&commidi_1.midchan[all_1.iv + 23], &c__0, &c__0, &c__0, &r__1, &c_true, &c_false); -#line 20073 "" +#line 20140 "" } else { -#line 20074 "" +#line 20141 "" r__1 = all_1.nbars * 1.f * all_1.lenbar; -#line 20074 "" +#line 20141 "" addmidi_(&commidi_1.midchan[all_1.iv + 23], &c__0, &c__0, &c__0, &r__1, &c_true, &c_false); -#line 20076 "" +#line 20143 "" } -#line 20077 "" +#line 20144 "" } -#line 20078 "" +#line 20145 "" /* L60: */ -#line 20078 "" +#line 20145 "" } -#line 20079 "" +#line 20146 "" } -#line 20080 "" +#line 20147 "" comgrace_1.nvolt = 0; -#line 20081 "" +#line 20148 "" for (all_1.iv = 1; all_1.iv <= 24; ++all_1.iv) { -#line 20082 "" +#line 20149 "" comudsp_1.nudoff[all_1.iv - 1] = 0; -#line 20083 "" +#line 20150 "" comcc_1.ndotmv[all_1.iv - 1] = 0; -#line 20084 "" +#line 20151 "" /* L28: */ -#line 20084 "" +#line 20151 "" } /* Put stuff at top of p.1. Must wait until now to have read title info. */ -#line 20088 "" +#line 20155 "" if (combibarcnt_1.ibarcnt == 0) { -#line 20089 "" +#line 20156 "" puttitle_(&inhnoh, &xnsttop[comnotes_1.ipage - 1], &etatop, all_1.sq, &etait, &etatc, &etacs1, &all_1.nv, &vshrink, all_1.sepsymq, ( ftnlen)1, (ftnlen)1); -#line 20091 "" +#line 20158 "" if (comnotes_1.headerspecial) { -#line 20091 "" - s_wsfe(&io___1312); +#line 20158 "" + s_wsfe(&io___1314); /* Writing concatenation */ -#line 20091 "" +#line 20158 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 20091 "" +#line 20158 "" i__6[0] = 1, a__4[0] = ch__1; -#line 20091 "" +#line 20158 "" i__6[1] = 28, a__4[1] = "special{header=psslurs.pro}%"; -#line 20091 "" +#line 20158 "" s_cat(ch__7, a__4, i__6, &c__2, (ftnlen)29); -#line 20091 "" +#line 20158 "" do_fio(&c__1, ch__7, (ftnlen)29); -#line 20091 "" +#line 20158 "" e_wsfe(); -#line 20091 "" +#line 20158 "" } /* Write special header for first page */ -#line 20096 "" +#line 20163 "" } -#line 20097 "" +#line 20164 "" i__1 = all_1.nbars; -#line 20097 "" +#line 20164 "" for (all_1.ibar = 1; all_1.ibar <= i__1; ++all_1.ibar) { -#line 20098 "" +#line 20165 "" ++combibarcnt_1.ibarcnt; -#line 20099 "" +#line 20166 "" comask_1.bar1syst = combibarcnt_1.ibarcnt == iauto; /* Computing MAX */ -#line 20100 "" +#line 20167 "" r__1 = combibarcnt_1.ibarcnt + .001f + ibcoff; -#line 20100 "" +#line 20167 "" i__2 = 0, i__7 = (integer) r_lg10(&r__1); -#line 20100 "" +#line 20167 "" ndig = max(i__2,i__7); -#line 20101 "" +#line 20168 "" if (comlast_1.islast) { -#line 20101 "" +#line 20168 "" ci__1.cierr = 0; -#line 20101 "" +#line 20168 "" ci__1.ciunit = 11; /* Writing concatenation */ -#line 20101 "" +#line 20168 "" i__8[0] = 6, a__5[0] = "(a11,i"; -#line 20101 "" +#line 20168 "" i__2 = ndig + 50; -#line 20101 "" +#line 20168 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 20101 "" +#line 20168 "" i__8[1] = 1, a__5[1] = ch__1; -#line 20101 "" +#line 20168 "" i__8[2] = 1, a__5[2] = ")"; -#line 20101 "" +#line 20168 "" ci__1.cifmt = (s_cat(ch__8, a__5, i__8, &c__3, (ftnlen)8), ch__8); -#line 20101 "" +#line 20168 "" s_wsfe(&ci__1); -#line 20101 "" +#line 20168 "" do_fio(&c__1, "% Bar count", (ftnlen)11); -#line 20101 "" +#line 20168 "" i__7 = combibarcnt_1.ibarcnt + ibcoff; -#line 20101 "" +#line 20168 "" do_fio(&c__1, (char *)&i__7, (ftnlen)sizeof(integer)); -#line 20101 "" +#line 20168 "" e_wsfe(); -#line 20101 "" +#line 20168 "" } -#line 20104 "" +#line 20171 "" if (all_1.ibar != comgrace_1.ibarmbr) { -#line 20105 "" +#line 20172 "" if (! (*optimize)) { -#line 20105 "" +#line 20172 "" i__2 = combibarcnt_1.ibarcnt + ibcoff; -#line 20105 "" +#line 20172 "" outbar_(&i__2, &jprntb); -#line 20105 "" +#line 20172 "" } -#line 20106 "" +#line 20173 "" } else { -#line 20107 "" +#line 20174 "" if (! (*optimize)) { -#line 20108 "" - s_wsfe(&io___1314); -#line 20108 "" +#line 20175 "" + s_wsfe(&io___1316); +#line 20175 "" do_fio(&c__1, " Multibar rest, bars", (ftnlen)20); -#line 20108 "" +#line 20175 "" i__2 = combibarcnt_1.ibarcnt + ibcoff; -#line 20108 "" +#line 20175 "" do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer)); -#line 20108 "" +#line 20175 "" do_fio(&c__1, "-", (ftnlen)1); -#line 20108 "" +#line 20175 "" i__7 = combibarcnt_1.ibarcnt + ibcoff + comgrace_1.mbrest - 1; -#line 20108 "" +#line 20175 "" do_fio(&c__1, (char *)&i__7, (ftnlen)sizeof(integer)); -#line 20108 "" +#line 20175 "" e_wsfe(); -#line 20110 "" - s_wsfe(&io___1315); -#line 20110 "" +#line 20177 "" + s_wsfe(&io___1317); +#line 20177 "" do_fio(&c__1, " Multibar rest, bars", (ftnlen)20); -#line 20110 "" +#line 20177 "" i__2 = combibarcnt_1.ibarcnt + ibcoff; -#line 20110 "" +#line 20177 "" do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer)); -#line 20110 "" +#line 20177 "" do_fio(&c__1, "-", (ftnlen)1); -#line 20110 "" +#line 20177 "" i__7 = combibarcnt_1.ibarcnt + ibcoff + comgrace_1.mbrest - 1; -#line 20110 "" +#line 20177 "" do_fio(&c__1, (char *)&i__7, (ftnlen)sizeof(integer)); -#line 20110 "" +#line 20177 "" e_wsfe(); -#line 20112 "" +#line 20179 "" jprntb = 0; -#line 20113 "" +#line 20180 "" } -#line 20114 "" +#line 20181 "" ibcoff = ibcoff + comgrace_1.mbrest - 1; /* if (ibar.eq.1 .and. firstgulp .and. */ /* * .not.btest(islur(1,1),5)) xb4mbr = facmtr*musicsize */ -#line 20117 "" +#line 20184 "" if (all_1.ibar == 1 && all_1.firstgulp && ! bit_test(all_1.islur[ 0],5)) { -#line 20117 "" +#line 20184 "" comgrace_1.xb4mbr = all_1.musicsize * -.2f; -#line 20117 "" +#line 20184 "" } -#line 20119 "" +#line 20186 "" } /* Move the read to after end-of-bar hardspace checks, so we get right poenom */ @@ -47414,137 +47541,137 @@ L2: /* compute additional pts and store them in hpttot(1...nhstot). Finally in */ /* subroutine askfig, write true pts where placeholders are. */ -#line 20135 "" +#line 20202 "" ioff = 0; -#line 20136 "" +#line 20203 "" if (all_1.ibar > 1) { -#line 20136 "" +#line 20203 "" ioff = all_1.nib[(all_1.ibar - 1) * 24 - 24]; -#line 20136 "" +#line 20203 "" } -#line 20137 "" +#line 20204 "" clchb = bit_test(all_1.islur[(ioff + 1) * 24 - 24],15); -#line 20138 "" +#line 20205 "" putmbr = FALSE_; -#line 20139 "" +#line 20206 "" if (ismbr) { -#line 20140 "" +#line 20207 "" if (clchb) { /* cc */ /* cc Clef change and multi-bar rest coming up. Kluge to get space at end of rest. */ /* cc */ -#line 20144 "" - s_wsfe(&io___1319); +#line 20211 "" + s_wsfe(&io___1321); /* Writing concatenation */ -#line 20144 "" +#line 20211 "" i__9[0] = 1, a__6[0] = all_1.sq; -#line 20144 "" +#line 20211 "" i__9[1] = 3, a__6[1] = "let"; -#line 20144 "" +#line 20211 "" i__9[2] = 1, a__6[2] = all_1.sq; -#line 20144 "" +#line 20211 "" i__9[3] = 4, a__6[3] = "mbrt"; -#line 20144 "" +#line 20211 "" i__9[4] = 1, a__6[4] = all_1.sq; -#line 20144 "" +#line 20211 "" i__9[5] = 6, a__6[5] = "mbrest"; -#line 20144 "" +#line 20211 "" i__9[6] = 1, a__6[6] = all_1.sq; -#line 20144 "" +#line 20211 "" i__9[7] = 3, a__6[7] = "def"; -#line 20144 "" +#line 20211 "" i__9[8] = 1, a__6[8] = all_1.sq; -#line 20144 "" +#line 20211 "" i__9[9] = 14, a__6[9] = "mbrest#1#2#3{%"; -#line 20144 "" +#line 20211 "" s_cat(ch__9, a__6, i__9, &c__10, (ftnlen)35); -#line 20144 "" +#line 20211 "" do_fio(&c__1, ch__9, (ftnlen)35); -#line 20144 "" +#line 20211 "" e_wsfe(); -#line 20146 "" - s_wsfe(&io___1320); +#line 20213 "" + s_wsfe(&io___1322); /* Writing concatenation */ -#line 20146 "" +#line 20213 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20146 "" +#line 20213 "" i__6[1] = 13, a__4[1] = "mbrt{#1}{#2}{"; -#line 20146 "" +#line 20213 "" s_cat(ch__10, a__4, i__6, &c__2, (ftnlen)14); -#line 20146 "" +#line 20213 "" do_fio(&c__1, ch__10, (ftnlen)14); -#line 20146 "" +#line 20213 "" r__1 = all_1.musicsize * .55f; -#line 20146 "" +#line 20213 "" do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real)); /* Writing concatenation */ -#line 20146 "" +#line 20213 "" i__10[0] = 1, a__7[0] = "}"; -#line 20146 "" +#line 20213 "" i__10[1] = 1, a__7[1] = all_1.sq; -#line 20146 "" +#line 20213 "" i__10[2] = 6, a__7[2] = "global"; -#line 20146 "" +#line 20213 "" i__10[3] = 1, a__7[3] = all_1.sq; -#line 20146 "" +#line 20213 "" i__10[4] = 3, a__7[4] = "let"; -#line 20146 "" +#line 20213 "" i__10[5] = 1, a__7[5] = all_1.sq; -#line 20146 "" +#line 20213 "" i__10[6] = 6, a__7[6] = "mbrest"; -#line 20146 "" +#line 20213 "" i__10[7] = 1, a__7[7] = all_1.sq; -#line 20146 "" +#line 20213 "" i__10[8] = 6, a__7[8] = "mbrt}%"; -#line 20146 "" +#line 20213 "" s_cat(ch__4, a__7, i__10, &c__9, (ftnlen)26); -#line 20146 "" +#line 20213 "" do_fio(&c__1, ch__4, (ftnlen)26); -#line 20146 "" +#line 20213 "" e_wsfe(); /* c */ /* c RDT suggestion is inset blank barline - 160103 Abandoned */ /* c */ /* write(11,'(a)')sq//'setemptybar'//sq//'bar'//sq//'qspace' */ /* * //sq//'advance'//sq//'barno-1' */ -#line 20153 "" +#line 20220 "" } -#line 20154 "" +#line 20221 "" ismbr = FALSE_; -#line 20155 "" +#line 20222 "" putmbr = TRUE_; -#line 20156 "" +#line 20223 "" } -#line 20157 "" +#line 20224 "" if (all_1.ibar == comgrace_1.ibarmbr) { -#line 20157 "" +#line 20224 "" ismbr = TRUE_; -#line 20157 "" +#line 20224 "" } /* Set flag here so at start of next bar, if there's a clef change, can add space */ /* after the mbr with the above kluge */ -#line 20162 "" +#line 20229 "" if (! (clchb || comnsp_2.flgndb)) { -#line 20162 "" +#line 20229 "" goto L23; -#line 20162 "" +#line 20229 "" } /* Must check available space */ -#line 20166 "" +#line 20233 "" ptsndb = 0.f; /* Zero out block signal */ -#line 20170 "" +#line 20237 "" if (clchb) { -#line 20170 "" +#line 20237 "" all_1.islur[(ioff + 1) * 24 - 24] = bit_clear(all_1.islur[(ioff + 1) * 24 - 24],15); -#line 20170 "" +#line 20237 "" } /* In this loop, we determine how much hardspace is needed (if any) */ @@ -47554,240 +47681,240 @@ L2: /* one. */ /* 4/18/98 Apparently nmxsav was a solution to the above problem */ -#line 20179 "" +#line 20246 "" i__2 = all_1.nv; -#line 20179 "" +#line 20246 "" for (all_1.iv = 1; all_1.iv <= i__2; ++all_1.iv) { -#line 20180 "" +#line 20247 "" i__7 = comnsp_2.nvmxsav[all_1.iv - 1]; -#line 20180 "" +#line 20247 "" for (kv = 1; kv <= i__7; ++kv) { -#line 20181 "" +#line 20248 "" commvl_1.ivx = comnsp_2.ivmxsav[all_1.iv + kv * 24 - 25]; -#line 20182 "" +#line 20249 "" ptsndv = comnsp_2.flgndv[commvl_1.ivx - 1] * comask_1.wheadpt; -#line 20183 "" +#line 20250 "" ioff = 0; -#line 20184 "" +#line 20251 "" if (all_1.ibar > 1) { -#line 20185 "" +#line 20252 "" ioff = all_1.nib[commvl_1.ivx + (all_1.ibar - 1) * 24 - 25]; -#line 20186 "" +#line 20253 "" ip = ioff; -#line 20187 "" +#line 20254 "" if (all_1.ibar > 2) { -#line 20187 "" +#line 20254 "" ip = ioff - all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 - 25]; -#line 20187 "" +#line 20254 "" } /* prevtn(ivx) = tnote(iand(ipl(ivx,ip),255)) */ -#line 20189 "" +#line 20256 "" comnsp_2.prevtn[commvl_1.ivx - 1] = all_1.tnote[ comipl2_1.ipl2[commvl_1.ivx + ip * 24 - 25] - 1]; /* If ibar=1 (1st bar in input block), prevtn(ivx) was set at end of makeabar. */ -#line 20193 "" +#line 20260 "" } /* Only allow clef changes when ivx <= nv */ -#line 20197 "" +#line 20264 "" if (commvl_1.ivx <= all_1.nv) { -#line 20198 "" +#line 20265 "" clchv[all_1.iv - 1] = clchb && bit_test(all_1.islur[ all_1.iv + (ioff + 1) * 24 - 25],11); -#line 20199 "" +#line 20266 "" if (clchv[all_1.iv - 1]) { /* Clef change in this voice. Turn off signal. Get space avail. */ -#line 20203 "" +#line 20270 "" all_1.islur[all_1.iv + (ioff + 1) * 24 - 25] = bit_clear(all_1.islur[all_1.iv + (ioff + 1) * 24 - 25],11); -#line 20204 "" +#line 20271 "" if ((r__1 = comnsp_2.prevtn[all_1.iv - 1] - comnsp_2.space[comnsp_2.nb - 1], dabs(r__1)) < comtol_1.tol) { -#line 20204 "" +#line 20271 "" ptsndv += combmh_1.clefend * comask_1.wheadpt; -#line 20204 "" +#line 20271 "" } -#line 20206 "" +#line 20273 "" } -#line 20207 "" +#line 20274 "" } /* Computing MAX */ -#line 20208 "" +#line 20275 "" r__1 = ptsndb, r__2 = ptsndv + comask_1.wheadpt * spfacs_1.xspfac; -#line 20208 "" +#line 20275 "" ptsndb = dmax(r__1,r__2); -#line 20209 "" +#line 20276 "" /* L16: */ -#line 20209 "" +#line 20276 "" } -#line 20209 "" +#line 20276 "" } /* ???? where is nb set??? nb probably in left over from makeabar */ -#line 20213 "" +#line 20280 "" r__1 = comnsp_2.space[comnsp_2.nb - 1] * squez[comnsp_2.nb - 1]; -#line 20213 "" +#line 20280 "" esk = feon_(&r__1); -#line 20214 "" +#line 20281 "" ptsdflt = esk * comask_1.poenom - comask_1.wheadpt; /* if ((ptsndb.gt.ptsdflt.or.ptsgnd.gt.0.) .and. movbrk.eq.0) then */ -#line 20216 "" +#line 20283 "" if ((ptsndb > ptsdflt || comnsp_2.ptsgnd > 0.f) && comget_1.movbrk == 0 && ! putmbr) { /* Must ADD hardspace! So put in a placeholder, and store params for later. */ -#line 20221 "" +#line 20288 "" if (comlast_1.islast) { -#line 20221 "" - s_wsfe(&io___1329); +#line 20288 "" + s_wsfe(&io___1331); /* Writing concatenation */ -#line 20221 "" +#line 20288 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20221 "" +#line 20288 "" i__6[1] = 18, a__4[1] = "xardspace{ pt}%"; -#line 20221 "" +#line 20288 "" s_cat(ch__11, a__4, i__6, &c__2, (ftnlen)19); -#line 20221 "" +#line 20288 "" do_fio(&c__1, ch__11, (ftnlen)19); -#line 20221 "" +#line 20288 "" e_wsfe(); -#line 20221 "" +#line 20288 "" } -#line 20222 "" +#line 20289 "" ++nhssys; -#line 20223 "" +#line 20290 "" if (ptsndb - ptsdflt > comnsp_2.ptsgnd - comask_1.poenom * comnsp_2.eskgnd) { -#line 20224 "" +#line 20291 "" hesk[nhssys - 1] = esk; -#line 20225 "" +#line 20292 "" hpts[nhssys - 1] = ptsndb + comask_1.wheadpt; -#line 20226 "" +#line 20293 "" } else { -#line 20227 "" +#line 20294 "" hesk[nhssys - 1] = comnsp_2.eskgnd; -#line 20228 "" +#line 20295 "" hpts[nhssys - 1] = comnsp_2.ptsgnd + comask_1.wheadpt; -#line 20229 "" +#line 20296 "" } -#line 20230 "" +#line 20297 "" comask_1.fixednew += hpts[nhssys - 1]; -#line 20231 "" +#line 20298 "" comask_1.scaldold += hesk[nhssys - 1]; -#line 20232 "" +#line 20299 "" } -#line 20233 "" +#line 20300 "" if (clchb) { -#line 20234 "" +#line 20301 "" i__7 = all_1.nv; -#line 20234 "" +#line 20301 "" for (all_1.iv = 1; all_1.iv <= i__7; ++all_1.iv) { -#line 20235 "" +#line 20302 "" if (clchv[all_1.iv - 1]) { /* Writing concatenation */ -#line 20236 "" +#line 20303 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20236 "" +#line 20303 "" i__6[1] = 6, a__4[1] = "znotes"; -#line 20236 "" +#line 20303 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 20237 "" +#line 20304 "" lnote = 7; -#line 20238 "" +#line 20305 "" i__2 = all_1.iv; -#line 20238 "" +#line 20305 "" for (iiv = 2; iiv <= i__2; ++iiv) { /* Writing concatenation */ -#line 20239 "" +#line 20306 "" i__6[0] = lnote, a__4[0] = notexq; -#line 20239 "" +#line 20306 "" i__6[1] = 1, a__4[1] = all_1.sepsymq + (iiv - 2); -#line 20239 "" +#line 20306 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 20240 "" +#line 20307 "" ++lnote; -#line 20241 "" +#line 20308 "" /* L24: */ -#line 20241 "" +#line 20308 "" } /* Recompute ioff since it will vary from voice to voice */ -#line 20245 "" +#line 20312 "" if (all_1.ibar == 1) { -#line 20246 "" +#line 20313 "" ioff = 0; -#line 20247 "" +#line 20314 "" } else { -#line 20248 "" +#line 20315 "" ioff = all_1.nib[all_1.iv + (all_1.ibar - 1) * 24 - 25]; -#line 20249 "" +#line 20316 "" } /* Must call clefsym to get nclef, even if there is a movement break */ -#line 20253 "" +#line 20320 "" clefsym_(&all_1.islur[all_1.iv + (ioff + 1) * 24 - 25], fmtq, &lclef, &nclef, (ftnlen)24); /* If clefq = '8', must change '0' in pos'n 9 to '8' */ -#line 20257 "" +#line 20324 "" if (bit_test(all_1.ipl[all_1.iv + (ioff + 1) * 24 - 25],2) ) { /* Writing concatenation */ -#line 20257 "" +#line 20324 "" i__8[0] = 8, a__5[0] = fmtq; -#line 20257 "" +#line 20324 "" i__8[1] = 1, a__5[1] = "8"; -#line 20257 "" +#line 20324 "" i__8[2] = 1, a__5[2] = fmtq + 9; -#line 20257 "" +#line 20324 "" s_cat(fmtq, a__5, i__8, &c__3, (ftnlen)24); -#line 20257 "" +#line 20324 "" } -#line 20259 "" +#line 20326 "" if (comget_1.movbrk == 0 && comlast_1.islast) { -#line 20259 "" - s_wsfe(&io___1338); +#line 20326 "" + s_wsfe(&io___1340); /* Writing concatenation */ -#line 20259 "" +#line 20326 "" i__5[0] = lnote, a__3[0] = notexq; -#line 20259 "" +#line 20326 "" i__5[1] = lclef, a__3[1] = fmtq; -#line 20259 "" +#line 20326 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 20259 "" +#line 20326 "" i__5[3] = 3, a__3[3] = "en%"; -#line 20259 "" +#line 20326 "" s_cat(ch__12, a__3, i__5, &c__4, (ftnlen)107); -#line 20259 "" +#line 20326 "" do_fio(&c__1, ch__12, lnote + lclef + 4); -#line 20259 "" +#line 20326 "" e_wsfe(); -#line 20259 "" +#line 20326 "" } /* call wsclef(iv,ninow,clefq,nclef) */ -#line 20263 "" +#line 20330 "" wsclef_(&all_1.iv, &comnotes_1.ninow, &nclef); /* Set new flag to be used just outside this loop, to kluge */ /* any calls to \CenterBar for full-bar rests, to make room for clef. */ -#line 20268 "" +#line 20335 "" newclef = TRUE_; /* 151220 */ @@ -47797,576 +47924,576 @@ L2: /* and if we change from TLO to normal clef, need to resetclefsymbols */ /* if (clefq(iv) .eq. '8') then */ -#line 20277 "" +#line 20344 "" if (bit_test(all_1.ipl[all_1.iv + (ioff + 1) * 24 - 25],2) ) { -#line 20278 "" +#line 20345 "" if (all_1.iv <= 9) { -#line 20279 "" - s_wsfe(&io___1339); +#line 20346 "" + s_wsfe(&io___1341); /* Writing concatenation */ -#line 20279 "" +#line 20346 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20279 "" +#line 20346 "" i__6[1] = 19, a__4[1] = "settrebleclefsymbol"; -#line 20279 "" +#line 20346 "" s_cat(ch__6, a__4, i__6, &c__2, (ftnlen)20); -#line 20279 "" +#line 20346 "" do_fio(&c__1, ch__6, (ftnlen)20); -#line 20279 "" +#line 20346 "" do_fio(&c__1, (char *)&all_1.nv, (ftnlen)sizeof( integer)); /* Writing concatenation */ -#line 20279 "" +#line 20346 "" i__11[0] = 1, a__8[0] = all_1.sq; -#line 20279 "" +#line 20346 "" i__11[1] = 13, a__8[1] = "treblelowoct%"; -#line 20279 "" +#line 20346 "" s_cat(ch__10, a__8, i__11, &c__2, (ftnlen)14); -#line 20279 "" +#line 20346 "" do_fio(&c__1, ch__10, (ftnlen)14); -#line 20279 "" +#line 20346 "" e_wsfe(); -#line 20281 "" +#line 20348 "" } else { -#line 20282 "" - s_wsfe(&io___1340); +#line 20349 "" + s_wsfe(&io___1342); /* Writing concatenation */ -#line 20282 "" +#line 20349 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20282 "" +#line 20349 "" i__6[1] = 19, a__4[1] = "settrebleclefsymbol"; -#line 20282 "" +#line 20349 "" s_cat(ch__6, a__4, i__6, &c__2, (ftnlen)20); -#line 20282 "" +#line 20349 "" do_fio(&c__1, ch__6, (ftnlen)20); -#line 20282 "" +#line 20349 "" do_fio(&c__1, (char *)&all_1.nv, (ftnlen)sizeof( integer)); /* Writing concatenation */ -#line 20282 "" +#line 20349 "" i__11[0] = 1, a__8[0] = all_1.sq; -#line 20282 "" +#line 20349 "" i__11[1] = 13, a__8[1] = "treblelowoct%"; -#line 20282 "" +#line 20349 "" s_cat(ch__10, a__8, i__11, &c__2, (ftnlen)14); -#line 20282 "" +#line 20349 "" do_fio(&c__1, ch__10, (ftnlen)14); -#line 20282 "" +#line 20349 "" e_wsfe(); -#line 20284 "" +#line 20351 "" } -#line 20285 "" +#line 20352 "" } else { -#line 20286 "" +#line 20353 "" if (*(unsigned char *)&comclefq_1.clefq[all_1.iv - 1] == '8') { -#line 20287 "" - s_wsfe(&io___1341); +#line 20354 "" + s_wsfe(&io___1343); /* Writing concatenation */ -#line 20287 "" +#line 20354 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20287 "" +#line 20354 "" i__6[1] = 16, a__4[1] = "resetclefsymbols"; -#line 20287 "" +#line 20354 "" s_cat(ch__13, a__4, i__6, &c__2, (ftnlen)17); -#line 20287 "" +#line 20354 "" do_fio(&c__1, ch__13, (ftnlen)17); -#line 20287 "" +#line 20354 "" e_wsfe(); -#line 20288 "" +#line 20355 "" } -#line 20289 "" +#line 20356 "" } -#line 20290 "" +#line 20357 "" } -#line 20291 "" +#line 20358 "" /* L17: */ -#line 20291 "" +#line 20358 "" } -#line 20292 "" +#line 20359 "" if (comlast_1.islast) { -#line 20292 "" - s_wsfe(&io___1342); +#line 20359 "" + s_wsfe(&io___1344); /* Writing concatenation */ -#line 20292 "" +#line 20359 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20292 "" +#line 20359 "" i__6[1] = 11, a__4[1] = "pmxnewclefs"; -#line 20292 "" +#line 20359 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12); -#line 20292 "" +#line 20359 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 20292 "" +#line 20359 "" e_wsfe(); -#line 20292 "" +#line 20359 "" } -#line 20293 "" +#line 20360 "" } -#line 20294 "" +#line 20361 "" L23: /* Kluge \CenterBar for whole bar rests if necessary */ -#line 20298 "" +#line 20365 "" if (newclef && comclefrests_1.centrests) { /* write(11,'(a)')sq//'def'//sq//'value{11}%' */ -#line 20300 "" +#line 20367 "" r__1 = all_1.musicsize * .55f; -#line 20300 "" +#line 20367 "" nvalue = i_nint(&r__1); -#line 20301 "" +#line 20368 "" if (nvalue > 10) { -#line 20302 "" - s_wsfe(&io___1344); +#line 20369 "" + s_wsfe(&io___1346); /* Writing concatenation */ -#line 20302 "" +#line 20369 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 20302 "" +#line 20369 "" i__5[1] = 3, a__3[1] = "def"; -#line 20302 "" +#line 20369 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 20302 "" +#line 20369 "" i__5[3] = 6, a__3[3] = "value{"; -#line 20302 "" +#line 20369 "" s_cat(ch__15, a__3, i__5, &c__4, (ftnlen)11); -#line 20302 "" +#line 20369 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 20302 "" +#line 20369 "" do_fio(&c__1, (char *)&nvalue, (ftnlen)sizeof(integer)); -#line 20302 "" +#line 20369 "" do_fio(&c__1, "}%", (ftnlen)2); -#line 20302 "" +#line 20369 "" e_wsfe(); -#line 20304 "" +#line 20371 "" } else { -#line 20305 "" - s_wsfe(&io___1345); +#line 20372 "" + s_wsfe(&io___1347); /* Writing concatenation */ -#line 20305 "" +#line 20372 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 20305 "" +#line 20372 "" i__5[1] = 3, a__3[1] = "def"; -#line 20305 "" +#line 20372 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 20305 "" +#line 20372 "" i__5[3] = 6, a__3[3] = "value{"; -#line 20305 "" +#line 20372 "" s_cat(ch__15, a__3, i__5, &c__4, (ftnlen)11); -#line 20305 "" +#line 20372 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 20305 "" +#line 20372 "" do_fio(&c__1, (char *)&nvalue, (ftnlen)sizeof(integer)); -#line 20305 "" +#line 20372 "" do_fio(&c__1, "}%", (ftnlen)2); -#line 20305 "" +#line 20372 "" e_wsfe(); -#line 20307 "" +#line 20374 "" } -#line 20308 "" +#line 20375 "" } -#line 20309 "" +#line 20376 "" newclef = FALSE_; -#line 20310 "" +#line 20377 "" comclefrests_1.centrests = FALSE_; /* End of loop for end-of-bar hardspaces and non-movbrk clef symbol. */ -#line 20314 "" +#line 20381 "" if (comask_1.bar1syst) { -#line 20315 "" - s_rsle(&io___1346); -#line 20315 "" +#line 20382 "" + s_rsle(&io___1348); +#line 20382 "" do_lio(&c__4, &c__1, (char *)&comask_1.poenom, (ftnlen)sizeof( real)); -#line 20315 "" +#line 20382 "" e_rsle(); -#line 20316 "" +#line 20383 "" } /* Repeat symbols. Haven't slid down yet, so use islur(1,nib(1,ibar-1)+1) */ -#line 20320 "" +#line 20387 "" if (all_1.ibar == 1) { -#line 20321 "" +#line 20388 "" islnow = all_1.islur[0]; /* iornqnow = iornq(1,1) */ -#line 20323 "" +#line 20390 "" iplnow = all_1.ipl[0]; -#line 20324 "" +#line 20391 "" } else { -#line 20325 "" +#line 20392 "" islnow = all_1.islur[(all_1.nib[(all_1.ibar - 1) * 24 - 24] + 1) * 24 - 24]; /* iornqnow = iornq(1,nib(1,ibar-1)+1) */ -#line 20327 "" +#line 20394 "" iplnow = all_1.ipl[(all_1.nib[(all_1.ibar - 1) * 24 - 24] + 1) * 24 - 24]; -#line 20328 "" +#line 20395 "" } /* Check for R-symbols set at end of prior input block */ -#line 20332 "" +#line 20399 "" if (comget_1.movbrk == 0 && *(unsigned char *)comget_1.rptfq2 != 'E') { -#line 20333 "" +#line 20400 "" if (*(unsigned char *)comget_1.rptfq2 == 'D') { -#line 20334 "" +#line 20401 "" islnow = bit_set(islnow,26); -#line 20335 "" +#line 20402 "" } else if (*(unsigned char *)comget_1.rptfq2 == 'r') { -#line 20336 "" +#line 20403 "" islnow = bit_set(islnow,6); -#line 20337 "" +#line 20404 "" } else if (*(unsigned char *)comget_1.rptfq2 == 'd') { -#line 20338 "" +#line 20405 "" islnow = bit_set(islnow,8); -#line 20339 "" +#line 20406 "" } else if (*(unsigned char *)comget_1.rptfq2 == 'b') { -#line 20340 "" +#line 20407 "" islnow = bit_set(islnow,25); -#line 20341 "" +#line 20408 "" } else { -#line 20342 "" - s_wsle(&io___1349); -#line 20342 "" +#line 20409 "" + s_wsle(&io___1351); +#line 20409 "" e_wsle(); -#line 20343 "" - s_wsle(&io___1350); -#line 20343 "" +#line 20410 "" + s_wsle(&io___1352); +#line 20410 "" do_lio(&c__9, &c__1, "Illegal symbol with \"R\" at end of in"\ "put block:", (ftnlen)46); -#line 20343 "" +#line 20410 "" do_lio(&c__9, &c__1, comget_1.rptfq2, (ftnlen)1); -#line 20343 "" +#line 20410 "" e_wsle(); -#line 20345 "" +#line 20412 "" stop1_(); -#line 20346 "" +#line 20413 "" } -#line 20347 "" +#line 20414 "" *(unsigned char *)comget_1.rptfq2 = 'E'; -#line 20348 "" +#line 20415 "" } -#line 20349 "" +#line 20416 "" if ((islnow & 352) != 0) { /* Bit 5(lrpt), 6(rrpt), or 8(doublebar) has been set */ -#line 20353 "" +#line 20420 "" lrpt = bit_test(islnow,5); -#line 20354 "" +#line 20421 "" rrpt = bit_test(islnow,6); -#line 20355 "" +#line 20422 "" lrptpend = lrpt && comask_1.bar1syst; -#line 20356 "" +#line 20423 "" if (lrpt && ! lrptpend) { -#line 20357 "" +#line 20424 "" if (rrpt) { -#line 20358 "" +#line 20425 "" if (comlast_1.islast) { -#line 20358 "" - s_wsfe(&io___1353); +#line 20425 "" + s_wsfe(&io___1355); /* Writing concatenation */ -#line 20358 "" +#line 20425 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20358 "" +#line 20425 "" i__6[1] = 18, a__4[1] = "setleftrightrepeat"; -#line 20358 "" +#line 20425 "" s_cat(ch__11, a__4, i__6, &c__2, (ftnlen)19); -#line 20358 "" +#line 20425 "" do_fio(&c__1, ch__11, (ftnlen)19); -#line 20358 "" +#line 20425 "" e_wsfe(); -#line 20358 "" +#line 20425 "" } -#line 20359 "" +#line 20426 "" comask_1.fixednew = comask_1.fixednew + comask_1.wheadpt * spfacs_1.lrrptfac - .4f; -#line 20360 "" +#line 20427 "" } else { -#line 20361 "" +#line 20428 "" if (comlast_1.islast) { -#line 20361 "" - s_wsfe(&io___1354); +#line 20428 "" + s_wsfe(&io___1356); /* Writing concatenation */ -#line 20361 "" +#line 20428 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20361 "" +#line 20428 "" i__6[1] = 13, a__4[1] = "setleftrepeat"; -#line 20361 "" +#line 20428 "" s_cat(ch__10, a__4, i__6, &c__2, (ftnlen)14); -#line 20361 "" +#line 20428 "" do_fio(&c__1, ch__10, (ftnlen)14); -#line 20361 "" +#line 20428 "" e_wsfe(); -#line 20361 "" +#line 20428 "" } -#line 20362 "" +#line 20429 "" comask_1.fixednew = comask_1.fixednew + comask_1.wheadpt * spfacs_1.rptfac - .4f; -#line 20363 "" +#line 20430 "" } -#line 20364 "" +#line 20431 "" } else if (rrpt) { -#line 20365 "" +#line 20432 "" if (comlast_1.islast) { -#line 20365 "" - s_wsfe(&io___1355); +#line 20432 "" + s_wsfe(&io___1357); /* Writing concatenation */ -#line 20365 "" +#line 20432 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20365 "" +#line 20432 "" i__6[1] = 14, a__4[1] = "setrightrepeat"; -#line 20365 "" +#line 20432 "" s_cat(ch__16, a__4, i__6, &c__2, (ftnlen)15); -#line 20365 "" +#line 20432 "" do_fio(&c__1, ch__16, (ftnlen)15); -#line 20365 "" +#line 20432 "" e_wsfe(); -#line 20365 "" +#line 20432 "" } -#line 20366 "" +#line 20433 "" comask_1.fixednew = comask_1.fixednew + comask_1.wheadpt * spfacs_1.rptfac - .4f; -#line 20367 "" +#line 20434 "" } else if (bit_test(islnow,8)) { -#line 20368 "" +#line 20435 "" if (comlast_1.islast) { -#line 20368 "" - s_wsfe(&io___1356); +#line 20435 "" + s_wsfe(&io___1358); /* Writing concatenation */ -#line 20368 "" +#line 20435 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20368 "" +#line 20435 "" i__6[1] = 12, a__4[1] = "setdoublebar"; -#line 20368 "" +#line 20435 "" s_cat(ch__17, a__4, i__6, &c__2, (ftnlen)13); -#line 20368 "" +#line 20435 "" do_fio(&c__1, ch__17, (ftnlen)13); -#line 20368 "" +#line 20435 "" e_wsfe(); -#line 20368 "" +#line 20435 "" } -#line 20369 "" +#line 20436 "" comask_1.fixednew = comask_1.fixednew + comask_1.wheadpt * spfacs_1.dbarfac - .4f; -#line 20370 "" +#line 20437 "" } -#line 20371 "" +#line 20438 "" } else if (bit_test(islnow,26)) { /* doubleBAR */ -#line 20375 "" +#line 20442 "" if (comlast_1.islast) { -#line 20375 "" - s_wsfe(&io___1357); +#line 20442 "" + s_wsfe(&io___1359); /* Writing concatenation */ -#line 20375 "" +#line 20442 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20375 "" +#line 20442 "" i__6[1] = 12, a__4[1] = "setdoubleBAR"; -#line 20375 "" +#line 20442 "" s_cat(ch__17, a__4, i__6, &c__2, (ftnlen)13); -#line 20375 "" +#line 20442 "" do_fio(&c__1, ch__17, (ftnlen)13); -#line 20375 "" +#line 20442 "" e_wsfe(); -#line 20375 "" +#line 20442 "" } -#line 20376 "" +#line 20443 "" comask_1.fixednew = comask_1.fixednew + comask_1.wheadpt * spfacs_1.ddbarfac - .4f; /* else if (btest(iornqnow,29)) then */ -#line 20378 "" +#line 20445 "" } else if (bit_test(iplnow,0)) { /* no bar line */ /* -- if (islast) write(11,'(a)')sq//'setzalaligne' */ /* ++ */ -#line 20384 "" +#line 20451 "" if (comlast_1.islast) { -#line 20385 "" +#line 20452 "" if (comget_1.movbrk == 0) { -#line 20386 "" - s_wsfe(&io___1358); +#line 20453 "" + s_wsfe(&io___1360); /* Writing concatenation */ -#line 20386 "" +#line 20453 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20386 "" +#line 20453 "" i__6[1] = 12, a__4[1] = "setzalaligne"; -#line 20386 "" +#line 20453 "" s_cat(ch__17, a__4, i__6, &c__2, (ftnlen)13); -#line 20386 "" +#line 20453 "" do_fio(&c__1, ch__17, (ftnlen)13); -#line 20386 "" +#line 20453 "" e_wsfe(); -#line 20387 "" +#line 20454 "" } else { /* Encountered "Rz" at start of input block at start of new movement, Must */ /* use newmovement macro with arg 4 rather than setzalaligne, since former */ /* already redefines stoppiece. */ -#line 20393 "" +#line 20460 "" *(unsigned char *)comget_1.rptfq2 = 'z'; -#line 20394 "" +#line 20461 "" } -#line 20395 "" +#line 20462 "" } /* ++ */ -#line 20397 "" +#line 20464 "" comask_1.fixednew += -.4f; -#line 20398 "" +#line 20465 "" } /* 1st and 2nd endings */ -#line 20402 "" +#line 20469 "" svolta = bit_test(islnow,7); -#line 20403 "" +#line 20470 "" evolta = bit_test(islnow,9); -#line 20404 "" +#line 20471 "" if (evolta) { -#line 20405 "" +#line 20472 "" if (bit_test(islnow,10)) { -#line 20406 "" +#line 20473 "" if (comlast_1.islast) { -#line 20406 "" - s_wsfe(&io___1361); +#line 20473 "" + s_wsfe(&io___1363); /* Writing concatenation */ -#line 20406 "" +#line 20473 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20406 "" +#line 20473 "" i__6[1] = 11, a__4[1] = "endvoltabox"; -#line 20406 "" +#line 20473 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12); -#line 20406 "" +#line 20473 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 20406 "" +#line 20473 "" e_wsfe(); -#line 20406 "" +#line 20473 "" } -#line 20407 "" +#line 20474 "" } else { -#line 20408 "" +#line 20475 "" if (comlast_1.islast) { -#line 20408 "" - s_wsfe(&io___1362); +#line 20475 "" + s_wsfe(&io___1364); /* Writing concatenation */ -#line 20408 "" +#line 20475 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20408 "" +#line 20475 "" i__6[1] = 8, a__4[1] = "endvolta"; -#line 20408 "" +#line 20475 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9); -#line 20408 "" +#line 20475 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 20408 "" +#line 20475 "" e_wsfe(); -#line 20408 "" +#line 20475 "" } -#line 20409 "" +#line 20476 "" } -#line 20410 "" +#line 20477 "" onvolt = FALSE_; -#line 20411 "" +#line 20478 "" } -#line 20412 "" +#line 20479 "" if (svolta) { -#line 20413 "" +#line 20480 "" ++comgrace_1.nvolt; -#line 20414 "" +#line 20481 "" lvoltxt = i_indx(comgrace_1.voltxtq + (comgrace_1.nvolt - 1) * 20, " ", (ftnlen)20, (ftnlen)1) - 1; -#line 20415 "" +#line 20482 "" if (lvoltxt == 1) { -#line 20416 "" +#line 20483 "" if (comlast_1.islast) { -#line 20416 "" - s_wsfe(&io___1364); +#line 20483 "" + s_wsfe(&io___1366); /* Writing concatenation */ -#line 20416 "" +#line 20483 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 20416 "" +#line 20483 "" i__5[1] = 8, a__3[1] = "Setvolta"; -#line 20416 "" +#line 20483 "" i__5[2] = 1, a__3[2] = comgrace_1.voltxtq + ( comgrace_1.nvolt - 1) * 20; -#line 20416 "" +#line 20483 "" i__5[3] = 1, a__3[3] = "%"; -#line 20416 "" +#line 20483 "" s_cat(ch__15, a__3, i__5, &c__4, (ftnlen)11); -#line 20416 "" +#line 20483 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 20416 "" +#line 20483 "" e_wsfe(); -#line 20416 "" +#line 20483 "" } -#line 20418 "" +#line 20485 "" } else { -#line 20419 "" +#line 20486 "" if (comlast_1.islast) { -#line 20419 "" - s_wsfe(&io___1365); +#line 20486 "" + s_wsfe(&io___1367); /* Writing concatenation */ -#line 20419 "" +#line 20486 "" i__12[0] = 1, a__9[0] = all_1.sq; -#line 20419 "" +#line 20486 "" i__12[1] = 8, a__9[1] = "Setvolta"; -#line 20419 "" +#line 20486 "" i__12[2] = 1, a__9[2] = "{"; -#line 20419 "" +#line 20486 "" i__12[3] = lvoltxt, a__9[3] = comgrace_1.voltxtq + ( comgrace_1.nvolt - 1) * 20; -#line 20419 "" +#line 20486 "" i__12[4] = 2, a__9[4] = "}%"; -#line 20419 "" +#line 20486 "" s_cat(ch__19, a__9, i__12, &c__5, (ftnlen)32); -#line 20419 "" +#line 20486 "" do_fio(&c__1, ch__19, lvoltxt + 12); -#line 20419 "" +#line 20486 "" e_wsfe(); -#line 20419 "" +#line 20486 "" } -#line 20421 "" +#line 20488 "" } -#line 20422 "" +#line 20489 "" onvolt = TRUE_; -#line 20423 "" +#line 20490 "" } -#line 20424 "" +#line 20491 "" if (all_1.ibar > 1) { -#line 20425 "" +#line 20492 "" ipnow = all_1.nib[(all_1.ibar - 1) * 24 - 24] + 1; -#line 20426 "" +#line 20493 "" } else { -#line 20427 "" +#line 20494 "" ipnow = 1; -#line 20428 "" +#line 20495 "" } -#line 20429 "" +#line 20496 "" iplnow = all_1.ipl[ipnow * 24 - 24]; -#line 20430 "" +#line 20497 "" if (comask_1.bar1syst) { /* If listslur>0, then there is at least one slur or tie carried over the break */ -#line 20434 "" +#line 20501 "" ispstie = FALSE_; -#line 20435 "" +#line 20502 "" if (comnotes_1.optlinebreakties && ! comslur_1.fontslur && comslur_1.listslur != 0 && comlast_1.islast) { -#line 20435 "" +#line 20502 "" linebreakties_(all_1.isdat1, all_1.isdat2, all_1.isdat3, all_1.isdat4, &all_1.nsdat, &ispstie, all_1.sepsymq, ( ftnlen)1); -#line 20435 "" +#line 20502 "" } -#line 20439 "" +#line 20506 "" ++all_1.iline; /* End an old system, Start a new system */ @@ -48374,225 +48501,225 @@ L23: /* Reduce space before mbrest at start of system */ /* Need this even if no accidentals in key signature */ -#line 20446 "" +#line 20513 "" if (all_1.ibar == comgrace_1.ibarmbr) { -#line 20446 "" +#line 20513 "" comgrace_1.xb4mbr = all_1.musicsize * -.2f; -#line 20446 "" +#line 20513 "" } -#line 20448 "" +#line 20515 "" if (all_1.iline != 1) { /* Not first line. */ /* Get corrected poe = points/elemskip for *previous* system */ -#line 20453 "" +#line 20520 "" wdpt = comtop_1.widthpt * (1 - comtop_1.fracindent); -#line 20454 "" +#line 20521 "" poe = (wdpt - fsyst * all_1.musicsize - nbarss * .4f - comask_1.fixednew) / (elsktot + comask_1.fbar * nbarss - comask_1.scaldold); -#line 20456 "" +#line 20523 "" ++isyscnt; -#line 20457 "" +#line 20524 "" poevec[isyscnt] = poe; /* Transfer data for system into global arrays to hold until very end */ -#line 20461 "" +#line 20528 "" i__7 = comas2_1.nasksys; -#line 20461 "" +#line 20528 "" for (ia = 1; ia <= i__7; ++ia) { -#line 20462 "" +#line 20529 "" ++comas3_1.iask; -#line 20463 "" +#line 20530 "" comas3_1.ask[comas3_1.iask - 1] = comas2_1.wasksys[ia - 1] / poe - (r__1 = comas2_1.elasksys[ia - 1], dabs( r__1)); /* Only admit negative ask if it was user-defined space, signalled by elask<=0. */ -#line 20467 "" +#line 20534 "" if (comas2_1.elasksys[ia - 1] > 0.f) { -#line 20467 "" +#line 20534 "" comas3_1.ask[comas3_1.iask - 1] = r_dim(&comas3_1.ask[ - comas3_1.iask - 1], &c_b762); -#line 20467 "" + comas3_1.iask - 1], &c_b768); +#line 20534 "" } -#line 20468 "" +#line 20535 "" /* L9: */ -#line 20468 "" +#line 20535 "" } -#line 20469 "" +#line 20536 "" i__7 = nhssys; -#line 20469 "" +#line 20536 "" for (ia = 1; ia <= i__7; ++ia) { -#line 20470 "" +#line 20537 "" ++nhstot; /* Computing MAX */ -#line 20471 "" +#line 20538 "" r__1 = hpts[ia - 1] - hesk[ia - 1] * poe; -#line 20471 "" +#line 20538 "" comhsp_1.hpttot[nhstot - 1] = dmax(r__1,0.f); -#line 20472 "" +#line 20539 "" /* L25: */ -#line 20472 "" +#line 20539 "" } /* Reset counters for new system */ -#line 20476 "" +#line 20543 "" comask_1.scaldold = 0.f; -#line 20477 "" +#line 20544 "" comask_1.fixednew = 0.f; -#line 20478 "" +#line 20545 "" comas2_1.nasksys = 0; -#line 20479 "" +#line 20546 "" nhssys = 0; -#line 20480 "" +#line 20547 "" } /* End of if block for first bar of non-first system. Still 1st bar, any system */ -#line 20484 "" +#line 20551 "" if (comlast_1.islast && all_1.figbass) { -#line 20484 "" - s_wsfe(&io___1374); +#line 20551 "" + s_wsfe(&io___1376); /* Writing concatenation */ -#line 20484 "" +#line 20551 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20484 "" +#line 20551 "" i__6[1] = 8, a__4[1] = "fixdrop%"; -#line 20484 "" +#line 20551 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9); -#line 20484 "" +#line 20551 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 20484 "" +#line 20551 "" e_wsfe(); -#line 20484 "" +#line 20551 "" } -#line 20485 "" +#line 20552 "" ++isystpg; /* Try moving the next stmt way down, to fix a bug and get \eject printed at */ /* end of single-system page. */ /* if (isystpg .eq. nsystp(ipage)) isystpg = 0 */ -#line 20490 "" - s_rsle(&io___1375); -#line 20490 "" +#line 20557 "" + s_rsle(&io___1377); +#line 20557 "" do_lio(&c__3, &c__1, (char *)&nbarss, (ftnlen)sizeof(integer)); -#line 20490 "" +#line 20557 "" do_lio(&c__4, &c__1, (char *)&elsktot, (ftnlen)sizeof(real)); -#line 20490 "" +#line 20557 "" do_lio(&c__4, &c__1, (char *)&fsyst, (ftnlen)sizeof(real)); -#line 20490 "" +#line 20557 "" do_lio(&c__4, &c__1, (char *)&frac, (ftnlen)sizeof(real)); -#line 20490 "" +#line 20557 "" do_lio(&c__4, &c__1, (char *)&comeon_1.eonk, (ftnlen)sizeof(real)) ; -#line 20490 "" +#line 20557 "" do_lio(&c__4, &c__1, (char *)&comeon_1.ewmxk, (ftnlen)sizeof(real) ); -#line 20490 "" +#line 20557 "" e_rsle(); -#line 20491 "" +#line 20558 "" if (all_1.iline > 1) { -#line 20491 "" +#line 20558 "" comtop_1.fracindent = frac; -#line 20491 "" +#line 20558 "" } -#line 20492 "" +#line 20559 "" if (all_1.figbass) { -#line 20493 "" +#line 20560 "" all_1.ifigdr[(all_1.iline << 1) - 2] = 4; -#line 20494 "" +#line 20561 "" all_1.ifigdr[(all_1.iline << 1) - 1] = 4; -#line 20495 "" +#line 20562 "" } -#line 20496 "" +#line 20563 "" all_1.slfac = slfac1 * all_1.musicsize * elsktot; -#line 20497 "" +#line 20564 "" if (all_1.iline != 1) { /* For the line just _finished_, put figdrop in separate file. */ -#line 20501 "" +#line 20568 "" if (all_1.figbass) { -#line 20501 "" - s_wsfe(&io___1377); +#line 20568 "" + s_wsfe(&io___1379); /* Writing concatenation */ -#line 20501 "" +#line 20568 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20501 "" +#line 20568 "" i__6[1] = 8, a__4[1] = "figdrop="; -#line 20501 "" +#line 20568 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9); -#line 20501 "" +#line 20568 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 20501 "" +#line 20568 "" do_fio(&c__1, (char *)&all_1.ifigdr[(all_1.iline - 1 << 1) - 2], (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 20501 "" +#line 20568 "" i__8[0] = 1, a__5[0] = " "; -#line 20501 "" +#line 20568 "" i__8[1] = 1, a__5[1] = all_1.sq; -#line 20501 "" +#line 20568 "" i__8[2] = 8, a__5[2] = "figdtwo="; -#line 20501 "" +#line 20568 "" s_cat(ch__20, a__5, i__8, &c__3, (ftnlen)10); -#line 20501 "" +#line 20568 "" do_fio(&c__1, ch__20, (ftnlen)10); -#line 20501 "" +#line 20568 "" do_fio(&c__1, (char *)&all_1.ifigdr[(all_1.iline - 1 << 1) - 1], (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 20501 "" +#line 20568 "" i__11[0] = 1, a__8[0] = all_1.sq; -#line 20501 "" +#line 20568 "" i__11[1] = 3, a__8[1] = "or%"; -#line 20501 "" +#line 20568 "" s_cat(ch__21, a__8, i__11, &c__2, (ftnlen)4); -#line 20501 "" +#line 20568 "" do_fio(&c__1, ch__21, (ftnlen)4); -#line 20501 "" +#line 20568 "" e_wsfe(); -#line 20501 "" +#line 20568 "" } /* Check slurs in top staff for interference w/ barno. Only check when */ /* # if digits in barno >= |isig| But to keep on/off phasing, must ALWAYS */ /* keep track of ons and offs when |isig|<=3. */ -#line 20509 "" +#line 20576 "" r__1 = combibarcnt_1.ibarcnt + ibcoff + .01f; -#line 20509 "" +#line 20576 "" ndigbn = (integer) r_lg10(&r__1) + 1; -#line 20510 "" +#line 20577 "" comsln_1.isnx = 0; -#line 20511 "" +#line 20578 "" if (ndigbn >= abs(comtop_1.isig) && comsln_1.is1n1 > 0) { /* There's a slur in top voice over the line break, hgt=is1n1, idcode=is2n1 */ /* Look for termination in remainder of this input block. If not found, */ /* just use is1n1. Remember, haven't slid down yet. */ -#line 20517 "" +#line 20584 "" ioff = 0; -#line 20518 "" +#line 20585 "" if (all_1.ibar > 1) { -#line 20518 "" +#line 20585 "" ioff = all_1.nib[commvl_1.ivmx[all_1.nv + commvl_1.nvmx[all_1.nv - 1] * 24 - 25] + ( all_1.ibar - 1) * 24 - 25]; -#line 20518 "" +#line 20585 "" } -#line 20519 "" +#line 20586 "" i__7 = all_1.nsdat; -#line 20519 "" +#line 20586 "" for (isdat = 1; isdat <= i__7; ++isdat) { -#line 20520 "" +#line 20587 "" if (igetbits_(&all_1.isdat1[isdat - 1], &c__5, &c__13) == commvl_1.ivmx[all_1.nv + commvl_1.nvmx[ all_1.nv - 1] * 24 - 25] && ! bit_test( @@ -48604,82 +48731,82 @@ L23: /* is1n1 = max(is1n1,igetbits(isdat2(nsdat),7,19)) */ /* Computing MAX */ -#line 20527 "" +#line 20594 "" i__2 = comsln_1.is1n1, i__13 = igetbits_(& all_1.isdat2[isdat - 1], &c__7, &c__19); -#line 20527 "" +#line 20594 "" comsln_1.is1n1 = max(i__2,i__13); -#line 20528 "" +#line 20595 "" goto L51; -#line 20529 "" +#line 20596 "" } -#line 20530 "" +#line 20597 "" /* L50: */ -#line 20530 "" +#line 20597 "" } /* If exiting loop normally, did not find end of slur. c'est la vie. */ -#line 20534 "" +#line 20601 "" L51: -#line 20535 "" +#line 20602 "" i__7 = ncmid_(&all_1.nv, &c__1) + 1 + comsln_1.irzbnd; -#line 20535 "" +#line 20602 "" comsln_1.isnx = i_dim(&comsln_1.is1n1, &i__7); -#line 20536 "" +#line 20603 "" if (comsln_1.isnx > 0) { /* AHA! Slur likely to interfere with barno. */ /* Modified 090525 to use \bnrs */ -#line 20542 "" +#line 20609 "" slint = TRUE_; -#line 20543 "" +#line 20610 "" s_copy(fmtq, "(a16,i1,a14)", (ftnlen)24, (ftnlen)12); -#line 20544 "" +#line 20611 "" if (comsln_1.irzbnd + comsln_1.isnx > 9) { -#line 20544 "" +#line 20611 "" s_copy(fmtq, "(a16,i2,a14)", (ftnlen)24, (ftnlen) 12); -#line 20544 "" +#line 20611 "" } -#line 20545 "" +#line 20612 "" if (comlast_1.islast) { -#line 20545 "" - s_wsfe(&io___1380); +#line 20612 "" + s_wsfe(&io___1382); /* Writing concatenation */ -#line 20545 "" +#line 20612 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 20545 "" +#line 20612 "" i__5[1] = 3, a__3[1] = "def"; -#line 20545 "" +#line 20612 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 20545 "" +#line 20612 "" i__5[3] = 11, a__3[3] = "raisebarno{"; -#line 20545 "" +#line 20612 "" s_cat(ch__22, a__3, i__5, &c__4, (ftnlen)16); -#line 20545 "" +#line 20612 "" do_fio(&c__1, ch__22, (ftnlen)16); -#line 20545 "" +#line 20612 "" i__7 = comsln_1.irzbnd + comsln_1.isnx; -#line 20545 "" +#line 20612 "" do_fio(&c__1, (char *)&i__7, (ftnlen)sizeof( integer)); /* Writing concatenation */ -#line 20545 "" +#line 20612 "" i__8[0] = 2, a__5[0] = ".5"; -#line 20545 "" +#line 20612 "" i__8[1] = 1, a__5[1] = all_1.sq; -#line 20545 "" +#line 20612 "" i__8[2] = 11, a__5[2] = "internote}%"; -#line 20545 "" +#line 20612 "" s_cat(ch__10, a__5, i__8, &c__3, (ftnlen)14); -#line 20545 "" +#line 20612 "" do_fio(&c__1, ch__10, (ftnlen)14); -#line 20545 "" +#line 20612 "" e_wsfe(); -#line 20545 "" +#line 20612 "" } /* if (islast) then */ /* if (isnx .le. 9) then */ @@ -48689,11 +48816,11 @@ L51: /* end if */ /* end if */ -#line 20555 "" +#line 20622 "" } -#line 20556 "" +#line 20623 "" } -#line 20557 "" +#line 20624 "" if (comget_1.movbrk > 0) { /* movbrk = 0 */ @@ -48704,78 +48831,78 @@ L51: /* indsym = 0,1,2 for doubleBAR , doublebar, rightrepeat. */ /* This is passed to \newmovement. */ -#line 20567 "" +#line 20634 "" if (*(unsigned char *)comget_1.rptfq2 == 'E') { -#line 20567 "" +#line 20634 "" *(unsigned char *)comget_1.rptfq2 = 'D'; -#line 20567 "" +#line 20634 "" } -#line 20568 "" +#line 20635 "" indsym = i_indx("Ddrbz", comget_1.rptfq2, (ftnlen)5, ( ftnlen)1) - 1; -#line 20569 "" +#line 20636 "" *(unsigned char *)comget_1.rptfq2 = 'E'; /* Also check for Rd or Rr set the normal way */ -#line 20573 "" +#line 20640 "" if (bit_test(islnow,8)) { -#line 20574 "" +#line 20641 "" indsym = 1; -#line 20575 "" +#line 20642 "" } else if (bit_test(islnow,6)) { -#line 20576 "" +#line 20643 "" indsym = 2; -#line 20577 "" +#line 20644 "" } -#line 20578 "" +#line 20645 "" if (indsym < 0) { -#line 20579 "" - s_wsle(&io___1382); -#line 20579 "" +#line 20646 "" + s_wsle(&io___1384); +#line 20646 "" e_wsle(); -#line 20580 "" - s_wsle(&io___1383); -#line 20580 "" +#line 20647 "" + s_wsle(&io___1385); +#line 20647 "" do_lio(&c__9, &c__1, "Illegal end symbol before \"/\"" , (ftnlen)29); -#line 20580 "" +#line 20647 "" e_wsle(); -#line 20581 "" +#line 20648 "" stop1_(); -#line 20582 "" +#line 20649 "" } /* Check for continuation (no bar number reset) */ -#line 20586 "" +#line 20653 "" if (comlast_1.islast && comnotes_1.nobar1) { -#line 20586 "" - s_wsfe(&io___1384); +#line 20653 "" + s_wsfe(&io___1386); /* Writing concatenation */ -#line 20586 "" +#line 20653 "" i__14[0] = 1, a__10[0] = all_1.sq; -#line 20586 "" +#line 20653 "" i__14[1] = 7, a__10[1] = "advance"; -#line 20586 "" +#line 20653 "" i__14[2] = 1, a__10[2] = all_1.sq; -#line 20586 "" +#line 20653 "" i__14[3] = 6, a__10[3] = "barno1"; -#line 20586 "" +#line 20653 "" i__14[4] = 1, a__10[4] = all_1.sq; -#line 20586 "" +#line 20653 "" i__14[5] = 10, a__10[5] = "startbarno"; -#line 20586 "" +#line 20653 "" i__14[6] = 1, a__10[6] = all_1.sq; -#line 20586 "" +#line 20653 "" i__14[7] = 6, a__10[7] = "barno%"; -#line 20586 "" +#line 20653 "" s_cat(ch__23, a__10, i__14, &c__8, (ftnlen)33); -#line 20586 "" +#line 20653 "" do_fio(&c__1, ch__23, (ftnlen)33); -#line 20586 "" +#line 20653 "" e_wsfe(); -#line 20586 "" +#line 20653 "" } /* Per Rainer's suggestion, changing \nbinstruments via 3rd arg of \newmovement */ @@ -48787,294 +48914,294 @@ L51: /* if (islast) write(11,'(a13,i2,a1,i1,a1)') */ /* * sq//'newmovement{',movgap,'}',indsym,'%' */ /* end if */ -#line 20599 "" +#line 20666 "" if (comlast_1.islast) { /* Writing concatenation */ -#line 20600 "" +#line 20667 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20600 "" +#line 20667 "" i__6[1] = 11, a__4[1] = "newmovement"; -#line 20600 "" +#line 20667 "" s_cat(nmq, a__4, i__6, &c__2, (ftnlen)40); -#line 20601 "" +#line 20668 "" lnmq = 12; -#line 20602 "" +#line 20669 "" if (comget_1.movgap < 10) { -#line 20603 "" +#line 20670 "" lnmq = 14; -#line 20604 "" - s_wsfi(&io___1387); -#line 20604 "" +#line 20671 "" + s_wsfi(&io___1389); +#line 20671 "" do_fio(&c__1, (char *)&comget_1.movgap, (ftnlen) sizeof(integer)); -#line 20604 "" +#line 20671 "" do_fio(&c__1, (char *)&indsym, (ftnlen)sizeof( integer)); -#line 20604 "" +#line 20671 "" e_wsfi(); -#line 20605 "" +#line 20672 "" } else { -#line 20606 "" +#line 20673 "" lnmq = 17; -#line 20607 "" - s_wsfi(&io___1388); -#line 20607 "" +#line 20674 "" + s_wsfi(&io___1390); +#line 20674 "" do_fio(&c__1, "{", (ftnlen)1); -#line 20607 "" +#line 20674 "" do_fio(&c__1, (char *)&comget_1.movgap, (ftnlen) sizeof(integer)); -#line 20607 "" +#line 20674 "" do_fio(&c__1, "}", (ftnlen)1); -#line 20607 "" +#line 20674 "" do_fio(&c__1, (char *)&indsym, (ftnlen)sizeof( integer)); -#line 20607 "" +#line 20674 "" e_wsfi(); -#line 20608 "" +#line 20675 "" } -#line 20609 "" +#line 20676 "" if (comnotes_1.ninow < 10) { -#line 20610 "" +#line 20677 "" ++lnmq; -#line 20611 "" +#line 20678 "" ici__1.icierr = 0; -#line 20611 "" +#line 20678 "" ici__1.icirnum = 1; -#line 20611 "" +#line 20678 "" ici__1.icirlen = 1; -#line 20611 "" +#line 20678 "" ici__1.iciunit = nmq + (lnmq - 1); -#line 20611 "" +#line 20678 "" ici__1.icifmt = "(i1)"; -#line 20611 "" +#line 20678 "" s_wsfi(&ici__1); -#line 20611 "" +#line 20678 "" do_fio(&c__1, (char *)&comnotes_1.ninow, (ftnlen) sizeof(integer)); -#line 20611 "" +#line 20678 "" e_wsfi(); -#line 20612 "" +#line 20679 "" } else { -#line 20613 "" +#line 20680 "" lnmq += 4; -#line 20614 "" +#line 20681 "" i__7 = lnmq - 4; -#line 20614 "" +#line 20681 "" ici__1.icierr = 0; -#line 20614 "" +#line 20681 "" ici__1.icirnum = 1; -#line 20614 "" +#line 20681 "" ici__1.icirlen = lnmq - i__7; -#line 20614 "" +#line 20681 "" ici__1.iciunit = nmq + i__7; -#line 20614 "" +#line 20681 "" ici__1.icifmt = "(a1,i2,a1)"; -#line 20614 "" +#line 20681 "" s_wsfi(&ici__1); -#line 20614 "" +#line 20681 "" do_fio(&c__1, "{", (ftnlen)1); -#line 20614 "" +#line 20681 "" do_fio(&c__1, (char *)&comnotes_1.ninow, (ftnlen) sizeof(integer)); -#line 20614 "" +#line 20681 "" do_fio(&c__1, "}", (ftnlen)1); -#line 20614 "" +#line 20681 "" e_wsfi(); -#line 20615 "" +#line 20682 "" } -#line 20616 "" +#line 20683 "" ++lnmq; -#line 20617 "" +#line 20684 "" ici__1.icierr = 0; -#line 20617 "" +#line 20684 "" ici__1.icirnum = 1; -#line 20617 "" +#line 20684 "" ici__1.icirlen = 1; -#line 20617 "" +#line 20684 "" ici__1.iciunit = nmq + (lnmq - 1); -#line 20617 "" +#line 20684 "" ici__1.icifmt = "(a1)"; -#line 20617 "" +#line 20684 "" s_wsfi(&ici__1); -#line 20617 "" +#line 20684 "" do_fio(&c__1, "%", (ftnlen)1); -#line 20617 "" +#line 20684 "" e_wsfi(); -#line 20618 "" - s_wsfe(&io___1389); -#line 20618 "" +#line 20685 "" + s_wsfe(&io___1391); +#line 20685 "" do_fio(&c__1, nmq, lnmq); -#line 20618 "" +#line 20685 "" e_wsfe(); -#line 20619 "" +#line 20686 "" } /* Change generalmeter if necessary */ -#line 20623 "" +#line 20690 "" if (comlast_1.islast) { -#line 20623 "" +#line 20690 "" wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp); -#line 20623 "" +#line 20690 "" } /* (Moved all name-writing to getnote, right when 'M' is detected) */ -#line 20627 "" +#line 20694 "" if (bit_test(iplnow,28)) { /* Key signature at movement break */ -#line 20631 "" +#line 20698 "" iplnow = bit_clear(iplnow,28); -#line 20632 "" +#line 20699 "" if (comtop_1.isig > 0) { -#line 20633 "" +#line 20700 "" if (comlast_1.islast) { -#line 20633 "" - s_wsfe(&io___1390); +#line 20700 "" + s_wsfe(&io___1392); /* Writing concatenation */ -#line 20633 "" +#line 20700 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20633 "" +#line 20700 "" i__6[1] = 17, a__4[1] = "generalsignature{"; -#line 20633 "" +#line 20700 "" s_cat(ch__24, a__4, i__6, &c__2, (ftnlen)18); -#line 20633 "" +#line 20700 "" do_fio(&c__1, ch__24, (ftnlen)18); -#line 20633 "" +#line 20700 "" do_fio(&c__1, (char *)&comtop_1.isig, (ftnlen) sizeof(integer)); -#line 20633 "" +#line 20700 "" do_fio(&c__1, "}%", (ftnlen)2); -#line 20633 "" +#line 20700 "" e_wsfe(); -#line 20633 "" +#line 20700 "" } -#line 20635 "" +#line 20702 "" } else { -#line 20636 "" +#line 20703 "" if (comlast_1.islast) { -#line 20636 "" - s_wsfe(&io___1391); +#line 20703 "" + s_wsfe(&io___1393); /* Writing concatenation */ -#line 20636 "" +#line 20703 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20636 "" +#line 20703 "" i__6[1] = 17, a__4[1] = "generalsignature{"; -#line 20636 "" +#line 20703 "" s_cat(ch__24, a__4, i__6, &c__2, (ftnlen)18); -#line 20636 "" +#line 20703 "" do_fio(&c__1, ch__24, (ftnlen)18); -#line 20636 "" +#line 20703 "" do_fio(&c__1, (char *)&comtop_1.isig, (ftnlen) sizeof(integer)); -#line 20636 "" +#line 20703 "" do_fio(&c__1, "}%", (ftnlen)2); -#line 20636 "" +#line 20703 "" e_wsfe(); -#line 20636 "" +#line 20703 "" } -#line 20638 "" +#line 20705 "" } -#line 20639 "" +#line 20706 "" if (comlast_1.islast && cominsttrans_1.laterinsttrans) { -#line 20640 "" +#line 20707 "" writesetsign_(&cominsttrans_1.ninsttrans, cominsttrans_1.iinsttrans, cominsttrans_1.itranskey, & cominsttrans_1.laterinsttrans); -#line 20642 "" +#line 20709 "" } -#line 20643 "" +#line 20710 "" } -#line 20644 "" +#line 20711 "" if (comget_1.parmov >= -.1f) { /* Resent paragraph indentation */ -#line 20648 "" +#line 20715 "" ipi = comget_1.parmov * comtop_1.widthpt + .1f; -#line 20649 "" +#line 20716 "" if (ipi < 10) { -#line 20650 "" +#line 20717 "" if (comlast_1.islast) { -#line 20650 "" - s_wsfe(&io___1393); +#line 20717 "" + s_wsfe(&io___1395); /* Writing concatenation */ -#line 20650 "" +#line 20717 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20650 "" +#line 20717 "" i__6[1] = 10, a__4[1] = "parindent "; -#line 20650 "" +#line 20717 "" s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11); -#line 20650 "" +#line 20717 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 20650 "" +#line 20717 "" do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof( integer)); -#line 20650 "" +#line 20717 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 20650 "" +#line 20717 "" e_wsfe(); -#line 20650 "" +#line 20717 "" } -#line 20652 "" +#line 20719 "" } else if (ipi < 100) { -#line 20653 "" +#line 20720 "" if (comlast_1.islast) { -#line 20653 "" - s_wsfe(&io___1394); +#line 20720 "" + s_wsfe(&io___1396); /* Writing concatenation */ -#line 20653 "" +#line 20720 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20653 "" +#line 20720 "" i__6[1] = 10, a__4[1] = "parindent "; -#line 20653 "" +#line 20720 "" s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11); -#line 20653 "" +#line 20720 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 20653 "" +#line 20720 "" do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof( integer)); -#line 20653 "" +#line 20720 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 20653 "" +#line 20720 "" e_wsfe(); -#line 20653 "" +#line 20720 "" } -#line 20655 "" +#line 20722 "" } else { -#line 20656 "" +#line 20723 "" if (comlast_1.islast) { -#line 20656 "" - s_wsfe(&io___1395); +#line 20723 "" + s_wsfe(&io___1397); /* Writing concatenation */ -#line 20656 "" +#line 20723 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20656 "" +#line 20723 "" i__6[1] = 10, a__4[1] = "parindent "; -#line 20656 "" +#line 20723 "" s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11); -#line 20656 "" +#line 20723 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 20656 "" +#line 20723 "" do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof( integer)); -#line 20656 "" +#line 20723 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 20656 "" +#line 20723 "" e_wsfe(); -#line 20656 "" +#line 20723 "" } -#line 20658 "" +#line 20725 "" } -#line 20659 "" +#line 20726 "" } -#line 20660 "" +#line 20727 "" } -#line 20661 "" +#line 20728 "" if (isystpg == 1) { /* First line on a page (not 1st page, still first bar). Tidy up old page */ @@ -49090,247 +49217,247 @@ L51: /* Check for meter change at start of a new PAGE */ -#line 20676 "" +#line 20743 "" if (all_1.mtrnuml > 0) { /* Meter change at start of a new page. Ugly repeated coding here. */ -#line 20680 "" +#line 20747 "" mtrnms = all_1.mtrnuml; -#line 20681 "" +#line 20748 "" setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, & combeam_1.ibmtyp, &ibmrep); -#line 20682 "" +#line 20749 "" all_1.mtrnuml = mtrnms; -#line 20683 "" +#line 20750 "" if (comget_1.movbrk == 0 && comlast_1.islast) { -#line 20683 "" +#line 20750 "" wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp); -#line 20683 "" +#line 20750 "" } -#line 20685 "" +#line 20752 "" } /* Key signature change? */ -#line 20689 "" +#line 20756 "" if (bit_test(iplnow,28) && comget_1.movbrk == 0) { /* Writing concatenation */ -#line 20690 "" +#line 20757 "" i__14[0] = 1, a__10[0] = all_1.sq; -#line 20690 "" +#line 20757 "" i__14[1] = 4, a__10[1] = "xbar"; -#line 20690 "" +#line 20757 "" i__14[2] = 1, a__10[2] = all_1.sq; -#line 20690 "" +#line 20757 "" i__14[3] = 10, a__10[3] = "addspace{-"; -#line 20690 "" +#line 20757 "" i__14[4] = 1, a__10[4] = all_1.sq; -#line 20690 "" +#line 20757 "" i__14[5] = 14, a__10[5] = "afterruleskip}"; -#line 20690 "" +#line 20757 "" i__14[6] = 1, a__10[6] = all_1.sq; -#line 20690 "" +#line 20757 "" i__14[7] = 17, a__10[7] = "generalsignature{"; -#line 20690 "" +#line 20757 "" s_cat(notexq, a__10, i__14, &c__8, (ftnlen)79); -#line 20692 "" +#line 20759 "" lnote = 49; -#line 20693 "" +#line 20760 "" if (comtop_1.isig < 0) { /* Writing concatenation */ -#line 20694 "" +#line 20761 "" i__6[0] = 49, a__4[0] = notexq; -#line 20694 "" +#line 20761 "" i__6[1] = 1, a__4[1] = "-"; -#line 20694 "" +#line 20761 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 20695 "" +#line 20762 "" lnote = 50; -#line 20696 "" +#line 20763 "" } -#line 20697 "" +#line 20764 "" if (comlast_1.islast) { -#line 20697 "" - s_wsfe(&io___1397); +#line 20764 "" + s_wsfe(&io___1399); /* Writing concatenation */ -#line 20697 "" +#line 20764 "" i__8[0] = lnote, a__5[0] = notexq; -#line 20697 "" +#line 20764 "" i__7 = abs(comtop_1.isig) + 48; -#line 20697 "" +#line 20764 "" chax_(ch__1, (ftnlen)1, &i__7); -#line 20697 "" +#line 20764 "" i__8[1] = 1, a__5[1] = ch__1; -#line 20697 "" +#line 20764 "" i__8[2] = 2, a__5[2] = "}%"; -#line 20697 "" +#line 20764 "" s_cat(ch__25, a__5, i__8, &c__3, (ftnlen)82); -#line 20697 "" +#line 20764 "" do_fio(&c__1, ch__25, lnote + 3); -#line 20697 "" +#line 20764 "" e_wsfe(); -#line 20697 "" +#line 20764 "" } -#line 20699 "" +#line 20766 "" if (comlast_1.islast && cominsttrans_1.laterinsttrans) { -#line 20700 "" +#line 20767 "" writesetsign_(&cominsttrans_1.ninsttrans, cominsttrans_1.iinsttrans, cominsttrans_1.itranskey, & cominsttrans_1.laterinsttrans); -#line 20702 "" +#line 20769 "" } -#line 20703 "" +#line 20770 "" if (comlast_1.islast && comignorenats_1.ignorenats) { -#line 20703 "" - s_wsfe(&io___1398); +#line 20770 "" + s_wsfe(&io___1400); /* Writing concatenation */ -#line 20703 "" +#line 20770 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20703 "" +#line 20770 "" i__6[1] = 11, a__4[1] = "ignorenats%"; -#line 20703 "" +#line 20770 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12); -#line 20703 "" +#line 20770 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 20703 "" +#line 20770 "" e_wsfe(); -#line 20703 "" +#line 20770 "" } -#line 20705 "" +#line 20772 "" if (comlast_1.islast) { -#line 20705 "" - s_wsfe(&io___1399); +#line 20772 "" + s_wsfe(&io___1401); /* Writing concatenation */ -#line 20705 "" +#line 20772 "" i__9[0] = 1, a__6[0] = all_1.sq; -#line 20705 "" +#line 20772 "" i__9[1] = 14, a__6[1] = "zchangecontext"; -#line 20705 "" +#line 20772 "" i__9[2] = 1, a__6[2] = all_1.sq; -#line 20705 "" +#line 20772 "" i__9[3] = 10, a__6[3] = "addspace{-"; -#line 20705 "" +#line 20772 "" i__9[4] = 1, a__6[4] = all_1.sq; -#line 20705 "" +#line 20772 "" i__9[5] = 14, a__6[5] = "afterruleskip}"; -#line 20705 "" +#line 20772 "" i__9[6] = 1, a__6[6] = all_1.sq; -#line 20705 "" +#line 20772 "" i__9[7] = 10, a__6[7] = "zstoppiece"; -#line 20705 "" +#line 20772 "" i__9[8] = 1, a__6[8] = all_1.sq; -#line 20705 "" +#line 20772 "" i__9[9] = 13, a__6[9] = "PMXbarnotrue%"; -#line 20705 "" +#line 20772 "" s_cat(ch__26, a__6, i__9, &c__10, (ftnlen)66); -#line 20705 "" +#line 20772 "" do_fio(&c__1, ch__26, (ftnlen)66); -#line 20705 "" +#line 20772 "" e_wsfe(); -#line 20705 "" +#line 20772 "" } -#line 20708 "" +#line 20775 "" } else if (all_1.mtrnuml > 0 && comget_1.movbrk == 0) { /* Meter change but no signature change */ -#line 20712 "" +#line 20779 "" if (comlast_1.islast) { -#line 20712 "" - s_wsfe(&io___1400); +#line 20779 "" + s_wsfe(&io___1402); /* Writing concatenation */ -#line 20712 "" +#line 20779 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 20712 "" +#line 20779 "" i__3[1] = 14, a__1[1] = "xchangecontext"; -#line 20712 "" +#line 20779 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 20712 "" +#line 20779 "" i__3[3] = 10, a__1[3] = "addspace{-"; -#line 20712 "" +#line 20779 "" i__3[4] = 1, a__1[4] = all_1.sq; -#line 20712 "" +#line 20779 "" i__3[5] = 14, a__1[5] = "afterruleskip}"; -#line 20712 "" +#line 20779 "" i__3[6] = 1, a__1[6] = all_1.sq; -#line 20712 "" +#line 20779 "" i__3[7] = 3, a__1[7] = "let"; -#line 20712 "" +#line 20779 "" i__3[8] = 1, a__1[8] = all_1.sq; -#line 20712 "" +#line 20779 "" i__3[9] = 4, a__1[9] = "bnat"; -#line 20712 "" +#line 20779 "" i__3[10] = 1, a__1[10] = all_1.sq; -#line 20712 "" +#line 20779 "" i__3[11] = 9, a__1[11] = "barnoadd%"; -#line 20712 "" +#line 20779 "" s_cat(ch__27, a__1, i__3, &c__12, (ftnlen)60); -#line 20712 "" +#line 20779 "" do_fio(&c__1, ch__27, (ftnlen)60); -#line 20712 "" +#line 20779 "" e_wsfe(); -#line 20712 "" +#line 20779 "" } -#line 20716 "" +#line 20783 "" if (comlast_1.islast) { -#line 20716 "" - s_wsfe(&io___1401); +#line 20783 "" + s_wsfe(&io___1403); /* Writing concatenation */ -#line 20716 "" +#line 20783 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 20716 "" +#line 20783 "" i__3[1] = 3, a__1[1] = "def"; -#line 20716 "" +#line 20783 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 20716 "" +#line 20783 "" i__3[3] = 9, a__1[3] = "barnoadd{"; -#line 20716 "" +#line 20783 "" i__3[4] = 1, a__1[4] = all_1.sq; -#line 20716 "" +#line 20783 "" i__3[5] = 3, a__1[5] = "let"; -#line 20716 "" +#line 20783 "" i__3[6] = 1, a__1[6] = all_1.sq; -#line 20716 "" +#line 20783 "" i__3[7] = 8, a__1[7] = "barnoadd"; -#line 20716 "" +#line 20783 "" i__3[8] = 1, a__1[8] = all_1.sq; -#line 20716 "" +#line 20783 "" i__3[9] = 5, a__1[9] = "bnat}"; -#line 20716 "" +#line 20783 "" i__3[10] = 1, a__1[10] = all_1.sq; -#line 20716 "" +#line 20783 "" i__3[11] = 11, a__1[11] = "zstoppiece%"; -#line 20716 "" +#line 20783 "" s_cat(ch__28, a__1, i__3, &c__12, (ftnlen)45); -#line 20716 "" +#line 20783 "" do_fio(&c__1, ch__28, (ftnlen)45); -#line 20716 "" +#line 20783 "" e_wsfe(); -#line 20716 "" +#line 20783 "" } -#line 20719 "" +#line 20786 "" } else { -#line 20720 "" +#line 20787 "" if (comlast_1.islast) { -#line 20720 "" - s_wsfe(&io___1402); +#line 20787 "" + s_wsfe(&io___1404); /* Writing concatenation */ -#line 20720 "" +#line 20787 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20720 "" +#line 20787 "" i__6[1] = 10, a__4[1] = "stoppiece%"; -#line 20720 "" +#line 20787 "" s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11); -#line 20720 "" +#line 20787 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 20720 "" +#line 20787 "" e_wsfe(); -#line 20720 "" +#line 20787 "" } -#line 20721 "" +#line 20788 "" } /* This is the key spot when vshrink is used. Value of vshrink here comes from */ @@ -49344,539 +49471,539 @@ L51: /* second pass, vshrink at top of page one is dealt with in topfile, which is called */ /* *before* any reading in any "Av" at the top of the first input block. */ -#line 20734 "" +#line 20801 "" if (! vshrink) { -#line 20735 "" +#line 20802 "" xnstbot = xnsttop[comnotes_1.ipage - 1] * etabot / etatop; -#line 20736 "" +#line 20803 "" if (xnstbot < 9.95f) { -#line 20737 "" +#line 20804 "" s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (ftnlen)10) ; -#line 20738 "" +#line 20805 "" } else { -#line 20739 "" +#line 20806 "" s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (ftnlen)10) ; -#line 20740 "" +#line 20807 "" } -#line 20741 "" +#line 20808 "" if (comlast_1.islast) { -#line 20741 "" - s_wsfe(&io___1404); +#line 20808 "" + s_wsfe(&io___1406); /* Writing concatenation */ -#line 20741 "" +#line 20808 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20741 "" +#line 20808 "" i__6[1] = 5, a__4[1] = "vskip"; -#line 20741 "" +#line 20808 "" s_cat(ch__29, a__4, i__6, &c__2, (ftnlen)6); -#line 20741 "" +#line 20808 "" do_fio(&c__1, ch__29, (ftnlen)6); -#line 20741 "" +#line 20808 "" do_fio(&c__1, (char *)&xnstbot, (ftnlen)sizeof( real)); /* Writing concatenation */ -#line 20741 "" +#line 20808 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 20741 "" +#line 20808 "" i__5[1] = 10, a__3[1] = "Interligne"; -#line 20741 "" +#line 20808 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 20741 "" +#line 20808 "" i__5[3] = 6, a__3[3] = "eject%"; -#line 20741 "" +#line 20808 "" s_cat(ch__24, a__3, i__5, &c__4, (ftnlen)18); -#line 20741 "" +#line 20808 "" do_fio(&c__1, ch__24, (ftnlen)18); -#line 20741 "" +#line 20808 "" e_wsfe(); -#line 20741 "" +#line 20808 "" } -#line 20743 "" +#line 20810 "" } else { -#line 20744 "" +#line 20811 "" if (comlast_1.islast) { -#line 20744 "" - s_wsfe(&io___1405); +#line 20811 "" + s_wsfe(&io___1407); /* Writing concatenation */ -#line 20744 "" +#line 20811 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 20744 "" +#line 20811 "" i__5[1] = 5, a__3[1] = "vfill"; -#line 20744 "" +#line 20811 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 20744 "" +#line 20811 "" i__5[3] = 6, a__3[3] = "eject%"; -#line 20744 "" +#line 20811 "" s_cat(ch__17, a__3, i__5, &c__4, (ftnlen)13); -#line 20744 "" +#line 20811 "" do_fio(&c__1, ch__17, (ftnlen)13); -#line 20744 "" +#line 20811 "" e_wsfe(); -#line 20744 "" +#line 20811 "" } -#line 20745 "" +#line 20812 "" } -#line 20746 "" +#line 20813 "" ++comnotes_1.ipage; /* Now that page is ejected, compute new vshrink */ -#line 20750 "" +#line 20817 "" vshrink = xintstaff[comnotes_1.ipage - 1] > 20.f && comlast_1.usevshrink; -#line 20751 "" +#line 20818 "" if (vshrink) { -#line 20752 "" +#line 20819 "" comarp_1.xinsnow = 10.f; -#line 20753 "" +#line 20820 "" } else { -#line 20754 "" +#line 20821 "" comarp_1.xinsnow = xintstaff[comnotes_1.ipage - 1]; -#line 20755 "" +#line 20822 "" } -#line 20756 "" +#line 20823 "" if (comget_1.fintstf > 0.f && comnotes_1.ipage > 1) { -#line 20757 "" +#line 20824 "" comarp_1.xinsnow = comarp_1.xinsnow * comget_1.fintstf / comget_1.gintstf; -#line 20758 "" +#line 20825 "" comget_1.fintstf = -1.f; -#line 20759 "" +#line 20826 "" } -#line 20760 "" +#line 20827 "" if (comarp_1.xinsnow < 9.95f) { -#line 20761 "" +#line 20828 "" s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (ftnlen)10); -#line 20762 "" +#line 20829 "" } else if (comarp_1.xinsnow < 99.95f) { -#line 20763 "" +#line 20830 "" s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (ftnlen)10); -#line 20764 "" +#line 20831 "" } else { -#line 20765 "" +#line 20832 "" s_copy(fmtq, "(a,f5.1,a)", (ftnlen)24, (ftnlen)10); -#line 20766 "" +#line 20833 "" } /* Vertical spacing parameters, then restart */ -#line 20770 "" +#line 20837 "" if (comlast_1.islast) { -#line 20770 "" - s_wsfe(&io___1406); +#line 20837 "" + s_wsfe(&io___1408); /* Writing concatenation */ -#line 20770 "" +#line 20837 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20770 "" +#line 20837 "" i__6[1] = 11, a__4[1] = "interstaff{"; -#line 20770 "" +#line 20837 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12); -#line 20770 "" +#line 20837 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 20770 "" +#line 20837 "" do_fio(&c__1, (char *)&comarp_1.xinsnow, (ftnlen) sizeof(real)); /* Writing concatenation */ -#line 20770 "" +#line 20837 "" i__8[0] = 1, a__5[0] = "}"; -#line 20770 "" +#line 20837 "" i__8[1] = 1, a__5[1] = all_1.sq; -#line 20770 "" +#line 20837 "" i__8[2] = 9, a__5[2] = "contpiece"; -#line 20770 "" +#line 20837 "" s_cat(ch__15, a__5, i__8, &c__3, (ftnlen)11); -#line 20770 "" +#line 20837 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 20770 "" +#line 20837 "" e_wsfe(); -#line 20770 "" +#line 20837 "" } /* Check for meter change at start of a new PAGE */ -#line 20775 "" +#line 20842 "" if (all_1.mtrnuml > 0) { /* Meter change at start of a new page */ -#line 20779 "" +#line 20846 "" setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, & combeam_1.ibmtyp, &ibmrep); -#line 20780 "" +#line 20847 "" if (comget_1.movbrk == 0) { -#line 20781 "" +#line 20848 "" if (comlast_1.islast) { -#line 20781 "" +#line 20848 "" wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp); -#line 20781 "" +#line 20848 "" } -#line 20782 "" +#line 20849 "" if (all_1.mtrdnp > 0) { -#line 20783 "" +#line 20850 "" if (comlast_1.islast) { -#line 20783 "" - s_wsfe(&io___1407); +#line 20850 "" + s_wsfe(&io___1409); /* Writing concatenation */ -#line 20783 "" +#line 20850 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20783 "" +#line 20850 "" i__6[1] = 10, a__4[1] = "newtimes2%"; -#line 20783 "" +#line 20850 "" s_cat(ch__15, a__4, i__6, &c__2, (ftnlen) 11); -#line 20783 "" +#line 20850 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 20783 "" +#line 20850 "" e_wsfe(); -#line 20783 "" +#line 20850 "" } -#line 20784 "" +#line 20851 "" if (all_1.ibar == comgrace_1.ibarmbr) { -#line 20784 "" +#line 20851 "" comgrace_1.xb4mbr = all_1.musicsize * -.2f; -#line 20784 "" +#line 20851 "" } -#line 20785 "" +#line 20852 "" } -#line 20786 "" +#line 20853 "" } -#line 20787 "" +#line 20854 "" } /* If no real titles here, which there probably will never be, make vertical */ /* space at page top with \titles{...}. headlog=.false.<=>no real titles */ -#line 20792 "" +#line 20859 "" puttitle_(&inhnoh, &xnsttop[comnotes_1.ipage - 1], & etatop, all_1.sq, &etait, &etatc, &etacs1, & all_1.nv, &vshrink, all_1.sepsymq, (ftnlen)1, ( ftnlen)1); -#line 20794 "" +#line 20861 "" if (comnotes_1.headerspecial) { -#line 20794 "" - s_wsfe(&io___1408); +#line 20861 "" + s_wsfe(&io___1410); /* Writing concatenation */ -#line 20794 "" +#line 20861 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 20794 "" +#line 20861 "" i__6[0] = 1, a__4[0] = ch__1; -#line 20794 "" +#line 20861 "" i__6[1] = 28, a__4[1] = "special{header=psslurs.pro}%" ; -#line 20794 "" +#line 20861 "" s_cat(ch__7, a__4, i__6, &c__2, (ftnlen)29); -#line 20794 "" +#line 20861 "" do_fio(&c__1, ch__7, (ftnlen)29); -#line 20794 "" +#line 20861 "" e_wsfe(); -#line 20794 "" +#line 20861 "" } /* Write special header for first page */ -#line 20799 "" +#line 20866 "" } else { /* First bar of system, not a new page, force line break */ -#line 20803 "" +#line 20870 "" if (bit_test(iplnow,28)) { /* Signature change */ /* Writing concatenation */ -#line 20807 "" +#line 20874 "" i__14[0] = 1, a__10[0] = all_1.sq; -#line 20807 "" +#line 20874 "" i__14[1] = 4, a__10[1] = "xbar"; -#line 20807 "" +#line 20874 "" i__14[2] = 1, a__10[2] = all_1.sq; -#line 20807 "" +#line 20874 "" i__14[3] = 10, a__10[3] = "addspace{-"; -#line 20807 "" +#line 20874 "" i__14[4] = 1, a__10[4] = all_1.sq; -#line 20807 "" +#line 20874 "" i__14[5] = 14, a__10[5] = "afterruleskip}"; -#line 20807 "" +#line 20874 "" i__14[6] = 1, a__10[6] = all_1.sq; -#line 20807 "" +#line 20874 "" i__14[7] = 17, a__10[7] = "generalsignature{"; -#line 20807 "" +#line 20874 "" s_cat(notexq, a__10, i__14, &c__8, (ftnlen)79); -#line 20809 "" +#line 20876 "" lnote = 49; -#line 20810 "" +#line 20877 "" if (comtop_1.isig < 0) { /* Writing concatenation */ -#line 20811 "" +#line 20878 "" i__6[0] = 49, a__4[0] = notexq; -#line 20811 "" +#line 20878 "" i__6[1] = 1, a__4[1] = "-"; -#line 20811 "" +#line 20878 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 20812 "" +#line 20879 "" lnote = 50; -#line 20813 "" +#line 20880 "" } -#line 20814 "" +#line 20881 "" if (comlast_1.islast) { -#line 20814 "" - s_wsfe(&io___1409); +#line 20881 "" + s_wsfe(&io___1411); /* Writing concatenation */ -#line 20814 "" +#line 20881 "" i__8[0] = lnote, a__5[0] = notexq; -#line 20814 "" +#line 20881 "" i__7 = abs(comtop_1.isig) + 48; -#line 20814 "" +#line 20881 "" chax_(ch__1, (ftnlen)1, &i__7); -#line 20814 "" +#line 20881 "" i__8[1] = 1, a__5[1] = ch__1; -#line 20814 "" +#line 20881 "" i__8[2] = 2, a__5[2] = "}%"; -#line 20814 "" +#line 20881 "" s_cat(ch__25, a__5, i__8, &c__3, (ftnlen)82); -#line 20814 "" +#line 20881 "" do_fio(&c__1, ch__25, lnote + 3); -#line 20814 "" +#line 20881 "" e_wsfe(); -#line 20814 "" +#line 20881 "" } -#line 20816 "" +#line 20883 "" if (comlast_1.islast && cominsttrans_1.laterinsttrans) { -#line 20817 "" +#line 20884 "" writesetsign_(&cominsttrans_1.ninsttrans, cominsttrans_1.iinsttrans, cominsttrans_1.itranskey, & cominsttrans_1.laterinsttrans); -#line 20819 "" +#line 20886 "" } -#line 20820 "" +#line 20887 "" if (comlast_1.islast) { -#line 20820 "" - s_wsfe(&io___1410); +#line 20887 "" + s_wsfe(&io___1412); /* Writing concatenation */ -#line 20820 "" +#line 20887 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 20820 "" +#line 20887 "" i__5[1] = 7, a__3[1] = "advance"; -#line 20820 "" +#line 20887 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 20820 "" +#line 20887 "" i__5[3] = 8, a__3[3] = "barno-1%"; -#line 20820 "" +#line 20887 "" s_cat(ch__13, a__3, i__5, &c__4, (ftnlen)17); -#line 20820 "" +#line 20887 "" do_fio(&c__1, ch__13, (ftnlen)17); -#line 20820 "" +#line 20887 "" e_wsfe(); -#line 20820 "" +#line 20887 "" } -#line 20821 "" +#line 20888 "" if (all_1.mtrnuml != 0) { /* Meter+sig change, new line, may need mods if movement break here. */ -#line 20825 "" +#line 20892 "" setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, & combeam_1.ibmtyp, &ibmrep); -#line 20826 "" +#line 20893 "" if (comlast_1.islast) { -#line 20827 "" +#line 20894 "" wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp); -#line 20828 "" +#line 20895 "" if (comignorenats_1.ignorenats) { -#line 20828 "" - s_wsfe(&io___1411); +#line 20895 "" + s_wsfe(&io___1413); /* Writing concatenation */ -#line 20828 "" +#line 20895 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20828 "" +#line 20895 "" i__6[1] = 11, a__4[1] = "ignorenats%"; -#line 20828 "" +#line 20895 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen) 12); -#line 20828 "" +#line 20895 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 20828 "" +#line 20895 "" e_wsfe(); -#line 20828 "" +#line 20895 "" } -#line 20829 "" - s_wsfe(&io___1412); +#line 20896 "" + s_wsfe(&io___1414); /* Writing concatenation */ -#line 20829 "" +#line 20896 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 20829 "" +#line 20896 "" i__3[1] = 14, a__1[1] = "xchangecontext"; -#line 20829 "" +#line 20896 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 20829 "" +#line 20896 "" i__3[3] = 10, a__1[3] = "addspace{-"; -#line 20829 "" +#line 20896 "" i__3[4] = 1, a__1[4] = all_1.sq; -#line 20829 "" +#line 20896 "" i__3[5] = 14, a__1[5] = "afterruleskip}"; -#line 20829 "" +#line 20896 "" i__3[6] = 1, a__1[6] = all_1.sq; -#line 20829 "" +#line 20896 "" i__3[7] = 10, a__1[7] = "zstoppiece"; -#line 20829 "" +#line 20896 "" i__3[8] = 1, a__1[8] = all_1.sq; -#line 20829 "" +#line 20896 "" i__3[9] = 12, a__1[9] = "PMXbarnotrue"; -#line 20829 "" +#line 20896 "" i__3[10] = 1, a__1[10] = all_1.sq; -#line 20829 "" +#line 20896 "" i__3[11] = 10, a__1[11] = "contpiece%"; -#line 20829 "" +#line 20896 "" s_cat(ch__30, a__1, i__3, &c__12, (ftnlen)76); -#line 20829 "" +#line 20896 "" do_fio(&c__1, ch__30, (ftnlen)76); -#line 20829 "" +#line 20896 "" e_wsfe(); /* * 'addspace{-'//sq//'afterruleskip}'//sq//'def' */ /* * //sq//'writezbarno{}'//sq//'zalaligne%' */ -#line 20834 "" - s_wsfe(&io___1413); +#line 20901 "" + s_wsfe(&io___1415); /* Writing concatenation */ -#line 20834 "" +#line 20901 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 20834 "" +#line 20901 "" i__5[1] = 10, a__3[1] = "addspace{-"; -#line 20834 "" +#line 20901 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 20834 "" +#line 20901 "" i__5[3] = 15, a__3[3] = "afterruleskip}%"; -#line 20834 "" +#line 20901 "" s_cat(ch__5, a__3, i__5, &c__4, (ftnlen)27); -#line 20834 "" +#line 20901 "" do_fio(&c__1, ch__5, (ftnlen)27); -#line 20834 "" +#line 20901 "" e_wsfe(); -#line 20836 "" +#line 20903 "" wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp); -#line 20837 "" +#line 20904 "" if (comignorenats_1.ignorenats) { -#line 20837 "" - s_wsfe(&io___1414); +#line 20904 "" + s_wsfe(&io___1416); /* Writing concatenation */ -#line 20837 "" +#line 20904 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20837 "" +#line 20904 "" i__6[1] = 11, a__4[1] = "ignorenats%"; -#line 20837 "" +#line 20904 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen) 12); -#line 20837 "" +#line 20904 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 20837 "" +#line 20904 "" e_wsfe(); -#line 20837 "" +#line 20904 "" } -#line 20838 "" - s_wsfe(&io___1415); +#line 20905 "" + s_wsfe(&io___1417); /* Writing concatenation */ -#line 20838 "" +#line 20905 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20838 "" +#line 20905 "" i__6[1] = 14, a__4[1] = "zchangecontext"; -#line 20838 "" +#line 20905 "" s_cat(ch__16, a__4, i__6, &c__2, (ftnlen)15); -#line 20838 "" +#line 20905 "" do_fio(&c__1, ch__16, (ftnlen)15); -#line 20838 "" +#line 20905 "" e_wsfe(); -#line 20839 "" +#line 20906 "" } -#line 20840 "" +#line 20907 "" } else { -#line 20841 "" +#line 20908 "" if (comlast_1.islast && comignorenats_1.ignorenats) { -#line 20841 "" - s_wsfe(&io___1416); +#line 20908 "" + s_wsfe(&io___1418); /* Writing concatenation */ -#line 20841 "" +#line 20908 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20841 "" +#line 20908 "" i__6[1] = 11, a__4[1] = "ignorenats%"; -#line 20841 "" +#line 20908 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12); -#line 20841 "" +#line 20908 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 20841 "" +#line 20908 "" e_wsfe(); -#line 20841 "" +#line 20908 "" } -#line 20843 "" +#line 20910 "" if (comlast_1.islast) { -#line 20843 "" - s_wsfe(&io___1417); +#line 20910 "" + s_wsfe(&io___1419); /* Writing concatenation */ -#line 20843 "" +#line 20910 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 20843 "" +#line 20910 "" i__3[1] = 14, a__1[1] = "xchangecontext"; -#line 20843 "" +#line 20910 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 20843 "" +#line 20910 "" i__3[3] = 10, a__1[3] = "addspace{-"; -#line 20843 "" +#line 20910 "" i__3[4] = 1, a__1[4] = all_1.sq; -#line 20843 "" +#line 20910 "" i__3[5] = 14, a__1[5] = "afterruleskip}"; -#line 20843 "" +#line 20910 "" i__3[6] = 1, a__1[6] = all_1.sq; -#line 20843 "" +#line 20910 "" i__3[7] = 10, a__1[7] = "zstoppiece"; -#line 20843 "" +#line 20910 "" i__3[8] = 1, a__1[8] = all_1.sq; -#line 20843 "" +#line 20910 "" i__3[9] = 12, a__1[9] = "PMXbarnotrue"; -#line 20843 "" +#line 20910 "" i__3[10] = 1, a__1[10] = all_1.sq; -#line 20843 "" +#line 20910 "" i__3[11] = 10, a__1[11] = "contpiece%"; -#line 20843 "" +#line 20910 "" s_cat(ch__30, a__1, i__3, &c__12, (ftnlen)76); -#line 20843 "" +#line 20910 "" do_fio(&c__1, ch__30, (ftnlen)76); -#line 20843 "" +#line 20910 "" e_wsfe(); -#line 20843 "" +#line 20910 "" } /* * 'addspace{-'//sq//'afterruleskip}'//sq//'def'// */ /* * sq//'writezbarno{}'//sq//'zalaligne%' */ -#line 20848 "" +#line 20915 "" } -#line 20849 "" +#line 20916 "" } else if (all_1.mtrnuml == 0) { /* No meter change */ -#line 20853 "" +#line 20920 "" if (comlast_1.islast) { -#line 20853 "" - s_wsfe(&io___1418); +#line 20920 "" + s_wsfe(&io___1420); /* Writing concatenation */ -#line 20853 "" +#line 20920 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20853 "" +#line 20920 "" i__6[1] = 8, a__4[1] = "alaligne"; -#line 20853 "" +#line 20920 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9); -#line 20853 "" +#line 20920 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 20853 "" +#line 20920 "" e_wsfe(); -#line 20853 "" +#line 20920 "" } -#line 20854 "" +#line 20921 "" } else { /* New meter, no new sig, end of line, not new page. */ @@ -49886,620 +50013,620 @@ L51: /* \zalaligne\generalmeter{\meterfrac{3}{4}}\addspace{-\afterruleskip}% */ /* \zchangecontext */ -#line 20863 "" +#line 20930 "" setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, & combeam_1.ibmtyp, &ibmrep); -#line 20864 "" +#line 20931 "" if (comget_1.movbrk == 0) { -#line 20865 "" +#line 20932 "" if (comlast_1.islast) { -#line 20865 "" +#line 20932 "" wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp); -#line 20865 "" +#line 20932 "" } -#line 20866 "" +#line 20933 "" if (all_1.mtrdnp > 0) { -#line 20867 "" +#line 20934 "" if (comlast_1.islast) { -#line 20868 "" - s_wsfe(&io___1419); +#line 20935 "" + s_wsfe(&io___1421); /* Writing concatenation */ -#line 20868 "" +#line 20935 "" i__3[0] = 1, a__1[0] = all_1.sq; -#line 20868 "" +#line 20935 "" i__3[1] = 3, a__1[1] = "let"; -#line 20868 "" +#line 20935 "" i__3[2] = 1, a__1[2] = all_1.sq; -#line 20868 "" +#line 20935 "" i__3[3] = 4, a__1[3] = "bnat"; -#line 20868 "" +#line 20935 "" i__3[4] = 1, a__1[4] = all_1.sq; -#line 20868 "" +#line 20935 "" i__3[5] = 8, a__1[5] = "barnoadd"; -#line 20868 "" +#line 20935 "" i__3[6] = 1, a__1[6] = all_1.sq; -#line 20868 "" +#line 20935 "" i__3[7] = 3, a__1[7] = "def"; -#line 20868 "" +#line 20935 "" i__3[8] = 1, a__1[8] = all_1.sq; -#line 20868 "" +#line 20935 "" i__3[9] = 9, a__1[9] = "barnoadd{"; -#line 20868 "" +#line 20935 "" i__3[10] = 1, a__1[10] = all_1.sq; -#line 20868 "" +#line 20935 "" i__3[11] = 7, a__1[11] = "empty}%"; -#line 20868 "" +#line 20935 "" s_cat(ch__31, a__1, i__3, &c__12, (ftnlen) 40); -#line 20868 "" +#line 20935 "" do_fio(&c__1, ch__31, (ftnlen)40); -#line 20868 "" +#line 20935 "" e_wsfe(); -#line 20871 "" - s_wsfe(&io___1420); +#line 20938 "" + s_wsfe(&io___1422); /* Writing concatenation */ -#line 20871 "" +#line 20938 "" i__15[0] = 1, a__11[0] = all_1.sq; -#line 20871 "" +#line 20938 "" i__15[1] = 14, a__11[1] = "xchangecontext" ; -#line 20871 "" +#line 20938 "" i__15[2] = 1, a__11[2] = all_1.sq; -#line 20871 "" +#line 20938 "" i__15[3] = 10, a__11[3] = "addspace{-"; -#line 20871 "" +#line 20938 "" i__15[4] = 1, a__11[4] = all_1.sq; -#line 20871 "" +#line 20938 "" i__15[5] = 14, a__11[5] = "afterruleskip}" ; -#line 20871 "" +#line 20938 "" i__15[6] = 1, a__11[6] = all_1.sq; -#line 20871 "" +#line 20938 "" i__15[7] = 9, a__11[7] = "zalaligne"; -#line 20871 "" +#line 20938 "" i__15[8] = 1, a__11[8] = all_1.sq; -#line 20871 "" +#line 20938 "" i__15[9] = 3, a__11[9] = "let"; -#line 20871 "" +#line 20938 "" i__15[10] = 1, a__11[10] = all_1.sq; -#line 20871 "" +#line 20938 "" i__15[11] = 8, a__11[11] = "barnoadd"; -#line 20871 "" +#line 20938 "" i__15[12] = 1, a__11[12] = all_1.sq; -#line 20871 "" +#line 20938 "" i__15[13] = 4, a__11[13] = "bnat"; -#line 20871 "" +#line 20938 "" s_cat(ch__32, a__11, i__15, &c__14, ( ftnlen)69); -#line 20871 "" +#line 20938 "" do_fio(&c__1, ch__32, (ftnlen)69); -#line 20871 "" +#line 20938 "" e_wsfe(); -#line 20874 "" +#line 20941 "" wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp); -#line 20875 "" - s_wsfe(&io___1421); +#line 20942 "" + s_wsfe(&io___1423); /* Writing concatenation */ -#line 20875 "" +#line 20942 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 20875 "" +#line 20942 "" i__4[1] = 10, a__2[1] = "addspace{-"; -#line 20875 "" +#line 20942 "" i__4[2] = 1, a__2[2] = all_1.sq; -#line 20875 "" +#line 20942 "" i__4[3] = 14, a__2[3] = "afterruleskip}"; -#line 20875 "" +#line 20942 "" i__4[4] = 1, a__2[4] = all_1.sq; -#line 20875 "" +#line 20942 "" i__4[5] = 14, a__2[5] = "zchangecontext"; -#line 20875 "" +#line 20942 "" s_cat(ch__33, a__2, i__4, &c__6, (ftnlen) 41); -#line 20875 "" +#line 20942 "" do_fio(&c__1, ch__33, (ftnlen)41); -#line 20875 "" +#line 20942 "" e_wsfe(); -#line 20877 "" +#line 20944 "" } -#line 20878 "" +#line 20945 "" if (all_1.ibar == comgrace_1.ibarmbr) { -#line 20878 "" +#line 20945 "" comgrace_1.xb4mbr = all_1.musicsize * -.2f; -#line 20878 "" +#line 20945 "" } -#line 20879 "" +#line 20946 "" } else { -#line 20880 "" +#line 20947 "" if (comlast_1.islast) { -#line 20880 "" - s_wsfe(&io___1422); +#line 20947 "" + s_wsfe(&io___1424); /* Writing concatenation */ -#line 20880 "" +#line 20947 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20880 "" +#line 20947 "" i__6[1] = 8, a__4[1] = "alaligne"; -#line 20880 "" +#line 20947 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen) 9); -#line 20880 "" +#line 20947 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 20880 "" +#line 20947 "" e_wsfe(); -#line 20880 "" +#line 20947 "" } -#line 20881 "" +#line 20948 "" } -#line 20882 "" +#line 20949 "" } else { -#line 20883 "" +#line 20950 "" if (comlast_1.islast) { -#line 20883 "" - s_wsfe(&io___1423); +#line 20950 "" + s_wsfe(&io___1425); /* Writing concatenation */ -#line 20883 "" +#line 20950 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20883 "" +#line 20950 "" i__6[1] = 8, a__4[1] = "alaligne"; -#line 20883 "" +#line 20950 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9); -#line 20883 "" +#line 20950 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 20883 "" +#line 20950 "" e_wsfe(); -#line 20883 "" +#line 20950 "" } -#line 20884 "" +#line 20951 "" } -#line 20885 "" +#line 20952 "" } -#line 20886 "" +#line 20953 "" } /* Modified 090525 to use \bnrs */ -#line 20890 "" +#line 20957 "" if (slint) { -#line 20891 "" +#line 20958 "" slint = FALSE_; -#line 20892 "" +#line 20959 "" if (comlast_1.islast) { -#line 20892 "" - s_wsfe(&io___1424); +#line 20959 "" + s_wsfe(&io___1426); /* Writing concatenation */ -#line 20892 "" +#line 20959 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 20892 "" +#line 20959 "" i__5[1] = 3, a__3[1] = "def"; -#line 20892 "" +#line 20959 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 20892 "" +#line 20959 "" i__5[3] = 11, a__3[3] = "raisebarno{"; -#line 20892 "" +#line 20959 "" s_cat(ch__22, a__3, i__5, &c__4, (ftnlen)16); -#line 20892 "" +#line 20959 "" do_fio(&c__1, ch__22, (ftnlen)16); -#line 20892 "" +#line 20959 "" do_fio(&c__1, (char *)&comsln_1.irzbnd, (ftnlen) sizeof(integer)); /* Writing concatenation */ -#line 20892 "" +#line 20959 "" i__8[0] = 2, a__5[0] = ".5"; -#line 20892 "" +#line 20959 "" i__8[1] = 1, a__5[1] = all_1.sq; -#line 20892 "" +#line 20959 "" i__8[2] = 11, a__5[2] = "internote}%"; -#line 20892 "" +#line 20959 "" s_cat(ch__10, a__5, i__8, &c__3, (ftnlen)14); -#line 20892 "" +#line 20959 "" do_fio(&c__1, ch__10, (ftnlen)14); -#line 20892 "" +#line 20959 "" e_wsfe(); -#line 20892 "" +#line 20959 "" } -#line 20894 "" +#line 20961 "" } -#line 20895 "" +#line 20962 "" comget_1.movbrk = 0; -#line 20896 "" +#line 20963 "" } /* Clean up if we squelched bar number reset at movement break */ -#line 20900 "" +#line 20967 "" if (comnotes_1.nobar1) { -#line 20901 "" +#line 20968 "" if (comlast_1.islast) { -#line 20901 "" - s_wsfe(&io___1425); +#line 20968 "" + s_wsfe(&io___1427); /* Writing concatenation */ -#line 20901 "" +#line 20968 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20901 "" +#line 20968 "" i__6[1] = 11, a__4[1] = "startbarno1"; -#line 20901 "" +#line 20968 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12); -#line 20901 "" +#line 20968 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 20901 "" +#line 20968 "" e_wsfe(); -#line 20901 "" +#line 20968 "" } -#line 20902 "" +#line 20969 "" comnotes_1.nobar1 = FALSE_; -#line 20903 "" +#line 20970 "" } -#line 20904 "" - i__7 = s_rsle(&io___1426); -#line 20904 "" +#line 20971 "" + i__7 = s_rsle(&io___1428); +#line 20971 "" if (i__7 != 0) { -#line 20904 "" +#line 20971 "" goto L14; -#line 20904 "" +#line 20971 "" } -#line 20904 "" +#line 20971 "" i__7 = do_lio(&c__3, &c__1, (char *)&iauto, (ftnlen)sizeof( integer)); -#line 20904 "" +#line 20971 "" if (i__7 != 0) { -#line 20904 "" +#line 20971 "" goto L14; -#line 20904 "" +#line 20971 "" } -#line 20904 "" +#line 20971 "" i__7 = e_rsle(); -#line 20904 "" +#line 20971 "" if (i__7 != 0) { -#line 20904 "" +#line 20971 "" goto L14; -#line 20904 "" +#line 20971 "" } -#line 20905 "" +#line 20972 "" L14: /* We come thru here for the 1st bar of every system, so initialize is1n1 */ -#line 20909 "" +#line 20976 "" comsln_1.is1n1 = 0; /* Brought down from above */ -#line 20913 "" +#line 20980 "" if (isystpg == comnotes_1.nsystp[comnotes_1.ipage - 1]) { -#line 20913 "" +#line 20980 "" isystpg = 0; -#line 20913 "" +#line 20980 "" } /* Check for linebreak ties */ -#line 20917 "" +#line 20984 "" if (ispstie) { -#line 20917 "" +#line 20984 "" linebreakties_(all_1.isdat1, all_1.isdat2, all_1.isdat3, all_1.isdat4, &all_1.nsdat, &ispstie, all_1.sepsymq, ( ftnlen)1); -#line 20917 "" +#line 20984 "" } -#line 20920 "" +#line 20987 "" } else { /* Not first bar of system */ -#line 20924 "" +#line 20991 "" if (bit_test(iplnow,28)) { /* Signature change */ -#line 20928 "" +#line 20995 "" if (all_1.mtrnuml != 0) { /* Meter+signature change mid line, assume no movement break */ -#line 20932 "" +#line 20999 "" setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, & combeam_1.ibmtyp, &ibmrep); -#line 20933 "" +#line 21000 "" if (comlast_1.islast) { -#line 20933 "" +#line 21000 "" wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp); -#line 20933 "" +#line 21000 "" } /* Writing concatenation */ -#line 20934 "" +#line 21001 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20934 "" +#line 21001 "" i__6[1] = 17, a__4[1] = "generalsignature{"; -#line 20934 "" +#line 21001 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 20935 "" +#line 21002 "" lnote = 18; -#line 20936 "" +#line 21003 "" if (comtop_1.isig < 0) { /* Writing concatenation */ -#line 20937 "" +#line 21004 "" i__6[0] = 18, a__4[0] = notexq; -#line 20937 "" +#line 21004 "" i__6[1] = 1, a__4[1] = "-"; -#line 20937 "" +#line 21004 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 20938 "" +#line 21005 "" lnote = 19; -#line 20939 "" +#line 21006 "" } -#line 20940 "" +#line 21007 "" if (comlast_1.islast) { -#line 20941 "" +#line 21008 "" iptemp = abs(comtop_1.isig) + 48; -#line 20942 "" +#line 21009 "" chax_(ch__1, (ftnlen)1, &iptemp); -#line 20942 "" +#line 21009 "" *(unsigned char *)charq = *(unsigned char *)&ch__1[0]; /* Writing concatenation */ -#line 20943 "" +#line 21010 "" i__8[0] = lnote, a__5[0] = notexq; -#line 20943 "" +#line 21010 "" i__8[1] = 1, a__5[1] = charq; -#line 20943 "" +#line 21010 "" i__8[2] = 2, a__5[2] = "}%"; -#line 20943 "" +#line 21010 "" s_cat(notexq, a__5, i__8, &c__3, (ftnlen)79); -#line 20944 "" +#line 21011 "" lnote += 3; -#line 20945 "" - s_wsfe(&io___1429); -#line 20945 "" +#line 21012 "" + s_wsfe(&io___1431); +#line 21012 "" do_fio(&c__1, notexq, lnote); -#line 20945 "" +#line 21012 "" e_wsfe(); -#line 20946 "" +#line 21013 "" if (comlast_1.islast && cominsttrans_1.laterinsttrans) { -#line 20947 "" +#line 21014 "" writesetsign_(&cominsttrans_1.ninsttrans, cominsttrans_1.iinsttrans, cominsttrans_1.itranskey, & cominsttrans_1.laterinsttrans); -#line 20949 "" +#line 21016 "" } -#line 20950 "" +#line 21017 "" if (comignorenats_1.ignorenats) { -#line 20950 "" - s_wsfe(&io___1430); +#line 21017 "" + s_wsfe(&io___1432); /* Writing concatenation */ -#line 20950 "" +#line 21017 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20950 "" +#line 21017 "" i__6[1] = 11, a__4[1] = "ignorenats%"; -#line 20950 "" +#line 21017 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12); -#line 20950 "" +#line 21017 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 20950 "" +#line 21017 "" e_wsfe(); -#line 20950 "" +#line 21017 "" } -#line 20951 "" - s_wsfe(&io___1431); +#line 21018 "" + s_wsfe(&io___1433); /* Writing concatenation */ -#line 20951 "" +#line 21018 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20951 "" +#line 21018 "" i__6[1] = 15, a__4[1] = "xchangecontext%"; -#line 20951 "" +#line 21018 "" s_cat(ch__22, a__4, i__6, &c__2, (ftnlen)16); -#line 20951 "" +#line 21018 "" do_fio(&c__1, ch__22, (ftnlen)16); -#line 20951 "" +#line 21018 "" e_wsfe(); -#line 20952 "" +#line 21019 "" } -#line 20953 "" +#line 21020 "" if (all_1.ibar == comgrace_1.ibarmbr) { /* Compute space for multibar rest */ -#line 20957 "" +#line 21024 "" if (comtop_1.lastisig * comtop_1.isig >= 0) { /* Computing MAX */ -#line 20958 "" +#line 21025 "" i__7 = abs(comtop_1.lastisig), i__2 = abs( comtop_1.isig); -#line 20958 "" +#line 21025 "" naccs = max(i__7,i__2); -#line 20959 "" +#line 21026 "" } else { -#line 20960 "" +#line 21027 "" naccs = (i__7 = comtop_1.lastisig - comtop_1.isig, abs(i__7)); -#line 20961 "" +#line 21028 "" } /* xb4mbr = (facmtr+naccs*.24)*musicsize */ -#line 20963 "" +#line 21030 "" comgrace_1.xb4mbr = all_1.musicsize * -.2f; -#line 20964 "" +#line 21031 "" } -#line 20965 "" +#line 21032 "" } else { /* Signature change only */ /* Writing concatenation */ -#line 20969 "" +#line 21036 "" i__14[0] = 1, a__10[0] = all_1.sq; -#line 20969 "" +#line 21036 "" i__14[1] = 4, a__10[1] = "xbar"; -#line 20969 "" +#line 21036 "" i__14[2] = 1, a__10[2] = all_1.sq; -#line 20969 "" +#line 21036 "" i__14[3] = 10, a__10[3] = "addspace{-"; -#line 20969 "" +#line 21036 "" i__14[4] = 1, a__10[4] = all_1.sq; -#line 20969 "" +#line 21036 "" i__14[5] = 14, a__10[5] = "afterruleskip}"; -#line 20969 "" +#line 21036 "" i__14[6] = 1, a__10[6] = all_1.sq; -#line 20969 "" +#line 21036 "" i__14[7] = 17, a__10[7] = "generalsignature{"; -#line 20969 "" +#line 21036 "" s_cat(notexq, a__10, i__14, &c__8, (ftnlen)79); -#line 20971 "" +#line 21038 "" lnote = 49; -#line 20972 "" +#line 21039 "" if (comtop_1.isig < 0) { /* Writing concatenation */ -#line 20973 "" +#line 21040 "" i__6[0] = 49, a__4[0] = notexq; -#line 20973 "" +#line 21040 "" i__6[1] = 1, a__4[1] = "-"; -#line 20973 "" +#line 21040 "" s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79); -#line 20974 "" +#line 21041 "" lnote = 50; -#line 20975 "" +#line 21042 "" } -#line 20976 "" +#line 21043 "" if (comlast_1.islast) { -#line 20976 "" - s_wsfe(&io___1433); +#line 21043 "" + s_wsfe(&io___1435); /* Writing concatenation */ -#line 20976 "" +#line 21043 "" i__8[0] = lnote, a__5[0] = notexq; -#line 20976 "" +#line 21043 "" i__7 = abs(comtop_1.isig) + 48; -#line 20976 "" +#line 21043 "" chax_(ch__1, (ftnlen)1, &i__7); -#line 20976 "" +#line 21043 "" i__8[1] = 1, a__5[1] = ch__1; -#line 20976 "" +#line 21043 "" i__8[2] = 2, a__5[2] = "}%"; -#line 20976 "" +#line 21043 "" s_cat(ch__25, a__5, i__8, &c__3, (ftnlen)82); -#line 20976 "" +#line 21043 "" do_fio(&c__1, ch__25, lnote + 3); -#line 20976 "" +#line 21043 "" e_wsfe(); -#line 20976 "" +#line 21043 "" } -#line 20978 "" +#line 21045 "" if (comlast_1.islast && cominsttrans_1.laterinsttrans) { -#line 20979 "" +#line 21046 "" writesetsign_(&cominsttrans_1.ninsttrans, cominsttrans_1.iinsttrans, cominsttrans_1.itranskey, & cominsttrans_1.laterinsttrans); -#line 20981 "" +#line 21048 "" } -#line 20982 "" +#line 21049 "" if (comlast_1.islast && comignorenats_1.ignorenats) { -#line 20982 "" - s_wsfe(&io___1434); +#line 21049 "" + s_wsfe(&io___1436); /* Writing concatenation */ -#line 20982 "" +#line 21049 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 20982 "" +#line 21049 "" i__6[1] = 11, a__4[1] = "ignorenats%"; -#line 20982 "" +#line 21049 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12); -#line 20982 "" +#line 21049 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 20982 "" +#line 21049 "" e_wsfe(); -#line 20982 "" +#line 21049 "" } -#line 20984 "" +#line 21051 "" if (comlast_1.islast) { -#line 20984 "" - s_wsfe(&io___1435); +#line 21051 "" + s_wsfe(&io___1437); /* Writing concatenation */ -#line 20984 "" +#line 21051 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 20984 "" +#line 21051 "" i__4[1] = 14, a__2[1] = "zchangecontext"; -#line 20984 "" +#line 21051 "" i__4[2] = 1, a__2[2] = all_1.sq; -#line 20984 "" +#line 21051 "" i__4[3] = 12, a__2[3] = "addspace{-.5"; -#line 20984 "" +#line 21051 "" i__4[4] = 1, a__2[4] = all_1.sq; -#line 20984 "" +#line 21051 "" i__4[5] = 15, a__2[5] = "afterruleskip}%"; -#line 20984 "" +#line 21051 "" s_cat(ch__34, a__2, i__4, &c__6, (ftnlen)44); -#line 20984 "" +#line 21051 "" do_fio(&c__1, ch__34, (ftnlen)44); -#line 20984 "" +#line 21051 "" e_wsfe(); -#line 20984 "" +#line 21051 "" } -#line 20986 "" +#line 21053 "" if (all_1.ibar == comgrace_1.ibarmbr) { /* Compute space for multibar rest */ -#line 20990 "" +#line 21057 "" if (comtop_1.lastisig * comtop_1.isig >= 0) { /* Computing MAX */ -#line 20991 "" +#line 21058 "" i__7 = abs(comtop_1.lastisig), i__2 = abs( comtop_1.isig); -#line 20991 "" +#line 21058 "" naccs = max(i__7,i__2); -#line 20992 "" +#line 21059 "" } else { -#line 20993 "" +#line 21060 "" naccs = (i__7 = comtop_1.lastisig - comtop_1.isig, abs(i__7)); -#line 20994 "" +#line 21061 "" } /* xb4mbr = naccs*.24*musicsize */ -#line 20996 "" +#line 21063 "" comgrace_1.xb4mbr = all_1.musicsize * -.2f; -#line 20997 "" +#line 21064 "" } -#line 20998 "" +#line 21065 "" } -#line 20999 "" +#line 21066 "" } else if (all_1.mtrnuml == 0) { /* No meter change */ -#line 21003 "" +#line 21070 "" if (comlast_1.islast) { -#line 21003 "" - s_wsfe(&io___1436); +#line 21070 "" + s_wsfe(&io___1438); /* Writing concatenation */ -#line 21003 "" +#line 21070 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21003 "" +#line 21070 "" i__6[1] = 4, a__4[1] = "xbar"; -#line 21003 "" +#line 21070 "" s_cat(ch__35, a__4, i__6, &c__2, (ftnlen)5); -#line 21003 "" +#line 21070 "" do_fio(&c__1, ch__35, (ftnlen)5); -#line 21003 "" +#line 21070 "" e_wsfe(); -#line 21003 "" +#line 21070 "" } -#line 21004 "" +#line 21071 "" } else { /* Change meter midline */ -#line 21008 "" +#line 21075 "" setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, &combeam_1.ibmtyp, & ibmrep); -#line 21009 "" +#line 21076 "" if (comget_1.movbrk == 0) { -#line 21010 "" +#line 21077 "" if (comlast_1.islast) { -#line 21010 "" +#line 21077 "" wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp); -#line 21010 "" +#line 21077 "" } -#line 21011 "" +#line 21078 "" if (all_1.mtrdnp > 0) { -#line 21012 "" +#line 21079 "" if (comlast_1.islast) { /* if (mbrest .gt. 0) then */ /* c write(11,'(a)')sq//'addspace{-2'//sq// */ @@ -50507,1179 +50634,1179 @@ L14: /* write(11,'(a)')sq//'setemptybar'//sq//'bar'//sq// */ /* * 'advance'//sq//'barno-1%' */ /* end if */ -#line 21019 "" - s_wsfe(&io___1437); +#line 21086 "" + s_wsfe(&io___1439); /* Writing concatenation */ -#line 21019 "" +#line 21086 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21019 "" +#line 21086 "" i__6[1] = 10, a__4[1] = "newtimes0%"; -#line 21019 "" +#line 21086 "" s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11); -#line 21019 "" +#line 21086 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 21019 "" +#line 21086 "" e_wsfe(); -#line 21020 "" +#line 21087 "" } /* if (ibar .eq. ibarmbr) xb4mbr = facmtr*musicsize */ -#line 21022 "" +#line 21089 "" if (all_1.ibar == comgrace_1.ibarmbr) { -#line 21022 "" +#line 21089 "" comgrace_1.xb4mbr = all_1.musicsize * -.2f; -#line 21022 "" +#line 21089 "" } -#line 21023 "" +#line 21090 "" } else { -#line 21024 "" +#line 21091 "" if (comlast_1.islast) { -#line 21024 "" - s_wsfe(&io___1438); +#line 21091 "" + s_wsfe(&io___1440); /* Writing concatenation */ -#line 21024 "" +#line 21091 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21024 "" +#line 21091 "" i__6[1] = 4, a__4[1] = "xbar"; -#line 21024 "" +#line 21091 "" s_cat(ch__35, a__4, i__6, &c__2, (ftnlen)5); -#line 21024 "" +#line 21091 "" do_fio(&c__1, ch__35, (ftnlen)5); -#line 21024 "" +#line 21091 "" e_wsfe(); -#line 21024 "" +#line 21091 "" } -#line 21025 "" +#line 21092 "" } -#line 21026 "" +#line 21093 "" } -#line 21027 "" +#line 21094 "" } -#line 21028 "" +#line 21095 "" } /* Now that xbar's are written, can put in left-repeats at line beginnings */ -#line 21032 "" +#line 21099 "" if (lrptpend) { -#line 21033 "" +#line 21100 "" if (comlast_1.islast) { -#line 21033 "" - s_wsfe(&io___1439); +#line 21100 "" + s_wsfe(&io___1441); /* Writing concatenation */ -#line 21033 "" +#line 21100 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 21033 "" +#line 21100 "" i__4[1] = 7, a__2[1] = "advance"; -#line 21033 "" +#line 21100 "" i__4[2] = 1, a__2[2] = all_1.sq; -#line 21033 "" +#line 21100 "" i__4[3] = 7, a__2[3] = "barno-1"; -#line 21033 "" +#line 21100 "" i__4[4] = 1, a__2[4] = all_1.sq; -#line 21033 "" +#line 21100 "" i__4[5] = 10, a__2[5] = "leftrepeat"; -#line 21033 "" +#line 21100 "" s_cat(ch__5, a__2, i__4, &c__6, (ftnlen)27); -#line 21033 "" +#line 21100 "" do_fio(&c__1, ch__5, (ftnlen)27); -#line 21033 "" +#line 21100 "" e_wsfe(); -#line 21033 "" +#line 21100 "" } -#line 21035 "" +#line 21102 "" lrptpend = FALSE_; -#line 21036 "" +#line 21103 "" } -#line 21037 "" +#line 21104 "" if (all_1.ibar > 1) { /* For bars after first, slide all stuff down to beginning of arrays */ -#line 21041 "" +#line 21108 "" i__7 = all_1.nv; -#line 21041 "" +#line 21108 "" for (all_1.iv = 1; all_1.iv <= i__7; ++all_1.iv) { -#line 21042 "" +#line 21109 "" i__2 = commvl_1.nvmx[all_1.iv - 1]; -#line 21042 "" +#line 21109 "" for (kv = 1; kv <= i__2; ++kv) { -#line 21043 "" +#line 21110 "" commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25]; -#line 21044 "" +#line 21111 "" ioff = all_1.nib[commvl_1.ivx + (all_1.ibar - 1) * 24 - 25]; -#line 21045 "" +#line 21112 "" i__13 = all_1.nib[commvl_1.ivx + all_1.ibar * 24 - 25] - ioff; -#line 21045 "" +#line 21112 "" for (ip = 1; ip <= i__13; ++ip) { -#line 21046 "" +#line 21113 "" all_1.nolev[commvl_1.ivx + ip * 24 - 25] = all_1.nolev[commvl_1.ivx + (ip + ioff) * 24 - 25]; -#line 21047 "" +#line 21114 "" all_1.nodur[commvl_1.ivx + ip * 24 - 25] = all_1.nodur[commvl_1.ivx + (ip + ioff) * 24 - 25]; -#line 21048 "" +#line 21115 "" all_1.nacc[commvl_1.ivx + ip * 24 - 25] = all_1.nacc[ commvl_1.ivx + (ip + ioff) * 24 - 25]; -#line 21049 "" +#line 21116 "" all_1.irest[commvl_1.ivx + ip * 24 - 25] = all_1.irest[commvl_1.ivx + (ip + ioff) * 24 - 25]; -#line 21050 "" +#line 21117 "" all_1.islur[commvl_1.ivx + ip * 24 - 25] = all_1.islur[commvl_1.ivx + (ip + ioff) * 24 - 25]; -#line 21051 "" +#line 21118 "" all_1.ipl[commvl_1.ivx + ip * 24 - 25] = all_1.ipl[ commvl_1.ivx + (ip + ioff) * 24 - 25]; -#line 21052 "" +#line 21119 "" all_1.iornq[commvl_1.ivx + ip * 24 - 1] = all_1.iornq[ commvl_1.ivx + (ip + ioff) * 24 - 1]; -#line 21053 "" +#line 21120 "" all_1.mult[commvl_1.ivx + ip * 24 - 25] = all_1.mult[ commvl_1.ivx + (ip + ioff) * 24 - 25]; /* if (ivx.le.2 .and. figbass) */ /* * isfig(ivx,ip) = isfig(ivx,ip+ioff) */ -#line 21056 "" +#line 21123 "" if (all_1.figbass && commvl_1.ivx == 1 || commvl_1.ivx == comfig_1.ivxfig2) { -#line 21057 "" +#line 21124 "" if (commvl_1.ivx == 1) { -#line 21058 "" +#line 21125 "" all_1.isfig[(ip << 1) - 2] = all_1.isfig[(ip + ioff << 1) - 2]; -#line 21059 "" +#line 21126 "" } else { -#line 21060 "" +#line 21127 "" all_1.isfig[(ip << 1) - 1] = all_1.isfig[(ip + ioff << 1) - 1]; -#line 21061 "" +#line 21128 "" } -#line 21062 "" +#line 21129 "" } -#line 21063 "" +#line 21130 "" /* L12: */ -#line 21063 "" +#line 21130 "" } -#line 21064 "" +#line 21131 "" if (commvl_1.ivx <= all_1.nv && comcc_1.ncc[all_1.iv - 1] > 1) { -#line 21065 "" +#line 21132 "" islide = 0; -#line 21066 "" +#line 21133 "" i__13 = comcc_1.ncc[all_1.iv - 1]; -#line 21066 "" +#line 21133 "" for (icc = 1; icc <= i__13; ++icc) { -#line 21067 "" +#line 21134 "" if (comcc_1.tcc[all_1.iv + icc * 24 - 25] <= ( real) all_1.lenbar) { /* This time will drop <=0 when slid. */ -#line 21071 "" +#line 21138 "" islide = icc - 1; -#line 21072 "" +#line 21139 "" comcc_1.ncmidcc[all_1.iv - 1] = comcc_1.ncmidcc[all_1.iv + icc * 24 - 25]; -#line 21073 "" +#line 21140 "" } else { -#line 21074 "" +#line 21141 "" comcc_1.tcc[all_1.iv + (icc - islide) * 24 - 25] = comcc_1.tcc[all_1.iv + icc * 24 - 25] - all_1.lenbar; -#line 21075 "" +#line 21142 "" comcc_1.ncmidcc[all_1.iv + (icc - islide) * 24 - 25] = comcc_1.ncmidcc[all_1.iv + icc * 24 - 25]; -#line 21076 "" +#line 21143 "" } -#line 21077 "" +#line 21144 "" /* L13: */ -#line 21077 "" +#line 21144 "" } -#line 21078 "" +#line 21145 "" comcc_1.ncc[all_1.iv - 1] -= islide; -#line 21079 "" +#line 21146 "" comcc_1.tcc[all_1.iv - 1] = 0.f; -#line 21080 "" +#line 21147 "" } -#line 21081 "" +#line 21148 "" /* L11: */ -#line 21081 "" +#line 21148 "" } -#line 21081 "" +#line 21148 "" } -#line 21082 "" +#line 21149 "" i__2 = comgrace_1.ngrace; -#line 21082 "" +#line 21149 "" for (ig = 1; ig <= i__2; ++ig) { -#line 21083 "" +#line 21150 "" comgrace_1.ipg[ig - 1] -= all_1.nib[comgrace_1.ivg[ig - 1] + ( all_1.ibar - 1) * 24 - 25]; -#line 21084 "" +#line 21151 "" if (all_1.ibar > 2) { -#line 21084 "" +#line 21151 "" comgrace_1.ipg[ig - 1] += all_1.nib[comgrace_1.ivg[ig - 1] + (all_1.ibar - 2) * 24 - 25]; -#line 21084 "" +#line 21151 "" } -#line 21085 "" +#line 21152 "" /* L15: */ -#line 21085 "" +#line 21152 "" } -#line 21086 "" +#line 21153 "" i__2 = comgrace_1.nlit; -#line 21086 "" +#line 21153 "" for (il = 1; il <= i__2; ++il) { -#line 21087 "" +#line 21154 "" comgrace_1.iplit[il - 1] -= all_1.nib[comgrace_1.ivlit[il - 1] + (all_1.ibar - 1) * 24 - 25]; -#line 21088 "" +#line 21155 "" if (all_1.ibar > 2) { -#line 21088 "" +#line 21155 "" comgrace_1.iplit[il - 1] += all_1.nib[comgrace_1.ivlit[il - 1] + (all_1.ibar - 2) * 24 - 25]; -#line 21088 "" +#line 21155 "" } -#line 21089 "" +#line 21156 "" /* L21: */ -#line 21089 "" +#line 21156 "" } -#line 21090 "" +#line 21157 "" i__2 = comtrill_1.ntrill; -#line 21090 "" +#line 21157 "" for (it = 1; it <= i__2; ++it) { -#line 21091 "" +#line 21158 "" comtrill_1.iptrill[it - 1] -= all_1.nib[comtrill_1.ivtrill[it - 1] + (all_1.ibar - 1) * 24 - 25]; -#line 21092 "" +#line 21159 "" if (all_1.ibar > 2) { -#line 21092 "" +#line 21159 "" comtrill_1.iptrill[it - 1] += all_1.nib[ comtrill_1.ivtrill[it - 1] + (all_1.ibar - 2) * 24 - 25]; -#line 21092 "" +#line 21159 "" } -#line 21094 "" +#line 21161 "" /* L22: */ -#line 21094 "" +#line 21161 "" } -#line 21095 "" +#line 21162 "" i__2 = comtrill_1.ncrd; -#line 21095 "" +#line 21162 "" for (icrd = 1; icrd <= i__2; ++icrd) { /* ivx = iand(15,ishft(icrdat(icrd),-8)) */ -#line 21097 "" +#line 21164 "" commvl_1.ivx = (15 & lbit_shift(comtrill_1.icrdat[icrd - 1], ( ftnlen)-8)) + (igetbits_(&comtrill_1.icrdat[icrd - 1], &c__1, &c__28) << 4); -#line 21099 "" +#line 21166 "" ipnew = (255 & comtrill_1.icrdat[icrd - 1]) - all_1.nib[ commvl_1.ivx + (all_1.ibar - 1) * 24 - 25]; -#line 21100 "" +#line 21167 "" if (all_1.ibar > 2) { -#line 21100 "" +#line 21167 "" ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 - 25]; -#line 21100 "" +#line 21167 "" } -#line 21101 "" +#line 21168 "" comtrill_1.icrdat[icrd - 1] = -256 & comtrill_1.icrdat[icrd - 1]; -#line 21102 "" +#line 21169 "" comtrill_1.icrdat[icrd - 1] = max(0,ipnew) | comtrill_1.icrdat[icrd - 1]; -#line 21103 "" +#line 21170 "" /* L27: */ -#line 21103 "" +#line 21170 "" } -#line 21104 "" +#line 21171 "" i__2 = comtrill_1.nudorn; -#line 21104 "" +#line 21171 "" for (iudorn = 1; iudorn <= i__2; ++iudorn) { /* ivx = iand(15,ishft(kudorn(iudorn),-8)) */ -#line 21106 "" +#line 21173 "" commvl_1.ivx = comivxudorn_1.ivxudorn[iudorn - 1]; -#line 21107 "" +#line 21174 "" ipnew = (255 & comtrill_1.kudorn[iudorn - 1]) - all_1.nib[ commvl_1.ivx + (all_1.ibar - 1) * 24 - 25]; -#line 21108 "" +#line 21175 "" if (all_1.ibar > 2) { -#line 21108 "" +#line 21175 "" ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 - 25]; -#line 21108 "" +#line 21175 "" } -#line 21109 "" +#line 21176 "" comtrill_1.kudorn[iudorn - 1] = -256 & comtrill_1.kudorn[ iudorn - 1]; -#line 21110 "" +#line 21177 "" comtrill_1.kudorn[iudorn - 1] = max(0,ipnew) | comtrill_1.kudorn[iudorn - 1]; -#line 21111 "" +#line 21178 "" /* L29: */ -#line 21111 "" +#line 21178 "" } -#line 21112 "" +#line 21179 "" i__2 = comdyn_1.ndyn; -#line 21112 "" +#line 21179 "" for (idyn = 1; idyn <= i__2; ++idyn) { -#line 21113 "" +#line 21180 "" idynd = comdyn_1.idyndat[idyn - 1]; /* ivx = iand(15,idynd) */ -#line 21115 "" +#line 21182 "" commvl_1.ivx = (15 & idynd) + (igetbits_(&comdyn_1.idynda2[ idyn - 1], &c__1, &c__10) << 4); -#line 21116 "" +#line 21183 "" ipnew = igetbits_(&idynd, &c__8, &c__4) - all_1.nib[ commvl_1.ivx + (all_1.ibar - 1) * 24 - 25]; /* The following construction avoids array bound errors in some compilers */ -#line 21120 "" +#line 21187 "" if (all_1.ibar > 2) { -#line 21121 "" +#line 21188 "" ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 - 25]; -#line 21122 "" +#line 21189 "" } -#line 21123 "" +#line 21190 "" ipnew = i_dim(&ipnew, &c__0); -#line 21124 "" +#line 21191 "" setbits_(&idynd, &c__8, &c__4, &ipnew); -#line 21125 "" +#line 21192 "" comdyn_1.idyndat[idyn - 1] = idynd; -#line 21126 "" +#line 21193 "" /* L42: */ -#line 21126 "" +#line 21193 "" } -#line 21127 "" +#line 21194 "" i__2 = comdyn_1.ntxtdyn; -#line 21127 "" +#line 21194 "" for (itxtdyn = 1; itxtdyn <= i__2; ++itxtdyn) { -#line 21128 "" +#line 21195 "" idynd = comdyn_1.ivxiptxt[itxtdyn - 1]; /* ivx = iand(15,idynd) */ -#line 21130 "" +#line 21197 "" commvl_1.ivx = 31 & idynd; /* ipnew = igetbits(idynd,8,4)-nib(ivx,ibar-1) */ -#line 21132 "" +#line 21199 "" ipnew = igetbits_(&idynd, &c__8, &c__5) - all_1.nib[ commvl_1.ivx + (all_1.ibar - 1) * 24 - 25]; -#line 21133 "" +#line 21200 "" if (all_1.ibar > 2) { -#line 21134 "" +#line 21201 "" ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 - 25]; -#line 21135 "" +#line 21202 "" } -#line 21136 "" +#line 21203 "" ipnew = i_dim(&ipnew, &c__0); /* call setbits(idynd,8,4,ipnew) */ -#line 21138 "" +#line 21205 "" setbits_(&idynd, &c__8, &c__5, &ipnew); -#line 21139 "" +#line 21206 "" comdyn_1.ivxiptxt[itxtdyn - 1] = idynd; -#line 21140 "" +#line 21207 "" /* L43: */ -#line 21140 "" +#line 21207 "" } -#line 21141 "" +#line 21208 "" i__2 = all_1.nsdat; -#line 21141 "" +#line 21208 "" for (isdat = 1; isdat <= i__2; ++isdat) { -#line 21142 "" +#line 21209 "" isdata = all_1.isdat1[isdat - 1]; -#line 21143 "" +#line 21210 "" commvl_1.ivx = commvl_1.ivmx[igetbits_(&isdata, &c__5, &c__13) + (igetbits_(&isdata, &c__1, &c__12) + 1) * 24 - 25]; -#line 21144 "" +#line 21211 "" ipnew = igetbits_(&isdata, &c__8, &c__3) - all_1.nib[ commvl_1.ivx + (all_1.ibar - 1) * 24 - 25]; -#line 21145 "" +#line 21212 "" if (all_1.ibar > 2) { -#line 21146 "" +#line 21213 "" ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 - 25]; -#line 21147 "" +#line 21214 "" } -#line 21148 "" +#line 21215 "" ipnew = i_dim(&ipnew, &c__0); -#line 21149 "" +#line 21216 "" setbits_(&isdata, &c__8, &c__3, &ipnew); -#line 21150 "" +#line 21217 "" all_1.isdat1[isdat - 1] = isdata; -#line 21151 "" +#line 21218 "" /* L41: */ -#line 21151 "" +#line 21218 "" } -#line 21152 "" +#line 21219 "" i__2 = comcb_1.nbc; -#line 21152 "" +#line 21219 "" for (ibc = 1; ibc <= i__2; ++ibc) { /* ivx = iand(15,ibcdata(ibc)) */ -#line 21154 "" +#line 21221 "" commvl_1.ivx = (15 & comcb_1.ibcdata[ibc - 1]) + (igetbits_(& comcb_1.ibcdata[ibc - 1], &c__1, &c__28) << 4); -#line 21155 "" +#line 21222 "" ipnew = igetbits_(&comcb_1.ibcdata[ibc - 1], &c__8, &c__4) - all_1.nib[commvl_1.ivx + (all_1.ibar - 1) * 24 - 25]; -#line 21156 "" +#line 21223 "" if (all_1.ibar > 2) { -#line 21157 "" +#line 21224 "" ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 - 25]; -#line 21158 "" +#line 21225 "" } -#line 21159 "" +#line 21226 "" ipnew = i_dim(&ipnew, &c__0); -#line 21160 "" +#line 21227 "" setbits_(&comcb_1.ibcdata[ibc - 1], &c__8, &c__4, &ipnew); -#line 21161 "" +#line 21228 "" /* L44: */ -#line 21161 "" +#line 21228 "" } -#line 21162 "" +#line 21229 "" i__2 = comarpshift_1.numarpshift; -#line 21162 "" +#line 21229 "" for (iarps = 1; iarps <= i__2; ++iarps) { -#line 21163 "" +#line 21230 "" comarpshift_1.iparpshift[iarps - 1] -= all_1.nib[ comarpshift_1.ivarpshift[iarps - 1] + (all_1.ibar - 1) * 24 - 25]; -#line 21165 "" +#line 21232 "" if (all_1.ibar > 2) { -#line 21166 "" +#line 21233 "" comarpshift_1.iparpshift[iarps - 1] += all_1.nib[ comarpshift_1.ivarpshift[iarps - 1] + (all_1.ibar - 2) * 24 - 25]; -#line 21168 "" +#line 21235 "" } -#line 21169 "" +#line 21236 "" /* L45: */ -#line 21169 "" +#line 21236 "" } /* Bookkeeping for figures. This will set nfigs = 0 if there are no figs left. */ /* If there are figs left, it will reset all times relative to start of */ /* current bar. */ -#line 21175 "" +#line 21242 "" for (commvl_1.ivx = 1; commvl_1.ivx <= 2; ++commvl_1.ivx) { -#line 21176 "" +#line 21243 "" if (all_1.figbass) { -#line 21177 "" +#line 21244 "" islide = 0; -#line 21178 "" +#line 21245 "" i__2 = comfig_1.nfigs[commvl_1.ivx - 1]; -#line 21178 "" +#line 21245 "" for (jfig = 1; jfig <= i__2; ++jfig) { -#line 21179 "" +#line 21246 "" if (comfig_1.itfig[commvl_1.ivx + (jfig << 1) - 3] < all_1.lenbar) { /* This figure was already used */ -#line 21183 "" +#line 21250 "" islide = jfig; -#line 21184 "" +#line 21251 "" } else { -#line 21185 "" +#line 21252 "" comfig_1.itfig[commvl_1.ivx + (jfig - islide << 1) - 3] = comfig_1.itfig[commvl_1.ivx + ( jfig << 1) - 3] - all_1.lenbar; -#line 21186 "" +#line 21253 "" s_copy(comfig_1.figq + (commvl_1.ivx + (jfig - islide << 1) - 3) * 10, comfig_1.figq + ( commvl_1.ivx + (jfig << 1) - 3) * 10, ( ftnlen)10, (ftnlen)10); -#line 21187 "" +#line 21254 "" comgrace_1.itoff[commvl_1.ivx + (jfig - islide << 1) - 3] = comgrace_1.itoff[commvl_1.ivx + (jfig << 1) - 3]; -#line 21188 "" +#line 21255 "" comfig_1.ivupfig[commvl_1.ivx + (jfig - islide << 1) - 3] = comfig_1.ivupfig[commvl_1.ivx + (jfig << 1) - 3]; -#line 21189 "" +#line 21256 "" comfig_1.ivvfig[commvl_1.ivx + (jfig - islide << 1) - 3] = comfig_1.ivvfig[commvl_1.ivx + ( jfig << 1) - 3]; -#line 21190 "" +#line 21257 "" } -#line 21191 "" +#line 21258 "" /* L20: */ -#line 21191 "" +#line 21258 "" } -#line 21192 "" +#line 21259 "" comfig_1.nfigs[commvl_1.ivx - 1] -= islide; -#line 21193 "" +#line 21260 "" } -#line 21194 "" +#line 21261 "" if (comfig_1.nfigs[1] == 0) { -#line 21194 "" +#line 21261 "" goto L47; -#line 21194 "" +#line 21261 "" } -#line 21195 "" +#line 21262 "" /* L46: */ -#line 21195 "" +#line 21262 "" } -#line 21196 "" +#line 21263 "" L47: -#line 21197 "" +#line 21264 "" ; -#line 21197 "" +#line 21264 "" } /* End of sliding down for bars after first in gulp. */ /* The following may not be needed by makeabar, but just in case... */ -#line 21203 "" +#line 21270 "" if (all_1.firstgulp && all_1.lenb0 != 0) { -#line 21204 "" +#line 21271 "" if (all_1.ibar == 1) { -#line 21205 "" +#line 21272 "" all_1.lenbar = all_1.lenb0; -#line 21206 "" +#line 21273 "" } else { -#line 21207 "" +#line 21274 "" all_1.lenbar = all_1.lenb1; -#line 21208 "" +#line 21275 "" } -#line 21209 "" +#line 21276 "" } /* Equal line spacing stuff */ -#line 21213 "" +#line 21280 "" if (comget_1.equalize && comask_1.bar1syst) { -#line 21214 "" +#line 21281 "" if (isystpg == 1) { -#line 21215 "" - s_wsfe(&io___1455); +#line 21282 "" + s_wsfe(&io___1457); /* Writing concatenation */ -#line 21215 "" +#line 21282 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21215 "" +#line 21282 "" i__6[1] = 8, a__4[1] = "starteq%"; -#line 21215 "" +#line 21282 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9); -#line 21215 "" +#line 21282 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 21215 "" +#line 21282 "" e_wsfe(); -#line 21216 "" +#line 21283 "" } else if (isystpg == comnotes_1.nsystp[comnotes_1.ipage - 1] - 1) { -#line 21217 "" - s_wsfe(&io___1456); +#line 21284 "" + s_wsfe(&io___1458); /* Writing concatenation */ -#line 21217 "" +#line 21284 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21217 "" +#line 21284 "" i__6[1] = 6, a__4[1] = "endeq%"; -#line 21217 "" +#line 21284 "" s_cat(ch__36, a__4, i__6, &c__2, (ftnlen)7); -#line 21217 "" +#line 21284 "" do_fio(&c__1, ch__36, (ftnlen)7); -#line 21217 "" +#line 21284 "" e_wsfe(); -#line 21218 "" +#line 21285 "" } -#line 21219 "" +#line 21286 "" } -#line 21220 "" +#line 21287 "" make1bar_(&ibmrep, &tglp1, tstart, cwrest, squez, istop, numbms, istart); -#line 21222 "" +#line 21289 "" make2bar_(&comnotes_1.ninow, &tglp1, tstart, cwrest, squez, istop, numbms, istart, comclefq_1.clefq, (ftnlen)1); /* Hardspace before barline? */ -#line 21227 "" +#line 21294 "" hardb4 = 0.f; -#line 21228 "" +#line 21295 "" i__2 = all_1.nv; -#line 21228 "" +#line 21295 "" for (all_1.iv = 1; all_1.iv <= i__2; ++all_1.iv) { -#line 21229 "" +#line 21296 "" i__7 = commvl_1.nvmx[all_1.iv - 1]; -#line 21229 "" +#line 21296 "" for (kv = 1; kv <= i__7; ++kv) { -#line 21230 "" +#line 21297 "" commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25]; -#line 21231 "" +#line 21298 "" if (bit_test(all_1.irest[commvl_1.ivx + all_1.nn[commvl_1.ivx - 1] * 24 - 25],18)) { -#line 21232 "" +#line 21299 "" ++comudsp_1.nudoff[commvl_1.ivx - 1]; /* Computing MAX */ -#line 21233 "" +#line 21300 "" r__1 = hardb4, r__2 = comudsp_1.udoff[commvl_1.ivx + comudsp_1.nudoff[commvl_1.ivx - 1] * 24 - 25]; -#line 21233 "" +#line 21300 "" hardb4 = dmax(r__1,r__2); -#line 21234 "" +#line 21301 "" } -#line 21235 "" +#line 21302 "" /* L35: */ -#line 21235 "" +#line 21302 "" } -#line 21235 "" +#line 21302 "" } -#line 21236 "" +#line 21303 "" if (hardb4 > 0.f) { -#line 21237 "" +#line 21304 "" if (comlast_1.islast) { -#line 21237 "" - s_wsfe(&io___1464); +#line 21304 "" + s_wsfe(&io___1466); /* Writing concatenation */ -#line 21237 "" +#line 21304 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21237 "" +#line 21304 "" i__6[1] = 10, a__4[1] = "hardspace{"; -#line 21237 "" +#line 21304 "" s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11); -#line 21237 "" +#line 21304 "" do_fio(&c__1, ch__15, (ftnlen)11); -#line 21237 "" +#line 21304 "" do_fio(&c__1, (char *)&hardb4, (ftnlen)sizeof(real)); -#line 21237 "" +#line 21304 "" do_fio(&c__1, "pt}%", (ftnlen)4); -#line 21237 "" +#line 21304 "" e_wsfe(); -#line 21237 "" +#line 21304 "" } /* This was causing an incorrect poe in an example, which did not affect main */ /* spacing, but did cause an extra accidental space to be too small */ -#line 21243 "" +#line 21310 "" comask_1.fixednew -= hardb4; -#line 21244 "" +#line 21311 "" } -#line 21245 "" +#line 21312 "" /* L10: */ -#line 21245 "" +#line 21312 "" } -#line 21246 "" +#line 21313 "" all_1.firstgulp = FALSE_; -#line 21247 "" +#line 21314 "" all_1.lenb0 = 0; -#line 21248 "" +#line 21315 "" goto L30; -#line 21249 "" +#line 21316 "" L40: -#line 21249 "" +#line 21316 "" cl__1.cerr = 0; -#line 21249 "" +#line 21316 "" cl__1.cunit = 12; -#line 21249 "" +#line 21316 "" cl__1.csta = 0; -#line 21249 "" +#line 21316 "" f_clos(&cl__1); -#line 21250 "" +#line 21317 "" cl__1.cerr = 0; -#line 21250 "" +#line 21317 "" cl__1.cunit = 13; -#line 21250 "" +#line 21317 "" cl__1.csta = 0; -#line 21250 "" +#line 21317 "" f_clos(&cl__1); -#line 21251 "" +#line 21318 "" inbuff_1.ilbuf = 1; -#line 21252 "" +#line 21319 "" inbuff_1.ipbuf = 0; -#line 21253 "" +#line 21320 "" wdpt = comtop_1.widthpt; -#line 21254 "" +#line 21321 "" if (all_1.iline == 1) { -#line 21254 "" +#line 21321 "" wdpt = comtop_1.widthpt * (1 - comtop_1.fracindent); -#line 21254 "" +#line 21321 "" } -#line 21255 "" +#line 21322 "" poe = (wdpt - fsyst * all_1.musicsize - nbarss * .4f - comask_1.fixednew) / (elsktot + comask_1.fbar * nbarss - comask_1.scaldold); -#line 21257 "" +#line 21324 "" poevec[nsyst] = poe; -#line 21258 "" +#line 21325 "" if (! comlast_1.islast) { -#line 21259 "" +#line 21326 "" cl__1.cerr = 0; -#line 21259 "" +#line 21326 "" cl__1.cunit = 11; -#line 21259 "" +#line 21326 "" cl__1.csta = 0; -#line 21259 "" +#line 21326 "" f_clos(&cl__1); -#line 21260 "" +#line 21327 "" cl__1.cerr = 0; -#line 21260 "" +#line 21327 "" cl__1.cunit = 16; -#line 21260 "" +#line 21327 "" cl__1.csta = 0; -#line 21260 "" +#line 21327 "" f_clos(&cl__1); -#line 21261 "" +#line 21328 "" if (all_1.figbass) { -#line 21261 "" +#line 21328 "" cl__1.cerr = 0; -#line 21261 "" +#line 21328 "" cl__1.cunit = 14; -#line 21261 "" +#line 21328 "" cl__1.csta = 0; -#line 21261 "" +#line 21328 "" f_clos(&cl__1); -#line 21261 "" +#line 21328 "" } -#line 21262 "" +#line 21329 "" return 0; -#line 21263 "" +#line 21330 "" } -#line 21264 "" +#line 21331 "" i__1 = comas2_1.nasksys; -#line 21264 "" +#line 21331 "" for (ia = 1; ia <= i__1; ++ia) { -#line 21265 "" +#line 21332 "" ++comas3_1.iask; -#line 21266 "" +#line 21333 "" comas3_1.ask[comas3_1.iask - 1] = comas2_1.wasksys[ia - 1] / poe - ( r__1 = comas2_1.elasksys[ia - 1], dabs(r__1)); -#line 21267 "" +#line 21334 "" if (comas2_1.elasksys[ia - 1] > 0.f) { -#line 21267 "" +#line 21334 "" comas3_1.ask[comas3_1.iask - 1] = r_dim(&comas3_1.ask[ - comas3_1.iask - 1], &c_b762); -#line 21267 "" + comas3_1.iask - 1], &c_b768); +#line 21334 "" } -#line 21268 "" +#line 21335 "" /* L19: */ -#line 21268 "" +#line 21335 "" } -#line 21269 "" +#line 21336 "" i__1 = nhssys; -#line 21269 "" +#line 21336 "" for (ia = 1; ia <= i__1; ++ia) { -#line 21270 "" +#line 21337 "" ++nhstot; /* Computing MAX */ -#line 21271 "" +#line 21338 "" r__1 = hpts[ia - 1] - hesk[ia - 1] * poe; -#line 21271 "" +#line 21338 "" comhsp_1.hpttot[nhstot - 1] = dmax(r__1,0.f); -#line 21272 "" +#line 21339 "" /* L26: */ -#line 21272 "" +#line 21339 "" } -#line 21273 "" +#line 21340 "" if (comlast_1.islast && onvolt) { -#line 21273 "" - s_wsfe(&io___1465); +#line 21340 "" + s_wsfe(&io___1467); /* Writing concatenation */ -#line 21273 "" +#line 21340 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21273 "" +#line 21340 "" i__6[1] = 11, a__4[1] = "endvoltabox"; -#line 21273 "" +#line 21340 "" s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12); -#line 21273 "" +#line 21340 "" do_fio(&c__1, ch__14, (ftnlen)12); -#line 21273 "" +#line 21340 "" e_wsfe(); -#line 21273 "" +#line 21340 "" } -#line 21275 "" +#line 21342 "" if (*(unsigned char *)comget_1.rptfq2 != 'E') { /* Terminal repeat. Right or double? */ -#line 21279 "" +#line 21346 "" if (*(unsigned char *)comget_1.rptfq2 == 'r') { -#line 21280 "" +#line 21347 "" if (comlast_1.islast) { -#line 21280 "" - s_wsfe(&io___1466); +#line 21347 "" + s_wsfe(&io___1468); /* Writing concatenation */ -#line 21280 "" +#line 21347 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 21280 "" +#line 21347 "" i__5[1] = 14, a__3[1] = "setrightrepeat"; -#line 21280 "" +#line 21347 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 21280 "" +#line 21347 "" i__5[3] = 8, a__3[3] = "endpiece"; -#line 21280 "" +#line 21347 "" s_cat(ch__37, a__3, i__5, &c__4, (ftnlen)24); -#line 21280 "" +#line 21347 "" do_fio(&c__1, ch__37, (ftnlen)24); -#line 21280 "" +#line 21347 "" e_wsfe(); -#line 21280 "" +#line 21347 "" } -#line 21282 "" +#line 21349 "" } else if (*(unsigned char *)comget_1.rptfq2 == 'd') { -#line 21283 "" +#line 21350 "" if (comlast_1.islast) { -#line 21283 "" - s_wsfe(&io___1467); +#line 21350 "" + s_wsfe(&io___1469); /* Writing concatenation */ -#line 21283 "" +#line 21350 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 21283 "" +#line 21350 "" i__5[1] = 12, a__3[1] = "setdoublebar"; -#line 21283 "" +#line 21350 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 21283 "" +#line 21350 "" i__5[3] = 8, a__3[3] = "endpiece"; -#line 21283 "" +#line 21350 "" s_cat(ch__38, a__3, i__5, &c__4, (ftnlen)22); -#line 21283 "" +#line 21350 "" do_fio(&c__1, ch__38, (ftnlen)22); -#line 21283 "" +#line 21350 "" e_wsfe(); -#line 21283 "" +#line 21350 "" } -#line 21284 "" +#line 21351 "" } else if (*(unsigned char *)comget_1.rptfq2 == 'b') { -#line 21285 "" +#line 21352 "" if (comlast_1.islast) { -#line 21285 "" - s_wsfe(&io___1468); +#line 21352 "" + s_wsfe(&io___1470); /* Writing concatenation */ -#line 21285 "" +#line 21352 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21285 "" +#line 21352 "" i__6[1] = 8, a__4[1] = "endpiece"; -#line 21285 "" +#line 21352 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9); -#line 21285 "" +#line 21352 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 21285 "" +#line 21352 "" e_wsfe(); -#line 21285 "" +#line 21352 "" } -#line 21286 "" +#line 21353 "" } else if (*(unsigned char *)comget_1.rptfq2 == 'z') { -#line 21287 "" +#line 21354 "" if (comlast_1.islast) { -#line 21287 "" - s_wsfe(&io___1469); +#line 21354 "" + s_wsfe(&io___1471); /* Writing concatenation */ -#line 21287 "" +#line 21354 "" i__5[0] = 1, a__3[0] = all_1.sq; -#line 21287 "" +#line 21354 "" i__5[1] = 12, a__3[1] = "setzalaligne"; -#line 21287 "" +#line 21354 "" i__5[2] = 1, a__3[2] = all_1.sq; -#line 21287 "" +#line 21354 "" i__5[3] = 8, a__3[3] = "Endpiece"; -#line 21287 "" +#line 21354 "" s_cat(ch__38, a__3, i__5, &c__4, (ftnlen)22); -#line 21287 "" +#line 21354 "" do_fio(&c__1, ch__38, (ftnlen)22); -#line 21287 "" +#line 21354 "" e_wsfe(); -#line 21287 "" +#line 21354 "" } -#line 21288 "" +#line 21355 "" } else { /* else if (rptfq2 .ne. 'D') then */ -#line 21290 "" - s_wsle(&io___1470); -#line 21290 "" +#line 21357 "" + s_wsle(&io___1472); +#line 21357 "" e_wsle(); -#line 21291 "" - s_wsle(&io___1471); -#line 21291 "" +#line 21358 "" + s_wsle(&io___1473); +#line 21358 "" do_lio(&c__9, &c__1, "R? , ? not \"d\",\"r\",or\"b\",\"z\"; rptf"\ "q2:", (ftnlen)37); -#line 21291 "" +#line 21358 "" do_lio(&c__9, &c__1, comget_1.rptfq2, (ftnlen)1); -#line 21291 "" +#line 21358 "" e_wsle(); -#line 21292 "" - s_wsle(&io___1472); -#line 21292 "" +#line 21359 "" + s_wsle(&io___1474); +#line 21359 "" do_lio(&c__9, &c__1, "R? , ? not \"d\",\"r\",or\"b\",\"z\"; rptf"\ "q2:", (ftnlen)37); -#line 21292 "" +#line 21359 "" do_lio(&c__9, &c__1, comget_1.rptfq2, (ftnlen)1); -#line 21292 "" +#line 21359 "" e_wsle(); -#line 21293 "" +#line 21360 "" if (comlast_1.islast) { -#line 21293 "" - s_wsfe(&io___1473); +#line 21360 "" + s_wsfe(&io___1475); /* Writing concatenation */ -#line 21293 "" +#line 21360 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21293 "" +#line 21360 "" i__6[1] = 8, a__4[1] = "Endpiece"; -#line 21293 "" +#line 21360 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9); -#line 21293 "" +#line 21360 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 21293 "" +#line 21360 "" e_wsfe(); -#line 21293 "" +#line 21360 "" } -#line 21294 "" +#line 21361 "" } -#line 21295 "" +#line 21362 "" } else { -#line 21296 "" +#line 21363 "" if (comlast_1.islast) { -#line 21296 "" - s_wsfe(&io___1474); +#line 21363 "" + s_wsfe(&io___1476); /* Writing concatenation */ -#line 21296 "" +#line 21363 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21296 "" +#line 21363 "" i__6[1] = 8, a__4[1] = "Endpiece"; -#line 21296 "" +#line 21363 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9); -#line 21296 "" +#line 21363 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 21296 "" +#line 21363 "" e_wsfe(); -#line 21296 "" +#line 21363 "" } -#line 21297 "" +#line 21364 "" } -#line 21298 "" +#line 21365 "" if (! vshrink) { -#line 21299 "" +#line 21366 "" xnstbot = xnsttop[comnotes_1.ipage - 1] * etabot / etatop; -#line 21300 "" +#line 21367 "" if (xnstbot < 9.95f) { -#line 21301 "" +#line 21368 "" s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (ftnlen)10); -#line 21302 "" +#line 21369 "" } else { -#line 21303 "" +#line 21370 "" s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (ftnlen)10); -#line 21304 "" +#line 21371 "" } -#line 21305 "" +#line 21372 "" if (comlast_1.islast) { -#line 21305 "" - s_wsfe(&io___1475); +#line 21372 "" + s_wsfe(&io___1477); /* Writing concatenation */ -#line 21305 "" +#line 21372 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21305 "" +#line 21372 "" i__6[1] = 5, a__4[1] = "vskip"; -#line 21305 "" +#line 21372 "" s_cat(ch__29, a__4, i__6, &c__2, (ftnlen)6); -#line 21305 "" +#line 21372 "" do_fio(&c__1, ch__29, (ftnlen)6); -#line 21305 "" +#line 21372 "" do_fio(&c__1, (char *)&xnstbot, (ftnlen)sizeof(real)); /* Writing concatenation */ -#line 21305 "" +#line 21372 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 21305 "" +#line 21372 "" i__4[1] = 10, a__2[1] = "Interligne"; -#line 21305 "" +#line 21372 "" i__4[2] = 1, a__2[2] = all_1.sq; -#line 21305 "" +#line 21372 "" i__4[3] = 5, a__2[3] = "eject"; -#line 21305 "" +#line 21372 "" i__4[4] = 1, a__2[4] = all_1.sq; -#line 21305 "" +#line 21372 "" i__4[5] = 9, a__2[5] = "endmuflex"; -#line 21305 "" +#line 21372 "" s_cat(ch__5, a__2, i__4, &c__6, (ftnlen)27); -#line 21305 "" +#line 21372 "" do_fio(&c__1, ch__5, (ftnlen)27); -#line 21305 "" +#line 21372 "" e_wsfe(); -#line 21305 "" +#line 21372 "" } -#line 21307 "" +#line 21374 "" if (comlast_1.islast) { -#line 21307 "" - s_wsfe(&io___1476); +#line 21374 "" + s_wsfe(&io___1478); /* Writing concatenation */ -#line 21307 "" +#line 21374 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21307 "" +#line 21374 "" i__6[1] = 3, a__4[1] = "bye"; -#line 21307 "" +#line 21374 "" s_cat(ch__21, a__4, i__6, &c__2, (ftnlen)4); -#line 21307 "" +#line 21374 "" do_fio(&c__1, ch__21, (ftnlen)4); -#line 21307 "" +#line 21374 "" e_wsfe(); -#line 21307 "" +#line 21374 "" } -#line 21308 "" +#line 21375 "" } else { -#line 21309 "" +#line 21376 "" if (comlast_1.islast) { -#line 21309 "" - s_wsfe(&io___1477); +#line 21376 "" + s_wsfe(&io___1479); /* Writing concatenation */ -#line 21309 "" +#line 21376 "" i__4[0] = 1, a__2[0] = all_1.sq; -#line 21309 "" +#line 21376 "" i__4[1] = 5, a__2[1] = "vfill"; -#line 21309 "" +#line 21376 "" i__4[2] = 1, a__2[2] = all_1.sq; -#line 21309 "" +#line 21376 "" i__4[3] = 5, a__2[3] = "eject"; -#line 21309 "" +#line 21376 "" i__4[4] = 1, a__2[4] = all_1.sq; -#line 21309 "" +#line 21376 "" i__4[5] = 9, a__2[5] = "endmuflex"; -#line 21309 "" +#line 21376 "" s_cat(ch__38, a__2, i__4, &c__6, (ftnlen)22); -#line 21309 "" +#line 21376 "" do_fio(&c__1, ch__38, (ftnlen)22); -#line 21309 "" +#line 21376 "" e_wsfe(); -#line 21309 "" +#line 21376 "" } -#line 21311 "" +#line 21378 "" if (comlast_1.islast) { -#line 21311 "" - s_wsfe(&io___1478); +#line 21378 "" + s_wsfe(&io___1480); /* Writing concatenation */ -#line 21311 "" +#line 21378 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21311 "" +#line 21378 "" i__6[1] = 3, a__4[1] = "bye"; -#line 21311 "" +#line 21378 "" s_cat(ch__21, a__4, i__6, &c__2, (ftnlen)4); -#line 21311 "" +#line 21378 "" do_fio(&c__1, ch__21, (ftnlen)4); -#line 21311 "" +#line 21378 "" e_wsfe(); -#line 21311 "" +#line 21378 "" } -#line 21312 "" +#line 21379 "" } -#line 21313 "" +#line 21380 "" al__1.aerr = 0; -#line 21313 "" +#line 21380 "" al__1.aunit = 11; -#line 21313 "" +#line 21380 "" f_rew(&al__1); -#line 21314 "" +#line 21381 "" if (all_1.figbass) { -#line 21315 "" - s_wsfe(&io___1479); +#line 21382 "" + s_wsfe(&io___1481); /* Writing concatenation */ -#line 21315 "" +#line 21382 "" i__6[0] = 1, a__4[0] = all_1.sq; -#line 21315 "" +#line 21382 "" i__6[1] = 8, a__4[1] = "figdrop="; -#line 21315 "" +#line 21382 "" s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9); -#line 21315 "" +#line 21382 "" do_fio(&c__1, ch__18, (ftnlen)9); -#line 21315 "" +#line 21382 "" do_fio(&c__1, (char *)&all_1.ifigdr[(all_1.iline << 1) - 2], (ftnlen) sizeof(integer)); /* Writing concatenation */ -#line 21315 "" +#line 21382 "" i__8[0] = 1, a__5[0] = " "; -#line 21315 "" +#line 21382 "" i__8[1] = 1, a__5[1] = all_1.sq; -#line 21315 "" +#line 21382 "" i__8[2] = 8, a__5[2] = "figdtwo="; -#line 21315 "" +#line 21382 "" s_cat(ch__20, a__5, i__8, &c__3, (ftnlen)10); -#line 21315 "" +#line 21382 "" do_fio(&c__1, ch__20, (ftnlen)10); -#line 21315 "" +#line 21382 "" do_fio(&c__1, (char *)&all_1.ifigdr[(all_1.iline << 1) - 1], (ftnlen) sizeof(integer)); /* Writing concatenation */ -#line 21315 "" +#line 21382 "" i__11[0] = 1, a__8[0] = all_1.sq; -#line 21315 "" +#line 21382 "" i__11[1] = 4, a__8[1] = "fi}%"; -#line 21315 "" +#line 21382 "" s_cat(ch__35, a__8, i__11, &c__2, (ftnlen)5); -#line 21315 "" +#line 21382 "" do_fio(&c__1, ch__35, (ftnlen)5); -#line 21315 "" +#line 21382 "" e_wsfe(); -#line 21318 "" +#line 21385 "" al__1.aerr = 0; -#line 21318 "" +#line 21385 "" al__1.aunit = 14; -#line 21318 "" +#line 21385 "" f_rew(&al__1); -#line 21319 "" +#line 21386 "" } -#line 21320 "" +#line 21387 "" askfig_(pathnameq, &lpath, basenameq, &lbase, &all_1.figbass, &istype0, ( ftnlen)40, (ftnlen)44); -#line 21321 "" +#line 21388 "" if (! (*optimize)) { -#line 21322 "" - s_wsle(&io___1480); -#line 21322 "" +#line 21389 "" + s_wsle(&io___1482); +#line 21389 "" e_wsle(); -#line 21323 "" - s_wsle(&io___1481); +#line 21390 "" + s_wsle(&io___1483); /* Writing concatenation */ -#line 21323 "" +#line 21390 "" i__5[0] = 8, a__3[0] = "Writing "; -#line 21323 "" +#line 21390 "" i__5[1] = lpath, a__3[1] = pathnameq; -#line 21323 "" +#line 21390 "" i__5[2] = lbase, a__3[2] = basenameq; -#line 21323 "" +#line 21390 "" i__5[3] = 4, a__3[3] = ".tex"; -#line 21323 "" +#line 21390 "" s_cat(ch__39, a__3, i__5, &c__4, (ftnlen)96); -#line 21323 "" +#line 21390 "" do_lio(&c__9, &c__1, ch__39, lpath + 8 + lbase + 4); -#line 21323 "" +#line 21390 "" e_wsle(); -#line 21325 "" - s_wsle(&io___1482); -#line 21325 "" +#line 21392 "" + s_wsle(&io___1484); +#line 21392 "" do_lio(&c__9, &c__1, "Done with second PMX pass.", (ftnlen)26); -#line 21325 "" +#line 21392 "" e_wsle(); -#line 21326 "" - s_wsfe(&io___1483); +#line 21393 "" + s_wsfe(&io___1485); /* Writing concatenation */ -#line 21326 "" +#line 21393 "" i__5[0] = 8, a__3[0] = "Writing "; -#line 21326 "" +#line 21393 "" i__5[1] = lpath, a__3[1] = pathnameq; -#line 21326 "" +#line 21393 "" i__5[2] = lbase, a__3[2] = basenameq; -#line 21326 "" +#line 21393 "" i__5[3] = 4, a__3[3] = ".tex"; -#line 21326 "" +#line 21393 "" s_cat(ch__39, a__3, i__5, &c__4, (ftnlen)96); -#line 21326 "" +#line 21393 "" do_fio(&c__1, ch__39, lpath + 8 + lbase + 4); -#line 21326 "" +#line 21393 "" e_wsfe(); -#line 21328 "" - s_wsfe(&io___1484); -#line 21328 "" +#line 21395 "" + s_wsfe(&io___1486); +#line 21395 "" do_fio(&c__1, " Done with second PMX pass. Now run TeX", (ftnlen)40); -#line 21328 "" +#line 21395 "" e_wsfe(); -#line 21329 "" +#line 21396 "" } -#line 21330 "" +#line 21397 "" return 0; } /* pmxb_ */ @@ -51701,41 +51828,41 @@ L40: /* Compute avg. & norm. std. dev. of poe. */ -#line 21338 "" +#line 21405 "" /* Parameter adjustments */ -#line 21338 "" +#line 21405 "" --poe; -#line 21338 "" +#line 21405 "" -#line 21338 "" +#line 21405 "" /* Function Body */ -#line 21338 "" +#line 21405 "" sumx = 0.f; -#line 21339 "" +#line 21406 "" sumxx = 0.f; -#line 21340 "" +#line 21407 "" i__1 = *nsyst; -#line 21340 "" +#line 21407 "" for (isyst = 1; isyst <= i__1; ++isyst) { -#line 21341 "" +#line 21408 "" sumx += poe[isyst]; /* Computing 2nd power */ -#line 21342 "" +#line 21409 "" r__1 = poe[isyst]; -#line 21342 "" +#line 21409 "" sumxx += r__1 * r__1; -#line 21343 "" +#line 21410 "" /* L1: */ -#line 21343 "" +#line 21410 "" } /* Computing 2nd power */ -#line 21344 "" +#line 21411 "" r__1 = sumx; -#line 21344 "" +#line 21411 "" *devnorm = sqrt(*nsyst * sumxx / (r__1 * r__1) - 1); -#line 21345 "" +#line 21412 "" *poebar = sumx / *nsyst; -#line 21346 "" +#line 21413 "" return 0; } /* poestats_ */ @@ -51764,10 +51891,10 @@ L40: integer *); /* Fortran I/O blocks */ - static cilist io___1492 = { 0, 6, 0, 0, 0 }; - static cilist io___1493 = { 0, 6, 0, 0, 0 }; - static cilist io___1504 = { 0, 6, 0, 0, 0 }; - static cilist io___1505 = { 0, 6, 0, 0, 0 }; + static cilist io___1494 = { 0, 6, 0, 0, 0 }; + static cilist io___1495 = { 0, 6, 0, 0, 0 }; + static cilist io___1506 = { 0, 6, 0, 0, 0 }; + static cilist io___1507 = { 0, 6, 0, 0, 0 }; @@ -51782,308 +51909,308 @@ L40: /* levtabl(i)=0 if no note at this level, -1 if main note, icrd if chord note. */ /* icrdot(icrd)(27-29) sequence order of chord note if accid, top down */ -#line 21368 "" +#line 21435 "" for (i__ = 1; i__ <= 88; ++i__) { -#line 21369 "" +#line 21436 "" levtabl[i__ - 1] = 0; -#line 21370 "" +#line 21437 "" /* L11: */ -#line 21370 "" +#line 21437 "" } -#line 21371 "" +#line 21438 "" i__1 = comtrill_1.ncrd; -#line 21371 "" +#line 21438 "" for (comtrill_1.icrd1 = 1; comtrill_1.icrd1 <= i__1; ++comtrill_1.icrd1) { -#line 21372 "" +#line 21439 "" ivx1 = (15 & lbit_shift(comtrill_1.icrdat[comtrill_1.icrd1 - 1], ( ftnlen)-8)) + (igetbits_(&comtrill_1.icrdat[comtrill_1.icrd1 - 1], &c__1, &c__28) << 4); -#line 21374 "" +#line 21441 "" ip1 = 255 & comtrill_1.icrdat[comtrill_1.icrd1 - 1]; -#line 21375 "" +#line 21442 "" if (ip1 == *ip && ivx1 == *ivx) { -#line 21375 "" +#line 21442 "" goto L2; -#line 21375 "" +#line 21442 "" } -#line 21376 "" +#line 21443 "" /* L1: */ -#line 21376 "" +#line 21443 "" } -#line 21377 "" - s_wsle(&io___1492); -#line 21377 "" +#line 21444 "" + s_wsle(&io___1494); +#line 21444 "" e_wsle(); -#line 21378 "" - s_wsle(&io___1493); -#line 21378 "" +#line 21445 "" + s_wsle(&io___1495); +#line 21445 "" do_lio(&c__9, &c__1, "Cannot find first chord note in precrd. Send sourc"\ "e to Dr. Don!", (ftnlen)63); -#line 21378 "" +#line 21445 "" e_wsle(); -#line 21380 "" +#line 21447 "" stop1_(); -#line 21381 "" +#line 21448 "" L2: -#line 21382 "" +#line 21449 "" comtrill_1.maxlev = *nolevm; -#line 21383 "" +#line 21450 "" comtrill_1.minlev = *nolevm; -#line 21384 "" +#line 21451 "" levtabl[*nolevm - 1] = -1; -#line 21385 "" +#line 21452 "" is2nd = FALSE_; -#line 21386 "" +#line 21453 "" naccid = 0; -#line 21387 "" +#line 21454 "" levmaxacc = -100; -#line 21388 "" +#line 21455 "" levminacc = 1000; /* Check 1st 3 bits of nacc for accid on main note of chord. */ -#line 21392 "" +#line 21459 "" if ((7 & *nacc) > 0) { -#line 21393 "" +#line 21460 "" naccid = 1; /* Start list of notes with accid's. There will be naccid of them. kicrd=0 if main, */ /* otherwise icrd value for note with accidental. */ -#line 21398 "" +#line 21465 "" kicrd[0] = 0; -#line 21399 "" +#line 21466 "" levmaxacc = *nolevm; -#line 21400 "" +#line 21467 "" levminacc = *nolevm; /* Start the level-ranking */ -#line 21404 "" +#line 21471 "" icrdot0 = 1; -#line 21405 "" +#line 21472 "" } -#line 21406 "" +#line 21473 "" i__1 = comtrill_1.ncrd; -#line 21406 "" +#line 21473 "" for (comtrill_1.icrd2 = comtrill_1.icrd1; comtrill_1.icrd2 <= i__1; ++comtrill_1.icrd2) { -#line 21407 "" +#line 21474 "" nolev = igetbits_(&comtrill_1.icrdat[comtrill_1.icrd2 - 1], &c__7, & c__12); -#line 21408 "" +#line 21475 "" levtabl[nolev - 1] = comtrill_1.icrd2; -#line 21409 "" +#line 21476 "" comtrill_1.maxlev = max(comtrill_1.maxlev,nolev); -#line 21410 "" +#line 21477 "" comtrill_1.minlev = min(comtrill_1.minlev,nolev); /* Check for accidental */ -#line 21414 "" +#line 21481 "" if (bit_test(comtrill_1.icrdat[comtrill_1.icrd2 - 1],19)) { -#line 21415 "" +#line 21482 "" ++naccid; -#line 21416 "" +#line 21483 "" levmaxacc = max(levmaxacc,nolev); -#line 21417 "" +#line 21484 "" levminacc = min(levminacc,nolev); /* Add this icrd to list of values for notes with accid's. */ -#line 21421 "" +#line 21488 "" kicrd[naccid - 1] = comtrill_1.icrd2; -#line 21422 "" +#line 21489 "" if (! bit_test(*nacc,28)) { /* Order not forced, so get the level-ranking, top down */ -#line 21426 "" +#line 21493 "" iorder = 1; -#line 21427 "" +#line 21494 "" i__2 = naccid - 1; -#line 21427 "" +#line 21494 "" for (iaccid = 1; iaccid <= i__2; ++iaccid) { -#line 21428 "" +#line 21495 "" if (kicrd[iaccid - 1] == 0) { -#line 21429 "" +#line 21496 "" if (*nolevm > nolev) { -#line 21430 "" +#line 21497 "" ++iorder; -#line 21431 "" +#line 21498 "" } else { -#line 21432 "" +#line 21499 "" ++icrdot0; -#line 21433 "" +#line 21500 "" } -#line 21434 "" +#line 21501 "" } else { -#line 21435 "" +#line 21502 "" if (igetbits_(&comtrill_1.icrdat[kicrd[iaccid - 1] - 1], &c__7, &c__12) > nolev) { -#line 21437 "" +#line 21504 "" ++iorder; -#line 21438 "" +#line 21505 "" } else { -#line 21439 "" +#line 21506 "" iold = igetbits_(&comtrill_1.icrdot[kicrd[iaccid - 1] - 1], &c__3, &c__27); -#line 21440 "" +#line 21507 "" i__3 = iold + 1; -#line 21440 "" +#line 21507 "" setbits_(&comtrill_1.icrdot[kicrd[iaccid - 1] - 1] , &c__3, &c__27, &i__3); -#line 21441 "" +#line 21508 "" } -#line 21442 "" +#line 21509 "" } -#line 21443 "" +#line 21510 "" /* L12: */ -#line 21443 "" +#line 21510 "" } -#line 21444 "" +#line 21511 "" setbits_(&comtrill_1.icrdot[comtrill_1.icrd2 - 1], &c__3, & c__27, &iorder); -#line 21445 "" +#line 21512 "" } -#line 21446 "" +#line 21513 "" } /* Exit loop if last note in this chord */ -#line 21450 "" +#line 21517 "" if (comtrill_1.icrd2 == comtrill_1.ncrd) { -#line 21450 "" +#line 21517 "" goto L4; -#line 21450 "" +#line 21517 "" } -#line 21451 "" +#line 21518 "" if (igetbits_(&comtrill_1.icrdat[comtrill_1.icrd2], &c__8, &c__0) != * ip || igetbits_(&comtrill_1.icrdat[comtrill_1.icrd2], &c__4, & c__8) + (igetbits_(&comtrill_1.icrdat[comtrill_1.icrd2], & c__1, &c__28) << 4) != *ivx) { -#line 21451 "" +#line 21518 "" goto L4; -#line 21451 "" +#line 21518 "" } /* * igetbits(icrdat(icrd2+1),4,8) .ne. ivx) go to 4 */ -#line 21455 "" +#line 21522 "" /* L3: */ -#line 21455 "" +#line 21522 "" } -#line 21456 "" - s_wsle(&io___1504); -#line 21456 "" +#line 21523 "" + s_wsle(&io___1506); +#line 21523 "" e_wsle(); -#line 21457 "" - s_wsle(&io___1505); -#line 21457 "" +#line 21524 "" + s_wsle(&io___1507); +#line 21524 "" do_lio(&c__9, &c__1, "Failed to find last chord note. Send source to Dr."\ " Don!", (ftnlen)55); -#line 21457 "" +#line 21524 "" e_wsle(); -#line 21458 "" +#line 21525 "" stop1_(); -#line 21459 "" +#line 21526 "" L4: /* Now icrd1, icrd2 define range of icrd for this chord. */ /* Bypass autos-shifting if any manual shifts are present */ -#line 21465 "" +#line 21532 "" if (bit_test(*irest,20) || bit_test(*irest,27)) { -#line 21465 "" +#line 21532 "" goto L10; -#line 21465 "" +#line 21532 "" } /* Check for 2nds */ -#line 21469 "" +#line 21536 "" for (ilev = 1; ilev <= 87; ++ilev) { -#line 21470 "" +#line 21537 "" if (levtabl[ilev - 1] != 0 && levtabl[ilev] != 0) { /* There is at least one 2nd.. */ -#line 21474 "" +#line 21541 "" if (*(unsigned char *)udq == 'u') { /* Upstem. Start with 2nd just found and go up, rt-shifting upper */ /* member of each pair */ -#line 21479 "" +#line 21546 "" ile = ilev; /* Set main-note flag for ANY right-shift */ -#line 21483 "" +#line 21550 "" *irest = bit_set(*irest,20); -#line 21484 "" +#line 21551 "" L7: -#line 21485 "" +#line 21552 "" if (levtabl[ile] < 0) { /* Upstem, & upper member is main so must be rt-shifted. This would move */ /* stem too, so we rt-shift the OTHER note, and set flag that signals */ /* to interchange pitches just when these two notes are placed. */ -#line 21491 "" +#line 21558 "" *nacc = bit_set(*nacc,30); -#line 21492 "" +#line 21559 "" comtrill_1.icrdat[levtabl[ile - 1] - 1] = bit_set( comtrill_1.icrdat[levtabl[ile - 1] - 1],24); -#line 21493 "" +#line 21560 "" } else { /* Upper member is chord note, must be rt-shifted */ -#line 21497 "" +#line 21564 "" comtrill_1.icrdat[levtabl[ile] - 1] = bit_set( comtrill_1.icrdat[levtabl[ile] - 1],24); -#line 21498 "" +#line 21565 "" } -#line 21499 "" +#line 21566 "" ++ile; -#line 21500 "" +#line 21567 "" L8: -#line 21501 "" +#line 21568 "" ++ile; -#line 21502 "" +#line 21569 "" if (ile < 87) { -#line 21503 "" +#line 21570 "" if (levtabl[ile - 1] != 0 && levtabl[ile] != 0) { -#line 21504 "" +#line 21571 "" goto L7; -#line 21505 "" +#line 21572 "" } else { -#line 21506 "" +#line 21573 "" goto L8; -#line 21507 "" +#line 21574 "" } -#line 21508 "" +#line 21575 "" } -#line 21509 "" +#line 21576 "" goto L10; -#line 21510 "" +#line 21577 "" } else { /* Downstem. Start at top and work down, left-shifting lower member of each pair. */ /* We know that lowest pair is at (ilev,ilev+1). */ -#line 21515 "" +#line 21582 "" ile = 88; /* Set main-note flag for ANY right-shift */ -#line 21519 "" +#line 21586 "" *irest = bit_set(*irest,27); -#line 21520 "" +#line 21587 "" L9: -#line 21521 "" +#line 21588 "" if (levtabl[ile - 1] != 0 && levtabl[ile - 2] != 0) { -#line 21522 "" +#line 21589 "" if (levtabl[ile - 2] < 0) { /* ipl = ibset(ipl,8) */ @@ -52091,57 +52218,57 @@ L9: /* stem too, so we left-shift the OTHER note, and set flag that signals */ /* to interchange pitches just when these two notes are placed. */ -#line 21529 "" +#line 21596 "" *nacc = bit_set(*nacc,31); -#line 21530 "" +#line 21597 "" comtrill_1.icrdat[levtabl[ile - 1] - 1] = bit_set( comtrill_1.icrdat[levtabl[ile - 1] - 1],23); -#line 21531 "" +#line 21598 "" } else { /* Lower member is chord note, must be shifted */ -#line 21535 "" +#line 21602 "" comtrill_1.icrdat[levtabl[ile - 2] - 1] = bit_set( comtrill_1.icrdat[levtabl[ile - 2] - 1],23); -#line 21537 "" +#line 21604 "" } -#line 21538 "" +#line 21605 "" --ile; -#line 21539 "" +#line 21606 "" } -#line 21540 "" +#line 21607 "" --ile; -#line 21541 "" +#line 21608 "" if (ile >= ilev + 1) { -#line 21541 "" +#line 21608 "" goto L9; -#line 21541 "" +#line 21608 "" } -#line 21542 "" +#line 21609 "" goto L10; -#line 21543 "" +#line 21610 "" } -#line 21544 "" +#line 21611 "" } -#line 21545 "" +#line 21612 "" /* L5: */ -#line 21545 "" +#line 21612 "" } -#line 21546 "" +#line 21613 "" L10: /* Done with 2nds, now do accid's. Call even if just one, in case left shifts. */ /* if (naccid .gt. 1) call crdaccs(nacc,ipl,irest,naccid, */ -#line 21551 "" +#line 21618 "" if (naccid >= 1) { -#line 21551 "" +#line 21618 "" crdaccs_(nacc, ipl, irest, &naccid, kicrd, nolevm, &levmaxacc, & levminacc, &icrdot0, twooftwo, icashft); -#line 21551 "" +#line 21618 "" } -#line 21553 "" +#line 21620 "" return 0; } /* precrd_ */ @@ -52153,26 +52280,26 @@ L10: e_wsfe(void); /* Fortran I/O blocks */ - static cilist io___1508 = { 0, 6, 0, 0, 0 }; - static cilist io___1509 = { 0, 15, 0, "(a)", 0 }; + static cilist io___1510 = { 0, 6, 0, 0, 0 }; + static cilist io___1511 = { 0, 15, 0, "(a)", 0 }; /* Send string to console and to log file */ -#line 21560 "" - s_wsle(&io___1508); -#line 21560 "" +#line 21627 "" + s_wsle(&io___1510); +#line 21627 "" do_lio(&c__9, &c__1, string, string_len); -#line 21560 "" +#line 21627 "" e_wsle(); -#line 21561 "" - s_wsfe(&io___1509); -#line 21561 "" +#line 21628 "" + s_wsfe(&io___1511); +#line 21628 "" do_fio(&c__1, string, string_len); -#line 21561 "" +#line 21628 "" e_wsfe(); -#line 21562 "" +#line 21629 "" return 0; } /* printl_ */ @@ -52210,9 +52337,9 @@ L10: static integer iivivx1; /* Fortran I/O blocks */ - static icilist io___1515 = { 0, notexq+9, 0, "(f3.1,a2)", 5, 1 }; - static cilist io___1521 = { 0, 6, 0, 0, 0 }; - static cilist io___1522 = { 0, 6, 0, 0, 0 }; + static icilist io___1517 = { 0, notexq+9, 0, "(f3.1,a2)", 5, 1 }; + static cilist io___1523 = { 0, 6, 0, 0, 0 }; + static cilist io___1524 = { 0, 6, 0, 0, 0 }; @@ -52220,323 +52347,323 @@ L10: /* Find which iarp, if any */ -#line 21583 "" +#line 21650 "" i__1 = comarp_1.narp; -#line 21583 "" +#line 21650 "" for (iarp = 1; iarp <= i__1; ++iarp) { -#line 21584 "" +#line 21651 "" if ((r__1 = *tnow - comarp_1.tar[iarp - 1], dabs(r__1)) < comtol_1.tol) { -#line 21584 "" +#line 21651 "" goto L2; -#line 21584 "" +#line 21651 "" } -#line 21585 "" +#line 21652 "" /* L1: */ -#line 21585 "" +#line 21652 "" } /* If here, this is the *first* call for this arp. */ -#line 21589 "" +#line 21656 "" ++comarp_1.narp; -#line 21590 "" +#line 21657 "" comarp_1.tar[comarp_1.narp - 1] = *tnow + comtol_1.tol * .5f; -#line 21591 "" +#line 21658 "" comarp_1.ivar1[comarp_1.narp - 1] = *iv; -#line 21592 "" +#line 21659 "" comarp_1.ipar1[comarp_1.narp - 1] = *ip; -#line 21593 "" +#line 21660 "" comarp_1.levar1[comarp_1.narp - 1] = *nolev; -#line 21594 "" +#line 21661 "" comarp_1.ncmar1[comarp_1.narp - 1] = *ncm; -#line 21595 "" +#line 21662 "" return 0; -#line 21596 "" +#line 21663 "" L2: /* If here, this is *second* call at this time, narp points to values from 1st. */ /* Check for shift. Set IsArpShift and iarps */ -#line 21602 "" +#line 21669 "" i__1 = comarpshift_1.numarpshift; -#line 21602 "" +#line 21669 "" for (iarps = 1; iarps <= i__1; ++iarps) { -#line 21603 "" +#line 21670 "" if (comarpshift_1.ivarpshift[iarps - 1] == comarp_1.ivar1[iarp - 1] && comarpshift_1.iparpshift[iarps - 1] == comarp_1.ipar1[iarp - 1]) { -#line 21605 "" +#line 21672 "" isarpshift = TRUE_; /* Writing concatenation */ -#line 21606 "" +#line 21673 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 21606 "" +#line 21673 "" i__2[0] = 1, a__1[0] = ch__1; -#line 21606 "" +#line 21673 "" i__2[1] = 8, a__1[1] = "loffset{"; -#line 21606 "" +#line 21673 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 21607 "" - s_wsfi(&io___1515); -#line 21607 "" +#line 21674 "" + s_wsfi(&io___1517); +#line 21674 "" do_fio(&c__1, (char *)&comarpshift_1.arpshift[iarps - 1], (ftnlen) sizeof(real)); -#line 21607 "" +#line 21674 "" do_fio(&c__1, "}{", (ftnlen)2); -#line 21607 "" +#line 21674 "" e_wsfi(); -#line 21608 "" +#line 21675 "" lnote = 14; -#line 21609 "" +#line 21676 "" goto L4; -#line 21610 "" +#line 21677 "" } -#line 21611 "" +#line 21678 "" /* L3: */ -#line 21611 "" +#line 21678 "" } -#line 21612 "" +#line 21679 "" isarpshift = FALSE_; -#line 21613 "" +#line 21680 "" lnote = 0; -#line 21614 "" +#line 21681 "" L4: -#line 21615 "" +#line 21682 "" if (*iv == comarp_1.ivar1[iarp - 1]) { /* Arp is in a single voice. */ /* Computing MIN */ -#line 21619 "" +#line 21686 "" i__1 = comarp_1.levar1[iarp - 1]; -#line 21619 "" +#line 21686 "" levbot = min(i__1,*nolev) - *ncm + 3; -#line 21620 "" +#line 21687 "" invert = (i__1 = comarp_1.levar1[iarp - 1] - *nolev, abs(i__1)) + 1; -#line 21621 "" +#line 21688 "" } else { /* Arp covers >1 voice. Lower voice has to be the first, upper is current and */ /* is where the symbol will be written. */ /* Check whether ivx's ivar1(iarp) & iv are in same staff */ -#line 21627 "" +#line 21694 "" for (iiv = 1; iiv <= 24; ++iiv) { -#line 21628 "" +#line 21695 "" if (commvl_1.ivmx[iiv - 1] == comarp_1.ivar1[iarp - 1] || commvl_1.nvmx[iiv - 1] == 2 && commvl_1.ivmx[iiv + 23] == comarp_1.ivar1[iarp - 1]) { -#line 21630 "" +#line 21697 "" iivivx1 = iiv; -#line 21631 "" +#line 21698 "" goto L6; -#line 21632 "" +#line 21699 "" } -#line 21633 "" +#line 21700 "" /* L5: */ -#line 21633 "" +#line 21700 "" } -#line 21634 "" - s_wsle(&io___1521); -#line 21634 "" +#line 21701 "" + s_wsle(&io___1523); +#line 21701 "" do_lio(&c__9, &c__1, "Screwup#1 in putarp", (ftnlen)19); -#line 21634 "" +#line 21701 "" e_wsle(); -#line 21635 "" +#line 21702 "" s_stop("", (ftnlen)0); -#line 21636 "" +#line 21703 "" L6: -#line 21637 "" +#line 21704 "" for (iiv = 1; iiv <= 24; ++iiv) { -#line 21638 "" +#line 21705 "" if (commvl_1.ivmx[iiv - 1] == *iv || commvl_1.nvmx[iiv - 1] == 2 && commvl_1.ivmx[iiv + 23] == *iv) { -#line 21638 "" +#line 21705 "" goto L8; -#line 21638 "" +#line 21705 "" } /* Found iv for both voices (iivivx1, iiv), done looking */ -#line 21643 "" +#line 21710 "" /* L7: */ -#line 21643 "" +#line 21710 "" } -#line 21644 "" - s_wsle(&io___1522); -#line 21644 "" +#line 21711 "" + s_wsle(&io___1524); +#line 21711 "" do_lio(&c__9, &c__1, "Screwup#2 in putarp", (ftnlen)19); -#line 21644 "" +#line 21711 "" e_wsle(); -#line 21645 "" +#line 21712 "" s_stop("", (ftnlen)0); -#line 21646 "" +#line 21713 "" L8: -#line 21647 "" +#line 21714 "" if (iivivx1 == iiv) { -#line 21648 "" +#line 21715 "" nstaffshift = 0; -#line 21649 "" +#line 21716 "" } else { -#line 21650 "" +#line 21717 "" r__1 = comarp_1.xinsnow * 2; -#line 21650 "" +#line 21717 "" nstaffshift = -i_nint(&r__1); -#line 21651 "" +#line 21718 "" } /* levbot = -nint(2*xinsnow)+3+levar1(iarp)-ncmar1(iarp) */ -#line 21653 "" +#line 21720 "" levbot = nstaffshift + 3 + comarp_1.levar1[iarp - 1] - comarp_1.ncmar1[iarp - 1]; -#line 21654 "" +#line 21721 "" invert = -levbot + 4 + *nolev - *ncm; /* print*,'xinsnow,levar1,ncmar1,levbot,nolev,ncm:' */ /* write(*,'(f5.1,5i5)')xinsnow,levar1(iarp),ncmar1(iarp), */ /* *levbot,nolev,ncm */ -#line 21658 "" +#line 21725 "" } /* isym will be (1,2) if invert is (even,odd). If even, raise .5\internote */ -#line 21662 "" +#line 21729 "" isym = invert % 2 + 1; -#line 21663 "" +#line 21730 "" ilvert = (invert + 1) / 2; -#line 21664 "" +#line 21731 "" if (levbot >= 0 && levbot <= 9) { /* Single digit */ -#line 21668 "" +#line 21735 "" if (! isarpshift) { /* Writing concatenation */ -#line 21669 "" +#line 21736 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 21669 "" +#line 21736 "" i__3[0] = 1, a__2[0] = ch__1; -#line 21669 "" +#line 21736 "" i__3[1] = 8, a__2[1] = symq + (isym - 1 << 3); -#line 21669 "" +#line 21736 "" i__1 = levbot + 48; -#line 21669 "" +#line 21736 "" chax_(ch__2, (ftnlen)1, &i__1); -#line 21669 "" +#line 21736 "" i__3[2] = 1, a__2[2] = ch__2; -#line 21669 "" +#line 21736 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79); -#line 21670 "" +#line 21737 "" } else { /* Writing concatenation */ -#line 21671 "" +#line 21738 "" i__4[0] = lnote, a__3[0] = notexq; -#line 21671 "" +#line 21738 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 21671 "" +#line 21738 "" i__4[1] = 1, a__3[1] = ch__1; -#line 21671 "" +#line 21738 "" i__4[2] = 8, a__3[2] = symq + (isym - 1 << 3); -#line 21671 "" +#line 21738 "" i__1 = levbot + 48; -#line 21671 "" +#line 21738 "" chax_(ch__2, (ftnlen)1, &i__1); -#line 21671 "" +#line 21738 "" i__4[3] = 1, a__3[3] = ch__2; -#line 21671 "" +#line 21738 "" s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79); -#line 21673 "" +#line 21740 "" } -#line 21674 "" +#line 21741 "" lnote += 10; -#line 21675 "" +#line 21742 "" } else { -#line 21676 "" +#line 21743 "" if (! isarpshift) { /* Writing concatenation */ -#line 21677 "" +#line 21744 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 21677 "" +#line 21744 "" i__3[0] = 1, a__2[0] = ch__1; -#line 21677 "" +#line 21744 "" i__3[1] = 8, a__2[1] = symq + (isym - 1 << 3); -#line 21677 "" +#line 21744 "" i__3[2] = 1, a__2[2] = "{"; -#line 21677 "" +#line 21744 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79); -#line 21678 "" +#line 21745 "" } else { /* Writing concatenation */ -#line 21679 "" +#line 21746 "" i__4[0] = lnote, a__3[0] = notexq; -#line 21679 "" +#line 21746 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 21679 "" +#line 21746 "" i__4[1] = 1, a__3[1] = ch__1; -#line 21679 "" +#line 21746 "" i__4[2] = 8, a__3[2] = symq + (isym - 1 << 3); -#line 21679 "" +#line 21746 "" i__4[3] = 1, a__3[3] = "{"; -#line 21679 "" +#line 21746 "" s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79); -#line 21680 "" +#line 21747 "" } -#line 21681 "" +#line 21748 "" lnote += 10; -#line 21682 "" +#line 21749 "" if (levbot >= -9) { /* Need two spaces for number */ -#line 21686 "" +#line 21753 "" i__1 = lnote; -#line 21686 "" +#line 21753 "" ici__1.icierr = 0; -#line 21686 "" +#line 21753 "" ici__1.icirnum = 1; -#line 21686 "" +#line 21753 "" ici__1.icirlen = lnote + 3 - i__1; -#line 21686 "" +#line 21753 "" ici__1.iciunit = notexq + i__1; -#line 21686 "" +#line 21753 "" ici__1.icifmt = "(i2,a1)"; -#line 21686 "" +#line 21753 "" s_wsfi(&ici__1); -#line 21686 "" +#line 21753 "" do_fio(&c__1, (char *)&levbot, (ftnlen)sizeof(integer)); -#line 21686 "" +#line 21753 "" do_fio(&c__1, "}", (ftnlen)1); -#line 21686 "" +#line 21753 "" e_wsfi(); -#line 21687 "" +#line 21754 "" lnote += 3; -#line 21688 "" +#line 21755 "" } else { -#line 21689 "" +#line 21756 "" i__1 = lnote; -#line 21689 "" +#line 21756 "" ici__1.icierr = 0; -#line 21689 "" +#line 21756 "" ici__1.icirnum = 1; -#line 21689 "" +#line 21756 "" ici__1.icirlen = lnote + 4 - i__1; -#line 21689 "" +#line 21756 "" ici__1.iciunit = notexq + i__1; -#line 21689 "" +#line 21756 "" ici__1.icifmt = "(i3,a1)"; -#line 21689 "" +#line 21756 "" s_wsfi(&ici__1); -#line 21689 "" +#line 21756 "" do_fio(&c__1, (char *)&levbot, (ftnlen)sizeof(integer)); -#line 21689 "" +#line 21756 "" do_fio(&c__1, "}", (ftnlen)1); -#line 21689 "" +#line 21756 "" e_wsfi(); -#line 21690 "" +#line 21757 "" lnote += 4; -#line 21691 "" +#line 21758 "" } -#line 21692 "" +#line 21759 "" } /* if (ilvert .le. 9) then */ /* call addstr(notexq(1:lnote)//chax(48+ilvert),lnote+1, */ @@ -52545,70 +52672,70 @@ L8: /* write(notexq(lnote+1:lnote+4),'(a1,i2,a1)')'{',ilvert,'}' */ /* call addstr(notexq(1:lnote+4),lnote+4,soutq,lsout) */ /* end if */ -#line 21701 "" +#line 21768 "" if (ilvert > 9) { -#line 21702 "" +#line 21769 "" i__1 = lnote; -#line 21702 "" +#line 21769 "" ici__1.icierr = 0; -#line 21702 "" +#line 21769 "" ici__1.icirnum = 1; -#line 21702 "" +#line 21769 "" ici__1.icirlen = lnote + 4 - i__1; -#line 21702 "" +#line 21769 "" ici__1.iciunit = notexq + i__1; -#line 21702 "" +#line 21769 "" ici__1.icifmt = "(a1,i2,a1)"; -#line 21702 "" +#line 21769 "" s_wsfi(&ici__1); -#line 21702 "" +#line 21769 "" do_fio(&c__1, "{", (ftnlen)1); -#line 21702 "" +#line 21769 "" do_fio(&c__1, (char *)&ilvert, (ftnlen)sizeof(integer)); -#line 21702 "" +#line 21769 "" do_fio(&c__1, "}", (ftnlen)1); -#line 21702 "" +#line 21769 "" e_wsfi(); -#line 21703 "" +#line 21770 "" lnote += 4; -#line 21704 "" +#line 21771 "" } else { /* Writing concatenation */ -#line 21705 "" +#line 21772 "" i__2[0] = lnote, a__1[0] = notexq; -#line 21705 "" +#line 21772 "" i__1 = ilvert + 48; -#line 21705 "" +#line 21772 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 21705 "" +#line 21772 "" i__2[1] = 1, a__1[1] = ch__1; -#line 21705 "" +#line 21772 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 21706 "" +#line 21773 "" ++lnote; -#line 21707 "" +#line 21774 "" } -#line 21708 "" +#line 21775 "" if (isarpshift) { /* Writing concatenation */ -#line 21709 "" +#line 21776 "" i__2[0] = lnote, a__1[0] = notexq; -#line 21709 "" +#line 21776 "" i__2[1] = 1, a__1[1] = "}"; -#line 21709 "" +#line 21776 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 21710 "" +#line 21777 "" ++lnote; -#line 21711 "" +#line 21778 "" } -#line 21712 "" +#line 21779 "" addstr_(notexq, &lnote, soutq, lsout, lnote, (ftnlen)80); /* cancel out the stored time, to permit two arps at same time! */ -#line 21716 "" +#line 21783 "" comarp_1.tar[iarp - 1] = -1.f; -#line 21717 "" +#line 21784 "" return 0; } /* putarp_ */ @@ -52631,42 +52758,42 @@ L8: static char tag[129], fmtq[9]; /* Fortran I/O blocks */ - static icilist io___1528 = { 0, fmtq, 0, "(a5,i1,a3)", 9, 1 }; + static icilist io___1530 = { 0, fmtq, 0, "(a5,i1,a3)", 9, 1 }; -#line 21722 "" +#line 21789 "" if (*elask >= 0.f) { -#line 21723 "" +#line 21790 "" if (*elask < .995f) { -#line 21724 "" +#line 21791 "" lp = 3; -#line 21725 "" +#line 21792 "" } else if (*elask < 9.995f) { -#line 21726 "" +#line 21793 "" lp = 4; -#line 21727 "" +#line 21794 "" } else { -#line 21728 "" +#line 21795 "" lp = 5; -#line 21729 "" +#line 21796 "" } -#line 21730 "" - s_wsfi(&io___1528); -#line 21730 "" +#line 21797 "" + s_wsfi(&io___1530); +#line 21797 "" do_fio(&c__1, "(a2,f", (ftnlen)5); -#line 21730 "" +#line 21797 "" do_fio(&c__1, (char *)&lp, (ftnlen)sizeof(integer)); -#line 21730 "" +#line 21797 "" do_fio(&c__1, ".2)", (ftnlen)3); -#line 21730 "" +#line 21797 "" e_wsfi(); -#line 21731 "" +#line 21798 "" } else { -#line 21732 "" +#line 21799 "" lp = 5; -#line 21733 "" +#line 21800 "" s_copy(fmtq, "(a2,f5.1)", (ftnlen)9, (ftnlen)9); -#line 21734 "" +#line 21801 "" } /* Overwrite as follows: ...xyz*ask *lmnop... -> */ @@ -52674,40 +52801,40 @@ L8: /* ...xyz*ast{n.nn}*lmnop... */ /* ...xyz*ast{nn.nn}*lmnop... */ /* or for negative, ...xyz*ast{-nn.n}*lmnop... */ -#line 21741 "" +#line 21808 "" i__1 = *indxask + 8; -#line 21741 "" +#line 21808 "" s_copy(tag, outq + i__1, (ftnlen)129, 129 - i__1); -#line 21742 "" +#line 21809 "" i__1 = *indxask + 2; -#line 21742 "" +#line 21809 "" ici__1.icierr = 0; -#line 21742 "" +#line 21809 "" ici__1.icirnum = 1; -#line 21742 "" +#line 21809 "" ici__1.icirlen = 129 - i__1; -#line 21742 "" +#line 21809 "" ici__1.iciunit = outq + i__1; -#line 21742 "" +#line 21809 "" ici__1.icifmt = fmtq; -#line 21742 "" +#line 21809 "" s_wsfi(&ici__1); -#line 21742 "" +#line 21809 "" do_fio(&c__1, "t{", (ftnlen)2); -#line 21742 "" +#line 21809 "" do_fio(&c__1, (char *)&(*elask), (ftnlen)sizeof(real)); -#line 21742 "" +#line 21809 "" e_wsfi(); /* Writing concatenation */ -#line 21743 "" +#line 21810 "" i__2[0] = *indxask + 4 + lp, a__1[0] = outq; -#line 21743 "" +#line 21810 "" i__2[1] = 1, a__1[1] = "}"; -#line 21743 "" +#line 21810 "" i__2[2] = 129, a__1[2] = tag; -#line 21743 "" +#line 21810 "" s_cat(outq, a__1, i__2, &c__3, (ftnlen)129); -#line 21744 "" +#line 21811 "" return 0; } /* putast_ */ @@ -52735,247 +52862,247 @@ L8: extern /* Subroutine */ int printl_(char *, ftnlen); /* ivxip = ivx+16*ip */ -#line 21751 "" +#line 21818 "" i__1 = comcb_1.nbc; -#line 21751 "" +#line 21818 "" for (ibc = 1; ibc <= i__1; ++ibc) { /* if (ivxip .eq. iand(1023,ibcdata(ibc))) go to 2 */ /* if (ivx.eq.iand(15,ibcdata(ibc))+16*igetbits(ibcdata(ibc),1,28) */ /* * .and. ip.eq.iand(1008,ibcdata(ibc))) go to 2 */ -#line 21755 "" +#line 21822 "" ivxbc = (15 & comcb_1.ibcdata[ibc - 1]) + (igetbits_(&comcb_1.ibcdata[ ibc - 1], &c__1, &c__28) << 4); -#line 21756 "" +#line 21823 "" ipbc = igetbits_(&comcb_1.ibcdata[ibc - 1], &c__8, &c__4); -#line 21757 "" +#line 21824 "" if (*ivx == ivxbc && *ip == ipbc) { -#line 21757 "" +#line 21824 "" goto L2; -#line 21757 "" +#line 21824 "" } -#line 21758 "" +#line 21825 "" /* L1: */ -#line 21758 "" +#line 21825 "" } -#line 21759 "" +#line 21826 "" printl_("Error in putbc, Call Dr. Don", (ftnlen)28); -#line 21760 "" +#line 21827 "" s_stop("", (ftnlen)0); -#line 21761 "" +#line 21828 "" L2: -#line 21762 "" +#line 21829 "" if (bit_test(comcb_1.ibcdata[ibc - 1],27)) { -#line 21763 "" +#line 21830 "" *lnote = 8; -#line 21764 "" +#line 21831 "" s_copy(notexq, "\\pbreath", (ftnlen)79, (ftnlen)8); -#line 21765 "" +#line 21832 "" } else { -#line 21766 "" +#line 21833 "" *lnote = 9; -#line 21767 "" +#line 21834 "" s_copy(notexq, "\\pcaesura", (ftnlen)79, (ftnlen)9); -#line 21768 "" +#line 21835 "" } -#line 21769 "" +#line 21836 "" ivshft = igetbits_(&comcb_1.ibcdata[ibc - 1], &c__6, &c__13); /* ?? ivshft = igetbits(ibcdata(ibc),6,13)-32 */ -#line 21771 "" +#line 21838 "" if (ivshft > 0) { -#line 21771 "" +#line 21838 "" ivshft += -32; -#line 21771 "" +#line 21838 "" } -#line 21772 "" +#line 21839 "" if (ivshft < 0 || ivshft > 9) { /* Writing concatenation */ -#line 21773 "" +#line 21840 "" i__2[0] = *lnote, a__1[0] = notexq; -#line 21773 "" +#line 21840 "" i__2[1] = 1, a__1[1] = "{"; -#line 21773 "" +#line 21840 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 21774 "" +#line 21841 "" ++(*lnote); -#line 21775 "" +#line 21842 "" if (ivshft < -9) { -#line 21776 "" +#line 21843 "" i__1 = *lnote; -#line 21776 "" +#line 21843 "" ici__1.icierr = 0; -#line 21776 "" +#line 21843 "" ici__1.icirnum = 1; -#line 21776 "" +#line 21843 "" ici__1.icirlen = *lnote + 3 - i__1; -#line 21776 "" +#line 21843 "" ici__1.iciunit = notexq + i__1; -#line 21776 "" +#line 21843 "" ici__1.icifmt = "(i3)"; -#line 21776 "" +#line 21843 "" s_wsfi(&ici__1); -#line 21776 "" +#line 21843 "" do_fio(&c__1, (char *)&ivshft, (ftnlen)sizeof(integer)); -#line 21776 "" +#line 21843 "" e_wsfi(); -#line 21777 "" +#line 21844 "" *lnote += 3; -#line 21778 "" +#line 21845 "" } else { -#line 21779 "" +#line 21846 "" i__1 = *lnote; -#line 21779 "" +#line 21846 "" ici__1.icierr = 0; -#line 21779 "" +#line 21846 "" ici__1.icirnum = 1; -#line 21779 "" +#line 21846 "" ici__1.icirlen = *lnote + 2 - i__1; -#line 21779 "" +#line 21846 "" ici__1.iciunit = notexq + i__1; -#line 21779 "" +#line 21846 "" ici__1.icifmt = "(i2)"; -#line 21779 "" +#line 21846 "" s_wsfi(&ici__1); -#line 21779 "" +#line 21846 "" do_fio(&c__1, (char *)&ivshft, (ftnlen)sizeof(integer)); -#line 21779 "" +#line 21846 "" e_wsfi(); -#line 21780 "" +#line 21847 "" *lnote += 2; -#line 21781 "" +#line 21848 "" } /* Writing concatenation */ -#line 21782 "" +#line 21849 "" i__2[0] = *lnote, a__1[0] = notexq; -#line 21782 "" +#line 21849 "" i__2[1] = 1, a__1[1] = "}"; -#line 21782 "" +#line 21849 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 21783 "" +#line 21850 "" ++(*lnote); -#line 21784 "" +#line 21851 "" } else { /* Writing concatenation */ -#line 21785 "" +#line 21852 "" i__2[0] = *lnote, a__1[0] = notexq; -#line 21785 "" +#line 21852 "" *(unsigned char *)&ch__1[0] = ivshft + 48; -#line 21785 "" +#line 21852 "" i__2[1] = 1, a__1[1] = ch__1; -#line 21785 "" +#line 21852 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 21786 "" +#line 21853 "" ++(*lnote); -#line 21787 "" +#line 21854 "" } -#line 21788 "" +#line 21855 "" ihshft = igetbits_(&comcb_1.ibcdata[ibc - 1], &c__8, &c__19); -#line 21789 "" +#line 21856 "" if (ihshft == 0) { /* Writing concatenation */ -#line 21790 "" +#line 21857 "" i__2[0] = *lnote, a__1[0] = notexq; -#line 21790 "" +#line 21857 "" i__2[1] = 1, a__1[1] = "0"; -#line 21790 "" +#line 21857 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 21791 "" +#line 21858 "" ++(*lnote); -#line 21792 "" +#line 21859 "" } else { -#line 21793 "" +#line 21860 "" hshft = (ihshft - 128) * .1f; /* -12.8<hshft<12.8 */ /* Writing concatenation */ -#line 21797 "" +#line 21864 "" i__2[0] = *lnote, a__1[0] = notexq; -#line 21797 "" +#line 21864 "" i__2[1] = 1, a__1[1] = "{"; -#line 21797 "" +#line 21864 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 21798 "" +#line 21865 "" ++(*lnote); -#line 21799 "" +#line 21866 "" if (hshft < -9.95f) { -#line 21800 "" +#line 21867 "" i__1 = *lnote; -#line 21800 "" +#line 21867 "" ici__1.icierr = 0; -#line 21800 "" +#line 21867 "" ici__1.icirnum = 1; -#line 21800 "" +#line 21867 "" ici__1.icirlen = *lnote + 5 - i__1; -#line 21800 "" +#line 21867 "" ici__1.iciunit = notexq + i__1; -#line 21800 "" +#line 21867 "" ici__1.icifmt = "(f5.1)"; -#line 21800 "" +#line 21867 "" s_wsfi(&ici__1); -#line 21800 "" +#line 21867 "" do_fio(&c__1, (char *)&hshft, (ftnlen)sizeof(real)); -#line 21800 "" +#line 21867 "" e_wsfi(); -#line 21801 "" +#line 21868 "" *lnote += 5; -#line 21802 "" +#line 21869 "" } else if (hshft < -.05f || hshft > 9.95f) { -#line 21803 "" +#line 21870 "" i__1 = *lnote; -#line 21803 "" +#line 21870 "" ici__1.icierr = 0; -#line 21803 "" +#line 21870 "" ici__1.icirnum = 1; -#line 21803 "" +#line 21870 "" ici__1.icirlen = *lnote + 4 - i__1; -#line 21803 "" +#line 21870 "" ici__1.iciunit = notexq + i__1; -#line 21803 "" +#line 21870 "" ici__1.icifmt = "(f4.1)"; -#line 21803 "" +#line 21870 "" s_wsfi(&ici__1); -#line 21803 "" +#line 21870 "" do_fio(&c__1, (char *)&hshft, (ftnlen)sizeof(real)); -#line 21803 "" +#line 21870 "" e_wsfi(); -#line 21804 "" +#line 21871 "" *lnote += 4; -#line 21805 "" +#line 21872 "" } else { -#line 21806 "" +#line 21873 "" i__1 = *lnote; -#line 21806 "" +#line 21873 "" ici__1.icierr = 0; -#line 21806 "" +#line 21873 "" ici__1.icirnum = 1; -#line 21806 "" +#line 21873 "" ici__1.icirlen = *lnote + 3 - i__1; -#line 21806 "" +#line 21873 "" ici__1.iciunit = notexq + i__1; -#line 21806 "" +#line 21873 "" ici__1.icifmt = "(f3.1)"; -#line 21806 "" +#line 21873 "" s_wsfi(&ici__1); -#line 21806 "" +#line 21873 "" do_fio(&c__1, (char *)&hshft, (ftnlen)sizeof(real)); -#line 21806 "" +#line 21873 "" e_wsfi(); -#line 21807 "" +#line 21874 "" *lnote += 3; -#line 21808 "" +#line 21875 "" } /* Writing concatenation */ -#line 21809 "" +#line 21876 "" i__2[0] = *lnote, a__1[0] = notexq; -#line 21809 "" +#line 21876 "" i__2[1] = 1, a__1[1] = "}"; -#line 21809 "" +#line 21876 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 21810 "" +#line 21877 "" ++(*lnote); -#line 21811 "" +#line 21878 "" } -#line 21812 "" +#line 21879 "" return 0; } /* putcb_ */ @@ -53015,188 +53142,188 @@ L2: ; /* Fortran I/O blocks */ - static icilist io___1541 = { 0, notexq+5, 0, "(f6.2)", 6, 1 }; - static icilist io___1542 = { 0, notexq+5, 0, "(f5.2)", 5, 1 }; - static icilist io___1543 = { 0, notexq+5, 0, "(f4.2)", 4, 1 }; - static icilist io___1544 = { 0, notexq+5, 0, "(f3.2)", 3, 1 }; - static icilist io___1557 = { 0, notexq+5, 0, "(f6.2)", 6, 1 }; - static icilist io___1558 = { 0, notexq+5, 0, "(f5.2)", 5, 1 }; - static icilist io___1559 = { 0, notexq+5, 0, "(f4.2)", 4, 1 }; - static icilist io___1560 = { 0, notexq+5, 0, "(f3.2)", 3, 1 }; + static icilist io___1543 = { 0, notexq+5, 0, "(f6.2)", 6, 1 }; + static icilist io___1544 = { 0, notexq+5, 0, "(f5.2)", 5, 1 }; + static icilist io___1545 = { 0, notexq+5, 0, "(f4.2)", 4, 1 }; + static icilist io___1546 = { 0, notexq+5, 0, "(f3.2)", 3, 1 }; + static icilist io___1559 = { 0, notexq+5, 0, "(f6.2)", 6, 1 }; + static icilist io___1560 = { 0, notexq+5, 0, "(f5.2)", 5, 1 }; + static icilist io___1561 = { 0, notexq+5, 0, "(f4.2)", 4, 1 }; + static icilist io___1562 = { 0, notexq+5, 0, "(f3.2)", 3, 1 }; -#line 21824 "" +#line 21891 "" if (*ivx == 1) { -#line 21825 "" +#line 21892 "" s_copy(figutq, "Figu", (ftnlen)4, (ftnlen)4); -#line 21826 "" +#line 21893 "" s_copy(conttq, "Cont", (ftnlen)4, (ftnlen)4); -#line 21827 "" +#line 21894 "" } else { -#line 21828 "" +#line 21895 "" s_copy(figutq, "Figt", (ftnlen)4, (ftnlen)4); -#line 21829 "" +#line 21896 "" s_copy(conttq, "Cott", (ftnlen)4, (ftnlen)4); -#line 21830 "" +#line 21897 "" } -#line 21831 "" +#line 21898 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 21831 "" +#line 21898 "" *(unsigned char *)sq = *(unsigned char *)&ch__1[0]; -#line 21832 "" +#line 21899 "" if (comfig_2.ivvfig[*ivx + (*ifig << 1) - 3] != 0) { /* Alter figdrop */ /* Writing concatenation */ -#line 21836 "" +#line 21903 "" i__1[0] = 1, a__1[0] = sq; -#line 21836 "" +#line 21903 "" i__1[1] = 6, a__1[1] = "global"; -#line 21836 "" +#line 21903 "" i__1[2] = 1, a__1[2] = sq; -#line 21836 "" +#line 21903 "" i__1[3] = 7, a__1[3] = "advance"; -#line 21836 "" +#line 21903 "" i__1[4] = 1, a__1[4] = sq; -#line 21836 "" +#line 21903 "" i__1[5] = 7, a__1[5] = "figdrop"; -#line 21836 "" +#line 21903 "" s_cat(notexq, a__1, i__1, &c__6, (ftnlen)80); -#line 21837 "" +#line 21904 "" lnote = 23; -#line 21838 "" +#line 21905 "" if (comfig_2.ivvfig[*ivx + (*ifig << 1) - 3] < 0) { /* Writing concatenation */ -#line 21839 "" +#line 21906 "" i__2[0] = lnote, a__2[0] = notexq; -#line 21839 "" +#line 21906 "" i__2[1] = 1, a__2[1] = "-"; -#line 21839 "" +#line 21906 "" s_cat(notexq, a__2, i__2, &c__2, (ftnlen)80); -#line 21840 "" +#line 21907 "" ++lnote; -#line 21841 "" +#line 21908 "" } /* Writing concatenation */ -#line 21842 "" +#line 21909 "" i__2[0] = lnote, a__2[0] = notexq; -#line 21842 "" +#line 21909 "" *(unsigned char *)&ch__1[0] = (i__3 = comfig_2.ivvfig[*ivx + (*ifig << 1) - 3], abs(i__3)) + 48; -#line 21842 "" +#line 21909 "" i__2[1] = 1, a__2[1] = ch__1; -#line 21842 "" +#line 21909 "" s_cat(notexq, a__2, i__2, &c__2, (ftnlen)80); -#line 21843 "" +#line 21910 "" ++lnote; -#line 21844 "" +#line 21911 "" addstr_(notexq, &lnote, soutq, lsout, (ftnlen)80, (ftnlen)80); -#line 21845 "" +#line 21912 "" } -#line 21846 "" +#line 21913 "" if (dabs(*offnsk) > 1e-4f) { /* Write offset for floating figure, to two decimal places */ /* Writing concatenation */ -#line 21850 "" +#line 21917 "" i__2[0] = 1, a__2[0] = sq; -#line 21850 "" +#line 21917 "" i__2[1] = 4, a__2[1] = "off{"; -#line 21850 "" +#line 21917 "" s_cat(notexq, a__2, i__2, &c__2, (ftnlen)80); -#line 21851 "" +#line 21918 "" if (-(*offnsk) < -9.995f) { -#line 21852 "" - s_wsfi(&io___1541); -#line 21852 "" +#line 21919 "" + s_wsfi(&io___1543); +#line 21919 "" r__1 = -(*offnsk); -#line 21852 "" +#line 21919 "" do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real)); -#line 21852 "" +#line 21919 "" e_wsfi(); -#line 21853 "" +#line 21920 "" lnote = 11; -#line 21854 "" +#line 21921 "" } else if (-(*offnsk) < -.995f || -(*offnsk) > 9.995f) { -#line 21855 "" - s_wsfi(&io___1542); -#line 21855 "" +#line 21922 "" + s_wsfi(&io___1544); +#line 21922 "" r__1 = -(*offnsk); -#line 21855 "" +#line 21922 "" do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real)); -#line 21855 "" +#line 21922 "" e_wsfi(); -#line 21856 "" +#line 21923 "" lnote = 10; -#line 21857 "" +#line 21924 "" } else if (-(*offnsk) < -1e-4f || -(*offnsk) > .995f) { -#line 21858 "" - s_wsfi(&io___1543); -#line 21858 "" +#line 21925 "" + s_wsfi(&io___1545); +#line 21925 "" r__1 = -(*offnsk); -#line 21858 "" +#line 21925 "" do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real)); -#line 21858 "" +#line 21925 "" e_wsfi(); -#line 21859 "" +#line 21926 "" lnote = 9; -#line 21860 "" +#line 21927 "" } else { -#line 21861 "" - s_wsfi(&io___1544); -#line 21861 "" +#line 21928 "" + s_wsfi(&io___1546); +#line 21928 "" r__1 = -(*offnsk); -#line 21861 "" +#line 21928 "" do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real)); -#line 21861 "" +#line 21928 "" e_wsfi(); -#line 21862 "" +#line 21929 "" lnote = 8; -#line 21863 "" +#line 21930 "" } /* Writing concatenation */ -#line 21864 "" +#line 21931 "" i__4[0] = lnote, a__3[0] = notexq; -#line 21864 "" +#line 21931 "" i__4[1] = 1, a__3[1] = sq; -#line 21864 "" +#line 21931 "" i__4[2] = 9, a__3[2] = "noteskip}"; -#line 21864 "" +#line 21931 "" s_cat(notexq, a__3, i__4, &c__3, (ftnlen)80); -#line 21865 "" +#line 21932 "" i__3 = lnote + 10; -#line 21865 "" +#line 21932 "" addstr_(notexq, &i__3, soutq, lsout, (ftnlen)80, (ftnlen)80); -#line 21866 "" +#line 21933 "" } -#line 21867 "" +#line 21934 "" s_copy(figq, comfig_2.figqq + (*ivx + (*ifig << 1) - 3) * 10, (ftnlen)10, (ftnlen)10); -#line 21868 "" +#line 21935 "" ic = 1; /* nof = 0 */ /* nofa = -1 */ -#line 21871 "" +#line 21938 "" nof = -comfig_2.ivupfig[*ivx + (*ifig << 1) - 3]; -#line 21872 "" +#line 21939 "" nofa = -comfig_2.ivupfig[*ivx + (*ifig << 1) - 3] - 1; /* Beginning of manual loop */ -#line 21876 "" +#line 21943 "" L1: -#line 21876 "" +#line 21943 "" *(unsigned char *)ch1q = *(unsigned char *)&figq[ic - 1]; /* Exit when first blank is encountered */ -#line 21880 "" +#line 21947 "" if (*(unsigned char *)ch1q == ' ') { -#line 21880 "" +#line 21947 "" goto L2; -#line 21880 "" +#line 21947 "" } /* Starting a level. Set up vertical offset. */ @@ -53217,387 +53344,387 @@ L1: /* lnofa = 2 */ /* nofaq = '1'//chax(nofa+38) */ /* end if */ -#line 21900 "" +#line 21967 "" istring_(&nof, nofq, &lnof, (ftnlen)5); -#line 21901 "" +#line 21968 "" istring_(&nofa, nofaq, &lnofa, (ftnlen)5); -#line 21902 "" +#line 21969 "" if (*(unsigned char *)ch1q == '0') { /* Continuation figure. Next number is length (in noteskips). The number will */ /* end at the first blank or char that is not digit or decimal point. If */ /* colon, it is a separator and must be skipped */ -#line 21908 "" +#line 21975 "" icnum = ic + 1; -#line 21909 "" +#line 21976 "" L3: -#line 21910 "" +#line 21977 "" ++ic; -#line 21911 "" +#line 21978 "" if (i_indx("0123456789.", figq + (ic - 1), (ftnlen)11, (ftnlen)1) > 0) { -#line 21911 "" +#line 21978 "" goto L3; -#line 21911 "" +#line 21978 "" } -#line 21912 "" +#line 21979 "" lnum = ic - icnum; /* Writing concatenation */ -#line 21913 "" +#line 21980 "" i__1[0] = 1, a__1[0] = sq; -#line 21913 "" +#line 21980 "" i__1[1] = 4, a__1[1] = conttq; -#line 21913 "" +#line 21980 "" i__1[2] = lnof, a__1[2] = nofq; -#line 21913 "" +#line 21980 "" i__1[3] = 1, a__1[3] = "{"; -#line 21913 "" +#line 21980 "" i__1[4] = ic - 1 - (icnum - 1), a__1[4] = figq + (icnum - 1); -#line 21913 "" +#line 21980 "" i__1[5] = 1, a__1[5] = "}"; -#line 21913 "" +#line 21980 "" s_cat(ch__2, a__1, i__1, &c__6, (ftnlen)22); -#line 21913 "" +#line 21980 "" i__3 = ic + 7 - icnum + lnof; -#line 21913 "" +#line 21980 "" addstr_(ch__2, &i__3, soutq, lsout, lnof + 6 + (ic - 1 - (icnum - 1)) + 1, (ftnlen)80); -#line 21915 "" +#line 21982 "" if (*(unsigned char *)&figq[ic - 1] != ':') { -#line 21915 "" +#line 21982 "" --ic; -#line 21915 "" +#line 21982 "" } -#line 21916 "" +#line 21983 "" } else if (*(unsigned char *)ch1q == '#' || *(unsigned char *)ch1q == '-' || *(unsigned char *)ch1q == 'n') { -#line 21917 "" +#line 21984 "" ++ic; -#line 21918 "" +#line 21985 "" *(unsigned char *)ch2q = *(unsigned char *)&figq[ic - 1]; -#line 21919 "" +#line 21986 "" if (*(unsigned char *)ch2q == ' ') { /* Figure is a stand-alone accidental, so must be centered */ -#line 21923 "" +#line 21990 "" if (*(unsigned char *)ch1q == '#') { /* Writing concatenation */ -#line 21924 "" +#line 21991 "" i__1[0] = 1, a__1[0] = sq; -#line 21924 "" +#line 21991 "" i__1[1] = 4, a__1[1] = figutq; -#line 21924 "" +#line 21991 "" i__1[2] = lnofa, a__1[2] = nofaq; -#line 21924 "" +#line 21991 "" i__1[3] = 1, a__1[3] = "{"; -#line 21924 "" +#line 21991 "" i__1[4] = 1, a__1[4] = sq; -#line 21924 "" +#line 21991 "" i__1[5] = 9, a__1[5] = "sharpfig}"; -#line 21924 "" +#line 21991 "" s_cat(ch__3, a__1, i__1, &c__6, (ftnlen)21); -#line 21924 "" +#line 21991 "" i__3 = lnofa + 16; -#line 21924 "" +#line 21991 "" addstr_(ch__3, &i__3, soutq, lsout, lnofa + 16, (ftnlen)80); -#line 21926 "" +#line 21993 "" } else if (*(unsigned char *)ch1q == '-') { /* Writing concatenation */ -#line 21927 "" +#line 21994 "" i__1[0] = 1, a__1[0] = sq; -#line 21927 "" +#line 21994 "" i__1[1] = 4, a__1[1] = figutq; -#line 21927 "" +#line 21994 "" i__1[2] = lnofa, a__1[2] = nofaq; -#line 21927 "" +#line 21994 "" i__1[3] = 1, a__1[3] = "{"; -#line 21927 "" +#line 21994 "" i__1[4] = 1, a__1[4] = sq; -#line 21927 "" +#line 21994 "" i__1[5] = 8, a__1[5] = "flatfig}"; -#line 21927 "" +#line 21994 "" s_cat(ch__4, a__1, i__1, &c__6, (ftnlen)20); -#line 21927 "" +#line 21994 "" i__3 = lnofa + 15; -#line 21927 "" +#line 21994 "" addstr_(ch__4, &i__3, soutq, lsout, lnofa + 15, (ftnlen)80); -#line 21929 "" +#line 21996 "" } else if (*(unsigned char *)ch1q == 'n') { /* Writing concatenation */ -#line 21930 "" +#line 21997 "" i__1[0] = 1, a__1[0] = sq; -#line 21930 "" +#line 21997 "" i__1[1] = 4, a__1[1] = figutq; -#line 21930 "" +#line 21997 "" i__1[2] = lnofa, a__1[2] = nofaq; -#line 21930 "" +#line 21997 "" i__1[3] = 1, a__1[3] = "{"; -#line 21930 "" +#line 21997 "" i__1[4] = 1, a__1[4] = sq; -#line 21930 "" +#line 21997 "" i__1[5] = 7, a__1[5] = "natfig}"; -#line 21930 "" +#line 21997 "" s_cat(ch__5, a__1, i__1, &c__6, (ftnlen)19); -#line 21930 "" +#line 21997 "" i__3 = lnofa + 14; -#line 21930 "" +#line 21997 "" addstr_(ch__5, &i__3, soutq, lsout, lnofa + 14, (ftnlen)80); -#line 21932 "" +#line 21999 "" } -#line 21933 "" +#line 22000 "" goto L2; -#line 21934 "" +#line 22001 "" } else { /* Figure is an accidental followed by a number */ /* First put the accidental (offset to the left) */ -#line 21939 "" +#line 22006 "" if (*(unsigned char *)ch1q == '#') { /* Writing concatenation */ -#line 21940 "" +#line 22007 "" i__1[0] = 1, a__1[0] = sq; -#line 21940 "" +#line 22007 "" i__1[1] = 4, a__1[1] = figutq; -#line 21940 "" +#line 22007 "" i__1[2] = lnofa, a__1[2] = nofaq; -#line 21940 "" +#line 22007 "" i__1[3] = 1, a__1[3] = "{"; -#line 21940 "" +#line 22007 "" i__1[4] = 1, a__1[4] = sq; -#line 21940 "" +#line 22007 "" i__1[5] = 6, a__1[5] = "fsmsh}"; -#line 21940 "" +#line 22007 "" s_cat(ch__6, a__1, i__1, &c__6, (ftnlen)18); -#line 21940 "" +#line 22007 "" i__3 = lnofa + 13; -#line 21940 "" +#line 22007 "" addstr_(ch__6, &i__3, soutq, lsout, lnofa + 13, (ftnlen)80); -#line 21943 "" +#line 22010 "" } else if (*(unsigned char *)ch1q == '-') { /* Writing concatenation */ -#line 21944 "" +#line 22011 "" i__1[0] = 1, a__1[0] = sq; -#line 21944 "" +#line 22011 "" i__1[1] = 4, a__1[1] = figutq; -#line 21944 "" +#line 22011 "" i__1[2] = lnofa, a__1[2] = nofaq; -#line 21944 "" +#line 22011 "" i__1[3] = 1, a__1[3] = "{"; -#line 21944 "" +#line 22011 "" i__1[4] = 1, a__1[4] = sq; -#line 21944 "" +#line 22011 "" i__1[5] = 6, a__1[5] = "fsmfl}"; -#line 21944 "" +#line 22011 "" s_cat(ch__6, a__1, i__1, &c__6, (ftnlen)18); -#line 21944 "" +#line 22011 "" i__3 = lnofa + 13; -#line 21944 "" +#line 22011 "" addstr_(ch__6, &i__3, soutq, lsout, lnofa + 13, (ftnlen)80); -#line 21947 "" +#line 22014 "" } else if (*(unsigned char *)ch1q == 'n') { /* Writing concatenation */ -#line 21948 "" +#line 22015 "" i__1[0] = 1, a__1[0] = sq; -#line 21948 "" +#line 22015 "" i__1[1] = 4, a__1[1] = figutq; -#line 21948 "" +#line 22015 "" i__1[2] = lnofa, a__1[2] = nofaq; -#line 21948 "" +#line 22015 "" i__1[3] = 1, a__1[3] = "{"; -#line 21948 "" +#line 22015 "" i__1[4] = 1, a__1[4] = sq; -#line 21948 "" +#line 22015 "" i__1[5] = 6, a__1[5] = "fsmna}"; -#line 21948 "" +#line 22015 "" s_cat(ch__6, a__1, i__1, &c__6, (ftnlen)18); -#line 21948 "" +#line 22015 "" i__3 = lnofa + 13; -#line 21948 "" +#line 22015 "" addstr_(ch__6, &i__3, soutq, lsout, lnofa + 13, (ftnlen)80); -#line 21951 "" +#line 22018 "" } /* Now put the number */ /* Writing concatenation */ -#line 21955 "" +#line 22022 "" i__1[0] = 1, a__1[0] = sq; -#line 21955 "" +#line 22022 "" i__1[1] = 4, a__1[1] = figutq; -#line 21955 "" +#line 22022 "" i__1[2] = lnof, a__1[2] = nofq; -#line 21955 "" +#line 22022 "" i__1[3] = 1, a__1[3] = "{"; -#line 21955 "" +#line 22022 "" i__1[4] = 1, a__1[4] = ch2q; -#line 21955 "" +#line 22022 "" i__1[5] = 1, a__1[5] = "}"; -#line 21955 "" +#line 22022 "" s_cat(ch__7, a__1, i__1, &c__6, (ftnlen)13); -#line 21955 "" +#line 22022 "" i__3 = lnof + 8; -#line 21955 "" +#line 22022 "" addstr_(ch__7, &i__3, soutq, lsout, lnof + 8, (ftnlen)80); -#line 21957 "" +#line 22024 "" } -#line 21958 "" +#line 22025 "" } else if (*(unsigned char *)ch1q == '_') { /* Placeholder only (for lowering a figure). Don't do anything! */ -#line 21963 "" +#line 22030 "" } else { /* Figure is a single number, maybe with s after */ /* Writing concatenation */ -#line 21967 "" +#line 22034 "" i__5[0] = 1, a__4[0] = sq; -#line 21967 "" +#line 22034 "" i__5[1] = 4, a__4[1] = figutq; -#line 21967 "" +#line 22034 "" i__5[2] = lnof, a__4[2] = nofq; -#line 21967 "" +#line 22034 "" i__5[3] = 1, a__4[3] = "{"; -#line 21967 "" +#line 22034 "" s_cat(ch__8, a__4, i__5, &c__4, (ftnlen)11); -#line 21967 "" +#line 22034 "" i__3 = lnof + 6; -#line 21967 "" +#line 22034 "" addstr_(ch__8, &i__3, soutq, lsout, lnof + 6, (ftnlen)80); -#line 21969 "" +#line 22036 "" i__3 = ic; -#line 21969 "" +#line 22036 "" s_copy(ch2q, figq + i__3, (ftnlen)1, ic + 1 - i__3); -#line 21970 "" +#line 22037 "" if (*(unsigned char *)ch2q == 's') { /* Use a special character. Insert font call */ -#line 21974 "" +#line 22041 "" ++ic; /* Writing concatenation */ -#line 21975 "" +#line 22042 "" i__2[0] = 1, a__2[0] = sq; -#line 21975 "" +#line 22042 "" i__2[1] = 7, a__2[1] = "ligfont"; -#line 21975 "" +#line 22042 "" s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8); -#line 21975 "" +#line 22042 "" addstr_(ch__9, &c__8, soutq, lsout, (ftnlen)8, (ftnlen)80); -#line 21976 "" +#line 22043 "" } /* Writing concatenation */ -#line 21977 "" +#line 22044 "" i__2[0] = 1, a__2[0] = ch1q; -#line 21977 "" +#line 22044 "" i__2[1] = 1, a__2[1] = "}"; -#line 21977 "" +#line 22044 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)2); -#line 21977 "" +#line 22044 "" addstr_(ch__10, &c__2, soutq, lsout, (ftnlen)2, (ftnlen)80); /* call addstr(sq//Figutq//nofq(1:lnof)//'{'//ch1q//'}', */ /* * 8+lnof,soutq,lsout) */ -#line 21980 "" +#line 22047 "" } -#line 21981 "" +#line 22048 "" if (ic >= 10) { -#line 21981 "" +#line 22048 "" goto L2; -#line 21981 "" +#line 22048 "" } -#line 21982 "" +#line 22049 "" ++ic; -#line 21983 "" +#line 22050 "" nof += 4; -#line 21984 "" +#line 22051 "" nofa += 4; -#line 21985 "" +#line 22052 "" goto L1; -#line 21986 "" +#line 22053 "" L2: -#line 21987 "" +#line 22054 "" if (dabs(*offnsk) > 1e-4f) { /* Writing concatenation */ -#line 21988 "" +#line 22055 "" i__2[0] = 1, a__2[0] = sq; -#line 21988 "" +#line 22055 "" i__2[1] = 4, a__2[1] = "off{"; -#line 21988 "" +#line 22055 "" s_cat(notexq, a__2, i__2, &c__2, (ftnlen)80); -#line 21989 "" +#line 22056 "" if (*offnsk < -9.995f) { -#line 21990 "" - s_wsfi(&io___1557); -#line 21990 "" +#line 22057 "" + s_wsfi(&io___1559); +#line 22057 "" do_fio(&c__1, (char *)&(*offnsk), (ftnlen)sizeof(real)); -#line 21990 "" +#line 22057 "" e_wsfi(); -#line 21991 "" +#line 22058 "" lnote = 11; -#line 21992 "" +#line 22059 "" } else if (*offnsk < -.995f || *offnsk > 9.995f) { -#line 21993 "" - s_wsfi(&io___1558); -#line 21993 "" +#line 22060 "" + s_wsfi(&io___1560); +#line 22060 "" do_fio(&c__1, (char *)&(*offnsk), (ftnlen)sizeof(real)); -#line 21993 "" +#line 22060 "" e_wsfi(); -#line 21994 "" +#line 22061 "" lnote = 10; -#line 21995 "" +#line 22062 "" } else if (*offnsk < -1e-4f || *offnsk > .995f) { -#line 21996 "" - s_wsfi(&io___1559); -#line 21996 "" +#line 22063 "" + s_wsfi(&io___1561); +#line 22063 "" do_fio(&c__1, (char *)&(*offnsk), (ftnlen)sizeof(real)); -#line 21996 "" +#line 22063 "" e_wsfi(); -#line 21997 "" +#line 22064 "" lnote = 9; -#line 21998 "" +#line 22065 "" } else { -#line 21999 "" - s_wsfi(&io___1560); -#line 21999 "" +#line 22066 "" + s_wsfi(&io___1562); +#line 22066 "" do_fio(&c__1, (char *)&(*offnsk), (ftnlen)sizeof(real)); -#line 21999 "" +#line 22066 "" e_wsfi(); -#line 22000 "" +#line 22067 "" lnote = 8; -#line 22001 "" +#line 22068 "" } /* Writing concatenation */ -#line 22002 "" +#line 22069 "" i__4[0] = lnote, a__3[0] = notexq; -#line 22002 "" +#line 22069 "" i__4[1] = 1, a__3[1] = sq; -#line 22002 "" +#line 22069 "" i__4[2] = 9, a__3[2] = "noteskip}"; -#line 22002 "" +#line 22069 "" s_cat(notexq, a__3, i__4, &c__3, (ftnlen)80); -#line 22003 "" +#line 22070 "" i__3 = lnote + 10; -#line 22003 "" +#line 22070 "" addstr_(notexq, &i__3, soutq, lsout, (ftnlen)80, (ftnlen)80); -#line 22004 "" +#line 22071 "" } -#line 22005 "" +#line 22072 "" if (*ifig < comfig_2.nfigs[*ivx - 1]) { -#line 22006 "" +#line 22073 "" ++(*ifig); -#line 22007 "" +#line 22074 "" } else { -#line 22008 "" +#line 22075 "" comfig_2.nfigs[*ivx - 1] = 0; -#line 22009 "" +#line 22076 "" *figcheck = FALSE_; -#line 22010 "" +#line 22077 "" } -#line 22011 "" +#line 22078 "" return 0; } /* putfig_ */ @@ -53650,95 +53777,95 @@ L2: /* notcrd = .true. if ornament is on main note. */ /* nolevm is level of main note (for chords) */ -#line 22031 "" +#line 22098 "" /* Parameter adjustments */ -#line 22031 "" +#line 22098 "" ihornb -= 25; -#line 22031 "" +#line 22098 "" ulq -= 25; -#line 22031 "" +#line 22098 "" --nornb; -#line 22031 "" +#line 22098 "" -#line 22031 "" +#line 22098 "" /* Function Body */ -#line 22031 "" +#line 22098 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 22031 "" +#line 22098 "" *(unsigned char *)sq = *(unsigned char *)&ch__1[0]; -#line 22032 "" +#line 22099 "" *lout = 0; -#line 22033 "" +#line 22100 "" usehornb = FALSE_; -#line 22034 "" +#line 22101 "" if (*nodur < 64) { -#line 22035 "" +#line 22102 "" stemlen = *stemlin; -#line 22036 "" +#line 22103 "" } else { -#line 22037 "" +#line 22104 "" stemlen = 0.f; -#line 22038 "" +#line 22105 "" } /* Get up-downness. ulpzq is opposite from stem direction for both beams and */ /* non beams. Can use in name of ornament [ . or _ ] */ -#line 22043 "" +#line 22110 "" if (*beamon) { -#line 22044 "" +#line 22111 "" if (*(unsigned char *)&ulq[*ivx + *ibmcnt * 24] == 'u') { -#line 22045 "" +#line 22112 "" *(unsigned char *)ulpzq = 'l'; -#line 22046 "" +#line 22113 "" } else { -#line 22047 "" +#line 22114 "" *(unsigned char *)ulpzq = 'u'; -#line 22048 "" +#line 22115 "" } -#line 22049 "" +#line 22116 "" } else { -#line 22050 "" +#line 22117 "" udqq_(ch__1, (ftnlen)1, nolevm, ncm, islur, nvmx, ivx, nv); -#line 22050 "" +#line 22117 "" if (*(unsigned char *)&ch__1[0] == 'l') { -#line 22051 "" +#line 22118 "" *(unsigned char *)ulpzq = 'u'; -#line 22052 "" +#line 22119 "" } else { -#line 22053 "" +#line 22120 "" *(unsigned char *)ulpzq = 'l'; -#line 22054 "" +#line 22121 "" } -#line 22055 "" +#line 22122 "" } /* To enable >1 ornament on a note, next line is top of manual loop. */ -#line 22059 "" +#line 22126 "" L2: /* c Bit # of last ornament (last of bits 0-21) */ /* c Bit # of last ornament (last of bits 0-24) */ /* Bit # of last ornament (last of bits 0-24,29-30) */ -#line 22064 "" +#line 22131 "" if (bit_test(*iornq,29)) { -#line 22065 "" +#line 22132 "" ibit = 29; -#line 22066 "" +#line 22133 "" } else if (bit_test(*iornq,30)) { -#line 22067 "" +#line 22134 "" ibit = 30; -#line 22068 "" +#line 22135 "" } else { -#line 22069 "" +#line 22136 "" i__1 = *iornq & 4194303; -#line 22069 "" +#line 22136 "" ibit = log2_(&i__1); /* ibit = log2(iand(iornq,33554431)) */ -#line 22071 "" +#line 22138 "" } -#line 22072 "" +#line 22139 "" iornt = pow_ii(&c__2, &ibit); /* Begin routine to set height. Bits 0-13: (stmgx+Tupf._) */ @@ -53748,568 +53875,568 @@ L2: /* Do not use beam height for . or _ */ -#line 22081 "" +#line 22148 "" if (bit_test(*iornq,22) && (iornt & 6144) == 0) { /* Height is set by special beam stuff. */ /* Do not leave ihorn set, do separately for every ornament */ -#line 22086 "" +#line 22153 "" ihorn = ihornb[*ivx + nornb[*ivx] * 24]; -#line 22087 "" +#line 22154 "" if (*(unsigned char *)ulpzq == 'u') { -#line 22087 "" +#line 22154 "" ihorn += -2; -#line 22087 "" +#line 22154 "" } /* Following flag tells whether to increment nornb when exiting the subroutine. */ -#line 22091 "" +#line 22158 "" usehornb = TRUE_; -#line 22092 "" +#line 22159 "" } else if (ibit == 14) { /* Down fermata. Don't worry about upper chord notes. */ -#line 22096 "" +#line 22163 "" if (*(unsigned char *)ulpzq == 'l') { /* Computing MIN */ -#line 22097 "" +#line 22164 "" i__1 = *nolev, i__2 = *ncm - 3; -#line 22097 "" +#line 22164 "" ihorn = min(i__1,i__2); -#line 22098 "" +#line 22165 "" } else { /* Computing MIN */ -#line 22099 "" +#line 22166 "" r__1 = *nolev - stemlen, r__2 = *ncm - 3.f; -#line 22099 "" +#line 22166 "" ihorn = dmin(r__1,r__2); -#line 22100 "" +#line 22167 "" } -#line 22101 "" +#line 22168 "" } else if (bit_test(iornt,13) || bit_test(iornt,0)) { /* ( or ) */ -#line 22105 "" +#line 22172 "" ihorn = *nolev; -#line 22106 "" +#line 22173 "" } else if ((iornt & 6144) > 0) { /* c Staccato . or tenuto _ , but not special beam stuff. Need up-down info */ /* NOTE: removed .&_ from special beam treatment. */ /* Staccato . or tenuto _ Need up-down info */ -#line 22112 "" +#line 22179 "" if (! (*iscrd) || comtrill_1.maxlev != *nolev && *(unsigned char *) ulpzq == 'l' || comtrill_1.minlev != *nolev && *(unsigned char *)ulpzq == 'u') { -#line 22114 "" +#line 22181 "" ihorn = *nolev; -#line 22115 "" +#line 22182 "" } else if (comtrill_1.maxlev == *nolev) { -#line 22116 "" +#line 22183 "" *(unsigned char *)ulpzq = 'u'; /* Computing MAX */ -#line 22117 "" +#line 22184 "" r__1 = *nolev + stemlen, r__2 = *ncm + 3.f; -#line 22117 "" +#line 22184 "" ihorn = dmax(r__1,r__2); -#line 22118 "" +#line 22185 "" } else { -#line 22119 "" +#line 22186 "" *(unsigned char *)ulpzq = 'l'; /* Computing MIN */ -#line 22120 "" +#line 22187 "" r__1 = *nolev - stemlen, r__2 = *ncm - 3.f; -#line 22120 "" +#line 22187 "" ihorn = dmin(r__1,r__2); -#line 22121 "" +#line 22188 "" } -#line 22122 "" +#line 22189 "" } else if (*iscrd && *nolev == comtrill_1.minlev) { -#line 22123 "" +#line 22190 "" if (*(unsigned char *)ulpzq == 'l') { /* Computing MIN */ -#line 22124 "" +#line 22191 "" i__1 = *nolev - 3, i__2 = *ncm - 6; -#line 22124 "" +#line 22191 "" ihorn = min(i__1,i__2); -#line 22125 "" +#line 22192 "" } else { /* Computing MIN */ -#line 22126 "" +#line 22193 "" i__1 = *nolev - i_nint(&stemlen) - 3, i__2 = *ncm - 6; -#line 22126 "" +#line 22193 "" ihorn = min(i__1,i__2); -#line 22127 "" +#line 22194 "" } -#line 22128 "" +#line 22195 "" } else if (ibit == 10 && *nolev > 90) { /* Special treatment for fermata on a shifted rest */ -#line 22132 "" +#line 22199 "" ihorn = *ncm + 5; -#line 22133 "" +#line 22200 "" } else if (*(unsigned char *)ulpzq == 'l') { /* (iscrd and nolev=maxlev) or (.not.iscrd) */ /* Computing MAX */ -#line 22137 "" +#line 22204 "" r__1 = *nolev + stemlen + 2, r__2 = *ncm + 5.f; -#line 22137 "" +#line 22204 "" ihorn = dmax(r__1,r__2); -#line 22138 "" +#line 22205 "" } else if (ibit == 29 || ibit == 30) { /* coda or new segno, no height tweak */ -#line 22142 "" +#line 22209 "" ihorn = *ncm + 5; -#line 22143 "" +#line 22210 "" } else { /* Computing MAX */ -#line 22144 "" +#line 22211 "" i__1 = *nolev + 2, i__2 = *ncm + 5; -#line 22144 "" +#line 22211 "" ihorn = max(i__1,i__2); -#line 22145 "" +#line 22212 "" } -#line 22146 "" +#line 22213 "" ioff = 0; -#line 22147 "" +#line 22214 "" iclracc = 0; /* Begin routine to set name. Bits 0-13: (stmgx+Tupf._) */ /* 14: Down fermata, was F 15: Trill w/o "tr", was U, 16-18: edit. s,f,n */ -#line 22152 "" +#line 22219 "" if (bit_test(iornt,2)) { /* Writing concatenation */ -#line 22153 "" +#line 22220 "" i__3[0] = 1, a__1[0] = sq; -#line 22153 "" +#line 22220 "" i__3[1] = 5, a__1[1] = "shake"; -#line 22153 "" +#line 22220 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22154 "" +#line 22221 "" lnote = 6; -#line 22155 "" +#line 22222 "" } else if (bit_test(iornt,3)) { /* Writing concatenation */ -#line 22156 "" +#line 22223 "" i__3[0] = 1, a__1[0] = sq; -#line 22156 "" +#line 22223 "" i__3[1] = 7, a__1[1] = "mordent"; -#line 22156 "" +#line 22223 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22157 "" +#line 22224 "" lnote = 8; -#line 22158 "" +#line 22225 "" } else if (bit_test(iornt,1)) { /* Writing concatenation */ -#line 22159 "" +#line 22226 "" i__3[0] = 1, a__1[0] = sq; -#line 22159 "" +#line 22226 "" i__3[1] = 3, a__1[1] = "mtr"; -#line 22159 "" +#line 22226 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22160 "" +#line 22227 "" lnote = 4; -#line 22161 "" +#line 22228 "" } else if (bit_test(iornt,5)) { /* Writing concatenation */ -#line 22162 "" +#line 22229 "" i__3[0] = 1, a__1[0] = sq; -#line 22162 "" +#line 22229 "" i__3[1] = 3, a__1[1] = "xtr"; -#line 22162 "" +#line 22229 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22163 "" +#line 22230 "" lnote = 4; -#line 22164 "" +#line 22231 "" } else if (bit_test(iornt,6)) { /* Writing concatenation */ -#line 22165 "" +#line 22232 "" i__3[0] = 1, a__1[0] = sq; -#line 22165 "" +#line 22232 "" i__3[1] = 3, a__1[1] = "ptr"; -#line 22165 "" +#line 22232 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22166 "" +#line 22233 "" lnote = 4; -#line 22167 "" +#line 22234 "" } else if (bit_test(iornt,13)) { /* Writing concatenation */ -#line 22168 "" +#line 22235 "" i__3[0] = 1, a__1[0] = sq; -#line 22168 "" +#line 22235 "" i__3[1] = 3, a__1[1] = "rpn"; -#line 22168 "" +#line 22235 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22169 "" +#line 22236 "" lnote = 4; -#line 22170 "" +#line 22237 "" } else if (bit_test(iornt,0)) { /* Writing concatenation */ -#line 22171 "" +#line 22238 "" i__3[0] = 1, a__1[0] = sq; -#line 22171 "" +#line 22238 "" i__3[1] = 3, a__1[1] = "lpn"; -#line 22171 "" +#line 22238 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22172 "" +#line 22239 "" lnote = 4; -#line 22173 "" +#line 22240 "" } else if (bit_test(iornt,12)) { /* Writing concatenation */ -#line 22174 "" +#line 22241 "" i__4[0] = 1, a__2[0] = sq; -#line 22174 "" +#line 22241 "" i__4[1] = 1, a__2[1] = ulpzq; -#line 22174 "" +#line 22241 "" i__4[2] = 2, a__2[2] = "st"; -#line 22174 "" +#line 22241 "" s_cat(notexq, a__2, i__4, &c__3, (ftnlen)79); -#line 22175 "" +#line 22242 "" lnote = 4; -#line 22176 "" +#line 22243 "" } else if (bit_test(iornt,11)) { /* Writing concatenation */ -#line 22177 "" +#line 22244 "" i__4[0] = 1, a__2[0] = sq; -#line 22177 "" +#line 22244 "" i__4[1] = 1, a__2[1] = ulpzq; -#line 22177 "" +#line 22244 "" i__4[2] = 2, a__2[2] = "pz"; -#line 22177 "" +#line 22244 "" s_cat(notexq, a__2, i__4, &c__3, (ftnlen)79); -#line 22178 "" +#line 22245 "" lnote = 4; -#line 22179 "" +#line 22246 "" } else if (bit_test(iornt,8)) { /* Writing concatenation */ -#line 22180 "" +#line 22247 "" i__3[0] = 1, a__1[0] = sq; -#line 22180 "" +#line 22247 "" i__3[1] = 3, a__1[1] = "upz"; -#line 22180 "" +#line 22247 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22181 "" +#line 22248 "" lnote = 4; -#line 22182 "" +#line 22249 "" ioff = -2; -#line 22183 "" +#line 22250 "" } else if (bit_test(iornt,9)) { /* Writing concatenation */ -#line 22184 "" +#line 22251 "" i__3[0] = 1, a__1[0] = sq; -#line 22184 "" +#line 22251 "" i__3[1] = 4, a__1[1] = "uppz"; -#line 22184 "" +#line 22251 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22185 "" +#line 22252 "" lnote = 5; -#line 22186 "" +#line 22253 "" ioff = -2; -#line 22187 "" +#line 22254 "" } else if (bit_test(iornt,10)) { -#line 22188 "" +#line 22255 "" if (*nodur < 48) { /* Writing concatenation */ -#line 22189 "" +#line 22256 "" i__3[0] = 1, a__1[0] = sq; -#line 22189 "" +#line 22256 "" i__3[1] = 9, a__1[1] = "fermataup"; -#line 22189 "" +#line 22256 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22190 "" +#line 22257 "" } else { /* Writing concatenation */ -#line 22191 "" +#line 22258 "" i__3[0] = 1, a__1[0] = sq; -#line 22191 "" +#line 22258 "" i__3[1] = 9, a__1[1] = "Fermataup"; -#line 22191 "" +#line 22258 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22192 "" +#line 22259 "" } -#line 22193 "" +#line 22260 "" lnote = 10; -#line 22194 "" +#line 22261 "" ioff = -2; -#line 22195 "" +#line 22262 "" } else if (bit_test(iornt,14)) { -#line 22196 "" +#line 22263 "" if (*nodur < 48) { /* Writing concatenation */ -#line 22197 "" +#line 22264 "" i__3[0] = 1, a__1[0] = sq; -#line 22197 "" +#line 22264 "" i__3[1] = 11, a__1[1] = "fermatadown"; -#line 22197 "" +#line 22264 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22198 "" +#line 22265 "" } else { /* Writing concatenation */ -#line 22199 "" +#line 22266 "" i__3[0] = 1, a__1[0] = sq; -#line 22199 "" +#line 22266 "" i__3[1] = 11, a__1[1] = "Fermatadown"; -#line 22199 "" +#line 22266 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22200 "" +#line 22267 "" } -#line 22201 "" +#line 22268 "" lnote = 12; -#line 22202 "" +#line 22269 "" } else if (bit_test(iornt,21)) { /* "?" in editorial ornament. Clear bit 16-18 after use, since ibit=21 */ -#line 22206 "" +#line 22273 "" if (bit_test(*iornq,16)) { /* Writing concatenation */ -#line 22207 "" +#line 22274 "" i__3[0] = 1, a__1[0] = sq; -#line 22207 "" +#line 22274 "" i__3[1] = 6, a__1[1] = "qsharp"; -#line 22207 "" +#line 22274 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22208 "" +#line 22275 "" lnote = 7; -#line 22209 "" +#line 22276 "" ioff = 2; -#line 22210 "" +#line 22277 "" *iornq = bit_clear(*iornq,16); -#line 22211 "" +#line 22278 "" iclracc = 16; -#line 22212 "" +#line 22279 "" } else if (bit_test(*iornq,17)) { /* Writing concatenation */ -#line 22213 "" +#line 22280 "" i__3[0] = 1, a__1[0] = sq; -#line 22213 "" +#line 22280 "" i__3[1] = 5, a__1[1] = "qflat"; -#line 22213 "" +#line 22280 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22214 "" +#line 22281 "" lnote = 6; -#line 22215 "" +#line 22282 "" ioff = 1; -#line 22216 "" +#line 22283 "" *iornq = bit_clear(*iornq,17); -#line 22217 "" +#line 22284 "" iclracc = 17; -#line 22218 "" +#line 22285 "" } else if (bit_test(*iornq,18)) { /* Writing concatenation */ -#line 22219 "" +#line 22286 "" i__3[0] = 1, a__1[0] = sq; -#line 22219 "" +#line 22286 "" i__3[1] = 4, a__1[1] = "qnat"; -#line 22219 "" +#line 22286 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22220 "" +#line 22287 "" lnote = 5; -#line 22221 "" +#line 22288 "" ioff = 2; -#line 22222 "" +#line 22289 "" *iornq = bit_clear(*iornq,18); -#line 22223 "" +#line 22290 "" iclracc = 18; -#line 22224 "" +#line 22291 "" } else { /* Writing concatenation */ -#line 22225 "" +#line 22292 "" i__3[0] = 1, a__1[0] = sq; -#line 22225 "" +#line 22292 "" i__3[1] = 5, a__1[1] = "qedit"; -#line 22225 "" +#line 22292 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22226 "" +#line 22293 "" lnote = 6; -#line 22227 "" +#line 22294 "" ioff = 0; -#line 22228 "" +#line 22295 "" } -#line 22229 "" +#line 22296 "" } else if (bit_test(iornt,16)) { /* Writing concatenation */ -#line 22230 "" +#line 22297 "" i__3[0] = 1, a__1[0] = sq; -#line 22230 "" +#line 22297 "" i__3[1] = 6, a__1[1] = "esharp"; -#line 22230 "" +#line 22297 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22231 "" +#line 22298 "" lnote = 7; -#line 22232 "" +#line 22299 "" ioff = 2; -#line 22233 "" +#line 22300 "" } else if (bit_test(iornt,17)) { /* Writing concatenation */ -#line 22234 "" +#line 22301 "" i__3[0] = 1, a__1[0] = sq; -#line 22234 "" +#line 22301 "" i__3[1] = 5, a__1[1] = "eflat"; -#line 22234 "" +#line 22301 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22235 "" +#line 22302 "" lnote = 6; -#line 22236 "" +#line 22303 "" ioff = 1; -#line 22237 "" +#line 22304 "" } else if (bit_test(iornt,18)) { /* Writing concatenation */ -#line 22238 "" +#line 22305 "" i__3[0] = 1, a__1[0] = sq; -#line 22238 "" +#line 22305 "" i__3[1] = 4, a__1[1] = "enat"; -#line 22238 "" +#line 22305 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22239 "" +#line 22306 "" lnote = 5; -#line 22240 "" +#line 22307 "" ioff = 2; -#line 22241 "" +#line 22308 "" } else if (bit_test(iornt,19)) { /* Writing concatenation */ -#line 22242 "" +#line 22309 "" i__3[0] = 1, a__1[0] = sq; -#line 22242 "" +#line 22309 "" i__3[1] = 3, a__1[1] = "usf"; -#line 22242 "" +#line 22309 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22243 "" +#line 22310 "" lnote = 4; -#line 22244 "" +#line 22311 "" ioff = -2; -#line 22245 "" +#line 22312 "" } else if (bit_test(iornt,20)) { /* Writing concatenation */ -#line 22246 "" +#line 22313 "" i__3[0] = 1, a__1[0] = sq; -#line 22246 "" +#line 22313 "" i__3[1] = 4, a__1[1] = "usfz"; -#line 22246 "" +#line 22313 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22247 "" +#line 22314 "" lnote = 5; -#line 22248 "" +#line 22315 "" ioff = -2; -#line 22249 "" +#line 22316 "" } else if (bit_test(iornt,29)) { /* Writing concatenation */ -#line 22250 "" +#line 22317 "" i__3[0] = 1, a__1[0] = sq; -#line 22250 "" +#line 22317 "" i__3[1] = 5, a__1[1] = "ccoda"; -#line 22250 "" +#line 22317 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22251 "" +#line 22318 "" lnote = 6; -#line 22252 "" +#line 22319 "" } else if (bit_test(iornt,30)) { /* Writing concatenation */ -#line 22253 "" +#line 22320 "" i__3[0] = 1, a__1[0] = sq; -#line 22253 "" +#line 22320 "" i__3[1] = 6, a__1[1] = "ssegno"; -#line 22253 "" +#line 22320 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22254 "" +#line 22321 "" lnote = 7; -#line 22255 "" +#line 22322 "" } -#line 22256 "" +#line 22323 "" iudorn = 0; /* User-defined level shift of ornament from default? */ -#line 22260 "" +#line 22327 "" if (bit_test(*iornq,25)) { /* Find which (if any) element of kudorn has the shift. */ -#line 22264 "" +#line 22331 "" i__1 = comtrill_1.nudorn; -#line 22264 "" +#line 22331 "" for (iudorn = 1; iudorn <= i__1; ++iudorn) { /* if (ibit .lt. 21) then */ /* if (ibit.lt.21 .or. ibit.eq.29) then */ -#line 22267 "" +#line 22334 "" if (ibit < 21 || ibit == 29 || ibit == 30) { -#line 22268 "" +#line 22335 "" ibitt = ibit; /* Could have oes, but not oe? or oes? */ -#line 22272 "" +#line 22339 "" } else if (iclracc > 0) { /* Earlier cleared edit. accid, meaning it was oes? */ -#line 22276 "" +#line 22343 "" ibitt = iclracc + 6; -#line 22277 "" +#line 22344 "" } else { -#line 22278 "" +#line 22345 "" ibitt = 21; -#line 22279 "" +#line 22346 "" } -#line 22280 "" +#line 22347 "" ibitt = *ip + (*ivx % 16 << 8) + (*nolev << 12) + (ibitt << 19); /* if (ibitt .eq. iand(33554431,kudorn(iudorn))) go to 4 */ -#line 22282 "" +#line 22349 "" if (ibitt == (33554431 & comtrill_1.kudorn[iudorn - 1]) && *ivx == comivxudorn_1.ivxudorn[iudorn - 1]) { -#line 22282 "" +#line 22349 "" goto L4; -#line 22282 "" +#line 22349 "" } -#line 22284 "" +#line 22351 "" /* L3: */ -#line 22284 "" +#line 22351 "" } /* Nothing shifted on this note; exit this if block */ -#line 22288 "" +#line 22355 "" iudorn = 0; -#line 22289 "" +#line 22356 "" goto L5; -#line 22290 "" +#line 22357 "" L4: -#line 22291 "" +#line 22358 "" ioffinc = (63 & lbit_shift(comtrill_1.kudorn[iudorn - 1], (ftnlen)-25) ) - 32; -#line 22292 "" +#line 22359 "" if (ibit == 19 && ioffinc < -7) { /* Convert usf to lsf. The reason has to do with positioning being impossile */ /* for some mysterious reason when you drop \usf below the staff */ /* Writing concatenation */ -#line 22297 "" +#line 22364 "" i__3[0] = 1, a__1[0] = sq; -#line 22297 "" +#line 22364 "" i__3[1] = 3, a__1[1] = "lsf"; -#line 22297 "" +#line 22364 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22298 "" +#line 22365 "" ioffinc += 6; -#line 22299 "" +#line 22366 "" } -#line 22300 "" +#line 22367 "" ioff += ioffinc; -#line 22301 "" +#line 22368 "" } -#line 22302 "" +#line 22369 "" L5: /* Shift level to avoid slur. Conditions are */ @@ -54319,149 +54446,149 @@ L5: /* 4. ornament is not segno(4), ._)(11-13), down ferm(14) or "(" (0) Bin=30737 */ /* 5. islhgt+3 >= height already computed. */ -#line 22311 "" +#line 22378 "" if (! bit_test(*iornq,25) && *islhgt > 0 && (iornt & 30737) == 0) { -#line 22311 "" +#line 22378 "" i__1 = *islhgt + 3; -#line 22311 "" +#line 22378 "" ioff += i_dim(&i__1, &ihorn); -#line 22311 "" +#line 22378 "" } -#line 22314 "" +#line 22381 "" i__1 = ihorn + ioff; -#line 22314 "" +#line 22381 "" notefq_(noteq, &lnoten, &i__1, ncm, (ftnlen)8); -#line 22315 "" +#line 22382 "" if (lnoten == 1) { -#line 22315 "" +#line 22382 "" addblank_(noteq, &lnoten, (ftnlen)8); -#line 22315 "" +#line 22382 "" } -#line 22316 "" +#line 22383 "" if ((iornt & 32896) > 0) { /* T-trill or trill w/o "tr" */ -#line 22320 "" +#line 22387 "" dotrill_(ivx, ip, &iornt, noteq, &lnoten, notexq, &lnote, (ftnlen)8, ( ftnlen)79); -#line 22321 "" +#line 22388 "" } else { /* Writing concatenation */ -#line 22322 "" +#line 22389 "" i__3[0] = lnote, a__1[0] = notexq; -#line 22322 "" +#line 22389 "" i__3[1] = lnoten, a__1[1] = noteq; -#line 22322 "" +#line 22389 "" s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79); -#line 22323 "" +#line 22390 "" lnote += lnoten; -#line 22324 "" +#line 22391 "" } -#line 22325 "" +#line 22392 "" if (iudorn > 0) { -#line 22326 "" +#line 22393 "" if (bit_test(comtrill_1.kudorn[iudorn - 1],31)) { /* Horizontal shift */ -#line 22330 "" +#line 22397 "" lform = lfmt1_(&comtrill_1.ornhshft[iudorn - 1]); -#line 22331 "" +#line 22398 "" ici__1.icierr = 0; -#line 22331 "" +#line 22398 "" ici__1.icirnum = 1; -#line 22331 "" +#line 22398 "" ici__1.icirlen = lform; -#line 22331 "" +#line 22398 "" ici__1.iciunit = noteq; /* Writing concatenation */ -#line 22331 "" +#line 22398 "" i__4[0] = 2, a__2[0] = "(f"; -#line 22331 "" +#line 22398 "" i__1 = lform + 48; -#line 22331 "" +#line 22398 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 22331 "" +#line 22398 "" i__4[1] = 1, a__2[1] = ch__1; -#line 22331 "" +#line 22398 "" i__4[2] = 3, a__2[2] = ".1)"; -#line 22331 "" +#line 22398 "" ici__1.icifmt = (s_cat(ch__2, a__2, i__4, &c__3, (ftnlen)6), ch__2); -#line 22331 "" +#line 22398 "" s_wsfi(&ici__1); -#line 22331 "" +#line 22398 "" do_fio(&c__1, (char *)&comtrill_1.ornhshft[iudorn - 1], (ftnlen) sizeof(real)); -#line 22331 "" +#line 22398 "" e_wsfi(); /* Writing concatenation */ -#line 22333 "" +#line 22400 "" i__5[0] = 1, a__3[0] = sq; -#line 22333 "" +#line 22400 "" i__5[1] = 8, a__3[1] = "roffset{"; -#line 22333 "" +#line 22400 "" i__5[2] = lform, a__3[2] = noteq; -#line 22333 "" +#line 22400 "" i__5[3] = 2, a__3[3] = "}{"; -#line 22333 "" +#line 22400 "" i__5[4] = lnote, a__3[4] = notexq; -#line 22333 "" +#line 22400 "" i__5[5] = 1, a__3[5] = "}"; -#line 22333 "" +#line 22400 "" s_cat(notexq, a__3, i__5, &c__6, (ftnlen)79); -#line 22335 "" +#line 22402 "" lnote = lnote + lform + 12; -#line 22336 "" +#line 22403 "" comtrill_1.ornhshft[iudorn - 1] = 0.f; -#line 22337 "" +#line 22404 "" comtrill_1.kudorn[iudorn - 1] = bit_clear(comtrill_1.kudorn[ iudorn - 1],31); -#line 22338 "" +#line 22405 "" } -#line 22339 "" +#line 22406 "" } /* Zero out the bit for ornament just dealt with. */ -#line 22343 "" +#line 22410 "" *iornq = bit_clear(*iornq,ibit); -#line 22344 "" +#line 22411 "" if (*lout == 0) { -#line 22345 "" +#line 22412 "" s_copy(outq, notexq, (ftnlen)79, lnote); -#line 22346 "" +#line 22413 "" } else { /* Writing concatenation */ -#line 22347 "" +#line 22414 "" i__3[0] = *lout, a__1[0] = outq; -#line 22347 "" +#line 22414 "" i__3[1] = lnote, a__1[1] = notexq; -#line 22347 "" +#line 22414 "" s_cat(outq, a__1, i__3, &c__2, (ftnlen)79); -#line 22348 "" +#line 22415 "" } -#line 22349 "" +#line 22416 "" *lout += lnote; /* Check bits 0-21, go back if any are still set */ /* If bit 29 or 30 had been set, would have been used first time thru, */ /* and you wouldn't use both coda and segno on same note */ -#line 22355 "" +#line 22422 "" if ((*iornq & 4194303) > 0) { -#line 22355 "" +#line 22422 "" goto L2; -#line 22355 "" +#line 22422 "" } -#line 22356 "" +#line 22423 "" if (usehornb) { -#line 22356 "" +#line 22423 "" ++nornb[*ivx]; -#line 22356 "" +#line 22423 "" } -#line 22357 "" +#line 22424 "" return 0; } /* putorn_ */ @@ -54490,91 +54617,91 @@ L5: ftnlen, ftnlen); static char notexq[80]; -#line 22365 "" +#line 22432 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 22365 "" +#line 22432 "" *(unsigned char *)sq = *(unsigned char *)&ch__1[0]; /* Start user-defined offsets X(...): or X(...)S */ -#line 22369 "" +#line 22436 "" if (*onoff) { -#line 22369 "" +#line 22436 "" ++comudsp_1.nudoff[*ivx - 1]; -#line 22369 "" +#line 22436 "" } /* Xoff is in pts. Round off to nearest .1. Will use at end of shift. */ -#line 22373 "" +#line 22440 "" xoff = comudsp_1.udoff[*ivx + comudsp_1.nudoff[*ivx - 1] * 24 - 25]; -#line 22374 "" +#line 22441 "" r__1 = (integer) (dabs(xoff) * 10.f + .5f) / 10.f; -#line 22374 "" +#line 22441 "" xoff = r_sign(&r__1, &xoff); -#line 22375 "" +#line 22442 "" if (! (*onoff)) { -#line 22375 "" +#line 22442 "" xoff = -xoff; -#line 22375 "" +#line 22442 "" } -#line 22376 "" +#line 22443 "" if (xoff < -9.95f) { -#line 22377 "" +#line 22444 "" ifmt = 5; -#line 22378 "" +#line 22445 "" } else if (xoff < -.95f || xoff > 9.95f) { -#line 22379 "" +#line 22446 "" ifmt = 4; -#line 22380 "" +#line 22447 "" } else { -#line 22381 "" +#line 22448 "" ifmt = 3; -#line 22382 "" +#line 22449 "" } -#line 22383 "" +#line 22450 "" ici__1.icierr = 0; -#line 22383 "" +#line 22450 "" ici__1.icirnum = 1; -#line 22383 "" +#line 22450 "" ici__1.icirlen = 80; -#line 22383 "" +#line 22450 "" ici__1.iciunit = notexq; /* Writing concatenation */ -#line 22383 "" +#line 22450 "" i__1[0] = 2, a__1[0] = "(f"; -#line 22383 "" +#line 22450 "" i__2 = ifmt + 48; -#line 22383 "" +#line 22450 "" chax_(ch__1, (ftnlen)1, &i__2); -#line 22383 "" +#line 22450 "" i__1[1] = 1, a__1[1] = ch__1; -#line 22383 "" +#line 22450 "" i__1[2] = 3, a__1[2] = ".1)"; -#line 22383 "" +#line 22450 "" ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)6), ch__2); -#line 22383 "" +#line 22450 "" s_wsfi(&ici__1); -#line 22383 "" +#line 22450 "" do_fio(&c__1, (char *)&xoff, (ftnlen)sizeof(real)); -#line 22383 "" +#line 22450 "" e_wsfi(); /* Writing concatenation */ -#line 22384 "" +#line 22451 "" i__3[0] = 1, a__2[0] = sq; -#line 22384 "" +#line 22451 "" i__3[1] = 4, a__2[1] = "off{"; -#line 22384 "" +#line 22451 "" i__3[2] = ifmt, a__2[2] = notexq; -#line 22384 "" +#line 22451 "" i__3[3] = 3, a__2[3] = "pt}"; -#line 22384 "" +#line 22451 "" s_cat(ch__3, a__2, i__3, &c__4, (ftnlen)88); -#line 22384 "" +#line 22451 "" i__2 = ifmt + 8; -#line 22384 "" +#line 22451 "" addstr_(ch__3, &i__2, soutq, lsout, ifmt + 8, (ftnlen)80); -#line 22386 "" +#line 22453 "" return 0; } /* putshft_ */ @@ -54607,9 +54734,9 @@ L5: static integer lenline; /* Fortran I/O blocks */ - static cilist io___1588 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1591 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1594 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1590 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1593 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1596 = { 0, 11, 0, "(a)", 0 }; @@ -54617,352 +54744,352 @@ L5: /* Actual titles only allowed on p.1. (set by headlog). */ /* 3/18/01: The above comment is probably bogus...can use Tt on later pages. */ -#line 22405 "" +#line 22472 "" /* Parameter adjustments */ -#line 22405 "" +#line 22472 "" --sepsymq; -#line 22405 "" +#line 22472 "" -#line 22405 "" +#line 22472 "" /* Function Body */ /* Writing concatenation */ -#line 22405 "" +#line 22472 "" i__1[0] = 1, a__1[0] = sq; -#line 22405 "" +#line 22472 "" i__1[1] = 6, a__1[1] = "znotes"; -#line 22405 "" +#line 22472 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127); -#line 22406 "" +#line 22473 "" lenline = 7; -#line 22407 "" +#line 22474 "" i__2 = *nv - 1; -#line 22407 "" +#line 22474 "" for (iv = 1; iv <= i__2; ++iv) { /* Writing concatenation */ -#line 22408 "" +#line 22475 "" i__1[0] = lenline, a__1[0] = notexq; -#line 22408 "" +#line 22475 "" i__1[1] = 1, a__1[1] = sepsymq + iv; -#line 22408 "" +#line 22475 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127); -#line 22409 "" +#line 22476 "" ++lenline; -#line 22410 "" +#line 22477 "" /* L22: */ -#line 22410 "" +#line 22477 "" } /* Writing concatenation */ -#line 22411 "" +#line 22478 "" i__3[0] = lenline, a__2[0] = notexq; -#line 22411 "" +#line 22478 "" i__3[1] = 1, a__2[1] = sq; -#line 22411 "" +#line 22478 "" i__3[2] = 10, a__2[2] = "zcharnote{"; -#line 22411 "" +#line 22478 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)127); -#line 22412 "" +#line 22479 "" lenline += 11; -#line 22413 "" +#line 22480 "" if (! comtitl_1.headlog) { -#line 22414 "" +#line 22481 "" comtitl_1.inhead = *inhnoh; -#line 22415 "" +#line 22482 "" } -#line 22416 "" +#line 22483 "" if (*vshrink && comlast_1.usevshrink) { -#line 22417 "" +#line 22484 "" comtitl_1.inhead = 16; -#line 22418 "" +#line 22485 "" } -#line 22419 "" +#line 22486 "" r__1 = comtitl_1.inhead + .01f; -#line 22419 "" +#line 22486 "" ndig = (integer) r_lg10(&r__1) + 1; -#line 22420 "" +#line 22487 "" i__2 = lenline; -#line 22420 "" +#line 22487 "" ici__1.icierr = 0; -#line 22420 "" +#line 22487 "" ici__1.icirnum = 1; -#line 22420 "" +#line 22487 "" ici__1.icirlen = lenline + ndig + 10 - i__2; -#line 22420 "" +#line 22487 "" ici__1.iciunit = notexq + i__2; /* Writing concatenation */ -#line 22420 "" +#line 22487 "" i__3[0] = 2, a__2[0] = "(i"; -#line 22420 "" +#line 22487 "" i__4 = ndig + 48; -#line 22420 "" +#line 22487 "" chax_(ch__2, (ftnlen)1, &i__4); -#line 22420 "" +#line 22487 "" i__3[1] = 1, a__2[1] = ch__2; -#line 22420 "" +#line 22487 "" i__3[2] = 5, a__2[2] = ",a10)"; -#line 22420 "" +#line 22487 "" ici__1.icifmt = (s_cat(ch__1, a__2, i__3, &c__3, (ftnlen)8), ch__1); -#line 22420 "" +#line 22487 "" s_wsfi(&ici__1); -#line 22420 "" +#line 22487 "" do_fio(&c__1, (char *)&comtitl_1.inhead, (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 22420 "" +#line 22487 "" i__5[0] = 2, a__3[0] = "}{"; -#line 22420 "" +#line 22487 "" i__5[1] = 1, a__3[1] = sq; -#line 22420 "" +#line 22487 "" i__5[2] = 7, a__3[2] = "titles{"; -#line 22420 "" +#line 22487 "" s_cat(ch__3, a__3, i__5, &c__3, (ftnlen)10); -#line 22420 "" +#line 22487 "" do_fio(&c__1, ch__3, (ftnlen)10); -#line 22420 "" +#line 22487 "" e_wsfi(); -#line 22422 "" +#line 22489 "" lenline = lenline + ndig + 10; /* Vertical skip at top of page (\Il) = etatop*glueil. Needed whether */ /* headers are present or not. */ -#line 22427 "" +#line 22494 "" glueil = *xnsttop / *etatop; -#line 22428 "" +#line 22495 "" vskil = *etatop * glueil; -#line 22429 "" +#line 22496 "" if (*vshrink && comlast_1.usevshrink) { -#line 22429 "" +#line 22496 "" vskil = 2.f; -#line 22429 "" +#line 22496 "" } -#line 22430 "" +#line 22497 "" writflot_(&vskil, notexq, &lenline, (ftnlen)127); -#line 22431 "" +#line 22498 "" if (! comtitl_1.headlog) { -#line 22432 "" +#line 22499 "" if (comlast_1.islast) { -#line 22432 "" - s_wsfe(&io___1588); +#line 22499 "" + s_wsfe(&io___1590); /* Writing concatenation */ -#line 22432 "" +#line 22499 "" i__6[0] = lenline, a__4[0] = notexq; -#line 22432 "" +#line 22499 "" i__6[1] = 17, a__4[1] = "}{}{0}{}{0}{}{0}}"; -#line 22432 "" +#line 22499 "" i__6[2] = 1, a__4[2] = sq; -#line 22432 "" +#line 22499 "" i__6[3] = 3, a__4[3] = "en%"; -#line 22432 "" +#line 22499 "" s_cat(ch__4, a__4, i__6, &c__4, (ftnlen)148); -#line 22432 "" +#line 22499 "" do_fio(&c__1, ch__4, lenline + 21); -#line 22432 "" +#line 22499 "" e_wsfe(); -#line 22432 "" +#line 22499 "" } -#line 22434 "" +#line 22501 "" } else { /* Writing concatenation */ -#line 22435 "" +#line 22502 "" i__1[0] = lenline, a__1[0] = notexq; -#line 22435 "" +#line 22502 "" i__1[1] = 2, a__1[1] = "}{"; -#line 22435 "" +#line 22502 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127); -#line 22436 "" +#line 22503 "" lenline += 2; -#line 22437 "" +#line 22504 "" lcq = lenstr_(comtitl_1.instrq, &c__120, (ftnlen)120); -#line 22438 "" +#line 22505 "" if (lcq > 0) { -#line 22439 "" +#line 22506 "" xitil = *etait * glueil; -#line 22440 "" +#line 22507 "" if (*vshrink && comlast_1.usevshrink) { -#line 22440 "" +#line 22507 "" xitil = 2.f; -#line 22440 "" +#line 22507 "" } /* Writing concatenation */ -#line 22441 "" +#line 22508 "" i__3[0] = lenline, a__2[0] = notexq; -#line 22441 "" +#line 22508 "" i__3[1] = lcq, a__2[1] = comtitl_1.instrq; -#line 22441 "" +#line 22508 "" i__3[2] = 2, a__2[2] = "}{"; -#line 22441 "" +#line 22508 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)127); /* Null out instrument once used */ -#line 22445 "" +#line 22512 "" s_copy(comtitl_1.instrq, " ", (ftnlen)120, (ftnlen)1); -#line 22446 "" +#line 22513 "" lenline = lenline + lcq + 2; -#line 22447 "" +#line 22514 "" writflot_(&xitil, notexq, &lenline, (ftnlen)127); -#line 22448 "" +#line 22515 "" } else { /* Writing concatenation */ -#line 22449 "" +#line 22516 "" i__1[0] = lenline, a__1[0] = notexq; -#line 22449 "" +#line 22516 "" i__1[1] = 3, a__1[1] = "}{0"; -#line 22449 "" +#line 22516 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127); -#line 22450 "" +#line 22517 "" lenline += 3; -#line 22451 "" +#line 22518 "" } -#line 22452 "" +#line 22519 "" if (comlast_1.islast) { -#line 22452 "" - s_wsfe(&io___1591); +#line 22519 "" + s_wsfe(&io___1593); /* Writing concatenation */ -#line 22452 "" +#line 22519 "" i__1[0] = lenline, a__1[0] = notexq; -#line 22452 "" +#line 22519 "" i__1[1] = 2, a__1[1] = "}%"; -#line 22452 "" +#line 22519 "" s_cat(ch__5, a__1, i__1, &c__2, (ftnlen)129); -#line 22452 "" +#line 22519 "" do_fio(&c__1, ch__5, lenline + 2); -#line 22452 "" +#line 22519 "" e_wsfe(); -#line 22452 "" +#line 22519 "" } -#line 22453 "" +#line 22520 "" s_copy(notexq, "{", (ftnlen)127, (ftnlen)1); -#line 22454 "" +#line 22521 "" lenline = 1; -#line 22455 "" +#line 22522 "" lcq = lenstr_(comtitl_1.titleq, &c__120, (ftnlen)120); -#line 22456 "" +#line 22523 "" if (lcq > 0) { /* Writing concatenation */ -#line 22457 "" +#line 22524 "" i__1[0] = lenline, a__1[0] = notexq; -#line 22457 "" +#line 22524 "" i__1[1] = lcq, a__1[1] = comtitl_1.titleq; -#line 22457 "" +#line 22524 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127); -#line 22458 "" +#line 22525 "" lenline += lcq; -#line 22459 "" +#line 22526 "" } else { -#line 22460 "" +#line 22527 "" printl_(" ", (ftnlen)1); -#line 22461 "" +#line 22528 "" printl_("WARNING", (ftnlen)7); -#line 22462 "" +#line 22529 "" printl_(" In a title block, you have specified instrument and/or" , (ftnlen)56); -#line 22464 "" +#line 22531 "" printl_(" composer but no title for the piece.", (ftnlen)38); -#line 22466 "" +#line 22533 "" } /* Writing concatenation */ -#line 22467 "" +#line 22534 "" i__1[0] = lenline, a__1[0] = notexq; -#line 22467 "" +#line 22534 "" i__1[1] = 2, a__1[1] = "}{"; -#line 22467 "" +#line 22534 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127); -#line 22468 "" +#line 22535 "" lenline += 2; -#line 22469 "" +#line 22536 "" xtcil = *etatc * glueil; -#line 22470 "" +#line 22537 "" lcq = lenstr_(comtitl_1.compoq, &c__120, (ftnlen)120); -#line 22471 "" +#line 22538 "" if (lcq == 0) { -#line 22471 "" +#line 22538 "" xtcil *= 2; -#line 22471 "" +#line 22538 "" } -#line 22472 "" +#line 22539 "" if (*vshrink && comlast_1.usevshrink) { -#line 22472 "" +#line 22539 "" xtcil = 2.f; -#line 22472 "" +#line 22539 "" } -#line 22473 "" +#line 22540 "" writflot_(&xtcil, notexq, &lenline, (ftnlen)127); /* Writing concatenation */ -#line 22474 "" +#line 22541 "" i__1[0] = lenline, a__1[0] = notexq; -#line 22474 "" +#line 22541 "" i__1[1] = 2, a__1[1] = "}{"; -#line 22474 "" +#line 22541 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127); -#line 22475 "" +#line 22542 "" lenline += 2; -#line 22476 "" +#line 22543 "" if (lcq > 0) { /* Writing concatenation */ -#line 22477 "" +#line 22544 "" i__3[0] = lenline, a__2[0] = notexq; -#line 22477 "" +#line 22544 "" i__3[1] = lcq, a__2[1] = comtitl_1.compoq; -#line 22477 "" +#line 22544 "" i__3[2] = 2, a__2[2] = "}{"; -#line 22477 "" +#line 22544 "" s_cat(notexq, a__2, i__3, &c__3, (ftnlen)127); -#line 22478 "" +#line 22545 "" lenline = lenline + 2 + lcq; /* Null out compoq so it does not get written later */ -#line 22482 "" +#line 22549 "" s_copy(comtitl_1.compoq, " ", (ftnlen)120, (ftnlen)1); -#line 22483 "" +#line 22550 "" xcsil = *etacs1 * glueil; -#line 22484 "" +#line 22551 "" if (*vshrink && comlast_1.usevshrink) { -#line 22484 "" +#line 22551 "" xcsil = 2.f; -#line 22484 "" +#line 22551 "" } -#line 22485 "" +#line 22552 "" writflot_(&xcsil, notexq, &lenline, (ftnlen)127); -#line 22486 "" +#line 22553 "" } else { /* Writing concatenation */ -#line 22487 "" +#line 22554 "" i__1[0] = lenline, a__1[0] = notexq; -#line 22487 "" +#line 22554 "" i__1[1] = 3, a__1[1] = "}{0"; -#line 22487 "" +#line 22554 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127); -#line 22488 "" +#line 22555 "" lenline += 3; -#line 22489 "" +#line 22556 "" } -#line 22490 "" +#line 22557 "" if (comlast_1.islast) { -#line 22490 "" - s_wsfe(&io___1594); +#line 22557 "" + s_wsfe(&io___1596); /* Writing concatenation */ -#line 22490 "" +#line 22557 "" i__6[0] = lenline, a__4[0] = notexq; -#line 22490 "" +#line 22557 "" i__6[1] = 2, a__4[1] = "}}"; -#line 22490 "" +#line 22557 "" i__6[2] = 1, a__4[2] = sq; -#line 22490 "" +#line 22557 "" i__6[3] = 3, a__4[3] = "en%"; -#line 22490 "" +#line 22557 "" s_cat(ch__6, a__4, i__6, &c__4, (ftnlen)133); -#line 22490 "" +#line 22557 "" do_fio(&c__1, ch__6, lenline + 6); -#line 22490 "" +#line 22557 "" e_wsfe(); -#line 22490 "" +#line 22557 "" } -#line 22491 "" +#line 22558 "" comtitl_1.headlog = FALSE_; -#line 22492 "" +#line 22559 "" } -#line 22493 "" +#line 22560 "" return 0; } /* puttitle_ */ @@ -54970,7 +55097,8 @@ L5: integer *iud, real *wheadpt, real *poenom, integer *nolev1, integer * islope, real *slfac, real *xnlmid, integer *islur, integer *lnote, char *notexq, integer *ncmid, integer *nlnum, real *eloff, integer * - iup, integer *irest, logical *usexnumt, ftnlen notexq_len) + iup, integer *irest, integer *mult, logical *usexnumt, ftnlen + notexq_len) { /* System generated locals */ address a__1[2], a__2[3]; @@ -54986,227 +55114,230 @@ L5: ; /* Local variables */ + extern integer igetbits_(integer *, integer *, integer *); extern /* Character */ VOID chax_(char *, ftnlen, integer *); static char noteq[8]; extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer *, ftnlen); static integer lnoten, istrtn; +/* * eloff,iup,irest,usexnumt) */ /* Places digit for xtuplet. */ -#line 22505 "" +#line 22573 "" if (*iflop != 0 && *multb > 0) { /* Number goes on beam side, move R/L by .5 wheadpt for upper/lower */ -#line 22509 "" +#line 22577 "" *eloff -= *iud * .5f * *wheadpt / *poenom; /* Number goes on beam side, must use beam parameters to set pos'n */ -#line 22513 "" +#line 22581 "" *nlnum = *nolev1 + *islope / *slfac * *eloff + *iup * (*multb + 8); -#line 22514 "" +#line 22582 "" if (*multb >= 2) { -#line 22514 "" +#line 22582 "" *nlnum += *iup; -#line 22514 "" +#line 22582 "" } -#line 22515 "" +#line 22583 "" } else { -#line 22516 "" +#line 22584 "" r__1 = *xnlmid - 1 + *iud * 3 + *iflop * 11; -#line 22516 "" +#line 22584 "" *nlnum = i_nint(&r__1); -#line 22517 "" +#line 22585 "" } -#line 22518 "" +#line 22586 "" if (! bit_test(*islur,31)) { /* Only print number when wanted. First check vert, horiz offset */ -#line 22522 "" +/* if (btest(irest,1)) nlnum = nlnum+iand(31,ishft(irest,-2))-16 */ +#line 22591 "" if (bit_test(*irest,1)) { -#line 22522 "" - *nlnum = *nlnum + (31 & lbit_shift(*irest, (ftnlen)-2)) - 16; -#line 22522 "" +#line 22591 "" + *nlnum = *nlnum + igetbits_(mult, &c__8, &c__16) - 64; +#line 22591 "" } -#line 22523 "" +#line 22592 "" if (bit_test(*irest,7)) { -#line 22523 "" +#line 22592 "" *eloff += ((31 & lbit_shift(*irest, (ftnlen)-9)) * .1f - 1.6f) * * wheadpt / *poenom; -#line 22523 "" +#line 22592 "" } -#line 22525 "" +#line 22594 "" if (! (*usexnumt)) { /* Writing concatenation */ -#line 22526 "" +#line 22595 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 22526 "" +#line 22595 "" i__1[0] = 1, a__1[0] = ch__1; -#line 22526 "" +#line 22595 "" i__1[1] = 5, a__1[1] = "xnum{"; -#line 22526 "" +#line 22595 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 22527 "" +#line 22596 "" *lnote = 10; -#line 22528 "" +#line 22597 "" istrtn = 7; -#line 22529 "" +#line 22598 "" } else { /* Writing concatenation */ -#line 22530 "" +#line 22599 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 22530 "" +#line 22599 "" i__1[0] = 1, a__1[0] = ch__1; -#line 22530 "" +#line 22599 "" i__1[1] = 6, a__1[1] = "xnumt{"; -#line 22530 "" +#line 22599 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 22531 "" +#line 22600 "" *lnote = 11; -#line 22532 "" +#line 22601 "" istrtn = 8; -#line 22533 "" +#line 22602 "" } -#line 22534 "" +#line 22603 "" if (*eloff < .995f) { -#line 22535 "" +#line 22604 "" ici__1.icierr = 0; -#line 22535 "" +#line 22604 "" ici__1.icirnum = 1; -#line 22535 "" +#line 22604 "" ici__1.icirlen = 4; -#line 22535 "" +#line 22604 "" ici__1.iciunit = notexq + (istrtn - 1); -#line 22535 "" +#line 22604 "" ici__1.icifmt = "(i1,f3.2)"; -#line 22535 "" +#line 22604 "" s_wsfi(&ici__1); -#line 22535 "" +#line 22604 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 22535 "" +#line 22604 "" do_fio(&c__1, (char *)&(*eloff), (ftnlen)sizeof(real)); -#line 22535 "" +#line 22604 "" e_wsfi(); -#line 22536 "" +#line 22605 "" } else if (*eloff < 9.995f) { -#line 22537 "" +#line 22606 "" ici__1.icierr = 0; -#line 22537 "" +#line 22606 "" ici__1.icirnum = 1; -#line 22537 "" +#line 22606 "" ici__1.icirlen = 4; -#line 22537 "" +#line 22606 "" ici__1.iciunit = notexq + (istrtn - 1); -#line 22537 "" +#line 22606 "" ici__1.icifmt = "(f4.2)"; -#line 22537 "" +#line 22606 "" s_wsfi(&ici__1); -#line 22537 "" +#line 22606 "" do_fio(&c__1, (char *)&(*eloff), (ftnlen)sizeof(real)); -#line 22537 "" +#line 22606 "" e_wsfi(); -#line 22538 "" +#line 22607 "" } else { -#line 22539 "" +#line 22608 "" ici__1.icierr = 0; -#line 22539 "" +#line 22608 "" ici__1.icirnum = 1; -#line 22539 "" +#line 22608 "" ici__1.icirlen = 5; -#line 22539 "" +#line 22608 "" ici__1.iciunit = notexq + (istrtn - 1); -#line 22539 "" +#line 22608 "" ici__1.icifmt = "(f5.2)"; -#line 22539 "" +#line 22608 "" s_wsfi(&ici__1); -#line 22539 "" +#line 22608 "" do_fio(&c__1, (char *)&(*eloff), (ftnlen)sizeof(real)); -#line 22539 "" +#line 22608 "" e_wsfi(); -#line 22540 "" +#line 22609 "" ++(*lnote); -#line 22541 "" +#line 22610 "" } -#line 22542 "" +#line 22611 "" notefq_(noteq, &lnoten, nlnum, ncmid, (ftnlen)8); /* Writing concatenation */ -#line 22543 "" +#line 22612 "" i__2[0] = *lnote, a__2[0] = notexq; -#line 22543 "" +#line 22612 "" i__2[1] = 1, a__2[1] = "}"; -#line 22543 "" +#line 22612 "" i__2[2] = lnoten, a__2[2] = noteq; -#line 22543 "" +#line 22612 "" s_cat(notexq, a__2, i__2, &c__3, (ftnlen)79); -#line 22544 "" +#line 22613 "" *lnote = *lnote + 1 + lnoten; -#line 22545 "" +#line 22614 "" if (*ntupv < 10) { -#line 22546 "" +#line 22615 "" i__3 = *lnote; -#line 22546 "" +#line 22615 "" ici__1.icierr = 0; -#line 22546 "" +#line 22615 "" ici__1.icirnum = 1; -#line 22546 "" +#line 22615 "" ici__1.icirlen = *lnote + 1 - i__3; -#line 22546 "" +#line 22615 "" ici__1.iciunit = notexq + i__3; -#line 22546 "" +#line 22615 "" ici__1.icifmt = "(i1)"; -#line 22546 "" +#line 22615 "" s_wsfi(&ici__1); -#line 22546 "" +#line 22615 "" do_fio(&c__1, (char *)&(*ntupv), (ftnlen)sizeof(integer)); -#line 22546 "" +#line 22615 "" e_wsfi(); -#line 22547 "" +#line 22616 "" ++(*lnote); -#line 22548 "" +#line 22617 "" } else { /* Writing concatenation */ -#line 22549 "" +#line 22618 "" i__1[0] = *lnote, a__1[0] = notexq; -#line 22549 "" +#line 22618 "" i__1[1] = 1, a__1[1] = "{"; -#line 22549 "" +#line 22618 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 22550 "" +#line 22619 "" i__3 = *lnote + 1; -#line 22550 "" +#line 22619 "" ici__1.icierr = 0; -#line 22550 "" +#line 22619 "" ici__1.icirnum = 1; -#line 22550 "" +#line 22619 "" ici__1.icirlen = *lnote + 3 - i__3; -#line 22550 "" +#line 22619 "" ici__1.iciunit = notexq + i__3; -#line 22550 "" +#line 22619 "" ici__1.icifmt = "(i2)"; -#line 22550 "" +#line 22619 "" s_wsfi(&ici__1); -#line 22550 "" +#line 22619 "" do_fio(&c__1, (char *)&(*ntupv), (ftnlen)sizeof(integer)); -#line 22550 "" +#line 22619 "" e_wsfi(); /* Writing concatenation */ -#line 22551 "" +#line 22620 "" i__1[0] = *lnote + 3, a__1[0] = notexq; -#line 22551 "" +#line 22620 "" i__1[1] = 1, a__1[1] = "}"; -#line 22551 "" +#line 22620 "" s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79); -#line 22552 "" +#line 22621 "" *lnote += 4; -#line 22553 "" +#line 22622 "" } -#line 22554 "" +#line 22623 "" } -#line 22555 "" +#line 22624 "" return 0; } /* putxtn_ */ @@ -55220,97 +55351,97 @@ L5: static integer ip1, ip2; extern /* Subroutine */ int getbuf_(char *, ftnlen); -#line 22569 "" +#line 22638 "" if (! commac_1.mplay) { -#line 22570 "" +#line 22639 "" if (inbuff_1.ilbuf > inbuff_1.nlbuf) { -#line 22570 "" +#line 22639 "" goto L999; -#line 22570 "" +#line 22639 "" } -#line 22571 "" +#line 22640 "" getbuf_(string, string_len); -#line 22572 "" +#line 22641 "" return 0; -#line 22573 "" +#line 22642 "" L999: -#line 22573 "" +#line 22642 "" *lastchar = TRUE_; -#line 22574 "" +#line 22643 "" return 0; -#line 22575 "" +#line 22644 "" } else { /* Play a macro. Set pointer to first character needed in buffer */ -#line 22579 "" +#line 22648 "" if (c1ommac_1.ilmac == c1ommac_1.il1mac[commac_1.macnum - 1]) { /* Getting first line of macro */ -#line 22583 "" +#line 22652 "" ip1 = c1ommac_1.ip1mac[commac_1.macnum - 1]; -#line 22584 "" +#line 22653 "" c1ommac_1.iplmac = ip1 - c1ommac_1.ic1mac[commac_1.macnum - 1]; -#line 22585 "" +#line 22654 "" } else if (c1ommac_1.ilmac <= c1ommac_1.il2mac[commac_1.macnum - 1]) { /* Beyond first line of macro. Advance line-start pointer. */ -#line 22589 "" +#line 22658 "" c1ommac_1.iplmac += inbuff_1.lbuf[c1ommac_1.ilmac - 2]; -#line 22590 "" +#line 22659 "" ip1 = c1ommac_1.iplmac + 1; -#line 22591 "" +#line 22660 "" } else { /* Beyond last line of macro. Terminate it! */ -#line 22595 "" +#line 22664 "" commac_1.mplay = FALSE_; -#line 22596 "" +#line 22665 "" commac_1.endmac = TRUE_; -#line 22597 "" +#line 22666 "" return 0; -#line 22598 "" +#line 22667 "" } -#line 22599 "" +#line 22668 "" if (c1ommac_1.ilmac == c1ommac_1.il2mac[commac_1.macnum - 1]) { /* Getting last line of macro. */ -#line 22603 "" +#line 22672 "" ip2 = c1ommac_1.ip2mac[commac_1.macnum - 1]; -#line 22604 "" +#line 22673 "" } else { /* Getting line before last line of macro. */ -#line 22608 "" +#line 22677 "" ip2 = c1ommac_1.iplmac + inbuff_1.lbuf[c1ommac_1.ilmac - 1]; -#line 22609 "" +#line 22678 "" } -#line 22610 "" +#line 22679 "" if (ip2 >= ip1) { -#line 22611 "" +#line 22680 "" s_copy(string, inbuff_1.bufq + (ip1 - 1), string_len, ip2 - (ip1 - 1)); -#line 22612 "" +#line 22681 "" } else { /* Kluge for when macro start is on a line by itself */ -#line 22616 "" +#line 22685 "" s_copy(string, " ", string_len, (ftnlen)1); -#line 22617 "" +#line 22686 "" } -#line 22618 "" +#line 22687 "" ++c1ommac_1.ilmac; -#line 22619 "" +#line 22688 "" return 0; -#line 22620 "" +#line 22689 "" } -#line 22621 "" +#line 22690 "" return 0; } /* read10_ */ @@ -55339,7 +55470,7 @@ doublereal readin_(char *lineq, integer *iccount, integer *nline, ftnlen getchar_(char *, integer *, char *, ftnlen, ftnlen); /* Fortran I/O blocks */ - static cilist io___1603 = { 0, 6, 0, 0, 0 }; + static cilist io___1605 = { 0, 6, 0, 0, 0 }; @@ -55347,123 +55478,123 @@ doublereal readin_(char *lineq, integer *iccount, integer *nline, ftnlen /* file 10 (jobname.pmx) and increments nline if needed, passes over */ /* comment lines */ -#line 22630 "" +#line 22699 "" L4: -#line 22630 "" +#line 22699 "" if (*iccount == 128) { -#line 22631 "" +#line 22700 "" L1: -#line 22631 "" +#line 22700 "" getbuf_(lineq, (ftnlen)128); -#line 22632 "" +#line 22701 "" ++(*nline); -#line 22633 "" +#line 22702 "" if (*(unsigned char *)lineq == '%') { -#line 22633 "" +#line 22702 "" goto L1; -#line 22633 "" +#line 22702 "" } -#line 22634 "" +#line 22703 "" *iccount = 0; -#line 22635 "" +#line 22704 "" } -#line 22636 "" +#line 22705 "" ++(*iccount); /* Find next non-blank or end of line */ -#line 22640 "" +#line 22709 "" for (*iccount = *iccount; *iccount <= 127; ++(*iccount)) { -#line 22641 "" +#line 22710 "" if (*(unsigned char *)&lineq[*iccount - 1] != ' ') { -#line 22641 "" +#line 22710 "" goto L3; -#line 22641 "" +#line 22710 "" } -#line 22642 "" +#line 22711 "" /* L2: */ -#line 22642 "" +#line 22711 "" } /* If here, need to get a new line */ -#line 22646 "" +#line 22715 "" *iccount = 128; -#line 22647 "" +#line 22716 "" goto L4; -#line 22648 "" +#line 22717 "" L3: /* iccount now points to start of number to read */ -#line 22652 "" +#line 22721 "" i1 = *iccount; -#line 22653 "" +#line 22722 "" L5: -#line 22653 "" +#line 22722 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); /* Remember that getchar increments iccount, then reads a character. */ -#line 22657 "" +#line 22726 "" if (i_indx("0123456789.-", durq, (ftnlen)12, (ftnlen)1) > 0) { -#line 22657 "" +#line 22726 "" goto L5; -#line 22657 "" +#line 22726 "" } -#line 22658 "" +#line 22727 "" i2 = *iccount - 1; -#line 22659 "" +#line 22728 "" if (i2 < i1) { -#line 22660 "" - s_wsle(&io___1603); +#line 22729 "" + s_wsle(&io___1605); /* Writing concatenation */ -#line 22660 "" +#line 22729 "" i__1[0] = 7, a__1[0] = "Found \""; -#line 22660 "" +#line 22729 "" i__1[1] = 1, a__1[1] = durq; -#line 22660 "" +#line 22729 "" i__1[2] = 19, a__1[2] = "\" instead of number"; -#line 22660 "" +#line 22729 "" s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)27); -#line 22660 "" +#line 22729 "" do_lio(&c__9, &c__1, ch__1, (ftnlen)27); -#line 22660 "" +#line 22729 "" e_wsle(); -#line 22661 "" +#line 22730 "" stop1_(); -#line 22662 "" +#line 22731 "" } -#line 22663 "" +#line 22732 "" icf = i2 - i1 + 49; -#line 22664 "" +#line 22733 "" ici__1.icierr = 0; -#line 22664 "" +#line 22733 "" ici__1.iciend = 0; -#line 22664 "" +#line 22733 "" ici__1.icirnum = 1; -#line 22664 "" +#line 22733 "" ici__1.icirlen = i2 - (i1 - 1); -#line 22664 "" +#line 22733 "" ici__1.iciunit = lineq + (i1 - 1); /* Writing concatenation */ -#line 22664 "" +#line 22733 "" i__1[0] = 2, a__1[0] = "(f"; -#line 22664 "" +#line 22733 "" chax_(ch__3, (ftnlen)1, &icf); -#line 22664 "" +#line 22733 "" i__1[1] = 1, a__1[1] = ch__3; -#line 22664 "" +#line 22733 "" i__1[2] = 3, a__1[2] = ".0)"; -#line 22664 "" +#line 22733 "" ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)6), ch__2); -#line 22664 "" +#line 22733 "" s_rsfi(&ici__1); -#line 22664 "" +#line 22733 "" do_fio(&c__1, (char *)&ret_val, (ftnlen)sizeof(real)); -#line 22664 "" +#line 22733 "" e_rsfi(); -#line 22665 "" +#line 22734 "" return ret_val; } /* readin_ */ @@ -55489,160 +55620,160 @@ L5: extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen, ftnlen); -#line 22670 "" +#line 22739 "" i__1 = *iccount; -#line 22670 "" +#line 22739 "" if (i_indx(lineq + i__1, "/", *iccount + 3 - i__1, (ftnlen)1) == 0) { /* No slashes, so use old method */ -#line 22674 "" +#line 22743 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 22675 "" +#line 22744 "" if (*(unsigned char *)durq == '-') { /* Negative numerator is used only to printed; signals vertical slash */ -#line 22679 "" +#line 22748 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 22680 "" +#line 22749 "" *mtrnum = -(*(unsigned char *)durq - 48); -#line 22681 "" +#line 22750 "" } else if (*(unsigned char *)durq == 'o') { /* Numerator is EXACTLY 1 */ -#line 22685 "" +#line 22754 "" *mtrnum = 1; -#line 22686 "" +#line 22755 "" } else { -#line 22687 "" +#line 22756 "" *mtrnum = *(unsigned char *)durq - 48; -#line 22688 "" +#line 22757 "" if (*mtrnum == 1) { /* Numerator is >9 */ -#line 22692 "" +#line 22761 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 22693 "" +#line 22762 "" *mtrnum = *(unsigned char *)durq - 38; -#line 22694 "" +#line 22763 "" } -#line 22695 "" +#line 22764 "" } -#line 22696 "" +#line 22765 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 22697 "" +#line 22766 "" if (*(unsigned char *)durq == 'o') { -#line 22698 "" +#line 22767 "" *mtrden = 1; -#line 22699 "" +#line 22768 "" } else { -#line 22700 "" +#line 22769 "" *mtrden = *(unsigned char *)durq - 48; -#line 22701 "" +#line 22770 "" if (*mtrden == 1) { -#line 22702 "" +#line 22771 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 22703 "" +#line 22772 "" *mtrden = *(unsigned char *)durq - 38; -#line 22704 "" +#line 22773 "" } -#line 22705 "" +#line 22774 "" } -#line 22706 "" +#line 22775 "" } else { /* Expect the form m[n1]/[n2]/[n3]/[n4] . Advance iccount by one from '/' or 'm' */ -#line 22710 "" +#line 22779 "" ++(*iccount); -#line 22711 "" +#line 22780 "" ns = i_indx(lineq + (*iccount - 1), "/", 128 - (*iccount - 1), ( ftnlen)1); -#line 22712 "" +#line 22781 "" ici__1.icierr = 0; -#line 22712 "" +#line 22781 "" ici__1.iciend = 0; -#line 22712 "" +#line 22781 "" ici__1.icirnum = 1; -#line 22712 "" +#line 22781 "" ici__1.icirlen = *iccount + ns - 2 - (*iccount - 1); -#line 22712 "" +#line 22781 "" ici__1.iciunit = lineq + (*iccount - 1); /* Writing concatenation */ -#line 22712 "" +#line 22781 "" i__2[0] = 2, a__1[0] = "(i"; -#line 22712 "" +#line 22781 "" i__1 = ns + 47; -#line 22712 "" +#line 22781 "" chax_(ch__2, (ftnlen)1, &i__1); -#line 22712 "" +#line 22781 "" i__2[1] = 1, a__1[1] = ch__2; -#line 22712 "" +#line 22781 "" i__2[2] = 1, a__1[2] = ")"; -#line 22712 "" +#line 22781 "" ici__1.icifmt = (s_cat(ch__1, a__1, i__2, &c__3, (ftnlen)4), ch__1); -#line 22712 "" +#line 22781 "" s_rsfi(&ici__1); -#line 22712 "" +#line 22781 "" do_fio(&c__1, (char *)&(*mtrnum), (ftnlen)sizeof(integer)); -#line 22712 "" +#line 22781 "" e_rsfi(); /* Reset iccount to start of second integer */ -#line 22716 "" +#line 22785 "" *iccount += ns; /* There must be either a slash or a blank at pos'n 2 or 3 */ -#line 22720 "" +#line 22789 "" ns = i_indx(lineq + (*iccount - 1), "/", (ftnlen)3, (ftnlen)1); -#line 22721 "" +#line 22790 "" if (ns == 0) { -#line 22721 "" +#line 22790 "" ns = i_indx(lineq + (*iccount - 1), " ", (ftnlen)3, (ftnlen)1); -#line 22721 "" +#line 22790 "" } -#line 22722 "" +#line 22791 "" ici__1.icierr = 0; -#line 22722 "" +#line 22791 "" ici__1.iciend = 0; -#line 22722 "" +#line 22791 "" ici__1.icirnum = 1; -#line 22722 "" +#line 22791 "" ici__1.icirlen = *iccount + ns - 2 - (*iccount - 1); -#line 22722 "" +#line 22791 "" ici__1.iciunit = lineq + (*iccount - 1); /* Writing concatenation */ -#line 22722 "" +#line 22791 "" i__2[0] = 2, a__1[0] = "(i"; -#line 22722 "" +#line 22791 "" i__1 = ns + 47; -#line 22722 "" +#line 22791 "" chax_(ch__2, (ftnlen)1, &i__1); -#line 22722 "" +#line 22791 "" i__2[1] = 1, a__1[1] = ch__2; -#line 22722 "" +#line 22791 "" i__2[2] = 1, a__1[2] = ")"; -#line 22722 "" +#line 22791 "" ici__1.icifmt = (s_cat(ch__1, a__1, i__2, &c__3, (ftnlen)4), ch__1); -#line 22722 "" +#line 22791 "" s_rsfi(&ici__1); -#line 22722 "" +#line 22791 "" do_fio(&c__1, (char *)&(*mtrden), (ftnlen)sizeof(integer)); -#line 22722 "" +#line 22791 "" e_rsfi(); /* Set iccount to last character used */ -#line 22726 "" +#line 22795 "" *iccount = *iccount + ns - 1; -#line 22727 "" +#line 22796 "" } -#line 22728 "" +#line 22797 "" return 0; } /* readmeter_ */ @@ -55669,7 +55800,7 @@ L5: char *, ftnlen, ftnlen); /* Fortran I/O blocks */ - static cilist io___1609 = { 0, 6, 0, 0, 0 }; + static cilist io___1611 = { 0, 6, 0, 0, 0 }; @@ -55678,78 +55809,78 @@ L5: /* call this routine *after* detecting a number or decimal. */ /* On exit, durq is next character after end of number. */ -#line 22739 "" +#line 22808 "" i1 = *iccount; -#line 22740 "" +#line 22809 "" L1: -#line 22740 "" +#line 22809 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 22741 "" +#line 22810 "" if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) > 0) { -#line 22741 "" +#line 22810 "" goto L1; -#line 22741 "" +#line 22810 "" } -#line 22742 "" +#line 22811 "" i2 = *iccount - 1; -#line 22743 "" +#line 22812 "" if (i2 < i1) { -#line 22744 "" - s_wsle(&io___1609); +#line 22813 "" + s_wsle(&io___1611); /* Writing concatenation */ -#line 22744 "" +#line 22813 "" i__1[0] = 7, a__1[0] = "Found \""; -#line 22744 "" +#line 22813 "" i__1[1] = 1, a__1[1] = durq; -#line 22744 "" +#line 22813 "" i__1[2] = 19, a__1[2] = "\" instead of number"; -#line 22744 "" +#line 22813 "" s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)27); -#line 22744 "" +#line 22813 "" do_lio(&c__9, &c__1, ch__1, (ftnlen)27); -#line 22744 "" +#line 22813 "" e_wsle(); -#line 22745 "" +#line 22814 "" stop1_(); -#line 22746 "" +#line 22815 "" } else if (*(unsigned char *)&lineq[i1 - 1] == '.' && *(unsigned char *)& lineq[i2 - 1] == '.') { -#line 22747 "" +#line 22816 "" --i2; -#line 22748 "" +#line 22817 "" --(*iccount); -#line 22749 "" +#line 22818 "" } -#line 22750 "" +#line 22819 "" icf = i2 - i1 + 49; -#line 22751 "" +#line 22820 "" ici__1.icierr = 0; -#line 22751 "" +#line 22820 "" ici__1.iciend = 0; -#line 22751 "" +#line 22820 "" ici__1.icirnum = 1; -#line 22751 "" +#line 22820 "" ici__1.icirlen = i2 - (i1 - 1); -#line 22751 "" +#line 22820 "" ici__1.iciunit = lineq + (i1 - 1); /* Writing concatenation */ -#line 22751 "" +#line 22820 "" i__1[0] = 2, a__1[0] = "(f"; -#line 22751 "" +#line 22820 "" chax_(ch__3, (ftnlen)1, &icf); -#line 22751 "" +#line 22820 "" i__1[1] = 1, a__1[1] = ch__3; -#line 22751 "" +#line 22820 "" i__1[2] = 3, a__1[2] = ".0)"; -#line 22751 "" +#line 22820 "" ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)6), ch__2); -#line 22751 "" +#line 22820 "" s_rsfi(&ici__1); -#line 22751 "" +#line 22820 "" do_fio(&c__1, (char *)&(*fnum), (ftnlen)sizeof(real)); -#line 22751 "" +#line 22820 "" e_rsfi(); -#line 22752 "" +#line 22821 "" return 0; } /* readnum_ */ @@ -55766,42 +55897,42 @@ L1: static integer ibase; /* Fortran I/O blocks */ - static cilist io___1612 = { 0, 6, 0, 0, 0 }; - static cilist io___1613 = { 0, 6, 0, 0, 0 }; - static cilist io___1614 = { 0, 15, 0, "(/,a)", 0 }; + static cilist io___1614 = { 0, 6, 0, 0, 0 }; + static cilist io___1615 = { 0, 6, 0, 0, 0 }; + static cilist io___1616 = { 0, 15, 0, "(/,a)", 0 }; /* Sets iwidbits of isdata, shifted by ishift, to ivalue */ -#line 22758 "" +#line 22827 "" ibase = pow_ii(&c__2, iwidbit) - 1; -#line 22759 "" +#line 22828 "" if (*ivalue > ibase) { -#line 22760 "" - s_wsle(&io___1612); -#line 22760 "" +#line 22829 "" + s_wsle(&io___1614); +#line 22829 "" e_wsle(); -#line 22761 "" - s_wsle(&io___1613); -#line 22761 "" +#line 22830 "" + s_wsle(&io___1615); +#line 22830 "" do_lio(&c__9, &c__1, "WARNING in setbits: ivalue > ibase", (ftnlen)34) ; -#line 22761 "" +#line 22830 "" e_wsle(); -#line 22762 "" - s_wsfe(&io___1614); -#line 22762 "" +#line 22831 "" + s_wsfe(&io___1616); +#line 22831 "" do_fio(&c__1, "WARNING in setbits: ivalue > ibase", (ftnlen)34); -#line 22762 "" +#line 22831 "" e_wsfe(); -#line 22763 "" +#line 22832 "" } -#line 22764 "" +#line 22833 "" *isdata = ~ lbit_shift(ibase, *ishift) & *isdata; -#line 22765 "" +#line 22834 "" *isdata |= lbit_shift(*ivalue, *ishift); -#line 22766 "" +#line 22835 "" return 0; } /* setbits_ */ @@ -55823,97 +55954,97 @@ L1: /* The MEAN SQUARE slope algorithm */ -#line 22788 "" +#line 22857 "" /* Parameter adjustments */ -#line 22788 "" +#line 22857 "" --ipb; -#line 22788 "" +#line 22857 "" --xelsk; -#line 22788 "" +#line 22857 "" -#line 22788 "" +#line 22857 "" /* Function Body */ -#line 22788 "" +#line 22857 "" ibc = all_1.ibmcnt[commvl_1.ivx - 1]; -#line 22789 "" +#line 22858 "" sumxx = 0.f; -#line 22790 "" +#line 22859 "" sumxy = 0.f; -#line 22791 "" +#line 22860 "" i__1 = *nnb; -#line 22791 "" +#line 22860 "" for (inb = 1; inb <= i__1; ++inb) { /* Computing 2nd power */ -#line 22792 "" +#line 22861 "" r__1 = xelsk[inb]; -#line 22792 "" +#line 22861 "" sumxx += r__1 * r__1; -#line 22793 "" +#line 22862 "" sumxy += xelsk[inb] * all_1.nolev[commvl_1.ivx + ipb[inb] * 24 - 25]; -#line 22794 "" +#line 22863 "" /* L2: */ -#line 22794 "" +#line 22863 "" } -#line 22795 "" +#line 22864 "" delta = *nnb * sumxx - *sumx * *sumx; -#line 22796 "" +#line 22865 "" em = (*nnb * sumxy - *sumx * *sumy) / delta; -#line 22797 "" +#line 22866 "" r__1 = em * .5f * all_1.slfac; -#line 22797 "" +#line 22866 "" *islope = i_nint(&r__1); -#line 22798 "" +#line 22867 "" if (abs(*islope) > 9) { -#line 22798 "" +#line 22867 "" *islope = i_sign(&c__9, islope); -#line 22798 "" +#line 22867 "" } -#line 22799 "" +#line 22868 "" beta = (*sumy - *islope / all_1.slfac * *sumx) / *nnb; -#line 22800 "" +#line 22869 "" *nolev1 = i_nint(&beta); /* Check if any stems are too short */ -#line 22804 "" +#line 22873 "" smin = 100.f; -#line 22805 "" +#line 22874 "" iul = -1; -#line 22806 "" +#line 22875 "" if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u') { -#line 22806 "" +#line 22875 "" iul = 1; -#line 22806 "" +#line 22875 "" } -#line 22807 "" +#line 22876 "" i__1 = *nnb; -#line 22807 "" +#line 22876 "" for (inb = 1; inb <= i__1; ++inb) { -#line 22808 "" +#line 22877 "" ybeam = *nolev1 + iul * all_1.stemlen + *islope * xelsk[inb] / all_1.slfac; -#line 22809 "" +#line 22878 "" ynote = (real) all_1.nolev[commvl_1.ivx + ipb[inb] * 24 - 25]; /* Computing MIN */ -#line 22810 "" +#line 22879 "" r__1 = smin, r__2 = iul * (ybeam - ynote); -#line 22810 "" +#line 22879 "" smin = dmin(r__1,r__2); -#line 22811 "" +#line 22880 "" /* L4: */ -#line 22811 "" +#line 22880 "" } -#line 22812 "" +#line 22881 "" if (smin < all_1.stemmin) { -#line 22813 "" +#line 22882 "" deficit = all_1.stemmin - smin; -#line 22814 "" +#line 22883 "" r__1 = *nolev1 + iul * deficit; -#line 22814 "" +#line 22883 "" *nolev1 = i_nint(&r__1); -#line 22815 "" +#line 22884 "" } -#line 22816 "" +#line 22885 "" return 0; } /* setbm2_ */ @@ -55941,168 +56072,168 @@ L1: ftnlen), g1etchar_(char *, integer *, char *, ftnlen, ftnlen); /* Fortran I/O blocks */ - static cilist io___1627 = { 0, 6, 0, 0, 0 }; - static cilist io___1628 = { 0, 6, 0, 0, 0 }; static cilist io___1629 = { 0, 6, 0, 0, 0 }; + static cilist io___1630 = { 0, 6, 0, 0, 0 }; + static cilist io___1631 = { 0, 6, 0, 0, 0 }; /* Macro action */ -#line 22829 "" +#line 22898 "" g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 22830 "" +#line 22899 "" if (*(unsigned char *)charq == 'S' && *ivx != 1) { -#line 22831 "" - s_wsle(&io___1627); -#line 22831 "" +#line 22900 "" + s_wsle(&io___1629); +#line 22900 "" e_wsle(); -#line 22832 "" - s_wsle(&io___1628); -#line 22832 "" +#line 22901 "" + s_wsle(&io___1630); +#line 22901 "" e_wsle(); -#line 22833 "" - s_wsle(&io___1629); -#line 22833 "" +#line 22902 "" + s_wsle(&io___1631); +#line 22902 "" do_lio(&c__9, &c__1, "*********WARNING*********", (ftnlen)25); -#line 22833 "" +#line 22902 "" e_wsle(); -#line 22834 "" +#line 22903 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 22834 "" +#line 22903 "" errmsg_(lineq, iccount, &i__1, "\"MS...\" only put in parts by scor2"\ "prt if in voice #1!", (ftnlen)128, (ftnlen)53); -#line 22836 "" +#line 22905 "" } -#line 22837 "" +#line 22906 "" if (i_indx("RSP ", charq, (ftnlen)4, (ftnlen)1) == 0) { -#line 22838 "" +#line 22907 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 22838 "" +#line 22907 "" errmsg_(lineq, iccount, &i__1, "Illegal character after \"M\" (macro"\ ")!", (ftnlen)128, (ftnlen)36); -#line 22840 "" +#line 22909 "" stop1_(); -#line 22841 "" +#line 22910 "" } else if (*(unsigned char *)charq != ' ') { /* Record or playback a macro. Get the number of the macro. */ -#line 22845 "" +#line 22914 "" g1etchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 22846 "" +#line 22915 "" if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) { -#line 22847 "" +#line 22916 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 22847 "" +#line 22916 "" errmsg_(lineq, iccount, &i__1, "Must input number after \"MR\""\ ",\"MP\", or \"MS\"!", (ftnlen)128, (ftnlen)43); -#line 22849 "" +#line 22918 "" stop1_(); -#line 22850 "" +#line 22919 "" } -#line 22851 "" +#line 22920 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 22852 "" +#line 22921 "" commac_1.macnum = i_nint(&fnum); -#line 22853 "" +#line 22922 "" if (*(unsigned char *)durq != ' ') { -#line 22854 "" +#line 22923 "" i__1 = *ibarcnt - *ibaroff + *nbars + 1; -#line 22854 "" +#line 22923 "" errmsg_(lineq, iccount, &i__1, "Macro number must be followed by"\ " a blank!", (ftnlen)128, (ftnlen)41); -#line 22856 "" +#line 22925 "" stop1_(); -#line 22857 "" +#line 22926 "" } -#line 22858 "" +#line 22927 "" if (i_indx("RS", charq, (ftnlen)2, (ftnlen)1) > 0) { /* Record or save a macro */ -#line 22862 "" +#line 22931 "" if (commac_1.macnum < 1 || commac_1.macnum > 20) { -#line 22863 "" +#line 22932 "" i__1 = *iccount - 1; -#line 22863 "" +#line 22932 "" i__2 = *ibarcnt - *ibaroff + *nbars + 1; -#line 22863 "" +#line 22932 "" errmsg_(lineq, &i__1, &i__2, "Macro number not in range 1-20!" , (ftnlen)128, (ftnlen)31); -#line 22865 "" +#line 22934 "" stop1_(); /* else if (btest(macuse,macnum)) then */ /* print* */ /* print*,'WARNING: Redefining macro # ',macnum */ -#line 22869 "" +#line 22938 "" } -#line 22870 "" +#line 22939 "" commac_1.macuse = bit_set(commac_1.macuse,commac_1.macnum); -#line 22871 "" +#line 22940 "" if (*(unsigned char *)charq == 'R') { -#line 22872 "" +#line 22941 "" m1rec1_(lineq, iccount, ibarcnt, ibaroff, nbars, &ndxm, ( ftnlen)128); -#line 22873 "" +#line 22942 "" } else if (*(unsigned char *)charq == 'S') { /* Save (Record but don't activate) */ -#line 22877 "" +#line 22946 "" L1: -#line 22877 "" +#line 22946 "" m1rec1_(lineq, iccount, ibarcnt, ibaroff, nbars, &ndxm, ( ftnlen)128); -#line 22878 "" +#line 22947 "" if (commac_1.mrecord) { -#line 22879 "" +#line 22948 "" getbuf_(lineq, (ftnlen)128); -#line 22880 "" +#line 22949 "" ++(*nline); -#line 22881 "" +#line 22950 "" *iccount = 0; -#line 22882 "" +#line 22951 "" goto L1; -#line 22883 "" +#line 22952 "" } -#line 22884 "" +#line 22953 "" *iccount = *iccount + ndxm + 1; -#line 22885 "" +#line 22954 "" } -#line 22886 "" +#line 22955 "" } else { /* Playback the macro */ -#line 22890 "" +#line 22959 "" if (! bit_test(commac_1.macuse,commac_1.macnum)) { -#line 22891 "" +#line 22960 "" i__1 = *iccount - 1; -#line 22891 "" +#line 22960 "" i__2 = *ibarcnt - *ibaroff + *nbars + 1; -#line 22891 "" +#line 22960 "" errmsg_(lineq, &i__1, &i__2, "Cannot play a macro that has n"\ "ot been recorded!", (ftnlen)128, (ftnlen)47); -#line 22893 "" +#line 22962 "" stop1_(); -#line 22894 "" +#line 22963 "" } -#line 22895 "" +#line 22964 "" commac_1.icchold = *iccount; -#line 22896 "" +#line 22965 "" s_copy(commac_1.lnholdq, lineq, (ftnlen)128, (ftnlen)128); -#line 22897 "" +#line 22966 "" *iccount = 128; -#line 22898 "" +#line 22967 "" commac_1.mplay = TRUE_; -#line 22899 "" +#line 22968 "" c1ommac_1.ilmac = c1ommac_1.il1mac[commac_1.macnum - 1]; -#line 22900 "" +#line 22969 "" } -#line 22901 "" +#line 22970 "" } -#line 22902 "" +#line 22971 "" return 0; } /* setmac_ */ @@ -56117,58 +56248,58 @@ L1: /* 3: triple w/ denom=8, subdivide in groups of 3 8ths */ /* Note that lenbar is set at top or when 'm' symbol is read in getnote */ -#line 22913 "" +#line 22982 "" if (*mtrdenl == 4) { -#line 22914 "" +#line 22983 "" if (*mtrnuml % 3 == 0) { -#line 22915 "" +#line 22984 "" *ibmtyp = 2; -#line 22916 "" +#line 22985 "" *ibmrep = *mtrnuml / 3; -#line 22917 "" +#line 22986 "" } else { -#line 22918 "" +#line 22987 "" *ibmtyp = 1; -#line 22919 "" +#line 22988 "" *ibmrep = *mtrnuml / 2; -#line 22920 "" +#line 22989 "" } -#line 22921 "" +#line 22990 "" } else if (*mtrdenl == 2) { -#line 22922 "" +#line 22991 "" *ibmtyp = 1; -#line 22923 "" +#line 22992 "" if (*mtrnuml == 3) { -#line 22924 "" +#line 22993 "" *ibmrep = 3; -#line 22925 "" +#line 22994 "" } else { -#line 22926 "" +#line 22995 "" *ibmrep = (*mtrnuml << 1) / *mtrdenl; -#line 22927 "" +#line 22996 "" } -#line 22928 "" +#line 22997 "" } else { /* Assumes mtrdenl=8 and 3/8, 6/8, 9/8, or 12/8 */ -#line 22932 "" +#line 23001 "" *ibmtyp = 3; -#line 22933 "" +#line 23002 "" *ibmrep = *mtrnuml / 3; -#line 22934 "" +#line 23003 "" } /* Reset so we don't keep writing new meters */ -#line 22938 "" +#line 23007 "" *mtrnuml = 0; /* Prevent ibmrep=0. Needed for odd bars, e.g. 1/8, where beams don't matter */ -#line 22942 "" +#line 23011 "" *ibmrep = max(*ibmrep,1); -#line 22943 "" +#line 23012 "" return 0; } /* setmeter_ */ @@ -56213,86 +56344,86 @@ L1: /* The outer combo algorithm */ -#line 22977 "" +#line 23046 "" /* Parameter adjustments */ -#line 22977 "" +#line 23046 "" --ipb; -#line 22977 "" +#line 23046 "" --xelsk; -#line 22977 "" +#line 23046 "" -#line 22977 "" +#line 23046 "" /* Function Body */ -#line 22977 "" +#line 23046 "" ibc = all_1.ibmcnt[commvl_1.ivx - 1]; -#line 22978 "" +#line 23047 "" comxtup_2.nxtinbm[commvl_1.ivx - 1] = 0; -#line 22979 "" +#line 23048 "" n1 = comipl2_1.ipl2[commvl_1.ivx + all_1.ibm1[commvl_1.ivx + ibc * 24 - 25] * 24 - 25]; /* Initialize counters used in this subroutine, and then later during actual */ /* beam drawing, to count later segments of single-slope beam groups */ -#line 22984 "" +#line 23053 "" comxtup_2.nssb[commvl_1.ivx - 1] = 0; -#line 22985 "" +#line 23054 "" comxtup_2.issb[commvl_1.ivx - 1] = 0; /* Set flag for xtup beam starting with rest (no others can start with rest) */ -#line 22989 "" +#line 23058 "" if (bit_test(all_1.irest[commvl_1.ivx + all_1.ipo[n1 - 1] * 24 - 25],0)) { -#line 22989 "" +#line 23058 "" *ixrest = 1; -#line 22989 "" +#line 23058 "" } /* Figure how many elemskips to each note. Use the list, counting only non-rests. */ -#line 22993 "" +#line 23062 "" eskz0 = all_1.eskz[commvl_1.ivx + all_1.ibm1[commvl_1.ivx + ibc * 24 - 25] * 24 - 25]; -#line 22994 "" +#line 23063 "" *nnb = 0; -#line 22995 "" +#line 23064 "" *sumx = 0.f; -#line 22996 "" +#line 23065 "" *sumy = 0.f; -#line 22997 "" +#line 23066 "" ipxt1 = 0; -#line 22998 "" +#line 23067 "" iplast = all_1.ibm2[commvl_1.ivx + ibc * 24 - 25]; -#line 22999 "" +#line 23068 "" i__1 = iplast; -#line 22999 "" +#line 23068 "" for (ip = all_1.ibm1[commvl_1.ivx + ibc * 24 - 25]; ip <= i__1; ++ip) { -#line 23000 "" +#line 23069 "" if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) { -#line 23001 "" +#line 23070 "" ++(*nnb); -#line 23002 "" +#line 23071 "" ipb[*nnb] = ip; -#line 23003 "" +#line 23072 "" xelsk[*nnb] = all_1.eskz[commvl_1.ivx + ip * 24 - 25] - eskz0; -#line 23004 "" +#line 23073 "" *sumx += xelsk[*nnb]; -#line 23005 "" +#line 23074 "" *sumy += all_1.nolev[commvl_1.ivx + ipb[*nnb] * 24 - 25]; -#line 23006 "" +#line 23075 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],21)) { /* This is the starting note of later segment of single-slope beam group */ /* Temporarily store ip here. */ -#line 23011 "" +#line 23080 "" ++comxtup_2.nssb[commvl_1.ivx - 1]; -#line 23012 "" +#line 23081 "" comxtup_2.lev1ssb[commvl_1.ivx + comxtup_2.nssb[commvl_1.ivx - 1] * 24 - 25] = *nnb; -#line 23013 "" +#line 23082 "" } -#line 23014 "" +#line 23083 "" } /* New xtup stuff here. Final object is to get distance from start of xtup */ @@ -56300,223 +56431,223 @@ L1: /* number. ntupv is number of notes in xtup, and is only used to get */ /* eloff, the distance from start of xtup to the number. */ -#line 23021 "" +#line 23090 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],18)) { -#line 23021 "" +#line 23090 "" ++ndoub; -#line 23021 "" +#line 23090 "" } -#line 23022 "" +#line 23091 "" if (ipxt1 == 0 && all_1.nodur[commvl_1.ivx + ip * 24 - 25] == 0) { /* Xtup is starting here */ -#line 23026 "" +#line 23095 "" ++comxtup_2.nxtinbm[commvl_1.ivx - 1]; -#line 23027 "" +#line 23096 "" ipxt1 = ip; -#line 23028 "" +#line 23097 "" if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],18)) { -#line 23029 "" +#line 23098 "" ndoub = 1; -#line 23030 "" +#line 23099 "" } else { -#line 23031 "" +#line 23100 "" ndoub = 0; -#line 23032 "" +#line 23101 "" } -#line 23033 "" +#line 23102 "" } else if (ipxt1 > 0 && all_1.nodur[commvl_1.ivx + ip * 24 - 25] > 0) { /* Xtup ends here. Set total number of notes in xtup. */ -#line 23037 "" +#line 23106 "" comxtup_2.ntupv[commvl_1.ivx + comxtup_2.nxtinbm[commvl_1.ivx - 1] * 24 - 25] = ip + 1 - ipxt1; /* Set printed number for embedded xtup. */ -#line 23041 "" +#line 23110 "" comxtup_2.mtupv[commvl_1.ivx + comxtup_2.nxtinbm[commvl_1.ivx - 1] * 24 - 25] = comxtup_2.ntupv[commvl_1.ivx + comxtup_2.nxtinbm[commvl_1.ivx - 1] * 24 - 25] + ndoub; /* Middle note of xtup if ntupv odd, note to left of gap if even. */ -#line 23045 "" +#line 23114 "" ipxtmid = (ip + ipxt1) / 2; -#line 23046 "" +#line 23115 "" comxtup_2.eloff[commvl_1.ivx + comxtup_2.nxtinbm[commvl_1.ivx - 1] * 24 - 25] = comeskz2_1.eskz2[commvl_1.ivx + ipxtmid * 24 - 25] - comeskz2_1.eskz2[commvl_1.ivx + ipxt1 * 24 - 25]; -#line 23047 "" +#line 23116 "" if (comxtup_2.ntupv[commvl_1.ivx + comxtup_2.nxtinbm[commvl_1.ivx - 1] * 24 - 25] % 2 == 0) { -#line 23047 "" +#line 23116 "" comxtup_2.eloff[commvl_1.ivx + comxtup_2.nxtinbm[commvl_1.ivx - 1] * 24 - 25] += (comeskz2_1.eskz2[commvl_1.ivx + ( ipxtmid + 1) * 24 - 25] - comeskz2_1.eskz2[ commvl_1.ivx + ipxtmid * 24 - 25]) * .5f; -#line 23047 "" +#line 23116 "" } -#line 23050 "" +#line 23119 "" ipxt1 = 0; -#line 23051 "" +#line 23120 "" } -#line 23052 "" +#line 23121 "" /* L2: */ -#line 23052 "" +#line 23121 "" } /* Reset nxtinbm for use as counter as #'s are posted by putxtn(..) */ -#line 23056 "" +#line 23125 "" comxtup_2.nxtinbm[commvl_1.ivx - 1] = 0; -#line 23057 "" +#line 23126 "" *smed = 0.f; -#line 23058 "" +#line 23127 "" if (! bit_test(all_1.islur[commvl_1.ivx + ipb[1] * 24 - 25],2)) { /* No forced 0 slope */ -#line 23062 "" +#line 23131 "" if (*nnb == 1) { -#line 23062 "" +#line 23131 "" goto L6; -#line 23062 "" +#line 23131 "" } -#line 23063 "" +#line 23132 "" nsc = 0; -#line 23064 "" +#line 23133 "" i__1 = *nnb - 1; -#line 23064 "" +#line 23133 "" for (inb = 1; inb <= i__1; ++inb) { -#line 23065 "" +#line 23134 "" i__2 = *nnb; -#line 23065 "" +#line 23134 "" for (jnb = inb + 1; jnb <= i__2; ++jnb) { -#line 23066 "" +#line 23135 "" ++nsc; -#line 23067 "" +#line 23136 "" slope[nsc - 1] = (all_1.nolev[commvl_1.ivx + ipb[jnb] * 24 - 25] - all_1.nolev[commvl_1.ivx + ipb[inb] * 24 - 25]) / (xelsk[jnb] - xelsk[inb]); -#line 23069 "" +#line 23138 "" if ((r__1 = slope[nsc - 1], dabs(r__1)) < 1e-4f) { -#line 23070 "" +#line 23139 "" ++nsc; -#line 23071 "" +#line 23140 "" slope[nsc - 1] = slope[nsc - 2]; -#line 23072 "" +#line 23141 "" ++nsc; -#line 23073 "" +#line 23142 "" slope[nsc - 1] = slope[nsc - 2]; -#line 23074 "" +#line 23143 "" } -#line 23075 "" +#line 23144 "" /* L5: */ -#line 23075 "" +#line 23144 "" } -#line 23075 "" +#line 23144 "" } -#line 23076 "" +#line 23145 "" if (nsc == 1) { -#line 23077 "" +#line 23146 "" *smed = slope[0]; -#line 23078 "" +#line 23147 "" goto L6; -#line 23079 "" +#line 23148 "" } -#line 23080 "" +#line 23149 "" nscmid = nsc / 2 + 1; -#line 23081 "" +#line 23150 "" i__2 = nscmid; -#line 23081 "" +#line 23150 "" for (i__ = 1; i__ <= i__2; ++i__) { -#line 23082 "" +#line 23151 "" i__1 = nsc; -#line 23082 "" +#line 23151 "" for (j = i__ + 1; j <= i__1; ++j) { -#line 23083 "" +#line 23152 "" if (slope[j - 1] < slope[i__ - 1]) { -#line 23084 "" +#line 23153 "" t = slope[j - 1]; -#line 23085 "" +#line 23154 "" slope[j - 1] = slope[i__ - 1]; -#line 23086 "" +#line 23155 "" slope[i__ - 1] = t; -#line 23087 "" +#line 23156 "" } -#line 23088 "" +#line 23157 "" /* L7: */ -#line 23088 "" +#line 23157 "" } -#line 23088 "" +#line 23157 "" } -#line 23089 "" +#line 23158 "" *smed = slope[nscmid - 1]; -#line 23090 "" +#line 23159 "" if (nsc == nsc / 2 << 1) { /* Even number of slopes in the list, so median is ambiguous */ -#line 23094 "" +#line 23163 "" if ((r__2 = slope[nscmid - 2], dabs(r__2)) < (r__1 = slope[nscmid - 1], dabs(r__1)) - comtol_1.tol) { /* Lower-numbered one is truly less in absolute value, so use it */ -#line 23098 "" +#line 23167 "" *smed = slope[nscmid - 2]; -#line 23099 "" +#line 23168 "" } else if ((r__1 = slope[nscmid - 2] + slope[nscmid - 1], dabs( r__1)) < comtol_1.tol) { /* Two slopes are effectively equal. Take the one with sign of the average */ -#line 23103 "" +#line 23172 "" sum = 0.f; -#line 23104 "" +#line 23173 "" i__1 = nsc; -#line 23104 "" +#line 23173 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 23105 "" +#line 23174 "" sum += slope[i__ - 1]; -#line 23106 "" +#line 23175 "" /* L1: */ -#line 23106 "" +#line 23175 "" } -#line 23107 "" +#line 23176 "" *smed = r_sign(smed, &sum); -#line 23108 "" +#line 23177 "" } -#line 23109 "" +#line 23178 "" } -#line 23110 "" +#line 23179 "" L6: -#line 23111 "" +#line 23180 "" r__1 = *smed * .5f * all_1.slfac; -#line 23111 "" +#line 23180 "" comxtup_2.islope[commvl_1.ivx - 1] = i_nint(&r__1); -#line 23112 "" +#line 23181 "" if ((i__1 = comxtup_2.islope[commvl_1.ivx - 1], abs(i__1)) > 9) { -#line 23112 "" +#line 23181 "" comxtup_2.islope[commvl_1.ivx - 1] = i_sign(&c__9, & comxtup_2.islope[commvl_1.ivx - 1]); -#line 23112 "" +#line 23181 "" } -#line 23114 "" +#line 23183 "" } else { /* Forced horizontal beam */ -#line 23118 "" +#line 23187 "" comxtup_2.islope[commvl_1.ivx - 1] = 0; -#line 23119 "" +#line 23188 "" } -#line 23120 "" +#line 23189 "" beta = (*sumy - comxtup_2.islope[commvl_1.ivx - 1] / all_1.slfac * *sumx) / *nnb; @@ -56524,92 +56655,92 @@ L6: /* as is for placing xtup number and/or bracket, then reset it for start of */ /* actual beam */ -#line 23126 "" +#line 23195 "" comxtup_2.nolev1[commvl_1.ivx - 1] = i_nint(&beta); /* Check if any stems are too short */ -#line 23130 "" +#line 23199 "" smin = 100.f; -#line 23131 "" +#line 23200 "" iul = -1; -#line 23132 "" +#line 23201 "" if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u') { -#line 23132 "" +#line 23201 "" iul = 1; -#line 23132 "" +#line 23201 "" } -#line 23133 "" +#line 23202 "" ssq = 0.f; -#line 23134 "" +#line 23203 "" syb = 0.f; /* yb1 = nolev1(ivx)+iul*(stemlen+bmhgt*(mult(ivx,ipb(1))-1)) */ -#line 23136 "" +#line 23205 "" yb1 = comxtup_2.nolev1[commvl_1.ivx - 1] + iul * (all_1.stemlen + combmh_1.bmhgt * ((15 & all_1.mult[commvl_1.ivx + ipb[1] * 24 - 25]) - 9)); -#line 23138 "" +#line 23207 "" i__1 = *nnb; -#line 23138 "" +#line 23207 "" for (inb = 1; inb <= i__1; ++inb) { -#line 23139 "" +#line 23208 "" ybeam = yb1 + comxtup_2.islope[commvl_1.ivx - 1] * xelsk[inb] / all_1.slfac - iul * combmh_1.bmhgt * ((15 & all_1.mult[ commvl_1.ivx + ipb[inb] * 24 - 25]) - 9); /* * -iul*bmhgt*(mult(ivx,ipb(inb))-1) */ -#line 23142 "" +#line 23211 "" syb += ybeam; -#line 23143 "" +#line 23212 "" ynote = (real) all_1.nolev[commvl_1.ivx + ipb[inb] * 24 - 25]; -#line 23144 "" +#line 23213 "" off = ybeam - ynote; -#line 23145 "" +#line 23214 "" if (inb == 1) { -#line 23146 "" +#line 23215 "" off1 = off; -#line 23147 "" +#line 23216 "" } else if (inb == *nnb) { -#line 23148 "" +#line 23217 "" off2 = off; -#line 23149 "" +#line 23218 "" } -#line 23150 "" +#line 23219 "" ssq += off * off; /* Computing MIN */ -#line 23151 "" +#line 23220 "" r__1 = smin, r__2 = iul * off; -#line 23151 "" +#line 23220 "" smin = dmin(r__1,r__2); -#line 23152 "" +#line 23221 "" /* L4: */ -#line 23152 "" +#line 23221 "" } -#line 23153 "" +#line 23222 "" dnolev = 0.f; -#line 23154 "" +#line 23223 "" if (smin < all_1.stemmin) { -#line 23155 "" +#line 23224 "" deficit = all_1.stemmin - smin; -#line 23156 "" +#line 23225 "" nolevo = comxtup_2.nolev1[commvl_1.ivx - 1]; -#line 23157 "" +#line 23226 "" r__1 = comxtup_2.nolev1[commvl_1.ivx - 1] + iul * deficit; -#line 23157 "" +#line 23226 "" comxtup_2.nolev1[commvl_1.ivx - 1] = i_nint(&r__1); -#line 23158 "" +#line 23227 "" dnolev = (real) (comxtup_2.nolev1[commvl_1.ivx - 1] - nolevo); -#line 23159 "" +#line 23228 "" off1 += dnolev; -#line 23160 "" +#line 23229 "" off2 += dnolev; -#line 23161 "" +#line 23230 "" } /* Computing 2nd power */ -#line 23162 "" +#line 23231 "" r__1 = dnolev; -#line 23162 "" +#line 23231 "" ssq = ssq + dnolev * 2 * (syb - *sumy) + r__1 * r__1; -#line 23163 "" +#line 23232 "" if (! comxtup_2.vxtup[commvl_1.ivx - 1] && sqrt(ssq / *nnb) > all_1.stemmax && (dabs(off1) < all_1.stemmax || dabs(off2) < all_1.stemmax) && ! bit_test(all_1.islur[commvl_1.ivx + ipb[1] * @@ -56619,82 +56750,82 @@ L6: /* The penultimate check is that first and last stems aren't both excessive. */ /* The last check is that a 0 slope has not been forced */ -#line 23171 "" +#line 23240 "" setbm2_(&xelsk[1], nnb, sumx, sumy, &ipb[1], &comxtup_2.islope[ commvl_1.ivx - 1], &comxtup_2.nolev1[commvl_1.ivx - 1]); -#line 23172 "" +#line 23241 "" } /* Check if beam starts or ends too high or low. */ /* xboff = bmhgt*(mult(ivx,ipb(1))-1) */ -#line 23177 "" +#line 23246 "" xboff = combmh_1.bmhgt * ((15 & all_1.mult[commvl_1.ivx + ipb[1] * 24 - 25]) - 9); -#line 23178 "" +#line 23247 "" l1ng = iul * (comxtup_2.nolev1[commvl_1.ivx - 1] - ncmid_(&all_1.iv, &ipb[ 1])) + xboff + 7 < 0.f; -#line 23179 "" +#line 23248 "" xnolev2 = comxtup_2.nolev1[commvl_1.ivx - 1] + comxtup_2.islope[ commvl_1.ivx - 1] / all_1.slfac * xelsk[*nnb]; -#line 23180 "" +#line 23249 "" l2ng = iul * (xnolev2 - ncmid_(&all_1.iv, &ipb[*nnb])) + xboff + 7 < 0.f; -#line 23181 "" +#line 23250 "" if (l1ng || l2ng) { /* Need to correct start or stop, also slope */ -#line 23185 "" +#line 23254 "" if (l1ng) { -#line 23186 "" +#line 23255 "" r__1 = ncmid_(&all_1.iv, &ipb[1]) - (xboff + 7.f) * iul; -#line 23186 "" +#line 23255 "" comxtup_2.nolev1[commvl_1.ivx - 1] = i_nint(&r__1); -#line 23187 "" +#line 23256 "" } -#line 23188 "" +#line 23257 "" if (l2ng) { -#line 23189 "" +#line 23258 "" r__1 = ncmid_(&all_1.iv, &ipb[*nnb]) - (xboff + 7.f) * iul; -#line 23189 "" +#line 23258 "" xnolev2 = (real) i_nint(&r__1); -#line 23190 "" +#line 23259 "" } /* Since one or the other end has changed, need to change slope */ -#line 23194 "" +#line 23263 "" if (! bit_test(all_1.islur[commvl_1.ivx + ipb[1] * 24 - 25],2)) { -#line 23194 "" +#line 23263 "" r__1 = all_1.slfac * (xnolev2 - comxtup_2.nolev1[commvl_1.ivx - 1] ) / xelsk[*nnb]; -#line 23194 "" +#line 23263 "" comxtup_2.islope[commvl_1.ivx - 1] = i_nint(&r__1); -#line 23194 "" +#line 23263 "" } -#line 23196 "" +#line 23265 "" } -#line 23197 "" +#line 23266 "" if (comxtup_2.nssb[commvl_1.ivx - 1] > 0) { /* This is a single-slope beam group. Store start heights for later segs. */ -#line 23201 "" +#line 23270 "" i__1 = comxtup_2.nssb[commvl_1.ivx - 1]; -#line 23201 "" +#line 23270 "" for (issbs = 1; issbs <= i__1; ++issbs) { -#line 23202 "" +#line 23271 "" comxtup_2.lev1ssb[commvl_1.ivx + issbs * 24 - 25] = comxtup_2.nolev1[commvl_1.ivx - 1] + comxtup_2.islope[ commvl_1.ivx - 1] / all_1.slfac * xelsk[comxtup_2.lev1ssb[ commvl_1.ivx + issbs * 24 - 25]]; -#line 23204 "" +#line 23273 "" /* L3: */ -#line 23204 "" +#line 23273 "" } -#line 23205 "" +#line 23274 "" } -#line 23206 "" +#line 23275 "" return 0; } /* setupb_ */ @@ -56709,60 +56840,60 @@ L6: /* Initialize ipoe: */ -#line 23215 "" +#line 23284 "" /* Parameter adjustments */ -#line 23215 "" +#line 23284 "" --ipoe; -#line 23215 "" +#line 23284 "" --poe; -#line 23215 "" +#line 23284 "" -#line 23215 "" +#line 23284 "" /* Function Body */ -#line 23215 "" +#line 23284 "" i__1 = *nsyst; -#line 23215 "" +#line 23284 "" for (iord = 1; iord <= i__1; ++iord) { -#line 23216 "" +#line 23285 "" ipoe[iord] = iord; -#line 23217 "" +#line 23286 "" /* L3: */ -#line 23217 "" +#line 23286 "" } /* Construct ipoe vector with pairwise interchanges. When done, ipoe(1) will */ /* be index of smallest poe, and ipoe(nsyst) will be index of biggest poe. */ -#line 23222 "" +#line 23291 "" i__1 = *nsyst - 1; -#line 23222 "" +#line 23291 "" for (io1 = 1; io1 <= i__1; ++io1) { -#line 23223 "" +#line 23292 "" i__2 = *nsyst; -#line 23223 "" +#line 23292 "" for (io2 = io1 + 1; io2 <= i__2; ++io2) { -#line 23224 "" +#line 23293 "" if (poe[ipoe[io1]] > poe[ipoe[io2]]) { /* Interchange the indices */ -#line 23228 "" +#line 23297 "" itemp = ipoe[io1]; -#line 23229 "" +#line 23298 "" ipoe[io1] = ipoe[io2]; -#line 23230 "" +#line 23299 "" ipoe[io2] = itemp; -#line 23231 "" +#line 23300 "" } -#line 23232 "" +#line 23301 "" /* L5: */ -#line 23232 "" +#line 23301 "" } -#line 23233 "" +#line 23302 "" /* L4: */ -#line 23233 "" +#line 23302 "" } -#line 23234 "" +#line 23303 "" return 0; } /* sortpoe_ */ @@ -56799,473 +56930,473 @@ L6: /* Counter for signed integers. 1st is height, 2nd is horiz, 3rd is curve */ -#line 23259 "" +#line 23328 "" /* Parameter adjustments */ -#line 23259 "" +#line 23328 "" --isdat4; -#line 23259 "" +#line 23328 "" --isdat3; -#line 23259 "" +#line 23328 "" --isdat2; -#line 23259 "" +#line 23328 "" --isdat1; -#line 23259 "" +#line 23328 "" -#line 23259 "" +#line 23328 "" /* Function Body */ -#line 23259 "" +#line 23328 "" numint = 0; -#line 23260 "" +#line 23329 "" ivoff = 0; -#line 23261 "" +#line 23330 "" ihoff = 0; -#line 23262 "" +#line 23331 "" ++(*nsdat); -#line 23263 "" +#line 23332 "" if (*(unsigned char *)starter == '{' || *(unsigned char *)starter == '}') { -#line 23263 "" +#line 23332 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],3); -#line 23263 "" +#line 23332 "" } -#line 23265 "" +#line 23334 "" setbits_(&isdat1[*nsdat], &c__5, &c__13, iv); -#line 23266 "" +#line 23335 "" i__1 = *kv - 1; -#line 23266 "" +#line 23335 "" setbits_(&isdat1[*nsdat], &c__1, &c__12, &i__1); -#line 23267 "" +#line 23336 "" setbits_(&isdat1[*nsdat], &c__8, &c__3, ip); -#line 23268 "" +#line 23337 "" isdat3[*nsdat] = 0; -#line 23269 "" +#line 23338 "" isdat4[*nsdat] = 0; -#line 23270 "" +#line 23339 "" ilb12 = 0; /* Get ID code */ /* flag for tweaks of 1st or 2nd (0|1) seg of linebreak slur */ -#line 23274 "" +#line 23343 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); /* if (index('uldtb+-hfnHps ',durq) .gt. 0) then */ -#line 23276 "" +#line 23345 "" if (i_indx("uldtb+-hfnHpsv ", durq, (ftnlen)15, (ftnlen)1) > 0) { /* Null id. Note for ps slurs, 'H' cannot be an ID */ -#line 23280 "" +#line 23349 "" --(*iccount); -#line 23281 "" +#line 23350 "" if (*(unsigned char *)&lineq[*iccount - 1] == 't') { -#line 23282 "" +#line 23351 "" idcode = 1; -#line 23283 "" +#line 23352 "" } else { -#line 23284 "" +#line 23353 "" idcode = 32; -#line 23285 "" +#line 23354 "" } -#line 23286 "" +#line 23355 "" } else { /* Set explicit idcode */ -#line 23290 "" +#line 23359 "" idcode = *(unsigned char *)durq; -#line 23291 "" +#line 23360 "" i__1 = *iccount - 2; -#line 23291 "" +#line 23360 "" if (s_cmp(lineq + i__1, "t", *iccount - 1 - i__1, (ftnlen)1) == 0) { /* Make t[ID] look like s[ID]t */ -#line 23295 "" +#line 23364 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],3); -#line 23296 "" +#line 23365 "" } -#line 23297 "" +#line 23366 "" } -#line 23298 "" +#line 23367 "" setbits_(&isdat1[*nsdat], &c__7, &c__19, &idcode); /* Set start/stop: look thru list from end for same idcode,iv,kv */ -#line 23302 "" +#line 23371 "" for (isdat = *nsdat - 1; isdat >= 1; --isdat) { -#line 23303 "" +#line 23372 "" if (idcode == igetbits_(&isdat1[isdat], &c__7, &c__19) && *iv == igetbits_(&isdat1[isdat], &c__5, &c__13) && *kv - 1 == igetbits_(&isdat1[isdat], &c__1, &c__12)) { /* Matched idcode & ivx. On/off?. If on, new is turnoff, leave bit 11 at 0. */ -#line 23309 "" +#line 23378 "" if (bit_test(isdat1[isdat],11)) { -#line 23309 "" +#line 23378 "" goto L3; -#line 23309 "" +#line 23378 "" } /* Found slur is a turnoff, so new one is a turnon. Jump down to set bit */ -#line 23313 "" +#line 23382 "" goto L4; -#line 23314 "" +#line 23383 "" } -#line 23315 "" +#line 23384 "" /* L2: */ -#line 23315 "" +#line 23384 "" } /* If here, this is turnon. */ -#line 23319 "" +#line 23388 "" L4: -#line 23320 "" +#line 23389 "" isdat1[*nsdat] = bit_set(isdat1[*nsdat],11); -#line 23321 "" +#line 23390 "" L3: /* Now done with initial turnon- or turnoff-specifics. */ -#line 23325 "" +#line 23394 "" if (i_nint(&comslur_1.slurcurve) != 0 && bit_test(isdat1[*nsdat],11)) { /* There's a default curvature tweak */ -#line 23329 "" +#line 23398 "" icurv1 = i_nint(&comslur_1.slurcurve) + 3; -#line 23330 "" +#line 23399 "" if (icurv1 == 2) { -#line 23330 "" +#line 23399 "" icurv1 = 1; -#line 23330 "" +#line 23399 "" } -#line 23331 "" +#line 23400 "" isdat3[*nsdat] = bit_set(isdat3[*nsdat],0); -#line 23332 "" +#line 23401 "" i__1 = icurv1 + 32; -#line 23332 "" +#line 23401 "" setbits_(&isdat3[*nsdat], &c__6, &c__2, &i__1); -#line 23333 "" +#line 23402 "" } /* Loop for rest of input */ -#line 23337 "" +#line 23406 "" L1: -#line 23337 "" +#line 23406 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 23338 "" +#line 23407 "" if (i_indx("uld", durq, (ftnlen)3, (ftnlen)1) > 0) { /* Force direction */ -#line 23342 "" +#line 23411 "" isdat1[*nsdat] = bit_set(isdat1[*nsdat],26); -#line 23343 "" +#line 23412 "" if (*(unsigned char *)durq == 'u') { -#line 23343 "" +#line 23412 "" isdat1[*nsdat] = bit_set(isdat1[*nsdat],27); -#line 23343 "" +#line 23412 "" } -#line 23344 "" +#line 23413 "" goto L1; -#line 23345 "" +#line 23414 "" } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { -#line 23346 "" +#line 23415 "" ++numint; -#line 23347 "" +#line 23416 "" if (numint == 1) { /* Vertical offset */ -#line 23351 "" +#line 23420 "" ++(*iccount); -#line 23352 "" +#line 23421 "" readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1); -#line 23353 "" +#line 23422 "" --(*iccount); -#line 23354 "" +#line 23423 "" ivoff = i_nint(&fnum); -#line 23355 "" +#line 23424 "" if (*(unsigned char *)durq == '-') { -#line 23355 "" +#line 23424 "" ivoff = -ivoff; -#line 23355 "" +#line 23424 "" } -#line 23356 "" +#line 23425 "" } else if (numint == 2) { /* Horizontal offset */ -#line 23360 "" +#line 23429 "" ++(*iccount); -#line 23361 "" +#line 23430 "" readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1); -#line 23362 "" +#line 23431 "" --(*iccount); /* fnum is abs(hshift), must be 0 to 6.3 */ -#line 23366 "" +#line 23435 "" ihoff = fnum * 10 + .5f; -#line 23367 "" +#line 23436 "" if (*(unsigned char *)durq == '-') { -#line 23367 "" +#line 23436 "" ihoff = -ihoff; -#line 23367 "" +#line 23436 "" } /* Later will set bits to 1...127 to represent -6.3,...+6.3 */ -#line 23371 "" +#line 23440 "" } else { /* Must be the 3rd signed integer, so it's a curve specification */ -#line 23375 "" +#line 23444 "" isdat3[*nsdat] = bit_set(isdat3[*nsdat],0); -#line 23376 "" +#line 23445 "" ++(*iccount); -#line 23377 "" +#line 23446 "" readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1); -#line 23378 "" +#line 23447 "" icurv1 = i_nint(&fnum); -#line 23379 "" +#line 23448 "" if (*(unsigned char *)durq == '-') { -#line 23379 "" +#line 23448 "" icurv1 = -icurv1; -#line 23379 "" +#line 23448 "" } -#line 23380 "" +#line 23449 "" i__1 = icurv1 + 32; -#line 23380 "" +#line 23449 "" setbits_(&isdat3[*nsdat], &c__6, &c__2, &i__1); -#line 23381 "" +#line 23450 "" if (*(unsigned char *)dumq != ':') { /* Back up the pointer and loop for more input */ -#line 23385 "" +#line 23454 "" --(*iccount); -#line 23386 "" +#line 23455 "" } else { /* Expect two single digits as parameters for curve */ -#line 23390 "" +#line 23459 "" isdat3[*nsdat] = bit_set(isdat3[*nsdat],1); -#line 23391 "" +#line 23460 "" i__1 = *iccount; -#line 23391 "" +#line 23460 "" i__2 = *(unsigned char *)&lineq[i__1] - 48; -#line 23391 "" +#line 23460 "" setbits_(&isdat3[*nsdat], &c__3, &c__8, &i__2); -#line 23393 "" +#line 23462 "" i__1 = *iccount + 1; -#line 23393 "" +#line 23462 "" i__2 = *(unsigned char *)&lineq[i__1] - 48; -#line 23393 "" +#line 23462 "" setbits_(&isdat3[*nsdat], &c__3, &c__11, &i__2); -#line 23395 "" +#line 23464 "" *iccount += 2; -#line 23396 "" +#line 23465 "" } -#line 23397 "" +#line 23466 "" } -#line 23398 "" +#line 23467 "" goto L1; -#line 23399 "" +#line 23468 "" } else if (*(unsigned char *)durq == 't') { -#line 23400 "" +#line 23469 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],3); -#line 23401 "" +#line 23470 "" goto L1; -#line 23402 "" +#line 23471 "" } else if (*(unsigned char *)durq == 'b') { -#line 23403 "" +#line 23472 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],4); -#line 23404 "" +#line 23473 "" goto L1; -#line 23405 "" +#line 23474 "" } else if (*(unsigned char *)durq == 's') { /* Endpoint tweaks for linebreak slurs. */ -#line 23409 "" +#line 23478 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); /* Next is vertical offset */ /* Must be +|- */ -#line 23413 "" +#line 23482 "" ++(*iccount); -#line 23414 "" +#line 23483 "" readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1); -#line 23415 "" +#line 23484 "" if (*(unsigned char *)durq == '-') { -#line 23415 "" +#line 23484 "" fnum = -fnum; -#line 23415 "" +#line 23484 "" } -#line 23416 "" +#line 23485 "" i__1 = ilb12 << 4; -#line 23416 "" +#line 23485 "" i__2 = i_nint(&fnum) + 32; -#line 23416 "" +#line 23485 "" setbits_(&isdat4[*nsdat], &c__6, &i__1, &i__2); -#line 23417 "" +#line 23486 "" if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) { /* Also a horizontal offset */ -#line 23421 "" +#line 23490 "" ++(*iccount); -#line 23422 "" +#line 23491 "" readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1); -#line 23423 "" +#line 23492 "" if (*(unsigned char *)dumq == '-') { -#line 23423 "" +#line 23492 "" fnum = -fnum; -#line 23423 "" +#line 23492 "" } -#line 23424 "" +#line 23493 "" i__1 = (ilb12 << 4) + 6; -#line 23424 "" +#line 23493 "" r__1 = fnum * 10; -#line 23424 "" +#line 23493 "" i__2 = i_nint(&r__1) + 64; -#line 23424 "" +#line 23493 "" setbits_(&isdat4[*nsdat], &c__7, &i__1, &i__2); -#line 23425 "" +#line 23494 "" } -#line 23426 "" +#line 23495 "" --(*iccount); -#line 23427 "" +#line 23496 "" ilb12 = 1; -#line 23428 "" +#line 23497 "" goto L1; -#line 23429 "" +#line 23498 "" } else if (i_indx("fnhH", durq, (ftnlen)4, (ftnlen)1) > 0) { /* Special ps slur curvatures. */ /* Translate to old \midslur args (1,4,5,6) */ -#line 23434 "" +#line 23503 "" icurv1 = i_indx("fnxhH", durq, (ftnlen)5, (ftnlen)1); -#line 23435 "" +#line 23504 "" if (icurv1 == 5) { /* check for 2nd H */ -#line 23439 "" +#line 23508 "" i__1 = *iccount; -#line 23439 "" +#line 23508 "" if (s_cmp(lineq + i__1, "H", *iccount + 1 - i__1, (ftnlen)1) == 0) { -#line 23440 "" +#line 23509 "" ++(*iccount); -#line 23441 "" +#line 23510 "" icurv1 = 6; -#line 23442 "" +#line 23511 "" } -#line 23443 "" +#line 23512 "" } -#line 23444 "" +#line 23513 "" isdat3[*nsdat] = bit_set(isdat3[*nsdat],0); -#line 23445 "" +#line 23514 "" i__1 = icurv1 + 32; -#line 23445 "" +#line 23514 "" setbits_(&isdat3[*nsdat], &c__6, &c__2, &i__1); -#line 23446 "" +#line 23515 "" goto L1; -#line 23447 "" +#line 23516 "" } else if (*(unsigned char *)durq == 'p') { /* Local adjustment */ -#line 23448 "" +#line 23517 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); /* +|- */ -#line 23449 "" +#line 23518 "" getchar_(lineq, iccount, dumq, (ftnlen)128, (ftnlen)1); /* 26 \sluradjust (p+s) */ /* 27 \nosluradjust (p-s) */ /* 28 \tieadjust (p+t) */ /* 29 \notieadjust (p-t) */ /* s|t */ -#line 23454 "" +#line 23523 "" if (*(unsigned char *)durq == '+') { -#line 23455 "" +#line 23524 "" if (*(unsigned char *)dumq == 's') { -#line 23456 "" +#line 23525 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],26); -#line 23457 "" +#line 23526 "" } else { -#line 23458 "" +#line 23527 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],28); -#line 23459 "" +#line 23528 "" } -#line 23460 "" +#line 23529 "" } else { -#line 23461 "" +#line 23530 "" if (*(unsigned char *)dumq == 's') { -#line 23462 "" +#line 23531 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],27); -#line 23463 "" +#line 23532 "" } else { -#line 23464 "" +#line 23533 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],29); -#line 23465 "" +#line 23534 "" } -#line 23466 "" +#line 23535 "" } -#line 23467 "" +#line 23536 "" goto L1; -#line 23468 "" +#line 23537 "" } else if (*(unsigned char *)durq == 'v') { /* Stem slur */ -#line 23469 "" +#line 23538 "" isdat1[*nsdat] = bit_set(isdat1[*nsdat],2); -#line 23470 "" +#line 23539 "" goto L1; -#line 23471 "" +#line 23540 "" } /* Record shifts */ -#line 23475 "" +#line 23544 "" i__1 = ivoff + 32; -#line 23475 "" +#line 23544 "" setbits_(&isdat2[*nsdat], &c__6, &c__6, &i__1); -#line 23476 "" +#line 23545 "" i__1 = ihoff + 64; -#line 23476 "" +#line 23545 "" setbits_(&isdat2[*nsdat], &c__7, &c__12, &i__1); /* Record chord flag, note level, notehead shift */ -#line 23480 "" +#line 23549 "" if (*notcrd) { -#line 23481 "" +#line 23550 "" setbits_(&isdat2[*nsdat], &c__7, &c__19, nolev); -#line 23482 "" +#line 23551 "" } else { -#line 23483 "" +#line 23552 "" nolevc = igetbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__7, & c__12); -#line 23484 "" +#line 23553 "" setbits_(&isdat2[*nsdat], &c__7, &c__19, &nolevc); -#line 23485 "" +#line 23554 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],0); -#line 23486 "" +#line 23555 "" i__1 = igetbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__2, & c__23); -#line 23486 "" +#line 23555 "" setbits_(&isdat2[*nsdat], &c__2, &c__1, &i__1); -#line 23487 "" +#line 23556 "" } -#line 23488 "" +#line 23557 "" return 0; } /* spsslur_ */ @@ -57300,346 +57431,346 @@ L1: /* Counter for signed integers. 1st is height, 2nd is horiz, 3rd is curve */ -#line 23513 "" +#line 23582 "" /* Parameter adjustments */ -#line 23513 "" +#line 23582 "" --isdat3; -#line 23513 "" +#line 23582 "" --isdat2; -#line 23513 "" +#line 23582 "" --isdat1; -#line 23513 "" +#line 23582 "" -#line 23513 "" +#line 23582 "" /* Function Body */ -#line 23513 "" +#line 23582 "" numint = 0; -#line 23514 "" +#line 23583 "" ivoff = 0; -#line 23515 "" +#line 23584 "" ihoff = 0; -#line 23516 "" +#line 23585 "" ++(*nsdat); -#line 23517 "" +#line 23586 "" if (*(unsigned char *)starter == '{' || *(unsigned char *)starter == '}') { -#line 23517 "" +#line 23586 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],3); -#line 23517 "" +#line 23586 "" } -#line 23519 "" +#line 23588 "" setbits_(&isdat1[*nsdat], &c__5, &c__13, iv); -#line 23520 "" +#line 23589 "" i__1 = *kv - 1; -#line 23520 "" +#line 23589 "" setbits_(&isdat1[*nsdat], &c__1, &c__12, &i__1); -#line 23521 "" +#line 23590 "" setbits_(&isdat1[*nsdat], &c__8, &c__3, ip); -#line 23522 "" +#line 23591 "" isdat3[*nsdat] = 0; /* Get id letter */ -#line 23526 "" +#line 23595 "" if (*(unsigned char *)&lineq[*iccount - 1] == 't') { /* Old-style t-slur. Use special idcode = 1 */ -#line 23530 "" +#line 23599 "" idcode = 1; -#line 23531 "" +#line 23600 "" } else { -#line 23532 "" +#line 23601 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 23533 "" +#line 23602 "" if (i_indx("uldtb+-hf ", durq, (ftnlen)10, (ftnlen)1) > 0) { /* Null id */ -#line 23537 "" +#line 23606 "" idcode = 32; -#line 23538 "" +#line 23607 "" --(*iccount); -#line 23539 "" +#line 23608 "" } else if (*(unsigned char *)durq == 'H') { /* Postscript slur, cannot use 'H' as code, must check for 2nd 'H' */ -#line 23543 "" +#line 23612 "" idcode = 32; -#line 23544 "" +#line 23613 "" --(*iccount); /* There may be another "H", but no need to deal with it yet */ -#line 23548 "" +#line 23617 "" } else { /* Set explicit idcode */ -#line 23552 "" +#line 23621 "" idcode = *(unsigned char *)durq; -#line 23553 "" +#line 23622 "" } -#line 23554 "" +#line 23623 "" } -#line 23555 "" +#line 23624 "" setbits_(&isdat1[*nsdat], &c__7, &c__19, &idcode); /* Set start/stop: look thru list from end for same idcode,iv,kv */ -#line 23559 "" +#line 23628 "" for (isdat = *nsdat - 1; isdat >= 1; --isdat) { -#line 23560 "" +#line 23629 "" if (idcode == igetbits_(&isdat1[isdat], &c__7, &c__19) && *iv == igetbits_(&isdat1[isdat], &c__5, &c__13) && *kv - 1 == igetbits_(&isdat1[isdat], &c__1, &c__12)) { /* Matched idcode & ivx. On/off?. If on, new is turnoff, leave bit 11 at 0. */ -#line 23566 "" +#line 23635 "" if (bit_test(isdat1[isdat],11)) { -#line 23566 "" +#line 23635 "" goto L3; -#line 23566 "" +#line 23635 "" } /* Found slur is a turnoff, so new one is a turnon. Jump down to set bit */ -#line 23570 "" +#line 23639 "" goto L4; -#line 23571 "" +#line 23640 "" } -#line 23572 "" +#line 23641 "" /* L2: */ -#line 23572 "" +#line 23641 "" } /* If here, this is turnon. */ -#line 23576 "" +#line 23645 "" L4: -#line 23577 "" +#line 23646 "" isdat1[*nsdat] = bit_set(isdat1[*nsdat],11); -#line 23578 "" +#line 23647 "" L3: /* Now done with initial turnon- or turnoff-specifics. Loop for rest of input */ -#line 23582 "" +#line 23651 "" L1: -#line 23582 "" +#line 23651 "" getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1); -#line 23583 "" +#line 23652 "" if (i_indx("uld", durq, (ftnlen)3, (ftnlen)1) > 0) { /* Force direction */ -#line 23587 "" +#line 23656 "" isdat1[*nsdat] = bit_set(isdat1[*nsdat],26); -#line 23588 "" +#line 23657 "" if (*(unsigned char *)durq == 'u') { -#line 23588 "" +#line 23657 "" isdat1[*nsdat] = bit_set(isdat1[*nsdat],27); -#line 23588 "" +#line 23657 "" } -#line 23589 "" +#line 23658 "" goto L1; -#line 23590 "" +#line 23659 "" } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) { -#line 23591 "" +#line 23660 "" ++numint; -#line 23592 "" +#line 23661 "" if (numint == 1) { /* Vertical offset */ -#line 23596 "" +#line 23665 "" ++(*iccount); -#line 23597 "" +#line 23666 "" readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1); -#line 23598 "" +#line 23667 "" --(*iccount); -#line 23599 "" +#line 23668 "" ivoff = i_nint(&fnum); -#line 23600 "" +#line 23669 "" if (*(unsigned char *)durq == '-') { -#line 23600 "" +#line 23669 "" ivoff = -ivoff; -#line 23600 "" +#line 23669 "" } -#line 23601 "" +#line 23670 "" } else if (numint == 2) { /* Horizontal offset */ -#line 23605 "" +#line 23674 "" ++(*iccount); -#line 23606 "" +#line 23675 "" readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1); -#line 23607 "" +#line 23676 "" --(*iccount); /* fnum is abs(hshift), must be 0 to 6.3 */ -#line 23611 "" +#line 23680 "" ihoff = fnum * 10 + .5f; -#line 23612 "" +#line 23681 "" if (*(unsigned char *)durq == '-') { -#line 23612 "" +#line 23681 "" ihoff = -ihoff; -#line 23612 "" +#line 23681 "" } /* Later will set bits to 1...127 to represent -6.3,...+6.3 */ -#line 23616 "" +#line 23685 "" } else { /* Must be the 3rd signed integer, so it's a curve specification */ -#line 23620 "" +#line 23689 "" isdat3[*nsdat] = bit_set(isdat3[*nsdat],0); -#line 23621 "" +#line 23690 "" ++(*iccount); -#line 23622 "" +#line 23691 "" readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1); -#line 23623 "" +#line 23692 "" icurv1 = i_nint(&fnum); -#line 23624 "" +#line 23693 "" if (*(unsigned char *)durq == '-') { -#line 23624 "" +#line 23693 "" icurv1 = -icurv1; -#line 23624 "" +#line 23693 "" } -#line 23625 "" +#line 23694 "" i__1 = icurv1 + 32; -#line 23625 "" +#line 23694 "" setbits_(&isdat3[*nsdat], &c__6, &c__2, &i__1); -#line 23626 "" +#line 23695 "" if (*(unsigned char *)dumq != ':') { /* Back up the pointer and loop for more input */ -#line 23630 "" +#line 23699 "" --(*iccount); -#line 23631 "" +#line 23700 "" } else { /* Expect two single digits as parameters for curve */ -#line 23635 "" +#line 23704 "" isdat3[*nsdat] = bit_set(isdat3[*nsdat],1); -#line 23636 "" +#line 23705 "" i__1 = *iccount; -#line 23636 "" +#line 23705 "" i__2 = *(unsigned char *)&lineq[i__1] - 48; -#line 23636 "" +#line 23705 "" setbits_(&isdat3[*nsdat], &c__3, &c__8, &i__2); -#line 23638 "" +#line 23707 "" i__1 = *iccount + 1; -#line 23638 "" +#line 23707 "" i__2 = *(unsigned char *)&lineq[i__1] - 48; -#line 23638 "" +#line 23707 "" setbits_(&isdat3[*nsdat], &c__3, &c__11, &i__2); -#line 23640 "" +#line 23709 "" *iccount += 2; -#line 23641 "" +#line 23710 "" } -#line 23642 "" +#line 23711 "" } -#line 23643 "" +#line 23712 "" goto L1; -#line 23644 "" +#line 23713 "" } else if (*(unsigned char *)durq == 't') { -#line 23645 "" +#line 23714 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],3); -#line 23646 "" +#line 23715 "" goto L1; -#line 23647 "" +#line 23716 "" } else if (*(unsigned char *)durq == 'b') { -#line 23648 "" +#line 23717 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],4); -#line 23649 "" +#line 23718 "" goto L1; -#line 23650 "" +#line 23719 "" } else if (i_indx("fhH", durq, (ftnlen)3, (ftnlen)1) > 0) { /* Special ps slur curvatures. Translate to old \midslur args (1,4,5,6) */ -#line 23654 "" +#line 23723 "" icurv1 = i_indx("fhH", durq, (ftnlen)3, (ftnlen)1) + 2; -#line 23655 "" +#line 23724 "" if (icurv1 == 3) { -#line 23656 "" +#line 23725 "" icurv1 = 1; -#line 23657 "" +#line 23726 "" } else if (icurv1 == 5) { /* check for 2nd H */ -#line 23661 "" +#line 23730 "" i__1 = *iccount; -#line 23661 "" +#line 23730 "" if (s_cmp(lineq + i__1, "H", *iccount + 1 - i__1, (ftnlen)1) == 0) { -#line 23662 "" +#line 23731 "" ++(*iccount); -#line 23663 "" +#line 23732 "" icurv1 = 6; -#line 23664 "" +#line 23733 "" } -#line 23665 "" +#line 23734 "" } -#line 23666 "" +#line 23735 "" isdat3[*nsdat] = bit_set(isdat3[*nsdat],0); /* Must change sign if downslur, but cannot do it now since we don't know */ /* slur direction for sure. */ -#line 23671 "" +#line 23740 "" i__1 = icurv1 + 32; -#line 23671 "" +#line 23740 "" setbits_(&isdat3[*nsdat], &c__6, &c__2, &i__1); -#line 23672 "" +#line 23741 "" goto L1; -#line 23673 "" +#line 23742 "" } /* Record shifts */ -#line 23677 "" +#line 23746 "" i__1 = ivoff + 32; -#line 23677 "" +#line 23746 "" setbits_(&isdat2[*nsdat], &c__6, &c__6, &i__1); -#line 23678 "" +#line 23747 "" i__1 = ihoff + 64; -#line 23678 "" +#line 23747 "" setbits_(&isdat2[*nsdat], &c__7, &c__12, &i__1); /* Record chord flag, note level, notehead shift */ -#line 23682 "" +#line 23751 "" if (*notcrd) { -#line 23683 "" +#line 23752 "" setbits_(&isdat2[*nsdat], &c__7, &c__19, nolev); -#line 23684 "" +#line 23753 "" } else { -#line 23685 "" +#line 23754 "" nolevc = igetbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__7, & c__12); -#line 23686 "" +#line 23755 "" setbits_(&isdat2[*nsdat], &c__7, &c__19, &nolevc); -#line 23687 "" +#line 23756 "" isdat2[*nsdat] = bit_set(isdat2[*nsdat],0); -#line 23688 "" +#line 23757 "" i__1 = igetbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__2, & c__23); -#line 23688 "" +#line 23757 "" setbits_(&isdat2[*nsdat], &c__2, &c__1, &i__1); -#line 23689 "" +#line 23758 "" } -#line 23690 "" +#line 23759 "" return 0; } /* sslur_ */ @@ -57647,9 +57778,9 @@ L1: { extern /* Subroutine */ int exit_(integer *); -#line 23693 "" +#line 23762 "" exit_(&c__1); -#line 23694 "" +#line 23763 "" return 0; } /* stop1_ */ @@ -57696,8 +57827,6 @@ L1: static integer nstaves; /* Fortran I/O blocks */ - static cilist io___1694 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1695 = { 0, 11, 0, "(a)", 0 }; static cilist io___1696 = { 0, 11, 0, "(a)", 0 }; static cilist io___1697 = { 0, 11, 0, "(a)", 0 }; static cilist io___1698 = { 0, 11, 0, "(a)", 0 }; @@ -57711,284 +57840,286 @@ L1: static cilist io___1706 = { 0, 11, 0, "(a)", 0 }; static cilist io___1707 = { 0, 11, 0, "(a)", 0 }; static cilist io___1708 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1710 = { 0, 11, 0, "(a8,i1,a)", 0 }; - static cilist io___1711 = { 0, 11, 0, "(a9,i2,a)", 0 }; + static cilist io___1709 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1710 = { 0, 11, 0, "(a)", 0 }; static cilist io___1712 = { 0, 11, 0, "(a8,i1,a)", 0 }; static cilist io___1713 = { 0, 11, 0, "(a9,i2,a)", 0 }; - static icilist io___1715 = { 0, fbarq, 0, "(f5.3)", 5, 1 }; - static cilist io___1716 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1717 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1718 = { 0, 11, 0, "(a7,i3,a2)", 0 }; - static cilist io___1719 = { 0, 11, 0, "(a8,i3,a2)", 0 }; - static cilist io___1720 = { 0, 11, 0, "(a8,i2,a2)", 0 }; - static cilist io___1721 = { 0, 11, 0, "(a8,i1,a2)", 0 }; + static cilist io___1714 = { 0, 11, 0, "(a8,i1,a)", 0 }; + static cilist io___1715 = { 0, 11, 0, "(a9,i2,a)", 0 }; + static icilist io___1717 = { 0, fbarq, 0, "(f5.3)", 5, 1 }; + static cilist io___1718 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1719 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1720 = { 0, 11, 0, "(a7,i3,a2)", 0 }; + static cilist io___1721 = { 0, 11, 0, "(a8,i3,a2)", 0 }; static cilist io___1722 = { 0, 11, 0, "(a8,i2,a2)", 0 }; - static cilist io___1723 = { 0, 11, 0, "(a8,i3,a2)", 0 }; + static cilist io___1723 = { 0, 11, 0, "(a8,i1,a2)", 0 }; static cilist io___1724 = { 0, 11, 0, "(a8,i2,a2)", 0 }; - static cilist io___1725 = { 0, 11, 0, "(a8,i1,a2)", 0 }; + static cilist io___1725 = { 0, 11, 0, "(a8,i3,a2)", 0 }; static cilist io___1726 = { 0, 11, 0, "(a8,i2,a2)", 0 }; - static cilist io___1727 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1728 = { 0, 11, 0, "(a19,i1,a1)", 0 }; - static cilist io___1729 = { 0, 11, 0, "(a19,i2,a1)", 0 }; - static cilist io___1732 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1733 = { 0, 11, 0, "(a11,i2,a)", 0 }; - static cilist io___1738 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1739 = { 0, 11, 0, "(a9,i2,a)", 0 }; + static cilist io___1727 = { 0, 11, 0, "(a8,i1,a2)", 0 }; + static cilist io___1728 = { 0, 11, 0, "(a8,i2,a2)", 0 }; + static cilist io___1729 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1730 = { 0, 11, 0, "(a19,i1,a1)", 0 }; + static cilist io___1731 = { 0, 11, 0, "(a19,i2,a1)", 0 }; + static cilist io___1734 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1735 = { 0, 11, 0, "(a11,i2,a)", 0 }; static cilist io___1740 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1741 = { 0, 11, 0, "(a21,i2,a)", 0 }; - static cilist io___1743 = { 0, 11, 0, "(a8,i1,a)", 0 }; - static cilist io___1744 = { 0, 11, 0, "(a9,i2,a)", 0 }; - static cilist io___1745 = { 0, 11, 0, "(a18,i2,a2)", 0 }; - static cilist io___1747 = { 0, 11, 0, "(a11,i1,a2)", 0 }; - static cilist io___1748 = { 0, 11, 0, "(a11,i2,a2)", 0 }; - static cilist io___1749 = { 0, 11, 0, "(a11,i3,a2)", 0 }; - static cilist io___1750 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1751 = { 0, 11, 0, fmtq, 0 }; + static cilist io___1741 = { 0, 11, 0, "(a9,i2,a)", 0 }; + static cilist io___1742 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1743 = { 0, 11, 0, "(a21,i2,a)", 0 }; + static cilist io___1745 = { 0, 11, 0, "(a8,i1,a)", 0 }; + static cilist io___1746 = { 0, 11, 0, "(a9,i2,a)", 0 }; + static cilist io___1747 = { 0, 11, 0, "(a18,i2,a2)", 0 }; + static cilist io___1749 = { 0, 11, 0, "(a11,i1,a2)", 0 }; + static cilist io___1750 = { 0, 11, 0, "(a11,i2,a2)", 0 }; + static cilist io___1751 = { 0, 11, 0, "(a11,i3,a2)", 0 }; static cilist io___1752 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1753 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1753 = { 0, 11, 0, fmtq, 0 }; static cilist io___1754 = { 0, 11, 0, "(a)", 0 }; static cilist io___1755 = { 0, 11, 0, "(a)", 0 }; static cilist io___1756 = { 0, 11, 0, "(a)", 0 }; static cilist io___1757 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1758 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1759 = { 0, 11, 0, "(a)", 0 }; -#line 23719 "" +#line 23788 "" /* Parameter adjustments */ -#line 23719 "" +#line 23788 "" --clefq; -#line 23719 "" +#line 23788 "" -#line 23719 "" +#line 23788 "" /* Function Body */ -#line 23719 "" +#line 23788 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 23719 "" +#line 23788 "" *(unsigned char *)sq = *(unsigned char *)&ch__1[0]; -#line 23720 "" +#line 23789 "" *vshrink = *xinstf1 > 20.f && ! comnvst_1.novshrinktop; -#line 23721 "" +#line 23790 "" if (*vshrink) { -#line 23722 "" +#line 23791 "" comarp_1.xinsnow = 10.f; -#line 23723 "" +#line 23792 "" } else { -#line 23724 "" +#line 23793 "" comarp_1.xinsnow = *xinstf1; -#line 23725 "" +#line 23794 "" } -#line 23726 "" +#line 23795 "" if (! comlast_1.islast) { -#line 23726 "" +#line 23795 "" return 0; -#line 23726 "" +#line 23795 "" } -#line 23727 "" - s_wsfe(&io___1694); -#line 23727 "" +#line 23796 "" + s_wsfe(&io___1696); +#line 23796 "" do_fio(&c__1, "%%%%%%%%%%%%%%%%%", (ftnlen)17); -#line 23727 "" +#line 23796 "" e_wsfe(); -#line 23728 "" - s_wsfe(&io___1695); -#line 23728 "" +#line 23797 "" + s_wsfe(&io___1697); +#line 23797 "" do_fio(&c__1, "%", (ftnlen)1); -#line 23728 "" +#line 23797 "" e_wsfe(); -#line 23729 "" - s_wsfe(&io___1696); +#line 23798 "" + s_wsfe(&io___1698); /* Writing concatenation */ -#line 23729 "" +#line 23798 "" i__1[0] = 2, a__1[0] = "% "; -#line 23729 "" +#line 23798 "" i__1[1] = *lbase, a__1[1] = basenameq; -#line 23729 "" +#line 23798 "" i__1[2] = 4, a__1[2] = ".tex"; -#line 23729 "" +#line 23798 "" s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)50); -#line 23729 "" +#line 23798 "" do_fio(&c__1, ch__2, *lbase + 6); -#line 23729 "" +#line 23798 "" e_wsfe(); -#line 23730 "" - s_wsfe(&io___1697); -#line 23730 "" +#line 23799 "" + s_wsfe(&io___1699); +#line 23799 "" do_fio(&c__1, "%", (ftnlen)1); -#line 23730 "" +#line 23799 "" e_wsfe(); -#line 23731 "" - s_wsfe(&io___1698); -#line 23731 "" +#line 23800 "" + s_wsfe(&io___1700); +#line 23800 "" do_fio(&c__1, "%%%%%%%%%%%%%%%%", (ftnlen)16); -#line 23731 "" +#line 23800 "" e_wsfe(); -#line 23732 "" - s_wsfe(&io___1699); +#line 23801 "" + s_wsfe(&io___1701); /* Writing concatenation */ -#line 23732 "" +#line 23801 "" i__2[0] = 1, a__2[0] = sq; -#line 23732 "" +#line 23801 "" i__2[1] = 14, a__2[1] = "input musixtex"; -#line 23732 "" +#line 23801 "" s_cat(ch__3, a__2, i__2, &c__2, (ftnlen)15); -#line 23732 "" +#line 23801 "" do_fio(&c__1, ch__3, (ftnlen)15); -#line 23732 "" +#line 23801 "" e_wsfe(); -#line 23733 "" - s_wsfe(&io___1700); +#line 23802 "" + s_wsfe(&io___1702); /* Writing concatenation */ -#line 23733 "" +#line 23802 "" i__2[0] = 1, a__2[0] = sq; -#line 23733 "" +#line 23802 "" i__2[1] = 9, a__2[1] = "input pmx"; -#line 23733 "" +#line 23802 "" s_cat(ch__4, a__2, i__2, &c__2, (ftnlen)10); -#line 23733 "" +#line 23802 "" do_fio(&c__1, ch__4, (ftnlen)10); -#line 23733 "" +#line 23802 "" e_wsfe(); /* write(11,'(a)')sq//'input musixmad' */ /* write(11,'(a)')sq//'input musixxad' */ -#line 23736 "" - s_wsfe(&io___1701); +#line 23805 "" + s_wsfe(&io___1703); /* Writing concatenation */ -#line 23736 "" +#line 23805 "" i__3[0] = 1, a__3[0] = sq; -#line 23736 "" +#line 23805 "" i__3[1] = 15, a__3[1] = "setmaxslurs{24}"; -#line 23736 "" +#line 23805 "" i__3[2] = 1, a__3[2] = sq; -#line 23736 "" +#line 23805 "" i__3[3] = 22, a__3[3] = "setmaxinstruments{24}%"; -#line 23736 "" +#line 23805 "" s_cat(ch__5, a__3, i__3, &c__4, (ftnlen)39); -#line 23736 "" +#line 23805 "" do_fio(&c__1, ch__5, (ftnlen)39); -#line 23736 "" +#line 23805 "" e_wsfe(); -#line 23738 "" +#line 23807 "" if (! (*fontslur)) { -#line 23738 "" - s_wsfe(&io___1702); +#line 23807 "" + s_wsfe(&io___1704); /* Writing concatenation */ -#line 23738 "" +#line 23807 "" i__2[0] = 1, a__2[0] = sq; -#line 23738 "" +#line 23807 "" i__2[1] = 13, a__2[1] = "input musixps"; -#line 23738 "" +#line 23807 "" s_cat(ch__6, a__2, i__2, &c__2, (ftnlen)14); -#line 23738 "" +#line 23807 "" do_fio(&c__1, ch__6, (ftnlen)14); -#line 23738 "" +#line 23807 "" e_wsfe(); -#line 23738 "" +#line 23807 "" } /* Need to input musixmad to permit more slurs. */ -#line 23742 "" +#line 23811 "" if (*musicsize == 20) { -#line 23743 "" - s_wsfe(&io___1703); +#line 23812 "" + s_wsfe(&io___1705); /* Writing concatenation */ -#line 23743 "" +#line 23812 "" i__2[0] = 1, a__2[0] = sq; -#line 23743 "" +#line 23812 "" i__2[1] = 16, a__2[1] = "normalmusicsize%"; -#line 23743 "" +#line 23812 "" s_cat(ch__7, a__2, i__2, &c__2, (ftnlen)17); -#line 23743 "" +#line 23812 "" do_fio(&c__1, ch__7, (ftnlen)17); -#line 23743 "" +#line 23812 "" e_wsfe(); -#line 23744 "" +#line 23813 "" } else if (*musicsize == 16) { -#line 23745 "" - s_wsfe(&io___1704); +#line 23814 "" + s_wsfe(&io___1706); /* Writing concatenation */ -#line 23745 "" +#line 23814 "" i__2[0] = 1, a__2[0] = sq; -#line 23745 "" +#line 23814 "" i__2[1] = 15, a__2[1] = "smallmusicsize%"; -#line 23745 "" +#line 23814 "" s_cat(ch__8, a__2, i__2, &c__2, (ftnlen)16); -#line 23745 "" +#line 23814 "" do_fio(&c__1, ch__8, (ftnlen)16); -#line 23745 "" +#line 23814 "" e_wsfe(); -#line 23746 "" +#line 23815 "" } else if (*musicsize == 24) { -#line 23747 "" - s_wsfe(&io___1705); +#line 23816 "" + s_wsfe(&io___1707); /* Writing concatenation */ -#line 23747 "" +#line 23816 "" i__2[0] = 1, a__2[0] = sq; -#line 23747 "" +#line 23816 "" i__2[1] = 15, a__2[1] = "largemusicsize%"; -#line 23747 "" +#line 23816 "" s_cat(ch__8, a__2, i__2, &c__2, (ftnlen)16); -#line 23747 "" +#line 23816 "" do_fio(&c__1, ch__8, (ftnlen)16); -#line 23747 "" +#line 23816 "" e_wsfe(); -#line 23748 "" - s_wsfe(&io___1706); +#line 23817 "" + s_wsfe(&io___1708); /* Writing concatenation */ -#line 23748 "" +#line 23817 "" i__4[0] = 1, a__4[0] = sq; -#line 23748 "" +#line 23817 "" i__4[1] = 3, a__4[1] = "def"; -#line 23748 "" +#line 23817 "" i__4[2] = 1, a__4[2] = sq; -#line 23748 "" +#line 23817 "" i__4[3] = 10, a__4[3] = "meterfont{"; -#line 23748 "" +#line 23817 "" i__4[4] = 1, a__4[4] = sq; -#line 23748 "" +#line 23817 "" i__4[5] = 16, a__4[5] = "meterlargefont}%"; -#line 23748 "" +#line 23817 "" s_cat(ch__9, a__4, i__4, &c__6, (ftnlen)32); -#line 23748 "" +#line 23817 "" do_fio(&c__1, ch__9, (ftnlen)32); -#line 23748 "" +#line 23817 "" e_wsfe(); -#line 23750 "" +#line 23819 "" } else if (*musicsize == 29) { -#line 23751 "" - s_wsfe(&io___1707); +#line 23820 "" + s_wsfe(&io___1709); /* Writing concatenation */ -#line 23751 "" +#line 23820 "" i__2[0] = 1, a__2[0] = sq; -#line 23751 "" +#line 23820 "" i__2[1] = 15, a__2[1] = "Largemusicsize%"; -#line 23751 "" +#line 23820 "" s_cat(ch__8, a__2, i__2, &c__2, (ftnlen)16); -#line 23751 "" +#line 23820 "" do_fio(&c__1, ch__8, (ftnlen)16); -#line 23751 "" +#line 23820 "" e_wsfe(); -#line 23752 "" - s_wsfe(&io___1708); +#line 23821 "" + s_wsfe(&io___1710); /* Writing concatenation */ -#line 23752 "" +#line 23821 "" i__4[0] = 1, a__4[0] = sq; -#line 23752 "" +#line 23821 "" i__4[1] = 3, a__4[1] = "def"; -#line 23752 "" +#line 23821 "" i__4[2] = 1, a__4[2] = sq; -#line 23752 "" +#line 23821 "" i__4[3] = 10, a__4[3] = "meterfont{"; -#line 23752 "" +#line 23821 "" i__4[4] = 1, a__4[4] = sq; -#line 23752 "" +#line 23821 "" i__4[5] = 16, a__4[5] = "meterLargefont}%"; -#line 23752 "" +#line 23821 "" s_cat(ch__9, a__4, i__4, &c__6, (ftnlen)32); -#line 23752 "" +#line 23821 "" do_fio(&c__1, ch__9, (ftnlen)32); -#line 23752 "" +#line 23821 "" e_wsfe(); -#line 23754 "" +#line 23823 "" } /* Set sizes. Have sizes per staff in isize(.) and noinst per staff in */ @@ -57996,1155 +58127,1155 @@ L1: /* 130324 */ /* iiv = 1 */ -#line 23761 "" +#line 23830 "" i__5 = *noinst; -#line 23761 "" +#line 23830 "" for (iinst = 1; iinst <= i__5; ++iinst) { /* if (isize(iiv) .eq. 1) then */ -#line 23763 "" +#line 23832 "" if (comsize_1.isize[iinst - 1] == 1) { -#line 23764 "" +#line 23833 "" if (iinst <= 9) { -#line 23765 "" - s_wsfe(&io___1710); +#line 23834 "" + s_wsfe(&io___1712); /* Writing concatenation */ -#line 23765 "" +#line 23834 "" i__2[0] = 1, a__2[0] = sq; -#line 23765 "" +#line 23834 "" i__2[1] = 7, a__2[1] = "setsize"; -#line 23765 "" +#line 23834 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23765 "" +#line 23834 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23765 "" +#line 23834 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 23765 "" +#line 23834 "" i__6[0] = 1, a__5[0] = sq; -#line 23765 "" +#line 23834 "" i__6[1] = 11, a__5[1] = "smallvalue%"; -#line 23765 "" +#line 23834 "" s_cat(ch__11, a__5, i__6, &c__2, (ftnlen)12); -#line 23765 "" +#line 23834 "" do_fio(&c__1, ch__11, (ftnlen)12); -#line 23765 "" +#line 23834 "" e_wsfe(); -#line 23767 "" +#line 23836 "" } else { -#line 23768 "" - s_wsfe(&io___1711); +#line 23837 "" + s_wsfe(&io___1713); /* Writing concatenation */ -#line 23768 "" +#line 23837 "" i__2[0] = 1, a__2[0] = sq; -#line 23768 "" +#line 23837 "" i__2[1] = 8, a__2[1] = "setsize{"; -#line 23768 "" +#line 23837 "" s_cat(ch__12, a__2, i__2, &c__2, (ftnlen)9); -#line 23768 "" +#line 23837 "" do_fio(&c__1, ch__12, (ftnlen)9); -#line 23768 "" +#line 23837 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 23768 "" +#line 23837 "" i__1[0] = 1, a__1[0] = "}"; -#line 23768 "" +#line 23837 "" i__1[1] = 1, a__1[1] = sq; -#line 23768 "" +#line 23837 "" i__1[2] = 11, a__1[2] = "smallvalue%"; -#line 23768 "" +#line 23837 "" s_cat(ch__13, a__1, i__1, &c__3, (ftnlen)13); -#line 23768 "" +#line 23837 "" do_fio(&c__1, ch__13, (ftnlen)13); -#line 23768 "" +#line 23837 "" e_wsfe(); -#line 23770 "" +#line 23839 "" } /* else if (isize(iiv) .eq. 2) then */ -#line 23772 "" +#line 23841 "" } else if (comsize_1.isize[iinst - 1] == 2) { -#line 23773 "" +#line 23842 "" if (iinst <= 9) { -#line 23774 "" - s_wsfe(&io___1712); +#line 23843 "" + s_wsfe(&io___1714); /* Writing concatenation */ -#line 23774 "" +#line 23843 "" i__2[0] = 1, a__2[0] = sq; -#line 23774 "" +#line 23843 "" i__2[1] = 7, a__2[1] = "setsize"; -#line 23774 "" +#line 23843 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23774 "" +#line 23843 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23774 "" +#line 23843 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 23774 "" +#line 23843 "" i__6[0] = 1, a__5[0] = sq; -#line 23774 "" +#line 23843 "" i__6[1] = 10, a__5[1] = "tinyvalue%"; -#line 23774 "" +#line 23843 "" s_cat(ch__14, a__5, i__6, &c__2, (ftnlen)11); -#line 23774 "" +#line 23843 "" do_fio(&c__1, ch__14, (ftnlen)11); -#line 23774 "" +#line 23843 "" e_wsfe(); -#line 23776 "" +#line 23845 "" } else { -#line 23777 "" - s_wsfe(&io___1713); +#line 23846 "" + s_wsfe(&io___1715); /* Writing concatenation */ -#line 23777 "" +#line 23846 "" i__2[0] = 1, a__2[0] = sq; -#line 23777 "" +#line 23846 "" i__2[1] = 8, a__2[1] = "setsize{"; -#line 23777 "" +#line 23846 "" s_cat(ch__12, a__2, i__2, &c__2, (ftnlen)9); -#line 23777 "" +#line 23846 "" do_fio(&c__1, ch__12, (ftnlen)9); -#line 23777 "" +#line 23846 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 23777 "" +#line 23846 "" i__1[0] = 1, a__1[0] = "}"; -#line 23777 "" +#line 23846 "" i__1[1] = 1, a__1[1] = sq; -#line 23777 "" +#line 23846 "" i__1[2] = 10, a__1[2] = "tinyvalue%"; -#line 23777 "" +#line 23846 "" s_cat(ch__11, a__1, i__1, &c__3, (ftnlen)12); -#line 23777 "" +#line 23846 "" do_fio(&c__1, ch__11, (ftnlen)12); -#line 23777 "" +#line 23846 "" e_wsfe(); -#line 23779 "" +#line 23848 "" } -#line 23780 "" +#line 23849 "" } /* iiv = iiv+nsperi(iinst) */ -#line 23782 "" +#line 23851 "" /* L5: */ -#line 23782 "" +#line 23851 "" } -#line 23783 "" - s_wsfi(&io___1715); -#line 23783 "" +#line 23852 "" + s_wsfi(&io___1717); +#line 23852 "" do_fio(&c__1, (char *)&(*fbar), (ftnlen)sizeof(real)); -#line 23783 "" +#line 23852 "" e_wsfi(); -#line 23784 "" - s_wsfe(&io___1716); +#line 23853 "" + s_wsfe(&io___1718); /* Writing concatenation */ -#line 23784 "" +#line 23853 "" i__2[0] = 1, a__2[0] = sq; -#line 23784 "" +#line 23853 "" i__2[1] = 13, a__2[1] = "nopagenumbers"; -#line 23784 "" +#line 23853 "" s_cat(ch__6, a__2, i__2, &c__2, (ftnlen)14); -#line 23784 "" +#line 23853 "" do_fio(&c__1, ch__6, (ftnlen)14); -#line 23784 "" +#line 23853 "" e_wsfe(); -#line 23785 "" - s_wsfe(&io___1717); +#line 23854 "" + s_wsfe(&io___1719); /* Writing concatenation */ -#line 23785 "" +#line 23854 "" i__3[0] = 1, a__3[0] = sq; -#line 23785 "" +#line 23854 "" i__3[1] = 14, a__3[1] = "tracingstats=2"; -#line 23785 "" +#line 23854 "" i__3[2] = 1, a__3[2] = sq; -#line 23785 "" +#line 23854 "" i__3[3] = 5, a__3[3] = "relax"; -#line 23785 "" +#line 23854 "" s_cat(ch__15, a__3, i__3, &c__4, (ftnlen)21); -#line 23785 "" +#line 23854 "" do_fio(&c__1, ch__15, (ftnlen)21); -#line 23785 "" +#line 23854 "" e_wsfe(); -#line 23786 "" - s_wsfe(&io___1718); +#line 23855 "" + s_wsfe(&io___1720); /* Writing concatenation */ -#line 23786 "" +#line 23855 "" i__2[0] = 1, a__2[0] = sq; -#line 23786 "" +#line 23855 "" i__2[1] = 6, a__2[1] = "hsize="; -#line 23786 "" +#line 23855 "" s_cat(ch__16, a__2, i__2, &c__2, (ftnlen)7); -#line 23786 "" +#line 23855 "" do_fio(&c__1, ch__16, (ftnlen)7); -#line 23786 "" +#line 23855 "" i__5 = i_nint(&comtop_1.widthpt); -#line 23786 "" +#line 23855 "" do_fio(&c__1, (char *)&i__5, (ftnlen)sizeof(integer)); -#line 23786 "" +#line 23855 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23786 "" +#line 23855 "" e_wsfe(); -#line 23787 "" +#line 23856 "" ci__1.cierr = 0; -#line 23787 "" +#line 23856 "" ci__1.ciunit = 11; /* Writing concatenation */ -#line 23787 "" +#line 23856 "" i__1[0] = 5, a__1[0] = "(a6,i"; -#line 23787 "" +#line 23856 "" r__1 = comtop_1.height + .1f; -#line 23787 "" +#line 23856 "" i__5 = (integer) r_lg10(&r__1) + 49; -#line 23787 "" +#line 23856 "" chax_(ch__1, (ftnlen)1, &i__5); -#line 23787 "" +#line 23856 "" i__1[1] = 1, a__1[1] = ch__1; -#line 23787 "" +#line 23856 "" i__1[2] = 4, a__1[2] = ",a2)"; -#line 23787 "" +#line 23856 "" ci__1.cifmt = (s_cat(ch__4, a__1, i__1, &c__3, (ftnlen)10), ch__4); -#line 23787 "" +#line 23856 "" s_wsfe(&ci__1); /* Writing concatenation */ -#line 23787 "" +#line 23856 "" i__2[0] = 1, a__2[0] = sq; -#line 23787 "" +#line 23856 "" i__2[1] = 5, a__2[1] = "vsize"; -#line 23787 "" +#line 23856 "" s_cat(ch__17, a__2, i__2, &c__2, (ftnlen)6); -#line 23787 "" +#line 23856 "" do_fio(&c__1, ch__17, (ftnlen)6); -#line 23787 "" +#line 23856 "" i__7 = (integer) (comtop_1.height + .1f); -#line 23787 "" +#line 23856 "" do_fio(&c__1, (char *)&i__7, (ftnlen)sizeof(integer)); -#line 23787 "" +#line 23856 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23787 "" +#line 23856 "" e_wsfe(); -#line 23789 "" +#line 23858 "" if (dabs(comtop_1.hoffpt) > .1f) { -#line 23790 "" +#line 23859 "" if (comtop_1.hoffpt <= -10.f) { -#line 23791 "" - s_wsfe(&io___1719); +#line 23860 "" + s_wsfe(&io___1721); /* Writing concatenation */ -#line 23791 "" +#line 23860 "" i__2[0] = 1, a__2[0] = sq; -#line 23791 "" +#line 23860 "" i__2[1] = 7, a__2[1] = "hoffset"; -#line 23791 "" +#line 23860 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23791 "" +#line 23860 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23791 "" +#line 23860 "" i__5 = i_nint(&comtop_1.hoffpt); -#line 23791 "" +#line 23860 "" do_fio(&c__1, (char *)&i__5, (ftnlen)sizeof(integer)); -#line 23791 "" +#line 23860 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23791 "" +#line 23860 "" e_wsfe(); -#line 23792 "" +#line 23861 "" } else if (comtop_1.hoffpt < 0.f) { -#line 23793 "" - s_wsfe(&io___1720); +#line 23862 "" + s_wsfe(&io___1722); /* Writing concatenation */ -#line 23793 "" +#line 23862 "" i__2[0] = 1, a__2[0] = sq; -#line 23793 "" +#line 23862 "" i__2[1] = 7, a__2[1] = "hoffset"; -#line 23793 "" +#line 23862 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23793 "" +#line 23862 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23793 "" +#line 23862 "" i__5 = i_nint(&comtop_1.hoffpt); -#line 23793 "" +#line 23862 "" do_fio(&c__1, (char *)&i__5, (ftnlen)sizeof(integer)); -#line 23793 "" +#line 23862 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23793 "" +#line 23862 "" e_wsfe(); -#line 23794 "" +#line 23863 "" } else if (comtop_1.hoffpt < 10.f) { -#line 23795 "" - s_wsfe(&io___1721); +#line 23864 "" + s_wsfe(&io___1723); /* Writing concatenation */ -#line 23795 "" +#line 23864 "" i__2[0] = 1, a__2[0] = sq; -#line 23795 "" +#line 23864 "" i__2[1] = 7, a__2[1] = "hoffset"; -#line 23795 "" +#line 23864 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23795 "" +#line 23864 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23795 "" +#line 23864 "" i__5 = i_nint(&comtop_1.hoffpt); -#line 23795 "" +#line 23864 "" do_fio(&c__1, (char *)&i__5, (ftnlen)sizeof(integer)); -#line 23795 "" +#line 23864 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23795 "" +#line 23864 "" e_wsfe(); -#line 23796 "" +#line 23865 "" } else { -#line 23797 "" - s_wsfe(&io___1722); +#line 23866 "" + s_wsfe(&io___1724); /* Writing concatenation */ -#line 23797 "" +#line 23866 "" i__2[0] = 1, a__2[0] = sq; -#line 23797 "" +#line 23866 "" i__2[1] = 7, a__2[1] = "hoffset"; -#line 23797 "" +#line 23866 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23797 "" +#line 23866 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23797 "" +#line 23866 "" i__5 = i_nint(&comtop_1.hoffpt); -#line 23797 "" +#line 23866 "" do_fio(&c__1, (char *)&i__5, (ftnlen)sizeof(integer)); -#line 23797 "" +#line 23866 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23797 "" +#line 23866 "" e_wsfe(); -#line 23798 "" +#line 23867 "" } -#line 23799 "" +#line 23868 "" } -#line 23800 "" +#line 23869 "" if (dabs(comtop_1.voffpt) > .1f) { -#line 23801 "" +#line 23870 "" if (comtop_1.voffpt <= -10.f) { -#line 23802 "" - s_wsfe(&io___1723); +#line 23871 "" + s_wsfe(&io___1725); /* Writing concatenation */ -#line 23802 "" +#line 23871 "" i__2[0] = 1, a__2[0] = sq; -#line 23802 "" +#line 23871 "" i__2[1] = 7, a__2[1] = "voffset"; -#line 23802 "" +#line 23871 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23802 "" +#line 23871 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23802 "" +#line 23871 "" i__5 = i_nint(&comtop_1.voffpt); -#line 23802 "" +#line 23871 "" do_fio(&c__1, (char *)&i__5, (ftnlen)sizeof(integer)); -#line 23802 "" +#line 23871 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23802 "" +#line 23871 "" e_wsfe(); -#line 23803 "" +#line 23872 "" } else if (comtop_1.voffpt < 0.f) { -#line 23804 "" - s_wsfe(&io___1724); +#line 23873 "" + s_wsfe(&io___1726); /* Writing concatenation */ -#line 23804 "" +#line 23873 "" i__2[0] = 1, a__2[0] = sq; -#line 23804 "" +#line 23873 "" i__2[1] = 7, a__2[1] = "voffset"; -#line 23804 "" +#line 23873 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23804 "" +#line 23873 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23804 "" +#line 23873 "" i__5 = i_nint(&comtop_1.voffpt); -#line 23804 "" +#line 23873 "" do_fio(&c__1, (char *)&i__5, (ftnlen)sizeof(integer)); -#line 23804 "" +#line 23873 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23804 "" +#line 23873 "" e_wsfe(); -#line 23805 "" +#line 23874 "" } else if (comtop_1.voffpt < 10.f) { -#line 23806 "" - s_wsfe(&io___1725); +#line 23875 "" + s_wsfe(&io___1727); /* Writing concatenation */ -#line 23806 "" +#line 23875 "" i__2[0] = 1, a__2[0] = sq; -#line 23806 "" +#line 23875 "" i__2[1] = 7, a__2[1] = "voffset"; -#line 23806 "" +#line 23875 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23806 "" +#line 23875 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23806 "" +#line 23875 "" i__5 = i_nint(&comtop_1.voffpt); -#line 23806 "" +#line 23875 "" do_fio(&c__1, (char *)&i__5, (ftnlen)sizeof(integer)); -#line 23806 "" +#line 23875 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23806 "" +#line 23875 "" e_wsfe(); -#line 23807 "" +#line 23876 "" } else { -#line 23808 "" - s_wsfe(&io___1726); +#line 23877 "" + s_wsfe(&io___1728); /* Writing concatenation */ -#line 23808 "" +#line 23877 "" i__2[0] = 1, a__2[0] = sq; -#line 23808 "" +#line 23877 "" i__2[1] = 7, a__2[1] = "voffset"; -#line 23808 "" +#line 23877 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23808 "" +#line 23877 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23808 "" +#line 23877 "" i__5 = i_nint(&comtop_1.voffpt); -#line 23808 "" +#line 23877 "" do_fio(&c__1, (char *)&i__5, (ftnlen)sizeof(integer)); -#line 23808 "" +#line 23877 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23808 "" +#line 23877 "" e_wsfe(); -#line 23809 "" +#line 23878 "" } -#line 23810 "" +#line 23879 "" } /* The default raisebarno=3.5 internote, set in pmx.tex. Increase to 4.5 if */ /* 3 sharps and treble clef, to avoid vertical clash with top space g# */ -#line 23815 "" +#line 23884 "" if (comtop_1.isig == 3 && *(unsigned char *)&clefq[*nv] == 't') { -#line 23815 "" - s_wsfe(&io___1727); +#line 23884 "" + s_wsfe(&io___1729); /* Writing concatenation */ -#line 23815 "" +#line 23884 "" i__4[0] = 1, a__4[0] = sq; -#line 23815 "" +#line 23884 "" i__4[1] = 3, a__4[1] = "def"; -#line 23815 "" +#line 23884 "" i__4[2] = 1, a__4[2] = sq; -#line 23815 "" +#line 23884 "" i__4[3] = 14, a__4[3] = "raisebarno{4.5"; -#line 23815 "" +#line 23884 "" i__4[4] = 1, a__4[4] = sq; -#line 23815 "" +#line 23884 "" i__4[5] = 10, a__4[5] = "internote}"; -#line 23815 "" +#line 23884 "" s_cat(ch__18, a__4, i__4, &c__6, (ftnlen)30); -#line 23815 "" +#line 23884 "" do_fio(&c__1, ch__18, (ftnlen)30); -#line 23815 "" +#line 23884 "" e_wsfe(); -#line 23815 "" +#line 23884 "" } -#line 23817 "" +#line 23886 "" if (*noinst < 10) { -#line 23818 "" - s_wsfe(&io___1728); +#line 23887 "" + s_wsfe(&io___1730); /* Writing concatenation */ -#line 23818 "" +#line 23887 "" i__3[0] = 1, a__3[0] = sq; -#line 23818 "" +#line 23887 "" i__3[1] = 3, a__3[1] = "def"; -#line 23818 "" +#line 23887 "" i__3[2] = 1, a__3[2] = sq; -#line 23818 "" +#line 23887 "" i__3[3] = 14, a__3[3] = "nbinstruments{"; -#line 23818 "" +#line 23887 "" s_cat(ch__19, a__3, i__3, &c__4, (ftnlen)19); -#line 23818 "" +#line 23887 "" do_fio(&c__1, ch__19, (ftnlen)19); -#line 23818 "" +#line 23887 "" do_fio(&c__1, (char *)&(*noinst), (ftnlen)sizeof(integer)); -#line 23818 "" +#line 23887 "" do_fio(&c__1, "}", (ftnlen)1); -#line 23818 "" +#line 23887 "" e_wsfe(); -#line 23820 "" +#line 23889 "" } else { -#line 23821 "" - s_wsfe(&io___1729); +#line 23890 "" + s_wsfe(&io___1731); /* Writing concatenation */ -#line 23821 "" +#line 23890 "" i__3[0] = 1, a__3[0] = sq; -#line 23821 "" +#line 23890 "" i__3[1] = 3, a__3[1] = "def"; -#line 23821 "" +#line 23890 "" i__3[2] = 1, a__3[2] = sq; -#line 23821 "" +#line 23890 "" i__3[3] = 14, a__3[3] = "nbinstruments{"; -#line 23821 "" +#line 23890 "" s_cat(ch__19, a__3, i__3, &c__4, (ftnlen)19); -#line 23821 "" +#line 23890 "" do_fio(&c__1, ch__19, (ftnlen)19); -#line 23821 "" +#line 23890 "" do_fio(&c__1, (char *)&(*noinst), (ftnlen)sizeof(integer)); -#line 23821 "" +#line 23890 "" do_fio(&c__1, "}", (ftnlen)1); -#line 23821 "" +#line 23890 "" e_wsfe(); -#line 23823 "" +#line 23892 "" } -#line 23824 "" +#line 23893 "" iv = 0; -#line 23825 "" +#line 23894 "" i__5 = *noinst; -#line 23825 "" +#line 23894 "" for (iinst = 1; iinst <= i__5; ++iinst) { -#line 23826 "" +#line 23895 "" nstaves = comnvi_1.nsperi[iinst - 1]; -#line 23827 "" +#line 23896 "" if (iinst < 10) { -#line 23828 "" - s_wsfe(&io___1732); +#line 23897 "" + s_wsfe(&io___1734); /* Writing concatenation */ -#line 23828 "" +#line 23897 "" i__3[0] = 1, a__3[0] = sq; -#line 23828 "" +#line 23897 "" i__3[1] = 9, a__3[1] = "setstaffs"; -#line 23828 "" +#line 23897 "" i__7 = iinst + 48; -#line 23828 "" +#line 23897 "" chax_(ch__1, (ftnlen)1, &i__7); -#line 23828 "" +#line 23897 "" i__3[2] = 1, a__3[2] = ch__1; -#line 23828 "" +#line 23897 "" i__8 = nstaves + 48; -#line 23828 "" +#line 23897 "" chax_(ch__20, (ftnlen)1, &i__8); -#line 23828 "" +#line 23897 "" i__3[3] = 1, a__3[3] = ch__20; -#line 23828 "" +#line 23897 "" s_cat(ch__11, a__3, i__3, &c__4, (ftnlen)12); -#line 23828 "" +#line 23897 "" do_fio(&c__1, ch__11, (ftnlen)12); -#line 23828 "" +#line 23897 "" e_wsfe(); -#line 23830 "" +#line 23899 "" } else { -#line 23831 "" - s_wsfe(&io___1733); +#line 23900 "" + s_wsfe(&io___1735); /* Writing concatenation */ -#line 23831 "" +#line 23900 "" i__2[0] = 1, a__2[0] = sq; -#line 23831 "" +#line 23900 "" i__2[1] = 10, a__2[1] = "setstaffs{"; -#line 23831 "" +#line 23900 "" s_cat(ch__14, a__2, i__2, &c__2, (ftnlen)11); -#line 23831 "" +#line 23900 "" do_fio(&c__1, ch__14, (ftnlen)11); -#line 23831 "" +#line 23900 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 23831 "" +#line 23900 "" i__6[0] = 1, a__5[0] = "}"; -#line 23831 "" +#line 23900 "" i__7 = nstaves + 48; -#line 23831 "" +#line 23900 "" chax_(ch__1, (ftnlen)1, &i__7); -#line 23831 "" +#line 23900 "" i__6[1] = 1, a__5[1] = ch__1; -#line 23831 "" +#line 23900 "" s_cat(ch__21, a__5, i__6, &c__2, (ftnlen)2); -#line 23831 "" +#line 23900 "" do_fio(&c__1, ch__21, (ftnlen)2); -#line 23831 "" +#line 23900 "" e_wsfe(); -#line 23833 "" +#line 23902 "" } -#line 23834 "" +#line 23903 "" ++iv; -#line 23835 "" +#line 23904 "" *(unsigned char *)clefqiv = *(unsigned char *)&clefq[iv]; -#line 23836 "" +#line 23905 "" if (*(unsigned char *)clefqiv == '8') { -#line 23837 "" +#line 23906 "" *(unsigned char *)clefqiv = 't'; -#line 23838 "" +#line 23907 "" cominsttrans_1.itransamt[cominsttrans_1.instno[iv - 1] - 1] = 7; -#line 23839 "" +#line 23908 "" } -#line 23840 "" +#line 23909 "" if (nstaves == 1) { -#line 23841 "" +#line 23910 "" i__7 = numclef_(clefq + iv, (ftnlen)1) + 48; -#line 23841 "" +#line 23910 "" chax_(ch__1, (ftnlen)1, &i__7); -#line 23841 "" +#line 23910 "" s_copy(fmtq, ch__1, (ftnlen)24, (ftnlen)1); -#line 23842 "" +#line 23911 "" lfmtq = 1; -#line 23843 "" +#line 23912 "" } else { /* Writing concatenation */ -#line 23844 "" +#line 23913 "" i__2[0] = 1, a__2[0] = "{"; -#line 23844 "" +#line 23913 "" i__7 = numclef_(clefq + iv, (ftnlen)1) + 48; -#line 23844 "" +#line 23913 "" chax_(ch__1, (ftnlen)1, &i__7); -#line 23844 "" +#line 23913 "" i__2[1] = 1, a__2[1] = ch__1; -#line 23844 "" +#line 23913 "" s_cat(fmtq, a__2, i__2, &c__2, (ftnlen)24); -#line 23845 "" +#line 23914 "" lfmtq = 2; -#line 23846 "" +#line 23915 "" i__7 = nstaves; -#line 23846 "" +#line 23915 "" for (k = 2; k <= i__7; ++k) { -#line 23847 "" +#line 23916 "" ++iv; /* Writing concatenation */ -#line 23848 "" +#line 23917 "" i__2[0] = lfmtq, a__2[0] = fmtq; -#line 23848 "" +#line 23917 "" i__8 = numclef_(clefq + iv, (ftnlen)1) + 48; -#line 23848 "" +#line 23917 "" chax_(ch__1, (ftnlen)1, &i__8); -#line 23848 "" +#line 23917 "" i__2[1] = 1, a__2[1] = ch__1; -#line 23848 "" +#line 23917 "" s_cat(fmtq, a__2, i__2, &c__2, (ftnlen)24); -#line 23849 "" +#line 23918 "" ++lfmtq; -#line 23850 "" +#line 23919 "" /* L2: */ -#line 23850 "" +#line 23919 "" } /* Writing concatenation */ -#line 23851 "" +#line 23920 "" i__2[0] = lfmtq, a__2[0] = fmtq; -#line 23851 "" +#line 23920 "" i__2[1] = 1, a__2[1] = "}"; -#line 23851 "" +#line 23920 "" s_cat(fmtq, a__2, i__2, &c__2, (ftnlen)24); -#line 23852 "" +#line 23921 "" ++lfmtq; -#line 23853 "" +#line 23922 "" } -#line 23854 "" +#line 23923 "" if (iinst < 10) { -#line 23855 "" - s_wsfe(&io___1738); +#line 23924 "" + s_wsfe(&io___1740); /* Writing concatenation */ -#line 23855 "" +#line 23924 "" i__3[0] = 1, a__3[0] = sq; -#line 23855 "" +#line 23924 "" i__3[1] = 7, a__3[1] = "setclef"; -#line 23855 "" +#line 23924 "" i__7 = iinst + 48; -#line 23855 "" +#line 23924 "" chax_(ch__1, (ftnlen)1, &i__7); -#line 23855 "" +#line 23924 "" i__3[2] = 1, a__3[2] = ch__1; -#line 23855 "" +#line 23924 "" i__3[3] = lfmtq, a__3[3] = fmtq; -#line 23855 "" +#line 23924 "" s_cat(ch__22, a__3, i__3, &c__4, (ftnlen)33); -#line 23855 "" +#line 23924 "" do_fio(&c__1, ch__22, lfmtq + 9); -#line 23855 "" +#line 23924 "" e_wsfe(); -#line 23856 "" +#line 23925 "" } else { -#line 23857 "" - s_wsfe(&io___1739); +#line 23926 "" + s_wsfe(&io___1741); /* Writing concatenation */ -#line 23857 "" +#line 23926 "" i__2[0] = 1, a__2[0] = sq; -#line 23857 "" +#line 23926 "" i__2[1] = 8, a__2[1] = "setclef{"; -#line 23857 "" +#line 23926 "" s_cat(ch__12, a__2, i__2, &c__2, (ftnlen)9); -#line 23857 "" +#line 23926 "" do_fio(&c__1, ch__12, (ftnlen)9); -#line 23857 "" +#line 23926 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 23857 "" +#line 23926 "" i__6[0] = 1, a__5[0] = "}"; -#line 23857 "" +#line 23926 "" i__6[1] = lfmtq, a__5[1] = fmtq; -#line 23857 "" +#line 23926 "" s_cat(ch__23, a__5, i__6, &c__2, (ftnlen)25); -#line 23857 "" +#line 23926 "" do_fio(&c__1, ch__23, lfmtq + 1); -#line 23857 "" +#line 23926 "" e_wsfe(); -#line 23858 "" +#line 23927 "" } -#line 23859 "" +#line 23928 "" if (*(unsigned char *)&clefq[iv] == '8') { -#line 23860 "" +#line 23929 "" if (iinst < 10) { -#line 23861 "" - s_wsfe(&io___1740); +#line 23930 "" + s_wsfe(&io___1742); /* Writing concatenation */ -#line 23861 "" +#line 23930 "" i__9[0] = 1, a__6[0] = sq; -#line 23861 "" +#line 23930 "" i__9[1] = 19, a__6[1] = "settrebleclefsymbol"; -#line 23861 "" +#line 23930 "" i__7 = iinst + 48; -#line 23861 "" +#line 23930 "" chax_(ch__1, (ftnlen)1, &i__7); -#line 23861 "" +#line 23930 "" i__9[2] = 1, a__6[2] = ch__1; -#line 23861 "" +#line 23930 "" i__9[3] = 1, a__6[3] = sq; -#line 23861 "" +#line 23930 "" i__9[4] = 13, a__6[4] = "treblelowoct%"; -#line 23861 "" +#line 23930 "" s_cat(ch__24, a__6, i__9, &c__5, (ftnlen)35); -#line 23861 "" +#line 23930 "" do_fio(&c__1, ch__24, (ftnlen)35); -#line 23861 "" +#line 23930 "" e_wsfe(); -#line 23863 "" +#line 23932 "" } else { -#line 23864 "" - s_wsfe(&io___1741); +#line 23933 "" + s_wsfe(&io___1743); /* Writing concatenation */ -#line 23864 "" +#line 23933 "" i__2[0] = 1, a__2[0] = sq; -#line 23864 "" +#line 23933 "" i__2[1] = 20, a__2[1] = "settrebleclefsymbol{"; -#line 23864 "" +#line 23933 "" s_cat(ch__15, a__2, i__2, &c__2, (ftnlen)21); -#line 23864 "" +#line 23933 "" do_fio(&c__1, ch__15, (ftnlen)21); -#line 23864 "" +#line 23933 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 23864 "" +#line 23933 "" i__1[0] = 1, a__1[0] = "}"; -#line 23864 "" +#line 23933 "" i__1[1] = 1, a__1[1] = sq; -#line 23864 "" +#line 23933 "" i__1[2] = 13, a__1[2] = "treblelowoct%"; -#line 23864 "" +#line 23933 "" s_cat(ch__3, a__1, i__1, &c__3, (ftnlen)15); -#line 23864 "" +#line 23933 "" do_fio(&c__1, ch__3, (ftnlen)15); -#line 23864 "" +#line 23933 "" e_wsfe(); -#line 23866 "" +#line 23935 "" } -#line 23867 "" +#line 23936 "" } -#line 23868 "" +#line 23937 "" for (lname = 79; lname >= 2; --lname) { -#line 23869 "" +#line 23938 "" if (*(unsigned char *)&comtop_1.inameq[(iinst - 1) * 79 + (lname - 1)] != ' ') { -#line 23869 "" +#line 23938 "" goto L4; -#line 23869 "" +#line 23938 "" } -#line 23870 "" +#line 23939 "" /* L3: */ -#line 23870 "" +#line 23939 "" } -#line 23871 "" +#line 23940 "" L4: -#line 23872 "" +#line 23941 "" comtop_1.lnam[iinst - 1] = lname; -#line 23873 "" +#line 23942 "" if (iinst < 10) { -#line 23874 "" - s_wsfe(&io___1743); +#line 23943 "" + s_wsfe(&io___1745); /* Writing concatenation */ -#line 23874 "" +#line 23943 "" i__2[0] = 1, a__2[0] = sq; -#line 23874 "" +#line 23943 "" i__2[1] = 7, a__2[1] = "setname"; -#line 23874 "" +#line 23943 "" s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)8); -#line 23874 "" +#line 23943 "" do_fio(&c__1, ch__10, (ftnlen)8); -#line 23874 "" +#line 23943 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 23874 "" +#line 23943 "" i__1[0] = 1, a__1[0] = "{"; -#line 23874 "" +#line 23943 "" i__1[1] = lname, a__1[1] = comtop_1.inameq + (iinst - 1) * 79; -#line 23874 "" +#line 23943 "" i__1[2] = 1, a__1[2] = "}"; -#line 23874 "" +#line 23943 "" s_cat(ch__25, a__1, i__1, &c__3, (ftnlen)81); -#line 23874 "" +#line 23943 "" do_fio(&c__1, ch__25, lname + 2); -#line 23874 "" +#line 23943 "" e_wsfe(); -#line 23876 "" +#line 23945 "" } else { -#line 23877 "" - s_wsfe(&io___1744); +#line 23946 "" + s_wsfe(&io___1746); /* Writing concatenation */ -#line 23877 "" +#line 23946 "" i__2[0] = 1, a__2[0] = sq; -#line 23877 "" +#line 23946 "" i__2[1] = 8, a__2[1] = "setname{"; -#line 23877 "" +#line 23946 "" s_cat(ch__12, a__2, i__2, &c__2, (ftnlen)9); -#line 23877 "" +#line 23946 "" do_fio(&c__1, ch__12, (ftnlen)9); -#line 23877 "" +#line 23946 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer)); /* Writing concatenation */ -#line 23877 "" +#line 23946 "" i__1[0] = 2, a__1[0] = "}{"; -#line 23877 "" +#line 23946 "" i__1[1] = lname, a__1[1] = comtop_1.inameq + (iinst - 1) * 79; -#line 23877 "" +#line 23946 "" i__1[2] = 1, a__1[2] = "}"; -#line 23877 "" +#line 23946 "" s_cat(ch__26, a__1, i__1, &c__3, (ftnlen)82); -#line 23877 "" +#line 23946 "" do_fio(&c__1, ch__26, lname + 3); -#line 23877 "" +#line 23946 "" e_wsfe(); -#line 23879 "" +#line 23948 "" } -#line 23880 "" +#line 23949 "" /* L1: */ -#line 23880 "" +#line 23949 "" } -#line 23881 "" - s_wsfe(&io___1745); +#line 23950 "" + s_wsfe(&io___1747); /* Writing concatenation */ -#line 23881 "" +#line 23950 "" i__2[0] = 1, a__2[0] = sq; -#line 23881 "" +#line 23950 "" i__2[1] = 17, a__2[1] = "generalsignature{"; -#line 23881 "" +#line 23950 "" s_cat(ch__27, a__2, i__2, &c__2, (ftnlen)18); -#line 23881 "" +#line 23950 "" do_fio(&c__1, ch__27, (ftnlen)18); -#line 23881 "" +#line 23950 "" do_fio(&c__1, (char *)&comtop_1.isig, (ftnlen)sizeof(integer)); -#line 23881 "" +#line 23950 "" do_fio(&c__1, "}%", (ftnlen)2); -#line 23881 "" +#line 23950 "" e_wsfe(); -#line 23882 "" +#line 23951 "" if (cominsttrans_1.earlytranson) { -#line 23882 "" +#line 23951 "" writesetsign_(&cominsttrans_1.ninsttrans, cominsttrans_1.iinsttrans, cominsttrans_1.itranskey, &cominsttrans_1.earlytranson); -#line 23882 "" +#line 23951 "" } -#line 23884 "" +#line 23953 "" wgmeter_(mtrnmp, mtrdnp); -#line 23885 "" +#line 23954 "" r__1 = comtop_1.fracindent * comtop_1.widthpt; -#line 23885 "" +#line 23954 "" ipi = i_nint(&r__1); -#line 23886 "" +#line 23955 "" if (ipi < 10) { -#line 23887 "" - s_wsfe(&io___1747); +#line 23956 "" + s_wsfe(&io___1749); /* Writing concatenation */ -#line 23887 "" +#line 23956 "" i__2[0] = 1, a__2[0] = sq; -#line 23887 "" +#line 23956 "" i__2[1] = 10, a__2[1] = "parindent "; -#line 23887 "" +#line 23956 "" s_cat(ch__14, a__2, i__2, &c__2, (ftnlen)11); -#line 23887 "" +#line 23956 "" do_fio(&c__1, ch__14, (ftnlen)11); -#line 23887 "" +#line 23956 "" do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof(integer)); -#line 23887 "" +#line 23956 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23887 "" +#line 23956 "" e_wsfe(); -#line 23888 "" +#line 23957 "" } else if (ipi < 100) { -#line 23889 "" - s_wsfe(&io___1748); +#line 23958 "" + s_wsfe(&io___1750); /* Writing concatenation */ -#line 23889 "" +#line 23958 "" i__2[0] = 1, a__2[0] = sq; -#line 23889 "" +#line 23958 "" i__2[1] = 10, a__2[1] = "parindent "; -#line 23889 "" +#line 23958 "" s_cat(ch__14, a__2, i__2, &c__2, (ftnlen)11); -#line 23889 "" +#line 23958 "" do_fio(&c__1, ch__14, (ftnlen)11); -#line 23889 "" +#line 23958 "" do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof(integer)); -#line 23889 "" +#line 23958 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23889 "" +#line 23958 "" e_wsfe(); -#line 23890 "" +#line 23959 "" } else { -#line 23891 "" - s_wsfe(&io___1749); +#line 23960 "" + s_wsfe(&io___1751); /* Writing concatenation */ -#line 23891 "" +#line 23960 "" i__2[0] = 1, a__2[0] = sq; -#line 23891 "" +#line 23960 "" i__2[1] = 10, a__2[1] = "parindent "; -#line 23891 "" +#line 23960 "" s_cat(ch__14, a__2, i__2, &c__2, (ftnlen)11); -#line 23891 "" +#line 23960 "" do_fio(&c__1, ch__14, (ftnlen)11); -#line 23891 "" +#line 23960 "" do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof(integer)); -#line 23891 "" +#line 23960 "" do_fio(&c__1, "pt", (ftnlen)2); -#line 23891 "" +#line 23960 "" e_wsfe(); -#line 23892 "" +#line 23961 "" } -#line 23893 "" - s_wsfe(&io___1750); +#line 23962 "" + s_wsfe(&io___1752); /* Writing concatenation */ -#line 23893 "" +#line 23962 "" i__10[0] = 1, a__7[0] = sq; -#line 23893 "" +#line 23962 "" i__10[1] = 11, a__7[1] = "elemskip1pt"; -#line 23893 "" +#line 23962 "" i__10[2] = 1, a__7[2] = sq; -#line 23893 "" +#line 23962 "" i__10[3] = 13, a__7[3] = "afterruleskip"; -#line 23893 "" +#line 23962 "" i__10[4] = 5, a__7[4] = fbarq; -#line 23893 "" +#line 23962 "" i__10[5] = 2, a__7[5] = "pt"; -#line 23893 "" +#line 23962 "" i__10[6] = 1, a__7[6] = sq; -#line 23893 "" +#line 23962 "" i__10[7] = 17, a__7[7] = "beforeruleskip0pt"; -#line 23893 "" +#line 23962 "" i__10[8] = 1, a__7[8] = sq; -#line 23893 "" +#line 23962 "" i__10[9] = 5, a__7[9] = "relax"; -#line 23893 "" +#line 23962 "" s_cat(ch__28, a__7, i__10, &c__10, (ftnlen)57); -#line 23893 "" +#line 23962 "" do_fio(&c__1, ch__28, (ftnlen)57); -#line 23893 "" +#line 23962 "" e_wsfe(); -#line 23895 "" +#line 23964 "" if (! (*vshrink)) { -#line 23896 "" +#line 23965 "" if (*xinstf1 < 9.95f) { -#line 23897 "" +#line 23966 "" s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (ftnlen)10); -#line 23898 "" +#line 23967 "" } else { -#line 23899 "" +#line 23968 "" s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (ftnlen)10); -#line 23900 "" +#line 23969 "" } -#line 23901 "" - s_wsfe(&io___1751); +#line 23970 "" + s_wsfe(&io___1753); /* Writing concatenation */ -#line 23901 "" +#line 23970 "" i__4[0] = 1, a__4[0] = sq; -#line 23901 "" +#line 23970 "" i__4[1] = 15, a__4[1] = "stafftopmarg0pt"; -#line 23901 "" +#line 23970 "" i__4[2] = 1, a__4[2] = sq; -#line 23901 "" +#line 23970 "" i__4[3] = 15, a__4[3] = "staffbotmarg0pt"; -#line 23901 "" +#line 23970 "" i__4[4] = 1, a__4[4] = sq; -#line 23901 "" +#line 23970 "" i__4[5] = 11, a__4[5] = "interstaff{"; -#line 23901 "" +#line 23970 "" s_cat(ch__29, a__4, i__4, &c__6, (ftnlen)44); -#line 23901 "" +#line 23970 "" do_fio(&c__1, ch__29, (ftnlen)44); -#line 23901 "" +#line 23970 "" do_fio(&c__1, (char *)&(*xinstf1), (ftnlen)sizeof(real)); /* Writing concatenation */ -#line 23901 "" +#line 23970 "" i__1[0] = 1, a__1[0] = "}"; -#line 23901 "" +#line 23970 "" i__1[1] = 1, a__1[1] = sq; -#line 23901 "" +#line 23970 "" i__1[2] = 5, a__1[2] = "relax"; -#line 23901 "" +#line 23970 "" s_cat(ch__16, a__1, i__1, &c__3, (ftnlen)7); -#line 23901 "" +#line 23970 "" do_fio(&c__1, ch__16, (ftnlen)7); -#line 23901 "" +#line 23970 "" e_wsfe(); -#line 23903 "" +#line 23972 "" } else { -#line 23904 "" - s_wsfe(&io___1752); +#line 23973 "" + s_wsfe(&io___1754); /* Writing concatenation */ -#line 23904 "" +#line 23973 "" i__10[0] = 1, a__7[0] = sq; -#line 23904 "" +#line 23973 "" i__10[1] = 15, a__7[1] = "stafftopmarg0pt"; -#line 23904 "" +#line 23973 "" i__10[2] = 1, a__7[2] = sq; -#line 23904 "" +#line 23973 "" i__10[3] = 13, a__7[3] = "staffbotmarg5"; -#line 23904 "" +#line 23973 "" i__10[4] = 1, a__7[4] = sq; -#line 23904 "" +#line 23973 "" i__10[5] = 10, a__7[5] = "Interligne"; -#line 23904 "" +#line 23973 "" i__10[6] = 1, a__7[6] = sq; -#line 23904 "" +#line 23973 "" i__10[7] = 14, a__7[7] = "interstaff{10}"; -#line 23904 "" +#line 23973 "" i__10[8] = 1, a__7[8] = sq; -#line 23904 "" +#line 23973 "" i__10[9] = 5, a__7[9] = "relax"; -#line 23904 "" +#line 23973 "" s_cat(ch__30, a__7, i__10, &c__10, (ftnlen)62); -#line 23904 "" +#line 23973 "" do_fio(&c__1, ch__30, (ftnlen)62); -#line 23904 "" +#line 23973 "" e_wsfe(); -#line 23907 "" +#line 23976 "" } -#line 23908 "" +#line 23977 "" if (*nv == 1) { -#line 23908 "" - s_wsfe(&io___1753); +#line 23977 "" + s_wsfe(&io___1755); /* Writing concatenation */ -#line 23908 "" +#line 23977 "" i__2[0] = 1, a__2[0] = sq; -#line 23908 "" +#line 23977 "" i__2[1] = 11, a__2[1] = "nostartrule"; -#line 23908 "" +#line 23977 "" s_cat(ch__11, a__2, i__2, &c__2, (ftnlen)12); -#line 23908 "" +#line 23977 "" do_fio(&c__1, ch__11, (ftnlen)12); -#line 23908 "" +#line 23977 "" e_wsfe(); -#line 23908 "" +#line 23977 "" } -#line 23909 "" - s_wsfe(&io___1754); +#line 23978 "" + s_wsfe(&io___1756); /* Writing concatenation */ -#line 23909 "" +#line 23978 "" i__3[0] = 1, a__3[0] = sq; -#line 23909 "" +#line 23978 "" i__3[1] = 8, a__3[1] = "readmod{"; -#line 23909 "" +#line 23978 "" i__3[2] = *lbase, a__3[2] = basenameq; -#line 23909 "" +#line 23978 "" i__3[3] = 1, a__3[3] = "}"; -#line 23909 "" +#line 23978 "" s_cat(ch__31, a__3, i__3, &c__4, (ftnlen)54); -#line 23909 "" +#line 23978 "" do_fio(&c__1, ch__31, *lbase + 10); -#line 23909 "" +#line 23978 "" e_wsfe(); -#line 23910 "" +#line 23979 "" if (comnvst_1.cstuplet) { -#line 23911 "" - s_wsfe(&io___1755); +#line 23980 "" + s_wsfe(&io___1757); /* Writing concatenation */ -#line 23911 "" +#line 23980 "" i__11[0] = 1, a__8[0] = sq; -#line 23911 "" +#line 23980 "" i__11[1] = 12, a__8[1] = "input tuplet"; -#line 23911 "" +#line 23980 "" i__11[2] = 1, a__8[2] = sq; -#line 23911 "" +#line 23980 "" i__11[3] = 3, a__8[3] = "def"; -#line 23911 "" +#line 23980 "" i__11[4] = 1, a__8[4] = sq; -#line 23911 "" +#line 23980 "" i__11[5] = 12, a__8[5] = "xnumt#1#2#3{"; -#line 23911 "" +#line 23980 "" i__11[6] = 1, a__8[6] = sq; -#line 23911 "" +#line 23980 "" i__11[7] = 16, a__8[7] = "zcharnote{#2}{~}"; -#line 23911 "" +#line 23980 "" i__11[8] = 1, a__8[8] = sq; -#line 23911 "" +#line 23980 "" i__11[9] = 3, a__8[9] = "def"; -#line 23911 "" +#line 23980 "" i__11[10] = 1, a__8[10] = sq; -#line 23911 "" +#line 23980 "" i__11[11] = 10, a__8[11] = "tuplettxt{"; -#line 23911 "" +#line 23980 "" i__11[12] = 1, a__8[12] = sq; -#line 23911 "" +#line 23980 "" i__11[13] = 9, a__8[13] = "smalltype"; -#line 23911 "" +#line 23980 "" i__11[14] = 1, a__8[14] = sq; -#line 23911 "" +#line 23980 "" i__11[15] = 6, a__8[15] = "it{#3}"; -#line 23911 "" +#line 23980 "" i__11[16] = 1, a__8[16] = sq; -#line 23911 "" +#line 23980 "" i__11[17] = 1, a__8[17] = "/"; -#line 23911 "" +#line 23980 "" i__11[18] = 1, a__8[18] = sq; -#line 23911 "" +#line 23980 "" i__11[19] = 4, a__8[19] = "/}}%"; -#line 23911 "" +#line 23980 "" s_cat(ch__32, a__8, i__11, &c__20, (ftnlen)86); -#line 23911 "" +#line 23980 "" do_fio(&c__1, ch__32, (ftnlen)86); -#line 23911 "" +#line 23980 "" e_wsfe(); -#line 23915 "" - s_wsfe(&io___1756); +#line 23984 "" + s_wsfe(&io___1758); /* Writing concatenation */ -#line 23915 "" +#line 23984 "" i__12[0] = 1, a__9[0] = sq; -#line 23915 "" +#line 23984 "" i__12[1] = 3, a__9[1] = "let"; -#line 23915 "" +#line 23984 "" i__12[2] = 1, a__9[2] = sq; -#line 23915 "" +#line 23984 "" i__12[3] = 5, a__9[3] = "ovbkt"; -#line 23915 "" +#line 23984 "" i__12[4] = 1, a__9[4] = sq; -#line 23915 "" +#line 23984 "" i__12[5] = 8, a__9[5] = "uptuplet"; -#line 23915 "" +#line 23984 "" i__12[6] = 1, a__9[6] = sq; -#line 23915 "" +#line 23984 "" i__12[7] = 3, a__9[7] = "let"; -#line 23915 "" +#line 23984 "" i__12[8] = 1, a__9[8] = sq; -#line 23915 "" +#line 23984 "" i__12[9] = 5, a__9[9] = "unbkt"; -#line 23915 "" +#line 23984 "" i__12[10] = 1, a__9[10] = sq; -#line 23915 "" +#line 23984 "" i__12[11] = 11, a__9[11] = "downtuplet%"; -#line 23915 "" +#line 23984 "" s_cat(ch__33, a__9, i__12, &c__12, (ftnlen)41); -#line 23915 "" +#line 23984 "" do_fio(&c__1, ch__33, (ftnlen)41); -#line 23915 "" +#line 23984 "" e_wsfe(); -#line 23917 "" +#line 23986 "" } -#line 23918 "" - s_wsfe(&io___1757); +#line 23987 "" + s_wsfe(&io___1759); /* Writing concatenation */ -#line 23918 "" +#line 23987 "" i__13[0] = 1, a__10[0] = sq; -#line 23918 "" +#line 23987 "" i__13[1] = 11, a__10[1] = "startmuflex"; -#line 23918 "" +#line 23987 "" i__13[2] = 1, a__10[2] = sq; -#line 23918 "" +#line 23987 "" i__13[3] = 10, a__10[3] = "startpiece"; -#line 23918 "" +#line 23987 "" i__13[4] = 1, a__10[4] = sq; -#line 23918 "" +#line 23987 "" i__13[5] = 8, a__10[5] = "addspace"; -#line 23918 "" +#line 23987 "" i__13[6] = 1, a__10[6] = sq; -#line 23918 "" +#line 23987 "" i__13[7] = 14, a__10[7] = "afterruleskip%"; -#line 23918 "" +#line 23987 "" s_cat(ch__34, a__10, i__13, &c__8, (ftnlen)47); -#line 23918 "" +#line 23987 "" do_fio(&c__1, ch__34, (ftnlen)47); -#line 23918 "" +#line 23987 "" e_wsfe(); -#line 23920 "" +#line 23989 "" return 0; } /* topfile_ */ @@ -59156,19 +59287,19 @@ L4: /* Slur directions */ -#line 23928 "" +#line 23997 "" ntest = *nolev - *ncm; -#line 23929 "" +#line 23998 "" if (ntest < 0 || ntest == 0 && combc_1.bcspec && *ncm == 23) { -#line 23931 "" +#line 24000 "" *(unsigned char *)ret_val = 'd'; -#line 23932 "" +#line 24001 "" } else { -#line 23933 "" +#line 24002 "" *(unsigned char *)ret_val = 'u'; -#line 23934 "" +#line 24003 "" } -#line 23935 "" +#line 24004 "" return ; } /* udfq_ */ @@ -59186,52 +59317,52 @@ L4: /* Stem direction for single notes */ -#line 23944 "" +#line 24013 "" if (bit_test(*isl,30)) { /* Absolute override */ -#line 23948 "" +#line 24017 "" if (bit_test(*isl,17)) { -#line 23949 "" +#line 24018 "" *(unsigned char *)udqqq = 'u'; -#line 23950 "" +#line 24019 "" } else { -#line 23951 "" +#line 24020 "" *(unsigned char *)udqqq = 'l'; -#line 23952 "" +#line 24021 "" } -#line 23953 "" +#line 24022 "" } else if (*nvmx == 1) { /* Single voice per staff, default */ -#line 23957 "" +#line 24026 "" r__1 = *nole * 1.f; -#line 23957 "" +#line 24026 "" ulfq_(ch__2, (ftnlen)1, &r__1, ncm); -#line 23957 "" +#line 24026 "" *(unsigned char *)udqqq = *(unsigned char *)&ch__2[0]; -#line 23958 "" +#line 24027 "" } else { /* Multi-voice per staff, 1st is lower, 2nd upper */ -#line 23962 "" +#line 24031 "" if (*ivx <= *nv) { -#line 23963 "" +#line 24032 "" *(unsigned char *)udqqq = 'l'; -#line 23964 "" +#line 24033 "" } else { -#line 23965 "" +#line 24034 "" *(unsigned char *)udqqq = 'u'; -#line 23966 "" +#line 24035 "" } -#line 23967 "" +#line 24036 "" } -#line 23968 "" +#line 24037 "" *(unsigned char *)ret_val = *(unsigned char *)udqqq; -#line 23969 "" +#line 24038 "" return ; } /* udqq_ */ @@ -59243,19 +59374,19 @@ L4: /* Stem directions */ -#line 23977 "" +#line 24046 "" test = *xnolev - *ncm; -#line 23978 "" +#line 24047 "" if (test < -.001f || test < .001f && combc_1.bcspec && *ncm == 23) { -#line 23980 "" +#line 24049 "" *(unsigned char *)ret_val = 'u'; -#line 23981 "" +#line 24050 "" } else { -#line 23982 "" +#line 24051 "" *(unsigned char *)ret_val = 'l'; -#line 23983 "" +#line 24052 "" } -#line 23984 "" +#line 24053 "" return ; } /* ulfq_ */ @@ -59277,40 +59408,40 @@ L4: extern /* Character */ VOID chax_(char *, ftnlen, integer *); /* Fortran I/O blocks */ - static cilist io___1761 = { 0, 6, 0, 0, 0 }; + static cilist io___1763 = { 0, 6, 0, 0, 0 }; -#line 23988 "" +#line 24057 "" if (*(unsigned char *)chq >= 61 && *(unsigned char *)chq < 122) { -#line 23989 "" +#line 24058 "" i__1 = *(unsigned char *)chq - 32; -#line 23989 "" +#line 24058 "" chax_(ch__2, (ftnlen)1, &i__1); -#line 23989 "" +#line 24058 "" *(unsigned char *)ret_val = *(unsigned char *)&ch__2[0]; -#line 23990 "" +#line 24059 "" } else { -#line 23991 "" +#line 24060 "" *(unsigned char *)ret_val = *(unsigned char *)chq; -#line 23992 "" - s_wsle(&io___1761); +#line 24061 "" + s_wsle(&io___1763); /* Writing concatenation */ -#line 23992 "" +#line 24061 "" i__2[0] = 52, a__1[0] = "Warning, upcaseq was called with improper a"\ "rgument: "; -#line 23992 "" +#line 24061 "" i__2[1] = 1, a__1[1] = chq; -#line 23992 "" +#line 24061 "" s_cat(ch__3, a__1, i__2, &c__2, (ftnlen)53); -#line 23992 "" +#line 24061 "" do_lio(&c__9, &c__1, ch__3, (ftnlen)53); -#line 23992 "" +#line 24061 "" e_wsle(); -#line 23994 "" +#line 24063 "" s_stop("", (ftnlen)0); -#line 23995 "" +#line 24064 "" } -#line 23996 "" +#line 24065 "" return ; } /* upcaseq_ */ @@ -59331,258 +59462,258 @@ L4: extern /* Character */ VOID chax_(char *, ftnlen, integer *); /* Fortran I/O blocks */ - static cilist io___1763 = { 0, 11, 0, "(a25,i1,a2,i1,a3)", 0 }; - static cilist io___1764 = { 0, 11, 0, "(a25,i1,a2,i2,a3)", 0 }; - static cilist io___1765 = { 0, 11, 0, "(a25,i2,a2,i1,a3)", 0 }; - static cilist io___1766 = { 0, 11, 0, "(a25,i2,a2,i2,a3)", 0 }; - static cilist io___1767 = { 0, 11, 0, "(a26,i1,a2,i1,a3)", 0 }; - static cilist io___1768 = { 0, 11, 0, "(a21,i1,a2)", 0 }; - static cilist io___1769 = { 0, 11, 0, "(a)", 0 }; - static cilist io___1770 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1765 = { 0, 11, 0, "(a25,i1,a2,i1,a3)", 0 }; + static cilist io___1766 = { 0, 11, 0, "(a25,i1,a2,i2,a3)", 0 }; + static cilist io___1767 = { 0, 11, 0, "(a25,i2,a2,i1,a3)", 0 }; + static cilist io___1768 = { 0, 11, 0, "(a25,i2,a2,i2,a3)", 0 }; + static cilist io___1769 = { 0, 11, 0, "(a26,i1,a2,i1,a3)", 0 }; + static cilist io___1770 = { 0, 11, 0, "(a21,i1,a2)", 0 }; static cilist io___1771 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1772 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1773 = { 0, 11, 0, "(a)", 0 }; /* Writes meter stuff to file 11, so only called if islast=.true. */ -#line 24003 "" +#line 24072 "" if (*mtrdnp == 0) { -#line 24003 "" +#line 24072 "" return 0; -#line 24003 "" +#line 24072 "" } -#line 24004 "" +#line 24073 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 24004 "" +#line 24073 "" *(unsigned char *)sq = *(unsigned char *)&ch__1[0]; -#line 24005 "" +#line 24074 "" if (*mtrnmp > 0 && *mtrnmp <= 9) { -#line 24006 "" +#line 24075 "" if (*mtrdnp < 10) { -#line 24007 "" - s_wsfe(&io___1763); +#line 24076 "" + s_wsfe(&io___1765); /* Writing concatenation */ -#line 24007 "" +#line 24076 "" i__1[0] = 1, a__1[0] = sq; -#line 24007 "" +#line 24076 "" i__1[1] = 13, a__1[1] = "generalmeter{"; -#line 24007 "" +#line 24076 "" i__1[2] = 1, a__1[2] = sq; -#line 24007 "" +#line 24076 "" i__1[3] = 10, a__1[3] = "meterfrac{"; -#line 24007 "" +#line 24076 "" s_cat(ch__2, a__1, i__1, &c__4, (ftnlen)25); -#line 24007 "" +#line 24076 "" do_fio(&c__1, ch__2, (ftnlen)25); -#line 24007 "" +#line 24076 "" do_fio(&c__1, (char *)&(*mtrnmp), (ftnlen)sizeof(integer)); -#line 24007 "" +#line 24076 "" do_fio(&c__1, "}{", (ftnlen)2); -#line 24007 "" +#line 24076 "" do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer)); -#line 24007 "" +#line 24076 "" do_fio(&c__1, "}}%", (ftnlen)3); -#line 24007 "" +#line 24076 "" e_wsfe(); -#line 24010 "" +#line 24079 "" } else { -#line 24011 "" - s_wsfe(&io___1764); +#line 24080 "" + s_wsfe(&io___1766); /* Writing concatenation */ -#line 24011 "" +#line 24080 "" i__1[0] = 1, a__1[0] = sq; -#line 24011 "" +#line 24080 "" i__1[1] = 13, a__1[1] = "generalmeter{"; -#line 24011 "" +#line 24080 "" i__1[2] = 1, a__1[2] = sq; -#line 24011 "" +#line 24080 "" i__1[3] = 10, a__1[3] = "meterfrac{"; -#line 24011 "" +#line 24080 "" s_cat(ch__2, a__1, i__1, &c__4, (ftnlen)25); -#line 24011 "" +#line 24080 "" do_fio(&c__1, ch__2, (ftnlen)25); -#line 24011 "" +#line 24080 "" do_fio(&c__1, (char *)&(*mtrnmp), (ftnlen)sizeof(integer)); -#line 24011 "" +#line 24080 "" do_fio(&c__1, "}{", (ftnlen)2); -#line 24011 "" +#line 24080 "" do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer)); -#line 24011 "" +#line 24080 "" do_fio(&c__1, "}}%", (ftnlen)3); -#line 24011 "" +#line 24080 "" e_wsfe(); -#line 24014 "" +#line 24083 "" } -#line 24015 "" +#line 24084 "" } else if (*mtrnmp >= 10) { -#line 24016 "" +#line 24085 "" if (*mtrdnp < 10) { -#line 24017 "" - s_wsfe(&io___1765); +#line 24086 "" + s_wsfe(&io___1767); /* Writing concatenation */ -#line 24017 "" +#line 24086 "" i__1[0] = 1, a__1[0] = sq; -#line 24017 "" +#line 24086 "" i__1[1] = 13, a__1[1] = "generalmeter{"; -#line 24017 "" +#line 24086 "" i__1[2] = 1, a__1[2] = sq; -#line 24017 "" +#line 24086 "" i__1[3] = 10, a__1[3] = "meterfrac{"; -#line 24017 "" +#line 24086 "" s_cat(ch__2, a__1, i__1, &c__4, (ftnlen)25); -#line 24017 "" +#line 24086 "" do_fio(&c__1, ch__2, (ftnlen)25); -#line 24017 "" +#line 24086 "" do_fio(&c__1, (char *)&(*mtrnmp), (ftnlen)sizeof(integer)); -#line 24017 "" +#line 24086 "" do_fio(&c__1, "}{", (ftnlen)2); -#line 24017 "" +#line 24086 "" do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer)); -#line 24017 "" +#line 24086 "" do_fio(&c__1, "}}%", (ftnlen)3); -#line 24017 "" +#line 24086 "" e_wsfe(); -#line 24020 "" +#line 24089 "" } else { -#line 24021 "" - s_wsfe(&io___1766); +#line 24090 "" + s_wsfe(&io___1768); /* Writing concatenation */ -#line 24021 "" +#line 24090 "" i__1[0] = 1, a__1[0] = sq; -#line 24021 "" +#line 24090 "" i__1[1] = 13, a__1[1] = "generalmeter{"; -#line 24021 "" +#line 24090 "" i__1[2] = 1, a__1[2] = sq; -#line 24021 "" +#line 24090 "" i__1[3] = 10, a__1[3] = "meterfrac{"; -#line 24021 "" +#line 24090 "" s_cat(ch__2, a__1, i__1, &c__4, (ftnlen)25); -#line 24021 "" +#line 24090 "" do_fio(&c__1, ch__2, (ftnlen)25); -#line 24021 "" +#line 24090 "" do_fio(&c__1, (char *)&(*mtrnmp), (ftnlen)sizeof(integer)); -#line 24021 "" +#line 24090 "" do_fio(&c__1, "}{", (ftnlen)2); -#line 24021 "" +#line 24090 "" do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer)); -#line 24021 "" +#line 24090 "" do_fio(&c__1, "}}%", (ftnlen)3); -#line 24021 "" +#line 24090 "" e_wsfe(); -#line 24024 "" +#line 24093 "" } -#line 24025 "" +#line 24094 "" } else if (*mtrnmp < 0) { -#line 24026 "" - s_wsfe(&io___1767); +#line 24095 "" + s_wsfe(&io___1769); /* Writing concatenation */ -#line 24026 "" +#line 24095 "" i__1[0] = 1, a__1[0] = sq; -#line 24026 "" +#line 24095 "" i__1[1] = 13, a__1[1] = "generalmeter{"; -#line 24026 "" +#line 24095 "" i__1[2] = 1, a__1[2] = sq; -#line 24026 "" +#line 24095 "" i__1[3] = 11, a__1[3] = "meterfracS{"; -#line 24026 "" +#line 24095 "" s_cat(ch__3, a__1, i__1, &c__4, (ftnlen)26); -#line 24026 "" +#line 24095 "" do_fio(&c__1, ch__3, (ftnlen)26); -#line 24026 "" +#line 24095 "" i__2 = -(*mtrnmp); -#line 24026 "" +#line 24095 "" do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer)); -#line 24026 "" +#line 24095 "" do_fio(&c__1, "}{", (ftnlen)2); -#line 24026 "" +#line 24095 "" do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer)); -#line 24026 "" +#line 24095 "" do_fio(&c__1, "}}%", (ftnlen)3); -#line 24026 "" +#line 24095 "" e_wsfe(); -#line 24029 "" +#line 24098 "" } else if (*mtrdnp <= 4) { -#line 24030 "" - s_wsfe(&io___1768); +#line 24099 "" + s_wsfe(&io___1770); /* Writing concatenation */ -#line 24030 "" +#line 24099 "" i__1[0] = 1, a__1[0] = sq; -#line 24030 "" +#line 24099 "" i__1[1] = 13, a__1[1] = "generalmeter{"; -#line 24030 "" +#line 24099 "" i__1[2] = 1, a__1[2] = sq; -#line 24030 "" +#line 24099 "" i__1[3] = 6, a__1[3] = "meterN"; -#line 24030 "" +#line 24099 "" s_cat(ch__4, a__1, i__1, &c__4, (ftnlen)21); -#line 24030 "" +#line 24099 "" do_fio(&c__1, ch__4, (ftnlen)21); -#line 24030 "" +#line 24099 "" do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer)); -#line 24030 "" +#line 24099 "" do_fio(&c__1, "}%", (ftnlen)2); -#line 24030 "" +#line 24099 "" e_wsfe(); -#line 24032 "" +#line 24101 "" } else if (*mtrdnp == 5) { -#line 24033 "" - s_wsfe(&io___1769); +#line 24102 "" + s_wsfe(&io___1771); /* Writing concatenation */ -#line 24033 "" +#line 24102 "" i__1[0] = 1, a__1[0] = sq; -#line 24033 "" +#line 24102 "" i__1[1] = 12, a__1[1] = "generalmeter"; -#line 24033 "" +#line 24102 "" i__1[2] = 1, a__1[2] = sq; -#line 24033 "" +#line 24102 "" i__1[3] = 10, a__1[3] = "allabreve%"; -#line 24033 "" +#line 24102 "" s_cat(ch__5, a__1, i__1, &c__4, (ftnlen)24); -#line 24033 "" +#line 24102 "" do_fio(&c__1, ch__5, (ftnlen)24); -#line 24033 "" +#line 24102 "" e_wsfe(); -#line 24034 "" +#line 24103 "" } else if (*mtrdnp == 6) { -#line 24035 "" - s_wsfe(&io___1770); +#line 24104 "" + s_wsfe(&io___1772); /* Writing concatenation */ -#line 24035 "" +#line 24104 "" i__1[0] = 1, a__1[0] = sq; -#line 24035 "" +#line 24104 "" i__1[1] = 12, a__1[1] = "generalmeter"; -#line 24035 "" +#line 24104 "" i__1[2] = 1, a__1[2] = sq; -#line 24035 "" +#line 24104 "" i__1[3] = 7, a__1[3] = "meterC%"; -#line 24035 "" +#line 24104 "" s_cat(ch__4, a__1, i__1, &c__4, (ftnlen)21); -#line 24035 "" +#line 24104 "" do_fio(&c__1, ch__4, (ftnlen)21); -#line 24035 "" +#line 24104 "" e_wsfe(); -#line 24036 "" +#line 24105 "" } else if (*mtrdnp == 7) { -#line 24037 "" - s_wsfe(&io___1771); +#line 24106 "" + s_wsfe(&io___1773); /* Writing concatenation */ -#line 24037 "" +#line 24106 "" i__1[0] = 1, a__1[0] = sq; -#line 24037 "" +#line 24106 "" i__1[1] = 12, a__1[1] = "generalmeter"; -#line 24037 "" +#line 24106 "" i__1[2] = 1, a__1[2] = sq; -#line 24037 "" +#line 24106 "" i__1[3] = 10, a__1[3] = "meterIIIS%"; -#line 24037 "" +#line 24106 "" s_cat(ch__5, a__1, i__1, &c__4, (ftnlen)24); -#line 24037 "" +#line 24106 "" do_fio(&c__1, ch__5, (ftnlen)24); -#line 24037 "" +#line 24106 "" e_wsfe(); -#line 24038 "" +#line 24107 "" } -#line 24039 "" +#line 24108 "" return 0; } /* wgmeter_ */ @@ -59617,32 +59748,32 @@ L4: extern /* Subroutine */ int printl_(char *, ftnlen); /* Fortran I/O blocks */ - static cilist io___1773 = { 0, 51, 0, "(a,$)", 0 }; - static cilist io___1774 = { 0, 52, 0, "(a6,10Z4)", 0 }; - static cilist io___1779 = { 0, 51, 0, "(a,$)", 0 }; - static cilist io___1780 = { 0, 52, 0, "(a6,8z4)", 0 }; + static cilist io___1775 = { 0, 51, 0, "(a,$)", 0 }; + static cilist io___1776 = { 0, 52, 0, "(a6,10Z4)", 0 }; static cilist io___1781 = { 0, 51, 0, "(a,$)", 0 }; - static cilist io___1782 = { 0, 52, 0, "(a)", 0 }; + static cilist io___1782 = { 0, 52, 0, "(a6,8z4)", 0 }; static cilist io___1783 = { 0, 51, 0, "(a,$)", 0 }; static cilist io___1784 = { 0, 52, 0, "(a)", 0 }; - static cilist io___1787 = { 0, 51, 0, "(a,$)", 0 }; - static cilist io___1788 = { 0, 52, 0, "(z4)", 0 }; + static cilist io___1785 = { 0, 51, 0, "(a,$)", 0 }; + static cilist io___1786 = { 0, 52, 0, "(a)", 0 }; static cilist io___1789 = { 0, 51, 0, "(a,$)", 0 }; - static cilist io___1790 = { 0, 52, 0, "(4z4)", 0 }; - static cilist io___1795 = { 0, 51, 0, "(a,$)", 0 }; - static cilist io___1796 = { 0, 52, 0, "(a4,z2,a7,11z4)", 0 }; + static cilist io___1790 = { 0, 52, 0, "(z4)", 0 }; + static cilist io___1791 = { 0, 51, 0, "(a,$)", 0 }; + static cilist io___1792 = { 0, 52, 0, "(4z4)", 0 }; static cilist io___1797 = { 0, 51, 0, "(a,$)", 0 }; - static cilist io___1798 = { 0, 52, 0, "(4z4)", 0 }; + static cilist io___1798 = { 0, 52, 0, "(a4,z2,a7,11z4)", 0 }; static cilist io___1799 = { 0, 51, 0, "(a,$)", 0 }; - static cilist io___1800 = { 0, 52, 0, "(a)", 0 }; - static icilist io___1802 = { 0, tempoq, 0, "(i2)", 10, 1 }; - static icilist io___1804 = { 0, instq, 0, "(i3)", 10, 1 }; - static cilist io___1805 = { 0, 51, 0, "(a,$)", 0 }; - static cilist io___1806 = { 0, 52, 0, "(z4)", 0 }; + static cilist io___1800 = { 0, 52, 0, "(4z4)", 0 }; + static cilist io___1801 = { 0, 51, 0, "(a,$)", 0 }; + static cilist io___1802 = { 0, 52, 0, "(a)", 0 }; + static icilist io___1804 = { 0, tempoq, 0, "(i2)", 10, 1 }; + static icilist io___1806 = { 0, instq, 0, "(i3)", 10, 1 }; static cilist io___1807 = { 0, 51, 0, "(a,$)", 0 }; - static cilist io___1808 = { 0, 52, 0, "(4z4)", 0 }; - static cilist io___1809 = { 0, 6, 0, "(1x,a12,(10i6))", 0 }; - static cilist io___1810 = { 0, 15, 0, "(1x,a12,(10i6))", 0 }; + static cilist io___1808 = { 0, 52, 0, "(z4)", 0 }; + static cilist io___1809 = { 0, 51, 0, "(a,$)", 0 }; + static cilist io___1810 = { 0, 52, 0, "(4z4)", 0 }; + static cilist io___1811 = { 0, 6, 0, "(1x,a12,(10i6))", 0 }; + static cilist io___1812 = { 0, 15, 0, "(1x,a12,(10i6))", 0 }; @@ -59654,292 +59785,292 @@ L4: /* Write Header */ -#line 24092 "" - s_wsfe(&io___1773); +#line 24161 "" + s_wsfe(&io___1775); /* Writing concatenation */ -#line 24092 "" +#line 24161 "" i__1[0] = 11, a__1[0] = "MThd\000\000\000\006\000\001\000"; -#line 24092 "" +#line 24161 "" *(unsigned char *)&ch__2[0] = commidi_1.numchan + 1; -#line 24092 "" +#line 24161 "" i__1[1] = 1, a__1[1] = ch__2; -#line 24092 "" +#line 24161 "" i__1[2] = 1, a__1[2] = "\000"; -#line 24092 "" +#line 24161 "" i__1[3] = 1, a__1[3] = "\360"; -#line 24092 "" +#line 24161 "" s_cat(ch__1, a__1, i__1, &c__4, (ftnlen)14); -#line 24092 "" +#line 24161 "" do_fio(&c__1, ch__1, (ftnlen)14); -#line 24092 "" +#line 24161 "" e_wsfe(); -#line 24094 "" +#line 24163 "" if (commidi_1.debugmidi) { -#line 24094 "" - s_wsfe(&io___1774); -#line 24094 "" +#line 24163 "" + s_wsfe(&io___1776); +#line 24163 "" do_fio(&c__1, "\"MThd\"", (ftnlen)6); -#line 24094 "" +#line 24163 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24094 "" +#line 24163 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24094 "" +#line 24163 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24094 "" +#line 24163 "" do_fio(&c__1, (char *)&c__6, (ftnlen)sizeof(integer)); -#line 24094 "" +#line 24163 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24094 "" +#line 24163 "" do_fio(&c__1, (char *)&c__1, (ftnlen)sizeof(integer)); -#line 24094 "" +#line 24163 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24094 "" +#line 24163 "" i__2 = commidi_1.numchan + 1; -#line 24094 "" +#line 24163 "" do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer)); -#line 24094 "" +#line 24163 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24094 "" +#line 24163 "" do_fio(&c__1, (char *)&c__240, (ftnlen)sizeof(integer)); -#line 24094 "" +#line 24163 "" e_wsfe(); -#line 24094 "" +#line 24163 "" } /* Write the "conductor" track, for keys, meter, and tempos */ /* Get the number of bytes in the conductor event stream */ -#line 24101 "" +#line 24170 "" ndata = commidi_1.imidi[commidi_1.numchan] + 1 - commmac_1.msecstrt[ commidi_1.numchan + commmac_1.nmidsec * 25 - 25]; -#line 24102 "" +#line 24171 "" i__2 = commmac_1.nmidsec - 1; -#line 24102 "" +#line 24171 "" for (isec = 1; isec <= i__2; ++isec) { -#line 24103 "" +#line 24172 "" ndata = ndata + 1 + commmac_1.msecend[commidi_1.numchan + isec * 25 - 25] - commmac_1.msecstrt[commidi_1.numchan + isec * 25 - 25]; -#line 24104 "" +#line 24173 "" /* L15: */ -#line 24104 "" +#line 24173 "" } /* ib1 = (4+ljob+26+ndata+4)/256 */ /* ib0 = 4+ljob+26+ndata+4-256*ib1 */ -#line 24107 "" +#line 24176 "" ib1 = (*ljob + 31 + ndata + 4) / 256; -#line 24108 "" +#line 24177 "" ib0 = *ljob + 31 + ndata + 4 - (ib1 << 8); -#line 24109 "" - s_wsfe(&io___1779); +#line 24178 "" + s_wsfe(&io___1781); /* Writing concatenation */ -#line 24109 "" +#line 24178 "" i__3[0] = 6, a__2[0] = "MTrk\000\000"; -#line 24109 "" +#line 24178 "" *(unsigned char *)&ch__2[0] = ib1; -#line 24109 "" +#line 24178 "" i__3[1] = 1, a__2[1] = ch__2; -#line 24109 "" +#line 24178 "" *(unsigned char *)&ch__4[0] = ib0; -#line 24109 "" +#line 24178 "" i__3[2] = 1, a__2[2] = ch__4; -#line 24109 "" +#line 24178 "" i__3[3] = 1, a__2[3] = "\000"; -#line 24109 "" +#line 24178 "" i__3[4] = 1, a__2[4] = "\377"; -#line 24109 "" +#line 24178 "" i__3[5] = 1, a__2[5] = "\001"; -#line 24109 "" +#line 24178 "" *(unsigned char *)&ch__5[0] = *ljob + 27; -#line 24109 "" +#line 24178 "" i__3[6] = 1, a__2[6] = ch__5; -#line 24109 "" +#line 24178 "" s_cat(ch__3, a__2, i__3, &c__7, (ftnlen)12); -#line 24109 "" +#line 24178 "" do_fio(&c__1, ch__3, (ftnlen)12); -#line 24109 "" +#line 24178 "" e_wsfe(); /* Text header */ /* * //char(0)//char(255)//char(1)//char(ljob+26) */ -#line 24115 "" +#line 24184 "" if (commidi_1.debugmidi) { -#line 24115 "" - s_wsfe(&io___1780); -#line 24115 "" +#line 24184 "" + s_wsfe(&io___1782); +#line 24184 "" do_fio(&c__1, "\"MTrk\"", (ftnlen)6); -#line 24115 "" +#line 24184 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24115 "" +#line 24184 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24115 "" +#line 24184 "" do_fio(&c__1, (char *)&ib1, (ftnlen)sizeof(integer)); -#line 24115 "" +#line 24184 "" do_fio(&c__1, (char *)&ib0, (ftnlen)sizeof(integer)); -#line 24115 "" +#line 24184 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24115 "" +#line 24184 "" do_fio(&c__1, (char *)&c__255, (ftnlen)sizeof(integer)); -#line 24115 "" +#line 24184 "" do_fio(&c__1, (char *)&c__1, (ftnlen)sizeof(integer)); -#line 24115 "" +#line 24184 "" i__2 = *ljob + 27; -#line 24115 "" +#line 24184 "" do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer)); -#line 24115 "" +#line 24184 "" e_wsfe(); -#line 24115 "" +#line 24184 "" } -#line 24118 "" - s_wsfe(&io___1781); -#line 24118 "" +#line 24187 "" + s_wsfe(&io___1783); +#line 24187 "" do_fio(&c__1, jobname, (*ljob)); -#line 24118 "" +#line 24187 "" e_wsfe(); -#line 24119 "" +#line 24188 "" if (commidi_1.debugmidi) { -#line 24119 "" - s_wsfe(&io___1782); +#line 24188 "" + s_wsfe(&io___1784); /* Writing concatenation */ -#line 24119 "" +#line 24188 "" i__4[0] = 1, a__3[0] = "\""; -#line 24119 "" +#line 24188 "" i__4[1] = *ljob, a__3[1] = jobname; -#line 24119 "" +#line 24188 "" i__4[2] = 1, a__3[2] = "\""; -#line 24119 "" +#line 24188 "" s_cat(ch__6, a__3, i__4, &c__3, (ftnlen)46); -#line 24119 "" +#line 24188 "" do_fio(&c__1, ch__6, *ljob + 2); -#line 24119 "" +#line 24188 "" e_wsfe(); -#line 24119 "" +#line 24188 "" } /* (separate writes are needed to defeat compiler BUG!!!) */ /* write(51,'(a,$)')'.mid, produced by PMX 2.30' */ -#line 24124 "" - s_wsfe(&io___1783); +#line 24193 "" + s_wsfe(&io___1785); /* Writing concatenation */ -#line 24124 "" +#line 24193 "" i__5[0] = 22, a__4[0] = ".mid, produced by PMX "; -#line 24124 "" +#line 24193 "" i__5[1] = 5, a__4[1] = comver_1.versionc; -#line 24124 "" +#line 24193 "" s_cat(ch__7, a__4, i__5, &c__2, (ftnlen)27); -#line 24124 "" +#line 24193 "" do_fio(&c__1, ch__7, (ftnlen)27); -#line 24124 "" +#line 24193 "" e_wsfe(); -#line 24125 "" +#line 24194 "" if (commidi_1.debugmidi) { -#line 24125 "" - s_wsfe(&io___1784); +#line 24194 "" + s_wsfe(&io___1786); /* Writing concatenation */ -#line 24125 "" +#line 24194 "" i__4[0] = 23, a__3[0] = "\".mid, produced by PMX "; -#line 24125 "" +#line 24194 "" i__4[1] = 5, a__3[1] = comver_1.versionc; -#line 24125 "" +#line 24194 "" i__4[2] = 1, a__3[2] = "\""; -#line 24125 "" +#line 24194 "" s_cat(ch__8, a__3, i__4, &c__3, (ftnlen)29); -#line 24125 "" +#line 24194 "" do_fio(&c__1, ch__8, (ftnlen)29); -#line 24125 "" +#line 24194 "" e_wsfe(); -#line 24125 "" +#line 24194 "" } /* Conductor event data: Loop over sections. */ -#line 24130 "" +#line 24199 "" i__2 = commmac_1.nmidsec; -#line 24130 "" +#line 24199 "" for (isec = 1; isec <= i__2; ++isec) { -#line 24131 "" +#line 24200 "" if (isec < commmac_1.nmidsec) { -#line 24132 "" +#line 24201 "" mend = commmac_1.msecend[commidi_1.numchan + isec * 25 - 25]; -#line 24133 "" +#line 24202 "" } else { -#line 24134 "" +#line 24203 "" mend = commidi_1.imidi[commidi_1.numchan]; -#line 24135 "" +#line 24204 "" } -#line 24136 "" +#line 24205 "" i__6 = mend; -#line 24136 "" +#line 24205 "" for (i__ = commmac_1.msecstrt[commidi_1.numchan + isec * 25 - 25]; i__ <= i__6; ++i__) { -#line 24137 "" - s_wsfe(&io___1787); -#line 24137 "" +#line 24206 "" + s_wsfe(&io___1789); +#line 24206 "" *(unsigned char *)&ch__2[0] = (char) commidi_1.mmidi[ commidi_1.numchan + i__ * 25 - 25]; -#line 24137 "" +#line 24206 "" do_fio(&c__1, ch__2, (ftnlen)1); -#line 24137 "" +#line 24206 "" e_wsfe(); -#line 24138 "" +#line 24207 "" if (commidi_1.debugmidi) { -#line 24138 "" - s_wsfe(&io___1788); -#line 24138 "" +#line 24207 "" + s_wsfe(&io___1790); +#line 24207 "" do_fio(&c__1, (char *)&commidi_1.mmidi[commidi_1.numchan + i__ * 25 - 25], (ftnlen)sizeof(shortint)); -#line 24138 "" +#line 24207 "" e_wsfe(); -#line 24138 "" +#line 24207 "" } -#line 24139 "" +#line 24208 "" /* L17: */ -#line 24139 "" +#line 24208 "" } -#line 24140 "" +#line 24209 "" /* L16: */ -#line 24140 "" +#line 24209 "" } /* And close out the time sig / tempo track. */ -#line 24144 "" - s_wsfe(&io___1789); -#line 24144 "" +#line 24213 "" + s_wsfe(&io___1791); +#line 24213 "" do_fio(&c__1, "\000\377/\000", (ftnlen)4); -#line 24144 "" +#line 24213 "" e_wsfe(); -#line 24145 "" +#line 24214 "" if (commidi_1.debugmidi) { -#line 24145 "" - s_wsfe(&io___1790); -#line 24145 "" +#line 24214 "" + s_wsfe(&io___1792); +#line 24214 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24145 "" +#line 24214 "" do_fio(&c__1, (char *)&c__255, (ftnlen)sizeof(integer)); -#line 24145 "" +#line 24214 "" do_fio(&c__1, (char *)&c__47, (ftnlen)sizeof(integer)); -#line 24145 "" +#line 24214 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24145 "" +#line 24214 "" e_wsfe(); -#line 24145 "" +#line 24214 "" } /* Loop over track for each voice: The following sets up iv. */ -#line 24149 "" +#line 24218 "" all_1.iv = all_1.nv; -#line 24150 "" +#line 24219 "" if (commidi_1.twoline[all_1.nv - 1]) { -#line 24151 "" +#line 24220 "" kv = 2; -#line 24152 "" +#line 24221 "" } else { -#line 24153 "" +#line 24222 "" kv = 1; -#line 24154 "" +#line 24223 "" } /* Moved to pmxab to allow midivel, bal, tran as functions of instrument */ @@ -59961,421 +60092,421 @@ L4: /* call stop1() */ /* 14 continue */ -#line 24175 "" +#line 24244 "" i__2 = commidi_1.numchan - 1; -#line 24175 "" +#line 24244 "" for (icm = 0; icm <= i__2; ++icm) { /* Get the number of bytes in the data stream */ -#line 24179 "" +#line 24248 "" ndata = commidi_1.imidi[icm] + 1 - commmac_1.msecstrt[icm + commmac_1.nmidsec * 25 - 25]; -#line 24180 "" +#line 24249 "" i__6 = commmac_1.nmidsec - 1; -#line 24180 "" +#line 24249 "" for (isec = 1; isec <= i__6; ++isec) { -#line 24181 "" +#line 24250 "" ndata = ndata + 1 + commmac_1.msecend[icm + isec * 25 - 25] - commmac_1.msecstrt[icm + isec * 25 - 25]; -#line 24182 "" +#line 24251 "" /* L11: */ -#line 24182 "" +#line 24251 "" } /* c Add 3 (for instrum) plus 4 (for closing) to byte count, */ /* Add 3 for instrum, 4 for bal, plus 4 (for closing) to byte count, */ /* ndata = ndata+7 */ -#line 24188 "" +#line 24257 "" ndata += 11; /* Add 4+lnam(iinsiv(iv)) if lnam>0 , */ -#line 24192 "" +#line 24261 "" if (comtop_1.lnam[commvel_1.iinsiv[all_1.iv - 1] - 1] > 0) { -#line 24192 "" +#line 24261 "" ndata = ndata + 4 + comtop_1.lnam[commvel_1.iinsiv[all_1.iv - 1] - 1]; -#line 24192 "" +#line 24261 "" } /* Separate total byte counts into 4 bytes */ -#line 24196 "" +#line 24265 "" for (ibyte = 1; ibyte <= 4; ++ibyte) { -#line 24197 "" +#line 24266 "" if (ndata > 0) { -#line 24198 "" +#line 24267 "" *(unsigned char *)&byteq[ibyte - 1] = (char) (ndata % 256); -#line 24199 "" +#line 24268 "" ndata = lbit_shift(ndata, (ftnlen)-8); -#line 24200 "" +#line 24269 "" } else { -#line 24201 "" +#line 24270 "" *(unsigned char *)&byteq[ibyte - 1] = '\0'; -#line 24202 "" +#line 24271 "" } -#line 24203 "" +#line 24272 "" /* L2: */ -#line 24203 "" +#line 24272 "" } /* Now write front stuff for this track */ -#line 24207 "" - s_wsfe(&io___1795); +#line 24276 "" + s_wsfe(&io___1797); /* Writing concatenation */ -#line 24207 "" +#line 24276 "" i__7[0] = 4, a__5[0] = "MTrk"; -#line 24207 "" +#line 24276 "" i__7[1] = 1, a__5[1] = byteq + 3; -#line 24207 "" +#line 24276 "" i__7[2] = 1, a__5[2] = byteq + 2; -#line 24207 "" +#line 24276 "" i__7[3] = 1, a__5[3] = byteq + 1; -#line 24207 "" +#line 24276 "" i__7[4] = 1, a__5[4] = byteq; -#line 24207 "" +#line 24276 "" i__7[5] = 1, a__5[5] = "\000"; -#line 24207 "" +#line 24276 "" *(unsigned char *)&ch__2[0] = icmm[icm] + 192; -#line 24207 "" +#line 24276 "" i__7[6] = 1, a__5[6] = ch__2; -#line 24207 "" +#line 24276 "" *(unsigned char *)&ch__4[0] = commidi_1.midinst[commvel_1.iinsiv[ all_1.iv - 1] - 1]; -#line 24207 "" +#line 24276 "" i__7[7] = 1, a__5[7] = ch__4; -#line 24207 "" +#line 24276 "" i__7[8] = 1, a__5[8] = "\000"; -#line 24207 "" +#line 24276 "" *(unsigned char *)&ch__5[0] = icmm[icm] + 176; -#line 24207 "" +#line 24276 "" i__7[9] = 1, a__5[9] = ch__5; -#line 24207 "" +#line 24276 "" i__7[10] = 1, a__5[10] = "\n"; -#line 24207 "" +#line 24276 "" *(unsigned char *)&ch__10[0] = commvel_1.midbc[icm]; -#line 24207 "" +#line 24276 "" i__7[11] = 1, a__5[11] = ch__10; -#line 24207 "" +#line 24276 "" s_cat(ch__9, a__5, i__7, &c__12, (ftnlen)15); -#line 24207 "" +#line 24276 "" do_fio(&c__1, ch__9, (ftnlen)15); -#line 24207 "" +#line 24276 "" e_wsfe(); /* * //char(0)//char(12*16+icmm(icm))//char(midinst(iv)) */ -#line 24211 "" +#line 24280 "" if (commidi_1.debugmidi) { -#line 24211 "" - s_wsfe(&io___1796); -#line 24211 "" +#line 24280 "" + s_wsfe(&io___1798); +#line 24280 "" do_fio(&c__1, "icm=", (ftnlen)4); -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&icm, (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" do_fio(&c__1, " \"MTrk\"", (ftnlen)7); -#line 24211 "" +#line 24280 "" i__6 = *(unsigned char *)&byteq[3]; -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&i__6, (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" i__8 = *(unsigned char *)&byteq[2]; -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&i__8, (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" i__9 = *(unsigned char *)&byteq[1]; -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&i__9, (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" i__10 = *(unsigned char *)&byteq[0]; -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&i__10, (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" i__11 = icmm[icm] + 192; -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&i__11, (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&commidi_1.midinst[commvel_1.iinsiv[ all_1.iv - 1] - 1], (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" i__12 = icmm[icm] + 176; -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&i__12, (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&c__10, (ftnlen)sizeof(integer)); -#line 24211 "" +#line 24280 "" do_fio(&c__1, (char *)&commvel_1.midbc[icm], (ftnlen)sizeof( integer)); -#line 24211 "" +#line 24280 "" e_wsfe(); -#line 24211 "" +#line 24280 "" } /* * ichar(byteq(1)),0,12*16+icmm(icm),midinst(iv), */ -#line 24216 "" +#line 24285 "" if (comtop_1.lnam[commvel_1.iinsiv[all_1.iv - 1] - 1] > 0) { /* Add instrument name as sequence name */ -#line 24220 "" - s_wsfe(&io___1797); +#line 24289 "" + s_wsfe(&io___1799); /* Writing concatenation */ -#line 24220 "" +#line 24289 "" i__5[0] = 3, a__4[0] = "\000\377\003"; -#line 24220 "" +#line 24289 "" *(unsigned char *)&ch__2[0] = comtop_1.lnam[commvel_1.iinsiv[ all_1.iv - 1] - 1]; -#line 24220 "" +#line 24289 "" i__5[1] = 1, a__4[1] = ch__2; -#line 24220 "" +#line 24289 "" s_cat(ch__11, a__4, i__5, &c__2, (ftnlen)4); -#line 24220 "" +#line 24289 "" do_fio(&c__1, ch__11, (ftnlen)4); -#line 24220 "" +#line 24289 "" e_wsfe(); -#line 24222 "" +#line 24291 "" if (commidi_1.debugmidi) { -#line 24222 "" - s_wsfe(&io___1798); -#line 24222 "" +#line 24291 "" + s_wsfe(&io___1800); +#line 24291 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24222 "" +#line 24291 "" do_fio(&c__1, (char *)&c__255, (ftnlen)sizeof(integer)); -#line 24222 "" +#line 24291 "" do_fio(&c__1, (char *)&c__3, (ftnlen)sizeof(integer)); -#line 24222 "" +#line 24291 "" do_fio(&c__1, (char *)&comtop_1.lnam[commvel_1.iinsiv[ all_1.iv - 1] - 1], (ftnlen)sizeof(integer)); -#line 24222 "" +#line 24291 "" e_wsfe(); -#line 24222 "" +#line 24291 "" } -#line 24223 "" - s_wsfe(&io___1799); -#line 24223 "" +#line 24292 "" + s_wsfe(&io___1801); +#line 24292 "" do_fio(&c__1, comtop_1.inameq + (commvel_1.iinsiv[all_1.iv - 1] - 1) * 79, comtop_1.lnam[commvel_1.iinsiv[all_1.iv - 1] - 1] ); -#line 24223 "" +#line 24292 "" e_wsfe(); -#line 24225 "" +#line 24294 "" if (commidi_1.debugmidi) { -#line 24225 "" - s_wsfe(&io___1800); +#line 24294 "" + s_wsfe(&io___1802); /* Writing concatenation */ -#line 24225 "" +#line 24294 "" i__4[0] = 1, a__3[0] = "\""; -#line 24225 "" +#line 24294 "" i__4[1] = comtop_1.lnam[commvel_1.iinsiv[all_1.iv - 1] - 1], a__3[1] = comtop_1.inameq + (commvel_1.iinsiv[ all_1.iv - 1] - 1) * 79; -#line 24225 "" +#line 24294 "" i__4[2] = 1, a__3[2] = "\""; -#line 24225 "" +#line 24294 "" s_cat(ch__12, a__3, i__4, &c__3, (ftnlen)81); -#line 24225 "" +#line 24294 "" do_fio(&c__1, ch__12, comtop_1.lnam[commvel_1.iinsiv[all_1.iv - 1] - 1] + 2); -#line 24225 "" +#line 24294 "" e_wsfe(); -#line 24225 "" +#line 24294 "" } -#line 24227 "" +#line 24296 "" } -#line 24228 "" - s_wsfi(&io___1802); -#line 24228 "" +#line 24297 "" + s_wsfi(&io___1804); +#line 24297 "" do_fio(&c__1, (char *)&icm, (ftnlen)sizeof(integer)); -#line 24228 "" +#line 24297 "" e_wsfi(); -#line 24229 "" - s_wsfi(&io___1804); -#line 24229 "" +#line 24298 "" + s_wsfi(&io___1806); +#line 24298 "" do_fio(&c__1, (char *)&commidi_1.midinst[commvel_1.iinsiv[all_1.iv - 1] - 1], (ftnlen)sizeof(integer)); -#line 24229 "" +#line 24298 "" e_wsfi(); /* Writing concatenation */ -#line 24230 "" +#line 24299 "" i__1[0] = 16, a__1[0] = "MIDI instrument "; -#line 24230 "" +#line 24299 "" i__1[1] = 2, a__1[1] = tempoq; -#line 24230 "" +#line 24299 "" i__1[2] = 4, a__1[2] = " is "; -#line 24230 "" +#line 24299 "" i__1[3] = 3, a__1[3] = instq; -#line 24230 "" +#line 24299 "" s_cat(ch__13, a__1, i__1, &c__4, (ftnlen)25); -#line 24230 "" +#line 24299 "" printl_(ch__13, (ftnlen)25); /* Notes: Loop over sections. */ -#line 24234 "" +#line 24303 "" i__6 = commmac_1.nmidsec; -#line 24234 "" +#line 24303 "" for (isec = 1; isec <= i__6; ++isec) { -#line 24235 "" +#line 24304 "" if (isec < commmac_1.nmidsec) { -#line 24236 "" +#line 24305 "" mend = commmac_1.msecend[icm + isec * 25 - 25]; -#line 24237 "" +#line 24306 "" } else { -#line 24238 "" +#line 24307 "" mend = commidi_1.imidi[icm]; -#line 24239 "" +#line 24308 "" } -#line 24240 "" +#line 24309 "" i__8 = mend; -#line 24240 "" +#line 24309 "" for (i__ = commmac_1.msecstrt[icm + isec * 25 - 25]; i__ <= i__8; ++i__) { -#line 24241 "" - s_wsfe(&io___1805); -#line 24241 "" +#line 24310 "" + s_wsfe(&io___1807); +#line 24310 "" *(unsigned char *)&ch__2[0] = (char) commidi_1.mmidi[icm + i__ * 25 - 25]; -#line 24241 "" +#line 24310 "" do_fio(&c__1, ch__2, (ftnlen)1); -#line 24241 "" +#line 24310 "" e_wsfe(); -#line 24242 "" +#line 24311 "" if (commidi_1.debugmidi) { -#line 24242 "" - s_wsfe(&io___1806); -#line 24242 "" +#line 24311 "" + s_wsfe(&io___1808); +#line 24311 "" do_fio(&c__1, (char *)&commidi_1.mmidi[icm + i__ * 25 - 25], (ftnlen)sizeof(shortint)); -#line 24242 "" +#line 24311 "" e_wsfe(); -#line 24242 "" +#line 24311 "" } -#line 24243 "" +#line 24312 "" /* L10: */ -#line 24243 "" +#line 24312 "" } -#line 24244 "" +#line 24313 "" /* L9: */ -#line 24244 "" +#line 24313 "" } /* Closing 4 bytes */ -#line 24248 "" - s_wsfe(&io___1807); +#line 24317 "" + s_wsfe(&io___1809); /* Writing concatenation */ -#line 24248 "" +#line 24317 "" chax_(ch__2, (ftnlen)1, &c__0); -#line 24248 "" +#line 24317 "" i__1[0] = 1, a__1[0] = ch__2; -#line 24248 "" +#line 24317 "" i__1[1] = 1, a__1[1] = "\377"; -#line 24248 "" +#line 24317 "" i__1[2] = 1, a__1[2] = "/"; -#line 24248 "" +#line 24317 "" i__1[3] = 1, a__1[3] = "\000"; -#line 24248 "" +#line 24317 "" s_cat(ch__11, a__1, i__1, &c__4, (ftnlen)4); -#line 24248 "" +#line 24317 "" do_fio(&c__1, ch__11, (ftnlen)4); -#line 24248 "" +#line 24317 "" e_wsfe(); -#line 24249 "" +#line 24318 "" if (commidi_1.debugmidi) { -#line 24249 "" - s_wsfe(&io___1808); -#line 24249 "" +#line 24318 "" + s_wsfe(&io___1810); +#line 24318 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24249 "" +#line 24318 "" do_fio(&c__1, (char *)&c__255, (ftnlen)sizeof(integer)); -#line 24249 "" +#line 24318 "" do_fio(&c__1, (char *)&c__47, (ftnlen)sizeof(integer)); -#line 24249 "" +#line 24318 "" do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer)); -#line 24249 "" +#line 24318 "" e_wsfe(); -#line 24249 "" +#line 24318 "" } -#line 24250 "" +#line 24319 "" if (kv == 2) { -#line 24251 "" +#line 24320 "" kv = 1; -#line 24252 "" +#line 24321 "" } else if (all_1.iv == 1) { -#line 24253 "" +#line 24322 "" goto L5; -#line 24254 "" +#line 24323 "" } else { -#line 24255 "" +#line 24324 "" --all_1.iv; -#line 24256 "" +#line 24325 "" if (commidi_1.twoline[all_1.iv - 1]) { -#line 24256 "" +#line 24325 "" kv = 2; -#line 24256 "" +#line 24325 "" } -#line 24257 "" +#line 24326 "" } -#line 24258 "" +#line 24327 "" L5: -#line 24258 "" +#line 24327 "" ; -#line 24258 "" +#line 24327 "" } -#line 24259 "" - s_wsfe(&io___1809); -#line 24259 "" +#line 24328 "" + s_wsfe(&io___1811); +#line 24328 "" do_fio(&c__1, "Bytes used:", (ftnlen)11); -#line 24259 "" +#line 24328 "" i__2 = commidi_1.numchan; -#line 24259 "" +#line 24328 "" for (icm = 0; icm <= i__2; ++icm) { -#line 24259 "" +#line 24328 "" do_fio(&c__1, (char *)&commidi_1.imidi[icm], (ftnlen)sizeof(integer)); -#line 24259 "" +#line 24328 "" } -#line 24259 "" +#line 24328 "" e_wsfe(); -#line 24260 "" - s_wsfe(&io___1810); -#line 24260 "" +#line 24329 "" + s_wsfe(&io___1812); +#line 24329 "" do_fio(&c__1, "Bytes used:", (ftnlen)11); -#line 24260 "" +#line 24329 "" i__2 = commidi_1.numchan; -#line 24260 "" +#line 24329 "" for (icm = 0; icm <= i__2; ++icm) { -#line 24260 "" +#line 24329 "" do_fio(&c__1, (char *)&commidi_1.imidi[icm], (ftnlen)sizeof(integer)); -#line 24260 "" +#line 24329 "" } -#line 24260 "" +#line 24329 "" e_wsfe(); -#line 24262 "" +#line 24331 "" cl__1.cerr = 0; -#line 24262 "" +#line 24331 "" cl__1.cunit = 51; -#line 24262 "" +#line 24331 "" cl__1.csta = 0; -#line 24262 "" +#line 24331 "" f_clos(&cl__1); -#line 24263 "" +#line 24332 "" if (commidi_1.debugmidi) { -#line 24263 "" +#line 24332 "" cl__1.cerr = 0; -#line 24263 "" +#line 24332 "" cl__1.cunit = 52; -#line 24263 "" +#line 24332 "" cl__1.csta = 0; -#line 24263 "" +#line 24332 "" f_clos(&cl__1); -#line 24263 "" +#line 24332 "" } -#line 24264 "" +#line 24333 "" return 0; } /* writemidi_ */ @@ -60400,143 +60531,143 @@ L5: static char notexq[79]; /* Fortran I/O blocks */ - static cilist io___1814 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1816 = { 0, 11, 0, "(a)", 0 }; /* Assumes notexq is blank */ -#line 24275 "" +#line 24344 "" /* Parameter adjustments */ -#line 24275 "" +#line 24344 "" --itranskey; -#line 24275 "" +#line 24344 "" --iinsttrans; -#line 24275 "" +#line 24344 "" -#line 24275 "" +#line 24344 "" /* Function Body */ -#line 24275 "" +#line 24344 "" i__1 = *ninsttrans; -#line 24275 "" +#line 24344 "" for (i__ = 1; i__ <= i__1; ++i__) { /* Writing concatenation */ -#line 24276 "" +#line 24345 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 24276 "" +#line 24345 "" i__2[0] = 1, a__1[0] = ch__1; -#line 24276 "" +#line 24345 "" i__2[1] = 7, a__1[1] = "setsign"; -#line 24276 "" +#line 24345 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 24277 "" +#line 24346 "" lnote = 8; -#line 24278 "" +#line 24347 "" if (iinsttrans[i__] < 10) { /* Writing concatenation */ -#line 24279 "" +#line 24348 "" i__2[0] = lnote, a__1[0] = notexq; -#line 24279 "" +#line 24348 "" i__3 = iinsttrans[i__] + 48; -#line 24279 "" +#line 24348 "" chax_(ch__1, (ftnlen)1, &i__3); -#line 24279 "" +#line 24348 "" i__2[1] = 1, a__1[1] = ch__1; -#line 24279 "" +#line 24348 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 24280 "" +#line 24349 "" ++lnote; -#line 24281 "" +#line 24350 "" } else { -#line 24282 "" +#line 24351 "" i__3 = lnote; -#line 24282 "" +#line 24351 "" ici__1.icierr = 0; -#line 24282 "" +#line 24351 "" ici__1.icirnum = 1; -#line 24282 "" +#line 24351 "" ici__1.icirlen = lnote + 4 - i__3; -#line 24282 "" +#line 24351 "" ici__1.iciunit = notexq + i__3; -#line 24282 "" +#line 24351 "" ici__1.icifmt = "(a1,i2,a1)"; -#line 24282 "" +#line 24351 "" s_wsfi(&ici__1); -#line 24282 "" +#line 24351 "" do_fio(&c__1, "{", (ftnlen)1); -#line 24282 "" +#line 24351 "" do_fio(&c__1, (char *)&iinsttrans[i__], (ftnlen)sizeof(integer)); -#line 24282 "" +#line 24351 "" do_fio(&c__1, "}", (ftnlen)1); -#line 24282 "" +#line 24351 "" e_wsfi(); -#line 24284 "" +#line 24353 "" lnote += 4; -#line 24285 "" +#line 24354 "" } -#line 24286 "" +#line 24355 "" if (itranskey[i__] < 0) { -#line 24287 "" +#line 24356 "" i__3 = lnote; -#line 24287 "" +#line 24356 "" ici__1.icierr = 0; -#line 24287 "" +#line 24356 "" ici__1.icirnum = 1; -#line 24287 "" +#line 24356 "" ici__1.icirlen = lnote + 4 - i__3; -#line 24287 "" +#line 24356 "" ici__1.iciunit = notexq + i__3; -#line 24287 "" +#line 24356 "" ici__1.icifmt = "(a1,i2,a1)"; -#line 24287 "" +#line 24356 "" s_wsfi(&ici__1); -#line 24287 "" +#line 24356 "" do_fio(&c__1, "{", (ftnlen)1); -#line 24287 "" +#line 24356 "" do_fio(&c__1, (char *)&itranskey[i__], (ftnlen)sizeof(integer)); -#line 24287 "" +#line 24356 "" do_fio(&c__1, "}", (ftnlen)1); -#line 24287 "" +#line 24356 "" e_wsfi(); -#line 24289 "" +#line 24358 "" lnote += 4; -#line 24290 "" +#line 24359 "" } else { /* Writing concatenation */ -#line 24291 "" +#line 24360 "" i__2[0] = lnote, a__1[0] = notexq; -#line 24291 "" +#line 24360 "" i__3 = itranskey[i__] + 48; -#line 24291 "" +#line 24360 "" chax_(ch__1, (ftnlen)1, &i__3); -#line 24291 "" +#line 24360 "" i__2[1] = 1, a__1[1] = ch__1; -#line 24291 "" +#line 24360 "" s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79); -#line 24292 "" +#line 24361 "" ++lnote; -#line 24293 "" +#line 24362 "" } -#line 24294 "" - s_wsfe(&io___1814); +#line 24363 "" + s_wsfe(&io___1816); /* Writing concatenation */ -#line 24294 "" +#line 24363 "" i__2[0] = lnote, a__1[0] = notexq; -#line 24294 "" +#line 24363 "" i__2[1] = 1, a__1[1] = "%"; -#line 24294 "" +#line 24363 "" s_cat(ch__2, a__1, i__2, &c__2, (ftnlen)80); -#line 24294 "" +#line 24363 "" do_fio(&c__1, ch__2, lnote + 1); -#line 24294 "" +#line 24363 "" e_wsfe(); -#line 24295 "" +#line 24364 "" /* L1: */ -#line 24295 "" +#line 24364 "" } -#line 24296 "" +#line 24365 "" *flag__ = FALSE_; -#line 24297 "" +#line 24366 "" return 0; } /* writesetsign_ */ @@ -60551,75 +60682,75 @@ L5: integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void) ; -#line 24301 "" +#line 24370 "" if (*x < .95f) { -#line 24302 "" +#line 24371 "" i__1 = *lenline; -#line 24302 "" +#line 24371 "" ici__1.icierr = 0; -#line 24302 "" +#line 24371 "" ici__1.icirnum = 1; -#line 24302 "" +#line 24371 "" ici__1.icirlen = *lenline + 2 - i__1; -#line 24302 "" +#line 24371 "" ici__1.iciunit = notexq + i__1; -#line 24302 "" +#line 24371 "" ici__1.icifmt = "(f2.1)"; -#line 24302 "" +#line 24371 "" s_wsfi(&ici__1); -#line 24302 "" +#line 24371 "" do_fio(&c__1, (char *)&(*x), (ftnlen)sizeof(real)); -#line 24302 "" +#line 24371 "" e_wsfi(); -#line 24303 "" +#line 24372 "" *lenline += 2; -#line 24304 "" +#line 24373 "" } else if (*x < 9.95f) { -#line 24305 "" +#line 24374 "" i__1 = *lenline; -#line 24305 "" +#line 24374 "" ici__1.icierr = 0; -#line 24305 "" +#line 24374 "" ici__1.icirnum = 1; -#line 24305 "" +#line 24374 "" ici__1.icirlen = *lenline + 3 - i__1; -#line 24305 "" +#line 24374 "" ici__1.iciunit = notexq + i__1; -#line 24305 "" +#line 24374 "" ici__1.icifmt = "(f3.1)"; -#line 24305 "" +#line 24374 "" s_wsfi(&ici__1); -#line 24305 "" +#line 24374 "" do_fio(&c__1, (char *)&(*x), (ftnlen)sizeof(real)); -#line 24305 "" +#line 24374 "" e_wsfi(); -#line 24306 "" +#line 24375 "" *lenline += 3; -#line 24307 "" +#line 24376 "" } else { -#line 24308 "" +#line 24377 "" i__1 = *lenline; -#line 24308 "" +#line 24377 "" ici__1.icierr = 0; -#line 24308 "" +#line 24377 "" ici__1.icirnum = 1; -#line 24308 "" +#line 24377 "" ici__1.icirlen = *lenline + 4 - i__1; -#line 24308 "" +#line 24377 "" ici__1.iciunit = notexq + i__1; -#line 24308 "" +#line 24377 "" ici__1.icifmt = "(f4.1)"; -#line 24308 "" +#line 24377 "" s_wsfi(&ici__1); -#line 24308 "" +#line 24377 "" do_fio(&c__1, (char *)&(*x), (ftnlen)sizeof(real)); -#line 24308 "" +#line 24377 "" e_wsfi(); -#line 24309 "" +#line 24378 "" *lenline += 4; -#line 24310 "" +#line 24379 "" } -#line 24311 "" +#line 24380 "" return 0; } /* writflot_ */ @@ -60647,11 +60778,11 @@ L5: extern integer numclef_(char *, ftnlen); /* Fortran I/O blocks */ - static cilist io___1817 = { 0, 6, 0, 0, 0 }; - static cilist io___1818 = { 0, 6, 0, 0, 0 }; - static icilist io___1822 = { 0, temq, 0, "(a9,i2,a1)", 20, 1 }; - static cilist io___1823 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1819 = { 0, 6, 0, 0, 0 }; + static cilist io___1820 = { 0, 6, 0, 0, 0 }; + static icilist io___1824 = { 0, temq, 0, "(a9,i2,a1)", 20, 1 }; static cilist io___1825 = { 0, 11, 0, "(a)", 0 }; + static cilist io___1827 = { 0, 11, 0, "(a)", 0 }; /* subroutine wsclef(iv,ninow,clefq,nclef) */ @@ -60662,268 +60793,280 @@ L5: /* In pmx271, had removed clefq, so with 2 or more staves in */ /* an instrument, had problems. So replace in 272 */ -#line 24330 "" +#line 24399 "" if (*nclef < 7) { -#line 24331 "" +#line 24400 "" i__1 = *nclef + 48; -#line 24331 "" +#line 24400 "" chax_(ch__1, (ftnlen)1, &i__1); -#line 24331 "" +#line 24400 "" *(unsigned char *)&comclefq_1.clefq[*iv - 1] = *(unsigned char *)& ch__1[0]; -#line 24332 "" +#line 24401 "" } else { -#line 24333 "" +#line 24402 "" *(unsigned char *)&comclefq_1.clefq[*iv - 1] = '9'; -#line 24334 "" +#line 24403 "" } -#line 24335 "" +#line 24404 "" if (! comlast_1.islast) { -#line 24335 "" +#line 24404 "" return 0; -#line 24335 "" +#line 24404 "" } -#line 24336 "" +#line 24405 "" iv1 = 1; -#line 24337 "" +#line 24406 "" i__1 = *ninow; -#line 24337 "" +#line 24406 "" for (iinst = 1; iinst <= i__1; ++iinst) { -#line 24338 "" +#line 24407 "" if (*iv < iv1 + comnvi_1.nspern[iinst - 1]) { -#line 24338 "" +#line 24407 "" goto L2; -#line 24338 "" +#line 24407 "" } -#line 24339 "" +#line 24408 "" iv1 += comnvi_1.nspern[iinst - 1]; -#line 24340 "" +#line 24409 "" /* L1: */ -#line 24340 "" +#line 24409 "" } -#line 24341 "" - s_wsle(&io___1817); -#line 24341 "" +#line 24410 "" + s_wsle(&io___1819); +#line 24410 "" e_wsle(); -#line 24342 "" - s_wsle(&io___1818); -#line 24342 "" +#line 24411 "" + s_wsle(&io___1820); +#line 24411 "" do_lio(&c__9, &c__1, "Should not be here in wsclef!", (ftnlen)29); -#line 24342 "" +#line 24411 "" e_wsle(); -#line 24343 "" +#line 24412 "" stop1_(); -#line 24344 "" +#line 24413 "" L2: /* Here, iinst is the instrument number with staff of clef change */ -#line 24348 "" +#line 24417 "" iv2 = iv1 + comnvi_1.nspern[iinst - 1] - 1; -#line 24349 "" +#line 24418 "" if (iinst < 10) { /* Writing concatenation */ -#line 24350 "" +#line 24419 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 24350 "" +#line 24419 "" i__2[0] = 1, a__1[0] = ch__1; -#line 24350 "" +#line 24419 "" i__2[1] = 7, a__1[1] = "setclef"; -#line 24350 "" +#line 24419 "" i__1 = iinst + 48; -#line 24350 "" +#line 24419 "" chax_(ch__2, (ftnlen)1, &i__1); -#line 24350 "" +#line 24419 "" i__2[2] = 1, a__1[2] = ch__2; -#line 24350 "" +#line 24419 "" s_cat(temq, a__1, i__2, &c__3, (ftnlen)20); -#line 24351 "" +#line 24420 "" ltem = 9; -#line 24352 "" +#line 24421 "" } else { -#line 24353 "" - s_wsfi(&io___1822); +#line 24422 "" + s_wsfi(&io___1824); /* Writing concatenation */ -#line 24353 "" +#line 24422 "" chax_(ch__1, (ftnlen)1, &c__92); -#line 24353 "" +#line 24422 "" i__3[0] = 1, a__2[0] = ch__1; -#line 24353 "" +#line 24422 "" i__3[1] = 8, a__2[1] = "setclef{"; -#line 24353 "" +#line 24422 "" s_cat(ch__3, a__2, i__3, &c__2, (ftnlen)9); -#line 24353 "" +#line 24422 "" do_fio(&c__1, ch__3, (ftnlen)9); -#line 24353 "" +#line 24422 "" do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer)); -#line 24353 "" +#line 24422 "" do_fio(&c__1, "}", (ftnlen)1); -#line 24353 "" +#line 24422 "" e_wsfi(); -#line 24354 "" +#line 24423 "" ltem = 12; -#line 24355 "" +#line 24424 "" } -#line 24356 "" +#line 24425 "" if (iv1 == iv2) { /* Only one staff (iv) in instrument with clef change */ -#line 24360 "" - s_wsfe(&io___1823); +#line 24429 "" + s_wsfe(&io___1825); /* Writing concatenation */ -#line 24360 "" +#line 24429 "" i__2[0] = ltem, a__1[0] = temq; -#line 24360 "" +#line 24429 "" i__2[1] = 1, a__1[1] = comclefq_1.clefq + (*iv - 1); -#line 24360 "" +#line 24429 "" i__2[2] = 1, a__1[2] = "%"; -#line 24360 "" +#line 24429 "" s_cat(ch__4, a__1, i__2, &c__3, (ftnlen)22); -#line 24360 "" +#line 24429 "" do_fio(&c__1, ch__4, ltem + 2); -#line 24360 "" +#line 24429 "" e_wsfe(); -#line 24361 "" +#line 24430 "" } else { /* Writing concatenation */ -#line 24362 "" +#line 24431 "" i__3[0] = ltem, a__2[0] = temq; -#line 24362 "" +#line 24431 "" i__3[1] = 1, a__2[1] = "{"; -#line 24362 "" +#line 24431 "" s_cat(temq, a__2, i__3, &c__2, (ftnlen)20); -#line 24363 "" +#line 24432 "" ++ltem; /* Loop over staves, but clefq has only changed for one of them */ -#line 24367 "" +#line 24436 "" i__1 = iv2; -#line 24367 "" +#line 24436 "" for (iiv = iv1; iiv <= i__1; ++iiv) { /* Writing concatenation */ -#line 24368 "" +#line 24437 "" i__3[0] = ltem, a__2[0] = temq; -#line 24368 "" +#line 24437 "" i__4 = numclef_(comclefq_1.clefq + (iiv - 1), (ftnlen)1) + 48; -#line 24368 "" +#line 24437 "" chax_(ch__1, (ftnlen)1, &i__4); -#line 24368 "" +#line 24437 "" i__3[1] = 1, a__2[1] = ch__1; -#line 24368 "" +#line 24437 "" s_cat(temq, a__2, i__3, &c__2, (ftnlen)20); -#line 24369 "" +#line 24438 "" ++ltem; -#line 24370 "" +#line 24439 "" /* L3: */ -#line 24370 "" +#line 24439 "" } -#line 24371 "" - s_wsfe(&io___1825); +#line 24440 "" + s_wsfe(&io___1827); /* Writing concatenation */ -#line 24371 "" +#line 24440 "" i__3[0] = ltem, a__2[0] = temq; -#line 24371 "" +#line 24440 "" i__3[1] = 2, a__2[1] = "}%"; -#line 24371 "" +#line 24440 "" s_cat(ch__4, a__2, i__3, &c__2, (ftnlen)22); -#line 24371 "" +#line 24440 "" do_fio(&c__1, ch__4, ltem + 2); -#line 24371 "" +#line 24440 "" e_wsfe(); -#line 24372 "" +#line 24441 "" } -#line 24373 "" +#line 24442 "" return 0; } /* wsclef_ */ /* Subroutine */ int chkpmxlyr_(char *lineq, integer *iccount, integer * lyrerr, ftnlen lineq_len) { + /* System generated locals */ + integer i__1; + /* Builtin functions */ - integer i_indx(char *, char *, ftnlen, ftnlen); + integer s_cmp(char *, char *, ftnlen, ftnlen), i_indx(char *, char *, + ftnlen, ftnlen); /* Local variables */ static char charq[1]; extern /* Subroutine */ int g1etchar_(char *, integer *, char *, ftnlen, ftnlen); -#line 24378 "" +#line 24447 "" *lyrerr = 0; /* On entry, last char was " */ -#line 24382 "" +#line 24451 "" L18: -#line 24382 "" +#line 24451 "" g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 24383 "" +#line 24452 "" if (*iccount == 121) { -#line 24384 "" +#line 24453 "" *lyrerr = 2; -#line 24385 "" +#line 24454 "" return 0; -#line 24386 "" - } else if (*(unsigned char *)charq == '"') { -#line 24387 "" - g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); +/* else if (charq.eq.'"') then */ +#line 24456 "" + } else /* if(complicated condition) */ { +#line 24456 "" + i__1 = *iccount - 2; +#line 24456 "" + if (*(unsigned char *)charq == '"' && ! (s_cmp(lineq + i__1, "\\", * + iccount - 1 - i__1, (ftnlen)1) == 0)) { +#line 24458 "" + g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); /* Check for raise/lower command */ -#line 24391 "" - if (*(unsigned char *)charq == '@') { +#line 24462 "" + if (*(unsigned char *)charq == '@') { /* @ positions lyrics vertically for current voice */ /* [a,b] above or below of the staff */ /* +/- i offset, \internotes */ -#line 24397 "" - g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 24398 "" - if (i_indx("ab", charq, (ftnlen)2, (ftnlen)1) == 0) { -#line 24399 "" - *lyrerr = 3; -#line 24400 "" - return 0; -#line 24401 "" - } -#line 24402 "" - g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 24403 "" - if (i_indx("+-", charq, (ftnlen)2, (ftnlen)1) == 0) { -#line 24404 "" - *lyrerr = 4; -#line 24405 "" - return 0; -#line 24406 "" - } -#line 24407 "" - g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); -#line 24408 "" - if (i_indx("123456789", charq, (ftnlen)9, (ftnlen)1) == 0) { -#line 24409 "" - *lyrerr = 5; -#line 24410 "" - return 0; -#line 24411 "" - } -#line 24412 "" - } else if (*(unsigned char *)charq != ' ') { +#line 24468 "" + g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); +#line 24469 "" + if (i_indx("ab", charq, (ftnlen)2, (ftnlen)1) == 0) { +#line 24470 "" + *lyrerr = 3; +#line 24471 "" + return 0; +#line 24472 "" + } +#line 24473 "" + g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); +#line 24474 "" + if (i_indx("+-", charq, (ftnlen)2, (ftnlen)1) == 0) { +#line 24475 "" + *lyrerr = 4; +#line 24476 "" + return 0; +#line 24477 "" + } +#line 24478 "" + g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1); +#line 24479 "" + if (i_indx("123456789", charq, (ftnlen)9, (ftnlen)1) == 0) { +#line 24480 "" + *lyrerr = 5; +#line 24481 "" + return 0; +#line 24482 "" + } +#line 24483 "" + } else if (*(unsigned char *)charq != ' ') { /* 2nd " must be followed by ' ' */ -#line 24416 "" - *lyrerr = 1; -#line 24417 "" +#line 24487 "" + *lyrerr = 1; +#line 24488 "" + return 0; +#line 24489 "" + } +#line 24490 "" return 0; -#line 24418 "" +#line 24491 "" } -#line 24419 "" - return 0; -#line 24420 "" +#line 24491 "" } -#line 24421 "" +#line 24492 "" goto L18; } /* chkpmxlyr_ */ @@ -60939,9 +61082,9 @@ L18: integer i__1, i__2[4], i__3[6], i__4, i__5[7]; /* Builtin functions */ - integer i_indx(char *, char *, ftnlen, ftnlen), s_wsle(cilist *), do_lio( - integer *, integer *, char *, ftnlen), e_wsle(void), s_cmp(char *, - char *, ftnlen, ftnlen); + integer i_indx(char *, char *, ftnlen, ftnlen), s_cmp(char *, char *, + ftnlen, ftnlen), s_wsle(cilist *), do_lio(integer *, integer *, + char *, ftnlen), e_wsle(void); /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen), s_copy(char *, char *, ftnlen, ftnlen); @@ -60954,7 +61097,7 @@ L18: extern integer lenstr_(char *, integer *, ftnlen); /* Fortran I/O blocks */ - static cilist io___1832 = { 0, 6, 0, 0, 0 }; + static cilist io___1834 = { 0, 6, 0, 0, 0 }; @@ -60962,149 +61105,167 @@ L18: /* with \pmxlyr{...}\, but also look for ~ in lyrics and replace with '\ll ', */ /* (unless preceded with '\'), check length */ -#line 24432 "" +#line 24503 "" iend = lenstr_(lineq, &c__128, (ftnlen)128); -#line 24433 "" + +/* i2nd = iccount+index(lineq(iccount+1:128),'"') */ +/* Find position of closing '"'; must bypass any \" which is used for umlaut */ + +#line 24508 "" i__1 = *iccount; -#line 24433 "" +#line 24508 "" i2nd = *iccount + i_indx(lineq + i__1, "\"", 128 - i__1, (ftnlen)1); -#line 24434 "" +#line 24509 "" +L2: +#line 24510 "" + i__1 = i2nd - 2; +#line 24510 "" + if (s_cmp(lineq + i__1, "\\", i2nd - 1 - i__1, (ftnlen)1) == 0) { +#line 24511 "" + i__1 = i2nd; +#line 24511 "" + i2nd += i_indx(lineq + i__1, "\"", 128 - i__1, (ftnlen)1); +#line 24512 "" + goto L2; +#line 24513 "" + } +#line 24514 "" istart = *iccount; -#line 24435 "" +#line 24515 "" L1: -#line 24435 "" +#line 24515 "" i__1 = istart; -#line 24435 "" +#line 24515 "" itilde = istart + i_indx(lineq + i__1, "~", i2nd - 1 - i__1, (ftnlen)1); -#line 24436 "" +#line 24516 "" if (itilde > istart && itilde < i2nd) { /* Replace tilde if not preceded by \ */ -#line 24440 "" +#line 24520 "" if (iend >= 117) { -#line 24441 "" - s_wsle(&io___1832); -#line 24441 "" +#line 24521 "" + s_wsle(&io___1834); +#line 24521 "" do_lio(&c__9, &c__1, "Sorry, lyric string is too long, stopping", (ftnlen)41); -#line 24441 "" +#line 24521 "" e_wsle(); -#line 24442 "" +#line 24522 "" stop1_(); -#line 24443 "" +#line 24523 "" } else /* if(complicated condition) */ { -#line 24443 "" +#line 24523 "" i__1 = itilde - 2; -#line 24443 "" +#line 24523 "" if (s_cmp(lineq + i__1, sq, itilde - 1 - i__1, (ftnlen)1) == 0) { -#line 24444 "" +#line 24524 "" istart = itilde; -#line 24445 "" +#line 24525 "" goto L1; -#line 24446 "" +#line 24526 "" } -#line 24446 "" +#line 24526 "" } -#line 24447 "" +#line 24527 "" i__1 = itilde; /* Writing concatenation */ -#line 24447 "" +#line 24527 "" i__2[0] = itilde - 1, a__1[0] = lineq; -#line 24447 "" +#line 24527 "" i__2[1] = 1, a__1[1] = sq; -#line 24447 "" +#line 24527 "" i__2[2] = 3, a__1[2] = "lk "; -#line 24447 "" +#line 24527 "" i__2[3] = iend - i__1, a__1[3] = lineq + i__1; -#line 24447 "" +#line 24527 "" s_cat(lineqt, a__1, i__2, &c__4, (ftnlen)128); -#line 24449 "" +#line 24529 "" iend = lenstr_(lineqt, &c__128, (ftnlen)128); -#line 24450 "" +#line 24530 "" i2nd += 3; -#line 24451 "" +#line 24531 "" s_copy(lineq, lineqt, (ftnlen)128, (ftnlen)128); -#line 24452 "" +#line 24532 "" goto L1; -#line 24453 "" +#line 24533 "" } -#line 24454 "" +#line 24534 "" if (*iccount == 1) { -#line 24455 "" +#line 24535 "" i__1 = i2nd; /* Writing concatenation */ -#line 24455 "" +#line 24535 "" i__3[0] = 1, a__2[0] = sq; -#line 24455 "" +#line 24535 "" i__3[1] = 7, a__2[1] = "pmxlyr{"; -#line 24455 "" +#line 24535 "" i__3[2] = i2nd - 2, a__2[2] = lineq + 1; -#line 24455 "" +#line 24535 "" i__3[3] = 1, a__2[3] = "}"; -#line 24455 "" +#line 24535 "" i__3[4] = 1, a__2[4] = sq; -#line 24455 "" +#line 24535 "" i__3[5] = 128 - i__1, a__2[5] = lineq + i__1; -#line 24455 "" +#line 24535 "" s_cat(lineqt, a__2, i__3, &c__6, (ftnlen)128); -#line 24457 "" +#line 24537 "" } else { -#line 24458 "" +#line 24538 "" i__1 = *iccount; -#line 24458 "" +#line 24538 "" i__4 = i2nd; /* Writing concatenation */ -#line 24458 "" +#line 24538 "" i__5[0] = *iccount - 1, a__3[0] = lineq; -#line 24458 "" +#line 24538 "" i__5[1] = 1, a__3[1] = sq; -#line 24458 "" +#line 24538 "" i__5[2] = 7, a__3[2] = "pmxlyr{"; -#line 24458 "" +#line 24538 "" i__5[3] = i2nd - 1 - i__1, a__3[3] = lineq + i__1; -#line 24458 "" +#line 24538 "" i__5[4] = 1, a__3[4] = "}"; -#line 24458 "" +#line 24538 "" i__5[5] = 1, a__3[5] = sq; -#line 24458 "" +#line 24538 "" i__5[6] = 128 - i__4, a__3[6] = lineq + i__4; -#line 24458 "" +#line 24538 "" s_cat(lineqt, a__3, i__5, &c__7, (ftnlen)128); -#line 24461 "" +#line 24541 "" } -#line 24462 "" +#line 24542 "" i2nd += 8; -#line 24463 "" +#line 24543 "" s_copy(lineq, lineqt, (ftnlen)128, (ftnlen)128); -#line 24464 "" +#line 24544 "" i__1 = i2nd; -#line 24464 "" +#line 24544 "" if (s_cmp(lineq + i__1, "@", i2nd + 1 - i__1, (ftnlen)1) == 0) { -#line 24465 "" +#line 24545 "" i__1 = i2nd + 1; -#line 24465 "" +#line 24545 "" i__4 = i2nd + 4; /* Writing concatenation */ -#line 24465 "" +#line 24545 "" i__3[0] = i2nd, a__2[0] = lineq; -#line 24465 "" +#line 24545 "" i__3[1] = 3, a__2[1] = "at{"; -#line 24465 "" +#line 24545 "" i__3[2] = i2nd + 4 - i__1, a__2[2] = lineq + i__1; -#line 24465 "" +#line 24545 "" i__3[3] = 1, a__2[3] = "}"; -#line 24465 "" +#line 24545 "" i__3[4] = 1, a__2[4] = sq; -#line 24465 "" +#line 24545 "" i__3[5] = 128 - i__4, a__2[5] = lineq + i__4; -#line 24465 "" +#line 24545 "" s_cat(lineqt, a__2, i__3, &c__6, (ftnlen)128); -#line 24467 "" +#line 24547 "" s_copy(lineq, lineqt, (ftnlen)128, (ftnlen)128); -#line 24468 "" +#line 24548 "" } -#line 24469 "" +#line 24549 "" return 0; } /* dopmxlyr_ */ diff --git a/Build/source/utils/pmx/pmx-src/scor2prt.c b/Build/source/utils/pmx/pmx-src/scor2prt.c index 3f69f41ad45..278ad1bd6c1 100644 --- a/Build/source/utils/pmx/pmx-src/scor2prt.c +++ b/Build/source/utils/pmx/pmx-src/scor2prt.c @@ -60,7 +60,7 @@ static integer c__125 = 125; /* ccccccccccccccccccccccccc */ /* c */ -/* c scor2prt 7/24/11 for PMX 2.615 */ +/* c scor2prt 2/19/16 for PMX 2.74 */ /* ccccccccccccccccccccccccc */ /* This program, developed by Don Simons (dsimons@roadrunner.com), is */ /* part of the PMX distribution, PMX is a preprocessor for MusiXTeX. In concert */ @@ -82,7 +82,11 @@ static integer c__125 = 125; /* You should have received a copy of the GNU General Public License */ /* along with this program. If not, see <http://www.gnu.org/licenses/>. */ - +/* 2/19/16 */ +/* Exit gracefully when last input line is comment, with mods in */ +/* subroutine chkcom, adding logical argument goto999 */ +/* which is set to .true. in that case, causing input file to */ +/* be closed after exiting. */ /* 4/9/12 */ /* Add logical declarations to subroutine dosetup */ /* 8/8/11 */ @@ -191,10 +195,10 @@ static integer c__125 = 125; static integer kvend; extern /* Subroutine */ int zapbl_(char *, integer *, ftnlen); static integer itemp, iinst, ntinx; - static logical oneof2; + static logical oneof2, goto999; extern doublereal readin_(char *, integer *, integer *, ftnlen); - extern /* Subroutine */ int chkcom_(char *, ftnlen), getarg_(integer *, - char *, ftnlen); + extern /* Subroutine */ int chkcom_(char *, logical *, ftnlen), getarg_( + integer *, char *, ftnlen); static integer npages; static char holdln[128]; static integer iudpfn; @@ -230,501 +234,501 @@ static integer c__125 = 125; static cilist io___13 = { 0, 6, 0, 0, 0 }; static cilist io___17 = { 0, 6, 0, 0, 0 }; static cilist io___20 = { 0, 10, 0, "(a)", 0 }; - static cilist io___22 = { 0, 10, 0, "(a)", 0 }; static cilist io___23 = { 0, 10, 0, "(a)", 0 }; - static cilist io___38 = { 0, 6, 0, 0, 0 }; + static cilist io___24 = { 0, 10, 0, "(a)", 0 }; static cilist io___39 = { 0, 6, 0, 0, 0 }; static cilist io___40 = { 0, 6, 0, 0, 0 }; - static cilist io___41 = { 0, 10, 0, "(a)", 0 }; + static cilist io___41 = { 0, 6, 0, 0, 0 }; static cilist io___42 = { 0, 10, 0, "(a)", 0 }; - static cilist io___44 = { 0, 10, 0, "(a)", 0 }; - static cilist io___46 = { 0, 10, 0, "(a)", 0 }; - static cilist io___48 = { 0, 6, 0, 0, 0 }; - static cilist io___49 = { 0, 0, 0, "(a)", 0 }; - static cilist io___50 = { 0, 10, 0, "(a)", 0 }; + static cilist io___43 = { 0, 10, 0, "(a)", 0 }; + static cilist io___45 = { 0, 10, 0, "(a)", 0 }; + static cilist io___47 = { 0, 10, 0, "(a)", 0 }; + static cilist io___49 = { 0, 6, 0, 0, 0 }; + static cilist io___50 = { 0, 0, 0, "(a)", 0 }; static cilist io___51 = { 0, 10, 0, "(a)", 0 }; - static cilist io___55 = { 0, 10, 0, "(a)", 0 }; - static cilist io___57 = { 0, 0, 0, "(a2/a)", 0 }; - static cilist io___59 = { 0, 10, 1, "(a)", 0 }; - static cilist io___61 = { 0, 10, 0, "(a)", 0 }; + static cilist io___52 = { 0, 10, 0, "(a)", 0 }; + static cilist io___56 = { 0, 10, 0, "(a)", 0 }; + static cilist io___58 = { 0, 0, 0, "(a2/a)", 0 }; + static cilist io___60 = { 0, 10, 1, "(a)", 0 }; static cilist io___62 = { 0, 10, 0, "(a)", 0 }; - static cilist io___68 = { 0, 6, 0, 0, 0 }; + static cilist io___63 = { 0, 10, 0, "(a)", 0 }; static cilist io___69 = { 0, 6, 0, 0, 0 }; - static cilist io___72 = { 0, 10, 0, "(a)", 0 }; - static cilist io___76 = { 0, 6, 0, 0, 0 }; + static cilist io___70 = { 0, 6, 0, 0, 0 }; + static cilist io___73 = { 0, 10, 0, "(a)", 0 }; static cilist io___77 = { 0, 6, 0, 0, 0 }; static cilist io___78 = { 0, 6, 0, 0, 0 }; - static cilist io___81 = { 0, 10, 0, "(a)", 0 }; - static cilist io___83 = { 0, 6, 0, 0, 0 }; + static cilist io___79 = { 0, 6, 0, 0, 0 }; + static cilist io___82 = { 0, 10, 0, "(a)", 0 }; static cilist io___84 = { 0, 6, 0, 0, 0 }; - static icilist io___85 = { 0, line+2, 0, "(i1)", 1, 1 }; - static icilist io___88 = { 0, line+2, 0, "(i2)", 2, 1 }; - static cilist io___89 = { 0, 6, 0, 0, 0 }; + static cilist io___85 = { 0, 6, 0, 0, 0 }; + static icilist io___86 = { 0, line+2, 0, "(i1)", 1, 1 }; + static icilist io___89 = { 0, line+2, 0, "(i2)", 2, 1 }; static cilist io___90 = { 0, 6, 0, 0, 0 }; - static cilist io___97 = { 0, 0, 0, "(a)", 0 }; - static cilist io___102 = { 0, 0, 0, "(a)", 0 }; + static cilist io___91 = { 0, 6, 0, 0, 0 }; + static cilist io___98 = { 0, 0, 0, "(a)", 0 }; static cilist io___103 = { 0, 0, 0, "(a)", 0 }; + static cilist io___104 = { 0, 0, 0, "(a)", 0 }; -#line 99 "" +#line 104 "" clefpend = FALSE_; -#line 100 "" +#line 105 "" all_1.insetup = TRUE_; -#line 101 "" +#line 106 "" all_1.replacing = FALSE_; -#line 102 "" +#line 107 "" frstln = TRUE_; -#line 103 "" +#line 108 "" lenhold = 0; -#line 104 "" +#line 109 "" *(unsigned char *)sq = '\\'; -#line 105 "" +#line 110 "" s_wsle(&io___6); -#line 105 "" - do_lio(&c__9, &c__1, "This is scor2prt for PMX 2.7, 2 April 2013", ( - ftnlen)42); -#line 105 "" +#line 110 "" + do_lio(&c__9, &c__1, "This is scor2prt for PMX 2.74, 19 February 2016", ( + ftnlen)47); +#line 110 "" e_wsle(); -#line 106 "" +#line 111 "" numargs = iargc_(); -#line 107 "" +#line 112 "" if (numargs == 0) { -#line 108 "" +#line 113 "" s_wsle(&io___8); -#line 108 "" +#line 113 "" do_lio(&c__9, &c__1, "You could have entered a jobname on the comman"\ "d line,", (ftnlen)53); -#line 108 "" +#line 113 "" e_wsle(); -#line 109 "" +#line 114 "" s_wsle(&io___9); -#line 109 "" +#line 114 "" do_lio(&c__9, &c__1, " but you may enter one now:", (ftnlen)32); -#line 109 "" +#line 114 "" e_wsle(); -#line 110 "" +#line 115 "" s_rsfe(&io___10); -#line 110 "" +#line 115 "" do_fio(&c__1, jobname, (ftnlen)27); -#line 110 "" +#line 115 "" e_rsfe(); -#line 111 "" +#line 116 "" numargs = 1; -#line 112 "" +#line 117 "" } else { /* call getarg(1,jobname,idum) ! May need to replace this w/ next line */ -#line 114 "" +#line 119 "" getarg_(&c__1, jobname, (ftnlen)27); -#line 115 "" +#line 120 "" } -#line 116 "" +#line 121 "" ljob = lenstr_(jobname, &c__27, (ftnlen)27); -#line 117 "" +#line 122 "" if (ljob == 0) { -#line 118 "" +#line 123 "" s_wsle(&io___13); -#line 118 "" +#line 123 "" do_lio(&c__9, &c__1, "No was jobname entered. Restart and try again.", (ftnlen)46); -#line 118 "" +#line 123 "" e_wsle(); -#line 119 "" +#line 124 "" s_stop("", (ftnlen)0); -#line 120 "" +#line 125 "" } /* Strip ".pmx" if necessary */ /* Computing MAX */ -#line 124 "" +#line 129 "" i__1 = i_indx(jobname, ".pmx", (ftnlen)27, (ftnlen)4), i__2 = i_indx( jobname, ".PMX", (ftnlen)27, (ftnlen)4); -#line 124 "" +#line 129 "" ndxpmx = max(i__1,i__2); -#line 125 "" +#line 130 "" if (ndxpmx > 0) { -#line 126 "" +#line 131 "" s_copy(jobname, jobname, (ftnlen)27, ndxpmx - 1); -#line 127 "" +#line 132 "" ljob += -4; -#line 128 "" +#line 133 "" } /* Check for existence of input file */ /* Writing concatenation */ -#line 132 "" +#line 137 "" i__3[0] = ljob, a__1[0] = jobname; -#line 132 "" +#line 137 "" i__3[1] = 4, a__1[1] = ".pmx"; -#line 132 "" +#line 137 "" s_cat(infileq, a__1, i__3, &c__2, (ftnlen)27); -#line 133 "" +#line 138 "" ioin__1.inerr = 0; -#line 133 "" +#line 138 "" ioin__1.infilen = 27; -#line 133 "" +#line 138 "" ioin__1.infile = infileq; -#line 133 "" +#line 138 "" ioin__1.inex = &fexist; -#line 133 "" +#line 138 "" ioin__1.inopen = 0; -#line 133 "" +#line 138 "" ioin__1.innum = 0; -#line 133 "" +#line 138 "" ioin__1.innamed = 0; -#line 133 "" +#line 138 "" ioin__1.inname = 0; -#line 133 "" +#line 138 "" ioin__1.inacc = 0; -#line 133 "" +#line 138 "" ioin__1.inseq = 0; -#line 133 "" +#line 138 "" ioin__1.indir = 0; -#line 133 "" +#line 138 "" ioin__1.infmt = 0; -#line 133 "" +#line 138 "" ioin__1.inform = 0; -#line 133 "" +#line 138 "" ioin__1.inunf = 0; -#line 133 "" +#line 138 "" ioin__1.inrecl = 0; -#line 133 "" +#line 138 "" ioin__1.innrec = 0; -#line 133 "" +#line 138 "" ioin__1.inblank = 0; -#line 133 "" +#line 138 "" f_inqu(&ioin__1); -#line 134 "" +#line 139 "" if (! fexist) { -#line 135 "" +#line 140 "" s_wsle(&io___17); /* Writing concatenation */ -#line 135 "" +#line 140 "" i__3[0] = 17, a__1[0] = "Cannot find file "; -#line 135 "" +#line 140 "" i__3[1] = 27, a__1[1] = infileq; -#line 135 "" +#line 140 "" s_cat(ch__1, a__1, i__3, &c__2, (ftnlen)44); -#line 135 "" +#line 140 "" do_lio(&c__9, &c__1, ch__1, (ftnlen)44); -#line 135 "" +#line 140 "" e_wsle(); -#line 136 "" +#line 141 "" s_stop("", (ftnlen)0); -#line 137 "" +#line 142 "" } -#line 138 "" +#line 143 "" o__1.oerr = 0; -#line 138 "" +#line 143 "" o__1.ounit = 10; -#line 138 "" +#line 143 "" o__1.ofnmlen = ljob + 4; /* Writing concatenation */ -#line 138 "" +#line 143 "" i__3[0] = ljob, a__1[0] = jobname; -#line 138 "" +#line 143 "" i__3[1] = 4, a__1[1] = ".pmx"; -#line 138 "" +#line 143 "" s_cat(ch__2, a__1, i__3, &c__2, (ftnlen)31); -#line 138 "" +#line 143 "" o__1.ofnm = ch__2; -#line 138 "" +#line 143 "" o__1.orl = 0; -#line 138 "" +#line 143 "" o__1.osta = 0; -#line 138 "" +#line 143 "" o__1.oacc = 0; -#line 138 "" +#line 143 "" o__1.ofm = 0; -#line 138 "" +#line 143 "" o__1.oblnk = 0; -#line 138 "" +#line 143 "" f_open(&o__1); /* Open all instrument files now for allparts stuff. Later disgard those >nv */ -#line 142 "" +#line 147 "" for (iv = 1; iv <= 24; ++iv) { -#line 143 "" +#line 148 "" all_1.iorig[iv - 1] = iv; -#line 144 "" +#line 149 "" o__1.oerr = 0; -#line 144 "" +#line 149 "" o__1.ounit = iv + 10; -#line 144 "" +#line 149 "" o__1.ofnm = 0; -#line 144 "" +#line 149 "" o__1.orl = 0; -#line 144 "" +#line 149 "" o__1.osta = "SCRATCH"; -#line 144 "" +#line 149 "" o__1.oacc = 0; -#line 144 "" +#line 149 "" o__1.ofm = 0; -#line 144 "" +#line 149 "" o__1.oblnk = 0; -#line 144 "" +#line 149 "" f_open(&o__1); -#line 145 "" +#line 150 "" ludpfn[iv - 1] = 0; -#line 146 "" +#line 151 "" /* L19: */ -#line 146 "" +#line 151 "" } -#line 147 "" +#line 152 "" s_rsfe(&io___20); -#line 147 "" +#line 152 "" do_fio(&c__1, line, (ftnlen)128); -#line 147 "" +#line 152 "" e_rsfe(); -#line 148 "" - chkcom_(line, (ftnlen)128); -#line 149 "" +#line 153 "" + chkcom_(line, &goto999, (ftnlen)128); +#line 154 "" if (s_cmp(line, "---", (ftnlen)3, (ftnlen)3) == 0) { -#line 150 "" +#line 155 "" allparts_(line, &c__128, (ftnlen)128); -#line 151 "" +#line 156 "" L31: -#line 151 "" - s_rsfe(&io___22); -#line 151 "" +#line 156 "" + s_rsfe(&io___23); +#line 156 "" do_fio(&c__1, line, (ftnlen)128); -#line 151 "" +#line 156 "" e_rsfe(); -#line 152 "" +#line 157 "" if (s_cmp(line, "---", (ftnlen)3, (ftnlen)3) != 0) { -#line 153 "" +#line 158 "" allparts_(line, &c__128, (ftnlen)128); -#line 154 "" +#line 159 "" goto L31; -#line 155 "" +#line 160 "" } -#line 156 "" +#line 161 "" allparts_(line, &c__128, (ftnlen)128); -#line 157 "" - s_rsfe(&io___23); -#line 157 "" +#line 162 "" + s_rsfe(&io___24); +#line 162 "" do_fio(&c__1, line, (ftnlen)128); -#line 157 "" +#line 162 "" e_rsfe(); -#line 158 "" - chkcom_(line, (ftnlen)128); -#line 159 "" +#line 163 "" + chkcom_(line, &goto999, (ftnlen)128); +#line 164 "" } -#line 160 "" +#line 165 "" iccount = 0; -#line 161 "" +#line 166 "" nv = readin_(line, &iccount, &c__1, (ftnlen)128) + .1f; -#line 162 "" +#line 167 "" all_1.noinst = readin_(line, &iccount, &c__2, (ftnlen)128) + .1f; -#line 163 "" +#line 168 "" if (all_1.noinst > 0) { -#line 164 "" +#line 169 "" all_1.nvi[0] = nv - all_1.noinst + 1; -#line 165 "" +#line 170 "" } else { -#line 166 "" +#line 171 "" all_1.noinst = 1 - all_1.noinst; -#line 167 "" +#line 172 "" i__1 = all_1.noinst; -#line 167 "" +#line 172 "" for (iinst = 1; iinst <= i__1; ++iinst) { -#line 168 "" +#line 173 "" all_1.nvi[iinst - 1] = readin_(line, &iccount, &c_n1, (ftnlen)128) + .1f; -#line 169 "" +#line 174 "" /* L21: */ -#line 169 "" +#line 174 "" } -#line 170 "" +#line 175 "" } -#line 171 "" +#line 176 "" all_1.noinow = all_1.noinst; -#line 172 "" +#line 177 "" insnow = 1; /* ivlast is last iv in current inst. instnum(iv) is iinst for current voice. */ -#line 176 "" +#line 181 "" ivlast = all_1.nvi[0]; -#line 177 "" +#line 182 "" i__1 = nv; -#line 177 "" +#line 182 "" for (iv = 1; iv <= i__1; ++iv) { -#line 178 "" +#line 183 "" all_1.instnum[iv - 1] = insnow; -#line 179 "" +#line 184 "" if (iv == ivlast) { -#line 180 "" +#line 185 "" if (iv < nv) { -#line 180 "" +#line 185 "" all_1.botv[iv] = TRUE_; -#line 180 "" +#line 185 "" } /* The previous stmt will set botv true only for bot voice of iinst>1. It is */ /* used when writing termrpts, but the one in voice one is handled differently, */ /* so botv(1) is left .false. */ -#line 186 "" +#line 191 "" if (insnow < all_1.noinst) { -#line 187 "" +#line 192 "" ++insnow; -#line 188 "" +#line 193 "" ivlast += all_1.nvi[insnow - 1]; -#line 189 "" +#line 194 "" } -#line 190 "" +#line 195 "" } -#line 191 "" +#line 196 "" /* L22: */ -#line 191 "" +#line 196 "" } -#line 192 "" +#line 197 "" mtrnuml = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f; -#line 193 "" +#line 198 "" mtrdenl = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f; -#line 194 "" +#line 199 "" mtrnmp = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f; -#line 195 "" +#line 200 "" mtrdnp = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f; -#line 196 "" +#line 201 "" xmtrnum0 = readin_(line, &iccount, &c__0, (ftnlen)128); -#line 197 "" +#line 202 "" isig = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f; -#line 198 "" +#line 203 "" npages = readin_(line, &iccount, &c__3, (ftnlen)128) + .1f; -#line 199 "" +#line 204 "" all_1.nsyst = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f; -#line 200 "" +#line 205 "" musicsize = readin_(line, &iccount, &c__4, (ftnlen)128) + .1f; -#line 201 "" +#line 206 "" fracindent = readin_(line, &iccount, &c__5, (ftnlen)128); -#line 202 "" +#line 207 "" if (npages == 0) { -#line 203 "" - s_wsle(&io___38); -#line 203 "" +#line 208 "" + s_wsle(&io___39); +#line 208 "" do_lio(&c__9, &c__1, "You entered npages=0, which means nsyst is not"\ " the total number", (ftnlen)63); -#line 203 "" +#line 208 "" e_wsle(); -#line 205 "" - s_wsle(&io___39); -#line 205 "" +#line 210 "" + s_wsle(&io___40); +#line 210 "" do_lio(&c__9, &c__1, "of systems. Scor2prt has to know the total nu"\ "mber of systems.", (ftnlen)62); -#line 205 "" +#line 210 "" e_wsle(); -#line 207 "" - s_wsle(&io___40); -#line 207 "" +#line 212 "" + s_wsle(&io___41); +#line 212 "" do_lio(&c__9, &c__1, "Please set npages and nsyst to their real valu"\ "es.", (ftnlen)49); -#line 207 "" +#line 212 "" e_wsle(); -#line 209 "" +#line 214 "" s_stop("", (ftnlen)0); -#line 210 "" +#line 215 "" } /* Must leave insetup=.true. else could bypass ALL instrument names. */ -#line 214 "" - s_rsfe(&io___41); -#line 214 "" +#line 219 "" + s_rsfe(&io___42); +#line 219 "" do_fio(&c__1, line, (ftnlen)128); -#line 214 "" +#line 219 "" e_rsfe(); -#line 215 "" - chkcom_(line, (ftnlen)128); -#line 216 "" +#line 220 "" + chkcom_(line, &goto999, (ftnlen)128); +#line 221 "" al__1.aerr = 0; -#line 216 "" +#line 221 "" al__1.aunit = 10; -#line 216 "" +#line 221 "" f_back(&al__1); /* Normally this puts pointer at start of line with 1st inst name */ /* Check if prior line was "%%" */ -#line 221 "" +#line 226 "" al__1.aerr = 0; -#line 221 "" +#line 226 "" al__1.aunit = 10; -#line 221 "" +#line 226 "" f_back(&al__1); -#line 222 "" - s_rsfe(&io___42); -#line 222 "" +#line 227 "" + s_rsfe(&io___43); +#line 227 "" do_fio(&c__1, line, (ftnlen)128); -#line 222 "" +#line 227 "" e_rsfe(); -#line 223 "" +#line 228 "" if (s_cmp(line, "%%", (ftnlen)2, (ftnlen)2) == 0) { -#line 223 "" +#line 228 "" al__1.aerr = 0; -#line 223 "" +#line 228 "" al__1.aunit = 10; -#line 223 "" +#line 228 "" f_back(&al__1); -#line 223 "" +#line 228 "" } -#line 224 "" +#line 229 "" i__1 = all_1.noinst; -#line 224 "" +#line 229 "" for (iv = 1; iv <= i__1; ++iv) { -#line 225 "" +#line 230 "" gotname = FALSE_; -#line 226 "" +#line 231 "" L16: -#line 226 "" - s_rsfe(&io___44); -#line 226 "" +#line 231 "" + s_rsfe(&io___45); +#line 231 "" do_fio(&c__1, instrum + (iv - 1 << 7), (ftnlen)128); -#line 226 "" +#line 231 "" e_rsfe(); -#line 227 "" +#line 232 "" if (s_cmp(instrum + (iv - 1 << 7), "%%", (ftnlen)2, (ftnlen)2) == 0) { -#line 228 "" - s_rsfe(&io___46); -#line 228 "" +#line 233 "" + s_rsfe(&io___47); +#line 233 "" do_fio(&c__1, line, (ftnlen)128); -#line 228 "" +#line 233 "" e_rsfe(); -#line 229 "" +#line 234 "" goto L16; -#line 230 "" +#line 235 "" } else if (*(unsigned char *)&instrum[(iv - 1) * 128] == '%') { -#line 231 "" +#line 236 "" ivq = *(unsigned char *)&instrum[(iv - 1 << 7) + 1] - 48; -#line 232 "" +#line 237 "" if (ivq != iv) { /* It's really a comment. Copy to parts, then get another trial name. */ -#line 236 "" +#line 241 "" allparts_(instrum + (iv - 1 << 7), &c__128, (ftnlen)128); -#line 237 "" +#line 242 "" goto L16; -#line 238 "" +#line 243 "" } else { -#line 239 "" +#line 244 "" s_copy(line, instrum + ((iv - 1 << 7) + 2), (ftnlen)128, ( ftnlen)126); -#line 240 "" +#line 245 "" s_copy(instrum + (iv - 1 << 7), line, (ftnlen)128, (ftnlen) 128); -#line 241 "" +#line 246 "" gotname = TRUE_; -#line 242 "" +#line 247 "" } -#line 243 "" +#line 248 "" } else { -#line 244 "" +#line 249 "" gotname = TRUE_; -#line 245 "" +#line 250 "" } /* c */ /* c The following checks for macro that write original C-clef as part of */ @@ -740,117 +744,117 @@ L16: /* * char(iy1+49)//char(iy2+49) */ /* instrum(iv) = instrum(iv)(inm1:inm2) */ /* end if */ -#line 260 "" +#line 265 "" if (! gotname) { -#line 261 "" - s_wsle(&io___48); -#line 261 "" +#line 266 "" + s_wsle(&io___49); +#line 266 "" do_lio(&c__9, &c__1, "You must provide a replacement instrument "\ "name", (ftnlen)46); -#line 261 "" +#line 266 "" e_wsle(); -#line 262 "" +#line 267 "" s_stop("", (ftnlen)0); -#line 263 "" +#line 268 "" } -#line 264 "" - io___49.ciunit = iv + 10; -#line 264 "" - s_wsfe(&io___49); -#line 264 "" +#line 269 "" + io___50.ciunit = iv + 10; +#line 269 "" + s_wsfe(&io___50); +#line 269 "" do_fio(&c__1, " ", (ftnlen)1); -#line 264 "" +#line 269 "" e_wsfe(); -#line 265 "" +#line 270 "" /* L14: */ -#line 265 "" +#line 270 "" } -#line 266 "" +#line 271 "" all_1.replacing = FALSE_; -#line 267 "" +#line 272 "" all_1.nvnow = nv; /* Clef string: Note insetup is still T, so "%%" will be treated specially */ -#line 271 "" - s_rsfe(&io___50); -#line 271 "" +#line 276 "" + s_rsfe(&io___51); +#line 276 "" do_fio(&c__1, line, (ftnlen)128); -#line 271 "" +#line 276 "" e_rsfe(); -#line 272 "" - chkcom_(line, (ftnlen)128); -#line 273 "" +#line 277 "" + chkcom_(line, &goto999, (ftnlen)128); +#line 278 "" if (all_1.replacing) { /* If here, we have next line after "%%", containing score's clef string */ /* Assume all clefs are handled with instrument comments. */ -#line 278 "" - s_rsfe(&io___51); -#line 278 "" +#line 283 "" + s_rsfe(&io___52); +#line 283 "" do_fio(&c__1, line, (ftnlen)128); -#line 278 "" +#line 283 "" e_rsfe(); -#line 279 "" - chkcom_(line, (ftnlen)128); -#line 280 "" +#line 284 "" + chkcom_(line, &goto999, (ftnlen)128); +#line 285 "" al__1.aerr = 0; -#line 280 "" +#line 285 "" al__1.aunit = 10; -#line 280 "" +#line 285 "" f_back(&al__1); -#line 281 "" +#line 286 "" } else { /* If here, line has the clef string in it. Handle the old way */ -#line 285 "" +#line 290 "" kvstart = 1; -#line 286 "" +#line 291 "" kvend = all_1.nvi[0]; -#line 287 "" +#line 292 "" i__1 = all_1.noinst; -#line 287 "" +#line 292 "" for (inst = 1; inst <= i__1; ++inst) { -#line 288 "" +#line 293 "" ci__1.cierr = 0; -#line 288 "" +#line 293 "" ci__1.ciunit = inst + 10; /* Writing concatenation */ -#line 288 "" +#line 293 "" i__4[0] = 2, a__2[0] = "(a"; -#line 288 "" +#line 293 "" *(unsigned char *)&ch__4[0] = all_1.nvi[inst - 1] + 48; -#line 288 "" +#line 293 "" i__4[1] = 1, a__2[1] = ch__4; -#line 288 "" +#line 293 "" i__4[2] = 1, a__2[2] = ")"; -#line 288 "" +#line 293 "" ci__1.cifmt = (s_cat(ch__3, a__2, i__4, &c__3, (ftnlen)4), ch__3); -#line 288 "" +#line 293 "" s_wsfe(&ci__1); -#line 288 "" +#line 293 "" do_fio(&c__1, line + (kvstart - 1), kvend - (kvstart - 1)); -#line 288 "" +#line 293 "" e_wsfe(); -#line 290 "" +#line 295 "" if (inst < all_1.noinst) { -#line 291 "" +#line 296 "" kvstart = kvend + 1; -#line 292 "" +#line 297 "" kvend = kvstart + all_1.nvi[inst] - 1; -#line 293 "" +#line 298 "" } -#line 294 "" +#line 299 "" /* L2: */ -#line 294 "" +#line 299 "" } -#line 295 "" +#line 300 "" } -#line 296 "" +#line 301 "" all_1.replacing = FALSE_; -#line 297 "" +#line 302 "" all_1.insetup = FALSE_; /* *****NOTE*****This comment applies to stuff done earlier! */ @@ -861,50 +865,50 @@ L16: /* Path string: ASSUME THIS WILL NEVER BE ALTERED IN PARTS! */ -#line 307 "" +#line 312 "" L18: -#line 307 "" - s_rsfe(&io___55); -#line 307 "" +#line 312 "" + s_rsfe(&io___56); +#line 312 "" do_fio(&c__1, line, (ftnlen)128); -#line 307 "" +#line 312 "" e_rsfe(); -#line 308 "" +#line 313 "" if (*(unsigned char *)line == '%') { -#line 309 "" +#line 314 "" allparts_(line, &c__128, (ftnlen)128); -#line 310 "" +#line 315 "" goto L18; -#line 311 "" +#line 316 "" } -#line 312 "" +#line 317 "" allparts_(line, &c__128, (ftnlen)128); /* Write instrument names. Will be blank if later part of a score. */ -#line 316 "" +#line 321 "" if (*(unsigned char *)&instrum[0] != ' ') { -#line 317 "" +#line 322 "" i__1 = all_1.noinst; -#line 317 "" +#line 322 "" for (iv = 1; iv <= i__1; ++iv) { -#line 318 "" +#line 323 "" len = lenstr_(instrum + (iv - 1 << 7), &c__79, (ftnlen)128); -#line 319 "" - io___57.ciunit = iv + 10; -#line 319 "" - s_wsfe(&io___57); -#line 319 "" +#line 324 "" + io___58.ciunit = iv + 10; +#line 324 "" + s_wsfe(&io___58); +#line 324 "" do_fio(&c__1, "Ti", (ftnlen)2); -#line 319 "" +#line 324 "" do_fio(&c__1, instrum + (iv - 1 << 7), len); -#line 319 "" +#line 324 "" e_wsfe(); -#line 320 "" +#line 325 "" /* L3: */ -#line 320 "" +#line 325 "" } -#line 321 "" +#line 326 "" } /* The big loop. Except for '%%', put all comment lines in all parts. */ @@ -917,475 +921,481 @@ L18: /* Check for "P"; ignore in parts. */ /* Check for consecutive full-bar rests; if found, replace with rm[nn] */ -#line 333 "" +#line 338 "" iv = 1; -#line 334 "" +#line 339 "" iinst = 1; -#line 335 "" +#line 340 "" termrpt = FALSE_; -#line 336 "" +#line 341 "" L4: -#line 336 "" - i__1 = s_rsfe(&io___59); -#line 336 "" +#line 342 "" + i__1 = s_rsfe(&io___60); +#line 342 "" if (i__1 != 0) { -#line 336 "" +#line 342 "" goto L999; -#line 336 "" +#line 342 "" } -#line 336 "" +#line 342 "" i__1 = do_fio(&c__1, line, (ftnlen)128); -#line 336 "" +#line 342 "" if (i__1 != 0) { -#line 336 "" +#line 342 "" goto L999; -#line 336 "" +#line 342 "" } -#line 336 "" +#line 342 "" i__1 = e_rsfe(); -#line 336 "" +#line 342 "" if (i__1 != 0) { -#line 336 "" +#line 342 "" goto L999; -#line 336 "" +#line 342 "" } -#line 337 "" +#line 343 "" lenline = lenstr_(line, &c__128, (ftnlen)128); -#line 338 "" +#line 344 "" if (lenline == 0) { -#line 338 "" +#line 344 "" goto L4; -#line 338 "" +#line 344 "" } -#line 339 "" +#line 345 "" zapbl_(line, &c__128, (ftnlen)128); -#line 340 "" - chkcom_(line, (ftnlen)128); -#line 341 "" +#line 346 "" + chkcom_(line, &goto999, (ftnlen)128); +#line 347 "" + if (goto999) { +#line 347 "" + goto L999; +#line 347 "" + } +#line 348 "" lenline = lenstr_(line, &c__128, (ftnlen)128); -#line 342 "" +#line 349 "" if (lenline == 0) { -#line 342 "" +#line 349 "" goto L4; -#line 342 "" +#line 349 "" } -#line 343 "" +#line 350 "" if (*(unsigned char *)line == 'T') { -#line 344 "" +#line 351 "" allparts_(line, &c__128, (ftnlen)128); -#line 345 "" - s_rsfe(&io___61); -#line 345 "" +#line 352 "" + s_rsfe(&io___62); +#line 352 "" do_fio(&c__1, line, (ftnlen)128); -#line 345 "" +#line 352 "" e_rsfe(); -#line 346 "" +#line 353 "" allparts_(line, &c__128, (ftnlen)128); -#line 347 "" +#line 354 "" goto L4; -#line 348 "" +#line 355 "" } else /* if(complicated condition) */ { /* Writing concatenation */ -#line 348 "" +#line 355 "" i__3[0] = 1, a__1[0] = sq; -#line 348 "" +#line 355 "" i__3[1] = 1, a__1[1] = sq; -#line 348 "" +#line 355 "" s_cat(ch__5, a__1, i__3, &c__2, (ftnlen)2); -#line 348 "" +#line 355 "" if (s_cmp(line, ch__5, (ftnlen)2, (ftnlen)2) == 0) { -#line 349 "" +#line 356 "" allparts_(line, &c__128, (ftnlen)128); -#line 350 "" +#line 357 "" goto L4; -#line 351 "" +#line 358 "" } else if (i_indx("hl", line, (ftnlen)2, (ftnlen)1) > 0 && i_indx( " +-", line + 1, (ftnlen)3, (ftnlen)1) > 0) { -#line 353 "" +#line 360 "" allparts_(line, &c__128, (ftnlen)128); -#line 354 "" - s_rsfe(&io___62); -#line 354 "" +#line 361 "" + s_rsfe(&io___63); +#line 361 "" do_fio(&c__1, line, (ftnlen)128); -#line 354 "" +#line 361 "" e_rsfe(); -#line 355 "" +#line 362 "" allparts_(line, &c__128, (ftnlen)128); -#line 356 "" +#line 363 "" goto L4; -#line 357 "" +#line 364 "" } else if (iv == 1) { -#line 358 "" +#line 365 "" for (ia = 1; ia <= 10; ++ia) { -#line 359 "" +#line 366 "" L24: -#line 360 "" +#line 367 "" idxa = ntindex_(line, achar + (ia - 1), (ftnlen)128, (ftnlen) 1); -#line 361 "" +#line 368 "" isachar = idxa > 0; -#line 362 "" +#line 369 "" if (idxa > 1) { -#line 362 "" +#line 369 "" i__1 = idxa - 2; -#line 362 "" +#line 369 "" isachar = s_cmp(line + i__1, " ", idxa - 1 - i__1, ( ftnlen)1) == 0; -#line 362 "" +#line 369 "" } /* 1 2 3 4 5 6 7 8 9 10 */ /* data achar /'P','m','V','R','A','h','w','K','M','I'/ */ -#line 367 "" +#line 374 "" if (ia == 9) { -#line 367 "" +#line 374 "" i__1 = idxa; -#line 367 "" +#line 374 "" isachar = isachar && s_cmp(line + i__1, "S", idxa + 1 - i__1, (ftnlen)1) == 0; -#line 367 "" +#line 374 "" } -#line 369 "" +#line 376 "" if (isachar) { /* Check whether character is inside a quoted string by counting */ /* how many quotes precede it in the line */ -#line 375 "" +#line 382 "" oddquotesbefore_(line, &idxa, &yesodd, (ftnlen)128); -#line 376 "" +#line 383 "" if (yesodd) { -#line 376 "" +#line 383 "" isachar = FALSE_; -#line 376 "" +#line 383 "" } -#line 377 "" +#line 384 "" } -#line 378 "" +#line 385 "" if (isachar) { /* Find next blank */ -#line 382 "" +#line 389 "" for (ib = idxa + 1; ib <= 128; ++ib) { -#line 383 "" +#line 390 "" if (*(unsigned char *)&line[ib - 1] == ' ') { -#line 383 "" +#line 390 "" goto L7; -#line 383 "" +#line 390 "" } -#line 384 "" +#line 391 "" /* L6: */ -#line 384 "" +#line 391 "" } -#line 385 "" - s_wsle(&io___68); -#line 385 "" +#line 392 "" + s_wsle(&io___69); +#line 392 "" do_lio(&c__9, &c__1, "Problem with \"V,R,m,P,A,h,MS, o"\ "r w\"", (ftnlen)35); -#line 385 "" +#line 392 "" e_wsle(); -#line 386 "" - s_wsle(&io___69); -#line 386 "" +#line 393 "" + s_wsle(&io___70); +#line 393 "" do_lio(&c__9, &c__1, "Send files to Dr. Don at dsimons a"\ "t roadrunner dot com", (ftnlen)54); -#line 386 "" +#line 393 "" e_wsle(); -#line 388 "" +#line 395 "" s_stop("1", (ftnlen)1); -#line 389 "" +#line 396 "" L7: /* Next blank is at position ib. Later, if ia=1, must check for Pc" " ; */ /* i.e., look for '"' between P and blank */ -#line 394 "" +#line 401 "" if (ia == 4) { /* Check for terminal repeat. Note if there's a term rpt, there can't be any */ /* others. Also, must process repeats LAST, after m's and 'V's */ -#line 399 "" +#line 406 "" for (ic = ib + 1; ic <= 128; ++ic) { /* If any subsequent character on this line is neither blank nor "/", get out */ -#line 403 "" +#line 410 "" if (i_indx(" /", line + (ic - 1), (ftnlen)2, ( ftnlen)1) == 0) { -#line 403 "" +#line 410 "" goto L9; -#line 403 "" +#line 410 "" } -#line 404 "" +#line 411 "" if (*(unsigned char *)&line[ic - 1] == '/') { -#line 405 "" +#line 412 "" termrpt = TRUE_; -#line 406 "" +#line 413 "" i__1 = ib - 3; -#line 406 "" +#line 413 "" s_copy(termsym, line + i__1, (ftnlen)2, ib - 1 - i__1); /* Process the line as if there were no "R" */ -#line 410 "" +#line 417 "" goto L10; -#line 411 "" +#line 418 "" } -#line 412 "" +#line 419 "" /* L8: */ -#line 412 "" +#line 419 "" } /* +++ 060812 */ /* If here, all chars after "R" symbol are blanks, so process the line normally, */ /* but only IF next line is not the M-Tx line " /" */ -#line 418 "" - s_rsfe(&io___72); -#line 418 "" +#line 425 "" + s_rsfe(&io___73); +#line 425 "" do_fio(&c__1, templine, (ftnlen)128); -#line 418 "" +#line 425 "" e_rsfe(); -#line 419 "" +#line 426 "" if (s_cmp(templine, " /", (ftnlen)2, (ftnlen)2) != 0) { -#line 420 "" +#line 427 "" al__1.aerr = 0; -#line 420 "" +#line 427 "" al__1.aunit = 10; -#line 420 "" +#line 427 "" f_back(&al__1); /* and flow out */ -#line 421 "" +#line 428 "" } else { /* We have the M-Tx case where one line ends with R? and next is " /". Add / to the line, */ /* and proceed as above */ /* Writing concatenation */ -#line 426 "" +#line 433 "" i__3[0] = ib, a__1[0] = line; -#line 426 "" +#line 433 "" i__3[1] = 1, a__1[1] = "/"; -#line 426 "" +#line 433 "" s_cat(line, a__1, i__3, &c__2, (ftnlen)128); -#line 427 "" +#line 434 "" lenline += 2; -#line 428 "" +#line 435 "" termrpt = TRUE_; -#line 429 "" +#line 436 "" i__1 = ib - 3; -#line 429 "" +#line 436 "" s_copy(termsym, line + i__1, (ftnlen)2, ib - 1 - i__1); -#line 430 "" +#line 437 "" goto L10; -#line 431 "" +#line 438 "" } /* +++ 060812 */ -#line 434 "" +#line 441 "" } else if (ia == 1) { -#line 435 "" +#line 442 "" idxq = ntindex_(line, "\"", (ftnlen)128, (ftnlen)1); -#line 436 "" +#line 443 "" if (idxq > idxa && idxq < ib) { /* Quote is between P and next blank. Find 2nd quote, starting at the blank. */ -#line 440 "" +#line 447 "" idxq2 = ib - 1 + ntindex_(line, "\"", (ftnlen)128, (ftnlen)1); -#line 441 "" +#line 448 "" i__1 = idxq2; -#line 441 "" +#line 448 "" if (idxq == 0 || s_cmp(line + i__1, " ", idxq2 + 1 - i__1, (ftnlen)1) != 0) { -#line 442 "" - s_wsle(&io___76); -#line 442 "" - e_wsle(); -#line 443 "" +#line 449 "" s_wsle(&io___77); -#line 443 "" +#line 449 "" + e_wsle(); +#line 450 "" + s_wsle(&io___78); +#line 450 "" do_lio(&c__9, &c__1, "Error copying P with q"\ "uotes, idxq2:", (ftnlen)35); -#line 443 "" +#line 450 "" do_lio(&c__3, &c__1, (char *)&idxq2, (ftnlen) sizeof(integer)); -#line 443 "" +#line 450 "" e_wsle(); -#line 444 "" - s_wsle(&io___78); -#line 444 "" +#line 451 "" + s_wsle(&io___79); +#line 451 "" do_lio(&c__9, &c__1, line, (ftnlen)60); -#line 444 "" +#line 451 "" e_wsle(); -#line 445 "" +#line 452 "" s_stop("1", (ftnlen)1); -#line 446 "" +#line 453 "" } -#line 447 "" +#line 454 "" ib = idxq2 + 1; -#line 448 "" +#line 455 "" } /* Do not transfer P into parts. */ -#line 452 "" +#line 459 "" goto L12; -#line 453 "" +#line 460 "" } else if (ia == 9) { /* Start Saving a macro. After leaving here, a symbol will be sent to all parts, */ /* If all on this line, set ib to end and exit normally. */ -#line 458 "" +#line 465 "" i__1 = ib; -#line 458 "" +#line 465 "" ndxm = i_indx(line + i__1, "M", 128 - i__1, (ftnlen)1) ; -#line 459 "" +#line 466 "" i__1 = ib + ndxm - 2; -#line 459 "" +#line 466 "" if (ndxm > 0 && s_cmp(line + i__1, " ", ib + ndxm - 1 - i__1, (ftnlen)1) == 0) { /* Macro ends on this line */ -#line 463 "" +#line 470 "" ib = ib + ndxm + 1; -#line 464 "" +#line 471 "" } else { /* Save leading part of current line */ -#line 468 "" +#line 475 "" lenhold = idxa - 1; -#line 469 "" +#line 476 "" if (lenhold > 0) { -#line 469 "" +#line 476 "" s_copy(holdln, line, (ftnlen)128, lenhold); -#line 469 "" +#line 476 "" } /* Transfer rest of line */ -#line 473 "" +#line 480 "" i__1 = 129 - idxa; -#line 473 "" +#line 480 "" allparts_(line + (idxa - 1), &i__1, 128 - (idxa - 1)); /* Read next line */ -#line 477 "" +#line 484 "" L20: -#line 477 "" - s_rsfe(&io___81); -#line 477 "" +#line 484 "" + s_rsfe(&io___82); +#line 484 "" do_fio(&c__1, line, (ftnlen)128); -#line 477 "" +#line 484 "" e_rsfe(); /* Check for comment, transfer and loop if so */ /* if (line(1:1) .eq.'%') then */ -#line 482 "" +#line 489 "" L23: -#line 482 "" +#line 489 "" if (*(unsigned char *)line == '%') { /* call allparts(line,128) */ /* go to 20 */ -#line 485 "" - chkcom_(line, (ftnlen)128); -#line 486 "" +#line 492 "" + chkcom_(line, &goto999, (ftnlen)128); +#line 493 "" goto L23; -#line 487 "" +#line 494 "" } /* Look for terminal ' M' */ -#line 491 "" +#line 498 "" if (*(unsigned char *)line == 'M') { -#line 492 "" +#line 499 "" ndxm = 1; -#line 493 "" +#line 500 "" } else { -#line 494 "" +#line 501 "" ndxm = i_indx(line, " M", (ftnlen)128, ( ftnlen)2); -#line 495 "" +#line 502 "" if (ndxm > 0) { -#line 495 "" +#line 502 "" ++ndxm; -#line 495 "" +#line 502 "" } -#line 496 "" +#line 503 "" } -#line 497 "" +#line 504 "" if (ndxm > 0) { /* Set parameters, exit normally (but later check for leading part of 1st line */ -#line 501 "" +#line 508 "" idxa = 1; -#line 502 "" +#line 509 "" ib = ndxm + 1; -#line 503 "" +#line 510 "" } else { /* No "M", transfer entire line, loop */ -#line 507 "" +#line 514 "" allparts_(line, &c__128, (ftnlen)128); -#line 508 "" +#line 515 "" goto L20; -#line 509 "" +#line 516 "" } -#line 510 "" +#line 517 "" } -#line 511 "" +#line 518 "" } else if (ia == 10) { /* Do not transfer MIDI command into parts */ -#line 515 "" +#line 522 "" goto L12; -#line 516 "" +#line 523 "" } else if (ia == 5) { /* First check for "AS", but S may come after other "A" options */ -#line 520 "" +#line 527 "" i__1 = idxa; -#line 520 "" +#line 527 "" idxs = i_indx(line + i__1, "S", ib - i__1, (ftnlen)1); -#line 521 "" +#line 528 "" if (idxs > 0) { /* Get rid of the string. First check if that's all there is in A. */ -#line 525 "" +#line 532 "" if (ib - idxa == nv + 2) { -#line 525 "" +#line 532 "" goto L12; -#line 525 "" +#line 532 "" } -#line 526 "" +#line 533 "" i__1 = idxa + idxs + nv; /* Writing concatenation */ -#line 526 "" +#line 533 "" i__3[0] = idxa + idxs - 1, a__1[0] = line; -#line 526 "" +#line 533 "" i__3[1] = ib - i__1, a__1[1] = line + i__1; -#line 526 "" +#line 533 "" s_cat(line, a__1, i__3, &c__2, (ftnlen)128); -#line 527 "" +#line 534 "" } /* Check for user-defined part file name. Must start in column 1 and have */ @@ -1394,353 +1404,353 @@ L23: /* ib is position of the next blank after "A" */ /* Don't allow any blanks in user */ -#line 535 "" +#line 542 "" i__1 = idxa; -#line 535 "" +#line 542 "" if (s_cmp(line + i__1, "N", idxa + 1 - i__1, (ftnlen) 1) != 0) { -#line 535 "" +#line 542 "" goto L9; -#line 535 "" +#line 542 "" } /* bail out */ -#line 536 "" +#line 543 "" if (idxa != 1) { -#line 537 "" - s_wsle(&io___83); -#line 537 "" - e_wsle(); -#line 538 "" +#line 544 "" s_wsle(&io___84); -#line 538 "" +#line 544 "" + e_wsle(); +#line 545 "" + s_wsle(&io___85); +#line 545 "" do_lio(&c__9, &c__1, "You entered \"AN...\" some"\ "where beyond first column; stopping.", ( ftnlen)60); -#line 538 "" +#line 545 "" e_wsle(); -#line 540 "" +#line 547 "" s_stop("1", (ftnlen)1); -#line 541 "" +#line 548 "" } /* pmxa already checked for valid one- or 2-digit number, so get it */ -#line 545 "" +#line 552 "" if (*(unsigned char *)&line[3] == '"') { /* Single digit instrument number */ -#line 549 "" - s_rsfi(&io___85); -#line 549 "" +#line 556 "" + s_rsfi(&io___86); +#line 556 "" do_fio(&c__1, (char *)&iudpfn, (ftnlen)sizeof( integer)); -#line 549 "" +#line 556 "" e_rsfi(); -#line 550 "" +#line 557 "" idxstartname = 5; -#line 551 "" +#line 558 "" } else { -#line 552 "" - s_rsfi(&io___88); -#line 552 "" +#line 559 "" + s_rsfi(&io___89); +#line 559 "" do_fio(&c__1, (char *)&iudpfn, (ftnlen)sizeof( integer)); -#line 552 "" +#line 559 "" e_rsfi(); -#line 553 "" +#line 560 "" idxstartname = 6; -#line 554 "" +#line 561 "" } -#line 555 "" +#line 562 "" ludpfn[iudpfn - 1] = i_indx(line + (idxstartname - 1), "\"", 128 - (idxstartname - 1), (ftnlen)1) - 1; -#line 556 "" +#line 563 "" if (ludpfn[iudpfn - 1] < 0) { -#line 557 "" - s_wsle(&io___89); -#line 557 "" - e_wsle(); -#line 558 "" +#line 564 "" s_wsle(&io___90); -#line 558 "" +#line 564 "" + e_wsle(); +#line 565 "" + s_wsle(&io___91); +#line 565 "" do_lio(&c__9, &c__1, "User-defined part file nam"\ "e must be in quotes", (ftnlen)45); -#line 558 "" +#line 565 "" e_wsle(); -#line 559 "" +#line 566 "" s_stop("1", (ftnlen)1); -#line 560 "" +#line 567 "" } -#line 561 "" +#line 568 "" idxendname = idxstartname + ludpfn[iudpfn - 1] - 1; -#line 562 "" +#line 569 "" s_copy(udpfnq + (iudpfn - 1 << 7), line + ( idxstartname - 1), (ftnlen)128, idxendname - ( idxstartname - 1)); /* Get a new line! */ -#line 566 "" +#line 573 "" goto L4; -#line 567 "" +#line 574 "" } else if (ia == 8) { /* Key change/transposition. */ /* If not instrument specific, copy to all parts */ -#line 572 "" +#line 579 "" i__1 = idxa; -#line 572 "" +#line 579 "" if (s_cmp(line + i__1, "i", idxa + 1 - i__1, (ftnlen) 1) != 0) { -#line 572 "" +#line 579 "" goto L9; -#line 572 "" +#line 579 "" } /* Instrument-wise key/transposition(s): Ki[nn][+/-][dd}[+/-][dd]... */ -#line 576 "" +#line 583 "" ibb = idxa + 2; /* Starts on digit after 'i' */ -#line 577 "" +#line 584 "" L40: -#line 578 "" +#line 585 "" ici__1.icierr = 0; -#line 578 "" +#line 585 "" ici__1.iciend = 0; -#line 578 "" +#line 585 "" ici__1.icirnum = 1; -#line 578 "" +#line 585 "" ici__1.icirlen = 1; -#line 578 "" +#line 585 "" ici__1.iciunit = line + (ibb - 1); -#line 578 "" +#line 585 "" ici__1.icifmt = "(i1)"; -#line 578 "" +#line 585 "" s_rsfi(&ici__1); -#line 578 "" +#line 585 "" do_fio(&c__1, (char *)&iiinst, (ftnlen)sizeof(integer) ); -#line 578 "" +#line 585 "" e_rsfi(); /* 1st digit of iinst */ -#line 579 "" +#line 586 "" i__1 = ibb; -#line 579 "" +#line 586 "" itemp = i_indx("01234567890", line + i__1, (ftnlen)11, ibb + 1 - i__1); -#line 580 "" +#line 587 "" if (itemp > 0) { -#line 581 "" +#line 588 "" ++ibb; -#line 582 "" +#line 589 "" iiinst = iiinst * 10 + itemp - 1; -#line 583 "" +#line 590 "" } -#line 584 "" +#line 591 "" ++ibb; /* now at first +/-. Need end of 2nd number */ -#line 585 "" +#line 592 "" i__1 = ibb; -#line 585 "" +#line 592 "" itemp = i_indx(line + i__1, "i", ib - i__1, (ftnlen)1) ; /* Rel pos'n of next 'i' */ -#line 586 "" +#line 593 "" if (itemp > 0) { -#line 587 "" +#line 594 "" iend = ibb + itemp - 1; -#line 588 "" +#line 595 "" } else { -#line 589 "" +#line 596 "" iend = ib - 1; -#line 590 "" +#line 597 "" } -#line 591 "" - io___97.ciunit = all_1.iorig[iiinst - 1] + 10; -#line 591 "" - s_wsfe(&io___97); +#line 598 "" + io___98.ciunit = all_1.iorig[iiinst - 1] + 10; +#line 598 "" + s_wsfe(&io___98); /* Writing concatenation */ -#line 591 "" +#line 598 "" i__3[0] = 3, a__1[0] = "Ki1"; -#line 591 "" +#line 598 "" i__3[1] = iend - (ibb - 1), a__1[1] = line + (ibb - 1) ; -#line 591 "" +#line 598 "" s_cat(ch__6, a__1, i__3, &c__2, (ftnlen)131); -#line 591 "" +#line 598 "" do_fio(&c__1, ch__6, iend - (ibb - 1) + 3); -#line 591 "" +#line 598 "" e_wsfe(); -#line 592 "" +#line 599 "" if (itemp > 0) { -#line 593 "" +#line 600 "" ibb = iend + 2; -#line 594 "" +#line 601 "" goto L40; -#line 595 "" +#line 602 "" } -#line 596 "" +#line 603 "" goto L12; /* Remove K command from string, go to next ia */ -#line 597 "" +#line 604 "" } -#line 598 "" +#line 605 "" L9: -#line 599 "" +#line 606 "" i__1 = ib - idxa; -#line 599 "" +#line 606 "" allparts_(line + (idxa - 1), &i__1, ib - 1 - (idxa - 1)); -#line 600 "" +#line 607 "" L12: /* Remove the string from line */ -#line 604 "" +#line 611 "" if (idxa == 1) { -#line 605 "" +#line 612 "" s_copy(line, line + (ib - 1), (ftnlen)128, 128 - (ib - 1)); -#line 606 "" +#line 613 "" } else { /* Writing concatenation */ -#line 607 "" +#line 614 "" i__3[0] = idxa - 1, a__1[0] = line; -#line 607 "" +#line 614 "" i__3[1] = 128 - (ib - 1), a__1[1] = line + (ib - 1); -#line 607 "" +#line 614 "" s_cat(line, a__1, i__3, &c__2, (ftnlen)128); -#line 608 "" +#line 615 "" } -#line 609 "" +#line 616 "" lenline = lenstr_(line, &c__128, (ftnlen)128); /* Loop if only blanks are left */ -#line 613 "" +#line 620 "" if (lenline == 0) { -#line 613 "" +#line 620 "" goto L4; -#line 613 "" +#line 620 "" } /* Must check for multiple "I" commands, so go to just after start of ia loop */ -#line 617 "" +#line 624 "" if (ia == 10) { -#line 617 "" +#line 624 "" goto L24; -#line 617 "" +#line 624 "" } /* Tack on front part from 1st line of saved macro */ -#line 621 "" +#line 628 "" if (lenhold > 0) { /* Writing concatenation */ -#line 622 "" +#line 629 "" i__4[0] = lenhold, a__2[0] = holdln; -#line 622 "" +#line 629 "" i__4[1] = 1, a__2[1] = " "; -#line 622 "" +#line 629 "" i__4[2] = lenline, a__2[2] = line; -#line 622 "" +#line 629 "" s_cat(line, a__2, i__4, &c__3, (ftnlen)128); -#line 623 "" +#line 630 "" lenhold = 0; -#line 624 "" +#line 631 "" } -#line 625 "" +#line 632 "" } -#line 626 "" +#line 633 "" /* L5: */ -#line 626 "" +#line 633 "" } -#line 627 "" +#line 634 "" } -#line 627 "" +#line 634 "" } /* Now a special loop to deal with 'X'. If it was %[n]X..., will have been */ /* copied into part [n] already. If no "B" or "P", remove. If "P", just */ /* remove the "P" so pmxa/b will process. If "B". do nothing. */ -#line 633 "" +#line 640 "" L10: -#line 634 "" +#line 641 "" nchk = 1; -#line 635 "" +#line 642 "" L13: -#line 635 "" +#line 642 "" ntinx = nchk - 1 + ntindex_(line + (nchk - 1), "X", 128 - (nchk - 1), ( ftnlen)1); -#line 636 "" +#line 643 "" if (ntinx > nchk - 1) { /* There is a non-TeX 'X' at ntinx. Loop if neither 1st nor after a blank. */ -#line 640 "" +#line 647 "" if (ntinx > 1) { -#line 641 "" +#line 648 "" i__1 = ntinx - 2; -#line 641 "" +#line 648 "" if (s_cmp(line + i__1, " ", ntinx - 1 - i__1, (ftnlen)1) != 0) { /* The X is not 1st char of PMX command. Advance starting point, loop. */ -#line 645 "" +#line 652 "" nchk = ntinx + 1; -#line 646 "" +#line 653 "" goto L13; -#line 647 "" +#line 654 "" } -#line 648 "" +#line 655 "" } /* We now know the X at ntinx starts a PMX command. Find next blank */ -#line 652 "" +#line 659 "" i__1 = ntinx; -#line 652 "" +#line 659 "" ib = ntinx + i_indx(line + i__1, " ", 128 - i__1, (ftnlen)1); /* There must be a blank to right of "X", so ib>ntinx */ /* locp = nchk-1+index(line(nchk:ib),'P') */ -#line 657 "" +#line 664 "" i__1 = ntinx; -#line 657 "" +#line 664 "" locp = ntinx + i_indx(line + i__1, "P", ib - i__1, (ftnlen)1); /* Did not need to use ntindex because we already know bounds of PMX command. */ /* if (locp .gt. nchk-1) then */ -#line 662 "" +#line 669 "" if (locp > ntinx) { /* Strip out the 'P' */ -#line 666 "" +#line 673 "" s_copy(templine, line, (ftnlen)128, locp - 1); -#line 667 "" +#line 674 "" i__1 = locp; /* Writing concatenation */ -#line 667 "" +#line 674 "" i__3[0] = locp - 1, a__1[0] = templine; -#line 667 "" +#line 674 "" i__3[1] = lenline - i__1, a__1[1] = line + i__1; -#line 667 "" +#line 674 "" s_cat(line, a__1, i__3, &c__2, (ftnlen)128); -#line 668 "" +#line 675 "" --lenline; -#line 669 "" +#line 676 "" --ib; -#line 670 "" +#line 677 "" } -#line 671 "" +#line 678 "" if (i_indx(line + (ntinx - 1), ":", ib - (ntinx - 1), (ftnlen)1) > 0 || i_indx(line + (ntinx - 1), "S", ib - (ntinx - 1), (ftnlen) 1) > 0 || i_indx(line + (ntinx - 1), "B", ib - (ntinx - 1), ( @@ -1748,177 +1758,177 @@ L13: /* The X command is a shift, "Both", or "Part". Do not remove. */ -#line 677 "" +#line 684 "" nchk = ib + 1; -#line 678 "" +#line 685 "" goto L13; -#line 679 "" +#line 686 "" } /* Remove the X command. */ -#line 683 "" +#line 690 "" if (ntinx == 1) { -#line 684 "" +#line 691 "" if (ib < lenline) { -#line 685 "" +#line 692 "" i__1 = ib; -#line 685 "" +#line 692 "" s_copy(line, line + i__1, (ftnlen)128, lenline - i__1); -#line 686 "" +#line 693 "" } else { /* line contains ONLY the "X" command, so get a new line */ -#line 690 "" +#line 697 "" goto L4; -#line 691 "" +#line 698 "" } -#line 692 "" +#line 699 "" } else { -#line 693 "" +#line 700 "" s_copy(templine, line, (ftnlen)128, ntinx - 1); -#line 694 "" +#line 701 "" if (ib < lenline) { -#line 695 "" +#line 702 "" i__1 = ib; /* Writing concatenation */ -#line 695 "" +#line 702 "" i__3[0] = ntinx - 1, a__1[0] = templine; -#line 695 "" +#line 702 "" i__3[1] = lenline - i__1, a__1[1] = line + i__1; -#line 695 "" +#line 702 "" s_cat(line, a__1, i__3, &c__2, (ftnlen)128); -#line 696 "" +#line 703 "" } else { -#line 697 "" +#line 704 "" s_copy(line, templine, (ftnlen)128, ntinx - 1); -#line 698 "" +#line 705 "" } -#line 699 "" +#line 706 "" } /* Recompute lenline */ -#line 703 "" +#line 710 "" lenline = lenstr_(line, &c__128, (ftnlen)128); /* Resume checking after location of removed command. */ -#line 707 "" +#line 714 "" nchk = ntinx; -#line 708 "" +#line 715 "" goto L13; -#line 709 "" +#line 716 "" } /* End of loop for X-checks */ -#line 713 "" +#line 720 "" oneof2 = ntindex_(line, "//", (ftnlen)128, (ftnlen)2) > 0; -#line 714 "" +#line 721 "" if (termrpt && all_1.botv[iv - 1] && frstln && *(unsigned char *)&line[ lenline - 1] == '/') { /* Must add a terminal repeat before the slash */ -#line 719 "" +#line 726 "" if (oneof2) { -#line 719 "" +#line 726 "" --lenline; -#line 719 "" +#line 726 "" } -#line 720 "" +#line 727 "" if (lenline > 1) { -#line 720 "" - io___102.ciunit = all_1.iorig[iinst - 1] + 10; -#line 720 "" - s_wsfe(&io___102); -#line 720 "" +#line 727 "" + io___103.ciunit = all_1.iorig[iinst - 1] + 10; +#line 727 "" + s_wsfe(&io___103); +#line 727 "" do_fio(&c__1, line, lenline - 1); -#line 720 "" +#line 727 "" e_wsfe(); -#line 720 "" +#line 727 "" } -#line 721 "" +#line 728 "" if (! oneof2) { /* Writing concatenation */ -#line 722 "" +#line 729 "" i__3[0] = 2, a__1[0] = termsym; -#line 722 "" +#line 729 "" i__3[1] = 2, a__1[1] = " /"; -#line 722 "" +#line 729 "" s_cat(line, a__1, i__3, &c__2, (ftnlen)128); -#line 723 "" +#line 730 "" lenline = 4; -#line 724 "" +#line 731 "" } else { /* Writing concatenation */ -#line 725 "" +#line 732 "" i__3[0] = 2, a__1[0] = termsym; -#line 725 "" +#line 732 "" i__3[1] = 3, a__1[1] = " //"; -#line 725 "" +#line 732 "" s_cat(line, a__1, i__3, &c__2, (ftnlen)128); -#line 726 "" +#line 733 "" lenline = 5; -#line 727 "" +#line 734 "" } -#line 728 "" +#line 735 "" } -#line 729 "" +#line 736 "" if (termrpt && frstln && *(unsigned char *)&line[lenline - 1] == '/' && iv == all_1.nvnow) { -#line 729 "" +#line 736 "" termrpt = FALSE_; -#line 729 "" +#line 736 "" } -#line 731 "" - io___103.ciunit = all_1.iorig[iinst - 1] + 10; -#line 731 "" - s_wsfe(&io___103); -#line 731 "" +#line 738 "" + io___104.ciunit = all_1.iorig[iinst - 1] + 10; +#line 738 "" + s_wsfe(&io___104); +#line 738 "" do_fio(&c__1, line, lenline); -#line 731 "" +#line 738 "" e_wsfe(); -#line 732 "" +#line 739 "" if (oneof2) { -#line 733 "" +#line 740 "" frstln = FALSE_; -#line 734 "" +#line 741 "" } else if (! frstln) { -#line 735 "" +#line 742 "" frstln = TRUE_; -#line 736 "" +#line 743 "" } /* if (ntindex(line,'/').gt.0 .and. index(line,'//').eq.0) then */ -#line 738 "" +#line 745 "" if (ntindex_(line, "/", (ftnlen)128, (ftnlen)1) > 0 && ntindex_(line, "//", (ftnlen)128, (ftnlen)2) == 0) { -#line 739 "" +#line 746 "" iv = iv % all_1.nvnow + 1; -#line 740 "" +#line 747 "" iinst = all_1.instnum[iv - 1]; -#line 741 "" +#line 748 "" } -#line 742 "" +#line 749 "" goto L4; -#line 743 "" +#line 750 "" L999: -#line 744 "" +#line 751 "" cl__1.cerr = 0; -#line 744 "" +#line 751 "" cl__1.cunit = 10; -#line 744 "" +#line 751 "" cl__1.csta = 0; -#line 744 "" +#line 751 "" f_clos(&cl__1); /* In the mbrest checks, must run through ALL noinst files (not just noinow) */ -#line 748 "" +#line 755 "" i__1 = all_1.noinst; -#line 748 "" +#line 755 "" for (iinst = 1; iinst <= i__1; ++iinst) { /* cc+++ */ /* c */ @@ -1938,28 +1948,28 @@ L999: /* 51 continue */ /* close(40) */ /* cc+++ */ -#line 767 "" +#line 774 "" if (all_1.nvi[iinst - 1] == 1) { -#line 768 "" +#line 775 "" mbrests_(&iinst, jobname, &ljob, &ludpfn[iinst - 1], udpfnq + ( iinst - 1 << 7), (ftnlen)27, (ftnlen)128); -#line 769 "" +#line 776 "" } else { /* Send a signal with ljob to bypass most mbrest processing */ -#line 773 "" +#line 780 "" i__2 = -ljob; -#line 773 "" +#line 780 "" mbrests_(&iinst, jobname, &i__2, &ludpfn[iinst - 1], udpfnq + ( iinst - 1 << 7), (ftnlen)27, (ftnlen)128); -#line 774 "" +#line 781 "" } -#line 775 "" +#line 782 "" /* L11: */ -#line 775 "" +#line 782 "" } -#line 776 "" +#line 783 "" return 0; } /* MAIN__ */ @@ -1968,21 +1978,21 @@ integer lenstr_(char *string, integer *n, ftnlen string_len) /* System generated locals */ integer ret_val; -#line 779 "" +#line 786 "" for (ret_val = *n; ret_val >= 1; --ret_val) { -#line 780 "" +#line 787 "" if (*(unsigned char *)&string[ret_val - 1] != ' ') { -#line 780 "" +#line 787 "" return ret_val; -#line 780 "" +#line 787 "" } -#line 781 "" +#line 788 "" /* L1: */ -#line 781 "" +#line 788 "" } -#line 782 "" +#line 789 "" ret_val = 0; -#line 783 "" +#line 790 "" return ret_val; } /* lenstr_ */ @@ -2000,36 +2010,36 @@ integer lenstr_(char *string, integer *n, ftnlen string_len) extern integer lenstr_(char *, integer *, ftnlen); /* Fortran I/O blocks */ - static cilist io___106 = { 0, 0, 0, "(a)", 0 }; + static cilist io___107 = { 0, 0, 0, "(a)", 0 }; -#line 791 "" +#line 798 "" len = lenstr_(string, n, string_len); -#line 792 "" +#line 799 "" if (len == 0) { -#line 793 "" +#line 800 "" len = 1; -#line 794 "" +#line 801 "" s_copy(string, " ", string_len, (ftnlen)1); -#line 795 "" +#line 802 "" } -#line 796 "" +#line 803 "" i__1 = all_1.noinow; -#line 796 "" +#line 803 "" for (iinst = 1; iinst <= i__1; ++iinst) { -#line 797 "" - io___106.ciunit = all_1.iorig[iinst - 1] + 10; -#line 797 "" - s_wsfe(&io___106); -#line 797 "" +#line 804 "" + io___107.ciunit = all_1.iorig[iinst - 1] + 10; +#line 804 "" + s_wsfe(&io___107); +#line 804 "" do_fio(&c__1, string, len); -#line 797 "" +#line 804 "" e_wsfe(); -#line 798 "" +#line 805 "" /* L1: */ -#line 798 "" +#line 805 "" } -#line 799 "" +#line 806 "" return 0; } /* allparts_ */ @@ -2092,752 +2102,752 @@ integer lenstr_(char *string, integer *n, ftnlen string_len) integer *, char *, integer *, ftnlen, ftnlen); /* Fortran I/O blocks */ - static cilist io___113 = { 0, 0, 0, "(a)", 0 }; - static cilist io___116 = { 0, 40, 0, "(a)", 0 }; + static cilist io___114 = { 0, 0, 0, "(a)", 0 }; static cilist io___117 = { 0, 40, 0, "(a)", 0 }; - static cilist io___118 = { 0, 6, 0, 0, 0 }; - static cilist io___121 = { 0, 0, 1, "(a)", 0 }; - static cilist io___122 = { 0, 40, 0, "(a)", 0 }; - static cilist io___123 = { 0, 0, 0, "(a)", 0 }; - static cilist io___124 = { 0, 40, 0, "(a)", 0 }; - static cilist io___144 = { 0, 0, 1, "(a)", 0 }; - static cilist io___145 = { 0, 40, 0, "(a)", 0 }; + static cilist io___118 = { 0, 40, 0, "(a)", 0 }; + static cilist io___119 = { 0, 6, 0, 0, 0 }; + static cilist io___122 = { 0, 0, 1, "(a)", 0 }; + static cilist io___123 = { 0, 40, 0, "(a)", 0 }; + static cilist io___124 = { 0, 0, 0, "(a)", 0 }; + static cilist io___125 = { 0, 40, 0, "(a)", 0 }; + static cilist io___145 = { 0, 0, 1, "(a)", 0 }; static cilist io___146 = { 0, 40, 0, "(a)", 0 }; - static cilist io___147 = { 0, 6, 0, 0, 0 }; - static cilist io___152 = { 0, 40, 0, "(a)", 0 }; - static cilist io___154 = { 0, 6, 0, 0, 0 }; - static cilist io___156 = { 0, 40, 0, "(a)", 0 }; - static cilist io___158 = { 0, 40, 0, "(a)", 0 }; + static cilist io___147 = { 0, 40, 0, "(a)", 0 }; + static cilist io___148 = { 0, 6, 0, 0, 0 }; + static cilist io___153 = { 0, 40, 0, "(a)", 0 }; + static cilist io___155 = { 0, 6, 0, 0, 0 }; + static cilist io___157 = { 0, 40, 0, "(a)", 0 }; static cilist io___159 = { 0, 40, 0, "(a)", 0 }; static cilist io___160 = { 0, 40, 0, "(a)", 0 }; static cilist io___161 = { 0, 40, 0, "(a)", 0 }; + static cilist io___162 = { 0, 40, 0, "(a)", 0 }; -#line 809 "" +#line 816 "" type4 = FALSE_; -#line 810 "" +#line 817 "" *(unsigned char *)sq = '\\'; -#line 811 "" +#line 818 "" alldone = FALSE_; -#line 812 "" +#line 819 "" al__1.aerr = 0; -#line 812 "" +#line 819 "" al__1.aunit = *iv + 10; -#line 812 "" +#line 819 "" f_rew(&al__1); -#line 813 "" +#line 820 "" if (*iv < 10) { -#line 814 "" +#line 821 "" *(unsigned char *)partq = (char) (*iv + 48); -#line 815 "" +#line 822 "" lpart = 1; -#line 816 "" +#line 823 "" } else { -#line 817 "" +#line 824 "" lpart = 2; -#line 818 "" +#line 825 "" if (*iv < 20) { /* Writing concatenation */ -#line 819 "" +#line 826 "" i__1[0] = 1, a__1[0] = "1"; -#line 819 "" +#line 826 "" *(unsigned char *)&ch__1[0] = *iv + 38; -#line 819 "" +#line 826 "" i__1[1] = 1, a__1[1] = ch__1; -#line 819 "" +#line 826 "" s_cat(partq, a__1, i__1, &c__2, (ftnlen)2); -#line 820 "" +#line 827 "" } else { /* Writing concatenation */ -#line 821 "" +#line 828 "" i__1[0] = 1, a__1[0] = "2"; -#line 821 "" +#line 828 "" *(unsigned char *)&ch__1[0] = *iv + 28; -#line 821 "" +#line 828 "" i__1[1] = 1, a__1[1] = ch__1; -#line 821 "" +#line 828 "" s_cat(partq, a__1, i__1, &c__2, (ftnlen)2); -#line 822 "" +#line 829 "" } -#line 823 "" +#line 830 "" } /* 130327 */ /* open(40,file=jobname(1:abs(ljob))//partq(1:lpart)//'.pmx') */ -#line 826 "" +#line 833 "" if (*ludpfn == 0) { -#line 827 "" +#line 834 "" o__1.oerr = 0; -#line 827 "" +#line 834 "" o__1.ounit = 40; -#line 827 "" +#line 834 "" o__1.ofnmlen = abs(*ljob) + lpart + 4; /* Writing concatenation */ -#line 827 "" +#line 834 "" i__2[0] = abs(*ljob), a__2[0] = jobname; -#line 827 "" +#line 834 "" i__2[1] = lpart, a__2[1] = partq; -#line 827 "" +#line 834 "" i__2[2] = 4, a__2[2] = ".pmx"; -#line 827 "" +#line 834 "" s_cat(ch__2, a__2, i__2, &c__3, (ftnlen)18); -#line 827 "" +#line 834 "" o__1.ofnm = ch__2; -#line 827 "" +#line 834 "" o__1.orl = 0; -#line 827 "" +#line 834 "" o__1.osta = 0; -#line 827 "" +#line 834 "" o__1.oacc = 0; -#line 827 "" +#line 834 "" o__1.ofm = 0; -#line 827 "" +#line 834 "" o__1.oblnk = 0; -#line 827 "" +#line 834 "" f_open(&o__1); -#line 828 "" +#line 835 "" } else { -#line 829 "" +#line 836 "" o__1.oerr = 0; -#line 829 "" +#line 836 "" o__1.ounit = 40; -#line 829 "" +#line 836 "" o__1.ofnmlen = *ludpfn + 4; /* Writing concatenation */ -#line 829 "" +#line 836 "" i__1[0] = *ludpfn, a__1[0] = udpfnq; -#line 829 "" +#line 836 "" i__1[1] = 4, a__1[1] = ".pmx"; -#line 829 "" +#line 836 "" s_cat(ch__3, a__1, i__1, &c__2, (ftnlen)132); -#line 829 "" +#line 836 "" o__1.ofnm = ch__3; -#line 829 "" +#line 836 "" o__1.orl = 0; -#line 829 "" +#line 836 "" o__1.osta = 0; -#line 829 "" +#line 836 "" o__1.oacc = 0; -#line 829 "" +#line 836 "" o__1.ofm = 0; -#line 829 "" +#line 836 "" o__1.oblnk = 0; -#line 829 "" +#line 836 "" f_open(&o__1); -#line 830 "" +#line 837 "" } -#line 831 "" +#line 838 "" for (i__ = 1; i__ <= 10000; ++i__) { -#line 832 "" - io___113.ciunit = *iv + 10; -#line 832 "" - s_rsfe(&io___113); -#line 832 "" +#line 839 "" + io___114.ciunit = *iv + 10; +#line 839 "" + s_rsfe(&io___114); +#line 839 "" do_fio(&c__1, line, (ftnlen)128); -#line 832 "" +#line 839 "" e_rsfe(); -#line 833 "" +#line 840 "" if (*(unsigned char *)&line[0] == '%' || s_cmp(line, "---", (ftnlen)3, (ftnlen)3) == 0 || type4) { -#line 835 "" +#line 842 "" len = lenstr_(line, &c__128, (ftnlen)128); -#line 836 "" +#line 843 "" if (len > 0) { -#line 837 "" - s_wsfe(&io___116); -#line 837 "" +#line 844 "" + s_wsfe(&io___117); +#line 844 "" do_fio(&c__1, line, len); -#line 837 "" +#line 844 "" e_wsfe(); -#line 838 "" +#line 845 "" } else { -#line 839 "" - s_wsfe(&io___117); -#line 839 "" +#line 846 "" + s_wsfe(&io___118); +#line 846 "" do_fio(&c__1, " ", (ftnlen)1); -#line 839 "" +#line 846 "" e_wsfe(); -#line 840 "" +#line 847 "" } -#line 841 "" +#line 848 "" if (s_cmp(line, "---", (ftnlen)3, (ftnlen)3) == 0) { -#line 841 "" +#line 848 "" type4 = ! type4; -#line 841 "" +#line 848 "" } -#line 842 "" +#line 849 "" } else { -#line 843 "" +#line 850 "" goto L11; -#line 844 "" +#line 851 "" } -#line 845 "" +#line 852 "" /* L10: */ -#line 845 "" +#line 852 "" } -#line 846 "" - s_wsle(&io___118); -#line 846 "" +#line 853 "" + s_wsle(&io___119); +#line 853 "" do_lio(&c__9, &c__1, "You should not be here in scor2prt. Call Dr. Don", (ftnlen)49); -#line 846 "" +#line 853 "" e_wsle(); -#line 847 "" +#line 854 "" s_stop("", (ftnlen)0); -#line 848 "" +#line 855 "" L11: /* Finished reading opening type4 TeX and comments. Next line to be read */ /* will contain the first of the input numbers */ -#line 853 "" +#line 860 "" dosetup_(iv, line, &mtrnum, &mtrden, (ftnlen)128); -#line 854 "" +#line 861 "" for (i__ = 1; i__ <= 10000; ++i__) { -#line 855 "" +#line 862 "" L13: -#line 855 "" - io___121.ciunit = *iv + 10; -#line 855 "" - i__3 = s_rsfe(&io___121); -#line 855 "" +#line 862 "" + io___122.ciunit = *iv + 10; +#line 862 "" + i__3 = s_rsfe(&io___122); +#line 862 "" if (i__3 != 0) { -#line 855 "" +#line 862 "" goto L999; -#line 855 "" +#line 862 "" } -#line 855 "" +#line 862 "" i__3 = do_fio(&c__1, line, (ftnlen)128); -#line 855 "" +#line 862 "" if (i__3 != 0) { -#line 855 "" +#line 862 "" goto L999; -#line 855 "" +#line 862 "" } -#line 855 "" +#line 862 "" i__3 = e_rsfe(); -#line 855 "" +#line 862 "" if (i__3 != 0) { -#line 855 "" +#line 862 "" goto L999; -#line 855 "" +#line 862 "" } -#line 856 "" +#line 863 "" L7: -#line 856 "" +#line 863 "" len = lenstr_(line, &c__128, (ftnlen)128); /* Pass-through (and copy into part file) if instrumnet has >1 voice. */ -#line 860 "" +#line 867 "" if (*ljob < 0) { -#line 860 "" +#line 867 "" goto L2; -#line 860 "" +#line 867 "" } -#line 861 "" +#line 868 "" if (i_indx("TtTiTch+h-h l ", line, (ftnlen)14, (ftnlen)2) > 0) { /* Traps titles, instruments, composers, headers, lower strings. Read 2 lines. */ -#line 865 "" - s_wsfe(&io___122); -#line 865 "" +#line 872 "" + s_wsfe(&io___123); +#line 872 "" do_fio(&c__1, line, len); -#line 865 "" +#line 872 "" e_wsfe(); -#line 866 "" - io___123.ciunit = *iv + 10; -#line 866 "" - s_rsfe(&io___123); -#line 866 "" +#line 873 "" + io___124.ciunit = *iv + 10; +#line 873 "" + s_rsfe(&io___124); +#line 873 "" do_fio(&c__1, line, (ftnlen)128); -#line 866 "" +#line 873 "" e_rsfe(); -#line 867 "" +#line 874 "" len = lenstr_(line, &c__128, (ftnlen)128); -#line 868 "" +#line 875 "" goto L2; -#line 869 "" +#line 876 "" } -#line 870 "" +#line 877 "" if (i__ == 1 || i__ > 5 && *(unsigned char *)&line[0] == 'm') { /* Either just starting, or a new meter is defined. */ /* NOTE! The above test may be bogus. */ -#line 875 "" +#line 882 "" if (*(unsigned char *)&line[0] == '%') { -#line 876 "" - s_wsfe(&io___124); -#line 876 "" +#line 883 "" + s_wsfe(&io___125); +#line 883 "" do_fio(&c__1, line, len); -#line 876 "" +#line 883 "" e_wsfe(); -#line 877 "" +#line 884 "" goto L13; -#line 878 "" +#line 885 "" } -#line 879 "" +#line 886 "" if (i__ != 1) { /* New meter. Check for slashes (new meter change syntax) */ -#line 883 "" +#line 890 "" idxs = i_indx(line, "/", (ftnlen)128, (ftnlen)1); -#line 884 "" +#line 891 "" idxb = i_indx(line, " ", (ftnlen)128, (ftnlen)1); -#line 885 "" +#line 892 "" newmtr = idxs > 0 && (idxb == 0 || idxs < idxb); -#line 886 "" +#line 893 "" if (! newmtr) { /* Old way, no slashes, uses 'o' for lonesome '1' */ -#line 890 "" +#line 897 "" icden = 3; -#line 891 "" +#line 898 "" if (*(unsigned char *)&line[1] == 'o') { -#line 892 "" +#line 899 "" mtrnum = 1; -#line 893 "" +#line 900 "" } else { -#line 894 "" +#line 901 "" mtrnum = *(unsigned char *)&line[1] - 48; -#line 895 "" +#line 902 "" if (mtrnum == 1) { -#line 896 "" +#line 903 "" icden = 4; -#line 897 "" +#line 904 "" mtrnum = *(unsigned char *)&line[2] - 38; -#line 898 "" +#line 905 "" } -#line 899 "" +#line 906 "" } -#line 900 "" +#line 907 "" mtrden = *(unsigned char *)&line[icden - 1] - 48; -#line 901 "" +#line 908 "" } else { /* New way with slashes: idxs is index of 1st slash! */ -#line 905 "" +#line 912 "" ici__1.icierr = 0; -#line 905 "" +#line 912 "" ici__1.iciend = 0; -#line 905 "" +#line 912 "" ici__1.icirnum = 1; -#line 905 "" +#line 912 "" ici__1.icirlen = idxs - 2; -#line 905 "" +#line 912 "" ici__1.iciunit = line + 1; /* Writing concatenation */ -#line 905 "" +#line 912 "" i__2[0] = 2, a__2[0] = "(i"; -#line 905 "" +#line 912 "" *(unsigned char *)&ch__1[0] = idxs + 46; -#line 905 "" +#line 912 "" i__2[1] = 1, a__2[1] = ch__1; -#line 905 "" +#line 912 "" i__2[2] = 1, a__2[2] = ")"; -#line 905 "" +#line 912 "" ici__1.icifmt = (s_cat(ch__4, a__2, i__2, &c__3, (ftnlen) 4), ch__4); -#line 905 "" +#line 912 "" s_rsfi(&ici__1); -#line 905 "" +#line 912 "" do_fio(&c__1, (char *)&mtrnum, (ftnlen)sizeof(integer)); -#line 905 "" +#line 912 "" e_rsfi(); -#line 906 "" +#line 913 "" i__3 = idxs; -#line 906 "" +#line 913 "" idxb = i_indx(line + i__3, "/", 128 - i__3, (ftnlen)1); -#line 907 "" +#line 914 "" i__3 = idxs; -#line 907 "" +#line 914 "" ici__1.icierr = 0; -#line 907 "" +#line 914 "" ici__1.iciend = 0; -#line 907 "" +#line 914 "" ici__1.icirnum = 1; -#line 907 "" +#line 914 "" ici__1.icirlen = idxs + idxb - 1 - i__3; -#line 907 "" +#line 914 "" ici__1.iciunit = line + i__3; /* Writing concatenation */ -#line 907 "" +#line 914 "" i__2[0] = 2, a__2[0] = "(i"; -#line 907 "" +#line 914 "" *(unsigned char *)&ch__1[0] = idxb + 47; -#line 907 "" +#line 914 "" i__2[1] = 1, a__2[1] = ch__1; -#line 907 "" +#line 914 "" i__2[2] = 1, a__2[2] = ")"; -#line 907 "" +#line 914 "" ici__1.icifmt = (s_cat(ch__4, a__2, i__2, &c__3, (ftnlen) 4), ch__4); -#line 907 "" +#line 914 "" s_rsfi(&ici__1); -#line 907 "" +#line 914 "" do_fio(&c__1, (char *)&mtrden, (ftnlen)sizeof(integer)); -#line 907 "" +#line 914 "" e_rsfi(); -#line 909 "" +#line 916 "" } -#line 910 "" +#line 917 "" } -#line 911 "" +#line 918 "" lenbeat = ifnodur_(&mtrden, "x", (ftnlen)1); -#line 912 "" +#line 919 "" lenmult = 1; -#line 913 "" +#line 920 "" if (mtrden == 2) { -#line 914 "" +#line 921 "" lenbeat = 16; -#line 915 "" +#line 922 "" lenmult = 2; -#line 916 "" +#line 923 "" } -#line 917 "" +#line 924 "" lenbar = lenmult * mtrnum * lenbeat; -#line 918 "" +#line 925 "" fwbrsym_(&lenbar, &nwbrs, wbrsym, &lwbrs, (ftnlen)3); -#line 919 "" +#line 926 "" } /* Finished setting up meter stuff and defining whole-bar rest symbols */ -#line 923 "" +#line 930 "" ip1 = 0; -#line 924 "" +#line 931 "" s_copy(line1, line, (ftnlen)128, (ftnlen)128); -#line 925 "" +#line 932 "" i__3 = nwbrs; -#line 925 "" +#line 932 "" for (iw = 0; iw <= i__3; ++iw) { -#line 926 "" +#line 933 "" if (iw > 0) { -#line 927 "" +#line 934 "" idx = ntindex_(line1, wbrsym + (iw - 1) * 3, (ftnlen)128, lwbrs); -#line 928 "" +#line 935 "" if (idx > 0) { /* Check for blank or shifted rest, discount it if it's there */ -#line 932 "" +#line 939 "" i__4 = idx + lwbrs - 1; -#line 932 "" +#line 939 "" if (s_cmp(line1 + i__4, " ", idx + lwbrs - i__4, (ftnlen) 1) != 0) { -#line 932 "" +#line 939 "" idx = 0; -#line 932 "" +#line 939 "" } -#line 933 "" +#line 940 "" } -#line 934 "" +#line 941 "" } else { -#line 935 "" +#line 942 "" idx = ntindex_(line1, "rp", (ftnlen)128, (ftnlen)2); /* Check for raised rest */ -#line 939 "" +#line 946 "" if (idx > 0) { -#line 940 "" +#line 947 "" i__4 = idx + 1; -#line 940 "" +#line 947 "" if (s_cmp(line1 + i__4, " ", idx + 2 - i__4, (ftnlen)1) != 0) { -#line 940 "" +#line 947 "" idx = 0; -#line 940 "" +#line 947 "" } -#line 941 "" +#line 948 "" } -#line 942 "" +#line 949 "" } -#line 943 "" +#line 950 "" if (idx > 0) { -#line 944 "" +#line 951 "" if (ip1 == 0) { -#line 945 "" +#line 952 "" ip1 = idx; -#line 946 "" +#line 953 "" } else { -#line 947 "" +#line 954 "" ip1 = min(ip1,idx); /* Maybe allows e.g. r0 rp ... */ -#line 948 "" +#line 955 "" } -#line 949 "" +#line 956 "" } -#line 950 "" +#line 957 "" /* L3: */ -#line 950 "" +#line 957 "" } /* Writing concatenation */ -#line 951 "" +#line 958 "" i__1[0] = 1, a__1[0] = sq; -#line 951 "" +#line 958 "" i__1[1] = 1, a__1[1] = sq; -#line 951 "" +#line 958 "" s_cat(ch__5, a__1, i__1, &c__2, (ftnlen)2); -#line 951 "" +#line 958 "" if (i__ < 5 || *(unsigned char *)&line[0] == '%' || s_cmp(line, ch__5, (ftnlen)2, (ftnlen)2) == 0 || ip1 == 0) { -#line 951 "" +#line 958 "" goto L2; -#line 951 "" +#line 958 "" } /* Switch to multibar rest search mode!!! Start forward in line(1) */ -#line 956 "" +#line 963 "" rpfirst = s_cmp(line1 + (ip1 - 1), "rp", (ftnlen)2, (ftnlen)2) == 0; -#line 957 "" +#line 964 "" iline = 1; -#line 958 "" +#line 965 "" nmbr = 1; -#line 959 "" +#line 966 "" if (rpfirst) { -#line 960 "" +#line 967 "" lwbrsx = 2; -#line 961 "" +#line 968 "" } else { -#line 962 "" +#line 969 "" lwbrsx = lwbrs; -#line 963 "" +#line 970 "" } -#line 964 "" +#line 971 "" ipe = ip1 + lwbrsx - 1; /* ip at end of 1st wbrsym */ -#line 965 "" +#line 972 "" L4: -#line 965 "" +#line 972 "" if (ipe == len) { /* Need a new line */ -#line 969 "" +#line 976 "" ++iline; -#line 970 "" +#line 977 "" L6: -#line 970 "" - io___144.ciunit = *iv + 10; -#line 970 "" - i__3 = s_rsfe(&io___144); -#line 970 "" +#line 977 "" + io___145.ciunit = *iv + 10; +#line 977 "" + i__3 = s_rsfe(&io___145); +#line 977 "" if (i__3 != 0) { -#line 970 "" +#line 977 "" goto L998; -#line 970 "" +#line 977 "" } -#line 970 "" +#line 977 "" i__3 = do_fio(&c__1, line + (iline - 1 << 7), (ftnlen)128); -#line 970 "" +#line 977 "" if (i__3 != 0) { -#line 970 "" +#line 977 "" goto L998; -#line 970 "" +#line 977 "" } -#line 970 "" +#line 977 "" i__3 = e_rsfe(); -#line 970 "" +#line 977 "" if (i__3 != 0) { -#line 970 "" +#line 977 "" goto L998; -#line 970 "" +#line 977 "" } -#line 971 "" +#line 978 "" len = lenstr_(line + (iline - 1 << 7), &c__128, (ftnlen)128); -#line 972 "" +#line 979 "" if (*(unsigned char *)&line[(iline - 1) * 128] == '%') { -#line 973 "" - s_wsfe(&io___145); -#line 973 "" +#line 980 "" + s_wsfe(&io___146); +#line 980 "" do_fio(&c__1, "% Following comment has been moved forward", ( ftnlen)42); -#line 973 "" +#line 980 "" e_wsfe(); -#line 974 "" - s_wsfe(&io___146); -#line 974 "" +#line 981 "" + s_wsfe(&io___147); +#line 981 "" do_fio(&c__1, line + (iline - 1 << 7), len); -#line 974 "" +#line 981 "" e_wsfe(); -#line 975 "" +#line 982 "" goto L6; -#line 976 "" +#line 983 "" } -#line 977 "" +#line 984 "" ipe = 0; -#line 978 "" +#line 985 "" goto L4; -#line 979 "" +#line 986 "" L998: /* No more input left */ -#line 983 "" - s_wsle(&io___147); -#line 983 "" +#line 990 "" + s_wsle(&io___148); +#line 990 "" do_lio(&c__9, &c__1, "All done!", (ftnlen)9); -#line 983 "" +#line 990 "" e_wsle(); -#line 984 "" +#line 991 "" alldone = TRUE_; -#line 985 "" +#line 992 "" ipe = 0; -#line 986 "" +#line 993 "" --iline; -#line 987 "" +#line 994 "" len = lenstr_(line + (iline - 1 << 7), &c__128, (ftnlen)128); -#line 988 "" +#line 995 "" goto L4; -#line 989 "" +#line 996 "" } else { -#line 990 "" +#line 997 "" if (alldone) { -#line 991 "" +#line 998 "" *(unsigned char *)sym = ' '; -#line 992 "" +#line 999 "" } else { /* ipe<len here, so it's ok to get a symbol */ -#line 996 "" +#line 1003 "" nextsym_(line + (iline - 1 << 7), &len, &ipe, &ipenew, sym, & lsym, (ftnlen)128, (ftnlen)80); -#line 997 "" +#line 1004 "" } /* Check for end of block or bar line symbol */ -#line 1001 "" +#line 1008 "" if (i_indx("/|", sym, (ftnlen)2, (ftnlen)1) > 0) { -#line 1002 "" +#line 1009 "" ipe = ipenew; -#line 1003 "" +#line 1010 "" goto L4; -#line 1004 "" +#line 1011 "" } else { -#line 1005 "" +#line 1012 "" wbrest = FALSE_; -#line 1006 "" +#line 1013 "" if (alldone) { -#line 1006 "" +#line 1013 "" goto L12; -#line 1006 "" +#line 1013 "" } -#line 1007 "" +#line 1014 "" i__3 = nwbrs; -#line 1007 "" +#line 1014 "" for (iw = 1; iw <= i__3; ++iw) { -#line 1008 "" +#line 1015 "" wbrest = wbrest || s_cmp(sym, wbrsym + (iw - 1) * 3, lsym, lwbrs) == 0; -#line 1009 "" +#line 1016 "" /* L5: */ -#line 1009 "" +#line 1016 "" } -#line 1010 "" +#line 1017 "" wbrest = wbrest || s_cmp(sym, "r", lsym, (ftnlen)1) == 0 && lwbrs == 2 || s_cmp(sym, "rd", lsym, (ftnlen)2) == 0 && lwbrs == 3 || s_cmp(sym, "rp", lsym, (ftnlen)2) == 0 || s_cmp(sym, "r", lsym, (ftnlen)1) == 0 && rpfirst; -#line 1014 "" +#line 1021 "" L12: -#line 1014 "" +#line 1021 "" if (wbrest) { -#line 1015 "" +#line 1022 "" ipe = ipenew; -#line 1016 "" +#line 1023 "" ++nmbr; -#line 1017 "" +#line 1024 "" goto L4; -#line 1018 "" +#line 1025 "" } else { /* AHA! Failed prev. test, so last symbol was *not* mbr. */ /* It must be saved, and its starting position is ipenew-lsym+1 */ -#line 1023 "" +#line 1030 "" if (nmbr > 1) { /* Write stuff up to start of mbr */ -#line 1027 "" +#line 1034 "" if (ip1 > 1) { -#line 1027 "" - s_wsfe(&io___152); -#line 1027 "" +#line 1034 "" + s_wsfe(&io___153); +#line 1034 "" do_fio(&c__1, line, ip1 - 1); -#line 1027 "" +#line 1034 "" e_wsfe(); -#line 1027 "" +#line 1034 "" } /* Insert mbr symbol. Always end with a slash just in case next sym must be */ /* at start of block. May think this causes undefined octaves, but */ /* probably not since it's a single voice. */ -#line 1033 "" +#line 1040 "" r__1 = nmbr + .01f; -#line 1033 "" +#line 1040 "" ndig = (integer) r_lg10(&r__1) + 1; -#line 1034 "" - s_wsle(&io___154); -#line 1034 "" +#line 1041 "" + s_wsle(&io___155); +#line 1041 "" do_lio(&c__9, &c__1, "Inserting rm, iv,nmbr:", ( ftnlen)22); -#line 1034 "" +#line 1041 "" do_lio(&c__3, &c__1, (char *)&(*iv), (ftnlen)sizeof( integer)); -#line 1034 "" +#line 1041 "" do_lio(&c__3, &c__1, (char *)&nmbr, (ftnlen)sizeof( integer)); -#line 1034 "" +#line 1041 "" e_wsle(); -#line 1035 "" +#line 1042 "" ci__1.cierr = 0; -#line 1035 "" +#line 1042 "" ci__1.ciunit = 40; /* Writing concatenation */ -#line 1035 "" +#line 1042 "" i__2[0] = 5, a__2[0] = "(a2,i"; -#line 1035 "" +#line 1042 "" *(unsigned char *)&ch__1[0] = ndig + 48; -#line 1035 "" +#line 1042 "" i__2[1] = 1, a__2[1] = ch__1; -#line 1035 "" +#line 1042 "" i__2[2] = 4, a__2[2] = ",a2)"; -#line 1035 "" +#line 1042 "" ci__1.cifmt = (s_cat(ch__6, a__2, i__2, &c__3, ( ftnlen)10), ch__6); -#line 1035 "" +#line 1042 "" s_wsfe(&ci__1); -#line 1035 "" +#line 1042 "" do_fio(&c__1, "rm", (ftnlen)2); -#line 1035 "" +#line 1042 "" do_fio(&c__1, (char *)&nmbr, (ftnlen)sizeof(integer)); -#line 1035 "" +#line 1042 "" do_fio(&c__1, " /", (ftnlen)2); -#line 1035 "" +#line 1042 "" e_wsfe(); -#line 1036 "" +#line 1043 "" if (alldone) { -#line 1036 "" +#line 1043 "" goto L999; -#line 1036 "" +#line 1043 "" } -#line 1037 "" +#line 1044 "" ipc = ipenew - lsym + 1; -#line 1038 "" +#line 1045 "" s_copy(line, line + ((iline - 1 << 7) + (ipc - 1)), ( ftnlen)128, len - (ipc - 1)); -#line 1039 "" +#line 1046 "" } else { /* Write old stuff up to end of original lonesome wbr, save the rest. */ @@ -2847,112 +2857,112 @@ L12: /* non-comment line; then revert to normal mode on that. In 3rd case must */ /* split line. */ -#line 1048 "" +#line 1055 "" if (alldone) { -#line 1049 "" - s_wsfe(&io___156); -#line 1049 "" +#line 1056 "" + s_wsfe(&io___157); +#line 1056 "" do_fio(&c__1, line, len); -#line 1049 "" +#line 1056 "" e_wsfe(); -#line 1050 "" +#line 1057 "" goto L999; -#line 1051 "" +#line 1058 "" } else if (iline > 1) { -#line 1052 "" +#line 1059 "" i__3 = iline - 1; -#line 1052 "" +#line 1059 "" for (il = 1; il <= i__3; ++il) { -#line 1053 "" +#line 1060 "" len = lenstr_(line + (il - 1 << 7), &c__128, ( ftnlen)128); -#line 1054 "" - s_wsfe(&io___158); -#line 1054 "" +#line 1061 "" + s_wsfe(&io___159); +#line 1061 "" do_fio(&c__1, line + (il - 1 << 7), len); -#line 1054 "" +#line 1061 "" e_wsfe(); -#line 1055 "" +#line 1062 "" /* L9: */ -#line 1055 "" +#line 1062 "" } -#line 1056 "" +#line 1063 "" s_copy(line, line + (iline - 1 << 7), (ftnlen)128, (ftnlen)128); -#line 1057 "" +#line 1064 "" } else { /* Since iline = 1 the wbr is not the last sym, so must split */ -#line 1061 "" - s_wsfe(&io___159); -#line 1061 "" +#line 1068 "" + s_wsfe(&io___160); +#line 1068 "" do_fio(&c__1, line, ip1 + lwbrsx - 1); -#line 1061 "" +#line 1068 "" e_wsfe(); -#line 1062 "" +#line 1069 "" i__3 = ip1 + lwbrsx; -#line 1062 "" +#line 1069 "" s_copy(line, line + i__3, (ftnlen)128, len - i__3) ; -#line 1063 "" +#line 1070 "" } -#line 1064 "" +#line 1071 "" } /* Exit multibar mode */ -#line 1068 "" +#line 1075 "" goto L7; -#line 1069 "" +#line 1076 "" } -#line 1070 "" +#line 1077 "" } -#line 1071 "" +#line 1078 "" } -#line 1072 "" +#line 1079 "" L2: -#line 1073 "" +#line 1080 "" if (len > 0) { -#line 1074 "" - s_wsfe(&io___160); -#line 1074 "" +#line 1081 "" + s_wsfe(&io___161); +#line 1081 "" do_fio(&c__1, line, len); -#line 1074 "" +#line 1081 "" e_wsfe(); -#line 1075 "" +#line 1082 "" } else { -#line 1076 "" - s_wsfe(&io___161); -#line 1076 "" +#line 1083 "" + s_wsfe(&io___162); +#line 1083 "" do_fio(&c__1, " ", (ftnlen)1); -#line 1076 "" +#line 1083 "" e_wsfe(); -#line 1077 "" +#line 1084 "" } -#line 1078 "" +#line 1085 "" /* L1: */ -#line 1078 "" +#line 1085 "" } -#line 1079 "" +#line 1086 "" L999: -#line 1080 "" +#line 1087 "" cl__1.cerr = 0; -#line 1080 "" +#line 1087 "" cl__1.cunit = *iv + 10; -#line 1080 "" +#line 1087 "" cl__1.csta = 0; -#line 1080 "" +#line 1087 "" f_clos(&cl__1); -#line 1081 "" +#line 1088 "" cl__1.cerr = 0; -#line 1081 "" +#line 1088 "" cl__1.cunit = 40; -#line 1081 "" +#line 1088 "" cl__1.csta = 0; -#line 1081 "" +#line 1088 "" f_clos(&cl__1); -#line 1082 "" +#line 1089 "" return 0; } /* mbrests_ */ @@ -2967,57 +2977,57 @@ integer ifnodur_(integer *idur, char *dotq, ftnlen dotq_len) /* Subroutine */ int s_stop(char *, ftnlen); /* Fortran I/O blocks */ - static cilist io___162 = { 0, 6, 0, 0, 0 }; + static cilist io___163 = { 0, 6, 0, 0, 0 }; -#line 1086 "" +#line 1093 "" if (*idur == 6) { -#line 1087 "" +#line 1094 "" ret_val = 1; -#line 1088 "" +#line 1095 "" } else if (*idur == 3) { -#line 1089 "" +#line 1096 "" ret_val = 2; -#line 1090 "" +#line 1097 "" } else if (*idur == 1 || *idur == 16) { -#line 1091 "" +#line 1098 "" ret_val = 4; -#line 1092 "" +#line 1099 "" } else if (*idur == 8) { -#line 1093 "" +#line 1100 "" ret_val = 8; -#line 1094 "" +#line 1101 "" } else if (*idur == 4) { -#line 1095 "" +#line 1102 "" ret_val = 16; -#line 1096 "" +#line 1103 "" } else if (*idur == 2) { -#line 1097 "" +#line 1104 "" ret_val = 32; -#line 1098 "" +#line 1105 "" } else if (*idur == 0) { -#line 1099 "" +#line 1106 "" ret_val = 64; -#line 1100 "" +#line 1107 "" } else { -#line 1101 "" - s_wsle(&io___162); -#line 1101 "" +#line 1108 "" + s_wsle(&io___163); +#line 1108 "" do_lio(&c__9, &c__1, "You entered an invalid note-length value", ( ftnlen)40); -#line 1101 "" +#line 1108 "" e_wsle(); -#line 1102 "" +#line 1109 "" s_stop("", (ftnlen)0); -#line 1103 "" +#line 1110 "" } -#line 1104 "" +#line 1111 "" if (*(unsigned char *)dotq == 'd') { -#line 1104 "" +#line 1111 "" ret_val = ret_val * 3 / 2; -#line 1104 "" +#line 1111 "" } -#line 1105 "" +#line 1112 "" return ret_val; } /* ifnodur_ */ @@ -3029,79 +3039,79 @@ integer ifnodur_(integer *idur, char *dotq, ftnlen dotq_len) integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void); /* Fortran I/O blocks */ - static cilist io___163 = { 0, 6, 0, "(33H Any whole-bar rests of duratio" + static cilist io___164 = { 0, 6, 0, "(33H Any whole-bar rests of duratio" "n ,i3, 26H/64 will not be recognized)", 0 }; -#line 1109 "" +#line 1116 "" /* Parameter adjustments */ -#line 1109 "" +#line 1116 "" wbrsym -= 3; -#line 1109 "" +#line 1116 "" -#line 1109 "" +#line 1116 "" /* Function Body */ -#line 1109 "" +#line 1116 "" *nwbrs = 1; -#line 1110 "" +#line 1117 "" *lwbrs = 2; -#line 1111 "" +#line 1118 "" if (*lenbar == 16) { -#line 1112 "" +#line 1119 "" s_copy(wbrsym + 3, "r4", (ftnlen)3, (ftnlen)2); -#line 1113 "" +#line 1120 "" } else if (*lenbar == 32) { -#line 1114 "" +#line 1121 "" s_copy(wbrsym + 3, "r2", (ftnlen)3, (ftnlen)2); -#line 1115 "" +#line 1122 "" } else if (*lenbar == 64) { -#line 1116 "" +#line 1123 "" s_copy(wbrsym + 3, "r0", (ftnlen)3, (ftnlen)2); -#line 1117 "" +#line 1124 "" } else if (*lenbar == 8) { -#line 1118 "" +#line 1125 "" s_copy(wbrsym + 3, "r8", (ftnlen)3, (ftnlen)2); -#line 1119 "" +#line 1126 "" } else if (*lenbar == 128) { -#line 1120 "" +#line 1127 "" s_copy(wbrsym + 3, "r9", (ftnlen)3, (ftnlen)2); -#line 1121 "" +#line 1128 "" } else { -#line 1122 "" +#line 1129 "" *nwbrs = 2; -#line 1123 "" +#line 1130 "" *lwbrs = 3; -#line 1124 "" +#line 1131 "" if (*lenbar == 24) { -#line 1125 "" +#line 1132 "" s_copy(wbrsym + 3, "rd4", (ftnlen)3, (ftnlen)3); -#line 1126 "" +#line 1133 "" s_copy(wbrsym + 6, "r4d", (ftnlen)3, (ftnlen)3); -#line 1127 "" +#line 1134 "" } else if (*lenbar == 48) { -#line 1128 "" +#line 1135 "" s_copy(wbrsym + 3, "rd2", (ftnlen)3, (ftnlen)3); -#line 1129 "" +#line 1136 "" s_copy(wbrsym + 6, "r2d", (ftnlen)3, (ftnlen)3); -#line 1130 "" +#line 1137 "" } else if (*lenbar == 96) { -#line 1131 "" +#line 1138 "" s_copy(wbrsym + 3, "rd0", (ftnlen)3, (ftnlen)3); -#line 1132 "" +#line 1139 "" s_copy(wbrsym + 6, "r0d", (ftnlen)3, (ftnlen)3); -#line 1133 "" +#line 1140 "" } else { -#line 1134 "" - s_wsfe(&io___163); -#line 1134 "" +#line 1141 "" + s_wsfe(&io___164); +#line 1141 "" do_fio(&c__1, (char *)&(*lenbar), (ftnlen)sizeof(integer)); -#line 1134 "" +#line 1141 "" e_wsfe(); -#line 1136 "" +#line 1143 "" } -#line 1137 "" +#line 1144 "" } -#line 1138 "" +#line 1145 "" return 0; } /* fwbrsym_ */ @@ -3122,113 +3132,113 @@ integer ifnodur_(integer *idur, char *dotq, ftnlen dotq_len) static integer ip, iip; /* Fortran I/O blocks */ - static cilist io___164 = { 0, 6, 0, 0, 0 }; static cilist io___165 = { 0, 6, 0, 0, 0 }; - static cilist io___168 = { 0, 6, 0, 0, 0 }; + static cilist io___166 = { 0, 6, 0, 0, 0 }; + static cilist io___169 = { 0, 6, 0, 0, 0 }; /* Know its the last symbol if on return ipenew = len!. So should never */ /* be called when ipstart=len. */ -#line 1147 "" +#line 1154 "" if (*ipeold >= *len) { -#line 1148 "" - s_wsle(&io___164); -#line 1148 "" +#line 1155 "" + s_wsle(&io___165); +#line 1155 "" do_lio(&c__9, &c__1, "Called nextsym with ipstart>=len ", (ftnlen)33); -#line 1148 "" +#line 1155 "" e_wsle(); -#line 1149 "" - s_wsle(&io___165); -#line 1149 "" +#line 1156 "" + s_wsle(&io___166); +#line 1156 "" do_lio(&c__9, &c__1, "Send files to Dr. Don at dsimons@logicon.com", ( ftnlen)44); -#line 1149 "" +#line 1156 "" e_wsle(); -#line 1150 "" +#line 1157 "" s_stop("", (ftnlen)0); -#line 1151 "" +#line 1158 "" } -#line 1152 "" +#line 1159 "" i__1 = *len; -#line 1152 "" +#line 1159 "" for (ip = *ipeold + 1; ip <= i__1; ++ip) { -#line 1153 "" +#line 1160 "" if (*(unsigned char *)&line[ip - 1] != ' ') { /* symbol starts here (ip). We're committed to exit the loop. */ -#line 1157 "" +#line 1164 "" if (ip < *len) { -#line 1158 "" +#line 1165 "" i__2 = *len; -#line 1158 "" +#line 1165 "" for (iip = ip + 1; iip <= i__2; ++iip) { -#line 1159 "" +#line 1166 "" if (*(unsigned char *)&line[iip - 1] != ' ') { -#line 1159 "" +#line 1166 "" goto L2; -#line 1159 "" +#line 1166 "" } /* iip is the space after the symbol */ -#line 1163 "" +#line 1170 "" *ipenew = iip - 1; -#line 1164 "" +#line 1171 "" *lsym = *ipenew - ip + 1; -#line 1165 "" +#line 1172 "" s_copy(sym, line + (ip - 1), (ftnlen)80, *ipenew - (ip - 1)); -#line 1166 "" +#line 1173 "" return 0; -#line 1167 "" +#line 1174 "" L2: -#line 1167 "" +#line 1174 "" ; -#line 1167 "" +#line 1174 "" } /* Have len>=2 and ends on len */ -#line 1171 "" +#line 1178 "" *ipenew = *len; -#line 1172 "" +#line 1179 "" *lsym = *ipenew - ip + 1; -#line 1173 "" +#line 1180 "" s_copy(sym, line + (ip - 1), (ftnlen)80, *ipenew - (ip - 1)); -#line 1174 "" +#line 1181 "" return 0; -#line 1175 "" +#line 1182 "" } else { /* ip = len */ -#line 1179 "" +#line 1186 "" *ipenew = *len; -#line 1180 "" +#line 1187 "" *lsym = 1; -#line 1181 "" +#line 1188 "" s_copy(sym, line + (ip - 1), (ftnlen)80, (ftnlen)1); -#line 1182 "" +#line 1189 "" return 0; -#line 1183 "" +#line 1190 "" } -#line 1184 "" +#line 1191 "" } -#line 1185 "" +#line 1192 "" /* L1: */ -#line 1185 "" +#line 1192 "" } -#line 1186 "" - s_wsle(&io___168); -#line 1186 "" +#line 1193 "" + s_wsle(&io___169); +#line 1193 "" do_lio(&c__9, &c__1, "Error #3. Send files to Dr. Don at dsimons@logico"\ "n.com", (ftnlen)55); -#line 1186 "" +#line 1193 "" e_wsle(); -#line 1187 "" +#line 1194 "" return 0; } /* nextsym_ */ @@ -3255,7 +3265,7 @@ integer ntindex_(char *line, char *s2q, ftnlen line_len, ftnlen s2q_len) extern integer lenstr_(char *, integer *, ftnlen); /* Fortran I/O blocks */ - static cilist io___174 = { 0, 6, 0, 0, 0 }; + static cilist io___175 = { 0, 6, 0, 0, 0 }; @@ -3268,158 +3278,158 @@ integer ntindex_(char *line, char *s2q, ftnlen line_len, ftnlen s2q_len) /* Use a temporary string to store the input and test, so can zap D"..." */ -#line 1202 "" +#line 1209 "" s_copy(tline, line, (ftnlen)128, (ftnlen)128); -#line 1203 "" +#line 1210 "" ndxs2 = i_indx(tline, s2q, (ftnlen)128, s2q_len); /* Return point below for rechecks after zapping D" " */ -#line 1207 "" +#line 1214 "" L2: -#line 1208 "" +#line 1215 "" ndxbs = i_indx(tline, "\\", (ftnlen)128, (ftnlen)1); -#line 1209 "" +#line 1216 "" if (ndxbs > 0) { /* Special check in case \ is inside D"..." */ -#line 1213 "" +#line 1220 "" ndxdq1 = i_indx(tline, "D\"", (ftnlen)128, (ftnlen)2); /* If the following test fails, flow out of if block; else loop up to 2. */ -#line 1217 "" +#line 1224 "" if (ndxdq1 > 0) { /* Find end of D"..." */ -#line 1221 "" +#line 1228 "" i__1 = ndxdq1 + 1; -#line 1221 "" +#line 1228 "" ndxdq2 = ndxdq1 + 1 + i_indx(tline + i__1, "\"", 128 - i__1, ( ftnlen)1); -#line 1222 "" +#line 1229 "" if (ndxdq2 == ndxdq1 + 1) { -#line 1223 "" - s_wsle(&io___174); -#line 1223 "" +#line 1230 "" + s_wsle(&io___175); +#line 1230 "" do_lio(&c__9, &c__1, "Something is really wierd here", ( ftnlen)30); -#line 1223 "" +#line 1230 "" e_wsle(); -#line 1224 "" +#line 1231 "" s_stop("", (ftnlen)0); -#line 1225 "" +#line 1232 "" } -#line 1226 "" +#line 1233 "" s_copy(tline, tline, (ftnlen)128, ndxdq1 - 1); -#line 1227 "" +#line 1234 "" i__1 = ndxdq2; -#line 1227 "" +#line 1234 "" for (ic = ndxdq1; ic <= i__1; ++ic) { /* Writing concatenation */ -#line 1228 "" +#line 1235 "" i__2[0] = ic - 1, a__1[0] = tline; -#line 1228 "" +#line 1235 "" i__2[1] = 1, a__1[1] = " "; -#line 1228 "" +#line 1235 "" s_cat(tline, a__1, i__2, &c__2, (ftnlen)128); -#line 1229 "" +#line 1236 "" /* L3: */ -#line 1229 "" +#line 1236 "" } -#line 1230 "" +#line 1237 "" i__1 = ndxdq2; /* Writing concatenation */ -#line 1230 "" +#line 1237 "" i__2[0] = ndxdq2, a__1[0] = tline; -#line 1230 "" +#line 1237 "" i__2[1] = 128 - i__1, a__1[1] = line + i__1; -#line 1230 "" +#line 1237 "" s_cat(tline, a__1, i__2, &c__2, (ftnlen)128); -#line 1231 "" +#line 1238 "" goto L2; -#line 1232 "" +#line 1239 "" } -#line 1233 "" +#line 1240 "" } -#line 1234 "" +#line 1241 "" if (ndxbs == 0 || ndxs2 < ndxbs) { -#line 1235 "" +#line 1242 "" ret_val = ndxs2; /* print*,'No bs, or char is left of 1st bs, ntindex:',ntindex */ -#line 1237 "" +#line 1244 "" } else { /* There are both bs and s2q, and bs is to the left of sq2. So check bs's to */ /* right of first: End is '\ ', start is ' \' */ -#line 1242 "" +#line 1249 "" len = lenstr_(tline, &c__128, (ftnlen)128); -#line 1243 "" +#line 1250 "" intex = TRUE_; /* print*,'intex+>',intex */ -#line 1245 "" +#line 1252 "" i__1 = len; -#line 1245 "" +#line 1252 "" for (ic = ndxbs + 1; ic <= i__1; ++ic) { -#line 1246 "" +#line 1253 "" if (ic == ndxs2) { -#line 1247 "" +#line 1254 "" if (intex) { -#line 1248 "" +#line 1255 "" ret_val = 0; -#line 1249 "" +#line 1256 "" i__3 = ic; -#line 1249 "" +#line 1256 "" ndxs2 = i_indx(tline + i__3, s2q, len - i__3, s2q_len) + ic; /* print*,'ndxs2 =>',ndxs2 */ -#line 1251 "" +#line 1258 "" } else { -#line 1252 "" +#line 1259 "" ret_val = ndxs2; -#line 1253 "" +#line 1260 "" return ret_val; -#line 1254 "" +#line 1261 "" } /* print*,'Internal exit, intex, ntindex:',intex,ntindex */ -#line 1256 "" +#line 1263 "" } else /* if(complicated condition) */ { -#line 1256 "" +#line 1263 "" i__3 = ic; -#line 1256 "" +#line 1263 "" if (intex && s_cmp(tline + i__3, "\\ ", ic + 2 - i__3, ( ftnlen)2) == 0) { -#line 1257 "" +#line 1264 "" intex = FALSE_; /* print*,'intex+>',intex */ -#line 1259 "" +#line 1266 "" } else /* if(complicated condition) */ { -#line 1259 "" +#line 1266 "" i__3 = ic; -#line 1259 "" +#line 1266 "" if (! intex && s_cmp(tline + i__3, " \\", ic + 2 - i__3, ( ftnlen)2) == 0) { -#line 1261 "" +#line 1268 "" intex = TRUE_; /* print*,'intex+>',intex */ -#line 1263 "" +#line 1270 "" } -#line 1263 "" +#line 1270 "" } -#line 1263 "" +#line 1270 "" } -#line 1264 "" +#line 1271 "" /* L1: */ -#line 1264 "" +#line 1271 "" } /* print*,'Out end of loop 1' */ -#line 1266 "" +#line 1273 "" } /* print*,'Exiting ntindex at the end???' */ -#line 1268 "" +#line 1275 "" return ret_val; } /* ntindex_ */ @@ -3430,30 +3440,30 @@ L2: integer s_rsfe(cilist *), do_fio(integer *, char *, ftnlen), e_rsfe(void); /* Fortran I/O blocks */ - static cilist io___178 = { 0, 10, 0, "(a)", 0 }; + static cilist io___179 = { 0, 10, 0, "(a)", 0 }; /* Gets the next character out of line*128. If pointer iccount=128 on entry, */ /* then reads in a new line. Resets iccount to position of the new character. */ -#line 1277 "" +#line 1284 "" if (*iccount == 128) { -#line 1278 "" - s_rsfe(&io___178); -#line 1278 "" +#line 1285 "" + s_rsfe(&io___179); +#line 1285 "" do_fio(&c__1, line, (ftnlen)128); -#line 1278 "" +#line 1285 "" e_rsfe(); -#line 1279 "" +#line 1286 "" *iccount = 0; -#line 1280 "" +#line 1287 "" } -#line 1281 "" +#line 1288 "" ++(*iccount); -#line 1282 "" +#line 1289 "" *(unsigned char *)charq = *(unsigned char *)&line[*iccount - 1]; -#line 1283 "" +#line 1290 "" return 0; } /* getchar_ */ @@ -3479,13 +3489,14 @@ doublereal readin_(char *line, integer *iccount, integer *iread, ftnlen extern /* Subroutine */ int allparts_(char *, integer *, ftnlen); static integer i1, i2, icf; static char durq[1]; - extern /* Subroutine */ int chkcom_(char *, ftnlen), getchar_(char *, - integer *, char *, ftnlen, ftnlen); + static logical goto999; + extern /* Subroutine */ int chkcom_(char *, logical *, ftnlen), getchar_( + char *, integer *, char *, ftnlen, ftnlen); /* Fortran I/O blocks */ - static cilist io___179 = { 0, 10, 0, "(a)", 0 }; - static cilist io___183 = { 0, 6, 0, 0, 0 }; + static cilist io___180 = { 0, 10, 0, "(a)", 0 }; static cilist io___185 = { 0, 6, 0, 0, 0 }; + static cilist io___187 = { 0, 6, 0, 0, 0 }; @@ -3504,171 +3515,171 @@ doublereal readin_(char *line, integer *iccount, integer *iread, ftnlen /* 4 musicsize 20 */ /* 5 fracondent 0.05 */ -#line 1308 "" +#line 1315 "" L4: -#line 1308 "" +#line 1315 "" if (*iccount == 128) { -#line 1309 "" - s_rsfe(&io___179); -#line 1309 "" +#line 1316 "" + s_rsfe(&io___180); +#line 1316 "" do_fio(&c__1, line, (ftnlen)128); -#line 1309 "" +#line 1316 "" e_rsfe(); -#line 1310 "" +#line 1317 "" if (all_1.replacing) { -#line 1310 "" +#line 1317 "" all_1.replacing = FALSE_; -#line 1310 "" +#line 1317 "" } -#line 1311 "" - chkcom_(line, (ftnlen)128); -#line 1312 "" +#line 1318 "" + chkcom_(line, &goto999, (ftnlen)128); +#line 1319 "" *iccount = 0; -#line 1313 "" +#line 1320 "" } -#line 1314 "" +#line 1321 "" ++(*iccount); /* Find next non-blank or end of line */ -#line 1318 "" +#line 1325 "" for (*iccount = *iccount; *iccount <= 127; ++(*iccount)) { -#line 1319 "" +#line 1326 "" if (*(unsigned char *)&line[*iccount - 1] != ' ') { -#line 1319 "" +#line 1326 "" goto L3; -#line 1319 "" +#line 1326 "" } -#line 1320 "" +#line 1327 "" /* L2: */ -#line 1320 "" +#line 1327 "" } /* If here, need to get a new line */ -#line 1324 "" +#line 1331 "" *iccount = 128; -#line 1325 "" +#line 1332 "" goto L4; -#line 1326 "" +#line 1333 "" L3: /* iccount now points to start of number to read */ -#line 1330 "" +#line 1337 "" i1 = *iccount; -#line 1331 "" +#line 1338 "" L5: -#line 1331 "" +#line 1338 "" getchar_(line, iccount, durq, (ftnlen)128, (ftnlen)1); /* Remember that getchar first increments iccount, *then* reads a character. */ -#line 1335 "" +#line 1342 "" if (i_indx("0123456789.-", durq, (ftnlen)12, (ftnlen)1) > 0) { -#line 1335 "" +#line 1342 "" goto L5; -#line 1335 "" +#line 1342 "" } -#line 1336 "" +#line 1343 "" i2 = *iccount - 1; -#line 1337 "" +#line 1344 "" if (i2 < i1) { -#line 1338 "" - s_wsle(&io___183); +#line 1345 "" + s_wsle(&io___185); /* Writing concatenation */ -#line 1338 "" +#line 1345 "" i__1[0] = 7, a__1[0] = "Found \""; -#line 1338 "" +#line 1345 "" i__1[1] = 1, a__1[1] = durq; -#line 1338 "" +#line 1345 "" i__1[2] = 19, a__1[2] = "\" instead of number"; -#line 1338 "" +#line 1345 "" s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)27); -#line 1338 "" +#line 1345 "" do_lio(&c__9, &c__1, ch__1, (ftnlen)27); -#line 1338 "" +#line 1345 "" e_wsle(); -#line 1339 "" +#line 1346 "" s_stop("1", (ftnlen)1); -#line 1340 "" +#line 1347 "" } -#line 1341 "" +#line 1348 "" icf = i2 - i1 + 49; -#line 1342 "" +#line 1349 "" ici__1.icierr = 0; -#line 1342 "" +#line 1349 "" ici__1.iciend = 0; -#line 1342 "" +#line 1349 "" ici__1.icirnum = 1; -#line 1342 "" +#line 1349 "" ici__1.icirlen = i2 - (i1 - 1); -#line 1342 "" +#line 1349 "" ici__1.iciunit = line + (i1 - 1); /* Writing concatenation */ -#line 1342 "" +#line 1349 "" i__1[0] = 2, a__1[0] = "(f"; -#line 1342 "" +#line 1349 "" *(unsigned char *)&ch__3[0] = icf; -#line 1342 "" +#line 1349 "" i__1[1] = 1, a__1[1] = ch__3; -#line 1342 "" +#line 1349 "" i__1[2] = 3, a__1[2] = ".0)"; -#line 1342 "" +#line 1349 "" ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)6), ch__2); -#line 1342 "" +#line 1349 "" s_rsfi(&ici__1); -#line 1342 "" +#line 1349 "" do_fio(&c__1, (char *)&ret_val, (ftnlen)sizeof(real)); -#line 1342 "" +#line 1349 "" e_rsfi(); -#line 1343 "" +#line 1350 "" if (! all_1.replacing) { -#line 1344 "" +#line 1351 "" if (*iread == 0) { -#line 1345 "" +#line 1352 "" i__2 = i2 - i1 + 1; -#line 1345 "" +#line 1352 "" allparts_(line + (i1 - 1), &i__2, i2 - (i1 - 1)); -#line 1346 "" +#line 1353 "" } else if (*iread == 1) { -#line 1347 "" +#line 1354 "" allparts_("-999", &c__4, (ftnlen)4); -#line 1348 "" +#line 1355 "" } else if (*iread == 2) { -#line 1349 "" +#line 1356 "" allparts_("1", &c__1, (ftnlen)1); -#line 1350 "" +#line 1357 "" } else if (*iread == 3) { -#line 1351 "" +#line 1358 "" allparts_("-998", &c__4, (ftnlen)4); -#line 1352 "" +#line 1359 "" } else if (*iread == 4) { -#line 1353 "" +#line 1360 "" allparts_("20", &c__2, (ftnlen)2); -#line 1354 "" +#line 1361 "" } else if (*iread == 5) { -#line 1355 "" +#line 1362 "" allparts_(".05", &c__3, (ftnlen)3); -#line 1356 "" +#line 1363 "" } else if (*iread != -1) { -#line 1357 "" - s_wsle(&io___185); -#line 1357 "" +#line 1364 "" + s_wsle(&io___187); +#line 1364 "" do_lio(&c__9, &c__1, "Error with iread in readin", (ftnlen)26); -#line 1357 "" +#line 1364 "" e_wsle(); -#line 1358 "" +#line 1365 "" s_stop("", (ftnlen)0); -#line 1359 "" +#line 1366 "" } -#line 1360 "" +#line 1367 "" } -#line 1361 "" +#line 1368 "" return ret_val; } /* readin_ */ -/* Subroutine */ int chkcom_(char *line, ftnlen line_len) +/* Subroutine */ int chkcom_(char *line, logical *goto999, ftnlen line_len) { /* System generated locals */ integer i__1, i__2; @@ -3688,224 +3699,228 @@ L5: static integer lenline; /* Fortran I/O blocks */ - static cilist io___186 = { 0, 10, 0, "(a)", 0 }; - static cilist io___195 = { 0, 10, 0, "(a)", 0 }; - static cilist io___198 = { 0, 0, 0, "(a)", 0 }; - static cilist io___199 = { 0, 0, 0, "(a)", 0 }; - static cilist io___200 = { 0, 10, 1, "(a)", 0 }; + static cilist io___188 = { 0, 10, 0, "(a)", 0 }; + static cilist io___197 = { 0, 10, 0, "(a)", 0 }; + static cilist io___200 = { 0, 0, 0, "(a)", 0 }; + static cilist io___201 = { 0, 0, 0, "(a)", 0 }; + static cilist io___202 = { 0, 10, 1, "(a)", 0 }; /* Assume that line has just been read. No need to change iccount since we only */ /* process full lines. */ -#line 1373 "" +#line 1380 "" + *goto999 = FALSE_; +#line 1381 "" L1: -#line 1373 "" +#line 1381 "" if (*(unsigned char *)line != '%') { -#line 1373 "" +#line 1381 "" return 0; -#line 1373 "" +#line 1381 "" } /* If here, line has some sort of comment */ -#line 1377 "" +#line 1385 "" if (*(unsigned char *)&line[1] == '%') { -#line 1378 "" +#line 1386 "" if (! all_1.insetup) { /* Suck up a line, then flow out of "if" block to get another and loop */ -#line 1382 "" - s_rsfe(&io___186); -#line 1382 "" +#line 1390 "" + s_rsfe(&io___188); +#line 1390 "" do_fio(&c__1, line, (ftnlen)128); -#line 1382 "" +#line 1390 "" e_rsfe(); /* ++VV */ /* UNLESS (a) it has a score-only "M" and changes # of inst's. */ -#line 1388 "" +#line 1396 "" if (i_indx(line, "M", (ftnlen)128, (ftnlen)1) > 0) { -#line 1389 "" +#line 1397 "" idxl = i_indx(line, "L", (ftnlen)128, (ftnlen)1); -#line 1390 "" +#line 1398 "" idxm = i_indx(line, "M", (ftnlen)128, (ftnlen)1); -#line 1391 "" +#line 1399 "" idxn = i_indx(line, "n", (ftnlen)128, (ftnlen)1); -#line 1392 "" +#line 1400 "" idxb = i_indx(line, " ", (ftnlen)128, (ftnlen)1); -#line 1393 "" +#line 1401 "" if (idxl < idxm && idxm < idxn && (idxb == 0 || idxn < idxb)) { -#line 1395 "" +#line 1403 "" i__1 = idxn; -#line 1395 "" +#line 1403 "" all_1.noinow = *(unsigned char *)&line[i__1] - 48; -#line 1396 "" +#line 1404 "" clefpend = TRUE_; /* Next noinow digits are original inst. #'s of new inst. set. Next noinow */ /* char's after that are clefs */ -#line 1401 "" +#line 1409 "" all_1.nvnow = 0; -#line 1402 "" +#line 1410 "" i__1 = all_1.noinow; -#line 1402 "" +#line 1410 "" for (j = 1; j <= i__1; ++j) { -#line 1403 "" +#line 1411 "" i__2 = idxn + 1 + j - 1; -#line 1403 "" +#line 1411 "" all_1.iorig[j - 1] = *(unsigned char *)&line[i__2] - 48; -#line 1404 "" +#line 1412 "" iposc0 = idxn + 1 + all_1.noinow; -#line 1405 "" +#line 1413 "" i__2 = all_1.nvi[all_1.iorig[j - 1] - 1]; -#line 1405 "" +#line 1413 "" for (k = 1; k <= i__2; ++k) { -#line 1406 "" +#line 1414 "" ++all_1.nvnow; /* clefq(nvnow) = line(iposc0+nvnow:iposc0+nvnow) */ -#line 1408 "" +#line 1416 "" all_1.instnum[all_1.nvnow - 1] = j; -#line 1409 "" +#line 1417 "" all_1.botv[all_1.nvnow - 1] = k == 1 && j != 1; -#line 1410 "" +#line 1418 "" /* L25: */ -#line 1410 "" +#line 1418 "" } -#line 1411 "" +#line 1419 "" /* L24: */ -#line 1411 "" +#line 1419 "" } -#line 1412 "" +#line 1420 "" } -#line 1413 "" +#line 1421 "" } /* or if it's "h" or "l", need to suck up one more line */ -#line 1417 "" +#line 1425 "" if (*(unsigned char *)line == 'h' && i_indx("+- ", line + 1, ( ftnlen)3, (ftnlen)1) > 0 || *(unsigned char *)line == 'T' || s_cmp(line, "l ", (ftnlen)2, (ftnlen)2) == 0) { -#line 1417 "" - s_rsfe(&io___195); -#line 1417 "" +#line 1425 "" + s_rsfe(&io___197); +#line 1425 "" do_fio(&c__1, line, (ftnlen)128); -#line 1417 "" +#line 1425 "" e_rsfe(); -#line 1417 "" +#line 1425 "" } /* 4/29/00 check for T string also */ -#line 1423 "" +#line 1431 "" } else { /* In setup mode. Set flag, flow out and do use following line */ -#line 1427 "" +#line 1435 "" all_1.replacing = TRUE_; -#line 1428 "" +#line 1436 "" } -#line 1429 "" +#line 1437 "" } else if (*(unsigned char *)&line[1] == '!') { /* Copy to all parts */ -#line 1433 "" +#line 1441 "" allparts_(line + 2, &c__125, (ftnlen)126); -#line 1434 "" +#line 1442 "" } else { /* Get value of hex integer 1,2,...,9,a,b,c in 2nd position, zero otherwise */ /* c Get value of extended hex integer 1,2,...,9,a,b,c,...,o in 2nd position, zero otherwise */ -#line 1439 "" +#line 1447 "" ivq = i_indx("123456789abcdefghijklmno", line + 1, (ftnlen)24, ( ftnlen)1); /* Only treat as part-specific pmx line if number .le. noinst */ -#line 1443 "" +#line 1451 "" if (ivq < 1 || ivq > all_1.noinst) { /* Simple comment. */ -#line 1447 "" +#line 1455 "" allparts_(line, &c__128, (ftnlen)128); -#line 1448 "" +#line 1456 "" } else { /* Instrument comment, copy only to part */ -#line 1452 "" +#line 1460 "" lenline = lenstr_(line, &c__128, (ftnlen)128); -#line 1453 "" +#line 1461 "" if (lenline > 2) { -#line 1454 "" - io___198.ciunit = ivq + 10; -#line 1454 "" - s_wsfe(&io___198); -#line 1454 "" +#line 1462 "" + io___200.ciunit = ivq + 10; +#line 1462 "" + s_wsfe(&io___200); +#line 1462 "" do_fio(&c__1, line + 2, lenline - 2); -#line 1454 "" +#line 1462 "" e_wsfe(); -#line 1455 "" +#line 1463 "" } else { /* Transferring blank line */ -#line 1459 "" - io___199.ciunit = ivq + 10; -#line 1459 "" - s_wsfe(&io___199); -#line 1459 "" +#line 1467 "" + io___201.ciunit = ivq + 10; +#line 1467 "" + s_wsfe(&io___201); +#line 1467 "" do_fio(&c__1, " ", (ftnlen)1); -#line 1459 "" +#line 1467 "" e_wsfe(); -#line 1460 "" +#line 1468 "" } -#line 1461 "" +#line 1469 "" } -#line 1462 "" +#line 1470 "" } -#line 1463 "" - i__1 = s_rsfe(&io___200); -#line 1463 "" +#line 1471 "" + i__1 = s_rsfe(&io___202); +#line 1471 "" if (i__1 != 0) { -#line 1463 "" +#line 1471 "" goto L2; -#line 1463 "" +#line 1471 "" } -#line 1463 "" +#line 1471 "" i__1 = do_fio(&c__1, line, (ftnlen)128); -#line 1463 "" +#line 1471 "" if (i__1 != 0) { -#line 1463 "" +#line 1471 "" goto L2; -#line 1463 "" +#line 1471 "" } -#line 1463 "" +#line 1471 "" i__1 = e_rsfe(); -#line 1463 "" +#line 1471 "" if (i__1 != 0) { -#line 1463 "" +#line 1471 "" goto L2; -#line 1463 "" +#line 1471 "" } -#line 1464 "" +#line 1472 "" zapbl_(line, &c__128, (ftnlen)128); -#line 1465 "" +#line 1473 "" goto L1; -#line 1466 "" +#line 1474 "" L2: -#line 1467 "" +#line 1475 "" + *goto999 = TRUE_; +#line 1476 "" return 0; } /* chkcom_ */ @@ -3927,13 +3942,13 @@ L2: ftnlen); /* Fortran I/O blocks */ - static cilist io___204 = { 0, 40, 0, "(i5)", 0 }; static cilist io___206 = { 0, 40, 0, "(i5)", 0 }; static cilist io___208 = { 0, 40, 0, "(i5)", 0 }; - static cilist io___209 = { 0, 40, 0, "(i5)", 0 }; static cilist io___210 = { 0, 40, 0, "(i5)", 0 }; static cilist io___211 = { 0, 40, 0, "(i5)", 0 }; - static cilist io___212 = { 0, 40, 0, "(f5.2)", 0 }; + static cilist io___212 = { 0, 40, 0, "(i5)", 0 }; + static cilist io___213 = { 0, 40, 0, "(i5)", 0 }; + static cilist io___214 = { 0, 40, 0, "(f5.2)", 0 }; @@ -3947,128 +3962,128 @@ L2: /* iset(9) (npages) will be replaced with (nsyst-1)/12+1 */ /* iset(2), if negative, will be followed by extra numbers to be transf. */ -#line 1486 "" +#line 1495 "" iccount = 0; -#line 1487 "" +#line 1496 "" for (iset = 1; iset <= 12; ++iset) { -#line 1488 "" +#line 1497 "" partnum_(iv, &iccount, line, &xdata, (ftnlen)128); -#line 1489 "" +#line 1498 "" if (iset == 2) { -#line 1490 "" +#line 1499 "" if (xdata > 0.f) { -#line 1491 "" - s_wsfe(&io___204); -#line 1491 "" +#line 1500 "" + s_wsfe(&io___206); +#line 1500 "" i__1 = (integer) (xdata + .1f); -#line 1491 "" +#line 1500 "" do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 1491 "" +#line 1500 "" e_wsfe(); -#line 1492 "" +#line 1501 "" } else { -#line 1493 "" +#line 1502 "" noi = -xdata + .1f; -#line 1494 "" - s_wsfe(&io___206); -#line 1494 "" +#line 1503 "" + s_wsfe(&io___208); +#line 1503 "" do_fio(&c__1, (char *)&noi, (ftnlen)sizeof(integer)); -#line 1494 "" +#line 1503 "" e_wsfe(); -#line 1495 "" +#line 1504 "" i__1 = noi; -#line 1495 "" +#line 1504 "" for (ioi = 1; ioi <= i__1; ++ioi) { -#line 1496 "" +#line 1505 "" partnum_(iv, &iccount, line, &xdata, (ftnlen)128); -#line 1497 "" - s_wsfe(&io___208); -#line 1497 "" +#line 1506 "" + s_wsfe(&io___210); +#line 1506 "" i__2 = (integer) (xdata + .1f); -#line 1497 "" +#line 1506 "" do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer)); -#line 1497 "" +#line 1506 "" e_wsfe(); -#line 1498 "" +#line 1507 "" /* L2: */ -#line 1498 "" +#line 1507 "" } -#line 1499 "" +#line 1508 "" } /* else if (iset.ne.8 .and. xdata.lt.0) then */ -#line 1501 "" +#line 1510 "" } else if (iset != 8 && iset != 5 && xdata < 0.f) { /* Must be either nv or npages */ -#line 1505 "" +#line 1514 "" if ((integer) (-xdata + .1f) == 999) { /* It's nv */ -#line 1509 "" - s_wsfe(&io___209); -#line 1509 "" +#line 1518 "" + s_wsfe(&io___211); +#line 1518 "" do_fio(&c__1, (char *)&all_1.nvi[*iv - 1], (ftnlen)sizeof( integer)); -#line 1509 "" +#line 1518 "" e_wsfe(); -#line 1510 "" +#line 1519 "" } else { /* npages must be computed */ -#line 1514 "" - s_wsfe(&io___210); -#line 1514 "" +#line 1523 "" + s_wsfe(&io___212); +#line 1523 "" i__1 = (all_1.nsyst - 1) / 12 + 1; -#line 1514 "" +#line 1523 "" do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 1514 "" +#line 1523 "" e_wsfe(); -#line 1515 "" +#line 1524 "" } -#line 1516 "" +#line 1525 "" } else if (iset != 7 && iset != 12) { /* write integer */ -#line 1520 "" - s_wsfe(&io___211); -#line 1520 "" +#line 1529 "" + s_wsfe(&io___213); +#line 1529 "" i__1 = i_nint(&xdata); -#line 1520 "" +#line 1529 "" do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer)); -#line 1520 "" +#line 1529 "" e_wsfe(); -#line 1521 "" +#line 1530 "" } else { /* write floating number */ -#line 1525 "" - s_wsfe(&io___212); -#line 1525 "" +#line 1534 "" + s_wsfe(&io___214); +#line 1534 "" do_fio(&c__1, (char *)&xdata, (ftnlen)sizeof(real)); -#line 1525 "" +#line 1534 "" e_wsfe(); -#line 1526 "" +#line 1535 "" } -#line 1527 "" +#line 1536 "" if (iset == 3) { -#line 1528 "" +#line 1537 "" *mtrnum = i_nint(&xdata); -#line 1529 "" +#line 1538 "" } else if (iset == 4) { -#line 1530 "" +#line 1539 "" *mtrden = i_nint(&xdata); -#line 1531 "" +#line 1540 "" } -#line 1532 "" +#line 1541 "" /* L1: */ -#line 1532 "" +#line 1541 "" } -#line 1533 "" +#line 1542 "" return 0; } /* dosetup_ */ @@ -4098,139 +4113,139 @@ L2: ftnlen); /* Fortran I/O blocks */ - static cilist io___213 = { 0, 0, 0, "(a)", 0 }; - static cilist io___215 = { 0, 40, 0, "(a)", 0 }; - static cilist io___219 = { 0, 6, 0, 0, 0 }; + static cilist io___215 = { 0, 0, 0, "(a)", 0 }; + static cilist io___217 = { 0, 40, 0, "(a)", 0 }; + static cilist io___221 = { 0, 6, 0, 0, 0 }; /* Simplified number parsing. Only looks for comment lines and numbers. */ -#line 1541 "" +#line 1550 "" L2: -#line 1541 "" +#line 1550 "" if (*iccount == 128) { -#line 1542 "" - io___213.ciunit = *iv + 10; -#line 1542 "" - s_rsfe(&io___213); -#line 1542 "" +#line 1551 "" + io___215.ciunit = *iv + 10; +#line 1551 "" + s_rsfe(&io___215); +#line 1551 "" do_fio(&c__1, line, (ftnlen)128); -#line 1542 "" +#line 1551 "" e_rsfe(); -#line 1543 "" +#line 1552 "" if (*(unsigned char *)line == '%') { -#line 1544 "" +#line 1553 "" len = lenstr_(line, &c__128, (ftnlen)128); -#line 1545 "" - s_wsfe(&io___215); -#line 1545 "" +#line 1554 "" + s_wsfe(&io___217); +#line 1554 "" do_fio(&c__1, line, len); -#line 1545 "" +#line 1554 "" e_wsfe(); -#line 1546 "" +#line 1555 "" goto L2; -#line 1547 "" +#line 1556 "" } -#line 1548 "" +#line 1557 "" *iccount = 0; -#line 1549 "" +#line 1558 "" } -#line 1550 "" +#line 1559 "" ++(*iccount); /* Find next non-blank or end of line */ -#line 1554 "" +#line 1563 "" for (*iccount = *iccount; *iccount <= 127; ++(*iccount)) { -#line 1555 "" +#line 1564 "" if (*(unsigned char *)&line[*iccount - 1] != ' ') { -#line 1555 "" +#line 1564 "" goto L3; -#line 1555 "" +#line 1564 "" } -#line 1556 "" +#line 1565 "" /* L4: */ -#line 1556 "" +#line 1565 "" } /* If here, iccount=128 and need to get a new line */ -#line 1560 "" +#line 1569 "" goto L2; -#line 1561 "" +#line 1570 "" L3: /* iccount now points to start of number to read */ -#line 1565 "" +#line 1574 "" i1 = *iccount; -#line 1566 "" +#line 1575 "" L5: -#line 1566 "" +#line 1575 "" getchar_(line, iccount, durq, (ftnlen)128, (ftnlen)1); /* Remember that getchar first increments iccount, *then* reads a character. */ -#line 1570 "" +#line 1579 "" if (i_indx("0123456789.-", durq, (ftnlen)12, (ftnlen)1) > 0) { -#line 1570 "" +#line 1579 "" goto L5; -#line 1570 "" +#line 1579 "" } -#line 1571 "" +#line 1580 "" i2 = *iccount - 1; -#line 1572 "" +#line 1581 "" if (i2 < i1) { -#line 1573 "" - s_wsle(&io___219); +#line 1582 "" + s_wsle(&io___221); /* Writing concatenation */ -#line 1573 "" +#line 1582 "" i__1[0] = 7, a__1[0] = "Found \""; -#line 1573 "" +#line 1582 "" i__1[1] = 1, a__1[1] = durq; -#line 1573 "" +#line 1582 "" i__1[2] = 19, a__1[2] = "\" instead of number"; -#line 1573 "" +#line 1582 "" s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)27); -#line 1573 "" +#line 1582 "" do_lio(&c__9, &c__1, ch__1, (ftnlen)27); -#line 1573 "" +#line 1582 "" e_wsle(); -#line 1574 "" +#line 1583 "" s_stop("1", (ftnlen)1); -#line 1575 "" +#line 1584 "" } -#line 1576 "" +#line 1585 "" icf = i2 - i1 + 49; -#line 1577 "" +#line 1586 "" ici__1.icierr = 0; -#line 1577 "" +#line 1586 "" ici__1.iciend = 0; -#line 1577 "" +#line 1586 "" ici__1.icirnum = 1; -#line 1577 "" +#line 1586 "" ici__1.icirlen = i2 - (i1 - 1); -#line 1577 "" +#line 1586 "" ici__1.iciunit = line + (i1 - 1); /* Writing concatenation */ -#line 1577 "" +#line 1586 "" i__1[0] = 2, a__1[0] = "(f"; -#line 1577 "" +#line 1586 "" *(unsigned char *)&ch__3[0] = icf; -#line 1577 "" +#line 1586 "" i__1[1] = 1, a__1[1] = ch__3; -#line 1577 "" +#line 1586 "" i__1[2] = 3, a__1[2] = ".0)"; -#line 1577 "" +#line 1586 "" ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)6), ch__2); -#line 1577 "" +#line 1586 "" s_rsfi(&ici__1); -#line 1577 "" +#line 1586 "" do_fio(&c__1, (char *)&(*xdata), (ftnlen)sizeof(real)); -#line 1577 "" +#line 1586 "" e_rsfi(); -#line 1578 "" +#line 1587 "" return 0; } /* partnum_ */ @@ -4246,40 +4261,40 @@ L5: /* Local variables */ static integer i__; -#line 1590 "" +#line 1599 "" i__1 = *len; -#line 1590 "" +#line 1599 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 1591 "" +#line 1600 "" if (*(unsigned char *)&string[i__ - 1] == ' ') { -#line 1591 "" +#line 1600 "" goto L1; -#line 1591 "" +#line 1600 "" } -#line 1592 "" +#line 1601 "" if (i__ == 1) { -#line 1592 "" +#line 1601 "" return 0; -#line 1592 "" +#line 1601 "" } -#line 1593 "" +#line 1602 "" goto L2; -#line 1594 "" +#line 1603 "" L1: -#line 1594 "" +#line 1603 "" ; -#line 1594 "" +#line 1603 "" } /* If line is all blank, leave it alone */ -#line 1598 "" +#line 1607 "" return 0; -#line 1599 "" +#line 1608 "" L2: -#line 1600 "" +#line 1609 "" s_copy(string, string + (i__ - 1), string_len, *len - (i__ - 1)); -#line 1601 "" +#line 1610 "" return 0; } /* zapbl_ */ @@ -4296,25 +4311,25 @@ L2: /* This counts number of double quotes in lineq up to position indx-1, then */ /* sets yesodd according to whether number is odd or even */ -#line 1610 "" +#line 1619 "" numdqs = 0; -#line 1611 "" +#line 1620 "" i__1 = *indx - 1; -#line 1611 "" +#line 1620 "" for (i__ = 1; i__ <= i__1; ++i__) { -#line 1612 "" +#line 1621 "" if (*(unsigned char *)&lineq[i__ - 1] == '"') { -#line 1612 "" +#line 1621 "" ++numdqs; -#line 1612 "" +#line 1621 "" } -#line 1613 "" +#line 1622 "" /* L1: */ -#line 1613 "" +#line 1622 "" } -#line 1614 "" +#line 1623 "" *yesodd = numdqs % 2 == 1; -#line 1615 "" +#line 1624 "" return 0; } /* oddquotesbefore_ */ diff --git a/Build/source/utils/pmx/pmx-src/scor2prt.for b/Build/source/utils/pmx/pmx-src/scor2prt.for index 018f44a4651..1cc71a57b71 100644 --- a/Build/source/utils/pmx/pmx-src/scor2prt.for +++ b/Build/source/utils/pmx/pmx-src/scor2prt.for @@ -1,6 +1,6 @@ cccccccccccccccccccccccccc cc -cc scor2prt 7/24/11 for PMX 2.615 +cc scor2prt 2/19/16 for PMX 2.74 cccccccccccccccccccccccccc c This program, developed by Don Simons (dsimons@roadrunner.com), is c part of the PMX distribution, PMX is a preprocessor for MusiXTeX. In concert @@ -22,7 +22,11 @@ c c You should have received a copy of the GNU General Public License c along with this program. If not, see <http://www.gnu.org/licenses/>. c -c +c 2/19/16 +c Exit gracefully when last input line is comment, with mods in +c subroutine chkcom, adding logical argument goto999 +c which is set to .true. in that case, causing input file to +c be closed after exiting. c 4/9/12 c Add logical declarations to subroutine dosetup c 8/8/11 @@ -94,7 +98,8 @@ cccccccccccccccccccccccccccccccccccccccccccccccc character*128 instrum(noimax),udpfnq(noimax) character*128 line,holdln,templine logical termrpt,isachar,frstln,oneof2,botv,clefpend,fexist, - * insetup,replacing,gotname,yesodd + * insetup,replacing,gotname,yesodd,goto999 + character*1 dumq data achar /'P','m','V','R','A','h','w','K','M','I'/ clefpend = .false. insetup = .true. @@ -102,7 +107,7 @@ cccccccccccccccccccccccccccccccccccccccccccccccc frstln = .true. lenhold = 0 sq = char(92) - print*,'This is scor2prt for PMX 2.7, 2 April 2013' + print*,'This is scor2prt for PMX 2.74, 19 February 2016' numargs = iargc() if (numargs .eq. 0) then print*,'You could have entered a jobname on the command line,' @@ -145,7 +150,7 @@ c ludpfn(iv) = 0 19 continue read(10,'(a)')line - call chkcom(line) + call chkcom(line,goto999) if (line(1:3) .eq. '---') then call allparts(line,128) 31 read(10,'(a)')line @@ -155,7 +160,7 @@ c end if call allparts(line,128) read(10,'(a)')line - call chkcom(line) + call chkcom(line,goto999) end if iccount = 0 nv = readin(line,iccount,1)+.1 @@ -212,7 +217,7 @@ c c Must leave insetup=.true. else could bypass ALL instrument names. c read(10,'(a)')line - call chkcom(line) + call chkcom(line,goto999) backspace(10) c c Normally this puts pointer at start of line with 1st inst name @@ -269,14 +274,14 @@ c c Clef string: Note insetup is still T, so "%%" will be treated specially c read(10,'(a)')line - call chkcom(line) + call chkcom(line,goto999) if (replacing) then c c If here, we have next line after "%%", containing score's clef string c Assume all clefs are handled with instrument comments. c read(10,'(a)')line - call chkcom(line) + call chkcom(line,goto999) backspace(10) else c @@ -333,11 +338,13 @@ c iv = 1 iinst = 1 termrpt = .false. -4 read(10,'(a)',end=999)line +4 continue + read(10,'(a)',end=999)line lenline = lenstr(line,128) if (lenline .eq. 0) go to 4 call zapbl(line,128) - call chkcom(line) + call chkcom(line,goto999) + if (goto999) go to 999 lenline = lenstr(line,128) if (lenline .eq. 0) go to 4 if (line(1:1) .eq. 'T') then @@ -482,7 +489,7 @@ c if (line(1:1) .eq.'%') then 23 if (line(1:1) .eq.'%') then c call allparts(line,128) c go to 20 - call chkcom(line) + call chkcom(line,goto999) go to 23 end if c @@ -1286,7 +1293,7 @@ c parameter (noimax=24) common /all/ noinow,iorig(noimax),noinst,insetup,replacing, * instnum(noimax),botv(noimax),nvi(noimax),nsyst,nvnow - logical insetup,replacing,botv + logical insetup,replacing,botv,goto999 c c Reads a piece of setup data from line, gets a new line from c file 10 (jobname.pmx) if needed, Transfers comment lines into all parts. @@ -1308,7 +1315,7 @@ c 4 if (iccount .eq. 128) then read(10,'(a)')line if (replacing) replacing = .false. - call chkcom(line) + call chkcom(line,goto999) iccount = 0 end if iccount = iccount+1 @@ -1360,16 +1367,17 @@ c end if return end - subroutine chkcom(line) + subroutine chkcom(line,goto999) parameter (noimax=24) common /all/ noinow,iorig(noimax),noinst,insetup,replacing, * instnum(noimax),botv(noimax),nvi(noimax),nsyst,nvnow - logical insetup,replacing,clefpend,botv + logical insetup,replacing,clefpend,botv,goto999 character*128 line c c Assume that line has just been read. No need to change iccount since we only c process full lines. c + goto999 = .false. 1 if (line(1:1) .ne. '%') return c c If here, line has some sort of comment @@ -1464,6 +1472,7 @@ c call zapbl(line,128) go to 1 2 continue + goto999 = .true. return end subroutine dosetup(iv,line,mtrnum,mtrden) diff --git a/Build/source/utils/pmx/pmx-src/tests/barsant.mid b/Build/source/utils/pmx/pmx-src/tests/barsant.mid Binary files differindex 3169e07d7ba..85df04b40d6 100644 --- a/Build/source/utils/pmx/pmx-src/tests/barsant.mid +++ b/Build/source/utils/pmx/pmx-src/tests/barsant.mid diff --git a/Build/source/utils/pmx/pmx-src/tests/barsant.pml b/Build/source/utils/pmx/pmx-src/tests/barsant.pml index 2249144d52b..de0a078154f 100644 --- a/Build/source/utils/pmx/pmx-src/tests/barsant.pml +++ b/Build/source/utils/pmx/pmx-src/tests/barsant.pml @@ -1,4 +1,4 @@ -This is PMX, Version 2.73 , 2 Feb 16 +This is PMX, Version 2.74 , 20 Feb 16 Opening barsant.pmx Starting first PMX pass diff --git a/Build/source/utils/pmx/pmx-src/version.ac b/Build/source/utils/pmx/pmx-src/version.ac index 7c43a3ea35b..a6d78af3d06 100644 --- a/Build/source/utils/pmx/pmx-src/version.ac +++ b/Build/source/utils/pmx/pmx-src/version.ac @@ -8,4 +8,4 @@ dnl dnl -------------------------------------------------------- dnl dnl m4-include this file to define the current pmx version -m4_define([pmx_version], [2.7.3]) +m4_define([pmx_version], [2.7.4]) |