summaryrefslogtreecommitdiff
path: root/Build/source/utils/pmx
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/pmx')
-rw-r--r--Build/source/utils/pmx/ChangeLog128
-rw-r--r--Build/source/utils/pmx/Makefile.am250
-rw-r--r--Build/source/utils/pmx/Makefile.in2559
-rw-r--r--Build/source/utils/pmx/README17
-rw-r--r--Build/source/utils/pmx/TLpatches/ChangeLog100
-rw-r--r--Build/source/utils/pmx/TLpatches/TL-Changes6
-rw-r--r--Build/source/utils/pmx/ac/withenable.ac7
-rw-r--r--Build/source/utils/pmx/aclocal.m41171
-rwxr-xr-xBuild/source/utils/pmx/configure6701
-rw-r--r--Build/source/utils/pmx/configure.ac48
-rw-r--r--Build/source/utils/pmx/pmx-src/AUTHORS1
-rw-r--r--Build/source/utils/pmx/pmx-src/COPYING622
-rw-r--r--Build/source/utils/pmx/pmx-src/ChangeLog714
-rw-r--r--Build/source/utils/pmx/pmx-src/INSTALL365
-rw-r--r--Build/source/utils/pmx/pmx-src/Makefile.am244
-rw-r--r--Build/source/utils/pmx/pmx-src/Makefile.f2c7
-rw-r--r--Build/source/utils/pmx/pmx-src/NEWS0
-rw-r--r--Build/source/utils/pmx/pmx-src/README11
-rw-r--r--Build/source/utils/pmx/pmx-src/configure.ac43
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/abort_.c22
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/backspac.c76
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/c_abs.c20
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/c_cos.c23
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/c_div.c53
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/c_exp.c25
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/c_log.c23
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/c_sin.c23
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/c_sqrt.c41
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/cabs.c33
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/close.c101
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_abs.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_acos.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_asin.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_atan.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_atn2.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_cnjg.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_cos.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_cosh.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_dim.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_exp.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_imag.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_int.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_lg10.c21
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_log.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_mod.c46
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_nint.c20
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_prod.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_sign.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_sin.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_sinh.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_sqrt.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_tan.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/d_tanh.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/derf_.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/derfc_.c20
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/dfe.c151
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/dolio.c26
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/dtime_.c63
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/due.c77
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/ef1asc_.c25
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/ef1cmc_.c20
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/endfile.c160
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/erf_.c22
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/erfc_.c22
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/err.c282
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/etime_.c57
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/exit_.c43
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/f2c.h233
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/f77_aloc.c44
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/f77vers.c93
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/fio.h149
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/fmt.c525
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/fmt.h104
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/fmtlib.c51
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/fp.h28
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/ftell64_.c52
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/ftell_.c52
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/getarg_.c34
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/getenv_.c64
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/h_abs.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/h_dim.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/h_dnnt.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/h_indx.c32
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/h_len.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/h_mod.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/h_nint.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/h_sign.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/hl_ge.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/hl_gt.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/hl_le.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/hl_lt.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/i77vers.c343
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/i_abs.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/i_dim.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/i_dnnt.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/i_indx.c32
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/i_len.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/i_mod.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/i_nint.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/i_sign.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/iargc_.c17
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/iio.c159
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/ilnw.c83
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/inquire.c117
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/l_ge.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/l_gt.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/l_le.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/l_lt.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/lbitbits.c68
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/lbitshft.c17
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/lio.h74
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/lread.c803
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/lwrite.c314
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/main.c147
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/open.c418
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/patch-01-binary17
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/patch-03-DOS-line-endings18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/patch-04-MSVC-complex18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/patch-05-FreeBSD-off_t14
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/patch-06-WIN3288
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/patch-07-MuslLibc23
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/patch-08-WIN6423
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/patch-09-tmpfile136
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/pow_ci.c26
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/pow_dd.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/pow_di.c41
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/pow_hh.c39
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/pow_ii.c39
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/pow_qq.c39
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/pow_ri.c41
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/pow_zi.c60
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/pow_zz.c29
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/qbitbits.c72
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/qbitshft.c17
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_abs.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_acos.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_asin.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_atan.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_atn2.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_cnjg.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_cos.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_cosh.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_dim.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_exp.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_imag.c16
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_int.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_lg10.c21
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_log.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_mod.c46
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_nint.c20
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_sign.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_sin.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_sinh.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_sqrt.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_tan.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/r_tanh.c19
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/rawio.h41
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/rdfmt.c550
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/rewind.c30
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/rsfe.c91
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/rsli.c109
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/rsne.c615
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/s_cat.c86
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/s_cmp.c50
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/s_copy.c57
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/s_paus.c96
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/s_rnge.c32
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/s_stop.c48
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/sfe.c43
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/sig_die.c51
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/signal1.h35
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/signal_.c25
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/signbit.c24
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/sue.c90
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/sysdep1.h70
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/system_.c42
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/typesize.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/uio.c75
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/uninit.c368
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/util.c54
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/wref.c294
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/wrtfmt.c377
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/wsfe.c78
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/wsle.c42
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/wsne.c32
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/xwsne.c77
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/z_abs.c18
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/z_cos.c21
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/z_div.c50
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/z_exp.c23
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/z_log.c121
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/z_sin.c21
-rw-r--r--Build/source/utils/pmx/pmx-src/libf2c/z_sqrt.c35
-rwxr-xr-xBuild/source/utils/pmx/pmx-src/pmx.test26
-rw-r--r--Build/source/utils/pmx/pmx-src/pmx.tex892
-rw-r--r--Build/source/utils/pmx/pmx-src/pmx294.for26085
-rw-r--r--Build/source/utils/pmx/pmx-src/pmxab.c65953
-rw-r--r--Build/source/utils/pmx/pmx-src/scor2prt.c4335
-rw-r--r--Build/source/utils/pmx/pmx-src/scor2prt.for1630
-rw-r--r--Build/source/utils/pmx/pmx-src/tests/barsant.midbin3071 -> 0 bytes
-rw-r--r--Build/source/utils/pmx/pmx-src/tests/barsant.pml24
-rw-r--r--Build/source/utils/pmx/pmx-src/tests/barsant.pmx69
-rw-r--r--Build/source/utils/pmx/pmx-src/tests/barsant.tex307
-rw-r--r--Build/source/utils/pmx/pmx-src/tests/barsant1.pmx49
-rw-r--r--Build/source/utils/pmx/pmx-src/tests/barsant2.pmx66
-rw-r--r--Build/source/utils/pmx/pmx-src/version.ac11
-rw-r--r--Build/source/utils/pmx/pmx-src/w32getc.c14
-rw-r--r--Build/source/utils/pmx/pmxab.124
-rw-r--r--Build/source/utils/pmx/scor2prt.118
-rw-r--r--Build/source/utils/pmx/version.ac11
210 files changed, 0 insertions, 123918 deletions
diff --git a/Build/source/utils/pmx/ChangeLog b/Build/source/utils/pmx/ChangeLog
deleted file mode 100644
index 56c1eb40559..00000000000
--- a/Build/source/utils/pmx/ChangeLog
+++ /dev/null
@@ -1,128 +0,0 @@
-2021-01-30 Akira Kakuto <kakuto@w32tex.org>
-
- * Import pmx 2.9.4a.
-
-2020-05-18 Karl Berry <karl@freefriends.org>
-
- * configure.ac ([m]): check for erf, not sqrt; the latter may
- be implemented in hardware, so that -lm is wrongly concluded to be
- unnecessary. E.g., on Solaris. Report from Nelson Beebe.
-
-2020-02-07 Akira Kakuto <kakuto@w32tex.org>
-
- * Import pmx 2.9.4.
-
-2018-02-14 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
-
- * Import pmx 2.8.4.
-
-2017-03-27 Karl Berry <karl@freefriends.org>
-
- * Makefile.am (AM_TESTS_ENVIRONMENT): use instead of TESTS_ENVIRONMENT.
-
-2016-12-09 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
-
- * Import pmx 2.7.6.
-
-2016-02-10 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
-
- * Import pmx 2.7.3.
-
-2015-07-07 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * Makefile.am: Better dependencies for 'make check'.
-
-2015-02-16 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * Makefile.am: Use the fragment ../../am/dist_hook.am.
-
-2014-11-17 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * configure.ac: Replace KPSE_COND_WIN32_WRAP => KPSE_COND_WIN32.
-
-2014-05-11 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * pmx2pdf.1 (removed): Maintained under Mastr, not here.
- * Makefile.am: Adjusted.
-
-2013-04-11 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- Import pmx-2.7.0.
- * version.ac: Adapted.
-
-2013-03-14 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- Import pmx-2.6.21.
- * version.ac: Adapted.
- * pmxab.1: Updated.
-
-2013-01-30 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * Makefile.am, configure.ac: Allow subdir-objects.
-
-2013-01-18 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- Import pmx-2.6.19.
- * version.ac: Adapted.
-
-2013-01-01 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * Makefile.am: Do not distribute output from parallel-tests.
-
-2012-11-20 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * Makefile.am, configure.ac: Avoid use of deprecated INCLUDES.
- * Makefile.am: Drop pmx2pdf.lua,
- now in ../../texk/texlive/linked_scripts/pmx.
-
-2012-07-12 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * configure.ac: Fixed a typo (AM_CPPPFLAGS => AM_CPPFLAGS).
-
- * pmx.test (removed): Now distributed from upstream.
-
-2012-05-20 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * Makefile.am: do handle pmx2pdf.lua here, since although it is
- distributed as part of the texmf.zip we must create a symlink
- in bindir.
-
-2012-05-20 Karl Berry <karl@tug.org>
-
- * Makefile.am: do not handle pmx2pdf.lua here, since
- it is distributed as part of the texmf.zip file rather than the
- sources.
-
-2012-05-18 Karl Berry <karl@tug.org>
- and Peter Breitenlohner <peb@mppmu.mpg.de>
-
- Import pmx-2.6.18.
- * w32getc.c, tests/ (removed): Now distributed from upstream.
- * arith.h (removed): Unused.
- * pmx.lua, pmx.1 (removed): Renamed ...
- * pmx2pdf.lua, pmx2pdf.1 (new): ... into these and updated.
- * Makefile.am, pmx.test, version.ac: Adapted.
-
-2012-04-01 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * w32getc.c (new): Handle DOS line endings (on Windows).
- Mail from Akira, 31 Mar 2012 21:36:26.
- * Makefile.am [WIN32]: Add the new file.
-
-2012-03-28 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * arith.h (new): Dummy header to avoid the need to run arithchk.
- * Makefile.am, configure.ac: Modified to allow cross compilation.
-
- * pmx.lua, pmx.1, pmxab.1, scor2prt.1: New files from CTAN
- (http://mirrors.ctan.org/support/pmx/pmx-texmf.zip).
- * pmx.test: New shell script for tests.
- * tests/barsant*: Test input and expected output.
- * Makefile.am, configure.ac: Add the new files.
-
-2012-03-26 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- Adapt pmx-2.6.17 to the TeX Live build system.
-
-Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
-You may freely use, modify and/or distribute this file.
diff --git a/Build/source/utils/pmx/Makefile.am b/Build/source/utils/pmx/Makefile.am
deleted file mode 100644
index f0cce79a016..00000000000
--- a/Build/source/utils/pmx/Makefile.am
+++ /dev/null
@@ -1,250 +0,0 @@
-## $Id$
-## Makefile.am for the TeX Live subdirectory utils/pmx/
-##
-## Copyright 2017 Karl Berry <tex-live@tug.org>
-## Copyright 2012-2015 Peter Breitenlohner <tex-live@tug.org>
-## You may freely use, modify and/or distribute this file.
-
-## We want to re-distribute the whole original pmx source tree.
-EXTRA_DIST = $(PMX_TREE)
-
-## Patches applied to the original source tree
-EXTRA_DIST += TLpatches
-
-# Files not to be distributed
-include $(srcdir)/../../am/dist_hook.am
-NEVER_NAMES += $(NEVER_NAMES_SUB)
-NEVER_DIST += $(PMX_TREE)/pmx.log $(PMX_TREE)/pmx.trs
-
-AM_CPPFLAGS = -I$(srcdir)/$(PMX_TREE)/libf2c $(PMX_DEFINES)
-AM_CFLAGS = #$(WARNING_CFLAGS)
-
-bin_PROGRAMS = pmxab scor2prt
-
-pmxab_SOURCES = @PMX_TREE@/pmxab.c
-
-scor2prt_SOURCES = @PMX_TREE@/scor2prt.c
-
-LDADD = libf2c.a
-
-noinst_LIBRARIES = libf2c.a
-
-## libf2c headers
-libf2c_a_SOURCES = \
- @PMX_TREE@/libf2c/f2c.h \
- @PMX_TREE@/libf2c/fio.h \
- @PMX_TREE@/libf2c/fmt.h \
- @PMX_TREE@/libf2c/fp.h \
- @PMX_TREE@/libf2c/lio.h \
- @PMX_TREE@/libf2c/rawio.h \
- @PMX_TREE@/libf2c/signal1.h \
- @PMX_TREE@/libf2c/sysdep1.h
-## MISC
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/abort_.c \
- @PMX_TREE@/libf2c/cabs.c \
- @PMX_TREE@/libf2c/derf_.c \
- @PMX_TREE@/libf2c/derfc_.c \
- @PMX_TREE@/libf2c/erf_.c \
- @PMX_TREE@/libf2c/erfc_.c \
- @PMX_TREE@/libf2c/exit_.c \
- @PMX_TREE@/libf2c/f77vers.c \
- @PMX_TREE@/libf2c/getarg_.c \
- @PMX_TREE@/libf2c/getenv_.c \
- @PMX_TREE@/libf2c/i77vers.c \
- @PMX_TREE@/libf2c/iargc_.c \
- @PMX_TREE@/libf2c/main.c \
- @PMX_TREE@/libf2c/s_paus.c \
- @PMX_TREE@/libf2c/s_rnge.c \
- @PMX_TREE@/libf2c/s_stop.c \
- @PMX_TREE@/libf2c/sig_die.c \
- @PMX_TREE@/libf2c/signal_.c \
- @PMX_TREE@/libf2c/system_.c
-## MISC (not used for pmx)
-EXTRA_libf2c_a_SOURCES = \
- @PMX_TREE@/libf2c/uninit.c
-## POW
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/pow_ci.c \
- @PMX_TREE@/libf2c/pow_dd.c \
- @PMX_TREE@/libf2c/pow_di.c \
- @PMX_TREE@/libf2c/pow_hh.c \
- @PMX_TREE@/libf2c/pow_ii.c \
- @PMX_TREE@/libf2c/pow_ri.c \
- @PMX_TREE@/libf2c/pow_zi.c \
- @PMX_TREE@/libf2c/pow_zz.c
-## CX
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/c_abs.c \
- @PMX_TREE@/libf2c/c_cos.c \
- @PMX_TREE@/libf2c/c_div.c \
- @PMX_TREE@/libf2c/c_exp.c \
- @PMX_TREE@/libf2c/c_log.c \
- @PMX_TREE@/libf2c/c_sin.c \
- @PMX_TREE@/libf2c/c_sqrt.c
-## DCX
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/z_abs.c \
- @PMX_TREE@/libf2c/z_cos.c \
- @PMX_TREE@/libf2c/z_div.c \
- @PMX_TREE@/libf2c/z_exp.c \
- @PMX_TREE@/libf2c/z_log.c \
- @PMX_TREE@/libf2c/z_sin.c \
- @PMX_TREE@/libf2c/z_sqrt.c
-## REAL
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/r_abs.c \
- @PMX_TREE@/libf2c/r_acos.c \
- @PMX_TREE@/libf2c/r_asin.c \
- @PMX_TREE@/libf2c/r_atan.c \
- @PMX_TREE@/libf2c/r_atn2.c \
- @PMX_TREE@/libf2c/r_cnjg.c \
- @PMX_TREE@/libf2c/r_cos.c \
- @PMX_TREE@/libf2c/r_cosh.c \
- @PMX_TREE@/libf2c/r_dim.c \
- @PMX_TREE@/libf2c/r_exp.c \
- @PMX_TREE@/libf2c/r_imag.c \
- @PMX_TREE@/libf2c/r_int.c \
- @PMX_TREE@/libf2c/r_lg10.c \
- @PMX_TREE@/libf2c/r_log.c \
- @PMX_TREE@/libf2c/r_mod.c \
- @PMX_TREE@/libf2c/r_nint.c \
- @PMX_TREE@/libf2c/r_sign.c \
- @PMX_TREE@/libf2c/r_sin.c \
- @PMX_TREE@/libf2c/r_sinh.c \
- @PMX_TREE@/libf2c/r_sqrt.c \
- @PMX_TREE@/libf2c/r_tan.c \
- @PMX_TREE@/libf2c/r_tanh.c
-## DBL
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/d_abs.c \
- @PMX_TREE@/libf2c/d_acos.c \
- @PMX_TREE@/libf2c/d_asin.c \
- @PMX_TREE@/libf2c/d_atan.c \
- @PMX_TREE@/libf2c/d_atn2.c \
- @PMX_TREE@/libf2c/d_cnjg.c \
- @PMX_TREE@/libf2c/d_cos.c \
- @PMX_TREE@/libf2c/d_cosh.c \
- @PMX_TREE@/libf2c/d_dim.c \
- @PMX_TREE@/libf2c/d_exp.c \
- @PMX_TREE@/libf2c/d_imag.c \
- @PMX_TREE@/libf2c/d_int.c \
- @PMX_TREE@/libf2c/d_lg10.c \
- @PMX_TREE@/libf2c/d_log.c \
- @PMX_TREE@/libf2c/d_mod.c \
- @PMX_TREE@/libf2c/d_nint.c \
- @PMX_TREE@/libf2c/d_prod.c \
- @PMX_TREE@/libf2c/d_sign.c \
- @PMX_TREE@/libf2c/d_sin.c \
- @PMX_TREE@/libf2c/d_sinh.c \
- @PMX_TREE@/libf2c/d_sqrt.c \
- @PMX_TREE@/libf2c/d_tan.c \
- @PMX_TREE@/libf2c/d_tanh.c
-## INT
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/i_abs.c \
- @PMX_TREE@/libf2c/i_dim.c \
- @PMX_TREE@/libf2c/i_dnnt.c \
- @PMX_TREE@/libf2c/i_indx.c \
- @PMX_TREE@/libf2c/i_len.c \
- @PMX_TREE@/libf2c/i_mod.c \
- @PMX_TREE@/libf2c/i_nint.c \
- @PMX_TREE@/libf2c/i_sign.c \
- @PMX_TREE@/libf2c/lbitbits.c \
- @PMX_TREE@/libf2c/lbitshft.c
-## HALF
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/h_abs.c \
- @PMX_TREE@/libf2c/h_dim.c \
- @PMX_TREE@/libf2c/h_dnnt.c \
- @PMX_TREE@/libf2c/h_indx.c \
- @PMX_TREE@/libf2c/h_len.c \
- @PMX_TREE@/libf2c/h_mod.c \
- @PMX_TREE@/libf2c/h_nint.c \
- @PMX_TREE@/libf2c/h_sign.c
-## CMP
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/hl_ge.c \
- @PMX_TREE@/libf2c/hl_gt.c \
- @PMX_TREE@/libf2c/hl_le.c \
- @PMX_TREE@/libf2c/hl_lt.c \
- @PMX_TREE@/libf2c/l_ge.c \
- @PMX_TREE@/libf2c/l_gt.c \
- @PMX_TREE@/libf2c/l_le.c \
- @PMX_TREE@/libf2c/l_lt.c
-## EFL
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/ef1asc_.c \
- @PMX_TREE@/libf2c/ef1cmc_.c
-## CHAR
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/f77_aloc.c \
- @PMX_TREE@/libf2c/s_cat.c \
- @PMX_TREE@/libf2c/s_cmp.c \
- @PMX_TREE@/libf2c/s_copy.c
-## I77
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/backspac.c \
- @PMX_TREE@/libf2c/close.c \
- @PMX_TREE@/libf2c/dfe.c \
- @PMX_TREE@/libf2c/dolio.c \
- @PMX_TREE@/libf2c/due.c \
- @PMX_TREE@/libf2c/endfile.c \
- @PMX_TREE@/libf2c/err.c \
- @PMX_TREE@/libf2c/fmt.c \
- @PMX_TREE@/libf2c/fmtlib.c \
- @PMX_TREE@/libf2c/ftell_.c \
- @PMX_TREE@/libf2c/iio.c \
- @PMX_TREE@/libf2c/ilnw.c \
- @PMX_TREE@/libf2c/inquire.c \
- @PMX_TREE@/libf2c/lread.c \
- @PMX_TREE@/libf2c/lwrite.c \
- @PMX_TREE@/libf2c/open.c \
- @PMX_TREE@/libf2c/rdfmt.c \
- @PMX_TREE@/libf2c/rewind.c \
- @PMX_TREE@/libf2c/rsfe.c \
- @PMX_TREE@/libf2c/rsli.c \
- @PMX_TREE@/libf2c/rsne.c \
- @PMX_TREE@/libf2c/sfe.c \
- @PMX_TREE@/libf2c/sue.c \
- @PMX_TREE@/libf2c/typesize.c \
- @PMX_TREE@/libf2c/uio.c \
- @PMX_TREE@/libf2c/util.c \
- @PMX_TREE@/libf2c/wref.c \
- @PMX_TREE@/libf2c/wrtfmt.c \
- @PMX_TREE@/libf2c/wsfe.c \
- @PMX_TREE@/libf2c/wsle.c \
- @PMX_TREE@/libf2c/wsne.c \
- @PMX_TREE@/libf2c/xwsne.c
-## TIME
-libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/dtime_.c \
- @PMX_TREE@/libf2c/etime_.c
-
-## Handle DOS line endings
-if WIN32
-libf2c_a_SOURCES += \
- @PMX_TREE@/w32getc.c
-endif WIN32
-
-## QINT (unused)
-EXTRA_libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/ftell64_.c \
- @PMX_TREE@/libf2c/pow_qq.c \
- @PMX_TREE@/libf2c/qbitbits.c \
- @PMX_TREE@/libf2c/qbitshft.c
-## unused
-EXTRA_libf2c_a_SOURCES += \
- @PMX_TREE@/libf2c/signbit.c
-
-dist_man1_MANS = pmxab.1 scor2prt.1
-
-## Tests
-AM_TESTS_ENVIRONMENT = test_src=$(srcdir)/$(PMX_TREE)/tests; export test_src;
-#
-TESTS = $(PMX_TREE)/pmx.test
-$(PMX_TREE)/pmx.log: pmxab$(EXEEXT) scor2prt$(EXEEXT)
-
-## $(PMX_TREE)/pmx.test
-DISTCLEANFILES = barsant* pmxaerr.dat
-
diff --git a/Build/source/utils/pmx/Makefile.in b/Build/source/utils/pmx/Makefile.in
deleted file mode 100644
index a0a349cd8d9..00000000000
--- a/Build/source/utils/pmx/Makefile.in
+++ /dev/null
@@ -1,2559 +0,0 @@
-# Makefile.in generated by automake 1.16.3 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2020 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-VPATH = @srcdir@
-am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
-}
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-bin_PROGRAMS = pmxab$(EXEEXT) scor2prt$(EXEEXT)
-@WIN32_TRUE@am__append_1 = \
-@WIN32_TRUE@ @PMX_TREE@/w32getc.c
-
-subdir = .
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/../../m4/kpse-common.m4 \
- $(top_srcdir)/../../m4/kpse-warnings.m4 \
- $(top_srcdir)/../../m4/kpse-win32.m4 $(top_srcdir)/version.ac \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
- $(am__configure_deps) $(am__DIST_COMMON)
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno config.status.lineno
-mkinstalldirs = $(install_sh) -d
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
-PROGRAMS = $(bin_PROGRAMS)
-LIBRARIES = $(noinst_LIBRARIES)
-AR = ar
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libf2c_a_AR = $(AR) $(ARFLAGS)
-libf2c_a_LIBADD =
-am__libf2c_a_SOURCES_DIST = @PMX_TREE@/libf2c/f2c.h \
- @PMX_TREE@/libf2c/fio.h @PMX_TREE@/libf2c/fmt.h \
- @PMX_TREE@/libf2c/fp.h @PMX_TREE@/libf2c/lio.h \
- @PMX_TREE@/libf2c/rawio.h @PMX_TREE@/libf2c/signal1.h \
- @PMX_TREE@/libf2c/sysdep1.h @PMX_TREE@/libf2c/abort_.c \
- @PMX_TREE@/libf2c/cabs.c @PMX_TREE@/libf2c/derf_.c \
- @PMX_TREE@/libf2c/derfc_.c @PMX_TREE@/libf2c/erf_.c \
- @PMX_TREE@/libf2c/erfc_.c @PMX_TREE@/libf2c/exit_.c \
- @PMX_TREE@/libf2c/f77vers.c @PMX_TREE@/libf2c/getarg_.c \
- @PMX_TREE@/libf2c/getenv_.c @PMX_TREE@/libf2c/i77vers.c \
- @PMX_TREE@/libf2c/iargc_.c @PMX_TREE@/libf2c/main.c \
- @PMX_TREE@/libf2c/s_paus.c @PMX_TREE@/libf2c/s_rnge.c \
- @PMX_TREE@/libf2c/s_stop.c @PMX_TREE@/libf2c/sig_die.c \
- @PMX_TREE@/libf2c/signal_.c @PMX_TREE@/libf2c/system_.c \
- @PMX_TREE@/libf2c/pow_ci.c @PMX_TREE@/libf2c/pow_dd.c \
- @PMX_TREE@/libf2c/pow_di.c @PMX_TREE@/libf2c/pow_hh.c \
- @PMX_TREE@/libf2c/pow_ii.c @PMX_TREE@/libf2c/pow_ri.c \
- @PMX_TREE@/libf2c/pow_zi.c @PMX_TREE@/libf2c/pow_zz.c \
- @PMX_TREE@/libf2c/c_abs.c @PMX_TREE@/libf2c/c_cos.c \
- @PMX_TREE@/libf2c/c_div.c @PMX_TREE@/libf2c/c_exp.c \
- @PMX_TREE@/libf2c/c_log.c @PMX_TREE@/libf2c/c_sin.c \
- @PMX_TREE@/libf2c/c_sqrt.c @PMX_TREE@/libf2c/z_abs.c \
- @PMX_TREE@/libf2c/z_cos.c @PMX_TREE@/libf2c/z_div.c \
- @PMX_TREE@/libf2c/z_exp.c @PMX_TREE@/libf2c/z_log.c \
- @PMX_TREE@/libf2c/z_sin.c @PMX_TREE@/libf2c/z_sqrt.c \
- @PMX_TREE@/libf2c/r_abs.c @PMX_TREE@/libf2c/r_acos.c \
- @PMX_TREE@/libf2c/r_asin.c @PMX_TREE@/libf2c/r_atan.c \
- @PMX_TREE@/libf2c/r_atn2.c @PMX_TREE@/libf2c/r_cnjg.c \
- @PMX_TREE@/libf2c/r_cos.c @PMX_TREE@/libf2c/r_cosh.c \
- @PMX_TREE@/libf2c/r_dim.c @PMX_TREE@/libf2c/r_exp.c \
- @PMX_TREE@/libf2c/r_imag.c @PMX_TREE@/libf2c/r_int.c \
- @PMX_TREE@/libf2c/r_lg10.c @PMX_TREE@/libf2c/r_log.c \
- @PMX_TREE@/libf2c/r_mod.c @PMX_TREE@/libf2c/r_nint.c \
- @PMX_TREE@/libf2c/r_sign.c @PMX_TREE@/libf2c/r_sin.c \
- @PMX_TREE@/libf2c/r_sinh.c @PMX_TREE@/libf2c/r_sqrt.c \
- @PMX_TREE@/libf2c/r_tan.c @PMX_TREE@/libf2c/r_tanh.c \
- @PMX_TREE@/libf2c/d_abs.c @PMX_TREE@/libf2c/d_acos.c \
- @PMX_TREE@/libf2c/d_asin.c @PMX_TREE@/libf2c/d_atan.c \
- @PMX_TREE@/libf2c/d_atn2.c @PMX_TREE@/libf2c/d_cnjg.c \
- @PMX_TREE@/libf2c/d_cos.c @PMX_TREE@/libf2c/d_cosh.c \
- @PMX_TREE@/libf2c/d_dim.c @PMX_TREE@/libf2c/d_exp.c \
- @PMX_TREE@/libf2c/d_imag.c @PMX_TREE@/libf2c/d_int.c \
- @PMX_TREE@/libf2c/d_lg10.c @PMX_TREE@/libf2c/d_log.c \
- @PMX_TREE@/libf2c/d_mod.c @PMX_TREE@/libf2c/d_nint.c \
- @PMX_TREE@/libf2c/d_prod.c @PMX_TREE@/libf2c/d_sign.c \
- @PMX_TREE@/libf2c/d_sin.c @PMX_TREE@/libf2c/d_sinh.c \
- @PMX_TREE@/libf2c/d_sqrt.c @PMX_TREE@/libf2c/d_tan.c \
- @PMX_TREE@/libf2c/d_tanh.c @PMX_TREE@/libf2c/i_abs.c \
- @PMX_TREE@/libf2c/i_dim.c @PMX_TREE@/libf2c/i_dnnt.c \
- @PMX_TREE@/libf2c/i_indx.c @PMX_TREE@/libf2c/i_len.c \
- @PMX_TREE@/libf2c/i_mod.c @PMX_TREE@/libf2c/i_nint.c \
- @PMX_TREE@/libf2c/i_sign.c @PMX_TREE@/libf2c/lbitbits.c \
- @PMX_TREE@/libf2c/lbitshft.c @PMX_TREE@/libf2c/h_abs.c \
- @PMX_TREE@/libf2c/h_dim.c @PMX_TREE@/libf2c/h_dnnt.c \
- @PMX_TREE@/libf2c/h_indx.c @PMX_TREE@/libf2c/h_len.c \
- @PMX_TREE@/libf2c/h_mod.c @PMX_TREE@/libf2c/h_nint.c \
- @PMX_TREE@/libf2c/h_sign.c @PMX_TREE@/libf2c/hl_ge.c \
- @PMX_TREE@/libf2c/hl_gt.c @PMX_TREE@/libf2c/hl_le.c \
- @PMX_TREE@/libf2c/hl_lt.c @PMX_TREE@/libf2c/l_ge.c \
- @PMX_TREE@/libf2c/l_gt.c @PMX_TREE@/libf2c/l_le.c \
- @PMX_TREE@/libf2c/l_lt.c @PMX_TREE@/libf2c/ef1asc_.c \
- @PMX_TREE@/libf2c/ef1cmc_.c @PMX_TREE@/libf2c/f77_aloc.c \
- @PMX_TREE@/libf2c/s_cat.c @PMX_TREE@/libf2c/s_cmp.c \
- @PMX_TREE@/libf2c/s_copy.c @PMX_TREE@/libf2c/backspac.c \
- @PMX_TREE@/libf2c/close.c @PMX_TREE@/libf2c/dfe.c \
- @PMX_TREE@/libf2c/dolio.c @PMX_TREE@/libf2c/due.c \
- @PMX_TREE@/libf2c/endfile.c @PMX_TREE@/libf2c/err.c \
- @PMX_TREE@/libf2c/fmt.c @PMX_TREE@/libf2c/fmtlib.c \
- @PMX_TREE@/libf2c/ftell_.c @PMX_TREE@/libf2c/iio.c \
- @PMX_TREE@/libf2c/ilnw.c @PMX_TREE@/libf2c/inquire.c \
- @PMX_TREE@/libf2c/lread.c @PMX_TREE@/libf2c/lwrite.c \
- @PMX_TREE@/libf2c/open.c @PMX_TREE@/libf2c/rdfmt.c \
- @PMX_TREE@/libf2c/rewind.c @PMX_TREE@/libf2c/rsfe.c \
- @PMX_TREE@/libf2c/rsli.c @PMX_TREE@/libf2c/rsne.c \
- @PMX_TREE@/libf2c/sfe.c @PMX_TREE@/libf2c/sue.c \
- @PMX_TREE@/libf2c/typesize.c @PMX_TREE@/libf2c/uio.c \
- @PMX_TREE@/libf2c/util.c @PMX_TREE@/libf2c/wref.c \
- @PMX_TREE@/libf2c/wrtfmt.c @PMX_TREE@/libf2c/wsfe.c \
- @PMX_TREE@/libf2c/wsle.c @PMX_TREE@/libf2c/wsne.c \
- @PMX_TREE@/libf2c/xwsne.c @PMX_TREE@/libf2c/dtime_.c \
- @PMX_TREE@/libf2c/etime_.c @PMX_TREE@/w32getc.c
-am__dirstamp = $(am__leading_dot)dirstamp
-@WIN32_TRUE@am__objects_1 = @PMX_TREE@/w32getc.$(OBJEXT)
-am_libf2c_a_OBJECTS = @PMX_TREE@/libf2c/abort_.$(OBJEXT) \
- @PMX_TREE@/libf2c/cabs.$(OBJEXT) \
- @PMX_TREE@/libf2c/derf_.$(OBJEXT) \
- @PMX_TREE@/libf2c/derfc_.$(OBJEXT) \
- @PMX_TREE@/libf2c/erf_.$(OBJEXT) \
- @PMX_TREE@/libf2c/erfc_.$(OBJEXT) \
- @PMX_TREE@/libf2c/exit_.$(OBJEXT) \
- @PMX_TREE@/libf2c/f77vers.$(OBJEXT) \
- @PMX_TREE@/libf2c/getarg_.$(OBJEXT) \
- @PMX_TREE@/libf2c/getenv_.$(OBJEXT) \
- @PMX_TREE@/libf2c/i77vers.$(OBJEXT) \
- @PMX_TREE@/libf2c/iargc_.$(OBJEXT) \
- @PMX_TREE@/libf2c/main.$(OBJEXT) \
- @PMX_TREE@/libf2c/s_paus.$(OBJEXT) \
- @PMX_TREE@/libf2c/s_rnge.$(OBJEXT) \
- @PMX_TREE@/libf2c/s_stop.$(OBJEXT) \
- @PMX_TREE@/libf2c/sig_die.$(OBJEXT) \
- @PMX_TREE@/libf2c/signal_.$(OBJEXT) \
- @PMX_TREE@/libf2c/system_.$(OBJEXT) \
- @PMX_TREE@/libf2c/pow_ci.$(OBJEXT) \
- @PMX_TREE@/libf2c/pow_dd.$(OBJEXT) \
- @PMX_TREE@/libf2c/pow_di.$(OBJEXT) \
- @PMX_TREE@/libf2c/pow_hh.$(OBJEXT) \
- @PMX_TREE@/libf2c/pow_ii.$(OBJEXT) \
- @PMX_TREE@/libf2c/pow_ri.$(OBJEXT) \
- @PMX_TREE@/libf2c/pow_zi.$(OBJEXT) \
- @PMX_TREE@/libf2c/pow_zz.$(OBJEXT) \
- @PMX_TREE@/libf2c/c_abs.$(OBJEXT) \
- @PMX_TREE@/libf2c/c_cos.$(OBJEXT) \
- @PMX_TREE@/libf2c/c_div.$(OBJEXT) \
- @PMX_TREE@/libf2c/c_exp.$(OBJEXT) \
- @PMX_TREE@/libf2c/c_log.$(OBJEXT) \
- @PMX_TREE@/libf2c/c_sin.$(OBJEXT) \
- @PMX_TREE@/libf2c/c_sqrt.$(OBJEXT) \
- @PMX_TREE@/libf2c/z_abs.$(OBJEXT) \
- @PMX_TREE@/libf2c/z_cos.$(OBJEXT) \
- @PMX_TREE@/libf2c/z_div.$(OBJEXT) \
- @PMX_TREE@/libf2c/z_exp.$(OBJEXT) \
- @PMX_TREE@/libf2c/z_log.$(OBJEXT) \
- @PMX_TREE@/libf2c/z_sin.$(OBJEXT) \
- @PMX_TREE@/libf2c/z_sqrt.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_abs.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_acos.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_asin.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_atan.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_atn2.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_cnjg.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_cos.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_cosh.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_dim.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_exp.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_imag.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_int.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_lg10.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_log.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_mod.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_nint.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_sign.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_sin.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_sinh.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_sqrt.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_tan.$(OBJEXT) \
- @PMX_TREE@/libf2c/r_tanh.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_abs.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_acos.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_asin.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_atan.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_atn2.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_cnjg.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_cos.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_cosh.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_dim.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_exp.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_imag.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_int.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_lg10.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_log.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_mod.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_nint.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_prod.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_sign.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_sin.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_sinh.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_sqrt.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_tan.$(OBJEXT) \
- @PMX_TREE@/libf2c/d_tanh.$(OBJEXT) \
- @PMX_TREE@/libf2c/i_abs.$(OBJEXT) \
- @PMX_TREE@/libf2c/i_dim.$(OBJEXT) \
- @PMX_TREE@/libf2c/i_dnnt.$(OBJEXT) \
- @PMX_TREE@/libf2c/i_indx.$(OBJEXT) \
- @PMX_TREE@/libf2c/i_len.$(OBJEXT) \
- @PMX_TREE@/libf2c/i_mod.$(OBJEXT) \
- @PMX_TREE@/libf2c/i_nint.$(OBJEXT) \
- @PMX_TREE@/libf2c/i_sign.$(OBJEXT) \
- @PMX_TREE@/libf2c/lbitbits.$(OBJEXT) \
- @PMX_TREE@/libf2c/lbitshft.$(OBJEXT) \
- @PMX_TREE@/libf2c/h_abs.$(OBJEXT) \
- @PMX_TREE@/libf2c/h_dim.$(OBJEXT) \
- @PMX_TREE@/libf2c/h_dnnt.$(OBJEXT) \
- @PMX_TREE@/libf2c/h_indx.$(OBJEXT) \
- @PMX_TREE@/libf2c/h_len.$(OBJEXT) \
- @PMX_TREE@/libf2c/h_mod.$(OBJEXT) \
- @PMX_TREE@/libf2c/h_nint.$(OBJEXT) \
- @PMX_TREE@/libf2c/h_sign.$(OBJEXT) \
- @PMX_TREE@/libf2c/hl_ge.$(OBJEXT) \
- @PMX_TREE@/libf2c/hl_gt.$(OBJEXT) \
- @PMX_TREE@/libf2c/hl_le.$(OBJEXT) \
- @PMX_TREE@/libf2c/hl_lt.$(OBJEXT) \
- @PMX_TREE@/libf2c/l_ge.$(OBJEXT) \
- @PMX_TREE@/libf2c/l_gt.$(OBJEXT) \
- @PMX_TREE@/libf2c/l_le.$(OBJEXT) \
- @PMX_TREE@/libf2c/l_lt.$(OBJEXT) \
- @PMX_TREE@/libf2c/ef1asc_.$(OBJEXT) \
- @PMX_TREE@/libf2c/ef1cmc_.$(OBJEXT) \
- @PMX_TREE@/libf2c/f77_aloc.$(OBJEXT) \
- @PMX_TREE@/libf2c/s_cat.$(OBJEXT) \
- @PMX_TREE@/libf2c/s_cmp.$(OBJEXT) \
- @PMX_TREE@/libf2c/s_copy.$(OBJEXT) \
- @PMX_TREE@/libf2c/backspac.$(OBJEXT) \
- @PMX_TREE@/libf2c/close.$(OBJEXT) \
- @PMX_TREE@/libf2c/dfe.$(OBJEXT) \
- @PMX_TREE@/libf2c/dolio.$(OBJEXT) \
- @PMX_TREE@/libf2c/due.$(OBJEXT) \
- @PMX_TREE@/libf2c/endfile.$(OBJEXT) \
- @PMX_TREE@/libf2c/err.$(OBJEXT) \
- @PMX_TREE@/libf2c/fmt.$(OBJEXT) \
- @PMX_TREE@/libf2c/fmtlib.$(OBJEXT) \
- @PMX_TREE@/libf2c/ftell_.$(OBJEXT) \
- @PMX_TREE@/libf2c/iio.$(OBJEXT) \
- @PMX_TREE@/libf2c/ilnw.$(OBJEXT) \
- @PMX_TREE@/libf2c/inquire.$(OBJEXT) \
- @PMX_TREE@/libf2c/lread.$(OBJEXT) \
- @PMX_TREE@/libf2c/lwrite.$(OBJEXT) \
- @PMX_TREE@/libf2c/open.$(OBJEXT) \
- @PMX_TREE@/libf2c/rdfmt.$(OBJEXT) \
- @PMX_TREE@/libf2c/rewind.$(OBJEXT) \
- @PMX_TREE@/libf2c/rsfe.$(OBJEXT) \
- @PMX_TREE@/libf2c/rsli.$(OBJEXT) \
- @PMX_TREE@/libf2c/rsne.$(OBJEXT) \
- @PMX_TREE@/libf2c/sfe.$(OBJEXT) \
- @PMX_TREE@/libf2c/sue.$(OBJEXT) \
- @PMX_TREE@/libf2c/typesize.$(OBJEXT) \
- @PMX_TREE@/libf2c/uio.$(OBJEXT) \
- @PMX_TREE@/libf2c/util.$(OBJEXT) \
- @PMX_TREE@/libf2c/wref.$(OBJEXT) \
- @PMX_TREE@/libf2c/wrtfmt.$(OBJEXT) \
- @PMX_TREE@/libf2c/wsfe.$(OBJEXT) \
- @PMX_TREE@/libf2c/wsle.$(OBJEXT) \
- @PMX_TREE@/libf2c/wsne.$(OBJEXT) \
- @PMX_TREE@/libf2c/xwsne.$(OBJEXT) \
- @PMX_TREE@/libf2c/dtime_.$(OBJEXT) \
- @PMX_TREE@/libf2c/etime_.$(OBJEXT) $(am__objects_1)
-libf2c_a_OBJECTS = $(am_libf2c_a_OBJECTS)
-am_pmxab_OBJECTS = @PMX_TREE@/pmxab.$(OBJEXT)
-pmxab_OBJECTS = $(am_pmxab_OBJECTS)
-pmxab_LDADD = $(LDADD)
-pmxab_DEPENDENCIES = libf2c.a
-am_scor2prt_OBJECTS = @PMX_TREE@/scor2prt.$(OBJEXT)
-scor2prt_OBJECTS = $(am_scor2prt_OBJECTS)
-scor2prt_LDADD = $(LDADD)
-scor2prt_DEPENDENCIES = libf2c.a
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@
-depcomp = $(SHELL) $(top_srcdir)/../../build-aux/depcomp
-am__maybe_remake_depfiles = depfiles
-am__depfiles_remade = @PMX_TREE@/$(DEPDIR)/pmxab.Po \
- @PMX_TREE@/$(DEPDIR)/scor2prt.Po \
- @PMX_TREE@/$(DEPDIR)/w32getc.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/abort_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/backspac.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/c_abs.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/c_cos.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/c_div.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/c_exp.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/c_log.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/c_sin.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/c_sqrt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/cabs.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/close.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_abs.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_acos.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_asin.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_atan.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_atn2.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_cnjg.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_cos.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_cosh.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_dim.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_exp.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_imag.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_int.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_lg10.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_log.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_mod.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_nint.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_prod.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_sign.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_sin.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_sinh.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_sqrt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_tan.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/d_tanh.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/derf_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/derfc_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/dfe.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/dolio.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/dtime_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/due.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/ef1asc_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/ef1cmc_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/endfile.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/erf_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/erfc_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/err.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/etime_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/exit_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/f77_aloc.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/f77vers.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/fmt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/fmtlib.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/ftell64_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/ftell_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/getarg_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/getenv_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/h_abs.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/h_dim.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/h_dnnt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/h_indx.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/h_len.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/h_mod.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/h_nint.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/h_sign.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/hl_ge.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/hl_gt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/hl_le.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/hl_lt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/i77vers.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/i_abs.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/i_dim.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/i_dnnt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/i_indx.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/i_len.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/i_mod.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/i_nint.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/i_sign.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/iargc_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/iio.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/ilnw.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/inquire.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/l_ge.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/l_gt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/l_le.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/l_lt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/lbitbits.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/lbitshft.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/lread.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/lwrite.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/main.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/open.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/pow_ci.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/pow_dd.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/pow_di.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/pow_hh.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/pow_ii.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/pow_qq.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/pow_ri.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/pow_zi.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/pow_zz.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/qbitbits.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/qbitshft.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_abs.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_acos.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_asin.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_atan.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_atn2.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_cnjg.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_cos.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_cosh.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_dim.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_exp.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_imag.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_int.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_lg10.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_log.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_mod.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_nint.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_sign.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_sin.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_sinh.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_sqrt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_tan.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/r_tanh.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/rdfmt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/rewind.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/rsfe.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/rsli.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/rsne.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/s_cat.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/s_cmp.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/s_copy.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/s_paus.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/s_rnge.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/s_stop.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/sfe.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/sig_die.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/signal_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/signbit.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/sue.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/system_.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/typesize.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/uio.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/uninit.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/util.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/wref.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/wrtfmt.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/wsfe.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/wsle.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/wsne.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/xwsne.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/z_abs.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/z_cos.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/z_div.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/z_exp.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/z_log.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/z_sin.Po \
- @PMX_TREE@/libf2c/$(DEPDIR)/z_sqrt.Po
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libf2c_a_SOURCES) $(EXTRA_libf2c_a_SOURCES) \
- $(pmxab_SOURCES) $(scor2prt_SOURCES)
-DIST_SOURCES = $(am__libf2c_a_SOURCES_DIST) $(EXTRA_libf2c_a_SOURCES) \
- $(pmxab_SOURCES) $(scor2prt_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-man1dir = $(mandir)/man1
-NROFF = nroff
-MANS = $(dist_man1_MANS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-CSCOPE = cscope
-AM_RECURSIVE_TARGETS = cscope check recheck
-am__tty_colors_dummy = \
- mgn= red= grn= lgn= blu= brg= std=; \
- am__color_tests=no
-am__tty_colors = { \
- $(am__tty_colors_dummy); \
- if test "X$(AM_COLOR_TESTS)" = Xno; then \
- am__color_tests=no; \
- elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
- am__color_tests=yes; \
- elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
- am__color_tests=yes; \
- fi; \
- if test $$am__color_tests = yes; then \
- red=''; \
- grn=''; \
- lgn=''; \
- blu=''; \
- mgn=''; \
- brg=''; \
- std=''; \
- fi; \
-}
-am__recheck_rx = ^[ ]*:recheck:[ ]*
-am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
-am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
-# A command that, given a newline-separated list of test names on the
-# standard input, print the name of the tests that are to be re-run
-# upon "make recheck".
-am__list_recheck_tests = $(AWK) '{ \
- recheck = 1; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- { \
- if ((getline line2 < ($$0 ".log")) < 0) \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
- { \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
- { \
- break; \
- } \
- }; \
- if (recheck) \
- print $$0; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# A command that, given a newline-separated list of test names on the
-# standard input, create the global log from their .trs and .log files.
-am__create_global_log = $(AWK) ' \
-function fatal(msg) \
-{ \
- print "fatal: making $@: " msg | "cat >&2"; \
- exit 1; \
-} \
-function rst_section(header) \
-{ \
- print header; \
- len = length(header); \
- for (i = 1; i <= len; i = i + 1) \
- printf "="; \
- printf "\n\n"; \
-} \
-{ \
- copy_in_global_log = 1; \
- global_test_result = "RUN"; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".trs"); \
- if (line ~ /$(am__global_test_result_rx)/) \
- { \
- sub("$(am__global_test_result_rx)", "", line); \
- sub("[ ]*$$", "", line); \
- global_test_result = line; \
- } \
- else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
- copy_in_global_log = 0; \
- }; \
- if (copy_in_global_log) \
- { \
- rst_section(global_test_result ": " $$0); \
- while ((rc = (getline line < ($$0 ".log"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".log"); \
- print line; \
- }; \
- printf "\n"; \
- }; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# Restructured Text title.
-am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
-# Solaris 10 'make', and several other traditional 'make' implementations,
-# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
-# by disabling -e (using the XSI extension "set +e") if it's set.
-am__sh_e_setup = case $$- in *e*) set +e;; esac
-# Default flags passed to test drivers.
-am__common_driver_flags = \
- --color-tests "$$am__color_tests" \
- --enable-hard-errors "$$am__enable_hard_errors" \
- --expect-failure "$$am__expect_failure"
-# To be inserted before the command running the test. Creates the
-# directory for the log if needed. Stores in $dir the directory
-# containing $f, in $tst the test, in $log the log. Executes the
-# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
-# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
-# will run the test scripts (or their associated LOG_COMPILER, if
-# thy have one).
-am__check_pre = \
-$(am__sh_e_setup); \
-$(am__vpath_adj_setup) $(am__vpath_adj) \
-$(am__tty_colors); \
-srcdir=$(srcdir); export srcdir; \
-case "$@" in \
- */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
- *) am__odir=.;; \
-esac; \
-test "x$$am__odir" = x"." || test -d "$$am__odir" \
- || $(MKDIR_P) "$$am__odir" || exit $$?; \
-if test -f "./$$f"; then dir=./; \
-elif test -f "$$f"; then dir=; \
-else dir="$(srcdir)/"; fi; \
-tst=$$dir$$f; log='$@'; \
-if test -n '$(DISABLE_HARD_ERRORS)'; then \
- am__enable_hard_errors=no; \
-else \
- am__enable_hard_errors=yes; \
-fi; \
-case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
- am__expect_failure=yes;; \
- *) \
- am__expect_failure=no;; \
-esac; \
-$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
-# A shell command to get the names of the tests scripts with any registered
-# extension removed (i.e., equivalently, the names of the test logs, with
-# the '.log' extension removed). The result is saved in the shell variable
-# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
-# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
-# since that might cause problem with VPATH rewrites for suffix-less tests.
-# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
-am__set_TESTS_bases = \
- bases='$(TEST_LOGS)'; \
- bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
- bases=`echo $$bases`
-AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
-RECHECK_LOGS = $(TEST_LOGS)
-TEST_SUITE_LOG = test-suite.log
-TEST_EXTENSIONS = @EXEEXT@ .test
-am__test_logs1 = $(TESTS:=.log)
-am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
-TEST_LOGS = $(am__test_logs2:.test.log=.log)
-TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/../../build-aux/test-driver
-TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
- $(TEST_LOG_FLAGS)
-am__set_b = \
- case '$@' in \
- */*) \
- case '$*' in \
- */*) b='$*';; \
- *) b=`echo '$@' | sed 's/\.log$$//'`; \
- esac;; \
- *) \
- b='$*';; \
- esac
-am__DIST_COMMON = $(dist_man1_MANS) $(srcdir)/../../am/dist_hook.am \
- $(srcdir)/Makefile.in $(top_srcdir)/../../build-aux/compile \
- $(top_srcdir)/../../build-aux/depcomp \
- $(top_srcdir)/../../build-aux/install-sh \
- $(top_srcdir)/../../build-aux/missing \
- $(top_srcdir)/../../build-aux/test-driver \
- ../../build-aux/ar-lib ../../build-aux/compile \
- ../../build-aux/config.guess ../../build-aux/config.sub \
- ../../build-aux/depcomp ../../build-aux/install-sh \
- ../../build-aux/ltmain.sh ../../build-aux/missing \
- ../../build-aux/texinfo.tex ../../build-aux/ylwrap ChangeLog \
- README
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-distdir = $(PACKAGE)-$(VERSION)
-top_distdir = $(distdir)
-am__remove_distdir = \
- if test -d "$(distdir)"; then \
- find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
- && rm -rf "$(distdir)" \
- || { sleep 5 && rm -rf "$(distdir)"; }; \
- else :; fi
-am__post_remove_distdir = $(am__remove_distdir)
-DIST_ARCHIVES = $(distdir).tar.gz
-GZIP_ENV = --best
-DIST_TARGETS = dist-gzip
-# Exists only to be overridden by the user if desired.
-AM_DISTCHECK_DVI_TARGET = dvi
-distuninstallcheck_listfiles = find . -type f -print
-am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
- | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
-distcleancheck_listfiles = find . -type f -print
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PMX_DEFINES = @PMX_DEFINES@
-PMX_TREE = @PMX_TREE@
-RANLIB = @RANLIB@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-WARNING_CFLAGS = @WARNING_CFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build_alias = @build_alias@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host_alias = @host_alias@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(PMX_TREE) TLpatches
-NEVER_DIST = `find . $(NEVER_NAMES)` $(PMX_TREE)/pmx.log \
- $(PMX_TREE)/pmx.trs
-
-# Files not to be distributed
-NEVER_NAMES = -name .svn $(NEVER_NAMES_SUB)
-NEVER_NAMES_SUB = -o -name .deps -o -name .dirstamp -o -name '*.$(OBJEXT)'
-NEVER_NAMES_LT = -o -name .libs -o -name '*.lo'
-AM_CPPFLAGS = -I$(srcdir)/$(PMX_TREE)/libf2c $(PMX_DEFINES)
-AM_CFLAGS = #$(WARNING_CFLAGS)
-pmxab_SOURCES = @PMX_TREE@/pmxab.c
-scor2prt_SOURCES = @PMX_TREE@/scor2prt.c
-LDADD = libf2c.a
-noinst_LIBRARIES = libf2c.a
-libf2c_a_SOURCES = @PMX_TREE@/libf2c/f2c.h @PMX_TREE@/libf2c/fio.h \
- @PMX_TREE@/libf2c/fmt.h @PMX_TREE@/libf2c/fp.h \
- @PMX_TREE@/libf2c/lio.h @PMX_TREE@/libf2c/rawio.h \
- @PMX_TREE@/libf2c/signal1.h @PMX_TREE@/libf2c/sysdep1.h \
- @PMX_TREE@/libf2c/abort_.c @PMX_TREE@/libf2c/cabs.c \
- @PMX_TREE@/libf2c/derf_.c @PMX_TREE@/libf2c/derfc_.c \
- @PMX_TREE@/libf2c/erf_.c @PMX_TREE@/libf2c/erfc_.c \
- @PMX_TREE@/libf2c/exit_.c @PMX_TREE@/libf2c/f77vers.c \
- @PMX_TREE@/libf2c/getarg_.c @PMX_TREE@/libf2c/getenv_.c \
- @PMX_TREE@/libf2c/i77vers.c @PMX_TREE@/libf2c/iargc_.c \
- @PMX_TREE@/libf2c/main.c @PMX_TREE@/libf2c/s_paus.c \
- @PMX_TREE@/libf2c/s_rnge.c @PMX_TREE@/libf2c/s_stop.c \
- @PMX_TREE@/libf2c/sig_die.c @PMX_TREE@/libf2c/signal_.c \
- @PMX_TREE@/libf2c/system_.c @PMX_TREE@/libf2c/pow_ci.c \
- @PMX_TREE@/libf2c/pow_dd.c @PMX_TREE@/libf2c/pow_di.c \
- @PMX_TREE@/libf2c/pow_hh.c @PMX_TREE@/libf2c/pow_ii.c \
- @PMX_TREE@/libf2c/pow_ri.c @PMX_TREE@/libf2c/pow_zi.c \
- @PMX_TREE@/libf2c/pow_zz.c @PMX_TREE@/libf2c/c_abs.c \
- @PMX_TREE@/libf2c/c_cos.c @PMX_TREE@/libf2c/c_div.c \
- @PMX_TREE@/libf2c/c_exp.c @PMX_TREE@/libf2c/c_log.c \
- @PMX_TREE@/libf2c/c_sin.c @PMX_TREE@/libf2c/c_sqrt.c \
- @PMX_TREE@/libf2c/z_abs.c @PMX_TREE@/libf2c/z_cos.c \
- @PMX_TREE@/libf2c/z_div.c @PMX_TREE@/libf2c/z_exp.c \
- @PMX_TREE@/libf2c/z_log.c @PMX_TREE@/libf2c/z_sin.c \
- @PMX_TREE@/libf2c/z_sqrt.c @PMX_TREE@/libf2c/r_abs.c \
- @PMX_TREE@/libf2c/r_acos.c @PMX_TREE@/libf2c/r_asin.c \
- @PMX_TREE@/libf2c/r_atan.c @PMX_TREE@/libf2c/r_atn2.c \
- @PMX_TREE@/libf2c/r_cnjg.c @PMX_TREE@/libf2c/r_cos.c \
- @PMX_TREE@/libf2c/r_cosh.c @PMX_TREE@/libf2c/r_dim.c \
- @PMX_TREE@/libf2c/r_exp.c @PMX_TREE@/libf2c/r_imag.c \
- @PMX_TREE@/libf2c/r_int.c @PMX_TREE@/libf2c/r_lg10.c \
- @PMX_TREE@/libf2c/r_log.c @PMX_TREE@/libf2c/r_mod.c \
- @PMX_TREE@/libf2c/r_nint.c @PMX_TREE@/libf2c/r_sign.c \
- @PMX_TREE@/libf2c/r_sin.c @PMX_TREE@/libf2c/r_sinh.c \
- @PMX_TREE@/libf2c/r_sqrt.c @PMX_TREE@/libf2c/r_tan.c \
- @PMX_TREE@/libf2c/r_tanh.c @PMX_TREE@/libf2c/d_abs.c \
- @PMX_TREE@/libf2c/d_acos.c @PMX_TREE@/libf2c/d_asin.c \
- @PMX_TREE@/libf2c/d_atan.c @PMX_TREE@/libf2c/d_atn2.c \
- @PMX_TREE@/libf2c/d_cnjg.c @PMX_TREE@/libf2c/d_cos.c \
- @PMX_TREE@/libf2c/d_cosh.c @PMX_TREE@/libf2c/d_dim.c \
- @PMX_TREE@/libf2c/d_exp.c @PMX_TREE@/libf2c/d_imag.c \
- @PMX_TREE@/libf2c/d_int.c @PMX_TREE@/libf2c/d_lg10.c \
- @PMX_TREE@/libf2c/d_log.c @PMX_TREE@/libf2c/d_mod.c \
- @PMX_TREE@/libf2c/d_nint.c @PMX_TREE@/libf2c/d_prod.c \
- @PMX_TREE@/libf2c/d_sign.c @PMX_TREE@/libf2c/d_sin.c \
- @PMX_TREE@/libf2c/d_sinh.c @PMX_TREE@/libf2c/d_sqrt.c \
- @PMX_TREE@/libf2c/d_tan.c @PMX_TREE@/libf2c/d_tanh.c \
- @PMX_TREE@/libf2c/i_abs.c @PMX_TREE@/libf2c/i_dim.c \
- @PMX_TREE@/libf2c/i_dnnt.c @PMX_TREE@/libf2c/i_indx.c \
- @PMX_TREE@/libf2c/i_len.c @PMX_TREE@/libf2c/i_mod.c \
- @PMX_TREE@/libf2c/i_nint.c @PMX_TREE@/libf2c/i_sign.c \
- @PMX_TREE@/libf2c/lbitbits.c @PMX_TREE@/libf2c/lbitshft.c \
- @PMX_TREE@/libf2c/h_abs.c @PMX_TREE@/libf2c/h_dim.c \
- @PMX_TREE@/libf2c/h_dnnt.c @PMX_TREE@/libf2c/h_indx.c \
- @PMX_TREE@/libf2c/h_len.c @PMX_TREE@/libf2c/h_mod.c \
- @PMX_TREE@/libf2c/h_nint.c @PMX_TREE@/libf2c/h_sign.c \
- @PMX_TREE@/libf2c/hl_ge.c @PMX_TREE@/libf2c/hl_gt.c \
- @PMX_TREE@/libf2c/hl_le.c @PMX_TREE@/libf2c/hl_lt.c \
- @PMX_TREE@/libf2c/l_ge.c @PMX_TREE@/libf2c/l_gt.c \
- @PMX_TREE@/libf2c/l_le.c @PMX_TREE@/libf2c/l_lt.c \
- @PMX_TREE@/libf2c/ef1asc_.c @PMX_TREE@/libf2c/ef1cmc_.c \
- @PMX_TREE@/libf2c/f77_aloc.c @PMX_TREE@/libf2c/s_cat.c \
- @PMX_TREE@/libf2c/s_cmp.c @PMX_TREE@/libf2c/s_copy.c \
- @PMX_TREE@/libf2c/backspac.c @PMX_TREE@/libf2c/close.c \
- @PMX_TREE@/libf2c/dfe.c @PMX_TREE@/libf2c/dolio.c \
- @PMX_TREE@/libf2c/due.c @PMX_TREE@/libf2c/endfile.c \
- @PMX_TREE@/libf2c/err.c @PMX_TREE@/libf2c/fmt.c \
- @PMX_TREE@/libf2c/fmtlib.c @PMX_TREE@/libf2c/ftell_.c \
- @PMX_TREE@/libf2c/iio.c @PMX_TREE@/libf2c/ilnw.c \
- @PMX_TREE@/libf2c/inquire.c @PMX_TREE@/libf2c/lread.c \
- @PMX_TREE@/libf2c/lwrite.c @PMX_TREE@/libf2c/open.c \
- @PMX_TREE@/libf2c/rdfmt.c @PMX_TREE@/libf2c/rewind.c \
- @PMX_TREE@/libf2c/rsfe.c @PMX_TREE@/libf2c/rsli.c \
- @PMX_TREE@/libf2c/rsne.c @PMX_TREE@/libf2c/sfe.c \
- @PMX_TREE@/libf2c/sue.c @PMX_TREE@/libf2c/typesize.c \
- @PMX_TREE@/libf2c/uio.c @PMX_TREE@/libf2c/util.c \
- @PMX_TREE@/libf2c/wref.c @PMX_TREE@/libf2c/wrtfmt.c \
- @PMX_TREE@/libf2c/wsfe.c @PMX_TREE@/libf2c/wsle.c \
- @PMX_TREE@/libf2c/wsne.c @PMX_TREE@/libf2c/xwsne.c \
- @PMX_TREE@/libf2c/dtime_.c @PMX_TREE@/libf2c/etime_.c \
- $(am__append_1)
-EXTRA_libf2c_a_SOURCES = @PMX_TREE@/libf2c/uninit.c \
- @PMX_TREE@/libf2c/ftell64_.c @PMX_TREE@/libf2c/pow_qq.c \
- @PMX_TREE@/libf2c/qbitbits.c @PMX_TREE@/libf2c/qbitshft.c \
- @PMX_TREE@/libf2c/signbit.c
-dist_man1_MANS = pmxab.1 scor2prt.1
-AM_TESTS_ENVIRONMENT = test_src=$(srcdir)/$(PMX_TREE)/tests; export test_src;
-#
-TESTS = $(PMX_TREE)/pmx.test
-DISTCLEANFILES = barsant* pmxaerr.dat
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .log .o .obj .test .test$(EXEEXT) .trs
-am--refresh: Makefile
- @:
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../am/dist_hook.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
- $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- echo ' $(SHELL) ./config.status'; \
- $(SHELL) ./config.status;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
- esac;
-$(srcdir)/../../am/dist_hook.am $(am__empty):
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- $(SHELL) ./config.status --recheck
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- $(am__cd) $(srcdir) && $(AUTOCONF)
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
-$(am__aclocal_m4_deps):
-install-binPROGRAMS: $(bin_PROGRAMS)
- @$(NORMAL_INSTALL)
- @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
- fi; \
- for p in $$list; do echo "$$p $$p"; done | \
- sed 's/$(EXEEXT)$$//' | \
- while read p p1; do if test -f $$p \
- ; then echo "$$p"; echo "$$p"; else :; fi; \
- done | \
- sed -e 'p;s,.*/,,;n;h' \
- -e 's|.*|.|' \
- -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
- sed 'N;N;N;s,\n, ,g' | \
- $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
- { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
- if ($$2 == $$4) files[d] = files[d] " " $$1; \
- else { print "f", $$3 "/" $$4, $$1; } } \
- END { for (d in files) print "f", d, files[d] }' | \
- while read type dir files; do \
- if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
- test -z "$$files" || { \
- echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
- $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
- } \
- ; done
-
-uninstall-binPROGRAMS:
- @$(NORMAL_UNINSTALL)
- @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
- files=`for p in $$list; do echo "$$p"; done | \
- sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
- -e 's/$$/$(EXEEXT)/' \
- `; \
- test -n "$$list" || exit 0; \
- echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
- cd "$(DESTDIR)$(bindir)" && rm -f $$files
-
-clean-binPROGRAMS:
- -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-@PMX_TREE@/libf2c/$(am__dirstamp):
- @$(MKDIR_P) @PMX_TREE@/libf2c
- @: > @PMX_TREE@/libf2c/$(am__dirstamp)
-@PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) @PMX_TREE@/libf2c/$(DEPDIR)
- @: > @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/abort_.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/cabs.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/derf_.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/derfc_.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/erf_.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/erfc_.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/exit_.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/f77vers.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/getarg_.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/getenv_.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/i77vers.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/iargc_.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/main.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/s_paus.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/s_rnge.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/s_stop.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/sig_die.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/signal_.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/system_.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/pow_ci.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/pow_dd.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/pow_di.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/pow_hh.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/pow_ii.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/pow_ri.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/pow_zi.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/pow_zz.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/c_abs.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/c_cos.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/c_div.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/c_exp.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/c_log.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/c_sin.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/c_sqrt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/z_abs.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/z_cos.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/z_div.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/z_exp.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/z_log.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/z_sin.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/z_sqrt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_abs.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_acos.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_asin.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_atan.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_atn2.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_cnjg.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_cos.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_cosh.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_dim.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_exp.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_imag.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_int.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_lg10.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_log.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_mod.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_nint.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_sign.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_sin.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_sinh.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_sqrt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_tan.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/r_tanh.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_abs.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_acos.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_asin.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_atan.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_atn2.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_cnjg.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_cos.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_cosh.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_dim.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_exp.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_imag.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_int.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_lg10.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_log.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_mod.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_nint.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_prod.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_sign.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_sin.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_sinh.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_sqrt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_tan.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/d_tanh.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/i_abs.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/i_dim.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/i_dnnt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/i_indx.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/i_len.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/i_mod.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/i_nint.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/i_sign.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/lbitbits.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/lbitshft.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/h_abs.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/h_dim.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/h_dnnt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/h_indx.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/h_len.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/h_mod.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/h_nint.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/h_sign.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/hl_ge.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/hl_gt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/hl_le.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/hl_lt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/l_ge.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/l_gt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/l_le.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/l_lt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/ef1asc_.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/ef1cmc_.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/f77_aloc.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/s_cat.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/s_cmp.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/s_copy.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/backspac.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/close.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/dfe.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/dolio.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/due.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/endfile.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/err.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/fmt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/fmtlib.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/ftell_.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/iio.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/ilnw.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/inquire.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/lread.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/lwrite.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/open.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/rdfmt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/rewind.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/rsfe.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/rsli.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/rsne.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/sfe.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/sue.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/typesize.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/uio.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/util.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/wref.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/wrtfmt.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/wsfe.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/wsle.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/wsne.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/xwsne.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/dtime_.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/etime_.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/$(am__dirstamp):
- @$(MKDIR_P) @PMX_TREE@
- @: > @PMX_TREE@/$(am__dirstamp)
-@PMX_TREE@/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) @PMX_TREE@/$(DEPDIR)
- @: > @PMX_TREE@/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/w32getc.$(OBJEXT): @PMX_TREE@/$(am__dirstamp) \
- @PMX_TREE@/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/uninit.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/ftell64_.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/pow_qq.$(OBJEXT): @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/qbitbits.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/qbitshft.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-@PMX_TREE@/libf2c/signbit.$(OBJEXT): \
- @PMX_TREE@/libf2c/$(am__dirstamp) \
- @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
-
-libf2c.a: $(libf2c_a_OBJECTS) $(libf2c_a_DEPENDENCIES) $(EXTRA_libf2c_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libf2c.a
- $(AM_V_AR)$(libf2c_a_AR) libf2c.a $(libf2c_a_OBJECTS) $(libf2c_a_LIBADD)
- $(AM_V_at)$(RANLIB) libf2c.a
-@PMX_TREE@/pmxab.$(OBJEXT): @PMX_TREE@/$(am__dirstamp) \
- @PMX_TREE@/$(DEPDIR)/$(am__dirstamp)
-
-pmxab$(EXEEXT): $(pmxab_OBJECTS) $(pmxab_DEPENDENCIES) $(EXTRA_pmxab_DEPENDENCIES)
- @rm -f pmxab$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(pmxab_OBJECTS) $(pmxab_LDADD) $(LIBS)
-@PMX_TREE@/scor2prt.$(OBJEXT): @PMX_TREE@/$(am__dirstamp) \
- @PMX_TREE@/$(DEPDIR)/$(am__dirstamp)
-
-scor2prt$(EXEEXT): $(scor2prt_OBJECTS) $(scor2prt_DEPENDENCIES) $(EXTRA_scor2prt_DEPENDENCIES)
- @rm -f scor2prt$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(scor2prt_OBJECTS) $(scor2prt_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
- -rm -f @PMX_TREE@/*.$(OBJEXT)
- -rm -f @PMX_TREE@/libf2c/*.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/$(DEPDIR)/pmxab.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/$(DEPDIR)/scor2prt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/$(DEPDIR)/w32getc.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/abort_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/backspac.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/c_abs.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/c_cos.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/c_div.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/c_exp.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/c_log.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/c_sin.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/c_sqrt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/cabs.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/close.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_abs.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_acos.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_asin.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_atan.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_atn2.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_cnjg.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_cos.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_cosh.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_dim.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_exp.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_imag.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_int.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_lg10.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_log.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_mod.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_nint.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_prod.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_sign.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_sin.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_sinh.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_sqrt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_tan.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/d_tanh.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/derf_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/derfc_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/dfe.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/dolio.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/dtime_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/due.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/ef1asc_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/ef1cmc_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/endfile.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/erf_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/erfc_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/err.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/etime_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/exit_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/f77_aloc.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/f77vers.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/fmt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/fmtlib.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/ftell64_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/ftell_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/getarg_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/getenv_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/h_abs.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/h_dim.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/h_dnnt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/h_indx.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/h_len.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/h_mod.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/h_nint.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/h_sign.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/hl_ge.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/hl_gt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/hl_le.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/hl_lt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/i77vers.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/i_abs.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/i_dim.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/i_dnnt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/i_indx.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/i_len.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/i_mod.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/i_nint.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/i_sign.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/iargc_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/iio.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/ilnw.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/inquire.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/l_ge.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/l_gt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/l_le.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/l_lt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/lbitbits.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/lbitshft.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/lread.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/lwrite.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/main.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/open.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/pow_ci.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/pow_dd.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/pow_di.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/pow_hh.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/pow_ii.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/pow_qq.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/pow_ri.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/pow_zi.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/pow_zz.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/qbitbits.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/qbitshft.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_abs.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_acos.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_asin.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_atan.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_atn2.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_cnjg.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_cos.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_cosh.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_dim.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_exp.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_imag.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_int.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_lg10.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_log.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_mod.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_nint.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_sign.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_sin.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_sinh.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_sqrt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_tan.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/r_tanh.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/rdfmt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/rewind.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/rsfe.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/rsli.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/rsne.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/s_cat.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/s_cmp.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/s_copy.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/s_paus.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/s_rnge.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/s_stop.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/sfe.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/sig_die.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/signal_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/signbit.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/sue.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/system_.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/typesize.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/uio.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/uninit.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/util.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/wref.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/wrtfmt.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/wsfe.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/wsle.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/wsne.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/xwsne.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/z_abs.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/z_cos.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/z_div.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/z_exp.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/z_log.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/z_sin.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@@PMX_TREE@/libf2c/$(DEPDIR)/z_sqrt.Po@am__quote@ # am--include-marker
-
-$(am__depfiles_remade):
- @$(MKDIR_P) $(@D)
- @echo '# dummy' >$@-t && $(am__mv) $@-t $@
-
-am--depfiles: $(am__depfiles_remade)
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-man1: $(dist_man1_MANS)
- @$(NORMAL_INSTALL)
- @list1='$(dist_man1_MANS)'; \
- list2=''; \
- test -n "$(man1dir)" \
- && test -n "`echo $$list1$$list2`" \
- || exit 0; \
- echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
- { for i in $$list1; do echo "$$i"; done; \
- if test -n "$$list2"; then \
- for i in $$list2; do echo "$$i"; done \
- | sed -n '/\.1[a-z]*$$/p'; \
- fi; \
- } | while read p; do \
- if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; echo "$$p"; \
- done | \
- sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
- -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
- sed 'N;N;s,\n, ,g' | { \
- list=; while read file base inst; do \
- if test "$$base" = "$$inst"; then list="$$list $$file"; else \
- echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
- $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
- fi; \
- done; \
- for i in $$list; do echo "$$i"; done | $(am__base_list) | \
- while read files; do \
- test -z "$$files" || { \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
- done; }
-
-uninstall-man1:
- @$(NORMAL_UNINSTALL)
- @list='$(dist_man1_MANS)'; test -n "$(man1dir)" || exit 0; \
- files=`{ for i in $$list; do echo "$$i"; done; \
- } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
- -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
- dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscope: cscope.files
- test ! -s cscope.files \
- || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
-clean-cscope:
- -rm -f cscope.files
-cscope.files: clean-cscope cscopelist
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
- -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
-
-# Recover from deleted '.trs' file; this should ensure that
-# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
-# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
-# to avoid problems with "make -n".
-.log.trs:
- rm -f $< $@
- $(MAKE) $(AM_MAKEFLAGS) $<
-
-# Leading 'am--fnord' is there to ensure the list of targets does not
-# expand to empty, as could happen e.g. with make check TESTS=''.
-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
-am--force-recheck:
- @:
-
-$(TEST_SUITE_LOG): $(TEST_LOGS)
- @$(am__set_TESTS_bases); \
- am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
- redo_bases=`for i in $$bases; do \
- am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
- done`; \
- if test -n "$$redo_bases"; then \
- redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
- redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
- if $(am__make_dryrun); then :; else \
- rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
- fi; \
- fi; \
- if test -n "$$am__remaking_logs"; then \
- echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
- "recursion detected" >&2; \
- elif test -n "$$redo_logs"; then \
- am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
- fi; \
- if $(am__make_dryrun); then :; else \
- st=0; \
- errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
- for i in $$redo_bases; do \
- test -f $$i.trs && test -r $$i.trs \
- || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
- test -f $$i.log && test -r $$i.log \
- || { echo "$$errmsg $$i.log" >&2; st=1; }; \
- done; \
- test $$st -eq 0 || exit 1; \
- fi
- @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
- ws='[ ]'; \
- results=`for b in $$bases; do echo $$b.trs; done`; \
- test -n "$$results" || results=/dev/null; \
- all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
- pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
- fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
- skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
- xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
- xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
- error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
- if test `expr $$fail + $$xpass + $$error` -eq 0; then \
- success=true; \
- else \
- success=false; \
- fi; \
- br='==================='; br=$$br$$br$$br$$br; \
- result_count () \
- { \
- if test x"$$1" = x"--maybe-color"; then \
- maybe_colorize=yes; \
- elif test x"$$1" = x"--no-color"; then \
- maybe_colorize=no; \
- else \
- echo "$@: invalid 'result_count' usage" >&2; exit 4; \
- fi; \
- shift; \
- desc=$$1 count=$$2; \
- if test $$maybe_colorize = yes && test $$count -gt 0; then \
- color_start=$$3 color_end=$$std; \
- else \
- color_start= color_end=; \
- fi; \
- echo "$${color_start}# $$desc $$count$${color_end}"; \
- }; \
- create_testsuite_report () \
- { \
- result_count $$1 "TOTAL:" $$all "$$brg"; \
- result_count $$1 "PASS: " $$pass "$$grn"; \
- result_count $$1 "SKIP: " $$skip "$$blu"; \
- result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
- result_count $$1 "FAIL: " $$fail "$$red"; \
- result_count $$1 "XPASS:" $$xpass "$$red"; \
- result_count $$1 "ERROR:" $$error "$$mgn"; \
- }; \
- { \
- echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
- $(am__rst_title); \
- create_testsuite_report --no-color; \
- echo; \
- echo ".. contents:: :depth: 2"; \
- echo; \
- for b in $$bases; do echo $$b; done \
- | $(am__create_global_log); \
- } >$(TEST_SUITE_LOG).tmp || exit 1; \
- mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
- if $$success; then \
- col="$$grn"; \
- else \
- col="$$red"; \
- test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
- fi; \
- echo "$${col}$$br$${std}"; \
- echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
- echo "$${col}$$br$${std}"; \
- create_testsuite_report --maybe-color; \
- echo "$$col$$br$$std"; \
- if $$success; then :; else \
- echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
- if test -n "$(PACKAGE_BUGREPORT)"; then \
- echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
- fi; \
- echo "$$col$$br$$std"; \
- fi; \
- $$success || exit 1
-
-check-TESTS:
- @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
- @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- trs_list=`for i in $$bases; do echo $$i.trs; done`; \
- log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
- exit $$?;
-recheck: all
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- bases=`for i in $$bases; do echo $$i; done \
- | $(am__list_recheck_tests)` || exit 1; \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- log_list=`echo $$log_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
- am__force_recheck=am--force-recheck \
- TEST_LOGS="$$log_list"; \
- exit $$?
-.test.log:
- @p='$<'; \
- $(am__set_b); \
- $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-@am__EXEEXT_TRUE@.test$(EXEEXT).log:
-@am__EXEEXT_TRUE@ @p='$<'; \
-@am__EXEEXT_TRUE@ $(am__set_b); \
-@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
-@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
-@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
-@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
-
-distdir: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) distdir-am
-
-distdir-am: $(DISTFILES)
- $(am__remove_distdir)
- test -d "$(distdir)" || mkdir "$(distdir)"
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$(top_distdir)" distdir="$(distdir)" \
- dist-hook
- -test -n "$(am__skip_mode_fix)" \
- || find "$(distdir)" -type d ! -perm -755 \
- -exec chmod u+rwx,go+rx {} \; -o \
- ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
- || chmod -R a+r "$(distdir)"
-dist-gzip: distdir
- tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
- $(am__post_remove_distdir)
-
-dist-bzip2: distdir
- tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
- $(am__post_remove_distdir)
-
-dist-lzip: distdir
- tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
- $(am__post_remove_distdir)
-
-dist-xz: distdir
- tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
- $(am__post_remove_distdir)
-
-dist-zstd: distdir
- tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
- $(am__post_remove_distdir)
-
-dist-tarZ: distdir
- @echo WARNING: "Support for distribution archives compressed with" \
- "legacy program 'compress' is deprecated." >&2
- @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
- tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
- $(am__post_remove_distdir)
-
-dist-shar: distdir
- @echo WARNING: "Support for shar distribution archives is" \
- "deprecated." >&2
- @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
- shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
- $(am__post_remove_distdir)
-
-dist-zip: distdir
- -rm -f $(distdir).zip
- zip -rq $(distdir).zip $(distdir)
- $(am__post_remove_distdir)
-
-dist dist-all:
- $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
- $(am__post_remove_distdir)
-
-# This target untars the dist file and tries a VPATH configuration. Then
-# it guarantees that the distribution is self-contained by making another
-# tarfile.
-distcheck: dist
- case '$(DIST_ARCHIVES)' in \
- *.tar.gz*) \
- eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
- *.tar.bz2*) \
- bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
- *.tar.lz*) \
- lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
- *.tar.xz*) \
- xz -dc $(distdir).tar.xz | $(am__untar) ;;\
- *.tar.Z*) \
- uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
- *.shar.gz*) \
- eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
- *.zip*) \
- unzip $(distdir).zip ;;\
- *.tar.zst*) \
- zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
- esac
- chmod -R a-w $(distdir)
- chmod u+w $(distdir)
- mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
- chmod a-w $(distdir)
- test -d $(distdir)/_build || exit 0; \
- dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
- && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
- && am__cwd=`pwd` \
- && $(am__cd) $(distdir)/_build/sub \
- && ../../configure \
- $(AM_DISTCHECK_CONFIGURE_FLAGS) \
- $(DISTCHECK_CONFIGURE_FLAGS) \
- --srcdir=../.. --prefix="$$dc_install_base" \
- && $(MAKE) $(AM_MAKEFLAGS) \
- && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
- && $(MAKE) $(AM_MAKEFLAGS) check \
- && $(MAKE) $(AM_MAKEFLAGS) install \
- && $(MAKE) $(AM_MAKEFLAGS) installcheck \
- && $(MAKE) $(AM_MAKEFLAGS) uninstall \
- && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
- distuninstallcheck \
- && chmod -R a-w "$$dc_install_base" \
- && ({ \
- (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
- distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
- } || { rm -rf "$$dc_destdir"; exit 1; }) \
- && rm -rf "$$dc_destdir" \
- && $(MAKE) $(AM_MAKEFLAGS) dist \
- && rm -rf $(DIST_ARCHIVES) \
- && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
- && cd "$$am__cwd" \
- || exit 1
- $(am__post_remove_distdir)
- @(echo "$(distdir) archives ready for distribution: "; \
- list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
- sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
-distuninstallcheck:
- @test -n '$(distuninstallcheck_dir)' || { \
- echo 'ERROR: trying to run $@ with an empty' \
- '$$(distuninstallcheck_dir)' >&2; \
- exit 1; \
- }; \
- $(am__cd) '$(distuninstallcheck_dir)' || { \
- echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
- exit 1; \
- }; \
- test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
- || { echo "ERROR: files left after uninstall:" ; \
- if test -n "$(DESTDIR)"; then \
- echo " (check DESTDIR support)"; \
- fi ; \
- $(distuninstallcheck_listfiles) ; \
- exit 1; } >&2
-distcleancheck: distclean
- @if test '$(srcdir)' = . ; then \
- echo "ERROR: distcleancheck can only run from a VPATH build" ; \
- exit 1 ; \
- fi
- @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
- || { echo "ERROR: files left in build directory after distclean:" ; \
- $(distcleancheck_listfiles) ; \
- exit 1; } >&2
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(PROGRAMS) $(LIBRARIES) $(MANS)
-installdirs:
- for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
- -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
- -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
- -rm -f @PMX_TREE@/$(DEPDIR)/$(am__dirstamp)
- -rm -f @PMX_TREE@/$(am__dirstamp)
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/$(am__dirstamp)
- -rm -f @PMX_TREE@/libf2c/$(am__dirstamp)
- -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-binPROGRAMS clean-generic clean-noinstLIBRARIES \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -f @PMX_TREE@/$(DEPDIR)/pmxab.Po
- -rm -f @PMX_TREE@/$(DEPDIR)/scor2prt.Po
- -rm -f @PMX_TREE@/$(DEPDIR)/w32getc.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/abort_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/backspac.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_cos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_div.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_exp.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_log.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_sin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_sqrt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/cabs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/close.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_acos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_asin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_atan.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_atn2.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_cnjg.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_cos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_cosh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_dim.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_exp.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_imag.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_int.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_lg10.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_log.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_mod.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_nint.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_prod.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_sign.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_sin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_sinh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_sqrt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_tan.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_tanh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/derf_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/derfc_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/dfe.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/dolio.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/dtime_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/due.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/ef1asc_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/ef1cmc_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/endfile.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/erf_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/erfc_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/err.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/etime_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/exit_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/f77_aloc.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/f77vers.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/fmt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/fmtlib.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/ftell64_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/ftell_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/getarg_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/getenv_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_dim.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_dnnt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_indx.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_len.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_mod.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_nint.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_sign.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/hl_ge.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/hl_gt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/hl_le.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/hl_lt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i77vers.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_dim.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_dnnt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_indx.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_len.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_mod.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_nint.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_sign.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/iargc_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/iio.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/ilnw.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/inquire.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/l_ge.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/l_gt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/l_le.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/l_lt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/lbitbits.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/lbitshft.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/lread.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/lwrite.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/main.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/open.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_ci.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_dd.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_di.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_hh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_ii.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_qq.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_ri.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_zi.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_zz.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/qbitbits.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/qbitshft.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_acos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_asin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_atan.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_atn2.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_cnjg.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_cos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_cosh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_dim.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_exp.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_imag.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_int.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_lg10.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_log.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_mod.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_nint.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_sign.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_sin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_sinh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_sqrt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_tan.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_tanh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/rdfmt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/rewind.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/rsfe.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/rsli.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/rsne.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_cat.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_cmp.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_copy.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_paus.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_rnge.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_stop.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/sfe.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/sig_die.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/signal_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/signbit.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/sue.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/system_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/typesize.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/uio.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/uninit.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/util.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/wref.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/wrtfmt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/wsfe.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/wsle.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/wsne.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/xwsne.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_cos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_div.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_exp.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_log.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_sin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_sqrt.Po
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-man
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-binPROGRAMS
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man: install-man1
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -rf $(top_srcdir)/autom4te.cache
- -rm -f @PMX_TREE@/$(DEPDIR)/pmxab.Po
- -rm -f @PMX_TREE@/$(DEPDIR)/scor2prt.Po
- -rm -f @PMX_TREE@/$(DEPDIR)/w32getc.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/abort_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/backspac.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_cos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_div.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_exp.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_log.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_sin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/c_sqrt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/cabs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/close.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_acos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_asin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_atan.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_atn2.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_cnjg.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_cos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_cosh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_dim.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_exp.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_imag.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_int.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_lg10.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_log.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_mod.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_nint.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_prod.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_sign.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_sin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_sinh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_sqrt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_tan.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/d_tanh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/derf_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/derfc_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/dfe.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/dolio.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/dtime_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/due.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/ef1asc_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/ef1cmc_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/endfile.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/erf_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/erfc_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/err.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/etime_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/exit_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/f77_aloc.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/f77vers.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/fmt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/fmtlib.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/ftell64_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/ftell_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/getarg_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/getenv_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_dim.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_dnnt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_indx.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_len.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_mod.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_nint.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/h_sign.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/hl_ge.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/hl_gt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/hl_le.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/hl_lt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i77vers.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_dim.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_dnnt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_indx.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_len.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_mod.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_nint.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/i_sign.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/iargc_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/iio.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/ilnw.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/inquire.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/l_ge.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/l_gt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/l_le.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/l_lt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/lbitbits.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/lbitshft.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/lread.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/lwrite.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/main.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/open.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_ci.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_dd.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_di.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_hh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_ii.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_qq.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_ri.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_zi.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/pow_zz.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/qbitbits.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/qbitshft.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_acos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_asin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_atan.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_atn2.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_cnjg.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_cos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_cosh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_dim.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_exp.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_imag.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_int.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_lg10.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_log.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_mod.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_nint.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_sign.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_sin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_sinh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_sqrt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_tan.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/r_tanh.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/rdfmt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/rewind.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/rsfe.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/rsli.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/rsne.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_cat.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_cmp.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_copy.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_paus.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_rnge.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/s_stop.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/sfe.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/sig_die.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/signal_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/signbit.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/sue.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/system_.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/typesize.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/uio.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/uninit.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/util.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/wref.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/wrtfmt.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/wsfe.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/wsle.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/wsne.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/xwsne.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_abs.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_cos.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_div.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_exp.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_log.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_sin.Po
- -rm -f @PMX_TREE@/libf2c/$(DEPDIR)/z_sqrt.Po
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-binPROGRAMS uninstall-man
-
-uninstall-man: uninstall-man1
-
-.MAKE: check-am install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
- check-TESTS check-am clean clean-binPROGRAMS clean-cscope \
- clean-generic clean-noinstLIBRARIES cscope cscopelist-am ctags \
- ctags-am dist dist-all dist-bzip2 dist-gzip dist-hook \
- dist-lzip dist-shar dist-tarZ dist-xz dist-zip dist-zstd \
- distcheck distclean distclean-compile distclean-generic \
- distclean-tags distcleancheck distdir distuninstallcheck dvi \
- dvi-am html html-am info info-am install install-am \
- install-binPROGRAMS install-data install-data-am install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
- install-html-am install-info install-info-am install-man \
- install-man1 install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
- ps ps-am recheck tags tags-am uninstall uninstall-am \
- uninstall-binPROGRAMS uninstall-man uninstall-man1
-
-.PRECIOUS: Makefile
-
-dist-hook:
- cd "$(distdir)" && rm -rf $(NEVER_DIST)
-$(PMX_TREE)/pmx.log: pmxab$(EXEEXT) scor2prt$(EXEEXT)
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/Build/source/utils/pmx/README b/Build/source/utils/pmx/README
deleted file mode 100644
index dd18f6d4796..00000000000
--- a/Build/source/utils/pmx/README
+++ /dev/null
@@ -1,17 +0,0 @@
-Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
-You may freely use, modify and/or distribute this file.
-
-In order to build pmx we don't need the complete libf2c library.
-Specifically, we can omit uninit.c and with it the necessity to build and
-run arithchk in order to create the arith.h header file (which would make
-cross compilation impossible).
-
-From all the preprocessor defines arithchk could generate we only might need
-'VAX' (most probably irrelevant) and 'NO_LONG_LONG' which can be handled by
-the configure script. Thus an empty file arith.h suffices.
-
-================
-
-Actually, compiling neither signbit.c nor uninit.c the file arith.h is not
-used at all and can bbe omitted.
-
diff --git a/Build/source/utils/pmx/TLpatches/ChangeLog b/Build/source/utils/pmx/TLpatches/ChangeLog
deleted file mode 100644
index 6fa8be3a67b..00000000000
--- a/Build/source/utils/pmx/TLpatches/ChangeLog
+++ /dev/null
@@ -1,100 +0,0 @@
-2021-01-30 Akira Kakuto <kakuto@w32tex.org>
-
- * import pmx-2.9.4a.
-
-2020-03-19 Karl Berry <karl@tug.org>
-
- * import updated pmx-2.9.4 (no change in version number, but new
- date, with one bug fix).
-
-2020-02-07 Akira Kakuto <kakuto@w32tex.org>
-
- * import pmx-2.9.4.
-
-2018-02-14 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
-
- * import pmx-2.8.4.
-
-2016-12-09 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
-
- * import pmx-2.7.6.
-
-2016-02-10 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
-
- * import pmx-2.7.3.
- * patch-01-ptr-to-int: Removed. Now included upstream.
-
-2013-11-25 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- Updated pmx-2.7.0 source tree from a modifies version of
- pmx-2.7.0.tar.gz (dated 2014-11-22) again from:
- http://www.ctan.org/tex-archive/support/pmx/
-
- * patch-01-common (removed): Now included upstream.
-
- * patch-01-ptr-to-int (new): Avoid cast from pointer to integer
- of different size.
-
-2013-04-12 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * patch-01-common: Make sure f2c can convert pmx270.for, i.e.,
- avoid name conflict between formal subroutine parameter and
- common block member. From Bob Tennent <rdt@cs.queensu.ca>.
-
-2013-04-11 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- Imported pmx-2.7.0 source tree from:
- http://www.ctan.org/tex-archive/support/pmx/
-
- * patch-01-common (new): Fix inconsistent common blocks.
-
-2013-03-14 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- Imported pmx-2.6.21 source tree from:
- http://www.ctan.org/tex-archive/support/pmx/
-
-2013-01-18 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- Imported pmx-2.6.19 source tree from:
- http://www.ctan.org/tex-archive/support/pmx/
- * patch-01-binary, patch-03-DOS-line-endings,
- patch-04-MSVC-complex, patch-05-FreeBSD-off_t, patch-06-WIN32,
- patch-07-test (removed): Obsolete.
-
-2012-07-12 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * patch-07-test (new): Use the same test script in TeX Live and
- for the stand-alone version.
-
-2012-07-11 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * patch-06-WIN32 (new): Build fix for MSVC (from W32TeX).
- We pass -DMSDOS to MSVC or -DUSE_CLOCK to the MinGW compiler.
-
-2012-05-19 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- Imported pmx-2.6.18 source tree from:
- http://www.ctan.org/tex-archive/support/pmx/
- * patch-02-bugfix (removed): Obsolete.
- * patch-01-binary, patch-03-DOS-line-endings,
- patch-04-MSVC-complex, patch-05-FreeBSD-off_t: Adapted.
-
-2012-04-01 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * patch-05-FreeBSD-off_t (new): Build fix for FreeBSD.
- Mail from Nikola Lecic [tlbuild] 21 Apr 2012 20:40:21.
-
-2012-04-01 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * patch-03-DOS-line-endings, patch-04-MSVC-complex (new): WIN32.
- Mail from Akira, 31 Mar 2012 21:36:26.
-
-2012-03-28 Peter Breitenlohner <peb@mppmu.mpg.de>
-
- * patch-01-binary (new): Always use binary mode for WIN32.
- Mail from Akira, 29 Mar 2012 23:50:53.
-
- * patch-02-bugfix (new): Bug fix, should be fixed in Fortran.
-
-Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
-You may freely use, modify and/or distribute this file.
diff --git a/Build/source/utils/pmx/TLpatches/TL-Changes b/Build/source/utils/pmx/TLpatches/TL-Changes
deleted file mode 100644
index 713f61b08c5..00000000000
--- a/Build/source/utils/pmx/TLpatches/TL-Changes
+++ /dev/null
@@ -1,6 +0,0 @@
-Changes applied to the pmx-2.9.4a tree as obtained from:
- http://www.ctan.org/tex-archive/support/pmx/
-
-Remove:
- Makefile.in aclocal.m4 arith.h configure depcomp install-sh
- missing test-driver
diff --git a/Build/source/utils/pmx/ac/withenable.ac b/Build/source/utils/pmx/ac/withenable.ac
deleted file mode 100644
index a77f24e150d..00000000000
--- a/Build/source/utils/pmx/ac/withenable.ac
+++ /dev/null
@@ -1,7 +0,0 @@
-## utils/pmx/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory utils/pmx/
-dnl
-dnl Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
-dnl You may freely use, modify and/or distribute this file.
-dnl
-## configure options and TL libraries required for pmx
-KPSE_ENABLE_PROG([pmx])
diff --git a/Build/source/utils/pmx/aclocal.m4 b/Build/source/utils/pmx/aclocal.m4
deleted file mode 100644
index 1b140e27a4f..00000000000
--- a/Build/source/utils/pmx/aclocal.m4
+++ /dev/null
@@ -1,1171 +0,0 @@
-# generated automatically by aclocal 1.16.3 -*- Autoconf -*-
-
-# Copyright (C) 1996-2020 Free Software Foundation, Inc.
-
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
-m4_ifndef([AC_AUTOCONF_VERSION],
- [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
-m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
-[m4_warning([this file was generated for autoconf 2.69.
-You have another version of autoconf. It may work, but is not guaranteed to.
-If you have problems, you may need to regenerate the build system entirely.
-To do so, use the procedure documented by the package, typically 'autoreconf'.])])
-
-# Copyright (C) 2002-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_AUTOMAKE_VERSION(VERSION)
-# ----------------------------
-# Automake X.Y traces this macro to ensure aclocal.m4 has been
-# generated from the m4 files accompanying Automake X.Y.
-# (This private macro should not be called outside this file.)
-AC_DEFUN([AM_AUTOMAKE_VERSION],
-[am__api_version='1.16'
-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
-dnl require some minimum version. Point them to the right macro.
-m4_if([$1], [1.16.3], [],
- [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
-])
-
-# _AM_AUTOCONF_VERSION(VERSION)
-# -----------------------------
-# aclocal traces this macro to find the Autoconf version.
-# This is a private macro too. Using m4_define simplifies
-# the logic in aclocal, which can simply ignore this definition.
-m4_define([_AM_AUTOCONF_VERSION], [])
-
-# AM_SET_CURRENT_AUTOMAKE_VERSION
-# -------------------------------
-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
-# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.16.3])dnl
-m4_ifndef([AC_AUTOCONF_VERSION],
- [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
-_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
-
-# AM_AUX_DIR_EXPAND -*- Autoconf -*-
-
-# Copyright (C) 2001-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
-# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
-# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
-#
-# Of course, Automake must honor this variable whenever it calls a
-# tool from the auxiliary directory. The problem is that $srcdir (and
-# therefore $ac_aux_dir as well) can be either absolute or relative,
-# depending on how configure is run. This is pretty annoying, since
-# it makes $ac_aux_dir quite unusable in subdirectories: in the top
-# source directory, any form will work fine, but in subdirectories a
-# relative path needs to be adjusted first.
-#
-# $ac_aux_dir/missing
-# fails when called from a subdirectory if $ac_aux_dir is relative
-# $top_srcdir/$ac_aux_dir/missing
-# fails if $ac_aux_dir is absolute,
-# fails when called from a subdirectory in a VPATH build with
-# a relative $ac_aux_dir
-#
-# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
-# are both prefixed by $srcdir. In an in-source build this is usually
-# harmless because $srcdir is '.', but things will broke when you
-# start a VPATH build or use an absolute $srcdir.
-#
-# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
-# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
-# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
-# and then we would define $MISSING as
-# MISSING="\${SHELL} $am_aux_dir/missing"
-# This will work as long as MISSING is not called from configure, because
-# unfortunately $(top_srcdir) has no meaning in configure.
-# However there are other variables, like CC, which are often used in
-# configure, and could therefore not use this "fixed" $ac_aux_dir.
-#
-# Another solution, used here, is to always expand $ac_aux_dir to an
-# absolute PATH. The drawback is that using absolute paths prevent a
-# configured tree to be moved without reconfiguration.
-
-AC_DEFUN([AM_AUX_DIR_EXPAND],
-[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
-# Expand $ac_aux_dir to an absolute path.
-am_aux_dir=`cd "$ac_aux_dir" && pwd`
-])
-
-# AM_CONDITIONAL -*- Autoconf -*-
-
-# Copyright (C) 1997-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_CONDITIONAL(NAME, SHELL-CONDITION)
-# -------------------------------------
-# Define a conditional.
-AC_DEFUN([AM_CONDITIONAL],
-[AC_PREREQ([2.52])dnl
- m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
- [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
-AC_SUBST([$1_TRUE])dnl
-AC_SUBST([$1_FALSE])dnl
-_AM_SUBST_NOTMAKE([$1_TRUE])dnl
-_AM_SUBST_NOTMAKE([$1_FALSE])dnl
-m4_define([_AM_COND_VALUE_$1], [$2])dnl
-if $2; then
- $1_TRUE=
- $1_FALSE='#'
-else
- $1_TRUE='#'
- $1_FALSE=
-fi
-AC_CONFIG_COMMANDS_PRE(
-[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
- AC_MSG_ERROR([[conditional "$1" was never defined.
-Usually this means the macro was only invoked conditionally.]])
-fi])])
-
-# Copyright (C) 1999-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-
-# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
-# written in clear, in which case automake, when reading aclocal.m4,
-# will think it sees a *use*, and therefore will trigger all it's
-# C support machinery. Also note that it means that autoscan, seeing
-# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
-
-
-# _AM_DEPENDENCIES(NAME)
-# ----------------------
-# See how the compiler implements dependency checking.
-# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
-# We try a few techniques and use that to set a single cache variable.
-#
-# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
-# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
-# dependency, and given that the user is not expected to run this macro,
-# just rely on AC_PROG_CC.
-AC_DEFUN([_AM_DEPENDENCIES],
-[AC_REQUIRE([AM_SET_DEPDIR])dnl
-AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
-AC_REQUIRE([AM_MAKE_INCLUDE])dnl
-AC_REQUIRE([AM_DEP_TRACK])dnl
-
-m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
- [$1], [CXX], [depcc="$CXX" am_compiler_list=],
- [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
- [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
- [$1], [UPC], [depcc="$UPC" am_compiler_list=],
- [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
- [depcc="$$1" am_compiler_list=])
-
-AC_CACHE_CHECK([dependency style of $depcc],
- [am_cv_$1_dependencies_compiler_type],
-[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
- # We make a subdir and do the tests there. Otherwise we can end up
- # making bogus files that we don't know about and never remove. For
- # instance it was reported that on HP-UX the gcc test will end up
- # making a dummy file named 'D' -- because '-MD' means "put the output
- # in D".
- rm -rf conftest.dir
- mkdir conftest.dir
- # Copy depcomp to subdir because otherwise we won't find it if we're
- # using a relative directory.
- cp "$am_depcomp" conftest.dir
- cd conftest.dir
- # We will build objects and dependencies in a subdirectory because
- # it helps to detect inapplicable dependency modes. For instance
- # both Tru64's cc and ICC support -MD to output dependencies as a
- # side effect of compilation, but ICC will put the dependencies in
- # the current directory while Tru64 will put them in the object
- # directory.
- mkdir sub
-
- am_cv_$1_dependencies_compiler_type=none
- if test "$am_compiler_list" = ""; then
- am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
- fi
- am__universal=false
- m4_case([$1], [CC],
- [case " $depcc " in #(
- *\ -arch\ *\ -arch\ *) am__universal=true ;;
- esac],
- [CXX],
- [case " $depcc " in #(
- *\ -arch\ *\ -arch\ *) am__universal=true ;;
- esac])
-
- for depmode in $am_compiler_list; do
- # Setup a source with many dependencies, because some compilers
- # like to wrap large dependency lists on column 80 (with \), and
- # we should not choose a depcomp mode which is confused by this.
- #
- # We need to recreate these files for each test, as the compiler may
- # overwrite some of them when testing with obscure command lines.
- # This happens at least with the AIX C compiler.
- : > sub/conftest.c
- for i in 1 2 3 4 5 6; do
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
- # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
- # Solaris 10 /bin/sh.
- echo '/* dummy */' > sub/conftst$i.h
- done
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
- # We check with '-c' and '-o' for the sake of the "dashmstdout"
- # mode. It turns out that the SunPro C++ compiler does not properly
- # handle '-M -o', and we need to detect this. Also, some Intel
- # versions had trouble with output in subdirs.
- am__obj=sub/conftest.${OBJEXT-o}
- am__minus_obj="-o $am__obj"
- case $depmode in
- gcc)
- # This depmode causes a compiler race in universal mode.
- test "$am__universal" = false || continue
- ;;
- nosideeffect)
- # After this tag, mechanisms are not by side-effect, so they'll
- # only be used when explicitly requested.
- if test "x$enable_dependency_tracking" = xyes; then
- continue
- else
- break
- fi
- ;;
- msvc7 | msvc7msys | msvisualcpp | msvcmsys)
- # This compiler won't grok '-c -o', but also, the minuso test has
- # not run yet. These depmodes are late enough in the game, and
- # so weak that their functioning should not be impacted.
- am__obj=conftest.${OBJEXT-o}
- am__minus_obj=
- ;;
- none) break ;;
- esac
- if depmode=$depmode \
- source=sub/conftest.c object=$am__obj \
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
- $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
- >/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- # icc doesn't choke on unknown options, it will just issue warnings
- # or remarks (even with -Werror). So we grep stderr for any message
- # that says an option was ignored or not supported.
- # When given -MP, icc 7.0 and 7.1 complain thusly:
- # icc: Command line warning: ignoring option '-M'; no argument required
- # The diagnosis changed in icc 8.0:
- # icc: Command line remark: option '-MP' not supported
- if (grep 'ignoring option' conftest.err ||
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
- am_cv_$1_dependencies_compiler_type=$depmode
- break
- fi
- fi
- done
-
- cd ..
- rm -rf conftest.dir
-else
- am_cv_$1_dependencies_compiler_type=none
-fi
-])
-AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
-AM_CONDITIONAL([am__fastdep$1], [
- test "x$enable_dependency_tracking" != xno \
- && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
-])
-
-
-# AM_SET_DEPDIR
-# -------------
-# Choose a directory name for dependency files.
-# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
-AC_DEFUN([AM_SET_DEPDIR],
-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
-])
-
-
-# AM_DEP_TRACK
-# ------------
-AC_DEFUN([AM_DEP_TRACK],
-[AC_ARG_ENABLE([dependency-tracking], [dnl
-AS_HELP_STRING(
- [--enable-dependency-tracking],
- [do not reject slow dependency extractors])
-AS_HELP_STRING(
- [--disable-dependency-tracking],
- [speeds up one-time build])])
-if test "x$enable_dependency_tracking" != xno; then
- am_depcomp="$ac_aux_dir/depcomp"
- AMDEPBACKSLASH='\'
- am__nodep='_no'
-fi
-AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
-AC_SUBST([AMDEPBACKSLASH])dnl
-_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
-AC_SUBST([am__nodep])dnl
-_AM_SUBST_NOTMAKE([am__nodep])dnl
-])
-
-# Generate code to set up dependency tracking. -*- Autoconf -*-
-
-# Copyright (C) 1999-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# _AM_OUTPUT_DEPENDENCY_COMMANDS
-# ------------------------------
-AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
-[{
- # Older Autoconf quotes --file arguments for eval, but not when files
- # are listed without --file. Let's play safe and only enable the eval
- # if we detect the quoting.
- # TODO: see whether this extra hack can be removed once we start
- # requiring Autoconf 2.70 or later.
- AS_CASE([$CONFIG_FILES],
- [*\'*], [eval set x "$CONFIG_FILES"],
- [*], [set x $CONFIG_FILES])
- shift
- # Used to flag and report bootstrapping failures.
- am_rc=0
- for am_mf
- do
- # Strip MF so we end up with the name of the file.
- am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
- # Check whether this is an Automake generated Makefile which includes
- # dependency-tracking related rules and includes.
- # Grep'ing the whole file directly is not great: AIX grep has a line
- # limit of 2048, but all sed's we know have understand at least 4000.
- sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
- || continue
- am_dirpart=`AS_DIRNAME(["$am_mf"])`
- am_filepart=`AS_BASENAME(["$am_mf"])`
- AM_RUN_LOG([cd "$am_dirpart" \
- && sed -e '/# am--include-marker/d' "$am_filepart" \
- | $MAKE -f - am--depfiles]) || am_rc=$?
- done
- if test $am_rc -ne 0; then
- AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
- for automatic dependency tracking. If GNU make was not used, consider
- re-running the configure script with MAKE="gmake" (or whatever is
- necessary). You can also try re-running configure with the
- '--disable-dependency-tracking' option to at least be able to build
- the package (albeit without support for automatic dependency tracking).])
- fi
- AS_UNSET([am_dirpart])
- AS_UNSET([am_filepart])
- AS_UNSET([am_mf])
- AS_UNSET([am_rc])
- rm -f conftest-deps.mk
-}
-])# _AM_OUTPUT_DEPENDENCY_COMMANDS
-
-
-# AM_OUTPUT_DEPENDENCY_COMMANDS
-# -----------------------------
-# This macro should only be invoked once -- use via AC_REQUIRE.
-#
-# This code is only required when automatic dependency tracking is enabled.
-# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
-# order to bootstrap the dependency handling code.
-AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
-[AC_CONFIG_COMMANDS([depfiles],
- [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
- [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
-
-# Do all the work for Automake. -*- Autoconf -*-
-
-# Copyright (C) 1996-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This macro actually does too much. Some checks are only needed if
-# your package does certain things. But this isn't really a big deal.
-
-dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
-m4_define([AC_PROG_CC],
-m4_defn([AC_PROG_CC])
-[_AM_PROG_CC_C_O
-])
-
-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
-# AM_INIT_AUTOMAKE([OPTIONS])
-# -----------------------------------------------
-# The call with PACKAGE and VERSION arguments is the old style
-# call (pre autoconf-2.50), which is being phased out. PACKAGE
-# and VERSION should now be passed to AC_INIT and removed from
-# the call to AM_INIT_AUTOMAKE.
-# We support both call styles for the transition. After
-# the next Automake release, Autoconf can make the AC_INIT
-# arguments mandatory, and then we can depend on a new Autoconf
-# release and drop the old call support.
-AC_DEFUN([AM_INIT_AUTOMAKE],
-[AC_PREREQ([2.65])dnl
-dnl Autoconf wants to disallow AM_ names. We explicitly allow
-dnl the ones we care about.
-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
-AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
-AC_REQUIRE([AC_PROG_INSTALL])dnl
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
- # is not polluted with repeated "-I."
- AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
- # test to see if srcdir already configured
- if test -f $srcdir/config.status; then
- AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
- fi
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
- if (cygpath --version) >/dev/null 2>/dev/null; then
- CYGPATH_W='cygpath -w'
- else
- CYGPATH_W=echo
- fi
-fi
-AC_SUBST([CYGPATH_W])
-
-# Define the identity of the package.
-dnl Distinguish between old-style and new-style calls.
-m4_ifval([$2],
-[AC_DIAGNOSE([obsolete],
- [$0: two- and three-arguments forms are deprecated.])
-m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
- AC_SUBST([PACKAGE], [$1])dnl
- AC_SUBST([VERSION], [$2])],
-[_AM_SET_OPTIONS([$1])dnl
-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
-m4_if(
- m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
- [ok:ok],,
- [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
-
-_AM_IF_OPTION([no-define],,
-[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
- AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
-
-# Some tools Automake needs.
-AC_REQUIRE([AM_SANITY_CHECK])dnl
-AC_REQUIRE([AC_ARG_PROGRAM])dnl
-AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
-AM_MISSING_PROG([AUTOCONF], [autoconf])
-AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
-AM_MISSING_PROG([AUTOHEADER], [autoheader])
-AM_MISSING_PROG([MAKEINFO], [makeinfo])
-AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
-AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
-# For better backward compatibility. To be removed once Automake 1.9.x
-# dies out for good. For more background, see:
-# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
-# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
-AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
-# We need awk for the "check" target (and possibly the TAP driver). The
-# system "awk" is bad on some platforms.
-AC_REQUIRE([AC_PROG_AWK])dnl
-AC_REQUIRE([AC_PROG_MAKE_SET])dnl
-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
- [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
- [_AM_PROG_TAR([v7])])])
-_AM_IF_OPTION([no-dependencies],,
-[AC_PROVIDE_IFELSE([AC_PROG_CC],
- [_AM_DEPENDENCIES([CC])],
- [m4_define([AC_PROG_CC],
- m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_CXX],
- [_AM_DEPENDENCIES([CXX])],
- [m4_define([AC_PROG_CXX],
- m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_OBJC],
- [_AM_DEPENDENCIES([OBJC])],
- [m4_define([AC_PROG_OBJC],
- m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
- [_AM_DEPENDENCIES([OBJCXX])],
- [m4_define([AC_PROG_OBJCXX],
- m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
-])
-AC_REQUIRE([AM_SILENT_RULES])dnl
-dnl The testsuite driver may need to know about EXEEXT, so add the
-dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
-dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
-AC_CONFIG_COMMANDS_PRE(dnl
-[m4_provide_if([_AM_COMPILER_EXEEXT],
- [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
-
-# POSIX will say in a future version that running "rm -f" with no argument
-# is OK; and we want to be able to make that assumption in our Makefile
-# recipes. So use an aggressive probe to check that the usage we want is
-# actually supported "in the wild" to an acceptable degree.
-# See automake bug#10828.
-# To make any issue more visible, cause the running configure to be aborted
-# by default if the 'rm' program in use doesn't match our expectations; the
-# user can still override this though.
-if rm -f && rm -fr && rm -rf; then : OK; else
- cat >&2 <<'END'
-Oops!
-
-Your 'rm' program seems unable to run without file operands specified
-on the command line, even when the '-f' option is present. This is contrary
-to the behaviour of most rm programs out there, and not conforming with
-the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
-
-Please tell bug-automake@gnu.org about your system, including the value
-of your $PATH and any error possibly output before this message. This
-can help us improve future automake versions.
-
-END
- if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
- echo 'Configuration will proceed anyway, since you have set the' >&2
- echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
- echo >&2
- else
- cat >&2 <<'END'
-Aborting the configuration process, to ensure you take notice of the issue.
-
-You can download and install GNU coreutils to get an 'rm' implementation
-that behaves properly: <https://www.gnu.org/software/coreutils/>.
-
-If you want to complete the configuration process using your problematic
-'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
-to "yes", and re-run configure.
-
-END
- AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
- fi
-fi
-dnl The trailing newline in this macro's definition is deliberate, for
-dnl backward compatibility and to allow trailing 'dnl'-style comments
-dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
-])
-
-dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
-dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
-dnl mangled by Autoconf and run in a shell conditional statement.
-m4_define([_AC_COMPILER_EXEEXT],
-m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
-
-# When config.status generates a header, we must update the stamp-h file.
-# This file resides in the same directory as the config header
-# that is generated. The stamp files are numbered to have different names.
-
-# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
-# loop where config.status creates the headers, so we can generate
-# our stamp files there.
-AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
-[# Compute $1's index in $config_headers.
-_am_arg=$1
-_am_stamp_count=1
-for _am_header in $config_headers :; do
- case $_am_header in
- $_am_arg | $_am_arg:* )
- break ;;
- * )
- _am_stamp_count=`expr $_am_stamp_count + 1` ;;
- esac
-done
-echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
-
-# Copyright (C) 2001-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_INSTALL_SH
-# ------------------
-# Define $install_sh.
-AC_DEFUN([AM_PROG_INSTALL_SH],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-if test x"${install_sh+set}" != xset; then
- case $am_aux_dir in
- *\ * | *\ *)
- install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
- *)
- install_sh="\${SHELL} $am_aux_dir/install-sh"
- esac
-fi
-AC_SUBST([install_sh])])
-
-# Copyright (C) 2003-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# Check whether the underlying file-system supports filenames
-# with a leading dot. For instance MS-DOS doesn't.
-AC_DEFUN([AM_SET_LEADING_DOT],
-[rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
- am__leading_dot=.
-else
- am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-AC_SUBST([am__leading_dot])])
-
-# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
-# From Jim Meyering
-
-# Copyright (C) 1996-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_MAINTAINER_MODE([DEFAULT-MODE])
-# ----------------------------------
-# Control maintainer-specific portions of Makefiles.
-# Default is to disable them, unless 'enable' is passed literally.
-# For symmetry, 'disable' may be passed as well. Anyway, the user
-# can override the default with the --enable/--disable switch.
-AC_DEFUN([AM_MAINTAINER_MODE],
-[m4_case(m4_default([$1], [disable]),
- [enable], [m4_define([am_maintainer_other], [disable])],
- [disable], [m4_define([am_maintainer_other], [enable])],
- [m4_define([am_maintainer_other], [enable])
- m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
-AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
- dnl maintainer-mode's default is 'disable' unless 'enable' is passed
- AC_ARG_ENABLE([maintainer-mode],
- [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
- am_maintainer_other[ make rules and dependencies not useful
- (and sometimes confusing) to the casual installer])],
- [USE_MAINTAINER_MODE=$enableval],
- [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
- AC_MSG_RESULT([$USE_MAINTAINER_MODE])
- AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
- MAINT=$MAINTAINER_MODE_TRUE
- AC_SUBST([MAINT])dnl
-]
-)
-
-# Check to see how 'make' treats includes. -*- Autoconf -*-
-
-# Copyright (C) 2001-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_MAKE_INCLUDE()
-# -----------------
-# Check whether make has an 'include' directive that can support all
-# the idioms we need for our automatic dependency tracking code.
-AC_DEFUN([AM_MAKE_INCLUDE],
-[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
-cat > confinc.mk << 'END'
-am__doit:
- @echo this is the am__doit target >confinc.out
-.PHONY: am__doit
-END
-am__include="#"
-am__quote=
-# BSD make does it like this.
-echo '.include "confinc.mk" # ignored' > confmf.BSD
-# Other make implementations (GNU, Solaris 10, AIX) do it like this.
-echo 'include confinc.mk # ignored' > confmf.GNU
-_am_result=no
-for s in GNU BSD; do
- AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
- AS_CASE([$?:`cat confinc.out 2>/dev/null`],
- ['0:this is the am__doit target'],
- [AS_CASE([$s],
- [BSD], [am__include='.include' am__quote='"'],
- [am__include='include' am__quote=''])])
- if test "$am__include" != "#"; then
- _am_result="yes ($s style)"
- break
- fi
-done
-rm -f confinc.* confmf.*
-AC_MSG_RESULT([${_am_result}])
-AC_SUBST([am__include])])
-AC_SUBST([am__quote])])
-
-# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
-
-# Copyright (C) 1997-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_MISSING_PROG(NAME, PROGRAM)
-# ------------------------------
-AC_DEFUN([AM_MISSING_PROG],
-[AC_REQUIRE([AM_MISSING_HAS_RUN])
-$1=${$1-"${am_missing_run}$2"}
-AC_SUBST($1)])
-
-# AM_MISSING_HAS_RUN
-# ------------------
-# Define MISSING if not defined so far and test if it is modern enough.
-# If it is, set am_missing_run to use it, otherwise, to nothing.
-AC_DEFUN([AM_MISSING_HAS_RUN],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-AC_REQUIRE_AUX_FILE([missing])dnl
-if test x"${MISSING+set}" != xset; then
- MISSING="\${SHELL} '$am_aux_dir/missing'"
-fi
-# Use eval to expand $SHELL
-if eval "$MISSING --is-lightweight"; then
- am_missing_run="$MISSING "
-else
- am_missing_run=
- AC_MSG_WARN(['missing' script is too old or missing])
-fi
-])
-
-# Helper functions for option handling. -*- Autoconf -*-
-
-# Copyright (C) 2001-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# _AM_MANGLE_OPTION(NAME)
-# -----------------------
-AC_DEFUN([_AM_MANGLE_OPTION],
-[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
-
-# _AM_SET_OPTION(NAME)
-# --------------------
-# Set option NAME. Presently that only means defining a flag for this option.
-AC_DEFUN([_AM_SET_OPTION],
-[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
-
-# _AM_SET_OPTIONS(OPTIONS)
-# ------------------------
-# OPTIONS is a space-separated list of Automake options.
-AC_DEFUN([_AM_SET_OPTIONS],
-[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
-
-# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
-# -------------------------------------------
-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
-AC_DEFUN([_AM_IF_OPTION],
-[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
-
-# Copyright (C) 1999-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# _AM_PROG_CC_C_O
-# ---------------
-# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
-# to automatically call this.
-AC_DEFUN([_AM_PROG_CC_C_O],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-AC_REQUIRE_AUX_FILE([compile])dnl
-AC_LANG_PUSH([C])dnl
-AC_CACHE_CHECK(
- [whether $CC understands -c and -o together],
- [am_cv_prog_cc_c_o],
- [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
- # Make sure it works both with $CC and with simple cc.
- # Following AC_PROG_CC_C_O, we do the test twice because some
- # compilers refuse to overwrite an existing .o file with -o,
- # though they will create one.
- am_cv_prog_cc_c_o=yes
- for am_i in 1 2; do
- if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
- && test -f conftest2.$ac_objext; then
- : OK
- else
- am_cv_prog_cc_c_o=no
- break
- fi
- done
- rm -f core conftest*
- unset am_i])
-if test "$am_cv_prog_cc_c_o" != yes; then
- # Losing compiler, so override with the script.
- # FIXME: It is wrong to rewrite CC.
- # But if we don't then we get into trouble of one sort or another.
- # A longer-term fix would be to have automake use am__CC in this case,
- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
- CC="$am_aux_dir/compile $CC"
-fi
-AC_LANG_POP([C])])
-
-# For backward compatibility.
-AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
-
-# Copyright (C) 2001-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_RUN_LOG(COMMAND)
-# -------------------
-# Run COMMAND, save the exit status in ac_status, and log it.
-# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
-AC_DEFUN([AM_RUN_LOG],
-[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
- ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
- (exit $ac_status); }])
-
-# Check to make sure that the build environment is sane. -*- Autoconf -*-
-
-# Copyright (C) 1996-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_SANITY_CHECK
-# ---------------
-AC_DEFUN([AM_SANITY_CHECK],
-[AC_MSG_CHECKING([whether build environment is sane])
-# Reject unsafe characters in $srcdir or the absolute working directory
-# name. Accept space and tab only in the latter.
-am_lf='
-'
-case `pwd` in
- *[[\\\"\#\$\&\'\`$am_lf]]*)
- AC_MSG_ERROR([unsafe absolute working directory name]);;
-esac
-case $srcdir in
- *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
- AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
-esac
-
-# Do 'set' in a subshell so we don't clobber the current shell's
-# arguments. Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
- am_has_slept=no
- for am_try in 1 2; do
- echo "timestamp, slept: $am_has_slept" > conftest.file
- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
- if test "$[*]" = "X"; then
- # -L didn't work.
- set X `ls -t "$srcdir/configure" conftest.file`
- fi
- if test "$[*]" != "X $srcdir/configure conftest.file" \
- && test "$[*]" != "X conftest.file $srcdir/configure"; then
-
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
- alias in your environment])
- fi
- if test "$[2]" = conftest.file || test $am_try -eq 2; then
- break
- fi
- # Just in case.
- sleep 1
- am_has_slept=yes
- done
- test "$[2]" = conftest.file
- )
-then
- # Ok.
- :
-else
- AC_MSG_ERROR([newly created file is older than distributed files!
-Check your system clock])
-fi
-AC_MSG_RESULT([yes])
-# If we didn't sleep, we still need to ensure time stamps of config.status and
-# generated files are strictly newer.
-am_sleep_pid=
-if grep 'slept: no' conftest.file >/dev/null 2>&1; then
- ( sleep 1 ) &
- am_sleep_pid=$!
-fi
-AC_CONFIG_COMMANDS_PRE(
- [AC_MSG_CHECKING([that generated files are newer than configure])
- if test -n "$am_sleep_pid"; then
- # Hide warnings about reused PIDs.
- wait $am_sleep_pid 2>/dev/null
- fi
- AC_MSG_RESULT([done])])
-rm -f conftest.file
-])
-
-# Copyright (C) 2009-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_SILENT_RULES([DEFAULT])
-# --------------------------
-# Enable less verbose build rules; with the default set to DEFAULT
-# ("yes" being less verbose, "no" or empty being verbose).
-AC_DEFUN([AM_SILENT_RULES],
-[AC_ARG_ENABLE([silent-rules], [dnl
-AS_HELP_STRING(
- [--enable-silent-rules],
- [less verbose build output (undo: "make V=1")])
-AS_HELP_STRING(
- [--disable-silent-rules],
- [verbose build output (undo: "make V=0")])dnl
-])
-case $enable_silent_rules in @%:@ (((
- yes) AM_DEFAULT_VERBOSITY=0;;
- no) AM_DEFAULT_VERBOSITY=1;;
- *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
-esac
-dnl
-dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
-dnl do not support nested variable expansions.
-dnl See automake bug#9928 and bug#10237.
-am_make=${MAKE-make}
-AC_CACHE_CHECK([whether $am_make supports nested variables],
- [am_cv_make_support_nested_variables],
- [if AS_ECHO([['TRUE=$(BAR$(V))
-BAR0=false
-BAR1=true
-V=1
-am__doit:
- @$(TRUE)
-.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
- am_cv_make_support_nested_variables=yes
-else
- am_cv_make_support_nested_variables=no
-fi])
-if test $am_cv_make_support_nested_variables = yes; then
- dnl Using '$V' instead of '$(V)' breaks IRIX make.
- AM_V='$(V)'
- AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
-else
- AM_V=$AM_DEFAULT_VERBOSITY
- AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
-fi
-AC_SUBST([AM_V])dnl
-AM_SUBST_NOTMAKE([AM_V])dnl
-AC_SUBST([AM_DEFAULT_V])dnl
-AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
-AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
-AM_BACKSLASH='\'
-AC_SUBST([AM_BACKSLASH])dnl
-_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
-])
-
-# Copyright (C) 2001-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_INSTALL_STRIP
-# ---------------------
-# One issue with vendor 'install' (even GNU) is that you can't
-# specify the program used to strip binaries. This is especially
-# annoying in cross-compiling environments, where the build's strip
-# is unlikely to handle the host's binaries.
-# Fortunately install-sh will honor a STRIPPROG variable, so we
-# always use install-sh in "make install-strip", and initialize
-# STRIPPROG with the value of the STRIP variable (set by the user).
-AC_DEFUN([AM_PROG_INSTALL_STRIP],
-[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
-# Installed binaries are usually stripped using 'strip' when the user
-# run "make install-strip". However 'strip' might not be the right
-# tool to use in cross-compilation environments, therefore Automake
-# will honor the 'STRIP' environment variable to overrule this program.
-dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
-if test "$cross_compiling" != no; then
- AC_CHECK_TOOL([STRIP], [strip], :)
-fi
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
-AC_SUBST([INSTALL_STRIP_PROGRAM])])
-
-# Copyright (C) 2006-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# _AM_SUBST_NOTMAKE(VARIABLE)
-# ---------------------------
-# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
-# This macro is traced by Automake.
-AC_DEFUN([_AM_SUBST_NOTMAKE])
-
-# AM_SUBST_NOTMAKE(VARIABLE)
-# --------------------------
-# Public sister of _AM_SUBST_NOTMAKE.
-AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
-
-# Check how to create a tarball. -*- Autoconf -*-
-
-# Copyright (C) 2004-2020 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# _AM_PROG_TAR(FORMAT)
-# --------------------
-# Check how to create a tarball in format FORMAT.
-# FORMAT should be one of 'v7', 'ustar', or 'pax'.
-#
-# Substitute a variable $(am__tar) that is a command
-# writing to stdout a FORMAT-tarball containing the directory
-# $tardir.
-# tardir=directory && $(am__tar) > result.tar
-#
-# Substitute a variable $(am__untar) that extract such
-# a tarball read from stdin.
-# $(am__untar) < result.tar
-#
-AC_DEFUN([_AM_PROG_TAR],
-[# Always define AMTAR for backward compatibility. Yes, it's still used
-# in the wild :-( We should find a proper way to deprecate it ...
-AC_SUBST([AMTAR], ['$${TAR-tar}'])
-
-# We'll loop over all known methods to create a tar archive until one works.
-_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
-
-m4_if([$1], [v7],
- [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
-
- [m4_case([$1],
- [ustar],
- [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
- # There is notably a 21 bits limit for the UID and the GID. In fact,
- # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
- # and bug#13588).
- am_max_uid=2097151 # 2^21 - 1
- am_max_gid=$am_max_uid
- # The $UID and $GID variables are not portable, so we need to resort
- # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
- # below are definitely unexpected, so allow the users to see them
- # (that is, avoid stderr redirection).
- am_uid=`id -u || echo unknown`
- am_gid=`id -g || echo unknown`
- AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
- if test $am_uid -le $am_max_uid; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- _am_tools=none
- fi
- AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
- if test $am_gid -le $am_max_gid; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- _am_tools=none
- fi],
-
- [pax],
- [],
-
- [m4_fatal([Unknown tar format])])
-
- AC_MSG_CHECKING([how to create a $1 tar archive])
-
- # Go ahead even if we have the value already cached. We do so because we
- # need to set the values for the 'am__tar' and 'am__untar' variables.
- _am_tools=${am_cv_prog_tar_$1-$_am_tools}
-
- for _am_tool in $_am_tools; do
- case $_am_tool in
- gnutar)
- for _am_tar in tar gnutar gtar; do
- AM_RUN_LOG([$_am_tar --version]) && break
- done
- am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
- am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
- am__untar="$_am_tar -xf -"
- ;;
- plaintar)
- # Must skip GNU tar: if it does not support --format= it doesn't create
- # ustar tarball either.
- (tar --version) >/dev/null 2>&1 && continue
- am__tar='tar chf - "$$tardir"'
- am__tar_='tar chf - "$tardir"'
- am__untar='tar xf -'
- ;;
- pax)
- am__tar='pax -L -x $1 -w "$$tardir"'
- am__tar_='pax -L -x $1 -w "$tardir"'
- am__untar='pax -r'
- ;;
- cpio)
- am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
- am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
- am__untar='cpio -i -H $1 -d'
- ;;
- none)
- am__tar=false
- am__tar_=false
- am__untar=false
- ;;
- esac
-
- # If the value was cached, stop now. We just wanted to have am__tar
- # and am__untar set.
- test -n "${am_cv_prog_tar_$1}" && break
-
- # tar/untar a dummy directory, and stop if the command works.
- rm -rf conftest.dir
- mkdir conftest.dir
- echo GrepMe > conftest.dir/file
- AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
- rm -rf conftest.dir
- if test -s conftest.tar; then
- AM_RUN_LOG([$am__untar <conftest.tar])
- AM_RUN_LOG([cat conftest.dir/file])
- grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
- fi
- done
- rm -rf conftest.dir
-
- AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
- AC_MSG_RESULT([$am_cv_prog_tar_$1])])
-
-AC_SUBST([am__tar])
-AC_SUBST([am__untar])
-]) # _AM_PROG_TAR
-
-m4_include([../../m4/kpse-common.m4])
-m4_include([../../m4/kpse-warnings.m4])
-m4_include([../../m4/kpse-win32.m4])
diff --git a/Build/source/utils/pmx/configure b/Build/source/utils/pmx/configure
deleted file mode 100755
index 99036965c28..00000000000
--- a/Build/source/utils/pmx/configure
+++ /dev/null
@@ -1,6701 +0,0 @@
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for pmx (TeX Live) 2.9.4a.
-#
-# Report bugs to <tex-k@tug.org>.
-#
-#
-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
-#
-#
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-## -------------------- ##
-## M4sh Initialization. ##
-## -------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
-else
- case `(set -o) 2>/dev/null` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='print -r --'
- as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %s\n'
- as_echo_n='printf %s'
-else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in #(
- *"$as_nl"*)
- expr "X$arg" : "X\\(.*\\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
- esac;
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order. Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" "" $as_nl"
-
-# Find who we are. Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
- as_myself=$0
-fi
-if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there. '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-# Use a proper internal environment variable to ensure we don't fall
- # into an infinite loop, continuously re-executing ourselves.
- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
- _as_can_reexec=no; export _as_can_reexec;
- # We cannot yet assume a decent shell, so we have to provide a
-# neutralization value for shells without unset; and this also
-# works around shells that cannot unset nonexistent variables.
-# Preserve -v and -x to the replacement shell.
-BASH_ENV=/dev/null
-ENV=/dev/null
-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
-case $- in # ((((
- *v*x* | *x*v* ) as_opts=-vx ;;
- *v* ) as_opts=-v ;;
- *x* ) as_opts=-x ;;
- * ) as_opts= ;;
-esac
-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
-# Admittedly, this is quite paranoid, since all the known shells bail
-# out after a failed `exec'.
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
-as_fn_exit 255
- fi
- # We don't want this to propagate to other subprocesses.
- { _as_can_reexec=; unset _as_can_reexec;}
-if test "x$CONFIG_SHELL" = x; then
- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '\${1+\"\$@\"}'='\"\$@\"'
- setopt NO_GLOB_SUBST
-else
- case \`(set -o) 2>/dev/null\` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
-esac
-fi
-"
- as_required="as_fn_return () { (exit \$1); }
-as_fn_success () { as_fn_return 0; }
-as_fn_failure () { as_fn_return 1; }
-as_fn_ret_success () { return 0; }
-as_fn_ret_failure () { return 1; }
-
-exitcode=0
-as_fn_success || { exitcode=1; echo as_fn_success failed.; }
-as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
-as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
-as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
-if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
-
-else
- exitcode=1; echo positional parameters were not saved.
-fi
-test x\$exitcode = x0 || exit 1
-test -x / || exit 1"
- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
-test \$(( 1 + 1 )) = 2 || exit 1"
- if (eval "$as_required") 2>/dev/null; then :
- as_have_required=yes
-else
- as_have_required=no
-fi
- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
-
-else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_found=false
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- as_found=:
- case $as_dir in #(
- /*)
- for as_base in sh bash ksh sh5; do
- # Try only shells that exist, to save several forks.
- as_shell=$as_dir/$as_base
- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
- CONFIG_SHELL=$as_shell as_have_required=yes
- if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
- break 2
-fi
-fi
- done;;
- esac
- as_found=false
-done
-$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
- CONFIG_SHELL=$SHELL as_have_required=yes
-fi; }
-IFS=$as_save_IFS
-
-
- if test "x$CONFIG_SHELL" != x; then :
- export CONFIG_SHELL
- # We cannot yet assume a decent shell, so we have to provide a
-# neutralization value for shells without unset; and this also
-# works around shells that cannot unset nonexistent variables.
-# Preserve -v and -x to the replacement shell.
-BASH_ENV=/dev/null
-ENV=/dev/null
-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
-case $- in # ((((
- *v*x* | *x*v* ) as_opts=-vx ;;
- *v* ) as_opts=-v ;;
- *x* ) as_opts=-x ;;
- * ) as_opts= ;;
-esac
-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
-# Admittedly, this is quite paranoid, since all the known shells bail
-# out after a failed `exec'.
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
-exit 255
-fi
-
- if test x$as_have_required = xno; then :
- $as_echo "$0: This script requires a shell more modern than all"
- $as_echo "$0: the shells that I found on your system."
- if test x${ZSH_VERSION+set} = xset ; then
- $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
- $as_echo "$0: be upgraded to zsh 4.3.4 or later."
- else
- $as_echo "$0: Please tell bug-autoconf@gnu.org and tex-k@tug.org
-$0: about your system, including any error possibly output
-$0: before this message. Then install a modern shell, or
-$0: manually run the script under such a shell if you do
-$0: have one."
- fi
- exit 1
-fi
-fi
-fi
-SHELL=${CONFIG_SHELL-/bin/sh}
-export SHELL
-# Unset more variables known to interfere with behavior of common tools.
-CLICOLOR_FORCE= GREP_OPTIONS=
-unset CLICOLOR_FORCE GREP_OPTIONS
-
-## --------------------- ##
-## M4sh Shell Functions. ##
-## --------------------- ##
-# as_fn_unset VAR
-# ---------------
-# Portably unset VAR.
-as_fn_unset ()
-{
- { eval $1=; unset $1;}
-}
-as_unset=as_fn_unset
-
-# as_fn_set_status STATUS
-# -----------------------
-# Set $? to STATUS, without forking.
-as_fn_set_status ()
-{
- return $1
-} # as_fn_set_status
-
-# as_fn_exit STATUS
-# -----------------
-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
-as_fn_exit ()
-{
- set +e
- as_fn_set_status $1
- exit $1
-} # as_fn_exit
-
-# as_fn_mkdir_p
-# -------------
-# Create "$as_dir" as a directory, including parents if necessary.
-as_fn_mkdir_p ()
-{
-
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || eval $as_mkdir_p || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
- *) as_qdir=$as_dir;;
- esac
- as_dirs="'$as_qdir' $as_dirs"
- as_dir=`$as_dirname -- "$as_dir" ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- test -d "$as_dir" && break
- done
- test -z "$as_dirs" || eval "mkdir $as_dirs"
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
-
-
-} # as_fn_mkdir_p
-
-# as_fn_executable_p FILE
-# -----------------------
-# Test if FILE is an executable regular file.
-as_fn_executable_p ()
-{
- test -f "$1" && test -x "$1"
-} # as_fn_executable_p
-# as_fn_append VAR VALUE
-# ----------------------
-# Append the text in VALUE to the end of the definition contained in VAR. Take
-# advantage of any shell optimizations that allow amortized linear growth over
-# repeated appends, instead of the typical quadratic growth present in naive
-# implementations.
-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
- eval 'as_fn_append ()
- {
- eval $1+=\$2
- }'
-else
- as_fn_append ()
- {
- eval $1=\$$1\$2
- }
-fi # as_fn_append
-
-# as_fn_arith ARG...
-# ------------------
-# Perform arithmetic evaluation on the ARGs, and store the result in the
-# global $as_val. Take advantage of shells that can avoid forks. The arguments
-# must be portable across $(()) and expr.
-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
- eval 'as_fn_arith ()
- {
- as_val=$(( $* ))
- }'
-else
- as_fn_arith ()
- {
- as_val=`expr "$@" || test $? -eq 1`
- }
-fi # as_fn_arith
-
-
-# as_fn_error STATUS ERROR [LINENO LOG_FD]
-# ----------------------------------------
-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
-# script with STATUS, using 1 if that was 0.
-as_fn_error ()
-{
- as_status=$1; test $as_status -eq 0 && as_status=1
- if test "$4"; then
- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
- fi
- $as_echo "$as_me: error: $2" >&2
- as_fn_exit $as_status
-} # as_fn_error
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
- as_basename=basename
-else
- as_basename=false
-fi
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
-else
- as_dirname=false
-fi
-
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
-
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-
- as_lineno_1=$LINENO as_lineno_1a=$LINENO
- as_lineno_2=$LINENO as_lineno_2a=$LINENO
- eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
- test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
- # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
- sed -n '
- p
- /[$]LINENO/=
- ' <$as_myself |
- sed '
- s/[$]LINENO.*/&-/
- t lineno
- b
- :lineno
- N
- :loop
- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
- t loop
- s/-\n.*//
- ' >$as_me.lineno &&
- chmod +x "$as_me.lineno" ||
- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
-
- # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
- # already done that, so ensure we don't try to do so again and fall
- # in an infinite loop. This has already happened in practice.
- _as_can_reexec=no; export _as_can_reexec
- # Don't try to exec as it changes $[0], causing all sort of problems
- # (the dirname of $[0] is not the place where we might find the
- # original and so on. Autoconf is especially sensitive to this).
- . "./$as_me.lineno"
- # Exit status is that of the last command.
- exit
-}
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in #(((((
--n*)
- case `echo 'xy\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- xy) ECHO_C='\c';;
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
- ECHO_T=' ';;
- esac;;
-*)
- ECHO_N='-n';;
-esac
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
-else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
-fi
-if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -pR'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -pR'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -pR'
- fi
-else
- as_ln_s='cp -pR'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-if mkdir -p . 2>/dev/null; then
- as_mkdir_p='mkdir -p "$as_dir"'
-else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
-fi
-
-as_test_x='test -x'
-as_executable_p=as_fn_executable_p
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-test -n "$DJDIR" || exec 7<&0 </dev/null
-exec 6>&1
-
-# Name of the host.
-# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
-# so uname gets run too.
-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
-
-#
-# Initializations.
-#
-ac_default_prefix=/usr/local
-ac_clean_files=
-ac_config_libobj_dir=.
-LIBOBJS=
-cross_compiling=no
-subdirs=
-MFLAGS=
-MAKEFLAGS=
-
-# Identity of this package.
-PACKAGE_NAME='pmx (TeX Live)'
-PACKAGE_TARNAME='pmx--tex-live-'
-PACKAGE_VERSION='2.9.4a'
-PACKAGE_STRING='pmx (TeX Live) 2.9.4a'
-PACKAGE_BUGREPORT='tex-k@tug.org'
-PACKAGE_URL=''
-
-ac_unique_file="pmx-src/pmxab.c"
-# Factoring default headers for most tests.
-ac_includes_default="\
-#include <stdio.h>
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#ifdef HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-#else
-# ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-# endif
-#endif
-#ifdef HAVE_STRING_H
-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
-# include <memory.h>
-# endif
-# include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-# include <strings.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif"
-
-ac_subst_vars='am__EXEEXT_FALSE
-am__EXEEXT_TRUE
-LTLIBOBJS
-LIBOBJS
-PMX_TREE
-EGREP
-GREP
-CPP
-RANLIB
-LN_S
-WIN32_FALSE
-WIN32_TRUE
-PMX_DEFINES
-WARNING_CFLAGS
-am__fastdepCC_FALSE
-am__fastdepCC_TRUE
-CCDEPMODE
-am__nodep
-AMDEPBACKSLASH
-AMDEP_FALSE
-AMDEP_TRUE
-am__include
-DEPDIR
-OBJEXT
-EXEEXT
-ac_ct_CC
-CPPFLAGS
-LDFLAGS
-CFLAGS
-CC
-MAINT
-MAINTAINER_MODE_FALSE
-MAINTAINER_MODE_TRUE
-AM_BACKSLASH
-AM_DEFAULT_VERBOSITY
-AM_DEFAULT_V
-AM_V
-am__untar
-am__tar
-AMTAR
-am__leading_dot
-SET_MAKE
-AWK
-mkdir_p
-MKDIR_P
-INSTALL_STRIP_PROGRAM
-STRIP
-install_sh
-MAKEINFO
-AUTOHEADER
-AUTOMAKE
-AUTOCONF
-ACLOCAL
-VERSION
-PACKAGE
-CYGPATH_W
-am__isrc
-INSTALL_DATA
-INSTALL_SCRIPT
-INSTALL_PROGRAM
-target_alias
-host_alias
-build_alias
-LIBS
-ECHO_T
-ECHO_N
-ECHO_C
-DEFS
-mandir
-localedir
-libdir
-psdir
-pdfdir
-dvidir
-htmldir
-infodir
-docdir
-oldincludedir
-includedir
-localstatedir
-sharedstatedir
-sysconfdir
-datadir
-datarootdir
-libexecdir
-sbindir
-bindir
-program_transform_name
-prefix
-exec_prefix
-PACKAGE_URL
-PACKAGE_BUGREPORT
-PACKAGE_STRING
-PACKAGE_VERSION
-PACKAGE_TARNAME
-PACKAGE_NAME
-PATH_SEPARATOR
-SHELL
-am__quote'
-ac_subst_files=''
-ac_user_opts='
-enable_option_checking
-enable_silent_rules
-enable_maintainer_mode
-enable_dependency_tracking
-enable_compiler_warnings
-'
- ac_precious_vars='build_alias
-host_alias
-target_alias
-CC
-CFLAGS
-LDFLAGS
-LIBS
-CPPFLAGS
-CPP'
-
-
-# Initialize some variables set by options.
-ac_init_help=
-ac_init_version=false
-ac_unrecognized_opts=
-ac_unrecognized_sep=
-# The variables have the same names as the options, with
-# dashes changed to underlines.
-cache_file=/dev/null
-exec_prefix=NONE
-no_create=
-no_recursion=
-prefix=NONE
-program_prefix=NONE
-program_suffix=NONE
-program_transform_name=s,x,x,
-silent=
-site=
-srcdir=
-verbose=
-x_includes=NONE
-x_libraries=NONE
-
-# Installation directory options.
-# These are left unexpanded so users can "make install exec_prefix=/foo"
-# and all the variables that are supposed to be based on exec_prefix
-# by default will actually change.
-# Use braces instead of parens because sh, perl, etc. also accept them.
-# (The list follows the same order as the GNU Coding Standards.)
-bindir='${exec_prefix}/bin'
-sbindir='${exec_prefix}/sbin'
-libexecdir='${exec_prefix}/libexec'
-datarootdir='${prefix}/share'
-datadir='${datarootdir}'
-sysconfdir='${prefix}/etc'
-sharedstatedir='${prefix}/com'
-localstatedir='${prefix}/var'
-includedir='${prefix}/include'
-oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
-infodir='${datarootdir}/info'
-htmldir='${docdir}'
-dvidir='${docdir}'
-pdfdir='${docdir}'
-psdir='${docdir}'
-libdir='${exec_prefix}/lib'
-localedir='${datarootdir}/locale'
-mandir='${datarootdir}/man'
-
-ac_prev=
-ac_dashdash=
-for ac_option
-do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval $ac_prev=\$ac_option
- ac_prev=
- continue
- fi
-
- case $ac_option in
- *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
- *=) ac_optarg= ;;
- *) ac_optarg=yes ;;
- esac
-
- # Accept the important Cygnus configure options, so we can diagnose typos.
-
- case $ac_dashdash$ac_option in
- --)
- ac_dashdash=yes ;;
-
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir=$ac_optarg ;;
-
- -build | --build | --buil | --bui | --bu)
- ac_prev=build_alias ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build_alias=$ac_optarg ;;
-
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file=$ac_optarg ;;
-
- --config-cache | -C)
- cache_file=config.cache ;;
-
- -datadir | --datadir | --datadi | --datad)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=*)
- datadir=$ac_optarg ;;
-
- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
- | --dataroo | --dataro | --datar)
- ac_prev=datarootdir ;;
- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
- datarootdir=$ac_optarg ;;
-
- -disable-* | --disable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid feature name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
-"enable_$ac_useropt"
-"*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=no ;;
-
- -docdir | --docdir | --docdi | --doc | --do)
- ac_prev=docdir ;;
- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
- docdir=$ac_optarg ;;
-
- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
- ac_prev=dvidir ;;
- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
- dvidir=$ac_optarg ;;
-
- -enable-* | --enable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid feature name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
-"enable_$ac_useropt"
-"*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=\$ac_optarg ;;
-
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix=$ac_optarg ;;
-
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
-
- -help | --help | --hel | --he | -h)
- ac_init_help=long ;;
- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
- ac_init_help=recursive ;;
- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
- ac_init_help=short ;;
-
- -host | --host | --hos | --ho)
- ac_prev=host_alias ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host_alias=$ac_optarg ;;
-
- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
- ac_prev=htmldir ;;
- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
- | --ht=*)
- htmldir=$ac_optarg ;;
-
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir=$ac_optarg ;;
-
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir=$ac_optarg ;;
-
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir=$ac_optarg ;;
-
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir=$ac_optarg ;;
-
- -localedir | --localedir | --localedi | --localed | --locale)
- ac_prev=localedir ;;
- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
- localedir=$ac_optarg ;;
-
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst | --locals)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
- localstatedir=$ac_optarg ;;
-
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir=$ac_optarg ;;
-
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
-
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c | -n)
- no_create=yes ;;
-
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
-
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir=$ac_optarg ;;
-
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix=$ac_optarg ;;
-
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix=$ac_optarg ;;
-
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix=$ac_optarg ;;
-
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name=$ac_optarg ;;
-
- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
- ac_prev=pdfdir ;;
- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
- pdfdir=$ac_optarg ;;
-
- -psdir | --psdir | --psdi | --psd | --ps)
- ac_prev=psdir ;;
- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
- psdir=$ac_optarg ;;
-
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
-
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir=$ac_optarg ;;
-
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir=$ac_optarg ;;
-
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site=$ac_optarg ;;
-
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir=$ac_optarg ;;
-
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir=$ac_optarg ;;
-
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target_alias ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target_alias=$ac_optarg ;;
-
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
-
- -version | --version | --versio | --versi | --vers | -V)
- ac_init_version=: ;;
-
- -with-* | --with-*)
- ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid package name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
-"with_$ac_useropt"
-"*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval with_$ac_useropt=\$ac_optarg ;;
-
- -without-* | --without-*)
- ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid package name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
-"with_$ac_useropt"
-"*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval with_$ac_useropt=no ;;
-
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
-
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes=$ac_optarg ;;
-
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries=$ac_optarg ;;
-
- -*) as_fn_error $? "unrecognized option: \`$ac_option'
-Try \`$0 --help' for more information"
- ;;
-
- *=*)
- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
- # Reject names that are not valid shell variable names.
- case $ac_envvar in #(
- '' | [0-9]* | *[!_$as_cr_alnum]* )
- as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
- esac
- eval $ac_envvar=\$ac_optarg
- export $ac_envvar ;;
-
- *)
- # FIXME: should be removed in autoconf 3.0.
- $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
- ;;
-
- esac
-done
-
-if test -n "$ac_prev"; then
- ac_option=--`echo $ac_prev | sed 's/_/-/g'`
- as_fn_error $? "missing argument to $ac_option"
-fi
-
-if test -n "$ac_unrecognized_opts"; then
- case $enable_option_checking in
- no) ;;
- fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
- *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
- esac
-fi
-
-# Check all directory arguments for consistency.
-for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
- datadir sysconfdir sharedstatedir localstatedir includedir \
- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
- libdir localedir mandir
-do
- eval ac_val=\$$ac_var
- # Remove trailing slashes.
- case $ac_val in
- */ )
- ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
- eval $ac_var=\$ac_val;;
- esac
- # Be sure to have absolute directory names.
- case $ac_val in
- [\\/$]* | ?:[\\/]* ) continue;;
- NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
- esac
- as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
-done
-
-# There might be people who depend on the old broken behavior: `$host'
-# used to hold the argument of --host etc.
-# FIXME: To remove some day.
-build=$build_alias
-host=$host_alias
-target=$target_alias
-
-# FIXME: To remove some day.
-if test "x$host_alias" != x; then
- if test "x$build_alias" = x; then
- cross_compiling=maybe
- elif test "x$build_alias" != "x$host_alias"; then
- cross_compiling=yes
- fi
-fi
-
-ac_tool_prefix=
-test -n "$host_alias" && ac_tool_prefix=$host_alias-
-
-test "$silent" = yes && exec 6>/dev/null
-
-
-ac_pwd=`pwd` && test -n "$ac_pwd" &&
-ac_ls_di=`ls -di .` &&
-ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
- as_fn_error $? "working directory cannot be determined"
-test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
- as_fn_error $? "pwd does not report name of working directory"
-
-
-# Find the source files, if location was not specified.
-if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then the parent directory.
- ac_confdir=`$as_dirname -- "$as_myself" ||
-$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_myself" : 'X\(//\)[^/]' \| \
- X"$as_myself" : 'X\(//\)$' \| \
- X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_myself" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- srcdir=$ac_confdir
- if test ! -r "$srcdir/$ac_unique_file"; then
- srcdir=..
- fi
-else
- ac_srcdir_defaulted=no
-fi
-if test ! -r "$srcdir/$ac_unique_file"; then
- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
- as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
-fi
-ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
-ac_abs_confdir=`(
- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
- pwd)`
-# When building in place, set srcdir=.
-if test "$ac_abs_confdir" = "$ac_pwd"; then
- srcdir=.
-fi
-# Remove unnecessary trailing slashes from srcdir.
-# Double slashes in file names in object file debugging info
-# mess up M-x gdb in Emacs.
-case $srcdir in
-*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
-esac
-for ac_var in $ac_precious_vars; do
- eval ac_env_${ac_var}_set=\${${ac_var}+set}
- eval ac_env_${ac_var}_value=\$${ac_var}
- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
- eval ac_cv_env_${ac_var}_value=\$${ac_var}
-done
-
-#
-# Report the --help message.
-#
-if test "$ac_init_help" = "long"; then
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat <<_ACEOF
-\`configure' configures pmx (TeX Live) 2.9.4a to adapt to many kinds of systems.
-
-Usage: $0 [OPTION]... [VAR=VALUE]...
-
-To assign environment variables (e.g., CC, CFLAGS...), specify them as
-VAR=VALUE. See below for descriptions of some of the useful variables.
-
-Defaults for the options are specified in brackets.
-
-Configuration:
- -h, --help display this help and exit
- --help=short display options specific to this package
- --help=recursive display the short help of all the included packages
- -V, --version display version information and exit
- -q, --quiet, --silent do not print \`checking ...' messages
- --cache-file=FILE cache test results in FILE [disabled]
- -C, --config-cache alias for \`--cache-file=config.cache'
- -n, --no-create do not create output files
- --srcdir=DIR find the sources in DIR [configure dir or \`..']
-
-Installation directories:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [PREFIX]
-
-By default, \`make install' will install all the files in
-\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
-an installation prefix other than \`$ac_default_prefix' using \`--prefix',
-for instance \`--prefix=\$HOME'.
-
-For better control, use the options below.
-
-Fine tuning of the installation directories:
- --bindir=DIR user executables [EPREFIX/bin]
- --sbindir=DIR system admin executables [EPREFIX/sbin]
- --libexecdir=DIR program executables [EPREFIX/libexec]
- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
- --libdir=DIR object code libraries [EPREFIX/lib]
- --includedir=DIR C header files [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc [/usr/include]
- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
- --infodir=DIR info documentation [DATAROOTDIR/info]
- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
- --mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/pmx--tex-live-]
- --htmldir=DIR html documentation [DOCDIR]
- --dvidir=DIR dvi documentation [DOCDIR]
- --pdfdir=DIR pdf documentation [DOCDIR]
- --psdir=DIR ps documentation [DOCDIR]
-_ACEOF
-
- cat <<\_ACEOF
-
-Program names:
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM run sed PROGRAM on installed program names
-_ACEOF
-fi
-
-if test -n "$ac_init_help"; then
- case $ac_init_help in
- short | recursive ) echo "Configuration of pmx (TeX Live) 2.9.4a:";;
- esac
- cat <<\_ACEOF
-
-Optional Features:
- --disable-option-checking ignore unrecognized --enable/--with options
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --enable-silent-rules less verbose build output (undo: "make V=1")
- --disable-silent-rules verbose build output (undo: "make V=0")
- --enable-maintainer-mode
- enable make rules and dependencies not useful (and
- sometimes confusing) to the casual installer
- --enable-dependency-tracking
- do not reject slow dependency extractors
- --disable-dependency-tracking
- speeds up one-time build
- --enable-compiler-warnings=[no|min|yes|max|all]
- Turn on compiler warnings [default: yes if
- maintainer-mode, min otherwise]
-
-Some influential environment variables:
- CC C compiler command
- CFLAGS C compiler flags
- LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
- nonstandard directory <lib dir>
- LIBS libraries to pass to the linker, e.g. -l<library>
- CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
- you have headers in a nonstandard directory <include dir>
- CPP C preprocessor
-
-Use these variables to override the choices made by `configure' or to help
-it to find libraries and programs with nonstandard names/locations.
-
-Report bugs to <tex-k@tug.org>.
-_ACEOF
-ac_status=$?
-fi
-
-if test "$ac_init_help" = "recursive"; then
- # If there are subdirs, report their specific --help.
- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
- test -d "$ac_dir" ||
- { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
- continue
- ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
- case $ac_top_builddir_sub in
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
- esac ;;
-esac
-ac_abs_top_builddir=$ac_pwd
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
-# for backward compatibility:
-ac_top_builddir=$ac_top_build_prefix
-
-case $srcdir in
- .) # We are building in place.
- ac_srcdir=.
- ac_top_srcdir=$ac_top_builddir_sub
- ac_abs_top_srcdir=$ac_pwd ;;
- [\\/]* | ?:[\\/]* ) # Absolute name.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir
- ac_abs_top_srcdir=$srcdir ;;
- *) # Relative name.
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_build_prefix$srcdir
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-esac
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
-
- cd "$ac_dir" || { ac_status=$?; continue; }
- # Check for guested configure.
- if test -f "$ac_srcdir/configure.gnu"; then
- echo &&
- $SHELL "$ac_srcdir/configure.gnu" --help=recursive
- elif test -f "$ac_srcdir/configure"; then
- echo &&
- $SHELL "$ac_srcdir/configure" --help=recursive
- else
- $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
- fi || ac_status=$?
- cd "$ac_pwd" || { ac_status=$?; break; }
- done
-fi
-
-test -n "$ac_init_help" && exit $ac_status
-if $ac_init_version; then
- cat <<\_ACEOF
-pmx (TeX Live) configure 2.9.4a
-generated by GNU Autoconf 2.69
-
-Copyright (C) 2012 Free Software Foundation, Inc.
-This configure script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it.
-_ACEOF
- exit
-fi
-
-## ------------------------ ##
-## Autoconf initialization. ##
-## ------------------------ ##
-
-# ac_fn_c_try_compile LINENO
-# --------------------------
-# Try to compile conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_compile ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext
- if { { ac_try="$ac_compile"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then :
- ac_retval=0
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_retval=1
-fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_compile
-
-# ac_fn_c_try_link LINENO
-# -----------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_link ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { { ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- test -x conftest$ac_exeext
- }; then :
- ac_retval=0
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_retval=1
-fi
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
- # interfere with the next link command; also delete a directory that is
- # left behind by Apple's compiler. We do this before executing the actions.
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_link
-
-# ac_fn_c_try_run LINENO
-# ----------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
-# that executables *can* be run.
-ac_fn_c_try_run ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then :
- ac_retval=0
-else
- $as_echo "$as_me: program exited with status $ac_status" >&5
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_retval=$ac_status
-fi
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_run
-
-# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
-# --------------------------------------------
-# Tries to find the compile-time value of EXPR in a program that includes
-# INCLUDES, setting VAR accordingly. Returns whether the value could be
-# computed
-ac_fn_c_compute_int ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if test "$cross_compiling" = yes; then
- # Depending upon the size, compute the lo and hi bounds.
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-static int test_array [1 - 2 * !(($2) >= 0)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_lo=0 ac_mid=0
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-static int test_array [1 - 2 * !(($2) <= $ac_mid)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=$ac_mid; break
-else
- as_fn_arith $ac_mid + 1 && ac_lo=$as_val
- if test $ac_lo -le $ac_mid; then
- ac_lo= ac_hi=
- break
- fi
- as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-static int test_array [1 - 2 * !(($2) < 0)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=-1 ac_mid=-1
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-static int test_array [1 - 2 * !(($2) >= $ac_mid)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_lo=$ac_mid; break
-else
- as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
- if test $ac_mid -le $ac_hi; then
- ac_lo= ac_hi=
- break
- fi
- as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
-else
- ac_lo= ac_hi=
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-# Binary search between lo and hi bounds.
-while test "x$ac_lo" != "x$ac_hi"; do
- as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-static int test_array [1 - 2 * !(($2) <= $ac_mid)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=$ac_mid
-else
- as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-done
-case $ac_lo in #((
-?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
-'') ac_retval=1 ;;
-esac
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-static long int longval () { return $2; }
-static unsigned long int ulongval () { return $2; }
-#include <stdio.h>
-#include <stdlib.h>
-int
-main ()
-{
-
- FILE *f = fopen ("conftest.val", "w");
- if (! f)
- return 1;
- if (($2) < 0)
- {
- long int i = longval ();
- if (i != ($2))
- return 1;
- fprintf (f, "%ld", i);
- }
- else
- {
- unsigned long int i = ulongval ();
- if (i != ($2))
- return 1;
- fprintf (f, "%lu", i);
- }
- /* Do not output a trailing newline, as this causes \r\n confusion
- on some platforms. */
- return ferror (f) || fclose (f) != 0;
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
- echo >>conftest.val; read $3 <conftest.val; ac_retval=0
-else
- ac_retval=1
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-rm -f conftest.val
-
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_c_compute_int
-
-# ac_fn_c_try_cpp LINENO
-# ----------------------
-# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_cpp ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } > conftest.i && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then :
- ac_retval=0
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_retval=1
-fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_cpp
-
-# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
-# -------------------------------------------------------
-# Tests whether HEADER exists and can be compiled using the include files in
-# INCLUDES, setting the cache variable VAR accordingly.
-ac_fn_c_check_header_compile ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-#include <$2>
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- eval "$3=yes"
-else
- eval "$3=no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_c_check_header_compile
-cat >config.log <<_ACEOF
-This file contains any messages produced by compilers while
-running configure, to aid debugging if configure makes a mistake.
-
-It was created by pmx (TeX Live) $as_me 2.9.4a, which was
-generated by GNU Autoconf 2.69. Invocation command line was
-
- $ $0 $@
-
-_ACEOF
-exec 5>>config.log
-{
-cat <<_ASUNAME
-## --------- ##
-## Platform. ##
-## --------- ##
-
-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
-uname -m = `(uname -m) 2>/dev/null || echo unknown`
-uname -r = `(uname -r) 2>/dev/null || echo unknown`
-uname -s = `(uname -s) 2>/dev/null || echo unknown`
-uname -v = `(uname -v) 2>/dev/null || echo unknown`
-
-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
-
-/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
-/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
-/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
-/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
-
-_ASUNAME
-
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- $as_echo "PATH: $as_dir"
- done
-IFS=$as_save_IFS
-
-} >&5
-
-cat >&5 <<_ACEOF
-
-
-## ----------- ##
-## Core tests. ##
-## ----------- ##
-
-_ACEOF
-
-
-# Keep a trace of the command line.
-# Strip out --no-create and --no-recursion so they do not pile up.
-# Strip out --silent because we don't want to record it for future runs.
-# Also quote any args containing shell meta-characters.
-# Make two passes to allow for proper duplicate-argument suppression.
-ac_configure_args=
-ac_configure_args0=
-ac_configure_args1=
-ac_must_keep_next=false
-for ac_pass in 1 2
-do
- for ac_arg
- do
- case $ac_arg in
- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- continue ;;
- *\'*)
- ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
- esac
- case $ac_pass in
- 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
- 2)
- as_fn_append ac_configure_args1 " '$ac_arg'"
- if test $ac_must_keep_next = true; then
- ac_must_keep_next=false # Got value, back to normal.
- else
- case $ac_arg in
- *=* | --config-cache | -C | -disable-* | --disable-* \
- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
- | -with-* | --with-* | -without-* | --without-* | --x)
- case "$ac_configure_args0 " in
- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
- esac
- ;;
- -* ) ac_must_keep_next=true ;;
- esac
- fi
- as_fn_append ac_configure_args " '$ac_arg'"
- ;;
- esac
- done
-done
-{ ac_configure_args0=; unset ac_configure_args0;}
-{ ac_configure_args1=; unset ac_configure_args1;}
-
-# When interrupted or exit'd, cleanup temporary files, and complete
-# config.log. We remove comments because anyway the quotes in there
-# would cause problems or look ugly.
-# WARNING: Use '\'' to represent an apostrophe within the trap.
-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
-trap 'exit_status=$?
- # Save into config.log some information that might help in debugging.
- {
- echo
-
- $as_echo "## ---------------- ##
-## Cache variables. ##
-## ---------------- ##"
- echo
- # The following way of writing the cache mishandles newlines in values,
-(
- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
- eval ac_val=\$$ac_var
- case $ac_val in #(
- *${as_nl}*)
- case $ac_var in #(
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
- esac
- case $ac_var in #(
- _ | IFS | as_nl) ;; #(
- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
- *) { eval $ac_var=; unset $ac_var;} ;;
- esac ;;
- esac
- done
- (set) 2>&1 |
- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
- *${as_nl}ac_space=\ *)
- sed -n \
- "s/'\''/'\''\\\\'\'''\''/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
- ;; #(
- *)
- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
- ;;
- esac |
- sort
-)
- echo
-
- $as_echo "## ----------------- ##
-## Output variables. ##
-## ----------------- ##"
- echo
- for ac_var in $ac_subst_vars
- do
- eval ac_val=\$$ac_var
- case $ac_val in
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
- esac
- $as_echo "$ac_var='\''$ac_val'\''"
- done | sort
- echo
-
- if test -n "$ac_subst_files"; then
- $as_echo "## ------------------- ##
-## File substitutions. ##
-## ------------------- ##"
- echo
- for ac_var in $ac_subst_files
- do
- eval ac_val=\$$ac_var
- case $ac_val in
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
- esac
- $as_echo "$ac_var='\''$ac_val'\''"
- done | sort
- echo
- fi
-
- if test -s confdefs.h; then
- $as_echo "## ----------- ##
-## confdefs.h. ##
-## ----------- ##"
- echo
- cat confdefs.h
- echo
- fi
- test "$ac_signal" != 0 &&
- $as_echo "$as_me: caught signal $ac_signal"
- $as_echo "$as_me: exit $exit_status"
- } >&5
- rm -f core *.core core.conftest.* &&
- rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
- exit $exit_status
-' 0
-for ac_signal in 1 2 13 15; do
- trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
-done
-ac_signal=0
-
-# confdefs.h avoids OS command line length limits that DEFS can exceed.
-rm -f -r conftest* confdefs.h
-
-$as_echo "/* confdefs.h */" > confdefs.h
-
-# Predefined preprocessor variables.
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_NAME "$PACKAGE_NAME"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_VERSION "$PACKAGE_VERSION"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_STRING "$PACKAGE_STRING"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_URL "$PACKAGE_URL"
-_ACEOF
-
-
-# Let the site file select an alternate cache file if it wants to.
-# Prefer an explicitly selected file to automatically selected ones.
-ac_site_file1=NONE
-ac_site_file2=NONE
-if test -n "$CONFIG_SITE"; then
- # We do not want a PATH search for config.site.
- case $CONFIG_SITE in #((
- -*) ac_site_file1=./$CONFIG_SITE;;
- */*) ac_site_file1=$CONFIG_SITE;;
- *) ac_site_file1=./$CONFIG_SITE;;
- esac
-elif test "x$prefix" != xNONE; then
- ac_site_file1=$prefix/share/config.site
- ac_site_file2=$prefix/etc/config.site
-else
- ac_site_file1=$ac_default_prefix/share/config.site
- ac_site_file2=$ac_default_prefix/etc/config.site
-fi
-for ac_site_file in "$ac_site_file1" "$ac_site_file2"
-do
- test "x$ac_site_file" = xNONE && continue
- if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
-$as_echo "$as_me: loading site script $ac_site_file" >&6;}
- sed 's/^/| /' "$ac_site_file" >&5
- . "$ac_site_file" \
- || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "failed to load site script $ac_site_file
-See \`config.log' for more details" "$LINENO" 5; }
- fi
-done
-
-if test -r "$cache_file"; then
- # Some versions of bash will fail to source /dev/null (special files
- # actually), so we avoid doing that. DJGPP emulates it as a regular file.
- if test /dev/null != "$cache_file" && test -f "$cache_file"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
-$as_echo "$as_me: loading cache $cache_file" >&6;}
- case $cache_file in
- [\\/]* | ?:[\\/]* ) . "$cache_file";;
- *) . "./$cache_file";;
- esac
- fi
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
-$as_echo "$as_me: creating cache $cache_file" >&6;}
- >$cache_file
-fi
-
-# Check that the precious variables saved in the cache have kept the same
-# value.
-ac_cache_corrupted=false
-for ac_var in $ac_precious_vars; do
- eval ac_old_set=\$ac_cv_env_${ac_var}_set
- eval ac_new_set=\$ac_env_${ac_var}_set
- eval ac_old_val=\$ac_cv_env_${ac_var}_value
- eval ac_new_val=\$ac_env_${ac_var}_value
- case $ac_old_set,$ac_new_set in
- set,)
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
-$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,set)
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
-$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,);;
- *)
- if test "x$ac_old_val" != "x$ac_new_val"; then
- # differences in whitespace do not lead to failure.
- ac_old_val_w=`echo x $ac_old_val`
- ac_new_val_w=`echo x $ac_new_val`
- if test "$ac_old_val_w" != "$ac_new_val_w"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
-$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
- ac_cache_corrupted=:
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
-$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
- eval $ac_var=\$ac_old_val
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
-$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
-$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
- fi;;
- esac
- # Pass precious variables to config.status.
- if test "$ac_new_set" = set; then
- case $ac_new_val in
- *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
- *) ac_arg=$ac_var=$ac_new_val ;;
- esac
- case " $ac_configure_args " in
- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
- *) as_fn_append ac_configure_args " '$ac_arg'" ;;
- esac
- fi
-done
-if $ac_cache_corrupted; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
-$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
- as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
-fi
-## -------------------- ##
-## Main body of script. ##
-## -------------------- ##
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-
-
-ac_aux_dir=
-for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
- if test -f "$ac_dir/install-sh"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f "$ac_dir/install.sh"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- elif test -f "$ac_dir/shtool"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/shtool install -c"
- break
- fi
-done
-if test -z "$ac_aux_dir"; then
- as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
-fi
-
-# These three variables are undocumented and unsupported,
-# and are intended to be withdrawn in a future Autoconf release.
-# They can cause serious problems if a builder's source tree is in a directory
-# whose full name contains unusual characters.
-ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
-ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
-ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
-
-
-
-
-am__api_version='1.16'
-
-# Find a good install program. We prefer a C program (faster),
-# so one script is as good as another. But avoid the broken or
-# incompatible versions:
-# SysV /etc/install, /usr/sbin/install
-# SunOS /usr/etc/install
-# IRIX /sbin/install
-# AIX /bin/install
-# AmigaOS /C/install, which installs bootblocks on floppy discs
-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
-# OS/2's system install, which has a completely different semantic
-# ./install, which can be erroneously created by make from ./install.sh.
-# Reject install programs that cannot install multiple files.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
-$as_echo_n "checking for a BSD-compatible install... " >&6; }
-if test -z "$INSTALL"; then
-if ${ac_cv_path_install+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- # Account for people who put trailing slashes in PATH elements.
-case $as_dir/ in #((
- ./ | .// | /[cC]/* | \
- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
- ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
- /usr/ucb/* ) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
- if test $ac_prog = install &&
- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- elif test $ac_prog = install &&
- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # program-specific install script used by HP pwplus--don't use.
- :
- else
- rm -rf conftest.one conftest.two conftest.dir
- echo one > conftest.one
- echo two > conftest.two
- mkdir conftest.dir
- if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
- test -s conftest.one && test -s conftest.two &&
- test -s conftest.dir/conftest.one &&
- test -s conftest.dir/conftest.two
- then
- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
- break 3
- fi
- fi
- fi
- done
- done
- ;;
-esac
-
- done
-IFS=$as_save_IFS
-
-rm -rf conftest.one conftest.two conftest.dir
-
-fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL=$ac_cv_path_install
- else
- # As a last resort, use the slow shell script. Don't cache a
- # value for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the value is a relative name.
- INSTALL=$ac_install_sh
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
-$as_echo "$INSTALL" >&6; }
-
-# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
-# It thinks the first close brace ends the variable substitution.
-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
-
-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
-
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
-$as_echo_n "checking whether build environment is sane... " >&6; }
-# Reject unsafe characters in $srcdir or the absolute working directory
-# name. Accept space and tab only in the latter.
-am_lf='
-'
-case `pwd` in
- *[\\\"\#\$\&\'\`$am_lf]*)
- as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
-esac
-case $srcdir in
- *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
- as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
-esac
-
-# Do 'set' in a subshell so we don't clobber the current shell's
-# arguments. Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
- am_has_slept=no
- for am_try in 1 2; do
- echo "timestamp, slept: $am_has_slept" > conftest.file
- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
- if test "$*" = "X"; then
- # -L didn't work.
- set X `ls -t "$srcdir/configure" conftest.file`
- fi
- if test "$*" != "X $srcdir/configure conftest.file" \
- && test "$*" != "X conftest.file $srcdir/configure"; then
-
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
- alias in your environment" "$LINENO" 5
- fi
- if test "$2" = conftest.file || test $am_try -eq 2; then
- break
- fi
- # Just in case.
- sleep 1
- am_has_slept=yes
- done
- test "$2" = conftest.file
- )
-then
- # Ok.
- :
-else
- as_fn_error $? "newly created file is older than distributed files!
-Check your system clock" "$LINENO" 5
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-# If we didn't sleep, we still need to ensure time stamps of config.status and
-# generated files are strictly newer.
-am_sleep_pid=
-if grep 'slept: no' conftest.file >/dev/null 2>&1; then
- ( sleep 1 ) &
- am_sleep_pid=$!
-fi
-
-rm -f conftest.file
-
-test "$program_prefix" != NONE &&
- program_transform_name="s&^&$program_prefix&;$program_transform_name"
-# Use a double $ so make ignores it.
-test "$program_suffix" != NONE &&
- program_transform_name="s&\$&$program_suffix&;$program_transform_name"
-# Double any \ or $.
-# By default was `s,x,x', remove it if useless.
-ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
-program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
-
-# Expand $ac_aux_dir to an absolute path.
-am_aux_dir=`cd "$ac_aux_dir" && pwd`
-
-if test x"${MISSING+set}" != xset; then
- MISSING="\${SHELL} '$am_aux_dir/missing'"
-fi
-# Use eval to expand $SHELL
-if eval "$MISSING --is-lightweight"; then
- am_missing_run="$MISSING "
-else
- am_missing_run=
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
-$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
-fi
-
-if test x"${install_sh+set}" != xset; then
- case $am_aux_dir in
- *\ * | *\ *)
- install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
- *)
- install_sh="\${SHELL} $am_aux_dir/install-sh"
- esac
-fi
-
-# Installed binaries are usually stripped using 'strip' when the user
-# run "make install-strip". However 'strip' might not be the right
-# tool to use in cross-compilation environments, therefore Automake
-# will honor the 'STRIP' environment variable to overrule this program.
-if test "$cross_compiling" != no; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
-set dummy ${ac_tool_prefix}strip; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_STRIP+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$STRIP"; then
- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-STRIP=$ac_cv_prog_STRIP
-if test -n "$STRIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
-$as_echo "$STRIP" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_STRIP"; then
- ac_ct_STRIP=$STRIP
- # Extract the first word of "strip", so it can be a program name with args.
-set dummy strip; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_STRIP"; then
- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_STRIP="strip"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
-if test -n "$ac_ct_STRIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
-$as_echo "$ac_ct_STRIP" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- if test "x$ac_ct_STRIP" = x; then
- STRIP=":"
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- STRIP=$ac_ct_STRIP
- fi
-else
- STRIP="$ac_cv_prog_STRIP"
-fi
-
-fi
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
-$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
-if test -z "$MKDIR_P"; then
- if ${ac_cv_path_mkdir+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in mkdir gmkdir; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
- case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
- 'mkdir (GNU coreutils) '* | \
- 'mkdir (coreutils) '* | \
- 'mkdir (fileutils) '4.1*)
- ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
- break 3;;
- esac
- done
- done
- done
-IFS=$as_save_IFS
-
-fi
-
- test -d ./--version && rmdir ./--version
- if test "${ac_cv_path_mkdir+set}" = set; then
- MKDIR_P="$ac_cv_path_mkdir -p"
- else
- # As a last resort, use the slow shell script. Don't cache a
- # value for MKDIR_P within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the value is a relative name.
- MKDIR_P="$ac_install_sh -d"
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
-$as_echo "$MKDIR_P" >&6; }
-
-for ac_prog in gawk mawk nawk awk
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_AWK+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$AWK"; then
- ac_cv_prog_AWK="$AWK" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_AWK="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-AWK=$ac_cv_prog_AWK
-if test -n "$AWK"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
-$as_echo "$AWK" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$AWK" && break
-done
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
-$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
-set x ${MAKE-make}
-ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
-if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat >conftest.make <<\_ACEOF
-SHELL = /bin/sh
-all:
- @echo '@@@%%%=$(MAKE)=@@@%%%'
-_ACEOF
-# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
-case `${MAKE-make} -f conftest.make 2>/dev/null` in
- *@@@%%%=?*=@@@%%%*)
- eval ac_cv_prog_make_${ac_make}_set=yes;;
- *)
- eval ac_cv_prog_make_${ac_make}_set=no;;
-esac
-rm -f conftest.make
-fi
-if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- SET_MAKE=
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- SET_MAKE="MAKE=${MAKE-make}"
-fi
-
-rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
- am__leading_dot=.
-else
- am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-
-# Check whether --enable-silent-rules was given.
-if test "${enable_silent_rules+set}" = set; then :
- enableval=$enable_silent_rules;
-fi
-
-case $enable_silent_rules in # (((
- yes) AM_DEFAULT_VERBOSITY=0;;
- no) AM_DEFAULT_VERBOSITY=1;;
- *) AM_DEFAULT_VERBOSITY=1;;
-esac
-am_make=${MAKE-make}
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
-$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
-if ${am_cv_make_support_nested_variables+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if $as_echo 'TRUE=$(BAR$(V))
-BAR0=false
-BAR1=true
-V=1
-am__doit:
- @$(TRUE)
-.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
- am_cv_make_support_nested_variables=yes
-else
- am_cv_make_support_nested_variables=no
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
-$as_echo "$am_cv_make_support_nested_variables" >&6; }
-if test $am_cv_make_support_nested_variables = yes; then
- AM_V='$(V)'
- AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
-else
- AM_V=$AM_DEFAULT_VERBOSITY
- AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
-fi
-AM_BACKSLASH='\'
-
-DEPDIR="${am__leading_dot}deps"
-
-ac_config_commands="$ac_config_commands depfiles"
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
-$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
-cat > confinc.mk << 'END'
-am__doit:
- @echo this is the am__doit target >confinc.out
-.PHONY: am__doit
-END
-am__include="#"
-am__quote=
-# BSD make does it like this.
-echo '.include "confinc.mk" # ignored' > confmf.BSD
-# Other make implementations (GNU, Solaris 10, AIX) do it like this.
-echo 'include confinc.mk # ignored' > confmf.GNU
-_am_result=no
-for s in GNU BSD; do
- { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
- (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
- case $?:`cat confinc.out 2>/dev/null` in #(
- '0:this is the am__doit target') :
- case $s in #(
- BSD) :
- am__include='.include' am__quote='"' ;; #(
- *) :
- am__include='include' am__quote='' ;;
-esac ;; #(
- *) :
- ;;
-esac
- if test "$am__include" != "#"; then
- _am_result="yes ($s style)"
- break
- fi
-done
-rm -f confinc.* confmf.*
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
-$as_echo "${_am_result}" >&6; }
-
-# Check whether --enable-dependency-tracking was given.
-if test "${enable_dependency_tracking+set}" = set; then :
- enableval=$enable_dependency_tracking;
-fi
-
-if test "x$enable_dependency_tracking" != xno; then
- am_depcomp="$ac_aux_dir/depcomp"
- AMDEPBACKSLASH='\'
- am__nodep='_no'
-fi
- if test "x$enable_dependency_tracking" != xno; then
- AMDEP_TRUE=
- AMDEP_FALSE='#'
-else
- AMDEP_TRUE='#'
- AMDEP_FALSE=
-fi
-
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}gcc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="${ac_tool_prefix}gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
-$as_echo "$ac_ct_CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- CC=$ac_ct_CC
- fi
-else
- CC="$ac_cv_prog_CC"
-fi
-
-if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}cc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="${ac_tool_prefix}cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- fi
-fi
-if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- ac_prog_rejected=no
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# != 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
- fi
-fi
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- for ac_prog in cl.exe
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$CC" && break
- done
-fi
-if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in cl.exe
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
-$as_echo "$ac_ct_CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$ac_ct_CC" && break
-done
-
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- CC=$ac_ct_CC
- fi
-fi
-
-fi
-
-
-test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5; }
-
-# Provide some information about the compiler.
-$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
-set X $ac_compile
-ac_compiler=$2
-for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
-... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-done
-
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
-# Try to create an executable without -o first, disregard a.out.
-# It will help us diagnose broken compilers, and finding out an intuition
-# of exeext.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
-$as_echo_n "checking whether the C compiler works... " >&6; }
-ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
-
-# The possible output files:
-ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
-
-ac_rmfiles=
-for ac_file in $ac_files
-do
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
- * ) ac_rmfiles="$ac_rmfiles $ac_file";;
- esac
-done
-rm -f $ac_rmfiles
-
-if { { ac_try="$ac_link_default"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link_default") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
-# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
-# in a Makefile. We should not override ac_cv_exeext if it was cached,
-# so that the user can short-circuit this test for compilers unknown to
-# Autoconf.
-for ac_file in $ac_files ''
-do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
- ;;
- [ab].out )
- # We found the default executable, but exeext='' is most
- # certainly right.
- break;;
- *.* )
- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
- then :; else
- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- fi
- # We set ac_cv_exeext here because the later test for it is not
- # safe: cross compilers may not add the suffix if given an `-o'
- # argument, so we may need to know it at that point already.
- # Even if this section looks crufty: it has the advantage of
- # actually working.
- break;;
- * )
- break;;
- esac
-done
-test "$ac_cv_exeext" = no && ac_cv_exeext=
-
-else
- ac_file=''
-fi
-if test -z "$ac_file"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-$as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error 77 "C compiler cannot create executables
-See \`config.log' for more details" "$LINENO" 5; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
-$as_echo_n "checking for C compiler default output file name... " >&6; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
-$as_echo "$ac_file" >&6; }
-ac_exeext=$ac_cv_exeext
-
-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
-ac_clean_files=$ac_clean_files_save
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
-$as_echo_n "checking for suffix of executables... " >&6; }
-if { { ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- # If both `conftest.exe' and `conftest' are `present' (well, observable)
-# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
-# work properly (i.e., refer to `conftest.exe'), while it won't with
-# `rm'.
-for ac_file in conftest.exe conftest conftest.*; do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- break;;
- * ) break;;
- esac
-done
-else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-rm -f conftest conftest$ac_cv_exeext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
-$as_echo "$ac_cv_exeext" >&6; }
-
-rm -f conftest.$ac_ext
-EXEEXT=$ac_cv_exeext
-ac_exeext=$EXEEXT
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdio.h>
-int
-main ()
-{
-FILE *f = fopen ("conftest.out", "w");
- return ferror (f) || fclose (f) != 0;
-
- ;
- return 0;
-}
-_ACEOF
-ac_clean_files="$ac_clean_files conftest.out"
-# Check that the compiler produces executables we can run. If not, either
-# the compiler is broken, or we cross compile.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
-$as_echo_n "checking whether we are cross compiling... " >&6; }
-if test "$cross_compiling" != yes; then
- { { ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- if { ac_try='./conftest$ac_cv_exeext'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then
- cross_compiling=no
- else
- if test "$cross_compiling" = maybe; then
- cross_compiling=yes
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run C compiled programs.
-If you meant to cross compile, use \`--host'.
-See \`config.log' for more details" "$LINENO" 5; }
- fi
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
-$as_echo "$cross_compiling" >&6; }
-
-rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
-ac_clean_files=$ac_clean_files_save
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
-$as_echo_n "checking for suffix of object files... " >&6; }
-if ${ac_cv_objext+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.o conftest.obj
-if { { ac_try="$ac_compile"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- for ac_file in conftest.o conftest.obj conftest.*; do
- test -f "$ac_file" || continue;
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
- break;;
- esac
-done
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot compute suffix of object files: cannot compile
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-rm -f conftest.$ac_cv_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
-$as_echo "$ac_cv_objext" >&6; }
-OBJEXT=$ac_cv_objext
-ac_objext=$OBJEXT
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
-$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
-if ${ac_cv_c_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-#ifndef __GNUC__
- choke me
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
-else
- ac_compiler_gnu=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-ac_cv_c_compiler_gnu=$ac_compiler_gnu
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
-$as_echo "$ac_cv_c_compiler_gnu" >&6; }
-if test $ac_compiler_gnu = yes; then
- GCC=yes
-else
- GCC=
-fi
-ac_test_CFLAGS=${CFLAGS+set}
-ac_save_CFLAGS=$CFLAGS
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
-$as_echo_n "checking whether $CC accepts -g... " >&6; }
-if ${ac_cv_prog_cc_g+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_save_c_werror_flag=$ac_c_werror_flag
- ac_c_werror_flag=yes
- ac_cv_prog_cc_g=no
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
-else
- CFLAGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-else
- ac_c_werror_flag=$ac_save_c_werror_flag
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_c_werror_flag=$ac_save_c_werror_flag
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
-$as_echo "$ac_cv_prog_cc_g" >&6; }
-if test "$ac_test_CFLAGS" = set; then
- CFLAGS=$ac_save_CFLAGS
-elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
-else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
-$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
-if ${ac_cv_prog_cc_c89+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_cv_prog_cc_c89=no
-ac_save_CC=$CC
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdarg.h>
-#include <stdio.h>
-struct stat;
-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
-struct buf { int x; };
-FILE * (*rcsopen) (struct buf *, struct stat *, int);
-static char *e (p, i)
- char **p;
- int i;
-{
- return p[i];
-}
-static char *f (char * (*g) (char **, int), char **p, ...)
-{
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
-}
-
-/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
- function prototypes and stuff, but not '\xHH' hex character constants.
- These don't provoke an error unfortunately, instead are silently treated
- as 'x'. The following induces an error, until -std is added to get
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
- array size at least. It's necessary to write '\x00'==0 to get something
- that's true only with -std. */
-int osf4_cc_array ['\x00' == 0 ? 1 : -1];
-
-/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
- inside strings and character constants. */
-#define FOO(x) 'x'
-int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
-
-int test (int i, double x);
-struct s1 {int (*f) (int a);};
-struct s2 {int (*f) (double a);};
-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
-int argc;
-char **argv;
-int
-main ()
-{
-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
- return 0;
-}
-_ACEOF
-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
-do
- CC="$ac_save_CC $ac_arg"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_c89=$ac_arg
-fi
-rm -f core conftest.err conftest.$ac_objext
- test "x$ac_cv_prog_cc_c89" != "xno" && break
-done
-rm -f conftest.$ac_ext
-CC=$ac_save_CC
-
-fi
-# AC_CACHE_VAL
-case "x$ac_cv_prog_cc_c89" in
- x)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
-$as_echo "none needed" >&6; } ;;
- xno)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
-$as_echo "unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c89"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
-$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
-esac
-if test "x$ac_cv_prog_cc_c89" != xno; then :
-
-fi
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
-$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
-if ${am_cv_prog_cc_c_o+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
- # Make sure it works both with $CC and with simple cc.
- # Following AC_PROG_CC_C_O, we do the test twice because some
- # compilers refuse to overwrite an existing .o file with -o,
- # though they will create one.
- am_cv_prog_cc_c_o=yes
- for am_i in 1 2; do
- if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
- ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } \
- && test -f conftest2.$ac_objext; then
- : OK
- else
- am_cv_prog_cc_c_o=no
- break
- fi
- done
- rm -f core conftest*
- unset am_i
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
-$as_echo "$am_cv_prog_cc_c_o" >&6; }
-if test "$am_cv_prog_cc_c_o" != yes; then
- # Losing compiler, so override with the script.
- # FIXME: It is wrong to rewrite CC.
- # But if we don't then we get into trouble of one sort or another.
- # A longer-term fix would be to have automake use am__CC in this case,
- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
- CC="$am_aux_dir/compile $CC"
-fi
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-depcc="$CC" am_compiler_list=
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
-$as_echo_n "checking dependency style of $depcc... " >&6; }
-if ${am_cv_CC_dependencies_compiler_type+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
- # We make a subdir and do the tests there. Otherwise we can end up
- # making bogus files that we don't know about and never remove. For
- # instance it was reported that on HP-UX the gcc test will end up
- # making a dummy file named 'D' -- because '-MD' means "put the output
- # in D".
- rm -rf conftest.dir
- mkdir conftest.dir
- # Copy depcomp to subdir because otherwise we won't find it if we're
- # using a relative directory.
- cp "$am_depcomp" conftest.dir
- cd conftest.dir
- # We will build objects and dependencies in a subdirectory because
- # it helps to detect inapplicable dependency modes. For instance
- # both Tru64's cc and ICC support -MD to output dependencies as a
- # side effect of compilation, but ICC will put the dependencies in
- # the current directory while Tru64 will put them in the object
- # directory.
- mkdir sub
-
- am_cv_CC_dependencies_compiler_type=none
- if test "$am_compiler_list" = ""; then
- am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
- fi
- am__universal=false
- case " $depcc " in #(
- *\ -arch\ *\ -arch\ *) am__universal=true ;;
- esac
-
- for depmode in $am_compiler_list; do
- # Setup a source with many dependencies, because some compilers
- # like to wrap large dependency lists on column 80 (with \), and
- # we should not choose a depcomp mode which is confused by this.
- #
- # We need to recreate these files for each test, as the compiler may
- # overwrite some of them when testing with obscure command lines.
- # This happens at least with the AIX C compiler.
- : > sub/conftest.c
- for i in 1 2 3 4 5 6; do
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
- # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
- # Solaris 10 /bin/sh.
- echo '/* dummy */' > sub/conftst$i.h
- done
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
- # We check with '-c' and '-o' for the sake of the "dashmstdout"
- # mode. It turns out that the SunPro C++ compiler does not properly
- # handle '-M -o', and we need to detect this. Also, some Intel
- # versions had trouble with output in subdirs.
- am__obj=sub/conftest.${OBJEXT-o}
- am__minus_obj="-o $am__obj"
- case $depmode in
- gcc)
- # This depmode causes a compiler race in universal mode.
- test "$am__universal" = false || continue
- ;;
- nosideeffect)
- # After this tag, mechanisms are not by side-effect, so they'll
- # only be used when explicitly requested.
- if test "x$enable_dependency_tracking" = xyes; then
- continue
- else
- break
- fi
- ;;
- msvc7 | msvc7msys | msvisualcpp | msvcmsys)
- # This compiler won't grok '-c -o', but also, the minuso test has
- # not run yet. These depmodes are late enough in the game, and
- # so weak that their functioning should not be impacted.
- am__obj=conftest.${OBJEXT-o}
- am__minus_obj=
- ;;
- none) break ;;
- esac
- if depmode=$depmode \
- source=sub/conftest.c object=$am__obj \
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
- $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
- >/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- # icc doesn't choke on unknown options, it will just issue warnings
- # or remarks (even with -Werror). So we grep stderr for any message
- # that says an option was ignored or not supported.
- # When given -MP, icc 7.0 and 7.1 complain thusly:
- # icc: Command line warning: ignoring option '-M'; no argument required
- # The diagnosis changed in icc 8.0:
- # icc: Command line remark: option '-MP' not supported
- if (grep 'ignoring option' conftest.err ||
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
- am_cv_CC_dependencies_compiler_type=$depmode
- break
- fi
- fi
- done
-
- cd ..
- rm -rf conftest.dir
-else
- am_cv_CC_dependencies_compiler_type=none
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
-$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
-CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
-
- if
- test "x$enable_dependency_tracking" != xno \
- && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
- am__fastdepCC_TRUE=
- am__fastdepCC_FALSE='#'
-else
- am__fastdepCC_TRUE='#'
- am__fastdepCC_FALSE=
-fi
-
-
-
-# Check whether --enable-compiler-warnings was given.
-if test "${enable_compiler_warnings+set}" = set; then :
- enableval=$enable_compiler_warnings;
-fi
-case $enable_compiler_warnings in #(
- no | min | yes | max | all) :
- ;; #(
- *) :
- if test "x$enable_maintainer_mode" = xyes; then :
- enable_compiler_warnings=yes
-else
- enable_compiler_warnings=min
-fi ;;
-esac
-
-##tldbg KPSE_BASIC: Remember pmx () as Kpse_Package (for future messages).
-
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
- # is not polluted with repeated "-I."
- am__isrc=' -I$(srcdir)'
- # test to see if srcdir already configured
- if test -f $srcdir/config.status; then
- as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
- fi
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
- if (cygpath --version) >/dev/null 2>/dev/null; then
- CYGPATH_W='cygpath -w'
- else
- CYGPATH_W=echo
- fi
-fi
-
-
-# Define the identity of the package.
- PACKAGE='pmx--tex-live-'
- VERSION='2.9.4a'
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE "$PACKAGE"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define VERSION "$VERSION"
-_ACEOF
-
-# Some tools Automake needs.
-
-ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
-
-
-AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
-
-
-AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
-
-
-AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
-
-
-MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
-
-# For better backward compatibility. To be removed once Automake 1.9.x
-# dies out for good. For more background, see:
-# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
-# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
-mkdir_p='$(MKDIR_P)'
-
-# We need awk for the "check" target (and possibly the TAP driver). The
-# system "awk" is bad on some platforms.
-# Always define AMTAR for backward compatibility. Yes, it's still used
-# in the wild :-( We should find a proper way to deprecate it ...
-AMTAR='$${TAR-tar}'
-
-
-# We'll loop over all known methods to create a tar archive until one works.
-_am_tools='gnutar pax cpio none'
-
-am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
-
-
-
-
-
-
-# POSIX will say in a future version that running "rm -f" with no argument
-# is OK; and we want to be able to make that assumption in our Makefile
-# recipes. So use an aggressive probe to check that the usage we want is
-# actually supported "in the wild" to an acceptable degree.
-# See automake bug#10828.
-# To make any issue more visible, cause the running configure to be aborted
-# by default if the 'rm' program in use doesn't match our expectations; the
-# user can still override this though.
-if rm -f && rm -fr && rm -rf; then : OK; else
- cat >&2 <<'END'
-Oops!
-
-Your 'rm' program seems unable to run without file operands specified
-on the command line, even when the '-f' option is present. This is contrary
-to the behaviour of most rm programs out there, and not conforming with
-the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
-
-Please tell bug-automake@gnu.org about your system, including the value
-of your $PATH and any error possibly output before this message. This
-can help us improve future automake versions.
-
-END
- if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
- echo 'Configuration will proceed anyway, since you have set the' >&2
- echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
- echo >&2
- else
- cat >&2 <<'END'
-Aborting the configuration process, to ensure you take notice of the issue.
-
-You can download and install GNU coreutils to get an 'rm' implementation
-that behaves properly: <https://www.gnu.org/software/coreutils/>.
-
-If you want to complete the configuration process using your problematic
-'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
-to "yes", and re-run configure.
-
-END
- as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
- fi
-fi
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
-$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
- # Check whether --enable-maintainer-mode was given.
-if test "${enable_maintainer_mode+set}" = set; then :
- enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
-else
- USE_MAINTAINER_MODE=no
-fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
-$as_echo "$USE_MAINTAINER_MODE" >&6; }
- if test $USE_MAINTAINER_MODE = yes; then
- MAINTAINER_MODE_TRUE=
- MAINTAINER_MODE_FALSE='#'
-else
- MAINTAINER_MODE_TRUE='#'
- MAINTAINER_MODE_FALSE=
-fi
-
- MAINT=$MAINTAINER_MODE_TRUE
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
-$as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
-if ${kb_cv_c_prototypes+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdarg.h>
-int
-main ()
-{
-extern void foo(int i,...);
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- kb_cv_c_prototypes=yes
-else
- kb_cv_c_prototypes=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
-$as_echo "$kb_cv_c_prototypes" >&6; }
-if test "x$kb_cv_c_prototypes" = xno; then
- as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
-$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
-if ${kpse_cv_warning_cflags+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test "x$GCC" = xyes; then
- kpse_cv_warning_cflags=
-if test "x$enable_compiler_warnings" != xno; then
- kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
- case `$CC -dumpversion` in #(
- 3.4.* | 4.* | 5.*) :
- kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
- *) :
- ;;
-esac
- case `$CC -dumpversion` in #(
- 3.[234].* | 4.* | 5.*) :
- kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
- *) :
- ;;
-esac
- if test "x$enable_compiler_warnings" != xmin; then
- kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
- kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
- if test "x$enable_compiler_warnings" != xyes; then
- kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
- kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
- case `$CC -dumpversion` in #(
- 3.4.* | 4.* | 5.*) :
- kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
- *) :
- ;;
-esac
- if test "x$enable_compiler_warnings" != xmax; then
- kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
- fi
- fi
- fi
-fi
-elif test "x$enable_compiler_warnings" = xno; then
- kpse_cv_warning_cflags=
-else
- kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
-$as_echo "$kpse_cv_warning_cflags" >&6; }
-WARNING_CFLAGS=$kpse_cv_warning_cflags
-
-
-
-
-
-
-
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}gcc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="${ac_tool_prefix}gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
-$as_echo "$ac_ct_CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- CC=$ac_ct_CC
- fi
-else
- CC="$ac_cv_prog_CC"
-fi
-
-if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}cc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="${ac_tool_prefix}cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- fi
-fi
-if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- ac_prog_rejected=no
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# != 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
- fi
-fi
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- for ac_prog in cl.exe
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$CC" && break
- done
-fi
-if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in cl.exe
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
-$as_echo "$ac_ct_CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$ac_ct_CC" && break
-done
-
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- CC=$ac_ct_CC
- fi
-fi
-
-fi
-
-
-test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5; }
-
-# Provide some information about the compiler.
-$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
-set X $ac_compile
-ac_compiler=$2
-for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
-... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-done
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
-$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
-if ${ac_cv_c_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-#ifndef __GNUC__
- choke me
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
-else
- ac_compiler_gnu=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-ac_cv_c_compiler_gnu=$ac_compiler_gnu
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
-$as_echo "$ac_cv_c_compiler_gnu" >&6; }
-if test $ac_compiler_gnu = yes; then
- GCC=yes
-else
- GCC=
-fi
-ac_test_CFLAGS=${CFLAGS+set}
-ac_save_CFLAGS=$CFLAGS
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
-$as_echo_n "checking whether $CC accepts -g... " >&6; }
-if ${ac_cv_prog_cc_g+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_save_c_werror_flag=$ac_c_werror_flag
- ac_c_werror_flag=yes
- ac_cv_prog_cc_g=no
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
-else
- CFLAGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-else
- ac_c_werror_flag=$ac_save_c_werror_flag
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_c_werror_flag=$ac_save_c_werror_flag
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
-$as_echo "$ac_cv_prog_cc_g" >&6; }
-if test "$ac_test_CFLAGS" = set; then
- CFLAGS=$ac_save_CFLAGS
-elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
-else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
-$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
-if ${ac_cv_prog_cc_c89+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_cv_prog_cc_c89=no
-ac_save_CC=$CC
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdarg.h>
-#include <stdio.h>
-struct stat;
-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
-struct buf { int x; };
-FILE * (*rcsopen) (struct buf *, struct stat *, int);
-static char *e (p, i)
- char **p;
- int i;
-{
- return p[i];
-}
-static char *f (char * (*g) (char **, int), char **p, ...)
-{
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
-}
-
-/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
- function prototypes and stuff, but not '\xHH' hex character constants.
- These don't provoke an error unfortunately, instead are silently treated
- as 'x'. The following induces an error, until -std is added to get
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
- array size at least. It's necessary to write '\x00'==0 to get something
- that's true only with -std. */
-int osf4_cc_array ['\x00' == 0 ? 1 : -1];
-
-/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
- inside strings and character constants. */
-#define FOO(x) 'x'
-int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
-
-int test (int i, double x);
-struct s1 {int (*f) (int a);};
-struct s2 {int (*f) (double a);};
-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
-int argc;
-char **argv;
-int
-main ()
-{
-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
- return 0;
-}
-_ACEOF
-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
-do
- CC="$ac_save_CC $ac_arg"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_c89=$ac_arg
-fi
-rm -f core conftest.err conftest.$ac_objext
- test "x$ac_cv_prog_cc_c89" != "xno" && break
-done
-rm -f conftest.$ac_ext
-CC=$ac_save_CC
-
-fi
-# AC_CACHE_VAL
-case "x$ac_cv_prog_cc_c89" in
- x)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
-$as_echo "none needed" >&6; } ;;
- xno)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
-$as_echo "unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c89"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
-$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
-esac
-if test "x$ac_cv_prog_cc_c89" != xno; then :
-
-fi
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
-$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
-if ${am_cv_prog_cc_c_o+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
- # Make sure it works both with $CC and with simple cc.
- # Following AC_PROG_CC_C_O, we do the test twice because some
- # compilers refuse to overwrite an existing .o file with -o,
- # though they will create one.
- am_cv_prog_cc_c_o=yes
- for am_i in 1 2; do
- if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
- ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } \
- && test -f conftest2.$ac_objext; then
- : OK
- else
- am_cv_prog_cc_c_o=no
- break
- fi
- done
- rm -f core conftest*
- unset am_i
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
-$as_echo "$am_cv_prog_cc_c_o" >&6; }
-if test "$am_cv_prog_cc_c_o" != yes; then
- # Losing compiler, so override with the script.
- # FIXME: It is wrong to rewrite CC.
- # But if we don't then we get into trouble of one sort or another.
- # A longer-term fix would be to have automake use am__CC in this case,
- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
- CC="$am_aux_dir/compile $CC"
-fi
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-depcc="$CC" am_compiler_list=
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
-$as_echo_n "checking dependency style of $depcc... " >&6; }
-if ${am_cv_CC_dependencies_compiler_type+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
- # We make a subdir and do the tests there. Otherwise we can end up
- # making bogus files that we don't know about and never remove. For
- # instance it was reported that on HP-UX the gcc test will end up
- # making a dummy file named 'D' -- because '-MD' means "put the output
- # in D".
- rm -rf conftest.dir
- mkdir conftest.dir
- # Copy depcomp to subdir because otherwise we won't find it if we're
- # using a relative directory.
- cp "$am_depcomp" conftest.dir
- cd conftest.dir
- # We will build objects and dependencies in a subdirectory because
- # it helps to detect inapplicable dependency modes. For instance
- # both Tru64's cc and ICC support -MD to output dependencies as a
- # side effect of compilation, but ICC will put the dependencies in
- # the current directory while Tru64 will put them in the object
- # directory.
- mkdir sub
-
- am_cv_CC_dependencies_compiler_type=none
- if test "$am_compiler_list" = ""; then
- am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
- fi
- am__universal=false
- case " $depcc " in #(
- *\ -arch\ *\ -arch\ *) am__universal=true ;;
- esac
-
- for depmode in $am_compiler_list; do
- # Setup a source with many dependencies, because some compilers
- # like to wrap large dependency lists on column 80 (with \), and
- # we should not choose a depcomp mode which is confused by this.
- #
- # We need to recreate these files for each test, as the compiler may
- # overwrite some of them when testing with obscure command lines.
- # This happens at least with the AIX C compiler.
- : > sub/conftest.c
- for i in 1 2 3 4 5 6; do
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
- # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
- # Solaris 10 /bin/sh.
- echo '/* dummy */' > sub/conftst$i.h
- done
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
- # We check with '-c' and '-o' for the sake of the "dashmstdout"
- # mode. It turns out that the SunPro C++ compiler does not properly
- # handle '-M -o', and we need to detect this. Also, some Intel
- # versions had trouble with output in subdirs.
- am__obj=sub/conftest.${OBJEXT-o}
- am__minus_obj="-o $am__obj"
- case $depmode in
- gcc)
- # This depmode causes a compiler race in universal mode.
- test "$am__universal" = false || continue
- ;;
- nosideeffect)
- # After this tag, mechanisms are not by side-effect, so they'll
- # only be used when explicitly requested.
- if test "x$enable_dependency_tracking" = xyes; then
- continue
- else
- break
- fi
- ;;
- msvc7 | msvc7msys | msvisualcpp | msvcmsys)
- # This compiler won't grok '-c -o', but also, the minuso test has
- # not run yet. These depmodes are late enough in the game, and
- # so weak that their functioning should not be impacted.
- am__obj=conftest.${OBJEXT-o}
- am__minus_obj=
- ;;
- none) break ;;
- esac
- if depmode=$depmode \
- source=sub/conftest.c object=$am__obj \
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
- $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
- >/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- # icc doesn't choke on unknown options, it will just issue warnings
- # or remarks (even with -Werror). So we grep stderr for any message
- # that says an option was ignored or not supported.
- # When given -MP, icc 7.0 and 7.1 complain thusly:
- # icc: Command line warning: ignoring option '-M'; no argument required
- # The diagnosis changed in icc 8.0:
- # icc: Command line remark: option '-MP' not supported
- if (grep 'ignoring option' conftest.err ||
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
- am_cv_CC_dependencies_compiler_type=$depmode
- break
- fi
- fi
- done
-
- cd ..
- rm -rf conftest.dir
-else
- am_cv_CC_dependencies_compiler_type=none
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
-$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
-CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
-
- if
- test "x$enable_dependency_tracking" != xno \
- && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
- am__fastdepCC_TRUE=
- am__fastdepCC_FALSE='#'
-else
- am__fastdepCC_TRUE='#'
- am__fastdepCC_FALSE=
-fi
-
-
-
-PMX_DEFINES='-DNON_UNIX_STDIO'
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
-$as_echo_n "checking for native WIN32 or MINGW32... " >&6; }
-if ${kpse_cv_have_win32+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#ifndef WIN32
- choke me
-#endif
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#ifndef __MINGW32__
- choke me
-#endif
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- kpse_cv_have_win32=mingw32
-else
- kpse_cv_have_win32=native
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-else
- kpse_cv_have_win32=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
-$as_echo "$kpse_cv_have_win32" >&6; }
-
- if test "x$kpse_cv_have_win32" != xno; then
- WIN32_TRUE=
- WIN32_FALSE='#'
-else
- WIN32_TRUE='#'
- WIN32_FALSE=
-fi
-
-
-case $kpse_cv_have_win32 in #(
- native) :
- PMX_DEFINES="$PMX_DEFINES -DMSDOS" ;; #(
- mingw32) :
- PMX_DEFINES="$PMX_DEFINES -DUSE_CLOCK" ;; #(
- *) :
- ;;
-esac
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
-$as_echo_n "checking whether ln -s works... " >&6; }
-LN_S=$as_ln_s
-if test "$LN_S" = "ln -s"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
-$as_echo "no, using $LN_S" >&6; }
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
-$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
-set x ${MAKE-make}
-ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
-if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat >conftest.make <<\_ACEOF
-SHELL = /bin/sh
-all:
- @echo '@@@%%%=$(MAKE)=@@@%%%'
-_ACEOF
-# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
-case `${MAKE-make} -f conftest.make 2>/dev/null` in
- *@@@%%%=?*=@@@%%%*)
- eval ac_cv_prog_make_${ac_make}_set=yes;;
- *)
- eval ac_cv_prog_make_${ac_make}_set=no;;
-esac
-rm -f conftest.make
-fi
-if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- SET_MAKE=
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- SET_MAKE="MAKE=${MAKE-make}"
-fi
-
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
-set dummy ${ac_tool_prefix}ranlib; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_RANLIB+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-RANLIB=$ac_cv_prog_RANLIB
-if test -n "$RANLIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
-$as_echo "$RANLIB" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_RANLIB"; then
- ac_ct_RANLIB=$RANLIB
- # Extract the first word of "ranlib", so it can be a program name with args.
-set dummy ranlib; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_RANLIB"; then
- ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_RANLIB="ranlib"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
-if test -n "$ac_ct_RANLIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
-$as_echo "$ac_ct_RANLIB" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- if test "x$ac_ct_RANLIB" = x; then
- RANLIB=":"
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- RANLIB=$ac_ct_RANLIB
- fi
-else
- RANLIB="$ac_cv_prog_RANLIB"
-fi
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing erf" >&5
-$as_echo_n "checking for library containing erf... " >&6; }
-if ${ac_cv_search_erf+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_func_search_save_LIBS=$LIBS
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char erf ();
-int
-main ()
-{
-return erf ();
- ;
- return 0;
-}
-_ACEOF
-for ac_lib in '' m; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_erf=$ac_res
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_erf+:} false; then :
- break
-fi
-done
-if ${ac_cv_search_erf+:} false; then :
-
-else
- ac_cv_search_erf=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_erf" >&5
-$as_echo "$ac_cv_search_erf" >&6; }
-ac_res=$ac_cv_search_erf
-if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
-
-fi
-
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
-$as_echo_n "checking how to run the C preprocessor... " >&6; }
-# On Suns, sometimes $CPP names a directory.
-if test -n "$CPP" && test -d "$CPP"; then
- CPP=
-fi
-if test -z "$CPP"; then
- if ${ac_cv_prog_CPP+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- # Double quotes because CPP needs to be expanded
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
- do
- ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-
-else
- # Broken: fails on valid input.
-continue
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
-continue
-else
- # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.i conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then :
- break
-fi
-
- done
- ac_cv_prog_CPP=$CPP
-
-fi
- CPP=$ac_cv_prog_CPP
-else
- ac_cv_prog_CPP=$CPP
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
-$as_echo "$CPP" >&6; }
-ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-
-else
- # Broken: fails on valid input.
-continue
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
-continue
-else
- # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.i conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then :
-
-else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
-$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
-if ${ac_cv_path_GREP+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -z "$GREP"; then
- ac_path_GREP_found=false
- # Loop through the user's path and test for each of PROGNAME-LIST
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in grep ggrep; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
- as_fn_executable_p "$ac_path_GREP" || continue
-# Check for GNU ac_path_GREP and select it if it is found.
- # Check for GNU $ac_path_GREP
-case `"$ac_path_GREP" --version 2>&1` in
-*GNU*)
- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
-*)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'GREP' >> "conftest.nl"
- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_GREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_GREP="$ac_path_GREP"
- ac_path_GREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
- $ac_path_GREP_found && break 3
- done
- done
- done
-IFS=$as_save_IFS
- if test -z "$ac_cv_path_GREP"; then
- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
-else
- ac_cv_path_GREP=$GREP
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
-$as_echo "$ac_cv_path_GREP" >&6; }
- GREP="$ac_cv_path_GREP"
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
-$as_echo_n "checking for egrep... " >&6; }
-if ${ac_cv_path_EGREP+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
- then ac_cv_path_EGREP="$GREP -E"
- else
- if test -z "$EGREP"; then
- ac_path_EGREP_found=false
- # Loop through the user's path and test for each of PROGNAME-LIST
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in egrep; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
- as_fn_executable_p "$ac_path_EGREP" || continue
-# Check for GNU ac_path_EGREP and select it if it is found.
- # Check for GNU $ac_path_EGREP
-case `"$ac_path_EGREP" --version 2>&1` in
-*GNU*)
- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
-*)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'EGREP' >> "conftest.nl"
- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_EGREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_EGREP="$ac_path_EGREP"
- ac_path_EGREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
- $ac_path_EGREP_found && break 3
- done
- done
- done
-IFS=$as_save_IFS
- if test -z "$ac_cv_path_EGREP"; then
- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
-else
- ac_cv_path_EGREP=$EGREP
-fi
-
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
-$as_echo "$ac_cv_path_EGREP" >&6; }
- EGREP="$ac_cv_path_EGREP"
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
-$as_echo_n "checking for ANSI C header files... " >&6; }
-if ${ac_cv_header_stdc+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_stdc=yes
-else
- ac_cv_header_stdc=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <string.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "memchr" >/dev/null 2>&1; then :
-
-else
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdlib.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "free" >/dev/null 2>&1; then :
-
-else
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then :
- :
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <ctype.h>
-#include <stdlib.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
- (('a' <= (c) && (c) <= 'i') \
- || ('j' <= (c) && (c) <= 'r') \
- || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
-
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int
-main ()
-{
- int i;
- for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
- return 2;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-
-else
- ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
-$as_echo "$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
-
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
-
-fi
-
-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
- inttypes.h stdint.h unistd.h
-do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
-"
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-# The cast to long int works around a bug in the HP C Compiler
-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
-# This bug is HP SR number 8606223364.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
-$as_echo_n "checking size of long long... " >&6; }
-if ${ac_cv_sizeof_long_long+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
-
-else
- if test "$ac_cv_type_long_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error 77 "cannot compute sizeof (long long)
-See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_long=0
- fi
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
-$as_echo "$ac_cv_sizeof_long_long" >&6; }
-
-
-
-cat >>confdefs.h <<_ACEOF
-#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
-_ACEOF
-
-
-if test $ac_cv_sizeof_long_long -lt 8; then
- PMX_DEFINES="$PMX_DEFINES -DNO_LONG_LONG"
-fi
-
-PMX_TREE=pmx-src
-
-
-ac_config_files="$ac_config_files Makefile"
-
-cat >confcache <<\_ACEOF
-# This file is a shell script that caches the results of configure
-# tests run on this system so they can be shared between configure
-# scripts and configure runs, see configure's option --config-cache.
-# It is not useful on other systems. If it contains results you don't
-# want to keep, you may remove or edit it.
-#
-# config.status only pays attention to the cache file if you give it
-# the --recheck option to rerun configure.
-#
-# `ac_cv_env_foo' variables (set or unset) will be overridden when
-# loading this file, other *unset* `ac_cv_foo' will be assigned the
-# following values.
-
-_ACEOF
-
-# The following way of writing the cache mishandles newlines in values,
-# but we know of no workaround that is simple, portable, and efficient.
-# So, we kill variables containing newlines.
-# Ultrix sh set writes to stderr and can't be redirected directly,
-# and sets the high bit in the cache file unless we assign to the vars.
-(
- for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
- eval ac_val=\$$ac_var
- case $ac_val in #(
- *${as_nl}*)
- case $ac_var in #(
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
- esac
- case $ac_var in #(
- _ | IFS | as_nl) ;; #(
- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
- *) { eval $ac_var=; unset $ac_var;} ;;
- esac ;;
- esac
- done
-
- (set) 2>&1 |
- case $as_nl`(ac_space=' '; set) 2>&1` in #(
- *${as_nl}ac_space=\ *)
- # `set' does not quote correctly, so add quotes: double-quote
- # substitution turns \\\\ into \\, and sed turns \\ into \.
- sed -n \
- "s/'/'\\\\''/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
- ;; #(
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
- ;;
- esac |
- sort
-) |
- sed '
- /^ac_cv_env_/b end
- t clear
- :clear
- s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
- t end
- s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
- :end' >>confcache
-if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
- if test -w "$cache_file"; then
- if test "x$cache_file" != "x/dev/null"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
-$as_echo "$as_me: updating cache $cache_file" >&6;}
- if test ! -f "$cache_file" || test -h "$cache_file"; then
- cat confcache >"$cache_file"
- else
- case $cache_file in #(
- */* | ?:*)
- mv -f confcache "$cache_file"$$ &&
- mv -f "$cache_file"$$ "$cache_file" ;; #(
- *)
- mv -f confcache "$cache_file" ;;
- esac
- fi
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
-$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
- fi
-fi
-rm -f confcache
-
-test "x$prefix" = xNONE && prefix=$ac_default_prefix
-# Let make expand exec_prefix.
-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-
-# Transform confdefs.h into DEFS.
-# Protect against shell expansion while executing Makefile rules.
-# Protect against Makefile macro expansion.
-#
-# If the first sed substitution is executed (which looks for macros that
-# take arguments), then branch to the quote section. Otherwise,
-# look for a macro that doesn't take arguments.
-ac_script='
-:mline
-/\\$/{
- N
- s,\\\n,,
- b mline
-}
-t clear
-:clear
-s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
-t quote
-s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
-t quote
-b any
-:quote
-s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
-s/\[/\\&/g
-s/\]/\\&/g
-s/\$/$$/g
-H
-:any
-${
- g
- s/^\n//
- s/\n/ /g
- p
-}
-'
-DEFS=`sed -n "$ac_script" confdefs.h`
-
-
-ac_libobjs=
-ac_ltlibobjs=
-U=
-for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
- # 1. Remove the extension, and $U if already installed.
- ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
- ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
- # will be set to the directory where LIBOBJS objects are built.
- as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
- as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
-done
-LIBOBJS=$ac_libobjs
-
-LTLIBOBJS=$ac_ltlibobjs
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
-$as_echo_n "checking that generated files are newer than configure... " >&6; }
- if test -n "$am_sleep_pid"; then
- # Hide warnings about reused PIDs.
- wait $am_sleep_pid 2>/dev/null
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
-$as_echo "done" >&6; }
- if test -n "$EXEEXT"; then
- am__EXEEXT_TRUE=
- am__EXEEXT_FALSE='#'
-else
- am__EXEEXT_TRUE='#'
- am__EXEEXT_FALSE=
-fi
-
-if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
- as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
- as_fn_error $? "conditional \"AMDEP\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
- as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
- as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
- as_fn_error $? "conditional \"WIN32\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-
-: "${CONFIG_STATUS=./config.status}"
-ac_write_fail=0
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
-$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
-as_write_fail=0
-cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
-#! $SHELL
-# Generated by $as_me.
-# Run this file to recreate the current configuration.
-# Compiler output produced by configure, useful for debugging
-# configure, is in config.log if it exists.
-
-debug=false
-ac_cs_recheck=false
-ac_cs_silent=false
-
-SHELL=\${CONFIG_SHELL-$SHELL}
-export SHELL
-_ASEOF
-cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
-## -------------------- ##
-## M4sh Initialization. ##
-## -------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
-else
- case `(set -o) 2>/dev/null` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='print -r --'
- as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %s\n'
- as_echo_n='printf %s'
-else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in #(
- *"$as_nl"*)
- expr "X$arg" : "X\\(.*\\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
- esac;
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order. Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" "" $as_nl"
-
-# Find who we are. Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
- as_myself=$0
-fi
-if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there. '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-
-# as_fn_error STATUS ERROR [LINENO LOG_FD]
-# ----------------------------------------
-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
-# script with STATUS, using 1 if that was 0.
-as_fn_error ()
-{
- as_status=$1; test $as_status -eq 0 && as_status=1
- if test "$4"; then
- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
- fi
- $as_echo "$as_me: error: $2" >&2
- as_fn_exit $as_status
-} # as_fn_error
-
-
-# as_fn_set_status STATUS
-# -----------------------
-# Set $? to STATUS, without forking.
-as_fn_set_status ()
-{
- return $1
-} # as_fn_set_status
-
-# as_fn_exit STATUS
-# -----------------
-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
-as_fn_exit ()
-{
- set +e
- as_fn_set_status $1
- exit $1
-} # as_fn_exit
-
-# as_fn_unset VAR
-# ---------------
-# Portably unset VAR.
-as_fn_unset ()
-{
- { eval $1=; unset $1;}
-}
-as_unset=as_fn_unset
-# as_fn_append VAR VALUE
-# ----------------------
-# Append the text in VALUE to the end of the definition contained in VAR. Take
-# advantage of any shell optimizations that allow amortized linear growth over
-# repeated appends, instead of the typical quadratic growth present in naive
-# implementations.
-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
- eval 'as_fn_append ()
- {
- eval $1+=\$2
- }'
-else
- as_fn_append ()
- {
- eval $1=\$$1\$2
- }
-fi # as_fn_append
-
-# as_fn_arith ARG...
-# ------------------
-# Perform arithmetic evaluation on the ARGs, and store the result in the
-# global $as_val. Take advantage of shells that can avoid forks. The arguments
-# must be portable across $(()) and expr.
-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
- eval 'as_fn_arith ()
- {
- as_val=$(( $* ))
- }'
-else
- as_fn_arith ()
- {
- as_val=`expr "$@" || test $? -eq 1`
- }
-fi # as_fn_arith
-
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
- as_basename=basename
-else
- as_basename=false
-fi
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
-else
- as_dirname=false
-fi
-
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
-
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in #(((((
--n*)
- case `echo 'xy\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- xy) ECHO_C='\c';;
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
- ECHO_T=' ';;
- esac;;
-*)
- ECHO_N='-n';;
-esac
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
-else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
-fi
-if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -pR'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -pR'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -pR'
- fi
-else
- as_ln_s='cp -pR'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-
-# as_fn_mkdir_p
-# -------------
-# Create "$as_dir" as a directory, including parents if necessary.
-as_fn_mkdir_p ()
-{
-
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || eval $as_mkdir_p || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
- *) as_qdir=$as_dir;;
- esac
- as_dirs="'$as_qdir' $as_dirs"
- as_dir=`$as_dirname -- "$as_dir" ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- test -d "$as_dir" && break
- done
- test -z "$as_dirs" || eval "mkdir $as_dirs"
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
-
-
-} # as_fn_mkdir_p
-if mkdir -p . 2>/dev/null; then
- as_mkdir_p='mkdir -p "$as_dir"'
-else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
-fi
-
-
-# as_fn_executable_p FILE
-# -----------------------
-# Test if FILE is an executable regular file.
-as_fn_executable_p ()
-{
- test -f "$1" && test -x "$1"
-} # as_fn_executable_p
-as_test_x='test -x'
-as_executable_p=as_fn_executable_p
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-exec 6>&1
-## ----------------------------------- ##
-## Main body of $CONFIG_STATUS script. ##
-## ----------------------------------- ##
-_ASEOF
-test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-# Save the log message, to keep $0 and so on meaningful, and to
-# report actual input values of CONFIG_FILES etc. instead of their
-# values after options handling.
-ac_log="
-This file was extended by pmx (TeX Live) $as_me 2.9.4a, which was
-generated by GNU Autoconf 2.69. Invocation command line was
-
- CONFIG_FILES = $CONFIG_FILES
- CONFIG_HEADERS = $CONFIG_HEADERS
- CONFIG_LINKS = $CONFIG_LINKS
- CONFIG_COMMANDS = $CONFIG_COMMANDS
- $ $0 $@
-
-on `(hostname || uname -n) 2>/dev/null | sed 1q`
-"
-
-_ACEOF
-
-case $ac_config_files in *"
-"*) set x $ac_config_files; shift; ac_config_files=$*;;
-esac
-
-
-
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-# Files that config.status was made for.
-config_files="$ac_config_files"
-config_commands="$ac_config_commands"
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-ac_cs_usage="\
-\`$as_me' instantiates files and other configuration actions
-from templates according to the current configuration. Unless the files
-and actions are specified as TAGs, all are instantiated by default.
-
-Usage: $0 [OPTION]... [TAG]...
-
- -h, --help print this help, then exit
- -V, --version print version number and configuration settings, then exit
- --config print configuration, then exit
- -q, --quiet, --silent
- do not print progress messages
- -d, --debug don't remove temporary files
- --recheck update $as_me by reconfiguring in the same conditions
- --file=FILE[:TEMPLATE]
- instantiate the configuration file FILE
-
-Configuration files:
-$config_files
-
-Configuration commands:
-$config_commands
-
-Report bugs to <tex-k@tug.org>."
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
-ac_cs_version="\\
-pmx (TeX Live) config.status 2.9.4a
-configured by $0, generated by GNU Autoconf 2.69,
- with options \\"\$ac_cs_config\\"
-
-Copyright (C) 2012 Free Software Foundation, Inc.
-This config.status script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it."
-
-ac_pwd='$ac_pwd'
-srcdir='$srcdir'
-INSTALL='$INSTALL'
-MKDIR_P='$MKDIR_P'
-AWK='$AWK'
-test -n "\$AWK" || AWK=awk
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-# The default lists apply if the user does not specify any file.
-ac_need_defaults=:
-while test $# != 0
-do
- case $1 in
- --*=?*)
- ac_option=`expr "X$1" : 'X\([^=]*\)='`
- ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
- ac_shift=:
- ;;
- --*=)
- ac_option=`expr "X$1" : 'X\([^=]*\)='`
- ac_optarg=
- ac_shift=:
- ;;
- *)
- ac_option=$1
- ac_optarg=$2
- ac_shift=shift
- ;;
- esac
-
- case $ac_option in
- # Handling of the options.
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- ac_cs_recheck=: ;;
- --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
- $as_echo "$ac_cs_version"; exit ;;
- --config | --confi | --conf | --con | --co | --c )
- $as_echo "$ac_cs_config"; exit ;;
- --debug | --debu | --deb | --de | --d | -d )
- debug=: ;;
- --file | --fil | --fi | --f )
- $ac_shift
- case $ac_optarg in
- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
- '') as_fn_error $? "missing file argument" ;;
- esac
- as_fn_append CONFIG_FILES " '$ac_optarg'"
- ac_need_defaults=false;;
- --he | --h | --help | --hel | -h )
- $as_echo "$ac_cs_usage"; exit ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil | --si | --s)
- ac_cs_silent=: ;;
-
- # This is an error.
- -*) as_fn_error $? "unrecognized option: \`$1'
-Try \`$0 --help' for more information." ;;
-
- *) as_fn_append ac_config_targets " $1"
- ac_need_defaults=false ;;
-
- esac
- shift
-done
-
-ac_configure_extra_args=
-
-if $ac_cs_silent; then
- exec 6>/dev/null
- ac_configure_extra_args="$ac_configure_extra_args --silent"
-fi
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-if \$ac_cs_recheck; then
- set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
- shift
- \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
- CONFIG_SHELL='$SHELL'
- export CONFIG_SHELL
- exec "\$@"
-fi
-
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-exec 5>>config.log
-{
- echo
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
-## Running $as_me. ##
-_ASBOX
- $as_echo "$ac_log"
-} >&5
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-#
-# INIT-COMMANDS
-#
-AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-
-# Handling of arguments.
-for ac_config_target in $ac_config_targets
-do
- case $ac_config_target in
- "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
- "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
-
- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
- esac
-done
-
-
-# If the user did not use the arguments to specify the items to instantiate,
-# then the envvar interface is used. Set only those that are not.
-# We use the long form for the default assignment because of an extremely
-# bizarre bug on SunOS 4.1.3.
-if $ac_need_defaults; then
- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
- test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
-fi
-
-# Have a temporary directory for convenience. Make it in the build tree
-# simply because there is no reason against having it here, and in addition,
-# creating and moving files from /tmp can sometimes cause problems.
-# Hook for its removal unless debugging.
-# Note that there is a small window in which the directory will not be cleaned:
-# after its creation but before its name has been assigned to `$tmp'.
-$debug ||
-{
- tmp= ac_tmp=
- trap 'exit_status=$?
- : "${ac_tmp:=$tmp}"
- { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
-' 0
- trap 'as_fn_exit 1' 1 2 13 15
-}
-# Create a (secure) tmp directory for tmp files.
-
-{
- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
- test -d "$tmp"
-} ||
-{
- tmp=./conf$$-$RANDOM
- (umask 077 && mkdir "$tmp")
-} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
-ac_tmp=$tmp
-
-# Set up the scripts for CONFIG_FILES section.
-# No need to generate them if there are no CONFIG_FILES.
-# This happens for instance with `./config.status config.h'.
-if test -n "$CONFIG_FILES"; then
-
-
-ac_cr=`echo X | tr X '\015'`
-# On cygwin, bash can eat \r inside `` if the user requested igncr.
-# But we know of no other shell where ac_cr would be empty at this
-# point, so we can use a bashism as a fallback.
-if test "x$ac_cr" = x; then
- eval ac_cr=\$\'\\r\'
-fi
-ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
-if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
- ac_cs_awk_cr='\\r'
-else
- ac_cs_awk_cr=$ac_cr
-fi
-
-echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
-_ACEOF
-
-
-{
- echo "cat >conf$$subs.awk <<_ACEOF" &&
- echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
- echo "_ACEOF"
-} >conf$$subs.sh ||
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
-ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
-ac_delim='%!_!# '
-for ac_last_try in false false false false false :; do
- . ./conf$$subs.sh ||
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
-
- ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
- if test $ac_delim_n = $ac_delim_num; then
- break
- elif $ac_last_try; then
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
- else
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
- fi
-done
-rm -f conf$$subs.sh
-
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
-_ACEOF
-sed -n '
-h
-s/^/S["/; s/!.*/"]=/
-p
-g
-s/^[^!]*!//
-:repl
-t repl
-s/'"$ac_delim"'$//
-t delim
-:nl
-h
-s/\(.\{148\}\)..*/\1/
-t more1
-s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
-p
-n
-b repl
-:more1
-s/["\\]/\\&/g; s/^/"/; s/$/"\\/
-p
-g
-s/.\{148\}//
-t nl
-:delim
-h
-s/\(.\{148\}\)..*/\1/
-t more2
-s/["\\]/\\&/g; s/^/"/; s/$/"/
-p
-b
-:more2
-s/["\\]/\\&/g; s/^/"/; s/$/"\\/
-p
-g
-s/.\{148\}//
-t delim
-' <conf$$subs.awk | sed '
-/^[^""]/{
- N
- s/\n//
-}
-' >>$CONFIG_STATUS || ac_write_fail=1
-rm -f conf$$subs.awk
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-_ACAWK
-cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
- for (key in S) S_is_set[key] = 1
- FS = ""
-
-}
-{
- line = $ 0
- nfields = split(line, field, "@")
- substed = 0
- len = length(field[1])
- for (i = 2; i < nfields; i++) {
- key = field[i]
- keylen = length(key)
- if (S_is_set[key]) {
- value = S[key]
- line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
- len += length(value) + length(field[++i])
- substed = 1
- } else
- len += 1 + keylen
- }
-
- print line
-}
-
-_ACAWK
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
- sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
-else
- cat
-fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
- || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
-_ACEOF
-
-# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
-# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
-# trailing colons and then remove the whole line if VPATH becomes empty
-# (actually we leave an empty line to preserve line numbers).
-if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
-h
-s///
-s/^/:/
-s/[ ]*$/:/
-s/:\$(srcdir):/:/g
-s/:\${srcdir}:/:/g
-s/:@srcdir@:/:/g
-s/^:*//
-s/:*$//
-x
-s/\(=[ ]*\).*/\1/
-G
-s/\n//
-s/^[^=]*=[ ]*$//
-}'
-fi
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-fi # test -n "$CONFIG_FILES"
-
-
-eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
-shift
-for ac_tag
-do
- case $ac_tag in
- :[FHLC]) ac_mode=$ac_tag; continue;;
- esac
- case $ac_mode$ac_tag in
- :[FHL]*:*);;
- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
- :[FH]-) ac_tag=-:-;;
- :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
- esac
- ac_save_IFS=$IFS
- IFS=:
- set x $ac_tag
- IFS=$ac_save_IFS
- shift
- ac_file=$1
- shift
-
- case $ac_mode in
- :L) ac_source=$1;;
- :[FH])
- ac_file_inputs=
- for ac_f
- do
- case $ac_f in
- -) ac_f="$ac_tmp/stdin";;
- *) # Look for the file first in the build tree, then in the source tree
- # (if the path is not absolute). The absolute path cannot be DOS-style,
- # because $ac_f cannot contain `:'.
- test -f "$ac_f" ||
- case $ac_f in
- [\\/$]*) false;;
- *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
- esac ||
- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
- esac
- case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
- as_fn_append ac_file_inputs " '$ac_f'"
- done
-
- # Let's still pretend it is `configure' which instantiates (i.e., don't
- # use $as_me), people would be surprised to read:
- # /* config.h. Generated by config.status. */
- configure_input='Generated from '`
- $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
- `' by configure.'
- if test x"$ac_file" != x-; then
- configure_input="$ac_file. $configure_input"
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
-$as_echo "$as_me: creating $ac_file" >&6;}
- fi
- # Neutralize special characters interpreted by sed in replacement strings.
- case $configure_input in #(
- *\&* | *\|* | *\\* )
- ac_sed_conf_input=`$as_echo "$configure_input" |
- sed 's/[\\\\&|]/\\\\&/g'`;; #(
- *) ac_sed_conf_input=$configure_input;;
- esac
-
- case $ac_tag in
- *:-:* | *:-) cat >"$ac_tmp/stdin" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
- esac
- ;;
- esac
-
- ac_dir=`$as_dirname -- "$ac_file" ||
-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_file" : 'X\(//\)[^/]' \| \
- X"$ac_file" : 'X\(//\)$' \| \
- X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$ac_file" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- as_dir="$ac_dir"; as_fn_mkdir_p
- ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
- case $ac_top_builddir_sub in
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
- esac ;;
-esac
-ac_abs_top_builddir=$ac_pwd
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
-# for backward compatibility:
-ac_top_builddir=$ac_top_build_prefix
-
-case $srcdir in
- .) # We are building in place.
- ac_srcdir=.
- ac_top_srcdir=$ac_top_builddir_sub
- ac_abs_top_srcdir=$ac_pwd ;;
- [\\/]* | ?:[\\/]* ) # Absolute name.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir
- ac_abs_top_srcdir=$srcdir ;;
- *) # Relative name.
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_build_prefix$srcdir
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-esac
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
-
-
- case $ac_mode in
- :F)
- #
- # CONFIG_FILE
- #
-
- case $INSTALL in
- [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
- *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
- esac
- ac_MKDIR_P=$MKDIR_P
- case $MKDIR_P in
- [\\/$]* | ?:[\\/]* ) ;;
- */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
- esac
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-# If the template does not know about datarootdir, expand it.
-# FIXME: This hack should be removed a few years after 2.60.
-ac_datarootdir_hack=; ac_datarootdir_seen=
-ac_sed_dataroot='
-/datarootdir/ {
- p
- q
-}
-/@datadir@/p
-/@docdir@/p
-/@infodir@/p
-/@localedir@/p
-/@mandir@/p'
-case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
-*datarootdir*) ac_datarootdir_seen=yes;;
-*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
-$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ac_datarootdir_hack='
- s&@datadir@&$datadir&g
- s&@docdir@&$docdir&g
- s&@infodir@&$infodir&g
- s&@localedir@&$localedir&g
- s&@mandir@&$mandir&g
- s&\\\${datarootdir}&$datarootdir&g' ;;
-esac
-_ACEOF
-
-# Neutralize VPATH when `$srcdir' = `.'.
-# Shell code in configure.ac might set extrasub.
-# FIXME: do we really want to maintain this feature?
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-ac_sed_extra="$ac_vpsub
-$extrasub
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-:t
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-s|@configure_input@|$ac_sed_conf_input|;t t
-s&@top_builddir@&$ac_top_builddir_sub&;t t
-s&@top_build_prefix@&$ac_top_build_prefix&;t t
-s&@srcdir@&$ac_srcdir&;t t
-s&@abs_srcdir@&$ac_abs_srcdir&;t t
-s&@top_srcdir@&$ac_top_srcdir&;t t
-s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
-s&@builddir@&$ac_builddir&;t t
-s&@abs_builddir@&$ac_abs_builddir&;t t
-s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
-s&@INSTALL@&$ac_INSTALL&;t t
-s&@MKDIR_P@&$ac_MKDIR_P&;t t
-$ac_datarootdir_hack
-"
-eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
- >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
-
-test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
- { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
- "$ac_tmp/out"`; test -z "$ac_out"; } &&
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined. Please make sure it is defined" >&5
-$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined. Please make sure it is defined" >&2;}
-
- rm -f "$ac_tmp/stdin"
- case $ac_file in
- -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
- esac \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- ;;
-
-
- :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
-$as_echo "$as_me: executing $ac_file commands" >&6;}
- ;;
- esac
-
-
- case $ac_file$ac_mode in
- "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
- # Older Autoconf quotes --file arguments for eval, but not when files
- # are listed without --file. Let's play safe and only enable the eval
- # if we detect the quoting.
- # TODO: see whether this extra hack can be removed once we start
- # requiring Autoconf 2.70 or later.
- case $CONFIG_FILES in #(
- *\'*) :
- eval set x "$CONFIG_FILES" ;; #(
- *) :
- set x $CONFIG_FILES ;; #(
- *) :
- ;;
-esac
- shift
- # Used to flag and report bootstrapping failures.
- am_rc=0
- for am_mf
- do
- # Strip MF so we end up with the name of the file.
- am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
- # Check whether this is an Automake generated Makefile which includes
- # dependency-tracking related rules and includes.
- # Grep'ing the whole file directly is not great: AIX grep has a line
- # limit of 2048, but all sed's we know have understand at least 4000.
- sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
- || continue
- am_dirpart=`$as_dirname -- "$am_mf" ||
-$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$am_mf" : 'X\(//\)[^/]' \| \
- X"$am_mf" : 'X\(//\)$' \| \
- X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$am_mf" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- am_filepart=`$as_basename -- "$am_mf" ||
-$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
- X"$am_mf" : 'X\(//\)$' \| \
- X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$am_mf" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- { echo "$as_me:$LINENO: cd "$am_dirpart" \
- && sed -e '/# am--include-marker/d' "$am_filepart" \
- | $MAKE -f - am--depfiles" >&5
- (cd "$am_dirpart" \
- && sed -e '/# am--include-marker/d' "$am_filepart" \
- | $MAKE -f - am--depfiles) >&5 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } || am_rc=$?
- done
- if test $am_rc -ne 0; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "Something went wrong bootstrapping makefile fragments
- for automatic dependency tracking. If GNU make was not used, consider
- re-running the configure script with MAKE=\"gmake\" (or whatever is
- necessary). You can also try re-running configure with the
- '--disable-dependency-tracking' option to at least be able to build
- the package (albeit without support for automatic dependency tracking).
-See \`config.log' for more details" "$LINENO" 5; }
- fi
- { am_dirpart=; unset am_dirpart;}
- { am_filepart=; unset am_filepart;}
- { am_mf=; unset am_mf;}
- { am_rc=; unset am_rc;}
- rm -f conftest-deps.mk
-}
- ;;
-
- esac
-done # for ac_tag
-
-
-as_fn_exit 0
-_ACEOF
-ac_clean_files=$ac_clean_files_save
-
-test $ac_write_fail = 0 ||
- as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
-
-
-# configure is writing to config.log, and then calls config.status.
-# config.status does its own redirection, appending to config.log.
-# Unfortunately, on DOS this fails, as config.log is still kept open
-# by configure, so config.status won't be able to write to it; its
-# output is simply discarded. So we exec the FD to /dev/null,
-# effectively closing config.log, so it can be properly (re)opened and
-# appended to by config.status. When coming back to configure, we
-# need to make the FD available again.
-if test "$no_create" != yes; then
- ac_cs_success=:
- ac_config_status_args=
- test "$silent" = yes &&
- ac_config_status_args="$ac_config_status_args --quiet"
- exec 5>/dev/null
- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
- exec 5>>config.log
- # Use ||, not &&, to avoid exiting from the if with $? = 1, which
- # would make configure fail if this is the last instruction.
- $ac_cs_success || as_fn_exit 1
-fi
-if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
-$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
-fi
-
diff --git a/Build/source/utils/pmx/configure.ac b/Build/source/utils/pmx/configure.ac
deleted file mode 100644
index c7611da7b41..00000000000
--- a/Build/source/utils/pmx/configure.ac
+++ /dev/null
@@ -1,48 +0,0 @@
-dnl $Id$
-dnl Process this file with autoconf to produce a configure script.
-dnl
-dnl Copyright 2015-2020 Karl Berry <tex-live@tug.org>
-dnl Copyright 2012-2015 Peter Breitenlohner <tex-live@tug.org>
-dnl
-dnl This file is free software; the copyright holder
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-dnl
-m4_include([version.ac])[] dnl define pmx_version
-AC_INIT([pmx (TeX Live)], pmx_version, [tex-k@tug.org])
-AC_PREREQ([2.65])
-AC_CONFIG_SRCDIR([pmx-src/pmxab.c])
-AC_CONFIG_AUX_DIR([../../build-aux])
-AC_CONFIG_MACRO_DIR([../../m4])
-
-KPSE_BASIC([pmx])
-
-dnl Check compiler and flags
-AC_PROG_CC
-
-dnl initial value for PMX_DEFINES
-AC_SUBST([PMX_DEFINES], ['-DNON_UNIX_STDIO'])
-
-KPSE_COND_WIN32
-dnl WIN32 has no <sys/times.h>, native WIN32 is as MSDOS
-AS_CASE([$kpse_cv_have_win32],
- [native], [PMX_DEFINES="$PMX_DEFINES -DMSDOS"],
- [mingw32], [PMX_DEFINES="$PMX_DEFINES -DUSE_CLOCK"])
-
-dnl Checks for programs.
-AC_PROG_INSTALL
-AC_PROG_LN_S
-AC_PROG_MAKE_SET
-AC_PROG_RANLIB
-
-AC_SEARCH_LIBS([erf], [m])
-
-AC_CHECK_SIZEOF([long long])
-if test $ac_cv_sizeof_long_long -lt 8; then
- PMX_DEFINES="$PMX_DEFINES -DNO_LONG_LONG"
-fi
-
-AC_SUBST([PMX_TREE], [pmx-src])
-
-AC_CONFIG_FILES([Makefile])
-AC_OUTPUT
diff --git a/Build/source/utils/pmx/pmx-src/AUTHORS b/Build/source/utils/pmx/pmx-src/AUTHORS
deleted file mode 100644
index 2fa3681a96f..00000000000
--- a/Build/source/utils/pmx/pmx-src/AUTHORS
+++ /dev/null
@@ -1 +0,0 @@
-Don Simons dsimons@roadrunner.com
diff --git a/Build/source/utils/pmx/pmx-src/COPYING b/Build/source/utils/pmx/pmx-src/COPYING
deleted file mode 100644
index 92bc3d8dc11..00000000000
--- a/Build/source/utils/pmx/pmx-src/COPYING
+++ /dev/null
@@ -1,622 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
diff --git a/Build/source/utils/pmx/pmx-src/ChangeLog b/Build/source/utils/pmx/pmx-src/ChangeLog
deleted file mode 100644
index 3453c44fc50..00000000000
--- a/Build/source/utils/pmx/pmx-src/ChangeLog
+++ /dev/null
@@ -1,714 +0,0 @@
-2.94
- Allow moving dots on main and chord note in 2-note termolos
- Add definitions of \hbp and \hbpp to pmx.tex
- Correct scaldold bug (17-03-2020)
-2.91
- Tweak: insert \stdstemfalse before every user-shortened or lengthened
- stem.
- This cancels defaul extensions to middle line and also (with 'L') allows
- stems that are longer than 4.66 but still don't reach middle line.
- Allow alteration of number height in multibar rest, option n.
- Fix bug introduced in 2.89 so that the "o" in "mo800" is now OK.
-2.90
- Many tweaks to allow gaps at end or middle of a system using
- L[n]S[x] and LC[y]. New pmx.tex.
-2.88
- Comment out print*,"Changed pathname to..." since it was going
- iteration when optimizing linebreaks with the undocumented option Ao.
- Add nv back in as argument for getmidi, so loop transferring data
- from midivel to midvelc can be executed. This corrects bug and
- allows per-instrument change in midi velocities at the start
- of any block
- Add subroutine inst2chan to transfer midi data as noted above. Works with
- Iv but buggy when used with IT and Ib
-2.87
- Allow changes to and from octave treble clef. Instrument with it
- must only have one staff.
- Some fixes for beam multiplicity changes at staff jumps. Must still
- use inline for mult. increase at downward staff jump. See sjb.pmx.
-2.84
- Bug fix: dots in chordal seconds
- Bug fix: Initialize ihornb for non-beamed, down xtup
- Bug fix: When using "AT" with 2-note x3c rD.
-2.83
- Fix problems when changing to or from octave treble clef.
- Fix beaming (or not) and number location for xtups with
- multiple rests. Still some problems with number height but
- can be band-aided with number height tweak option.
- Tweak error messages for options on "R" command.
- Allow forced beam height and slope tweaks with 2-note tremolos
- Allow chordal note with 2-note tremolos, adding dots as needed.
- Fix call to ncmid in beamstrt when setting start height for beam of
- 2-note trem, by changing arg from ivx to iv
-2.82
- bugfix: beams with rests, not confused with xtups.
- x option after slur index to allow slurs to go from one voice to another.
- x option also for ties
-2.81
- Allow string of rests to end xtup
- in chordal half-note 2-note tremolo, make chord notes open.
-2.80
- Add 2-note tremolos
-2.78
- Expand bufq to 131072 bytes
- Expand maxblks tp 9600
- Allow up to 75 pages
- Index postscript hairpins from 1 up instead of by voice #.
- Add option 'o' to forced beam for open notehead (\hb); set ipl(3)
- Add option T[n], n=1,2,3 for single stem tremolo
-2.77
- Enable AV+/-x+/-y to add vskip bigh before or after \eject
-2.76
-2.75
- Bugfix: unbeamed xtups with dots: in beamn1 and beamid allow dotted 16th, and
- 2 or 3 flags on shortened note.
-2.74
- Bugfix: allow "0" as argument of @ command on lyrics string.
- Check for and allow "\ in centered page headings with P command.
- Check for and allow "\ in text dynamics with D command.
- For lyrics string starting in xtuplet, insert check for inputting musixlyr.
- 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
- '\lk '. Right after 2nd ", replace @[a,b][+,-]n with \at{[a,b][+,-]n}\
- Include definitions of \ly and \at in pmx.tex (2 Feb 16). After first ",
- add (as type 2 string) '\\input musixlyr \'
- After inputting pathname, change any '\' to '/', for Linux compatibility.
-2.72 (160110)
- Really finalize \mbrest...go back to 3 args to deal with clef changes.
- Fine tune centered whole bar rests to deal with clef changes
- Fix bug in wsclef when >1 staff per instrument, since \setclef
- needs to know instrument and specify clefs on all staves for that
- instrument. Ones that were not changed by user will not be printed,
- and will be kept the same as before.
- Fix bug with arpegii from one voice to another in same staff.
-2.71 (151226)
- Finalize mbrest mods
-2.705
- Fix error message
-2.704 (140614)
- Octave treble clef
- Make horizontal ornament shift (ornhshft) floating
-2.703 (140323)
- Option v[-]n at end of any figure will alter figdrop for rest of system
-2.702
- Stem slurs. Only for ps, assume no other pos'n adjustments. Option "v"
-2.701
- oC = coda (\code{10})
- Move iornq(29) (blank barline) to ipl(0) (changes in pmxb, getnote)
- oG = new seqno
- To do: fix grace note spacing problem (partially done)
-2.622
- Redefine midtc(..) and miditran(..); clean up all transpositions/key changes
- Kn[+/-...] \ignorenats at signature changes
- Fix tie checks in doslur() and dopsslur() to subtract iTransAmt from nolevs
- before checking and setting pitch levels levson() and levsoff()
- Define midisig separately from isig. Put in common commidisig.
- Use for explicit midi signature and for accid corrections to midi piches
- in addmidi.
-2.621
- Make keyboard rest option work in xtuplets. Created subroutine
- chkkbdrests, modified make2bar to include calls to chkkbdrests as rqd.
-2.620
- Allow user-defined rest height tweaks at start of beam.
-2.619
- At movement break, change \nbinstruments in \newmovement macro; add
- 3rd arg to \newmovement in pmx.tex; modify pmxb.for and getnote.for
- to remove call to newnoi and change call to \newmovement
-2.618
- Add option Ac[l,4] to set vert and horiz size and offsets to properly
- center page for letter or a4 paper.
-2.617
- In g1etnote, change if-check for note to use index(...) instead
- of ichar(charq) since it was messing up gfortran optimizer
- After pmxa, search for and remove penultimate line <blank><blank>/
- because it was screwing up linux-compiled versions
- Bugfix: Increase dimension of kicrd from 7 to 10 in crdaccs(...)
-2.616 (111110)
- Allow hairpins to span multiple notes groups (gulps).
-2.615+ (110810)
- Fix midi when some instruments are transposed, by subtracting
- iTransAmt(instno(iv)) from pitch values sent to via addmidi in
- make2bar.for (for main notes) and docrd (for chord notes)
-2.615 (110725)
- Fig bug with size-setting (in topfile) when instrument has >1 staves
-2.615 (110724)
- Make AS[0|-|s|t]... really set sizes
-2.614
- Mod notex.for to fix Terry's bug with raised dotted rests (caused
- by double-hboxing).
-2.613
- Bugfix: In pmxa, change "do while" limit to keep from overwriting instno.
-2.612
- Enhance AS to allow s or t for smallsize or tinysize
-2.611
- Error trap for "D" before any notes in a block.
-2.610
- Instrument-wise key changes and transposition (incomplete)
-2.603
- 101211 In getpmxmod.for, decreased nline by 2 to fix locating errors
- following reading in an include file.
- 101121 Added some error messages in g1etset.for setup data
-2.602
- Correct slur indexing in linebreakslurs.
- Account for comment lines in line count for error messages
-2.601
- Bug fix: allow 24 slurs with graces
-2.60 Changes made make it really big
- increase mv (size of midi) ? Note: MIDI can't have >16 voices w/o
- major reprogramming, and 16 may also be a problem (icmm)
- nm=24 (voices) done
- 24 slurs done
- 24 simultaneous beams (Replace index 24 by 0, so get 0-23)
- bufq*131072 (gfortran only)
- getarg syntax (gfortran only)
-2.523+
- Fix voice numbering for normal dynamics and text dynamics
-2.523
- Version of bigpmx first posted to Hiroaki's web site.
-2.522
- 5/26/10 Replace ipl bits 0-7 with ipl2, add new common for it.
- With 2.521+ as starting version, incorporate bigpmx mods to allow 24 voices.
- 5/13/10 Fix log2 function
- 5/15/10 Fix bitwise storage for dynamics, fix segnoo string length.
-2.521+
- 091025 Enable dotting 2nd part of linebreak slur or tie.
- To adjust barno height due to linebreak slur, use \bnrs instead of
- explicitly redefining \raisebarno (pmxb)
-2.521
- Bugfix
-2.520
- 090519 Enable ligfonts (special figured bass characters)
-2.519
- Fix another bug which kept \sk from being output so misaligned some notes.
-2.518
- Fix bugs: referencing fig data, char declaration for member of
- common/comfig/
-2.517
- Allow figures in voice 1 + any one other.
-2.516
- Allow figures in voice #2
-2.515+ to do: Change manual and activate rule against clef change in voice #2.
-2.515
- 071222 Changes in getnote to allow auto forced beams to start anywhere.
- 071206 In make2bar, shift fermataup7 to left over centered pause.
- 070901 In doslur, check for nolev <=2 in case slur ends on rest in 2-line
- staff (it was screwing up vertical justification).
- n34 for tweaks to midi durations of quarter note septuplets.
- To do: In ref250.tex, the tables where 's,t,)' is explained, the line
- [+,- i] ... Vertical adjustment of the start of second segment
- should it be replaced by
- [s +,- i] ... Vertical adjustment of the start of second segment
-2.514
- Changes in make2bar to get horizontal spacing right when normal grace
- follows after grace
- Changes in dograce to get octaves right for any material entered inside
- \gaft, which shields transpose register changes from the outside world.
-2.513
- In make1bar, near end, for forced beams starting with a rest, copy hgt and
- slope tweaks to ALL notes after first, not just the second one, so if
- there's more than one rest at start the tweaks are still observed.
- In beamid and beamend, add stand-alone triply-flagged notes for xtups.
-2.512
- Near end of pmxb, fix error trap to allow redundant 'RD'
- Enable multiplicity down-up '][' within xtup.
-2.511
- Introduce eskz2 for xtup #'s and bracket lengths, to remove bug caused by
- adjusteskz as in bar 7 of barsant.
-2.510a
- Test: remove restriction on tempo changes in MIDI macros
- Send to CM for beta testing.
-2.509+
- To do: Correct manual on AS. "-" is for smaller staves.
-2.510
- Forgot to declare litq, voltxtq as character in subroutine getgrace
-2.509
- Corrected small bug in arpeggio shifting (ivx <= iv in call putarp)
-2.508
- Allow graces in xtups. New subroutine getgrace.
-2.507
- To do: Raise/lower figures.
- To do: Add 24, 29 to list of musicsizes in manual
- New sub adjusteskz to account for ask's when computing lengths of
- brackets for unbeamed xtups, slopes and horizontal posn's of number
- Bug fix: in beamn1, beamid, and beamend, allow unbeamed xtups w/ 2 flags
- Add look-left option for keyboard rests, "L" in rest command, set iornq(30)
-2.506
- Fix bug with AK, when simultaneous rests have same duration, use defaults.
-2.505
- Keyboard rests AK
-2.504
- Space after normal grace: option X[n]
- Fixed og when nv .ne. noinst, by using sepsymq instead of '&'
- (To do) length of xtup bracket when there is added non-collision space.
- Trap musicsize if .ne. 16,20,24,29.
-2.503
- Enable arpeggio left shift with ?-x
- To do: In manual, arpeggio over 2 staves.
- Allow musicsize of 24 and 29. Had to define meter font size explicitly,
- also change font size for text dynamics, but not much else so far.
- Bugfix in beamstrt, introduced in 2415, ip was changed before putxtn
- was called, causing error in printing replacement number.
-2.502
- Incorporate Dirk Laurie's patch to use { , } , for ties.
- Figure height adjustment: append +[n]
- Change ec font stuff in pmx.tex per Olivier Vogel's comment (CM email?)
-2.501
- Readjust horizontal offset back to .8 in LineBreakTies
- Fix zero-subscript (iudorn) in putorn
-2.50
- Increase number of text-dynamics (dimension of txtdynq) per block
- from 12 to 41.
- Slur option n to override altered default curvature.
- Allow default ps slur curvature tweaks with Ap+/-c
-2.416
- Increase length of textdynq from 24 to 128
- (Todo) Add comment in manual about blank lines at end.
- Configuration file: Define subroutine getpmxmod, check path in environment
- variable pmxmoddir, check existence, read lines into bufq after setup.
- Increase dimension on idynn in dodyn from 4 to 10 for max number
- of marks in a bar
- Increase allowable # of lines from 2000 to 4000.
- (To do) Replace definition of \liftpausc per Olivier.
- (To do) Fix extraneous error message if RD is placed at very end.
-2.415
- Fix "AT" option: replace putxtn,topfile,beamstrt,beamid to use \xnumt
- instead of redefining \xnum. Change font used to \smallfont (as for
- normal xtups,
- Allow slur to start on rest.
-2.414
- Correct bug in crdacc when adding accidental to boundary causes number of
- segments to decrease
- Special rule for 3-accidental chords: If no 2nds, place them in order
- top, bottom, middle.
-2.413
- Correct bugs in chordal accidentals, related to left-shifted noteheads
- (a) Special problems with downstem when main note needs shifting
- (b) Assign 0 rank to boundary segs due to left-shifted noteheads
-2.412
- Change default horiz shift of start of seg 2 of linebreak slurs:
- -.7 for slurs, -1.2 for ties,
- Use height of start of seg 1 slur itself for end of 1 and start of 2.
-2.411
- "Apl" activates special treatment of linebreak slur/tie's; breaks all in 2.
- "s" option in start of slur/tie as precursor to vert/horiz tweaks for end
- of seg 1. of linebreak slur/tie, 2nd "s" for start of seg2.
- With "Apl", curvature adjustments on starting slur command apply to seg 1,
- those on ending command to seg 2.
-2.410
- "AT" to allow Col. S.'s tuplet option. Simply input tuplet.tex and redefine
- \xnum, \unbkt, \ovbkt.
- "s" option in main xtup input after "x": slope tweak for bracket. mult(4) is
- flag, mult(5-9) is tweak value+16
-2.409
- Bugfix in docrd for MIDI: Use original pitch in case main/chord were
- switched due to 2nds.
- Remove "o" from error message for "A" command.
- New syntax: optional instrument number separator ":" in movement
- break command to precede a 2-digit instrument.
- Conditional output formats for \setname at movement break to allow
- instrument numbers >9.
- Bugfix in coding to raise barno due to slur over line break (pmxb)
- Move date/version data statement in pmxab to a better place.
-2.408
- Allow pnotes{x} when x>9.995 (mod is only to format stmt in make2bar).
- Bug fix in \liftPAusep in notex.for and in pmx.tex
- Character variables for version and date
- For up-stem single graces slurred to down-stem, shift slur start left by
- 0.8 so slur doesn't get too short.
- Initialize and slide mult, same as other full-program variables in /all/.
-2.407
- Allow AN[n]"[partname]" to be parsed by scor2prt as filename for part n,
-2.406
- Alter PMX: put \dnstrut into \znotes in \starteq (for system spacing
- equalization).
- Put dimensions of double sharps and flats in crdacc (for chords).
- Bugfix: Use sepsymq in LineBreakTies(..) instead of '&'
- Use only first 4 bits of mult for multiplicity+8, so rest can be used
- for other stuff.
- Move stemlength stuff in nacc(27-30) to mult(27-30) to remove conflict.
-2.405: Not published but saved for safety.
- Option Aph to write \special{header=psslurs.pro} top of each page, so
- dviselec will work OK.
-2.404
- Allow slur to end on rest, but not start on a rest. Efaults height
- of ending is default height of start (before any automatic or user-
- defined djustments). User may adjust height as normal from default.
-2.403
- Bugfix: turn off repeated beaming patterns.at end of non-last voice.
-2.402
- Automatic repeated forced beams. Start with "[:" End with next explicit
- forced beam or end of input block.
- Increase # of forced beams per line of music per input block from 20 to 40
-2.401
- Optional K-Postscript Linebreak Ties, Apl. New subroutine LineBreakTies.
- Makes 1st part normal shape, and starts 2nd part a little further left.
- Enable arpeggios in xtuplets. Had to make time itar(narp) a real.
-2.40
- Set up WrotePsslurDefaults (logical) so only write defaults on 1st Ap.
- Fix non-ps-slur input to \midslur (third signed integer). Do not reverse
- sign for down-slurs.
-2.359
- Add error exit subroutine stop1 to make exit status g77-compatible..
- Absolute octave on xtup chord note was 2 octave too high, fixed in getnote
- Fermata on vertically shifted rest: special trap in putorn() to set height.
- Correct multiple grace note spacing for small staves (in dograce,
- define wheadpt1 depending on staff size)
-2.358
- Allow curvature corrections at start of postscript slur, in dopsslur()
- Local slur options p[+|-][s|t] for [nos|s]luradjust,[not|t]ieadjust
- Options for [Nos|S]luradjust,[Not|T]ieadjust,[noh|h]alfties: Ap[+|-][s|t|h]
- Make t[ID] act like s[ID]t, most mods in spsslur().
- Add spsslur() to read in data for ps slurs, call from getnote.
- In beamstrt, save args for SetupB in common comipb to save them for
- 2nd call when xtup starts with rest
- Add spacing for ornament ")" as if it were accidental, in make2bar().
- Horiz shift start and end of ps ties, dep. on stem dir'n, in dopsslur()
- Horiz. shift start of ps grace slur, 2 places in dograce().
- Horiz shift end of grace slur in endslur()
- Make st slurs into postscript ties. Separate subroutine dopsslur(),
- Non-beamed xtup: "a" in 1st note or rest, before "x" (sets drawbm=.false.)
- Allow two D"x" on same note. Introduced jtxtdyn1 in dodyn.
-2.357a
- Fix missing "end" in backfill.com, too-long lines in g1etnote, getnote
-2.357
- Increase dimension for # of lit TeX strings from 52 to 83.
- Allow blank rest in middle of xtuplet. Only mods in g*etnote().
-2.356
- Increased some dimensions from 30 to 40 to allow up to 40 pages.
- In unbeamed xtups, "n" did not suppress bracket. Fixed in beamstrt().
- Fix parsing of "f,h,H,HH" in sslur.
- Fix bug with cdot, note-level for slur termination (in getnote)
-2.355
- Midi transposition: IT[+|-][n1][+|-][n2]...[+|-][n(noinst)],
- n=# of half-steps. Restrict to mult. of 12 now, to avoid key-sig issues
- Make midi recognize ps ties in doslur.
- Correct ttieforsl so that it eats 2nd argument properly, using \zcharnote
- to get octave right.
-2.354
- With postscript slurs, make t-slurs real ties by inserting replacement
- macros \tieforisu, etc, defined in pmx.tex
- Check for open cresc or decresc at end of input block, using list[de]cresc
- Hairpin syntax conditional on postscript slurs. Backup to fill in start
- level, using new backfill(...). Separate height tweaks for
- start and finish.
-2.353
- K-0+n to transpose by half step (rather than just change key)
- Allow "rm[n]" when nv>1. Require it in all parts. Just write a stack of
- \mbrest's
- Enable "Rz"; define \setzalaligne in pmx.tex. Special treatment at end
- of input block before movement break, and at start of block after
- movement break, using \newmovement rather than \setzalaligne, since
- former already redefines \stoppiece. In second case, set rptfg2='z'.
- Make clefq(nm) common between pmxb and getnote; change references in
- getnote at 'M' to array elements, setting all new clefs as you go.
-2.352
- Remove \parskip redefinition from pmx.tex; write it into TeX file when
- "Ae" is invoked.
- Ap to activate postscript slurs. Add macro \psforts to pmx.tex to redefine
- \tslur in case \midslur was used. Allow slur inputs 'f','h','H','HH',
- translate them thru mapping to (1,4,5,6) as \midslur params, then let
- \psforts translate them back to ps slur macors.
-2.351
- Number slurs from 0 up instead of 11 down, anticipating postscript slurs.
- Write "\eightrm" instead of "\cmr8" for \figfont with small baseline size.
- Increase length of basenameq to 44 characters everywhere.
- Increase dimension of mcpitch (midi-chord-pitch) to 20.
- Set default systems per page to 1 if nv>7
- In pmxb, move place where isystpg is reset to 0, so that \eject gets
- written when there is just one system per page.
-2.35
- Cautionary accidentals with 'c' anywhere in note symbol.
- NEW pmx.tex with \resetsize to set size to normal or small depending on
- current \internote. Used with new coding in dograce() to get right
- new size in case user has \setsize'ed some lines to \smallvalue. For
- \smallvalue-sized staves, redefine \tinynotesize to give 11-pt font.
- Affects pmx.tex.
- Continuation figure with fractional length. May now mix with other figures.
- If another figure follow Cont-fig, separate with colon.
-2.342
- Bugfix in getnote to recognize relative octave shift in grace at start of
- input block.
- In make2bar, initialize islhgt=0 earlier than before (possible solution
- to Suse g77 compile problem that I could not reproduce)..
- Bugfix in beamstrt & beamn1 for r2x6 c4D d d d
-2.341
- Syntax check: Forced page break page number must be > than previous.
- Bugfix: Define ivx when "sliding down" breath/caesure data in pmxb.
-2.34
- New pmx.tex with redefined liftpausc
- Bug fix with dotted, non-beamed xtups.
-2.332
- Fix bugs in horizonal shifts, spacing, for accid's, graces, noteheads.
- Allow arbitrary pos. input to W in g1etnote and getnote.
-2.331
- Bug-fix in dodyn(..): typo on length of arg of txtdyn
-2.33
- Caesura (oc), breath (ob). Set iornq(28), store rest of data in ibcdata()
-2.321
- Rescale accidental shifts. Still use 7 bits but now map (0,127)
- onto (-1.,5.35)
- Fix ihornb bug in dodyn, seen with dynamics on lower-voice non-beamed xtups
-2.32 (Noticed after posting)
- Prohibit "/" as figure.
-2.32 (Posted)
- Tidied up accidentals in chords, do spacing.
- Still to do:
- check for "(" on chord notes in spacing algo
- small accids
- double accids
- autoshift slurs
-2.310
- Extra call to precrd ahead of spacing chk, and single-note crd/acc
- shifts seem OK, but not multiple. crd/acc shifts not recorded 1st time.
-2.309
- Alternate algo for accid shifts in chords.
-2.308
- Auto horiz. notehead shifting added to precrd.
-2.307
- Auto shifting of multiple accidentals in chords.
- "Ao" in main chord note to keep accidentals in order. Set nacc(28).
- If there are any manual main or chord note shifts, then
- If any manual shift is preceded by "A" then
- 1. Auto-shifting proceeds
- 2. "A"-shifts add to autoshifts
- 3. non-"A" shifts are ignored!
- Else (>0 man shifts, none has "A")
- No auto-ordering, No autoshifts,
- End if
- End if
-2.306
- Initialize legacy note level to middle C in case user forgets to set
- octave.
- Shift xtup note?
- Shift in elemskips rather than noteheads?
-2.305
- Stop pmxb from multiple endvolta's at start of new page.
-2.304
- "Sx" in a note means shorten stemlength by x \internotes. "Sx:" turn on
- for multiple notes in the voice, "S:" last shortened note.
-2.303
- vshrink stuff all OK? Description is in pmxb.
-2.302
- Toggle vshrink with "Av". vshrink normally kicks in when \interstaff
- hits 20. This still needs work.
- Add " /" to last line if last char is not % or /.
-2.301
- Check in beamn1 for single note before multiplicity down-up.
- allow '.PMX' as well as '.pmx'
-2.299
- Correct typo in pmxb involving PMXbarnotrue.
- Replacement printed number for xtup: Unsigned integer after 'n' after 'x'
- Minor upgrade parsing xtuplet options 'x...'
- Correct dimension of nxtinbm in make2bar.
-2.298
- Account for doubled xtup notes in subroutine getx (user-defined spaces),
- by adding ndoub as an argument..
-2.297
- Created and solved compiler problem. Put drawbm(NM) in its own common.
- Add new def'ns [\a|PA]usc, \lift[pa|PA]usc to pmx.tex, use them in make2bar
- when \centerbar is used.
- Modify \mbrest & \CenterBar in pmx.tex to use \volta@endcor etc. Have PMX
- use right 2nd and 3rd args for \mbrest when key, meter, or clef changes.
-2.296
- Correct printed numbers for forced beams with multiple xtups. For each beam
- make list in setupb by voice of eloff (h-offset) and mtupv (printed #)
- Increase lengths of jobname and infileq by 20 characters
- Enable whole notes and breves as 1st or last note of xtup in beamn1 and
- beamend, and wholes in beamid.
-2.295
- Midi balance Ib[n1]:[n2]:...[nn]
- Single-slope beam groups [...]-[...]
- Trap "i" unless after accidental (main notes, xtups, chord notes)
-2.294
- Unequal xtups with "D" to double a note in an xtup.
- As above, "F" will (a) increase multiplicity by 1 for marked note and next
- one and (b) add a dot to the first one.
- Fix bug with e.g. c84 [ .d e.f ] by checking whether forced beam is on
- when "." is encountered, then correcting beam start time.(end of getnote)
- MIDI velocity (volume) set: Iv[n1]:[n2]:[n3]...
-2.293
- Check for single notes spanning bar lines.
- Correct various bugs with staff-jumping beams. (1) for 2nd segment, vxtup
- must be set in make2bar since beamstrt is not called, fixing problem with
- dot at end. (2) add ivjb2 to flag which voice has 2nd segment and fix
- problem when >2 staves.
- Add nodur to args of dodyn, so can check if stemless and avoid height tweak
- Correct bug in getdyn setting flag in idynda2(0) for manual horiz. tweak
-2.292a
- Undo syntax check for Type 2 or 3 TeX string starting in column 1.
- Meanwhile, Werner's problem with a mid-line Type 3 string has gone away?!
-2.292
- Allow comments in xtuplets
- Enable multiple octave jumps in grace notes.
- Allow dynamics in xtuplets.
- Fix bug in getdyn searching for end of text string (correct length of lineq
- to 128)
- Fix bug in dodyn, must ignore horiz. interaction tweak for
- user-text (idno = 0)
- Syntax check for Type 2 or 3 TeX string starting in column 1
- (NOTE: later undone!)
- Syntax check for page number > npages at forced line break.
-2.291
- Fix error in AS command (accid spacing for small systems), making only
- one spec per staff, nv total.
- Stop using MIDI channel 10
-2.29
- Fix error in console output format for # of bytes used in MIDI file.
- Fix bug in dograce so no space is added between grace and main note when
- there is a MIDI-only accidental.
- Fix bug so oes?+4 works. It was too ugly to explain.
- ...Different ways of storing accidental specs on input and output.
- No longer zap \writezbarno in special situations.
- Fix bug in dyntxt level on rest
- Line spacing equalization. Add macros \starteq, \endeq, \spread, etc.
- Activate with Ae. (Maybe later could input alternate values for
- \upamt, \dnamt, \parskip). Put \starteq on 1st note in voice 1
- in the page, and \endeq on 1st note of next-to-last line in page.
-2.28
- Flip direction of forced beam "[f..."
- Fix beam numbering for staff jumping beams. Uses irest(23,24,29,30)
- Fix bug in sliding ip's for txtdyn's
- In dyn's allow vert. offsets +/-64, horiz +/-25.6 (store in idnyda2(1-99)
-2.27
- Comment out lines in dodyn checking number of dynamic marks found. Voice
- order may not be monotonic if two lines on a staff.
- Literal dynamic: D"[text]"
-2.26
- Allow hairpin start-stop on same note by disabling auto-tweaks in dodyn,
- increasing dimension of idynn to 4 to allow 4 symbols on same note.
- Increase voltxtq length from 10 to 20.
- AS[-/0][-/0]... to inform PMX that "-" voices are small, and rough
- accounting for ast's is done by defining effective headwidth
- whead1 in makebar2 to be 0.8*whead.
-2.25
- Fix logic bug with sepsym's when # of instruments changes.
- Slight increases in default offsets for hairpin starts after "p"
-2.24
- Hairpins D< or D> as toggle.
- Many automatic position tweaks for letter-group dynamics and hairpins.
-2.23
- Continued rhythmic shortcuts: space followed by "." or ","
-2.22
- In call to doslur, change tno(...) to tnote(...). This was only
- used when checking to slurs per stem directions, and should have been
- the note duration all along.
- MIDI-only accidental, bit 17 in nacc, or 27 in icrdat.
- Use "i" anywhere in note symbol.
-2.21
- Increase from 20 to 30 dimensions for movement breaks and midi sections.
- Fix out-of-order declarations per mutex comments
- Add "Bad error" and "Kluging" messages to log file.
-2.197
- add /comips/ to save tie-check midi variables
- For spacing of clef changes at start of input block, changed integer time
- lastnodur to prevtn, so it works with xtups. Possible incompatibility!
-2.196
- Fix Ickbug with time check in ncmid()
- Interchange \fermataup7 and \pausec to get proper alignment
- Enable French violin clef "f", number 7 in PMX, but 9 in MusiXTeX.
- Add defn's of \hsp, \hspp to pmx.tex
- Fix pre-slurs on xtup chord notes.
- Fixed raised PAuse, define \liftPAuse
- Replace \zbreve\sk with \breve.
- Made "1" work as mtrdenl by doubling it and mtrnuml. BUT WAIT...what
- about "o" and 1 as shorthand for 16???? Search for "Kluge"
- Added "vo" (voice) as MIDI instrument 55
- Allow 3-digit page numbers (search for "toppageno")
- Fix bug caused by prior fix (cancelling accid after bar line was ignored).
- Fix double accids in chords
-2.194
- Fix bug with accid/tie/barline/chord in addmidi by restructuring accid if
- block.
- Add meter to MIDI file with every pause
- Purify FORTRAN?
-2.193
- Increased # of in-line TeX strings from 36 to 52.
- Fix entry of # of bytes in header of tempo/meter/key track to allow >255.
-2.191
- Event track: Tempos, meters, keys all together. Data in comevent
-2.15
- Pretty good midi capability. Still no attention to slurs on chord notes.
-2.11
- 11 Dec 99 c rm1
- 11 Dec 99 "oes?", "oe?"
- 11 Dec 99 Cancel slur horizontal tweaks with non-stemmed notes
- 11 Dec 99 Error message for shifted, repeated ornaments.
-2.10 (Version 2.1)
- Fix bug with lowdot and xtuplets
-2.09
- Fix bug with multiple ornament heights over beams, when one is . or _
- Error message from pmxa if rest on last note of xtup.
- Enable 12 slurs.
- Reinstate multiple rests at start of xtup.
-2.07
- Combine consecutive type-1 TeX strings.
- \midslur and \curve as 3rd signed digit in slur termination, + 2 opt.int's.
- Fixed breve chord notes in docrd
- Check irest(28) as well as vxtup when setting nodur for chord notes, since
- vxtup isn't set until 1st *main* note in xtup
- Vectorize nolev1, slope, ixrest. Klug fix for xtups with variable spacing.
-2.06+
- Make deterministic the beam slope calculation when there are an even # of
- slopes in list and middle two are equal magnitude but opposite sign.
- pmxa Trap for "o:" before 1st note in block
- Partial bug fix for 64th notes in xtuplets.
- Make ixrest a vector, since with new time scheme may not finish xtup in
- same notes block.
- Increase max # of pages from 20 to 30 (dimensions of nsystp,..., in pmxb)
-2.06
- Account for changes in nv when computing \interstaff. Add a counter
- nistaff(iflb) = # of interstaff spaces per system = nv-1. Set whenever
- setting isysflb(iflb). Note nv can only change at a forced line break.
- Note also, iflb starts at 0!
-2.05
- Automatic start of new notes group with part 2 of staff-jump beam
- In make1bar, set irest bit 29 of lowest-voice note at same time,
- use as flag when making notes groups.
- For now, remove dummy blank line at end...it zaps terminal repeats.
-2.02
- Fixed slur-counting bug for multiple, slurred, aftergraces.
-2.01
- Increase to ask(1400)
- Increase max forced page breaks to 18
- Define pausc for centered pause
-2.0a
- Insert dummy blank line at very end to handle input files w/o terminal CR-LF
-pmx03r
- Option m[n] in S symbol to change musicsize (for parts)
- Double dotted rests now work.
- Write file name to log file
- Check existence of input file
- Allow 24-char jobname, may end with ".pmx"
- Comment out time stuff
- Replace 3-argument getarg with 2-argument + iargc
- Fix bug with negative noinst due to nint<=int replacement
- move lovation of iv in isdat1 to allow iv>7.
- Set nm=12
-pmx03q
- replace int(x+.001) with nint(x)
- Write TeX file name to screen and to pml.
- Replace char(...) with chax(...) to sovle msdev bug.
- Bug fix: macro terminations when M is on a line by itself.
- Bug fix: don't accumulate space for XS in pmxa.
- Streamline Macros: use pointers to bufq instead of scratch files
-pmx03p
- Store input file in single character array bufq.
- lbuf(i)*2 is length of line i
- ipbuf is position just before next line to be read.
-pmx03
- Optimize read/writes
-pmx02
- Fix line count (for errors) when there are saved macros
-pmx01
- In optimize mode, open/close macros (Watch out for residual zz files!)
- Command line input
- Option Ao to optimize, otherwise normal processing
-c
diff --git a/Build/source/utils/pmx/pmx-src/INSTALL b/Build/source/utils/pmx/pmx-src/INSTALL
deleted file mode 100644
index 7d1c323beae..00000000000
--- a/Build/source/utils/pmx/pmx-src/INSTALL
+++ /dev/null
@@ -1,365 +0,0 @@
-Installation Instructions
-*************************
-
-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
-
- Copying and distribution of this file, with or without modification,
-are permitted in any medium without royalty provided the copyright
-notice and this notice are preserved. This file is offered as-is,
-without warranty of any kind.
-
-Basic Installation
-==================
-
- Briefly, the shell commands `./configure; make; make install' should
-configure, build, and install this package. The following
-more-detailed instructions are generic; see the `README' file for
-instructions specific to this package. Some packages provide this
-`INSTALL' file but do not implement all of the features documented
-below. The lack of an optional feature in a given package is not
-necessarily a bug. More recommendations for GNU packages can be found
-in *note Makefile Conventions: (standards)Makefile Conventions.
-
- The `configure' shell script attempts to guess correct values for
-various system-dependent variables used during compilation. It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions. Finally, it creates a shell script `config.status' that
-you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
-
- It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-file=config.cache' or simply `-C') that saves
-the results of its tests to speed up reconfiguring. Caching is
-disabled by default to prevent problems with accidental use of stale
-cache files.
-
- If you need to do unusual things to compile the package, please try
-to figure out how `configure' could check whether to do them, and mail
-diffs or instructions to the address given in the `README' so they can
-be considered for the next release. If you are using the cache, and at
-some point `config.cache' contains results you don't want to keep, you
-may remove or edit it.
-
- The file `configure.ac' (or `configure.in') is used to create
-`configure' by a program called `autoconf'. You need `configure.ac' if
-you want to change it or regenerate `configure' using a newer version
-of `autoconf'.
-
- The simplest way to compile this package is:
-
- 1. `cd' to the directory containing the package's source code and type
- `./configure' to configure the package for your system.
-
- Running `configure' might take a while. While running, it prints
- some messages telling which features it is checking for.
-
- 2. Type `make' to compile the package.
-
- 3. Optionally, type `make check' to run any self-tests that come with
- the package, generally using the just-built uninstalled binaries.
-
- 4. Type `make install' to install the programs and any data files and
- documentation. When installing into a prefix owned by root, it is
- recommended that the package be configured and built as a regular
- user, and only the `make install' phase executed with root
- privileges.
-
- 5. Optionally, type `make installcheck' to repeat any self-tests, but
- this time using the binaries in their final installed location.
- This target does not install anything. Running this target as a
- regular user, particularly if the prior `make install' required
- root privileges, verifies that the installation completed
- correctly.
-
- 6. You can remove the program binaries and object files from the
- source code directory by typing `make clean'. To also remove the
- files that `configure' created (so you can compile the package for
- a different kind of computer), type `make distclean'. There is
- also a `make maintainer-clean' target, but that is intended mainly
- for the package's developers. If you use it, you may have to get
- all sorts of other programs in order to regenerate files that came
- with the distribution.
-
- 7. Often, you can also type `make uninstall' to remove the installed
- files again. In practice, not all packages have tested that
- uninstallation works correctly, even though it is required by the
- GNU Coding Standards.
-
- 8. Some packages, particularly those that use Automake, provide `make
- distcheck', which can by used by developers to test that all other
- targets like `make install' and `make uninstall' work correctly.
- This target is generally not run by end users.
-
-Compilers and Options
-=====================
-
- Some systems require unusual options for compilation or linking that
-the `configure' script does not know about. Run `./configure --help'
-for details on some of the pertinent environment variables.
-
- You can give `configure' initial values for configuration parameters
-by setting variables in the command line or in the environment. Here
-is an example:
-
- ./configure CC=c99 CFLAGS=-g LIBS=-lposix
-
- *Note Defining Variables::, for more details.
-
-Compiling For Multiple Architectures
-====================================
-
- You can compile the package for more than one kind of computer at the
-same time, by placing the object files for each architecture in their
-own directory. To do this, you can use GNU `make'. `cd' to the
-directory where you want the object files and executables to go and run
-the `configure' script. `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'. This
-is known as a "VPATH" build.
-
- With a non-GNU `make', it is safer to compile the package for one
-architecture at a time in the source code directory. After you have
-installed the package for one architecture, use `make distclean' before
-reconfiguring for another architecture.
-
- On MacOS X 10.5 and later systems, you can create libraries and
-executables that work on multiple system types--known as "fat" or
-"universal" binaries--by specifying multiple `-arch' options to the
-compiler but only a single `-arch' option to the preprocessor. Like
-this:
-
- ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
- CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
- CPP="gcc -E" CXXCPP="g++ -E"
-
- This is not guaranteed to produce working output in all cases, you
-may have to build one architecture at a time and combine the results
-using the `lipo' tool if you have problems.
-
-Installation Names
-==================
-
- By default, `make install' installs the package's commands under
-`/usr/local/bin', include files under `/usr/local/include', etc. You
-can specify an installation prefix other than `/usr/local' by giving
-`configure' the option `--prefix=PREFIX', where PREFIX must be an
-absolute file name.
-
- You can specify separate installation prefixes for
-architecture-specific files and architecture-independent files. If you
-pass the option `--exec-prefix=PREFIX' to `configure', the package uses
-PREFIX as the prefix for installing programs and libraries.
-Documentation and other data files still use the regular prefix.
-
- In addition, if you use an unusual directory layout you can give
-options like `--bindir=DIR' to specify different values for particular
-kinds of files. Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them. In general, the
-default for these options is expressed in terms of `${prefix}', so that
-specifying just `--prefix' will affect all of the other directory
-specifications that were not explicitly provided.
-
- The most portable way to affect installation locations is to pass the
-correct locations to `configure'; however, many packages provide one or
-both of the following shortcuts of passing variable assignments to the
-`make install' command line to change installation locations without
-having to reconfigure or recompile.
-
- The first method involves providing an override variable for each
-affected directory. For example, `make install
-prefix=/alternate/directory' will choose an alternate location for all
-directory configuration variables that were expressed in terms of
-`${prefix}'. Any directories that were specified during `configure',
-but not in terms of `${prefix}', must each be overridden at install
-time for the entire installation to be relocated. The approach of
-makefile variable overrides for each directory variable is required by
-the GNU Coding Standards, and ideally causes no recompilation.
-However, some platforms have known limitations with the semantics of
-shared libraries that end up requiring recompilation when using this
-method, particularly noticeable in packages that use GNU Libtool.
-
- The second method involves providing the `DESTDIR' variable. For
-example, `make install DESTDIR=/alternate/directory' will prepend
-`/alternate/directory' before all installation names. The approach of
-`DESTDIR' overrides is not required by the GNU Coding Standards, and
-does not work on platforms that have drive letters. On the other hand,
-it does better at avoiding recompilation issues, and works well even
-when some directory options were not specified in terms of `${prefix}'
-at `configure' time.
-
-Optional Features
-=================
-
- If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving `configure' the
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
-
- Some packages pay attention to `--enable-FEATURE' options to
-`configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
-is something like `gnu-as' or `x' (for the X Window System). The
-`README' should mention any `--enable-' and `--with-' options that the
-package recognizes.
-
- For packages that use the X Window System, `configure' can usually
-find the X include and library files automatically, but if it doesn't,
-you can use the `configure' options `--x-includes=DIR' and
-`--x-libraries=DIR' to specify their locations.
-
- Some packages offer the ability to configure how verbose the
-execution of `make' will be. For these packages, running `./configure
---enable-silent-rules' sets the default to minimal output, which can be
-overridden with `make V=1'; while running `./configure
---disable-silent-rules' sets the default to verbose, which can be
-overridden with `make V=0'.
-
-Particular systems
-==================
-
- On HP-UX, the default C compiler is not ANSI C compatible. If GNU
-CC is not installed, it is recommended to use the following options in
-order to use an ANSI C compiler:
-
- ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
-
-and if that doesn't work, install pre-built binaries of GCC for HP-UX.
-
- On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
-parse its `<wchar.h>' header file. The option `-nodtk' can be used as
-a workaround. If GNU CC is not installed, it is therefore recommended
-to try
-
- ./configure CC="cc"
-
-and if that doesn't work, try
-
- ./configure CC="cc -nodtk"
-
- On Solaris, don't put `/usr/ucb' early in your `PATH'. This
-directory contains several dysfunctional programs; working variants of
-these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
-in your `PATH', put it _after_ `/usr/bin'.
-
- On Haiku, software installed for all users goes in `/boot/common',
-not `/usr/local'. It is recommended to use the following options:
-
- ./configure --prefix=/boot/common
-
-Specifying the System Type
-==========================
-
- There may be some features `configure' cannot figure out
-automatically, but needs to determine by the type of machine the package
-will run on. Usually, assuming the package is built to be run on the
-_same_ architectures, `configure' can figure that out, but if it prints
-a message saying it cannot guess the machine type, give it the
-`--build=TYPE' option. TYPE can either be a short name for the system
-type, such as `sun4', or a canonical name which has the form:
-
- CPU-COMPANY-SYSTEM
-
-where SYSTEM can have one of these forms:
-
- OS
- KERNEL-OS
-
- See the file `config.sub' for the possible values of each field. If
-`config.sub' isn't included in this package, then this package doesn't
-need to know the machine type.
-
- If you are _building_ compiler tools for cross-compiling, you should
-use the option `--target=TYPE' to select the type of system they will
-produce code for.
-
- If you want to _use_ a cross compiler, that generates code for a
-platform different from the build platform, you should specify the
-"host" platform (i.e., that on which the generated programs will
-eventually be run) with `--host=TYPE'.
-
-Sharing Defaults
-================
-
- If you want to set default values for `configure' scripts to share,
-you can create a site shell script called `config.site' that gives
-default values for variables like `CC', `cache_file', and `prefix'.
-`configure' looks for `PREFIX/share/config.site' if it exists, then
-`PREFIX/etc/config.site' if it exists. Or, you can set the
-`CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all `configure' scripts look for a site script.
-
-Defining Variables
-==================
-
- Variables not defined in a site shell script can be set in the
-environment passed to `configure'. However, some packages may run
-configure again during the build, and the customized values of these
-variables may be lost. In order to avoid this problem, you should set
-them in the `configure' command line, using `VAR=value'. For example:
-
- ./configure CC=/usr/local2/bin/gcc
-
-causes the specified `gcc' to be used as the C compiler (unless it is
-overridden in the site shell script).
-
-Unfortunately, this technique does not work for `CONFIG_SHELL' due to
-an Autoconf bug. Until the bug is fixed you can use this workaround:
-
- CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
-
-`configure' Invocation
-======================
-
- `configure' recognizes the following options to control how it
-operates.
-
-`--help'
-`-h'
- Print a summary of all of the options to `configure', and exit.
-
-`--help=short'
-`--help=recursive'
- Print a summary of the options unique to this package's
- `configure', and exit. The `short' variant lists options used
- only in the top level, while the `recursive' variant lists options
- also present in any nested packages.
-
-`--version'
-`-V'
- Print the version of Autoconf used to generate the `configure'
- script, and exit.
-
-`--cache-file=FILE'
- Enable the cache: use and save the results of the tests in FILE,
- traditionally `config.cache'. FILE defaults to `/dev/null' to
- disable caching.
-
-`--config-cache'
-`-C'
- Alias for `--cache-file=config.cache'.
-
-`--quiet'
-`--silent'
-`-q'
- Do not print messages saying which checks are being made. To
- suppress all normal output, redirect it to `/dev/null' (any error
- messages will still be shown).
-
-`--srcdir=DIR'
- Look for the package's source code in directory DIR. Usually
- `configure' can determine that directory automatically.
-
-`--prefix=DIR'
- Use DIR as the installation prefix. *note Installation Names::
- for more details, including other options available for fine-tuning
- the installation locations.
-
-`--no-create'
-`-n'
- Run the configure checks, but stop before creating any output
- files.
-
-`configure' also accepts some other, not widely useful, options. Run
-`configure --help' for more details.
-
diff --git a/Build/source/utils/pmx/pmx-src/Makefile.am b/Build/source/utils/pmx/pmx-src/Makefile.am
deleted file mode 100644
index 8d03490b750..00000000000
--- a/Build/source/utils/pmx/pmx-src/Makefile.am
+++ /dev/null
@@ -1,244 +0,0 @@
-## Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
-## You may freely use, modify and/or distribute this file.
-##
-
-INCLUDES = -I$(srcdir)/libf2c
-
-bin_PROGRAMS = pmxab scor2prt
-
-pmxab_SOURCES = pmxab.c
-
-scor2prt_SOURCES = scor2prt.c
-
-LDADD = libf2c.a
-
-noinst_LIBRARIES = libf2c.a
-
-## libf2c headers
-libf2c_a_SOURCES = \
- arith.h \
- libf2c/f2c.h \
- libf2c/fio.h \
- libf2c/fmt.h \
- libf2c/fp.h \
- libf2c/lio.h \
- libf2c/rawio.h \
- libf2c/signal1.h \
- libf2c/sysdep1.h
-## MISC
-libf2c_a_SOURCES += \
- libf2c/abort_.c \
- libf2c/cabs.c \
- libf2c/derf_.c \
- libf2c/derfc_.c \
- libf2c/erf_.c \
- libf2c/erfc_.c \
- libf2c/exit_.c \
- libf2c/f77vers.c \
- libf2c/getarg_.c \
- libf2c/getenv_.c \
- libf2c/i77vers.c \
- libf2c/iargc_.c \
- libf2c/main.c \
- libf2c/s_paus.c \
- libf2c/s_rnge.c \
- libf2c/s_stop.c \
- libf2c/sig_die.c \
- libf2c/signal_.c \
- libf2c/system_.c
-## MISC (not used for pmx)
-EXTRA_libf2c_a_SOURCES = \
- libf2c/uninit.c
-## POW
-libf2c_a_SOURCES += \
- libf2c/pow_ci.c \
- libf2c/pow_dd.c \
- libf2c/pow_di.c \
- libf2c/pow_hh.c \
- libf2c/pow_ii.c \
- libf2c/pow_ri.c \
- libf2c/pow_zi.c \
- libf2c/pow_zz.c
-## CX
-libf2c_a_SOURCES += \
- libf2c/c_abs.c \
- libf2c/c_cos.c \
- libf2c/c_div.c \
- libf2c/c_exp.c \
- libf2c/c_log.c \
- libf2c/c_sin.c \
- libf2c/c_sqrt.c
-## DCX
-libf2c_a_SOURCES += \
- libf2c/z_abs.c \
- libf2c/z_cos.c \
- libf2c/z_div.c \
- libf2c/z_exp.c \
- libf2c/z_log.c \
- libf2c/z_sin.c \
- libf2c/z_sqrt.c
-## REAL
-libf2c_a_SOURCES += \
- libf2c/r_abs.c \
- libf2c/r_acos.c \
- libf2c/r_asin.c \
- libf2c/r_atan.c \
- libf2c/r_atn2.c \
- libf2c/r_cnjg.c \
- libf2c/r_cos.c \
- libf2c/r_cosh.c \
- libf2c/r_dim.c \
- libf2c/r_exp.c \
- libf2c/r_imag.c \
- libf2c/r_int.c \
- libf2c/r_lg10.c \
- libf2c/r_log.c \
- libf2c/r_mod.c \
- libf2c/r_nint.c \
- libf2c/r_sign.c \
- libf2c/r_sin.c \
- libf2c/r_sinh.c \
- libf2c/r_sqrt.c \
- libf2c/r_tan.c \
- libf2c/r_tanh.c
-## DBL
-libf2c_a_SOURCES += \
- libf2c/d_abs.c \
- libf2c/d_acos.c \
- libf2c/d_asin.c \
- libf2c/d_atan.c \
- libf2c/d_atn2.c \
- libf2c/d_cnjg.c \
- libf2c/d_cos.c \
- libf2c/d_cosh.c \
- libf2c/d_dim.c \
- libf2c/d_exp.c \
- libf2c/d_imag.c \
- libf2c/d_int.c \
- libf2c/d_lg10.c \
- libf2c/d_log.c \
- libf2c/d_mod.c \
- libf2c/d_nint.c \
- libf2c/d_prod.c \
- libf2c/d_sign.c \
- libf2c/d_sin.c \
- libf2c/d_sinh.c \
- libf2c/d_sqrt.c \
- libf2c/d_tan.c \
- libf2c/d_tanh.c
-## INT
-libf2c_a_SOURCES += \
- libf2c/i_abs.c \
- libf2c/i_dim.c \
- libf2c/i_dnnt.c \
- libf2c/i_indx.c \
- libf2c/i_len.c \
- libf2c/i_mod.c \
- libf2c/i_nint.c \
- libf2c/i_sign.c \
- libf2c/lbitbits.c \
- libf2c/lbitshft.c
-## HALF
-libf2c_a_SOURCES += \
- libf2c/h_abs.c \
- libf2c/h_dim.c \
- libf2c/h_dnnt.c \
- libf2c/h_indx.c \
- libf2c/h_len.c \
- libf2c/h_mod.c \
- libf2c/h_nint.c \
- libf2c/h_sign.c
-## CMP
-libf2c_a_SOURCES += \
- libf2c/hl_ge.c \
- libf2c/hl_gt.c \
- libf2c/hl_le.c \
- libf2c/hl_lt.c \
- libf2c/l_ge.c \
- libf2c/l_gt.c \
- libf2c/l_le.c \
- libf2c/l_lt.c
-## EFL
-libf2c_a_SOURCES += \
- libf2c/ef1asc_.c \
- libf2c/ef1cmc_.c
-## CHAR
-libf2c_a_SOURCES += \
- libf2c/f77_aloc.c \
- libf2c/s_cat.c \
- libf2c/s_cmp.c \
- libf2c/s_copy.c
-## I77
-libf2c_a_SOURCES += \
- libf2c/backspac.c \
- libf2c/close.c \
- libf2c/dfe.c \
- libf2c/dolio.c \
- libf2c/due.c \
- libf2c/endfile.c \
- libf2c/err.c \
- libf2c/fmt.c \
- libf2c/fmtlib.c \
- libf2c/ftell_.c \
- libf2c/iio.c \
- libf2c/ilnw.c \
- libf2c/inquire.c \
- libf2c/lread.c \
- libf2c/lwrite.c \
- libf2c/open.c \
- libf2c/rdfmt.c \
- libf2c/rewind.c \
- libf2c/rsfe.c \
- libf2c/rsli.c \
- libf2c/rsne.c \
- libf2c/sfe.c \
- libf2c/sue.c \
- libf2c/typesize.c \
- libf2c/uio.c \
- libf2c/util.c \
- libf2c/wref.c \
- libf2c/wrtfmt.c \
- libf2c/wsfe.c \
- libf2c/wsle.c \
- libf2c/wsne.c \
- libf2c/xwsne.c
-## TIME
-libf2c_a_SOURCES += \
- libf2c/dtime_.c \
- libf2c/etime_.c
-
-## Handle DOS line endings
-if WIN32
-libf2c_a_SOURCES += w32getc.c
-endif WIN32
-
-## QINT (unused)
-EXTRA_libf2c_a_SOURCES += \
- libf2c/ftell64_.c \
- libf2c/pow_qq.c \
- libf2c/qbitbits.c \
- libf2c/qbitshft.c
-## unused
-EXTRA_libf2c_a_SOURCES += \
- libf2c/signbit.c
-
-## Tests
-##
-TESTS = pmx.test
-TESTS_ENVIRONMENT = test_src=$(srcdir)/tests
-EXTRA_DIST = $(TESTS)
-
-PATCHES = libf2c/patch-01-binary libf2c/patch-03-DOS-line-endings \
- libf2c/patch-04-MSVC-complex libf2c/patch-05-FreeBSD-off_t libf2c/patch-06-WIN32 \
- libf2c/patch-07-MuslLibc \
- libf2c/patch-08-WIN64 \
- libf2c/patch-09-tmpfile
-## 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 pmx294.for
-EXTRA_DIST += $(PATCHES)
-EXTRA_DIST += version.ac configure.ac Makefile.am Makefile.f2c
-EXTRA_DIST += pmx.tex
-DISTCLEANFILES = barsant* pmxaerr.dat
-
diff --git a/Build/source/utils/pmx/pmx-src/Makefile.f2c b/Build/source/utils/pmx/pmx-src/Makefile.f2c
deleted file mode 100644
index 3020abf71a4..00000000000
--- a/Build/source/utils/pmx/pmx-src/Makefile.f2c
+++ /dev/null
@@ -1,7 +0,0 @@
-all: pmxab.c scor2prt.c
-
-pmxab.c: pmx294.for
- f2c -g -\!bs < pmx294.for > pmxab.c
-
-scor2prt.c: scor2prt.for
- f2c -g -\!bs < scor2prt.for > scor2prt.c
diff --git a/Build/source/utils/pmx/pmx-src/NEWS b/Build/source/utils/pmx/pmx-src/NEWS
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/Build/source/utils/pmx/pmx-src/NEWS
+++ /dev/null
diff --git a/Build/source/utils/pmx/pmx-src/README b/Build/source/utils/pmx/pmx-src/README
deleted file mode 100644
index 9b9dcc5c6f9..00000000000
--- a/Build/source/utils/pmx/pmx-src/README
+++ /dev/null
@@ -1,11 +0,0 @@
-This is PMX, version 2.9.4 (2020-03-17). 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
-most of MusiXTeX's functionality, but it also permits in-line TeX to
-give access to virtually all of MusiXTeX. For proof-listening, pmxab will
-make a MIDI file of your score.
-
-scor2prt is an auxiliary program that makes parts from a score.
-
-The author of pmxab and scor2prt is Don Simons (dsimons@roadrunner.com).
diff --git a/Build/source/utils/pmx/pmx-src/configure.ac b/Build/source/utils/pmx/pmx-src/configure.ac
deleted file mode 100644
index c3e278cbf49..00000000000
--- a/Build/source/utils/pmx/pmx-src/configure.ac
+++ /dev/null
@@ -1,43 +0,0 @@
-dnl Process this file with autoconf to produce a configure script.
-dnl
-dnl Copyright 2015-2020 Karl Berry <tex-live@tug.org>
-dnl Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
-dnl
-dnl This file is free software; the copyright holder
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-dnl
-m4_include([version.ac])[] dnl define pmx_version
-AC_INIT([pmx], pmx_version, [rdt@cs.queensu.ca])
-AC_PREREQ([2.63])
-AC_CONFIG_SRCDIR([pmxab.c])
-
-AM_INIT_AUTOMAKE
-
-dnl Check compiler and flags
-AC_PROG_CC
-
-dnl initial value for AM_CPPFLAGS
-AC_SUBST([AM_CPPFLAGS], ['-DNON_UNIX_STDIO'])
-
-dnl WIN32 has no <sys/times.h>
-AM_CONDITIONAL([WIN32], [test "x$kpse_cv_have_win32" != xno])
-if test "x$kpse_cv_have_win32" != xno; then
- AM_CPPFLAGS="$AM_CPPPFLAGS -DUSE_CLOCK"
-fi
-
-dnl Checks for programs.
-AC_PROG_INSTALL
-AC_PROG_LN_S
-AC_PROG_MAKE_SET
-AC_PROG_RANLIB
-
-AC_SEARCH_LIBS([erf], [m])
-
-AC_CHECK_SIZEOF([long long])
-if test $ac_cv_sizeof_long_long -lt 8; then
- AM_CPPFLAGS="$AM_CPPPFLAGS -DNO_LONG_LONG"
-fi
-
-AC_CONFIG_FILES([Makefile])
-AC_OUTPUT
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/abort_.c b/Build/source/utils/pmx/pmx-src/libf2c/abort_.c
deleted file mode 100644
index fa5aae6b716..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/abort_.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "stdio.h"
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern VOID sig_die();
-
-int abort_()
-#else
-extern void sig_die(char*,int);
-
-int abort_(void)
-#endif
-{
-sig_die("Fortran abort routine called", 1);
-return 0; /* not reached */
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/backspac.c b/Build/source/utils/pmx/pmx-src/libf2c/backspac.c
deleted file mode 100644
index 908a61897aa..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/backspac.c
+++ /dev/null
@@ -1,76 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef KR_headers
-integer f_back(a) alist *a;
-#else
-integer f_back(alist *a)
-#endif
-{ unit *b;
- OFF_T v, w, x, y, z;
- uiolen n;
- FILE *f;
-
- f__curunit = b = &f__units[a->aunit]; /* curunit for error messages */
- if(a->aunit >= MXUNIT || a->aunit < 0)
- err(a->aerr,101,"backspace")
- if(b->useek==0) err(a->aerr,106,"backspace")
- if(b->ufd == NULL) {
- fk_open(1, 1, a->aunit);
- return(0);
- }
- if(b->uend==1)
- { b->uend=0;
- return(0);
- }
- if(b->uwrt) {
- t_runc(a);
- if (f__nowreading(b))
- err(a->aerr,errno,"backspace")
- }
- f = b->ufd; /* may have changed in t_runc() */
- if(b->url>0)
- {
- x=FTELL(f);
- y = x % b->url;
- if(y == 0) x--;
- x /= b->url;
- x *= b->url;
- (void) FSEEK(f,x,SEEK_SET);
- return(0);
- }
-
- if(b->ufmt==0)
- { FSEEK(f,-(OFF_T)sizeof(uiolen),SEEK_CUR);
- fread((char *)&n,sizeof(uiolen),1,f);
- FSEEK(f,-(OFF_T)n-2*sizeof(uiolen),SEEK_CUR);
- return(0);
- }
- w = x = FTELL(f);
- z = 0;
- loop:
- while(x) {
- x -= x < 64 ? x : 64;
- FSEEK(f,x,SEEK_SET);
- for(y = x; y < w; y++) {
- if (getc(f) != '\n')
- continue;
- v = FTELL(f);
- if (v == w) {
- if (z)
- goto break2;
- goto loop;
- }
- z = v;
- }
- err(a->aerr,(EOF),"backspace")
- }
- break2:
- FSEEK(f, z, SEEK_SET);
- return 0;
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/c_abs.c b/Build/source/utils/pmx/pmx-src/libf2c/c_abs.c
deleted file mode 100644
index 858f2c8b4b1..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/c_abs.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern double f__cabs();
-
-double c_abs(z) complex *z;
-#else
-extern double f__cabs(double, double);
-
-double c_abs(complex *z)
-#endif
-{
-return( f__cabs( z->r, z->i ) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/c_cos.c b/Build/source/utils/pmx/pmx-src/libf2c/c_cos.c
deleted file mode 100644
index 29fe49e3cda..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/c_cos.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-extern double sin(), cos(), sinh(), cosh();
-
-VOID c_cos(r, z) complex *r, *z;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void c_cos(complex *r, complex *z)
-#endif
-{
- double zi = z->i, zr = z->r;
- r->r = cos(zr) * cosh(zi);
- r->i = - sin(zr) * sinh(zi);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/c_div.c b/Build/source/utils/pmx/pmx-src/libf2c/c_div.c
deleted file mode 100644
index 59425e7aaad..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/c_div.c
+++ /dev/null
@@ -1,53 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern VOID sig_die();
-VOID c_div(c, a, b)
-complex *a, *b, *c;
-#else
-extern void sig_die(char*,int);
-void c_div(complex *c, complex *a, complex *b)
-#endif
-{
- double ratio, den;
- double abr, abi, cr;
-
- if( (abr = b->r) < 0.)
- abr = - abr;
- if( (abi = b->i) < 0.)
- abi = - abi;
- if( abr <= abi )
- {
- if(abi == 0) {
-#ifdef IEEE_COMPLEX_DIVIDE
- float af, bf;
- af = bf = abr;
- if (a->i != 0 || a->r != 0)
- af = 1.;
- c->i = c->r = af / bf;
- return;
-#else
- sig_die("complex division by zero", 1);
-#endif
- }
- ratio = (double)b->r / b->i ;
- den = b->i * (1 + ratio*ratio);
- cr = (a->r*ratio + a->i) / den;
- c->i = (a->i*ratio - a->r) / den;
- }
-
- else
- {
- ratio = (double)b->i / b->r ;
- den = b->r * (1 + ratio*ratio);
- cr = (a->r + a->i*ratio) / den;
- c->i = (a->i - a->r*ratio) / den;
- }
- c->r = cr;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/c_exp.c b/Build/source/utils/pmx/pmx-src/libf2c/c_exp.c
deleted file mode 100644
index f46508d35b1..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/c_exp.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-extern double exp(), cos(), sin();
-
- VOID c_exp(r, z) complex *r, *z;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void c_exp(complex *r, complex *z)
-#endif
-{
- double expx, zi = z->i;
-
- expx = exp(z->r);
- r->r = expx * cos(zi);
- r->i = expx * sin(zi);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/c_log.c b/Build/source/utils/pmx/pmx-src/libf2c/c_log.c
deleted file mode 100644
index a0ba3f0d8d2..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/c_log.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-extern double log(), f__cabs(), atan2();
-VOID c_log(r, z) complex *r, *z;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern double f__cabs(double, double);
-
-void c_log(complex *r, complex *z)
-#endif
-{
- double zi, zr;
- r->i = atan2(zi = z->i, zr = z->r);
- r->r = log( f__cabs(zr, zi) );
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/c_sin.c b/Build/source/utils/pmx/pmx-src/libf2c/c_sin.c
deleted file mode 100644
index c8bc30f2d69..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/c_sin.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-extern double sin(), cos(), sinh(), cosh();
-
-VOID c_sin(r, z) complex *r, *z;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void c_sin(complex *r, complex *z)
-#endif
-{
- double zi = z->i, zr = z->r;
- r->r = sin(zr) * cosh(zi);
- r->i = cos(zr) * sinh(zi);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/c_sqrt.c b/Build/source/utils/pmx/pmx-src/libf2c/c_sqrt.c
deleted file mode 100644
index 1678c534d60..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/c_sqrt.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-extern double sqrt(), f__cabs();
-
-VOID c_sqrt(r, z) complex *r, *z;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern double f__cabs(double, double);
-
-void c_sqrt(complex *r, complex *z)
-#endif
-{
- double mag, t;
- double zi = z->i, zr = z->r;
-
- if( (mag = f__cabs(zr, zi)) == 0.)
- r->r = r->i = 0.;
- else if(zr > 0)
- {
- r->r = t = sqrt(0.5 * (mag + zr) );
- t = zi / t;
- r->i = 0.5 * t;
- }
- else
- {
- t = sqrt(0.5 * (mag - zr) );
- if(zi < 0)
- t = -t;
- r->i = t;
- t = zi / t;
- r->r = 0.5 * t;
- }
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/cabs.c b/Build/source/utils/pmx/pmx-src/libf2c/cabs.c
deleted file mode 100644
index 84750d505cf..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/cabs.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifdef KR_headers
-extern double sqrt();
-double f__cabs(real, imag) double real, imag;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double f__cabs(double real, double imag)
-#endif
-{
-double temp;
-
-if(real < 0)
- real = -real;
-if(imag < 0)
- imag = -imag;
-if(imag > real){
- temp = real;
- real = imag;
- imag = temp;
-}
-if((real+imag) == real)
- return(real);
-
-temp = imag/real;
-temp = real*sqrt(1.0 + temp*temp); /*overflow!!*/
-return(temp);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/close.c b/Build/source/utils/pmx/pmx-src/libf2c/close.c
deleted file mode 100644
index e958c7172a8..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/close.c
+++ /dev/null
@@ -1,101 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#ifdef KR_headers
-integer f_clos(a) cllist *a;
-#else
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#ifdef NON_UNIX_STDIO
-#ifndef unlink
-#define unlink remove
-#endif
-#else
-#ifdef MSDOS
-#include "io.h"
-#else
-#ifdef __cplusplus
-extern "C" int unlink(const char*);
-#else
-extern int unlink(const char*);
-#endif
-#endif
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-integer f_clos(cllist *a)
-#endif
-{ unit *b;
-
- if(a->cunit >= MXUNIT) return(0);
- b= &f__units[a->cunit];
- if(b->ufd==NULL)
- goto done;
- if (b->uscrtch == 1)
- goto Delete;
- if (!a->csta)
- goto Keep;
- switch(*a->csta) {
- default:
- Keep:
- case 'k':
- case 'K':
- if(b->uwrt == 1)
- t_runc((alist *)a);
- if(b->ufnm) {
- fclose(b->ufd);
- free(b->ufnm);
- }
- break;
- case 'd':
- case 'D':
- Delete:
- fclose(b->ufd);
- if(b->ufnm) {
- unlink(b->ufnm); /*SYSDEP*/
- free(b->ufnm);
- }
- }
- b->ufd=NULL;
- done:
- b->uend=0;
- b->ufnm=NULL;
- return(0);
- }
- void
-#ifdef KR_headers
-f_exit()
-#else
-f_exit(void)
-#endif
-{ int i;
- static cllist xx;
- if (!xx.cerr) {
- xx.cerr=1;
- xx.csta=NULL;
- for(i=0;i<MXUNIT;i++)
- {
- xx.cunit=i;
- (void) f_clos(&xx);
- }
- }
-}
- int
-#ifdef KR_headers
-flush_()
-#else
-flush_(void)
-#endif
-{ int i;
- for(i=0;i<MXUNIT;i++)
- if(f__units[i].ufd != NULL && f__units[i].uwrt)
- fflush(f__units[i].ufd);
-return 0;
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_abs.c b/Build/source/utils/pmx/pmx-src/libf2c/d_abs.c
deleted file mode 100644
index 2f7a153c2e3..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_abs.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double d_abs(x) doublereal *x;
-#else
-double d_abs(doublereal *x)
-#endif
-{
-if(*x >= 0)
- return(*x);
-return(- *x);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_acos.c b/Build/source/utils/pmx/pmx-src/libf2c/d_acos.c
deleted file mode 100644
index 69005b56d76..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_acos.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double acos();
-double d_acos(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_acos(doublereal *x)
-#endif
-{
-return( acos(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_asin.c b/Build/source/utils/pmx/pmx-src/libf2c/d_asin.c
deleted file mode 100644
index d5196ab101e..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_asin.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double asin();
-double d_asin(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_asin(doublereal *x)
-#endif
-{
-return( asin(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_atan.c b/Build/source/utils/pmx/pmx-src/libf2c/d_atan.c
deleted file mode 100644
index d8856f8d698..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_atan.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double atan();
-double d_atan(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_atan(doublereal *x)
-#endif
-{
-return( atan(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_atn2.c b/Build/source/utils/pmx/pmx-src/libf2c/d_atn2.c
deleted file mode 100644
index 56113850ab9..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_atn2.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double atan2();
-double d_atn2(x,y) doublereal *x, *y;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_atn2(doublereal *x, doublereal *y)
-#endif
-{
-return( atan2(*x,*y) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_cnjg.c b/Build/source/utils/pmx/pmx-src/libf2c/d_cnjg.c
deleted file mode 100644
index 38471d9bc0e..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_cnjg.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- VOID
-#ifdef KR_headers
-d_cnjg(r, z) doublecomplex *r, *z;
-#else
-d_cnjg(doublecomplex *r, doublecomplex *z)
-#endif
-{
- doublereal zi = z->i;
- r->r = z->r;
- r->i = -zi;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_cos.c b/Build/source/utils/pmx/pmx-src/libf2c/d_cos.c
deleted file mode 100644
index 12def9ad0fd..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_cos.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double cos();
-double d_cos(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_cos(doublereal *x)
-#endif
-{
-return( cos(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_cosh.c b/Build/source/utils/pmx/pmx-src/libf2c/d_cosh.c
deleted file mode 100644
index 9214c7a0d82..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_cosh.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double cosh();
-double d_cosh(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_cosh(doublereal *x)
-#endif
-{
-return( cosh(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_dim.c b/Build/source/utils/pmx/pmx-src/libf2c/d_dim.c
deleted file mode 100644
index 627ddb690fd..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_dim.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double d_dim(a,b) doublereal *a, *b;
-#else
-double d_dim(doublereal *a, doublereal *b)
-#endif
-{
-return( *a > *b ? *a - *b : 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_exp.c b/Build/source/utils/pmx/pmx-src/libf2c/d_exp.c
deleted file mode 100644
index e9ab5d4425c..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_exp.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double exp();
-double d_exp(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_exp(doublereal *x)
-#endif
-{
-return( exp(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_imag.c b/Build/source/utils/pmx/pmx-src/libf2c/d_imag.c
deleted file mode 100644
index d17b9dd591d..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_imag.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double d_imag(z) doublecomplex *z;
-#else
-double d_imag(doublecomplex *z)
-#endif
-{
-return(z->i);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_int.c b/Build/source/utils/pmx/pmx-src/libf2c/d_int.c
deleted file mode 100644
index 6da4ce35e92..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_int.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double floor();
-double d_int(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_int(doublereal *x)
-#endif
-{
-return( (*x>0) ? floor(*x) : -floor(- *x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_lg10.c b/Build/source/utils/pmx/pmx-src/libf2c/d_lg10.c
deleted file mode 100644
index 664c19d9e99..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_lg10.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "f2c.h"
-
-#define log10e 0.43429448190325182765
-
-#ifdef KR_headers
-double log();
-double d_lg10(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_lg10(doublereal *x)
-#endif
-{
-return( log10e * log(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_log.c b/Build/source/utils/pmx/pmx-src/libf2c/d_log.c
deleted file mode 100644
index e74be02c54e..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_log.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double log();
-double d_log(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_log(doublereal *x)
-#endif
-{
-return( log(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_mod.c b/Build/source/utils/pmx/pmx-src/libf2c/d_mod.c
deleted file mode 100644
index 3766d9fa828..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_mod.c
+++ /dev/null
@@ -1,46 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-#ifdef IEEE_drem
-double drem();
-#else
-double floor();
-#endif
-double d_mod(x,y) doublereal *x, *y;
-#else
-#ifdef IEEE_drem
-double drem(double, double);
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#endif
-double d_mod(doublereal *x, doublereal *y)
-#endif
-{
-#ifdef IEEE_drem
- double xa, ya, z;
- if ((ya = *y) < 0.)
- ya = -ya;
- z = drem(xa = *x, ya);
- if (xa > 0) {
- if (z < 0)
- z += ya;
- }
- else if (z > 0)
- z -= ya;
- return z;
-#else
- double quotient;
- if( (quotient = *x / *y) >= 0)
- quotient = floor(quotient);
- else
- quotient = -floor(-quotient);
- return(*x - (*y) * quotient );
-#endif
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_nint.c b/Build/source/utils/pmx/pmx-src/libf2c/d_nint.c
deleted file mode 100644
index 66f2dd0ee67..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_nint.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double floor();
-double d_nint(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_nint(doublereal *x)
-#endif
-{
-return( (*x)>=0 ?
- floor(*x + .5) : -floor(.5 - *x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_prod.c b/Build/source/utils/pmx/pmx-src/libf2c/d_prod.c
deleted file mode 100644
index f9f348b03dd..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_prod.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double d_prod(x,y) real *x, *y;
-#else
-double d_prod(real *x, real *y)
-#endif
-{
-return( (*x) * (*y) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_sign.c b/Build/source/utils/pmx/pmx-src/libf2c/d_sign.c
deleted file mode 100644
index d06e0d19231..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_sign.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double d_sign(a,b) doublereal *a, *b;
-#else
-double d_sign(doublereal *a, doublereal *b)
-#endif
-{
-double x;
-x = (*a >= 0 ? *a : - *a);
-return( *b >= 0 ? x : -x);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_sin.c b/Build/source/utils/pmx/pmx-src/libf2c/d_sin.c
deleted file mode 100644
index ebd4eec5eeb..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_sin.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double sin();
-double d_sin(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_sin(doublereal *x)
-#endif
-{
-return( sin(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_sinh.c b/Build/source/utils/pmx/pmx-src/libf2c/d_sinh.c
deleted file mode 100644
index 2479a6fab22..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_sinh.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double sinh();
-double d_sinh(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_sinh(doublereal *x)
-#endif
-{
-return( sinh(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_sqrt.c b/Build/source/utils/pmx/pmx-src/libf2c/d_sqrt.c
deleted file mode 100644
index a7fa66c00aa..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_sqrt.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double sqrt();
-double d_sqrt(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_sqrt(doublereal *x)
-#endif
-{
-return( sqrt(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_tan.c b/Build/source/utils/pmx/pmx-src/libf2c/d_tan.c
deleted file mode 100644
index 7d252c4d5cf..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_tan.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double tan();
-double d_tan(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_tan(doublereal *x)
-#endif
-{
-return( tan(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/d_tanh.c b/Build/source/utils/pmx/pmx-src/libf2c/d_tanh.c
deleted file mode 100644
index 415b58508b3..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/d_tanh.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double tanh();
-double d_tanh(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double d_tanh(doublereal *x)
-#endif
-{
-return( tanh(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/derf_.c b/Build/source/utils/pmx/pmx-src/libf2c/derf_.c
deleted file mode 100644
index d935d315213..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/derf_.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double erf();
-double derf_(x) doublereal *x;
-#else
-extern double erf(double);
-double derf_(doublereal *x)
-#endif
-{
-return( erf(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/derfc_.c b/Build/source/utils/pmx/pmx-src/libf2c/derfc_.c
deleted file mode 100644
index 18f5c619b6f..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/derfc_.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern double erfc();
-
-double derfc_(x) doublereal *x;
-#else
-extern double erfc(double);
-
-double derfc_(doublereal *x)
-#endif
-{
-return( erfc(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/dfe.c b/Build/source/utils/pmx/pmx-src/libf2c/dfe.c
deleted file mode 100644
index c6b10d0e9c3..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/dfe.c
+++ /dev/null
@@ -1,151 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "fmt.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- int
-y_rsk(Void)
-{
- if(f__curunit->uend || f__curunit->url <= f__recpos
- || f__curunit->url == 1) return 0;
- do {
- getc(f__cf);
- } while(++f__recpos < f__curunit->url);
- return 0;
-}
-
- int
-y_getc(Void)
-{
- int ch;
- if(f__curunit->uend) return(-1);
- if((ch=getc(f__cf))!=EOF)
- {
- f__recpos++;
- if(f__curunit->url>=f__recpos ||
- f__curunit->url==1)
- return(ch);
- else return(' ');
- }
- if(feof(f__cf))
- {
- f__curunit->uend=1;
- errno=0;
- return(-1);
- }
- err(f__elist->cierr,errno,"readingd");
-}
-
- static int
-y_rev(Void)
-{
- if (f__recpos < f__hiwater)
- f__recpos = f__hiwater;
- if (f__curunit->url > 1)
- while(f__recpos < f__curunit->url)
- (*f__putn)(' ');
- if (f__recpos)
- f__putbuf(0);
- f__recpos = 0;
- return(0);
-}
-
- static int
-y_err(Void)
-{
- err(f__elist->cierr, 110, "dfe");
-}
-
- static int
-y_newrec(Void)
-{
- y_rev();
- f__hiwater = f__cursor = 0;
- return(1);
-}
-
- int
-#ifdef KR_headers
-c_dfe(a) cilist *a;
-#else
-c_dfe(cilist *a)
-#endif
-{
- f__sequential=0;
- f__formatted=f__external=1;
- f__elist=a;
- f__cursor=f__scale=f__recpos=0;
- f__curunit = &f__units[a->ciunit];
- if(a->ciunit>MXUNIT || a->ciunit<0)
- err(a->cierr,101,"startchk");
- if(f__curunit->ufd==NULL && fk_open(DIR,FMT,a->ciunit))
- err(a->cierr,104,"dfe");
- f__cf=f__curunit->ufd;
- if(!f__curunit->ufmt) err(a->cierr,102,"dfe")
- if(!f__curunit->useek) err(a->cierr,104,"dfe")
- f__fmtbuf=a->cifmt;
- if(a->cirec <= 0)
- err(a->cierr,130,"dfe")
- FSEEK(f__cf,(OFF_T)f__curunit->url * (a->cirec-1),SEEK_SET);
- f__curunit->uend = 0;
- return(0);
-}
-#ifdef KR_headers
-integer s_rdfe(a) cilist *a;
-#else
-integer s_rdfe(cilist *a)
-#endif
-{
- int n;
- if(!f__init) f_init();
- f__reading=1;
- if(n=c_dfe(a))return(n);
- if(f__curunit->uwrt && f__nowreading(f__curunit))
- err(a->cierr,errno,"read start");
- f__getn = y_getc;
- f__doed = rd_ed;
- f__doned = rd_ned;
- f__dorevert = f__donewrec = y_err;
- f__doend = y_rsk;
- if(pars_f(f__fmtbuf)<0)
- err(a->cierr,100,"read start");
- fmt_bg();
- return(0);
-}
-#ifdef KR_headers
-integer s_wdfe(a) cilist *a;
-#else
-integer s_wdfe(cilist *a)
-#endif
-{
- int n;
- if(!f__init) f_init();
- f__reading=0;
- if(n=c_dfe(a)) return(n);
- if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit))
- err(a->cierr,errno,"startwrt");
- f__putn = x_putc;
- f__doed = w_ed;
- f__doned= w_ned;
- f__dorevert = y_err;
- f__donewrec = y_newrec;
- f__doend = y_rev;
- if(pars_f(f__fmtbuf)<0)
- err(a->cierr,100,"startwrt");
- fmt_bg();
- return(0);
-}
-integer e_rdfe(Void)
-{
- en_fio();
- return 0;
-}
-integer e_wdfe(Void)
-{
- return en_fio();
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/dolio.c b/Build/source/utils/pmx/pmx-src/libf2c/dolio.c
deleted file mode 100644
index 4070d879012..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/dolio.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef KR_headers
-extern int (*f__lioproc)();
-
-integer do_lio(type,number,ptr,len) ftnint *number,*type; char *ptr; ftnlen len;
-#else
-extern int (*f__lioproc)(ftnint*, char*, ftnlen, ftnint);
-
-integer do_lio(ftnint *type, ftnint *number, char *ptr, ftnlen len)
-#endif
-{
- return((*f__lioproc)(number,ptr,len,*type));
-}
-#ifdef __cplusplus
- }
-#endif
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/dtime_.c b/Build/source/utils/pmx/pmx-src/libf2c/dtime_.c
deleted file mode 100644
index 6a09b3e9837..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/dtime_.c
+++ /dev/null
@@ -1,63 +0,0 @@
-#include "time.h"
-
-#ifdef MSDOS
-#undef USE_CLOCK
-#define USE_CLOCK
-#endif
-
-#ifndef REAL
-#define REAL double
-#endif
-
-#ifndef USE_CLOCK
-#define _INCLUDE_POSIX_SOURCE /* for HP-UX */
-#define _INCLUDE_XOPEN_SOURCE /* for HP-UX */
-#include "sys/types.h"
-#include "sys/times.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#endif
-
-#undef Hz
-#ifdef CLK_TCK
-#define Hz CLK_TCK
-#else
-#ifdef HZ
-#define Hz HZ
-#else
-#define Hz 60
-#endif
-#endif
-
- REAL
-#ifdef KR_headers
-dtime_(tarray) float *tarray;
-#else
-dtime_(float *tarray)
-#endif
-{
-#ifdef USE_CLOCK
-#ifndef CLOCKS_PER_SECOND
-#define CLOCKS_PER_SECOND Hz
-#endif
- static double t0;
- double t = clock();
- tarray[1] = 0;
- tarray[0] = (t - t0) / CLOCKS_PER_SECOND;
- t0 = t;
- return tarray[0];
-#else
- struct tms t;
- static struct tms t0;
-
- times(&t);
- tarray[0] = (double)(t.tms_utime - t0.tms_utime) / Hz;
- tarray[1] = (double)(t.tms_stime - t0.tms_stime) / Hz;
- t0 = t;
- return tarray[0] + tarray[1];
-#endif
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/due.c b/Build/source/utils/pmx/pmx-src/libf2c/due.c
deleted file mode 100644
index a7f4cec4673..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/due.c
+++ /dev/null
@@ -1,77 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- int
-#ifdef KR_headers
-c_due(a) cilist *a;
-#else
-c_due(cilist *a)
-#endif
-{
- if(!f__init) f_init();
- f__sequential=f__formatted=f__recpos=0;
- f__external=1;
- f__curunit = &f__units[a->ciunit];
- if(a->ciunit>=MXUNIT || a->ciunit<0)
- err(a->cierr,101,"startio");
- f__elist=a;
- if(f__curunit->ufd==NULL && fk_open(DIR,UNF,a->ciunit) ) err(a->cierr,104,"due");
- f__cf=f__curunit->ufd;
- if(f__curunit->ufmt) err(a->cierr,102,"cdue")
- if(!f__curunit->useek) err(a->cierr,104,"cdue")
- if(f__curunit->ufd==NULL) err(a->cierr,114,"cdue")
- if(a->cirec <= 0)
- err(a->cierr,130,"due")
- FSEEK(f__cf,(OFF_T)(a->cirec-1)*f__curunit->url,SEEK_SET);
- f__curunit->uend = 0;
- return(0);
-}
-#ifdef KR_headers
-integer s_rdue(a) cilist *a;
-#else
-integer s_rdue(cilist *a)
-#endif
-{
- int n;
- f__reading=1;
- if(n=c_due(a)) return(n);
- if(f__curunit->uwrt && f__nowreading(f__curunit))
- err(a->cierr,errno,"read start");
- return(0);
-}
-#ifdef KR_headers
-integer s_wdue(a) cilist *a;
-#else
-integer s_wdue(cilist *a)
-#endif
-{
- int n;
- f__reading=0;
- if(n=c_due(a)) return(n);
- if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit))
- err(a->cierr,errno,"write start");
- return(0);
-}
-integer e_rdue(Void)
-{
- if(f__curunit->url==1 || f__recpos==f__curunit->url)
- return(0);
- FSEEK(f__cf,(OFF_T)(f__curunit->url-f__recpos),SEEK_CUR);
- if(FTELL(f__cf)%f__curunit->url)
- err(f__elist->cierr,200,"syserr");
- return(0);
-}
-integer e_wdue(Void)
-{
-#ifdef ALWAYS_FLUSH
- if (fflush(f__cf))
- err(f__elist->cierr,errno,"write end");
-#endif
- return(e_rdue());
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/ef1asc_.c b/Build/source/utils/pmx/pmx-src/libf2c/ef1asc_.c
deleted file mode 100644
index 70be0bc2e0b..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/ef1asc_.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* EFL support routine to copy string b to string a */
-
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-#define M ( (long) (sizeof(long) - 1) )
-#define EVEN(x) ( ( (x)+ M) & (~M) )
-
-#ifdef KR_headers
-extern VOID s_copy();
-ef1asc_(a, la, b, lb) ftnint *a, *b; ftnlen *la, *lb;
-#else
-extern void s_copy(char*,char*,ftnlen,ftnlen);
-int ef1asc_(ftnint *a, ftnlen *la, ftnint *b, ftnlen *lb)
-#endif
-{
-s_copy( (char *)a, (char *)b, EVEN(*la), *lb );
-return 0; /* ignored return value */
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/ef1cmc_.c b/Build/source/utils/pmx/pmx-src/libf2c/ef1cmc_.c
deleted file mode 100644
index 4b420ae6465..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/ef1cmc_.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* EFL support routine to compare two character strings */
-
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern integer s_cmp();
-integer ef1cmc_(a, la, b, lb) ftnint *a, *b; ftnlen *la, *lb;
-#else
-extern integer s_cmp(char*,char*,ftnlen,ftnlen);
-integer ef1cmc_(ftnint *a, ftnlen *la, ftnint *b, ftnlen *lb)
-#endif
-{
-return( s_cmp( (char *)a, (char *)b, *la, *lb) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/endfile.c b/Build/source/utils/pmx/pmx-src/libf2c/endfile.c
deleted file mode 100644
index 04020d3802d..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/endfile.c
+++ /dev/null
@@ -1,160 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-
-/* Compile this with -DNO_TRUNCATE if unistd.h does not exist or */
-/* if it does not define int truncate(const char *name, off_t). */
-
-#ifdef MSDOS
-#undef NO_TRUNCATE
-#define NO_TRUNCATE
-#endif
-
-#ifndef NO_TRUNCATE
-#include "unistd.h"
-#endif
-
-#ifdef KR_headers
-extern char *strcpy();
-extern FILE *tmpfile();
-#else
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#include "string.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#endif
-
-extern char *f__r_mode[], *f__w_mode[];
-
-#ifdef KR_headers
-integer f_end(a) alist *a;
-#else
-integer f_end(alist *a)
-#endif
-{
- unit *b;
- FILE *tf;
-
- if(a->aunit>=MXUNIT || a->aunit<0) err(a->aerr,101,"endfile");
- b = &f__units[a->aunit];
- if(b->ufd==NULL) {
- char nbuf[10];
- sprintf(nbuf,"fort.%ld",(long)a->aunit);
- if (tf = FOPEN(nbuf, f__w_mode[0]))
- fclose(tf);
- return(0);
- }
- b->uend=1;
- return(b->useek ? t_runc(a) : 0);
-}
-
-#ifdef NO_TRUNCATE
- static int
-#ifdef KR_headers
-copy(from, len, to) FILE *from, *to; register long len;
-#else
-copy(FILE *from, register long len, FILE *to)
-#endif
-{
- int len1;
- char buf[BUFSIZ];
-
- while(fread(buf, len1 = len > BUFSIZ ? BUFSIZ : (int)len, 1, from)) {
- if (!fwrite(buf, len1, 1, to))
- return 1;
- if ((len -= len1) <= 0)
- break;
- }
- return 0;
- }
-#endif /* NO_TRUNCATE */
-
- int
-#ifdef KR_headers
-t_runc(a) alist *a;
-#else
-t_runc(alist *a)
-#endif
-{
- OFF_T loc, len;
- unit *b;
- int rc;
- FILE *bf;
-#ifdef NO_TRUNCATE
- FILE *tf;
-#endif
-
- b = &f__units[a->aunit];
- if(b->url)
- return(0); /*don't truncate direct files*/
- loc=FTELL(bf = b->ufd);
- FSEEK(bf,(OFF_T)0,SEEK_END);
- len=FTELL(bf);
- if (loc >= len || b->useek == 0)
- return(0);
-#ifdef NO_TRUNCATE
- if (b->ufnm == NULL)
- return 0;
- rc = 0;
- fclose(b->ufd);
- if (!loc) {
- if (!(bf = FOPEN(b->ufnm, f__w_mode[b->ufmt])))
- rc = 1;
- if (b->uwrt)
- b->uwrt = 1;
- goto done;
- }
- if (!(bf = FOPEN(b->ufnm, f__r_mode[0]))
- || !(tf = tmpfile())) {
-#ifdef NON_UNIX_STDIO
- bad:
-#endif
- rc = 1;
- goto done;
- }
- if (copy(bf, (long)loc, tf)) {
- bad1:
- rc = 1;
- goto done1;
- }
- if (!(bf = FREOPEN(b->ufnm, f__w_mode[0], bf)))
- goto bad1;
- rewind(tf);
- if (copy(tf, (long)loc, bf))
- goto bad1;
- b->uwrt = 1;
- b->urw = 2;
-#ifdef NON_UNIX_STDIO
- if (b->ufmt) {
- fclose(bf);
- if (!(bf = FOPEN(b->ufnm, f__w_mode[3])))
- goto bad;
- FSEEK(bf,(OFF_T)0,SEEK_END);
- b->urw = 3;
- }
-#endif
-done1:
- fclose(tf);
-done:
- f__cf = b->ufd = bf;
-#else /* NO_TRUNCATE */
- if (b->urw & 2)
- fflush(b->ufd); /* necessary on some Linux systems */
-#ifndef FTRUNCATE
-#define FTRUNCATE ftruncate
-#endif
- rc = FTRUNCATE(fileno(b->ufd), loc);
- /* The following FSEEK is unnecessary on some systems, */
- /* but should be harmless. */
- FSEEK(b->ufd, (OFF_T)0, SEEK_END);
-#endif /* NO_TRUNCATE */
- if (rc)
- err(a->aerr,111,"endfile");
- return 0;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/erf_.c b/Build/source/utils/pmx/pmx-src/libf2c/erf_.c
deleted file mode 100644
index 532fec61c86..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/erf_.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef REAL
-#define REAL double
-#endif
-
-#ifdef KR_headers
-double erf();
-REAL erf_(x) real *x;
-#else
-extern double erf(double);
-REAL erf_(real *x)
-#endif
-{
-return( erf((double)*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/erfc_.c b/Build/source/utils/pmx/pmx-src/libf2c/erfc_.c
deleted file mode 100644
index 6f6c9f10644..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/erfc_.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef REAL
-#define REAL double
-#endif
-
-#ifdef KR_headers
-double erfc();
-REAL erfc_(x) real *x;
-#else
-extern double erfc(double);
-REAL erfc_(real *x)
-#endif
-{
-return( erfc((double)*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/err.c b/Build/source/utils/pmx/pmx-src/libf2c/err.c
deleted file mode 100644
index b81ffc111f0..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/err.c
+++ /dev/null
@@ -1,282 +0,0 @@
-#include "sysdep1.h" /* here to get stat64 on some badly designed Linux systems */
-#include "f2c.h"
-#ifdef KR_headers
-extern char *malloc();
-#else
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#endif
-#include "fio.h"
-#include "fmt.h" /* for struct syl */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*global definitions*/
-unit f__units[MXUNIT]; /*unit table*/
-flag f__init; /*0 on entry, 1 after initializations*/
-cilist *f__elist; /*active external io list*/
-icilist *f__svic; /*active internal io list*/
-flag f__reading; /*1 if reading, 0 if writing*/
-flag f__cplus,f__cblank;
-char *f__fmtbuf;
-flag f__external; /*1 if external io, 0 if internal */
-#ifdef KR_headers
-int (*f__doed)(),(*f__doned)();
-int (*f__doend)(),(*f__donewrec)(),(*f__dorevert)();
-int (*f__getn)(); /* for formatted input */
-void (*f__putn)(); /* for formatted output */
-#else
-int (*f__getn)(void); /* for formatted input */
-void (*f__putn)(int); /* for formatted output */
-int (*f__doed)(struct syl*, char*, ftnlen),(*f__doned)(struct syl*);
-int (*f__dorevert)(void),(*f__donewrec)(void),(*f__doend)(void);
-#endif
-flag f__sequential; /*1 if sequential io, 0 if direct*/
-flag f__formatted; /*1 if formatted io, 0 if unformatted*/
-FILE *f__cf; /*current file*/
-unit *f__curunit; /*current unit*/
-int f__recpos; /*place in current record*/
-OFF_T f__cursor, f__hiwater;
-int f__scale;
-char *f__icptr;
-
-/*error messages*/
-char *F_err[] =
-{
- "error in format", /* 100 */
- "illegal unit number", /* 101 */
- "formatted io not allowed", /* 102 */
- "unformatted io not allowed", /* 103 */
- "direct io not allowed", /* 104 */
- "sequential io not allowed", /* 105 */
- "can't backspace file", /* 106 */
- "null file name", /* 107 */
- "can't stat file", /* 108 */
- "unit not connected", /* 109 */
- "off end of record", /* 110 */
- "truncation failed in endfile", /* 111 */
- "incomprehensible list input", /* 112 */
- "out of free space", /* 113 */
- "unit not connected", /* 114 */
- "read unexpected character", /* 115 */
- "bad logical input field", /* 116 */
- "bad variable type", /* 117 */
- "bad namelist name", /* 118 */
- "variable not in namelist", /* 119 */
- "no end record", /* 120 */
- "variable count incorrect", /* 121 */
- "subscript for scalar variable", /* 122 */
- "invalid array section", /* 123 */
- "substring out of bounds", /* 124 */
- "subscript out of bounds", /* 125 */
- "can't read file", /* 126 */
- "can't write file", /* 127 */
- "'new' file exists", /* 128 */
- "can't append to file", /* 129 */
- "non-positive record number", /* 130 */
- "nmLbuf overflow" /* 131 */
-};
-#define MAXERR (sizeof(F_err)/sizeof(char *)+100)
-
- int
-#ifdef KR_headers
-f__canseek(f) FILE *f; /*SYSDEP*/
-#else
-f__canseek(FILE *f) /*SYSDEP*/
-#endif
-{
-#ifdef NON_UNIX_STDIO
- return !isatty(fileno(f));
-#else
- struct STAT_ST x;
-
- if (FSTAT(fileno(f),&x) < 0)
- return(0);
-#ifdef S_IFMT
- switch(x.st_mode & S_IFMT) {
- case S_IFDIR:
- case S_IFREG:
- if(x.st_nlink > 0) /* !pipe */
- return(1);
- else
- return(0);
- case S_IFCHR:
- if(isatty(fileno(f)))
- return(0);
- return(1);
-#ifdef S_IFBLK
- case S_IFBLK:
- return(1);
-#endif
- }
-#else
-#ifdef S_ISDIR
- /* POSIX version */
- if (S_ISREG(x.st_mode) || S_ISDIR(x.st_mode)) {
- if(x.st_nlink > 0) /* !pipe */
- return(1);
- else
- return(0);
- }
- if (S_ISCHR(x.st_mode)) {
- if(isatty(fileno(f)))
- return(0);
- return(1);
- }
- if (S_ISBLK(x.st_mode))
- return(1);
-#else
- Help! How does fstat work on this system?
-#endif
-#endif
- return(0); /* who knows what it is? */
-#endif
-}
-
- void
-#ifdef KR_headers
-f__fatal(n,s) char *s;
-#else
-f__fatal(int n, char *s)
-#endif
-{
- if(n<100 && n>=0) perror(s); /*SYSDEP*/
- else if(n >= (int)MAXERR || n < -1)
- { fprintf(stderr,"%s: illegal error number %d\n",s,n);
- }
- else if(n == -1) fprintf(stderr,"%s: end of file\n",s);
- else
- fprintf(stderr,"%s: %s\n",s,F_err[n-100]);
- if (f__curunit) {
- fprintf(stderr,"apparent state: unit %d ",
- (int)(f__curunit-f__units));
- fprintf(stderr, f__curunit->ufnm ? "named %s\n" : "(unnamed)\n",
- f__curunit->ufnm);
- }
- else
- fprintf(stderr,"apparent state: internal I/O\n");
- if (f__fmtbuf)
- fprintf(stderr,"last format: %s\n",f__fmtbuf);
- fprintf(stderr,"lately %s %s %s %s",f__reading?"reading":"writing",
- f__sequential?"sequential":"direct",f__formatted?"formatted":"unformatted",
- f__external?"external":"internal");
- sig_die(" IO", 1);
-}
-/*initialization routine*/
- VOID
-f_init(Void)
-{ unit *p;
-
- f__init=1;
- p= &f__units[0];
- p->ufd=stderr;
- p->useek=f__canseek(stderr);
- p->ufmt=1;
- p->uwrt=1;
- p = &f__units[5];
- p->ufd=stdin;
- p->useek=f__canseek(stdin);
- p->ufmt=1;
- p->uwrt=0;
- p= &f__units[6];
- p->ufd=stdout;
- p->useek=f__canseek(stdout);
- p->ufmt=1;
- p->uwrt=1;
-}
-
- int
-#ifdef KR_headers
-f__nowreading(x) unit *x;
-#else
-f__nowreading(unit *x)
-#endif
-{
- OFF_T loc;
- int ufmt, urw;
- extern char *f__r_mode[], *f__w_mode[];
-
- if (x->urw & 1)
- goto done;
- if (!x->ufnm)
- goto cantread;
- ufmt = x->url ? 0 : x->ufmt;
- loc = FTELL(x->ufd);
- urw = 3;
- if (!FREOPEN(x->ufnm, f__w_mode[ufmt|2], x->ufd)) {
- urw = 1;
- if(!FREOPEN(x->ufnm, f__r_mode[ufmt], x->ufd)) {
- cantread:
- errno = 126;
- return 1;
- }
- }
- FSEEK(x->ufd,loc,SEEK_SET);
- x->urw = urw;
- done:
- x->uwrt = 0;
- return 0;
-}
-
- int
-#ifdef KR_headers
-f__nowwriting(x) unit *x;
-#else
-f__nowwriting(unit *x)
-#endif
-{
- OFF_T loc;
- int ufmt;
- extern char *f__w_mode[];
-
- if (x->urw & 2) {
- if (x->urw & 1)
- FSEEK(x->ufd, (OFF_T)0, SEEK_CUR);
- goto done;
- }
- if (!x->ufnm)
- goto cantwrite;
- ufmt = x->url ? 0 : x->ufmt;
- if (x->uwrt == 3) { /* just did write, rewind */
- if (!(f__cf = x->ufd =
- FREOPEN(x->ufnm,f__w_mode[ufmt],x->ufd)))
- goto cantwrite;
- x->urw = 2;
- }
- else {
- loc=FTELL(x->ufd);
- if (!(f__cf = x->ufd =
- FREOPEN(x->ufnm, f__w_mode[ufmt | 2], x->ufd)))
- {
- x->ufd = NULL;
- cantwrite:
- errno = 127;
- return(1);
- }
- x->urw = 3;
- FSEEK(x->ufd,loc,SEEK_SET);
- }
- done:
- x->uwrt = 1;
- return 0;
-}
-
- int
-#ifdef KR_headers
-err__fl(f, m, s) int f, m; char *s;
-#else
-err__fl(int f, int m, char *s)
-#endif
-{
- if (!f)
- f__fatal(m, s);
- if (f__doend)
- (*f__doend)();
- return errno = m;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/etime_.c b/Build/source/utils/pmx/pmx-src/libf2c/etime_.c
deleted file mode 100644
index 2d9a36d8a31..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/etime_.c
+++ /dev/null
@@ -1,57 +0,0 @@
-#include "time.h"
-
-#ifdef MSDOS
-#undef USE_CLOCK
-#define USE_CLOCK
-#endif
-
-#ifndef REAL
-#define REAL double
-#endif
-
-#ifndef USE_CLOCK
-#define _INCLUDE_POSIX_SOURCE /* for HP-UX */
-#define _INCLUDE_XOPEN_SOURCE /* for HP-UX */
-#include "sys/types.h"
-#include "sys/times.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#endif
-
-#undef Hz
-#ifdef CLK_TCK
-#define Hz CLK_TCK
-#else
-#ifdef HZ
-#define Hz HZ
-#else
-#define Hz 60
-#endif
-#endif
-
- REAL
-#ifdef KR_headers
-etime_(tarray) float *tarray;
-#else
-etime_(float *tarray)
-#endif
-{
-#ifdef USE_CLOCK
-#ifndef CLOCKS_PER_SECOND
-#define CLOCKS_PER_SECOND Hz
-#endif
- double t = clock();
- tarray[1] = 0;
- return tarray[0] = t / CLOCKS_PER_SECOND;
-#else
- struct tms t;
-
- times(&t);
- return (tarray[0] = (double)t.tms_utime/Hz)
- + (tarray[1] = (double)t.tms_stime/Hz);
-#endif
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/exit_.c b/Build/source/utils/pmx/pmx-src/libf2c/exit_.c
deleted file mode 100644
index 08e9d07067c..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/exit_.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* This gives the effect of
-
- subroutine exit(rc)
- integer*4 rc
- stop
- end
-
- * with the added side effect of supplying rc as the program's exit code.
- */
-
-#include "f2c.h"
-#undef abs
-#undef min
-#undef max
-#ifndef KR_headers
-#include "stdlib.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern void f_exit(void);
-#endif
-
- void
-#ifdef KR_headers
-exit_(rc) integer *rc;
-#else
-exit_(integer *rc)
-#endif
-{
-#ifdef NO_ONEXIT
- f_exit();
-#endif
- exit(*rc);
- }
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/f2c.h b/Build/source/utils/pmx/pmx-src/libf2c/f2c.h
deleted file mode 100644
index a8d13f6b1eb..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/f2c.h
+++ /dev/null
@@ -1,233 +0,0 @@
-/* f2c.h -- Standard Fortran to C header file */
-
-/** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed."
-
- - From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */
-
-#ifndef F2C_INCLUDE
-#define F2C_INCLUDE
-
-typedef long int integer;
-typedef unsigned long int uinteger;
-typedef char *address;
-typedef short int shortint;
-typedef float real;
-typedef double doublereal;
-#ifdef WIN32
-#define _COMPLEX_DEFINED 1
-#endif
-typedef struct { real r, i; } complex;
-typedef struct { doublereal r, i; } doublecomplex;
-typedef long int logical;
-typedef short int shortlogical;
-typedef char logical1;
-typedef char integer1;
-#ifdef INTEGER_STAR_8 /* Adjust for integer*8. */
-#if defined(WIN32) && !defined(__MINGW32__)
-typedef __int64 longint; /* system-dependent */
-typedef unsigned __int64 ulongint; /* system-dependent */
-#else
-typedef long long longint; /* system-dependent */
-typedef unsigned long long ulongint; /* system-dependent */
-#endif
-#define qbit_clear(a,b) ((a) & ~((ulongint)1 << (b)))
-#define qbit_set(a,b) ((a) | ((ulongint)1 << (b)))
-#endif
-
-#define TRUE_ (1)
-#define FALSE_ (0)
-
-/* Extern is for use with -E */
-#ifndef Extern
-#define Extern extern
-#endif
-
-/* I/O stuff */
-
-#ifdef f2c_i2
-/* for -i2 */
-typedef short flag;
-typedef short ftnlen;
-typedef short ftnint;
-#else
-typedef long int flag;
-typedef long int ftnlen;
-typedef long int ftnint;
-#endif
-
-/*external read, write*/
-typedef struct
-{ flag cierr;
- ftnint ciunit;
- flag ciend;
- char *cifmt;
- ftnint cirec;
-} cilist;
-
-/*internal read, write*/
-typedef struct
-{ flag icierr;
- char *iciunit;
- flag iciend;
- char *icifmt;
- ftnint icirlen;
- ftnint icirnum;
-} icilist;
-
-/*open*/
-typedef struct
-{ flag oerr;
- ftnint ounit;
- char *ofnm;
- ftnlen ofnmlen;
- char *osta;
- char *oacc;
- char *ofm;
- ftnint orl;
- char *oblnk;
-} olist;
-
-/*close*/
-typedef struct
-{ flag cerr;
- ftnint cunit;
- char *csta;
-} cllist;
-
-/*rewind, backspace, endfile*/
-typedef struct
-{ flag aerr;
- ftnint aunit;
-} alist;
-
-/* inquire */
-typedef struct
-{ flag inerr;
- ftnint inunit;
- char *infile;
- ftnlen infilen;
- ftnint *inex; /*parameters in standard's order*/
- ftnint *inopen;
- ftnint *innum;
- ftnint *innamed;
- char *inname;
- ftnlen innamlen;
- char *inacc;
- ftnlen inacclen;
- char *inseq;
- ftnlen inseqlen;
- char *indir;
- ftnlen indirlen;
- char *infmt;
- ftnlen infmtlen;
- char *inform;
- ftnint informlen;
- char *inunf;
- ftnlen inunflen;
- ftnint *inrecl;
- ftnint *innrec;
- char *inblank;
- ftnlen inblanklen;
-} inlist;
-
-#define VOID void
-
-union Multitype { /* for multiple entry points */
- integer1 g;
- shortint h;
- integer i;
- /* longint j; */
- real r;
- doublereal d;
- complex c;
- doublecomplex z;
- };
-
-typedef union Multitype Multitype;
-
-/*typedef long int Long;*/ /* No longer used; formerly in Namelist */
-
-struct Vardesc { /* for Namelist */
- char *name;
- char *addr;
- ftnlen *dims;
- int type;
- };
-typedef struct Vardesc Vardesc;
-
-struct Namelist {
- char *name;
- Vardesc **vars;
- int nvars;
- };
-typedef struct Namelist Namelist;
-
-#define abs(x) ((x) >= 0 ? (x) : -(x))
-#define dabs(x) (doublereal)abs(x)
-#undef min
-#undef max
-#define min(a,b) ((a) <= (b) ? (a) : (b))
-#define max(a,b) ((a) >= (b) ? (a) : (b))
-#define dmin(a,b) (doublereal)min(a,b)
-#define dmax(a,b) (doublereal)max(a,b)
-#define bit_test(a,b) ((a) >> (b) & 1)
-#define bit_clear(a,b) ((a) & ~((uinteger)1 << (b)))
-#define bit_set(a,b) ((a) | ((uinteger)1 << (b)))
-
-/* procedure parameter types for -A and -C++ */
-
-#define F2C_proc_par_types 1
-#ifdef __cplusplus
-typedef int /* Unknown procedure type */ (*U_fp)(...);
-typedef shortint (*J_fp)(...);
-typedef integer (*I_fp)(...);
-typedef real (*R_fp)(...);
-typedef doublereal (*D_fp)(...), (*E_fp)(...);
-typedef /* Complex */ VOID (*C_fp)(...);
-typedef /* Double Complex */ VOID (*Z_fp)(...);
-typedef logical (*L_fp)(...);
-typedef shortlogical (*K_fp)(...);
-typedef /* Character */ VOID (*H_fp)(...);
-typedef /* Subroutine */ int (*S_fp)(...);
-#else
-typedef int /* Unknown procedure type */ (*U_fp)();
-typedef shortint (*J_fp)();
-typedef integer (*I_fp)();
-typedef real (*R_fp)();
-typedef doublereal (*D_fp)(), (*E_fp)();
-typedef /* Complex */ VOID (*C_fp)();
-typedef /* Double Complex */ VOID (*Z_fp)();
-typedef logical (*L_fp)();
-typedef shortlogical (*K_fp)();
-typedef /* Character */ VOID (*H_fp)();
-typedef /* Subroutine */ int (*S_fp)();
-#endif
-/* E_fp is for real functions when -R is not specified */
-typedef VOID C_f; /* complex function */
-typedef VOID H_f; /* character function */
-typedef VOID Z_f; /* double complex function */
-typedef doublereal E_f; /* real function with -R not specified */
-
-/* undef any lower-case symbols that your C compiler predefines, e.g.: */
-
-#ifndef Skip_f2c_Undefs
-#undef cray
-#undef gcos
-#undef mc68010
-#undef mc68020
-#undef mips
-#undef pdp11
-#undef sgi
-#undef sparc
-#undef sun
-#undef sun2
-#undef sun3
-#undef sun4
-#undef u370
-#undef u3b
-#undef u3b2
-#undef u3b5
-#undef unix
-#undef vax
-#endif
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/f77_aloc.c b/Build/source/utils/pmx/pmx-src/libf2c/f77_aloc.c
deleted file mode 100644
index 1ff0f896b30..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/f77_aloc.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include "f2c.h"
-#undef abs
-#undef min
-#undef max
-#include "stdio.h"
-
-static integer memfailure = 3;
-
-#ifdef KR_headers
-extern char *malloc();
-extern void exit_();
-
- char *
-F77_aloc(Len, whence) integer Len; char *whence;
-#else
-#include "stdlib.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern void exit_(integer*);
-#ifdef __cplusplus
- }
-#endif
-
- char *
-F77_aloc(integer Len, char *whence)
-#endif
-{
- char *rv;
- unsigned int uLen = (unsigned int) Len; /* for K&R C */
-
- if (!(rv = (char*)malloc(uLen))) {
- fprintf(stderr, "malloc(%u) failure in %s\n",
- uLen, whence);
- exit_(&memfailure);
- }
- return rv;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/f77vers.c b/Build/source/utils/pmx/pmx-src/libf2c/f77vers.c
deleted file mode 100644
index 782d40160ca..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/f77vers.c
+++ /dev/null
@@ -1,93 +0,0 @@
- char
-_libf77_version_f2c[] = "\n@(#) LIBF77 VERSION (f2c) 20021004\n";
-
-/*
-2.00 11 June 1980. File version.c added to library.
-2.01 31 May 1988. s_paus() flushes stderr; names of hl_* fixed
- [ d]erf[c ] added
- 8 Aug. 1989: #ifdefs for f2c -i2 added to s_cat.c
- 29 Nov. 1989: s_cmp returns long (for f2c)
- 30 Nov. 1989: arg types from f2c.h
- 12 Dec. 1989: s_rnge allows long names
- 19 Dec. 1989: getenv_ allows unsorted environment
- 28 Mar. 1990: add exit(0) to end of main()
- 2 Oct. 1990: test signal(...) == SIG_IGN rather than & 01 in main
- 17 Oct. 1990: abort() calls changed to sig_die(...,1)
- 22 Oct. 1990: separate sig_die from main
- 25 Apr. 1991: minor, theoretically invisible tweaks to s_cat, sig_die
- 31 May 1991: make system_ return status
- 18 Dec. 1991: change long to ftnlen (for -i2) many places
- 28 Feb. 1992: repair z_sqrt.c (scribbled on input, gave wrong answer)
- 18 July 1992: for n < 0, repair handling of 0**n in pow_[dr]i.c
- and m**n in pow_hh.c and pow_ii.c;
- catch SIGTRAP in main() for error msg before abort
- 23 July 1992: switch to ANSI prototypes unless KR_headers is #defined
- 23 Oct. 1992: fix botch in signal_.c (erroneous deref of 2nd arg);
- change Cabs to f__cabs.
- 12 March 1993: various tweaks for C++
- 2 June 1994: adjust so abnormal terminations invoke f_exit just once
- 16 Sept. 1994: s_cmp: treat characters as unsigned in comparisons.
- 19 Sept. 1994: s_paus: flush after end of PAUSE; add -DMSDOS
- 12 Jan. 1995: pow_[dhiqrz][hiq]: adjust x**i to work on machines
- that sign-extend right shifts when i is the most
- negative integer.
- 26 Jan. 1995: adjust s_cat.c, s_copy.c to permit the left-hand side
- of character assignments to appear on the right-hand
- side (unless compiled with -DNO_OVERWRITE).
- 27 Jan. 1995: minor tweak to s_copy.c: copy forward whenever
- possible (for better cache behavior).
- 30 May 1995: added subroutine exit(rc) integer rc. Version not changed.
- 29 Aug. 1995: add F77_aloc.c; use it in s_cat.c and system_.c.
- 6 Sept. 1995: fix return type of system_ under -DKR_headers.
- 19 Dec. 1995: s_cat.c: fix bug when 2nd or later arg overlaps lhs.
- 19 Mar. 1996: s_cat.c: supply missing break after overlap detection.
- 13 May 1996: add [lq]bitbits.c and [lq]bitshft.c (f90 bit intrinsics).
- 19 June 1996: add casts to unsigned in [lq]bitshft.c.
- 26 Feb. 1997: adjust functions with a complex output argument
- to permit aliasing it with input arguments.
- (For now, at least, this is just for possible
- benefit of g77.)
- 4 April 1997: [cz]_div.c: tweaks invisible on most systems (that may
- affect systems using gratuitous extra precision).
- 19 Sept. 1997: [de]time_.c (Unix systems only): change return
- type to double.
- 2 May 1999: getenv_.c: omit environ in favor of getenv().
- c_cos.c, c_exp.c, c_sin.c, d_cnjg.c, r_cnjg.c,
- z_cos.c, z_exp.c, z_log.c, z_sin.c: cope fully with
- overlapping arguments caused by equivalence.
- 3 May 1999: "invisible" tweaks to omit compiler warnings in
- abort_.c, ef1asc_.c, s_rnge.c, s_stop.c.
-
- 7 Sept. 1999: [cz]_div.c: arrange for compilation under
- -DIEEE_COMPLEX_DIVIDE to make these routines
- avoid calling sig_die when the denominator
- vanishes; instead, they return pairs of NaNs
- or Infinities, depending whether the numerator
- also vanishes or not. VERSION not changed.
- 15 Nov. 1999: s_rnge.c: add casts for the case of
- sizeof(ftnint) == sizeof(int) < sizeof(long).
- 10 March 2000: z_log.c: improve accuracy of Real(log(z)) for, e.g.,
- z near (+-1,eps) with |eps| small. For the old
- evaluation, compile with -DPre20000310 .
- 20 April 2000: s_cat.c: tweak argument types to accord with
- calls by f2c when ftnint and ftnlen are of
- different sizes (different numbers of bits).
- 4 July 2000: adjustments to permit compilation by C++ compilers;
- VERSION string remains unchanged.
- 29 Sept. 2000: dtime_.c, etime_.c: use floating-point divide.
- dtime_.d, erf_.c, erfc_.c, etime.c: for use with
- "f2c -R", compile with -DREAL=float.
- 23 June 2001: add uninit.c; [fi]77vers.c: make version strings
- visible as extern char _lib[fi]77_version_f2c[].
- 5 July 2001: modify uninit.c for __mc68k__ under Linux.
- 16 Nov. 2001: uninit.c: Linux Power PC logic supplied by Alan Bain.
- 18 Jan. 2002: fix glitches in qbit_bits(): wrong return type,
- missing ~ on y in return value.
- 14 March 2002: z_log.c: add code to cope with buggy compilers
- (e.g., some versions of gcc under -O2 or -O3)
- that do floating-point comparisons against values
- computed into extended-precision registers on some
- systems (such as Intel IA32 systems). Compile with
- -DNO_DOUBLE_EXTENDED to omit the new logic.
- 4 Oct. 2002: uninit.c: on IRIX systems, omit use of shell variables.
-*/
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/fio.h b/Build/source/utils/pmx/pmx-src/libf2c/fio.h
deleted file mode 100644
index e709dde1934..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/fio.h
+++ /dev/null
@@ -1,149 +0,0 @@
-#ifndef SYSDEP_H_INCLUDED
-#include "sysdep1.h"
-#endif
-#include <sys/types.h> /* for off_t */
-#include "stdio.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h> /* for isatty() */
-#endif
-#ifdef WIN32
-extern int w32getc(FILE *f);
-#define getc w32getc
-#endif
-#include "errno.h"
-#ifndef NULL
-/* ANSI C */
-#include "stddef.h"
-#endif
-
-#ifndef SEEK_SET
-#define SEEK_SET 0
-#define SEEK_CUR 1
-#define SEEK_END 2
-#endif
-
-#ifndef FOPEN
-#define FOPEN fopen
-#endif
-
-#ifndef FREOPEN
-#define FREOPEN freopen
-#endif
-
-#ifndef FSEEK
-#define FSEEK fseek
-#endif
-
-#ifndef FSTAT
-#define FSTAT fstat
-#endif
-
-#ifndef FTELL
-#define FTELL ftell
-#endif
-
-#ifndef OFF_T
-#define OFF_T long
-#endif
-
-#ifndef STAT_ST
-#define STAT_ST stat
-#endif
-
-#ifndef STAT
-#define STAT stat
-#endif
-
-#ifdef MSDOS
-#ifndef NON_UNIX_STDIO
-#define NON_UNIX_STDIO
-#endif
-#endif
-
-#ifdef UIOLEN_int
-typedef int uiolen;
-#else
-typedef long uiolen;
-#endif
-
-/*units*/
-typedef struct
-{ FILE *ufd; /*0=unconnected*/
- char *ufnm;
-#ifndef MSDOS
- long uinode;
- int udev;
-#endif
- int url; /*0=sequential*/
- flag useek; /*true=can backspace, use dir, ...*/
- flag ufmt;
- flag urw; /* (1 for can read) | (2 for can write) */
- flag ublnk;
- flag uend;
- flag uwrt; /*last io was write*/
- flag uscrtch;
-} unit;
-
-extern flag f__init;
-extern cilist *f__elist; /*active external io list*/
-extern flag f__reading,f__external,f__sequential,f__formatted;
-#undef Void
-#ifdef KR_headers
-#define Void /*void*/
-extern int (*f__getn)(); /* for formatted input */
-extern void (*f__putn)(); /* for formatted output */
-extern void x_putc();
-extern long f__inode();
-extern VOID sig_die();
-extern int (*f__donewrec)(), t_putc(), x_wSL();
-extern int c_sfe(), err__fl(), xrd_SL(), f__putbuf();
-#else
-#define Void void
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern int (*f__getn)(void); /* for formatted input */
-extern void (*f__putn)(int); /* for formatted output */
-extern void x_putc(int);
-extern long f__inode(char*,int*);
-extern void sig_die(char*,int);
-extern void f__fatal(int,char*);
-extern int t_runc(alist*);
-extern int f__nowreading(unit*), f__nowwriting(unit*);
-extern int fk_open(int,int,ftnint);
-extern int en_fio(void);
-extern void f_init(void);
-extern int (*f__donewrec)(void), t_putc(int), x_wSL(void);
-extern void b_char(char*,char*,ftnlen), g_char(char*,ftnlen,char*);
-extern int c_sfe(cilist*), z_rnew(void);
-extern int err__fl(int,int,char*);
-extern int xrd_SL(void);
-extern int f__putbuf(int);
-#ifdef __cplusplus
- }
-#endif
-#endif
-extern int (*f__doend)(Void);
-extern FILE *f__cf; /*current file*/
-extern unit *f__curunit; /*current unit*/
-extern unit f__units[];
-#define err(f,m,s) {if(f) errno= m; else f__fatal(m,s); return(m);}
-#define errfl(f,m,s) return err__fl((int)f,m,s)
-
-/*Table sizes*/
-#define MXUNIT 100
-
-extern int f__recpos; /*position in current record*/
-extern OFF_T f__cursor; /* offset to move to */
-extern OFF_T f__hiwater; /* so TL doesn't confuse us */
-
-#define WRITE 1
-#define READ 2
-#define SEQ 3
-#define DIR 4
-#define FMT 5
-#define UNF 6
-#define EXT 7
-#define INT 8
-
-#define buf_end(x) (x->_flag & _IONBF ? x->_ptr : x->_base + BUFSIZ)
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/fmt.c b/Build/source/utils/pmx/pmx-src/libf2c/fmt.c
deleted file mode 100644
index 80bcd0a7663..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/fmt.c
+++ /dev/null
@@ -1,525 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "fmt.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#define skip(s) while(*s==' ') s++
-#ifdef interdata
-#define SYLMX 300
-#endif
-#ifdef pdp11
-#define SYLMX 300
-#endif
-#ifdef vax
-#define SYLMX 300
-#endif
-#ifndef SYLMX
-#define SYLMX 300
-#endif
-#define GLITCH '\2'
- /* special quote character for stu */
-extern flag f__cblank,f__cplus; /*blanks in I and compulsory plus*/
-static struct syl f__syl[SYLMX];
-int f__parenlvl,f__pc,f__revloc;
-
- static
-#ifdef KR_headers
-char *ap_end(s) char *s;
-#else
-char *ap_end(char *s)
-#endif
-{ char quote;
- quote= *s++;
- for(;*s;s++)
- { if(*s!=quote) continue;
- if(*++s!=quote) return(s);
- }
- if(f__elist->cierr) {
- errno = 100;
- return(NULL);
- }
- f__fatal(100, "bad string");
- /*NOTREACHED*/ return 0;
-}
- static int
-#ifdef KR_headers
-op_gen(a,b,c,d)
-#else
-op_gen(int a, int b, int c, int d)
-#endif
-{ struct syl *p= &f__syl[f__pc];
- if(f__pc>=SYLMX)
- { fprintf(stderr,"format too complicated:\n");
- sig_die(f__fmtbuf, 1);
- }
- p->op=a;
- p->p1=b;
- p->p2.i[0]=c;
- p->p2.i[1]=d;
- return(f__pc++);
-}
-#ifdef KR_headers
-static char *f_list();
-static char *gt_num(s,n,n1) char *s; int *n, n1;
-#else
-static char *f_list(char*);
-static char *gt_num(char *s, int *n, int n1)
-#endif
-{ int m=0,f__cnt=0;
- char c;
- for(c= *s;;c = *s)
- { if(c==' ')
- { s++;
- continue;
- }
- if(c>'9' || c<'0') break;
- m=10*m+c-'0';
- f__cnt++;
- s++;
- }
- if(f__cnt==0) {
- if (!n1)
- s = 0;
- *n=n1;
- }
- else *n=m;
- return(s);
-}
-
- static
-#ifdef KR_headers
-char *f_s(s,curloc) char *s;
-#else
-char *f_s(char *s, int curloc)
-#endif
-{
- skip(s);
- if(*s++!='(')
- {
- return(NULL);
- }
- if(f__parenlvl++ ==1) f__revloc=curloc;
- if(op_gen(RET1,curloc,0,0)<0 ||
- (s=f_list(s))==NULL)
- {
- return(NULL);
- }
- skip(s);
- return(s);
-}
-
- static int
-#ifdef KR_headers
-ne_d(s,p) char *s,**p;
-#else
-ne_d(char *s, char **p)
-#endif
-{ int n,x,sign=0;
- struct syl *sp;
- switch(*s)
- {
- default:
- return(0);
- case ':': (void) op_gen(COLON,0,0,0); break;
- case '$':
- (void) op_gen(NONL, 0, 0, 0); break;
- case 'B':
- case 'b':
- if(*++s=='z' || *s == 'Z') (void) op_gen(BZ,0,0,0);
- else (void) op_gen(BN,0,0,0);
- break;
- case 'S':
- case 's':
- if(*(s+1)=='s' || *(s+1) == 'S')
- { x=SS;
- s++;
- }
- else if(*(s+1)=='p' || *(s+1) == 'P')
- { x=SP;
- s++;
- }
- else x=S;
- (void) op_gen(x,0,0,0);
- break;
- case '/': (void) op_gen(SLASH,0,0,0); break;
- case '-': sign=1;
- case '+': s++; /*OUTRAGEOUS CODING TRICK*/
- case '0': case '1': case '2': case '3': case '4':
- case '5': case '6': case '7': case '8': case '9':
- if (!(s=gt_num(s,&n,0))) {
- bad: *p = 0;
- return 1;
- }
- switch(*s)
- {
- default:
- return(0);
- case 'P':
- case 'p': if(sign) n= -n; (void) op_gen(P,n,0,0); break;
- case 'X':
- case 'x': (void) op_gen(X,n,0,0); break;
- case 'H':
- case 'h':
- sp = &f__syl[op_gen(H,n,0,0)];
- sp->p2.s = s + 1;
- s+=n;
- break;
- }
- break;
- case GLITCH:
- case '"':
- case '\'':
- sp = &f__syl[op_gen(APOS,0,0,0)];
- sp->p2.s = s;
- if((*p = ap_end(s)) == NULL)
- return(0);
- return(1);
- case 'T':
- case 't':
- if(*(s+1)=='l' || *(s+1) == 'L')
- { x=TL;
- s++;
- }
- else if(*(s+1)=='r'|| *(s+1) == 'R')
- { x=TR;
- s++;
- }
- else x=T;
- if (!(s=gt_num(s+1,&n,0)))
- goto bad;
- s--;
- (void) op_gen(x,n,0,0);
- break;
- case 'X':
- case 'x': (void) op_gen(X,1,0,0); break;
- case 'P':
- case 'p': (void) op_gen(P,1,0,0); break;
- }
- s++;
- *p=s;
- return(1);
-}
-
- static int
-#ifdef KR_headers
-e_d(s,p) char *s,**p;
-#else
-e_d(char *s, char **p)
-#endif
-{ int i,im,n,w,d,e,found=0,x=0;
- char *sv=s;
- s=gt_num(s,&n,1);
- (void) op_gen(STACK,n,0,0);
- switch(*s++)
- {
- default: break;
- case 'E':
- case 'e': x=1;
- case 'G':
- case 'g':
- found=1;
- if (!(s=gt_num(s,&w,0))) {
- bad:
- *p = 0;
- return 1;
- }
- if(w==0) break;
- if(*s=='.') {
- if (!(s=gt_num(s+1,&d,0)))
- goto bad;
- }
- else d=0;
- if(*s!='E' && *s != 'e')
- (void) op_gen(x==1?E:G,w,d,0); /* default is Ew.dE2 */
- else {
- if (!(s=gt_num(s+1,&e,0)))
- goto bad;
- (void) op_gen(x==1?EE:GE,w,d,e);
- }
- break;
- case 'O':
- case 'o':
- i = O;
- im = OM;
- goto finish_I;
- case 'Z':
- case 'z':
- i = Z;
- im = ZM;
- goto finish_I;
- case 'L':
- case 'l':
- found=1;
- if (!(s=gt_num(s,&w,0)))
- goto bad;
- if(w==0) break;
- (void) op_gen(L,w,0,0);
- break;
- case 'A':
- case 'a':
- found=1;
- skip(s);
- if(*s>='0' && *s<='9')
- { s=gt_num(s,&w,1);
- if(w==0) break;
- (void) op_gen(AW,w,0,0);
- break;
- }
- (void) op_gen(A,0,0,0);
- break;
- case 'F':
- case 'f':
- if (!(s=gt_num(s,&w,0)))
- goto bad;
- found=1;
- if(w==0) break;
- if(*s=='.') {
- if (!(s=gt_num(s+1,&d,0)))
- goto bad;
- }
- else d=0;
- (void) op_gen(F,w,d,0);
- break;
- case 'D':
- case 'd':
- found=1;
- if (!(s=gt_num(s,&w,0)))
- goto bad;
- if(w==0) break;
- if(*s=='.') {
- if (!(s=gt_num(s+1,&d,0)))
- goto bad;
- }
- else d=0;
- (void) op_gen(D,w,d,0);
- break;
- case 'I':
- case 'i':
- i = I;
- im = IM;
- finish_I:
- if (!(s=gt_num(s,&w,0)))
- goto bad;
- found=1;
- if(w==0) break;
- if(*s!='.')
- { (void) op_gen(i,w,0,0);
- break;
- }
- if (!(s=gt_num(s+1,&d,0)))
- goto bad;
- (void) op_gen(im,w,d,0);
- break;
- }
- if(found==0)
- { f__pc--; /*unSTACK*/
- *p=sv;
- return(0);
- }
- *p=s;
- return(1);
-}
- static
-#ifdef KR_headers
-char *i_tem(s) char *s;
-#else
-char *i_tem(char *s)
-#endif
-{ char *t;
- int n,curloc;
- if(*s==')') return(s);
- if(ne_d(s,&t)) return(t);
- if(e_d(s,&t)) return(t);
- s=gt_num(s,&n,1);
- if((curloc=op_gen(STACK,n,0,0))<0) return(NULL);
- return(f_s(s,curloc));
-}
-
- static
-#ifdef KR_headers
-char *f_list(s) char *s;
-#else
-char *f_list(char *s)
-#endif
-{
- for(;*s!=0;)
- { skip(s);
- if((s=i_tem(s))==NULL) return(NULL);
- skip(s);
- if(*s==',') s++;
- else if(*s==')')
- { if(--f__parenlvl==0)
- {
- (void) op_gen(REVERT,f__revloc,0,0);
- return(++s);
- }
- (void) op_gen(GOTO,0,0,0);
- return(++s);
- }
- }
- return(NULL);
-}
-
- int
-#ifdef KR_headers
-pars_f(s) char *s;
-#else
-pars_f(char *s)
-#endif
-{
- f__parenlvl=f__revloc=f__pc=0;
- if(f_s(s,0) == NULL)
- {
- return(-1);
- }
- return(0);
-}
-#define STKSZ 10
-int f__cnt[STKSZ],f__ret[STKSZ],f__cp,f__rp;
-flag f__workdone, f__nonl;
-
- static int
-#ifdef KR_headers
-type_f(n)
-#else
-type_f(int n)
-#endif
-{
- switch(n)
- {
- default:
- return(n);
- case RET1:
- return(RET1);
- case REVERT: return(REVERT);
- case GOTO: return(GOTO);
- case STACK: return(STACK);
- case X:
- case SLASH:
- case APOS: case H:
- case T: case TL: case TR:
- return(NED);
- case F:
- case I:
- case IM:
- case A: case AW:
- case O: case OM:
- case L:
- case E: case EE: case D:
- case G: case GE:
- case Z: case ZM:
- return(ED);
- }
-}
-#ifdef KR_headers
-integer do_fio(number,ptr,len) ftnint *number; ftnlen len; char *ptr;
-#else
-integer do_fio(ftnint *number, char *ptr, ftnlen len)
-#endif
-{ struct syl *p;
- int n,i;
- for(i=0;i<*number;i++,ptr+=len)
- {
-loop: switch(type_f((p= &f__syl[f__pc])->op))
- {
- default:
- fprintf(stderr,"unknown code in do_fio: %d\n%s\n",
- p->op,f__fmtbuf);
- err(f__elist->cierr,100,"do_fio");
- case NED:
- if((*f__doned)(p))
- { f__pc++;
- goto loop;
- }
- f__pc++;
- continue;
- case ED:
- if(f__cnt[f__cp]<=0)
- { f__cp--;
- f__pc++;
- goto loop;
- }
- if(ptr==NULL)
- return((*f__doend)());
- f__cnt[f__cp]--;
- f__workdone=1;
- if((n=(*f__doed)(p,ptr,len))>0)
- errfl(f__elist->cierr,errno,"fmt");
- if(n<0)
- err(f__elist->ciend,(EOF),"fmt");
- continue;
- case STACK:
- f__cnt[++f__cp]=p->p1;
- f__pc++;
- goto loop;
- case RET1:
- f__ret[++f__rp]=p->p1;
- f__pc++;
- goto loop;
- case GOTO:
- if(--f__cnt[f__cp]<=0)
- { f__cp--;
- f__rp--;
- f__pc++;
- goto loop;
- }
- f__pc=1+f__ret[f__rp--];
- goto loop;
- case REVERT:
- f__rp=f__cp=0;
- f__pc = p->p1;
- if(ptr==NULL)
- return((*f__doend)());
- if(!f__workdone) return(0);
- if((n=(*f__dorevert)()) != 0) return(n);
- goto loop;
- case COLON:
- if(ptr==NULL)
- return((*f__doend)());
- f__pc++;
- goto loop;
- case NONL:
- f__nonl = 1;
- f__pc++;
- goto loop;
- case S:
- case SS:
- f__cplus=0;
- f__pc++;
- goto loop;
- case SP:
- f__cplus = 1;
- f__pc++;
- goto loop;
- case P: f__scale=p->p1;
- f__pc++;
- goto loop;
- case BN:
- f__cblank=0;
- f__pc++;
- goto loop;
- case BZ:
- f__cblank=1;
- f__pc++;
- goto loop;
- }
- }
- return(0);
-}
-
- int
-en_fio(Void)
-{ ftnint one=1;
- return(do_fio(&one,(char *)NULL,(ftnint)0));
-}
-
- VOID
-fmt_bg(Void)
-{
- f__workdone=f__cp=f__rp=f__pc=f__cursor=0;
- f__cnt[0]=f__ret[0]=0;
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/fmt.h b/Build/source/utils/pmx/pmx-src/libf2c/fmt.h
deleted file mode 100644
index a2fdc651778..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/fmt.h
+++ /dev/null
@@ -1,104 +0,0 @@
-struct syl
-{ int op;
- int p1;
- union { int i[2]; char *s;} p2;
- };
-#define RET1 1
-#define REVERT 2
-#define GOTO 3
-#define X 4
-#define SLASH 5
-#define STACK 6
-#define I 7
-#define ED 8
-#define NED 9
-#define IM 10
-#define APOS 11
-#define H 12
-#define TL 13
-#define TR 14
-#define T 15
-#define COLON 16
-#define S 17
-#define SP 18
-#define SS 19
-#define P 20
-#define BN 21
-#define BZ 22
-#define F 23
-#define E 24
-#define EE 25
-#define D 26
-#define G 27
-#define GE 28
-#define L 29
-#define A 30
-#define AW 31
-#define O 32
-#define NONL 33
-#define OM 34
-#define Z 35
-#define ZM 36
-extern int f__pc,f__parenlvl,f__revloc;
-typedef union
-{ real pf;
- doublereal pd;
-} ufloat;
-typedef union
-{ short is;
-#ifndef KR_headers
- signed
-#endif
- char ic;
- integer il;
-#ifdef Allow_TYQUAD
- longint ili;
-#endif
-} Uint;
-#ifdef KR_headers
-extern int (*f__doed)(),(*f__doned)();
-extern int (*f__dorevert)();
-extern int rd_ed(),rd_ned();
-extern int w_ed(),w_ned();
-extern int signbit_f2c();
-#else
-#ifdef __cplusplus
-extern "C" {
-#define Cextern extern "C"
-#else
-#define Cextern extern
-#endif
-extern int (*f__doed)(struct syl*, char*, ftnlen),(*f__doned)(struct syl*);
-extern int (*f__dorevert)(void);
-extern void fmt_bg(void);
-extern int pars_f(char*);
-extern int rd_ed(struct syl*, char*, ftnlen),rd_ned(struct syl*);
-extern int signbit_f2c(double*);
-extern int w_ed(struct syl*, char*, ftnlen),w_ned(struct syl*);
-extern int wrt_E(ufloat*, int, int, int, ftnlen);
-extern int wrt_F(ufloat*, int, int, ftnlen);
-extern int wrt_L(Uint*, int, ftnlen);
-#ifdef __cplusplus
- }
-#endif
-#endif
-extern flag f__cblank,f__cplus,f__workdone, f__nonl;
-extern char *f__fmtbuf;
-extern int f__scale;
-#define GET(x) if((x=(*f__getn)())<0) return(x)
-#define VAL(x) (x!='\n'?x:' ')
-#define PUT(x) (*f__putn)(x)
-
-#undef TYQUAD
-#ifndef Allow_TYQUAD
-#undef longint
-#define longint long
-#else
-#define TYQUAD 14
-#endif
-
-#ifdef KR_headers
-extern char *f__icvt();
-#else
-Cextern char *f__icvt(longint, int*, int*, int);
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/fmtlib.c b/Build/source/utils/pmx/pmx-src/libf2c/fmtlib.c
deleted file mode 100644
index 279f66f4390..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/fmtlib.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* @(#)fmtlib.c 1.2 */
-#define MAXINTLENGTH 23
-
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifndef Allow_TYQUAD
-#undef longint
-#define longint long
-#undef ulongint
-#define ulongint unsigned long
-#endif
-
-#ifdef KR_headers
-char *f__icvt(value,ndigit,sign, base) longint value; int *ndigit,*sign;
- register int base;
-#else
-char *f__icvt(longint value, int *ndigit, int *sign, int base)
-#endif
-{
- static char buf[MAXINTLENGTH+1];
- register int i;
- ulongint uvalue;
-
- if(value > 0) {
- uvalue = value;
- *sign = 0;
- }
- else if (value < 0) {
- uvalue = -value;
- *sign = 1;
- }
- else {
- *sign = 0;
- *ndigit = 1;
- buf[MAXINTLENGTH-1] = '0';
- return &buf[MAXINTLENGTH-1];
- }
- i = MAXINTLENGTH;
- do {
- buf[--i] = (uvalue%base) + '0';
- uvalue /= base;
- }
- while(uvalue > 0);
- *ndigit = MAXINTLENGTH - i;
- return &buf[i];
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/fp.h b/Build/source/utils/pmx/pmx-src/libf2c/fp.h
deleted file mode 100644
index 40743d79f74..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/fp.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#define FMAX 40
-#define EXPMAXDIGS 8
-#define EXPMAX 99999999
-/* FMAX = max number of nonzero digits passed to atof() */
-/* EXPMAX = 10^EXPMAXDIGS - 1 = largest allowed exponent absolute value */
-
-#ifdef V10 /* Research Tenth-Edition Unix */
-#include "local.h"
-#endif
-
-/* MAXFRACDIGS and MAXINTDIGS are for wrt_F -- bounds (not necessarily
- tight) on the maximum number of digits to the right and left of
- * the decimal point.
- */
-
-#ifdef VAX
-#define MAXFRACDIGS 56
-#define MAXINTDIGS 38
-#else
-#ifdef CRAY
-#define MAXFRACDIGS 9880
-#define MAXINTDIGS 9864
-#else
-/* values that suffice for IEEE double */
-#define MAXFRACDIGS 344
-#define MAXINTDIGS 308
-#endif
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/ftell64_.c b/Build/source/utils/pmx/pmx-src/libf2c/ftell64_.c
deleted file mode 100644
index 9cc00cba8b9..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/ftell64_.c
+++ /dev/null
@@ -1,52 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- static FILE *
-#ifdef KR_headers
-unit_chk(Unit, who) integer Unit; char *who;
-#else
-unit_chk(integer Unit, char *who)
-#endif
-{
- if (Unit >= MXUNIT || Unit < 0)
- f__fatal(101, who);
- return f__units[Unit].ufd;
- }
-
- longint
-#ifdef KR_headers
-ftell64_(Unit) integer *Unit;
-#else
-ftell64_(integer *Unit)
-#endif
-{
- FILE *f;
- return (f = unit_chk(*Unit, "ftell")) ? FTELL(f) : -1L;
- }
-
- int
-#ifdef KR_headers
-fseek64_(Unit, offset, whence) integer *Unit, *whence; longint *offset;
-#else
-fseek64_(integer *Unit, longint *offset, integer *whence)
-#endif
-{
- FILE *f;
- int w = (int)*whence;
-#ifdef SEEK_SET
- static int wohin[3] = { SEEK_SET, SEEK_CUR, SEEK_END };
-#endif
- if (w < 0 || w > 2)
- w = 0;
-#ifdef SEEK_SET
- w = wohin[w];
-#endif
- return !(f = unit_chk(*Unit, "fseek"))
- || FSEEK(f, (OFF_T)*offset, w) ? 1 : 0;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/ftell_.c b/Build/source/utils/pmx/pmx-src/libf2c/ftell_.c
deleted file mode 100644
index be9f2871086..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/ftell_.c
+++ /dev/null
@@ -1,52 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- static FILE *
-#ifdef KR_headers
-unit_chk(Unit, who) integer Unit; char *who;
-#else
-unit_chk(integer Unit, char *who)
-#endif
-{
- if (Unit >= MXUNIT || Unit < 0)
- f__fatal(101, who);
- return f__units[Unit].ufd;
- }
-
- integer
-#ifdef KR_headers
-ftell_(Unit) integer *Unit;
-#else
-ftell_(integer *Unit)
-#endif
-{
- FILE *f;
- return (f = unit_chk(*Unit, "ftell")) ? ftell(f) : -1L;
- }
-
- int
-#ifdef KR_headers
-fseek_(Unit, offset, whence) integer *Unit, *offset, *whence;
-#else
-fseek_(integer *Unit, integer *offset, integer *whence)
-#endif
-{
- FILE *f;
- int w = (int)*whence;
-#ifdef SEEK_SET
- static int wohin[3] = { SEEK_SET, SEEK_CUR, SEEK_END };
-#endif
- if (w < 0 || w > 2)
- w = 0;
-#ifdef SEEK_SET
- w = wohin[w];
-#endif
- return !(f = unit_chk(*Unit, "fseek"))
- || fseek(f, *offset, w) ? 1 : 0;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/getarg_.c b/Build/source/utils/pmx/pmx-src/libf2c/getarg_.c
deleted file mode 100644
index 9006ad20169..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/getarg_.c
+++ /dev/null
@@ -1,34 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * subroutine getarg(k, c)
- * returns the kth unix command argument in fortran character
- * variable argument c
-*/
-
-#ifdef KR_headers
-VOID getarg_(n, s, ls) ftnint *n; register char *s; ftnlen ls;
-#else
-void getarg_(ftnint *n, register char *s, ftnlen ls)
-#endif
-{
-extern int xargc;
-extern char **xargv;
-register char *t;
-register int i;
-
-if(*n>=0 && *n<xargc)
- t = xargv[*n];
-else
- t = "";
-for(i = 0; i<ls && *t!='\0' ; ++i)
- *s++ = *t++;
-for( ; i<ls ; ++i)
- *s++ = ' ';
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/getenv_.c b/Build/source/utils/pmx/pmx-src/libf2c/getenv_.c
deleted file mode 100644
index 57ca28cb3b4..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/getenv_.c
+++ /dev/null
@@ -1,64 +0,0 @@
-#include "f2c.h"
-#ifdef KR_headers
-extern char *F77_aloc(), *getenv();
-#else
-#undef abs
-#undef max
-#undef min
-#include <stdlib.h>
-#include <string.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern char *F77_aloc(ftnlen, char*);
-#endif
-
-/*
- * getenv - f77 subroutine to return environment variables
- *
- * called by:
- * call getenv (ENV_NAME, char_var)
- * where:
- * ENV_NAME is the name of an environment variable
- * char_var is a character variable which will receive
- * the current value of ENV_NAME, or all blanks
- * if ENV_NAME is not defined
- */
-
-#ifdef KR_headers
- VOID
-getenv_(fname, value, flen, vlen) char *value, *fname; ftnlen vlen, flen;
-#else
- void
-getenv_(char *fname, char *value, ftnlen flen, ftnlen vlen)
-#endif
-{
- char buf[256], *ep, *fp;
- integer i;
-
- if (flen <= 0)
- goto add_blanks;
- for(i = 0; i < sizeof(buf); i++) {
- if (i == flen || (buf[i] = fname[i]) == ' ') {
- buf[i] = 0;
- ep = getenv(buf);
- goto have_ep;
- }
- }
- while(i < flen && fname[i] != ' ')
- i++;
- strncpy(fp = F77_aloc(i+1, "getenv_"), fname, (int)i);
- fp[i] = 0;
- ep = getenv(fp);
- free(fp);
- have_ep:
- if (ep)
- while(*ep && vlen-- > 0)
- *value++ = *ep++;
- add_blanks:
- while(vlen-- > 0)
- *value++ = ' ';
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/h_abs.c b/Build/source/utils/pmx/pmx-src/libf2c/h_abs.c
deleted file mode 100644
index db6906869cf..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/h_abs.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-shortint h_abs(x) shortint *x;
-#else
-shortint h_abs(shortint *x)
-#endif
-{
-if(*x >= 0)
- return(*x);
-return(- *x);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/h_dim.c b/Build/source/utils/pmx/pmx-src/libf2c/h_dim.c
deleted file mode 100644
index 443427a9b99..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/h_dim.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-shortint h_dim(a,b) shortint *a, *b;
-#else
-shortint h_dim(shortint *a, shortint *b)
-#endif
-{
-return( *a > *b ? *a - *b : 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/h_dnnt.c b/Build/source/utils/pmx/pmx-src/libf2c/h_dnnt.c
deleted file mode 100644
index 1ec641c5aa4..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/h_dnnt.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double floor();
-shortint h_dnnt(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-shortint h_dnnt(doublereal *x)
-#endif
-{
-return (shortint)(*x >= 0. ? floor(*x + .5) : -floor(.5 - *x));
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/h_indx.c b/Build/source/utils/pmx/pmx-src/libf2c/h_indx.c
deleted file mode 100644
index 018f2f43861..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/h_indx.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-shortint h_indx(a, b, la, lb) char *a, *b; ftnlen la, lb;
-#else
-shortint h_indx(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
-{
-ftnlen i, n;
-char *s, *t, *bend;
-
-n = la - lb + 1;
-bend = b + lb;
-
-for(i = 0 ; i < n ; ++i)
- {
- s = a + i;
- t = b;
- while(t < bend)
- if(*s++ != *t++)
- goto no;
- return((shortint)i+1);
- no: ;
- }
-return(0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/h_len.c b/Build/source/utils/pmx/pmx-src/libf2c/h_len.c
deleted file mode 100644
index 8b0aea99d26..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/h_len.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-shortint h_len(s, n) char *s; ftnlen n;
-#else
-shortint h_len(char *s, ftnlen n)
-#endif
-{
-return(n);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/h_mod.c b/Build/source/utils/pmx/pmx-src/libf2c/h_mod.c
deleted file mode 100644
index 611ef0aa8bf..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/h_mod.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-shortint h_mod(a,b) short *a, *b;
-#else
-shortint h_mod(short *a, short *b)
-#endif
-{
-return( *a % *b);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/h_nint.c b/Build/source/utils/pmx/pmx-src/libf2c/h_nint.c
deleted file mode 100644
index 9e2282f2a74..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/h_nint.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double floor();
-shortint h_nint(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-shortint h_nint(real *x)
-#endif
-{
-return (shortint)(*x >= 0 ? floor(*x + .5) : -floor(.5 - *x));
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/h_sign.c b/Build/source/utils/pmx/pmx-src/libf2c/h_sign.c
deleted file mode 100644
index 4e214380cf9..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/h_sign.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-shortint h_sign(a,b) shortint *a, *b;
-#else
-shortint h_sign(shortint *a, shortint *b)
-#endif
-{
-shortint x;
-x = (*a >= 0 ? *a : - *a);
-return( *b >= 0 ? x : -x);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/hl_ge.c b/Build/source/utils/pmx/pmx-src/libf2c/hl_ge.c
deleted file mode 100644
index 8c72f03d489..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/hl_ge.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern integer s_cmp();
-shortlogical hl_ge(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
-extern integer s_cmp(char *, char *, ftnlen, ftnlen);
-shortlogical hl_ge(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
-{
-return(s_cmp(a,b,la,lb) >= 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/hl_gt.c b/Build/source/utils/pmx/pmx-src/libf2c/hl_gt.c
deleted file mode 100644
index a448522db4b..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/hl_gt.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern integer s_cmp();
-shortlogical hl_gt(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
-extern integer s_cmp(char *, char *, ftnlen, ftnlen);
-shortlogical hl_gt(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
-{
-return(s_cmp(a,b,la,lb) > 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/hl_le.c b/Build/source/utils/pmx/pmx-src/libf2c/hl_le.c
deleted file mode 100644
index 31cbc431a3f..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/hl_le.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern integer s_cmp();
-shortlogical hl_le(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
-extern integer s_cmp(char *, char *, ftnlen, ftnlen);
-shortlogical hl_le(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
-{
-return(s_cmp(a,b,la,lb) <= 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/hl_lt.c b/Build/source/utils/pmx/pmx-src/libf2c/hl_lt.c
deleted file mode 100644
index 7ad3c714b1d..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/hl_lt.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern integer s_cmp();
-shortlogical hl_lt(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
-extern integer s_cmp(char *, char *, ftnlen, ftnlen);
-shortlogical hl_lt(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
-{
-return(s_cmp(a,b,la,lb) < 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/i77vers.c b/Build/source/utils/pmx/pmx-src/libf2c/i77vers.c
deleted file mode 100644
index 60cc24eec19..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/i77vers.c
+++ /dev/null
@@ -1,343 +0,0 @@
- char
-_libi77_version_f2c[] = "\n@(#) LIBI77 VERSION (f2c) pjw,dmg-mods 20030321\n";
-
-/*
-2.01 $ format added
-2.02 Coding bug in open.c repaired
-2.03 fixed bugs in lread.c (read * with negative f-format) and lio.c
- and lio.h (e-format conforming to spec)
-2.04 changed open.c and err.c (fopen and freopen respectively) to
- update to new c-library (append mode)
-2.05 added namelist capability
-2.06 allow internal list and namelist I/O
-*/
-
-/*
-close.c:
- allow upper-case STATUS= values
-endfile.c
- create fort.nnn if unit nnn not open;
- else if (file length == 0) use creat() rather than copy;
- use local copy() rather than forking /bin/cp;
- rewind, fseek to clear buffer (for no reading past EOF)
-err.c
- use neither setbuf nor setvbuf; make stderr buffered
-fio.h
- #define _bufend
-inquire.c
- upper case responses;
- omit byfile test from SEQUENTIAL=
- answer "YES" to DIRECT= for unopened file (open to debate)
-lio.c
- flush stderr, stdout at end of each stmt
- space before character strings in list output only at line start
-lio.h
- adjust LEW, LED consistent with old libI77
-lread.c
- use atof()
- allow "nnn*," when reading complex constants
-open.c
- try opening for writing when open for read fails, with
- special uwrt value (2) delaying creat() to first write;
- set curunit so error messages don't drop core;
- no file name ==> fort.nnn except for STATUS='SCRATCH'
-rdfmt.c
- use atof(); trust EOF == end-of-file (so don't read past
- end-of-file after endfile stmt)
-sfe.c
- flush stderr, stdout at end of each stmt
-wrtfmt.c:
- use upper case
- put wrt_E and wrt_F into wref.c, use sprintf()
- rather than ecvt() and fcvt() [more accurate on VAX]
-*/
-
-/* 16 Oct. 1988: uwrt = 3 after write, rewind, so close won't zap the file. */
-
-/* 10 July 1989: change _bufend to buf_end in fio.h, wsfe.c, wrtfmt.c */
-
-/* 28 Nov. 1989: corrections for IEEE and Cray arithmetic */
-/* 29 Nov. 1989: change various int return types to long for f2c */
-/* 30 Nov. 1989: various types from f2c.h */
-/* 6 Dec. 1989: types corrected various places */
-/* 19 Dec. 1989: make iostat= work right for internal I/O */
-/* 8 Jan. 1990: add rsne, wsne -- routines for handling NAMELIST */
-/* 28 Jan. 1990: have NAMELIST read treat $ as &, general white
- space as blank */
-/* 27 Mar. 1990: change an = to == in rd_L(rdfmt.c) so formatted reads
- of logical values reject letters other than fFtT;
- have nowwriting reset cf */
-/* 14 Aug. 1990: adjust lread.c to treat tabs as spaces in list input */
-/* 17 Aug. 1990: adjust open.c to recognize blank='Z...' as well as
- blank='z...' when reopening an open file */
-/* 30 Aug. 1990: prevent embedded blanks in list output of complex values;
- omit exponent field in list output of values of
- magnitude between 10 and 1e8; prevent writing stdin
- and reading stdout or stderr; don't close stdin, stdout,
- or stderr when reopening units 5, 6, 0. */
-/* 18 Sep. 1990: add component udev to unit and consider old == new file
- iff uinode and udev values agree; use stat rather than
- access to check existence of file (when STATUS='OLD')*/
-/* 2 Oct. 1990: adjust rewind.c so two successive rewinds after a write
- don't clobber the file. */
-/* 9 Oct. 1990: add #include "fcntl.h" to endfile.c, err.c, open.c;
- adjust g_char in util.c for segmented memories. */
-/* 17 Oct. 1990: replace abort() and _cleanup() with calls on
- sig_die(...,1) (defined in main.c). */
-/* 5 Nov. 1990: changes to open.c: complain if new= is specified and the
- file already exists; allow file= to be omitted in open stmts
- and allow status='replace' (Fortran 90 extensions). */
-/* 11 Dec. 1990: adjustments for POSIX. */
-/* 15 Jan. 1991: tweak i_ungetc in rsli.c to allow reading from
- strings in read-only memory. */
-/* 25 Apr. 1991: adjust namelist stuff to work with f2c -i2 */
-/* 26 Apr. 1991: fix some bugs with NAMELIST read of multi-dim. arrays */
-/* 16 May 1991: increase LEFBL in lio.h to bypass NeXT bug */
-/* 17 Oct. 1991: change type of length field in sequential unformatted
- records from int to long (for systems where sizeof(int)
- can vary, depending on the compiler or compiler options). */
-/* 14 Nov. 1991: change uint to Uint in fmt.h, rdfmt.c, wrtfmt.c. */
-/* 25 Nov. 1991: change uint to Uint in lwrite.c; change sizeof(int) to
- sizeof(uioint) in fseeks in sue.c (missed on 17 Oct.). */
-/* 1 Dec. 1991: uio.c: add test for read failure (seq. unformatted reads);
- adjust an error return from EOF to off end of record */
-/* 12 Dec. 1991: rsli.c: fix bug with internal list input that caused
- the last character of each record to be ignored.
- iio.c: adjust error message in internal formatted
- input from "end-of-file" to "off end of record" if
- the format specifies more characters than the
- record contains. */
-/* 17 Jan. 1992: lread.c, rsne.c: in list and namelist input,
- treat "r* ," and "r*," alike (where r is a
- positive integer constant), and fix a bug in
- handling null values following items with repeat
- counts (e.g., 2*1,,3); for namelist reading
- of a numeric array, allow a new name-value subsequence
- to terminate the current one (as though the current
- one ended with the right number of null values).
- lio.h, lwrite.c: omit insignificant zeros in
- list and namelist output. To get the old
- behavior, compile with -DOld_list_output . */
-/* 18 Jan. 1992: make list output consistent with F format by
- printing .1 rather than 0.1 (introduced yesterday). */
-/* 3 Feb. 1992: rsne.c: fix namelist read bug that caused the
- character following a comma to be ignored. */
-/* 19 May 1992: adjust iio.c, ilnw.c, rdfmt.c and rsli.c to make err=
- work with internal list and formatted I/O. */
-/* 18 July 1992: adjust rsne.c to allow namelist input to stop at
- an & (e.g. &end). */
-/* 23 July 1992: switch to ANSI prototypes unless KR_headers is #defined ;
- recognize Z format (assuming 8-bit bytes). */
-/* 14 Aug. 1992: tweak wrt_E in wref.c to avoid -NaN */
-/* 23 Oct. 1992: Supply missing l_eof = 0 assignment to s_rsne() in rsne.c
- (so end-of-file on other files won't confuse namelist
- reads of external files). Prepend f__ to external
- names that are only of internal interest to lib[FI]77. */
-/* 1 Feb. 1993: backspace.c: fix bug that bit when last char of 2nd
- buffer == '\n'.
- endfile.c: guard against tiny L_tmpnam; close and reopen
- files in t_runc().
- lio.h: lengthen LINTW (buffer size in lwrite.c).
- err.c, open.c: more prepending of f__ (to [rw]_mode). */
-/* 5 Feb. 1993: tweaks to NAMELIST: rsne.c: ? prints the namelist being
- sought; namelists of the wrong name are skipped (after
- an error message; xwsne.c: namelist writes have a
- newline before each new variable.
- open.c: ACCESS='APPEND' positions sequential files
- at EOF (nonstandard extension -- that doesn't require
- changing data structures). */
-/* 9 Feb. 1993: Change some #ifdef MSDOS lines to #ifdef NON_UNIX_STDIO.
- err.c: under NON_UNIX_STDIO, avoid close(creat(name,0666))
- when the unit has another file descriptor for name. */
-/* 4 March 1993: err.c, open.c: take declaration of fdopen from rawio.h;
- open.c: always give f__w_mode[] 4 elements for use
- in t_runc (in endfile.c -- for change of 1 Feb. 1993). */
-/* 6 March 1993: uio.c: adjust off-end-of-record test for sequential
- unformatted reads to respond to err= rather than end=. */
-/* 12 March 1993: various tweaks for C++ */
-/* 6 April 1993: adjust error returns for formatted inputs to flush
- the current input line when err=label is specified.
- To restore the old behavior (input left mid-line),
- either adjust the #definition of errfl in fio.h or
- omit the invocation of f__doend in err__fl (in err.c). */
-/* 23 June 1993: iio.c: fix bug in format reversions for internal writes. */
-/* 5 Aug. 1993: lread.c: fix bug in handling repetition counts for
- logical data (during list or namelist input).
- Change struct f__syl to struct syl (for buggy compilers). */
-/* 7 Aug. 1993: lread.c: fix bug in namelist reading of incomplete
- logical arrays. */
-/* 9 Aug. 1993: lread.c: fix bug in namelist reading of an incomplete
- array of numeric data followed by another namelist
- item whose name starts with 'd', 'D', 'e', or 'E'. */
-/* 8 Sept. 1993: open.c: protect #include "sys/..." with
- #ifndef NON_UNIX_STDIO; Version date not changed. */
-/* 10 Nov. 1993: backspace.c: add nonsense for #ifdef MSDOS */
-/* 8 Dec. 1993: iio.c: adjust internal formatted reads to treat
- short records as though padded with blanks
- (rather than causing an "off end of record" error). */
-/* 22 Feb. 1994: lread.c: check that realloc did not return NULL. */
-/* 6 June 1994: Under NON_UNIX_STDIO, use binary mode for direct
- formatted files (avoiding any confusion regarding \n). */
-/* 5 July 1994: Fix bug (introduced 6 June 1994?) in reopening files
- under NON_UNIX_STDIO. */
-/* 6 July 1994: wref.c: protect with #ifdef GOOD_SPRINTF_EXPONENT an
- optimization that requires exponents to have 2 digits
- when 2 digits suffice.
- lwrite.c wsfe.c (list and formatted external output):
- omit ' ' carriage-control when compiled with
- -DOMIT_BLANK_CC . Off-by-one bug fixed in character
- count for list output of character strings.
- Omit '.' in list-directed printing of Nan, Infinity. */
-/* 12 July 1994: wrtfmt.c: under G11.4, write 0. as " .0000 " rather
- than " .0000E+00". */
-/* 3 Aug. 1994: lwrite.c: do not insert a newline when appending an
- oversize item to an empty line. */
-/* 12 Aug. 1994: rsli.c rsne.c: fix glitch (reset nml_read) that kept
- ERR= (in list- or format-directed input) from working
- after a NAMELIST READ. */
-/* 7 Sept. 1994: typesize.c: adjust to allow types LOGICAL*1, LOGICAL*2,
- INTEGER*1, and (under -DAllow_TYQUAD) INTEGER*8
- in NAMELISTs. */
-/* 6 Oct. 1994: util.c: omit f__mvgbt, as it is never used. */
-/* 2 Nov. 1994: add #ifdef ALWAYS_FLUSH logic. */
-/* 26 Jan. 1995: wref.c: fix glitch in printing the exponent of 0 when
- GOOD_SPRINTF_EXPONENT is not #defined. */
-/* 24 Feb. 1995: iio.c: z_getc: insert (unsigned char *) to allow
- internal reading of characters with high-bit set
- (on machines that sign-extend characters). */
-/* 14 March 1995:lread.c and rsfe.c: adjust s_rsle and s_rsfe to
- check for end-of-file (to prevent infinite loops
- with empty read statements). */
-/* 26 May 1995: iio.c: z_wnew: fix bug in handling T format items
- in internal writes whose last item is written to
- an earlier position than some previous item. */
-/* 29 Aug. 1995: backspace.c: adjust MSDOS logic. */
-/* 6 Sept. 1995: Adjust namelist input to treat a subscripted name
- whose subscripts do not involve colons similarly
- to the name without a subscript: accept several
- values, stored in successive elements starting at
- the indicated subscript. Adjust namelist output
- to quote character strings (avoiding confusion with
- arrays of character strings). Adjust f_init calls
- for people who don't use libF77's main(); now open and
- namelist read statements invoke f_init if needed. */
-/* 7 Sept. 1995: Fix some bugs with -DAllow_TYQUAD (for integer*8).
- Add -DNo_Namelist_Comments lines to rsne.c. */
-/* 5 Oct. 1995: wrtfmt.c: fix bug with t editing (f__cursor was not
- always zeroed in mv_cur). */
-/* 11 Oct. 1995: move defs of f__hiwater, f__svic, f__icptr from wrtfmt.c
- to err.c */
-/* 15 Mar. 1996: lread.c, rsfe.c: honor END= in READ stmt with empty iolist */
-
-/* 13 May 1996: add ftell_.c and fseek_.c */
-/* 9 June 1996: Adjust rsli.c and lread.c so internal list input with
- too few items in the input string will honor end= . */
-/* 12 Sept. 1995:fmtlib.c: fix glitch in printing the most negative integer. */
-/* 25 Sept. 1995:fmt.h: for formatted writes of negative integer*1 values,
- make ic signed on ANSI systems. If formatted writes of
- integer*1 values trouble you when using a K&R C compiler,
- switch to an ANSI compiler or use a compiler flag that
- makes characters signed. */
-/* 9 Dec. 1996: d[fu]e.c, err.c: complain about non-positive rec=
- in direct read and write statements.
- ftell_.c: change param "unit" to "Unit" for -DKR_headers. */
-/* 26 Feb. 1997: ftell_.c: on systems that define SEEK_SET, etc., use
- SEEK_SET, SEEK_CUR, SEEK_END for *whence = 0, 1, 2. */
-/* 7 Apr. 1997: fmt.c: adjust to complain at missing numbers in formats
- (but still treat missing ".nnn" as ".0"). */
-/* 11 Apr. 1997: err.c: attempt to make stderr line buffered rather
- than fully buffered. (Buffering is needed for format
- items T and TR.) */
-/* 27 May 1997: ftell_.c: fix typo (that caused the third argument to be
- treated as 2 on some systems). */
-/* 5 Aug. 1997: lread.c: adjust to accord with a change to the Fortran 8X
- draft (in 1990 or 1991) that rescinded permission to elide
- quote marks in namelist input of character data; compile
- with -DF8X_NML_ELIDE_QUOTES to get the old behavior.
- wrtfmt.o: wrt_G: tweak to print the right number of 0's
- for zero under G format. */
-/* 16 Aug. 1997: iio.c: fix bug in internal writes to an array of character
- strings that sometimes caused one more array element than
- required by the format to be blank-filled. Example:
- format(1x). */
-/* 16 Sept. 1997:fmt.[ch] rdfmt.c wrtfmt.c: tweak struct syl for machines
- with 64-bit pointers and 32-bit ints that did not 64-bit
- align struct syl (e.g., Linux on the DEC Alpha). */
-/* 19 Jan. 1998: backspace.c: for b->ufmt==0, change sizeof(int) to
- sizeof(uiolen). On machines where this would make a
- difference, it is best for portability to compile libI77 with
- -DUIOLEN_int (which will render the change invisible). */
-/* 4 March 1998: open.c: fix glitch in comparing file names under
- -DNON_UNIX_STDIO */
-/* 17 March 1998: endfile.c, open.c: acquire temporary files from tmpfile(),
- unless compiled with -DNON_ANSI_STDIO, which uses mktemp().
- New buffering scheme independent of NON_UNIX_STDIO for
- handling T format items. Now -DNON_UNIX_STDIO is no
- longer be necessary for Linux, and libf2c no longer
- causes stderr to be buffered -- the former setbuf or
- setvbuf call for stderr was to make T format items work.
- open.c: use the Posix access() function to check existence
- or nonexistence of files, except under -DNON_POSIX_STDIO,
- where trial fopen calls are used. */
-/* 5 April 1998: wsfe.c: make $ format item work: this was lost in the
- changes of 17 March 1998. */
-/* 28 May 1998: backspace.c dfe.c due.c iio.c lread.c rsfe.c sue.c wsfe.c:
- set f__curunit sooner so various error messages will
- correctly identify the I/O unit involved. */
-/* 17 June 1998: lread.c: unless compiled with
- ALLOW_FLOAT_IN_INTEGER_LIST_INPUT #defined, treat
- floating-point numbers (containing either a decimal point
- or an exponent field) as errors when they appear as list
- input for integer data. */
-/* 7 Sept. 1998: move e_wdfe from sfe.c to dfe.c, where it was originally.
- Why did it ever move to sfe.c? */
-/* 2 May 1999: open.c: set f__external (to get "external" versus "internal"
- right in the error message if we cannot open the file).
- err.c: cast a pointer difference to (int) for %d.
- rdfmt.c: omit fixed-length buffer that could be overwritten
- by formats Inn or Lnn with nn > 83. */
-/* 3 May 1999: open.c: insert two casts for machines with 64-bit longs. */
-/* 18 June 1999: backspace.c: allow for b->ufd changing in t_runc */
-/* 27 June 1999: rsne.c: fix bug in namelist input: a misplaced increment */
-/* could cause wrong array elements to be assigned; e.g., */
-/* "&input k(5)=10*1 &end" assigned k(5) and k(15..23) */
-/* 15 Nov. 1999: endfile.c: set state to writing (b->uwrt = 1) when an */
-/* endfile statement requires copying the file. */
-/* (Otherwise an immediately following rewind statement */
-/* could make the file appear empty.) Also, supply a */
-/* missing (long) cast in the sprintf call. */
-/* sfe.c: add #ifdef ALWAYS_FLUSH logic, for formatted I/O: */
-/* Compiling libf2c with -DALWAYS_FLUSH should prevent losing */
-/* any data in buffers should the program fault. It also */
-/* makes the program run more slowly. */
-/* 20 April 2000: rsne.c, xwsne.c: tweaks that only matter if ftnint and */
-/* ftnlen are of different fundamental types (different numbers */
-/* of bits). Since these files will not compile when this */
-/* change matters, the above VERSION string remains unchanged. */
-/* 4 July 2000: adjustments to permit compilation by C++ compilers; */
-/* VERSION string remains unchanged. */
-/* 5 Dec. 2000: lread.c: under namelist input, when reading a logical array, */
-/* treat Tstuff= and Fstuff= as new assignments rather than as */
-/* logical constants. */
-/* 22 Feb. 2001: endfile.c: adjust to use truncate() unless compiled with */
-/* -DNO_TRUNCATE (or with -DMSDOS). */
-/* 1 March 2001: endfile.c: switch to ftruncate (absent -DNO_TRUNCATE), */
-/* thus permitting truncation of scratch files on true Unix */
-/* systems, where scratch files have no name. Add an fflush() */
-/* (surprisingly) needed on some Linux systems. */
-/* 11 Oct. 2001: backspac.c dfe.c due.c endfile.c err.c fio.h fmt.c fmt.h */
-/* inquire.c open.c rdfmt.c sue.c util.c: change fseek and */
-/* ftell to FSEEK and FTELL (#defined to be fseek and ftell, */
-/* respectively, in fio.h unless otherwise #defined), and use */
-/* type OFF_T (#defined to be long unless otherwise #defined) */
-/* to permit handling files over 2GB long where possible, */
-/* with suitable -D options, provided for some systems in new */
-/* header file sysdep1.h (copied from sysdep1.h0 by default). */
-/* 15 Nov. 2001: endfile.c: add FSEEK after FTRUNCATE. */
-/* 28 Nov. 2001: fmt.h lwrite.c wref.c and (new) signbit.c: on IEEE systems, */
-/* print -0 as -0 when compiled with -DSIGNED_ZEROS. See */
-/* comments in makefile or (better) libf2c/makefile.* . */
-/* 6 Sept. 2002: rsne.c: fix bug with multiple repeat counts in reading */
-/* namelists, e.g., &nl a(2) = 3*1.0, 2*2.0, 3*3.0 / */
-/* 21 March 2003: err.c: before writing to a file after reading from it, */
-/* f_seek(file, 0, SEEK_CUR) to make writing legal in ANSI C. */
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/i_abs.c b/Build/source/utils/pmx/pmx-src/libf2c/i_abs.c
deleted file mode 100644
index 2b92c4aa782..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/i_abs.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-integer i_abs(x) integer *x;
-#else
-integer i_abs(integer *x)
-#endif
-{
-if(*x >= 0)
- return(*x);
-return(- *x);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/i_dim.c b/Build/source/utils/pmx/pmx-src/libf2c/i_dim.c
deleted file mode 100644
index 60ed4d8c5b4..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/i_dim.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-integer i_dim(a,b) integer *a, *b;
-#else
-integer i_dim(integer *a, integer *b)
-#endif
-{
-return( *a > *b ? *a - *b : 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/i_dnnt.c b/Build/source/utils/pmx/pmx-src/libf2c/i_dnnt.c
deleted file mode 100644
index 3abc2dc4a51..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/i_dnnt.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double floor();
-integer i_dnnt(x) doublereal *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-integer i_dnnt(doublereal *x)
-#endif
-{
-return (integer)(*x >= 0. ? floor(*x + .5) : -floor(.5 - *x));
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/i_indx.c b/Build/source/utils/pmx/pmx-src/libf2c/i_indx.c
deleted file mode 100644
index 19256393ecd..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/i_indx.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-integer i_indx(a, b, la, lb) char *a, *b; ftnlen la, lb;
-#else
-integer i_indx(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
-{
-ftnlen i, n;
-char *s, *t, *bend;
-
-n = la - lb + 1;
-bend = b + lb;
-
-for(i = 0 ; i < n ; ++i)
- {
- s = a + i;
- t = b;
- while(t < bend)
- if(*s++ != *t++)
- goto no;
- return(i+1);
- no: ;
- }
-return(0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/i_len.c b/Build/source/utils/pmx/pmx-src/libf2c/i_len.c
deleted file mode 100644
index 0f7b188d65a..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/i_len.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-integer i_len(s, n) char *s; ftnlen n;
-#else
-integer i_len(char *s, ftnlen n)
-#endif
-{
-return(n);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/i_mod.c b/Build/source/utils/pmx/pmx-src/libf2c/i_mod.c
deleted file mode 100644
index 4a9b5609ba4..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/i_mod.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-integer i_mod(a,b) integer *a, *b;
-#else
-integer i_mod(integer *a, integer *b)
-#endif
-{
-return( *a % *b);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/i_nint.c b/Build/source/utils/pmx/pmx-src/libf2c/i_nint.c
deleted file mode 100644
index fe9fd68a86e..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/i_nint.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double floor();
-integer i_nint(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-integer i_nint(real *x)
-#endif
-{
-return (integer)(*x >= 0 ? floor(*x + .5) : -floor(.5 - *x));
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/i_sign.c b/Build/source/utils/pmx/pmx-src/libf2c/i_sign.c
deleted file mode 100644
index 4c20e9494e1..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/i_sign.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-integer i_sign(a,b) integer *a, *b;
-#else
-integer i_sign(integer *a, integer *b)
-#endif
-{
-integer x;
-x = (*a >= 0 ? *a : - *a);
-return( *b >= 0 ? x : -x);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/iargc_.c b/Build/source/utils/pmx/pmx-src/libf2c/iargc_.c
deleted file mode 100644
index 2f29da0eaa6..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/iargc_.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-ftnint iargc_()
-#else
-ftnint iargc_(void)
-#endif
-{
-extern int xargc;
-return ( xargc - 1 );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/iio.c b/Build/source/utils/pmx/pmx-src/libf2c/iio.c
deleted file mode 100644
index 8553efcf97f..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/iio.c
+++ /dev/null
@@ -1,159 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "fmt.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern char *f__icptr;
-char *f__icend;
-extern icilist *f__svic;
-int f__icnum;
-
- int
-z_getc(Void)
-{
- if(f__recpos++ < f__svic->icirlen) {
- if(f__icptr >= f__icend) err(f__svic->iciend,(EOF),"endfile");
- return(*(unsigned char *)f__icptr++);
- }
- return '\n';
-}
-
- void
-#ifdef KR_headers
-z_putc(c)
-#else
-z_putc(int c)
-#endif
-{
- if (f__icptr < f__icend && f__recpos++ < f__svic->icirlen)
- *f__icptr++ = c;
-}
-
- int
-z_rnew(Void)
-{
- f__icptr = f__svic->iciunit + (++f__icnum)*f__svic->icirlen;
- f__recpos = 0;
- f__cursor = 0;
- f__hiwater = 0;
- return 1;
-}
-
- static int
-z_endp(Void)
-{
- (*f__donewrec)();
- return 0;
- }
-
- int
-#ifdef KR_headers
-c_si(a) icilist *a;
-#else
-c_si(icilist *a)
-#endif
-{
- f__elist = (cilist *)a;
- f__fmtbuf=a->icifmt;
- f__curunit = 0;
- f__sequential=f__formatted=1;
- f__external=0;
- if(pars_f(f__fmtbuf)<0)
- err(a->icierr,100,"startint");
- fmt_bg();
- f__cblank=f__cplus=f__scale=0;
- f__svic=a;
- f__icnum=f__recpos=0;
- f__cursor = 0;
- f__hiwater = 0;
- f__icptr = a->iciunit;
- f__icend = f__icptr + a->icirlen*a->icirnum;
- f__cf = 0;
- return(0);
-}
-
- int
-iw_rev(Void)
-{
- if(f__workdone)
- z_endp();
- f__hiwater = f__recpos = f__cursor = 0;
- return(f__workdone=0);
- }
-
-#ifdef KR_headers
-integer s_rsfi(a) icilist *a;
-#else
-integer s_rsfi(icilist *a)
-#endif
-{ int n;
- if(n=c_si(a)) return(n);
- f__reading=1;
- f__doed=rd_ed;
- f__doned=rd_ned;
- f__getn=z_getc;
- f__dorevert = z_endp;
- f__donewrec = z_rnew;
- f__doend = z_endp;
- return(0);
-}
-
- int
-z_wnew(Void)
-{
- if (f__recpos < f__hiwater) {
- f__icptr += f__hiwater - f__recpos;
- f__recpos = f__hiwater;
- }
- while(f__recpos++ < f__svic->icirlen)
- *f__icptr++ = ' ';
- f__recpos = 0;
- f__cursor = 0;
- f__hiwater = 0;
- f__icnum++;
- return 1;
-}
-#ifdef KR_headers
-integer s_wsfi(a) icilist *a;
-#else
-integer s_wsfi(icilist *a)
-#endif
-{ int n;
- if(n=c_si(a)) return(n);
- f__reading=0;
- f__doed=w_ed;
- f__doned=w_ned;
- f__putn=z_putc;
- f__dorevert = iw_rev;
- f__donewrec = z_wnew;
- f__doend = z_endp;
- return(0);
-}
-integer e_rsfi(Void)
-{ int n = en_fio();
- f__fmtbuf = NULL;
- return(n);
-}
-integer e_wsfi(Void)
-{
- int n;
- n = en_fio();
- f__fmtbuf = NULL;
- if(f__svic->icirnum != 1
- && (f__icnum > f__svic->icirnum
- || (f__icnum == f__svic->icirnum && (f__recpos | f__hiwater))))
- err(f__svic->icierr,110,"inwrite");
- if (f__recpos < f__hiwater)
- f__recpos = f__hiwater;
- if (f__recpos >= f__svic->icirlen)
- err(f__svic->icierr,110,"recend");
- if (!f__recpos && f__icnum)
- return n;
- while(f__recpos++ < f__svic->icirlen)
- *f__icptr++ = ' ';
- return n;
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/ilnw.c b/Build/source/utils/pmx/pmx-src/libf2c/ilnw.c
deleted file mode 100644
index e8b3d49cf1f..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/ilnw.c
+++ /dev/null
@@ -1,83 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "lio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern char *f__icptr;
-extern char *f__icend;
-extern icilist *f__svic;
-extern int f__icnum;
-#ifdef KR_headers
-extern void z_putc();
-#else
-extern void z_putc(int);
-#endif
-
- static int
-z_wSL(Void)
-{
- while(f__recpos < f__svic->icirlen)
- z_putc(' ');
- return z_rnew();
- }
-
- static void
-#ifdef KR_headers
-c_liw(a) icilist *a;
-#else
-c_liw(icilist *a)
-#endif
-{
- f__reading = 0;
- f__external = 0;
- f__formatted = 1;
- f__putn = z_putc;
- L_len = a->icirlen;
- f__donewrec = z_wSL;
- f__svic = a;
- f__icnum = f__recpos = 0;
- f__cursor = 0;
- f__cf = 0;
- f__curunit = 0;
- f__icptr = a->iciunit;
- f__icend = f__icptr + a->icirlen*a->icirnum;
- f__elist = (cilist *)a;
- }
-
- integer
-#ifdef KR_headers
-s_wsni(a) icilist *a;
-#else
-s_wsni(icilist *a)
-#endif
-{
- cilist ca;
-
- c_liw(a);
- ca.cifmt = a->icifmt;
- x_wsne(&ca);
- z_wSL();
- return 0;
- }
-
- integer
-#ifdef KR_headers
-s_wsli(a) icilist *a;
-#else
-s_wsli(icilist *a)
-#endif
-{
- f__lioproc = l_write;
- c_liw(a);
- return(0);
- }
-
-integer e_wsli(Void)
-{
- z_wSL();
- return(0);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/inquire.c b/Build/source/utils/pmx/pmx-src/libf2c/inquire.c
deleted file mode 100644
index 5936a674ccc..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/inquire.c
+++ /dev/null
@@ -1,117 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "string.h"
-#ifdef NON_UNIX_STDIO
-#ifndef MSDOS
-#include "unistd.h" /* for access() */
-#endif
-#endif
-#ifdef KR_headers
-integer f_inqu(a) inlist *a;
-#else
-#ifdef __cplusplus
-extern "C" integer f_inqu(inlist*);
-#endif
-#ifdef MSDOS
-#undef abs
-#undef min
-#undef max
-#include "io.h"
-#endif
-integer f_inqu(inlist *a)
-#endif
-{ flag byfile;
- int i;
-#ifndef NON_UNIX_STDIO
- int n;
-#endif
- unit *p;
- char buf[256];
- long x;
- if(a->infile!=NULL)
- { byfile=1;
- g_char(a->infile,a->infilen,buf);
-#ifdef NON_UNIX_STDIO
- x = access(buf,0) ? -1 : 0;
- for(i=0,p=NULL;i<MXUNIT;i++)
- if(f__units[i].ufd != NULL
- && f__units[i].ufnm != NULL
- && !strcmp(f__units[i].ufnm,buf)) {
- p = &f__units[i];
- break;
- }
-#else
- x=f__inode(buf, &n);
- for(i=0,p=NULL;i<MXUNIT;i++)
- if(f__units[i].uinode==x
- && f__units[i].ufd!=NULL
- && f__units[i].udev == n) {
- p = &f__units[i];
- break;
- }
-#endif
- }
- else
- {
- byfile=0;
- if(a->inunit<MXUNIT && a->inunit>=0)
- {
- p= &f__units[a->inunit];
- }
- else
- {
- p=NULL;
- }
- }
- if(a->inex!=NULL)
- if(byfile && x != -1 || !byfile && p!=NULL)
- *a->inex=1;
- else *a->inex=0;
- if(a->inopen!=NULL)
- if(byfile) *a->inopen=(p!=NULL);
- else *a->inopen=(p!=NULL && p->ufd!=NULL);
- if(a->innum!=NULL) *a->innum= p-f__units;
- if(a->innamed!=NULL)
- if(byfile || p!=NULL && p->ufnm!=NULL)
- *a->innamed=1;
- else *a->innamed=0;
- if(a->inname!=NULL)
- if(byfile)
- b_char(buf,a->inname,a->innamlen);
- else if(p!=NULL && p->ufnm!=NULL)
- b_char(p->ufnm,a->inname,a->innamlen);
- if(a->inacc!=NULL && p!=NULL && p->ufd!=NULL)
- if(p->url)
- b_char("DIRECT",a->inacc,a->inacclen);
- else b_char("SEQUENTIAL",a->inacc,a->inacclen);
- if(a->inseq!=NULL)
- if(p!=NULL && p->url)
- b_char("NO",a->inseq,a->inseqlen);
- else b_char("YES",a->inseq,a->inseqlen);
- if(a->indir!=NULL)
- if(p==NULL || p->url)
- b_char("YES",a->indir,a->indirlen);
- else b_char("NO",a->indir,a->indirlen);
- if(a->infmt!=NULL)
- if(p!=NULL && p->ufmt==0)
- b_char("UNFORMATTED",a->infmt,a->infmtlen);
- else b_char("FORMATTED",a->infmt,a->infmtlen);
- if(a->inform!=NULL)
- if(p!=NULL && p->ufmt==0)
- b_char("NO",a->inform,a->informlen);
- else b_char("YES",a->inform,a->informlen);
- if(a->inunf)
- if(p!=NULL && p->ufmt==0)
- b_char("YES",a->inunf,a->inunflen);
- else if (p!=NULL) b_char("NO",a->inunf,a->inunflen);
- else b_char("UNKNOWN",a->inunf,a->inunflen);
- if(a->inrecl!=NULL && p!=NULL)
- *a->inrecl=p->url;
- if(a->innrec!=NULL && p!=NULL && p->url>0)
- *a->innrec=(ftnint)(FTELL(p->ufd)/p->url+1);
- if(a->inblank && p!=NULL && p->ufmt)
- if(p->ublnk)
- b_char("ZERO",a->inblank,a->inblanklen);
- else b_char("NULL",a->inblank,a->inblanklen);
- return(0);
-}
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/l_ge.c b/Build/source/utils/pmx/pmx-src/libf2c/l_ge.c
deleted file mode 100644
index a84f0ee4abc..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/l_ge.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern integer s_cmp();
-logical l_ge(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
-extern integer s_cmp(char *, char *, ftnlen, ftnlen);
-logical l_ge(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
-{
-return(s_cmp(a,b,la,lb) >= 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/l_gt.c b/Build/source/utils/pmx/pmx-src/libf2c/l_gt.c
deleted file mode 100644
index ae6950d1391..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/l_gt.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern integer s_cmp();
-logical l_gt(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
-extern integer s_cmp(char *, char *, ftnlen, ftnlen);
-logical l_gt(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
-{
-return(s_cmp(a,b,la,lb) > 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/l_le.c b/Build/source/utils/pmx/pmx-src/libf2c/l_le.c
deleted file mode 100644
index 625b49a9ea9..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/l_le.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern integer s_cmp();
-logical l_le(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
-extern integer s_cmp(char *, char *, ftnlen, ftnlen);
-logical l_le(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
-{
-return(s_cmp(a,b,la,lb) <= 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/l_lt.c b/Build/source/utils/pmx/pmx-src/libf2c/l_lt.c
deleted file mode 100644
index ab21b362de9..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/l_lt.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern integer s_cmp();
-logical l_lt(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
-extern integer s_cmp(char *, char *, ftnlen, ftnlen);
-logical l_lt(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
-{
-return(s_cmp(a,b,la,lb) < 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/lbitbits.c b/Build/source/utils/pmx/pmx-src/libf2c/lbitbits.c
deleted file mode 100644
index 5b6ccf72d0a..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/lbitbits.c
+++ /dev/null
@@ -1,68 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef LONGBITS
-#define LONGBITS 32
-#endif
-
- integer
-#ifdef KR_headers
-lbit_bits(a, b, len) integer a, b, len;
-#else
-lbit_bits(integer a, integer b, integer len)
-#endif
-{
- /* Assume 2's complement arithmetic */
-
- unsigned long x, y;
-
- x = (unsigned long) a;
- y = (unsigned long)-1L;
- x >>= b;
- y <<= len;
- return (integer)(x & ~y);
- }
-
- integer
-#ifdef KR_headers
-lbit_cshift(a, b, len) integer a, b, len;
-#else
-lbit_cshift(integer a, integer b, integer len)
-#endif
-{
- unsigned long x, y, z;
-
- x = (unsigned long)a;
- if (len <= 0) {
- if (len == 0)
- return 0;
- goto full_len;
- }
- if (len >= LONGBITS) {
- full_len:
- if (b >= 0) {
- b %= LONGBITS;
- return (integer)(x << b | x >> LONGBITS -b );
- }
- b = -b;
- b %= LONGBITS;
- return (integer)(x << LONGBITS - b | x >> b);
- }
- y = z = (unsigned long)-1;
- y <<= len;
- z &= ~y;
- y &= x;
- x &= z;
- if (b >= 0) {
- b %= len;
- return (integer)(y | z & (x << b | x >> len - b));
- }
- b = -b;
- b %= len;
- return (integer)(y | z & (x >> b | x << len - b));
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/lbitshft.c b/Build/source/utils/pmx/pmx-src/libf2c/lbitshft.c
deleted file mode 100644
index fbee94f1403..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/lbitshft.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- integer
-#ifdef KR_headers
-lbit_shift(a, b) integer a; integer b;
-#else
-lbit_shift(integer a, integer b)
-#endif
-{
- return b >= 0 ? a << b : (integer)((uinteger)a >> -b);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/lio.h b/Build/source/utils/pmx/pmx-src/libf2c/lio.h
deleted file mode 100644
index 012317206aa..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/lio.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/* copy of ftypes from the compiler */
-/* variable types
- * numeric assumptions:
- * int < reals < complexes
- * TYDREAL-TYREAL = TYDCOMPLEX-TYCOMPLEX
- */
-
-/* 0-10 retain their old (pre LOGICAL*1, etc.) */
-/* values to allow mixing old and new objects. */
-
-#define TYUNKNOWN 0
-#define TYADDR 1
-#define TYSHORT 2
-#define TYLONG 3
-#define TYREAL 4
-#define TYDREAL 5
-#define TYCOMPLEX 6
-#define TYDCOMPLEX 7
-#define TYLOGICAL 8
-#define TYCHAR 9
-#define TYSUBR 10
-#define TYINT1 11
-#define TYLOGICAL1 12
-#define TYLOGICAL2 13
-#ifdef Allow_TYQUAD
-#undef TYQUAD
-#define TYQUAD 14
-#endif
-
-#define LINTW 24
-#define LINE 80
-#define LLOGW 2
-#ifdef Old_list_output
-#define LLOW 1.0
-#define LHIGH 1.e9
-#define LEFMT " %# .8E"
-#define LFFMT " %# .9g"
-#else
-#define LGFMT "%.9G"
-#endif
-/* LEFBL 20 should suffice; 24 overcomes a NeXT bug. */
-#define LEFBL 24
-
-typedef union
-{
- char flchar;
- short flshort;
- ftnint flint;
-#ifdef Allow_TYQUAD
- longint fllongint;
-#endif
- real flreal;
- doublereal fldouble;
-} flex;
-extern int f__scale;
-#ifdef KR_headers
-extern int (*f__lioproc)(), (*l_getc)(), (*l_ungetc)();
-extern int l_read(), l_write();
-#else
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern int (*f__lioproc)(ftnint*, char*, ftnlen, ftnint);
-extern int l_write(ftnint*, char*, ftnlen, ftnint);
-extern void x_wsne(cilist*);
-extern int c_le(cilist*), (*l_getc)(void), (*l_ungetc)(int,FILE*);
-extern int l_read(ftnint*,char*,ftnlen,ftnint);
-extern integer e_rsle(void), e_wsle(void), s_wsne(cilist*);
-extern int z_rnew(void);
-#ifdef __cplusplus
- }
-#endif
-#endif
-extern ftnint L_len;
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/lread.c b/Build/source/utils/pmx/pmx-src/libf2c/lread.c
deleted file mode 100644
index 9636ae9c46e..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/lread.c
+++ /dev/null
@@ -1,803 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-
-/* Compile with -DF8X_NML_ELIDE_QUOTES to permit eliding quotation */
-/* marks in namelist input a la the Fortran 8X Draft published in */
-/* the May 1989 issue of Fortran Forum. */
-
-
-extern char *f__fmtbuf;
-
-#ifdef Allow_TYQUAD
-static longint f__llx;
-#endif
-
-#ifdef KR_headers
-extern double atof();
-extern char *malloc(), *realloc();
-int (*f__lioproc)(), (*l_getc)(), (*l_ungetc)();
-#else
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#endif
-
-#include "fmt.h"
-#include "lio.h"
-#include "ctype.h"
-#include "fp.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef KR_headers
-int (*f__lioproc)(ftnint*, char*, ftnlen, ftnint), (*l_getc)(void),
- (*l_ungetc)(int,FILE*);
-#endif
-
-int l_eof;
-
-#define isblnk(x) (f__ltab[x+1]&B)
-#define issep(x) (f__ltab[x+1]&SX)
-#define isapos(x) (f__ltab[x+1]&AX)
-#define isexp(x) (f__ltab[x+1]&EX)
-#define issign(x) (f__ltab[x+1]&SG)
-#define iswhit(x) (f__ltab[x+1]&WH)
-#define SX 1
-#define B 2
-#define AX 4
-#define EX 8
-#define SG 16
-#define WH 32
-char f__ltab[128+1] = { /* offset one for EOF */
- 0,
- 0,0,AX,0,0,0,0,0,0,WH|B,SX|WH,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- SX|B|WH,0,AX,0,0,0,0,AX,0,0,0,SG,SX,SG,0,SX,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,EX,EX,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- AX,0,0,0,EX,EX,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-};
-
-#ifdef ungetc
- static int
-#ifdef KR_headers
-un_getc(x,f__cf) int x; FILE *f__cf;
-#else
-un_getc(int x, FILE *f__cf)
-#endif
-{ return ungetc(x,f__cf); }
-#else
-#define un_getc ungetc
-#ifdef KR_headers
- extern int ungetc();
-#endif
-#endif
-
- int
-t_getc(Void)
-{ int ch;
- if(f__curunit->uend) return(EOF);
- if((ch=getc(f__cf))!=EOF) return(ch);
- if(feof(f__cf))
- f__curunit->uend = l_eof = 1;
- return(EOF);
-}
-integer e_rsle(Void)
-{
- int ch;
- if(f__curunit->uend) return(0);
- while((ch=t_getc())!='\n')
- if (ch == EOF) {
- if(feof(f__cf))
- f__curunit->uend = l_eof = 1;
- return EOF;
- }
- return(0);
-}
-
-flag f__lquit;
-int f__lcount,f__ltype,nml_read;
-char *f__lchar;
-double f__lx,f__ly;
-#define ERR(x) if(n=(x)) return(n)
-#define GETC(x) (x=(*l_getc)())
-#define Ungetc(x,y) (*l_ungetc)(x,y)
-
- static int
-#ifdef KR_headers
-l_R(poststar, reqint) int poststar, reqint;
-#else
-l_R(int poststar, int reqint)
-#endif
-{
- char s[FMAX+EXPMAXDIGS+4];
- register int ch;
- register char *sp, *spe, *sp1;
- long e, exp;
- int havenum, havestar, se;
-
- if (!poststar) {
- if (f__lcount > 0)
- return(0);
- f__lcount = 1;
- }
-#ifdef Allow_TYQUAD
- f__llx = 0;
-#endif
- f__ltype = 0;
- exp = 0;
- havestar = 0;
-retry:
- sp1 = sp = s;
- spe = sp + FMAX;
- havenum = 0;
-
- switch(GETC(ch)) {
- case '-': *sp++ = ch; sp1++; spe++;
- case '+':
- GETC(ch);
- }
- while(ch == '0') {
- ++havenum;
- GETC(ch);
- }
- while(isdigit(ch)) {
- if (sp < spe) *sp++ = ch;
- else ++exp;
- GETC(ch);
- }
- if (ch == '*' && !poststar) {
- if (sp == sp1 || exp || *s == '-') {
- errfl(f__elist->cierr,112,"bad repetition count");
- }
- poststar = havestar = 1;
- *sp = 0;
- f__lcount = atoi(s);
- goto retry;
- }
- if (ch == '.') {
-#ifndef ALLOW_FLOAT_IN_INTEGER_LIST_INPUT
- if (reqint)
- errfl(f__elist->cierr,115,"invalid integer");
-#endif
- GETC(ch);
- if (sp == sp1)
- while(ch == '0') {
- ++havenum;
- --exp;
- GETC(ch);
- }
- while(isdigit(ch)) {
- if (sp < spe)
- { *sp++ = ch; --exp; }
- GETC(ch);
- }
- }
- havenum += sp - sp1;
- se = 0;
- if (issign(ch))
- goto signonly;
- if (havenum && isexp(ch)) {
-#ifndef ALLOW_FLOAT_IN_INTEGER_LIST_INPUT
- if (reqint)
- errfl(f__elist->cierr,115,"invalid integer");
-#endif
- GETC(ch);
- if (issign(ch)) {
-signonly:
- if (ch == '-') se = 1;
- GETC(ch);
- }
- if (!isdigit(ch)) {
-bad:
- errfl(f__elist->cierr,112,"exponent field");
- }
-
- e = ch - '0';
- while(isdigit(GETC(ch))) {
- e = 10*e + ch - '0';
- if (e > EXPMAX)
- goto bad;
- }
- if (se)
- exp -= e;
- else
- exp += e;
- }
- (void) Ungetc(ch, f__cf);
- if (sp > sp1) {
- ++havenum;
- while(*--sp == '0')
- ++exp;
- if (exp)
- sprintf(sp+1, "e%ld", exp);
- else
- sp[1] = 0;
- f__lx = atof(s);
-#ifdef Allow_TYQUAD
- if (reqint&2 && (se = sp - sp1 + exp) > 14 && se < 20) {
- /* Assuming 64-bit longint and 32-bit long. */
- if (exp < 0)
- sp += exp;
- if (sp1 <= sp) {
- f__llx = *sp1 - '0';
- while(++sp1 <= sp)
- f__llx = 10*f__llx + (*sp1 - '0');
- }
- while(--exp >= 0)
- f__llx *= 10;
- if (*s == '-')
- f__llx = -f__llx;
- }
-#endif
- }
- else
- f__lx = 0.;
- if (havenum)
- f__ltype = TYLONG;
- else
- switch(ch) {
- case ',':
- case '/':
- break;
- default:
- if (havestar && ( ch == ' '
- ||ch == '\t'
- ||ch == '\n'))
- break;
- if (nml_read > 1) {
- f__lquit = 2;
- return 0;
- }
- errfl(f__elist->cierr,112,"invalid number");
- }
- return 0;
- }
-
- static int
-#ifdef KR_headers
-rd_count(ch) register int ch;
-#else
-rd_count(register int ch)
-#endif
-{
- if (ch < '0' || ch > '9')
- return 1;
- f__lcount = ch - '0';
- while(GETC(ch) >= '0' && ch <= '9')
- f__lcount = 10*f__lcount + ch - '0';
- Ungetc(ch,f__cf);
- return f__lcount <= 0;
- }
-
- static int
-l_C(Void)
-{ int ch, nml_save;
- double lz;
- if(f__lcount>0) return(0);
- f__ltype=0;
- GETC(ch);
- if(ch!='(')
- {
- if (nml_read > 1 && (ch < '0' || ch > '9')) {
- Ungetc(ch,f__cf);
- f__lquit = 2;
- return 0;
- }
- if (rd_count(ch))
- if(!f__cf || !feof(f__cf))
- errfl(f__elist->cierr,112,"complex format");
- else
- err(f__elist->cierr,(EOF),"lread");
- if(GETC(ch)!='*')
- {
- if(!f__cf || !feof(f__cf))
- errfl(f__elist->cierr,112,"no star");
- else
- err(f__elist->cierr,(EOF),"lread");
- }
- if(GETC(ch)!='(')
- { Ungetc(ch,f__cf);
- return(0);
- }
- }
- else
- f__lcount = 1;
- while(iswhit(GETC(ch)));
- Ungetc(ch,f__cf);
- nml_save = nml_read;
- nml_read = 0;
- if (ch = l_R(1,0))
- return ch;
- if (!f__ltype)
- errfl(f__elist->cierr,112,"no real part");
- lz = f__lx;
- while(iswhit(GETC(ch)));
- if(ch!=',')
- { (void) Ungetc(ch,f__cf);
- errfl(f__elist->cierr,112,"no comma");
- }
- while(iswhit(GETC(ch)));
- (void) Ungetc(ch,f__cf);
- if (ch = l_R(1,0))
- return ch;
- if (!f__ltype)
- errfl(f__elist->cierr,112,"no imaginary part");
- while(iswhit(GETC(ch)));
- if(ch!=')') errfl(f__elist->cierr,112,"no )");
- f__ly = f__lx;
- f__lx = lz;
-#ifdef Allow_TYQUAD
- f__llx = 0;
-#endif
- nml_read = nml_save;
- return(0);
-}
-
- static char nmLbuf[256], *nmL_next;
- static int (*nmL_getc_save)(Void);
-#ifdef KR_headers
- static int (*nmL_ungetc_save)(/* int, FILE* */);
-#else
- static int (*nmL_ungetc_save)(int, FILE*);
-#endif
-
- static int
-nmL_getc(Void)
-{
- int rv;
- if (rv = *nmL_next++)
- return rv;
- l_getc = nmL_getc_save;
- l_ungetc = nmL_ungetc_save;
- return (*l_getc)();
- }
-
- static int
-#ifdef KR_headers
-nmL_ungetc(x, f) int x; FILE *f;
-#else
-nmL_ungetc(int x, FILE *f)
-#endif
-{
- f = f; /* banish non-use warning */
- return *--nmL_next = x;
- }
-
- static int
-#ifdef KR_headers
-Lfinish(ch, dot, rvp) int ch, dot, *rvp;
-#else
-Lfinish(int ch, int dot, int *rvp)
-#endif
-{
- char *s, *se;
- static char what[] = "namelist input";
-
- s = nmLbuf + 2;
- se = nmLbuf + sizeof(nmLbuf) - 1;
- *s++ = ch;
- while(!issep(GETC(ch)) && ch!=EOF) {
- if (s >= se) {
- nmLbuf_ovfl:
- return *rvp = err__fl(f__elist->cierr,131,what);
- }
- *s++ = ch;
- if (ch != '=')
- continue;
- if (dot)
- return *rvp = err__fl(f__elist->cierr,112,what);
- got_eq:
- *s = 0;
- nmL_getc_save = l_getc;
- l_getc = nmL_getc;
- nmL_ungetc_save = l_ungetc;
- l_ungetc = nmL_ungetc;
- nmLbuf[1] = *(nmL_next = nmLbuf) = ',';
- *rvp = f__lcount = 0;
- return 1;
- }
- if (dot)
- goto done;
- for(;;) {
- if (s >= se)
- goto nmLbuf_ovfl;
- *s++ = ch;
- if (!isblnk(ch))
- break;
- if (GETC(ch) == EOF)
- goto done;
- }
- if (ch == '=')
- goto got_eq;
- done:
- Ungetc(ch, f__cf);
- return 0;
- }
-
- static int
-l_L(Void)
-{
- int ch, rv, sawdot;
-
- if(f__lcount>0)
- return(0);
- f__lcount = 1;
- f__ltype=0;
- GETC(ch);
- if(isdigit(ch))
- {
- rd_count(ch);
- if(GETC(ch)!='*')
- if(!f__cf || !feof(f__cf))
- errfl(f__elist->cierr,112,"no star");
- else
- err(f__elist->cierr,(EOF),"lread");
- GETC(ch);
- }
- sawdot = 0;
- if(ch == '.') {
- sawdot = 1;
- GETC(ch);
- }
- switch(ch)
- {
- case 't':
- case 'T':
- if (nml_read && Lfinish(ch, sawdot, &rv))
- return rv;
- f__lx=1;
- break;
- case 'f':
- case 'F':
- if (nml_read && Lfinish(ch, sawdot, &rv))
- return rv;
- f__lx=0;
- break;
- default:
- if(isblnk(ch) || issep(ch) || ch==EOF)
- { (void) Ungetc(ch,f__cf);
- return(0);
- }
- if (nml_read > 1) {
- Ungetc(ch,f__cf);
- f__lquit = 2;
- return 0;
- }
- errfl(f__elist->cierr,112,"logical");
- }
- f__ltype=TYLONG;
- while(!issep(GETC(ch)) && ch!=EOF);
- Ungetc(ch, f__cf);
- return(0);
-}
-
-#define BUFSIZE 128
-
- static int
-l_CHAR(Void)
-{ int ch,size,i;
- static char rafail[] = "realloc failure";
- char quote,*p;
- if(f__lcount>0) return(0);
- f__ltype=0;
- if(f__lchar!=NULL) free(f__lchar);
- size=BUFSIZE;
- p=f__lchar = (char *)malloc((unsigned int)size);
- if(f__lchar == NULL)
- errfl(f__elist->cierr,113,"no space");
-
- GETC(ch);
- if(isdigit(ch)) {
- /* allow Fortran 8x-style unquoted string... */
- /* either find a repetition count or the string */
- f__lcount = ch - '0';
- *p++ = ch;
- for(i = 1;;) {
- switch(GETC(ch)) {
- case '*':
- if (f__lcount == 0) {
- f__lcount = 1;
-#ifndef F8X_NML_ELIDE_QUOTES
- if (nml_read)
- goto no_quote;
-#endif
- goto noquote;
- }
- p = f__lchar;
- goto have_lcount;
- case ',':
- case ' ':
- case '\t':
- case '\n':
- case '/':
- Ungetc(ch,f__cf);
- /* no break */
- case EOF:
- f__lcount = 1;
- f__ltype = TYCHAR;
- return *p = 0;
- }
- if (!isdigit(ch)) {
- f__lcount = 1;
-#ifndef F8X_NML_ELIDE_QUOTES
- if (nml_read) {
- no_quote:
- errfl(f__elist->cierr,112,
- "undelimited character string");
- }
-#endif
- goto noquote;
- }
- *p++ = ch;
- f__lcount = 10*f__lcount + ch - '0';
- if (++i == size) {
- f__lchar = (char *)realloc(f__lchar,
- (unsigned int)(size += BUFSIZE));
- if(f__lchar == NULL)
- errfl(f__elist->cierr,113,rafail);
- p = f__lchar + i;
- }
- }
- }
- else (void) Ungetc(ch,f__cf);
- have_lcount:
- if(GETC(ch)=='\'' || ch=='"') quote=ch;
- else if(isblnk(ch) || (issep(ch) && ch != '\n') || ch==EOF) {
- Ungetc(ch,f__cf);
- return 0;
- }
-#ifndef F8X_NML_ELIDE_QUOTES
- else if (nml_read > 1) {
- Ungetc(ch,f__cf);
- f__lquit = 2;
- return 0;
- }
-#endif
- else {
- /* Fortran 8x-style unquoted string */
- *p++ = ch;
- for(i = 1;;) {
- switch(GETC(ch)) {
- case ',':
- case ' ':
- case '\t':
- case '\n':
- case '/':
- Ungetc(ch,f__cf);
- /* no break */
- case EOF:
- f__ltype = TYCHAR;
- return *p = 0;
- }
- noquote:
- *p++ = ch;
- if (++i == size) {
- f__lchar = (char *)realloc(f__lchar,
- (unsigned int)(size += BUFSIZE));
- if(f__lchar == NULL)
- errfl(f__elist->cierr,113,rafail);
- p = f__lchar + i;
- }
- }
- }
- f__ltype=TYCHAR;
- for(i=0;;)
- { while(GETC(ch)!=quote && ch!='\n'
- && ch!=EOF && ++i<size) *p++ = ch;
- if(i==size)
- {
- newone:
- f__lchar= (char *)realloc(f__lchar,
- (unsigned int)(size += BUFSIZE));
- if(f__lchar == NULL)
- errfl(f__elist->cierr,113,rafail);
- p=f__lchar+i-1;
- *p++ = ch;
- }
- else if(ch==EOF) return(EOF);
- else if(ch=='\n')
- { if(*(p-1) != '\\') continue;
- i--;
- p--;
- if(++i<size) *p++ = ch;
- else goto newone;
- }
- else if(GETC(ch)==quote)
- { if(++i<size) *p++ = ch;
- else goto newone;
- }
- else
- { (void) Ungetc(ch,f__cf);
- *p = 0;
- return(0);
- }
- }
-}
-
- int
-#ifdef KR_headers
-c_le(a) cilist *a;
-#else
-c_le(cilist *a)
-#endif
-{
- if(!f__init)
- f_init();
- f__fmtbuf="list io";
- f__curunit = &f__units[a->ciunit];
- if(a->ciunit>=MXUNIT || a->ciunit<0)
- err(a->cierr,101,"stler");
- f__scale=f__recpos=0;
- f__elist=a;
- if(f__curunit->ufd==NULL && fk_open(SEQ,FMT,a->ciunit))
- err(a->cierr,102,"lio");
- f__cf=f__curunit->ufd;
- if(!f__curunit->ufmt) err(a->cierr,103,"lio")
- return(0);
-}
-
- int
-#ifdef KR_headers
-l_read(number,ptr,len,type) ftnint *number,type; char *ptr; ftnlen len;
-#else
-l_read(ftnint *number, char *ptr, ftnlen len, ftnint type)
-#endif
-{
-#define Ptr ((flex *)ptr)
- int i,n,ch;
- doublereal *yy;
- real *xx;
- for(i=0;i<*number;i++)
- {
- if(f__lquit) return(0);
- if(l_eof)
- err(f__elist->ciend, EOF, "list in")
- if(f__lcount == 0) {
- f__ltype = 0;
- for(;;) {
- GETC(ch);
- switch(ch) {
- case EOF:
- err(f__elist->ciend,(EOF),"list in")
- case ' ':
- case '\t':
- case '\n':
- continue;
- case '/':
- f__lquit = 1;
- goto loopend;
- case ',':
- f__lcount = 1;
- goto loopend;
- default:
- (void) Ungetc(ch, f__cf);
- goto rddata;
- }
- }
- }
- rddata:
- switch((int)type)
- {
- case TYINT1:
- case TYSHORT:
- case TYLONG:
-#ifndef ALLOW_FLOAT_IN_INTEGER_LIST_INPUT
- ERR(l_R(0,1));
- break;
-#endif
- case TYREAL:
- case TYDREAL:
- ERR(l_R(0,0));
- break;
-#ifdef TYQUAD
- case TYQUAD:
- n = l_R(0,2);
- if (n)
- return n;
- break;
-#endif
- case TYCOMPLEX:
- case TYDCOMPLEX:
- ERR(l_C());
- break;
- case TYLOGICAL1:
- case TYLOGICAL2:
- case TYLOGICAL:
- ERR(l_L());
- break;
- case TYCHAR:
- ERR(l_CHAR());
- break;
- }
- while (GETC(ch) == ' ' || ch == '\t');
- if (ch != ',' || f__lcount > 1)
- Ungetc(ch,f__cf);
- loopend:
- if(f__lquit) return(0);
- if(f__cf && ferror(f__cf)) {
- clearerr(f__cf);
- errfl(f__elist->cierr,errno,"list in");
- }
- if(f__ltype==0) goto bump;
- switch((int)type)
- {
- case TYINT1:
- case TYLOGICAL1:
- Ptr->flchar = (char)f__lx;
- break;
- case TYLOGICAL2:
- case TYSHORT:
- Ptr->flshort = (short)f__lx;
- break;
- case TYLOGICAL:
- case TYLONG:
- Ptr->flint = (ftnint)f__lx;
- break;
-#ifdef Allow_TYQUAD
- case TYQUAD:
- if (!(Ptr->fllongint = f__llx))
- Ptr->fllongint = f__lx;
- break;
-#endif
- case TYREAL:
- Ptr->flreal=f__lx;
- break;
- case TYDREAL:
- Ptr->fldouble=f__lx;
- break;
- case TYCOMPLEX:
- xx=(real *)ptr;
- *xx++ = f__lx;
- *xx = f__ly;
- break;
- case TYDCOMPLEX:
- yy=(doublereal *)ptr;
- *yy++ = f__lx;
- *yy = f__ly;
- break;
- case TYCHAR:
- b_char(f__lchar,ptr,len);
- break;
- }
- bump:
- if(f__lcount>0) f__lcount--;
- ptr += len;
- if (nml_read)
- nml_read++;
- }
- return(0);
-#undef Ptr
-}
-#ifdef KR_headers
-integer s_rsle(a) cilist *a;
-#else
-integer s_rsle(cilist *a)
-#endif
-{
- int n;
-
- f__reading=1;
- f__external=1;
- f__formatted=1;
- if(n=c_le(a)) return(n);
- f__lioproc = l_read;
- f__lquit = 0;
- f__lcount = 0;
- l_eof = 0;
- if(f__curunit->uwrt && f__nowreading(f__curunit))
- err(a->cierr,errno,"read start");
- if(f__curunit->uend)
- err(f__elist->ciend,(EOF),"read start");
- l_getc = t_getc;
- l_ungetc = un_getc;
- f__doend = xrd_SL;
- return(0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/lwrite.c b/Build/source/utils/pmx/pmx-src/libf2c/lwrite.c
deleted file mode 100644
index 9e0d93deb50..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/lwrite.c
+++ /dev/null
@@ -1,314 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "fmt.h"
-#include "lio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-ftnint L_len;
-int f__Aquote;
-
- static VOID
-donewrec(Void)
-{
- if (f__recpos)
- (*f__donewrec)();
- }
-
- static VOID
-#ifdef KR_headers
-lwrt_I(n) longint n;
-#else
-lwrt_I(longint n)
-#endif
-{
- char *p;
- int ndigit, sign;
-
- p = f__icvt(n, &ndigit, &sign, 10);
- if(f__recpos + ndigit >= L_len)
- donewrec();
- PUT(' ');
- if (sign)
- PUT('-');
- while(*p)
- PUT(*p++);
-}
- static VOID
-#ifdef KR_headers
-lwrt_L(n, len) ftnint n; ftnlen len;
-#else
-lwrt_L(ftnint n, ftnlen len)
-#endif
-{
- if(f__recpos+LLOGW>=L_len)
- donewrec();
- wrt_L((Uint *)&n,LLOGW, len);
-}
- static VOID
-#ifdef KR_headers
-lwrt_A(p,len) char *p; ftnlen len;
-#else
-lwrt_A(char *p, ftnlen len)
-#endif
-{
- int a;
- char *p1, *pe;
-
- a = 0;
- pe = p + len;
- if (f__Aquote) {
- a = 3;
- if (len > 1 && p[len-1] == ' ') {
- while(--len > 1 && p[len-1] == ' ');
- pe = p + len;
- }
- p1 = p;
- while(p1 < pe)
- if (*p1++ == '\'')
- a++;
- }
- if(f__recpos+len+a >= L_len)
- donewrec();
- if (a
-#ifndef OMIT_BLANK_CC
- || !f__recpos
-#endif
- )
- PUT(' ');
- if (a) {
- PUT('\'');
- while(p < pe) {
- if (*p == '\'')
- PUT('\'');
- PUT(*p++);
- }
- PUT('\'');
- }
- else
- while(p < pe)
- PUT(*p++);
-}
-
- static int
-#ifdef KR_headers
-l_g(buf, n) char *buf; double n;
-#else
-l_g(char *buf, double n)
-#endif
-{
-#ifdef Old_list_output
- doublereal absn;
- char *fmt;
-
- absn = n;
- if (absn < 0)
- absn = -absn;
- fmt = LLOW <= absn && absn < LHIGH ? LFFMT : LEFMT;
-#ifdef USE_STRLEN
- sprintf(buf, fmt, n);
- return strlen(buf);
-#else
- return sprintf(buf, fmt, n);
-#endif
-
-#else
- register char *b, c, c1;
-
- b = buf;
- *b++ = ' ';
- if (n < 0) {
- *b++ = '-';
- n = -n;
- }
- else
- *b++ = ' ';
- if (n == 0) {
-#ifdef SIGNED_ZEROS
- if (signbit_f2c(&n))
- *b++ = '-';
-#endif
- *b++ = '0';
- *b++ = '.';
- *b = 0;
- goto f__ret;
- }
- sprintf(b, LGFMT, n);
- switch(*b) {
-#ifndef WANT_LEAD_0
- case '0':
- while(b[0] = b[1])
- b++;
- break;
-#endif
- case 'i':
- case 'I':
- /* Infinity */
- case 'n':
- case 'N':
- /* NaN */
- while(*++b);
- break;
-
- default:
- /* Fortran 77 insists on having a decimal point... */
- for(;; b++)
- switch(*b) {
- case 0:
- *b++ = '.';
- *b = 0;
- goto f__ret;
- case '.':
- while(*++b);
- goto f__ret;
- case 'E':
- for(c1 = '.', c = 'E'; *b = c1;
- c1 = c, c = *++b);
- goto f__ret;
- }
- }
- f__ret:
- return b - buf;
-#endif
- }
-
- static VOID
-#ifdef KR_headers
-l_put(s) register char *s;
-#else
-l_put(register char *s)
-#endif
-{
-#ifdef KR_headers
- register void (*pn)() = f__putn;
-#else
- register void (*pn)(int) = f__putn;
-#endif
- register int c;
-
- while(c = *s++)
- (*pn)(c);
- }
-
- static VOID
-#ifdef KR_headers
-lwrt_F(n) double n;
-#else
-lwrt_F(double n)
-#endif
-{
- char buf[LEFBL];
-
- if(f__recpos + l_g(buf,n) >= L_len)
- donewrec();
- l_put(buf);
-}
- static VOID
-#ifdef KR_headers
-lwrt_C(a,b) double a,b;
-#else
-lwrt_C(double a, double b)
-#endif
-{
- char *ba, *bb, bufa[LEFBL], bufb[LEFBL];
- int al, bl;
-
- al = l_g(bufa, a);
- for(ba = bufa; *ba == ' '; ba++)
- --al;
- bl = l_g(bufb, b) + 1; /* intentionally high by 1 */
- for(bb = bufb; *bb == ' '; bb++)
- --bl;
- if(f__recpos + al + bl + 3 >= L_len)
- donewrec();
-#ifdef OMIT_BLANK_CC
- else
-#endif
- PUT(' ');
- PUT('(');
- l_put(ba);
- PUT(',');
- if (f__recpos + bl >= L_len) {
- (*f__donewrec)();
-#ifndef OMIT_BLANK_CC
- PUT(' ');
-#endif
- }
- l_put(bb);
- PUT(')');
-}
-
- int
-#ifdef KR_headers
-l_write(number,ptr,len,type) ftnint *number,type; char *ptr; ftnlen len;
-#else
-l_write(ftnint *number, char *ptr, ftnlen len, ftnint type)
-#endif
-{
-#define Ptr ((flex *)ptr)
- int i;
- longint x;
- double y,z;
- real *xx;
- doublereal *yy;
- for(i=0;i< *number; i++)
- {
- switch((int)type)
- {
- default: f__fatal(117,"unknown type in lio");
- case TYINT1:
- x = Ptr->flchar;
- goto xint;
- case TYSHORT:
- x=Ptr->flshort;
- goto xint;
-#ifdef Allow_TYQUAD
- case TYQUAD:
- x = Ptr->fllongint;
- goto xint;
-#endif
- case TYLONG:
- x=Ptr->flint;
- xint: lwrt_I(x);
- break;
- case TYREAL:
- y=Ptr->flreal;
- goto xfloat;
- case TYDREAL:
- y=Ptr->fldouble;
- xfloat: lwrt_F(y);
- break;
- case TYCOMPLEX:
- xx= &Ptr->flreal;
- y = *xx++;
- z = *xx;
- goto xcomplex;
- case TYDCOMPLEX:
- yy = &Ptr->fldouble;
- y= *yy++;
- z = *yy;
- xcomplex:
- lwrt_C(y,z);
- break;
- case TYLOGICAL1:
- x = Ptr->flchar;
- goto xlog;
- case TYLOGICAL2:
- x = Ptr->flshort;
- goto xlog;
- case TYLOGICAL:
- x = Ptr->flint;
- xlog: lwrt_L(Ptr->flint, len);
- break;
- case TYCHAR:
- lwrt_A(ptr,len);
- break;
- }
- ptr += len;
- }
- return(0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/main.c b/Build/source/utils/pmx/pmx-src/libf2c/main.c
deleted file mode 100644
index 45397490471..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/main.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/* STARTUP PROCEDURE FOR UNIX FORTRAN PROGRAMS */
-
-#include "stdio.h"
-#include "signal1.h"
-
-#ifndef SIGIOT
-#ifdef SIGABRT
-#define SIGIOT SIGABRT
-#endif
-#endif
-
-#ifndef KR_headers
-#undef VOID
-#include "stdlib.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#endif
-
-#ifndef VOID
-#define VOID void
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef NO__STDC
-#define ONEXIT onexit
-extern VOID f_exit();
-#else
-#ifndef KR_headers
-extern void f_exit(void);
-#ifndef NO_ONEXIT
-#define ONEXIT atexit
-extern int atexit(void (*)(void));
-#endif
-#else
-#ifndef NO_ONEXIT
-#define ONEXIT onexit
-extern VOID f_exit();
-#endif
-#endif
-#endif
-
-#ifdef KR_headers
-extern VOID f_init(), sig_die();
-extern int MAIN__();
-#define Int /* int */
-#else
-extern void f_init(void), sig_die(char*, int);
-extern int MAIN__(void);
-#define Int int
-#endif
-
-static VOID sigfdie(Sigarg)
-{
-Use_Sigarg;
-sig_die("Floating Exception", 1);
-}
-
-
-static VOID sigidie(Sigarg)
-{
-Use_Sigarg;
-sig_die("IOT Trap", 1);
-}
-
-#ifdef SIGQUIT
-static VOID sigqdie(Sigarg)
-{
-Use_Sigarg;
-sig_die("Quit signal", 1);
-}
-#endif
-
-
-static VOID sigindie(Sigarg)
-{
-Use_Sigarg;
-sig_die("Interrupt", 0);
-}
-
-static VOID sigtdie(Sigarg)
-{
-Use_Sigarg;
-sig_die("Killed", 0);
-}
-
-#ifdef SIGTRAP
-static VOID sigtrdie(Sigarg)
-{
-Use_Sigarg;
-sig_die("Trace trap", 1);
-}
-#endif
-
-
-int xargc;
-char **xargv;
-
-#ifdef __cplusplus
- }
-#endif
-
-#ifdef KR_headers
-main(argc, argv) int argc; char **argv;
-#else
-main(int argc, char **argv)
-#endif
-{
-xargc = argc;
-xargv = argv;
-signal1(SIGFPE, sigfdie); /* ignore underflow, enable overflow */
-#ifdef SIGIOT
-signal1(SIGIOT, sigidie);
-#endif
-#ifdef SIGTRAP
-signal1(SIGTRAP, sigtrdie);
-#endif
-#ifdef SIGQUIT
-if(signal1(SIGQUIT,sigqdie) == SIG_IGN)
- signal1(SIGQUIT, SIG_IGN);
-#endif
-if(signal1(SIGINT, sigindie) == SIG_IGN)
- signal1(SIGINT, SIG_IGN);
-signal1(SIGTERM,sigtdie);
-
-#ifdef pdp11
- ldfps(01200); /* detect overflow as an exception */
-#endif
-
-f_init();
-#ifndef NO_ONEXIT
-ONEXIT(f_exit);
-#endif
-MAIN__();
-#ifdef NO_ONEXIT
-f_exit();
-#endif
-exit(0); /* exit(0) rather than return(0) to bypass Cray bug */
-return 0; /* For compilers that complain of missing return values; */
- /* others will complain that this is unreachable code. */
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/open.c b/Build/source/utils/pmx/pmx-src/libf2c/open.c
deleted file mode 100644
index 8695deb289c..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/open.c
+++ /dev/null
@@ -1,418 +0,0 @@
-#ifdef _WIN32
-
-/* On Windows, replace tmpfile() by _cairo_win_tmpfile() defined as follows,
- * and presumably more secure than mktemp().
-*/
-
-/* _cairo_win_tmpfile (void) - replace tmpfile() in Windows
- * extracted from cairo-misc.c in cairo - a vector graphics library
- * The functiion name is changed from
- * _cairo_win32_tmpfile (void) to
- * _cairo_win_tmpfile (void)
- *
- *
- * Copyright 2002 University of Southern California
- * Copyright 2005 Red Hat, Inc.
- * Copyright 2007 Adrian Johnson
- *
- * This library is free software; you can redistribute it and/or
- * modify it either under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation
- * (the "LGPL") or, at your option, under the terms of the Mozilla
- * Public License Version 1.1 (the "MPL"). If you do not alter this
- * notice, a recipient may use your version of this file under either
- * the MPL or the LGPL.
- *
- * You should have received a copy of the LGPL along with this library
- * in the file COPYING-LGPL-2.1; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
- * You should have received a copy of the MPL along with this library
- * in the file COPYING-MPL-1.1
- *
- * The contents of this file are subject to the Mozilla Public License
- * Version 1.1 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
- * OF ANY KIND, either express or implied. See the LGPL or the MPL for
- * the specific language governing rights and limitations.
- *
- * The Original Code is the cairo graphics library.
- *
- * The Initial Developer of the Original Code is University of Southern
- * California.
- *
- * Contributor(s):
- * Carl D. Worth <cworth@cworth.org>
- * Adrian Johnson <ajohnson@redneon.com>
- */
-
-#include <stdio.h>
-#define WIN32_LEAN_AND_MEAN
-/* We require Windows 2000 features such as ETO_PDY */
-#if !defined(WINVER) || (WINVER < 0x0500)
-# define WINVER 0x0500
-#endif
-#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500)
-# define _WIN32_WINNT 0x0500
-#endif
-
-#include <windows.h>
-#include <io.h>
-
-/* tmpfile() replacement for Windows.
- *
- * On Windows tmpfile() creates the file in the root directory. This
- * may fail due to unsufficient privileges. However, this isn't a
- * problem on Windows CE so we don't use it there.
- */
-FILE *
-_cairo_win_tmpfile (void)
-{
- DWORD path_len;
- WCHAR path_name[MAX_PATH + 1];
- WCHAR file_name[MAX_PATH + 1];
- HANDLE handle;
- int fd;
- FILE *fp;
-
- path_len = GetTempPathW (MAX_PATH, path_name);
- if (path_len <= 0 || path_len >= MAX_PATH)
- return NULL;
-
- if (GetTempFileNameW (path_name, L"ps_", 0, file_name) == 0)
- return NULL;
-
- handle = CreateFileW (file_name,
- GENERIC_READ | GENERIC_WRITE,
- 0,
- NULL,
- CREATE_ALWAYS,
- FILE_ATTRIBUTE_NORMAL | FILE_FLAG_DELETE_ON_CLOSE,
- NULL);
- if (handle == INVALID_HANDLE_VALUE) {
- DeleteFileW (file_name);
- return NULL;
- }
-
- fd = _open_osfhandle((intptr_t) handle, 0);
- if (fd < 0) {
- CloseHandle (handle);
- return NULL;
- }
-
- fp = _fdopen(fd, "w+b");
- if (fp == NULL) {
- _close(fd);
- return NULL;
- }
-
- return fp;
-}
-
-#define tmpfile _cairo_win_tmpfile
-#endif /* _WIN32 */
-
-#include "f2c.h"
-#include "fio.h"
-#include "string.h"
-#ifndef NON_POSIX_STDIO
-#ifdef MSDOS
-#include "io.h"
-#else
-#include "unistd.h" /* for access */
-#endif
-#endif
-
-#ifdef KR_headers
-extern char *malloc();
-#ifdef NON_ANSI_STDIO
-extern char *mktemp();
-#endif
-extern integer f_clos();
-#else
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern int f__canseek(FILE*);
-extern integer f_clos(cllist*);
-#endif
-
-#ifdef NON_ANSI_RW_MODES
-char *f__r_mode[2] = {"r", "r"};
-char *f__w_mode[4] = {"w", "w", "r+w", "r+w"};
-#elif defined(WIN32)
-char *f__r_mode[2] = {"rb", "rb"};
-char *f__w_mode[4] = {"wb", "wb", "rb+", "rb+"};
-#else
-char *f__r_mode[2] = {"rb", "r"};
-char *f__w_mode[4] = {"wb", "w", "r+b", "r+"};
-#endif
-
- static char f__buf0[400], *f__buf = f__buf0;
- int f__buflen = (int)sizeof(f__buf0);
-
- static void
-#ifdef KR_headers
-f__bufadj(n, c) int n, c;
-#else
-f__bufadj(int n, int c)
-#endif
-{
- unsigned int len;
- char *nbuf, *s, *t, *te;
-
- if (f__buf == f__buf0)
- f__buflen = 1024;
- while(f__buflen <= n)
- f__buflen <<= 1;
- len = (unsigned int)f__buflen;
- if (len != f__buflen || !(nbuf = (char*)malloc(len)))
- f__fatal(113, "malloc failure");
- s = nbuf;
- t = f__buf;
- te = t + c;
- while(t < te)
- *s++ = *t++;
- if (f__buf != f__buf0)
- free(f__buf);
- f__buf = nbuf;
- }
-
- int
-#ifdef KR_headers
-f__putbuf(c) int c;
-#else
-f__putbuf(int c)
-#endif
-{
- char *s, *se;
- int n;
-
- if (f__hiwater > f__recpos)
- f__recpos = f__hiwater;
- n = f__recpos + 1;
- if (n >= f__buflen)
- f__bufadj(n, f__recpos);
- s = f__buf;
- se = s + f__recpos;
- if (c)
- *se++ = c;
- *se = 0;
- for(;;) {
- fputs(s, f__cf);
- s += strlen(s);
- if (s >= se)
- break; /* normally happens the first time */
- putc(*s++, f__cf);
- }
- return 0;
- }
-
- void
-#ifdef KR_headers
-x_putc(c)
-#else
-x_putc(int c)
-#endif
-{
- if (f__recpos >= f__buflen)
- f__bufadj(f__recpos, f__buflen);
- f__buf[f__recpos++] = c;
- }
-
-#define opnerr(f,m,s) {if(f) errno= m; else opn_err(m,s,a); return(m);}
-
- static void
-#ifdef KR_headers
-opn_err(m, s, a) int m; char *s; olist *a;
-#else
-opn_err(int m, char *s, olist *a)
-#endif
-{
- if (a->ofnm) {
- /* supply file name to error message */
- if (a->ofnmlen >= f__buflen)
- f__bufadj((int)a->ofnmlen, 0);
- g_char(a->ofnm, a->ofnmlen, f__curunit->ufnm = f__buf);
- }
- f__fatal(m, s);
- }
-
-#ifdef KR_headers
-integer f_open(a) olist *a;
-#else
-integer f_open(olist *a)
-#endif
-{ unit *b;
- integer rv;
- char buf[256], *s;
- cllist x;
- int ufmt;
- FILE *tf;
-#ifndef NON_UNIX_STDIO
- int n;
-#endif
- f__external = 1;
- if(a->ounit>=MXUNIT || a->ounit<0)
- err(a->oerr,101,"open")
- if (!f__init)
- f_init();
- f__curunit = b = &f__units[a->ounit];
- if(b->ufd) {
- if(a->ofnm==0)
- {
- same: if (a->oblnk)
- b->ublnk = *a->oblnk == 'z' || *a->oblnk == 'Z';
- return(0);
- }
-#ifdef NON_UNIX_STDIO
- if (b->ufnm
- && strlen(b->ufnm) == a->ofnmlen
- && !strncmp(b->ufnm, a->ofnm, (unsigned)a->ofnmlen))
- goto same;
-#else
- g_char(a->ofnm,a->ofnmlen,buf);
- if (f__inode(buf,&n) == b->uinode && n == b->udev)
- goto same;
-#endif
- x.cunit=a->ounit;
- x.csta=0;
- x.cerr=a->oerr;
- if ((rv = f_clos(&x)) != 0)
- return rv;
- }
- b->url = (int)a->orl;
- b->ublnk = a->oblnk && (*a->oblnk == 'z' || *a->oblnk == 'Z');
- if(a->ofm==0)
- { if(b->url>0) b->ufmt=0;
- else b->ufmt=1;
- }
- else if(*a->ofm=='f' || *a->ofm == 'F') b->ufmt=1;
- else b->ufmt=0;
- ufmt = b->ufmt;
-#ifdef url_Adjust
- if (b->url && !ufmt)
- url_Adjust(b->url);
-#endif
- if (a->ofnm) {
- g_char(a->ofnm,a->ofnmlen,buf);
- if (!buf[0])
- opnerr(a->oerr,107,"open")
- }
- else
- sprintf(buf, "fort.%ld", (long)a->ounit);
- b->uscrtch = 0;
- b->uend=0;
- b->uwrt = 0;
- b->ufd = 0;
- b->urw = 3;
- switch(a->osta ? *a->osta : 'u')
- {
- case 'o':
- case 'O':
-#ifdef NON_POSIX_STDIO
- if (!(tf = FOPEN(buf,"r")))
- opnerr(a->oerr,errno,"open")
- fclose(tf);
-#else
- if (access(buf,0))
- opnerr(a->oerr,errno,"open")
-#endif
- break;
- case 's':
- case 'S':
- b->uscrtch=1;
-#ifdef NON_ANSI_STDIO
- (void) strcpy(buf,"tmp.FXXXXXX");
- (void) mktemp(buf);
- goto replace;
-#else
- if (!(b->ufd = tmpfile()))
- opnerr(a->oerr,errno,"open")
- b->ufnm = 0;
-#ifndef NON_UNIX_STDIO
- b->uinode = b->udev = -1;
-#endif
- b->useek = 1;
- return 0;
-#endif
-
- case 'n':
- case 'N':
-#ifdef NON_POSIX_STDIO
- if ((tf = FOPEN(buf,"r")) || (tf = FOPEN(buf,"a"))) {
- fclose(tf);
- opnerr(a->oerr,128,"open")
- }
-#else
- if (!access(buf,0))
- opnerr(a->oerr,128,"open")
-#endif
- /* no break */
- case 'r': /* Fortran 90 replace option */
- case 'R':
-#ifdef NON_ANSI_STDIO
- replace:
-#endif
- if (tf = FOPEN(buf,f__w_mode[0]))
- fclose(tf);
- }
-
- b->ufnm=(char *) malloc((unsigned int)(strlen(buf)+1));
- if(b->ufnm==NULL) opnerr(a->oerr,113,"no space");
- (void) strcpy(b->ufnm,buf);
- if ((s = a->oacc) && b->url)
- ufmt = 0;
- if(!(tf = FOPEN(buf, f__w_mode[ufmt|2]))) {
- if (tf = FOPEN(buf, f__r_mode[ufmt]))
- b->urw = 1;
- else if (tf = FOPEN(buf, f__w_mode[ufmt])) {
- b->uwrt = 1;
- b->urw = 2;
- }
- else
- err(a->oerr, errno, "open");
- }
- b->useek = f__canseek(b->ufd = tf);
-#ifndef NON_UNIX_STDIO
- if((b->uinode = f__inode(buf,&b->udev)) == -1)
- opnerr(a->oerr,108,"open")
-#endif
- if(b->useek)
- if (a->orl)
- rewind(b->ufd);
- else if ((s = a->oacc) && (*s == 'a' || *s == 'A')
- && FSEEK(b->ufd, 0L, SEEK_END))
- opnerr(a->oerr,129,"open");
- return(0);
-}
-
- int
-#ifdef KR_headers
-fk_open(seq,fmt,n) ftnint n;
-#else
-fk_open(int seq, int fmt, ftnint n)
-#endif
-{ char nbuf[10];
- olist a;
- (void) sprintf(nbuf,"fort.%ld",(long)n);
- a.oerr=1;
- a.ounit=n;
- a.ofnm=nbuf;
- a.ofnmlen=strlen(nbuf);
- a.osta=NULL;
- a.oacc= (char*)(seq==SEQ?"s":"d");
- a.ofm = (char*)(fmt==FMT?"f":"u");
- a.orl = seq==DIR?1:0;
- a.oblnk=NULL;
- return(f_open(&a));
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/patch-01-binary b/Build/source/utils/pmx/pmx-src/libf2c/patch-01-binary
deleted file mode 100644
index 02856a74455..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/patch-01-binary
+++ /dev/null
@@ -1,17 +0,0 @@
- On Windows fseek() etc. are meaningful only for binary access.
-
- Mail from Akira, 29 Mar 2012 23:50:53.
-
-diff -ur pmx-2.6.18.orig/libf2c/open.c pmx-2.6.18/libf2c/open.c
---- pmx-2.6.18.orig/libf2c/open.c 2012-04-09 18:24:12.000000000 +0200
-+++ pmx-2.6.18/libf2c/open.c 2012-05-19 18:46:29.225582726 +0200
-@@ -30,6 +30,9 @@
- #ifdef NON_ANSI_RW_MODES
- char *f__r_mode[2] = {"r", "r"};
- char *f__w_mode[4] = {"w", "w", "r+w", "r+w"};
-+#elif defined(WIN32)
-+char *f__r_mode[2] = {"rb", "rb"};
-+char *f__w_mode[4] = {"wb", "wb", "rb+", "rb+"};
- #else
- char *f__r_mode[2] = {"rb", "r"};
- char *f__w_mode[4] = {"wb", "w", "r+b", "r+"};
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/patch-03-DOS-line-endings b/Build/source/utils/pmx/pmx-src/libf2c/patch-03-DOS-line-endings
deleted file mode 100644
index 2191c6db982..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/patch-03-DOS-line-endings
+++ /dev/null
@@ -1,18 +0,0 @@
- Handle DOS line endings (using additional file ../w32getc.c).
-
- Mail from Akira, 31 Mar 2012 21:36:26.
-
-diff -ur pmx-2.6.18.orig/libf2c/fio.h pmx-2.6.18/libf2c/fio.h
---- pmx-2.6.18.orig/libf2c/fio.h 2012-04-09 18:24:12.000000000 +0200
-+++ pmx-2.6.18/libf2c/fio.h 2012-05-19 18:47:56.503874316 +0200
-@@ -2,6 +2,10 @@
- #include "sysdep1.h"
- #endif
- #include "stdio.h"
-+#ifdef WIN32
-+extern int w32getc(FILE *f);
-+#define getc w32getc
-+#endif
- #include "errno.h"
- #ifndef NULL
- /* ANSI C */
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/patch-04-MSVC-complex b/Build/source/utils/pmx/pmx-src/libf2c/patch-04-MSVC-complex
deleted file mode 100644
index 17326913552..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/patch-04-MSVC-complex
+++ /dev/null
@@ -1,18 +0,0 @@
- _COMPLEX_DEFINED should be defined for MSVC, otherwise
- complex is redefined inconsistently in <math.h>.
-
- Mail from Akira, 31 Mar 2012 21:36:26.
-
-diff -ur pmx-2.6.18.orig/libf2c/f2c.h pmx-2.6.18/libf2c/f2c.h
---- pmx-2.6.18.orig/libf2c/f2c.h 2012-04-09 18:24:12.000000000 +0200
-+++ pmx-2.6.18/libf2c/f2c.h 2012-05-19 18:49:12.286432193 +0200
-@@ -13,6 +13,9 @@
- typedef short int shortint;
- typedef float real;
- typedef double doublereal;
-+#ifdef WIN32
-+#define _COMPLEX_DEFINED 1
-+#endif
- typedef struct { real r, i; } complex;
- typedef struct { doublereal r, i; } doublecomplex;
- typedef long int logical;
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/patch-05-FreeBSD-off_t b/Build/source/utils/pmx/pmx-src/libf2c/patch-05-FreeBSD-off_t
deleted file mode 100644
index e3b8a9c3387..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/patch-05-FreeBSD-off_t
+++ /dev/null
@@ -1,14 +0,0 @@
- On FreeBSD (and maybe others) we need <sys/types.h> for off_t.
-
-diff -ur pmx-2.6.18.orig/libf2c/fio.h pmx-2.6.18/libf2c/fio.h
---- pmx-2.6.18.orig/libf2c/fio.h 2012-05-19 18:47:56.000000000 +0200
-+++ pmx-2.6.18/libf2c/fio.h 2012-05-19 18:50:13.501421172 +0200
-@@ -1,6 +1,7 @@
- #ifndef SYSDEP_H_INCLUDED
- #include "sysdep1.h"
- #endif
-+#include <sys/types.h> /* for off_t */
- #include "stdio.h"
- #ifdef WIN32
- extern int w32getc(FILE *f);
-
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/patch-06-WIN32 b/Build/source/utils/pmx/pmx-src/libf2c/patch-06-WIN32
deleted file mode 100644
index 733d560b737..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/patch-06-WIN32
+++ /dev/null
@@ -1,88 +0,0 @@
- Typedef signed and unsigned 64-bit integers for MSVC.
- Avoid the problematic prototypes for isatty() and ungetc().
- Avoid redefinition of max(a,b) and min(a,b).
-
-diff -ur pmx-2.6.18.orig/libf2c/f2c.h pmx-2.6.18/libf2c/f2c.h
---- pmx-2.6.18.orig/libf2c/f2c.h 2012-05-19 18:49:12.000000000 +0200
-+++ pmx-2.6.18/libf2c/f2c.h 2012-07-11 17:17:59.000000000 +0200
-@@ -23,8 +23,13 @@
- typedef char logical1;
- typedef char integer1;
- #ifdef INTEGER_STAR_8 /* Adjust for integer*8. */
-+#if defined(WIN32) && !defined(__MINGW32__)
-+typedef __int64 longint; /* system-dependent */
-+typedef unsigned __int64 ulongint; /* system-dependent */
-+#else
- typedef long long longint; /* system-dependent */
- typedef unsigned long long ulongint; /* system-dependent */
-+#endif
- #define qbit_clear(a,b) ((a) & ~((ulongint)1 << (b)))
- #define qbit_set(a,b) ((a) | ((ulongint)1 << (b)))
- #endif
-@@ -159,6 +164,8 @@
-
- #define abs(x) ((x) >= 0 ? (x) : -(x))
- #define dabs(x) (doublereal)abs(x)
-+#undef min
-+#undef max
- #define min(a,b) ((a) <= (b) ? (a) : (b))
- #define max(a,b) ((a) >= (b) ? (a) : (b))
- #define dmin(a,b) (doublereal)min(a,b)
-diff -ur pmx-2.6.18.orig/libf2c/fio.h pmx-2.6.18/libf2c/fio.h
---- pmx-2.6.18.orig/libf2c/fio.h 2012-05-19 18:50:13.000000000 +0200
-+++ pmx-2.6.18/libf2c/fio.h 2012-07-11 17:46:22.000000000 +0200
-@@ -3,6 +3,9 @@
- #endif
- #include <sys/types.h> /* for off_t */
- #include "stdio.h"
-+#ifdef HAVE_UNISTD_H
-+#include <unistd.h> /* for isatty() */
-+#endif
- #ifdef WIN32
- extern int w32getc(FILE *f);
- #define getc w32getc
-@@ -113,7 +116,6 @@
- extern int (*f__donewrec)(void), t_putc(int), x_wSL(void);
- extern void b_char(char*,char*,ftnlen), g_char(char*,ftnlen,char*);
- extern int c_sfe(cilist*), z_rnew(void);
--extern int isatty(int);
- extern int err__fl(int,int,char*);
- extern int xrd_SL(void);
- extern int f__putbuf(int);
-diff -ur pmx-2.6.18.orig/libf2c/getenv_.c pmx-2.6.18/libf2c/getenv_.c
---- pmx-2.6.18.orig/libf2c/getenv_.c 2012-04-09 18:24:12.000000000 +0200
-+++ pmx-2.6.18/libf2c/getenv_.c 2012-07-12 13:28:57.000000000 +0200
-@@ -1,8 +1,10 @@
- #include "f2c.h"
--#undef abs
- #ifdef KR_headers
- extern char *F77_aloc(), *getenv();
- #else
-+#undef abs
-+#undef max
-+#undef min
- #include <stdlib.h>
- #include <string.h>
- #ifdef __cplusplus
-diff -ur pmx-2.6.18.orig/libf2c/lread.c pmx-2.6.18/libf2c/lread.c
---- pmx-2.6.18.orig/libf2c/lread.c 2012-04-09 18:24:12.000000000 +0200
-+++ pmx-2.6.18/libf2c/lread.c 2012-07-11 17:23:48.000000000 +0200
-@@ -74,8 +74,6 @@
- #define un_getc ungetc
- #ifdef KR_headers
- extern int ungetc();
--#else
--extern int ungetc(int, FILE*); /* for systems with a buggy stdio.h */
- #endif
- #endif
-
-diff -ur pmx-2.6.18.orig/libf2c/rsne.c pmx-2.6.18/libf2c/rsne.c
---- pmx-2.6.18.orig/libf2c/rsne.c 2012-04-09 18:24:12.000000000 +0200
-+++ pmx-2.6.18/libf2c/rsne.c 2012-07-11 17:23:51.000000000 +0200
-@@ -66,7 +66,6 @@
- { return ungetc(x,f__cf); }
- #else
- #define un_getc ungetc
--extern int ungetc(int, FILE*); /* for systems with a buggy stdio.h */
- #endif
- #endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/patch-07-MuslLibc b/Build/source/utils/pmx/pmx-src/libf2c/patch-07-MuslLibc
deleted file mode 100644
index bcfc5489720..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/patch-07-MuslLibc
+++ /dev/null
@@ -1,23 +0,0 @@
-
-pmx does not compile with musl libc because the included
-libf2c uses the nonstandard type __off64_t. The below patch,
-which is adapted from current libf2c, fixes this.
-
-Felix Janda [mailto:felix.janda@posteo.de]
-
-
---- a/pmx-2.6.18/libf2c/sysdep1.h
-+++ b/pmx-2.6.18/libf2c/sysdep1.h
-@@ -10,7 +10,11 @@
-
- #ifdef __linux__
- #define USE_LARGEFILE
-+#ifdef __GLIBC__
- #define OFF_T __off64_t
-+#else
-+#define OFF_T off_t
-+#endif
- #endif
-
- #ifdef _AIX43
-
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/patch-08-WIN64 b/Build/source/utils/pmx/pmx-src/libf2c/patch-08-WIN64
deleted file mode 100644
index 39932ffca8a..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/patch-08-WIN64
+++ /dev/null
@@ -1,23 +0,0 @@
-*** signal_.c.orig 2016-02-02 08:40:45.725142965 -0500
---- signal_.c 2016-02-01 19:44:44.304546734 -0500
-***************
-*** 14,20 ****
- int sig;
- sig = (int)*sigp;
-
-! return (ftnint)signal(sig, proc);
- }
- #ifdef __cplusplus
- }
---- 14,24 ----
- int sig;
- sig = (int)*sigp;
-
-! #ifdef _WIN64
-! return (ftnint)(__int64)signal(sig, proc);
-! #else
-! return (ftnint)(long)signal(sig, proc);
-! #endif
- }
- #ifdef __cplusplus
- }
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/patch-09-tmpfile b/Build/source/utils/pmx/pmx-src/libf2c/patch-09-tmpfile
deleted file mode 100644
index 81aece17f4b..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/patch-09-tmpfile
+++ /dev/null
@@ -1,136 +0,0 @@
-*** open.c.orig 2016-02-01 01:11:47.863795221 -0500
---- open.c 2016-02-02 23:29:46.799174898 -0500
-***************
-*** 1,3 ****
---- 1,119 ----
-+ #ifdef _WIN32
-+
-+ /* On Windows, replace tmpfile() by _cairo_win_tmpfile() defined as follows,
-+ * and presumably more secure than mktemp().
-+ */
-+
-+ /* _cairo_win_tmpfile (void) - replace tmpfile() in Windows
-+ * extracted from cairo-misc.c in cairo - a vector graphics library
-+ * The functiion name is changed from
-+ * _cairo_win32_tmpfile (void) to
-+ * _cairo_win_tmpfile (void)
-+ *
-+ *
-+ * Copyright 2002 University of Southern California
-+ * Copyright 2005 Red Hat, Inc.
-+ * Copyright 2007 Adrian Johnson
-+ *
-+ * This library is free software; you can redistribute it and/or
-+ * modify it either under the terms of the GNU Lesser General Public
-+ * License version 2.1 as published by the Free Software Foundation
-+ * (the "LGPL") or, at your option, under the terms of the Mozilla
-+ * Public License Version 1.1 (the "MPL"). If you do not alter this
-+ * notice, a recipient may use your version of this file under either
-+ * the MPL or the LGPL.
-+ *
-+ * You should have received a copy of the LGPL along with this library
-+ * in the file COPYING-LGPL-2.1; if not, write to the Free Software
-+ * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
-+ * You should have received a copy of the MPL along with this library
-+ * in the file COPYING-MPL-1.1
-+ *
-+ * The contents of this file are subject to the Mozilla Public License
-+ * Version 1.1 (the "License"); you may not use this file except in
-+ * compliance with the License. You may obtain a copy of the License at
-+ * http://www.mozilla.org/MPL/
-+ *
-+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
-+ * OF ANY KIND, either express or implied. See the LGPL or the MPL for
-+ * the specific language governing rights and limitations.
-+ *
-+ * The Original Code is the cairo graphics library.
-+ *
-+ * The Initial Developer of the Original Code is University of Southern
-+ * California.
-+ *
-+ * Contributor(s):
-+ * Carl D. Worth <cworth@cworth.org>
-+ * Adrian Johnson <ajohnson@redneon.com>
-+ */
-+
-+ #include <stdio.h>
-+ #define WIN32_LEAN_AND_MEAN
-+ /* We require Windows 2000 features such as ETO_PDY */
-+ #if !defined(WINVER) || (WINVER < 0x0500)
-+ # define WINVER 0x0500
-+ #endif
-+ #if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500)
-+ # define _WIN32_WINNT 0x0500
-+ #endif
-+
-+ #include <windows.h>
-+ #include <io.h>
-+
-+ /* tmpfile() replacement for Windows.
-+ *
-+ * On Windows tmpfile() creates the file in the root directory. This
-+ * may fail due to unsufficient privileges. However, this isn't a
-+ * problem on Windows CE so we don't use it there.
-+ */
-+ FILE *
-+ _cairo_win_tmpfile (void)
-+ {
-+ DWORD path_len;
-+ WCHAR path_name[MAX_PATH + 1];
-+ WCHAR file_name[MAX_PATH + 1];
-+ HANDLE handle;
-+ int fd;
-+ FILE *fp;
-+
-+ path_len = GetTempPathW (MAX_PATH, path_name);
-+ if (path_len <= 0 || path_len >= MAX_PATH)
-+ return NULL;
-+
-+ if (GetTempFileNameW (path_name, L"ps_", 0, file_name) == 0)
-+ return NULL;
-+
-+ handle = CreateFileW (file_name,
-+ GENERIC_READ | GENERIC_WRITE,
-+ 0,
-+ NULL,
-+ CREATE_ALWAYS,
-+ FILE_ATTRIBUTE_NORMAL | FILE_FLAG_DELETE_ON_CLOSE,
-+ NULL);
-+ if (handle == INVALID_HANDLE_VALUE) {
-+ DeleteFileW (file_name);
-+ return NULL;
-+ }
-+
-+ fd = _open_osfhandle((intptr_t) handle, 0);
-+ if (fd < 0) {
-+ CloseHandle (handle);
-+ return NULL;
-+ }
-+
-+ fp = _fdopen(fd, "w+b");
-+ if (fp == NULL) {
-+ _close(fd);
-+ return NULL;
-+ }
-+
-+ return fp;
-+ }
-+
-+ #define tmpfile _cairo_win_tmpfile
-+ #endif /* _WIN32 */
-+
- #include "f2c.h"
- #include "fio.h"
- #include "string.h"
-***************
-*** 30,35 ****
---- 146,154 ----
- #ifdef NON_ANSI_RW_MODES
- char *f__r_mode[2] = {"r", "r"};
- char *f__w_mode[4] = {"w", "w", "r+w", "r+w"};
-+ #elif defined(WIN32)
-+ char *f__r_mode[2] = {"rb", "rb"};
-+ char *f__w_mode[4] = {"wb", "wb", "rb+", "rb+"};
- #else
- char *f__r_mode[2] = {"rb", "r"};
- char *f__w_mode[4] = {"wb", "w", "r+b", "r+"};
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/pow_ci.c b/Build/source/utils/pmx/pmx-src/libf2c/pow_ci.c
deleted file mode 100644
index 574e0b1ebac..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/pow_ci.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-VOID pow_ci(p, a, b) /* p = a**b */
- complex *p, *a; integer *b;
-#else
-extern void pow_zi(doublecomplex*, doublecomplex*, integer*);
-void pow_ci(complex *p, complex *a, integer *b) /* p = a**b */
-#endif
-{
-doublecomplex p1, a1;
-
-a1.r = a->r;
-a1.i = a->i;
-
-pow_zi(&p1, &a1, b);
-
-p->r = p1.r;
-p->i = p1.i;
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/pow_dd.c b/Build/source/utils/pmx/pmx-src/libf2c/pow_dd.c
deleted file mode 100644
index 08fc20884ae..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/pow_dd.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double pow();
-double pow_dd(ap, bp) doublereal *ap, *bp;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double pow_dd(doublereal *ap, doublereal *bp)
-#endif
-{
-return(pow(*ap, *bp) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/pow_di.c b/Build/source/utils/pmx/pmx-src/libf2c/pow_di.c
deleted file mode 100644
index abf36cb74c0..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/pow_di.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double pow_di(ap, bp) doublereal *ap; integer *bp;
-#else
-double pow_di(doublereal *ap, integer *bp)
-#endif
-{
-double pow, x;
-integer n;
-unsigned long u;
-
-pow = 1;
-x = *ap;
-n = *bp;
-
-if(n != 0)
- {
- if(n < 0)
- {
- n = -n;
- x = 1/x;
- }
- for(u = n; ; )
- {
- if(u & 01)
- pow *= x;
- if(u >>= 1)
- x *= x;
- else
- break;
- }
- }
-return(pow);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/pow_hh.c b/Build/source/utils/pmx/pmx-src/libf2c/pow_hh.c
deleted file mode 100644
index 882168501aa..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/pow_hh.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-shortint pow_hh(ap, bp) shortint *ap, *bp;
-#else
-shortint pow_hh(shortint *ap, shortint *bp)
-#endif
-{
- shortint pow, x, n;
- unsigned u;
-
- x = *ap;
- n = *bp;
-
- if (n <= 0) {
- if (n == 0 || x == 1)
- return 1;
- if (x != -1)
- return x == 0 ? 1/x : 0;
- n = -n;
- }
- u = n;
- for(pow = 1; ; )
- {
- if(u & 01)
- pow *= x;
- if(u >>= 1)
- x *= x;
- else
- break;
- }
- return(pow);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/pow_ii.c b/Build/source/utils/pmx/pmx-src/libf2c/pow_ii.c
deleted file mode 100644
index 748d1217733..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/pow_ii.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-integer pow_ii(ap, bp) integer *ap, *bp;
-#else
-integer pow_ii(integer *ap, integer *bp)
-#endif
-{
- integer pow, x, n;
- unsigned long u;
-
- x = *ap;
- n = *bp;
-
- if (n <= 0) {
- if (n == 0 || x == 1)
- return 1;
- if (x != -1)
- return x == 0 ? 1/x : 0;
- n = -n;
- }
- u = n;
- for(pow = 1; ; )
- {
- if(u & 01)
- pow *= x;
- if(u >>= 1)
- x *= x;
- else
- break;
- }
- return(pow);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/pow_qq.c b/Build/source/utils/pmx/pmx-src/libf2c/pow_qq.c
deleted file mode 100644
index 09fe18ec8e7..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/pow_qq.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-longint pow_qq(ap, bp) longint *ap, *bp;
-#else
-longint pow_qq(longint *ap, longint *bp)
-#endif
-{
- longint pow, x, n;
- unsigned long long u; /* system-dependent */
-
- x = *ap;
- n = *bp;
-
- if (n <= 0) {
- if (n == 0 || x == 1)
- return 1;
- if (x != -1)
- return x == 0 ? 1/x : 0;
- n = -n;
- }
- u = n;
- for(pow = 1; ; )
- {
- if(u & 01)
- pow *= x;
- if(u >>= 1)
- x *= x;
- else
- break;
- }
- return(pow);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/pow_ri.c b/Build/source/utils/pmx/pmx-src/libf2c/pow_ri.c
deleted file mode 100644
index e29d416eba2..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/pow_ri.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double pow_ri(ap, bp) real *ap; integer *bp;
-#else
-double pow_ri(real *ap, integer *bp)
-#endif
-{
-double pow, x;
-integer n;
-unsigned long u;
-
-pow = 1;
-x = *ap;
-n = *bp;
-
-if(n != 0)
- {
- if(n < 0)
- {
- n = -n;
- x = 1/x;
- }
- for(u = n; ; )
- {
- if(u & 01)
- pow *= x;
- if(u >>= 1)
- x *= x;
- else
- break;
- }
- }
-return(pow);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/pow_zi.c b/Build/source/utils/pmx/pmx-src/libf2c/pow_zi.c
deleted file mode 100644
index 1c0a4b07c2d..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/pow_zi.c
+++ /dev/null
@@ -1,60 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-VOID pow_zi(p, a, b) /* p = a**b */
- doublecomplex *p, *a; integer *b;
-#else
-extern void z_div(doublecomplex*, doublecomplex*, doublecomplex*);
-void pow_zi(doublecomplex *p, doublecomplex *a, integer *b) /* p = a**b */
-#endif
-{
- integer n;
- unsigned long u;
- double t;
- doublecomplex q, x;
- static doublecomplex one = {1.0, 0.0};
-
- n = *b;
- q.r = 1;
- q.i = 0;
-
- if(n == 0)
- goto done;
- if(n < 0)
- {
- n = -n;
- z_div(&x, &one, a);
- }
- else
- {
- x.r = a->r;
- x.i = a->i;
- }
-
- for(u = n; ; )
- {
- if(u & 01)
- {
- t = q.r * x.r - q.i * x.i;
- q.i = q.r * x.i + q.i * x.r;
- q.r = t;
- }
- if(u >>= 1)
- {
- t = x.r * x.r - x.i * x.i;
- x.i = 2 * x.r * x.i;
- x.r = t;
- }
- else
- break;
- }
- done:
- p->i = q.i;
- p->r = q.r;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/pow_zz.c b/Build/source/utils/pmx/pmx-src/libf2c/pow_zz.c
deleted file mode 100644
index b5ffd334835..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/pow_zz.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double log(), exp(), cos(), sin(), atan2(), f__cabs();
-VOID pow_zz(r,a,b) doublecomplex *r, *a, *b;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern double f__cabs(double,double);
-void pow_zz(doublecomplex *r, doublecomplex *a, doublecomplex *b)
-#endif
-{
-double logr, logi, x, y;
-
-logr = log( f__cabs(a->r, a->i) );
-logi = atan2(a->i, a->r);
-
-x = exp( logr * b->r - logi * b->i );
-y = logr * b->i + logi * b->r;
-
-r->r = x * cos(y);
-r->i = x * sin(y);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/qbitbits.c b/Build/source/utils/pmx/pmx-src/libf2c/qbitbits.c
deleted file mode 100644
index ba1b5bd0c97..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/qbitbits.c
+++ /dev/null
@@ -1,72 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef LONGBITS
-#define LONGBITS 32
-#endif
-
-#ifndef LONG8BITS
-#define LONG8BITS (2*LONGBITS)
-#endif
-
- longint
-#ifdef KR_headers
-qbit_bits(a, b, len) longint a; integer b, len;
-#else
-qbit_bits(longint a, integer b, integer len)
-#endif
-{
- /* Assume 2's complement arithmetic */
-
- ulongint x, y;
-
- x = (ulongint) a;
- y = (ulongint)-1L;
- x >>= b;
- y <<= len;
- return (longint)(x & ~y);
- }
-
- longint
-#ifdef KR_headers
-qbit_cshift(a, b, len) longint a; integer b, len;
-#else
-qbit_cshift(longint a, integer b, integer len)
-#endif
-{
- ulongint x, y, z;
-
- x = (ulongint)a;
- if (len <= 0) {
- if (len == 0)
- return 0;
- goto full_len;
- }
- if (len >= LONG8BITS) {
- full_len:
- if (b >= 0) {
- b %= LONG8BITS;
- return (longint)(x << b | x >> LONG8BITS - b );
- }
- b = -b;
- b %= LONG8BITS;
- return (longint)(x << LONG8BITS - b | x >> b);
- }
- y = z = (unsigned long)-1;
- y <<= len;
- z &= ~y;
- y &= x;
- x &= z;
- if (b >= 0) {
- b %= len;
- return (longint)(y | z & (x << b | x >> len - b));
- }
- b = -b;
- b %= len;
- return (longint)(y | z & (x >> b | x << len - b));
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/qbitshft.c b/Build/source/utils/pmx/pmx-src/libf2c/qbitshft.c
deleted file mode 100644
index 78e7b95100d..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/qbitshft.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- longint
-#ifdef KR_headers
-qbit_shift(a, b) longint a; integer b;
-#else
-qbit_shift(longint a, integer b)
-#endif
-{
- return b >= 0 ? a << b : (longint)((ulongint)a >> -b);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_abs.c b/Build/source/utils/pmx/pmx-src/libf2c/r_abs.c
deleted file mode 100644
index f3291fb4d14..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_abs.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double r_abs(x) real *x;
-#else
-double r_abs(real *x)
-#endif
-{
-if(*x >= 0)
- return(*x);
-return(- *x);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_acos.c b/Build/source/utils/pmx/pmx-src/libf2c/r_acos.c
deleted file mode 100644
index 103c7ff070b..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_acos.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double acos();
-double r_acos(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_acos(real *x)
-#endif
-{
-return( acos(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_asin.c b/Build/source/utils/pmx/pmx-src/libf2c/r_asin.c
deleted file mode 100644
index 432b9406ac7..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_asin.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double asin();
-double r_asin(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_asin(real *x)
-#endif
-{
-return( asin(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_atan.c b/Build/source/utils/pmx/pmx-src/libf2c/r_atan.c
deleted file mode 100644
index 7656982db45..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_atan.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double atan();
-double r_atan(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_atan(real *x)
-#endif
-{
-return( atan(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_atn2.c b/Build/source/utils/pmx/pmx-src/libf2c/r_atn2.c
deleted file mode 100644
index ab957b89d54..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_atn2.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double atan2();
-double r_atn2(x,y) real *x, *y;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_atn2(real *x, real *y)
-#endif
-{
-return( atan2(*x,*y) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_cnjg.c b/Build/source/utils/pmx/pmx-src/libf2c/r_cnjg.c
deleted file mode 100644
index cef0e4b092b..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_cnjg.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-VOID r_cnjg(r, z) complex *r, *z;
-#else
-VOID r_cnjg(complex *r, complex *z)
-#endif
-{
- real zi = z->i;
- r->r = z->r;
- r->i = -zi;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_cos.c b/Build/source/utils/pmx/pmx-src/libf2c/r_cos.c
deleted file mode 100644
index 4418f0c1bbf..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_cos.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double cos();
-double r_cos(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_cos(real *x)
-#endif
-{
-return( cos(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_cosh.c b/Build/source/utils/pmx/pmx-src/libf2c/r_cosh.c
deleted file mode 100644
index f5478355809..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_cosh.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double cosh();
-double r_cosh(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_cosh(real *x)
-#endif
-{
-return( cosh(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_dim.c b/Build/source/utils/pmx/pmx-src/libf2c/r_dim.c
deleted file mode 100644
index d573ca36d8d..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_dim.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double r_dim(a,b) real *a, *b;
-#else
-double r_dim(real *a, real *b)
-#endif
-{
-return( *a > *b ? *a - *b : 0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_exp.c b/Build/source/utils/pmx/pmx-src/libf2c/r_exp.c
deleted file mode 100644
index 4e679794f22..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_exp.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double exp();
-double r_exp(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_exp(real *x)
-#endif
-{
-return( exp(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_imag.c b/Build/source/utils/pmx/pmx-src/libf2c/r_imag.c
deleted file mode 100644
index 1b4de14373a..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_imag.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double r_imag(z) complex *z;
-#else
-double r_imag(complex *z)
-#endif
-{
-return(z->i);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_int.c b/Build/source/utils/pmx/pmx-src/libf2c/r_int.c
deleted file mode 100644
index bff87176ff6..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_int.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double floor();
-double r_int(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_int(real *x)
-#endif
-{
-return( (*x>0) ? floor(*x) : -floor(- *x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_lg10.c b/Build/source/utils/pmx/pmx-src/libf2c/r_lg10.c
deleted file mode 100644
index 64ffddf48b0..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_lg10.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "f2c.h"
-
-#define log10e 0.43429448190325182765
-
-#ifdef KR_headers
-double log();
-double r_lg10(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_lg10(real *x)
-#endif
-{
-return( log10e * log(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_log.c b/Build/source/utils/pmx/pmx-src/libf2c/r_log.c
deleted file mode 100644
index 94c79b05185..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_log.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double log();
-double r_log(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_log(real *x)
-#endif
-{
-return( log(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_mod.c b/Build/source/utils/pmx/pmx-src/libf2c/r_mod.c
deleted file mode 100644
index 63ed1753689..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_mod.c
+++ /dev/null
@@ -1,46 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-#ifdef IEEE_drem
-double drem();
-#else
-double floor();
-#endif
-double r_mod(x,y) real *x, *y;
-#else
-#ifdef IEEE_drem
-double drem(double, double);
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#endif
-double r_mod(real *x, real *y)
-#endif
-{
-#ifdef IEEE_drem
- double xa, ya, z;
- if ((ya = *y) < 0.)
- ya = -ya;
- z = drem(xa = *x, ya);
- if (xa > 0) {
- if (z < 0)
- z += ya;
- }
- else if (z > 0)
- z -= ya;
- return z;
-#else
- double quotient;
- if( (quotient = (double)*x / *y) >= 0)
- quotient = floor(quotient);
- else
- quotient = -floor(-quotient);
- return(*x - (*y) * quotient );
-#endif
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_nint.c b/Build/source/utils/pmx/pmx-src/libf2c/r_nint.c
deleted file mode 100644
index 7cc3f1b5aea..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_nint.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double floor();
-double r_nint(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_nint(real *x)
-#endif
-{
-return( (*x)>=0 ?
- floor(*x + .5) : -floor(.5 - *x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_sign.c b/Build/source/utils/pmx/pmx-src/libf2c/r_sign.c
deleted file mode 100644
index 797db1a4cbf..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_sign.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double r_sign(a,b) real *a, *b;
-#else
-double r_sign(real *a, real *b)
-#endif
-{
-double x;
-x = (*a >= 0 ? *a : - *a);
-return( *b >= 0 ? x : -x);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_sin.c b/Build/source/utils/pmx/pmx-src/libf2c/r_sin.c
deleted file mode 100644
index 37e0df25fa5..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_sin.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double sin();
-double r_sin(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_sin(real *x)
-#endif
-{
-return( sin(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_sinh.c b/Build/source/utils/pmx/pmx-src/libf2c/r_sinh.c
deleted file mode 100644
index 39878f03ae7..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_sinh.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double sinh();
-double r_sinh(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_sinh(real *x)
-#endif
-{
-return( sinh(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_sqrt.c b/Build/source/utils/pmx/pmx-src/libf2c/r_sqrt.c
deleted file mode 100644
index e7b2c1c704a..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_sqrt.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double sqrt();
-double r_sqrt(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_sqrt(real *x)
-#endif
-{
-return( sqrt(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_tan.c b/Build/source/utils/pmx/pmx-src/libf2c/r_tan.c
deleted file mode 100644
index 1774bed73a5..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_tan.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double tan();
-double r_tan(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_tan(real *x)
-#endif
-{
-return( tan(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/r_tanh.c b/Build/source/utils/pmx/pmx-src/libf2c/r_tanh.c
deleted file mode 100644
index 7739c6ce846..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/r_tanh.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double tanh();
-double r_tanh(x) real *x;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-double r_tanh(real *x)
-#endif
-{
-return( tanh(*x) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/rawio.h b/Build/source/utils/pmx/pmx-src/libf2c/rawio.h
deleted file mode 100644
index fd36a482602..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/rawio.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#ifndef KR_headers
-#ifdef MSDOS
-#include "io.h"
-#ifndef WATCOM
-#define close _close
-#define creat _creat
-#define open _open
-#define read _read
-#define write _write
-#endif /*WATCOM*/
-#endif /*MSDOS*/
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifndef MSDOS
-#ifdef OPEN_DECL
-extern int creat(const char*,int), open(const char*,int);
-#endif
-extern int close(int);
-extern int read(int,void*,size_t), write(int,void*,size_t);
-extern int unlink(const char*);
-#ifndef _POSIX_SOURCE
-#ifndef NON_UNIX_STDIO
-extern FILE *fdopen(int, const char*);
-#endif
-#endif
-#endif /*KR_HEADERS*/
-
-extern char *mktemp(char*);
-
-#ifdef __cplusplus
- }
-#endif
-#endif
-
-#include "fcntl.h"
-
-#ifndef O_WRONLY
-#define O_RDONLY 0
-#define O_WRONLY 1
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/rdfmt.c b/Build/source/utils/pmx/pmx-src/libf2c/rdfmt.c
deleted file mode 100644
index 62b28053409..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/rdfmt.c
+++ /dev/null
@@ -1,550 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-
-#ifdef KR_headers
-extern double atof();
-#else
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#endif
-
-#include "fmt.h"
-#include "fp.h"
-#include "ctype.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- static int
-#ifdef KR_headers
-rd_Z(n,w,len) Uint *n; ftnlen len;
-#else
-rd_Z(Uint *n, int w, ftnlen len)
-#endif
-{
- long x[9];
- char *s, *s0, *s1, *se, *t;
- int ch, i, w1, w2;
- static char hex[256];
- static int one = 1;
- int bad = 0;
-
- if (!hex['0']) {
- s = "0123456789";
- while(ch = *s++)
- hex[ch] = ch - '0' + 1;
- s = "ABCDEF";
- while(ch = *s++)
- hex[ch] = hex[ch + 'a' - 'A'] = ch - 'A' + 11;
- }
- s = s0 = (char *)x;
- s1 = (char *)&x[4];
- se = (char *)&x[8];
- if (len > 4*sizeof(long))
- return errno = 117;
- while (w) {
- GET(ch);
- if (ch==',' || ch=='\n')
- break;
- w--;
- if (ch > ' ') {
- if (!hex[ch & 0xff])
- bad++;
- *s++ = ch;
- if (s == se) {
- /* discard excess characters */
- for(t = s0, s = s1; t < s1;)
- *t++ = *s++;
- s = s1;
- }
- }
- }
- if (bad)
- return errno = 115;
- w = (int)len;
- w1 = s - s0;
- w2 = w1+1 >> 1;
- t = (char *)n;
- if (*(char *)&one) {
- /* little endian */
- t += w - 1;
- i = -1;
- }
- else
- i = 1;
- for(; w > w2; t += i, --w)
- *t = 0;
- if (!w)
- return 0;
- if (w < w2)
- s0 = s - (w << 1);
- else if (w1 & 1) {
- *t = hex[*s0++ & 0xff] - 1;
- if (!--w)
- return 0;
- t += i;
- }
- do {
- *t = hex[*s0 & 0xff]-1 << 4 | hex[s0[1] & 0xff]-1;
- t += i;
- s0 += 2;
- }
- while(--w);
- return 0;
- }
-
- static int
-#ifdef KR_headers
-rd_I(n,w,len, base) Uint *n; int w; ftnlen len; register int base;
-#else
-rd_I(Uint *n, int w, ftnlen len, register int base)
-#endif
-{
- int ch, sign;
- longint x = 0;
-
- if (w <= 0)
- goto have_x;
- for(;;) {
- GET(ch);
- if (ch != ' ')
- break;
- if (!--w)
- goto have_x;
- }
- sign = 0;
- switch(ch) {
- case ',':
- case '\n':
- w = 0;
- goto have_x;
- case '-':
- sign = 1;
- case '+':
- break;
- default:
- if (ch >= '0' && ch <= '9') {
- x = ch - '0';
- break;
- }
- goto have_x;
- }
- while(--w) {
- GET(ch);
- if (ch >= '0' && ch <= '9') {
- x = x*base + ch - '0';
- continue;
- }
- if (ch != ' ') {
- if (ch == '\n' || ch == ',')
- w = 0;
- break;
- }
- if (f__cblank)
- x *= base;
- }
- if (sign)
- x = -x;
- have_x:
- if(len == sizeof(integer))
- n->il=x;
- else if(len == sizeof(char))
- n->ic = (char)x;
-#ifdef Allow_TYQUAD
- else if (len == sizeof(longint))
- n->ili = x;
-#endif
- else
- n->is = (short)x;
- if (w) {
- while(--w)
- GET(ch);
- return errno = 115;
- }
- return 0;
-}
-
- static int
-#ifdef KR_headers
-rd_L(n,w,len) ftnint *n; ftnlen len;
-#else
-rd_L(ftnint *n, int w, ftnlen len)
-#endif
-{ int ch, dot, lv;
-
- if (w <= 0)
- goto bad;
- for(;;) {
- GET(ch);
- --w;
- if (ch != ' ')
- break;
- if (!w)
- goto bad;
- }
- dot = 0;
- retry:
- switch(ch) {
- case '.':
- if (dot++ || !w)
- goto bad;
- GET(ch);
- --w;
- goto retry;
- case 't':
- case 'T':
- lv = 1;
- break;
- case 'f':
- case 'F':
- lv = 0;
- break;
- default:
- bad:
- for(; w > 0; --w)
- GET(ch);
- /* no break */
- case ',':
- case '\n':
- return errno = 116;
- }
- switch(len) {
- case sizeof(char): *(char *)n = (char)lv; break;
- case sizeof(short): *(short *)n = (short)lv; break;
- default: *n = lv;
- }
- while(w-- > 0) {
- GET(ch);
- if (ch == ',' || ch == '\n')
- break;
- }
- return 0;
-}
-
- static int
-#ifdef KR_headers
-rd_F(p, w, d, len) ufloat *p; ftnlen len;
-#else
-rd_F(ufloat *p, int w, int d, ftnlen len)
-#endif
-{
- char s[FMAX+EXPMAXDIGS+4];
- register int ch;
- register char *sp, *spe, *sp1;
- double x;
- int scale1, se;
- long e, exp;
-
- sp1 = sp = s;
- spe = sp + FMAX;
- exp = -d;
- x = 0.;
-
- do {
- GET(ch);
- w--;
- } while (ch == ' ' && w);
- switch(ch) {
- case '-': *sp++ = ch; sp1++; spe++;
- case '+':
- if (!w) goto zero;
- --w;
- GET(ch);
- }
- while(ch == ' ') {
-blankdrop:
- if (!w--) goto zero; GET(ch); }
- while(ch == '0')
- { if (!w--) goto zero; GET(ch); }
- if (ch == ' ' && f__cblank)
- goto blankdrop;
- scale1 = f__scale;
- while(isdigit(ch)) {
-digloop1:
- if (sp < spe) *sp++ = ch;
- else ++exp;
-digloop1e:
- if (!w--) goto done;
- GET(ch);
- }
- if (ch == ' ') {
- if (f__cblank)
- { ch = '0'; goto digloop1; }
- goto digloop1e;
- }
- if (ch == '.') {
- exp += d;
- if (!w--) goto done;
- GET(ch);
- if (sp == sp1) { /* no digits yet */
- while(ch == '0') {
-skip01:
- --exp;
-skip0:
- if (!w--) goto done;
- GET(ch);
- }
- if (ch == ' ') {
- if (f__cblank) goto skip01;
- goto skip0;
- }
- }
- while(isdigit(ch)) {
-digloop2:
- if (sp < spe)
- { *sp++ = ch; --exp; }
-digloop2e:
- if (!w--) goto done;
- GET(ch);
- }
- if (ch == ' ') {
- if (f__cblank)
- { ch = '0'; goto digloop2; }
- goto digloop2e;
- }
- }
- switch(ch) {
- default:
- break;
- case '-': se = 1; goto signonly;
- case '+': se = 0; goto signonly;
- case 'e':
- case 'E':
- case 'd':
- case 'D':
- if (!w--)
- goto bad;
- GET(ch);
- while(ch == ' ') {
- if (!w--)
- goto bad;
- GET(ch);
- }
- se = 0;
- switch(ch) {
- case '-': se = 1;
- case '+':
-signonly:
- if (!w--)
- goto bad;
- GET(ch);
- }
- while(ch == ' ') {
- if (!w--)
- goto bad;
- GET(ch);
- }
- if (!isdigit(ch))
- goto bad;
-
- e = ch - '0';
- for(;;) {
- if (!w--)
- { ch = '\n'; break; }
- GET(ch);
- if (!isdigit(ch)) {
- if (ch == ' ') {
- if (f__cblank)
- ch = '0';
- else continue;
- }
- else
- break;
- }
- e = 10*e + ch - '0';
- if (e > EXPMAX && sp > sp1)
- goto bad;
- }
- if (se)
- exp -= e;
- else
- exp += e;
- scale1 = 0;
- }
- switch(ch) {
- case '\n':
- case ',':
- break;
- default:
-bad:
- return (errno = 115);
- }
-done:
- if (sp > sp1) {
- while(*--sp == '0')
- ++exp;
- if (exp -= scale1)
- sprintf(sp+1, "e%ld", exp);
- else
- sp[1] = 0;
- x = atof(s);
- }
-zero:
- if (len == sizeof(real))
- p->pf = x;
- else
- p->pd = x;
- return(0);
- }
-
-
- static int
-#ifdef KR_headers
-rd_A(p,len) char *p; ftnlen len;
-#else
-rd_A(char *p, ftnlen len)
-#endif
-{ int i,ch;
- for(i=0;i<len;i++)
- { GET(ch);
- *p++=VAL(ch);
- }
- return(0);
-}
- static int
-#ifdef KR_headers
-rd_AW(p,w,len) char *p; ftnlen len;
-#else
-rd_AW(char *p, int w, ftnlen len)
-#endif
-{ int i,ch;
- if(w>=len)
- { for(i=0;i<w-len;i++)
- GET(ch);
- for(i=0;i<len;i++)
- { GET(ch);
- *p++=VAL(ch);
- }
- return(0);
- }
- for(i=0;i<w;i++)
- { GET(ch);
- *p++=VAL(ch);
- }
- for(i=0;i<len-w;i++) *p++=' ';
- return(0);
-}
- static int
-#ifdef KR_headers
-rd_H(n,s) char *s;
-#else
-rd_H(int n, char *s)
-#endif
-{ int i,ch;
- for(i=0;i<n;i++)
- if((ch=(*f__getn)())<0) return(ch);
- else *s++ = ch=='\n'?' ':ch;
- return(1);
-}
- static int
-#ifdef KR_headers
-rd_POS(s) char *s;
-#else
-rd_POS(char *s)
-#endif
-{ char quote;
- int ch;
- quote= *s++;
- for(;*s;s++)
- if(*s==quote && *(s+1)!=quote) break;
- else if((ch=(*f__getn)())<0) return(ch);
- else *s = ch=='\n'?' ':ch;
- return(1);
-}
-
- int
-#ifdef KR_headers
-rd_ed(p,ptr,len) struct syl *p; char *ptr; ftnlen len;
-#else
-rd_ed(struct syl *p, char *ptr, ftnlen len)
-#endif
-{ int ch;
- for(;f__cursor>0;f__cursor--) if((ch=(*f__getn)())<0) return(ch);
- if(f__cursor<0)
- { if(f__recpos+f__cursor < 0) /*err(elist->cierr,110,"fmt")*/
- f__cursor = -f__recpos; /* is this in the standard? */
- if(f__external == 0) {
- extern char *f__icptr;
- f__icptr += f__cursor;
- }
- else if(f__curunit && f__curunit->useek)
- (void) FSEEK(f__cf, f__cursor,SEEK_CUR);
- else
- err(f__elist->cierr,106,"fmt");
- f__recpos += f__cursor;
- f__cursor=0;
- }
- switch(p->op)
- {
- default: fprintf(stderr,"rd_ed, unexpected code: %d\n", p->op);
- sig_die(f__fmtbuf, 1);
- case IM:
- case I: ch = rd_I((Uint *)ptr,p->p1,len, 10);
- break;
-
- /* O and OM don't work right for character, double, complex, */
- /* or doublecomplex, and they differ from Fortran 90 in */
- /* showing a minus sign for negative values. */
-
- case OM:
- case O: ch = rd_I((Uint *)ptr, p->p1, len, 8);
- break;
- case L: ch = rd_L((ftnint *)ptr,p->p1,len);
- break;
- case A: ch = rd_A(ptr,len);
- break;
- case AW:
- ch = rd_AW(ptr,p->p1,len);
- break;
- case E: case EE:
- case D:
- case G:
- case GE:
- case F: ch = rd_F((ufloat *)ptr,p->p1,p->p2.i[0],len);
- break;
-
- /* Z and ZM assume 8-bit bytes. */
-
- case ZM:
- case Z:
- ch = rd_Z((Uint *)ptr, p->p1, len);
- break;
- }
- if(ch == 0) return(ch);
- else if(ch == EOF) return(EOF);
- if (f__cf)
- clearerr(f__cf);
- return(errno);
-}
-
- int
-#ifdef KR_headers
-rd_ned(p) struct syl *p;
-#else
-rd_ned(struct syl *p)
-#endif
-{
- switch(p->op)
- {
- default: fprintf(stderr,"rd_ned, unexpected code: %d\n", p->op);
- sig_die(f__fmtbuf, 1);
- case APOS:
- return(rd_POS(p->p2.s));
- case H: return(rd_H(p->p1,p->p2.s));
- case SLASH: return((*f__donewrec)());
- case TR:
- case X: f__cursor += p->p1;
- return(1);
- case T: f__cursor=p->p1-f__recpos - 1;
- return(1);
- case TL: f__cursor -= p->p1;
- if(f__cursor < -f__recpos) /* TL1000, 1X */
- f__cursor = -f__recpos;
- return(1);
- }
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/rewind.c b/Build/source/utils/pmx/pmx-src/libf2c/rewind.c
deleted file mode 100644
index 9a0e07e6cfa..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/rewind.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef KR_headers
-integer f_rew(a) alist *a;
-#else
-integer f_rew(alist *a)
-#endif
-{
- unit *b;
- if(a->aunit>=MXUNIT || a->aunit<0)
- err(a->aerr,101,"rewind");
- b = &f__units[a->aunit];
- if(b->ufd == NULL || b->uwrt == 3)
- return(0);
- if(!b->useek)
- err(a->aerr,106,"rewind")
- if(b->uwrt) {
- (void) t_runc(a);
- b->uwrt = 3;
- }
- rewind(b->ufd);
- b->uend=0;
- return(0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/rsfe.c b/Build/source/utils/pmx/pmx-src/libf2c/rsfe.c
deleted file mode 100644
index abe9724a7b8..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/rsfe.c
+++ /dev/null
@@ -1,91 +0,0 @@
-/* read sequential formatted external */
-#include "f2c.h"
-#include "fio.h"
-#include "fmt.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- int
-xrd_SL(Void)
-{ int ch;
- if(!f__curunit->uend)
- while((ch=getc(f__cf))!='\n')
- if (ch == EOF) {
- f__curunit->uend = 1;
- break;
- }
- f__cursor=f__recpos=0;
- return(1);
-}
-
- int
-x_getc(Void)
-{ int ch;
- if(f__curunit->uend) return(EOF);
- ch = getc(f__cf);
- if(ch!=EOF && ch!='\n')
- { f__recpos++;
- return(ch);
- }
- if(ch=='\n')
- { (void) ungetc(ch,f__cf);
- return(ch);
- }
- if(f__curunit->uend || feof(f__cf))
- { errno=0;
- f__curunit->uend=1;
- return(-1);
- }
- return(-1);
-}
-
- int
-x_endp(Void)
-{
- xrd_SL();
- return f__curunit->uend == 1 ? EOF : 0;
-}
-
- int
-x_rev(Void)
-{
- (void) xrd_SL();
- return(0);
-}
-#ifdef KR_headers
-integer s_rsfe(a) cilist *a; /* start */
-#else
-integer s_rsfe(cilist *a) /* start */
-#endif
-{ int n;
- if(!f__init) f_init();
- f__reading=1;
- f__sequential=1;
- f__formatted=1;
- f__external=1;
- if(n=c_sfe(a)) return(n);
- f__elist=a;
- f__cursor=f__recpos=0;
- f__scale=0;
- f__fmtbuf=a->cifmt;
- f__cf=f__curunit->ufd;
- if(pars_f(f__fmtbuf)<0) err(a->cierr,100,"startio");
- f__getn= x_getc;
- f__doed= rd_ed;
- f__doned= rd_ned;
- fmt_bg();
- f__doend=x_endp;
- f__donewrec=xrd_SL;
- f__dorevert=x_rev;
- f__cblank=f__curunit->ublnk;
- f__cplus=0;
- if(f__curunit->uwrt && f__nowreading(f__curunit))
- err(a->cierr,errno,"read start");
- if(f__curunit->uend)
- err(f__elist->ciend,(EOF),"read start");
- return(0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/rsli.c b/Build/source/utils/pmx/pmx-src/libf2c/rsli.c
deleted file mode 100644
index 3d4ea428fc9..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/rsli.c
+++ /dev/null
@@ -1,109 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "lio.h"
-#include "fmt.h" /* for f__doend */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern flag f__lquit;
-extern int f__lcount;
-extern char *f__icptr;
-extern char *f__icend;
-extern icilist *f__svic;
-extern int f__icnum, f__recpos;
-
-static int i_getc(Void)
-{
- if(f__recpos >= f__svic->icirlen) {
- if (f__recpos++ == f__svic->icirlen)
- return '\n';
- z_rnew();
- }
- f__recpos++;
- if(f__icptr >= f__icend)
- return EOF;
- return(*f__icptr++);
- }
-
- static
-#ifdef KR_headers
-int i_ungetc(ch, f) int ch; FILE *f;
-#else
-int i_ungetc(int ch, FILE *f)
-#endif
-{
- if (--f__recpos == f__svic->icirlen)
- return '\n';
- if (f__recpos < -1)
- err(f__svic->icierr,110,"recend");
- /* *--icptr == ch, and icptr may point to read-only memory */
- return *--f__icptr /* = ch */;
- }
-
- static void
-#ifdef KR_headers
-c_lir(a) icilist *a;
-#else
-c_lir(icilist *a)
-#endif
-{
- extern int l_eof;
- f__reading = 1;
- f__external = 0;
- f__formatted = 1;
- f__svic = a;
- L_len = a->icirlen;
- f__recpos = -1;
- f__icnum = f__recpos = 0;
- f__cursor = 0;
- l_getc = i_getc;
- l_ungetc = i_ungetc;
- l_eof = 0;
- f__icptr = a->iciunit;
- f__icend = f__icptr + a->icirlen*a->icirnum;
- f__cf = 0;
- f__curunit = 0;
- f__elist = (cilist *)a;
- }
-
-
-#ifdef KR_headers
-integer s_rsli(a) icilist *a;
-#else
-integer s_rsli(icilist *a)
-#endif
-{
- f__lioproc = l_read;
- f__lquit = 0;
- f__lcount = 0;
- c_lir(a);
- f__doend = 0;
- return(0);
- }
-
-integer e_rsli(Void)
-{ return 0; }
-
-#ifdef KR_headers
-integer s_rsni(a) icilist *a;
-#else
-extern int x_rsne(cilist*);
-
-integer s_rsni(icilist *a)
-#endif
-{
- extern int nml_read;
- integer rv;
- cilist ca;
- ca.ciend = a->iciend;
- ca.cierr = a->icierr;
- ca.cifmt = a->icifmt;
- c_lir(a);
- rv = x_rsne(&ca);
- nml_read = 0;
- return rv;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/rsne.c b/Build/source/utils/pmx/pmx-src/libf2c/rsne.c
deleted file mode 100644
index 3a32c40b259..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/rsne.c
+++ /dev/null
@@ -1,615 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "lio.h"
-
-#define MAX_NL_CACHE 3 /* maximum number of namelist hash tables to cache */
-#define MAXDIM 20 /* maximum number of subscripts */
-
- struct dimen {
- ftnlen extent;
- ftnlen curval;
- ftnlen delta;
- ftnlen stride;
- };
- typedef struct dimen dimen;
-
- struct hashentry {
- struct hashentry *next;
- char *name;
- Vardesc *vd;
- };
- typedef struct hashentry hashentry;
-
- struct hashtab {
- struct hashtab *next;
- Namelist *nl;
- int htsize;
- hashentry *tab[1];
- };
- typedef struct hashtab hashtab;
-
- static hashtab *nl_cache;
- static int n_nlcache;
- static hashentry **zot;
- static int colonseen;
- extern ftnlen f__typesize[];
-
- extern flag f__lquit;
- extern int f__lcount, nml_read;
- extern int t_getc(Void);
-
-#ifdef KR_headers
- extern char *malloc(), *memset();
-
-#ifdef ungetc
- static int
-un_getc(x,f__cf) int x; FILE *f__cf;
-{ return ungetc(x,f__cf); }
-#else
-#define un_getc ungetc
- extern int ungetc();
-#endif
-
-#else
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#include "string.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef ungetc
- static int
-un_getc(int x, FILE *f__cf)
-{ return ungetc(x,f__cf); }
-#else
-#define un_getc ungetc
-#endif
-#endif
-
- static Vardesc *
-#ifdef KR_headers
-hash(ht, s) hashtab *ht; register char *s;
-#else
-hash(hashtab *ht, register char *s)
-#endif
-{
- register int c, x;
- register hashentry *h;
- char *s0 = s;
-
- for(x = 0; c = *s++; x = x & 0x4000 ? ((x << 1) & 0x7fff) + 1 : x << 1)
- x += c;
- for(h = *(zot = ht->tab + x % ht->htsize); h; h = h->next)
- if (!strcmp(s0, h->name))
- return h->vd;
- return 0;
- }
-
- hashtab *
-#ifdef KR_headers
-mk_hashtab(nl) Namelist *nl;
-#else
-mk_hashtab(Namelist *nl)
-#endif
-{
- int nht, nv;
- hashtab *ht;
- Vardesc *v, **vd, **vde;
- hashentry *he;
-
- hashtab **x, **x0, *y;
- for(x = &nl_cache; y = *x; x0 = x, x = &y->next)
- if (nl == y->nl)
- return y;
- if (n_nlcache >= MAX_NL_CACHE) {
- /* discard least recently used namelist hash table */
- y = *x0;
- free((char *)y->next);
- y->next = 0;
- }
- else
- n_nlcache++;
- nv = nl->nvars;
- if (nv >= 0x4000)
- nht = 0x7fff;
- else {
- for(nht = 1; nht < nv; nht <<= 1);
- nht += nht - 1;
- }
- ht = (hashtab *)malloc(sizeof(hashtab) + (nht-1)*sizeof(hashentry *)
- + nv*sizeof(hashentry));
- if (!ht)
- return 0;
- he = (hashentry *)&ht->tab[nht];
- ht->nl = nl;
- ht->htsize = nht;
- ht->next = nl_cache;
- nl_cache = ht;
- memset((char *)ht->tab, 0, nht*sizeof(hashentry *));
- vd = nl->vars;
- vde = vd + nv;
- while(vd < vde) {
- v = *vd++;
- if (!hash(ht, v->name)) {
- he->next = *zot;
- *zot = he;
- he->name = v->name;
- he->vd = v;
- he++;
- }
- }
- return ht;
- }
-
-static char Alpha[256], Alphanum[256];
-
- static VOID
-nl_init(Void) {
- register char *s;
- register int c;
-
- if(!f__init)
- f_init();
- for(s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; c = *s++; )
- Alpha[c]
- = Alphanum[c]
- = Alpha[c + 'a' - 'A']
- = Alphanum[c + 'a' - 'A']
- = c;
- for(s = "0123456789_"; c = *s++; )
- Alphanum[c] = c;
- }
-
-#define GETC(x) (x=(*l_getc)())
-#define Ungetc(x,y) (*l_ungetc)(x,y)
-
- static int
-#ifdef KR_headers
-getname(s, slen) register char *s; int slen;
-#else
-getname(register char *s, int slen)
-#endif
-{
- register char *se = s + slen - 1;
- register int ch;
-
- GETC(ch);
- if (!(*s++ = Alpha[ch & 0xff])) {
- if (ch != EOF)
- ch = 115;
- errfl(f__elist->cierr, ch, "namelist read");
- }
- while(*s = Alphanum[GETC(ch) & 0xff])
- if (s < se)
- s++;
- if (ch == EOF)
- err(f__elist->cierr, EOF, "namelist read");
- if (ch > ' ')
- Ungetc(ch,f__cf);
- return *s = 0;
- }
-
- static int
-#ifdef KR_headers
-getnum(chp, val) int *chp; ftnlen *val;
-#else
-getnum(int *chp, ftnlen *val)
-#endif
-{
- register int ch, sign;
- register ftnlen x;
-
- while(GETC(ch) <= ' ' && ch >= 0);
- if (ch == '-') {
- sign = 1;
- GETC(ch);
- }
- else {
- sign = 0;
- if (ch == '+')
- GETC(ch);
- }
- x = ch - '0';
- if (x < 0 || x > 9)
- return 115;
- while(GETC(ch) >= '0' && ch <= '9')
- x = 10*x + ch - '0';
- while(ch <= ' ' && ch >= 0)
- GETC(ch);
- if (ch == EOF)
- return EOF;
- *val = sign ? -x : x;
- *chp = ch;
- return 0;
- }
-
- static int
-#ifdef KR_headers
-getdimen(chp, d, delta, extent, x1)
- int *chp; dimen *d; ftnlen delta, extent, *x1;
-#else
-getdimen(int *chp, dimen *d, ftnlen delta, ftnlen extent, ftnlen *x1)
-#endif
-{
- register int k;
- ftnlen x2, x3;
-
- if (k = getnum(chp, x1))
- return k;
- x3 = 1;
- if (*chp == ':') {
- if (k = getnum(chp, &x2))
- return k;
- x2 -= *x1;
- if (*chp == ':') {
- if (k = getnum(chp, &x3))
- return k;
- if (!x3)
- return 123;
- x2 /= x3;
- colonseen = 1;
- }
- if (x2 < 0 || x2 >= extent)
- return 123;
- d->extent = x2 + 1;
- }
- else
- d->extent = 1;
- d->curval = 0;
- d->delta = delta;
- d->stride = x3;
- return 0;
- }
-
-#ifndef No_Namelist_Questions
- static Void
-#ifdef KR_headers
-print_ne(a) cilist *a;
-#else
-print_ne(cilist *a)
-#endif
-{
- flag intext = f__external;
- int rpsave = f__recpos;
- FILE *cfsave = f__cf;
- unit *usave = f__curunit;
- cilist t;
- t = *a;
- t.ciunit = 6;
- s_wsne(&t);
- fflush(f__cf);
- f__external = intext;
- f__reading = 1;
- f__recpos = rpsave;
- f__cf = cfsave;
- f__curunit = usave;
- f__elist = a;
- }
-#endif
-
- static char where0[] = "namelist read start ";
-
- int
-#ifdef KR_headers
-x_rsne(a) cilist *a;
-#else
-x_rsne(cilist *a)
-#endif
-{
- int ch, got1, k, n, nd, quote, readall;
- Namelist *nl;
- static char where[] = "namelist read";
- char buf[64];
- hashtab *ht;
- Vardesc *v;
- dimen *dn, *dn0, *dn1;
- ftnlen *dims, *dims1;
- ftnlen b, b0, b1, ex, no, nomax, size, span;
- ftnint no1, no2, type;
- char *vaddr;
- long iva, ivae;
- dimen dimens[MAXDIM], substr;
-
- if (!Alpha['a'])
- nl_init();
- f__reading=1;
- f__formatted=1;
- got1 = 0;
- top:
- for(;;) switch(GETC(ch)) {
- case EOF:
- eof:
- err(a->ciend,(EOF),where0);
- case '&':
- case '$':
- goto have_amp;
-#ifndef No_Namelist_Questions
- case '?':
- print_ne(a);
- continue;
-#endif
- default:
- if (ch <= ' ' && ch >= 0)
- continue;
-#ifndef No_Namelist_Comments
- while(GETC(ch) != '\n')
- if (ch == EOF)
- goto eof;
-#else
- errfl(a->cierr, 115, where0);
-#endif
- }
- have_amp:
- if (ch = getname(buf,sizeof(buf)))
- return ch;
- nl = (Namelist *)a->cifmt;
- if (strcmp(buf, nl->name))
-#ifdef No_Bad_Namelist_Skip
- errfl(a->cierr, 118, where0);
-#else
- {
- fprintf(stderr,
- "Skipping namelist \"%s\": seeking namelist \"%s\".\n",
- buf, nl->name);
- fflush(stderr);
- for(;;) switch(GETC(ch)) {
- case EOF:
- err(a->ciend, EOF, where0);
- case '/':
- case '&':
- case '$':
- if (f__external)
- e_rsle();
- else
- z_rnew();
- goto top;
- case '"':
- case '\'':
- quote = ch;
- more_quoted:
- while(GETC(ch) != quote)
- if (ch == EOF)
- err(a->ciend, EOF, where0);
- if (GETC(ch) == quote)
- goto more_quoted;
- Ungetc(ch,f__cf);
- default:
- continue;
- }
- }
-#endif
- ht = mk_hashtab(nl);
- if (!ht)
- errfl(f__elist->cierr, 113, where0);
- for(;;) {
- for(;;) switch(GETC(ch)) {
- case EOF:
- if (got1)
- return 0;
- err(a->ciend, EOF, where0);
- case '/':
- case '$':
- case '&':
- return 0;
- default:
- if (ch <= ' ' && ch >= 0 || ch == ',')
- continue;
- Ungetc(ch,f__cf);
- if (ch = getname(buf,sizeof(buf)))
- return ch;
- goto havename;
- }
- havename:
- v = hash(ht,buf);
- if (!v)
- errfl(a->cierr, 119, where);
- while(GETC(ch) <= ' ' && ch >= 0);
- vaddr = v->addr;
- type = v->type;
- if (type < 0) {
- size = -type;
- type = TYCHAR;
- }
- else
- size = f__typesize[type];
- ivae = size;
- iva = readall = 0;
- if (ch == '(' /*)*/ ) {
- dn = dimens;
- if (!(dims = v->dims)) {
- if (type != TYCHAR)
- errfl(a->cierr, 122, where);
- if (k = getdimen(&ch, dn, (ftnlen)size,
- (ftnlen)size, &b))
- errfl(a->cierr, k, where);
- if (ch != ')')
- errfl(a->cierr, 115, where);
- b1 = dn->extent;
- if (--b < 0 || b + b1 > size)
- return 124;
- iva += b;
- size = b1;
- while(GETC(ch) <= ' ' && ch >= 0);
- goto scalar;
- }
- nd = (int)dims[0];
- nomax = span = dims[1];
- ivae = iva + size*nomax;
- colonseen = 0;
- if (k = getdimen(&ch, dn, size, nomax, &b))
- errfl(a->cierr, k, where);
- no = dn->extent;
- b0 = dims[2];
- dims1 = dims += 3;
- ex = 1;
- for(n = 1; n++ < nd; dims++) {
- if (ch != ',')
- errfl(a->cierr, 115, where);
- dn1 = dn + 1;
- span /= *dims;
- if (k = getdimen(&ch, dn1, dn->delta**dims,
- span, &b1))
- errfl(a->cierr, k, where);
- ex *= *dims;
- b += b1*ex;
- no *= dn1->extent;
- dn = dn1;
- }
- if (ch != ')')
- errfl(a->cierr, 115, where);
- readall = 1 - colonseen;
- b -= b0;
- if (b < 0 || b >= nomax)
- errfl(a->cierr, 125, where);
- iva += size * b;
- dims = dims1;
- while(GETC(ch) <= ' ' && ch >= 0);
- no1 = 1;
- dn0 = dimens;
- if (type == TYCHAR && ch == '(' /*)*/) {
- if (k = getdimen(&ch, &substr, size, size, &b))
- errfl(a->cierr, k, where);
- if (ch != ')')
- errfl(a->cierr, 115, where);
- b1 = substr.extent;
- if (--b < 0 || b + b1 > size)
- return 124;
- iva += b;
- b0 = size;
- size = b1;
- while(GETC(ch) <= ' ' && ch >= 0);
- if (b1 < b0)
- goto delta_adj;
- }
- if (readall)
- goto delta_adj;
- for(; dn0 < dn; dn0++) {
- if (dn0->extent != *dims++ || dn0->stride != 1)
- break;
- no1 *= dn0->extent;
- }
- if (dn0 == dimens && dimens[0].stride == 1) {
- no1 = dimens[0].extent;
- dn0++;
- }
- delta_adj:
- ex = 0;
- for(dn1 = dn0; dn1 <= dn; dn1++)
- ex += (dn1->extent-1)
- * (dn1->delta *= dn1->stride);
- for(dn1 = dn; dn1 > dn0; dn1--) {
- ex -= (dn1->extent - 1) * dn1->delta;
- dn1->delta -= ex;
- }
- }
- else if (dims = v->dims) {
- no = no1 = dims[1];
- ivae = iva + no*size;
- }
- else
- scalar:
- no = no1 = 1;
- if (ch != '=')
- errfl(a->cierr, 115, where);
- got1 = nml_read = 1;
- f__lcount = 0;
- readloop:
- for(;;) {
- if (iva >= ivae || iva < 0) {
- f__lquit = 1;
- goto mustend;
- }
- else if (iva + no1*size > ivae)
- no1 = (ivae - iva)/size;
- f__lquit = 0;
- if (k = l_read(&no1, vaddr + iva, size, type))
- return k;
- if (f__lquit == 1)
- return 0;
- if (readall) {
- iva += dn0->delta;
- if (f__lcount > 0) {
- no2 = (ivae - iva)/size;
- if (no2 > f__lcount)
- no2 = f__lcount;
- if (k = l_read(&no2, vaddr + iva,
- size, type))
- return k;
- iva += no2 * dn0->delta;
- }
- }
- mustend:
- GETC(ch);
- if (readall)
- if (iva >= ivae)
- readall = 0;
- else for(;;) {
- switch(ch) {
- case ' ':
- case '\t':
- case '\n':
- GETC(ch);
- continue;
- }
- break;
- }
- if (ch == '/' || ch == '$' || ch == '&') {
- f__lquit = 1;
- return 0;
- }
- else if (f__lquit) {
- while(ch <= ' ' && ch >= 0)
- GETC(ch);
- Ungetc(ch,f__cf);
- if (!Alpha[ch & 0xff] && ch >= 0)
- errfl(a->cierr, 125, where);
- break;
- }
- Ungetc(ch,f__cf);
- if (readall && !Alpha[ch & 0xff])
- goto readloop;
- if ((no -= no1) <= 0)
- break;
- for(dn1 = dn0; dn1 <= dn; dn1++) {
- if (++dn1->curval < dn1->extent) {
- iva += dn1->delta;
- goto readloop;
- }
- dn1->curval = 0;
- }
- break;
- }
- }
- }
-
- integer
-#ifdef KR_headers
-s_rsne(a) cilist *a;
-#else
-s_rsne(cilist *a)
-#endif
-{
- extern int l_eof;
- int n;
-
- f__external=1;
- l_eof = 0;
- if(n = c_le(a))
- return n;
- if(f__curunit->uwrt && f__nowreading(f__curunit))
- err(a->cierr,errno,where0);
- l_getc = t_getc;
- l_ungetc = un_getc;
- f__doend = xrd_SL;
- n = x_rsne(a);
- nml_read = 0;
- if (n)
- return n;
- return e_rsle();
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/s_cat.c b/Build/source/utils/pmx/pmx-src/libf2c/s_cat.c
deleted file mode 100644
index 5bf8a628ac0..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/s_cat.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/* Unless compiled with -DNO_OVERWRITE, this variant of s_cat allows the
- * target of a concatenation to appear on its right-hand side (contrary
- * to the Fortran 77 Standard, but in accordance with Fortran 90).
- */
-
-#include "f2c.h"
-#ifndef NO_OVERWRITE
-#include "stdio.h"
-#undef abs
-#ifdef KR_headers
- extern char *F77_aloc();
- extern void free();
- extern void exit_();
-#else
-#undef min
-#undef max
-#include "stdlib.h"
-extern
-#ifdef __cplusplus
- "C"
-#endif
- char *F77_aloc(ftnlen, char*);
-#endif
-#include "string.h"
-#endif /* NO_OVERWRITE */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- VOID
-#ifdef KR_headers
-s_cat(lp, rpp, rnp, np, ll) char *lp, *rpp[]; ftnint rnp[], *np; ftnlen ll;
-#else
-s_cat(char *lp, char *rpp[], ftnint rnp[], ftnint *np, ftnlen ll)
-#endif
-{
- ftnlen i, nc;
- char *rp;
- ftnlen n = *np;
-#ifndef NO_OVERWRITE
- ftnlen L, m;
- char *lp0, *lp1;
-
- lp0 = 0;
- lp1 = lp;
- L = ll;
- i = 0;
- while(i < n) {
- rp = rpp[i];
- m = rnp[i++];
- if (rp >= lp1 || rp + m <= lp) {
- if ((L -= m) <= 0) {
- n = i;
- break;
- }
- lp1 += m;
- continue;
- }
- lp0 = lp;
- lp = lp1 = F77_aloc(L = ll, "s_cat");
- break;
- }
- lp1 = lp;
-#endif /* NO_OVERWRITE */
- for(i = 0 ; i < n ; ++i) {
- nc = ll;
- if(rnp[i] < nc)
- nc = rnp[i];
- ll -= nc;
- rp = rpp[i];
- while(--nc >= 0)
- *lp++ = *rp++;
- }
- while(--ll >= 0)
- *lp++ = ' ';
-#ifndef NO_OVERWRITE
- if (lp0) {
- memcpy(lp0, lp1, L);
- free(lp1);
- }
-#endif
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/s_cmp.c b/Build/source/utils/pmx/pmx-src/libf2c/s_cmp.c
deleted file mode 100644
index 3a2ea67ddf0..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/s_cmp.c
+++ /dev/null
@@ -1,50 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* compare two strings */
-
-#ifdef KR_headers
-integer s_cmp(a0, b0, la, lb) char *a0, *b0; ftnlen la, lb;
-#else
-integer s_cmp(char *a0, char *b0, ftnlen la, ftnlen lb)
-#endif
-{
-register unsigned char *a, *aend, *b, *bend;
-a = (unsigned char *)a0;
-b = (unsigned char *)b0;
-aend = a + la;
-bend = b + lb;
-
-if(la <= lb)
- {
- while(a < aend)
- if(*a != *b)
- return( *a - *b );
- else
- { ++a; ++b; }
-
- while(b < bend)
- if(*b != ' ')
- return( ' ' - *b );
- else ++b;
- }
-
-else
- {
- while(b < bend)
- if(*a == *b)
- { ++a; ++b; }
- else
- return( *a - *b );
- while(a < aend)
- if(*a != ' ')
- return(*a - ' ');
- else ++a;
- }
-return(0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/s_copy.c b/Build/source/utils/pmx/pmx-src/libf2c/s_copy.c
deleted file mode 100644
index 9dacfc7d8d2..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/s_copy.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/* Unless compiled with -DNO_OVERWRITE, this variant of s_copy allows the
- * target of an assignment to appear on its right-hand side (contrary
- * to the Fortran 77 Standard, but in accordance with Fortran 90),
- * as in a(2:5) = a(4:7) .
- */
-
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* assign strings: a = b */
-
-#ifdef KR_headers
-VOID s_copy(a, b, la, lb) register char *a, *b; ftnlen la, lb;
-#else
-void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb)
-#endif
-{
- register char *aend, *bend;
-
- aend = a + la;
-
- if(la <= lb)
-#ifndef NO_OVERWRITE
- if (a <= b || a >= b + la)
-#endif
- while(a < aend)
- *a++ = *b++;
-#ifndef NO_OVERWRITE
- else
- for(b += la; a < aend; )
- *--aend = *--b;
-#endif
-
- else {
- bend = b + lb;
-#ifndef NO_OVERWRITE
- if (a <= b || a >= bend)
-#endif
- while(b < bend)
- *a++ = *b++;
-#ifndef NO_OVERWRITE
- else {
- a += lb;
- while(b < bend)
- *--a = *--bend;
- a += lb;
- }
-#endif
- while(a < aend)
- *a++ = ' ';
- }
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/s_paus.c b/Build/source/utils/pmx/pmx-src/libf2c/s_paus.c
deleted file mode 100644
index 51d80eb0878..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/s_paus.c
+++ /dev/null
@@ -1,96 +0,0 @@
-#include "stdio.h"
-#include "f2c.h"
-#define PAUSESIG 15
-
-#include "signal1.h"
-#ifdef KR_headers
-#define Void /* void */
-#define Int /* int */
-#else
-#define Void void
-#define Int int
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern int getpid(void), isatty(int), pause(void);
-#endif
-
-extern VOID f_exit(Void);
-
-#ifndef MSDOS
- static VOID
-waitpause(Sigarg)
-{ Use_Sigarg;
- return;
- }
-#endif
-
- static VOID
-#ifdef KR_headers
-s_1paus(fin) FILE *fin;
-#else
-s_1paus(FILE *fin)
-#endif
-{
- fprintf(stderr,
- "To resume execution, type go. Other input will terminate the job.\n");
- fflush(stderr);
- if( getc(fin)!='g' || getc(fin)!='o' || getc(fin)!='\n' ) {
- fprintf(stderr, "STOP\n");
-#ifdef NO_ONEXIT
- f_exit();
-#endif
- exit(0);
- }
- }
-
- int
-#ifdef KR_headers
-s_paus(s, n) char *s; ftnlen n;
-#else
-s_paus(char *s, ftnlen n)
-#endif
-{
- fprintf(stderr, "PAUSE ");
- if(n > 0)
- fprintf(stderr, " %.*s", (int)n, s);
- fprintf(stderr, " statement executed\n");
- if( isatty(fileno(stdin)) )
- s_1paus(stdin);
- else {
-#ifdef MSDOS
- FILE *fin;
- fin = fopen("con", "r");
- if (!fin) {
- fprintf(stderr, "s_paus: can't open con!\n");
- fflush(stderr);
- exit(1);
- }
- s_1paus(fin);
- fclose(fin);
-#else
- fprintf(stderr,
- "To resume execution, execute a kill -%d %d command\n",
- PAUSESIG, getpid() );
- signal1(PAUSESIG, waitpause);
- fflush(stderr);
- pause();
-#endif
- }
- fprintf(stderr, "Execution resumes after PAUSE.\n");
- fflush(stderr);
- return 0; /* NOT REACHED */
-#ifdef __cplusplus
- }
-#endif
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/s_rnge.c b/Build/source/utils/pmx/pmx-src/libf2c/s_rnge.c
deleted file mode 100644
index 5c12b949634..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/s_rnge.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include "stdio.h"
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* called when a subscript is out of range */
-
-#ifdef KR_headers
-extern VOID sig_die();
-integer s_rnge(varn, offset, procn, line) char *varn, *procn; ftnint offset, line;
-#else
-extern VOID sig_die(char*,int);
-integer s_rnge(char *varn, ftnint offset, char *procn, ftnint line)
-#endif
-{
-register int i;
-
-fprintf(stderr, "Subscript out of range on file line %ld, procedure ",
- (long)line);
-while((i = *procn) && i != '_' && i != ' ')
- putc(*procn++, stderr);
-fprintf(stderr, ".\nAttempt to access the %ld-th element of variable ",
- (long)offset+1);
-while((i = *varn) && i != ' ')
- putc(*varn++, stderr);
-sig_die(".", 1);
-return 0; /* not reached */
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/s_stop.c b/Build/source/utils/pmx/pmx-src/libf2c/s_stop.c
deleted file mode 100644
index 68233aea7e3..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/s_stop.c
+++ /dev/null
@@ -1,48 +0,0 @@
-#include "stdio.h"
-#include "f2c.h"
-
-#ifdef KR_headers
-extern void f_exit();
-int s_stop(s, n) char *s; ftnlen n;
-#else
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-void f_exit(void);
-
-int s_stop(char *s, ftnlen n)
-#endif
-{
-int i;
-
-if(n > 0)
- {
- fprintf(stderr, "STOP ");
- for(i = 0; i<n ; ++i)
- putc(*s++, stderr);
- fprintf(stderr, " statement executed\n");
- }
-#ifdef NO_ONEXIT
-f_exit();
-#endif
-exit(0);
-
-/* We cannot avoid (useless) compiler diagnostics here: */
-/* some compilers complain if there is no return statement, */
-/* and others complain that this one cannot be reached. */
-
-return 0; /* NOT REACHED */
-}
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/sfe.c b/Build/source/utils/pmx/pmx-src/libf2c/sfe.c
deleted file mode 100644
index 21e1f044645..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/sfe.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* sequential formatted external common routines*/
-#include "f2c.h"
-#include "fio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern char *f__fmtbuf;
-
-integer e_rsfe(Void)
-{ int n;
- n=en_fio();
- f__fmtbuf=NULL;
- return(n);
-}
-
- int
-#ifdef KR_headers
-c_sfe(a) cilist *a; /* check */
-#else
-c_sfe(cilist *a) /* check */
-#endif
-{ unit *p;
- f__curunit = p = &f__units[a->ciunit];
- if(a->ciunit >= MXUNIT || a->ciunit<0)
- err(a->cierr,101,"startio");
- if(p->ufd==NULL && fk_open(SEQ,FMT,a->ciunit)) err(a->cierr,114,"sfe")
- if(!p->ufmt) err(a->cierr,102,"sfe")
- return(0);
-}
-integer e_wsfe(Void)
-{
- int n = en_fio();
- f__fmtbuf = NULL;
-#ifdef ALWAYS_FLUSH
- if (!n && fflush(f__cf))
- err(f__elist->cierr, errno, "write end");
-#endif
- return n;
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/sig_die.c b/Build/source/utils/pmx/pmx-src/libf2c/sig_die.c
deleted file mode 100644
index 8c22cd58113..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/sig_die.c
+++ /dev/null
@@ -1,51 +0,0 @@
-#include "stdio.h"
-#include "signal.h"
-
-#ifndef SIGIOT
-#ifdef SIGABRT
-#define SIGIOT SIGABRT
-#endif
-#endif
-
-#ifdef KR_headers
-void sig_die(s, kill) register char *s; int kill;
-#else
-#include "stdlib.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
- extern void f_exit(void);
-
-void sig_die(register char *s, int kill)
-#endif
-{
- /* print error message, then clear buffers */
- fprintf(stderr, "%s\n", s);
-
- if(kill)
- {
- fflush(stderr);
- f_exit();
- fflush(stderr);
- /* now get a core */
-#ifdef SIGIOT
- signal(SIGIOT, SIG_DFL);
-#endif
- abort();
- }
- else {
-#ifdef NO_ONEXIT
- f_exit();
-#endif
- exit(1);
- }
- }
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/signal1.h b/Build/source/utils/pmx/pmx-src/libf2c/signal1.h
deleted file mode 100644
index a383774b82d..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/signal1.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* You may need to adjust the definition of signal1 to supply a */
-/* cast to the correct argument type. This detail is system- and */
-/* compiler-dependent. The #define below assumes signal.h declares */
-/* type SIG_PF for the signal function's second argument. */
-
-/* For some C++ compilers, "#define Sigarg_t ..." may be appropriate. */
-
-#include <signal.h>
-
-#ifndef Sigret_t
-#define Sigret_t void
-#endif
-#ifndef Sigarg_t
-#ifdef KR_headers
-#define Sigarg_t
-#else
-#define Sigarg_t int
-#endif
-#endif /*Sigarg_t*/
-
-#ifdef USE_SIG_PF /* compile with -DUSE_SIG_PF under IRIX */
-#define sig_pf SIG_PF
-#else
-typedef Sigret_t (*sig_pf)(Sigarg_t);
-#endif
-
-#define signal1(a,b) signal(a,(sig_pf)b)
-
-#ifdef __cplusplus
-#define Sigarg ...
-#define Use_Sigarg
-#else
-#define Sigarg Int n
-#define Use_Sigarg n = n /* shut up compiler warning */
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/signal_.c b/Build/source/utils/pmx/pmx-src/libf2c/signal_.c
deleted file mode 100644
index ad67dae71f6..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/signal_.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "f2c.h"
-#include "signal1.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- ftnint
-#ifdef KR_headers
-signal_(sigp, proc) integer *sigp; sig_pf proc;
-#else
-signal_(integer *sigp, sig_pf proc)
-#endif
-{
- int sig;
- sig = (int)*sigp;
-
- #ifdef _WIN64
- return (ftnint)(__int64)signal(sig, proc);
- #else
- return (ftnint)(long)signal(sig, proc);
- #endif
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/signbit.c b/Build/source/utils/pmx/pmx-src/libf2c/signbit.c
deleted file mode 100644
index de95a3b70fd..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/signbit.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "arith.h"
-
-#ifndef Long
-#define Long long
-#endif
-
- int
-#ifdef KR_headers
-signbit_f2c(x) double *x;
-#else
-signbit_f2c(double *x)
-#endif
-{
-#ifdef IEEE_MC68k
- if (*(Long*)x & 0x80000000)
- return 1;
-#else
-#ifdef IEEE_8087
- if (((Long*)x)[1] & 0x80000000)
- return 1;
-#endif /*IEEE_8087*/
-#endif /*IEEE_MC68k*/
- return 0;
- }
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/sue.c b/Build/source/utils/pmx/pmx-src/libf2c/sue.c
deleted file mode 100644
index 191e32627cc..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/sue.c
+++ /dev/null
@@ -1,90 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern uiolen f__reclen;
-OFF_T f__recloc;
-
- int
-#ifdef KR_headers
-c_sue(a) cilist *a;
-#else
-c_sue(cilist *a)
-#endif
-{
- f__external=f__sequential=1;
- f__formatted=0;
- f__curunit = &f__units[a->ciunit];
- if(a->ciunit >= MXUNIT || a->ciunit < 0)
- err(a->cierr,101,"startio");
- f__elist=a;
- if(f__curunit->ufd==NULL && fk_open(SEQ,UNF,a->ciunit))
- err(a->cierr,114,"sue");
- f__cf=f__curunit->ufd;
- if(f__curunit->ufmt) err(a->cierr,103,"sue")
- if(!f__curunit->useek) err(a->cierr,103,"sue")
- return(0);
-}
-#ifdef KR_headers
-integer s_rsue(a) cilist *a;
-#else
-integer s_rsue(cilist *a)
-#endif
-{
- int n;
- if(!f__init) f_init();
- f__reading=1;
- if(n=c_sue(a)) return(n);
- f__recpos=0;
- if(f__curunit->uwrt && f__nowreading(f__curunit))
- err(a->cierr, errno, "read start");
- if(fread((char *)&f__reclen,sizeof(uiolen),1,f__cf)
- != 1)
- { if(feof(f__cf))
- { f__curunit->uend = 1;
- err(a->ciend, EOF, "start");
- }
- clearerr(f__cf);
- err(a->cierr, errno, "start");
- }
- return(0);
-}
-#ifdef KR_headers
-integer s_wsue(a) cilist *a;
-#else
-integer s_wsue(cilist *a)
-#endif
-{
- int n;
- if(!f__init) f_init();
- if(n=c_sue(a)) return(n);
- f__reading=0;
- f__reclen=0;
- if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit))
- err(a->cierr, errno, "write start");
- f__recloc=FTELL(f__cf);
- FSEEK(f__cf,(OFF_T)sizeof(uiolen),SEEK_CUR);
- return(0);
-}
-integer e_wsue(Void)
-{ OFF_T loc;
- fwrite((char *)&f__reclen,sizeof(uiolen),1,f__cf);
-#ifdef ALWAYS_FLUSH
- if (fflush(f__cf))
- err(f__elist->cierr, errno, "write end");
-#endif
- loc=FTELL(f__cf);
- FSEEK(f__cf,f__recloc,SEEK_SET);
- fwrite((char *)&f__reclen,sizeof(uiolen),1,f__cf);
- FSEEK(f__cf,loc,SEEK_SET);
- return(0);
-}
-integer e_rsue(Void)
-{
- FSEEK(f__cf,(OFF_T)(f__reclen-f__recpos+sizeof(uiolen)),SEEK_CUR);
- return(0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/sysdep1.h b/Build/source/utils/pmx/pmx-src/libf2c/sysdep1.h
deleted file mode 100644
index 29546db848e..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/sysdep1.h
+++ /dev/null
@@ -1,70 +0,0 @@
-#ifndef SYSDEP_H_INCLUDED
-#define SYSDEP_H_INCLUDED
-#undef USE_LARGEFILE
-#ifndef NO_LONG_LONG
-
-#ifdef __sun__
-#define USE_LARGEFILE
-#define OFF_T off64_t
-#endif
-
-#ifdef __linux__
-#define USE_LARGEFILE
-#ifdef __GLIBC__
-#define OFF_T __off64_t
-#else
-#define OFF_T off_t
-#endif
-#endif
-
-#ifdef _AIX43
-#define _LARGE_FILES
-#define _LARGE_FILE_API
-#define USE_LARGEFILE
-#endif /*_AIX43*/
-
-#ifdef __hpux
-#define _FILE64
-#define _LARGEFILE64_SOURCE
-#define USE_LARGEFILE
-#endif /*__hpux*/
-
-#ifdef __sgi
-#define USE_LARGEFILE
-#endif /*__sgi*/
-
-#ifdef __FreeBSD__
-#define OFF_T off_t
-#define FSEEK fseeko
-#define FTELL ftello
-#endif
-
-#ifdef USE_LARGEFILE
-#ifndef OFF_T
-#define OFF_T off64_t
-#endif
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE64_SOURCE
-#include <sys/types.h>
-#include <sys/stat.h>
-#define FOPEN fopen64
-#define FREOPEN freopen64
-#define FSEEK fseeko64
-#define FSTAT fstat64
-#define FTELL ftello64
-#define FTRUNCATE ftruncate64
-#define STAT stat64
-#define STAT_ST stat64
-#endif /*USE_LARGEFILE*/
-#endif /*NO_LONG_LONG*/
-
-#ifndef NON_UNIX_STDIO
-#ifndef USE_LARGEFILE
-#define _INCLUDE_POSIX_SOURCE /* for HP-UX */
-#define _INCLUDE_XOPEN_SOURCE /* for HP-UX */
-#include "sys/types.h"
-#include "sys/stat.h"
-#endif
-#endif
-
-#endif /*SYSDEP_H_INCLUDED*/
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/system_.c b/Build/source/utils/pmx/pmx-src/libf2c/system_.c
deleted file mode 100644
index 3220bfb5c2d..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/system_.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* f77 interface to system routine */
-
-#include "f2c.h"
-
-#ifdef KR_headers
-extern char *F77_aloc();
-
- integer
-system_(s, n) register char *s; ftnlen n;
-#else
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern char *F77_aloc(ftnlen, char*);
-
- integer
-system_(register char *s, ftnlen n)
-#endif
-{
- char buff0[256], *buff;
- register char *bp, *blast;
- integer rv;
-
- buff = bp = n < sizeof(buff0)
- ? buff0 : F77_aloc(n+1, "system_");
- blast = bp + n;
-
- while(bp < blast && *s)
- *bp++ = *s++;
- *bp = 0;
- rv = system(buff);
- if (buff != buff0)
- free(buff);
- return rv;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/typesize.c b/Build/source/utils/pmx/pmx-src/libf2c/typesize.c
deleted file mode 100644
index 39097f46991..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/typesize.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-ftnlen f__typesize[] = { 0, 0, sizeof(shortint), sizeof(integer),
- sizeof(real), sizeof(doublereal),
- sizeof(complex), sizeof(doublecomplex),
- sizeof(logical), sizeof(char),
- 0, sizeof(integer1),
- sizeof(logical1), sizeof(shortlogical),
-#ifdef Allow_TYQUAD
- sizeof(longint),
-#endif
- 0};
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/uio.c b/Build/source/utils/pmx/pmx-src/libf2c/uio.c
deleted file mode 100644
index 44f768d9a24..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/uio.c
+++ /dev/null
@@ -1,75 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-uiolen f__reclen;
-
- int
-#ifdef KR_headers
-do_us(number,ptr,len) ftnint *number; char *ptr; ftnlen len;
-#else
-do_us(ftnint *number, char *ptr, ftnlen len)
-#endif
-{
- if(f__reading)
- {
- f__recpos += (int)(*number * len);
- if(f__recpos>f__reclen)
- err(f__elist->cierr, 110, "do_us");
- if (fread(ptr,(int)len,(int)(*number),f__cf) != *number)
- err(f__elist->ciend, EOF, "do_us");
- return(0);
- }
- else
- {
- f__reclen += *number * len;
- (void) fwrite(ptr,(int)len,(int)(*number),f__cf);
- return(0);
- }
-}
-#ifdef KR_headers
-integer do_ud(number,ptr,len) ftnint *number; char *ptr; ftnlen len;
-#else
-integer do_ud(ftnint *number, char *ptr, ftnlen len)
-#endif
-{
- f__recpos += (int)(*number * len);
- if(f__recpos > f__curunit->url && f__curunit->url!=1)
- err(f__elist->cierr,110,"do_ud");
- if(f__reading)
- {
-#ifdef Pad_UDread
-#ifdef KR_headers
- int i;
-#else
- size_t i;
-#endif
- if (!(i = fread(ptr,(int)len,(int)(*number),f__cf))
- && !(f__recpos - *number*len))
- err(f__elist->cierr,EOF,"do_ud")
- if (i < *number)
- memset(ptr + i*len, 0, (*number - i)*len);
- return 0;
-#else
- if(fread(ptr,(int)len,(int)(*number),f__cf) != *number)
- err(f__elist->cierr,EOF,"do_ud")
- else return(0);
-#endif
- }
- (void) fwrite(ptr,(int)len,(int)(*number),f__cf);
- return(0);
-}
-#ifdef KR_headers
-integer do_uio(number,ptr,len) ftnint *number; char *ptr; ftnlen len;
-#else
-integer do_uio(ftnint *number, char *ptr, ftnlen len)
-#endif
-{
- if(f__sequential)
- return(do_us(number,ptr,len));
- else return(do_ud(number,ptr,len));
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/uninit.c b/Build/source/utils/pmx/pmx-src/libf2c/uninit.c
deleted file mode 100644
index 794cd6adee0..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/uninit.c
+++ /dev/null
@@ -1,368 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include "arith.h"
-
-#define TYSHORT 2
-#define TYLONG 3
-#define TYREAL 4
-#define TYDREAL 5
-#define TYCOMPLEX 6
-#define TYDCOMPLEX 7
-#define TYINT1 11
-#define TYQUAD 14
-#ifndef Long
-#define Long long
-#endif
-
-#ifdef __mips
-#define RNAN 0xffc00000
-#define DNAN0 0xfff80000
-#define DNAN1 0
-#endif
-
-#ifdef _PA_RISC1_1
-#define RNAN 0xffc00000
-#define DNAN0 0xfff80000
-#define DNAN1 0
-#endif
-
-#ifndef RNAN
-#define RNAN 0xff800001
-#ifdef IEEE_MC68k
-#define DNAN0 0xfff00000
-#define DNAN1 1
-#else
-#define DNAN0 1
-#define DNAN1 0xfff00000
-#endif
-#endif /*RNAN*/
-
-#ifdef KR_headers
-#define Void /*void*/
-#define FA7UL (unsigned Long) 0xfa7a7a7aL
-#else
-#define Void void
-#define FA7UL 0xfa7a7a7aUL
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-static void ieee0(Void);
-
-static unsigned Long rnan = RNAN,
- dnan0 = DNAN0,
- dnan1 = DNAN1;
-
-double _0 = 0.;
-
- void
-#ifdef KR_headers
-_uninit_f2c(x, type, len) void *x; int type; long len;
-#else
-_uninit_f2c(void *x, int type, long len)
-#endif
-{
- static int first = 1;
-
- unsigned Long *lx, *lxe;
-
- if (first) {
- first = 0;
- ieee0();
- }
- if (len == 1)
- switch(type) {
- case TYINT1:
- *(char*)x = 'Z';
- return;
- case TYSHORT:
- *(short*)x = 0xfa7a;
- break;
- case TYLONG:
- *(unsigned Long*)x = FA7UL;
- return;
- case TYQUAD:
- case TYCOMPLEX:
- case TYDCOMPLEX:
- break;
- case TYREAL:
- *(unsigned Long*)x = rnan;
- return;
- case TYDREAL:
- lx = (unsigned Long*)x;
- lx[0] = dnan0;
- lx[1] = dnan1;
- return;
- default:
- printf("Surprise type %d in _uninit_f2c\n", type);
- }
- switch(type) {
- case TYINT1:
- memset(x, 'Z', len);
- break;
- case TYSHORT:
- *(short*)x = 0xfa7a;
- break;
- case TYQUAD:
- len *= 2;
- /* no break */
- case TYLONG:
- lx = (unsigned Long*)x;
- lxe = lx + len;
- while(lx < lxe)
- *lx++ = FA7UL;
- break;
- case TYCOMPLEX:
- len *= 2;
- /* no break */
- case TYREAL:
- lx = (unsigned Long*)x;
- lxe = lx + len;
- while(lx < lxe)
- *lx++ = rnan;
- break;
- case TYDCOMPLEX:
- len *= 2;
- /* no break */
- case TYDREAL:
- lx = (unsigned Long*)x;
- for(lxe = lx + 2*len; lx < lxe; lx += 2) {
- lx[0] = dnan0;
- lx[1] = dnan1;
- }
- }
- }
-#ifdef __cplusplus
-}
-#endif
-
-#ifndef MSpc
-#ifdef MSDOS
-#define MSpc
-#else
-#ifdef _WIN32
-#define MSpc
-#endif
-#endif
-#endif
-
-#ifdef MSpc
-#define IEEE0_done
-#include "float.h"
-#include "signal.h"
-
- static void
-ieee0(Void)
-{
-#ifndef __alpha
-#ifndef EM_DENORMAL
-#define EM_DENORMAL _EM_DENORMAL
-#endif
-#ifndef EM_UNDERFLOW
-#define EM_UNDERFLOW _EM_UNDERFLOW
-#endif
-#ifndef EM_INEXACT
-#define EM_INEXACT _EM_INEXACT
-#endif
-#ifndef MCW_EM
-#define MCW_EM _MCW_EM
-#endif
- _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM);
-#endif
- /* With MS VC++, compiling and linking with -Zi will permit */
- /* clicking to invoke the MS C++ debugger, which will show */
- /* the point of error -- provided SIGFPE is SIG_DFL. */
- signal(SIGFPE, SIG_DFL);
- }
-#endif /* MSpc */
-
-#ifdef __mips /* must link with -lfpe */
-#define IEEE0_done
-/* code from Eric Grosse */
-#include <stdlib.h>
-#include <stdio.h>
-#include "/usr/include/sigfpe.h" /* full pathname for lcc -N */
-#include "/usr/include/sys/fpu.h"
-
- static void
-#ifdef KR_headers
-ieeeuserhand(exception, val) unsigned exception[5]; int val[2];
-#else
-ieeeuserhand(unsigned exception[5], int val[2])
-#endif
-{
- fflush(stdout);
- fprintf(stderr,"ieee0() aborting because of ");
- if(exception[0]==_OVERFL) fprintf(stderr,"overflow\n");
- else if(exception[0]==_UNDERFL) fprintf(stderr,"underflow\n");
- else if(exception[0]==_DIVZERO) fprintf(stderr,"divide by 0\n");
- else if(exception[0]==_INVALID) fprintf(stderr,"invalid operation\n");
- else fprintf(stderr,"\tunknown reason\n");
- fflush(stderr);
- abort();
-}
-
- static void
-#ifdef KR_headers
-ieeeuserhand2(j) unsigned int **j;
-#else
-ieeeuserhand2(unsigned int **j)
-#endif
-{
- fprintf(stderr,"ieee0() aborting because of confusion\n");
- abort();
-}
-
- static void
-ieee0(Void)
-{
- int i;
- for(i=1; i<=4; i++){
- sigfpe_[i].count = 1000;
- sigfpe_[i].trace = 1;
- sigfpe_[i].repls = _USER_DETERMINED;
- }
- sigfpe_[1].repls = _ZERO; /* underflow */
- handle_sigfpes( _ON,
- _EN_UNDERFL|_EN_OVERFL|_EN_DIVZERO|_EN_INVALID,
- ieeeuserhand,_ABORT_ON_ERROR,ieeeuserhand2);
- }
-#endif /* mips */
-
-#ifdef __linux__
-#define IEEE0_done
-#include "fpu_control.h"
-
-#ifdef __alpha__
-#ifndef USE_setfpucw
-#define __setfpucw(x) __fpu_control = (x)
-#endif
-#endif
-
-#ifndef _FPU_SETCW
-#undef Can_use__setfpucw
-#define Can_use__setfpucw
-#endif
-
- static void
-ieee0(Void)
-{
-#if (defined(__mc68000__) || defined(__mc68020__) || defined(mc68020) || defined (__mc68k__))
-/* Reported 20010705 by Alan Bain <alanb@chiark.greenend.org.uk> */
-/* Note that IEEE 754 IOP (illegal operation) */
-/* = Signaling NAN (SNAN) + operation error (OPERR). */
-#ifdef Can_use__setfpucw /* Has __setfpucw gone missing from S.u.S.E. 6.3? */
- __setfpucw(_FPU_IEEE + _FPU_DOUBLE + _FPU_MASK_OPERR + _FPU_MASK_DZ + _FPU_MASK_SNAN+_FPU_MASK_OVFL);
-#else
- __fpu_control = _FPU_IEEE + _FPU_DOUBLE + _FPU_MASK_OPERR + _FPU_MASK_DZ + _FPU_MASK_SNAN+_FPU_MASK_OVFL;
- _FPU_SETCW(__fpu_control);
-#endif
-
-#elif (defined(__powerpc__)||defined(_ARCH_PPC)||defined(_ARCH_PWR)) /* !__mc68k__ */
-/* Reported 20011109 by Alan Bain <alanb@chiark.greenend.org.uk> */
-
-#ifdef Can_use__setfpucw
-
-/* The following is NOT a mistake -- the author of the fpu_control.h
-for the PPC has erroneously defined IEEE mode to turn on exceptions
-other than Inexact! Start from default then and turn on only the ones
-which we want*/
-
- __setfpucw(_FPU_DEFAULT + _FPU_MASK_IM+_FPU_MASK_OM+_FPU_MASK_UM);
-
-#else /* PPC && !Can_use__setfpucw */
-
- __fpu_control = _FPU_DEFAULT +_FPU_MASK_OM+_FPU_MASK_IM+_FPU_MASK_UM;
- _FPU_SETCW(__fpu_control);
-
-#endif /*Can_use__setfpucw*/
-
-#else /* !(mc68000||powerpc) */
-
-#ifdef _FPU_IEEE
-#ifndef _FPU_EXTENDED /* e.g., ARM processor under Linux */
-#define _FPU_EXTENDED 0
-#endif
-#ifndef _FPU_DOUBLE
-#define _FPU_DOUBLE 0
-#endif
-#ifdef Can_use__setfpucw /* Has __setfpucw gone missing from S.u.S.E. 6.3? */
- __setfpucw(_FPU_IEEE - _FPU_EXTENDED + _FPU_DOUBLE - _FPU_MASK_IM - _FPU_MASK_ZM - _FPU_MASK_OM);
-#else
- __fpu_control = _FPU_IEEE - _FPU_EXTENDED + _FPU_DOUBLE - _FPU_MASK_IM - _FPU_MASK_ZM - _FPU_MASK_OM;
- _FPU_SETCW(__fpu_control);
-#endif
-
-#else /* !_FPU_IEEE */
-
- fprintf(stderr, "\n%s\n%s\n%s\n%s\n",
- "WARNING: _uninit_f2c in libf2c does not know how",
- "to enable trapping on this system, so f2c's -trapuv",
- "option will not detect uninitialized variables unless",
- "you can enable trapping manually.");
- fflush(stderr);
-
-#endif /* _FPU_IEEE */
-#endif /* __mc68k__ */
- }
-#endif /* __linux__ */
-
-#ifdef __alpha
-#ifndef IEEE0_done
-#define IEEE0_done
-#include <machine/fpu.h>
- static void
-ieee0(Void)
-{
- ieee_set_fp_control(IEEE_TRAP_ENABLE_INV);
- }
-#endif /*IEEE0_done*/
-#endif /*__alpha*/
-
-#ifdef __hpux
-#define IEEE0_done
-#define _INCLUDE_HPUX_SOURCE
-#include <math.h>
-
-#ifndef FP_X_INV
-#include <fenv.h>
-#define fpsetmask fesettrapenable
-#define FP_X_INV FE_INVALID
-#endif
-
- static void
-ieee0(Void)
-{
- fpsetmask(FP_X_INV);
- }
-#endif /*__hpux*/
-
-#ifdef _AIX
-#define IEEE0_done
-#include <fptrap.h>
-
- static void
-ieee0(Void)
-{
- fp_enable(TRP_INVALID);
- fp_trap(FP_TRAP_SYNC);
- }
-#endif /*_AIX*/
-
-#ifdef __sun
-#define IEEE0_done
-#include <ieeefp.h>
-
- static void
-ieee0(Void)
-{
- fpsetmask(FP_X_INV);
- }
-#endif /*__sparc*/
-
-#ifndef IEEE0_done
- static void
-ieee0(Void) {}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/util.c b/Build/source/utils/pmx/pmx-src/libf2c/util.c
deleted file mode 100644
index f4b3aef2ce7..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/util.c
+++ /dev/null
@@ -1,54 +0,0 @@
-#include "sysdep1.h" /* here to get stat64 on some badly designed Linux systems */
-#include "f2c.h"
-#include "fio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- VOID
-#ifdef KR_headers
-g_char(a,alen,b) char *a,*b; ftnlen alen;
-#else
-g_char(char *a, ftnlen alen, char *b)
-#endif
-{
- char *x = a + alen, *y = b + alen;
-
- for(;; y--) {
- if (x <= a) {
- *b = 0;
- return;
- }
- if (*--x != ' ')
- break;
- }
- *y-- = 0;
- do *y-- = *x;
- while(x-- > a);
- }
-
- VOID
-#ifdef KR_headers
-b_char(a,b,blen) char *a,*b; ftnlen blen;
-#else
-b_char(char *a, char *b, ftnlen blen)
-#endif
-{ int i;
- for(i=0;i<blen && *a!=0;i++) *b++= *a++;
- for(;i<blen;i++) *b++=' ';
-}
-#ifndef NON_UNIX_STDIO
-#ifdef KR_headers
-long f__inode(a, dev) char *a; int *dev;
-#else
-long f__inode(char *a, int *dev)
-#endif
-{ struct STAT_ST x;
- if(STAT(a,&x)<0) return(-1);
- *dev = x.st_dev;
- return(x.st_ino);
-}
-#endif
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/wref.c b/Build/source/utils/pmx/pmx-src/libf2c/wref.c
deleted file mode 100644
index f2074b75e3a..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/wref.c
+++ /dev/null
@@ -1,294 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-
-#ifndef KR_headers
-#undef abs
-#undef min
-#undef max
-#include "stdlib.h"
-#include "string.h"
-#endif
-
-#include "fmt.h"
-#include "fp.h"
-#ifndef VAX
-#include "ctype.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-#endif
-
- int
-#ifdef KR_headers
-wrt_E(p,w,d,e,len) ufloat *p; ftnlen len;
-#else
-wrt_E(ufloat *p, int w, int d, int e, ftnlen len)
-#endif
-{
- char buf[FMAX+EXPMAXDIGS+4], *s, *se;
- int d1, delta, e1, i, sign, signspace;
- double dd;
-#ifdef WANT_LEAD_0
- int insert0 = 0;
-#endif
-#ifndef VAX
- int e0 = e;
-#endif
-
- if(e <= 0)
- e = 2;
- if(f__scale) {
- if(f__scale >= d + 2 || f__scale <= -d)
- goto nogood;
- }
- if(f__scale <= 0)
- --d;
- if (len == sizeof(real))
- dd = p->pf;
- else
- dd = p->pd;
- if (dd < 0.) {
- signspace = sign = 1;
- dd = -dd;
- }
- else {
- sign = 0;
- signspace = (int)f__cplus;
-#ifndef VAX
- if (!dd) {
-#ifdef SIGNED_ZEROS
- if (signbit_f2c(&dd))
- signspace = sign = 1;
-#endif
- dd = 0.; /* avoid -0 */
- }
-#endif
- }
- delta = w - (2 /* for the . and the d adjustment above */
- + 2 /* for the E+ */ + signspace + d + e);
-#ifdef WANT_LEAD_0
- if (f__scale <= 0 && delta > 0) {
- delta--;
- insert0 = 1;
- }
- else
-#endif
- if (delta < 0) {
-nogood:
- while(--w >= 0)
- PUT('*');
- return(0);
- }
- if (f__scale < 0)
- d += f__scale;
- if (d > FMAX) {
- d1 = d - FMAX;
- d = FMAX;
- }
- else
- d1 = 0;
- sprintf(buf,"%#.*E", d, dd);
-#ifndef VAX
- /* check for NaN, Infinity */
- if (!isdigit(buf[0])) {
- switch(buf[0]) {
- case 'n':
- case 'N':
- signspace = 0; /* no sign for NaNs */
- }
- delta = w - strlen(buf) - signspace;
- if (delta < 0)
- goto nogood;
- while(--delta >= 0)
- PUT(' ');
- if (signspace)
- PUT(sign ? '-' : '+');
- for(s = buf; *s; s++)
- PUT(*s);
- return 0;
- }
-#endif
- se = buf + d + 3;
-#ifdef GOOD_SPRINTF_EXPONENT /* When possible, exponent has 2 digits. */
- if (f__scale != 1 && dd)
- sprintf(se, "%+.2d", atoi(se) + 1 - f__scale);
-#else
- if (dd)
- sprintf(se, "%+.2d", atoi(se) + 1 - f__scale);
- else
- strcpy(se, "+00");
-#endif
- s = ++se;
- if (e < 2) {
- if (*s != '0')
- goto nogood;
- }
-#ifndef VAX
- /* accommodate 3 significant digits in exponent */
- if (s[2]) {
-#ifdef Pedantic
- if (!e0 && !s[3])
- for(s -= 2, e1 = 2; s[0] = s[1]; s++);
-
- /* Pedantic gives the behavior that Fortran 77 specifies, */
- /* i.e., requires that E be specified for exponent fields */
- /* of more than 3 digits. With Pedantic undefined, we get */
- /* the behavior that Cray displays -- you get a bigger */
- /* exponent field if it fits. */
-#else
- if (!e0) {
- for(s -= 2, e1 = 2; s[0] = s[1]; s++)
-#ifdef CRAY
- delta--;
- if ((delta += 4) < 0)
- goto nogood
-#endif
- ;
- }
-#endif
- else if (e0 >= 0)
- goto shift;
- else
- e1 = e;
- }
- else
- shift:
-#endif
- for(s += 2, e1 = 2; *s; ++e1, ++s)
- if (e1 >= e)
- goto nogood;
- while(--delta >= 0)
- PUT(' ');
- if (signspace)
- PUT(sign ? '-' : '+');
- s = buf;
- i = f__scale;
- if (f__scale <= 0) {
-#ifdef WANT_LEAD_0
- if (insert0)
- PUT('0');
-#endif
- PUT('.');
- for(; i < 0; ++i)
- PUT('0');
- PUT(*s);
- s += 2;
- }
- else if (f__scale > 1) {
- PUT(*s);
- s += 2;
- while(--i > 0)
- PUT(*s++);
- PUT('.');
- }
- if (d1) {
- se -= 2;
- while(s < se) PUT(*s++);
- se += 2;
- do PUT('0'); while(--d1 > 0);
- }
- while(s < se)
- PUT(*s++);
- if (e < 2)
- PUT(s[1]);
- else {
- while(++e1 <= e)
- PUT('0');
- while(*s)
- PUT(*s++);
- }
- return 0;
- }
-
- int
-#ifdef KR_headers
-wrt_F(p,w,d,len) ufloat *p; ftnlen len;
-#else
-wrt_F(ufloat *p, int w, int d, ftnlen len)
-#endif
-{
- int d1, sign, n;
- double x;
- char *b, buf[MAXINTDIGS+MAXFRACDIGS+4], *s;
-
- x= (len==sizeof(real)?p->pf:p->pd);
- if (d < MAXFRACDIGS)
- d1 = 0;
- else {
- d1 = d - MAXFRACDIGS;
- d = MAXFRACDIGS;
- }
- if (x < 0.)
- { x = -x; sign = 1; }
- else {
- sign = 0;
-#ifndef VAX
- if (!x) {
-#ifdef SIGNED_ZEROS
- if (signbit_f2c(&x))
- sign = 2;
-#endif
- x = 0.;
- }
-#endif
- }
-
- if (n = f__scale)
- if (n > 0)
- do x *= 10.; while(--n > 0);
- else
- do x *= 0.1; while(++n < 0);
-
-#ifdef USE_STRLEN
- sprintf(b = buf, "%#.*f", d, x);
- n = strlen(b) + d1;
-#else
- n = sprintf(b = buf, "%#.*f", d, x) + d1;
-#endif
-
-#ifndef WANT_LEAD_0
- if (buf[0] == '0' && d)
- { ++b; --n; }
-#endif
- if (sign == 1) {
- /* check for all zeros */
- for(s = b;;) {
- while(*s == '0') s++;
- switch(*s) {
- case '.':
- s++; continue;
- case 0:
- sign = 0;
- }
- break;
- }
- }
- if (sign || f__cplus)
- ++n;
- if (n > w) {
-#ifdef WANT_LEAD_0
- if (buf[0] == '0' && --n == w)
- ++b;
- else
-#endif
- {
- while(--w >= 0)
- PUT('*');
- return 0;
- }
- }
- for(w -= n; --w >= 0; )
- PUT(' ');
- if (sign)
- PUT('-');
- else if (f__cplus)
- PUT('+');
- while(n = *b++)
- PUT(n);
- while(--d1 >= 0)
- PUT('0');
- return 0;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/wrtfmt.c b/Build/source/utils/pmx/pmx-src/libf2c/wrtfmt.c
deleted file mode 100644
index a970db95910..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/wrtfmt.c
+++ /dev/null
@@ -1,377 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "fmt.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern icilist *f__svic;
-extern char *f__icptr;
-
- static int
-mv_cur(Void) /* shouldn't use fseek because it insists on calling fflush */
- /* instead we know too much about stdio */
-{
- int cursor = f__cursor;
- f__cursor = 0;
- if(f__external == 0) {
- if(cursor < 0) {
- if(f__hiwater < f__recpos)
- f__hiwater = f__recpos;
- f__recpos += cursor;
- f__icptr += cursor;
- if(f__recpos < 0)
- err(f__elist->cierr, 110, "left off");
- }
- else if(cursor > 0) {
- if(f__recpos + cursor >= f__svic->icirlen)
- err(f__elist->cierr, 110, "recend");
- if(f__hiwater <= f__recpos)
- for(; cursor > 0; cursor--)
- (*f__putn)(' ');
- else if(f__hiwater <= f__recpos + cursor) {
- cursor -= f__hiwater - f__recpos;
- f__icptr += f__hiwater - f__recpos;
- f__recpos = f__hiwater;
- for(; cursor > 0; cursor--)
- (*f__putn)(' ');
- }
- else {
- f__icptr += cursor;
- f__recpos += cursor;
- }
- }
- return(0);
- }
- if (cursor > 0) {
- if(f__hiwater <= f__recpos)
- for(;cursor>0;cursor--) (*f__putn)(' ');
- else if(f__hiwater <= f__recpos + cursor) {
- cursor -= f__hiwater - f__recpos;
- f__recpos = f__hiwater;
- for(; cursor > 0; cursor--)
- (*f__putn)(' ');
- }
- else {
- f__recpos += cursor;
- }
- }
- else if (cursor < 0)
- {
- if(cursor + f__recpos < 0)
- err(f__elist->cierr,110,"left off");
- if(f__hiwater < f__recpos)
- f__hiwater = f__recpos;
- f__recpos += cursor;
- }
- return(0);
-}
-
- static int
-#ifdef KR_headers
-wrt_Z(n,w,minlen,len) Uint *n; int w, minlen; ftnlen len;
-#else
-wrt_Z(Uint *n, int w, int minlen, ftnlen len)
-#endif
-{
- register char *s, *se;
- register int i, w1;
- static int one = 1;
- static char hex[] = "0123456789ABCDEF";
- s = (char *)n;
- --len;
- if (*(char *)&one) {
- /* little endian */
- se = s;
- s += len;
- i = -1;
- }
- else {
- se = s + len;
- i = 1;
- }
- for(;; s += i)
- if (s == se || *s)
- break;
- w1 = (i*(se-s) << 1) + 1;
- if (*s & 0xf0)
- w1++;
- if (w1 > w)
- for(i = 0; i < w; i++)
- (*f__putn)('*');
- else {
- if ((minlen -= w1) > 0)
- w1 += minlen;
- while(--w >= w1)
- (*f__putn)(' ');
- while(--minlen >= 0)
- (*f__putn)('0');
- if (!(*s & 0xf0)) {
- (*f__putn)(hex[*s & 0xf]);
- if (s == se)
- return 0;
- s += i;
- }
- for(;; s += i) {
- (*f__putn)(hex[*s >> 4 & 0xf]);
- (*f__putn)(hex[*s & 0xf]);
- if (s == se)
- break;
- }
- }
- return 0;
- }
-
- static int
-#ifdef KR_headers
-wrt_I(n,w,len, base) Uint *n; ftnlen len; register int base;
-#else
-wrt_I(Uint *n, int w, ftnlen len, register int base)
-#endif
-{ int ndigit,sign,spare,i;
- longint x;
- char *ans;
- if(len==sizeof(integer)) x=n->il;
- else if(len == sizeof(char)) x = n->ic;
-#ifdef Allow_TYQUAD
- else if (len == sizeof(longint)) x = n->ili;
-#endif
- else x=n->is;
- ans=f__icvt(x,&ndigit,&sign, base);
- spare=w-ndigit;
- if(sign || f__cplus) spare--;
- if(spare<0)
- for(i=0;i<w;i++) (*f__putn)('*');
- else
- { for(i=0;i<spare;i++) (*f__putn)(' ');
- if(sign) (*f__putn)('-');
- else if(f__cplus) (*f__putn)('+');
- for(i=0;i<ndigit;i++) (*f__putn)(*ans++);
- }
- return(0);
-}
- static int
-#ifdef KR_headers
-wrt_IM(n,w,m,len,base) Uint *n; ftnlen len; int base;
-#else
-wrt_IM(Uint *n, int w, int m, ftnlen len, int base)
-#endif
-{ int ndigit,sign,spare,i,xsign;
- longint x;
- char *ans;
- if(sizeof(integer)==len) x=n->il;
- else if(len == sizeof(char)) x = n->ic;
-#ifdef Allow_TYQUAD
- else if (len == sizeof(longint)) x = n->ili;
-#endif
- else x=n->is;
- ans=f__icvt(x,&ndigit,&sign, base);
- if(sign || f__cplus) xsign=1;
- else xsign=0;
- if(ndigit+xsign>w || m+xsign>w)
- { for(i=0;i<w;i++) (*f__putn)('*');
- return(0);
- }
- if(x==0 && m==0)
- { for(i=0;i<w;i++) (*f__putn)(' ');
- return(0);
- }
- if(ndigit>=m)
- spare=w-ndigit-xsign;
- else
- spare=w-m-xsign;
- for(i=0;i<spare;i++) (*f__putn)(' ');
- if(sign) (*f__putn)('-');
- else if(f__cplus) (*f__putn)('+');
- for(i=0;i<m-ndigit;i++) (*f__putn)('0');
- for(i=0;i<ndigit;i++) (*f__putn)(*ans++);
- return(0);
-}
- static int
-#ifdef KR_headers
-wrt_AP(s) char *s;
-#else
-wrt_AP(char *s)
-#endif
-{ char quote;
- int i;
-
- if(f__cursor && (i = mv_cur()))
- return i;
- quote = *s++;
- for(;*s;s++)
- { if(*s!=quote) (*f__putn)(*s);
- else if(*++s==quote) (*f__putn)(*s);
- else return(1);
- }
- return(1);
-}
- static int
-#ifdef KR_headers
-wrt_H(a,s) char *s;
-#else
-wrt_H(int a, char *s)
-#endif
-{
- int i;
-
- if(f__cursor && (i = mv_cur()))
- return i;
- while(a--) (*f__putn)(*s++);
- return(1);
-}
-
- int
-#ifdef KR_headers
-wrt_L(n,len, sz) Uint *n; ftnlen sz;
-#else
-wrt_L(Uint *n, int len, ftnlen sz)
-#endif
-{ int i;
- long x;
- if(sizeof(long)==sz) x=n->il;
- else if(sz == sizeof(char)) x = n->ic;
- else x=n->is;
- for(i=0;i<len-1;i++)
- (*f__putn)(' ');
- if(x) (*f__putn)('T');
- else (*f__putn)('F');
- return(0);
-}
- static int
-#ifdef KR_headers
-wrt_A(p,len) char *p; ftnlen len;
-#else
-wrt_A(char *p, ftnlen len)
-#endif
-{
- while(len-- > 0) (*f__putn)(*p++);
- return(0);
-}
- static int
-#ifdef KR_headers
-wrt_AW(p,w,len) char * p; ftnlen len;
-#else
-wrt_AW(char * p, int w, ftnlen len)
-#endif
-{
- while(w>len)
- { w--;
- (*f__putn)(' ');
- }
- while(w-- > 0)
- (*f__putn)(*p++);
- return(0);
-}
-
- static int
-#ifdef KR_headers
-wrt_G(p,w,d,e,len) ufloat *p; ftnlen len;
-#else
-wrt_G(ufloat *p, int w, int d, int e, ftnlen len)
-#endif
-{ double up = 1,x;
- int i=0,oldscale,n,j;
- x = len==sizeof(real)?p->pf:p->pd;
- if(x < 0 ) x = -x;
- if(x<.1) {
- if (x != 0.)
- return(wrt_E(p,w,d,e,len));
- i = 1;
- goto have_i;
- }
- for(;i<=d;i++,up*=10)
- { if(x>=up) continue;
- have_i:
- oldscale = f__scale;
- f__scale = 0;
- if(e==0) n=4;
- else n=e+2;
- i=wrt_F(p,w-n,d-i,len);
- for(j=0;j<n;j++) (*f__putn)(' ');
- f__scale=oldscale;
- return(i);
- }
- return(wrt_E(p,w,d,e,len));
-}
-
- int
-#ifdef KR_headers
-w_ed(p,ptr,len) struct syl *p; char *ptr; ftnlen len;
-#else
-w_ed(struct syl *p, char *ptr, ftnlen len)
-#endif
-{
- int i;
-
- if(f__cursor && (i = mv_cur()))
- return i;
- switch(p->op)
- {
- default:
- fprintf(stderr,"w_ed, unexpected code: %d\n", p->op);
- sig_die(f__fmtbuf, 1);
- case I: return(wrt_I((Uint *)ptr,p->p1,len, 10));
- case IM:
- return(wrt_IM((Uint *)ptr,p->p1,p->p2.i[0],len,10));
-
- /* O and OM don't work right for character, double, complex, */
- /* or doublecomplex, and they differ from Fortran 90 in */
- /* showing a minus sign for negative values. */
-
- case O: return(wrt_I((Uint *)ptr, p->p1, len, 8));
- case OM:
- return(wrt_IM((Uint *)ptr,p->p1,p->p2.i[0],len,8));
- case L: return(wrt_L((Uint *)ptr,p->p1, len));
- case A: return(wrt_A(ptr,len));
- case AW:
- return(wrt_AW(ptr,p->p1,len));
- case D:
- case E:
- case EE:
- return(wrt_E((ufloat *)ptr,p->p1,p->p2.i[0],p->p2.i[1],len));
- case G:
- case GE:
- return(wrt_G((ufloat *)ptr,p->p1,p->p2.i[0],p->p2.i[1],len));
- case F: return(wrt_F((ufloat *)ptr,p->p1,p->p2.i[0],len));
-
- /* Z and ZM assume 8-bit bytes. */
-
- case Z: return(wrt_Z((Uint *)ptr,p->p1,0,len));
- case ZM:
- return(wrt_Z((Uint *)ptr,p->p1,p->p2.i[0],len));
- }
-}
-
- int
-#ifdef KR_headers
-w_ned(p) struct syl *p;
-#else
-w_ned(struct syl *p)
-#endif
-{
- switch(p->op)
- {
- default: fprintf(stderr,"w_ned, unexpected code: %d\n", p->op);
- sig_die(f__fmtbuf, 1);
- case SLASH:
- return((*f__donewrec)());
- case T: f__cursor = p->p1-f__recpos - 1;
- return(1);
- case TL: f__cursor -= p->p1;
- if(f__cursor < -f__recpos) /* TL1000, 1X */
- f__cursor = -f__recpos;
- return(1);
- case TR:
- case X:
- f__cursor += p->p1;
- return(1);
- case APOS:
- return(wrt_AP(p->p2.s));
- case H:
- return(wrt_H(p->p1,p->p2.s));
- }
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/wsfe.c b/Build/source/utils/pmx/pmx-src/libf2c/wsfe.c
deleted file mode 100644
index 8709f3b3479..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/wsfe.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/*write sequential formatted external*/
-#include "f2c.h"
-#include "fio.h"
-#include "fmt.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- int
-x_wSL(Void)
-{
- int n = f__putbuf('\n');
- f__hiwater = f__recpos = f__cursor = 0;
- return(n == 0);
-}
-
- static int
-xw_end(Void)
-{
- int n;
-
- if(f__nonl) {
- f__putbuf(n = 0);
- fflush(f__cf);
- }
- else
- n = f__putbuf('\n');
- f__hiwater = f__recpos = f__cursor = 0;
- return n;
-}
-
- static int
-xw_rev(Void)
-{
- int n = 0;
- if(f__workdone) {
- n = f__putbuf('\n');
- f__workdone = 0;
- }
- f__hiwater = f__recpos = f__cursor = 0;
- return n;
-}
-
-#ifdef KR_headers
-integer s_wsfe(a) cilist *a; /*start*/
-#else
-integer s_wsfe(cilist *a) /*start*/
-#endif
-{ int n;
- if(!f__init) f_init();
- f__reading=0;
- f__sequential=1;
- f__formatted=1;
- f__external=1;
- if(n=c_sfe(a)) return(n);
- f__elist=a;
- f__hiwater = f__cursor=f__recpos=0;
- f__nonl = 0;
- f__scale=0;
- f__fmtbuf=a->cifmt;
- f__cf=f__curunit->ufd;
- if(pars_f(f__fmtbuf)<0) err(a->cierr,100,"startio");
- f__putn= x_putc;
- f__doed= w_ed;
- f__doned= w_ned;
- f__doend=xw_end;
- f__dorevert=xw_rev;
- f__donewrec=x_wSL;
- fmt_bg();
- f__cplus=0;
- f__cblank=f__curunit->ublnk;
- if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit))
- err(a->cierr,errno,"write start");
- return(0);
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/wsle.c b/Build/source/utils/pmx/pmx-src/libf2c/wsle.c
deleted file mode 100644
index 3e602702c0c..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/wsle.c
+++ /dev/null
@@ -1,42 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "fmt.h"
-#include "lio.h"
-#include "string.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-integer s_wsle(a) cilist *a;
-#else
-integer s_wsle(cilist *a)
-#endif
-{
- int n;
- if(n=c_le(a)) return(n);
- f__reading=0;
- f__external=1;
- f__formatted=1;
- f__putn = x_putc;
- f__lioproc = l_write;
- L_len = LINE;
- f__donewrec = x_wSL;
- if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit))
- err(a->cierr, errno, "list output start");
- return(0);
- }
-
-integer e_wsle(Void)
-{
- int n = f__putbuf('\n');
- f__recpos=0;
-#ifdef ALWAYS_FLUSH
- if (!n && fflush(f__cf))
- err(f__elist->cierr, errno, "write end");
-#endif
- return(n);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/wsne.c b/Build/source/utils/pmx/pmx-src/libf2c/wsne.c
deleted file mode 100644
index e204a51a4f1..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/wsne.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "lio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- integer
-#ifdef KR_headers
-s_wsne(a) cilist *a;
-#else
-s_wsne(cilist *a)
-#endif
-{
- int n;
-
- if(n=c_le(a))
- return(n);
- f__reading=0;
- f__external=1;
- f__formatted=1;
- f__putn = x_putc;
- L_len = LINE;
- f__donewrec = x_wSL;
- if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit))
- err(a->cierr, errno, "namelist output start");
- x_wsne(a);
- return e_wsle();
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/xwsne.c b/Build/source/utils/pmx/pmx-src/libf2c/xwsne.c
deleted file mode 100644
index f810d3edbfe..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/xwsne.c
+++ /dev/null
@@ -1,77 +0,0 @@
-#include "f2c.h"
-#include "fio.h"
-#include "lio.h"
-#include "fmt.h"
-
-extern int f__Aquote;
-
- static VOID
-nl_donewrec(Void)
-{
- (*f__donewrec)();
- PUT(' ');
- }
-
-#ifdef KR_headers
-x_wsne(a) cilist *a;
-#else
-#include "string.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- VOID
-x_wsne(cilist *a)
-#endif
-{
- Namelist *nl;
- char *s;
- Vardesc *v, **vd, **vde;
- ftnint number, type;
- ftnlen *dims;
- ftnlen size;
- extern ftnlen f__typesize[];
-
- nl = (Namelist *)a->cifmt;
- PUT('&');
- for(s = nl->name; *s; s++)
- PUT(*s);
- PUT(' ');
- f__Aquote = 1;
- vd = nl->vars;
- vde = vd + nl->nvars;
- while(vd < vde) {
- v = *vd++;
- s = v->name;
-#ifdef No_Extra_Namelist_Newlines
- if (f__recpos+strlen(s)+2 >= L_len)
-#endif
- nl_donewrec();
- while(*s)
- PUT(*s++);
- PUT(' ');
- PUT('=');
- number = (dims = v->dims) ? dims[1] : 1;
- type = v->type;
- if (type < 0) {
- size = -type;
- type = TYCHAR;
- }
- else
- size = f__typesize[type];
- l_write(&number, v->addr, size, type);
- if (vd < vde) {
- if (f__recpos+2 >= L_len)
- nl_donewrec();
- PUT(',');
- PUT(' ');
- }
- else if (f__recpos+1 >= L_len)
- nl_donewrec();
- }
- f__Aquote = 0;
- PUT('/');
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/z_abs.c b/Build/source/utils/pmx/pmx-src/libf2c/z_abs.c
deleted file mode 100644
index 4d8a015d384..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/z_abs.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-double f__cabs();
-double z_abs(z) doublecomplex *z;
-#else
-double f__cabs(double, double);
-double z_abs(doublecomplex *z)
-#endif
-{
-return( f__cabs( z->r, z->i ) );
-}
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/z_cos.c b/Build/source/utils/pmx/pmx-src/libf2c/z_cos.c
deleted file mode 100644
index 4abe8bf8820..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/z_cos.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double sin(), cos(), sinh(), cosh();
-VOID z_cos(r, z) doublecomplex *r, *z;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-void z_cos(doublecomplex *r, doublecomplex *z)
-#endif
-{
- double zi = z->i, zr = z->r;
- r->r = cos(zr) * cosh(zi);
- r->i = - sin(zr) * sinh(zi);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/z_div.c b/Build/source/utils/pmx/pmx-src/libf2c/z_div.c
deleted file mode 100644
index b61f03b8efc..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/z_div.c
+++ /dev/null
@@ -1,50 +0,0 @@
-#include "f2c.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef KR_headers
-extern VOID sig_die();
-VOID z_div(c, a, b) doublecomplex *a, *b, *c;
-#else
-extern void sig_die(char*, int);
-void z_div(doublecomplex *c, doublecomplex *a, doublecomplex *b)
-#endif
-{
- double ratio, den;
- double abr, abi, cr;
-
- if( (abr = b->r) < 0.)
- abr = - abr;
- if( (abi = b->i) < 0.)
- abi = - abi;
- if( abr <= abi )
- {
- if(abi == 0) {
-#ifdef IEEE_COMPLEX_DIVIDE
- if (a->i != 0 || a->r != 0)
- abi = 1.;
- c->i = c->r = abi / abr;
- return;
-#else
- sig_die("complex division by zero", 1);
-#endif
- }
- ratio = b->r / b->i ;
- den = b->i * (1 + ratio*ratio);
- cr = (a->r*ratio + a->i) / den;
- c->i = (a->i*ratio - a->r) / den;
- }
-
- else
- {
- ratio = b->i / b->r ;
- den = b->r * (1 + ratio*ratio);
- cr = (a->r + a->i*ratio) / den;
- c->i = (a->i - a->r*ratio) / den;
- }
- c->r = cr;
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/z_exp.c b/Build/source/utils/pmx/pmx-src/libf2c/z_exp.c
deleted file mode 100644
index 7b8edfece03..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/z_exp.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double exp(), cos(), sin();
-VOID z_exp(r, z) doublecomplex *r, *z;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-void z_exp(doublecomplex *r, doublecomplex *z)
-#endif
-{
- double expx, zi = z->i;
-
- expx = exp(z->r);
- r->r = expx * cos(zi);
- r->i = expx * sin(zi);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/z_log.c b/Build/source/utils/pmx/pmx-src/libf2c/z_log.c
deleted file mode 100644
index 4f11bbe0c78..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/z_log.c
+++ /dev/null
@@ -1,121 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double log(), f__cabs(), atan2();
-#define ANSI(x) ()
-#else
-#define ANSI(x) x
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern double f__cabs(double, double);
-#endif
-
-#ifndef NO_DOUBLE_EXTENDED
-#ifndef GCC_COMPARE_BUG_FIXED
-#ifndef Pre20000310
-#ifdef Comment
-Some versions of gcc, such as 2.95.3 and 3.0.4, are buggy under -O2 or -O3:
-on IA32 (Intel 80x87) systems, they may do comparisons on values computed
-in extended-precision registers. This can lead to the test "s > s0" that
-was used below being carried out incorrectly. The fix below cannot be
-spoiled by overzealous optimization, since the compiler cannot know
-whether gcc_bug_bypass_diff_F2C will be nonzero. (We expect it always
-to be zero. The weird name is unlikely to collide with anything.)
-
-An example (provided by Ulrich Jakobus) where the bug fix matters is
-
- double complex a, b
- a = (.1099557428756427618354862829619, .9857360542953131909982289471372)
- b = log(a)
-
-An alternative to the fix below would be to use 53-bit rounding precision,
-but the means of specifying this 80x87 feature are highly unportable.
-#endif /*Comment*/
-#define BYPASS_GCC_COMPARE_BUG
-double (*gcc_bug_bypass_diff_F2C) ANSI((double*,double*));
- static double
-#ifdef KR_headers
-diff1(a,b) double *a, *b;
-#else
-diff1(double *a, double *b)
-#endif
-{ return *a - *b; }
-#endif /*Pre20000310*/
-#endif /*GCC_COMPARE_BUG_FIXED*/
-#endif /*NO_DOUBLE_EXTENDED*/
-
-#ifdef KR_headers
-VOID z_log(r, z) doublecomplex *r, *z;
-#else
-void z_log(doublecomplex *r, doublecomplex *z)
-#endif
-{
- double s, s0, t, t2, u, v;
- double zi = z->i, zr = z->r;
-#ifdef BYPASS_GCC_COMPARE_BUG
- double (*diff) ANSI((double*,double*));
-#endif
-
- r->i = atan2(zi, zr);
-#ifdef Pre20000310
- r->r = log( f__cabs( zr, zi ) );
-#else
- if (zi < 0)
- zi = -zi;
- if (zr < 0)
- zr = -zr;
- if (zr < zi) {
- t = zi;
- zi = zr;
- zr = t;
- }
- t = zi/zr;
- s = zr * sqrt(1 + t*t);
- /* now s = f__cabs(zi,zr), and zr = |zr| >= |zi| = zi */
- if ((t = s - 1) < 0)
- t = -t;
- if (t > .01)
- r->r = log(s);
- else {
-
-#ifdef Comment
-
- log(1+x) = x - x^2/2 + x^3/3 - x^4/4 + - ...
-
- = x(1 - x/2 + x^2/3 -+...)
-
- [sqrt(y^2 + z^2) - 1] * [sqrt(y^2 + z^2) + 1] = y^2 + z^2 - 1, so
-
- sqrt(y^2 + z^2) - 1 = (y^2 + z^2 - 1) / [sqrt(y^2 + z^2) + 1]
-
-#endif /*Comment*/
-
-#ifdef BYPASS_GCC_COMPARE_BUG
- if (!(diff = gcc_bug_bypass_diff_F2C))
- diff = diff1;
-#endif
- t = ((zr*zr - 1.) + zi*zi) / (s + 1);
- t2 = t*t;
- s = 1. - 0.5*t;
- u = v = 1;
- do {
- s0 = s;
- u *= t2;
- v += 2;
- s += u/v - t*u/(v+1);
- }
-#ifdef BYPASS_GCC_COMPARE_BUG
- while(s - s0 > 1e-18 || (*diff)(&s,&s0) > 0.);
-#else
- while(s > s0);
-#endif
- r->r = s*t;
- }
-#endif
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/z_sin.c b/Build/source/utils/pmx/pmx-src/libf2c/z_sin.c
deleted file mode 100644
index 01225a9448d..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/z_sin.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double sin(), cos(), sinh(), cosh();
-VOID z_sin(r, z) doublecomplex *r, *z;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-void z_sin(doublecomplex *r, doublecomplex *z)
-#endif
-{
- double zi = z->i, zr = z->r;
- r->r = sin(zr) * cosh(zi);
- r->i = cos(zr) * sinh(zi);
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/z_sqrt.c b/Build/source/utils/pmx/pmx-src/libf2c/z_sqrt.c
deleted file mode 100644
index 35bd44c8e08..00000000000
--- a/Build/source/utils/pmx/pmx-src/libf2c/z_sqrt.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#include "f2c.h"
-
-#ifdef KR_headers
-double sqrt(), f__cabs();
-VOID z_sqrt(r, z) doublecomplex *r, *z;
-#else
-#undef abs
-#include "math.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern double f__cabs(double, double);
-void z_sqrt(doublecomplex *r, doublecomplex *z)
-#endif
-{
- double mag, zi = z->i, zr = z->r;
-
- if( (mag = f__cabs(zr, zi)) == 0.)
- r->r = r->i = 0.;
- else if(zr > 0)
- {
- r->r = sqrt(0.5 * (mag + zr) );
- r->i = zi / r->r / 2;
- }
- else
- {
- r->i = sqrt(0.5 * (mag - zr) );
- if(zi < 0)
- r->i = - r->i;
- r->r = zi / r->i / 2;
- }
- }
-#ifdef __cplusplus
-}
-#endif
diff --git a/Build/source/utils/pmx/pmx-src/pmx.test b/Build/source/utils/pmx/pmx-src/pmx.test
deleted file mode 100755
index 4055a6e47ed..00000000000
--- a/Build/source/utils/pmx/pmx-src/pmx.test
+++ /dev/null
@@ -1,26 +0,0 @@
-#! /bin/sh
-
-# Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
-# You may freely use, modify and/or distribute this file.
-
-rm -f barsant* pmxaerr.dat
-
-cp $test_src/barsant.pmx .
-
-failed=
-
-./scor2prt barsant \
- && diff barsant1.pmx $test_src/barsant1.pmx \
- && diff barsant2.pmx $test_src/barsant2.pmx \
- || failed="$failed scor2prt"
-
-./pmxab barsant \
- && diff barsant.mid $test_src/barsant.mid \
- && diff barsant.pml $test_src/barsant.pml \
- && diff barsant.tex $test_src/barsant.tex \
- || failed="$failed pmxab"
-
-test -z "$failed" && exit 0
-echo "failed tests:$failed"
-exit 1
-
diff --git a/Build/source/utils/pmx/pmx-src/pmx.tex b/Build/source/utils/pmx/pmx-src/pmx.tex
deleted file mode 100644
index 3576f581cf6..00000000000
--- a/Build/source/utils/pmx/pmx-src/pmx.tex
+++ /dev/null
@@ -1,892 +0,0 @@
-%%%%%%%%%%%%%%%%%%%%%%%
-%% %%
-%% pmx.tex %%
-%% %%
-%%%%%%%%%%%%%%%%%%%%%%%
-\ifx\pmxversion\undefined\else\endinput\fi
-\def\pmxversion{2.94}\def\pmxdate{23 Jan 20}
-% 2.94 add def'ns of \hbp, \hbpp
-% 2.80 add def'n of \slx, real stemlength
-% 2.73 4 Feb 16 Fix \pmxclefsym to include \smalltreblelowoct
-% 2.73 Added \pmxlyr command.
-% 2.619 At movement break, directly set \nbinstruments in \newmovement;
-% probably don't need \newnoi any more.
-% (2.619a) Added \resetlyrics in \newmovement.
-% 2.614 Comment out definitions of some dotted rests, since either in
-% musixtex.tex or not needed.
-% Modified for two figured bass lines 081115
-% 2.502 (Olivier Vogel) change all the commands of the form
-% \font\...=\fontid sy1000 to \font\...=cmsy10
-% 2.408 comment out extra definition of \mdot
-% tweak \hpausep, replace \liftPAuse, add \liftPAusep
-% 2.406 redefine \starteq to put down strut for first system inside \znotes
-% 2.354a add \zcharnote{##2}{~} to \tieforsl
-% 2.354
-% Macros \tieforisu, etc, to replace slurs with ties, for use with musixps
-% 2.353
-% Define \pmxversion
-% Insert Dirk's 2nd set of (LaTeX-aware) redefinitions for \centerline etc.
-% Add 5th option for \endset to \newmovement, for Rz.
-% 12/24/01 add \setzalaligne
-% 12/23/01 Remove \parskip re-definition.
-% 12/16/01 Define \psforts (postscript slur endings to replace \midslur)
-% 10/20/01 added defn's of \bigcna, etc
-% 10/20/01 define \resetsize, redefine \gaft, \grace, and \shlft so resizing
-% is conditional on current staff line spacing.
-% 11 September Redefine liftpausc to include ledger line.
-% 26 Aug 01 Add \pcaesura, \pbreath
-% 10/21/00 Added PMXbarnotrue/false and stopped PMX zapping writezbarno
-% 15 October added vertical equalization macros
-% 4 July added \PAusep, \brevep, dynamic mark placement \pmxdyn, \sfz
-% 1 July inserted stuff for hairpins
-% 31 May 99 Redefined \smno
-%
-\immediate\write10%
-{PMX, a Preprocessor for MusiXTeX, Version\space\pmxversion b\space<\pmxdate>}%
-% Check for MusiXTeX version. TeX generates an error, not an ordinary
-% \end, because the \ifnum is not completed.
-\ifnum\mxvernumber<121\immediate\write16{ }
-\immediate\write16{****************}
-\immediate\write16{! STOPPING TeX because MusiXTeX Version = \mxvernumber}
-\immediate\write16{ while PMX 2.71+ requires at least 121}
-\immediate\write16{****************}
-\immediate\write16{ }\end{document}\fi
-%
-\edef\catcodeat{\the\catcode`\@}\catcode`\@=11
-%
-% The next 4 lines are for Don's home use only
-%
-\font\specfnt=cmssqi8%
-\def\mtr#1{\zcharnote{#1}%
-{\specfnt\kern 1.5\internote\raise 0.3\internote\hbox to 0pt{/\hss}%
-\kern -0.7\internote\raise 1.0\internote\hbox to 0pt{/\hss}}}
-%
-\newif\ifolder%
-%
-% Older fonts had clefs at different heights. If you have the older
-% version you should uncomment the following line
-%\oldertrue%
-%
-% The next 3 lines should be in musixmad. They were omitted in
-% some early versions!
-%
-%\newcount\s@Nx
-%\newcount\s@Nxi
-%\newcount\s@Nxii
-%
-% Stemlength macro shorthands for 2-note unbeamed tremolos
-%
-\def\slx#1{\stdstemfalse\nostemcut\stemlength{#1}}
-\def\slz{\stemcut\stemlength{4.66}}
-%
-% Special clef change stuff
-%
-\newcount\reflect
-\def\pmxnewclefs{\m@loop\s@l@ctclefs\o@c\a@c\repeat}%
-\newtoks\pmxclefsym
-\def\pmxclef#1#2{\ifnum#1=0\def\pmxclefsym{\smalltrebleclef}\else\ifnum#1<5%
-\def\pmxclefsym{\smallaltoclef}\else\ifnum#1=7\def\pmxclefsym{\smalltrebleclef}%
-\else\ifnum#1=8\def\pmxclefsym{\smalltreblelowoct}%
-\else\def\pmxclefsym{\smallbassclef}\fi\fi\fi\fi%
-% Adjust height here for older clef default heights.
-\reflect#2\ifolder\ifnum#1=0\advance\reflect-2\else\ifnum#1<5\advance\reflect-4%
-\else\advance\reflect-6\fi\fi\fi%
-\lcharnote{0}{\raise\reflect\internote\hbox{\pmxclefsym}}}%
-%
-% Grace note stuff, incl. macro to reset size after going tiny.
-% This may assume that \musicsize is 20pt but some staves may have
-% \setsize#1\smallvalue
-%
-\def\resetsize{\ifdim\internote<.95\Internote%
-\let\musictinyfont\musicthirteen\smallnotesize\else\normalnotesize\fi}%
-\def\settiny{\ifdim\internote<.95\Internote\let\musictinyfont\musiceleven\fi%
-\tinynotesize}%
-\def\grace#1#2#3{\off{-#1pt}\settiny\stdstemfalse#2\zcu{#3}%
-\resetsize\off{#1pt}}%
-\def\shlft#1#2{\off{-#1pt}\settiny\stdstemfalse#2\resetsize\off{#1pt}}%
-\def\gaft#1#2{\bsk\roffset{#1}{{\settiny\stdstemfalse#2\resetsize}}\sk}%
-%
-% The following keep octaviation out of brackets.
-% 10/20/01: Are these used anywhere???
-%
-%\def\Gshl#1{\off{-#1pt}\tinynotesize}%
-%\def\Gshr#1{\normalnotesize\off{#1pt}}%
-\def\segnoo#1#2{\zcharnote{#2}{\kern#1pt\musicsmallfont\char"56}}%
-\def\ssegno#1{\zcharnote{#1}{\musictinyfont\char86}}%
-%
-% Some ornaments...
-%
-% Font for x-trill symbol. Could make this more general.
-%
-\def\xtr#1{\zcharnote{#1}{\xtrfont\char"02}}
-%
-% Plus-trill
-%
-\def\ptr#1{\ptrx{#1}{1.8}{.35}}
-\def\ptrx#1#2#3{\zcharnote{#1}{\raise.9\internote\hbox{%
-\pcil\h@lf\qn@width\kern\pcil%
-\razclef#2\internote\pcil#3\internote\kern-\h@lf\razclef\vrule height \h@lf\pcil
-depth \h@lf\pcil width \razclef\kern-\h@lf\razclef\kern-\h@lf\pcil\kern-.1pt
-\vrule height \h@lf\razclef depth \h@lf\razclef width \pcil}}%
-}%
-%
-% Put in a number for an xtuplet.
-%
-\def\xnum#1#2#3{\off{#1\elemskip}\zcharnote{#2}{\smalltype\it #3}%
-\off{-#1\elemskip}}
-%
-% accidental skips
-%
-\def\ast#1{\off{#1\elemskip}}
-%
-% Check for and read a .mod file; open the .ask file
-%
-\newread\pmxmod
-\def\readmod#1{\openin\pmxmod #1.mod\relax
-\ifeof\pmxmod\else\input #1.mod\fi\closein\pmxmod}
-%
-% Macros for optional small notes, usually w/ down stems. Offset to center
-% them below a large note. I used these in Matteis.
-%
-%\def\smno#1{\roffset{.17}{\tinynotesize#1\normalnotesize}}%
-%
-% Redefined, due to some mysterious problem with \roffset
-%
-\def\smno#1{\off{.17\qn@width}\tinynotesize#1\normalnotesize\off{-.17\qn@width}}%
-\def\pmno#1{\roffset{.08}{\smallnotesize#1\normalnotesize}}%
-\def\smq#1{\smno{\zql{#1}}}\def\smc#1{\smno{\zcl{#1}}}%
-\def\smh#1{\smno{\zhl{#1}}}%
-%
-% Single-digit meter symbol
-%
-\newbox\workbox%
-\def\meterN#1{\setbox\workbox=\vbox{\hbox{\ \meterfont #1}}%
-\vbox to 8\internote{\offinterlineskip\vss\hbox to \wd\workbox{\hss
-\meterfont #1\hss}\vss }}%
-%
-% Meter symbol '3' with vertical slash
-%
-\def\meterIIIS{\kern\internote\raise\Interligne\hbox{\meterfont 3}%
-\kern -2.0\internote
-\vrule height 7\internote depth -\internote width0.3\internote
-\kern 1.7\internote}%
-%
-% Fractional meter with a slash
-%
-\def\meterfracS#1#2{%
-\kern\internote\raise2\Interligne\rlap{\meterfont #1}%\lower2\Interligne%
-\hbox{\meterfont #2}%
-\kern -1.85\internote
-\vrule height 8\internote width0.3\internote
-\kern 1.55\internote}%
-%
-% *Symbols* for use in figures
-%
-\def\sharpfig{\musixchar92}
-\def\flatfig{\musixchar90}
-\def\natfig{\musixchar94}
-\def\fsmsh{\llap{\musixchar92}}
-\def\fsmfl{\llap{\musixchar90}}
-\def\fsmna{\llap{\musixchar94}}
-%
-% Macros for editorial accidentals
-%
-\def\qedit#1{\roffset{.2}{\zcharnote{#1}{\normtype\rm?}}}
-\def\qsharp#1{%
-\loffset{.2}{\zcharnote{#1}{\sharpfig\lower1.3\internote\hbox{\normtype\rm?}}}}
-\def\qflat#1{%
-\loffset{.2}{\zcharnote{#1}{\flatfig\lower.8\internote\hbox{\normtype\rm?}}}}
-\def\qnat#1{%
-\loffset{.2}{\zcharnote{#1}{\natfig\lower1.2\internote\hbox{\normtype\rm?}}}}
-\def\esharp#1{\roffset{.3}{\zcharnote{#1}{\sharpfig}}}
-\def\eflat#1{\roffset{.3}{\zcharnote{#1}{\flatfig}}}
-\def\enat#1{\roffset{.3}{\zcharnote{#1}{\natfig}}}
-%
-% Cautionary big accidentals
-%
-\def\bigcna{\cna} \def\bigcfl{\cfl} \def\bigcsh{\csh}
-%
-% Some fonts...for some reason my system can't do cmbx12 scaled \magstep4
-% 9/17/97 Must redo the following 3 lines to permit EC/DC fonts
-%
-%\font\BIGfont=cmbx10 scaled\magstep4\font\Bigfont=cmbx10 scaled\magstep2
-%\font\tempo=\fontid bx12%
-%\font\dyn=\fontid bx10%
-\iflongDCfontnames
-\font\xtrfont=cmsy10
-\font\tempo=\fontid bx1200
-\font\dyn=\fontid bx1000
-\else\iflongECfontnames
-\font\xtrfont=cmsy10
-\font\tempo=\fontid bx1200
-\font\dyn=\fontid bx1000
-\else
-%\font\xtrfont=cmsy10
-%\font\BIGfont=cmbx10 scaled\magstep4
-%\font\Bigfont=cmbx10 scaled\magstep2
-\font\xtrfont=cmsy10
-% Definitions deleted per Bob Tennent's request 150726
-%\font\BIGfont=\fontid bx10 scaled\magstep4
-%\font\Bigfont=\fontid bx10 scaled\magstep2
-\font\tempo=\fontid bx12%
-\font\dyn=\fontid bx10%
-\fi\fi
-%
-% Continuation figure
-%
-\def\Cont#1#2{\advance\figdrop by #1\lower\figdrop\internote%
-\hbox to \z@{\kern -0.3\noteskip%
-\vbox{\hrule height 1.4\lthick width #2\noteskip}\hss}%
-\advance\figdrop by -#1}%
-\def\Cott#1#2{\advance\figdtwo by #1\lower\figdtwo\internote%
-\hbox to \z@{\kern -0.3\noteskip%
-\vbox{\hrule height 1.4\lthick width #2\noteskip}\hss}%
-\advance\figdtwo by -#1}%
-
-%
-% Tiny C clef on line #1: Will need to mod with new fonts 11-4-96
-%
-\newdimen\razclef\newdimen\symwid%
-\newdimen\pcil %\ifnum\musicsize=20\pcil4pt\else\pcil3.25pt\fi%
-\def\preclef#1#2{%
-\ifnum#2=20\pcil4pt\else\pcil3.25pt\fi%
-\symwid3.692\pcil%
-\hbox{\vbox{\hrule height \lthick width \symwid}%
-\kern-\symwid\raise\pcil\vbox{\hrule height \lthick width \symwid}%
-\kern-\symwid\raise2\pcil\vbox{\hrule height \lthick width \symwid}%
-\kern-\symwid\raise3\pcil\vbox{\hrule height \lthick width \symwid}%
-\kern-\symwid\raise4\pcil\vbox{\hrule height \lthick width \symwid}%
-\razclef-2.43\pcil\advance\razclef#1\pcil%
-\kern-\symwid\raise\razclef\hbox to \symwid{\hss\smallaltoclef\hss}%
-}}%
-\def\namewpc#1#2#3#4#5{\raise#4pt\hbox to \parindent{\raise#5pt\hbox{#1}%
-\hfill\preclef{#2}{#3}}}
-%
-% Stuff for figure placements
-%
-% 9/17/97 redo font names
-%
-%\font\figfont=cmr10
-\def\figfont{\normtype\rm}%
-%
-\newcount\figdrop
-\newcount\figdtwo
-%\figdrop=6
-\newcount\sysno
-\global\sysno=0\relax%
-\def\Figu#1#2{\off{.9pt}\advance\figdrop by #1\lower\figdrop\internote%
-\hbox to \z@{\figfont#2\hss}\off{-.9pt}\advance\figdrop by -#1}%
-%
-% Special Figure macro for 2-bass parts
-%
-%\def\Figt#1#2{\zcharnote{#1}{\kern.9pt\figfont#2}}%
-\def\Figt#1#2{\off{.9pt}\advance\figdtwo by #1\lower\figdtwo\internote%
-\hbox to \z@{\figfont#2\hss}\off{-.9pt}\advance\figdtwo by -#1}%
-%
-% Bar numbering
-%
-\systemnumbers%
-\def\raisebarno{3.5\internote}%
-\def\shiftbarno{3.5\internote}%
-\newdimen\rbnbl\newdimen\sbnbl\newdimen\xrbn\newdimen\xsbn%
-\newdimen\rbndim\newdimen\sbndim%
-\global\rbndim\raisebarno\global\sbndim\shiftbarno%
-\global\def\raisebarno{\rbndim}\global\def\shiftbarno{\sbndim}%
-\global\rbnbl\rbndim\global\sbnbl\sbndim\global\xrbn0pt\global\xsbn0pt%
-%
-% The following 2 macros are messy, but they retain \raisebarno as a macro and
-% retain original definition in musixtex for the end-of-line utility.
-%
-\def\bnrs#1#2{%
-%
-% If here, baseline values will not change. On exit, \rbndim will
-% be the temporary value, \xrbn will be the increment (must save to check later;
-% if <>0 then baseline hasn't changed!), and \rbnbl is still the baseline value.
-%
- \global\xrbn#1\internote\global\advance\rbndim\xrbn%
- \global\xsbn#2\internote\global\advance\sbndim\xsbn%
-}%
-\def\writebarno{%
- \ifnum\barno>1%
- \boxit{\smalltype\bf\the\barno\barnoadd}%
- \ifdim\raisebarno=\rbnbl%
- \empty%
- \else%
- \ifdim\xrbn=0pt%
- \global\rbnbl\raisebarno%
- \global\def\raisebarno{\rbndim}%
- \else%
- \global\xrbn0pt%
- \fi%
- \global\rbndim\rbnbl%
- \fi%
- \ifdim\shiftbarno=\sbnbl%
- \empty%
- \else%
- \ifdim\xsbn=0pt%
- \global\sbnbl\shiftbarno%
- \global\def\shiftbarno{\sbndim}%
- \else%
- \global\xsbn0pt%
- \fi%
- \global\sbndim\sbnbl%
- \fi%
- \fi%
-}%
-%
-% Make small accidentals the default
-%
-\smallaccid%
-%
-% Put in a new time signature. Modified 151226
-%
-\def\newtimes#1%
-{\ifnum#1=0%
- \n@wbar\writ@newclefs\advance\barsinlin@\@ne%
-%
-% Added 151216
-%
- \wbarno@x\Writ@newsigns%
- \advance\n@skip0.3\afterruleskip\widthtyp@\@ne\t@rmskip%
- \Writ@meters\lastbarpos\lin@pos\addspace\afterruleskip%
-\else\ifnum#1=1%
- \alaligne
-\else
- \wbarno@x%
-%
-% Added 151226
-%
-\addspace\afterruleskip
-%
-% -0.7 gave too much space before meter.
-%
-% \advance\n@skip-0.7\afterruleskip\widthtyp@\@ne\t@rmskip%
- \advance\n@skip-\afterruleskip\widthtyp@\@ne\t@rmskip%
- \Writ@meters\addspace\afterruleskip%
-\fi\fi}%
-%
-% changecontext with no line break
-%
-\def\xchangecontext{\n@wbar\writ@newclefs
- \wbarno@x\Writ@newsigns\Writ@meters\addspace\afterruleskip}%
-%
-% changecontext with forced line break and no barline
-%
-\def\zachangecontext{\advance\n@skip\beforeruleskip \widthtyp@\@ne \t@rmskip
- \zn@wbar \writ@newclefs \advance\barsinlin@\@ne
- \Writ@newsigns\z@suspend\contpiece }
-%
-% Dotted rests.
-%
-%\def\hsp{\pt7\hs}
-%\def\hspp{\ppt7\hs}
-%\def\qsp{\pt5\qs}\def\dsp{\pt5\ds}\def\qpp{\pt5\qp}
-%\def\qspp{\ppt5\qs}\def\dspp{\ppt5\ds}\def\qppp{\ppt5\qp}
-%\def\pausep{\off{.33\qn@width}\pt5\off{-.33\qn@width}\pause}
-%\def\pausep{\wholeshift{\pt5}\pause}
-\def\hpausepp{\wholeshift{\ppt5}\hpause}
-\def\pausepp{\wholeshift{\ppt5}\pause}
-%
-% Redefine headline to lower pagenumber. The original defn:
-% \def\makeheadline{\vbox to\z@{\vskip-22.5\p@
-% \line{\vbox to8.5\p@{}\the\headline}\vss}\nointerlineskip}
-%
-\def\makeheadline{\vbox to\z@{\vskip-8\p@
- \line{\vbox to8.5\p@{}\the\headline}\vss}\nointerlineskip}
-%
-% Dot at arbitrary height above a top line of staff
-%
-%\def\mdot#1{\zcharnote8{\kern-5.3pt\raise{#1}\internote\hbox{\musixchar0}}}
-%
-% Titles
-%
-%\def\titles#1#2#3#4#5#6#7{\kern-\lin@pos%
-%\kern-3.2\Interligne\kern-\parindent\kern-\afterruleskip%
-%\kern-\sign@skip%
-%\vbox{\vskip#1\Interligne
-%\ifx\relax#2\relax\else\leftline{\Bigtype #2}\fi\vskip#3\Interligne%
-%\ifx\relax#4\relax\else\centerline{\BIGtype #4}\fi\vskip#5\Interligne%
-%\ifx\relax#6\relax\else\rightline{\Bigtype #6}\fi\vskip#7\Interligne}}%
-%
-% New def'n per Dirk Laurie to allow multiple lines.
-%
-\ifx\documentclass\undefined
-\def\centerlines#1{{\def\\{\hss\egroup\medskip\par\line\bgroup\hss}%
- \line\bgroup\hss#1\hss\egroup}}
-\def\leftlines#1{{\def\\{\hss\egroup\smallskip\par\line\bgroup}%
- \line\bgroup#1\hss\egroup}}
-\def\rightlines#1{{\def\\{\egroup\smallskip\par\line\bgroup\hss}%
- \line\bgroup\hss#1\egroup}}
-\else
-\def\centerlines#1{{\centering#1\\}}
-\def\leftlines#1{{\raggedright#1\\}}
-\def\rightlines#1{{\raggedleft#1\\}}
-\fi
-%\def\centerline#1{{\def\\{\hss\egroup\medskip\par\line\bgroup\hss}%
-% \line\bgroup\hss#1\hss\egroup}}
-%\def\leftline#1{{\def\\{\hss\egroup\smallskip\par\line\bgroup}%
-% \line\bgroup#1\hss\egroup}}
-%\def\rightline#1{{\def\\{\egroup\smallskip\par\line\bgroup\hss}%
-% \line\bgroup\hss#1\egroup}}
-\def\titles#1#2#3#4#5#6#7{\kern-\lin@pos%
-\kern-3.2\Interligne\kern-\parindent\kern-\afterruleskip%
-\kern-\sign@skip%
-\vbox{\vskip#1\Interligne
-% Next 3 lines replaced at Bob Tennent's request 150726
-%\ifx\relax#2\relax\else{\Bigtype\leftlines{#2}}\fi\vskip#3\Interligne%
-%\ifx\relax#4\relax\else{\BIGtype\centerlines{#4}}\fi\vskip#5\Interligne%
-%\ifx\relax#6\relax\else{\Bigtype\rightlines{#6}}\fi\vskip#7\Interligne}}%
-\ifx\relax#2\relax\else{\bigtype\leftlines{#2}}\fi\vskip#3\Interligne%
-\ifx\relax#4\relax\else{\BIgtype\centerlines{#4}}\fi\vskip#5\Interligne%
-\ifx\relax#6\relax\else{\bigtype\rightlines{#6}}\fi\vskip#7\Interligne}}%
-%
-% Slashes on stems
-%
-\def\usoff#1{%
-% Set \pcil to (stem length)-9\Internote
- \ifnum#1>10
- \pcil-3.8\Internote
- \else
- \pcil#1\Internote
- \ifnum#1>3
- \pcil-.38\pcil\advance\pcil-.5\Internote
- \ifnum#1>7
- \advance\pcil.38\Internote
- \fi
- \else
- \ifnum#1<-2
- \pcil-\pcil\advance\pcil-5\Internote
- \else
- \pcil-2\Internote
- \fi
- \fi
- \fi
- \advance\pcil#1\Internote
-}%
-%
-\def\us#1{\usoff{#1}%
- \raise\pcil\hbox{\loffset{.5}{\ibu009}\roffset{.5}{\tbu0}}}%
-\def\ls#1{\reflect-#1\advance\reflect8 %
-\usoff{\reflect}\advance\pcil-7\Internote%
- \lower\pcil\hbox{\loffset{.5}{\ibl009}\roffset{.5}{\tbl0}}}%
-%
-% Thinner slashes, better coding
-%
-\newdimen\pmxtop\def\aslash#1#2#3{%
-%
-% #1 = note level relative to bottom line. #2 = 0/1 for down/up stem
-% #3 = 0/1 for down/up slash, For downstem, reflect, do as up, then unreflect.
-%
-\ifcase#3\def\slchar{\char248}\or\def\slchar{\char184}\fi%
-\ifcase#2\pmxtop-#1\internote\advance\pmxtop8\internote\or\pmxtop#1\internote%
-\fi\advance\pmxtop4.66\interbeam\ifdim\pmxtop>11\internote\uptop{11}\uptop{12}%
-\uptop{13}\uptop{14}\uptop{15}\uptop{16}\fi%
-\ifdim\pmxtop<4\internote\pmxtop4\internote\fi%
-%
-% \pmxtop now top of stem for upstem. Unreflect if downstem
-%
-\ifcase#2\pmxtop-\pmxtop\advance\pmxtop8\internote\ifcase#3%
-\advance\pmxtop2.5\internote\or\advance\pmxtop.9\internote\fi%
-\ccharnote0{\raise\pmxtop\hbox{\musictinyfont\slchar}}%
-\or\ifcase#3\advance\pmxtop-.9\internote\or\advance\pmxtop-2.5\internote\fi%
-\roff{\ccharnote0{\raise\pmxtop\hbox{\musictinyfont\slchar}}}\fi}%
-\def\uptop#1{\ifdim\pmxtop>#1\internote\advance\pmxtop-.25\interbeam\fi}%
-%
-% Signature change at end of line
-%
-\def\sigatend#1#2{\setdoublebar\xbar\hardspace{-#2pt}\generalsignature{#1}%
-\zchangecontext\hardspace{-#2pt}\advance\barno-1\let\barrul@\empty}%
-%
-% Macros for beams
-%
-\def\rbbu#1{\roff{\tbbu{#1}}}
-\def\rbbbu#1{\roff{\tbbbu{#1}}}
-\def\rbbbbu#1{\roff{\tbbbbu{#1}}}
-\def\rbbl#1{\roff{\tbbl{#1}}}
-\def\rbbbl#1{\roff{\tbbbl{#1}}}
-\def\rbbbbl#1{\roff{\tbbbbl{#1}}}
-%
-% Stuff for second voice per staff
-%
-\def\nextvoice{%
-\@ndstaff\reflect\noport@@\advance\noport@@-1\beginstaff\noport@@\reflect}%
-%
-% Macros for moving slur starts and stops
-%
-\def\isu#1#2#3{\roffset{#3}{\isluru{#1}{#2}}}%
-\def\isd#1#2#3{\roffset{#3}{\islurd{#1}{#2}}}%
-\def\ts#1#2#3{\roffset{#3}{\tslur{#1}{#2}}}%
-%
-% Macro to replace old \tslur with special postscript slur endings
-%
-\def\psforts#1{\let\tst\tslur\def\tslur##1##2{%
-\ifnum#1=0\tst{##1}{##2}\else%
-\ifnum#1=1\tfslur{##1}{##2}\else%
-\ifnum#1<4\tst{##1}{##2}\else%
-\ifnum#1=4\thslur{##1}{##2}\else%
-\ifnum#1=5\tHslur{##1}{##2}\else%
-\tHHslur{##1}{##2}\fi\fi\fi\fi\fi\let\tslur\tst}}%
-%
-% Macros to replace slurs with ties
-%
-\def\tieforisu{\let\ist\isluru%
-\def\isluru##1##2{\itieu{##1}{##2}\let\isluru\ist}}%
-\def\tieforisd{\let\ist\islurd%
-\def\islurd##1##2{\itied{##1}{##2}\let\islurd\ist}}%
-\def\tieforts{\let\ist\tslur%
-\def\tslur##1##2{\ttie{##1}\zcharnote{##2}{~}\let\tslur\ist}}%
-%
-% Replacement trill macros, to avoid overfull boxes on 1st pass
-%
-\let\savtr\trille\let\savTr\Trille%
-\def\trille#1#2{\ifeof\inmux\else\savtr{#1}{#2}\fi}%
-\def\Trille#1#2{\ifeof\inmux\else\savTr{#1}{#2}\fi}%
-%
-% Mordent as \rpar. If dotted, must move dot to right.
-%
-\def\lpn#1{\loffset{.3}{\lpar{#1}}}% '('
-\def\rpn#1{\roffset{.3}{\rpar{#1}}}% Beam or not, no dot [ ')' only ]
-\def\clm#1#2{\mdot{#1}{#2}\cl{#2}}% Non-beam, dot [ '.' + ')' + note ]
-\def\cum#1#2{\mdot{#1}{#2}\cu{#2}}%
-\def\qlm#1#2{\mdot{#1}{#2}\ql{#2}}%
-\def\qum#1#2{\mdot{#1}{#2}\qu{#2}}%
-\def\hlm#1#2{\mdot{#1}{#2}\hl{#2}}%
-\def\hum#1#2{\mdot{#1}{#2}\hu{#2}}%
-\def\qbm#1#2#3{\mdot{#2}{#3}\qb{#1}{#3}}% Beamed & dotted
-\def\mdot#1#2{\roffset{.32}{\pt{#1}}\roffset{.24}{\rpar{#2}}}%
-\def\lpnu#1{\smallnotesize\loffset{.3}{\zcharnote{#1}%
-{\raise1pt\hbox{\musixchar3}}}\normalnotesize}%
-\def\lpnd#1{\smallnotesize\loffset{.3}{\zcharnote{#1}%
-{\lower1pt\hbox{\musixchar3}}}\normalnotesize}%
-\def\rpnu#1{\smallnotesize\roffset{.6}{\zcharnote{#1}%
-{\raise1pt\hbox{\musixchar4}}}\normalnotesize}%
-\def\rpnd#1{\smallnotesize\roffset{.6}{\zcharnote{#1}%
-{\lower1pt\hbox{\musixchar4}}}\normalnotesize}%
-%
-% For use with mid-bar signature changes, to permit using \ast machinery
-%
-\def\rdoff{\let\toff\off\let\off\addspace}%
-%
-% For raising arpeggios by .5/internote
-%
-\def\raisearp#1#2{\zcharnote{#1}{%
- \raise.5\internote\hbox{%
- \uplap{\leaders\hbox{\musixchar70}\vskip#2\Interligne}}}}
-%
-% New Movement Macro
-%
-%\def\newmovement#1#2{\let\holdstop\stoppiece\let\holdcont\contpiece%
-\def\newmovement#1#2#3{\let\holdstop\stoppiece\let\holdcont\contpiece%
-\ifcase#2\def\endset{\setdoubleBAR}\or\def\endset{\setdoublebar}\or%
-%\def\endset{\setrightrepeat}\or\def\endset{\empty}\fi%
-\def\endset{\setrightrepeat}\or\def\endset{\empty}%
- \or\def\endset{\empty}\fi%
- \def\stoppiece{\endset%
-%
-%+++
-\ifnum#2=4\zstoppiece\else%
-%+++
-%
-\holdstop%
-%
-%+++
-\fi%
-%+++
-%
-\vskip#1\internote%
-\let\stoppiece\holdstop}%
-% \def\contpiece{
- \def\contpiece{\def\nbinstruments{#3}% <-- assignment inserted here
-%
-% Added 120904 per Rainer's suggestion to fix problem with M-Tx at m-break.
-%
-\ifx\resetlyrics\undefined\else\resetlyrics\fi%
-%
-\startpiece\addspace\afterruleskip\let\contpiece\holdcont}%
-}%
-%
-% Redefinitions for moving dots vertically by x\interligne and
-% horizontally by y headwidths. Should work for all kinds of dotted notes.
-% Usage: \def\C@Point#1#2{\PMXpt{.0}{-.2}} (x and y hardwired by PMX)
-%
-\global\let\C@Psave\C@Point%
-\def\PMXpt#1#2#3{\ifodd\n@i\else\raise\internote\fi%
-\hbox{\raise#1\internote\hbox{\kern#2\qn@width\musixchar#3\kernm#2\qn@width}}%
-\global\let\C@Point\C@Psave}%
-%
-% Shifted, pointed chord notes (Missing in musixtex.tex ???)
-%
-\def\lhp#1{\loff{\zhp{#1}}}
-\def\rhp#1{\roff{\zhp{#1}}}
-\def\lqp#1{\loff{\zqp{#1}}}
-\def\rqp#1{\roff{\zqp{#1}}}
-\def\rhpp#1{\roff{\zhpp{#1}}}
-\def\lhpp#1{\loff{\zhpp{#1}}}
-\def\rqpp#1{\roff{\zqpp{#1}}}
-\def\lqpp#1{\loff{\zqpp{#1}}}
-%
-% Redefine to include \sk !!!
-%
-\def\liftpause#1{\C@ps\@l@v@n\si@{#1}\sk}
-%\def\liftPAuse#1{\C@ps{58}0{#1}\sk}
-% 1/19/03 Replaced old def'n; added \liftPAusep
-\def\liftPAuse#1{\reflect#1\multiply\reflect2%
-\zcharnote{0}{\raise\reflect\internote\hbox{\kern.4\qn@width\musixchar58}}\sk}%
-\def\liftPAusep#1{\reflect#1\multiply\reflect2%
-\zcharnote{0}{\raise\reflect\internote\hbox{\kern.4\qn@width\musixchar58%
-\kern-\qn@width\pt4}}\sk}%
-\def\lifthpause#1{\C@ps\t@n\f@ur{#1}\sk}%
-\def\liftpausep#1{\reflect#1\advance\reflect2%
-\wholeshift{\raise\reflect\Interligne\hbox{\pt0}}\liftpause{#1}}%
-\def\liftpausepp#1{\reflect#1\advance\reflect2%
-\wholeshift{\raise\reflect\Interligne\hbox{\ppt0}}\liftpause{#1}}%
-\def\lifthpausep#1{\reflect#1\advance\reflect2%
-\wholeshift{\raise\reflect\Interligne\hbox{\pt0}}\lifthpause{#1}}%
-\def\lifthpausepp#1{\reflect#1\advance\reflect2%
-\wholeshift{\raise\reflect\Interligne\hbox{\ppt0}}\lifthpause{#1}}%
-%
-% Text up to bar line. Use before last note, assume 1 noteskip to bar.
-%
-\def\bartext#1#2{\sk\loffset{.3}{\zcharnote{#1}{\llap{#2}}}\bsk}
-%
-% Macro used before movement break to change # of instruments.
-% 120818 Set \nbinstruments in \newmovement; probably don't need this any more.
-%
-\def\newnoi#1{\let\atnb\atnextbar\def\atnextbar{\atnb\def\nbinstruments{#1}}}%
-%
-% Set up top page numbers with optional centered heading
-%
-% #2=0 if odds on rt, else 1. #1 = initial page no. #3=name
-\def\toppageno#1#2#3{\pageno#1%
-\headline{\reflect#2\advance\reflect\pageno%
-\ifodd\reflect\rhead{#3}\else\lhead{#3}\fi}%
-\def\rhead##1{\tempo\ifnum\pageno>1\hfil{##1}\fi\hfil\llap\folio}%
-\def\lhead##1{\tempo\rlap\folio\hfil{##1}\hfil}}%
-%
-% Temporary date and file name. To use it:
-%
-% (1) Define a script to create a file tempdate.dat. The file will
-% contain a single line of text to be centered at the bottom of
-% each page. I use a 4DOS alias (makedate) that inserts current date
-% filename, and filedate as follows:
-%
-% echo \smalltype\rm Printed %_date from file %1.pmx %@filedate[c:\pmx\%1.pmx],
-% %@filetime[c:\pmx\%1.pmx] >tempdate.dat
-%
-% (2) Include a call to makedate in the batch file you use to run pmx+tex.
-% Be sure tempdate.dat is written to a directory accessible to TeX.
-%
-% (3) Include in-line tex \\tempdate\ at the top of the pmx file.
-%
-\def\tempdate{\def\makefootline{\baselineskip2pt\line{\the\footline}}
-\footline{\hss\input tempdate.dat\hss}}
-%
-\def\pnotes#1{\vnotes#1\elemskip}%
-%
-% Hairpins and other dynamic stuff
-%
-\newdimen\hpi\newdimen\hpii\newdimen\hpiii\newdimen\hpiv%
-\newdimen\hpv\newdimen\hpvi\newdimen\hpvii\newdimen\hpviii%
-\newdimen\hpix\newdimen\hpx\newdimen\hpxi\newdimen\hpxii\newdimen\hptmp%
-%
-\def\hpstrt#1#2{\getcurpos\advance\y@v#2\qn@width\advance\y@v\txt@ff%
-\global\csname hp\romannumeral#1\endcsname=\y@v}%
-%
-\def\hpendall#1#2#3#4{\getcurpos%
-\advance\y@v-\csname hp\romannumeral#1\endcsname%
-\zcharnote{#2}{\kernm\y@v\advance\y@v\txt@ff\advance\y@v#3\qn@width#4{\y@v}}}%
-%
-\def\hpcend#1#2#3{\hpendall{#1}{#2}{#3}\crescendo}%
-\def\hpdend#1#2#3{\hpendall{#1}{#2}{#3}\decrescendo}%
-%
-\def\pmxdyn#1#2#3{\ccharnote{#1}{\kern#2\qn@width#3}}
-\def\txtdyn#1#2#3{\zcharnote{#1}{\kern#2\qn@width#3}}
-%
-\def\sfz{{\ppff s\f@kern\f@kern f\f@kern z}}%
-%
-% Dotted breve and rest
-%
-\def\brevep{\def\w@h{\musixchar32\roffset\qu@rt{\C@Point\z@\raise}}%
- \y@v\wn@width \g@w}
-\def\PAusep{\loffset{.5}{\pt5}\PAuse}%
-%
-% Vertical equalization macros
-%
-%\newskip\pssav\pssav\parskip%
-%
-% Remove this from here in 2.352, since it caused some incompatibilities.
-% (Let PMX write it into *.tex when needed).
-%
-%\parskip 0pt plus 12\Interligne minus 99\Interligne%
-\def\upamt{27}\def\dnamt{-20}%
-%\def\upstrut{\znotes\nextinstrument\nextinstrument\zcharnote{\upamt}{X}\en}%
-%
-% Let PMX write the def'n of \upstrut since I couldn't get the loop to work
-%
-\def\dnstrut{\znotes\zcharnote{\dnamt}{~}\en}%
-%
-% Call the following inline type1 anywhere in first line of equalization.
-%
-\def\starteq{\gdef\everystaff{\upstrut\dnstrut}\dnstrut}%
-%
-% And put this as type 1 in the next-to-last line of equalization!
-%
-%\def\endeq{\gdef\everystaff{\upstrut\global\parskip\pssav%
-\def\endeq{\gdef\everystaff{\upstrut%
-\gdef\everystaff{\empty}}}%
-%
-\gdef\spread#1{\global\let\cont\contpiece%
-\gdef\contpiece{\vskip#1\internote\cont\global\let\contpiece\cont}}%
-%
-% The following avoid zapping \writezbarno in several special situations
-%
-\def\PMXbarnotrue{\let\z@sw\empty}%
-\def\PMXbarnofalse{\let\z@sw\@ne}%
-%
-% Centered rests
-%
-\def\pausc{\lrlap{\pause\off{\qn@width}}}%
-\def\PAusc{\lrlap{\PAuse\off{\txt@ff}}}%
-%\def\liftpausc#1{\raise#1\Interligne\pausc}%
-\def\liftpausc#1{\raise#1\Interligne\lrlap{\
-\raise6\internote\hbox{\musixchar11}\off{1.2\qn@width}}}%
-\def\liftPAusc#1{\raise#1\Interligne\PAusc}%
-%
-% CenterBar and mbrest modified 2/01 to account for simick mods in
-% musixtex 1.01
-%
-\def\CenterBar#1#2#3{%
-\y@ii\lin@pos\advance\y@ii-\lastbarpos%
-\ifx\volta@startcor\undefined \else\advance\y@ii\cut@v\fi%
-\advance\y@ii-#2pt\advance\y@ii-#3pt\kern-#3pt%
-\kern-\h@lf\y@ii\lrlap{#1}\kern\h@lf\y@ii\kern#3pt}%
-%
-% mbrest mods 151226. Changed # of args in mbrest from 3 to 1;
-% changed pmx271 accordingly
-% 160103 back to 3 args
-%
-\def\mbgap{\qsk\hqsk}%
-\def\mbrhgt{9}%
-\def\mbrest#1#2#3{%
-%\CenterBar{\ccn{9}{\meterfont#1}}{#2}{#3}%
-\CenterBar{\ccn{\mbrhgt}{\meterfont#1}}{#2}{#3}%
-\CenterBar{%
-\ifcase #1%
-\relax%
-\or\cpause% 1
-\or\cPAuse% 2
-\or\cPAuse\mbgap\cpause% 3
-\or\cPAUSe% 4
-\or\cPAUSe\mbgap\cpause% 5
-\or\cPAUSe\mbgap\cPAuse% 6
-\or\cPAUSe\mbgap\cPAuse\mbgap\cpause% 7
-\or\cPAUSe\mbgap\cPAUSe% 8
-\or\cPAUSe\mbgap\cPAUSe\mbgap\cpause% 9
-\else
-\def\vertpart{\hbox{\vrule width.6pt height1.5\internote depth1.5\internote}}%
-\raise4\internote\hbox{\vertpart%
-\vrule width0.7\y@ii height.5\internote depth.5\internote%
-\vertpart}%
-\fi}{#2}{#3}}%
-%
-% 151226 Redefine \xchangecontext to add in \afterruleskip
-%
-\def\xchangecontext{\n@wbar\writ@newclefs
- \wbarno@x\Writ@newsigns\Writ@meters\lastbarpos\lin@pos\addspace\afterruleskip}%
-%
-% 151227 Define \ccoda so it positions like any other ornament
-%
-\def\ccoda{\n@iv85\@Char}%
-\def\pcaesura#1#2{\raise#1\internote\hbox{%
-\rlap{\kern.5\noteskip\kern#2\qn@width\musixchar79}}}%
-\def\pbreath#1#2{\zcharnote6{\raise#1\internote\hbox{%
-\rlap{\kern.5\noteskip\kern#2\qn@width\BIGfont'}}}}%
-%
-% Macro to set up for blank bar line
-%
-%\def\setzalaligne{\let\alat\alaligne%
-% \def\alaligne{\zalaligne\let\alaligne\alat}}%
-\def\setzalaligne{\let\zalat\stoppiece%
- \def\stoppiece{\zstoppiece\let\stoppiece\zalat}}%
-%
-% Slanted line arpeggio or coule ornament
-%
-\def\arpg#1#2{%
-\roffset{#2}{\zcharnote0{\raise#1\internote\hbox{\varline0{6pt}{20}}}}}%
-\def\arpgu#1{\arpg{#1}{.8}}%
-%
-% \pmxlyr command, see Usage afer \endinput. Dirk Laurie 2016-01-24
-% The unrolled loops are necessary because \assignlyricshere must have
-% a raw string literal as argument.
-\def\pmxlyr#1{%
-\ifnum\noinstrum@nt=1%
- \ifnum\noport@@=1%
- \if@pmx@nextvoice\setlyrics{I1P1V2}{#1}\assignlyricshere{I1P1V2}%
- \else\setlyrics{I1P1V1}{#1}\assignlyricshere{I1P1V1}\fi\fi%
- \ifnum\noport@@=2%
- \if@pmx@nextvoice\setlyrics{I1P2V2}{#1}\assignlyricshere{I1P2V2}%
- \else\setlyrics{I1P2V1}{#1}\assignlyricshere{I1P2V1}\fi\fi\fi%
-\ifnum\noinstrum@nt=2%
- \ifnum\noport@@=1%
- \if@pmx@nextvoice\setlyrics{I2P1V2}{#1}\assignlyricshere{I2P1V2}%
- \else\setlyrics{I2P1V1}{#1}\assignlyricshere{I2P1V1}\fi\fi%
- \ifnum\noport@@=2%
- \if@pmx@nextvoice\setlyrics{I2P2V2}{#1}\assignlyricshere{I2P2V2}%
- \else\setlyrics{I2P2V1}{#1}\assignlyricshere{I2P2V1}\fi\fi\fi%
-\ifnum\noinstrum@nt=3%
- \ifnum\noport@@=1%
- \if@pmx@nextvoice\setlyrics{I3P1V2}{#1}\assignlyricshere{I3P1V2}%
- \else\setlyrics{I3P1V1}{#1}\assignlyricshere{I3P1V1}\fi\fi%
- \ifnum\noport@@=2%
- \if@pmx@nextvoice\setlyrics{I3P2V2}{#1}\assignlyricshere{I3P2V2}%
- \else\setlyrics{I3P2V1}{#1}\assignlyricshere{I3P2V1}\fi\fi\fi%
-\ifnum\noinstrum@nt=4%
- \ifnum\noport@@=1%
- \if@pmx@nextvoice\setlyrics{I4P1V2}{#1}\assignlyricshere{I4P1V2}%
- \else\setlyrics{I4P1V1}{#1}\assignlyricshere{I4P1V1}\fi\fi%
- \ifnum\noport@@=2%
- \if@pmx@nextvoice\setlyrics{I4P2V2}{#1}\assignlyricshere{I4P2V2}%
- \else\setlyrics{I4P2V1}{#1}\assignlyricshere{I4P2V1}\fi\fi\fi%
-}%
-%
-% Definition for \lyrlink&\at, used with pmxlyr strings with '~'and '@'
-%
-\def\lk{\lyrlink}%
-\def\at#1{\lyrraisehere{#1\internote}}%
-%
-% 190526 Items for short line enhancements
-%
-\let\wbnt\writebarno
-\def\nobarno{\gdef\writebarno{\global\let\writebarno\wbnt}}
-%
-% 200123 Open headed dotted chord notes
-%
-\def\hbp{\h@symbol\@qbp}%
-\def\hbpp{\h@symbol\@qbpp}%
-%
-\catcode`\@=\catcodeat
-\endinput
-
-Usage:
- \pmxlyr{TEXT} (assigns TEXT as lyrics in the current context)
-
-In PMX, enter the command with a trailing backslash. Starting at PMX 2.73,
-"TEXT" on a music line is equivalent to \pmxlyr{TEXT}.
-
-Spaces and hyphens separate TEXT into syllables. An underscore between
-words combines syllables from different words into a single syllable.
-
-TEXT may contain any TeX macro, in particular:
- \space Space character that does not separate syllables
- \lyrhyphenchar Hyphen that does not separate syllables
- {\empty} Invisible syllable (for notes that get no lyrics)
-
-\pmxlyr uses the unexpanded contents of TEXT when looking for the
-syllable splitters, e.g. \def\mylyrics{many words of poetry} followed
-by \pmxlyr{\mylyrics} will put all those words on one note.
-
-For more information on what is acceptable in TEXT, consult mxlyrdoc.pdf.
-
-Limits: Lyrics are recognized only on the first two staves of instruments
-1 to 4. Elsewhere they are ignored.
-
diff --git a/Build/source/utils/pmx/pmx-src/pmx294.for b/Build/source/utils/pmx/pmx-src/pmx294.for
deleted file mode 100644
index 73537dcc8a9..00000000000
--- a/Build/source/utils/pmx/pmx-src/pmx294.for
+++ /dev/null
@@ -1,26085 +0,0 @@
- program pmxab
-c
-c This program, PMX, developed by Don Simons
-c (dsimons@roadrunner.com), is a preprocessor for MusiXTeX. In concert with
-c MusiXTeX and TeX, its purpose is to allow the user to create high-quality
-c typeset musical scores by including a sequence of PMX commands in an ASCII
-c input file.
-c
-c This program is free software: you can redistribute it and/or modify
-c it under the terms of the GNU General Public License as published by
-c the Free Software Foundation, either version 3 of the License, or
-c (at your option) any later version.
-c
-c This program is distributed in the hope that it will be useful,
-c but WITHOUT ANY WARRANTY; without even the implied warranty of
-c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-c GNU General Public License for more details.
-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
- character*9 date
- character*5 version,versionc
- common /comver/ versionc
-c
-c To compile with gfortran:
-c 1. Merge all files using copy *.for epmx[nnnn].for
-c 2. Search and replace all character*65536 with character*131072
-c 3. Comment/uncomment getarg lines
-c 4. gfortran -O pmx[nnnn].for -o pmxab.exe
-c
-c To do
-c Correct Rainer's email address in manual
-c Linesplit (\\) in h
-c Tt at start of a movement.
-c Toggle midi on or off; allow midi only.
-c Page number printed on 1st page even if 1 system.
-c Still need inserted space for chordal accidentals
-c Voicewise transposition.
-c better segno
-c coda
-c duevolte
-c Fix xtup bracket direction in 2-line staves?? (maybe leave as is)
-c Sticky ornaments with shifts.
-c Deal with Werner's vertical spacing thing associated with title.
-c Multiple ties in midi
-c Werner's missing c in MIDI due to start/stop ties on same note.
-c Beams with single 64ths
-c 128ths and/or dotted 64ths
-c Close out MIDI with integral # of beats?
-c Increase ast dimensions or redo logic.
-c Does slur direction get set for user-defined single-note stem dir'ns?
-c Transpose by sections.
-c Optimization loop over sections only
-c Command-line option to read nbarss in. Write out nbarss when optimizing.
-c (or just read from .plg?)
-c Beams over bar lines.
-c 2-digit figures
-c A real coule (slanted line between notes in a chord)
-c Dotted slurs for grace notes.
-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.94
-c Allow moving dots on main and chord note in 2-note termolos
-c Add definitions of \hbp and \hbpp to pmx.tex
-c 2.91
-c Tweak: insert \stdstemfalse before every user-shortened or lengthened stem.
-c This cancels defaul extensions to middle line and also (with 'L') allows
-c stems that are longer than 4.66 but still don't reach middle line.
-c Allow alteration of number height in multibar rest, option n.
-c Fix bug introduced in 2.89 so that the "o" in "mo800" is now OK.
-c 2.90
-c Many tweaks to allow gaps at end or middle of a system using
-c L[n]S[x] and LC[y]. New pmx.tex.
-c 2.88
-c Comment out print*,"Changed pathname to..." since it was going
-c iteration when optimizing linebreaks with the undocumented option Ao.
-c Add nv back in as argument for getmidi, so loop transferring data
-c from midivel to midvelc can be executed. This corrects bug and
-c allows per-instrument change in midi velocities at the start
-c of any block
-c Add subroutine inst2chan to transfer midi data as noted above. Works with
-c Iv but buggy when used with IT and Ib
-c 2.87
-c Allow changes to and from octave treble clef. Instrument with it
-c must only have one staff.
-c Some fixes for beam multiplicity changes at staff jumps. Must still
-c use inline for mult. increase at downward staff jump. See sjb.pmx.
-c 2.84
-c Bug fix: dots in chordal seconds
-c Bug fix: Initialize ihornb for non-beamed, down xtup
-c Bug fix: When using "AT" with 2-note x3c rD.
-c 2.83
-c Fix problems when changing to or from octave treble clef.
-c Fix beaming (or not) and number location for xtups with
-c multiple rests. Still some problems with number height but
-c can be band-aided with number height tweak option.
-c Tweak error messages for options on "R" command.
-c Allow forced beam height and slope tweaks with 2-note tremolos
-c Allow chordal note with 2-note tremolos, adding dots as needed.
-c Fix call to ncmid in beamstrt when setting start height for beam of
-c 2-note trem, by changing arg from ivx to iv
-c 2.82
-c bugfix: beams with rests, not confused with xtups.
-c x option after slur index to allow slurs to go from one voice to another.
-c x option also for ties
-c 2.81
-c Allow string of rests to end xtup
-c in chordal half-note 2-note tremolo, make chord notes open.
-c 2.80
-c Add 2-note tremolos
-c 2.78
-c Expand bufq to 131072 bytes
-c Expand maxblks tp 9600
-c Allow up to 75 pages
-c Index postscript hairpins from 1 up instead of by voice #.
-c Add option 'o' to forced beam for open notehead (\hb); set ipl(3)
-c Add option T[n], n=1,2,3 for single stem tremolo
-c 2.77
-c Enable AV+/-x+/-y to add vskip bigh before or after \eject
-c 2.76
-c 2.75
-c Bugfix: unbeamed xtups with dots: in beamn1 and beamid allow dotted 16th, and
-c 2 or 3 flags on shortened note.
-c 2.74
-c Bugfix: allow "0" as argument of @ command on lyrics string.
-c Check for and allow "\ in centered page headings with P command.
-c Check for and allow "\ in text dynamics with D command.
-c For lyrics string starting in xtuplet, insert check for inputting musixlyr.
-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 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
-c Fix bug in wsclef when >1 staff per instrument, since \setclef
-c needs to know instrument and specify clefs on all staves for that
-c instrument. Ones that were not changed by user will not be printed,
-c and will be kept the same as before.
-c Fix bug with arpegii from one voice to another in same staff.
-c 2.71 (151226)
-c Finalize mbrest mods
-c 2.705
-c Fix error message
-c 2.704 (140614)
-c Octave treble clef
-c Make horizontal ornament shift (ornhshft) floating
-c 2.703 (140323)
-c Option v[-]n at end of any figure will alter figdrop for rest of system
-c 2.702
-c Stem slurs. Only for ps, assume no other pos'n adjustments. Option "v"
-c 2.701
-c oC = coda (\code{10})
-c Move iornq(29) (blank barline) to ipl(0) (changes in pmxb, getnote)
-c oG = new seqno
-c To do: fix grace note spacing problem (partially done)
-c 2.622
-c Redefine midtc(..) and miditran(..); clean up all transpositions/key changes
-c Kn[+/-...] \ignorenats at signature changes
-c Fix tie checks in doslur() and dopsslur() to subtract iTransAmt from nolevs
-c before checking and setting pitch levels levson() and levsoff()
-c Define midisig separately from isig. Put in common commidisig.
-c Use for explicit midi signature and for accid corrections to midi piches
-c in addmidi.
-c 2.621
-c Make keyboard rest option work in xtuplets. Created subroutine
-c chkkbdrests, modified make2bar to include calls to chkkbdrests as rqd.
-c 2.620
-c Allow user-defined rest height tweaks at start of beam.
-c 2.619
-c At movement break, change \nbinstruments in \newmovement macro; add
-c 3rd arg to \newmovement in pmx.tex; modify pmxb.for and getnote.for
-c to remove call to newnoi and change call to \newmovement
-c 2.618
-c Add option Ac[l,4] to set vert and horiz size and offsets to properly
-c center page for letter or a4 paper.
-c 2.617
-c In g1etnote, change if-check for note to use index(...) instead
-c of ichar(charq) since it was messing up gfortran optimizer
-c After pmxa, search for and remove penultimate line <blank><blank>/
-c because it was screwing up linux-compiled versions
-c Bugfix: Increase dimension of kicrd from 7 to 10 in crdaccs(...)
-c 2.616 (111110)
-c Allow hairpins to span multiple notes groups (gulps).
-c 2.615+ (110810)
-c Fix midi when some instruments are transposed, by subtracting
-c iTransAmt(instno(iv)) from pitch values sent to via addmidi in
-c make2bar.for (for main notes) and docrd (for chord notes)
-c 2.615 (110725)
-c Fig bug with size-setting (in topfile) when instrument has >1 staves
-c 2.615 (110724)
-c Make AS[0|-|s|t]... really set sizes
-c 2.614
-c Mod notex.for to fix Terry's bug with raised dotted rests (caused
-c by double-hboxing).
-c 2.613
-c Bugfix: In pmxa, change "do while" limit to keep from overwriting instno.
-c 2.612
-c Enhance AS to allow s or t for smallsize or tinysize
-c 2.611
-c Error trap for "D" before any notes in a block.
-c 2.610
-c Instrument-wise key changes and transposition (incomplete)
-c 2.603
-c 101211 In getpmxmod.for, decreased nline by 2 to fix locating errors
-c following reading in an include file.
-c 101121 Added some error messages in g1etset.for setup data
-c 2.602
-c Correct slur indexing in linebreakslurs.
-c Account for comment lines in line count for error messages
-c 2.601
-c Bug fix: allow 24 slurs with graces
-c 2.60 Changes made make it really big
-c increase mv (size of midi) ? Note: MIDI can't have >16 voices w/o
-c major reprogramming, and 16 may also be a problem (icmm)
-c nm=24 (voices) done
-c 24 slurs done
-c 24 simultaneous beams (Replace index 24 by 0, so get 0-23)
-c bufq*131072 (gfortran only)
-c getarg syntax (gfortran only)
-c 2.523+
-c Fix voice numbering for normal dynamics and text dynamics
-c 2.523
-c Version of bigpmx first posted to Hiroaki's web site.
-c 2.522
-c 5/26/10 Replace ipl bits 0-7 with ipl2, add new common for it.
-c With 2.521+ as starting version, incorporate bigpmx mods to allow 24 voices.
-c 5/13/10 Fix log2 function
-c 5/15/10 Fix bitwise storage for dynamics, fix segnoo string length.
-c 2.521+
-c 091025 Enable dotting 2nd part of linebreak slur or tie.
-c To adjust barno height due to linebreak slur, use \bnrs instead of
-c explicitly redefining \raisebarno (pmxb)
-c 2.521
-c Bugfix
-c 2.520
-c 090519 Enable ligfonts (special figured bass characters)
-c 2.519
-c Fix another bug which kept \sk from being output so misaligned some notes.
-c 2.518
-c Fix bugs: referencing fig data, char declaration for member of
-c common/comfig/
-c 2.517
-c Allow figures in voice 1 + any one other.
-c 2.516
-c Allow figures in voice #2
-c 2.515+ to do: Change manual and activate rule against clef change in voice #2.
-c 2.515
-c 071222 Changes in getnote to allow auto forced beams to start anywhere.
-c 071206 In make2bar, shift fermataup7 to left over centered pause.
-c 070901 In doslur, check for nolev <=2 in case slur ends on rest in 2-line
-c staff (it was screwing up vertical justification).
-c n34 for tweaks to midi durations of quarter note septuplets.
-c To do: In ref250.tex, the tables where 's,t,)' is explained, the line
-c [+,- i] ... Vertical adjustment of the start of second segment
-c should it be replaced by
-c [s +,- i] ... Vertical adjustment of the start of second segment
-c 2.514
-c Changes in make2bar to get horizontal spacing right when normal grace
-c follows after grace
-c Changes in dograce to get octaves right for any material entered inside
-c \gaft, which shields transpose register changes from the outside world.
-c 2.513
-c In make1bar, near end, for forced beams starting with a rest, copy hgt and
-c slope tweaks to ALL notes after first, not just the second one, so if
-c there's more than one rest at start the tweaks are still observed.
-c In beamid and beamend, add stand-alone triply-flagged notes for xtups.
-c 2.512
-c Near end of pmxb, fix error trap to allow redundant 'RD'
-c Enable multiplicity down-up '][' within xtup.
-c 2.511
-c Introduce eskz2 for xtup #'s and bracket lengths, to remove bug caused by
-c adjusteskz as in bar 7 of barsant.
-c 2.510a
-c Test: remove restriction on tempo changes in MIDI macros
-c Send to CM for beta testing.
-c 2.509+
-c To do: Correct manual on AS. "-" is for smaller staves.
-c 2.510
-c Forgot to declare litq, voltxtq as character in subroutine getgrace
-c 2.509
-c Corrected small bug in arpeggio shifting (ivx <= iv in call putarp)
-c 2.508
-c Allow graces in xtups. New subroutine getgrace.
-c 2.507
-c To do: Raise/lower figures.
-c To do: Add 24, 29 to list of musicsizes in manual
-c New sub adjusteskz to account for ask's when computing lengths of
-c brackets for unbeamed xtups, slopes and horizontal posn's of number
-c Bug fix: in beamn1, beamid, and beamend, allow unbeamed xtups w/ 2 flags
-c Add look-left option for keyboard rests, "L" in rest command, set iornq(30)
-c 2.506
-c Fix bug with AK, when simultaneous rests have same duration, use defaults.
-c 2.505
-c Keyboard rests AK
-c 2.504
-c Space after normal grace: option X[n]
-c Fixed og when nv .ne. noinst, by using sepsymq instead of '&'
-c (To do) length of xtup bracket when there is added non-collision space.
-c Trap musicsize if .ne. 16,20,24,29.
-c 2.503
-c Enable arpeggio left shift with ?-x
-c To do: In manual, arpeggio over 2 staves.
-c Allow musicsize of 24 and 29. Had to define meter font size explicitly,
-c also change font size for text dynamics, but not much else so far.
-c Bugfix in beamstrt, introduced in 2415, ip was changed before putxtn
-c was called, causing error in printing replacement number.
-c 2.502
-c Incorporate Dirk Laurie's patch to use { , } , for ties.
-c Figure height adjustment: append +[n]
-c Change ec font stuff in pmx.tex per Olivier Vogel's comment (CM email?)
-c 2.501
-c Readjust horizontal offset back to .8 in LineBreakTies
-c Fix zero-subscript (iudorn) in putorn
-c 2.50
-c Increase number of text-dynamics (dimension of txtdynq) per block
-c from 12 to 41.
-c Slur option n to override altered default curvature.
-c Allow default ps slur curvature tweaks with Ap+/-c
-c 2.416
-c Increase length of textdynq from 24 to 128
-c (Todo) Add comment in manual about blank lines at end.
-c Configuration file: Define subroutine getpmxmod, check path in environment
-c variable pmxmoddir, check existence, read lines into bufq after setup.
-c Increase dimension on idynn in dodyn from 4 to 10 for max number
-c of marks in a bar
-c Increase allowable # of lines from 2000 to 4000.
-c (To do) Replace definition of \liftpausc per Olivier.
-c (To do) Fix extraneous error message if RD is placed at very end.
-c 2.415
-c Fix "AT" option: replace putxtn,topfile,beamstrt,beamid to use \xnumt
-c instead of redefining \xnum. Change font used to \smallfont (as for
-c normal xtups,
-c Allow slur to start on rest.
-c 2.414
-c Correct bug in crdacc when adding accidental to boundary causes number of
-c segments to decrease
-c Special rule for 3-accidental chords: If no 2nds, place them in order
-c top, bottom, middle.
-c 2.413
-c Correct bugs in chordal accidentals, related to left-shifted noteheads
-c (a) Special problems with downstem when main note needs shifting
-c (b) Assign 0 rank to boundary segs due to left-shifted noteheads
-c 2.412
-c Change default horiz shift of start of seg 2 of linebreak slurs:
-c -.7 for slurs, -1.2 for ties,
-c Use height of start of seg 1 slur itself for end of 1 and start of 2.
-c 2.411
-c "Apl" activates special treatment of linebreak slur/tie's; breaks all in 2.
-c "s" option in start of slur/tie as precursor to vert/horiz tweaks for end
-c of seg 1. of linebreak slur/tie, 2nd "s" for start of seg2.
-c With "Apl", curvature adjustments on starting slur command apply to seg 1,
-c those on ending command to seg 2.
-c 2.410
-c "AT" to allow Col. S.'s tuplet option. Simply input tuplet.tex and redefine
-c \xnum, \unbkt, \ovbkt.
-c "s" option in main xtup input after "x": slope tweak for bracket. mult(4) is
-c flag, mult(5-9) is tweak value+16
-c 2.409
-c Bugfix in docrd for MIDI: Use original pitch in case main/chord were
-c switched due to 2nds.
-c Remove "o" from error message for "A" command.
-c New syntax: optional instrument number separator ":" in movement
-c break command to precede a 2-digit instrument.
-c Conditional output formats for \setname at movement break to allow
-c instrument numbers >9.
-c Bugfix in coding to raise barno due to slur over line break (pmxb)
-c Move date/version data statement in pmxab to a better place.
-c 2.408
-c Allow pnotes{x} when x>9.995 (mod is only to format stmt in make2bar).
-c Bug fix in \liftPAusep in notex.for and in pmx.tex
-c Character variables for version and date
-c For up-stem single graces slurred to down-stem, shift slur start left by
-c 0.8 so slur doesn't get too short.
-c Initialize and slide mult, same as other full-program variables in /all/.
-c 2.407
-c Allow AN[n]"[partname]" to be parsed by scor2prt as filename for part n,
-c 2.406
-c Alter PMX: put \dnstrut into \znotes in \starteq (for system spacing
-c equalization).
-c Put dimensions of double sharps and flats in crdacc (for chords).
-c Bugfix: Use sepsymq in LineBreakTies(..) instead of '&'
-c Use only first 4 bits of mult for multiplicity+8, so rest can be used
-c for other stuff.
-c Move stemlength stuff in nacc(27-30) to mult(27-30) to remove conflict.
-c 2.405: Not published but saved for safety.
-c Option Aph to write \special{header=psslurs.pro} top of each page, so
-c dviselec will work OK.
-c 2.404
-c Allow slur to end on rest, but not start on a rest. Efaults height
-c of ending is default height of start (before any automatic or user-
-c defined djustments). User may adjust height as normal from default.
-c 2.403
-c Bugfix: turn off repeated beaming patterns.at end of non-last voice.
-c 2.402
-c Automatic repeated forced beams. Start with "[:" End with next explicit
-c forced beam or end of input block.
-c Increase # of forced beams per line of music per input block from 20 to 40
-c 2.401
-c Optional K-Postscript Linebreak Ties, Apl. New subroutine LineBreakTies.
-c Makes 1st part normal shape, and starts 2nd part a little further left.
-c Enable arpeggios in xtuplets. Had to make time itar(narp) a real.
-c 2.40
-c Set up WrotePsslurDefaults (logical) so only write defaults on 1st Ap.
-c Fix non-ps-slur input to \midslur (third signed integer). Do not reverse
-c sign for down-slurs.
-c 2.359
-c Add error exit subroutine stop1 to make exit status g77-compatible..
-c Absolute octave on xtup chord note was 2 octave too high, fixed in getnote
-c Fermata on vertically shifted rest: special trap in putorn() to set height.
-c Correct multiple grace note spacing for small staves (in dograce,
-c define wheadpt1 depending on staff size)
-c 2.358
-c Allow curvature corrections at start of postscript slur, in dopsslur()
-c Local slur options p[+|-][s|t] for [nos|s]luradjust,[not|t]ieadjust
-c Options for [Nos|S]luradjust,[Not|T]ieadjust,[noh|h]alfties: Ap[+|-][s|t|h]
-c Make t[ID] act like s[ID]t, most mods in spsslur().
-c Add spsslur() to read in data for ps slurs, call from getnote.
-c In beamstrt, save args for SetupB in common comipb to save them for
-c 2nd call when xtup starts with rest
-c Add spacing for ornament ")" as if it were accidental, in make2bar().
-c Horiz shift start and end of ps ties, dep. on stem dir'n, in dopsslur()
-c Horiz. shift start of ps grace slur, 2 places in dograce().
-c Horiz shift end of grace slur in endslur()
-c Make st slurs into postscript ties. Separate subroutine dopsslur(),
-c Non-beamed xtup: "a" in 1st note or rest, before "x" (sets drawbm=.false.)
-c Allow two D"x" on same note. Introduced jtxtdyn1 in dodyn.
-c 2.357a
-c Fix missing "end" in backfill.com, too-long lines in g1etnote, getnote
-c 2.357
-c Increase dimension for # of lit TeX strings from 52 to 83.
-c Allow blank rest in middle of xtuplet. Only mods in g*etnote().
-c 2.356
-c Increased some dimensions from 30 to 40 to allow up to 40 pages.
-c In unbeamed xtups, "n" did not suppress bracket. Fixed in beamstrt().
-c Fix parsing of "f,h,H,HH" in sslur.
-c Fix bug with cdot, note-level for slur termination (in getnote)
-c 2.355
-c Midi transposition: IT[+|-][n1][+|-][n2]...[+|-][n(noinst)],
-c n=# of half-steps. Restrict to mult. of 12 now, to avoid key-sig issues
-c Make midi recognize ps ties in doslur.
-c Correct ttieforsl so that it eats 2nd argument properly, using \zcharnote
-c to get octave right.
-c 2.354
-c With postscript slurs, make t-slurs real ties by inserting replacement
-c macros \tieforisu, etc, defined in pmx.tex
-c Check for open cresc or decresc at end of input block, using list[de]cresc
-c Hairpin syntax conditional on postscript slurs. Backup to fill in start
-c level, using new backfill(...). Separate height tweaks for
-c start and finish.
-c 2.353
-c K-0+n to transpose by half step (rather than just change key)
-c Allow "rm[n]" when nv>1. Require it in all parts. Just write a stack of
-c \mbrest's
-c Enable "Rz"; define \setzalaligne in pmx.tex. Special treatment at end
-c of input block before movement break, and at start of block after
-c movement break, using \newmovement rather than \setzalaligne, since
-c former already redefines \stoppiece. In second case, set rptfg2='z'.
-c Make clefq(nm) common between pmxb and getnote; change references in
-c getnote at 'M' to array elements, setting all new clefs as you go.
-c 2.352
-c Remove \parskip redefinition from pmx.tex; write it into TeX file when
-c "Ae" is invoked.
-c Ap to activate postscript slurs. Add macro \psforts to pmx.tex to redefine
-c \tslur in case \midslur was used. Allow slur inputs 'f','h','H','HH',
-c translate them thru mapping to (1,4,5,6) as \midslur params, then let
-c \psforts translate them back to ps slur macors.
-c 2.351
-c Number slurs from 0 up instead of 11 down, anticipating postscript slurs.
-c Write "\eightrm" instead of "\cmr8" for \figfont with small baseline size.
-c Increase length of basenameq to 44 characters everywhere.
-c Increase dimension of mcpitch (midi-chord-pitch) to 20.
-c Set default systems per page to 1 if nv>7
-c In pmxb, move place where isystpg is reset to 0, so that \eject gets
-c written when there is just one system per page.
-c 2.35
-c Cautionary accidentals with 'c' anywhere in note symbol.
-c NEW pmx.tex with \resetsize to set size to normal or small depending on
-c current \internote. Used with new coding in dograce() to get right
-c new size in case user has \setsize'ed some lines to \smallvalue. For
-c \smallvalue-sized staves, redefine \tinynotesize to give 11-pt font.
-c Affects pmx.tex.
-c Continuation figure with fractional length. May now mix with other figures.
-c If another figure follow Cont-fig, separate with colon.
-c 2.342
-c Bugfix in getnote to recognize relative octave shift in grace at start of
-c input block.
-c In make2bar, initialize islhgt=0 earlier than before (possible solution
-c to Suse g77 compile problem that I could not reproduce)..
-c Bugfix in beamstrt & beamn1 for r2x6 c4D d d d
-c 2.341
-c Syntax check: Forced page break page number must be > than previous.
-c Bugfix: Define ivx when "sliding down" breath/caesure data in pmxb.
-c 2.34
-c New pmx.tex with redefined liftpausc
-c Bug fix with dotted, non-beamed xtups.
-c 2.332
-c Fix bugs in horizonal shifts, spacing, for accid's, graces, noteheads.
-c Allow arbitrary pos. input to W in g1etnote and getnote.
-c 2.331
-c Bug-fix in dodyn(..): typo on length of arg of txtdyn
-c 2.33
-c Caesura (oc), breath (ob). Set iornq(28), store rest of data in ibcdata()
-c 2.321
-c Rescale accidental shifts. Still use 7 bits but now map (0,127)
-c onto (-1.,5.35)
-c Fix ihornb bug in dodyn, seen with dynamics on lower-voice non-beamed xtups
-c 2.32 (Noticed after posting)
-c Prohibit "/" as figure.
-c 2.32 (Posted)
-c Tidied up accidentals in chords, do spacing.
-c Still to do:
-c check for "(" on chord notes in spacing algo
-c small accids
-c double accids
-c autoshift slurs
-c 2.310
-c Extra call to precrd ahead of spacing chk, and single-note crd/acc
-c shifts seem OK, but not multiple. crd/acc shifts not recorded 1st time.
-c 2.309
-c Alternate algo for accid shifts in chords.
-c 2.308
-c Auto horiz. notehead shifting added to precrd.
-c 2.307
-c Auto shifting of multiple accidentals in chords.
-c "Ao" in main chord note to keep accidentals in order. Set nacc(28).
-c If there are any manual main or chord note shifts, then
-c If any manual shift is preceded by "A" then
-c 1. Auto-shifting proceeds
-c 2. "A"-shifts add to autoshifts
-c 3. non-"A" shifts are ignored!
-c Else (>0 man shifts, none has "A")
-c No auto-ordering, No autoshifts,
-c End if
-c End if
-c 2.306
-c Initialize legacy note level to middle C in case user forgets to set
-c octave.
-c Shift xtup note?
-c Shift in elemskips rather than noteheads?
-c 2.305
-c Stop pmxb from multiple endvolta's at start of new page.
-c 2.304
-c "Sx" in a note means shorten stemlength by x \internotes. "Sx:" turn on
-c for multiple notes in the voice, "S:" last shortened note.
-c 2.303
-c vshrink stuff all OK? Description is in pmxb.
-c 2.302
-c Toggle vshrink with "Av". vshrink normally kicks in when \interstaff
-c hits 20. This still needs work.
-c Add " /" to last line if last char is not % or /.
-c 2.301
-c Check in beamn1 for single note before multiplicity down-up.
-c allow '.PMX' as well as '.pmx'
-c 2.299
-c Correct typo in pmxb involving PMXbarnotrue.
-c Replacement printed number for xtup: Unsigned integer after 'n' after 'x'
-c Minor upgrade parsing xtuplet options 'x...'
-c Correct dimension of nxtinbm in make2bar.
-c 2.298
-c Account for doubled xtup notes in subroutine getx (user-defined spaces),
-c by adding ndoub as an argument..
-c 2.297
-c Created and solved compiler problem. Put drawbm(NM) in its own common.
-c Add new def'ns [\a|PA]usc, \lift[pa|PA]usc to pmx.tex, use them in make2bar
-c when \centerbar is used.
-c Modify \mbrest & \CenterBar in pmx.tex to use \volta@endcor etc. Have PMX
-c use right 2nd and 3rd args for \mbrest when key, meter, or clef changes.
-c 2.296
-c Correct printed numbers for forced beams with multiple xtups. For each beam
-c make list in setupb by voice of eloff (h-offset) and mtupv (printed #)
-c Increase lengths of jobname and infileq by 20 characters
-c Enable whole notes and breves as 1st or last note of xtup in beamn1 and
-c beamend, and wholes in beamid.
-c 2.295
-c Midi balance Ib[n1]:[n2]:...[nn]
-c Single-slope beam groups [...]-[...]
-c Trap "i" unless after accidental (main notes, xtups, chord notes)
-c 2.294
-c Unequal xtups with "D" to double a note in an xtup.
-c As above, "F" will (a) increase multiplicity by 1 for marked note and next
-c one and (b) add a dot to the first one.
-c Fix bug with e.g. c84 [ .d e.f ] by checking whether forced beam is on
-c when "." is encountered, then correcting beam start time.(end of getnote)
-c MIDI velocity (volume) set: Iv[n1]:[n2]:[n3]...
-c 2.293
-c Check for single notes spanning bar lines.
-c Correct various bugs with staff-jumping beams. (1) for 2nd segment, vxtup
-c must be set in make2bar since beamstrt is not called, fixing problem with
-c dot at end. (2) add ivjb2 to flag which voice has 2nd segment and fix
-c problem when >2 staves.
-c Add nodur to args of dodyn, so can check if stemless and avoid height tweak
-c Correct bug in getdyn setting flag in idynda2(0) for manual horiz. tweak
-c 2.292a
-c Undo syntax check for Type 2 or 3 TeX string starting in column 1.
-c Meanwhile, Werner's problem with a mid-line Type 3 string has gone away?!
-c 2.292
-c Allow comments in xtuplets
-c Enable multiple octave jumps in grace notes.
-c Allow dynamics in xtuplets.
-c Fix bug in getdyn searching for end of text string (correct length of lineq
-c to 128)
-c Fix bug in dodyn, must ignore horiz. interaction tweak for
-c user-text (idno = 0)
-c Syntax check for Type 2 or 3 TeX string starting in column 1
-c (NOTE: later undone!)
-c Syntax check for page number > npages at forced line break.
-c 2.291
-c Fix error in AS command (accid spacing for small systems), making only
-c one spec per staff, nv total.
-c Stop using MIDI channel 10
-c 2.29
-c Fix error in console output format for # of bytes used in MIDI file.
-c Fix bug in dograce so no space is added between grace and main note when
-c there is a MIDI-only accidental.
-c Fix bug so oes?+4 works. It was too ugly to explain.
-c ...Different ways of storing accidental specs on input and output.
-c No longer zap \writezbarno in special situations.
-c Fix bug in dyntxt level on rest
-c Line spacing equalization. Add macros \starteq, \endeq, \spread, etc.
-c Activate with Ae. (Maybe later could input alternate values for
-c \upamt, \dnamt, \parskip). Put \starteq on 1st note in voice 1
-c in the page, and \endeq on 1st note of next-to-last line in page.
-c 2.28
-c Flip direction of forced beam "[f..."
-c Fix beam numbering for staff jumping beams. Uses irest(23,24,29,30)
-c Fix bug in sliding ip's for txtdyn's
-c In dyn's allow vert. offsets +/-64, horiz +/-25.6 (store in idnyda2(1-99)
-c 2.27
-c Comment out lines in dodyn checking number of dynamic marks found. Voice
-c order may not be monotonic if two lines on a staff.
-c Literal dynamic: D"[text]"
-c 2.26
-c Allow hairpin start-stop on same note by disabling auto-tweaks in dodyn,
-c increasing dimension of idynn to 4 to allow 4 symbols on same note.
-c Increase voltxtq length from 10 to 20.
-c AS[-/0][-/0]... to inform PMX that "-" voices are small, and rough
-c accounting for ast's is done by defining effective headwidth
-c whead1 in makebar2 to be 0.8*whead.
-c 2.25
-c Fix logic bug with sepsym's when # of instruments changes.
-c Slight increases in default offsets for hairpin starts after "p"
-c 2.24
-c Hairpins D< or D> as toggle.
-c Many automatic position tweaks for letter-group dynamics and hairpins.
-c 2.23
-c Continued rhythmic shortcuts: space followed by "." or ","
-c 2.22
-c In call to doslur, change tno(...) to tnote(...). This was only
-c used when checking to slurs per stem directions, and should have been
-c the note duration all along.
-c MIDI-only accidental, bit 17 in nacc, or 27 in icrdat.
-c Use "i" anywhere in note symbol.
-c 2.21
-c Increase from 20 to 30 dimensions for movement breaks and midi sections.
-c Fix out-of-order declarations per mutex comments
-c Add "Bad error" and "Kluging" messages to log file.
-c 2.197
-c add /comips/ to save tie-check midi variables
-c For spacing of clef changes at start of input block, changed integer time
-c lastnodur to prevtn, so it works with xtups. Possible incompatibility!
-c 2.196
-c Fix Ickbug with time check in ncmid()
-c Interchange \fermataup7 and \pausec to get proper alignment
-c Enable French violin clef "f", number 7 in PMX, but 9 in MusiXTeX.
-c Add defn's of \hsp, \hspp to pmx.tex
-c Fix pre-slurs on xtup chord notes.
-c Fixed raised PAuse, define \liftPAuse
-c Replace \zbreve\sk with \breve.
-c Made "1" work as mtrdenl by doubling it and mtrnuml. BUT WAIT...what
-c about "o" and 1 as shorthand for 16???? Search for "Kluge"
-c Added "vo" (voice) as MIDI instrument 55
-c Allow 3-digit page numbers (search for "toppageno")
-c Fix bug caused by prior fix (cancelling accid after bar line was ignored).
-c Fix double accids in chords
-c 2.194
-c Fix bug with accid/tie/barline/chord in addmidi by restructuring accid if
-c block.
-c Add meter to MIDI file with every pause
-c Purify FORTRAN?
-c 2.193
-c Increased # of in-line TeX strings from 36 to 52.
-c Fix entry of # of bytes in header of tempo/meter/key track to allow >255.
-c 2.191
-c Event track: Tempos, meters, keys all together. Data in comevent
-c 2.15
-c Pretty good midi capability. Still no attention to slurs on chord notes.
-c 2.11
-c 11 Dec 99 c rm1
-c 11 Dec 99 "oes?", "oe?"
-c 11 Dec 99 Cancel slur horizontal tweaks with non-stemmed notes
-c 11 Dec 99 Error message for shifted, repeated ornaments.
-c 2.10 (Version 2.1)
-c Fix bug with lowdot and xtuplets
-c 2.09
-c Fix bug with multiple ornament heights over beams, when one is . or _
-c Error message from pmxa if rest on last note of xtup.
-c Enable 12 slurs.
-c Reinstate multiple rests at start of xtup.
-c 2.07
-c Combine consecutive type-1 TeX strings.
-c \midslur and \curve as 3rd signed digit in slur termination, + 2 opt.int's.
-c Fixed breve chord notes in docrd
-c Check irest(28) as well as vxtup when setting nodur for chord notes, since
-c vxtup isn't set until 1st *main* note in xtup
-c Vectorize nolev1, slope, ixrest. Klug fix for xtups with variable spacing.
-c 2.06+
-c Make deterministic the beam slope calculation when there are an even # of
-c slopes in list and middle two are equal magnitude but opposite sign.
-c pmxa Trap for "o:" before 1st note in block
-c Partial bug fix for 64th notes in xtuplets.
-c Make ixrest a vector, since with new time scheme may not finish xtup in
-c same notes block.
-c Increase max # of pages from 20 to 30 (dimensions of nsystp,..., in pmxb)
-c 2.06
-c Account for changes in nv when computing \interstaff. Add a counter
-c nistaff(iflb) = # of interstaff spaces per system = nv-1. Set whenever
-c setting isysflb(iflb). Note nv can only change at a forced line break.
-c Note also, iflb starts at 0!
-c 2.05
-c Automatic start of new notes group with part 2 of staff-jump beam
-c In make1bar, set irest bit 29 of lowest-voice note at same time,
-c use as flag when making notes groups.
-c For now, remove dummy blank line at end...it zaps terminal repeats.
-c 2.02
-c Fixed slur-counting bug for multiple, slurred, aftergraces.
-c 2.01
-c Increase to ask(1400)
-c Increase max forced page breaks to 18
-c Define pausc for centered pause
-c 2.0a
-c Insert dummy blank line at very end to handle input files w/o terminal CR-LF
-c pmx03r
-c Option m[n] in S symbol to change musicsize (for parts)
-c Double dotted rests now work.
-c Write file name to log file
-c Check existence of input file
-c Allow 24-char jobname, may end with ".pmx"
-c Comment out time stuff
-c Replace 3-argument getarg with 2-argument + iargc
-c Fix bug with negative noinst due to nint<=int replacement
-c move lovation of iv in isdat1 to allow iv>7.
-c Set nm=12
-c pmx03q
-c replace int(x+.001) with nint(x)
-c Write TeX file name to screen and to pml.
-c Replace char(...) with chax(...) to sovle msdev bug.
-c Bug fix: macro terminations when M is on a line by itself.
-c Bug fix: don't accumulate space for XS in pmxa.
-c Streamline Macros: use pointers to bufq instead of scratch files
-c pmx03p
-c Store input file in single character array bufq.
-c lbuf(i)*2 is length of line i
-c ipbuf is position just before next line to be read.
-c pmx03
-c Optimize read/writes
-c pmx02
-c Fix line count (for errors) when there are saved macros
-c pmx01
-c In optimize mode, open/close macros (Watch out for residual zz files!)
-c Command line input
-c Option Ao to optimize, otherwise normal processing
-c
-ccccccc
- parameter (nks=125,nm=24,mv=24576,maxblks=9600)
- character*128 lnholdq
- character*131072 bufq
- integer*2 lbuf(maxblks)
- common /comevent/ miditime,lasttime
- logical slmon,dbltie
- common /comslm/ levson(0:nm),levsoff(0:nm),imidso(0:nm),
- * naccbl(0:nm),laccbl(0:nm,10),jaccbl(0:nm,10),nusebl,
- * slmon(0:nm),dbltie
- integer*2 mmidi
- logical restpend,relacc,notmain,twoline,ismidi,crdacc
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * 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
- common /inbuff/ ipbuf,ilbuf,nlbuf,lbuf,bufq
- common /commus/ musize,whead20
- integer*4 nbars0(nks),nbars(nks),ipoe(nks),nbari(nks)
- real*4 poe0(nks),poe(nks)
- logical isfirst,optimize
- logical*4 fexist
- character*44 jobname
- character*47 infileq
- common /a1ll/ iv,ivxo(600),ipo(600),to(600),tno(600),nnl(nm),
- * nv,ibar,mtrnuml,nodur(nm,200),lenbar,iccount,
- * idum,itsofar(nm),nib(nm,15),nn(nm),
- * rest(nm,200),lenbr0,lenbr1,firstline,newmeter
- logical rest,firstline,newmeter
- common /comdiag/ n69(0:nm),n34(0:nm)
- logical mmacrec,gottempo
- common /commmac/ mmacstrt(0:nm,20),mmacend(0:nm,20),immac,
- * mmactime(20),nmidsec,msecstrt(0:nm,60),msecend(0:nm,60),
- * mmacrec,gottempo
- common /truelinecount/ linewcom(20000)
-c
-c Added 130302 only to get nsperi from g1etnote, for use in midi setup
-c
- common /c1omget/ lastchar,fbon,issegno,ihead,isheadr,nline,isvolt,
- * fracindent,nsperi(nm),linesinpmxmod,line1pmxmod,lenbuf0
- logical lastchar,fbon,issegno,isheadr,isvolt
-c
-c immac(i) is the index of i-th macro, i=1,nmac. Also make a list containing
-c nmidsec section starts and stops based on PLAYING macros (not recording).
-c
-ccccccccccccccccccccccccc
-c
- data date /'17 Mar 20'/
- data version /'2.94'/
-c
-ccccccccccccccccccccccccc
- data maxit,ncalls /200,0/
- data isfirst /.true./
-c itstart = mytime()
- versionc = version
-c
-c Initialize midi parameters
-c
- gottempo = .false.
- ismidi = .false.
- debugmidi = .false.
- relacc = .false.
- mmacrec = .false.
- nmidsec = 1
- mgap = 10
- miditime = 0
- lasttime = 0
- nmidcrd = 0
- nusebl = 0
- notmain = .false.
- do 3 ivx = 1 , nm
- twoline(ivx) = .false.
- midinst(ivx) = 6
- midivel(ivx) = 127
- midibal(ivx) = 64
- miditran(ivx) = 0
-3 continue
- do 12 icm = 0 , nm
- imidi(icm) = 0
- restpend(icm) = .false.
- trest(icm) = 0.
- levson(icm) = 0
- levsoff(icm) = 0
- slmon(icm) = .false.
- naccbl(icm) = 0
- n69(icm) = 0
- n34(icm) = 0
- msecstrt(icm,1) = 1
-12 continue
-c
-c End of midi parameter initialization
-c
- musize = 0
- optimize = .false.
- numargs = iargc()
- if (numargs .eq. 0) then
- print*,'You could have entered a jobname on the command line,'
- print*,' but you may enter one now:'
- read(*,'(a)')jobname
- numargs = 1
- else
-c call getarg(1,jobname,idum) ! May need to replace this w/ next line
- call getarg(1,jobname)
- end if
-10 ljob = lenstr(jobname,44)
- if (ljob .gt. 44) then
- print*,'Jobname is too long. Try again.'
- call stop1()
- else if (ljob .eq. 0) then
- print*,'No was jobname entered. Try again.'
- call stop1()
- else if (numargs .eq. 2) then
- if (ljob.eq.2 .and. jobname(1:2).eq.'-o') then
- optimize = .true.
-c call getarg(2,jobname,idum) ! May need to replace this w/ next line
- call getarg(2,jobname)
- numargs = 1
- go to 10
- else
- print*,'Illegal option on command line'
- call stop1()
- end if
- end if
-c
-c Strip ".pmx" if necessary
-c
- ndxpmx = max(index(jobname,'.pmx'),index(jobname,'.PMX'))
- if (ndxpmx .gt. 0) then
- jobname = jobname(1:ndxpmx-1)
- ljob = ljob-4
- end if
-c
-c Check for existence of input file
-c
- infileq = jobname(1:ljob)//'.pmx'
- inquire(file=infileq,EXIST=fexist)
- if (.not.fexist) then
- inquire(file=jobname(1:ljob)//'.PMX',EXIST=fexist)
- if (.not.fexist) then
- print*,'Cannot find file '//infileq
- call stop1()
- else
- infileq = jobname(1:ljob)//'.PMX'
- end if
- end if
-c
-c Open a log file
-c
- open(15,file=jobname(1:ljob)//'.pml')
- call printl('This is PMX, Version '//version//', '//date)
- ljob4 = ljob
- call printl('Opening '//infileq)
- open(18,file=infileq)
-c
-c Copy input file into common buffer
-c
- ipbuf = 0
- linewcom(1) = 1
- do 8 ilbuf = 1 , maxblks
- ncomments = 0
-14 read(18,'(a)',end=9)lnholdq
- lbuf(ilbuf) = lenstr(lnholdq,128)
- if (lbuf(ilbuf) .eq. 0) then
-c
-c Blank line. Make it a single blank with length 1
-c
- lbuf(ilbuf) = 1
- lnholdq = ' '
- end if
-c
-c Now line has at least one non blank character. Check for comment
-c As of Version 260, do not copy comments into bufq
-c But need to count %'s for error messaging
-c if (lnholdq(1:1).eq.'%') go to 14
- if (lnholdq(1:1).eq.'%') then
- ncomments = ncomments+1
- go to 14
- end if
-c
-c When here, have counted all preceding comments and have a real line
-c
- if (ilbuf .gt. 1) then
- linewcom(ilbuf) = linewcom(ilbuf-1)+1+ncomments
- else
- linewcom(1) = 1+ncomments
- end if
- if (ipbuf+lbuf(ilbuf).gt.131072) then
- print*,'Too many characters in file, stopping'
- call stop1()
- end if
- bufq(ipbuf+1:ipbuf+lbuf(ilbuf)) = lnholdq
- ipbuf = ipbuf+lbuf(ilbuf)
-8 continue
- call printl('Too many lines in input file')
- call stop1()
-9 continue
-c
-c Insert dummy line to handle input files w/o CR-LF at end.
-c
- nlbuf = ilbuf-1
-c nlbuf = ilbuf
-c bufq(ipbuf+1:ipbuf+3) = ' / '
-c lbuf(nlbuf) = 3
- close(18)
- do 6 numit = 1 , maxit
- if (optimize) call printl('Starting an iteration')
-c
-c When isfirst=.true., pmxa() generates linebreaks normally, output in nbars0.
-c Otherwise, nbars0 is the input
-c When islast=.false., pmxb only returns poe's, otherwise does whole job
-c
- call pmxa(jobname,ljob4,isfirst,nsyst,nbars0,optimize)
- if (.not.optimize) then
- if (ismidi) then
-c
-c This was moved here from writemidi 130302 to allow midivel,bal,tran, to be
-c set up here as functions of instrument rather than iv (staff).
-c Count up staves(iv,nv) vs instruments. Store instr# for iv in iinsiv(iv)
-c
- nstaves = 0
- ivt = 0
- do 16 iinst = 1 , nm
- nstaves = nstaves+nsperi(iinst)
- do 17 ivtt = 1 , nsperi(iinst)
- ivt = ivt+1
- iinsiv(ivt) = iinst
-17 continue
- if (nstaves .eq. nv) go to 18
-16 continue
- print*,'Screwup!'
- call stop1()
-18 continue
-c
-c Set up channel numbers for midi.
-c
- numchan = 0
- do 11 iv = nv , 1 , -1
- if (twoline(iv)) then
- midchan(iv,2) = numchan
- numchan = numchan+1
- end if
- midchan(iv,1) = numchan
- numchan = numchan+1
-11 continue
-c
-c numchan will now be the number of channels, but max channel # is numchan-1
-c
-c Set up velocities, balances, and midi-transpositions
-c
- do 13 iv = nv , 1 , -1
- if (twoline(iv)) then
-c 130302 Make these functions of instrument rather than staff (iv)
-c midvelc(midchan(iv,2)) = midivel(iv)
-c midbc(midchan(iv,2)) = midibal(iv)
-c midtc(midchan(iv,2)) = miditran(iv)
- midvelc(midchan(iv,2)) = midivel(iinsiv(iv))
- midbc(midchan(iv,2)) = midibal(iinsiv(iv))
- midtc(midchan(iv,2)) = miditran(iinsiv(iv))
- end if
-c midvelc(midchan(iv,1)) = midivel(iv)
-c midbc(midchan(iv,1)) = midibal(iv)
-c midtc(midchan(iv,1)) = miditran(iv)
- midvelc(midchan(iv,1)) = midivel(iinsiv(iv))
- midbc(midchan(iv,1)) = midibal(iinsiv(iv))
- midtc(midchan(iv,1)) = miditran(iinsiv(iv))
-13 continue
- end if
-c
-c TEMPORARY!!!
-c
- write(15,*)'nlbuf: ',nlbuf
- ip1 = 1
- do 10000 ilb = 1 , nlbuf
-c write(15,'(2i5,a40,3i5)')ilb,lbuf(ilb),
-c * bufq(ip1:ip1+lbuf(ilb)-1),
-c * (ichar(bufq(ip1+lbuf(ilb)-k:ip1+lbuf(ilb)-k)),
-c * k=min(3,lbuf(ilb)),1,-1)
- ip1 = ip1+lbuf(ilb)
-10000 continue
- iplast = ip1-1
-c
-c Check to see if (1) last line is "<blank><blank>/" and (2) next to last
-c line is "/"
-c
- if (bufq(iplast+1-lbuf(nlbuf):iplast) .eq. ' /') then
- if (bufq(iplast-lbuf(nlbuf):iplast-lbuf(nlbuf)).eq.'/') then
- print*,'Removing last line of "<blank><blank>/"'
- write(15,*)'Removing last line of "<blank><blank>/"'
- nlbuf = nlbuf-1
- end if
- end if
-c
- call pmxb(.true.,poe0,ncalls,optimize)
- if (ismidi) then
-c
-c Write midi file
-c
- open(51,file=jobname(1:ljob)//'.mid')
- if (debugmidi) open(52,file=jobname(1:ljob)//'.dbm')
- call printl(' ')
- call printl('Writing '//jobname(1:ljob)//'.mid')
- call writemidi(jobname,ljob)
- end if
- close(15)
- stop
- end if
- write(15,*)'nlbuf: ',nlbuf
- ip1 = 1
- call pmxb(.false.,poe0,ncalls,optimize)
- call poestats(nsyst,poe0,poebar0,devnorm0)
-c
-c Save initial deviation and line breaks for later comparison
-c
- if (numit .eq. 1) then
- devpmx = devnorm0
- do 20 isys = 1 , nsyst
- nbari(isys) = nbars0(isys)
-20 continue
- end if
- call sortpoe(nsyst,poe0,ipoe)
- do 1 iupord = nsyst , 1 , -1
- isysu = ipoe(iupord)
- print*,'isysu=',isysu
- write(15,*)'isysu=',isysu
-c
-c Skip if system isysu has poe0 < avg or isysd has poe0 > avg
-c
- if (poe0(isysu).lt.poebar0) go to 1
- do 5 idnord = 1 , nsyst
- isysd = ipoe(idnord)
- if (isysu.eq.isysd .or. nbars0(isysd).eq.1
- * .or. poe0(isysd).gt.poebar0) go to 5
- do 2 isyst = 1 , nsyst
- nbars(isyst) = nbars0(isyst)
- if (isyst .eq. isysu) then
- nbars(isyst) = nbars(isyst)+1
- else if (isyst .eq. isysd) then
- nbars(isyst) = nbars(isyst)-1
- end if
-2 continue
- call pmxa(jobname,ljob4,isfirst,nsyst,nbars,optimize)
- call pmxb(.false.,poe,ncalls,optimize)
- call poestats(nsyst,poe,poebar,devnorm)
- if (devnorm .lt. devnorm0) then
- devnorm0 = devnorm
- poebar0 = poebar
- do 4 isys = 1 , nsyst
- nbars0(isys) = nbars(isys)
- poe0(isys) = poe(isys)
-4 continue
- print*,'Improved with iup,idown,devnorm:',
- * isysu,isysd,devnorm0
- write(15,*)'Improved with iup,idown,devnorm:',
- * isysu,isysd,devnorm0
- write(*,'(5x,20i3)')(nbars0(isys),isys=1,nsyst)
- write(15,'(5x,20i3)')(nbars0(isys),isys=1,nsyst)
- call sortpoe(nsyst,poe0,ipoe)
- go to 6
- end if
-5 continue
-1 continue
-c
-c If we get here, must have gone thru all switches and found nothing better,
-c so done!
-c
- go to 7
-6 continue
-7 continue
- print*,'Optimum located, numit:',numit,', ncalls:',ncalls
- write(15,*)'Optimum located, numit:',numit,', ncalls:',ncalls
- print*,'Final error:',devnorm0,', initial error:',devpmx
- write(15,*)'Final error:',devnorm0,', initial error:',devpmx
- print*,'Percentage improvement:',100.*(1-devnorm0/devpmx)
- write(15,*)'Percentage improvement:',100.*(1-devnorm0/devpmx)
- call printl('Initial bars/system:')
- write(*,'(5x,20i3)')(nbari(isys),isys=1,nsyst)
- write(15,'(5x,20i3)')(nbari(isys),isys=1,nsyst)
- call printl('Final bars/system:')
- write(*,'(5x,20i3)')(nbars0(isys),isys=1,nsyst)
- write(15,'(5x,20i3)')(nbars0(isys),isys=1,nsyst)
- call pmxa(jobname,ljob4,.false.,nsyst,nbars0,optimize)
- call pmxb(.true.,poe0,ncalls,optimize)
- close(15)
- end
- subroutine accsym(nacc,acsymq,lacc)
- character*3 acsymq
- iacc = iand(nacc,7)
- if (iacc .eq. 1) then
- acsymq = 'fl'
- lacc = 2
- else if (iacc .eq. 2) then
- acsymq = 'sh'
- lacc = 2
- else if (iacc .eq. 3) then
- acsymq = 'na'
- lacc = 2
- else if (iacc .eq. 5) then
- acsymq = 'dfl'
- lacc = 3
- else if (iacc .eq. 6) then
- acsymq = 'dsh'
- lacc = 3
- else
- print*,'bad accidental: ',iacc
- end if
- return
- end
- subroutine addask(taskn,waskn,elaskn,
- * fixednew,scaldold,tglp1,scfac,isudsp)
- parameter (nm=24)
- logical isudsp
- common /comas1/ naskb,task(40),wask(40),elask(40)
- common /comudsp/udsp(50),tudsp(50),nudsp,udoff(nm,20),nudoff(nm)
- common /comtol/ tol
- scoarg = scaldold*scfac
- if (isudsp) then
-c
-c Find which udsp we're dealing with
-c
- do 1 iudsp = 1 , nudsp
- if (abs(taskn+tglp1-tudsp(iudsp)) .lt. tol) go to 2
-1 continue
- print*,'You should note BEEE here in addask!'
- call stop1()
-2 continue
-c
-c Fixednew and scaldold must not be changed, since udsp's are already included
-c in fsyst from pmxa, and udsp don't involve scaled space..
-c
- if (naskb.gt.0 .and. abs(taskn-task(max(1,naskb))).lt.tol) then
-c
-c Must add user-defined space to what's there already.
-c
- wask(naskb) = wask(naskb)+udsp(iudsp)
- else
-c
-c This place has no other space.
-c
- naskb = naskb+1
- task(naskb) = taskn
- wask(naskb) = udsp(iudsp)
- elask(naskb) = 0.
- end if
- else
-c 130330 start
- oldwask = 0.
- oldelask = 0.
-c 130330 end
-c
-c This is a normal space, no effect if smaller than existing space
-c
- if (naskb.gt.0 .and. abs(taskn-task(max(1,naskb))).lt.tol) then
-c
-c We already put in some space at this time
-c Check if new one needs more space than old one at same time
-c
- if (waskn .gt. wask(naskb)) then
-c
-c 130330 We were double counting the larger space when it came 2nd
-c Need to fix but don't see how yet. Assume times came in order and
-c that last naskb defined spaces that need updating
-c
- oldwask = wask(naskb)
- oldelask = elask(naskb)
-c End of 130330 insertions
- naskb = naskb-1
- else
- return
- end if
- end if
- naskb = naskb+1
- task(naskb) = taskn
- wask(naskb) = waskn
- elask(naskb) = elaskn
-c 130330 start
-c fixednew = fixednew+waskn
-c scaldold = scaldold+elaskn
- fixednew = fixednew+waskn-oldwask
- scaldold = scoarg+elaskn-oldelask
-c 130330 end
- end if
- return
- end
- subroutine addblank(noteq,lnoten)
- character*8 noteq
- character*1 tchar
- tchar = noteq(1:1)
- noteq = ' '//tchar
- lnoten = 2
- return
- end
- subroutine addfb(nfb,iv,tnew,t1fb,t2fb,ulfbq,ifbadd)
- parameter (nm=24)
- integer nfb(nm)
- common /comtol/ tol
- real*4 t1fb(nm,20),t2fb(nm,20)
- character*1 ulfbq(nm,20)
- ifbadd = 1
- nfb(iv) = nfb(iv)+1
- do 1 ifb = nfb(iv)-1 , 1 , -1
- if (tnew .lt. t1fb(iv,ifb)-tol) then
- t1fb(iv,ifb+1) = t1fb(iv,ifb)
- t2fb(iv,ifb+1) = t2fb(iv,ifb)
- ulfbq(iv,ifb+1) = ulfbq(iv,ifb)
- else
- ifbadd = ifb+1
- go to 2
- end if
-1 continue
-2 continue
- t1fb(iv,ifbadd) = tnew
- ulfbq(iv,ifbadd) = 'x'
- return
- end
- subroutine addmidi(icm,nolev,iacc,midisig,time,rest,endrest)
-c subroutine addmidi(icm,nolev,iacc,isig,time,rest,endrest)
- parameter(nm=24,mv=24576)
- integer*2 mmidi,itk(25)
- integer*4 itiesav(5,100)
- character*1 notenumq
- logical endrest,eximacc,it1found
- logical rest
- logical restpend,relacc,notmain,twoline,ismidi,crdacc
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * 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
- logical slmon,dbltie
- common /comslm/ levson(0:nm),levsoff(0:nm),imidso(0:nm),
- * naccbl(0:nm),laccbl(0:nm,10),jaccbl(0:nm,10),nusebl,
- * slmon(0:nm),dbltie
- common /comevent/ miditime,lasttime
- common /comdiag/ n69(0:nm),n34(0:nm)
-c common /commidisig/ midisig(nm)
-c
-c Following variables are local but must be saved. I hope they are.
-c (3/18/00) With g77 they are not, so add a common block here.
-c
-c integer*2 ipslon(0:nm),lusebl(10),jusebl(10),icmm(0:12)
- integer*2 ipslon(0:nm),lusebl(10),jusebl(10),icmm(0:15)
- common /comips/ ipslon,lusebl,jusebl
-c data icmm /0,1,2,3,4,5,6,7,8,10,11,12,13/
- data icmm /0,1,2,3,4,5,6,7,8,10,11,12,13,14,15,16/
-c
-c Cancel out barline accidentals if there's a rest.
-c
- if (rest) naccbl(icm) = 0
-c
-c Special path to insert dummy rest at end of a section
-c
- if (endrest) go to 20
-c
- do 7 ion = 0 , nmidcrd
-c
-c check if this is only to get pitch of a chord note
-c
- if (notmain) go to 6
-c
-c check for rest
-c
- if (rest) then
-c
-c Will not put in a note, but must update timing
-c
- if (.not.restpend(icm)) then
-c
-c First rest in sequence, save the time
-c
- restpend(icm) = .true.
- trest(icm) = time
- else
- trest(icm) = trest(icm)+time
- end if
-c
-c Note: code checkers don't like the above due to calling addmidi(trest(icm))
-c but this only happens if rest at end of section (endrest=.true.) (called
-c from getmidi(), in which case these above lines are bypassed.
-c
- call chkimidi(icm)
- return
- end if
-c
-c time tics
-c
- if (imidi(icm).gt.0 .and. ion.eq.0) then
- idur = mgap
- else
- idur = 0
- end if
- if (restpend(icm)) then
- restpend(icm) = .false.
- idur = idur+nint(15*trest(icm))
- end if
-c
-c time to start of note
-c
- idurvar = isetvarlen(idur,nby2on)
- if (nby2on .gt. 4) then
- print*,'You got >4 bytes, something is bogus.'
- call stop1()
- end if
- imidi(icm) = imidi(icm)+1
- do 2 i = 1 , nby2on
-c
-c imidi points to cell before highest (leftmost) byte. Start with lowest byte
-c at far right, fill in backwards
-c
- mmidi(icm,imidi(icm)+nby2on-i) = mod(idurvar,256)
- if (nby2on .gt. 1) idurvar = idurvar/256
-2 continue
- imidi(icm) = imidi(icm)+nby2on-1
-c
-c Note-on signal
-c
- imidi(icm) = imidi(icm)+1
- mmidi(icm,imidi(icm)) = 9*16+icmm(icm)
-c
-c Entry point for chord note pitch determination
-c
-6 continue
-c
-c Get midi pitch. On chord iteration, only do this first time (main note),
-c since pitch was already computed for nonmain chord notes.
-c
- if (ion .eq. 0) then
- ipsav = nolev*12./7+11
- ipsav0 = ipsav
- if (midisig .ne. 0) then
-c
-c Adjust for signature
-c
- notenumq = char(48+mod(nolev,7))
- if (midisig.ge.index('4152630',notenumq)) then
- ipsav = ipsav+1
- else if (-midisig.ge.index('0362514',notenumq)) then
- ipsav = ipsav-1
- end if
- end if
-c
-c Deal with accidentals.
-c
-c iacc 0 1 2 3 4 5 6 7
-c effect X fl sh na X dfl dsh X
-c iashft X -1 1 0 X -2 2 X
-c
- jacc = 0
- eximacc = .false.
- if (iacc .gt. 0) then
-c
-c Adjust key-sig-adjusted pitch for explicit accidental (and exit)
-c
- jacc = iashft(iacc)
- eximacc = .true.
- if (.not.relacc) jacc = jacc+ipsav0-ipsav
-c
-c (Above) Shift applies to diatonic pitch but will be added to adjusted one
-c
- else if (naccim(icm) .gt. 0) then
-c
-c Possible implicit accidental from earlier in the bar
-c Check for prior accid in this bar at this note level
-c
- do 3 kacc = 1 , naccim(icm)
- if (laccim(icm,kacc) .eq. nolev) then
- jacc = jaccim(icm,kacc)
- eximacc = .true.
- if (.not.relacc) jacc = jacc+ipsav0-ipsav
- go to 4
- end if
-3 continue
-4 continue
- end if
-c
-c Must split off the following if block from those above because chord
-c notes can cause naccim>0, forcing us to miss other chord note's
-c accross-bar-line accidental
-c
- if (naccbl(icm).gt.0 .and. .not.eximacc) then
-c
-c Possible carryover accid from prior bar (or prior same-pitch note).
-c
- do 21 kacc = 1 , naccbl(icm)
- if (laccbl(icm,kacc) .eq. nolev) then
- jacc = jaccbl(icm,kacc)
-c
-c Since we are *using* the bar-line accid, must flag it to be saved for next.
-c
- nusebl = nusebl+1
- jusebl(nusebl) = jacc
- lusebl(nusebl) = nolev
- if (.not.relacc) jacc = jacc+ipsav0-ipsav
- go to 22
- end if
-21 continue
-22 continue
- end if
- ipsav = ipsav+jacc
- end if
- if (notmain) then
- mcpitch(nmidcrd) = ipsav
-c
-c Save pitch for tie checks
-c
- if (levson(icm).eq.nolev.and..not.slmon(icm))
- * ipslon(icm) = ipsav
- else
- imidi(icm) = imidi(icm)+1
- if (ion.eq.0) then
- mmidi(icm,imidi(icm)) = ipsav
- if (levson(icm).eq.nolev.and..not.slmon(icm))
- * ipslon(icm) = ipsav
- else
- mmidi(icm,imidi(icm)) = mcpitch(ion)
- end if
- end if
- if (ion .eq. 0) then
-c
-c Only record accids for non-chords, main chord note during chord iteration
-c and chordnotes on first call but not during iteration
-c
- if (iacc.gt.0) then
-c
-c Set marker for accidental for possible continuations later this bar
-c but first check and clear earlier ones on same note.
-c
- do 23 kacc = 1 , naccim(icm)
- if (laccim(icm,kacc) .eq. nolev) then
- do 24 macc = kacc , naccim(icm)-1
- laccim(icm,macc) = laccim(icm,macc+1)
- jaccim(icm,macc) = jaccim(icm,macc+1)
-24 continue
- go to 25
- end if
-23 continue
- go to 26
-25 continue
- naccim(icm) = naccim(icm)-1
-26 continue
-c
-c Flag new accidental
-c
- naccim(icm) = naccim(icm)+1
- laccim(icm,naccim(icm)) = nolev
- jaccim(icm,naccim(icm)) = iashft(iacc)
- end if
-c
-c Bail if this is a chord note on the first call (from docrd)
-c
- if (notmain) then
- call chkimidi(icm)
- return
- end if
- end if
-c
-c Vel
-c
- imidi(icm) = imidi(icm)+1
- mmidi(icm,imidi(icm)) = midvelc(icm)
- call chkimidi(icm)
-7 continue
-c
-c For tie checks
-c
- if (levson(icm).gt.0.and..not.slmon(icm)) imidso(icm) = imidi(icm)
-c
-c Entry point for special rests at section ends (endrest=T)
-c
-20 continue
-c
-c Now insert all the ends
-c
- do 8 ioff = 0 , nmidcrd
- if (ioff .eq. 0) then
-c
-c time to end
-c
- idur1 = nint(15*time)
- if (.not.endrest .or. miditime.eq.nint(15*trest(icm))) then
- idur = idur1-mgap
- else
- idur = idur1
- end if
-c
-c Deal with roundoff problems with 7-tuplets on half or quarters
-c
- if (idur1 .eq. 69) then
- n69(icm) = n69(icm)+1
-c if (mod(n69(icm)+6,7) .gt. 3) idur = 58
- if (mod(n69(icm)+6,7) .gt. 3) idur = idur1-mgap-1
- else if (idur1 .eq. 34) then
- n34(icm) = n34(icm)+1
- if (mod(n34(icm)+6,7) .gt. 4) idur = idur1-mgap+1
- end if
- idurvar = isetvarlen(idur,nby2off)
- if (nby2off .gt. 4) then
- print*,'You got >4 bytes, something is bogus.'
- call stop1()
- end if
- imidi(icm) = imidi(icm)+1
- call chkimidi(icm)
- do 1 i = 1 , nby2off
- mmidi(icm,imidi(icm)+nby2off-i) = mod(idurvar,256)
- if (nby2off .gt. 1) idurvar = idurvar/256
-1 continue
- imidi(icm) = imidi(icm)+nby2off-1
- else
-c
-c Inserting end of chord note, delta time is 0
-c
- imidi(icm) = imidi(icm)+1
- mmidi(icm,imidi(icm)) = 0
- end if
-c
-c Note off
-c
- imidi(icm) = imidi(icm)+1
- mmidi(icm,imidi(icm)) = 8*16+icmm(icm)
-c
-c Pitch
-c
- imidi(icm) = imidi(icm)+1
- if (ioff .eq. 0) then
- mmidi(icm,imidi(icm)) = ipsav
- else
- mmidi(icm,imidi(icm)) = mcpitch(ioff)
- end if
-c
-c Vel
-c
- imidi(icm) = imidi(icm)+1
- mmidi(icm,imidi(icm)) = 0
- call chkimidi(icm)
- if (endrest) then
- return
- end if
-8 continue
- naccbl(icm) = nusebl
- if (nusebl .gt. 0) then
-c
-c Fix tables of "bar-line" accids that are saved due to consecutive notes.
-c
- do 30 kacc = 1 , nusebl
- laccbl(icm,kacc) = lusebl(kacc)
- jaccbl(icm,kacc) = jusebl(kacc)
-30 continue
- nusebl = 0
- end if
-c
-c Begin tie checks
-c
- if (slmon(icm)) then
-c
-c Prior note had a slur start
-c
- if (levson(icm).eq.levsoff(icm) .and. iacc.eq.0) then
-c
-c We have a tie! (Assumed there would be no accidental on tie-ending note)
-c Make a list of times of all events back to the one starting at imidso+1,
-c which is at or before where the tie started. Ident tie start and stop by
-c comparing pitches. Save the 4 pieces of data in itiesav(1...4,nsav4tie)
-c Store actual time in itiesav(5,nsav4tie), using itiesav(1,1) as initial
-c time.
- nsav4tie = 0
- imidt = imidso(icm)
-10 nsav4tie = nsav4tie+1
- itiesav(1,nsav4tie) = igetvarlen(mmidi,icm,imidt,nbytes)
- imidt = imidt+nbytes
- do 11 j = 1 , 3
- itiesav(j+1,nsav4tie) = mmidi(icm,imidt+j)
-11 continue
- imidt = imidt+3
- if (nsav4tie .eq. 1) then
- itiesav(5,1) = itiesav(1,1)
- else
- itiesav(5,nsav4tie) = itiesav(1,nsav4tie)+
- * itiesav(5,nsav4tie-1)
- end if
- if (imidt .ne. imidi(icm)) go to 10
-c
-c Find which two pitches agree with saved slur pitch.
-c
- it1found = .false.
- do 12 it2 = 1 , nsav4tie
- if (itiesav(3,it2) .eq. ipslon(icm)) then
- if (it1found) go to 13
- it1 = it2
- it1found = .true.
- end if
-12 continue
- call printl(
- * 'Program error, tied notes, send source to Dr. Don')
- it1 = nsav4tie+1
- it2 = nsav4tie+1
-13 continue
-c
-c List the positions we want to keep
-c
- jsav = 0
- do 14 isav = 1 , nsav4tie
- if (isav.eq.it1 .or. isav.eq.it2) go to 14
- jsav = jsav+1
- itk(jsav) = isav
-14 continue
- nsav4tie = nsav4tie-2
-c
-c Now dump events it1 & it2, recompute times, restack mmidi.
-c
- imidi(icm) = imidso(icm)
- do 15 isav = 1 ,nsav4tie
- if (isav .eq. 1) then
- idurvar = isetvarlen(itiesav(5,itk(isav)),nbytes)
- else
- idurvar = isetvarlen(itiesav(5,itk(isav))-
- * itiesav(5,itk(isav-1)),nbytes)
- end if
- imidi(icm) = imidi(icm)+1
- do 16 i = 1 , nbytes
- mmidi(icm,imidi(icm)+nbytes-i) = mod(idurvar,256)
- if (nbytes .gt. 1) idurvar = idurvar/256
-16 continue
- imidi(icm) = imidi(icm)+nbytes-1
- do 17 i = 2 , 4
- imidi(icm) = imidi(icm)+1
- mmidi(icm,imidi(icm)) = itiesav(i,itk(isav))
-17 continue
-15 continue
- end if
- slmon(icm) = .false.
- levsoff(icm) = 0
- if (.not.dbltie) levson(icm) = 0
- end if
- if (levson(icm).gt.0) slmon(icm) = .true.
- if (nmidcrd .gt. 0) nmidcrd = 0
- call chkimidi(icm)
- return
- end
- subroutine addstr(notexq,lnote,soutq,lsout)
- common /comlast/ islast,usevshrink
- logical islast,usevshrink
- character*(*) notexq
- character*80 soutq
- if (lsout+lnote .gt. 72) then
- if (islast) write(11,'(a)')soutq(1:lsout)//'%'
- lsout = 0
- end if
- if (lsout .gt. 0) then
- soutq = soutq(1:lsout)//notexq(1:lnote)
- else
- soutq = notexq(1:lnote)
- end if
- lsout = lsout+lnote
- return
- end
- subroutine adjusteskz(ib,istart,poenom)
-c
-c For block ib, this adds accidental spaces to eskz, for use in getting
-c length of xtup bracket and slopes of brackets and beams.
-c
- parameter (nm=24)
- common /comas1/ naskb,task(40),wask(40),elask(40)
- integer*4 istart(80)
- common /comnsp/ space(80),nb,prevtn(nm),
- * flgndv(nm),flgndb,eskgnd,ptsgnd,ivmxsav(nm,2),nvmxsav(nm)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,isfig
- common /comeskz2/ eskz2(nm,200)
- common /comtol/ tol
- common /comntot/ ntot
- inmin = istart(ib)+1
- do 10 iaskb = 1 , naskb
- if (task(iaskb) .lt. to(istart(ib))-tol) go to 10
- eskadd = wask(iaskb)/poenom-elask(iaskb)
- do 11 in = inmin , ntot
- if (to(in) .gt. task(iaskb)-tol) then
- eskz2(ivxo(in),ipo(in)) = eskz2(ivxo(in),ipo(in))+eskadd
- if (abs(to(in)-task(iaskb)).lt. tol) inmin=inmin-1
- else
- inmin = inmin+1
- end if
-11 continue
-10 continue
- return
- end
- subroutine askfig(pathnameq,lpath,basenameq,lbase,figbass,istype0)
- logical figbass,ispoi,topmods,istype0,done,isbbm
- common /comhsp/ hpttot(176)
- common /compoi/ ispoi
- common /combbm/ isbbm
- common /comas3/ ask(2500),iask,topmods
- character*40 pathnameq
- character*44 basenameq
- character*1 sq,chax
- character*129 outq
- sq = chax(92)
- open(12,file=pathnameq(1:lpath)//basenameq(1:lbase)//'.tex')
-c
-c Transfer first 5 lines of main internal TeX file
-c
- do 11 il = 1 , 5
- call moveln(11,12,done)
-11 continue
- if (istype0) then
-c
-c Transfer literal TeX stuff from special scratch file
-c
- rewind(17)
-10 call moveln(17,12,done)
- if (.not.done) go to 10
- close(17)
- end if
-c
-c Transfer next 2 lines from main scratch file
-c
- do 3 il = 1 , 2
- call moveln(11,12,done)
-3 continue
- if (ispoi) write(12,'(a)')sq//'input musixpoi'
- if (isbbm) write(12,'(a)')sq//'input musixbbm'
- if (figbass) then
-c
-c Transfer .fig data from scratch (unit 14) into external .tex (unit 12)
-c
-4 call moveln(14,12,done)
- if (.not.done) go to 4
- close(14)
- end if
- iask = 0
- ihs = 0
-1 read(11,'(a129)',end=999)outq
-c
-c Hardspaces.
-c
- if (outq(1:5) .eq. sq//'xard') then
- ihs = ihs+1
- outq(2:2) = 'h'
- write(outq(12:15),'(f4.1)')hpttot(ihs)
- lenout = 19
- go to 9
- end if
-c
-c This part hard-wires ask's into new .tex file as ast's
-c
-2 indxask = index(outq,sq//'ask')
- if (indxask .ne. 0) then
- iask = iask+1
- call putast(ask(iask),indxask,outq)
- go to 2
- end if
- lenout = llen(outq,129)
-9 continue
- write(12,'(a)')outq(1:lenout)
-c
-c If this is the line with "readmod", check for topmods.
-c
- if (topmods .and. outq(2:8).eq.'readmod') then
- topmods = .false.
- rewind(16)
- do 7 il = 1 , 1000
- read(16,'(a129)',end=8)outq
- lenout = llen(outq,129)
-c
-c We inserted the '%' in subroutine littex, to guarantee including blank.
-c
- write(12,'(a)')outq(1:lenout)
-7 continue
-8 continue
- close(16)
- end if
- go to 1
-999 close(11)
- close(12)
- return
- end
- subroutine backfill(iunit,oldq,lenold,newq,lennew)
-c
-c In iunit, looks backward for oldq, overwrites newq
-c Safest if both are same length!
-c
- character*128 lineq(200),nowq
- character*(*) oldq,newq
- linesback = 0
-1 continue
- backspace(iunit)
- read(iunit,'(a)')nowq
- ndx = index(nowq,oldq(1:lenold))
-c
-c Save the line just read
-c
- linesback = linesback+1
- lineq(linesback) = nowq
- if (ndx .eq. 0) then
- backspace(iunit)
- go to 1
- end if
-c
-c If here, it's replacement time.
-c
- lineq(linesback) = nowq(1:ndx-1)//newq(1:lennew)
- * //nowq(ndx+lenold:128)
- backspace(iunit)
- do 2 line = linesback , 1 , -1
- write(iunit,'(a128)')lineq(line)
-2 continue
- return
- end
- subroutine beamend(notexq,lnote)
- parameter (nm=24)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- character*1 ulq,sepsymq,sq,ulqq,chax
- logical beamon,firstgulp,figbass,figchk,flipend,btest,
- * isfig,vxtup,isdotm,isbjmp,isbj2,drawbm
- common /combjmp/ ivbj1,ivbj2,isbjmp,isbj2,multbj1
- common /comoct/ noctup
- common /comxtup/ ixtup,vxtup(nm),ntupv(nm,9),nolev1(nm),
- * mtupv(nm,9),nxtinbm(nm),
- * islope(nm),xelsk(24),eloff(nm,9),
- * nssb(nm),issb(nm),lev1ssb(nm,20)
- common /comdraw/ drawbm(nm)
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /strtmid/ ihnum3,flipend(nm),ixrest(nm)
- character*4 tempq
- character*8 noteq
- character*79 notexq
- ip = ipo(jn)
- multip = iand(mult(ivx,ip),15)-8
- lnote = 0
- if (ixrest(ivx) .eq. 4) then
-c
-c This is the LAST note in the xtup (i.e., all rests before). Make single.
-c
- nodur(ivx,ip) = 2**(4-multip)
- call notex(notexq,lnote)
- ixrest(ivx) = 0
- return
- end if
- nole = nolev(ivx,ip)
-c
-c Check for special situations with 2nds (see precrd)
-c
- if (btest(nacc(ivx,ip),30)) then
- nole = nole - 1
- else if (btest(nacc(ivx,ip),31)) then
- nole = nole + 1
- end if
-c
-c Terminate indented beams for 2-note tremolo if needed
-c
- if (btest(irest(ivx,ip-1),2) .and.
- * igetbits(irest(ivx,ip-1),2,5) .gt. 0) then
- nindent = igetbits(irest(ivx,ip-1),2,5)
- if (ulq(ivx,ibmcnt(ivx)) .eq. 'u') then
- addoff = -1-.5*nindent
- else
- addoff = 1+.5*nindent
- endif
-c addoff = addoff+(.595-.065*abs(islope(ivx)))*islope(ivx)
- addoff = addoff+.0822*islope(ivx)
- if (addoff .lt. -.05) then
- write(tempq,'(f4.1)')addoff
- else
- write(tempq,'(f4.2)')addoff
- end if
- notexq = sq//'raise'//tempq(1:4)//sq//'internote'//sq//'hbox{'
- * //sq//'loffset{.7}{'//sq//'tb'//ulq(ivx,ibmcnt(ivx))//
- * '0}}'
- lnote = 46
- end if
- if (.not.drawbm(ivx)) then
-c
-c Xtuplet with no beam, just put in the right kind of note
-c
- if (btest(irest(ivx,ip),0)) then
-c
-c Rest at end of unbeamed xtup
-c
- lnote = 3
- if (btest(islur(ivx,ip),29)) then
- notexq = sq//'sk'
-c
-c 180106 There was a problem with nolev(ivx,ip) not being set to 0 for
-c a blank rest ending xtup, but hopefully returning from here will handle it.
-c
- return
- else if (multip .eq. 0) then
- notexq = sq//'qp'
- else if (multip .eq. -1) then
- notexq = sq//'hp'
- else if (multip .eq. 1) then
- notexq = sq//'ds'
- else if (multip .eq. 2) then
- notexq = sq//'qs'
- else
- notexq = sq//'hs'
- end if
-c
-c 180106 Deal with possible level tweak
-c
- nole = mod(nolev(ivx,ip)+50,100)-50
- if (nole .ne. 0) then
- if (abs(nole) .lt. 10) then
- noteq = chax(48+abs(nole))
- lnoten = 1
- else
- write(noteq(1:2),'(i2)')abs(nole)
- lnoten = 2
- end if
- if (nole .gt. 0) then
- notexq = sq//'raise'//noteq(1:lnoten)//sq//'internote'
- * //notexq(1:lnote)
- else
- notexq = sq//'lower'//noteq(1:lnoten)//sq//'internote'
- * //notexq(1:lnote)
- end if
- lnote = 16+lnoten+lnote
- end if
- return
- end if
- if (btest(islur(ivx,ip),30)) then
-c
-c Forced stem direction
-c
- ndsav = nodur(ivx,ip)
- nodur(ivx,ip) = 2**(4-multip)
- if (btest(nacc(ivx,ip-1),27))
- * nodur(ivx,ip)=nodur(ivx,ip)/2
- call notex(notexq,lnote)
- nodur(ivx,ip) = ndsav
- else
- call notefq(noteq,lnoten,nole,ncmid(iv,ip))
- if (lnoten .eq. 1) call addblank(noteq,lnoten)
-c
-c To reduce confusion due to this early update of lnote, do it
-c below, separately in each case/
-c lnote = lnoten+3
- if (.not.btest(nacc(ivx,ip-1),27)) then
-c
-c Prior note is not regular-dotted
-c
- if (btest(irest(ivx,ip-1),2) .and.
- * igetbits(irest(ivx,ip-1),2,5) .gt. 0) then
-c
-c Unbeamed tremolo with indented beams. Put termination in right here
-c
- nindent = igetbits(irest(ivx,ip-1),2,5)
- if (ulq(ivx,ibmcnt(ivx)) .eq. 'u') then
- addoff = -1-.5*nindent
- else
- addoff = 1+.5*nindent
- endif
-c
-c Is there an islope here, for unbeamed?
-c
- if (addoff .lt. -.05) then
- write(tempq,'(f4.1)')addoff
- else
- write(tempq,'(f4.2)')addoff
- end if
- notexq = sq//'raise'//tempq(1:4)//sq//'internote'//sq//
- * 'hbox{'
- * //sq//'loffset{.7}{'//sq//'tb'//ulq(ivx,ibmcnt(ivx))//
- * '0}}'
- lnote = 46
- end if
- if (multip .eq. 0) then
- if (btest(irest(ivx,ip-1),2) .and.
- * nodur(ivx,ip).gt.24) then
-c
-c 2nd note of unbeamed half-note trem; make open
-c But it's not clear if unbeamed half-note tremolo is Kosher,
-c so don't worry about stem lengths here now.
-c
- if (lnote .eq. 0) then
- notexq = sq//'h'//ulq(ivx,ibmcnt(ivx))//noteq
- else
- notexq = notexq(1:46)//
- * sq//'h'//ulq(ivx,ibmcnt(ivx))//noteq
- lnote = 46
- end if
- else
- if (btest(irest(ivx,ip-1),2) .and.
- * nodur(ivx,ip).eq.24 .or. nodur(ivx,ip).eq.12) then
-c
-c Need a dot.
-c
- lnote = 46
- if (lnoten .eq. 1) then
- noteq = ' '//noteq(1:1)
- lnoten = 2
- end if
-c
-c Insert stemlength stuff here for unbeamed dotted tremolo.
-c May later combine with below to avoid repeat. But need to
-c return to normal stem length after note is set.
-c
- nindent = igetbits(irest(ivx,ip-1),2,5)
- if (ulq(ivx,ibmcnt(ivx)) .eq. 'u') then
- slen = (4.5+nindent+nolev1(ivx)-nole
- * +1.3*(eskz(ivx,ip)-eskz(ivx,ip-1)-.7)
- * *islope(ivx)/slfac)*.6667
- else
- slen = (4.5+nindent-nolev1(ivx)+nole
- * -1.3*(eskz(ivx,ip)-eskz(ivx,ip-1)-.7)
- * *islope(ivx)/slfac)*.6667
- end if
- write(tempq,'(f4.1)')slen
- notexq = sq//'slx{'//tempq//'}'//notexq(1:lnote)
- lnote = lnote+10
- end if
-c
-c Next steps are a historical kluge to distinguish dotted unbeamed 2-note trem
-c (needs \qup) from normal xtup on dotted note (eg e44dx2 f, wants no dot)
-c
- if (btest(irest(ivx,ip-1),2)) then
- if (lnote .eq. 0) then
-c notexq = sq//'q'//ulq(ivx,ibmcnt(ivx))
- notexq = sq//'q'//ulq(ivx,ibmcnt(ivx))//'p'
- * //noteq(1:lnoten)
- else
- notexq = notexq(1:lnote)//sq//'q'
-c * //ulq(ivx,ibmcnt(ivx))//noteq(1:lnoten)
- * //ulq(ivx,ibmcnt(ivx))//'p'//noteq(1:lnoten)
- end if
-c lnote = lnote+3+lnoten
- lnote = lnote+4+lnoten
- else
- if (lnote .eq. 0) then
- notexq = sq//'q'//ulq(ivx,ibmcnt(ivx))
- * //noteq(1:lnoten)
- else
- notexq = notexq(1:lnote)//sq//'q'
- * //ulq(ivx,ibmcnt(ivx))//noteq(1:lnoten)
- end if
- lnote = lnote+3+lnoten
- end if
- if (btest(irest(ivx,ip-1),2) .and.
- * nodur(ivx,ip).eq.24 .or. nodur(ivx,ip).eq.12) then
- notexq = notexq(1:lnote)//sq//'slz'
- lnote=lnote+4
- end if
- end if
- else if (btest(irest(ivx,ip-1),2)) then
-c
-c 2nd note of unbeamed quarter or 8th trem; make quarter note
-c Get stemlength change
-c
- lnote = 46
- nindent = igetbits(irest(ivx,ip-1),2,5)
- if (ulq(ivx,ibmcnt(ivx)) .eq. 'u') then
- slen = (4.5+nindent+nolev1(ivx)-nole
- * +1.3*(eskz(ivx,ip)-eskz(ivx,ip-1)-.7)
- * *islope(ivx)/slfac)*.6667
- else
- slen = (4.5+nindent-nolev1(ivx)+nole
- * -1.3*(eskz(ivx,ip)-eskz(ivx,ip-1)-.7)
- * *islope(ivx)/slfac)*.6667
- end if
- write(tempq,'(f4.1)')slen
- notexq = notexq(1:46)//sq//'slx{'//tempq//'}'
- lnote = lnote+10
-c if (lnote .eq. 0) then
-c notexq = sq//'h'//ulq(ivx,ibmcnt(ivx))//noteq
-c else
-c notexq = notexq(1:46)//
-c * sq//'h'//ulq(ivx,ibmcnt(ivx))//noteq
-c end if
-c
-c
-c Check for dotted unbeamed tremolo
-c
- if (abs(nodur(ivx,ip)/12.-nodur(ivx,ip)/12).lt..001) then
-c
-c Need a dot
-c
- if (lnoten .eq. 1) then
- noteq = ' '//noteq(1:1)
- lnoten = 2
- end if
- if (lnote .eq. 0) then
- notexq = sq//'pt'//noteq(1:lnoten)
- else
- notexq = notexq(1:lnote)//sq//'pt'//noteq(1:lnoten)
- end if
- lnote = lnote+3+lnoten
- call notefq(noteq,lnoten,nole,ncmid(iv,ip))
- if (lnoten .eq. 1) then
- noteq = ' '//noteq(1:1)
- lnoten = 2
- end if
- end if
- notexq = notexq(1:lnote)//
- * sq//'q'//ulq(ivx,ibmcnt(ivx))//noteq(1:lnoten)
-c * //sq//'stemcut'
- * //sq//'slz'
-c lnote=lnote+3+lnoten+8
- lnote=lnote+3+lnoten+4
- else if (multip .eq. -1) then
- notexq = sq//'h'//ulq(ivx,ibmcnt(ivx))//noteq(1:lnoten)
- lnote = lnoten+3
- else if (multip .eq. 1) then
- notexq = sq//'c'//ulq(ivx,ibmcnt(ivx))//noteq(1:lnoten)
- lnote = lnoten+3
- else if (multip .eq. 2) then
- notexq = sq//'cc'//ulq(ivx,ibmcnt(ivx))//noteq(1:lnoten)
- lnote = lnoten+4
- else if (multip .eq. 3) then
- notexq = sq//'ccc'//ulq(ivx,ibmcnt(ivx))//noteq(1:lnoten)
- lnote = lnoten+5
- else if (multip .eq. -2) then
- notexq = sq//'wh'//noteq(1:lnoten)
- lnote = lnoten+3
- else if (multip .eq. -3) then
- notexq = sq//'breve'//noteq(1:lnoten)
- lnote = lnoten+6
- else
- print*
- print*,'(Error in beamend, send source to Dr. Don)'
- call stop1()
- end if
- else
-c
-c Prior note is regular-dotted so this one is halved
-c
- lnote = lnoten+3
- if (multip .eq. 0) then
- notexq = sq//'c'//ulq(ivx,ibmcnt(ivx))//noteq
- else if (multip .eq. -1) then
- notexq = sq//'q'//ulq(ivx,ibmcnt(ivx))//noteq
- else if (multip .eq. -2) then
- notexq = sq//'h'//ulq(ivx,ibmcnt(ivx))//noteq
- else if (multip .eq. 1) then
- notexq = sq//'cc'//ulq(ivx,ibmcnt(ivx))//noteq
- lnote = lnoten+4
- else if (multip .eq. 2) then
- notexq = sq//'ccc'//ulq(ivx,ibmcnt(ivx))//noteq
- lnote = lnoten+5
- end if
- end if
- end if
- return
- end if
-c
-c End of block for unbeamed. Problem if beamed but ends w/ rest. Try just
-c skipping the call in that case.
-c
- if (.not.btest(irest(ivx,ip),0)) then
- call notefq(noteq,lnoten,nole,ncmid(iv,ip))
- end if
-c call notefq(noteq,lnoten,nole,ncmid(iv,ip))
-c lnote = 0
-c
-c New way, with flipend, which was computed in beamstrt.
-c
- if (flipend(ivx) .and. btest(ipl(ivx,ip),30)) then
- ulq(ivx,ibmcnt(ivx)) = chax(225-ichar(ulq(ivx,ibmcnt(ivx))))
- flipend(ivx) = .false.
- end if
- if (ip .gt. ibm1(ivx,ibmcnt(ivx))) then
-c
-c This is not a one-noter from beam-jump. Check if multiplicity has increased
-c
- if (btest(irest(ivx,ip-1),0)) then
-c
-c Prior note is a rest, check one before that
-c
- mp = iand(mult(ivx,ip-2),15)-8
- else
- mp = iand(mult(ivx,ip-1),15)-8
- end if
- if (multip .gt. mp) then
-c
-c Assume 1-3, 2-3, or 1-2
-c
- do 2 imp = multip , mp+1 , -1
- call ntrbbb(imp,'t',ulq(ivx,ibmcnt(ivx)),ivx,notexq,lnote)
-2 continue
- else if (btest(nacc(ivx,ip-1),27)) then
-c
-c 2nd member of dotted xtup
-c
- call ntrbbb(multip+1,'t',
- * ulq(ivx,ibmcnt(ivx)),ivx,notexq,lnote)
- end if
- end if
-c
-c Beam termination and direction analysis
-c
- if (btest(irest(ivx,ip),23) .and. .not.isbjmp) then
-c
-c This is the end of the first segment in a jump-beam. ivbj1=ivx will be number
-c of the jump-beam. ivbj2 will be tested along with isbjmp to see if in the
-c voice of the 2nd part of jumped beam. (May need special treatment for
-c multi-segment jump-beams
-c
- isbjmp = .true.
- ivbj1 = ivx
- multbj1 = iand(15,mult(ivx,ip)-8)
- ivbj2 = 0
- end if
- if (.not.btest(irest(ivx,ip),23)) then
-c
-c This is either a normal beamend or end of a sequence of jump-beam segments,
-c (170409) or rest at end of xtup
-c so some sort of termination is required
-c
- ulqq = ulq(ivx,ibmcnt(ivx))
- if (.not.isbjmp .or. ivx.ne.ivbj2) then
- if (btest(irest(ivx,ip),0)) then
-c
-c Xtup ends with rest
-c
- if (multip .eq. 1) then
- notexq = sq//'ds'
- lnote = 3
- else if (multip .eq. 2) then
- notexq = sq//'qs'
- lnote = 3
- else if (multip .eq. 3) then
- notexq = sq//'hs'
- lnote = 3
- end if
-c
-c 170801 Borrowed from main rest entry way down below to get level adjustment:
-c BUT nole is like 102, not 2, so subtracted 100 for nole. Why different???
-c "... Now raise if necc."
-c
- if (btest(islur(ivx,ip),29)) then
-c
-c Blank rest
-c
- notexq = sq//'sk'
- lnote = 3
- else if (nole .ne. 0) then
-c
-c Bandaid. Odd case with rests in xtups + 2 voices where came thru here with
-c nolev=-4 but expected 100+/-. Try to fix.
-c
- if (abs(nole).lt.30) nole = 100+nole
-c
- if (abs(nole-100) .lt. 10) then
- noteq = chax(48+abs(nole-100))
- lnoten = 1
- else
- write(noteq(1:2),'(i2)')abs(nole-100)
- lnoten = 2
- end if
-c ??? if (nole .gt. 0) then
- if (nole .gt. 100) then
- notexq = sq//'raise'//noteq(1:lnoten)//sq//'internote'
- * //notexq(1:lnote)
- else
- notexq = sq//'lower'//noteq(1:lnoten)//sq//'internote'
- * //notexq(1:lnote)
- end if
- lnote = 16+lnoten+lnote
- end if
- return
- else
-c
-c Normal termination
-c
- call ntrbbb(1,'t',ulqq,mod(ivx,24),notexq,lnote)
- end if
- else
-c
-c Terminate a sequence of jump-beam segments.
-c
- ulqq = chax(225-ichar(ulqq))
- call ntrbbb(1,'t',ulqq,mod(ivbj1,24),notexq,lnote)
- 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, checking for open-head beamed tremolo
-c
- if (btest(irest(ivx,ip-1),2)) then
-c
-c Check for dotted tremolo
-c
- if (abs(nodur(ivx,ip)/12.-nodur(ivx,ip)/12).lt..001) then
-c
-c Need a dot
-c
- if (nodur(ivx,ip).eq.24 .or. nodur(ivx,ip).eq.12) then
-c
-c Solid notehead
-c
- notexq = notexq(1:lnote)//sq//'qbp'
- else
-c
-c Assuming open notehead and nodur = 48
-c
- notexq = notexq(1:lnote)//sq//'hbp'
- end if
- lnote = lnote+4
- else
- if (nodur(ivx,ip).eq.32 .or. nodur(ivx,ip).eq.48) then
- if (lnote .gt. 0) then
- notexq = notexq(1:lnote)//sq//'hb'
- else
- notexq = sq//'hb'
- end if
- else
- if (lnote .gt. 0) then
- notexq = notexq(1:lnote)//sq//'qb'
- else
- notexq = sq//'qb'
- end if
- end if
- lnote = lnote+3
- end if
- else
-c
-c No tremolo
-c
- if (lnote .gt. 0) then
- notexq = notexq(1:lnote)//sq//'qb'
- else
- notexq = sq//'qb'
- end if
- lnote = lnote+3
- end if
- isdotm = .false.
- if (.not.vxtup(ivx)) then
- if (2**log2(nodur(ivx,ip)) .ne. nodur(ivx,ip)) then
- if (.not.btest(iornq(ivx,ip),13)) then
- notexq = notexq(1:lnote)//'p'
- else
- notexq = notexq(1:lnote)//'m'
- isdotm = .true.
- end if
- lnote = lnote+1
- end if
- end if
-c
-c 5/25/08 Allow >12
-c 5/9/10 Up to 24; replace 24 with 0
-c
- if (.not.(isbjmp.and.ivx.eq.ivbj2)) then
- call istring(mod(ivx,24),tempq,len)
- else
- call istring(mod(ivbj1,24),tempq,len)
- end if
- if (isbjmp .and. ivx.eq.ivbj2
- * .and..not.btest(irest(ivx,ip),23)) isbjmp=.false.
- notexq = notexq(1:lnote)//tempq(1:len)
- lnote = lnote+len
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
- if (isdotm) then
- if (lnoten .eq. 1) then
- notexq = notexq(1:lnote)//'{'//noteq(1:1)//'}'
- lnote = lnote+3
- else
- notexq = notexq(1:lnote)//noteq(lnoten-1:lnoten-1)
- lnote = lnote+1
- end if
- end if
- return
- end
- subroutine beamid(notexq,lnote)
- parameter (nm=24)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- character*1 ulq,sepsymq,sq,ulqq,chax
- logical beamon,firstgulp,figbass,figchk,flipend,btest,
- * isfig,vxtup,isdotm,isbjmp,bar1syst,isdotted,isbj2,drawbm
- character*79 notexq
- common /combjmp/ ivbj1,ivbj2,isbjmp,isbj2,multbj1
- common /comoct/ noctup
- common /strtmid/ ihnum3,flipend(nm),ixrest(nm)
- common /comxtup/ ixtup,vxtup(nm),ntupv(nm,9),nolev1(nm),
- * mtupv(nm,9),nxtinbm(nm),
- * islope(nm),xelsk(24),eloff(nm,9),
- * nssb(nm),issb(nm),lev1ssb(nm,20)
- common /comdraw/ drawbm(nm)
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /comask/ bar1syst,fixednew,scaldold,
- * wheadpt,fbar,poenom
- character*8 noteq
- character*4 tempq
- lnote = 0
- ip = ipo(jn)
- nole = nolev(ivx,ip)
-c
-c Check for special situations with 2nds (see precrd)
-c
- if (btest(nacc(ivx,ip),30)) then
- nole = nole - 1
- else if (btest(nacc(ivx,ip),31)) then
- nole = nole + 1
- end if
- if (.not.btest(irest(ivx,ip),0)) then
- multip = iand(mult(ivx,ip),15)-8
-c if (btest(islur(ivx,ip-1),3)) multip = multip+1
-c
-c (Above test OK since must have ip>1). Double dotted note preceding
-c
-c Move the following, because can't ask for note until after checking for
-c embedded xtup with number, due to ordering/octave feature.
-c
-c call notefq(noteq,lnoten,nolev(ivx,ip),ncmid(iv,ip))
- end if
- if (btest(irest(ivx,ip),28)) vxtup(ivx) = .true.
- if (vxtup(ivx)) then
-c
-c In an xtup
-c
- if (btest(irest(ivx,ip),0)) then
-c
-c Intermediate rest in xtup, put in the rest. Reset nodur so notex works OK
-c
- nodur(ivx,ip) = 2**(4-(iand(mult(ivx,ip),15)-8))
- call notex(notexq,lnote)
-c
-c Re-zero so next note does not get confused
-c
- nodur(ivx,ip) = 0
- return
- end if
- if (.not.drawbm(ivx)) then
-c
-c Xtuplet with no beam, just put in the right kind of note
-c
- if (btest(islur(ivx,ip),30)) then
-c
-c Forced stem direction
-c
- ndsav = nodur(ivx,ip)
- nodur(ivx,ip) = 2**(4-multip)
- if (btest(nacc(ivx,ip),19) .or.
- * btest(nacc(ivx,ip),27)) then
- nodur(ivx,ip)=3*nodur(ivx,ip)/2
- else if (btest(nacc(ivx,ip-1),27)) then
- nodur(ivx,ip)=nodur(ivx,ip)/2
- end if
- call notex(notexq,lnote)
- nodur(ivx,ip) = ndsav
- else
-c
-c Use ulq for stem direction
-c
- call notefq(noteq,lnoten,nole,ncmid(iv,ip))
- if (lnoten .eq. 1) call addblank(noteq,lnoten)
- lnote = 3
- if (.not.btest(nacc(ivx,ip-1),27)) then
-c
-c Prior note of xtup is not regular-dotted
-c
- if (multip .eq. 0) then
- notexq = sq//'q'//ulq(ivx,ibmcnt(ivx))
- else if (multip .eq. -1) then
- notexq = sq//'h'//ulq(ivx,ibmcnt(ivx))
- else if (multip .eq. 1) then
- notexq = sq//'c'//ulq(ivx,ibmcnt(ivx))
- else if (multip .eq. 2) then
- notexq = sq//'cc'//ulq(ivx,ibmcnt(ivx))
- lnote = 4
- else if (multip .eq. 3) then
- notexq = sq//'ccc'//ulq(ivx,ibmcnt(ivx))
- lnote = 5
- else if (multip .eq. -2) then
- notexq = sq//'wh'
- end if
- if (btest(nacc(ivx,ip),27)) then
-c
-c This xtup note is regular dotted non-beamed xtup
-c
-c notexq = notexq(1:3)//'p'
-c lnote = 4
- notexq = notexq(1:lnote)//'p'
- lnote = lnote+1
- end if
- else
-c
-c Prior note of xtup is regular-dotted so this one is halved
-c
- if (multip .eq. 2) then
- notexq = sq//'ccc'//ulq(ivx,ibmcnt(ivx))
- lnote = 5
- else if (multip .eq. 1) then
- notexq = sq//'cc'//ulq(ivx,ibmcnt(ivx))
- lnote = 4
- else if (multip .eq. 0) then
- notexq = sq//'c'//ulq(ivx,ibmcnt(ivx))
- else if (multip .eq. -1) then
- notexq = sq//'q'//ulq(ivx,ibmcnt(ivx))
- else if (multip .eq. -2) then
- notexq = sq//'h'//ulq(ivx,ibmcnt(ivx))
- end if
- end if
- notexq = notexq(1:lnote)//noteq
- lnote = lnote+lnoten
- end if
- return
- else if (nodur(ivx,ip).eq.0) then
-c
-c In the beamed xtup but not the last note
-c
- if (nodur(ivx,ip-1).gt.0) then
-c
-c Embedded Xtup, mult>0, starts here. Put in number if needed
-c
- nxtinbm(ivx) = nxtinbm(ivx)+1
- iud = 1
- if (ulq(ivx,ibmcnt(ivx)) .eq. 'u') iud = -1
-c
-c Get ip#, notelevel of middle note (or gap) in xtup
-c
- ipmid = ip+ntupv(ivx,nxtinbm(ivx))/2
- xnlmid = levrn(nolev(ivx,ipmid),irest(ivx,ipmid),iud,
- * ncmid(iv,ipmid),iand(15,mult(ivx,ipmid))-8)
- if (mod(ntupv(ivx,nxtinbm(ivx)),2).eq.0) xnlmid = (xnlmid+
- * levrn(nolev(ivx,ipmid-1),irest(ivx,ipmid-1),iud,
- * ncmid(iv,ipmid-1),iand(15,mult(ivx,ipmid-1))-8))/2
- iflop = 0
- if (abs(xnlmid-ncmid(iv,ip)).lt.3.) iflop = -iud
- iup = iud+2*iflop
- if (btest(irest(ivx,ip),14)) then
- iup = -iup
- iflop = 0
- if (iud*iup .lt. 0) iflop = iup
- end if
-c
-c Place number if needed
-c
- if (.not.btest(islur(ivx,ip),31)) then
- mprint = igetbits(nacc(ivx,ip),5,22)
- if (mprint.eq.0) mprint=mtupv(ivx,nxtinbm(ivx))
- 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),
- * mult(ivx,ip),.false.)
- end if
- call notefq(noteq,lnoten,nole,ncmid(iv,ip))
- else
-c
-c Intermediate note of xtup
-c
- call notefq(noteq,lnoten,nole,ncmid(iv,ip))
- end if
- else
-c
-c Last note of xtup (but not last note of beam!)
-c
- call notefq(noteq,lnoten,nole,ncmid(iv,ip))
- end if
- else if (btest(irest(ivx,ip),0)) then
- call notex(notexq,lnote)
- return
- else
- call notefq(noteq,lnoten,nole,ncmid(iv,ip))
- end if
-c
-c Check for string of rests up to and including last note in xtup.
-c
-c Replace next 2 lines to keep from doing this block
-c when in second part of staff-jumping chordal xtup. This fix could
-c break some unaccounted non-chordal staff-jum xtup situations.
-c if (vxtup(ivx) .and. btest(irest(ivx,ip+1),0) .and.
-c * .not.btest(irest(ivx,ip),0)) then
- if (vxtup(ivx) .and. btest(irest(ivx,ip+1),0) .and.
- * .not.btest(irest(ivx,ip),0) .and.
- * .not.(isbjmp.and.ivx.eq.ivbj2)) then
-c
-c This note is not a rest but next is a rest. Do rests continue to
-c end of xtup, where nodur>0
-c
- do 3 ipnow = ip+1 , ip+24
- if (nodur(ivx,ipnow).gt.0) go to 4 ! This is last of xtup
- if (.not.btest(irest(ivx,ipnow+1),0)) go to 5 ! Next is not rest
-c
-c If I don't go to 5, know next note IS a rest!
-c
-3 continue
-4 continue
- call ntrbbb(1,'t',ulq(ivx,ibmcnt(ivx)),ivx,notexq,lnote)
- notexq = notexq(1:lnote)//sq//'qb'
- lnote = lnote+3
- call istring(ivx,tempq,len)
- notexq = notexq(1:lnote)//tempq(1:len)
- lnote = lnote+len
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
- return
-5 continue
-c
-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
- else 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
- 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
- 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
-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',
- * ulq(ivx,ibmcnt(ivx)),ivx,notexq,lnote)
- end if
- end if
-c
-c Now put in the note
-c
- if (lnote .gt. 0) then
- notexq = notexq(1:lnote)//sq//'qb'
- else
- notexq = sq//'qb'
- end if
- lnote = lnote+3
- isdotm = .false.
- if (isdotted(nodur,ivx,ip)) then
-c
-c rule out ')'
-c
- if (.not.btest(iornq(ivx,ip),13)) then
- if (.not.btest(islur(ivx,ip),3)) then
- notexq = notexq(1:lnote)//'p'
- else
-c
-c Double dot
-c
- notexq = notexq(1:lnote)//'pp'
- lnote = lnote+1
- end if
- else
- notexq = notexq(1:lnote)//'m'
- isdotm = .true.
- end if
- lnote = lnote+1
- else if (btest(nacc(ivx,ip),19)
- * .or. btest(nacc(ivx,ip),27)) then
-c
-c Special dotted notation for 2:1 xtup, or normal dot in xtup
-c
- notexq = notexq(1:lnote)//'p'
- lnote = lnote+1
- end if
-c
-c 5/25/08 Allow >12
-c
- if (.not.(isbjmp.and.ivx.eq.ivbj2)) then
-c call istring(mod(ivx,12),tempq,len)
- call istring(mod(ivx,24),tempq,len)
- else
-c call istring(mod(ivbj1,12),tempq,len)
- call istring(mod(ivbj1,24),tempq,len)
- end if
- notexq = notexq(1:lnote)//tempq(1:len)
- lnote = lnote+len
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
- if (isdotm) then
- if (lnoten .eq. 2) then
- notexq = notexq(1:lnote)//'{'//noteq(2:2)//'}'
- lnote = lnote+3
- else
- notexq = notexq(1:lnote)//noteq(lnoten-1:lnoten-1)
- lnote = lnote+1
- end if
- end if
- return
- end
- subroutine beamn1(notexq,lnote)
- parameter (nm=24)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,btest,
- * isfig,vxtup,isdotm,isbjmp,isbj2,drawbm
- logical gotnote
- common /comoct/ noctup
- common /combjmp/ ivbj1,ivbj2,isbjmp,isbj2,multbj1
- common /comxtup/ ixtup,vxtup(nm),ntupv(nm,9),nolev1(nm),
- * mtupv(nm,9),nxtinbm(nm),
- * islope(nm),xelsk(24),eloff(nm,9),
- * nssb(nm),issb(nm),lev1ssb(nm,20)
- common /comdraw/ drawbm(nm)
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- character*8 noteq,tempq,numq
- character*79 notexq
- gotnote = .false.
- lnoten = 0
- ip1 = ipo(jn)
- multip = iand(15,mult(ivx,ip1))-8
- if (.not.drawbm(ivx) .and. btest(irest(ivx,ip1),0)) then
- lnote = 0
-c
-c The rest was already written in beamstrt, so just get out of here
-c
- return
- end if
- nole = nolev(ivx,ipo(jn))
-c
-c Check for special situations with 2nds (see precrd)
-c
- if (btest(nacc(ivx,ipo(jn)),30)) then
- nole = nole - 1
- else if (btest(nacc(ivx,ipo(jn)),31)) then
- nole = nole + 1
- end if
- if (vxtup(ivx) .and. .not.drawbm(ivx)) then
-c
-c Xtuplet with no beam, just put in the right kind of note
-c
- if (btest(islur(ivx,ip1),30)) then
-c
-c Forced stem direction
-c
- ndsav = nodur(ivx,ip1)
- nodur(ivx,ip1) = 2**(4-multip)
- if (btest(nacc(ivx,ip1),19) .or.
- * btest(nacc(ivx,ip1),27)) nodur(ivx,ip1)=3*nodur(ivx,ip1)/2
- call notex(notexq,lnote)
- nodur(ivx,ip1) = ndsav
- else
- call notefq(noteq,lnoten,nole,ncmid(iv,ip1))
- gotnote = .true.
- if (lnoten .eq. 1) call addblank(noteq,lnoten)
- lnote = 3
- if (multip .le. 0) then
- if ((btest(irest(ivx,ip1),2) .and.
- * nodur(ivx,ip1+1).ge.32)
- * .or. multip .eq. -1) then
-c
-c 1st note of unbeamed half-note trem; make open
-c
- notexq = sq//'h'//ulq(ivx,ibmcnt(ivx))
- else if (multip .eq. -2) then
- notexq = sq//'wh'
- else
- notexq = sq//'q'//ulq(ivx,ibmcnt(ivx))
- end if
-c
-c Check for dot
-c
- if (btest(irest(ivx,ip1),2) .and.
- * abs(nodur(ivx,ip1+1)/12.-nodur(ivx,ip1+1)/12).lt..001) then
-c
-c Need a dot. already called addblank for noteq
-c
- if (lnote .eq. 0) then
- notexq = sq//'pt'//noteq(1:lnoten)
- lnote = 3+lnoten
- else
- notexq = notexq(1:lnote)//'p'
- lnote = lnote+1
- end if
- end if
-c
-c Insert the stemlength calcs here for dotted, unbeamed.
-c Later may combine with below to avoid repeat.
-c
- if (btest(irest(ivx,ip1),2)) then
- nindent = igetbits(irest(ivx,ip1),2,5)
- if (ulq(ivx,ibmcnt(ivx)) .eq. 'u') then
- slen = (4.5+nindent+nolev1(ivx)-nole
- * -.4*islope(ivx)/slfac)*.6667
- else
- slen = (4.5+nindent-nolev1(ivx)+nole
- * +.4*islope(ivx)/slfac)*.6667
- end if
- write(tempq,'(f4.1)')slen
- notexq = sq//'slx{'//tempq(1:4)//'}'//
- * notexq(1:lnote)
- lnote = lnote+10
- end if
- else if (btest(irest(ivx,ip1),2)) then
-c
-c 1st note of unbeamed quarter or 8th trem, make a quarter note
-c
-c Stem length calcs here. The .2 factor is empirical, but
-c slfac accounts for musicsize.
-c
- nindent = igetbits(irest(ivx,ip1),2,5)
- if (ulq(ivx,ibmcnt(ivx)) .eq. 'u') then
- slen = (4.5+nindent+nolev1(ivx)-nole
- * -.4*islope(ivx)/slfac)*.6667
- else
- slen = (4.5+nindent-nolev1(ivx)+nole
- * +.4*islope(ivx)/slfac)*.6667
- end if
- write(tempq,'(f4.1)')slen
- notexq = sq//'slx{'//tempq(1:4)//'}'//
- * sq//'q'//ulq(ivx,ibmcnt(ivx))
- lnote = 13
-c
-c Check for dotted 2-note trem; prepend dot to notexq if needed
-c
- if (nodur(ivx,ip1+1).eq.12 .or.
- * nodur(ivx,ip1+1).eq.24) then
- if (lnoten .eq. 1) then
- noteq = ' '//noteq(1:1)
- lnoten = 2
- end if
- notexq = sq//'pt'//noteq(1:lnoten)//notexq(1:lnote)
- lnote = lnote+3+lnoten
- call notefq(noteq,lnoten,nole,ncmid(iv,ip1))
- gotnote = .true.
- if (lnoten .eq. 1) then
- noteq = ' '//noteq(1:1)
- lnoten = 2
- end if
- end if
- else if (multip .eq. -1) then
- notexq = sq//'h'//ulq(ivx,ibmcnt(ivx))
- else if (multip .eq. 1) then
- notexq = sq//'c'//ulq(ivx,ibmcnt(ivx))
- else if (multip .eq. 2) then
- notexq = sq//'cc'//ulq(ivx,ibmcnt(ivx))
- lnote = 4
- else if (multip .eq. 3) then
- notexq = sq//'ccc'//ulq(ivx,ibmcnt(ivx))
- lnote = 5
- else if (multip .eq. -2) then
- notexq = sq//'wh'
- else if (multip .eq. -3) then
- notexq = sq//'breve'
- lnote = 6
- else
- print*
- print*,'(Error in beamn1, send source to Dr. Don)'
- call stop1()
- end if
- if (btest(nacc(ivx,ip1),19) .or. btest(nacc(ivx,ip1),27)) then
-c notexq = notexq(1:3)//'p'
-c lnote = 4
- notexq = notexq(1:lnote)//'p'
- lnote = lnote+1
- end if
- notexq = notexq(1:lnote)//noteq
- lnote = lnote+lnoten
- end if
- return
- end if
-c
-c Check if mult. decreases from 1st note to 2nd
-c
- if (ibm2(ivx,ibmcnt(ivx)).gt.ip1
- * .or. btest(islur(ivx,ip1),20)) then
-c
-c More than one note or single-note before a multiplicity-down-up "]["
-c
- if (btest(islur(ivx,ip1),20)) then
- multr = 1
- else if (.not.btest(irest(ivx,ip1+1),0)) then
- multr = iand(15,mult(ivx,ip1+1))-8
- else
- multr = iand(15,mult(ivx,ip1+2))-8
- end if
- lnote = 0
-c
-c Check if staff-jumper
-c
- if (isbjmp .and. ivbj2.gt.0) then
- ivxp = ivbj1
- else
- ivxp = ivx
- end if
- if (multr .lt. multip) then
- do 1 im = multip , multr+1 , -1
-c
-c Right-shifted 'termination'
-c
- if (isbjmp .and. ivbj2.gt.0) then
-c
-c Jump beam
-c
- call ntrbbb(im,'t',ulq(ivxp,ibmcnt(ivx)),
- * ivxp,notexq,lnote)
- else
-c
-c Same staff
-c
- call ntrbbb(im,'r',ulq(ivx,ibmcnt(ivx)),ivxp,notexq,lnote)
- end if
-1 continue
- end if
- end if
-c
-c Check for beamed, dotted 2-note tremolo
-c
- if (btest(irest(ivx,ip1),2) .and.
- * abs(nodur(ivx,ip1+1)/12.-nodur(ivx,ip1+1)/12).lt..001) then
- call notefq(noteq,lnoten,nole,ncmid(iv,ip))
- gotnote = .true.
- if (lnoten .eq. 1) then
- noteq = ' '//noteq(1:1)
- lnoten = 2
- end if
- end if
-c
-c Put in the note, but check first for open-head beamed tremolo.
-c
- if (btest(irest(ivx,ip1),2) .and. nodur(ivx,ip1+1).ge.32) then
-c
-c 2-note open head tremolo
-c
- if (lnote .gt. 0) then
- notexq = notexq(1:lnote)//sq//'hb'
- else
- notexq = sq//'hb'
- end if
- else
- if (lnote .gt. 0) then
- notexq = notexq(1:lnote)//sq//'qb'
- else
- notexq = sq//'qb'
- end if
- end if
- lnote = lnote+3
- if (btest(irest(ivx,ip1),2) .and.
- * (nodur(ivx,ip1+1).eq.24.or.nodur(ivx,ip1+1).eq.12
- * .or.nodur(ivx,ip1+1).eq.48)) then
-c
-c 2-note trem on dotted note
-c
- notexq = notexq(1:lnote)//'p'
- lnote = lnote+1
- end if
-c
-c Check for dot
-c
- isdotm = .false.
- if (.not.vxtup(ivx)) then
- nd = nodur(ivx,ipo(jn))
- if (nd.ne.0) then
- if (2**log2(nd).ne.nd) then
- if (.not.btest(iornq(ivx,ip1),13)) then
- if (.not.btest(islur(ivx,ip1),3)) then
- notexq = notexq(1:lnote)//'p'
- else
-c
-c Double dot
-c
- notexq = notexq(1:lnote)//'pp'
- lnote = lnote+1
- end if
- else
- notexq = notexq(1:lnote)//'m'
- isdotm = .true.
- end if
- lnote = lnote+1
- end if
- end if
- else if (btest(nacc(ivx,ip1),19) .or.
- * btest(nacc(ivx,ip1),27)) then
-c
-c In an xtup with special 2:1 notation with a dot on 1st note, or normal dot
-c
- notexq = notexq(1:lnote)//'p'
- lnote = lnote+1
- end if
-c
-c Do the number; 0 if 12
-c 5/25/08 allow >12
-c
- if (.not.btest(irest(ivx,ip1),24)) then
- call istring(mod(ivx,24),numq,len)
- else
-c
-c 1st note of staff-jumping beam
-c
- call istring(mod(ivbj1,24),numq,len)
- end if
- notexq = notexq(1:lnote)//numq(1:len)
- lnote = lnote+len
- if (.not.gotnote) then
- call notefq(noteq,lnoten,nole,ncmid(iv,ip1))
- end if
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
- if (isdotm) then
- if (lnoten .eq. 1) then
- notexq = notexq(1:lnote)//'{'//noteq(1:1)//'}'
- lnote = lnote+3
- else
- notexq = notexq(1:lnote)//noteq(lnoten-1:lnoten-1)
- lnote = lnote+1
- end if
- end if
- return
- end
- subroutine beamstrt(notexq,lnote,nornb,ihornb,space,squez,ib)
- parameter (nm=24)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- character*1 ulq,sepsymq,sq
- character*40 restq
- character*79 inameq
- logical beamon,firstgulp,figbass,figchk,btest,
- * isfig,vxtup,bar1syst,addbrack,flipend,xto,drawbm
- common /comeskz2/ eskz2(nm,200)
- common /comoct/ noctup
- common /strtmid/ ihnum3,flipend(nm),ixrest(nm)
- common /comxtup/ ixtup,vxtup(nm),ntupv(nm,9),nolev1(nm),
- * mtupv(nm,9),nxtinbm(nm),
- * islope(nm),xelsk(24),eloff(nm,9),
- * nssb(nm),issb(nm),lev1ssb(nm,20)
- common /comdraw/ drawbm(nm)
- common /comas1/ naskb,task(40),wask(40),elask(40)
- common /comask/ bar1syst,fixednew,scaldold,
- * wheadpt,fbar,poenom
- common /comtop / itopfacteur,ibotfacteur,interfacteur,isig0,
- * isig,lastisig,fracindent,widthpt,height,hoffpt,voffpt,idsig,
- * lnam(nm),inameq(nm)
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
-c
-c The following is just to save the outputs from SetupB for the case of
-c xtups starting with a rest, where beamstrt is called twice.
-c
- common /comipb/ nnb,sumx,sumy,ipb(24),smed
- character*1 chax
- character*8 noteq
- character*79 notexq,tempq
- integer nornb(nm),ihornb(nm,24)
- real*4 space(80),squez(80)
- 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
- ip = ipo(jn)
- lnote = 0
- nvtrem = 0 ! Vertical adjustment beams for tremolo
-c
-c Compute slopes and note offsets from start of beam. Inside SetupB, for each
-c xtup in the beam, set eloff,mtupv (in comxtup) for printed number. Also
-c gets islope(ivx), transferred in common.
-c
- if (ixrest(ivx).eq.0 .and. .not.btest(nacc(ivx,ip),21))
- * call SetupB(xelsk,nnb,sumx,sumy,ipb,smed,ixrest(ivx))
-c
-c Will always come past here after entering beamstrt for 2-note tremolo, and
-c slope will have been computed, even for unbeamed. So start the indented
-c beams here. The indented tremolo bars will be added to the notexq output
-c string, under the tacet assumption that there is no horizontal shift
-c enacted by the action just before and after the call to beamstrt.
-c
- if (btest(irest(ivx,ipb1),2) .and.
- * igetbits(irest(ivx,ipb1),2,5) .gt. 0) then
- nindent = igetbits(irest(ivx,ipb1),2,5)
- tempq = sq//'roffset{.7}{'//sq//'ib'
- ltemp = 16
- if (nindent .eq. 2) then
- tempq = tempq(1:16)//'b'
- ltemp = 17
- else if (nindent .eq. 3) then
- tempq = tempq(1:16)//'bb'
- ltemp = 18
- end if
-c
-c Use beam # 0 for indented beams
-c
- tempq = tempq(1:ltemp)//ulq(ivx,ibc)//'0'
- ltemp = ltemp+2
-c
-c Get adjustment to nolev1 for main beam based on nindent
-c
- if (ulq(ivx,ibc) .eq. 'u') then
- nvtrem = nindent-1
- else
- nvtrem = 1-nindent
- end if
-c
-c Get numerical position of initiation for main beam. Will adjust height at
-c closing to account for nindent
-c
- numinit = nolev1(ivx)-ncmid(iv,ipb1)+4
-c
-c Get forced beam height tweak, apply here for indented beams
-c
- iadj = igetbits(ipl(ivx,ipb1),6,11)-30
- if (iadj .ne. -30) numinit = numinit+iadj
- if (numinit.ge.0 .and. numinit.le.9) then
- write(noteq,'(i1)') numinit
- lnoten = 1
- else
- write(noteq,'(a1,i2,a1)')'{',numinit,'}'
- lnoten = 4
- end if
- tempq = tempq(1:ltemp)//noteq(1:lnoten)
- ltemp = ltemp+lnoten
-c
-c Now do the slope.
-c 170408 Baseline is in islope(ivx). Apply slope tweak if present.
-c
- numinit = islope(ivx)
- iadj = igetbits(ipl(ivx,ipb1),6,17)-30
- if (iadj .ne. -30) numinit = numinit+iadj
- if (numinit.ge.0 .and. numinit.le.9) then
- write(noteq,'(i1,a1)') numinit,'}'
- lnoten = 2
- else
- write(noteq,'(a1,i2,a2)')'{',numinit,'}}'
- lnoten = 5
- end if
- tempq = tempq(1:ltemp)//noteq(1:lnoten)
- ltemp = ltemp+lnoten
- notexq = tempq
- lnote = ltemp
- end if
- if (btest(nacc(ivx,ip),21)) then
-c
-c This is start of later segment of single-slope beam group so use slope and
-c height from prior beam. Slope is already OK.
-c
- issb(ivx) = issb(ivx)+1
- nolev1(ivx) = lev1ssb(ivx,issb(ivx))
- end if
-c
-c Move this up to before indented beams for tremolo
-c lnote = 0
- drawbm(ivx) = .true.
- if (btest(irest(ivx,ipb1),28) .and. ixrest(ivx).ne.2) then
- vxtup(ivx) = .true.
- nxtinbm(ivx) = nxtinbm(ivx)+1
-c
-c irest(28)=>Xtup starts on this note. Set up for xtuplet.
-c Number goes on notehead side at middle note (or gap) of xtup, unless that
-c puts it in staff, then it flops to stem (or beam) side.
-c __ __
-c | | | O | |
-c O | | O
-c |___| O |__| |
-c
-c iud -1 -1 1 1 ...stem direction
-c iflop 0 1 -1 0 ...direction of flop
-c iup -1 1 -1 1 ...direction of number and bracket
-c
- iud = 1
- if (ulq(ivx,ibc) .eq. 'u') iud = -1
-c
-c Get ip#, note level of middle note (or gap) in xtup
-c
- ipmid = ipb1+ntupv(ivx,nxtinbm(ivx))/2
-c
-c 130129 If middle note is a rest, go to next note. Note last note cannot
-c be a rest
-c
-14 continue
- if (btest(irest(ivx,ipmid),0)) then
- ipmid = ipmid+1
- go to 14
- end if
- xnlmid = levrn(nolev(ivx,ipmid),irest(ivx,ipmid),iud,
- * ncmid(iv,ipmid),iand(15,mult(ivx,ipmid))-8)
- if (mod(ntupv(ivx,nxtinbm(ivx)),2) .eq. 0) xnlmid = (xnlmid+
- * levrn(nolev(ivx,ipmid-1),irest(ivx,ipmid-1),iud,
- * ncmid(iv,ipmid-1),iand(15,mult(ivx,ipmid-1))-8))/2
- iflop = 0
- if (abs(xnlmid-ncmid(iv,ipb1)).lt.3.) iflop = -iud
- iup = iud+2*iflop
- if (btest(irest(ivx,ipb1),14)) then
-c
-c Alter iud, iflop, iup to flip number/bracket. (Stare at above pic)
-c
- iup = -iup
- iflop = 0
- if (iud*iup .lt. 0) iflop = iup
- end if
-c
-c Determine if a beam is to be drawn.
-c Had problem w/ half-note 2-note xtups always F, so add a test
-c
- if (igetbits(irest(ivx,ipb1),2,3) .ne. 0) then
- drawbm(ivx) = .true.
- go to 6
- end if
- do 5 ipp = ibm1(ivx,ibc),ibm2(ivx,ibc)
- if (iand(15,mult(ivx,ipp))-8 .le. 0) then
- drawbm(ivx) = .false.
- go to 6
- end if
-5 continue
- drawbm(ivx) = .not.btest(islur(ivx,ibm1(ivx,ibc)),18)
-6 continue
-c
-c Are we using tuplet.tex?
-c
- usexnumt = cstuplet .and. .not.drawbm(ivx)
-c
-c Check for single note xtup 171217
-c
- if (btest(irest(ivx,ipb1),28) .and. nnb.eq.1) then
- drawbm(ivx) = .false.
- end if
-c
-c Place xtup number if needed
-c
- if (.not.btest(islur(ivx,ipb1),31) .or. multb.le.0) then
- mprint = igetbits(nacc(ivx,ip),5,22)
- if (mprint.eq.0) mprint=mtupv(ivx,nxtinbm(ivx))
-c Stab in the dark! Note: tried setting unbeam flag islur18 but no go.
- if (nnb .eq. 1) then
- xnlmid = nolev1(ivx)
- islope(ivx) = 0
-c
-c Move up, outside number check block, so all 1-note xtups ar unbeamed
-c drawbm(ivx) = .false.
-c
- end if
- 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),mult(ivx,ipb1),usexnumt)
- end if
- if (.not.drawbm(ivx)) then
-c
-c Xtuplet with no beam
-c
- if (.not.btest(islur(ivx,ipb1),31)) then
-c
-c Number printing has not been suppressed, so put in the bracket.
-c scale = stretch factor for bracket if there are asx's
-c xnsk = length of the bracket in \noteskips = (\elemskips)/(eon)
-c
- xnsk = (eskz2(ivx,ipb1+ntupv(ivx,nxtinbm(ivx))-1)
- * -eskz2(ivx,ipb1))/squez(ib)/feon(space(ib)/squez(ib))
- if (iup .eq. 1) then
- if (lnote .gt. 0) then
- notexq = notexq(1:lnote)//sq//'ovbkt'
- else
- notexq = sq//'ovbkt'
- end if
- else
- if (lnote .gt. 0) then
- notexq = notexq(1:lnote)//sq//'unbkt'
- else
-c
-c Introduced 12/5/98, req'd due to possible presence of in-line TeX
-c
- notexq = sq//'unbkt'
- end if
- end if
- lnote = lnote+6
- if (iline.eq.1) then
- smed = smed/(1.-fracindent)
- end if
- xslope = 1.8*smed*slfac
- islope(ivx) = nint(xslope)
- nolev1(ivx) = nlnum - nint(smed*eloff(ivx,1))
- if (islope(ivx) .eq. 0) nolev1(ivx) = nolev1(ivx)-1
- if (iup .eq. 1) nolev1(ivx) = nolev1(ivx)+4
- levbracket = nolev1(ivx)
- if (iup.eq.1 .and. cstuplet) levbracket = levbracket-1
- call notefq(noteq,lnoten,levbracket,ncmid(iv,ipb1))
- if (lnoten .eq. 1) call addblank(noteq,lnoten)
- notexq = notexq(1:lnote)//noteq(1:lnoten)//'{'
- lnote = lnote+lnoten+1
- if (xnsk .lt. 0.995) then
- write(notexq(lnote+1:lnote+4),'(i1,f3.2)')0,xnsk
- lnote = lnote+4
- else if (xnsk .lt. 9.995) then
- write(notexq(lnote+1:lnote+4),'(f4.2)')xnsk
- lnote = lnote+4
- else
- write(notexq(lnote+1:lnote+5),'(f5.2)')xnsk
- lnote = lnote+5
- end if
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- if (btest(mult(ivx,ipb1),4)) then
-c
-c Tweak slope of bracket
-c
- islope(ivx) = islope(ivx)+igetbits(mult(ivx,ipb1),5,5)-16
- end if
- if (islope(ivx).lt.0 .or. islope(ivx).ge.10) then
- notexq = notexq(1:lnote)//'{'
- lnote = lnote+1
- if (islope(ivx) .lt. -9) then
- write(notexq(lnote+1:lnote+3),'(i3)')islope(ivx)
- lnote = lnote+3
- else
- write(notexq(lnote+1:lnote+2),'(i2)')islope(ivx)
- lnote = lnote+2
- end if
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- else
- write(notexq(lnote+1:lnote+1),'(i1)')islope(ivx)
- lnote = lnote+1
- end if
-c
-c Done with bracket
-c
- end if
- if (ixrest(ivx) .eq. 1) then
-c
-c Put in the rest. Possible problem: Rest is a spacing char, but between
-c beamstrt and beamn1 some non-spacing chars. are inserted.
-c
-c 130126 Deal with vertical shifts of rest starting xtuplet
-c
- lrest = 3
- if (btest(islur(ivx,ip),29)) then
- restq = sq//'sk'
-c if (multb .eq. 0) then
- else if (multb .eq. 0) then
- restq = sq//'qp'
- else if (.not.drawbm(ivx).and.multb.eq.1) then
- restq = sq//'ds'
- else if (.not.drawbm(ivx).and.multb.eq.2) then
- restq = sq//'qs'
- else if (.not.drawbm(ivx).and.multb.eq.3) then
- restq = sq//'hs'
- else
- restq = sq//'hpause'
- lrest = 7
- end if
- if (btest(nacc(ivx,ipb1),18) .and.
- * btest(nacc(ivx,ipb1),19)) then
-c
-c VERY special case of rest at start of F-tuplet, needs dot
-c
- restq = sq//'pt4'//restq(1:lrest)
- lrest = lrest+4
- end if
-
- nole = mod(nolev(ivx,ip)+20,100)-20
-c if (nole .eq. 0) then
- if (nole.eq.0 .or. btest(islur(ivx,ip),29)) then
-c
-c Rest blank or is not raised
-c
- notexq = notexq(1:lnote)//restq
- lnote = lnote+lrest
- else
- if (abs(nole) .lt. 10) then
- tempq = chax(48+abs(nole))
- ltemp = 1
- else
- write(tempq(1:2),'(i2)')abs(nole)
- ltemp = 2
- end if
- if (nole .gt. 0) then
- tempq = sq//'raise'//tempq(1:ltemp)//sq//'internote'
- else
- tempq = sq//'lower'//tempq(1:ltemp)//sq//'internote'
- end if
- ltemp = 16+ltemp
- notexq = notexq(1:lnote)//tempq(1:ltemp)//restq(1:lrest)
- lnote = lnote+ltemp+lrest
- end if
-c
-c No need to come back through this subroutine (as would if rest starts bar
-c & multb>0), so do not advance ibm1. But must check in beamn1 and do nothing.
-c
- ixrest(ivx) = 0
- end if
- return
- end if
-c
-c End if block for non-beamed xtup start...note we returned
-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
- if (btest(islur(ivx,ip),29) .and. btest(ipl(ivx,ip),30)) then
- nbrests = nbrests+1
- writebrests = .false.
- else
- 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
-c
-c Re-zero just in case!
-c
- nodur(ivx,ipb1) = 0
- ibm1(ivx,ibc) = ibm1(ivx,ibc)+1
-c
-c See if next note is a non-rest
-c
- if (.not.btest(irest(ivx,ipb1+1),0)) then
- ixrest(ivx) = 2
- else
-c
-c Suppress reprinting xtup number next time through beamstrt
-c
- islur(ivx,ipb1+1) = ibset(islur(ivx,ipb1+1),31)
-c
-c Set new xtup start flag
-c
- irest(ivx,ipb1+1) = ibset(irest(ivx,ipb1+1),28)
- end if
- return
- end if
- end if
-c
-c Just ended if block for xtups
-c
- if (vxtup(ivx) .and. ipb1.eq.ibm2(ivx,ibc)) then
-c
-c Move actual note writing to beamend
-c
- ixrest(ivx) = 4
- return
- end if
- if (issb(ivx) .eq. 0) then
-c
-c 1st bmstrt in single-slope bm grp, Adjust start level(s) and slope if needed
-c
- iadj = igetbits(ipl(ivx,ipb1),6,11)-30
- if (iadj .ne. -30) then
- nolev1(ivx) = nolev1(ivx)+iadj
- do 2 isssb = 1 , nssb(ivx)
- lev1ssb(ivx,isssb) = lev1ssb(ivx,isssb)+iadj
-2 continue
- end if
- iadj = igetbits(ipl(ivx,ipb1),6,17)-30
- if (iadj .ne. -30) then
- islope(ivx) = islope(ivx)+iadj
- if (abs(islope(ivx)) .gt. 9) islope(ivx) = sign(9,islope(ivx))
- if (nssb(ivx) .gt. 0) then
-c
-c Cycle thru non-rest notes in SSBG, looking for bmstrts.
-c
- isssb = 0
- do 4 inb = 2, nnb
- if (btest(nacc(ivx,ipb(inb)),21)) then
-c
-c Beam segment start. New start level
- isssb = isssb+1
- lev1ssb(ivx,isssb) =
- * lev1ssb(ivx,isssb)+islope(ivx)*xelsk(inb)/slfac
- end if
-4 continue
- end if
- end if
- end if
- iadj = igetbits(islur(ivx,ipb1),2,27)
- addbrack = .false.
- if (btest(ipl(ivx,ipb1),30)) then
-c
-c Check for altered starting polarity. Only in forced beams. Nominal start
-c level is nolev1. So beam level is nolev1 +/- 6, to be compared w/ nolev(.,.).
-c
- if (ulq(ivx,ibc).eq.'u' .and.
- * nolev1(ivx)+6.lt.nolev(ivx,ipb1)) then
- if (lnote .eq. 0) then
- notexq = sq//'loff{'
- else
- notexq = notexq(1:lnote)//sq//'loff{'
- end if
- lnote = lnote+6
- addbrack = .true.
- else if (ulq(ivx,ibc).eq.'l' .and.
- * nolev1(ivx)-6.gt.nolev(ivx,ipb1)) then
- if (lnote .eq. 0) then
- notexq = sq//'roff{'
- else
- notexq = notexq(1:lnote)//sq//'roff{'
- end if
- lnote = lnote+6
- addbrack = .true.
- end if
-c
-c Check end level for possible flipping in forced beam. Have to do it
-c here since with multiple voices, xelsk will not be preserved.
-c
- if (ulq(ivx,ibmcnt(ivx)) .eq. 'u') then
- bmlev = nolev1(ivx)+6+islope(ivx)*xelsk(nnb)/slfac
- flipend(ivx) = bmlev.lt.nolev(ivx,ibm2(ivx,ibc))
- else if (ulq(ivx,ibmcnt(ivx)) .eq. 'l') then
- bmlev = nolev1(ivx)-6+islope(ivx)*xelsk(nnb)/slfac
- flipend(ivx) = bmlev.gt.nolev(ivx,ibm2(ivx,ibc))
- end if
- end if
- multbb = multb+iadj
-c
-c Tremolo starting?
-c
- if (btest(irest(ivx,ipb1),2)) multbb =
- * igetbits(irest(ivx,ipb1),2,3)
- call ntrbbb(multbb,'i',ulq(ivx,ibc),ivx,notexq,lnote)
-c
-c Put in name of start level and slope, after correcting nolev1 if xtup
-c started with a rest.
-c
- if (ixrest(ivx).eq.2) nolev1(ivx) =
- * nint(nolev1(ivx)+xelsk(1)*islope(ivx)/slfac)
-c
-c Add adjustment nvtrem to main beam to account for tremolo indented beams
-c
- call notefq(noteq,lnoten,nolev1(ivx)+nvtrem,ncmid(iv,ipb1))
- if (islope(ivx) .lt. 0) then
- notexq = notexq(1:lnote)//noteq(1:lnoten)//'{'
- lnote = lnote+4+lnoten
- write(notexq(lnote-2:lnote),'(i2,a1)')islope(ivx),'}'
- else
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+1+lnoten
- write(notexq(lnote:lnote),'(i1)')islope(ivx)
- end if
-c
-c Check for beam-thk fine-tuning
-c
- if (iadj .gt. 0) then
- do 1 imp = multb+iadj , multb+1 , -1
- call ntrbbb(imp,'t',ulq(ivx,ibc),ivx,notexq,lnote)
-1 continue
- end if
-c
-c If we shifted, must close with right bracket
-c
- if (addbrack) then
- notexq = notexq(1:lnote)//'}'
- 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
-c functionality up above, before exiting.
-c
- if (figbass .and. (ivx.eq.1 .or. ivx.eq.ivxfig2)) then
- if (ivx .eq. 1) then
- ivf = 1
- else
- ivf = ivxfig2
- end if
- zmult = 1.2*(multb-1)
- ymin = 100.
- do 3 inb = 1, nnb
- if (isfig(ivf,ipb(inb))) then
- if (ulq(iv,ibc) .eq. 'u') then
- ybot = nolev(iv,ipb(inb))
- else
- ybot = islope(ivx)/slfac*xelsk(inb)+nolev1(ivx)
- * -stemlen-zmult
- end if
- ymin = min(ymin,ybot)
- end if
-3 continue
- maxdrop = ncmid(iv,ipb1)-4-ymin+5.01
- ifigdr(ivf,iline) = max(ifigdr(ivf,iline),maxdrop)
- end if
-c
-c Compute ornament levels if needed
-c
- NomOrnLev = ncmid(iv,ipb1)+5
- iorn = 0
- do 8 inb = 1 , nnb
- ip = ipb(inb)
- if (.not.btest(iornq(ivx,ip),23)) go to 8
- if (btest(irest(ivx,ip),26) .and. ulq(ivx,ibc).eq.'l') then
-c
-c letter-dynamic or hairpin ending under down-beamed
-c
- iorn = iorn+1
- ybeam = nolev1(ivx)-stemlen+islope(ivx)*xelsk(inb)/slfac+1
- * -1.2*(multb-1)
- ihornb(ivx,iorn) = min(nint(ybeam-3.),NomOrnLev-10)
- else if (.not.btest(ipl(ivx,ip),10)) then
-c
-c Bits 0-13: (stmgx+Tupf._) , 14: Down fermata, was F
-c 15: Trill w/o "tr", was U , 16-18 Editorial s,f,n , 19-21 TBD
-c
-c Non-chord. There IS an ornament. Need ihornb only if upbeam, and if
-c ornament is 1,2,3,5,6,7,8,9,10,15-21 (up- but not domn ferm.)
-c
- if (ulq(ivx,ibc).eq.'u' .and.
- * iand(iornq(ivx,ipb(inb)),4163566).gt.0) then
- iorn = iorn+1
- iornq(ivx,ip) = ibset(iornq(ivx,ip),22)
- ybeam = nolev1(ivx)+stemlen+islope(ivx)*xelsk(inb)/slfac-1
- * +1.2*(multb-1)
- ihornb(ivx,iorn) = max(nint(ybeam+3.),NomOrnLev)
- end if
- else
-c
-c In a chord. Orn may be on main note or non-main or both. Set ihornb if
-c upbeam and highest note has orn, or down beam and lowest. Find 1st chord note
-c
- do 10 icrd1 = 1 , ncrd
- if (iand(255,icrdat(icrd1)) .eq. ip .and.
- * iand(15,ishft(icrdat(icrd1),-8)) .eq. ivx) go to 11
-10 continue
-11 continue
-c
-c Find outermost note, min or max depending on beam direction ulq. xto is true
-c if there's an ornament on that note. Expand orn list to include ._, since if
-c on extreme chord note in beam, will move.
-c So ornaments are all except 0,4,13 (,g,)
-c
- levx = nolev(ivx,ip)
- xto = iand(iornq(ivx,ipb(inb)),4186094).gt.0
- icrdx = 0
- do 12 icrd = icrd1 , ncrd
- if (iand(255,icrdat(icrd)) .ne. ip .or.
- * iand(15,ishft(icrdat(icrd),-8)) .ne. ivx) go to 13
- levc = iand(127,ishft(icrdat(icrd),-12))
- if ((ulq(ivx,ibc).eq.'u'.and.levc.gt.levx) .or.
- * (ulq(ivx,ibc).eq.'l'.and.levc.lt.levx)) then
- levx = levc
- icrdx = icrd
- xto = iand(icrdorn(icrd),4186094).gt.0
- end if
-12 continue
-13 continue
-c
-c If there's orn on extreme note, do stuff
-c
- if (xto) then
- iorn = iorn+1
- if (ulq(ivx,ibc) .eq. 'u') then
- ybeam = nolev1(ivx)+stemlen+islope(ivx)*xelsk(inb)/slfac-1
- * +1.2*(multb-1)
- ihornb(ivx,iorn) = max(nint(ybeam+3.),NomOrnLev)
- else
- ybeam = nolev1(ivx)-stemlen+islope(ivx)*xelsk(inb)/slfac+1
- * -1.2*(multb-1)
- ihornb(ivx,iorn) = min(nint(ybeam-3.),NomOrnLev-10)
- end if
- if (icrdx .eq. 0) then
-c
-c Affected ornament is on main note
-c
- iornq(ivx,ip) = ibset(iornq(ivx,ip),22)
- else
- icrdorn(icrdx) = ibset(icrdorn(icrdx),22)
- end if
- end if
- end if
-8 continue
-c
-c Henceforth nornb will be a counter.
-c
- if (iorn .gt. 0) nornb(ivx)=1
- if (ixrest(ivx) .eq. 2) ixrest(ivx) = 0
- return
- end
- block data
- parameter (nm=24)
- common /comtol/ tol
- common /comtrans/ cheadq
- common /compage/ widthpt,ptheight,hoffpt,voffpt,
- * nsyst,nflb,ibarflb(0:40),
- * isysflb(0:40),npages,nfpb,ipagfpb(0:18),isysfpb(0:18),
- * usefig,fintstf,gintstf,fracsys(30),nmovbrk,isysmb(0:30),
- * nistaff(0:40)
- common /cblock/
- * etatop,etabot,etait,etatc,etacs1,hgtin,hgtti,hgtco,
- * xilbn,xilbtc,xilhdr,xilfig,a,b,inhnoh
- common /cominbot/ inbothd
- logical usefig
- common /comstart/ facmtr
- character*60 cheadq
- character*120 instrq,titleq,compoq
- logical headlog
- common /comtitl/ instrq,titleq,compoq,headlog,inskip,ncskip,
- * inhead
- common /spfacs/ grafac,acgfac,accfac,xspfac,xb4fac,clefac,emgfac,
- * flagfac,dotfac,bacfac,agc1fac,gslfac,arpfac,
- * rptfac,lrrptfac,dbarfac,ddbarfac,dotsfac,upstmfac,
- * rtshfac
- common /combmh/ bmhgt,clefend
- common /comdyn/ ndyn,idyndat(99),levdsav(nm),ivowg(12),hoh1(12),
- * hoh2(12),hoh2h1(2),ntxtdyn,ivxiptxt(41),txtdynq(41),
- * idynda2(99),levhssav(nm),listcresc,listdecresc
- character*128 txtdynq
- logical kbdrests
- common /comkbdrests/ levbotr(8),levtopr(8),kbdrests
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
- common /comsize/ isize(nm)
-c
- data tol /.001/
- data cheadq
- * /' '/
- data gslfac /9./
- data instrq,titleq,compoq,headlog /3*' ',.false./
-c
-c meter space (pts) = xb4mbr = musicsize*facmtr
-c
- data facmtr /0.55/
- data grafac,acgfac,accfac,xspfac,xb4fac,clefac,emgfac,
- * flagfac,dotfac,bacfac,agc1fac,clefend,bmhgt
- * / 1.3333,.4 , .7 , .3 , 0.2 , 2.0 , 1.0 ,
- * .7,.7 ,.9 ,.5 ,2.3 ,1.1 /
- data rptfac,lrrptfac,dbarfac,ddbarfac,dotsfac,upstmfac,arpfac
- * / 1.32 , 2.25 , 0.47 , 0.83 , 0.17 , 0.5 , 1.7 /
- data rtshfac / 1.0 /
- data isize /nm*0/
-c
-c From other
-c
- data ptheight,widthpt,hoffpt,voffpt,
- * etatop,etabot,etait,etatc,etacs1,hgtin,hgtti,hgtco,
- * xilbn,xilbtc,xilhdr,xilfig,a,b,inbothd,inhnoh
- * / 740. , 524. , 0., 0.,
- * .50 , .25 , 0.4 , 0.4 , 0.2 , 12. ,21. , 12.,
- * 4 , 1.6 ,5.,5.7,1.071,2.714,16 ,16 /
- data fracsys /30*0./
- data ivowg,hoh1,hoh2,hoh2h1 /0,0,0,0,0,1,1,1,1,1,1,1,
-c * 2.0,1.5,1.0,0.5,1.3,1.3,0.4,0.8,1.2,0.8,1.2,1.6,
- * 2.2,1.7,1.2,0.7,1.3,1.3,0.4,0.8,1.2,0.8,1.2,1.6,
- * -2.7,-2.2,-1.7,-1.2,-2.3,-2.1,-1.0,-1.7,-2.1,-1.6,-1.9,-2.3,
- * -0.3,0.3 /
- data kbdrests /.false./,
- * levtopr /9,7,5,5,7,5,6,6/, levbotr /0,0,0,2,1,4,5,4/
- data EarlyTransOn, LaterInstTrans /2*.false./
- data iInstTrans /nm*0/
- data iTransAmt /nm*0/
- end
- subroutine catspace(space,squez,nnsk)
- parameter (nkb=3999,maxblks=9600)
- common /c1omnotes/ nnodur,wminnh(nkb),nnpd(maxblks),durb(maxblks),
- * iddot,nptr(nkb),ibarcnt,mbrest,ibarmbr,
-c * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks)
- * ibaroff,udsp(nkb),wheadpt,sqzb(maxblks)
- common /comtol/ tol
-c logical gotclef
- do 16 iptr = nptr(ibarcnt) , nptr(ibarcnt+1)-1
- if (abs(space-durb(iptr)) .lt. tol) then
- if (abs(squez-sqzb(iptr)) .lt. tol) then
-c
-c Increment pre-existing entry
-c
- nnpd(iptr) = nnpd(iptr)+nnsk
- return
- end if
- end if
-16 continue
-c
-c Didn't find current duration & squez, so add a new entry.
-c No particular reason to keep in order, so add at the end.
-c
- nnpd(nptr(ibarcnt+1)) = nnsk
- durb(nptr(ibarcnt+1)) = space
- sqzb(nptr(ibarcnt+1)) = squez
- nptr(ibarcnt+1) = nptr(ibarcnt+1)+1
- return
- end
- character*1 function chax(n)
-c
-c The only reason for this seemingly do-nothing function is to get around an
-c apparent bug in the Visual Fortran Standard Edition 5.0.A compiler!
-c
- chax = char(n)
- return
- end
- subroutine checkdyn(lineq,iccount,ibar)
- character*128 lineq
- character*1 durq,chax
- character*4 dynsymq
- logical txtdyn
- txtdyn = .false.
-c
-c On entry, iccount is on "D"
-c
- if (lineq(iccount+1:iccount+1) .eq. '"') then
-c
-c Dynamic text
-c
-
- istart = iccount+2 ! 1 past 1st quote
-3 continue
- iend = index(lineq(istart:128),'"')
- if (lineq(istart+iend-2:istart+iend-2) .eq. '\') then
- istart = iccount+iend+2
- go to 3
- end if
- if (iend .eq. 0) then
- call errmsg(lineq,iccount+1,ibar,
- * 'Dynamic text must be terminated with double quote!')
- call stop1()
- end if
-c
-c Set iccount to character after 2nd ", and set ipm
-c
-c iccount = iccount+iend+2
- iccount = istart+iend
- ipm = index('- +',lineq(iccount:iccount))
- if (ipm .eq. 0) then
- call errmsg(lineq,iccount,ibar,
- * 'Expected "-", "+", or blank here!')
- call stop1()
- end if
- else
-c
-c Expect ordinary dynamic
-c
- do 1 iend = iccount+2 , 128
- ipm = index('- +',lineq(iend:iend))
- if (ipm .gt. 0) go to 2
-1 continue
-2 continue
- if (iend-iccount.gt.5 .or. iend-iccount.lt.2) then
- call errmsg(lineq,iend-1,ibar,
- * 'Wrong length for dynamic mark!')
- call stop1()
- end if
- read(lineq(iccount+1:iend-1),'(a'//chax(47+iend-iccount)//')')
- * dynsymq
- idno = (index(
- * 'ppppppp pp p mp mf f fp sfz ff fff ffff< > ',
- * dynsymq)+3)/4
- if (idno .eq. 0) then
- call errmsg(lineq,iccount+1,ibar,'Illegal dynamic mark!')
- call stop1()
- end if
- iccount = iend
- end if
- if (ipm .ne. 2) then
-c
-c There is a vertical shift, have "+" or "-"
-c
- iccount = iccount+1
- if (index('0123456789',lineq(iccount:iccount)) .eq. 0) then
- call errmsg(lineq,iccount,ibar,
- * 'Expected integer here for vertical offset!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- idno = nint(fnum)
- if (idno .gt. 63) then
- call errmsg(lineq,iccount-1,ibar,
- * 'Vertical offset for dynamic mark must be (-63,63)!')
- call stop1()
- end if
- ipm = index('- +',durq)
- if (ipm .eq. 0) then
- call errmsg(lineq,iccount,ibar,
- * 'Expected "+", "-", or blank here!')
- call stop1()
- end if
- if (ipm .ne. 2) then
-c
-c There is a horizontal shift
-c
- iccount = iccount+1
- if (index('.0123456789',lineq(iccount:iccount)) .eq. 0) then
- call errmsg(lineq,iccount,ibar,
- * 'Expected number here for horizontal offset!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- idno = nint(10*fnum)
- if (idno .gt. 255) then
- call errmsg(lineq,iccount-1,ibar,
- * 'Horizontal offset for dynamic mark must be (-25.5,25.5)!')
- call stop1()
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibar,
- * 'There should be a blank here!')
- call stop1()
- end if
- end if
-c
-c iccount should be on the blank at the end of the entire symbol
-c
- end if
- return
- end
- subroutine chkarp(ncrd,icrdat,ivx,ip,iscacc,isarp)
-c subroutine chkarp(found1,ncrd,icrdat,icrdot,ivx,ip,isacc,isarp,
-c * icashft)
- logical found1,iscacc,isarp,btest
- integer icrdat(193)
- found1 = .false.
-c
-c icashft will be max left shift of accid's in chord notes.
-c Used only for spacing checks.
-c Will include left shift of chord note itself.
-c Rezero after use.
-c
- do 18 icrd = 1 , ncrd
-c
-c This if block cycles thru all chord notes on ivx,ip; then returns.
-c
- if (iand(255,icrdat(icrd)) .eq. ip .and.
- * iand(15,ishft(icrdat(icrd),-8)) .eq. ivx) then
- found1 = .true.
- iscacc = iscacc .or.
- * (btest(icrdat(icrd),19).and..not.btest(icrdat(icrd),27))
-c
-c Accid on this chord note, and it's not midi-only.
-c
-c irshft = igetbits(icrdot(icrd),7,20)
-cc
-cc Include increment for notehead shift
-cc
-c if (btest(icrdat(icrd),23)) then
-c if (irshft .eq. 0) then
-c irshft = 44
-c else
-c irshft=irshft-20
-c end if
-c end if
-c if (irshft .ne. 0) then
-cc
-cc Accid on chord note is shifted. Include only left shift, in 20ths.
-cc
-c if (irshft .lt. 64) icashft = max(icashft,64-irshft)
-c end if
-c end if
- isarp = isarp .or. btest(icrdat(icrd),25)
- else if (found1) then
- return
- end if
-18 continue
- return
- end
- subroutine chkimidi(icm)
- parameter (nm=24,mv=24576)
- integer*2 mmidi
- logical restpend,relacc,notmain,twoline,ismidi,crdacc
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- if (imidi(icm) .ge. mv) then
- print*
- print*,'Midi file is too long! It will be corrupted or worse'
- write(*,'(a6,2x,4i8)')
- * 'imidi:',imidi(0),imidi(1),imidi(2),imidi(3)
- end if
- return
- end
- subroutine chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev,ivmx,
-c * nib,nv,ibar,tnow,tol,nodur,mode,levtopr,levbotr,mult)
- * nib,nv,ibar,tnow,tol,nodur,mode,levtopr,levbotr,mult,ipl)
- parameter (nm=24)
- integer*4 nn(nm),islur(nm,200),irest(nm,200),
- * nolev(nm,200),nib(nm,15),nodur(nm,200),levbotr(8),levtopr(8),
- * ivmx(nm,2),mult(nm,200),ipl(nm,200)
-c
-c On 130127 put this code, formerly in make2bar right before calling notex for
-c a single note/rest, into this subroutine, so the same logic could also be
-c with the calls to beamstrt/mid/end to adjust height of rests in xtups if the
-c keyboard rest option is selected
-c
-c mode=1 if called as before, 2 if for an xtup. Only affects check for
-c quarter rests, which will fix later.
-c
-c Get reference level: next following note if no intervening blank rests,
-c otherwise next prior note. Relative to bottom line.
-c
-c if (ip.ne.nn(ivx).and..not.btest(iornq(ivx,ip),30)) then
- if (ip.ne.nn(ivx).and..not.btest(ipl(ivx,ip),1)) then
-c
-c Not the last note and not "look-left" for level
-c
- do 8 kkp = ip+1 , nn(ivx)
- if (btest(islur(ivx,kkp),29)) go to 4
- if (.not.btest(irest(ivx,kkp),0)) then
- levnext = nolev(ivx,kkp)-ncmid(iv,kkp)+4 ! Relative to bottom line
- go to 9
- end if
-8 continue
- end if
-4 continue
-c
-c If here, there were no following notes or came to a blank rest, or
-c "look-left" option set. So look before
-c
-c if (ip .eq. 1) go to 2 ! Get out if this is the first note.
- if (ip .eq. 1) return ! Get out if this is the first note.
- do 3 kkp = ip-1, 1, -1
- if (.not.btest(irest(ivx,kkp),0)) then
- levnext = nolev(ivx,kkp)-ncmid(iv,kkp)+4 ! Relative to bottom line
- go to 9
- end if
-3 continue
-c go to 2 ! Pretty odd, should never be here, but get out if so.
- return ! Pretty odd, should never be here, but get out if so.
-9 continue
-c
-c Find note in other voice at same time
-c
- iupdown = sign(1,ivx-nv-1)
- ivother = ivmx(iv,(3-iupdown)/2)
- tother = 0.
- do 5 kkp = 1 , nib(ivother,ibar)
- if (abs(tother-tnow) .lt. tol) go to 6
- tother = tother+nodur(ivother,kkp)
-5 continue
-c
-c If here, then no note starts in other voice at same time, so set default
-c
- levother = -iupdown*50
- go to 7
-6 continue
-c
-c If here, have just identified a simultaneous note or rest in other voice
-c
- if (.not.btest(irest(ivother,kkp),0)) then ! Not a rest, use it
- levother = nolev(ivother,kkp)-ncmid(iv,ip)+4
- else
- if (nodur(ivother,kkp) .eq. nodur(ivx,ip)) then
-c
-c Rest in other voice has same duration, get out (so defualt spacing is used)
-c
-c go to 2
- return
- end if
- levother = -iupdown*50
- end if
-7 continue
- if (mode.eq.1) then
- indxr = log2(nodur(ivx,ip))+1
- else
-c nodu = 2**(4-(iand(mult(ivx,ip),15)-8))
- indxr = 4-(iand(mult(ivx,ip),15)-8)+1
- end if
- if (iupdown .lt. 0) then
- levtop = levtopr(indxr)
- iraise1 = levother-levtop-3 ! Based on other note
- iraise2 = levnext-levtop ! Based on following note
- if (indxr.eq.5 .and. levnext.lt.1) iraise2=iraise2+2
- iraise = min(iraise1,iraise2)
- if (mod(iraise+50,2).eq.1 .and.
- * iraise+levtop.gt.-1) iraise = iraise-1
- else
- levbot = levbotr(indxr)
- iraise1 = levother-levbot+3
- iraise2 = levnext-levbot
- if (indxr.eq.5 .and. levnext.gt.8) iraise2=iraise2-1
- iraise = max(iraise1,iraise2)
- if (mod(iraise+50,2).eq.1 .and.
- * iraise+levbot.le.9) iraise = iraise-1
- end if
- nolev(ivx,ip) = 100+iraise
- return
- end
- subroutine chklit(lineq,iccount,literr)
- character*128 lineq
- character*1 charq,chax
- literr = 0
- itype = 1
-17 call g1etchar(lineq,iccount,charq)
- if (charq .eq. chax(92)) then
- itype = itype+1
- if (itype .gt. 3) then
- literr = 1
- return
- end if
- go to 17
- end if
- lenlit = itype
-18 call g1etchar(lineq,iccount,charq)
- if (charq.eq.chax(92)) then
- call g1etchar(lineq,iccount,charq)
- if (charq .ne. ' ') then
-c
-c Starting a new tex command withing the string
-c
- lenlit = lenlit+2
- if (lenlit .gt. 128) then
- literr = 2
- return
- end if
- go to 18
- end if
- else
- lenlit = lenlit+1
- if (lenlit .gt. 128) then
- literr = 2
- return
- end if
- go to 18
- end if
- return
- end
- subroutine chkpm4ac(lineq,iccount,nacc,moved)
-c
-c Called after getting +/-/</> in a note (not rest). iccount is on the +-<>.
-c Sets moved=.true. and sets move parameters in nacc if necc: horiz only (bits
-c 10-16) if < or >, horiz and vert (bits 4-9) if two consecutive signed
-c numbers. If moved=.true., iccount on exit is on end of last number.
-c If moved=.false., iccount still on +/-
-c
- logical moved,ishorz
- character*128 lineq
- character*1 durq
- if (index('sfnA',lineq(iccount-1:iccount-1)).gt.0 .and.
- * index('0123456789.',lineq(iccount+1:iccount+1)).gt.0) then
-c
-c Prior char was accid & next is #; this may be start of accidental shift.
-c Must test for "." above in case we get "<" or ">"
-c
- ipm = index('- +< >',lineq(iccount:iccount))-2
- if (lineq(iccount+1:iccount+1).eq.'.' .and.
- * index('0123456789',lineq(iccount+2:iccount+2)).eq.0) then
-c
-c Rare case of [accid][+/-].[letter]. Bail out
-c
- moved = .false.
- return
- end if
- ishorz = ipm .gt. 1
-c
-c Save iccount in case it's not accid shift and we have to reset.
-c
- icsav = iccount
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- if (ishorz .or. index('+-',durq).gt.0) then
-c
-c This has to be accidental shift. Set vert. shift.
-c
- if (.not.ishorz) then
-c
-c +/- syntax, both shifts set, vertical first
-c
- call setbits(nacc,6,4,int(ipm*fnum+32.5))
- ipm = index('- +',durq)-2
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- else
-c
-c </> syntax, only horiz set
-c
- ipm = ipm-3
- end if
-c
-c Set horiz. shift
-c
- call setbits(nacc,7,10,nint(20*(ipm*fnum+5.35)))
- iccount = iccount-1
- moved = .true.
- else
-c
-c False alarm. Reset everything and flow onward
-c
- moved = .false.
- iccount = icsav
- end if
- else
-c
-c Either prior char was not 'sfn' or next was not digit, so take no action
-c
- moved = .false.
- end if
- return
- end
- subroutine clefsym(isl,notexq,lnote,nclef)
-c
-c Returns string calling Don's TeX macro \pmxclef, for drawing small clefs.
-c
- character*(*) notexq
- character*1 chax
- nclef = iand(ishft(isl,-12),7)
- if (nclef .eq. 0) then
-c
-c treble
-c
- nlev = 2
- else if (nclef .gt. 6) then
-c
-c French violin
-c
- nlev = 0
- else if (nclef .lt. 5) then
-c
-c C-clef
-c
- nlev = 2*nclef-2
- else
-c
-c F-clef
-c
- nlev = 2*nclef-6
- end if
- notexq = chax(92)//'pmxclef'//chax(48+min(nclef,7))
- * //chax(48+nlev)
- lnote = 10
- return
- end
- subroutine crdacc(nacc,naccid,micrd,nolevm,rmsshift,lasttime,
- * levmaxacc,icrdot0,segrb0,ksegrb0,nsegrb0,twooftwo,icashft)
-c
-c nacc = accidental bitmap for main note
-c naccid = # of accid's in chord
-c micrd = array with icrd #'s for notes w/ acc's, 0=>main note
-c nolevm = level of main note
-c segrb(1|2,.) x|y-coord of right-bdry segment
-c ksegrb(.) internal use; tells what defined this segment
-c -2: Left-shifted notehead
-c -1: Original right boundary
-c 0: Main note accidental
-c icrd: Chord-note accidental
-c isetshft(i),i=1,naccid: what set shift for this accid, same codes
-c icrdot0 = top-down level-rank of main note among accid-notes
-c icrdot(icrd)(27-29) = level rank of chord-note among accid-notes
-c twooftwo will be true 2nd time thru; signal to store shifts w/ notes
-c
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- real*4 segar(5,2,6),segal(5,2,6),segrb(2,50),segrb0(2,50)
- integer*4 nsegar(5),nsegal(5),micrd(10),iacctbl(6),ksegrb(50),
- * isetshft(10),ksegrb0(50)
- logical lasttime,mainnote,twooftwo
- data nsegar / 3,4,3,3,2 /, nsegal / 2,4,3,3,2 /
- data segar /
-c
-c Fancy sharp boundary. fl,sh,na,dfl,dsh
-c
- * -0.05,-0.38,-0.34,-.05, -.15,-1.4,-2.9,-3.0, -1.4, -1.2,
-c * -0.75,-0.20,-0.80, 0. , 0. , .96,-1.04,1.6, 0. , 0. ,
-c meas value for y, natural is 1.6
- * -0.75,-0.20,-0.80,-.75, 0. , .96,-1.04,1.48, .96, 1.2,
- * 0.00,-0.38, 0.00, 0. , 0. ,3.15, 1.64,3.0, 3.15, 0. ,
- * 0. , 0.00, 0. , 0. , 0. , 0. , 2.90, 0. , 0. , 0. ,
- * 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. ,
- * 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. /
- data segal /
-c * 0.00, 0.00,-1.04, 0. , 0. ,3.15, 2.9,-1.6, 0. , 0. ,
-cc (meas. value is 3.08) ^^^^
-cc Raise top of flat so it interferes with bottom of sharp
- * -1.00,-1.02,-0.60,-1.65, -1.2,-1.4,-2.9, -3.0, -1.4, -1.2,
- * 0.00,-1.20,-1.04, 0. , 0. ,3.15,-1.64,-1.48,3.15, 1.2,
- * 0. ,-1.02, 0.00, 0. , 0. , 0. , 1.04, 3.0, 0. , 0. ,
- * 0. , 0.00, 0. , 0. , 0. , 0. , 2.9 , 0. , 0. , 0. ,
- * 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. ,
- * 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. /
-c
-c iacctbl(i) = internal accid # (1-5) when i=extern accid # (1,2,3,5,6)
-c
- data iacctbl / 1 , 2 , 3 , 0 , 4 , 5 /
-c
-c Set up barrier segrb(iseg,ipoint) to define coords of corner points
-c on stem+notes
-c
- do 11 iseg = 1 , nsegrb0
- segrb(1,iseg) = segrb0(1,iseg)
- segrb(2,iseg) = segrb0(2,iseg)
- ksegrb(iseg) = ksegrb0(iseg)
-11 continue
- nsegrb = nsegrb0
- rmsshift = 0.
- shiftmin = 1000.
- do 1 iwa = 1 , naccid
-c
-c Initialize shift for this note
-c
- shift = 0.
- mainnote = micrd(iwa).eq.0
- isetshft(iwa) = -1
-c
-c Get note level and accidental type
-c
- if (mainnote) then
- nolev = nolevm
- iacctype = iacctbl(igetbits(nacc,3,0))
- else
- nolev = igetbits(icrdat(micrd(iwa)),7,12)
- iacctype = iacctbl(igetbits(icrdat(micrd(iwa)),3,20))
- end if
-c
-c Cycle thru segments on right edge of this accidental
-c
- do 2 isega = 1 , nsegar(iacctype)-1
- ybotaseg = nolev+segar(iacctype,2,isega)
- ytopaseg = nolev+segar(iacctype,2,isega+1)
-c
-c Cycle thru segments of right-hand barrier
-c
- do 3 isegrb = 1 , nsegrb-1
-c
-c Must find all barrier segments that start below ytopseg & end above ybotseg
-c
- if (segrb(2,isegrb) .lt. ytopaseg) then
-c
-c Barrier seg starts below top of accid
-c Check if barrier seg ends above bottom of accid
-c
- if (segrb(2,isegrb+1) .gt. ybotaseg) then
- if (shift .gt.
- * segrb(1,isegrb)-segar(iacctype,1,isega)) then
- shift = segrb(1,isegrb)-segar(iacctype,1,isega)
-c
-c Record the cause of the shift
-c
- isetshft(iwa) = ksegrb(isegrb)
- end if
- end if
-c
-c Does barrier segment end above top of accid seg?
-c
- if (segrb(2,isegrb+1) .gt. ytopaseg) go to 4
- end if
-3 continue
-4 continue
-2 continue
- if (.not.btest(nacc,28) .and. abs(shift).gt.0.0001
- * .and. .not.lasttime) then
-c if (nolev .eq. levmaxacc) then
- if (nolev.eq.levmaxacc .and. isetshft(iwa).eq.-1) then
- rmsshift = 1000.
- return
- end if
-c
-c Does the following properly account for left-shifted noteheads?
-c
-c Top-down rank of this note we just shifted
-c
- if (mainnote) then
- irank = icrdot0
- else
- irank = igetbits(icrdot(micrd(iwa)),3,27)
- end if
-c
-c Compare level-rank of this note vs. that of note that caused the shift.
-c This has effect of checking for basic interferences from top down.
-c
-c ksegrb(.) internal use; tells what defined this segment
-c -2: Left-shifted notehead
-c -1: Original right boundary
-c 0: Main note accidental
-c icrd: Chord-note accidental
-c isetshft(i),i=1,naccid: what set shift for this accid, same codes
-c
- if (isetshft(iwa) .lt. 0) then
- iranksetter = 0
- else if (isetshft(iwa) .eq. 0) then
- iranksetter = icrdot0
- else
- iranksetter = igetbits(icrdot(isetshft(iwa)),3,27)
- end if
- if (iranksetter.ne.0 .and. irank.ne.iranksetter+1) then
- rmsshift = 1000.
- return
- end if
- end if
- rmsshift = rmsshift+shift**2
- if (lasttime .and. abs(shift).gt..0001) then
- if (mainnote) then
- if (.not.btest(nacc,29)) go to 10
- else
- if (.not.btest(icrdat(micrd(iwa)),29)) go to 10
- end if
-c
-c If here, "A" was set on a manual shift, so must cumulate the shift. Note that if there
-c was a manual shift but auto-shift was zero, will not come thru here, but shift value
-c will be left intact.
-c
- if (mainnote) then
- shift = shift+.05*(igetbits(nacc,7,10)-107)
- else
- shift = shift+.05*(igetbits(icrdot(micrd(iwa)),7,20)-107)
- end if
-10 continue
- if (twooftwo) then
-c
-c Record the shift for this accidental
-c
- if (shift .lt. -5.35) then
- call printl(' ')
- call printl('WARNING: auto-generated accidental '//
- * 'shift too big for PMX, ignoring')
- else
- ishift = nint(20*(shift+5.35))
- if (mainnote) then
- call setbits(nacc,7,10,ishift)
- else
- call setbits(icrdot(micrd(iwa)),7,20,ishift)
- end if
- end if
- else
-c
-c This is the earlier call to precrd, so need minimum shift
-c
- shiftmin = min(shiftmin,shift)
- end if
- end if
-c
-c Bail out if this is the last accidental to check
-c
- if (iwa .eq. naccid) go to 1
-c
-c Add this accidental to the right barrier! Count down from highest barrier segment,
-c find 1st one starting below top of accid, and first one starting below bot.
-c
- do 5 ibelowtop = nsegrb , 1 , -1
- if (segrb(2,ibelowtop) .lt.
- * nolev+segal(iacctype,2,nsegal(iacctype))) then
- do 9 ibelowbot = ibelowtop , 1 , -1
- if (segrb(2,ibelowbot) .lt.
- * nolev+segal(iacctype,2,1)) go to 6
-9 continue
- print*,'Oops2!'
- call stop1()
- end if
-5 continue
- print*,'Ugh0! in crdaccs'
- call stop1()
-6 continue
- netgain = nsegal(iacctype)-ibelowtop+ibelowbot
-c
-c Shift high segments up
-c
- if (netgain .ge. 0) then
- do 7 isegrb = nsegrb , ibelowtop+1 , -1
- segrb(1,isegrb+netgain) = segrb(1,isegrb)
- segrb(2,isegrb+netgain) = segrb(2,isegrb)
- ksegrb(isegrb+netgain) = ksegrb(isegrb)
-7 continue
-c
-c Set up 1st segment above accid
-c
- segrb(1,ibelowtop+netgain) = segrb(1,ibelowtop)
- segrb(2,ibelowtop+netgain) =
- * nolev+segal(iacctype,2,nsegal(iacctype))
- ksegrb(ibelowtop+netgain) = ksegrb(ibelowtop)
- else
-c
-c netgain<0, must remove segments. Use same coding but reverse order,
-c work from bottom up
-c
- segrb(1,ibelowtop+netgain) = segrb(1,ibelowtop)
- segrb(2,ibelowtop+netgain) =
- * nolev+segal(iacctype,2,nsegal(iacctype))
- ksegrb(ibelowtop+netgain) = ksegrb(ibelowtop)
- do 12 isegrb = ibelowtop+1 , nsegrb
- segrb(1,isegrb+netgain) = segrb(1,isegrb)
- segrb(2,isegrb+netgain) = segrb(2,isegrb)
- ksegrb(isegrb+netgain) = ksegrb(isegrb)
-12 continue
- end if
-c
-c Insert new segments
-c
- do 8 isega = 1 , nsegal(iacctype)-1
- segrb(1,ibelowbot+isega) = shift+segal(iacctype,1,isega)
- segrb(2,ibelowbot+isega) = nolev+segal(iacctype,2,isega)
- if (mainnote) then
- ksegrb(ibelowbot+isega) = 0
- else
- ksegrb(ibelowbot+isega) = micrd(iwa)
- end if
-8 continue
-c
-c Update number of barrier segments
-c
- nsegrb = nsegrb+netgain
-cc
-cc Temporary printout for boundary segments as built up
-cc
-c write(15,'()')
-c write(15,'(a/(2f8.2,i5))')' y x kseg',
-c * (segrb(2,iseg),segrb(1,iseg),ksegrb(iseg),iseg=1,nsegrb)
-c write(15,'(a/(2i5))')' micrd isetshft',
-c * (micrd(iwa1),isetshft(iwa1),iwa1=1,iwa)
-cc
-1 continue ! next accidental
- if (lasttime .and. .not.twooftwo) then
-c
-c This is the final call on the pre-ask pass, so compute left-shift rqmt.
-c
- icashft = nint(-20*shiftmin)
- end if
-cc
-cc Temporary printout for boundary segments
-cc
-c if (twooftwo) then
-c write(15,'()')
-c write(15,'(a/(2f8.2,i5))')' y x kseg',
-c * (segrb(2,iseg),segrb(1,iseg),ksegrb(iseg),iseg=1,nsegrb)
-c write(15,'(a/(2i5))')' micrd isetshft',
-c * (micrd(iwa),isetshft(iwa),iwa=1,naccid)
-c end if
-cc
- return
- end
- subroutine crdaccs(nacc,ipl,irest,naccid,kicrd,nolevm,
- * levmaxacc,levminacc,icrdot0,twooftwo,icashft)
-c
-c nacc = accidental bitmap for main note
-c naccid = # of accid's in chord
-c kicrd = array with icrd #'s for notes w/ acc's, 0=>main note
-c nolevm = level of main note
-c
-c This is called once per multi-accidental chord. In here, loop over all
-c permutations of the order of accidental as stored in kicrd. Each time thru
-c loop, call crdacc once, get rms shift. Only save permutation and rms value
-c if it is less than old value.
-c
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
-c
-c Make consistent? 120106
-c integer*4 kicrd(7),iperm(7),micrd(10),ipermsav(7),ksegrb0(50)
- integer*4 kicrd(10),iperm(7),micrd(10),ipermsav(7),ksegrb0(50)
- real*4 segrb0(2,50)
- logical btest,tagged,manual,lshift,twooftwo
-cc
-cc Temporary printout of level-rankings
-cc
-c write(15,'()')
-c do 98 iacc = 1 , naccid
-c if (kicrd(iacc) .eq. 0) then
-c write(15,'(3i5)')nolevm,icrdot0
-c else
-c write(15,'(2i5)')igetbits(icrdat(kicrd(iacc)),7,12),
-c * igetbits(icrdot(kicrd(iacc)),3,27)
-c end if
-c98 continue
-cc
-c
-c Initialize right-barrier
-c
- segrb0(1,1) = 0.
- segrb0(2,1) = -1000.
- segrb0(1,2) = 0.
- segrb0(2,2) = 1000.
- nsegrb0 = 2
- ksegrb0(1) = -1
- ksegrb0(2) = -1
-c
-c Search for left-shifted notes, Make up the initial right-barrier, which
-c will be good for all permutations.
-c irest()(27) is set if any notes are left-shifted
-c Must use ALL chord notes, not just ones w/ accid's.
-c
- if (btest(irest,27)) then
- do 15 icrd = icrd1-1, icrd2
- if (icrd .eq. icrd1-1) then
-c
-c Main note
-c
-c lshift = btest(ipl,8)
- lshift = btest(ipl,8) .or. btest(nacc,31)
- if (lshift) nolev = nolevm
- else
-c
-c Chord note
-c
- lshift = btest(icrdat(icrd),23)
-c if (lshift) nolev = igetbits(icrdat(icrd),7,12)
- if (lshift) then
- nolev = igetbits(icrdat(icrd),7,12)
- if (btest(nacc,31) .and. nolev.eq.nolevm+1) then
-c
-c This note is not really shifted, It is the upper of a 2nd with the main
-c note on an upstem, and Main note must be shifted.
-c nacc(31) signals the real truth.
-c
- lshift = .false.
- end if
- end if
- end if
- if (lshift) then
- do 16 isegrb = 1 , nsegrb0-1
- if (segrb0(2,isegrb+1) .gt. nolev-1) then
-c
-c Add this notehead to the right boundary here. Move all higher segs up 2.
-c
- do 17 iiseg = nsegrb0 , isegrb+1 , -1
- segrb0(1,iiseg+2) = segrb0(1,iiseg)
- segrb0(2,iiseg+2) = segrb0(2,iiseg)
- ksegrb0(iiseg+2) = ksegrb0(iiseg)
-17 continue
- go to 18
- end if
-16 continue
-18 continue
-c
-c Insert notehead into list. Set kseg=-2 to signal notehead shift.
-c
- iiseg = isegrb+1
- segrb0(1,iiseg) = -1.2
- segrb0(2,iiseg) = nolev-1.
- ksegrb0(iiseg) = -2
- segrb0(1,iiseg+1) = 0.
- segrb0(2,iiseg+1) = nolev+1.
- ksegrb0(iiseg+1) = -1
- nsegrb0 = nsegrb0+2
- end if
-15 continue
- end if
-c
-c Done setting right barrier for left-shifted noteheads
-c
- tagged = .false.
- manual = .false.
-c
-c Preprocess to check for manual shifts.
-c If are manual main [nacc(10-16)] or chord note [icrdot(20-26)]shifts, then
-c If any manual shift is preceded by "A" [nacc(29), icrdat(29)] then
-c 1. Auto-shifting proceeds
-c 2. "A"-shifts add to autoshifts
-c 3. non-"A" shifts are ignored!
-c Else (>0 man shifts, none has "A")
-c No auto-ordering, No autoshifts, Observe all manual shifts.
-c End if
-c End if
-c
- maxmanshft = 0
- do 13 i = 1 , naccid
- if (kicrd(i) .eq. 0) then
-c
-c Main note
-c
- manshft = igetbits(nacc,7,10)
- if (manshft .ne. 0) then
- manual = .true.
- if (btest(nacc,29)) then
- tagged = .true.
- else
-c maxmanshft = max(maxmanshft,64-manshft)
- maxmanshft = max(maxmanshft,107-manshft)
- end if
- end if
- else
-c
-c Chord note
-c
- manshft = igetbits(icrdot(kicrd(i)),7,20)
- if (manshft .ne. 0) then
- manual = .true.
- if (btest(icrdat(kicrd(i)),29)) then
- tagged = .true.
- else
-c maxmanshft = max(maxmanshft,64-manshft)
- maxmanshft = max(maxmanshft,107-manshft)
- end if
- end if
- end if
-13 continue
- if (manual) then
- if (tagged) then
-c
-c zero out all untagged shifts
-c
- do 14 i = 1 , naccid
- if (kicrd(i) .eq. 0) then
- if (.not.btest(nacc,29)) call setbits (nacc,7,10,0)
- else
- if (.not.btest(icrdat(kicrd(i)),29))
- * call setbits (icrdot(kicrd(i)),7,20,0)
- end if
-14 continue
- else
-c
-c There are manual shifts but none tagged. Only proceed if "Ao" was entered
-c
- if (.not.btest(nacc,28)) then
- icashft = maxmanshft
- return
- end if
- end if
- end if
- if (btest(nacc,28)) then
-c
-c Take the accidentals in order as originally input, then exit.
-c
- call crdacc(nacc,naccid,kicrd,nolevm,rmsshift,.true.,
- * idummy,idummy,segrb0,ksegrb0,nsegrb0,twooftwo,icashft)
- return
-c end if
- else if (naccid .eq. 3) then
-c
-c Special treatment if 3 accidentals in chord. If there aren't accids on a 2nd
-c then place in order top, bottom, middle.
-c
- do 20 i = 1 , 3
- if (kicrd(i) .eq. 0) then
- irank = icrdot0
- nolev = nolevm
- else
- irank = igetbits(icrdot(kicrd(i)),3,27)
- nolev = igetbits(icrdat(kicrd(i)),7,12)
- end if
- if (irank .eq. 1 ) then
- micrd(1) = kicrd(i)
- else
- micrd(5-irank) = kicrd(i)
- end if
- if (irank .eq. 2) then
- levmidacc = nolev
- end if
-20 continue
- if (levmaxacc.ne.levmidacc+1 .and.
- * levmidacc.ne.levminacc+1) then
- call crdacc(nacc,naccid,micrd,nolevm,rmsshift,.true.,
- * idummy,idummy,segrb0,ksegrb0,nsegrb0,twooftwo,icashft)
- return
- end if
- end if
- rmsmin = 100000.
-c
-c Initialize permutation array
-c
- do 7 i = 1 , naccid
- iperm(i) = i
-7 continue
-c
-c Start looping over permutations
-c
- do 8 ip = 1 , 5041
- if (ip .ne. 1) then
-c
-c Work the magic algorithm to get the next permutation
-c
- do 1 k = naccid-1 , 1 , -1
- if (iperm(k) .le. iperm(k+1)) go to 2
-1 continue
-c
-c If here, we just got the last permutation, so exit the loop over permutations
-c
- go to 10
-2 continue
- do 3 j = naccid , 1 , -1
- if (iperm(k) .le. iperm(j)) go to 4
-3 continue
-4 continue
- it = iperm(j)
- iperm(j) = iperm(k)
- iperm(k) = it
- is = k+1
- do 5 ir = naccid , 1 , -1
- if (ir .le. is) go to 6
- it = iperm(ir)
- iperm(ir) = iperm(is)
- iperm(is) = it
- is = is+1
-5 continue
-6 continue
- end if
-c
-c New we have a permutation. Take icrd values out of kicrd and put them into
-c micrd in the order of the permutation
-c
- do 9 i = 1 , naccid
- micrd(i) = kicrd(iperm(i))
-9 continue
-cc
-cc Temporary printout
-cc
-c write(15,'(/a6,10i3)')'perm:',(iperm(i),i=1,naccid)
-cc
- call crdacc(nacc,naccid,micrd,nolevm,rmsshift,.false.,
- * levmaxacc,icrdot0,segrb0,ksegrb0,nsegrb0,twooftwo,icashft)
-cc
-cc Temporary printout
-cc
-c write(15,*)'perm done, rmsshift:',rmsshift
-cc
- if (rmsshift .lt. rmsmin) then
-c
-c Save this permutation, reset minrms
-c
- do 11 i = 1 , naccid
- ipermsav(i) = iperm(i)
- rmsmin = rmsshift
-11 continue
- end if
-8 continue
- print*,'Should not BEEEEEE here!'
- call stop1()
-10 continue
-c
-c Done looping, get info for the final choice
-c
- do 12 i = 1 , naccid
- micrd(i) = kicrd(ipermsav(i))
-12 continue
-cc
-cc Temporary printout
-cc
-c write(15,'(/a6,10i3)')'Final perm:',(ipermsav(i),i=1,naccid)
-cc
- call crdacc(nacc,naccid,micrd,nolevm,rmsshift,.true.,
- * idummy,idummy,segrb0,ksegrb0,nsegrb0,twooftwo,icashft)
- return
- end
- subroutine doacc(ihshft,ivshft,notexq,lnote,nacc,nolev,ncm,caut)
- character*1 sq,chax
- character*3 acsymq
- character*8 noteq
- character*79 notexq
- logical btest,caut
- sq = chax(92)
- if (ihshft .eq. -107) ihshft=0
-cc
-cc If main note shifted left, so shift accid. Terminate below, when acc. is done.
-cc
- if (ihshft .ne. 0) then
-c
-c Accid must be shifted horizontally
-c
- if (ihshft .lt. 0) then
- notexq = sq//'loffset{'
- ihshft = -ihshft
- else
- notexq = sq//'roffset{'
- end if
- hshft = .05*ihshft
- if (hshft .lt. 1.) then
- write(notexq(10:12),'(f3.2)')hshft
- lnote = 12
- else
- write(notexq(10:13),'(f4.2)')hshft
- lnote = 13
- end if
- notexq = notexq(1:lnote)//'}{'//sq
- lnote = lnote+3
- else
- notexq = sq
- lnote = 1
- end if
- if (btest(nacc,3)) then
- notexq = notexq(1:lnote)//'big'
- lnote = lnote+3
- end if
- if (caut) then
-c
-c Cautionary accidental. Need to define bigcna,... in pmx.tex
-c
- notexq = notexq(1:lnote)//'c'
- lnote = lnote+1
- end if
- call accsym(nacc,acsymq,lacc)
- notexq = notexq(1:lnote)//acsymq(1:lacc)
- lnote = lnote+lacc
- noleva = nolev
- if (ivshft .ne. 0) noleva = noleva+ivshft-32
- call notefq(noteq,lnoten,noleva,ncm)
- if (lnoten .eq. 1) call addblank(noteq,lnoten)
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
- if (ihshft .ne. 0) then
-c
-c Terminate horizontal shift
-c
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- end if
- return
- end
- subroutine docrd(ivx,ip,nodu,ncm,iv,tnow,soutq,lsout,ulq,ibmcnt,
- * islur,nvmx,nv,beamon,nolevm,ihornb,nornb,stemlen,
- * dotxtup,nacc,irest)
- parameter (nm=24,mv=24576)
- integer*4 irest(nm,24)
- common /comarp/ narp,tar(8),ivar1(8),ipar1(8),levar1(8),ncmar1(8),
- * xinsnow,lowdot
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- common /spfacs/ grafac,acgfac,accfac,xspfac,xb4fac,clefac,emgfac,
- * flagfac,dotfac,bacfac,agc1fac,gslfac,arpfac,
- * rptfac,lrrptfac,dbarfac,ddbarfac,dotsfac,upstmfac,
- * rtshfac
- integer*2 mmidi,iinsiv
- logical restpend,relacc,notmain,twoline,ismidi,crdacc
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- logical lowdot,dotxtup
- integer*4 ihornb(nm,24),nornb(nm)
- character*1 ulq(nm,9),chax
- character*7 nosymq
- character*8 noteq
- character*79 notexq,outq
- character*80 soutq
- logical btest,isleft,isright,beamon
- character*79 inameq
- common /comtop / itopfacteur,ibotfacteur,interfacteur,isig0,
- * isig,lastisig,fracindent,widthpt,height,hoffpt,voffpt,idsig,
- * lnam(nm),inameq(nm)
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
- common /commidisig/ midisig
- common /commvel/ midivel(nm),midvelc(0:nm),midibal(nm),midbc(0:nm)
- * ,miditran(nm),midtc(0:nm),noinst,iinsiv(nm)
- common /comcc/ ncc(nm),tcc(nm,10),ncmidcc(nm,10),
- * maxdotmv(nm),ndotmv(nm),updot(nm,20),rtdot(nm,20)
-c
-c This subr. once produced notexq for entire chord. 10/18/97 altered to write
-c chord notes as we go. 10/22/97 find range of icrd first.
-c 2/25/98 moved rangefinding to precrd so done before slurs, so now
-c on entry, icrd1, icrd2 define range of icrd for this chord.
-c
-c Set counter (for this note) for chord notes present. Set notmain=T.
-c Will test for notmain=.true. in addmidi to tell whether to save pitch.
-c
- nmidcrd = 0
- notmain = .true.
- crdacc = .false.
- do 5 icrd = icrd1 , icrd2
- lnote = 0
- nolev = igetbits(icrdat(icrd),7,12)
-c
-c 3/8/03 save original pitch to use in midi, in case 2nds alter things.
-c
- nolevo = nolev
-c
-c Check for special situations with 2nds (see precrd).
-c
- if (btest(nacc,30) .and. nolev.eq.nolevm-1) then
-c
-c Upstem, 2nd with upper as main, interchange pitches,
-c rt-shift upper (now chord note). Lower (orig chord, now main)
-c if dotted, probably had shifted dot, dot parameters must be moved
-c from chord to main
-c
- nolev = nolevm
- if (btest(icrdat(icrd),26)) then
-c
-c Orig. chord note dot shift, must transfer to main.
-c
- icrdotsav = icrdot(icrd)
- icrdatsav = icrdat(icrd)
- if (btest(irest(ivx,ip),19)) then
-c
-c Main note (upper) had a dot shift, must move it to chord
-c
- call setbits(icrdat(icrd),1,26,1)
- call setbits(icrdot(icrd),7,0,
- * nint(updot(ivx,ndotmv(ivx)+1)*10)+64)
- call setbits(icrdot(icrd),7,7,
- * nint(rtdot(ivx,ndotmv(ivx)+1)*10)+64)
-c
-c May need to worry about other chord params (accid shefts etc) later
-c
- else
- icrdat(icrd) = ibclr(icrdat(icrd),26)
- end if
-c
-c We are adding a main note dot shift, so push any later ones back
-c
-
- if (.not.btest(irest(ivx,ip),19)) then
- maxdotmv(ivx) = maxdotmv(ivx)+1
- do 1 indm = maxdotmv(ivx) , ndotmv(ivx)+2 , -1
- updot(ivx,indm) = updot(ivx,indm-1)
- rtdot(ivx,indm) = rtdot(ivx,indm-1)
-1 continue
- end if
- irest(ivx,ip) = ibset(irest(ivx,ip),19)
- updot(ivx,ndotmv(ivx)+1) = 0.1*(iand(127,icrdotsav)-64)
- rtdot(ivx,ndotmv(ivx)+1) =
- * 0.1*(iand(127,ishft(icrdotsav,-7))-64)
- end if
- else if (btest(nacc,31) .and. nolev.eq.nolevm+1) then
-c
-c Downstem, 2nd with lower as main, interchange pitches,
-c left-shift lower (now chord note). Lower (orig main, now chord)
-c probably had shifted dot, dot parameters must be moved from
-c main to chord
-c
- nolev = nolevm
- if (btest(irest(ivx,ip),19)) then
- icrdotsav = icrdot(icrd)
- icrdatsav = icrdat(icrd)
- icrdat(icrd) = ibset(icrdat(icrd),26)
-c bits in icrdot
-c 0-6 10*abs(vertical dot shift in \internote) + 64
-c 7-13 10*abs(horizontal dot shift in \internote) + 64
-c Assuming >0 for now!
- call setbits(icrdot(icrd),7,0,
- * nint(updot(ivx,ndotmv(ivx)+1)*10)+64)
- call setbits(icrdot(icrd),7,7,
- * nint(rtdot(ivx,ndotmv(ivx)+1)*10)+64)
-c
-c Must also set dot shift for (now) main note (orig. chord note).
-c
- if (btest(icrdatsav,26)) then
- updot(ivx,ndotmv(ivx)+1) = 0.1*(iand(127,icrdotsav)-64)
- rtdot(ivx,ndotmv(ivx)+1) =
- * 0.1*(iand(127,ishft(icrdotsav,-7))-64)
- else
-c
-c No dot move on original chord (now main) note,
-c
- updot(ivx,ndotmv(ivx)+1) = 0.
- rtdot(ivx,ndotmv(ivx)+1) = 0.
- end if
- end if
- end if
-c
-c Lower dot for lower-voice notes?. Conditions are:
-c 1. Dotted time value
-c 2. Lower voice of two
-c 3. Note is on a line
-c 4. Not a rest (cannot be a rest in a chord!)
-c. 5. Flag (lowdot) is set to true
-c
- if (lowdot .and. nvmx.eq.2 .and. ivx.le.nv) then
- if (2**log2(nodu).ne.nodu .and. mod(nolev-ncm,2).eq.0) then
- if (btest(icrdat(icrd),26)) then
-c
-c Note already in movdot list. Drop by 2.
-c
- call setbits(icrdot(icrd),7,0,
- * igetbits(icrdot(icrd),7,0)-20)
- else
-c
-c Not in list so just move it right now
-c
- call dotmov(-2.,0.,soutq,lsout,igetbits(islur,1,3))
- end if
- end if
- end if
- if (btest(icrdat(icrd),26)) then
-c
-c Move the dot. Basic call for chord notes, not main note.
-c
- updotc = 0.1*(iand(127,icrdot(icrd))-64)
- rtdotc = 0.1*(iand(127,ishft(icrdot(icrd),-7))-64)
- call dotmov(updotc,rtdotc,soutq,lsout,igetbits(islur,1,3))
- end if
- isleft = btest(icrdat(icrd),23)
- isright = btest(icrdat(icrd),24)
-c
-c Check for ornament in chord.
-c
- if (icrdorn(icrd) .gt. 0) then
- call putorn(icrdorn(icrd),nolev,nolevm,nodu,nornb,ulq,
- * ibmcnt,ivx,ncm,islur,nvmx,nv,ihornb,stemlen,outq,lout,
- * ip,0,beamon,.true.)
- call addstr(outq,lout,soutq,lsout)
- end if
-c
-c Chord-note symbol. First check for breve
-c
- if (nodu .eq. 128) then
- nosymq = chax(92)//'zbreve'
- lsym = 7
- else
-c
-c Not a breve chord. Get first letters in chord-note symbol
-c
- if (isleft) then
- nosymq = chax(92)//'l'
- else if (isright) then
- nosymq = chax(92)//'r'
- else
- nosymq = chax(92)//'z'
- end if
- if (nodu .ge. 64) then
- nosymq = nosymq(1:2)//'w'
- else if (nodu .ge. 32) then
- nosymq = nosymq(1:2)//'h'
- else
- nosymq = nosymq(1:2)//'q'
- end if
- if (2**log2(nodu).eq.nodu .and. .not.dotxtup) then
- lsym = 3
- else if (.not.btest(islur,3) .or. dotxtup) then
-c
-c Single dot
-c
- nosymq = nosymq(1:3)//'p'
- lsym = 4
- else
-c
-c Double dot
-c
- nosymq = nosymq(1:3)//'pp'
- lsym = 5
- end if
- end if
- if (btest(icrdat(icrd),19).and..not.btest(icrdat(icrd),27)) then
-c
-c Accidental and not MIDI-only. Build up bits 0-3 of nacc
-c
- nactmp = igetbits(icrdat(icrd),3,20)
-c
-c Kluge for bigness. Only means 'As' has not been issued
-c
- if (bacfac .ne. 1.e6) nactmp = nactmp+8
- call doacc(igetbits(icrdot(icrd),7,20)-107,
- * igetbits(icrdot(icrd),6,14),
-c * notexq,lnote,nactmp,nolev,ncmid(iv,ip))
-c Get original nolev, not altered to deal with 2nds
- * notexq,lnote,nactmp,igetbits(icrdat(icrd),7,12),
-c * ncmid(iv,ip))
- * ncmid(iv,ip),btest(icrdat(icrd),31))
- notexq = notexq(1:lnote)//nosymq
- crdacc = .true.
- else
- notexq = nosymq
- end if
- lnote = lnote+lsym
-c
-c Get note name (again if accid, due to possible octave jump)
-c
- call notefq(noteq,lnoten,nolev,ncm)
- if (lnoten.eq.1) call addblank(noteq,lnoten)
-c
-c Put in note name
-c
- notexq = notexq(1:lnote)//noteq
- lnote = lnote+lnoten
- if (btest(icrdat(icrd),25)) then
-c
-c Arpeggio signal
-c
- call putarp(tnow,ivx,ip,nolev,ncm,soutq,lsout)
- end if
- call addstr(notexq,lnote,soutq,lsout)
- if (ismidi) then
-c
-c Here is where we collect MIDI pitch info for the chord note. By checking
-c notmain, addmidi(...) knows to just compute the
-c pitch number and store it in mcpitch(nmidcrd). Then on call to addmidi()
-c for MAIN note, will put in note codes for all chord notes + main note.
-c
- kv = 1
- if (ivx .gt. iv) kv=2
- nmidcrd = nmidcrd+1
- if (nmidcrd .gt. 20) then
- print*
- print*,'21 chord notes is too many for midi processor'
- call stop1()
- end if
-c
-c Use original saved pitch level, unaltered by 2nds logic.
-c
- call addmidi(midchan(iv,kv),nolevo+miditran(instno(iv)),
- * igetbits(icrdat(icrd),3,20),midisig,1.,
- * .false.,.false.)
- end if
-5 continue
- notmain = .false.
- return
- end
- subroutine dodyn(ivx,ip,nolev,ncm,ipl,islur,irest,nvmx,nv,
- * beamon,ihornb,nornb,ulq,ibmcnt,nostem,soutq,lsout)
- parameter (nm=24)
-c
-c Inputs are array *elements* except ihornb,nornb,ulq
-c
- common /commus/ musize,whead20
- common /comdyn/ ndyn,idyndat(99),levdsav(nm),ivowg(12),hoh1(12),
- * hoh2(12),hoh2h1(2),ntxtdyn,ivxiptxt(41),txtdynq(41),
- * idynda2(99),levhssav(nm),listcresc,listdecresc
- character*128 txtdynq
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- logical btest,beamon,upstem,nostem
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- logical fontslur,upslur,WrotePsslurDefaults
- character*1 udqq,chax,ulq(nm,9)
- character*4 dynstrq
- character*5 numpq
- character*48 dyntablq,tempq
- character*79 notexq
- character*80 soutq
- integer*4 ihornb(nm,24),nornb(nm),idynn(10)
- common /comhair/ ihairuse,idhair(nm)
- data dyntablq /'ppppppp pp p mp mf f fp sfz ff fff ffff'/
- numdyn = 0
-c
-c Find dynamics for (ivx,ip) in list. May be as many as 4. Store idyn values
-c in idynn(1...4)
-c
- do 1 idyn = 1 , ndyn
- ivxtent = iand(idyndat(idyn),15)
- * +16*igetbits(idynda2(idyn),1,10)
- if (ivxtent .eq. ivx) then
- iptent = igetbits(idyndat(idyn),8,4)
- if (iptent .eq. ip) then
- numdyn = numdyn+1
- idynn(numdyn) = idyn
- else if (iptent .gt. ip) then
-c
-c I don't think there are any more possible for this ivx,ip, so exit loop
-c
- go to 2
- end if
- end if
-1 continue
-2 continue
-c
-c At this point there is a list of idyn's in idynn(1...numdyn)
-c Compute level, and stem-dir'n-based horizontal tweaks
-c
- hoffsd = 0.
-c
-c Set upstem to false as default
-c
- upstem = .false.
- if (btest(irest,0)) then
-c
-c It's a rest. Assume it doesn't go below the staff
-c
- lbot = ncm-4
- else if (.not.beamon) then
- if (udqq(nolev,ncm,islur,nvmx,ivx,nv).eq.'u' .or. nostem) then
- upstem = .true.
- if (.not.btest(ipl,10)) then
- lbot = min(nolev-1,ncm-4)
- else
- lbot = min(minlev-1,ncm-4)
- end if
- else
- hoffsd = -.5
- if (.not.btest(ipl,10)) then
- lbot = min(nolev-7,ncm-4)
- else
- lbot = min(minlev-7,ncm-4)
- end if
- end if
- else
- if (ulq(ivx,ibmcnt) .eq. 'u') then
- upstem = .true.
- if (.not.btest(ipl,10)) then
- lbot = min(nolev-1,ncm-4)
- else
- lbot = min(minlev-1,ncm-4)
- end if
- else
- hoffsd = -.5
-c
-c 171230 Desperation
-c lbot = ihornb(ivx,nornb(ivx))+1
- if (nornb(ivx).eq.0) then
- lbot = 1
- else
- lbot = ihornb(ivx,nornb(ivx))+1
- end if
- if (lbot .eq. 1) then
-c
-c Kluge for non-beamed, down xtup, for which ihorb was never set.
-c Assumes stem is shortened.
-c
- lbot = nolev-5
- end if
- nornb(ivx) = nornb(ivx)+1
- end if
- end if
- lbot = lbot-5
- jtxtdyn1 = 1
-c
-c Now ready to loop over current dyn's
-c
- do 3 icntdyn = 1 , numdyn
- idynd = idyndat(idynn(icntdyn))
- idynd2 = idynda2(idynn(icntdyn))
- idno = igetbits(idynd,4,12)
-c ivx = iand(15,idynd)
- ivx = iand(15,idynd)+16*igetbits(idynd2,1,10)
-c
-c Build the command into notex in stages. Insert name & rq'd args in order:
-c
-c Command name
-c hpstrt, hpcend, hpdend, pmxdyn
-c ivx
-c X X X
-c level
-c X X X
-c hoff
-c X X X X
-c d-mark
-c X
-c
- if (idno .eq. 0) then
-c
-c Text-dynamic
-c
- notexq = chax(92)//'txtdyn'
- lnote = 7
- else if (idno .le. 12) then
-c
-c Letter-group
-c
- notexq = chax(92)//'pmxdyn'
- lnote = 7
- else if (fontslur) then
- lnote = 7
- if (idno .eq. 13) then
-c
-c Start a font-based hairpin
-c
- notexq = chax(92)//'hpstrt'
- else if (idno .eq. 14) then
-c
-c End crescendo
-c
- notexq = chax(92)//'hpcend'
- else
-c
-c End decrescendo
-c
- notexq = chax(92)//'hpdend'
- end if
-c
-c Put in voice number as ID for font-based hairpin
-c
- if (ivx .le. 9) then
- notexq = notexq(1:lnote)//char(48+ivx)
- lnote = lnote+1
- else if (ivx .le. 19) then
- notexq = notexq(1:lnote)//'{1'//char(38+ivx)//'}'
- lnote = lnote+4
- else
- notexq = notexq(1:lnote)//'{2'//char(28+ivx)//'}'
- lnote = lnote+4
- end if
- else
-c
-c Postscript hairpins
-c
- lnote = 7
- if (idno .eq. 13) then
- notexq = chax(92)//'Icresc'
- else if (idno .eq.14) then
- notexq = chax(92)//'Idecresc'
- lnote = 9
- else
- notexq = chax(92)//'Tcresc'
- end if
- if (idno .le. 14) then
-c
-c Get and record ID no for start of ps hairpin
-c Find first unused ID
-c
- do 8 idh = 1 , 24
- if (.not.btest(ihairuse,idh)) go to 9
-8 continue
- call printl('Bad place in putdyn, call Dr. Don')
- call stop1()
-9 continue
- ihairuse = ibset(ihairuse,idh)
- idhair(ivx) = idh
- else
-c
-c Unrecord ID no for end of ps hairpin
-c
- call setbits(ihairuse,1,idhair(ivx),0)
- end if
-c
-c Write ID # for start or end of ps hairpin
-c
- idh = idhair(ivx)
- if (idh .le. 9) then
- notexq = notexq(1:lnote)//char(48+idh)
- lnote = lnote+1
- else if (idh .le. 19) then
- notexq = notexq(1:lnote)//'{1'//char(38+idh)//'}'
- lnote = lnote+4
- else
- notexq = notexq(1:lnote)//'{2'//char(28+idh)//'}'
- lnote = lnote+4
- end if
- end if
-c
-c Begin setting level
-c
- lbot1 = lbot
- if (idno.gt.0 .and. idno.le.5) then
-c
-c All letters are short so raise a bit.
-c
- lbot1 = lbot1+1
- else if (idno .ge. 13) then
- lbot1 = lbot1+2
- end if
-c
-c Convert so reference is bottom line
-c
- lbot1 = lbot1-ncm+4
- if ((fontslur.and.idno.eq.13) .or.
- * ((.not.fontslur).and.(idno.eq.13.or.idno.eq.14))) then
-c
-c Hairpin start. Save level and user-tweak before applying user tweak.
-c
- levdsav(ivx) = lbot1
- levhssav(ivx) = 0
- if (btest(idynd,16)) levhssav(ivx) = -64+igetbits(idynd,7,17)
- else if ((fontslur.and.idno.ge.14) .or. idno.eq.15) then
-c
-c Hairpin end; Compare level with saved start level before user-tweaks
-c
- lbot1 = min(lbot1,levdsav(ivx))
-c
-c Save pre-tweak level
-c
- lpretweak = lbot1
- end if
-c
-c Check for user-defined vertical tweak
-c
- if (btest(idynd,16)) lbot1 = lbot1-64+igetbits(idynd,7,17)
-c
-c Now horizontal stuff
-c
- hoff = hoffsd
-c
-c Some special horizontal tweaks
-c
- if (upstem .and. idno.gt.0 .and.
- * (idno.le.4 .or. idno.eq.8 .or. idno.eq.9)) hoff = hoff+.4
-c
-c User-defined tweaks
-c
- if (btest(idynd2,0))
- * hoff = hoff+(igetbits(idynd2,9,1)-256)*.1
- if (numdyn .gt. 1) then
-c
-c Horizontal-interaction-based tweaks.
-c
-c Cases:
-c numdyn type1 type2 type3 data used
-c 2 wrd-grp hrpnstrt - ivowg(1...12),hoh1(1...12)
-c 2 hrpnend wrd-grp - ivowg,hoh2
-c 2 hrpnend hrpnstrt - hoh2h1(1...2)
-c 3 hrpnend wrd-grp hrpnstrt ivowg,hoh2,hoh1
-c
- if (idno.gt.0 .and. idno.le.12) then
-c
-c Word-group, may need vertical tweak to line up.
-c
- lbot1 = lbot1+ivowg(idno)
-c
-c Protecting against hp start-stop on same note
-c
- else if (((fontslur.and.idno.ge.14).or.idno.eq.15)
- * .and. icntdyn.lt.numdyn) then
-c
-c Hairpin ending, check next type
-c
- if ((fontslur .and.
- * igetbits(idyndat(idynn(icntdyn+1)),4,12).eq.13)
- * .or. (.not.fontslur .and.
- * ((igetbits(idyndat(idynn(icntdyn+1)),4,12).eq.13)
- * .or.
- * (igetbits(idyndat(idynn(icntdyn+1)),4,12).eq.14))))
- * then
-c
-c Hairpin end then hairpin start, no words, (remember dealing with end now)
-c
- hoff = hoff+hoh2h1(1)
- else
-c
-c Hairpin end then word-group, need idno for w-g to set hp offset
-c
- hoff = hoff +
- * hoh2(igetbits(idyndat(idynn(icntdyn+1)),4,12))
- end if
-c
-c Protecting against hp start-stop on same note
-c
- else if (icntdyn.gt.1 .and. idno.gt.0 .and.
- * ((fontslur.and.idno.lt.14).or.
- * (.not.fontslur.and.idno.lt.15))) then
-c
-c Hairpin start, check prior type
-c
- if ((fontslur.and.
- * igetbits(idyndat(idynn(icntdyn-1)),4,12).ge.14)
- * .or.
- * (.not.fontslur.and.
- * igetbits(idyndat(idynn(icntdyn-1)),4,12).eq.15))
- * then
-c
-c Hairpin end then hairpin start, (remember dealing with start now)
-c
- hoff = hoff+hoh2h1(2)
- else
-c
-c Hairpin start after word-group, need idno for w-g to set hp offset
-c
- hoff = hoff+
- * hoh1(igetbits(idyndat(idynn(icntdyn-1)),4,12))
- end if
- end if
- end if
-c
-c End of if-block for 2- or 3-way interactions.
-c
- if ((.not.fontslur) .and. idno.ge.13)
-c
-c Slur font and hairpin. Add hoff, and change from \interneote to \qn@width
-c
- * hoff = (hoff+.5)*6./2.5
-c
-c Position corrections all done now. Put in the level.
-c
- if ((fontslur.and.idno.eq.13) .or.
- * ((.not.fontslur).and.(idno.eq.13.or.idno.eq.14))) then
-c
-c Hairpin start.
-c
- if (.not.fontslur) then
-c
-c Postscript hairpin start...inset placeholder for start level.
-
- notexq = notexq(1:lnote)//'{ }'
- lnote = lnote+5
- end if
- else
-c
-c Insert actual level in all cases except hairpin start
-c Create string with level in it
-c
- if (lbot1 .gt. 9) then
- numpq = '{'
- write(numpq(2:3),'(i2)')lbot1
- numpq = numpq(1:3)//'}'
- lnumpq = 4
- else if (lbot1 .gt. -1) then
- numpq = char(48+lbot1)
- lnumpq = 1
- else if (lbot1 .gt. -10) then
- numpq = '{'
- write(numpq(2:3),'(i2)')lbot1
- numpq = numpq(1:3)//'}'
- lnumpq = 4
- else
- numpq = '{'
- write(numpq(2:4),'(i3)')lbot1
- numpq = numpq(1:4)//'}'
- lnumpq = 5
- end if
-c
-c Level has now been computed and stored in numpq
-c Append the level
-c
- notexq = notexq(1:lnote)//numpq(1:lnumpq)
- lnote = lnote+lnumpq
- end if
- if (abs(hoff) .lt. .001) then
-c
-c No horiz offset
-c
- notexq = notexq(1:lnote)//'0'
- lnote = lnote+1
- else
-c
-c Horizontal tweak
-c
- lform = lfmt1(hoff)
- notexq = notexq(1:lnote)//'{'
- lnote = lnote+1
- write(notexq(lnote+1:lnote+lform),
- * '(f'//chax(48+lform)//'.1)')hoff
- lnote = lnote+lform
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- end if
- if (idno .eq. 0) then
-c
-c text-dynamic. Find the string and append it
-c
- do 4 jtxtdyn = jtxtdyn1 , ntxtdyn
-c ivxip = ivx+16*ip
- ivxip = ivx+32*ip
- if (ivxip .eq. ivxiptxt(jtxtdyn)) go to 5
-4 continue
- call printl('Abnormal stop in putdyn')
- call stop1()
-5 continue
- ltxtdyn = lenstr(txtdynq(jtxtdyn),128)
-c
-c Font size based on musicsize
-c
-c if (musize .eq. 20) then
-c notexq = notexq(1:lnote)//'{'//char(92)//'medtype'
-c * //char(92)//'it '
-c lnote = lnote+13
-c else if (musize .eq. 16) then
-c notexq = notexq(1:lnote)//'{'//char(92)//'normtype'
-c * //char(92)//'it '
-c lnote = lnote+14
-c else if (musize .eq. 24) then
-c notexq = notexq(1:lnote)//'{'//char(92)//'bigtype'
-c * //char(92)//'it '
-c lnote = lnote+13
-c else if (musize .eq. 29) then
-c notexq = notexq(1:lnote)//'{'//char(92)//'Bigtype'
-c * //char(92)//'it '
-c lnote = lnote+13
-c end if
-c
-c Do this to insert 1st 2 args of \txtdyn, allow 3rd to be longer (on next line)
-c
- call addstr(notexq(1:lnote),lnote,soutq,lsout)
- if (musize .eq. 20) then
- notexq = '{'//char(92)//'medtype'//char(92)//'it '
- lnote = 13
- else if (musize .eq. 16) then
- notexq = '{'//char(92)//'normtype'//char(92)//'it '
- lnote = 14
- else if (musize .eq. 24) then
- notexq = '{'//char(92)//'bigtype'//char(92)//'it '
- lnote = 13
- else if (musize .eq. 29) then
- notexq = '{'//char(92)//'Bigtype'//char(92)//'it '
- lnote = 13
- end if
-c
- notexq = notexq(1:lnote)//txtdynq(jtxtdyn)(1:ltxtdyn)//'}'
- lnote = lnote+ltxtdyn+1
-c
-c Reset jtxtdyn1 just in case >1 txtdyn on same note.
-c
- jtxtdyn1 = jtxtdyn+1
- else if (idno .le. 12) then
-c
-c Letter-group dynamic. Append the letter-group command
-c
- id = 4*idno
- dynstrq = dyntablq(id-3:id)
- id = lenstr(dynstrq,4)
- notexq = notexq(1:lnote)//chax(92)//dynstrq(1:id)
- lnote = lnote+1+id
- end if
- call addstr(notexq(1:lnote),lnote,soutq,lsout)
- if ((.not.fontslur).and.idno.eq.15) then
-c
-c PS slurs on, hairpin is ending. Go back and set height at beginning.
-c Add user-defined tweak to default level
-c
- lbot1 = lpretweak+levhssav(ivx)
- if (lbot1 .gt. 9) then
- numpq = '{'
- write(numpq(2:3),'(i2)')lbot1
- numpq = numpq(1:3)//'}'
- lnumpq = 4
- else if (lbot1 .gt. -1) then
- numpq = char(48+lbot1)
- lnumpq = 1
- else if (lbot1 .gt. -10) then
- numpq = '{'
- write(numpq(2:3),'(i2)')lbot1
- numpq = numpq(1:3)//'}'
- lnumpq = 4
- else
- numpq = '{'
- write(numpq(2:4),'(i3)')lbot1
- numpq = numpq(1:4)//'}'
- lnumpq = 5
- end if
-c
-c Construct string to search backwards for placeholder
-c
- if (idh .le. 9) then
- tempq = 'cresc'//char(48+idh)//'{ }'
- ltemp = 11
- else if (idh .le. 19) then
- tempq = 'cresc'//'{1'//char(38+idh)//'}{ }'
- ltemp = 14
- else
- tempq = 'cresc'//'{2'//char(28+idh)//'}{ }'
- ltemp = 14
- end if
- write(11,'(a)')soutq(1:lsout)//'%'
- lsout = 0
- call backfill(11,tempq,ltemp,
- * tempq(1:ltemp-5)//numpq(1:lnumpq),ltemp-5+lnumpq)
- end if
-3 continue
-c
-c Shrink arrays, decrease ndyn 111109
-c
- do 6 icntdyn = numdyn, 1 , -1
- do 7 jdyn = idynn(icntdyn) , ndyn-1
- idyndat(jdyn) = idyndat(jdyn+1)
- idynda2(jdyn) = idynda2(jdyn+1)
-7 continue
- ndyn = ndyn-1
-6 continue
- end
- subroutine dograce(ivx,ip,ptgr,soutq,lsout,ncm,nacc,ig,ipl,
- * farend,
- * beamon,nolev,ncmidx,islur,nvmx,nv,ibmcnt,tnote,ulq,instno)
-c
-c ip will be one LESS than current note, for way-after's before bar-end,
-c It is only used to find ig.
-c ig is returned to makeabar in case there's a slur that needs to be ended
-c
- parameter (nm=24)
- logical beamon,stemup
- common /comgrace/ ivg(37),ipg(37),nolevg(74),itoff(2,74),aftshft,
- * nng(37),ngstrt(37),ibarmbr,mbrest,xb4mbr,
- * noffseg,ngrace,nvolt,ivlit(83),iplit(83),nlit,
- * graspace(37),
- * lenlit(83),multg(37),upg(37),slurg(37),slashg(37),
- * naccg(74),voltxtq(6),litq(83)
- common /spfacs/ grafac,acgfac,accfac,xspfac,xb4fac,clefac,emgfac,
- * flagfac,dotfac,bacfac,agc1fac,gslfac,arpfac,
- * rptfac,lrrptfac,dbarfac,ddbarfac,dotsfac,upstmfac,
- * rtshfac
- common /comask/ bar1syst,fixednew,scaldold,
- * wheadpt,fbar,poenom
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- common /comoct/ noctup
- logical upg,slurg,slashg,bar1syst,upslur,btest,isgaft,iswaft,
- * normsp,farend,fontslur,WrotePsslurDefaults
- real*4 ptgr(37)
- character*80 soutq
- character*128 litq
- character*79 notexq
- character*20 voltxtq
- character*10 figq
- character*8 noteq,noteqGA
- character*3 acsymq
- character*1 sq,chax,udqq,ulq(nm,9)
- common /comfig/ itfig(2,74),figq(2,74),ivupfig(2,74),nfigs(2),
- * fullsize(nm),ivxfig2,ivvfig(2,74)
- sq = chax(92)
- isgaft = btest(ipl,29)
- iswaft = btest(ipl,31)
- normsp = .not. isgaft
-c
-c Find ig.
-c
- do 120 ig = 1 , ngrace
- if (ipg(ig).eq.ip .and. ivg(ig).eq.ivx) go to 121
-120 continue
- print*,'Problem finding grace index in dograce'
- stop
-121 continue
- ngs = ngstrt(ig)
- mg = multg(ig)
-c wheadpt1 = wheadpt*fullsize(ivx)
- wheadpt1 = wheadpt*fullsize(instno)
-c
-c For way-after-graces at end of bar, must set the octave.
-c
- if (farend) then
- noctup = 0
- if (ncm .eq.23) noctup = -2
- end if
- if (slurg(ig) .and. .not.iswaft .and..not.isgaft) then
- if (listslur .eq. 16777215) then
- print*
- print*,'You defined the twentyfifth slur, one too many!'
- write(15,'(/,a)')
- * 'You defined the twentyfifth slur, one too many!'
- call stop1()
- end if
-c
-c Slur on fore-grace. Get index of next slur not in use, from 23 down.
-c
- ndxslur = log2(16777215-listslur)
-
- end if
- if (nng(ig) .eq. 1) then
-c
-c Single grace.
-c
- if (normsp) then
-c
-c Anything but GA
-c
- call addstr(sq//'shlft',6,soutq,lsout)
- niptgr = nint(ptgr(ig))
-c
-c Empirical tweak for postscript.
-c
-C if (.not.fontslur) niptgr = niptgr+nint(wheadpt*.3)
-c++
- if (niptgr .lt. 10) then
- call addstr(chax(48+niptgr)//'{',2,soutq,lsout)
- else if (niptgr .lt. 100) then
- write(notexq(1:2),'(i2)')niptgr
- call addstr('{'//notexq(1:2)//'}{',5,soutq,lsout)
- else
- print*,
- * 'Call Dr. Don if you really want grace note group > 99 pt'
- stop
- end if
- else
- call addstr(sq//'gaft{1.5}{',11,soutq,lsout)
-c
-c GA. Compute aftshft, for later use.
-c
- aftshft = grafac
- if (naccg(ngstrt(ig)).gt.0) aftshft = aftshft+agc1fac
- aftshft = aftshft*wheadpt
- end if
- if (slurg(ig) .and. .not.isgaft .and..not.iswaft) then
-c
-c Start slur on pre-grace. No accounting needed since will be ended very soon.
-c
- call notefq(noteq,lnoten,nolevg(ngs),ncm)
- if (fontslur) then
- if (upg(ig)) then
- call addstr(sq//'islurd',7,soutq,lsout)
- else
- call addstr(sq//'isluru',7,soutq,lsout)
- end if
- else
-c
-c Start Postscript slur.
-c
- if (upg(ig)) then
- call addstr(sq//'isd',4,soutq,lsout)
- else
- call addstr(sq//'isu',4,soutq,lsout)
- end if
- end if
-c
-c Print slur number, 23-ndxslur
-c
- lnote = 0
- if (23-ndxslur .lt. 10) then
-c notexq = notexq(1:lnote)//chax(59-ndxslur)
- notexq = chax(71-ndxslur)
- lnote = 1
- else if (23-ndxslur .lt. 20) then
-c notexq = notexq(1:lnote)//'{1'//chax(49-ndxslur)//'}'
- notexq = '{1'//chax(61-ndxslur)//'}'
- lnote = 4
- else
- notexq = notexq(1:lnote)//'{2'//chax(51-ndxslur)//'}'
- lnote = 4
- end if
- call addstr(notexq(1:lnote)//noteq(1:lnoten),
- * lnote+lnoten,soutq,lsout)
- if (.not.fontslur) then
-c
-c Horizontal tweaks for postscript slur on single grace
-c
- stemup = .true.
- if (upg(ig)) then
-c
-c Check for up-grace + down stem. Get stem direction
-c
- if (.not.beamon) then
-c
-c Separate note. Get stem direction.
-c
- stemup = udqq(nolev,ncmidx,
- * islur,nvmx,ivx,nv) .eq. 'u'
- else
-c
-c In a beam
-c
- stemup = ulq(ivx,ibmcnt) .eq. 'u'
- end if
-c
-c Stop the shift if whole note
-c
- stemup = stemup .or. tnote.gt.63
- end if
- if (stemup) then
- call addstr('{-.3}',5,soutq,lsout)
- else
- call addstr('{-.8}',5,soutq,lsout)
- end if
- end if
- end if
- if (naccg(ngs) .gt. 0) then
- call notefq(noteq,lnoten,nolevg(ngs),ncm)
-c
-c Save for checking octave shifts in GA
-c
- if (isgaft) then
- lnotenGA = lnoten
- noteqGA = noteq
- end if
-c
- if (lnoten .eq. 1) call addblank(noteq,lnoten)
- call accsym(naccg(ngs),acsymq,lacc)
- call addstr(sq//'big'//acsymq(1:lacc)//
- * noteq(1:lnoten),4+lacc+lnoten,soutq,lsout)
- end if
- if (slashg(ig)) then
- notexq = sq//'grc'
- lnote = 4
- else if (mg .eq. 0) then
- notexq = sq//'zq'
- lnote = 3
- else
- notexq = sq//'zc'
- do 61 i = 2 , mg
- notexq = notexq(1:i+1)//'c'
-61 continue
- lnote = mg+2
- end if
- if (upg(ig)) then
- notexq = notexq(1:lnote)//'u'
- else
- notexq = notexq(1:lnote)//'l'
- end if
- call addstr(notexq,lnote+1,soutq,lsout)
- call notefq(noteq,lnoten,nolevg(ngs),ncm)
-c
- if (isgaft .and. naccg(ngs).eq.0) then
- lnotenGA = lnoten
- noteqGA = noteq
- end if
-c
- if (lnoten .eq. 1) call addblank(noteq,lnoten)
- call addstr(noteq,lnoten,soutq,lsout)
- if (slashg(ig)) call addstr(sq//'off{-'//sq//
- * 'noteskip}',16,soutq,lsout)
-c
-c Above code needed since slashg causes spacing
-c
- if (slurg(ig) .and. (iswaft.or.isgaft)) then
-c
-c Terminate slur on single after-grace
-c
- ndxslur = igetbits(ipl,5,23)
- call notefq(noteq,lnoten,nolevg(ngs),ncm)
- call addstr(sq//'tslur',6,soutq,lsout)
-c
-c Print 24-ndxslur
-c
-c if (11-ndxslur .lt. 10) then
- if (23-ndxslur .lt. 10) then
-c call addstr(chax(59-ndxslur)//noteq(1:lnoten),
- call addstr(chax(71-ndxslur)//noteq(1:lnoten),
- * 1+lnoten,soutq,lsout)
- else if (23-ndxslur .lt. 20) then
- call addstr('{2'//chax(61-ndxslur)//'}'//noteq(1:lnoten),
- * 4+lnoten,soutq,lsout)
- else
-c call addstr('{1'//chax(49-ndxslur)//'}'//noteq(1:lnoten),
- call addstr('{1'//chax(51-ndxslur)//'}'//noteq(1:lnoten),
- * 4+lnoten,soutq,lsout)
- end if
- slurg(ig) = .false.
- listslur = ibclr(listslur,ndxslur)
- end if
- call addstr('}',1,soutq,lsout)
-c
-c+++ Try to fix loss of octave with single gaft
-c
- if (isgaft) then
- itrans = 0
- do 1 i = 1 , lnotenGA
- if (noteqGA(i:i) .eq. chax(39)) then
- itrans = itrans+7
- else if (noteqGA(i:i) .eq. chax(96)) then
- itrans = itrans-7
- end if
-1 continue
- if (itrans. eq. -14) then
- call addstr(sq//'advance'//sq//'transpose-14',21,
- * soutq,lsout)
- else if (itrans .eq. -7) then
- call addstr(sq//'advance'//sq//'transpose-7',20,
- * soutq,lsout)
- else if (itrans .eq. 7) then
- call addstr(sq//'advance'//sq//'transpose7',19,
- * soutq,lsout)
- else if (itrans .eq. 14) then
- call addstr(sq//'advance'//sq//'transpose14',20,
- * soutq,lsout)
- end if
- end if
- else
-c
-c Multiple grace. Put in literally. Compute beam stuff
-c
- sumx = 0.
- sumy = 0.
- sumxy = 0.
- sumxx = 0.
- sumyy = 0.
- x = 0.
- do 118 ing = ngs , ngs+nng(ig)-1
- if (ing.gt.ngs .and. naccg(ing).gt.0) x = x+acgfac
- y = nolevg(ing)
- sumx = sumx + x
- sumy = sumy + y
- sumxy = sumxy + x*y
- sumxx = sumxx + x*x
- sumyy = sumyy + y*y
- x = x+emgfac
-118 continue
- delta = nng(ig)*sumxx-sumx*sumx
- em = (nng(ig)*sumxy-sumx*sumy)/delta
- islope = nint(0.5*em*gslfac)
- if (iabs(islope) .gt. 9) islope = isign(9,islope)
- beta = (sumy-islope/gslfac*sumx)/nng(ig)
- nolev1 = nint(beta)
-c
-c Back up
-c
- notexq = sq//'settiny'//sq//'off{'
- if (normsp) then
- write(notexq(14:18),'(a1,f4.1)')'-',ptgr(ig)
- call addstr(notexq(1:18)//'pt}',21,soutq,lsout)
- finalshift = ptgr(ig)
- else
- aftshft = wheadpt*1.33
- if (naccg(ngstrt(ig)).gt.0) aftshft = aftshft+wheadpt*0.5
- write(notexq(14:17),'(f4.1)')aftshft
- call addstr(notexq(1:17)//'pt}'//sq//'bsk',24,soutq,lsout)
- end if
-c
-c Start the beam
-c
- notexq = sq//'ib'
- do 119 ing = 2 , mg
- notexq = notexq(1:ing+1)//'b'
-119 continue
- if (upg(ig)) then
- notexq = notexq(1:mg+2)//'u'
- else
- notexq = notexq(1:mg+2)//'l'
- end if
- notexq = notexq(1:mg+3)//'0'
-c
-c Get starting note for beam
-c
- call notefq(noteq,lnoten,nolev1,ncm)
- call addstr(notexq(1:mg+4)//noteq(1:lnoten),
- * mg+4+lnoten,soutq,lsout)
-c
-c Put in the slope
-c
- if (islope .ge. 0) then
- call addstr(chax(48+islope),1,soutq,lsout)
- else
- call addstr('{-'//chax(48-islope)//'}',4,soutq,lsout)
- end if
-c
-c Start a slur on multiple fore-grace
-c
- if (slurg(ig) .and. .not.isgaft .and. .not.iswaft) then
- call notefq(noteq,lnoten,nolevg(ngs),ncm)
- if (fontslur) then
- if (upg(ig)) then
- call addstr(sq//'islurd',7,soutq,lsout)
- else
- call addstr(sq//'isluru',7,soutq,lsout)
- end if
- else
-c
-c Need a tweak for postscript slur
-c
- if (upg(ig)) then
- call addstr(sq//'isd',4,soutq,lsout)
- else
- call addstr(sq//'isu',4,soutq,lsout)
- end if
- end if
-c
-c Print 23-ndxslur
-c
- if (23-ndxslur .lt. 10) then
- call addstr(chax(71-ndxslur)//noteq(1:lnoten),1+lnoten,
- * soutq,lsout)
- else if (23-ndxslur .lt. 2) then
- call addstr('{1'//chax(61-ndxslur)//'}'//noteq(1:lnoten),
- * 4+lnoten,soutq,lsout)
- else
- call addstr('{1'//chax(51-ndxslur)//'}'//noteq(1:lnoten),
- * 4+lnoten,soutq,lsout)
- end if
-c
-c Put in tweak for postscript slur
-c
- if (.not.fontslur) call addstr('{-.3}',5,soutq,lsout)
- end if
-c
-c Put in first note. Call notefq again in case octave changed
-c
- call notefq(noteq,lnoten,nolevg(ngs),ncm)
- if (naccg(ngs) .eq. 0) then
- notexq = sq//'zqb0'//noteq(1:lnoten)
- lnote = 5+lnoten
- else
- if (lnoten .eq. 1) call addblank(noteq,lnoten)
- call accsym(naccg(ngs),acsymq,lacc)
- notexq = sq//'big'//acsymq(1:lacc)//noteq(1:lnoten)
- lnote = 4+lacc+lnoten
- call notefq(noteq,lnoten,nolevg(ngs),ncm)
- notexq =notexq(1:lnote)//sq//'zqb0'//noteq(1:lnoten)
- lnote = lnote+5+lnoten
- end if
- call addstr(notexq,lnote,soutq,lsout)
- do 127 ing = ngs+1 , ngs+nng(ig)-1
-c
-c Skip
-c
- ptoff = wheadpt1*emgfac
- if (naccg(ing).gt.0) ptoff = ptoff+wheadpt1*acgfac
- if (isgaft .and. .not.iswaft) aftshft = aftshft+ptoff
- notexq = sq//'off{'
- write(notexq(6:8),'(f3.1)')ptoff
- if (normsp) finalshift = finalshift-ptoff
- call addstr(notexq(1:8)//'pt}',11,soutq,lsout)
- if (ing .eq. ngs+nng(ig)-1) then
-c
-c Terminate beam if needed
-c
- if (upg(ig)) then
- call addstr(sq//'tbu0',5,soutq,lsout)
- else
- call addstr(sq//'tbl0',5,soutq,lsout)
- end if
-c
-c Terminate after slur if needed
-c
- if ((isgaft.or.iswaft) .and. slurg(ig)) then
-c if (iswaft) ndxslur = igetbits(ipl,4,23)
- if (iswaft) ndxslur = igetbits(ipl,5,23)
- call notefq(noteq,lnoten,nolevg(ing),ncm)
- call addstr(sq//'tslur',6,soutq,lsout)
-c
-c Print 11-ndxslur
-cc Print 23-ndxslur
-c
- if (23-ndxslur .lt. 10) then
- call addstr(chax(71-ndxslur)//noteq(1:lnoten),
- * 1+lnoten,soutq,lsout)
- else if (23-ndxslur .lt. 20) then
- call addstr('{2'//chax(61-ndxslur)//'}'
- * //noteq(1:lnoten),4+lnoten,soutq,lsout)
- else
- call addstr('{1'//chax(51-ndxslur)//'}'
- * //noteq(1:lnoten),4+lnoten,soutq,lsout)
- end if
-c
-c Stop slur terminator after exit from this subroutine
-c
- listslur = ibclr(listslur,ndxslur)
- slurg(ig) = .false.
- end if
- end if
-c
-c Accidental if needed
-c
- if (naccg(ing).gt.0) then
- call notefq(noteq,lnoten,nolevg(ing),ncm)
- if (lnoten .eq. 1) call addblank(noteq,lnoten)
- call accsym(naccg(ing),acsymq,lacc)
- call addstr(sq//'big'//acsymq(1:lacc)
- * //noteq(1:lnoten),4+lacc+lnoten,soutq,lsout)
- end if
-c
-c Put in the (beamed) grace note
-c
- call notefq(noteq,lnoten,nolevg(ing),ncm)
- call addstr(sq//'zqb0'//noteq(1:lnoten),5+lnoten,
- * soutq,lsout)
-127 continue
-c
-c Terminate the grace
-c
-c notexq = sq//'normalnotesize'//sq//'off{'
-c lnote = 20
-c notexq = '}'//sq//'off{'
-c lnote = 6
- notexq = sq//'off{'
- lnote = 5
- ptoff = wheadpt*emgfac
- if (iand(nacc,3).gt.0 .and. .not.btest(nacc,17))
- * ptoff = ptoff+wheadpt*accfac
- if (isgaft .and. .not.iswaft) then
- notexq = notexq(1:5)//'-'
- lnote = 6
- ptoff = aftshft
- end if
- if (normsp) ptoff = finalshift
- if (ptoff .lt. 9.95) then
- write(notexq(lnote+1:lnote+3),'(f3.1)')ptoff
- lnote = lnote+3
- else if (ptoff .lt. 99.95) then
- write(notexq(lnote+1:lnote+4),'(f4.1)')ptoff
- lnote = lnote+4
- else
- write(notexq(lnote+1:lnote+5),'(f5.1)')ptoff
- lnote = lnote+5
- end if
- call addstr(notexq(1:lnote)//'pt}',lnote+3,soutq,lsout)
- if (isgaft.and..not.iswaft) call addstr(sq//'sk',3,soutq,lsout)
- call addstr(sq//'resetsize',10,soutq,lsout)
- end if
- return
- end
- subroutine dopsslur(nolev,isdat1,isdat2,isdat3,isdat4,nsdat,ip,
- * iv,kv,nv,beamon,ncm,soutq,lsout,ulq,islur,
- * ipl,iornq,islhgt,tno,nacc)
-c
-c Called once per main note.
-c 12 May 2002 Create this subroutine to isolate postscript slurs/ties.
-c Always set \Nosluradjust\Notieadjust
-c
- parameter (nm=24,mv=24576)
- integer*4 isdat1(202),isdat2(202),isdat3(202),isdat4(202)
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- common /comsln/ is1n1,is2n1,irzbnd,isnx
- character*1 ulq,slurudq,udfq,udqq,chax
- character*79 notexq
- character*8 noteq
- character*80 soutq
- logical upslur,beamon,btest,stemup,iscrd,
- * settie,fontslur,pstie,WrotePsslurDefaults
- logical slmon,dbltie
- common /comslm/ levson(0:nm),levsoff(0:nm),imidso(0:nm),
- * naccbl(0:nm),laccbl(0:nm,10),jaccbl(0:nm,10),nusebl,
- * slmon(0:nm),dbltie
- integer*2 mmidi,iinsiv
- logical restpend,relacc,notmain,twoline,ismidi,crdacc
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
-c 130316
- common /commvel/ midivel(nm),midvelc(0:nm),midibal(nm),midbc(0:nm)
- * ,miditran(nm),midtc(0:nm),noinst,iinsiv(nm)
-c
-c Bits in isdat1:
-c 13-17 iv
-c 3-10 ip
-c 11 start/stop switch
-c 12 kv-1
-c 19-25 ichar(code$)
-c 26 force direction?
-
-c 27 forced dir'n = up if on, set in sslur; also
-c final direction, set in doslur when beam is started, used on term.
-c 28-31 mod(ndxslur,16), set in doslur when slur is started, used on term.
-c 18 int(ndxslur/16), ditto. So this allows ndxslur>15.
-c 2 stem slur flag
-c 1 flag for "x" slur (voice-independent)
-c
-c Bits in isdat2
-c 0 Chord switch. Not set on main note.
-c 1-2 left/right notehead shift. Set only for chord note.
-c 3 tie positioning
-c 4 dotted flag
-c 6-11 voff1 1-63 => -31...+31
-c 12-18 hoff1 1-127 => -6.3...+6.3
-c 19-25 nolev
-c 26 \sluradjust (p+s)
-c 27 \nosluradjust (p-s)
-c 28 \tieadjust (p+t)
-c 29 \notieadjust (p-t)
-c
-c Bits in isdat3: Only used for slur endings
-c 0 set if midslur (at least one argument)
-c 1 set if curve (2 more args)
-c 2-7 32+first arg (height correction) (1st arg may be negative)
-c 8-10 second arg (initial slope)
-c 11-13 third arg (closing slope)
-c 14-21 tie level for use in LineBreakTies
-c 22-29 ncm for use in LineBreakTies
-c
-c Bits in isdat4 Only used for linebreak slurs
-c 0-5 Linebreak seg 1 voff 1-63 => -31...+31
-c 6-12 Linebreak seg 1 hoff 1-127 => -6.3...+6.3
-c 16-21 Linebreak seg 2 voff 1-63 => -31...+31
-c 22-28 Linebreak seg 2 hoff 1-127 => -6.3...+6.3
-c
-c In listslur bit ib is on if slur index ib is in use, ib=0-13.
-c ndxslur = slur index
-c Height of slur is nole+ivoff+iupdn. iupdn is +/-1 if t&s slurs on same note,
-c s-slur is blank (idcode=32), t-slur is idcode=1.
-c ivoff is user-defined shift or shift due to . or _ , or chord adjustment.
-c Ivoff will be set for ./_ only if no user-defined shift is specified.
-c If highest note has upslur, save slur height in islhgt in case
-c ornament must be moved.
-c
- islhgt = 0
- if (beamon) then
- stemup = ulq .eq. 'u'
- else if (nvmx(iv) .eq. 2) then
- if (.not.btest(islur,30)) then
-c
-c Single note, 2 lines of music, stem direction not forced
-c
- stemup = ivx .gt. nv
- else
- stemup = btest(islur,17)
- end if
- else
- stemup = udqq(nolev,ncm,islur,nvmx(iv),ivx,nv) .eq. 'u'
- end if
- iscrd = btest(ipl,10)
- if (ismidi) then
- settie = .false.
- dbltie = .false.
- end if
- do 1 isdat = 1 , nsdat
- isdata = isdat1(isdat)
- if (iv .eq. igetbits(isdata,5,13) .and.
- * ip .eq. igetbits(isdata,8,3) .and.
-c * kv .eq. igetbits(isdata,1,12)+1) then
- * (kv .eq. igetbits(isdata,1,12)+1 .or.
- * btest(isdata,1))) then
-c
-c Since iv and kv match, ivx will be correct
-c
- idcode = igetbits(isdata,7,19)
- ivoff = igetbits(isdat2(isdat),6,6)-32
- ihoff = igetbits(isdat2(isdat),7,12)-64
- iupdn = 0
- slurudq = 'd'
- nolevs = igetbits(isdat2(isdat),7,19)
- pstie = btest(isdat2(isdat),3) .or. idcode.eq.1
- if (btest(isdata,11)) then
-c
-c Turnon
-c Get slur direction
-c
- if (btest(isdata,26)) then
-c
-c Force slur direction
-c
- if (btest(isdata,27)) slurudq = 'u'
- else if (nvmx(iv) .eq. 1) then
-c
-c Only one voice per line
-c
- if (.not.beamon) then
-c
-c Separate note.
-c
- slurudq = udfq(nolev,ncm)
- else
-c
-c In a beam
-c
- if (ulq .ne. 'u') slurudq = 'u'
- end if
- if (iscrd) then
- if (nolevs .gt. ncm) then
- slurudq = 'u'
- else
- slurudq = 'd'
- end if
- end if
- else
-c
-c Two voices per line. Get default
-c
- if (ivx .gt. nv) slurudq = 'u'
-c
-c Upper voice of the two, so up slur
-c
- end if
- if (btest(isdata,2)) then
-c
-c ADjust for stem slur. ASSUME this is the ONLY pos'n adjustment.
-c
- if (stemup) then
- slurudq = 'u'
- ivoff = ivoff+4
- else
- slurudq = 'd'
- ivoff = ivoff-4
- end if
- end if
-c
-c Set level for slur starting on rest
-c
- if (nolevs.eq.0 .or. nolevs.gt.60) then
- if (slurudq .eq. 'u') then
- nolevs = ncm+2
- else
- nolevs = ncm-2
- end if
- end if
-c
-c Save up/down-ness for use at termination
-c
- if (slurudq .eq. 'u') isdata = ibset(isdata,27)
-c
-c End of section for setting slur direction, still in "Turnon" if-block.
-c
- if (btest(iornq,11).or.btest(iornq,12)) then
-c
-c Raise or lower slur by one unit provided . or _ is on same side as slur
-c
- ivoffinc = 0
- if ((stemup .and. slurudq.eq.'d') .or.
- * (.not.stemup .and. slurudq.eq.'u')) then
-c
-c Must move the slur for _ or .
-c
- if (stemup) then
- ivoffinc = -1
- else
- ivoffinc = 1
- end if
- if (((stemup .and. nolev.ge.ncm-2) .or.
- * (.not.stemup .and. nolev.le.ncm+2)) .and.
- * mod(abs(ncm-nolev),2).eq.0) ivoffinc = 2*ivoffinc
- ivoff = ivoff+ivoffinc
- end if
- end if
- if (listslur .eq. 16777215) then
- print*
- print*,'You1 defined the twentyfifth slur, one too many!'
- write(15,'(/,a)')
- * 'You defined the twentyfifth slur, one too many!'
- call stop1()
- end if
-c
-c Get index of next slur not in use, starting from 12 down
-c
- ndxslur = log2(16777215-listslur)
-c
-c Record slur index
-c
- listslur = ibset(listslur,ndxslur)
-c
-c Save for use on termination
-c
-c call setbits(isdata,4,28,ndxslur)
-c 080531 Allow >16 slurs
- call setbits(isdata,4,28,mod(ndxslur,16))
- call setbits(isdata,1,18,ndxslur/16)
-c
-c Shift for stem?
-c
- if (stemup .and. slurudq.eq.'u' .and. tno.lt.63.) then
- if (.not.pstie) then
- ihoff = ihoff+8
- else
- ihoff = ihoff+2
- end if
- end if
- if (iscrd) then
-c
-c Additional horiz shifts for h-shifted noteheads?
-c
- if (btest(isdat2(isdat),1)) then
-c
-c Slur start on left-shifted chord notehead. ASSUME downstem.
-c
- if (nolevs.eq.minlev .and. slurudq.eq.'d') then
- ihoff = ihoff-2
- else
- ihoff = ihoff-10
- end if
- else if (btest(isdat2(isdat),2)) then
-c
-c Right shifted chord notehead. ASSUME upstem.
-c
- if (nolevs.eq.maxlev .and. slurudq.eq.'u') then
- ihoff = ihoff+2
- else
- ihoff = ihoff+10
- end if
- end if
- end if
- notexq = chax(92)
- lnote = 1
-c
-c Check for local adjustment default changes
-c
- if (btest(isdat2(isdat),26)) then
- notexq = chax(92)//'sluradjust'//chax(92)
- lnote = 12
- else if (btest(isdat2(isdat),27)) then
- notexq = chax(92)//'nosluradjust'//chax(92)
- lnote = 14
- else if (btest(isdat2(isdat),28)) then
- notexq = chax(92)//'tieadjust'//chax(92)
- lnote = 11
- else if (btest(isdat2(isdat),29)) then
- notexq = chax(92)//'notieadjust'//chax(92)
- lnote = 13
- end if
- if (ihoff .eq. 0) then
-c
-c Write stuff for non-shifted start
-c
- notexq = notexq(1:lnote)//'islur'//slurudq
- lnote = lnote+6
- else
- notexq = notexq(1:lnote)//'is'//slurudq
- lnote = lnote+3
- end if
-c
-c Prepend postscript tie switch
-c
- if (pstie) then
- notexq = chax(92)//'tieforis'//slurudq//notexq(1:lnote)
- lnote = lnote+10
- end if
- if (btest(isdat2(isdat),4)) then
-c
-c Dotted slur
-c
-c noteq = notexq
-c notexq = chax(92)//'dotted'//noteq
- notexq = chax(92)//'dotted'//notexq(1:lnote)
- lnote = lnote+7
- end if
-c
-c Add slur index to string
-c Print 23-ndxslur
-c
- if (23-ndxslur .lt. 10) then
-c
-c 5/25/08 Allow 24 slurs
-c
- notexq = notexq(1:lnote)//chax(71-ndxslur)
- lnote = lnote+1
- else if (23-ndxslur .lt. 20) then
- notexq = notexq(1:lnote)//'{1'//chax(61-ndxslur)//'}'
- lnote = lnote+4
- else
- notexq = notexq(1:lnote)//'{2'//chax(51-ndxslur)//'}'
- lnote = lnote+4
- end if
-c
-c Add note name to string
-c
- islhgt = nolevs+iupdn+ivoff
- call notefq(noteq,lnoten,islhgt,ncm)
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
-c
-c Store height and staff mid level for use with LineBreakTies
-c
- call setbits(isdat3(isdat),8,14,islhgt)
- call setbits(isdat3(isdat),8,22,ncm)
-c
-c Save height (for ornament and barnobox interference) if topmost slur is up
-c
- if (slurudq.eq.'u' .and.
- * (.not.btest(isdat2(isdat),0).or.nolevs.eq.maxlev)) then
- islhgt = nolevs+iupdn+ivoff
-c
-c Save height & idcode if top voice and slur start
-c
- if (ivx.eq.ivmx(nv,nvmx(nv)) .and. islhgt.gt.is1n1) then
- is1n1 = islhgt
- is2n1 = idcode
- end if
- end if
- if (ihoff .ne. 0.) then
- shift = ihoff*0.1
- notexq = notexq(1:lnote)//'{'
- lnote = lnote+1
- lform = lfmt1(shift)
- write(notexq(lnote+1:lnote+lform),'(f'//
- * chax(48+lform)//'.1)') shift
- lnote = lnote+lform
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- end if
- call addstr(notexq,lnote,soutq,lsout)
-c
-c Zero out ip1 to avoid problems if slur goes to next input blk.
-c
- call setbits(isdata,8,3,0)
-c
-c Set slur-on data for midi. Only treat null-index slurs and ps ties for now.
-c
- if (ismidi .and. (idcode.eq.32 .or. idcode.eq.1)) then
-c levson(midchan(iv,kv)) = nolevs
-c 130316
- levson(midchan(iv,kv)) = nolevs+miditran(instno(iv))
- if (settie) dbltie = .true.
-c
-c Only way settie=T is if we just set a tie ending. So there's also a slur
-c start here, so set a flag telling addmidi not to zero out levson
-c
- end if
- else
-c
-c Slur is ending. Back thru list to find starting slur
-c
- do 3 j = isdat-1 , 1 , -1
- if (iv.eq.igetbits(isdat1(j),5,13) .and.
-c * kv.eq.igetbits(isdat1(j),1,12)+1) then
- * (kv.eq.igetbits(isdat1(j),1,12)+1
- * .or. btest(isdat1(j),1))) then
- if (idcode .eq. igetbits(isdat1(j),7,19)) then
- ndxslur = igetbits(isdat1(j),4,28)
-c
-c 080531 Allow >16 slurs
-c
- * +16*igetbits(isdat1(j),1,18)
- if (btest(isdat1(j),27)) slurudq = 'u'
- go to 4
- end if
- end if
-3 continue
- print*,'Bad place in doslur'
- call stop1()
-4 continue
-c
-c Bugfix 070901 for slur ending on rest in 2-voice staff
-c
- if (nolevs.le.2 .or. nolevs.gt.60) then
-c
-c Ending is on a rest, reset nolevs to default starting height
-c
- nolevs = igetbits(isdat2(j),7,19)
- end if
- if (btest(isdat3(isdat),0) .or. btest(isdat3(j),0)) then
-c
-c Deal with \curve or \midslur. isdat is ending, j is start.
-c
- if (btest(isdat3(isdat),0)) then
- imid = igetbits(isdat3(isdat),6,2)-32
- else
- imid = igetbits(isdat3(j),6,2)-32
- end if
-c
-c Postscript slurs, and \midslur adjustment is needed. Invoke macro
-c (from pmx.tex) that redefines \tslur as r'qd. Tentative mapping:
-c Abs(imid) Postscript slur type
-c 1 f
-c 2-3 default
-c 4 h
-c 5 H
-c 6+ HH
-c
- call addstr(chax(92)//'psforts'//
- * chax(48+min(abs(imid),6)),9,soutq,lsout)
- end if
- if (btest(isdata,2)) then
-c
-c ADjust for stem slur.
-c
- if (stemup) then
- slurudq = 'u'
- ivoff = ivoff+4
- else
- slurudq = 'd'
- ivoff = ivoff-4
- end if
- end if
-c
-c Shift slur ending for stem on any note?
-c
- if (.not.stemup .and. slurudq.eq.'d' .and. tno.lt.63.) then
- if (.not.pstie) then
- ihoff = ihoff-8
- else
- ihoff = ihoff-3
- end if
- end if
- if (iscrd) then
-c
-c Shift termination for shifted notehead?
-c
- if (btest(isdat2(isdat),1)) then
-c
-c Left-shifted chord notehead. ASSUME downstem.
-c
- if (nolevs.eq.minlev .and. slurudq.eq.'d') then
- ihoff = ihoff-2
- else
- ihoff = ihoff-10
- end if
- else if (btest(isdat2(isdat),2)) then
-c
-c Right shifted chord notehead. ASSUME upstem.
-c
- if (nolevs.eq.maxlev .and. slurudq.eq.'u') then
- ihoff = ihoff+2
- else
- ihoff = ihoff+10
- end if
- end if
- end if
- if (ihoff .eq. 0) then
- notexq = chax(92)//'tslur'
- lnote = 6
- else
-c
-c Shift needed
-c
- notexq = chax(92)//'ts'
- lnote = 3
- end if
-c
-c Switch to postscript tie
-c
- if (pstie) then
- notexq = chax(92)//'tieforts'//notexq(1:lnote)
- lnote = lnote+9
- end if
-c
-c Print 13-ndxslur
-c 5/25/08 Allow 14 slurs
-c
- if (23-ndxslur .lt. 10) then
- notexq = notexq(1:lnote)//chax(71-ndxslur)
- lnote = lnote+1
- else if (23-ndxslur .lt. 20) then
- notexq = notexq(1:lnote)//'{1'//chax(61-ndxslur)//'}'
- lnote = lnote+4
- else
- notexq = notexq(1:lnote)//'{2'//chax(51-ndxslur)//'}'
- lnote = lnote+4
- end if
- if (btest(iornq,11).or.btest(iornq,12)) then
-c
-c Raise or lower slur by one unit provided . or _ is on same side as slur
-c
- ivoffinc = 0
- if ((stemup .and. slurudq.eq.'d') .or.
- * (.not.stemup .and. slurudq.eq.'u')) then
- if (stemup) then
- ivoffinc = -1
- else
- ivoffinc = 1
- end if
- if (((stemup .and. nolev.ge.ncm-2) .or.
- * (.not.stemup .and. nolev.le.ncm+2)) .and.
- * mod(abs(ncm-nolev),2).eq.0) ivoffinc = 2*ivoffinc
- end if
- ivoff = ivoff+ivoffinc
- end if
- call notefq(noteq,lnoten,nolevs+iupdn+ivoff,ncm)
- if (slurudq.eq.'u' .and.
- * (.not.btest(isdat2(isdat),0).or.nolevs.eq.maxlev)) then
- islhgt = nolevs+iupdn+ivoff
-c
-c If topvoice, upslur, and idcode checks, no more need to keep hgt for barno.
-c
- if (ivx.eq.ivmx(nv,nvmx(nv)) .and. is1n1.gt.0) then
- if (idcode .eq. is2n1) is1n1=0
- end if
- end if
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
- if (ihoff .ne. 0) then
- shift = ihoff*0.1
- notexq = notexq(1:lnote)//'{'
- lnote = lnote+1
- lform = lfmt1(shift)
- write(notexq(lnote+1:lnote+lform),
- * '(f'//chax(48+lform)//'.1)')shift
- lnote = lnote+lform
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- end if
- call addstr(notexq,lnote,soutq,lsout)
-c
-c Clear the bit from list of slurs in use
-c
- listslur = ibclr(listslur,ndxslur)
-c
-c Zero out the entire strings for start and stop
-c
- isdata = 0
- isdat2(isdat) = 0
- isdat3(isdat) = 0
- isdat4(isdat) = 0
- isdat1(j) = 0
- isdat2(j) = 0
- isdat3(j) = 0
- isdat4(j) = 0
-c
-c Set midi info for slur ending
-c
- if (ismidi .and. (idcode.eq.32 .or. idcode.eq.1)) then
- icm = midchan(iv,kv)
- if (slmon(icm)) then
- if (nolevs+miditran(instno(iv)).eq.levson(icm) .and.
- * iand(7,nacc).eq.0) then
-c
-c There is a tie here. NB!!! assumed no accidental on 2nd member of tie.
-c
- levsoff(icm) = nolevs+miditran(instno(iv))
- settie = .true.
- else
- levsoff(icm) = 0
- levson(icm) = 0
- slmon(icm) = .false.
- end if
- end if
- end if
- end if
- isdat1(isdat) = isdata
- end if
-1 continue
-c
-c Clear and collapse the slur data list
-c
- numdrop = 0
- do 2 isdat = 1 , nsdat
- if (isdat1(isdat) .eq. 0) then
- numdrop = numdrop+1
- else if (numdrop .gt. 0) then
- isdat1(isdat-numdrop) = isdat1(isdat)
- isdat2(isdat-numdrop) = isdat2(isdat)
- isdat3(isdat-numdrop) = isdat3(isdat)
- isdat4(isdat-numdrop) = isdat4(isdat)
- isdat1(isdat) = 0
- isdat2(isdat) = 0
- isdat3(isdat) = 0
- isdat4(isdat) = 0
- end if
-2 continue
- nsdat = nsdat-numdrop
-c call report(nsdat,isdat1,isdat2)
- return
- end
- subroutine doslur(nolev,isdat1,isdat2,isdat3,nsdat,ip,iv,kv,nv,
- * beamon,ncm,soutq,lsout,ulq,islur,ipl,iornq,islhgt,tno,nacc)
-c
-c Called once per main note. (5/26/02) for non-ps slurs only
-c
- parameter (nm=24,mv=24576)
- integer*4 isdat1(202),isdat2(202),isdat3(202)
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- common /comsln/ is1n1,is2n1,irzbnd,isnx
- character*1 ulq,slurudq,udfq,udqq,chax
- character*79 notexq
- character*8 noteq
- character*80 soutq
- logical upslur,beamon,btest,stemup,iscrd,sfound,tfound,tmove,
- * settie,fontslur,WrotePsslurDefaults
- logical slmon,dbltie
- common /comslm/ levson(0:nm),levsoff(0:nm),imidso(0:nm),
- * naccbl(0:nm),laccbl(0:nm,10),jaccbl(0:nm,10),nusebl,
- * slmon(0:nm),dbltie
- integer*2 mmidi,iinsiv
- logical restpend,relacc,notmain,twoline,ismidi,crdacc
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
-c 130316
- common /commvel/ midivel(nm),midvelc(0:nm),midibal(nm),midbc(0:nm)
- * ,miditran(nm),midtc(0:nm),noinst,iinsiv(nm)
-c
-c Bits in isdat1:
-c 13-17 iv
-c 3-10 ip
-c 11 start/stop switch
-c 12 kv-1
-c 19-25 ichar(code$)
-c 26 force direction?
-c 27 forced dir'n = up if on, set in sslur; also
-c final direction, set in doslur when beam is started, used on term.
-c 28-31 ndxslur, set in doslur when beam is started, used on term.
-c
-c Bits in isdat2
-c 0 Chord switch. Not set on main note.
-c 1-2 left/right notehead shift. Set only for chord note.
-c 3 tie positioning
-c 4 dotted flag
-c 6-11 voff1 1-63 => -31...+31
-c 12-18 hoff1 1-127 => -6.3...+6.3
-c 19-25 nolev
-c
-c Bits in isdat3: Only used for slur endings
-c 0 set if midslur (at least one argument)
-c 1 set if curve (2 more args)
-c 2-7 32+first arg (height correction) (1st arg may be negative)
-c 8-10 second arg (initial slope)
-c 11-13 third arg (closing slope)
-c
-c In listslur bit ib is on if slur index ib is in use, ib=0-23.
-c ndxslur = slur index
-c Height of slur is nole+ivoff+iupdn. iupdn is +/-1 if t&s slurs on same note,
-c s-slur is blank (idcode=32), t-slur is idcode=1.
-c ivoff is user-defined shift or shift due to . or _ , or chord adjustment.
-c Ivoff will be set for ./_ only if no user-defined shift is specified.
-c If highest note has upslur, save slur height in islhgt in case
-c ornament must be moved.
-c
- islhgt = 0
- if (beamon) then
- stemup = ulq .eq. 'u'
- else if (nvmx(iv) .eq. 2) then
- if (.not.btest(islur,30)) then
-c
-c Single note, 2 lines of music, stem direction not forced
-c
- stemup = ivx .gt. nv
- else
- stemup = btest(islur,17)
- end if
- else
- stemup = udqq(nolev,ncm,islur,nvmx(iv),ivx,nv) .eq. 'u'
- end if
- iscrd = btest(ipl,10)
- if (btest(islur,1)) then
-c
-c 't'-slur (idcode=1) somewhere on this note. Find it, check height against
-c 's'-slur (idcode=32)
-c
- sfound = .false.
- tfound = .false.
- tmove = .false.
- do 5 isdat = 1 , nsdat
- if (iv .eq. igetbits(isdat1(isdat),5,13) .and.
- * ip .eq. igetbits(isdat1(isdat),8,3) .and.
- * kv .eq. igetbits(isdat1(isdat),1,12)+1) then
- if (.not.tfound) then
- tfound = igetbits(isdat1(isdat),7,19).eq.1
- if (tfound) then
- nolevt = igetbits(isdat2(isdat),7,19)
- isdatt = isdat
- if (sfound) go to 6
- end if
- end if
- if (.not.sfound) then
- sfound = igetbits(isdat1(isdat),7,19).eq.32
- if (sfound) then
- nolevs = igetbits(isdat2(isdat),7,19)
- isdats = isdat
- if (tfound) go to 6
- end if
- end if
- end if
-5 continue
-c
-c Will come thru here if there is a t with no s, so comment out the following
-c print*,'Did not find s+t-slurs in doslur'
-c
-6 continue
- if (sfound .and. tfound)
- * tmove = nolevs.eq.nolevt .and.
-c
-c Check if 2 starts or two stops
-c
- * ((btest(isdat1(isdats),11).and.btest(isdat1(isdatt),11)) .or.
- * (.not.btest(isdat1(isdats),11).and.
- * .not.btest(isdat1(isdatt),11)) )
-c
-c This is a flag for later changing slur level, after we know slur dir'n.
-c
- end if
- if (ismidi) then
- settie = .false.
- dbltie = .false.
- end if
- do 1 isdat = 1 , nsdat
- isdata = isdat1(isdat)
- if (iv .eq. igetbits(isdata,5,13) .and.
- * ip .eq. igetbits(isdata,8,3) .and.
- * kv .eq. igetbits(isdata,1,12)+1) then
-c
-c Since iv and kv match, ivx will be correct
-c
- idcode = igetbits(isdata,7,19)
- ivoff = igetbits(isdat2(isdat),6,6)-32
- ihoff = igetbits(isdat2(isdat),7,12)-64
- iupdn = 0
- slurudq = 'd'
- nolevs = igetbits(isdat2(isdat),7,19)
- if (btest(isdata,11)) then
-c
-c Turnon,
-c
- if (nolevs.eq.0 .or. nolevs.gt.60) then
-c
-c Note was a rest, cannot start slur on rest.
-c
- print*
- call printl('Cannot start slur on a rest')
- call stop1()
- end if
-c
-c Get slur direction
-c
- if (btest(isdata,26)) then
-c
-c Force slur direction
-c
- if (btest(isdata,27)) slurudq = 'u'
- else if (nvmx(iv) .eq. 1) then
-c
-c Only one voice per line
-c
- if (.not.beamon) then
-c
-c Separate note.
-c
- slurudq = udfq(nolev,ncm)
- else
-c
-c In a beam
-c
- if (ulq .ne. 'u') slurudq = 'u'
- end if
- if (iscrd) then
- if (nolevs .gt. ncm) then
- slurudq = 'u'
- else
- slurudq = 'd'
- end if
- end if
- else
-c
-c Two voices per line. Get default
-c
- if (ivx .gt. nv) slurudq = 'u'
-c
-c Upper voice of the two, so up slur
-c
- end if
-c
-c Save up/down-ness for use at termination
-c
- if (slurudq .eq. 'u') isdata = ibset(isdata,27)
-c
-c End of section for setting slur direction, still in "Turnon" if-block.
-c
- if (idcode.eq.1 .and. tmove) then
- iupdn = 1
- if (slurudq .eq. 'd') iupdn = -1
- end if
- if (btest(iornq,11).or.btest(iornq,12)) then
-c
-c Raise or lower slur by one unit provided . or _ is on same side as slur
-c
- ivoffinc = 0
- if ((stemup .and. slurudq.eq.'d') .or.
- * (.not.stemup .and. slurudq.eq.'u')) then
-c
-c Must move the slur for _ or .
-c
- if (stemup) then
- ivoffinc = -1
- else
- ivoffinc = 1
- end if
- if (((stemup .and. nolev.ge.ncm-2) .or.
- * (.not.stemup .and. nolev.le.ncm+2)) .and.
- * mod(abs(ncm-nolev),2).eq.0) ivoffinc = 2*ivoffinc
- ivoff = ivoff+ivoffinc
- end if
- end if
- if (listslur .eq. 16777215) then
- print*
- print*,'You1 defined the twenty-fifth slur, one too many!'
- write(15,'(/,a)')
- * 'You2 defined the twenty-fifth slur, one too many!'
- call stop1()
- end if
-c
-c Get index of next slur not in use, starting from ? down
-c
- ndxslur = log2(16777215-listslur)
-c
-c Record slur index
-c
- listslur = ibset(listslur,ndxslur)
-c
-c Save for use on termination
-c
-c call setbits(isdata,4,28,ndxslur)
-c 080531 Allow >16 slurs
- call setbits(isdata,4,28,mod(ndxslur,16))
- call setbits(isdata,1,18,ndxslur/16)
-c
-c Shift for stem?
-c
- if (stemup .and. slurudq.eq.'u' .and. tno.lt.63.)
- * ihoff = ihoff+8
- if (btest(isdat2(isdat),3)) then
-c
-c Tie spacing, (slur start)
-c
- if (slurudq.eq.'d') then
- ivoff = ivoff+1
- ihoff = ihoff+8
- else if (slurudq.eq.'u') then
- ivoff = ivoff-1
- if (.not.(stemup.and.tno.lt.63.)) ihoff = ihoff+8
-c
-c (already shifted if (stemup.and.tno.gt.63.) and slurudq='u')
-c
- end if
- end if
- if (iscrd) then
-c
-c Additional horiz shifts for h-shifted noteheads?
-c
- if (btest(isdat2(isdat),1)) then
-c
-c Slur start on left-shifted chord notehead. ASSUME downstem.
-c
- if (nolevs.eq.minlev .and. slurudq.eq.'d') then
- ihoff = ihoff-2
- else
- ihoff = ihoff-10
- end if
- else if (btest(isdat2(isdat),2)) then
-c
-c Right shifted chord notehead. ASSUME upstem.
-c
- if (nolevs.eq.maxlev .and. slurudq.eq.'u') then
- ihoff = ihoff+2
- else
- ihoff = ihoff+10
- end if
- end if
- end if
- if (ihoff .eq. 0) then
-c
-c Write stuff for non-shifted start
-c
- notexq = chax(92)//'islur'//slurudq
- lnote = 7
- else
- notexq = chax(92)//'is'//slurudq
- lnote = 4
- end if
- if (btest(isdat2(isdat),4)) then
-c
-c Dotted slur
-c
- noteq(1:8) = notexq
- notexq = chax(92)//'dotted'//noteq
- lnote = lnote+7
- end if
-c
-c Add slur index to string
-cc Print 11-ndxslur
-c Print 23-ndxslur
-c
-c if (11-ndxslur .lt. 10) then
- if (23-ndxslur .lt. 10) then
-c
-c 5/25/08 Allow 24 slurs
-c
-c notexq = notexq(1:lnote)//chax(59-ndxslur)
- notexq = notexq(1:lnote)//chax(71-ndxslur)
- lnote = lnote+1
- else if (23-ndxslur .lt. 20) then
-c notexq = notexq(1:lnote)//'{1'//chax(49-ndxslur)//'}'
- notexq = notexq(1:lnote)//'{1'//chax(61-ndxslur)//'}'
- lnote = lnote+4
- else
- notexq = notexq(1:lnote)//'{2'//chax(51-ndxslur)//'}'
- lnote = lnote+4
- end if
-c
-c Add note name to string
-c
- call notefq(noteq,lnoten,nolevs+iupdn+ivoff,ncm)
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
-c
-c Save height (for ornament and barnobox interference) if topmost slur is up
-c
- if (slurudq.eq.'u' .and.
- * (.not.btest(isdat2(isdat),0).or.nolevs.eq.maxlev)) then
- islhgt = nolevs+iupdn+ivoff
-c
-c Save height & idcode if top voice and slur start
-c
- if (ivx.eq.ivmx(nv,nvmx(nv)) .and. islhgt.gt.is1n1) then
- is1n1 = islhgt
- is2n1 = idcode
- end if
- end if
- if (ihoff .ne. 0.) then
- shift = ihoff*0.1
- notexq = notexq(1:lnote)//'{'
- lnote = lnote+1
- lform = lfmt1(shift)
- write(notexq(lnote+1:lnote+lform),'(f'//
- * chax(48+lform)//'.1)') shift
- lnote = lnote+lform
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- end if
- call addstr(notexq,lnote,soutq,lsout)
-c
-c Zero out ip1 to avoid problems if slur goes to next input blk.
-c
- call setbits(isdata,8,3,0)
-c
-c Set slur-on data for midi. Only treat null-index slurs and ps ties for now.
-c
- if (ismidi .and. idcode.eq.32) then
- levson(midchan(iv,kv)) = nolevs+miditran(instno(iv))
- if (settie) dbltie = .true.
-c
-c Only way settie=T is if we just set a tie ending. So there's also a slur
-c start here, so set a flag telling addmidi not to zero out levson
-c
- end if
- else
-c
-c Slur is ending. Back thru list to find starting slur
-c
- do 3 j = isdat-1 , 1 , -1
- if (iv.eq.igetbits(isdat1(j),5,13) .and.
- * kv.eq.igetbits(isdat1(j),1,12)+1) then
- if (idcode .eq. igetbits(isdat1(j),7,19)) then
- ndxslur = igetbits(isdat1(j),4,28)
-c
-c 080531 Allow >16 slurs
-c
- * +16*igetbits(isdat1(j),1,18)
- if (btest(isdat1(j),27)) slurudq = 'u'
- go to 4
- end if
- end if
-3 continue
- print*,'Bad place in doslur'
- call stop1()
-4 continue
- if (nolevs.eq.0 .or. nolevs.gt.60) then
-c
-c Ending is on a rest, reset nolevs to default starting height
-c
- nolevs = igetbits(isdat2(j),7,19)
- end if
- if (btest(isdat3(isdat),0)) then
-c
-c Deal with \curve or \midslur
-c
- imid = igetbits(isdat3(isdat),6,2)-32
-c
-c Remember, only dealing with non-ps slurs
-c
-c Who knows where the following line came from. Removed it 6/30/02 to
-c restore behavior of non-ps slurs to old way
-c if (slurudq .eq. 'd') imid = -imid
-c 3/8/03 added the following
-c
- if (slurudq .eq. 'd') imid = -abs(imid)
-c
- if (btest(isdat3(isdat),1)) then
- notexq = chax(92)//'curve'
- lnote = 6
- else
- notexq = chax(92)//'midslur'
- lnote = 8
- end if
- if (imid.lt.0 .or. imid.gt.9) then
-c
-c Need brackets
-c
- notexq = notexq(1:lnote)//'{'
- lnote = lnote+1
- if (imid .lt. -9) then
- write(notexq(lnote+1:lnote+3),'(i3)')imid
- lnote = lnote+3
- else if (imid.lt.0 .or. imid.gt.9) then
- write(notexq(lnote+1:lnote+2),'(i2)')imid
- lnote = lnote+2
- else
- write(notexq(lnote+1:lnote+1),'(i1)')imid
- lnote = lnote+1
- end if
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- else
-c
-c 1=<imid=<9, no brackets
-c
- notexq = notexq(1:lnote)//char(48+imid)
- lnote = lnote+1
- end if
- if (btest(isdat3(isdat),1)) then
-c
-c \curve; 3 args
-c
- notexq = notexq(1:lnote)
- * //char(48+igetbits(isdat3(isdat),3,8))
- notexq = notexq(1:lnote+1)
- * //char(48+igetbits(isdat3(isdat),3,11))
- lnote = lnote+2
- end if
- call addstr(notexq,lnote,soutq,lsout)
- end if
-c
-c Shift slur ending for stem on any note?
-c
- if (.not.stemup .and. slurudq.eq.'d' .and. tno.lt.63.)
- * ihoff = ihoff-8
- if (btest(isdat2(isdat),3)) then
-c
-c Shift ending for tie spacing
-c
- if (slurudq .eq. 'u') then
- ihoff = ihoff-8
- ivoff = ivoff-1
- else if (slurudq .eq. 'd') then
- ivoff = ivoff+1
- if (stemup.or. tno.gt.63.) ihoff = ihoff-8
- end if
- end if
- if (iscrd) then
-c
-c Shift termination for shifted notehead?
-c
- if (btest(isdat2(isdat),1)) then
-c
-c Left-shifted chord notehead. ASSUME downstem.
-c
- if (nolevs.eq.minlev .and. slurudq.eq.'d') then
- ihoff = ihoff-2
- else
- ihoff = ihoff-10
- end if
- else if (btest(isdat2(isdat),2)) then
-c
-c Right shifted chord notehead. ASSUME upstem.
-c
- if (nolevs.eq.maxlev .and. slurudq.eq.'u') then
- ihoff = ihoff+2
- else
- ihoff = ihoff+10
- end if
- end if
- end if
- if (ihoff .eq. 0) then
- notexq = chax(92)//'tslur'
- lnote = 6
- else
-c
-c Shift needed
-c
- notexq = chax(92)//'ts'
- lnote = 3
- end if
-c
-c Print 23-ndxslur
-c 5/25/08 Allow 14 slurs (???????????)
-c
- if (23-ndxslur .lt. 10) then
- notexq = notexq(1:lnote)//chax(71-ndxslur)
- lnote = lnote+1
- else if (23-ndxslur .lt. 20) then
- notexq = notexq(1:lnote)//'{1'//chax(61-ndxslur)//'}'
- lnote = lnote+4
- else
- notexq = notexq(1:lnote)//'{2'//chax(51-ndxslur)//'}'
- lnote = lnote+4
- end if
- if (btest(iornq,11).or.btest(iornq,12)) then
-c
-c Raise or lower slur by one unit provided . or _ is on same side as slur
-c
- ivoffinc = 0
- if ((stemup .and. slurudq.eq.'d') .or.
- * (.not.stemup .and. slurudq.eq.'u')) then
- if (stemup) then
- ivoffinc = -1
- else
- ivoffinc = 1
- end if
- if (((stemup .and. nolev.ge.ncm-2) .or.
- * (.not.stemup .and. nolev.le.ncm+2)) .and.
- * mod(abs(ncm-nolev),2).eq.0) ivoffinc = 2*ivoffinc
- end if
- ivoff = ivoff+ivoffinc
- end if
- if (idcode.eq.1 .and. tmove) then
-c
-c t-slur height adjustment
-c
- iupdn = 1
- if (slurudq .eq. 'd') iupdn = -1
- end if
- call notefq(noteq,lnoten,nolevs+iupdn+ivoff,ncm)
- if (slurudq.eq.'u' .and.
- * (.not.btest(isdat2(isdat),0).or.nolevs.eq.maxlev)) then
- islhgt = nolevs+iupdn+ivoff
-c
-c If topvoice, upslur, and idcode checks, no more need to keep hgt for barno.
-c
- if (ivx.eq.ivmx(nv,nvmx(nv)) .and. is1n1.gt.0) then
- if (idcode .eq. is2n1) is1n1=0
- end if
- end if
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
- if (ihoff .ne. 0) then
- shift = ihoff*0.1
- notexq = notexq(1:lnote)//'{'
- lnote = lnote+1
- lform = lfmt1(shift)
- write(notexq(lnote+1:lnote+lform),
- * '(f'//chax(48+lform)//'.1)')shift
- lnote = lnote+lform
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- end if
- call addstr(notexq,lnote,soutq,lsout)
-c
-c Clear the bit from list of slurs in use
-c
- listslur = ibclr(listslur,ndxslur)
-c
-c Zero out the entire strings for start and stop
-c
- isdata = 0
- isdat2(isdat) = 0
- isdat1(j) = 0
- isdat2(j) = 0
- isdat3(isdat) = 0
-c
-c Set midi info for slur ending
-c
- if (ismidi .and. idcode.eq.32) then
- icm = midchan(iv,kv)
- if (slmon(icm)) then
- if (nolevs+miditran(instno(iv)).eq.levson(icm) .and.
- * iand(7,nacc).eq.0) then
-c
-c There is a tie here. NB!!! assumed no accidental on 2nd member of tie.
-c
- levsoff(icm) = nolevs+miditran(instno(iv))
- settie = .true.
- else
- levsoff(icm) = 0
- levson(icm) = 0
- slmon(icm) = .false.
- end if
- end if
- end if
- end if
- isdat1(isdat) = isdata
- end if
-1 continue
-c
-c Clear and collapse the slur data list
-c
- numdrop = 0
- do 2 isdat = 1 , nsdat
- if (isdat1(isdat) .eq. 0) then
- numdrop = numdrop+1
- else if (numdrop .gt. 0) then
- isdat1(isdat-numdrop) = isdat1(isdat)
- isdat2(isdat-numdrop) = isdat2(isdat)
- isdat3(isdat-numdrop) = isdat3(isdat)
- isdat1(isdat) = 0
- isdat2(isdat) = 0
- isdat3(isdat) = 0
- end if
-2 continue
- nsdat = nsdat-numdrop
-c call report(nsdat,isdat1,isdat2)
- return
- end
- subroutine dotmov(updot,rtdot,soutq,lsout,iddot)
-c
-c iddot = 0 for single dot, 1 for double
-c
- character*80 soutq,notexq
- character*1 sq,chax
- sq = chax(92)
- lfmtup = lfmt1(updot)
- lfmtrt = lfmt1(rtdot)
- write(notexq,'(a37,f'//chax(48+lfmtup)//'.1,a2,f'//chax(48+lfmtrt)
- * //'.1,a15)')
- * sq//'makeatletter'//sq//'def'//sq//'C@Point#1#2{'//sq//
- * 'PMXpt{',updot,'}{',rtdot,'}'//chax(48+iddot)//'}'//sq
- * //'makeatother'
-c
-c Example of string just created:
-c \makeatletter\def\C@Point#1#2{\PMXpt{.5}{.5}}\makeatother\
-c
- lnote = 54+lfmtup+lfmtrt
- call addstr(notexq(1:lnote),lnote,soutq,lsout)
- return
- end
- subroutine dotrill(iv,ip,iornq,noteq,lnoten,notexq,lnote)
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- character*1 chax
- character*8 noteq
- character*79 notexq
- logical tronly,btest
- do 1 itr = 1 , ntrill
- if (iv.eq.ivtrill(itr) .and. ip.eq.iptrill(itr)) go to 2
-1 continue
- print*,'Problem in dotrill. Call Dr. Don'
- stop
-2 continue
- tronly = xnsktr(itr) .lt. 0.01
- if (tronly) then
- notexq = chax(92)//'zcharnote'
- lnote = 10
- else if (btest(iornq,7)) then
- notexq = chax(92)//'Trille'
- lnote = 7
- else
- notexq = chax(92)//'trille'
- lnote = 7
- end if
- notexq = notexq(1:lnote)//noteq(1:lnoten)//'{'
- lnote = lnote+lnoten+1
-c
-c Write trill duration to nearest tenth of a noteskip
-c
- if (tronly) then
- notexq = notexq(1:lnote)//chax(92)//'it tr}'
- lnote = lnote+7
- return
- end if
- if (xnsktr(itr) .lt. .95) then
- nfmt = 2
- else if (xnsktr(itr) .lt. 9.95) then
- nfmt = 3
- else
- nfmt = 4
- end if
- write(notexq(lnote+1:lnote+nfmt),'(f'//chax(48+nfmt)//'.1)')
- * xnsktr(itr)
- lnote = lnote+nfmt
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- return
- end
- subroutine endslur(stemup,upslur,nolev,iupdn,ndxslur,ivoff,ncm,
- * soutq,lsout,fontslur)
-c
-c Only called to end slur started in dograce.
-c
- logical shift,stemup,upslur,fontslur
- character*80 soutq
- character*79 notexq
- character*8 noteq
- character*1 chax
- shift = .not.stemup .and. .not.upslur
- if (.not.shift) then
-c
-c No shift needed
-c
- notexq = chax(92)//'tslur'
- lnote = 6
- else
-c
-c Shift needed
-c
- notexq = chax(92)//'ts'
- lnote = 3
- end if
-c if (ndxslur .lt. 10) then
-c notexq = notexq(1:lnote)//chax(48+ndxslur)
-c lnote = lnote+1
-c else
-c notexq = notexq(1:lnote)//'{1'//chax(38+ndxslur)//'}'
-c lnote = lnote+4
-c end if
-c
-cc Print 11-ndxslur
-c Print 23-ndxslur
-c
-c if (11-ndxslur .lt. 10) then
- if (23-ndxslur .lt. 10) then
-c notexq = notexq(1:lnote)//chax(59-ndxslur)
- notexq = notexq(1:lnote)//chax(71-ndxslur)
- lnote = lnote+1
- else if (23-ndxslur .lt. 20) then
-c notexq = notexq(1:lnote)//'{1'//chax(49-ndxslur)//'}'
- notexq = notexq(1:lnote)//'{1'//chax(61-ndxslur)//'}'
- lnote = lnote+4
- else
- notexq = notexq(1:lnote)//'{2'//chax(51-ndxslur)//'}'
- lnote = lnote+4
- end if
- call notefq(noteq,lnoten,nolev+iupdn+ivoff,ncm)
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
- if (shift) then
- if (fontslur) then
- notexq = notexq(1:lnote)//'{-.6}'
- else
- notexq = notexq(1:lnote)//'{-.8}'
- end if
- lnote = lnote+5
- end if
- call addstr(notexq,lnote,soutq,lsout)
- return
- end
- subroutine errmsg(lineq,iccount,ibarno,msgq)
- parameter(nm=24)
- common /c1omget/ lastchar,fbon,issegno,ihead,isheadr,nline,isvolt,
- * fracindent,nsperi(nm),linesinpmxmod,line1pmxmod,lenbuf0
- logical lastchar,fbon,issegno,isheadr,isvolt
- character*128 lineq
- character*78 outq
- character*(*) msgq
- character*1 chax
- common /truelinecount/ linewcom(20000)
- if (iccount .le. 78) then
- outq = lineq(1:78)
- iposn = iccount
- else
- outq = '... '//lineq(55:128)
- iposn = iccount-50
- end if
- print*
- ibarnop = ibarno
- if (linesinpmxmod.eq.0 .or.
- * nline .gt. line1pmxmod+linesinpmxmod) then
-c
-c Error is in main .pmx file
-c
-c nlinep = nline-linesinpmxmod
-c Correct for comments not copied into buffer
- nlinep = linewcom(nline)-linesinpmxmod
- else
-c
-c Error is in include file
-c
- ibarnop = 0
- nlinep = nline-line1pmxmod+1
- call printl(
- * 'ERROR in include file named above, description given below')
- end if
- open(19,file='pmxaerr.dat')
- write(19,'(i6)') nlinep
- close(19)
- ndigbn = max(1,int(log10(ibarnop+.1)+1))
- ndignl = int(log10(nlinep+.1)+1)
- lenmsg = index(msgq,'!')-1
-c
-c Split off msgq(..) since UNIX compilers don't allow concat substring!!!
-c
- write(*,'(/,a15,i'//chax(48+ndignl)//',a6,i'//chax(48+ndigbn)//
- *',$)')' ERROR in line ',nlinep,', bar ',ibarnop
- write(*,'(1x,a)')msgq(1:lenmsg)
- write(15,'(/,a15,i'//chax(48+ndignl)//',a6,i'//chax(48+ndigbn)//
- *',$)')' ERROR in line ',nlinep,', bar ',ibarnop
- write(15,'(a)')msgq(1:lenmsg)
- i10 = iposn/10
- i1 = iposn-10*i10
- write(*,'('//chax(48+i10)//chax(48+i1)//'x,a)')'v'
- write(15,'('//chax(48+i10)//chax(48+i1)//'x,a)')'v'
- print*,outq(1:78)
- write(15,'(a)')' '//outq(1:78)
- write(*,'('//chax(48+i10)//chax(48+i1)//'x,a)')'^'
- write(15,'('//chax(48+i10)//chax(48+i1)//'x,a)')'^'
- return
- end
- subroutine eskb4(ip,ivx,in,ib,space,tstart,fbar,itrpt,esk)
-c
-c Get elemskips to previous note. Called only for graces, no xtups involved.
-c
- parameter (nm=24)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,isfig
- real*4 tstart(80),space(80)
- common /comtol/ tol
- itnd = nint(to(in))
- if (ip.eq.1 .or. itnd.eq.itrpt) then
-c
-c Start of bar or after rpt.
-c
- esk = fbar
- return
- else
- esk = 0.
- itprev = itnd-nodur(ivx,ip-1)
- do 1 iib = ib , 1 , -1
- if (tstart(iib) .lt. itprev+tol) then
-c
-c This is the block
-c
- nnsk = nint(float((itnd-itprev))/space(iib))
- esk = esk+nnsk*feon(space(iib))
- return
- else
- nnsk = nint((itnd-tstart(iib))/space(iib))
- esk = esk+nnsk*feon(space(iib))
- itnd = nint(tstart(iib))
- end if
-1 continue
- end if
- print*,'Problem in eskb4. Send files to Dr. Don'
- stop
- end
- function f1eon(time)
- f1eon = sqrt(time/2)
- return
- end
- function feon(time)
- common /comeon/ eonk,ewmxk
- feon = sqrt(time/2)**(1.-eonk)*ewmxk
- return
- end
- subroutine findbeam(ibmrep,numbms,mapfb)
-c
-c Called once per voice per bar, after setting forced beams.
-c
- parameter (nm=24)
- dimension mask(49,3),nummask(3),eqonly(49,3)
-c integer numbms(nm),ipr(48),nip1(0:47),nip2(0:47),mapfb(16),
-c * itr(48),nodue(48)
-c logical short(48),eqonly
- integer numbms(nm),ipr(248),nip1(0:247),nip2(0:247),mapfb(16),
- * itr(248),nodue(248)
- logical short(248),eqonly
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- common /comipl2/ ipl2(nm,200)
- common /combeam/ ibmtyp
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /comtol/ tol
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,
- * isfig,btest
- data nip1,nip2 /496*0/
- data nummask / 29 , 49 , 12 /
- data mask
- * / 65535, 4095, 65520, 255, 65280, 63,
- * 252, 16128, 64512, 15, 240, 3840,
- * 61440, 7, 14, 112, 224, 1792,
- * 3584, 28672, 57344, 3, 12, 48,
- * 192, 768, 3072, 12288, 49152, 20*0 ,
- * 16777215, 65535, 16776960, 4095, 65520, 1048320,
- * 16773120, 255, 65280, 16711680, 63, 252,
- * 16128, 64512, 4128768, 16515072, 15, 60,
- * 240, 3840, 15360, 61440, 983040, 3932160,
- * 15728640, 7, 14, 112, 224, 1792,
- * 3584, 28672, 57344, 458752, 917504, 7340032,
- * 14680064, 3, 12, 48, 192, 768,
- * 3072, 12288, 49152, 196608, 786432, 3145728,
- * 12582912,
- * 4095, 255, 4080, 15, 240, 3840,
- * 3, 12, 48, 192, 768, 3072,
- * 37*0 /
- data eqonly /3*.true.,46*.false.,7*.true.,91*.false./
- ip = 0
- nreal = 0
- itnow = 0
-1 continue
- ip = ip+1
- if (ip .gt. nn(ivx)) go to 9
-11 if (nodur(ivx,ip).eq.0) then
-c
-c Ignore all xtup notes except the last, the one with nodur > 0 .
-c Xtups are irrelevant here since they are already all in forced beams.
-c Will update itnow by nodur at the END of this loop
-c
- ip = ip+1
- go to 11
- end if
- nreal = nreal+1
- nodue(nreal) = nodur(ivx,ip)
- short(nreal) = nodue(nreal).lt.16 .and.
- * .not.btest(irest(ivx,ip),0)
-c
-c Rule out notes that have 'alone'-flag set
-c
- * .and..not.btest(islur(ivx,ip),18)
- ipr(nreal) = ip
- itr(nreal) = itnow
- if (nodue(nreal) .eq. 1) then
-c
-c 64th gap
-c
- if (mod(itnow,2) .eq. 0) then
-c
-c Start of 32nd gap, lump with following note
-c
- ip = ip+1
- nodue(nreal) = 1+nodur(ivx,ip)
- itnow = itnow+nodue(nreal)
- else
-c
-c End of 32nd gap, lump with preceeding note
-c
- nreal = nreal-1
- nodue(nreal) = 1+nodue(nreal)
- itnow = itnow+1
- end if
- else
- itnow = itnow+nodur(ivx,ip)
- end if
- go to 1
-9 continue
- ir1 = 1
- itseg = lenbar/ibmrep
- do 13 irep = 1 , ibmrep
-c
-c Set bitmaps for all shorts neighbored by a short. Each bit represents a
-c span of 32nd note. maps, mapm, mape record start, full duration, and end
-c of consecutive span of beamable (<1/4) notes.
-c
- maps = 0
- mapm = 0
- mape = 0
- itend = itseg*irep
- itoff = itend-itseg
- do 2 ir = ir1 , nreal
- it2 = itr(ir)+nodue(ir)-2
- if (it2 .ge. itend) then
- ir1 = ir
- go to 14
- end if
-c if (short(ir).and.((ir.gt.1.and.short(ir-1)).or.(ir.lt.nreal
- if (short(ir).and.((ir.gt.1.and.short(max(ir-1,1))).or.
- * (ir.lt.nreal.and.short(ir+1)))) then
- ib1 = (itr(ir)-itoff)/2
- ib2 = (it2-itoff)/2
- if (max(ib1,ib2).gt.47 .or. ir.gt.48 .or.
- * min(ib1,ib2).lt.0) return
-c
-c Must have an odd number obe beats in a long bar. Auto-beam won't work
-c
- nip1(ib1) = ipr(ir)
- nip2(ib2) = ipr(ir)
-c
-c nip1,2(ib) = 0 unless a real note starts,ends on bit ib; then = ip
-c
- maps = ibset(maps,ib1)
- mape = ibset(mape,ib2)
- do 3 ib = ib1 , ib2
- mapm = ibset(mapm,ib)
-3 continue
- end if
-2 continue
-14 continue
- if (mapm .eq. 0) go to 13
-c
-c Zero out bits from forced beams
-c
- maps = iand(maps,not(mapfb(irep)))
- mapm = iand(mapm,not(mapfb(irep)))
- mape = iand(mape,not(mapfb(irep)))
-c
-c Compare map with template.
-c
- do 4 it = 1 , nummask(ibmtyp)
- masknow = mask(it,ibmtyp)
- if (iand(masknow,mapm) .eq. masknow) then
-c
-c Find least significant bit in the mask to check start time
-c
- mtemp = masknow
- maskm = masknow
- do 5 is1 = 0 , 47
- if (iand(1,mtemp) .eq. 1) go to 6
- mtemp = ishft(mtemp,-1)
-5 continue
-6 continue
- if (iand(ishft(1,is1),maps) .eq. 0) go to 4
-c
-c is1 is the bit where the beam starts. Continue shifting to
-c find most significant bit in the mask to check ending time
-c
- do 7 is2 = is1 , 47
- mtemp = ishft(mtemp,-1)
- if (iand(1,not(mtemp)) .eq. 1) go to 8
-7 continue
-8 continue
-c
-c is2 is now the bit on which the beam ends.
-c
- if (iand(ishft(1,is2),mape) .eq. 0) go to 4
-c
-c Did we pick out a single note from the middle of a longer sequence?
-c
- if (nip1(is1) .eq. nip2(is2)) go to 4
-c
-c We almost have a beam. Check equality of notes if needed.
-c
- if (eqonly(it,ibmtyp)) then
- do 10 ip = nip1(is1) , nip2(is2)
- if (nodur(ivx,ip) .ne. 8) then
-c
-c There is a non-1/8th note in this beam. Exit if not 2 quarters
-c
- if (is2-is1 .ne. 15) go to 4
-c
-c Beam is 2 quarters long. Check if can split in half.
-c
- ithalf = 0
- do 20 iip = nip1(is1) , nip2(is2)
- ithalf = ithalf+nodur(ivx,iip)
- if (ithalf .gt. 16) go to 4
- if (ithalf .eq. 16) go to 21
-20 continue
- print*,'Problem in findbeam, please call Dr. Don'
- go to 4
-21 continue
-c
-c Otherwise, split in half by keeping only the first half. Other half will
-c be picked up later, assuming masks are listed longest first.
-c
- is2 = is1+7
-c
-c Reset maskm (since only used part of mask), used later to zero out
-c bits that contain beams
-c
- maskm = 0
- do 15 is = is1 , is2
- maskm = ibset(maskm,is)
-15 continue
- go to 16
- end if
-10 continue
- end if
-16 continue
-c
-c This is a beam. If last "effective" ends on odd 64th, add 1 more
-c
-c if (abs(mod(to(iand(255,ipl(ivx,nip2(is2))))
-c * +nodur(ivx,nip2(is2)),2.)) .gt. tol) then
- if (abs(amod(to(ipl2(ivx,nip2(is2)))
- * +nodur(ivx,nip2(is2))+.5*tol,2.)) .gt. tol) then
- nip2(is2) = nip2(is2)+1
- end if
- numbms(ivx) = numbms(ivx)+1
- numnew = numbms(ivx)
- call logbeam(numnew,nip1(is1),nip2(is2))
-c
-c Zero out the appropriate bits so these notes don't get used again
-c
- mapm = iand(mapm,not(maskm))
- if (mapm.eq.0) go to 13
- maps = iand(maps,not(maskm))
- mape = iand(mape,not(maskm))
- end if
-4 continue
-13 continue
- return
- end
- subroutine findeonk(nptr1,nptr2,wovera,xelsk,dtmin,dtmax,eonk0)
- parameter (nkb=3999,maxblks=9600)
-c
-c Compute an exponent eonk for use in the "flattened" formula for elemskips
-c vs time. We must solve the eqution f = 0. Initial quess is eonk0.
-c
-c logical gotclef
- common /c1omnotes/ nnodur,wminnh(nkb),nnpd(maxblks),durb(maxblks),
- * iddot,nptr(nkb),ibarcnt,mbrest,ibarmbr,
-c * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks)
- * ibaroff,udsp(nkb),wheadpt,sqzb(maxblks)
- common /comtol/ tol
- common /comeon/ eonk,ewmxk
- eonk = eonk0
- niter = 0
-1 continue
- ewmxk = f1eon(dtmax)**eonk
- niter = niter+1
- esum = 0.
- desum = 0.
- do 2 iptr = nptr1 , nptr2
- targ = durb(iptr)/sqzb(iptr)
- esum = esum+nnpd(iptr)*sqzb(iptr)*feon(targ)
- detarg = sqrt(targ/2*(dtmax/targ)**eonk)*alog(dtmax/targ)
- desum = desum+nnpd(iptr)*sqzb(iptr)*detarg
-2 continue
- f = wovera*feon(dtmin)-xelsk-esum
- fp = wovera*sqrt(dtmin/2*(dtmax/dtmin)**eonk)*alog(dtmax/dtmin)
- * -desum
- if (abs(fp).lt.tol .or. abs(eonk-.5).gt..5 .or. niter.gt.100) then
- call printl(
- * 'Error in findeonk. Please send source to Dr. Don')
- eonk = 0.
- ewmxk = 1.
- return
- end if
- dsoln = -f/fp
- if (abs(dsoln) .lt. .1*tol) return
-c
-c Not converged yet, try again
-c
- eonk = eonk+dsoln
- go to 1
- end
- function fnote(nodur,ivx,ip,nacc)
-c
-c This return the real duration of a note
-c
- parameter (nm=24)
- integer*4 nodur(nm,200),nacc(nm,200)
- logical btest
- ipback = ip
- if (nodur(ivx,ip) .gt. 0) then
- if (ip .gt. 1) then
-c
-c Check if this is last note of xtup
-c
- if (nodur(ivx,ip-1).eq.0) then
- ipback = ip-1
- go to 2
- end if
- end if
- fnote = nodur(ivx,ip)
- return
- end if
-2 continue
-c
-c Count back to prior non zero note. Start at ip to avoid neg index if ip=1.
-c Count how many doubled xtups notes there are from ip-1 to first note.
-c
- ndoub = 0
- do 1 ip1m1 = ipback , 1 , -1
- if (nodur(ivx,ip1m1) .gt. 0) go to 4
- if (ip1m1.lt.ip .and. btest(nacc(ivx,ip1m1),18)) ndoub=ndoub+1
-1 continue
-4 continue
-c
-c count forward to next non-0 nodur. Start at ip in case last note of xtup.
-c
- do 3 iip = ip , 200
-c
-c Count doubled xtup notes from ip to end.
-c
- if (btest(nacc(ivx,iip),18)) ndoub = ndoub+1
- if (nodur(ivx,iip) .gt. 0) then
-c fnote = nodur(ivx,iip)/float(iip-ip1m1)
- fnote = nodur(ivx,iip)/float(iip-ip1m1+ndoub)
- if (btest(nacc(ivx,ip),18)) then
- fnote = 2*fnote
- else if (btest(nacc(ivx,ip),27)) then
- fnote = 1.5*fnote
- else if (ip .gt. 1) then
- if (btest(nacc(ivx,ip-1),27)) fnote = .5*fnote
- end if
- return
- end if
-3 continue
- print*,' '
- call printl
- * ('Probable misplaced barline or incorrect meter, stopping')
- print*,'ivx,ip:',ivx,ip
- call stop1()
- end
- subroutine g1etchar(lineq,iccount,charq)
- parameter(nm=24)
- common /c1omget/ lastchar,fbon,issegno,ihead,isheadr,nline,isvolt,
- * fracindent,nsperi(nm),linesinpmxmod,line1pmxmod,lenbuf0
- logical lastchar,issegno,isheadr,isvolt,fbon
- common /commac/ macnum,mrecord,mplay,macuse,icchold,lnholdq,endmac
- logical mrecord,mplay,endmac
- character*1 charq
- character*128 lineq,lnholdq
-c
-c Gets the next character out of lineq*128. If pointer iccount=128 on entry,
-c then reads in a new line. Resets iccount. Ends program if no more input.
-c
- if (iccount .eq. 128) then
- call read10(lineq,lastchar)
- if (lastchar) return
- if (.not.endmac) then
- iccount = 0
- if (.not.mplay) nline = nline+1
- else
- endmac = .false.
- iccount = icchold
- lineq = lnholdq
- end if
- if (mrecord) then
- call m1rec1(lineq,iccount,ibarcnt,ibaroff,nbars,ndxm)
- end if
- end if
- iccount = iccount+1
- charq = lineq(iccount:iccount)
- return
- end
- subroutine g1etnote(loop,ifig,optimize,fulltrans)
- parameter (nm=24,nkb=3999,mv=24576,maxblks=9600)
- character*1 chax
- logical twotrem
- common /a1ll/ iv,ivxo(600),ipo(600),to(600),tno(600),nnl(nm),
- * nv,ibar,mtrnuml,nodur(nm,200),lenbar,iccount,
- * nbars,itsofar(nm),nib(nm,15),nn(nm),
- * rest(nm,200),lenbr0,lenbr1,firstline,newmeter
- common /c1omnotes/ nnodur,wminnh(nkb),nnpd(maxblks),durb(maxblks),
- * iddot,nptr(nkb),ibarcnt,mbrest,ibarmbr,
-c * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks)
- * ibaroff,udsp(nkb),wheadpt,sqzb(maxblks)
- common /c1omget/ lastchar,fbon,issegno,ihead,isheadr,nline,isvolt,
- * fracindent,nsperi(nm),linesinpmxmod,line1pmxmod,lenbuf0
- common /compage/ widthpt,ptheight,hoffpt,voffpt,
- * nsyst,nflb,ibarflb(0:40),
- * isysflb(0:40),npages,nfpb,ipagfpb(0:18),isysfpb(0:18),
- * usefig,fintstf,gintstf,fracsys(30),nmovbrk,isysmb(0:30),
- * nistaff(0:40)
- common /c1ommvl/ nvmx(nm),ivmx(nm,2),ivx,fbar,nacc(nm,200)
- common /comkeys/ nkeys,ibrkch(18),newkey(18),iskchb,idsig,isig1,
- * mbrestsav,kchmid(18),ornrpt,shifton,barend,noinst,stickyS
- logical lastchar,firstline,rest,loop,newmeter,fbon,issegno,barend,
- * isheadr,fulbrp,usefig,isvolt,iskchb,kchmid,plusmin,ornrpt,
- * stickyS
- common /commac/ macnum,mrecord,mplay,macuse,icchold,lnholdq,endmac
- common /commus/ musize,whead20
- logical mrecord,mplay,endmac,shifton,gotclef,optimize
- character*128 lineq,lnholdq
- character*1 charq,dotq,dumq,durq,charlq
- integer*2 mmidi
- logical restpend,relacc,notmain,twoline,ismidi,crdacc,cdot
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- character*131072 bufq
- integer*2 lbuf(maxblks)
- common /inbuff/ ipbuf,ilbuf,nlbuf,lbuf,bufq
- logical novshrinktop,upslur,fontslur,ztrans,
- * WrotePsslurDefaults,cstuplet
- common /comnvst/ novshrinktop,cstuplet
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- character*51 literq(3),lyrerq(5)
- common /comligfont/ isligfont
- logical isligfont
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
- logical fulltrans
- common /comsize/ isize(nm)
- common /commidisig/ midisig
- common /comis4bignv/ is4bignv,AIset
- logical is4bignv,AIset
- common /comshort/ shortfrac,codafrac,ishort,mbrsum,nmbr,nocodabn,
- * poefa
- real*4 poefa(125)
- logical nocodabn
- data literq
- * /'Literal TeX string cannot start with 4 backslashes!',
- * 'TeX string must have <129 char, end with backslash!',
- * 'Type 2 or 3 TeX string can only start in column 1!'/
- data lyrerq
- * /'pmxlyr string must end with " followed by blank!',
- * 'pmxlyr string cannot extend past position 120!',
- * 'There must be "a" or "b" here!',
- * 'There must be "+" or "-" here!',
- * 'There must be an integer here!'/
- cdot = .false.
- twotrem = .false.
-1 call g1etchar(lineq,iccount,charq)
- if (charq .ne. ' ') charlq = charq
- if (lastchar) then
- if (index('/%',charlq) .eq. 0) then
- print*
- print*,'WARNING:'
- print*,'Last non-blank character is "',charlq,'", not "/,%"'
- print*,'ASCII code:',ichar(charlq)
- write(15,'(/a)')'Last non-blank character is "'//charlq//
- * '", not "/,%"'
- write(15,'(a11,2x,i3)')'ASCII code:',ichar(charlq)
-c
-c Append " /" to last line. NB lastchar=.true. => ilbuf=nlbuf+1.
-c
- ilbuf = ilbuf-1
- lbuf(ilbuf) = lbuf(ilbuf)+2
- bufq = bufq(1:ipbuf)//' /'
- write(15,*)'appending <blank>/'
- print*,'appending <blank>/'
- lineq = lineq(1:iccount)//' /'
- lastchar = .false.
- go to 1
- end if
- return
- end if
- if (charq .eq. ' ') then
- go to 1
- else if (charq.eq.'%' .and. iccount.eq.1) then
- iccount = 128
- go to 1
-c
-c Replacement 1/22/12 since gfortran 4.7 with -O was choking here!
-c
-c else if ((ichar(charq).ge.97.and.ichar(charq).le.103) .or.
- else if (index('abcdefg',charq).gt.0 .or.
- * charq.eq.'r') then
-c
-c This is a note/rest. gotclef is only used for checking for clef before "/"
-c
- if (cdot) go to 28
-c if (gotclef) gotclef=.false.
- idotform = 0
- numnum = 0
- plusmin = .false.
-28 nnl(ivx) = nnl(ivx)+1
- if (nnl(ivx) .gt. 200) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '>200 notes in line of music. Use smaller blocks!')
- call stop1()
- end if
- dotq = 'x'
-c
-c Check if this is 'r ' and previous note was full-bar-pause
-c
- fulbrp = charq.eq.'r' .and. lineq(iccount+1:iccount+1) .eq.' '
- * .and. nnl(ivx).gt.1 .and. rest(ivx,max(1,nnl(ivx)-1)) .and.
- * nodur(ivx,max(1,nnl(ivx)-1)) .eq. lenbar
-2 call g1etchar(lineq,iccount,durq)
- ic = ichar(durq)
- if (ic.le.57 .and. ic.ge.48) then
-c
-c Digit
-c
- if (numnum .eq. 0) then
- nnodur = ic-48
- numnum = 1
- go to 2
- else if (numnum .eq. 1) then
- if (charq .eq. 'r') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only one digit allowed after rest symbol "r"!')
- call stop1()
- end if
- numnum = 2
- if (plusmin) then
- print*
- print*,'*********WARNING*********'
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Before version 1.2, +/- was ignored if octave was!')
- print*,
- * 'explicitly specified. May need to edit old editions'
- end if
- go to 2
- else
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '>2 digits in note symbol!')
- call stop1()
- end if
- else if (durq.eq.'d') then
- dotq = durq
- if (lineq(iccount+1:iccount+1) .eq. 'd') then
- iddot = 1
- iccount = iccount+1
-c
-c Since we flow out, double dots won't work with other dot options
-c
- end if
- if (index('+-',lineq(iccount+1:iccount+1)) .gt. 0) then
-c
-c move a dot, provided a number follows.
-c
- call g1etchar(lineq,iccount,durq)
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789-.',durq) .eq. 0) then
-c
-c Backup, exit the loop normally
-c
- iccount = iccount-2
- go to 2
- end if
- call readnum(lineq,iccount,dumq,fnum)
- if (index('+-',dumq) .gt. 0) then
-c
-c Vertical shift also
-c
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789-.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected number after 2nd +/- (shift dot)!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- end if
- iccount = iccount-1
- end if
- go to 2
- else if (index('<>',durq) .gt. 0) then
-c
-c Accidental shift
-c
-c if (index('fsn',lineq(iccount-1:iccount-1)) .eq. 0) then
- if (index('fsnA',lineq(iccount-1:iccount-1)) .eq. 0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
-c * 'Expected "f", "s", or "n" before "<" or ">"!')
- * 'Expected "f", "s", "n" or "A" before "<" or ">"!')
- call stop1()
- end if
- ipm = 1
- if (durq .eq. '<') ipm=-1
- call g1etchar(lineq,iccount,durq)
- if (index('123456789.0',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected number after </> (accidental shift)!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- fnum = ipm*fnum
- if (fnum.lt.-5.35 .or. fnum.gt.1.0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Horizontal accidental shift must be >-5.35 and <1.0!')
- call stop1()
- end if
- iccount = iccount-1
- go to 2
- else if (index('+-',durq) .gt. 0) then
- if (charq .ne. 'r') then
- if (index('fsnA',lineq(iccount-1:iccount-1)) .gt. 0) then
- ipm = 1
- if (durq .eq. '-') ipm=-1
- if (index('0123456789',lineq(iccount+1:iccount+1))
- * .gt.0) then
-c
-c This may be start of accidental shift, but may be octave jump; then duration
-c
- icsav = iccount
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- if (index('+-',durq) .gt. 0) then
-c
-c This is an accid shift since there's a 2nd consecutive signed number.
-c Check size of 1st number.
-c
- if (fnum .gt. 30.5) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Vertical accidental shift must be less than 31!')
- call stop1()
- end if
- ipm = 1
- if (durq .eq. '-') ipm = -1
- call g1etchar(lineq,iccount,durq)
- if (index('1234567890.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected 2nd number of accidental shift)!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- fnum = ipm*fnum
- if (fnum.lt.-5.35 .or. fnum.gt.1.0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Horiz. accidental shift must be >-5.35 and <1.0!')
- call stop1()
- end if
- iccount = iccount-1
- go to 2
- else
-c
-c Not accid shift, reset, then flow out
-c
- iccount = icsav
- end if
- end if
- end if
- plusmin = .true.
- if (numnum .eq. 2) then
- print*
- print*,'*********WARNING*********'
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Before version 1.2, +/- was ignored if octave was!')
- print*,
- * 'explicitly specified. May need to edit old editions'
- end if
- go to 2
-c
-c It's a rest containing +|- . Must refer to a vertical shift. Read past.
-c
- else
- call g1etchar(lineq,iccount,durq)
- call readnum(lineq,iccount,durq,dum)
- if (lineq(iccount-1:iccount-1).eq.'.') iccount=iccount-1
- iccount = iccount-1
- go to 2
- end if
-c else if (index('ulare',durq) .gt. 0) then
- else if (index('ularec',durq) .gt. 0) then
- go to 2
- else if (index('LS',durq) .gt. 0) then
-c
-c Stemlength change
-c
- call g1etchar(lineq,iccount,durq)
- if (index('.0123456789:',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'There must be a number or colon here!')
- call stop1()
- end if
- if (durq .eq. ':') then
- if (.not.stickyS) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '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)
-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 change amount too big!')
- call stop1()
- end if
- if (durq .ne. ':') then
- iccount = iccount-1
- else
- if (stickyS) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Turned on sticky stemshrinks when already on!')
- call stop1()
- end if
- stickyS = .true.
- end if
- go to 2
- else if (index('fsn',durq) .gt. 0) then
-c
-c Check for midi-only accid. CANNOT coesist with accidental position tweaks, so
-c MUST come right after "f,s,n"
-c
- if (lineq(iccount+1:iccount+1) .eq. 'i') iccount=iccount+1
- go to 2
- else if (durq .eq. 'p') then
- fulbrp = charq.eq.'r'
- if (.not. fulbrp) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'The option "p" only works with "r" (rest)!')
- call stop1()
- end if
- go to 2
- else if (durq .eq. 'b') then
- if (charq .ne. 'r') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'You entered "b"; I expected "rb"!')
- call stop1()
- else if (numnum .eq. 2) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'You entered "r" & "b" with two numbers!')
- end if
- go to 2
- else if (durq .eq. 'x') then
-c
-c Xtuplet. Count number of doubled notes (for unequal xtups)
-c
- if (btest(nacc(ivx,nnl(ivx)),18)) then
- ndoub = 1
- else
- ndoub = 0
- end if
-c
-c Will set all durations to 0 except last one.
-c
- call g1etchar(lineq,iccount,durq)
- if (index('123456789T',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'First char after "x" in xtuplet must be "1"-"9" or "T"!')
- call stop1()
- end if
- if (durq .eq. 'T') then
-c
-c Set a flag for checking 2nd note inputs if dot is moved
-c
- twotrem = .true.
-c
-c Check all x-tremolo inputs here; set fnum=2
-c
- fnum = 2
- call getchar(lineq,iccount,durq)
- if (index('0123 ',durq).eq.0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'First char after "T" in xtuplet must be "0"-"3" or blank!')
- call stop1()
- else if (durq .ne. ' ') then
- call getchar(lineq,iccount,durq)
- if (index('0123 ',durq).eq.0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'This char must be "0"-"3" or blank!')
- call stop1()
- else if (durq .ne. ' ') then
- call getchar(lineq,iccount,durq)
-c
-c Probably blank unles other options entered
-c
- end if
- end if
- else
-c
-c durq is digit, normal xtup
-c
- call readnum(lineq,iccount,durq,fnum)
-c
-c Leaves durq at next char after number
-c
- if (fnum .gt. 99) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Xtuplet cannot have more than 99 notes!')
- call stop1()
- else if (index(' DFnd',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only legal characters here are " ","D","F","n"!')
- call stop1()
- end if
- end if
-c
-c End of mandatory xtup inputs. Check for options. Note D,F,d must precede n.
-c
- if (index('DF',durq) .gt. 0) then
-c
-c Double xtup note to make an un= xtup. Here, number already set, but may also
-c have used this before number was set.
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),18)
- ndoub = 1
- call g1etchar(lineq,iccount,durq)
- else if (durq .eq. 'd') then
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),27)
- call g1etchar(lineq,iccount,durq)
- end if
- if (durq .eq. 'n') then
-c
-c Number alteration stuff. After 'n', require '+-123456789fs ', no more 'DF'.
-c
- numshft = 0
-30 call g1etchar(lineq,iccount,durq)
- if (durq .eq. 'f') then
- go to 30
- else if (index('+-',durq) .gt. 0) then
- numshft = numshft+1
- if (numshft .eq. 3) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only 2 shifts are allowed after "n" in xtup!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'This character should be a digit or "."!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,snum)
- iccount = iccount-1
-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!')
- call stop1()
- end if
- go to 30
- else if (durq .eq. 's') then
-c
-c Slope alteration for bracket
-c
- call getchar(lineq,iccount,durq)
- if (index('+-',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'For slope adjustment, this character must be "+" or "-"!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,durq)
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'This character should be a digit!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,snum)
- iccount = iccount-1
- if (nint(snum) .gt. 15) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Slope adjustment cannot exceed 15!')
- call stop1()
- end if
- go to 30
- else if (index('123456789',durq) .gt. 0) then
-c
-c Unsigned integer => alternate printed number
-c
- call readnum(lineq,iccount,durq,snum)
- if (snum .gt. 15.1) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Alternate xtup number after "n" must be <16!')
- call stop1()
- end if
- iccount = iccount-1
- go to 30
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after "n" in xtup!')
- call stop1()
- end if
- end if
- ntup = nint(fnum)
- do 6 itup = 2 , ntup
- nodur(ivx,nnl(ivx)) = 0
- nnl(ivx) = nnl(ivx)+1
-110 call g1etchar(lineq,iccount,durq)
- if (durq.eq.' ') then
- go to 110
- else if (durq .eq. 'o') then
-c
-c Ornament in xtup. "o" symbol must come AFTER the affected note
-c
- call g1etchar(lineq,iccount,dumq)
- if (index('(stmx+Tup._)e:>^bc',dumq) .eq. 0 ) then
- if (index('fg',dumq) .gt. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Fermata or segno not allowed in xtuplet!')
- else
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal ornament!')
- end if
- call stop1()
- end if
- if (dumq .eq. 'T') then
-c
-c Trill. may be followed by 't' and/or number. read 'til blank
-c
-29 call g1etchar(lineq,iccount,dumq)
- if (dumq .ne. ' ') go to 29
- else if (dumq .eq. 'e') then
- call g1etchar(lineq,iccount,dumq)
- if (index('sfn?',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after "e" in edit. accid. symbol!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,dumq)
- if (dumq .eq. '?') call g1etchar(lineq,iccount,dumq)
- else if (dumq .eq. ':') then
- if (lineq(iccount+1:iccount+1) .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '":" must be followed by blank in "o: "!')
- call stop1()
- else if (.not.ornrpt) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Turned off repeated ornaments before they were on!')
- call stop1()
- end if
- ornrpt = .false.
- else
- call g1etchar(lineq,iccount,dumq)
- end if
- if (index('+- :',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in ornament symbol!')
- call stop1()
- end if
- if (dumq .eq. ':') then
- if (lineq(iccount+1:iccount+1) .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '":" must be followed by blank in "o: "!')
- call stop1()
- else if (ornrpt) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Turned on repeated ornaments but already on!')
- call stop1()
- end if
- ornrpt = .true.
- end if
- if (index('+-',dumq) .gt. 0) then
- if (index('0123456789',lineq(iccount+1:iccount+1))
- * .eq. 0) then
- call errmsg(lineq,iccount+1,ibarcnt-ibaroff+nbars+1,
- * 'There should be an integer here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- if (durq .eq. ':') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Cannot shift AND repeat an ornament!')
- call stop1()
- end if
-c
-c 12/7/03 Allow horizontal shift on any ornament, not just breath and ceas.
-c
- if (index('+-',durq) .gt. 0) then
- if (index('.0123456789',lineq(iccount+1:iccount+1))
- * .eq. 0) then
- call errmsg(lineq,iccount+1,
- * ibarcnt-ibaroff+nbars+1,
- * 'There should be a number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- end if
- end if
- go to 110
- else if (index('st(){}',durq) .gt. 0) then
-c
-c Slur in xtup
-c
- iposn = 0
- numint = 0
-15 call g1etchar(lineq,iccount,dumq)
- iposn = iposn+1
- if (index('udlbfnhtv',dumq) .gt. 0) then
- if (dumq.eq.'t' .and. durq.eq.'t') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Cannot use "t" as an option on a tie!')
- call stop1()
- end if
- go to 15
- else if (index('+-',dumq) .gt. 0) then
- numint = numint+1
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- if (numint .eq. 1) then
- if (nint(fnum) .gt. 30) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Magnitude of slur height adjustment cannot exceed 30!')
- call stop1()
- end if
- else if (numint .eq. 2) then
- if (abs(fnum).gt.6.3) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Slur horiz shift must be in the range (-6.3,6.3)!')
- call stop1()
- end if
- else
-c
-c Third signed integer, must be a midslur or curve spec.
-c
- if (abs(fnum).gt.31) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Slur midheight must be in the range (-31,31)!')
- call stop1()
- end if
- if (durq .eq. ':') then
-c
-c Expecting curve parameters. Get two numbers
-c
- do 40 i = 1 , 2
- iccount = iccount+1
- fnum = ichar(lineq(iccount:iccount))-48
- if (abs(fnum-3.5) .gt. 3.6) then
- call errmsg(lineq,iccount,
- * ibarcnt-ibaroff+nbars+1,
- * 'Slur curve parameter must be in range (0,7)!')
- call stop1()
- end if
-40 continue
- iccount = iccount+1
- end if
- end if
- iccount = iccount-1
- go to 15
-
- else if (dumq .eq. 's') then
-c
-c What follows should be one or two signed numbers for adjustment of line break
-c slur, end of 1st segment or start of second.
-c
- if (fontslur) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'May not use linebreak slur options with font-based slurs!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,dumq)
- if (index('+-',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'This character must be "+" or "-"!')
- call stop1()
- end if
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- if (nint(fnum) .gt. 30) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Magnitude of slur height adjustment cannot exceed 30!')
- call stop1()
- end if
- if (index('+-',dumq) .gt. 0) then
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- if (abs(fnum) .gt. 6.3) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Slur horiz shift must be in range (-6.3,6.3)!')
- call stop1()
- end if
- end if
- iccount = iccount-1
- go to 15
- else if (dumq .eq. 'H' .and. iposn.gt.1) then
- if (lineq(iccount+1:iccount+1) .eq. 'H')
- * iccount=iccount+1
- go to 15
- else if (dumq .eq. 'p') then
-c
-c local change in postscript slur/tie adjustment default
-c
- if (fontslur) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must use postscript slurs ("Ap") to use this option!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,dumq)
- if (index('+-',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected "+" or "-" here!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,dumq)
- if (index('st',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected "s" or "t" here!')
- call stop1()
- end if
- go to 15
- else if (dumq .ne. ' ') then
- ic = ichar(dumq)
- if ((ic.ge.48.and.ic.le.57) .or.
- * (ic.ge.65.and.ic.le.90)) then
- if (iposn .eq. 1) then
- if (durq.eq.'t' .and. fontslur) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Slur ID not allowed on non-postscript tie!')
- call stop1()
- end if
- if (lineq(iccount+1:iccount+1).eq.'x')
- * iccount = iccount+1
- go to 15
- end if
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Slur ID must be 2nd character in slur symbol!')
- call stop1()
- end if
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in slur symbol!')
- call stop1()
- end if
- go to 110
- else if (index('0123456789#-nx_',durq) .gt. 0) then
-c
-c We have a figure. Only allow on 1st note of xtup
-c
- if (itup .ne. 2) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Figure in xtup only allowed on 1st note!')
- call stop1()
- else if (durq.eq.'x') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'No floating figures in xtuplets!')
- call stop1()
- end if
- if (usefig .and. ivx.eq.1) ifig = 1
-26 call g1etchar(lineq,iccount,durq)
-c if (index('0123456789#-n_.:',durq) .gt. 0) then
- if (index('0123456789#-n_.:v',durq) .gt. 0) then
- go to 26
- else if (durq .eq. 's') then
- isligfont = .true.
- go to 26
- else if (durq .eq. '+') then
-c
-c vertical offset, must be integer then blank
-c
- call g1etchar(lineq,iccount,durq)
- if (index('123456789',durq) .ne. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Integer for vertical offset expected here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Vertical offset must terminate figure!')
- call stop1()
- end if
- iccount = iccount-1
- go to 26
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in figure in xtuplet!')
- call stop1()
- end if
- go to 110
- else if (durq .eq. 'G') then
- ngr = 1
-79 call g1etchar(lineq,iccount,charq)
- if (index('123456789',charq) .gt. 0) then
- call readnum(lineq,iccount,durq,fnum)
- ngr = nint(fnum)
- iccount = iccount-1
- go to 79
- else if (index('AWulxs',charq) .gt. 0) then
- go to 79
- else if (charq .eq. 'm') then
- call g1etchar(lineq,iccount,charq)
- if (index('01234',charq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'A digit less than 5 must follow "m" in a grace note!')
- call stop1()
- end if
- go to 79
- else if (charq .eq. 'X') then
-c
-c Space before main note
-c
- call g1etchar(lineq,iccount,charq)
- if (index('0123456789.',charq) .gt. 0) then
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- go to 79
- else
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'A number must follow "X" in a grace note!')
- call stop1()
- end if
- end if
-c
-c At this point, charq is first note name in rest (grace?)
-c
- do 71 igr = 1 , ngr
- numnum = 0
- if (igr .gt. 1) then
-75 call g1etchar(lineq,iccount,charq)
- if (charq .eq. ' ') go to 75
- end if
- if (index('abcdefg',charq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'In grace, expected "a"-"g"!')
- call stop1()
- end if
-78 call g1etchar(lineq,iccount,charq)
- if (charq .ne. ' ') then
- if (index('1234567',charq) .gt. 0) then
- if (numnum .eq. 1) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only one of "+-1234567" allowed here in grace!')
- call stop1()
- end if
- numnum = 1
- go to 78
- else if (index('+-nfs',charq) .gt. 0) then
- go to 78
- end if
-c
-c Digits are possible octave numbers
-c
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after note name in grace!')
- call stop1()
- end if
-71 continue
- go to 110
- else if (durq .eq. chax(92)) then
- call chklit(lineq,iccount,literr)
- if (literr .gt. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * literq(literr))
- call stop1()
- end if
- go to 110
- else if (durq .eq. '"') then
-c
-c pmx lyric
-c
- call chkpmxlyr(lineq,iccount,lyrerr)
- if (lyrerr .gt. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * lyrerq(lyrerr))
- call stop1()
- end if
- go to 110
- else if (durq .eq. 'M') then
-c
-c Temporary trap until I get around putting this in pmxb
-c
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Macros not yet allowed in xtuplets!')
- call stop1()
- else if (durq .eq. 'X') then
- call g1etx(lineq,iccount,shifton,
- * ibarcnt-ibaroff+nbars+1,udsp(ibarcnt+nbars+1),wheadpt)
- go to 110
- else if (durq .eq. 'z') then
-c
-c Chord note in xtup. Read past for now.
-c
-33 call g1etchar(lineq,iccount,durq)
- if (durq .ne. ' ') go to 33
- go to 110
- else if (durq .eq. 'D') then
-c
-c Dynamic mark
-c
- call checkdyn(lineq,iccount,ibarcnt-ibaroff+nbars+1)
- go to 110
- else if (durq .eq. '%') then
- if (iccount .ne. 1) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Comment must have "%" in column 1!')
- call stop1()
- end if
- iccount = 128
- go to 110
- else if (durq .eq. '?') then
- call getchar(lineq,iccount,durq)
- if (durq .eq. ' ') then
- iccount = iccount-1
- go to 110
- end if
- if (durq .ne. '-') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expecting "-"')
- call stop1()
- end if
- call getchar(lineq,iccount,durq)
- if (index('0123456789.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expecting number')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- go to 110
-c
-c 140215 Allow clef change inside xtup
-c
- else if (durq .eq. 'C') then
- call g1etchar(lineq,iccount,durq)
- if (.not.(index('tsmanrbf',durq).gt.0 .or.
-c * (ichar(durq).ge.48 .and. ichar(durq).le.55))) then
- * (ichar(durq).ge.48 .and. ichar(durq).le.56))) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must have t,s,m,a,n,r,b,f or 0-8 after C!')
- call stop1()
- end if
-c gotclef = .true.
- go to 110
-c+++
- else if (durq.eq.']' .and. lineq(iccount+1:iccount+1).eq.'['
- * .and. lineq(iccount+2:iccount+2).eq.' ') then
- iccount = iccount+2
- go to 110
-c+++
-c
-c Added 200118 to allow dot to be moved on 2nd note of 2-note tremolo
-c
- end if
-c
-c End of xtup options. At this point symbol can only be note or rest
-c
- if (index('abcdefgr',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'In xtup, this character is not allowed!')
- call stop1()
- end if
-7 call g1etchar(lineq,iccount,durq)
- if (index('12345678ulcb',durq) .gt. 0) then
- go to 7
- else if (index('sfn',durq) .gt. 0) then
-c
-c Check for MIDI-only accidental. Cannot coexist with accid. pos'n shift.
-c
- if (lineq(iccount+1:iccount+1) .eq. 'i') iccount=iccount+1
- go to 7
- else if (index('+-<>',durq) .gt. 0) then
-c
-c May have either octave jump or shifted accid. on main xtup note
-c
- if (index('+-',durq).gt.0 .and.
- * index('01234567890',lineq(iccount+1:iccount+1)).eq.0)
- * go to 7
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- go to 7
- else if (index('DF',durq) .gt. 0) then
-c
-c Double an xtup note to make an unequal xtup
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),18)
- ndoub = ndoub+1
- go to 7
- else if (durq .eq. 'd') then
- if (twotrem) then
-c
-c 2-note trem, get shift
-c
- call g1etchar(lineq,iccount,durq)
- if (index('+-',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected +/- for shifted dot on end of 2-note trem!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,dumq,fnum)
- if (index('+-',dumq) .gt. 0) then
-c
-c Vertical shift also
-c
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789-.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected number after 2nd +/- (shift dot)!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- end if
- iccount = iccount-1
- go to 7
- else
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),27)
- end if
- go to 7
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal option on xtuplet note!')
- call stop1()
- end if
- if (itup .eq. ntup-ndoub) go to 3
-6 continue
-3 continue
-c
-c 6==End of loop for xtuplet input
-c
- else if (durq .eq. 'm') then
-c
-c Multi-bar rest: next 1 or two digits are # of bars.
-c
- if (mod(itsofar(iv),lenbar) .ne. 0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Multibar rest must start at beginning of bar!')
- call stop1()
- else if (iv.eq.1.and.ibarmbr.gt.0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Multibar rest only OK at one time per block!')
- call stop1()
- end if
-c
-c For some purposes, pretend its one bar only
-c
- nodur(iv,nnl(iv)) = lenbar
- ibarmbr = nbars+1
- mbrest = 0
-c20 call g1etchar(lineq,iccount,durq)
- call g1etchar(lineq,iccount,durq)
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected an integer after "rm"!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- mbrest = nint(fnum)
-c iccount = iccount-1
- if (nv .gt. 1) then
- if (iv .eq. 1) then
- mbrestsav = mbrest
- else
- if (mbrest .ne. mbrestsav) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must enter same multi-bar rest in every voice!')
- call stop1()
- end if
- end if
-c
-c Zero out mbrestsav so can check at end of input block whether
-c all voices have one
-c
- if (iv .eq. nv) mbrestsav=0
- end if
- if (durq .eq. 'n') then
-c
-c Get new height
-c
- call g1etchar(lineq,iccount,durq)
- if (index('+-123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected an integer after "rm[x]n"!')
- call stop1()
- end if
- if (index('+-',durq).ne.0) iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- end if
- if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after "rm"!')
- call stop1()
- end if
- else if (durq .eq. '.') then
-c
-c Dotted pattern. Close out note. Mult time by 3/4.
-c Set time for next note to 1/4. Start the note.
-c
- idotform = 1
- else if (durq .eq. ',') then
- idotform = 3
-c
-c Now flow to duration setting, as if durq=' '
-c
- else if (index('oL',durq) .gt. 0) then
-c
-c Suppress full bar rest, or look left for height
-c
- if (charq .ne. 'r') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"o","L" options only legal for rest, not note!')
- call stop1()
- end if
- go to 2
- else if (index('DF',durq) .gt. 0) then
-c
-c Double note for xtup. Must check here in case "D" or "F" came before "x" or on
-c last note of xtup. Need to flag it in pmxa since affects horiz. spacing.
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),18)
- go to 2
- else if (durq .eq. 'A') then
-c
-c Main note accidental option
-c
- call getchar(lineq,iccount,durq)
- if (index('o+-<>',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"o",+","-","<",">" are the only legal options here!')
- call stop1()
- end if
-c
-c Need more stuff here
-c
- if (durq .ne. "o") then
-c
-c Back up 1, flow out, will get +|-|<|> next loop preceded by "A", and will
-c proceed to number input checking
-c
- iccount = iccount-1
- end if
- go to 2
- else if (durq .eq. 'T') then
-c
-c Single stem tremolo. Only option (optional) is 1,2,3, or 4.
-c
- call getchar(lineq,iccount,durq)
- if (index('1234',durq) .eq. 0) iccount = iccount-1
- go to 2
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character!')
- print*,'ASCII code:',ichar(durq)
- call stop1()
- end if
-c
-c End of block for note options.
-c
-c Set the duration
-c
- if (idotform .gt. 0) then
- if (idotform .eq. 1) then
- nodur(ivx,nnl(ivx)) = i1fnodur(nnodur,dotq)*3/2
- else if (idotform .eq. 2) then
- nodur(ivx,nnl(ivx)) = nodur(ivx,nnl(ivx)-1)/3
- else if (idotform .eq. 3) then
- nodur(ivx,nnl(ivx)) = i1fnodur(nnodur,dotq)
- else if (idotform .eq. 4) then
- nodur(ivx,nnl(ivx)) = nodur(ivx,nnl(ivx)-1)/2
- end if
- else if (ibarmbr.ne.nbars+1 .and. .not.fulbrp) then
- nodur(ivx,nnl(ivx)) = i1fnodur(nnodur,dotq)
-c
-c Check for double dot
-c
- if (iddot .eq. 1) then
- nodur(ivx,nnl(ivx)) = nodur(ivx,nnl(ivx))*7/6
- iddot = 0
- end if
- else if (fulbrp) then
- nodur(ivx,nnl(ivx)) = lenbar
-c
-c Use a one-line function to set nnodur. It gives inverse of ifnodur.
-c
- nnodur = index('62514x0x37',
- * chax(48+int(log(.1+lenbar)/.69315)))-1
- fulbrp = .false.
- end if
- rest(ivx,nnl(ivx)) = charq.eq.'r'
-c
-c If inside forced beam, check if note is beamable
-c
- if (fbon) then
- if (nodur(ivx,nnl(ivx)) .lt. 16) go to 120
- if (nnl(ivx) .gt. 1) then
- if (nodur(ivx,nnl(ivx)-1) .eq. 0) go to 120
- end if
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Unbeamable thing in forced beam!')
- call stop1()
- end if
-120 continue
-c
-c Get number of prior bars for later check on whether note spans bar line
-c
- nbb4 = itsofar(ivx)/lenbar
- itsofar(ivx) = itsofar(ivx)+nodur(ivx,nnl(ivx))
- if (mod(itsofar(ivx),lenbar) .eq. 0) then
- nbars = nbars+1
- if (shifton) barend = .true.
-c
-c Will check barend when 1st note of next bar is entered.
-c
- if (nbars .gt. 15) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Cannot have more than 15 bars in an input block!')
- call stop1()
- end if
- nib(ivx,nbars) = nnl(ivx)
- if (firstline .and. lenbar.ne.lenbr1) then
-c
-c Just finished the pickup bar for this voice.
-c
- if (itsofar(ivx) .ne. lenbr0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Pickup bar length disagrees with mtrnum0!')
- call stop1()
- end if
- lenbar = lenbr1
- itsofar(ivx) = 0
- end if
- else if (barend) then
- if (shifton) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Bar ended with user-defined shift still on!')
- call stop1()
- end if
- barend = .false.
- else if (itsofar(ivx)/lenbar .gt. nbb4) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'This note spans a bar line!')
- call stop1()
- end if
- if (idotform.eq.1 .or. idotform.eq.3) then
- call g1etchar(lineq,iccount,charq)
- if (index('abcedfgr',charq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected note name or "r" here!')
- call stop1()
- end if
- idotform = idotform+1
- numnum = 1
- go to 28
- end if
-c
-c End of sub block for note-rest
-c
- else if (charq .eq. 'z') then
- call g1etchar(lineq,iccount,charq)
- if (index('abcdefg',charq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected chord note name here!')
- call stop1()
- end if
-25 call g1etchar(lineq,iccount,durq)
-c if (index('dre12345678',durq) .gt. 0) then
- if (index('dre12345678c',durq) .gt. 0) then
- go to 25
- else if (index('fsn',durq) .gt. 0) then
-c
-c Check for midi-only accid. CANNOT coesist with accidental position tweaks, so
-c MUST come right after "f,s,n"
-c
- if (lineq(iccount+1:iccount+1) .eq. 'i') iccount=iccount+1
- go to 25
- else if (durq .eq. 'A') then
- if (index('fsn',lineq(iccount-1:iccount-1)) .eq. 0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Must have "f,s,n" before "A" in chord note!')
- call stop1()
- end if
- go to 25
- else if (index('<>',durq) .gt. 0) then
- if (index('fsnA',lineq(iccount-1:iccount-1)) .eq. 0) then
-c if (index('fsncA',lineq(iccount-1:iccount-1)) .eq. 0) then ! Causes problems
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Must have "f,s,n,A" before "<" or ">"!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,durq)
- if (index('1234567890.',durq) .eq. 0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Expected a number to start here for accidental shift!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- go to 25
- else if (index('+-',durq) .gt. 0) then
- if (index('1234567890.',lineq(iccount+1:iccount+1)) .eq. 0)
- * go to 25
-c
-c Number or '.' (durq) follows +/- . Get it.
-c
- call g1etchar(lineq,iccount,durq)
- if (durq .eq. '.' .and. index('1234567890',
- * lineq(iccount+1:iccount+1)) .eq. 0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * '"." here must be followed by a digit!')
- call stop1()
- else if (index('sfndA',lineq(iccount-2:iccount-2)).eq.0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Number after +/- must follow "d,s,f,n,A"!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- if (index('+-',durq) .eq. 0) then
- iccount = iccount-1
- go to 25
- end if
-c
-c 2nd +/-
-c
- call g1etchar(lineq,iccount,durq)
- if (durq .eq. '.') call g1etchar(lineq,iccount,durq)
- if (index('1234567890',durq) .eq. 0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Expected a number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- go to 25
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in chord note!')
- call stop1()
- end if
- else if (charq .eq. 'G') then
- ngr = 1
-9 call g1etchar(lineq,iccount,charq)
- if (index('123456789',charq) .gt. 0) then
- call readnum(lineq,iccount,durq,fnum)
- ngr = nint(fnum)
- iccount = iccount-1
- go to 9
- else if (index('AWulxs',charq) .gt. 0) then
- go to 9
- else if (charq .eq. 'm') then
- call g1etchar(lineq,iccount,charq)
- if (index('01234',charq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'A digit less than 5 must follow "m" in a grace note!')
- call stop1()
- end if
- go to 9
- else if (charq .eq. 'X') then
-c
-c Space before main note
-c
- call g1etchar(lineq,iccount,charq)
- if (index('0123456789.',charq) .gt. 0) then
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- go to 9
- else
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'A number must follow "X" in a grace note!')
- call stop1()
- end if
- end if
-c
-c At this point, charq is first note name in rest (grace?)
-c
- do 19 igr = 1 , ngr
- numnum = 0
- if (igr .gt. 1) then
-55 call g1etchar(lineq,iccount,charq)
- if (charq .eq. ' ') go to 55
- end if
- if (index('abcdefg',charq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'In grace, expected "a"-"g"!')
- call stop1()
- end if
-18 call g1etchar(lineq,iccount,charq)
- if (charq .ne. ' ') then
- if (index('1234567',charq) .gt. 0) then
- if (numnum .eq. 1) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only one of "+-1234567" allowed here in grace!')
- call stop1()
- end if
- numnum = 1
- go to 18
-c else if (index('nfs',charq) .gt. 0) then
- else if (index('+-nfs',charq) .gt. 0) then
- go to 18
- end if
-c
-c Digits are possible octave numbers
-c
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after note name in grace!')
- call stop1()
- end if
-19 continue
- else if (charq .eq. chax(92)) then
- call chklit(lineq,iccount,literr)
- if (literr .gt. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * literq(literr))
- call stop1()
- end if
- else if (charq .eq. '"') then
-c
-c pmx lyric
-c
- call chkpmxlyr(lineq,iccount,lyrerr)
- if (lyrerr .gt. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * lyrerq(lyrerr))
- call stop1()
- end if
- else if (charq .eq. 'o') then
-c
-c Ornament on non-xtup note. "o" symbol must come AFTER the affected note
-c
- if (nnl(ivx) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"o" must be in same input block, after affected note!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,dumq)
-c if (index('(stmgx+Tupf._)e:>^bc',dumq) .eq. 0 ) then
- if (index('(stmgx+Tupf._)e:>^bcCG',dumq) .eq. 0 ) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal ornament!')
- call stop1()
- end if
- if (dumq .eq. ':') then
- call g1etchar(lineq,iccount,dumq)
- if (dumq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected blank after "o:"!')
- call stop1()
- else if (.not.ornrpt) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Turned off repeated ornaments before they were on!')
- call stop1()
- end if
- ornrpt = .false.
- else if (dumq .eq. 'g') then
- if (issegno) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Sorry, only one "segno" per input block!')
- call stop1()
- else if (ivx .ne. 1) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'segno can only be in voice 1!')
- call stop1()
- end if
- issegno = .true.
-12 call g1etchar(lineq,iccount,dumq)
- if (dumq.eq.'-' .or.
- * (ichar(dumq).ge.48.and.ichar(dumq).le.58)) go to 12
- if (dumq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in segno ornament symbol!')
- call stop1()
- end if
- else if (dumq .eq. 'T') then
-c
-c Trill. may be followed by 't' and/or number. read 'til blank
-c
-22 call g1etchar(lineq,iccount,dumq)
- if (dumq .eq. ':') then
- if (lineq(iccount+1:iccount+1) .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected blank after ":"!')
- call stop1()
- end if
- go to 32
- else if (dumq .ne. ' ') then
- go to 22
- end if
- else if (dumq .eq. 'f') then
- call g1etchar(lineq,iccount,dumq)
- if (index(' d+-:',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after "f" in fermata ornament symbol!')
- call stop1()
- end if
- if (dumq .eq. 'd') call g1etchar(lineq,iccount,dumq)
- if (dumq .eq. ':') go to 32
- else if (dumq .eq. 'e') then
- call g1etchar(lineq,iccount,dumq)
- if (index('sfn?',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after "e" in edit. accid. symbol!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,dumq)
- if (dumq .eq. '?') call g1etchar(lineq,iccount,dumq)
- else
- call g1etchar(lineq,iccount,dumq)
- end if
- if (index('+- :',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in ornament symbol!')
- call stop1()
- end if
- if (index('+-',dumq) .gt. 0) then
- if (index('0123456789',lineq(iccount+1:iccount+1)).eq.0) then
- call errmsg(lineq,iccount+1,ibarcnt-ibaroff+nbars+1,
- * 'There should be an integer here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- if (durq .eq. ':') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Cannot shift AND repeat an ornament!')
- call stop1()
- end if
-c
-c 12/7/03 Allow horizontal shift on any ornament, not just breath and caes.
-c
- if (index('+-',durq) .gt. 0) then
- if (index('.0123456789',lineq(iccount+1:iccount+1))
- * .eq. 0) then
- call errmsg(lineq,iccount+1,ibarcnt-ibaroff+nbars+1,
- * 'There should be a number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- end if
- end if
-32 continue
- if (dumq .eq. ':') then
- if (lineq(iccount+1:iccount+1) .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '":" must be followed by blank in "o: "!')
- call stop1()
- else if (ornrpt) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Turned on repeated ornaments but already on!')
- call stop1()
- end if
- ornrpt = .true.
- end if
- else if (index('st(){}',charq) .gt. 0) then
- numint = 0
- iposn = 0
-8 call g1etchar(lineq,iccount,dumq)
- iposn = iposn+1
- if (charq.eq.'t' .and. dumq.eq.'t') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Cannot use "t" as an option on a tie!')
- call stop1()
- end if
- if (index('udltb+-fnhHpsv ',dumq) .eq. 0) then
-c
-c Check for explicit ID code.
-c
- ic = ichar(dumq)
- if (ic.lt.48 .or. (ic.gt.57.and.ic.lt.65) .or.
- * ic.gt.90) then
-c
-c Not 0-9 or A-Z, so exit
-c
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in slur symbol!')
- call stop1()
- else
-c
-c It is a possible ID code. Right place?
-c
- if (iposn .ne. 1) then
-c
-c Slur ID is not 2nd!
-c
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Slur ID must be second character in slur symbol!')
- call stop1()
- else if (charq.eq.'t' .and. fontslur) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Slur ID not allowed on non-postscript tie!')
- call stop1()
- else if (lineq(iccount+1:iccount+1).eq.'x') then
- iccount = iccount+1
- end if
- end if
-c
-c Slur ID is OK. Note it cannot be "H" at this point..
-c
- go to 8
- else if (dumq .eq. 'H') then
- if (iposn .eq. 1) go to 8
-c
-c "H" is NOT an ID code.
-c
- if (.not.fontslur .and. charq.eq.'t') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Cannot reshape postscript ties this way!')
- call stop1()
- end if
- if (lineq(iccount+1:iccount+1) .eq. 'H') then
- iccount=iccount+1
- iposn = iposn+1
- end if
- go to 8
- else if (index('fh',dumq).gt.0 .and. .not.fontslur
- * .and. charq.eq.'t') then
-c
-c 3/9/03 Can't reshape postscript tie.
-c
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Cannot reshape postscript ties this way!')
- call stop1()
- else if (dumq .eq. 'p') then
-c
-c local change in postscript slur/tie adjustment default
-c
- if (fontslur) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must use postscript slurs ("Ap") to use this option!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,dumq)
- if (index('+-',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected "+" or "-" here!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,dumq)
- if (index('st',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected "s" or "t" here!')
- call stop1()
- end if
- iposn = iposn+2
- go to 8
- end if
- if (index('udltbfnh',dumq) .gt. 0) then
- go to 8
- else if (index('+-',dumq) .gt. 0) then
- numint = numint+1
- if (fontslur .and. charq.eq.'t') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"+|-" for slur height only allowed in "s"-slurs!')
- call stop1()
- end if
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- if (numint .eq. 1) then
- if (nint(fnum) .gt. 30) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Magnitude of slur height adjustment cannot exceed 30!')
- call stop1()
- end if
- else if (numint .eq. 2) then
- if (abs(fnum) .gt. 6.3) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Slur horiz shift must be in range (-6.3,6.3)!')
- call stop1()
- end if
- else
-c
-c Third signed integer, must be a midslur or curve spec.
-c
- if (abs(fnum).gt.31) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Slur midheight must be in the range (-31,31)!')
- call stop1()
- end if
- if (durq .eq. ':') then
-c
-c Expecting curve parameters. Get two numbers
-c
- do 41 i = 1 , 2
- iccount = iccount+1
- fnum = ichar(lineq(iccount:iccount))-48
- if (abs(fnum-3.5) .gt. 3.6) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Slur curve parameter must be in range (0,7)!')
- call stop1()
- end if
-41 continue
- iccount = iccount+1
- end if
- end if
- iccount = iccount-1
- go to 8
- else if (dumq .eq. 's') then
-c
-c What follows should be one or two signed numbers for adjustment of line break
-c slur, end of 1st segment or start of second.
-c
- if (fontslur) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'May not use linebreak slur options with font-based slurs!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,dumq)
- if (index('+-',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'This character must be "+" or "-"!')
- call stop1()
- end if
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- if (nint(fnum) .gt. 30) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Magnitude of slur height adjustment cannot exceed 30!')
- call stop1()
- end if
- if (index('+-',dumq) .gt. 0) then
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- if (abs(fnum) .gt. 6.3) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Slur horiz shift must be in range (-6.3,6.3)!')
- call stop1()
- end if
- end if
- iccount = iccount-1
- go to 8
- else if (dumq .eq. 'H' .and. iposn.gt.1) then
- if (lineq(iccount+1:iccount+1) .eq. 'H') iccount=iccount+1
- go to 8
- end if
- else if (charq .eq. '?') then
- call getchar(lineq,iccount,durq)
- if (durq .eq. ' ') then
- iccount = iccount-1
- else
- if (durq .ne. '-') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expecting "-"!')
- call stop1()
- end if
- call getchar(lineq,iccount,durq)
- if (index('0123456789.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expecting number!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- end if
- else if ((ichar(charq).ge.48.and.ichar(charq).le.57) .or.
- * index('#-nx_',charq) .gt. 0) then
-c
-c We have a figure. Must come AFTER the note it goes under
-c
- if (itsofar(ivx).eq.0 .and.
- * (.not.firstline.or.lenbr0.eq.0.or.lenbar.eq.lenbr0)) then
-c
-c Figure before first note in block
-c
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Cannot put figure before first note in block!')
- call stop1()
- end if
- if (charq.eq.'x') then
- indxb = index(lineq(iccount:128),' ')
- if (indxb .lt. 5) then
- call errmsg(lineq,iccount+indxb-1,ibarcnt-ibaroff+nbars+1,
- * 'Cannot have a blank here in floating figure!')
- call stop1()
- end if
- end if
- if (usefig) ifig = 1
-5 call g1etchar(lineq,iccount,charq)
- if (index(' 0123456789#-nx_.:+sv',charq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in figure!')
- call stop1()
- else if (charq .eq. '+') then
-c
-c vertical offset, must be integer, then blank
-c
- call g1etchar(lineq,iccount,charq)
- if (index('123456789',charq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Integer for vertical offset expected here!')
- call stop1()
- end if
- call readnum(lineq,iccount,charq,fnum)
- if (charq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Vertical offset must terminate figure!')
- call stop1()
- end if
- iccount = iccount-1
- go to 5
- else if (charq .eq. 's') then
- isligfont = .true.
- end if
- if (charq .ne. ' ') go to 5
- else if (charq .eq. '[') then
- if (fbon) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Started forced beam while another was open!')
- call stop1()
- end if
- fbon = .true.
-17 call g1etchar(lineq,iccount,charq)
- if (index('uljhf:',charq) .gt. 0) then
- go to 17
- else if (index('+-',charq) .gt. 0) then
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- go to 17
- else if (charq .eq. 'm') then
-c
-c Forced multiplicity, next char should be 1-4
-c
- call g1etchar(lineq,iccount,charq)
- if (index('1234',charq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Forced multiplicity for a beam must be 1, 2, 3, or 4!')
- call stop1()
- end if
- go to 17
- else if (charq .ne. ' ') then
- if (index('0123456789',charq) .gt. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'After "[", digits must now be preceeded by "+" or "-"!')
- print*,'You will have to edit older sources to meet this rqmt,'
- print*,'but it was needed to allow 2-digit height adjustments.'
- print*,'Sorry for the inconvenience. --The Management'
- else
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after [!')
- end if
- call stop1()
- end if
- else if (charq .eq. ']') then
- if (.not.fbon) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Forced beam stop with no corresponding start!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,charq)
- if (charq .eq. '-') then
- if (lineq(iccount+1:iccount+2) .ne. '[ ') then
- call errmsg(lineq,iccount+1,ibarcnt-ibaroff+nbars+1,
- * 'Only sequence allowed here is "[ "!')
- call stop1()
- else
- iccount = iccount+2
- end if
- else if (charq .eq. '[') then
- if (lineq(iccount+1:iccount+1) .ne. ' ') then
- call errmsg(lineq,iccount+1,ibarcnt-ibaroff+nbars+1,
- * 'This character must be a blank!')
- call stop1()
- end if
- else
-c
-c Forced beam is really ending
-c
- fbon = .false.
- if (charq .eq. 'j') then
- if (lineq(iccount+1:iccount+1) .ne. ' ') then
- call errmsg(lineq,iccount+1,ibarcnt-ibaroff+nbars+1,
- * 'This character must be a blank!')
- call stop1()
- end if
- else if (charq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"]" must be followed by blank, "j", "-", or "["!')
- call stop1()
- end if
- end if
- else if (charq .eq. 'D') then
-c
-c Dynamic mark
-c
- if (nnl(ivx) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"D" must not come before any notes have been entered!')
- call stop1()
- end if
- call checkdyn(lineq,iccount,ibarcnt-ibaroff+nbars+1)
- else if (index('lhw',charq) .gt. 0) then
-c
-c Save position for later check
-c
- icclhw = iccount
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789.+- ',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after "l", "w", or "h"!')
- call stop1()
- end if
- isheadr = isheadr .or. charq .eq. 'h'
- if (index(' +-',durq) .gt. 0) then
-c
-c There is a header (or lower string?)
-c
- if (index('+-',durq) .gt. 0) then
-c
-c User-defined vert offset (\internote).
-c
- if (charq .ne. 'h') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"+" or "-" not permitted here!')
- call stop1()
- end if
-c
-c Have "h" followed by +/- . Check for digit.
-c Can blow durq since not using fnum for now, but...
-c
- call g1etchar(lineq,iccount,durq)
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'There must be a digit here!')
- call stop1()
- end if
-c
-c Have "h" followed by +/- followed by a digit. No need to get the number.
-c
-c call readnum(lineq,iccount,durq,fnum)
- end if
- if (charq .ne. 'w') then
-c
-c Header or lower string.
-c
- if (icclhw .ne. 1) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * '"h" or "l" must be first character in line!')
- call stop1()
- end if
-c
-c Read past the next line, which has the string.
-c
- call read10(charq,lastchar)
- nline = nline+1
- iccount = 128
- else
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Symbol "w" (width) must be followed by a digit!')
- call stop1()
- end if
- else
-c
-c Height or width change spec. Check if at start of piece.
-c
- if (ibarcnt .gt. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Symbol must go at top of first input block!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,dimen)
-c
-c Check units. Convert to points
-c
- if (durq .eq. ' ' .or. durq .eq. 'p') then
- dimen = dimen+.5
- else if (durq .eq. 'i') then
- dimen = dimen*72+.5
- else if (durq .eq. 'm') then
- dimen = dimen/25.4*72+.5
- else
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal unit; must be "p","i",or"m"!')
- call stop1()
- end if
-c
-c 151211 fix. May have extra character.
-c
- if (index('pim',durq) .gt. 0) then
-c
-c Get another character, see if it's blank
-c
- if (lineq(iccount+1:iccount+1) .ne. ' ') then
- call errmsg(lineq,iccount+1,ibarcnt-ibaroff+nbars+1,
- * 'This character should be a blank!')
- call stop1()
- end if
- end if
- if (charq .eq. 'h') then
- ptheight = int(dimen)
- else
- widthpt = int(dimen)
- end if
- end if
- else if (charq .eq. 'm') then
-c
-c Time signature change. Only allow at beginning of block.
-c mtrnuml, mtrdenl (logical) and p (printable) will be input.
-c mtrnuml=0 initially. (In common)
-c
-c Check whether at beginning of a block
-c
- if (ivx.ne.1 .or. nnl(1).ne.0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Meter change only OK in voice 1, at start of block!')
- print*,'voice number is',ivx
- call stop1()
- end if
- newmeter = .true.
- if (index('o0123456789',lineq(iccount+1:iccount+1)).eq.0) then
- call errmsg(lineq,iccount+1,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in "m" command for meter change!')
- call stop1()
- end if
- call readmeter(lineq,iccount,mtrnuml,mtrdenl)
- if (mtrnuml .eq. 0) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Digit 0 not allowed here!')
- call stop1()
- end if
- call readmeter(lineq,iccount,mtrnmp,mtrdnp)
-c
-c Read past printed time signature; not used in pmxa.
-c
- lenbeat = i1fnodur(mtrdenl,'x')
- lenmult = 1
- if (mtrdenl .eq. 2) then
- lenbeat = 16
- lenmult = 2
- end if
- lenbar = lenmult*mtrnuml*lenbeat
- mtrnuml = 0
- else if (charq .eq. 'C') then
- call g1etchar(lineq,iccount,durq)
- if (.not.(index('tsmanrbf',durq).gt.0 .or.
- * (ichar(durq).ge.48 .and. ichar(durq).le.56))) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must have t,s,m,a,n,r,b,f or 0-8 after C!')
- call stop1()
- end if
- else if (charq .eq. 'R') then
- if (ivx .ne. 1) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Repeats can only go in voice 1!')
- call stop1()
- end if
-c10 call g1etchar(lineq,iccount,durq)
-c if (index('lrdDbz',durq) .gt. 0) go to 10
-c if (durq .ne. ' ') then
-c call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
-c * 'Illegal character after "R" (repeat/double bar)!')
-c call stop1()
-c end if
- call g1etchar(lineq,iccount,durq)
- call g1etchar(lineq,iccount,dumq)
- if (index('l Xr Xd XD Xb Xz XlrXdlX',durq//dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after "R*" (repeat/double bar)!')
- call stop1()
- end if
- if (dumq .ne. ' ') then
- call g1etchar(lineq,iccount,durq)
- if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must have blank after "R**" (repeat/double bar)!')
- call stop1()
- end if
- end if
- else if (charq .eq. 'V') then
-c
-c Ending
-c
- if (iv .ne. 1) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Voltas are only allowed in voice #1!')
- call stop1()
- else if (isvolt) then
- print*
- print*,'*******WARNING********'
- write(15,'(/,a)')'*******WARNING********'
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'There is more than one volta in this input block.!')
- print*,'This may work in a score, but WILL NOT work in parts.'
- print*,
- *'Safest to have only 1 volta per block, at the start of the block'
- write(15,'(a)')
- * 'This may work in a score, but WILL NOT work in parts.'
- write(15,'(a)')
- *'Safest to have only 1 volta per block, at the start of the block'
- end if
- isvolt = .true.
- lvoltxt = 0
-11 call g1etchar(lineq,iccount,durq)
- if (durq .ne.' ') then
- go to 11
- end if
- else if (charq .eq. 'B') then
- continue
- else if (charq .eq. 'P') then
- if (ivx.ne.1 .or. nnl(1).ne.0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only allowed at beginning of block!')
- call stop1()
- end if
-16 call g1etchar(lineq,iccount,durq)
- if (durq.eq.'l'.or.durq.eq.'r'.or.(ichar(durq).ge.48 .and.
- * ichar(durq).le.57)) go to 16
- if (durq .eq. 'c') then
-c
-c Expect a centered name, and it has to be last option
-c
- call g1etchar(lineq,iccount,durq)
- if (durq .eq. '"') then
-c
-c Quoted name, go to next quote mark
-c
- do 35 iccount = iccount+1 , 127
- if (lineq(iccount:iccount).eq.'"' .and.
- * lineq(iccount-1:iccount-1).ne.'\') go to 36
-35 continue
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Missing close quote after page number command (P)!')
- call stop1()
-36 continue
- else if (durq .ne. ' ') then
-c
-c Space-delimited name, look for next blank
-c
- do 37 iccount = iccount+1 , 127
- if (lineq(iccount:iccount) .eq. ' ') go to 38
-37 continue
-38 continue
- end if
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only "l","r","c" or digit allowed after "P"!')
- call stop1()
- end if
- else if (charq .eq. 'W') then
- call g1etchar(lineq,iccount,durq)
- if (index('.0123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected a number to start here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,wminnh(ibarcnt+nbars+1))
- else if (charq .eq. 'T') then
-c
-c Titles
-c
- call g1etchar(lineq,iccount,durq)
- if (index('itc',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must put "i", "t", or "c" after "T"!')
- call stop1()
- end if
- ihead = ihead+2**(index('itc',durq)-1)
-c
-c Maybe a number after 'Tt', but ignore here. Read past string on next line.
-c
- call read10(charq,lastchar)
- nline = nline+1
- iccount = 128
- else if (charq .eq. 'A') then
-27 call g1etchar(lineq,iccount,durq)
-c if (index('rbsdeK',durq) .gt. 0) then
- if (index('rbsdK',durq) .gt. 0) then
- go to 27
- else if (durq .eq. 'e') then
-c
-c Check for is4bignv. Must do here to catch first \internote, written in topfile
-c before ever calling getnote. Initialize as .false. in pmxa. Make it true only
-c if nv>7, AI not set, Ai not set.
-c
- is4bignv = nv.gt.7 .and. .not.AIset
- go to 27
- else if (durq .eq. 'v') then
- if (ibarcnt .eq. 0) novshrinktop = .true.
- go to 27
- else if (durq .eq. 'a') then
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'After "Aa", need decimal number!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fbar)
- iccount = iccount-1
- go to 27
- else if (durq .eq. 'i') then
- is4bignv = .false.
- AIset = .true.
- call g1etchar(lineq,iccount,durq)
-c
-c Local interstaff correction. Set to -1. if not specifiec, or after use,
-c or anytime except at top, since pmxb handles all times except at top.
-c
- call readnum(lineq,iccount,durq,tintstf)
- if (ibarcnt .eq. 0) fintstf = tintstf
- iccount = iccount-1
- go to 27
- else if (durq .eq. 'I') then
-c
-c Global interstaff correction. Use in place of fintstf if fintstf<0
-c
- is4bignv = .false.
- AIset = .true.
- call g1etchar(lineq,iccount,durq)
- call readnum(lineq,iccount,durq,gintstf)
- iccount = iccount-1
- go to 27
- else if (durq .eq. 'o') then
- optimize = .true.
- go to 27
- else if (durq .eq. 'S') then
- do 50 iiv = 1 , noinst
- call g1etchar(lineq,iccount,durq)
- if (index('-0st',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'After "AS", need nv instances of "s,t,-,0"!')
- call stop1()
- end if
- if (durq.eq.'-'.or.durq.eq.'s') then
- isize(iiv) = 1
- else if (durq.eq.'t') then
- isize(iiv) = 2
- end if
-50 continue
- go to 27
- else if (durq .eq. 'p') then
- fontslur = .false.
-42 continue
- call g1etchar(lineq,iccount,durq)
- if (index('+-',durq) .gt. 0) then
-c
-c Characters to change defaults for ps slurs
-c
- call g1etchar(lineq,iccount,durq)
- if (index('shtc',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only letters allowed here are "s","h","t","c"!')
- call stop1()
- end if
-c
-c Now check for another default modifier
-c
- go to 42
- else if (index('lh',durq) .gt. 0) then
-c
-c Flags for optional linebreak ties or header specials
-c
- go to 42
- else
- iccount = iccount-1
- end if
- go to 27
- else if (durq .eq. 'N') then
-c
-c Override default name for a part file. Must have part number, then
-c partname in quotes. Must be on line by itself, and start in column 1.
-c Will only be passed thru to scor2prt.
-c
- if (iccount .ne. 2) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"AN" must start in column 1!')
- call stop1()
- end if
- ndxquote = index(lineq,'"')
- if (ndxquote.lt.4 .or. ndxquote.gt.5 .or.
- * index('123456789',lineq(3:3)).eq.0 .or.
- * (ndxquote.eq.5.and.index('012',lineq(4:4)).eq.0)) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"AN" must be followed by inst. #, then quote!')
- call stop1()
- end if
- ndxquote = index(lineq(ndxquote+1:128),'"')
- if (ndxquote .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'In "AN", file name must be in quotes!')
- call stop1()
- end if
- iccount = 128
- else if (durq .eq. 'T') then
- cstuplet = .true.
- else if (durq .eq. 'R') then
-c
-c Get full name of normal include file; must occupy remainder of line
-c
- call getpmxmod(.false.,lineq(iccount+1:128))
- iccount = 128
- else if (durq .eq. 'c') then
- call g1etchar(lineq,iccount,durq)
- if (index('l4',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only "l" or "4" is allowed here!')
- call stop1()
- end if
- if (durq .eq. 'l' ) then
- hoffpt = -25
- voffpt = -45
- else if (durq .eq. '4') then
- ptheight = 745
- widthpt = 499
- hoffpt = -24
- voffpt = -24
- end if
- go to 27
- else if (durq .eq. 'V') then
- call g1etchar(lineq,iccount,durq)
- if (index('+-',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only "+" or "-" is allowed here!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'A number for vert shift before \eject must start here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- if (index('+-',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only "+" or "-" is allowed here!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'A number for vert shift after \eject must start here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- go to 27
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
-c * 'After "A" must follow one of the letters abcdeiINprRsST!')
- * 'After "A" must follow one of abcdeiILNprRsSTvV!')
- print*,'For AS, since ver. 2.7, must only have noinst args.'
- write(15,'(a)')
- * 'For AS, since ver. 2.7, must only have noinst args.'
- call stop1()
- end if
- else if (charq .eq. 'K') then
-c
-c Rules and function of K command
-c
-c Only 1 K +/-n +/-m allowed per block if n.ne.0 (transposition). isig1 is
-c initial sig, and must be passed to pmxb because it is needed when topfile
-c is called, which is before the K+n+m command is read in pmxb. Also, we
-c compute and save ibrkch and newkey for each syst, accounting for key changes,
-c then adjust fbar to make poenom much more accurate.
-c Jan 02: Now K-0+[n] is used to transpose e.g. from f to f#.
-c
-77 continue
- call g1etchar(lineq,iccount,durq)
-c if (index('+-i',durq) .eq. 0) then
- if (index('+-in',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"K" (transpose or key change) must be followed by "+,-,i,n"!')
- call stop1()
- end if
- if (durq .eq. 'n') go to 77
- if (durq .ne. 'i') then
-c
-c Normal key change and/or transposition)
-c
-c iccount = iccount+1
- num1 = 44-ichar(durq)
-c
-c num1= +1 or -1
-c
- ztrans = num1.eq.-1
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '1st +/- must be followed by a number!')
- call stop1()
- end if
-c iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- num1 = nint(fnum)*num1
- ztrans = ztrans .and. num1.eq.0
- if (index('+-',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '1st number after "K" must be followed by "+,-"!')
- call stop1()
- end if
- iccount = iccount+1
- num2 = 44-ichar(durq)
- call readnum(lineq,iccount,durq,fnum)
- num2 = num2*int(fnum+.1)
- if (num1.eq.0 .and. .not.ztrans) then
-c
-c Key change, only one per block allowed
-c
- if (iskchb) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Only one key change allowed per input block!')
- call stop1()
- end if
- iskchb = .true.
- nkeys = nkeys+1
- kchmid(nkeys) = mod(itsofar(ivx),lenbar).ne.0
-c
-c Make ibrkch = barnum-1 if at start of bar, so fsyst advances ok at linebreak.
-c
- ibrkch(nkeys) = ibarcnt+nbars
- if (kchmid(nkeys)) ibrkch(nkeys) = ibrkch(nkeys)+1
- newkey(nkeys) = num2+idsig
-c 130316
-c do 43 iinst = 1 , noinst
- midisig = newkey(nkeys)
-c43 continue
- else
-c
-c Transposition
-c
- fulltrans = .true.
- if (ibarcnt .gt. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Transposition must be at top of first input block!')
- call stop1()
- end if
- isig1 = num2
- idsig = isig1-newkey(1)
-c
-c idsig is the difference between sig after transposition, and sig in setup.
-c It may alter # of accid's in key changes if there is transposition.
-c
- end if
- else ! durq='i'
-c
-c 110522/110529
-c Instrument-wise transposition Ki[iInstTrans][+/-][iTransAmt][+/-][iTransKey]
-c and repeat i[...] for multiple instruments. Store info here if ibarcnt=0
-c so can pass to topfile (via comInstTrans), which is called before getnote.
-c Otherwise, will store info from getnote. Initialize EarlyTransOn and
-c LaterInstTrans to .false. in blockdata. Set EarlyTransOn from here;
-c LaterInstTrans from g1etnote. Zero both out after use. nInstTrans really
-c only needed for instrument-signatures, not transpositions. iTransAmt is
-c ALWAYS active per instrument. Set up instno(iv) so can fetch iTransAmt for
-c each staff.
-c
- call GetiTransInfo(.true.,ibarcnt,lineq,iccount,
- * ibaroff,nbars,noinst)
- end if
- else if (charq .eq. '|') then
-c
-c Optional bar symbol
-c
- if (mod(itsofar(ivx),lenbar).ne.0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Bar line marker out of place!')
- call stop1()
- else if (shifton) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Bar ended with user-defined shift still on!')
- call stop1()
- end if
- else if (charq .eq. '/') then
- if (ornrpt) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'WARNING: Block ended with repeated ornament still on!')
- ornrpt = .false.
- end if
- if (stickyS) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'WARNING: Block ended with sticky stemshrink still on!')
- stickyS = .false.
- end if
- if (fbon) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Block ended with forced beam open!')
- call stop1()
- else if (shifton) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Bar ended with user-defined shift still on!')
- call stop1()
-c
-c 140215 Temporary to allow clef change in stup
-c
-c else if (gotclef) then
-c call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
-c * 'May not enter clef at end of input block!')
-c call stop1()
- end if
- barend = .false.
-c
-c Perform time checks
-c
- if (mod(itsofar(ivx),lenbar).ne.0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Block duration not divisible by lenbar!')
- print*,'lenbar, timesofar are ',lenbar,itsofar(ivx)
- call stop1()
- else if (ivx.gt.1 .and. itsofar(ivx).ne.itsofar(1)) then
- print*
- print*,'No of bars in voice 1, current voice:',
- * itsofar(1)/lenbar,itsofar(ivx)/lenbar
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Block duration not equal to voice 1!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,durq)
- if (durq .eq. ' ' .and. iv.eq.nv) then
-c
-c End of input block
-c
- loop = .false.
- else
-c
-c Start a new voice
-c
- if (lenbr0.ne.0 .and. firstline) lenbar = lenbr0
- nbars = 0
- if (durq .eq. ' ') then
-c
-c New voice is on next staff
-c
- iv = iv+1
- ivx = iv
- else
-c
-c New voice is on same staff. Set up for it
-c
- ivx = nv+1
- do 23 iiv = 1 , nv
- if (nvmx(iiv) .eq. 2) ivx = ivx+1
-23 continue
- if (ivx .gt. nm) then
- write(*,'(1x,a21,i3,a23)')'Cannot have more than',nm,
- * ' lines of music at once'
- call stop1()
- end if
- nvmx(iv) = 2
- ivmx(iv,2) = ivx
- itsofar(ivx) = 0
- nnl(ivx) = 0
- do 24 j = 1 , 200
- rest(ivx,j) = .false.
- nacc(ivx,j) = 0
-24 continue
-c
-c For midi stuff, record that there is a 2nd line of music in this voice
-c
- if (ismidi) twoline(iv) = .true.
- end if
- end if
- iccount = 128
- else if (charq .eq. 'S') then
-c
-c New nsyst: for use with partmaker scor2prt, for parts w/ diff # of systs.
-c
- if (ibarcnt .gt. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"S" can only be in first input block!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,durq)
- if (index('123456789 ',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'A digit must follow "S"!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnsyst)
- nsyst = nint(fnsyst)
-14 continue
- if (durq .eq. 'P') then
-c
-c New npages for parts.
-c
- call g1etchar(lineq,iccount,durq)
- if (index('123456789 ',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must have a number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnsyst)
- npages = nint(fnsyst)
- go to 14
- else if (durq .eq. 'm') then
-c
-c Reset musize (musicsize).
-c
- call g1etchar(lineq,iccount,durq)
- if (index('123456789 ',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must have a number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnsyst)
- musize = nint(fnsyst)
- wheadpt = whead20*musize
- go to 14
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in "S" symbol!')
- call stop1()
- end if
- else if (charq .eq. 'L') then
-c
-c Force line break
-c
- call g1etchar(lineq,iccount,durq)
- if (durq .eq. 'C') then
-c
-c Coda, no real line break, just get coda length
-c
- if (ishort .ne. 1) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Cannot use "LC" without first using "L[n]S"!')
- call stop1()
- end if
- ishort = 0
- call g1etchar(lineq,iccount,durq)
- if (index('1234567890.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Need number to define coda length!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,codafrac)
- poefa(isysflb(nflb)) = poefa(isysflb(nflb))+codafrac
- if (index(' n',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Need blank or "n" here!')
- call stop1()
- end if
- return
- end if
- nflb = nflb+1
- ibarflb(nflb) = ibarcnt+nbars+1
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Need integer to define forced line break!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,sysflb)
- isysflb(nflb) = nint(sysflb)
- if (isysflb(nflb) .eq. 1) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'For now, "L1" not allowed!')
- call stop1()
- end if
- if (nflb .gt. 1) then
-c
-c Check if new number is > prior one
-c
- if (isysflb(nflb) .le. isysflb(nflb-1)) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'You already forced a line break at a later line!')
- call stop1()
- end if
- end if
- if (npages .eq. 0) then
- print*
- print*,'WARNING! You forced a line break at line ',
- * isysflb(nflb),' but npage = 0. Continue?'
- read(*,'(a)') charq
- if (index('yY',charq) .eq. 0) call stop1()
- else if (isysflb(nflb) .gt. nsyst) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Forced line break at line num > nsyst!')
- call stop1()
- else if (index(' PMS',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must have " ", "P", "M", or "S" here!')
- call stop1()
- end if
-49 continue ! Transfer up from below to allow S after M
- if (durq .eq. 'S') then
-c
-c Shortened line, get shortening fraction
-c
- ishort = 1
- call g1etchar(lineq,iccount,durq)
- if (index('1234567890.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Need number to define line shortening fraction!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,shortfrac)
- poefa(isysflb(nflb)) = shortfrac
- if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Need blank here!')
- end if
- end if
- if (durq .eq. 'P') then
-c
-c Forced page break here, get page number.
-c
- call g1etchar(lineq,iccount,durq)
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Need integer to define forced page break!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- nfpb = nfpb+1
- ipagfpb(nfpb) = nint(fnum)
- isysfpb(nfpb) = isysflb(nflb)
- if (ipagfpb(nfpb) .gt. npages) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Forced page break at page num > npages!')
- call stop1()
- else if (nfpb .gt. 1) then
- if (ipagfpb(nfpb) .le. (ipagfpb(nfpb-1))) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Forced page break numbers must increase!')
- call stop1()
- end if
- end if
- end if
- if (index(' M',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in linebreak symbol!')
- call stop1()
- else if (durq .eq. 'M') then
- nmovbrk = nmovbrk+1
- isysmb(nmovbrk) = isysflb(nflb)
- call g1etchar(lineq,iccount,durq)
-31 if (durq .eq. '+') then
-c
-c Vertical spacing, read past number.
-c
- call g1etchar(lineq,iccount,durq)
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Integer required here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- go to 31
- else if (durq .eq. 'i') then
-c
-c Change indentation,
-c
- call g1etchar(lineq,iccount,durq)
- if (index('.123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Decimal number required here!')
- call stop1()
- end if
-c
-c fracsys was initialized in block data to all 0.'s
-c
- call readnum(lineq,iccount,durq,fracsys(nmovbrk))
- go to 31
- else if (durq .eq. 'c') then
- call g1etchar(lineq,iccount,durq)
- go to 31
- else if (durq .eq. 'r') then
- call g1etchar(lineq,iccount,durq)
- if (index('+-',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must have "+" or "-" after "r" as movement break option!')
- call stop1()
- end if
- call g1etchar(lineq,iccount,durq)
- go to 31
- else if (durq .eq. 'n') then
-c
-c Change # of voices. Input ninow, iorig(1...ninow). Will use names,
-c staves per inst. and clefs corr. to iorig in original list of instruments.
-c
- nv = 0
- call g1etchar(lineq,iccount,durq)
- if (durq .eq. ':') then
-c
-c Signals a 2-digit number, get next two characters
-c
- call g1etchar(lineq,iccount,durq)
- call g1etchar(lineq,iccount,dumq)
- if (index('12',durq).eq.0
- * .or.index('0123456789',dumq).eq.0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal new number of instruments '//durq//dumq//
- * ' at movement break!')
- call stop1()
- end if
- read(lineq(iccount-1:iccount),'(i2)')ninow
- else
-c
-c durq is a single digit number for noinow
-c
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal new number of instruments '//durq//
- * ' at movement break!')
- call stop1()
- end if
- ninow = ichar(durq)-48
- end if
- if (ninow.gt.noinst) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'New number of instruments must be <= original!')
- call stop1()
- end if
- do 63 iinow = 1 , ninow
- call g1etchar(lineq,iccount,durq)
- if (durq .eq. ':') then
-c
-c Signals a 2-digit number
-c
- call g1etchar(lineq,iccount,durq)
- call g1etchar(lineq,iccount,dumq)
- if (index('12',durq).eq.0
- * .or.index('0123456789',dumq).eq.0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal 2-digit instrument number '//durq//dumq//
- * ' at movement break!')
- call stop1()
- end if
- read(lineq(iccount-1:iccount),'(i2)')iorig
- else
-c
-c durq is a single digit number for iorig
-c
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal instrument number '//durq//
- * ' at movement break!')
- call stop1()
- end if
- iorig = ichar(durq)-48
- end if
- if (iorig .gt. noinst) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'New instrument number must be <= original noinst!')
- call stop1()
- end if
- nv = nv+nsperi(iorig)
-63 continue
- do 61 iiv = 1 , nv
-c
-c Get clef names
-c
- call g1etchar(lineq,iccount,durq)
- if (.not.(index('tsmanrbf',durq).gt.0 .or.
-c * (ichar(durq).ge.48 .and. ichar(durq).le.55))) then
- * (ichar(durq).ge.48 .and. ichar(durq).le.56))) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must have t,s,m,a,n,r,b,f or 1-7 as clef symbol here!')
- call stop1()
- end if
-c
-c Initialize new voices
-c
- nvmx(iiv) = 1
- ivmx(iiv,1) = iiv
- itsofar(iiv) = 0
- nnl(iiv) = 0
- do 62 j = 1 , 200
- rest(iiv,j) = .false.
-62 continue
-61 continue
-c
-c Loop back up, this might not be last option in M
-c
- call g1etchar(lineq,iccount,durq)
- go to 31
- else if (durq .eq. 'S') then
- go to 49
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after Movement break symbol!')
- call stop1()
- end if
- if (fracsys(nmovbrk) .lt. 0.001) then
-c
-c Since fracsys was not explicitly set, set it to prior value.
-c
- if (nmovbrk .eq. 1) then
- fracsys(nmovbrk) = fracindent
- else
- fracsys(nmovbrk) = fracsys(nmovbrk-1)
- end if
- end if
- end if
-c
-c Just before exiting if-block for forced line breaks, set counter to use when
-c dealing with vertical space calcs
-c
- nistaff(nflb) = nv-1
- else if (charq .eq. 'F') then
- usefig = .false.
- else if (charq .eq. 'X') then
- call g1etx(lineq,iccount,shifton,ibarcnt-ibaroff+nbars+1,
- * udsp(ibarcnt+nbars+1),wheadpt)
- else if (charq .eq. 'I') then
-c
-c MIDI settings.
-c
- if (ivx.ne.1 .or. nnl(1).ne.0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'MIDI stuff only allowed at start of block!')
- call stop1()
- end if
- if (nv .gt. 15) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Sorry but MIDI does not work with more than 15 voices!')
- call stop1()
- end if
- ismidi = .true.
- call getmidi(noinst,lineq,iccount,ibarcnt,ibaroff,nbars,lenbar,
- * mtrdenl,nv,.true.)
- else if (charq .eq. 'M') then
- call setmac(lineq,iccount,ibarcnt,ibaroff,nbars,charq,durq,ivx,
- * nline)
- else if (index(',.',charq) .gt. 0) then
-c
-c Continued rhythmic shortcut
-c
- idotform = index('. ,',charq)
- if (idotform .eq. 1) then
-c
-c Change duration of prior note
-c
- itsofar(ivx) = itsofar(ivx)-nodur(ivx,nnl(ivx))
- nodur(ivx,nnl(ivx)) = nodur(ivx,nnl(ivx))*3/2
- itsofar(ivx) = itsofar(ivx)+nodur(ivx,nnl(ivx))
- end if
- idotform = idotform+1
- numnum = 1
- cdot = .true.
- go to 1
- else
- print*,'ASCII code:',ichar(charq)
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'This character is not allowed here!')
- print*,'ASCII code:',ichar(charq)
- call stop1()
- end if
- return
- end
- subroutine g1etset(nv,noinst,mtrnuml,mtrdenl,mtrnmp,mtrdnp,
- * xmtrnum0,newkey,npages,nsyst,musize,bottreb)
- parameter(nm=24,maxblks=9600)
- character*131072 bufq
- character*1 chax
- integer*2 lbuf(maxblks)
- common /inbuff/ ipbuf,ilbuf,nlbuf,lbuf,bufq
- character*128 lineq
- logical lastchar,issegno,isheadr,isvolt,fbon,bottreb,
- * newway
- common /c1omget/ lastchar,fbon,issegno,ihead,isheadr,nline,isvolt,
- * fracindent,nsperi(nm),linesinpmxmod,line1pmxmod,lenbuf0
- common /commidisig/ midisig
-c
-c Get the first line
-c
- iccount = 0
- nline = 1
-9 call getbuf(lineq)
- if (lineq(1:1) .eq. '%') then
- nline = nline+1
- go to 9
- end if
- if (lineq(1:3) .eq. '---') then
-c
-c Have TeX input until next line that starts with '---'
-c
-3 nline = nline+1
- call getbuf(lineq)
- if (ilbuf .gt. nlbuf) go to 1
- go to 2
-1 print*,'You did not terminate type 0 TeX input with "---"'
- call stop1()
-2 continue
- if (lineq(1:3) .ne. '---') go to 3
-c
-c Force a new line read on first call to readin
-c
- iccount = 128
- end if
-c
-c Here, lineq and nline are first non-TeX lines.
-c
- nv = nint(readin(lineq,iccount,nline))
- if (nv .gt. nm) then
- write(*,'(1x,a46,i3)')
- * 'In setup data, number of voices cannot exceed',nm
- call stop1()
- end if
- noinst = nint(readin(lineq,iccount,nline))
- if (noinst .gt. nv) then
- write(*,'(a)')
- * 'In setup data, cannot have more instruments than staves'
- call stop1()
- end if
- newway = noinst.le.0
- if (newway) noinst = -noinst
- do 10 iinst = 1 , noinst
-c
-c Seve # of staves per inst in case later drop some inst's.
-c
- if (newway) then
- nsperi(iinst) = nint(readin(lineq,iccount,nline))
- else if (iinst .gt. 1 ) then
- nsperi(iinst) = 1
- else
- nsperi(iinst) = nv-noinst+1
- end if
-10 continue
- mtrnuml = nint(readin(lineq,iccount,nline))
- mtrdenl = nint(readin(lineq,iccount,nline))
-cc
-cc Kluge!!!
-cc
-c if (mtrdenl .eq. 1) then
-c mtrdenl = 2
-c mtrnuml = mtrnuml*2
-c end if
- mtrnmp = nint(readin(lineq,iccount,nline))
- mtrdnp = nint(readin(lineq,iccount,nline))
- if (mtrnmp.eq.0 .and. mtrdnp .ge. 8) then
- write(*,'(a)')'In setup data, with mtrnmp=0, mtrdnp must be <8'
- call stop1()
- end if
- xmtrnum0 = readin(lineq,iccount,nline)
- newkey = nint(readin(lineq,iccount,nline))
-c 130316
-c do 11 iinst = 1 , noinst
- midisig = newkey
-c11 continue
- npages = nint(readin(lineq,iccount,nline))
- nsyst = nint(readin(lineq,iccount,nline))
- musize = nint(readin(lineq,iccount,nline))
- fracindent = readin(lineq,iccount,nline)
- if (fracindent .ge. 1.) then
- write(*,'(a)')'In setup data, fracindent must be <1'
- call stop1()
- end if
- if (npages .gt. nsyst) then
- print*,'Error in input file: npages > nsyst'
- call stop1()
- else if((musize-16)*(musize-20)*(musize-24)*(musize-29).ne.0) then
- call printl('Musicsize must be 16, 20, 24, or 29')
- call stop1()
- end if
-c
-c Next noinst non-comment lines are names of instruments.
-c
- do 4 i = 1 , abs(noinst)
-5 call getbuf(lineq)
- nline = nline+1
- if (lineq(1:1) .eq. '%') go to 5
-4 continue
-c
-c Mext non-comment line has nv clef names
-c
-6 call getbuf(lineq)
- nline = nline+1
- if (lineq(1:1) .eq. '%') go to 6
- do 7 iv = 1 , nv
-c if (index('brnamstf01234567',lineq(iv:iv)) .eq. 0) then
- if (index('brnamstf012345678',lineq(iv:iv)) .eq. 0) then
- call errmsg(lineq,iv,0,
- * 'There should be a clef symbol here!')
- call stop1()
- end if
-7 continue
- if (lineq(nv+1:nv+1) .ne. ' ') then
- call errmsg(lineq,nv+1,0,
- * 'There should be a blank here!')
- call stop1()
- end if
-c
-c Set flag if voice 1 is treble, since it affects vertical spacing
-c
-c bottreb = lineq(1:1).eq.'t'
- bottreb = index('t08',lineq(1:1)).gt.0
-c
-c Next non-comment line has path name
-c
-8 call getbuf(lineq)
- nline = nline+1
- if (lineq(1:1) .eq. '%') go to 8
- lpath = index(lineq,' ')-1
- if (index('/:'//chax(92),lineq(lpath:lpath)) .eq. 0) then
- call errmsg(lineq,lpath,0,
- * 'Last character of pathname is not "/",":", or "'
- * //chax(92)//'"!')
- call stop1()
- end if
- return
- end
- subroutine g1etx(lineq,iccount,shifton,ibar,udsp,wheadpt)
-c
-c Parse "X" commands. Ignore all "B"; "P" means to ignore whole symbol.
-c In scor2prt, must strip out "P", copy only "B" and "P"-type "X"-symbols.
-c
- logical shifton,number,btest
- character*128 lineq
- character*1 charq,dumq
- number = .false.
- nPBSc = 0
-1 call g1etchar(lineq,iccount,charq)
- if (index('PBS:',charq) .gt. 0) then
-c
-c Continue checking here even if "P".
-c
- ipbsc = index('PBS:',charq)
- if (btest(nPBSc,ipbsc)) then
- call errmsg(lineq,iccount,ibar,'Only one allowed per symbol!')
- call stop1()
- end if
- nPBSc = ibset(nPBSc,ipbsc)
- go to 1
- else if (index('+-.0123456789',charq) .gt. 0) then
- number = .true.
- if (index('+-',charq) .gt. 0) then
- call g1etchar(lineq,iccount,dumq)
- if (index('.0123456789',dumq) .eq. 0) then
- call errmsg(lineq,iccount,ibar,'Expected a number here!')
- call stop1()
- end if
- end if
- call readnum(lineq,iccount,dumq,fnum)
- if (charq.eq.'-') fnum = -fnum
- if (dumq .ne. 'p') then
- iccount = iccount-1
- fnum = fnum*wheadpt
- end if
- go to 1
- else if (charq .ne. ' ') then
- call errmsg(lineq,iccount,ibar,'Not allowed in "X" symbol!')
- call stop1()
- end if
-c
-c Done with parsing. Other checks
-c
- if (iand(6,nPBSc).eq.6 .or. iand(24,nPBSc).eq.24) then
- call errmsg(lineq,iccount-1,ibar,
- * 'Cannot have both "P" and "B" or "S" and ":"!')
- call stop1()
- end if
- if (btest(nPBSc,4)) then
- if (number) then
- if (shifton) then
- call errmsg(lineq,iccount-1,ibar,
- * 'Started a group shift without stopping prior one!')
- call stop1()
- else
- shifton = .true.
- end if
- else
- if (.not. shifton) then
- call errmsg(lineq,iccount-1,ibar,
- * 'Ended a group shift without starting one!')
- call stop1()
- else
- shifton = .false.
- end if
- end if
- end if
-c
-c P off, S off, c off => normal user-defined space. Add to udsp (later fsyst)
-c
- if (iand(nPBSc,26).eq.0) udsp = udsp+fnum
- if (.not.number .and. .not.btest(nPBSc,4)) then
- call errmsg(lineq,iccount-1,ibar,
- * 'Must have either a number or a colon in "X" symbol!')
- call stop1()
- end if
- return
- end
-c integer*4 function mytime()
-c CHARACTER(10) tq
-c CALL DATE_AND_TIME(TIME=tq)
-c read(tq,'(2i2,f6.3)')ih,im,ts
-c mytime = 1000*(ts+60*(im+60*ih))
-c return
-c end
- subroutine getbuf(lineq)
- parameter (maxblks=9600)
- character*(*) lineq
- character*131072 bufq
- integer*2 lbuf(maxblks)
- common /inbuff/ ipbuf,ilbuf,nlbuf,lbuf,bufq
- lineq = bufq(ipbuf+1:ipbuf+lbuf(ilbuf))
- ipbuf = ipbuf+lbuf(ilbuf)
- ilbuf = ilbuf+1
- return
- end
- subroutine getchar(lineq,iccount,charq)
- parameter (nm=24)
-c
-c Gets the next character out of lineq*128. If pointer iccount=128 on entry,
-c then reads in a new line. Resets iccount. Ends program if no more input.
-c
- common /comget/ lastchar,rptnd1,sluron(nm,2),fbon,ornrpt,stickyS,
- * movbrk,movnmp,movdnp,movgap,parmov,fintstf,gintstf,
- * rptprev,equalize,rptfq1,rptfq2
- logical lastchar,rptnd1,sluron,fbon,rptprev,ornrpt
- common /commac/ macnum,mrecord,mplay,macuse,icchold,lnholdq,endmac
- logical mrecord,mplay,endmac,equalize,stickyS
- character*1 charq,rptfq1,rptfq2
- character*128 lineq,lnholdq
- if (iccount .eq. 128) then
- call read10(lineq,lastchar)
- if (lastchar) return
- if (.not. endmac) then
- iccount = 0
- else
- endmac = .false.
- iccount = icchold
- lineq = lnholdq
- end if
- if (mrecord) then
- call mrec1(lineq,iccount,ndxm)
- end if
- end if
- iccount = iccount+1
- charq = lineq(iccount:iccount)
- return
- end
- subroutine getdyn(ivx,ip,irest,iornq,lineq,iccount)
- parameter (nm=24)
- common /comdyn/ ndyn,idyndat(99),levdsav(nm),ivowg(12),hoh1(12),
- * hoh2(12),hoh2h1(2),ntxtdyn,ivxiptxt(41),txtdynq(41),
- * idynda2(99),levhssav(nm),listcresc,listdecresc
- character*128 txtdynq
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- logical fontslur,upslur,WrotePsslurDefaults
- character*1 durq,chax
- character*4 dynsymq
- character*128 lineq
-c
-c Get info for dynamic mark. Enter after getting "D", iccount sits on "D"
-c Bits in idyndat are as follows
-c 00-03 ivx
-c 04-11 ip
-c 12-15 code for type of mark
-c 0 => arbitrary text
-c 1-12 => pppp,ppp,pp,p,mp,mf,f,fp,sfz,ff,fff,ffff
-c If (.not. fontslur)
-c 13 => hairpin start, 14,15 => <,> (ending)
-c else
-c 13 < start, 14 > start, 15 ending
-c end if
-c 16 flag for vertical offset
-c 17-23 vertical offset + 64 , \internote
-c 31 Hairpin start (0), stop (1)
-c
-c idynda2
-c
-c 00 flag for horizontal offset
-c 01-09 (horizontal offset)/10 + 25.6 notehead widths
-c 10 5th bit for ivx (5/15/10)
-c
- irest = ibset(irest,26)
- ndyn = ndyn+1
- idyn = ivx
- idynda2(ndyn) = 0
- if (ivx .ge. 16) call setbits(idynda2(ndyn),1,10,1)
- call setbits(idyn,8,4,ip)
- if (lineq(iccount+1:iccount+1) .eq. '"') then
-c
-c text-dynamic
-c
- ntxtdyn = ntxtdyn+1
- iccountt = iccount
-3 continue
- iend = iccountt+index(lineq(iccountt+2:128),'"')+2
- if (lineq(iend-2:iend-2) .eq. '\') then
- iccountt = iend-2
- go to 3
- end if
- txtdynq(ntxtdyn) = lineq(iccount+2:iend-2)
-c
-c Store ivx, ip in bits 0-12
-c
- ivxiptxt(ntxtdyn) = ivx+32*ip
- ipm = index('- +',lineq(iend:iend))
- idno = 0
- else
-c
-c Word-group or hairpin
-c
- do 1 iend = iccount+2 , 128
- ipm = index('- +',lineq(iend:iend))
-c
-c Exit the loop at first blank, "+", or "-"
-c
- if (ipm .gt. 0) go to 2
-1 continue
-2 continue
- read(lineq(iccount+1:iend-1),'(a'//chax(47+iend-iccount)//')')
- * dynsymq
- idno = (index(
- * 'ppppppp pp p mp mf f fp sfz ff fff ffff < > ',
- * dynsymq)+3)/4
-c
-c Save for later down
-c
- idno1 = idno
- end if
-c
-c Set flag to check level later if in beam
-c
- iornq = ibset(iornq,23)
- if (idno.ge.14) then
-c
-c Hairpin here. Check if opposite type from one that's already on
-c
- if (idno.eq.14.and.btest(listdecresc,ivx) .or.
- * idno.eq.15.and.btest(listcresc,ivx)) then
- call printl(' ')
- call printl('Started one kind of hairpin while other is on')
- call stop1()
- end if
-c
-c Start or stop?
-c
- if (btest(listcresc,ivx) .or. btest(listdecresc,ivx)) then
-c
-c Cresc/decresc is on, this is an ending. If fontslur, leave idno as is.
-c
- if (.not.fontslur) idno = 15
- else if (fontslur) then
-c
-c Start of font slur
-c
- idno = 13
- else
-c
-c Start of postscript slur
-c
- idno = idno-1
- end if
- end if
-c
-c Now that we used list[de]cresc, update
-c
- if (idno .ge.13) then
- if (idno.eq.15 .or. (fontslur.and.idno.eq.14)) then
-c
-c Something's ending
-c
- if (btest(listcresc,ivx)) then
-c
-c It's a cresc!
-c
- listcresc = ibclr(listcresc,ivx)
- else
- listdecresc = ibclr(listdecresc,ivx)
- end if
- else
-c
-c Something's starting
-c
- if (idno1 .eq. 14) then
-c
-c It's a cresc!
-c
- listcresc = ibset(listcresc,ivx)
- else
- listdecresc = ibset(listdecresc,ivx)
- end if
- end if
- end if
- call setbits(idyn,4,12,idno)
- iccount = iend
- if (ipm .ne. 2) then
-c
-c There is a vertical shift
-c
- idyn = ibset(idyn,16)
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- idno = nint(fnum)
- call setbits(idyn,7,17,(ipm-2)*idno+64)
- ipm = index('- +',durq)
- if (ipm .ne. 2) then
-c
-c There is a horizontal shift
-c
-c idynda2(ndyn) = ibset(idyn,23)
- idynda2(ndyn) = ibset(idynda2(ndyn),0)
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- idno = nint(10*fnum)
- call setbits(idynda2(ndyn),9,1,(ipm-2)*idno+256)
- end if
-c
-c iccount should be on the blank at the end of the entire symbol
-c
- end if
- idyndat(ndyn) = idyn
- return
- end
- subroutine getfig(itoff,charq,lineq,iccount,isfig,itfig,
-c * itsofar,nodur,figq,ivupfig,nfigs)
- * itsofar,nodur,figq,ivupfig,ivvfig,nfigs)
- logical isfig
- character*1 charq
- character*10 figq
- character*128 lineq
- nfigs = nfigs+1
- ivupfig = 0
- ivvfig = 0
- itoff = 0
- if (charq .eq. 'x') then
-c
-c Floating figure.
-c
- call getchar(lineq,iccount,charq)
- read(charq,'(i1)')noff
- call getchar(lineq,iccount,charq)
- read(charq,'(i1)')loff
- itoff = noff*ifnodur(loff,'x')
- call getchar(lineq,iccount,charq)
- else
-c
-c Figure on a note
-c
- isfig = .true.
- end if
- itfig = itsofar+itoff-nodur
- lfig = 1
- figq = charq
-5 call getchar(lineq,iccount,charq)
-c if (index(' +',charq) .eq. 0) then
- if (index(' +v',charq) .eq. 0) then
- figq = figq(1:lfig)//charq
- lfig = lfig+1
- go to 5
- else if (charq .eq. '+') then
-c
-c Get vertical offset for figure. Next character after number has to be blank.
-c
- iccount = iccount+1
- call readnum(lineq,iccount,charq,fnum)
- ivupfig = nint(fnum)
- else if (charq .eq. 'v') then
-c
-c Get vertical change in figdrop. Must be last item in figure word.
-c
- isign = 1
- call getchar(lineq,iccount,charq)
- if (charq .eq. '-') then
- isign=-1
- call getchar(lineq,iccount,charq)
- end if
- ivvfig = isign*(ichar(charq)-48)
- end if
- return
- end
- subroutine getgrace(ivx,nnl,lineq,iccount,islur,iornq,ipl,ndlev,
- * lastlev,iv,nv)
- parameter (nm=24)
- common /comgrace/ ivg(37),ipg(37),nolevg(74),itoff(2,74),aftshft,
- * nng(37),ngstrt(37),ibarmbr,mbrest,xb4mbr,
- * noffseg,ngrace,nvolt,ivlit(83),iplit(83),nlit,
- * graspace(37),
- * lenlit(83),multg(37),upg(37),slurg(37),slashg(37),
- * naccg(74),voltxtq(6),litq(83)
- logical upg,slurg,slashg
- character*1 charq,durq
- character*20 voltxtq
- character*128 lineq,litq
- integer*4 islur(nm,200),iornq(nm,0:200),ipl(nm,200),nnl(nm),
- * ndlev(nm,2)
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
-c
-c Grace, comes *before* main note:
-c UNLESS there's an 'A' or 'W' after the 'G'
-c ngrace = # of grace note groups so far in block
-c ivg(ngrace), ipg(ngrace)
-c nng(ngrace) = # of notes in this group: default = 1
-c ngstrt(ngrace) = starting position in nolevg of levels for this grace
-c multg(ngrace) = multiplicity: default = 1; input as 'm(digit)'
-c upg(ngrace) = logical for beam or stem dirn: default T, input'u,l'
-c slurg(ngrace) = logical for slur; default F, input 's'
-c slashg(ngrace) = T if slash; default is F, input 'x'
-c These data MUST precede note name of first note
-c nolevg, naccg: lists of levels and accid's, indexed as described above.
-c
- ngrace = ngrace+1
- ivg(ngrace) = ivx
- ipg(ngrace) = nnl(ivx)+1
- if (ngrace .eq. 1) then
- ngstrt(ngrace) = 1
- else
- ngstrt(ngrace) = ngstrt(ngrace-1)+nng(ngrace-1)
- end if
- islur(ivx,nnl(ivx)+1) = ibset(islur(ivx,nnl(ivx)+1),4)
- nng(ngrace) = 1
- multg(ngrace) = 1
- upg(ngrace) = .true.
- slurg(ngrace) = .false.
- slashg(ngrace) = .false.
-18 call getchar(lineq,iccount,charq)
- if (index('WA',charq) .gt. 0) then
-c
-c Grace is on note that was already done, so shift flags forward one note.
-c This puts flag on actual note with grace; later for W will go ahead one more.
-c
- ipg(ngrace) = nnl(ivx)
- islur(ivx,nnl(ivx)+1) = ibclr(islur(ivx,nnl(ivx)+1),4)
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),4)
- if (slurg(ngrace))
- * iornq(ivx,nnl(ivx)) = ibset(iornq(ivx,nnl(ivx)),24)
- if (charq .eq. 'A') then
-c
-c close After, clear way-after bit, to ensure priority of most recent A/W
-c
- ipl(ivx,nnl(ivx)) = ibset(ibclr(ipl(ivx,nnl(ivx)),31),29)
- else
-c
-c Way after; later assign to following note, and position like normal grace.
-c
- ipl(ivx,nnl(ivx)) = ibset(ibclr(ipl(ivx,nnl(ivx)),29),31)
- end if
- else if (charq .eq. 'm') then
- call getchar(lineq,iccount,charq)
- multg(ngrace) = ichar(charq)-48
- else if (index('123456789',charq) .gt. 0) then
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- nng(ngrace) = nint(fnum)
- else if (charq .eq. 'l') then
- upg(ngrace) = .false.
- else if (charq .eq. 's') then
- slurg(ngrace) = .true.
- if (nnl(ivx) .gt. 0) then
-c
-c If A- or W-grace, set signal to start slur on main note.
-c
- if(btest(ipl(ivx,nnl(ivx)),31) .or.
- * btest(ipl(ivx,nnl(ivx)),29))
- * iornq(ivx,nnl(ivx))=ibset(iornq(ivx,nnl(ivx)),24)
- end if
- else if (charq .eq. 'x') then
- slashg(ngrace) = .true.
- else if (charq .eq. 'u') then
- else if (charq .eq. 'X') then
-c
-c Space before main note of grace. Number will come next.
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,graspace(ngrace))
- iccount = iccount-1
- end if
- if (index('abcdefg',charq) .eq. 0) go to 18
-c
-c At this point, charq is first note name in grace
-c
- do 19 ing = ngstrt(ngrace), ngstrt(ngrace)+nng(ngrace)-1
- naccg(ing) = 0
- ioct = 0
- if (ing .gt. ngstrt(ngrace)) then
-55 call getchar(lineq,iccount,charq)
- if (charq .eq. ' ') go to 55
- endif
- iclastlev = 0
-9 call getchar(lineq,iccount,durq)
- if (durq .ne. ' ') then
- if (durq.eq.'+') then
- lastlev = lastlev+7
- iclastlev = iclastlev+7
- else if (durq.eq.'-') then
- lastlev = lastlev-7
- iclastlev = iclastlev-7
- else if (index('fsn',durq) .gt. 0) then
- if (naccg(ing) .eq. 0) then
- naccg(ing) = index('fsn',durq)
- else
-c
-c Double accidental
-c
- naccg(ing) = ibset(naccg(ing),2)
- end if
- else
- ioct = ichar(durq)-48
- end if
- go to 9
- end if
- if (ioct .gt. 0) then
- lastlev = ifnolev(charq,ioct,iTransAmt(instno(iv)))
- else
- if (nnl(ivx).eq.0 .and. ing.eq.ngstrt(ngrace)) then
- if (ivx .le. nv) then
- kv = 1
- else
- kv = 2
- end if
- lastlev = ndlev(iv,kv)+iclastlev
- end if
- lastlev = lastlev-3
- * +mod(ifnolev(charq,10,iTransAmt(instno(iv)))-lastlev+3,7)
- end if
- nolevg(ing) = lastlev
-19 continue
-c
-c Grace could come before first note of block, so reset end level.
-c
- if (nnl(ivx).eq.0) then
- if (ivx .le. nv) then
- kv = 1
- else
- kv = 2
- end if
- ndlev(iv,kv) = lastlev
- end if
- return
- end
- subroutine GetiTransInfo(From1,ibarcnt,lineq,iccount,
- * ibaroff,nbars,noinst)
-cccccccccccccccccccccccc
-cc
-cc GetiTransInfo.for
-cc
-cccccccccccccccccccccccc
-c
-c Called from both g1etnote and getnote, after first 'i' in Ki[...]
-c On entry, iccount points to last char retrieved, which is 'i'
-c
-c From1: locgical, true if called from g1etnote
-c ibarcnt: tells whether to set EarlyTransOn to true.
-c EarlyTransOn set false in blkdata, true here, back to false in topfile.
-c
-c 110522/110529
-c Instrument-wise transposition Ki[iInstTrans][+/-][iTransAmt][+/-][iTransKey]
-c and repeat i[...] for multiple instruments. Store info in g1etnot if ibarcnt=0
-c so can pass to topfile (via comInstTrans), which is called before getnote.
-c Otherwise, will store info from getnote. Initialize EarlyTransOn and
-c LaterInstTrans to .false. in blockdata. Set EarlyTransOn from g1etnote;
-c LaterInstTrans from getnote. Zero both out after use. nInstTrans really
-c only needed for instrument-signatures, not transpositions. iTransAmt is
-c ALWAYS active per instrument. Set up instno(iv) so can fetch iTransAmt for
-c each staff.
-c
-c iTransAmt stored as fn of instrument #, not like iTransKey which is
-c fn. of nm, just a counter, where corr. inst num is iInstTrans(nm). This
-c simplifies use of iTransAmt for all calls to ifnolev.
-c
- parameter (nm=24)
- logical From1
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans,store
- character*128 lineq
- character*1 durq
- durq = 'x' ! Can't initialize in declaration stmt, only works once.
- if(.not.EarlyTransOn) EarlyTransOn = From1 .and. ibarcnt.eq.0
- store = (EarlyTransOn.and.ibarcnt.eq.0) .or.
- * (ibarcnt.gt.0.and..not.From1)
- LaterInstTrans = .not.From1 .and. ibarcnt.gt.0
- if (store) nInstTrans = 0
-1 continue
- if (durq .eq. ' ') return
- call g1etchar(lineq,iccount,durq)
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'There must be an instrument number here!')
- call stop1()
- end if
- if (store) nInstTrans = nInstTrans+1
- call readnum(lineq,iccount,durq,fnum)
- instn = nint(fnum)
- if (instn.gt.noinst) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Instrument number out of range!')
- call stop1()
- end if
- if (store) iInstTrans(nInstTrans) = instn
-c
-c durq is +/- following inst # (for iTransAmt), iccount is on it.
-c
- if (index('+-',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '1st character after instrument number must be "+,-"!')
- call stop1()
- end if
- itramt = 44-ichar(durq) ! +1/-1 for itramt
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'There must be a transposition amount here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- if (store) iTransAmt(instn) = nint(fnum)*itramt
-c
-c durq is +/- following iTransAmt (for iTransKey), iccount is on it.
-c
- if (index('+-',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '1st character after transposition amount must be "+,-"!')
- call stop1()
- end if
- ikey = 44-ichar(durq) ! +1/-1
- call g1etchar(lineq,iccount,durq)
- if (index('0123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'There must be a key indicator here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- if (store) iTransKey(nInstTrans) = nint(fnum)*ikey
-c
-c durq is now 1st character after iTransKey, should be either 'i' or ' '
-c
- if (durq.ne.'i'.and.durq.ne.' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'There must be blank or "i" here!')
- call stop1()
- end if
- go to 1
- end
- subroutine getmidi(noinstarg,lineq,iccount,ibarcnt,ibaroff,nbars,
- * lenbar,mtrdenl,nv,first)
-c
-c Use this from both pmxa and pmxb to input and check midi data. "first" tells
-c whether pmxa or pmxb. If .not.first, then tempo and pause commands cause
-c things to be written immediately into the midi storage buffers.
-c
- parameter (nm=24,mv=24576)
- common /comevent/ miditime,lasttime
- logical mmacrec,gottempo
- common /commmac/ mmacstrt(0:nm,20),mmacend(0:nm,20),immac,
- * mmactime(20),nmidsec,msecstrt(0:nm,60),msecend(0:nm,60),
- * mmacrec,gottempo
-c
-c immac(i) is the index of i-th macro, i=1,nmac. Also make a list containing
-c nmidsec section starts and stops based on PLAYING macros (not recording).
-c
- integer*2 mmidi,midinum(26)
- logical restpend,relacc,notmain,twoline,ismidi,crdacc
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * 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
- character*128 lineq
- logical first
- common /comdiag/ n69(0:nm),n34(0:nm)
-c
-c Instrument codes
-c
- data midinum
- * / 1, 5, 7, 13,20,25,33,41,42,43,44,57,58,59,61,65,66,67,
-c XXpiXrhXhaXmaXorXguXabXvlXvaXvcXcbXtrXtbXtuXfrXsoXalXteX
-c
- * 68,69,71,72,74,75, 8,55 /
-c bsXobXbaXclXflXreXctXvo
-c
-1 call getchar(lineq,iccount,durq)
- if (durq .eq. 't') then
-c
-c Tempo in beats ber minute
-c
- call getchar(lineq,iccount,durq)
- if (index('0123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected an integer here for the pause!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,qpm)
- iccount = iccount-1
- if (.not.first) then
- call midievent('t',nint(qpm),0)
- gottempo = .true.
- end if
- go to 1
- else if (durq .eq. 'p') then
-c
-c Insert a pause. pausemid = pause in 1/4's
-c
- call getchar(lineq,iccount,durq)
- if (index('0123456789.',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected a number here for the pause!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,pausemid)
- iccount = iccount-1
- if (.not.first) then
-c
-c Compute a meter for the pause. This is only to keep MidiNotate on track.
-c Round pause to nearest 16th. Let denominator always be 16.
-c
- numb16 = nint(pausemid*4)
- call midievent('m',numb16,16)
-c
-c Put in pausemid beats of rest
-c
- do 3 icm = 0 , numchan-1
- call addmidi(icm,0,0,0,4.*numb16,.true.,.false.)
-3 continue
- miditime = miditime+nint(240*pausemid)
-c
-c Restore meter
-c
- call midievent('m',mtrdenl*lenbar/64,mtrdenl)
- end if
- go to 1
- else if (durq .eq. 'i') then
-c
-c Instrument numbers or letters. Expect noinst of them.
-c
- do 2 ivx = 1 , noinstarg
- call getchar(lineq,iccount,durq)
- if (ichar(durq) .gt. 96) then
-c
-c It's a lowercase letter. Get another, find corr. instrument #.
-c
- instq(1:1) = durq
- call getchar(lineq,iccount,durq)
- instq = instq(1:1)//durq
- iname = index('XXpiXrhXhaXmaXorXguXabXvlXvaXvcXcbXtrXtbX'//
- * 'tuXfrXsoXalXteXbsXobXbaXclXflXreXctXvo',instq)/3
- if (iname .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Unrecognized 2-letter midi instrument name!')
- call stop1()
- end if
- midinst(ivx) = midinum(iname)-1
- else
-c
-c Expect a number, followed by ":" if that is followed by another number.
-c I.e., if after call to readnum, durq is not ":", it must be either blank
-c or next instrument letter.
-c
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected a midi instrument number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- midinst(ivx) = nint(fnum)-1
- if (midinst(ivx).lt.0 .or. midinst(ivx).gt.255) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Midi instrument number must be in range 1-128!')
- call stop1()
- end if
- if (durq .ne. ':') iccount = iccount-1
- end if
-2 continue
- go to 1
- else if (durq .eq. 'v') then
-c
-c Get volumes for each instrument. Expect noinst of them.
-c Follow same pattern as for insttrument numbers above.
-c
- 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,
- * 'Expected a midi velocity number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- midivel(ivx) = nint(fnum)-1
- if (midivel(ivx).lt.0 .or. midivel(ivx).gt.127) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Midi velocity must be in range 1-128!')
- call stop1()
- end if
- if (durq .ne. ':') iccount = iccount-1
-7 continue
- if (.not. first) then
- call inst2chan(midvelc,midivel,midchan,nv,iinsiv,twoline)
- end if
- go to 1
- else if (durq .eq. 'b') then
-c
-c Get balance for each instrument. Expect noinst of them.
-c Follow same pattern as for instrument numbers above.
-c
- 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,
- * 'Expected a balance number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- midibal(ivx) = nint(fnum)-1
- if (midibal(ivx).lt.0 .or. midibal(ivx).gt.127) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Midi balance must be in range 1-128!')
- call stop1()
- end if
- if (durq .ne. ':') iccount = iccount-1
-8 continue
- if (.not. first) then
- call inst2chan(midbc,midibal,midchan,nv,iinsiv,twoline)
- end if
- go to 1
- else if (durq .eq. 'T') then
-c
-c Get transposition for each instrument. Expect noinst of them.
-c Follow similar pattern as above, but separator is +|-.
-c
- do 9 ivx = 1 , noinstarg
- call getchar(lineq,iccount,durq)
- ipm = index('-+',durq)
- if (ipm .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected "+" or "-" for midi transposition here!')
- call stop1()
- end if
- ipm = 2*ipm-3
- call getchar(lineq,iccount,durq)
- if (index('0123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected a number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- miditran(ivx) = ipm*nint(fnum)
-c if (mod(miditran(ivx),12).ne. 0) then
-c call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
-c * 'Midi transposition limited to multiples of 12!')
-c call stop1()
-c end if
- iccount = iccount-1
-9 continue
- if (.not. first) then
- call inst2chan(midtc,miditran,midchan,nv,iinsiv,twoline)
- end if
- go to 1
- else if (durq .eq. 'g') then
- call getchar(lineq,iccount,durq)
- if (index('0123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected an integer here for the midi gap!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- mgap = nint(fnum)
- iccount = iccount-1
- go to 1
- else if (durq .eq. 'M') then
-c
-c MidiMacros
-c
- call getchar(lineq,iccount,durq)
- if (durq .eq. 'R') then
-c
-c Start recording
-c
- if (mmacrec) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'You tried to record a MidiMacro while already recording!')
- call stop1()
- end if
- mmacrec = .true.
- call getchar(lineq,iccount,durq)
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected MidiMacro ID number here!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- if (.not.first) then
- immac = nint(fnum)
- if (immac .gt. 20) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'MidiMacro ID cannot exceed 20!')
- call stop1()
- end if
-c
-c Save the start time
-c
- mmactime(immac) = miditime
- do 4 icm = 0 , numchan
- if (icm .lt. numchan) then
- if (restpend(icm)) then
-c
-c Adjust if there's a rest at end of prior section. Insert dummy turnoff.
-c (This causes two turn-offs in a row, which testmidi sees as an error).
-c
-c Before: section1 ------rest------- section2(to be recorded)
-c After: section1 rest1 now rest2 section2(recorded)
-c
- call addmidi(icm,30,0,0,trest(icm),.false.,.true.)
- trest(icm) = 0
- restpend(icm) = .false.
- end if
- else
- if (miditime .gt. lasttime) then
-c
-c Insert a dummy turnoff in conductor track
-c
- call addmidi(icm,30,0,0,(miditime-lasttime)/15.,
- * .false.,.true.)
- lasttime = miditime
- end if
- end if
- mmacstrt(icm,immac) = imidi(icm)+1
-4 continue
- end if
- go to 1
- else if (index('123456789P',durq) .eq. 0) then
-c
-c End recording; close the open macro. Get immac from common.
-c
- if (.not.mmacrec) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'You tried to end a MidiMacro before starting one!')
- call stop1()
- end if
- mmacrec = .false.
- iccount = iccount-1
- if (.not.first) then
-c
-c Save the macro duration
-c
- mmactime(immac) = miditime-mmactime(immac)
- do 5 icm = 0 , numchan
- if (icm .lt. numchan) then
- if (restpend(icm)) then
- call addmidi(icm,30,0,0,trest(icm),.false.,.true.)
- trest(icm) = 0
- restpend(icm) = .false.
- end if
- else
- if (miditime .gt. lasttime) then
-c
-c Insert a dummy turnoff in conductor track if needed.
-c
- call addmidi(icm,30,0,0,(miditime-lasttime)/15.,
- * .false.,.true.)
- lasttime = miditime
- end if
- end if
- mmacend(icm,immac) = imidi(icm)
-5 continue
- end if
- if (durq .ne. ' ')go to 1
- else if (durq .eq. 'P') then
-c
-c Play Back a Macro
-c
- call getchar(lineq,iccount,durq)
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Expected MidiMacro ID number here!')
- call stop1()
- end if
- if (mmacrec) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'You tried to play a MidiMacro before ending recording!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- if (.not.first) then
- immac = nint(fnum)
- if (mmactime(immac) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Cannot play a MIDI macro before recording it!')
- call stop1()
- end if
- do 6 icm = 0 , numchan
- if (icm .lt. numchan) then
- if (restpend(icm)) then
- call addmidi(icm,30,0,0,trest(icm),.false.,.true.)
- trest(icm) = 0.
- restpend(icm) = .false.
- end if
- else
- if (miditime .gt. lasttime) then
-c
-c Insert a dummy turnoff in conductor track
-c
- call addmidi(icm,30,0,0,(miditime-lasttime)/15.,
- * .false.,.true.)
- end if
- end if
- msecend(icm,nmidsec) = imidi(icm)
- msecstrt(icm,nmidsec+1) = mmacstrt(icm,immac)
- msecend(icm,nmidsec+1) = mmacend(icm,immac)
- msecstrt(icm,nmidsec+2) = imidi(icm)+1
-6 continue
- nmidsec = nmidsec+2
-c
-c Update running time
-c
- miditime = miditime+mmactime(immac)
- lasttime = miditime
- end if
- go to 1
- else
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in MidiMacro sub-command!')
- call stop1()
- end if
- else if (durq .eq. 'd') then
- debugmidi = .true.
- go to 1
- else if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character in MIDI input data!')
- write(*,'(a)')
- * 'May be too many args to i,v,b, or T. As of Ver. 2.7, '//
- * 'should be noinst, not nv'
- write(15,'(a)')
- * 'May be too many args to i,v,b, or T. As of Ver. 2.7, '//
- * 'should be noinst, not nv'
- call stop1()
- end if
- if (.not.gottempo .and. .not.first) then
-c
-c If no tempo is set on first call on the pmxb pass, then set it
-c
- call midievent('t',96,0)
- gottempo = .true.
- end if
- return
- end
- subroutine getnote(loop)
- parameter (nm=24,mv=24576)
- common /comlast/ islast,usevshrink
- logical islast,usevshrink,ignorenats,newmbrhgt
- common /comignorenats/ mbrhgt,newmbrhgt,ignorenats
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- character*10 figq
- character*1 ulq,sepsymq,sq,rptfq1,rptfq2,clefq,chax
- logical beamon,firstgulp,figbass,figchk,isfig
- character*60 cheadq
- character*120 instrq,titleq,compoq
- integer*2 mmidi
- logical restpend,relacc,notmain,twoline,ismidi,crdacc,autofbon
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- common /combjmp/ ivbj1,ivbj2,isbjmp,isbj2,multbj1
- common /comtitl/ instrq,titleq,compoq,headlog,inskip,ncskip,
- * inhead
- common /cominbot/ inbothd
- common /comfig/ itfig(2,74),figq(2,74),ivupfig(2,74),nfigs(2),
- * fullsize(nm),ivxfig2,ivvfig(2,74)
- common /comnotes/ nnodur,lastlev,ndlev(nm,2),shifton,setis,notcrd,
- * npreslur,was2(nm),ninow,nobar1,nsystp(75),ipage,
- * OptLineBreakTies,HeaderSpecial
- common /comget/ lastchar,rptnd1,sluron(nm,2),fbon,ornrpt,stickyS,
- * movbrk,movnmp,movdnp,movgap,parmov,fintstf,gintstf,
- * rptprev,equalize,rptfq1,rptfq2
- common /comhead/ ihdht,lower,headrq,lowerq,ihdvrt
- common /comfb/ nfb(nm),t1fb(nm,40),t2fb(nm,40),ulfbq(nm,40),ifb,
- * tautofb,autofbon,t1autofb
- common /comgrace/ ivg(37),ipg(37),nolevg(74),itoff(2,74),aftshft,
- * nng(37),ngstrt(37),ibarmbr,mbrest,xb4mbr,
- * noffseg,ngrace,nvolt,ivlit(83),iplit(83),nlit,
- * graspace(37),
- * lenlit(83),multg(37),upg(37),slurg(37),slashg(37),
- * naccg(74),voltxtq(6),litq(83)
- logical upg,slurg,slashg,fbon,ornrpt,shifton,setis,notcrd,isbjmp,
- * was2,nobar1,quoted,isbj2,stickyS,
- * OptLineBreakTies,HeaderSpecial
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- character*128 litq
- common /comcc/ ncc(nm),tcc(nm,10),ncmidcc(nm,10),
- * maxdotmv(nm),ndotmv(nm),updot(nm,20),rtdot(nm,20)
- common /combc/ bcspec
- common /comas3/ ask(2500),iask,topmods
-c
-c nvmx is either 1 or 2. ivmx(iv,1)=iv, ; ivmx(iv,2)>nv if defined
-c ivx is current ivmx, and is the index for all notes, acc's etc.
-c
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /spfacs/ grafac,acgfac,accfac,xspfac,xb4fac,clefac,emgfac,
- * flagfac,dotfac,bacfac,agc1fac,gslfac,arpfac,
- * rptfac,lrrptfac,dbarfac,ddbarfac,dotsfac,upstmfac,
- * rtshfac
- common /comtrans/ cheadq
- common /comtop / itopfacteur,ibotfacteur,interfacteur,isig0,
- * isig,lastisig,fracindent,widthpt,height,hoffpt,voffpt,idsig,
- * lnam(nm),inameq(nm)
- common /commac/ macnum,mrecord,mplay,macuse,icchold,lnholdq,endmac
- common /comudsp/udsp(50),tudsp(50),nudsp,udoff(nm,20),nudoff(nm)
- common /comask/ bar1syst,fixednew,scaldold,
- * wheadpt,fbar,poenom
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- common /comarp/ narp,tar(8),ivar1(8),ipar1(8),levar1(8),ncmar1(8),
- * xinsnow,lowdot
- common /comnvi/ nsperi(nm),nspern(nm),rename,iiorig(nm)
- common /c1ommac/ ip1mac(20),il1mac(20),ip2mac(20),il2mac(20),
- * ic1mac(20),ilmac,iplmac
- common /comdyn/ ndyn,idyndat(99),levdsav(nm),ivowg(12),hoh1(12),
- * hoh2(12),hoh2h1(2),ntxtdyn,ivxiptxt(41),txtdynq(41),
- * idynda2(99),levhssav(nm),listcresc,listdecresc
- common /comclefq/ clefq(nm)
- common /comtol/ tol
- common /comArpShift/NumArpShift,IvArpShift(20),IpArpShift(20),
- * ArpShift(20)
- character*128 txtdynq
- logical mrecord,mplay,endmac,lowdot,rename,bar1syst,upslur,
- * fontslur,WrotePsslurDefaults
- character*128 lineq,lnholdq,lineqt
- character*80 headrq, lowerq
- character*79 inameq
- character*59 hdlndq
- character*20 voltxtq
- character*1 charq,dotq,durq,ulfbq,dumq
- logical loop,lastchar,lower,rptnd1,rptprev,bcspec,moved,
- * topmods,headlog,btest,sluron,cdot,equalize
- character*24 tempq
- logical novshrinktop,cstuplet
- common /comnvst/ novshrinktop,cstuplet
- logical kbdrests
- common /comkbdrests/ levbotr(8),levtopr(8),kbdrests
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
- common /comkeys/ nkeys,ibrkch(18),newkey(18),iskchb,idumm1,isig1,
- * mbrestsav,kchmid(18),logdumm1,logdumm2,barend,noinst,logdumm3
- logical barend,iskchb,kchmid,logdumm1,logdumm2,logdumm3
- common /combibarcnt/ ibarcnt
- common /commidisig/ midisig
- common /comlyr/ inputmlyr
- logical inputmlyr
- common /combottop/ botamt,topamt,bottopgap
- logical bottopgap
- logical inxtup
- common /comshort/ shortfrac,codafrac,ishort,mbrsum,nmbr,nocodabn,
- * poefa
- real*4 poefa(125)
- logical nocodabn
- cdot = .false.
- inxtup = .false.
-1 call getchar(lineq,iccount,charq)
- if (lastchar) return
- if (charq .eq. ' ') go to 1
- if (charq .eq. '%') then
-c
-c Check for a bar number format:
-c
- if (iccount.eq.1 .and. lineq(2:2).eq.' ' .and.
- * index('bB1234567890',lineq(3:3)).gt.0) then
- if (islast) write(11,'(a)')lineq(1:lenstr(lineq,128))
- end if
- iccount = 128
- go to 1
- end if
-c
-c Closing repeat iff charq='/' and the prev. char was 'R' with 'd' or 'r'
-c
- if (rptprev) then
- rptnd1 = charq .eq. '/'
- rptprev = .false.
- end if
-c
-c Repeat at end of a piece
-c
- if ((ichar(charq).ge.97.and.ichar(charq).le.103) .or.
- * charq.eq.'r') then
- if (cdot) go to 28
-c
-c This is a note/rest.
-c
- idotform = 0
- numnum = 0
-c
-c If start of line of music, set pitch from previous
-c
- if (ivx .le. nv) then
- kv = 1
- else
- kv = 2
- end if
- if (nnl(ivx).eq.0) lastlev = ndlev(iv,kv)
-c
-c notcrd is used to tell if orn. goes on main note or chord note
-c
-c notcrd = .true. !Move dow. Was not observed if dotted shortcut.
-c
-c Increase note count, then loop 'til blank. Label 28 is for dotted shortcuts.
-c
-28 continue
-c
-c Moved this from just above, 2 Feb 02
-c
- notcrd = .true.
- nnl(ivx) = nnl(ivx)+1
- if (ornrpt) then
-c
-c Replicate ornament bits, also bit 23 for beam handling if chord.
-c
- iornq(ivx,nnl(ivx)) = ior(iornq(ivx,nnl(ivx)),iornq(ivx,0))
- if (iand(iornq(ivx,nnl(ivx)),32896) .gt. 0) then
-c
-c This is a trill (bit 7 or 15) so must dup the parameters
-c
- ntrill = ntrill + 1
- ivtrill(ntrill) = ivx
- iptrill(ntrill) = nnl(ivx)
- xnsktr(ntrill) = xnsktr(ntrill-1)
- end if
- end if
- if (stickyS) then
-c
-c Grab stemlength shortening parameters from prior note
-c
- mult(ivx,nnl(ivx)) = ibset(mult(ivx,nnl(ivx)),27)
-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
-c Doing auto forced beams, and period has been set, so check if this note
-c starts a period.
-c
-c if (mod(1.*itsofar(ivx),tautofb) .lt. tol) then
- if (mod(itsofar(ivx)-t1autofb,tautofb) .lt. tol) then
-c
-c Start a forced beam here
-c
- nfb(ivx) = nfb(ivx)+1
- fbon = .true.
- ulfbq(ivx,nfb(ivx)) = 'x'
- t1fb(ivx,nfb(ivx)) = itsofar(ivx)
- end if
- end if
- if (fbon) ipl(ivx,nnl(ivx)) = ibset(ipl(ivx,nnl(ivx)),30)
- dotq = 'x'
- if (charq.eq.'r')
- * irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),0)
- if (btest(irest(ivx,nnl(ivx)),0)) then
-c
-c Rest stuff. First check if previous note was full-bar-pause
-c
- if (lineq(iccount+1:iccount+1) .eq.' '
- * .and. nnl(ivx).gt.1) then
- if (btest(islur(ivx,nnl(ivx)-1),19))
- * islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),19)
- end if
-c
-c Set default rest level at 0 unless 2 voices/staff in which case it's -4 or 2
-c for voice a or b. Set a-types at 0 as encountered and adjust later
-c after '//'. (Override heights will be set to 100+offset)
-c
- if (ivx .le. nv) then
- nolev(ivx,nnl(ivx)) = 0
- else
- nolev(ivx,nnl(ivx)) = 2
- end if
- end if
-2 call getchar(lineq,iccount,durq)
- ic = ichar(durq)
- if (ic.le.57 .and. ic.ge.48) then
-c
-c Digit
-c
- if (numnum .eq. 0) then
- nnodur = ic-48
- numnum = 1
- go to 2
- else if (numnum .eq. 1) then
- ioct = ic-48
- numnum = 2
- go to 2
- else
- print*,'>2 digits in note sym., ivx,nn:',ivx,nnl(ivx)
- call stop1()
- end if
- else if (durq .eq. 'd') then
- dotq = durq
- if (lineq(iccount+1:iccount+1) .eq. 'd') then
-c
-c Double dot.
-c
- iccount = iccount+1
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),3)
- end if
- if (index('+-',lineq(iccount+1:iccount+1)) .gt. 0) then
-c
-c move a dot, unless next char is not part of a number
-c
- if (index('0123456789.',lineq(iccount+2:iccount+2)) .eq. 0)
- * go to 2
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),19)
- call getchar(lineq,iccount,durq)
- ndotmv(ivx) = ndotmv(ivx)+1
- iccount=iccount+1
- call readnum(lineq,iccount,dumq,updot(ivx,ndotmv(ivx)))
- if (durq .eq. '-')
- * updot(ivx,ndotmv(ivx)) = -updot(ivx,ndotmv(ivx))
- if (index('+-',dumq) .gt. 0) then
-c
-c Vertical shift also
-c
- iccount=iccount+1
- call readnum(lineq,iccount,durq,rtdot(ivx,ndotmv(ivx)))
- if (dumq .eq. '-')
- * rtdot(ivx,ndotmv(ivx)) = -rtdot(ivx,ndotmv(ivx))
- else
- rtdot(ivx,ndotmv(ivx)) = 0.
- end if
- iccount = iccount-1
- end if
- go to 2
- else if (durq .eq. 'p') then
-c
-c Full-bar rest as pause
-c
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),19)
- go to 2
- else if (durq .eq. 'b') then
-c
-c Blank rest
-c
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),29)
- go to 2
- else if (index('fsn',durq) .gt. 0) then
-c
-c Accidental
-c
-c if (nacc(ivx,nnl(ivx)) .eq. 0) then
-c 171209 May have set bit 18 earlier if D or F preceded accidental
- if (igetbits(nacc(ivx,nnl(ivx)),2,0) .eq. 0) then
-c
-c No accidental has been set yet
-c
-c nacc(ivx,nnl(ivx)) = index('fsn',durq)
- nacc(ivx,nnl(ivx)) =
- * ior(nacc(ivx,nnl(ivx)),index('fsn',durq))
- else
-c
-c Repeated accid, so must be double
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),2)
- end if
- go to 2
- else if (durq .eq. 'i') then
-c
-c Set flag for MIDI-only accidental.
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),17)
- go to 2
- else if (durq .eq. 'c') then
-c
-c Set flags for cautionary accidental
-c
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),31)
- iornq(ivx,nnl(ivx)) = ibset(iornq(ivx,nnl(ivx)),31)
- go to 2
- else if (index('+-<>',durq) .gt. 0) then
- ipm = index('- +',durq)-2
- if (.not.btest(irest(ivx,nnl(ivx)),0)) then
-c
-c A note, not a rest.
-c
- call chkpm4ac(lineq,iccount,nacc(ivx,nnl(ivx)),moved)
- if (moved) go to 2
-c
-c Octave jump with a note
-c
- if (numnum .lt. 2) then
- lastlev = lastlev+ipm*7
- else
- ioct = ioct+ipm*1
- end if
- go to 2
- else
-c
-c Override default height of a rest
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- if (lineq(iccount-1:iccount-1) .eq. '.') then
-c
-c Kluge in case there is a shortcut ".". It will have been sucked up by
-c readnum. (Same doesn't hold for ",")
-c
- iccount = iccount-1
-c go to 2
- end if
- nolev(ivx,nnl(ivx)) = 100+ipm*nint(fnum)
-c
-c There may be more characters for this rest
-c
- iccount = iccount-1
- go to 2
- end if
- else if (durq .eq. 'x') then
-c
-c Xtuplet. Count number of doubled notes (for unequal xtups)
-c
- if (btest(nacc(ivx,nnl(ivx)),18)) then
- ndoub = 1
- else
- ndoub = 0
- end if
-c
-c Initialize counter for # of non-rests, so can later unbeam if = 1.
-c
- inxtup = .true.
- note1xtup = nnl(ivx)
- nnb = 0
- if (.not.btest(irest(ivx,nnl(ivx)),0)) nnb = 1
-c
-c Will set all durations to 0 except last one. Set flag on this note.
-c
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),28)
-c
-c Next input will be digit unless its a "T"
-c
- iccount = iccount+1
- if (lineq(iccount:iccount) .eq. 'T') then
-c
-c Set up tremolo
-c
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),2)
- ntup = 2
-c
-c Set default beaming, based on Wikipedia article
-c May be a problem here is nnodur is inherited
-c
- if (nnodur .eq. 4) then
- nsolid = 0
- nindent = 3
- else if (nnodur .eq. 2) then
- nsolid = 3
- nindent = 0
- else if (nnodur .eq. 8) then
- nsolid = 1
- nindent = 2
- end if
- call getchar(lineq,iccount,durq)
- if (index('0123456789',durq) .gt. 0) then
- nsolid = index('0123456789',durq)-1
- if (nsolid.eq.0 .and. nnodur.eq.2) then
- print*,''
- print*,'Unbeamed half-note 2-note tremolo forbidden.'
- call stop1()
- end if
- call getchar(lineq,iccount,durq)
- if (index('0123456789',durq) .gt. 0) then
- nindent = index('0123456789',durq)-1
- end if
- end if
- call setbits(irest(ivx,nnl(ivx)),2,3,nsolid)
- call setbits(irest(ivx,nnl(ivx)),2,5,nindent)
- if (nsolid .eq. 0) then
- islur(ivx,nnl(ivx)) =
- * ibset(islur(ivx,nnl(ivx)),18)
- end if
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),31)
- islur(ivx,nnl(ivx)+1) = ibset(islur(ivx,nnl(ivx)+1),21)
- call setbits(islur(ivx,nnl(ivx)+1),3,22,nsolid)
-c
-c Set some force-beam parameters for the tremolo
-c
-c Need to check if there's already a forced beam explicitly set here.
-c If there was, shouldn't do any harm resetting parameters.
-c
- if (nfb(ivx).eq.0 .or. t1fb(ivx,nfb(ivx)).ne.itsofar(ivx))
- * nfb(ivx) = nfb(ivx)+1
- fbon = .true.
- ulfbq(ivx,nfb(ivx)) = 'x'
- t1fb(ivx,nfb(ivx)) = itsofar(ivx)
- t2fb(ivx,nfb(ivx)) = itsofar(ivx) + ifnodur(nnodur,dotq)
- nadj = 0
-c
-c Set open beamed notehead flag for half-note tremolo
-c Just gave 2 quarters with or without flag set. Need to fix
-c
- else
- call readnum(lineq,iccount,durq,fnum)
- ntup = nint(fnum)
- end if
- if (index('DF',durq) .gt. 0) then
-c
-c
-c Double xtup note to make an un= xtup. Here xtup number already set but may also
-c have this command before.
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),18)
- if (durq .eq. 'F') nacc(ivx,nnl(ivx)) =
- * ibset(nacc(ivx,nnl(ivx)),19)
- ndoub = 1
- call getchar(lineq,iccount,durq)
- else if (durq .eq. 'd') then
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),27)
- call getchar(lineq,iccount,durq)
- end if
-c
-c Only other possibilities here are ' ' or 'n'
-c
- if (durq .eq. 'n') then
-c
-c Alter xtup number
-c
- if (lineq(iccount+1:iccount+1) .eq. ' ') then
-c
-c If the only modifier is 'n', cancel the number
-c
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),31)
- else
- numshft = 0
-30 call getchar(lineq,iccount,durq)
- if (durq .eq. 'f') then
-c
-c Flip up-down-ness
-c
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),14)
- go to 30
- else if (index('+-',durq) .gt. 0) then
-c
-c Vertical or horiz shift
-c
- numshft = numshft+1
- iofforn = 1
- if (durq .eq. '-') iofforn = -1
- iccount = iccount+1
- call readnum(lineq,iccount,durq,xofforn)
- iccount = iccount-1
- 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
-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 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
-c
- iofforn = iofforn*nint(xofforn*10)+16
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),7)
- call setbits(irest(ivx,nnl(ivx)),5,9,iofforn)
- end if
- go to 30
- else if (durq .eq. 's') then
-c
-c Slope adjustment for bracket
-c
- mult(ivx,nnl(ivx)) = ibset(mult(ivx,nnl(ivx)),4)
- call getchar(lineq,iccount,durq)
- iofforn = index('- +',durq)-2
- iccount = iccount+1
- call readnum(lineq,iccount,durq,xofforn)
- iccount = iccount-1
- iofforn = nint(iofforn*xofforn+16)
- call setbits(mult(ivx,nnl(ivx)),5,5,iofforn)
- else if (index('123456789',durq) .gt. 0) then
-c
-c Replacement printed number
-c
- call readnum(lineq,iccount,durq,xofforn)
- call setbits(nacc(ivx,nnl(ivx)),5,22,nint(xofforn))
- iccount = iccount-1
- go to 30
- end if
- end if
- end if
-c
-c Set note level of 1st note of xtup, provided not a rest
-c
- if (.not.btest(irest(ivx,nnl(ivx)),0)) then
- if (numnum .eq. 2) then
- lastlev = ifnolev(charq,ioct,iTransAmt(instno(iv)))
- nolev(ivx,nnl(ivx)) = lastlev
- else
- lastlev = lastlev-3
- * +mod(ifnolev(charq,10,iTransAmt(instno(iv)))-lastlev+3,7)
- nolev(ivx,nnl(ivx)) = lastlev
- end if
- end if
- do 40 npreslur = npreslur , 1 , -1
-c
-c Set note level for preslur on starting note of xtuplet
-c
- call setbits(isdat2(nsdat-npreslur+1),7,19,lastlev)
-40 continue
- numnum = 0
- nodur(ivx,nnl(ivx)) = 0
- do 6 itup = 2 , ntup
- if (ornrpt) then
- iornq(ivx,nnl(ivx)) = ior(iornq(ivx,nnl(ivx)),
- * iand(iornq(ivx,nnl(ivx)-1),10026991))
- if (iand(iornq(ivx,nnl(ivx)),32896) .gt. 0) then
-c
-c This is a trill (bit 7 or 15) so must dup the parameters
-c
- ntrill = ntrill + 1
- ivtrill(ntrill) = ivx
- iptrill(ntrill) = nnl(ivx)
- xnsktr(ntrill) = xnsktr(ntrill-1)
- end if
- end if
- nnl(ivx) = nnl(ivx)+1
- if (fbon) ipl(ivx,nnl(ivx)) = ibset(ipl(ivx,nnl(ivx)),30)
-7 call getchar(lineq,iccount,charq)
- if (charq .eq. ' ') then
- go to 7
- else if (charq .eq. '%') then
- iccount = 128
- go to 7
- else if (charq .eq. 'o') then
-c
-c Ornament in xtuplet. "o" symbol must come AFTER the affected note
-c
- if (notcrd) then
- nole = nolev(ivx,nnl(ivx)-1)
- else
- nole = iand(127,ishft(icrdat(ncrd),-12))
- end if
- call getorn(lineq,iccount,iornq(ivx,nnl(ivx)-1),
- * iornq(ivx,0),ornrpt,noffseg,
- * nnl(ivx)-1,ivx,.false.,notcrd,nole)
- go to 7
- else if (index('st(){}',charq) .gt. 0) then
- nnlivx = nnl(ivx)-1
- if (charq.eq.'(' .or. charq.eq.'{') then
-c
-c Detected preslur in xtuplet loop, non-chord note
-c
- nnlivx = nnlivx+1
- npreslur = npreslur+1
- end if
- islur(ivx,nnlivx) = ibset(islur(ivx,nnlivx),0)
- if (charq.eq.'t') islur(ivx,nnlivx) =
- * ibset(islur(ivx,nnlivx),1)
- if (ivx .le. nv) then
- kv = 1
- else
- kv = 2
- end if
- if (fontslur) then
- call sslur(lineq,iccount,iv,kv,nnlivx,isdat1,isdat2,
- * isdat3,nsdat,notcrd,nolev(ivx,nnlivx),charq)
- else
- call spsslur(lineq,iccount,iv,kv,nnlivx,isdat1,isdat2,
- * isdat3,isdat4,nsdat,notcrd,nolev(ivx,nnlivx),charq)
- end if
- go to 7
- else if (charq .eq. 'G') then
-c
-c Kluge to get grace in xtup at right location
-c
- nnl(ivx) = nnl(ivx)-1
- call getgrace(ivx,nnl,lineq,iccount,islur,iornq,ipl,ndlev,
- * lastlev,iv,nv)
- nnl(ivx) = nnl(ivx)+1
- go to 7
- else if (charq .eq. sq) then
- call littex(islur,nnl(ivx),ivx,topmods,lineq,iccount)
- go to 7
- else if (charq .eq. '"') then
-c
-c pmxlyr string in xtup. Expand "..." to \pmxlyr{...}\
-c
- if (.not. inputmlyr) then
- ictemp = 0
- lineqt = sq//sq//sq//'input musixlyr '//sq
- call littex(islur,nnl(ivx)+1,ivx,topmods,lineqt,ictemp)
- inputmlyr = .true.
- end if
- call dopmxlyr(lineq,iccount)
- charq = sq
- call littex(islur,nnl(ivx),ivx,topmods,lineq,iccount)
- go to 7
- else if (index('0123456789#-nx_',charq) .gt. 0) then
-c
-c Figure. Must come AFTER the first note of xtup
-c
- ivf = 1
- if (ivx .gt. 1) then
- if (ivxfig2 .eq. 0) then
- ivxfig2 = ivx
- else if (ivx .ne. ivxfig2) then
- print*
- print*,'Figures not allowed in >1 voice above first'
- stop
- end if
- ivf = 2
- end if
- nfig1 = nfigs(ivf)+1
- call getfig(itoff(ivf,nfig1),charq,lineq,iccount,
- * isfig(ivf,nnl(ivx)-1),itfig(ivf,nfig1),itsofar(ivx),
-c * 0,figq(ivf,nfig1),ivupfig(ivf,nfig1),nfigs(ivf))
- * 0,figq(ivf,nfig1),ivupfig(ivf,nfig1),ivvfig(ivf,nfig1),
- * nfigs(ivf))
- go to 7
- else if (charq .eq. 'X') then
- call getx(lineq,iccount,irest(ivx,max(1,nnl(ivx)-1)),
- * shifton,wheadpt,iornq(ivx,nnl(ivx)),ivx,
- * irest(ivx,nnl(ivx)),itsofar(ivx),ntup,itup,nnodur,
- * dotq,ndoub)
- go to 7
- else if (charq .eq. 'z') then
-c
-c Chord note in xtup. Goes with *prior* note.
-c
- notcrd = .false.
- ncrd = ncrd+1
- ipl(ivx,nnl(ivx)-1) = ibset(ipl(ivx,nnl(ivx)-1),10)
- numnum = 0
-c icrdat(ncrd) = ior(nnl(ivx)-1,ishft(ivx,8))
- icrdat(ncrd) = nnl(ivx)-1
- call setbits(icrdat(ncrd),4,8,mod(ivx,16))
- if (ivx .ge. 16) icrdat(ncrd) = ibset(icrdat(ncrd),28)
- icrdorn(ncrd) = 0
-c
-c Get note name
-c
- call getchar(lineq,iccount,charq)
-c
-c Get optional inputs
-c
-34 call getchar(lineq,iccount,durq)
-c
-c When chord note is done, will get ' ', making ndx=0, so go past this block
-c
- ndx = index('fsn+-<>12345678reicd',durq)
- if (ndx .gt. 0) then
- if (ndx .le. 3) then
- if (.not.btest(icrdat(ncrd),19)) then
- icrdat(ncrd) = ibset(icrdat(ncrd),19)
- icrdat(ncrd) = ior(icrdat(ncrd),ishft(ndx,20))
- else
- icrdat(ncrd) = ibset(icrdat(ncrd),22)
- end if
- else if (durq .eq. 'd') then
-c
-c Get dot on chord note in xtup. Assume +n+n
-c
- icrdat(ncrd) = ibset(icrdat(ncrd),26)
- call getchar(lineq,iccount,durq)
- iccount=iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- if (durq .eq. '+') then
- icrdot(ncrd) = ior(icrdot(ncrd),nint(fnum*10)+64)
- else
- icrdot(ncrd) = ior(icrdot(ncrd),-nint(fnum*10)+64)
- end if
- if (index('+-',dumq) .gt. 0) then
-c
-c Vertical shift specified also
-c
- iccount=iccount+1
- call readnum(lineq,iccount,durq,fnum)
- if (dumq .eq. '+') then
- ifnum = nint(fnum*10)+64
- else
- ifnum = -nint(fnum*10)+64
- end if
- else
- ifnum = 64
- end if
- icrdot(ncrd) = ior(icrdot(ncrd),ishft(ifnum,7))
- iccount = iccount-1
-c iccount = iccount+4
-c
-c
-c
- else if (ndx .eq. 19) then
-c
-c Set flags for cautionary accidental
-c
- icrdat(ncrd) = ibset(icrdat(ncrd),31)
- iornq(ivx,nnl(ivx)-1) =
- * ibset(iornq(ivx,nnl(ivx)-1),31)
- else if (ndx .le. 7) then
-c
-c +/-/</> Check whether octave or accidental shift
-c
- nactmp = 0
- call chkpm4ac(lineq,iccount,nactmp,moved)
- if (moved) then
-c
-c Transfer accidental shift values
-c
- call setbits(icrdot(ncrd),6,14,
- * igetbits(nactmp,6,4))
- call setbits(icrdot(ncrd),7,20,
- * igetbits(nactmp,7,10))
- else
- if (durq .eq. '+') then
- lastlev = lastlev+7
- else if (durq .eq. '-') then
- lastlev = lastlev-7
- end if
- end if
- else if (durq .eq. 'e') then
- icrdat(ncrd) = ibset(icrdat(ncrd),23)
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),27)
- else if (durq .eq. 'r') then
- icrdat(ncrd) = ibset(icrdat(ncrd),24)
- irest(ivx,nnl(ivx)-1) =
- * ibset(irest(ivx,nnl(ivx)-1),20)
- else if (durq .eq. 'i') then
-c
-c Midi-only accidental
-c
- icrdat(ncrd) = ibset(icrdat(ncrd),27)
- else
-c
-c must be a number, save it in ioct
-c
- numnum = 1
- ioct = ndx-7
- end if
- go to 34
- end if
- if (numnum .eq. 1) then
- lastlev = ifnolev(charq,ioct,iTransAmt(instno(iv)))
- else
- lastlev = lastlev-3
- * +mod(ifnolev(charq,10,iTransAmt(instno(iv)))-lastlev+3,7)
- end if
- icrdat(ncrd) = ior(icrdat(ncrd),ishft(lastlev,12))
- do 41 npreslur = npreslur , 1 , -1
-c
-c Set note level for preslur on chord note in xtup
-c
- call setbits (isdat2(nsdat-npreslur+1),7,19,lastlev)
-c
-c Following lines copied from loop for non-xtup, chord note, preslur
-c Initially I assigned the slur(s) to next note, so fix.
-c
- islur(ivx,nnl(ivx)) = ibclr(islur(ivx,nnl(ivx)),0)
- islur(ivx,nnl(ivx)-1) = ibset(islur(ivx,nnl(ivx)-1),0)
- isdat2(nsdat-npreslur+1) =
- * ibset(isdat2(nsdat-npreslur+1),0)
- call setbits(isdat1(nsdat-npreslur+1),8,3,
- * igetbits(isdat1(nsdat-npreslur+1),8,3)-1)
-41 continue
- go to 7
- else if (charq .eq. '?') then
-c
-c Arpeggio
-c
- if (btest(ipl(ivx,nnl(ivx)-1),10)) then
-c
-c This is a chordal note. Set a bit in icrdat. But if *main* (spacing) note
-c of chord, will not set icrdat(25), but iornq(27)
-c
- icrdat(ncrd) = ibset(icrdat(ncrd),25)
- else
- iornq(ivx,nnl(ivx)-1) = ibset(iornq(ivx,nnl(ivx)-1),27)
- end if
-c
-c Check for shift
-c
- call getchar(lineq,iccount,durq)
- if (durq .eq. ' ') then
- iccount = iccount-1
- else
-c
-c durq must be "-"
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
-c
-c record the shift
-c
- NumArpShift = NumArpShift+1
- IvArpShift(NumArpShift) = ivx
- IpArpShift(NumArpShift) = nnl(ivx)-1
- ArpShift(NumArpShift) = fnum
- end if
- go to 7
- else if (charq .eq. 'D') then
- call getdyn(ivx,nnl(ivx)-1,irest(ivx,nnl(ivx)-1),
- * iornq(ivx,nnl(ivx)-1),lineq,iccount)
- go to 7
-c
-c 140215 Allow clef change inside xtuplet. With normal code, came out one
-c note too late, so try making it come earlier.
-c
- else if (charq .eq. 'C') then
-c
-c Clef change on next note. Set bits 11-15. Won't allow in 2nd line of music.
-c
- if (nnl(iv)-1 .gt. 0) ncc(iv) = ncc(iv)+1
-c
-c 140218 Need to get time differently inside xtup, since itsofar doesn't get
-c updated until after xtup is done
-c
- nodurt = ifnodur(nnodur,dotq)
- tcc(iv,ncc(iv)) = itsofar(iv)+int(1.*nodurt/ntup*(itup-1))
- isl = ibset(islur(iv,nnl(iv)),11)
- call getchar(lineq,iccount,durq)
-c
-c Store clef number, or 7 if clef number = 9 (French violin clef)
-c
- isl = ior(isl,ishft(min(numclef(durq),7),12))
- ncmidcc(iv,ncc(iv)) = ncmidf(durq)
- if (durq .eq. '8') then
- ipl(iv,nnl(iv))=ibset(ipl(iv,nnl(iv)),2)
- iTransAmt(instno(iv)) = 7+iTransAmt(instno(iv))
- end if
-c
-c Set marker on note with lowest voice # starting at same time.
-c
- if (iv .eq. 1) then
- isl = ibset(isl,15)
- else
- do 70 iiv = 1 , iv
-c nnliiv = nnl(iiv)
- nnliiv = nnl(iiv)-1
- if (iiv .eq. iv) nnliiv = nnliiv+1
- itother = 0
- do 71 iip = 1 , nnliiv
- if (itother .lt. itsofar(iv)) then
- itother = itother+nodur(iiv,iip)
- go to 71
- else if (itother .eq. itsofar(iv)) then
- islur(iiv,iip) = ibset(islur(iiv,iip),15)
- go to 72
- end if
-71 continue
-70 continue
-72 continue
- end if
-c
-c Need 'or' since may have set bit 15 in the above loop
-c
-c islur(iv,nnl(iv)+1) = ior(isl,islur(iv,nnl(iv)+1))
- islur(iv,nnl(iv)) = ior(isl,islur(iv,nnl(iv)))
- go to 7
-c+++
- else if (charq .eq. ']') then
-c
-c Multiplicity up-down, must have '][ '
-c
- islur(ivx,nnl(ivx)-1) = ibset(islur(ivx,nnl(ivx)-1),20)
- iccount = iccount+2
- go to 7
-cc+++
- end if
-c
-c End of loop for xtup options. If here, charq must be a (non-crd) note name.
-c or rest
-c
- if (charq .eq. 'r') then
-c
-c Rest in xtup
-c
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),0)
- if (index('+-b',lineq(iccount+1:iccount+1)) .gt. 0) then
- call getchar(lineq,iccount,durq)
- if (durq .eq. 'b') then
-c
-c Blank rest in middle of xtup
-c
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),29)
- else
-c
-c Override height of embedded xtup rest
-c
- ipm = index('- +',durq)-2
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- nolev(ivx,nnl(ivx)) = 100+ipm*nint(fnum)
- iccount = iccount-1
- end if
- else if (ivx .le. nv) then
- nolev(ivx,nnl(ivx)) = 0
- else
- nolev(ivx,nnl(ivx)) = 2
- end if
- else
-c
-c Counter for non-rests
-c
- nnb = nnb+1
- end if
- notcrd = .true.
-8 call getchar(lineq,iccount,durq)
- if (durq .ne. ' ') then
- if (index('+-<>',durq) .gt. 0) then
-c
-c Accidental horizontal shift
-c
- call chkpm4ac(lineq,iccount,nacc(ivx,nnl(ivx)),moved)
- if (.not.moved) then
- if (durq.eq.'+') then
- lastlev = lastlev+7
- else if (durq.eq.'-') then
- lastlev = lastlev-7
- end if
- end if
- else if (index('fsn',durq) .gt. 0) then
-c
-c if (nacc(ivx,nnl(ivx)) .eq. 0) then
-c May have set other bits earlier
- if (igetbits(nacc(ivx,nnl(ivx)),2,0) .eq. 0) then
-c
-c No accid set yet
-c
-c nacc(ivx,nnl(ivx)) = index('fsn',durq)
- nacc(ivx,nnl(ivx)) =
- * ior(nacc(ivx,nnl(ivx)),index('fsn',durq))
- else
-c
-c Symbol must be repeated, so it's a double
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),2)
- end if
- else if (durq .eq. 'i') then
-c
-c Set flag for midi-only accidental
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),17)
-
- else if (durq .eq. 'c') then
-c
-c Set flags for cautionary accidental
-c
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),31)
- iornq(ivx,nnl(ivx)) = ibset(iornq(ivx,nnl(ivx)),31)
- else if (index('ul',durq) .gt. 0) then
-c
-c Force stem direction for non-beamed xtup note
-c
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),30)
- if (durq .eq. 'u') islur(ivx,nnl(ivx)) =
- * ibset(islur(ivx,nnl(ivx)),17)
- else if (durq .eq. 'e') then
-c
-c Left-shift main xtup note
-c
- ipl(ivx,nnl(ivx)) = ibset(ipl(ivx,nnl(ivx)),8)
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),27)
- else if (durq .eq. 'r') then
-c
-c Right-shift main xtup note
-c
- ipl(ivx,nnl(ivx)) = ibset(ipl(ivx,nnl(ivx)),9)
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),20)
- else if (index('DF',durq) .gt. 0) then
-c
-c Double an xtup note to make an unequal xtup
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),18)
- if (durq .eq. 'F') nacc(ivx,nnl(ivx)) =
- * ibset(nacc(ivx,nnl(ivx)),19)
- ndoub = ndoub+1
- else if (durq .eq. 'd') then
-c
-c Dotted xtup note
-c
-c if (btest(irest(ivx,nnl(ivx))-1,2)) then
- if (btest(irest(ivx,nnl(ivx)-1),2)) then
-c
-c Move dot on 2nd note of 2-note tremolo
-c
- ndotmv(ivx) = ndotmv(ivx)+1
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),19)
- call g1etchar(lineq,iccount,durq) ! Will be + or -
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,
- * updot(ivx,ndotmv(ivx)))
- if (durq .eq. '-') updot(ivx,ndotmv(ivx)) =
- * -updot(ivx,ndotmv(ivx))
- if (index('+-',dumq) .gt. 0) then
-c
-c Vertical shift also
-c
- call readnum(lineq,iccount,durq,
- * rtdot(ivx,ndotmv(ivx)))
- if (durq .eq. '-') rtdot(ivx,ndotmv(ivx))
- * = -rtdot(ivx,ndotmv(ivx))
- end if
- iccount = iccount-1
- else
-c
-c Dot for 3:1 pair of xtup notes
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),27)
- end if
- else
-c
-c Must be an octave number
-c
- lastlev = ifnolev(charq,ichar(durq)-48
- * ,iTransAmt(instno(iv)))
- end if
- go to 8
- end if
- if (itup .lt. ntup) then
-c
-c Last note is handled *after* flowing out of the xtup if block, but still
-c within block for a note-rest. Set note level now (rest already done).
-c Could have problem here if rests & doubled notes are combined in xtup,
-c since might exit the loop at the wrong place. Worry about it later.
-c
- if (.not.btest(irest(ivx,nnl(ivx)),0)) then
- lastlev = lastlev-3+mod(ifnolev(charq,10,
- * iTransAmt(instno(iv)))-lastlev+3,7)
- nolev(ivx,nnl(ivx)) = lastlev
- end if
- nodur(ivx,nnl(ivx)) = 0
- do 42 npreslur = npreslur , 1 , -1
-c
-c Set note level for preslur on internal xtup note
-c
- call setbits (isdat2(nsdat-npreslur+1),7,19,lastlev)
-42 continue
- end if
- if (itup .eq. ntup-ndoub) go to 12
-6 continue
-12 continue
- if (ornrpt) then
- iornq(ivx,nnl(ivx)) = ior(iornq(ivx,nnl(ivx)),
- * iand(iornq(ivx,nnl(ivx)-1),10026991))
- if (iand(iornq(ivx,nnl(ivx)),32896) .gt. 0) then
-c
-c This is a trill (bit 7 or 15) so must dup the parameters
-c
- ntrill = ntrill + 1
- ivtrill(ntrill) = ivx
- iptrill(ntrill) = nnl(ivx)
- xnsktr(ntrill) = xnsktr(ntrill-1)
- end if
- end if
-c
-c End of if-block for xtuplet input
-c
- else if (durq .eq. 'm') then
-c
-c Multi-bar rest: next 1 or two digits are # of bars.
-c For some purposes, pretend its one bar only
-c
- nodur(ivx,nnl(ivx)) = lenbar
- ibarmbr = nbars+1
- mbrest = 0
- xb4mbr = 0.
-20 call getchar(lineq,iccount,durq)
- if (ichar(durq).ge.48.and.ichar(durq).le.57) then
- mbrest = 10*mbrest+ichar(durq)-48
- go to 20
- end if
-c
-c durq will either be blank or 'n'
- if (durq .eq. 'n') then
-c
-c Get new height
-c
- iplmi = 1
- call g1etchar(lineq,iccount,durq)
- if (durq .eq. '-') then
- iplmi = -1
- iccount = iccount+1
- end if
- call readnum(lineq,iccount,durq,hgt)
- mbrhgt = nint(iplmi*hgt)
- newmbrhgt = .true.
- end if
- else if (index('ul',durq) .gt. 0) then
-c
-c Set stem flipper
-c
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),30)
- if (durq .eq. 'u') islur(ivx,nnl(ivx)) =
- * ibset(islur(ivx,nnl(ivx)),17)
- go to 2
- else if (durq .eq. 'a') then
-c
-c "Alone", i.e., prohibit beam
-c
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),18)
- go to 2
- else if (durq .eq. 'r') then
-c
-c Right offset by one notehead
-c
- ipl(ivx,nnl(ivx)) = ibset(ipl(ivx,nnl(ivx)),9)
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),20)
- go to 2
- else if (durq .eq. 'e') then
-c
-c Left offset by one notehead
-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 (index('LS',durq) .gt. 0) then
-c
-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)),6,10,
- * igetbits(mult(ivx,nnl(ivx)-1),6,10))
- stickyS = .false.
- go to 2
- end if
-c
-c If durq .ne. ':' then iccount is now on the start of the number
-c
- call readnum(lineq,iccount,durq,dum)
- dum = isign*dum
- call setbits (mult(ivx,nnl(ivx)),6,10,nint((dum+4.)*2))
- if (durq .eq. ':') then
- stickyS = .true.
- else
- iccount = iccount-1
- end if
- go to 2
- else if (durq .eq. ',') then
-c
-c 2:1 pattern
-c
- idotform = 3
-c
-c Now flow to duration setting, as if durq=' '
-c
- else if (durq .eq. '.') then
-c
-c Dotted pattern. Close out note. Mult time by 3/4.
-c Set time for next note to 1/4. Start the note.
-c
- idotform = 1
- else if (durq .eq. 'o') then
-c
-c Suppress rest centering
-c
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),25)
- go to 2
- else if (durq .eq.'L') then
-c
-c With keyboard rest option, look left
-c
-c iornq(ivx,nnl(ivx)) = ibset(iornq(ivx,nnl(ivx)),30)
- ipl(ivx,nnl(ivx)) = ibset(ipl(ivx,nnl(ivx)),1)
- go to 2
- else if (index('DF',durq) .gt. 0) then
-c
-c Double note for xtup. Must check here in case "D" came before "x" or on
-c last note of xtup. Need to flag it in pmxa since affects horiz. spacing.
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),18)
- if (durq .eq. 'F') nacc(ivx,nnl(ivx)) =
- * ibset(nacc(ivx,nnl(ivx)),19)
- go to 2
- else if (durq .eq. 'A') then
-c
-c Accidental option
-c
- call getchar(lineq,iccount,durq)
-c
- if (durq .eq. 'o') then
-c
-c Ordered accidentals in a chord. Mark the main note.
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),28)
- else
-c
-c Only other possibility is +-<> . Set tag, reduce iccount and loop to get #'s
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),29)
- iccount = iccount-1
- end if
- go to 2
- else if (durq .eq. 'T') then
- call getchar(lineq,iccount,durq)
- multtrem = index('1234',durq)
- if (multtrem .eq. 0) then
- iccount = iccount-1
- multtrem = 1
- end if
- ipl(ivx,nnl(ivx)) = ibset(ipl(ivx,nnl(ivx)),4)
- call setbits(ipl(ivx,nnl(ivx)),2,5,multtrem-1)
- go to 2
- else if (durq .ne. ' ') then
- print*,'Illegal character in note: ',durq,', ivx,nn:',
- * ivx,nnl(ivx)
- call stop1()
- end if
-c
-c Done with note/rest options. Set level and duration.
-c
- if (.not.btest(irest(ivx,nnl(ivx)),0)) then
- if (numnum .eq. 2) then
- lastlev = ifnolev(charq,ioct,iTransAmt(instno(iv)))
- nolev(ivx,nnl(ivx)) = lastlev
- else
- lastlev = lastlev-3
- * +mod(ifnolev(charq,10,iTransAmt(instno(iv)))-lastlev+3,7)
- nolev(ivx,nnl(ivx)) = lastlev
- end if
- do 43 npreslur = npreslur , 1 , -1
-c
-c Set level for preslur on normal note, non-chord
-c
- call setbits(isdat2(nsdat-npreslur+1),7,19,lastlev)
-43 continue
-c
-c Only matters if last note, non-rest of xtuplet
-c
- nnb = nnb+1
- end if
-c
-c Set flag for unbeamed xtup if it just has 1 note
-c
- if (inxtup .and. nnb.eq.1) then
- islur(ivx,note1xtup) = ibset(islur(ivx,note1xtup),18)
- end if
- if (idotform .gt. 0) then
- if (idotform .eq. 1) then
- nodur(ivx,nnl(ivx)) = ifnodur(nnodur,dotq)*3/2
- else if (idotform .eq. 2) then
- nodur(ivx,nnl(ivx)) = nodur(ivx,nnl(ivx)-1)/3
- else if (idotform .eq. 3) then
- nodur(ivx,nnl(ivx)) = ifnodur(nnodur,dotq)
- else if (idotform .eq. 4) then
- nodur(ivx,nnl(ivx)) = nodur(ivx,nnl(ivx)-1)/2
- end if
- else if (btest(islur(ivx,nnl(ivx)),19)) then
-c
-c Set duration of full-bar rest as pause
-c
- nodur(ivx,nnl(ivx)) = lenbar
-c
-c Use a one-line function to set nnodur. It gives inverse of ifnodur.
-c
- nnodur = index('62514x0x37',
- * chax(48+int(log(.1+lenbar)/.69315)))-1
- else if (ibarmbr.ne.nbars+1) then
- nodur(ivx,nnl(ivx)) = ifnodur(nnodur,dotq)
- if (btest(islur(ivx,nnl(ivx)),3))
- * nodur(ivx,nnl(ivx)) = nodur(ivx,nnl(ivx))*7/6
- end if
- if (shifton .and. .not.btest(irest(ivx,nnl(ivx)),16)) then
-c
-c Shift is on, and this is not first shifted note. Check for duration change
-c
- if (nodur(ivx,nnl(ivx)) .ne. nodur(ivx,nnl(ivx)-1)) then
-c
-c Must stop and restart the offset.
-c
- irest(ivx,nnl(ivx)-1) = ibset(irest(ivx,nnl(ivx)-1),17)
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),16)
- nudoff(ivx) = nudoff(ivx)+1
- udoff(ivx,nudoff(ivx)) = udoff(ivx,nudoff(ivx)-1)
- end if
- end if
- itsofar(ivx) = itsofar(ivx)+nodur(ivx,nnl(ivx))
- if (autofbon .and. tautofb.gt.tol .and. fbon) then
-c
-c Check to see if need to terminate auto forced beam
-c
- if (mod(itsofar(ivx)-t1autofb,tautofb) .lt. tol) then
-c
-c Terminate autofb
-c
- t2fb(ivx,nfb(ivx)) = itsofar(ivx)
- fbon = .false.
- end if
- end if
- if (mod(itsofar(ivx)-lenb0,lenbar) .eq. 0) then
-c
-c Finished a bar
-c
- nbars = nbars+1
- nib(ivx,nbars) = nnl(ivx)
- if (firstgulp.and.lenb0.ne.0.and.nbars.eq.1) then
-c
-c Just finished the pickup bar for this voice.
-c
- lenbar = lenb1
- end if
- end if
- if (idotform .eq. 1) then
- call getchar(lineq,iccount,charq)
- idotform = 2
- numnum = 1
- go to 28
- else if (idotform .eq. 3) then
- call getchar(lineq,iccount,charq)
- idotform = 4
- numnum = 1
- go to 28
- end if
-c
-c End of sub block for note-rest
-c
- else if (charq .eq. 'z') then
-c
-c Chord note. Must have note name, may have octave#,+,-,s,f,n,d
-c Actually the 'd' is not used, since time value comes from
-c basic note. Unless dot is to be shifted!
-c Doesn't increase # of notes, so must handle separately
-c ncrd: index of crd
-c Set bit 10 of ipl on main note as flag
-c Bits in icrdat:
-c 0-7 ip within voice
-c 8-11 ivx
-c 12-18 note level
-c 19 accidental?
-c 20-22 accidental value (1=natural, 2=flat, 3=sharp, 6=dflat, 7=dsharp)
-c 23 shift left
-c 24 shift right
-c 25 arpeggio start or stop
-c 26 flag for moved dot (here, not icrdot, since this is always reset!)
-c 27 Midi-only accidental
-c 29 Tag for accidental shift...means add to autoshifts.
-c 31 Cautionary accidental
-c
-c Bits in icrdot:
-c 0-6 10*abs(vertical dot shift in \internote) + 64
-c 7-13 10*abs(horizontal dot shift in \internote) + 64
-c 14-19 vert accidental shift-32
-c 20-26 20*(horiz accidental shift+3.2)
-c 27-29 top-down level rank of chord note w/accid. Set in crdaccs.
-c
-c Bits in icrdorn are same as in iornq, even tho most orns won't go in crds.
-c
- ncrd = ncrd+1
- ipl(ivx,nnl(ivx)) = ibset(ipl(ivx,nnl(ivx)),10)
- numnum = 0
-c icrdat(ncrd) = ior(nnl(ivx)-1,ishft(ivx,8))
- icrdat(ncrd) = nnl(ivx)
- call setbits(icrdat(ncrd),4,8,mod(ivx,16))
- if (ivx .ge. 16) icrdat(ncrd) = ibset(icrdat(ncrd),28)
- icrdot(ncrd) = 0
- icrdorn(ncrd) = 0
-c
-c Get note name
-c
- call getchar(lineq,iccount,charq)
-c
-c Get optional inputs
-c
-25 call getchar(lineq,iccount,durq)
-c ndx = index('fsn+-<>12345678rediA',durq)
- ndx = index('fsn+-<>12345678rediAc',durq)
- if (ndx .eq. 20) then
-c
-c Expect +|-|<|> , set tag, loop
-c
- icrdat(ncrd) = ibset(icrdat(ncrd),29)
- go to 25
- else if (ndx .gt. 0) then
- if (ndx .le. 3) then
- if (.not.btest(icrdat(ncrd),19)) then
- icrdat(ncrd) = ibset(icrdat(ncrd),19)
- icrdat(ncrd) = ior(icrdat(ncrd),ishft(ndx,20))
- else
- icrdat(ncrd) = ibset(icrdat(ncrd),22)
- end if
- else if (ndx .eq. 21) then
-c
-c Set flags for cautionary accidental
-c
- icrdat(ncrd) = ibset(icrdat(ncrd),31)
- iornq(ivx,nnl(ivx)) = ibset(iornq(ivx,nnl(ivx)),31)
- else if (ndx .le. 7) then
-c
-c +/-/</> Check whether octave or accidental shift
-c
- nactmp = 0
- call chkpm4ac(lineq,iccount,nactmp,moved)
- if (moved) then
-c
-c Transfer accidental shift values
-c
- call setbits(icrdot(ncrd),6,14,igetbits(nactmp,6,4))
- call setbits(icrdot(ncrd),7,20,igetbits(nactmp,7,10))
- else
- if (durq .eq. '+') then
- lastlev = lastlev+7
- else if (durq .eq. '-') then
- lastlev = lastlev-7
- end if
- end if
- else if (durq .eq. 'e') then
- icrdat(ncrd) = ibset(icrdat(ncrd),23)
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),27)
- else if (durq .eq. 'r') then
- icrdat(ncrd) = ibset(icrdat(ncrd),24)
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),20)
- else if (durq .eq. 'i') then
-c
-c Midi-only accidental on chord note
-c
- icrdat(ncrd) = ibset(icrdat(ncrd),27)
- else if (durq .eq. 'd') then
-c
-c Must keep 'd' optional (backward compatibility), unless it is moved!
-c
- if (index('+-',lineq(iccount+1:iccount+1)) .gt. 0) then
-c
-c move a dot, unless next char is not part of a number
-c
- if (index('0123456789.',lineq(iccount+2:iccount+2))
- * .eq. 0) go to 25
- icrdat(ncrd) = ibset(icrdat(ncrd),26)
- call getchar(lineq,iccount,durq)
- iccount=iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- if (durq .eq. '+') then
- icrdot(ncrd) = ior(icrdot(ncrd),nint(fnum*10)+64)
- else
- icrdot(ncrd) = ior(icrdot(ncrd),-nint(fnum*10)+64)
- end if
- if (index('+-',dumq) .gt. 0) then
-c
-c Vertical shift specified also
-c
- iccount=iccount+1
- call readnum(lineq,iccount,durq,fnum)
- if (dumq .eq. '+') then
- ifnum = nint(fnum*10)+64
- else
- ifnum = -nint(fnum*10)+64
- end if
- else
- ifnum = 64
- end if
- icrdot(ncrd) = ior(icrdot(ncrd),ishft(ifnum,7))
- iccount = iccount-1
- end if
- else
-c
-c must be a single digit, save it in ioct
-c
- numnum = 1
- ioct = ndx-7
- end if
- go to 25
- end if
- if (numnum .eq. 1) then
- lastlev = ifnolev(charq,ioct,iTransAmt(instno(iv)))
- else
- lastlev = lastlev-3
- * +mod(ifnolev(charq,10,iTransAmt(instno(iv)))-lastlev+3,7)
- end if
- icrdat(ncrd) = ior(icrdat(ncrd),ishft(lastlev,12))
- do 44 npreslur = npreslur , 1 , -1
- call setbits (isdat2(nsdat-npreslur+1),7,19,lastlev)
-c
-c Set level for chord note.
-c Initially I assigned the slur(s) to next note, so fix.
-c
- islur(ivx,nnl(ivx)+1) = ibclr(islur(ivx,nnl(ivx)+1),0)
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),0)
- isdat2(nsdat-npreslur+1) = ibset(isdat2(nsdat-npreslur+1),0)
- call setbits(isdat1(nsdat-npreslur+1),8,3,
- * igetbits(isdat1(nsdat-npreslur+1),8,3)-1)
-44 continue
- if (notcrd) then
-c
-c This is the first chord note in this chord.
-c
- minlev = min(nolev(ivx,nnl(ivx)),lastlev)
- maxlev = max(nolev(ivx,nnl(ivx)),lastlev)
- else
- minlev = min(minlev,lastlev)
- maxlev = max(maxlev,lastlev)
- end if
- notcrd = .false.
- else if (charq .eq. 'G') then
- call getgrace(ivx,nnl,lineq,iccount,islur,iornq,ipl,ndlev,
- * lastlev,iv,nv)
-c
-c Grace, comes *before* main note:
-c UNLESS there's an 'A' or 'W' after the 'G'
-c ngrace = # of grace note groups so far in block
-c ivg(ngrace), ipg(ngrace)
-c nng(ngrace) = # of notes in this group: default = 1
-c ngstrt(ngrace) = starting position in nolevg of levels for this grace
-c multg(ngrace) = multiplicity: default = 1; input as 'm(digit)'
-c upg(ngrace) = logical for beam or stem dirn: default T, input'u,l'
-c slurg(ngrace) = logical for slur; default F, input 's'
-c slashg(ngrace) = T if slash; default is F, input 'x'
-c These data MUST precede note name of first note
-c nolevg, naccg: lists of levels and accid's, indexed as described above.
-c
- else if (charq .eq. sq) then
-c
-c Literal TeX string
-c
- call littex(islur,nnl(ivx)+1,ivx,topmods,lineq,iccount)
- else if (charq .eq. '"') then
-c
-c pmxlyr string. Expand "..." to \pmxlyr{...}\
-c
- if (.not. inputmlyr) then
- ictemp = 0
- lineqt = sq//sq//sq//'input musixlyr '//sq
- call littex(islur,nnl(ivx)+1,ivx,topmods,lineqt,ictemp)
- inputmlyr = .true.
- end if
- call dopmxlyr(lineq,iccount)
- charq = sq
- call littex(islur,nnl(ivx)+1,ivx,topmods,lineq,iccount)
- else if (charq .eq. 'o') then
-c
-c Ornament on non-xtup note. Symbol must come AFTER the affected note
-c
- if (notcrd) then
- nole = nolev(ivx,nnl(ivx))
- else
- nole = iand(127,ishft(icrdat(ncrd),-12))
- end if
- call getorn(lineq,iccount,iornq(ivx,nnl(ivx)),
- * iornq(ivx,0),ornrpt,noffseg,nnl(ivx),ivx,
- * .true.,notcrd,nole)
- else if (index('st(){}',charq) .gt. 0) then
- nnlivx = nnl(ivx)
- if (charq.eq.'(' .or. charq.eq.'{') then
-c
-c Detect preslur on normal non-chord note
-c
- nnlivx = nnlivx+1
- npreslur = npreslur+1
- end if
- islur(ivx,nnlivx) = ibset(islur(ivx,nnlivx),0)
- if (charq.eq.'t')
- * islur(ivx,nnlivx) = ibset(islur(ivx,nnlivx),1)
- if (ivx .le. nv) then
- kv = 1
- else
- kv = 2
- end if
- if (fontslur) then
- call sslur(lineq,iccount,iv,kv,nnlivx,isdat1,isdat2,isdat3,
- * nsdat,notcrd,nolev(ivx,nnlivx),charq)
- else
- call spsslur(lineq,iccount,iv,kv,nnlivx,isdat1,isdat2,isdat3,
- * isdat4,nsdat,notcrd,nolev(ivx,nnlivx),charq)
- end if
- else if (charq .eq. '?') then
-c
-c Arpeggio
-c
- if (btest(ipl(ivx,nnl(ivx)),10)) then
-c
-c This is a chordal note. Set a bit in icrdat. But if *main* (spacing) note
-c of chord, will not set icrdat(25), but iornq(27)
-c
- icrdat(ncrd) = ibset(icrdat(ncrd),25)
- else
- iornq(ivx,nnl(ivx)) = ibset(iornq(ivx,nnl(ivx)),27)
- end if
-c
-c Check for shift
-c
- call getchar(lineq,iccount,durq)
- if (durq .eq. ' ') then
- iccount = iccount-1
- else
-c
-c durq must be "-"
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
-c
-c record the shift
-c
- NumArpShift = NumArpShift+1
- IvArpShift(NumArpShift) = ivx
- IpArpShift(NumArpShift) = nnl(ivx)
- ArpShift(NumArpShift) = fnum
- end if
- else if (index('0123456789#-nx_',charq) .gt. 0) then
-c
-c We have a figure. Must come AFTER the note it goes under
-c
-
- ivf = 1
- if (ivx .gt. 1) then
- if (ivxfig2 .eq. 0) then
- ivxfig2 = ivx
- else if (ivx .ne. ivxfig2) then
- print*
- print*,'Figures not allowed in >1 voice above first'
- stop
- end if
- ivf = 2
- end if
- nfig1 = nfigs(ivf)+1
- call getfig(itoff(ivf,nfig1),charq,lineq,iccount,
- * isfig(ivf,nnl(ivx)),itfig(ivf,nfig1),itsofar(ivx),
- * nodur(ivx,nnl(ivx)),figq(ivf,nfig1),
-c * ivupfig(ivf,nfig1),nfigs(ivf))
- * ivupfig(ivf,nfig1),ivvfig(ivf,nfig1),nfigs(ivf))
- else if (charq .eq. '[') then
-c
-c Start forced beam. Record barno & time since start of inp. blk. Set signal
-c
- nfb(ivx) = nfb(ivx)+1
- fbon = .true.
- ulfbq(ivx,nfb(ivx)) = 'x'
- t1fb(ivx,nfb(ivx)) = itsofar(ivx)
- nadj = 0
- if (autofbon) then
- autofbon = .false.
- end if
-17 call getchar(lineq,iccount,charq)
- if (index('ulf',charq) .gt. 0) then
- ulfbq(ivx,nfb(ivx)) = charq
- go to 17
- else if (charq .eq. 'j') then
-c
-c Continuing a jumped beam here
-c
- irest(ivx,nnl(ivx)+1) = ibset(irest(ivx,nnl(ivx)+1),24)
-c
-c Set flag to watch for END of this forced beam, so can set flag rest(30) on
-c NEXT note as signal to start a new notes group there.
-c
- isbj2 = .true.
- go to 17
- else if (charq .eq. 'h') then
- islur(ivx,nnl(ivx)+1) = ibset(islur(ivx,nnl(ivx)+1),2)
- go to 17
- else if (charq .eq. 'm') then
-c
-c Force multiplicity. Next input is digit
-c
- call getchar(lineq,iccount,charq)
- islur(ivx,nnl(ivx)+1) = ibset(islur(ivx,nnl(ivx)+1),21)
- call setbits(islur(ivx,nnl(ivx)+1),3,22,ichar(charq)-48)
- go to 17
- else if (charq .eq. ':') then
-c
-c Start auto forced beam pattern
-c
- autofbon = .true.
-c
-c When forced later beam ends, check whether tautofv <=0; if so set it.
-c
- tautofb = -itsofar(ivx)
- t1autofb = itsofar(ivx)
- go to 17
- else if (charq .ne. ' ') then
-c
-c Must be '+/-' for height or slope shift
-c
- nadj = nadj+1
-c
-c nadj = 1,2, or 3 for normal start level, slope, or beam-thk start level.
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- iadj = nint(fnum)
- if (charq .eq. '-') iadj = -iadj
- if (nadj .eq. 1) then
-c
-c This is a level shift. Note if 0 was entered, iadj = 30
-c
- call setbits(ipl(ivx,nnl(ivx)+1),6,11,iadj+30)
- else if (nadj .eq. 2) then
-c
-c Must be a slope shift
-c
- call setbits(ipl(ivx,nnl(ivx)+1),6,17,iadj+30)
- else
-c
-c Beam-thk fine tune
-c
- call setbits(islur(ivx,nnl(ivx)+1),2,27,iadj)
- end if
- go to 17
- end if
- else if (charq .eq. ']') then
- if (autofbon .and. tautofb.lt.tol) then
- tautofb=itsofar(ivx)+tautofb
- end if
- call getchar(lineq,iccount,charq)
- if (index('j ',charq) .gt. 0) then
-c
-c Since ']' comes AFTER note, itsofar has been updated. Set ending signal.
-c
- t2fb(ivx,nfb(ivx)) = itsofar(ivx)
- fbon = .false.
- if (charq .eq. 'j') then
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),23)
- end if
- if (isbj2) then
-c
-c This is the end of a fb segment of a jump beam. Set flag on NEXT note to
-c force start of new notes group, provided this is not last note in bar.
-c
- if (mod(itsofar(ivx),lenbar) .ne. 0)
- * irest(ivx,nnl(ivx)+1) = ibset(irest(ivx,nnl(ivx)+1),30)
- isbj2 = .false.
- end if
- else if (charq .eq. '[') then
-c
-c Multiplicity down-up signal
-c
- islur(ivx,nnl(ivx)) = ibset(islur(ivx,nnl(ivx)),20)
- else if (charq .eq. '-') then
-c
-c Set signals for gap in single-slope beam [...]-[...]
-c
- nacc(ivx,nnl(ivx)) = ibset(nacc(ivx,nnl(ivx)),20)
- nacc(ivx,nnl(ivx)+1) = ibset(nacc(ivx,nnl(ivx)+1),21)
-c
-c Next two characters must be "[ ". Skip over them.
-c
- iccount = iccount+2
- end if
- else if (charq .eq. 'D') then
- call getdyn(ivx,nnl(ivx),irest(ivx,nnl(ivx)),
- * iornq(ivx,nnl(ivx)),lineq,iccount)
- else if (charq .eq. 'h') then
-c
-c Heading or height. For heading, only OK if at start of block
-c Check whether at beginning of a block
-c
- if (iv.ne.1 .or. nnl(1).ne.0) then
- print*,'You entered "h" not at beginning of block'
- call stop1()
- end if
- call getchar(lineq,iccount,durq)
- ihdvrt = 0
- if (index('+-',durq) .gt. 0) then
-c
-c Vertical offset
-c
- iccount = iccount+1
- call readnum(lineq,iccount,charq,fnum)
- ihdvrt = fnum+.1
- if (durq .eq. '-') ihdvrt = -ihdvrt
- durq = charq
- end if
- if (durq .ne. ' ') then
-c
-c Height symbol. Read past (until next blank)
-c
-3 call getchar(lineq,iccount,durq)
- if (durq .ne. ' ') go to 3
- else
-c
-c Set flag for header & read it in
-c
- ihdht = 16
- call getbuf(headrq)
- iccount = 128
- end if
- else if (charq .eq. 'L') then
-c
-c Linebreak, already handled some in pmxa, but need to get data for
-c shortened line or coda lengths
-c
- iccount = iccount+1
- if (lineq(iccount:iccount) .eq. 'C') then
-c
-c Coda, get length
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,codafrac)
- ishort = 3
- if (durq .eq. 'n') nocodabn = .true.
- return
- end if
-c
-c Get line number
-c
- call readnum(lineq,iccount,durq,fmovbrk)
-48 continue ! Allow transfer up from below if S follows M
- if (durq .eq. 'S') then
-c
-c Shortened line, get shortening fraction
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,shortfrac)
- ishort = 1
- codafrac = 0.
- end if
-c
-c Begin check for movement break
-c
- if (durq .eq. 'P') then
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- end if
- if (durq .eq. 'M') then
- movbrk = nint(fmovbrk)
- movgap = 0
- parmov = -1.
- call getchar(lineq,iccount,durq)
-31 if (durq .eq. '+') then
-c
-c Get vertical space (\internotes)
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- movgap = nint(fnum)
- go to 31
- else if (durq .eq. 'i') then
- iccount = iccount+1
- call readnum(lineq,iccount,durq,parmov)
- go to 31
- else if (durq .eq. 'c') then
- nobar1 = .true.
- call getchar(lineq,iccount,durq)
- go to 31
- else if (durq .eq. 'r') then
-c
-c "rename" can be set on or off.
-c
- call getchar(lineq,iccount,durq)
- rename = durq.eq.'+'
- call getchar(lineq,iccount,durq)
- go to 31
- else if (durq .eq. 'n') then
-c
-c Change # of voices. Input ninow, iiorig(1...ninow). Will use names,
-c staves per inst. and clefs corr. to iiorig in original list of instruments.
-c
- nvold = nv
- nv = 0
- rename = .true.
- call getchar(lineq,iccount,durq)
- if (durq .eq. ':') then
- iccount = iccount+2
- read(lineq(iccount-1:iccount),'(i2)')ninow
- else
- ninow = ichar(durq)-48
- end if
- iiv = 0
- do 63 iinow = 1 , ninow
- call getchar(lineq,iccount,durq)
- if (durq .eq. ':') then
- iccount = iccount+2
- read(lineq(iccount-1:iccount),'(i2)')iiorig(iinow)
- else
- iiorig(iinow) = ichar(durq)-48
- end if
- nspern(iinow) = nsperi(iiorig(iinow))
- nv = nv+nspern(iinow)
- sepsymq(iiv+nspern(iinow)) = '&'
- if (nspern(iinow) .gt. 1) then
- do 64 iis = 1 , nspern(iinow)-1
- sepsymq(iiv+iis) = '|'
-64 continue
- end if
- iiv = iiv+nspern(iinow)
-63 continue
-c
-c 120818 Per Rainer's suggestion, defer changing \nbinstruments until issuing \newmovement
-c
-c if (islast) then
-c if (ninow .lt. 10) then
-c write(11,'(a)')sq//'newnoi{'//chax(ninow+48)//'}%'
-c else
-c write(11,'(a8,i2,a2)')sq//'newnoi{',ninow,'}%'
-c end if
-c end if
- if (nv.eq.1 .and. nvold.gt.1) then
- if (islast) write(11,'(a)')sq//'nostartrule'
- else if (nv.gt.1 .and. nvold.eq.1) then
- if (islast) write(11,'(a)')sq//'startrule'
- end if
- iiv = 0
- do 60 iinow = 1 , ninow
- do 61 iis = 1 , nspern(iinow)
- iiv = iiv+1
-c
-c May not really need to re-enter clefs, but it's easier to program since
-c clef names are not saved but are needed in newvoice to set ncmidcc.
-c
- call getchar(lineq,iccount,clefq(iiv))
- call newvoice(iiv,clefq(iiv),.true.)
- if (nspern(iinow) .eq. 1) then
- hdlndq = chax(48+numclef(clefq(iiv)))
- lclf = 1
- else if (iis .eq. 1) then
- hdlndq = '{'//chax(48+numclef(clefq(iiv)))
- lclf = 2
- else if (iis .lt. nspern(iinow)) then
- hdlndq = hdlndq(1:lclf)//chax(48+numclef(clefq(iiv)))
- lclf = lclf+1
- else
- hdlndq =
- * hdlndq(1:lclf)//chax(48+numclef(clefq(iiv)))//'}'
- lclf = lclf+2
- end if
-61 continue
-c
-c setstaffs & setclef go by instrument, not voice
-c
- if (islast) then
- if (iinow .lt. 10) then
- write(11,'(a)')sq//'setstaffs'
- * //chax(48+iinow)//chax(48+nspern(iinow))//'%'
- write(11,'(a)')sq//'setclef'//chax(48+iinow)
- * //hdlndq(1:lclf)//'%'
- if (fullsize(iiorig(iinow)).gt.0.9) then
- write(11,'(a)')sq//'setsize'//chax(48+iinow)
- * //sq//'normalvalue%'
-c
-c 140526 Account for staff size specs when noinst changes. May be confusion
-c here if more than one staff per instrument
-c
- else if (fullsize(iiorig(iinow)).gt..7) then
- write(11,'(a)')sq//'setsize'//chax(48+iinow)
- * //sq//'smallvalue%'
- else
- write(11,'(a)')sq//'setsize'//chax(48+iinow)
- * //sq//'tinyvalue%'
- end if
- else
- write(11,'(a11,i2,a)')sq//'setstaffs{',iinow,
- * '}'//chax(48+nspern(iinow))//'%'
- write(11,'(a9,i2,a)')sq//'setclef{',iinow,
- * '}'//hdlndq(1:lclf)//'%'
- end if
- end if
-60 continue
-c
-c Loop back up, this may not be last option in M. Note flow out if durq=' '
-c
- call getchar(lineq,iccount,durq)
- go to 31
- else if (durq .eq. 'S') then
- go to 48
- end if
-c
-c Write instrument names
-c
- if (.not.rename) then
- do 62 iinst = 1 , ninow
- if (islast) then
- if (iinst .lt. 10) then
- write(11,'(a8,i1,a3)')sq//'setname',iinst,'{}%'
- else
- write(11,'(a9,i2,a4)')sq//'setname{',iinst,'}{}%'
- end if
- end if
-62 continue
- else
- do 65 iinst = 1 , ninow
- if (islast) then
- if (iinst .lt. 10) then
- write(11,'(a8,i1,a)')sq//'setname',iinst,'{'//
- * inameq(iiorig(iinst))(1:lnam(iiorig(iinst)))//'}%'
- else
- write(11,'(a9,i2,a)')sq//'setname{',iinst,'}{'//
- * inameq(iiorig(iinst))(1:lnam(iiorig(iinst)))//'}%'
- end if
- end if
-65 continue
- if (ishort.ne.4.and.ishort.ne.2) rename = .false.
-c
-c Reset later and rewrite setname{} in shortening case mcm, since if
-c written here it will be inside {{...}} and will be ignored
-c
- end if
- end if
- else if (charq .eq.'|' ) then
-c
-c End of bar symbol. Check about end of bar hardspace.
-c
- if (btest(iornq(ivx,nnl(ivx)+1),26)) then
-c
-c There was a hardspace followed by a bar line. Remove it from the hardspace
-c list, store with shifts instead, set special bit. Need to repeat this code
-c at '/'.
-c
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),18)
- nudoff(ivx) = nudoff(ivx)+1
- udoff(ivx,nudoff(ivx)) = udsp(nudsp)
- nudsp = nudsp-1
- iornq(ivx,nnl(ivx)+1) = ibclr(iornq(ivx,nnl(ivx)+1),26)
- end if
- else if (index('wS',charq) .gt. 0) then
-c
-c Width symbol or new nsyst. Read past (until blank)
-c
-4 call getchar(lineq,iccount,durq)
- if (durq .ne. ' ') go to 4
- else if (charq .eq. 'l') then
-c
-c Lower string. Only OK if at start of block
-c Check whether at beginning of a block
-c
- if (iv.ne.1 .or. nnl(1).ne.0) then
- print*,'You entered "l" not at beginning of block'
- call stop1()
- end if
-c
-c Set flag for lower string & read it in
-c
- lower = .true.
- call getbuf(lowerq)
- iccount = 128
- else if (charq .eq. 'm') then
-c
-c Meter change. Only allow at beginning of block.
-c mtrnuml, mtrdenl (logical) and p (printable) will be input.
-c mtrnuml=0 initially. (In common)
-c
-c Check whether at beginning of a block
-c
- if (iv.ne.1 .or. nnl(1).ne.0) then
- print*,'You entered "m" not at beginning of block'
- call stop1()
- end if
- call readmeter(lineq,iccount,mtrnuml,mtrdenl)
- call readmeter(lineq,iccount,mtrnmp,mtrdnp)
- lenbeat = ifnodur(mtrdenl,'x')
- if (mtrdenl .eq. 2) lenbeat = 16
- lenbar = mtrnuml*lenbeat
- if (mtrdenl .eq. 2) lenbar = lenbar*2
- lenb1 = lenbar
- lenb0 = 0
- if (ismidi) call midievent('m',mtrnuml,mtrdenl)
- else if (charq .eq. 'C') then
-c
-c Clef change on next note. Set bits 11-15. Won't allow in 2nd line of music.
-c
- if (nnl(iv) .gt. 0) ncc(iv) = ncc(iv)+1
- tcc(iv,ncc(iv)) = itsofar(iv)
- isl = ibset(islur(iv,nnl(iv)+1),11)
- call getchar(lineq,iccount,durq)
-c
-c Store clef number, or 7 if clef number = 9 (French violin clef)
-c
- isl = ior(isl,ishft(min(numclef(durq),7),12))
- ncmidcc(iv,ncc(iv)) = ncmidf(durq)
- if (durq .eq. '8') then
- ipl(iv,nnl(iv)+1)=ibset(ipl(iv,nnl(iv)+1),2)
- iTransAmt(instno(iv)) = 7+iTransAmt(instno(iv))
- lastlev = lastlev+7
- if (nnl(iv).eq.0) then
- ndlev(iv,1) = ndlev(iv,1)+7
- ndlev(iv,2) = ndlev(iv,2)+7
- end if
- else
-c
-c This won't work if you really had an octave transposition with some
-c other clef. Need a check on whether prior clef was an octave clef.
-c
- if (iTransAmt(instno(iv)).eq.7) then
- iTransAmt(instno(iv))=iTransAmt(instno(iv))-7
- lastlev = lastlev-7
- if (nnl(iv).eq.0) then
- ndlev(iv,1) = ndlev(iv,1)-7
- ndlev(iv,2) = ndlev(iv,2)-7
- end if
- end if
- end if
-c
-c Set marker on note with lowest voice # starting at same time.
-c
- if (iv .eq. 1) then
- isl = ibset(isl,15)
- else
- do 13 iiv = 1 , iv
- nnliiv = nnl(iiv)
- if (iiv .eq. iv) nnliiv = nnliiv+1
- itother = 0
- do 14 iip = 1 , nnliiv
- if (itother .lt. itsofar(iv)) then
- itother = itother+nodur(iiv,iip)
- go to 14
- else if (itother .eq. itsofar(iv)) then
- islur(iiv,iip) = ibset(islur(iiv,iip),15)
- go to 15
- end if
-14 continue
-13 continue
-15 continue
- end if
-c
-c Need 'or' since may have set bit 15 in the above loop
-c
- islur(iv,nnl(iv)+1) = ior(isl,islur(iv,nnl(iv)+1))
- else if (charq .eq. 'R') then
-c
-c Repeats. set bits 5, 6, and/or 8 of islur(1,ip+1)
-c
-10 call getchar(lineq,iccount,durq)
-c
-c Save designator in case it's a terminal Rr or Rd
-c
- if (durq .eq. 'l') then
- islur(1,nnl(1)+1) = ibset(islur(1,nnl(1)+1),5)
- go to 10
- else if (index('rdDbz',durq) .gt. 0) then
- if (durq .eq. 'r') then
- islur(1,nnl(1)+1) = ibset(islur(1,nnl(1)+1),6)
- else if (durq .eq. 'd') then
- islur(1,nnl(1)+1) = ibset(islur(1,nnl(1)+1),8)
- else if (durq .eq. 'D') then
- islur(1,nnl(1)+1) = ibset(islur(1,nnl(1)+1),26)
- else if (durq .eq. 'b') then
- islur(1,nnl(1)+1) = ibset(islur(1,nnl(1)+1),25)
- else if (durq .eq. 'z') then
-c iornq(1,nnl(1)+1) = ibset(iornq(1,nnl(1)+1),29)
- ipl(1,nnl(1)+1) = ibset(ipl(1,nnl(1)+1),0)
- end if
- rptprev = .true.
- rptfq1 = durq
- go to 10
- end if
- else if (charq .eq. 'V') then
-c
-c Ending
-c
- nnnl = nnl(1)+1
- lvoltxt = 0
-11 call getchar(lineq,iccount,durq)
- if (durq.eq.'b' .or. durq .eq.'x') then
-c
-c End Volta, set bit9, and bit10 on if 'b' (end w/ box)
-c
- islur(1,nnnl) = ibset(islur(1,nnnl),9)
- if (durq .eq. 'b') islur(1,nnnl) = ibset(islur(1,nnnl),10)
- go to 11
- else if (durq .ne. ' ') then
-c
-c Start volta; Get text
-c
- if (lvoltxt .eq. 0) then
-c
-c First character for text
-c
- lvoltxt = 1
- islur(1,nnnl) = ibset(islur(1,nnnl),7)
- nvolt = nvolt+1
- voltxtq(nvolt) = durq
- else
- voltxtq(nvolt) = voltxtq(nvolt)(1:lvoltxt)//durq
- lvoltxt = lvoltxt+1
- end if
- go to 11
- end if
- else if (charq .eq. 'B') then
- bcspec = .not.bcspec
- else if (charq .eq. 'P') then
-c
-c Page numbers. Print stuff right now.
-c
- npg1 = 0
-c
-c Will use ltopnam to signal whether there's a centered heading
-c
- ltopnam = 0
- ipg1r = 0
-16 call getchar(lineq,iccount,durq)
- if (ichar(durq).ge.48 .and. ichar(durq).le.57) then
- npg1 = npg1*10+ichar(durq)-48
- go to 16
- else if (durq .eq. 'l') then
- if (npg1.eq.0 .or. mod(npg1,2).eq.1) ipg1r = 1
- go to 16
- else if (durq .eq. 'r') then
- if (npg1.gt.0 .and. mod(npg1,2).eq.0) ipg1r = 1
- go to 16
- else if (durq .eq. 'c') then
-c
-c Top-centered name. Assume this is last option. Read the name.
-c May surround name in double quotes (to allow blanks).
-c
- call getchar(lineq,iccount,durq)
- if (durq .eq. ' ') then
- ltopnam = lenstr(cheadq,60)
- else
- namstrt = iccount
- if (durq .eq. '"') then
-c
-c Using quote delimiters.
-c
- quoted = .true.
- namstrt = namstrt+1
- else
- quoted = .false.
- end if
- do 35 iccount = namstrt+1, 128
-c if ((quoted .and. lineq(iccount:iccount) .eq. '"') .or.
- if ((quoted .and. lineq(iccount:iccount).eq.'"' .and.
- * lineq(iccount-1:iccount-1).ne.'\') .or.
- * (.not.quoted .and. lineq(iccount:iccount) .eq. ' '))
- * go to 36
-c
-c On exit, iccount is OK, and name is in (namstrt:iccount-1)
-c
-35 continue
- print*,'Awww, cmon, should not be here.'
- call stop1()
-36 continue
- ltopnam = iccount-namstrt
- cheadq = lineq(namstrt:iccount-1)
- end if
- end if
-c
-c Done getting data, now assemble the command
-c
- if (npg1.eq.0) npg1=1
-c
-c 2/23/03 Don't use \atnextline if on first page and only one system
-c
-c if (ipage.gt.1 .or. nsystp(1).gt.1) then
- hdlndq = sq//'def'//sq//'atnextline{'//sq//'toppageno{'
- lhead = 27
-c else
-c hdlndq = sq//'toppageno{'
-c lhead = 11
-c end if
- if (npg1 .lt. 10) then
-c
-c Note we are overwriting the last "{"
-c
- write(hdlndq(lhead:lhead),'(i1)')npg1
- else if (npg1 .lt. 100) then
- lhead = lhead+3
- write(hdlndq(lhead-2:lhead),'(i2,a1)')npg1,'}'
- else
- lhead = lhead+4
- write(hdlndq(lhead-3:lhead),'(i3,a1)')npg1,'}'
- end if
- hdlndq = hdlndq(1:lhead)//chax(ipg1r+48)//'{'
- lhead = lhead+2
-c if (ipage.gt.1 .or. nsystp(1).gt.1) then
- if (ltopnam .eq. 0) then
- if (islast) write(11,'(a)')hdlndq(1:lhead)//'}}%'
- else
- if (islast)
- * write(11,'(a)')hdlndq(1:lhead)//cheadq(1:ltopnam)//'}}%'
- end if
-c else
-c if (ltopnam .eq. 0) then
-c if (islast) write(11,'(a)')hdlndq(1:lhead)//'}%'
-c else
-c if (islast)
-c * write(11,'(a)')hdlndq(1:lhead)//cheadq(1:ltopnam)//'}%'
-c end if
-c end if
- else if (charq .eq. 'W') then
-c
-c Just eat the number that must follow, it was used in pmxa
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- else if (charq .eq. 'T') then
- headlog = .true.
- inhead = 0
- call getchar(lineq,iccount,durq)
- if (durq .eq. 'i') then
- call getbuf(instrq)
-c
-c A kluge for parts from separate score file for later movements.
-c
- if (instrq(1:1) .eq. ' ') headlog = .false.
- cheadq = instrq(1:60)
- else if (durq .eq. 't') then
- call getchar(lineq,iccount,durq)
-c
-c Optionally can include extra vertical \internotes above inbothd
-c
- if (index('-+0123456789',durq) .gt. 0) then
- ipm = 1
- if (index('+-',durq) .gt. 0) then
-c
-c Don't trust readnum to round this negative integer properly
-c
- iccount = iccount+1
- if (durq .eq. '-') ipm = -1
- end if
- call readnum(lineq,iccount,durq,fnum)
- inhead = ipm*nint(fnum)
- end if
- call getbuf(titleq)
- else
- call getbuf(compoq)
- end if
- inhead = inhead+inbothd
- iccount = 128
- else if (charq .eq. 'A') then
-c
-c Accidental handling etc.
-c
-27 call getchar(lineq,iccount,durq)
- if (durq .eq. 'r') then
- if (islast) then
- relacc = .true.
- write(11,'(a)')sq//'relativeaccid%'
- end if
- else if (durq .eq. 's') then
- bacfac = 1.e6
- else if (durq .eq. 'b') then
- if (islast) write(11,'(a)')sq//'bigaccid%'
- accfac = bacfac
- else if (durq .eq. 'a') then
- call getchar(lineq,iccount,durq)
- call readnum(lineq,iccount,durq,fnum)
- iccount = iccount-1
- else if (durq .eq. 'i') then
- call getchar(lineq,iccount,durq)
- call readnum(lineq,iccount,durq,tintstf)
- if (.not.firstgulp) fintstf = tintstf
-c
-c Local corrections for first page were handled by pmxa
-c
- iccount = iccount-1
- else if (durq .eq. 'I') then
- call getchar(lineq,iccount,durq)
- call readnum(lineq,iccount,durq,gintstf)
- iccount = iccount-1
- else if (durq .eq. 'd') then
- lowdot = .true.
- else if (durq .eq. 'o') then
- continue
- else if (durq .eq. 'S') then
- do 50 iiv = 1 , noinst
- call getchar(lineq,iccount,durq)
- if (index('-s',durq) .gt. 0) then
- fullsize(iiv) = 0.8
- else if (durq .eq. 't') then
- fullsize(iiv) = 0.64
- else
-c fullsize(ivx) = 1.0
- fullsize(iiv) = 1.0
- end if
-50 continue
- else if (durq .eq. 'e') then
-c
-c Line-spacing equalization
-c
- equalize = .true.
-c
-c The following redefinition of \parskip was put into pmx.tex in version 2.25 or so.
-c But it causes problems with some older scores and when excerpts are combined
-c with LaTeX. So as of 2.352 we write it here.
-c
- write(11,'(a)')sq//'global'//sq//'parskip 0pt plus 12'//sq
- * //'Interligne minus 99'//sq//'Interligne%'
- tempq = sepsymq(1)
- lentemp = 1
- do 51 iiv = 2 , nv-1
- tempq = tempq(1:lentemp)//sepsymq(iiv)
- lentemp = lentemp+1
-51 continue
- write(11,'(a)')sq//'def'//sq//'upstrut{'//sq//'znotes'
- * //tempq(1:lentemp)//sq//'zcharnote{'//sq//'upamt}{~}'
- * //sq//'en}%'
- else if (durq .eq. 'v') then
-c
-c Toggle usevshrink
-c
- usevshrink = .not.usevshrink
- else if (durq .eq.'p') then
-c
-c Postscript slurs. fontslur is already false (set in g1etnote)
-c
- if (.not.WrotePsslurDefaults) then
-c
-c Set postscrirpt slur adjustment defaults
-c
- write(11,'(a)')sq//'Nosluradjust'//sq//'Notieadjust'
- * //sq//'nohalfties'
- WrotePsslurDefaults = .true.
- end if
-52 continue
- call g1etchar(lineq,iccount,durq) ! might be "+", "-", "h" or "l"
- if (index('+-',durq) .gt. 0) then
-c
-c Characters to change defaults for ps slurs
-c
- call g1etchar(lineq,iccount,charq) ! charq will be "s,t,h,c"
- if (durq .eq. '+') then
- if (charq .eq. 's') then
- write(11,'(a)')sq//'Sluradjust'
- else if (charq .eq. 't') then
- write(11,'(a)')sq//'Tieadjust'
- else if (charq .eq. 'h') then
- write(11,'(a)')sq//'halfties'
- else
- SlurCurve = SlurCurve + 1
- if (SlurCurve .gt. 3.1) then
- call printl('WARNING!')
- call printl
- * ('Default slur curvature advanced past HH, resetting')
- SlurCurve = 3
- end if
- end if
- else
- if (charq .eq. 's') then
- write(11,'(a)')sq//'Nosluradjust'
- else if (charq .eq. 't') then
- write(11,'(a)')sq//'Notieadjust'
- else if (charq .eq. 'h') then
- write(11,'(a)')sq//'nohalfties'
- else
- SlurCurve = SlurCurve - 1
- if (SlurCurve .lt. -1.1) then
- call printl('WARNING!')
- call printl(
- * 'Default slur curvature decremented below f, resetting')
- SlurCurve = -1
- end if
- end if
- end if
- go to 52 ! Check for another set of default changes
- else if (durq .eq. 'l') then
-c
-c Set optional linebreak ties
-c
- OptLineBreakTies = .true.
- go to 52
- else if (durq .eq. 'h') then
-c
-c Set flag to write header special on every page
-c
- HeaderSpecial = .true.
- go to 52
- else
- iccount = iccount-1
- end if
- else if (durq .eq. 'K') then
-c
-c Toggle keyboard rest placement flag
-c
- kbdrests = .not.kbdrests
- else if (durq .eq. 'c') then
- call g1etchar(lineq,iccount,durq)
-c
-c Just eat the input; it was used in pmxa
-c
- go to 27
- else if (durq .eq. 'V') then
- bottopgap = .true.
- topamt = 0.
- call getchar(lineq,iccount,durq)
- pmfac = index('- +',durq)-2
- call g1etchar(lineq,iccount,durq)
- call readnum(lineq,iccount,durq,botamt)
- botamt = botamt*pmfac
- pmfac = index('- +',durq)-2
- call g1etchar(lineq,iccount,durq)
- call readnum(lineq,iccount,durq,topamt)
- topamt = topamt*pmfac
- iccount = iccount-1
- go to 27
- end if
- if (index('NR',durq) .gt. 0) then
-c
-c Override default part names for scor2prt, or normal include file.
-c Just bypass rest of input line
-c
- iccount = 128
- else if (durq .ne. ' ') then
- go to 27
- end if
- else if (charq .eq. 'K') then
-77 continue
- call getchar(lineq,iccount,durq)
- if (durq .eq. 'n') then
- ignorenats = .true.
- go to 77
- end if
- if (durq .ne. 'i') then
-c
-c Normal, full-score key change and/or transposition
-c
- num1 = 44-ichar(durq)
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- num1 = num1*nint(fnum)
-c
-c On exit, durq='+','-'. But only need isig if after start, else done in pmxa
-c
- iccount = iccount+1
- call readnum(lineq,iccount,charq,fnum)
- if (ismidi) then
- midisig = nint(fnum)
- if (durq.eq.'-') midisig = -midisig
-c 130317
- midisig = midisig+idsig
- call midievent('k',midisig,0)
-
- end if
-c70 continue
- if (num1 .eq. 0) then
-c
-c Key change, not transposition.
-c
- ipl(ivx,nnl(ivx)+1) = ibset(ipl(ivx,nnl(ivx)+1),28)
- lastisig = isig
- isig = nint(fnum)
- if (durq .eq. '-') isig = -isig
- isig = isig+idsig
- if (ismidi) call midievent('k',isig,0)
- else
-c
-c num1 .ne. 0, so transposition, so must be at beginning. isig came with K...
-c but was passed to pmxb through pmxtex.dat. isig0 comes from setup data
-c (signature before transposition). idsig must be added to future key changes.
-c
- jv = 0
- do while (jv .lt. nm)
- jv = jv+1
- iTransAmt(jv) = num1
- end do
- idsig = isig-isig0
- end if
- else
-c
-c Instrument specific transposition.
-c
- call GetiTransInfo(.false.,ibarcnt,lineq,iccount,
- * ibaroff,nbars,noinst)
-c
-c The sig parameters will have been set 1st time but that's OK
-c
- end if
- else if (charq .eq. '/') then
- if (btest(iornq(ivx,nnl(ivx)+1),26)) then
-c
-c There was a hardspace followed by end of block. Remove it from the hardspace
-c list, store with shifts instead, set special bit. This code also at '|'
-c
- irest(ivx,nnl(ivx)) = ibset(irest(ivx,nnl(ivx)),18)
- nudoff(ivx) = nudoff(ivx)+1
- udoff(ivx,nudoff(ivx)) = udsp(nudsp)
- nudsp = nudsp-1
- iornq(ivx,nnl(ivx)+1) = ibclr(iornq(ivx,nnl(ivx)+1),26)
- end if
- call getchar(lineq,iccount,durq)
-c
-c Save ending note level:
-c
- if (ivx .le. nv) then
-c
-c This is the first line of music on this staff. If previous block had only 1
-c voice, save last pitch from line 1 of prev. block to line 2, in case a
-c 2nd line is started just below
-c
- if (.not.was2(iv)) ndlev(iv,2) = ndlev(iv,1)
- was2(iv) = .false.
- ndlev(iv,1) = lastlev
- else
-c
-c This is the 2nd line of music on this staff.
-c
- was2(iv) = .true.
- ndlev(iv,2) = lastlev
- end if
- if (durq .eq. ' ' .and. iv.eq.nv) then
-c
-c End of input block
-c
- loop = .false.
- else
-c
-c Start a new line of music
-c
- if (lenb0.ne.0 .and. firstgulp) lenbar = lenb0
- nbars = 0
- if (durq .eq. ' ') then
-c
-c New line of music is on next staff
-c
- iv = iv+1
- ivx = iv
- else
-c
-c durq must be 2nd '/'. New line of music is on same staff. Set up for it
-c
- ivx = nv+1
- do 23 iiv = 1 , nv
- if (nvmx(iiv) .eq. 2) ivx = ivx+1
-23 continue
- nvmx(iv) = 2
- ivmx(iv,2) = ivx
- itsofar(ivx) = 0
- nnl(ivx) = 0
- nfb(ivx) = 0
- nudoff(ivx) = 0
- ndotmv(ivx) = 0
- do 24 j = 1 , 200
- irest(ivx,j) = 0
- islur(ivx,j) = 0
- nacc(ivx,j) = 0
- iornq(ivx,j) = 0
- ipl(ivx,j) = 0
- mult(ivx,j) = 0
-24 continue
-c
-c Go back and lower the rests in voice "a" that don't have over-ridden heights
-c
- do 26 j = 1 , nnl(iv)
- if (btest(irest(iv,j),0) .and. nolev(iv,j).eq.0)
- * nolev(iv,j) = -4
-26 continue
- end if
- end if
- iccount = 128
- else if (charq .eq. 'X') then
-c
-c 3rd arg is only for termination of group shifts. Use "max" to avoid zero index,
-c which only happens for normal X at block start, and we took special measures to
-c keep group shifts for crossing block boundaries.
-c
- call getx(lineq,iccount,irest(ivx,max(1,nnl(ivx))),
- * shifton,wheadpt,iornq(ivx,nnl(ivx)+1),ivx,
- * irest(ivx,nnl(ivx)+1),itsofar(ivx),0,0,0,' ',ndoub)
- else if (charq .eq. 'I') then
-c
-c Midi controls.
-c
- call getmidi(noinst,lineq,iccount,ibarcnt,ibaroff,nbars,lenbar,
- * mtrdenl,nv,.false.)
- else if (charq .eq. 'M') then
-c
-c Macro action
-c
- call getchar(lineq,iccount,charq)
- if (index('RS',charq) .gt. 0) then
-c
-c Record or save a macro. Get the number of the macro.
-c
- call getchar(lineq,iccount,durq)
- call readnum(lineq,iccount,durq,fnum)
- macnum = nint(fnum)
- macuse = ibset(macuse,macnum)
- if (charq .eq. 'R') then
- call mrec1(lineq,iccount,ndxm)
- else
-c
-c Save (Record but don't activate)
-c
-5 call mrec1(lineq,iccount,ndxm)
- if (mrecord) then
- call getbuf(lineq)
- iccount = 0
- go to 5
- end if
- iccount = iccount+ndxm+1
- end if
- else if (charq .eq. 'P') then
-c
-c Playback the macro
-c
- call getchar(lineq,iccount,charq)
- call readnum(lineq,iccount,durq,fnum)
- macnum = nint(fnum)
- icchold = iccount
- lnholdq = lineq
- iccount = 128
- ilmac = il1mac(macnum)
- mplay = .true.
- end if
- else if (index(',.',charq) .gt. 0) then
-c
-c Continued rhythmic shortcut
-c
- idotform = index('. ,',charq)
- if (idotform .eq. 1) then
-c
-c Check for start of forced beam on 2nd member of dotform=1 shortcut
-c
- if (fbon) then
- if (t1fb(ivx,nfb(ivx)).eq.itsofar(ivx))
- * t1fb(ivx,nfb(ivx)) =
- * t1fb(ivx,nfb(ivx))+nodur(ivx,nnl(ivx))/2
- end if
-c
-c Change duration of prior note
-c
- itsofar(ivx) = itsofar(ivx)-nodur(ivx,nnl(ivx))
- nodur(ivx,nnl(ivx)) = nodur(ivx,nnl(ivx))*3/2
- itsofar(ivx) = itsofar(ivx)+nodur(ivx,nnl(ivx))
- end if
- idotform = idotform+1
- numnum = 1
- cdot = .true.
- go to 1
- end if
- return
- end
- subroutine getorn(lineq,iccount,iornq,iornq0,ornrpt,noffseg,
- * ip,ivx,noxtup,notcrd,nole)
-c
-c iornq: Main note. Do not alter if chord note, except turn on bit 23
-c iornq0: Store iorni + bit 23, in case of repeated ornaments
-c iorni: Internal use, 1st 21 bits of iornq or icrdorn, dep. on notcrd.
-c noffseg: horiz. offset for segno
-c nole: level of note w/ orn, used to ID the note/orn if there's a level shift.
-c
-
- common /comivxudorn/ivxudorn(63)
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- common /comcb/ nbc,ibcdata(36)
- character*1 charq,durq
- character*128 lineq
- logical ornrpt,negseg,noxtup,notcrd
-c
-c Bits 0-13: (stmgx+Tupf._), 14: Down fermata, was F, 15: Trill w/o "tr", was U
-c 16-18 Editorial sharp, flat, natural "oes,f,n"; 19-20: >^, 21 ? for ed. accid.
-c
- call getchar(lineq,iccount,charq)
- if (index('bc',charq) .gt. 0) then
-c
-c caesura or breath, handle specially and exit. Set up data in ibcdata(1...nbc)
-c ivx(0-3,28), ip(4-12),
-c vshift (vshift+32 in bits 13-18),
-c hshift (nint(10*vshift)+128 in bits 19-26)
-c bit 27 = 0 if caesura, 1 if breath
-c bit 28: 5th bit of ivx
-c
- iornq = ibset(iornq,28)
- nbc = nbc+1
-c ibcdata(nbc) = ivx+16*ip
- ibcdata(nbc) = mod(ivx,16)+16*ip
- if (ivx.ge.16) ibcdata(nbc) = ibset(ibcdata(nbc),28)
- if (charq .eq. 'b') ibcdata(nbc) = ibset(ibcdata(nbc),27)
- call getchar(lineq,iccount,durq)
- if (index('+-',durq) .gt. 0) then
-c
-c We have a vertical shift, get it
-c
- iccount = iccount+1
- call readnum(lineq,iccount,charq,fnum)
- if (durq .eq. '-') fnum=-fnum
- call setbits(ibcdata(nbc),6,13,nint(32+fnum))
- if (index('+-',charq) .gt. 0) then
-c
-c Horizontal shift, get it
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- if (charq .eq. '-') fnum=-fnum
- call setbits(ibcdata(nbc),8,19,nint(10*fnum)+128)
- end if
- end if
- return
- end if
-c
-c Set signal on main note that some note at this time has ornament. ONLY used
-c in beamstrt to activate further tests for whether ihornb is needed.
-c
- iornq = ibset(iornq,23)
-c
-c Isolate 21 bits defining exisiting ornaments
-c
- if (notcrd) then
-c iorni = iand(4194303,iornq)
-c iorni = iand(541065215,iornq)
- iorni = iand(1614807039,iornq)
- else
- iorni = iand(4194303,icrdorn(ncrd))
- end if
-c korn = index('stmgx+Tupf._)e:XXX>^',charq)
- korn = index('stmgx+Tupf._)e:XXX>^XXXXXXXXCG',charq)
- if (korn .ne. 15) iorni = ibset(iorni,korn)
-c
-c Note that korn=0 => charq='(', and we set bit 0. if "e" (14), alter later
-c as follows: korn=16-18 for sfn, and or 21 for bare ?.
-c When this if-block is done, korn will = bit# of actual ornament (unless "?").
-c
- if (korn .eq. 15) then
-c
-cc Turn off repeated ornament ('o:'), Replicate bits 0-3,5-15,19-20 prev iornq
-cc Turn off repeated ornament ('o:'), Replicate bits 0-3,5-15,19-21 prev iornq
-c Turn off repeated ornament ('o:'), Replicate bits 0-3,5-15,19-21,29 prev iornq
-c
-c iorni = ior(iorni,iand(iornq0,1638383))
-c iorni = ior(iorni,iand(iornq0,3735535))
-c iorni = ior(iorni,iand(iornq0,540606447))
- iorni = ior(iorni,iand(iornq0,1614348271))
- ornrpt = .false.
- call getchar(lineq,iccount,durq)
-c
-c durq will be ' '
-c
- else if (korn .eq. 14) then
-c
-c Editorial accidental
-c
- call getchar(lineq,iccount,durq)
-c korn = 15+index('sfn',durq)
- korn = 15+index('sfn?',durq)
- if (korn .eq. 19) korn=21
- iorni = ibset(ibclr(iorni,14),korn)
- call getchar(lineq,iccount,durq)
- if (durq .eq. '?') then
-c
-c This is "oe[s|f|n]?". Set 21st bit also.
-c
- iorni = ibset(iorni,21)
- korn = korn+6
- call getchar(lineq,iccount,durq)
- end if
-c iorni = ibset(ibclr(iorni,14),korn)
- else if (korn.eq.4 .and. noxtup) then
-c
-c segno. Check in pmxa for just 1/block & notcrd. Get horiz. offset in points
-c
- noffseg = 0
- negseg = .false.
- call getchar(lineq,iccount,durq)
- if (durq .ne. ' ') then
-c
-c Segno shift is specified
-c
- if (durq .eq. '-') then
- negseg = .true.
- call getchar(lineq,iccount,durq)
- end if
- call readnum(lineq,iccount,durq,fnum)
- noffseg = int(fnum)
- if (negseg) noffseg = -noffseg
- end if
- else if (korn .eq. 7) then
-c
-c Trill. Check in pmxa for notcrd. Default is 1 noteskip long, with "tr"
-c
- ntrill = ntrill + 1
- ivtrill(ntrill) = ivx
- iptrill(ntrill) = ip
- xnsktr(ntrill) = 1.
- call getchar(lineq,iccount,durq)
- if (durq .eq. 't') then
-c
-c Convert to new internal symbol for non-'"tr" trill
-c
- korn = 15
- iorni = ibset(ibclr(iorni,7),15)
- call getchar(lineq,iccount,durq)
- end if
- if (index('0123456789.',durq) .gt. 0) then
-c
-c We have a number for the length
-c
- call readnum(lineq,iccount,durq,xnsktr(ntrill))
- end if
- else if (korn.eq.10 .and. noxtup) then
-c
-c Fermata
-c
- call getchar(lineq,iccount,durq)
- if (durq .eq. 'd') then
- korn = 14
- iorni = ibset(ibclr(iorni,10),14)
- call getchar(lineq,iccount,durq)
- end if
- else
- call getchar(lineq,iccount,durq)
- end if
- if (index('+- :',durq) .eq. 0) then
- print*,'Unexpected character at end of ornament: ',durq
- call stop1()
- end if
- if (index('+-',durq) .gt. 0) then
-c
-c Shift ornament up or down
-c
- nudorn = nudorn+1
-c
-c Set bit 25 in iorni as a signal. This may not really be necessary.
-c
- iorni = ibset(iorni,25)
-c
-c Assemble info to put in kudorn(nudorn) Bits 0-7:ip, 8-11:ivx, 12-18:nolev,
-c 19-24: type of ornament to be shifted, 25-30: shift+32, 31:h-shft present
-c
- xofforn = 44-ichar(durq)
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- iofforn = nint(xofforn*fnum)
- kudorn(nudorn) = ip+ishft(mod(ivx,16),8)+ishft(nole,12)
- * +ishft(korn,19)+ishft(iofforn+32,25)
- ivxudorn(nudorn) = ivx
- if (index('+-',durq) .gt. 0) then
-c
-c Horizontal shift
-c
- kudorn(nudorn) = ibset(kudorn(nudorn),31)
- xofforn = 44-ichar(durq)
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
-c 141226 ornhshft(nudorn) = nint(xofforn*fnum)
- ornhshft(nudorn) = xofforn*fnum
- end if
- else if (durq .eq. ':') then
-c
-c Turn on repeated ornaments
-c
- ornrpt = .true.
-c
-c Save the ornament value just set
-c
- iornq0 = iorni
- end if
- if (notcrd) then
- iornq = ior(iornq,iorni)
- else
- icrdorn(ncrd) = ior(icrdorn(ncrd),iorni)
- end if
- return
- end
- subroutine getpmxmod(global,includeq)
-c
-c If global=.true., checks for environment variable with path to pmx.mod.
-c Then, if variable exists and points to pmx.mod, insert lines from
-c pmx.mod into buffer
-c If global=.false., checks for existence of includeq and uses it.
-c
-c lenbuf0 = total length of bufq on entry
-c lbuf(i) = length of line (i)
-c nlbuf = number of lines stored in bufq
-c ilbuf = index of first line after setup stuff (on entry). In general, index of
-c next line to be sucked from buffer.
-c ilbufmod = counter for lines in pmx.mod as they are grabbed.
-c Starts at ilbuf. Points to position of next line after
-c pmx.mod stuff in bufq on exiting loop 1
-c ilbuff = transient counter for shifting operations
-c ipbuf = on entry, points to last character in setup stuff. In general, points
-c to last character of most recent line sucked from buffer.
-c ipbufmod = points to last character of most recent inserted line
-c from pmx.mod
-c
- parameter (maxblks=9600,nm=24)
- common /c1omget/ lastchar,fbon,issegno,ihead,isheadr,nline,isvolt,
- * fracindent,nsperi(nm),linesinpmxmod,line1pmxmod,lenbuf0
- logical lastchar,fbon,issegno,isheadr,isvolt
- character*(*)includeq
- character*80 pmxmoddirq
- character*128 lnholdq
- character*131072 bufq
- integer*2 lbuf(maxblks)
- common /inbuff/ ipbuf,ilbuf,nlbuf,lbuf,bufq
- logical fexist,global
- line1pmxmod = ilbuf
- if (.not.global) then
- inquire(file=includeq,EXIST=fexist)
-c
-c Transfer includeq to temporary char variable with known length
-c
- pmxmoddirq = includeq
- lpmxmoddirq = lenstr(pmxmoddirq,80)
- print*
- write(15,'()')
- if (.not.fexist) then
- call printl('Could not find '//pmxmoddirq(1:lpmxmoddirq)
- * //', checking further.')
-c
-c File named includeq doesn't not exist. Get directory from PMXMODDIR and
-c see if it's there
-c
- call getenv('PMXMODDIR',pmxmoddirq)
- lpmxmoddirq = lenstr(pmxmoddirq,80)
- if (lpmxmoddirq. gt. 0) then
- pmxmoddirq = pmxmoddirq(1:lpmxmoddirq)//includeq
- lpmxmoddirq = lenstr(pmxmoddirq,80)
- else
- call printl(
- * 'No other directory defined by PMXMODDIR, stopping')
- call stop1()
- end if
- inquire(file=pmxmoddirq,EXIST=fexist)
- if (.not.fexist) then
- call printl('Could not find '//pmxmoddirq(1:lpmxmoddirq)
- * //', stopping.')
- call stop1()
- end if
- end if
- call printl('Opening normal include file '
- * //pmxmoddirq(1:lpmxmoddirq))
- open(18,file=pmxmoddirq)
- else
-c
-c Check for existence of pmx.mod
-c
- call getenv('PMXMODDIR',pmxmoddirq)
- lpmxmoddirq = lenstr(pmxmoddirq,80)
- if (lpmxmoddirq .eq. 0) return
- pmxmoddirq = pmxmoddirq(1:lpmxmoddirq)//'pmx.mod'
- lpmxmoddirq = lpmxmoddirq+7
- inquire(file=pmxmoddirq,EXIST=fexist)
- if (.not.fexist) return
- call printl('Opening global include file '
- * //pmxmoddirq(1:lpmxmoddirq))
- open(18,file=pmxmoddirq(1:lpmxmoddirq))
- end if
- call printl('Adding include data')
-c
-c Read lines in from pmx.mod one at a time
-c
- ipbufmod = ipbuf
- lenbufmod = lenbuf0
- do 1 ilbufmod = ilbuf , maxblks
- read(18,'(a)',end=3)lnholdq
-c
-c A line was read. Slide all existing lengths from here forward ahead by 1
-c
- do 2 ilbuff = nlbuf , ilbufmod , -1
- lbuf(ilbuff+1) = lbuf(ilbuff)
-2 continue
-c
-c Get length of line from include file
-c
- lenmodline = lenstr(lnholdq,128)
- if (lenmodline .eq. 0) then
-c
-c Blank line. Make it a single blank with length 1
-c
- lenmodline = 1
- lnholdq = ' '
- end if
- lbuf(ilbufmod) = lenmodline
- call printl(lnholdq(1:lenmodline))
-c
-c Insert new stuff into bufq
-c
- bufq = bufq(1:ipbufmod)//lnholdq(1:lenmodline)//
- * bufq(ipbufmod+1:lenbufmod)
-c
-c Update internal parameters
-c
- ipbufmod = ipbufmod+lbuf(ilbufmod)
- lenbufmod = lenbufmod+lbuf(ilbufmod)
- nlbuf = nlbuf+1
-1 continue
-3 continue
- call printl('Closing '//pmxmoddirq(1:lpmxmoddirq))
- close(18)
- linesinpmxmod = linesinpmxmod+ilbufmod-ilbuf
- lenbuf0 = lenbufmod
-c
-c Fix Andre's error reporting problem 101211 leading to log(neg#) due
-c to nline being 2 bigger than it should be
-c
- nline=nline-2
-c
- return
- end
- subroutine getset(nv,noinst,mtrnuml,mtrdenl,mtrnmp,mtrdnp,
- * xmtrnum0,npages,nsyst,musicsize,fracindent,istype0,
- * inameq,clefq,sepsymq,pathnameq,lpath,isig0)
- parameter (nm=24)
- common /comnvi/ nsperi(nm),nspern(nm),rename,iiorig(nm)
- character*1 clefq(nm),sepsymq(nm)
- character*40 pathnameq
- character*79 inameq(nm)
- character*128 lineq
- logical istype0,newway,rename
- common /commidisig/ midisig
-c
-c Get the first line
-c
- iccount = 0
-9 call getbuf(lineq)
- if (lineq(1:1) .eq. '%') go to 9
- istype0 = lineq(1:3).eq.'---'
- if (istype0) then
-c
-c Have TeX input until next line that starts with '---'. Save in scratch.
-c
- open(17,status='SCRATCH')
-3 call getbuf(lineq)
- if (lineq(1:3) .ne. '---') then
- write(17,'(a)')lineq
- go to 3
- end if
-c
-c Force a new line read on first call to readin
-c
- iccount = 128
- end if
-c
-c Here, lineq is first line w/ numerical setup data.
-c
- nv = nint(readin(lineq,iccount,nline))
- noinst = nint(readin(lineq,iccount,nline))
- newway = noinst.le.0
- if (newway) noinst = -noinst
- do 2 iinst = 1 , noinst
-c
-c Seve # of staves per inst in case later drop some inst's.
-c
- if (newway) then
-c
-c Read in nvi for each instrument
-c
- nsperi(iinst) = nint(readin(lineq,iccount,nline))
- else if (iinst .gt. 1 ) then
- nsperi(iinst) = 1
- else
- nsperi(iinst) = nv-noinst+1
- end if
- iiorig(iinst) = iinst
- nspern(iinst) = nsperi(iinst)
-2 continue
- mtrnuml = nint(readin(lineq,iccount,nline))
- mtrdenl = nint(readin(lineq,iccount,nline))
-cc
-cc Kluge to make mtrdenl work
-cc
-c if (mtrdenl .eq. 1) then
-c mtrdenl = 2
-c mtrnuml = mtrnuml*2
-c end if
- mtrnmp = nint(readin(lineq,iccount,nline))
- mtrdnp = nint(readin(lineq,iccount,nline))
- xmtrnum0 = readin(lineq,iccount,nline)
-c
-c Original key sig (before any trnasposition) in next position. Transposed
-c sig for topfile was transferred thru pmxtex.dat. Need isig0 for key
-c changes if transposed.
-c
- isig0 = nint(readin(lineq,iccount,nline))
-c 130316
-c do 11 iinst = 1 , noinst
-c midisig(iinst) = isig0
- midisig = isig0
-c11 continue
- npages = nint(readin(lineq,iccount,nline))
- nsyst = nint(readin(lineq,iccount,nline))
- musicsize = nint(readin(lineq,iccount,nline))
- fracindent = readin(lineq,iccount,nline)
-c
-c Next noinst non-comment lines are names of instruments.
-c
- do 4 i = 1 , noinst
-5 call getbuf(inameq(i))
- if (inameq(i)(1:1) .eq. '%') go to 5
-4 continue
-c
-c Next non-comment line has nv clef names
-c
-6 call getbuf(lineq)
- if (lineq(1:1) .eq. '%') go to 6
- iv = 0
- nvsofar = 0
- do 1 jinst = 1 , noinst
- nvsofar = nvsofar+nsperi(jinst)
- do 10 ivi = 1 , nsperi(jinst)
- iv = iv+1
- clefq(iv) = lineq(iv:iv)
- if (iv .eq. nvsofar) then
- sepsymq(iv) = '&'
- else
- sepsymq(iv) = '|'
- end if
-10 continue
-1 continue
-c
-c Mext non-comment line has path name
-c
-8 call getbuf(pathnameq)
- if (pathnameq(1:1) .eq. '%') go to 8
- lpath = index(pathnameq,' ')-1
-c
-c 160130 Replace '\' by '/'
-c
-12 ipos = index(pathnameq,'\')
- if (ipos .gt. 0) then
- pathnameq(ipos:ipos)='/'
-c print*,'Changed pathname to ',pathnameq(1:lpath)
- go to 12
- end if
- return
- end
- function getsquez(n,ntot,space,tnote,to)
- real*4 tnote(600),to(600)
- common /comtol/ tol
-c
-c Get the squez factor by checking space against tgovern=minimum duration
-c of all notes sounding at time of n-th note in the list.
-c The starting time of base increment is to(n) and ending time is to(n)+space
-c Sounding notes are those that start at or before to(n) .and. end at or
-c after tend=to(n)+space
-c Since notes are ordered by increasing start times, as soon as we find one
-c that starts too late, we are done checking.
-c
- tgovern = 1000.
- tend = to(n)+space
- do 1 in = 1 , ntot
-c
-c Since to() is ordered by start times, exit loop after first note that
-c starts later than note of interest.
-c
- if (to(in) .gt. to(n)+tol) go to 2
- if (to(in)+tnote(in) .gt. tend-tol) then
-c
-c If here, this note overlaps and must be tested.
-c
- tgovern = min(tgovern,tnote(in))
- end if
-1 continue
-2 continue
- getsquez = space/tgovern
- return
- end
- subroutine getx(lineq,iccount,irest,shifton,wheadpt,iornq1,ivx,
- * irest1,itsofar,ntup,itup,nnodur,dotq,ndoub)
- parameter(nm=24)
-c
-c Parse "X" commands. Ignore all "B"; "P" means to ignore whole symbol.
-c In scor2prt, must strip out "P", copy only "B" and "P"-type "X"-symbols.
-c Since during getnote phase time is integer itsofar, which is not updated
-c during xtups, we use itup and ntup to get actual time. On entry, ntup=0 if
-c not in xtup.
-c
- common /comudsp/udsp(50),tudsp(50),nudsp,udoff(nm,20),nudoff(nm)
- logical shifton,colon,ess,number
- character*128 lineq
- character*1 charq,durq,dotq
- colon = .false.
- ess = .false.
- number = .false.
- nextbl = iccount+index(lineq(iccount:128),' ')-1
- if (index(lineq(iccount:nextbl),'P') .gt. 0) then
-c
-c "Parts only", ignore entire symbol
-c
- iccount = nextbl
- return
- end if
-1 call getchar(lineq,iccount,charq)
- if (charq.eq.'B') then
-c
-c "Both parts and score," ignore character
-c
- go to 1
- else if (charq .eq. ':') then
- colon = .true.
- go to 1
- else if (charq .eq. 'S') then
- ess = .true.
- go to 1
- else if (index('+-.0123456789',charq) .gt. 0) then
- number = .true.
- if (charq.eq.'-') iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- if (charq .eq. '-') fnum = -fnum
- if (durq .ne. 'p') then
- fnum = fnum*wheadpt
- iccount = iccount-1
- end if
- go to 1
- end if
-c
-c charq must be blank, so done parsing
-c
- if (.not.ess .and. .not.colon) then
-c
-c Ordinary hardspace. Goes before next note.
-c (Later, at "|" or "/", check for presence and switch to udoff if there!)
-c
- nudsp = nudsp+1
- iornq1 = ibset(iornq1,26)
- udsp(nudsp) = fnum
- tudsp(nudsp) = itsofar
- if (ntup .gt. 0) tudsp(nudsp) = tudsp(nudsp)
-c * +float(itup-1)/ntup*ifnodur(nnodur,dotq)
- * +float(itup-1+ndoub)/ntup*ifnodur(nnodur,dotq)
- else if (.not.number) then
-c
-c Must be "X:" End a group offset.
-c
- irest = ibset(irest,17)
- shifton = .false.
- return
- else
-c
-c Only other possibility is start offset, "S" for single, ':' for multiple
-c
- nudoff(ivx) = nudoff(ivx)+1
- udoff(ivx,nudoff(ivx)) = fnum
- if (ess) then
- irest1 = ibset(irest1,15)
- else
- irest1 = ibset(irest1,16)
- shifton = .true.
- end if
- end if
- return
- end
- function i1fnodur(idur,dotq)
- character*1 dotq
- if (idur .eq. 6) then
- i1fnodur=1
- else if (idur .eq. 3) then
- i1fnodur=2
- else if (idur .eq. 1) then
- i1fnodur=4
- else if (idur .eq. 8) then
- i1fnodur=8
- else if (idur .eq. 4) then
- i1fnodur=16
- else if (idur .eq. 2) then
- i1fnodur=32
- else if (idur .eq. 0) then
- i1fnodur=64
- else if (idur .eq. 16) then
-c
-c Only used for denominator of time signatures, not for notes
-c
- i1fnodur=4
- else if (idur .eq. 9) then
- i1fnodur = 128
- else
- print*
- print*,'You entered an invalid note-length value:',idur
- call stop1()
- end if
- if (dotq .eq. 'd') i1fnodur = i1fnodur*3/2
- return
- end
-c integer*4 function longi(ishort)
-c integer*2 ishort
-c longi = ishort
-c return
-c end
- function iashft(nacc)
- integer*4 ias(6)
- data ias /-1,1,0,0,-2,2/
- iashft = ias(nacc)
- return
- end
- function ifnodur(idur,dotq)
- character*1 dotq
- if (idur .eq. 6) then
- ifnodur=1
- else if (idur .eq. 3)then
- ifnodur=2
- else if(idur .eq. 1) then
- ifnodur=4
- else if(idur .eq. 8) then
- ifnodur=8
- else if(idur .eq. 4) then
- ifnodur=16
- else if(idur .eq. 2) then
- ifnodur=32
- else if(idur .eq. 0) then
- ifnodur=64
- else if(idur .eq. 9) then
- ifnodur=128
- else if (idur .eq. 16) then
-c
-c Only used for denominator of time signatures, not for notes
-c
- ifnodur=4
- else
- print*,'You entered an invalid note value'
- stop
- end if
- if (dotq .eq. 'd') ifnodur = ifnodur*3/2
- return
- end
- function ifnolev(noq,oct,ntrans)
- character*1 noq
- integer oct
- ifnolev = 7*oct+mod(ichar(noq)-92,7)+1+ntrans
- return
- end
-c subroutine report(nsdat,isdat1,isdat2)
-c integer*4 isdat1(202),isdat2(202)
-c write(*,'(a)')
-c * ' isd on? iv kv ip id ud1 ud2 ndx ivo iho lev crd lhd rhd'
-c do 1 isdat = 1 , nsdat
-c isdata = isdat1(isdat)
-c ionoff = igetbits(isdata,1,11)
-cc iv = iand(7,isdata)
-c iv = igetbits(isdata,5,13)
-c kv = igetbits(isdata,1,12)+1
-c ip = igetbits(isdata,8,3)
-c idcode = igetbits(isdata,7,19)
-c iud1 = igetbits(isdata,1,26)
-c iud2 = igetbits(isdata,1,27)
-c ndxslur = igetbits(isdata,4,28)
-c isdatb = isdat2(isdat)
-c ivo = igetbits(isdatb,6,6)-32
-c iho = igetbits(isdatb,7,12)-64
-c lev = igetbits(isdatb,7,19)
-c icrd = igetbits(isdatb,1,0)
-c lhd = igetbits(isdatb,1,1)
-c irhd = igetbits(isdatb,7,2)
-c write(*,'(17i4)')isdat,ionoff,iv,kv,ip,idcode,iud1,iud2,ndxslur,
-c * ivo,iho,lev,icrd,lhd,irhd
-c1 continue
-c print*
-c return
-c end
- function igetbits(isdata,iwidbit,ishift)
-c
-c Extracts integer given by iwidbit bits of isdata, shifted by ishift, and
-c then added to ioff
-c
- igetbits = iand(2**iwidbit-1,ishft(isdata,-ishift))
- return
- end
- function igetvarlen(mmidi,icm,imidi,nbytes)
-c
-c Gets variable-length integer starting in mmidi at imidi+1. Returns nbytes.
-c
- parameter (nm=24,mv=24576)
- integer*2 mmidi(0:nm,mv)
- igetvarlen = 0
- do 1 nbytes = 1 , 4
- igetvarlen = 128*igetvarlen
- * +iand(127,mmidi(icm,imidi+nbytes))
- if (.not.btest(mmidi(icm,imidi+nbytes),7)) return
-1 continue
- print*,'Messup in igetvarlen'
- call stop1()
- end
- logical function isdotted(nodur,ivx,ip)
- parameter (nm=24)
-c
-c Function returns true if note is dotted or double-dotted.
-c Return false for any xtuplet.
-c
- common /comtol/ tol
- integer*4 nodur(nm,200)
- if (nodur(ivx,ip) .eq. 0) then
- isdotted = .false.
- return
- else if (ip .gt. 1) then
- if (nodur(ivx,ip-1) .eq. 0) then
- isdotted = .false.
- return
- end if
- end if
-c
-c Ruled out all xtups, so is dotted or double-dotted if not a power of 2.
-c
- isdotted =
- * mod(alog(float(nodur(ivx,ip)))/.69314718+.5*tol,1.) .gt. tol
- return
- end
- function isetvarlen(idur,nbytes)
- isetvarlen = 0
- itemp = idur
- do 1 nbytes = 1 , 4
- isetvarlen = isetvarlen + iand(itemp,127)*256**(nbytes-1)
- itemp = ishft(itemp,-7)
- if (itemp .gt. 0) then
- isetvarlen = isetvarlen+2**(8*nbytes+7)
- else
- return
- end if
-1 continue
- print*,'Problem in fn. isetvarlen'
- call stop1()
- end
- subroutine istring(i,string,len)
-c
-c Returns string with integer only if length is 1, otherwise enclosed in
-c brackets.
-c
- character*(*) string
- if (i .ne. 0) then
- len = alog10(abs(i)*1.0001)+1
- if (i .lt. 0) len = len+1
- else
- string = '0'
- len = 1
- return
- end if
- if (len .eq. 1) then
- string = char(48+i)
- else
- string = '{'
- write(string(2:1+len),'(i'//char(48+len)//')')i
- string = string(1:len+1)//'}'
- len = len+2
- end if
- return
- end
- function lenstr(string,n)
- character*(*) string
- do 1 lenstr = n , 1 , -1
- if (string(lenstr:lenstr) .ne. ' ') return
-1 continue
- lenstr = 0
- return
- end
- function levrn(nolev,irest,iud,ncm,mult)
-c
-c Used for placing numbers in xtups. Returns note level if not a rest,
-c else level of top or bottom of rest symbol opposite beam. iud=-1 for upstm.
-c
- logical btest
- if (.not.btest(irest,0)) then
- levrn = nolev
- else
-c
-c Restlevel is -4, 0, 2 or 100+offset. First get offset from 1-voice default.
-c
- if (mult .gt. 0) then
- if (mult .eq. 2) then
- ioff = -1+2*iud
- else if (mult .ne. 4) then
- ioff = iud*mult
- else
- ioff = 1+4*iud
- end if
- else
-c
-c May need to futz with this later for non-beamed xtups (quarter, half rests)
-c
- ioff = iud*2
- end if
- levrn = mod(nolev+20,100)-20+ncm+ioff
- endif
- return
- end
- function lfmt1(x)
-c
-c Computes total length of an "f" format with one decimal place.
-c First round to nearest 0.1
-c
- if (abs(x) .lt. .001) then
- lfmt1 = 2
- else
- y = sign(.1*int(10*abs(x)+.5),x)
- lfmt1 = int(log10(1000*abs(y)+.001))
- if (y .lt. 0) lfmt1 = lfmt1+1
- end if
- return
- end
- subroutine LineBreakTies(isdat1,isdat2,isdat3,isdat4,nsdat,
- * ispstie,sepsymq)
- parameter (nm=24)
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- common /comoct/ noctup
- integer*4 isdat1(202),isdat2(202),isdat3(202),isdat4(202)
- logical fontslur,WrotePsslurDefaults,btest,upslur,ispstie,tie
- character*1 udq,chax,sepsymq(nm)
- character*8 noteq
- character*128 notexq
-c
-c This is called twice from pmxb after having input an entire block, before
-c making a bar that starts a new system. So nsdat reflects all slur starts
-c and stops in new block, while listslur, which is only set when bars are
-c made, reflects only open slurs from the old block. So we must check
-c listslur to find open ties, not all nsdat.
-c First of two calls (ispstie=.false. on entry) terminates tie at end of line.
-c Second (ispstie=.true. on entry) restarts tie at start of new line. Only
-c need data from original tie-start for both of these. Tie/slur data from
-c closing of full tie are not used except for shape alterations.
-c
-c do 1 ndx = 0 , 11
- do 1 ndx = 0 , 23
- if (btest(listslur,ndx)) then
-c
-c Slur or tie with index ndx is open. Find the one with right ndxb, see if tie
-c
- do 2 isdat = 1 , nsdat
-c if (igetbits(isdat1(isdat),4,28) .ne. ndx) go to 2 ! Wrong index
- if (igetbits(isdat1(isdat),4,28)
- * +16*igetbits(isdat1(isdat),1,18) .ne. ndx) go to 2 ! Wrong index
- if (.not.btest(isdat1(isdat),11)) go to 2 ! Bypass if stop
- if (btest(isdat2(isdat),3)) go to 3 ! "st"
- idcode = igetbits(isdat1(isdat),7,19)
- if (idcode.eq.1) go to 3 ! "t"
- tie = .false.
- go to 5
-2 continue
- end if
- go to 1
-3 continue
- tie = .true.
-5 continue
-c
-c A slur or tie is open, with index ndx
-c
- iv = igetbits(isdat1(isdat),5,13)
- kv = igetbits(isdat1(isdat),1,12)+1
- udq = 'd'
- if (btest(isdat1(isdat),27)) udq='u'
- notexq = chax(92)//'znotes'
- lnote = 7
- do 4 iiv = 1 , iv-1
- notexq = notexq(1:lnote)//sepsymq(iiv)
- lnote = lnote+1
-4 continue
- if (kv .eq. 2) then
- notexq = notexq(1:lnote)//chax(92)//'nextvoice'
- lnote = lnote+10
- end if
-c
-c Compute horiz and vert offsets
-c
-c nolev = igetbits(isdat2(isdat),7,19)
- islhgt = igetbits(isdat3(isdat),8,14)
- ilb12 = 0
- if (ispstie) ilb12 = 1
- ivoff = igetbits(isdat4(isdat),6,ilb12*16)-32
- if (ivoff .eq. -32) ivoff = 0
-C nolev = nolev+ivoff
- islhgt = islhgt+ivoff
- ihoff = (igetbits(isdat4(isdat),7,ilb12*16+6)-64) ! This is 10X hoff
- if (ihoff .eq. -64) ihoff = 0
-c
-c Add starting stuff for command
-c
- if (.not.ispstie) then ! End 1st segment
- notexq = notexq(1:lnote)//chax(92)//'roffset{'
- lnote = lnote+9
-c hoff = ihoff*.1-.5
-c hoff = ihoff*.1-.8
- hoff = ihoff*.1-.4
- if (hoff .lt. 0) then
- hoff = -hoff
- notexq = notexq(1:lnote)//'-'
- lnote = lnote+1
- end if
- call writflot(hoff,notexq,lnote)
- notexq = notexq(1:lnote)//'}{'
- lnote = lnote+2
- else
- notexq = notexq(1:lnote)//chax(92)//'off{-'
- * //chax(92)//'afterruleskip}'
- lnote = lnote+21
-c
-c 091025 add dotting for 2nd segment if needed
-c
- if (btest(isdat2(isdat),4)) then
- notexq = chax(92)//'dotted'//notexq(1:lnote)
- lnote = lnote+7
- end if
- end if
- if (ispstie .and. tie) then
- notexq = notexq(1:lnote)//chax(92)//'tieforis'//udq
- lnote = lnote+10
- end if
- if (btest(isdat3(isdat),0)) then
-c
-c Curvature tweak on termination of 1st seg
-c
- imid = igetbits(isdat3(isdat),6,2)-32
-c
-c Invoke macro (from pmx.tex) that redefines \tslur as r'qd. mapping:
-c Abs(imid) Postscript slur type
-c 1 f
-c 4 h
-c 5 H
-c 6 HH
-c
- notexq = notexq(1:lnote)//chax(92)//'psforts'//chax(48+imid)
- lnote = lnote+9
-c
-c Zero out the flag in case there's a different curv on term of 2nd,
-c
- isdat3(isdat) = ibclr(isdat3(isdat),0)
- end if
-c
-c Add the command name
-c
- if (ispstie) then
- notexq = notexq(1:lnote)//chax(92)//'is'//udq
- lnote = lnote+4
- else if (tie) then
- notexq = notexq(1:lnote)//chax(92)//'ttie'
- lnote = lnote+5
- else
- notexq = notexq(1:lnote)//chax(92)//'tslur'
- lnote = lnote+6
- end if
-c
-c Add index
-c
-c if (11-ndx .lt. 10) then
-c notexq = notexq(1:lnote)//chax(59-ndx)
-c lnote = lnote+1
-c else
-c notexq = notexq(1:lnote)//'{1'//chax(49-ndx)//'}'
-c lnote = lnote+4
-c end if
- if (23-ndx .lt. 10) then
- notexq = notexq(1:lnote)//chax(71-ndx)
- lnote = lnote+1
- else if (23-ndx .lt. 20) then
- notexq = notexq(1:lnote)//'{1'//chax(61-ndx)//'}'
- lnote = lnote+4
- else
- notexq = notexq(1:lnote)//'{2'//chax(51-ndx)//'}'
- lnote = lnote+4
- end if
- if (ispstie .or. .not.tie) then
-c
-c Add note name for slur height
-c
- noctup = 0
- ncm = igetbits(isdat3(isdat),8,22)
- if (ncm .eq. 23) noctup = -2
-c call notefq(noteq,lnoten,nolev,ncm)
- call notefq(noteq,lnoten,islhgt,ncm)
- notexq = notexq(1:lnote)//'{'//noteq(1:lnoten)//'}'
- lnote = lnote+1+lnoten+1
- end if
- if (ispstie) then
-c
-c Horizontal shift start of new thing
-c
- notexq = notexq(1:lnote)//'{'
- lnote = lnote+1
-c ihoff = ihoff-13
- if (tie) then
- ihoff = ihoff-12
- else
- ihoff = ihoff-7
- end if
- if (ihoff .lt. 0) then
- ihoff = -ihoff
- notexq = notexq(1:lnote)//'-'
- lnote = lnote+1
- end if
- call writflot(ihoff*.1,notexq,lnote)
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- end if
-c
-c Add closing stuff
-c
- if (ispstie) then
- notexq = notexq(1:lnote)//chax(92)//'off{'
- * //chax(92)//'afterruleskip}'
- lnote = lnote+20
- else
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- end if
- notexq = notexq(1:lnote)//chax(92)//'en%'
- lnote = lnote+4
- write(11,'(a)')notexq(1:lnote)
-1 continue
- ispstie = .not.ispstie
- return
- end
- subroutine littex(islur,nnl,iv,topmods,lineq,iccount)
- parameter (nm=24)
- common /comlast/ islast,usevshrink
- logical islast,usevshrink
- integer islur(nm,200)
- logical topmods
- common /comgrace/ ivg(37),ipg(37),nolevg(74),itoff(2,74),aftshft,
- * nng(37),ngstrt(37),ibarmbr,mbrest,xb4mbr,
- * noffseg,ngrace,nvolt,ivlit(83),iplit(83),nlit,
- * graspace(37),
- * lenlit(83),multg(37),upg(37),slurg(37),slashg(37),
- * naccg(74),voltxtq(6),litq(83)
- logical upg,slurg,slashg,merge
- character*128 lineq,litq
- character*20 voltxtq
- character*1 durq,chax
- merge = .false.
- if (nlit .gt. 0) then
- merge = iv.eq.ivlit(nlit) .and. nnl.eq.iplit(nlit)
- end if
- nlit = nlit+1
- ivlit(nlit) = iv
- iplit(nlit) = nnl
- itype = 1
-17 call getchar(lineq,iccount,durq)
- if (durq .eq. chax(92)) then
- itype=itype+1
- go to 17
- end if
- litq(nlit) = chax(92)//durq
- lenlit(nlit) = 2
-18 call getchar(lineq,iccount,durq)
- if (durq.eq.chax(92)) then
- call getchar(lineq,iccount,durq)
- if (durq .ne. ' ') then
-c
-c Starting a new tex command within the string
-c
- litq(nlit) = litq(nlit)(1:lenlit(nlit))//chax(92)//durq
- lenlit(nlit) = lenlit(nlit)+2
- go to 18
- end if
- else
- litq(nlit) = litq(nlit)(1:lenlit(nlit))//durq
- lenlit(nlit) = lenlit(nlit)+1
- go to 18
- end if
-c
-c If here, just read backslash-blank so string is done
-c
- if (itype .eq. 1) then
- islur(iv,nnl) = ibset(islur(iv,nnl),16)
- if (merge) then
-c
-c There are 2 separate strings on the same note, so merge them.
-c
- nlit = nlit-1
- litq(nlit) = litq(nlit)(1:lenlit(nlit))
- * //litq(nlit+1)(1:lenlit(nlit+1))
- lenlit(nlit) = lenlit(nlit)+lenlit(nlit+1)
- if (lenlit(nlit) .gt. 128) then
- print*
- print*,
- * 'Merged type-1 TeX strings longer than 128 characters'
- write(15,'(/,a)')
- * 'Merged type-1 TeX strings longer than 128 characters'
- call stop1()
- end if
- end if
- else
-c
-c Type 2 or 3.
-c
- if (itype .eq. 3) then
-c
-c Write the string NOW
-c
- if (islast)
- * write(11,'(a)')litq(nlit)(1:lenlit(nlit))//'%'
- else
-c
-c Must go at top
-c
- if (.not.topmods) then
- topmods = .true.
- open(16,status='SCRATCH')
- end if
-c
-c Must write '%' here rather than later, in case string ends with blank.
-c
- write(16,'(a)')litq(nlit)(1:lenlit(nlit))//'%'
- end if
- nlit = nlit-1
- end if
- return
- end
- function llen(strq,n)
- character*129 strq
- do 1 llen = n , 0 , -1
- if (strq(llen:llen) .ne. ' ') return
-1 continue
- end
- function log2(n)
-c
-c 5/25/08 Modify to allow more slurs
-c
-c log2 = alog(1.*n)/0.6931472+.0001
-c log2 = dlog(1.d0*n)/0.693147181d0+.00000001d0
- log2 = dlog(1.d0*n)/0.693147181d0+.00000002d0
- return
- end
- subroutine logbeam(numnew,nip1,nip2)
- parameter (nm=24)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- common /comfb/ nfb(nm),t1fb(nm,40),t2fb(nm,40),ulfbq(nm,40),ifb,
- * tautofb,autofbon,t1autofb
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- character*1 ulq,sepsymq,sq,ulfq,ulfbq
- logical beamon,firstgulp,figbass,figchk,isfig,isxtup,btest,
- * autofbon
- ibm1(ivx,numnew) = nip1
- ibm2(ivx,numnew) = nip2
- numnow = numnew
- if (numnew .gt. 1) then
-c
-c If it starts before any others, must put it in order
-c
- do 11 ib = numnew-1 , 1 , -1
- if (ibm1(ivx,ib) .lt. nip1) go to 12
- ibm1(ivx,ib+1) = ibm1(ivx,ib)
- ibm2(ivx,ib+1) = ibm2(ivx,ib)
- ulq(ivx,ib+1) = ulq(ivx,ib)
- ibm1(ivx,ib) = nip1
- ibm2(ivx,ib) = nip2
- numnow = ib
-11 continue
-12 continue
- end if
- sum = 0.
-c
-c Beam has non-xtup within
-c
- nrests = 0
- isxtup = .false.
- do 9 iip = nip1 , nip2
- if (btest(islur(ivx,nip1),21)) then
-c
-c Forced multiplicity
-c
- call setbits(mult(ivx,iip),4,0,
- * igetbits(islur(ivx,nip1),3,22)+8)
- else if (.not.isxtup) then
- if (nodur(ivx,iip) .gt. 0) then
- call setbits(mult(ivx,iip),4,0,4-log2(nodur(ivx,iip))+8)
- else
-c
-c Start xtup within forced beam
-c
- isxtup = .true.
- iip1 = iip
- end if
- else if (isxtup .and. nodur(ivx,iip).gt.0) then
-c
-c End of xtup within forced beam. Must count doubled notes
-c
- ndoub = 0
- do 1 iiip = iip1 , iip
- if (btest(nacc(ivx,iiip),18)) ndoub = ndoub+1
-1 continue
- multx = int(10.5+2.929+(0.952*alog(1.+iip-iip1+ndoub)-
- * alog(nodur(ivx,iip)/2.))/0.69315)-10
- do 74 iiip = iip1 , iip
- call setbits(mult(ivx,iiip),4,0,multx+8)
-c
-c Note the following still works after making mult only the 1st 4 bits.
-c
- if (btest(nacc(ivx,iiip),18))
- * mult(ivx,iiip) = mult(ivx,iiip)-1
- if (btest(nacc(ivx,iiip),19)) then
- mult(ivx,iiip) = mult(ivx,iiip)+1
- else if (iiip .gt. 1) then
- if (btest(nacc(ivx,iiip-1),19))
- * mult(ivx,iiip) = mult(ivx,iiip)+1
- end if
-74 continue
- isxtup = .false.
- end if
- if (btest(irest(ivx,iip),0)) then
- nrests = nrests+1
- else
- sum = sum+nolev(ivx,iip)
- end if
-9 continue
-c
-c Set beam up-down-ness
-c
- if (ifb.gt.0 .and. ulfbq(ivx,max(1,ifb)).ne.'x') then
- if (ulfbq(ivx,ifb) .eq. 'f') then
-c
-c Get default, then trade "l" and "u"
-c
- ulq(ivx,numnow) = char(225-ichar(
- * ulfq(sum/(nip2-nip1+1-nrests),ncmid(iv,nip1))))
- else
- ulq(ivx,ifb) = ulfbq(ivx,ifb)
- end if
-c
-c This probably works only because forced beams are done first, so they
-c don't have to be re-sorted within each voice. ????
-c
- else if (nvmx(iv) .eq. 2) then
-c
-c Multi-voice per staff
-c
- if (ivx .le. nv) then
- ulq(ivx,numnow) = 'l'
- else
- ulq(ivx,numnow) = 'u'
- end if
- else
-c
-c Defaults
-c
- ulq(ivx,numnow) =
- * ulfq(sum/(nip2-nip1+1-nrests),ncmid(iv,nip1))
- end if
- return
- end
- subroutine m1rec1(lineq,iccount,ibarcnt,ibaroff,nbars,ndxm)
-c
-c This is called when (a) macro recording is just starting and
-c (b) at the start of a new line, if recording is on
-c
- parameter (maxblks=9600)
- character*128 lineq,lnholdq
- common /commac/ macnum,mrecord,mplay,macuse,icchold,lnholdq,endmac
- common /c1ommac/ ip1mac(20),il1mac(20),ip2mac(20),il2mac(20),
- * ic1mac(20),ilmac,iplmac
- logical mrecord,mplay,endmac
- character*131072 bufq
- integer*2 lbuf(maxblks)
- common /inbuff/ ipbuf,ilbuf,nlbuf,lbuf,bufq
- lbuf(1) = lbuf(1)
- if (.not.mrecord) then
-c
-c Starting the macro
-c
- ip1mac(macnum) = ipbuf-lbuf(ilbuf-1)+iccount
- il1mac(macnum) = ilbuf-1
- ic1mac(macnum) = iccount
- mrecord = .true.
- end if
- if (iccount .lt. 128) then
- ndxm = index(lineq(iccount+1:128),'M')
- if (ndxm .gt. 0) ndxm = ntindex(lineq(iccount+1:128),'M',
- * 128-iccount)
- if (ndxm .gt. 0) then
-c
-c This line ends the macro.
-c
- if (lineq(iccount+ndxm+1:iccount+ndxm+1) .ne. ' ') then
- call errmsg(lineq,iccount+ndxm+1,ibarcnt-ibaroff+nbars+1,
- * 'Improper macro termination!')
- call stop1()
- end if
- ip2mac(macnum) = ipbuf-lbuf(ilbuf-1)+iccount+ndxm
- il2mac(macnum) = ilbuf-1
- mrecord = .false.
- end if
- end if
- return
- end
- subroutine make1bar(ibmrep,tglp1,tstart,cwrest,squez,
- * istop,numbms,istart)
- parameter (nm=24,mv=24576)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- common /comipl2/ ipl2(nm,200)
- character*10 figq
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,isfig,bar1syst
- common /comeskz2/ eskz2(nm,200)
- common /comfig/ itfig(2,74),figq(2,74),ivupfig(2,74),nfigs(2),
- * fullsize(nm),ivxfig2,ivvfig(2,74)
- common /combeam/ ibmtyp
- common /comask/ bar1syst,fixednew,scaldold,
- * wheadpt,fbar,poenom
- common /comas1/ naskb,task(40),wask(40),elask(40)
- common /comas2/ nasksys,wasksys(800),elasksys(800)
- common /comhead/ ihdht,lower,headrq,lowerq,ihdvrt
- common /comfb/ nfb(nm),t1fb(nm,40),t2fb(nm,40),ulfbq(nm,40),ifb,
- * tautofb,autofbon,t1autofb
- common /comsln/ is1n1,is2n1,irzbnd,isnx
- common /comgrace/ ivg(37),ipg(37),nolevg(74),itoff(2,74),aftshft,
- * nng(37),ngstrt(37),ibarmbr,mbrest,xb4mbr,
- * noffseg,ngrace,nvolt,ivlit(83),iplit(83),nlit,
- * graspace(37),
- * lenlit(83),multg(37),upg(37),slurg(37),slashg(37),
- * naccg(74),voltxtq(6),litq(83)
- logical upg,slurg,slashg,autofbon
- character*128 litq
- common /comcc/ ncc(nm),tcc(nm,10),ncmidcc(nm,10),
- * maxdotmv(nm),ndotmv(nm),updot(nm,20),rtdot(nm,20)
- integer cnn(nm),istart(80),istop(80),nxtnow(nm),ifbnow(nm),
- * numbms(nm),mapfb(16)
- real*4 xit(nm),t1xtup(20),tstart(80),squez(80)
- character*1 ulfbq
- character*79 inameq
- character*20 voltxtq
- common /comoct/ noctup
- character*80 headrq,lowerq
- logical cwrferm
- common /comcwrf/ cwrferm(nm)
- common /comnsp/ space(80),nb,prevtn(nm),
- * flgndv(nm),flgndb,eskgnd,ptsgnd,ivmxsav(nm,2),nvmxsav(nm)
- logical lower,cwrest(nm),vxtup,flgndb,btest,upslur,
- * infbmx(nm),lowdot,inxtup(nm),drawbm
- common /comxtup/ ixtup,vxtup(nm),ntupv(nm,9),nolev1(nm),
- * mtupv(nm,9),nxtinbm(nm),
- * islope(nm),xelsk(24),eloff(nm,9),
- * nssb(nm),issb(nm),lev1ssb(nm,20)
- common /comdraw/ drawbm(nm)
- common /comstart/ facmtr
- common /spfacs/ grafac,acgfac,accfac,xspfac,xb4fac,clefac,emgfac,
- * flagfac,dotfac,bacfac,agc1fac,gslfac,arpfac,
- * rptfac,lrrptfac,dbarfac,ddbarfac,dotsfac,upstmfac,
- * rtshfac
-c
-c Above are factors for grace note, clef spacing. (fraction of wheadpt)
-c In 1.04, moved to block data subprogram
-c
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /comtop / itopfacteur,ibotfacteur,interfacteur,isig0,
- * isig,lastisig,fracindent,widthpt,height,hoffpt,voffpt,idsig,
- * lnam(nm),inameq(nm)
- common /comudsp/udsp(50),tudsp(50),nudsp,udoff(nm,20),nudoff(nm)
- common /comarp/ narp,tar(8),ivar1(8),ipar1(8),levar1(8),ncmar1(8),
- * xinsnow,lowdot
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- common /comtol/ tol
- integer*2 mmidi
- logical restpend,relacc,notmain,twoline,ismidi,crdacc,fontslur,
- * WrotePsslurDefaults
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- common /comntot/ ntot
- if (ismidi) then
-c
-c Initialize for this bar the accidental counter for the midi file.
-c naccim(icm) = # of accidentals from earlier in the bar
-c
- do 45 iv = 1 , nv
- do 45 kv = 1 , nvmx(iv)
- naccim(midchan(iv,kv)) = 0
-45 continue
- end if
-c
-c Time from start of gulp to end of bar, used with forced beams
-c
- tglp2 = lenb0+ibar*lenb1
- if (lenb0 .gt. 0) tglp2 = tglp2-lenb1
- tglp1 = tglp2-lenbar
-c
-c infbmx will only be true if in xtup that is NOT in explicit forced beam.
-c
- do 1 iv = 1 , nv
- do 1 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- cwrest(ivx) = .false.
- infbmx(ivx) = .false.
- inxtup(ivx) = .false.
- if (ibar .gt. 1) then
- nn(ivx) = nib(ivx,ibar)-nib(ivx,ibar-1)
- else
- nn(ivx) = nib(ivx,ibar)
- end if
-1 continue
-c
-c initialize list note counter, time(iv), curr. note(iv). The loop to 4
-c ONLY initializes each voice.
-c
- in = 1
- nxtup = 0
- narp = 0
- do 4 iv = 1 , nv
- do 4 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- cwrferm(ivx) = .false.
- cnn(ivx) = 1
- ivxo(in) = ivx
- ipo(in) = cnn(ivx)
- tnote(in) = fnote(nodur,ivx,1,nacc)
- to(in) = 0.
- xit(ivx) = tnote(in)
-c
-c Note that xit(ivx) is to END of note in voice, but it1xtup is start time.
-c
- if (nodur(ivx,ipo(in)) .eq. 0) then
-c
-c First note of xtuplet at start of bar in voice ivx.
-c
- nxtup = nxtup+1
- nxtnow(ivx) = nxtup
- inxtup(ivx) = .true.
- t1xtup(nxtup) = 0.
-c
-c Xtup at start of bar. If no explicit forced beam, start one, set
-c signal infbmx, and save number ifbnow for use at termination.
-c
- if (nfb(ivx) .gt. 0) then
- do 60 ifb = 1 , nfb(ivx)
- if (t1fb(ivx,ifb) .gt. tglp1+xit(ivx)+tol) then
-c
-c No explicit fb here; so exit loop and insert one.
-c
- go to 61
- else if (t1fb(ivx,ifb) .lt. tglp1+xit(ivx)+tol .and.
- * t2fb(ivx,ifb) .gt. tglp1+xit(ivx)+tol) then
-c
-c IS explicit fb here; must NOT insert one
-c
- go to 62
- end if
-60 continue
- end if
-61 continue
-c
-c If here, xtup isn't in explicit fb, so must insert one
-c
- infbmx(ivx) = .true.
- call addfb(nfb,ivx,t1xtup(nxtup)+
- * tglp1,t1fb,t2fb,ulfbq,ifbadd)
- ifbnow(ivx) = ifbadd
- end if
-62 continue
- if (abs(xit(ivx)-lenbar) .lt. tol) xit(ivx) = 1000.
- in = in+1
-4 continue
-c
-c Build the list: This is a manual loop starting at 5
-c
-5 continue
-c
-c Determine which voice comes next from end of notes done so far.
-c tmin is the earliest ending time of notes done so far
-c
- tmin = 1000.
- do 6 iiv = 1 , nv
- do 6 kv = 1 , nvmx(iiv)
- iivx = ivmx(iiv,kv)
- tminn = min(tmin,xit(iivx))
- if(tminn .lt. tmin-tol) then
- tmin = tminn
- ivx = iivx
- end if
-6 continue
- if (abs(tmin-1000.) .lt. tol) go to 7
- ivxo(in) = ivx
- cnn(ivx) = cnn(ivx)+1
- ipo(in) = cnn(ivx)
- to(in) = tmin
-c
-c Check if this voice is done
-c
- tnote(in) = fnote(nodur,ivx,cnn(ivx),nacc)
- if (cnn(ivx) .eq. nn(ivx)) then
- xit(ivx) = 1000.
- else
- xit(ivx) = xit(ivx)+tnote(in)
- end if
-c
-c Flag xtups
-c
- if (nodur(ivx,cnn(ivx)) .eq. 0) then
- if (.not.inxtup(ivx)) then
-c
-c First note of xtup, not at start of bar.
-c
- nxtup = nxtup+1
- nxtnow(ivx) = nxtup
- inxtup(ivx) = .true.
- t1xtup(nxtup) = xit(ivx)-tnote(in)
-c
-c (Note: can't be on last note in voice, so xit(ivx) <> 1000)
-c Put xtuplet in a forced beam if not already in forced beam
-c
- if (nfb(ivx) .gt. 0) then
- do 70 ifb = 1 , nfb(ivx)
- if (t1fb(ivx,ifb) .gt. tglp1+xit(ivx)+tol) then
-c
-c NO explicit bm; put one in
-c
- go to 71
- else if (t1fb(ivx,ifb) .lt. tglp1+xit(ivx)+tol .and.
- * t2fb(ivx,ifb) .gt. tglp1+xit(ivx)+tol) then
-c
-c IS explicit bm. Don't put one
-c
- go to 72
- end if
-70 continue
- end if
-71 continue
-c
-c If here, no explicit bm, so put one in
-c
- infbmx(ivx) = .true.
- call addfb(nfb,ivx,t1xtup(nxtup)+tglp1,
- * t1fb,t2fb,ulfbq,ifbadd)
- ifbnow(ivx) = ifbadd
- end if
-72 continue
- else if (inxtup(ivx)) then
-c
-c This test is sufficient because already know nodur>0
-c
- inxtup(ivx) = .false.
- if (infbmx(ivx)) then
-c
-c Xtup is in auto-forced beam, so end it
-c
- t2fb(ivx,ifbnow(ivx)) =
- * t1xtup(nxtnow(ivx))+nodur(ivx,cnn(ivx))+tglp1
- infbmx(ivx) = .false.
- end if
- end if
- if (btest(irest(ivxo(in),ipo(in)),24) .or.
- * btest(irest(ivxo(in),ipo(in)),30)) then
-c
-c For staff jumped beam, flag the first note (lowest voice) at same time.
-c Later will start new notes group here.
-c
- inj = in
- if (ivxo(in) .gt. 1) then
- do 40 iin = in-1 , 1 , -1
- if (to(iin)+tol .lt. to(in)) go to 41
- if (abs(to(iin)-to(in)) .lt. tol) then
- inj = iin
- go to 40
- end if
-40 continue
- end if
-41 continue
- irest(ivxo(inj),ipo(inj)) = ibset(irest(ivxo(inj),ipo(inj)),29)
- end if
- in = in+1
- go to 5
-7 continue
- ntot = in-1
- do 8 in = 1 , ntot-1
- tno(in) = to(in+1)-to(in)
-8 continue
- tno(ntot) = tnote(ntot)
-c
-c Debug writes
-c
-c write(*,'()')
-c write(*,'(a)')' Greetings from PMXB'
-c write(*,'(16i5)')(ivxo(in),in=1,ntot)
-c write(*,'(16i5)')(ipo(in),in=1,ntot)
-c write(*,'(16f5.1)')(to(in),in=1,ntot)
-c write(*,'(16f5.1)')(tno(in),in=1,ntot)
-c write(*,'(16i5)')(nodur(ivxo(in),ipo(in)),in=1,ntot)
-c write(*,'(16f5.1)')(fnote(nodur,ivxo(in),ipo(in),nacc),in=1,ntot)
-c
-c Done w/ list. Loop for parsing into note blocks:
-c
- ib = 1
- istart(1) = 1
- space(1) = 0.
- in = 1
-c
-c A manual loop to set space(ib) and istop(ib)
-c
-9 continue
-
- ivx = ivxo(min(in+1,ntot))
- ip = ipo(min(in+1,ntot))
- isl = islur(ivx,ip)
- if (in.eq.ntot .or. ((ivx.eq.1 .and.
- * (iand(isl,67109216).gt.0 .or. btest(ipl(1,ip),28)
-c * .or. ornq(1,ip).eq.'g')) .or. btest(isl,15) )) then
-c Bits 1-13: stmgx+Tupf._)
-c 14: Down fermata, was F
-c 15: Trill w/o "tr", was U
- * .or. btest(iornq(1,ip),4))) .or. btest(isl,15) )
-c
-c Checking for start of 2nd part of jumped beam
-c
- * .or. btest(irest(ivx,ip),29) ) then
-c
-c Bar end, segno, int. rpt or sig change, clef,end of 1st part of jumped beam;
-c flow out of if-loop and into block-wrapup
-c
-c 10/18/97: Problem with clef alignment. Got isl{15} set on lowest-numbered
-c voice, but it wasn't first in the list at the same time. So check if
-c prior notes in list have same time
-c 5/25/98: This stuff causes trouble with just "c2 Ct c", maybe when clef
-c changes on last note in the list?
-c
- if (btest(isl,15) .and. in.lt.ntot) then
- do 50 iin = in , 1 , -1
- if (tno(iin) .gt. tol) then
- in = iin
- islur(ivx,ip) = ibclr(islur(ivx,ip),15)
- islur(ivxo(in+1),ipo(in+1)) =
- * ibset(islur(ivxo(in+1),ipo(in+1)),15)
- go to 51
- end if
-50 continue
-51 continue
- end if
- if (space(ib) .lt. tol) then
- space(ib) = tno(in)
- squez(ib) = 1.
- end if
- istop(ib) = in
- else if (space(ib) .lt. tol) then
-c
-c space hasn't been set yet, so tentatively set:
-c
- space(ib) = tno(in)
- if (space(ib) .lt. tol) then
- in=in+1
- else
- squez(ib) = getsquez(in,ntot,space(ib),tnote,to)
- istop(ib) = in
- end if
- go to 9
- else if (tno(in+1) .lt. tol) then
-c
-c This is not the last note in the group, so
-c
- in = in+1
- go to 9
- else if (abs(tno(in+1)-space(ib)) .lt. tol) then
- xsquez = getsquez(in+1,ntot,space(ib),tnote,to)
- if (abs(xsquez-squez(ib)) .lt. tol) then
-c
-c Keep spacing the same, update tentative stop point
-c
- in = in+1
- istop(ib) = in
- go to 9
- end if
- end if
-c
-c At this point istart and istop are good, so finalize block
-c
- tstart(ib) = to(istart(ib))
- if (istop(ib) .eq. ntot) go to 15
- ib = ib+1
- istart(ib) = istop(ib-1)+1
- in = istart(ib)
-c
-c Set tentative block space and squeeze-factor for upcoming block
-c
- space(ib) = tno(in)
- if (space(ib).gt.tol)
- * squez(ib)= getsquez(in,ntot,space(ib),tnote,to)
- istop(ib) = in
- go to 9
-15 continue
- nb = ib
-c
-c Invert the list of places into ipl(0-7), making it easier to analyze a voice
-c
- do 13 in = 1 , ntot
-c
-c ??? This may fix extra \loff's (bit 8 of ipl) in measures with >255 notes.
-c
-c ipl(ivxo(in),ipo(in)) = ior(ipl(ivxo(in),ipo(in)),in)
- ipl2(ivxo(in),ipo(in)) = in
-13 continue
-c
-c Compute elemskips from start of bar to each note in the bar, for beam slopes
-c
- eskzb = 0.
- ib = 1
- do 30 in = 1 , ntot
- if (in .eq. istart(ib)) then
- deskb = squez(ib)*feon(space(ib)/squez(ib))
- else if (tno(in-1) .gt. tol) then
- eskzb = eskzb+deskb
- end if
- eskz(ivxo(in),ipo(in)) = eskzb
- eskz2(ivxo(in),ipo(in)) = eskzb
- if (in .eq. istop(ib)) then
- eskzb = eskzb+deskb
- ib = ib+1
- end if
-30 continue
-c
-c Analyze for beams.
-c
- do 20 iv = 1 , nv
- do 20 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- numbms(ivx) = 0
- mapfb(1) = 0
- mapfb(2) = 0
- mapfb(3) = 0
- mapfb(4) = 0
-c
-c First forced beams.
-c
- if (nfb(ivx) .gt. 0) then
-c
-c tglp2 is time from start of gulp to end of current bar.
-c
- nfbbar = 0
- do 80 ifb = 1 , nfb(ivx)
- if (t1fb(ivx,ifb).gt.tglp2-tol) go to 81
- nfbbar = nfbbar+1
- numbms(ivx) = numbms(ivx)+1
- numnew = numbms(ivx)
-c
-c Times from beginning of bar
-c
- itbb1 = int(t1fb(ivx,ifb)-tglp1+tol)
- itbb2 = int(t2fb(ivx,ifb)-tglp1+tol)
- do 83 ip = 1 , nn(ivx)
- if (int(to(ipl2(ivx,ip))+tol) .eq. itbb1) then
- nip1fb = ip
- do 84 ip1 = ip , nn(ivx)
- inip1 = ipl2(ivx,ip1)
- if (abs(to(inip1)+tnote(inip1)-itbb2) .lt. tol) then
- nip2fb = ip1
- itbb3 = itbb2-2
- go to 85
- end if
-84 continue
- end if
-83 continue
- print*
- print*,'Timing problem w/ forced beams'
- write(15,'(/a)')'Timing problem w/ forced beams'
-85 continue
- call logbeam(numnew,nip1fb,nip2fb)
-c
-c Set up mapfb for forced beam just logged:
-c
- ib1 = itbb1/2
- ib2 = itbb3/2
- ibrep = lenbar/ibmrep/2
- do 86 irep = 1 , ibmrep
- ib1now = max(0,ib1-(irep-1)*ibrep)
- ib2now = min(irep*ibrep-1,ib2-(irep-1)*ibrep)
- mapnow = 0
- do 87 ib = ib1now , ib2now
- mapnow = ibset(mapnow,ib)
-87 continue
- mapfb(irep) = ior(mapfb(irep),mapnow)
-86 continue
-c
-c Since we are cycling thru forced beams, for those that start with a rest and
-c have height & slope adjustments, move adjustments to next note.
-c 060924: Copy to ALL later notes in fb, in case there's more than 1 rest at
-c start of beam
-c
- if (btest(irest(ivx,nip1fb),0)) then
- do 88 kp = nip1fb+1 , nip2fb
- call setbits(ipl(ivx,kp),6,11,
- * igetbits(ipl(ivx,nip1fb),6,11))
- call setbits(ipl(ivx,kp),6,17,
- * igetbits(ipl(ivx,nip1fb),6,17))
- call setbits(islur(ivx,kp),2,27,
- * igetbits(islur(ivx,nip1fb),2,27))
-88 continue
- end if
-80 continue
-81 continue
-c
-c Slide down, reduce nfb(ivx). This lets us count up from 1 for each new bar.
-c Remember, makeabar is called 1/bar, and it calls findbeam once per voice.
-c
- if (nfbbar .gt. 0) then
- nfb(ivx) = nfb(ivx)-nfbbar
- do 82 ifb = 1 , nfb(ivx)
- t1fb(ivx,ifb) = t1fb(ivx,ifb+nfbbar)
- t2fb(ivx,ifb) = t2fb(ivx,ifb+nfbbar)
- ulfbq(ivx,ifb) = ulfbq(ivx,ifb+nfbbar)
-82 continue
- end if
- end if
- ifb = 0
-c
-c Done with forced beam masks for this bar and voice. Now get normal beams.
-c
- call findbeam(ibmrep,numbms,mapfb)
-20 continue
- return
- end
- subroutine make2bar(ninow,tglp1,tstart,cwrest,squez,
- * istop,numbms,istart,clefq)
- parameter (nm=24,mv=24576)
- common /comlast/ islast,usevshrink
- logical islast,usevshrink
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- common /comipl2/ ipl2(nm,200)
- character*10 figq
- character*1 ulq,sepsymq,sq,chax
- logical beamon,firstgulp,figbass,figchk,isfig,bar1syst,isbjmp,
- * isbj2
- common /combjmp/ ivbj1,ivbj2,isbjmp,isbj2,multbj1
- common /comfig/ itfig(2,74),figq(2,74),ivupfig(2,74),nfigs(2),
- * fullsize(nm),ivxfig2,ivvfig(2,74)
- common /combeam/ ibmtyp
- common /comask/ bar1syst,fixednew,scaldold,
- * wheadpt,fbar,poenom
- common /comas1/ naskb,task(40),wask(40),elask(40)
- common /comas2/ nasksys,wasksys(800),elasksys(800)
- common /comhead/ ihdht,lower,headrq,lowerq,ihdvrt
- common /comfb/ nfb(nm),t1fb(nm,40),t2fb(nm,40),ulfbq(nm,40),ifb,
- * tautofb,autofbon,t1autofb
- common /comsln/ is1n1,is2n1,irzbnd,isnx
- common /comgrace/ ivg(37),ipg(37),nolevg(74),itoff(2,74),aftshft,
- * nng(37),ngstrt(37),ibarmbr,mbrest,xb4mbr,
- * noffseg,ngrace,nvolt,ivlit(83),iplit(83),nlit,
- * graspace(37),
- * lenlit(83),multg(37),upg(37),slurg(37),slashg(37),
- * naccg(74),voltxtq(6),litq(83)
- logical upg,slurg,slashg,issig,rpndot,autofbon
- character*128 litq
- common /comcc/ ncc(nm),tcc(nm,10),ncmidcc(nm,10),
- * maxdotmv(nm),ndotmv(nm),updot(nm,20),rtdot(nm,20)
- integer istart(80),istop(80),iaskb(nm),numbms(nm),
- * nornb(nm),ihornb(nm,24),lcwr(nm),ibmcnt1(nm),ifig(2)
- character*1 ulfbq,udqq,clefq(nm),slurudq,udq
- character*8 noteq
- character*79 cwrq(nm),notexq,inameq
- character*20 voltxtq
- common /comoct/ noctup
- character*80 soutq,headrq,lowerq
- common /comnsp/ space(80),nb,prevtn(nm),
- * flgndv(nm),flgndb,eskgnd,ptsgnd,ivmxsav(nm,2),nvmxsav(nm)
- logical bspend,lower,cwrest(nm),vxtup,
- * isgrace,isclef,nofirst,iscln,isdot,isflag,
- * isacc,isfirst,flgndb,btest,stemup,upslur,
- * isgaft,isarp,isrshft,isaccs,iscacc,
- * lowdot,flipend,iscwr,isdotted,beamon1(nm)
- real*4 ptgr(37),ptclef(nm),ptsndg(nm),eskndg(nm),tstart(80),
- * squez(80)
- logical cwrferm,drawbm
- common /comcwrf/ cwrferm(nm)
- common /comxtup/ ixtup,vxtup(nm),ntupv(nm,9),nolev1(nm),
- * mtupv(nm,9),nxtinbm(nm),
- * islope(nm),xelsk(24),eloff(nm,9),
- * nssb(nm),issb(nm),lev1ssb(nm,20)
- common /comdraw/ drawbm(nm)
- common /comstart/ facmtr
- common /spfacs/ grafac,acgfac,accfac,xspfac,xb4fac,clefac,emgfac,
- * flagfac,dotfac,bacfac,agc1fac,gslfac,arpfac,
- * rptfac,lrrptfac,dbarfac,ddbarfac,dotsfac,upstmfac,
- * rtshfac
-c
-c Factors for grace note, clef spacing. (fraction of wheadpt)
-c In 1.04, moved to block data subprogram
-c
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /comtop / itopfacteur,ibotfacteur,interfacteur,isig0,
- * isig,lastisig,fracindent,widthpt,height,hoffpt,voffpt,idsig,
- * lnam(nm),inameq(nm)
- common /comudsp/udsp(50),tudsp(50),nudsp,udoff(nm,20),nudoff(nm)
- common /comarp/ narp,tar(8),ivar1(8),ipar1(8),levar1(8),ncmar1(8),
- * xinsnow,lowdot
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- common /strtmid/ ihnum3,flipend(nm),ixrest(nm)
- common /comtol/ tol
- common /comignorenats/ mbrhgt,newmbrhgt,ignorenats
- logical ignorenats,newmbrhgt
- integer*2 mmidi,iinsiv
- logical restpend,relacc,notmain,twoline,ismidi,crdacc,fontslur
- * ,WrotePsslurDefaults
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- logical slmon,dbltie
- common /comslm/ levson(0:nm),levsoff(0:nm),imidso(0:nm),
- * naccbl(0:nm),laccbl(0:nm,10),jaccbl(0:nm,10),nusebl,
- * slmon(0:nm),dbltie
- common /comevent/ miditime,lasttime
- logical kbdrests
- common /comkbdrests/ levbotr(8),levtopr(8),kbdrests
- logical secondgrace
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
- common /commidisig/ midisig
-c 130316
- common /commvel/ midivel(nm),midvelc(0:nm),midibal(nm),midbc(0:nm)
- * ,miditran(nm),midtc(0:nm),noinst,iinsiv(nm)
- common /comclefrests/ centrests
- logical centrests
- common /xjbeambrests/ nbrests
- common /comc8flag/ c8flag(nm)
- logical c8flag
- common /comnvi/ nsperi(nm),nspern(nm),rename,iiorig(nm)
- character*4 ivxq
- logical rename
- common /comshort/ shortfrac,codafrac,ishort,mbrsum,nmbr,nocodabn,
- * poefa
- real*4 poefa(125)
- logical nocodabn
- nbrests = 0
-c
-c Set up main ib loop within which a block (notes group) is written
-c
- do 25 iv = 1 , nv
- do 25 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- ibmcnt(ivx) = 1
- ibmcnt1(ivx) = 1
- beamon(ivx) = .false.
- beamon1(ivx) = .false.
- nornb(ivx) = 0
- iaskb(ivx) = 1
- vxtup(ivx) = .false.
- drawbm(ivx) = .true.
-25 continue
- naskb = 0
- ifig(1) = 1
- ifig(2) = 1
- ixtup = 0
- bspend = .false.
- iscwr = .false.
- rpndot = .false.
- do 16 ib = 1 , nb
-c
-c Check for segno
-c
- if (btest(iornq(1,ipo(istart(ib))),4) .and.
- * ivxo(istart(ib)).eq.1) then
- if (noffseg.le.-10) then
- write(noteq(1:5),'(1H{,i3,1H})')noffseg
- lnoten = 5
- else if (noffseg.lt.0 .or. noffseg.ge.10) then
- write(noteq(1:4),'(1H{,i2,1H})')noffseg
- lnoten = 4
- else
- write(noteq(1:1),'(i1)')noffseg
- lnoten = 1
- end if
- notexq = sq//'znotes'//sq//'segnoo'//noteq(1:lnoten)//'9'
- lnote = 15+lnoten
- do 130 iv = 2 , nv
- if (lnote .gt. 60) then
- if (islast) write(11,'(a)')notexq(1:lnote)//'%'
- notexq = sepsymq(iv-1)//sq//'segnoo'
- * //noteq(1:lnoten)//'9'
- lnote = lnoten+9
- else
- notexq = notexq(1:lnote)//sepsymq(iv-1)//sq//'segnoo'
- * //noteq(1:lnoten)//'9'
- lnote = lnote+lnoten+9
- end if
-130 continue
- if (islast) write(11,'(a)')notexq(1:lnote)//sq//'en'
- lnote = 0
- end if
-c
-c Check for new clefs
-c
- isclef = .false.
- if (btest(islur(ivxo(istart(ib)),ipo(istart(ib))),15))
- * then
-c
-c In preceding line, fl32 gave wrong result for ... .gt.0 !!!
-c
- do 140 in = istart(ib) , istop(ib)
- if (btest(islur(ivxo(in),ipo(in)),11)) then
- call wsclef(ivxo(in),ninow,
- * iand(ishft(islur(ivxo(in),ipo(in)),-12),7))
-c
-c If clefq = '8', must add eg \settrebleclefsymbol3\treblelowoct%
-c
-c if (clefq(ivxo(in)) .eq. '8') then
- if (btest(ipl(ivxo(in),ipo(in)),2)) then
-c
-c Find instrument number for voice ivso(in)
-c
- iv1 = 1
- do 1111 iinst = 1 , ninow
- if (ivxo(in) .lt. iv1+nspern(iinst)) go to 2222
- iv1 = iv1+nspern(iinst)
-1111 continue
- print*
- print*,'Should not be here in make2bar!'
- call stop1()
-2222 continue
- if (iinst .le. 9) then
- write(11,'(a20,i1,a)')sq//'settrebleclefsymbol',
- * iinst,sq//'treblelowoct%'
- else
- write(11,'(a20,i2,a)')sq//'settrebleclefsymbol',
- * iinst,sq//'treblelowoct%'
- end if
- c8flag(ivxo(in)) = .true.
- end if
- end if
-140 continue
- if (islast) write(11,'(a)')sq//'pmxnewclefs'
- isclef = .true.
- end if
-c
-c Start a notes group. We're just gonna define every one using pnotes{n},
-c where \def\pnotes#1{\vnotes#1\elemskip}
-c
- soutq = sq//'pnotes{'
- eonsqz = squez(ib)*feon(space(ib)/squez(ib))
- if (eonsqz .gt. 9.995) then
- write(soutq(9:12),'(f4.1)')eonsqz
- else if (eonsqz .gt. 0.995) then
- write(soutq(9:12),'(f4.2)')eonsqz
- else if (eonsqz .gt. 0.095) then
- soutq = soutq(1:8)//'0.'
- write(soutq(11:12),'(i2)')nint(100*eonsqz)
- else
- soutq = soutq(1:8)//'0.0'
- write(soutq(12:12),'(i1)')nint(100*eonsqz)
- end if
- soutq = soutq(1:12)//'}'
- lsout = 13
-c
-c Check whole block, flag accidentals etc that are too close, one per *time*.
-c Note about bar starts and after rpt's/boublebars: There is an afterruleskip
-c (fbar*wheadpt) following, but rpts seem to occupy some of that gap, so
-c (dotsfac*wheadpt) is presumed to be filled up.
-c
- in = istart(ib)-1
- itrpt = -1
- itsig = -1
-c
-c Begin big manual loop over notes in this block; ends at 112
-c
-111 in = in+1
- if (in .gt. istop(ib)) go to 112
- ip = ipo(in)
- ivx = ivxo(in)
- if (ivx .le. nv) then
- iv = ivx
- else
- do 128 iv = 1 , nv
- if (nvmx(iv) .eq. 2 .and. ivmx(iv,2).eq. ivx) go to 129
-128 continue
- print*,'Trouble finding iv!, ivx,nvmx,ivmx:',ivx,nvmx(1),nvmx(2)
- print*,ivmx(1,1),ivmx(1,2),ivmx(2,1),ivmx(2,2)
- stop
- end if
-129 continue
-c
-c Call precrd here so we know how much space to add for accid's in chords
-c After calling precrd, icashft>0 means there is a shifted chordal accid (incl.
-c main note.
-c
-c To call precrd, need up-downness, so must track if in beam.
-c
-c Deal w/ staff-jumping beams later
-c if ((numbms(ivx).gt.0 .and. ibmcnt(ivx).le.numbms(ivx)
-c * .and. ibm1(ivx,ibmcnt(ivx)) .eq. ip) .or.
-c * btest(nacc(ivx,ip),21)) then
-c if (.not.btest(irest(ivx,ip),24)) then
- if ((numbms(ivx).gt.0 .and. ibmcnt1(ivx).le.numbms(ivx)
- * .and. ibm1(ivx,ibmcnt1(ivx)) .eq. ip)) then
- beamon1(ivx)=.true.
- end if
- icashft = 0
- if (btest(ipl(ivx,ip),10)) then
-c
-c There is a chord on this note. Need up-down-ness in precrd to auto shift for 2nds.
-c
- if (beamon1(ivx)) then
- call precrd(ivx,ip,nolev(ivx,ip),nacc(ivx,ip),
- * ipl(ivx,ip),irest(ivx,ip),ulq(ivx,ibmcnt1(ivx)),
- * .false.,icashft)
- else
- call precrd(ivx,ip,nolev(ivx,ip),nacc(ivx,ip),
- * ipl(ivx,ip),irest(ivx,ip),udqq(nolev(ivx,ip),
- * ncmid(iv,ip),islur(ivx,ip),nvmx(iv),ivx,nv),
- * .false.,icashft)
- end if
- end if
-c
-c Turn beam off?
-c
- if (beamon1(ivx) .and. ibm2(ivx,ibmcnt1(ivx)).eq.ip) then
- beamon1(ivx) = .false.
- ibmcnt1(ivx) = ibmcnt1(ivx)+1
- end if
-c
-c Remember, rpts & internal sigs can only come at start of (internal) block
-c
- isacc = iand(nacc(ivx,ip),3).gt.0
- * .and. .not.btest(nacc(ivx,ip),17)
- * .and. .not.btest(ipl(ivx,ip),10)
-c
-c i.e., do not set for chord. Now check for "(" as ornament on main note,
-c
-c!!! Need to do this for chord notes too. Maybe in chkarp?
-c
- isaccs = isacc .or. btest(iornq(ivx,ip),0)
-c
-c 5/15/02 Add check for ) ornament of prior note.
-c 5/16 Nope...fails when grace intervenes.
-c if (ip .gt. 1) then
-c isaccs = isaccs .or. btest(iornq(ivx,ip-1),13)
-c end if
- isarp = btest(iornq(ivx,ip),27)
- iscacc = .false.
- if (btest(ipl(ivx,ip),10)) then
-c
-c There is a chord here; check for arpeggios and accidentals. Note accid shifts are
-c not of concern here, only whether there's an accid, whick causes iscacc=.true.
-c
- iscacc = igetbits(nacc(ivx,ip),3,0).gt.0 .and.
- * .not.btest(nacc(ivx,ip),17)
- call chkarp(ncrd,icrdat,ivx,ip,iscacc,isarp)
- end if
-c
-c When we get motivated, will do spacing for arpeggios here.
-c
- if (ivx.eq.1 .and. iand(islur(ivx,ip),96).gt.0)
- * itrpt = nint(to(in))
- issig = btest(ipl(ivx,ip),28)
- if (ivx.eq.1 .and. issig) itsig = nint(to(in))
- isgrace = btest(islur(ivx,ip),4) .and.
- * .not.btest(ipl(ivx,ip),29) .and. .not.btest(ipl(ivx,ip),31)
- isgaft = .false.
- if (ip .gt. 1) then
- xnd = tnote(ipl2(ivx,ip-1))
- isgaft = btest(ipl(ivx,ip-1),29) .or. btest(ipl(ivx,ip-1),31)
- isgrace = isgrace .or. isgaft
- end if
- iscln = isclef .and. btest(islur(ivx,ip),11)
-c
-c Is prev. note non-beamed, up-stemmed, & flagged? Recall if ip>1, have nd
-c
- isflag = ip.gt.1 .and. xnd.gt.tol .and. xnd.lt.16.-tol
- if (isflag)
- * isflag = .not.btest(irest(ivx,ip-1),0)
- * .and. udqq(nolev(ivx,ip-1),
- * ncmid(iv,ip-1),islur(ivx,ip-1),nvmx(iv),ivx,nv).eq.'u'
- if (isflag) then
- do 116 ibmchk = 1 , numbms(ivx)
- if (ip-1 .lt. ibm1(ivx,ibmchk)) then
- go to 117
-c
-c Add check for non-beamed xtuplets. May be problem with stem direction.
-c
- else if (ip-1.le.ibm2(ivx,ibmchk) .and.
- * .not.btest(islur(ivx,ibm1(ivx,ibmchk)),18)) then
- isflag = .false.
- go to 117
- end if
-116 continue
- end if
-117 continue
-c
-c If isflag, then won't need to check for dot on prev. note.
-c
-c 5/16/02 ??? Try using this for ) ornament.
-c
- isflag = isflag .or. btest(iornq(ivx,ip-1),13)
- isdot = ip.gt.1
- if (isdot) isdot = isdotted(nodur,ivx,ip-1)
- isrshft = ip .gt. 1
- if (isrshft) isrshft = btest(irest(ivx,ip-1),20)
- if (.not.(isaccs.or.isgrace.or.iscln.or.isflag.or.isrshft.or.
- * isdot.or.btest(iornq(ivx,ip),26).or.
- * btest(irest(ivx,ip),21).or.isarp.or.
- * btest(irest(ivx,ip),27).or.iscacc)) go to 111
-c
-c Here is an accid,grace,clef,flag,rtshft,dot,udsp,arpeg,left-shift.
-c Compute pts, the total occupied space including prior notehead.
-c
-c 130324
-c wheadpt1 = wheadpt*fullsize(iv)
- wheadpt1 = wheadpt*fullsize(instno(iv))
- pts = wheadpt1
-c
-c Set up for possible cautionary accidental here
-c
- if (isaccs .or. iscacc) then
- if (.not.btest(iornq(ivx,ip),31)) then
- taccfac = accfac
- else
- taccfac = 1.4*accfac ! cautionary accidental
- end if
- end if
- if (isgrace) then
- secondgrace = .false.
- do 122 ig = 1 , ngrace
- if (.not. isgaft) then
- if (ipg(ig).eq.ip .and. ivg(ig).eq.ivx) go to 123
- else if (ip .gt. 1) then
- if (ipg(ig).eq.ip-1 .and. ivg(ig).eq.ivx) go to 123
- end if
-122 continue
- print*,'Problem finding grace index in makeabar'
- stop
-123 continue
-c
-c wgr = distance to backspace (in headwidths), less main acc.
-c ptgr = same in pts,+ main acc. Not used for after-grace. Distance to backspace.
-c spgr = total space needed (w/o main acc).
-c Also, spgr is same for b4 or after, but xb4fac-space will be in diff. place.
-c
- if (nng(ig) .eq. 1) then
- wgr = grafac
- if (multg(ig) .eq. 0) wgr = wgr-.4
- else
- wgr = nng(ig)*emgfac
- do 126 ing = 2 , nng(ig)
- if (naccg(ngstrt(ig)-1+ing) .gt. 0) wgr = wgr+acgfac
-126 continue
- end if
- if (graspace(ig) .gt. 0.) then
-c
-c User-defined space before grace
-c
- wgr = wgr+graspace(ig)
- end if
- ptgr(ig) = wgr*wheadpt1
- spgr = ptgr(ig)+xb4fac*wheadpt1
-c
-c!!! May need to mod for chord accid's
-c
- if (isaccs .or. iscacc) ptgr(ig) = ptgr(ig) + taccfac*wheadpt1
- if (naccg(ngstrt(ig)) .gt. 0) spgr = spgr+wheadpt1*agc1fac
- pts = pts+spgr
-c
-c Special check for after-grace on ip-1 and normal on ip. Must go back thru
-c loop again for the normal grace.
-c
- if (isgaft .and. ig.lt.ngrace .and. .not.secondgrace) then
- if (ipg(ig+1).eq.ip) then
- secondgrace = .true.
- ig = ig+1
- go to 123
- end if
- end if
- end if
- if (iscln) then
- pts = pts+clefac*wheadpt1
-c
-c How far to backspace when printing the clef
-c
- ptclef(ivx) = 0.
-c
-c!!! May need to mod for chord accid's
-c
- if (isaccs .or. iscacc)
- * ptclef(ivx) = ptclef(ivx)+taccfac*wheadpt1
- if (isgrace) ptclef(ivx) = ptclef(ivx)+spgr
- end if
- if (isrshft) then
- pts = pts+rtshfac*wheadpt1
- else if (isflag) then
- pts = pts+flagfac*wheadpt1
- else if (isdot) then
- pts = pts+dotfac*wheadpt1
- end if
- if (abs(to(in)-itrpt) .lt. tol) then
-c
-c Repeat, need a little extra space
-c
- pts = pts+dotsfac*wheadpt1
- end if
- if (isarp) then
- pts = pts+arpfac*wheadpt1
- end if
-c
-c Add in padding space
-c
- pts = pts+xspfac*wheadpt1
-c
-c Now done with all items needing space except accidentals,
-c accidental shifts, and left-notehead-shifts, and will later
-c subtract a notehead if at start of bar.
-c
-c Get available space in elemskips (esk)
-c
- isfirst = ip.eq.1 .or. abs(to(in)-itrpt).lt.tol .or.
- * abs(to(in)-itsig).lt.tol
- if (isfirst) then
-c
-c At start of bar or after repeat sign or new signature
-c
- if (abs(to(in)-itsig).lt.tol) then
- esk = 0.
- else
- esk = fbar
- end if
- else
-c
-c Not 1st note of bar
-c
- esk = eskz(ivx,ip)-eskz(ivx,ip-1)
- end if
- if (isgrace) then
-c
-c Since graces can be very long, cannot assume no interference if prior
-c note uses >1 noteskip. So must get elsk's back to prior note, whether or
-c not it used only one noteskip.
-c <<But if it was xtup. don't need to call eskb4.>>????
-c
-c 10/8/05 Kluge to not zero out esk if in xtup
-c
- esksav = esk
- if ((ip.le.2 .or. nodur(ivx,max(1,ip-2)).gt.0) .and.
-c * to(in).ne.itsig)
- * abs(to(in)-itsig).gt.tol)
- * call eskb4(ip,ivx,in,ib,space,tstart,fbar,itrpt,esk)
- if (abs(esk) .lt. tol) esk = esksav
- end if
-c
-c Done getting available elemskips. Remove headwidth if first. Must do here
-c rather than earlier since check uses isfirst
-c
- if (isfirst) pts = pts-wheadpt1
-c
-c Deal with accidental shifts and left-notehead shifts
-c
- if (btest(ipl(ivx,ip),10)) then
-c
-c In a chord
-c
- ptsl = 0.
- if (btest(irest(ivx,ip),27)) ptsl = wheadpt1
- ptsadd = max(ptsl,icashft*.05*wheadpt1)
-c
-c Note: may have icashft=-20000 (if shftmin=-1000 in crdacc) but that's OK
-c
- else
-c
-c Not in a chord
-c
- ihshft = 0
- if (isaccs) then
- ihshft = igetbits(nacc(ivx,ip),7,10)
-c if (ihshft .ne. 0) ihshft = max(0,64-ihshft)
- if (ihshft .ne. 0) ihshft = max(0,107-ihshft)
- end if
-c
-c Check for left-shifted main note
-c
- if (btest(ipl(ivx,ip),8)) ihshft = max(20,ihshft)
- ptsadd = ihshft*.05*wheadpt1
- end if
- pts = pts+ptsadd
- if (isgrace) ptgr(ig) = ptgr(ig)+ptsadd
- if (iscln) ptclef(ivx) = ptclef(ivx)+ptsadd
-c
-c Left-shifted, non-chord note before?
-c
- if (ip .gt. 1) then
- if (.not.btest(ipl(ivx,ip-1),10) .and.
- * btest(irest(ivx,ip-1),27)) pts = pts-wheadpt1
- end if
-c
-c Try big accidentals first
-c
- ptbneed = pts
- if (isaccs .or. iscacc) then
- ptbneed = ptbneed+wheadpt1*bacfac
- end if
- if (poefa(iline)*poenom*esk .gt. ptbneed) then
-c
-c Set flag for big accidental
-c
- if (isacc) nacc(ivx,ip) = ibset(nacc(ivx,ip),3)
- go to 99
- end if
-c
-c Cannot use big, so try small
-c
- ptsneed = pts
- if (isaccs .or. iscacc) then
- ptsneed = ptsneed+taccfac*wheadpt1
- end if
- if (poefa(iline)*poenom*esk .lt. ptsneed) then
- call addask(to(in),ptsneed,poefa(iline)*esk,
- * fixednew,scaldold,0.,poefa(iline),.false.)
- end if
-99 continue
- if (btest(iornq(ivx,ip),26)) then
-c
-c User-defined space. Warning, "zero" may change value in addask!
-c
- zero = 0.
- call addask(to(in),ptsneed,zero,
- * fixednew,scaldold,tglp1,1.,.true.)
- end if
-c
-c End of big manual loop over "in" for accidental checking
-c
- go to 111
-112 continue
-c
-c End of ask analysis for this block.
-c
-c Adjust eskz if there are added spaces. Corrects length of xtup brackets.
-c
- if (naskb.gt.0) call adjusteskz(ib,istart,poenom)
-c
-c Check for internal repeat or sig change.
-c
- if (ib.gt.1 .and. ivxo(istart(ib)).eq.1) then
- iirpt = iand(islur(1,ipo(istart(ib))),67109216)
- if (iirpt .gt. 0) then
-c
-c Internal repeat
-c
- if (islast) write(11,'(a)')sq//'advance'//sq//'barno-1%'
- if (iirpt .eq. 96) then
- if (islast) write(11,'(a)')sq//'leftrightrepeat'
- fixednew = fixednew+lrrptfac*wheadpt
- else if (btest(iirpt,5)) then
- if (islast) write(11,'(a)')sq//'leftrepeat'
- fixednew = fixednew+rptfac*wheadpt
- else if (btest(iirpt,6)) then
- if (islast) write(11,'(a)')sq//'rightrepeat'
- fixednew = fixednew+rptfac*wheadpt
- else if (btest(iirpt,8)) then
- if (islast) write(11,'(a)')sq//'doublebar'
- else
- print*,'Unexpected mid-bar repeat command R*'
- call stop1()
- end if
- scaldold = scaldold-fbar
- end if
- if (btest(ipl(1,ipo(istart(ib))),28)) then
-c
-c Internal signature change.
-c
- notexq = sq//'generalsignature{'
- lnote = 18
- if (isig .lt. 0) then
- notexq = notexq(1:lnote)//'-'
- lnote = lnote+1
- end if
- if (islast) write(11,'(a)')notexq(1:lnote)
- * //chax(48+abs(isig))//'}%'
- if (islast .and. ignorenats)
- * write(11,'(a)')sq//'ignorenats%'
- if (islast) write(11,'(a)')sq//'zchangecontext'//sq
- * //'addspace{-.5'//sq//'afterruleskip}%'
- lnote = 0
- end if
- end if
- flgndb = .false.
-c
-c Done with start-of-block stuff. Begin main loop over voices.
-c
- do 11 iv = 1 , nv
- do 11 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- icm = midchan(iv,kv)
-c
-c A rather klugey way to set flag for figure in this voice
-c Must always check figbass before figchk.
-c
- if (figbass) then
- ivf = 0
- if (ivx .eq. 1) then
- ivf = 1
- else if (ivx .eq. ivxfig2) then
- ivf = 2
- end if
- if (ivf.gt.0) figchk(ivf) = nfigs(ivf).gt.0
- end if
- if (ivx .gt. 1) then
- if (ivx .le. nv) then
- call addstr(sepsymq(iv-1),1,soutq,lsout)
- else
- call addstr(sq//'nextvoice',10,soutq,lsout)
- end if
- end if
- if (ihdht.gt.0 .and. ivx.eq.nv) then
-c
-c Write header. First adjust height if needed to miss barno.
-c
- if (bar1syst .and. iline.ne.1) then
- ihdht = 15+irzbnd+isnx
- end if
-c
-c Add user-defined vertical shift
-c
- ihdht = ihdht+ihdvrt
- lchead = lenstr(headrq,80)
- notexq = sq//'zcharnote{'
- write(notexq(12:13),'(i2)')ihdht
- notexq = notexq(1:13)//'}{'//sq//'bigfont'//sq//'kern-30pt '
- call addstr(notexq,34,soutq,lsout)
- call addstr(headrq(1:lchead)//'}',1+lchead,soutq,lsout)
- ihdht = 0
- end if
- if (lower .and. ivx.eq.nv) then
- lclow = lenstr(lowerq,80)
- call addstr(sq//'zcharnote{-6}{'//
- * sq//'tempo'//sq//'kern-10pt '//
- * lowerq(1:lclow)//'}',33+lclow,soutq,lsout)
- lower=.false.
- end if
- tnow = tstart(ib)
- nofirst = .true.
-c
-c Done setting up voice ivx for start of block ib. Loop over notes in voice.
-c
- do 10 jn = istart(ib), istop(ib)
- if (ivxo(jn) .ne. ivx) go to 10
- ip = ipo(jn)
-c
-c May have problem with not initializing islhgt, so do it here
-c
- islhgt = 0
-c
- if (nofirst) then
- noctup = 0
- if (ncmid(iv,ip) .eq. 23) noctup = -2
- nofirst = .false.
- end if
-c
-c Check for internal floating figure (before last note of group).
-c
-12 if (figbass) then
- if (ivx.eq.1 .or. ivx.eq.ivxfig2) then
- ivf = 1
- if (ivx .gt. 1) ivf = 2
- if (figchk(ivf) .and. itfig(ivf,ifig(ivf)).lt.tnow-tol)
- * then
-c
-c Bypassed figure location. Backup, place fig, return.
-c
- offnsk = (tnow-itfig(ivf,ifig(ivf)))/space(ib)
- call putfig(ivf,ifig(ivf),offnsk,figchk(ivf),soutq,
- * lsout)
- go to 12
- end if
- end if
- end if
-c
-c Put in \sk if needed
-c
- if (to(jn) .gt. tnow+tol) then
- call addstr(sq//'sk',3,soutq,lsout)
- tnow = tnow+space(ib)
- go to 12
- end if
-c
-c Check for user-defined shifts
-c
- if (btest(irest(ivx,ip),15).or.btest(irest(ivx,ip),16))
- * call putshft(ivx,.true.,soutq,lsout)
-21 if (iaskb(ivx).le.naskb .and.
- * tnow.gt.task(iaskb(ivx))-tol) then
- if (task(iaskb(ivx)) .gt. tstart(ib)-tol) then
-c
-c Insert placeholder for accidental skip
-c
- call addstr(sq//'ask ',9,soutq,lsout)
- nasksys = nasksys+1
- wasksys(nasksys) = wask(iaskb(ivx))
- if (wask(iaskb(ivx)) .gt. 0.) then
- elasksys(nasksys) = elask(iaskb(ivx))
- else
-c
-c This is a signal to permit negative ask's. Should really have elask>=0.
-c
- elasksys(nasksys) = -elask(iaskb(ivx))
- end if
- end if
-c
-c May have skipped some task's in earlier blocks (due to void voice)
-c
- iaskb(ivx) = iaskb(ivx)+1
- go to 21
- end if
- if (figbass) then
- if (ivx.eq.1 .or. ivx.eq.ivxfig2) then
- ivf = 1
- if (ivx .gt. 1) ivf = 2
- if (figchk(ivf) .and.
- * abs(itfig(ivf,ifig(ivf))-tnow).lt.tol) then
-c
-c Figure on a note. NB: later special check for late figs.
-c
- call putfig(ivf,ifig(ivf),0.,figchk(ivf),soutq,lsout)
- end if
- end if
- end if
-c
-c Check for new clef here.
-c
- if (isclef .and. btest(islur(ivx,ip),11)) then
- if (ptclef(iv) .gt. 0.) then
- notexq = sq//'off{-'
- if (ptclef(iv) .lt. 9.95) then
- write(notexq(7:9),'(f3.1)')ptclef(iv)
- lnote = 9
- else
- write(notexq(7:10),'(f4.1)')ptclef(iv)
- lnote = 10
- end if
- notexq = notexq(1:lnote)//'pt}'
- lnote = lnote+3
- call addstr(notexq,lnote,soutq,lsout)
- end if
- call clefsym(islur(iv,ip),notexq,lnote,nclef)
-c
-c 151220 If clef is treblelowoct, change '0' in pos'n 9 to '8'
-c
- if (btest(ipl(ivx,ip),2)) notexq =
- * notexq(1:8)//'8'//notexq(10:10)
- call addstr(notexq,lnote,soutq,lsout)
- if (ptclef(iv) .gt. 0.) then
- notexq = sq//'off{'
- if (ptclef(iv) .lt. 9.95) then
- write(notexq(6:8),'(f3.1)')ptclef(iv)
- lnote = 8
- else
- write(notexq(6:9),'(f4.1)')ptclef(iv)
- lnote = 9
- end if
- notexq = notexq(1:lnote)//'pt}'
- lnote = lnote+3
- call addstr(notexq,lnote,soutq,lsout)
- end if
- end if
-c
-c Checking for literal TeX string BEFORE starting beams!!
-c
- if (btest(islur(ivx,ip),16)) then
- do 124 il = 1 , nlit
- if (iplit(il).eq.ip .and. ivlit(il).eq.ivx) go to 125
-124 continue
- print*,'Problem finding index for literal string'
- call stop1()
-125 continue
-c
-c Write a type 1 tex string.
-c
- if (lenlit(il) .lt. 71) then
-c
-c Add normally
-c
- call addstr(litq(il),lenlit(il),soutq,lsout)
- else
-c
-c Longer than 71. Write souq, Write string, start new soutq.
-c
- if (islast) write(11,'(a)')soutq(1:lsout)//'%'
- if (islast) write(11,'(a)')litq(il)(1:lenlit(il))//'%'
- lsout = 0
- end if
- end if
-c
-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),
- call putarp(tnow,ivx,ip,nolev(ivx,ip),ncmid(iv,ip),
- * soutq,lsout)
- end if
-c
-c See if a beam starts here
-c
- if ((numbms(ivx).gt.0 .and. ibmcnt(ivx).le.numbms(ivx)
- * .and. ibm1(ivx,ibmcnt(ivx)) .eq. ip) .or.
- * btest(nacc(ivx,ip),21)) then
- if (.not.btest(irest(ivx,ip),24)) then
-c
-c Not a jump start
-c
- if (kbdrests .and. btest(irest(ivx,ip),0) .and.
- * .not.btest(islur(ivx,ip),29).and. nvmx(iv).eq.2 .and.
- * nolev(ivx,ip).le.50)
- * call chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev,
- * ivmx,nib,nv,ibar,tnow,tol,nodur,2,levtopr,levbotr,
- * mult,ipl)
- call beamstrt(notexq,lnote,nornb,ihornb,space,squez,ib)
-c
-c Shift beam start if notehead was shifted
-c
- if (btest(ipl(ivx,ip),8)) then
- call addstr(sq//'loff{',6,soutq,lsout)
- else if (btest(ipl(ivx,ip),9)) then
- call addstr(sq//'roff{',6,soutq,lsout)
- end if
- if (lnote .gt. 0) call addstr(notexq,lnote,soutq,lsout)
- if (btest(ipl(ivx,ip),8) .or.
- * btest(ipl(ivx,ip),9)) call addstr('}',1,soutq,lsout)
- else
-c
-c Jump start. Set marker for second part of a jump beam. Note ivbj2 was set
-c to 0 at end of first part of jump beam
-c
- ivbj2 = ivx
-c
-c Check for xtup since we bypassed beamstrt wherein vxtup is normally set
-c
- if (btest(irest(ivx,ip),28) .and. ixrest(ivx).ne.2)
- * vxtup(ivx) = .true.
-c
-c Since beamstrt is not called, and drawbm is normally set there, need to set
-c it here. This could cause problems if someone tries a staff-jumping,
-c unbarred beam, which I'll deal with when it comes up.
-c
- drawbm(ivx) = .true.
- end if
- if (ixrest(ivx) .eq. 0) then
- beamon(ivx) = .true.
- bspend = .true.
- if (.not.btest(irest(ivx,ip),24))bspend = .true.
- end if
- end if
-c
-c Setup for chords and possible slurs in chords
-c
- if (btest(ipl(ivx,ip),10)) then
-c
-c There is a chord on this note. Just rerun precrd. Klunky, but saves
-c me from tracking down errors instroduced when I moved 1st call
-c forward for accidental spacing analysis.
-c
- if (beamon(ivx)) then
- call precrd(ivx,ip,nolev(ivx,ip),nacc(ivx,ip),
- * ipl(ivx,ip),irest(ivx,ip),ulq(ivx,ibmcnt(ivx)),
- * .true.,icashft)
- else
- call precrd(ivx,ip,nolev(ivx,ip),nacc(ivx,ip),
- * ipl(ivx,ip),irest(ivx,ip),udqq(nolev(ivx,ip),
- * ncmid(iv,ip),islur(ivx,ip),nvmx(iv),ivx,nv),
- * .true.,icashft)
- end if
- end if
-c
-c Is there slur or grace activity?
-c
- isgrace = btest(islur(ivx,ip),4)
- if (ip .gt. 1) isgrace = isgrace.or.btest(ipl(ivx,ip-1),31)
-c
-c isgrace if not 1st note in bar and previous note has Way-after grace.
-c
- if (btest(islur(ivx,ip),0) .or. isgrace) then
- if (btest(islur(ivx,ip),0)) then
- if (fontslur) then
-c
-c Call routine for non-postscript slurs
-c
- call doslur(nolev(ivx,ip),isdat1,isdat2,isdat3,nsdat,
- * ip,iv,kv,nv,beamon(ivx),ncmid(iv,ip),soutq,lsout,
- * ulq(ivx,ibmcnt(ivx)),islur(ivx,ip),ipl(ivx,ip),
- * iornq(ivx,ip),islhgt,tnote(ipl2(ivx,ip)),
- * nacc(ivx,ip))
- else
-c
-c Postscript slurs
-c
- call dopsslur(nolev(ivx,ip),isdat1,isdat2,isdat3,
- * isdat4,nsdat,
- * ip,iv,kv,nv,beamon(ivx),ncmid(iv,ip),soutq,lsout,
- * ulq(ivx,ibmcnt(ivx)),islur(ivx,ip),ipl(ivx,ip),
- * iornq(ivx,ip),islhgt,tnote(ipl2(ivx,ip)),
- * nacc(ivx,ip))
- end if
- end if
- if (isgrace) then
-c
-c Grace note.
-c
- iphold = ip
- isgrace = .false.
- if (ip .gt. 1) isgrace = btest(ipl(ivx,ip-1),31)
- if (isgrace) iphold = iphold-1
- isgrace = isgrace .or. (.not.btest(ipl(ivx,ip),31)
- * .and..not.btest(ipl(ivx,ip),29))
-c
-c Place grace now if (a) Way-after from prev note and ip>1 or (b) Pre-grace
-c on current note. Do A-grace on current note, and W-grace at barend, later.
-c
- if (isgrace) then
- call dograce(ivx,iphold,ptgr,soutq,lsout,ncmid(iv,ip),
- * nacc(ivx,ip),ig,ipl(ivx,iphold),.false.,
- * beamon(ivx),nolev(ivx,ip),ncmid(iv,ip),
- * islur(ivx,ip),nvmx(iv),nv,ibmcnt(ivx),
-c 130324
-c * tnote(ipl2(ivx,ip)),ulq)
- * tnote(ipl2(ivx,ip)),ulq,instno(iv))
- if (slurg(ig)) then
-c
-c Terminate slur started in dograce. Get direction of main note stem
-c
- if (.not.beamon(ivx)) then
-c
-c Separate note. Get stem direction.
-c
- stemup = udqq(nolev(ivx,ip),ncmid(iv,ip),
- * islur(ivx,ip),nvmx(iv),ivx,nv) .eq. 'u'
- else
-c
-c In a beam
-c
- stemup = ulq(ivx,ibmcnt(ivx)) .eq. 'u'
- end if
-c
-c Stop the shift if whole note
-c
- stemup = stemup .or.
- * tnote(ipl2(ivx,ip)).gt.63
- call endslur(stemup,.not.upg(ig),nolev(ivx,ip),0,
- * ndxslur,0,ncmid(iv,ip),soutq,lsout,fontslur)
- end if
- end if
- end if
- if (btest(iornq(ivx,ip),24)) then
-c
-c Start slur on main note for After- or Way-after-grace.
-c
-c???? ndxslur = log2(33554431-listslur)
- ndxslur = log2(16777215-listslur)
-c
-c Get note name
-c
- call notefq(noteq,lnoten,nolev(ivx,ip),ncmid(iv,ip))
-c
-c Get slur direction
-c
- slurudq = 'u'
- if (.not.beamon(ivx)) then
- if (udqq(nolev(ivx,ip),ncmid(iv,ip),islur(ivx,ip),
- * nvmx(iv),ivx,nv) .eq. 'u') slurudq = 'd'
- else
- if (ulq(ivx,ibmcnt(ivx)) .eq. 'u') slurudq = 'd'
- end if
-c
-cc Replace ndxslur by 11-ndxslur when printing only.
-c Replace ndxslur by 23-ndxslur when printing only.
-c
-c if (11-ndxslur .lt. 10) then
- if (23-ndxslur .lt. 10) then
-c notexq = sq//'islur'//slurudq//chax(59-ndxslur)
- notexq = sq//'islur'//slurudq//chax(71-ndxslur)
- * //noteq(1:lnoten)
- call addstr(notexq,8+lnoten,soutq,lsout)
- else if (23-ndxslur .lt. 20) then
- notexq = sq//'islur'//slurudq//'{1'//chax(61-ndxslur)
- * //'}'//noteq(1:lnoten)
- call addstr(notexq,11+lnoten,soutq,lsout)
- else
- notexq = sq//'islur'//slurudq//'{2'//chax(51-ndxslur)
- * //'}'//noteq(1:lnoten)
- call addstr(notexq,11+lnoten,soutq,lsout)
- end if
-c call setbits(ipl(ivx,ip),4,23,ndxslur)
- call setbits(ipl(ivx,ip),5,23,ndxslur)
- if (btest(ipl(ivx,ip),31))
-c
-c Starting slur on W-grace on THIS note. Record ndxslur.
-c
- * listslur = ibset(listslur,ndxslur)
- end if
- end if
-c
-c Process dynamic marks
-c
- if (btest(irest(ivx,ip),26)) then
- call dodyn(ivx,ip,
- * nolev(ivx,ip),ncmid(iv,ip),ipl(ivx,ip),islur(ivx,ip),
- * irest(ivx,ip),nvmx(iv),nv,beamon(ivx),ihornb,nornb,ulq,
- * ibmcnt(ivx),nodur(ivx,ip).ge.64,soutq,lsout)
- end if
-c
-c Check for chord notes. Moved up from below, 10/27/96 so chord orns done 1st.
-c
- if (btest(ipl(ivx,ip),10)) then
-c
-c Need a duration to set type of note head
-c
-c Clumsy test, but vxtup is not set until main note is processed.
-c
- if (.not.(vxtup(ivx).or.btest(irest(ivx,ip),28))) then
- nodu = nodur(ivx,ip)
- else if (btest(irest(ivx,ip),2) .or.
- * (ip.gt.1.and.btest(irest(ivx,ip-1),2))) then
-c
-c In a 2-note tremolo
-c
- if (btest(irest(ivx,ip),2)) then
-c
-c First note of tremolo, duration is on next note
-c
- nodu = nodur(ivx,ip+1)
- else
- nodu = nodur(ivx,ip)
- end if
- else if (iand(mult(ivx,ip),15)-8 .lt. 0) then
- nodu = 32
- else
- nodu = 16
- end if
- call docrd(ivx,ip,nodu,ncmid(iv,ip),iv,tnow,soutq,lsout,
- * ulq,ibmcnt(ivx),islur(ivx,ip),nvmx(iv),nv,
- * beamon(ivx),nolev(ivx,ip),ihornb,nornb,stemlen,
- * btest(nacc(ivx,ip),27),nacc(ivx,ip),
- * irest)
- end if
-c
-c Now that chords are done, add stuff to midi file
-c
- if (ismidi) call addmidi(icm,
-c 130316
- * nolev(ivx,ip)+miditran(instno(iv)),
- * iand(nacc(ivx,ip),7),midisig,
- * tnote(ipl2(ivx,ip)),
- * btest(irest(ivx,ip),0),.false.)
-c
-c Check for breath or caesura
-c
- if (btest(iornq(ivx,ip),28)) then
- call putcb(ivx,ip,notexq,lnote)
- call addstr(notexq,lnote,soutq,lsout)
- end if
-c
-c Check for main-note ornaments. ')' on dotted notes go in with note, not here.
-c Bits 0-13: (stmgx+Tupf._) ; 14: Down fermata, was F
-c 15: Trill w/o "tr", was U , 16-18 edit. accid., 19-21 TBD
-c
-c isacc = iand(iornq(ivx,ip),4194287) .gt. 0
-c isacc = iand(iornq(ivx,ip),541065199) .gt. 0
- isacc = iand(iornq(ivx,ip),1614807023) .gt. 0
-c
-c isacc=.true. if any ornament except segno
-c
- if (btest(iornq(ivx,ip),13) .and. nodur(ivx,ip).gt.0) then
-c
-c If ). is only ornament, bypass. If with others, temporarirly zero the bit.
-c
- if (2**log2(nodur(ivx,ip)) .ne. nodur(ivx,ip)) then
- if (iand(iornq(ivx,ip),516079) .eq. 0) then
-c
-c ). is the only non-segno ornament
-c
- isacc = .false.
- else
-c
-c There are other ornaments in addition
-c
- rpndot = .true.
- iornq(ivx,ip) = ibclr(iornq(ivx,ip),13)
- end if
- end if
- end if
- if (isacc .and. .not.cwrferm(ivx)) then
-c
-c Check for centered whole-bar rest with fermata (bits 10 or 14).
-c
- if (iand(iornq(ivx,ip),17408).gt.0
- * .and. btest(irest(ivx,ip),0) .and.
- * nodur(ivx,ip).eq.lenbar .and.
- * .not.(firstgulp.and.ibar.eq.1.and.lenb0.gt.0)) then
- cwrferm(ivx) = .true.
- go to 30
- end if
- call putorn(iornq(ivx,ip),nolev(ivx,ip),nolev(ivx,ip),
- * nodur(ivx,ip),nornb,ulq,ibmcnt(ivx),ivx,ncmid(iv,ip),
- * islur(ivx,ip),nvmx(iv),nv,ihornb,stemlen,
- * notexq,lnote,ip,islhgt,beamon(ivx),
- * btest(ipl(ivx,ip),10))
- call addstr(notexq,lnote,soutq,lsout)
- end if
- if (rpndot) then
- iornq(ivx,ip) = ibset(iornq(ivx,ip),13)
- rpndot = .false.
- end if
-30 continue
-c
-c Check for main note accidental
-c
- if (iand(nacc(ivx,ip),3).gt.0 .and.
- * .not.btest(nacc(ivx,ip),17)) then
- ihshft = igetbits(nacc(ivx,ip),7,10)
- if (ihshft .ne. 0) ihshft=ihshft-107
- if (.not.btest(ipl(ivx,ip),10) .and. btest(ipl(ivx,ip),8))
-c
-c Not a chord, and left-shifted main note, so left-shift accid
-c
- * ihshft = ihshft-20
- call doacc(ihshft,igetbits(nacc(ivx,ip),6,4),
- * notexq,lnote,nacc(ivx,ip),nolev(ivx,ip),ncmid(iv,ip),
- * btest(irest(ivx,ip),31))
- call addstr(notexq,lnote,soutq,lsout)
- end if
-c
-c Lower dot for lower-voice notes. Conditions are:
-c 1. Dotted time value
-c 2. Lower voice of two
-c 3. Note is on a line
-c 4. Not a rest
-c. 5. Flag (lowdot) is set to true
-c 6. Not in an xtuplet
-c
- if (lowdot .and. nvmx(iv).eq.2 .and. ivx.le.nv
- * .and. nodur(ivx,ip).ne.0) then
- if (.not.btest(irest(ivx,ip),0) .and.
- * 2**log2(nodur(ivx,ip)).ne.nodur(ivx,ip) .and.
- * mod(nolev(ivx,ip)-ncmid(ivx,ip),2).eq.0) then
- if (btest(irest(ivx,ip),19)) then
-c
-c Note already in movdot list. Drop by 2.
-c
- updot(ivx,ndotmv(ivx)+1) =
- * updot(ivx,ndotmv(ivx)+1)-2.
- else
-c
-c Not in list so just move it right now
-c
- call dotmov(-2.,0.,soutq,lsout,
- * igetbits(islur(ivx,ip),1,3))
- end if
- end if
- end if
-c
-c Check for dotted main notes with moved dots. Chord notes done elsewhere.
-c Added check rules out special chordal 2nds, but later must check
-c substituted chord note for dot shift that now applies to main note.
-c
- if (btest(irest(ivx,ip),19)) then
- ndotmv(ivx) = ndotmv(ivx)+1
- call dotmov(updot(ivx,ndotmv(ivx)),rtdot(ivx,ndotmv(ivx)),
- * soutq,lsout,igetbits(islur(ivx,ip),1,3))
- end if
-c
-c Stemlength changes
-c
- if (btest(mult(ivx,ip),27)) then
- dstemlen = igetbits(mult(ivx,ip),6,10)*.5-4.
- call addstr(sq//'stdstemfalse',13,soutq,lsout)
- stemshort = 4.66+.667*dstemlen
- call addstr(sq//'stemlength{',12,soutq,lsout)
- 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))
-c
-c Cancel shortening. Looks like it gets automatically restored if new inst. or
-c new line, so no need to worry about affecting other lines
-c
- * call addstr(sq//'stemlength{4.66}',17,soutq,lsout)
- end if
-c
-c Zero out slur-height marker for raising ornaments
-c
- islhgt = 0
-c
-c Now start with spacing notes. Is a beam start pending?
-c
- if (bspend .and.
- * ibm2(ivx,ibmcnt(ivx)).gt.ibm1(ivx,ibmcnt(ivx))) then
- if (ixrest(ivx) .eq. 4) then
-c
-c Special path for single note at end of otherwise beamed xtup
-c
- ixrest(ivx) = 0
- else
- if (kbdrests .and. btest(irest(ivx,ip),0) .and.
- * .not.btest(islur(ivx,ip),29).and. nvmx(iv).eq.2 .and.
- * nolev(ivx,ip).le.50)
- * call chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev,
- * ivmx,nib,nv,ibar,tnow,tol,nodur,2,levtopr,levbotr,
- * mult,ipl)
- if (btest(islur(ivx,ip),29)
- * .and.btest(irest(ivx,ip),24)) then
- notexq = chax(92)//'sk'
- lnote = 3
- else
- call beamn1(notexq,lnote)
-c if (isbjmp .and.
- if (isbjmp .and. ivbj2.ne.0 .and.
- * iand(mult(ivx,ip),15)-8 .gt. multbj1) then
-c
-c Need to increase multiplicity at the beam jump
-c
-c ibmcnt was increased by 1 at the end of first seg of jump beam!?
-c Try adding e.g. \nbbu1 if needed to increase multiplicity. Add
-c character in reverse order to start of notexq.
-c
- if (ivbj1 .lt. 9) then
- notexq = char(48+ivbj1)//notexq(1:lnote)
- lnote = lnote+1
- else
- notexq = '{1'//char(38+ivbj1)//'}'
- * //notexq(1:lnote)
- lnote = lnote+4
- end if
- notexq = 'bb'//ulq(ivbj1,ibmcnt(ivbj1)-1)
- * //notexq(1:lnote)
- lnote = lnote+3
- if (iand(15,mult(ivx,ip))-8 .eq. 3) then
- notexq = 'b'//notexq(1:lnote)
- lnote = lnote+1
- end if
- notexq = sq//'n'//notexq(1:lnote)
- lnote = lnote+2
- end if
- end if
- end if
- bspend = .false.
-c
-c Is a beam ending?
-c
- else if (numbms(ivx).gt.0 .and. ibmcnt(ivx).le.numbms(ivx)
- * .and. (ibm2(ivx,ibmcnt(ivx)).eq.ip .or.
- * btest(nacc(ivx,ip),20))) then
- if (bspend) then
-c
-c Must be a single-note ending of a jump-beam
-c
- bspend = .false.
- end if
- call beamend(notexq,lnote)
- if (isbjmp .and. ivx.eq.ivbj1) then
-c
-c Jump beam segment is ending, check if multiplicity DECREASES
-c
- if (space(ib+1) .gt. space(ib)) then
-c
-c Decrease multiplicity 3-1, 3-2, or 2-1. Spaces are 2,4, or 8.
-c
- if (ivx .lt. 10) then
- ivxq = char(ivx+48)
- livx = 1
- else
- ivxq = '{1'//char(ivx-10)//'}'
- livx = 4
- end if
-c Changes to get staffcrossall.pmx to work. Not clear how.
-c if (nint(space(ib+1)-space(ib)) .eq. 6) then
- if (space(ib+1).eq.8..and.space(ib).eq.2.) then
- notexq = sq//'tbbb'//ulq(ivx,ibmcnt(ivx))//
- * ivxq(1:livx)//sq//'tbb'//
- * ulq(ivx,ibmcnt(ivx))//ivxq(1:livx)//notexq(1:lnote)
- lnote = lnote+11+2*livx
-c else if (nint(space(ib+1)-space(ib)) .eq. 4) then
- else if (space(ib+1).eq.8..and.space(ib).eq.4.) then
- notexq = sq//'tbb'//ulq(ivx,ibmcnt(ivx))//
- * ivxq(1:livx)//notexq(1:lnote)
- lnote = lnote+5+livx
-c else
- else if (space(ib+1).eq.4..and.space(ib).eq.2.) then
- notexq = sq//'tbbb'//ulq(ivx,ibmcnt(ivx))//
- * ivxq(1:livx)//notexq(1:lnote)
- lnote = lnote+6+livx
- end if
- end if
- end if
- if (.not.btest(nacc(ivx,ip),20)) then
- vxtup(ivx) = .false.
- nornb(ivx) = 0
- ibmcnt(ivx) = ibmcnt(ivx)+1
- beamon(ivx) = .false.
- end if
-c
-c Or if we're in the middle of a beam
-c
- else if (numbms(ivx).gt.0 .and. beamon(ivx)) then
-c
-c Added 130127
-c
- if (kbdrests .and. btest(irest(ivx,ip),0) .and.
- * .not.btest(islur(ivx,ip),29).and. nvmx(iv).eq.2 .and.
- * nolev(ivx,ip).le.50)
- * call chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev,
- * ivmx,nib,nv,ibar,tnow,tol,nodur,2,levtopr,levbotr,
- * mult,ipl)
- call beamid(notexq,lnote)
-c
-c Or whole-bar rest
-c
- else if (btest(irest(ivx,ip),0)
- * .and. nodur(ivx,ip).eq.lenbar
- * .and..not.(firstgulp.and.ibar.eq.1.and.lenb0.gt.0)
- * .and..not.btest(irest(ivx,ip),25)
- * .and..not.btest(islur(ivx,ip),29)) then
-c
-c Rule out pickup bar, blank rests, non-centered. Remember islur b19=> rp
-c
- cwrest(ivx) = .true.
- iscwr = .true.
- call notex(cwrq(ivx),lcwr(ivx))
- tnow = tnow+lenbar
- go to 10
- else if (ixrest(ivx) .eq. 0) then
-c
-c Before writing note or rest, check for keyboard rest height adjustment.
-c Conditions are 0. This is a non-blank rest
-c 1. kbdrests = .true.
-c 2. There are two voices on the staff
-c 3. No user-def height adjustments have been applied (nolev<50)
-c
- if (kbdrests .and. btest(irest(ivx,ip),0) .and.
- * .not.btest(islur(ivx,ip),29).and. nvmx(iv).eq.2 .and.
- * nolev(ivx,ip).le.50) then
- call chkkbdrests(ip,iv,ivx,nn,islur,irest,nolev,
- * ivmx,nib,nv,ibar,tnow,tol,nodur,1,levtopr,levbotr,
- * mult,ipl)
- end if
- if (btest(ipl(ivx,ip),4)) then
-c
-c Deal with single stem tremolo
-c Get up-downness, borrowed from notex
-c
- if (udqq(nolev(ivx,ip),ncmid(iv,ip),islur(ivx,ip),
- * nvmx(iv),ivx,nv).eq.'u') then
- udq = 'u'
- else
- udq = 'l'
- end if
- multtrem = igetbits(ipl(ivx,ip),2,5)+1
- if (nodur(ivx,ip) .lt. 64) then
- notexq = sq//'tr'
- else
- notexq = sq//'Tr'
- end if
- lnote = 3
- if (multtrem .eq. 2) then
- notexq = notexq(1:3)//'r'
- lnote = 4
- else if (multtrem .eq.3) then
- notexq = notexq(1:3)//'rr'
- lnote = 5
- end if
-c
-c Get a numerical pitch argument
-c
- lineno = nolev(ivx,ip)-ncmid(iv,ip)+4
- if (lineno .lt.0 .or. lineno .gt.9) then
- write(noteq,'(a1,i2,a1)')'{',lineno,'}'
- lnoten = 4
- else
- noteq = char(lineno+48)
- lnoten = 1
- end if
- notexq = notexq(1:lnote)//'m'//udq//noteq(1:lnoten)
- lnote = lnote+2+lnoten
- call addstr(notexq,lnote,soutq,lsout)
- end if
-c
-c Get code for a separate note or rest
-c If nacc(ivx,ip)(30-31)=1 (dotted chordal 2nd including main note),
-c pitch will be shifted +/-1 inside notex.
-c
- call notex(notexq,lnote)
- end if
-c
-c Right offset? This may cause trouble
-c
- if (btest(ipl(ivx,ip),8)) then
- call addstr(sq//'loff{',6,soutq,lsout)
- else if (btest(ipl(ivx,ip),9)) then
- call addstr(sq//'roff{',6,soutq,lsout)
- end if
- if (ixrest(ivx).eq.0 .and. lnote.gt. 0) then
- call addstr(notexq,lnote,soutq,lsout)
- end if
- if (btest(ipl(ivx,ip),8) .or.
- * btest(ipl(ivx,ip),9)) call addstr('}',1,soutq,lsout)
-c
-c Terminate user-defined offsets. Fix format
-c
- if (btest(irest(ivx,ip),15) .or. btest(irest(ivx,ip),17))
- * call putshft(ivx,.false.,soutq,lsout)
-c
-c Deal with After- and Way-after-graces. First, if end of bar, compute space
-c needed since it wasn't done during general ask-checks. If extra space is
-c rq'd, convert GW to GA. Therefore GW at end of bar never needs extra sp.
-c But will still need to add extra space as hardspace.
-c
- if (ip.eq.nn(ivx) .and. (btest(ipl(ivx,ip),31).or.
- * btest(ipl(ivx,ip),29))) then
- do 77 ig = 1 , ngrace
- if (ipg(ig).eq.ip .and. ivg(ig).eq.ivx) go to 78
-77 continue
- print*,'Problem finding grace index at "do 77"'
- call stop1()
-78 continue
-c
-c Get elemskip to end of bar. WON'T WORK IF XTUPS !!
-c
- esk = 0.
- do 40 iib = ib , nb
- if (iib .eq. ib) then
- itleft = nint(to(ipl2(ivx,ip)))
- else
- itleft = nint(tstart(ib))
- end if
- if (iib .lt. nb) then
- itright = nint(tstart(iib+1))
- else
- itright = lenbar
- end if
- esk = esk+feon(space(ib))*
- * (itright-itleft)/space(ib)
-40 continue
- ptsavail = poenom*esk-wheadpt
- if (nng(ig) .eq. 1) then
- wgr = grafac
- else
- wgr = nng(ig)*emgfac
- do 41 ing = 1 , nng(ig)
- if (naccg(ngstrt(ig)-1+ing) .gt. 0) wgr = wgr+acgfac
-41 continue
- end if
- ptgr(ig) = wgr*wheadpt
- ptsneed = (wgr+0.5)*wheadpt
- ptsndg(ivx) = 0.
- if (ptsavail .lt. ptsneed) then
- ptsndg(ivx) = ptsneed
- eskndg(ivx) = esk
- if (btest(ipl(ivx,ip),31)) then
-c
-c Convert GW to GA
-c
- ipl(ivx,ip) = ibset(ibclr(ipl(ivx,ip),31),29)
- end if
- end if
- end if
-c
-c Check for GA
-c
- if (btest(ipl(ivx,ip),29))
- * call dograce(ivx,ip,ptgr,soutq,lsout,ncmid(iv,ip),
- * nacc(ivx,ip),ig,ipl(ivx,ip),.false.,
-c 130324
-c * .false.,0,0,0,0,0,0,0.,ulq)
- * .false.,0,0,0,0,0,0,0.,ulq,instno(iv))
-c
-c Update running time
-c
- tnow = tnow+space(ib)
-10 continue
-c
-c Have finished last note in this voice and block
-c
- itendb = nint(to(istop(ib))+space(ib))
- if (figbass .and. ivx.eq.1 .or. ivx.eq.ivxfig2) then
- ivf = 1
- if (ivx .gt. 1) ivf = 2
-17 if (figchk(ivf) .and. itfig(ivf,ifig(ivf)).lt.itendb) then
-c
-c There's at least one figure left. offnsk could be <0
-c
- offnsk = (tnow-itfig(ivf,ifig(ivf)))/space(ib)
- call putfig(ivf,ifig(ivf),offnsk,figchk(ivf),soutq,lsout)
- go to 17
- end if
- end if
-c
-c Check for flag, dot, or upstem on last note of bar.
-c
- if (ib .eq. nb) then
- ip = ipo(ipl2(ivx,nn(ivx)))
- flgndv(ivx) = 0.
- if (abs(tnote(ipl2(ivx,ip))-space(ib)).lt.tol) then
- if (space(ib) .lt. 16.-tol) then
-c
-c Note in last space, smaller than a quarter note.
-c
- if ((.not.btest(irest(ivx,ip),0) .and.
- * udqq(nolev(ivx,ip),ncmid(iv,ip),islur(ivx,ip),
- * nvmx(iv),ivx,nv).eq.'u')
- * .or. isdotted(nodur,ivx,ip)) then
-c
-c Upstem non-rest, or dotted
-c
- if (numbms(ivx).gt.0
- * .and. ip.eq.ibm2(ivx,max(1,numbms(ivx)))
- * .and. .not.isdotted(nodur,ivx,ip))
- * then
-c
-c In beam and not dotted, so use smaller space
-c
- flgndv(ivx) = upstmfac
- else
- flgndv(ivx) = flagfac
- end if
- end if
- else
-c
-c Last space, nonflagged (no beam) only worry dot or up
-c
- if (isdotted(nodur,ivx,ip)) then
- flgndv(ivx) = flagfac
- else if (tnote(ipl2(ivx,ip)).lt.64 .and.
- * udqq(nolev(ivx,ip),ncmid(iv,ip),islur(ivx,ip),
- * nvmx(iv),ivx,nv).eq.'u') then
-c
-c Upstem on last note , non-flagged
-c
- flgndv(ivx) = upstmfac
- end if
- end if
- end if
-c
-c Check for right-shifted chordal note
-c
- if (btest(irest(ivx,ip),20)) flgndv(ivx) = rtshfac
- flgndb = flgndb .or. flgndv(ivx).gt.0.
- if (ismidi) then
-c
-c For midi, set flags for accidentals on last note of bar. Assume they affect
-c first note of next bar whether or not tied.
-c Note has already been done, so next entry into addmidi is 1st in new bar.
-c First do main note, then chord notes
-c
-c Gyrations needed to account for multi-bar tied full-bar notes?
-cc Old old lbacc(icm) = iand(nacc(ivx,ip),7)
-c New old if (lbacc(icm).eq.0) lbacc(icm) = iand(nacc(ivx,ip),7)
-c
- if (iand(nacc(ivx,ip),7) .gt. 0) then
-c
-c Explicit accidental on last main note in bar
-c
- do 55 kacc = 1 , naccbl(icm)
- if (laccbl(icm,kacc) .eq. nolev(ivx,ip)) go to 56
-55 continue
- naccbl(icm) = naccbl(icm)+1
- laccbl(icm,naccbl(icm)) = nolev(ivx,ip)
- jaccbl(icm,naccbl(icm)) = iashft(iand(nacc(ivx,ip),7))
- end if
-56 continue
- if (btest(ipl(ivx,ip),10) .and. crdacc) then
- do 57 icrd = icrd1 , icrd2
- iacc = igetbits(icrdat(icrd),3,20)
- if (iacc .gt. 0) then
-c
-c Explicit accidental on chord note at end of bar
-c
- nolevc = igetbits(icrdat(icrd),7,12)
- do 58 kacc = 1 , naccbl(icm)
- if (laccbl(icm,kacc) .eq. nolevc) go to 59
-58 continue
- naccbl(icm) = naccbl(icm)+1
- laccbl(icm,naccbl(icm)) = nolevc
- jaccbl(icm,naccbl(icm)) = iashft(iacc)
- end if
-59 continue
-57 continue
- end if
-c if (lbacc(icm).eq.0 .and. accb4(icm)) then
- do 65 kacc = 1 , naccim(icm)
-c
-c If naccim(icm)>0,
-c possible implicit accidental from earlier in the bar. Check for prior accid
-c in this bar at relevant note levels, main and chord notes. Only act if no
-c explicit action from just above. Assuming any accid on last note in bar,
-c either explicit or implicit, has same effect on 1st note of next bar.
-c
- if (nolev(ivx,ip) .eq. laccim(icm,kacc)) go to 66
- if (btest(ipl(ivx,ip),10)) then
- do 67 icrd = icrd1 , icrd2
- if (iand(ishft(icrdat(icrd),-12),127) .eq.
- * laccim(icm,kacc)) go to 66
-67 continue
- end if
- go to 65
-66 continue
-c
-c So far we know there is a main or chord note at level laccim(icm,kacc). So
-c it will get a bl-accid if it didn't just already get one.
-c
- do 68 macc = 1 , naccbl(icm)
- if (laccbl(icm,macc) .eq. laccim(icm,kacc)) go to 65
-68 continue
- naccbl(icm) = naccbl(icm)+1
- laccbl(icm,naccbl(icm)) = laccim(icm,kacc)
- jaccbl(icm,naccbl(icm)) = jaccim(icm,kacc)
-65 continue
- end if
- end if
-11 continue
-c
-c Close out the notes group
-c
- call addstr(sq//'en',3,soutq,lsout)
- if (islast.and.lsout .gt. 0) write(11,'(a)')soutq(1:lsout)//'%'
-16 continue
-c
-c Check for way-after graces at end of bar. We could not link these to notes
-c as in midbar since there is no note following grace! Also, set flag if
-c hardspace is needed. Also, save nvmx, ivmx for use in space checks on reloop.
-c
- isgrace = .false.
- do 75 iv = 1 , nv
- nvmxsav(iv) = nvmx(iv)
- do 75 kv = 1 , nvmx(iv)
- ivmxsav(iv,kv) = ivmx(iv,kv)
- ivx = ivmx(iv,kv)
- ptsgnd = 0.
- if ((btest(ipl(ivx,nn(ivx)),29).or.btest(ipl(ivx,nn(ivx)),31))
- * .and. ptsndg(ivx).gt.0.) then
- flgndb = .true.
- if (ptsndg(ivx) .gt. ptsgnd) then
- ptsgnd = ptsndg(ivx)
- eskgnd = eskndg(ivx)
- end if
- end if
- if (btest(ipl(ivx,nn(ivx)),31)) then
-c
-c This voice has a way-after grace here at end of bar
-c
- if (.not.isgrace) then
-c
-c This is the first one, so set up the string
-c
- isgrace = .true.
- ivlast = 1
- soutq = sq//'znotes'
- lsout = 7
- end if
- do 76 iiv = ivlast , iv-1
- call addstr(sepsymq(iiv),1,soutq,lsout)
-76 continue
- ivlast = iv
-c
-c No need to put in 'nextvoice', even if 2 lines/staff
-c
- call dograce(ivx,nn(ivx),ptgr,soutq,lsout,ncmid(iv,nn(ivx)),
- * nacc(ivx,nn(ivx)),ig,ipl(ivx,nn(ivx)),.true.,
-c 130324
-c * .false.,0,0,0,0,0,0,0.,ulq)
- * .false.,0,0,0,0,0,0,0.,ulq,instno(iv))
- end if
-75 continue
- if (isgrace) then
- call addstr(sq//'en%',4,soutq,lsout)
- if (islast .and. lsout .gt. 0) write(11,'(a)')soutq(1:lsout)
- end if
- lsout = 0
-c
-c Write multibar rest. Assuming nv = 1 and do not worry about cwbrest
-c This has to be the only use of atnextbar
-c
- if (ibar.eq.ibarmbr .and. islast) then
- if (newmbrhgt) then
- soutq = sq//'def'//sq//'mbrhgt{'
- if (mbrhgt .le. -10) then
- write(soutq(13:15),'(i3)')mbrhgt
- lsout = 15
- else if (mbrhgt.ge.10.or.mbrhgt.le.-1) then
- write(soutq(13:14),'(i2)')mbrhgt
- lsout = 14
- else
- soutq = soutq(1:12)//char(48+mbrhgt)
- lsout = 13
- end if
- soutq = soutq(1:lsout)//'}%'
- write(11,'(a)')soutq(1:lsout+2)
- newmbrhgt = .false.
- end if
- soutq = sq//'def'//sq//'atnextbar{'//sq//'znotes'
- lsout = 22
- notexq = sq//'mbrest'
- lnote = 7
- call istring(mbrest,noteq,len)
- notexq = notexq(1:lnote)//noteq(1:len)
- lnote = lnote+len
- mtrspc = nint(xb4mbr)
- xb4mbr = 0.
- call istring(mtrspc,noteq,len)
- notexq = notexq(1:lnote)//noteq(1:len)//'0'
- lnote = lnote+len+1
- do 62 iv = 1 , nv
- call addstr(notexq,lnote,soutq,lsout)
- if (iv .lt. nv) call addstr(sepsymq(iv),1,soutq,lsout)
-62 continue
- call addstr(sq//'en}%',5,soutq,lsout)
- write(11,'(a)')soutq(1:lsout)
- lsout = 0
- if (ishort .gt. 0) then
- mbrsum = mbrsum+mbrest
- nmbr = nmbr+1
- end if
- if (mbrest .gt. 1) then
- ndig = int(alog10(mbrest-1+.01))+1
- write(11,'(a14,i'//chax(48+ndig)//',a1)')
- * sq//'advance'//sq//'barno',mbrest-1,'%'
- end if
- else if (iscwr) then
-c
-c Centered whole-bar rests. Set flag to pass to pmxb at start of NEXT bar
-c to check for new clef and add space by redefining \CenterBar
-c
- centrests = .true.
- call addstr(sq//'def'//sq//'value{0}',13,soutq,lsout)
- call addstr(sq//'def'//sq//'atnextbar{'//sq//'znotes',22,
- * soutq,lsout)
- do 60 iv = 1 , nv
-c added
- lnote = 0
-c
- do 61 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- if (cwrest(ivx)) then
- call addstr(sq//'CenterBar{',11,soutq,lsout)
- if (.not.cwrferm(ivx)) then
- if (lcwr(ivx).ge.11 .and. cwrq(ivx)(11:11).ne.'p') then
-c
-c Kluge to use new definitions for centered, stacked rests
-c
- if (cwrq(ivx)(2:10).eq.'liftpause' .or.
- * cwrq(ivx)(2:10).eq.'liftPAuse')
- * cwrq(ivx)(10:10) = 'c'
- end if
- call addstr(cwrq(ivx)(1:lcwr(ivx)),lcwr(ivx),soutq,
- * lsout)
- call addstr('}{-2}{'//sq//'value}',13,soutq,lsout)
- else
-c
-c Fermata on centered rest. Will need to fix up level.
-c 12/6/07 shift it left so it's centered over rest
-c
- notexq = notexq(1:lnote)//sq//'loffset{.33}{'
- * //sq//'fermataup7}'//cwrq(ivx)(1:lcwr(ivx))
- * //'}{-2}{'//sq//'value}'
- lnote = lnote+26+lcwr(ivx)+13
- call addstr(notexq,lnote,soutq,lsout)
- cwrferm(ivx) = .false.
- end if
- end if
-61 continue
- if (iv .ne. nv) call addstr(sepsymq(iv),1,soutq,lsout)
-60 continue
- if (islast) then
- call addstr(sq//'en}%',5,soutq,lsout)
- if (lsout.gt.0)write(11,'(a)')soutq(1:lsout)
- end if
- end if
-c
-c End of block for centered whole-bar rests and multi-bar rests
-c
-c If at end of block, save durations of last notes in bar, for possible use
-c if clef changes at start of next bar
-c
- if (ibar .eq. nbars) then
- do 63 iv = 1 , nv
- do 63 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- prevtn(ivx) = tnote(ipl2(ivx,nn(ivx)))
-63 continue
- end if
-c
-c Update time for midi. This is only used for the event track
-c
- if (ismidi) then
- miditime = miditime+15*lenbar
-c
-c If pickup, write the real time signature to the event track. Cannot use
-c mtrnuml since it was reset to 0, have to recompute it
-c
- if (lenb0 .eq. lenbar)
- * call midievent('m',mtrdenl*lenb1/64,mtrdenl)
- end if
- return
- end
- subroutine makeabar()
-c
-c On input, have pseudo-durations in nodur(ivx,ip). Not real durations for
-c xtups, since only last note of xtup gets non-zero nodur, which
-c corresponds to single note of full length of xtup.
-c In this subroutine we make an ordered list of all notes in all voices.
-c ilnc = list note counter
-c ivxo(ilnc), ipo(ilnc) = voice# and position in voice of ilnc-th note.
-c to(ilnc) = real start time of note in PMX-units (64=whole note)
-c tno(ilnc) = time to next event in the bar.
-c tnote(ilnc) = actual duration of note
-c Then run thru list, grouping consecutive notes into \notes groups ib.
-c space(ib) = real time unit for the \notes group
-c squez(ib) = factor on space to get effective space. This will be 1 if
-c there is a note exactly spanning each interval of space, and
-c <1 if not.
-c Details: let eon = elemskips per noteskip (like length). Basic formula is
-c eon = sqrt(space/2.)
-c If tgovern >= space, then
-c eon = sqrt(tgovern/2)*(space/tgovern) = space/sqrt(2*tgovern).
-c Time needed to give this eon using basic formula is
-c teq = space**2/tgovern
-c Factor on space to get teq is
-c squez(ib) = space/tgovern
-c The eon for each ib can then be computed based on time of space*squez.
-c Iff squez = 1, there is a note spanning every increment in the \notes group.
-c
-c tnminb = minimum time span in the bar for increments spanned by notes,
-c i.e., with squez=1. Use after parsing into line to decide if
-c spacing needs to be "flattened" among notes groups.
-c
- common /comtol/ tol
- parameter (nm=24,nkb=3999,maxblks=9600)
- common /a1ll/ iv,ivxo(600),ipo(600),to(600),tno(600),nnl(nm),
- * nv,ibar,mtrnuml,nodur(nm,200),lenbar,iccount,
- * nbars,itsofar(nm),nib(nm,15),nn(nm),
- * rest(nm,200),lenbr0,lenbr1,firstline,newmeter
- common /linecom/ elskb,tnminb(nkb)
- common /c1omnotes/ nnodur,wminnh(nkb),nnpd(maxblks),durb(maxblks),
- * iddot,nptr(nkb),ibarcnt,mbrest,ibarmbr,
-c * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks)
- * ibaroff,udsp(nkb),wheadpt,sqzb(maxblks)
- common /c1ommvl/ nvmx(nm),ivmx(nm,2),ivx,fbar,nacc(nm,200)
-c logical rest,firstline,newmeter,gotclef
- logical rest,firstline,newmeter
- integer cnn(nm),istart(80),istop(80)
- real*4 xit(nm),space(80),tstart(80),squez(80),tnote(600)
- elskb = 0.
- tnminb(ibarcnt) = 1000.
- do 1 iv = 1 , nv
- do 1 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- if (ibar .gt. 1) then
- nn(ivx) = nib(ivx,ibar)-nib(ivx,ibar-1)
- else
- nn(ivx) = nib(ivx,ibar)
- end if
-1 continue
-c
-c initialize list note counter, time(iv), curr. note(iv)
-c
- ilnc = 1
- do 4 iv = 1 , nv
- do 4 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- cnn(ivx) = 1
- ivxo(ilnc) = ivx
- ipo(ilnc) = 1
- to(ilnc) = 0.
- tnote(ilnc) = fnote(nodur,ivx,1,nacc)
- xit(ivx) = tnote(ilnc)
- if (abs(xit(ivx)-lenbar).lt.tol) xit(ivx) = 1000.
- ilnc = ilnc+1
-4 continue
-c
-c Build the list
-c
-5 continue
-c
-c Determine which voice comes next from end of notes done so far.
-c tmin is the earliest ending time of notes done so far
-c
- tmin = 1000.
- do 6 iv = 1 , nv
- do 6 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- tminn = min(tmin,xit(ivx))
- if(tminn .lt. tmin) then
- tmin = tminn
- ivnext = ivx
- end if
-6 continue
- if (tmin .gt. 999.) go to 7
- ivxo(ilnc) = ivnext
- cnn(ivnext) = cnn(ivnext)+1
- ipo(ilnc) = cnn(ivnext)
- to(ilnc) = tmin
-c
-c Check if this voice is done
-c
- tnote(ilnc) = fnote(nodur,ivnext,cnn(ivnext),nacc)
- if (cnn(ivnext) .eq. nn(ivnext)) then
- xit(ivnext) = 1000.
- else
- xit(ivnext) = xit(ivnext)+tnote(ilnc)
- end if
- ilnc = ilnc+1
- go to 5
-7 continue
- ntot = ilnc-1
- if (ntot .gt. 600) then
- call printl(' ')
- call printl('Cannot have more than 600 notes per bar, stopping')
- call stop1()
- end if
- do 8 in = 1 , ntot-1
- tno(in) = to(in+1)-to(in)
-8 continue
- tno(ntot) = fnote(nodur,ivxo(ntot),ipo(ntot),nacc)
- tnote(ntot) = tno(ntot)
-c
-c Debug writes
-c
-c write(*,'()')
-c write(*,'(16i5)')(ivxo(in),in=1,ntot)
-c write(*,'(16i5)')(ipo(in),in=1,ntot)
-c write(*,'(16f5.1)')(to(in),in=1,ntot)
-c write(*,'(16f5.1)')(tno(in),in=1,ntot)
-c write(*,'(16i5)')(nodur(ivxo(in),ipo(in)),in=1,ntot)
-c write(*,'(16f5.1)')(tnote(in),in=1,ntot)
-c
-c Done w/ list. Initialize loop for building note blocks:
-c
- ib = 1
- istart(1) = 1
- space(1) = 0.
- in = 1
-c
-c Start the loop
-c
-9 continue
- if (in .eq. ntot) then
- if (space(ib) .lt. tol) then
- space(ib) = tno(in)
-c
-c Last gap in bar is spanned by a note, so cannot need a squeeze.
-c
- squez(ib) = 1.
- end if
- istop(ib) = ntot
-c
-c From here flow out of this if block and into block-setup
-c
- else if (space(ib) .lt. tol) then
-c
-c space hasn't been set yet, so tentatively set:
-c
- space(ib) = tno(in)
- if (space(ib) .lt. tol) then
- in=in+1
- else
-c
-c Tentative space tno(in) is non-zero. Set squez, which will be kept (since
-c it is a unique property of the particular increment starting here) :
-c
- squez(ib) = getsquez(in,ntot,space(ib),tnote,to)
- istop(ib) = in
- end if
- go to 9
- else if (tno(in+1) .lt. tol) then
-c
-c This is not the last note in the space, so
-c
- in = in+1
- go to 9
- else if (abs(tno(in+1)-space(ib)) .lt. tol) then
-c
-c Next increment has same space. Does it have same squez?
-c
- xsquez = getsquez(in+1,ntot,space(ib),tnote,to)
-c
-c If it does have the same squez, loop, otherwise flow out
-c
- if (abs(xsquez-squez(ib)) .lt. tol) then
-c
-c Keep spacing the same, update tentative stop point
-c
- in = in+1
- istop(ib) = in
- go to 9
- end if
- end if
-c
-c At this point istart, istop, space, and squez are good, so close out block
-c
- tstart(ib) = to(istart(ib))
-c
-c Compute elemskips assuming no flattening to increase min space. The formula
-c is only correct if f1eon(t) = sqrt(t/2); more generally (after possible
-c flattening in pmxb), elsperns = squez*feon(space/squez)
-c
- elsperns = f1eon(space(ib)*squez(ib))
- if (istop(ib) .eq. ntot) then
- nnsk = nint((lenbar-tstart(ib))/space(ib))
- else
- nnsk = nint((to(istop(ib)+1)-tstart(ib))/space(ib))
- end if
- elskb = elskb+elsperns*nnsk
- if (nptr(ibarcnt+1) .gt. nptr(ibarcnt)) then
- call catspace(space(ib),squez(ib),nnsk)
- else
-c
-c This is the first entry for this bar
-c
- nnpd(nptr(ibarcnt)) = nnsk
- durb(nptr(ibarcnt)) = space(ib)
- sqzb(nptr(ibarcnt)) = squez(ib)
- nptr(ibarcnt+1) = nptr(ibarcnt+1)+1
- end if
-c
-c Update minimum space spanned by a note
-c
- if (abs(squez(ib)-1) .lt. tol)
- * tnminb(ibarcnt) = min(tnminb(ibarcnt),space(ib))
- if (istop(ib) .eq. ntot) go to 15
-c
-c End of spatial accounting for now
-c
- ib = ib+1
- istart(ib) = istop(ib-1)+1
- in = istart(ib)
-c
-c Set tentative block space for new block
-c
- space(ib) = tno(in)
- if (space(ib).gt.tol)
- * squez(ib)= getsquez(in,ntot,space(ib),tnote,to)
- istop(ib) = in
- go to 9
-15 continue
-c nb = ib
-c
-c Debug writes
-c
-c write(*,'(16i5)')(istart(ib),ib=1,nb)
-c write(*,'(16i5)')(istop(ib),ib=1,nb)
-c write(*,'(16f5.1)')(space(ib),ib=1,nb)
-c write(*,'(16f5.1)')(squez(ib),ib=1,nb)
-c
- return
- end
- subroutine midievent(typeq,in1,in2)
-c
-c We now store "conductor" events in mmidi(numchan,.), and count bytes
-c with imidi(numchan)
-c
- parameter (nm=24,mv=24576)
- integer*2 mmidi
- logical restpend,relacc,notmain,twoline,ismidi,crdacc
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- common /comevent/ miditime,lasttime
- character*1 typeq
- idur = isetvarlen(miditime-lasttime,nbytes)
- imidi(numchan) = imidi(numchan)+nbytes+1
- do 1 i = 1 , nbytes
- mmidi(numchan,imidi(numchan)-i) = mod(idur,256)
- idur = ishft(idur,-8)
-1 continue
- mmidi(numchan,imidi(numchan)) = 255
- if (typeq .eq. 't') then
-c
-c Tempo event. in1 = quarters per minute (integer)
-c
- mmidi(numchan,imidi(numchan)+1) = 5*16+1
- mmidi(numchan,imidi(numchan)+2) = 3
- misperq = nint(60000000./in1)
- do 2 i = 1 , 3
- mmidi(numchan,imidi(numchan)+6-i) = mod(misperq,256)
- misperq = ishft(misperq,-8)
-2 continue
- imidi(numchan) = imidi(numchan)+5
- else if (typeq .eq. 'm') then
-c
-c Meter event. in1=numerator, in2=denom (power of 2)
-c
- mmidi(numchan,imidi(numchan)+1) = 5*16+8
- mmidi(numchan,imidi(numchan)+2) = 4
- mmidi(numchan,imidi(numchan)+3) = in1
- if (in2 .gt. 0) then
- mmidi(numchan,imidi(numchan)+4) = log2(in2)
- else
- mmidi(numchan,imidi(numchan)+4) = 0
- end if
- mmidi(numchan,imidi(numchan)+5) = 24
- mmidi(numchan,imidi(numchan)+6) = 8
- imidi(numchan) = imidi(numchan)+6
- else if (typeq .eq. 'k') then
-c
-c Keychange event. in1 = isig
-c
- mmidi(numchan,imidi(numchan)+1) = 5*16+9
- mmidi(numchan,imidi(numchan)+2) = 2
- mmidi(numchan,imidi(numchan)+3) = mod(256+in1,256)
- mmidi(numchan,imidi(numchan)+4) = 0
- imidi(numchan) = imidi(numchan)+4
- else
- print*,'Program flameout in midievent'
- call stop1()
- end if
- lasttime = miditime
- return
- end
- subroutine moveln(iuin,iuout,done)
- logical done
- character*129 outq
- done = .false.
- read(iuin,'(a)',end=1) outq
- lenout = llen(outq,129)
- write(iuout,'(a)') outq(1:lenout)
- return
-1 done = .true.
- return
- end
- subroutine mrec1(lineq,iccount,ndxm)
-c
-c This is called when (a) macro recording is just starting and
-c (b) at the start of a new line, if recording is on
-c
- parameter (maxblks=9600)
- character*128 lineq,lnholdq
- common /commac/ macnum,mrecord,mplay,macuse,icchold,lnholdq,endmac
- logical mrecord,mplay,endmac
- common /c1ommac/ ip1mac(20),il1mac(20),ip2mac(20),il2mac(20),
- * ic1mac(20),ilmac,iplmac
- character*131072 bufq
- integer*2 lbuf(maxblks)
- common /inbuff/ ipbuf,ilbuf,nlbuf,lbuf,bufq
- if (.not.mrecord) then
-c
-c Starting the macro
-c
- ip1mac(macnum) = ipbuf-lbuf(ilbuf-1)+iccount
- il1mac(macnum) = ilbuf-1
- ic1mac(macnum) = iccount
- mrecord = .true.
- end if
- if (iccount .lt. 128) then
- ndxm = index(lineq(iccount+1:128),'M')
- if (ndxm .gt. 0) ndxm = ntindex(lineq(iccount+1:128),'M',
- * 128-iccount)
- if (ndxm .gt. 0) then
-c
-c This line ends the macro.
-c
- ip2mac(macnum) = ipbuf-lbuf(ilbuf-1)+iccount+ndxm
- il2mac(macnum) = ilbuf-1
- mrecord = .false.
- end if
- end if
- return
- end
- function ncmid(iv,ip)
- parameter (nm=24)
- common /all/ mult(nm,200),jv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- common /comipl2/ ipl2(nm,200)
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,isfig
- common /comcc/ ncc(nm),tcc(nm,10),ncmidcc(nm,10),
- * maxdotmv(nm),ndotmv(nm),updot(nm,20),rtdot(nm,20)
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /comtol/ tol
- if (ncc(iv) .eq. 1) then
- ncmid = ncmidcc(iv,1)
- else
- xtime = to(ipl2(ivx,ip))
- do 1 icc = ncc(iv) , 1 , -1
- if (xtime .gt. tcc(iv,icc)-tol) then
- ncmid = ncmidcc(iv,icc)
- return
- end if
-1 continue
- print*,'Problem in ncmid()'
- stop
- end if
- end
- function ncmidf(clefq)
-c
-c Return middle line of a clef
-c
- character*1 clefq
- if (clefq .eq. '8') then
-c
-c treblelowoct; will treat as treble for this purpose
-c
- ncmidf = 35
- else
- ncmidf = 21+index(' b6r5n4a3m2s1t0f7',clefq)/2*2
- end if
- return
- end
- subroutine newvoice(jv,clefq,change)
- parameter (nm=24)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,isfig
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /comfb/ nfb(nm),t1fb(nm,40),t2fb(nm,40),ulfbq(nm,40),ifb,
- * tautofb,autofbon,t1autofb
- character*1 ulfbq,clefq
- common /comcc/ ncc(nm),tcc(nm,10),ncmidcc(nm,10),
- * maxdotmv(nm),ndotmv(nm),updot(nm,20),rtdot(nm,20)
- common /comudsp/udsp(50),tudsp(50),nudsp,udoff(nm,20),nudoff(nm)
- logical change,autofbon
- nvmx(jv) = 1
- ivmx(jv,1) = jv
- itsofar(jv) = 0
- nnl(jv) = 0
- nfb(jv) = 0
- if (firstgulp .or. change) then
- ncmidcc(jv,1) = ncmidf(clefq)
- else
- ncmidcc(jv,1) = ncmidcc(jv,ncc(jv))
- end if
- tcc(jv,1) = 0.
- ncc(jv) = 1
- nudoff(jv) = 0
- ndotmv(jv) = 0
- do 5 j = 1 , 200
- irest(jv,j) = 0
- islur(jv,j) = 0
- ipl(jv,j) = 0
- nacc(jv,j) = 0
- iornq(jv,j) = 0
- mult(jv,j) = 0
- if (jv.le.2) isfig(jv,j) = .false.
-5 continue
- return
- end
- subroutine notefq(noteq,lnote,nolev,ncmid)
-c
-c Returns name of note level with octave transpositions, updates noctup.
-c
- common /comoct/ noctup
- character*8 noteq
- character*1 upcaseq,noteqt,chax
- nupfroma = mod(nolev+1,7)
- iname = 97+nupfroma
- ioctup = (nolev+1)/7-4
- noteqt = chax(iname)
- if (ncmid .eq. 23) noteqt = upcaseq(noteqt)
- if (ioctup .eq. noctup) then
- noteq = noteqt
- lnote = 1
-c
-c Must ALWAYS check if lnote=1 for use with functions requiring a blank
-c
- else if (ioctup .gt. noctup) then
-c
-c Raise octave. Encase in {}
-c
- write(noteq,'(8a1)')'{',(chax(39),i=noctup,ioctup-1),
- * noteqt,'}'
- lnote = 3+ioctup-noctup
- noctup = ioctup
- else
-c
-c Lower octave
-c
- write(noteq,'(8a1)')'{',(chax(96),i=ioctup,noctup-1),
- * noteqt,'}'
- lnote = 3+noctup-ioctup
- noctup = ioctup
- end if
- return
- end
- subroutine notex(notexq,lnote)
-c
-c Returns non-beamed full note name
-c
- parameter (nm=24)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,
- * isfig,ispoi,btest,even
- character*1 udq,udqq,chax
- character*4 dotq
- character*2 numq
- character*79 notexq
- character*8 noteq
- character*40 restq
- common /compoi/ ispoi
- common /comfig/ itfig(2,74),figq(2,74),ivupfig(2,74),nfigs(2),
- * fullsize(nm),ivxfig2,ivvfig(2,74)
- character*10 figq
- ip = ipo(jn)
- nole = nolev(ivx,ip)
-c
-c Check for special situations with 2nds (see precrd)
-c
- if (btest(nacc(ivx,ip),30)) then
- nole = nole - 1
- else if (btest(nacc(ivx,ip),31)) then
- nole = nole + 1
- end if
- nodu = nodur(ivx,ip)
- if (.not.btest(irest(ivx,ip),0)) then
- udq = udqq(nole,ncmid(iv,ip),
- * islur(ivx,ip),nvmx(iv),ivx,nv)
- end if
-c
-c Check figure level
-c
-c if (figbass .and. isfig(ivx,ip)
-c * .and. .not.btest(irest(ivx,ip),0)) then
- if (figbass .and. .not.btest(irest(ivx,ip),0) .and.
- * ((ivx.eq.1.and.isfig(1,ip))
- * .or.(ivx.eq.ivxfig2.and.isfig(2,ip)))) then
- if (udq .eq. 'u' .or. nodu.ge.64) then
-c
-c Upper or no stem, fnole (in noleunits) set by notehead
-c
- fnole = nole
- else
-c
-c Lower stem, fnole set by bottom of stem
-c
- fnole = nole-stemlen
- end if
- zmin = fnole-ncmid(ivx,ip)+4
- if (ivx .eq. 1) then
- ifigdr(1,iline) = max(ifigdr(1,iline),nint(4-zmin))
- else
- ifigdr(2,iline) = max(ifigdr(2,iline),nint(4-zmin))
- end if
- end if
- if (.not.btest(irest(ivx,ip),0)) then
- call notefq(noteq,lnoten,nole,ncmid(iv,ip))
- if (lnoten .eq. 1) call addblank(noteq,lnoten)
- if (nodu .eq. 1) then
- notexq =sq//'cccc'//udq//noteq(1:lnoten)
- lnote = lnoten+6
- else if (nodu .eq. 2) then
- notexq =sq//'ccc'//udq//noteq(1:lnoten)
- lnote = lnoten+5
- else if (nodu .eq. 4) then
- notexq =sq//'cc'//udq//noteq(1:lnoten)
- lnote = lnoten+4
- else if (nodu .eq. 8) then
- notexq =sq//'c'//udq//noteq(1:lnoten)
- lnote = lnoten+3
- else if (nodu .eq. 16) then
- notexq =sq//'q'//udq//noteq(1:lnoten)
- lnote = lnoten+3
- else if (nodu .eq. 32) then
- notexq =sq//'h'//udq//noteq(1:lnoten)
- lnote = lnoten+3
- else if (nodu .eq. 64) then
- notexq =sq//'wh'//noteq(1:lnoten)
- lnote = lnoten+3
- else if (nodu .eq. 128) then
-c notexq =sq//'zbreve'//noteq(1:lnoten)//sq//'sk'
-c lnote = lnoten+10
- notexq =sq//'breve'//noteq(1:lnoten)
- lnote = lnoten+6
- else
- dotq = 'p'
- ldot = 1
- if (btest(iornq(ivx,ip),13)) then
-c
-c Dotted note with ')' ornament
-c
- dotq='m'
- else if (btest(islur(ivx,ip),3)) then
-c
-c Double dot
-c
- dotq = 'pp'
- ldot = 2
- end if
- if (nodu .ge. 192) then
- notexq =sq//'breve'//dotq(1:ldot)//noteq(1:lnoten)
- lnote = lnoten+6+ldot
- else if (nodu .ge. 96) then
- notexq =sq//'wh'//dotq(1:ldot)//noteq(1:lnoten)
- lnote = lnoten+3+ldot
- else if (nodu .ge. 48) then
- notexq =sq//'h'//udq//dotq(1:ldot)//noteq(1:lnoten)
- lnote = lnoten+3+ldot
- else if (nodu .ge. 24) then
- notexq =sq//'q'//udq//dotq(1:ldot)//noteq(1:lnoten)
- lnote = lnoten+3+ldot
- else if (nodu .ge. 12) then
- notexq =sq//'c'//udq//dotq(1:ldot)//noteq(1:lnoten)
- lnote = lnoten+3+ldot
- else if (nodu .ge. 6) then
- notexq =sq//'cc'//udq//dotq(1:ldot)//noteq(1:lnoten)
- lnote = lnoten+4+ldot
- ispoi = .true.
- else
- notexq =sq//'ccc'//udq//dotq(1:ldot)//noteq(1:lnoten)
- lnote = lnoten+5+ldot
- ispoi = .true.
- end if
- if (dotq(1:1) .eq. 'm') then
-c
-c Need another call to the note, in case the first one has octave shifts
-c
- if (lnoten .eq. 2) then
- notexq = notexq(1:lnote)//'{'//noteq(2:2)//'}'
- lnote = lnote+3
- else
- notexq = notexq(1:lnote)//noteq(lnoten-1:lnoten-1)
- lnote = lnote+1
- end if
- end if
- end if
- else if (btest(islur(ivx,ip),29)) then
-c
-c Blank rest
-c
- notexq = sq//'sk'
- lnote = 3
- else
-c
-c Non-blank rest
-c
- lnote = 0
- nole = mod(nole+20,100)-20
-c
-c Kluge to get pause symbol for rp:
-c
- if (btest(islur(ivx,ip),19)) nodu = 64
- if (nodu .le. 28) then
-c
-c Normal rest < or = double-dotted quarter
-c
- lrest = 3
- if (nodu .gt. 14) then
- restq =sq//'qp'
- else if (nodu .gt. 7) then
- restq =sq//'ds'
- else if (nodu .gt. 3) then
- restq =sq//'qs'
- else if (nodu .gt. 1) then
- restq =sq//'hs'
- else
- restq =sq//'qqs'
- lrest = 4
- end if
-c
-c Special case for rest at start of F-tuplet inside a forced beam
-c
- if (btest(nacc(ivx,ip),18) .and.
- * btest(nacc(ivx,ip),19)) then
- restq = sq//'pt4'//restq(1:lrest)
- lrest = lrest+4
- end if
- notexq = restq
- lnote = lrest
-c
-c At this point notexq=restq,lnote=lrest are name of rest. Now raise if necc.
-c
- if (nole .ne. 0) then
- if (abs(nole) .lt. 10) then
- noteq = chax(48+abs(nole))
- lnoten = 1
- else
- write(noteq(1:2),'(i2)')abs(nole)
- lnoten = 2
- end if
- if (nole .gt. 0) then
- notexq = sq//'raise'//noteq(1:lnoten)//sq//'internote'
- else
- notexq = sq//'lower'//noteq(1:lnoten)//sq//'internote'
- end if
- lnote = 16+lnoten
- notexq = notexq(1:lnote)//restq(1:lrest)
- lnote = lnote+lrest
- end if
- if (2**log2(nodu) .ne. nodu) then
-c
-c Deal with dots (on rests shorter than half rest)
-c
- restq = sq//'pt'
- lrest = 3
- if (2*nodu .gt. 3*2**log2(nodu)) then
- restq = sq//'ppt'
- lrest = 4
- end if
- nole = nole+4
- raisedot = 0
-c
-c Tweak dot positions for special cases
-c
- even = (mod(100+nole,2).eq.0)
-c if (.not.even.and.nodu.gt.8.and.
-c * (nole.lt.0.or.nole.gt.8)) then
- if (.not.even .and. (nole.lt.0.or.nole.gt.8)) then
- raisedot = 1
- end if
- if (nole.ge.10 .or. nole.le.-1) then
- write(numq,'(i2)')nole
- restq = restq(1:lrest)//'{'//numq//'}'
- lrest = lrest+4
- else
- restq = restq(1:lrest)//chax(nole+48)
- lrest = lrest+1
- end if
- if (raisedot.gt.0) then
- restq = sq//'raise'//sq//'internote'//
- * sq//'hbox{'//restq(1:lrest)//'}'
- lrest = lrest+23
- end if
- notexq = restq(1:lrest)//notexq(1:lnote)
- lnote = lnote+lrest
- end if
- else
-c
-c Half rest or longer
-c
- if (nole .eq. 0) then
-c
-c Half or longer rest is not raised or lowered
-c
- if (nodu .le. 56) then
- notexq =sq//'hpause'
- lnote = 7
- else if (nodu .le. 112) then
- if (.not.btest(islur(ivx,ip),19) .or.
- * btest(irest(ivx,ip),25)) then
- notexq = sq//'pause'
- else
- notexq = sq//'pausc'
- end if
- lnote = 6
- else
- notexq =sq//'PAuse'
- lnote = 6
- end if
- if (2**log2(nodu) .ne. nodu) then
-c
-c Dotted rest, hpause or longer
-c
- notexq = notexq(1:lnote)//'p'
- lnote = lnote+1
- if (2*nodu .gt. 3*2**log2(nodu)) then
-c
-c Double dotted long rest
-c
- notexq = notexq(1:lnote)//'p'
- lnote = lnote+1
- end if
- end if
- else
-c
-c Raised or lowered half or whole rest
-c
- if (nodu .eq. 32) then
- notexq = sq//'lifthpause'
- lnote = 11
- else if (nodu .eq. 48) then
- notexq = sq//'lifthpausep'
- lnote = 12
- else if (nodu .eq. 56) then
- notexq = sq//'lifthpausepp'
- lnote = 13
- else if (nodu .eq. 64) then
- notexq = sq//'liftpause'
- lnote = 10
- else if (nodu .eq. 96) then
- notexq = sq//'liftpausep'
- lnote = 11
- else if (nodu .eq. 112) then
- notexq = sq//'liftpausepp'
- lnote = 12
- else if (nodu .eq. 128) then
- notexq = sq//'liftPAuse'
- lnote = 10
- else
-c
-c Assume dotted double whole rest
-c
- notexq = sq//'liftPAusep'
- lnote = 11
- end if
-c
-c Set up height spec
-c
- nole = sign(abs(nole)/2,nole)
- if (nole.le.9 .and. nole.ge.0) then
- noteq = chax(48+nole)
- lnoten = 1
- else
- noteq = '{'
- if (nole .ge. -9) then
- write(noteq(2:3),'(i2)')nole
- lnoten = 3
- else
- write(noteq(2:4),'(i3)')nole
- lnoten = 4
- end if
- noteq = noteq(1:lnoten)//'}'
- lnoten = lnoten+1
- end if
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
- end if
- end if
- end if
- return
- end
- function ntindex(line,s2q,lenline)
-c
-c Returns index(line,s2q) if NOT in TeX string, 0 otherwise
-c
- character*(*) s2q,line
- character*1 chax
- logical intex
- ndxs2 = index(line,s2q)
- ndxbs = index(line,chax(92))
- if (ndxbs.eq.0 .or. ndxs2.lt.ndxbs) then
- ntindex = ndxs2
- else
-c
-c There are both bs and s2q, and bs is to the left of sq2. So check bs's to
-c right of first: End is '\ ', start is ' \'
-c
- len = lenstr(line,lenline)
- intex = .true.
- do 1 ic = ndxbs+1 , len
- if (ic .eq. ndxs2) then
- if (intex) then
- ntindex = 0
- ndxs2 = index(line(ic+1:len),s2q)+ic
- else
- ntindex = ndxs2
- return
- end if
- else if (intex .and. line(ic+1:ic+2).eq.chax(92)//' ') then
- intex = .false.
- else if (.not.intex .and. line(ic+1:ic+2).eq.' '//chax(92))
- * then
- intex = .true.
- end if
-1 continue
- end if
- return
- end
- subroutine ntrbbb(n,char1q,ulqq,iv,notexq,lnote)
-c
-c This appends to notexq e.g. '\ibbbu1'
-c
- common /combbm/ isbbm
- logical isbbm
- character*79 notexq
- character*1 char1q,ulqq,chax
- character*4 tempq
- if (n .ge. 5) isbbm = .true.
- if (lnote .gt. 0) then
- notexq = notexq(1:lnote)//chax(92)//char1q
- else
- notexq = chax(92)//char1q
- end if
- lnote = lnote+2
- do 3 im = 1 , n
- notexq = notexq(1:lnote)//'b'
- lnote = lnote+1
-3 continue
-c
-c add the number, 0 if 12
-c
-c 5/25/08 Allow >12
-c
-c call istring(mod(iv,12),tempq,len)
- if (iv .lt. 24) then
- call istring(iv,tempq,len)
- else if (iv .eq. 24) then
- tempq(1:1) = '0'
- len = 1
- else
- call printl('Sorry, too man open beams')
- call stop1()
- end if
- notexq = notexq(1:lnote)//ulqq//tempq(1:len)
- lnote = lnote+1+len
- return
- end
- function numclef(clefq)
-c
-c Returns the number to be used as argument of \setclef for MusiXTeX
-c For input 0-6 or tsmanrb return 0-7
-c 7 f 9
-c 8 0
-c
- character*1 clefq
- if (ichar(clefq) .lt. 55) then
-c if (ichar(clefq) .le. 55) then
- numclef = ichar(clefq)-48
-c if (numclef .eq. 7) numclef = 9
- else if (clefq .eq. '7') then
- numclef = 9
- else if (clefq .eq. '8') then
- numclef = 0
- else
- numclef = index('tsmanrbxxf',clefq)-1
- end if
- return
- end
- subroutine outbar(i,jlast)
- character*1 chax
- nfmt = log10(i+.5)+2
- if (jlast+5+nfmt .lt. 80) then
- write(*,'(a5,i'//chax(48+nfmt)//',$)')' Bar',i
- write(15,'(a5,i'//chax(48+nfmt)//',$)')' Bar',i
- jlast = jlast+5+nfmt
- else
- write(*,'(/,a5,i'//chax(48+nfmt)//',$)')' Bar',i
- write(15,'(/,a5,i'//chax(48+nfmt)//',$)')' Bar',i
- jlast = 5+nfmt
- end if
- return
- end
- subroutine pmxa(basenameq,lbase,isfirst,nsyout,nbarss,optimize)
-cccccccccccccccccccccccccccccccccccccccccccccccc
-cc cc
-cc Subroutine, combine with pmxb.for
-cc
-cccccccccccccccccccccccccccccccccccccccccccccccc
-cc
-cc Need to consider X spaces in xtuplets when getting poenom, and
-cc maybe fbar?
-cc mx06a
-cc ID numbers for voices when number of voices is reduced.
-cc
-cc mx03a
-cc account for new fracindent for new movements.
-cc
-cc Known changes since pmxa. Version 1.1b (see pmxb for longer list)
-cc
-cc Check ID codes for slurs.
-cc Version 1.24 still does not have details for spacing/positioning
-cc arpeggios if there are accidentals or shifted notes or crowded scores.
-cc Fix problem in 1.22 with arpeggios across multi-line staves
-cc Fix problem in 1.22 with flat key signatures
-cc Read setup data as strings
-cc Warning for octave designation plus +/-
-cc Don't pause for volta warning,
-cc Macros
-cc Correct fsyst to account for transposition and key changes.
-cc Check for nbars > nsyst
-cc
-ccccccccccccccccccccccccccccccccccc
- parameter (nm=24,nkb=3999,nks=125,maxblks=9600)
- logical loop,usefig,isfirst,optimize
- character*131072 bufq
- integer*2 lbuf(maxblks)
- common /inbuff/ ipbuf,ilbuf,nlbuf,lbuf,bufq
- integer nn(nm),nodur(nm,200),ivxo(600),ipo(600),
- * nnl(nm),itsofar(nm),nib(nm,15),lastbar(0:nks),nbarss(nks)
- common /c1omnotes/ nnodur,wminnh(nkb),nnpd(maxblks),durb(maxblks),
- * iddot,nptr(nkb),ibarcnt,mbrest,ibarmbr,
-c * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks)
- * ibaroff,udsp(nkb),wheadpt,sqzb(maxblks)
- common /compage/ widthpt,ptheight,hoffpt,voffpt,
- * nsyst,nflb,ibarflb(0:40),
- * isysflb(0:40),npages,nfpb,ipagfpb(0:18),isysfpb(0:18),
- * usefig,fintstf,gintstf,fracsys(30),nmovbrk,isysmb(0:30),
- * nistaff(0:40)
- common /comkeys/ nkeys,ibrkch(18),newkey(18),iskchb,idsig,isig1,
- * mbrestsav,kchmid(18),ornrpt,shifton,barend,noinst,stickyS
- real*4 elsk(nkb),celsk(0:nkb),elss(nks),to(600),tno(600)
- character*128 lnholdq
- character*44 basenameq
- logical rest(nm,200),firstline,fbon,isvolt,iskchb,kchmid,ornrpt,
- * stickyS
- common /c1omget/ lastchar,fbon,issegno,ihead,isheadr,nline,isvolt,
- * fracindent,nsperi(nm),linesinpmxmod,line1pmxmod,lenbuf0
- logical lastchar,newmeter,newmb(nkb),issegno,bottreb,isheadr,
- * shifton,barend
- common /a1ll/ iv,ivxo,ipo,to,tno,nnl,nv,ibar,mtrnuml,
- * nodur,lenbar,iccount,nbars,itsofar,nib,nn,
- * rest,lenbr0,lenbr1,firstline,newmeter
- common /linecom/ elskb,tnminb(nkb)
- common /cblock/
- * etatop,etabot,etait,etatc,etacs1,hgtin,hgtti,hgtco,
- * xilbn,xilbtc,xilhdr,xilfig,a,b,inhnoh
- common /cominbot/ inbothd
- common /c1ommvl/ nvmx(nm),ivmx(nm,2),ivx,fbar,nacc(nm,200)
- common /commac/ macnum,mrecord,mplay,macuse,icchold,lnholdq,endmac
- common /commus/ musize,whead20
- common /comeon/ eonk,ewmxk
-c logical mrecord,mplay,endmac,gotclef,cstuplet
- logical mrecord,mplay,endmac,cstuplet
- logical novshrinktop,upslur,fontslur,WrotePsslurDefaults
- common /comnvst/ novshrinktop,cstuplte
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- common /comligfont/ isligfont
- logical isligfont
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
- logical fulltrans
- common /comis4bignv/ is4bignv,AIset
- logical is4bignv,AIset
- common /comshort/ shortfrac,codafrac,ishort,mbrsum,nmbr,nocodabn,
- * poefa
- real*4 poefa(125)
- logical nocodabn
- data wtimesig,wclef,wkeysig
- * / 0.72 , 0.8 , 0.28 /
-c data poefa /125*1./
-c This corrected a problem in Bob Tennent's compilation of pmx2.94
-c
- do 97 i = 1 , 125
- poefa(i) = 1.
-97 continue
- is4bignv = .false.
- AIset = .false.
- whead20 = 0.3
- ishort = 0
- if (.not.optimize) then
- print*
- print*,'Starting first PMX pass'
- write(15,'(a)') ' Starting first PMX pass'
- end if
- if (isfirst) then
- open(19,file='pmxaerr.dat')
- write(19,'(i6)') 0
- close(19)
- end if
- if (.not.optimize) jprntb = 81
- macuse = 0
- ornrpt = .false.
- stickyS = .false.
- mrecord = .false.
- mplay = .false.
- lastchar = .false.
- novshrinktop = .false.
- cstuplet = .false.
- fontslur = .true.
- isligfont = .false.
- fulltrans = .false.
- do 42 ibarcnt = 1 , nkb
- udsp(ibarcnt) = 0.
- wminnh(ibarcnt) = -1.
-42 continue
-c
-c Initialize input buffer
-c
- lenbuf0 = ipbuf
- ipbuf = 0
- ilbuf = 1
- call g1etset(nv,noinst,mtrnuml,mtrdenl,mtrnmp,mtrdnp,
- * xmtrnum0,newkey(1),npages,nsyst,musize,bottreb)
-c
-c Set up list of instrument numbers (iv)
-c
- ivnow = 0
- do 13 instnow = 1 , noinst
- do 14 iscount = 1 , nsperi(instnow)
- ivnow = ivnow+1
- instno(ivnow) = instnow
-14 continue
-13 continue
-c
-c Save initial meter for midi
-c
- if (.not.isfirst .and. npages.eq.0) then
- print*,'Sorry, must have npages>0 for optimization.'
- call stop1()
- end if
- nsyout = nsyst
-c
-c isig1 will be changed in getnote if there is a transposition
-c
- isig1 = newkey(1)
- if (npages .gt. nsyst) then
- call printl('npages > nsyst in input. Please fix the input.')
- call stop1()
- end if
-c
-c fbar = afterruleskip/elemskip
-c apt = width of small accidental + space in points (= 6 at 20pt) =wheadpt
-c
- fbar = 1.
- wheadpt = whead20*musize
- ifig = 0
- usefig = .true.
- lenbeat = i1fnodur(mtrdenl,'x')
- lenmult = 1
- if (mtrdenl .eq. 2) then
- lenbeat = 16
- lenmult = 2
- end if
- lenbr1 = lenmult*mtrnuml*lenbeat
- lenbr0 = nint(lenmult*xmtrnum0*lenbeat)
- mtrnuml = 0
- if (lenbr0 .ne. 0) then
- ibaroff = 1
- lenbar = lenbr0
- else
- ibaroff = 0
- lenbar = lenbr1
- end if
- ibarcnt = 0
- nptr(1) = 1
- iccount = 128
- nmovbrk = 0
- nflb = 0
- nfpb = 0
- ipagfpb(0) = 1
- isysfpb(0) = 1
- ibarflb(0) = 1
- isysflb(0) = 1
- nistaff(0) = nv-1
-c
-c Check for pmx.mod
-c
- linesinpmxmod = 0
-c line1pmxmod = ilbuf
- call getpmxmod(.true.,' ')
- if (.not.isfirst .and. linesinpmxmod .gt. 0) then
- print*,'Sorry, cannot optimize if there is a pmx.mod file'
- call stop1()
- end if
-c
-c Initialize for loop over lines
-c
- nkeys = 1
- ibrkch(1) = 1
- mbrestsav = 0
- shifton = .false.
- firstline = .true.
- newmeter = .false.
- ihead = 0
- isheadr = .false.
-c gotclef = .false.
- idsig = 0
- iddot = 0
- fintstf = -1.
- gintstf = 1.0
- listcresc = 0
- listdecresc = 0
-30 loop = .true.
- iskchb = .false.
- issegno = .false.
- nbars = 0
- ibarmbr = 0
- do 4 iv = 1 , nv
- nvmx(iv) = 1
- ivmx(iv,1) = iv
- itsofar(iv) = 0
- nnl(iv) = 0
- do 5 j = 1 , 200
- rest(iv,j) = .false.
- nacc(iv,j) = 0.
-5 continue
-4 continue
- iv = 1
- ivx = 1
- fbon = .false.
- barend = .false.
- isvolt = .false.
-2 if (loop) then
-c
-c Within this short loop, nv voices are filled up for the duration of a block.
-c On exit (loop=.false.) the following are set: nnl(nv),itsofar(nv)
-c nodur(..),rest(..). nnl will later be
-c increased and things slid around as accidental skips are added.
-c
- call g1etnote(loop,ifig,optimize,fulltrans)
- if (lastchar) go to 20
- go to 2
- end if
- if (mbrestsav .gt. 0) then
- call printl(' ')
- call printl(
- * 'You must enter the same multibar rest in ALL parts')
- call stop1()
- end if
- do 10 ibar = 1 , nbars
- ibarcnt = ibarcnt+1
-c
-c The following is just a signal to start a new bar when cataloging spaces
-c for catspace(...)
-c
- nptr(ibarcnt+1) = nptr(ibarcnt)
- newmb(ibarcnt) = .false.
- if (newmeter.and.ibar.eq.1) newmb(ibarcnt) = .true.
-c
-c Above is only for spacing calcs later on. Remember new meter can only occur
-c at START of a new input line (ibar = 1)
-c
- if (ibar .ne. ibarmbr) then
- if (.not.optimize) call outbar(ibarcnt-ibaroff,jprntb)
- else
- if (.not.optimize) then
- write(15,'(/,a20,i4,a1,i4)')' Multibar rest, bars',
- * ibarcnt-ibaroff,'-',ibarcnt-ibaroff+mbrest-1
- write(*,'(/,a20,i4,a1,i4)')' Multibar rest, bars',
- * ibarcnt-ibaroff,'-',ibarcnt-ibaroff+mbrest-1
- jprntb = 0
- end if
- ibaroff = ibaroff-mbrest+1
- end if
- if (firstline .and. lenbr0.ne.0) then
- if (ibar .eq. 1) then
- lenbar = lenbr0
- else
- lenbar = lenbr1
- end if
- end if
- if (ibar .gt. 1) then
-c
-c For bars after first, slide all stuff down to beginning of arrays
-c
- do 11 iv = 1 , nv
- do 11 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- ioff = nib(ivx,ibar-1)
- do 12 ip = 1 , nib(ivx,ibar)-ioff
- nodur(ivx,ip) = nodur(ivx,ip+ioff)
- rest(ivx,ip) = rest(ivx,ip+ioff)
- nacc(ivx,ip) = nacc(ivx,ip+ioff)
-12 continue
-11 continue
- end if
- do 67 iv = 1 , nv
- do 67 kv = 1 , nvmx(iv)
- ioff= 0
- if(ibar.gt.1)ioff = nib(ivmx(iv,kv),ibar-1)
-67 continue
- call makeabar()
- elsk(ibarcnt) = elskb+fbar
-10 continue
- newmeter = .false.
- firstline = .false.
- go to 30
-20 continue
-c
-c Vertical analysis.
-c
- if (npages .eq. 0) then
- if (nsyst .eq. 0) then
- print*,'When npages=0, must set nsyst=bars/syst, not 0'
- call stop1()
- end if
- nsyst = (ibarcnt-1)/nsyst+1
- if (nv .eq. 1) then
- nsystpp = 12
- else if (nv .eq. 2) then
- nsystpp = 7
- else if (nv .eq. 3) then
- nsystpp = 5
- else if (nv .eq. 4) then
- nsystpp = 3
- else if (nv .le. 7) then
- nsystpp = 2
- else
- nsystpp = 1
- end if
- npages = (nsyst-1)/nsystpp+1
- end if
-c
-c Check nsyst vs ibarcnt
-c
- if (nsyst .gt. ibarcnt) then
- print*
- print*,'nsyst,ibarcnt:',nsyst,ibarcnt
- print*,'There are more systems than bars.'
- write(15,'(a,2i5)')' nsyst,ibarcnt:',nsyst,ibarcnt
- write(15,'(a)')' There are more systems than bars.'
- call stop1()
- end if
-c
-c Set up dummy forced line & page breaks after last real one
-c
- nflb = nflb+1
- ibarflb(nflb) = ibarcnt+1
- isysflb(nflb) = nsyst+1
- nfpb = nfpb+1
- ipagfpb(nfpb) = npages+1
- isysfpb(nfpb) = nsyst+1
- heightil = ptheight*4./musize
- open(12,status='SCRATCH')
- write(12,'(a)')basenameq(1:lbase)
- write(12,*)lbase
-c
-c Pass to pmxb the initial signature, including effect of transposition.
-c
- write(12,'(6f10.5/f10.5,3i5)')fbar,wheadpt,etait,
- * etatc,etacs1,etatop,etabot,inbothd,inhnoh,isig1
- write(12,*)npages,widthpt,ptheight,hoffpt,voffpt,nsyst
- iflbnow = -1
- isysb4 = 0
- do 8 ifpb = 1 , nfpb
-c
-c Each time thru this loop is like a single score with several pages
-c
- npages = ipagfpb(ifpb)-ipagfpb(ifpb-1)
- nsyst = isysfpb(ifpb)-isysfpb(ifpb-1)
- nomnsystp = (nsyst-1)/npages+1
- nshort = nomnsystp*npages-nsyst
- do 7 ipage = 1 , npages
- nsystp = nomnsystp
- if (ipage .le. nshort) nsystp = nsystp-1
-c
-c Last system number on this page:
- isysendpg = isysb4+nsystp
- nintpg = 0
- do 15 isy = isysb4+1, isysendpg
- if (isysflb(iflbnow+1) .eq. isy) iflbnow = iflbnow+1
- nintpg = nintpg+nistaff(iflbnow)
-15 continue
- xilfrac = 0.
- xiltxt = 0.
- if (ipage.eq.1 .and. ihead.gt.0) then
-c
-c Needn't zero out ihead after printing titles if we only allow titles at top?
-c
- if (iand(ihead,1) .eq. 1) then
- xiltxt = xiltxt+hgtin*4/musize
- xilfrac = xilfrac+etait
- end if
- if (iand(ihead,2) .eq. 2) then
- xiltxt = xiltxt+hgtti*4/musize
- xilfrac = xilfrac+etatc
- end if
- if (iand(ihead,4) .eq. 4) then
- xiltxt = xiltxt+hgtco*4/musize
- xilfrac = xilfrac+etacs1
- else
-c
-c Use double the title-composer space if there is no composer
-c
- xilfrac = xilfrac+etatc
- end if
- end if
- D = xilfrac+nsystp-1+etatop+etabot
-c C = nsystp*(nv-1)
- C = nintpg
-c xN = heightil - xiltxt - 4*nsystp*nv - (nsystp-1)*xilbn
- xN = heightil - xiltxt - 4*(nintpg+nsystp) - (nsystp-1)*xilbn
- if (bottreb) xN = xN-(nsystp-1)*xilbtc
- if (ihead.eq.0 .and. isheadr) xN = xN - xilhdr
- if (ifig .eq. 1) then
- xN = xN - nsystp*xilfig
- end if
- glueil = (xN-b*C)/(D+a*C)
- omegaG = (b*D+a*xN)/(D+a*C)
-c
-c G = \interlines between systems
-c omega*G = \interlines between staves of the same system
-c \interstaff = 4+omega*G
-c C = total number of interstaff spaces in the page
-c D = omega-indep factors for scalable height = nsy-1 (intersystem glue)
-c + etatop + etabot + etatxt +
-c N = scaleable height (\interlignes) = height - htext - staff heights - xil
-c xil = extra interliges = (nsy-1)*xilbn + 10 if header and no titles
-c + (nsy-1)*xiltcb for treble clef bottoms
-c + nsy*xilfig for figures
-c G = N/(D + omega * C) = glueil, (1)
-c But (empirically) omega*G = a*G + b (2)
-c with a=1.071 and b=2.714
-c Solving (1) and (2) gives
-c G = (N-b*C)/(D+a*C) , omega*G = (b*D+a*N)/(D+a*C)
-c Pass to pmxb omega*G (=\interstaff-4)
-c (etatop,bot,it,tc,cx)*G as inputs to \titles
-c
-c glueil = (heightil-xiltxt-nsystp*(xil+4*nv))
-c * /(nsystp*(1+gfact*(nv-1))-1+etatop+etabot+xilfrac)
-c xnsttop = glueil*etatop
-c xintstaff = 4+gfact*glueil
-c
-c Only the first page will get local adjustment now if needed, others in pmxb
-c
- if (ifpb.eq.1 .and. ipage.eq.1 .and. fintstf.gt.0.) then
- facins = fintstf
- fintstf = -1.
- else
-c
-c gintstf = 1.0 by default, but may be changed with AI<x>
-c
- facins = gintstf
- end if
- write(12,*)nsystp,max(0.,etatop*glueil),facins*(omegaG+4)
- ihead = 0
- isheadr = .false.
- isysb4 = isysendpg
-7 continue
-8 continue
-c
-c Done with vertical, now do horizontals
-c
- celsk(1) = elsk(1)
- do 21 ibar = 2 , ibarcnt
- celsk(ibar) = celsk(ibar-1)+elsk(ibar)
-21 continue
- lastbar(0) = 0
- ibar1 = 1
- wmins = -1.
- iflb = 1
- imovbrk = 0
- ikey = 1
-c
-c Return nsyst to its *total* value
-c
- nsyst = isysfpb(nfpb)-1
- do 22 isyst = 1 , nsyst
- if (isyst .eq. isysflb(iflb)) iflb = iflb+1
- if (nmovbrk.gt.0 .and. imovbrk.lt.nmovbrk) then
- if (isyst .eq. isysmb(imovbrk+1)) imovbrk = imovbrk+1
- end if
- ibarb4 = lastbar(isyst-1)
- if (isyst .eq. 1) then
- if (isfirst) elsstarg = celsk(ibarflb(1)-1)/
- * (isysflb(1)-1-fracindent)*(1-fracindent)
- celskb4 = 0.
- else
- celskb4 = celsk(ibarb4)
-c
-c Must dimension isysmb(0:*) just so I can execute this test!
-c
- if (isfirst) then
- if (nmovbrk.gt.0 .and. isyst.eq.isysmb(imovbrk)) then
-c
-c First syst after forced line break. There may be indentation.
-c
- elsstarg = (celsk(ibarflb(iflb)-1)-celskb4)
- * /(isysflb(iflb)-isyst-fracsys(imovbrk))
- * *(1-fracsys(imovbrk))
- else
-c
-c There is no indentation to deal with
-c
- elsstarg = (celsk(ibarflb(iflb)-1)-celskb4)
- * /(isysflb(iflb)-isyst)
- end if
- end if
- end if
- if (isfirst) then
- diff1 = abs(elsstarg-elsk(ibarb4+1))
- do 23 ibar = ibarb4+2 , ibarcnt
- diff = elsstarg-(celsk(ibar)-celskb4)
- if (abs(diff) .ge. diff1) go to 24
- diff1 = abs(diff)
-23 continue
-24 ibar = ibar-1
- lastbar(isyst) = ibar
- nbarss(isyst) = ibar-ibarb4
- else
-c
-c nbarss is given as an input, must compute lastbar and ibar
-c
- lastbar(isyst) = nbarss(isyst)+ibarb4
- ibar = lastbar(isyst)
- end if
-c
-c elss is # of elemskip in the syst. from notes & ars's, not ruleskips, ask's.
-c
- elss(isyst) = celsk(ibar)-celskb4
- write(12,'(i5)')lastbar(isyst-1)+1
-c
-c Transposed sigs are isig1, newkey(2,3,...).
-c
- if (ikey .eq. 1) then
- key1 = isig1
- else
- key1 = newkey(ikey)
- end if
- fsyst = wclef+abs(key1)*wkeysig+2./musize
- xelsk = 0.
-1 if (ikey.lt.nkeys) then
- if (ibrkch(ikey+1).le.lastbar(isyst)) then
-c
-c Add space for all key changes
-c
- ikey = ikey+1
- key2 = newkey(ikey)
- naccs = max(abs(key2-key1),max(abs(key1),abs(key2)))
- fsyst = fsyst+naccs*wkeysig
-c
-c Account for afterruleskips (fbar)
-c
- xelsk = xelsk+fbar/2
- if (ibrkch(ikey).lt.lastbar(isyst) .and. .not.kchmid(ikey))
- * xelsk = xelsk-1.
- key1 = key2
- go to 1
- end if
- end if
-c
-c Add extra fixed space for double bar
-c
- if (isyst .eq. nsyst) then
- fsyst = fsyst+4.5/musize
- end if
-c
-c Add extra fixed space for initial time signature
-c
- if (isyst .eq. 1) then
- fsyst = fsyst+wtimesig
- end if
-c
-c Add extra fixed space for time signature changes & user-defined spaces
-c
- do 26 ibars = ibarb4+1 , lastbar(isyst)
- if (newmb(ibars)) fsyst = fsyst+wtimesig
- fsyst = fsyst+udsp(ibars)/musize
-26 continue
- if (isyst .eq. 1) then
- wdpt = widthpt*(1-fracindent)
- else
- if (nmovbrk.gt.0 .and. imovbrk.gt.0 .and.
- * isyst.eq.isysmb(imovbrk)) then
- wdpt = widthpt*(1-fracsys(imovbrk))
- else
- wdpt = widthpt
- end if
- end if
- wsyspt = wdpt-fsyst*musize-0.4*nbarss(isyst)
-c
-c Checks for min spacing
-c Get min allowable space
-c
- dtmin = 1000.
- do 45 ibar = ibar1 , ibar1+nbarss(isyst)-1
- dtmin = min(dtmin,tnminb(ibar))
- if (wminnh(ibar).ge.0.) wmins = wminnh(ibar)
-45 continue
- if (wmins .lt. 0) wmins = 0.3
- wminpt = (1+wmins)*0.3*musize
-c
-c Find max duration & # of notes for this system
-c
- dtmax = 0.
- nns = 0
- do 43 iptr = nptr(ibar1) , nptr(ibar1+nbarss(isyst))-1
- dtmax = max(dtmax,durb(iptr))
- nns = nns + nnpd(iptr)
-43 continue
- elmin0 = wsyspt*f1eon(dtmin)/(elss(isyst)+xelsk)
- if (elmin0 .ge. wminpt) then
-c
-c Subtract out fbar stuff to keep old way of passing sumelsk to pmxb;
-c there is no need to "flatten"
-c
- sumelsk = elss(isyst)-fbar*nbarss(isyst)
- eonk = 0.
- ewmxk = 1.
- else
- elmin1 = wsyspt/((fbar*nbarss(isyst)+xelsk)/f1eon(dtmax)+nns)
- if (elmin1 .le. wminpt) then
-c print*
-c print*,'In system #',isyst,' cannot meet min. space rqmt'
-c write(15,'(/a,i5,a)')
-c * 'In system #',isyst,' cannot meet min. space rqmt'
- eonk = 0.9
- else
-c
-c Find eonk by Newton method
-c
- call findeonk(nptr(ibar1),nptr(ibar1+nbarss(isyst))-1,
- * wsyspt/wminpt,fbar*nbarss(isyst)+xelsk,dtmin,dtmax,
- * (wminpt-elmin0)/(elmin1-elmin0))
- eonk = min(.9,eonk)
- end if
- ewmxk = f1eon(dtmax)**eonk
-c
-c Recompute poenom!
-c
- sumelsk = 0
- do 44 iptr = nptr(ibar1) , nptr(ibar1+nbarss(isyst))-1
- sumelsk = sumelsk
- * + nnpd(iptr)*sqzb(iptr)*feon(durb(iptr)/sqzb(iptr))
-44 continue
- end if
- poenom = wsyspt/(sumelsk+fbar*nbarss(isyst)+xelsk)
-c
-c Set fracindent for output: orig if isyst=1, fracsys(imovbrk) if movbrk, else 0
-c
- if (isyst .gt. 0) then
- if (nmovbrk.gt.0 .and. imovbrk.gt.0 .and.
- * isyst.eq.isysmb(imovbrk)) then
- fracindent = fracsys(imovbrk)
- else
- fracindent = 0.
- end if
- end if
- write(12,'(1pe12.5/i5,5e12.3)') poenom,nbarss(isyst),
- * sumelsk,fsyst,fracindent,eonk,ewmxk
- ibar1 = ibar1+nbarss(isyst)
-22 continue
- rewind(12)
- open(13,status='SCRATCH')
- write(13,'(i5)')ifig
- rewind(13)
- ilbuf = 1
- ipbuf = 0
- if (.not.optimize) then
- write(*,'(/,a)')' Done with first pass'
- print*
- write(15,'(/,a)')' Done with first pass'
- write(15,'()')
- end if
-c
-c Following syntax is needed since pmxa is called with literal argument .false.
-c
- if (isfirst) isfirst = .false.
- return
- end
- subroutine pmxb(inlast,poevec,ncalls,optimize)
-cccccccccccccccccccccccccc
-cc
-cc To Do
-cc
-cc Resolve disagreement in final poe for 1st system, compared with *.mx2
-cc Shift slurs on right- or left-shifted main notes (2/7/99)
-cc Various end-of-input-block repeat problems (ick142.pmx).
-cc Force multiplicity for un-beamed xtups.
-cc Clef change at end of piece
-cc Global "A" option to maximize "X" at a given time tick.
-cc Tighten test for end-of-bar hardspace, flgndv(ivx) due to right-shifted
-cc note. See trubl18.pmx
-cc Tab character as space.
-cc Clef interference with second line of music.
-cc Add space for interferences between *different* lines of music?
-cc Shift arpeggios, both automatic and manual.
-cc Different musicsize for different instruments.
-cc Spacing checks for accid's on left-shifted chord notes
-cc Spacing checks for double dots
-cc Allow forced line breaks w/o setting nsyst.
-cc Cresc-Decresc. (Enhance MusiXTeX first?)
-cc Dynamic Marks.
-cc Bug with Voltas at line end (MusiXTeX problem?).
-cc Subtle bug w/ slur hgt over line brk, see trubl15.pmx
-cc Stem-end slurs.
-cc Allow units in indentation.
-cc Make inline TeX more context sensitive.
-cc Werner's 4/2/98 problem with "o?"
-cc Scor2prt converts e.g. "r0+0" into "r0 0", which seems to be wrong.
-cc converts e.g. "r2db" into "r2d", which might be wrong.
-cc Werner's generalsignature problem with Key change and new transposition.
-cc (wibug8.pmx)
-cc Unequal xtuplets
-cc Print both sets of bar #'s in tex file.
-cc Make barlines invisible \def\xbar{\empty} , fix fbar.
-cc Auto-tie slurs 'At'
-cc Forced line break anywhere (e.g. at a mid-bar repeat).
-cc Clef change at very start of file.
-cc Tighten test for M as macro terminator.
-cc Fix title so not separate limit on author length + composer length.
-cc Arpeggios in xtups.
-cc
-cc mx10b
-cc Option for instrument name at top center. Last item in P command:
-cc P[n]c text is instrument name (use in parts)
-cc P[n]cstuff text is stuff (up to 1st blank)
-cc P[n]c"stuff with spaces" text is stuff with spaces
-cc
-cc Post version 1.43
-cc Reduced space rqmt for multiplicity-0 graces (no flag)
-cc Removed last sepsym in centered whole-bar rests, fixes volta height bug.
-cc
-cc Version 1.43
-cc Fix spacing for end-of-line signature change.
-cc Adjust left-shift of grace group for shifted accidentals.
-cc Put in extra space for left-shifted accidentals.
-cc Fix bug with dot-shift before accid-shift on chord note.
-cc Space-check for right-shifted main notes.
-cc Enable forcing stem direction of single notes in non-beamed xtups.
-cc Disallow clef change after last note before end of input block (pmxa)
-cc Print meter change before page break
-cc increase length of strings for \titles macro
-cc version 1.42
-cc Loosen up input syntax for "X" commands. Subroutine getx()
-cc "B" and "P" in "X" commands
-cc mx09b
-cc Allow multiple rests at start of xtup
-cc Add 64th rest
-cc Fix xtup numbers over rests. (subroutine levrn)
-cc Initialize notcrd=.false. every gulp. Avoids undefined state with e.g.
-cc c za / ( c a ...
-cc Allow double dots to be shifted.
-cc Fix spacing with double dotted notes; permit splitting small note.
-cc Fix \dotted printout so it works with old compiler
-cc mx08b
-cc Automatic spaces if needed for shifted accidentals.
-cc Some Dynamics
-cc Increase accid. horiz. shift resolution to .o5 (use one more bit in nacc)
-cc version 1.41
-cc Allow ":" as last char of path name
-cc Dotted slurs "sb"
-cc Continue bar numbering at movement break "L[integer]Mc"
-cc mx07b
-cc Whole-bar rests with double lines of music. Fixed all options ?
-cc Shift accidentals, either [+|-][integer][+|-][number] or [<|>][number].
-cc Option to suppress centering full-bar rests. "o"
-cc mx06b
-cc Shift accid on left-shifted chord note.
-cc Rest as first note of xtup.
-cc Wrong slopes with small widths. Scale slfac1 by widthpt_default/widthpt
-cc Allow Rb for single bar at movemnet break or end of piece. (islur(25))
-cc Change # of inst at a movement break. noinst is total # and must be used
-cc in 1st movement. ninow is current. nspern(1,...,ninow) is current
-cc staves/inst, nsperi(1,...,noinst) is original. rename tells whether to
-cc reprint names in parindent at a movement break. Default is .false.
-cc unless ninow changes, then .true. But can force either with r+/- as
-cc option in 'M'
-cc mx04b
-cc Double-dotted notes, separate+beamed, main+chord, still no extra space.
-cc ??? Don't shift slur ends on whole notes.
-cc (pmxa) Write line number of error in pmxaerr.dat
-cc mx02b
-cc Admit "RD" before "/" (search for "rptfq2:" )
-cc In doslur, for multi-line staves, single notes, check forced stem dir'n
-cc before setting stemup (used to set horiz offset).
-ccccccccccccccccccccccccccccccc
- parameter (nm=24,nks=125,mv=24576,maxblks=9600)
-c
-c FYI /all/ differs in appearance in function ncmid
-c
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- common /comipl2/ ipl2(nm,200)
-ccccccccccccc
-cc islur cc
-ccccccccccccc
-c bit meaning
-c 0 slur activity on this note
-c 1 t-slur here.
-c 2 force 0-slope beam starting on this note
-c 3 Double dotted note!
-c 4 grace before main note
-c 5 left repeat
-c 6 right repeat
-c 7 start Volta
-c 8 doublebar
-c 9 end Volta
-c 10 on=>endvoltabox
-c 11 on=>clefchange
-c 12-14 0=>treble, ... , 6=>bass
-c 15 on=> start new block for clef change (maybe diff. voice)
-c 16 literal TeX string
-c 17 1=up, 0=down stem for single note (override) See bit 30!
-c 18 if on, prohibit beaming
-c 19 if on, full bar rest as pause
-c 20 Beam multiplicity down-up
-c 21 Forced multiplicity for any beam including xtups
-c 22-24 Value of forced multiplicity
-c 25 single barline at movement break
-c 26 doubleBAR (see bits 5,6,8)
-c 27-28 Forced beam fine-tune height (1 to 3)
-c 29 Blank rest
-c 30 If on, get stem dir'n from bit 17
-c 31 If on, suppress printing number with xtuplet starting here
-ccccccccccccc
-cc ipl cc
-ccccccccccccc
-c 0 blank barline (must be iv=1) (would have used islur but no room)
-c 1 look left for K rests, moved here from iornq(30)
-c 2 treblelowoct
-c 3 Open notehead in forced beam xtup
-c 4 Set if single stem tremolo
-c 5-6 termulo multiplicity - 1
-c 7 unused
-c 8 left offset main note one headwidth
-c 9 right offset main note one headwidth
-c 10 chord present?
-c 11-16 Forced beam height adjustment (-30 to +30)
-c 17-22 Forced beam slope adjustment (-30 to +30)
-c 23-26 Slur index for Way-after grace. Inserted when slur is started.
-c 27 5th bit for slur index for Way-after grace (100712)
-c 28 key change: only in voice 1
-c 29 Grace after main note. (Type A)
-c 30 In forced beam. Signals need to check beam heights
-c 31 Grace way after main note. (stretch to next note, type W)
-ccccccccccccc
-cc iornq cc
-ccccccccccccc
-c 0 Ornament "(". Was user-defined horizontal slur shift on this note
-c until 9/24/97; changed that to irest(21)
-c 1-13 stmgx+Tupf._)
-c 14 Down fermata, was F
-c 15 Trill w/o "tr", was U
-c 16-18 Editorial s,f,n
-c 19-20 >^
-c 21 "?" for editorial accid, w/ or w/o s,f,n
-c 22 Set if ihornb governs ornament height. Same in icrdorn.
-c 23 Set in getorn if ANY note at time of this main note has ornament.
-c This is ONLY used in beamstrt to signal whether to do more
-c tests for whether ihornb is needed. (ihornb is only needed
-c if nonchord+upbm, chord+upbm+top_note, chord+dnbm+bot_note)
-c (7/1/00)Also set if any dynamic, as ihornb will be needed when dnbm.
-c 24 Slur on after or way-after grace. Use as signal to START slur.
-c 25 Tweak orn ht. Same in icrdorn for chord note
-c 26 Insert user-defined space before this note (was 22)
-c 27 Arpeggio stop or start (if 2 at same time), or all-in-this-chord
-c 28 caesura or breath
-cc 29 blank barline (must be iv=1) (would have used islur but no room)
-c 29 coda
-cc 30 "Look-left" option for keyboard rest
-c 30 Part-by-part segno oG
-c 31 Set if any note (main or chord) has cautionary accid, for space checks
-ccccccccccccc
-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 Set if 2-note tremolo starts here
-c 3-4 nsolid, # of solid beams in 2-note tremolo
-c 5-6 nindent, # of indented beams in 2-note tremolo
-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
-c 15 Single-voice, single note shift X(...)[p]S
-c 16 Start single-voice, multinote shift with this note X(...)[p]:
-c 17 End single-voice, multinote shift after this note. Enter symbol
-c after note. X:
-c 18 User-defined hardspace after last note of bar, *after* this note.
-c Value still stored in udoff(ivx,nudoff(ivx)), not with other
-c hardspaces in udsp, to avoid confusion with time checks.
-c 19 Move the dot. Data stored in ndotmv,updot,rtdot
-c 20 Set if right-shifted main or chord note here. Use for space checks.
-c 21 User-defined hardspace in xtup
-c 22 User-defined slur shift horizontal slur shift.
-c 23 Set on last note before staff-jumping a beam.
-c 24 Set on first note after staff-jumping a beam
-c 25 Suppress rest centering. "ro"
-c 26 Dynamic on this note
-c 27 Set if left-shifted main or chord note here. Use for space checks.
-c 28 Set if xtup starts on this note.
-c 29 Set on lowest-voice note at same time as 1st note after jump-beam.
-c 30 Set on note after end of jump-beam segment, to force new note group
-c 31 Flag for cautionary accidental
-ccccccccccccc
-cc nacc cc
-ccccccccccccc
-c 0-1 0=no accid, 1=fl, 2=sh, 3=na
-c 2 double
-c 3 big
-c 4-9 vertshift-32
-c 10-16 20*(horiz. shift + 5.35) (Recentered ver 2.32)
-c 17 Midi-only accidental
-c 18 2:1 xtup
-c 19 Together with nacc(18), increase multiplicity by 1 and dot 1st note.
-c 20 Set on last note of each seg except last seg of single-slope beam.
-c 21 Set on 1st note of each seg except 1st seg of single-slope beam.
-c 22-26 If .ne.0, printed xtup number for xtup starting on this note.
-c 27 Set for dotted xtup note. Mult dur by 1.5, mult next by .5 & increase
-c multiplicity by 1
-c 28 Set on main note of chord if accidentals are ordered.
-c 29 Tag for chordal accidental shift...means add to autoshifts.
-c 30-31 Set 30|31 if main note in a chord is part of a 2nd and needs to be shifted.
-c If upstem|downstem, main is upper|lower member of 2nd
-c Action is to interchange pitches only when notes are placed.
-ccccccccccccc
-cc mult cc
-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
-cc 28-30 New stem length.
-ccccccccccccc
-cc isdat1 cc
-ccccccccccccc
-c 13-17 iv
-c 3-10 ip
-c 11 start/stop switch
-c 12 kv-1
-c 19-25 ichar(code$)
-c 26 force direction?
-c 27 forced dir'n = up if on, set in sslur; also
-c final direction, set in doslur when beam is started, used on term.
-c 28-31 ndxslur, set in doslur when beam is started, used on term.
-ccccccccccccc
-cc isdat2 cc
-ccccccccccccc
-c 0 Chord switch. Not set on main note.
-c 1-2 left/right notehead shift. Set only for chord note.
-c 3 tie positioning
-c 4 dotted slur
-c 6-11 voff1 1-63 => -31...+31
-c 12-18 hoff1 1-127 => -6.3...+6.3
-c 19-25 nolev
-c 26 \sluradjust (p+s)
-c 27 \nosluradjust (p-s)
-c 28 \tieadjust (p+t)
-c 29 \notieadjust (p-t)
-ccccccccccccc
-cc isdat3 cc
-ccccccccccccc
-c 0 set if midslur (at least one argument)
-c 1 set if curve (2 more args)
-c 2-7 32+first arg (height correction) (1st arg may be negative)
-c 8-10 second arg (initial slope)
-c 11-13 third arg (closing slope)
-c 14-21 tie level for use in LineBreakTies
-c 22-29 ncm for use in LineBreakTies
-ccccccccccccc
-cc isdat4 cc Set these all at turn-on using s option
-ccccccccccccc
-c 0-5 Linebreak seg 1 voff 1-63 => -31...+31
-c 6-12 Linebreak seg 1 hoff 1-127 => -6.3...+6.3
-c 16-21 Linebreak seg 2 voff 1-63 => -31...+31
-c 22-28 Linebreak seg 2 hoff 1-127 => -6.3...+6.3
-ccccccccccccc
-c icrdat c
-ccccccccccccc
-c 0-7 ip within voice
-c 8-11 ivx (together with 28th bit)
-c 12-18 note level
-c 19 accidental?
-c 20-22 accidental value (1=natural, 2=flat, 3=sharp, 6=dflat, 7=dsharp)
-c 23 shift left
-c 24 shift right
-c 25 arpeggio start or stop
-c 26 flag for moved dot (here, not icrdot, since this is always reset!)
-c 27 Midi-only accidental
-c 28 (6/27/10) 5th bit for ivx, to allow up to 24 voices
-c 29 Tag for accidental shift...means add to autoshifts.
-c 31 Flag for cautionary accidental on chord note
-ccccccccccccc
-c icrdot c:
-ccccccccccccc
-c 0-6 10*abs(vertical dot shift in \internote) + 64
-c 7-13 10*abs(horizontal dot shift in \internote) + 64
-c 14-19 vert accidental shift-32
-c 20-26 20*(horiz accidental shift+3.2)
-c 27-29 top-down level rank of chord note w/accid. Set in crdaccs.
-c
-c Bits in icrdorn are same as in iornq, even tho most orns won't go in crds.
-c
-cccccccccccccccccccccccccccccccc
- character*131072 bufq
- integer*2 lbuf(maxblks)
- common /inbuff/ ipbuf,ilbuf,nlbuf,lbuf,bufq
- character*10 figq
- common /comignorenats/ mbrhgt,newmbrhgt,ignorenats
- logical ignorenats,newmbrhgt
- character*1 ulq,sepsymq,sq,chax
- logical beamon,firstgulp,figbass,figchk,
- * isfig,rptnd1,rptprev
- logical loop,lastchar,slint,svolta,evolta,onvolt,
- * cwrest(nm),islast,inlast,optimize
- integer istop(80),numbms(nm),istart(80)
- real*4 xnsttop(75),xintstaff(75),hesk(23),hpts(23),poevec(nks),
- * tstart(80),squez(80)
- character*1 clefq(nm),ulfbq,rptfq1,rptfq2,charq
- character*79 notexq,inameq
- character*40 pathnameq
- character*44 basenameq
- character*24 fmtq
- character*20 voltxtq
- character*120 instrq,titleq,compoq
- common /comlast/ islast,usevshrink
- logical usevshrink,stickyS,OptLineBreakTies,autofbon
- common /combjmp/ ivbj1,ivbj2,isbjmp,isbj2,multbj1
- common /comtitl/ instrq,titleq,compoq,headlog,inskip,ncskip,
- * inhead
- common /cominbot/ inbothd
- common /comfig/ itfig(2,74),figq(2,74),ivupfig(2,74),nfigs(2),
- * fullsize(nm),ivxfig2,ivvfig(2,74)
- common /comnsp/ space(80),nb,prevtn(nm),
- * flgndv(nm),flgndb,eskgnd,ptsgnd,ivmxsav(nm,2),nvmxsav(nm)
- common /comstart/ facmtr
- common /comfb/ nfb(nm),t1fb(nm,40),t2fb(nm,40),ulfbq(nm,40),ifb,
- * tautofb,autofbon,t1autofb
- common /comget/ lastchar,rptnd1,sluron(nm,2),fbon,ornrpt,stickyS,
- * movbrk,movnmp,movdnp,movgap,parmov,fintstf,gintstf,
- * rptprev,equalize,rptfq1,rptfq2
- common /combeam/ ibmtyp
- common /comnotes/ nnodur,lastlev,ndlev(nm,2),shifton,setis,notcrd,
- * npreslur,was2(nm),ninow,nobar1,nsystp(75),ipage,
- * OptLineBreakTies,HeaderSpecial
- common /comtop / itopfacteur,ibotfacteur,interfacteur,isig0,
- * isig,lastisig,fracindent,widthpt,height,hoffpt,voffpt,idsig,
- * lnam(nm),inameq(nm)
- common /comas1/ naskb,task(40),wask(40),elask(40)
- common /comas2/ nasksys,wasksys(800),elasksys(800)
- common /comas3/ ask(2500),iask,topmods
- common /comask/ bar1syst,fixednew,scaldold,
- * wheadpt,fbar,poenom
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- common /comsln/ is1n1,is2n1,irzbnd,isnx
- common /comgrace/ ivg(37),ipg(37),nolevg(74),itoff(2,74),aftshft,
- * nng(37),ngstrt(37),ibarmbr,mbrest,xb4mbr,
- * noffseg,ngrace,nvolt,ivlit(83),iplit(83),nlit,
- * graspace(37),
- * lenlit(83),multg(37),upg(37),slurg(37),slashg(37),
- * naccg(74),voltxtq(6),litq(83)
- logical upg,slurg,slashg,fbon,ornrpt,shifton,isbjmp,notcrd,was2,
- * isbj2,fontslur,WrotePsslurDefaults,HeaderSpecial
- common /comivxudorn/ivxudorn(63)
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- character*128 litq,lnholdq
- logical upslur,bar1syst,vshrink,lrpt,rrpt,lrptpend,
- * ispoi,bcspec,topmods,headlog,clchb,clchv(nm),flgndb,
- * btest,sluron,setis,nobar1
- common /comcc/ ncc(nm),tcc(nm,10),ncmidcc(nm,10),
- * maxdotmv(nm),ndotmv(nm),updot(nm,20),rtdot(nm,20)
- common /compoi/ ispoi
- common /combc/ bcspec
- common /comeon/ eonk,ewmxk
- common /spfacs/ grafac,acgfac,accfac,xspfac,xb4fac,clefac,emgfac,
- * flagfac,dotfac,bacfac,agc1fac,gslfac,arpfac,
- * rptfac,lrrptfac,dbarfac,ddbarfac,dotsfac,upstmfac,
- * rtshfac
- common /comhsp/ hpttot(176)
- common /combmh/ bmhgt,clefend
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /commac/ macnum,mrecord,mplay,macuse,icchold,lnholdq,endmac
- common /comudsp/udsp(50),tudsp(50),nudsp,udoff(nm,20),nudoff(nm)
- common /strtmid/ ihnum3,flipend(nm),ixrest(nm)
- common /comarp/ narp,tar(8),ivar1(8),ipar1(8),levar1(8),ncmar1(8),
- * xinsnow,lowdot
- common /comnvi/ nsperi(nm),nspern(nm),rename,iiorig(nm)
- common /commus/ musize,whead20
- common /comtol/ tol
- common /comdyn/ ndyn,idyndat(99),levdsav(nm),ivowg(12),hoh1(12),
- * hoh2(12),hoh2h1(2),ntxtdyn,ivxiptxt(41),txtdynq(41),
- * idynda2(99),levhssav(nm),listcresc,listdecresc
- character*128 txtdynq
- logical mrecord,mplay,endmac,flipend,istype0,lowdot,rename,ispstie
- integer*2 mmidi
- logical restpend,relacc,notmain,twoline,ismidi,crdacc,equalize,
- * ismbr,putmbr
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- common /comcb/ nbc,ibcdata(36)
- common /comclefq/ clefq
- common /comArpShift/NumArpShift,IvArpShift(20),IpArpShift(20),
- * ArpShift(20)
- common /comligfont/ isligfont
- logical isligfont
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
- common /combibarcnt/ ibarcnt
- character*40 nmq
- common /commidisig/ midisig
- common /comclefrests/ centrests
- logical newclef, centrests
- common /comlyr/ inputmlyr
- logical inputmlyr
- common /combottop/ botamt,topamt,bottopgap
- logical bottopgap
- common /comis4bignv/ is4bignv,AIset
- logical is4bignv,AIset
- common /comhair/ idhairuse,idhair(nm)
- common /comc8flag/ c8flag(nm)
- logical c8flag
- common /comshort/ shortfrac,codafrac,ishort,mbrsum,nmbr,nocodabn,
- * poefa
- real*4 poefa(125)
- logical nocodabn
- character*3 shortfraq,rendq
- bottopgap = .false.
- inputmlyr = .false.
- idhairuse = 0
- if (.not.optimize) then
- print*
- print*,'Starting second PMX pass'
- print*
- write(15,'(a)')'Starting second PMX pass'
- end if
- newclef = .false.
- centrests = .false.
- ncalls = ncalls+1
- islast = inlast
- macuse = 0
- isyscnt = 0
- stemmax = 8.2
- stemmin = 3.9
- stemlen = 6.0
- sq = chax(92)
- ignorenats = .false.
- newmbrhgt = .false.
- bcspec = .true.
- topmods = .false.
- ismbr = .false.
- read(12,'(a)')basenameq
- read(12,*)lbase
- read(12,*)fbar,wheadpt,etait,etatc,etacs1,etatop,
- * etabot,inbothd,inhnoh,isig
- ilbuf = 1
- ipbuf = 0
- call getset(nv,noinst,mtrnuml,mtrdenl,mtrnmp,mtrdnp,xmtrnum0,
- * npages,nsyst,musicsize,fracindent,istype0,inameq,
- * clefq,sepsymq,pathnameq,lpath,isig0)
- if (ismidi) then
-c
-c Initial key signature and meter for pickup bar
-c 130313 Unless explicit miditranspose for all parts (to be dealt with later),
-c want concert sig (isig0) here. K+n+m will have changed sig to isig
-c call midievent('k',isig,0)
-c 130316
-c call midievent('k',isig0,0)
-c call midievent('k',midisig,0)
-c
-c Above is probably cosmetic
-c call midievent('k',midisig,0)
- if (xmtrnum0 .gt. tol) then
-c
-c We have a pickup. Some tricky stuff to get a meter:
-c
- xntrial = xmtrnum0
- do 5 ip2 = 0 , 5
- if (abs(mod(xntrial,1.)) .lt. tol) go to 6
- xntrial = xntrial*2
-5 continue
- print*,'Problem finding meter for pickup bar'
- xntrial = 1.
- ip2 = 0
-6 continue
- call midievent('m',nint(xntrial),2**ip2*mtrdenl)
- else
-c
-c No pickup, enter the starting meter
-c
- call midievent('m',mtrnuml,mtrdenl)
- end if
- end if
-c
-c Set musicsize from value passed in common, due to possible reset by S[n]m16
-c
- musicsize = musize
- read(12,*)npages,widthpt,height,hoffpt,voffpt,nsyst,
- * (nsystp(ipa),xnsttop(ipa),xintstaff(ipa),ipa=1,npages),iauto
-c
-c If default width ever changes, must adjust this stmt.
-c
- slfac1 = 0.00569*524./widthpt
- figbass = .false.
- read(13,*)ifig
- if (ifig .eq. 1) then
- figbass = .true.
- open(14,status='SCRATCH')
- write(14,'(a)')sq//'def'//sq//'fixdrop{'//sq//'advance'//sq//
- * 'sysno by 1'//sq//'ifcase'//sq//'sysno%'
- end if
- lastchar = .false.
- ibcoff = 0
- if (xmtrnum0 .gt. 0.) ibcoff = -1
- open(11,status='SCRATCH')
-c
-c vshrink for the first page is calculated in topfile,
-c and if true set interstaff=10. vshrink affects Titles.
-c Must also save vshrink for page ending.
-c
- call topfile(basenameq,lbase,nv,clefq,noinst,musicsize,
- * xintstaff(1),mtrnmp,mtrdnp,vshrink,fbar,fontslur)
-c
-c ninow is working value of # of instruments. noinst is max #, and # at start.
-c
- ninow = noinst
-c
-c Save original printed meter in case movement breaks
-c
- movnmp = mtrnmp
- movdnp = mtrdnp
-c
- if (islast .and. figbass .and. musicsize.eq.16)
- * write(11,'(a)')sq//'def'//sq//'figfont{'//sq//'eightrm}%'
-c
- if (islast .and. isligfont) then
- if (musicsize .eq. 16) then
- write(11,'(a)')sq//'font'//sq//'ligfont=cmrj at 8pt%'
- else
- write(11,'(a)')sq//'font'//sq//'ligfont=cmrj at 10pt%'
- end if
- end if
- lenbeat = ifnodur(mtrdenl,'x')
- if (mtrdenl .eq. 2) lenbeat = 16
- lenb1 = mtrnuml*lenbeat
- if (mtrdenl .eq. 2) lenb1 = lenb1*2
- call setmeter(mtrnuml,mtrdenl,ibmtyp,ibmrep)
- lenb0 = nint(xmtrnum0*lenbeat)
- if (mtrdenl .eq. 2) lenb0 = lenb0*2
- if (lenb0 .ne. 0) then
- if (islast) write(11,'(a)')sq//'advance'//sq//'barno by -1'
- lenbar = lenb0
- else
- lenbar = lenb1
- end if
-c
-c Initialize full-program variables
-c
- fixednew = 0.
- scaldold = 0.
- fintstf = -1.
- gintstf = 1.
- nasksys = 0
- ibarcnt = 0
- iline = 0
- movbrk = 0
- isystpg = 0
- ipage = 1
- iccount = 128
- iask = 0
- nhstot = 0
- nb = 1
- if (.not.optimize) jprntb = 81
- idsig = 0
- iflagbot = 0
-c
-c Next 5 are raise-barno parameters. irzbnd is integer part of default level.
-c
- irzbnd = 3
- if (isig.eq.3 .and. clefq(nv).eq.'t') irzbnd = 4
- is1n1 = 0
- isnx = 0
- SlurCurve = 0.
- ishort = 0
- nocodabn = .false.
- mbrsum = 0
- nmbr = 0
-c
-c 111109 Made global rather than per gulp
-c
- ndyn = 0
- ispoi = .false.
- slint = .false.
- lrptpend = .false.
- rptnd1 = .false.
- rptfq2 = 'E'
- rptprev = .false.
- onvolt = .false.
- flgndb = .false.
- fbon = .false.
- shifton = .false.
- ornrpt = .false.
- setis = .false.
- lowdot = .false.
- rename = .false.
- nobar1 = .false.
- equalize = .false.
- usevshrink = .true.
- WrotePsslurDefaults = .false.
- OptLineBreakTies = .false.
- HeaderSpecial = .false.
-c
-c vshrink is initialized in topfile
-c
- stickyS = .false.
-c
-c ixrest = 1 or 2 if xtup has started with a rest
-c
- do 1 ivx = 1 , nm
- ixrest(ivx) = 0
- fullsize(ivx) = 1.
-c
-c Set legacy note level to middle c as default
-c
- ndlev(ivx,1) = 29
- ndlev(ivx,2) = 29
-1 continue
- npreslur = 0
- nhssys = 0
- listslur = 0
- do 31 i = 1 , 202
- isdat1(i) = 0
- isdat2(i) = 0
-31 continue
- nsdat = 0
-c
-c Initialize flag for figures in any other voice than 1
-c
- ivxfig2 = 0
-c
-c Initialize for loop over gulps
-c
- firstgulp = .true.
-c
-c Start a gulp
-c
-30 loop = .true.
- notcrd = .true.
- isbjmp = .false.
- isbj2 = .false.
- autofbon = .false.
- tautofb = 0.
- nbars = 0
- nfigs(1) = 0
- nfigs(2) = 0
- ngrace = 0
- ntrill = 0
- ncrd = 0
- nudorn = 0
- nlit = 0
- nvolt = 0
- ibarmbr = 0
- nudsp = 0
-c ndyn = 0 ! 111109
- ntxtdyn = 0
- nbc = 0
- NumArpShift = 0
- do 3 i = 1 , 37
- graspace(i) = 0.
-3 continue
-c
-c Now initialize up to nv. Do it in getnote as r'qd for 2nd voices per syst.
-c and also if nv increases in an 'M' directive.
-c
- do 4 iv = 1 , nv
- call newvoice(iv,clefq(iv),.false.)
-4 continue
-c
-c Check if endsymbol was set earlier
-c
- if (rptnd1) then
- rptnd1 = .false.
- rptfq2 = rptfq1
- else
-c
-c Only use if movbrk>0, to signal default ('RD')
-c
- rptfq2 = 'E'
- end if
- iv = 1
- ivx = 1
-2 if (loop) then
-c
-c Within this loop, nv voices are filled up for the duration of the block.
-c On exit (loop=.false.) the following are set: nnl(nv),itsofar(nv)
-c nolev(nv,nnl(nv)),nodur(..),accq(..),irest(..).
-c nbars is for this input block.
-c Only at the beginning of an input block will there be a possible mtr change,
-c signalled by a nonzero mtrnuml. (which will be re-zeroed right after change)
-c
- call getnote(loop)
- if (lastchar) go to 40
- go to 2
- end if
-c
-c Finished an input block (gulp).
-c
- if (ismidi) then
-c
-c Put rests into midi array for 2nd lines that were not used in this gulp.
-c
- do 60 iv = 1 , nv
- if (twoline(iv) .and. nvmx(iv).eq.1) then
- if (firstgulp .and. lenb0.ne.0) then
- call addmidi(midchan(iv,2),0,0,0,
- * (nbars-1.)*lenbar+lenb0,.true.,.false.)
- else
- call addmidi(midchan(iv,2),0,0,0,1.*nbars*lenbar,.true.,
- * .false.)
- end if
- end if
-60 continue
- end if
- nvolt = 0
- do 28 iv = 1 , nm
- nudoff(iv) = 0
- maxdotmv(iv) = ndotmv(iv)
- ndotmv(iv) = 0
-28 continue
-c
-c Put stuff at top of p.1. Must wait until now to have read title info.
-c
- if (ibarcnt .eq. 0) then
- call puttitle(inhnoh,xnsttop(ipage),
- * etatop,sq,etait,etatc,etacs1,nv,vshrink,sepsymq)
- if (HeaderSpecial)
-c
-c Write special header for first page
-c
- * write(11,'(a)')chax(92)//'special{header=psslurs.pro}%'
- end if
- do 10 ibar = 1 , nbars
- ibarcnt = ibarcnt+1
- bar1syst = ibarcnt .eq. iauto
- ndig = max(0,int(log10(.001+ibarcnt+ibcoff)))
- if (islast)
- * write(11,'(a11,i'//chax(50+ndig)//')')
- * '% Bar count',ibarcnt+ibcoff
- if (ibar .ne. ibarmbr) then
- if (.not.optimize) call outbar(ibarcnt+ibcoff,jprntb)
- else
- if (.not.optimize) then
- write(*,'(/,a20,i4,a1,i4)')' Multibar rest, bars',
- * ibarcnt+ibcoff,'-',ibarcnt+ibcoff+mbrest-1
- write(15,'(/,a20,i4,a1,i4)')' Multibar rest, bars',
- * ibarcnt+ibcoff,'-',ibarcnt+ibcoff+mbrest-1
- jprntb = 0
- end if
- ibcoff = ibcoff+mbrest-1
-c if (ibar.eq.1 .and. firstgulp .and.
-c * .not.btest(islur(1,1),5)) xb4mbr = facmtr*musicsize
- if (ibar.eq.1 .and. firstgulp .and.
- * .not.btest(islur(1,1),5)) xb4mbr = -.2*musicsize
- end if
-c
-c Move the read to after end-of-bar hardspace checks, so we get right poenom
-c at end of a line.
-c if (bar1syst) read(12,*) poenom
-c
-c Check for clef at start of bar. No slide yet. Also flags at end of prev.
-c bar. This block is run at the start of every bar. May fail for flag at
-c end of last bar. To account for necc. hardspaces, compute and store
-c nhssys = # of hard spaces for this system
-c hesk(nhssys) = elemskips avialable
-c hpts(nhssys) = hard points needed, including notehead
-c Here, merely insert placeholder into output. Later, when poe is computed,
-c compute additional pts and store them in hpttot(1...nhstot). Finally in
-c subroutine askfig, write true pts where placeholders are.
-c
- ioff = 0
- if (ibar .gt. 1) ioff = nib(1,ibar-1)
- clchb = btest(islur(1,ioff+1),15)
- putmbr = .false.
- if (ismbr) then
- if (clchb) then
-ccc
-ccc Clef change and multi-bar rest coming up. Kluge to get space at end of rest.
-ccc
- write(11,'(a)')sq//'let'//sq//'mbrt'//sq//'mbrest'
- * //sq//'def'//sq//'mbrest#1#2#3{%'
- write(11,'(a14,f4.1,a)')sq//'mbrt{#1}{#2}{',musicsize*.55,
- * '}'//sq//'global'//sq//'let'//sq//'mbrest'//sq//'mbrt}%'
-cc
-cc RDT suggestion is inset blank barline - 160103 Abandoned
-cc
-c write(11,'(a)')sq//'setemptybar'//sq//'bar'//sq//'qspace'
-c * //sq//'advance'//sq//'barno-1'
- end if
- ismbr = .false.
- putmbr = .true.
- end if
- if (ibar .eq. ibarmbr) ismbr = .true.
-c
-c Set flag here so at start of next bar, if there's a clef change, can add space
-c after the mbr with the above kluge
-c
- if (.not.(clchb .or. flgndb)) go to 23
-c
-c Must check available space
-c
- ptsndb = 0.
-c
-c Zero out block signal
-c
- if (clchb) islur(1,ioff+1) = ibclr(islur(1,ioff+1),15)
-c
-c In this loop, we determine how much hardspace is needed (if any)
-c 9/7/97 Note that for last bar in input block, if number of lines of
-c music decreases in new block, highest numbered ones won't be checked
-c since the loop below covers the new nvmx(iv), not necessarily the old
-c one.
-c 4/18/98 Apparently nmxsav was a solution to the above problem
-c
- do 16 iv = 1 , nv
- do 16 kv = 1 , nvmxsav(iv)
- ivx = ivmxsav(iv,kv)
- ptsndv = flgndv(ivx)*wheadpt
- ioff = 0
- if (ibar .gt. 1) then
- ioff = nib(ivx,ibar-1)
- ip = ioff
- if (ibar.gt.2) ip = ioff-nib(ivx,ibar-2)
-c prevtn(ivx) = tnote(iand(ipl(ivx,ip),255))
- prevtn(ivx) = tnote(ipl2(ivx,ip))
-c
-c If ibar=1 (1st bar in input block), prevtn(ivx) was set at end of makeabar.
-c
- end if
-c
-c Only allow clef changes when ivx <= nv
-c
- if (ivx .le. nv) then
- clchv(iv) = clchb .and. btest(islur(iv,ioff+1),11)
- if (clchv(iv)) then
-c
-c Clef change in this voice. Turn off signal. Get space avail.
-c
- islur(iv,ioff+1) = ibclr(islur(iv,ioff+1),11)
- if (abs(prevtn(iv)-space(nb)).lt.tol) ptsndv =
- * ptsndv+clefend*wheadpt
- end if
- end if
- ptsndb = max(ptsndb,ptsndv+wheadpt*xspfac)
-16 continue
-c
-c ???? where is nb set??? nb probably in left over from makeabar
-c
- esk = feon(space(nb)*squez(nb))
- ptsdflt = esk*poenom-wheadpt
-c if ((ptsndb.gt.ptsdflt.or.ptsgnd.gt.0.) .and. movbrk.eq.0) then
- if ((ptsndb.gt.ptsdflt.or.ptsgnd.gt.0.) .and. movbrk.eq.0
- * .and. .not.putmbr) then
-c
-c Must ADD hardspace! So put in a placeholder, and store params for later.
-c
- if (islast) write(11,'(a)')sq//'xardspace{ pt}%'
- nhssys = nhssys+1
- if (ptsndb-ptsdflt .gt. ptsgnd-poenom*eskgnd) then
- hesk(nhssys) = esk
- hpts(nhssys) = ptsndb+wheadpt
- else
- hesk(nhssys) = eskgnd
- hpts(nhssys) = ptsgnd+wheadpt
- end if
- fixednew = fixednew+hpts(nhssys)
- scaldold = scaldold+hesk(nhssys)
- end if
- if (clchb) then
- do 17 iv = 1 , nv
- if (clchv(iv)) then
- notexq = sq//'znotes'
- lnote = 7
- do 24 iiv = 2 , iv
- notexq = notexq(1:lnote)//sepsymq(iiv-1)
- lnote = lnote+1
-24 continue
-c
-c Recompute ioff since it will vary from voice to voice
-c
- if (ibar .eq. 1) then
- ioff = 0
- else
- ioff = nib(iv,ibar-1)
- end if
-c
-c Must call clefsym to get nclef, even if there is a movement break
-c
- call clefsym(islur(iv,ioff+1),fmtq,lclef,nclef)
-c
-c If clefq = '8', must change '0' in pos'n 9 to '8'
-c
- if (btest(ipl(iv,ioff+1),2)) fmtq =
- * fmtq(1:8)//'8'//fmtq(10:10)
- if (movbrk.eq.0 .and.
- * islast)
- * write(11,'(a)')notexq(1:lnote)//fmtq(1:lclef)//sq//'en%'
- call wsclef(iv,ninow,nclef)
-c
-c Set new flag to be used just outside this loop, to kluge
-c any calls to \CenterBar for full-bar rests, to make room for clef.
-c
- newclef = .true.
-c
-c 151220
-c wrong test:
-c If clefq = '8', must add eg \settrebleclefsymbol3\treblelowoct%
-c Replaced with right one. But also, clefq(iv) seems to stay at 8 here,
-c and if we change from TLO to normal clef, need to resetclefsymbols
-c
-c if (clefq(iv) .eq. '8') then
- if (btest(ipl(iv,ioff+1),2)) then
-c
-c Find instrument number for voice iv
-c
- iv1 = 1
- do 1111 iinst = 1 , ninow
- if (iv .lt. iv1+nspern(iinst)) go to 2222
- iv1 = iv1+nspern(iinst)
-1111 continue
- print*
- print*,'Should not be here in pmxb!'
- call stop1()
-2222 continue
- if (iinst .le. 9) then
- write(11,'(a20,i1,a)')sq//'settrebleclefsymbol',iinst,
- * sq//'treblelowoct%'
- else
- write(11,'(a20,i2,a)')sq//'settrebleclefsymbol',iinst,
- * sq//'treblelowoct%'
- end if
- c8flag(iv) = .true.
- else
- if (clefq(iv) .eq. '8') then
- write(11,'(a20)')sq//'resetclefsymbols'
- end if
- end if
- end if
-17 continue
- if (islast) write(11,'(a)')sq//'pmxnewclefs'
- end if
-23 continue
-c
-c Kluge \CenterBar for whole bar rests if necessary
-c
- if (newclef .and. centrests) then
-c write(11,'(a)')sq//'def'//sq//'value{11}%'
- nvalue = nint(.55*musicsize)
- if (nvalue .gt. 10) then
- write(11,'(a11,i2,a2)')
- * sq//'def'//sq//'value{',nvalue,'}%'
- else
- write(11,'(a11,i1,a2)')
- * sq//'def'//sq//'value{',nvalue,'}%'
- end if
- end if
- newclef = .false.
- centrests = .false.
-c
-c End of loop for end-of-bar hardspaces and non-movbrk clef symbol.
-c
- if (bar1syst) then
- read(12,*) poenom
- end if
-c
-c Repeat symbols. Haven't slid down yet, so use islur(1,nib(1,ibar-1)+1)
-c
- if (ibar .eq. 1) then
- islnow = islur(1,1)
-c iornqnow = iornq(1,1)
- iplnow = ipl(1,1)
- else
- islnow = islur(1,nib(1,ibar-1)+1)
-c iornqnow = iornq(1,nib(1,ibar-1)+1)
- iplnow = ipl(1,nib(1,ibar-1)+1)
- end if
-c
-c Check for R-symbols set at end of prior input block
-c
- if (movbrk.eq.0 .and. rptfq2.ne.'E') then
- if (rptfq2 .eq. 'D') then
- islnow = ibset(islnow,26)
- else if (rptfq2 .eq. 'r') then
- islnow = ibset(islnow,6)
- else if (rptfq2 .eq. 'd') then
- islnow = ibset(islnow,8)
- else if (rptfq2 .eq. 'b') then
- islnow = ibset(islnow,25)
- else
- print*
- print*,'Illegal symbol with "R" at end of input block:',
- * rptfq2
- call stop1()
- end if
- rptfq2 = 'E'
- end if
- if (iand(islnow,352) .ne. 0) then
-c
-c Bit 5(lrpt), 6(rrpt), or 8(doublebar) has been set
-c
- lrpt = btest(islnow,5)
- rrpt = btest(islnow,6)
- lrptpend = lrpt.and.bar1syst
- if (lrpt .and. .not.lrptpend) then
- if (rrpt) then
- if (islast) write(11,'(a)')sq//'setleftrightrepeat'
- fixednew = fixednew+wheadpt*lrrptfac-0.4
- else
- if (islast) write(11,'(a)')sq//'setleftrepeat'
- fixednew = fixednew+wheadpt*rptfac-0.4
- end if
- else if (rrpt) then
- if (islast) write(11,'(a)')sq//'setrightrepeat'
- fixednew = fixednew+wheadpt*rptfac-0.4
- else if (btest(islnow,8)) then
- if (islast) write(11,'(a)')sq//'setdoublebar'
- fixednew = fixednew+wheadpt*dbarfac-0.4
- end if
- else if (btest(islnow,26)) then
-c
-c doubleBAR
-c
- if (islast) write(11,'(a)')sq//'setdoubleBAR'
- fixednew = fixednew+wheadpt*ddbarfac-0.4
-c else if (btest(iornqnow,29)) then
- else if (btest(iplnow,0)) then
-c
-c no bar line
-c
-c-- if (islast) write(11,'(a)')sq//'setzalaligne'
-c++
- if (islast) then
- if (movbrk .eq. 0) then
- write(11,'(a)')sq//'setzalaligne'
- else
-c
-c Encountered "Rz" at start of input block at start of new movement, Must
-c use newmovement macro with arg 4 rather than setzalaligne, since former
-c already redefines stoppiece.
-c
- rptfq2 = 'z'
- end if
- end if
-c++
- fixednew = fixednew-0.4
- end if
-c
-c 1st and 2nd endings
-c
- svolta = btest(islnow,7)
- evolta = btest(islnow,9)
- if (evolta) then
- if (btest(islnow,10)) then
- if (islast) write(11,'(a)')sq//'endvoltabox'
- else
- if (islast) write(11,'(a)')sq//'endvolta'
- end if
- onvolt = .false.
- end if
- if (svolta) then
- nvolt = nvolt+1
- lvoltxt = index(voltxtq(nvolt),' ')-1
- if (lvoltxt .eq. 1) then
- if (islast) write(11,'(a)')sq//'Setvolta'
- * //voltxtq(nvolt)(1:1)//'%'
- else
- if (islast) write(11,'(a)')sq//'Setvolta'//'{'//
- * voltxtq(nvolt)(1:lvoltxt)//'}%'
- end if
- onvolt = .true.
- end if
- if (ibar .gt. 1) then
- ipnow = nib(1,ibar-1)+1
- else
- ipnow = 1
- end if
- iplnow = ipl(1,ipnow)
- if (bar1syst) then
-c
-c If listslur>0, then there is at least one slur or tie carried over the break
-c
- ispstie = .false.
- if (OptLineBreakTies .and. .not.fontslur .and. listslur.ne.0
- * .and. islast)
- * call LineBreakTies(isdat1,isdat2,isdat3,isdat4, nsdat,
- * ispstie,sepsymq)
- iline = iline+1
-c
-c End an old system, Start a new system
-c
-c Reduce space before mbrest at start of system
-c Need this even if no accidentals in key signature
-c
- if (ibar.eq.ibarmbr) xb4mbr = -.2*musicsize
-c
- if (iline .ne. 1) then
-c
-c Not first line.
-c Get corrected poe = points/elemskip for *previous* system
-c
- wdpt = widthpt*(1-fracindent)
- poe = (wdpt-fsyst*musicsize-0.4*nbarss-fixednew)/
- * (elsktot+fbar*nbarss-scaldold)
- isyscnt = isyscnt+1
- poevec(isyscnt) = poe
-c
-c Transfer data for system into global arrays to hold until very end
-c
- do 9 ia = 1 , nasksys
- iask = iask+1
- ask(iask) = (wasksys(ia)/poe-abs(elasksys(ia)))
- * /poefa(iline-1)
-c
-c Only admit negative ask if it was user-defined space, signalled by elask<=0.
-c
- if (elasksys(ia).gt.0) ask(iask)=dim(ask(iask),0.)
-9 continue
- do 25 ia = 1 , nhssys
- nhstot = nhstot+1
- hpttot(nhstot) = max(hpts(ia)-hesk(ia)*poe,0.)
-25 continue
-c
-c Reset counters for new system
-c
- scaldold = 0.
- fixednew = 0.
- nasksys = 0
- nhssys = 0
- end if
-c
-c End of if block for first bar of non-first system. Still 1st bar, any system
-c
- if (islast.and.figbass) write(11,'(a)')sq//'fixdrop%'
- isystpg = isystpg+1
-c
-c Try moving the next stmt way down, to fix a bug and get \eject printed at
-c end of single-system page.
-c if (isystpg .eq. nsystp(ipage)) isystpg = 0
- read(12,*)nbarss,elsktot,fsyst,frac,eonk,ewmxk
- if (iline .gt. 1) fracindent=frac
- if (figbass) then
- ifigdr(1,iline) = 4
- ifigdr(2,iline) = 4
- end if
- slfac = slfac1*musicsize*elsktot
- if (iline .ne. 1) then
-c
-c For the line just _finished_, put figdrop in separate file.
-c
- if (figbass) write(14,'(a9,i2,a10,i2,1x,a4)')
- * sq//'figdrop=',ifigdr(1,iline-1),
- * ' '//sq//'figdtwo=',ifigdr(2,iline-1),sq//'or%'
-c
-c Check slurs in top staff for interference w/ barno. Only check when
-c # if digits in barno >= |isig| But to keep on/off phasing, must ALWAYS
-c keep track of ons and offs when |isig|<=3.
-c
- ndigbn = int(alog10(ibarcnt+ibcoff+.01))+1
- isnx = 0
- if (ndigbn.ge.iabs(isig) .and. is1n1.gt.0) then
-c
-c There's a slur in top voice over the line break, hgt=is1n1, idcode=is2n1
-c Look for termination in remainder of this input block. If not found,
-c just use is1n1. Remember, haven't slid down yet.
-c
- ioff = 0
- if (ibar .gt. 1) ioff = nib(ivmx(nv,nvmx(nv)),ibar-1)
- do 50 isdat = 1 , nsdat
- if (igetbits(isdat1(isdat),5,13).eq.ivmx(nv,nvmx(nv))
- * .and. .not.btest(isdat1(isdat),11)
- * .and. igetbits(isdat1(isdat),7,19).eq.is2n1) then
-c
-c Found slur ending. Just check note height, can't do fine adjustments.
-c
-c is1n1 = max(is1n1,igetbits(isdat2(nsdat),7,19))
- is1n1 = max(is1n1,igetbits(isdat2(isdat),7,19))
- go to 51
- end if
-50 continue
-c
-c If exiting loop normally, did not find end of slur. c'est la vie.
-c
-51 continue
- isnx = idim(is1n1,ncmid(nv,1)+1+irzbnd)
- if (isnx .gt. 0) then
-c
-c AHA! Slur likely to interfere with barno.
-c
-c Modified 090525 to use \bnrs
-c
- slint = .true.
- fmtq = '(a16,i1,a14)'
- if (irzbnd+isnx .gt. 9) fmtq = '(a16,i2,a14)'
- if (islast) write(11,fmtq)sq//'def'//sq//'raisebarno{',
- * irzbnd+isnx,'.5'//sq//'internote}%'
-c if (islast) then
-c if (isnx .le. 9) then
-c write(11,'(a5,i1,a2)')sq//'bnrs',isnx,'0%'
-c else
-c write(11,'(a6,i2,a3)')sq//'bnrs{',isnx,'}0%'
-c end if
-c end if
-c
- end if
- end if
- if (movbrk .gt. 0) then
-c
-c movbrk = 0
-c Move the reset down, so can use movbrk>0 to stop extra meter prints.
-c
-c New movement. Redefine stoppiece, contpiece. These will be called either
-c explicitly or as part of alaligne.
-c indsym = 0,1,2 for doubleBAR , doublebar, rightrepeat.
-c This is passed to \newmovement.
-c
- if (rptfq2 .eq. 'E') rptfq2 = 'D'
- indsym = index('Ddrbz',rptfq2)-1
- rptfq2 = 'E'
-c
-c Also check for Rd or Rr set the normal way
-c
- if (btest(islnow,8)) then
- indsym = 1
- else if (btest(islnow,6)) then
- indsym = 2
- end if
- if (indsym .lt. 0) then
- print*
- print*,'Illegal end symbol before "/"'
- call stop1()
- end if
-c
-c Check for continuation (no bar number reset)
-c
- if (islast.and.nobar1) then
- write(11,'(a)')sq//'advance'//sq//'barno1'
- * //sq//'global'//sq//'startbarno'//sq//'barno%'
-c
-c Need above for shortening case mcm with Mc
-c
- end if
-c
-c Per Rainer's suggestion, changing \nbinstruments via 3rd arg of \newmovement
-c
-c if (movgap .lt. 10) then
-c if (islast) write(11,'(a12,2i1,a1)')
-c * sq//'newmovement',movgap,indsym,'%'
-c else
-c if (islast) write(11,'(a13,i2,a1,i1,a1)')
-c * sq//'newmovement{',movgap,'}',indsym,'%'
-c end if
- if (islast) then
- nmq = sq//'newmovement'
- lnmq = 12
- if (movgap .lt. 10) then
- lnmq = 14
- write(nmq(13:14),'(2i1)')movgap,indsym
- else
- lnmq = 17
- write(nmq(13:17),'(a1,i2,a1,i1)')'{',movgap,'}',indsym
- end if
- if (ninow .lt. 10) then
- lnmq = lnmq+1
- write(nmq(lnmq:lnmq),'(i1)')ninow
- else
- lnmq = lnmq+4
- write(nmq(lnmq-3:lnmq),'(a1,i2,a1)')'{',ninow,'}'
- end if
- lnmq = lnmq+1
- write(nmq(lnmq:lnmq),'(a1)')'%'
- if (ishort .eq. 4) then
-c
-c Ending Short-blank-coda
-c
- write(11,'(a)')sq//'Endpiece}}%'
- end if
- write(11,'(a)')nmq(1:lnmq)
- if (ishort .eq. 2) then
- write(11,'(a)')sq//'stoppiece}}%'
- ishort = 5
- else if (ishort .eq. 4) then
- write(11,'(a)')sq//'let'//sq//'stoppiece'//sq//
- * 'holdstop%'
-c
-c Since we bypass newmovement, need to set the vertical gap.
-c
- if (movgap .gt. 10) then
- write(11,'(a6,i2,a11)')
- * sq//'vskip',movgap,sq//'internote%'
- else if (movgap .gt. 0) then
- write(11,'(a6,i1,a11)')
- * sq//'vskip',movgap,sq//'internote%'
- end if
- ishort = 6
- end if
- if ((ishort.eq.5.or.ishort.eq.6).and..not.rename) then
- do 62 iinst = 1 , ninow
- if (islast) then
- if (iinst .lt. 10) then
- write(11,'(a8,i1,a3)')sq//'setname',iinst,'{}%'
- else
- write(11,'(a9,i2,a4)')sq//'setname{',iinst,
- * '}{}%'
- end if
- end if
-62 continue
- end if
- rename = .false.
- end if
-c
-c Change generalmeter if necessary
-c
- if (islast) then
- call wgmeter(mtrnmp,mtrdnp)
- end if
- mtrnuml = 0
-c
-c (Moved all name-writing to getnote, right when 'M' is detected)
-c
- if (btest(iplnow,28)) then
-c
-c Key signature at movement break
-c
- iplnow = ibclr(iplnow,28)
- if (isig .gt. 0) then
- if (islast) write(11,'(a18,i1,a2)')
- * sq//'generalsignature{',isig,'}%'
- else
- if (islast) write(11,'(a18,i2,a2)')
- * sq//'generalsignature{',isig,'}%'
- end if
- if (islast .and. LaterInstTrans) then
- call Writesetsign(nInstTrans,iInstTrans,iTransKey,
- * LaterInstTrans)
- end if
- end if
- if (parmov .ge. -.1) then
-c
-c Resent paragraph indentation
-c
- ipi = parmov*widthpt+.1
- if (ipi .lt. 10) then
- if (islast) write(11,'(a11,i1,a2)')
- * sq//'parindent ',ipi,'pt'
- else if (ipi .lt. 100) then
- if (islast)
- * write(11,'(a11,i2,a2)')sq//'parindent ',ipi,'pt'
- else
- if (islast)
- * write(11,'(a11,i3,a2)')sq//'parindent ',ipi,'pt'
- end if
- end if
- if (ishort .eq. 6) then
- if (iflagbot .eq. 1) then
- write(11,'(a)')sq//'vfill'//sq//'eject'
-c iflagbot = 0
-c ishort = 0
- else
- write(11,'(a)')sq//'contpiece'
- end if
-c
-c Zero ishort later trying to write alaligne
-c
- end if
- end if ! End of movement break stuff
- if (isystpg .eq. 1) then
-c
-c First line on a page (not 1st page, still first bar). Tidy up old page
-c then eject.
-c
-c Removed this 5/13/01 as it was causing double endvoltas. This probably
-c is only needed at the end in case there is no endvolta specified.
-c if (onvolt) then
-cc if (islast) write(11,'(a)')sq//'endvoltabox%'
-cc onvolt = .false.
-c end if
-c
-c
-c Check for meter change at start of a new PAGE
-c
- if (mtrnuml .gt. 0) then
-c
-c Meter change at start of a new page. Ugly repeated coding here.
-c
- mtrnms = mtrnuml
- call setmeter(mtrnuml,mtrdenl,ibmtyp,ibmrep)
- mtrnuml = mtrnms
- if (movbrk .eq. 0 .and. islast) then
- call wgmeter(mtrnmp,mtrdnp)
- end if
- end if
-c
-c Key signature change?
-c
- if (btest(iplnow,28) .and. movbrk.eq.0) then
- notexq = sq//'xbar'//sq//'addspace{-'//sq//
- * 'afterruleskip}'//sq//'generalsignature{'
- lnote = 49
- if (isig .lt. 0) then
- notexq = notexq(1:49)//'-'
- lnote = 50
- end if
- if (islast) write(11,'(a)')
- * notexq(1:lnote)//chax(48+abs(isig))//'}%'
- if (islast .and. LaterInstTrans) then
- call Writesetsign(nInstTrans,iInstTrans,iTransKey,
- * LaterInstTrans)
- end if
- if (islast .and. ignorenats)
- * write(11,'(a)')sq//'ignorenats%'
- if (islast) write(11,'(a)')sq//'zchangecontext'//sq
- * //'addspace{-'//sq//'afterruleskip}'
- * //sq//'zstoppiece'//sq//'PMXbarnotrue%'
- else if (mtrnuml.gt.0 .and. movbrk.eq.0) then
-c
-c Meter change but no signature change
-c
- if (islast)
- * write(11,'(a)')sq//'xchangecontext'//sq//'addspace{-'//
- * sq//'afterruleskip}'//sq//'let'//sq//'bnat'//sq//
- * 'barnoadd%'
- if (islast)
- * write(11,'(a)')sq//'def'//sq//'barnoadd{'//sq//'let'//
- * sq//'barnoadd'//sq//'bnat}'//sq//'zstoppiece%'
- else
- if (islast) then
- if ((ishort.eq.4.or.ishort.eq.2)
- * .and. iflagbot.eq.1) then
- ntmp = ibarcnt-ibarcnt0-nmbr+mbrsum
- if (ntmp .le. 9) then
- shortfraq(1:1) = char(48+ntmp)
- lntmp = 1
- else
- write(shortfraq(1:2),'(i2)')ntmp
- lntmp = 2
- end if
- write(11,'(a)')sq//'endpiece}}'//sq//'advance'//sq
- * //'barno'//shortfraq(1:lntmp)
-c
-c Move down so can insert fil@begin
-c iflagbot = 0
-c ishort = 0
-c
- else if ((ishort.ne.6.and.ishort.ne.2) .or.
- * iflagbot.ne.1) then
- write(11,'(a)')sq//'stoppiece%'
- end if
- end if
- end if
-c
-c This is the key spot when vshrink is used. Value of vshrink here comes from
-c just after the prior pagebreak, i.e., it is not affected by "Av"
-c that may have been entered at this pagebreak, since that only affects usevshrink.
-c So choose page *ending* (with or without \vfill) depending on old vshrink. Then
-c check value of usevshrink to reset vshrink if necessary for the new page, where
-c we have to set \interstaff and later call puttitle.
-c Top of first page needs special treatment. For this we use
-c novshrinktop, which was set in g1etnote on the first pass, since on
-c second pass, vshrink at top of page one is dealt with in topfile, which is called
-c *before* any reading in any "Av" at the top of the first input block.
-c
- if (.not.vshrink) then
- if (islast .and. bottopgap) then
- if (abs(botamt) .gt. 1.e-6) then
- if (botamt .gt. 9.95) then
- fmtq = '(a,f4.1,a)'
- else if (botamt .gt. 0.) then
- fmtq = '(a,f3.1,a)'
- else if (botamt .gt. -9.95) then
- fmtq = '(a,f4.1,a)'
- else
- fmtq = '(a,f5.1,a)'
- end if
- write(11,fmtq)sq//'null'//sq//'vskip',botamt,
- * sq//'Internote%'
- end if
- end if
- xnstbot = xnsttop(ipage)*etabot/etatop
- if (xnstbot .lt. 9.95) then
- fmtq = '(a,f3.1,a)'
- else
- fmtq = '(a,f4.1,a)'
- end if
- if (islast) write(11,fmtq)sq//'vskip',xnstbot,
- * sq//'Interligne'//sq//'eject%'
- if (islast .and. bottopgap) then
- if (abs(topamt) .gt. 1.e-6) then
- if (topamt .gt. 9.95) then
- fmtq = '(a,f4.1,a)'
- else if (topamt .gt. 0.) then
- fmtq = '(a,f3.1,a)'
- else if (topamt .gt. -9.95) then
- fmtq = '(a,f4.1,a)'
- else
- fmtq = '(a,f5.1,a)'
- end if
- write(11,fmtq)sq//'null'//sq//'vskip',topamt,
- * sq//'Internote%'
- end if
- bottopgap = .false.
- end if
- else
- if (islast) then
- if (iflagbot.eq.1.and.ishort.eq.6)then
-c
-c cleanup for case bcm only
-c
- iflagbot = 0
- ishort = 0
- else
- write(11,'(a)') sq//'vfill'//sq//'eject%'
- if (iflagbot.eq.1.and.ishort.eq.2) then
-c Clean up case bsl only
- write(11,'(a)')sq//'makeatletter'//sq//'fil@begin'
- * //sq//'makeatother'
- iflagbot = 0
- ishort = 0
- end if
- end if
- end if
- end if
- ipage = ipage+1
-c
-c Now that page is ejected, compute new vshrink
-c
- vshrink = xintstaff(ipage).gt.20 .and. usevshrink
- if (vshrink) then
- xinsnow = 10
- else
- xinsnow = xintstaff(ipage)
- end if
- if (fintstf.gt.0 .and. ipage.gt.1) then
- xinsnow = xinsnow*fintstf/gintstf
- fintstf = -1.
- end if
- if (xinsnow .lt. 9.95) then
- fmtq = '(a,f3.1,a)'
- else if (xinsnow .lt. 99.95) then
- fmtq = '(a,f4.1,a)'
- else
- fmtq = '(a,f5.1,a)'
- end if
-c
-c Vertical spacing parameters, then restart
-c
- if (is4bignv) xinsnow = .95*xinsnow
- if (islast) then
- write(11,fmtq)sq//'interstaff{',xinsnow,
- * '}'//sq//'contpiece'
- end if
-c
-c Check for meter change at start of a new PAGE
-c
- if (mtrnuml .gt. 0) then
-c
-c Meter change at start of a new page
-c
- call setmeter(mtrnuml,mtrdenl,ibmtyp,ibmrep)
- if (movbrk .eq. 0) then
- if (islast) then
- call wgmeter(mtrnmp,mtrdnp)
- end if
- if (mtrdnp .gt. 0) then
- if (islast) write(11,'(a)')sq//'newtimes2%'
- if (ibar .eq. ibarmbr) xb4mbr = -.2*musicsize
- end if
- end if
- end if
-c
-c If no real titles here, which there probably will never be, make vertical
-c space at page top with \titles{...}. headlog=.false.<=>no real titles
-c
- if (ishort.eq.4 .and. iflagbot.eq.1) then
- ishort = 0
- iflagbot = 0
- write(11,'(a)')sq//'makeatletter'//sq//'fil@begin'//sq//
- * 'makeatother'
- end if
- call puttitle(inhnoh,xnsttop(ipage),etatop,
- * sq,etait,etatc,etacs1,nv,vshrink,sepsymq)
- if (HeaderSpecial)
-c
-c Write special header for first page
-c
- * write(11,'(a)')chax(92)//'special{header=psslurs.pro}%'
- else
-c
-c First bar of system, not a new page, force line break
-c
- if (btest(iplnow,28)) then
-c
-c Signature change
-c
- notexq = sq//'xbar'//sq//'addspace{-'//sq//
- * 'afterruleskip}'//sq//'generalsignature{'
- lnote = 49
- if (isig .lt. 0) then
- notexq = notexq(1:49)//'-'
- lnote = 50
- end if
- if (islast) write(11,'(a)')notexq(1:lnote)
- * //chax(48+abs(isig))//'}%'
- if (islast .and. LaterInstTrans) then
- call Writesetsign(nInstTrans,iInstTrans,iTransKey,
- * LaterInstTrans)
- end if
- if (islast) write(11,'(a)')sq//'advance'//sq//'barno-1%'
- if (mtrnuml .ne. 0) then
-c
-c Meter+sig change, new line, may need mods if movement break here.
-c
- call setmeter(mtrnuml,mtrdenl,ibmtyp,ibmrep)
- if (islast) then
- call wgmeter(mtrnmp,mtrdnp)
- if (ignorenats) write(11,'(a)')sq//'ignorenats%'
- write(11,'(a)')sq//'xchangecontext'//sq//
- * 'addspace{-'//sq//'afterruleskip}'
- * //sq//'zstoppiece'//sq//'PMXbarnotrue'//sq//'contpiece%'
- write(11,'(a)')sq//'addspace{-'//sq
- * //'afterruleskip}%'
- call wgmeter(mtrnmp,mtrdnp)
- if (ignorenats) write(11,'(a)')sq//'ignorenats%'
- write(11,'(a)')sq//'zchangecontext'
- end if
- else
- if (islast .and. ignorenats)
- * write(11,'(a)')sq//'ignorenats%'
- if (islast) write(11,'(a)')sq//'xchangecontext'//sq//
- * 'addspace{-'//sq//'afterruleskip}'
- * //sq//'zstoppiece'//sq//'PMXbarnotrue'//sq//'contpiece%'
- end if
- else if (mtrnuml.eq.0.and.(ishort.eq.0.or.ishort.eq.6))
- * then
-c
-c No meter change
-c
- if (islast) then
- if (ishort .ne. 6) then
- write(11,'(a)')sq//'alaligne'
- else
- ishort = 0
- end if
- end if
- else if (ishort .ne. 0) then
- if (ishort .eq. 1) then ! Start short line
- write(shortfraq,'(f3.2)')shortfrac
- write(11,'(a)')sq//'stoppiece'//sq//'parindent 0pt'
- write(11,'(a)')sq//'vskip'//sq//'parskip'
- write(11,'(a)')sq//'hbox to'//sq//
- * 'hsize{'//sq//'vbox{'//
- * sq//'hsize='//shortfraq//sq//'hsize%'
- write(11,'(a)')sq//'contpiece'
- write(11,'(a)')sq//'makeatletter'//sq//'fil@begin'
- * //sq//'makeatother'
- ibarcnt0 = ibarcnt
- mbrsum = 0
- ishort = 2
- nmbr = 0
- else if (ishort .eq. 2) then ! End short line, no new mvt
- ntmp = ibarcnt-ibarcnt0-nmbr+mbrsum
- if (ntmp .le. 9) then
- shortfraq(1:1) = char(48+ntmp)
- lntmp = 1
- else
- write(shortfraq(1:2),'(i2)')ntmp
- lntmp = 2
- end if
- write(11,'(a)')sq//'stoppiece}}'//sq//'advance'//sq
- * //'barno'//shortfraq(1:lntmp)
-c
-c Not clear why we needed this
-c //sq//'startbarno'//sq//'barno%'
- write(11,'(a)')sq//'contpiece'
- write(11,'(a)')sq//'makeatletter'//sq//'fil@begin'
- * //sq//'makeatother'
- ishort = 0
- else if (ishort .eq. 5) then ! End short line, new mvt
- if (nobar1) then ! Continue bar numbering
- write(11,'(a)')sq//'advance'//sq
- * //'barno'//char(ibarcnt-ibarcnt0+48)
- * //sq//'startbarno'//sq//'barno%'
-c
-c Must leave in \startbarno to get msm with LMc to work.
-c
- end if
- write(11,'(a)')sq//'startpiece'//sq//'addspace'//sq
- * //'afterruleskip%'
- ishort = 0
- else if (ishort .eq. 3) then ! Mid line gap, start coda
-c May never come thru here. Stuff is done later at least for mcl.pmx
- write(shortfraq,'(f3.2)')codafrac
- write(11,'(a)')sq//'endpiece}'//sq//'advance'//sq
- * //'barno'//char(ibarcnt-ibarcnt0+48)//sq//
- * 'startbarno'//sq//'barno%'
- write(11,'(a)')sq//'hfill'//sq//
- * 'vbox{'//sq//'hsize='//shortfraq//'%'
- write(11,'(a)')sq//'contpiece'
- write(11,'(a)')sq//'makeatletter'//sq//'fil@begin'
- * //sq//'makeatother'
- ishort = 4
- else if (ishort .eq. 4) then ! End coda
- ntmp = ibarcnt-ibarcnt0-nmbr+mbrsum
- if (ntmp .le. 9) then
- shortfraq(1:1) = char(48+ntmp)
- lntmp = 1
- else
- write(shortfraq(1:2),'(i2)')ntmp
- lntmp = 2
- end if
- write(11,'(a)')sq//'endpiece}}'//sq//'advance'//sq
- * //'barno'//shortfraq(1:lntmp)
- write(11,'(a)')sq//'contpiece'
- write(11,'(a)')sq//'makeatletter'//sq//'fil@begin'
- * //sq//'makeatother'
- ishort = 0
- mbrsum = 0
- nmbr = 0
- end if
- else if (mtrnuml .ne. 0) then
-
-c
-c New meter, no new sig, end of line, not new page.
-c
-c \generalmeter{\meterfrac{3}{4}}%
-c \xchangecontext\addspace{-\afterruleskip}%
-c \zalaligne\generalmeter{\meterfrac{3}{4}}\addspace{-\afterruleskip}%
-c \zchangecontext
-c
- call setmeter(mtrnuml,mtrdenl,ibmtyp,ibmrep)
- if (movbrk .eq. 0) then
- if (islast) then
- call wgmeter(mtrnmp,mtrdnp)
- end if
- if (mtrdnp .gt. 0) then
- if (islast) then
- write(11,'(a)')
- * sq//'let'//sq//'bnat'//sq//'barnoadd'
- * //sq//'def'//sq//'barnoadd{'//sq//'empty}%'
- write(11,'(a)')sq//'xchangecontext'//sq//
- * 'addspace{-'//sq//'afterruleskip}'//sq//
- * 'zalaligne'//sq//'let'//sq//'barnoadd'//sq//'bnat'
- call wgmeter(mtrnmp,mtrdnp)
- write(11,'(a)')sq//'addspace{-'//sq//
- * 'afterruleskip}'//sq//'zchangecontext'
- end if
- if (ibar .eq. ibarmbr) xb4mbr = -.2*musicsize
- else
- if (islast) write(11,'(a)')sq//'alaligne'
- end if
- else
- if (islast) write(11,'(a)')sq//'alaligne'
- end if
- end if
- end if
-c
-c Modified 090525 to use \bnrs
-c
- if (slint) then
- slint = .false.
- if (islast) write(11,'(a16,i1,a14)')sq//'def'//sq//
- * 'raisebarno{',irzbnd,'.5'//sq//'internote}%'
- end if
- movbrk = 0
- end if
-c
-c Clean up if we squelched bar number reset at movement break
-c
- if (nobar1) then
- if (islast) write(11,'(a)')sq//'startbarno1'
- nobar1 = .false.
- end if
- read(12,*,end=14)iauto
-14 continue
-c
-c We come thru here for the 1st bar of every system, so initialize is1n1
-c
- is1n1 = 0
-c
-c Brought down from above
-c
- if (isystpg .eq. nsystp(ipage)) then
- isystpg = 0
-c
-c The following is to avoid moving this reset of isystpg, but still send a signal
-c down below for last system shortening events
-c
- if (ishort.eq.2) iflagbot = 1
- end if
-c
-c Check for linebreak ties
-c
- if (ispstie)
- * call LineBreakTies(isdat1,isdat2,isdat3,isdat4,nsdat,
- * ispstie,sepsymq)
- else
-c
-c Not first bar of system
-c
- if (btest(iplnow,28)) then
-c
-c Signature change
-c
- if (mtrnuml .ne. 0) then
-c
-c Meter+signature change mid line, assume no movement break
-c
- call setmeter(mtrnuml,mtrdenl,ibmtyp,ibmrep)
- if (islast) call wgmeter(mtrnmp,mtrdnp)
- notexq = sq//'generalsignature{'
- lnote = 18
- if (isig .lt. 0) then
- notexq = notexq(1:18)//'-'
- lnote = 19
- end if
- if (islast) then
- iptemp = 48+abs(isig)
- charq = chax(iptemp)
- notexq = notexq(1:lnote)//charq//'}%'
- lnote = lnote+3
- write(11,'(a)')notexq(1:lnote)
- if (islast .and. LaterInstTrans) then
- call Writesetsign(nInstTrans,iInstTrans,iTransKey,
- * LaterInstTrans)
- end if
- if (ignorenats) write(11,'(a)')sq//'ignorenats%'
- write(11,'(a)')sq//'xchangecontext%'
- end if
- if (ibar .eq. ibarmbr) then
-c
-c Compute space for multibar rest
-c
- if (lastisig*isig .ge. 0) then
- naccs = max(abs(lastisig),abs(isig))
- else
- naccs = abs(lastisig-isig)
- end if
-c xb4mbr = (facmtr+naccs*.24)*musicsize
- xb4mbr = -.2*musicsize
- end if
- else
-c
-c Signature change only
-c
- notexq = sq//'xbar'//sq//'addspace{-'//sq//
- * 'afterruleskip}'//sq//'generalsignature{'
- lnote = 49
- if (isig .lt. 0) then
- notexq = notexq(1:49)//'-'
- lnote = 50
- end if
- if (islast)
- * write(11,'(a)')notexq(1:lnote)//chax(48+abs(isig))//'}%'
- if (islast .and. LaterInstTrans) then
- call Writesetsign(nInstTrans,iInstTrans,iTransKey,
- * LaterInstTrans)
- end if
- if (islast .and. ignorenats)
- * write(11,'(a)')sq//'ignorenats%'
- if (islast) write(11,'(a)')sq//'zchangecontext'//sq
- * //'addspace{-.5'// sq//'afterruleskip}%'
- if (ibar .eq. ibarmbr) then
-c
-c Compute space for multibar rest
-c
- if (lastisig*isig .ge. 0) then
- naccs = max(abs(lastisig),abs(isig))
- else
- naccs = abs(lastisig-isig)
- end if
-c xb4mbr = naccs*.24*musicsize
- xb4mbr = -.2*musicsize
- end if
- end if
- else if (ishort .eq. 3) then
-c
-c Gap before coda, assumed no signature change!
-c
- ntmp = ibarcnt-ibarcnt0-nmbr+mbrsum
- if (ntmp .le. 9) then
- shortfraq(1:1) = char(48+ntmp)
- lntmp = 1
- else
- write(shortfraq(1:2),'(i2)')ntmp
- lntmp = 2
- end if
- write(11,'(a)')sq//'endpiece}'//sq//'advance'//sq
- * //'barno'//shortfraq(1:lntmp)
- if (nocodabn) then
- write(11,'(a)')sq//'nobarno'
- nocodabn = .false.
- end if
- write(shortfraq,'(f3.2)')codafrac
- write(11,'(a)')sq//'hfill'//sq//
- * 'vbox{'//sq//'hsize='//shortfraq//sq//'hsize%'
- write(11,'(a)')sq//'contpiece'
- write(11,'(a)')sq//'makeatletter'//sq//'fil@begin'
- * //sq//'makeatother'
- ishort = 4
- else if (mtrnuml .eq. 0) then
-c
-c No meter change
-c
- if (islast) write(11,'(a)')sq//'xbar'
- else
-c
-c Change meter midline
-c
- call setmeter(mtrnuml,mtrdenl,ibmtyp,ibmrep)
- if (movbrk .eq. 0) then
- if (islast) then
- call wgmeter(mtrnmp,mtrdnp)
- end if
- if (mtrdnp .gt. 0) then
- if (islast) then
- write(11,'(a,2i1,a)')sq//'newtimes0%'
- end if
-c if (ibar .eq. ibarmbr) xb4mbr = facmtr*musicsize
- if (ibar .eq. ibarmbr) xb4mbr = -.2*musicsize
- else
- if (islast) write(11,'(a)')sq//'xbar'
- end if
- end if
- end if
- end if
-c
-c Now that xbar's are written, can put in left-repeats at line beginnings
-c
- if (lrptpend) then
- if (islast) write(11,'(a)')sq//'advance'//sq//'barno-1'
- * //sq//'leftrepeat'
- lrptpend = .false.
- end if
- if (ibar .gt. 1) then
-c
-c For bars after first, slide all stuff down to beginning of arrays
-c
- do 11 iv = 1 , nv
- do 11 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- ioff = nib(ivx,ibar-1)
- do 12 ip = 1 , nib(ivx,ibar)-ioff
- nolev(ivx,ip) = nolev(ivx,ip+ioff)
- nodur(ivx,ip) = nodur(ivx,ip+ioff)
- nacc(ivx,ip) = nacc(ivx,ip+ioff)
- irest(ivx,ip) = irest(ivx,ip+ioff)
- islur(ivx,ip) = islur(ivx,ip+ioff)
- ipl(ivx,ip) = ipl(ivx,ip+ioff)
- iornq(ivx,ip) = iornq(ivx,ip+ioff)
- mult(ivx,ip) = mult(ivx,ip+ioff)
- if (figbass .and. ivx.eq.1 .or. ivx.eq.ivxfig2) then
- if (ivx.eq.1) then
- isfig(1,ip) = isfig(1,ip+ioff)
- else
- isfig(2,ip) = isfig(2,ip+ioff)
- end if
- end if
-12 continue
- if (ivx.le.nv .and. ncc(iv).gt.1) then
- islide = 0
- do 13 icc = 1 , ncc(iv)
- if (tcc(iv,icc) .le. lenbar) then
-c
-c This time will drop <=0 when slid.
-c
- islide = icc-1
- ncmidcc(iv,1) = ncmidcc(iv,icc)
- else
- tcc(iv,icc-islide) = tcc(iv,icc)-lenbar
- ncmidcc(iv,icc-islide) = ncmidcc(iv,icc)
- end if
-13 continue
- ncc(iv) = ncc(iv)-islide
- tcc(iv,1) = 0.
- end if
-11 continue
- do 15 ig = 1 , ngrace
- ipg(ig) = ipg(ig)-nib(ivg(ig),ibar-1)
- if (ibar .gt. 2) ipg(ig) = ipg(ig)+nib(ivg(ig),ibar-2)
-15 continue
- do 21 il = 1 , nlit
- iplit(il) = iplit(il)-nib(ivlit(il),ibar-1)
- if (ibar .gt. 2) iplit(il) = iplit(il)+nib(ivlit(il),ibar-2)
-21 continue
- do 22 it = 1 , ntrill
- iptrill(it) = iptrill(it)-nib(ivtrill(it),ibar-1)
- if (ibar .gt. 2) iptrill(it) =
- * iptrill(it)+nib(ivtrill(it),ibar-2)
-22 continue
- do 27 icrd = 1 , ncrd
- ivx = iand(15,ishft(icrdat(icrd),-8))
- * +16*igetbits(icrdat(icrd),1,28)
- ipnew = iand(255,icrdat(icrd))-nib(ivx,ibar-1)
- if (ibar .gt. 2) ipnew = ipnew+nib(ivx,ibar-2)
- icrdat(icrd) = iand(not(255),icrdat(icrd))
- icrdat(icrd) = ior(max(0,ipnew),icrdat(icrd))
-27 continue
- do 29 iudorn = 1 , nudorn
- ivx = ivxudorn(iudorn)
- ipnew = iand(255,kudorn(iudorn))-nib(ivx,ibar-1)
- if (ibar .gt. 2) ipnew = ipnew+nib(ivx,ibar-2)
- kudorn(iudorn) = iand(not(255),kudorn(iudorn))
- kudorn(iudorn) = ior(max(0,ipnew),kudorn(iudorn))
-29 continue
- do 42 idyn = 1 , ndyn
- idynd = idyndat(idyn)
- ivx = iand(15,idynd)+16*igetbits(idynda2(idyn),1,10)
- ipnew = igetbits(idynd,8,4)-nib(ivx,ibar-1)
-c
-c The following construction avoids array bound errors in some compilers
-c
- if (ibar .gt. 2) then
- ipnew = ipnew+nib(ivx,ibar-2)
- end if
- ipnew = dim(ipnew,0)
- call setbits(idynd,8,4,ipnew)
- idyndat(idyn) = idynd
-42 continue
- do 43 itxtdyn = 1 , ntxtdyn
- idynd = ivxiptxt(itxtdyn)
- ivx = iand(31,idynd)
- ipnew = igetbits(idynd,8,5)-nib(ivx,ibar-1)
- if (ibar .gt. 2) then
- ipnew = ipnew+nib(ivx,ibar-2)
- end if
- ipnew = dim(ipnew,0)
-c call setbits(idynd,8,4,ipnew)
- call setbits(idynd,8,5,ipnew)
- ivxiptxt(itxtdyn) = idynd
-43 continue
- do 41 isdat = 1 , nsdat
- isdata = isdat1(isdat)
- ivx = ivmx(igetbits(isdata,5,13),igetbits(isdata,1,12)+1)
- ipnew = igetbits(isdata,8,3)-nib(ivx,ibar-1)
- if (ibar .gt. 2) then
- ipnew = ipnew+nib(ivx,ibar-2)
- end if
- ipnew = dim(ipnew,0)
- call setbits(isdata,8,3,ipnew)
- isdat1(isdat) = isdata
-41 continue
- do 44 ibc = 1 , nbc
- ivx = iand(15,ibcdata(ibc))+16*igetbits(ibcdata(ibc),1,28)
- ipnew = igetbits(ibcdata(ibc),8,4)-nib(ivx,ibar-1)
- if (ibar .gt. 2) then
- ipnew = ipnew+nib(ivx,ibar-2)
- end if
- ipnew = dim(ipnew,0)
- call setbits(ibcdata(ibc),8,4,ipnew)
-44 continue
- do 45 iarps = 1 , NumArpShift
- IpArpShift(iarps) =
- * IpArpShift(iarps)-nib(IvArpShift(iarps),ibar-1)
- if (ibar .gt. 2) then
- IpArpShift(iarps) =
- * IpArpShift(iarps)+nib(IvArpShift(iarps),ibar-2)
- end if
-45 continue
-c
-c Bookkeeping for figures. This will set nfigs = 0 if there are no figs left.
-c If there are figs left, it will reset all times relative to start of
-c current bar.
-c
- do 46 ivx = 1 , 2
- if (figbass) then
- islide = 0
- do 20 jfig = 1 , nfigs(ivx)
- if (itfig(ivx,jfig) .lt. lenbar) then
-c
-c This figure was already used
-c
- islide = jfig
- else
- itfig(ivx,jfig-islide) = itfig(ivx,jfig)-lenbar
- figq(ivx,jfig-islide) = figq(ivx,jfig)
- itoff(ivx,jfig-islide) = itoff(ivx,jfig)
- ivupfig(ivx,jfig-islide) = ivupfig(ivx,jfig)
- ivvfig(ivx,jfig-islide) = ivvfig(ivx,jfig)
- end if
-20 continue
- nfigs(ivx) = nfigs(ivx)-islide
- end if
- if (nfigs(2) .eq. 0) go to 47
-46 continue
-47 continue
- end if
-c
-c End of sliding down for bars after first in gulp.
-c
-c The following may not be needed by makeabar, but just in case...
-c
- if (firstgulp .and. lenb0.ne.0) then
- if (ibar .eq. 1) then
- lenbar = lenb0
- else
- lenbar = lenb1
- end if
- end if
-c
-c Equal line spacing stuff
-c
- if (equalize .and. bar1syst) then
- if (isystpg .eq. 1) then
- write(11,'(a)')sq//'starteq%'
- else if (isystpg .eq. nsystp(ipage)-1) then
- write(11,'(a)')sq//'endeq%'
- end if
- end if
- call make1bar(ibmrep,tglp1,tstart,cwrest,squez,
- * istop,numbms,istart)
- call make2bar(ninow,tglp1,tstart,cwrest,squez,
- * istop,numbms,istart,clefq)
-c
-c Hardspace before barline?
-c
- hardb4 = 0.
- do 35 iv = 1 , nv
- do 35 kv = 1 , nvmx(iv)
- ivx = ivmx(iv,kv)
- if (btest(irest(ivx,nn(ivx)),18)) then
- nudoff(ivx) = nudoff(ivx)+1
- hardb4 = max(hardb4,udoff(ivx,nudoff(ivx)))
- end if
-35 continue
- if (hardb4 .gt. 0.) then
- if (islast) write(11,'(a11,f5.1,a4)')sq
- * //'hardspace{',hardb4,'pt}%'
-c
-c This was causing an incorrect poe in an example, which did not affect main
-c spacing, but did cause an extra accidental space to be too small
-c
- fixednew = fixednew-hardb4
- end if
-10 continue
- firstgulp = .false.
- lenb0 = 0
- go to 30
-40 close(12)
- close(13)
- ilbuf = 1
- ipbuf = 0
- wdpt = widthpt
- if (iline .eq. 1) wdpt = widthpt*(1-fracindent)
- poe = (wdpt-fsyst*musicsize-0.4*nbarss-fixednew)/
- * (elsktot+fbar*nbarss-scaldold)
- poevec(nsyst) = poe
- if (.not.islast) then
- close(11)
- close(16)
- if (figbass) close(14)
- return
- end if
- do 19 ia = 1 , nasksys
- iask = iask+1
- ask(iask) = (wasksys(ia)/poe-abs(elasksys(ia)))/poefa(iline)
- if (elasksys(ia).gt.0) ask(iask)=dim(ask(iask),0.)
-19 continue
- do 26 ia = 1 , nhssys
- nhstot = nhstot+1
- hpttot(nhstot) = max(hpts(ia)-hesk(ia)*poe,0.)
-26 continue
- if (islast .and.
- * onvolt) write(11,'(a)')sq//'endvoltabox'
- rendq = '% '
- if (ishort .ne. 0) rendq = '}}%'
- if (rptfq2 .ne. 'E') then
-c
-c Terminal repeat. Right or double?
-c
- if (rptfq2 .eq. 'r') then
- if (islast) write(11,'(a)')sq//'setrightrepeat'
- * //sq//'endpiece'//rendq
- else if (rptfq2 .eq. 'd') then
- if (islast) write(11,'(a)')sq//'setdoublebar'//sq//'endpiece'
- * //rendq
- else if (rptfq2 .eq. 'b') then
- if (islast) write(11,'(a)')sq//'endpiece'//rendq
- else if (rptfq2 .eq. 'z') then
- if (islast) write(11,'(a)')sq//'setzalaligne'//sq//'Endpiece'
- * //rendq
- else
- print*
- print*,'R? , ? not "d","r",or"b","z"; rptfq2:',rptfq2
- write(15,*)'R? , ? not "d","r",or"b","z"; rptfq2:',rptfq2
- if (islast) write(11,'(a)')sq//'Endpiece'
- end if
- else
- write(11,'(a)')sq//'Endpiece'//rendq
- end if
- if (.not.vshrink) then
- if (islast .and. bottopgap) then
- if (abs(botamt) .gt. 1.e-6) then
- if (botamt .gt. 9.95) then
- fmtq = '(a,f4.1,a)'
- else if (botamt .gt. 0.) then
- fmtq = '(a,f3.1,a)'
- else if (botamt .gt. -9.95) then
- fmtq = '(a,f4.1,a)'
- else
- fmtq = '(a,f5.1,a)'
- end if
- write(11,fmtq)sq//'null'//sq//'vskip',botamt,
- * sq//'Internote%'
- end if
- end if
- xnstbot = xnsttop(ipage)*etabot/etatop
- if (xnstbot .lt. 9.95) then
- fmtq = '(a,f3.1,a)'
- else
- fmtq = '(a,f4.1,a)'
- end if
- if (islast) write(11,fmtq)sq//'vskip',xnstbot,
- * sq//'Interligne'//sq//'eject'//sq//'endmuflex'
- if (islast) write(11,'(a)')sq//'bye'
- else
- if (islast) write(11,'(a)')
- * sq//'vfill'//sq//'eject'//sq//'endmuflex'
- if (islast) write(11,'(a)')sq//'bye'
- end if
- rewind(11)
- if (figbass) then
- write(14,'(a9,i2,a10,i2,1x,a5)')
- * sq//'figdrop=',ifigdr(1,iline),
- * ' '//sq//'figdtwo=',ifigdr(2,iline),sq//'fi}%'
- rewind(14)
- end if
- call askfig(pathnameq,lpath,basenameq,lbase,figbass,istype0)
- if (.not.optimize) then
- print*
- print*,'Writing '
- * //pathnameq(1:lpath)//basenameq(1:lbase)//'.tex'
- print*,'Done with second PMX pass.'
- write(15,'(/,a)')'Writing '
- * //pathnameq(1:lpath)//basenameq(1:lbase)//'.tex'
- write(15,'(a)')' Done with second PMX pass. Now run TeX'
- end if
- return
- end
- subroutine poestats(nsyst,poe,poebar,devnorm)
- parameter (nks=125)
-c
-c Compute avg. & norm. std. dev. of poe.
-c
- real*4 poe(nks)
- sumx = 0.
- sumxx = 0.
- do 1 isyst = 1 , nsyst
- sumx = sumx+poe(isyst)
- sumxx = sumxx+poe(isyst)**2
-1 continue
- devnorm = sqrt(nsyst*sumxx/sumx**2-1)
- poebar = sumx/nsyst
- return
- end
- subroutine precrd(ivx,ip,nolevm,nacc,ipl,irest,udq,
- * twooftwo,icashft)
-c
-c Analyzes chords, data to be used with slurs on chords and plain chords.
-c Check for 2nds, shift notes if neccesary.
-c ipl(10) chord present
-c irest(20) set if any note is right shifted
-c irest(27) set if any note is left shifted
-c ipl(8|9) left|right shift main note
-c icrdat(23|24) ditto chord note
-c udq is updown-ness, needed to analyze 2nds.
-c levtabl(i)=0 if no note at this level, -1 if main note, icrd if chord note.
-c icrdot(icrd)(27-29) sequence order of chord note if accid, top down
-c
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- logical btest,is2nd,twooftwo
- integer*4 kicrd(10),levtabl(88)
- character*1 udq
- do 11 i = 1 , 88
- levtabl(i) = 0
-11 continue
- do 1 icrd1 = 1 , ncrd
- ivx1 = iand(15,ishft(icrdat(icrd1),-8))
- * +16*igetbits(icrdat(icrd1),1,28)
- ip1 = iand(255,icrdat(icrd1))
- if (ip1.eq.ip .and. ivx1.eq.ivx) go to 2
-1 continue
- print*
- print*,
- * 'Cannot find first chord note in precrd. Send source to Dr. Don!'
- call stop1()
-2 continue
- maxlev = nolevm
- minlev = nolevm
- levtabl(nolevm) = -1
- is2nd = .false.
- naccid = 0
- levmaxacc = -100
- levminacc = 1000
-c
-c Check 1st 3 bits of nacc for accid on main note of chord.
-c
- if (iand(7,nacc) .gt. 0) then
- naccid = 1
-c
-c Start list of notes with accid's. There will be naccid of them. kicrd=0 if main,
-c otherwise icrd value for note with accidental.
-c
- kicrd(1) = 0
- levmaxacc = nolevm
- levminacc = nolevm
-c
-c Start the level-ranking
-c
- icrdot0 = 1
- end if
- do 3 icrd2 = icrd1 , ncrd
- nolev = igetbits(icrdat(icrd2),7,12)
- levtabl(nolev) = icrd2
- maxlev = max(maxlev,nolev)
- minlev = min(minlev,nolev)
-c
-c Check for accidental
-c
- if (btest(icrdat(icrd2),19)) then
- naccid = naccid+1
- levmaxacc = max(levmaxacc,nolev)
- levminacc = min(levminacc,nolev)
-c
-c Add this icrd to list of values for notes with accid's.
-c
- kicrd(naccid) = icrd2
- if (.not.btest(nacc,28)) then
-c
-c Order not forced, so get the level-ranking, top down
-c
- iorder = 1
- do 12 iaccid = 1 , naccid-1
- if (kicrd(iaccid) .eq. 0) then
- if (nolevm .gt. nolev) then
- iorder = iorder+1
- else
- icrdot0 = icrdot0+1
- end if
- else
- if (igetbits(icrdat(kicrd(iaccid)),7,12)
- * .gt. nolev) then
- iorder = iorder+1
- else
- iold = igetbits(icrdot(kicrd(iaccid)),3,27)
- call setbits(icrdot(kicrd(iaccid)),3,27,iold+1)
- end if
- end if
-12 continue
- call setbits(icrdot(icrd2),3,27,iorder)
- end if
- end if
-c
-c Exit loop if last note in this chord
-c
- if (icrd2 .eq. ncrd) go to 4
- if (igetbits(icrdat(icrd2+1),8,0) .ne. ip .or.
-c * igetbits(icrdat(icrd2+1),4,8) .ne. ivx) go to 4
- * igetbits(icrdat(icrd2+1),4,8)
- * +16*igetbits(icrdat(icrd2+1),1,28) .ne. ivx) go to 4
-3 continue
- print*
- print*,'Failed to find last chord note. Send source to Dr. Don!'
- call stop1()
-4 continue
-c
-c Now icrd1, icrd2 define range of icrd for this chord.
-c
-c Bypass autos-shifting if any manual shifts are present
-c
- if (btest(irest,20) .or. btest(irest,27)) go to 10
-c
-c Check for 2nds
-c
- do 5 ilev = 1 , 87
- if (levtabl(ilev).ne.0 .and. levtabl(ilev+1).ne.0) then
-c
-c There is at least one 2nd..
-c
- if (udq .eq. 'u') then
-c
-c Upstem. Start with 2nd just found and go up, rt-shifting upper
-c member of each pair
-c
- ile = ilev
-c
-c Set main-note flag for ANY right-shift
-c
- irest = ibset(irest,20)
-7 continue
- if (levtabl(ile+1) .lt. 0) then
-c
-c Upstem, & upper member is main so must be rt-shifted. This would move
-c stem too, so we rt-shift the OTHER note, and set flag that signals
-c to interchange pitches just when these two notes are placed.
-c
- nacc = ibset(nacc,30)
- icrdat(levtabl(ile)) = ibset(icrdat(levtabl(ile)),24)
- else
-c
-c Upper member is chord note, must be rt-shifted
-c
- icrdat(levtabl(ile+1)) = ibset(icrdat(levtabl(ile+1)),24)
- end if
- ile = ile+1
-8 continue
- ile = ile+1
- if (ile .lt. 87) then
- if (levtabl(ile).ne.0 .and. levtabl(ile+1).ne.0) then
- go to 7
- else
- go to 8
- end if
- end if
- go to 10
- else
-c
-c Downstem. Start at top and work down, left-shifting lower member of each pair.
-c We know that lowest pair is at (ilev,ilev+1).
-c
- ile = 88
-c
-c Set main-note flag for ANY right-shift
-c
- irest = ibset(irest,27)
-9 continue
- if (levtabl(ile).ne.0 .and. levtabl(ile-1).ne.0) then
- if (levtabl(ile-1) .lt. 0) then
-c ipl = ibset(ipl,8)
-c
-c Dnstem, & lower member is main so must be left-shifted. This would move
-c stem too, so we left-shift the OTHER note, and set flag that signals
-c to interchange pitches just when these two notes are placed.
-c
- nacc = ibset(nacc,31)
- icrdat(levtabl(ile)) = ibset(icrdat(levtabl(ile)),23)
- else
-c
-c Lower member is chord note, must be shifted
-c
- icrdat(levtabl(ile-1)) =
- * ibset(icrdat(levtabl(ile-1)),23)
- end if
- ile = ile-1
- end if
- ile = ile-1
- if (ile .ge. ilev+1) go to 9
- go to 10
- end if
- end if
-5 continue
-10 continue
-c
-c Done with 2nds, now do accid's. Call even if just one, in case left shifts.
-c
-c if (naccid .gt. 1) call crdaccs(nacc,ipl,irest,naccid,
- if (naccid .ge. 1) call crdaccs(nacc,ipl,irest,naccid,
- * kicrd,nolevm,levmaxacc,levminacc,icrdot0,twooftwo,icashft)
- return
- end
- subroutine printl(string)
- character*(*) string
-c
-c Send string to console and to log file
-c
- print*,string
- write(15,'(a)')string
- return
- end
- subroutine putarp(tnow,iv,ip,nolev,ncm,soutq,lsout)
- parameter (nm=24)
- common /comarp/ narp,tar(8),ivar1(8),ipar1(8),levar1(8),ncmar1(8),
- * xinsnow,lowdot
- common /comtol/ tol
- common /comArpShift/NumArpShift,IvArpShift(20),IpArpShift(20),
- * ArpShift(20)
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- logical lowdot,IsArpShift
- character*80 soutq
- character*79 notexq
- character*8 symq(2)
- character*1 chax
- data symq /'raisearp','arpeggio'/
-c
-c NOTE iv in arg list is really ivx, referring to voice rather than staff.
-c
-c Find which iarp, if any
-c
- do 1 iarp = 1 , narp
- if (abs(tnow-tar(iarp)).lt.tol) go to 2
-1 continue
-c
-c If here, this is the *first* call for this arp.
-c
- narp = narp+1
- tar(narp) = tnow+tol*.5
- ivar1(narp) = iv
- ipar1(narp) = ip
- levar1(narp) = nolev
- ncmar1(narp) = ncm
- return
-2 continue
-c
-c If here, this is *second* call at this time, narp points to values from 1st.
-c
-c Check for shift. Set IsArpShift and iarps
-c
- do 3 iarps = 1 , NumArpShift
- if (IvArpShift(iarps) .eq. ivar1(iarp) .and.
- * IpArpShift(iarps) .eq. ipar1(iarp)) then
- IsArpShift = .true.
- notexq = chax(92)//'loffset{'
- write(notexq(10:14),'(f3.1,a2)') Arpshift(iarps),'}{'
- lnote = 14
- go to 4
- end if
-3 continue
- IsArpShift = .false.
- lnote = 0
-4 continue
- if (iv .eq. ivar1(iarp)) then
-c
-c Arp is in a single voice.
-c
- levbot = min(levar1(iarp),nolev)-ncm+3
- invert = abs(levar1(iarp)-nolev)+1
- else
-c
-c Arp covers >1 voice. Lower voice has to be the first, upper is current and
-c is where the symbol will be written.
-c Check whether ivx's ivar1(iarp) & iv are in same staff
-c
- do 5 iiv = 1 , nm
- if (ivmx(iiv,1).eq.ivar1(iarp) .or. (nvmx(iiv).eq.2.and.
- * ivmx(iiv,2).eq.ivar1(iarp))) then
- iivivx1 = iiv
- go to 6
- end if
-5 continue
- print*,'Screwup#1 in putarp'
- stop
-6 continue
- do 7 iiv = 1 , nm
- if (ivmx(iiv,1).eq.iv .or. (nvmx(iiv).eq.2.and.
- * ivmx(iiv,2).eq.iv)) go to 8
-c
-c Found iv for both voices (iivivx1, iiv), done looking
-c
-7 continue
- print*,'Screwup#2 in putarp'
- stop
-8 continue
- if (iivivx1 .eq. iiv) then
- nstaffshift = 0
- else
- nstaffshift = -nint(2*xinsnow)
- end if
-c levbot = -nint(2*xinsnow)+3+levar1(iarp)-ncmar1(iarp)
- levbot = nstaffshift+3+levar1(iarp)-ncmar1(iarp)
- invert = -levbot+4+nolev-ncm
- end if
-c
-c isym will be (1,2) if invert is (even,odd). If even, raise .5\internote
-c
- isym = mod(invert,2)+1
- ilvert = (invert+1)/2
- if (levbot .ge. 0 .and. levbot .le. 9) then
-c
-c Single digit
-c
- if (.not.IsArpShift) then
- notexq = chax(92)//symq(isym)//chax(48+levbot)
- else
- notexq = notexq(1:lnote)//
- * chax(92)//symq(isym)//chax(48+levbot)
- end if
- lnote = lnote+10
- else
- if (.not.IsArpShift) then
- notexq = chax(92)//symq(isym)//'{'
- else
- notexq = notexq(1:lnote)//chax(92)//symq(isym)//'{'
- end if
- lnote = lnote+10
- if (levbot .ge. -9) then
-c
-c Need two spaces for number
-c
- write(notexq(lnote+1:lnote+3),'(i2,a1)')levbot,'}'
- lnote = lnote+3
- else
- write(notexq(lnote+1:lnote+4),'(i3,a1)')levbot,'}'
- lnote = lnote+4
- end if
- end if
-c if (ilvert .le. 9) then
-c call addstr(notexq(1:lnote)//chax(48+ilvert),lnote+1,
-c * soutq,lsout)
-c else
-c write(notexq(lnote+1:lnote+4),'(a1,i2,a1)')'{',ilvert,'}'
-c call addstr(notexq(1:lnote+4),lnote+4,soutq,lsout)
-c end if
-
- if (ilvert .gt. 9) then
- write(notexq(lnote+1:lnote+4),'(a1,i2,a1)')'{',ilvert,'}'
- lnote = lnote+4
- else
- notexq = notexq(1:lnote)//chax(48+ilvert)
- lnote = lnote+1
- end if
- if (IsArpShift) then
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- end if
- call addstr(notexq(1:lnote),lnote,soutq,lsout)
-c
-c cancel out the stored time, to permit two arps at same time!
-c
- tar(iarp) = -1.
- return
- end
- subroutine putast(elask,indxask,outq)
- character*129 outq,tag
- character*9 fmtq
- if (elask .ge. 0.) then
- if (elask.lt.0.995) then
- lp = 3
- else if (elask .lt. 9.995) then
- lp = 4
- else
- lp = 5
- end if
- write(fmtq,'(a5,i1,a3)')'(a2,f',lp,'.2)'
- else
- lp = 5
- fmtq = '(a2,f5.1)'
- end if
-c
-c Overwrite as follows: ...xyz*ask *lmnop... ->
-c ...xyz*ast{.nn}*lmnop...
-c ...xyz*ast{n.nn}*lmnop...
-c ...xyz*ast{nn.nn}*lmnop...
-c or for negative, ...xyz*ast{-nn.n}*lmnop...
- tag = outq(indxask+9:)
- write(outq(indxask+3:),fmtq)'t{',elask
- outq = outq(1:indxask+4+lp)//'}'//tag
- return
- end
- subroutine putcb(ivx,ip,notexq,lnote)
- common /comcb/ nbc,ibcdata(36)
- character*79 notexq
- logical btest
-c ivxip = ivx+16*ip
- do 1 ibc = 1 , nbc
-c if (ivxip .eq. iand(1023,ibcdata(ibc))) go to 2
-c if (ivx.eq.iand(15,ibcdata(ibc))+16*igetbits(ibcdata(ibc),1,28)
-c * .and. ip.eq.iand(1008,ibcdata(ibc))) go to 2
- ivxbc = iand(15,ibcdata(ibc))+16*igetbits(ibcdata(ibc),1,28)
- ipbc = igetbits(ibcdata(ibc),8,4)
- if (ivx .eq. ivxbc .and. ip .eq.ipbc) go to 2
-1 continue
- call printl('Error in putbc, Call Dr. Don')
- stop
-2 continue
- if (btest(ibcdata(ibc),27)) then
- lnote = 8
- notexq = char(92)//'pbreath'
- else
- lnote = 9
- notexq = char(92)//'pcaesura'
- end if
- ivshft = igetbits(ibcdata(ibc),6,13)
-c?? ivshft = igetbits(ibcdata(ibc),6,13)-32
- if (ivshft .gt. 0) ivshft = ivshft-32
- if (ivshft.lt.0 .or. ivshft.gt.9) then
- notexq = notexq(1:lnote)//'{'
- lnote = lnote+1
- if (ivshft .lt. -9) then
- write(notexq(lnote+1:lnote+3),'(i3)')ivshft
- lnote = lnote+3
- else
- write(notexq(lnote+1:lnote+2),'(i2)')ivshft
- lnote = lnote+2
- end if
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- else
- notexq = notexq(1:lnote)//char(48+ivshft)
- lnote = lnote+1
- end if
- ihshft = igetbits(ibcdata(ibc),8,19)
- if (ihshft .eq. 0) then
- notexq = notexq(1:lnote)//'0'
- lnote = lnote+1
- else
- hshft = .1*(ihshft-128)
-c
-c -12.8<hshft<12.8
-c
- notexq = notexq(1:lnote)//'{'
- lnote = lnote+1
- if (hshft .lt. -9.95) then
- write(notexq(lnote+1:lnote+5),'(f5.1)')hshft
- lnote = lnote+5
- else if (hshft.lt.-0.05 .or. hshft.gt.9.95) then
- write(notexq(lnote+1:lnote+4),'(f4.1)')hshft
- lnote = lnote+4
- else
- write(notexq(lnote+1:lnote+3),'(f3.1)')hshft
- lnote = lnote+3
- end if
- notexq = notexq(1:lnote)//'}'
- lnote = lnote+1
- end if
- return
- end
- subroutine putfig(ivx,ifig,offnsk,figcheck,soutq,lsout)
- parameter (nm=24)
- common /comfig/ itfig(2,74),figqq(2,74),ivupfig(2,74),nfigs(2),
- * fullsize(nm),ivxfig2,ivvfig(2,74)
- character*10 figqq,figq
- character*80 soutq,notexq
- character*1 ch1q,ch2q,sq,chax
- character*5 nofq,nofaq
- character*4 Figutq,Conttq
- logical figcheck
- if (ivx .eq. 1) then
- Figutq = 'Figu'
- Conttq = 'Cont'
- else
- Figutq = 'Figt'
- Conttq = 'Cott'
- end if
- sq = chax(92)
- if (ivvfig(ivx,ifig) .ne. 0) then
-c
-c Alter figdrop
-c
- notexq = sq//'global'//sq//'advance'//sq//'figdrop'
- lnote = 23
- if (ivvfig(ivx,ifig) .lt. 0) then
- notexq = notexq(1:lnote)//'-'
- lnote = lnote+1
- endif
- notexq = notexq(1:lnote)//char(48+abs(ivvfig(ivx,ifig)))
- lnote = lnote+1
- call addstr(notexq,lnote,soutq,lsout)
- end if
- if (abs(offnsk) .gt. .0001) then
-c
-c Write offset for floating figure, to two decimal places
-c
- notexq = sq//'off{'
- if (-offnsk .lt. -9.995) then
- write(notexq(6:11),'(f6.2)')-offnsk
- lnote = 11
- else if (-offnsk.lt.-.995 .or. -offnsk.gt.9.995) then
- write(notexq(6:10),'(f5.2)')-offnsk
- lnote = 10
- else if (-offnsk.lt.-.0001 .or. -offnsk.gt..995) then
- write(notexq(6:9),'(f4.2)')-offnsk
- lnote = 9
- else
- write(notexq(6:8),'(f3.2)')-offnsk
- lnote = 8
- end if
- notexq = notexq(1:lnote)//sq//'noteskip}'
- call addstr(notexq,lnote+10,soutq,lsout)
- end if
- figq = figqq(ivx,ifig)
- ic = 1
-c nof = 0
-c nofa = -1
- nof = -ivupfig(ivx,ifig)
- nofa = -ivupfig(ivx,ifig)-1
-c
-c Beginning of manual loop
-c
-1 ch1q = figq(ic:ic)
-c
-c Exit when first blank is encountered
-c
- if (ch1q .eq. ' ') go to 2
-c
-c Starting a level. Set up vertical offset.
-c
-c lnof = 1
-c nofq = chax(nof+48)
-c if (nof .gt. 9) then
-c lnof = 2
-c nofq = '1'//chax(nof-10+48)
-c end if
-c if (nofa .eq.-1) then
-c lnofa = 2
-c nofaq = '-1'
-c else if (nofa .lt. 10) then
-c lnofa = 1
-c nofaq = chax(nofa+48)
-c else
-c lnofa = 2
-c nofaq = '1'//chax(nofa+38)
-c end if
- call istring(nof,nofq,lnof)
- call istring(nofa,nofaq,lnofa)
- if (ch1q .eq. '0') then
-c
-c Continuation figure. Next number is length (in noteskips). The number will
-c end at the first blank or char that is not digit or decimal point. If
-c colon, it is a separator and must be skipped
-c
- icnum = ic+1
-3 continue
- ic = ic+1
- if (index('0123456789.',figq(ic:ic)) .gt. 0) go to 3
- lnum = ic-icnum
- call addstr(sq//Conttq//nofq(1:lnof)//'{'
- * //figq(icnum:ic-1)//'}',7+ic-icnum+lnof,soutq,lsout)
- if (figq(ic:ic) .ne. ':') ic=ic-1
- else if (ch1q.eq.'#'.or.ch1q.eq.'-'.or.ch1q.eq.'n') then
- ic = ic+1
- ch2q = figq(ic:ic)
- if (ch2q .eq. ' ') then
-c
-c Figure is a stand-alone accidental, so must be centered
-c
- if (ch1q .eq. '#') then
- call addstr(sq//Figutq//nofaq(1:lnofa)//
- * '{'//sq//'sharpfig}',16+lnofa,soutq,lsout)
- else if (ch1q .eq. '-') then
- call addstr(sq//Figutq//nofaq(1:lnofa)//
- * '{'//sq//'flatfig}',15+lnofa,soutq,lsout)
- else if (ch1q .eq. 'n') then
- call addstr(sq//Figutq//nofaq(1:lnofa)//
- * '{'//sq//'natfig}',14+lnofa,soutq,lsout)
- end if
- go to 2
- else
-c
-c Figure is an accidental followed by a number
-c First put the accidental (offset to the left)
-c
- if (ch1q .eq. '#') then
- call addstr(sq//Figutq//
- * nofaq(1:lnofa)//'{'//sq//'fsmsh}',
- * 13+lnofa,soutq,lsout)
- else if (ch1q .eq. '-') then
- call addstr(sq//Figutq//
- * nofaq(1:lnofa)//'{'//sq//'fsmfl}',
- * 13+lnofa,soutq,lsout)
- else if (ch1q .eq. 'n') then
- call addstr(sq//Figutq//
- * nofaq(1:lnofa)//'{'//sq//'fsmna}',
- * 13+lnofa,soutq,lsout)
- end if
-c
-c Now put the number
-c
- call addstr(sq//Figutq//nofq(1:lnof)//'{'//ch2q//'}',
- * 8+lnof,soutq,lsout)
- endif
- else if (ch1q .eq. '_') then
-c
-c Placeholder only (for lowering a figure). Don't do anything!
-c
- continue
- else
-c
-c Figure is a single number, maybe with s after
-c
- call addstr(sq//Figutq//nofq(1:lnof)//'{',
- * 6+lnof,soutq,lsout)
- ch2q = figq(ic+1:ic+1)
- if (ch2q .eq. 's') then
-c
-c Use a special character. Insert font call
-c
- ic = ic+1
- call addstr(sq//'ligfont',8,soutq,lsout)
- end if
- call addstr(ch1q//'}',2,soutq,lsout)
-c call addstr(sq//Figutq//nofq(1:lnof)//'{'//ch1q//'}',
-c * 8+lnof,soutq,lsout)
- end if
- if (ic .ge. 10) go to 2
- ic = ic+1
- nof = nof+4
- nofa = nofa+4
- go to 1
-2 continue
- if (abs(offnsk) .gt. .0001) then
- notexq = sq//'off{'
- if (offnsk .lt. -9.995) then
- write(notexq(6:11),'(f6.2)')offnsk
- lnote = 11
- else if (offnsk.lt.-.995 .or. offnsk.gt.9.995) then
- write(notexq(6:10),'(f5.2)')offnsk
- lnote = 10
- else if (offnsk.lt.-.0001 .or. offnsk.gt..995) then
- write(notexq(6:9),'(f4.2)')offnsk
- lnote = 9
- else
- write(notexq(6:8),'(f3.2)')offnsk
- lnote = 8
- end if
- notexq = notexq(1:lnote)//sq//'noteskip}'
- call addstr(notexq,lnote+10,soutq,lsout)
- end if
- if (ifig .lt. nfigs(ivx)) then
- ifig = ifig+1
- else
- nfigs(ivx) = 0
- figcheck = .false.
- end if
- return
- end
- subroutine putorn(iornq,nolev,nolevm,nodur,nornb,ulq,ibmcnt,ivx,
- * ncm,islur,nvmx,nv,ihornb,stemlin,outq,lout,ip,islhgt,
- * beamon,iscrd)
-c
-c All args are individual array element *values* except nornb,ihornb,ulq.
-c notcrd = .true. if ornament is on main note.
-c nolevm is level of main note (for chords)
-c
- parameter (nm=24)
- character*1 ulpzq,ulq(nm,9),udqq,sq,chax
- character*8 noteq
- character*79 notexq,outq
- integer*4 ihornb(nm,24),nornb(nm)
- logical btest,iscrd,usehornb,beamon
- common /comivxudorn/ivxudorn(63)
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- sq = chax(92)
- lout = 0
- usehornb = .false.
- if (nodur .lt. 64) then
- stemlen = stemlin
- else
- stemlen = 0.
- end if
-c
-c Get up-downness. ulpzq is opposite from stem direction for both beams and
-c non beams. Can use in name of ornament [ . or _ ]
-c
- if (beamon) then
- if (ulq(ivx,ibmcnt) .eq. 'u') then
- ulpzq = 'l'
- else
- ulpzq = 'u'
- end if
- else
- if (udqq(nolevm,ncm,islur,nvmx,ivx,nv).eq.'l' ) then
- ulpzq = 'u'
- else
- ulpzq = 'l'
- end if
- end if
-c
-c To enable >1 ornament on a note, next line is top of manual loop.
-c
-2 continue
-c
-cc Bit # of last ornament (last of bits 0-21)
-cc Bit # of last ornament (last of bits 0-24)
-c Bit # of last ornament (last of bits 0-24,29-30)
- if (btest(iornq,29)) then
- ibit = 29
- else if (btest(iornq,30)) then
- ibit = 30
- else
- ibit = log2(iand(iornq,4194303))
-c ibit = log2(iand(iornq,33554431))
- end if
- iornt = 2**ibit
-c
-c Begin routine to set height. Bits 0-13: (stmgx+Tupf._)
-c 14: Down fermata, was F 15: Trill w/o "tr", was U, 16-18: edit. s,f,n
-c 19-20: >^, 21: ? (with or w/o 16-18)
-c and 29-30: C (coda), G (new segno)
-c
-c Do not use beam height for . or _
-c
- if (btest(iornq,22) .and. iand(iornt,6144).eq.0) then
-c
-c Height is set by special beam stuff.
-c Do not leave ihorn set, do separately for every ornament
-c
- ihorn = ihornb(ivx,nornb(ivx))
- if (ulpzq .eq. 'u') ihorn = ihorn-2
-c
-c Following flag tells whether to increment nornb when exiting the subroutine.
-c
- usehornb = .true.
- else if (ibit .eq. 14) then
-c
-c Down fermata. Don't worry about upper chord notes.
-c
- if (ulpzq .eq. 'l') then
- ihorn = min(nolev,ncm-3)
- else
- ihorn = min(nolev-stemlen,ncm-3.)
- end if
- else if (btest(iornt,13) .or. btest(iornt,0)) then
-c
-c ( or )
-c
- ihorn = nolev
- else if (iand(iornt,6144) .gt. 0) then
-c
-cc Staccato . or tenuto _ , but not special beam stuff. Need up-down info
-c NOTE: removed .&_ from special beam treatment.
-c Staccato . or tenuto _ Need up-down info
-c
- if (.not.iscrd .or. (maxlev.ne.nolev.and.ulpzq.eq.'l') .or.
- * (minlev.ne.nolev.and.ulpzq.eq.'u')) then
- ihorn = nolev
- else if (maxlev .eq. nolev) then
- ulpzq = 'u'
- ihorn = max(nolev+stemlen,ncm+3.)
- else
- ulpzq = 'l'
- ihorn = min(nolev-stemlen,ncm-3.)
- end if
- else if (iscrd .and. nolev .eq. minlev) then
- if (ulpzq .eq. 'l') then
- ihorn = min(nolev-3,ncm-6)
- else
- ihorn = min(nolev-nint(stemlen)-3,ncm-6)
- end if
- else if (ibit.eq.10 .and. nolev.gt.90) then
-c
-c Special treatment for fermata on a shifted rest
-c
- ihorn = ncm+5
- else if (ulpzq.eq.'l') then
-c
-c (iscrd and nolev=maxlev) or (.not.iscrd)
-c
- ihorn = max(nolev+stemlen+2,ncm+5.)
- else if (ibit.eq.29 .or. ibit.eq.30) then
-c
-c coda or new segno, no height tweak
-c
- ihorn = ncm+5
- else
- ihorn = max(nolev+2,ncm+5)
- end if
- ioff = 0
- iclracc = 0
-c
-c Begin routine to set name. Bits 0-13: (stmgx+Tupf._)
-c 14: Down fermata, was F 15: Trill w/o "tr", was U, 16-18: edit. s,f,n
-c
- if (btest(iornt,2)) then
- notexq = sq//'shake'
- lnote = 6
- else if (btest(iornt,3)) then
- notexq = sq//'mordent'
- lnote = 8
- else if (btest(iornt,1)) then
- notexq = sq//'mtr'
- lnote = 4
- else if (btest(iornt,5)) then
- notexq = sq//'xtr'
- lnote = 4
- else if (btest(iornt,6)) then
- notexq = sq//'ptr'
- lnote = 4
- else if (btest(iornt,13)) then
- notexq = sq//'rpn'
- lnote = 4
- else if (btest(iornt,0)) then
- notexq = sq//'lpn'
- lnote = 4
- else if (btest(iornt,12)) then
- notexq = sq//ulpzq//'st'
- lnote = 4
- else if (btest(iornt,11)) then
- notexq = sq//ulpzq//'pz'
- lnote = 4
- else if (btest(iornt,8)) then
- notexq = sq//'upz'
- lnote = 4
- ioff = -2
- else if (btest(iornt,9)) then
- notexq = sq//'uppz'
- lnote = 5
- ioff = -2
- else if (btest(iornt,10)) then
- if (nodur .lt. 48) then
- notexq = sq//'fermataup'
- else
- notexq = sq//'Fermataup'
- end if
- lnote = 10
- ioff = -2
- else if (btest(iornt,14)) then
- if (nodur .lt. 48) then
- notexq = sq//'fermatadown'
- else
- notexq = sq//'Fermatadown'
- end if
- lnote = 12
- else if (btest(iornt,21)) then
-c
-c "?" in editorial ornament. Clear bit 16-18 after use, since ibit=21
-c
- if (btest(iornq,16)) then
- notexq = sq//'qsharp'
- lnote = 7
- ioff = 2
- iornq = ibclr(iornq,16)
- iclracc = 16
- else if (btest(iornq,17)) then
- notexq = sq//'qflat'
- lnote = 6
- ioff = 1
- iornq = ibclr(iornq,17)
- iclracc = 17
- else if (btest(iornq,18)) then
- notexq = sq//'qnat'
- lnote = 5
- ioff = 2
- iornq = ibclr(iornq,18)
- iclracc = 18
- else
- notexq = sq//'qedit'
- lnote = 6
- ioff = 0
- end if
- else if (btest(iornt,16)) then
- notexq = sq//'esharp'
- lnote = 7
- ioff = 2
- else if (btest(iornt,17)) then
- notexq = sq//'eflat'
- lnote = 6
- ioff = 1
- else if (btest(iornt,18)) then
- notexq = sq//'enat'
- lnote = 5
- ioff = 2
- else if (btest(iornt,19)) then
- notexq = sq//'usf'
- lnote = 4
- ioff = -2
- else if (btest(iornt,20)) then
- notexq = sq//'usfz'
- lnote = 5
- ioff = -2
- else if (btest(iornt,29)) then
- notexq = sq//'ccoda'
- lnote = 6
- else if (btest(iornt,30)) then
- notexq = sq//'ssegno'
- lnote = 7
- end if
- iudorn = 0
-c
-c User-defined level shift of ornament from default?
-c
- if (btest(iornq,25)) then
-c
-c Find which (if any) element of kudorn has the shift.
-c
- do 3 iudorn = 1 , nudorn
-c if (ibit .lt. 21) then
-c if (ibit.lt.21 .or. ibit.eq.29) then
- if (ibit.lt.21 .or. ibit.eq.29 .or. ibit.eq.30) then
- ibitt = ibit
-c
-c Could have oes, but not oe? or oes?
-c
- else if (iclracc .gt. 0) then
-c
-c Earlier cleared edit. accid, meaning it was oes?
-c
- ibitt = iclracc+6
- else
- ibitt = 21
- end if
- ibitt=ip+ishft(mod(ivx,16),8)+ishft(nolev,12)+ishft(ibitt,19)
-c if (ibitt .eq. iand(33554431,kudorn(iudorn))) go to 4
- if (ibitt .eq. iand(33554431,kudorn(iudorn))
- * .and. ivx.eq.ivxudorn(iudorn)) go to 4
-3 continue
-c
-c Nothing shifted on this note; exit this if block
-c
- iudorn = 0
- go to 5
-4 continue
- ioffinc = iand(63,ishft(kudorn(iudorn),-25))-32
- if (ibit.eq.19 .and. ioffinc .lt. -7) then
-c
-c Convert usf to lsf. The reason has to do with positioning being impossile
-c for some mysterious reason when you drop \usf below the staff
-c
- notexq = sq//'lsf'
- ioffinc = ioffinc+6
- end if
- ioff = ioff+ioffinc
- end if
-5 continue
-c
-c Shift level to avoid slur. Conditions are
-c 1. There is a slur
-c 2. No user-defined orn height shift (btest(iornq,25))
-c 3. upslur (islhgt>0)
-c 4. ornament is not segno(4), ._)(11-13), down ferm(14) or "(" (0) Bin=30737
-c 5. islhgt+3 >= height already computed.
-c
- if (.not.btest(iornq,25) .and.
- * islhgt.gt.0 .and. iand(iornt,30737).eq.0)
- * ioff = ioff+dim(islhgt+3,ihorn )
- call notefq(noteq,lnoten,ihorn+ioff,ncm)
- if (lnoten.eq.1) call addblank(noteq,lnoten)
- if (iand(iornt,32896) .gt. 0) then
-c
-c T-trill or trill w/o "tr"
-c
- call dotrill(ivx,ip,iornt,noteq,lnoten,notexq,lnote)
- else
- notexq = notexq(1:lnote)//noteq(1:lnoten)
- lnote = lnote+lnoten
- end if
- if (iudorn .gt. 0) then
- if (btest(kudorn(iudorn),31)) then
-c
-c Horizontal shift
-c
- lform = lfmt1(ornhshft(iudorn))
- write(noteq(1:lform),'(f'//chax(48+lform)//'.1)')
- * ornhshft(iudorn)
- notexq = sq//'roffset{'//noteq(1:lform)//'}{'
- * //notexq(1:lnote)//'}'
- lnote = lnote+lform+12
- ornhshft(iudorn) = 0.
- kudorn(iudorn) = ibclr(kudorn(iudorn),31)
- end if
- end if
-c
-c Zero out the bit for ornament just dealt with.
-c
- iornq = ibclr(iornq,ibit)
- if (lout .eq. 0) then
- outq = notexq(1:lnote)
- else
- outq = outq(1:lout)//notexq(1:lnote)
- end if
- lout = lout+lnote
-c
-c Check bits 0-21, go back if any are still set
-c If bit 29 or 30 had been set, would have been used first time thru,
-c and you wouldn't use both coda and segno on same note
-c
- if (iand(iornq,4194303) .gt. 0) go to 2
- if (usehornb) nornb(ivx) = nornb(ivx)+1
- return
- end
- subroutine putshft(ivx,onoff,soutq,lsout)
- parameter (nm=24)
- common /comudsp/udsp(50),tudsp(50),nudsp,udoff(nm,20),nudoff(nm)
- character*80 soutq,notexq
- character*1 sq,chax
- logical onoff
- sq = chax(92)
-c
-c Start user-defined offsets X(...): or X(...)S
-c
- if (onoff) nudoff(ivx) = nudoff(ivx)+1
-c
-c Xoff is in pts. Round off to nearest .1. Will use at end of shift.
-c
- xoff = udoff(ivx,nudoff(ivx))
- xoff = sign(int(10.*abs(xoff)+.5)/10.,xoff)
- if (.not.onoff) xoff = -xoff
- if (xoff .lt. -9.95) then
- ifmt = 5
- else if (xoff.lt.-.95 .or. xoff.gt.9.95) then
- ifmt = 4
- else
- ifmt = 3
- end if
- write(notexq,'(f'//chax(48+ifmt)//'.1)')xoff
- call addstr(sq//'off{'//notexq(1:ifmt)//'pt}',8+ifmt,
- * soutq,lsout)
- return
- end
- subroutine puttitle(inhnoh,xnsttop,etatop,sq,etait,etatc,
- * etacs1,nv,vshrink,sepsymq)
-c
-c Called once per page, at top of page! If vshrink, only called for p.1.
-c Actual titles only allowed on p.1. (set by headlog).
-c 3/18/01: The above comment is probably bogus...can use Tt on later pages.
-c
- common /comlast/ islast,usevshrink
- logical islast,usevshrink
- common /comtitl/ instrq,titleq,compoq,headlog,inskip,ncskip,
- * inhead
- common /cominbot/ inbothd
- character*127 notexq
- character*120 instrq,titleq,compoq
- parameter (nm=24)
- character*1 sq,sepsymq(nm),chax
- logical headlog,vshrink
- notexq = sq//'znotes'
- lenline = 7
- do 22 iv = 1 , nv-1
- notexq = notexq(1:lenline)//sepsymq(iv)
- lenline = lenline+1
-22 continue
- notexq = notexq(1:lenline)//sq//'zcharnote{'
- lenline = lenline+11
- if (.not.headlog) then
- inhead = inhnoh
- end if
- if (vshrink .and. usevshrink) then
- inhead = 16
- end if
- ndig = int(alog10(inhead+.01))+1
- write(notexq(lenline+1:lenline+ndig+10),'(i'//chax(48+ndig)//
- * ',a10)')inhead,'}{'//sq//'titles{'
- lenline = lenline+ndig+10
-c
-c Vertical skip at top of page (\Il) = etatop*glueil. Needed whether
-c headers are present or not.
-c
- glueil = xnsttop/etatop
- vskil = etatop*glueil
- if (vshrink .and. usevshrink) vskil = 2
- call writflot(vskil,notexq,lenline)
- if (.not.headlog) then
- if (islast) write(11,'(a)')notexq(1:lenline)
- * //'}{}{0}{}{0}{}{0}}'//sq//'en%'
- else
- notexq = notexq(1:lenline)//'}{'
- lenline = lenline+2
- lcq = lenstr(instrq,120)
- if (lcq .gt. 0) then
- xitil = etait*glueil
- if (vshrink .and. usevshrink) xitil = 2
- notexq = notexq(1:lenline)//instrq(1:lcq)//'}{'
-c
-c Null out instrument once used
-c
- instrq = ' '
- lenline = lenline+lcq+2
- call writflot(xitil,notexq,lenline)
- else
- notexq = notexq(1:lenline)//'}{0'
- lenline = lenline+3
- end if
- if (islast) write(11,'(a)')notexq(1:lenline)//'}%'
- notexq = '{'
- lenline = 1
- lcq = lenstr(titleq,120)
- if (lcq .gt. 0) then
- notexq = notexq(1:lenline)//titleq(1:lcq)
- lenline = lenline+lcq
- else
- call printl(' ')
- call printl('WARNING')
- call printl(
- * ' In a title block, you have specified instrument and/or')
- call printl(
- * ' composer but no title for the piece.')
- end if
- notexq = notexq(1:lenline)//'}{'
- lenline = lenline+2
- xtcil = etatc*glueil
- lcq = lenstr(compoq,120)
- if (lcq .eq. 0) xtcil = 2*xtcil
- if (vshrink .and. usevshrink) xtcil = 2
- call writflot(xtcil,notexq,lenline)
- notexq = notexq(1:lenline)//'}{'
- lenline = lenline+2
- if (lcq .gt. 0) then
- notexq = notexq(1:lenline)//compoq(1:lcq)//'}{'
- lenline = lenline+2+lcq
-c
-c Null out compoq so it does not get written later
-c
- compoq = ' '
- xcsil = etacs1*glueil
- if (vshrink .and. usevshrink) xcsil = 2
- call writflot(xcsil,notexq,lenline)
- else
- notexq = notexq(1:lenline)//'}{0'
- lenline = lenline+3
- end if
- if (islast) write(11,'(a)')notexq(1:lenline)//'}}'//sq//'en%'
- headlog = .false.
- end if
- return
- end
- subroutine putxtn(ntupv,iflop,multb,iud,wheadpt,poenom,
- * nolev1,islope,slfac,xnlmid,islur,lnote,notexq,ncmid,nlnum,
-c * eloff,iup,irest,usexnumt)
- * eloff,iup,irest,mult,usexnumt)
-c
-c Places digit for xtuplet.
-c
- character*1 chax
- character*8 noteq
- character*79 notexq
- logical btest,usexnumt
- if (iflop.ne.0 .and. multb.gt.0) then
-c
-c Number goes on beam side, move R/L by .5 wheadpt for upper/lower
-c
- eloff = eloff-0.5*iud*wheadpt/poenom
-c
-c Number goes on beam side, must use beam parameters to set pos'n
-c
- nlnum = nolev1+islope/slfac*eloff+iup*(multb+8)
- if (multb .ge. 2) nlnum = nlnum+iup
- else
- nlnum = nint(xnlmid-1+3*iud+iflop*11)
- end if
- if (.not.btest(islur,31)) then
-c
-c Only print number when wanted. First check vert, horiz offset
-c
- 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
- notexq = chax(92)//'xnum{'
- lnote = 10
- istrtn = 7
- else
- notexq = chax(92)//'xnumt{'
- lnote = 11
- istrtn = 8
- end if
- if (eloff .lt. 0.995) then
- write(notexq(istrtn:istrtn+3),'(i1,f3.2)')0,eloff
- else if (eloff .lt. 9.995) then
- write(notexq(istrtn:istrtn+3),'(f4.2)')eloff
- else
- write(notexq(istrtn:istrtn+4),'(f5.2)')eloff
- lnote = lnote+1
- end if
- call notefq(noteq,lnoten,nlnum,ncmid)
- notexq = notexq(1:lnote)//'}'//noteq(1:lnoten)
- lnote = lnote+1+lnoten
- if (ntupv .lt. 10) then
- write(notexq(lnote+1:lnote+1),'(i1)')ntupv
- lnote = lnote+1
- else
- notexq = notexq(1:lnote)//'{'
- write(notexq(lnote+2:lnote+3),'(i2)')ntupv
- notexq = notexq(1:lnote+3)//'}'
- lnote = lnote+4
- end if
- end if
- return
- end
- subroutine read10(string,lastchar)
- parameter (maxblks=9600)
- character*131072 bufq
- integer*2 lbuf(maxblks)
- common /inbuff/ ipbuf,ilbuf,nlbuf,lbuf,bufq
- character*(*) string
- character*128 lnholdq
- logical lastchar
- common /commac/ macnum,mrecord,mplay,macuse,icchold,lnholdq,endmac
- logical mrecord,mplay,endmac
- common /c1ommac/ ip1mac(20),il1mac(20),ip2mac(20),il2mac(20),
- * ic1mac(20),ilmac,iplmac
- if (.not.mplay) then
- if (ilbuf .gt. nlbuf) go to 999
- call getbuf(string)
- return
-999 lastchar = .true.
- return
- else
-c
-c Play a macro. Set pointer to first character needed in buffer
-c
- if (ilmac .eq. il1mac(macnum)) then
-c
-c Getting first line of macro
-c
- ip1 = ip1mac(macnum)
- iplmac = ip1-ic1mac(macnum)
- else if (ilmac .le. il2mac(macnum)) then
-c
-c Beyond first line of macro. Advance line-start pointer.
-c
- iplmac = iplmac+lbuf(ilmac-1)
- ip1 = iplmac+1
- else
-c
-c Beyond last line of macro. Terminate it!
-c
- mplay = .false.
- endmac = .true.
- return
- end if
- if (ilmac .eq. il2mac(macnum)) then
-c
-c Getting last line of macro.
-c
- ip2 = ip2mac(macnum)
- else
-c
-c Getting line before last line of macro.
-c
- ip2 = iplmac+lbuf(ilmac)
- end if
- if (ip2 .ge. ip1) then
- string = bufq(ip1:ip2)
- else
-c
-c Kluge for when macro start is on a line by itself
-c
- string = ' '
- end if
- ilmac = ilmac+1
- return
- end if
- end
- function readin(lineq,iccount,nline)
-c
-c Reads a piece of setup data from file lineq, gets a new lineq from
-c file 10 (jobname.pmx) and increments nline if needed, passes over
-c comment lines
-c
- character*128 lineq
- character*1 durq,chax
-4 if (iccount .eq. 128) then
-1 call getbuf(lineq)
- nline = nline+1
- if (lineq(1:1) .eq. '%') go to 1
- iccount = 0
- end if
- iccount = iccount+1
-c
-c Find next non-blank or end of line
-c
- do 2 iccount = iccount , 127
- if (lineq(iccount:iccount) .ne. ' ') go to 3
-2 continue
-c
-c If here, need to get a new line
-c
- iccount = 128
- go to 4
-3 continue
-c
-c iccount now points to start of number to read
-c
- i1 = iccount
-5 call getchar(lineq,iccount,durq)
-c
-c Remember that getchar increments iccount, then reads a character.
-c
- if (index('0123456789.-',durq) .gt. 0) go to 5
- i2 = iccount-1
- if (i2 .lt. i1) then
- print*,'Found "'//durq//'" instead of number'
- call stop1()
- end if
- icf = i2-i1+49
- read(lineq(i1:i2),'(f'//chax(icf)//'.0)')readin
- return
- end
- subroutine readmeter(lineq,iccount,mtrnum,mtrden)
- character*128 lineq
- character*1 durq,chax
- if (index(lineq(iccount+1:iccount+3),'/') .eq. 0) then
-c
-c No slashes, so use old method
-c
- call getchar(lineq,iccount,durq)
- if (durq .eq. '-') then
-c
-c Negative numerator is used only to printed; signals vertical slash
-c
- call getchar(lineq,iccount,durq)
- mtrnum = -(ichar(durq)-48)
- else if (durq .eq. 'o') then
-c
-c Numerator is EXACTLY 1
-c
- mtrnum = 1
- else
- mtrnum = ichar(durq)-48
- if (mtrnum .eq. 1) then
-c
-c Numerator is >9
-c
- call getchar(lineq,iccount,durq)
- mtrnum = 10+ichar(durq)-48
- end if
- end if
- call getchar(lineq,iccount,durq)
- if (durq .eq. 'o') then
- mtrden = 1
- else
- mtrden = ichar(durq)-48
- if (mtrden .eq. 1) then
- call getchar(lineq,iccount,durq)
- mtrden = 10+ichar(durq)-48
- end if
- end if
- else
-c
-c Expect the form m[n1]/[n2]/[n3]/[n4] . Advance iccount by one from '/' or 'm'
-c
- iccount = iccount+1
- ns = index(lineq(iccount:128),'/')
- read(lineq(iccount:iccount+ns-2),'(i'//chax(47+ns)//')')mtrnum
-c
-c Reset iccount to start of second integer
-c
- iccount = iccount+ns
-c
-c There must be either a slash or a blank at pos'n 2 or 3
-c
- ns = index(lineq(iccount:iccount+2),'/')
- if (ns .eq. 0) ns = index(lineq(iccount:iccount+2),' ')
- read(lineq(iccount:iccount+ns-2),'(i'//chax(47+ns)//')')mtrden
-c
-c Set iccount to last character used
-c
- iccount = iccount+ns-1
- end if
- return
- end
- subroutine readnum(lineq,iccount,durq,fnum)
-c
-c This reads a number starting at position iccount. Remember that on exit,
-c getchar leaves iccount at the last character retrieved. So must only
-c call this routine *after* detecting a number or decimal.
-c On exit, durq is next character after end of number.
-c
- character*128 lineq
- character*1 durq,chax
- i1 = iccount
-1 call getchar(lineq,iccount,durq)
- if (index('0123456789.',durq) .gt. 0) go to 1
- i2 = iccount-1
- if (i2 .lt. i1) then
- print*,'Found "'//durq//'" instead of number'
- call stop1()
- else if (lineq(i1:i1).eq.'.'.and.lineq(i2:i2).eq.'.') then
- i2 = i2-1
- iccount = iccount-1
- end if
- icf = i2-i1+49
- read(lineq(i1:i2),'(f'//chax(icf)//'.0)')fnum
- return
- end
- subroutine setbits(isdata,iwidbit,ishift,ivalue)
-c
-c Sets iwidbits of isdata, shifted by ishift, to ivalue
-c
- ibase = 2**iwidbit-1
- isdata = iand(not(ishft(ibase,ishift)),isdata)
- isdata = ior(isdata,ishft(ivalue,ishift))
- return
- end
- subroutine setbm2(xelsk,nnb,sumx,sumy,ipb,islope,nolev1)
-c
-c The MEAN SQUARE slope algorithm
-c
- parameter (nm=24)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,
- * isfig
- real*4 xelsk(24)
- integer ipb(24)
- ibc = ibmcnt(ivx)
- sumxx = 0.
- sumxy = 0.
- do 2 inb = 1 , nnb
- sumxx = sumxx+xelsk(inb)**2
- sumxy = sumxy+xelsk(inb)*nolev(ivx,ipb(inb))
-2 continue
- delta = nnb*sumxx-sumx*sumx
- em = (nnb*sumxy-sumx*sumy)/delta
- islope = nint(0.5*em*slfac)
- if (iabs(islope) .gt. 9) islope = isign(9,islope)
- beta = (sumy-islope/slfac*sumx)/nnb
- nolev1 = nint(beta)
-c
-c Check if any stems are too short
-c
- smin = 100.
- iul = -1
- if (ulq(ivx,ibc) .eq. 'u') iul = 1
- do 4 inb = 1 , nnb
- ybeam = nolev1+iul*stemlen+islope*xelsk(inb)/slfac
- ynote = nolev(ivx,ipb(inb))
- smin = min(smin,iul*(ybeam-ynote))
-4 continue
- if (smin .lt. stemmin) then
- deficit = stemmin-smin
- nolev1 = nint(nolev1+iul*deficit)
- end if
- return
- end
- subroutine setmac(lineq,iccount,ibarcnt,ibaroff,nbars,charq,durq,
- * ivx,nline)
- character*1 charq,durq
- common /commac/ macnum,mrecord,mplay,macuse,icchold,lnholdq,endmac
- logical mrecord,mplay,endmac,btest
- character*128 lnholdq,lineq
- common /c1ommac/ ip1mac(20),il1mac(20),ip2mac(20),il2mac(20),
- * ic1mac(20),ilmac,iplmac
-c
-c Macro action
-c
- call g1etchar(lineq,iccount,charq)
- if (charq.eq.'S' .and. ivx.ne.1) then
- print*
- print*
- print*,'*********WARNING*********'
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * '"MS..." only put in parts by scor2prt if in voice #1!')
- end if
- if (index('RSP ',charq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Illegal character after "M" (macro)!')
- call stop1()
- else if (charq .ne. ' ') then
-c
-c Record or playback a macro. Get the number of the macro.
-c
- call g1etchar(lineq,iccount,durq)
- if (index('123456789',durq) .eq. 0) then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Must input number after "MR","MP", or "MS"!')
- call stop1()
- end if
- call readnum(lineq,iccount,durq,fnum)
- macnum = nint(fnum)
- if (durq .ne. ' ') then
- call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1,
- * 'Macro number must be followed by a blank!')
- call stop1()
- end if
- if (index('RS',charq ).gt. 0) then
-c
-c Record or save a macro
-c
- if (macnum.lt.1 .or. macnum.gt.20) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Macro number not in range 1-20!')
- call stop1()
- end if
- macuse = ibset(macuse,macnum)
- if (charq .eq. 'R') then
- call m1rec1(lineq,iccount,ibarcnt,ibaroff,nbars,ndxm)
- else if (charq .eq. 'S') then
-c
-c Save (Record but don't activate)
-c
-1 call m1rec1(lineq,iccount,ibarcnt,ibaroff,nbars,ndxm)
- if (mrecord) then
- call getbuf(lineq)
- nline = nline+1
- iccount = 0
- go to 1
- end if
- iccount = iccount+ndxm+1
- end if
- else
-c
-c Playback the macro
-c
- if (.not.btest(macuse,macnum)) then
- call errmsg(lineq,iccount-1,ibarcnt-ibaroff+nbars+1,
- * 'Cannot play a macro that has not been recorded!')
- call stop1()
- end if
- icchold = iccount
- lnholdq = lineq
- iccount = 128
- mplay = .true.
- ilmac = il1mac(macnum)
- end if
- end if
- return
- end
- subroutine setmeter(mtrnuml,mtrdenl,ibmtyp,ibmrep)
-c
-c Sets last 2 args depending on 1st 2, (logical) num, denom.
-c ibmtyp = 1, 2, or 3 defines set of masks for beam groupings.
-c 1: all duple meters
-c 2: triple w/ denom=4, subdivide in groups of 2 8ths
-c 3: triple w/ denom=8, subdivide in groups of 3 8ths
-c Note that lenbar is set at top or when 'm' symbol is read in getnote
-c
- if (mtrdenl .eq. 4) then
- if (mod(mtrnuml,3) .eq. 0) then
- ibmtyp = 2
- ibmrep = mtrnuml/3
- else
- ibmtyp = 1
- ibmrep = mtrnuml/2
- end if
- else if (mtrdenl .eq. 2) then
- ibmtyp = 1
- if (mtrnuml .eq. 3) then
- ibmrep = 3
- else
- ibmrep = 2*mtrnuml/mtrdenl
- end if
- else if (mtrdenl.eq.8 .and. (mtrnuml.eq.8.or.mtrnuml.eq.4)) then
-c
-c Added 170726
-c
- ibmtyp = 1
- ibmrep = mtrnuml/4
- else
-c
-c Assumes mtrdenl=8 and 3/8, 6/8, 9/8, or 12/8
-c
- ibmtyp = 3
- ibmrep = mtrnuml/3
- end if
-c
-c Reset so we don't keep writing new meters
-c
- mtrnuml = 0
-c
-c Prevent ibmrep=0. Needed for odd bars, e.g. 1/8, where beams don't matter
-c
- ibmrep = max(ibmrep,1)
- return
- end
- subroutine SetupB(xelsk,nnb,sumx,sumy,ipb,smed,ixrest)
-c
-c The outer combo algorithm
-c
- parameter (nm=24)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- common /comipl2/ ipl2(nm,200)
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,btest,
- * isfig,vxtup,l1ng,l2ng,bar1syst,drawbm
- common /comeskz2/ eskz2(nm,200)
- real*4 slope(800),xelsk(24)
- integer ipb(24)
- common /comask/ bar1syst,fixednew,scaldold,
- * wheadpt,fbar,poenom
- common /comas1/ naskb,task(40),wask(40),elask(40)
- common /comxtup/ ixtup,vxtup(nm),ntupv(nm,9),nolev1(nm),
- * mtupv(nm,9),nxtinbm(nm),
- * islope(nm),xels11(24),eloff(nm,9),
- * nssb(nm),issb(nm),lev1ssb(nm,20)
- common /comdraw/ drawbm(nm)
- common /combmh/ bmhgt,clefend
- common /commvl/ nvmx(nm),ivmx(nm,2),ivx
- common /comtol/ tol
- ibc = ibmcnt(ivx)
- nxtinbm(ivx) = 0
- n1 = ipl2(ivx,ibm1(ivx,ibc))
-c
-c Initialize counters used in this subroutine, and then later during actual
-c beam drawing, to count later segments of single-slope beam groups
-c
- nssb(ivx) = 0
- issb(ivx) = 0
-c
-c Set flag for xtup beam starting with rest (no others can start with rest)
-c
- if (btest(irest(ivx,ipo(n1)),0)) ixrest = 1
-c
-c Figure how many elemskips to each note. Use the list, counting only non-rests.
-c
- eskz0 = eskz(ivx,ibm1(ivx,ibc))
- nnb = 0
- sumx = 0.
- sumy = 0.
- ipxt1 = 0
- iplast = ibm2(ivx,ibc)
- do 2 ip = ibm1(ivx,ibc) , iplast
- if (.not.btest(irest(ivx,ip),0)) then
- nnb = nnb+1
- ipb(nnb) = ip
- xelsk(nnb) = eskz(ivx,ip)-eskz0
- sumx = sumx+xelsk(nnb)
- sumy = sumy+nolev(ivx,ipb(nnb))
- if (btest(nacc(ivx,ip),21)) then
-c
-c This is the starting note of later segment of single-slope beam group
-c Temporarily store ip here.
-c
- nssb(ivx) = nssb(ivx)+1
- lev1ssb(ivx,nssb(ivx)) = nnb
- end if
- end if
-c
-c New xtup stuff here. Final object is to get distance from start of xtup
-c to number. xtinbm counts xtups in this beam only. mtupv is the printed
-c number. ntupv is number of notes in xtup, and is only used to get
-c eloff, the distance from start of xtup to the number.
-c
- if (btest(nacc(ivx,ip),18)) ndoub = ndoub+1
- if (ipxt1.eq.0 .and. nodur(ivx,ip).eq.0) then
-c
-c Xtup is starting here
-c
- nxtinbm(ivx) = nxtinbm(ivx)+1
- ipxt1 = ip
- if (btest(nacc(ivx,ip),18)) then
- ndoub = 1
- else
- ndoub = 0
- end if
- else if (ipxt1.gt.0 .and. nodur(ivx,ip).gt.0) then
-c
-c Xtup ends here. Set total number of notes in xtup.
-c
- ntupv(ivx,nxtinbm(ivx)) = ip+1-ipxt1
-c
-c Set printed number for embedded xtup.
-c
- mtupv(ivx,nxtinbm(ivx)) = ntupv(ivx,nxtinbm(ivx))+ndoub
-c
-c Middle note of xtup if ntupv odd, note to left of gap if even.
-c
- ipxtmid = (ip+ipxt1)/2
- eloff(ivx,nxtinbm(ivx)) = eskz2(ivx,ipxtmid)-eskz2(ivx,ipxt1)
- if (mod(ntupv(ivx,nxtinbm(ivx)),2) .eq. 0)
- * eloff(ivx,nxtinbm(ivx)) = eloff(ivx,nxtinbm(ivx))+
- * .5*(eskz2(ivx,ipxtmid+1)-eskz2(ivx,ipxtmid))
- ipxt1 = 0
- end if
-2 continue
-c
-c Reset nxtinbm for use as counter as #'s are posted by putxtn(..)
-c
- nxtinbm(ivx) = 0
- smed = 0.
-c if (.not.btest(islur(ivx,ipb(1)),2)) then
- if (.not.btest(islur(ivx,ipb(1)),2) .and. nnb.gt.1) then
-c
-c No forced 0 slope
-c
-c if (nnb .eq. 1) go to 6
- nsc = 0
- do 5 inb = 1 , nnb-1
- do 5 jnb = inb+1 , nnb
- nsc = nsc+1
- slope(nsc) = (nolev(ivx,ipb(jnb))-nolev(ivx,ipb(inb)))/
- * (xelsk(jnb)-xelsk(inb))
- if (abs(slope(nsc)) .lt. 1.e-4) then
- nsc = nsc+1
- slope(nsc) = slope(nsc-1)
- nsc = nsc+1
- slope(nsc) = slope(nsc-1)
- end if
-5 continue
- if (nsc .eq. 1) then
- smed = slope(1)
- go to 6
- end if
- nscmid = nsc/2+1
- do 7 i = 1 , nscmid
- do 7 j = i+1 , nsc
- if (slope(j) .lt. slope(i)) then
- t = slope(j)
- slope(j) = slope(i)
- slope(i) = t
- end if
-7 continue
- smed = slope(nscmid)
- if (nsc .eq. 2*(nsc/2)) then
-c
-c Even number of slopes in the list, so median is ambiguous
-c
- if (abs(slope(nscmid-1)) .lt. abs(slope(nscmid))-tol) then
-c
-c Lower-numbered one is truly less in absolute value, so use it
-c
- smed=slope(nscmid-1)
- else if (abs(slope(nscmid-1)+slope(nscmid)) .lt. tol) then
-c
-c Two slopes are effectively equal. Take the one with sign of the average
-c
- sum = 0.
- do 1 i = 1 , nsc
- sum = sum+slope(i)
-1 continue
- smed = sign(smed,sum)
- end if
- end if
-6 continue
- islope(ivx) = nint(0.5*smed*slfac)
- if (iabs(islope(ivx)) .gt. 9)
- * islope(ivx) = isign(9,islope(ivx))
- else
-c
-c Forced horizontal beam
-c
- islope(ivx) = 0
- end if
- beta = (sumy-islope(ivx)/slfac*sumx)/nnb
-c
-c If ixrest>0, this is a virtual nolev1 at location of rest. Will first use
-c as is for placing xtup number and/or bracket, then reset it for start of
-c actual beam
-c
- nolev1(ivx) = nint(beta)
-c
-c Check if any stems are too short
-c
- smin = 100.
- iul = -1
- if (ulq(ivx,ibc) .eq. 'u') iul = 1
- ssq = 0.
- syb = 0.
- yb1 = nolev1(ivx)
- * +iul*(stemlen+bmhgt*(iand(15,mult(ivx,ipb(1)))-8-1))
- do 4 inb = 1 , nnb
- ybeam = yb1+islope(ivx)*xelsk(inb)/slfac
- * -iul*bmhgt*(iand(15,mult(ivx,ipb(inb)))-8-1)
- syb = syb+ybeam
- ynote = nolev(ivx,ipb(inb))
- off = ybeam-ynote
- if (inb .eq. 1) then
- off1 = off
- else if (inb .eq. nnb) then
- off2 = off
- end if
- ssq = ssq+off*off
- smin = min(smin,iul*off)
-4 continue
- dnolev = 0.
- if (smin .lt. stemmin) then
- deficit = stemmin-smin
- nolevo = nolev1(ivx)
- nolev1(ivx) = nint(nolev1(ivx)+iul*deficit)
- dnolev = nolev1(ivx)-nolevo
- off1 = off1+dnolev
- off2 = off2+dnolev
- end if
- ssq = ssq+2*dnolev*(syb-sumy)+dnolev**2
- if (.not.vxtup(ivx) .and. sqrt(ssq/nnb) .gt. stemmax .and.
- * (abs(off1).lt.stemmax .or. abs(off2).lt.stemmax)
-c * .and. .not.btest(islur(ivx,ipb(1)),2)) then
- * .and. .not.btest(islur(ivx,ipb(1)),2)
- * .and. nnb.ne.1) then
-c
-c The first check is to save trouble of putting xtup's in setbm2.
-c The penultimate check is that first and last stems aren't both excessive.
-c The last check is that a 0 slope has not been forced
-c
- call setbm2(xelsk,nnb,sumx,sumy,ipb,islope(ivx),nolev1(ivx))
- end if
-c
-c Check if beam starts or ends too high or low.
-c
- xboff = bmhgt*(iand(15,mult(ivx,ipb(1)))-8-1)
- l1ng = iul*(nolev1(ivx)-ncmid(iv,ipb(1)))+xboff+7 .lt. 0.
- xnolev2 = nolev1(ivx)+islope(ivx)/slfac*xelsk(nnb)
- l2ng = iul*(xnolev2-ncmid(iv,ipb(nnb)))+xboff+7 .lt. 0
- if (l1ng .or. l2ng) then
-c
-c Need to correct start or stop, also slope
-c
- if (l1ng) then
- nolev1(ivx) = nint(ncmid(iv,ipb(1))-(7.+xboff)*iul)
- end if
- if (l2ng) then
- xnolev2 = nint(ncmid(iv,ipb(nnb))-(7.+xboff)*iul)
- end if
-c
-c Since one or the other end has changed, need to change slope
-c
-c if (.not.btest(islur(ivx,ipb(1)),2))
- if (.not.btest(islur(ivx,ipb(1)),2) .and. nnb.ne.1)
- * islope(ivx) = nint(slfac*(xnolev2-nolev1(ivx))/xelsk(nnb))
- end if
- if (nssb(ivx) .gt. 0) then
-c
-c This is a single-slope beam group. Store start heights for later segs.
-c
- do 3 issbs = 1 , nssb(ivx)
- lev1ssb(ivx,issbs) = nolev1(ivx)+islope(ivx)/slfac*
- * xelsk(lev1ssb(ivx,issbs))
-3 continue
- end if
- return
- end
- subroutine sortpoe(nsyst,poe,ipoe)
- parameter (nks=125)
- real*4 poe(nks)
- integer*4 ipoe(nks)
-c
-c Initialize ipoe:
-c
- do 3 iord = 1 , nsyst
- ipoe(iord) = iord
-3 continue
-c
-c Construct ipoe vector with pairwise interchanges. When done, ipoe(1) will
-c be index of smallest poe, and ipoe(nsyst) will be index of biggest poe.
-c
- do 4 io1 = 1 , nsyst-1
- do 5 io2 = io1+1 , nsyst
- if (poe(ipoe(io1)) .gt. poe(ipoe(io2))) then
-c
-c Interchange the indices
-c
- itemp = ipoe(io1)
- ipoe(io1) = ipoe(io2)
- ipoe(io2) = itemp
- end if
-5 continue
-4 continue
- return
- end
- subroutine spsslur(lineq,iccount,iv,kv,ip,isdat1,isdat2,isdat3,
- * isdat4,nsdat,notcrd,nolev,starter)
- parameter (nm=24)
-c
-c Reads in slur data. Record all h/v-shifts for non-chords, user-specified
-c ones for chords.
-c 5/26/02 This subr is called ONLY for postscript slurs.
-c
-c See subroutine doslur for bit values in isdat1,2,3
-c
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- integer*4 isdat1(202),isdat2(202),isdat3(202),isdat4(202)
- logical notcrd,btest
- character*128 lineq
- character*1 durq,dumq,starter
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- logical upslur,fontslur,WrotePsslurDefaults
-c
-c Counter for signed integers. 1st is height, 2nd is horiz, 3rd is curve
-c
- numint = 0
- ivoff = 0
- ihoff = 0
- nsdat = nsdat+1
- if (starter.eq.'{' .or. starter.eq.'}')
- * isdat2(nsdat)=ibset(isdat2(nsdat),3)
- call setbits(isdat1(nsdat),5,13,iv)
- call setbits(isdat1(nsdat),1,12,kv-1)
- call setbits(isdat1(nsdat),8,3,ip)
- isdat3(nsdat) = 0
- isdat4(nsdat) = 0
- ilb12 = 0 ! flag for tweaks of 1st or 2nd (0|1) seg of linebreak slur
-c
-c Get ID code
-c
- call getchar(lineq,iccount,durq)
-c if (index('uldtb+-hfnHps ',durq) .gt. 0) then
- if (index('uldtb+-hfnHpsv ',durq) .gt. 0) then
-c
-c Null id. Note for ps slurs, 'H' cannot be an ID
-c
- iccount = iccount-1
- if (lineq(iccount:iccount) .eq. 't') then
- idcode = 1
- else
- idcode = 32
- end if
- else
-c
-c Set explicit idcode
-c
- idcode = ichar(durq)
- if (lineq(iccount-1:iccount-1) .eq. 't') then
-c
-c Make t[ID] look like s[ID]t
-c
- isdat2(nsdat) = ibset(isdat2(nsdat),3)
- end if
- if (lineq(iccount+1:iccount+1).eq.'x') then
-c
-c Flag for 2-voice, indexed slurs
-c
- iccount = iccount+1
- call setbits(isdat1(nsdat),1,1,1)
- end if
- end if
- call setbits(isdat1(nsdat),7,19,idcode)
-c
-c Set start/stop: look thru list from end for same idcode,iv,kv
-c
- do 2 isdat = nsdat-1 , 1 , -1
- if (idcode .eq. igetbits(isdat1(isdat),7,19) .and.
- * iv .eq. igetbits(isdat1(isdat),5,13) .and.
-c * kv-1 .eq. igetbits(isdat1(isdat),1,12)) then
- * (kv-1 .eq. igetbits(isdat1(isdat),1,12)
- * .or. btest(isdat1(isdat),1))) then
-c
-c Matched idcode & ivx. On/off?. If on, new is turnoff, leave bit 11 at 0.
-c
- if (btest(isdat1(isdat),11)) go to 3
-c
-c Found slur is a turnoff, so new one is a turnon. Jump down to set bit
-c
- go to 4
- end if
-2 continue
-c
-c If here, this is turnon.
-c
-4 continue
- isdat1(nsdat) = ibset(isdat1(nsdat),11)
-3 continue
-c
-c Now done with initial turnon- or turnoff-specifics.
-c
- if (nint(SlurCurve).ne.0 .and. btest(isdat1(nsdat),11)) then
-c
-c There's a default curvature tweak
-c
- icurv1 = nint(SlurCurve)+3
- if (icurv1 .eq. 2) icurv1 = 1
- isdat3(nsdat) = ibset(isdat3(nsdat),0)
- call setbits(isdat3(nsdat),6,2,32+icurv1)
- end if
-c
-c Loop for rest of input
-c
-1 call getchar(lineq,iccount,durq)
- if (index('uld',durq) .gt. 0) then
-c
-c Force direction
-c
- isdat1(nsdat) = ibset(isdat1(nsdat),26)
- if (durq .eq. 'u') isdat1(nsdat) = ibset(isdat1(nsdat),27)
- go to 1
- else if (index('+-',durq) .gt. 0) then
- numint = numint+1
- if (numint .eq. 1) then
-c
-c Vertical offset
-c
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- iccount = iccount-1
- ivoff = nint(fnum)
- if (durq .eq. '-') ivoff = -ivoff
- else if (numint .eq. 2) then
-c
-c Horizontal offset
-c
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- iccount = iccount-1
-c
-c fnum is abs(hshift), must be 0 to 6.3
-c
- ihoff = fnum*10 + .5
- if (durq .eq. '-') ihoff = -ihoff
-c
-c Later will set bits to 1...127 to represent -6.3,...+6.3
-c
- else
-c
-c Must be the 3rd signed integer, so it's a curve specification
-c
- isdat3(nsdat) = ibset(isdat3(nsdat),0)
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- icurv1 = nint(fnum)
- if (durq .eq. '-') icurv1 = -icurv1
- call setbits(isdat3(nsdat),6,2,32+icurv1)
- if (dumq .ne. ':') then
-c
-c Back up the pointer and loop for more input
-c
- iccount = iccount-1
- else
-c
-c Expect two single digits as parameters for curve
-c
- isdat3(nsdat) = ibset(isdat3(nsdat),1)
- call setbits(isdat3(nsdat),3,8,
- * ichar(lineq(iccount+1:iccount+1))-48)
- call setbits(isdat3(nsdat),3,11,
- * ichar(lineq(iccount+2:iccount+2))-48)
- iccount = iccount+2
- end if
- end if
- go to 1
- else if (durq .eq. 't') then
- isdat2(nsdat) = ibset(isdat2(nsdat),3)
- go to 1
- else if (durq .eq. 'b') then
- isdat2(nsdat) = ibset(isdat2(nsdat),4)
- go to 1
- else if (durq .eq. 's') then
-c
-c Endpoint tweaks for linebreak slurs.
-c
- call getchar(lineq,iccount,durq) ! Must be +|-
-c
-c Next is vertical offset
-c
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- if (durq .eq. '-') fnum=-fnum
- call setbits(isdat4(nsdat),6,ilb12*16,nint(fnum)+32)
- if (index('+-',dumq) .gt. 0) then
-c
-c Also a horizontal offset
-c
- iccount = iccount+1
- call readnum(lineq,iccount,durq,fnum)
- if (dumq .eq. '-') fnum=-fnum
- call setbits(isdat4(nsdat),7,ilb12*16+6,nint(10*fnum)+64)
- end if
- iccount = iccount-1
- ilb12 = 1
- go to 1
- else if (index('fnhH',durq).gt.0) then
-c
-c Special ps slur curvatures.
-c Translate to old \midslur args (1,4,5,6)
-c
- icurv1 = index('fnxhH',durq)
- if (icurv1 .eq. 5) then
-c
-c check for 2nd H
-c
- if (lineq(iccount+1:iccount+1) .eq. 'H') then
- iccount = iccount+1
- icurv1 = 6
- end if
- end if
- isdat3(nsdat) = ibset(isdat3(nsdat),0)
- call setbits(isdat3(nsdat),6,2,32+icurv1)
- go to 1
- else if (durq .eq. 'p') then ! Local adjustment
- call getchar(lineq,iccount,durq) ! +|-
- call getchar(lineq,iccount,dumq) ! s|t
-c 26 \sluradjust (p+s)
-c 27 \nosluradjust (p-s)
-c 28 \tieadjust (p+t)
-c 29 \notieadjust (p-t)
- if (durq .eq. '+') then
- if (dumq .eq. 's') then
- isdat2(nsdat) = ibset(isdat2(nsdat),26)
- else
- isdat2(nsdat) = ibset(isdat2(nsdat),28)
- end if
- else
- if (dumq .eq. 's') then
- isdat2(nsdat) = ibset(isdat2(nsdat),27)
- else
- isdat2(nsdat) = ibset(isdat2(nsdat),29)
- end if
- end if
- go to 1
- else if (durq .eq. 'v') then ! Stem slur
- isdat1(nsdat) = ibset(isdat1(nsdat),2)
- go to 1
- end if
-c
-c Record shifts
-c
- call setbits(isdat2(nsdat),6, 6,ivoff+32)
- call setbits(isdat2(nsdat),7,12,ihoff+64)
-c
-c Record chord flag, note level, notehead shift
-c
- if (notcrd) then
- call setbits(isdat2(nsdat),7,19,nolev)
- else
- nolevc = igetbits(icrdat(ncrd),7,12)
- call setbits(isdat2(nsdat),7,19,nolevc)
- isdat2(nsdat) = ibset(isdat2(nsdat),0)
- call setbits(isdat2(nsdat),2,1,igetbits(icrdat(ncrd),2,23))
- end if
- return
- end
- subroutine sslur(lineq,iccount,iv,kv,ip,isdat1,isdat2,isdat3,
- * nsdat,notcrd,nolev,starter)
- parameter (nm=24)
-c
-c Reads in slur data. Record all h/v-shifts for non-chords, user-specified
-c ones for chords.
-c 5/26/02 now only for non-postscript slurs, use spsslur() for postscript
-c
-c See subroutine doslur for bit values in isdat1,2,3
-c
- common /comtrill/ ntrill,ivtrill(24),iptrill(24),xnsktr(24),
- * ncrd,icrdat(193),icrdot(193),icrdorn(193),nudorn,
- * kudorn(63),ornhshft(63),minlev,maxlev,icrd1,icrd2
- integer*4 isdat1(202),isdat2(202),isdat3(202)
- logical notcrd,btest
- character*128 lineq
- character*1 durq,dumq,starter
- common /comslur/ listslur,upslur(nm,2),ndxslur,fontslur
- * ,WrotePsslurDefaults,SlurCurve
- logical upslur,fontslur,WrotePsslurDefaults
-c
-c Counter for signed integers. 1st is height, 2nd is horiz, 3rd is curve
-c
- numint = 0
- ivoff = 0
- ihoff = 0
- nsdat = nsdat+1
- if (starter.eq.'{' .or. starter.eq.'}')
- * isdat2(nsdat)=ibset(isdat2(nsdat),3)
- call setbits(isdat1(nsdat),5,13,iv)
- call setbits(isdat1(nsdat),1,12,kv-1)
- call setbits(isdat1(nsdat),8,3,ip)
- isdat3(nsdat) = 0
-c
-c Get id letter
-c
- if (lineq(iccount:iccount) .eq. 't') then
-c
-c Old-style t-slur. Use special idcode = 1
-c
- idcode = 1
- else
- call getchar(lineq,iccount,durq)
- if (index('uldtb+-hf ',durq) .gt. 0) then
-c
-c Null id
-c
- idcode = 32
- iccount = iccount-1
- else if (durq.eq.'H') then
-c
-c Postscript slur, cannot use 'H' as code, must check for 2nd 'H'
-c
- idcode = 32
- iccount = iccount-1
-c
-c There may be another "H", but no need to deal with it yet
-c
- else
-c
-c Set explicit idcode
-c
- idcode = ichar(durq)
- end if
- end if
- call setbits(isdat1(nsdat),7,19,idcode)
-c
-c Set start/stop: look thru list from end for same idcode,iv,kv
-c
- do 2 isdat = nsdat-1 , 1 , -1
- if (idcode .eq. igetbits(isdat1(isdat),7,19) .and.
- * iv .eq. igetbits(isdat1(isdat),5,13) .and.
- * kv-1 .eq. igetbits(isdat1(isdat),1,12)) then
-c
-c Matched idcode & ivx. On/off?. If on, new is turnoff, leave bit 11 at 0.
-c
- if (btest(isdat1(isdat),11)) go to 3
-c
-c Found slur is a turnoff, so new one is a turnon. Jump down to set bit
-c
- go to 4
- end if
-2 continue
-c
-c If here, this is turnon.
-c
-4 continue
- isdat1(nsdat) = ibset(isdat1(nsdat),11)
-3 continue
-c
-c Now done with initial turnon- or turnoff-specifics. Loop for rest of input
-c
-1 call getchar(lineq,iccount,durq)
- if (index('uld',durq) .gt. 0) then
-c
-c Force direction
-c
- isdat1(nsdat) = ibset(isdat1(nsdat),26)
- if (durq .eq. 'u') isdat1(nsdat) = ibset(isdat1(nsdat),27)
- go to 1
- else if (index('+-',durq) .gt. 0) then
- numint = numint+1
- if (numint .eq. 1) then
-c
-c Vertical offset
-c
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- iccount = iccount-1
- ivoff = nint(fnum)
- if (durq .eq. '-') ivoff = -ivoff
- else if (numint .eq. 2) then
-c
-c Horizontal offset
-c
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- iccount = iccount-1
-c
-c fnum is abs(hshift), must be 0 to 6.3
-c
- ihoff = fnum*10 + .5
- if (durq .eq. '-') ihoff = -ihoff
-c
-c Later will set bits to 1...127 to represent -6.3,...+6.3
-c
- else
-c
-c Must be the 3rd signed integer, so it's a curve specification
-c
- isdat3(nsdat) = ibset(isdat3(nsdat),0)
- iccount = iccount+1
- call readnum(lineq,iccount,dumq,fnum)
- icurv1 = nint(fnum)
- if (durq .eq. '-') icurv1 = -icurv1
- call setbits(isdat3(nsdat),6,2,32+icurv1)
- if (dumq .ne. ':') then
-c
-c Back up the pointer and loop for more input
-c
- iccount = iccount-1
- else
-c
-c Expect two single digits as parameters for curve
-c
- isdat3(nsdat) = ibset(isdat3(nsdat),1)
- call setbits(isdat3(nsdat),3,8,
- * ichar(lineq(iccount+1:iccount+1))-48)
- call setbits(isdat3(nsdat),3,11,
- * ichar(lineq(iccount+2:iccount+2))-48)
- iccount = iccount+2
- end if
- end if
- go to 1
- else if (durq .eq. 't') then
- isdat2(nsdat) = ibset(isdat2(nsdat),3)
- go to 1
- else if (durq .eq. 'b') then
- isdat2(nsdat) = ibset(isdat2(nsdat),4)
- go to 1
- else if (index('fhH',durq) .gt. 0) then
-c
-c Special ps slur curvatures. Translate to old \midslur args (1,4,5,6)
-c
- icurv1 = 2+index('fhH',durq)
- if (icurv1 .eq. 3) then
- icurv1 = 1
- else if (icurv1 .eq. 5) then
-c
-c check for 2nd H
-c
- if (lineq(iccount+1:iccount+1) .eq. 'H') then
- iccount = iccount+1
- icurv1 = 6
- end if
- end if
- isdat3(nsdat) = ibset(isdat3(nsdat),0)
-c
-c Must change sign if downslur, but cannot do it now since we don't know
-c slur direction for sure.
-c
- call setbits(isdat3(nsdat),6,2,32+icurv1)
- go to 1
- end if
-c
-c Record shifts
-c
- call setbits(isdat2(nsdat),6, 6,ivoff+32)
- call setbits(isdat2(nsdat),7,12,ihoff+64)
-c
-c Record chord flag, note level, notehead shift
-c
- if (notcrd) then
- call setbits(isdat2(nsdat),7,19,nolev)
- else
- nolevc = igetbits(icrdat(ncrd),7,12)
- call setbits(isdat2(nsdat),7,19,nolevc)
- isdat2(nsdat) = ibset(isdat2(nsdat),0)
- call setbits(isdat2(nsdat),2,1,igetbits(icrdat(ncrd),2,23))
- end if
- return
- end
- subroutine stop1()
- call exit(1)
- end
- subroutine topfile(basenameq,lbase,nv,clefq,noinst,musicsize,
- * xinstf1,mtrnmp,mtrdnp,vshrink,fbar,fontslur)
- parameter (nm=24)
- common /comlast/ islast,usevshrink
- logical islast,usevshrink,fontslur
- common /comtop / itopfacteur,ibotfacteur,interfacteur,isig0,
- * isig,lastisig,fracindent,widthpt,height,hoffpt,voffpt,idsig,
- * lnam(nm),inameq(nm)
- common /comarp/ narp,tar(8),ivar1(8),ipar1(8),levar1(8),ncmar1(8),
- * xinsnow,lowdot
- common /comnvi/ nsperi(nm),nspern(nm),rename,iiorig(nm)
- character*79 inameq
- character*44 basenameq
- character*24 fmtq
- character*5 fbarq
- character*1 clefq(nm),sq,chax,clefqiv
- common /comstart/ facmtr
- logical vshrink,lowdot,rename
- logical novshrinktop,cstuplet
- common /comnvst/ novshrinktop,cstuplet
- common /comInstTrans/ iInstTrans(nm),iTransKey(nm),iTransAmt(nm),
- * instno(nm),nInstTrans,EarlyTransOn,LaterInstTrans
- logical EarlyTransOn,LaterInstTrans
- common /comsize/ isize(nm)
- common /comis4bignv/ is4bignv,AIset
- logical is4bignv,AIset
- common /comc8flag/ c8flag(nm)
- logical c8flag
- sq = chax(92)
- vshrink = xinstf1.gt.20. .and. .not.novshrinktop
- if (vshrink) then
- xinsnow = 10.
- else
- xinsnow = xinstf1
- end if
- if (.not.islast) return
-c
-c Initialize octave treble clef tracker
-c
- do 6 im = 1 , nm
- c8flag(im) = .false.
-6 continue
- write(11,'(a)')'%%%%%%%%%%%%%%%%%'
- write(11,'(a)')'%'
- write(11,'(a)')'% '//basenameq(1:lbase)//'.tex'
- write(11,'(a)')'%'
- write(11,'(a)')'%%%%%%%%%%%%%%%%'
- write(11,'(a)')sq//'input musixtex'
- write(11,'(a)')sq//'input pmx'
- write(11,'(a)')
- * sq//'setmaxslurs{24}'//sq//'setmaxinstruments{24}%'
- if (.not.fontslur) write(11,'(a)')sq//'input musixps'
-c
-c Need to input musixmad to permit more slurs.
-c
- if (musicsize .eq. 20) then
- write(11,'(a)')sq//'normalmusicsize%'
- else if (musicsize .eq. 16) then
- write(11,'(a)')sq//'smallmusicsize%'
- else if (musicsize .eq. 24) then
- write(11,'(a)')sq//'largemusicsize%'
-c
-c Eliminate, per Tennent's analysis and musixtex changes since first input
-c
-c write(11,'(a)')sq//'def'//sq//'meterfont{'//sq//
-c * 'meterlargefont}%'
- else if (musicsize .eq. 29) then
- write(11,'(a)')sq//'Largemusicsize%'
-c write(11,'(a)')sq//'def'//sq//'meterfont{'//sq//
-c * 'meterLargefont}%'
- end if
-c
-c Set sizes. Have sizes per staff in isize(.) and noinst per staff in
-c nsperi(.)
-c
-c 130324
-c iiv = 1
- do 5 iinst = 1 , noinst
-c if (isize(iiv) .eq. 1) then
- if (isize(iinst) .eq. 1) then
- if(iinst.le.9) then
- write(11,'(a8,i1,a)')
- * sq//'setsize',iinst,sq//'smallvalue%'
- else
- write(11,'(a9,i2,a)')
- * sq//'setsize{',iinst,'}'//sq//'smallvalue%'
- end if
-c else if (isize(iiv) .eq. 2) then
- else if (isize(iinst) .eq. 2) then
- if(iinst.le.9) then
- write(11,'(a8,i1,a)')
- * sq//'setsize',iinst,sq//'tinyvalue%'
- else
- write(11,'(a9,i2,a)')
- * sq//'setsize{',iinst,'}'//sq//'tinyvalue%'
- end if
- end if
-c iiv = iiv+nsperi(iinst)
-5 continue
- write(fbarq,'(f5.3)')fbar
- write(11,'(a)')sq//'nopagenumbers'
- write(11,'(a)')sq//'tracingstats=2'//sq//'relax'
- write(11,'(a7,i3,a2)')sq//'hsize=',nint(widthpt),'pt'
- write(11,'(a6,i'//chax(49+int(log10(height+.1)))//',a2)')
- * sq//'vsize',int(height+.1),'pt'
- if (abs(hoffpt) .gt. 0.1) then
- if (hoffpt .le. -10.) then
- write(11,'(a8,i3,a2)')sq//'hoffset',nint(hoffpt),'pt'
- else if (hoffpt .lt. 0.) then
- write(11,'(a8,i2,a2)')sq//'hoffset',nint(hoffpt),'pt'
- else if (hoffpt .lt. 10.) then
- write(11,'(a8,i1,a2)')sq//'hoffset',nint(hoffpt),'pt'
- else
- write(11,'(a8,i2,a2)')sq//'hoffset',nint(hoffpt),'pt'
- end if
- end if
- if (abs(voffpt) .gt. 0.1) then
- if (voffpt .le. -10.) then
- write(11,'(a8,i3,a2)')sq//'voffset',nint(voffpt),'pt'
- else if (voffpt .lt. 0.) then
- write(11,'(a8,i2,a2)')sq//'voffset',nint(voffpt),'pt'
- else if (voffpt .lt. 10.) then
- write(11,'(a8,i1,a2)')sq//'voffset',nint(voffpt),'pt'
- else
- write(11,'(a8,i2,a2)')sq//'voffset',nint(voffpt),'pt'
- end if
- end if
-c
-c The default raisebarno=3.5 internote, set in pmx.tex. Increase to 4.5 if
-c 3 sharps and treble clef, to avoid vertical clash with top space g#
-c
- if (isig.eq.3 .and. clefq(nv).eq.'t') write(11,'(a)')
- * sq//'def'//sq//'raisebarno{4.5'//sq//'internote}'
- if (noinst .lt. 10) then
- write(11,'(a19,i1,a1)')sq//'def'//sq//'nbinstruments{',
- * noinst,'}'
- else
- write(11,'(a19,i2,a1)')sq//'def'//sq//'nbinstruments{',
- * noinst,'}'
- end if
- iv = 0
- do 1 iinst = 1 , noinst
- nstaves = nsperi(iinst)
- if (iinst .lt. 10) then
- write(11,'(a)')sq//'setstaffs'//chax(48+iinst)
- * //chax(48+nstaves)
- else
- write(11,'(a11,i2,a)')sq//'setstaffs{',iinst,'}'
- * //chax(48+nstaves)
- end if
- iv = iv+1
- clefqiv = clefq(iv)
- if (clefqiv.eq.'8') then
- clefqiv='t'
- iTransAmt(instno(iv)) = 7+iTransAmt(instno(iv))
- c8flag(iv) = .true.
- end if
- if (nstaves .eq. 1) then
- fmtq = chax(48+numclef(clefq(iv)))
- lfmtq = 1
- else
- fmtq = '{'//chax(48+numclef(clefq(iv)))
- lfmtq = 2
- do 2 k = 2 , nstaves
- iv = iv+1
- fmtq = fmtq(1:lfmtq)//chax(48+numclef(clefq(iv)))
- lfmtq = lfmtq+1
-2 continue
- fmtq = fmtq(1:lfmtq)//'}'
- lfmtq = lfmtq+1
- end if
- if (iinst .lt. 10) then
- write(11,'(a)')sq//'setclef'//chax(48+iinst)//fmtq(1:lfmtq)
- else
- write(11,'(a9,i2,a)')sq//'setclef{',iinst,'}'//fmtq(1:lfmtq)
- end if
- if (clefq(iv) .eq. '8') then
- if (iinst .lt. 10) then
- write(11,'(a)')sq//'settrebleclefsymbol'//chax(48+iinst)//
- * sq//'treblelowoct%'
- else
- write(11,'(a21,i2,a)')sq//'settrebleclefsymbol{',iinst,'}'//
- * sq//'treblelowoct%'
- end if
- c8flag(iv) = .true.
- end if
- do 3 lname = 79 , 2 , -1
- if (inameq(iinst)(lname:lname) .ne. ' ') go to 4
-3 continue
-4 continue
- lnam(iinst) = lname
- if (iinst .lt. 10) then
- write(11,'(a8,i1,a)')sq//'setname',iinst,
- * '{'//inameq(iinst)(1:lname)//'}'
- else
- write(11,'(a9,i2,a)')sq//'setname{',iinst,
- * '}{'//inameq(iinst)(1:lname)//'}'
- end if
-1 continue
- write(11,'(a18,i2,a2)')sq//'generalsignature{',isig,'}%'
- if (EarlyTransOn)
- * call Writesetsign(nInstTrans,iInstTrans,iTransKey,EarlyTransOn)
- call wgmeter(mtrnmp,mtrdnp)
- ipi = nint(fracindent*widthpt)
- if (ipi .lt. 10) then
- write(11,'(a11,i1,a2)')sq//'parindent ',ipi,'pt'
- else if (ipi .lt. 100) then
- write(11,'(a11,i2,a2)')sq//'parindent ',ipi,'pt'
- else
- write(11,'(a11,i3,a2)')sq//'parindent ',ipi,'pt'
- end if
- write(11,'(a)')sq//'elemskip1pt'//sq//'afterruleskip'
- * //fbarq//'pt'//sq//'beforeruleskip0pt'//sq//'relax'
- if (.not.vshrink) then
- if (xinstf1 .lt. 9.95) then
- fmtq = '(a,f3.1,a)'
- else
- fmtq = '(a,f4.1,a)'
- end if
- facis = 1.
- if (is4bignv) facis = .95
- write(11,fmtq)sq//'stafftopmarg0pt'//sq//'staffbotmarg0pt'
- * //sq//'interstaff{',xinstf1*facis,'}'//sq//'relax'
- else
- write(11,'(a)')sq//'stafftopmarg0pt'//
- * sq//'staffbotmarg5'//sq//'Interligne'//sq//
- * 'interstaff{10}'//sq//'relax'
- end if
- if (nv.eq.1) write(11,'(a)')sq//'nostartrule'
- write(11,'(a)')sq//'readmod{'//basenameq(1:lbase)//'}'
- if (cstuplet) then
- write(11,'(a)')sq//'input tuplet'
- * //sq//'def'//sq//'xnumt#1#2#3{'//sq//'zcharnote{#2}{~}'
- * //sq//'def'//sq//'tuplettxt{'//sq//'smalltype'//sq//'it{#3}'
- * //sq//'/'//sq//'/}}%'
- write(11,'(a)')sq//'let'//sq//'ovbkt'//sq//'uptuplet'
- * //sq//'let'//sq//'unbkt'//sq//'downtuplet%'
- end if
- write(11,'(a)')sq//'startmuflex'//sq//'startpiece'//sq//
- * 'addspace'//sq//'afterruleskip%'
- return
- end
- character*1 function udfq(nolev,ncm)
-c
-c Slur directions
-c
- common /combc/ bcspec
- logical bcspec
- ntest = nolev-ncm
- if (ntest.lt.0 .or.
- * (ntest.eq.0 .and. bcspec .and. ncm.eq.23) ) then
- udfq = 'd'
- else
- udfq = 'u'
- end if
- return
- end
- character*1 function udqq(nole,ncm,isl,nvmx,ivx,nv)
-c
-c Stem direction for single notes
-c
- character*1 ulfq
- character*1 udqqq
- logical btest
- if (btest(isl,30)) then
-c
-c Absolute override
-c
- if (btest(isl,17)) then
- udqqq = 'u'
- else
- udqqq = 'l'
- end if
- else if (nvmx .eq. 1) then
-c
-c Single voice per staff, default
-c
- udqqq = ulfq(1.*nole,ncm)
- else
-c
-c Multi-voice per staff, 1st is lower, 2nd upper
-c
- if (ivx .le. nv) then
- udqqq = 'l'
- else
- udqqq = 'u'
- end if
- end if
- udqq = udqqq
- return
- end
- character*1 function ulfq(xnolev,ncm)
-c
-c Stem directions
-c
- common /combc/ bcspec
- logical bcspec
- test = xnolev-ncm
- if (test.lt.-.001 .or.
- * (test.lt..001.and.bcspec.and.ncm.eq.23) ) then
- ulfq = 'u'
- else
- ulfq = 'l'
- end if
- return
- end
- function upcaseq(chq)
- character*1 chq,upcaseq,chax
- if (ichar(chq).ge.61.and.ichar(chq).lt.122) then
- upcaseq = chax(ichar(chq)-32)
- else
- upcaseq = chq
- print*,'Warning, upcaseq was called with improper argument: '
- * //chq
- stop
- end if
- return
- end
- subroutine wgmeter(mtrnmp,mtrdnp)
-c
-c Writes meter stuff to file 11, so only called if islast=.true.
-c
- character*1 sq,chax
- if (mtrdnp .eq. 0) return
- sq=chax(92)
- if (mtrnmp.gt.0 .and. mtrnmp.le.9) then
- if (mtrdnp .lt. 10) then
- write(11,'(a25,i1,a2,i1,a3)')
- * sq//'generalmeter{'//sq//'meterfrac{',
- * mtrnmp,'}{',mtrdnp,'}}%'
- else
- write(11,'(a25,i1,a2,i2,a3)')
- * sq//'generalmeter{'//sq//'meterfrac{',
- * mtrnmp,'}{',mtrdnp,'}}%'
- end if
- else if (mtrnmp .ge. 10) then
- if (mtrdnp .lt. 10) then
- write(11,'(a25,i2,a2,i1,a3)')
- * sq//'generalmeter{'//sq//'meterfrac{',
- * mtrnmp,'}{',mtrdnp,'}}%'
- else
- write(11,'(a25,i2,a2,i2,a3)')
- * sq//'generalmeter{'//sq//'meterfrac{',
- * mtrnmp,'}{',mtrdnp,'}}%'
- end if
- else if (mtrnmp .lt. 0) then
- write(11,'(a26,i1,a2,i1,a3)')
- * sq//'generalmeter{'//sq//'meterfracS{',
- * -mtrnmp,'}{',mtrdnp,'}}%'
- else if (mtrdnp .le. 4) then
- write(11,'(a21,i1,a2)')
- * sq//'generalmeter{'//sq//'meterN',mtrdnp,'}%'
- else if (mtrdnp .eq. 5) then
- write(11,'(a)')sq//'generalmeter'//sq//'allabreve%'
- else if (mtrdnp .eq. 6) then
- write(11,'(a)')sq//'generalmeter'//sq//'meterC%'
- else if (mtrdnp .eq. 7) then
- write(11,'(a)')sq//'generalmeter'//sq//'meterIIIS%'
- end if
- return
- end
- subroutine writemidi(jobname,ljob)
- parameter(nm=24,mv=24576)
- common /all/ mult(nm,200),iv,nnl(nm),nv,ibar,
- * ivxo(600),ipo(600),to(600),tno(600),tnote(600),eskz(nm,200),
- * ipl(nm,200),ibm1(nm,9),ibm2(nm,9),nolev(nm,200),ibmcnt(nm),
- * nodur(nm,200),jn,lenbar,iccount,nbars,itsofar(nm),nacc(nm,200),
- * nib(nm,15),nn(nm),lenb0,lenb1,slfac,musicsize,stemmax,
- * stemmin,stemlen,mtrnuml,mtrdenl,mtrnmp,mtrdnp,islur(nm,200),
- * ifigdr(2,125),iline,figbass,figchk(2),firstgulp,irest(nm,200),
- * iornq(nm,0:200),isdat1(202),isdat2(202),nsdat,isdat3(202),
- * isdat4(202),beamon(nm),isfig(2,200),sepsymq(nm),sq,ulq(nm,9)
- character*1 ulq,sepsymq,sq
- logical beamon,firstgulp,figbass,figchk,isfig
- character*1 byteq(4),char,chax
- character*10 tempoq,instq
- character*44 jobname
- integer*2 mmidi
- logical restpend,relacc,notmain,twoline,ismidi,crdacc
- common /commidi/ imidi(0:nm),trest(0:nm),mcpitch(20),mgap,
- * iacclo(0:nm,6),iacchi(0:nm,6),midinst(nm),
- * nmidcrd,midchan(nm,2),numchan,naccim(0:nm),
- * laccim(0:nm,10),jaccim(0:nm,10),crdacc,notmain,
- * restpend(0:nm),relacc,twoline(nm),ismidi,mmidi(0:nm,mv),
- * debugmidi
- logical debugmidi
- common /commvel/ midivel(nm),midvelc(0:nm),midibal(nm),midbc(0:nm)
- * ,miditran(nm),midtc(0:nm),noinst,iinsiv(nm)
- common /comevent/ miditime,lasttime
- logical mmacrec,gottempo
- common /commmac/ mmacstrt(0:nm,20),mmacend(0:nm,20),immac,
- * mmactime(20),nmidsec,msecstrt(0:nm,60),msecend(0:nm,60),
- * mmacrec,gottempo
- character*79 inameq
- common /comtop / itopfacteur,ibotfacteur,interfacteur,isig0,
- * isig,lastisig,fracindent,widthpt,height,hoffpt,voffpt,idsig,
- * lnam(nm),inameq(nm)
- logical rename
- common /comnvi/ nsperi(nm),nspern(nm),rename,iiorig(nm)
-c
-c Used to be icmm(0:nm); did midi fail when nv>16?
-c
- integer*2 iinsiv,icmm(0:15)
- character*5 versionc
- common /comver/ versionc
-c
-c These are not consecutive because channel 9 is reserved for percussion.
-c
- data icmm /0,1,2,3,4,5,6,7,8,10,11,12,13,14,15,16/
-c
-c Write Header
-c
- write(51,'(a,$)')'MThd'//char(0)//char(0)//char(0)//char(6)
- * //char(0)//char(1)//char(0)//char(numchan+1)//char(0)//char(240)
- if (debugmidi)
- * write(52,'(a6,10Z4)')'"MThd"',0,0,0,6,
- * 0,1,0,numchan+1,0,240
-c
-c Write the "conductor" track, for keys, meter, and tempos
-c Get the number of bytes in the conductor event stream
-c
- ndata = 1+imidi(numchan)-msecstrt(numchan,nmidsec)
- do 15 isec = 1 , nmidsec-1
- ndata = ndata+1+msecend(numchan,isec)-msecstrt(numchan,isec)
-15 continue
-c ib1 = (4+ljob+26+ndata+4)/256
-c ib0 = 4+ljob+26+ndata+4-256*ib1
- ib1 = (4+ljob+27+ndata+4)/256
- ib0 = 4+ljob+27+ndata+4-256*ib1
- write(51,'(a,$)')'MTrk'//char(0)//char(0)//char(ib1)//char(ib0)
-c
-c Text header
-c
-c * //char(0)//char(255)//char(1)//char(ljob+26)
- * //char(0)//char(255)//char(1)//char(ljob+27)
- if (debugmidi)
- * write(52,'(a6,8z4)')'"MTrk"',0,0,ib1,ib0,
- * 0,255,1,ljob+27
- write(51,'(a,$)')jobname(1:ljob)
- if (debugmidi) write(52,'(a)')'"'//jobname(1:ljob)//'"'
-c
-c (separate writes are needed to defeat compiler BUG!!!)
-c
-c write(51,'(a,$)')'.mid, produced by PMX 2.30'
- write(51,'(a,$)')'.mid, produced by PMX '//versionc
- if (debugmidi) write(52,'(a)')
- * '".mid, produced by PMX '//versionc//'"'
-c
-c Conductor event data: Loop over sections.
-c
- do 16 isec = 1 , nmidsec
- if (isec .lt. nmidsec) then
- mend = msecend(numchan,isec)
- else
- mend = imidi(numchan)
- end if
- do 17 i = msecstrt(numchan,isec) , mend
- write(51,'(a,$)')char(mmidi(numchan,i))
- if (debugmidi) write(52,'(z4)')mmidi(numchan,i)
-17 continue
-16 continue
-c
-c And close out the time sig / tempo track.
-c
- write(51,'(a,$)')char(0)//char(255)//char(2*16+15)//char(0)
- if (debugmidi) write(52,'(4z4)')0,255,2*16+15,0
-c
-c Loop over track for each voice: The following sets up iv.
-c
- iv = nv
- if (twoline(nv)) then
- kv = 2
- else
- kv = 1
- end if
-c
- do 5 icm = 0 , numchan-1
-c
-c Get the number of bytes in the data stream
-c
- ndata = 1+imidi(icm)-msecstrt(icm,nmidsec)
- do 11 isec = 1 , nmidsec-1
- ndata = ndata+1+msecend(icm,isec)-msecstrt(icm,isec)
-11 continue
-c
-c Add 3 for instrum, 4 for bal, plus 4 (for closing) to byte count,
-c
- ndata = ndata+11
-c
-c Add 4+lnam(iinsiv(iv)) if lnam>0 ,
-c
- if (lnam(iinsiv(iv)).gt.0) ndata = ndata+4+lnam(iinsiv(iv))
-c
-c Separate total byte counts into 4 bytes
-c
- do 2 ibyte = 1 , 4
- if (ndata .gt. 0) then
- byteq(ibyte) = char(mod(ndata,256))
- ndata = ishft(ndata,-8)
- else
- byteq(ibyte) = char(0)
- end if
-2 continue
-c
-c Now write front stuff for this track
-c
- write(51,'(a,$)')'MTrk'//byteq(4)//byteq(3)//byteq(2)//byteq(1)
- * //char(0)//char(12*16+icmm(icm))//char(midinst(iinsiv(iv)))
- * //char(0)//char(11*16+icmm(icm))//char(10)//char(midbc(icm))
- if (debugmidi) write(52,'(a4,z2,a7,11z4)')'icm=',icm,
- * ' "MTrk"',ichar(byteq(4)),ichar(byteq(3)),ichar(byteq(2)),
- * ichar(byteq(1)),0,12*16+icmm(icm),midinst(iinsiv(iv)),
- * 0,11*16+icmm(icm),10,midbc(icm)
- if (lnam(iinsiv(iv)) .gt. 0) then
-c
-c Add instrument name as sequence name
-c
- write(51,'(a,$)')char(0)//char(255)//char(3)
- * //char(lnam(iinsiv(iv)))
- if (debugmidi) write(52,'(4z4)')0,255,3,lnam(iinsiv(iv))
- write(51,'(a,$)')
- * inameq(iinsiv(iv))(1:lnam(iinsiv(iv)))
- if (debugmidi) write(52,'(a)')
- * '"'//inameq(iinsiv(iv))(1:lnam(iinsiv(iv)))//'"'
- end if
- write(tempoq,'(i2)')icm
- write(instq,'(i3)')midinst(iinsiv(iv))
- call printl('MIDI instrument '//tempoq(1:2)//' is '//instq(1:3))
-c
-c Notes: Loop over sections.
-c
- do 9 isec = 1 , nmidsec
- if (isec .lt. nmidsec) then
- mend = msecend(icm,isec)
- else
- mend = imidi(icm)
- end if
- do 10 i = msecstrt(icm,isec) , mend
- write(51,'(a,$)')char(mmidi(icm,i))
- if (debugmidi) write(52,'(z4)')mmidi(icm,i)
-10 continue
-9 continue
-c
-c Closing 4 bytes
-c
- write(51,'(a,$)')chax(0)//char(255)//char(2*16+15)//char(0)
- if (debugmidi) write(52,'(4z4)')0,255,2*16+15,0
- if (kv .eq. 2) then
- kv = 1
- else if (iv .eq. 1) then
- go to 5
- else
- iv = iv-1
- if (twoline(iv)) kv=2
- end if
-5 continue
- write(*,'(1x,a12,(10i6))')'Bytes used:',(imidi(icm),icm=0,numchan)
- write(15,'(1x,a12,(10i6))')
- * 'Bytes used:',(imidi(icm),icm=0,numchan)
- close(51)
- if (debugmidi) close(52)
- return
- end
- subroutine Writesetsign(nInstTrans,iInstTrans,iTransKey,flag)
- parameter(nm=24)
- integer*4 iInstTrans(nm),iTransKey(nm)
- character*79 notexq
- character*1 chax
- logical flag
-c
-c Assumes notexq is blank
-c
- do 1 i = 1 , nInstTrans
- notexq = chax(92)//'setsign'
- lnote = 8
- if (iInstTrans(i) .lt. 10) then
- notexq = notexq(1:lnote)//chax(48+iInstTrans(i))
- lnote = lnote+1
- else
- write(notexq(lnote+1:lnote+4),'(a1,i2,a1)')
- * '{',iInstTrans(i),'}'
- lnote = lnote+4
- end if
- if (iTransKey(i) .lt. 0) then
- write(notexq(lnote+1:lnote+4),'(a1,i2,a1)')
- * '{',iTransKey(i),'}'
- lnote = lnote+4
- else
- notexq = notexq(1:lnote)//chax(48+iTransKey(i))
- lnote = lnote+1
- end if
- write(11,'(a)')notexq(1:lnote)//'%'
-1 continue
- flag = .false.
- return
- end
- subroutine writflot(x,notexq,lenline)
- character*(*) notexq
- if (x .lt. 0.95) then
- write(notexq(lenline+1:lenline+2),'(f2.1)')x
- lenline = lenline+2
- else if (x .lt. 9.95) then
- write(notexq(lenline+1:lenline+3),'(f3.1)')x
- lenline = lenline+3
- else
- write(notexq(lenline+1:lenline+4),'(f4.1)')x
- lenline = lenline+4
- end if
- return
- end
- subroutine wsclef(iv,ninow,nclef)
-c subroutine wsclef(iv,ninow,clefq,nclef)
-c
-c Writes \setclef for instrument containing *staff* iv
-c
- parameter (nm=24)
- common /comlast/ islast,usevshrink
- logical islast,usevshrink
- common /comnvi/ nsperi(nm),nspern(nm),rename,iiorig(nm)
- logical rename
-c
-c In pmx271, had removed clefq, so with 2 or more staves in
-c an instrument, had problems. So replace in 272
-c
- common /comclefq/ clefq(nm)
- character*1 clefq,chax
- character*40 temq
- common /comc8flag/ c8flag(nm)
- logical c8flag
- if (nclef .lt. 7) then
- clefq(iv) = chax(48+nclef)
- else
- clefq(iv)='9'
- end if
- if (.not.islast) return
- iv1 = 1
- do 1 iinst = 1 , ninow
- if (iv .lt. iv1+nspern(iinst)) go to 2
- iv1 = iv1+nspern(iinst)
-1 continue
- print*
- print*,'Should not be here in wsclef!'
- call stop1()
-2 continue
-c
-c Here, iinst is the instrument number with staff of clef change
-c
- iv2 = iv1+nspern(iinst)-1
- if (iinst .lt. 10) then
- temq = chax(92)//'setclef'//chax(48+iinst)
- ltem = 9
- else
- write(temq,'(a9,i2,a1)') chax(92)//'setclef{',iinst,'}'
- ltem = 12
- end if
- if (iv1 .eq. iv2) then
-c
-c Only one staff (iv) in instrument with clef change
-c
- write(11,'(a)')temq(1:ltem)//clefq(iv)//'%'
- else
- temq = temq(1:ltem)//'{'
- ltem = ltem+1
-c
-c Loop over staves, but clefq has only changed for one of them
-c
- do 3 iiv = iv1 , iv2
- temq = temq(1:ltem)//chax(48+numclef(clefq(iiv)))
- ltem = ltem+1
-3 continue
- write(11,'(a)')temq(1:ltem)//'}%'
- end if
- if (c8flag(iv)) then
-c
-c If we change FROM octave treble clef to some other, need the following.
-c
- write(11,'(a)')char(92)//'settrebleclefsymbol'//chax(48+iinst)
- * //char(92)//'trebleclef%'
- c8flag(iv) = .false.
- end if
- return
- end
- subroutine chkpmxlyr(lineq,iccount,lyrerr)
- character*128 lineq
- character*1 charq
- lyrerr = 0
-c
-c On entry, last char was "
-c
-18 call g1etchar(lineq,iccount,charq)
- if (iccount .eq. 121) then
- lyrerr = 2
- return
-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
-c
- if (charq .eq. '@') then
-c
-c @ positions lyrics vertically for current voice
-c [a,b] above or below of the staff
-c +/- i offset, \internotes
-c
- call g1etchar(lineq,iccount,charq)
- if (index('ab',charq).eq.0) then
- lyrerr = 3
- return
- end if
- call g1etchar(lineq,iccount,charq)
- if (index('+-',charq).eq.0) then
- lyrerr = 4
- return
- end if
- call g1etchar(lineq,iccount,charq)
- if (index('0123456789',charq).eq.0) then
- lyrerr = 5
- return
- end if
- else if (charq .ne. ' ') then
-c
-c 2nd " must be followed by ' '
-c
- lyrerr = 1
- return
- end if
- return
- end if
- go to 18
- end
- subroutine dopmxlyr(lineq,iccount)
-c
-c lineq has " at iccount. Find end of lyrics string, replace "..."
-c with \pmxlyr{...}\, but also look for ~ in lyrics and replace with '\ll ',
-c (unless preceded with '\'), check length
-c
- character*128 lineq,lineqt
- character*1 sq,chax
- sq = chax(92)
- 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
-c
-c Replace tilde if not preceded by \
-c
- if (iend .ge. 117) then
- print*,'Sorry, lyric string is too long, stopping'
- call stop1()
- else if (lineq(itilde-1:itilde-1) .eq. sq) then
- istart = itilde
- go to 1
- end if
- lineqt = lineq(1:itilde-1)//sq//'lk '
- * //lineq(itilde+1:iend)
- iend = lenstr(lineqt,128)
- i2nd = i2nd+3
- lineq = lineqt
- go to 1
- end if
- 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
- i2nd = i2nd+8
- lineq = lineqt
- if (lineq(i2nd+1:i2nd+1) .eq. '@') then
- lineqt = lineq(1:i2nd)//'at{'//lineq(i2nd+2:i2nd+4)//'}'//sq
- * //lineq(i2nd+5:128)
- lineq = lineqt
- end if
- return
- end
- subroutine inst2chan(midc,midi,midchan,nv,iinsiv,twoline)
-c propagate per-instrument quantities to per-channel ones
- parameter (nm=24)
- integer*4 midc(0:nm),midi(nm),midchan(nm,2)
- integer*2 iinsiv(nm)
- logical twoline(nm)
- do iv = nv, 1, -1
- if (twoline(iv)) then
- midc(midchan(iv,2)) = midi(iinsiv(iv))
- end if
- midc(midchan(iv,1)) = midi(iinsiv(iv))
- end do
- end
-
-
diff --git a/Build/source/utils/pmx/pmx-src/pmxab.c b/Build/source/utils/pmx/pmx-src/pmxab.c
deleted file mode 100644
index 2ad12053934..00000000000
--- a/Build/source/utils/pmx/pmx-src/pmxab.c
+++ /dev/null
@@ -1,65953 +0,0 @@
-#line 1 ""
-/* -- translated by f2c (version 20160102).
- You must link the resulting object file with libf2c:
- on Microsoft Windows system, link with libf2c.lib;
- on Linux or Unix systems, link with .../path/to/libf2c.a -lm
- or, if you install libf2c.a in a standard place, with -lf2c -lm
- -- in that order, at the end of the command line, as in
- cc *.o -lf2c -lm
- Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
-
- http://www.netlib.org/f2c/libf2c.zip
-*/
-
-#include "f2c.h"
-
-#line 1 ""
-/* Common Block Declarations */
-
-struct {
- char versionc[5];
-} comver_;
-
-#define comver_1 comver_
-
-struct {
- integer miditime, lasttime;
-} comevent_;
-
-#define comevent_1 comevent_
-
-struct {
- integer levson[25], levsoff[25], imidso[25], naccbl[25], laccbl[250]
- /* was [25][10] */, jaccbl[250] /* was [25][10] */, nusebl;
- logical slmon[25], dbltie;
-} comslm_;
-
-#define comslm_1 comslm_
-
-struct {
- integer imidi[25];
- real trest[25];
- integer mcpitch[20], mgap, iacclo[150] /* was [25][6] */, iacchi[150]
- /* was [25][6] */, midinst[24], nmidcrd, midchan[48] /*
- was [24][2] */, numchan, naccim[25], laccim[250] /* was [25][
- 10] */, jaccim[250] /* was [25][10] */;
- logical crdacc, notmain, restpend[25], relacc, twoline[24], ismidi;
- shortint mmidi[614400] /* was [25][24576] */;
- logical debugmidi;
-} commidi_;
-
-#define commidi_1 commidi_
-
-union {
- struct {
- integer midivel[24], midvelc[25], midibal[24], midbc[25], miditran[24]
- , midtc[25], noinst;
- shortint iinsiv[24];
- } _1;
- struct {
- integer midivel[24], midvelc[25], midibal[24], midbc[25], miditran[24]
- , midtc[25], noinstdum;
- shortint iinsiv[24];
- } _2;
-} commvel_;
-
-#define commvel_1 (commvel_._1)
-#define commvel_2 (commvel_._2)
-
-struct {
- integer ipbuf, ilbuf, nlbuf;
- shortint lbuf[9600];
- char bufq[131072];
-} inbuff_;
-
-#define inbuff_1 inbuff_
-
-struct {
- integer musize;
- real whead20;
-} commus_;
-
-#define commus_1 commus_
-
-union {
- struct {
- integer iv, ivxo[600], ipo[600];
- real to[600], tno[600];
- integer nnl[24], nv, ibar, mtrnuml, nodur[4800] /* was [24][200] */,
- lenbar, iccount, idum, itsofar[24], nib[360] /* was [24][
- 15] */, nn[24];
- logical rest[4800] /* was [24][200] */;
- integer lenbr0, lenbr1;
- logical firstline, newmeter;
- } _1;
- struct {
- integer iv, ivxo[600], ipo[600];
- real to[600], tno[600];
- integer nnl[24], nv, ibar, mtrnuml, nodur[4800] /* was [24][200] */,
- lenbar, iccount, nbars, itsofar[24], nib[360] /* was [24][
- 15] */, nn[24];
- logical rest[4800] /* was [24][200] */;
- integer lenbr0, lenbr1;
- logical firstline, newmeter;
- } _2;
-} a1ll_;
-
-#define a1ll_1 (a1ll_._1)
-#define a1ll_2 (a1ll_._2)
-
-struct {
- integer n69[25], n34[25];
-} comdiag_;
-
-#define comdiag_1 comdiag_
-
-struct {
- integer mmacstrt[500] /* was [25][20] */, mmacend[500] /*
- was [25][20] */, immac, mmactime[20], nmidsec, msecstrt[1500]
- /* was [25][60] */, msecend[1500] /* was [25][60] */;
- logical mmacrec, gottempo;
-} commmac_;
-
-#define commmac_1 commmac_
-
-struct {
- integer linewcom[20000];
-} truelinecount_;
-
-#define truelinecount_1 truelinecount_
-
-struct {
- logical lastchar, fbon, issegno;
- integer ihead;
- logical isheadr;
- integer nline;
- logical isvolt;
- real fracindent;
- integer nsperi[24], linesinpmxmod, line1pmxmod, lenbuf0;
-} c1omget_;
-
-#define c1omget_1 c1omget_
-
-struct {
- integer naskb;
- real task[40], wask[40], elask[40];
-} comas1_;
-
-#define comas1_1 comas1_
-
-struct {
- real udsp[50], tudsp[50];
- integer nudsp;
- real udoff[480] /* was [24][20] */;
- integer nudoff[24];
-} comudsp_;
-
-#define comudsp_1 comudsp_
-
-struct comtol_1_ {
- real tol;
-};
-
-#define comtol_1 (*(struct comtol_1_ *) &comtol_)
-
-struct {
- shortint ipslon[25], lusebl[10], jusebl[10];
-} comips_;
-
-#define comips_1 comips_
-
-struct {
- logical islast, usevshrink;
-} comlast_;
-
-#define comlast_1 comlast_
-
-union {
- struct {
- real space[80];
- integer nb;
- real prevtn[24], flgndv[24], flgndb, eskgnd, ptsgnd;
- integer ivmxsav[48] /* was [24][2] */, nvmxsav[24];
- } _1;
- struct {
- real space[80];
- integer nb;
- real prevtn[24], flgndv[24];
- logical flgndb;
- real eskgnd, ptsgnd;
- integer ivmxsav[48] /* was [24][2] */, nvmxsav[24];
- } _2;
-} comnsp_;
-
-#define comnsp_1 (comnsp_._1)
-#define comnsp_2 (comnsp_._2)
-
-union {
- struct {
- integer mult[4800] /* was [24][200] */, iv, nnl[24], nv, ibar,
- ivxo[600], ipo[600];
- real to[600], tno[600], tnote[600], eskz[4800] /* was [24][200] */;
- integer ipl[4800] /* was [24][200] */, ibm1[216] /* was [24][9]
- */, ibm2[216] /* was [24][9] */, nolev[4800] /* was [24][
- 200] */, ibmcnt[24], nodur[4800] /* was [24][200] */,
- jn, lenbar, iccount, nbars, itsofar[24], nacc[4800] /*
- was [24][200] */, nib[360] /* was [24][15] */, nn[24],
- lenb0, lenb1;
- real slfac;
- integer musicsize;
- real stemmax, stemmin, stemlen;
- integer mtrnuml, mtrdenl, mtrnmp, mtrdnp, islur[4800] /* was [24][
- 200] */, ifigdr[250] /* was [2][125] */, iline;
- logical figbass, figchk[2], firstgulp;
- integer irest[4800] /* was [24][200] */, iornq[4824] /*
- was [24][201] */, isdat1[202], isdat2[202], nsdat, isdat3[202]
- , isdat4[202];
- logical beamon[24], isfig[400] /* was [2][200] */;
- char sepsymq[24], sq[1], ulq[216] /* was [24][9] */;
- } _1;
- struct {
- integer mult[4800] /* was [24][200] */, jv, nnl[24], nv, ibar,
- ivxo[600], ipo[600];
- real to[600], tno[600], tnote[600], eskz[4800] /* was [24][200] */;
- integer ipl[4800] /* was [24][200] */, ibm1[216] /* was [24][9]
- */, ibm2[216] /* was [24][9] */, nolev[4800] /* was [24][
- 200] */, ibmcnt[24], nodur[4800] /* was [24][200] */,
- jn, lenbar, iccount, nbars, itsofar[24], nacc[4800] /*
- was [24][200] */, nib[360] /* was [24][15] */, nn[24],
- lenb0, lenb1;
- real slfac;
- integer musicsize;
- real stemmax, stemmin, stemlen;
- integer mtrnuml, mtrdenl, mtrnmp, mtrdnp, islur[4800] /* was [24][
- 200] */, ifigdr[250] /* was [2][125] */, iline;
- logical figbass, figchk[2], firstgulp;
- integer irest[4800] /* was [24][200] */, iornq[4824] /*
- was [24][201] */, isdat1[202], isdat2[202], nsdat, isdat3[202]
- , isdat4[202];
- logical beamon[24], isfig[400] /* was [2][200] */;
- char sepsymq[24], sq[1], ulq[216] /* was [24][9] */;
- } _2;
-} all_;
-
-#define all_1 (all_._1)
-#define all_2 (all_._2)
-
-struct {
- real eskz2[4800] /* was [24][200] */;
-} comeskz2_;
-
-#define comeskz2_1 comeskz2_
-
-struct {
- integer ntot;
-} comntot_;
-
-#define comntot_1 comntot_
-
-struct {
- real hpttot[176];
-} comhsp_;
-
-#define comhsp_1 comhsp_
-
-struct {
- logical ispoi;
-} compoi_;
-
-#define compoi_1 compoi_
-
-struct {
- logical isbbm;
-} combbm_;
-
-#define combbm_1 combbm_
-
-struct {
- real ask[2500];
- integer iask;
- logical topmods;
-} comas3_;
-
-#define comas3_1 comas3_
-
-struct {
- integer ivbj1, ivbj2;
- logical isbjmp, isbj2;
- integer multbj1;
-} combjmp_;
-
-#define combjmp_1 combjmp_
-
-struct {
- integer noctup;
-} comoct_;
-
-#define comoct_1 comoct_
-
-union {
- struct {
- integer ixtup;
- logical vxtup[24];
- integer ntupv[216] /* was [24][9] */, nolev1[24], mtupv[216]
- /* was [24][9] */, nxtinbm[24], islope[24];
- real xelsk[24], eloff[216] /* was [24][9] */;
- integer nssb[24], issb[24], lev1ssb[480] /* was [24][20] */;
- } _1;
- struct {
- integer ixtup;
- logical vxtup[24];
- integer ntupv[216] /* was [24][9] */, nolev1[24], mtupv[216]
- /* was [24][9] */, nxtinbm[24], islope[24];
- real xels11[24], eloff[216] /* was [24][9] */;
- integer nssb[24], issb[24], lev1ssb[480] /* was [24][20] */;
- } _2;
-} comxtup_;
-
-#define comxtup_1 (comxtup_._1)
-#define comxtup_2 (comxtup_._2)
-
-struct {
- logical drawbm[24];
-} comdraw_;
-
-#define comdraw_1 comdraw_
-
-struct {
- integer nvmx[24], ivmx[48] /* was [24][2] */, ivx;
-} commvl_;
-
-#define commvl_1 commvl_
-
-struct {
- integer ihnum3;
- logical flipend[24];
- integer ixrest[24];
-} strtmid_;
-
-#define strtmid_1 strtmid_
-
-struct {
- logical bar1syst;
- real fixednew, scaldold, wheadpt, fbar, poenom;
-} comask_;
-
-#define comask_1 comask_
-
-struct {
- integer itopfacteur, ibotfacteur, interfacteur, isig0, isig, lastisig;
- real fracindent, widthpt, height, hoffpt, voffpt;
- integer idsig, lnam[24];
- char inameq[1896];
-} comtop_;
-
-#define comtop_1 comtop_
-
-struct {
- integer ntrill, ivtrill[24], iptrill[24];
- real xnsktr[24];
- integer ncrd, icrdat[193], icrdot[193], icrdorn[193], nudorn, kudorn[63];
- real ornhshft[63];
- integer minlev, maxlev, icrd1, icrd2;
-} comtrill_;
-
-#define comtrill_1 comtrill_
-
-struct {
- integer nnb;
- real sumx, sumy;
- integer ipb[24];
- real smed;
-} comipb_;
-
-#define comipb_1 comipb_
-
-union {
- struct {
- logical novshrinktop, cstuplet;
- } _1;
- struct {
- logical novshrinktop;
- real cstuplte;
- } _2;
-} comnvst_;
-
-#define comnvst_1 (comnvst_._1)
-#define comnvst_2 (comnvst_._2)
-
-union {
- struct {
- integer itfig[148] /* was [2][74] */;
- char figq[1480] /* was [2][74] */;
- integer ivupfig[148] /* was [2][74] */, nfigs[2];
- real fullsize[24];
- integer ivxfig2, ivvfig[148] /* was [2][74] */;
- } _1;
- struct {
- integer itfig[148] /* was [2][74] */;
- char figqq[1480] /* was [2][74] */;
- integer ivupfig[148] /* was [2][74] */, nfigs[2];
- real fullsize[24];
- integer ivxfig2, ivvfig[148] /* was [2][74] */;
- } _2;
-} comfig_;
-
-#define comfig_1 (comfig_._1)
-#define comfig_2 (comfig_._2)
-
-struct {
- integer nbrests;
-} xjbeambrests_;
-
-#define xjbeambrests_1 xjbeambrests_
-
-struct comtrans_1_ {
- char cheadq[60];
-};
-
-#define comtrans_1 (*(struct comtrans_1_ *) &comtrans_)
-
-struct compage_1_ {
- real widthpt, ptheight, hoffpt, voffpt;
- integer nsyst, nflb, ibarflb[41], isysflb[41], npages, nfpb, ipagfpb[19],
- isysfpb[19];
- logical usefig;
- real fintstf, gintstf, fracsys[30];
- integer nmovbrk, isysmb[31], nistaff[41];
-};
-
-#define compage_1 (*(struct compage_1_ *) &compage_)
-
-struct cblock_1_ {
- real etatop, etabot, etait, etatc, etacs1, hgtin, hgtti, hgtco, xilbn,
- xilbtc, xilhdr, xilfig, a, b;
- integer inhnoh;
-};
-
-#define cblock_1 (*(struct cblock_1_ *) &cblock_)
-
-struct cominbot_1_ {
- integer inbothd;
-};
-
-#define cominbot_1 (*(struct cominbot_1_ *) &cominbot_)
-
-struct comstart_1_ {
- real facmtr;
-};
-
-#define comstart_1 (*(struct comstart_1_ *) &comstart_)
-
-struct comtitl_1_ {
- char instrq[120], titleq[120], compoq[120];
- logical headlog;
- integer inskip, ncskip, inhead;
-};
-
-#define comtitl_1 (*(struct comtitl_1_ *) &comtitl_)
-
-struct spfacs_1_ {
- real grafac, acgfac, accfac, xspfac, xb4fac, clefac, emgfac, flagfac,
- dotfac, bacfac, agc1fac, gslfac, arpfac, rptfac;
- integer lrrptfac;
- real dbarfac, ddbarfac, dotsfac, upstmfac, rtshfac;
-};
-
-#define spfacs_1 (*(struct spfacs_1_ *) &spfacs_)
-
-struct combmh_1_ {
- real bmhgt, clefend;
-};
-
-#define combmh_1 (*(struct combmh_1_ *) &combmh_)
-
-struct comdyn_1_ {
- integer ndyn, idyndat[99], levdsav[24], ivowg[12];
- real hoh1[12], hoh2[12], hoh2h1[2];
- integer ntxtdyn, ivxiptxt[41];
- char txtdynq[5248];
- integer idynda2[99], levhssav[24], listcresc, listdecresc;
-};
-
-#define comdyn_1 (*(struct comdyn_1_ *) &comdyn_)
-
-struct comkbdrests_1_ {
- integer levbotr[8], levtopr[8];
- logical kbdrests;
-};
-
-#define comkbdrests_1 (*(struct comkbdrests_1_ *) &comkbdrests_)
-
-struct cominsttrans_1_ {
- integer iinsttrans[24], itranskey[24], itransamt[24], instno[24],
- ninsttrans;
- logical earlytranson, laterinsttrans;
-};
-
-#define cominsttrans_1 (*(struct cominsttrans_1_ *) &cominsttrans_)
-
-struct comsize_1_ {
- integer isize[24];
-};
-
-#define comsize_1 (*(struct comsize_1_ *) &comsize_)
-
-struct {
- integer nnodur;
- real wminnh[3999];
- integer nnpd[9600];
- real durb[9600];
- integer iddot, nptr[3999], ibarcnt, mbrest, ibarmbr, ibaroff;
- real udsp[3999], wheadpt, sqzb[9600];
-} c1omnotes_;
-
-#define c1omnotes_1 c1omnotes_
-
-struct {
- integer narp;
- real tar[8];
- integer ivar1[8], ipar1[8], levar1[8], ncmar1[8];
- real xinsnow;
- logical lowdot;
-} comarp_;
-
-#define comarp_1 comarp_
-
-struct {
- integer midisig;
-} commidisig_;
-
-#define commidisig_1 commidisig_
-
-struct {
- integer ncc[24];
- real tcc[240] /* was [24][10] */;
- integer ncmidcc[240] /* was [24][10] */, maxdotmv[24], ndotmv[24];
- real updot[480] /* was [24][20] */, rtdot[480] /* was [24][20] */;
-} comcc_;
-
-#define comcc_1 comcc_
-
-struct {
- integer listslur;
- logical upslur[48] /* was [24][2] */;
- integer ndxslur;
- logical fontslur, wrotepsslurdefaults;
- real slurcurve;
-} comslur_;
-
-#define comslur_1 comslur_
-
-union {
- struct {
- integer ihairuse, idhair[24];
- } _1;
- struct {
- integer idhairuse, idhair[24];
- } _2;
-} comhair_;
-
-#define comhair_1 (comhair_._1)
-#define comhair_2 (comhair_._2)
-
-struct {
- integer ivg[37], ipg[37], nolevg[74], itoff[148] /* was [2][74] */;
- real aftshft;
- integer nng[37], ngstrt[37], ibarmbr, mbrest;
- real xb4mbr;
- integer noffseg, ngrace, nvolt, ivlit[83], iplit[83], nlit;
- real graspace[37];
- integer lenlit[83], multg[37];
- logical upg[37], slurg[37], slashg[37];
- integer naccg[74];
- char voltxtq[120], litq[10624];
-} comgrace_;
-
-#define comgrace_1 comgrace_
-
-struct {
- integer is1n1, is2n1, irzbnd, isnx;
-} comsln_;
-
-#define comsln_1 comsln_
-
-struct {
- real eonk, ewmxk;
-} comeon_;
-
-#define comeon_1 comeon_
-
-struct {
- integer ipl2[4800] /* was [24][200] */;
-} comipl2_;
-
-#define comipl2_1 comipl2_
-
-struct {
- integer ibmtyp;
-} combeam_;
-
-#define combeam_1 combeam_
-
-struct {
- integer macnum;
- logical mrecord, mplay;
- integer macuse, icchold;
- char lnholdq[128];
- logical endmac;
-} commac_;
-
-#define commac_1 commac_
-
-struct {
- integer nvmx[24], ivmx[48] /* was [24][2] */, ivx;
- real fbar;
- integer nacc[4800] /* was [24][200] */;
-} c1ommvl_;
-
-#define c1ommvl_1 c1ommvl_
-
-union {
- struct {
- integer nkeys, ibrkch[18], newkey[18];
- logical iskchb;
- integer idsig, isig1, mbrestsav;
- logical kchmid[18], ornrpt, shifton, barend;
- integer noinst;
- logical stickys;
- } _1;
- struct {
- integer nkeys, ibrkch[18], newkey[18];
- logical iskchb;
- integer idumm1, isig1, mbrestsav;
- logical kchmid[18], logdumm1, logdumm2, barend;
- integer noinst;
- logical logdumm3;
- } _2;
-} comkeys_;
-
-#define comkeys_1 (comkeys_._1)
-#define comkeys_2 (comkeys_._2)
-
-struct {
- logical isligfont;
-} comligfont_;
-
-#define comligfont_1 comligfont_
-
-struct {
- logical is4bignv, aiset;
-} comis4bignv_;
-
-#define comis4bignv_1 comis4bignv_
-
-struct {
- real shortfrac, codafrac;
- integer ishort, mbrsum, nmbr;
- logical nocodabn;
- real poefa[125];
-} comshort_;
-
-#define comshort_1 comshort_
-
-struct {
- logical lastchar, rptnd1, sluron[48] /* was [24][2] */, fbon,
- ornrpt, stickys;
- integer movbrk, movnmp, movdnp, movgap;
- real parmov, fintstf, gintstf;
- logical rptprev, equalize;
- char rptfq1[1], rptfq2[1];
-} comget_;
-
-#define comget_1 comget_
-
-struct {
- integer mbrhgt;
- logical newmbrhgt, ignorenats;
-} comignorenats_;
-
-#define comignorenats_1 comignorenats_
-
-struct {
- integer nnodur, lastlev, ndlev[48] /* was [24][2] */;
- logical shifton, setis, notcrd;
- integer npreslur;
- logical was2[24];
- integer ninow;
- logical nobar1;
- integer nsystp[75], ipage;
- logical optlinebreakties, headerspecial;
-} comnotes_;
-
-#define comnotes_1 comnotes_
-
-struct {
- integer ihdht;
- logical lower;
- char headrq[80], lowerq[80];
- integer ihdvrt;
-} comhead_;
-
-#define comhead_1 comhead_
-
-struct {
- integer nfb[24];
- real t1fb[960] /* was [24][40] */, t2fb[960] /* was [24][40] */;
- char ulfbq[960] /* was [24][40] */;
- integer ifb;
- real tautofb;
- logical autofbon;
- real t1autofb;
-} comfb_;
-
-#define comfb_1 comfb_
-
-struct {
- logical bcspec;
-} combc_;
-
-#define combc_1 combc_
-
-struct {
- integer nsperi[24], nspern[24];
- logical rename;
- integer iiorig[24];
-} comnvi_;
-
-#define comnvi_1 comnvi_
-
-struct {
- integer ip1mac[20], il1mac[20], ip2mac[20], il2mac[20], ic1mac[20], ilmac,
- iplmac;
-} c1ommac_;
-
-#define c1ommac_1 c1ommac_
-
-struct {
- char clefq[24];
-} comclefq_;
-
-#define comclefq_1 comclefq_
-
-struct {
- integer numarpshift, ivarpshift[20], iparpshift[20];
- real arpshift[20];
-} comarpshift_;
-
-#define comarpshift_1 comarpshift_
-
-struct {
- integer ibarcnt;
-} combibarcnt_;
-
-#define combibarcnt_1 combibarcnt_
-
-struct {
- logical inputmlyr;
-} comlyr_;
-
-#define comlyr_1 comlyr_
-
-struct {
- real botamt, topamt;
- logical bottopgap;
-} combottop_;
-
-#define combottop_1 combottop_
-
-struct {
- integer ivxudorn[63];
-} comivxudorn_;
-
-#define comivxudorn_1 comivxudorn_
-
-struct {
- integer nbc, ibcdata[36];
-} comcb_;
-
-#define comcb_1 comcb_
-
-struct {
- integer nasksys;
- real wasksys[800], elasksys[800];
-} comas2_;
-
-#define comas2_1 comas2_
-
-struct {
- logical cwrferm[24];
-} comcwrf_;
-
-#define comcwrf_1 comcwrf_
-
-struct {
- logical centrests;
-} comclefrests_;
-
-#define comclefrests_1 comclefrests_
-
-struct {
- logical c8flag[24];
-} comc8flag_;
-
-#define comc8flag_1 comc8flag_
-
-struct {
- real elskb, tnminb[3999];
-} linecom_;
-
-#define linecom_1 linecom_
-
-/* Initialized data */
-
-struct {
- char e_1[60];
- } comtrans_ = { " "
- " " };
-
-struct {
- real e_1[4];
- integer fill_2[127];
- real e_3[30];
- integer fill_4[73];
- } compage_ = { 524.f, 740.f, 0.f, 0.f, {0}, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
- 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
- 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f };
-
-struct {
- real e_1[14];
- integer e_2;
- } cblock_ = { .5f, .25f, .4f, .4f, .2f, 12.f, 21.f, 12.f, 4.f, 1.6f, 5.f,
- 5.7f, 1.071f, 2.714f, 16 };
-
-struct {
- integer e_1;
- } cominbot_ = { 16 };
-
-struct {
- real e_1;
- } comstart_ = { .55f };
-
-struct {
- char e_1[360];
- logical e_2;
- integer fill_3[3];
- } comtitl_ = { " "
- " "
- " "
- " "
- " "
- " ", FALSE_ };
-
-struct {
- real e_1[14];
- integer e_2;
- real e_3[5];
- } spfacs_ = { 1.3333f, .4f, .7f, .3f, .2f, 2.f, 1.f, .7f, .7f, .9f, .5f,
- 9.f, 1.7f, 1.32f, 2, .47f, .83f, .17f, .5f, 1.f };
-
-struct {
- real e_1[2];
- } combmh_ = { 1.1f, 2.3f };
-
-struct {
- integer fill_1[124];
- integer e_2[12];
- real e_3[26];
- integer fill_4[1479];
- } comdyn_ = { {0}, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2.2f, 1.7f, 1.2f,
- .7f, 1.3f, 1.3f, .4f, .8f, 1.2f, .8f, 1.2f, 1.6f, -2.7f, -2.2f,
- -1.7f, -1.2f, -2.3f, -2.1f, -1.f, -1.7f, -2.1f, -1.6f, -1.9f,
- -2.3f, -.3f, .3f };
-
-struct {
- integer e_1[16];
- logical e_2;
- } comkbdrests_ = { 0, 0, 0, 2, 1, 4, 5, 4, 9, 7, 5, 5, 7, 5, 6, 6, FALSE_
- };
-
-struct {
- integer e_1[24];
- integer fill_2[24];
- integer e_3[24];
- integer fill_4[25];
- logical e_5[2];
- } cominsttrans_ = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, {0}, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, {0}, FALSE_, FALSE_ };
-
-struct {
- integer e_1[24];
- } comsize_ = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0 };
-
-struct {
- real e_1;
- } comtol_ = { .001f };
-
-
-/* Table of constant values */
-
-static integer c__9 = 9;
-static integer c__1 = 1;
-static integer c__44 = 44;
-static integer c__2 = 2;
-static integer c__4 = 4;
-static integer c__128 = 128;
-static integer c__3 = 3;
-static logical c_true = TRUE_;
-static logical c_false = FALSE_;
-static integer c__92 = 92;
-static integer c__11 = 11;
-static integer c__12 = 12;
-static integer c__17 = 17;
-static integer c__14 = 14;
-static integer c__129 = 129;
-static integer c__5 = 5;
-static integer c__13 = 13;
-static integer c__6 = 6;
-static integer c__7 = 7;
-static integer c__22 = 22;
-static integer c__0 = 0;
-static integer c__27 = 27;
-static integer c__10 = 10;
-static integer c__20 = 20;
-static integer c__26 = 26;
-static real c_b1007 = -2.f;
-static real c_b1008 = 0.f;
-static real c_b1053 = 1.f;
-static integer c__8 = 8;
-static integer c__16 = 16;
-static integer c__23 = 23;
-static integer c__39 = 39;
-static integer c__96 = 96;
-static integer c__21 = 21;
-static integer c__19 = 19;
-static integer c__24 = 24;
-static integer c__28 = 28;
-static integer c__18 = 18;
-static real c_b1901 = 2.f;
-static integer c__30 = 30;
-static integer c__60 = 60;
-static integer c__80 = 80;
-static integer c__256 = 256;
-static integer c__34 = 34;
-static integer c__120 = 120;
-static integer c__240 = 240;
-static integer c__255 = 255;
-static integer c__47 = 47;
-
-/* Main program */ int MAIN__(void)
-{
- /* Initialized data */
-
- static char date[9] = "17 Mar 20";
- static char version[5] = "2.94 ";
- static integer maxit = 200;
- static integer ncalls = 0;
- static logical isfirst = TRUE_;
-
- /* System generated locals */
- address a__1[2], a__2[4], a__3[3];
- integer i__1, i__2, i__3[2], i__4[4], i__5[3], i__6;
- real r__1;
- char ch__1[48], ch__2[64], ch__3[37], ch__4[55], ch__5[56];
- olist o__1;
- cllist cl__1;
- inlist ioin__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void), s_rsfe(cilist *), do_fio(integer *, char *, ftnlen),
- e_rsfe(void), s_cmp(char *, char *, ftnlen, ftnlen), i_indx(char
- *, char *, ftnlen, ftnlen);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer f_inqu(inlist *), f_open(olist *), f_clos(cllist *);
- /* Subroutine */ int s_stop(char *, ftnlen);
- integer s_wsfe(cilist *), e_wsfe(void);
-
- /* Local variables */
- static real devnorm0;
- static logical optimize;
- extern /* Subroutine */ int poestats_(integer *, real *, real *, real *),
- writemidi_(char *, integer *, ftnlen);
- static integer ncomments, ip1, ilb, icm;
- static real poe[125];
- static integer ivt, ivx;
- static real poe0[125];
- static integer ljob, ipoe[125];
- extern /* Subroutine */ int pmxa_(char *, integer *, logical *, integer *,
- integer *, logical *, ftnlen), pmxb_(logical *, real *, integer *
- , logical *);
- static integer ivtt, isys, ljob4;
- extern /* Subroutine */ int stop1_(void);
- extern integer iargc_(void);
- static integer nbari[125], nbars[125], iinst, isysd, numit, isyst, isysu,
- nsyst, nbars0[125];
- static real poebar;
- extern /* Subroutine */ int getarg_(integer *, char *, ftnlen);
- static integer idnord, iplast;
- static logical fexist;
- static real devpmx;
- static integer iupord;
- extern integer lenstr_(char *, integer *, ftnlen);
- extern /* Subroutine */ int printl_(char *, ftnlen);
- static integer ndxpmx;
- static real poebar0;
- static char jobname[44], infileq[47], lnholdq[128];
- static real devnorm;
- static integer numargs, nstaves;
- extern /* Subroutine */ int sortpoe_(integer *, real *, integer *);
-
- /* Fortran I/O blocks */
- static cilist io___10 = { 0, 6, 0, 0, 0 };
- static cilist io___11 = { 0, 6, 0, 0, 0 };
- static cilist io___12 = { 0, 5, 0, "(a)", 0 };
- static cilist io___15 = { 0, 6, 0, 0, 0 };
- static cilist io___16 = { 0, 6, 0, 0, 0 };
- static cilist io___17 = { 0, 6, 0, 0, 0 };
- static cilist io___21 = { 0, 6, 0, 0, 0 };
- static cilist io___24 = { 0, 18, 1, "(a)", 0 };
- static cilist io___26 = { 0, 6, 0, 0, 0 };
- static cilist io___34 = { 0, 6, 0, 0, 0 };
- static cilist io___35 = { 0, 15, 0, 0, 0 };
- static cilist io___39 = { 0, 6, 0, 0, 0 };
- static cilist io___40 = { 0, 15, 0, 0, 0 };
- static cilist io___42 = { 0, 15, 0, 0, 0 };
- static cilist io___51 = { 0, 6, 0, 0, 0 };
- static cilist io___52 = { 0, 15, 0, 0, 0 };
- static cilist io___60 = { 0, 6, 0, 0, 0 };
- static cilist io___61 = { 0, 15, 0, 0, 0 };
- static cilist io___62 = { 0, 6, 0, "(5x,20i3)", 0 };
- static cilist io___63 = { 0, 15, 0, "(5x,20i3)", 0 };
- static cilist io___64 = { 0, 6, 0, 0, 0 };
- static cilist io___65 = { 0, 15, 0, 0, 0 };
- static cilist io___66 = { 0, 6, 0, 0, 0 };
- static cilist io___67 = { 0, 15, 0, 0, 0 };
- static cilist io___68 = { 0, 6, 0, 0, 0 };
- static cilist io___69 = { 0, 15, 0, 0, 0 };
- static cilist io___70 = { 0, 6, 0, "(5x,20i3)", 0 };
- static cilist io___71 = { 0, 15, 0, "(5x,20i3)", 0 };
- static cilist io___72 = { 0, 6, 0, "(5x,20i3)", 0 };
- static cilist io___73 = { 0, 15, 0, "(5x,20i3)", 0 };
-
-
-
-/* This program, PMX, developed by Don Simons */
-/* (dsimons@roadrunner.com), is a preprocessor for MusiXTeX. In concert with */
-/* MusiXTeX and TeX, its purpose is to allow the user to create high-quality */
-/* typeset musical scores by including a sequence of PMX commands in an ASCII */
-/* input file. */
-
-/* This program is free software: you can redistribute it and/or modify */
-/* it under the terms of the GNU General Public License as published by */
-/* the Free Software Foundation, either version 3 of the License, or */
-/* (at your option) any later version. */
-
-/* This program is distributed in the hope that it will be useful, */
-/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
-/* GNU General Public License for more details. */
-
-/* You should have received a copy of the GNU General Public License */
-/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-
-
-/* To compile with gfortran: */
-/* 1. Merge all files using copy *.for epmx[nnnn].for */
-/* 2. Search and replace all character*65536 with character*131072 */
-/* 3. Comment/uncomment getarg lines */
-/* 4. gfortran -O pmx[nnnn].for -o pmxab.exe */
-
-/* To do */
-/* Correct Rainer's email address in manual */
-/* Linesplit (\\) in h */
-/* Tt at start of a movement. */
-/* Toggle midi on or off; allow midi only. */
-/* Page number printed on 1st page even if 1 system. */
-/* Still need inserted space for chordal accidentals */
-/* Voicewise transposition. */
-/* better segno */
-/* coda */
-/* duevolte */
-/* Fix xtup bracket direction in 2-line staves?? (maybe leave as is) */
-/* Sticky ornaments with shifts. */
-/* Deal with Werner's vertical spacing thing associated with title. */
-/* Multiple ties in midi */
-/* Werner's missing c in MIDI due to start/stop ties on same note. */
-/* Beams with single 64ths */
-/* 128ths and/or dotted 64ths */
-/* Close out MIDI with integral # of beats? */
-/* Increase ast dimensions or redo logic. */
-/* Does slur direction get set for user-defined single-note stem dir'ns? */
-/* Transpose by sections. */
-/* Optimization loop over sections only */
-/* Command-line option to read nbarss in. Write out nbarss when optimizing. */
-/* (or just read from .plg?) */
-/* Beams over bar lines. */
-/* 2-digit figures */
-/* A real coule (slanted line between notes in a chord) */
-/* Dotted slurs for grace notes. */
-/* Undotted chord notes with dotted main note. */
-/* Forced line break without line number */
-/* Fix dot moving when 2nds in chord get flipped */
-/* To do: increase length on notexq in dodyn */
-/* 2.94 */
-/* Allow moving dots on main and chord note in 2-note termolos */
-/* Add definitions of \hbp and \hbpp to pmx.tex */
-/* 2.91 */
-/* Tweak: insert \stdstemfalse before every user-shortened or lengthened stem. */
-/* This cancels defaul extensions to middle line and also (with 'L') allows */
-/* stems that are longer than 4.66 but still don't reach middle line. */
-/* Allow alteration of number height in multibar rest, option n. */
-/* Fix bug introduced in 2.89 so that the "o" in "mo800" is now OK. */
-/* 2.90 */
-/* Many tweaks to allow gaps at end or middle of a system using */
-/* L[n]S[x] and LC[y]. New pmx.tex. */
-/* 2.88 */
-/* Comment out print*,"Changed pathname to..." since it was going */
-/* iteration when optimizing linebreaks with the undocumented option Ao. */
-/* Add nv back in as argument for getmidi, so loop transferring data */
-/* from midivel to midvelc can be executed. This corrects bug and */
-/* allows per-instrument change in midi velocities at the start */
-/* of any block */
-/* Add subroutine inst2chan to transfer midi data as noted above. Works with */
-/* Iv but buggy when used with IT and Ib */
-/* 2.87 */
-/* Allow changes to and from octave treble clef. Instrument with it */
-/* must only have one staff. */
-/* Some fixes for beam multiplicity changes at staff jumps. Must still */
-/* use inline for mult. increase at downward staff jump. See sjb.pmx. */
-/* 2.84 */
-/* Bug fix: dots in chordal seconds */
-/* Bug fix: Initialize ihornb for non-beamed, down xtup */
-/* Bug fix: When using "AT" with 2-note x3c rD. */
-/* 2.83 */
-/* Fix problems when changing to or from octave treble clef. */
-/* Fix beaming (or not) and number location for xtups with */
-/* multiple rests. Still some problems with number height but */
-/* can be band-aided with number height tweak option. */
-/* Tweak error messages for options on "R" command. */
-/* Allow forced beam height and slope tweaks with 2-note tremolos */
-/* Allow chordal note with 2-note tremolos, adding dots as needed. */
-/* Fix call to ncmid in beamstrt when setting start height for beam of */
-/* 2-note trem, by changing arg from ivx to iv */
-/* 2.82 */
-/* bugfix: beams with rests, not confused with xtups. */
-/* x option after slur index to allow slurs to go from one voice to another. */
-/* x option also for ties */
-/* 2.81 */
-/* Allow string of rests to end xtup */
-/* in chordal half-note 2-note tremolo, make chord notes open. */
-/* 2.80 */
-/* Add 2-note tremolos */
-/* 2.78 */
-/* Expand bufq to 131072 bytes */
-/* Expand maxblks tp 9600 */
-/* Allow up to 75 pages */
-/* Index postscript hairpins from 1 up instead of by voice #. */
-/* Add option 'o' to forced beam for open notehead (\hb); set ipl(3) */
-/* Add option T[n], n=1,2,3 for single stem tremolo */
-/* 2.77 */
-/* Enable AV+/-x+/-y to add vskip bigh before or after \eject */
-/* 2.76 */
-/* 2.75 */
-/* Bugfix: unbeamed xtups with dots: in beamn1 and beamid allow dotted 16th, and */
-/* 2 or 3 flags on shortened note. */
-/* 2.74 */
-/* Bugfix: allow "0" as argument of @ command on lyrics string. */
-/* Check for and allow "\ in centered page headings with P command. */
-/* Check for and allow "\ in text dynamics with D command. */
-/* For lyrics string starting in xtuplet, insert check for inputting musixlyr. */
-/* 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 */
-/* '\lk '. Right after 2nd ", replace @[a,b][+,-]n with \at{[a,b][+,-]n}\ */
-/* Include definitions of \ly and \at in pmx.tex (2 Feb 16). After first ", */
-/* add (as type 2 string) '\\input musixlyr \' */
-/* After inputting pathname, change any '\' to '/', for Linux compatibility. */
-/* 2.72 (160110) */
-/* Really finalize \mbrest...go back to 3 args to deal with clef changes. */
-/* Fine tune centered whole bar rests to deal with clef changes */
-/* Fix bug in wsclef when >1 staff per instrument, since \setclef */
-/* needs to know instrument and specify clefs on all staves for that */
-/* instrument. Ones that were not changed by user will not be printed, */
-/* and will be kept the same as before. */
-/* Fix bug with arpegii from one voice to another in same staff. */
-/* 2.71 (151226) */
-/* Finalize mbrest mods */
-/* 2.705 */
-/* Fix error message */
-/* 2.704 (140614) */
-/* Octave treble clef */
-/* Make horizontal ornament shift (ornhshft) floating */
-/* 2.703 (140323) */
-/* Option v[-]n at end of any figure will alter figdrop for rest of system */
-/* 2.702 */
-/* Stem slurs. Only for ps, assume no other pos'n adjustments. Option "v" */
-/* 2.701 */
-/* oC = coda (\code{10}) */
-/* Move iornq(29) (blank barline) to ipl(0) (changes in pmxb, getnote) */
-/* oG = new seqno */
-/* To do: fix grace note spacing problem (partially done) */
-/* 2.622 */
-/* Redefine midtc(..) and miditran(..); clean up all transpositions/key changes */
-/* Kn[+/-...] \ignorenats at signature changes */
-/* Fix tie checks in doslur() and dopsslur() to subtract iTransAmt from nolevs */
-/* before checking and setting pitch levels levson() and levsoff() */
-/* Define midisig separately from isig. Put in common commidisig. */
-/* Use for explicit midi signature and for accid corrections to midi piches */
-/* in addmidi. */
-/* 2.621 */
-/* Make keyboard rest option work in xtuplets. Created subroutine */
-/* chkkbdrests, modified make2bar to include calls to chkkbdrests as rqd. */
-/* 2.620 */
-/* Allow user-defined rest height tweaks at start of beam. */
-/* 2.619 */
-/* At movement break, change \nbinstruments in \newmovement macro; add */
-/* 3rd arg to \newmovement in pmx.tex; modify pmxb.for and getnote.for */
-/* to remove call to newnoi and change call to \newmovement */
-/* 2.618 */
-/* Add option Ac[l,4] to set vert and horiz size and offsets to properly */
-/* center page for letter or a4 paper. */
-/* 2.617 */
-/* In g1etnote, change if-check for note to use index(...) instead */
-/* of ichar(charq) since it was messing up gfortran optimizer */
-/* After pmxa, search for and remove penultimate line <blank><blank>/ */
-/* because it was screwing up linux-compiled versions */
-/* Bugfix: Increase dimension of kicrd from 7 to 10 in crdaccs(...) */
-/* 2.616 (111110) */
-/* Allow hairpins to span multiple notes groups (gulps). */
-/* 2.615+ (110810) */
-/* Fix midi when some instruments are transposed, by subtracting */
-/* iTransAmt(instno(iv)) from pitch values sent to via addmidi in */
-/* make2bar.for (for main notes) and docrd (for chord notes) */
-/* 2.615 (110725) */
-/* Fig bug with size-setting (in topfile) when instrument has >1 staves */
-/* 2.615 (110724) */
-/* Make AS[0|-|s|t]... really set sizes */
-/* 2.614 */
-/* Mod notex.for to fix Terry's bug with raised dotted rests (caused */
-/* by double-hboxing). */
-/* 2.613 */
-/* Bugfix: In pmxa, change "do while" limit to keep from overwriting instno. */
-/* 2.612 */
-/* Enhance AS to allow s or t for smallsize or tinysize */
-/* 2.611 */
-/* Error trap for "D" before any notes in a block. */
-/* 2.610 */
-/* Instrument-wise key changes and transposition (incomplete) */
-/* 2.603 */
-/* 101211 In getpmxmod.for, decreased nline by 2 to fix locating errors */
-/* following reading in an include file. */
-/* 101121 Added some error messages in g1etset.for setup data */
-/* 2.602 */
-/* Correct slur indexing in linebreakslurs. */
-/* Account for comment lines in line count for error messages */
-/* 2.601 */
-/* Bug fix: allow 24 slurs with graces */
-/* 2.60 Changes made make it really big */
-/* increase mv (size of midi) ? Note: MIDI can't have >16 voices w/o */
-/* major reprogramming, and 16 may also be a problem (icmm) */
-/* nm=24 (voices) done */
-/* 24 slurs done */
-/* 24 simultaneous beams (Replace index 24 by 0, so get 0-23) */
-/* bufq*131072 (gfortran only) */
-/* getarg syntax (gfortran only) */
-/* 2.523+ */
-/* Fix voice numbering for normal dynamics and text dynamics */
-/* 2.523 */
-/* Version of bigpmx first posted to Hiroaki's web site. */
-/* 2.522 */
-/* 5/26/10 Replace ipl bits 0-7 with ipl2, add new common for it. */
-/* With 2.521+ as starting version, incorporate bigpmx mods to allow 24 voices. */
-/* 5/13/10 Fix log2 function */
-/* 5/15/10 Fix bitwise storage for dynamics, fix segnoo string length. */
-/* 2.521+ */
-/* 091025 Enable dotting 2nd part of linebreak slur or tie. */
-/* To adjust barno height due to linebreak slur, use \bnrs instead of */
-/* explicitly redefining \raisebarno (pmxb) */
-/* 2.521 */
-/* Bugfix */
-/* 2.520 */
-/* 090519 Enable ligfonts (special figured bass characters) */
-/* 2.519 */
-/* Fix another bug which kept \sk from being output so misaligned some notes. */
-/* 2.518 */
-/* Fix bugs: referencing fig data, char declaration for member of */
-/* common/comfig/ */
-/* 2.517 */
-/* Allow figures in voice 1 + any one other. */
-/* 2.516 */
-/* Allow figures in voice #2 */
-/* 2.515+ to do: Change manual and activate rule against clef change in voice #2. */
-/* 2.515 */
-/* 071222 Changes in getnote to allow auto forced beams to start anywhere. */
-/* 071206 In make2bar, shift fermataup7 to left over centered pause. */
-/* 070901 In doslur, check for nolev <=2 in case slur ends on rest in 2-line */
-/* staff (it was screwing up vertical justification). */
-/* n34 for tweaks to midi durations of quarter note septuplets. */
-/* To do: In ref250.tex, the tables where 's,t,)' is explained, the line */
-/* [+,- i] ... Vertical adjustment of the start of second segment */
-/* should it be replaced by */
-/* [s +,- i] ... Vertical adjustment of the start of second segment */
-/* 2.514 */
-/* Changes in make2bar to get horizontal spacing right when normal grace */
-/* follows after grace */
-/* Changes in dograce to get octaves right for any material entered inside */
-/* \gaft, which shields transpose register changes from the outside world. */
-/* 2.513 */
-/* In make1bar, near end, for forced beams starting with a rest, copy hgt and */
-/* slope tweaks to ALL notes after first, not just the second one, so if */
-/* there's more than one rest at start the tweaks are still observed. */
-/* In beamid and beamend, add stand-alone triply-flagged notes for xtups. */
-/* 2.512 */
-/* Near end of pmxb, fix error trap to allow redundant 'RD' */
-/* Enable multiplicity down-up '][' within xtup. */
-/* 2.511 */
-/* Introduce eskz2 for xtup #'s and bracket lengths, to remove bug caused by */
-/* adjusteskz as in bar 7 of barsant. */
-/* 2.510a */
-/* Test: remove restriction on tempo changes in MIDI macros */
-/* Send to CM for beta testing. */
-/* 2.509+ */
-/* To do: Correct manual on AS. "-" is for smaller staves. */
-/* 2.510 */
-/* Forgot to declare litq, voltxtq as character in subroutine getgrace */
-/* 2.509 */
-/* Corrected small bug in arpeggio shifting (ivx <= iv in call putarp) */
-/* 2.508 */
-/* Allow graces in xtups. New subroutine getgrace. */
-/* 2.507 */
-/* To do: Raise/lower figures. */
-/* To do: Add 24, 29 to list of musicsizes in manual */
-/* New sub adjusteskz to account for ask's when computing lengths of */
-/* brackets for unbeamed xtups, slopes and horizontal posn's of number */
-/* Bug fix: in beamn1, beamid, and beamend, allow unbeamed xtups w/ 2 flags */
-/* Add look-left option for keyboard rests, "L" in rest command, set iornq(30) */
-/* 2.506 */
-/* Fix bug with AK, when simultaneous rests have same duration, use defaults. */
-/* 2.505 */
-/* Keyboard rests AK */
-/* 2.504 */
-/* Space after normal grace: option X[n] */
-/* Fixed og when nv .ne. noinst, by using sepsymq instead of '&' */
-/* (To do) length of xtup bracket when there is added non-collision space. */
-/* Trap musicsize if .ne. 16,20,24,29. */
-/* 2.503 */
-/* Enable arpeggio left shift with ?-x */
-/* To do: In manual, arpeggio over 2 staves. */
-/* Allow musicsize of 24 and 29. Had to define meter font size explicitly, */
-/* also change font size for text dynamics, but not much else so far. */
-/* Bugfix in beamstrt, introduced in 2415, ip was changed before putxtn */
-/* was called, causing error in printing replacement number. */
-/* 2.502 */
-/* Incorporate Dirk Laurie's patch to use { , } , for ties. */
-/* Figure height adjustment: append +[n] */
-/* Change ec font stuff in pmx.tex per Olivier Vogel's comment (CM email?) */
-/* 2.501 */
-/* Readjust horizontal offset back to .8 in LineBreakTies */
-/* Fix zero-subscript (iudorn) in putorn */
-/* 2.50 */
-/* Increase number of text-dynamics (dimension of txtdynq) per block */
-/* from 12 to 41. */
-/* Slur option n to override altered default curvature. */
-/* Allow default ps slur curvature tweaks with Ap+/-c */
-/* 2.416 */
-/* Increase length of textdynq from 24 to 128 */
-/* (Todo) Add comment in manual about blank lines at end. */
-/* Configuration file: Define subroutine getpmxmod, check path in environment */
-/* variable pmxmoddir, check existence, read lines into bufq after setup. */
-/* Increase dimension on idynn in dodyn from 4 to 10 for max number */
-/* of marks in a bar */
-/* Increase allowable # of lines from 2000 to 4000. */
-/* (To do) Replace definition of \liftpausc per Olivier. */
-/* (To do) Fix extraneous error message if RD is placed at very end. */
-/* 2.415 */
-/* Fix "AT" option: replace putxtn,topfile,beamstrt,beamid to use \xnumt */
-/* instead of redefining \xnum. Change font used to \smallfont (as for */
-/* normal xtups, */
-/* Allow slur to start on rest. */
-/* 2.414 */
-/* Correct bug in crdacc when adding accidental to boundary causes number of */
-/* segments to decrease */
-/* Special rule for 3-accidental chords: If no 2nds, place them in order */
-/* top, bottom, middle. */
-/* 2.413 */
-/* Correct bugs in chordal accidentals, related to left-shifted noteheads */
-/* (a) Special problems with downstem when main note needs shifting */
-/* (b) Assign 0 rank to boundary segs due to left-shifted noteheads */
-/* 2.412 */
-/* Change default horiz shift of start of seg 2 of linebreak slurs: */
-/* -.7 for slurs, -1.2 for ties, */
-/* Use height of start of seg 1 slur itself for end of 1 and start of 2. */
-/* 2.411 */
-/* "Apl" activates special treatment of linebreak slur/tie's; breaks all in 2. */
-/* "s" option in start of slur/tie as precursor to vert/horiz tweaks for end */
-/* of seg 1. of linebreak slur/tie, 2nd "s" for start of seg2. */
-/* With "Apl", curvature adjustments on starting slur command apply to seg 1, */
-/* those on ending command to seg 2. */
-/* 2.410 */
-/* "AT" to allow Col. S.'s tuplet option. Simply input tuplet.tex and redefine */
-/* \xnum, \unbkt, \ovbkt. */
-/* "s" option in main xtup input after "x": slope tweak for bracket. mult(4) is */
-/* flag, mult(5-9) is tweak value+16 */
-/* 2.409 */
-/* Bugfix in docrd for MIDI: Use original pitch in case main/chord were */
-/* switched due to 2nds. */
-/* Remove "o" from error message for "A" command. */
-/* New syntax: optional instrument number separator ":" in movement */
-/* break command to precede a 2-digit instrument. */
-/* Conditional output formats for \setname at movement break to allow */
-/* instrument numbers >9. */
-/* Bugfix in coding to raise barno due to slur over line break (pmxb) */
-/* Move date/version data statement in pmxab to a better place. */
-/* 2.408 */
-/* Allow pnotes{x} when x>9.995 (mod is only to format stmt in make2bar). */
-/* Bug fix in \liftPAusep in notex.for and in pmx.tex */
-/* Character variables for version and date */
-/* For up-stem single graces slurred to down-stem, shift slur start left by */
-/* 0.8 so slur doesn't get too short. */
-/* Initialize and slide mult, same as other full-program variables in /all/. */
-/* 2.407 */
-/* Allow AN[n]"[partname]" to be parsed by scor2prt as filename for part n, */
-/* 2.406 */
-/* Alter PMX: put \dnstrut into \znotes in \starteq (for system spacing */
-/* equalization). */
-/* Put dimensions of double sharps and flats in crdacc (for chords). */
-/* Bugfix: Use sepsymq in LineBreakTies(..) instead of '&' */
-/* Use only first 4 bits of mult for multiplicity+8, so rest can be used */
-/* for other stuff. */
-/* Move stemlength stuff in nacc(27-30) to mult(27-30) to remove conflict. */
-/* 2.405: Not published but saved for safety. */
-/* Option Aph to write \special{header=psslurs.pro} top of each page, so */
-/* dviselec will work OK. */
-/* 2.404 */
-/* Allow slur to end on rest, but not start on a rest. Efaults height */
-/* of ending is default height of start (before any automatic or user- */
-/* defined djustments). User may adjust height as normal from default. */
-/* 2.403 */
-/* Bugfix: turn off repeated beaming patterns.at end of non-last voice. */
-/* 2.402 */
-/* Automatic repeated forced beams. Start with "[:" End with next explicit */
-/* forced beam or end of input block. */
-/* Increase # of forced beams per line of music per input block from 20 to 40 */
-/* 2.401 */
-/* Optional K-Postscript Linebreak Ties, Apl. New subroutine LineBreakTies. */
-/* Makes 1st part normal shape, and starts 2nd part a little further left. */
-/* Enable arpeggios in xtuplets. Had to make time itar(narp) a real. */
-/* 2.40 */
-/* Set up WrotePsslurDefaults (logical) so only write defaults on 1st Ap. */
-/* Fix non-ps-slur input to \midslur (third signed integer). Do not reverse */
-/* sign for down-slurs. */
-/* 2.359 */
-/* Add error exit subroutine stop1 to make exit status g77-compatible.. */
-/* Absolute octave on xtup chord note was 2 octave too high, fixed in getnote */
-/* Fermata on vertically shifted rest: special trap in putorn() to set height. */
-/* Correct multiple grace note spacing for small staves (in dograce, */
-/* define wheadpt1 depending on staff size) */
-/* 2.358 */
-/* Allow curvature corrections at start of postscript slur, in dopsslur() */
-/* Local slur options p[+|-][s|t] for [nos|s]luradjust,[not|t]ieadjust */
-/* Options for [Nos|S]luradjust,[Not|T]ieadjust,[noh|h]alfties: Ap[+|-][s|t|h] */
-/* Make t[ID] act like s[ID]t, most mods in spsslur(). */
-/* Add spsslur() to read in data for ps slurs, call from getnote. */
-/* In beamstrt, save args for SetupB in common comipb to save them for */
-/* 2nd call when xtup starts with rest */
-/* Add spacing for ornament ")" as if it were accidental, in make2bar(). */
-/* Horiz shift start and end of ps ties, dep. on stem dir'n, in dopsslur() */
-/* Horiz. shift start of ps grace slur, 2 places in dograce(). */
-/* Horiz shift end of grace slur in endslur() */
-/* Make st slurs into postscript ties. Separate subroutine dopsslur(), */
-/* Non-beamed xtup: "a" in 1st note or rest, before "x" (sets drawbm=.false.) */
-/* Allow two D"x" on same note. Introduced jtxtdyn1 in dodyn. */
-/* 2.357a */
-/* Fix missing "end" in backfill.com, too-long lines in g1etnote, getnote */
-/* 2.357 */
-/* Increase dimension for # of lit TeX strings from 52 to 83. */
-/* Allow blank rest in middle of xtuplet. Only mods in g*etnote(). */
-/* 2.356 */
-/* Increased some dimensions from 30 to 40 to allow up to 40 pages. */
-/* In unbeamed xtups, "n" did not suppress bracket. Fixed in beamstrt(). */
-/* Fix parsing of "f,h,H,HH" in sslur. */
-/* Fix bug with cdot, note-level for slur termination (in getnote) */
-/* 2.355 */
-/* Midi transposition: IT[+|-][n1][+|-][n2]...[+|-][n(noinst)], */
-/* n=# of half-steps. Restrict to mult. of 12 now, to avoid key-sig issues */
-/* Make midi recognize ps ties in doslur. */
-/* Correct ttieforsl so that it eats 2nd argument properly, using \zcharnote */
-/* to get octave right. */
-/* 2.354 */
-/* With postscript slurs, make t-slurs real ties by inserting replacement */
-/* macros \tieforisu, etc, defined in pmx.tex */
-/* Check for open cresc or decresc at end of input block, using list[de]cresc */
-/* Hairpin syntax conditional on postscript slurs. Backup to fill in start */
-/* level, using new backfill(...). Separate height tweaks for */
-/* start and finish. */
-/* 2.353 */
-/* K-0+n to transpose by half step (rather than just change key) */
-/* Allow "rm[n]" when nv>1. Require it in all parts. Just write a stack of */
-/* \mbrest's */
-/* Enable "Rz"; define \setzalaligne in pmx.tex. Special treatment at end */
-/* of input block before movement break, and at start of block after */
-/* movement break, using \newmovement rather than \setzalaligne, since */
-/* former already redefines \stoppiece. In second case, set rptfg2='z'. */
-/* Make clefq(nm) common between pmxb and getnote; change references in */
-/* getnote at 'M' to array elements, setting all new clefs as you go. */
-/* 2.352 */
-/* Remove \parskip redefinition from pmx.tex; write it into TeX file when */
-/* "Ae" is invoked. */
-/* Ap to activate postscript slurs. Add macro \psforts to pmx.tex to redefine */
-/* \tslur in case \midslur was used. Allow slur inputs 'f','h','H','HH', */
-/* translate them thru mapping to (1,4,5,6) as \midslur params, then let */
-/* \psforts translate them back to ps slur macors. */
-/* 2.351 */
-/* Number slurs from 0 up instead of 11 down, anticipating postscript slurs. */
-/* Write "\eightrm" instead of "\cmr8" for \figfont with small baseline size. */
-/* Increase length of basenameq to 44 characters everywhere. */
-/* Increase dimension of mcpitch (midi-chord-pitch) to 20. */
-/* Set default systems per page to 1 if nv>7 */
-/* In pmxb, move place where isystpg is reset to 0, so that \eject gets */
-/* written when there is just one system per page. */
-/* 2.35 */
-/* Cautionary accidentals with 'c' anywhere in note symbol. */
-/* NEW pmx.tex with \resetsize to set size to normal or small depending on */
-/* current \internote. Used with new coding in dograce() to get right */
-/* new size in case user has \setsize'ed some lines to \smallvalue. For */
-/* \smallvalue-sized staves, redefine \tinynotesize to give 11-pt font. */
-/* Affects pmx.tex. */
-/* Continuation figure with fractional length. May now mix with other figures. */
-/* If another figure follow Cont-fig, separate with colon. */
-/* 2.342 */
-/* Bugfix in getnote to recognize relative octave shift in grace at start of */
-/* input block. */
-/* In make2bar, initialize islhgt=0 earlier than before (possible solution */
-/* to Suse g77 compile problem that I could not reproduce).. */
-/* Bugfix in beamstrt & beamn1 for r2x6 c4D d d d */
-/* 2.341 */
-/* Syntax check: Forced page break page number must be > than previous. */
-/* Bugfix: Define ivx when "sliding down" breath/caesure data in pmxb. */
-/* 2.34 */
-/* New pmx.tex with redefined liftpausc */
-/* Bug fix with dotted, non-beamed xtups. */
-/* 2.332 */
-/* Fix bugs in horizonal shifts, spacing, for accid's, graces, noteheads. */
-/* Allow arbitrary pos. input to W in g1etnote and getnote. */
-/* 2.331 */
-/* Bug-fix in dodyn(..): typo on length of arg of txtdyn */
-/* 2.33 */
-/* Caesura (oc), breath (ob). Set iornq(28), store rest of data in ibcdata() */
-/* 2.321 */
-/* Rescale accidental shifts. Still use 7 bits but now map (0,127) */
-/* onto (-1.,5.35) */
-/* Fix ihornb bug in dodyn, seen with dynamics on lower-voice non-beamed xtups */
-/* 2.32 (Noticed after posting) */
-/* Prohibit "/" as figure. */
-/* 2.32 (Posted) */
-/* Tidied up accidentals in chords, do spacing. */
-/* Still to do: */
-/* check for "(" on chord notes in spacing algo */
-/* small accids */
-/* double accids */
-/* autoshift slurs */
-/* 2.310 */
-/* Extra call to precrd ahead of spacing chk, and single-note crd/acc */
-/* shifts seem OK, but not multiple. crd/acc shifts not recorded 1st time. */
-/* 2.309 */
-/* Alternate algo for accid shifts in chords. */
-/* 2.308 */
-/* Auto horiz. notehead shifting added to precrd. */
-/* 2.307 */
-/* Auto shifting of multiple accidentals in chords. */
-/* "Ao" in main chord note to keep accidentals in order. Set nacc(28). */
-/* If there are any manual main or chord note shifts, then */
-/* If any manual shift is preceded by "A" then */
-/* 1. Auto-shifting proceeds */
-/* 2. "A"-shifts add to autoshifts */
-/* 3. non-"A" shifts are ignored! */
-/* Else (>0 man shifts, none has "A") */
-/* No auto-ordering, No autoshifts, */
-/* End if */
-/* End if */
-/* 2.306 */
-/* Initialize legacy note level to middle C in case user forgets to set */
-/* octave. */
-/* Shift xtup note? */
-/* Shift in elemskips rather than noteheads? */
-/* 2.305 */
-/* Stop pmxb from multiple endvolta's at start of new page. */
-/* 2.304 */
-/* "Sx" in a note means shorten stemlength by x \internotes. "Sx:" turn on */
-/* for multiple notes in the voice, "S:" last shortened note. */
-/* 2.303 */
-/* vshrink stuff all OK? Description is in pmxb. */
-/* 2.302 */
-/* Toggle vshrink with "Av". vshrink normally kicks in when \interstaff */
-/* hits 20. This still needs work. */
-/* Add " /" to last line if last char is not % or /. */
-/* 2.301 */
-/* Check in beamn1 for single note before multiplicity down-up. */
-/* allow '.PMX' as well as '.pmx' */
-/* 2.299 */
-/* Correct typo in pmxb involving PMXbarnotrue. */
-/* Replacement printed number for xtup: Unsigned integer after 'n' after 'x' */
-/* Minor upgrade parsing xtuplet options 'x...' */
-/* Correct dimension of nxtinbm in make2bar. */
-/* 2.298 */
-/* Account for doubled xtup notes in subroutine getx (user-defined spaces), */
-/* by adding ndoub as an argument.. */
-/* 2.297 */
-/* Created and solved compiler problem. Put drawbm(NM) in its own common. */
-/* Add new def'ns [\a|PA]usc, \lift[pa|PA]usc to pmx.tex, use them in make2bar */
-/* when \centerbar is used. */
-/* Modify \mbrest & \CenterBar in pmx.tex to use \volta@endcor etc. Have PMX */
-/* use right 2nd and 3rd args for \mbrest when key, meter, or clef changes. */
-/* 2.296 */
-/* Correct printed numbers for forced beams with multiple xtups. For each beam */
-/* make list in setupb by voice of eloff (h-offset) and mtupv (printed #) */
-/* Increase lengths of jobname and infileq by 20 characters */
-/* Enable whole notes and breves as 1st or last note of xtup in beamn1 and */
-/* beamend, and wholes in beamid. */
-/* 2.295 */
-/* Midi balance Ib[n1]:[n2]:...[nn] */
-/* Single-slope beam groups [...]-[...] */
-/* Trap "i" unless after accidental (main notes, xtups, chord notes) */
-/* 2.294 */
-/* Unequal xtups with "D" to double a note in an xtup. */
-/* As above, "F" will (a) increase multiplicity by 1 for marked note and next */
-/* one and (b) add a dot to the first one. */
-/* Fix bug with e.g. c84 [ .d e.f ] by checking whether forced beam is on */
-/* when "." is encountered, then correcting beam start time.(end of getnote) */
-/* MIDI velocity (volume) set: Iv[n1]:[n2]:[n3]... */
-/* 2.293 */
-/* Check for single notes spanning bar lines. */
-/* Correct various bugs with staff-jumping beams. (1) for 2nd segment, vxtup */
-/* must be set in make2bar since beamstrt is not called, fixing problem with */
-/* dot at end. (2) add ivjb2 to flag which voice has 2nd segment and fix */
-/* problem when >2 staves. */
-/* Add nodur to args of dodyn, so can check if stemless and avoid height tweak */
-/* Correct bug in getdyn setting flag in idynda2(0) for manual horiz. tweak */
-/* 2.292a */
-/* Undo syntax check for Type 2 or 3 TeX string starting in column 1. */
-/* Meanwhile, Werner's problem with a mid-line Type 3 string has gone away?! */
-/* 2.292 */
-/* Allow comments in xtuplets */
-/* Enable multiple octave jumps in grace notes. */
-/* Allow dynamics in xtuplets. */
-/* Fix bug in getdyn searching for end of text string (correct length of lineq */
-/* to 128) */
-/* Fix bug in dodyn, must ignore horiz. interaction tweak for */
-/* user-text (idno = 0) */
-/* Syntax check for Type 2 or 3 TeX string starting in column 1 */
-/* (NOTE: later undone!) */
-/* Syntax check for page number > npages at forced line break. */
-/* 2.291 */
-/* Fix error in AS command (accid spacing for small systems), making only */
-/* one spec per staff, nv total. */
-/* Stop using MIDI channel 10 */
-/* 2.29 */
-/* Fix error in console output format for # of bytes used in MIDI file. */
-/* Fix bug in dograce so no space is added between grace and main note when */
-/* there is a MIDI-only accidental. */
-/* Fix bug so oes?+4 works. It was too ugly to explain. */
-/* ...Different ways of storing accidental specs on input and output. */
-/* No longer zap \writezbarno in special situations. */
-/* Fix bug in dyntxt level on rest */
-/* Line spacing equalization. Add macros \starteq, \endeq, \spread, etc. */
-/* Activate with Ae. (Maybe later could input alternate values for */
-/* \upamt, \dnamt, \parskip). Put \starteq on 1st note in voice 1 */
-/* in the page, and \endeq on 1st note of next-to-last line in page. */
-/* 2.28 */
-/* Flip direction of forced beam "[f..." */
-/* Fix beam numbering for staff jumping beams. Uses irest(23,24,29,30) */
-/* Fix bug in sliding ip's for txtdyn's */
-/* In dyn's allow vert. offsets +/-64, horiz +/-25.6 (store in idnyda2(1-99) */
-/* 2.27 */
-/* Comment out lines in dodyn checking number of dynamic marks found. Voice */
-/* order may not be monotonic if two lines on a staff. */
-/* Literal dynamic: D"[text]" */
-/* 2.26 */
-/* Allow hairpin start-stop on same note by disabling auto-tweaks in dodyn, */
-/* increasing dimension of idynn to 4 to allow 4 symbols on same note. */
-/* Increase voltxtq length from 10 to 20. */
-/* AS[-/0][-/0]... to inform PMX that "-" voices are small, and rough */
-/* accounting for ast's is done by defining effective headwidth */
-/* whead1 in makebar2 to be 0.8*whead. */
-/* 2.25 */
-/* Fix logic bug with sepsym's when # of instruments changes. */
-/* Slight increases in default offsets for hairpin starts after "p" */
-/* 2.24 */
-/* Hairpins D< or D> as toggle. */
-/* Many automatic position tweaks for letter-group dynamics and hairpins. */
-/* 2.23 */
-/* Continued rhythmic shortcuts: space followed by "." or "," */
-/* 2.22 */
-/* In call to doslur, change tno(...) to tnote(...). This was only */
-/* used when checking to slurs per stem directions, and should have been */
-/* the note duration all along. */
-/* MIDI-only accidental, bit 17 in nacc, or 27 in icrdat. */
-/* Use "i" anywhere in note symbol. */
-/* 2.21 */
-/* Increase from 20 to 30 dimensions for movement breaks and midi sections. */
-/* Fix out-of-order declarations per mutex comments */
-/* Add "Bad error" and "Kluging" messages to log file. */
-/* 2.197 */
-/* add /comips/ to save tie-check midi variables */
-/* For spacing of clef changes at start of input block, changed integer time */
-/* lastnodur to prevtn, so it works with xtups. Possible incompatibility! */
-/* 2.196 */
-/* Fix Ickbug with time check in ncmid() */
-/* Interchange \fermataup7 and \pausec to get proper alignment */
-/* Enable French violin clef "f", number 7 in PMX, but 9 in MusiXTeX. */
-/* Add defn's of \hsp, \hspp to pmx.tex */
-/* Fix pre-slurs on xtup chord notes. */
-/* Fixed raised PAuse, define \liftPAuse */
-/* Replace \zbreve\sk with \breve. */
-/* Made "1" work as mtrdenl by doubling it and mtrnuml. BUT WAIT...what */
-/* about "o" and 1 as shorthand for 16???? Search for "Kluge" */
-/* Added "vo" (voice) as MIDI instrument 55 */
-/* Allow 3-digit page numbers (search for "toppageno") */
-/* Fix bug caused by prior fix (cancelling accid after bar line was ignored). */
-/* Fix double accids in chords */
-/* 2.194 */
-/* Fix bug with accid/tie/barline/chord in addmidi by restructuring accid if */
-/* block. */
-/* Add meter to MIDI file with every pause */
-/* Purify FORTRAN? */
-/* 2.193 */
-/* Increased # of in-line TeX strings from 36 to 52. */
-/* Fix entry of # of bytes in header of tempo/meter/key track to allow >255. */
-/* 2.191 */
-/* Event track: Tempos, meters, keys all together. Data in comevent */
-/* 2.15 */
-/* Pretty good midi capability. Still no attention to slurs on chord notes. */
-/* 2.11 */
-/* 11 Dec 99 c rm1 */
-/* 11 Dec 99 "oes?", "oe?" */
-/* 11 Dec 99 Cancel slur horizontal tweaks with non-stemmed notes */
-/* 11 Dec 99 Error message for shifted, repeated ornaments. */
-/* 2.10 (Version 2.1) */
-/* Fix bug with lowdot and xtuplets */
-/* 2.09 */
-/* Fix bug with multiple ornament heights over beams, when one is . or _ */
-/* Error message from pmxa if rest on last note of xtup. */
-/* Enable 12 slurs. */
-/* Reinstate multiple rests at start of xtup. */
-/* 2.07 */
-/* Combine consecutive type-1 TeX strings. */
-/* \midslur and \curve as 3rd signed digit in slur termination, + 2 opt.int's. */
-/* Fixed breve chord notes in docrd */
-/* Check irest(28) as well as vxtup when setting nodur for chord notes, since */
-/* vxtup isn't set until 1st *main* note in xtup */
-/* Vectorize nolev1, slope, ixrest. Klug fix for xtups with variable spacing. */
-/* 2.06+ */
-/* Make deterministic the beam slope calculation when there are an even # of */
-/* slopes in list and middle two are equal magnitude but opposite sign. */
-/* pmxa Trap for "o:" before 1st note in block */
-/* Partial bug fix for 64th notes in xtuplets. */
-/* Make ixrest a vector, since with new time scheme may not finish xtup in */
-/* same notes block. */
-/* Increase max # of pages from 20 to 30 (dimensions of nsystp,..., in pmxb) */
-/* 2.06 */
-/* Account for changes in nv when computing \interstaff. Add a counter */
-/* nistaff(iflb) = # of interstaff spaces per system = nv-1. Set whenever */
-/* setting isysflb(iflb). Note nv can only change at a forced line break. */
-/* Note also, iflb starts at 0! */
-/* 2.05 */
-/* Automatic start of new notes group with part 2 of staff-jump beam */
-/* In make1bar, set irest bit 29 of lowest-voice note at same time, */
-/* use as flag when making notes groups. */
-/* For now, remove dummy blank line at end...it zaps terminal repeats. */
-/* 2.02 */
-/* Fixed slur-counting bug for multiple, slurred, aftergraces. */
-/* 2.01 */
-/* Increase to ask(1400) */
-/* Increase max forced page breaks to 18 */
-/* Define pausc for centered pause */
-/* 2.0a */
-/* Insert dummy blank line at very end to handle input files w/o terminal CR-LF */
-/* pmx03r */
-/* Option m[n] in S symbol to change musicsize (for parts) */
-/* Double dotted rests now work. */
-/* Write file name to log file */
-/* Check existence of input file */
-/* Allow 24-char jobname, may end with ".pmx" */
-/* Comment out time stuff */
-/* Replace 3-argument getarg with 2-argument + iargc */
-/* Fix bug with negative noinst due to nint<=int replacement */
-/* move lovation of iv in isdat1 to allow iv>7. */
-/* Set nm=12 */
-/* pmx03q */
-/* replace int(x+.001) with nint(x) */
-/* Write TeX file name to screen and to pml. */
-/* Replace char(...) with chax(...) to sovle msdev bug. */
-/* Bug fix: macro terminations when M is on a line by itself. */
-/* Bug fix: don't accumulate space for XS in pmxa. */
-/* Streamline Macros: use pointers to bufq instead of scratch files */
-/* pmx03p */
-/* Store input file in single character array bufq. */
-/* lbuf(i)*2 is length of line i */
-/* ipbuf is position just before next line to be read. */
-/* pmx03 */
-/* Optimize read/writes */
-/* pmx02 */
-/* Fix line count (for errors) when there are saved macros */
-/* pmx01 */
-/* In optimize mode, open/close macros (Watch out for residual zz files!) */
-/* Command line input */
-/* Option Ao to optimize, otherwise normal processing */
-
-/* cccccc */
-
-/* Added 130302 only to get nsperi from g1etnote, for use in midi setup */
-
-
-/* immac(i) is the index of i-th macro, i=1,nmac. Also make a list containing */
-/* nmidsec section starts and stops based on PLAYING macros (not recording). */
-
-/* cccccccccccccccccccccccc */
-
-
-/* cccccccccccccccccccccccc */
-/* itstart = mytime() */
-#line 838 ""
- s_copy(comver_1.versionc, version, (ftnlen)5, (ftnlen)5);
-
-/* Initialize midi parameters */
-
-#line 842 ""
- commmac_1.gottempo = FALSE_;
-#line 843 ""
- commidi_1.ismidi = FALSE_;
-#line 844 ""
- commidi_1.debugmidi = FALSE_;
-#line 845 ""
- commidi_1.relacc = FALSE_;
-#line 846 ""
- commmac_1.mmacrec = FALSE_;
-#line 847 ""
- commmac_1.nmidsec = 1;
-#line 848 ""
- commidi_1.mgap = 10;
-#line 849 ""
- comevent_1.miditime = 0;
-#line 850 ""
- comevent_1.lasttime = 0;
-#line 851 ""
- commidi_1.nmidcrd = 0;
-#line 852 ""
- comslm_1.nusebl = 0;
-#line 853 ""
- commidi_1.notmain = FALSE_;
-#line 854 ""
- for (ivx = 1; ivx <= 24; ++ivx) {
-#line 855 ""
- commidi_1.twoline[ivx - 1] = FALSE_;
-#line 856 ""
- commidi_1.midinst[ivx - 1] = 6;
-#line 857 ""
- commvel_1.midivel[ivx - 1] = 127;
-#line 858 ""
- commvel_1.midibal[ivx - 1] = 64;
-#line 859 ""
- commvel_1.miditran[ivx - 1] = 0;
-#line 860 ""
-/* L3: */
-#line 860 ""
- }
-#line 861 ""
- for (icm = 0; icm <= 24; ++icm) {
-#line 862 ""
- commidi_1.imidi[icm] = 0;
-#line 863 ""
- commidi_1.restpend[icm] = FALSE_;
-#line 864 ""
- commidi_1.trest[icm] = 0.f;
-#line 865 ""
- comslm_1.levson[icm] = 0;
-#line 866 ""
- comslm_1.levsoff[icm] = 0;
-#line 867 ""
- comslm_1.slmon[icm] = FALSE_;
-#line 868 ""
- comslm_1.naccbl[icm] = 0;
-#line 869 ""
- comdiag_1.n69[icm] = 0;
-#line 870 ""
- comdiag_1.n34[icm] = 0;
-#line 871 ""
- commmac_1.msecstrt[icm] = 1;
-#line 872 ""
-/* L12: */
-#line 872 ""
- }
-
-/* End of midi parameter initialization */
-
-#line 876 ""
- commus_1.musize = 0;
-#line 877 ""
- optimize = FALSE_;
-#line 878 ""
- numargs = iargc_();
-#line 879 ""
- if (numargs == 0) {
-#line 880 ""
- s_wsle(&io___10);
-#line 880 ""
- do_lio(&c__9, &c__1, "You could have entered a jobname on the comman"\
- "d line,", (ftnlen)53);
-#line 880 ""
- e_wsle();
-#line 881 ""
- s_wsle(&io___11);
-#line 881 ""
- do_lio(&c__9, &c__1, " but you may enter one now:", (ftnlen)32);
-#line 881 ""
- e_wsle();
-#line 882 ""
- s_rsfe(&io___12);
-#line 882 ""
- do_fio(&c__1, jobname, (ftnlen)44);
-#line 882 ""
- e_rsfe();
-#line 883 ""
- numargs = 1;
-#line 884 ""
- } else {
-/* call getarg(1,jobname,idum) ! May need to replace this w/ next line */
-#line 886 ""
- getarg_(&c__1, jobname, (ftnlen)44);
-#line 887 ""
- }
-#line 888 ""
-L10:
-#line 888 ""
- ljob = lenstr_(jobname, &c__44, (ftnlen)44);
-#line 889 ""
- if (ljob > 44) {
-#line 890 ""
- s_wsle(&io___15);
-#line 890 ""
- do_lio(&c__9, &c__1, "Jobname is too long. Try again.", (ftnlen)31);
-#line 890 ""
- e_wsle();
-#line 891 ""
- stop1_();
-#line 892 ""
- } else if (ljob == 0) {
-#line 893 ""
- s_wsle(&io___16);
-#line 893 ""
- do_lio(&c__9, &c__1, "No was jobname entered. Try again.", (ftnlen)34)
- ;
-#line 893 ""
- e_wsle();
-#line 894 ""
- stop1_();
-#line 895 ""
- } else if (numargs == 2) {
-#line 896 ""
- if (ljob == 2 && s_cmp(jobname, "-o", (ftnlen)2, (ftnlen)2) == 0) {
-#line 897 ""
- optimize = TRUE_;
-/* call getarg(2,jobname,idum) ! May need to replace this w/ next line */
-#line 899 ""
- getarg_(&c__2, jobname, (ftnlen)44);
-#line 900 ""
- numargs = 1;
-#line 901 ""
- goto L10;
-#line 902 ""
- } else {
-#line 903 ""
- s_wsle(&io___17);
-#line 903 ""
- do_lio(&c__9, &c__1, "Illegal option on command line", (ftnlen)30)
- ;
-#line 903 ""
- e_wsle();
-#line 904 ""
- stop1_();
-#line 905 ""
- }
-#line 906 ""
- }
-
-/* Strip ".pmx" if necessary */
-
-/* Computing MAX */
-#line 910 ""
- i__1 = i_indx(jobname, ".pmx", (ftnlen)44, (ftnlen)4), i__2 = i_indx(
- jobname, ".PMX", (ftnlen)44, (ftnlen)4);
-#line 910 ""
- ndxpmx = max(i__1,i__2);
-#line 911 ""
- if (ndxpmx > 0) {
-#line 912 ""
- s_copy(jobname, jobname, (ftnlen)44, ndxpmx - 1);
-#line 913 ""
- ljob += -4;
-#line 914 ""
- }
-
-/* Check for existence of input file */
-
-/* Writing concatenation */
-#line 918 ""
- i__3[0] = ljob, a__1[0] = jobname;
-#line 918 ""
- i__3[1] = 4, a__1[1] = ".pmx";
-#line 918 ""
- s_cat(infileq, a__1, i__3, &c__2, (ftnlen)47);
-#line 919 ""
- ioin__1.inerr = 0;
-#line 919 ""
- ioin__1.infilen = 47;
-#line 919 ""
- ioin__1.infile = infileq;
-#line 919 ""
- ioin__1.inex = &fexist;
-#line 919 ""
- ioin__1.inopen = 0;
-#line 919 ""
- ioin__1.innum = 0;
-#line 919 ""
- ioin__1.innamed = 0;
-#line 919 ""
- ioin__1.inname = 0;
-#line 919 ""
- ioin__1.inacc = 0;
-#line 919 ""
- ioin__1.inseq = 0;
-#line 919 ""
- ioin__1.indir = 0;
-#line 919 ""
- ioin__1.infmt = 0;
-#line 919 ""
- ioin__1.inform = 0;
-#line 919 ""
- ioin__1.inunf = 0;
-#line 919 ""
- ioin__1.inrecl = 0;
-#line 919 ""
- ioin__1.innrec = 0;
-#line 919 ""
- ioin__1.inblank = 0;
-#line 919 ""
- f_inqu(&ioin__1);
-#line 920 ""
- if (! fexist) {
-#line 921 ""
- ioin__1.inerr = 0;
-#line 921 ""
- ioin__1.infilen = ljob + 4;
-/* Writing concatenation */
-#line 921 ""
- i__3[0] = ljob, a__1[0] = jobname;
-#line 921 ""
- i__3[1] = 4, a__1[1] = ".PMX";
-#line 921 ""
- s_cat(ch__1, a__1, i__3, &c__2, (ftnlen)48);
-#line 921 ""
- ioin__1.infile = ch__1;
-#line 921 ""
- ioin__1.inex = &fexist;
-#line 921 ""
- ioin__1.inopen = 0;
-#line 921 ""
- ioin__1.innum = 0;
-#line 921 ""
- ioin__1.innamed = 0;
-#line 921 ""
- ioin__1.inname = 0;
-#line 921 ""
- ioin__1.inacc = 0;
-#line 921 ""
- ioin__1.inseq = 0;
-#line 921 ""
- ioin__1.indir = 0;
-#line 921 ""
- ioin__1.infmt = 0;
-#line 921 ""
- ioin__1.inform = 0;
-#line 921 ""
- ioin__1.inunf = 0;
-#line 921 ""
- ioin__1.inrecl = 0;
-#line 921 ""
- ioin__1.innrec = 0;
-#line 921 ""
- ioin__1.inblank = 0;
-#line 921 ""
- f_inqu(&ioin__1);
-#line 922 ""
- if (! fexist) {
-#line 923 ""
- s_wsle(&io___21);
-/* Writing concatenation */
-#line 923 ""
- i__3[0] = 17, a__1[0] = "Cannot find file ";
-#line 923 ""
- i__3[1] = 47, a__1[1] = infileq;
-#line 923 ""
- s_cat(ch__2, a__1, i__3, &c__2, (ftnlen)64);
-#line 923 ""
- do_lio(&c__9, &c__1, ch__2, (ftnlen)64);
-#line 923 ""
- e_wsle();
-#line 924 ""
- stop1_();
-#line 925 ""
- } else {
-/* Writing concatenation */
-#line 926 ""
- i__3[0] = ljob, a__1[0] = jobname;
-#line 926 ""
- i__3[1] = 4, a__1[1] = ".PMX";
-#line 926 ""
- s_cat(infileq, a__1, i__3, &c__2, (ftnlen)47);
-#line 927 ""
- }
-#line 928 ""
- }
-
-/* Open a log file */
-
-#line 932 ""
- o__1.oerr = 0;
-#line 932 ""
- o__1.ounit = 15;
-#line 932 ""
- o__1.ofnmlen = ljob + 4;
-/* Writing concatenation */
-#line 932 ""
- i__3[0] = ljob, a__1[0] = jobname;
-#line 932 ""
- i__3[1] = 4, a__1[1] = ".pml";
-#line 932 ""
- s_cat(ch__1, a__1, i__3, &c__2, (ftnlen)48);
-#line 932 ""
- o__1.ofnm = ch__1;
-#line 932 ""
- o__1.orl = 0;
-#line 932 ""
- o__1.osta = 0;
-#line 932 ""
- o__1.oacc = 0;
-#line 932 ""
- o__1.ofm = 0;
-#line 932 ""
- o__1.oblnk = 0;
-#line 932 ""
- f_open(&o__1);
-/* Writing concatenation */
-#line 933 ""
- i__4[0] = 21, a__2[0] = "This is PMX, Version ";
-#line 933 ""
- i__4[1] = 5, a__2[1] = version;
-#line 933 ""
- i__4[2] = 2, a__2[2] = ", ";
-#line 933 ""
- i__4[3] = 9, a__2[3] = date;
-#line 933 ""
- s_cat(ch__3, a__2, i__4, &c__4, (ftnlen)37);
-#line 933 ""
- printl_(ch__3, (ftnlen)37);
-#line 934 ""
- ljob4 = ljob;
-/* Writing concatenation */
-#line 935 ""
- i__3[0] = 8, a__1[0] = "Opening ";
-#line 935 ""
- i__3[1] = 47, a__1[1] = infileq;
-#line 935 ""
- s_cat(ch__4, a__1, i__3, &c__2, (ftnlen)55);
-#line 935 ""
- printl_(ch__4, (ftnlen)55);
-#line 936 ""
- o__1.oerr = 0;
-#line 936 ""
- o__1.ounit = 18;
-#line 936 ""
- o__1.ofnmlen = 47;
-#line 936 ""
- o__1.ofnm = infileq;
-#line 936 ""
- o__1.orl = 0;
-#line 936 ""
- o__1.osta = 0;
-#line 936 ""
- o__1.oacc = 0;
-#line 936 ""
- o__1.ofm = 0;
-#line 936 ""
- o__1.oblnk = 0;
-#line 936 ""
- f_open(&o__1);
-
-/* Copy input file into common buffer */
-
-#line 940 ""
- inbuff_1.ipbuf = 0;
-#line 941 ""
- truelinecount_1.linewcom[0] = 1;
-#line 942 ""
- for (inbuff_1.ilbuf = 1; inbuff_1.ilbuf <= 9600; ++inbuff_1.ilbuf) {
-#line 943 ""
- ncomments = 0;
-#line 944 ""
-L14:
-#line 944 ""
- i__1 = s_rsfe(&io___24);
-#line 944 ""
- if (i__1 != 0) {
-#line 944 ""
- goto L9;
-#line 944 ""
- }
-#line 944 ""
- i__1 = do_fio(&c__1, lnholdq, (ftnlen)128);
-#line 944 ""
- if (i__1 != 0) {
-#line 944 ""
- goto L9;
-#line 944 ""
- }
-#line 944 ""
- i__1 = e_rsfe();
-#line 944 ""
- if (i__1 != 0) {
-#line 944 ""
- goto L9;
-#line 944 ""
- }
-#line 945 ""
- inbuff_1.lbuf[inbuff_1.ilbuf - 1] = (shortint) lenstr_(lnholdq, &
- c__128, (ftnlen)128);
-#line 946 ""
- if (inbuff_1.lbuf[inbuff_1.ilbuf - 1] == 0) {
-
-/* Blank line. Make it a single blank with length 1 */
-
-#line 950 ""
- inbuff_1.lbuf[inbuff_1.ilbuf - 1] = 1;
-#line 951 ""
- s_copy(lnholdq, " ", (ftnlen)128, (ftnlen)1);
-#line 952 ""
- }
-
-/* 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 958 ""
- if (*(unsigned char *)lnholdq == '%') {
-#line 959 ""
- ++ncomments;
-#line 960 ""
- goto L14;
-#line 961 ""
- }
-
-/* When here, have counted all preceding comments and have a real line */
-
-#line 965 ""
- if (inbuff_1.ilbuf > 1) {
-#line 966 ""
- truelinecount_1.linewcom[inbuff_1.ilbuf - 1] =
- truelinecount_1.linewcom[inbuff_1.ilbuf - 2] + 1 +
- ncomments;
-#line 967 ""
- } else {
-#line 968 ""
- truelinecount_1.linewcom[0] = ncomments + 1;
-#line 969 ""
- }
-#line 970 ""
- if (inbuff_1.ipbuf + inbuff_1.lbuf[inbuff_1.ilbuf - 1] > 131072) {
-#line 971 ""
- s_wsle(&io___26);
-#line 971 ""
- do_lio(&c__9, &c__1, "Too many characters in file, stopping", (
- ftnlen)37);
-#line 971 ""
- e_wsle();
-#line 972 ""
- stop1_();
-#line 973 ""
- }
-#line 974 ""
- i__1 = inbuff_1.ipbuf;
-#line 974 ""
- s_copy(inbuff_1.bufq + i__1, lnholdq, inbuff_1.ipbuf + inbuff_1.lbuf[
- inbuff_1.ilbuf - 1] - i__1, (ftnlen)128);
-#line 975 ""
- inbuff_1.ipbuf += inbuff_1.lbuf[inbuff_1.ilbuf - 1];
-#line 976 ""
-/* L8: */
-#line 976 ""
- }
-#line 977 ""
- printl_("Too many lines in input file", (ftnlen)28);
-#line 978 ""
- stop1_();
-#line 979 ""
-L9:
-
-/* Insert dummy line to handle input files w/o CR-LF at end. */
-
-#line 983 ""
- inbuff_1.nlbuf = inbuff_1.ilbuf - 1;
-/* nlbuf = ilbuf */
-/* bufq(ipbuf+1:ipbuf+3) = ' / ' */
-/* lbuf(nlbuf) = 3 */
-#line 987 ""
- cl__1.cerr = 0;
-#line 987 ""
- cl__1.cunit = 18;
-#line 987 ""
- cl__1.csta = 0;
-#line 987 ""
- f_clos(&cl__1);
-#line 988 ""
- i__1 = maxit;
-#line 988 ""
- for (numit = 1; numit <= i__1; ++numit) {
-#line 989 ""
- if (optimize) {
-#line 989 ""
- printl_("Starting an iteration", (ftnlen)21);
-#line 989 ""
- }
-
-/* 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 995 ""
- pmxa_(jobname, &ljob4, &isfirst, &nsyst, nbars0, &optimize, (ftnlen)
- 44);
-#line 996 ""
- if (! optimize) {
-#line 997 ""
- 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 1003 ""
- nstaves = 0;
-#line 1004 ""
- ivt = 0;
-#line 1005 ""
- for (iinst = 1; iinst <= 24; ++iinst) {
-#line 1006 ""
- nstaves += c1omget_1.nsperi[iinst - 1];
-#line 1007 ""
- i__2 = c1omget_1.nsperi[iinst - 1];
-#line 1007 ""
- for (ivtt = 1; ivtt <= i__2; ++ivtt) {
-#line 1008 ""
- ++ivt;
-#line 1009 ""
- commvel_1.iinsiv[ivt - 1] = (shortint) iinst;
-#line 1010 ""
-/* L17: */
-#line 1010 ""
- }
-#line 1011 ""
- if (nstaves == a1ll_1.nv) {
-#line 1011 ""
- goto L18;
-#line 1011 ""
- }
-#line 1012 ""
-/* L16: */
-#line 1012 ""
- }
-#line 1013 ""
- s_wsle(&io___34);
-#line 1013 ""
- do_lio(&c__9, &c__1, "Screwup!", (ftnlen)8);
-#line 1013 ""
- e_wsle();
-#line 1014 ""
- stop1_();
-#line 1015 ""
-L18:
-
-/* Set up channel numbers for midi. */
-
-#line 1019 ""
- commidi_1.numchan = 0;
-#line 1020 ""
- for (a1ll_1.iv = a1ll_1.nv; a1ll_1.iv >= 1; --a1ll_1.iv) {
-#line 1021 ""
- if (commidi_1.twoline[a1ll_1.iv - 1]) {
-#line 1022 ""
- commidi_1.midchan[a1ll_1.iv + 23] = commidi_1.numchan;
-#line 1023 ""
- ++commidi_1.numchan;
-#line 1024 ""
- }
-#line 1025 ""
- commidi_1.midchan[a1ll_1.iv - 1] = commidi_1.numchan;
-#line 1026 ""
- ++commidi_1.numchan;
-#line 1027 ""
-/* L11: */
-#line 1027 ""
- }
-
-/* numchan will now be the number of channels, but max channel # is numchan-1 */
-
-/* Set up velocities, balances, and midi-transpositions */
-
-#line 1033 ""
- for (a1ll_1.iv = a1ll_1.nv; a1ll_1.iv >= 1; --a1ll_1.iv) {
-#line 1034 ""
- 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 1039 ""
- commvel_1.midvelc[commidi_1.midchan[a1ll_1.iv + 23]] =
- commvel_1.midivel[commvel_1.iinsiv[a1ll_1.iv
- - 1] - 1];
-#line 1040 ""
- commvel_1.midbc[commidi_1.midchan[a1ll_1.iv + 23]] =
- commvel_1.midibal[commvel_1.iinsiv[a1ll_1.iv
- - 1] - 1];
-#line 1041 ""
- commvel_1.midtc[commidi_1.midchan[a1ll_1.iv + 23]] =
- commvel_1.miditran[commvel_1.iinsiv[a1ll_1.iv
- - 1] - 1];
-#line 1042 ""
- }
-/* midvelc(midchan(iv,1)) = midivel(iv) */
-/* midbc(midchan(iv,1)) = midibal(iv) */
-/* midtc(midchan(iv,1)) = miditran(iv) */
-#line 1046 ""
- commvel_1.midvelc[commidi_1.midchan[a1ll_1.iv - 1]] =
- commvel_1.midivel[commvel_1.iinsiv[a1ll_1.iv - 1]
- - 1];
-#line 1047 ""
- commvel_1.midbc[commidi_1.midchan[a1ll_1.iv - 1]] =
- commvel_1.midibal[commvel_1.iinsiv[a1ll_1.iv - 1]
- - 1];
-#line 1048 ""
- commvel_1.midtc[commidi_1.midchan[a1ll_1.iv - 1]] =
- commvel_1.miditran[commvel_1.iinsiv[a1ll_1.iv - 1]
- - 1];
-#line 1049 ""
-/* L13: */
-#line 1049 ""
- }
-#line 1050 ""
- }
-
-/* TEMPORARY!!! */
-
-#line 1054 ""
- s_wsle(&io___35);
-#line 1054 ""
- do_lio(&c__9, &c__1, "nlbuf: ", (ftnlen)7);
-#line 1054 ""
- do_lio(&c__3, &c__1, (char *)&inbuff_1.nlbuf, (ftnlen)sizeof(
- integer));
-#line 1054 ""
- e_wsle();
-#line 1055 ""
- ip1 = 1;
-#line 1056 ""
- i__2 = inbuff_1.nlbuf;
-#line 1056 ""
- 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 1061 ""
- ip1 += inbuff_1.lbuf[ilb - 1];
-#line 1062 ""
-/* L10000: */
-#line 1062 ""
- }
-#line 1063 ""
- iplast = ip1 - 1;
-
-/* Check to see if (1) last line is "<blank><blank>/" and (2) next to last */
-/* line is "/" */
-
-#line 1068 ""
- i__2 = iplast + 1 - inbuff_1.lbuf[inbuff_1.nlbuf - 1] - 1;
-#line 1068 ""
- if (s_cmp(inbuff_1.bufq + i__2, " /", iplast - i__2, (ftnlen)3)
- == 0) {
-#line 1069 ""
- i__2 = iplast - inbuff_1.lbuf[inbuff_1.nlbuf - 1] - 1;
-#line 1069 ""
- if (s_cmp(inbuff_1.bufq + i__2, "/", iplast - inbuff_1.lbuf[
- inbuff_1.nlbuf - 1] - i__2, (ftnlen)1) == 0) {
-#line 1070 ""
- s_wsle(&io___39);
-#line 1070 ""
- do_lio(&c__9, &c__1, "Removing last line of \"<blank><bl"\
- "ank>/\"", (ftnlen)39);
-#line 1070 ""
- e_wsle();
-#line 1071 ""
- s_wsle(&io___40);
-#line 1071 ""
- do_lio(&c__9, &c__1, "Removing last line of \"<blank><bl"\
- "ank>/\"", (ftnlen)39);
-#line 1071 ""
- e_wsle();
-#line 1072 ""
- --inbuff_1.nlbuf;
-#line 1073 ""
- }
-#line 1074 ""
- }
-
-#line 1076 ""
- pmxb_(&c_true, poe0, &ncalls, &optimize);
-#line 1077 ""
- if (commidi_1.ismidi) {
-
-/* Write midi file */
-
-#line 1081 ""
- o__1.oerr = 0;
-#line 1081 ""
- o__1.ounit = 51;
-#line 1081 ""
- o__1.ofnmlen = ljob + 4;
-/* Writing concatenation */
-#line 1081 ""
- i__3[0] = ljob, a__1[0] = jobname;
-#line 1081 ""
- i__3[1] = 4, a__1[1] = ".mid";
-#line 1081 ""
- s_cat(ch__1, a__1, i__3, &c__2, (ftnlen)48);
-#line 1081 ""
- o__1.ofnm = ch__1;
-#line 1081 ""
- o__1.orl = 0;
-#line 1081 ""
- o__1.osta = 0;
-#line 1081 ""
- o__1.oacc = 0;
-#line 1081 ""
- o__1.ofm = 0;
-#line 1081 ""
- o__1.oblnk = 0;
-#line 1081 ""
- f_open(&o__1);
-#line 1082 ""
- if (commidi_1.debugmidi) {
-#line 1082 ""
- o__1.oerr = 0;
-#line 1082 ""
- o__1.ounit = 52;
-#line 1082 ""
- o__1.ofnmlen = ljob + 4;
-/* Writing concatenation */
-#line 1082 ""
- i__3[0] = ljob, a__1[0] = jobname;
-#line 1082 ""
- i__3[1] = 4, a__1[1] = ".dbm";
-#line 1082 ""
- s_cat(ch__1, a__1, i__3, &c__2, (ftnlen)48);
-#line 1082 ""
- o__1.ofnm = ch__1;
-#line 1082 ""
- o__1.orl = 0;
-#line 1082 ""
- o__1.osta = 0;
-#line 1082 ""
- o__1.oacc = 0;
-#line 1082 ""
- o__1.ofm = 0;
-#line 1082 ""
- o__1.oblnk = 0;
-#line 1082 ""
- f_open(&o__1);
-#line 1082 ""
- }
-#line 1083 ""
- printl_(" ", (ftnlen)1);
-/* Writing concatenation */
-#line 1084 ""
- i__5[0] = 8, a__3[0] = "Writing ";
-#line 1084 ""
- i__5[1] = ljob, a__3[1] = jobname;
-#line 1084 ""
- i__5[2] = 4, a__3[2] = ".mid";
-#line 1084 ""
- s_cat(ch__5, a__3, i__5, &c__3, (ftnlen)56);
-#line 1084 ""
- printl_(ch__5, ljob + 12);
-#line 1085 ""
- writemidi_(jobname, &ljob, (ftnlen)44);
-#line 1086 ""
- }
-#line 1087 ""
- cl__1.cerr = 0;
-#line 1087 ""
- cl__1.cunit = 15;
-#line 1087 ""
- cl__1.csta = 0;
-#line 1087 ""
- f_clos(&cl__1);
-#line 1088 ""
- s_stop("", (ftnlen)0);
-#line 1089 ""
- }
-#line 1090 ""
- s_wsle(&io___42);
-#line 1090 ""
- do_lio(&c__9, &c__1, "nlbuf: ", (ftnlen)7);
-#line 1090 ""
- do_lio(&c__3, &c__1, (char *)&inbuff_1.nlbuf, (ftnlen)sizeof(integer))
- ;
-#line 1090 ""
- e_wsle();
-#line 1091 ""
- ip1 = 1;
-#line 1092 ""
- pmxb_(&c_false, poe0, &ncalls, &optimize);
-#line 1093 ""
- poestats_(&nsyst, poe0, &poebar0, &devnorm0);
-
-/* Save initial deviation and line breaks for later comparison */
-
-#line 1097 ""
- if (numit == 1) {
-#line 1098 ""
- devpmx = devnorm0;
-#line 1099 ""
- i__2 = nsyst;
-#line 1099 ""
- for (isys = 1; isys <= i__2; ++isys) {
-#line 1100 ""
- nbari[isys - 1] = nbars0[isys - 1];
-#line 1101 ""
-/* L20: */
-#line 1101 ""
- }
-#line 1102 ""
- }
-#line 1103 ""
- sortpoe_(&nsyst, poe0, ipoe);
-#line 1104 ""
- for (iupord = nsyst; iupord >= 1; --iupord) {
-#line 1105 ""
- isysu = ipoe[iupord - 1];
-#line 1106 ""
- s_wsle(&io___51);
-#line 1106 ""
- do_lio(&c__9, &c__1, "isysu=", (ftnlen)6);
-#line 1106 ""
- do_lio(&c__3, &c__1, (char *)&isysu, (ftnlen)sizeof(integer));
-#line 1106 ""
- e_wsle();
-#line 1107 ""
- s_wsle(&io___52);
-#line 1107 ""
- do_lio(&c__9, &c__1, "isysu=", (ftnlen)6);
-#line 1107 ""
- do_lio(&c__3, &c__1, (char *)&isysu, (ftnlen)sizeof(integer));
-#line 1107 ""
- e_wsle();
-
-/* Skip if system isysu has poe0 < avg or isysd has poe0 > avg */
-
-#line 1111 ""
- if (poe0[isysu - 1] < poebar0) {
-#line 1111 ""
- goto L1;
-#line 1111 ""
- }
-#line 1112 ""
- i__2 = nsyst;
-#line 1112 ""
- for (idnord = 1; idnord <= i__2; ++idnord) {
-#line 1113 ""
- isysd = ipoe[idnord - 1];
-#line 1114 ""
- if (isysu == isysd || nbars0[isysd - 1] == 1 || poe0[isysd -
- 1] > poebar0) {
-#line 1114 ""
- goto L5;
-#line 1114 ""
- }
-#line 1116 ""
- i__6 = nsyst;
-#line 1116 ""
- for (isyst = 1; isyst <= i__6; ++isyst) {
-#line 1117 ""
- nbars[isyst - 1] = nbars0[isyst - 1];
-#line 1118 ""
- if (isyst == isysu) {
-#line 1119 ""
- ++nbars[isyst - 1];
-#line 1120 ""
- } else if (isyst == isysd) {
-#line 1121 ""
- --nbars[isyst - 1];
-#line 1122 ""
- }
-#line 1123 ""
-/* L2: */
-#line 1123 ""
- }
-#line 1124 ""
- pmxa_(jobname, &ljob4, &isfirst, &nsyst, nbars, &optimize, (
- ftnlen)44);
-#line 1125 ""
- pmxb_(&c_false, poe, &ncalls, &optimize);
-#line 1126 ""
- poestats_(&nsyst, poe, &poebar, &devnorm);
-#line 1127 ""
- if (devnorm < devnorm0) {
-#line 1128 ""
- devnorm0 = devnorm;
-#line 1129 ""
- poebar0 = poebar;
-#line 1130 ""
- i__6 = nsyst;
-#line 1130 ""
- for (isys = 1; isys <= i__6; ++isys) {
-#line 1131 ""
- nbars0[isys - 1] = nbars[isys - 1];
-#line 1132 ""
- poe0[isys - 1] = poe[isys - 1];
-#line 1133 ""
-/* L4: */
-#line 1133 ""
- }
-#line 1134 ""
- s_wsle(&io___60);
-#line 1134 ""
- do_lio(&c__9, &c__1, "Improved with iup,idown,devnorm:", (
- ftnlen)32);
-#line 1134 ""
- do_lio(&c__3, &c__1, (char *)&isysu, (ftnlen)sizeof(
- integer));
-#line 1134 ""
- do_lio(&c__3, &c__1, (char *)&isysd, (ftnlen)sizeof(
- integer));
-#line 1134 ""
- do_lio(&c__4, &c__1, (char *)&devnorm0, (ftnlen)sizeof(
- real));
-#line 1134 ""
- e_wsle();
-#line 1136 ""
- s_wsle(&io___61);
-#line 1136 ""
- do_lio(&c__9, &c__1, "Improved with iup,idown,devnorm:", (
- ftnlen)32);
-#line 1136 ""
- do_lio(&c__3, &c__1, (char *)&isysu, (ftnlen)sizeof(
- integer));
-#line 1136 ""
- do_lio(&c__3, &c__1, (char *)&isysd, (ftnlen)sizeof(
- integer));
-#line 1136 ""
- do_lio(&c__4, &c__1, (char *)&devnorm0, (ftnlen)sizeof(
- real));
-#line 1136 ""
- e_wsle();
-#line 1138 ""
- s_wsfe(&io___62);
-#line 1138 ""
- i__6 = nsyst;
-#line 1138 ""
- for (isys = 1; isys <= i__6; ++isys) {
-#line 1138 ""
- do_fio(&c__1, (char *)&nbars0[isys - 1], (ftnlen)
- sizeof(integer));
-#line 1138 ""
- }
-#line 1138 ""
- e_wsfe();
-#line 1139 ""
- s_wsfe(&io___63);
-#line 1139 ""
- i__6 = nsyst;
-#line 1139 ""
- for (isys = 1; isys <= i__6; ++isys) {
-#line 1139 ""
- do_fio(&c__1, (char *)&nbars0[isys - 1], (ftnlen)
- sizeof(integer));
-#line 1139 ""
- }
-#line 1139 ""
- e_wsfe();
-#line 1140 ""
- sortpoe_(&nsyst, poe0, ipoe);
-#line 1141 ""
- goto L6;
-#line 1142 ""
- }
-#line 1143 ""
-L5:
-#line 1143 ""
- ;
-#line 1143 ""
- }
-#line 1144 ""
-L1:
-#line 1144 ""
- ;
-#line 1144 ""
- }
-
-/* If we get here, must have gone thru all switches and found nothing better, */
-/* so done! */
-
-#line 1149 ""
- goto L7;
-#line 1150 ""
-L6:
-#line 1150 ""
- ;
-#line 1150 ""
- }
-#line 1151 ""
-L7:
-#line 1152 ""
- s_wsle(&io___64);
-#line 1152 ""
- do_lio(&c__9, &c__1, "Optimum located, numit:", (ftnlen)23);
-#line 1152 ""
- do_lio(&c__3, &c__1, (char *)&numit, (ftnlen)sizeof(integer));
-#line 1152 ""
- do_lio(&c__9, &c__1, ", ncalls:", (ftnlen)10);
-#line 1152 ""
- do_lio(&c__3, &c__1, (char *)&ncalls, (ftnlen)sizeof(integer));
-#line 1152 ""
- e_wsle();
-#line 1153 ""
- s_wsle(&io___65);
-#line 1153 ""
- do_lio(&c__9, &c__1, "Optimum located, numit:", (ftnlen)23);
-#line 1153 ""
- do_lio(&c__3, &c__1, (char *)&numit, (ftnlen)sizeof(integer));
-#line 1153 ""
- do_lio(&c__9, &c__1, ", ncalls:", (ftnlen)10);
-#line 1153 ""
- do_lio(&c__3, &c__1, (char *)&ncalls, (ftnlen)sizeof(integer));
-#line 1153 ""
- e_wsle();
-#line 1154 ""
- s_wsle(&io___66);
-#line 1154 ""
- do_lio(&c__9, &c__1, "Final error:", (ftnlen)12);
-#line 1154 ""
- do_lio(&c__4, &c__1, (char *)&devnorm0, (ftnlen)sizeof(real));
-#line 1154 ""
- do_lio(&c__9, &c__1, ", initial error:", (ftnlen)16);
-#line 1154 ""
- do_lio(&c__4, &c__1, (char *)&devpmx, (ftnlen)sizeof(real));
-#line 1154 ""
- e_wsle();
-#line 1155 ""
- s_wsle(&io___67);
-#line 1155 ""
- do_lio(&c__9, &c__1, "Final error:", (ftnlen)12);
-#line 1155 ""
- do_lio(&c__4, &c__1, (char *)&devnorm0, (ftnlen)sizeof(real));
-#line 1155 ""
- do_lio(&c__9, &c__1, ", initial error:", (ftnlen)16);
-#line 1155 ""
- do_lio(&c__4, &c__1, (char *)&devpmx, (ftnlen)sizeof(real));
-#line 1155 ""
- e_wsle();
-#line 1156 ""
- s_wsle(&io___68);
-#line 1156 ""
- do_lio(&c__9, &c__1, "Percentage improvement:", (ftnlen)23);
-#line 1156 ""
- r__1 = (1 - devnorm0 / devpmx) * 100.f;
-#line 1156 ""
- do_lio(&c__4, &c__1, (char *)&r__1, (ftnlen)sizeof(real));
-#line 1156 ""
- e_wsle();
-#line 1157 ""
- s_wsle(&io___69);
-#line 1157 ""
- do_lio(&c__9, &c__1, "Percentage improvement:", (ftnlen)23);
-#line 1157 ""
- r__1 = (1 - devnorm0 / devpmx) * 100.f;
-#line 1157 ""
- do_lio(&c__4, &c__1, (char *)&r__1, (ftnlen)sizeof(real));
-#line 1157 ""
- e_wsle();
-#line 1158 ""
- printl_("Initial bars/system:", (ftnlen)20);
-#line 1159 ""
- s_wsfe(&io___70);
-#line 1159 ""
- i__1 = nsyst;
-#line 1159 ""
- for (isys = 1; isys <= i__1; ++isys) {
-#line 1159 ""
- do_fio(&c__1, (char *)&nbari[isys - 1], (ftnlen)sizeof(integer));
-#line 1159 ""
- }
-#line 1159 ""
- e_wsfe();
-#line 1160 ""
- s_wsfe(&io___71);
-#line 1160 ""
- i__1 = nsyst;
-#line 1160 ""
- for (isys = 1; isys <= i__1; ++isys) {
-#line 1160 ""
- do_fio(&c__1, (char *)&nbari[isys - 1], (ftnlen)sizeof(integer));
-#line 1160 ""
- }
-#line 1160 ""
- e_wsfe();
-#line 1161 ""
- printl_("Final bars/system:", (ftnlen)18);
-#line 1162 ""
- s_wsfe(&io___72);
-#line 1162 ""
- i__1 = nsyst;
-#line 1162 ""
- for (isys = 1; isys <= i__1; ++isys) {
-#line 1162 ""
- do_fio(&c__1, (char *)&nbars0[isys - 1], (ftnlen)sizeof(integer));
-#line 1162 ""
- }
-#line 1162 ""
- e_wsfe();
-#line 1163 ""
- s_wsfe(&io___73);
-#line 1163 ""
- i__1 = nsyst;
-#line 1163 ""
- for (isys = 1; isys <= i__1; ++isys) {
-#line 1163 ""
- do_fio(&c__1, (char *)&nbars0[isys - 1], (ftnlen)sizeof(integer));
-#line 1163 ""
- }
-#line 1163 ""
- e_wsfe();
-#line 1164 ""
- pmxa_(jobname, &ljob4, &c_false, &nsyst, nbars0, &optimize, (ftnlen)44);
-#line 1165 ""
- pmxb_(&c_true, poe0, &ncalls, &optimize);
-#line 1166 ""
- cl__1.cerr = 0;
-#line 1166 ""
- cl__1.cunit = 15;
-#line 1166 ""
- cl__1.csta = 0;
-#line 1166 ""
- f_clos(&cl__1);
-#line 1167 ""
- return 0;
-} /* MAIN__ */
-
-/* Subroutine */ int accsym_(integer *nacc, char *acsymq, integer *lacc,
- ftnlen acsymq_len)
-{
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
-
- /* Local variables */
- static integer iacc;
-
- /* Fortran I/O blocks */
- static cilist io___75 = { 0, 6, 0, 0, 0 };
-
-
-#line 1170 ""
- iacc = *nacc & 7;
-#line 1171 ""
- if (iacc == 1) {
-#line 1172 ""
- s_copy(acsymq, "fl", (ftnlen)3, (ftnlen)2);
-#line 1173 ""
- *lacc = 2;
-#line 1174 ""
- } else if (iacc == 2) {
-#line 1175 ""
- s_copy(acsymq, "sh", (ftnlen)3, (ftnlen)2);
-#line 1176 ""
- *lacc = 2;
-#line 1177 ""
- } else if (iacc == 3) {
-#line 1178 ""
- s_copy(acsymq, "na", (ftnlen)3, (ftnlen)2);
-#line 1179 ""
- *lacc = 2;
-#line 1180 ""
- } else if (iacc == 5) {
-#line 1181 ""
- s_copy(acsymq, "dfl", (ftnlen)3, (ftnlen)3);
-#line 1182 ""
- *lacc = 3;
-#line 1183 ""
- } else if (iacc == 6) {
-#line 1184 ""
- s_copy(acsymq, "dsh", (ftnlen)3, (ftnlen)3);
-#line 1185 ""
- *lacc = 3;
-#line 1186 ""
- } else {
-#line 1187 ""
- s_wsle(&io___75);
-#line 1187 ""
- do_lio(&c__9, &c__1, "bad accidental: ", (ftnlen)16);
-#line 1187 ""
- do_lio(&c__3, &c__1, (char *)&iacc, (ftnlen)sizeof(integer));
-#line 1187 ""
- e_wsle();
-#line 1188 ""
- }
-#line 1189 ""
- return 0;
-} /* accsym_ */
-
-/* Subroutine */ int addask_(real *taskn, real *waskn, real *elaskn, real *
- fixednew, real *scaldold, real *tglp1, real *scfac, logical *isudsp)
-{
- /* System generated locals */
- integer i__1;
- real r__1;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
-
- /* Local variables */
- static real oldelask;
- extern /* Subroutine */ int stop1_(void);
- static integer iudsp;
- static real scoarg, oldwask;
-
- /* Fortran I/O blocks */
- static cilist io___78 = { 0, 6, 0, 0, 0 };
-
-
-#line 1198 ""
- scoarg = *scaldold * *scfac;
-#line 1199 ""
- if (*isudsp) {
-
-/* Find which udsp we're dealing with */
-
-#line 1203 ""
- i__1 = comudsp_1.nudsp;
-#line 1203 ""
- for (iudsp = 1; iudsp <= i__1; ++iudsp) {
-#line 1204 ""
- if ((r__1 = *taskn + *tglp1 - comudsp_1.tudsp[iudsp - 1], dabs(
- r__1)) < comtol_1.tol) {
-#line 1204 ""
- goto L2;
-#line 1204 ""
- }
-#line 1205 ""
-/* L1: */
-#line 1205 ""
- }
-#line 1206 ""
- s_wsle(&io___78);
-#line 1206 ""
- do_lio(&c__9, &c__1, "You should note BEEE here in addask!", (ftnlen)
- 36);
-#line 1206 ""
- e_wsle();
-#line 1207 ""
- stop1_();
-#line 1208 ""
-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 1213 ""
- 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 1217 ""
- comas1_1.wask[comas1_1.naskb - 1] += comudsp_1.udsp[iudsp - 1];
-#line 1218 ""
- } else {
-
-/* This place has no other space. */
-
-#line 1222 ""
- ++comas1_1.naskb;
-#line 1223 ""
- comas1_1.task[comas1_1.naskb - 1] = *taskn;
-#line 1224 ""
- comas1_1.wask[comas1_1.naskb - 1] = comudsp_1.udsp[iudsp - 1];
-#line 1225 ""
- comas1_1.elask[comas1_1.naskb - 1] = 0.f;
-#line 1226 ""
- }
-#line 1227 ""
- } else {
-/* 130330 start */
-#line 1229 ""
- oldwask = 0.f;
-#line 1230 ""
- oldelask = 0.f;
-/* 130330 end */
-
-/* This is a normal space, no effect if smaller than existing space */
-
-#line 1235 ""
- 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 1240 ""
- 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 1246 ""
- oldwask = comas1_1.wask[comas1_1.naskb - 1];
-#line 1247 ""
- oldelask = comas1_1.elask[comas1_1.naskb - 1];
-/* End of 130330 insertions */
-#line 1249 ""
- --comas1_1.naskb;
-#line 1250 ""
- } else {
-#line 1251 ""
- return 0;
-#line 1252 ""
- }
-#line 1253 ""
- }
-#line 1254 ""
- ++comas1_1.naskb;
-#line 1255 ""
- comas1_1.task[comas1_1.naskb - 1] = *taskn;
-#line 1256 ""
- comas1_1.wask[comas1_1.naskb - 1] = *waskn;
-#line 1257 ""
- comas1_1.elask[comas1_1.naskb - 1] = *elaskn;
-/* 130330 start */
-/* fixednew = fixednew+waskn */
-/* scaldold = scaldold+elaskn */
-#line 1261 ""
- *fixednew = *fixednew + *waskn - oldwask;
-#line 1262 ""
- *scaldold = scoarg + *elaskn - oldelask;
-/* 130330 end */
-#line 1264 ""
- }
-#line 1265 ""
- return 0;
-} /* addask_ */
-
-/* Subroutine */ int addblank_(char *noteq, integer *lnoten, ftnlen noteq_len)
-{
- /* System generated locals */
- address a__1[2];
- integer i__1[2];
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
-
- /* Local variables */
- static char tchar[1];
-
-#line 1270 ""
- *(unsigned char *)tchar = *(unsigned char *)noteq;
-/* Writing concatenation */
-#line 1271 ""
- i__1[0] = 1, a__1[0] = " ";
-#line 1271 ""
- i__1[1] = 1, a__1[1] = tchar;
-#line 1271 ""
- s_cat(noteq, a__1, i__1, &c__2, (ftnlen)8);
-#line 1272 ""
- *lnoten = 2;
-#line 1273 ""
- return 0;
-} /* addblank_ */
-
-/* Subroutine */ int addfb_(integer *nfb, integer *iv, real *tnew, real *t1fb,
- real *t2fb, char *ulfbq, integer *ifbadd, ftnlen ulfbq_len)
-{
- static integer ifb;
-
-#line 1281 ""
- /* Parameter adjustments */
-#line 1281 ""
- ulfbq -= 25;
-#line 1281 ""
- t2fb -= 25;
-#line 1281 ""
- t1fb -= 25;
-#line 1281 ""
- --nfb;
-#line 1281 ""
-
-#line 1281 ""
- /* Function Body */
-#line 1281 ""
- *ifbadd = 1;
-#line 1282 ""
- ++nfb[*iv];
-#line 1283 ""
- for (ifb = nfb[*iv] - 1; ifb >= 1; --ifb) {
-#line 1284 ""
- if (*tnew < t1fb[*iv + ifb * 24] - comtol_1.tol) {
-#line 1285 ""
- t1fb[*iv + (ifb + 1) * 24] = t1fb[*iv + ifb * 24];
-#line 1286 ""
- t2fb[*iv + (ifb + 1) * 24] = t2fb[*iv + ifb * 24];
-#line 1287 ""
- *(unsigned char *)&ulfbq[*iv + (ifb + 1) * 24] = *(unsigned char *
- )&ulfbq[*iv + ifb * 24];
-#line 1288 ""
- } else {
-#line 1289 ""
- *ifbadd = ifb + 1;
-#line 1290 ""
- goto L2;
-#line 1291 ""
- }
-#line 1292 ""
-/* L1: */
-#line 1292 ""
- }
-#line 1293 ""
-L2:
-#line 1294 ""
- t1fb[*iv + *ifbadd * 24] = *tnew;
-#line 1295 ""
- *(unsigned char *)&ulfbq[*iv + *ifbadd * 24] = 'x';
-#line 1296 ""
- return 0;
-} /* addfb_ */
-
-/* Subroutine */ int addmidi_(integer *icm, integer *nolev, integer *iacc,
- integer *midisig, real *time, logical *rest, logical *endrest)
-{
- /* Initialized data */
-
- static shortint icmm[16] = { 0,1,2,3,4,5,6,7,8,10,11,12,13,14,15,16 };
-
- /* System generated locals */
- integer i__1, i__2, i__3;
- real r__1;
-
- /* Builtin functions */
- integer i_nint(real *), s_wsle(cilist *), do_lio(integer *, integer *,
- char *, ftnlen), e_wsle(void), i_indx(char *, char *, ftnlen,
- ftnlen);
-
- /* Local variables */
- static logical it1found;
- static integer nsav4tie;
- extern /* Subroutine */ int chkimidi_(integer *);
- static char notenumq[1];
- static integer i__, j, it1;
- extern integer igetvarlen_(shortint *, integer *, integer *, integer *);
- static integer it2;
- extern integer isetvarlen_(integer *, integer *);
- static integer ion;
- static shortint itk[25];
- static integer jacc, kacc, macc, ioff, isav, idur, jsav, idur1;
- extern /* Subroutine */ int stop1_(void);
- static integer imidt, ipsav, ipsav0, nby2on;
- extern integer iashft_(integer *);
- static integer nbytes;
- extern /* Subroutine */ int printl_(char *, ftnlen);
- static integer nby2off;
- static logical eximacc;
- static integer itiesav[500] /* was [5][100] */, idurvar;
-
- /* Fortran I/O blocks */
- static cilist io___88 = { 0, 6, 0, 0, 0 };
- static cilist io___100 = { 0, 6, 0, 0, 0 };
-
-
-/* subroutine addmidi(icm,nolev,iacc,isig,time,rest,endrest) */
-/* common /commidisig/ midisig(nm) */
-
-/* Following variables are local but must be saved. I hope they are. */
-/* (3/18/00) With g77 they are not, so add a common block here. */
-
-/* integer*2 ipslon(0:nm),lusebl(10),jusebl(10),icmm(0:12) */
-/* data icmm /0,1,2,3,4,5,6,7,8,10,11,12,13/ */
-
-/* Cancel out barline accidentals if there's a rest. */
-
-#line 1336 ""
- if (*rest) {
-#line 1336 ""
- comslm_1.naccbl[(300 + (0 + (*icm - 0 << 2)) - 300) / 4] = 0;
-#line 1336 ""
- }
-
-/* Special path to insert dummy rest at end of a section */
-
-#line 1340 ""
- if (*endrest) {
-#line 1340 ""
- goto L20;
-#line 1340 ""
- }
-
-#line 1342 ""
- i__1 = commidi_1.nmidcrd;
-#line 1342 ""
- for (ion = 0; ion <= i__1; ++ion) {
-
-/* check if this is only to get pitch of a chord note */
-
-#line 1346 ""
- if (commidi_1.notmain) {
-#line 1346 ""
- goto L6;
-#line 1346 ""
- }
-
-/* check for rest */
-
-#line 1350 ""
- if (*rest) {
-
-/* Will not put in a note, but must update timing */
-
-#line 1354 ""
- if (! commidi_1.restpend[*icm]) {
-
-/* First rest in sequence, save the time */
-
-#line 1358 ""
- commidi_1.restpend[*icm] = TRUE_;
-#line 1359 ""
- commidi_1.trest[*icm] = *time;
-#line 1360 ""
- } else {
-#line 1361 ""
- commidi_1.trest[*icm] += *time;
-#line 1362 ""
- }
-
-/* 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 1368 ""
- chkimidi_(icm);
-#line 1369 ""
- return 0;
-#line 1370 ""
- }
-
-/* time tics */
-
-#line 1374 ""
- if (commidi_1.imidi[*icm] > 0 && ion == 0) {
-#line 1375 ""
- idur = commidi_1.mgap;
-#line 1376 ""
- } else {
-#line 1377 ""
- idur = 0;
-#line 1378 ""
- }
-#line 1379 ""
- if (commidi_1.restpend[*icm]) {
-#line 1380 ""
- commidi_1.restpend[*icm] = FALSE_;
-#line 1381 ""
- r__1 = commidi_1.trest[*icm] * 15;
-#line 1381 ""
- idur += i_nint(&r__1);
-#line 1382 ""
- }
-
-/* time to start of note */
-
-#line 1386 ""
- idurvar = isetvarlen_(&idur, &nby2on);
-#line 1387 ""
- if (nby2on > 4) {
-#line 1388 ""
- s_wsle(&io___88);
-#line 1388 ""
- do_lio(&c__9, &c__1, "You got >4 bytes, something is bogus.", (
- ftnlen)37);
-#line 1388 ""
- e_wsle();
-#line 1389 ""
- stop1_();
-#line 1390 ""
- }
-#line 1391 ""
- ++commidi_1.imidi[*icm];
-#line 1392 ""
- i__2 = nby2on;
-#line 1392 ""
- 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 1397 ""
- commidi_1.mmidi[*icm + (commidi_1.imidi[*icm] + nby2on - i__) *
- 25 - 25] = (shortint) (idurvar % 256);
-#line 1398 ""
- if (nby2on > 1) {
-#line 1398 ""
- idurvar /= 256;
-#line 1398 ""
- }
-#line 1399 ""
-/* L2: */
-#line 1399 ""
- }
-#line 1400 ""
- commidi_1.imidi[*icm] = commidi_1.imidi[*icm] + nby2on - 1;
-
-/* Note-on signal */
-
-#line 1404 ""
- ++commidi_1.imidi[*icm];
-#line 1405 ""
- commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (shortint) (
- icmm[*icm] + 144);
-
-/* Entry point for chord note pitch determination */
-
-#line 1409 ""
-L6:
-
-/* Get midi pitch. On chord iteration, only do this first time (main note), */
-/* since pitch was already computed for nonmain chord notes. */
-
-#line 1414 ""
- if (ion == 0) {
-#line 1415 ""
- ipsav = *nolev * 12.f / 7 + 11;
-#line 1416 ""
- ipsav0 = ipsav;
-#line 1417 ""
- if (*midisig != 0) {
-
-/* Adjust for signature */
-
-#line 1421 ""
- *(unsigned char *)notenumq = (char) (*nolev % 7 + 48);
-#line 1422 ""
- if (*midisig >= i_indx("4152630", notenumq, (ftnlen)7, (
- ftnlen)1)) {
-#line 1423 ""
- ++ipsav;
-#line 1424 ""
- } else if (-(*midisig) >= i_indx("0362514", notenumq, (ftnlen)
- 7, (ftnlen)1)) {
-#line 1425 ""
- --ipsav;
-#line 1426 ""
- }
-#line 1427 ""
- }
-
-/* Deal with accidentals. */
-
-/* iacc 0 1 2 3 4 5 6 7 */
-/* effect X fl sh na X dfl dsh X */
-/* iashft X -1 1 0 X -2 2 X */
-
-#line 1435 ""
- jacc = 0;
-#line 1436 ""
- eximacc = FALSE_;
-#line 1437 ""
- if (*iacc > 0) {
-
-/* Adjust key-sig-adjusted pitch for explicit accidental (and exit) */
-
-#line 1441 ""
- jacc = iashft_(iacc);
-#line 1442 ""
- eximacc = TRUE_;
-#line 1443 ""
- if (! commidi_1.relacc) {
-#line 1443 ""
- jacc = jacc + ipsav0 - ipsav;
-#line 1443 ""
- }
-
-/* (Above) Shift applies to diatonic pitch but will be added to adjusted one */
-
-#line 1447 ""
- } 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 1452 ""
- i__2 = commidi_1.naccim[*icm];
-#line 1452 ""
- for (kacc = 1; kacc <= i__2; ++kacc) {
-#line 1453 ""
- if (commidi_1.laccim[*icm + kacc * 25 - 25] == *nolev) {
-#line 1454 ""
- jacc = commidi_1.jaccim[*icm + kacc * 25 - 25];
-#line 1455 ""
- eximacc = TRUE_;
-#line 1456 ""
- if (! commidi_1.relacc) {
-#line 1456 ""
- jacc = jacc + ipsav0 - ipsav;
-#line 1456 ""
- }
-#line 1457 ""
- goto L4;
-#line 1458 ""
- }
-#line 1459 ""
-/* L3: */
-#line 1459 ""
- }
-#line 1460 ""
-L4:
-#line 1461 ""
- ;
-#line 1461 ""
- }
-
-/* 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 1467 ""
- if (comslm_1.naccbl[*icm] > 0 && ! eximacc) {
-
-/* Possible carryover accid from prior bar (or prior same-pitch note). */
-
-#line 1471 ""
- i__2 = comslm_1.naccbl[*icm];
-#line 1471 ""
- for (kacc = 1; kacc <= i__2; ++kacc) {
-#line 1472 ""
- if (comslm_1.laccbl[*icm + kacc * 25 - 25] == *nolev) {
-#line 1473 ""
- 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 1477 ""
- ++comslm_1.nusebl;
-#line 1478 ""
- comips_1.jusebl[comslm_1.nusebl - 1] = (shortint)
- jacc;
-#line 1479 ""
- comips_1.lusebl[comslm_1.nusebl - 1] = (shortint) (*
- nolev);
-#line 1480 ""
- if (! commidi_1.relacc) {
-#line 1480 ""
- jacc = jacc + ipsav0 - ipsav;
-#line 1480 ""
- }
-#line 1481 ""
- goto L22;
-#line 1482 ""
- }
-#line 1483 ""
-/* L21: */
-#line 1483 ""
- }
-#line 1484 ""
-L22:
-#line 1485 ""
- ;
-#line 1485 ""
- }
-#line 1486 ""
- ipsav += jacc;
-#line 1487 ""
- }
-#line 1488 ""
- if (commidi_1.notmain) {
-#line 1489 ""
- commidi_1.mcpitch[commidi_1.nmidcrd - 1] = ipsav;
-
-/* Save pitch for tie checks */
-
-#line 1493 ""
- if (comslm_1.levson[*icm] == *nolev && ! comslm_1.slmon[*icm]) {
-#line 1493 ""
- comips_1.ipslon[*icm] = (shortint) ipsav;
-#line 1493 ""
- }
-#line 1495 ""
- } else {
-#line 1496 ""
- ++commidi_1.imidi[*icm];
-#line 1497 ""
- if (ion == 0) {
-#line 1498 ""
- commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (
- shortint) ipsav;
-#line 1499 ""
- if (comslm_1.levson[*icm] == *nolev && ! comslm_1.slmon[*icm])
- {
-#line 1499 ""
- comips_1.ipslon[*icm] = (shortint) ipsav;
-#line 1499 ""
- }
-#line 1501 ""
- } else {
-#line 1502 ""
- commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (
- shortint) commidi_1.mcpitch[ion - 1];
-#line 1503 ""
- }
-#line 1504 ""
- }
-#line 1505 ""
- 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 1510 ""
- if (*iacc > 0) {
-
-/* Set marker for accidental for possible continuations later this bar */
-/* but first check and clear earlier ones on same note. */
-
-#line 1515 ""
- i__2 = commidi_1.naccim[*icm];
-#line 1515 ""
- for (kacc = 1; kacc <= i__2; ++kacc) {
-#line 1516 ""
- if (commidi_1.laccim[*icm + kacc * 25 - 25] == *nolev) {
-#line 1517 ""
- i__3 = commidi_1.naccim[*icm] - 1;
-#line 1517 ""
- for (macc = kacc; macc <= i__3; ++macc) {
-#line 1518 ""
- commidi_1.laccim[*icm + macc * 25 - 25] =
- commidi_1.laccim[*icm + (macc + 1) * 25 -
- 25];
-#line 1519 ""
- commidi_1.jaccim[*icm + macc * 25 - 25] =
- commidi_1.jaccim[*icm + (macc + 1) * 25 -
- 25];
-#line 1520 ""
-/* L24: */
-#line 1520 ""
- }
-#line 1521 ""
- goto L25;
-#line 1522 ""
- }
-#line 1523 ""
-/* L23: */
-#line 1523 ""
- }
-#line 1524 ""
- goto L26;
-#line 1525 ""
-L25:
-#line 1526 ""
- --commidi_1.naccim[*icm];
-#line 1527 ""
-L26:
-
-/* Flag new accidental */
-
-#line 1531 ""
- ++commidi_1.naccim[*icm];
-#line 1532 ""
- commidi_1.laccim[*icm + commidi_1.naccim[*icm] * 25 - 25] = *
- nolev;
-#line 1533 ""
- commidi_1.jaccim[*icm + commidi_1.naccim[*icm] * 25 - 25] =
- iashft_(iacc);
-#line 1534 ""
- }
-
-/* Bail if this is a chord note on the first call (from docrd) */
-
-#line 1538 ""
- if (commidi_1.notmain) {
-#line 1539 ""
- chkimidi_(icm);
-#line 1540 ""
- return 0;
-#line 1541 ""
- }
-#line 1542 ""
- }
-
-/* Vel */
-
-#line 1546 ""
- ++commidi_1.imidi[*icm];
-#line 1547 ""
- commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (shortint)
- commvel_1.midvelc[*icm];
-#line 1548 ""
- chkimidi_(icm);
-#line 1549 ""
-/* L7: */
-#line 1549 ""
- }
-
-/* For tie checks */
-
-#line 1553 ""
- if (comslm_1.levson[*icm] > 0 && ! comslm_1.slmon[*icm]) {
-#line 1553 ""
- comslm_1.imidso[*icm] = commidi_1.imidi[*icm];
-#line 1553 ""
- }
-
-/* Entry point for special rests at section ends (endrest=T) */
-
-#line 1557 ""
-L20:
-
-/* Now insert all the ends */
-
-#line 1561 ""
- i__1 = commidi_1.nmidcrd;
-#line 1561 ""
- for (ioff = 0; ioff <= i__1; ++ioff) {
-#line 1562 ""
- if (ioff == 0) {
-
-/* time to end */
-
-#line 1566 ""
- r__1 = *time * 15;
-#line 1566 ""
- idur1 = i_nint(&r__1);
-#line 1567 ""
- r__1 = commidi_1.trest[*icm] * 15;
-#line 1567 ""
- if (! (*endrest) || comevent_1.miditime == i_nint(&r__1)) {
-#line 1568 ""
- idur = idur1 - commidi_1.mgap;
-#line 1569 ""
- } else {
-#line 1570 ""
- idur = idur1;
-#line 1571 ""
- }
-
-/* Deal with roundoff problems with 7-tuplets on half or quarters */
-
-#line 1575 ""
- if (idur1 == 69) {
-#line 1576 ""
- ++comdiag_1.n69[*icm];
-/* if (mod(n69(icm)+6,7) .gt. 3) idur = 58 */
-#line 1578 ""
- if ((comdiag_1.n69[*icm] + 6) % 7 > 3) {
-#line 1578 ""
- idur = idur1 - commidi_1.mgap - 1;
-#line 1578 ""
- }
-#line 1579 ""
- } else if (idur1 == 34) {
-#line 1580 ""
- ++comdiag_1.n34[*icm];
-#line 1581 ""
- if ((comdiag_1.n34[*icm] + 6) % 7 > 4) {
-#line 1581 ""
- idur = idur1 - commidi_1.mgap + 1;
-#line 1581 ""
- }
-#line 1582 ""
- }
-#line 1583 ""
- idurvar = isetvarlen_(&idur, &nby2off);
-#line 1584 ""
- if (nby2off > 4) {
-#line 1585 ""
- s_wsle(&io___100);
-#line 1585 ""
- do_lio(&c__9, &c__1, "You got >4 bytes, something is bogus.",
- (ftnlen)37);
-#line 1585 ""
- e_wsle();
-#line 1586 ""
- stop1_();
-#line 1587 ""
- }
-#line 1588 ""
- ++commidi_1.imidi[*icm];
-#line 1589 ""
- chkimidi_(icm);
-#line 1590 ""
- i__2 = nby2off;
-#line 1590 ""
- for (i__ = 1; i__ <= i__2; ++i__) {
-#line 1591 ""
- commidi_1.mmidi[*icm + (commidi_1.imidi[*icm] + nby2off - i__)
- * 25 - 25] = (shortint) (idurvar % 256);
-#line 1592 ""
- if (nby2off > 1) {
-#line 1592 ""
- idurvar /= 256;
-#line 1592 ""
- }
-#line 1593 ""
-/* L1: */
-#line 1593 ""
- }
-#line 1594 ""
- commidi_1.imidi[*icm] = commidi_1.imidi[*icm] + nby2off - 1;
-#line 1595 ""
- } else {
-
-/* Inserting end of chord note, delta time is 0 */
-
-#line 1599 ""
- ++commidi_1.imidi[*icm];
-#line 1600 ""
- commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = 0;
-#line 1601 ""
- }
-
-/* Note off */
-
-#line 1605 ""
- ++commidi_1.imidi[*icm];
-#line 1606 ""
- commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (shortint) (
- icmm[*icm] + 128);
-
-/* Pitch */
-
-#line 1610 ""
- ++commidi_1.imidi[*icm];
-#line 1611 ""
- if (ioff == 0) {
-#line 1612 ""
- commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (
- shortint) ipsav;
-#line 1613 ""
- } else {
-#line 1614 ""
- commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = (
- shortint) commidi_1.mcpitch[ioff - 1];
-#line 1615 ""
- }
-
-/* Vel */
-
-#line 1619 ""
- ++commidi_1.imidi[*icm];
-#line 1620 ""
- commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] = 0;
-#line 1621 ""
- chkimidi_(icm);
-#line 1622 ""
- if (*endrest) {
-#line 1623 ""
- return 0;
-#line 1624 ""
- }
-#line 1625 ""
-/* L8: */
-#line 1625 ""
- }
-#line 1626 ""
- comslm_1.naccbl[*icm] = comslm_1.nusebl;
-#line 1627 ""
- if (comslm_1.nusebl > 0) {
-
-/* Fix tables of "bar-line" accids that are saved due to consecutive notes. */
-
-#line 1631 ""
- i__1 = comslm_1.nusebl;
-#line 1631 ""
- for (kacc = 1; kacc <= i__1; ++kacc) {
-#line 1632 ""
- comslm_1.laccbl[*icm + kacc * 25 - 25] = comips_1.lusebl[kacc - 1]
- ;
-#line 1633 ""
- comslm_1.jaccbl[*icm + kacc * 25 - 25] = comips_1.jusebl[kacc - 1]
- ;
-#line 1634 ""
-/* L30: */
-#line 1634 ""
- }
-#line 1635 ""
- comslm_1.nusebl = 0;
-#line 1636 ""
- }
-
-/* Begin tie checks */
-
-#line 1640 ""
- if (comslm_1.slmon[*icm]) {
-
-/* Prior note had a slur start */
-
-#line 1644 ""
- 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) */
-/* Make a list of times of all events back to the one starting at imidso+1, */
-/* which is at or before where the tie started. Ident tie start and stop by */
-/* 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 1652 ""
- nsav4tie = 0;
-#line 1653 ""
- imidt = comslm_1.imidso[*icm];
-#line 1654 ""
-L10:
-#line 1654 ""
- ++nsav4tie;
-#line 1655 ""
- itiesav[nsav4tie * 5 - 5] = igetvarlen_(commidi_1.mmidi, icm, &
- imidt, &nbytes);
-#line 1656 ""
- imidt += nbytes;
-#line 1657 ""
- for (j = 1; j <= 3; ++j) {
-#line 1658 ""
- itiesav[j + 1 + nsav4tie * 5 - 6] = commidi_1.mmidi[*icm + (
- imidt + j) * 25 - 25];
-#line 1659 ""
-/* L11: */
-#line 1659 ""
- }
-#line 1660 ""
- imidt += 3;
-#line 1661 ""
- if (nsav4tie == 1) {
-#line 1662 ""
- itiesav[4] = itiesav[0];
-#line 1663 ""
- } else {
-#line 1664 ""
- itiesav[nsav4tie * 5 - 1] = itiesav[nsav4tie * 5 - 5] +
- itiesav[(nsav4tie - 1) * 5 - 1];
-#line 1666 ""
- }
-#line 1667 ""
- if (imidt != commidi_1.imidi[*icm]) {
-#line 1667 ""
- goto L10;
-#line 1667 ""
- }
-
-/* Find which two pitches agree with saved slur pitch. */
-
-#line 1671 ""
- it1found = FALSE_;
-#line 1672 ""
- i__1 = nsav4tie;
-#line 1672 ""
- for (it2 = 1; it2 <= i__1; ++it2) {
-#line 1673 ""
- if (itiesav[it2 * 5 - 3] == comips_1.ipslon[*icm]) {
-#line 1674 ""
- if (it1found) {
-#line 1674 ""
- goto L13;
-#line 1674 ""
- }
-#line 1675 ""
- it1 = it2;
-#line 1676 ""
- it1found = TRUE_;
-#line 1677 ""
- }
-#line 1678 ""
-/* L12: */
-#line 1678 ""
- }
-#line 1679 ""
- printl_("Program error, tied notes, send source to Dr. Don", (
- ftnlen)49);
-#line 1681 ""
- it1 = nsav4tie + 1;
-#line 1682 ""
- it2 = nsav4tie + 1;
-#line 1683 ""
-L13:
-
-/* List the positions we want to keep */
-
-#line 1687 ""
- jsav = 0;
-#line 1688 ""
- i__1 = nsav4tie;
-#line 1688 ""
- for (isav = 1; isav <= i__1; ++isav) {
-#line 1689 ""
- if (isav == it1 || isav == it2) {
-#line 1689 ""
- goto L14;
-#line 1689 ""
- }
-#line 1690 ""
- ++jsav;
-#line 1691 ""
- itk[jsav - 1] = (shortint) isav;
-#line 1692 ""
-L14:
-#line 1692 ""
- ;
-#line 1692 ""
- }
-#line 1693 ""
- nsav4tie += -2;
-
-/* Now dump events it1 & it2, recompute times, restack mmidi. */
-
-#line 1697 ""
- commidi_1.imidi[*icm] = comslm_1.imidso[*icm];
-#line 1698 ""
- i__1 = nsav4tie;
-#line 1698 ""
- for (isav = 1; isav <= i__1; ++isav) {
-#line 1699 ""
- if (isav == 1) {
-#line 1700 ""
- idurvar = isetvarlen_(&itiesav[itk[isav - 1] * 5 - 1], &
- nbytes);
-#line 1701 ""
- } else {
-#line 1702 ""
- i__2 = itiesav[itk[isav - 1] * 5 - 1] - itiesav[itk[isav
- - 2] * 5 - 1];
-#line 1702 ""
- idurvar = isetvarlen_(&i__2, &nbytes);
-#line 1704 ""
- }
-#line 1705 ""
- ++commidi_1.imidi[*icm];
-#line 1706 ""
- i__2 = nbytes;
-#line 1706 ""
- for (i__ = 1; i__ <= i__2; ++i__) {
-#line 1707 ""
- commidi_1.mmidi[*icm + (commidi_1.imidi[*icm] + nbytes -
- i__) * 25 - 25] = (shortint) (idurvar % 256);
-#line 1708 ""
- if (nbytes > 1) {
-#line 1708 ""
- idurvar /= 256;
-#line 1708 ""
- }
-#line 1709 ""
-/* L16: */
-#line 1709 ""
- }
-#line 1710 ""
- commidi_1.imidi[*icm] = commidi_1.imidi[*icm] + nbytes - 1;
-#line 1711 ""
- for (i__ = 2; i__ <= 4; ++i__) {
-#line 1712 ""
- ++commidi_1.imidi[*icm];
-#line 1713 ""
- commidi_1.mmidi[*icm + commidi_1.imidi[*icm] * 25 - 25] =
- (shortint) itiesav[i__ + itk[isav - 1] * 5 - 6];
-#line 1714 ""
-/* L17: */
-#line 1714 ""
- }
-#line 1715 ""
-/* L15: */
-#line 1715 ""
- }
-#line 1716 ""
- }
-#line 1717 ""
- comslm_1.slmon[*icm] = FALSE_;
-#line 1718 ""
- comslm_1.levsoff[*icm] = 0;
-#line 1719 ""
- if (! comslm_1.dbltie) {
-#line 1719 ""
- comslm_1.levson[*icm] = 0;
-#line 1719 ""
- }
-#line 1720 ""
- }
-#line 1721 ""
- if (comslm_1.levson[*icm] > 0) {
-#line 1721 ""
- comslm_1.slmon[*icm] = TRUE_;
-#line 1721 ""
- }
-#line 1722 ""
- if (commidi_1.nmidcrd > 0) {
-#line 1722 ""
- commidi_1.nmidcrd = 0;
-#line 1722 ""
- }
-#line 1723 ""
- chkimidi_(icm);
-#line 1724 ""
- return 0;
-} /* addmidi_ */
-
-/* Subroutine */ int addstr_(char *notexq, integer *lnote, char *soutq,
- integer *lsout, ftnlen notexq_len, ftnlen soutq_len)
-{
- /* System generated locals */
- address a__1[2];
- integer i__1[2];
- char ch__1[81];
-
- /* Builtin functions */
- integer s_wsfe(cilist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer do_fio(integer *, char *, ftnlen), e_wsfe(void);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___112 = { 0, 11, 0, "(a)", 0 };
-
-
-#line 1731 ""
- if (*lsout + *lnote > 72) {
-#line 1732 ""
- if (comlast_1.islast) {
-#line 1732 ""
- s_wsfe(&io___112);
-/* Writing concatenation */
-#line 1732 ""
- i__1[0] = *lsout, a__1[0] = soutq;
-#line 1732 ""
- i__1[1] = 1, a__1[1] = "%";
-#line 1732 ""
- s_cat(ch__1, a__1, i__1, &c__2, (ftnlen)81);
-#line 1732 ""
- do_fio(&c__1, ch__1, *lsout + 1);
-#line 1732 ""
- e_wsfe();
-#line 1732 ""
- }
-#line 1733 ""
- *lsout = 0;
-#line 1734 ""
- }
-#line 1735 ""
- if (*lsout > 0) {
-/* Writing concatenation */
-#line 1736 ""
- i__1[0] = *lsout, a__1[0] = soutq;
-#line 1736 ""
- i__1[1] = *lnote, a__1[1] = notexq;
-#line 1736 ""
- s_cat(soutq, a__1, i__1, &c__2, (ftnlen)80);
-#line 1737 ""
- } else {
-#line 1738 ""
- s_copy(soutq, notexq, (ftnlen)80, (*lnote));
-#line 1739 ""
- }
-#line 1740 ""
- *lsout += *lnote;
-#line 1741 ""
- return 0;
-} /* addstr_ */
-
-/* Subroutine */ int adjusteskz_(integer *ib, integer *istart, real *poenom)
-{
- /* System generated locals */
- integer i__1, i__2;
- real r__1;
-
- /* Local variables */
- static integer in, iaskb, inmin;
- static real eskadd;
-
-
-/* For block ib, this adds accidental spaces to eskz, for use in getting */
-/* length of xtup bracket and slopes of brackets and beams. */
-
-#line 1767 ""
- /* Parameter adjustments */
-#line 1767 ""
- --istart;
-#line 1767 ""
-
-#line 1767 ""
- /* Function Body */
-#line 1767 ""
- inmin = istart[*ib] + 1;
-#line 1768 ""
- i__1 = comas1_1.naskb;
-#line 1768 ""
- for (iaskb = 1; iaskb <= i__1; ++iaskb) {
-#line 1769 ""
- if (comas1_1.task[iaskb - 1] < all_1.to[istart[*ib] - 1] -
- comtol_1.tol) {
-#line 1769 ""
- goto L10;
-#line 1769 ""
- }
-#line 1770 ""
- eskadd = comas1_1.wask[iaskb - 1] / *poenom - comas1_1.elask[iaskb -
- 1];
-#line 1771 ""
- i__2 = comntot_1.ntot;
-#line 1771 ""
- for (in = inmin; in <= i__2; ++in) {
-#line 1772 ""
- if (all_1.to[in - 1] > comas1_1.task[iaskb - 1] - comtol_1.tol) {
-#line 1773 ""
- comeskz2_1.eskz2[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24
- - 25] += eskadd;
-#line 1774 ""
- if ((r__1 = all_1.to[in - 1] - comas1_1.task[iaskb - 1], dabs(
- r__1)) < comtol_1.tol) {
-#line 1774 ""
- --inmin;
-#line 1774 ""
- }
-#line 1775 ""
- } else {
-#line 1776 ""
- ++inmin;
-#line 1777 ""
- }
-#line 1778 ""
-/* L11: */
-#line 1778 ""
- }
-#line 1779 ""
-L10:
-#line 1779 ""
- ;
-#line 1779 ""
- }
-#line 1780 ""
- return 0;
-} /* adjusteskz_ */
-
-/* Subroutine */ int askfig_(char *pathnameq, integer *lpath, char *basenameq,
- integer *lbase, logical *figbass, logical *istype0, ftnlen
- pathnameq_len, ftnlen basenameq_len)
-{
- /* System generated locals */
- address a__1[3], a__2[2];
- integer i__1[3], i__2[2], i__3;
- char ch__1[1], ch__2[88], ch__3[15], ch__4[5], ch__5[4];
- olist o__1;
- cllist cl__1;
- alist al__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer f_open(olist *), f_rew(alist *), f_clos(cllist *), s_wsfe(cilist *
- ), do_fio(integer *, char *, ftnlen), e_wsfe(void), s_rsfe(cilist
- *), e_rsfe(void), s_cmp(char *, char *, ftnlen, ftnlen), s_wsfi(
- icilist *), e_wsfi(void), i_indx(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static integer il;
- static char sq[1];
- static integer ihs;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static logical done;
- extern integer llen_(char *, integer *, ftnlen);
- static char outq[129];
- extern /* Subroutine */ int moveln_(integer *, integer *, logical *);
- static integer lenout;
- extern /* Subroutine */ int putast_(real *, integer *, char *, ftnlen);
- static integer indxask;
-
- /* Fortran I/O blocks */
- static cilist io___120 = { 0, 12, 0, "(a)", 0 };
- static cilist io___121 = { 0, 12, 0, "(a)", 0 };
- static cilist io___123 = { 0, 11, 1, "(a129)", 0 };
- static icilist io___125 = { 0, outq+11, 0, "(f4.1)", 4, 1 };
- static cilist io___128 = { 0, 12, 0, "(a)", 0 };
- static cilist io___129 = { 0, 16, 1, "(a129)", 0 };
- static cilist io___130 = { 0, 12, 0, "(a)", 0 };
-
-
-#line 1792 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 1792 ""
- *(unsigned char *)sq = *(unsigned char *)&ch__1[0];
-#line 1793 ""
- o__1.oerr = 0;
-#line 1793 ""
- o__1.ounit = 12;
-#line 1793 ""
- o__1.ofnmlen = *lpath + *lbase + 4;
-/* Writing concatenation */
-#line 1793 ""
- i__1[0] = *lpath, a__1[0] = pathnameq;
-#line 1793 ""
- i__1[1] = *lbase, a__1[1] = basenameq;
-#line 1793 ""
- i__1[2] = 4, a__1[2] = ".tex";
-#line 1793 ""
- s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)88);
-#line 1793 ""
- o__1.ofnm = ch__2;
-#line 1793 ""
- o__1.orl = 0;
-#line 1793 ""
- o__1.osta = 0;
-#line 1793 ""
- o__1.oacc = 0;
-#line 1793 ""
- o__1.ofm = 0;
-#line 1793 ""
- o__1.oblnk = 0;
-#line 1793 ""
- f_open(&o__1);
-
-/* Transfer first 5 lines of main internal TeX file */
-
-#line 1797 ""
- for (il = 1; il <= 5; ++il) {
-#line 1798 ""
- moveln_(&c__11, &c__12, &done);
-#line 1799 ""
-/* L11: */
-#line 1799 ""
- }
-#line 1800 ""
- if (*istype0) {
-
-/* Transfer literal TeX stuff from special scratch file */
-
-#line 1804 ""
- al__1.aerr = 0;
-#line 1804 ""
- al__1.aunit = 17;
-#line 1804 ""
- f_rew(&al__1);
-#line 1805 ""
-L10:
-#line 1805 ""
- moveln_(&c__17, &c__12, &done);
-#line 1806 ""
- if (! done) {
-#line 1806 ""
- goto L10;
-#line 1806 ""
- }
-#line 1807 ""
- cl__1.cerr = 0;
-#line 1807 ""
- cl__1.cunit = 17;
-#line 1807 ""
- cl__1.csta = 0;
-#line 1807 ""
- f_clos(&cl__1);
-#line 1808 ""
- }
-
-/* Transfer next 2 lines from main scratch file */
-
-#line 1812 ""
- for (il = 1; il <= 2; ++il) {
-#line 1813 ""
- moveln_(&c__11, &c__12, &done);
-#line 1814 ""
-/* L3: */
-#line 1814 ""
- }
-#line 1815 ""
- if (compoi_1.ispoi) {
-#line 1815 ""
- s_wsfe(&io___120);
-/* Writing concatenation */
-#line 1815 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 1815 ""
- i__2[1] = 14, a__2[1] = "input musixpoi";
-#line 1815 ""
- s_cat(ch__3, a__2, i__2, &c__2, (ftnlen)15);
-#line 1815 ""
- do_fio(&c__1, ch__3, (ftnlen)15);
-#line 1815 ""
- e_wsfe();
-#line 1815 ""
- }
-#line 1816 ""
- if (combbm_1.isbbm) {
-#line 1816 ""
- s_wsfe(&io___121);
-/* Writing concatenation */
-#line 1816 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 1816 ""
- i__2[1] = 14, a__2[1] = "input musixbbm";
-#line 1816 ""
- s_cat(ch__3, a__2, i__2, &c__2, (ftnlen)15);
-#line 1816 ""
- do_fio(&c__1, ch__3, (ftnlen)15);
-#line 1816 ""
- e_wsfe();
-#line 1816 ""
- }
-#line 1817 ""
- if (*figbass) {
-
-/* Transfer .fig data from scratch (unit 14) into external .tex (unit 12) */
-
-#line 1821 ""
-L4:
-#line 1821 ""
- moveln_(&c__14, &c__12, &done);
-#line 1822 ""
- if (! done) {
-#line 1822 ""
- goto L4;
-#line 1822 ""
- }
-#line 1823 ""
- cl__1.cerr = 0;
-#line 1823 ""
- cl__1.cunit = 14;
-#line 1823 ""
- cl__1.csta = 0;
-#line 1823 ""
- f_clos(&cl__1);
-#line 1824 ""
- }
-#line 1825 ""
- comas3_1.iask = 0;
-#line 1826 ""
- ihs = 0;
-#line 1827 ""
-L1:
-#line 1827 ""
- i__3 = s_rsfe(&io___123);
-#line 1827 ""
- if (i__3 != 0) {
-#line 1827 ""
- goto L999;
-#line 1827 ""
- }
-#line 1827 ""
- i__3 = do_fio(&c__1, outq, (ftnlen)129);
-#line 1827 ""
- if (i__3 != 0) {
-#line 1827 ""
- goto L999;
-#line 1827 ""
- }
-#line 1827 ""
- i__3 = e_rsfe();
-#line 1827 ""
- if (i__3 != 0) {
-#line 1827 ""
- goto L999;
-#line 1827 ""
- }
-
-/* Hardspaces. */
-
-/* Writing concatenation */
-#line 1831 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 1831 ""
- i__2[1] = 4, a__2[1] = "xard";
-#line 1831 ""
- s_cat(ch__4, a__2, i__2, &c__2, (ftnlen)5);
-#line 1831 ""
- if (s_cmp(outq, ch__4, (ftnlen)5, (ftnlen)5) == 0) {
-#line 1832 ""
- ++ihs;
-#line 1833 ""
- *(unsigned char *)&outq[1] = 'h';
-#line 1834 ""
- s_wsfi(&io___125);
-#line 1834 ""
- do_fio(&c__1, (char *)&comhsp_1.hpttot[ihs - 1], (ftnlen)sizeof(real))
- ;
-#line 1834 ""
- e_wsfi();
-#line 1835 ""
- lenout = 19;
-#line 1836 ""
- goto L9;
-#line 1837 ""
- }
-
-/* This part hard-wires ask's into new .tex file as ast's */
-
-#line 1841 ""
-L2:
-/* Writing concatenation */
-#line 1841 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 1841 ""
- i__2[1] = 3, a__2[1] = "ask";
-#line 1841 ""
- s_cat(ch__5, a__2, i__2, &c__2, (ftnlen)4);
-#line 1841 ""
- indxask = i_indx(outq, ch__5, (ftnlen)129, (ftnlen)4);
-#line 1842 ""
- if (indxask != 0) {
-#line 1843 ""
- ++comas3_1.iask;
-#line 1844 ""
- putast_(&comas3_1.ask[comas3_1.iask - 1], &indxask, outq, (ftnlen)129)
- ;
-#line 1845 ""
- goto L2;
-#line 1846 ""
- }
-#line 1847 ""
- lenout = llen_(outq, &c__129, (ftnlen)129);
-#line 1848 ""
-L9:
-#line 1849 ""
- s_wsfe(&io___128);
-#line 1849 ""
- do_fio(&c__1, outq, lenout);
-#line 1849 ""
- e_wsfe();
-
-/* If this is the line with "readmod", check for topmods. */
-
-#line 1853 ""
- if (comas3_1.topmods && s_cmp(outq + 1, "readmod", (ftnlen)7, (ftnlen)7)
- == 0) {
-#line 1854 ""
- comas3_1.topmods = FALSE_;
-#line 1855 ""
- al__1.aerr = 0;
-#line 1855 ""
- al__1.aunit = 16;
-#line 1855 ""
- f_rew(&al__1);
-#line 1856 ""
- for (il = 1; il <= 1000; ++il) {
-#line 1857 ""
- i__3 = s_rsfe(&io___129);
-#line 1857 ""
- if (i__3 != 0) {
-#line 1857 ""
- goto L8;
-#line 1857 ""
- }
-#line 1857 ""
- i__3 = do_fio(&c__1, outq, (ftnlen)129);
-#line 1857 ""
- if (i__3 != 0) {
-#line 1857 ""
- goto L8;
-#line 1857 ""
- }
-#line 1857 ""
- i__3 = e_rsfe();
-#line 1857 ""
- if (i__3 != 0) {
-#line 1857 ""
- goto L8;
-#line 1857 ""
- }
-#line 1858 ""
- lenout = llen_(outq, &c__129, (ftnlen)129);
-
-/* We inserted the '%' in subroutine littex, to guarantee including blank. */
-
-#line 1862 ""
- s_wsfe(&io___130);
-#line 1862 ""
- do_fio(&c__1, outq, lenout);
-#line 1862 ""
- e_wsfe();
-#line 1863 ""
-/* L7: */
-#line 1863 ""
- }
-#line 1864 ""
-L8:
-#line 1865 ""
- cl__1.cerr = 0;
-#line 1865 ""
- cl__1.cunit = 16;
-#line 1865 ""
- cl__1.csta = 0;
-#line 1865 ""
- f_clos(&cl__1);
-#line 1866 ""
- }
-#line 1867 ""
- goto L1;
-#line 1868 ""
-L999:
-#line 1868 ""
- cl__1.cerr = 0;
-#line 1868 ""
- cl__1.cunit = 11;
-#line 1868 ""
- cl__1.csta = 0;
-#line 1868 ""
- f_clos(&cl__1);
-#line 1869 ""
- cl__1.cerr = 0;
-#line 1869 ""
- cl__1.cunit = 12;
-#line 1869 ""
- cl__1.csta = 0;
-#line 1869 ""
- f_clos(&cl__1);
-#line 1870 ""
- return 0;
-} /* askfig_ */
-
-/* Subroutine */ int backfill_(integer *iunit, char *oldq, integer *lenold,
- char *newq, integer *lennew, ftnlen oldq_len, ftnlen newq_len)
-{
- /* System generated locals */
- address a__1[3];
- integer i__1, i__2[3];
- alist al__1;
-
- /* Builtin functions */
- integer f_back(alist *), s_rsfe(cilist *), do_fio(integer *, char *,
- ftnlen), e_rsfe(void), i_indx(char *, char *, ftnlen, ftnlen);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen), s_cat(char *,
- char **, integer *, integer *, ftnlen);
- integer s_wsfe(cilist *), e_wsfe(void);
-
- /* Local variables */
- static integer linesback, ndx, line;
- static char nowq[128], lineq[128*200];
-
- /* Fortran I/O blocks */
- static cilist io___132 = { 0, 0, 0, "(a)", 0 };
- static cilist io___137 = { 0, 0, 0, "(a128)", 0 };
-
-
-
-/* In iunit, looks backward for oldq, overwrites newq */
-/* Safest if both are same length! */
-
-#line 1879 ""
- linesback = 0;
-#line 1880 ""
-L1:
-#line 1881 ""
- al__1.aerr = 0;
-#line 1881 ""
- al__1.aunit = *iunit;
-#line 1881 ""
- f_back(&al__1);
-#line 1882 ""
- io___132.ciunit = *iunit;
-#line 1882 ""
- s_rsfe(&io___132);
-#line 1882 ""
- do_fio(&c__1, nowq, (ftnlen)128);
-#line 1882 ""
- e_rsfe();
-#line 1883 ""
- ndx = i_indx(nowq, oldq, (ftnlen)128, (*lenold));
-
-/* Save the line just read */
-
-#line 1887 ""
- ++linesback;
-#line 1888 ""
- s_copy(lineq + (linesback - 1 << 7), nowq, (ftnlen)128, (ftnlen)128);
-#line 1889 ""
- if (ndx == 0) {
-#line 1890 ""
- al__1.aerr = 0;
-#line 1890 ""
- al__1.aunit = *iunit;
-#line 1890 ""
- f_back(&al__1);
-#line 1891 ""
- goto L1;
-#line 1892 ""
- }
-
-/* If here, it's replacement time. */
-
-#line 1896 ""
- i__1 = ndx + *lenold - 1;
-/* Writing concatenation */
-#line 1896 ""
- i__2[0] = ndx - 1, a__1[0] = nowq;
-#line 1896 ""
- i__2[1] = *lennew, a__1[1] = newq;
-#line 1896 ""
- i__2[2] = 128 - i__1, a__1[2] = nowq + i__1;
-#line 1896 ""
- s_cat(lineq + (linesback - 1 << 7), a__1, i__2, &c__3, (ftnlen)128);
-#line 1898 ""
- al__1.aerr = 0;
-#line 1898 ""
- al__1.aunit = *iunit;
-#line 1898 ""
- f_back(&al__1);
-#line 1899 ""
- for (line = linesback; line >= 1; --line) {
-#line 1900 ""
- io___137.ciunit = *iunit;
-#line 1900 ""
- s_wsfe(&io___137);
-#line 1900 ""
- do_fio(&c__1, lineq + (line - 1 << 7), (ftnlen)128);
-#line 1900 ""
- e_wsfe();
-#line 1901 ""
-/* L2: */
-#line 1901 ""
- }
-#line 1902 ""
- return 0;
-} /* backfill_ */
-
-/* Subroutine */ int beamend_(char *notexq, integer *lnote, ftnlen notexq_len)
-{
- /* System generated locals */
- address a__1[13], a__2[2], a__3[6], a__4[4], a__5[5], a__6[3], a__7[7];
- integer i__1, i__2[13], i__3[2], i__4[6], i__5[4], i__6[5], i__7[3], i__8[
- 7], i__9;
- real r__1;
- char ch__1[1];
-
- /* Builtin functions */
- integer pow_ii(integer *, integer *), s_wsfi(icilist *), do_fio(integer *,
- char *, ftnlen), e_wsfi(void);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen),
- s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen);
-
- /* Local variables */
- extern /* Subroutine */ int addblank_(char *, integer *, ftnlen);
- extern integer igetbits_(integer *, integer *, integer *);
- static integer ip, mp, len, imp;
- extern integer log2_(integer *);
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer nole;
- static real slen;
- static char ulqq[1];
- extern /* Subroutine */ int stop1_(void);
- extern integer ncmid_(integer *, integer *);
- static integer ndsav;
- static char tempq[4], noteq[8];
- extern /* Subroutine */ int notex_(char *, integer *, ftnlen);
- static real addoff;
- extern /* Subroutine */ int ntrbbb_(integer *, char *, char *, integer *,
- char *, integer *, ftnlen, ftnlen, ftnlen), notefq_(char *,
- integer *, integer *, integer *, ftnlen);
- static logical isdotm;
- static integer lnoten, multip, nindent;
- extern /* Subroutine */ int istring_(integer *, char *, integer *, ftnlen)
- ;
-
- /* Fortran I/O blocks */
- static icilist io___144 = { 0, tempq, 0, "(f4.1)", 4, 1 };
- static icilist io___145 = { 0, tempq, 0, "(f4.2)", 4, 1 };
- static icilist io___148 = { 0, noteq, 0, "(i2)", 2, 1 };
- static icilist io___150 = { 0, tempq, 0, "(f4.1)", 4, 1 };
- static icilist io___151 = { 0, tempq, 0, "(f4.2)", 4, 1 };
- static icilist io___153 = { 0, tempq, 0, "(f4.1)", 4, 1 };
- static icilist io___154 = { 0, tempq, 0, "(f4.1)", 4, 1 };
- static cilist io___155 = { 0, 6, 0, 0, 0 };
- static cilist io___156 = { 0, 6, 0, 0, 0 };
- static icilist io___160 = { 0, noteq, 0, "(i2)", 2, 1 };
-
-
-#line 1930 ""
- ip = all_1.ipo[all_1.jn - 1];
-#line 1931 ""
- multip = (all_1.mult[commvl_1.ivx + ip * 24 - 25] & 15) - 8;
-#line 1932 ""
- *lnote = 0;
-#line 1933 ""
- 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 1937 ""
- i__1 = 4 - multip;
-#line 1937 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] = pow_ii(&c__2, &i__1);
-#line 1938 ""
- notex_(notexq, lnote, (ftnlen)79);
-#line 1939 ""
- strtmid_1.ixrest[commvl_1.ivx - 1] = 0;
-#line 1940 ""
- return 0;
-#line 1941 ""
- }
-#line 1942 ""
- nole = all_1.nolev[commvl_1.ivx + ip * 24 - 25];
-
-/* Check for special situations with 2nds (see precrd) */
-
-#line 1946 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],30)) {
-#line 1947 ""
- --nole;
-#line 1948 ""
- } else if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],31)) {
-#line 1949 ""
- ++nole;
-#line 1950 ""
- }
-
-/* Terminate indented beams for 2-note tremolo if needed */
-
-#line 1954 ""
- if (bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25],2) &&
- igetbits_(&all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25], &c__2,
- &c__5) > 0) {
-#line 1956 ""
- nindent = igetbits_(&all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25], &
- c__2, &c__5);
-#line 1957 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25] == 'u') {
-#line 1958 ""
- addoff = -1 - nindent * .5f;
-#line 1959 ""
- } else {
-#line 1960 ""
- addoff = nindent * .5f + 1;
-#line 1961 ""
- }
-/* addoff = addoff+(.595-.065*abs(islope(ivx)))*islope(ivx) */
-#line 1963 ""
- addoff += comxtup_1.islope[commvl_1.ivx - 1] * .0822f;
-#line 1964 ""
- if (addoff < -.05f) {
-#line 1965 ""
- s_wsfi(&io___144);
-#line 1965 ""
- do_fio(&c__1, (char *)&addoff, (ftnlen)sizeof(real));
-#line 1965 ""
- e_wsfi();
-#line 1966 ""
- } else {
-#line 1967 ""
- s_wsfi(&io___145);
-#line 1967 ""
- do_fio(&c__1, (char *)&addoff, (ftnlen)sizeof(real));
-#line 1967 ""
- e_wsfi();
-#line 1968 ""
- }
-/* Writing concatenation */
-#line 1969 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 1969 ""
- i__2[1] = 5, a__1[1] = "raise";
-#line 1969 ""
- i__2[2] = 4, a__1[2] = tempq;
-#line 1969 ""
- i__2[3] = 1, a__1[3] = all_1.sq;
-#line 1969 ""
- i__2[4] = 9, a__1[4] = "internote";
-#line 1969 ""
- i__2[5] = 1, a__1[5] = all_1.sq;
-#line 1969 ""
- i__2[6] = 5, a__1[6] = "hbox{";
-#line 1969 ""
- i__2[7] = 1, a__1[7] = all_1.sq;
-#line 1969 ""
- i__2[8] = 12, a__1[8] = "loffset{.7}{";
-#line 1969 ""
- i__2[9] = 1, a__1[9] = all_1.sq;
-#line 1969 ""
- i__2[10] = 2, a__1[10] = "tb";
-#line 1969 ""
- i__2[11] = 1, a__1[11] = all_1.ulq + (commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25);
-#line 1969 ""
- i__2[12] = 3, a__1[12] = "0}}";
-#line 1969 ""
- s_cat(notexq, a__1, i__2, &c__13, (ftnlen)79);
-#line 1972 ""
- *lnote = 46;
-#line 1973 ""
- }
-#line 1974 ""
- if (! comdraw_1.drawbm[commvl_1.ivx - 1]) {
-
-/* Xtuplet with no beam, just put in the right kind of note */
-
-#line 1978 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) {
-
-/* Rest at end of unbeamed xtup */
-
-#line 1982 ""
- *lnote = 3;
-#line 1983 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],29)) {
-/* Writing concatenation */
-#line 1984 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 1984 ""
- i__3[1] = 2, a__2[1] = "sk";
-#line 1984 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-
-/* 180106 There was a problem with nolev(ivx,ip) not being set to 0 for */
-/* a blank rest ending xtup, but hopefully returning from here will handle it. */
-
-#line 1989 ""
- return 0;
-#line 1990 ""
- } else if (multip == 0) {
-/* Writing concatenation */
-#line 1991 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 1991 ""
- i__3[1] = 2, a__2[1] = "qp";
-#line 1991 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 1992 ""
- } else if (multip == -1) {
-/* Writing concatenation */
-#line 1993 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 1993 ""
- i__3[1] = 2, a__2[1] = "hp";
-#line 1993 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 1994 ""
- } else if (multip == 1) {
-/* Writing concatenation */
-#line 1995 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 1995 ""
- i__3[1] = 2, a__2[1] = "ds";
-#line 1995 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 1996 ""
- } else if (multip == 2) {
-/* Writing concatenation */
-#line 1997 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 1997 ""
- i__3[1] = 2, a__2[1] = "qs";
-#line 1997 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 1998 ""
- } else {
-/* Writing concatenation */
-#line 1999 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 1999 ""
- i__3[1] = 2, a__2[1] = "hs";
-#line 1999 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2000 ""
- }
-
-/* 180106 Deal with possible level tweak */
-
-#line 2004 ""
- nole = (all_1.nolev[commvl_1.ivx + ip * 24 - 25] + 50) % 100 - 50;
-#line 2005 ""
- if (nole != 0) {
-#line 2006 ""
- if (abs(nole) < 10) {
-#line 2007 ""
- i__1 = abs(nole) + 48;
-#line 2007 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 2007 ""
- s_copy(noteq, ch__1, (ftnlen)8, (ftnlen)1);
-#line 2008 ""
- lnoten = 1;
-#line 2009 ""
- } else {
-#line 2010 ""
- s_wsfi(&io___148);
-#line 2010 ""
- i__1 = abs(nole);
-#line 2010 ""
- do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 2010 ""
- e_wsfi();
-#line 2011 ""
- lnoten = 2;
-#line 2012 ""
- }
-#line 2013 ""
- if (nole > 0) {
-/* Writing concatenation */
-#line 2014 ""
- i__4[0] = 1, a__3[0] = all_1.sq;
-#line 2014 ""
- i__4[1] = 5, a__3[1] = "raise";
-#line 2014 ""
- i__4[2] = lnoten, a__3[2] = noteq;
-#line 2014 ""
- i__4[3] = 1, a__3[3] = all_1.sq;
-#line 2014 ""
- i__4[4] = 9, a__3[4] = "internote";
-#line 2014 ""
- i__4[5] = *lnote, a__3[5] = notexq;
-#line 2014 ""
- s_cat(notexq, a__3, i__4, &c__6, (ftnlen)79);
-#line 2016 ""
- } else {
-/* Writing concatenation */
-#line 2017 ""
- i__4[0] = 1, a__3[0] = all_1.sq;
-#line 2017 ""
- i__4[1] = 5, a__3[1] = "lower";
-#line 2017 ""
- i__4[2] = lnoten, a__3[2] = noteq;
-#line 2017 ""
- i__4[3] = 1, a__3[3] = all_1.sq;
-#line 2017 ""
- i__4[4] = 9, a__3[4] = "internote";
-#line 2017 ""
- i__4[5] = *lnote, a__3[5] = notexq;
-#line 2017 ""
- s_cat(notexq, a__3, i__4, &c__6, (ftnlen)79);
-#line 2019 ""
- }
-#line 2020 ""
- *lnote = lnoten + 16 + *lnote;
-#line 2021 ""
- }
-#line 2022 ""
- return 0;
-#line 2023 ""
- }
-#line 2024 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],30)) {
-
-/* Forced stem direction */
-
-#line 2028 ""
- ndsav = all_1.nodur[commvl_1.ivx + ip * 24 - 25];
-#line 2029 ""
- i__1 = 4 - multip;
-#line 2029 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] = pow_ii(&c__2, &i__1);
-#line 2030 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],27)) {
-#line 2030 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] /= 2;
-#line 2030 ""
- }
-#line 2032 ""
- notex_(notexq, lnote, (ftnlen)79);
-#line 2033 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] = ndsav;
-#line 2034 ""
- } else {
-#line 2035 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 2035 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 2036 ""
- if (lnoten == 1) {
-#line 2036 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 2036 ""
- }
-
-/* To reduce confusion due to this early update of lnote, do it */
-/* below, separately in each case/ */
-/* lnote = lnoten+3 */
-#line 2041 ""
- if (! bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],27))
- {
-
-/* Prior note is not regular-dotted */
-
-#line 2045 ""
- if (bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25],2)
- && igetbits_(&all_1.irest[commvl_1.ivx + (ip - 1) *
- 24 - 25], &c__2, &c__5) > 0) {
-
-/* Unbeamed tremolo with indented beams. Put termination in right here */
-
-#line 2050 ""
- nindent = igetbits_(&all_1.irest[commvl_1.ivx + (ip - 1) *
- 24 - 25], &c__2, &c__5);
-#line 2051 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25] == 'u')
- {
-#line 2052 ""
- addoff = -1 - nindent * .5f;
-#line 2053 ""
- } else {
-#line 2054 ""
- addoff = nindent * .5f + 1;
-#line 2055 ""
- }
-
-/* Is there an islope here, for unbeamed? */
-
-#line 2059 ""
- if (addoff < -.05f) {
-#line 2060 ""
- s_wsfi(&io___150);
-#line 2060 ""
- do_fio(&c__1, (char *)&addoff, (ftnlen)sizeof(real));
-#line 2060 ""
- e_wsfi();
-#line 2061 ""
- } else {
-#line 2062 ""
- s_wsfi(&io___151);
-#line 2062 ""
- do_fio(&c__1, (char *)&addoff, (ftnlen)sizeof(real));
-#line 2062 ""
- e_wsfi();
-#line 2063 ""
- }
-/* Writing concatenation */
-#line 2064 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2064 ""
- i__2[1] = 5, a__1[1] = "raise";
-#line 2064 ""
- i__2[2] = 4, a__1[2] = tempq;
-#line 2064 ""
- i__2[3] = 1, a__1[3] = all_1.sq;
-#line 2064 ""
- i__2[4] = 9, a__1[4] = "internote";
-#line 2064 ""
- i__2[5] = 1, a__1[5] = all_1.sq;
-#line 2064 ""
- i__2[6] = 5, a__1[6] = "hbox{";
-#line 2064 ""
- i__2[7] = 1, a__1[7] = all_1.sq;
-#line 2064 ""
- i__2[8] = 12, a__1[8] = "loffset{.7}{";
-#line 2064 ""
- i__2[9] = 1, a__1[9] = all_1.sq;
-#line 2064 ""
- i__2[10] = 2, a__1[10] = "tb";
-#line 2064 ""
- i__2[11] = 1, a__1[11] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2064 ""
- i__2[12] = 3, a__1[12] = "0}}";
-#line 2064 ""
- s_cat(notexq, a__1, i__2, &c__13, (ftnlen)79);
-#line 2068 ""
- *lnote = 46;
-#line 2069 ""
- }
-#line 2070 ""
- if (multip == 0) {
-#line 2071 ""
- if (bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 -
- 25],2) && all_1.nodur[commvl_1.ivx + ip * 24 - 25]
- > 24) {
-
-/* 2nd note of unbeamed half-note trem; make open */
-/* But it's not clear if unbeamed half-note tremolo is Kosher, */
-/* so don't worry about stem lengths here now. */
-
-#line 2078 ""
- if (*lnote == 0) {
-/* Writing concatenation */
-#line 2079 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2079 ""
- i__5[1] = 1, a__4[1] = "h";
-#line 2079 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (commvl_1.ivx
- + all_1.ibmcnt[commvl_1.ivx - 1] * 24 -
- 25);
-#line 2079 ""
- i__5[3] = 8, a__4[3] = noteq;
-#line 2079 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2080 ""
- } else {
-/* Writing concatenation */
-#line 2081 ""
- i__6[0] = 46, a__5[0] = notexq;
-#line 2081 ""
- i__6[1] = 1, a__5[1] = all_1.sq;
-#line 2081 ""
- i__6[2] = 1, a__5[2] = "h";
-#line 2081 ""
- i__6[3] = 1, a__5[3] = all_1.ulq + (commvl_1.ivx
- + all_1.ibmcnt[commvl_1.ivx - 1] * 24 -
- 25);
-#line 2081 ""
- i__6[4] = 8, a__5[4] = noteq;
-#line 2081 ""
- s_cat(notexq, a__5, i__6, &c__5, (ftnlen)79);
-#line 2083 ""
- *lnote = 46;
-#line 2084 ""
- }
-#line 2085 ""
- } else {
-#line 2086 ""
- if (bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24
- - 25],2) && all_1.nodur[commvl_1.ivx + ip *
- 24 - 25] == 24 || all_1.nodur[commvl_1.ivx +
- ip * 24 - 25] == 12) {
-
-/* Need a dot. */
-
-#line 2091 ""
- *lnote = 46;
-#line 2092 ""
- if (lnoten == 1) {
-/* Writing concatenation */
-#line 2093 ""
- i__3[0] = 1, a__2[0] = " ";
-#line 2093 ""
- i__3[1] = 1, a__2[1] = noteq;
-#line 2093 ""
- s_cat(noteq, a__2, i__3, &c__2, (ftnlen)8);
-#line 2094 ""
- lnoten = 2;
-#line 2095 ""
- }
-
-/* Insert stemlength stuff here for unbeamed dotted tremolo. */
-/* May later combine with below to avoid repeat. But need to */
-/* return to normal stem length after note is set. */
-
-#line 2101 ""
- nindent = igetbits_(&all_1.irest[commvl_1.ivx + (
- ip - 1) * 24 - 25], &c__2, &c__5);
-#line 2102 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25]
- == 'u') {
-#line 2103 ""
- slen = (nindent + 4.5f + comxtup_1.nolev1[
- commvl_1.ivx - 1] - nole + (
- all_1.eskz[commvl_1.ivx + ip * 24 -
- 25] - all_1.eskz[commvl_1.ivx + (ip -
- 1) * 24 - 25] - .7f) * 1.3f *
- comxtup_1.islope[commvl_1.ivx - 1] /
- all_1.slfac) * .6667f;
-#line 2106 ""
- } else {
-#line 2107 ""
- slen = (nindent + 4.5f - comxtup_1.nolev1[
- commvl_1.ivx - 1] + nole - (
- all_1.eskz[commvl_1.ivx + ip * 24 -
- 25] - all_1.eskz[commvl_1.ivx + (ip -
- 1) * 24 - 25] - .7f) * 1.3f *
- comxtup_1.islope[commvl_1.ivx - 1] /
- all_1.slfac) * .6667f;
-#line 2110 ""
- }
-#line 2111 ""
- s_wsfi(&io___153);
-#line 2111 ""
- do_fio(&c__1, (char *)&slen, (ftnlen)sizeof(real))
- ;
-#line 2111 ""
- e_wsfi();
-/* Writing concatenation */
-#line 2112 ""
- i__6[0] = 1, a__5[0] = all_1.sq;
-#line 2112 ""
- i__6[1] = 4, a__5[1] = "slx{";
-#line 2112 ""
- i__6[2] = 4, a__5[2] = tempq;
-#line 2112 ""
- i__6[3] = 1, a__5[3] = "}";
-#line 2112 ""
- i__6[4] = *lnote, a__5[4] = notexq;
-#line 2112 ""
- s_cat(notexq, a__5, i__6, &c__5, (ftnlen)79);
-#line 2113 ""
- *lnote += 10;
-#line 2114 ""
- }
-
-/* Next steps are a historical kluge to distinguish dotted unbeamed 2-note trem */
-/* (needs \qup) from normal xtup on dotted note (eg e44dx2 f, wants no dot) */
-
-#line 2119 ""
- if (bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24
- - 25],2)) {
-#line 2120 ""
- if (*lnote == 0) {
-/* notexq = sq//'q'//ulq(ivx,ibmcnt(ivx)) */
-/* Writing concatenation */
-#line 2122 ""
- i__6[0] = 1, a__5[0] = all_1.sq;
-#line 2122 ""
- i__6[1] = 1, a__5[1] = "q";
-#line 2122 ""
- i__6[2] = 1, a__5[2] = all_1.ulq + (
- commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25);
-#line 2122 ""
- i__6[3] = 1, a__5[3] = "p";
-#line 2122 ""
- i__6[4] = lnoten, a__5[4] = noteq;
-#line 2122 ""
- s_cat(notexq, a__5, i__6, &c__5, (ftnlen)79);
-#line 2124 ""
- } else {
-/* Writing concatenation */
-#line 2125 ""
- i__4[0] = *lnote, a__3[0] = notexq;
-#line 2125 ""
- i__4[1] = 1, a__3[1] = all_1.sq;
-#line 2125 ""
- i__4[2] = 1, a__3[2] = "q";
-#line 2125 ""
- i__4[3] = 1, a__3[3] = all_1.ulq + (
- commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25);
-#line 2125 ""
- i__4[4] = 1, a__3[4] = "p";
-#line 2125 ""
- i__4[5] = lnoten, a__3[5] = noteq;
-#line 2125 ""
- s_cat(notexq, a__3, i__4, &c__6, (ftnlen)79);
-/* * //ulq(ivx,ibmcnt(ivx))//noteq(1:lnoten) */
-#line 2128 ""
- }
-/* lnote = lnote+3+lnoten */
-#line 2130 ""
- *lnote = *lnote + 4 + lnoten;
-#line 2131 ""
- } else {
-#line 2132 ""
- if (*lnote == 0) {
-/* Writing concatenation */
-#line 2133 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2133 ""
- i__5[1] = 1, a__4[1] = "q";
-#line 2133 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (
- commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25);
-#line 2133 ""
- i__5[3] = lnoten, a__4[3] = noteq;
-#line 2133 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2135 ""
- } else {
-/* Writing concatenation */
-#line 2136 ""
- i__6[0] = *lnote, a__5[0] = notexq;
-#line 2136 ""
- i__6[1] = 1, a__5[1] = all_1.sq;
-#line 2136 ""
- i__6[2] = 1, a__5[2] = "q";
-#line 2136 ""
- i__6[3] = 1, a__5[3] = all_1.ulq + (
- commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25);
-#line 2136 ""
- i__6[4] = lnoten, a__5[4] = noteq;
-#line 2136 ""
- s_cat(notexq, a__5, i__6, &c__5, (ftnlen)79);
-#line 2138 ""
- }
-#line 2139 ""
- *lnote = *lnote + 3 + lnoten;
-#line 2140 ""
- }
-#line 2141 ""
- if (bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24
- - 25],2) && all_1.nodur[commvl_1.ivx + ip *
- 24 - 25] == 24 || all_1.nodur[commvl_1.ivx +
- ip * 24 - 25] == 12) {
-/* Writing concatenation */
-#line 2143 ""
- i__7[0] = *lnote, a__6[0] = notexq;
-#line 2143 ""
- i__7[1] = 1, a__6[1] = all_1.sq;
-#line 2143 ""
- i__7[2] = 3, a__6[2] = "slz";
-#line 2143 ""
- s_cat(notexq, a__6, i__7, &c__3, (ftnlen)79);
-#line 2144 ""
- *lnote += 4;
-#line 2145 ""
- }
-#line 2146 ""
- }
-#line 2147 ""
- } else if (bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24
- - 25],2)) {
-
-/* 2nd note of unbeamed quarter or 8th trem; make quarter note */
-/* Get stemlength change */
-
-#line 2152 ""
- *lnote = 46;
-#line 2153 ""
- nindent = igetbits_(&all_1.irest[commvl_1.ivx + (ip - 1) *
- 24 - 25], &c__2, &c__5);
-#line 2154 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25] == 'u')
- {
-#line 2155 ""
- slen = (nindent + 4.5f + comxtup_1.nolev1[
- commvl_1.ivx - 1] - nole + (all_1.eskz[
- commvl_1.ivx + ip * 24 - 25] - all_1.eskz[
- commvl_1.ivx + (ip - 1) * 24 - 25] - .7f) *
- 1.3f * comxtup_1.islope[commvl_1.ivx - 1] /
- all_1.slfac) * .6667f;
-#line 2158 ""
- } else {
-#line 2159 ""
- slen = (nindent + 4.5f - comxtup_1.nolev1[
- commvl_1.ivx - 1] + nole - (all_1.eskz[
- commvl_1.ivx + ip * 24 - 25] - all_1.eskz[
- commvl_1.ivx + (ip - 1) * 24 - 25] - .7f) *
- 1.3f * comxtup_1.islope[commvl_1.ivx - 1] /
- all_1.slfac) * .6667f;
-#line 2162 ""
- }
-#line 2163 ""
- s_wsfi(&io___154);
-#line 2163 ""
- do_fio(&c__1, (char *)&slen, (ftnlen)sizeof(real));
-#line 2163 ""
- e_wsfi();
-/* Writing concatenation */
-#line 2164 ""
- i__6[0] = 46, a__5[0] = notexq;
-#line 2164 ""
- i__6[1] = 1, a__5[1] = all_1.sq;
-#line 2164 ""
- i__6[2] = 4, a__5[2] = "slx{";
-#line 2164 ""
- i__6[3] = 4, a__5[3] = tempq;
-#line 2164 ""
- i__6[4] = 1, a__5[4] = "}";
-#line 2164 ""
- s_cat(notexq, a__5, i__6, &c__5, (ftnlen)79);
-#line 2165 ""
- *lnote += 10;
-/* if (lnote .eq. 0) then */
-/* notexq = sq//'h'//ulq(ivx,ibmcnt(ivx))//noteq */
-/* else */
-/* notexq = notexq(1:46)// */
-/* * sq//'h'//ulq(ivx,ibmcnt(ivx))//noteq */
-/* end if */
-
-
-/* Check for dotted unbeamed tremolo */
-
-#line 2176 ""
- if ((r__1 = all_1.nodur[commvl_1.ivx + ip * 24 - 25] /
- 12.f - all_1.nodur[commvl_1.ivx + ip * 24 - 25] /
- 12, dabs(r__1)) < .001f) {
-
-/* Need a dot */
-
-#line 2180 ""
- if (lnoten == 1) {
-/* Writing concatenation */
-#line 2181 ""
- i__3[0] = 1, a__2[0] = " ";
-#line 2181 ""
- i__3[1] = 1, a__2[1] = noteq;
-#line 2181 ""
- s_cat(noteq, a__2, i__3, &c__2, (ftnlen)8);
-#line 2182 ""
- lnoten = 2;
-#line 2183 ""
- }
-#line 2184 ""
- if (*lnote == 0) {
-/* Writing concatenation */
-#line 2185 ""
- i__7[0] = 1, a__6[0] = all_1.sq;
-#line 2185 ""
- i__7[1] = 2, a__6[1] = "pt";
-#line 2185 ""
- i__7[2] = lnoten, a__6[2] = noteq;
-#line 2185 ""
- s_cat(notexq, a__6, i__7, &c__3, (ftnlen)79);
-#line 2186 ""
- } else {
-/* Writing concatenation */
-#line 2187 ""
- i__5[0] = *lnote, a__4[0] = notexq;
-#line 2187 ""
- i__5[1] = 1, a__4[1] = all_1.sq;
-#line 2187 ""
- i__5[2] = 2, a__4[2] = "pt";
-#line 2187 ""
- i__5[3] = lnoten, a__4[3] = noteq;
-#line 2187 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2188 ""
- }
-#line 2189 ""
- *lnote = *lnote + 3 + lnoten;
-#line 2190 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 2190 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 2191 ""
- if (lnoten == 1) {
-/* Writing concatenation */
-#line 2192 ""
- i__3[0] = 1, a__2[0] = " ";
-#line 2192 ""
- i__3[1] = 1, a__2[1] = noteq;
-#line 2192 ""
- s_cat(noteq, a__2, i__3, &c__2, (ftnlen)8);
-#line 2193 ""
- lnoten = 2;
-#line 2194 ""
- }
-#line 2195 ""
- }
-/* Writing concatenation */
-#line 2196 ""
- i__8[0] = *lnote, a__7[0] = notexq;
-#line 2196 ""
- i__8[1] = 1, a__7[1] = all_1.sq;
-#line 2196 ""
- i__8[2] = 1, a__7[2] = "q";
-#line 2196 ""
- i__8[3] = 1, a__7[3] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2196 ""
- i__8[4] = lnoten, a__7[4] = noteq;
-#line 2196 ""
- i__8[5] = 1, a__7[5] = all_1.sq;
-#line 2196 ""
- i__8[6] = 3, a__7[6] = "slz";
-#line 2196 ""
- s_cat(notexq, a__7, i__8, &c__7, (ftnlen)79);
-/* * //sq//'stemcut' */
-/* lnote=lnote+3+lnoten+8 */
-#line 2201 ""
- *lnote = *lnote + 3 + lnoten + 4;
-#line 2202 ""
- } else if (multip == -1) {
-/* Writing concatenation */
-#line 2203 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2203 ""
- i__5[1] = 1, a__4[1] = "h";
-#line 2203 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2203 ""
- i__5[3] = lnoten, a__4[3] = noteq;
-#line 2203 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2204 ""
- *lnote = lnoten + 3;
-#line 2205 ""
- } else if (multip == 1) {
-/* Writing concatenation */
-#line 2206 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2206 ""
- i__5[1] = 1, a__4[1] = "c";
-#line 2206 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2206 ""
- i__5[3] = lnoten, a__4[3] = noteq;
-#line 2206 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2207 ""
- *lnote = lnoten + 3;
-#line 2208 ""
- } else if (multip == 2) {
-/* Writing concatenation */
-#line 2209 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2209 ""
- i__5[1] = 2, a__4[1] = "cc";
-#line 2209 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2209 ""
- i__5[3] = lnoten, a__4[3] = noteq;
-#line 2209 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2210 ""
- *lnote = lnoten + 4;
-#line 2211 ""
- } else if (multip == 3) {
-/* Writing concatenation */
-#line 2212 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2212 ""
- i__5[1] = 3, a__4[1] = "ccc";
-#line 2212 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2212 ""
- i__5[3] = lnoten, a__4[3] = noteq;
-#line 2212 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2213 ""
- *lnote = lnoten + 5;
-#line 2214 ""
- } else if (multip == -2) {
-/* Writing concatenation */
-#line 2215 ""
- i__7[0] = 1, a__6[0] = all_1.sq;
-#line 2215 ""
- i__7[1] = 2, a__6[1] = "wh";
-#line 2215 ""
- i__7[2] = lnoten, a__6[2] = noteq;
-#line 2215 ""
- s_cat(notexq, a__6, i__7, &c__3, (ftnlen)79);
-#line 2216 ""
- *lnote = lnoten + 3;
-#line 2217 ""
- } else if (multip == -3) {
-/* Writing concatenation */
-#line 2218 ""
- i__7[0] = 1, a__6[0] = all_1.sq;
-#line 2218 ""
- i__7[1] = 5, a__6[1] = "breve";
-#line 2218 ""
- i__7[2] = lnoten, a__6[2] = noteq;
-#line 2218 ""
- s_cat(notexq, a__6, i__7, &c__3, (ftnlen)79);
-#line 2219 ""
- *lnote = lnoten + 6;
-#line 2220 ""
- } else {
-#line 2221 ""
- s_wsle(&io___155);
-#line 2221 ""
- e_wsle();
-#line 2222 ""
- s_wsle(&io___156);
-#line 2222 ""
- do_lio(&c__9, &c__1, "(Error in beamend, send source to "\
- "Dr. Don)", (ftnlen)42);
-#line 2222 ""
- e_wsle();
-#line 2223 ""
- stop1_();
-#line 2224 ""
- }
-#line 2225 ""
- } else {
-
-/* Prior note is regular-dotted so this one is halved */
-
-#line 2229 ""
- *lnote = lnoten + 3;
-#line 2230 ""
- if (multip == 0) {
-/* Writing concatenation */
-#line 2231 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2231 ""
- i__5[1] = 1, a__4[1] = "c";
-#line 2231 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2231 ""
- i__5[3] = 8, a__4[3] = noteq;
-#line 2231 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2232 ""
- } else if (multip == -1) {
-/* Writing concatenation */
-#line 2233 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2233 ""
- i__5[1] = 1, a__4[1] = "q";
-#line 2233 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2233 ""
- i__5[3] = 8, a__4[3] = noteq;
-#line 2233 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2234 ""
- } else if (multip == -2) {
-/* Writing concatenation */
-#line 2235 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2235 ""
- i__5[1] = 1, a__4[1] = "h";
-#line 2235 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2235 ""
- i__5[3] = 8, a__4[3] = noteq;
-#line 2235 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2236 ""
- } else if (multip == 1) {
-/* Writing concatenation */
-#line 2237 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2237 ""
- i__5[1] = 2, a__4[1] = "cc";
-#line 2237 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2237 ""
- i__5[3] = 8, a__4[3] = noteq;
-#line 2237 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2238 ""
- *lnote = lnoten + 4;
-#line 2239 ""
- } else if (multip == 2) {
-/* Writing concatenation */
-#line 2240 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2240 ""
- i__5[1] = 3, a__4[1] = "ccc";
-#line 2240 ""
- i__5[2] = 1, a__4[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2240 ""
- i__5[3] = 8, a__4[3] = noteq;
-#line 2240 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2241 ""
- *lnote = lnoten + 5;
-#line 2242 ""
- }
-#line 2243 ""
- }
-#line 2244 ""
- }
-#line 2245 ""
- return 0;
-#line 2246 ""
- }
-
-/* End of block for unbeamed. Problem if beamed but ends w/ rest. Try just */
-/* skipping the call in that case. */
-
-#line 2251 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) {
-#line 2252 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 2252 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 2253 ""
- }
-/* call notefq(noteq,lnoten,nole,ncmid(iv,ip)) */
-/* lnote = 0 */
-
-/* New way, with flipend, which was computed in beamstrt. */
-
-#line 2259 ""
- if (strtmid_1.flipend[commvl_1.ivx - 1] && bit_test(all_1.ipl[
- commvl_1.ivx + ip * 24 - 25],30)) {
-#line 2260 ""
- i__1 = 225 - *(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25];
-#line 2260 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 2260 ""
- *(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx
- - 1] * 24 - 25] = *(unsigned char *)&ch__1[0];
-#line 2261 ""
- strtmid_1.flipend[commvl_1.ivx - 1] = FALSE_;
-#line 2262 ""
- }
-#line 2263 ""
- 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 2267 ""
- if (bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25],0)) {
-
-/* Prior note is a rest, check one before that */
-
-#line 2271 ""
- mp = (all_1.mult[commvl_1.ivx + (ip - 2) * 24 - 25] & 15) - 8;
-#line 2272 ""
- } else {
-#line 2273 ""
- mp = (all_1.mult[commvl_1.ivx + (ip - 1) * 24 - 25] & 15) - 8;
-#line 2274 ""
- }
-#line 2275 ""
- if (multip > mp) {
-
-/* Assume 1-3, 2-3, or 1-2 */
-
-#line 2279 ""
- i__1 = mp + 1;
-#line 2279 ""
- for (imp = multip; imp >= i__1; --imp) {
-#line 2280 ""
- 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 2281 ""
-/* L2: */
-#line 2281 ""
- }
-#line 2282 ""
- } else if (bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],27))
- {
-
-/* 2nd member of dotted xtup */
-
-#line 2286 ""
- i__1 = multip + 1;
-#line 2286 ""
- 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 2288 ""
- }
-#line 2289 ""
- }
-
-/* Beam termination and direction analysis */
-
-#line 2293 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],23) && !
- combjmp_1.isbjmp) {
-
-/* This is the end of the first segment in a jump-beam. ivbj1=ivx will be number */
-/* of the jump-beam. ivbj2 will be tested along with isbjmp to see if in the */
-/* voice of the 2nd part of jumped beam. (May need special treatment for */
-/* multi-segment jump-beams */
-
-#line 2300 ""
- combjmp_1.isbjmp = TRUE_;
-#line 2301 ""
- combjmp_1.ivbj1 = commvl_1.ivx;
-#line 2302 ""
- combjmp_1.multbj1 = 15 & all_1.mult[commvl_1.ivx + ip * 24 - 25] - 8;
-#line 2303 ""
- combjmp_1.ivbj2 = 0;
-#line 2304 ""
- }
-#line 2305 ""
- 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, */
-/* (170409) or rest at end of xtup */
-/* so some sort of termination is required */
-
-#line 2311 ""
- *(unsigned char *)ulqq = *(unsigned char *)&all_1.ulq[commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25];
-#line 2312 ""
- if (! combjmp_1.isbjmp || commvl_1.ivx != combjmp_1.ivbj2) {
-#line 2313 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) {
-
-/* Xtup ends with rest */
-
-#line 2317 ""
- if (multip == 1) {
-/* Writing concatenation */
-#line 2318 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2318 ""
- i__3[1] = 2, a__2[1] = "ds";
-#line 2318 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2319 ""
- *lnote = 3;
-#line 2320 ""
- } else if (multip == 2) {
-/* Writing concatenation */
-#line 2321 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2321 ""
- i__3[1] = 2, a__2[1] = "qs";
-#line 2321 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2322 ""
- *lnote = 3;
-#line 2323 ""
- } else if (multip == 3) {
-/* Writing concatenation */
-#line 2324 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2324 ""
- i__3[1] = 2, a__2[1] = "hs";
-#line 2324 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2325 ""
- *lnote = 3;
-#line 2326 ""
- }
-
-/* 170801 Borrowed from main rest entry way down below to get level adjustment: */
-/* BUT nole is like 102, not 2, so subtracted 100 for nole. Why different??? */
-/* "... Now raise if necc." */
-
-#line 2332 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],29)) {
-
-/* Blank rest */
-
-/* Writing concatenation */
-#line 2336 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2336 ""
- i__3[1] = 2, a__2[1] = "sk";
-#line 2336 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2337 ""
- *lnote = 3;
-#line 2338 ""
- } else if (nole != 0) {
-
-/* Bandaid. Odd case with rests in xtups + 2 voices where came thru here with */
-/* nolev=-4 but expected 100+/-. Try to fix. */
-
-#line 2343 ""
- if (abs(nole) < 30) {
-#line 2343 ""
- nole += 100;
-#line 2343 ""
- }
-
-#line 2345 ""
- if ((i__1 = nole - 100, abs(i__1)) < 10) {
-#line 2346 ""
- i__9 = (i__1 = nole - 100, abs(i__1)) + 48;
-#line 2346 ""
- chax_(ch__1, (ftnlen)1, &i__9);
-#line 2346 ""
- s_copy(noteq, ch__1, (ftnlen)8, (ftnlen)1);
-#line 2347 ""
- lnoten = 1;
-#line 2348 ""
- } else {
-#line 2349 ""
- s_wsfi(&io___160);
-#line 2349 ""
- i__9 = (i__1 = nole - 100, abs(i__1));
-#line 2349 ""
- do_fio(&c__1, (char *)&i__9, (ftnlen)sizeof(integer));
-#line 2349 ""
- e_wsfi();
-#line 2350 ""
- lnoten = 2;
-#line 2351 ""
- }
-/* ??? if (nole .gt. 0) then */
-#line 2353 ""
- if (nole > 100) {
-/* Writing concatenation */
-#line 2354 ""
- i__4[0] = 1, a__3[0] = all_1.sq;
-#line 2354 ""
- i__4[1] = 5, a__3[1] = "raise";
-#line 2354 ""
- i__4[2] = lnoten, a__3[2] = noteq;
-#line 2354 ""
- i__4[3] = 1, a__3[3] = all_1.sq;
-#line 2354 ""
- i__4[4] = 9, a__3[4] = "internote";
-#line 2354 ""
- i__4[5] = *lnote, a__3[5] = notexq;
-#line 2354 ""
- s_cat(notexq, a__3, i__4, &c__6, (ftnlen)79);
-#line 2356 ""
- } else {
-/* Writing concatenation */
-#line 2357 ""
- i__4[0] = 1, a__3[0] = all_1.sq;
-#line 2357 ""
- i__4[1] = 5, a__3[1] = "lower";
-#line 2357 ""
- i__4[2] = lnoten, a__3[2] = noteq;
-#line 2357 ""
- i__4[3] = 1, a__3[3] = all_1.sq;
-#line 2357 ""
- i__4[4] = 9, a__3[4] = "internote";
-#line 2357 ""
- i__4[5] = *lnote, a__3[5] = notexq;
-#line 2357 ""
- s_cat(notexq, a__3, i__4, &c__6, (ftnlen)79);
-#line 2359 ""
- }
-#line 2360 ""
- *lnote = lnoten + 16 + *lnote;
-#line 2361 ""
- }
-#line 2362 ""
- return 0;
-#line 2363 ""
- } else {
-
-/* Normal termination */
-
-#line 2367 ""
- i__1 = commvl_1.ivx % 24;
-#line 2367 ""
- ntrbbb_(&c__1, "t", ulqq, &i__1, notexq, lnote, (ftnlen)1, (
- ftnlen)1, (ftnlen)79);
-#line 2368 ""
- }
-#line 2369 ""
- } else {
-
-/* Terminate a sequence of jump-beam segments. */
-
-#line 2373 ""
- i__1 = 225 - *(unsigned char *)ulqq;
-#line 2373 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 2373 ""
- *(unsigned char *)ulqq = *(unsigned char *)&ch__1[0];
-#line 2374 ""
- i__1 = combjmp_1.ivbj1 % 24;
-#line 2374 ""
- ntrbbb_(&c__1, "t", ulqq, &i__1, notexq, lnote, (ftnlen)1, (
- ftnlen)1, (ftnlen)79);
-#line 2375 ""
- }
-#line 2376 ""
- }
-
-/* Check for end of 2nd seg of staff-jump xtup chord blank rest */
-
-/* if (isbjmp.and.ivx.eq.ivbj2 */
-#line 2381 ""
- if (combjmp_1.isbjmp && bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],
- 29)) {
-/* Writing concatenation */
-#line 2383 ""
- i__7[0] = *lnote, a__6[0] = notexq;
-#line 2383 ""
- i__7[1] = 1, a__6[1] = all_1.sq;
-#line 2383 ""
- i__7[2] = 2, a__6[2] = "sk";
-#line 2383 ""
- s_cat(notexq, a__6, i__7, &c__3, (ftnlen)79);
-#line 2384 ""
- return 0;
-#line 2385 ""
- }
-
-/* And now the note, checking for open-head beamed tremolo */
-
-#line 2389 ""
- if (bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25],2)) {
-
-/* Check for dotted tremolo */
-
-#line 2393 ""
- if ((r__1 = all_1.nodur[commvl_1.ivx + ip * 24 - 25] / 12.f -
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] / 12, dabs(r__1)) <
- .001f) {
-
-/* Need a dot */
-
-#line 2397 ""
- if (all_1.nodur[commvl_1.ivx + ip * 24 - 25] == 24 || all_1.nodur[
- commvl_1.ivx + ip * 24 - 25] == 12) {
-
-/* Solid notehead */
-
-/* Writing concatenation */
-#line 2401 ""
- i__7[0] = *lnote, a__6[0] = notexq;
-#line 2401 ""
- i__7[1] = 1, a__6[1] = all_1.sq;
-#line 2401 ""
- i__7[2] = 3, a__6[2] = "qbp";
-#line 2401 ""
- s_cat(notexq, a__6, i__7, &c__3, (ftnlen)79);
-#line 2402 ""
- } else {
-
-/* Assuming open notehead and nodur = 48 */
-
-/* Writing concatenation */
-#line 2406 ""
- i__7[0] = *lnote, a__6[0] = notexq;
-#line 2406 ""
- i__7[1] = 1, a__6[1] = all_1.sq;
-#line 2406 ""
- i__7[2] = 3, a__6[2] = "hbp";
-#line 2406 ""
- s_cat(notexq, a__6, i__7, &c__3, (ftnlen)79);
-#line 2407 ""
- }
-#line 2408 ""
- *lnote += 4;
-#line 2409 ""
- } else {
-#line 2410 ""
- if (all_1.nodur[commvl_1.ivx + ip * 24 - 25] == 32 || all_1.nodur[
- commvl_1.ivx + ip * 24 - 25] == 48) {
-#line 2411 ""
- if (*lnote > 0) {
-/* Writing concatenation */
-#line 2412 ""
- i__7[0] = *lnote, a__6[0] = notexq;
-#line 2412 ""
- i__7[1] = 1, a__6[1] = all_1.sq;
-#line 2412 ""
- i__7[2] = 2, a__6[2] = "hb";
-#line 2412 ""
- s_cat(notexq, a__6, i__7, &c__3, (ftnlen)79);
-#line 2413 ""
- } else {
-/* Writing concatenation */
-#line 2414 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2414 ""
- i__3[1] = 2, a__2[1] = "hb";
-#line 2414 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2415 ""
- }
-#line 2416 ""
- } else {
-#line 2417 ""
- if (*lnote > 0) {
-/* Writing concatenation */
-#line 2418 ""
- i__7[0] = *lnote, a__6[0] = notexq;
-#line 2418 ""
- i__7[1] = 1, a__6[1] = all_1.sq;
-#line 2418 ""
- i__7[2] = 2, a__6[2] = "qb";
-#line 2418 ""
- s_cat(notexq, a__6, i__7, &c__3, (ftnlen)79);
-#line 2419 ""
- } else {
-/* Writing concatenation */
-#line 2420 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2420 ""
- i__3[1] = 2, a__2[1] = "qb";
-#line 2420 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2421 ""
- }
-#line 2422 ""
- }
-#line 2423 ""
- *lnote += 3;
-#line 2424 ""
- }
-#line 2425 ""
- } else {
-
-/* No tremolo */
-
-#line 2429 ""
- if (*lnote > 0) {
-/* Writing concatenation */
-#line 2430 ""
- i__7[0] = *lnote, a__6[0] = notexq;
-#line 2430 ""
- i__7[1] = 1, a__6[1] = all_1.sq;
-#line 2430 ""
- i__7[2] = 2, a__6[2] = "qb";
-#line 2430 ""
- s_cat(notexq, a__6, i__7, &c__3, (ftnlen)79);
-#line 2431 ""
- } else {
-/* Writing concatenation */
-#line 2432 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2432 ""
- i__3[1] = 2, a__2[1] = "qb";
-#line 2432 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2433 ""
- }
-#line 2434 ""
- *lnote += 3;
-#line 2435 ""
- }
-#line 2436 ""
- isdotm = FALSE_;
-#line 2437 ""
- if (! comxtup_1.vxtup[commvl_1.ivx - 1]) {
-#line 2438 ""
- i__1 = log2_(&all_1.nodur[commvl_1.ivx + ip * 24 - 25]);
-#line 2438 ""
- if (pow_ii(&c__2, &i__1) != all_1.nodur[commvl_1.ivx + ip * 24 - 25])
- {
-#line 2439 ""
- if (! bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],13)) {
-/* Writing concatenation */
-#line 2440 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2440 ""
- i__3[1] = 1, a__2[1] = "p";
-#line 2440 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2441 ""
- } else {
-/* Writing concatenation */
-#line 2442 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2442 ""
- i__3[1] = 1, a__2[1] = "m";
-#line 2442 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2443 ""
- isdotm = TRUE_;
-#line 2444 ""
- }
-#line 2445 ""
- ++(*lnote);
-#line 2446 ""
- }
-#line 2447 ""
- }
-
-/* 5/25/08 Allow >12 */
-/* 5/9/10 Up to 24; replace 24 with 0 */
-
-#line 2452 ""
- if (! (combjmp_1.isbjmp && commvl_1.ivx == combjmp_1.ivbj2)) {
-#line 2453 ""
- i__1 = commvl_1.ivx % 24;
-#line 2453 ""
- istring_(&i__1, tempq, &len, (ftnlen)4);
-#line 2454 ""
- } else {
-#line 2455 ""
- i__1 = combjmp_1.ivbj1 % 24;
-#line 2455 ""
- istring_(&i__1, tempq, &len, (ftnlen)4);
-#line 2456 ""
- }
-#line 2457 ""
- if (combjmp_1.isbjmp && commvl_1.ivx == combjmp_1.ivbj2 && ! bit_test(
- all_1.irest[commvl_1.ivx + ip * 24 - 25],23)) {
-#line 2457 ""
- combjmp_1.isbjmp = FALSE_;
-#line 2457 ""
- }
-/* Writing concatenation */
-#line 2459 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2459 ""
- i__3[1] = len, a__2[1] = tempq;
-#line 2459 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2460 ""
- *lnote += len;
-/* Writing concatenation */
-#line 2461 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2461 ""
- i__3[1] = lnoten, a__2[1] = noteq;
-#line 2461 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2462 ""
- *lnote += lnoten;
-#line 2463 ""
- if (isdotm) {
-#line 2464 ""
- if (lnoten == 1) {
-/* Writing concatenation */
-#line 2465 ""
- i__5[0] = *lnote, a__4[0] = notexq;
-#line 2465 ""
- i__5[1] = 1, a__4[1] = "{";
-#line 2465 ""
- i__5[2] = 1, a__4[2] = noteq;
-#line 2465 ""
- i__5[3] = 1, a__4[3] = "}";
-#line 2465 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)79);
-#line 2466 ""
- *lnote += 3;
-#line 2467 ""
- } else {
-#line 2468 ""
- i__1 = lnoten - 2;
-/* Writing concatenation */
-#line 2468 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2468 ""
- i__3[1] = lnoten - 1 - i__1, a__2[1] = noteq + i__1;
-#line 2468 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2469 ""
- ++(*lnote);
-#line 2470 ""
- }
-#line 2471 ""
- }
-#line 2472 ""
- return 0;
-} /* beamend_ */
-
-/* Subroutine */ int beamid_(char *notexq, integer *lnote, ftnlen notexq_len)
-{
- /* System generated locals */
- address a__1[3], a__2[2], a__3[4];
- integer i__1, i__2[3], i__3[2], i__4, i__5, i__6[4];
- real r__1;
- char ch__1[1];
-
- /* Builtin functions */
- integer pow_ii(integer *, integer *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
-
- /* Local variables */
- extern /* Subroutine */ int addblank_(char *, integer *, ftnlen);
- extern integer igetbits_(integer *, integer *, integer *);
- extern logical isdotted_(integer *, integer *, integer *);
- static integer im, ip, len, ivb, iud, mua, mub, iup;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer nole;
- static char ulqq[1];
- extern integer ncmid_(integer *, integer *);
- static integer ipmid, iflop, ndsav;
- static char noteq[8], tempq[4];
- extern /* Subroutine */ int notex_(char *, integer *, ftnlen);
- extern integer levrn_(integer *, integer *, integer *, integer *, integer
- *);
- static integer nlnum, ipnow, multl, multr;
- extern /* Subroutine */ int ntrbbb_(integer *, char *, char *, integer *,
- char *, integer *, ftnlen, ftnlen, ftnlen);
- static integer ipleft;
- extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer
- *, ftnlen);
- static real xnlmid;
- static logical isdotm;
- static integer lnoten, mprint, multip;
- extern /* Subroutine */ int putxtn_(integer *, integer *, integer *,
- integer *, real *, real *, integer *, integer *, real *, real *,
- integer *, integer *, char *, integer *, integer *, real *,
- integer *, integer *, integer *, logical *, ftnlen);
- static integer ipright;
- extern /* Subroutine */ int istring_(integer *, char *, integer *, ftnlen)
- ;
-
-#line 2502 ""
- *lnote = 0;
-#line 2503 ""
- ip = all_1.ipo[all_1.jn - 1];
-#line 2504 ""
- nole = all_1.nolev[commvl_1.ivx + ip * 24 - 25];
-
-/* Check for special situations with 2nds (see precrd) */
-
-#line 2508 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],30)) {
-#line 2509 ""
- --nole;
-#line 2510 ""
- } else if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],31)) {
-#line 2511 ""
- ++nole;
-#line 2512 ""
- }
-#line 2513 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) {
-#line 2514 ""
- multip = (all_1.mult[commvl_1.ivx + ip * 24 - 25] & 15) - 8;
-/* if (btest(islur(ivx,ip-1),3)) multip = multip+1 */
-
-/* (Above test OK since must have ip>1). Double dotted note preceding */
-
-/* Move the following, because can't ask for note until after checking for */
-/* embedded xtup with number, due to ordering/octave feature. */
-
-/* call notefq(noteq,lnoten,nolev(ivx,ip),ncmid(iv,ip)) */
-#line 2523 ""
- }
-#line 2524 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],28)) {
-#line 2524 ""
- comxtup_1.vxtup[commvl_1.ivx - 1] = TRUE_;
-#line 2524 ""
- }
-#line 2525 ""
- if (comxtup_1.vxtup[commvl_1.ivx - 1]) {
-
-/* In an xtup */
-
-#line 2529 ""
- 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 2533 ""
- i__1 = 4 - ((all_1.mult[commvl_1.ivx + ip * 24 - 25] & 15) - 8);
-#line 2533 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] = pow_ii(&c__2, &i__1);
-#line 2534 ""
- notex_(notexq, lnote, (ftnlen)79);
-
-/* Re-zero so next note does not get confused */
-
-#line 2538 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] = 0;
-#line 2539 ""
- return 0;
-#line 2540 ""
- }
-#line 2541 ""
- if (! comdraw_1.drawbm[commvl_1.ivx - 1]) {
-
-/* Xtuplet with no beam, just put in the right kind of note */
-
-#line 2545 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],30)) {
-
-/* Forced stem direction */
-
-#line 2549 ""
- ndsav = all_1.nodur[commvl_1.ivx + ip * 24 - 25];
-#line 2550 ""
- i__1 = 4 - multip;
-#line 2550 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] = pow_ii(&c__2, &
- i__1);
-#line 2551 ""
- 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 2553 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] = all_1.nodur[
- commvl_1.ivx + ip * 24 - 25] * 3 / 2;
-#line 2554 ""
- } else if (bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 -
- 25],27)) {
-#line 2555 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] /= 2;
-#line 2556 ""
- }
-#line 2557 ""
- notex_(notexq, lnote, (ftnlen)79);
-#line 2558 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] = ndsav;
-#line 2559 ""
- } else {
-
-/* Use ulq for stem direction */
-
-#line 2563 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 2563 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 2564 ""
- if (lnoten == 1) {
-#line 2564 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 2564 ""
- }
-#line 2565 ""
- *lnote = 3;
-#line 2566 ""
- if (! bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],
- 27)) {
-
-/* Prior note of xtup is not regular-dotted */
-
-#line 2570 ""
- if (multip == 0) {
-/* Writing concatenation */
-#line 2571 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2571 ""
- i__2[1] = 1, a__1[1] = "q";
-#line 2571 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2571 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2572 ""
- } else if (multip == -1) {
-/* Writing concatenation */
-#line 2573 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2573 ""
- i__2[1] = 1, a__1[1] = "h";
-#line 2573 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2573 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2574 ""
- } else if (multip == 1) {
-/* Writing concatenation */
-#line 2575 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2575 ""
- i__2[1] = 1, a__1[1] = "c";
-#line 2575 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2575 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2576 ""
- } else if (multip == 2) {
-/* Writing concatenation */
-#line 2577 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2577 ""
- i__2[1] = 2, a__1[1] = "cc";
-#line 2577 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2577 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2578 ""
- *lnote = 4;
-#line 2579 ""
- } else if (multip == 3) {
-/* Writing concatenation */
-#line 2580 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2580 ""
- i__2[1] = 3, a__1[1] = "ccc";
-#line 2580 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2580 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2581 ""
- *lnote = 5;
-#line 2582 ""
- } else if (multip == -2) {
-/* Writing concatenation */
-#line 2583 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2583 ""
- i__3[1] = 2, a__2[1] = "wh";
-#line 2583 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2584 ""
- }
-#line 2585 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],27))
- {
-
-/* This xtup note is regular dotted non-beamed xtup */
-
-/* notexq = notexq(1:3)//'p' */
-/* lnote = 4 */
-/* Writing concatenation */
-#line 2591 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2591 ""
- i__3[1] = 1, a__2[1] = "p";
-#line 2591 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2592 ""
- ++(*lnote);
-#line 2593 ""
- }
-#line 2594 ""
- } else {
-
-/* Prior note of xtup is regular-dotted so this one is halved */
-
-#line 2598 ""
- if (multip == 2) {
-/* Writing concatenation */
-#line 2599 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2599 ""
- i__2[1] = 3, a__1[1] = "ccc";
-#line 2599 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2599 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2600 ""
- *lnote = 5;
-#line 2601 ""
- } else if (multip == 1) {
-/* Writing concatenation */
-#line 2602 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2602 ""
- i__2[1] = 2, a__1[1] = "cc";
-#line 2602 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2602 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2603 ""
- *lnote = 4;
-#line 2604 ""
- } else if (multip == 0) {
-/* Writing concatenation */
-#line 2605 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2605 ""
- i__2[1] = 1, a__1[1] = "c";
-#line 2605 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2605 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2606 ""
- } else if (multip == -1) {
-/* Writing concatenation */
-#line 2607 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2607 ""
- i__2[1] = 1, a__1[1] = "q";
-#line 2607 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2607 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2608 ""
- } else if (multip == -2) {
-/* Writing concatenation */
-#line 2609 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2609 ""
- i__2[1] = 1, a__1[1] = "h";
-#line 2609 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2609 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2610 ""
- }
-#line 2611 ""
- }
-/* Writing concatenation */
-#line 2612 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2612 ""
- i__3[1] = 8, a__2[1] = noteq;
-#line 2612 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2613 ""
- *lnote += lnoten;
-#line 2614 ""
- }
-#line 2615 ""
- return 0;
-#line 2616 ""
- } else if (all_1.nodur[commvl_1.ivx + ip * 24 - 25] == 0) {
-
-/* In the beamed xtup but not the last note */
-
-#line 2620 ""
- if (all_1.nodur[commvl_1.ivx + (ip - 1) * 24 - 25] > 0) {
-
-/* Embedded Xtup, mult>0, starts here. Put in number if needed */
-
-#line 2624 ""
- ++comxtup_1.nxtinbm[commvl_1.ivx - 1];
-#line 2625 ""
- iud = 1;
-#line 2626 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25] == 'u') {
-#line 2626 ""
- iud = -1;
-#line 2626 ""
- }
-
-/* Get ip#, notelevel of middle note (or gap) in xtup */
-
-#line 2630 ""
- ipmid = ip + comxtup_1.ntupv[commvl_1.ivx + comxtup_1.nxtinbm[
- commvl_1.ivx - 1] * 24 - 25] / 2;
-#line 2631 ""
- i__1 = ncmid_(&all_1.iv, &ipmid);
-#line 2631 ""
- i__4 = (15 & all_1.mult[commvl_1.ivx + ipmid * 24 - 25]) - 8;
-#line 2631 ""
- 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 2633 ""
- if (comxtup_1.ntupv[commvl_1.ivx + comxtup_1.nxtinbm[
- commvl_1.ivx - 1] * 24 - 25] % 2 == 0) {
-#line 2633 ""
- i__4 = ipmid - 1;
-#line 2633 ""
- i__1 = ncmid_(&all_1.iv, &i__4);
-#line 2633 ""
- i__5 = (15 & all_1.mult[commvl_1.ivx + (ipmid - 1) * 24 -
- 25]) - 8;
-#line 2633 ""
- 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 2633 ""
- }
-#line 2636 ""
- iflop = 0;
-#line 2637 ""
- if ((r__1 = xnlmid - ncmid_(&all_1.iv, &ip), dabs(r__1)) <
- 3.f) {
-#line 2637 ""
- iflop = -iud;
-#line 2637 ""
- }
-#line 2638 ""
- iup = iud + (iflop << 1);
-#line 2639 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],14)) {
-#line 2640 ""
- iup = -iup;
-#line 2641 ""
- iflop = 0;
-#line 2642 ""
- if (iud * iup < 0) {
-#line 2642 ""
- iflop = iup;
-#line 2642 ""
- }
-#line 2643 ""
- }
-
-/* Place number if needed */
-
-#line 2647 ""
- if (! bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],31)) {
-#line 2648 ""
- mprint = igetbits_(&all_1.nacc[commvl_1.ivx + ip * 24 -
- 25], &c__5, &c__22);
-#line 2649 ""
- if (mprint == 0) {
-#line 2649 ""
- mprint = comxtup_1.mtupv[commvl_1.ivx +
- comxtup_1.nxtinbm[commvl_1.ivx - 1] * 24 - 25]
- ;
-#line 2649 ""
- }
-#line 2650 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 2650 ""
- 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], &
- all_1.slfac, &xnlmid, &all_1.islur[commvl_1.ivx +
- 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 2655 ""
- }
-#line 2656 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 2656 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 2657 ""
- } else {
-
-/* Intermediate note of xtup */
-
-#line 2661 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 2661 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 2662 ""
- }
-#line 2663 ""
- } else {
-
-/* Last note of xtup (but not last note of beam!) */
-
-#line 2667 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 2667 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 2668 ""
- }
-#line 2669 ""
- } else if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) {
-#line 2670 ""
- notex_(notexq, lnote, (ftnlen)79);
-#line 2671 ""
- return 0;
-#line 2672 ""
- } else {
-#line 2673 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 2673 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 2674 ""
- }
-
-/* Check for string of rests up to and including last note in xtup. */
-
-/* Replace next 2 lines to keep from doing this block */
-/* when in second part of staff-jumping chordal xtup. This fix could */
-/* break some unaccounted non-chordal staff-jum xtup situations. */
-/* if (vxtup(ivx) .and. btest(irest(ivx,ip+1),0) .and. */
-/* * .not.btest(irest(ivx,ip),0)) then */
-#line 2683 ""
- if (comxtup_1.vxtup[commvl_1.ivx - 1] && bit_test(all_1.irest[
- commvl_1.ivx + (ip + 1) * 24 - 25],0) && ! bit_test(all_1.irest[
- commvl_1.ivx + ip * 24 - 25],0) && ! (combjmp_1.isbjmp &&
- commvl_1.ivx == combjmp_1.ivbj2)) {
-
-/* This note is not a rest but next is a rest. Do rests continue to */
-/* end of xtup, where nodur>0 */
-
-#line 2690 ""
- i__1 = ip + 24;
-#line 2690 ""
- for (ipnow = ip + 1; ipnow <= i__1; ++ipnow) {
-#line 2691 ""
- if (all_1.nodur[commvl_1.ivx + ipnow * 24 - 25] > 0) {
-#line 2691 ""
- goto L4;
-#line 2691 ""
- }
-/* This is last of xtup */
-#line 2692 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + (ipnow + 1) * 24 - 25],
- 0)) {
-#line 2692 ""
- goto L5;
-#line 2692 ""
- }
-
-/* If I don't go to 5, know next note IS a rest! */
-
-/* Next is not */
-#line 2696 ""
-/* L3: */
-#line 2696 ""
- }
-#line 2697 ""
-L4:
-#line 2698 ""
- ntrbbb_(&c__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);
-/* Writing concatenation */
-#line 2699 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 2699 ""
- i__2[1] = 1, a__1[1] = all_1.sq;
-#line 2699 ""
- i__2[2] = 2, a__1[2] = "qb";
-#line 2699 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2700 ""
- *lnote += 3;
-#line 2701 ""
- istring_(&commvl_1.ivx, tempq, &len, (ftnlen)4);
-/* Writing concatenation */
-#line 2702 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2702 ""
- i__3[1] = len, a__2[1] = tempq;
-#line 2702 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2703 ""
- *lnote += len;
-/* Writing concatenation */
-#line 2704 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2704 ""
- i__3[1] = lnoten, a__2[1] = noteq;
-#line 2704 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2705 ""
- *lnote += lnoten;
-#line 2706 ""
- return 0;
-#line 2707 ""
-L5:
-
-/* Check if multiplicity changes in a way requiring action, */
-/* unless (160211) it's blank rest on start of 2nd seg of joined beam */
-
-#line 2712 ""
- ;
-#line 2712 ""
- } else 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 2714 ""
- ipleft = ip - 1;
-#line 2715 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ipleft * 24 - 25],0)) {
-#line 2715 ""
- --ipleft;
-#line 2715 ""
- }
-#line 2716 ""
- if (! bit_test(all_1.islur[commvl_1.ivx + ipleft * 24 - 25],20)) {
-#line 2717 ""
- multl = (15 & all_1.mult[commvl_1.ivx + ipleft * 24 - 25]) - 8;
-#line 2718 ""
- } else {
-#line 2719 ""
- multl = 1;
-#line 2720 ""
- }
-#line 2721 ""
- mub = multip - multl;
-#line 2722 ""
- ipright = ip + 1;
-#line 2723 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ipright * 24 - 25],0)) {
-#line 2723 ""
- ++ipright;
-#line 2723 ""
- }
-#line 2724 ""
- if (! bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],20)) {
-#line 2725 ""
- multr = (15 & all_1.mult[commvl_1.ivx + ipright * 24 - 25]) - 8;
-#line 2726 ""
- } else {
-#line 2727 ""
- multr = 1;
-#line 2728 ""
- }
-#line 2729 ""
- mua = multr - multip;
-#line 2730 ""
- if (mub > 0 || mua < 0) {
-
-/* Multiplicity has increased from left or will decrease to right. Need action. */
-
-#line 2734 ""
- if (combjmp_1.isbjmp && commvl_1.ivx == combjmp_1.ivbj2) {
-#line 2735 ""
- ivb = combjmp_1.ivbj1;
-#line 2736 ""
- i__1 = 225 - *(unsigned char *)&all_1.ulq[commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25];
-#line 2736 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 2736 ""
- *(unsigned char *)ulqq = *(unsigned char *)&ch__1[0];
-#line 2737 ""
- } else {
-#line 2738 ""
- ivb = commvl_1.ivx;
-#line 2739 ""
- *(unsigned char *)ulqq = *(unsigned char *)&all_1.ulq[
- commvl_1.ivx + all_1.ibmcnt[commvl_1.ivx - 1] * 24 -
- 25];
-#line 2740 ""
- }
-#line 2741 ""
- if (mua >= 0) {
-#line 2742 ""
- ntrbbb_(&multip, "n", ulqq, &ivb, notexq, lnote, (ftnlen)1, (
- ftnlen)1, (ftnlen)79);
-
-/* Test for next note being blank rest, assuming staff-crossing */
-/* xtup chord */
-
-#line 2747 ""
- } else if (multl >= multr && ! bit_test(all_1.islur[commvl_1.ivx
- + (ip + 1) * 24 - 25],29)) {
-#line 2749 ""
- i__1 = multr + 1;
-#line 2749 ""
- for (im = multip; im >= i__1; --im) {
-#line 2750 ""
- ntrbbb_(&im, "t", ulqq, &ivb, notexq, lnote, (ftnlen)1, (
- ftnlen)1, (ftnlen)79);
-#line 2751 ""
-/* L1: */
-#line 2751 ""
- }
-/* else */
-/* Test for next note being blank rest, assuming staff-crossing */
-/* xtup chord */
-
-#line 2756 ""
- } else if (! bit_test(all_1.islur[commvl_1.ivx + (ip + 1) * 24 -
- 25],29)) {
-#line 2757 ""
- i__1 = multip;
-#line 2757 ""
- for (im = multr + 1; im <= i__1; ++im) {
-#line 2758 ""
- ntrbbb_(&im, "r", ulqq, &ivb, notexq, lnote, (ftnlen)1, (
- ftnlen)1, (ftnlen)79);
-#line 2759 ""
-/* L2: */
-#line 2759 ""
- }
-#line 2760 ""
- ntrbbb_(&multr, "n", ulqq, &ivb, notexq, lnote, (ftnlen)1, (
- ftnlen)1, (ftnlen)79);
-#line 2761 ""
- }
-#line 2762 ""
- } else if (ip > 1) {
-
-/* Check for 2nd member of dotted xtup */
-
-#line 2766 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + (ip - 1) * 24 - 25],27)) {
-#line 2766 ""
- i__1 = multip + 1;
-#line 2766 ""
- 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 2766 ""
- }
-#line 2768 ""
- }
-#line 2769 ""
- }
-
-/* Now put in the note */
-
-#line 2773 ""
- if (*lnote > 0) {
-/* Writing concatenation */
-#line 2774 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 2774 ""
- i__2[1] = 1, a__1[1] = all_1.sq;
-#line 2774 ""
- i__2[2] = 2, a__1[2] = "qb";
-#line 2774 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2775 ""
- } else {
-/* Writing concatenation */
-#line 2776 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2776 ""
- i__3[1] = 2, a__2[1] = "qb";
-#line 2776 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2777 ""
- }
-#line 2778 ""
- *lnote += 3;
-#line 2779 ""
- isdotm = FALSE_;
-#line 2780 ""
- if (isdotted_(all_1.nodur, &commvl_1.ivx, &ip)) {
-
-/* rule out ')' */
-
-#line 2784 ""
- if (! bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],13)) {
-#line 2785 ""
- if (! bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],3)) {
-/* Writing concatenation */
-#line 2786 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2786 ""
- i__3[1] = 1, a__2[1] = "p";
-#line 2786 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2787 ""
- } else {
-
-/* Double dot */
-
-/* Writing concatenation */
-#line 2791 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2791 ""
- i__3[1] = 2, a__2[1] = "pp";
-#line 2791 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2792 ""
- ++(*lnote);
-#line 2793 ""
- }
-#line 2794 ""
- } else {
-/* Writing concatenation */
-#line 2795 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2795 ""
- i__3[1] = 1, a__2[1] = "m";
-#line 2795 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2796 ""
- isdotm = TRUE_;
-#line 2797 ""
- }
-#line 2798 ""
- ++(*lnote);
-#line 2799 ""
- } 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 2804 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2804 ""
- i__3[1] = 1, a__2[1] = "p";
-#line 2804 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2805 ""
- ++(*lnote);
-#line 2806 ""
- }
-
-/* 5/25/08 Allow >12 */
-
-#line 2810 ""
- if (! (combjmp_1.isbjmp && commvl_1.ivx == combjmp_1.ivbj2)) {
-/* call istring(mod(ivx,12),tempq,len) */
-#line 2812 ""
- i__1 = commvl_1.ivx % 24;
-#line 2812 ""
- istring_(&i__1, tempq, &len, (ftnlen)4);
-#line 2813 ""
- } else {
-/* call istring(mod(ivbj1,12),tempq,len) */
-#line 2815 ""
- i__1 = combjmp_1.ivbj1 % 24;
-#line 2815 ""
- istring_(&i__1, tempq, &len, (ftnlen)4);
-#line 2816 ""
- }
-/* Writing concatenation */
-#line 2817 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2817 ""
- i__3[1] = len, a__2[1] = tempq;
-#line 2817 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2818 ""
- *lnote += len;
-/* Writing concatenation */
-#line 2819 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2819 ""
- i__3[1] = lnoten, a__2[1] = noteq;
-#line 2819 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2820 ""
- *lnote += lnoten;
-#line 2821 ""
- if (isdotm) {
-#line 2822 ""
- if (lnoten == 2) {
-/* Writing concatenation */
-#line 2823 ""
- i__6[0] = *lnote, a__3[0] = notexq;
-#line 2823 ""
- i__6[1] = 1, a__3[1] = "{";
-#line 2823 ""
- i__6[2] = 1, a__3[2] = noteq + 1;
-#line 2823 ""
- i__6[3] = 1, a__3[3] = "}";
-#line 2823 ""
- s_cat(notexq, a__3, i__6, &c__4, (ftnlen)79);
-#line 2824 ""
- *lnote += 3;
-#line 2825 ""
- } else {
-#line 2826 ""
- i__1 = lnoten - 2;
-/* Writing concatenation */
-#line 2826 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2826 ""
- i__3[1] = lnoten - 1 - i__1, a__2[1] = noteq + i__1;
-#line 2826 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2827 ""
- ++(*lnote);
-#line 2828 ""
- }
-#line 2829 ""
- }
-#line 2830 ""
- return 0;
-} /* beamid_ */
-
-/* Subroutine */ int beamn1_(char *notexq, integer *lnote, ftnlen notexq_len)
-{
- /* System generated locals */
- address a__1[3], a__2[2], a__3[5], a__4[7], a__5[4];
- integer i__1, i__2[3], i__3[2], i__4[5], i__5[7], i__6[4];
- real r__1;
-
- /* Builtin functions */
- integer pow_ii(integer *, integer *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- , s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *,
- char *, ftnlen);
-
- /* Local variables */
- extern /* Subroutine */ int addblank_(char *, integer *, ftnlen);
- extern integer igetbits_(integer *, integer *, integer *);
- static integer nd, im, ip, ip1, len;
- extern integer log2_(integer *);
- static integer nole;
- static real slen;
- static char numq[8];
- static integer ivxp;
- extern /* Subroutine */ int stop1_(void);
- extern integer ncmid_(integer *, integer *);
- static integer ndsav;
- static char noteq[8], tempq[8];
- extern /* Subroutine */ int notex_(char *, integer *, ftnlen);
- static integer multr;
- extern /* Subroutine */ int ntrbbb_(integer *, char *, char *, integer *,
- char *, integer *, ftnlen, ftnlen, ftnlen), notefq_(char *,
- integer *, integer *, integer *, ftnlen);
- static logical isdotm;
- static integer lnoten, multip, nindent;
- static logical gotnote;
- extern /* Subroutine */ int istring_(integer *, char *, integer *, ftnlen)
- ;
-
- /* Fortran I/O blocks */
- static icilist io___199 = { 0, tempq, 0, "(f4.1)", 8, 1 };
- static icilist io___200 = { 0, tempq, 0, "(f4.1)", 8, 1 };
- static cilist io___201 = { 0, 6, 0, 0, 0 };
- static cilist io___202 = { 0, 6, 0, 0, 0 };
-
-
-#line 2857 ""
- gotnote = FALSE_;
-#line 2858 ""
- lnoten = 0;
-#line 2859 ""
- ip1 = all_1.ipo[all_1.jn - 1];
-#line 2860 ""
- multip = (15 & all_1.mult[commvl_1.ivx + ip1 * 24 - 25]) - 8;
-#line 2861 ""
- if (! comdraw_1.drawbm[commvl_1.ivx - 1] && bit_test(all_1.irest[
- commvl_1.ivx + ip1 * 24 - 25],0)) {
-#line 2862 ""
- *lnote = 0;
-
-/* The rest was already written in beamstrt, so just get out of here */
-
-#line 2866 ""
- return 0;
-#line 2867 ""
- }
-#line 2868 ""
- 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 2872 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + all_1.ipo[all_1.jn - 1] * 24 - 25],
- 30)) {
-#line 2873 ""
- --nole;
-#line 2874 ""
- } else if (bit_test(all_1.nacc[commvl_1.ivx + all_1.ipo[all_1.jn - 1] *
- 24 - 25],31)) {
-#line 2875 ""
- ++nole;
-#line 2876 ""
- }
-#line 2877 ""
- 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 2881 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip1 * 24 - 25],30)) {
-
-/* Forced stem direction */
-
-#line 2885 ""
- ndsav = all_1.nodur[commvl_1.ivx + ip1 * 24 - 25];
-#line 2886 ""
- i__1 = 4 - multip;
-#line 2886 ""
- all_1.nodur[commvl_1.ivx + ip1 * 24 - 25] = pow_ii(&c__2, &i__1);
-#line 2887 ""
- 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 2887 ""
- all_1.nodur[commvl_1.ivx + ip1 * 24 - 25] = all_1.nodur[
- commvl_1.ivx + ip1 * 24 - 25] * 3 / 2;
-#line 2887 ""
- }
-#line 2889 ""
- notex_(notexq, lnote, (ftnlen)79);
-#line 2890 ""
- all_1.nodur[commvl_1.ivx + ip1 * 24 - 25] = ndsav;
-#line 2891 ""
- } else {
-#line 2892 ""
- i__1 = ncmid_(&all_1.iv, &ip1);
-#line 2892 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 2893 ""
- gotnote = TRUE_;
-#line 2894 ""
- if (lnoten == 1) {
-#line 2894 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 2894 ""
- }
-#line 2895 ""
- *lnote = 3;
-#line 2896 ""
- if (multip <= 0) {
-#line 2897 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip1 * 24 - 25],2) &&
- all_1.nodur[commvl_1.ivx + (ip1 + 1) * 24 - 25] >= 32
- || multip == -1) {
-
-/* 1st note of unbeamed half-note trem; make open */
-
-/* Writing concatenation */
-#line 2903 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2903 ""
- i__2[1] = 1, a__1[1] = "h";
-#line 2903 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2903 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2904 ""
- } else if (multip == -2) {
-/* Writing concatenation */
-#line 2905 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2905 ""
- i__3[1] = 2, a__2[1] = "wh";
-#line 2905 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2906 ""
- } else {
-/* Writing concatenation */
-#line 2907 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2907 ""
- i__2[1] = 1, a__1[1] = "q";
-#line 2907 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2907 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2908 ""
- }
-
-/* Check for dot */
-
-#line 2912 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip1 * 24 - 25],2) && (
- r__1 = all_1.nodur[commvl_1.ivx + (ip1 + 1) * 24 - 25]
- / 12.f - all_1.nodur[commvl_1.ivx + (ip1 + 1) * 24 -
- 25] / 12, dabs(r__1)) < .001f) {
-
-/* Need a dot. already called addblank for noteq */
-
-#line 2917 ""
- if (*lnote == 0) {
-/* Writing concatenation */
-#line 2918 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2918 ""
- i__2[1] = 2, a__1[1] = "pt";
-#line 2918 ""
- i__2[2] = lnoten, a__1[2] = noteq;
-#line 2918 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2919 ""
- *lnote = lnoten + 3;
-#line 2920 ""
- } else {
-/* Writing concatenation */
-#line 2921 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 2921 ""
- i__3[1] = 1, a__2[1] = "p";
-#line 2921 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2922 ""
- ++(*lnote);
-#line 2923 ""
- }
-#line 2924 ""
- }
-
-/* Insert the stemlength calcs here for dotted, unbeamed. */
-/* Later may combine with below to avoid repeat. */
-
-#line 2929 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip1 * 24 - 25],2)) {
-#line 2930 ""
- nindent = igetbits_(&all_1.irest[commvl_1.ivx + ip1 * 24
- - 25], &c__2, &c__5);
-#line 2931 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25] == 'u')
- {
-#line 2932 ""
- slen = (nindent + 4.5f + comxtup_1.nolev1[
- commvl_1.ivx - 1] - nole - comxtup_1.islope[
- commvl_1.ivx - 1] * .4f / all_1.slfac) *
- .6667f;
-#line 2934 ""
- } else {
-#line 2935 ""
- slen = (nindent + 4.5f - comxtup_1.nolev1[
- commvl_1.ivx - 1] + nole + comxtup_1.islope[
- commvl_1.ivx - 1] * .4f / all_1.slfac) *
- .6667f;
-#line 2937 ""
- }
-#line 2938 ""
- s_wsfi(&io___199);
-#line 2938 ""
- do_fio(&c__1, (char *)&slen, (ftnlen)sizeof(real));
-#line 2938 ""
- e_wsfi();
-/* Writing concatenation */
-#line 2939 ""
- i__4[0] = 1, a__3[0] = all_1.sq;
-#line 2939 ""
- i__4[1] = 4, a__3[1] = "slx{";
-#line 2939 ""
- i__4[2] = 4, a__3[2] = tempq;
-#line 2939 ""
- i__4[3] = 1, a__3[3] = "}";
-#line 2939 ""
- i__4[4] = *lnote, a__3[4] = notexq;
-#line 2939 ""
- s_cat(notexq, a__3, i__4, &c__5, (ftnlen)79);
-#line 2941 ""
- *lnote += 10;
-#line 2942 ""
- }
-#line 2943 ""
- } else if (bit_test(all_1.irest[commvl_1.ivx + ip1 * 24 - 25],2))
- {
-
-/* 1st note of unbeamed quarter or 8th trem, make a quarter note */
-
-/* Stem length calcs here. The .2 factor is empirical, but */
-/* slfac accounts for musicsize. */
-
-#line 2950 ""
- nindent = igetbits_(&all_1.irest[commvl_1.ivx + ip1 * 24 - 25]
- , &c__2, &c__5);
-#line 2951 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25] == 'u') {
-#line 2952 ""
- slen = (nindent + 4.5f + comxtup_1.nolev1[commvl_1.ivx -
- 1] - nole - comxtup_1.islope[commvl_1.ivx - 1] *
- .4f / all_1.slfac) * .6667f;
-#line 2954 ""
- } else {
-#line 2955 ""
- slen = (nindent + 4.5f - comxtup_1.nolev1[commvl_1.ivx -
- 1] + nole + comxtup_1.islope[commvl_1.ivx - 1] *
- .4f / all_1.slfac) * .6667f;
-#line 2957 ""
- }
-#line 2958 ""
- s_wsfi(&io___200);
-#line 2958 ""
- do_fio(&c__1, (char *)&slen, (ftnlen)sizeof(real));
-#line 2958 ""
- e_wsfi();
-/* Writing concatenation */
-#line 2959 ""
- i__5[0] = 1, a__4[0] = all_1.sq;
-#line 2959 ""
- i__5[1] = 4, a__4[1] = "slx{";
-#line 2959 ""
- i__5[2] = 4, a__4[2] = tempq;
-#line 2959 ""
- i__5[3] = 1, a__4[3] = "}";
-#line 2959 ""
- i__5[4] = 1, a__4[4] = all_1.sq;
-#line 2959 ""
- i__5[5] = 1, a__4[5] = "q";
-#line 2959 ""
- i__5[6] = 1, a__4[6] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2959 ""
- s_cat(notexq, a__4, i__5, &c__7, (ftnlen)79);
-#line 2961 ""
- *lnote = 13;
-
-/* Check for dotted 2-note trem; prepend dot to notexq if needed */
-
-#line 2965 ""
- if (all_1.nodur[commvl_1.ivx + (ip1 + 1) * 24 - 25] == 12 ||
- all_1.nodur[commvl_1.ivx + (ip1 + 1) * 24 - 25] == 24)
- {
-#line 2967 ""
- if (lnoten == 1) {
-/* Writing concatenation */
-#line 2968 ""
- i__3[0] = 1, a__2[0] = " ";
-#line 2968 ""
- i__3[1] = 1, a__2[1] = noteq;
-#line 2968 ""
- s_cat(noteq, a__2, i__3, &c__2, (ftnlen)8);
-#line 2969 ""
- lnoten = 2;
-#line 2970 ""
- }
-/* Writing concatenation */
-#line 2971 ""
- i__6[0] = 1, a__5[0] = all_1.sq;
-#line 2971 ""
- i__6[1] = 2, a__5[1] = "pt";
-#line 2971 ""
- i__6[2] = lnoten, a__5[2] = noteq;
-#line 2971 ""
- i__6[3] = *lnote, a__5[3] = notexq;
-#line 2971 ""
- s_cat(notexq, a__5, i__6, &c__4, (ftnlen)79);
-#line 2972 ""
- *lnote = *lnote + 3 + lnoten;
-#line 2973 ""
- i__1 = ncmid_(&all_1.iv, &ip1);
-#line 2973 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 2974 ""
- gotnote = TRUE_;
-#line 2975 ""
- if (lnoten == 1) {
-/* Writing concatenation */
-#line 2976 ""
- i__3[0] = 1, a__2[0] = " ";
-#line 2976 ""
- i__3[1] = 1, a__2[1] = noteq;
-#line 2976 ""
- s_cat(noteq, a__2, i__3, &c__2, (ftnlen)8);
-#line 2977 ""
- lnoten = 2;
-#line 2978 ""
- }
-#line 2979 ""
- }
-#line 2980 ""
- } else if (multip == -1) {
-/* Writing concatenation */
-#line 2981 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2981 ""
- i__2[1] = 1, a__1[1] = "h";
-#line 2981 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2981 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2982 ""
- } else if (multip == 1) {
-/* Writing concatenation */
-#line 2983 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2983 ""
- i__2[1] = 1, a__1[1] = "c";
-#line 2983 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2983 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2984 ""
- } else if (multip == 2) {
-/* Writing concatenation */
-#line 2985 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2985 ""
- i__2[1] = 2, a__1[1] = "cc";
-#line 2985 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2985 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2986 ""
- *lnote = 4;
-#line 2987 ""
- } else if (multip == 3) {
-/* Writing concatenation */
-#line 2988 ""
- i__2[0] = 1, a__1[0] = all_1.sq;
-#line 2988 ""
- i__2[1] = 3, a__1[1] = "ccc";
-#line 2988 ""
- i__2[2] = 1, a__1[2] = all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25);
-#line 2988 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 2989 ""
- *lnote = 5;
-#line 2990 ""
- } else if (multip == -2) {
-/* Writing concatenation */
-#line 2991 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2991 ""
- i__3[1] = 2, a__2[1] = "wh";
-#line 2991 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2992 ""
- } else if (multip == -3) {
-/* Writing concatenation */
-#line 2993 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 2993 ""
- i__3[1] = 5, a__2[1] = "breve";
-#line 2993 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 2994 ""
- *lnote = 6;
-#line 2995 ""
- } else {
-#line 2996 ""
- s_wsle(&io___201);
-#line 2996 ""
- e_wsle();
-#line 2997 ""
- s_wsle(&io___202);
-#line 2997 ""
- do_lio(&c__9, &c__1, "(Error in beamn1, send source to Dr. D"\
- "on)", (ftnlen)41);
-#line 2997 ""
- e_wsle();
-#line 2998 ""
- stop1_();
-#line 2999 ""
- }
-#line 3000 ""
- 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)) {
-/* notexq = notexq(1:3)//'p' */
-/* lnote = 4 */
-/* Writing concatenation */
-#line 3003 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 3003 ""
- i__3[1] = 1, a__2[1] = "p";
-#line 3003 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3004 ""
- ++(*lnote);
-#line 3005 ""
- }
-/* Writing concatenation */
-#line 3006 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 3006 ""
- i__3[1] = 8, a__2[1] = noteq;
-#line 3006 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3007 ""
- *lnote += lnoten;
-#line 3008 ""
- }
-#line 3009 ""
- return 0;
-#line 3010 ""
- }
-
-/* Check if mult. decreases from 1st note to 2nd */
-
-#line 3014 ""
- 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 3019 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip1 * 24 - 25],20)) {
-#line 3020 ""
- multr = 1;
-#line 3021 ""
- } else if (! bit_test(all_1.irest[commvl_1.ivx + (ip1 + 1) * 24 - 25],
- 0)) {
-#line 3022 ""
- multr = (15 & all_1.mult[commvl_1.ivx + (ip1 + 1) * 24 - 25]) - 8;
-#line 3023 ""
- } else {
-#line 3024 ""
- multr = (15 & all_1.mult[commvl_1.ivx + (ip1 + 2) * 24 - 25]) - 8;
-#line 3025 ""
- }
-#line 3026 ""
- *lnote = 0;
-
-/* Check if staff-jumper */
-
-#line 3030 ""
- if (combjmp_1.isbjmp && combjmp_1.ivbj2 > 0) {
-#line 3031 ""
- ivxp = combjmp_1.ivbj1;
-#line 3032 ""
- } else {
-#line 3033 ""
- ivxp = commvl_1.ivx;
-#line 3034 ""
- }
-#line 3035 ""
- if (multr < multip) {
-#line 3036 ""
- i__1 = multr + 1;
-#line 3036 ""
- for (im = multip; im >= i__1; --im) {
-
-/* Right-shifted 'termination' */
-
-#line 3040 ""
- if (combjmp_1.isbjmp && combjmp_1.ivbj2 > 0) {
-
-/* Jump beam */
-
-#line 3044 ""
- ntrbbb_(&im, "t", all_1.ulq + (ivxp + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25), &ivxp, notexq,
- lnote, (ftnlen)1, (ftnlen)1, (ftnlen)79);
-#line 3046 ""
- } else {
-
-/* Same staff */
-
-#line 3050 ""
- ntrbbb_(&im, "r", all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 - 25), &ivxp,
- notexq, lnote, (ftnlen)1, (ftnlen)1, (ftnlen)79);
-#line 3051 ""
- }
-#line 3052 ""
-/* L1: */
-#line 3052 ""
- }
-#line 3053 ""
- }
-#line 3054 ""
- }
-
-/* Check for beamed, dotted 2-note tremolo */
-
-#line 3058 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip1 * 24 - 25],2) && (r__1 =
- all_1.nodur[commvl_1.ivx + (ip1 + 1) * 24 - 25] / 12.f -
- all_1.nodur[commvl_1.ivx + (ip1 + 1) * 24 - 25] / 12, dabs(r__1))
- < .001f) {
-#line 3060 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 3060 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 3061 ""
- gotnote = TRUE_;
-#line 3062 ""
- if (lnoten == 1) {
-/* Writing concatenation */
-#line 3063 ""
- i__3[0] = 1, a__2[0] = " ";
-#line 3063 ""
- i__3[1] = 1, a__2[1] = noteq;
-#line 3063 ""
- s_cat(noteq, a__2, i__3, &c__2, (ftnlen)8);
-#line 3064 ""
- lnoten = 2;
-#line 3065 ""
- }
-#line 3066 ""
- }
-
-/* Put in the note, but check first for open-head beamed tremolo. */
-
-#line 3070 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip1 * 24 - 25],2) && all_1.nodur[
- commvl_1.ivx + (ip1 + 1) * 24 - 25] >= 32) {
-
-/* 2-note open head tremolo */
-
-#line 3074 ""
- if (*lnote > 0) {
-/* Writing concatenation */
-#line 3075 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 3075 ""
- i__2[1] = 1, a__1[1] = all_1.sq;
-#line 3075 ""
- i__2[2] = 2, a__1[2] = "hb";
-#line 3075 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 3076 ""
- } else {
-/* Writing concatenation */
-#line 3077 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 3077 ""
- i__3[1] = 2, a__2[1] = "hb";
-#line 3077 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3078 ""
- }
-#line 3079 ""
- } else {
-#line 3080 ""
- if (*lnote > 0) {
-/* Writing concatenation */
-#line 3081 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 3081 ""
- i__2[1] = 1, a__1[1] = all_1.sq;
-#line 3081 ""
- i__2[2] = 2, a__1[2] = "qb";
-#line 3081 ""
- s_cat(notexq, a__1, i__2, &c__3, (ftnlen)79);
-#line 3082 ""
- } else {
-/* Writing concatenation */
-#line 3083 ""
- i__3[0] = 1, a__2[0] = all_1.sq;
-#line 3083 ""
- i__3[1] = 2, a__2[1] = "qb";
-#line 3083 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3084 ""
- }
-#line 3085 ""
- }
-#line 3086 ""
- *lnote += 3;
-#line 3087 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip1 * 24 - 25],2) && (all_1.nodur[
- commvl_1.ivx + (ip1 + 1) * 24 - 25] == 24 || all_1.nodur[
- commvl_1.ivx + (ip1 + 1) * 24 - 25] == 12 || all_1.nodur[
- commvl_1.ivx + (ip1 + 1) * 24 - 25] == 48)) {
-
-/* 2-note trem on dotted note */
-
-/* Writing concatenation */
-#line 3093 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 3093 ""
- i__3[1] = 1, a__2[1] = "p";
-#line 3093 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3094 ""
- ++(*lnote);
-#line 3095 ""
- }
-
-/* Check for dot */
-
-#line 3099 ""
- isdotm = FALSE_;
-#line 3100 ""
- if (! comxtup_1.vxtup[commvl_1.ivx - 1]) {
-#line 3101 ""
- nd = all_1.nodur[commvl_1.ivx + all_1.ipo[all_1.jn - 1] * 24 - 25];
-#line 3102 ""
- if (nd != 0) {
-#line 3103 ""
- i__1 = log2_(&nd);
-#line 3103 ""
- if (pow_ii(&c__2, &i__1) != nd) {
-#line 3104 ""
- if (! bit_test(all_1.iornq[commvl_1.ivx + ip1 * 24 - 1],13)) {
-#line 3105 ""
- if (! bit_test(all_1.islur[commvl_1.ivx + ip1 * 24 - 25],
- 3)) {
-/* Writing concatenation */
-#line 3106 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 3106 ""
- i__3[1] = 1, a__2[1] = "p";
-#line 3106 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3107 ""
- } else {
-
-/* Double dot */
-
-/* Writing concatenation */
-#line 3111 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 3111 ""
- i__3[1] = 2, a__2[1] = "pp";
-#line 3111 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3112 ""
- ++(*lnote);
-#line 3113 ""
- }
-#line 3114 ""
- } else {
-/* Writing concatenation */
-#line 3115 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 3115 ""
- i__3[1] = 1, a__2[1] = "m";
-#line 3115 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3116 ""
- isdotm = TRUE_;
-#line 3117 ""
- }
-#line 3118 ""
- ++(*lnote);
-#line 3119 ""
- }
-#line 3120 ""
- }
-#line 3121 ""
- } 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 3126 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 3126 ""
- i__3[1] = 1, a__2[1] = "p";
-#line 3126 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3127 ""
- ++(*lnote);
-#line 3128 ""
- }
-
-/* Do the number; 0 if 12 */
-/* 5/25/08 allow >12 */
-
-#line 3133 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + ip1 * 24 - 25],24)) {
-#line 3134 ""
- i__1 = commvl_1.ivx % 24;
-#line 3134 ""
- istring_(&i__1, numq, &len, (ftnlen)8);
-#line 3135 ""
- } else {
-
-/* 1st note of staff-jumping beam */
-
-#line 3139 ""
- i__1 = combjmp_1.ivbj1 % 24;
-#line 3139 ""
- istring_(&i__1, numq, &len, (ftnlen)8);
-#line 3140 ""
- }
-/* Writing concatenation */
-#line 3141 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 3141 ""
- i__3[1] = len, a__2[1] = numq;
-#line 3141 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3142 ""
- *lnote += len;
-#line 3143 ""
- if (! gotnote) {
-#line 3144 ""
- i__1 = ncmid_(&all_1.iv, &ip1);
-#line 3144 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 3145 ""
- }
-/* Writing concatenation */
-#line 3146 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 3146 ""
- i__3[1] = lnoten, a__2[1] = noteq;
-#line 3146 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3147 ""
- *lnote += lnoten;
-#line 3148 ""
- if (isdotm) {
-#line 3149 ""
- if (lnoten == 1) {
-/* Writing concatenation */
-#line 3150 ""
- i__6[0] = *lnote, a__5[0] = notexq;
-#line 3150 ""
- i__6[1] = 1, a__5[1] = "{";
-#line 3150 ""
- i__6[2] = 1, a__5[2] = noteq;
-#line 3150 ""
- i__6[3] = 1, a__5[3] = "}";
-#line 3150 ""
- s_cat(notexq, a__5, i__6, &c__4, (ftnlen)79);
-#line 3151 ""
- *lnote += 3;
-#line 3152 ""
- } else {
-#line 3153 ""
- i__1 = lnoten - 2;
-/* Writing concatenation */
-#line 3153 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 3153 ""
- i__3[1] = lnoten - 1 - i__1, a__2[1] = noteq + i__1;
-#line 3153 ""
- s_cat(notexq, a__2, i__3, &c__2, (ftnlen)79);
-#line 3154 ""
- ++(*lnote);
-#line 3155 ""
- }
-#line 3156 ""
- }
-#line 3157 ""
- return 0;
-} /* beamn1_ */
-
-/* Subroutine */ int beamstrt_(char *notexq, integer *lnote, integer *nornb,
- integer *ihornb, real *space, real *squez, integer *ib, ftnlen
- notexq_len)
-{
- /* System generated locals */
- address a__1[4], a__2[2], a__3[3], a__4[5];
- integer i__1[4], i__2[2], i__3[3], i__4, i__5, i__6, i__7[5];
- real r__1;
- char ch__1[1];
- icilist ici__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer i_nint(real *), pow_ii(integer *, integer *), i_sign(integer *,
- integer *), lbit_shift(integer, integer);
-
- /* Local variables */
- static logical addbrack;
- 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, isk, ipp,
- ivf, iup;
- static logical xto;
- 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;
- static real ymin, ybot;
- static integer levx;
- static real xnsk;
- extern integer ncmid_(integer *, integer *);
- static real ybeam;
- static integer ipmid, iflop;
- static real bmlev;
- static integer icrdx, multb, ltemp;
- static char noteq[8], tempq[79];
- extern integer levrn_(integer *, integer *, integer *, integer *, integer
- *);
- static char restq[40];
- static integer nlnum, lrest;
- extern /* Subroutine */ int notex_(char *, integer *, ftnlen);
- static integer isssb;
- static real zmult;
- extern /* Subroutine */ int ntrbbb_(integer *, char *, char *, integer *,
- char *, integer *, ftnlen, ftnlen, ftnlen);
- static integer multbb, lnoten;
- static real xnlmid;
- extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer
- *, ftnlen), setupb_(real *, integer *, real *, real *, integer *,
- real *, integer *);
- static integer mprint;
- static real xslope;
- static integer nvtrem;
- extern /* Subroutine */ int putxtn_(integer *, integer *, integer *,
- integer *, real *, real *, integer *, integer *, real *, real *,
- integer *, integer *, char *, integer *, integer *, real *,
- integer *, integer *, integer *, logical *, ftnlen);
- static integer nindent, maxdrop, numinit;
-
- /* Fortran I/O blocks */
- static icilist io___223 = { 0, noteq, 0, "(i1)", 8, 1 };
- static icilist io___225 = { 0, noteq, 0, "(a1,i2,a1)", 8, 1 };
- static icilist io___226 = { 0, noteq, 0, "(i1,a1)", 8, 1 };
- static icilist io___227 = { 0, noteq, 0, "(a1,i2,a2)", 8, 1 };
- static icilist io___243 = { 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 3209 ""
- /* Parameter adjustments */
-#line 3209 ""
- --squez;
-#line 3209 ""
- --space;
-#line 3209 ""
- ihornb -= 25;
-#line 3209 ""
- --nornb;
-#line 3209 ""
-
-#line 3209 ""
- /* Function Body */
-#line 3209 ""
- writebrests = TRUE_;
-#line 3210 ""
- ibc = all_1.ibmcnt[commvl_1.ivx - 1];
-#line 3211 ""
- ipb1 = all_1.ibm1[commvl_1.ivx + ibc * 24 - 25];
-#line 3212 ""
- multb = (15 & all_1.mult[commvl_1.ivx + ipb1 * 24 - 25]) - 8;
-#line 3213 ""
- ip = all_1.ipo[all_1.jn - 1];
-#line 3214 ""
- *lnote = 0;
-#line 3215 ""
- nvtrem = 0;
-
-/* 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. Also */
-/* gets islope(ivx), transferred in common. */
-
-/* Vertical adjustment beams for tremolo */
-#line 3221 ""
- if (strtmid_1.ixrest[commvl_1.ivx - 1] == 0 && ! bit_test(all_1.nacc[
- commvl_1.ivx + ip * 24 - 25],21)) {
-#line 3221 ""
- 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 3221 ""
- }
-
-/* Will always come past here after entering beamstrt for 2-note tremolo, and */
-/* slope will have been computed, even for unbeamed. So start the indented */
-/* beams here. The indented tremolo bars will be added to the notexq output */
-/* string, under the tacet assumption that there is no horizontal shift */
-/* enacted by the action just before and after the call to beamstrt. */
-
-#line 3230 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ipb1 * 24 - 25],2) && igetbits_(&
- all_1.irest[commvl_1.ivx + ipb1 * 24 - 25], &c__2, &c__5) > 0) {
-#line 3232 ""
- nindent = igetbits_(&all_1.irest[commvl_1.ivx + ipb1 * 24 - 25], &
- c__2, &c__5);
-/* Writing concatenation */
-#line 3233 ""
- i__1[0] = 1, a__1[0] = all_1.sq;
-#line 3233 ""
- i__1[1] = 12, a__1[1] = "roffset{.7}{";
-#line 3233 ""
- i__1[2] = 1, a__1[2] = all_1.sq;
-#line 3233 ""
- i__1[3] = 2, a__1[3] = "ib";
-#line 3233 ""
- s_cat(tempq, a__1, i__1, &c__4, (ftnlen)79);
-#line 3234 ""
- ltemp = 16;
-#line 3235 ""
- if (nindent == 2) {
-/* Writing concatenation */
-#line 3236 ""
- i__2[0] = 16, a__2[0] = tempq;
-#line 3236 ""
- i__2[1] = 1, a__2[1] = "b";
-#line 3236 ""
- s_cat(tempq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3237 ""
- ltemp = 17;
-#line 3238 ""
- } else if (nindent == 3) {
-/* Writing concatenation */
-#line 3239 ""
- i__2[0] = 16, a__2[0] = tempq;
-#line 3239 ""
- i__2[1] = 2, a__2[1] = "bb";
-#line 3239 ""
- s_cat(tempq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3240 ""
- ltemp = 18;
-#line 3241 ""
- }
-
-/* Use beam # 0 for indented beams */
-
-/* Writing concatenation */
-#line 3245 ""
- i__3[0] = ltemp, a__3[0] = tempq;
-#line 3245 ""
- i__3[1] = 1, a__3[1] = all_1.ulq + (commvl_1.ivx + ibc * 24 - 25);
-#line 3245 ""
- i__3[2] = 1, a__3[2] = "0";
-#line 3245 ""
- s_cat(tempq, a__3, i__3, &c__3, (ftnlen)79);
-#line 3246 ""
- ltemp += 2;
-
-/* Get adjustment to nolev1 for main beam based on nindent */
-
-#line 3250 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u')
- {
-#line 3251 ""
- nvtrem = nindent - 1;
-#line 3252 ""
- } else {
-#line 3253 ""
- nvtrem = 1 - nindent;
-#line 3254 ""
- }
-
-/* Get numerical position of initiation for main beam. Will adjust height at */
-/* closing to account for nindent */
-
-#line 3259 ""
- numinit = comxtup_1.nolev1[commvl_1.ivx - 1] - ncmid_(&all_1.iv, &
- ipb1) + 4;
-
-/* Get forced beam height tweak, apply here for indented beams */
-
-#line 3263 ""
- iadj = igetbits_(&all_1.ipl[commvl_1.ivx + ipb1 * 24 - 25], &c__6, &
- c__11) - 30;
-#line 3264 ""
- if (iadj != -30) {
-#line 3264 ""
- numinit += iadj;
-#line 3264 ""
- }
-#line 3265 ""
- if (numinit >= 0 && numinit <= 9) {
-#line 3266 ""
- s_wsfi(&io___223);
-#line 3266 ""
- do_fio(&c__1, (char *)&numinit, (ftnlen)sizeof(integer));
-#line 3266 ""
- e_wsfi();
-#line 3267 ""
- lnoten = 1;
-#line 3268 ""
- } else {
-#line 3269 ""
- s_wsfi(&io___225);
-#line 3269 ""
- do_fio(&c__1, "{", (ftnlen)1);
-#line 3269 ""
- do_fio(&c__1, (char *)&numinit, (ftnlen)sizeof(integer));
-#line 3269 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 3269 ""
- e_wsfi();
-#line 3270 ""
- lnoten = 4;
-#line 3271 ""
- }
-/* Writing concatenation */
-#line 3272 ""
- i__2[0] = ltemp, a__2[0] = tempq;
-#line 3272 ""
- i__2[1] = lnoten, a__2[1] = noteq;
-#line 3272 ""
- s_cat(tempq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3273 ""
- ltemp += lnoten;
-
-/* Now do the slope. */
-/* 170408 Baseline is in islope(ivx). Apply slope tweak if present. */
-
-#line 3278 ""
- numinit = comxtup_1.islope[commvl_1.ivx - 1];
-#line 3279 ""
- iadj = igetbits_(&all_1.ipl[commvl_1.ivx + ipb1 * 24 - 25], &c__6, &
- c__17) - 30;
-#line 3280 ""
- if (iadj != -30) {
-#line 3280 ""
- numinit += iadj;
-#line 3280 ""
- }
-#line 3281 ""
- if (numinit >= 0 && numinit <= 9) {
-#line 3282 ""
- s_wsfi(&io___226);
-#line 3282 ""
- do_fio(&c__1, (char *)&numinit, (ftnlen)sizeof(integer));
-#line 3282 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 3282 ""
- e_wsfi();
-#line 3283 ""
- lnoten = 2;
-#line 3284 ""
- } else {
-#line 3285 ""
- s_wsfi(&io___227);
-#line 3285 ""
- do_fio(&c__1, "{", (ftnlen)1);
-#line 3285 ""
- do_fio(&c__1, (char *)&numinit, (ftnlen)sizeof(integer));
-#line 3285 ""
- do_fio(&c__1, "}}", (ftnlen)2);
-#line 3285 ""
- e_wsfi();
-#line 3286 ""
- lnoten = 5;
-#line 3287 ""
- }
-/* Writing concatenation */
-#line 3288 ""
- i__2[0] = ltemp, a__2[0] = tempq;
-#line 3288 ""
- i__2[1] = lnoten, a__2[1] = noteq;
-#line 3288 ""
- s_cat(tempq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3289 ""
- ltemp += lnoten;
-#line 3290 ""
- s_copy(notexq, tempq, (ftnlen)79, (ftnlen)79);
-#line 3291 ""
- *lnote = ltemp;
-#line 3292 ""
- }
-#line 3293 ""
- 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 3298 ""
- ++comxtup_1.issb[commvl_1.ivx - 1];
-#line 3299 ""
- comxtup_1.nolev1[commvl_1.ivx - 1] = comxtup_1.lev1ssb[commvl_1.ivx +
- comxtup_1.issb[commvl_1.ivx - 1] * 24 - 25];
-#line 3300 ""
- }
-
-/* Move this up to before indented beams for tremolo */
-/* lnote = 0 */
-#line 3304 ""
- comdraw_1.drawbm[commvl_1.ivx - 1] = TRUE_;
-#line 3305 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ipb1 * 24 - 25],28) &&
- strtmid_1.ixrest[commvl_1.ivx - 1] != 2) {
-#line 3306 ""
- comxtup_1.vxtup[commvl_1.ivx - 1] = TRUE_;
-#line 3307 ""
- ++comxtup_1.nxtinbm[commvl_1.ivx - 1];
-
-/* irest(28)=>Xtup starts on this note. Set up for xtuplet. */
-/* Number goes on notehead side at middle note (or gap) of xtup, unless that */
-/* puts it in staff, then it flops to stem (or beam) side. */
-/* __ __ */
-/* | | | O | | */
-/* O | | O */
-/* |___| O |__| | */
-
-/* iud -1 -1 1 1 ...stem direction */
-/* iflop 0 1 -1 0 ...direction of flop */
-/* iup -1 1 -1 1 ...direction of number and bracket */
-
-#line 3321 ""
- iud = 1;
-#line 3322 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u')
- {
-#line 3322 ""
- iud = -1;
-#line 3322 ""
- }
-
-/* Get ip#, note level of middle note (or gap) in xtup */
-
-#line 3326 ""
- 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 3331 ""
-L14:
-#line 3332 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ipmid * 24 - 25],0)) {
-#line 3333 ""
- ++ipmid;
-#line 3334 ""
- goto L14;
-#line 3335 ""
- }
-#line 3336 ""
- i__4 = ncmid_(&all_1.iv, &ipmid);
-#line 3336 ""
- i__5 = (15 & all_1.mult[commvl_1.ivx + ipmid * 24 - 25]) - 8;
-#line 3336 ""
- xnlmid = (real) levrn_(&all_1.nolev[commvl_1.ivx + ipmid * 24 - 25], &
- all_1.irest[commvl_1.ivx + ipmid * 24 - 25], &iud, &i__4, &
- i__5);
-#line 3338 ""
- if (comxtup_1.ntupv[commvl_1.ivx + comxtup_1.nxtinbm[commvl_1.ivx - 1]
- * 24 - 25] % 2 == 0) {
-#line 3338 ""
- i__5 = ipmid - 1;
-#line 3338 ""
- i__4 = ncmid_(&all_1.iv, &i__5);
-#line 3338 ""
- i__6 = (15 & all_1.mult[commvl_1.ivx + (ipmid - 1) * 24 - 25]) -
- 8;
-#line 3338 ""
- 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__4, &i__6)) / 2;
-#line 3338 ""
- }
-#line 3341 ""
- iflop = 0;
-#line 3342 ""
- if ((r__1 = xnlmid - ncmid_(&all_1.iv, &ipb1), dabs(r__1)) < 3.f) {
-#line 3342 ""
- iflop = -iud;
-#line 3342 ""
- }
-#line 3343 ""
- iup = iud + (iflop << 1);
-#line 3344 ""
- 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 3348 ""
- iup = -iup;
-#line 3349 ""
- iflop = 0;
-#line 3350 ""
- if (iud * iup < 0) {
-#line 3350 ""
- iflop = iup;
-#line 3350 ""
- }
-#line 3351 ""
- }
-
-/* Determine if a beam is to be drawn. */
-/* Had problem w/ half-note 2-note xtups always F, so add a test */
-
-#line 3356 ""
- if (igetbits_(&all_1.irest[commvl_1.ivx + ipb1 * 24 - 25], &c__2, &
- c__3) != 0) {
-#line 3357 ""
- comdraw_1.drawbm[commvl_1.ivx - 1] = TRUE_;
-#line 3358 ""
- goto L6;
-#line 3359 ""
- }
-#line 3360 ""
- i__4 = all_1.ibm2[commvl_1.ivx + ibc * 24 - 25];
-#line 3360 ""
- for (ipp = all_1.ibm1[commvl_1.ivx + ibc * 24 - 25]; ipp <= i__4;
- ++ipp) {
-#line 3361 ""
- if ((15 & all_1.mult[commvl_1.ivx + ipp * 24 - 25]) - 8 <= 0) {
-#line 3362 ""
- comdraw_1.drawbm[commvl_1.ivx - 1] = FALSE_;
-#line 3363 ""
- goto L6;
-#line 3364 ""
- }
-#line 3365 ""
-/* L5: */
-#line 3365 ""
- }
-#line 3366 ""
- 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 3367 ""
-L6:
-
-/* Are we using tuplet.tex? */
-
-#line 3371 ""
- usexnumt = comnvst_1.cstuplet && ! comdraw_1.drawbm[commvl_1.ivx - 1];
-
-/* Check for single note xtup 171217 */
-
-#line 3375 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ipb1 * 24 - 25],28) &&
- comipb_1.nnb == 1) {
-#line 3376 ""
- comdraw_1.drawbm[commvl_1.ivx - 1] = FALSE_;
-#line 3377 ""
- }
-
-/* Place xtup number if needed */
-
-#line 3381 ""
- if (! bit_test(all_1.islur[commvl_1.ivx + ipb1 * 24 - 25],31) ||
- multb <= 0) {
-#line 3382 ""
- mprint = igetbits_(&all_1.nacc[commvl_1.ivx + ip * 24 - 25], &
- c__5, &c__22);
-#line 3383 ""
- if (mprint == 0) {
-#line 3383 ""
- mprint = comxtup_1.mtupv[commvl_1.ivx + comxtup_1.nxtinbm[
- commvl_1.ivx - 1] * 24 - 25];
-#line 3383 ""
- }
-/* Stab in the dark! Note: tried setting unbeam flag islur18 but no go. */
-#line 3385 ""
- if (comipb_1.nnb == 1) {
-#line 3386 ""
- xnlmid = (real) comxtup_1.nolev1[commvl_1.ivx - 1];
-#line 3387 ""
- comxtup_1.islope[commvl_1.ivx - 1] = 0;
-
-/* Move up, outside number check block, so all 1-note xtups ar unbeamed */
-/* drawbm(ivx) = .false. */
-
-#line 3392 ""
- }
-#line 3393 ""
- i__4 = ncmid_(&all_1.iv, &ipb1);
-#line 3393 ""
- 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__4, &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], &all_1.mult[
- commvl_1.ivx + ipb1 * 24 - 25], &usexnumt, (ftnlen)79);
-#line 3397 ""
- }
-#line 3398 ""
- if (! comdraw_1.drawbm[commvl_1.ivx - 1]) {
-
-/* Xtuplet with no beam */
-
-#line 3402 ""
- 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 3408 ""
- r__1 = space[*ib] / squez[*ib];
-#line 3408 ""
- 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 3410 ""
- if (iup == 1) {
-#line 3411 ""
- if (*lnote > 0) {
-/* Writing concatenation */
-#line 3412 ""
- i__3[0] = *lnote, a__3[0] = notexq;
-#line 3412 ""
- i__3[1] = 1, a__3[1] = all_1.sq;
-#line 3412 ""
- i__3[2] = 5, a__3[2] = "ovbkt";
-#line 3412 ""
- s_cat(notexq, a__3, i__3, &c__3, (ftnlen)79);
-#line 3413 ""
- } else {
-/* Writing concatenation */
-#line 3414 ""
- i__2[0] = 1, a__2[0] = all_1.sq;
-#line 3414 ""
- i__2[1] = 5, a__2[1] = "ovbkt";
-#line 3414 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3415 ""
- }
-#line 3416 ""
- } else {
-#line 3417 ""
- if (*lnote > 0) {
-/* Writing concatenation */
-#line 3418 ""
- i__3[0] = *lnote, a__3[0] = notexq;
-#line 3418 ""
- i__3[1] = 1, a__3[1] = all_1.sq;
-#line 3418 ""
- i__3[2] = 5, a__3[2] = "unbkt";
-#line 3418 ""
- s_cat(notexq, a__3, i__3, &c__3, (ftnlen)79);
-#line 3419 ""
- } else {
-
-/* Introduced 12/5/98, req'd due to possible presence of in-line TeX */
-
-/* Writing concatenation */
-#line 3423 ""
- i__2[0] = 1, a__2[0] = all_1.sq;
-#line 3423 ""
- i__2[1] = 5, a__2[1] = "unbkt";
-#line 3423 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3424 ""
- }
-#line 3425 ""
- }
-#line 3426 ""
- *lnote += 6;
-#line 3427 ""
- if (all_1.iline == 1) {
-#line 3428 ""
- comipb_1.smed /= 1.f - comtop_1.fracindent;
-#line 3429 ""
- }
-#line 3430 ""
- xslope = comipb_1.smed * 1.8f * all_1.slfac;
-#line 3431 ""
- comxtup_1.islope[commvl_1.ivx - 1] = i_nint(&xslope);
-#line 3432 ""
- r__1 = comipb_1.smed * comxtup_1.eloff[commvl_1.ivx - 1];
-#line 3432 ""
- comxtup_1.nolev1[commvl_1.ivx - 1] = nlnum - i_nint(&r__1);
-#line 3433 ""
- if (comxtup_1.islope[commvl_1.ivx - 1] == 0) {
-#line 3433 ""
- --comxtup_1.nolev1[commvl_1.ivx - 1];
-#line 3433 ""
- }
-#line 3434 ""
- if (iup == 1) {
-#line 3434 ""
- comxtup_1.nolev1[commvl_1.ivx - 1] += 4;
-#line 3434 ""
- }
-#line 3435 ""
- levbracket = comxtup_1.nolev1[commvl_1.ivx - 1];
-#line 3436 ""
- if (iup == 1 && comnvst_1.cstuplet) {
-#line 3436 ""
- --levbracket;
-#line 3436 ""
- }
-#line 3437 ""
- i__4 = ncmid_(&all_1.iv, &ipb1);
-#line 3437 ""
- notefq_(noteq, &lnoten, &levbracket, &i__4, (ftnlen)8);
-#line 3438 ""
- if (lnoten == 1) {
-#line 3438 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 3438 ""
- }
-/* Writing concatenation */
-#line 3439 ""
- i__3[0] = *lnote, a__3[0] = notexq;
-#line 3439 ""
- i__3[1] = lnoten, a__3[1] = noteq;
-#line 3439 ""
- i__3[2] = 1, a__3[2] = "{";
-#line 3439 ""
- s_cat(notexq, a__3, i__3, &c__3, (ftnlen)79);
-#line 3440 ""
- *lnote = *lnote + lnoten + 1;
-#line 3441 ""
- if (xnsk < .995f) {
-#line 3442 ""
- i__4 = *lnote;
-#line 3442 ""
- ici__1.icierr = 0;
-#line 3442 ""
- ici__1.icirnum = 1;
-#line 3442 ""
- ici__1.icirlen = *lnote + 4 - i__4;
-#line 3442 ""
- ici__1.iciunit = notexq + i__4;
-#line 3442 ""
- ici__1.icifmt = "(i1,f3.2)";
-#line 3442 ""
- s_wsfi(&ici__1);
-#line 3442 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 3442 ""
- do_fio(&c__1, (char *)&xnsk, (ftnlen)sizeof(real));
-#line 3442 ""
- e_wsfi();
-#line 3443 ""
- *lnote += 4;
-#line 3444 ""
- } else if (xnsk < 9.995f) {
-#line 3445 ""
- i__4 = *lnote;
-#line 3445 ""
- ici__1.icierr = 0;
-#line 3445 ""
- ici__1.icirnum = 1;
-#line 3445 ""
- ici__1.icirlen = *lnote + 4 - i__4;
-#line 3445 ""
- ici__1.iciunit = notexq + i__4;
-#line 3445 ""
- ici__1.icifmt = "(f4.2)";
-#line 3445 ""
- s_wsfi(&ici__1);
-#line 3445 ""
- do_fio(&c__1, (char *)&xnsk, (ftnlen)sizeof(real));
-#line 3445 ""
- e_wsfi();
-#line 3446 ""
- *lnote += 4;
-#line 3447 ""
- } else {
-#line 3448 ""
- i__4 = *lnote;
-#line 3448 ""
- ici__1.icierr = 0;
-#line 3448 ""
- ici__1.icirnum = 1;
-#line 3448 ""
- ici__1.icirlen = *lnote + 5 - i__4;
-#line 3448 ""
- ici__1.iciunit = notexq + i__4;
-#line 3448 ""
- ici__1.icifmt = "(f5.2)";
-#line 3448 ""
- s_wsfi(&ici__1);
-#line 3448 ""
- do_fio(&c__1, (char *)&xnsk, (ftnlen)sizeof(real));
-#line 3448 ""
- e_wsfi();
-#line 3449 ""
- *lnote += 5;
-#line 3450 ""
- }
-/* Writing concatenation */
-#line 3451 ""
- i__2[0] = *lnote, a__2[0] = notexq;
-#line 3451 ""
- i__2[1] = 1, a__2[1] = "}";
-#line 3451 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3452 ""
- ++(*lnote);
-#line 3453 ""
- if (bit_test(all_1.mult[commvl_1.ivx + ipb1 * 24 - 25],4)) {
-
-/* Tweak slope of bracket */
-
-#line 3457 ""
- 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 3458 ""
- }
-#line 3459 ""
- if (comxtup_1.islope[commvl_1.ivx - 1] < 0 ||
- comxtup_1.islope[commvl_1.ivx - 1] >= 10) {
-/* Writing concatenation */
-#line 3460 ""
- i__2[0] = *lnote, a__2[0] = notexq;
-#line 3460 ""
- i__2[1] = 1, a__2[1] = "{";
-#line 3460 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3461 ""
- ++(*lnote);
-#line 3462 ""
- if (comxtup_1.islope[commvl_1.ivx - 1] < -9) {
-#line 3463 ""
- i__4 = *lnote;
-#line 3463 ""
- ici__1.icierr = 0;
-#line 3463 ""
- ici__1.icirnum = 1;
-#line 3463 ""
- ici__1.icirlen = *lnote + 3 - i__4;
-#line 3463 ""
- ici__1.iciunit = notexq + i__4;
-#line 3463 ""
- ici__1.icifmt = "(i3)";
-#line 3463 ""
- s_wsfi(&ici__1);
-#line 3463 ""
- do_fio(&c__1, (char *)&comxtup_1.islope[commvl_1.ivx
- - 1], (ftnlen)sizeof(integer));
-#line 3463 ""
- e_wsfi();
-#line 3464 ""
- *lnote += 3;
-#line 3465 ""
- } else {
-#line 3466 ""
- i__4 = *lnote;
-#line 3466 ""
- ici__1.icierr = 0;
-#line 3466 ""
- ici__1.icirnum = 1;
-#line 3466 ""
- ici__1.icirlen = *lnote + 2 - i__4;
-#line 3466 ""
- ici__1.iciunit = notexq + i__4;
-#line 3466 ""
- ici__1.icifmt = "(i2)";
-#line 3466 ""
- s_wsfi(&ici__1);
-#line 3466 ""
- do_fio(&c__1, (char *)&comxtup_1.islope[commvl_1.ivx
- - 1], (ftnlen)sizeof(integer));
-#line 3466 ""
- e_wsfi();
-#line 3467 ""
- *lnote += 2;
-#line 3468 ""
- }
-/* Writing concatenation */
-#line 3469 ""
- i__2[0] = *lnote, a__2[0] = notexq;
-#line 3469 ""
- i__2[1] = 1, a__2[1] = "}";
-#line 3469 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3470 ""
- ++(*lnote);
-#line 3471 ""
- } else {
-#line 3472 ""
- i__4 = *lnote;
-#line 3472 ""
- ici__1.icierr = 0;
-#line 3472 ""
- ici__1.icirnum = 1;
-#line 3472 ""
- ici__1.icirlen = *lnote + 1 - i__4;
-#line 3472 ""
- ici__1.iciunit = notexq + i__4;
-#line 3472 ""
- ici__1.icifmt = "(i1)";
-#line 3472 ""
- s_wsfi(&ici__1);
-#line 3472 ""
- do_fio(&c__1, (char *)&comxtup_1.islope[commvl_1.ivx - 1],
- (ftnlen)sizeof(integer));
-#line 3472 ""
- e_wsfi();
-#line 3473 ""
- ++(*lnote);
-#line 3474 ""
- }
-
-/* Done with bracket */
-
-#line 3478 ""
- }
-#line 3479 ""
- if (strtmid_1.ixrest[commvl_1.ivx - 1] == 1) {
-
-/* Put in the rest. Possible problem: Rest is a spacing char, but between */
-/* beamstrt and beamn1 some non-spacing chars. are inserted. */
-
-/* 130126 Deal with vertical shifts of rest starting xtuplet */
-
-#line 3486 ""
- lrest = 3;
-#line 3487 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],29)) {
-/* Writing concatenation */
-#line 3488 ""
- i__2[0] = 1, a__2[0] = all_1.sq;
-#line 3488 ""
- i__2[1] = 2, a__2[1] = "sk";
-#line 3488 ""
- s_cat(restq, a__2, i__2, &c__2, (ftnlen)40);
-/* if (multb .eq. 0) then */
-#line 3490 ""
- } else if (multb == 0) {
-/* Writing concatenation */
-#line 3491 ""
- i__2[0] = 1, a__2[0] = all_1.sq;
-#line 3491 ""
- i__2[1] = 2, a__2[1] = "qp";
-#line 3491 ""
- s_cat(restq, a__2, i__2, &c__2, (ftnlen)40);
-#line 3492 ""
- } else if (! comdraw_1.drawbm[commvl_1.ivx - 1] && multb == 1)
- {
-/* Writing concatenation */
-#line 3493 ""
- i__2[0] = 1, a__2[0] = all_1.sq;
-#line 3493 ""
- i__2[1] = 2, a__2[1] = "ds";
-#line 3493 ""
- s_cat(restq, a__2, i__2, &c__2, (ftnlen)40);
-#line 3494 ""
- } else if (! comdraw_1.drawbm[commvl_1.ivx - 1] && multb == 2)
- {
-/* Writing concatenation */
-#line 3495 ""
- i__2[0] = 1, a__2[0] = all_1.sq;
-#line 3495 ""
- i__2[1] = 2, a__2[1] = "qs";
-#line 3495 ""
- s_cat(restq, a__2, i__2, &c__2, (ftnlen)40);
-#line 3496 ""
- } else if (! comdraw_1.drawbm[commvl_1.ivx - 1] && multb == 3)
- {
-/* Writing concatenation */
-#line 3497 ""
- i__2[0] = 1, a__2[0] = all_1.sq;
-#line 3497 ""
- i__2[1] = 2, a__2[1] = "hs";
-#line 3497 ""
- s_cat(restq, a__2, i__2, &c__2, (ftnlen)40);
-#line 3498 ""
- } else {
-/* Writing concatenation */
-#line 3499 ""
- i__2[0] = 1, a__2[0] = all_1.sq;
-#line 3499 ""
- i__2[1] = 6, a__2[1] = "hpause";
-#line 3499 ""
- s_cat(restq, a__2, i__2, &c__2, (ftnlen)40);
-#line 3500 ""
- lrest = 7;
-#line 3501 ""
- }
-#line 3502 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + ipb1 * 24 - 25],18) &&
- bit_test(all_1.nacc[commvl_1.ivx + ipb1 * 24 - 25],19)
- ) {
-
-/* VERY special case of rest at start of F-tuplet, needs dot */
-
-/* Writing concatenation */
-#line 3507 ""
- i__3[0] = 1, a__3[0] = all_1.sq;
-#line 3507 ""
- i__3[1] = 3, a__3[1] = "pt4";
-#line 3507 ""
- i__3[2] = lrest, a__3[2] = restq;
-#line 3507 ""
- s_cat(restq, a__3, i__3, &c__3, (ftnlen)40);
-#line 3508 ""
- lrest += 4;
-#line 3509 ""
- }
-#line 3511 ""
- nole = (all_1.nolev[commvl_1.ivx + ip * 24 - 25] + 20) % 100
- - 20;
-/* if (nole .eq. 0) then */
-#line 3513 ""
- if (nole == 0 || bit_test(all_1.islur[commvl_1.ivx + ip * 24
- - 25],29)) {
-
-/* Rest blank or is not raised */
-
-/* Writing concatenation */
-#line 3517 ""
- i__2[0] = *lnote, a__2[0] = notexq;
-#line 3517 ""
- i__2[1] = 40, a__2[1] = restq;
-#line 3517 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3518 ""
- *lnote += lrest;
-#line 3519 ""
- } else {
-#line 3520 ""
- if (abs(nole) < 10) {
-#line 3521 ""
- i__4 = abs(nole) + 48;
-#line 3521 ""
- chax_(ch__1, (ftnlen)1, &i__4);
-#line 3521 ""
- s_copy(tempq, ch__1, (ftnlen)79, (ftnlen)1);
-#line 3522 ""
- ltemp = 1;
-#line 3523 ""
- } else {
-#line 3524 ""
- s_wsfi(&io___243);
-#line 3524 ""
- i__4 = abs(nole);
-#line 3524 ""
- do_fio(&c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 3524 ""
- e_wsfi();
-#line 3525 ""
- ltemp = 2;
-#line 3526 ""
- }
-#line 3527 ""
- if (nole > 0) {
-/* Writing concatenation */
-#line 3528 ""
- i__7[0] = 1, a__4[0] = all_1.sq;
-#line 3528 ""
- i__7[1] = 5, a__4[1] = "raise";
-#line 3528 ""
- i__7[2] = ltemp, a__4[2] = tempq;
-#line 3528 ""
- i__7[3] = 1, a__4[3] = all_1.sq;
-#line 3528 ""
- i__7[4] = 9, a__4[4] = "internote";
-#line 3528 ""
- s_cat(tempq, a__4, i__7, &c__5, (ftnlen)79);
-#line 3529 ""
- } else {
-/* Writing concatenation */
-#line 3530 ""
- i__7[0] = 1, a__4[0] = all_1.sq;
-#line 3530 ""
- i__7[1] = 5, a__4[1] = "lower";
-#line 3530 ""
- i__7[2] = ltemp, a__4[2] = tempq;
-#line 3530 ""
- i__7[3] = 1, a__4[3] = all_1.sq;
-#line 3530 ""
- i__7[4] = 9, a__4[4] = "internote";
-#line 3530 ""
- s_cat(tempq, a__4, i__7, &c__5, (ftnlen)79);
-#line 3531 ""
- }
-#line 3532 ""
- ltemp += 16;
-/* Writing concatenation */
-#line 3533 ""
- i__3[0] = *lnote, a__3[0] = notexq;
-#line 3533 ""
- i__3[1] = ltemp, a__3[1] = tempq;
-#line 3533 ""
- i__3[2] = lrest, a__3[2] = restq;
-#line 3533 ""
- s_cat(notexq, a__3, i__3, &c__3, (ftnlen)79);
-#line 3534 ""
- *lnote = *lnote + ltemp + lrest;
-#line 3535 ""
- }
-
-/* 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 3540 ""
- strtmid_1.ixrest[commvl_1.ivx - 1] = 0;
-#line 3541 ""
- }
-#line 3542 ""
- return 0;
-#line 3543 ""
- }
-
-/* End if block for non-beamed xtup start...note we returned */
-
-#line 3547 ""
- 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 3553 ""
- 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 3554 ""
- ++xjbeambrests_1.nbrests;
-#line 3555 ""
- writebrests = FALSE_;
-#line 3556 ""
- } else {
-#line 3557 ""
- i__4 = 4 - multb;
-#line 3557 ""
- all_1.nodur[commvl_1.ivx + ipb1 * 24 - 25] = pow_ii(&c__2, &
- i__4);
-#line 3558 ""
- notex_(tempq, &ltemp, (ftnlen)79);
-#line 3559 ""
- if (*lnote > 0) {
-/* Writing concatenation */
-#line 3560 ""
- i__2[0] = *lnote, a__2[0] = notexq;
-#line 3560 ""
- i__2[1] = ltemp, a__2[1] = tempq;
-#line 3560 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3561 ""
- } else {
-#line 3562 ""
- s_copy(notexq, tempq, (ftnlen)79, ltemp);
-#line 3563 ""
- }
-#line 3564 ""
- *lnote += ltemp;
-#line 3565 ""
- }
-
-/* Re-zero just in case! */
-
-#line 3569 ""
- all_1.nodur[commvl_1.ivx + ipb1 * 24 - 25] = 0;
-#line 3570 ""
- ++all_1.ibm1[commvl_1.ivx + ibc * 24 - 25];
-
-/* See if next note is a non-rest */
-
-#line 3574 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + (ipb1 + 1) * 24 - 25],0)
- ) {
-#line 3575 ""
- strtmid_1.ixrest[commvl_1.ivx - 1] = 2;
-#line 3576 ""
- } else {
-
-/* Suppress reprinting xtup number next time through beamstrt */
-
-#line 3580 ""
- 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 3584 ""
- all_1.irest[commvl_1.ivx + (ipb1 + 1) * 24 - 25] = bit_set(
- all_1.irest[commvl_1.ivx + (ipb1 + 1) * 24 - 25],28);
-#line 3585 ""
- }
-#line 3586 ""
- return 0;
-#line 3587 ""
- }
-#line 3588 ""
- }
-
-/* Just ended if block for xtups */
-
-#line 3592 ""
- 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 3596 ""
- strtmid_1.ixrest[commvl_1.ivx - 1] = 4;
-#line 3597 ""
- return 0;
-#line 3598 ""
- }
-#line 3599 ""
- 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 3603 ""
- iadj = igetbits_(&all_1.ipl[commvl_1.ivx + ipb1 * 24 - 25], &c__6, &
- c__11) - 30;
-#line 3604 ""
- if (iadj != -30) {
-#line 3605 ""
- comxtup_1.nolev1[commvl_1.ivx - 1] += iadj;
-#line 3606 ""
- i__4 = comxtup_1.nssb[commvl_1.ivx - 1];
-#line 3606 ""
- for (isssb = 1; isssb <= i__4; ++isssb) {
-#line 3607 ""
- comxtup_1.lev1ssb[commvl_1.ivx + isssb * 24 - 25] += iadj;
-#line 3608 ""
-/* L2: */
-#line 3608 ""
- }
-#line 3609 ""
- }
-#line 3610 ""
- iadj = igetbits_(&all_1.ipl[commvl_1.ivx + ipb1 * 24 - 25], &c__6, &
- c__17) - 30;
-#line 3611 ""
- if (iadj != -30) {
-#line 3612 ""
- comxtup_1.islope[commvl_1.ivx - 1] += iadj;
-#line 3613 ""
- if ((i__4 = comxtup_1.islope[commvl_1.ivx - 1], abs(i__4)) > 9) {
-#line 3613 ""
- comxtup_1.islope[commvl_1.ivx - 1] = i_sign(&c__9, &
- comxtup_1.islope[commvl_1.ivx - 1]);
-#line 3613 ""
- }
-#line 3614 ""
- if (comxtup_1.nssb[commvl_1.ivx - 1] > 0) {
-
-/* Cycle thru non-rest notes in SSBG, looking for bmstrts. */
-
-#line 3618 ""
- isssb = 0;
-#line 3619 ""
- i__4 = comipb_1.nnb;
-#line 3619 ""
- for (inb = 2; inb <= i__4; ++inb) {
-#line 3620 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + comipb_1.ipb[inb -
- 1] * 24 - 25],21)) {
-
-/* Beam segment start. New start level */
-#line 3623 ""
- ++isssb;
-#line 3624 ""
- 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 3626 ""
- }
-#line 3627 ""
-/* L4: */
-#line 3627 ""
- }
-#line 3628 ""
- }
-#line 3629 ""
- }
-#line 3630 ""
- }
-#line 3631 ""
- iadj = igetbits_(&all_1.islur[commvl_1.ivx + ipb1 * 24 - 25], &c__2, &
- c__27);
-#line 3632 ""
- addbrack = FALSE_;
-#line 3633 ""
- 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 3638 ""
- 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 3640 ""
- if (*lnote == 0) {
-/* Writing concatenation */
-#line 3641 ""
- i__2[0] = 1, a__2[0] = all_1.sq;
-#line 3641 ""
- i__2[1] = 5, a__2[1] = "loff{";
-#line 3641 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3642 ""
- } else {
-/* Writing concatenation */
-#line 3643 ""
- i__3[0] = *lnote, a__3[0] = notexq;
-#line 3643 ""
- i__3[1] = 1, a__3[1] = all_1.sq;
-#line 3643 ""
- i__3[2] = 5, a__3[2] = "loff{";
-#line 3643 ""
- s_cat(notexq, a__3, i__3, &c__3, (ftnlen)79);
-#line 3644 ""
- }
-#line 3645 ""
- *lnote += 6;
-#line 3646 ""
- addbrack = TRUE_;
-#line 3647 ""
- } 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 3649 ""
- if (*lnote == 0) {
-/* Writing concatenation */
-#line 3650 ""
- i__2[0] = 1, a__2[0] = all_1.sq;
-#line 3650 ""
- i__2[1] = 5, a__2[1] = "roff{";
-#line 3650 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3651 ""
- } else {
-/* Writing concatenation */
-#line 3652 ""
- i__3[0] = *lnote, a__3[0] = notexq;
-#line 3652 ""
- i__3[1] = 1, a__3[1] = all_1.sq;
-#line 3652 ""
- i__3[2] = 5, a__3[2] = "roff{";
-#line 3652 ""
- s_cat(notexq, a__3, i__3, &c__3, (ftnlen)79);
-#line 3653 ""
- }
-#line 3654 ""
- *lnote += 6;
-#line 3655 ""
- addbrack = TRUE_;
-#line 3656 ""
- }
-
-/* Check end level for possible flipping in forced beam. Have to do it */
-/* here since with multiple voices, xelsk will not be preserved. */
-
-#line 3661 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25] == 'u') {
-#line 3662 ""
- 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 3663 ""
- 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 3664 ""
- } else if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25] == 'l') {
-#line 3665 ""
- 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 3666 ""
- 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 3667 ""
- }
-#line 3668 ""
- }
-#line 3669 ""
- multbb = multb + iadj;
-
-/* Tremolo starting? */
-
-#line 3673 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ipb1 * 24 - 25],2)) {
-#line 3673 ""
- multbb = igetbits_(&all_1.irest[commvl_1.ivx + ipb1 * 24 - 25], &c__2,
- &c__3);
-#line 3673 ""
- }
-#line 3675 ""
- ntrbbb_(&multbb, "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 3680 ""
- if (strtmid_1.ixrest[commvl_1.ivx - 1] == 2) {
-#line 3680 ""
- r__1 = comxtup_1.nolev1[commvl_1.ivx - 1] + comxtup_1.xelsk[0] *
- comxtup_1.islope[commvl_1.ivx - 1] / all_1.slfac;
-#line 3680 ""
- comxtup_1.nolev1[commvl_1.ivx - 1] = i_nint(&r__1);
-#line 3680 ""
- }
-
-/* Add adjustment nvtrem to main beam to account for tremolo indented beams */
-
-#line 3685 ""
- i__4 = comxtup_1.nolev1[commvl_1.ivx - 1] + nvtrem;
-#line 3685 ""
- i__5 = ncmid_(&all_1.iv, &ipb1);
-#line 3685 ""
- notefq_(noteq, &lnoten, &i__4, &i__5, (ftnlen)8);
-#line 3686 ""
- if (comxtup_1.islope[commvl_1.ivx - 1] < 0) {
-/* Writing concatenation */
-#line 3687 ""
- i__3[0] = *lnote, a__3[0] = notexq;
-#line 3687 ""
- i__3[1] = lnoten, a__3[1] = noteq;
-#line 3687 ""
- i__3[2] = 1, a__3[2] = "{";
-#line 3687 ""
- s_cat(notexq, a__3, i__3, &c__3, (ftnlen)79);
-#line 3688 ""
- *lnote = *lnote + 4 + lnoten;
-#line 3689 ""
- i__4 = *lnote - 3;
-#line 3689 ""
- ici__1.icierr = 0;
-#line 3689 ""
- ici__1.icirnum = 1;
-#line 3689 ""
- ici__1.icirlen = *lnote - i__4;
-#line 3689 ""
- ici__1.iciunit = notexq + i__4;
-#line 3689 ""
- ici__1.icifmt = "(i2,a1)";
-#line 3689 ""
- s_wsfi(&ici__1);
-#line 3689 ""
- do_fio(&c__1, (char *)&comxtup_1.islope[commvl_1.ivx - 1], (ftnlen)
- sizeof(integer));
-#line 3689 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 3689 ""
- e_wsfi();
-#line 3690 ""
- } else {
-/* Writing concatenation */
-#line 3691 ""
- i__2[0] = *lnote, a__2[0] = notexq;
-#line 3691 ""
- i__2[1] = lnoten, a__2[1] = noteq;
-#line 3691 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3692 ""
- *lnote = *lnote + 1 + lnoten;
-#line 3693 ""
- ici__1.icierr = 0;
-#line 3693 ""
- ici__1.icirnum = 1;
-#line 3693 ""
- ici__1.icirlen = 1;
-#line 3693 ""
- ici__1.iciunit = notexq + (*lnote - 1);
-#line 3693 ""
- ici__1.icifmt = "(i1)";
-#line 3693 ""
- s_wsfi(&ici__1);
-#line 3693 ""
- do_fio(&c__1, (char *)&comxtup_1.islope[commvl_1.ivx - 1], (ftnlen)
- sizeof(integer));
-#line 3693 ""
- e_wsfi();
-#line 3694 ""
- }
-
-/* Check for beam-thk fine-tuning */
-
-#line 3698 ""
- if (iadj > 0) {
-#line 3699 ""
- i__4 = multb + 1;
-#line 3699 ""
- for (imp = multb + iadj; imp >= i__4; --imp) {
-#line 3700 ""
- ntrbbb_(&imp, "t", all_1.ulq + (commvl_1.ivx + ibc * 24 - 25), &
- commvl_1.ivx, notexq, lnote, (ftnlen)1, (ftnlen)1, (
- ftnlen)79);
-#line 3701 ""
-/* L1: */
-#line 3701 ""
- }
-#line 3702 ""
- }
-
-/* If we shifted, must close with right bracket */
-
-#line 3706 ""
- if (addbrack) {
-/* Writing concatenation */
-#line 3707 ""
- i__2[0] = *lnote, a__2[0] = notexq;
-#line 3707 ""
- i__2[1] = 1, a__2[1] = "}";
-#line 3707 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 3708 ""
- ++(*lnote);
-#line 3709 ""
- }
-
-/* 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 3715 ""
- if (xjbeambrests_1.nbrests > 0 && writebrests) {
-#line 3716 ""
- i__4 = xjbeambrests_1.nbrests;
-#line 3716 ""
- for (isk = 1; isk <= i__4; ++isk) {
-/* Writing concatenation */
-#line 3717 ""
- i__3[0] = *lnote, a__3[0] = notexq;
-#line 3717 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 3717 ""
- i__3[1] = 1, a__3[1] = ch__1;
-#line 3717 ""
- i__3[2] = 2, a__3[2] = "sk";
-#line 3717 ""
- s_cat(notexq, a__3, i__3, &c__3, (ftnlen)79);
-#line 3718 ""
- *lnote += 3;
-#line 3719 ""
-/* L7: */
-#line 3719 ""
- }
-#line 3720 ""
- xjbeambrests_1.nbrests = 0;
-#line 3721 ""
- }
-
-/* Get 'floor' zmin for figures */
-/* Note: Will not come thru here on 1st note of unbeamed xtup, so figure height */
-/* won't be adjusted. If anyone ever needs that, need to duplicate this */
-/* functionality up above, before exiting. */
-
-#line 3728 ""
- if (all_1.figbass && (commvl_1.ivx == 1 || commvl_1.ivx ==
- comfig_1.ivxfig2)) {
-#line 3729 ""
- if (commvl_1.ivx == 1) {
-#line 3730 ""
- ivf = 1;
-#line 3731 ""
- } else {
-#line 3732 ""
- ivf = comfig_1.ivxfig2;
-#line 3733 ""
- }
-#line 3734 ""
- zmult = (multb - 1) * 1.2f;
-#line 3735 ""
- ymin = 100.f;
-#line 3736 ""
- i__4 = comipb_1.nnb;
-#line 3736 ""
- for (inb = 1; inb <= i__4; ++inb) {
-#line 3737 ""
- if (all_1.isfig[ivf + (comipb_1.ipb[inb - 1] << 1) - 3]) {
-#line 3738 ""
- if (*(unsigned char *)&all_1.ulq[all_1.iv + ibc * 24 - 25] ==
- 'u') {
-#line 3739 ""
- ybot = (real) all_1.nolev[all_1.iv + comipb_1.ipb[inb - 1]
- * 24 - 25];
-#line 3740 ""
- } else {
-#line 3741 ""
- 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 3743 ""
- }
-#line 3744 ""
- ymin = dmin(ymin,ybot);
-#line 3745 ""
- }
-#line 3746 ""
-/* L3: */
-#line 3746 ""
- }
-#line 3747 ""
- maxdrop = ncmid_(&all_1.iv, &ipb1) - 4 - ymin + 5.01f;
-/* Computing MAX */
-#line 3748 ""
- i__4 = all_1.ifigdr[ivf + (all_1.iline << 1) - 3];
-#line 3748 ""
- all_1.ifigdr[ivf + (all_1.iline << 1) - 3] = max(i__4,maxdrop);
-#line 3749 ""
- }
-
-/* Compute ornament levels if needed */
-
-#line 3753 ""
- nomornlev = ncmid_(&all_1.iv, &ipb1) + 5;
-#line 3754 ""
- iorn = 0;
-#line 3755 ""
- i__4 = comipb_1.nnb;
-#line 3755 ""
- for (inb = 1; inb <= i__4; ++inb) {
-#line 3756 ""
- ip = comipb_1.ipb[inb - 1];
-#line 3757 ""
- if (! bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],23)) {
-#line 3757 ""
- goto L8;
-#line 3757 ""
- }
-#line 3758 ""
- 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 3762 ""
- ++iorn;
-#line 3763 ""
- 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 3765 ""
- r__1 = ybeam - 3.f;
-#line 3765 ""
- i__5 = i_nint(&r__1), i__6 = nomornlev - 10;
-#line 3765 ""
- ihornb[commvl_1.ivx + iorn * 24] = min(i__5,i__6);
-#line 3766 ""
- } else if (! bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10)) {
-
-/* Bits 0-13: (stmgx+Tupf._) , 14: Down fermata, was F */
-/* 15: Trill w/o "tr", was U , 16-18 Editorial s,f,n , 19-21 TBD */
-
-/* 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 3774 ""
- 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 3776 ""
- ++iorn;
-#line 3777 ""
- all_1.iornq[commvl_1.ivx + ip * 24 - 1] = bit_set(all_1.iornq[
- commvl_1.ivx + ip * 24 - 1],22);
-#line 3778 ""
- 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 3780 ""
- r__1 = ybeam + 3.f;
-#line 3780 ""
- i__5 = i_nint(&r__1);
-#line 3780 ""
- ihornb[commvl_1.ivx + iorn * 24] = max(i__5,nomornlev);
-#line 3781 ""
- }
-#line 3782 ""
- } 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 3787 ""
- i__5 = comtrill_1.ncrd;
-#line 3787 ""
- for (comtrill_1.icrd1 = 1; comtrill_1.icrd1 <= i__5;
- ++comtrill_1.icrd1) {
-#line 3788 ""
- 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 3788 ""
- goto L11;
-#line 3788 ""
- }
-#line 3790 ""
-/* L10: */
-#line 3790 ""
- }
-#line 3791 ""
-L11:
-
-/* Find outermost note, min or max depending on beam direction ulq. xto is true */
-/* if there's an ornament on that note. Expand orn list to include ._, since if */
-/* on extreme chord note in beam, will move. */
-/* So ornaments are all except 0,4,13 (,g,) */
-
-#line 3798 ""
- levx = all_1.nolev[commvl_1.ivx + ip * 24 - 25];
-#line 3799 ""
- xto = (all_1.iornq[commvl_1.ivx + comipb_1.ipb[inb - 1] * 24 - 1]
- & 4186094) > 0;
-#line 3800 ""
- icrdx = 0;
-#line 3801 ""
- i__5 = comtrill_1.ncrd;
-#line 3801 ""
- for (icrd = comtrill_1.icrd1; icrd <= i__5; ++icrd) {
-#line 3802 ""
- if ((255 & comtrill_1.icrdat[icrd - 1]) != ip || (15 &
- lbit_shift(comtrill_1.icrdat[icrd - 1], (ftnlen)-8))
- != commvl_1.ivx) {
-#line 3802 ""
- goto L13;
-#line 3802 ""
- }
-#line 3804 ""
- levc = 127 & lbit_shift(comtrill_1.icrdat[icrd - 1], (ftnlen)
- -12);
-#line 3805 ""
- 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 3807 ""
- levx = levc;
-#line 3808 ""
- icrdx = icrd;
-#line 3809 ""
- xto = (comtrill_1.icrdorn[icrd - 1] & 4186094) > 0;
-#line 3810 ""
- }
-#line 3811 ""
-/* L12: */
-#line 3811 ""
- }
-#line 3812 ""
-L13:
-
-/* If there's orn on extreme note, do stuff */
-
-#line 3816 ""
- if (xto) {
-#line 3817 ""
- ++iorn;
-#line 3818 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25]
- == 'u') {
-#line 3819 ""
- 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 3821 ""
- r__1 = ybeam + 3.f;
-#line 3821 ""
- i__5 = i_nint(&r__1);
-#line 3821 ""
- ihornb[commvl_1.ivx + iorn * 24] = max(i__5,nomornlev);
-#line 3822 ""
- } else {
-#line 3823 ""
- 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 3825 ""
- r__1 = ybeam - 3.f;
-#line 3825 ""
- i__5 = i_nint(&r__1), i__6 = nomornlev - 10;
-#line 3825 ""
- ihornb[commvl_1.ivx + iorn * 24] = min(i__5,i__6);
-#line 3826 ""
- }
-#line 3827 ""
- if (icrdx == 0) {
-
-/* Affected ornament is on main note */
-
-#line 3831 ""
- all_1.iornq[commvl_1.ivx + ip * 24 - 1] = bit_set(
- all_1.iornq[commvl_1.ivx + ip * 24 - 1],22);
-#line 3832 ""
- } else {
-#line 3833 ""
- comtrill_1.icrdorn[icrdx - 1] = bit_set(
- comtrill_1.icrdorn[icrdx - 1],22);
-#line 3834 ""
- }
-#line 3835 ""
- }
-#line 3836 ""
- }
-#line 3837 ""
-L8:
-#line 3837 ""
- ;
-#line 3837 ""
- }
-
-/* Henceforth nornb will be a counter. */
-
-#line 3841 ""
- if (iorn > 0) {
-#line 3841 ""
- nornb[commvl_1.ivx] = 1;
-#line 3841 ""
- }
-#line 3842 ""
- if (strtmid_1.ixrest[commvl_1.ivx - 1] == 2) {
-#line 3842 ""
- strtmid_1.ixrest[commvl_1.ivx - 1] = 0;
-#line 3842 ""
- }
-#line 3843 ""
- return 0;
-} /* beamstrt_ */
-
-
-
-/* meter space (pts) = xb4mbr = musicsize*facmtr */
-
-
-/* From other */
-
-/* * 2.0,1.5,1.0,0.5,1.3,1.3,0.4,0.8,1.2,0.8,1.2,1.6, */
-
-/* Subroutine */ int catspace_(real *space, real *squez, integer *nnsk)
-{
- /* System generated locals */
- integer i__1;
- real r__1;
-
- /* Local variables */
- static integer iptr;
-
-/* * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks) */
-/* logical gotclef */
-#line 3927 ""
- i__1 = c1omnotes_1.nptr[c1omnotes_1.ibarcnt] - 1;
-#line 3927 ""
- for (iptr = c1omnotes_1.nptr[c1omnotes_1.ibarcnt - 1]; iptr <= i__1;
- ++iptr) {
-#line 3928 ""
- if ((r__1 = *space - c1omnotes_1.durb[iptr - 1], dabs(r__1)) <
- comtol_1.tol) {
-#line 3929 ""
- if ((r__1 = *squez - c1omnotes_1.sqzb[iptr - 1], dabs(r__1)) <
- comtol_1.tol) {
-
-/* Increment pre-existing entry */
-
-#line 3933 ""
- c1omnotes_1.nnpd[iptr - 1] += *nnsk;
-#line 3934 ""
- return 0;
-#line 3935 ""
- }
-#line 3936 ""
- }
-#line 3937 ""
-/* L16: */
-#line 3937 ""
- }
-
-/* Didn't find current duration & squez, so add a new entry. */
-/* No particular reason to keep in order, so add at the end. */
-
-#line 3942 ""
- c1omnotes_1.nnpd[c1omnotes_1.nptr[c1omnotes_1.ibarcnt] - 1] = *nnsk;
-#line 3943 ""
- c1omnotes_1.durb[c1omnotes_1.nptr[c1omnotes_1.ibarcnt] - 1] = *space;
-#line 3944 ""
- c1omnotes_1.sqzb[c1omnotes_1.nptr[c1omnotes_1.ibarcnt] - 1] = *squez;
-#line 3945 ""
- ++c1omnotes_1.nptr[c1omnotes_1.ibarcnt];
-#line 3946 ""
- return 0;
-} /* catspace_ */
-
-/* Character */ VOID chax_(char *ret_val, ftnlen ret_val_len, integer *n)
-{
-
-/* 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 3953 ""
- *(unsigned char *)ret_val = (char) (*n);
-#line 3954 ""
- return ;
-} /* chax_ */
-
-/* Subroutine */ int checkdyn_(char *lineq, integer *iccount, integer *ibar,
- ftnlen lineq_len)
-{
- /* System generated locals */
- address a__1[3];
- integer i__1, i__2[3], i__3;
- real r__1;
- char ch__1[4], ch__2[1];
- icilist ici__1;
-
- /* Builtin functions */
- integer s_cmp(char *, char *, ftnlen, ftnlen), i_indx(char *, char *,
- ftnlen, ftnlen);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_rsfi(icilist *), do_fio(integer *, char *, ftnlen), e_rsfi(void)
- , i_nint(real *);
-
- /* Local variables */
- static integer ipm, iend;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer idno;
- static real fnum;
- static char durq[1];
- extern /* Subroutine */ int stop1_(void), errmsg_(char *, integer *,
- integer *, char *, ftnlen, ftnlen);
- static integer istart;
- static logical txtdyn;
- extern /* Subroutine */ int readnum_(char *, integer *, char *, real *,
- ftnlen, ftnlen);
- static char dynsymq[4];
-
-#line 3961 ""
- txtdyn = FALSE_;
-
-/* On entry, iccount is on "D" */
-
-#line 3965 ""
- i__1 = *iccount;
-#line 3965 ""
- if (s_cmp(lineq + i__1, "\"", *iccount + 1 - i__1, (ftnlen)1) == 0) {
-
-/* Dynamic text */
-
-#line 3970 ""
- istart = *iccount + 2;
-/* 1 past 1st quote */
-#line 3971 ""
-L3:
-#line 3972 ""
- iend = i_indx(lineq + (istart - 1), "\"", 128 - (istart - 1), (ftnlen)
- 1);
-#line 3973 ""
- i__1 = istart + iend - 3;
-#line 3973 ""
- if (s_cmp(lineq + i__1, "\\", istart + iend - 2 - i__1, (ftnlen)1) ==
- 0) {
-#line 3974 ""
- istart = *iccount + iend + 2;
-#line 3975 ""
- goto L3;
-#line 3976 ""
- }
-#line 3977 ""
- if (iend == 0) {
-#line 3978 ""
- i__1 = *iccount + 1;
-#line 3978 ""
- errmsg_(lineq, &i__1, ibar, "Dynamic text must be terminated wit"\
- "h double quote!", (ftnlen)128, (ftnlen)50);
-#line 3980 ""
- stop1_();
-#line 3981 ""
- }
-
-/* Set iccount to character after 2nd ", and set ipm */
-
-/* iccount = iccount+iend+2 */
-#line 3986 ""
- *iccount = istart + iend;
-#line 3987 ""
- ipm = i_indx("- +", lineq + (*iccount - 1), (ftnlen)3, (ftnlen)1);
-#line 3988 ""
- if (ipm == 0) {
-#line 3989 ""
- errmsg_(lineq, iccount, ibar, "Expected \"-\", \"+\", or blank h"\
- "ere!", (ftnlen)128, (ftnlen)33);
-#line 3991 ""
- stop1_();
-#line 3992 ""
- }
-#line 3993 ""
- } else {
-
-/* Expect ordinary dynamic */
-
-#line 3997 ""
- for (iend = *iccount + 2; iend <= 128; ++iend) {
-#line 3998 ""
- ipm = i_indx("- +", lineq + (iend - 1), (ftnlen)3, (ftnlen)1);
-#line 3999 ""
- if (ipm > 0) {
-#line 3999 ""
- goto L2;
-#line 3999 ""
- }
-#line 4000 ""
-/* L1: */
-#line 4000 ""
- }
-#line 4001 ""
-L2:
-#line 4002 ""
- if (iend - *iccount > 5 || iend - *iccount < 2) {
-#line 4003 ""
- i__1 = iend - 1;
-#line 4003 ""
- errmsg_(lineq, &i__1, ibar, "Wrong length for dynamic mark!", (
- ftnlen)128, (ftnlen)30);
-#line 4005 ""
- stop1_();
-#line 4006 ""
- }
-#line 4007 ""
- i__1 = *iccount;
-#line 4007 ""
- ici__1.icierr = 0;
-#line 4007 ""
- ici__1.iciend = 0;
-#line 4007 ""
- ici__1.icirnum = 1;
-#line 4007 ""
- ici__1.icirlen = iend - 1 - i__1;
-#line 4007 ""
- ici__1.iciunit = lineq + i__1;
-/* Writing concatenation */
-#line 4007 ""
- i__2[0] = 2, a__1[0] = "(a";
-#line 4007 ""
- i__3 = iend + 47 - *iccount;
-#line 4007 ""
- chax_(ch__2, (ftnlen)1, &i__3);
-#line 4007 ""
- i__2[1] = 1, a__1[1] = ch__2;
-#line 4007 ""
- i__2[2] = 1, a__1[2] = ")";
-#line 4007 ""
- ici__1.icifmt = (s_cat(ch__1, a__1, i__2, &c__3, (ftnlen)4), ch__1);
-#line 4007 ""
- s_rsfi(&ici__1);
-#line 4007 ""
- do_fio(&c__1, dynsymq, (ftnlen)4);
-#line 4007 ""
- e_rsfi();
-#line 4009 ""
- idno = (i_indx("ppppppp pp p mp mf f fp sfz ff fff ffff< "\
- "> ", dynsymq, (ftnlen)56, (ftnlen)4) + 3) / 4;
-#line 4012 ""
- if (idno == 0) {
-#line 4013 ""
- i__1 = *iccount + 1;
-#line 4013 ""
- errmsg_(lineq, &i__1, ibar, "Illegal dynamic mark!", (ftnlen)128,
- (ftnlen)21);
-#line 4014 ""
- stop1_();
-#line 4015 ""
- }
-#line 4016 ""
- *iccount = iend;
-#line 4017 ""
- }
-#line 4018 ""
- if (ipm != 2) {
-
-/* There is a vertical shift, have "+" or "-" */
-
-#line 4022 ""
- ++(*iccount);
-#line 4023 ""
- if (i_indx("0123456789", lineq + (*iccount - 1), (ftnlen)10, (ftnlen)
- 1) == 0) {
-#line 4024 ""
- errmsg_(lineq, iccount, ibar, "Expected integer here for vertica"\
- "l offset!", (ftnlen)128, (ftnlen)42);
-#line 4026 ""
- stop1_();
-#line 4027 ""
- }
-#line 4028 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 4029 ""
- idno = i_nint(&fnum);
-#line 4030 ""
- if (idno > 63) {
-#line 4031 ""
- i__1 = *iccount - 1;
-#line 4031 ""
- errmsg_(lineq, &i__1, ibar, "Vertical offset for dynamic mark mu"\
- "st be (-63,63)!", (ftnlen)128, (ftnlen)50);
-#line 4033 ""
- stop1_();
-#line 4034 ""
- }
-#line 4035 ""
- ipm = i_indx("- +", durq, (ftnlen)3, (ftnlen)1);
-#line 4036 ""
- if (ipm == 0) {
-#line 4037 ""
- errmsg_(lineq, iccount, ibar, "Expected \"+\", \"-\", or blank h"\
- "ere!", (ftnlen)128, (ftnlen)33);
-#line 4039 ""
- stop1_();
-#line 4040 ""
- }
-#line 4041 ""
- if (ipm != 2) {
-
-/* There is a horizontal shift */
-
-#line 4045 ""
- ++(*iccount);
-#line 4046 ""
- if (i_indx(".0123456789", lineq + (*iccount - 1), (ftnlen)11, (
- ftnlen)1) == 0) {
-#line 4047 ""
- errmsg_(lineq, iccount, ibar, "Expected number here for hori"\
- "zontal offset!", (ftnlen)128, (ftnlen)43);
-#line 4049 ""
- stop1_();
-#line 4050 ""
- }
-#line 4051 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 4052 ""
- r__1 = fnum * 10;
-#line 4052 ""
- idno = i_nint(&r__1);
-#line 4053 ""
- if (idno > 255) {
-#line 4054 ""
- i__1 = *iccount - 1;
-#line 4054 ""
- errmsg_(lineq, &i__1, ibar, "Horizontal offset for dynamic m"\
- "ark must be (-25.5,25.5)!", (ftnlen)128, (ftnlen)56);
-#line 4056 ""
- stop1_();
-#line 4057 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 4058 ""
- errmsg_(lineq, iccount, ibar, "There should be a blank here!",
- (ftnlen)128, (ftnlen)29);
-#line 4060 ""
- stop1_();
-#line 4061 ""
- }
-#line 4062 ""
- }
-
-/* iccount should be on the blank at the end of the entire symbol */
-
-#line 4066 ""
- }
-#line 4067 ""
- return 0;
-} /* checkdyn_ */
-
-/* Subroutine */ int chkarp_(integer *ncrd, integer *icrdat, integer *ivx,
- integer *ip, logical *iscacc, logical *isarp)
-{
- /* System generated locals */
- integer i__1;
-
- /* Builtin functions */
- integer lbit_shift(integer, integer);
-
- /* Local variables */
- static integer icrd;
- static logical found1;
-
-/* subroutine chkarp(found1,ncrd,icrdat,icrdot,ivx,ip,isacc,isarp, */
-/* * icashft) */
-#line 4074 ""
- /* Parameter adjustments */
-#line 4074 ""
- --icrdat;
-#line 4074 ""
-
-#line 4074 ""
- /* Function Body */
-#line 4074 ""
- found1 = FALSE_;
-
-/* icashft will be max left shift of accid's in chord notes. */
-/* Used only for spacing checks. */
-/* Will include left shift of chord note itself. */
-/* Rezero after use. */
-
-#line 4081 ""
- i__1 = *ncrd;
-#line 4081 ""
- for (icrd = 1; icrd <= i__1; ++icrd) {
-
-/* This if block cycles thru all chord notes on ivx,ip; then returns. */
-
-#line 4085 ""
- if ((255 & icrdat[icrd]) == *ip && (15 & lbit_shift(icrdat[icrd], (
- ftnlen)-8)) == *ivx) {
-#line 4087 ""
- found1 = TRUE_;
-#line 4088 ""
- *iscacc = *iscacc || bit_test(icrdat[icrd],19) && ! bit_test(
- icrdat[icrd],27);
-
-/* Accid on this chord note, and it's not midi-only. */
-
-/* irshft = igetbits(icrdot(icrd),7,20) */
-/* c */
-/* c Include increment for notehead shift */
-/* c */
-/* if (btest(icrdat(icrd),23)) then */
-/* if (irshft .eq. 0) then */
-/* irshft = 44 */
-/* else */
-/* irshft=irshft-20 */
-/* end if */
-/* end if */
-/* if (irshft .ne. 0) then */
-/* c */
-/* c Accid on chord note is shifted. Include only left shift, in 20ths. */
-/* c */
-/* if (irshft .lt. 64) icashft = max(icashft,64-irshft) */
-/* end if */
-/* end if */
-#line 4111 ""
- *isarp = *isarp || bit_test(icrdat[icrd],25);
-#line 4112 ""
- } else if (found1) {
-#line 4113 ""
- return 0;
-#line 4114 ""
- }
-#line 4115 ""
-/* L18: */
-#line 4115 ""
- }
-#line 4116 ""
- return 0;
-} /* chkarp_ */
-
-/* Subroutine */ int chkimidi_(integer *icm)
-{
- /* Builtin functions */
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen), s_wsfe(cilist *), do_fio(integer *, char *, ftnlen),
- e_wsfe(void);
-
- /* Fortran I/O blocks */
- static cilist io___275 = { 0, 6, 0, 0, 0 };
- static cilist io___276 = { 0, 6, 0, 0, 0 };
- static cilist io___277 = { 0, 6, 0, "(a6,2x,4i8)", 0 };
-
-
-#line 4129 ""
- if (commidi_1.imidi[*icm] >= 24576) {
-#line 4130 ""
- s_wsle(&io___275);
-#line 4130 ""
- e_wsle();
-#line 4131 ""
- s_wsle(&io___276);
-#line 4131 ""
- do_lio(&c__9, &c__1, "Midi file is too long! It will be corrupted or"\
- " worse", (ftnlen)52);
-#line 4131 ""
- e_wsle();
-#line 4132 ""
- s_wsfe(&io___277);
-#line 4132 ""
- do_fio(&c__1, "imidi:", (ftnlen)6);
-#line 4132 ""
- do_fio(&c__1, (char *)&commidi_1.imidi[0], (ftnlen)sizeof(integer));
-#line 4132 ""
- do_fio(&c__1, (char *)&commidi_1.imidi[1], (ftnlen)sizeof(integer));
-#line 4132 ""
- do_fio(&c__1, (char *)&commidi_1.imidi[2], (ftnlen)sizeof(integer));
-#line 4132 ""
- do_fio(&c__1, (char *)&commidi_1.imidi[3], (ftnlen)sizeof(integer));
-#line 4132 ""
- e_wsfe();
-#line 4134 ""
- }
-#line 4135 ""
- return 0;
-} /* chkimidi_ */
-
-/* Subroutine */ int chkkbdrests_(integer *ip, integer *iv, integer *ivx,
- integer *nn, integer *islur, integer *irest, integer *nolev, integer *
- ivmx, integer *nib, integer *nv, integer *ibar, real *tnow, real *tol,
- integer *nodur, integer *mode, integer *levtopr, integer *levbotr,
- integer *mult, integer *ipl)
-{
- /* System generated locals */
- integer i__1;
- real r__1;
-
- /* Builtin functions */
- integer i_sign(integer *, integer *);
-
- /* Local variables */
- static integer levother, kkp;
- extern integer log2_(integer *), ncmid_(integer *, integer *);
- static integer indxr, iraise, levbot;
- static real tother;
- static integer levtop, iraise1, iraise2, ivother, levnext, iupdown;
-
-/* * nib,nv,ibar,tnow,tol,nodur,mode,levtopr,levbotr,mult) */
-
-/* On 130127 put this code, formerly in make2bar right before calling notex for */
-/* a single note/rest, into this subroutine, so the same logic could also be */
-/* with the calls to beamstrt/mid/end to adjust height of rests in xtups if the */
-/* keyboard rest option is selected */
-
-/* mode=1 if called as before, 2 if for an xtup. Only affects check for */
-/* quarter rests, which will fix later. */
-
-/* Get reference level: next following note if no intervening blank rests, */
-/* otherwise next prior note. Relative to bottom line. */
-
-/* if (ip.ne.nn(ivx).and..not.btest(iornq(ivx,ip),30)) then */
-#line 4157 ""
- /* Parameter adjustments */
-#line 4157 ""
- ipl -= 25;
-#line 4157 ""
- mult -= 25;
-#line 4157 ""
- --levbotr;
-#line 4157 ""
- --levtopr;
-#line 4157 ""
- nodur -= 25;
-#line 4157 ""
- nib -= 25;
-#line 4157 ""
- ivmx -= 25;
-#line 4157 ""
- nolev -= 25;
-#line 4157 ""
- irest -= 25;
-#line 4157 ""
- islur -= 25;
-#line 4157 ""
- --nn;
-#line 4157 ""
-
-#line 4157 ""
- /* Function Body */
-#line 4157 ""
- if (*ip != nn[*ivx] && ! bit_test(ipl[*ivx + *ip * 24],1)) {
-
-/* Not the last note and not "look-left" for level */
-
-#line 4161 ""
- i__1 = nn[*ivx];
-#line 4161 ""
- for (kkp = *ip + 1; kkp <= i__1; ++kkp) {
-#line 4162 ""
- if (bit_test(islur[*ivx + kkp * 24],29)) {
-#line 4162 ""
- goto L4;
-#line 4162 ""
- }
-#line 4163 ""
- if (! bit_test(irest[*ivx + kkp * 24],0)) {
-#line 4164 ""
- levnext = nolev[*ivx + kkp * 24] - ncmid_(iv, &kkp) + 4;
-/* Relative to botto */
-#line 4165 ""
- goto L9;
-#line 4166 ""
- }
-#line 4167 ""
-/* L8: */
-#line 4167 ""
- }
-#line 4168 ""
- }
-#line 4169 ""
-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 4175 ""
- if (*ip == 1) {
-#line 4175 ""
- return 0;
-#line 4175 ""
- }
-/* Get out if this is the first note. */
-#line 4176 ""
- for (kkp = *ip - 1; kkp >= 1; --kkp) {
-#line 4177 ""
- if (! bit_test(irest[*ivx + kkp * 24],0)) {
-#line 4178 ""
- levnext = nolev[*ivx + kkp * 24] - ncmid_(iv, &kkp) + 4;
-/* Relative to bottom */
-#line 4179 ""
- goto L9;
-#line 4180 ""
- }
-#line 4181 ""
-/* L3: */
-#line 4181 ""
- }
-/* go to 2 ! Pretty odd, should never be here, but get out if so. */
-#line 4183 ""
- return 0;
-/* Pretty odd, should never be here, but get out if so. */
-#line 4184 ""
-L9:
-
-/* Find note in other voice at same time */
-
-#line 4188 ""
- i__1 = *ivx - *nv - 1;
-#line 4188 ""
- iupdown = i_sign(&c__1, &i__1);
-#line 4189 ""
- ivother = ivmx[*iv + (3 - iupdown) / 2 * 24];
-#line 4190 ""
- tother = 0.f;
-#line 4191 ""
- i__1 = nib[ivother + *ibar * 24];
-#line 4191 ""
- for (kkp = 1; kkp <= i__1; ++kkp) {
-#line 4192 ""
- if ((r__1 = tother - *tnow, dabs(r__1)) < *tol) {
-#line 4192 ""
- goto L6;
-#line 4192 ""
- }
-#line 4193 ""
- tother += nodur[ivother + kkp * 24];
-#line 4194 ""
-/* L5: */
-#line 4194 ""
- }
-
-/* If here, then no note starts in other voice at same time, so set default */
-
-#line 4198 ""
- levother = -iupdown * 50;
-#line 4199 ""
- goto L7;
-#line 4200 ""
-L6:
-
-/* If here, have just identified a simultaneous note or rest in other voice */
-
-#line 4204 ""
- if (! bit_test(irest[ivother + kkp * 24],0)) {
-/* Not a rest, use it */
-#line 4205 ""
- levother = nolev[ivother + kkp * 24] - ncmid_(iv, ip) + 4;
-#line 4206 ""
- } else {
-#line 4207 ""
- 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 4212 ""
- return 0;
-#line 4213 ""
- }
-#line 4214 ""
- levother = -iupdown * 50;
-#line 4215 ""
- }
-#line 4216 ""
-L7:
-#line 4217 ""
- if (*mode == 1) {
-#line 4218 ""
- indxr = log2_(&nodur[*ivx + *ip * 24]) + 1;
-#line 4219 ""
- } else {
-/* nodu = 2**(4-(iand(mult(ivx,ip),15)-8)) */
-#line 4221 ""
- indxr = 4 - ((mult[*ivx + *ip * 24] & 15) - 8) + 1;
-#line 4222 ""
- }
-#line 4223 ""
- if (iupdown < 0) {
-#line 4224 ""
- levtop = levtopr[indxr];
-#line 4225 ""
- iraise1 = levother - levtop - 3;
-/* Based on other note */
-#line 4226 ""
- iraise2 = levnext - levtop;
-/* Based on following note */
-#line 4227 ""
- if (indxr == 5 && levnext < 1) {
-#line 4227 ""
- iraise2 += 2;
-#line 4227 ""
- }
-#line 4228 ""
- iraise = min(iraise1,iraise2);
-#line 4229 ""
- if ((iraise + 50) % 2 == 1 && iraise + levtop > -1) {
-#line 4229 ""
- --iraise;
-#line 4229 ""
- }
-#line 4231 ""
- } else {
-#line 4232 ""
- levbot = levbotr[indxr];
-#line 4233 ""
- iraise1 = levother - levbot + 3;
-#line 4234 ""
- iraise2 = levnext - levbot;
-#line 4235 ""
- if (indxr == 5 && levnext > 8) {
-#line 4235 ""
- --iraise2;
-#line 4235 ""
- }
-#line 4236 ""
- iraise = max(iraise1,iraise2);
-#line 4237 ""
- if ((iraise + 50) % 2 == 1 && iraise + levbot <= 9) {
-#line 4237 ""
- --iraise;
-#line 4237 ""
- }
-#line 4239 ""
- }
-#line 4240 ""
- nolev[*ivx + *ip * 24] = iraise + 100;
-#line 4241 ""
- return 0;
-} /* chkkbdrests_ */
-
-/* Subroutine */ int chklit_(char *lineq, integer *iccount, integer *literr,
- ftnlen lineq_len)
-{
- /* System generated locals */
- char ch__1[1];
-
- /* Local variables */
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static char charq[1];
- static integer itype, lenlit;
- extern /* Subroutine */ int g1etchar_(char *, integer *, char *, ftnlen,
- ftnlen);
-
-#line 4246 ""
- *literr = 0;
-#line 4247 ""
- itype = 1;
-#line 4248 ""
-L17:
-#line 4248 ""
- g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 4249 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 4249 ""
- if (*(unsigned char *)charq == *(unsigned char *)&ch__1[0]) {
-#line 4250 ""
- ++itype;
-#line 4251 ""
- if (itype > 3) {
-#line 4252 ""
- *literr = 1;
-#line 4253 ""
- return 0;
-#line 4254 ""
- }
-#line 4255 ""
- goto L17;
-#line 4256 ""
- }
-#line 4257 ""
- lenlit = itype;
-#line 4258 ""
-L18:
-#line 4258 ""
- g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 4259 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 4259 ""
- if (*(unsigned char *)charq == *(unsigned char *)&ch__1[0]) {
-#line 4260 ""
- g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 4261 ""
- if (*(unsigned char *)charq != ' ') {
-
-/* Starting a new tex command withing the string */
-
-#line 4265 ""
- lenlit += 2;
-#line 4266 ""
- if (lenlit > 128) {
-#line 4267 ""
- *literr = 2;
-#line 4268 ""
- return 0;
-#line 4269 ""
- }
-#line 4270 ""
- goto L18;
-#line 4271 ""
- }
-#line 4272 ""
- } else {
-#line 4273 ""
- ++lenlit;
-#line 4274 ""
- if (lenlit > 128) {
-#line 4275 ""
- *literr = 2;
-#line 4276 ""
- return 0;
-#line 4277 ""
- }
-#line 4278 ""
- goto L18;
-#line 4279 ""
- }
-#line 4280 ""
- return 0;
-} /* chklit_ */
-
-/* Subroutine */ int chkpm4ac_(char *lineq, integer *iccount, integer *nacc,
- logical *moved, ftnlen lineq_len)
-{
- /* System generated locals */
- integer i__1, i__2;
- real r__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), s_cmp(char *, char *,
- ftnlen, ftnlen), i_nint(real *);
-
- /* Local variables */
- static integer ipm;
- static real fnum;
- static char durq[1];
- static integer icsav;
- static logical ishorz;
- extern /* Subroutine */ int readnum_(char *, integer *, char *, real *,
- ftnlen, ftnlen), setbits_(integer *, integer *, integer *,
- integer *);
-
-
-/* Called after getting +/-/</> in a note (not rest). iccount is on the +-<>. */
-/* Sets moved=.true. and sets move parameters in nacc if necc: horiz only (bits */
-/* 10-16) if < or >, horiz and vert (bits 4-9) if two consecutive signed */
-/* numbers. If moved=.true., iccount on exit is on end of last number. */
-/* If moved=.false., iccount still on +/- */
-
-#line 4293 ""
- i__1 = *iccount - 2;
-#line 4293 ""
- i__2 = *iccount;
-#line 4293 ""
- 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) {
-
-/* Prior char was accid & next is #; this may be start of accidental shift. */
-/* Must test for "." above in case we get "<" or ">" */
-
-#line 4299 ""
- ipm = i_indx("- +< >", lineq + (*iccount - 1), (ftnlen)6, (ftnlen)1)
- - 2;
-#line 4300 ""
- i__1 = *iccount + 1;
-#line 4300 ""
- i__2 = *iccount;
-#line 4300 ""
- 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 4305 ""
- *moved = FALSE_;
-#line 4306 ""
- return 0;
-#line 4307 ""
- }
-#line 4308 ""
- ishorz = ipm > 1;
-
-/* Save iccount in case it's not accid shift and we have to reset. */
-
-#line 4312 ""
- icsav = *iccount;
-#line 4313 ""
- ++(*iccount);
-#line 4314 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 4315 ""
- if (ishorz || i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* This has to be accidental shift. Set vert. shift. */
-
-#line 4319 ""
- if (! ishorz) {
-
-/* +/- syntax, both shifts set, vertical first */
-
-#line 4323 ""
- i__1 = (integer) (ipm * fnum + 32.5f);
-#line 4323 ""
- setbits_(nacc, &c__6, &c__4, &i__1);
-#line 4324 ""
- ipm = i_indx("- +", durq, (ftnlen)3, (ftnlen)1) - 2;
-#line 4325 ""
- ++(*iccount);
-#line 4326 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 4327 ""
- } else {
-
-/* </> syntax, only horiz set */
-
-#line 4331 ""
- ipm += -3;
-#line 4332 ""
- }
-
-/* Set horiz. shift */
-
-#line 4336 ""
- r__1 = (ipm * fnum + 5.35f) * 20;
-#line 4336 ""
- i__1 = i_nint(&r__1);
-#line 4336 ""
- setbits_(nacc, &c__7, &c__10, &i__1);
-#line 4337 ""
- --(*iccount);
-#line 4338 ""
- *moved = TRUE_;
-#line 4339 ""
- } else {
-
-/* False alarm. Reset everything and flow onward */
-
-#line 4343 ""
- *moved = FALSE_;
-#line 4344 ""
- *iccount = icsav;
-#line 4345 ""
- }
-#line 4346 ""
- } else {
-
-/* Either prior char was not 'sfn' or next was not digit, so take no action */
-
-#line 4350 ""
- *moved = FALSE_;
-#line 4351 ""
- }
-#line 4352 ""
- return 0;
-} /* chkpm4ac_ */
-
-/* Subroutine */ int clefsym_(integer *isl, char *notexq, integer *lnote,
- integer *nclef, ftnlen notexq_len)
-{
- /* System generated locals */
- address a__1[4];
- integer i__1[4], i__2, i__3;
- char ch__1[1], ch__2[1], ch__3[1];
-
- /* Builtin functions */
- integer lbit_shift(integer, integer);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
-
- /* Local variables */
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer nlev;
-
-
-/* Returns string calling Don's TeX macro \pmxclef, for drawing small clefs. */
-
-#line 4360 ""
- *nclef = lbit_shift(*isl, (ftnlen)-12) & 7;
-#line 4361 ""
- if (*nclef == 0) {
-
-/* treble */
-
-#line 4365 ""
- nlev = 2;
-#line 4366 ""
- } else if (*nclef > 6) {
-
-/* French violin */
-
-#line 4370 ""
- nlev = 0;
-#line 4371 ""
- } else if (*nclef < 5) {
-
-/* C-clef */
-
-#line 4375 ""
- nlev = (*nclef << 1) - 2;
-#line 4376 ""
- } else {
-
-/* F-clef */
-
-#line 4380 ""
- nlev = (*nclef << 1) - 6;
-#line 4381 ""
- }
-/* Writing concatenation */
-#line 4382 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 4382 ""
- i__1[0] = 1, a__1[0] = ch__1;
-#line 4382 ""
- i__1[1] = 7, a__1[1] = "pmxclef";
-#line 4382 ""
- i__2 = min(*nclef,7) + 48;
-#line 4382 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 4382 ""
- i__1[2] = 1, a__1[2] = ch__2;
-#line 4382 ""
- i__3 = nlev + 48;
-#line 4382 ""
- chax_(ch__3, (ftnlen)1, &i__3);
-#line 4382 ""
- i__1[3] = 1, a__1[3] = ch__3;
-#line 4382 ""
- s_cat(notexq, a__1, i__1, &c__4, notexq_len);
-#line 4384 ""
- *lnote = 10;
-#line 4385 ""
- return 0;
-} /* clefsym_ */
-
-/* Subroutine */ int crdacc_(integer *nacc, integer *naccid, integer *micrd,
- integer *nolevm, real *rmsshift, logical *lasttime, integer *
- levmaxacc, integer *icrdot0, real *segrb0, integer *ksegrb0, integer *
- nsegrb0, logical *twooftwo, integer *icashft)
-{
- /* Initialized data */
-
- static integer nsegar[5] = { 3,4,3,3,2 };
- static integer nsegal[5] = { 2,4,3,3,2 };
- static real segar[60] /* was [5][2][6] */ = { -.05f,-.38f,-.34f,
- -.05f,-.15f,-1.4f,-2.9f,-3.f,-1.4f,-1.2f,-.75f,-.2f,-.8f,-.75f,
- 0.f,.96f,-1.04f,1.48f,.96f,1.2f,0.f,-.38f,0.f,0.f,0.f,3.15f,1.64f,
- 3.f,3.15f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,2.9f,0.f,0.f,0.f,0.f,0.f,
- 0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,
- 0.f,0.f };
- static real segal[60] /* was [5][2][6] */ = { -1.f,-1.02f,-.6f,
- -1.65f,-1.2f,-1.4f,-2.9f,-3.f,-1.4f,-1.2f,0.f,-1.2f,-1.04f,0.f,
- 0.f,3.15f,-1.64f,-1.48f,3.15f,1.2f,0.f,-1.02f,0.f,0.f,0.f,0.f,
- 1.04f,3.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,2.9f,0.f,0.f,0.f,0.f,
- 0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,0.f,
- 0.f,0.f,0.f };
- static integer iacctbl[6] = { 1,2,3,0,4,5 };
-
- /* System generated locals */
- integer i__1, i__2, i__3;
- real r__1;
-
- /* Builtin functions */
- integer i_nint(real *), s_wsle(cilist *), do_lio(integer *, integer *,
- char *, ftnlen), e_wsle(void);
-
- /* Local variables */
- static integer iacctype;
- static logical mainnote;
- extern integer igetbits_(integer *, integer *, integer *);
- static real ybotaseg, shiftmin;
- static integer isetshft[10];
- static real ytopaseg;
- static integer ibelowbot, ibelowtop, iwa, iranksetter, iseg;
- extern /* Subroutine */ int stop1_(void);
- static integer isega;
- static real segrb[100] /* was [2][50] */;
- static integer irank;
- static real shift;
- static integer nolev, isegrb, ksegrb[50], nsegrb, ishift;
- extern /* Subroutine */ int printl_(char *, ftnlen);
- static integer netgain;
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *);
-
- /* Fortran I/O blocks */
- static cilist io___324 = { 0, 6, 0, 0, 0 };
- static cilist io___325 = { 0, 6, 0, 0, 0 };
-
-
-
-/* nacc = accidental bitmap for main note */
-/* naccid = # of accid's in chord */
-/* micrd = array with icrd #'s for notes w/ acc's, 0=>main note */
-/* nolevm = level of main note */
-/* segrb(1|2,.) x|y-coord of right-bdry segment */
-/* ksegrb(.) internal use; tells what defined this segment */
-/* -2: Left-shifted notehead */
-/* -1: Original right boundary */
-/* 0: Main note accidental */
-/* icrd: Chord-note accidental */
-/* isetshft(i),i=1,naccid: what set shift for this accid, same codes */
-/* icrdot0 = top-down level-rank of main note among accid-notes */
-/* 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 4412 ""
- /* Parameter adjustments */
-#line 4412 ""
- --ksegrb0;
-#line 4412 ""
- segrb0 -= 3;
-#line 4412 ""
- --micrd;
-#line 4412 ""
-
-#line 4412 ""
- /* Function Body */
-
-/* Fancy sharp boundary. fl,sh,na,dfl,dsh */
-
-/* * -0.75,-0.20,-0.80, 0. , 0. , .96,-1.04,1.6, 0. , 0. , */
-/* meas value for y, natural is 1.6 */
-/* * 0.00, 0.00,-1.04, 0. , 0. ,3.15, 2.9,-1.6, 0. , 0. , */
-/* c (meas. value is 3.08) ^^^^ */
-/* c Raise top of flat so it interferes with bottom of sharp */
-
-/* iacctbl(i) = internal accid # (1-5) when i=extern accid # (1,2,3,5,6) */
-
-
-/* Set up barrier segrb(iseg,ipoint) to define coords of corner points */
-/* on stem+notes */
-
-#line 4443 ""
- i__1 = *nsegrb0;
-#line 4443 ""
- for (iseg = 1; iseg <= i__1; ++iseg) {
-#line 4444 ""
- segrb[(iseg << 1) - 2] = segrb0[(iseg << 1) + 1];
-#line 4445 ""
- segrb[(iseg << 1) - 1] = segrb0[(iseg << 1) + 2];
-#line 4446 ""
- ksegrb[iseg - 1] = ksegrb0[iseg];
-#line 4447 ""
-/* L11: */
-#line 4447 ""
- }
-#line 4448 ""
- nsegrb = *nsegrb0;
-#line 4449 ""
- *rmsshift = 0.f;
-#line 4450 ""
- shiftmin = 1e3f;
-#line 4451 ""
- i__1 = *naccid;
-#line 4451 ""
- for (iwa = 1; iwa <= i__1; ++iwa) {
-
-/* Initialize shift for this note */
-
-#line 4455 ""
- shift = 0.f;
-#line 4456 ""
- mainnote = micrd[iwa] == 0;
-#line 4457 ""
- isetshft[iwa - 1] = -1;
-
-/* Get note level and accidental type */
-
-#line 4461 ""
- if (mainnote) {
-#line 4462 ""
- nolev = *nolevm;
-#line 4463 ""
- iacctype = iacctbl[igetbits_(nacc, &c__3, &c__0) - 1];
-#line 4464 ""
- } else {
-#line 4465 ""
- nolev = igetbits_(&comtrill_1.icrdat[micrd[iwa] - 1], &c__7, &
- c__12);
-#line 4466 ""
- iacctype = iacctbl[igetbits_(&comtrill_1.icrdat[micrd[iwa] - 1], &
- c__3, &c__20) - 1];
-#line 4467 ""
- }
-
-/* Cycle thru segments on right edge of this accidental */
-
-#line 4471 ""
- i__2 = nsegar[iacctype - 1] - 1;
-#line 4471 ""
- for (isega = 1; isega <= i__2; ++isega) {
-#line 4472 ""
- ybotaseg = nolev + segar[iacctype + ((isega << 1) + 2) * 5 - 16];
-#line 4473 ""
- ytopaseg = nolev + segar[iacctype + ((isega + 1 << 1) + 2) * 5 -
- 16];
-
-/* Cycle thru segments of right-hand barrier */
-
-#line 4477 ""
- i__3 = nsegrb - 1;
-#line 4477 ""
- for (isegrb = 1; isegrb <= i__3; ++isegrb) {
-
-/* Must find all barrier segments that start below ytopseg & end above ybotseg */
-
-#line 4481 ""
- if (segrb[(isegrb << 1) - 1] < ytopaseg) {
-
-/* Barrier seg starts below top of accid */
-/* Check if barrier seg ends above bottom of accid */
-
-#line 4486 ""
- if (segrb[(isegrb + 1 << 1) - 1] > ybotaseg) {
-#line 4487 ""
- if (shift > segrb[(isegrb << 1) - 2] - segar[iacctype
- + ((isega << 1) + 1) * 5 - 16]) {
-#line 4489 ""
- shift = segrb[(isegrb << 1) - 2] - segar[iacctype
- + ((isega << 1) + 1) * 5 - 16];
-
-/* Record the cause of the shift */
-
-#line 4493 ""
- isetshft[iwa - 1] = ksegrb[isegrb - 1];
-#line 4494 ""
- }
-#line 4495 ""
- }
-
-/* Does barrier segment end above top of accid seg? */
-
-#line 4499 ""
- if (segrb[(isegrb + 1 << 1) - 1] > ytopaseg) {
-#line 4499 ""
- goto L4;
-#line 4499 ""
- }
-#line 4500 ""
- }
-#line 4501 ""
-/* L3: */
-#line 4501 ""
- }
-#line 4502 ""
-L4:
-#line 4503 ""
-/* L2: */
-#line 4503 ""
- ;
-#line 4503 ""
- }
-#line 4504 ""
- if (! bit_test(*nacc,28) && dabs(shift) > 1e-4f && ! (*lasttime)) {
-/* if (nolev .eq. levmaxacc) then */
-#line 4507 ""
- if (nolev == *levmaxacc && isetshft[iwa - 1] == -1) {
-#line 4508 ""
- *rmsshift = 1e3f;
-#line 4509 ""
- return 0;
-#line 4510 ""
- }
-
-/* Does the following properly account for left-shifted noteheads? */
-
-/* Top-down rank of this note we just shifted */
-
-#line 4516 ""
- if (mainnote) {
-#line 4517 ""
- irank = *icrdot0;
-#line 4518 ""
- } else {
-#line 4519 ""
- irank = igetbits_(&comtrill_1.icrdot[micrd[iwa] - 1], &c__3, &
- c__27);
-#line 4520 ""
- }
-
-/* Compare level-rank of this note vs. that of note that caused the shift. */
-/* This has effect of checking for basic interferences from top down. */
-
-/* ksegrb(.) internal use; tells what defined this segment */
-/* -2: Left-shifted notehead */
-/* -1: Original right boundary */
-/* 0: Main note accidental */
-/* icrd: Chord-note accidental */
-/* isetshft(i),i=1,naccid: what set shift for this accid, same codes */
-
-#line 4532 ""
- if (isetshft[iwa - 1] < 0) {
-#line 4533 ""
- iranksetter = 0;
-#line 4534 ""
- } else if (isetshft[iwa - 1] == 0) {
-#line 4535 ""
- iranksetter = *icrdot0;
-#line 4536 ""
- } else {
-#line 4537 ""
- iranksetter = igetbits_(&comtrill_1.icrdot[isetshft[iwa - 1]
- - 1], &c__3, &c__27);
-#line 4538 ""
- }
-#line 4539 ""
- if (iranksetter != 0 && irank != iranksetter + 1) {
-#line 4540 ""
- *rmsshift = 1e3f;
-#line 4541 ""
- return 0;
-#line 4542 ""
- }
-#line 4543 ""
- }
-/* Computing 2nd power */
-#line 4544 ""
- r__1 = shift;
-#line 4544 ""
- *rmsshift += r__1 * r__1;
-#line 4545 ""
- if (*lasttime && dabs(shift) > 1e-4f) {
-#line 4546 ""
- if (mainnote) {
-#line 4547 ""
- if (! bit_test(*nacc,29)) {
-#line 4547 ""
- goto L10;
-#line 4547 ""
- }
-#line 4548 ""
- } else {
-#line 4549 ""
- if (! bit_test(comtrill_1.icrdat[micrd[iwa] - 1],29)) {
-#line 4549 ""
- goto L10;
-#line 4549 ""
- }
-#line 4550 ""
- }
-
-/* 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 4556 ""
- if (mainnote) {
-#line 4557 ""
- shift += (igetbits_(nacc, &c__7, &c__10) - 107) * .05f;
-#line 4558 ""
- } else {
-#line 4559 ""
- shift += (igetbits_(&comtrill_1.icrdot[micrd[iwa] - 1], &c__7,
- &c__20) - 107) * .05f;
-#line 4560 ""
- }
-#line 4561 ""
-L10:
-#line 4562 ""
- if (*twooftwo) {
-
-/* Record the shift for this accidental */
-
-#line 4566 ""
- if (shift < -5.35f) {
-#line 4567 ""
- printl_(" ", (ftnlen)1);
-#line 4568 ""
- printl_("WARNING: auto-generated accidental shift too bi"\
- "g for PMX, ignoring", (ftnlen)66);
-#line 4570 ""
- } else {
-#line 4571 ""
- r__1 = (shift + 5.35f) * 20;
-#line 4571 ""
- ishift = i_nint(&r__1);
-#line 4572 ""
- if (mainnote) {
-#line 4573 ""
- setbits_(nacc, &c__7, &c__10, &ishift);
-#line 4574 ""
- } else {
-#line 4575 ""
- setbits_(&comtrill_1.icrdot[micrd[iwa] - 1], &c__7, &
- c__20, &ishift);
-#line 4576 ""
- }
-#line 4577 ""
- }
-#line 4578 ""
- } else {
-
-/* This is the earlier call to precrd, so need minimum shift */
-
-#line 4582 ""
- shiftmin = dmin(shiftmin,shift);
-#line 4583 ""
- }
-#line 4584 ""
- }
-
-/* Bail out if this is the last accidental to check */
-
-#line 4588 ""
- if (iwa == *naccid) {
-#line 4588 ""
- goto L1;
-#line 4588 ""
- }
-
-/* 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 4593 ""
- for (ibelowtop = nsegrb; ibelowtop >= 1; --ibelowtop) {
-#line 4594 ""
- if (segrb[(ibelowtop << 1) - 1] < nolev + segal[iacctype + ((
- nsegal[iacctype - 1] << 1) + 2) * 5 - 16]) {
-#line 4596 ""
- for (ibelowbot = ibelowtop; ibelowbot >= 1; --ibelowbot) {
-#line 4597 ""
- if (segrb[(ibelowbot << 1) - 1] < nolev + segal[iacctype
- + 4]) {
-#line 4597 ""
- goto L6;
-#line 4597 ""
- }
-#line 4599 ""
-/* L9: */
-#line 4599 ""
- }
-#line 4600 ""
- s_wsle(&io___324);
-#line 4600 ""
- do_lio(&c__9, &c__1, "Oops2!", (ftnlen)6);
-#line 4600 ""
- e_wsle();
-#line 4601 ""
- stop1_();
-#line 4602 ""
- }
-#line 4603 ""
-/* L5: */
-#line 4603 ""
- }
-#line 4604 ""
- s_wsle(&io___325);
-#line 4604 ""
- do_lio(&c__9, &c__1, "Ugh0! in crdaccs", (ftnlen)16);
-#line 4604 ""
- e_wsle();
-#line 4605 ""
- stop1_();
-#line 4606 ""
-L6:
-#line 4607 ""
- netgain = nsegal[iacctype - 1] - ibelowtop + ibelowbot;
-
-/* Shift high segments up */
-
-#line 4611 ""
- if (netgain >= 0) {
-#line 4612 ""
- i__2 = ibelowtop + 1;
-#line 4612 ""
- for (isegrb = nsegrb; isegrb >= i__2; --isegrb) {
-#line 4613 ""
- segrb[(isegrb + netgain << 1) - 2] = segrb[(isegrb << 1) - 2];
-#line 4614 ""
- segrb[(isegrb + netgain << 1) - 1] = segrb[(isegrb << 1) - 1];
-#line 4615 ""
- ksegrb[isegrb + netgain - 1] = ksegrb[isegrb - 1];
-#line 4616 ""
-/* L7: */
-#line 4616 ""
- }
-
-/* Set up 1st segment above accid */
-
-#line 4620 ""
- segrb[(ibelowtop + netgain << 1) - 2] = segrb[(ibelowtop << 1) -
- 2];
-#line 4621 ""
- segrb[(ibelowtop + netgain << 1) - 1] = nolev + segal[iacctype + (
- (nsegal[iacctype - 1] << 1) + 2) * 5 - 16];
-#line 4623 ""
- ksegrb[ibelowtop + netgain - 1] = ksegrb[ibelowtop - 1];
-#line 4624 ""
- } else {
-
-/* netgain<0, must remove segments. Use same coding but reverse order, */
-/* work from bottom up */
-
-#line 4629 ""
- segrb[(ibelowtop + netgain << 1) - 2] = segrb[(ibelowtop << 1) -
- 2];
-#line 4630 ""
- segrb[(ibelowtop + netgain << 1) - 1] = nolev + segal[iacctype + (
- (nsegal[iacctype - 1] << 1) + 2) * 5 - 16];
-#line 4632 ""
- ksegrb[ibelowtop + netgain - 1] = ksegrb[ibelowtop - 1];
-#line 4633 ""
- i__2 = nsegrb;
-#line 4633 ""
- for (isegrb = ibelowtop + 1; isegrb <= i__2; ++isegrb) {
-#line 4634 ""
- segrb[(isegrb + netgain << 1) - 2] = segrb[(isegrb << 1) - 2];
-#line 4635 ""
- segrb[(isegrb + netgain << 1) - 1] = segrb[(isegrb << 1) - 1];
-#line 4636 ""
- ksegrb[isegrb + netgain - 1] = ksegrb[isegrb - 1];
-#line 4637 ""
-/* L12: */
-#line 4637 ""
- }
-#line 4638 ""
- }
-
-/* Insert new segments */
-
-#line 4642 ""
- i__2 = nsegal[iacctype - 1] - 1;
-#line 4642 ""
- for (isega = 1; isega <= i__2; ++isega) {
-#line 4643 ""
- segrb[(ibelowbot + isega << 1) - 2] = shift + segal[iacctype + ((
- isega << 1) + 1) * 5 - 16];
-#line 4644 ""
- segrb[(ibelowbot + isega << 1) - 1] = nolev + segal[iacctype + ((
- isega << 1) + 2) * 5 - 16];
-#line 4645 ""
- if (mainnote) {
-#line 4646 ""
- ksegrb[ibelowbot + isega - 1] = 0;
-#line 4647 ""
- } else {
-#line 4648 ""
- ksegrb[ibelowbot + isega - 1] = micrd[iwa];
-#line 4649 ""
- }
-#line 4650 ""
-/* L8: */
-#line 4650 ""
- }
-
-/* Update number of barrier segments */
-
-#line 4654 ""
- nsegrb += netgain;
-/* c */
-/* c Temporary printout for boundary segments as built up */
-/* c */
-/* write(15,'()') */
-/* write(15,'(a/(2f8.2,i5))')' y x kseg', */
-/* * (segrb(2,iseg),segrb(1,iseg),ksegrb(iseg),iseg=1,nsegrb) */
-/* write(15,'(a/(2i5))')' micrd isetshft', */
-/* * (micrd(iwa1),isetshft(iwa1),iwa1=1,iwa) */
-/* c */
-#line 4664 ""
-L1:
-#line 4664 ""
- ;
-#line 4664 ""
- }
-/* next accidental */
-#line 4665 ""
- if (*lasttime && ! (*twooftwo)) {
-
-/* This is the final call on the pre-ask pass, so compute left-shift rqmt. */
-
-#line 4669 ""
- r__1 = shiftmin * -20;
-#line 4669 ""
- *icashft = i_nint(&r__1);
-#line 4670 ""
- }
-/* c */
-/* c Temporary printout for boundary segments */
-/* c */
-/* if (twooftwo) then */
-/* write(15,'()') */
-/* write(15,'(a/(2f8.2,i5))')' y x kseg', */
-/* * (segrb(2,iseg),segrb(1,iseg),ksegrb(iseg),iseg=1,nsegrb) */
-/* write(15,'(a/(2i5))')' micrd isetshft', */
-/* * (micrd(iwa),isetshft(iwa),iwa=1,naccid) */
-/* end if */
-/* c */
-#line 4682 ""
- return 0;
-} /* crdacc_ */
-
-/* Subroutine */ int crdaccs_(integer *nacc, integer *ipl, integer *irest,
- integer *naccid, integer *kicrd, integer *nolevm, integer *levmaxacc,
- integer *levminacc, integer *icrdot0, logical *twooftwo, integer *
- icashft)
-{
- /* System generated locals */
- integer i__1, i__2, i__3;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
-
- /* Local variables */
- extern integer igetbits_(integer *, integer *, integer *);
- static integer ipermsav[7];
- static real rmsshift;
- static integer i__, j, k, levmidacc, ip, ir, is, it, maxmanshft, icrd;
- extern /* Subroutine */ int stop1_(void);
- static integer micrd[10], iiseg, irank, iperm[7], nolev;
- static real segrb0[100] /* was [2][50] */;
- extern /* Subroutine */ int crdacc_(integer *, integer *, integer *,
- integer *, real *, logical *, integer *, integer *, real *,
- integer *, integer *, logical *, integer *);
- static logical tagged;
- static integer isegrb;
- static logical manual, lshift;
- static integer idummy;
- static real rmsmin;
- static integer ksegrb0[50], nsegrb0, manshft;
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *);
-
- /* Fortran I/O blocks */
- static cilist io___354 = { 0, 6, 0, 0, 0 };
-
-
-
-/* nacc = accidental bitmap for main note */
-/* naccid = # of accid's in chord */
-/* kicrd = array with icrd #'s for notes w/ acc's, 0=>main note */
-/* nolevm = level of main note */
-
-/* This is called once per multi-accidental chord. In here, loop over all */
-/* permutations of the order of accidental as stored in kicrd. Each time thru */
-/* loop, call crdacc once, get rms shift. Only save permutation and rms value */
-/* if it is less than old value. */
-
-
-/* Make consistent? 120106 */
-/* integer*4 kicrd(7),iperm(7),micrd(10),ipermsav(7),ksegrb0(50) */
-/* c */
-/* c Temporary printout of level-rankings */
-/* c */
-/* write(15,'()') */
-/* do 98 iacc = 1 , naccid */
-/* if (kicrd(iacc) .eq. 0) then */
-/* write(15,'(3i5)')nolevm,icrdot0 */
-/* else */
-/* write(15,'(2i5)')igetbits(icrdat(kicrd(iacc)),7,12), */
-/* * igetbits(icrdot(kicrd(iacc)),3,27) */
-/* end if */
-/* 98 continue */
-/* c */
-
-/* Initialize right-barrier */
-
-#line 4722 ""
- /* Parameter adjustments */
-#line 4722 ""
- --kicrd;
-#line 4722 ""
-
-#line 4722 ""
- /* Function Body */
-#line 4722 ""
- segrb0[0] = 0.f;
-#line 4723 ""
- segrb0[1] = -1e3f;
-#line 4724 ""
- segrb0[2] = 0.f;
-#line 4725 ""
- segrb0[3] = 1e3f;
-#line 4726 ""
- nsegrb0 = 2;
-#line 4727 ""
- ksegrb0[0] = -1;
-#line 4728 ""
- ksegrb0[1] = -1;
-
-/* Search for left-shifted notes, Make up the initial right-barrier, which */
-/* will be good for all permutations. */
-/* irest()(27) is set if any notes are left-shifted */
-/* Must use ALL chord notes, not just ones w/ accid's. */
-
-#line 4735 ""
- if (bit_test(*irest,27)) {
-#line 4736 ""
- i__1 = comtrill_1.icrd2;
-#line 4736 ""
- for (icrd = comtrill_1.icrd1 - 1; icrd <= i__1; ++icrd) {
-#line 4737 ""
- if (icrd == comtrill_1.icrd1 - 1) {
-
-/* Main note */
-
-/* lshift = btest(ipl,8) */
-#line 4742 ""
- lshift = bit_test(*ipl,8) || bit_test(*nacc,31);
-#line 4743 ""
- if (lshift) {
-#line 4743 ""
- nolev = *nolevm;
-#line 4743 ""
- }
-#line 4744 ""
- } else {
-
-/* Chord note */
-
-#line 4748 ""
- lshift = bit_test(comtrill_1.icrdat[icrd - 1],23);
-/* if (lshift) nolev = igetbits(icrdat(icrd),7,12) */
-#line 4750 ""
- if (lshift) {
-#line 4751 ""
- nolev = igetbits_(&comtrill_1.icrdat[icrd - 1], &c__7, &
- c__12);
-#line 4752 ""
- 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 4758 ""
- lshift = FALSE_;
-#line 4759 ""
- }
-#line 4760 ""
- }
-#line 4761 ""
- }
-#line 4762 ""
- if (lshift) {
-#line 4763 ""
- i__2 = nsegrb0 - 1;
-#line 4763 ""
- for (isegrb = 1; isegrb <= i__2; ++isegrb) {
-#line 4764 ""
- if (segrb0[(isegrb + 1 << 1) - 1] > (real) (nolev - 1)) {
-
-/* Add this notehead to the right boundary here. Move all higher segs up 2. */
-
-#line 4768 ""
- i__3 = isegrb + 1;
-#line 4768 ""
- for (iiseg = nsegrb0; iiseg >= i__3; --iiseg) {
-#line 4769 ""
- segrb0[(iiseg + 2 << 1) - 2] = segrb0[(iiseg << 1)
- - 2];
-#line 4770 ""
- segrb0[(iiseg + 2 << 1) - 1] = segrb0[(iiseg << 1)
- - 1];
-#line 4771 ""
- ksegrb0[iiseg + 1] = ksegrb0[iiseg - 1];
-#line 4772 ""
-/* L17: */
-#line 4772 ""
- }
-#line 4773 ""
- goto L18;
-#line 4774 ""
- }
-#line 4775 ""
-/* L16: */
-#line 4775 ""
- }
-#line 4776 ""
-L18:
-
-/* Insert notehead into list. Set kseg=-2 to signal notehead shift. */
-
-#line 4780 ""
- iiseg = isegrb + 1;
-#line 4781 ""
- segrb0[(iiseg << 1) - 2] = -1.2f;
-#line 4782 ""
- segrb0[(iiseg << 1) - 1] = nolev - 1.f;
-#line 4783 ""
- ksegrb0[iiseg - 1] = -2;
-#line 4784 ""
- segrb0[(iiseg + 1 << 1) - 2] = 0.f;
-#line 4785 ""
- segrb0[(iiseg + 1 << 1) - 1] = nolev + 1.f;
-#line 4786 ""
- ksegrb0[iiseg] = -1;
-#line 4787 ""
- nsegrb0 += 2;
-#line 4788 ""
- }
-#line 4789 ""
-/* L15: */
-#line 4789 ""
- }
-#line 4790 ""
- }
-
-/* Done setting right barrier for left-shifted noteheads */
-
-#line 4794 ""
- tagged = FALSE_;
-#line 4795 ""
- manual = FALSE_;
-
-/* Preprocess to check for manual shifts. */
-/* If are manual main [nacc(10-16)] or chord note [icrdot(20-26)]shifts, then */
-/* If any manual shift is preceded by "A" [nacc(29), icrdat(29)] then */
-/* 1. Auto-shifting proceeds */
-/* 2. "A"-shifts add to autoshifts */
-/* 3. non-"A" shifts are ignored! */
-/* Else (>0 man shifts, none has "A") */
-/* No auto-ordering, No autoshifts, Observe all manual shifts. */
-/* End if */
-/* End if */
-
-#line 4808 ""
- maxmanshft = 0;
-#line 4809 ""
- i__1 = *naccid;
-#line 4809 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 4810 ""
- if (kicrd[i__] == 0) {
-
-/* Main note */
-
-#line 4814 ""
- manshft = igetbits_(nacc, &c__7, &c__10);
-#line 4815 ""
- if (manshft != 0) {
-#line 4816 ""
- manual = TRUE_;
-#line 4817 ""
- if (bit_test(*nacc,29)) {
-#line 4818 ""
- tagged = TRUE_;
-#line 4819 ""
- } else {
-/* maxmanshft = max(maxmanshft,64-manshft) */
-/* Computing MAX */
-#line 4821 ""
- i__2 = maxmanshft, i__3 = 107 - manshft;
-#line 4821 ""
- maxmanshft = max(i__2,i__3);
-#line 4822 ""
- }
-#line 4823 ""
- }
-#line 4824 ""
- } else {
-
-/* Chord note */
-
-#line 4828 ""
- manshft = igetbits_(&comtrill_1.icrdot[kicrd[i__] - 1], &c__7, &
- c__20);
-#line 4829 ""
- if (manshft != 0) {
-#line 4830 ""
- manual = TRUE_;
-#line 4831 ""
- if (bit_test(comtrill_1.icrdat[kicrd[i__] - 1],29)) {
-#line 4832 ""
- tagged = TRUE_;
-#line 4833 ""
- } else {
-/* maxmanshft = max(maxmanshft,64-manshft) */
-/* Computing MAX */
-#line 4835 ""
- i__2 = maxmanshft, i__3 = 107 - manshft;
-#line 4835 ""
- maxmanshft = max(i__2,i__3);
-#line 4836 ""
- }
-#line 4837 ""
- }
-#line 4838 ""
- }
-#line 4839 ""
-/* L13: */
-#line 4839 ""
- }
-#line 4840 ""
- if (manual) {
-#line 4841 ""
- if (tagged) {
-
-/* zero out all untagged shifts */
-
-#line 4845 ""
- i__1 = *naccid;
-#line 4845 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 4846 ""
- if (kicrd[i__] == 0) {
-#line 4847 ""
- if (! bit_test(*nacc,29)) {
-#line 4847 ""
- setbits_(nacc, &c__7, &c__10, &c__0);
-#line 4847 ""
- }
-#line 4848 ""
- } else {
-#line 4849 ""
- if (! bit_test(comtrill_1.icrdat[kicrd[i__] - 1],29)) {
-#line 4849 ""
- setbits_(&comtrill_1.icrdot[kicrd[i__] - 1], &c__7, &
- c__20, &c__0);
-#line 4849 ""
- }
-#line 4851 ""
- }
-#line 4852 ""
-/* L14: */
-#line 4852 ""
- }
-#line 4853 ""
- } else {
-
-/* There are manual shifts but none tagged. Only proceed if "Ao" was entered */
-
-#line 4857 ""
- if (! bit_test(*nacc,28)) {
-#line 4858 ""
- *icashft = maxmanshft;
-#line 4859 ""
- return 0;
-#line 4860 ""
- }
-#line 4861 ""
- }
-#line 4862 ""
- }
-#line 4863 ""
- if (bit_test(*nacc,28)) {
-
-/* Take the accidentals in order as originally input, then exit. */
-
-#line 4867 ""
- crdacc_(nacc, naccid, &kicrd[1], nolevm, &rmsshift, &c_true, &idummy,
- &idummy, segrb0, ksegrb0, &nsegrb0, twooftwo, icashft);
-#line 4869 ""
- return 0;
-/* end if */
-#line 4871 ""
- } 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 4876 ""
- for (i__ = 1; i__ <= 3; ++i__) {
-#line 4877 ""
- if (kicrd[i__] == 0) {
-#line 4878 ""
- irank = *icrdot0;
-#line 4879 ""
- nolev = *nolevm;
-#line 4880 ""
- } else {
-#line 4881 ""
- irank = igetbits_(&comtrill_1.icrdot[kicrd[i__] - 1], &c__3, &
- c__27);
-#line 4882 ""
- nolev = igetbits_(&comtrill_1.icrdat[kicrd[i__] - 1], &c__7, &
- c__12);
-#line 4883 ""
- }
-#line 4884 ""
- if (irank == 1) {
-#line 4885 ""
- micrd[0] = kicrd[i__];
-#line 4886 ""
- } else {
-#line 4887 ""
- micrd[5 - irank - 1] = kicrd[i__];
-#line 4888 ""
- }
-#line 4889 ""
- if (irank == 2) {
-#line 4890 ""
- levmidacc = nolev;
-#line 4891 ""
- }
-#line 4892 ""
-/* L20: */
-#line 4892 ""
- }
-#line 4893 ""
- if (*levmaxacc != levmidacc + 1 && levmidacc != *levminacc + 1) {
-#line 4895 ""
- crdacc_(nacc, naccid, micrd, nolevm, &rmsshift, &c_true, &idummy,
- &idummy, segrb0, ksegrb0, &nsegrb0, twooftwo, icashft);
-#line 4897 ""
- return 0;
-#line 4898 ""
- }
-#line 4899 ""
- }
-#line 4900 ""
- rmsmin = 1e5f;
-
-/* Initialize permutation array */
-
-#line 4904 ""
- i__1 = *naccid;
-#line 4904 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 4905 ""
- iperm[i__ - 1] = i__;
-#line 4906 ""
-/* L7: */
-#line 4906 ""
- }
-
-/* Start looping over permutations */
-
-#line 4910 ""
- for (ip = 1; ip <= 5041; ++ip) {
-#line 4911 ""
- if (ip != 1) {
-
-/* Work the magic algorithm to get the next permutation */
-
-#line 4915 ""
- for (k = *naccid - 1; k >= 1; --k) {
-#line 4916 ""
- if (iperm[k - 1] <= iperm[k]) {
-#line 4916 ""
- goto L2;
-#line 4916 ""
- }
-#line 4917 ""
-/* L1: */
-#line 4917 ""
- }
-
-/* If here, we just got the last permutation, so exit the loop over permutations */
-
-#line 4921 ""
- goto L10;
-#line 4922 ""
-L2:
-#line 4923 ""
- for (j = *naccid; j >= 1; --j) {
-#line 4924 ""
- if (iperm[k - 1] <= iperm[j - 1]) {
-#line 4924 ""
- goto L4;
-#line 4924 ""
- }
-#line 4925 ""
-/* L3: */
-#line 4925 ""
- }
-#line 4926 ""
-L4:
-#line 4927 ""
- it = iperm[j - 1];
-#line 4928 ""
- iperm[j - 1] = iperm[k - 1];
-#line 4929 ""
- iperm[k - 1] = it;
-#line 4930 ""
- is = k + 1;
-#line 4931 ""
- for (ir = *naccid; ir >= 1; --ir) {
-#line 4932 ""
- if (ir <= is) {
-#line 4932 ""
- goto L6;
-#line 4932 ""
- }
-#line 4933 ""
- it = iperm[ir - 1];
-#line 4934 ""
- iperm[ir - 1] = iperm[is - 1];
-#line 4935 ""
- iperm[is - 1] = it;
-#line 4936 ""
- ++is;
-#line 4937 ""
-/* L5: */
-#line 4937 ""
- }
-#line 4938 ""
-L6:
-#line 4939 ""
- ;
-#line 4939 ""
- }
-
-/* New we have a permutation. Take icrd values out of kicrd and put them into */
-/* micrd in the order of the permutation */
-
-#line 4944 ""
- i__1 = *naccid;
-#line 4944 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 4945 ""
- micrd[i__ - 1] = kicrd[iperm[i__ - 1]];
-#line 4946 ""
-/* L9: */
-#line 4946 ""
- }
-/* c */
-/* c Temporary printout */
-/* c */
-/* write(15,'(/a6,10i3)')'perm:',(iperm(i),i=1,naccid) */
-/* c */
-#line 4952 ""
- crdacc_(nacc, naccid, micrd, nolevm, &rmsshift, &c_false, levmaxacc,
- icrdot0, segrb0, ksegrb0, &nsegrb0, twooftwo, icashft);
-/* c */
-/* c Temporary printout */
-/* c */
-/* write(15,*)'perm done, rmsshift:',rmsshift */
-/* c */
-#line 4959 ""
- if (rmsshift < rmsmin) {
-
-/* Save this permutation, reset minrms */
-
-#line 4963 ""
- i__1 = *naccid;
-#line 4963 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 4964 ""
- ipermsav[i__ - 1] = iperm[i__ - 1];
-#line 4965 ""
- rmsmin = rmsshift;
-#line 4966 ""
-/* L11: */
-#line 4966 ""
- }
-#line 4967 ""
- }
-#line 4968 ""
-/* L8: */
-#line 4968 ""
- }
-#line 4969 ""
- s_wsle(&io___354);
-#line 4969 ""
- do_lio(&c__9, &c__1, "Should not BEEEEEE here!", (ftnlen)24);
-#line 4969 ""
- e_wsle();
-#line 4970 ""
- stop1_();
-#line 4971 ""
-L10:
-
-/* Done looping, get info for the final choice */
-
-#line 4975 ""
- i__1 = *naccid;
-#line 4975 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 4976 ""
- micrd[i__ - 1] = kicrd[ipermsav[i__ - 1]];
-#line 4977 ""
-/* L12: */
-#line 4977 ""
- }
-/* c */
-/* c Temporary printout */
-/* c */
-/* write(15,'(/a6,10i3)')'Final perm:',(ipermsav(i),i=1,naccid) */
-/* c */
-#line 4983 ""
- crdacc_(nacc, naccid, micrd, nolevm, &rmsshift, &c_true, &idummy, &idummy,
- segrb0, ksegrb0, &nsegrb0, twooftwo, icashft);
-#line 4985 ""
- return 0;
-} /* crdaccs_ */
-
-/* Subroutine */ int doacc_(integer *ihshft, integer *ivshft, char *notexq,
- integer *lnote, integer *nacc, integer *nolev, integer *ncm, logical *
- caut, ftnlen notexq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[3];
- integer i__1[2], i__2[3];
- char ch__1[1];
- icilist ici__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- extern /* Subroutine */ int addblank_(char *, integer *, ftnlen);
- static char sq[1];
- static integer lacc;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static real hshft;
- static char noteq[8];
- extern /* Subroutine */ int accsym_(integer *, char *, integer *, ftnlen);
- static integer noleva;
- extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer
- *, ftnlen);
- static char acsymq[3];
- static integer lnoten;
-
-#line 4993 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 4993 ""
- *(unsigned char *)sq = *(unsigned char *)&ch__1[0];
-#line 4994 ""
- if (*ihshft == -107) {
-#line 4994 ""
- *ihshft = 0;
-#line 4994 ""
- }
-/* c */
-/* c If main note shifted left, so shift accid. Terminate below, when acc. is done. */
-/* c */
-#line 4998 ""
- if (*ihshft != 0) {
-
-/* Accid must be shifted horizontally */
-
-#line 5002 ""
- if (*ihshft < 0) {
-/* Writing concatenation */
-#line 5003 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 5003 ""
- i__1[1] = 8, a__1[1] = "loffset{";
-#line 5003 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 5004 ""
- *ihshft = -(*ihshft);
-#line 5005 ""
- } else {
-/* Writing concatenation */
-#line 5006 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 5006 ""
- i__1[1] = 8, a__1[1] = "roffset{";
-#line 5006 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 5007 ""
- }
-#line 5008 ""
- hshft = *ihshft * .05f;
-#line 5009 ""
- if (hshft < 1.f) {
-#line 5010 ""
- ici__1.icierr = 0;
-#line 5010 ""
- ici__1.icirnum = 1;
-#line 5010 ""
- ici__1.icirlen = 3;
-#line 5010 ""
- ici__1.iciunit = notexq + 9;
-#line 5010 ""
- ici__1.icifmt = "(f3.2)";
-#line 5010 ""
- s_wsfi(&ici__1);
-#line 5010 ""
- do_fio(&c__1, (char *)&hshft, (ftnlen)sizeof(real));
-#line 5010 ""
- e_wsfi();
-#line 5011 ""
- *lnote = 12;
-#line 5012 ""
- } else {
-#line 5013 ""
- ici__1.icierr = 0;
-#line 5013 ""
- ici__1.icirnum = 1;
-#line 5013 ""
- ici__1.icirlen = 4;
-#line 5013 ""
- ici__1.iciunit = notexq + 9;
-#line 5013 ""
- ici__1.icifmt = "(f4.2)";
-#line 5013 ""
- s_wsfi(&ici__1);
-#line 5013 ""
- do_fio(&c__1, (char *)&hshft, (ftnlen)sizeof(real));
-#line 5013 ""
- e_wsfi();
-#line 5014 ""
- *lnote = 13;
-#line 5015 ""
- }
-/* Writing concatenation */
-#line 5016 ""
- i__2[0] = *lnote, a__2[0] = notexq;
-#line 5016 ""
- i__2[1] = 2, a__2[1] = "}{";
-#line 5016 ""
- i__2[2] = 1, a__2[2] = sq;
-#line 5016 ""
- s_cat(notexq, a__2, i__2, &c__3, (ftnlen)79);
-#line 5017 ""
- *lnote += 3;
-#line 5018 ""
- } else {
-#line 5019 ""
- s_copy(notexq, sq, (ftnlen)79, (ftnlen)1);
-#line 5020 ""
- *lnote = 1;
-#line 5021 ""
- }
-#line 5022 ""
- if (bit_test(*nacc,3)) {
-/* Writing concatenation */
-#line 5023 ""
- i__1[0] = *lnote, a__1[0] = notexq;
-#line 5023 ""
- i__1[1] = 3, a__1[1] = "big";
-#line 5023 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 5024 ""
- *lnote += 3;
-#line 5025 ""
- }
-#line 5026 ""
- if (*caut) {
-
-/* Cautionary accidental. Need to define bigcna,... in pmx.tex */
-
-/* Writing concatenation */
-#line 5030 ""
- i__1[0] = *lnote, a__1[0] = notexq;
-#line 5030 ""
- i__1[1] = 1, a__1[1] = "c";
-#line 5030 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 5031 ""
- ++(*lnote);
-#line 5032 ""
- }
-#line 5033 ""
- accsym_(nacc, acsymq, &lacc, (ftnlen)3);
-/* Writing concatenation */
-#line 5034 ""
- i__1[0] = *lnote, a__1[0] = notexq;
-#line 5034 ""
- i__1[1] = lacc, a__1[1] = acsymq;
-#line 5034 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 5035 ""
- *lnote += lacc;
-#line 5036 ""
- noleva = *nolev;
-#line 5037 ""
- if (*ivshft != 0) {
-#line 5037 ""
- noleva = noleva + *ivshft - 32;
-#line 5037 ""
- }
-#line 5038 ""
- notefq_(noteq, &lnoten, &noleva, ncm, (ftnlen)8);
-#line 5039 ""
- if (lnoten == 1) {
-#line 5039 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 5039 ""
- }
-/* Writing concatenation */
-#line 5040 ""
- i__1[0] = *lnote, a__1[0] = notexq;
-#line 5040 ""
- i__1[1] = lnoten, a__1[1] = noteq;
-#line 5040 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 5041 ""
- *lnote += lnoten;
-#line 5042 ""
- if (*ihshft != 0) {
-
-/* Terminate horizontal shift */
-
-/* Writing concatenation */
-#line 5046 ""
- i__1[0] = *lnote, a__1[0] = notexq;
-#line 5046 ""
- i__1[1] = 1, a__1[1] = "}";
-#line 5046 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 5047 ""
- ++(*lnote);
-#line 5048 ""
- }
-#line 5049 ""
- return 0;
-} /* doacc_ */
-
-/* Subroutine */ int docrd_(integer *ivx, integer *ip, integer *nodu, integer
- *ncm, integer *iv, real *tnow, char *soutq, integer *lsout, char *ulq,
- integer *ibmcnt, integer *islur, integer *nvmx, integer *nv, logical
- *beamon, integer *nolevm, integer *ihornb, integer *nornb, real *
- stemlen, logical *dotxtup, integer *nacc, integer *irest, ftnlen
- soutq_len, ftnlen ulq_len)
-{
- /* System generated locals */
- address a__1[2];
- integer i__1, i__2, i__3[2], i__4, i__5, i__6;
- real r__1;
- logical L__1;
- char ch__1[1];
-
- /* Builtin functions */
- integer i_nint(real *), lbit_shift(integer, integer), pow_ii(integer *,
- integer *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen),
- s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen);
-
- /* Local variables */
- extern /* Subroutine */ int addblank_(char *, integer *, ftnlen);
- extern integer igetbits_(integer *, integer *, integer *);
- static integer icrdatsav, icrdotsav, kv;
- extern integer log2_(integer *);
- static integer icrd;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer indm, lout, lsym;
- static char outq[79];
- extern /* Subroutine */ int stop1_(void), doacc_(integer *, integer *,
- char *, integer *, integer *, integer *, integer *, logical *,
- ftnlen);
- extern integer ncmid_(integer *, integer *);
- static integer lnote, nolev;
- static char noteq[8];
- extern /* Subroutine */ int addstr_(char *, integer *, char *, integer *,
- ftnlen, ftnlen);
- static integer nactmp;
- static logical isleft;
- extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer
- *, ftnlen);
- static real updotc, rtdotc;
- static integer nolevo;
- extern /* Subroutine */ int dotmov_(real *, real *, char *, integer *,
- integer *, ftnlen);
- static integer lnoten;
- extern /* Subroutine */ int putarp_(real *, integer *, integer *, integer
- *, integer *, char *, integer *, ftnlen);
- static char notexq[79], nosymq[7];
- extern /* Subroutine */ int putorn_(integer *, integer *, integer *,
- integer *, integer *, char *, integer *, integer *, integer *,
- integer *, integer *, integer *, integer *, real *, char *,
- integer *, integer *, integer *, logical *, logical *, ftnlen,
- ftnlen), addmidi_(integer *, integer *, integer *, integer *,
- real *, logical *, logical *);
- static logical isright;
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *);
-
- /* Fortran I/O blocks */
- static cilist io___382 = { 0, 6, 0, 0, 0 };
- static cilist io___383 = { 0, 6, 0, 0, 0 };
-
-
-
-/* This subr. once produced notexq for entire chord. 10/18/97 altered to write */
-/* chord notes as we go. 10/22/97 find range of icrd first. */
-/* 2/25/98 moved rangefinding to precrd so done before slurs, so now */
-/* on entry, icrd1, icrd2 define range of icrd for this chord. */
-
-/* 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 5103 ""
- /* Parameter adjustments */
-#line 5103 ""
- irest -= 25;
-#line 5103 ""
- --nornb;
-#line 5103 ""
- ihornb -= 25;
-#line 5103 ""
- ulq -= 25;
-#line 5103 ""
-
-#line 5103 ""
- /* Function Body */
-#line 5103 ""
- commidi_1.nmidcrd = 0;
-#line 5104 ""
- commidi_1.notmain = TRUE_;
-#line 5105 ""
- commidi_1.crdacc = FALSE_;
-#line 5106 ""
- i__1 = comtrill_1.icrd2;
-#line 5106 ""
- for (icrd = comtrill_1.icrd1; icrd <= i__1; ++icrd) {
-#line 5107 ""
- lnote = 0;
-#line 5108 ""
- 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 5112 ""
- nolevo = nolev;
-
-/* Check for special situations with 2nds (see precrd). */
-
-#line 5116 ""
- if (bit_test(*nacc,30) && nolev == *nolevm - 1) {
-
-/* Upstem, 2nd with upper as main, interchange pitches, */
-/* rt-shift upper (now chord note). Lower (orig chord, now main) */
-/* if dotted, probably had shifted dot, dot parameters must be moved */
-/* from chord to main */
-
-#line 5123 ""
- nolev = *nolevm;
-#line 5124 ""
- if (bit_test(comtrill_1.icrdat[icrd - 1],26)) {
-
-/* Orig. chord note dot shift, must transfer to main. */
-
-#line 5128 ""
- icrdotsav = comtrill_1.icrdot[icrd - 1];
-#line 5129 ""
- icrdatsav = comtrill_1.icrdat[icrd - 1];
-#line 5130 ""
- if (bit_test(irest[*ivx + *ip * 24],19)) {
-
-/* Main note (upper) had a dot shift, must move it to chord */
-
-#line 5134 ""
- setbits_(&comtrill_1.icrdat[icrd - 1], &c__1, &c__26, &
- c__1);
-#line 5135 ""
- r__1 = comcc_1.updot[*ivx + (comcc_1.ndotmv[*ivx - 1] + 1)
- * 24 - 25] * 10;
-#line 5135 ""
- i__2 = i_nint(&r__1) + 64;
-#line 5135 ""
- setbits_(&comtrill_1.icrdot[icrd - 1], &c__7, &c__0, &
- i__2);
-#line 5137 ""
- r__1 = comcc_1.rtdot[*ivx + (comcc_1.ndotmv[*ivx - 1] + 1)
- * 24 - 25] * 10;
-#line 5137 ""
- i__2 = i_nint(&r__1) + 64;
-#line 5137 ""
- setbits_(&comtrill_1.icrdot[icrd - 1], &c__7, &c__7, &
- i__2);
-
-/* May need to worry about other chord params (accid shefts etc) later */
-
-#line 5142 ""
- } else {
-#line 5143 ""
- comtrill_1.icrdat[icrd - 1] = bit_clear(comtrill_1.icrdat[
- icrd - 1],26);
-#line 5144 ""
- }
-
-/* We are adding a main note dot shift, so push any later ones back */
-
-#line 5149 ""
- if (! bit_test(irest[*ivx + *ip * 24],19)) {
-#line 5150 ""
- ++comcc_1.maxdotmv[*ivx - 1];
-#line 5151 ""
- i__2 = comcc_1.ndotmv[*ivx - 1] + 2;
-#line 5151 ""
- for (indm = comcc_1.maxdotmv[*ivx - 1]; indm >= i__2;
- --indm) {
-#line 5152 ""
- comcc_1.updot[*ivx + indm * 24 - 25] = comcc_1.updot[*
- ivx + (indm - 1) * 24 - 25];
-#line 5153 ""
- comcc_1.rtdot[*ivx + indm * 24 - 25] = comcc_1.rtdot[*
- ivx + (indm - 1) * 24 - 25];
-#line 5154 ""
-/* L1: */
-#line 5154 ""
- }
-#line 5155 ""
- }
-#line 5156 ""
- irest[*ivx + *ip * 24] = bit_set(irest[*ivx + *ip * 24],19);
-#line 5157 ""
- comcc_1.updot[*ivx + (comcc_1.ndotmv[*ivx - 1] + 1) * 24 - 25]
- = ((127 & icrdotsav) - 64) * .1f;
-#line 5158 ""
- comcc_1.rtdot[*ivx + (comcc_1.ndotmv[*ivx - 1] + 1) * 24 - 25]
- = ((127 & lbit_shift(icrdotsav, (ftnlen)-7)) - 64) *
- .1f;
-#line 5160 ""
- }
-#line 5161 ""
- } else if (bit_test(*nacc,31) && nolev == *nolevm + 1) {
-
-/* Downstem, 2nd with lower as main, interchange pitches, */
-/* left-shift lower (now chord note). Lower (orig main, now chord) */
-/* probably had shifted dot, dot parameters must be moved from */
-/* main to chord */
-
-#line 5168 ""
- nolev = *nolevm;
-#line 5169 ""
- if (bit_test(irest[*ivx + *ip * 24],19)) {
-#line 5170 ""
- icrdotsav = comtrill_1.icrdot[icrd - 1];
-#line 5171 ""
- icrdatsav = comtrill_1.icrdat[icrd - 1];
-#line 5172 ""
- comtrill_1.icrdat[icrd - 1] = bit_set(comtrill_1.icrdat[icrd
- - 1],26);
-/* bits in icrdot */
-/* 0-6 10*abs(vertical dot shift in \internote) + 64 */
-/* 7-13 10*abs(horizontal dot shift in \internote) + 64 */
-/* Assuming >0 for now! */
-#line 5177 ""
- r__1 = comcc_1.updot[*ivx + (comcc_1.ndotmv[*ivx - 1] + 1) *
- 24 - 25] * 10;
-#line 5177 ""
- i__2 = i_nint(&r__1) + 64;
-#line 5177 ""
- setbits_(&comtrill_1.icrdot[icrd - 1], &c__7, &c__0, &i__2);
-#line 5179 ""
- r__1 = comcc_1.rtdot[*ivx + (comcc_1.ndotmv[*ivx - 1] + 1) *
- 24 - 25] * 10;
-#line 5179 ""
- i__2 = i_nint(&r__1) + 64;
-#line 5179 ""
- setbits_(&comtrill_1.icrdot[icrd - 1], &c__7, &c__7, &i__2);
-
-/* Must also set dot shift for (now) main note (orig. chord note). */
-
-#line 5184 ""
- if (bit_test(icrdatsav,26)) {
-#line 5185 ""
- comcc_1.updot[*ivx + (comcc_1.ndotmv[*ivx - 1] + 1) * 24
- - 25] = ((127 & icrdotsav) - 64) * .1f;
-#line 5186 ""
- comcc_1.rtdot[*ivx + (comcc_1.ndotmv[*ivx - 1] + 1) * 24
- - 25] = ((127 & lbit_shift(icrdotsav, (ftnlen)-7))
- - 64) * .1f;
-#line 5188 ""
- } else {
-
-/* No dot move on original chord (now main) note, */
-
-#line 5192 ""
- comcc_1.updot[*ivx + (comcc_1.ndotmv[*ivx - 1] + 1) * 24
- - 25] = 0.f;
-#line 5193 ""
- comcc_1.rtdot[*ivx + (comcc_1.ndotmv[*ivx - 1] + 1) * 24
- - 25] = 0.f;
-#line 5194 ""
- }
-#line 5195 ""
- }
-#line 5196 ""
- }
-
-/* Lower dot for lower-voice notes?. Conditions are: */
-/* 1. Dotted time value */
-/* 2. Lower voice of two */
-/* 3. Note is on a line */
-/* 4. Not a rest (cannot be a rest in a chord!) */
-/* . 5. Flag (lowdot) is set to true */
-
-#line 5205 ""
- if (comarp_1.lowdot && *nvmx == 2 && *ivx <= *nv) {
-#line 5206 ""
- i__2 = log2_(nodu);
-#line 5206 ""
- if (pow_ii(&c__2, &i__2) != *nodu && (nolev - *ncm) % 2 == 0) {
-#line 5207 ""
- if (bit_test(comtrill_1.icrdat[icrd - 1],26)) {
-
-/* Note already in movdot list. Drop by 2. */
-
-#line 5211 ""
- i__2 = igetbits_(&comtrill_1.icrdot[icrd - 1], &c__7, &
- c__0) - 20;
-#line 5211 ""
- setbits_(&comtrill_1.icrdot[icrd - 1], &c__7, &c__0, &
- i__2);
-#line 5213 ""
- } else {
-
-/* Not in list so just move it right now */
-
-#line 5217 ""
- i__2 = igetbits_(islur, &c__1, &c__3);
-#line 5217 ""
- dotmov_(&c_b1007, &c_b1008, soutq, lsout, &i__2, (ftnlen)
- 80);
-#line 5218 ""
- }
-#line 5219 ""
- }
-#line 5220 ""
- }
-#line 5221 ""
- if (bit_test(comtrill_1.icrdat[icrd - 1],26)) {
-
-/* Move the dot. Basic call for chord notes, not main note. */
-
-#line 5225 ""
- updotc = ((127 & comtrill_1.icrdot[icrd - 1]) - 64) * .1f;
-#line 5226 ""
- rtdotc = ((127 & lbit_shift(comtrill_1.icrdot[icrd - 1], (ftnlen)
- -7)) - 64) * .1f;
-#line 5227 ""
- i__2 = igetbits_(islur, &c__1, &c__3);
-#line 5227 ""
- dotmov_(&updotc, &rtdotc, soutq, lsout, &i__2, (ftnlen)80);
-#line 5228 ""
- }
-#line 5229 ""
- isleft = bit_test(comtrill_1.icrdat[icrd - 1],23);
-#line 5230 ""
- isright = bit_test(comtrill_1.icrdat[icrd - 1],24);
-
-/* Check for ornament in chord. */
-
-#line 5234 ""
- if (comtrill_1.icrdorn[icrd - 1] > 0) {
-#line 5235 ""
- 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, &
- c_true, (ftnlen)1, (ftnlen)79);
-#line 5238 ""
- addstr_(outq, &lout, soutq, lsout, (ftnlen)79, (ftnlen)80);
-#line 5239 ""
- }
-
-/* Chord-note symbol. First check for breve */
-
-#line 5243 ""
- if (*nodu == 128) {
-/* Writing concatenation */
-#line 5244 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5244 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5244 ""
- i__3[1] = 6, a__1[1] = "zbreve";
-#line 5244 ""
- s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7);
-#line 5245 ""
- lsym = 7;
-#line 5246 ""
- } else {
-
-/* Not a breve chord. Get first letters in chord-note symbol */
-
-#line 5250 ""
- if (isleft) {
-/* Writing concatenation */
-#line 5251 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5251 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5251 ""
- i__3[1] = 1, a__1[1] = "l";
-#line 5251 ""
- s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7);
-#line 5252 ""
- } else if (isright) {
-/* Writing concatenation */
-#line 5253 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5253 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5253 ""
- i__3[1] = 1, a__1[1] = "r";
-#line 5253 ""
- s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7);
-#line 5254 ""
- } else {
-/* Writing concatenation */
-#line 5255 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5255 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5255 ""
- i__3[1] = 1, a__1[1] = "z";
-#line 5255 ""
- s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7);
-#line 5256 ""
- }
-#line 5257 ""
- if (*nodu >= 64) {
-/* Writing concatenation */
-#line 5258 ""
- i__3[0] = 2, a__1[0] = nosymq;
-#line 5258 ""
- i__3[1] = 1, a__1[1] = "w";
-#line 5258 ""
- s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7);
-#line 5259 ""
- } else if (*nodu >= 32) {
-/* Writing concatenation */
-#line 5260 ""
- i__3[0] = 2, a__1[0] = nosymq;
-#line 5260 ""
- i__3[1] = 1, a__1[1] = "h";
-#line 5260 ""
- s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7);
-#line 5261 ""
- } else {
-/* Writing concatenation */
-#line 5262 ""
- i__3[0] = 2, a__1[0] = nosymq;
-#line 5262 ""
- i__3[1] = 1, a__1[1] = "q";
-#line 5262 ""
- s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7);
-#line 5263 ""
- }
-#line 5264 ""
- i__2 = log2_(nodu);
-#line 5264 ""
- if (pow_ii(&c__2, &i__2) == *nodu && ! (*dotxtup)) {
-#line 5265 ""
- lsym = 3;
-#line 5266 ""
- } else if (! bit_test(*islur,3) || *dotxtup) {
-
-/* Single dot */
-
-/* Writing concatenation */
-#line 5270 ""
- i__3[0] = 3, a__1[0] = nosymq;
-#line 5270 ""
- i__3[1] = 1, a__1[1] = "p";
-#line 5270 ""
- s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7);
-#line 5271 ""
- lsym = 4;
-#line 5272 ""
- } else {
-
-/* Double dot */
-
-/* Writing concatenation */
-#line 5276 ""
- i__3[0] = 3, a__1[0] = nosymq;
-#line 5276 ""
- i__3[1] = 2, a__1[1] = "pp";
-#line 5276 ""
- s_cat(nosymq, a__1, i__3, &c__2, (ftnlen)7);
-#line 5277 ""
- lsym = 5;
-#line 5278 ""
- }
-#line 5279 ""
- }
-#line 5280 ""
- 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 5284 ""
- nactmp = igetbits_(&comtrill_1.icrdat[icrd - 1], &c__3, &c__20);
-
-/* Kluge for bigness. Only means 'As' has not been issued */
-
-#line 5288 ""
- if (spfacs_1.bacfac != 1e6f) {
-#line 5288 ""
- nactmp += 8;
-#line 5288 ""
- }
-#line 5289 ""
- i__2 = igetbits_(&comtrill_1.icrdot[icrd - 1], &c__7, &c__20) -
- 107;
-#line 5289 ""
- i__4 = igetbits_(&comtrill_1.icrdot[icrd - 1], &c__6, &c__14);
-#line 5289 ""
- i__5 = igetbits_(&comtrill_1.icrdat[icrd - 1], &c__7, &c__12);
-#line 5289 ""
- i__6 = ncmid_(iv, ip);
-#line 5289 ""
- L__1 = bit_test(comtrill_1.icrdat[icrd - 1],31);
-#line 5289 ""
- 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 5296 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 5296 ""
- i__3[1] = 7, a__1[1] = nosymq;
-#line 5296 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5297 ""
- commidi_1.crdacc = TRUE_;
-#line 5298 ""
- } else {
-#line 5299 ""
- s_copy(notexq, nosymq, (ftnlen)79, (ftnlen)7);
-#line 5300 ""
- }
-#line 5301 ""
- lnote += lsym;
-
-/* Get note name (again if accid, due to possible octave jump) */
-
-#line 5305 ""
- notefq_(noteq, &lnoten, &nolev, ncm, (ftnlen)8);
-#line 5306 ""
- if (lnoten == 1) {
-#line 5306 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 5306 ""
- }
-
-/* Put in note name */
-
-/* Writing concatenation */
-#line 5310 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 5310 ""
- i__3[1] = 8, a__1[1] = noteq;
-#line 5310 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5311 ""
- lnote += lnoten;
-#line 5312 ""
- if (bit_test(comtrill_1.icrdat[icrd - 1],25)) {
-
-/* Arpeggio signal */
-
-#line 5316 ""
- putarp_(tnow, ivx, ip, &nolev, ncm, soutq, lsout, (ftnlen)80);
-#line 5317 ""
- }
-#line 5318 ""
- addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80);
-#line 5319 ""
- if (commidi_1.ismidi) {
-
-/* Here is where we collect MIDI pitch info for the chord note. By checking */
-/* notmain, addmidi(...) knows to just compute the */
-/* 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 5326 ""
- kv = 1;
-#line 5327 ""
- if (*ivx > *iv) {
-#line 5327 ""
- kv = 2;
-#line 5327 ""
- }
-#line 5328 ""
- ++commidi_1.nmidcrd;
-#line 5329 ""
- if (commidi_1.nmidcrd > 20) {
-#line 5330 ""
- s_wsle(&io___382);
-#line 5330 ""
- e_wsle();
-#line 5331 ""
- s_wsle(&io___383);
-#line 5331 ""
- do_lio(&c__9, &c__1, "21 chord notes is too many for midi pr"\
- "ocessor", (ftnlen)45);
-#line 5331 ""
- e_wsle();
-#line 5332 ""
- stop1_();
-#line 5333 ""
- }
-
-/* Use original saved pitch level, unaltered by 2nds logic. */
-
-#line 5337 ""
- i__2 = nolevo + commvel_1.miditran[cominsttrans_1.instno[*iv - 1]
- - 1];
-#line 5337 ""
- i__4 = igetbits_(&comtrill_1.icrdat[icrd - 1], &c__3, &c__20);
-#line 5337 ""
- addmidi_(&commidi_1.midchan[*iv + kv * 24 - 25], &i__2, &i__4, &
- commidisig_1.midisig, &c_b1053, &c_false, &c_false);
-#line 5340 ""
- }
-#line 5341 ""
-/* L5: */
-#line 5341 ""
- }
-#line 5342 ""
- commidi_1.notmain = FALSE_;
-#line 5343 ""
- return 0;
-} /* docrd_ */
-
-/* Subroutine */ int dodyn_(integer *ivx, integer *ip, integer *nolev,
- integer *ncm, integer *ipl, integer *islur, integer *irest, integer *
- nvmx, integer *nv, logical *beamon, integer *ihornb, integer *nornb,
- char *ulq, integer *ibmcnt, logical *nostem, char *soutq, integer *
- lsout, ftnlen ulq_len, ftnlen soutq_len)
-{
- /* Initialized data */
-
- static char dyntablq[48] = "ppppppp pp p mp mf f fp sfz ff fff "
- "ffff";
-
- /* System generated locals */
- address a__1[2], a__2[4], a__3[3];
- integer i__1, i__2, i__3[2], i__4[4], i__5, i__6[3];
- char ch__1[1], ch__2[6], ch__3[81], ch__4[53];
- icilist ici__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen),
- s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- , s_wsfe(cilist *), e_wsfe(void);
-
- /* Local variables */
- extern /* Subroutine */ int backfill_(integer *, char *, integer *, char *
- , integer *, ftnlen, ftnlen);
- static integer jtxtdyn1;
- extern integer igetbits_(integer *, integer *, integer *);
- static integer lpretweak, id, idh;
- static real hoff;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer idno, lbot, idyn, jdyn;
- extern /* Character */ VOID udqq_(char *, ftnlen, integer *, integer *,
- integer *, integer *, integer *, integer *);
- static integer lbot1;
- extern integer lfmt1_(real *);
- extern /* Subroutine */ int stop1_(void);
- static integer idynd, lform, idynn[10], lnote, ltemp;
- static char tempq[48];
- static integer ivxip;
- static char numpq[5];
- static integer idynd2;
- static real hoffsd;
- extern /* Subroutine */ int addstr_(char *, integer *, char *, integer *,
- ftnlen, ftnlen);
- static integer iptent;
- extern integer lenstr_(char *, integer *, ftnlen);
- extern /* Subroutine */ int printl_(char *, ftnlen);
- static integer numdyn;
- static logical upstem;
- static char notexq[79];
- static integer lnumpq, icntdyn;
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *);
- static integer ivxtent;
- static char dynstrq[4];
- static integer jtxtdyn, ltxtdyn;
-
- /* Fortran I/O blocks */
- static icilist io___405 = { 0, numpq+1, 0, "(i2)", 2, 1 };
- static icilist io___407 = { 0, numpq+1, 0, "(i2)", 2, 1 };
- static icilist io___408 = { 0, numpq+1, 0, "(i3)", 3, 1 };
- static icilist io___415 = { 0, numpq+1, 0, "(i2)", 2, 1 };
- static icilist io___416 = { 0, numpq+1, 0, "(i2)", 2, 1 };
- static icilist io___417 = { 0, numpq+1, 0, "(i3)", 3, 1 };
- static cilist io___420 = { 0, 11, 0, "(a)", 0 };
-
-
-
-/* Inputs are array *elements* except ihornb,nornb,ulq */
-
-#line 5371 ""
- /* Parameter adjustments */
-#line 5371 ""
- ulq -= 25;
-#line 5371 ""
- --nornb;
-#line 5371 ""
- ihornb -= 25;
-#line 5371 ""
-
-#line 5371 ""
- /* Function Body */
-#line 5372 ""
- numdyn = 0;
-
-/* Find dynamics for (ivx,ip) in list. May be as many as 4. Store idyn values */
-/* in idynn(1...4) */
-
-#line 5377 ""
- i__1 = comdyn_1.ndyn;
-#line 5377 ""
- for (idyn = 1; idyn <= i__1; ++idyn) {
-#line 5378 ""
- ivxtent = (comdyn_1.idyndat[idyn - 1] & 15) + (igetbits_(&
- comdyn_1.idynda2[idyn - 1], &c__1, &c__10) << 4);
-#line 5380 ""
- if (ivxtent == *ivx) {
-#line 5381 ""
- iptent = igetbits_(&comdyn_1.idyndat[idyn - 1], &c__8, &c__4);
-#line 5382 ""
- if (iptent == *ip) {
-#line 5383 ""
- ++numdyn;
-#line 5384 ""
- idynn[numdyn - 1] = idyn;
-#line 5385 ""
- } else if (iptent > *ip) {
-
-/* I don't think there are any more possible for this ivx,ip, so exit loop */
-
-#line 5389 ""
- goto L2;
-#line 5390 ""
- }
-#line 5391 ""
- }
-#line 5392 ""
-/* L1: */
-#line 5392 ""
- }
-#line 5393 ""
-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 5398 ""
- hoffsd = 0.f;
-
-/* Set upstem to false as default */
-
-#line 5402 ""
- upstem = FALSE_;
-#line 5403 ""
- if (bit_test(*irest,0)) {
-
-/* It's a rest. Assume it doesn't go below the staff */
-
-#line 5407 ""
- lbot = *ncm - 4;
-#line 5408 ""
- } else if (! (*beamon)) {
-#line 5409 ""
- udqq_(ch__1, (ftnlen)1, nolev, ncm, islur, nvmx, ivx, nv);
-#line 5409 ""
- if (*(unsigned char *)&ch__1[0] == 'u' || *nostem) {
-#line 5410 ""
- upstem = TRUE_;
-#line 5411 ""
- if (! bit_test(*ipl,10)) {
-/* Computing MIN */
-#line 5412 ""
- i__1 = *nolev - 1, i__2 = *ncm - 4;
-#line 5412 ""
- lbot = min(i__1,i__2);
-#line 5413 ""
- } else {
-/* Computing MIN */
-#line 5414 ""
- i__1 = comtrill_1.minlev - 1, i__2 = *ncm - 4;
-#line 5414 ""
- lbot = min(i__1,i__2);
-#line 5415 ""
- }
-#line 5416 ""
- } else {
-#line 5417 ""
- hoffsd = -.5f;
-#line 5418 ""
- if (! bit_test(*ipl,10)) {
-/* Computing MIN */
-#line 5419 ""
- i__1 = *nolev - 7, i__2 = *ncm - 4;
-#line 5419 ""
- lbot = min(i__1,i__2);
-#line 5420 ""
- } else {
-/* Computing MIN */
-#line 5421 ""
- i__1 = comtrill_1.minlev - 7, i__2 = *ncm - 4;
-#line 5421 ""
- lbot = min(i__1,i__2);
-#line 5422 ""
- }
-#line 5423 ""
- }
-#line 5424 ""
- } else {
-#line 5425 ""
- if (*(unsigned char *)&ulq[*ivx + *ibmcnt * 24] == 'u') {
-#line 5426 ""
- upstem = TRUE_;
-#line 5427 ""
- if (! bit_test(*ipl,10)) {
-/* Computing MIN */
-#line 5428 ""
- i__1 = *nolev - 1, i__2 = *ncm - 4;
-#line 5428 ""
- lbot = min(i__1,i__2);
-#line 5429 ""
- } else {
-/* Computing MIN */
-#line 5430 ""
- i__1 = comtrill_1.minlev - 1, i__2 = *ncm - 4;
-#line 5430 ""
- lbot = min(i__1,i__2);
-#line 5431 ""
- }
-#line 5432 ""
- } else {
-#line 5433 ""
- hoffsd = -.5f;
-
-/* 171230 Desperation */
-/* lbot = ihornb(ivx,nornb(ivx))+1 */
-#line 5437 ""
- if (nornb[*ivx] == 0) {
-#line 5438 ""
- lbot = 1;
-#line 5439 ""
- } else {
-#line 5440 ""
- lbot = ihornb[*ivx + nornb[*ivx] * 24] + 1;
-#line 5441 ""
- }
-#line 5442 ""
- if (lbot == 1) {
-
-/* Kluge for non-beamed, down xtup, for which ihorb was never set. */
-/* Assumes stem is shortened. */
-
-#line 5447 ""
- lbot = *nolev - 5;
-#line 5448 ""
- }
-#line 5449 ""
- ++nornb[*ivx];
-#line 5450 ""
- }
-#line 5451 ""
- }
-#line 5452 ""
- lbot += -5;
-#line 5453 ""
- jtxtdyn1 = 1;
-
-/* Now ready to loop over current dyn's */
-
-#line 5457 ""
- i__1 = numdyn;
-#line 5457 ""
- for (icntdyn = 1; icntdyn <= i__1; ++icntdyn) {
-#line 5458 ""
- idynd = comdyn_1.idyndat[idynn[icntdyn - 1] - 1];
-#line 5459 ""
- idynd2 = comdyn_1.idynda2[idynn[icntdyn - 1] - 1];
-#line 5460 ""
- idno = igetbits_(&idynd, &c__4, &c__12);
-/* ivx = iand(15,idynd) */
-#line 5462 ""
- *ivx = (15 & idynd) + (igetbits_(&idynd2, &c__1, &c__10) << 4);
-
-/* Build the command into notex in stages. Insert name & rq'd args in order: */
-
-/* Command name */
-/* hpstrt, hpcend, hpdend, pmxdyn */
-/* ivx */
-/* X X X */
-/* level */
-/* X X X */
-/* hoff */
-/* X X X X */
-/* d-mark */
-/* X */
-
-#line 5477 ""
- if (idno == 0) {
-
-/* Text-dynamic */
-
-/* Writing concatenation */
-#line 5481 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5481 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5481 ""
- i__3[1] = 6, a__1[1] = "txtdyn";
-#line 5481 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5482 ""
- lnote = 7;
-#line 5483 ""
- } else if (idno <= 12) {
-
-/* Letter-group */
-
-/* Writing concatenation */
-#line 5487 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5487 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5487 ""
- i__3[1] = 6, a__1[1] = "pmxdyn";
-#line 5487 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5488 ""
- lnote = 7;
-#line 5489 ""
- } else if (comslur_1.fontslur) {
-#line 5490 ""
- lnote = 7;
-#line 5491 ""
- if (idno == 13) {
-
-/* Start a font-based hairpin */
-
-/* Writing concatenation */
-#line 5495 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5495 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5495 ""
- i__3[1] = 6, a__1[1] = "hpstrt";
-#line 5495 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5496 ""
- } else if (idno == 14) {
-
-/* End crescendo */
-
-/* Writing concatenation */
-#line 5500 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5500 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5500 ""
- i__3[1] = 6, a__1[1] = "hpcend";
-#line 5500 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5501 ""
- } else {
-
-/* End decrescendo */
-
-/* Writing concatenation */
-#line 5505 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5505 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5505 ""
- i__3[1] = 6, a__1[1] = "hpdend";
-#line 5505 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5506 ""
- }
-
-/* Put in voice number as ID for font-based hairpin */
-
-#line 5510 ""
- if (*ivx <= 9) {
-/* Writing concatenation */
-#line 5511 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 5511 ""
- *(unsigned char *)&ch__1[0] = *ivx + 48;
-#line 5511 ""
- i__3[1] = 1, a__1[1] = ch__1;
-#line 5511 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5512 ""
- ++lnote;
-#line 5513 ""
- } else if (*ivx <= 19) {
-/* Writing concatenation */
-#line 5514 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 5514 ""
- i__4[1] = 2, a__2[1] = "{1";
-#line 5514 ""
- *(unsigned char *)&ch__1[0] = *ivx + 38;
-#line 5514 ""
- i__4[2] = 1, a__2[2] = ch__1;
-#line 5514 ""
- i__4[3] = 1, a__2[3] = "}";
-#line 5514 ""
- s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79);
-#line 5515 ""
- lnote += 4;
-#line 5516 ""
- } else {
-/* Writing concatenation */
-#line 5517 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 5517 ""
- i__4[1] = 2, a__2[1] = "{2";
-#line 5517 ""
- *(unsigned char *)&ch__1[0] = *ivx + 28;
-#line 5517 ""
- i__4[2] = 1, a__2[2] = ch__1;
-#line 5517 ""
- i__4[3] = 1, a__2[3] = "}";
-#line 5517 ""
- s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79);
-#line 5518 ""
- lnote += 4;
-#line 5519 ""
- }
-#line 5520 ""
- } else {
-
-/* Postscript hairpins */
-
-#line 5524 ""
- lnote = 7;
-#line 5525 ""
- if (idno == 13) {
-/* Writing concatenation */
-#line 5526 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5526 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5526 ""
- i__3[1] = 6, a__1[1] = "Icresc";
-#line 5526 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5527 ""
- } else if (idno == 14) {
-/* Writing concatenation */
-#line 5528 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5528 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5528 ""
- i__3[1] = 8, a__1[1] = "Idecresc";
-#line 5528 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5529 ""
- lnote = 9;
-#line 5530 ""
- } else {
-/* Writing concatenation */
-#line 5531 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5531 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 5531 ""
- i__3[1] = 6, a__1[1] = "Tcresc";
-#line 5531 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5532 ""
- }
-#line 5533 ""
- if (idno <= 14) {
-
-/* Get and record ID no for start of ps hairpin */
-/* Find first unused ID */
-
-#line 5538 ""
- for (idh = 1; idh <= 24; ++idh) {
-#line 5539 ""
- if (! bit_test(comhair_1.ihairuse,idh)) {
-#line 5539 ""
- goto L9;
-#line 5539 ""
- }
-#line 5540 ""
-/* L8: */
-#line 5540 ""
- }
-#line 5541 ""
- printl_("Bad place in putdyn, call Dr. Don", (ftnlen)33);
-#line 5542 ""
- stop1_();
-#line 5543 ""
-L9:
-#line 5544 ""
- comhair_1.ihairuse = bit_set(comhair_1.ihairuse,idh);
-#line 5545 ""
- comhair_1.idhair[*ivx - 1] = idh;
-#line 5546 ""
- } else {
-
-/* Unrecord ID no for end of ps hairpin */
-
-#line 5550 ""
- setbits_(&comhair_1.ihairuse, &c__1, &comhair_1.idhair[*ivx -
- 1], &c__0);
-#line 5551 ""
- }
-
-/* Write ID # for start or end of ps hairpin */
-
-#line 5555 ""
- idh = comhair_1.idhair[*ivx - 1];
-#line 5556 ""
- if (idh <= 9) {
-/* Writing concatenation */
-#line 5557 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 5557 ""
- *(unsigned char *)&ch__1[0] = idh + 48;
-#line 5557 ""
- i__3[1] = 1, a__1[1] = ch__1;
-#line 5557 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5558 ""
- ++lnote;
-#line 5559 ""
- } else if (idh <= 19) {
-/* Writing concatenation */
-#line 5560 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 5560 ""
- i__4[1] = 2, a__2[1] = "{1";
-#line 5560 ""
- *(unsigned char *)&ch__1[0] = idh + 38;
-#line 5560 ""
- i__4[2] = 1, a__2[2] = ch__1;
-#line 5560 ""
- i__4[3] = 1, a__2[3] = "}";
-#line 5560 ""
- s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79);
-#line 5561 ""
- lnote += 4;
-#line 5562 ""
- } else {
-/* Writing concatenation */
-#line 5563 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 5563 ""
- i__4[1] = 2, a__2[1] = "{2";
-#line 5563 ""
- *(unsigned char *)&ch__1[0] = idh + 28;
-#line 5563 ""
- i__4[2] = 1, a__2[2] = ch__1;
-#line 5563 ""
- i__4[3] = 1, a__2[3] = "}";
-#line 5563 ""
- s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79);
-#line 5564 ""
- lnote += 4;
-#line 5565 ""
- }
-#line 5566 ""
- }
-
-/* Begin setting level */
-
-#line 5570 ""
- lbot1 = lbot;
-#line 5571 ""
- if (idno > 0 && idno <= 5) {
-
-/* All letters are short so raise a bit. */
-
-#line 5575 ""
- ++lbot1;
-#line 5576 ""
- } else if (idno >= 13) {
-#line 5577 ""
- lbot1 += 2;
-#line 5578 ""
- }
-
-/* Convert so reference is bottom line */
-
-#line 5582 ""
- lbot1 = lbot1 - *ncm + 4;
-#line 5583 ""
- 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 5588 ""
- comdyn_1.levdsav[*ivx - 1] = lbot1;
-#line 5589 ""
- comdyn_1.levhssav[*ivx - 1] = 0;
-#line 5590 ""
- if (bit_test(idynd,16)) {
-#line 5590 ""
- comdyn_1.levhssav[*ivx - 1] = igetbits_(&idynd, &c__7, &c__17)
- - 64;
-#line 5590 ""
- }
-#line 5591 ""
- } else if (comslur_1.fontslur && idno >= 14 || idno == 15) {
-
-/* Hairpin end; Compare level with saved start level before user-tweaks */
-
-/* Computing MIN */
-#line 5595 ""
- i__2 = lbot1, i__5 = comdyn_1.levdsav[*ivx - 1];
-#line 5595 ""
- lbot1 = min(i__2,i__5);
-
-/* Save pre-tweak level */
-
-#line 5599 ""
- lpretweak = lbot1;
-#line 5600 ""
- }
-
-/* Check for user-defined vertical tweak */
-
-#line 5604 ""
- if (bit_test(idynd,16)) {
-#line 5604 ""
- lbot1 = lbot1 - 64 + igetbits_(&idynd, &c__7, &c__17);
-#line 5604 ""
- }
-
-/* Now horizontal stuff */
-
-#line 5608 ""
- hoff = hoffsd;
-
-/* Some special horizontal tweaks */
-
-#line 5612 ""
- if (upstem && idno > 0 && (idno <= 4 || idno == 8 || idno == 9)) {
-#line 5612 ""
- hoff += .4f;
-#line 5612 ""
- }
-
-/* User-defined tweaks */
-
-#line 5617 ""
- if (bit_test(idynd2,0)) {
-#line 5617 ""
- hoff += (igetbits_(&idynd2, &c__9, &c__1) - 256) * .1f;
-#line 5617 ""
- }
-#line 5619 ""
- if (numdyn > 1) {
-
-/* Horizontal-interaction-based tweaks. */
-
-/* Cases: */
-/* numdyn type1 type2 type3 data used */
-/* 2 wrd-grp hrpnstrt - ivowg(1...12),hoh1(1...12) */
-/* 2 hrpnend wrd-grp - ivowg,hoh2 */
-/* 2 hrpnend hrpnstrt - hoh2h1(1...2) */
-/* 3 hrpnend wrd-grp hrpnstrt ivowg,hoh2,hoh1 */
-
-#line 5630 ""
- if (idno > 0 && idno <= 12) {
-
-/* Word-group, may need vertical tweak to line up. */
-
-#line 5634 ""
- lbot1 += comdyn_1.ivowg[idno - 1];
-
-/* Protecting against hp start-stop on same note */
-
-#line 5638 ""
- } else if ((comslur_1.fontslur && idno >= 14 || idno == 15) &&
- icntdyn < numdyn) {
-
-/* Hairpin ending, check next type */
-
-#line 5643 ""
- if (comslur_1.fontslur && igetbits_(&comdyn_1.idyndat[idynn[
- icntdyn] - 1], &c__4, &c__12) == 13 || !
- comslur_1.fontslur && (igetbits_(&comdyn_1.idyndat[
- idynn[icntdyn] - 1], &c__4, &c__12) == 13 ||
- igetbits_(&comdyn_1.idyndat[idynn[icntdyn] - 1], &
- c__4, &c__12) == 14)) {
-
-/* Hairpin end then hairpin start, no words, (remember dealing with end now) */
-
-#line 5653 ""
- hoff += comdyn_1.hoh2h1[0];
-#line 5654 ""
- } else {
-
-/* Hairpin end then word-group, need idno for w-g to set hp offset */
-
-#line 5658 ""
- hoff += comdyn_1.hoh2[igetbits_(&comdyn_1.idyndat[idynn[
- icntdyn] - 1], &c__4, &c__12) - 1];
-#line 5660 ""
- }
-
-/* Protecting against hp start-stop on same note */
-
-#line 5664 ""
- } else if (icntdyn > 1 && idno > 0 && (comslur_1.fontslur && idno
- < 14 || ! comslur_1.fontslur && idno < 15)) {
-
-/* Hairpin start, check prior type */
-
-#line 5670 ""
- if (comslur_1.fontslur && igetbits_(&comdyn_1.idyndat[idynn[
- icntdyn - 2] - 1], &c__4, &c__12) >= 14 || !
- comslur_1.fontslur && igetbits_(&comdyn_1.idyndat[
- idynn[icntdyn - 2] - 1], &c__4, &c__12) == 15) {
-
-/* Hairpin end then hairpin start, (remember dealing with start now) */
-
-#line 5679 ""
- hoff += comdyn_1.hoh2h1[1];
-#line 5680 ""
- } else {
-
-/* Hairpin start after word-group, need idno for w-g to set hp offset */
-
-#line 5684 ""
- hoff += comdyn_1.hoh1[igetbits_(&comdyn_1.idyndat[idynn[
- icntdyn - 2] - 1], &c__4, &c__12) - 1];
-#line 5686 ""
- }
-#line 5687 ""
- }
-#line 5688 ""
- }
-
-/* End of if-block for 2- or 3-way interactions. */
-
-#line 5692 ""
- if (! comslur_1.fontslur && idno >= 13) {
-#line 5692 ""
- hoff = (hoff + .5f) * 6.f / 2.5f;
-#line 5692 ""
- }
-
-/* Slur font and hairpin. Add hoff, and change from \interneote to \qn@width */
-
-
-/* Position corrections all done now. Put in the level. */
-
-#line 5700 ""
- if (comslur_1.fontslur && idno == 13 || ! comslur_1.fontslur && (idno
- == 13 || idno == 14)) {
-
-/* Hairpin start. */
-
-#line 5705 ""
- if (! comslur_1.fontslur) {
-
-/* Postscript hairpin start...inset placeholder for start level. */
-/* Writing concatenation */
-#line 5709 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 5709 ""
- i__3[1] = 5, a__1[1] = "{ }";
-#line 5709 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5710 ""
- lnote += 5;
-#line 5711 ""
- }
-#line 5712 ""
- } else {
-
-/* Insert actual level in all cases except hairpin start */
-/* Create string with level in it */
-
-#line 5717 ""
- if (lbot1 > 9) {
-#line 5718 ""
- s_copy(numpq, "{", (ftnlen)5, (ftnlen)1);
-#line 5719 ""
- s_wsfi(&io___405);
-#line 5719 ""
- do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer));
-#line 5719 ""
- e_wsfi();
-/* Writing concatenation */
-#line 5720 ""
- i__3[0] = 3, a__1[0] = numpq;
-#line 5720 ""
- i__3[1] = 1, a__1[1] = "}";
-#line 5720 ""
- s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5);
-#line 5721 ""
- lnumpq = 4;
-#line 5722 ""
- } else if (lbot1 > -1) {
-#line 5723 ""
- *(unsigned char *)&ch__1[0] = lbot1 + 48;
-#line 5723 ""
- s_copy(numpq, ch__1, (ftnlen)5, (ftnlen)1);
-#line 5724 ""
- lnumpq = 1;
-#line 5725 ""
- } else if (lbot1 > -10) {
-#line 5726 ""
- s_copy(numpq, "{", (ftnlen)5, (ftnlen)1);
-#line 5727 ""
- s_wsfi(&io___407);
-#line 5727 ""
- do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer));
-#line 5727 ""
- e_wsfi();
-/* Writing concatenation */
-#line 5728 ""
- i__3[0] = 3, a__1[0] = numpq;
-#line 5728 ""
- i__3[1] = 1, a__1[1] = "}";
-#line 5728 ""
- s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5);
-#line 5729 ""
- lnumpq = 4;
-#line 5730 ""
- } else {
-#line 5731 ""
- s_copy(numpq, "{", (ftnlen)5, (ftnlen)1);
-#line 5732 ""
- s_wsfi(&io___408);
-#line 5732 ""
- do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer));
-#line 5732 ""
- e_wsfi();
-/* Writing concatenation */
-#line 5733 ""
- i__3[0] = 4, a__1[0] = numpq;
-#line 5733 ""
- i__3[1] = 1, a__1[1] = "}";
-#line 5733 ""
- s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5);
-#line 5734 ""
- lnumpq = 5;
-#line 5735 ""
- }
-
-/* Level has now been computed and stored in numpq */
-/* Append the level */
-
-/* Writing concatenation */
-#line 5740 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 5740 ""
- i__3[1] = lnumpq, a__1[1] = numpq;
-#line 5740 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5741 ""
- lnote += lnumpq;
-#line 5742 ""
- }
-#line 5743 ""
- if (dabs(hoff) < .001f) {
-
-/* No horiz offset */
-
-/* Writing concatenation */
-#line 5747 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 5747 ""
- i__3[1] = 1, a__1[1] = "0";
-#line 5747 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5748 ""
- ++lnote;
-#line 5749 ""
- } else {
-
-/* Horizontal tweak */
-
-#line 5753 ""
- lform = lfmt1_(&hoff);
-/* Writing concatenation */
-#line 5754 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 5754 ""
- i__3[1] = 1, a__1[1] = "{";
-#line 5754 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5755 ""
- ++lnote;
-#line 5756 ""
- i__2 = lnote;
-#line 5756 ""
- ici__1.icierr = 0;
-#line 5756 ""
- ici__1.icirnum = 1;
-#line 5756 ""
- ici__1.icirlen = lnote + lform - i__2;
-#line 5756 ""
- ici__1.iciunit = notexq + i__2;
-/* Writing concatenation */
-#line 5756 ""
- i__6[0] = 2, a__3[0] = "(f";
-#line 5756 ""
- i__5 = lform + 48;
-#line 5756 ""
- chax_(ch__1, (ftnlen)1, &i__5);
-#line 5756 ""
- i__6[1] = 1, a__3[1] = ch__1;
-#line 5756 ""
- i__6[2] = 3, a__3[2] = ".1)";
-#line 5756 ""
- ici__1.icifmt = (s_cat(ch__2, a__3, i__6, &c__3, (ftnlen)6),
- ch__2);
-#line 5756 ""
- s_wsfi(&ici__1);
-#line 5756 ""
- do_fio(&c__1, (char *)&hoff, (ftnlen)sizeof(real));
-#line 5756 ""
- e_wsfi();
-#line 5758 ""
- lnote += lform;
-/* Writing concatenation */
-#line 5759 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 5759 ""
- i__3[1] = 1, a__1[1] = "}";
-#line 5759 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 5760 ""
- ++lnote;
-#line 5761 ""
- }
-#line 5762 ""
- if (idno == 0) {
-
-/* text-dynamic. Find the string and append it */
-
-#line 5766 ""
- i__2 = comdyn_1.ntxtdyn;
-#line 5766 ""
- for (jtxtdyn = jtxtdyn1; jtxtdyn <= i__2; ++jtxtdyn) {
-/* ivxip = ivx+16*ip */
-#line 5768 ""
- ivxip = *ivx + (*ip << 5);
-#line 5769 ""
- if (ivxip == comdyn_1.ivxiptxt[jtxtdyn - 1]) {
-#line 5769 ""
- goto L5;
-#line 5769 ""
- }
-#line 5770 ""
-/* L4: */
-#line 5770 ""
- }
-#line 5771 ""
- printl_("Abnormal stop in putdyn", (ftnlen)23);
-#line 5772 ""
- stop1_();
-#line 5773 ""
-L5:
-#line 5774 ""
- ltxtdyn = lenstr_(comdyn_1.txtdynq + (jtxtdyn - 1 << 7), &c__128,
- (ftnlen)128);
-
-/* Font size based on musicsize */
-
-/* if (musize .eq. 20) then */
-/* notexq = notexq(1:lnote)//'{'//char(92)//'medtype' */
-/* * //char(92)//'it ' */
-/* lnote = lnote+13 */
-/* else if (musize .eq. 16) then */
-/* notexq = notexq(1:lnote)//'{'//char(92)//'normtype' */
-/* * //char(92)//'it ' */
-/* lnote = lnote+14 */
-/* else if (musize .eq. 24) then */
-/* notexq = notexq(1:lnote)//'{'//char(92)//'bigtype' */
-/* * //char(92)//'it ' */
-/* lnote = lnote+13 */
-/* else if (musize .eq. 29) then */
-/* notexq = notexq(1:lnote)//'{'//char(92)//'Bigtype' */
-/* * //char(92)//'it ' */
-/* lnote = lnote+13 */
-/* end if */
-
-/* Do this to insert 1st 2 args of \txtdyn, allow 3rd to be longer (on next line) */
-
-#line 5798 ""
- addstr_(notexq, &lnote, soutq, lsout, lnote, (ftnlen)80);
-#line 5799 ""
- if (commus_1.musize == 20) {
-#line 5800 ""
- s_copy(notexq, "{\\medtype\\it ", (ftnlen)79, (ftnlen)13);
-#line 5801 ""
- lnote = 13;
-#line 5802 ""
- } else if (commus_1.musize == 16) {
-#line 5803 ""
- s_copy(notexq, "{\\normtype\\it ", (ftnlen)79, (ftnlen)14);
-#line 5804 ""
- lnote = 14;
-#line 5805 ""
- } else if (commus_1.musize == 24) {
-#line 5806 ""
- s_copy(notexq, "{\\bigtype\\it ", (ftnlen)79, (ftnlen)13);
-#line 5807 ""
- lnote = 13;
-#line 5808 ""
- } else if (commus_1.musize == 29) {
-#line 5809 ""
- s_copy(notexq, "{\\Bigtype\\it ", (ftnlen)79, (ftnlen)13);
-#line 5810 ""
- lnote = 13;
-#line 5811 ""
- }
-
-/* Writing concatenation */
-#line 5813 ""
- i__6[0] = lnote, a__3[0] = notexq;
-#line 5813 ""
- i__6[1] = ltxtdyn, a__3[1] = comdyn_1.txtdynq + (jtxtdyn - 1 << 7)
- ;
-#line 5813 ""
- i__6[2] = 1, a__3[2] = "}";
-#line 5813 ""
- s_cat(notexq, a__3, i__6, &c__3, (ftnlen)79);
-#line 5814 ""
- lnote = lnote + ltxtdyn + 1;
-
-/* Reset jtxtdyn1 just in case >1 txtdyn on same note. */
-
-#line 5818 ""
- jtxtdyn1 = jtxtdyn + 1;
-#line 5819 ""
- } else if (idno <= 12) {
-
-/* Letter-group dynamic. Append the letter-group command */
-
-#line 5823 ""
- id = idno << 2;
-#line 5824 ""
- i__2 = id - 4;
-#line 5824 ""
- s_copy(dynstrq, dyntablq + i__2, (ftnlen)4, id - i__2);
-#line 5825 ""
- id = lenstr_(dynstrq, &c__4, (ftnlen)4);
-/* Writing concatenation */
-#line 5826 ""
- i__6[0] = lnote, a__3[0] = notexq;
-#line 5826 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5826 ""
- i__6[1] = 1, a__3[1] = ch__1;
-#line 5826 ""
- i__6[2] = id, a__3[2] = dynstrq;
-#line 5826 ""
- s_cat(notexq, a__3, i__6, &c__3, (ftnlen)79);
-#line 5827 ""
- lnote = lnote + 1 + id;
-#line 5828 ""
- }
-#line 5829 ""
- addstr_(notexq, &lnote, soutq, lsout, lnote, (ftnlen)80);
-#line 5830 ""
- 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 5835 ""
- lbot1 = lpretweak + comdyn_1.levhssav[*ivx - 1];
-#line 5836 ""
- if (lbot1 > 9) {
-#line 5837 ""
- s_copy(numpq, "{", (ftnlen)5, (ftnlen)1);
-#line 5838 ""
- s_wsfi(&io___415);
-#line 5838 ""
- do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer));
-#line 5838 ""
- e_wsfi();
-/* Writing concatenation */
-#line 5839 ""
- i__3[0] = 3, a__1[0] = numpq;
-#line 5839 ""
- i__3[1] = 1, a__1[1] = "}";
-#line 5839 ""
- s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5);
-#line 5840 ""
- lnumpq = 4;
-#line 5841 ""
- } else if (lbot1 > -1) {
-#line 5842 ""
- *(unsigned char *)&ch__1[0] = lbot1 + 48;
-#line 5842 ""
- s_copy(numpq, ch__1, (ftnlen)5, (ftnlen)1);
-#line 5843 ""
- lnumpq = 1;
-#line 5844 ""
- } else if (lbot1 > -10) {
-#line 5845 ""
- s_copy(numpq, "{", (ftnlen)5, (ftnlen)1);
-#line 5846 ""
- s_wsfi(&io___416);
-#line 5846 ""
- do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer));
-#line 5846 ""
- e_wsfi();
-/* Writing concatenation */
-#line 5847 ""
- i__3[0] = 3, a__1[0] = numpq;
-#line 5847 ""
- i__3[1] = 1, a__1[1] = "}";
-#line 5847 ""
- s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5);
-#line 5848 ""
- lnumpq = 4;
-#line 5849 ""
- } else {
-#line 5850 ""
- s_copy(numpq, "{", (ftnlen)5, (ftnlen)1);
-#line 5851 ""
- s_wsfi(&io___417);
-#line 5851 ""
- do_fio(&c__1, (char *)&lbot1, (ftnlen)sizeof(integer));
-#line 5851 ""
- e_wsfi();
-/* Writing concatenation */
-#line 5852 ""
- i__3[0] = 4, a__1[0] = numpq;
-#line 5852 ""
- i__3[1] = 1, a__1[1] = "}";
-#line 5852 ""
- s_cat(numpq, a__1, i__3, &c__2, (ftnlen)5);
-#line 5853 ""
- lnumpq = 5;
-#line 5854 ""
- }
-
-/* Construct string to search backwards for placeholder */
-
-#line 5858 ""
- if (idh <= 9) {
-/* Writing concatenation */
-#line 5859 ""
- i__6[0] = 5, a__3[0] = "cresc";
-#line 5859 ""
- *(unsigned char *)&ch__1[0] = idh + 48;
-#line 5859 ""
- i__6[1] = 1, a__3[1] = ch__1;
-#line 5859 ""
- i__6[2] = 5, a__3[2] = "{ }";
-#line 5859 ""
- s_cat(tempq, a__3, i__6, &c__3, (ftnlen)48);
-#line 5860 ""
- ltemp = 11;
-#line 5861 ""
- } else if (idh <= 19) {
-/* Writing concatenation */
-#line 5862 ""
- i__6[0] = 7, a__3[0] = "cresc{1";
-#line 5862 ""
- *(unsigned char *)&ch__1[0] = idh + 38;
-#line 5862 ""
- i__6[1] = 1, a__3[1] = ch__1;
-#line 5862 ""
- i__6[2] = 6, a__3[2] = "}{ }";
-#line 5862 ""
- s_cat(tempq, a__3, i__6, &c__3, (ftnlen)48);
-#line 5863 ""
- ltemp = 14;
-#line 5864 ""
- } else {
-/* Writing concatenation */
-#line 5865 ""
- i__6[0] = 7, a__3[0] = "cresc{2";
-#line 5865 ""
- *(unsigned char *)&ch__1[0] = idh + 28;
-#line 5865 ""
- i__6[1] = 1, a__3[1] = ch__1;
-#line 5865 ""
- i__6[2] = 6, a__3[2] = "}{ }";
-#line 5865 ""
- s_cat(tempq, a__3, i__6, &c__3, (ftnlen)48);
-#line 5866 ""
- ltemp = 14;
-#line 5867 ""
- }
-#line 5868 ""
- s_wsfe(&io___420);
-/* Writing concatenation */
-#line 5868 ""
- i__3[0] = *lsout, a__1[0] = soutq;
-#line 5868 ""
- i__3[1] = 1, a__1[1] = "%";
-#line 5868 ""
- s_cat(ch__3, a__1, i__3, &c__2, (ftnlen)81);
-#line 5868 ""
- do_fio(&c__1, ch__3, *lsout + 1);
-#line 5868 ""
- e_wsfe();
-#line 5869 ""
- *lsout = 0;
-/* Writing concatenation */
-#line 5870 ""
- i__3[0] = ltemp - 5, a__1[0] = tempq;
-#line 5870 ""
- i__3[1] = lnumpq, a__1[1] = numpq;
-#line 5870 ""
- s_cat(ch__4, a__1, i__3, &c__2, (ftnlen)53);
-#line 5870 ""
- i__2 = ltemp - 5 + lnumpq;
-#line 5870 ""
- backfill_(&c__11, tempq, &ltemp, ch__4, &i__2, (ftnlen)48, ltemp
- - 5 + lnumpq);
-#line 5872 ""
- }
-#line 5873 ""
-/* L3: */
-#line 5873 ""
- }
-
-/* Shrink arrays, decrease ndyn 111109 */
-
-#line 5877 ""
- for (icntdyn = numdyn; icntdyn >= 1; --icntdyn) {
-#line 5878 ""
- i__1 = comdyn_1.ndyn - 1;
-#line 5878 ""
- for (jdyn = idynn[icntdyn - 1]; jdyn <= i__1; ++jdyn) {
-#line 5879 ""
- comdyn_1.idyndat[jdyn - 1] = comdyn_1.idyndat[jdyn];
-#line 5880 ""
- comdyn_1.idynda2[jdyn - 1] = comdyn_1.idynda2[jdyn];
-#line 5881 ""
-/* L7: */
-#line 5881 ""
- }
-#line 5882 ""
- --comdyn_1.ndyn;
-#line 5883 ""
-/* L6: */
-#line 5883 ""
- }
-#line 5884 ""
- return 0;
-} /* dodyn_ */
-
-/* Subroutine */ int dograce_(integer *ivx, integer *ip, real *ptgr, char *
- soutq, integer *lsout, integer *ncm, integer *nacc, integer *ig,
- integer *ipl, logical *farend, logical *beamon, integer *nolev,
- integer *ncmidx, integer *islur, integer *nvmx, integer *nv, integer *
- ibmcnt, real *tnote, char *ulq, integer *instno, ftnlen soutq_len,
- ftnlen ulq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[3], a__3[4];
- integer i__1, i__2[2], i__3[3], i__4[4], i__5, i__6;
- real r__1;
- char ch__1[1], ch__2[6], ch__3[2], ch__4[5], ch__5[11], ch__6[7], ch__7[4]
- , ch__8[87], ch__9[15], ch__10[16], ch__11[9], ch__12[12], ch__13[
- 21], ch__14[20], ch__15[19], ch__16[24], ch__17[13], ch__18[82],
- ch__19[3], ch__20[10];
- icilist ici__1;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
- integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer i_nint(real *), s_wsfi(icilist *), e_wsfi(void);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer i_sign(integer *, integer *);
-
- /* Local variables */
- extern /* Subroutine */ int addblank_(char *, integer *, ftnlen);
- static integer lnotenga;
- extern integer igetbits_(integer *, integer *, integer *);
- static integer i__;
- static real x, y, em;
- static integer mg;
- static char sq[1];
- static real finalshift;
- static integer ing, ngs;
- extern integer log2_(integer *);
- static integer lacc;
- static real beta;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *), udqq_(char *
- , ftnlen, integer *, integer *, integer *, integer *, integer *,
- integer *);
- static real sumx, sumy;
- extern /* Subroutine */ int stop1_(void);
- static real delta, ptoff;
- static integer lnote;
- static char noteq[8];
- static real sumxx, sumxy, sumyy;
- static integer nolev1;
- static logical isgaft;
- extern /* Subroutine */ int accsym_(integer *, char *, integer *, ftnlen),
- addstr_(char *, integer *, char *, integer *, ftnlen, ftnlen);
- static logical iswaft;
- static char acsymq[3];
- extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer
- *, ftnlen);
- static integer lnoten, itrans, niptgr, islope;
- static logical stemup, normsp;
- static char notexq[79], noteqga[8];
- static real wheadpt1;
-
- /* Fortran I/O blocks */
- static cilist io___426 = { 0, 6, 0, 0, 0 };
- static cilist io___430 = { 0, 6, 0, 0, 0 };
- static cilist io___431 = { 0, 6, 0, 0, 0 };
- static cilist io___432 = { 0, 15, 0, "(/,a)", 0 };
- static icilist io___435 = { 0, notexq, 0, "(i2)", 2, 1 };
- static cilist io___436 = { 0, 6, 0, 0, 0 };
- static icilist io___460 = { 0, notexq+13, 0, "(a1,f4.1)", 5, 1 };
- static icilist io___462 = { 0, notexq+13, 0, "(f4.1)", 4, 1 };
- static icilist io___464 = { 0, notexq+5, 0, "(f3.1)", 3, 1 };
-
-
-
-/* ip will be one LESS than current note, for way-after's before bar-end, */
-/* It is only used to find ig. */
-/* ig is returned to makeabar in case there's a slur that needs to be ended */
-
-#line 5923 ""
- /* Parameter adjustments */
-#line 5923 ""
- ulq -= 25;
-#line 5923 ""
- --ptgr;
-#line 5923 ""
-
-#line 5923 ""
- /* Function Body */
-#line 5923 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 5923 ""
- *(unsigned char *)sq = *(unsigned char *)&ch__1[0];
-#line 5924 ""
- isgaft = bit_test(*ipl,29);
-#line 5925 ""
- iswaft = bit_test(*ipl,31);
-#line 5926 ""
- normsp = ! isgaft;
-
-/* Find ig. */
-
-#line 5930 ""
- i__1 = comgrace_1.ngrace;
-#line 5930 ""
- for (*ig = 1; *ig <= i__1; ++(*ig)) {
-#line 5931 ""
- if (comgrace_1.ipg[*ig - 1] == *ip && comgrace_1.ivg[*ig - 1] == *ivx)
- {
-#line 5931 ""
- goto L121;
-#line 5931 ""
- }
-#line 5932 ""
-/* L120: */
-#line 5932 ""
- }
-#line 5933 ""
- s_wsle(&io___426);
-#line 5933 ""
- do_lio(&c__9, &c__1, "Problem finding grace index in dograce", (ftnlen)38)
- ;
-#line 5933 ""
- e_wsle();
-#line 5934 ""
- s_stop("", (ftnlen)0);
-#line 5935 ""
-L121:
-#line 5936 ""
- ngs = comgrace_1.ngstrt[*ig - 1];
-#line 5937 ""
- mg = comgrace_1.multg[*ig - 1];
-/* wheadpt1 = wheadpt*fullsize(ivx) */
-#line 5939 ""
- wheadpt1 = comask_1.wheadpt * comfig_1.fullsize[*instno - 1];
-
-/* For way-after-graces at end of bar, must set the octave. */
-
-#line 5943 ""
- if (*farend) {
-#line 5944 ""
- comoct_1.noctup = 0;
-#line 5945 ""
- if (*ncm == 23) {
-#line 5945 ""
- comoct_1.noctup = -2;
-#line 5945 ""
- }
-#line 5946 ""
- }
-#line 5947 ""
- if (comgrace_1.slurg[*ig - 1] && ! iswaft && ! isgaft) {
-#line 5948 ""
- if (comslur_1.listslur == 16777215) {
-#line 5949 ""
- s_wsle(&io___430);
-#line 5949 ""
- e_wsle();
-#line 5950 ""
- s_wsle(&io___431);
-#line 5950 ""
- do_lio(&c__9, &c__1, "You defined the twentyfifth slur, one too "\
- "many!", (ftnlen)47);
-#line 5950 ""
- e_wsle();
-#line 5951 ""
- s_wsfe(&io___432);
-#line 5951 ""
- do_fio(&c__1, "You defined the twentyfifth slur, one too many!", (
- ftnlen)47);
-#line 5951 ""
- e_wsfe();
-#line 5953 ""
- stop1_();
-#line 5954 ""
- }
-
-/* Slur on fore-grace. Get index of next slur not in use, from 23 down. */
-
-#line 5958 ""
- i__1 = 16777215 - comslur_1.listslur;
-#line 5958 ""
- comslur_1.ndxslur = log2_(&i__1);
-#line 5960 ""
- }
-#line 5961 ""
- if (comgrace_1.nng[*ig - 1] == 1) {
-
-/* Single grace. */
-
-#line 5965 ""
- if (normsp) {
-
-/* Anything but GA */
-
-/* Writing concatenation */
-#line 5969 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 5969 ""
- i__2[1] = 5, a__1[1] = "shlft";
-#line 5969 ""
- s_cat(ch__2, a__1, i__2, &c__2, (ftnlen)6);
-#line 5969 ""
- addstr_(ch__2, &c__6, soutq, lsout, (ftnlen)6, (ftnlen)80);
-#line 5970 ""
- niptgr = i_nint(&ptgr[*ig]);
-
-/* Empirical tweak for postscript. */
-
-/* if (.not.fontslur) niptgr = niptgr+nint(wheadpt*.3) */
-/* ++ */
-#line 5976 ""
- if (niptgr < 10) {
-/* Writing concatenation */
-#line 5977 ""
- i__1 = niptgr + 48;
-#line 5977 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 5977 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 5977 ""
- i__2[1] = 1, a__1[1] = "{";
-#line 5977 ""
- s_cat(ch__3, a__1, i__2, &c__2, (ftnlen)2);
-#line 5977 ""
- addstr_(ch__3, &c__2, soutq, lsout, (ftnlen)2, (ftnlen)80);
-#line 5978 ""
- } else if (niptgr < 100) {
-#line 5979 ""
- s_wsfi(&io___435);
-#line 5979 ""
- do_fio(&c__1, (char *)&niptgr, (ftnlen)sizeof(integer));
-#line 5979 ""
- e_wsfi();
-/* Writing concatenation */
-#line 5980 ""
- i__3[0] = 1, a__2[0] = "{";
-#line 5980 ""
- i__3[1] = 2, a__2[1] = notexq;
-#line 5980 ""
- i__3[2] = 2, a__2[2] = "}{";
-#line 5980 ""
- s_cat(ch__4, a__2, i__3, &c__3, (ftnlen)5);
-#line 5980 ""
- addstr_(ch__4, &c__5, soutq, lsout, (ftnlen)5, (ftnlen)80);
-#line 5981 ""
- } else {
-#line 5982 ""
- s_wsle(&io___436);
-#line 5982 ""
- do_lio(&c__9, &c__1, "Call Dr. Don if you really want grace "\
- "note group > 99 pt", (ftnlen)56);
-#line 5982 ""
- e_wsle();
-#line 5984 ""
- s_stop("", (ftnlen)0);
-#line 5985 ""
- }
-#line 5986 ""
- } else {
-/* Writing concatenation */
-#line 5987 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 5987 ""
- i__2[1] = 10, a__1[1] = "gaft{1.5}{";
-#line 5987 ""
- s_cat(ch__5, a__1, i__2, &c__2, (ftnlen)11);
-#line 5987 ""
- addstr_(ch__5, &c__11, soutq, lsout, (ftnlen)11, (ftnlen)80);
-
-/* GA. Compute aftshft, for later use. */
-
-#line 5991 ""
- comgrace_1.aftshft = spfacs_1.grafac;
-#line 5992 ""
- if (comgrace_1.naccg[comgrace_1.ngstrt[*ig - 1] - 1] > 0) {
-#line 5992 ""
- comgrace_1.aftshft += spfacs_1.agc1fac;
-#line 5992 ""
- }
-#line 5993 ""
- comgrace_1.aftshft *= comask_1.wheadpt;
-#line 5994 ""
- }
-#line 5995 ""
- if (comgrace_1.slurg[*ig - 1] && ! isgaft && ! iswaft) {
-
-/* Start slur on pre-grace. No accounting needed since will be ended very soon. */
-
-#line 5999 ""
- notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen)
- 8);
-#line 6000 ""
- if (comslur_1.fontslur) {
-#line 6001 ""
- if (comgrace_1.upg[*ig - 1]) {
-/* Writing concatenation */
-#line 6002 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6002 ""
- i__2[1] = 6, a__1[1] = "islurd";
-#line 6002 ""
- s_cat(ch__6, a__1, i__2, &c__2, (ftnlen)7);
-#line 6002 ""
- addstr_(ch__6, &c__7, soutq, lsout, (ftnlen)7, (ftnlen)80)
- ;
-#line 6003 ""
- } else {
-/* Writing concatenation */
-#line 6004 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6004 ""
- i__2[1] = 6, a__1[1] = "isluru";
-#line 6004 ""
- s_cat(ch__6, a__1, i__2, &c__2, (ftnlen)7);
-#line 6004 ""
- addstr_(ch__6, &c__7, soutq, lsout, (ftnlen)7, (ftnlen)80)
- ;
-#line 6005 ""
- }
-#line 6006 ""
- } else {
-
-/* Start Postscript slur. */
-
-#line 6010 ""
- if (comgrace_1.upg[*ig - 1]) {
-/* Writing concatenation */
-#line 6011 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6011 ""
- i__2[1] = 3, a__1[1] = "isd";
-#line 6011 ""
- s_cat(ch__7, a__1, i__2, &c__2, (ftnlen)4);
-#line 6011 ""
- addstr_(ch__7, &c__4, soutq, lsout, (ftnlen)4, (ftnlen)80)
- ;
-#line 6012 ""
- } else {
-/* Writing concatenation */
-#line 6013 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6013 ""
- i__2[1] = 3, a__1[1] = "isu";
-#line 6013 ""
- s_cat(ch__7, a__1, i__2, &c__2, (ftnlen)4);
-#line 6013 ""
- addstr_(ch__7, &c__4, soutq, lsout, (ftnlen)4, (ftnlen)80)
- ;
-#line 6014 ""
- }
-#line 6015 ""
- }
-
-/* Print slur number, 23-ndxslur */
-
-#line 6019 ""
- lnote = 0;
-#line 6020 ""
- if (23 - comslur_1.ndxslur < 10) {
-/* notexq = notexq(1:lnote)//chax(59-ndxslur) */
-#line 6022 ""
- i__1 = 71 - comslur_1.ndxslur;
-#line 6022 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6022 ""
- s_copy(notexq, ch__1, (ftnlen)79, (ftnlen)1);
-#line 6023 ""
- lnote = 1;
-#line 6024 ""
- } else if (23 - comslur_1.ndxslur < 20) {
-/* notexq = notexq(1:lnote)//'{1'//chax(49-ndxslur)//'}' */
-/* Writing concatenation */
-#line 6026 ""
- i__3[0] = 2, a__2[0] = "{1";
-#line 6026 ""
- i__1 = 61 - comslur_1.ndxslur;
-#line 6026 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6026 ""
- i__3[1] = 1, a__2[1] = ch__1;
-#line 6026 ""
- i__3[2] = 1, a__2[2] = "}";
-#line 6026 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79);
-#line 6027 ""
- lnote = 4;
-#line 6028 ""
- } else {
-/* Writing concatenation */
-#line 6029 ""
- i__4[0] = lnote, a__3[0] = notexq;
-#line 6029 ""
- i__4[1] = 2, a__3[1] = "{2";
-#line 6029 ""
- i__1 = 51 - comslur_1.ndxslur;
-#line 6029 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6029 ""
- i__4[2] = 1, a__3[2] = ch__1;
-#line 6029 ""
- i__4[3] = 1, a__3[3] = "}";
-#line 6029 ""
- s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79);
-#line 6030 ""
- lnote = 4;
-#line 6031 ""
- }
-/* Writing concatenation */
-#line 6032 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 6032 ""
- i__2[1] = lnoten, a__1[1] = noteq;
-#line 6032 ""
- s_cat(ch__8, a__1, i__2, &c__2, (ftnlen)87);
-#line 6032 ""
- i__1 = lnote + lnoten;
-#line 6032 ""
- addstr_(ch__8, &i__1, soutq, lsout, lnote + lnoten, (ftnlen)80);
-#line 6034 ""
- if (! comslur_1.fontslur) {
-
-/* Horizontal tweaks for postscript slur on single grace */
-
-#line 6038 ""
- stemup = TRUE_;
-#line 6039 ""
- if (comgrace_1.upg[*ig - 1]) {
-
-/* Check for up-grace + down stem. Get stem direction */
-
-#line 6043 ""
- if (! (*beamon)) {
-
-/* Separate note. Get stem direction. */
-
-#line 6047 ""
- udqq_(ch__1, (ftnlen)1, nolev, ncmidx, islur, nvmx,
- ivx, nv);
-#line 6047 ""
- stemup = *(unsigned char *)&ch__1[0] == 'u';
-#line 6049 ""
- } else {
-
-/* In a beam */
-
-#line 6053 ""
- stemup = *(unsigned char *)&ulq[*ivx + *ibmcnt * 24]
- == 'u';
-#line 6054 ""
- }
-
-/* Stop the shift if whole note */
-
-#line 6058 ""
- stemup = stemup || *tnote > 63.f;
-#line 6059 ""
- }
-#line 6060 ""
- if (stemup) {
-#line 6061 ""
- addstr_("{-.3}", &c__5, soutq, lsout, (ftnlen)5, (ftnlen)
- 80);
-#line 6062 ""
- } else {
-#line 6063 ""
- addstr_("{-.8}", &c__5, soutq, lsout, (ftnlen)5, (ftnlen)
- 80);
-#line 6064 ""
- }
-#line 6065 ""
- }
-#line 6066 ""
- }
-#line 6067 ""
- if (comgrace_1.naccg[ngs - 1] > 0) {
-#line 6068 ""
- notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen)
- 8);
-
-/* Save for checking octave shifts in GA */
-
-#line 6072 ""
- if (isgaft) {
-#line 6073 ""
- lnotenga = lnoten;
-#line 6074 ""
- s_copy(noteqga, noteq, (ftnlen)8, (ftnlen)8);
-#line 6075 ""
- }
-
-#line 6077 ""
- if (lnoten == 1) {
-#line 6077 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 6077 ""
- }
-#line 6078 ""
- accsym_(&comgrace_1.naccg[ngs - 1], acsymq, &lacc, (ftnlen)3);
-/* Writing concatenation */
-#line 6079 ""
- i__4[0] = 1, a__3[0] = sq;
-#line 6079 ""
- i__4[1] = 3, a__3[1] = "big";
-#line 6079 ""
- i__4[2] = lacc, a__3[2] = acsymq;
-#line 6079 ""
- i__4[3] = lnoten, a__3[3] = noteq;
-#line 6079 ""
- s_cat(ch__9, a__3, i__4, &c__4, (ftnlen)15);
-#line 6079 ""
- i__1 = lacc + 4 + lnoten;
-#line 6079 ""
- addstr_(ch__9, &i__1, soutq, lsout, lacc + 4 + lnoten, (ftnlen)80)
- ;
-#line 6081 ""
- }
-#line 6082 ""
- if (comgrace_1.slashg[*ig - 1]) {
-/* Writing concatenation */
-#line 6083 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6083 ""
- i__2[1] = 3, a__1[1] = "grc";
-#line 6083 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6084 ""
- lnote = 4;
-#line 6085 ""
- } else if (mg == 0) {
-/* Writing concatenation */
-#line 6086 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6086 ""
- i__2[1] = 2, a__1[1] = "zq";
-#line 6086 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6087 ""
- lnote = 3;
-#line 6088 ""
- } else {
-/* Writing concatenation */
-#line 6089 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6089 ""
- i__2[1] = 2, a__1[1] = "zc";
-#line 6089 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6090 ""
- i__1 = mg;
-#line 6090 ""
- for (i__ = 2; i__ <= i__1; ++i__) {
-/* Writing concatenation */
-#line 6091 ""
- i__2[0] = i__ + 1, a__1[0] = notexq;
-#line 6091 ""
- i__2[1] = 1, a__1[1] = "c";
-#line 6091 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6092 ""
-/* L61: */
-#line 6092 ""
- }
-#line 6093 ""
- lnote = mg + 2;
-#line 6094 ""
- }
-#line 6095 ""
- if (comgrace_1.upg[*ig - 1]) {
-/* Writing concatenation */
-#line 6096 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 6096 ""
- i__2[1] = 1, a__1[1] = "u";
-#line 6096 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6097 ""
- } else {
-/* Writing concatenation */
-#line 6098 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 6098 ""
- i__2[1] = 1, a__1[1] = "l";
-#line 6098 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6099 ""
- }
-#line 6100 ""
- i__1 = lnote + 1;
-#line 6100 ""
- addstr_(notexq, &i__1, soutq, lsout, (ftnlen)79, (ftnlen)80);
-#line 6101 ""
- notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen)8);
-
-#line 6103 ""
- if (isgaft && comgrace_1.naccg[ngs - 1] == 0) {
-#line 6104 ""
- lnotenga = lnoten;
-#line 6105 ""
- s_copy(noteqga, noteq, (ftnlen)8, (ftnlen)8);
-#line 6106 ""
- }
-
-#line 6108 ""
- if (lnoten == 1) {
-#line 6108 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 6108 ""
- }
-#line 6109 ""
- addstr_(noteq, &lnoten, soutq, lsout, (ftnlen)8, (ftnlen)80);
-#line 6110 ""
- if (comgrace_1.slashg[*ig - 1]) {
-/* Writing concatenation */
-#line 6110 ""
- i__4[0] = 1, a__3[0] = sq;
-#line 6110 ""
- i__4[1] = 5, a__3[1] = "off{-";
-#line 6110 ""
- i__4[2] = 1, a__3[2] = sq;
-#line 6110 ""
- i__4[3] = 9, a__3[3] = "noteskip}";
-#line 6110 ""
- s_cat(ch__10, a__3, i__4, &c__4, (ftnlen)16);
-#line 6110 ""
- addstr_(ch__10, &c__16, soutq, lsout, (ftnlen)16, (ftnlen)80);
-#line 6110 ""
- }
-
-/* Above code needed since slashg causes spacing */
-
-#line 6115 ""
- if (comgrace_1.slurg[*ig - 1] && (iswaft || isgaft)) {
-
-/* Terminate slur on single after-grace */
-
-#line 6119 ""
- comslur_1.ndxslur = igetbits_(ipl, &c__5, &c__23);
-#line 6120 ""
- notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen)
- 8);
-/* Writing concatenation */
-#line 6121 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6121 ""
- i__2[1] = 5, a__1[1] = "tslur";
-#line 6121 ""
- s_cat(ch__2, a__1, i__2, &c__2, (ftnlen)6);
-#line 6121 ""
- addstr_(ch__2, &c__6, soutq, lsout, (ftnlen)6, (ftnlen)80);
-
-/* Print 24-ndxslur */
-
-/* if (11-ndxslur .lt. 10) then */
-#line 6126 ""
- if (23 - comslur_1.ndxslur < 10) {
-/* call addstr(chax(59-ndxslur)//noteq(1:lnoten), */
-/* Writing concatenation */
-#line 6128 ""
- i__1 = 71 - comslur_1.ndxslur;
-#line 6128 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6128 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 6128 ""
- i__2[1] = lnoten, a__1[1] = noteq;
-#line 6128 ""
- s_cat(ch__11, a__1, i__2, &c__2, (ftnlen)9);
-#line 6128 ""
- i__5 = lnoten + 1;
-#line 6128 ""
- addstr_(ch__11, &i__5, soutq, lsout, lnoten + 1, (ftnlen)80);
-#line 6130 ""
- } else if (23 - comslur_1.ndxslur < 20) {
-/* Writing concatenation */
-#line 6131 ""
- i__4[0] = 2, a__3[0] = "{2";
-#line 6131 ""
- i__1 = 61 - comslur_1.ndxslur;
-#line 6131 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6131 ""
- i__4[1] = 1, a__3[1] = ch__1;
-#line 6131 ""
- i__4[2] = 1, a__3[2] = "}";
-#line 6131 ""
- i__4[3] = lnoten, a__3[3] = noteq;
-#line 6131 ""
- s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12);
-#line 6131 ""
- i__5 = lnoten + 4;
-#line 6131 ""
- addstr_(ch__12, &i__5, soutq, lsout, lnoten + 4, (ftnlen)80);
-#line 6133 ""
- } else {
-/* call addstr('{1'//chax(49-ndxslur)//'}'//noteq(1:lnoten), */
-/* Writing concatenation */
-#line 6135 ""
- i__4[0] = 2, a__3[0] = "{1";
-#line 6135 ""
- i__1 = 51 - comslur_1.ndxslur;
-#line 6135 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6135 ""
- i__4[1] = 1, a__3[1] = ch__1;
-#line 6135 ""
- i__4[2] = 1, a__3[2] = "}";
-#line 6135 ""
- i__4[3] = lnoten, a__3[3] = noteq;
-#line 6135 ""
- s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12);
-#line 6135 ""
- i__5 = lnoten + 4;
-#line 6135 ""
- addstr_(ch__12, &i__5, soutq, lsout, lnoten + 4, (ftnlen)80);
-#line 6137 ""
- }
-#line 6138 ""
- comgrace_1.slurg[*ig - 1] = FALSE_;
-#line 6139 ""
- comslur_1.listslur = bit_clear(comslur_1.listslur,
- comslur_1.ndxslur);
-#line 6140 ""
- }
-#line 6141 ""
- addstr_("}", &c__1, soutq, lsout, (ftnlen)1, (ftnlen)80);
-
-/* +++ Try to fix loss of octave with single gaft */
-
-#line 6145 ""
- if (isgaft) {
-#line 6146 ""
- itrans = 0;
-#line 6147 ""
- i__1 = lnotenga;
-#line 6147 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 6148 ""
- chax_(ch__1, (ftnlen)1, &c__39);
-#line 6148 ""
- if (*(unsigned char *)&noteqga[i__ - 1] == *(unsigned char *)&
- ch__1[0]) {
-#line 6149 ""
- itrans += 7;
-#line 6150 ""
- } else /* if(complicated condition) */ {
-#line 6150 ""
- chax_(ch__1, (ftnlen)1, &c__96);
-#line 6150 ""
- if (*(unsigned char *)&noteqga[i__ - 1] == *(unsigned
- char *)&ch__1[0]) {
-#line 6151 ""
- itrans += -7;
-#line 6152 ""
- }
-#line 6152 ""
- }
-#line 6153 ""
-/* L1: */
-#line 6153 ""
- }
-#line 6154 ""
- if (itrans == -14) {
-/* Writing concatenation */
-#line 6155 ""
- i__4[0] = 1, a__3[0] = sq;
-#line 6155 ""
- i__4[1] = 7, a__3[1] = "advance";
-#line 6155 ""
- i__4[2] = 1, a__3[2] = sq;
-#line 6155 ""
- i__4[3] = 12, a__3[3] = "transpose-14";
-#line 6155 ""
- s_cat(ch__13, a__3, i__4, &c__4, (ftnlen)21);
-#line 6155 ""
- addstr_(ch__13, &c__21, soutq, lsout, (ftnlen)21, (ftnlen)80);
-#line 6157 ""
- } else if (itrans == -7) {
-/* Writing concatenation */
-#line 6158 ""
- i__4[0] = 1, a__3[0] = sq;
-#line 6158 ""
- i__4[1] = 7, a__3[1] = "advance";
-#line 6158 ""
- i__4[2] = 1, a__3[2] = sq;
-#line 6158 ""
- i__4[3] = 11, a__3[3] = "transpose-7";
-#line 6158 ""
- s_cat(ch__14, a__3, i__4, &c__4, (ftnlen)20);
-#line 6158 ""
- addstr_(ch__14, &c__20, soutq, lsout, (ftnlen)20, (ftnlen)80);
-#line 6160 ""
- } else if (itrans == 7) {
-/* Writing concatenation */
-#line 6161 ""
- i__4[0] = 1, a__3[0] = sq;
-#line 6161 ""
- i__4[1] = 7, a__3[1] = "advance";
-#line 6161 ""
- i__4[2] = 1, a__3[2] = sq;
-#line 6161 ""
- i__4[3] = 10, a__3[3] = "transpose7";
-#line 6161 ""
- s_cat(ch__15, a__3, i__4, &c__4, (ftnlen)19);
-#line 6161 ""
- addstr_(ch__15, &c__19, soutq, lsout, (ftnlen)19, (ftnlen)80);
-#line 6163 ""
- } else if (itrans == 14) {
-/* Writing concatenation */
-#line 6164 ""
- i__4[0] = 1, a__3[0] = sq;
-#line 6164 ""
- i__4[1] = 7, a__3[1] = "advance";
-#line 6164 ""
- i__4[2] = 1, a__3[2] = sq;
-#line 6164 ""
- i__4[3] = 11, a__3[3] = "transpose14";
-#line 6164 ""
- s_cat(ch__14, a__3, i__4, &c__4, (ftnlen)20);
-#line 6164 ""
- addstr_(ch__14, &c__20, soutq, lsout, (ftnlen)20, (ftnlen)80);
-#line 6166 ""
- }
-#line 6167 ""
- }
-#line 6168 ""
- } else {
-
-/* Multiple grace. Put in literally. Compute beam stuff */
-
-#line 6172 ""
- sumx = 0.f;
-#line 6173 ""
- sumy = 0.f;
-#line 6174 ""
- sumxy = 0.f;
-#line 6175 ""
- sumxx = 0.f;
-#line 6176 ""
- sumyy = 0.f;
-#line 6177 ""
- x = 0.f;
-#line 6178 ""
- i__1 = ngs + comgrace_1.nng[*ig - 1] - 1;
-#line 6178 ""
- for (ing = ngs; ing <= i__1; ++ing) {
-#line 6179 ""
- if (ing > ngs && comgrace_1.naccg[ing - 1] > 0) {
-#line 6179 ""
- x += spfacs_1.acgfac;
-#line 6179 ""
- }
-#line 6180 ""
- y = (real) comgrace_1.nolevg[ing - 1];
-#line 6181 ""
- sumx += x;
-#line 6182 ""
- sumy += y;
-#line 6183 ""
- sumxy += x * y;
-#line 6184 ""
- sumxx += x * x;
-#line 6185 ""
- sumyy += y * y;
-#line 6186 ""
- x += spfacs_1.emgfac;
-#line 6187 ""
-/* L118: */
-#line 6187 ""
- }
-#line 6188 ""
- delta = comgrace_1.nng[*ig - 1] * sumxx - sumx * sumx;
-#line 6189 ""
- em = (comgrace_1.nng[*ig - 1] * sumxy - sumx * sumy) / delta;
-#line 6190 ""
- r__1 = em * .5f * spfacs_1.gslfac;
-#line 6190 ""
- islope = i_nint(&r__1);
-#line 6191 ""
- if (abs(islope) > 9) {
-#line 6191 ""
- islope = i_sign(&c__9, &islope);
-#line 6191 ""
- }
-#line 6192 ""
- beta = (sumy - islope / spfacs_1.gslfac * sumx) / comgrace_1.nng[*ig
- - 1];
-#line 6193 ""
- nolev1 = i_nint(&beta);
-
-/* Back up */
-
-/* Writing concatenation */
-#line 6197 ""
- i__4[0] = 1, a__3[0] = sq;
-#line 6197 ""
- i__4[1] = 7, a__3[1] = "settiny";
-#line 6197 ""
- i__4[2] = 1, a__3[2] = sq;
-#line 6197 ""
- i__4[3] = 4, a__3[3] = "off{";
-#line 6197 ""
- s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79);
-#line 6198 ""
- if (normsp) {
-#line 6199 ""
- s_wsfi(&io___460);
-#line 6199 ""
- do_fio(&c__1, "-", (ftnlen)1);
-#line 6199 ""
- do_fio(&c__1, (char *)&ptgr[*ig], (ftnlen)sizeof(real));
-#line 6199 ""
- e_wsfi();
-/* Writing concatenation */
-#line 6200 ""
- i__2[0] = 18, a__1[0] = notexq;
-#line 6200 ""
- i__2[1] = 3, a__1[1] = "pt}";
-#line 6200 ""
- s_cat(ch__13, a__1, i__2, &c__2, (ftnlen)21);
-#line 6200 ""
- addstr_(ch__13, &c__21, soutq, lsout, (ftnlen)21, (ftnlen)80);
-#line 6201 ""
- finalshift = ptgr[*ig];
-#line 6202 ""
- } else {
-#line 6203 ""
- comgrace_1.aftshft = comask_1.wheadpt * 1.33f;
-#line 6204 ""
- if (comgrace_1.naccg[comgrace_1.ngstrt[*ig - 1] - 1] > 0) {
-#line 6204 ""
- comgrace_1.aftshft += comask_1.wheadpt * .5f;
-#line 6204 ""
- }
-#line 6205 ""
- s_wsfi(&io___462);
-#line 6205 ""
- do_fio(&c__1, (char *)&comgrace_1.aftshft, (ftnlen)sizeof(real));
-#line 6205 ""
- e_wsfi();
-/* Writing concatenation */
-#line 6206 ""
- i__4[0] = 17, a__3[0] = notexq;
-#line 6206 ""
- i__4[1] = 3, a__3[1] = "pt}";
-#line 6206 ""
- i__4[2] = 1, a__3[2] = sq;
-#line 6206 ""
- i__4[3] = 3, a__3[3] = "bsk";
-#line 6206 ""
- s_cat(ch__16, a__3, i__4, &c__4, (ftnlen)24);
-#line 6206 ""
- addstr_(ch__16, &c__24, soutq, lsout, (ftnlen)24, (ftnlen)80);
-#line 6207 ""
- }
-
-/* Start the beam */
-
-/* Writing concatenation */
-#line 6211 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6211 ""
- i__2[1] = 2, a__1[1] = "ib";
-#line 6211 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6212 ""
- i__1 = mg;
-#line 6212 ""
- for (ing = 2; ing <= i__1; ++ing) {
-/* Writing concatenation */
-#line 6213 ""
- i__2[0] = ing + 1, a__1[0] = notexq;
-#line 6213 ""
- i__2[1] = 1, a__1[1] = "b";
-#line 6213 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6214 ""
-/* L119: */
-#line 6214 ""
- }
-#line 6215 ""
- if (comgrace_1.upg[*ig - 1]) {
-/* Writing concatenation */
-#line 6216 ""
- i__2[0] = mg + 2, a__1[0] = notexq;
-#line 6216 ""
- i__2[1] = 1, a__1[1] = "u";
-#line 6216 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6217 ""
- } else {
-/* Writing concatenation */
-#line 6218 ""
- i__2[0] = mg + 2, a__1[0] = notexq;
-#line 6218 ""
- i__2[1] = 1, a__1[1] = "l";
-#line 6218 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6219 ""
- }
-/* Writing concatenation */
-#line 6220 ""
- i__2[0] = mg + 3, a__1[0] = notexq;
-#line 6220 ""
- i__2[1] = 1, a__1[1] = "0";
-#line 6220 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-
-/* Get starting note for beam */
-
-#line 6224 ""
- notefq_(noteq, &lnoten, &nolev1, ncm, (ftnlen)8);
-/* Writing concatenation */
-#line 6225 ""
- i__2[0] = mg + 4, a__1[0] = notexq;
-#line 6225 ""
- i__2[1] = lnoten, a__1[1] = noteq;
-#line 6225 ""
- s_cat(ch__8, a__1, i__2, &c__2, (ftnlen)87);
-#line 6225 ""
- i__1 = mg + 4 + lnoten;
-#line 6225 ""
- addstr_(ch__8, &i__1, soutq, lsout, mg + 4 + lnoten, (ftnlen)80);
-
-/* Put in the slope */
-
-#line 6230 ""
- if (islope >= 0) {
-#line 6231 ""
- i__1 = islope + 48;
-#line 6231 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6231 ""
- addstr_(ch__1, &c__1, soutq, lsout, (ftnlen)1, (ftnlen)80);
-#line 6232 ""
- } else {
-/* Writing concatenation */
-#line 6233 ""
- i__3[0] = 2, a__2[0] = "{-";
-#line 6233 ""
- i__1 = 48 - islope;
-#line 6233 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6233 ""
- i__3[1] = 1, a__2[1] = ch__1;
-#line 6233 ""
- i__3[2] = 1, a__2[2] = "}";
-#line 6233 ""
- s_cat(ch__7, a__2, i__3, &c__3, (ftnlen)4);
-#line 6233 ""
- addstr_(ch__7, &c__4, soutq, lsout, (ftnlen)4, (ftnlen)80);
-#line 6234 ""
- }
-
-/* Start a slur on multiple fore-grace */
-
-#line 6238 ""
- if (comgrace_1.slurg[*ig - 1] && ! isgaft && ! iswaft) {
-#line 6239 ""
- notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen)
- 8);
-#line 6240 ""
- if (comslur_1.fontslur) {
-#line 6241 ""
- if (comgrace_1.upg[*ig - 1]) {
-/* Writing concatenation */
-#line 6242 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6242 ""
- i__2[1] = 6, a__1[1] = "islurd";
-#line 6242 ""
- s_cat(ch__6, a__1, i__2, &c__2, (ftnlen)7);
-#line 6242 ""
- addstr_(ch__6, &c__7, soutq, lsout, (ftnlen)7, (ftnlen)80)
- ;
-#line 6243 ""
- } else {
-/* Writing concatenation */
-#line 6244 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6244 ""
- i__2[1] = 6, a__1[1] = "isluru";
-#line 6244 ""
- s_cat(ch__6, a__1, i__2, &c__2, (ftnlen)7);
-#line 6244 ""
- addstr_(ch__6, &c__7, soutq, lsout, (ftnlen)7, (ftnlen)80)
- ;
-#line 6245 ""
- }
-#line 6246 ""
- } else {
-
-/* Need a tweak for postscript slur */
-
-#line 6250 ""
- if (comgrace_1.upg[*ig - 1]) {
-/* Writing concatenation */
-#line 6251 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6251 ""
- i__2[1] = 3, a__1[1] = "isd";
-#line 6251 ""
- s_cat(ch__7, a__1, i__2, &c__2, (ftnlen)4);
-#line 6251 ""
- addstr_(ch__7, &c__4, soutq, lsout, (ftnlen)4, (ftnlen)80)
- ;
-#line 6252 ""
- } else {
-/* Writing concatenation */
-#line 6253 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6253 ""
- i__2[1] = 3, a__1[1] = "isu";
-#line 6253 ""
- s_cat(ch__7, a__1, i__2, &c__2, (ftnlen)4);
-#line 6253 ""
- addstr_(ch__7, &c__4, soutq, lsout, (ftnlen)4, (ftnlen)80)
- ;
-#line 6254 ""
- }
-#line 6255 ""
- }
-
-/* Print 23-ndxslur */
-
-#line 6259 ""
- if (23 - comslur_1.ndxslur < 10) {
-/* Writing concatenation */
-#line 6260 ""
- i__1 = 71 - comslur_1.ndxslur;
-#line 6260 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6260 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 6260 ""
- i__2[1] = lnoten, a__1[1] = noteq;
-#line 6260 ""
- s_cat(ch__11, a__1, i__2, &c__2, (ftnlen)9);
-#line 6260 ""
- i__5 = lnoten + 1;
-#line 6260 ""
- addstr_(ch__11, &i__5, soutq, lsout, lnoten + 1, (ftnlen)80);
-#line 6262 ""
- } else if (23 - comslur_1.ndxslur < 2) {
-/* Writing concatenation */
-#line 6263 ""
- i__4[0] = 2, a__3[0] = "{1";
-#line 6263 ""
- i__1 = 61 - comslur_1.ndxslur;
-#line 6263 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6263 ""
- i__4[1] = 1, a__3[1] = ch__1;
-#line 6263 ""
- i__4[2] = 1, a__3[2] = "}";
-#line 6263 ""
- i__4[3] = lnoten, a__3[3] = noteq;
-#line 6263 ""
- s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12);
-#line 6263 ""
- i__5 = lnoten + 4;
-#line 6263 ""
- addstr_(ch__12, &i__5, soutq, lsout, lnoten + 4, (ftnlen)80);
-#line 6265 ""
- } else {
-/* Writing concatenation */
-#line 6266 ""
- i__4[0] = 2, a__3[0] = "{1";
-#line 6266 ""
- i__1 = 51 - comslur_1.ndxslur;
-#line 6266 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 6266 ""
- i__4[1] = 1, a__3[1] = ch__1;
-#line 6266 ""
- i__4[2] = 1, a__3[2] = "}";
-#line 6266 ""
- i__4[3] = lnoten, a__3[3] = noteq;
-#line 6266 ""
- s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12);
-#line 6266 ""
- i__5 = lnoten + 4;
-#line 6266 ""
- addstr_(ch__12, &i__5, soutq, lsout, lnoten + 4, (ftnlen)80);
-#line 6268 ""
- }
-
-/* Put in tweak for postscript slur */
-
-#line 6272 ""
- if (! comslur_1.fontslur) {
-#line 6272 ""
- addstr_("{-.3}", &c__5, soutq, lsout, (ftnlen)5, (ftnlen)80);
-#line 6272 ""
- }
-#line 6273 ""
- }
-
-/* Put in first note. Call notefq again in case octave changed */
-
-#line 6277 ""
- notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen)8);
-#line 6278 ""
- if (comgrace_1.naccg[ngs - 1] == 0) {
-/* Writing concatenation */
-#line 6279 ""
- i__3[0] = 1, a__2[0] = sq;
-#line 6279 ""
- i__3[1] = 4, a__2[1] = "zqb0";
-#line 6279 ""
- i__3[2] = lnoten, a__2[2] = noteq;
-#line 6279 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79);
-#line 6280 ""
- lnote = lnoten + 5;
-#line 6281 ""
- } else {
-#line 6282 ""
- if (lnoten == 1) {
-#line 6282 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 6282 ""
- }
-#line 6283 ""
- accsym_(&comgrace_1.naccg[ngs - 1], acsymq, &lacc, (ftnlen)3);
-/* Writing concatenation */
-#line 6284 ""
- i__4[0] = 1, a__3[0] = sq;
-#line 6284 ""
- i__4[1] = 3, a__3[1] = "big";
-#line 6284 ""
- i__4[2] = lacc, a__3[2] = acsymq;
-#line 6284 ""
- i__4[3] = lnoten, a__3[3] = noteq;
-#line 6284 ""
- s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79);
-#line 6285 ""
- lnote = lacc + 4 + lnoten;
-#line 6286 ""
- notefq_(noteq, &lnoten, &comgrace_1.nolevg[ngs - 1], ncm, (ftnlen)
- 8);
-/* Writing concatenation */
-#line 6287 ""
- i__4[0] = lnote, a__3[0] = notexq;
-#line 6287 ""
- i__4[1] = 1, a__3[1] = sq;
-#line 6287 ""
- i__4[2] = 4, a__3[2] = "zqb0";
-#line 6287 ""
- i__4[3] = lnoten, a__3[3] = noteq;
-#line 6287 ""
- s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79);
-#line 6288 ""
- lnote = lnote + 5 + lnoten;
-#line 6289 ""
- }
-#line 6290 ""
- addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80);
-#line 6291 ""
- i__1 = ngs + comgrace_1.nng[*ig - 1] - 1;
-#line 6291 ""
- for (ing = ngs + 1; ing <= i__1; ++ing) {
-
-/* Skip */
-
-#line 6295 ""
- ptoff = wheadpt1 * spfacs_1.emgfac;
-#line 6296 ""
- if (comgrace_1.naccg[ing - 1] > 0) {
-#line 6296 ""
- ptoff += wheadpt1 * spfacs_1.acgfac;
-#line 6296 ""
- }
-#line 6297 ""
- if (isgaft && ! iswaft) {
-#line 6297 ""
- comgrace_1.aftshft += ptoff;
-#line 6297 ""
- }
-/* Writing concatenation */
-#line 6298 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6298 ""
- i__2[1] = 4, a__1[1] = "off{";
-#line 6298 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6299 ""
- s_wsfi(&io___464);
-#line 6299 ""
- do_fio(&c__1, (char *)&ptoff, (ftnlen)sizeof(real));
-#line 6299 ""
- e_wsfi();
-#line 6300 ""
- if (normsp) {
-#line 6300 ""
- finalshift -= ptoff;
-#line 6300 ""
- }
-/* Writing concatenation */
-#line 6301 ""
- i__2[0] = 8, a__1[0] = notexq;
-#line 6301 ""
- i__2[1] = 3, a__1[1] = "pt}";
-#line 6301 ""
- s_cat(ch__5, a__1, i__2, &c__2, (ftnlen)11);
-#line 6301 ""
- addstr_(ch__5, &c__11, soutq, lsout, (ftnlen)11, (ftnlen)80);
-#line 6302 ""
- if (ing == ngs + comgrace_1.nng[*ig - 1] - 1) {
-
-/* Terminate beam if needed */
-
-#line 6306 ""
- if (comgrace_1.upg[*ig - 1]) {
-/* Writing concatenation */
-#line 6307 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6307 ""
- i__2[1] = 4, a__1[1] = "tbu0";
-#line 6307 ""
- s_cat(ch__4, a__1, i__2, &c__2, (ftnlen)5);
-#line 6307 ""
- addstr_(ch__4, &c__5, soutq, lsout, (ftnlen)5, (ftnlen)80)
- ;
-#line 6308 ""
- } else {
-/* Writing concatenation */
-#line 6309 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6309 ""
- i__2[1] = 4, a__1[1] = "tbl0";
-#line 6309 ""
- s_cat(ch__4, a__1, i__2, &c__2, (ftnlen)5);
-#line 6309 ""
- addstr_(ch__4, &c__5, soutq, lsout, (ftnlen)5, (ftnlen)80)
- ;
-#line 6310 ""
- }
-
-/* Terminate after slur if needed */
-
-#line 6314 ""
- if ((isgaft || iswaft) && comgrace_1.slurg[*ig - 1]) {
-/* if (iswaft) ndxslur = igetbits(ipl,4,23) */
-#line 6316 ""
- if (iswaft) {
-#line 6316 ""
- comslur_1.ndxslur = igetbits_(ipl, &c__5, &c__23);
-#line 6316 ""
- }
-#line 6317 ""
- notefq_(noteq, &lnoten, &comgrace_1.nolevg[ing - 1], ncm,
- (ftnlen)8);
-/* Writing concatenation */
-#line 6318 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6318 ""
- i__2[1] = 5, a__1[1] = "tslur";
-#line 6318 ""
- s_cat(ch__2, a__1, i__2, &c__2, (ftnlen)6);
-#line 6318 ""
- addstr_(ch__2, &c__6, soutq, lsout, (ftnlen)6, (ftnlen)80)
- ;
-
-/* Print 11-ndxslur */
-/* c Print 23-ndxslur */
-
-#line 6323 ""
- if (23 - comslur_1.ndxslur < 10) {
-/* Writing concatenation */
-#line 6324 ""
- i__5 = 71 - comslur_1.ndxslur;
-#line 6324 ""
- chax_(ch__1, (ftnlen)1, &i__5);
-#line 6324 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 6324 ""
- i__2[1] = lnoten, a__1[1] = noteq;
-#line 6324 ""
- s_cat(ch__11, a__1, i__2, &c__2, (ftnlen)9);
-#line 6324 ""
- i__6 = lnoten + 1;
-#line 6324 ""
- addstr_(ch__11, &i__6, soutq, lsout, lnoten + 1, (
- ftnlen)80);
-#line 6326 ""
- } else if (23 - comslur_1.ndxslur < 20) {
-/* Writing concatenation */
-#line 6327 ""
- i__4[0] = 2, a__3[0] = "{2";
-#line 6327 ""
- i__5 = 61 - comslur_1.ndxslur;
-#line 6327 ""
- chax_(ch__1, (ftnlen)1, &i__5);
-#line 6327 ""
- i__4[1] = 1, a__3[1] = ch__1;
-#line 6327 ""
- i__4[2] = 1, a__3[2] = "}";
-#line 6327 ""
- i__4[3] = lnoten, a__3[3] = noteq;
-#line 6327 ""
- s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12);
-#line 6327 ""
- i__6 = lnoten + 4;
-#line 6327 ""
- addstr_(ch__12, &i__6, soutq, lsout, lnoten + 4, (
- ftnlen)80);
-#line 6329 ""
- } else {
-/* Writing concatenation */
-#line 6330 ""
- i__4[0] = 2, a__3[0] = "{1";
-#line 6330 ""
- i__5 = 51 - comslur_1.ndxslur;
-#line 6330 ""
- chax_(ch__1, (ftnlen)1, &i__5);
-#line 6330 ""
- i__4[1] = 1, a__3[1] = ch__1;
-#line 6330 ""
- i__4[2] = 1, a__3[2] = "}";
-#line 6330 ""
- i__4[3] = lnoten, a__3[3] = noteq;
-#line 6330 ""
- s_cat(ch__12, a__3, i__4, &c__4, (ftnlen)12);
-#line 6330 ""
- i__6 = lnoten + 4;
-#line 6330 ""
- addstr_(ch__12, &i__6, soutq, lsout, lnoten + 4, (
- ftnlen)80);
-#line 6332 ""
- }
-
-/* Stop slur terminator after exit from this subroutine */
-
-#line 6336 ""
- comslur_1.listslur = bit_clear(comslur_1.listslur,
- comslur_1.ndxslur);
-#line 6337 ""
- comgrace_1.slurg[*ig - 1] = FALSE_;
-#line 6338 ""
- }
-#line 6339 ""
- }
-
-/* Accidental if needed */
-
-#line 6343 ""
- if (comgrace_1.naccg[ing - 1] > 0) {
-#line 6344 ""
- notefq_(noteq, &lnoten, &comgrace_1.nolevg[ing - 1], ncm, (
- ftnlen)8);
-#line 6345 ""
- if (lnoten == 1) {
-#line 6345 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 6345 ""
- }
-#line 6346 ""
- accsym_(&comgrace_1.naccg[ing - 1], acsymq, &lacc, (ftnlen)3);
-/* Writing concatenation */
-#line 6347 ""
- i__4[0] = 1, a__3[0] = sq;
-#line 6347 ""
- i__4[1] = 3, a__3[1] = "big";
-#line 6347 ""
- i__4[2] = lacc, a__3[2] = acsymq;
-#line 6347 ""
- i__4[3] = lnoten, a__3[3] = noteq;
-#line 6347 ""
- s_cat(ch__9, a__3, i__4, &c__4, (ftnlen)15);
-#line 6347 ""
- i__5 = lacc + 4 + lnoten;
-#line 6347 ""
- addstr_(ch__9, &i__5, soutq, lsout, lacc + 4 + lnoten, (
- ftnlen)80);
-#line 6349 ""
- }
-
-/* Put in the (beamed) grace note */
-
-#line 6353 ""
- notefq_(noteq, &lnoten, &comgrace_1.nolevg[ing - 1], ncm, (ftnlen)
- 8);
-/* Writing concatenation */
-#line 6354 ""
- i__3[0] = 1, a__2[0] = sq;
-#line 6354 ""
- i__3[1] = 4, a__2[1] = "zqb0";
-#line 6354 ""
- i__3[2] = lnoten, a__2[2] = noteq;
-#line 6354 ""
- s_cat(ch__17, a__2, i__3, &c__3, (ftnlen)13);
-#line 6354 ""
- i__5 = lnoten + 5;
-#line 6354 ""
- addstr_(ch__17, &i__5, soutq, lsout, lnoten + 5, (ftnlen)80);
-#line 6356 ""
-/* L127: */
-#line 6356 ""
- }
-
-/* Terminate the grace */
-
-/* notexq = sq//'normalnotesize'//sq//'off{' */
-/* lnote = 20 */
-/* notexq = '}'//sq//'off{' */
-/* lnote = 6 */
-/* Writing concatenation */
-#line 6364 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6364 ""
- i__2[1] = 4, a__1[1] = "off{";
-#line 6364 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6365 ""
- lnote = 5;
-#line 6366 ""
- ptoff = comask_1.wheadpt * spfacs_1.emgfac;
-#line 6367 ""
- if ((*nacc & 3) > 0 && ! bit_test(*nacc,17)) {
-#line 6367 ""
- ptoff += comask_1.wheadpt * spfacs_1.accfac;
-#line 6367 ""
- }
-#line 6369 ""
- if (isgaft && ! iswaft) {
-/* Writing concatenation */
-#line 6370 ""
- i__2[0] = 5, a__1[0] = notexq;
-#line 6370 ""
- i__2[1] = 1, a__1[1] = "-";
-#line 6370 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 6371 ""
- lnote = 6;
-#line 6372 ""
- ptoff = comgrace_1.aftshft;
-#line 6373 ""
- }
-#line 6374 ""
- if (normsp) {
-#line 6374 ""
- ptoff = finalshift;
-#line 6374 ""
- }
-#line 6375 ""
- if (ptoff < 9.95f) {
-#line 6376 ""
- i__1 = lnote;
-#line 6376 ""
- ici__1.icierr = 0;
-#line 6376 ""
- ici__1.icirnum = 1;
-#line 6376 ""
- ici__1.icirlen = lnote + 3 - i__1;
-#line 6376 ""
- ici__1.iciunit = notexq + i__1;
-#line 6376 ""
- ici__1.icifmt = "(f3.1)";
-#line 6376 ""
- s_wsfi(&ici__1);
-#line 6376 ""
- do_fio(&c__1, (char *)&ptoff, (ftnlen)sizeof(real));
-#line 6376 ""
- e_wsfi();
-#line 6377 ""
- lnote += 3;
-#line 6378 ""
- } else if (ptoff < 99.95f) {
-#line 6379 ""
- i__1 = lnote;
-#line 6379 ""
- ici__1.icierr = 0;
-#line 6379 ""
- ici__1.icirnum = 1;
-#line 6379 ""
- ici__1.icirlen = lnote + 4 - i__1;
-#line 6379 ""
- ici__1.iciunit = notexq + i__1;
-#line 6379 ""
- ici__1.icifmt = "(f4.1)";
-#line 6379 ""
- s_wsfi(&ici__1);
-#line 6379 ""
- do_fio(&c__1, (char *)&ptoff, (ftnlen)sizeof(real));
-#line 6379 ""
- e_wsfi();
-#line 6380 ""
- lnote += 4;
-#line 6381 ""
- } else {
-#line 6382 ""
- i__1 = lnote;
-#line 6382 ""
- ici__1.icierr = 0;
-#line 6382 ""
- ici__1.icirnum = 1;
-#line 6382 ""
- ici__1.icirlen = lnote + 5 - i__1;
-#line 6382 ""
- ici__1.iciunit = notexq + i__1;
-#line 6382 ""
- ici__1.icifmt = "(f5.1)";
-#line 6382 ""
- s_wsfi(&ici__1);
-#line 6382 ""
- do_fio(&c__1, (char *)&ptoff, (ftnlen)sizeof(real));
-#line 6382 ""
- e_wsfi();
-#line 6383 ""
- lnote += 5;
-#line 6384 ""
- }
-/* Writing concatenation */
-#line 6385 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 6385 ""
- i__2[1] = 3, a__1[1] = "pt}";
-#line 6385 ""
- s_cat(ch__18, a__1, i__2, &c__2, (ftnlen)82);
-#line 6385 ""
- i__1 = lnote + 3;
-#line 6385 ""
- addstr_(ch__18, &i__1, soutq, lsout, lnote + 3, (ftnlen)80);
-#line 6386 ""
- if (isgaft && ! iswaft) {
-/* Writing concatenation */
-#line 6386 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6386 ""
- i__2[1] = 2, a__1[1] = "sk";
-#line 6386 ""
- s_cat(ch__19, a__1, i__2, &c__2, (ftnlen)3);
-#line 6386 ""
- addstr_(ch__19, &c__3, soutq, lsout, (ftnlen)3, (ftnlen)80);
-#line 6386 ""
- }
-/* Writing concatenation */
-#line 6387 ""
- i__2[0] = 1, a__1[0] = sq;
-#line 6387 ""
- i__2[1] = 9, a__1[1] = "resetsize";
-#line 6387 ""
- s_cat(ch__20, a__1, i__2, &c__2, (ftnlen)10);
-#line 6387 ""
- addstr_(ch__20, &c__10, soutq, lsout, (ftnlen)10, (ftnlen)80);
-#line 6388 ""
- }
-#line 6389 ""
- return 0;
-} /* dograce_ */
-
-/* Subroutine */ int dopsslur_(integer *nolev, integer *isdat1, integer *
- isdat2, integer *isdat3, integer *isdat4, integer *nsdat, integer *ip,
- integer *iv, integer *kv, integer *nv, logical *beamon, integer *ncm,
- char *soutq, integer *lsout, char *ulq, integer *islur, integer *ipl,
- integer *iornq, integer *islhgt, real *tno, integer *nacc, ftnlen
- soutq_len, ftnlen ulq_len)
-{
- /* System generated locals */
- address a__1[3], a__2[4], a__3[2];
- integer i__1, i__2, i__3[3], i__4[4], i__5[2], i__6;
- char ch__1[1], ch__2[1], ch__3[6], ch__4[9];
- icilist ici__1;
-
- /* Builtin functions */
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen), s_wsfe(cilist *), do_fio(integer *, char *, ftnlen),
- e_wsfe(void);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen), s_cat(char *,
- char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), e_wsfi(void);
-
- /* Local variables */
- static integer ivoffinc;
- extern integer igetbits_(integer *, integer *, integer *);
- static integer j, icm;
- extern integer log2_(integer *);
- static integer imid;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *), udfq_(char *
- , ftnlen, integer *, integer *), udqq_(char *, ftnlen, integer *,
- integer *, integer *, integer *, integer *, integer *);
- extern integer lfmt1_(real *);
- extern /* Subroutine */ int stop1_(void);
- static integer ihoff;
- static logical iscrd;
- static integer isdat, ivoff;
- static real shift;
- static integer iupdn, lform, lnote;
- static logical pstie;
- static char noteq[8];
- static integer idcode, isdata;
- extern /* Subroutine */ int addstr_(char *, integer *, char *, integer *,
- ftnlen, ftnlen);
- static logical settie;
- extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer
- *, ftnlen);
- static integer lnoten, nolevs;
- static logical stemup;
- static char notexq[79];
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *);
- static integer numdrop;
- static char slurudq[1];
-
- /* Fortran I/O blocks */
- static cilist io___478 = { 0, 6, 0, 0, 0 };
- static cilist io___479 = { 0, 6, 0, 0, 0 };
- static cilist io___480 = { 0, 15, 0, "(/,a)", 0 };
- static cilist io___488 = { 0, 6, 0, 0, 0 };
-
-
-
-/* Called once per main note. */
-/* 12 May 2002 Create this subroutine to isolate postscript slurs/ties. */
-/* Always set \Nosluradjust\Notieadjust */
-
-/* 130316 */
-
-/* Bits in isdat1: */
-/* 13-17 iv */
-/* 3-10 ip */
-/* 11 start/stop switch */
-/* 12 kv-1 */
-/* 19-25 ichar(code$) */
-/* 26 force direction? */
-/* 27 forced dir'n = up if on, set in sslur; also */
-/* final direction, set in doslur when beam is started, used on term. */
-/* 28-31 mod(ndxslur,16), set in doslur when slur is started, used on term. */
-/* 18 int(ndxslur/16), ditto. So this allows ndxslur>15. */
-/* 2 stem slur flag */
-/* 1 flag for "x" slur (voice-independent) */
-
-/* Bits in isdat2 */
-/* 0 Chord switch. Not set on main note. */
-/* 1-2 left/right notehead shift. Set only for chord note. */
-/* 3 tie positioning */
-/* 4 dotted flag */
-/* 6-11 voff1 1-63 => -31...+31 */
-/* 12-18 hoff1 1-127 => -6.3...+6.3 */
-/* 19-25 nolev */
-/* 26 \sluradjust (p+s) */
-/* 27 \nosluradjust (p-s) */
-/* 28 \tieadjust (p+t) */
-/* 29 \notieadjust (p-t) */
-
-/* Bits in isdat3: Only used for slur endings */
-/* 0 set if midslur (at least one argument) */
-/* 1 set if curve (2 more args) */
-/* 2-7 32+first arg (height correction) (1st arg may be negative) */
-/* 8-10 second arg (initial slope) */
-/* 11-13 third arg (closing slope) */
-/* 14-21 tie level for use in LineBreakTies */
-/* 22-29 ncm for use in LineBreakTies */
-
-/* Bits in isdat4 Only used for linebreak slurs */
-/* 0-5 Linebreak seg 1 voff 1-63 => -31...+31 */
-/* 6-12 Linebreak seg 1 hoff 1-127 => -6.3...+6.3 */
-/* 16-21 Linebreak seg 2 voff 1-63 => -31...+31 */
-/* 22-28 Linebreak seg 2 hoff 1-127 => -6.3...+6.3 */
-
-/* In listslur bit ib is on if slur index ib is in use, ib=0-13. */
-/* ndxslur = slur index */
-/* Height of slur is nole+ivoff+iupdn. iupdn is +/-1 if t&s slurs on same note, */
-/* s-slur is blank (idcode=32), t-slur is idcode=1. */
-/* ivoff is user-defined shift or shift due to . or _ , or chord adjustment. */
-/* Ivoff will be set for ./_ only if no user-defined shift is specified. */
-/* If highest note has upslur, save slur height in islhgt in case */
-/* ornament must be moved. */
-
-#line 6486 ""
- /* Parameter adjustments */
-#line 6486 ""
- --isdat4;
-#line 6486 ""
- --isdat3;
-#line 6486 ""
- --isdat2;
-#line 6486 ""
- --isdat1;
-#line 6486 ""
-
-#line 6486 ""
- /* Function Body */
-#line 6486 ""
- *islhgt = 0;
-#line 6487 ""
- if (*beamon) {
-#line 6488 ""
- stemup = *(unsigned char *)ulq == 'u';
-#line 6489 ""
- } else if (commvl_1.nvmx[*iv - 1] == 2) {
-#line 6490 ""
- if (! bit_test(*islur,30)) {
-
-/* Single note, 2 lines of music, stem direction not forced */
-
-#line 6494 ""
- stemup = commvl_1.ivx > *nv;
-#line 6495 ""
- } else {
-#line 6496 ""
- stemup = bit_test(*islur,17);
-#line 6497 ""
- }
-#line 6498 ""
- } else {
-#line 6499 ""
- udqq_(ch__1, (ftnlen)1, nolev, ncm, islur, &commvl_1.nvmx[*iv - 1], &
- commvl_1.ivx, nv);
-#line 6499 ""
- stemup = *(unsigned char *)&ch__1[0] == 'u';
-#line 6500 ""
- }
-#line 6501 ""
- iscrd = bit_test(*ipl,10);
-#line 6502 ""
- if (commidi_1.ismidi) {
-#line 6503 ""
- settie = FALSE_;
-#line 6504 ""
- comslm_1.dbltie = FALSE_;
-#line 6505 ""
- }
-#line 6506 ""
- i__1 = *nsdat;
-#line 6506 ""
- for (isdat = 1; isdat <= i__1; ++isdat) {
-#line 6507 ""
- isdata = isdat1[isdat];
-#line 6508 ""
- if (*iv == igetbits_(&isdata, &c__5, &c__13) && *ip == igetbits_(&
- isdata, &c__8, &c__3) && (*kv == igetbits_(&isdata, &c__1, &
- c__12) + 1 || bit_test(isdata,1))) {
-/* * kv .eq. igetbits(isdata,1,12)+1) then */
-
-/* Since iv and kv match, ivx will be correct */
-
-#line 6516 ""
- idcode = igetbits_(&isdata, &c__7, &c__19);
-#line 6517 ""
- ivoff = igetbits_(&isdat2[isdat], &c__6, &c__6) - 32;
-#line 6518 ""
- ihoff = igetbits_(&isdat2[isdat], &c__7, &c__12) - 64;
-#line 6519 ""
- iupdn = 0;
-#line 6520 ""
- *(unsigned char *)slurudq = 'd';
-#line 6521 ""
- nolevs = igetbits_(&isdat2[isdat], &c__7, &c__19);
-#line 6522 ""
- pstie = bit_test(isdat2[isdat],3) || idcode == 1;
-#line 6523 ""
- if (bit_test(isdata,11)) {
-
-/* Turnon */
-/* Get slur direction */
-
-#line 6528 ""
- if (bit_test(isdata,26)) {
-
-/* Force slur direction */
-
-#line 6532 ""
- if (bit_test(isdata,27)) {
-#line 6532 ""
- *(unsigned char *)slurudq = 'u';
-#line 6532 ""
- }
-#line 6533 ""
- } else if (commvl_1.nvmx[*iv - 1] == 1) {
-
-/* Only one voice per line */
-
-#line 6537 ""
- if (! (*beamon)) {
-
-/* Separate note. */
-
-#line 6541 ""
- udfq_(ch__1, (ftnlen)1, nolev, ncm);
-#line 6541 ""
- *(unsigned char *)slurudq = *(unsigned char *)&ch__1[
- 0];
-#line 6542 ""
- } else {
-
-/* In a beam */
-
-#line 6546 ""
- if (*(unsigned char *)ulq != 'u') {
-#line 6546 ""
- *(unsigned char *)slurudq = 'u';
-#line 6546 ""
- }
-#line 6547 ""
- }
-#line 6548 ""
- if (iscrd) {
-#line 6549 ""
- if (nolevs > *ncm) {
-#line 6550 ""
- *(unsigned char *)slurudq = 'u';
-#line 6551 ""
- } else {
-#line 6552 ""
- *(unsigned char *)slurudq = 'd';
-#line 6553 ""
- }
-#line 6554 ""
- }
-#line 6555 ""
- } else {
-
-/* Two voices per line. Get default */
-
-#line 6559 ""
- if (commvl_1.ivx > *nv) {
-#line 6559 ""
- *(unsigned char *)slurudq = 'u';
-#line 6559 ""
- }
-
-/* Upper voice of the two, so up slur */
-
-#line 6563 ""
- }
-#line 6564 ""
- if (bit_test(isdata,2)) {
-
-/* ADjust for stem slur. ASSUME this is the ONLY pos'n adjustment. */
-
-#line 6568 ""
- if (stemup) {
-#line 6569 ""
- *(unsigned char *)slurudq = 'u';
-#line 6570 ""
- ivoff += 4;
-#line 6571 ""
- } else {
-#line 6572 ""
- *(unsigned char *)slurudq = 'd';
-#line 6573 ""
- ivoff += -4;
-#line 6574 ""
- }
-#line 6575 ""
- }
-
-/* Set level for slur starting on rest */
-
-#line 6579 ""
- if (nolevs == 0 || nolevs > 60) {
-#line 6580 ""
- if (*(unsigned char *)slurudq == 'u') {
-#line 6581 ""
- nolevs = *ncm + 2;
-#line 6582 ""
- } else {
-#line 6583 ""
- nolevs = *ncm - 2;
-#line 6584 ""
- }
-#line 6585 ""
- }
-
-/* Save up/down-ness for use at termination */
-
-#line 6589 ""
- if (*(unsigned char *)slurudq == 'u') {
-#line 6589 ""
- isdata = bit_set(isdata,27);
-#line 6589 ""
- }
-
-/* End of section for setting slur direction, still in "Turnon" if-block. */
-
-#line 6593 ""
- 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 6597 ""
- ivoffinc = 0;
-#line 6598 ""
- if (stemup && *(unsigned char *)slurudq == 'd' || !
- stemup && *(unsigned char *)slurudq == 'u') {
-
-/* Must move the slur for _ or . */
-
-#line 6603 ""
- if (stemup) {
-#line 6604 ""
- ivoffinc = -1;
-#line 6605 ""
- } else {
-#line 6606 ""
- ivoffinc = 1;
-#line 6607 ""
- }
-#line 6608 ""
- if ((stemup && *nolev >= *ncm - 2 || ! stemup && *
- nolev <= *ncm + 2) && (i__2 = *ncm - *nolev,
- abs(i__2)) % 2 == 0) {
-#line 6608 ""
- ivoffinc <<= 1;
-#line 6608 ""
- }
-#line 6611 ""
- ivoff += ivoffinc;
-#line 6612 ""
- }
-#line 6613 ""
- }
-#line 6614 ""
- if (comslur_1.listslur == 16777215) {
-#line 6615 ""
- s_wsle(&io___478);
-#line 6615 ""
- e_wsle();
-#line 6616 ""
- s_wsle(&io___479);
-#line 6616 ""
- do_lio(&c__9, &c__1, "You1 defined the twentyfifth slur,"\
- " one too many!", (ftnlen)48);
-#line 6616 ""
- e_wsle();
-#line 6617 ""
- s_wsfe(&io___480);
-#line 6617 ""
- do_fio(&c__1, "You defined the twentyfifth slur, one too"\
- " many!", (ftnlen)47);
-#line 6617 ""
- e_wsfe();
-#line 6619 ""
- stop1_();
-#line 6620 ""
- }
-
-/* Get index of next slur not in use, starting from 12 down */
-
-#line 6624 ""
- i__2 = 16777215 - comslur_1.listslur;
-#line 6624 ""
- comslur_1.ndxslur = log2_(&i__2);
-
-/* Record slur index */
-
-#line 6628 ""
- comslur_1.listslur = bit_set(comslur_1.listslur,
- comslur_1.ndxslur);
-
-/* Save for use on termination */
-
-/* call setbits(isdata,4,28,ndxslur) */
-/* 080531 Allow >16 slurs */
-#line 6634 ""
- i__2 = comslur_1.ndxslur % 16;
-#line 6634 ""
- setbits_(&isdata, &c__4, &c__28, &i__2);
-#line 6635 ""
- i__2 = comslur_1.ndxslur / 16;
-#line 6635 ""
- setbits_(&isdata, &c__1, &c__18, &i__2);
-
-/* Shift for stem? */
-
-#line 6639 ""
- if (stemup && *(unsigned char *)slurudq == 'u' && *tno < 63.f)
- {
-#line 6640 ""
- if (! pstie) {
-#line 6641 ""
- ihoff += 8;
-#line 6642 ""
- } else {
-#line 6643 ""
- ihoff += 2;
-#line 6644 ""
- }
-#line 6645 ""
- }
-#line 6646 ""
- if (iscrd) {
-
-/* Additional horiz shifts for h-shifted noteheads? */
-
-#line 6650 ""
- if (bit_test(isdat2[isdat],1)) {
-
-/* Slur start on left-shifted chord notehead. ASSUME downstem. */
-
-#line 6654 ""
- if (nolevs == comtrill_1.minlev && *(unsigned char *)
- slurudq == 'd') {
-#line 6655 ""
- ihoff += -2;
-#line 6656 ""
- } else {
-#line 6657 ""
- ihoff += -10;
-#line 6658 ""
- }
-#line 6659 ""
- } else if (bit_test(isdat2[isdat],2)) {
-
-/* Right shifted chord notehead. ASSUME upstem. */
-
-#line 6663 ""
- if (nolevs == comtrill_1.maxlev && *(unsigned char *)
- slurudq == 'u') {
-#line 6664 ""
- ihoff += 2;
-#line 6665 ""
- } else {
-#line 6666 ""
- ihoff += 10;
-#line 6667 ""
- }
-#line 6668 ""
- }
-#line 6669 ""
- }
-#line 6670 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6670 ""
- s_copy(notexq, ch__1, (ftnlen)79, (ftnlen)1);
-#line 6671 ""
- lnote = 1;
-
-/* Check for local adjustment default changes */
-
-#line 6675 ""
- if (bit_test(isdat2[isdat],26)) {
-/* Writing concatenation */
-#line 6676 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6676 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 6676 ""
- i__3[1] = 10, a__1[1] = "sluradjust";
-#line 6676 ""
- chax_(ch__2, (ftnlen)1, &c__92);
-#line 6676 ""
- i__3[2] = 1, a__1[2] = ch__2;
-#line 6676 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 6677 ""
- lnote = 12;
-#line 6678 ""
- } else if (bit_test(isdat2[isdat],27)) {
-/* Writing concatenation */
-#line 6679 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6679 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 6679 ""
- i__3[1] = 12, a__1[1] = "nosluradjust";
-#line 6679 ""
- chax_(ch__2, (ftnlen)1, &c__92);
-#line 6679 ""
- i__3[2] = 1, a__1[2] = ch__2;
-#line 6679 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 6680 ""
- lnote = 14;
-#line 6681 ""
- } else if (bit_test(isdat2[isdat],28)) {
-/* Writing concatenation */
-#line 6682 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6682 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 6682 ""
- i__3[1] = 9, a__1[1] = "tieadjust";
-#line 6682 ""
- chax_(ch__2, (ftnlen)1, &c__92);
-#line 6682 ""
- i__3[2] = 1, a__1[2] = ch__2;
-#line 6682 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 6683 ""
- lnote = 11;
-#line 6684 ""
- } else if (bit_test(isdat2[isdat],29)) {
-/* Writing concatenation */
-#line 6685 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6685 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 6685 ""
- i__3[1] = 11, a__1[1] = "notieadjust";
-#line 6685 ""
- chax_(ch__2, (ftnlen)1, &c__92);
-#line 6685 ""
- i__3[2] = 1, a__1[2] = ch__2;
-#line 6685 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 6686 ""
- lnote = 13;
-#line 6687 ""
- }
-#line 6688 ""
- if (ihoff == 0) {
-
-/* Write stuff for non-shifted start */
-
-/* Writing concatenation */
-#line 6692 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 6692 ""
- i__3[1] = 5, a__1[1] = "islur";
-#line 6692 ""
- i__3[2] = 1, a__1[2] = slurudq;
-#line 6692 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 6693 ""
- lnote += 6;
-#line 6694 ""
- } else {
-/* Writing concatenation */
-#line 6695 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 6695 ""
- i__3[1] = 2, a__1[1] = "is";
-#line 6695 ""
- i__3[2] = 1, a__1[2] = slurudq;
-#line 6695 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 6696 ""
- lnote += 3;
-#line 6697 ""
- }
-
-/* Prepend postscript tie switch */
-
-#line 6701 ""
- if (pstie) {
-/* Writing concatenation */
-#line 6702 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6702 ""
- i__4[0] = 1, a__2[0] = ch__1;
-#line 6702 ""
- i__4[1] = 8, a__2[1] = "tieforis";
-#line 6702 ""
- i__4[2] = 1, a__2[2] = slurudq;
-#line 6702 ""
- i__4[3] = lnote, a__2[3] = notexq;
-#line 6702 ""
- s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79);
-#line 6703 ""
- lnote += 10;
-#line 6704 ""
- }
-#line 6705 ""
- if (bit_test(isdat2[isdat],4)) {
-
-/* Dotted slur */
-
-/* noteq = notexq */
-/* notexq = chax(92)//'dotted'//noteq */
-/* Writing concatenation */
-#line 6711 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6711 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 6711 ""
- i__3[1] = 6, a__1[1] = "dotted";
-#line 6711 ""
- i__3[2] = lnote, a__1[2] = notexq;
-#line 6711 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 6712 ""
- lnote += 7;
-#line 6713 ""
- }
-
-/* Add slur index to string */
-/* Print 23-ndxslur */
-
-#line 6718 ""
- if (23 - comslur_1.ndxslur < 10) {
-
-/* 5/25/08 Allow 24 slurs */
-
-/* Writing concatenation */
-#line 6722 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 6722 ""
- i__2 = 71 - comslur_1.ndxslur;
-#line 6722 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 6722 ""
- i__5[1] = 1, a__3[1] = ch__1;
-#line 6722 ""
- s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79);
-#line 6723 ""
- ++lnote;
-#line 6724 ""
- } else if (23 - comslur_1.ndxslur < 20) {
-/* Writing concatenation */
-#line 6725 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 6725 ""
- i__4[1] = 2, a__2[1] = "{1";
-#line 6725 ""
- i__2 = 61 - comslur_1.ndxslur;
-#line 6725 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 6725 ""
- i__4[2] = 1, a__2[2] = ch__1;
-#line 6725 ""
- i__4[3] = 1, a__2[3] = "}";
-#line 6725 ""
- s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79);
-#line 6726 ""
- lnote += 4;
-#line 6727 ""
- } else {
-/* Writing concatenation */
-#line 6728 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 6728 ""
- i__4[1] = 2, a__2[1] = "{2";
-#line 6728 ""
- i__2 = 51 - comslur_1.ndxslur;
-#line 6728 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 6728 ""
- i__4[2] = 1, a__2[2] = ch__1;
-#line 6728 ""
- i__4[3] = 1, a__2[3] = "}";
-#line 6728 ""
- s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79);
-#line 6729 ""
- lnote += 4;
-#line 6730 ""
- }
-
-/* Add note name to string */
-
-#line 6734 ""
- *islhgt = nolevs + iupdn + ivoff;
-#line 6735 ""
- notefq_(noteq, &lnoten, islhgt, ncm, (ftnlen)8);
-/* Writing concatenation */
-#line 6736 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 6736 ""
- i__5[1] = lnoten, a__3[1] = noteq;
-#line 6736 ""
- s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79);
-#line 6737 ""
- lnote += lnoten;
-
-/* Store height and staff mid level for use with LineBreakTies */
-
-#line 6741 ""
- setbits_(&isdat3[isdat], &c__8, &c__14, islhgt);
-#line 6742 ""
- setbits_(&isdat3[isdat], &c__8, &c__22, ncm);
-
-/* Save height (for ornament and barnobox interference) if topmost slur is up */
-
-#line 6746 ""
- if (*(unsigned char *)slurudq == 'u' && (! bit_test(isdat2[
- isdat],0) || nolevs == comtrill_1.maxlev)) {
-#line 6748 ""
- *islhgt = nolevs + iupdn + ivoff;
-
-/* Save height & idcode if top voice and slur start */
-
-#line 6752 ""
- if (commvl_1.ivx == commvl_1.ivmx[*nv + commvl_1.nvmx[*nv
- - 1] * 24 - 25] && *islhgt > comsln_1.is1n1) {
-#line 6753 ""
- comsln_1.is1n1 = *islhgt;
-#line 6754 ""
- comsln_1.is2n1 = idcode;
-#line 6755 ""
- }
-#line 6756 ""
- }
-#line 6757 ""
- if ((real) ihoff != 0.f) {
-#line 6758 ""
- shift = ihoff * .1f;
-/* Writing concatenation */
-#line 6759 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 6759 ""
- i__5[1] = 1, a__3[1] = "{";
-#line 6759 ""
- s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79);
-#line 6760 ""
- ++lnote;
-#line 6761 ""
- lform = lfmt1_(&shift);
-#line 6762 ""
- i__2 = lnote;
-#line 6762 ""
- ici__1.icierr = 0;
-#line 6762 ""
- ici__1.icirnum = 1;
-#line 6762 ""
- ici__1.icirlen = lnote + lform - i__2;
-#line 6762 ""
- ici__1.iciunit = notexq + i__2;
-/* Writing concatenation */
-#line 6762 ""
- i__3[0] = 2, a__1[0] = "(f";
-#line 6762 ""
- i__6 = lform + 48;
-#line 6762 ""
- chax_(ch__1, (ftnlen)1, &i__6);
-#line 6762 ""
- i__3[1] = 1, a__1[1] = ch__1;
-#line 6762 ""
- i__3[2] = 3, a__1[2] = ".1)";
-#line 6762 ""
- ici__1.icifmt = (s_cat(ch__3, a__1, i__3, &c__3, (ftnlen)
- 6), ch__3);
-#line 6762 ""
- s_wsfi(&ici__1);
-#line 6762 ""
- do_fio(&c__1, (char *)&shift, (ftnlen)sizeof(real));
-#line 6762 ""
- e_wsfi();
-#line 6764 ""
- lnote += lform;
-/* Writing concatenation */
-#line 6765 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 6765 ""
- i__5[1] = 1, a__3[1] = "}";
-#line 6765 ""
- s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79);
-#line 6766 ""
- ++lnote;
-#line 6767 ""
- }
-#line 6768 ""
- addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80);
-
-/* Zero out ip1 to avoid problems if slur goes to next input blk. */
-
-#line 6772 ""
- 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 6776 ""
- if (commidi_1.ismidi && (idcode == 32 || idcode == 1)) {
-/* levson(midchan(iv,kv)) = nolevs */
-/* 130316 */
-#line 6779 ""
- comslm_1.levson[commidi_1.midchan[*iv + *kv * 24 - 25]] =
- nolevs + commvel_1.miditran[cominsttrans_1.instno[
- *iv - 1] - 1];
-#line 6780 ""
- if (settie) {
-#line 6780 ""
- comslm_1.dbltie = TRUE_;
-#line 6780 ""
- }
-
-/* 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 6785 ""
- }
-#line 6786 ""
- } else {
-
-/* Slur is ending. Back thru list to find starting slur */
-
-#line 6790 ""
- for (j = isdat - 1; j >= 1; --j) {
-#line 6791 ""
- if (*iv == igetbits_(&isdat1[j], &c__5, &c__13) && (*kv ==
- igetbits_(&isdat1[j], &c__1, &c__12) + 1 ||
- bit_test(isdat1[j],1))) {
-/* * kv.eq.igetbits(isdat1(j),1,12)+1) then */
-#line 6795 ""
- if (idcode == igetbits_(&isdat1[j], &c__7, &c__19)) {
-#line 6796 ""
- comslur_1.ndxslur = igetbits_(&isdat1[j], &c__4, &
- c__28) + (igetbits_(&isdat1[j], &c__1, &
- c__18) << 4);
-
-/* 080531 Allow >16 slurs */
-
-#line 6801 ""
- if (bit_test(isdat1[j],27)) {
-#line 6801 ""
- *(unsigned char *)slurudq = 'u';
-#line 6801 ""
- }
-#line 6802 ""
- goto L4;
-#line 6803 ""
- }
-#line 6804 ""
- }
-#line 6805 ""
-/* L3: */
-#line 6805 ""
- }
-#line 6806 ""
- s_wsle(&io___488);
-#line 6806 ""
- do_lio(&c__9, &c__1, "Bad place in doslur", (ftnlen)19);
-#line 6806 ""
- e_wsle();
-#line 6807 ""
- stop1_();
-#line 6808 ""
-L4:
-
-/* Bugfix 070901 for slur ending on rest in 2-voice staff */
-
-#line 6812 ""
- if (nolevs <= 2 || nolevs > 60) {
-
-/* Ending is on a rest, reset nolevs to default starting height */
-
-#line 6816 ""
- nolevs = igetbits_(&isdat2[j], &c__7, &c__19);
-#line 6817 ""
- }
-#line 6818 ""
- if (bit_test(isdat3[isdat],0) || bit_test(isdat3[j],0)) {
-
-/* Deal with \curve or \midslur. isdat is ending, j is start. */
-
-#line 6822 ""
- if (bit_test(isdat3[isdat],0)) {
-#line 6823 ""
- imid = igetbits_(&isdat3[isdat], &c__6, &c__2) - 32;
-#line 6824 ""
- } else {
-#line 6825 ""
- imid = igetbits_(&isdat3[j], &c__6, &c__2) - 32;
-#line 6826 ""
- }
-
-/* Postscript slurs, and \midslur adjustment is needed. Invoke macro */
-/* (from pmx.tex) that redefines \tslur as r'qd. Tentative mapping: */
-/* Abs(imid) Postscript slur type */
-/* 1 f */
-/* 2-3 default */
-/* 4 h */
-/* 5 H */
-/* 6+ HH */
-
-/* Writing concatenation */
-#line 6837 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6837 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 6837 ""
- i__3[1] = 7, a__1[1] = "psforts";
-/* Computing MIN */
-#line 6837 ""
- i__6 = abs(imid);
-#line 6837 ""
- i__2 = min(i__6,6) + 48;
-#line 6837 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 6837 ""
- i__3[2] = 1, a__1[2] = ch__2;
-#line 6837 ""
- s_cat(ch__4, a__1, i__3, &c__3, (ftnlen)9);
-#line 6837 ""
- addstr_(ch__4, &c__9, soutq, lsout, (ftnlen)9, (ftnlen)80)
- ;
-#line 6839 ""
- }
-#line 6840 ""
- if (bit_test(isdata,2)) {
-
-/* ADjust for stem slur. */
-
-#line 6844 ""
- if (stemup) {
-#line 6845 ""
- *(unsigned char *)slurudq = 'u';
-#line 6846 ""
- ivoff += 4;
-#line 6847 ""
- } else {
-#line 6848 ""
- *(unsigned char *)slurudq = 'd';
-#line 6849 ""
- ivoff += -4;
-#line 6850 ""
- }
-#line 6851 ""
- }
-
-/* Shift slur ending for stem on any note? */
-
-#line 6855 ""
- if (! stemup && *(unsigned char *)slurudq == 'd' && *tno <
- 63.f) {
-#line 6856 ""
- if (! pstie) {
-#line 6857 ""
- ihoff += -8;
-#line 6858 ""
- } else {
-#line 6859 ""
- ihoff += -3;
-#line 6860 ""
- }
-#line 6861 ""
- }
-#line 6862 ""
- if (iscrd) {
-
-/* Shift termination for shifted notehead? */
-
-#line 6866 ""
- if (bit_test(isdat2[isdat],1)) {
-
-/* Left-shifted chord notehead. ASSUME downstem. */
-
-#line 6870 ""
- if (nolevs == comtrill_1.minlev && *(unsigned char *)
- slurudq == 'd') {
-#line 6871 ""
- ihoff += -2;
-#line 6872 ""
- } else {
-#line 6873 ""
- ihoff += -10;
-#line 6874 ""
- }
-#line 6875 ""
- } else if (bit_test(isdat2[isdat],2)) {
-
-/* Right shifted chord notehead. ASSUME upstem. */
-
-#line 6879 ""
- if (nolevs == comtrill_1.maxlev && *(unsigned char *)
- slurudq == 'u') {
-#line 6880 ""
- ihoff += 2;
-#line 6881 ""
- } else {
-#line 6882 ""
- ihoff += 10;
-#line 6883 ""
- }
-#line 6884 ""
- }
-#line 6885 ""
- }
-#line 6886 ""
- if (ihoff == 0) {
-/* Writing concatenation */
-#line 6887 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6887 ""
- i__5[0] = 1, a__3[0] = ch__1;
-#line 6887 ""
- i__5[1] = 5, a__3[1] = "tslur";
-#line 6887 ""
- s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79);
-#line 6888 ""
- lnote = 6;
-#line 6889 ""
- } else {
-
-/* Shift needed */
-
-/* Writing concatenation */
-#line 6893 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6893 ""
- i__5[0] = 1, a__3[0] = ch__1;
-#line 6893 ""
- i__5[1] = 2, a__3[1] = "ts";
-#line 6893 ""
- s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79);
-#line 6894 ""
- lnote = 3;
-#line 6895 ""
- }
-
-/* Switch to postscript tie */
-
-#line 6899 ""
- if (pstie) {
-/* Writing concatenation */
-#line 6900 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 6900 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 6900 ""
- i__3[1] = 8, a__1[1] = "tieforts";
-#line 6900 ""
- i__3[2] = lnote, a__1[2] = notexq;
-#line 6900 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 6901 ""
- lnote += 9;
-#line 6902 ""
- }
-
-/* Print 13-ndxslur */
-/* 5/25/08 Allow 14 slurs */
-
-#line 6907 ""
- if (23 - comslur_1.ndxslur < 10) {
-/* Writing concatenation */
-#line 6908 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 6908 ""
- i__2 = 71 - comslur_1.ndxslur;
-#line 6908 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 6908 ""
- i__5[1] = 1, a__3[1] = ch__1;
-#line 6908 ""
- s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79);
-#line 6909 ""
- ++lnote;
-#line 6910 ""
- } else if (23 - comslur_1.ndxslur < 20) {
-/* Writing concatenation */
-#line 6911 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 6911 ""
- i__4[1] = 2, a__2[1] = "{1";
-#line 6911 ""
- i__2 = 61 - comslur_1.ndxslur;
-#line 6911 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 6911 ""
- i__4[2] = 1, a__2[2] = ch__1;
-#line 6911 ""
- i__4[3] = 1, a__2[3] = "}";
-#line 6911 ""
- s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79);
-#line 6912 ""
- lnote += 4;
-#line 6913 ""
- } else {
-/* Writing concatenation */
-#line 6914 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 6914 ""
- i__4[1] = 2, a__2[1] = "{2";
-#line 6914 ""
- i__2 = 51 - comslur_1.ndxslur;
-#line 6914 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 6914 ""
- i__4[2] = 1, a__2[2] = ch__1;
-#line 6914 ""
- i__4[3] = 1, a__2[3] = "}";
-#line 6914 ""
- s_cat(notexq, a__2, i__4, &c__4, (ftnlen)79);
-#line 6915 ""
- lnote += 4;
-#line 6916 ""
- }
-#line 6917 ""
- 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 6921 ""
- ivoffinc = 0;
-#line 6922 ""
- if (stemup && *(unsigned char *)slurudq == 'd' || !
- stemup && *(unsigned char *)slurudq == 'u') {
-#line 6924 ""
- if (stemup) {
-#line 6925 ""
- ivoffinc = -1;
-#line 6926 ""
- } else {
-#line 6927 ""
- ivoffinc = 1;
-#line 6928 ""
- }
-#line 6929 ""
- if ((stemup && *nolev >= *ncm - 2 || ! stemup && *
- nolev <= *ncm + 2) && (i__2 = *ncm - *nolev,
- abs(i__2)) % 2 == 0) {
-#line 6929 ""
- ivoffinc <<= 1;
-#line 6929 ""
- }
-#line 6932 ""
- }
-#line 6933 ""
- ivoff += ivoffinc;
-#line 6934 ""
- }
-#line 6935 ""
- i__2 = nolevs + iupdn + ivoff;
-#line 6935 ""
- notefq_(noteq, &lnoten, &i__2, ncm, (ftnlen)8);
-#line 6936 ""
- if (*(unsigned char *)slurudq == 'u' && (! bit_test(isdat2[
- isdat],0) || nolevs == comtrill_1.maxlev)) {
-#line 6938 ""
- *islhgt = nolevs + iupdn + ivoff;
-
-/* If topvoice, upslur, and idcode checks, no more need to keep hgt for barno. */
-
-#line 6942 ""
- if (commvl_1.ivx == commvl_1.ivmx[*nv + commvl_1.nvmx[*nv
- - 1] * 24 - 25] && comsln_1.is1n1 > 0) {
-#line 6943 ""
- if (idcode == comsln_1.is2n1) {
-#line 6943 ""
- comsln_1.is1n1 = 0;
-#line 6943 ""
- }
-#line 6944 ""
- }
-#line 6945 ""
- }
-/* Writing concatenation */
-#line 6946 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 6946 ""
- i__5[1] = lnoten, a__3[1] = noteq;
-#line 6946 ""
- s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79);
-#line 6947 ""
- lnote += lnoten;
-#line 6948 ""
- if (ihoff != 0) {
-#line 6949 ""
- shift = ihoff * .1f;
-/* Writing concatenation */
-#line 6950 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 6950 ""
- i__5[1] = 1, a__3[1] = "{";
-#line 6950 ""
- s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79);
-#line 6951 ""
- ++lnote;
-#line 6952 ""
- lform = lfmt1_(&shift);
-#line 6953 ""
- i__2 = lnote;
-#line 6953 ""
- ici__1.icierr = 0;
-#line 6953 ""
- ici__1.icirnum = 1;
-#line 6953 ""
- ici__1.icirlen = lnote + lform - i__2;
-#line 6953 ""
- ici__1.iciunit = notexq + i__2;
-/* Writing concatenation */
-#line 6953 ""
- i__3[0] = 2, a__1[0] = "(f";
-#line 6953 ""
- i__6 = lform + 48;
-#line 6953 ""
- chax_(ch__1, (ftnlen)1, &i__6);
-#line 6953 ""
- i__3[1] = 1, a__1[1] = ch__1;
-#line 6953 ""
- i__3[2] = 3, a__1[2] = ".1)";
-#line 6953 ""
- ici__1.icifmt = (s_cat(ch__3, a__1, i__3, &c__3, (ftnlen)
- 6), ch__3);
-#line 6953 ""
- s_wsfi(&ici__1);
-#line 6953 ""
- do_fio(&c__1, (char *)&shift, (ftnlen)sizeof(real));
-#line 6953 ""
- e_wsfi();
-#line 6955 ""
- lnote += lform;
-/* Writing concatenation */
-#line 6956 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 6956 ""
- i__5[1] = 1, a__3[1] = "}";
-#line 6956 ""
- s_cat(notexq, a__3, i__5, &c__2, (ftnlen)79);
-#line 6957 ""
- ++lnote;
-#line 6958 ""
- }
-#line 6959 ""
- addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80);
-
-/* Clear the bit from list of slurs in use */
-
-#line 6963 ""
- comslur_1.listslur = bit_clear(comslur_1.listslur,
- comslur_1.ndxslur);
-
-/* Zero out the entire strings for start and stop */
-
-#line 6967 ""
- isdata = 0;
-#line 6968 ""
- isdat2[isdat] = 0;
-#line 6969 ""
- isdat3[isdat] = 0;
-#line 6970 ""
- isdat4[isdat] = 0;
-#line 6971 ""
- isdat1[j] = 0;
-#line 6972 ""
- isdat2[j] = 0;
-#line 6973 ""
- isdat3[j] = 0;
-#line 6974 ""
- isdat4[j] = 0;
-
-/* Set midi info for slur ending */
-
-#line 6978 ""
- if (commidi_1.ismidi && (idcode == 32 || idcode == 1)) {
-#line 6979 ""
- icm = commidi_1.midchan[*iv + *kv * 24 - 25];
-#line 6980 ""
- if (comslm_1.slmon[icm]) {
-#line 6981 ""
- if (nolevs + commvel_1.miditran[cominsttrans_1.instno[
- *iv - 1] - 1] == comslm_1.levson[icm] && (7 &
- *nacc) == 0) {
-
-/* There is a tie here. NB!!! assumed no accidental on 2nd member of tie. */
-
-#line 6986 ""
- comslm_1.levsoff[icm] = nolevs +
- commvel_1.miditran[cominsttrans_1.instno[*
- iv - 1] - 1];
-#line 6987 ""
- settie = TRUE_;
-#line 6988 ""
- } else {
-#line 6989 ""
- comslm_1.levsoff[icm] = 0;
-#line 6990 ""
- comslm_1.levson[icm] = 0;
-#line 6991 ""
- comslm_1.slmon[icm] = FALSE_;
-#line 6992 ""
- }
-#line 6993 ""
- }
-#line 6994 ""
- }
-#line 6995 ""
- }
-#line 6996 ""
- isdat1[isdat] = isdata;
-#line 6997 ""
- }
-#line 6998 ""
-/* L1: */
-#line 6998 ""
- }
-
-/* Clear and collapse the slur data list */
-
-#line 7002 ""
- numdrop = 0;
-#line 7003 ""
- i__1 = *nsdat;
-#line 7003 ""
- for (isdat = 1; isdat <= i__1; ++isdat) {
-#line 7004 ""
- if (isdat1[isdat] == 0) {
-#line 7005 ""
- ++numdrop;
-#line 7006 ""
- } else if (numdrop > 0) {
-#line 7007 ""
- isdat1[isdat - numdrop] = isdat1[isdat];
-#line 7008 ""
- isdat2[isdat - numdrop] = isdat2[isdat];
-#line 7009 ""
- isdat3[isdat - numdrop] = isdat3[isdat];
-#line 7010 ""
- isdat4[isdat - numdrop] = isdat4[isdat];
-#line 7011 ""
- isdat1[isdat] = 0;
-#line 7012 ""
- isdat2[isdat] = 0;
-#line 7013 ""
- isdat3[isdat] = 0;
-#line 7014 ""
- isdat4[isdat] = 0;
-#line 7015 ""
- }
-#line 7016 ""
-/* L2: */
-#line 7016 ""
- }
-#line 7017 ""
- *nsdat -= numdrop;
-/* call report(nsdat,isdat1,isdat2) */
-#line 7019 ""
- return 0;
-} /* dopsslur_ */
-
-/* Subroutine */ int doslur_(integer *nolev, integer *isdat1, integer *isdat2,
- integer *isdat3, integer *nsdat, integer *ip, integer *iv, integer *
- kv, integer *nv, logical *beamon, integer *ncm, char *soutq, integer *
- lsout, char *ulq, integer *islur, integer *ipl, integer *iornq,
- integer *islhgt, real *tno, integer *nacc, ftnlen soutq_len, ftnlen
- ulq_len)
-{
- /* System generated locals */
- address a__1[3], a__2[2], a__3[4];
- integer i__1, i__2, i__3[3], i__4[2], i__5[4], i__6;
- char ch__1[1], ch__2[6];
- icilist ici__1;
-
- /* Builtin functions */
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen), s_wsfe(cilist *), do_fio(integer *, char *, ftnlen),
- e_wsfe(void);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen),
- s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsfi(icilist *), e_wsfi(void);
-
- /* Local variables */
- static integer ivoffinc;
- extern integer igetbits_(integer *, integer *, integer *);
- static integer j, icm;
- extern integer log2_(integer *);
- static integer imid;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *), udfq_(char *
- , ftnlen, integer *, integer *), udqq_(char *, ftnlen, integer *,
- integer *, integer *, integer *, integer *, integer *);
- extern integer lfmt1_(real *);
- extern /* Subroutine */ int stop1_(void);
- static integer ihoff;
- static logical iscrd;
- static integer isdat, ivoff;
- static real shift;
- static integer iupdn, lform, lnote;
- static char noteq[8];
- static logical tmove;
- static integer idcode, isdata;
- extern /* Subroutine */ int addstr_(char *, integer *, char *, integer *,
- ftnlen, ftnlen);
- static integer isdats;
- static logical settie, sfound, tfound;
- static integer isdatt;
- extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer
- *, ftnlen);
- static integer nolevt, nolevs;
- extern /* Subroutine */ int printl_(char *, ftnlen);
- static logical stemup;
- static char notexq[79];
- static integer lnoten;
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *);
- static integer numdrop;
- static char slurudq[1];
-
- /* Fortran I/O blocks */
- static cilist io___509 = { 0, 6, 0, 0, 0 };
- static cilist io___511 = { 0, 6, 0, 0, 0 };
- static cilist io___512 = { 0, 6, 0, 0, 0 };
- static cilist io___513 = { 0, 15, 0, "(/,a)", 0 };
- static cilist io___521 = { 0, 6, 0, 0, 0 };
-
-
-
-/* Called once per main note. (5/26/02) for non-ps slurs only */
-
-/* 130316 */
-
-/* Bits in isdat1: */
-/* 13-17 iv */
-/* 3-10 ip */
-/* 11 start/stop switch */
-/* 12 kv-1 */
-/* 19-25 ichar(code$) */
-/* 26 force direction? */
-/* 27 forced dir'n = up if on, set in sslur; also */
-/* final direction, set in doslur when beam is started, used on term. */
-/* 28-31 ndxslur, set in doslur when beam is started, used on term. */
-
-/* Bits in isdat2 */
-/* 0 Chord switch. Not set on main note. */
-/* 1-2 left/right notehead shift. Set only for chord note. */
-/* 3 tie positioning */
-/* 4 dotted flag */
-/* 6-11 voff1 1-63 => -31...+31 */
-/* 12-18 hoff1 1-127 => -6.3...+6.3 */
-/* 19-25 nolev */
-
-/* Bits in isdat3: Only used for slur endings */
-/* 0 set if midslur (at least one argument) */
-/* 1 set if curve (2 more args) */
-/* 2-7 32+first arg (height correction) (1st arg may be negative) */
-/* 8-10 second arg (initial slope) */
-/* 11-13 third arg (closing slope) */
-
-/* In listslur bit ib is on if slur index ib is in use, ib=0-23. */
-/* ndxslur = slur index */
-/* Height of slur is nole+ivoff+iupdn. iupdn is +/-1 if t&s slurs on same note, */
-/* s-slur is blank (idcode=32), t-slur is idcode=1. */
-/* ivoff is user-defined shift or shift due to . or _ , or chord adjustment. */
-/* Ivoff will be set for ./_ only if no user-defined shift is specified. */
-/* If highest note has upslur, save slur height in islhgt in case */
-/* ornament must be moved. */
-
-#line 7097 ""
- /* Parameter adjustments */
-#line 7097 ""
- --isdat3;
-#line 7097 ""
- --isdat2;
-#line 7097 ""
- --isdat1;
-#line 7097 ""
-
-#line 7097 ""
- /* Function Body */
-#line 7097 ""
- *islhgt = 0;
-#line 7098 ""
- if (*beamon) {
-#line 7099 ""
- stemup = *(unsigned char *)ulq == 'u';
-#line 7100 ""
- } else if (commvl_1.nvmx[*iv - 1] == 2) {
-#line 7101 ""
- if (! bit_test(*islur,30)) {
-
-/* Single note, 2 lines of music, stem direction not forced */
-
-#line 7105 ""
- stemup = commvl_1.ivx > *nv;
-#line 7106 ""
- } else {
-#line 7107 ""
- stemup = bit_test(*islur,17);
-#line 7108 ""
- }
-#line 7109 ""
- } else {
-#line 7110 ""
- udqq_(ch__1, (ftnlen)1, nolev, ncm, islur, &commvl_1.nvmx[*iv - 1], &
- commvl_1.ivx, nv);
-#line 7110 ""
- stemup = *(unsigned char *)&ch__1[0] == 'u';
-#line 7111 ""
- }
-#line 7112 ""
- iscrd = bit_test(*ipl,10);
-#line 7113 ""
- if (bit_test(*islur,1)) {
-
-/* 't'-slur (idcode=1) somewhere on this note. Find it, check height against */
-/* 's'-slur (idcode=32) */
-
-#line 7118 ""
- sfound = FALSE_;
-#line 7119 ""
- tfound = FALSE_;
-#line 7120 ""
- tmove = FALSE_;
-#line 7121 ""
- i__1 = *nsdat;
-#line 7121 ""
- for (isdat = 1; isdat <= i__1; ++isdat) {
-#line 7122 ""
- 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 7125 ""
- if (! tfound) {
-#line 7126 ""
- tfound = igetbits_(&isdat1[isdat], &c__7, &c__19) == 1;
-#line 7127 ""
- if (tfound) {
-#line 7128 ""
- nolevt = igetbits_(&isdat2[isdat], &c__7, &c__19);
-#line 7129 ""
- isdatt = isdat;
-#line 7130 ""
- if (sfound) {
-#line 7130 ""
- goto L6;
-#line 7130 ""
- }
-#line 7131 ""
- }
-#line 7132 ""
- }
-#line 7133 ""
- if (! sfound) {
-#line 7134 ""
- sfound = igetbits_(&isdat1[isdat], &c__7, &c__19) == 32;
-#line 7135 ""
- if (sfound) {
-#line 7136 ""
- nolevs = igetbits_(&isdat2[isdat], &c__7, &c__19);
-#line 7137 ""
- isdats = isdat;
-#line 7138 ""
- if (tfound) {
-#line 7138 ""
- goto L6;
-#line 7138 ""
- }
-#line 7139 ""
- }
-#line 7140 ""
- }
-#line 7141 ""
- }
-#line 7142 ""
-/* L5: */
-#line 7142 ""
- }
-
-/* 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 7147 ""
-L6:
-#line 7148 ""
- if (sfound && tfound) {
-#line 7148 ""
- tmove = nolevs == nolevt && (bit_test(isdat1[isdats],11) &&
- bit_test(isdat1[isdatt],11) || ! bit_test(isdat1[isdats],
- 11) && ! bit_test(isdat1[isdatt],11));
-#line 7148 ""
- }
-
-/* Check if 2 starts or two stops */
-
-
-/* This is a flag for later changing slur level, after we know slur dir'n. */
-
-#line 7159 ""
- }
-#line 7160 ""
- if (commidi_1.ismidi) {
-#line 7161 ""
- settie = FALSE_;
-#line 7162 ""
- comslm_1.dbltie = FALSE_;
-#line 7163 ""
- }
-#line 7164 ""
- i__1 = *nsdat;
-#line 7164 ""
- for (isdat = 1; isdat <= i__1; ++isdat) {
-#line 7165 ""
- isdata = isdat1[isdat];
-#line 7166 ""
- 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 7172 ""
- idcode = igetbits_(&isdata, &c__7, &c__19);
-#line 7173 ""
- ivoff = igetbits_(&isdat2[isdat], &c__6, &c__6) - 32;
-#line 7174 ""
- ihoff = igetbits_(&isdat2[isdat], &c__7, &c__12) - 64;
-#line 7175 ""
- iupdn = 0;
-#line 7176 ""
- *(unsigned char *)slurudq = 'd';
-#line 7177 ""
- nolevs = igetbits_(&isdat2[isdat], &c__7, &c__19);
-#line 7178 ""
- if (bit_test(isdata,11)) {
-
-/* Turnon, */
-
-#line 7182 ""
- if (nolevs == 0 || nolevs > 60) {
-
-/* Note was a rest, cannot start slur on rest. */
-
-#line 7186 ""
- s_wsle(&io___509);
-#line 7186 ""
- e_wsle();
-#line 7187 ""
- printl_("Cannot start slur on a rest", (ftnlen)27);
-#line 7188 ""
- stop1_();
-#line 7189 ""
- }
-
-/* Get slur direction */
-
-#line 7193 ""
- if (bit_test(isdata,26)) {
-
-/* Force slur direction */
-
-#line 7197 ""
- if (bit_test(isdata,27)) {
-#line 7197 ""
- *(unsigned char *)slurudq = 'u';
-#line 7197 ""
- }
-#line 7198 ""
- } else if (commvl_1.nvmx[*iv - 1] == 1) {
-
-/* Only one voice per line */
-
-#line 7202 ""
- if (! (*beamon)) {
-
-/* Separate note. */
-
-#line 7206 ""
- udfq_(ch__1, (ftnlen)1, nolev, ncm);
-#line 7206 ""
- *(unsigned char *)slurudq = *(unsigned char *)&ch__1[
- 0];
-#line 7207 ""
- } else {
-
-/* In a beam */
-
-#line 7211 ""
- if (*(unsigned char *)ulq != 'u') {
-#line 7211 ""
- *(unsigned char *)slurudq = 'u';
-#line 7211 ""
- }
-#line 7212 ""
- }
-#line 7213 ""
- if (iscrd) {
-#line 7214 ""
- if (nolevs > *ncm) {
-#line 7215 ""
- *(unsigned char *)slurudq = 'u';
-#line 7216 ""
- } else {
-#line 7217 ""
- *(unsigned char *)slurudq = 'd';
-#line 7218 ""
- }
-#line 7219 ""
- }
-#line 7220 ""
- } else {
-
-/* Two voices per line. Get default */
-
-#line 7224 ""
- if (commvl_1.ivx > *nv) {
-#line 7224 ""
- *(unsigned char *)slurudq = 'u';
-#line 7224 ""
- }
-
-/* Upper voice of the two, so up slur */
-
-#line 7228 ""
- }
-
-/* Save up/down-ness for use at termination */
-
-#line 7232 ""
- if (*(unsigned char *)slurudq == 'u') {
-#line 7232 ""
- isdata = bit_set(isdata,27);
-#line 7232 ""
- }
-
-/* End of section for setting slur direction, still in "Turnon" if-block. */
-
-#line 7236 ""
- if (idcode == 1 && tmove) {
-#line 7237 ""
- iupdn = 1;
-#line 7238 ""
- if (*(unsigned char *)slurudq == 'd') {
-#line 7238 ""
- iupdn = -1;
-#line 7238 ""
- }
-#line 7239 ""
- }
-#line 7240 ""
- 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 7244 ""
- ivoffinc = 0;
-#line 7245 ""
- if (stemup && *(unsigned char *)slurudq == 'd' || !
- stemup && *(unsigned char *)slurudq == 'u') {
-
-/* Must move the slur for _ or . */
-
-#line 7250 ""
- if (stemup) {
-#line 7251 ""
- ivoffinc = -1;
-#line 7252 ""
- } else {
-#line 7253 ""
- ivoffinc = 1;
-#line 7254 ""
- }
-#line 7255 ""
- if ((stemup && *nolev >= *ncm - 2 || ! stemup && *
- nolev <= *ncm + 2) && (i__2 = *ncm - *nolev,
- abs(i__2)) % 2 == 0) {
-#line 7255 ""
- ivoffinc <<= 1;
-#line 7255 ""
- }
-#line 7258 ""
- ivoff += ivoffinc;
-#line 7259 ""
- }
-#line 7260 ""
- }
-#line 7261 ""
- if (comslur_1.listslur == 16777215) {
-#line 7262 ""
- s_wsle(&io___511);
-#line 7262 ""
- e_wsle();
-#line 7263 ""
- s_wsle(&io___512);
-#line 7263 ""
- do_lio(&c__9, &c__1, "You1 defined the twenty-fifth slur"\
- ", one too many!", (ftnlen)49);
-#line 7263 ""
- e_wsle();
-#line 7264 ""
- s_wsfe(&io___513);
-#line 7264 ""
- do_fio(&c__1, "You2 defined the twenty-fifth slur, one t"\
- "oo many!", (ftnlen)49);
-#line 7264 ""
- e_wsfe();
-#line 7266 ""
- stop1_();
-#line 7267 ""
- }
-
-/* Get index of next slur not in use, starting from ? down */
-
-#line 7271 ""
- i__2 = 16777215 - comslur_1.listslur;
-#line 7271 ""
- comslur_1.ndxslur = log2_(&i__2);
-
-/* Record slur index */
-
-#line 7275 ""
- comslur_1.listslur = bit_set(comslur_1.listslur,
- comslur_1.ndxslur);
-
-/* Save for use on termination */
-
-/* call setbits(isdata,4,28,ndxslur) */
-/* 080531 Allow >16 slurs */
-#line 7281 ""
- i__2 = comslur_1.ndxslur % 16;
-#line 7281 ""
- setbits_(&isdata, &c__4, &c__28, &i__2);
-#line 7282 ""
- i__2 = comslur_1.ndxslur / 16;
-#line 7282 ""
- setbits_(&isdata, &c__1, &c__18, &i__2);
-
-/* Shift for stem? */
-
-#line 7286 ""
- if (stemup && *(unsigned char *)slurudq == 'u' && *tno < 63.f)
- {
-#line 7286 ""
- ihoff += 8;
-#line 7286 ""
- }
-#line 7288 ""
- if (bit_test(isdat2[isdat],3)) {
-
-/* Tie spacing, (slur start) */
-
-#line 7292 ""
- if (*(unsigned char *)slurudq == 'd') {
-#line 7293 ""
- ++ivoff;
-#line 7294 ""
- ihoff += 8;
-#line 7295 ""
- } else if (*(unsigned char *)slurudq == 'u') {
-#line 7296 ""
- --ivoff;
-#line 7297 ""
- if (! (stemup && *tno < 63.f)) {
-#line 7297 ""
- ihoff += 8;
-#line 7297 ""
- }
-
-/* (already shifted if (stemup.and.tno.gt.63.) and slurudq='u') */
-
-#line 7301 ""
- }
-#line 7302 ""
- }
-#line 7303 ""
- if (iscrd) {
-
-/* Additional horiz shifts for h-shifted noteheads? */
-
-#line 7307 ""
- if (bit_test(isdat2[isdat],1)) {
-
-/* Slur start on left-shifted chord notehead. ASSUME downstem. */
-
-#line 7311 ""
- if (nolevs == comtrill_1.minlev && *(unsigned char *)
- slurudq == 'd') {
-#line 7312 ""
- ihoff += -2;
-#line 7313 ""
- } else {
-#line 7314 ""
- ihoff += -10;
-#line 7315 ""
- }
-#line 7316 ""
- } else if (bit_test(isdat2[isdat],2)) {
-
-/* Right shifted chord notehead. ASSUME upstem. */
-
-#line 7320 ""
- if (nolevs == comtrill_1.maxlev && *(unsigned char *)
- slurudq == 'u') {
-#line 7321 ""
- ihoff += 2;
-#line 7322 ""
- } else {
-#line 7323 ""
- ihoff += 10;
-#line 7324 ""
- }
-#line 7325 ""
- }
-#line 7326 ""
- }
-#line 7327 ""
- if (ihoff == 0) {
-
-/* Write stuff for non-shifted start */
-
-/* Writing concatenation */
-#line 7331 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7331 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 7331 ""
- i__3[1] = 5, a__1[1] = "islur";
-#line 7331 ""
- i__3[2] = 1, a__1[2] = slurudq;
-#line 7331 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 7332 ""
- lnote = 7;
-#line 7333 ""
- } else {
-/* Writing concatenation */
-#line 7334 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7334 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 7334 ""
- i__3[1] = 2, a__1[1] = "is";
-#line 7334 ""
- i__3[2] = 1, a__1[2] = slurudq;
-#line 7334 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 7335 ""
- lnote = 4;
-#line 7336 ""
- }
-#line 7337 ""
- if (bit_test(isdat2[isdat],4)) {
-
-/* Dotted slur */
-
-#line 7341 ""
- s_copy(noteq, notexq, (ftnlen)8, (ftnlen)79);
-/* Writing concatenation */
-#line 7342 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7342 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 7342 ""
- i__3[1] = 6, a__1[1] = "dotted";
-#line 7342 ""
- i__3[2] = 8, a__1[2] = noteq;
-#line 7342 ""
- s_cat(notexq, a__1, i__3, &c__3, (ftnlen)79);
-#line 7343 ""
- lnote += 7;
-#line 7344 ""
- }
-
-/* Add slur index to string */
-/* c Print 11-ndxslur */
-/* Print 23-ndxslur */
-
-/* if (11-ndxslur .lt. 10) then */
-#line 7351 ""
- if (23 - comslur_1.ndxslur < 10) {
-
-/* 5/25/08 Allow 24 slurs */
-
-/* notexq = notexq(1:lnote)//chax(59-ndxslur) */
-/* Writing concatenation */
-#line 7356 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7356 ""
- i__2 = 71 - comslur_1.ndxslur;
-#line 7356 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 7356 ""
- i__4[1] = 1, a__2[1] = ch__1;
-#line 7356 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7357 ""
- ++lnote;
-#line 7358 ""
- } else if (23 - comslur_1.ndxslur < 20) {
-/* notexq = notexq(1:lnote)//'{1'//chax(49-ndxslur)//'}' */
-/* Writing concatenation */
-#line 7360 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 7360 ""
- i__5[1] = 2, a__3[1] = "{1";
-#line 7360 ""
- i__2 = 61 - comslur_1.ndxslur;
-#line 7360 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 7360 ""
- i__5[2] = 1, a__3[2] = ch__1;
-#line 7360 ""
- i__5[3] = 1, a__3[3] = "}";
-#line 7360 ""
- s_cat(notexq, a__3, i__5, &c__4, (ftnlen)79);
-#line 7361 ""
- lnote += 4;
-#line 7362 ""
- } else {
-/* Writing concatenation */
-#line 7363 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 7363 ""
- i__5[1] = 2, a__3[1] = "{2";
-#line 7363 ""
- i__2 = 51 - comslur_1.ndxslur;
-#line 7363 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 7363 ""
- i__5[2] = 1, a__3[2] = ch__1;
-#line 7363 ""
- i__5[3] = 1, a__3[3] = "}";
-#line 7363 ""
- s_cat(notexq, a__3, i__5, &c__4, (ftnlen)79);
-#line 7364 ""
- lnote += 4;
-#line 7365 ""
- }
-
-/* Add note name to string */
-
-#line 7369 ""
- i__2 = nolevs + iupdn + ivoff;
-#line 7369 ""
- notefq_(noteq, &lnoten, &i__2, ncm, (ftnlen)8);
-/* Writing concatenation */
-#line 7370 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7370 ""
- i__4[1] = lnoten, a__2[1] = noteq;
-#line 7370 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7371 ""
- lnote += lnoten;
-
-/* Save height (for ornament and barnobox interference) if topmost slur is up */
-
-#line 7375 ""
- if (*(unsigned char *)slurudq == 'u' && (! bit_test(isdat2[
- isdat],0) || nolevs == comtrill_1.maxlev)) {
-#line 7377 ""
- *islhgt = nolevs + iupdn + ivoff;
-
-/* Save height & idcode if top voice and slur start */
-
-#line 7381 ""
- if (commvl_1.ivx == commvl_1.ivmx[*nv + commvl_1.nvmx[*nv
- - 1] * 24 - 25] && *islhgt > comsln_1.is1n1) {
-#line 7382 ""
- comsln_1.is1n1 = *islhgt;
-#line 7383 ""
- comsln_1.is2n1 = idcode;
-#line 7384 ""
- }
-#line 7385 ""
- }
-#line 7386 ""
- if ((real) ihoff != 0.f) {
-#line 7387 ""
- shift = ihoff * .1f;
-/* Writing concatenation */
-#line 7388 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7388 ""
- i__4[1] = 1, a__2[1] = "{";
-#line 7388 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7389 ""
- ++lnote;
-#line 7390 ""
- lform = lfmt1_(&shift);
-#line 7391 ""
- i__2 = lnote;
-#line 7391 ""
- ici__1.icierr = 0;
-#line 7391 ""
- ici__1.icirnum = 1;
-#line 7391 ""
- ici__1.icirlen = lnote + lform - i__2;
-#line 7391 ""
- ici__1.iciunit = notexq + i__2;
-/* Writing concatenation */
-#line 7391 ""
- i__3[0] = 2, a__1[0] = "(f";
-#line 7391 ""
- i__6 = lform + 48;
-#line 7391 ""
- chax_(ch__1, (ftnlen)1, &i__6);
-#line 7391 ""
- i__3[1] = 1, a__1[1] = ch__1;
-#line 7391 ""
- i__3[2] = 3, a__1[2] = ".1)";
-#line 7391 ""
- ici__1.icifmt = (s_cat(ch__2, a__1, i__3, &c__3, (ftnlen)
- 6), ch__2);
-#line 7391 ""
- s_wsfi(&ici__1);
-#line 7391 ""
- do_fio(&c__1, (char *)&shift, (ftnlen)sizeof(real));
-#line 7391 ""
- e_wsfi();
-#line 7393 ""
- lnote += lform;
-/* Writing concatenation */
-#line 7394 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7394 ""
- i__4[1] = 1, a__2[1] = "}";
-#line 7394 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7395 ""
- ++lnote;
-#line 7396 ""
- }
-#line 7397 ""
- addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80);
-
-/* Zero out ip1 to avoid problems if slur goes to next input blk. */
-
-#line 7401 ""
- 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 7405 ""
- if (commidi_1.ismidi && idcode == 32) {
-#line 7406 ""
- comslm_1.levson[commidi_1.midchan[*iv + *kv * 24 - 25]] =
- nolevs + commvel_1.miditran[cominsttrans_1.instno[
- *iv - 1] - 1];
-#line 7407 ""
- if (settie) {
-#line 7407 ""
- comslm_1.dbltie = TRUE_;
-#line 7407 ""
- }
-
-/* 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 7412 ""
- }
-#line 7413 ""
- } else {
-
-/* Slur is ending. Back thru list to find starting slur */
-
-#line 7417 ""
- for (j = isdat - 1; j >= 1; --j) {
-#line 7418 ""
- if (*iv == igetbits_(&isdat1[j], &c__5, &c__13) && *kv ==
- igetbits_(&isdat1[j], &c__1, &c__12) + 1) {
-#line 7420 ""
- if (idcode == igetbits_(&isdat1[j], &c__7, &c__19)) {
-#line 7421 ""
- comslur_1.ndxslur = igetbits_(&isdat1[j], &c__4, &
- c__28) + (igetbits_(&isdat1[j], &c__1, &
- c__18) << 4);
-
-/* 080531 Allow >16 slurs */
-
-#line 7426 ""
- if (bit_test(isdat1[j],27)) {
-#line 7426 ""
- *(unsigned char *)slurudq = 'u';
-#line 7426 ""
- }
-#line 7427 ""
- goto L4;
-#line 7428 ""
- }
-#line 7429 ""
- }
-#line 7430 ""
-/* L3: */
-#line 7430 ""
- }
-#line 7431 ""
- s_wsle(&io___521);
-#line 7431 ""
- do_lio(&c__9, &c__1, "Bad place in doslur", (ftnlen)19);
-#line 7431 ""
- e_wsle();
-#line 7432 ""
- stop1_();
-#line 7433 ""
-L4:
-#line 7434 ""
- if (nolevs == 0 || nolevs > 60) {
-
-/* Ending is on a rest, reset nolevs to default starting height */
-
-#line 7438 ""
- nolevs = igetbits_(&isdat2[j], &c__7, &c__19);
-#line 7439 ""
- }
-#line 7440 ""
- if (bit_test(isdat3[isdat],0)) {
-
-/* Deal with \curve or \midslur */
-
-#line 7444 ""
- imid = igetbits_(&isdat3[isdat], &c__6, &c__2) - 32;
-
-/* Remember, only dealing with non-ps slurs */
-
-/* Who knows where the following line came from. Removed it 6/30/02 to */
-/* restore behavior of non-ps slurs to old way */
-/* if (slurudq .eq. 'd') imid = -imid */
-/* 3/8/03 added the following */
-
-#line 7453 ""
- if (*(unsigned char *)slurudq == 'd') {
-#line 7453 ""
- imid = -abs(imid);
-#line 7453 ""
- }
-
-#line 7455 ""
- if (bit_test(isdat3[isdat],1)) {
-/* Writing concatenation */
-#line 7456 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7456 ""
- i__4[0] = 1, a__2[0] = ch__1;
-#line 7456 ""
- i__4[1] = 5, a__2[1] = "curve";
-#line 7456 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7457 ""
- lnote = 6;
-#line 7458 ""
- } else {
-/* Writing concatenation */
-#line 7459 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7459 ""
- i__4[0] = 1, a__2[0] = ch__1;
-#line 7459 ""
- i__4[1] = 7, a__2[1] = "midslur";
-#line 7459 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7460 ""
- lnote = 8;
-#line 7461 ""
- }
-#line 7462 ""
- if (imid < 0 || imid > 9) {
-
-/* Need brackets */
-
-/* Writing concatenation */
-#line 7466 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7466 ""
- i__4[1] = 1, a__2[1] = "{";
-#line 7466 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7467 ""
- ++lnote;
-#line 7468 ""
- if (imid < -9) {
-#line 7469 ""
- i__2 = lnote;
-#line 7469 ""
- ici__1.icierr = 0;
-#line 7469 ""
- ici__1.icirnum = 1;
-#line 7469 ""
- ici__1.icirlen = lnote + 3 - i__2;
-#line 7469 ""
- ici__1.iciunit = notexq + i__2;
-#line 7469 ""
- ici__1.icifmt = "(i3)";
-#line 7469 ""
- s_wsfi(&ici__1);
-#line 7469 ""
- do_fio(&c__1, (char *)&imid, (ftnlen)sizeof(
- integer));
-#line 7469 ""
- e_wsfi();
-#line 7470 ""
- lnote += 3;
-#line 7471 ""
- } else if (imid < 0 || imid > 9) {
-#line 7472 ""
- i__2 = lnote;
-#line 7472 ""
- ici__1.icierr = 0;
-#line 7472 ""
- ici__1.icirnum = 1;
-#line 7472 ""
- ici__1.icirlen = lnote + 2 - i__2;
-#line 7472 ""
- ici__1.iciunit = notexq + i__2;
-#line 7472 ""
- ici__1.icifmt = "(i2)";
-#line 7472 ""
- s_wsfi(&ici__1);
-#line 7472 ""
- do_fio(&c__1, (char *)&imid, (ftnlen)sizeof(
- integer));
-#line 7472 ""
- e_wsfi();
-#line 7473 ""
- lnote += 2;
-#line 7474 ""
- } else {
-#line 7475 ""
- i__2 = lnote;
-#line 7475 ""
- ici__1.icierr = 0;
-#line 7475 ""
- ici__1.icirnum = 1;
-#line 7475 ""
- ici__1.icirlen = lnote + 1 - i__2;
-#line 7475 ""
- ici__1.iciunit = notexq + i__2;
-#line 7475 ""
- ici__1.icifmt = "(i1)";
-#line 7475 ""
- s_wsfi(&ici__1);
-#line 7475 ""
- do_fio(&c__1, (char *)&imid, (ftnlen)sizeof(
- integer));
-#line 7475 ""
- e_wsfi();
-#line 7476 ""
- ++lnote;
-#line 7477 ""
- }
-/* Writing concatenation */
-#line 7478 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7478 ""
- i__4[1] = 1, a__2[1] = "}";
-#line 7478 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7479 ""
- ++lnote;
-#line 7480 ""
- } else {
-
-/* 1=<imid=<9, no brackets */
-
-/* Writing concatenation */
-#line 7484 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7484 ""
- *(unsigned char *)&ch__1[0] = imid + 48;
-#line 7484 ""
- i__4[1] = 1, a__2[1] = ch__1;
-#line 7484 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7485 ""
- ++lnote;
-#line 7486 ""
- }
-#line 7487 ""
- if (bit_test(isdat3[isdat],1)) {
-
-/* \curve; 3 args */
-
-/* Writing concatenation */
-#line 7491 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7491 ""
- *(unsigned char *)&ch__1[0] = igetbits_(&isdat3[isdat]
- , &c__3, &c__8) + 48;
-#line 7491 ""
- i__4[1] = 1, a__2[1] = ch__1;
-#line 7491 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-/* Writing concatenation */
-#line 7493 ""
- i__4[0] = lnote + 1, a__2[0] = notexq;
-#line 7493 ""
- *(unsigned char *)&ch__1[0] = igetbits_(&isdat3[isdat]
- , &c__3, &c__11) + 48;
-#line 7493 ""
- i__4[1] = 1, a__2[1] = ch__1;
-#line 7493 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7495 ""
- lnote += 2;
-#line 7496 ""
- }
-#line 7497 ""
- addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)
- 80);
-#line 7498 ""
- }
-
-/* Shift slur ending for stem on any note? */
-
-#line 7502 ""
- if (! stemup && *(unsigned char *)slurudq == 'd' && *tno <
- 63.f) {
-#line 7502 ""
- ihoff += -8;
-#line 7502 ""
- }
-#line 7504 ""
- if (bit_test(isdat2[isdat],3)) {
-
-/* Shift ending for tie spacing */
-
-#line 7508 ""
- if (*(unsigned char *)slurudq == 'u') {
-#line 7509 ""
- ihoff += -8;
-#line 7510 ""
- --ivoff;
-#line 7511 ""
- } else if (*(unsigned char *)slurudq == 'd') {
-#line 7512 ""
- ++ivoff;
-#line 7513 ""
- if (stemup || *tno > 63.f) {
-#line 7513 ""
- ihoff += -8;
-#line 7513 ""
- }
-#line 7514 ""
- }
-#line 7515 ""
- }
-#line 7516 ""
- if (iscrd) {
-
-/* Shift termination for shifted notehead? */
-
-#line 7520 ""
- if (bit_test(isdat2[isdat],1)) {
-
-/* Left-shifted chord notehead. ASSUME downstem. */
-
-#line 7524 ""
- if (nolevs == comtrill_1.minlev && *(unsigned char *)
- slurudq == 'd') {
-#line 7525 ""
- ihoff += -2;
-#line 7526 ""
- } else {
-#line 7527 ""
- ihoff += -10;
-#line 7528 ""
- }
-#line 7529 ""
- } else if (bit_test(isdat2[isdat],2)) {
-
-/* Right shifted chord notehead. ASSUME upstem. */
-
-#line 7533 ""
- if (nolevs == comtrill_1.maxlev && *(unsigned char *)
- slurudq == 'u') {
-#line 7534 ""
- ihoff += 2;
-#line 7535 ""
- } else {
-#line 7536 ""
- ihoff += 10;
-#line 7537 ""
- }
-#line 7538 ""
- }
-#line 7539 ""
- }
-#line 7540 ""
- if (ihoff == 0) {
-/* Writing concatenation */
-#line 7541 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7541 ""
- i__4[0] = 1, a__2[0] = ch__1;
-#line 7541 ""
- i__4[1] = 5, a__2[1] = "tslur";
-#line 7541 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7542 ""
- lnote = 6;
-#line 7543 ""
- } else {
-
-/* Shift needed */
-
-/* Writing concatenation */
-#line 7547 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7547 ""
- i__4[0] = 1, a__2[0] = ch__1;
-#line 7547 ""
- i__4[1] = 2, a__2[1] = "ts";
-#line 7547 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7548 ""
- lnote = 3;
-#line 7549 ""
- }
-
-/* Print 23-ndxslur */
-/* 5/25/08 Allow 14 slurs (???????????) */
-
-#line 7554 ""
- if (23 - comslur_1.ndxslur < 10) {
-/* Writing concatenation */
-#line 7555 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7555 ""
- i__2 = 71 - comslur_1.ndxslur;
-#line 7555 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 7555 ""
- i__4[1] = 1, a__2[1] = ch__1;
-#line 7555 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7556 ""
- ++lnote;
-#line 7557 ""
- } else if (23 - comslur_1.ndxslur < 20) {
-/* Writing concatenation */
-#line 7558 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 7558 ""
- i__5[1] = 2, a__3[1] = "{1";
-#line 7558 ""
- i__2 = 61 - comslur_1.ndxslur;
-#line 7558 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 7558 ""
- i__5[2] = 1, a__3[2] = ch__1;
-#line 7558 ""
- i__5[3] = 1, a__3[3] = "}";
-#line 7558 ""
- s_cat(notexq, a__3, i__5, &c__4, (ftnlen)79);
-#line 7559 ""
- lnote += 4;
-#line 7560 ""
- } else {
-/* Writing concatenation */
-#line 7561 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 7561 ""
- i__5[1] = 2, a__3[1] = "{2";
-#line 7561 ""
- i__2 = 51 - comslur_1.ndxslur;
-#line 7561 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 7561 ""
- i__5[2] = 1, a__3[2] = ch__1;
-#line 7561 ""
- i__5[3] = 1, a__3[3] = "}";
-#line 7561 ""
- s_cat(notexq, a__3, i__5, &c__4, (ftnlen)79);
-#line 7562 ""
- lnote += 4;
-#line 7563 ""
- }
-#line 7564 ""
- 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 7568 ""
- ivoffinc = 0;
-#line 7569 ""
- if (stemup && *(unsigned char *)slurudq == 'd' || !
- stemup && *(unsigned char *)slurudq == 'u') {
-#line 7571 ""
- if (stemup) {
-#line 7572 ""
- ivoffinc = -1;
-#line 7573 ""
- } else {
-#line 7574 ""
- ivoffinc = 1;
-#line 7575 ""
- }
-#line 7576 ""
- if ((stemup && *nolev >= *ncm - 2 || ! stemup && *
- nolev <= *ncm + 2) && (i__2 = *ncm - *nolev,
- abs(i__2)) % 2 == 0) {
-#line 7576 ""
- ivoffinc <<= 1;
-#line 7576 ""
- }
-#line 7579 ""
- }
-#line 7580 ""
- ivoff += ivoffinc;
-#line 7581 ""
- }
-#line 7582 ""
- if (idcode == 1 && tmove) {
-
-/* t-slur height adjustment */
-
-#line 7586 ""
- iupdn = 1;
-#line 7587 ""
- if (*(unsigned char *)slurudq == 'd') {
-#line 7587 ""
- iupdn = -1;
-#line 7587 ""
- }
-#line 7588 ""
- }
-#line 7589 ""
- i__2 = nolevs + iupdn + ivoff;
-#line 7589 ""
- notefq_(noteq, &lnoten, &i__2, ncm, (ftnlen)8);
-#line 7590 ""
- if (*(unsigned char *)slurudq == 'u' && (! bit_test(isdat2[
- isdat],0) || nolevs == comtrill_1.maxlev)) {
-#line 7592 ""
- *islhgt = nolevs + iupdn + ivoff;
-
-/* If topvoice, upslur, and idcode checks, no more need to keep hgt for barno. */
-
-#line 7596 ""
- if (commvl_1.ivx == commvl_1.ivmx[*nv + commvl_1.nvmx[*nv
- - 1] * 24 - 25] && comsln_1.is1n1 > 0) {
-#line 7597 ""
- if (idcode == comsln_1.is2n1) {
-#line 7597 ""
- comsln_1.is1n1 = 0;
-#line 7597 ""
- }
-#line 7598 ""
- }
-#line 7599 ""
- }
-/* Writing concatenation */
-#line 7600 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7600 ""
- i__4[1] = lnoten, a__2[1] = noteq;
-#line 7600 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7601 ""
- lnote += lnoten;
-#line 7602 ""
- if (ihoff != 0) {
-#line 7603 ""
- shift = ihoff * .1f;
-/* Writing concatenation */
-#line 7604 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7604 ""
- i__4[1] = 1, a__2[1] = "{";
-#line 7604 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7605 ""
- ++lnote;
-#line 7606 ""
- lform = lfmt1_(&shift);
-#line 7607 ""
- i__2 = lnote;
-#line 7607 ""
- ici__1.icierr = 0;
-#line 7607 ""
- ici__1.icirnum = 1;
-#line 7607 ""
- ici__1.icirlen = lnote + lform - i__2;
-#line 7607 ""
- ici__1.iciunit = notexq + i__2;
-/* Writing concatenation */
-#line 7607 ""
- i__3[0] = 2, a__1[0] = "(f";
-#line 7607 ""
- i__6 = lform + 48;
-#line 7607 ""
- chax_(ch__1, (ftnlen)1, &i__6);
-#line 7607 ""
- i__3[1] = 1, a__1[1] = ch__1;
-#line 7607 ""
- i__3[2] = 3, a__1[2] = ".1)";
-#line 7607 ""
- ici__1.icifmt = (s_cat(ch__2, a__1, i__3, &c__3, (ftnlen)
- 6), ch__2);
-#line 7607 ""
- s_wsfi(&ici__1);
-#line 7607 ""
- do_fio(&c__1, (char *)&shift, (ftnlen)sizeof(real));
-#line 7607 ""
- e_wsfi();
-#line 7609 ""
- lnote += lform;
-/* Writing concatenation */
-#line 7610 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 7610 ""
- i__4[1] = 1, a__2[1] = "}";
-#line 7610 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 7611 ""
- ++lnote;
-#line 7612 ""
- }
-#line 7613 ""
- addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80);
-
-/* Clear the bit from list of slurs in use */
-
-#line 7617 ""
- comslur_1.listslur = bit_clear(comslur_1.listslur,
- comslur_1.ndxslur);
-
-/* Zero out the entire strings for start and stop */
-
-#line 7621 ""
- isdata = 0;
-#line 7622 ""
- isdat2[isdat] = 0;
-#line 7623 ""
- isdat1[j] = 0;
-#line 7624 ""
- isdat2[j] = 0;
-#line 7625 ""
- isdat3[isdat] = 0;
-
-/* Set midi info for slur ending */
-
-#line 7629 ""
- if (commidi_1.ismidi && idcode == 32) {
-#line 7630 ""
- icm = commidi_1.midchan[*iv + *kv * 24 - 25];
-#line 7631 ""
- if (comslm_1.slmon[icm]) {
-#line 7632 ""
- if (nolevs + commvel_1.miditran[cominsttrans_1.instno[
- *iv - 1] - 1] == comslm_1.levson[icm] && (7 &
- *nacc) == 0) {
-
-/* There is a tie here. NB!!! assumed no accidental on 2nd member of tie. */
-
-#line 7637 ""
- comslm_1.levsoff[icm] = nolevs +
- commvel_1.miditran[cominsttrans_1.instno[*
- iv - 1] - 1];
-#line 7638 ""
- settie = TRUE_;
-#line 7639 ""
- } else {
-#line 7640 ""
- comslm_1.levsoff[icm] = 0;
-#line 7641 ""
- comslm_1.levson[icm] = 0;
-#line 7642 ""
- comslm_1.slmon[icm] = FALSE_;
-#line 7643 ""
- }
-#line 7644 ""
- }
-#line 7645 ""
- }
-#line 7646 ""
- }
-#line 7647 ""
- isdat1[isdat] = isdata;
-#line 7648 ""
- }
-#line 7649 ""
-/* L1: */
-#line 7649 ""
- }
-
-/* Clear and collapse the slur data list */
-
-#line 7653 ""
- numdrop = 0;
-#line 7654 ""
- i__1 = *nsdat;
-#line 7654 ""
- for (isdat = 1; isdat <= i__1; ++isdat) {
-#line 7655 ""
- if (isdat1[isdat] == 0) {
-#line 7656 ""
- ++numdrop;
-#line 7657 ""
- } else if (numdrop > 0) {
-#line 7658 ""
- isdat1[isdat - numdrop] = isdat1[isdat];
-#line 7659 ""
- isdat2[isdat - numdrop] = isdat2[isdat];
-#line 7660 ""
- isdat3[isdat - numdrop] = isdat3[isdat];
-#line 7661 ""
- isdat1[isdat] = 0;
-#line 7662 ""
- isdat2[isdat] = 0;
-#line 7663 ""
- isdat3[isdat] = 0;
-#line 7664 ""
- }
-#line 7665 ""
-/* L2: */
-#line 7665 ""
- }
-#line 7666 ""
- *nsdat -= numdrop;
-/* call report(nsdat,isdat1,isdat2) */
-#line 7668 ""
- return 0;
-} /* doslur_ */
-
-/* Subroutine */ int dotmov_(real *updot, real *rtdot, char *soutq, integer *
- lsout, integer *iddot, ftnlen soutq_len)
-{
- /* System generated locals */
- address a__1[5], a__2[8], a__3[5];
- integer i__1[5], i__2, i__3, i__4[8], i__5[5], i__6;
- char ch__1[1], ch__2[22], ch__3[1], ch__4[37], ch__5[15], ch__6[1];
- icilist ici__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
-
- /* Local variables */
- static char sq[1];
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- extern integer lfmt1_(real *);
- static integer lnote;
- extern /* Subroutine */ int addstr_(char *, integer *, char *, integer *,
- ftnlen, ftnlen);
- static integer lfmtup, lfmtrt;
- static char notexq[80];
-
-
-/* iddot = 0 for single dot, 1 for double */
-
-#line 7676 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7676 ""
- *(unsigned char *)sq = *(unsigned char *)&ch__1[0];
-#line 7677 ""
- lfmtup = lfmt1_(updot);
-#line 7678 ""
- lfmtrt = lfmt1_(rtdot);
-#line 7679 ""
- ici__1.icierr = 0;
-#line 7679 ""
- ici__1.icirnum = 1;
-#line 7679 ""
- ici__1.icirlen = 80;
-#line 7679 ""
- ici__1.iciunit = notexq;
-/* Writing concatenation */
-#line 7679 ""
- i__1[0] = 6, a__1[0] = "(a37,f";
-#line 7679 ""
- i__2 = lfmtup + 48;
-#line 7679 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 7679 ""
- i__1[1] = 1, a__1[1] = ch__1;
-#line 7679 ""
- i__1[2] = 7, a__1[2] = ".1,a2,f";
-#line 7679 ""
- i__3 = lfmtrt + 48;
-#line 7679 ""
- chax_(ch__3, (ftnlen)1, &i__3);
-#line 7679 ""
- i__1[3] = 1, a__1[3] = ch__3;
-#line 7679 ""
- i__1[4] = 7, a__1[4] = ".1,a15)";
-#line 7679 ""
- ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__5, (ftnlen)22), ch__2);
-#line 7679 ""
- s_wsfi(&ici__1);
-/* Writing concatenation */
-#line 7679 ""
- i__4[0] = 1, a__2[0] = sq;
-#line 7679 ""
- i__4[1] = 12, a__2[1] = "makeatletter";
-#line 7679 ""
- i__4[2] = 1, a__2[2] = sq;
-#line 7679 ""
- i__4[3] = 3, a__2[3] = "def";
-#line 7679 ""
- i__4[4] = 1, a__2[4] = sq;
-#line 7679 ""
- i__4[5] = 12, a__2[5] = "C@Point#1#2{";
-#line 7679 ""
- i__4[6] = 1, a__2[6] = sq;
-#line 7679 ""
- i__4[7] = 6, a__2[7] = "PMXpt{";
-#line 7679 ""
- s_cat(ch__4, a__2, i__4, &c__8, (ftnlen)37);
-#line 7679 ""
- do_fio(&c__1, ch__4, (ftnlen)37);
-#line 7679 ""
- do_fio(&c__1, (char *)&(*updot), (ftnlen)sizeof(real));
-#line 7679 ""
- do_fio(&c__1, "}{", (ftnlen)2);
-#line 7679 ""
- do_fio(&c__1, (char *)&(*rtdot), (ftnlen)sizeof(real));
-/* Writing concatenation */
-#line 7679 ""
- i__5[0] = 1, a__3[0] = "}";
-#line 7679 ""
- i__6 = *iddot + 48;
-#line 7679 ""
- chax_(ch__6, (ftnlen)1, &i__6);
-#line 7679 ""
- i__5[1] = 1, a__3[1] = ch__6;
-#line 7679 ""
- i__5[2] = 1, a__3[2] = "}";
-#line 7679 ""
- i__5[3] = 1, a__3[3] = sq;
-#line 7679 ""
- i__5[4] = 11, a__3[4] = "makeatother";
-#line 7679 ""
- s_cat(ch__5, a__3, i__5, &c__5, (ftnlen)15);
-#line 7679 ""
- do_fio(&c__1, ch__5, (ftnlen)15);
-#line 7679 ""
- e_wsfi();
-
-/* Example of string just created: */
-/* \makeatletter\def\C@Point#1#2{\PMXpt{.5}{.5}}\makeatother\ */
-
-#line 7688 ""
- lnote = lfmtup + 54 + lfmtrt;
-#line 7689 ""
- addstr_(notexq, &lnote, soutq, lsout, lnote, (ftnlen)80);
-#line 7690 ""
- return 0;
-} /* dotmov_ */
-
-/* Subroutine */ int dotrill_(integer *iv, integer *ip, integer *iornq, char *
- noteq, integer *lnoten, char *notexq, integer *lnote, ftnlen
- noteq_len, ftnlen notexq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[3];
- integer i__1, i__2[2], i__3[3], i__4;
- char ch__1[1], ch__2[6];
- icilist ici__1;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen), s_cat(char *, char **,
- integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
-
- /* Local variables */
- static integer itr;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer nfmt;
- static logical tronly;
-
- /* Fortran I/O blocks */
- static cilist io___531 = { 0, 6, 0, 0, 0 };
-
-
-#line 7700 ""
- i__1 = comtrill_1.ntrill;
-#line 7700 ""
- for (itr = 1; itr <= i__1; ++itr) {
-#line 7701 ""
- if (*iv == comtrill_1.ivtrill[itr - 1] && *ip == comtrill_1.iptrill[
- itr - 1]) {
-#line 7701 ""
- goto L2;
-#line 7701 ""
- }
-#line 7702 ""
-/* L1: */
-#line 7702 ""
- }
-#line 7703 ""
- s_wsle(&io___531);
-#line 7703 ""
- do_lio(&c__9, &c__1, "Problem in dotrill. Call Dr. Don", (ftnlen)33);
-#line 7703 ""
- e_wsle();
-#line 7704 ""
- s_stop("", (ftnlen)0);
-#line 7705 ""
-L2:
-#line 7706 ""
- tronly = comtrill_1.xnsktr[itr - 1] < .01f;
-#line 7707 ""
- if (tronly) {
-/* Writing concatenation */
-#line 7708 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7708 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 7708 ""
- i__2[1] = 9, a__1[1] = "zcharnote";
-#line 7708 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 7709 ""
- *lnote = 10;
-#line 7710 ""
- } else if (bit_test(*iornq,7)) {
-/* Writing concatenation */
-#line 7711 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7711 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 7711 ""
- i__2[1] = 6, a__1[1] = "Trille";
-#line 7711 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 7712 ""
- *lnote = 7;
-#line 7713 ""
- } else {
-/* Writing concatenation */
-#line 7714 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7714 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 7714 ""
- i__2[1] = 6, a__1[1] = "trille";
-#line 7714 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 7715 ""
- *lnote = 7;
-#line 7716 ""
- }
-/* Writing concatenation */
-#line 7717 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 7717 ""
- i__3[1] = *lnoten, a__2[1] = noteq;
-#line 7717 ""
- i__3[2] = 1, a__2[2] = "{";
-#line 7717 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79);
-#line 7718 ""
- *lnote = *lnote + *lnoten + 1;
-
-/* Write trill duration to nearest tenth of a noteskip */
-
-#line 7722 ""
- if (tronly) {
-/* Writing concatenation */
-#line 7723 ""
- i__3[0] = *lnote, a__2[0] = notexq;
-#line 7723 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7723 ""
- i__3[1] = 1, a__2[1] = ch__1;
-#line 7723 ""
- i__3[2] = 6, a__2[2] = "it tr}";
-#line 7723 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79);
-#line 7724 ""
- *lnote += 7;
-#line 7725 ""
- return 0;
-#line 7726 ""
- }
-#line 7727 ""
- if (comtrill_1.xnsktr[itr - 1] < .95f) {
-#line 7728 ""
- nfmt = 2;
-#line 7729 ""
- } else if (comtrill_1.xnsktr[itr - 1] < 9.95f) {
-#line 7730 ""
- nfmt = 3;
-#line 7731 ""
- } else {
-#line 7732 ""
- nfmt = 4;
-#line 7733 ""
- }
-#line 7734 ""
- i__1 = *lnote;
-#line 7734 ""
- ici__1.icierr = 0;
-#line 7734 ""
- ici__1.icirnum = 1;
-#line 7734 ""
- ici__1.icirlen = *lnote + nfmt - i__1;
-#line 7734 ""
- ici__1.iciunit = notexq + i__1;
-/* Writing concatenation */
-#line 7734 ""
- i__3[0] = 2, a__2[0] = "(f";
-#line 7734 ""
- i__4 = nfmt + 48;
-#line 7734 ""
- chax_(ch__1, (ftnlen)1, &i__4);
-#line 7734 ""
- i__3[1] = 1, a__2[1] = ch__1;
-#line 7734 ""
- i__3[2] = 3, a__2[2] = ".1)";
-#line 7734 ""
- ici__1.icifmt = (s_cat(ch__2, a__2, i__3, &c__3, (ftnlen)6), ch__2);
-#line 7734 ""
- s_wsfi(&ici__1);
-#line 7734 ""
- do_fio(&c__1, (char *)&comtrill_1.xnsktr[itr - 1], (ftnlen)sizeof(real));
-#line 7734 ""
- e_wsfi();
-#line 7736 ""
- *lnote += nfmt;
-/* Writing concatenation */
-#line 7737 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 7737 ""
- i__2[1] = 1, a__1[1] = "}";
-#line 7737 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 7738 ""
- ++(*lnote);
-#line 7739 ""
- return 0;
-} /* dotrill_ */
-
-/* Subroutine */ int endslur_(logical *stemup, logical *upslur, integer *
- nolev, integer *iupdn, integer *ndxslur, integer *ivoff, integer *ncm,
- char *soutq, integer *lsout, logical *fontslur, ftnlen soutq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[4];
- integer i__1[2], i__2, i__3[4];
- char ch__1[1];
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
-
- /* Local variables */
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static logical shift;
- static integer lnote;
- static char noteq[8];
- extern /* Subroutine */ int addstr_(char *, integer *, char *, integer *,
- ftnlen, ftnlen), notefq_(char *, integer *, integer *, integer *,
- ftnlen);
- static integer lnoten;
- static char notexq[79];
-
-
-/* Only called to end slur started in dograce. */
-
-#line 7751 ""
- shift = ! (*stemup) && ! (*upslur);
-#line 7752 ""
- if (! shift) {
-
-/* No shift needed */
-
-/* Writing concatenation */
-#line 7756 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7756 ""
- i__1[0] = 1, a__1[0] = ch__1;
-#line 7756 ""
- i__1[1] = 5, a__1[1] = "tslur";
-#line 7756 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 7757 ""
- lnote = 6;
-#line 7758 ""
- } else {
-
-/* Shift needed */
-
-/* Writing concatenation */
-#line 7762 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 7762 ""
- i__1[0] = 1, a__1[0] = ch__1;
-#line 7762 ""
- i__1[1] = 2, a__1[1] = "ts";
-#line 7762 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 7763 ""
- lnote = 3;
-#line 7764 ""
- }
-/* if (ndxslur .lt. 10) then */
-/* notexq = notexq(1:lnote)//chax(48+ndxslur) */
-/* lnote = lnote+1 */
-/* else */
-/* notexq = notexq(1:lnote)//'{1'//chax(38+ndxslur)//'}' */
-/* lnote = lnote+4 */
-/* end if */
-
-/* c Print 11-ndxslur */
-/* Print 23-ndxslur */
-
-/* if (11-ndxslur .lt. 10) then */
-#line 7777 ""
- if (23 - *ndxslur < 10) {
-/* notexq = notexq(1:lnote)//chax(59-ndxslur) */
-/* Writing concatenation */
-#line 7779 ""
- i__1[0] = lnote, a__1[0] = notexq;
-#line 7779 ""
- i__2 = 71 - *ndxslur;
-#line 7779 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 7779 ""
- i__1[1] = 1, a__1[1] = ch__1;
-#line 7779 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 7780 ""
- ++lnote;
-#line 7781 ""
- } else if (23 - *ndxslur < 20) {
-/* notexq = notexq(1:lnote)//'{1'//chax(49-ndxslur)//'}' */
-/* Writing concatenation */
-#line 7783 ""
- i__3[0] = lnote, a__2[0] = notexq;
-#line 7783 ""
- i__3[1] = 2, a__2[1] = "{1";
-#line 7783 ""
- i__2 = 61 - *ndxslur;
-#line 7783 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 7783 ""
- i__3[2] = 1, a__2[2] = ch__1;
-#line 7783 ""
- i__3[3] = 1, a__2[3] = "}";
-#line 7783 ""
- s_cat(notexq, a__2, i__3, &c__4, (ftnlen)79);
-#line 7784 ""
- lnote += 4;
-#line 7785 ""
- } else {
-/* Writing concatenation */
-#line 7786 ""
- i__3[0] = lnote, a__2[0] = notexq;
-#line 7786 ""
- i__3[1] = 2, a__2[1] = "{2";
-#line 7786 ""
- i__2 = 51 - *ndxslur;
-#line 7786 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 7786 ""
- i__3[2] = 1, a__2[2] = ch__1;
-#line 7786 ""
- i__3[3] = 1, a__2[3] = "}";
-#line 7786 ""
- s_cat(notexq, a__2, i__3, &c__4, (ftnlen)79);
-#line 7787 ""
- lnote += 4;
-#line 7788 ""
- }
-#line 7789 ""
- i__2 = *nolev + *iupdn + *ivoff;
-#line 7789 ""
- notefq_(noteq, &lnoten, &i__2, ncm, (ftnlen)8);
-/* Writing concatenation */
-#line 7790 ""
- i__1[0] = lnote, a__1[0] = notexq;
-#line 7790 ""
- i__1[1] = lnoten, a__1[1] = noteq;
-#line 7790 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 7791 ""
- lnote += lnoten;
-#line 7792 ""
- if (shift) {
-#line 7793 ""
- if (*fontslur) {
-/* Writing concatenation */
-#line 7794 ""
- i__1[0] = lnote, a__1[0] = notexq;
-#line 7794 ""
- i__1[1] = 5, a__1[1] = "{-.6}";
-#line 7794 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 7795 ""
- } else {
-/* Writing concatenation */
-#line 7796 ""
- i__1[0] = lnote, a__1[0] = notexq;
-#line 7796 ""
- i__1[1] = 5, a__1[1] = "{-.8}";
-#line 7796 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 7797 ""
- }
-#line 7798 ""
- lnote += 5;
-#line 7799 ""
- }
-#line 7800 ""
- addstr_(notexq, &lnote, soutq, lsout, (ftnlen)79, (ftnlen)80);
-#line 7801 ""
- return 0;
-} /* endslur_ */
-
-/* Subroutine */ int errmsg_(char *lineq, integer *iccount, integer *ibarno,
- char *msgq, ftnlen lineq_len, ftnlen msgq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[5], a__3[4];
- integer i__1[2], i__2, i__3, i__4[5], i__5[4];
- real r__1;
- char ch__1[18], ch__2[1], ch__3[1], ch__4[7], ch__5[79];
- cilist ci__1;
- olist o__1;
- cllist cl__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen), s_cat(char *,
- char **, integer *, integer *, ftnlen);
- integer s_wsle(cilist *), e_wsle(void), f_open(olist *), s_wsfe(cilist *),
- do_fio(integer *, char *, ftnlen), e_wsfe(void), f_clos(cllist *)
- ;
- double r_lg10(real *);
- integer i_indx(char *, char *, ftnlen, ftnlen), do_lio(integer *, integer
- *, char *, ftnlen);
-
- /* Local variables */
- static integer i1, i10;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static char outq[78];
- static integer iposn, ndigbn, ndignl, nlinep, lenmsg;
- extern /* Subroutine */ int printl_(char *, ftnlen);
- static integer ibarnop;
-
- /* Fortran I/O blocks */
- static cilist io___541 = { 0, 6, 0, 0, 0 };
- static cilist io___544 = { 0, 19, 0, "(i6)", 0 };
- static cilist io___548 = { 0, 6, 0, "(1x,a)", 0 };
- static cilist io___549 = { 0, 15, 0, "(a)", 0 };
- static cilist io___552 = { 0, 6, 0, 0, 0 };
- static cilist io___553 = { 0, 15, 0, "(a)", 0 };
-
-
-#line 7813 ""
- if (*iccount <= 78) {
-#line 7814 ""
- s_copy(outq, lineq, (ftnlen)78, (ftnlen)78);
-#line 7815 ""
- iposn = *iccount;
-#line 7816 ""
- } else {
-/* Writing concatenation */
-#line 7817 ""
- i__1[0] = 4, a__1[0] = "... ";
-#line 7817 ""
- i__1[1] = 74, a__1[1] = lineq + 54;
-#line 7817 ""
- s_cat(outq, a__1, i__1, &c__2, (ftnlen)78);
-#line 7818 ""
- iposn = *iccount - 50;
-#line 7819 ""
- }
-#line 7820 ""
- s_wsle(&io___541);
-#line 7820 ""
- e_wsle();
-#line 7821 ""
- ibarnop = *ibarno;
-#line 7822 ""
- if (c1omget_1.linesinpmxmod == 0 || c1omget_1.nline >
- c1omget_1.line1pmxmod + c1omget_1.linesinpmxmod) {
-
-/* Error is in main .pmx file */
-
-/* nlinep = nline-linesinpmxmod */
-/* Correct for comments not copied into buffer */
-#line 7829 ""
- nlinep = truelinecount_1.linewcom[c1omget_1.nline - 1] -
- c1omget_1.linesinpmxmod;
-#line 7830 ""
- } else {
-
-/* Error is in include file */
-
-#line 7834 ""
- ibarnop = 0;
-#line 7835 ""
- nlinep = c1omget_1.nline - c1omget_1.line1pmxmod + 1;
-#line 7836 ""
- printl_("ERROR in include file named above, description given below",
- (ftnlen)58);
-#line 7838 ""
- }
-#line 7839 ""
- o__1.oerr = 0;
-#line 7839 ""
- o__1.ounit = 19;
-#line 7839 ""
- o__1.ofnmlen = 11;
-#line 7839 ""
- o__1.ofnm = "pmxaerr.dat";
-#line 7839 ""
- o__1.orl = 0;
-#line 7839 ""
- o__1.osta = 0;
-#line 7839 ""
- o__1.oacc = 0;
-#line 7839 ""
- o__1.ofm = 0;
-#line 7839 ""
- o__1.oblnk = 0;
-#line 7839 ""
- f_open(&o__1);
-#line 7840 ""
- s_wsfe(&io___544);
-#line 7840 ""
- do_fio(&c__1, (char *)&nlinep, (ftnlen)sizeof(integer));
-#line 7840 ""
- e_wsfe();
-#line 7841 ""
- cl__1.cerr = 0;
-#line 7841 ""
- cl__1.cunit = 19;
-#line 7841 ""
- cl__1.csta = 0;
-#line 7841 ""
- f_clos(&cl__1);
-/* Computing MAX */
-#line 7842 ""
- r__1 = ibarnop + .1f;
-#line 7842 ""
- i__2 = 1, i__3 = (integer) (r_lg10(&r__1) + 1);
-#line 7842 ""
- ndigbn = max(i__2,i__3);
-#line 7843 ""
- r__1 = nlinep + .1f;
-#line 7843 ""
- ndignl = (integer) (r_lg10(&r__1) + 1);
-#line 7844 ""
- lenmsg = i_indx(msgq, "!", msgq_len, (ftnlen)1) - 1;
-
-/* Split off msgq(..) since UNIX compilers don't allow concat substring!!! */
-
-#line 7848 ""
- ci__1.cierr = 0;
-#line 7848 ""
- ci__1.ciunit = 6;
-/* Writing concatenation */
-#line 7848 ""
- i__4[0] = 8, a__2[0] = "(/,a15,i";
-#line 7848 ""
- i__2 = ndignl + 48;
-#line 7848 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 7848 ""
- i__4[1] = 1, a__2[1] = ch__2;
-#line 7848 ""
- i__4[2] = 5, a__2[2] = ",a6,i";
-#line 7848 ""
- i__3 = ndigbn + 48;
-#line 7848 ""
- chax_(ch__3, (ftnlen)1, &i__3);
-#line 7848 ""
- i__4[3] = 1, a__2[3] = ch__3;
-#line 7848 ""
- i__4[4] = 3, a__2[4] = ",$)";
-#line 7848 ""
- ci__1.cifmt = (s_cat(ch__1, a__2, i__4, &c__5, (ftnlen)18), ch__1);
-#line 7848 ""
- s_wsfe(&ci__1);
-#line 7848 ""
- do_fio(&c__1, " ERROR in line ", (ftnlen)15);
-#line 7848 ""
- do_fio(&c__1, (char *)&nlinep, (ftnlen)sizeof(integer));
-#line 7848 ""
- do_fio(&c__1, ", bar ", (ftnlen)6);
-#line 7848 ""
- do_fio(&c__1, (char *)&ibarnop, (ftnlen)sizeof(integer));
-#line 7848 ""
- e_wsfe();
-#line 7850 ""
- s_wsfe(&io___548);
-#line 7850 ""
- do_fio(&c__1, msgq, lenmsg);
-#line 7850 ""
- e_wsfe();
-#line 7851 ""
- ci__1.cierr = 0;
-#line 7851 ""
- ci__1.ciunit = 15;
-/* Writing concatenation */
-#line 7851 ""
- i__4[0] = 8, a__2[0] = "(/,a15,i";
-#line 7851 ""
- i__2 = ndignl + 48;
-#line 7851 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 7851 ""
- i__4[1] = 1, a__2[1] = ch__2;
-#line 7851 ""
- i__4[2] = 5, a__2[2] = ",a6,i";
-#line 7851 ""
- i__3 = ndigbn + 48;
-#line 7851 ""
- chax_(ch__3, (ftnlen)1, &i__3);
-#line 7851 ""
- i__4[3] = 1, a__2[3] = ch__3;
-#line 7851 ""
- i__4[4] = 3, a__2[4] = ",$)";
-#line 7851 ""
- ci__1.cifmt = (s_cat(ch__1, a__2, i__4, &c__5, (ftnlen)18), ch__1);
-#line 7851 ""
- s_wsfe(&ci__1);
-#line 7851 ""
- do_fio(&c__1, " ERROR in line ", (ftnlen)15);
-#line 7851 ""
- do_fio(&c__1, (char *)&nlinep, (ftnlen)sizeof(integer));
-#line 7851 ""
- do_fio(&c__1, ", bar ", (ftnlen)6);
-#line 7851 ""
- do_fio(&c__1, (char *)&ibarnop, (ftnlen)sizeof(integer));
-#line 7851 ""
- e_wsfe();
-#line 7853 ""
- s_wsfe(&io___549);
-#line 7853 ""
- do_fio(&c__1, msgq, lenmsg);
-#line 7853 ""
- e_wsfe();
-#line 7854 ""
- i10 = iposn / 10;
-#line 7855 ""
- i1 = iposn - i10 * 10;
-#line 7856 ""
- ci__1.cierr = 0;
-#line 7856 ""
- ci__1.ciunit = 6;
-/* Writing concatenation */
-#line 7856 ""
- i__5[0] = 1, a__3[0] = "(";
-#line 7856 ""
- i__2 = i10 + 48;
-#line 7856 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 7856 ""
- i__5[1] = 1, a__3[1] = ch__2;
-#line 7856 ""
- i__3 = i1 + 48;
-#line 7856 ""
- chax_(ch__3, (ftnlen)1, &i__3);
-#line 7856 ""
- i__5[2] = 1, a__3[2] = ch__3;
-#line 7856 ""
- i__5[3] = 4, a__3[3] = "x,a)";
-#line 7856 ""
- ci__1.cifmt = (s_cat(ch__4, a__3, i__5, &c__4, (ftnlen)7), ch__4);
-#line 7856 ""
- s_wsfe(&ci__1);
-#line 7856 ""
- do_fio(&c__1, "v", (ftnlen)1);
-#line 7856 ""
- e_wsfe();
-#line 7857 ""
- ci__1.cierr = 0;
-#line 7857 ""
- ci__1.ciunit = 15;
-/* Writing concatenation */
-#line 7857 ""
- i__5[0] = 1, a__3[0] = "(";
-#line 7857 ""
- i__2 = i10 + 48;
-#line 7857 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 7857 ""
- i__5[1] = 1, a__3[1] = ch__2;
-#line 7857 ""
- i__3 = i1 + 48;
-#line 7857 ""
- chax_(ch__3, (ftnlen)1, &i__3);
-#line 7857 ""
- i__5[2] = 1, a__3[2] = ch__3;
-#line 7857 ""
- i__5[3] = 4, a__3[3] = "x,a)";
-#line 7857 ""
- ci__1.cifmt = (s_cat(ch__4, a__3, i__5, &c__4, (ftnlen)7), ch__4);
-#line 7857 ""
- s_wsfe(&ci__1);
-#line 7857 ""
- do_fio(&c__1, "v", (ftnlen)1);
-#line 7857 ""
- e_wsfe();
-#line 7858 ""
- s_wsle(&io___552);
-#line 7858 ""
- do_lio(&c__9, &c__1, outq, (ftnlen)78);
-#line 7858 ""
- e_wsle();
-#line 7859 ""
- s_wsfe(&io___553);
-/* Writing concatenation */
-#line 7859 ""
- i__1[0] = 1, a__1[0] = " ";
-#line 7859 ""
- i__1[1] = 78, a__1[1] = outq;
-#line 7859 ""
- s_cat(ch__5, a__1, i__1, &c__2, (ftnlen)79);
-#line 7859 ""
- do_fio(&c__1, ch__5, (ftnlen)79);
-#line 7859 ""
- e_wsfe();
-#line 7860 ""
- ci__1.cierr = 0;
-#line 7860 ""
- ci__1.ciunit = 6;
-/* Writing concatenation */
-#line 7860 ""
- i__5[0] = 1, a__3[0] = "(";
-#line 7860 ""
- i__2 = i10 + 48;
-#line 7860 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 7860 ""
- i__5[1] = 1, a__3[1] = ch__2;
-#line 7860 ""
- i__3 = i1 + 48;
-#line 7860 ""
- chax_(ch__3, (ftnlen)1, &i__3);
-#line 7860 ""
- i__5[2] = 1, a__3[2] = ch__3;
-#line 7860 ""
- i__5[3] = 4, a__3[3] = "x,a)";
-#line 7860 ""
- ci__1.cifmt = (s_cat(ch__4, a__3, i__5, &c__4, (ftnlen)7), ch__4);
-#line 7860 ""
- s_wsfe(&ci__1);
-#line 7860 ""
- do_fio(&c__1, "^", (ftnlen)1);
-#line 7860 ""
- e_wsfe();
-#line 7861 ""
- ci__1.cierr = 0;
-#line 7861 ""
- ci__1.ciunit = 15;
-/* Writing concatenation */
-#line 7861 ""
- i__5[0] = 1, a__3[0] = "(";
-#line 7861 ""
- i__2 = i10 + 48;
-#line 7861 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 7861 ""
- i__5[1] = 1, a__3[1] = ch__2;
-#line 7861 ""
- i__3 = i1 + 48;
-#line 7861 ""
- chax_(ch__3, (ftnlen)1, &i__3);
-#line 7861 ""
- i__5[2] = 1, a__3[2] = ch__3;
-#line 7861 ""
- i__5[3] = 4, a__3[3] = "x,a)";
-#line 7861 ""
- ci__1.cifmt = (s_cat(ch__4, a__3, i__5, &c__4, (ftnlen)7), ch__4);
-#line 7861 ""
- s_wsfe(&ci__1);
-#line 7861 ""
- do_fio(&c__1, "^", (ftnlen)1);
-#line 7861 ""
- e_wsfe();
-#line 7862 ""
- return 0;
-} /* errmsg_ */
-
-/* Subroutine */ int eskb4_(integer *ip, integer *ivx, integer *in, integer *
- ib, real *space, real *tstart, real *fbar, integer *itrpt, real *esk)
-{
- /* System generated locals */
- real r__1;
-
- /* Builtin functions */
- integer i_nint(real *), s_wsle(cilist *), do_lio(integer *, integer *,
- char *, ftnlen), e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
-
- /* Local variables */
- static integer iib;
- extern doublereal feon_(real *);
- static integer itnd, nnsk, itprev;
-
- /* Fortran I/O blocks */
- static cilist io___558 = { 0, 6, 0, 0, 0 };
-
-
-
-/* Get elemskips to previous note. Called only for graces, no xtups involved. */
-
-#line 7882 ""
- /* Parameter adjustments */
-#line 7882 ""
- --tstart;
-#line 7882 ""
- --space;
-#line 7882 ""
-
-#line 7882 ""
- /* Function Body */
-#line 7882 ""
- itnd = i_nint(&all_1.to[*in - 1]);
-#line 7883 ""
- if (*ip == 1 || itnd == *itrpt) {
-
-/* Start of bar or after rpt. */
-
-#line 7887 ""
- *esk = *fbar;
-#line 7888 ""
- return 0;
-#line 7889 ""
- } else {
-#line 7890 ""
- *esk = 0.f;
-#line 7891 ""
- itprev = itnd - all_1.nodur[*ivx + (*ip - 1) * 24 - 25];
-#line 7892 ""
- for (iib = *ib; iib >= 1; --iib) {
-#line 7893 ""
- if (tstart[iib] < itprev + comtol_1.tol) {
-
-/* This is the block */
-
-#line 7897 ""
- r__1 = (real) (itnd - itprev) / space[iib];
-#line 7897 ""
- nnsk = i_nint(&r__1);
-#line 7898 ""
- *esk += nnsk * feon_(&space[iib]);
-#line 7899 ""
- return 0;
-#line 7900 ""
- } else {
-#line 7901 ""
- r__1 = (itnd - tstart[iib]) / space[iib];
-#line 7901 ""
- nnsk = i_nint(&r__1);
-#line 7902 ""
- *esk += nnsk * feon_(&space[iib]);
-#line 7903 ""
- itnd = i_nint(&tstart[iib]);
-#line 7904 ""
- }
-#line 7905 ""
-/* L1: */
-#line 7905 ""
- }
-#line 7906 ""
- }
-#line 7907 ""
- s_wsle(&io___558);
-#line 7907 ""
- do_lio(&c__9, &c__1, "Problem in eskb4. Send files to Dr. Don", (ftnlen)
- 40);
-#line 7907 ""
- e_wsle();
-#line 7908 ""
- s_stop("", (ftnlen)0);
-#line 7909 ""
- return 0;
-} /* eskb4_ */
-
-doublereal f1eon_(real *time)
-{
- /* System generated locals */
- real ret_val;
-
- /* Builtin functions */
- double sqrt(doublereal);
-
-#line 7911 ""
- ret_val = sqrt(*time / 2);
-#line 7912 ""
- return ret_val;
-} /* f1eon_ */
-
-doublereal feon_(real *time)
-{
- /* System generated locals */
- real ret_val;
- doublereal d__1, d__2;
-
- /* Builtin functions */
- double sqrt(doublereal), pow_dd(doublereal *, doublereal *);
-
-#line 7916 ""
- d__1 = (doublereal) sqrt(*time / 2);
-#line 7916 ""
- d__2 = (doublereal) (1.f - comeon_1.eonk);
-#line 7916 ""
- ret_val = pow_dd(&d__1, &d__2) * comeon_1.ewmxk;
-#line 7917 ""
- return ret_val;
-} /* feon_ */
-
-/* Subroutine */ int findbeam_(integer *ibmrep, integer *numbms, integer *
- mapfb)
-{
- /* Initialized data */
-
- static integer nip1[248] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
- static integer nip2[248] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
- static integer nummask[3] = { 29,49,12 };
- static integer mask[147] /* was [49][3] */ = { 65535,4095,65520,255,
- 65280,63,252,16128,64512,15,240,3840,61440,7,14,112,224,1792,3584,
- 28672,57344,3,12,48,192,768,3072,12288,49152,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,16777215,65535,16776960,4095,65520,1048320,
- 16773120,255,65280,16711680,63,252,16128,64512,4128768,16515072,
- 15,60,240,3840,15360,61440,983040,3932160,15728640,7,14,112,224,
- 1792,3584,28672,57344,458752,917504,7340032,14680064,3,12,48,192,
- 768,3072,12288,49152,196608,786432,3145728,12582912,4095,255,4080,
- 15,240,3840,3,12,48,192,768,3072,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
- static logical eqonly[147] /* was [49][3] */ = { TRUE_,TRUE_,TRUE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,TRUE_,TRUE_,TRUE_,TRUE_,TRUE_,TRUE_,TRUE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,
- FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_,FALSE_ };
-
- /* System generated locals */
- integer i__1, i__2, i__3, i__4;
- real r__1, r__2;
-
- /* Builtin functions */
- integer lbit_shift(integer, integer), s_wsle(cilist *), do_lio(integer *,
- integer *, char *, ftnlen), e_wsle(void);
- double r_mod(real *, real *);
-
- /* Local variables */
- static integer ib, ip, ir, it, is, ib1, ib2, ir1, is1, is2, it2, iip, ipr[
- 248], itr[248], mape, mapm, irep, maps, nreal, itend, itoff,
- maskm, nodue[248], itseg, mtemp;
- static logical short__[248];
- static integer itnow, ithalf, numnew;
- extern /* Subroutine */ int logbeam_(integer *, integer *, integer *);
- static integer masknow;
-
- /* Fortran I/O blocks */
- static cilist io___592 = { 0, 6, 0, 0, 0 };
-
-
-
-/* Called once per voice per bar, after setting forced beams. */
-
-/* integer numbms(nm),ipr(48),nip1(0:47),nip2(0:47),mapfb(16), */
-/* * itr(48),nodue(48) */
-/* logical short(48),eqonly */
-#line 7947 ""
- /* Parameter adjustments */
-#line 7947 ""
- --mapfb;
-#line 7947 ""
- --numbms;
-#line 7947 ""
-
-#line 7947 ""
- /* Function Body */
-#line 7968 ""
- ip = 0;
-#line 7969 ""
- nreal = 0;
-#line 7970 ""
- itnow = 0;
-#line 7971 ""
-L1:
-#line 7972 ""
- ++ip;
-#line 7973 ""
- if (ip > all_1.nn[commvl_1.ivx - 1]) {
-#line 7973 ""
- goto L9;
-#line 7973 ""
- }
-#line 7974 ""
-L11:
-#line 7974 ""
- 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 7980 ""
- ++ip;
-#line 7981 ""
- goto L11;
-#line 7982 ""
- }
-#line 7983 ""
- ++nreal;
-#line 7984 ""
- nodue[nreal - 1] = all_1.nodur[commvl_1.ivx + ip * 24 - 25];
-#line 7985 ""
- 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 7991 ""
- ipr[nreal - 1] = ip;
-#line 7992 ""
- itr[nreal - 1] = itnow;
-#line 7993 ""
- if (nodue[nreal - 1] == 1) {
-
-/* 64th gap */
-
-#line 7997 ""
- if (itnow % 2 == 0) {
-
-/* Start of 32nd gap, lump with following note */
-
-#line 8001 ""
- ++ip;
-#line 8002 ""
- nodue[nreal - 1] = all_1.nodur[commvl_1.ivx + ip * 24 - 25] + 1;
-#line 8003 ""
- itnow += nodue[nreal - 1];
-#line 8004 ""
- } else {
-
-/* End of 32nd gap, lump with preceeding note */
-
-#line 8008 ""
- --nreal;
-#line 8009 ""
- ++nodue[nreal - 1];
-#line 8010 ""
- ++itnow;
-#line 8011 ""
- }
-#line 8012 ""
- } else {
-#line 8013 ""
- itnow += all_1.nodur[commvl_1.ivx + ip * 24 - 25];
-#line 8014 ""
- }
-#line 8015 ""
- goto L1;
-#line 8016 ""
-L9:
-#line 8017 ""
- ir1 = 1;
-#line 8018 ""
- itseg = all_1.lenbar / *ibmrep;
-#line 8019 ""
- i__1 = *ibmrep;
-#line 8019 ""
- 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 8025 ""
- maps = 0;
-#line 8026 ""
- mapm = 0;
-#line 8027 ""
- mape = 0;
-#line 8028 ""
- itend = itseg * irep;
-#line 8029 ""
- itoff = itend - itseg;
-#line 8030 ""
- i__2 = nreal;
-#line 8030 ""
- for (ir = ir1; ir <= i__2; ++ir) {
-#line 8031 ""
- it2 = itr[ir - 1] + nodue[ir - 1] - 2;
-#line 8032 ""
- if (it2 >= itend) {
-#line 8033 ""
- ir1 = ir;
-#line 8034 ""
- goto L14;
-#line 8035 ""
- }
-/* if (short(ir).and.((ir.gt.1.and.short(ir-1)).or.(ir.lt.nreal */
-/* Computing MAX */
-#line 8037 ""
- i__3 = ir - 1;
-#line 8037 ""
- if (short__[ir - 1] && (ir > 1 && short__[max(i__3,1) - 1] || ir <
- nreal && short__[ir])) {
-#line 8039 ""
- ib1 = (itr[ir - 1] - itoff) / 2;
-#line 8040 ""
- ib2 = (it2 - itoff) / 2;
-#line 8041 ""
- if (max(ib1,ib2) > 47 || ir > 48 || min(ib1,ib2) < 0) {
-#line 8041 ""
- return 0;
-#line 8041 ""
- }
-
-/* Must have an odd number obe beats in a long bar. Auto-beam won't work */
-
-#line 8046 ""
- nip1[ib1] = ipr[ir - 1];
-#line 8047 ""
- nip2[ib2] = ipr[ir - 1];
-
-/* nip1,2(ib) = 0 unless a real note starts,ends on bit ib; then = ip */
-
-#line 8051 ""
- maps = bit_set(maps,ib1);
-#line 8052 ""
- mape = bit_set(mape,ib2);
-#line 8053 ""
- i__3 = ib2;
-#line 8053 ""
- for (ib = ib1; ib <= i__3; ++ib) {
-#line 8054 ""
- mapm = bit_set(mapm,ib);
-#line 8055 ""
-/* L3: */
-#line 8055 ""
- }
-#line 8056 ""
- }
-#line 8057 ""
-/* L2: */
-#line 8057 ""
- }
-#line 8058 ""
-L14:
-#line 8059 ""
- if (mapm == 0) {
-#line 8059 ""
- goto L13;
-#line 8059 ""
- }
-
-/* Zero out bits from forced beams */
-
-#line 8063 ""
- maps &= ~ mapfb[irep];
-#line 8064 ""
- mapm &= ~ mapfb[irep];
-#line 8065 ""
- mape &= ~ mapfb[irep];
-
-/* Compare map with template. */
-
-#line 8069 ""
- i__2 = nummask[combeam_1.ibmtyp - 1];
-#line 8069 ""
- for (it = 1; it <= i__2; ++it) {
-#line 8070 ""
- masknow = mask[it + combeam_1.ibmtyp * 49 - 50];
-#line 8071 ""
- if ((masknow & mapm) == masknow) {
-
-/* Find least significant bit in the mask to check start time */
-
-#line 8075 ""
- mtemp = masknow;
-#line 8076 ""
- maskm = masknow;
-#line 8077 ""
- for (is1 = 0; is1 <= 47; ++is1) {
-#line 8078 ""
- if ((1 & mtemp) == 1) {
-#line 8078 ""
- goto L6;
-#line 8078 ""
- }
-#line 8079 ""
- mtemp = lbit_shift(mtemp, (ftnlen)-1);
-#line 8080 ""
-/* L5: */
-#line 8080 ""
- }
-#line 8081 ""
-L6:
-#line 8082 ""
- if ((lbit_shift((ftnlen)1, is1) & maps) == 0) {
-#line 8082 ""
- goto L4;
-#line 8082 ""
- }
-
-/* is1 is the bit where the beam starts. Continue shifting to */
-/* find most significant bit in the mask to check ending time */
-
-#line 8087 ""
- for (is2 = is1; is2 <= 47; ++is2) {
-#line 8088 ""
- mtemp = lbit_shift(mtemp, (ftnlen)-1);
-#line 8089 ""
- if ((1 & ~ mtemp) == 1) {
-#line 8089 ""
- goto L8;
-#line 8089 ""
- }
-#line 8090 ""
-/* L7: */
-#line 8090 ""
- }
-#line 8091 ""
-L8:
-
-/* is2 is now the bit on which the beam ends. */
-
-#line 8095 ""
- if ((lbit_shift((ftnlen)1, is2) & mape) == 0) {
-#line 8095 ""
- goto L4;
-#line 8095 ""
- }
-
-/* Did we pick out a single note from the middle of a longer sequence? */
-
-#line 8099 ""
- if (nip1[is1] == nip2[is2]) {
-#line 8099 ""
- goto L4;
-#line 8099 ""
- }
-
-/* We almost have a beam. Check equality of notes if needed. */
-
-#line 8103 ""
- if (eqonly[it + combeam_1.ibmtyp * 49 - 50]) {
-#line 8104 ""
- i__3 = nip2[is2];
-#line 8104 ""
- for (ip = nip1[is1]; ip <= i__3; ++ip) {
-#line 8105 ""
- 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 8109 ""
- if (is2 - is1 != 15) {
-#line 8109 ""
- goto L4;
-#line 8109 ""
- }
-
-/* Beam is 2 quarters long. Check if can split in half. */
-
-#line 8113 ""
- ithalf = 0;
-#line 8114 ""
- i__4 = nip2[is2];
-#line 8114 ""
- for (iip = nip1[is1]; iip <= i__4; ++iip) {
-#line 8115 ""
- ithalf += all_1.nodur[commvl_1.ivx + iip * 24
- - 25];
-#line 8116 ""
- if (ithalf > 16) {
-#line 8116 ""
- goto L4;
-#line 8116 ""
- }
-#line 8117 ""
- if (ithalf == 16) {
-#line 8117 ""
- goto L21;
-#line 8117 ""
- }
-#line 8118 ""
-/* L20: */
-#line 8118 ""
- }
-#line 8119 ""
- s_wsle(&io___592);
-#line 8119 ""
- do_lio(&c__9, &c__1, "Problem in findbeam, pleas"\
- "e call Dr. Don", (ftnlen)40);
-#line 8119 ""
- e_wsle();
-#line 8120 ""
- goto L4;
-#line 8121 ""
-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 8126 ""
- is2 = is1 + 7;
-
-/* Reset maskm (since only used part of mask), used later to zero out */
-/* bits that contain beams */
-
-#line 8131 ""
- maskm = 0;
-#line 8132 ""
- i__4 = is2;
-#line 8132 ""
- for (is = is1; is <= i__4; ++is) {
-#line 8133 ""
- maskm = bit_set(maskm,is);
-#line 8134 ""
-/* L15: */
-#line 8134 ""
- }
-#line 8135 ""
- goto L16;
-#line 8136 ""
- }
-#line 8137 ""
-/* L10: */
-#line 8137 ""
- }
-#line 8138 ""
- }
-#line 8139 ""
-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 8145 ""
- 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 8145 ""
- if ((r__1 = r_mod(&r__2, &c_b1901), dabs(r__1)) >
- comtol_1.tol) {
-#line 8147 ""
- ++nip2[is2];
-#line 8148 ""
- }
-#line 8149 ""
- ++numbms[commvl_1.ivx];
-#line 8150 ""
- numnew = numbms[commvl_1.ivx];
-#line 8151 ""
- logbeam_(&numnew, &nip1[is1], &nip2[is2]);
-
-/* Zero out the appropriate bits so these notes don't get used again */
-
-#line 8155 ""
- mapm &= ~ maskm;
-#line 8156 ""
- if (mapm == 0) {
-#line 8156 ""
- goto L13;
-#line 8156 ""
- }
-#line 8157 ""
- maps &= ~ maskm;
-#line 8158 ""
- mape &= ~ maskm;
-#line 8159 ""
- }
-#line 8160 ""
-L4:
-#line 8160 ""
- ;
-#line 8160 ""
- }
-#line 8161 ""
-L13:
-#line 8161 ""
- ;
-#line 8161 ""
- }
-#line 8162 ""
- return 0;
-} /* findbeam_ */
-
-/* Subroutine */ int findeonk_(integer *nptr1, integer *nptr2, real *wovera,
- real *xelsk, real *dtmin, real *dtmax, real *eonk0)
-{
- /* System generated locals */
- integer i__1;
- real r__1;
- doublereal d__1, d__2;
-
- /* Builtin functions */
- double pow_dd(doublereal *, doublereal *), sqrt(doublereal), log(
- doublereal);
-
- /* Local variables */
- static real f, fp;
- extern doublereal feon_(real *);
- static real targ, esum;
- static integer iptr;
- extern doublereal f1eon_(real *);
- static real desum, dsoln;
- static integer niter;
- static real detarg;
- extern /* Subroutine */ int printl_(char *, ftnlen);
-
-
-/* Compute an exponent eonk for use in the "flattened" formula for elemskips */
-/* vs time. We must solve the eqution f = 0. Initial quess is eonk0. */
-
-/* logical gotclef */
-/* * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks) */
-#line 8177 ""
- comeon_1.eonk = *eonk0;
-#line 8178 ""
- niter = 0;
-#line 8179 ""
-L1:
-#line 8180 ""
- d__1 = (doublereal) f1eon_(dtmax);
-#line 8180 ""
- d__2 = (doublereal) comeon_1.eonk;
-#line 8180 ""
- comeon_1.ewmxk = pow_dd(&d__1, &d__2);
-#line 8181 ""
- ++niter;
-#line 8182 ""
- esum = 0.f;
-#line 8183 ""
- desum = 0.f;
-#line 8184 ""
- i__1 = *nptr2;
-#line 8184 ""
- for (iptr = *nptr1; iptr <= i__1; ++iptr) {
-#line 8185 ""
- targ = c1omnotes_1.durb[iptr - 1] / c1omnotes_1.sqzb[iptr - 1];
-#line 8186 ""
- esum += c1omnotes_1.nnpd[iptr - 1] * c1omnotes_1.sqzb[iptr - 1] *
- feon_(&targ);
-#line 8187 ""
- d__1 = (doublereal) (*dtmax / targ);
-#line 8187 ""
- d__2 = (doublereal) comeon_1.eonk;
-#line 8187 ""
- detarg = sqrt(targ / 2 * pow_dd(&d__1, &d__2)) * log(*dtmax / targ);
-#line 8188 ""
- desum += c1omnotes_1.nnpd[iptr - 1] * c1omnotes_1.sqzb[iptr - 1] *
- detarg;
-#line 8189 ""
-/* L2: */
-#line 8189 ""
- }
-#line 8190 ""
- f = *wovera * feon_(dtmin) - *xelsk - esum;
-#line 8191 ""
- d__1 = (doublereal) (*dtmax / *dtmin);
-#line 8191 ""
- d__2 = (doublereal) comeon_1.eonk;
-#line 8191 ""
- fp = *wovera * sqrt(*dtmin / 2 * pow_dd(&d__1, &d__2)) * log(*dtmax / *
- dtmin) - desum;
-#line 8193 ""
- if (dabs(fp) < comtol_1.tol || (r__1 = comeon_1.eonk - .5f, dabs(r__1)) >
- .5f || niter > 100) {
-#line 8194 ""
- printl_("Error in findeonk. Please send source to Dr. Don", (ftnlen)
- 49);
-#line 8196 ""
- comeon_1.eonk = 0.f;
-#line 8197 ""
- comeon_1.ewmxk = 1.f;
-#line 8198 ""
- return 0;
-#line 8199 ""
- }
-#line 8200 ""
- dsoln = -f / fp;
-#line 8201 ""
- if (dabs(dsoln) < comtol_1.tol * .1f) {
-#line 8201 ""
- return 0;
-#line 8201 ""
- }
-
-/* Not converged yet, try again */
-
-#line 8205 ""
- comeon_1.eonk += dsoln;
-#line 8206 ""
- goto L1;
-} /* findeonk_ */
-
-doublereal fnote_(integer *nodur, integer *ivx, integer *ip, integer *nacc)
-{
- /* System generated locals */
- real ret_val;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
-
- /* Local variables */
- static integer iip, ip1m1;
- extern /* Subroutine */ int stop1_(void);
- static integer ndoub, ipback;
- extern /* Subroutine */ int printl_(char *, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___608 = { 0, 6, 0, 0, 0 };
- static cilist io___609 = { 0, 6, 0, 0, 0 };
-
-
-
-/* This return the real duration of a note */
-
-#line 8215 ""
- /* Parameter adjustments */
-#line 8215 ""
- nacc -= 25;
-#line 8215 ""
- nodur -= 25;
-#line 8215 ""
-
-#line 8215 ""
- /* Function Body */
-#line 8215 ""
- ipback = *ip;
-#line 8216 ""
- if (nodur[*ivx + *ip * 24] > 0) {
-#line 8217 ""
- if (*ip > 1) {
-
-/* Check if this is last note of xtup */
-
-#line 8221 ""
- if (nodur[*ivx + (*ip - 1) * 24] == 0) {
-#line 8222 ""
- ipback = *ip - 1;
-#line 8223 ""
- goto L2;
-#line 8224 ""
- }
-#line 8225 ""
- }
-#line 8226 ""
- ret_val = (real) nodur[*ivx + *ip * 24];
-#line 8227 ""
- return ret_val;
-#line 8228 ""
- }
-#line 8229 ""
-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 8234 ""
- ndoub = 0;
-#line 8235 ""
- for (ip1m1 = ipback; ip1m1 >= 1; --ip1m1) {
-#line 8236 ""
- if (nodur[*ivx + ip1m1 * 24] > 0) {
-#line 8236 ""
- goto L4;
-#line 8236 ""
- }
-#line 8237 ""
- if (ip1m1 < *ip && bit_test(nacc[*ivx + ip1m1 * 24],18)) {
-#line 8237 ""
- ++ndoub;
-#line 8237 ""
- }
-#line 8238 ""
-/* L1: */
-#line 8238 ""
- }
-#line 8239 ""
-L4:
-
-/* count forward to next non-0 nodur. Start at ip in case last note of xtup. */
-
-#line 8243 ""
- for (iip = *ip; iip <= 200; ++iip) {
-
-/* Count doubled xtup notes from ip to end. */
-
-#line 8247 ""
- if (bit_test(nacc[*ivx + iip * 24],18)) {
-#line 8247 ""
- ++ndoub;
-#line 8247 ""
- }
-#line 8248 ""
- if (nodur[*ivx + iip * 24] > 0) {
-/* fnote = nodur(ivx,iip)/float(iip-ip1m1) */
-#line 8250 ""
- ret_val = nodur[*ivx + iip * 24] / (real) (iip - ip1m1 + ndoub);
-#line 8251 ""
- if (bit_test(nacc[*ivx + *ip * 24],18)) {
-#line 8252 ""
- ret_val *= 2;
-#line 8253 ""
- } else if (bit_test(nacc[*ivx + *ip * 24],27)) {
-#line 8254 ""
- ret_val *= 1.5f;
-#line 8255 ""
- } else if (*ip > 1) {
-#line 8256 ""
- if (bit_test(nacc[*ivx + (*ip - 1) * 24],27)) {
-#line 8256 ""
- ret_val *= .5f;
-#line 8256 ""
- }
-#line 8257 ""
- }
-#line 8258 ""
- return ret_val;
-#line 8259 ""
- }
-#line 8260 ""
-/* L3: */
-#line 8260 ""
- }
-#line 8261 ""
- s_wsle(&io___608);
-#line 8261 ""
- do_lio(&c__9, &c__1, " ", (ftnlen)1);
-#line 8261 ""
- e_wsle();
-#line 8262 ""
- printl_("Probable misplaced barline or incorrect meter, stopping", (
- ftnlen)55);
-#line 8264 ""
- s_wsle(&io___609);
-#line 8264 ""
- do_lio(&c__9, &c__1, "ivx,ip:", (ftnlen)7);
-#line 8264 ""
- do_lio(&c__3, &c__1, (char *)&(*ivx), (ftnlen)sizeof(integer));
-#line 8264 ""
- do_lio(&c__3, &c__1, (char *)&(*ip), (ftnlen)sizeof(integer));
-#line 8264 ""
- e_wsle();
-#line 8265 ""
- stop1_();
-#line 8266 ""
- return ret_val;
-} /* fnote_ */
-
-/* Subroutine */ int g1etchar_(char *lineq, integer *iccount, char *charq,
- ftnlen lineq_len, ftnlen charq_len)
-{
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static integer ndxm;
- extern /* Subroutine */ int read10_(char *, logical *, ftnlen), m1rec1_(
- char *, integer *, integer *, integer *, integer *, integer *,
- ftnlen);
- static integer nbars, ibaroff, ibarcnt;
-
-
-/* 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 8280 ""
- if (*iccount == 128) {
-#line 8281 ""
- read10_(lineq, &c1omget_1.lastchar, (ftnlen)128);
-#line 8282 ""
- if (c1omget_1.lastchar) {
-#line 8282 ""
- return 0;
-#line 8282 ""
- }
-#line 8283 ""
- if (! commac_1.endmac) {
-#line 8284 ""
- *iccount = 0;
-#line 8285 ""
- if (! commac_1.mplay) {
-#line 8285 ""
- ++c1omget_1.nline;
-#line 8285 ""
- }
-#line 8286 ""
- } else {
-#line 8287 ""
- commac_1.endmac = FALSE_;
-#line 8288 ""
- *iccount = commac_1.icchold;
-#line 8289 ""
- s_copy(lineq, commac_1.lnholdq, (ftnlen)128, (ftnlen)128);
-#line 8290 ""
- }
-#line 8291 ""
- if (commac_1.mrecord) {
-#line 8292 ""
- m1rec1_(lineq, iccount, &ibarcnt, &ibaroff, &nbars, &ndxm, (
- ftnlen)128);
-#line 8293 ""
- }
-#line 8294 ""
- }
-#line 8295 ""
- ++(*iccount);
-#line 8296 ""
- *(unsigned char *)charq = *(unsigned char *)&lineq[*iccount - 1];
-#line 8297 ""
- return 0;
-} /* g1etchar_ */
-
-/* Subroutine */ int g1etnote_(logical *loop, integer *ifig, logical *
- optimize, logical *fulltrans)
-{
- /* Initialized data */
-
- static char literq[51*3] = "Literal TeX string cannot start with 4 backs"
- "lashes!" "TeX string must have <129 char, end with backslash!"
- "Type 2 or 3 TeX string can only start in column 1! ";
- static char lyrerq[51*5] = "pmxlyr string must end with \" followed by b"
- "lank! " "pmxlyr string cannot extend past position 120! "
- "There must be \"a\" or \"b\" here! " "There"
- " must be \"+\" or \"-\" here! " "There must "
- "be an integer here! ";
-
- /* System generated locals */
- address a__1[3], a__2[2], a__3[4];
- integer i__1, i__2[3], i__3[2], i__4, i__5, i__6, i__7, i__8[4];
- real r__1;
- char ch__1[42], ch__2[1], ch__3[2], ch__4[55], ch__5[54], ch__6[46];
- icilist ici__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), s_wsle(cilist *), e_wsle(
- void), do_lio(integer *, integer *, char *, ftnlen), s_wsfe(
- cilist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer do_fio(integer *, char *, ftnlen), e_wsfe(void), s_cmp(char *,
- char *, ftnlen, ftnlen), i_nint(real *);
- double log(doublereal);
- integer pow_ii(integer *, integer *), s_rsfe(cilist *), e_rsfe(void),
- s_rsfi(icilist *), e_rsfi(void);
-
- /* Local variables */
- extern integer i1fnodur_(integer *, char *, ftnlen);
- extern /* Subroutine */ int checkdyn_(char *, integer *, integer *,
- ftnlen);
- static integer idotform, ndxquote, i__, j;
- extern /* Subroutine */ int readmeter_(char *, integer *, integer *,
- integer *, ftnlen), getpmxmod_(logical *, char *, ftnlen),
- chkpmxlyr_(char *, integer *, integer *, ftnlen);
- static integer ic, igr, ipm;
- static real dum;
- static integer ngr, iiv, nbb4, num1, num2;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static logical cdot;
- static real fnum;
- static char dumq[1], dotq[1], durq[1];
- static integer itup;
- static real snum;
- static integer ntup;
- extern /* Subroutine */ int g1etx_(char *, integer *, logical *, integer *
- , real *, real *, ftnlen), stop1_(void), read10_(char *, logical *
- , ftnlen);
- static real dimen;
- static char charq[1];
- static integer indxb;
- static char lineq[128];
- static integer icsav, ndoub, iorig, iinow, iposn, ninow;
- extern /* Subroutine */ int getitransinfo_(logical *, integer *, char *,
- integer *, integer *, integer *, integer *, ftnlen);
- static integer icclhw;
- static char charlq[1];
- extern /* Subroutine */ int setmac_(char *, integer *, integer *, integer
- *, integer *, char *, char *, integer *, integer *, ftnlen,
- ftnlen, ftnlen), chklit_(char *, integer *, integer *, ftnlen);
- static logical fulbrp;
- extern /* Subroutine */ int errmsg_(char *, integer *, integer *, char *,
- ftnlen, ftnlen);
- static integer literr, numint, numnum;
- static logical ztrans;
- static integer lyrerr, mtrnmp, mtrdnp;
- static real fnsyst, sysflb;
- static integer lenbeat;
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen), getmidi_(integer *, char *, integer *, integer *,
- integer *, integer *, integer *, integer *, integer *, logical *,
- ftnlen), readnum_(char *, integer *, char *, real *, ftnlen,
- ftnlen);
- static integer mtrdenl, lenmult, numshft;
- static logical plusmin;
- static real tintstf;
- extern /* Subroutine */ int g1etchar_(char *, integer *, char *, ftnlen,
- ftnlen);
- static logical twotrem;
- static integer lvoltxt;
-
- /* Fortran I/O blocks */
- static cilist io___621 = { 0, 6, 0, 0, 0 };
- static cilist io___622 = { 0, 6, 0, 0, 0 };
- static cilist io___623 = { 0, 6, 0, 0, 0 };
- static cilist io___624 = { 0, 6, 0, 0, 0 };
- static cilist io___625 = { 0, 15, 0, "(/a)", 0 };
- static cilist io___626 = { 0, 15, 0, "(a11,2x,i3)", 0 };
- static cilist io___627 = { 0, 15, 0, 0, 0 };
- static cilist io___628 = { 0, 6, 0, 0, 0 };
- static cilist io___636 = { 0, 6, 0, 0, 0 };
- static cilist io___637 = { 0, 6, 0, 0, 0 };
- static cilist io___638 = { 0, 6, 0, 0, 0 };
- static cilist io___643 = { 0, 6, 0, 0, 0 };
- static cilist io___644 = { 0, 6, 0, 0, 0 };
- static cilist io___645 = { 0, 6, 0, 0, 0 };
- static cilist io___659 = { 0, 6, 0, 0, 0 };
- static cilist io___662 = { 0, 6, 0, 0, 0 };
- static cilist io___663 = { 0, 6, 0, 0, 0 };
- static cilist io___664 = { 0, 6, 0, 0, 0 };
- static cilist io___667 = { 0, 6, 0, 0, 0 };
- static cilist io___673 = { 0, 6, 0, 0, 0 };
- static cilist io___674 = { 0, 6, 0, 0, 0 };
- static cilist io___675 = { 0, 15, 0, "(/,a)", 0 };
- static cilist io___676 = { 0, 6, 0, 0, 0 };
- static cilist io___677 = { 0, 6, 0, 0, 0 };
- static cilist io___678 = { 0, 15, 0, "(a)", 0 };
- static cilist io___679 = { 0, 15, 0, "(a)", 0 };
- static cilist io___684 = { 0, 6, 0, 0, 0 };
- static cilist io___685 = { 0, 15, 0, "(a)", 0 };
- static cilist io___689 = { 0, 6, 0, 0, 0 };
- static cilist io___690 = { 0, 6, 0, 0, 0 };
- static cilist io___691 = { 0, 6, 0, 0, 0 };
- static cilist io___692 = { 0, 6, 0, "(1x,a21,i3,a23)", 0 };
- static cilist io___696 = { 0, 6, 0, 0, 0 };
- static cilist io___697 = { 0, 6, 0, 0, 0 };
- static cilist io___698 = { 0, 5, 0, "(a)", 0 };
- static cilist io___702 = { 0, 6, 0, 0, 0 };
- static cilist io___703 = { 0, 6, 0, 0, 0 };
-
-
-/* * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks) */
-#line 8371 ""
- cdot = FALSE_;
-#line 8372 ""
- twotrem = FALSE_;
-#line 8373 ""
-L1:
-#line 8373 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 8374 ""
- if (*(unsigned char *)charq != ' ') {
-#line 8374 ""
- *(unsigned char *)charlq = *(unsigned char *)charq;
-#line 8374 ""
- }
-#line 8375 ""
- if (c1omget_1.lastchar) {
-#line 8376 ""
- if (i_indx("/%", charlq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 8377 ""
- s_wsle(&io___621);
-#line 8377 ""
- e_wsle();
-#line 8378 ""
- s_wsle(&io___622);
-#line 8378 ""
- do_lio(&c__9, &c__1, "WARNING:", (ftnlen)8);
-#line 8378 ""
- e_wsle();
-#line 8379 ""
- s_wsle(&io___623);
-#line 8379 ""
- do_lio(&c__9, &c__1, "Last non-blank character is \"", (ftnlen)29)
- ;
-#line 8379 ""
- do_lio(&c__9, &c__1, charlq, (ftnlen)1);
-#line 8379 ""
- do_lio(&c__9, &c__1, "\", not \"/,%\"", (ftnlen)12);
-#line 8379 ""
- e_wsle();
-#line 8380 ""
- s_wsle(&io___624);
-#line 8380 ""
- do_lio(&c__9, &c__1, "ASCII code:", (ftnlen)11);
-#line 8380 ""
- i__1 = *(unsigned char *)charlq;
-#line 8380 ""
- do_lio(&c__3, &c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 8380 ""
- e_wsle();
-#line 8381 ""
- s_wsfe(&io___625);
-/* Writing concatenation */
-#line 8381 ""
- i__2[0] = 29, a__1[0] = "Last non-blank character is \"";
-#line 8381 ""
- i__2[1] = 1, a__1[1] = charlq;
-#line 8381 ""
- i__2[2] = 12, a__1[2] = "\", not \"/,%\"";
-#line 8381 ""
- s_cat(ch__1, a__1, i__2, &c__3, (ftnlen)42);
-#line 8381 ""
- do_fio(&c__1, ch__1, (ftnlen)42);
-#line 8381 ""
- e_wsfe();
-#line 8383 ""
- s_wsfe(&io___626);
-#line 8383 ""
- do_fio(&c__1, "ASCII code:", (ftnlen)11);
-#line 8383 ""
- i__1 = *(unsigned char *)charlq;
-#line 8383 ""
- do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 8383 ""
- e_wsfe();
-
-/* Append " /" to last line. NB lastchar=.true. => ilbuf=nlbuf+1. */
-
-#line 8387 ""
- --inbuff_1.ilbuf;
-#line 8388 ""
- inbuff_1.lbuf[inbuff_1.ilbuf - 1] = (shortint) (inbuff_1.lbuf[
- inbuff_1.ilbuf - 1] + 2);
-/* Writing concatenation */
-#line 8389 ""
- i__3[0] = inbuff_1.ipbuf, a__2[0] = inbuff_1.bufq;
-#line 8389 ""
- i__3[1] = 2, a__2[1] = " /";
-#line 8389 ""
- s_cat(inbuff_1.bufq, a__2, i__3, &c__2, (ftnlen)131072);
-#line 8390 ""
- s_wsle(&io___627);
-#line 8390 ""
- do_lio(&c__9, &c__1, "appending <blank>/", (ftnlen)18);
-#line 8390 ""
- e_wsle();
-#line 8391 ""
- s_wsle(&io___628);
-#line 8391 ""
- do_lio(&c__9, &c__1, "appending <blank>/", (ftnlen)18);
-#line 8391 ""
- e_wsle();
-/* Writing concatenation */
-#line 8392 ""
- i__3[0] = a1ll_2.iccount, a__2[0] = lineq;
-#line 8392 ""
- i__3[1] = 2, a__2[1] = " /";
-#line 8392 ""
- s_cat(lineq, a__2, i__3, &c__2, (ftnlen)128);
-#line 8393 ""
- c1omget_1.lastchar = FALSE_;
-#line 8394 ""
- goto L1;
-#line 8395 ""
- }
-#line 8396 ""
- return 0;
-#line 8397 ""
- }
-#line 8398 ""
- if (*(unsigned char *)charq == ' ') {
-#line 8399 ""
- goto L1;
-#line 8400 ""
- } else if (*(unsigned char *)charq == '%' && a1ll_2.iccount == 1) {
-#line 8401 ""
- a1ll_2.iccount = 128;
-#line 8402 ""
- 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 8407 ""
- } 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 8412 ""
- if (cdot) {
-#line 8412 ""
- goto L28;
-#line 8412 ""
- }
-/* if (gotclef) gotclef=.false. */
-#line 8414 ""
- idotform = 0;
-#line 8415 ""
- numnum = 0;
-#line 8416 ""
- plusmin = FALSE_;
-#line 8417 ""
-L28:
-#line 8417 ""
- ++a1ll_2.nnl[c1ommvl_1.ivx - 1];
-#line 8418 ""
- if (a1ll_2.nnl[c1ommvl_1.ivx - 1] > 200) {
-#line 8419 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 8419 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, ">200 notes in line of mu"\
- "sic. Use smaller blocks!", (ftnlen)128, (ftnlen)48);
-#line 8421 ""
- stop1_();
-#line 8422 ""
- }
-#line 8423 ""
- *(unsigned char *)dotq = 'x';
-
-/* Check if this is 'r ' and previous note was full-bar-pause */
-
-#line 8427 ""
- i__1 = a1ll_2.iccount;
-/* Computing MAX */
-#line 8427 ""
- i__4 = 1, i__5 = a1ll_2.nnl[c1ommvl_1.ivx - 1] - 1;
-/* Computing MAX */
-#line 8427 ""
- i__6 = 1, i__7 = a1ll_2.nnl[c1ommvl_1.ivx - 1] - 1;
-#line 8427 ""
- 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 8430 ""
-L2:
-#line 8430 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 8431 ""
- ic = *(unsigned char *)durq;
-#line 8432 ""
- if (ic <= 57 && ic >= 48) {
-
-/* Digit */
-
-#line 8436 ""
- if (numnum == 0) {
-#line 8437 ""
- c1omnotes_1.nnodur = ic - 48;
-#line 8438 ""
- numnum = 1;
-#line 8439 ""
- goto L2;
-#line 8440 ""
- } else if (numnum == 1) {
-#line 8441 ""
- if (*(unsigned char *)charq == 'r') {
-#line 8442 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8442 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only one digit a"\
- "llowed after rest symbol \"r\"!", (ftnlen)128, (
- ftnlen)45);
-#line 8444 ""
- stop1_();
-#line 8445 ""
- }
-#line 8446 ""
- numnum = 2;
-#line 8447 ""
- if (plusmin) {
-#line 8448 ""
- s_wsle(&io___636);
-#line 8448 ""
- e_wsle();
-#line 8449 ""
- s_wsle(&io___637);
-#line 8449 ""
- do_lio(&c__9, &c__1, "*********WARNING*********", (ftnlen)
- 25);
-#line 8449 ""
- e_wsle();
-#line 8450 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8450 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Before version 1"\
- ".2, +/- was ignored if octave was!", (ftnlen)128,
- (ftnlen)50);
-#line 8452 ""
- s_wsle(&io___638);
-#line 8452 ""
- do_lio(&c__9, &c__1, "explicitly specified. May need to"\
- " edit old editions", (ftnlen)52);
-#line 8452 ""
- e_wsle();
-#line 8454 ""
- }
-#line 8455 ""
- goto L2;
-#line 8456 ""
- } else {
-#line 8457 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8457 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, ">2 digits in note sy"\
- "mbol!", (ftnlen)128, (ftnlen)25);
-#line 8459 ""
- stop1_();
-#line 8460 ""
- }
-#line 8461 ""
- } else if (*(unsigned char *)durq == 'd') {
-#line 8462 ""
- *(unsigned char *)dotq = *(unsigned char *)durq;
-#line 8463 ""
- i__1 = a1ll_2.iccount;
-#line 8463 ""
- if (s_cmp(lineq + i__1, "d", a1ll_2.iccount + 1 - i__1, (ftnlen)1)
- == 0) {
-#line 8464 ""
- c1omnotes_1.iddot = 1;
-#line 8465 ""
- ++a1ll_2.iccount;
-
-/* Since we flow out, double dots won't work with other dot options */
-
-#line 8469 ""
- }
-#line 8470 ""
- i__1 = a1ll_2.iccount;
-#line 8470 ""
- if (i_indx("+-", lineq + i__1, (ftnlen)2, a1ll_2.iccount + 1 -
- i__1) > 0) {
-
-/* move a dot, provided a number follows. */
-
-#line 8474 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 8475 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 8476 ""
- if (i_indx("0123456789-.", durq, (ftnlen)12, (ftnlen)1) == 0)
- {
-
-/* Backup, exit the loop normally */
-
-#line 8480 ""
- a1ll_2.iccount += -2;
-#line 8481 ""
- goto L2;
-#line 8482 ""
- }
-#line 8483 ""
- readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 8484 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Vertical shift also */
-
-#line 8488 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 8489 ""
- if (i_indx("0123456789-.", durq, (ftnlen)12, (ftnlen)1) ==
- 0) {
-#line 8490 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8490 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected num"\
- "ber after 2nd +/- (shift dot)!", (ftnlen)128,
- (ftnlen)42);
-#line 8492 ""
- stop1_();
-#line 8493 ""
- }
-#line 8494 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128,
- (ftnlen)1);
-#line 8495 ""
- }
-#line 8496 ""
- --a1ll_2.iccount;
-#line 8497 ""
- }
-#line 8498 ""
- goto L2;
-#line 8499 ""
- } else if (i_indx("<>", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Accidental shift */
-
-/* if (index('fsn',lineq(iccount-1:iccount-1)) .eq. 0) then */
-#line 8504 ""
- i__1 = a1ll_2.iccount - 2;
-#line 8504 ""
- if (i_indx("fsnA", lineq + i__1, (ftnlen)4, a1ll_2.iccount - 1 -
- i__1) == 0) {
-#line 8505 ""
- i__1 = a1ll_2.iccount - 1;
-#line 8505 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8505 ""
- 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 8508 ""
- stop1_();
-#line 8509 ""
- }
-#line 8510 ""
- ipm = 1;
-#line 8511 ""
- if (*(unsigned char *)durq == '<') {
-#line 8511 ""
- ipm = -1;
-#line 8511 ""
- }
-#line 8512 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 8513 ""
- if (i_indx("123456789.0", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 8514 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8514 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected number afte"\
- "r </> (accidental shift)!", (ftnlen)128, (ftnlen)45);
-#line 8516 ""
- stop1_();
-#line 8517 ""
- }
-#line 8518 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 8519 ""
- fnum = ipm * fnum;
-#line 8520 ""
- if (fnum < -5.35f || fnum > 1.f) {
-#line 8521 ""
- i__1 = a1ll_2.iccount - 1;
-#line 8521 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8521 ""
- errmsg_(lineq, &i__1, &i__4, "Horizontal accidental shift mu"\
- "st be >-5.35 and <1.0!", (ftnlen)128, (ftnlen)52);
-#line 8523 ""
- stop1_();
-#line 8524 ""
- }
-#line 8525 ""
- --a1ll_2.iccount;
-#line 8526 ""
- goto L2;
-#line 8527 ""
- } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 8528 ""
- if (*(unsigned char *)charq != 'r') {
-#line 8529 ""
- i__1 = a1ll_2.iccount - 2;
-#line 8529 ""
- if (i_indx("fsnA", lineq + i__1, (ftnlen)4, a1ll_2.iccount -
- 1 - i__1) > 0) {
-#line 8530 ""
- ipm = 1;
-#line 8531 ""
- if (*(unsigned char *)durq == '-') {
-#line 8531 ""
- ipm = -1;
-#line 8531 ""
- }
-#line 8532 ""
- i__1 = a1ll_2.iccount;
-#line 8532 ""
- 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 8537 ""
- icsav = a1ll_2.iccount;
-#line 8538 ""
- ++a1ll_2.iccount;
-#line 8539 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)
- 128, (ftnlen)1);
-#line 8540 ""
- 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 8545 ""
- if (fnum > 30.5f) {
-#line 8546 ""
- i__1 = a1ll_2.iccount - 1;
-#line 8546 ""
- i__4 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 8546 ""
- errmsg_(lineq, &i__1, &i__4, "Vertical accid"\
- "ental shift must be less than 31!", (
- ftnlen)128, (ftnlen)47);
-#line 8548 ""
- stop1_();
-#line 8549 ""
- }
-#line 8550 ""
- ipm = 1;
-#line 8551 ""
- if (*(unsigned char *)durq == '-') {
-#line 8551 ""
- ipm = -1;
-#line 8551 ""
- }
-#line 8552 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)
- 128, (ftnlen)1);
-#line 8553 ""
- if (i_indx("1234567890.", durq, (ftnlen)11, (
- ftnlen)1) == 0) {
-#line 8554 ""
- i__1 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 8554 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expe"\
- "cted 2nd number of accidental shift)!"
- , (ftnlen)128, (ftnlen)41);
-#line 8556 ""
- stop1_();
-#line 8557 ""
- }
-#line 8558 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (
- ftnlen)128, (ftnlen)1);
-#line 8559 ""
- fnum = ipm * fnum;
-#line 8560 ""
- if (fnum < -5.35f || fnum > 1.f) {
-#line 8561 ""
- i__1 = a1ll_2.iccount - 1;
-#line 8561 ""
- i__4 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 8561 ""
- errmsg_(lineq, &i__1, &i__4, "Horiz. acciden"\
- "tal shift must be >-5.35 and <1.0!", (
- ftnlen)128, (ftnlen)48);
-#line 8563 ""
- stop1_();
-#line 8564 ""
- }
-#line 8565 ""
- --a1ll_2.iccount;
-#line 8566 ""
- goto L2;
-#line 8567 ""
- } else {
-
-/* Not accid shift, reset, then flow out */
-
-#line 8571 ""
- a1ll_2.iccount = icsav;
-#line 8572 ""
- }
-#line 8573 ""
- }
-#line 8574 ""
- }
-#line 8575 ""
- plusmin = TRUE_;
-#line 8576 ""
- if (numnum == 2) {
-#line 8577 ""
- s_wsle(&io___643);
-#line 8577 ""
- e_wsle();
-#line 8578 ""
- s_wsle(&io___644);
-#line 8578 ""
- do_lio(&c__9, &c__1, "*********WARNING*********", (ftnlen)
- 25);
-#line 8578 ""
- e_wsle();
-#line 8579 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8579 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Before version 1"\
- ".2, +/- was ignored if octave was!", (ftnlen)128,
- (ftnlen)50);
-#line 8581 ""
- s_wsle(&io___645);
-#line 8581 ""
- do_lio(&c__9, &c__1, "explicitly specified. May need to"\
- " edit old editions", (ftnlen)52);
-#line 8581 ""
- e_wsle();
-#line 8583 ""
- }
-#line 8584 ""
- goto L2;
-
-/* It's a rest containing +|- . Must refer to a vertical shift. Read past. */
-
-#line 8588 ""
- } else {
-#line 8589 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 8590 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &dum, (ftnlen)128, (
- ftnlen)1);
-#line 8591 ""
- i__1 = a1ll_2.iccount - 2;
-#line 8591 ""
- if (s_cmp(lineq + i__1, ".", a1ll_2.iccount - 1 - i__1, (
- ftnlen)1) == 0) {
-#line 8591 ""
- --a1ll_2.iccount;
-#line 8591 ""
- }
-#line 8592 ""
- --a1ll_2.iccount;
-#line 8593 ""
- goto L2;
-#line 8594 ""
- }
-/* else if (index('ulare',durq) .gt. 0) then */
-#line 8596 ""
- } else if (i_indx("ularec", durq, (ftnlen)6, (ftnlen)1) > 0) {
-#line 8597 ""
- goto L2;
-#line 8598 ""
- } else if (i_indx("LS", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Stemlength change */
-
-#line 8602 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 8603 ""
- if (i_indx(".0123456789:", durq, (ftnlen)12, (ftnlen)1) == 0) {
-#line 8604 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8604 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "There must be a numb"\
- "er or colon here!", (ftnlen)128, (ftnlen)37);
-#line 8606 ""
- stop1_();
-#line 8607 ""
- }
-#line 8608 ""
- if (*(unsigned char *)durq == ':') {
-#line 8609 ""
- if (! comkeys_1.stickys) {
-#line 8610 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8610 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Turned off stick"\
- "y stemlegth changes without turning on!", (ftnlen)
- 128, (ftnlen)55);
-#line 8612 ""
- stop1_();
-#line 8613 ""
- }
-#line 8614 ""
- comkeys_1.stickys = FALSE_;
-#line 8615 ""
- goto L2;
-#line 8616 ""
- }
-#line 8617 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &dum, (ftnlen)128, (ftnlen)
- 1);
-/* if (dum.lt..5 .or. dum.gt.4.) then */
-#line 8619 ""
- if (*(unsigned char *)durq == 'L' && dum > 20.f || *(unsigned
- char *)durq == 'S' && dum > 4.f) {
-#line 8621 ""
- i__1 = a1ll_2.iccount - 1;
-#line 8621 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8621 ""
- errmsg_(lineq, &i__1, &i__4, "Stemlength change amount too b"\
- "ig!", (ftnlen)128, (ftnlen)33);
-#line 8623 ""
- stop1_();
-#line 8624 ""
- }
-#line 8625 ""
- if (*(unsigned char *)durq != ':') {
-#line 8626 ""
- --a1ll_2.iccount;
-#line 8627 ""
- } else {
-#line 8628 ""
- if (comkeys_1.stickys) {
-#line 8629 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8629 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Turned on sticky"\
- " stemshrinks when already on!", (ftnlen)128, (
- ftnlen)45);
-#line 8631 ""
- stop1_();
-#line 8632 ""
- }
-#line 8633 ""
- comkeys_1.stickys = TRUE_;
-#line 8634 ""
- }
-#line 8635 ""
- goto L2;
-#line 8636 ""
- } 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 8641 ""
- i__1 = a1ll_2.iccount;
-#line 8641 ""
- if (s_cmp(lineq + i__1, "i", a1ll_2.iccount + 1 - i__1, (ftnlen)1)
- == 0) {
-#line 8641 ""
- ++a1ll_2.iccount;
-#line 8641 ""
- }
-#line 8642 ""
- goto L2;
-#line 8643 ""
- } else if (*(unsigned char *)durq == 'p') {
-#line 8644 ""
- fulbrp = *(unsigned char *)charq == 'r';
-#line 8645 ""
- if (! fulbrp) {
-#line 8646 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8646 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "The option \"p\" onl"\
- "y works with \"r\" (rest)!", (ftnlen)128, (ftnlen)42);
-#line 8648 ""
- stop1_();
-#line 8649 ""
- }
-#line 8650 ""
- goto L2;
-#line 8651 ""
- } else if (*(unsigned char *)durq == 'b') {
-#line 8652 ""
- if (*(unsigned char *)charq != 'r') {
-#line 8653 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8653 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "You entered \"b\"; I"\
- " expected \"rb\"!", (ftnlen)128, (ftnlen)33);
-#line 8655 ""
- stop1_();
-#line 8656 ""
- } else if (numnum == 2) {
-#line 8657 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8657 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "You entered \"r\" &"\
- " \"b\" with two numbers!", (ftnlen)128, (ftnlen)39);
-#line 8659 ""
- }
-#line 8660 ""
- goto L2;
-#line 8661 ""
- } else if (*(unsigned char *)durq == 'x') {
-
-/* Xtuplet. Count number of doubled notes (for unequal xtups) */
-
-#line 8665 ""
- if (bit_test(c1ommvl_1.nacc[c1ommvl_1.ivx + a1ll_2.nnl[
- c1ommvl_1.ivx - 1] * 24 - 25],18)) {
-#line 8666 ""
- ndoub = 1;
-#line 8667 ""
- } else {
-#line 8668 ""
- ndoub = 0;
-#line 8669 ""
- }
-
-/* Will set all durations to 0 except last one. */
-
-#line 8673 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 8674 ""
- if (i_indx("123456789T", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 8675 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8675 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "First char after \""\
- "x\" in xtuplet must be \"1\"-\"9\" or \"T\"!", (
- ftnlen)128, (ftnlen)55);
-#line 8677 ""
- stop1_();
-#line 8678 ""
- }
-#line 8679 ""
- if (*(unsigned char *)durq == 'T') {
-
-/* Set a flag for checking 2nd note inputs if dot is moved */
-
-#line 8683 ""
- twotrem = TRUE_;
-
-/* Check all x-tremolo inputs here; set fnum=2 */
-
-#line 8687 ""
- fnum = 2.f;
-#line 8688 ""
- getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1)
- ;
-#line 8689 ""
- if (i_indx("0123 ", durq, (ftnlen)5, (ftnlen)1) == 0) {
-#line 8690 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8690 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "First char aft"\
- "er \"T\" in xtuplet must be \"0\"-\"3\" or blank!"
- , (ftnlen)128, (ftnlen)57);
-#line 8692 ""
- stop1_();
-#line 8693 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 8694 ""
- getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 8695 ""
- if (i_indx("0123 ", durq, (ftnlen)5, (ftnlen)1) == 0) {
-#line 8696 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8696 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "This char mu"\
- "st be \"0\"-\"3\" or blank!", (ftnlen)128, (
- ftnlen)35);
-#line 8698 ""
- stop1_();
-#line 8699 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 8700 ""
- getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-
-/* Probably blank unles other options entered */
-
-#line 8704 ""
- }
-#line 8705 ""
- }
-#line 8706 ""
- } else {
-
-/* durq is digit, normal xtup */
-
-#line 8710 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-
-/* Leaves durq at next char after number */
-
-#line 8714 ""
- if (fnum > 99.f) {
-#line 8715 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8715 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Xtuplet cannot h"\
- "ave more than 99 notes!", (ftnlen)128, (ftnlen)39)
- ;
-#line 8717 ""
- stop1_();
-#line 8718 ""
- } else if (i_indx(" DFnd", durq, (ftnlen)5, (ftnlen)1) == 0) {
-#line 8719 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8719 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only legal chara"\
- "cters here are \" \",\"D\",\"F\",\"n\"!", (ftnlen)
- 128, (ftnlen)47);
-#line 8721 ""
- stop1_();
-#line 8722 ""
- }
-#line 8723 ""
- }
-
-/* End of mandatory xtup inputs. Check for options. Note D,F,d must precede n. */
-
-#line 8727 ""
- 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 8732 ""
- 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 8733 ""
- ndoub = 1;
-#line 8734 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 8735 ""
- } else if (*(unsigned char *)durq == 'd') {
-#line 8736 ""
- 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 8737 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 8738 ""
- }
-#line 8739 ""
- if (*(unsigned char *)durq == 'n') {
-
-/* Number alteration stuff. After 'n', require '+-123456789fs ', no more 'DF'. */
-
-#line 8743 ""
- numshft = 0;
-#line 8744 ""
-L30:
-#line 8744 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 8745 ""
- if (*(unsigned char *)durq == 'f') {
-#line 8746 ""
- goto L30;
-#line 8747 ""
- } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 8748 ""
- ++numshft;
-#line 8749 ""
- if (numshft == 3) {
-#line 8750 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8750 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only 2 shift"\
- "s are allowed after \"n\" in xtup!", (ftnlen)
- 128, (ftnlen)44);
-#line 8752 ""
- stop1_();
-#line 8753 ""
- }
-#line 8754 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 8755 ""
- if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) ==
- 0) {
-#line 8756 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8756 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "This charact"\
- "er should be a digit or \".\"!", (ftnlen)128,
- (ftnlen)40);
-#line 8758 ""
- stop1_();
-#line 8759 ""
- }
-#line 8760 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &snum, (ftnlen)128,
- (ftnlen)1);
-#line 8761 ""
- --a1ll_2.iccount;
-/* if ((numshft.eq.1 .and. snum.gt.15.1) .or. */
-#line 8763 ""
- if (numshft == 1 && snum > 64.f || numshft == 2 && snum >
- 1.51f) {
-#line 8765 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8765 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Shift number"\
- " after \"n\" in xtup is out of range!", (
- ftnlen)128, (ftnlen)47);
-#line 8767 ""
- stop1_();
-#line 8768 ""
- }
-#line 8769 ""
- goto L30;
-#line 8770 ""
- } else if (*(unsigned char *)durq == 's') {
-
-/* Slope alteration for bracket */
-
-#line 8774 ""
- getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 8775 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 8776 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8776 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "For slope ad"\
- "justment, this character must be \"+\" or \"-"\
- "\"!", (ftnlen)128, (ftnlen)56);
-#line 8778 ""
- stop1_();
-#line 8779 ""
- }
-#line 8780 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 8781 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0)
- {
-#line 8782 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8782 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "This charact"\
- "er should be a digit!", (ftnlen)128, (ftnlen)
- 33);
-#line 8784 ""
- stop1_();
-#line 8785 ""
- }
-#line 8786 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &snum, (ftnlen)128,
- (ftnlen)1);
-#line 8787 ""
- --a1ll_2.iccount;
-#line 8788 ""
- if (i_nint(&snum) > 15) {
-#line 8789 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8789 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Slope adjust"\
- "ment cannot exceed 15!", (ftnlen)128, (ftnlen)
- 34);
-#line 8791 ""
- stop1_();
-#line 8792 ""
- }
-#line 8793 ""
- goto L30;
-#line 8794 ""
- } else if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) >
- 0) {
-
-/* Unsigned integer => alternate printed number */
-
-#line 8798 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &snum, (ftnlen)128,
- (ftnlen)1);
-#line 8799 ""
- if (snum > 15.1f) {
-#line 8800 ""
- i__1 = a1ll_2.iccount - 1;
-#line 8800 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8800 ""
- errmsg_(lineq, &i__1, &i__4, "Alternate xtup number "\
- "after \"n\" must be <16!", (ftnlen)128, (
- ftnlen)44);
-#line 8802 ""
- stop1_();
-#line 8803 ""
- }
-#line 8804 ""
- --a1ll_2.iccount;
-#line 8805 ""
- goto L30;
-#line 8806 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 8807 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8807 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\
- "r after \"n\" in xtup!", (ftnlen)128, (ftnlen)36);
-#line 8809 ""
- stop1_();
-#line 8810 ""
- }
-#line 8811 ""
- }
-#line 8812 ""
- ntup = i_nint(&fnum);
-#line 8813 ""
- i__1 = ntup;
-#line 8813 ""
- for (itup = 2; itup <= i__1; ++itup) {
-#line 8814 ""
- a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] *
- 24 - 25] = 0;
-#line 8815 ""
- ++a1ll_2.nnl[c1ommvl_1.ivx - 1];
-#line 8816 ""
-L110:
-#line 8816 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 8817 ""
- if (*(unsigned char *)durq == ' ') {
-#line 8818 ""
- goto L110;
-#line 8819 ""
- } else if (*(unsigned char *)durq == 'o') {
-
-/* Ornament in xtup. "o" symbol must come AFTER the affected note */
-
-#line 8823 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 8824 ""
- if (i_indx("(stmx+Tup._)e:>^bc", dumq, (ftnlen)18, (
- ftnlen)1) == 0) {
-#line 8825 ""
- if (i_indx("fg", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 8826 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8826 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Fermata "\
- "or segno not allowed in xtuplet!", (
- ftnlen)128, (ftnlen)40);
-#line 8828 ""
- } else {
-#line 8829 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8829 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal "\
- "ornament!", (ftnlen)128, (ftnlen)17);
-#line 8831 ""
- }
-#line 8832 ""
- stop1_();
-#line 8833 ""
- }
-#line 8834 ""
- if (*(unsigned char *)dumq == 'T') {
-
-/* Trill. may be followed by 't' and/or number. read 'til blank */
-
-#line 8838 ""
-L29:
-#line 8838 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 8839 ""
- if (*(unsigned char *)dumq != ' ') {
-#line 8839 ""
- goto L29;
-#line 8839 ""
- }
-#line 8840 ""
- } else if (*(unsigned char *)dumq == 'e') {
-#line 8841 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 8842 ""
- if (i_indx("sfn?", dumq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 8843 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8843 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal "\
- "character after \"e\" in edit. accid. sy"\
- "mbol!", (ftnlen)128, (ftnlen)51);
-#line 8845 ""
- stop1_();
-#line 8846 ""
- }
-#line 8847 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 8848 ""
- if (*(unsigned char *)dumq == '?') {
-#line 8848 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)
- 128, (ftnlen)1);
-#line 8848 ""
- }
-#line 8849 ""
- } else if (*(unsigned char *)dumq == ':') {
-#line 8850 ""
- i__4 = a1ll_2.iccount;
-#line 8850 ""
- if (s_cmp(lineq + i__4, " ", a1ll_2.iccount + 1 -
- i__4, (ftnlen)1) != 0) {
-#line 8851 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8851 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "\":\" mu"\
- "st be followed by blank in \"o: \"!", (
- ftnlen)128, (ftnlen)39);
-#line 8853 ""
- stop1_();
-#line 8854 ""
- } else if (! comkeys_1.ornrpt) {
-#line 8855 ""
- i__4 = a1ll_2.iccount - 1;
-#line 8855 ""
- i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8855 ""
- errmsg_(lineq, &i__4, &i__5, "Turned off repeate"\
- "d ornaments before they were on!", (
- ftnlen)128, (ftnlen)50);
-#line 8857 ""
- stop1_();
-#line 8858 ""
- }
-#line 8859 ""
- comkeys_1.ornrpt = FALSE_;
-#line 8860 ""
- } else {
-#line 8861 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 8862 ""
- }
-#line 8863 ""
- if (i_indx("+- :", dumq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 8864 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8864 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal char"\
- "acter in ornament symbol!", (ftnlen)128, (
- ftnlen)37);
-#line 8866 ""
- stop1_();
-#line 8867 ""
- }
-#line 8868 ""
- if (*(unsigned char *)dumq == ':') {
-#line 8869 ""
- i__4 = a1ll_2.iccount;
-#line 8869 ""
- if (s_cmp(lineq + i__4, " ", a1ll_2.iccount + 1 -
- i__4, (ftnlen)1) != 0) {
-#line 8870 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8870 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "\":\" mu"\
- "st be followed by blank in \"o: \"!", (
- ftnlen)128, (ftnlen)39);
-#line 8872 ""
- stop1_();
-#line 8873 ""
- } else if (comkeys_1.ornrpt) {
-#line 8874 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8874 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Turned o"\
- "n repeated ornaments but already on!", (
- ftnlen)128, (ftnlen)44);
-#line 8876 ""
- stop1_();
-#line 8877 ""
- }
-#line 8878 ""
- comkeys_1.ornrpt = TRUE_;
-#line 8879 ""
- }
-#line 8880 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 8881 ""
- i__4 = a1ll_2.iccount;
-#line 8881 ""
- if (i_indx("0123456789", lineq + i__4, (ftnlen)10,
- a1ll_2.iccount + 1 - i__4) == 0) {
-#line 8883 ""
- i__4 = a1ll_2.iccount + 1;
-#line 8883 ""
- i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8883 ""
- errmsg_(lineq, &i__4, &i__5, "There should be an"\
- " integer here!", (ftnlen)128, (ftnlen)32);
-#line 8885 ""
- stop1_();
-#line 8886 ""
- }
-#line 8887 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)
- 128, (ftnlen)1);
-#line 8888 ""
- if (*(unsigned char *)durq == ':') {
-#line 8889 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8889 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Cannot s"\
- "hift AND repeat an ornament!", (ftnlen)
- 128, (ftnlen)36);
-#line 8891 ""
- stop1_();
-#line 8892 ""
- }
-
-/* 12/7/03 Allow horizontal shift on any ornament, not just breath and ceas. */
-
-#line 8896 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 8897 ""
- i__4 = a1ll_2.iccount;
-#line 8897 ""
- if (i_indx(".0123456789", lineq + i__4, (ftnlen)
- 11, a1ll_2.iccount + 1 - i__4) == 0) {
-#line 8899 ""
- i__4 = a1ll_2.iccount + 1;
-#line 8899 ""
- i__5 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 8899 ""
- errmsg_(lineq, &i__4, &i__5, "There should b"\
- "e a number here!", (ftnlen)128, (
- ftnlen)30);
-#line 8902 ""
- stop1_();
-#line 8903 ""
- }
-#line 8904 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (
- ftnlen)128, (ftnlen)1);
-#line 8905 ""
- }
-#line 8906 ""
- }
-#line 8907 ""
- goto L110;
-#line 8908 ""
- } else if (i_indx("st(){}", durq, (ftnlen)6, (ftnlen)1) > 0) {
-
-/* Slur in xtup */
-
-#line 8912 ""
- iposn = 0;
-#line 8913 ""
- numint = 0;
-#line 8914 ""
-L15:
-#line 8914 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 8915 ""
- ++iposn;
-#line 8916 ""
- if (i_indx("udlbfnhtv", dumq, (ftnlen)9, (ftnlen)1) > 0) {
-#line 8917 ""
- if (*(unsigned char *)dumq == 't' && *(unsigned char *
- )durq == 't') {
-#line 8918 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8918 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Cannot u"\
- "se \"t\" as an option on a tie!", (ftnlen)
- 128, (ftnlen)37);
-#line 8920 ""
- stop1_();
-#line 8921 ""
- }
-#line 8922 ""
- goto L15;
-#line 8923 ""
- } else if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 8924 ""
- ++numint;
-#line 8925 ""
- ++a1ll_2.iccount;
-#line 8926 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)
- 128, (ftnlen)1);
-#line 8927 ""
- if (numint == 1) {
-#line 8928 ""
- if (i_nint(&fnum) > 30) {
-#line 8929 ""
- i__4 = a1ll_2.iccount - 1;
-#line 8929 ""
- i__5 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 8929 ""
- errmsg_(lineq, &i__4, &i__5, "Magnitude of s"\
- "lur height adjustment cannot exceed "\
- "30!", (ftnlen)128, (ftnlen)53);
-#line 8931 ""
- stop1_();
-#line 8932 ""
- }
-#line 8933 ""
- } else if (numint == 2) {
-#line 8934 ""
- if (dabs(fnum) > 6.3f) {
-#line 8935 ""
- i__4 = a1ll_2.iccount - 1;
-#line 8935 ""
- i__5 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 8935 ""
- errmsg_(lineq, &i__4, &i__5, "Slur horiz shi"\
- "ft must be in the range (-6.3,6.3)!",
- (ftnlen)128, (ftnlen)49);
-#line 8937 ""
- stop1_();
-#line 8938 ""
- }
-#line 8939 ""
- } else {
-
-/* Third signed integer, must be a midslur or curve spec. */
-
-#line 8943 ""
- if (dabs(fnum) > 31.f) {
-#line 8944 ""
- i__4 = a1ll_2.iccount - 1;
-#line 8944 ""
- i__5 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 8944 ""
- errmsg_(lineq, &i__4, &i__5, "Slur midheight"\
- " must be in the range (-31,31)!", (
- ftnlen)128, (ftnlen)45);
-#line 8946 ""
- stop1_();
-#line 8947 ""
- }
-#line 8948 ""
- if (*(unsigned char *)durq == ':') {
-
-/* Expecting curve parameters. Get two numbers */
-
-#line 8952 ""
- for (i__ = 1; i__ <= 2; ++i__) {
-#line 8953 ""
- ++a1ll_2.iccount;
-#line 8954 ""
- fnum = (real) (*(unsigned char *)&lineq[
- a1ll_2.iccount - 1] - 48);
-#line 8955 ""
- if ((r__1 = fnum - 3.5f, dabs(r__1)) >
- 3.6f) {
-#line 8956 ""
- i__4 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 8956 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4,
- "Slur curve parameter must "\
- "be in range (0,7)!", (ftnlen)
- 128, (ftnlen)44);
-#line 8959 ""
- stop1_();
-#line 8960 ""
- }
-#line 8961 ""
-/* L40: */
-#line 8961 ""
- }
-#line 8962 ""
- ++a1ll_2.iccount;
-#line 8963 ""
- }
-#line 8964 ""
- }
-#line 8965 ""
- --a1ll_2.iccount;
-#line 8966 ""
- goto L15;
-#line 8968 ""
- } 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 8973 ""
- if (comslur_1.fontslur) {
-#line 8974 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8974 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "May not "\
- "use linebreak slur options with font-bas"\
- "ed slurs!", (ftnlen)128, (ftnlen)57);
-#line 8976 ""
- stop1_();
-#line 8977 ""
- }
-#line 8978 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 8979 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 8980 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8980 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "This cha"\
- "racter must be \"+\" or \"-\"!", (ftnlen)
- 128, (ftnlen)34);
-#line 8982 ""
- stop1_();
-#line 8983 ""
- }
-#line 8984 ""
- ++a1ll_2.iccount;
-#line 8985 ""
- readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, (ftnlen)
- 128, (ftnlen)1);
-#line 8986 ""
- if (i_nint(&fnum) > 30) {
-#line 8987 ""
- i__4 = a1ll_2.iccount - 1;
-#line 8987 ""
- i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 8987 ""
- errmsg_(lineq, &i__4, &i__5, "Magnitude of slur "\
- "height adjustment cannot exceed 30!", (
- ftnlen)128, (ftnlen)53);
-#line 8989 ""
- stop1_();
-#line 8990 ""
- }
-#line 8991 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 8992 ""
- ++a1ll_2.iccount;
-#line 8993 ""
- readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, (
- ftnlen)128, (ftnlen)1);
-#line 8994 ""
- if (dabs(fnum) > 6.3f) {
-#line 8995 ""
- i__4 = a1ll_2.iccount - 1;
-#line 8995 ""
- i__5 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 8995 ""
- errmsg_(lineq, &i__4, &i__5, "Slur horiz shi"\
- "ft must be in range (-6.3,6.3)!", (
- ftnlen)128, (ftnlen)45);
-#line 8997 ""
- stop1_();
-#line 8998 ""
- }
-#line 8999 ""
- }
-#line 9000 ""
- --a1ll_2.iccount;
-#line 9001 ""
- goto L15;
-#line 9002 ""
- } else if (*(unsigned char *)dumq == 'H' && iposn > 1) {
-#line 9003 ""
- i__4 = a1ll_2.iccount;
-#line 9003 ""
- if (s_cmp(lineq + i__4, "H", a1ll_2.iccount + 1 -
- i__4, (ftnlen)1) == 0) {
-#line 9003 ""
- ++a1ll_2.iccount;
-#line 9003 ""
- }
-#line 9005 ""
- goto L15;
-#line 9006 ""
- } else if (*(unsigned char *)dumq == 'p') {
-
-/* local change in postscript slur/tie adjustment default */
-
-#line 9010 ""
- if (comslur_1.fontslur) {
-#line 9011 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9011 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Must use"\
- " postscript slurs (\"Ap\") to use this o"\
- "ption!", (ftnlen)128, (ftnlen)52);
-#line 9013 ""
- stop1_();
-#line 9014 ""
- }
-#line 9015 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 9016 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 9017 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9017 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expect"\
- "ed \"+\" or \"-\" here!", (ftnlen)128, (
- ftnlen)25);
-#line 9019 ""
- stop1_();
-#line 9020 ""
- }
-#line 9021 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 9022 ""
- if (i_indx("st", dumq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 9023 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9023 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expect"\
- "ed \"s\" or \"t\" here!", (ftnlen)128, (
- ftnlen)25);
-#line 9025 ""
- stop1_();
-#line 9026 ""
- }
-#line 9027 ""
- goto L15;
-#line 9028 ""
- } else if (*(unsigned char *)dumq != ' ') {
-#line 9029 ""
- ic = *(unsigned char *)dumq;
-#line 9030 ""
- if (ic >= 48 && ic <= 57 || ic >= 65 && ic <= 90) {
-#line 9032 ""
- if (iposn == 1) {
-#line 9033 ""
- if (*(unsigned char *)durq == 't' &&
- comslur_1.fontslur) {
-#line 9034 ""
- i__4 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9034 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4,
- "Slur ID not allowed on non-post"\
- "script tie!", (ftnlen)128, (
- ftnlen)42);
-#line 9036 ""
- stop1_();
-#line 9037 ""
- }
-#line 9038 ""
- i__4 = a1ll_2.iccount;
-#line 9038 ""
- if (s_cmp(lineq + i__4, "x", a1ll_2.iccount +
- 1 - i__4, (ftnlen)1) == 0) {
-#line 9038 ""
- ++a1ll_2.iccount;
-#line 9038 ""
- }
-#line 9040 ""
- goto L15;
-#line 9041 ""
- }
-#line 9042 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9042 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Slur ID "\
- "must be 2nd character in slur symbol!", (
- ftnlen)128, (ftnlen)45);
-#line 9044 ""
- stop1_();
-#line 9045 ""
- }
-#line 9046 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9046 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal char"\
- "acter in slur symbol!", (ftnlen)128, (ftnlen)
- 33);
-#line 9048 ""
- stop1_();
-#line 9049 ""
- }
-#line 9050 ""
- goto L110;
-#line 9051 ""
- } else if (i_indx("0123456789#-nx_", durq, (ftnlen)15, (
- ftnlen)1) > 0) {
-
-/* We have a figure. Only allow on 1st note of xtup */
-
-#line 9055 ""
- if (itup != 2) {
-#line 9056 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9056 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Figure in xt"\
- "up only allowed on 1st note!", (ftnlen)128, (
- ftnlen)40);
-#line 9058 ""
- stop1_();
-#line 9059 ""
- } else if (*(unsigned char *)durq == 'x') {
-#line 9060 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9060 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "No floating "\
- "figures in xtuplets!", (ftnlen)128, (ftnlen)
- 32);
-#line 9062 ""
- stop1_();
-#line 9063 ""
- }
-#line 9064 ""
- if (compage_1.usefig && c1ommvl_1.ivx == 1) {
-#line 9064 ""
- *ifig = 1;
-#line 9064 ""
- }
-#line 9065 ""
-L26:
-#line 9065 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-/* if (index('0123456789#-n_.:',durq) .gt. 0) then */
-#line 9067 ""
- if (i_indx("0123456789#-n_.:v", durq, (ftnlen)17, (ftnlen)
- 1) > 0) {
-#line 9068 ""
- goto L26;
-#line 9069 ""
- } else if (*(unsigned char *)durq == 's') {
-#line 9070 ""
- comligfont_1.isligfont = TRUE_;
-#line 9071 ""
- goto L26;
-#line 9072 ""
- } else if (*(unsigned char *)durq == '+') {
-
-/* vertical offset, must be integer then blank */
-
-#line 9076 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 9077 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) !=
- 0) {
-#line 9078 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9078 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Integer "\
- "for vertical offset expected here!", (
- ftnlen)128, (ftnlen)42);
-#line 9080 ""
- stop1_();
-#line 9081 ""
- }
-#line 9082 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)
- 128, (ftnlen)1);
-#line 9083 ""
- if (*(unsigned char *)durq != ' ') {
-#line 9084 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9084 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Vertical"\
- " offset must terminate figure!", (ftnlen)
- 128, (ftnlen)38);
-#line 9086 ""
- stop1_();
-#line 9087 ""
- }
-#line 9088 ""
- --a1ll_2.iccount;
-#line 9089 ""
- goto L26;
-#line 9090 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 9091 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9091 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal char"\
- "acter in figure in xtuplet!", (ftnlen)128, (
- ftnlen)39);
-#line 9093 ""
- stop1_();
-#line 9094 ""
- }
-#line 9095 ""
- goto L110;
-#line 9096 ""
- } else if (*(unsigned char *)durq == 'G') {
-#line 9097 ""
- ngr = 1;
-#line 9098 ""
-L79:
-#line 9098 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (
- ftnlen)1);
-#line 9099 ""
- if (i_indx("123456789", charq, (ftnlen)9, (ftnlen)1) > 0)
- {
-#line 9100 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)
- 128, (ftnlen)1);
-#line 9101 ""
- ngr = i_nint(&fnum);
-#line 9102 ""
- --a1ll_2.iccount;
-#line 9103 ""
- goto L79;
-#line 9104 ""
- } else if (i_indx("AWulxs", charq, (ftnlen)6, (ftnlen)1)
- > 0) {
-#line 9105 ""
- goto L79;
-#line 9106 ""
- } else if (*(unsigned char *)charq == 'm') {
-#line 9107 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128,
- (ftnlen)1);
-#line 9108 ""
- if (i_indx("01234", charq, (ftnlen)5, (ftnlen)1) == 0)
- {
-#line 9109 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9109 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "A digit "\
- "less than 5 must follow \"m\" in a grace"\
- " note!", (ftnlen)128, (ftnlen)52);
-#line 9111 ""
- stop1_();
-#line 9112 ""
- }
-#line 9113 ""
- goto L79;
-#line 9114 ""
- } else if (*(unsigned char *)charq == 'X') {
-
-/* Space before main note */
-
-#line 9118 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128,
- (ftnlen)1);
-#line 9119 ""
- if (i_indx("0123456789.", charq, (ftnlen)11, (ftnlen)
- 1) > 0) {
-#line 9120 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (
- ftnlen)128, (ftnlen)1);
-#line 9121 ""
- --a1ll_2.iccount;
-#line 9122 ""
- goto L79;
-#line 9123 ""
- } else {
-#line 9124 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9124 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "A number"\
- " must follow \"X\" in a grace note!", (
- ftnlen)128, (ftnlen)41);
-#line 9126 ""
- stop1_();
-#line 9127 ""
- }
-#line 9128 ""
- }
-
-/* At this point, charq is first note name in rest (grace?) */
-
-#line 9132 ""
- i__4 = ngr;
-#line 9132 ""
- for (igr = 1; igr <= i__4; ++igr) {
-#line 9133 ""
- numnum = 0;
-#line 9134 ""
- if (igr > 1) {
-#line 9135 ""
-L75:
-#line 9135 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)
- 128, (ftnlen)1);
-#line 9136 ""
- if (*(unsigned char *)charq == ' ') {
-#line 9136 ""
- goto L75;
-#line 9136 ""
- }
-#line 9137 ""
- }
-#line 9138 ""
- if (i_indx("abcdefg", charq, (ftnlen)7, (ftnlen)1) ==
- 0) {
-#line 9139 ""
- i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9139 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__5, "In grace"\
- ", expected \"a\"-\"g\"!", (ftnlen)128, (
- ftnlen)27);
-#line 9141 ""
- stop1_();
-#line 9142 ""
- }
-#line 9143 ""
-L78:
-#line 9143 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128,
- (ftnlen)1);
-#line 9144 ""
- if (*(unsigned char *)charq != ' ') {
-#line 9145 ""
- if (i_indx("1234567", charq, (ftnlen)7, (ftnlen)1)
- > 0) {
-#line 9146 ""
- if (numnum == 1) {
-#line 9147 ""
- i__5 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9147 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__5,
- "Only one of \"+-1234567\" allow"\
- "ed here in grace!", (ftnlen)128, (
- ftnlen)46);
-#line 9149 ""
- stop1_();
-#line 9150 ""
- }
-#line 9151 ""
- numnum = 1;
-#line 9152 ""
- goto L78;
-#line 9153 ""
- } else if (i_indx("+-nfs", charq, (ftnlen)5, (
- ftnlen)1) > 0) {
-#line 9154 ""
- goto L78;
-#line 9155 ""
- }
-
-/* Digits are possible octave numbers */
-
-#line 9159 ""
- i__5 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9159 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__5, "Illegal "\
- "character after note name in grace!", (
- ftnlen)128, (ftnlen)43);
-#line 9161 ""
- stop1_();
-#line 9162 ""
- }
-#line 9163 ""
-/* L71: */
-#line 9163 ""
- }
-#line 9164 ""
- goto L110;
-#line 9165 ""
- } else /* if(complicated condition) */ {
-#line 9165 ""
- chax_(ch__2, (ftnlen)1, &c__92);
-#line 9165 ""
- if (*(unsigned char *)durq == *(unsigned char *)&ch__2[0])
- {
-#line 9166 ""
- chklit_(lineq, &a1ll_2.iccount, &literr, (ftnlen)128);
-#line 9167 ""
- if (literr > 0) {
-#line 9168 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9168 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, literq + (
- literr - 1) * 51, (ftnlen)128, (ftnlen)51)
- ;
-#line 9170 ""
- stop1_();
-#line 9171 ""
- }
-#line 9172 ""
- goto L110;
-#line 9173 ""
- } else if (*(unsigned char *)durq == '"') {
-
-/* pmx lyric */
-
-#line 9177 ""
- chkpmxlyr_(lineq, &a1ll_2.iccount, &lyrerr, (ftnlen)
- 128);
-#line 9178 ""
- if (lyrerr > 0) {
-#line 9179 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9179 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, lyrerq + (
- lyrerr - 1) * 51, (ftnlen)128, (ftnlen)51)
- ;
-#line 9181 ""
- stop1_();
-#line 9182 ""
- }
-#line 9183 ""
- goto L110;
-#line 9184 ""
- } else if (*(unsigned char *)durq == 'M') {
-
-/* Temporary trap until I get around putting this in pmxb */
-
-#line 9188 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9188 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Macros not y"\
- "et allowed in xtuplets!", (ftnlen)128, (
- ftnlen)35);
-#line 9190 ""
- stop1_();
-#line 9191 ""
- } else if (*(unsigned char *)durq == 'X') {
-#line 9192 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9192 ""
- 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 9194 ""
- goto L110;
-#line 9195 ""
- } else if (*(unsigned char *)durq == 'z') {
-
-/* Chord note in xtup. Read past for now. */
-
-#line 9199 ""
-L33:
-#line 9199 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 9200 ""
- if (*(unsigned char *)durq != ' ') {
-#line 9200 ""
- goto L33;
-#line 9200 ""
- }
-#line 9201 ""
- goto L110;
-#line 9202 ""
- } else if (*(unsigned char *)durq == 'D') {
-
-/* Dynamic mark */
-
-#line 9206 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9206 ""
- checkdyn_(lineq, &a1ll_2.iccount, &i__4, (ftnlen)128);
-#line 9207 ""
- goto L110;
-#line 9208 ""
- } else if (*(unsigned char *)durq == '%') {
-#line 9209 ""
- if (a1ll_2.iccount != 1) {
-#line 9210 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9210 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Comment "\
- "must have \"%\" in column 1!", (ftnlen)
- 128, (ftnlen)34);
-#line 9212 ""
- stop1_();
-#line 9213 ""
- }
-#line 9214 ""
- a1ll_2.iccount = 128;
-#line 9215 ""
- goto L110;
-#line 9216 ""
- } else if (*(unsigned char *)durq == '?') {
-#line 9217 ""
- getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 9218 ""
- if (*(unsigned char *)durq == ' ') {
-#line 9219 ""
- --a1ll_2.iccount;
-#line 9220 ""
- goto L110;
-#line 9221 ""
- }
-#line 9222 ""
- if (*(unsigned char *)durq != '-') {
-#line 9223 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9223 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expectin"\
- "g \"-\"", (ftnlen)128, (ftnlen)13);
-#line 9225 ""
- stop1_();
-#line 9226 ""
- }
-#line 9227 ""
- getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 9228 ""
- if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1)
- == 0) {
-#line 9229 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9229 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expectin"\
- "g number", (ftnlen)128, (ftnlen)16);
-#line 9231 ""
- stop1_();
-#line 9232 ""
- }
-#line 9233 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)
- 128, (ftnlen)1);
-#line 9234 ""
- --a1ll_2.iccount;
-#line 9235 ""
- goto L110;
-
-/* 140215 Allow clef change inside xtup */
-
-#line 9239 ""
- } else if (*(unsigned char *)durq == 'C') {
-#line 9240 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 9241 ""
- 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 9244 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9244 ""
- 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 9246 ""
- stop1_();
-#line 9247 ""
- }
-/* gotclef = .true. */
-#line 9249 ""
- goto L110;
-/* +++ */
-#line 9251 ""
- } else /* if(complicated condition) */ {
-#line 9251 ""
- i__4 = a1ll_2.iccount;
-#line 9251 ""
- i__5 = a1ll_2.iccount + 1;
-#line 9251 ""
- 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 9253 ""
- a1ll_2.iccount += 2;
-#line 9254 ""
- goto L110;
-/* +++ */
-
-/* Added 200118 to allow dot to be moved on 2nd note of 2-note tremolo */
-
-#line 9259 ""
- }
-#line 9259 ""
- }
-#line 9259 ""
- }
-
-/* End of xtup options. At this point symbol can only be note or rest */
-
-#line 9263 ""
- if (i_indx("abcdefgr", durq, (ftnlen)8, (ftnlen)1) == 0) {
-#line 9264 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9264 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "In xtup, this ch"\
- "aracter is not allowed!", (ftnlen)128, (ftnlen)39)
- ;
-#line 9266 ""
- stop1_();
-#line 9267 ""
- }
-#line 9268 ""
-L7:
-#line 9268 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 9269 ""
- if (i_indx("12345678ulcb", durq, (ftnlen)12, (ftnlen)1) > 0) {
-#line 9270 ""
- goto L7;
-#line 9271 ""
- } else if (i_indx("sfn", durq, (ftnlen)3, (ftnlen)1) > 0) {
-
-/* Check for MIDI-only accidental. Cannot coexist with accid. pos'n shift. */
-
-#line 9275 ""
- i__4 = a1ll_2.iccount;
-#line 9275 ""
- if (s_cmp(lineq + i__4, "i", a1ll_2.iccount + 1 - i__4, (
- ftnlen)1) == 0) {
-#line 9275 ""
- ++a1ll_2.iccount;
-#line 9275 ""
- }
-#line 9276 ""
- goto L7;
-#line 9277 ""
- } else if (i_indx("+-<>", durq, (ftnlen)4, (ftnlen)1) > 0) {
-
-/* May have either octave jump or shifted accid. on main xtup note */
-
-#line 9281 ""
- i__4 = a1ll_2.iccount;
-#line 9281 ""
- 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 9281 ""
- goto L7;
-#line 9281 ""
- }
-#line 9284 ""
- ++a1ll_2.iccount;
-#line 9285 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128,
- (ftnlen)1);
-#line 9286 ""
- --a1ll_2.iccount;
-#line 9287 ""
- goto L7;
-#line 9288 ""
- } else if (i_indx("DF", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Double an xtup note to make an unequal xtup */
-
-#line 9292 ""
- 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 9293 ""
- ++ndoub;
-#line 9294 ""
- goto L7;
-#line 9295 ""
- } else if (*(unsigned char *)durq == 'd') {
-#line 9296 ""
- if (twotrem) {
-
-/* 2-note trem, get shift */
-
-#line 9300 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 9301 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 9302 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9302 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expected"\
- " +/- for shifted dot on end of 2-note tr"\
- "em!", (ftnlen)128, (ftnlen)51);
-#line 9304 ""
- stop1_();
-#line 9305 ""
- }
-#line 9306 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 9307 ""
- if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1)
- == 0) {
-#line 9308 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 9308 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expected"\
- " number here!", (ftnlen)128, (ftnlen)21);
-#line 9310 ""
- stop1_();
-#line 9311 ""
- }
-#line 9312 ""
- readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, (ftnlen)
- 128, (ftnlen)1);
-#line 9313 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Vertical shift also */
-
-#line 9317 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)
- 128, (ftnlen)1);
-#line 9318 ""
- if (i_indx("0123456789-.", durq, (ftnlen)12, (
- ftnlen)1) == 0) {
-#line 9319 ""
- i__4 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 9319 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Expe"\
- "cted number after 2nd +/- (shift dot"\
- ")!", (ftnlen)128, (ftnlen)42);
-#line 9321 ""
- stop1_();
-#line 9322 ""
- }
-#line 9323 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (
- ftnlen)128, (ftnlen)1);
-#line 9324 ""
- }
-#line 9325 ""
- --a1ll_2.iccount;
-#line 9326 ""
- goto L7;
-#line 9327 ""
- } else {
-#line 9328 ""
- 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 9329 ""
- }
-#line 9330 ""
- goto L7;
-#line 9331 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 9332 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9332 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal option o"\
- "n xtuplet note!", (ftnlen)128, (ftnlen)31);
-#line 9334 ""
- stop1_();
-#line 9335 ""
- }
-#line 9336 ""
- if (itup == ntup - ndoub) {
-#line 9336 ""
- goto L3;
-#line 9336 ""
- }
-#line 9337 ""
-/* L6: */
-#line 9337 ""
- }
-#line 9338 ""
-L3:
-
-/* 6==End of loop for xtuplet input */
-
-#line 9342 ""
- ;
-#line 9342 ""
- } else if (*(unsigned char *)durq == 'm') {
-
-/* Multi-bar rest: next 1 or two digits are # of bars. */
-
-#line 9346 ""
- if (a1ll_2.itsofar[a1ll_2.iv - 1] % a1ll_2.lenbar != 0) {
-#line 9347 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9347 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9347 ""
- errmsg_(lineq, &i__1, &i__4, "Multibar rest must start at be"\
- "ginning of bar!", (ftnlen)128, (ftnlen)45);
-#line 9349 ""
- stop1_();
-#line 9350 ""
- } else if (a1ll_2.iv == 1 && c1omnotes_1.ibarmbr > 0) {
-#line 9351 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9351 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9351 ""
- errmsg_(lineq, &i__1, &i__4, "Multibar rest only OK at one t"\
- "ime per block!", (ftnlen)128, (ftnlen)44);
-#line 9353 ""
- stop1_();
-#line 9354 ""
- }
-
-/* For some purposes, pretend its one bar only */
-
-#line 9358 ""
- a1ll_2.nodur[a1ll_2.iv + a1ll_2.nnl[a1ll_2.iv - 1] * 24 - 25] =
- a1ll_2.lenbar;
-#line 9359 ""
- c1omnotes_1.ibarmbr = a1ll_2.nbars + 1;
-#line 9360 ""
- c1omnotes_1.mbrest = 0;
-/* 20 call g1etchar(lineq,iccount,durq) */
-#line 9362 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 9363 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 9364 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9364 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected an integer "\
- "after \"rm\"!", (ftnlen)128, (ftnlen)31);
-#line 9366 ""
- stop1_();
-#line 9367 ""
- }
-#line 9368 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 9369 ""
- c1omnotes_1.mbrest = i_nint(&fnum);
-/* iccount = iccount-1 */
-#line 9371 ""
- if (a1ll_2.nv > 1) {
-#line 9372 ""
- if (a1ll_2.iv == 1) {
-#line 9373 ""
- comkeys_1.mbrestsav = c1omnotes_1.mbrest;
-#line 9374 ""
- } else {
-#line 9375 ""
- if (c1omnotes_1.mbrest != comkeys_1.mbrestsav) {
-#line 9376 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9376 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must enter s"\
- "ame multi-bar rest in every voice!", (ftnlen)
- 128, (ftnlen)46);
-#line 9378 ""
- stop1_();
-#line 9379 ""
- }
-#line 9380 ""
- }
-
-/* Zero out mbrestsav so can check at end of input block whether */
-/* all voices have one */
-
-#line 9385 ""
- if (a1ll_2.iv == a1ll_2.nv) {
-#line 9385 ""
- comkeys_1.mbrestsav = 0;
-#line 9385 ""
- }
-#line 9386 ""
- }
-#line 9387 ""
- if (*(unsigned char *)durq == 'n') {
-
-/* Get new height */
-
-#line 9391 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 9392 ""
- if (i_indx("+-123456789", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 9393 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9393 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected an inte"\
- "ger after \"rm[x]n\"!", (ftnlen)128, (ftnlen)35);
-#line 9395 ""
- stop1_();
-#line 9396 ""
- }
-#line 9397 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) != 0) {
-#line 9397 ""
- ++a1ll_2.iccount;
-#line 9397 ""
- }
-#line 9398 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 9399 ""
- }
-#line 9400 ""
- if (*(unsigned char *)durq != ' ') {
-#line 9401 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9401 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character af"\
- "ter \"rm\"!", (ftnlen)128, (ftnlen)29);
-#line 9403 ""
- stop1_();
-#line 9404 ""
- }
-#line 9405 ""
- } 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 9410 ""
- idotform = 1;
-#line 9411 ""
- } else if (*(unsigned char *)durq == ',') {
-#line 9412 ""
- idotform = 3;
-
-/* Now flow to duration setting, as if durq=' ' */
-
-#line 9416 ""
- } else if (i_indx("oL", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Suppress full bar rest, or look left for height */
-
-#line 9420 ""
- if (*(unsigned char *)charq != 'r') {
-#line 9421 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9421 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"o\",\"L\" options "\
- "only legal for rest, not note!", (ftnlen)128, (ftnlen)
- 46);
-#line 9423 ""
- stop1_();
-#line 9424 ""
- }
-#line 9425 ""
- goto L2;
-#line 9426 ""
- } 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 9431 ""
- 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 9432 ""
- goto L2;
-#line 9433 ""
- } else if (*(unsigned char *)durq == 'A') {
-
-/* Main note accidental option */
-
-#line 9437 ""
- getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 9438 ""
- if (i_indx("o+-<>", durq, (ftnlen)5, (ftnlen)1) == 0) {
-#line 9439 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9439 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"o\",+\",\"-\",\""\
- "<\",\">\" are the only legal options here!", (ftnlen)
- 128, (ftnlen)51);
-#line 9441 ""
- stop1_();
-#line 9442 ""
- }
-
-/* Need more stuff here */
-
-#line 9446 ""
- 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 9451 ""
- --a1ll_2.iccount;
-#line 9452 ""
- }
-#line 9453 ""
- goto L2;
-#line 9454 ""
- } else if (*(unsigned char *)durq == 'T') {
-
-/* Single stem tremolo. Only option (optional) is 1,2,3, or 4. */
-
-#line 9458 ""
- getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 9459 ""
- if (i_indx("1234", durq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 9459 ""
- --a1ll_2.iccount;
-#line 9459 ""
- }
-#line 9460 ""
- goto L2;
-#line 9461 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 9462 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 9462 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character!", (
- ftnlen)128, (ftnlen)18);
-#line 9464 ""
- s_wsle(&io___659);
-#line 9464 ""
- do_lio(&c__9, &c__1, "ASCII code:", (ftnlen)11);
-#line 9464 ""
- i__1 = *(unsigned char *)durq;
-#line 9464 ""
- do_lio(&c__3, &c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 9464 ""
- e_wsle();
-#line 9465 ""
- stop1_();
-#line 9466 ""
- }
-
-/* End of block for note options. */
-
-/* Set the duration */
-
-#line 9472 ""
- if (idotform > 0) {
-#line 9473 ""
- if (idotform == 1) {
-#line 9474 ""
- 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 9475 ""
- } else if (idotform == 2) {
-#line 9476 ""
- 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 9477 ""
- } else if (idotform == 3) {
-#line 9478 ""
- a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] *
- 24 - 25] = i1fnodur_(&c1omnotes_1.nnodur, dotq, (
- ftnlen)1);
-#line 9479 ""
- } else if (idotform == 4) {
-#line 9480 ""
- 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 9481 ""
- }
-#line 9482 ""
- } else if (c1omnotes_1.ibarmbr != a1ll_2.nbars + 1 && ! fulbrp) {
-#line 9483 ""
- 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 9487 ""
- if (c1omnotes_1.iddot == 1) {
-#line 9488 ""
- 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 9489 ""
- c1omnotes_1.iddot = 0;
-#line 9490 ""
- }
-#line 9491 ""
- } else if (fulbrp) {
-#line 9492 ""
- 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 9496 ""
- i__1 = (integer) (log(a1ll_2.lenbar + .1f) / .69315f) + 48;
-#line 9496 ""
- chax_(ch__2, (ftnlen)1, &i__1);
-#line 9496 ""
- c1omnotes_1.nnodur = i_indx("62514x0x37", ch__2, (ftnlen)10, (
- ftnlen)1) - 1;
-#line 9498 ""
- fulbrp = FALSE_;
-#line 9499 ""
- }
-#line 9500 ""
- 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 9504 ""
- if (c1omget_1.fbon) {
-#line 9505 ""
- if (a1ll_2.nodur[c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] *
- 24 - 25] < 16) {
-#line 9505 ""
- goto L120;
-#line 9505 ""
- }
-#line 9506 ""
- if (a1ll_2.nnl[c1ommvl_1.ivx - 1] > 1) {
-#line 9507 ""
- if (a1ll_2.nodur[c1ommvl_1.ivx + (a1ll_2.nnl[c1ommvl_1.ivx -
- 1] - 1) * 24 - 25] == 0) {
-#line 9507 ""
- goto L120;
-#line 9507 ""
- }
-#line 9508 ""
- }
-#line 9509 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 9509 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Unbeamable thing in forc"\
- "ed beam!", (ftnlen)128, (ftnlen)32);
-#line 9511 ""
- stop1_();
-#line 9512 ""
- }
-#line 9513 ""
-L120:
-
-/* Get number of prior bars for later check on whether note spans bar line */
-
-#line 9517 ""
- nbb4 = a1ll_2.itsofar[c1ommvl_1.ivx - 1] / a1ll_2.lenbar;
-#line 9518 ""
- a1ll_2.itsofar[c1ommvl_1.ivx - 1] += a1ll_2.nodur[c1ommvl_1.ivx +
- a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 - 25];
-#line 9519 ""
- if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] % a1ll_2.lenbar == 0) {
-#line 9520 ""
- ++a1ll_2.nbars;
-#line 9521 ""
- if (comkeys_1.shifton) {
-#line 9521 ""
- comkeys_1.barend = TRUE_;
-#line 9521 ""
- }
-
-/* Will check barend when 1st note of next bar is entered. */
-
-#line 9525 ""
- if (a1ll_2.nbars > 15) {
-#line 9526 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9526 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot have more tha"\
- "n 15 bars in an input block!", (ftnlen)128, (ftnlen)
- 48);
-#line 9528 ""
- stop1_();
-#line 9529 ""
- }
-#line 9530 ""
- a1ll_2.nib[c1ommvl_1.ivx + a1ll_2.nbars * 24 - 25] = a1ll_2.nnl[
- c1ommvl_1.ivx - 1];
-#line 9531 ""
- if (a1ll_2.firstline && a1ll_2.lenbar != a1ll_2.lenbr1) {
-
-/* Just finished the pickup bar for this voice. */
-
-#line 9535 ""
- if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] != a1ll_2.lenbr0) {
-#line 9536 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9536 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Pickup bar lengt"\
- "h disagrees with mtrnum0!", (ftnlen)128, (ftnlen)
- 41);
-#line 9538 ""
- stop1_();
-#line 9539 ""
- }
-#line 9540 ""
- a1ll_2.lenbar = a1ll_2.lenbr1;
-#line 9541 ""
- a1ll_2.itsofar[c1ommvl_1.ivx - 1] = 0;
-#line 9542 ""
- }
-#line 9543 ""
- } else if (comkeys_1.barend) {
-#line 9544 ""
- if (comkeys_1.shifton) {
-#line 9545 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9545 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Bar ended with user-"\
- "defined shift still on!", (ftnlen)128, (ftnlen)43);
-#line 9547 ""
- stop1_();
-#line 9548 ""
- }
-#line 9549 ""
- comkeys_1.barend = FALSE_;
-#line 9550 ""
- } else if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] / a1ll_2.lenbar > nbb4) {
-#line 9551 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9551 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 9551 ""
- errmsg_(lineq, &i__1, &i__4, "This note spans a bar line!", (
- ftnlen)128, (ftnlen)27);
-#line 9553 ""
- stop1_();
-#line 9554 ""
- }
-#line 9555 ""
- if (idotform == 1 || idotform == 3) {
-#line 9556 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 9557 ""
- if (i_indx("abcedfgr", charq, (ftnlen)8, (ftnlen)1) == 0) {
-#line 9558 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9558 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected note name o"\
- "r \"r\" here!", (ftnlen)128, (ftnlen)31);
-#line 9560 ""
- stop1_();
-#line 9561 ""
- }
-#line 9562 ""
- ++idotform;
-#line 9563 ""
- numnum = 1;
-#line 9564 ""
- goto L28;
-#line 9565 ""
- }
-
-/* End of sub block for note-rest */
-
-#line 9569 ""
- } else if (*(unsigned char *)charq == 'z') {
-#line 9570 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 9571 ""
- if (i_indx("abcdefg", charq, (ftnlen)7, (ftnlen)1) == 0) {
-#line 9572 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 9572 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected chord note name"\
- " here!", (ftnlen)128, (ftnlen)30);
-#line 9574 ""
- stop1_();
-#line 9575 ""
- }
-#line 9576 ""
-L25:
-#line 9576 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-/* if (index('dre12345678',durq) .gt. 0) then */
-#line 9578 ""
- if (i_indx("dre12345678c", durq, (ftnlen)12, (ftnlen)1) > 0) {
-#line 9579 ""
- goto L25;
-#line 9580 ""
- } 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 9585 ""
- i__1 = a1ll_2.iccount;
-#line 9585 ""
- if (s_cmp(lineq + i__1, "i", a1ll_2.iccount + 1 - i__1, (ftnlen)1)
- == 0) {
-#line 9585 ""
- ++a1ll_2.iccount;
-#line 9585 ""
- }
-#line 9586 ""
- goto L25;
-#line 9587 ""
- } else if (*(unsigned char *)durq == 'A') {
-#line 9588 ""
- i__1 = a1ll_2.iccount - 2;
-#line 9588 ""
- if (i_indx("fsn", lineq + i__1, (ftnlen)3, a1ll_2.iccount - 1 -
- i__1) == 0) {
-#line 9589 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9589 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9589 ""
- errmsg_(lineq, &i__1, &i__4, "Must have \"f,s,n\" before \""\
- "A\" in chord note!", (ftnlen)128, (ftnlen)43);
-#line 9591 ""
- stop1_();
-#line 9592 ""
- }
-#line 9593 ""
- goto L25;
-#line 9594 ""
- } else if (i_indx("<>", durq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 9595 ""
- i__1 = a1ll_2.iccount - 2;
-#line 9595 ""
- 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 9597 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9597 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9597 ""
- errmsg_(lineq, &i__1, &i__4, "Must have \"f,s,n,A\" before"\
- " \"<\" or \">\"!", (ftnlen)128, (ftnlen)38);
-#line 9599 ""
- stop1_();
-#line 9600 ""
- }
-#line 9601 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 9602 ""
- if (i_indx("1234567890.", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 9603 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9603 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9603 ""
- errmsg_(lineq, &i__1, &i__4, "Expected a number to start her"\
- "e for accidental shift!", (ftnlen)128, (ftnlen)53);
-#line 9605 ""
- stop1_();
-#line 9606 ""
- }
-#line 9607 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 9608 ""
- --a1ll_2.iccount;
-#line 9609 ""
- goto L25;
-#line 9610 ""
- } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 9611 ""
- i__1 = a1ll_2.iccount;
-#line 9611 ""
- if (i_indx("1234567890.", lineq + i__1, (ftnlen)11,
- a1ll_2.iccount + 1 - i__1) == 0) {
-#line 9611 ""
- goto L25;
-#line 9611 ""
- }
-
-/* Number or '.' (durq) follows +/- . Get it. */
-
-#line 9616 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 9617 ""
- i__1 = a1ll_2.iccount;
-#line 9617 ""
- if (*(unsigned char *)durq == '.' && i_indx("1234567890", lineq +
- i__1, (ftnlen)10, a1ll_2.iccount + 1 - i__1) == 0) {
-#line 9619 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9619 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9619 ""
- errmsg_(lineq, &i__1, &i__4, "\".\" here must be followed by"\
- " a digit!", (ftnlen)128, (ftnlen)37);
-#line 9621 ""
- stop1_();
-#line 9622 ""
- } else /* if(complicated condition) */ {
-#line 9622 ""
- i__1 = a1ll_2.iccount - 3;
-#line 9622 ""
- if (i_indx("sfndA", lineq + i__1, (ftnlen)5, a1ll_2.iccount -
- 2 - i__1) == 0) {
-#line 9623 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9623 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9623 ""
- errmsg_(lineq, &i__1, &i__4, "Number after +/- must foll"\
- "ow \"d,s,f,n,A\"!", (ftnlen)128, (ftnlen)41);
-#line 9625 ""
- stop1_();
-#line 9626 ""
- }
-#line 9626 ""
- }
-#line 9627 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 9628 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 9629 ""
- --a1ll_2.iccount;
-#line 9630 ""
- goto L25;
-#line 9631 ""
- }
-
-/* 2nd +/- */
-
-#line 9635 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 9636 ""
- if (*(unsigned char *)durq == '.') {
-#line 9636 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 9636 ""
- }
-#line 9637 ""
- if (i_indx("1234567890", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 9638 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9638 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9638 ""
- errmsg_(lineq, &i__1, &i__4, "Expected a number here!", (
- ftnlen)128, (ftnlen)23);
-#line 9640 ""
- stop1_();
-#line 9641 ""
- }
-#line 9642 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 9643 ""
- --a1ll_2.iccount;
-#line 9644 ""
- goto L25;
-#line 9645 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 9646 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 9646 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character in cho"\
- "rd note!", (ftnlen)128, (ftnlen)32);
-#line 9648 ""
- stop1_();
-#line 9649 ""
- }
-#line 9650 ""
- } else if (*(unsigned char *)charq == 'G') {
-#line 9651 ""
- ngr = 1;
-#line 9652 ""
-L9:
-#line 9652 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 9653 ""
- if (i_indx("123456789", charq, (ftnlen)9, (ftnlen)1) > 0) {
-#line 9654 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 9655 ""
- ngr = i_nint(&fnum);
-#line 9656 ""
- --a1ll_2.iccount;
-#line 9657 ""
- goto L9;
-#line 9658 ""
- } else if (i_indx("AWulxs", charq, (ftnlen)6, (ftnlen)1) > 0) {
-#line 9659 ""
- goto L9;
-#line 9660 ""
- } else if (*(unsigned char *)charq == 'm') {
-#line 9661 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 9662 ""
- if (i_indx("01234", charq, (ftnlen)5, (ftnlen)1) == 0) {
-#line 9663 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9663 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "A digit less than 5 "\
- "must follow \"m\" in a grace note!", (ftnlen)128, (
- ftnlen)52);
-#line 9665 ""
- stop1_();
-#line 9666 ""
- }
-#line 9667 ""
- goto L9;
-#line 9668 ""
- } else if (*(unsigned char *)charq == 'X') {
-
-/* Space before main note */
-
-#line 9672 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 9673 ""
- if (i_indx("0123456789.", charq, (ftnlen)11, (ftnlen)1) > 0) {
-#line 9674 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 9675 ""
- --a1ll_2.iccount;
-#line 9676 ""
- goto L9;
-#line 9677 ""
- } else {
-#line 9678 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9678 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "A number must foll"\
- "ow \"X\" in a grace note!", (ftnlen)128, (ftnlen)41);
-#line 9680 ""
- stop1_();
-#line 9681 ""
- }
-#line 9682 ""
- }
-
-/* At this point, charq is first note name in rest (grace?) */
-
-#line 9686 ""
- i__1 = ngr;
-#line 9686 ""
- for (igr = 1; igr <= i__1; ++igr) {
-#line 9687 ""
- numnum = 0;
-#line 9688 ""
- if (igr > 1) {
-#line 9689 ""
-L55:
-#line 9689 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)
- 1);
-#line 9690 ""
- if (*(unsigned char *)charq == ' ') {
-#line 9690 ""
- goto L55;
-#line 9690 ""
- }
-#line 9691 ""
- }
-#line 9692 ""
- if (i_indx("abcdefg", charq, (ftnlen)7, (ftnlen)1) == 0) {
-#line 9693 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9693 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "In grace, expected"\
- " \"a\"-\"g\"!", (ftnlen)128, (ftnlen)27);
-#line 9695 ""
- stop1_();
-#line 9696 ""
- }
-#line 9697 ""
-L18:
-#line 9697 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 9698 ""
- if (*(unsigned char *)charq != ' ') {
-#line 9699 ""
- if (i_indx("1234567", charq, (ftnlen)7, (ftnlen)1) > 0) {
-#line 9700 ""
- if (numnum == 1) {
-#line 9701 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9701 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Only one of"\
- " \"+-1234567\" allowed here in grace!", (
- ftnlen)128, (ftnlen)46);
-#line 9703 ""
- stop1_();
-#line 9704 ""
- }
-#line 9705 ""
- numnum = 1;
-#line 9706 ""
- goto L18;
-/* else if (index('nfs',charq) .gt. 0) then */
-#line 9708 ""
- } else if (i_indx("+-nfs", charq, (ftnlen)5, (ftnlen)1) > 0) {
-#line 9709 ""
- goto L18;
-#line 9710 ""
- }
-
-/* Digits are possible octave numbers */
-
-#line 9714 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9714 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "Illegal character af"\
- "ter note name in grace!", (ftnlen)128, (ftnlen)43);
-#line 9716 ""
- stop1_();
-#line 9717 ""
- }
-#line 9718 ""
-/* L19: */
-#line 9718 ""
- }
-#line 9719 ""
- } else /* if(complicated condition) */ {
-#line 9719 ""
- chax_(ch__2, (ftnlen)1, &c__92);
-#line 9719 ""
- if (*(unsigned char *)charq == *(unsigned char *)&ch__2[0]) {
-#line 9720 ""
- chklit_(lineq, &a1ll_2.iccount, &literr, (ftnlen)128);
-#line 9721 ""
- if (literr > 0) {
-#line 9722 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9722 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, literq + (literr - 1) *
- 51, (ftnlen)128, (ftnlen)51);
-#line 9724 ""
- stop1_();
-#line 9725 ""
- }
-#line 9726 ""
- } else if (*(unsigned char *)charq == '"') {
-
-/* pmx lyric */
-
-#line 9730 ""
- chkpmxlyr_(lineq, &a1ll_2.iccount, &lyrerr, (ftnlen)128);
-#line 9731 ""
- if (lyrerr > 0) {
-#line 9732 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9732 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, lyrerq + (lyrerr - 1) *
- 51, (ftnlen)128, (ftnlen)51);
-#line 9734 ""
- stop1_();
-#line 9735 ""
- }
-#line 9736 ""
- } else if (*(unsigned char *)charq == 'o') {
-
-/* Ornament on non-xtup note. "o" symbol must come AFTER the affected note */
-
-#line 9740 ""
- if (a1ll_2.nnl[c1ommvl_1.ivx - 1] == 0) {
-#line 9741 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9741 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"o\" must be in sam"\
- "e input block, after affected note!", (ftnlen)128, (
- ftnlen)53);
-#line 9743 ""
- stop1_();
-#line 9744 ""
- }
-#line 9745 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)1);
-/* if (index('(stmgx+Tupf._)e:>^bc',dumq) .eq. 0 ) then */
-#line 9747 ""
- if (i_indx("(stmgx+Tupf._)e:>^bcCG", dumq, (ftnlen)22, (ftnlen)1)
- == 0) {
-#line 9748 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9748 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal ornament!", (
- ftnlen)128, (ftnlen)17);
-#line 9750 ""
- stop1_();
-#line 9751 ""
- }
-#line 9752 ""
- if (*(unsigned char *)dumq == ':') {
-#line 9753 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)
- 1);
-#line 9754 ""
- if (*(unsigned char *)dumq != ' ') {
-#line 9755 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9755 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected blank a"\
- "fter \"o:\"!", (ftnlen)128, (ftnlen)26);
-#line 9757 ""
- stop1_();
-#line 9758 ""
- } else if (! comkeys_1.ornrpt) {
-#line 9759 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9759 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9759 ""
- errmsg_(lineq, &i__1, &i__4, "Turned off repeated orname"\
- "nts before they were on!", (ftnlen)128, (ftnlen)
- 50);
-#line 9761 ""
- stop1_();
-#line 9762 ""
- }
-#line 9763 ""
- comkeys_1.ornrpt = FALSE_;
-#line 9764 ""
- } else if (*(unsigned char *)dumq == 'g') {
-#line 9765 ""
- if (c1omget_1.issegno) {
-#line 9766 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9766 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Sorry, only one"\
- " \"segno\" per input block!", (ftnlen)128, (
- ftnlen)40);
-#line 9768 ""
- stop1_();
-#line 9769 ""
- } else if (c1ommvl_1.ivx != 1) {
-#line 9770 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9770 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "segno can only b"\
- "e in voice 1!", (ftnlen)128, (ftnlen)29);
-#line 9772 ""
- stop1_();
-#line 9773 ""
- }
-#line 9774 ""
- c1omget_1.issegno = TRUE_;
-#line 9775 ""
-L12:
-#line 9775 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)
- 1);
-#line 9776 ""
- if (*(unsigned char *)dumq == '-' || *(unsigned char *)dumq >=
- 48 && *(unsigned char *)dumq <= 58) {
-#line 9776 ""
- goto L12;
-#line 9776 ""
- }
-#line 9778 ""
- if (*(unsigned char *)dumq != ' ') {
-#line 9779 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9779 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\
- "r in segno ornament symbol!", (ftnlen)128, (
- ftnlen)43);
-#line 9781 ""
- stop1_();
-#line 9782 ""
- }
-#line 9783 ""
- } else if (*(unsigned char *)dumq == 'T') {
-
-/* Trill. may be followed by 't' and/or number. read 'til blank */
-
-#line 9787 ""
-L22:
-#line 9787 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)
- 1);
-#line 9788 ""
- if (*(unsigned char *)dumq == ':') {
-#line 9789 ""
- i__1 = a1ll_2.iccount;
-#line 9789 ""
- if (s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, (
- ftnlen)1) != 0) {
-#line 9790 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9790 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected bla"\
- "nk after \":\"!", (ftnlen)128, (ftnlen)25);
-#line 9792 ""
- stop1_();
-#line 9793 ""
- }
-#line 9794 ""
- goto L32;
-#line 9795 ""
- } else if (*(unsigned char *)dumq != ' ') {
-#line 9796 ""
- goto L22;
-#line 9797 ""
- }
-#line 9798 ""
- } else if (*(unsigned char *)dumq == 'f') {
-#line 9799 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)
- 1);
-#line 9800 ""
- if (i_indx(" d+-:", dumq, (ftnlen)5, (ftnlen)1) == 0) {
-#line 9801 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9801 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\
- "r after \"f\" in fermata ornament symbol!", (
- ftnlen)128, (ftnlen)55);
-#line 9803 ""
- stop1_();
-#line 9804 ""
- }
-#line 9805 ""
- if (*(unsigned char *)dumq == 'd') {
-#line 9805 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 9805 ""
- }
-#line 9806 ""
- if (*(unsigned char *)dumq == ':') {
-#line 9806 ""
- goto L32;
-#line 9806 ""
- }
-#line 9807 ""
- } else if (*(unsigned char *)dumq == 'e') {
-#line 9808 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)
- 1);
-#line 9809 ""
- if (i_indx("sfn?", dumq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 9810 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9810 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\
- "r after \"e\" in edit. accid. symbol!", (ftnlen)
- 128, (ftnlen)51);
-#line 9812 ""
- stop1_();
-#line 9813 ""
- }
-#line 9814 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)
- 1);
-#line 9815 ""
- if (*(unsigned char *)dumq == '?') {
-#line 9815 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 9815 ""
- }
-#line 9816 ""
- } else {
-#line 9817 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)
- 1);
-#line 9818 ""
- }
-#line 9819 ""
- if (i_indx("+- :", dumq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 9820 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9820 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character in"\
- " ornament symbol!", (ftnlen)128, (ftnlen)37);
-#line 9822 ""
- stop1_();
-#line 9823 ""
- }
-#line 9824 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 9825 ""
- i__1 = a1ll_2.iccount;
-#line 9825 ""
- if (i_indx("0123456789", lineq + i__1, (ftnlen)10,
- a1ll_2.iccount + 1 - i__1) == 0) {
-#line 9826 ""
- i__1 = a1ll_2.iccount + 1;
-#line 9826 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9826 ""
- errmsg_(lineq, &i__1, &i__4, "There should be an integer"\
- " here!", (ftnlen)128, (ftnlen)32);
-#line 9828 ""
- stop1_();
-#line 9829 ""
- }
-#line 9830 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 9831 ""
- if (*(unsigned char *)durq == ':') {
-#line 9832 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9832 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot shift AND"\
- " repeat an ornament!", (ftnlen)128, (ftnlen)36);
-#line 9834 ""
- stop1_();
-#line 9835 ""
- }
-
-/* 12/7/03 Allow horizontal shift on any ornament, not just breath and caes. */
-
-#line 9839 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 9840 ""
- i__1 = a1ll_2.iccount;
-#line 9840 ""
- if (i_indx(".0123456789", lineq + i__1, (ftnlen)11,
- a1ll_2.iccount + 1 - i__1) == 0) {
-#line 9842 ""
- i__1 = a1ll_2.iccount + 1;
-#line 9842 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9842 ""
- errmsg_(lineq, &i__1, &i__4, "There should be a numb"\
- "er here!", (ftnlen)128, (ftnlen)30);
-#line 9844 ""
- stop1_();
-#line 9845 ""
- }
-#line 9846 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128,
- (ftnlen)1);
-#line 9847 ""
- }
-#line 9848 ""
- }
-#line 9849 ""
-L32:
-#line 9850 ""
- if (*(unsigned char *)dumq == ':') {
-#line 9851 ""
- i__1 = a1ll_2.iccount;
-#line 9851 ""
- if (s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, (
- ftnlen)1) != 0) {
-#line 9852 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9852 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\":\" must be fo"\
- "llowed by blank in \"o: \"!", (ftnlen)128, (
- ftnlen)39);
-#line 9854 ""
- stop1_();
-#line 9855 ""
- } else if (comkeys_1.ornrpt) {
-#line 9856 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9856 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Turned on repeat"\
- "ed ornaments but already on!", (ftnlen)128, (
- ftnlen)44);
-#line 9858 ""
- stop1_();
-#line 9859 ""
- }
-#line 9860 ""
- comkeys_1.ornrpt = TRUE_;
-#line 9861 ""
- }
-#line 9862 ""
- } else if (i_indx("st(){}", charq, (ftnlen)6, (ftnlen)1) > 0) {
-#line 9863 ""
- numint = 0;
-#line 9864 ""
- iposn = 0;
-#line 9865 ""
-L8:
-#line 9865 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)1);
-#line 9866 ""
- ++iposn;
-#line 9867 ""
- if (*(unsigned char *)charq == 't' && *(unsigned char *)dumq ==
- 't') {
-#line 9868 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9868 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot use \"t\" as "\
- "an option on a tie!", (ftnlen)128, (ftnlen)37);
-#line 9870 ""
- stop1_();
-#line 9871 ""
- }
-#line 9872 ""
- if (i_indx("udltb+-fnhHpsv ", dumq, (ftnlen)15, (ftnlen)1) == 0) {
-
-/* Check for explicit ID code. */
-
-#line 9876 ""
- ic = *(unsigned char *)dumq;
-#line 9877 ""
- if (ic < 48 || ic > 57 && ic < 65 || ic > 90) {
-
-/* Not 0-9 or A-Z, so exit */
-
-#line 9882 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9882 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\
- "r in slur symbol!", (ftnlen)128, (ftnlen)33);
-#line 9884 ""
- stop1_();
-#line 9885 ""
- } else {
-
-/* It is a possible ID code. Right place? */
-
-#line 9889 ""
- if (iposn != 1) {
-
-/* Slur ID is not 2nd! */
-
-#line 9893 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9893 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Slur ID must"\
- " be second character in slur symbol!", (
- ftnlen)128, (ftnlen)48);
-#line 9895 ""
- stop1_();
-#line 9896 ""
- } else if (*(unsigned char *)charq == 't' &&
- comslur_1.fontslur) {
-#line 9897 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9897 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Slur ID not "\
- "allowed on non-postscript tie!", (ftnlen)128,
- (ftnlen)42);
-#line 9899 ""
- stop1_();
-#line 9900 ""
- } else /* if(complicated condition) */ {
-#line 9900 ""
- i__1 = a1ll_2.iccount;
-#line 9900 ""
- if (s_cmp(lineq + i__1, "x", a1ll_2.iccount + 1 -
- i__1, (ftnlen)1) == 0) {
-#line 9901 ""
- ++a1ll_2.iccount;
-#line 9902 ""
- }
-#line 9902 ""
- }
-#line 9903 ""
- }
-
-/* Slur ID is OK. Note it cannot be "H" at this point.. */
-
-#line 9907 ""
- goto L8;
-#line 9908 ""
- } else if (*(unsigned char *)dumq == 'H') {
-#line 9909 ""
- if (iposn == 1) {
-#line 9909 ""
- goto L8;
-#line 9909 ""
- }
-
-/* "H" is NOT an ID code. */
-
-#line 9913 ""
- if (! comslur_1.fontslur && *(unsigned char *)charq == 't') {
-#line 9914 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9914 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot reshape p"\
- "ostscript ties this way!", (ftnlen)128, (ftnlen)
- 40);
-#line 9916 ""
- stop1_();
-#line 9917 ""
- }
-#line 9918 ""
- i__1 = a1ll_2.iccount;
-#line 9918 ""
- if (s_cmp(lineq + i__1, "H", a1ll_2.iccount + 1 - i__1, (
- ftnlen)1) == 0) {
-#line 9919 ""
- ++a1ll_2.iccount;
-#line 9920 ""
- ++iposn;
-#line 9921 ""
- }
-#line 9922 ""
- goto L8;
-#line 9923 ""
- } 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 9928 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9928 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot reshape posts"\
- "cript ties this way!", (ftnlen)128, (ftnlen)40);
-#line 9930 ""
- stop1_();
-#line 9931 ""
- } else if (*(unsigned char *)dumq == 'p') {
-
-/* local change in postscript slur/tie adjustment default */
-
-#line 9935 ""
- if (comslur_1.fontslur) {
-#line 9936 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9936 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must use postscr"\
- "ipt slurs (\"Ap\") to use this option!", (ftnlen)
- 128, (ftnlen)52);
-#line 9938 ""
- stop1_();
-#line 9939 ""
- }
-#line 9940 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)
- 1);
-#line 9941 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 9942 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9942 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected \"+\" o"\
- "r \"-\" here!", (ftnlen)128, (ftnlen)25);
-#line 9944 ""
- stop1_();
-#line 9945 ""
- }
-#line 9946 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)
- 1);
-#line 9947 ""
- if (i_indx("st", dumq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 9948 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9948 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected \"s\" o"\
- "r \"t\" here!", (ftnlen)128, (ftnlen)25);
-#line 9950 ""
- stop1_();
-#line 9951 ""
- }
-#line 9952 ""
- iposn += 2;
-#line 9953 ""
- goto L8;
-#line 9954 ""
- }
-#line 9955 ""
- if (i_indx("udltbfnh", dumq, (ftnlen)8, (ftnlen)1) > 0) {
-#line 9956 ""
- goto L8;
-#line 9957 ""
- } else if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 9958 ""
- ++numint;
-#line 9959 ""
- if (comslur_1.fontslur && *(unsigned char *)charq == 't') {
-#line 9960 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9960 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"+|-\" for slur"\
- " height only allowed in \"s\"-slurs!", (ftnlen)
- 128, (ftnlen)48);
-#line 9962 ""
- stop1_();
-#line 9963 ""
- }
-#line 9964 ""
- ++a1ll_2.iccount;
-#line 9965 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 9966 ""
- if (numint == 1) {
-#line 9967 ""
- if (i_nint(&fnum) > 30) {
-#line 9968 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9968 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9968 ""
- errmsg_(lineq, &i__1, &i__4, "Magnitude of slur heig"\
- "ht adjustment cannot exceed 30!", (ftnlen)128,
- (ftnlen)53);
-#line 9970 ""
- stop1_();
-#line 9971 ""
- }
-#line 9972 ""
- } else if (numint == 2) {
-#line 9973 ""
- if (dabs(fnum) > 6.3f) {
-#line 9974 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9974 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9974 ""
- errmsg_(lineq, &i__1, &i__4, "Slur horiz shift must "\
- "be in range (-6.3,6.3)!", (ftnlen)128, (
- ftnlen)45);
-#line 9976 ""
- stop1_();
-#line 9977 ""
- }
-#line 9978 ""
- } else {
-
-/* Third signed integer, must be a midslur or curve spec. */
-
-#line 9982 ""
- if (dabs(fnum) > 31.f) {
-#line 9983 ""
- i__1 = a1ll_2.iccount - 1;
-#line 9983 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 9983 ""
- errmsg_(lineq, &i__1, &i__4, "Slur midheight must be"\
- " in the range (-31,31)!", (ftnlen)128, (
- ftnlen)45);
-#line 9985 ""
- stop1_();
-#line 9986 ""
- }
-#line 9987 ""
- if (*(unsigned char *)durq == ':') {
-
-/* Expecting curve parameters. Get two numbers */
-
-#line 9991 ""
- for (i__ = 1; i__ <= 2; ++i__) {
-#line 9992 ""
- ++a1ll_2.iccount;
-#line 9993 ""
- fnum = (real) (*(unsigned char *)&lineq[
- a1ll_2.iccount - 1] - 48);
-#line 9994 ""
- if ((r__1 = fnum - 3.5f, dabs(r__1)) > 3.6f) {
-#line 9995 ""
- i__1 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 9995 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Slur"\
- " curve parameter must be in range (0"\
- ",7)!", (ftnlen)128, (ftnlen)44);
-#line 9997 ""
- stop1_();
-#line 9998 ""
- }
-#line 9999 ""
-/* L41: */
-#line 9999 ""
- }
-#line 10000 ""
- ++a1ll_2.iccount;
-#line 10001 ""
- }
-#line 10002 ""
- }
-#line 10003 ""
- --a1ll_2.iccount;
-#line 10004 ""
- goto L8;
-#line 10005 ""
- } 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 10010 ""
- if (comslur_1.fontslur) {
-#line 10011 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10011 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "May not use line"\
- "break slur options with font-based slurs!", (
- ftnlen)128, (ftnlen)57);
-#line 10013 ""
- stop1_();
-#line 10014 ""
- }
-#line 10015 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)
- 1);
-#line 10016 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 10017 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10017 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "This character m"\
- "ust be \"+\" or \"-\"!", (ftnlen)128, (ftnlen)34);
-#line 10019 ""
- stop1_();
-#line 10020 ""
- }
-#line 10021 ""
- ++a1ll_2.iccount;
-#line 10022 ""
- readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 10023 ""
- if (i_nint(&fnum) > 30) {
-#line 10024 ""
- i__1 = a1ll_2.iccount - 1;
-#line 10024 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10024 ""
- errmsg_(lineq, &i__1, &i__4, "Magnitude of slur height a"\
- "djustment cannot exceed 30!", (ftnlen)128, (
- ftnlen)53);
-#line 10026 ""
- stop1_();
-#line 10027 ""
- }
-#line 10028 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 10029 ""
- ++a1ll_2.iccount;
-#line 10030 ""
- readnum_(lineq, &a1ll_2.iccount, dumq, &fnum, (ftnlen)128,
- (ftnlen)1);
-#line 10031 ""
- if (dabs(fnum) > 6.3f) {
-#line 10032 ""
- i__1 = a1ll_2.iccount - 1;
-#line 10032 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10032 ""
- errmsg_(lineq, &i__1, &i__4, "Slur horiz shift must "\
- "be in range (-6.3,6.3)!", (ftnlen)128, (
- ftnlen)45);
-#line 10034 ""
- stop1_();
-#line 10035 ""
- }
-#line 10036 ""
- }
-#line 10037 ""
- --a1ll_2.iccount;
-#line 10038 ""
- goto L8;
-#line 10039 ""
- } else if (*(unsigned char *)dumq == 'H' && iposn > 1) {
-#line 10040 ""
- i__1 = a1ll_2.iccount;
-#line 10040 ""
- if (s_cmp(lineq + i__1, "H", a1ll_2.iccount + 1 - i__1, (
- ftnlen)1) == 0) {
-#line 10040 ""
- ++a1ll_2.iccount;
-#line 10040 ""
- }
-#line 10041 ""
- goto L8;
-#line 10042 ""
- }
-#line 10043 ""
- } else if (*(unsigned char *)charq == '?') {
-#line 10044 ""
- getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10045 ""
- if (*(unsigned char *)durq == ' ') {
-#line 10046 ""
- --a1ll_2.iccount;
-#line 10047 ""
- } else {
-#line 10048 ""
- if (*(unsigned char *)durq != '-') {
-#line 10049 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10049 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expecting \"-\"!",
- (ftnlen)128, (ftnlen)14);
-#line 10051 ""
- stop1_();
-#line 10052 ""
- }
-#line 10053 ""
- getchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1)
- ;
-#line 10054 ""
- if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 10055 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10055 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expecting number!"
- , (ftnlen)128, (ftnlen)17);
-#line 10057 ""
- stop1_();
-#line 10058 ""
- }
-#line 10059 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 10060 ""
- --a1ll_2.iccount;
-#line 10061 ""
- }
-#line 10062 ""
- } 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 10067 ""
- 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 10072 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10072 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot put figure be"\
- "fore first note in block!", (ftnlen)128, (ftnlen)45);
-#line 10074 ""
- stop1_();
-#line 10075 ""
- }
-#line 10076 ""
- if (*(unsigned char *)charq == 'x') {
-#line 10077 ""
- indxb = i_indx(lineq + (a1ll_2.iccount - 1), " ", 128 - (
- a1ll_2.iccount - 1), (ftnlen)1);
-#line 10078 ""
- if (indxb < 5) {
-#line 10079 ""
- i__1 = a1ll_2.iccount + indxb - 1;
-#line 10079 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10079 ""
- errmsg_(lineq, &i__1, &i__4, "Cannot have a blank here i"\
- "n floating figure!", (ftnlen)128, (ftnlen)44);
-#line 10081 ""
- stop1_();
-#line 10082 ""
- }
-#line 10083 ""
- }
-#line 10084 ""
- if (compage_1.usefig) {
-#line 10084 ""
- *ifig = 1;
-#line 10084 ""
- }
-#line 10085 ""
-L5:
-#line 10085 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 10086 ""
- if (i_indx(" 0123456789#-nx_.:+sv", charq, (ftnlen)21, (ftnlen)1)
- == 0) {
-#line 10087 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10087 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character in"\
- " figure!", (ftnlen)128, (ftnlen)28);
-#line 10089 ""
- stop1_();
-#line 10090 ""
- } else if (*(unsigned char *)charq == '+') {
-
-/* vertical offset, must be integer, then blank */
-
-#line 10094 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)
- 1);
-#line 10095 ""
- if (i_indx("123456789", charq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 10096 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10096 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Integer for vert"\
- "ical offset expected here!", (ftnlen)128, (ftnlen)
- 42);
-#line 10098 ""
- stop1_();
-#line 10099 ""
- }
-#line 10100 ""
- readnum_(lineq, &a1ll_2.iccount, charq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 10101 ""
- if (*(unsigned char *)charq != ' ') {
-#line 10102 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10102 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Vertical offset "\
- "must terminate figure!", (ftnlen)128, (ftnlen)38);
-#line 10104 ""
- stop1_();
-#line 10105 ""
- }
-#line 10106 ""
- --a1ll_2.iccount;
-#line 10107 ""
- goto L5;
-#line 10108 ""
- } else if (*(unsigned char *)charq == 's') {
-#line 10109 ""
- comligfont_1.isligfont = TRUE_;
-#line 10110 ""
- }
-#line 10111 ""
- if (*(unsigned char *)charq != ' ') {
-#line 10111 ""
- goto L5;
-#line 10111 ""
- }
-#line 10112 ""
- } else if (*(unsigned char *)charq == '[') {
-#line 10113 ""
- if (c1omget_1.fbon) {
-#line 10114 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10114 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Started forced beam "\
- "while another was open!", (ftnlen)128, (ftnlen)43);
-#line 10116 ""
- stop1_();
-#line 10117 ""
- }
-#line 10118 ""
- c1omget_1.fbon = TRUE_;
-#line 10119 ""
-L17:
-#line 10119 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 10120 ""
- if (i_indx("uljhf:", charq, (ftnlen)6, (ftnlen)1) > 0) {
-#line 10121 ""
- goto L17;
-#line 10122 ""
- } else if (i_indx("+-", charq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 10123 ""
- ++a1ll_2.iccount;
-#line 10124 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 10125 ""
- --a1ll_2.iccount;
-#line 10126 ""
- goto L17;
-#line 10127 ""
- } else if (*(unsigned char *)charq == 'm') {
-
-/* Forced multiplicity, next char should be 1-4 */
-
-#line 10131 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)
- 1);
-#line 10132 ""
- if (i_indx("1234", charq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 10133 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10133 ""
- 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 10135 ""
- stop1_();
-#line 10136 ""
- }
-#line 10137 ""
- goto L17;
-#line 10138 ""
- } else if (*(unsigned char *)charq != ' ') {
-#line 10139 ""
- if (i_indx("0123456789", charq, (ftnlen)10, (ftnlen)1) > 0) {
-#line 10140 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10140 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "After \"[\", dig"\
- "its must now be preceeded by \"+\" or \"-\"!", (
- ftnlen)128, (ftnlen)54);
-#line 10142 ""
- s_wsle(&io___662);
-#line 10142 ""
- do_lio(&c__9, &c__1, "You will have to edit older source"\
- "s to meet this rqmt,", (ftnlen)54);
-#line 10142 ""
- e_wsle();
-#line 10143 ""
- s_wsle(&io___663);
-#line 10143 ""
- do_lio(&c__9, &c__1, "but it was needed to allow 2-digit"\
- " height adjustments.", (ftnlen)54);
-#line 10143 ""
- e_wsle();
-#line 10144 ""
- s_wsle(&io___664);
-#line 10144 ""
- do_lio(&c__9, &c__1, "Sorry for the inconvenience. --Th"\
- "e Management", (ftnlen)46);
-#line 10144 ""
- e_wsle();
-#line 10145 ""
- } else {
-#line 10146 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10146 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\
- "r after [!", (ftnlen)128, (ftnlen)26);
-#line 10148 ""
- }
-#line 10149 ""
- stop1_();
-#line 10150 ""
- }
-#line 10151 ""
- } else if (*(unsigned char *)charq == ']') {
-#line 10152 ""
- if (! c1omget_1.fbon) {
-#line 10153 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10153 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Forced beam stop wit"\
- "h no corresponding start!", (ftnlen)128, (ftnlen)45);
-#line 10155 ""
- stop1_();
-#line 10156 ""
- }
-#line 10157 ""
- g1etchar_(lineq, &a1ll_2.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 10158 ""
- if (*(unsigned char *)charq == '-') {
-#line 10159 ""
- i__1 = a1ll_2.iccount;
-#line 10159 ""
- if (s_cmp(lineq + i__1, "[ ", a1ll_2.iccount + 2 - i__1, (
- ftnlen)2) != 0) {
-#line 10160 ""
- i__1 = a1ll_2.iccount + 1;
-#line 10160 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10160 ""
- errmsg_(lineq, &i__1, &i__4, "Only sequence allowed here"\
- " is \"[ \"!", (ftnlen)128, (ftnlen)35);
-#line 10162 ""
- stop1_();
-#line 10163 ""
- } else {
-#line 10164 ""
- a1ll_2.iccount += 2;
-#line 10165 ""
- }
-#line 10166 ""
- } else if (*(unsigned char *)charq == '[') {
-#line 10167 ""
- i__1 = a1ll_2.iccount;
-#line 10167 ""
- if (s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, (
- ftnlen)1) != 0) {
-#line 10168 ""
- i__1 = a1ll_2.iccount + 1;
-#line 10168 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10168 ""
- errmsg_(lineq, &i__1, &i__4, "This character must be a b"\
- "lank!", (ftnlen)128, (ftnlen)31);
-#line 10170 ""
- stop1_();
-#line 10171 ""
- }
-#line 10172 ""
- } else {
-
-/* Forced beam is really ending */
-
-#line 10176 ""
- c1omget_1.fbon = FALSE_;
-#line 10177 ""
- if (*(unsigned char *)charq == 'j') {
-#line 10178 ""
- i__1 = a1ll_2.iccount;
-#line 10178 ""
- if (s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, (
- ftnlen)1) != 0) {
-#line 10179 ""
- i__1 = a1ll_2.iccount + 1;
-#line 10179 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10179 ""
- errmsg_(lineq, &i__1, &i__4, "This character must be"\
- " a blank!", (ftnlen)128, (ftnlen)31);
-#line 10181 ""
- stop1_();
-#line 10182 ""
- }
-#line 10183 ""
- } else if (*(unsigned char *)charq != ' ') {
-#line 10184 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10184 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"]\" must be fo"\
- "llowed by blank, \"j\", \"-\", or \"[\"!", (
- ftnlen)128, (ftnlen)48);
-#line 10186 ""
- stop1_();
-#line 10187 ""
- }
-#line 10188 ""
- }
-#line 10189 ""
- } else if (*(unsigned char *)charq == 'D') {
-
-/* Dynamic mark */
-
-#line 10193 ""
- if (a1ll_2.nnl[c1ommvl_1.ivx - 1] == 0) {
-#line 10194 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10194 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"D\" must not come "\
- "before any notes have been entered!", (ftnlen)128, (
- ftnlen)53);
-#line 10196 ""
- stop1_();
-#line 10197 ""
- }
-#line 10198 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 10198 ""
- checkdyn_(lineq, &a1ll_2.iccount, &i__1, (ftnlen)128);
-#line 10199 ""
- } else if (i_indx("lhw", charq, (ftnlen)3, (ftnlen)1) > 0) {
-
-/* Save position for later check */
-
-#line 10203 ""
- icclhw = a1ll_2.iccount;
-#line 10204 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10205 ""
- if (i_indx("0123456789.+- ", durq, (ftnlen)14, (ftnlen)1) == 0) {
-#line 10206 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10206 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character af"\
- "ter \"l\", \"w\", or \"h\"!", (ftnlen)128, (ftnlen)41)
- ;
-#line 10208 ""
- stop1_();
-#line 10209 ""
- }
-#line 10210 ""
- c1omget_1.isheadr = c1omget_1.isheadr || *(unsigned char *)charq
- == 'h';
-#line 10211 ""
- if (i_indx(" +-", durq, (ftnlen)3, (ftnlen)1) > 0) {
-
-/* There is a header (or lower string?) */
-
-#line 10215 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* User-defined vert offset (\internote). */
-
-#line 10219 ""
- if (*(unsigned char *)charq != 'h') {
-#line 10220 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10220 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"+\" or \""\
- "-\" not permitted here!", (ftnlen)128, (
- ftnlen)30);
-#line 10222 ""
- stop1_();
-#line 10223 ""
- }
-
-/* Have "h" followed by +/- . Check for digit. */
-/* Can blow durq since not using fnum for now, but... */
-
-#line 10228 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 10229 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0)
- {
-#line 10230 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10230 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "There must b"\
- "e a digit here!", (ftnlen)128, (ftnlen)27);
-#line 10232 ""
- stop1_();
-#line 10233 ""
- }
-
-/* Have "h" followed by +/- followed by a digit. No need to get the number. */
-
-/* call readnum(lineq,iccount,durq,fnum) */
-#line 10238 ""
- }
-#line 10239 ""
- if (*(unsigned char *)charq != 'w') {
-
-/* Header or lower string. */
-
-#line 10243 ""
- if (icclhw != 1) {
-#line 10244 ""
- i__1 = a1ll_2.iccount - 1;
-#line 10244 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10244 ""
- errmsg_(lineq, &i__1, &i__4, "\"h\" or \"l\" must be"\
- " first character in line!", (ftnlen)128, (
- ftnlen)43);
-#line 10246 ""
- stop1_();
-#line 10247 ""
- }
-
-/* Read past the next line, which has the string. */
-
-#line 10251 ""
- read10_(charq, &c1omget_1.lastchar, (ftnlen)1);
-#line 10252 ""
- ++c1omget_1.nline;
-#line 10253 ""
- a1ll_2.iccount = 128;
-#line 10254 ""
- } else {
-#line 10255 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10255 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Symbol \"w\" (wi"\
- "dth) must be followed by a digit!", (ftnlen)128, (
- ftnlen)47);
-#line 10257 ""
- stop1_();
-#line 10258 ""
- }
-#line 10259 ""
- } else {
-
-/* Height or width change spec. Check if at start of piece. */
-
-#line 10263 ""
- if (c1omnotes_1.ibarcnt > 0) {
-#line 10264 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10264 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Symbol must go a"\
- "t top of first input block!", (ftnlen)128, (
- ftnlen)43);
-#line 10266 ""
- stop1_();
-#line 10267 ""
- }
-#line 10268 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &dimen, (ftnlen)128, (
- ftnlen)1);
-
-/* Check units. Convert to points */
-
-#line 10272 ""
- if (*(unsigned char *)durq == ' ' || *(unsigned char *)durq ==
- 'p') {
-#line 10273 ""
- dimen += .5f;
-#line 10274 ""
- } else if (*(unsigned char *)durq == 'i') {
-#line 10275 ""
- dimen = dimen * 72 + .5f;
-#line 10276 ""
- } else if (*(unsigned char *)durq == 'm') {
-#line 10277 ""
- dimen = dimen / 25.4f * 72 + .5f;
-#line 10278 ""
- } else {
-#line 10279 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10279 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal unit; mu"\
- "st be \"p\",\"i\",or\"m\"!", (ftnlen)128, (ftnlen)
- 36);
-#line 10281 ""
- stop1_();
-#line 10282 ""
- }
-
-/* 151211 fix. May have extra character. */
-
-#line 10286 ""
- if (i_indx("pim", durq, (ftnlen)3, (ftnlen)1) > 0) {
-
-/* Get another character, see if it's blank */
-
-#line 10290 ""
- i__1 = a1ll_2.iccount;
-#line 10290 ""
- if (s_cmp(lineq + i__1, " ", a1ll_2.iccount + 1 - i__1, (
- ftnlen)1) != 0) {
-#line 10291 ""
- i__1 = a1ll_2.iccount + 1;
-#line 10291 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10291 ""
- errmsg_(lineq, &i__1, &i__4, "This character should "\
- "be a blank!", (ftnlen)128, (ftnlen)33);
-#line 10293 ""
- stop1_();
-#line 10294 ""
- }
-#line 10295 ""
- }
-#line 10296 ""
- if (*(unsigned char *)charq == 'h') {
-#line 10297 ""
- compage_1.ptheight = (real) ((integer) dimen);
-#line 10298 ""
- } else {
-#line 10299 ""
- compage_1.widthpt = (real) ((integer) dimen);
-#line 10300 ""
- }
-#line 10301 ""
- }
-#line 10302 ""
- } else if (*(unsigned char *)charq == 'm') {
-
-/* Time signature change. Only allow at beginning of block. */
-/* mtrnuml, mtrdenl (logical) and p (printable) will be input. */
-/* mtrnuml=0 initially. (In common) */
-
-/* Check whether at beginning of a block */
-
-#line 10310 ""
- if (c1ommvl_1.ivx != 1 || a1ll_2.nnl[0] != 0) {
-#line 10311 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10311 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Meter change only OK"\
- " in voice 1, at start of block!", (ftnlen)128, (
- ftnlen)51);
-#line 10313 ""
- s_wsle(&io___667);
-#line 10313 ""
- do_lio(&c__9, &c__1, "voice number is", (ftnlen)15);
-#line 10313 ""
- do_lio(&c__3, &c__1, (char *)&c1ommvl_1.ivx, (ftnlen)sizeof(
- integer));
-#line 10313 ""
- e_wsle();
-#line 10314 ""
- stop1_();
-#line 10315 ""
- }
-#line 10316 ""
- a1ll_2.newmeter = TRUE_;
-#line 10317 ""
- i__1 = a1ll_2.iccount;
-#line 10317 ""
- if (i_indx("o0123456789", lineq + i__1, (ftnlen)11,
- a1ll_2.iccount + 1 - i__1) == 0) {
-#line 10318 ""
- i__1 = a1ll_2.iccount + 1;
-#line 10318 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10318 ""
- errmsg_(lineq, &i__1, &i__4, "Illegal character in \"m\" com"\
- "mand for meter change!", (ftnlen)128, (ftnlen)50);
-#line 10320 ""
- stop1_();
-#line 10321 ""
- }
-#line 10322 ""
- readmeter_(lineq, &a1ll_2.iccount, &a1ll_2.mtrnuml, &mtrdenl, (
- ftnlen)128);
-#line 10323 ""
- if (a1ll_2.mtrnuml == 0) {
-#line 10324 ""
- i__1 = a1ll_2.iccount - 1;
-#line 10324 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10324 ""
- errmsg_(lineq, &i__1, &i__4, "Digit 0 not allowed here!", (
- ftnlen)128, (ftnlen)25);
-#line 10326 ""
- stop1_();
-#line 10327 ""
- }
-#line 10328 ""
- readmeter_(lineq, &a1ll_2.iccount, &mtrnmp, &mtrdnp, (ftnlen)128);
-
-/* Read past printed time signature; not used in pmxa. */
-
-#line 10332 ""
- lenbeat = i1fnodur_(&mtrdenl, "x", (ftnlen)1);
-#line 10333 ""
- lenmult = 1;
-#line 10334 ""
- if (mtrdenl == 2) {
-#line 10335 ""
- lenbeat = 16;
-#line 10336 ""
- lenmult = 2;
-#line 10337 ""
- }
-#line 10338 ""
- a1ll_2.lenbar = lenmult * a1ll_2.mtrnuml * lenbeat;
-#line 10339 ""
- a1ll_2.mtrnuml = 0;
-#line 10340 ""
- } else if (*(unsigned char *)charq == 'C') {
-#line 10341 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10342 ""
- if (! (i_indx("tsmanrbf", durq, (ftnlen)8, (ftnlen)1) > 0 || *(
- unsigned char *)durq >= 48 && *(unsigned char *)durq <=
- 56)) {
-#line 10344 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10344 ""
- 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);
-#line 10346 ""
- stop1_();
-#line 10347 ""
- }
-#line 10348 ""
- } else if (*(unsigned char *)charq == 'R') {
-#line 10349 ""
- if (c1ommvl_1.ivx != 1) {
-#line 10350 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10350 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Repeats can only go "\
- "in voice 1!", (ftnlen)128, (ftnlen)31);
-#line 10352 ""
- stop1_();
-#line 10353 ""
- }
-/* 10 call g1etchar(lineq,iccount,durq) */
-/* if (index('lrdDbz',durq) .gt. 0) go to 10 */
-/* if (durq .ne. ' ') then */
-/* call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, */
-/* * 'Illegal character after "R" (repeat/double bar)!') */
-/* call stop1() */
-/* end if */
-#line 10361 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10362 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (ftnlen)1);
-/* Writing concatenation */
-#line 10363 ""
- i__3[0] = 1, a__2[0] = durq;
-#line 10363 ""
- i__3[1] = 1, a__2[1] = dumq;
-#line 10363 ""
- s_cat(ch__3, a__2, i__3, &c__2, (ftnlen)2);
-#line 10363 ""
- if (i_indx("l Xr Xd XD Xb Xz XlrXdlX", ch__3, (ftnlen)24, (ftnlen)
- 2) == 0) {
-#line 10364 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10364 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character af"\
- "ter \"R*\" (repeat/double bar)!", (ftnlen)128, (
- ftnlen)49);
-#line 10366 ""
- stop1_();
-#line 10367 ""
- }
-#line 10368 ""
- if (*(unsigned char *)dumq != ' ') {
-#line 10369 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10370 ""
- if (*(unsigned char *)durq != ' ') {
-#line 10371 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10371 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must have blank "\
- "after \"R**\" (repeat/double bar)!", (ftnlen)128,
- (ftnlen)48);
-#line 10373 ""
- stop1_();
-#line 10374 ""
- }
-#line 10375 ""
- }
-#line 10376 ""
- } else if (*(unsigned char *)charq == 'V') {
-
-/* Ending */
-
-#line 10380 ""
- if (a1ll_2.iv != 1) {
-#line 10381 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10381 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Voltas are only allo"\
- "wed in voice #1!", (ftnlen)128, (ftnlen)36);
-#line 10383 ""
- stop1_();
-#line 10384 ""
- } else if (c1omget_1.isvolt) {
-#line 10385 ""
- s_wsle(&io___673);
-#line 10385 ""
- e_wsle();
-#line 10386 ""
- s_wsle(&io___674);
-#line 10386 ""
- do_lio(&c__9, &c__1, "*******WARNING********", (ftnlen)22);
-#line 10386 ""
- e_wsle();
-#line 10387 ""
- s_wsfe(&io___675);
-#line 10387 ""
- do_fio(&c__1, "*******WARNING********", (ftnlen)22);
-#line 10387 ""
- e_wsfe();
-#line 10388 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10388 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "There is more than o"\
- "ne volta in this input block.!", (ftnlen)128, (ftnlen)
- 50);
-#line 10390 ""
- s_wsle(&io___676);
-#line 10390 ""
- do_lio(&c__9, &c__1, "This may work in a score, but WILL NOT"\
- " work in parts.", (ftnlen)53);
-#line 10390 ""
- e_wsle();
-#line 10391 ""
- s_wsle(&io___677);
-#line 10391 ""
- do_lio(&c__9, &c__1, "Safest to have only 1 volta per block,"\
- " at the start of the block", (ftnlen)64);
-#line 10391 ""
- e_wsle();
-#line 10393 ""
- s_wsfe(&io___678);
-#line 10393 ""
- do_fio(&c__1, "This may work in a score, but WILL NOT work i"\
- "n parts.", (ftnlen)53);
-#line 10393 ""
- e_wsfe();
-#line 10395 ""
- s_wsfe(&io___679);
-#line 10395 ""
- do_fio(&c__1, "Safest to have only 1 volta per block, at the"\
- " start of the block", (ftnlen)64);
-#line 10395 ""
- e_wsfe();
-#line 10397 ""
- }
-#line 10398 ""
- c1omget_1.isvolt = TRUE_;
-#line 10399 ""
- lvoltxt = 0;
-#line 10400 ""
-L11:
-#line 10400 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10401 ""
- if (*(unsigned char *)durq != ' ') {
-#line 10402 ""
- goto L11;
-#line 10403 ""
- }
-#line 10404 ""
- } else if (*(unsigned char *)charq == 'B') {
-#line 10406 ""
- } else if (*(unsigned char *)charq == 'P') {
-#line 10407 ""
- if (c1ommvl_1.ivx != 1 || a1ll_2.nnl[0] != 0) {
-#line 10408 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10408 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only allowed at begi"\
- "nning of block!", (ftnlen)128, (ftnlen)35);
-#line 10410 ""
- stop1_();
-#line 10411 ""
- }
-#line 10412 ""
-L16:
-#line 10412 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10413 ""
- if (*(unsigned char *)durq == 'l' || *(unsigned char *)durq ==
- 'r' || *(unsigned char *)durq >= 48 && *(unsigned char *)
- durq <= 57) {
-#line 10413 ""
- goto L16;
-#line 10413 ""
- }
-#line 10415 ""
- if (*(unsigned char *)durq == 'c') {
-
-/* Expect a centered name, and it has to be last option */
-
-#line 10419 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10420 ""
- if (*(unsigned char *)durq == '"') {
-
-/* Quoted name, go to next quote mark */
-
-#line 10424 ""
- for (++a1ll_2.iccount; a1ll_2.iccount <= 127;
- ++a1ll_2.iccount) {
-#line 10425 ""
- i__1 = a1ll_2.iccount - 2;
-#line 10425 ""
- if (*(unsigned char *)&lineq[a1ll_2.iccount - 1] ==
- '"' && s_cmp(lineq + i__1, "\\",
- a1ll_2.iccount - 1 - i__1, (ftnlen)1) != 0) {
-#line 10425 ""
- goto L36;
-#line 10425 ""
- }
-#line 10427 ""
-/* L35: */
-#line 10427 ""
- }
-#line 10428 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10428 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Missing close qu"\
- "ote after page number command (P)!", (ftnlen)128,
- (ftnlen)50);
-#line 10430 ""
- stop1_();
-#line 10431 ""
-L36:
-#line 10432 ""
- ;
-#line 10432 ""
- } else if (*(unsigned char *)durq != ' ') {
-
-/* Space-delimited name, look for next blank */
-
-#line 10436 ""
- for (++a1ll_2.iccount; a1ll_2.iccount <= 127;
- ++a1ll_2.iccount) {
-#line 10437 ""
- if (*(unsigned char *)&lineq[a1ll_2.iccount - 1] ==
- ' ') {
-#line 10437 ""
- goto L38;
-#line 10437 ""
- }
-#line 10438 ""
-/* L37: */
-#line 10438 ""
- }
-#line 10439 ""
-L38:
-#line 10440 ""
- ;
-#line 10440 ""
- }
-#line 10441 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 10442 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10442 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only \"l\",\"r\",\""\
- "c\" or digit allowed after \"P\"!", (ftnlen)128, (
- ftnlen)44);
-#line 10444 ""
- stop1_();
-#line 10445 ""
- }
-#line 10446 ""
- } else if (*(unsigned char *)charq == 'W') {
-#line 10447 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10448 ""
- if (i_indx(".0123456789", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 10449 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10449 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Expected a number to"\
- " start here!", (ftnlen)128, (ftnlen)32);
-#line 10451 ""
- stop1_();
-#line 10452 ""
- }
-#line 10453 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &c1omnotes_1.wminnh[
- c1omnotes_1.ibarcnt + a1ll_2.nbars], (ftnlen)128, (ftnlen)
- 1);
-#line 10454 ""
- } else if (*(unsigned char *)charq == 'T') {
-
-/* Titles */
-
-#line 10458 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10459 ""
- if (i_indx("itc", durq, (ftnlen)3, (ftnlen)1) == 0) {
-#line 10460 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10460 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must put \"i\", \""\
- "t\", or \"c\" after \"T\"!", (ftnlen)128, (ftnlen)36);
-#line 10462 ""
- stop1_();
-#line 10463 ""
- }
-#line 10464 ""
- i__1 = i_indx("itc", durq, (ftnlen)3, (ftnlen)1) - 1;
-#line 10464 ""
- c1omget_1.ihead += pow_ii(&c__2, &i__1);
-
-/* Maybe a number after 'Tt', but ignore here. Read past string on next line. */
-
-#line 10468 ""
- read10_(charq, &c1omget_1.lastchar, (ftnlen)1);
-#line 10469 ""
- ++c1omget_1.nline;
-#line 10470 ""
- a1ll_2.iccount = 128;
-#line 10471 ""
- } else if (*(unsigned char *)charq == 'A') {
-#line 10472 ""
-L27:
-#line 10472 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-/* if (index('rbsdeK',durq) .gt. 0) then */
-#line 10474 ""
- if (i_indx("rbsdK", durq, (ftnlen)5, (ftnlen)1) > 0) {
-#line 10475 ""
- goto L27;
-#line 10476 ""
- } else if (*(unsigned char *)durq == 'e') {
-
-/* Check for is4bignv. Must do here to catch first \internote, written in topfile */
-/* before ever calling getnote. Initialize as .false. in pmxa. Make it true only */
-/* if nv>7, AI not set, Ai not set. */
-
-#line 10482 ""
- comis4bignv_1.is4bignv = a1ll_2.nv > 7 && !
- comis4bignv_1.aiset;
-#line 10483 ""
- goto L27;
-#line 10484 ""
- } else if (*(unsigned char *)durq == 'v') {
-#line 10485 ""
- if (c1omnotes_1.ibarcnt == 0) {
-#line 10485 ""
- comnvst_1.novshrinktop = TRUE_;
-#line 10485 ""
- }
-#line 10486 ""
- goto L27;
-#line 10487 ""
- } else if (*(unsigned char *)durq == 'a') {
-#line 10488 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10489 ""
- if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 10490 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10490 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "After \"Aa\", ne"\
- "ed decimal number!", (ftnlen)128, (ftnlen)32);
-#line 10492 ""
- stop1_();
-#line 10493 ""
- }
-#line 10494 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &c1ommvl_1.fbar, (
- ftnlen)128, (ftnlen)1);
-#line 10495 ""
- --a1ll_2.iccount;
-#line 10496 ""
- goto L27;
-#line 10497 ""
- } else if (*(unsigned char *)durq == 'i') {
-#line 10498 ""
- comis4bignv_1.is4bignv = FALSE_;
-#line 10499 ""
- comis4bignv_1.aiset = TRUE_;
-#line 10500 ""
- 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 10505 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &tintstf, (ftnlen)128,
- (ftnlen)1);
-#line 10506 ""
- if (c1omnotes_1.ibarcnt == 0) {
-#line 10506 ""
- compage_1.fintstf = tintstf;
-#line 10506 ""
- }
-#line 10507 ""
- --a1ll_2.iccount;
-#line 10508 ""
- goto L27;
-#line 10509 ""
- } else if (*(unsigned char *)durq == 'I') {
-
-/* Global interstaff correction. Use in place of fintstf if fintstf<0 */
-
-#line 10513 ""
- comis4bignv_1.is4bignv = FALSE_;
-#line 10514 ""
- comis4bignv_1.aiset = TRUE_;
-#line 10515 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10516 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &compage_1.gintstf, (
- ftnlen)128, (ftnlen)1);
-#line 10517 ""
- --a1ll_2.iccount;
-#line 10518 ""
- goto L27;
-#line 10519 ""
- } else if (*(unsigned char *)durq == 'o') {
-#line 10520 ""
- *optimize = TRUE_;
-#line 10521 ""
- goto L27;
-#line 10522 ""
- } else if (*(unsigned char *)durq == 'S') {
-#line 10523 ""
- i__1 = comkeys_1.noinst;
-#line 10523 ""
- for (iiv = 1; iiv <= i__1; ++iiv) {
-#line 10524 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 10525 ""
- if (i_indx("-0st", durq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 10526 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10526 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "After \"AS\""\
- ", need nv instances of \"s,t,-,0\"!", (ftnlen)
- 128, (ftnlen)43);
-#line 10528 ""
- stop1_();
-#line 10529 ""
- }
-#line 10530 ""
- if (*(unsigned char *)durq == '-' || *(unsigned char *)
- durq == 's') {
-#line 10531 ""
- comsize_1.isize[iiv - 1] = 1;
-#line 10532 ""
- } else if (*(unsigned char *)durq == 't') {
-#line 10533 ""
- comsize_1.isize[iiv - 1] = 2;
-#line 10534 ""
- }
-#line 10535 ""
-/* L50: */
-#line 10535 ""
- }
-#line 10536 ""
- goto L27;
-#line 10537 ""
- } else if (*(unsigned char *)durq == 'p') {
-#line 10538 ""
- comslur_1.fontslur = FALSE_;
-#line 10539 ""
-L42:
-#line 10540 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10541 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Characters to change defaults for ps slurs */
-
-#line 10545 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 10546 ""
- if (i_indx("shtc", durq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 10547 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10547 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only letters"\
- " allowed here are \"s\",\"h\",\"t\",\"c\"!", (
- ftnlen)128, (ftnlen)46);
-#line 10549 ""
- stop1_();
-#line 10550 ""
- }
-
-/* Now check for another default modifier */
-
-#line 10554 ""
- goto L42;
-#line 10555 ""
- } else if (i_indx("lh", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Flags for optional linebreak ties or header specials */
-
-#line 10559 ""
- goto L42;
-#line 10560 ""
- } else {
-#line 10561 ""
- --a1ll_2.iccount;
-#line 10562 ""
- }
-#line 10563 ""
- goto L27;
-#line 10564 ""
- } 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 10570 ""
- if (a1ll_2.iccount != 2) {
-#line 10571 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10571 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"AN\" must star"\
- "t in column 1!", (ftnlen)128, (ftnlen)28);
-#line 10573 ""
- stop1_();
-#line 10574 ""
- }
-#line 10575 ""
- ndxquote = i_indx(lineq, "\"", (ftnlen)128, (ftnlen)1);
-#line 10576 ""
- 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 10579 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10579 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"AN\" must be f"\
- "ollowed by inst. #, then quote!", (ftnlen)128, (
- ftnlen)45);
-#line 10581 ""
- stop1_();
-#line 10582 ""
- }
-#line 10583 ""
- i__1 = ndxquote;
-#line 10583 ""
- ndxquote = i_indx(lineq + i__1, "\"", 128 - i__1, (ftnlen)1);
-#line 10584 ""
- if (ndxquote == 0) {
-#line 10585 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10585 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "In \"AN\", file "\
- "name must be in quotes!", (ftnlen)128, (ftnlen)37)
- ;
-#line 10587 ""
- stop1_();
-#line 10588 ""
- }
-#line 10589 ""
- a1ll_2.iccount = 128;
-#line 10590 ""
- } else if (*(unsigned char *)durq == 'T') {
-#line 10591 ""
- comnvst_1.cstuplet = TRUE_;
-#line 10592 ""
- } else if (*(unsigned char *)durq == 'R') {
-
-/* Get full name of normal include file; must occupy remainder of line */
-
-#line 10596 ""
- i__1 = a1ll_2.iccount;
-#line 10596 ""
- getpmxmod_(&c_false, lineq + i__1, 128 - i__1);
-#line 10597 ""
- a1ll_2.iccount = 128;
-#line 10598 ""
- } else if (*(unsigned char *)durq == 'c') {
-#line 10599 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10600 ""
- if (i_indx("l4", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 10601 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10601 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only \"l\" or"\
- " \"4\" is allowed here!", (ftnlen)128, (ftnlen)32)
- ;
-#line 10603 ""
- stop1_();
-#line 10604 ""
- }
-#line 10605 ""
- if (*(unsigned char *)durq == 'l') {
-#line 10606 ""
- compage_1.hoffpt = -25.f;
-#line 10607 ""
- compage_1.voffpt = -45.f;
-#line 10608 ""
- } else if (*(unsigned char *)durq == '4') {
-#line 10609 ""
- compage_1.ptheight = 745.f;
-#line 10610 ""
- compage_1.widthpt = 499.f;
-#line 10611 ""
- compage_1.hoffpt = -24.f;
-#line 10612 ""
- compage_1.voffpt = -24.f;
-#line 10613 ""
- }
-#line 10614 ""
- goto L27;
-#line 10615 ""
- } else if (*(unsigned char *)durq == 'V') {
-#line 10616 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10617 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 10618 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10618 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only \"+\" or"\
- " \"-\" is allowed here!", (ftnlen)128, (ftnlen)32)
- ;
-#line 10620 ""
- stop1_();
-#line 10621 ""
- }
-#line 10622 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10623 ""
- if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 10624 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10624 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "A number for ver"\
- "t shift before \\eject must start here!", (ftnlen)
- 128, (ftnlen)54);
-#line 10626 ""
- stop1_();
-#line 10627 ""
- }
-#line 10628 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 10629 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 10630 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10630 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only \"+\" or"\
- " \"-\" is allowed here!", (ftnlen)128, (ftnlen)32)
- ;
-#line 10632 ""
- stop1_();
-#line 10633 ""
- }
-#line 10634 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10635 ""
- if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 10636 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10636 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "A number for ver"\
- "t shift after \\eject must start here!", (ftnlen)
- 128, (ftnlen)53);
-#line 10638 ""
- stop1_();
-#line 10639 ""
- }
-#line 10640 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 10641 ""
- --a1ll_2.iccount;
-#line 10642 ""
- goto L27;
-#line 10643 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 10644 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10644 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "After \"A\" must fol"\
- "low one of abcdeiILNprRsSTvV!", (ftnlen)128, (ftnlen)
- 47);
-/* * 'After "A" must follow one of the letters abcdeiINprRsST!') */
-#line 10647 ""
- s_wsle(&io___684);
-#line 10647 ""
- do_lio(&c__9, &c__1, "For AS, since ver. 2.7, must only have"\
- " noinst args.", (ftnlen)51);
-#line 10647 ""
- e_wsle();
-#line 10648 ""
- s_wsfe(&io___685);
-#line 10648 ""
- do_fio(&c__1, "For AS, since ver. 2.7, must only have noinst"\
- " args.", (ftnlen)51);
-#line 10648 ""
- e_wsfe();
-#line 10650 ""
- stop1_();
-#line 10651 ""
- }
-#line 10652 ""
- } else if (*(unsigned char *)charq == 'K') {
-
-/* Rules and function of K command */
-
-/* Only 1 K +/-n +/-m allowed per block if n.ne.0 (transposition). isig1 is */
-/* initial sig, and must be passed to pmxb because it is needed when topfile */
-/* is called, which is before the K+n+m command is read in pmxb. Also, we */
-/* compute and save ibrkch and newkey for each syst, accounting for key changes, */
-/* 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 10663 ""
-L77:
-#line 10664 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-/* if (index('+-i',durq) .eq. 0) then */
-#line 10666 ""
- if (i_indx("+-in", durq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 10667 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10667 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"K\" (transpose or "\
- "key change) must be followed by \"+,-,i,n\"!", (
- ftnlen)128, (ftnlen)60);
-#line 10669 ""
- stop1_();
-#line 10670 ""
- }
-#line 10671 ""
- if (*(unsigned char *)durq == 'n') {
-#line 10671 ""
- goto L77;
-#line 10671 ""
- }
-#line 10672 ""
- if (*(unsigned char *)durq != 'i') {
-
-/* Normal key change and/or transposition) */
-
-/* iccount = iccount+1 */
-#line 10677 ""
- num1 = 44 - *(unsigned char *)durq;
-
-/* num1= +1 or -1 */
-
-#line 10681 ""
- ztrans = num1 == -1;
-#line 10682 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10683 ""
- if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 10684 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10684 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "1st +/- must be "\
- "followed by a number!", (ftnlen)128, (ftnlen)37);
-#line 10686 ""
- stop1_();
-#line 10687 ""
- }
-/* iccount = iccount+1 */
-#line 10689 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 10690 ""
- num1 = i_nint(&fnum) * num1;
-#line 10691 ""
- ztrans = ztrans && num1 == 0;
-#line 10692 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 10693 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10693 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "1st number aft"\
- "er \"K\" must be followed by \"+,-\"!", (ftnlen)
- 128, (ftnlen)47);
-#line 10695 ""
- stop1_();
-#line 10696 ""
- }
-#line 10697 ""
- ++a1ll_2.iccount;
-#line 10698 ""
- num2 = 44 - *(unsigned char *)durq;
-#line 10699 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 10700 ""
- num2 *= (integer) (fnum + .1f);
-#line 10701 ""
- if (num1 == 0 && ! ztrans) {
-
-/* Key change, only one per block allowed */
-
-#line 10705 ""
- if (comkeys_1.iskchb) {
-#line 10706 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10706 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Only one key"\
- " change allowed per input block!", (ftnlen)
- 128, (ftnlen)44);
-#line 10708 ""
- stop1_();
-#line 10709 ""
- }
-#line 10710 ""
- comkeys_1.iskchb = TRUE_;
-#line 10711 ""
- ++comkeys_1.nkeys;
-#line 10712 ""
- 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 10716 ""
- comkeys_1.ibrkch[comkeys_1.nkeys - 1] =
- c1omnotes_1.ibarcnt + a1ll_2.nbars;
-#line 10717 ""
- if (comkeys_1.kchmid[comkeys_1.nkeys - 1]) {
-#line 10717 ""
- ++comkeys_1.ibrkch[comkeys_1.nkeys - 1];
-#line 10717 ""
- }
-#line 10718 ""
- comkeys_1.newkey[comkeys_1.nkeys - 1] = num2 +
- comkeys_1.idsig;
-/* 130316 */
-/* do 43 iinst = 1 , noinst */
-#line 10721 ""
- commidisig_1.midisig = comkeys_1.newkey[comkeys_1.nkeys -
- 1];
-/* 43 continue */
-#line 10723 ""
- } else {
-
-/* Transposition */
-
-#line 10727 ""
- *fulltrans = TRUE_;
-#line 10728 ""
- if (c1omnotes_1.ibarcnt > 0) {
-#line 10729 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10729 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Transpositio"\
- "n must be at top of first input block!", (
- ftnlen)128, (ftnlen)50);
-#line 10731 ""
- stop1_();
-#line 10732 ""
- }
-#line 10733 ""
- comkeys_1.isig1 = num2;
-#line 10734 ""
- 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 10739 ""
- }
-#line 10740 ""
- } else {
-
-/* 110522/110529 */
-/* Instrument-wise transposition Ki[iInstTrans][+/-][iTransAmt][+/-][iTransKey] */
-/* and repeat i[...] for multiple instruments. Store info here if ibarcnt=0 */
-/* so can pass to topfile (via comInstTrans), which is called before getnote. */
-/* Otherwise, will store info from getnote. Initialize EarlyTransOn and */
-/* LaterInstTrans to .false. in blockdata. Set EarlyTransOn from here; */
-/* LaterInstTrans from g1etnote. Zero both out after use. nInstTrans really */
-/* only needed for instrument-signatures, not transpositions. iTransAmt is */
-/* ALWAYS active per instrument. Set up instno(iv) so can fetch iTransAmt for */
-/* each staff. */
-
-/* durq='i' */
-#line 10753 ""
- getitransinfo_(&c_true, &c1omnotes_1.ibarcnt, lineq, &
- a1ll_2.iccount, &c1omnotes_1.ibaroff, &a1ll_2.nbars, &
- comkeys_1.noinst, (ftnlen)128);
-#line 10755 ""
- }
-#line 10756 ""
- } else if (*(unsigned char *)charq == '|') {
-
-/* Optional bar symbol */
-
-#line 10760 ""
- if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] % a1ll_2.lenbar != 0) {
-#line 10761 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10761 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Bar line marker out "\
- "of place!", (ftnlen)128, (ftnlen)29);
-#line 10763 ""
- stop1_();
-#line 10764 ""
- } else if (comkeys_1.shifton) {
-#line 10765 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10765 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Bar ended with user-"\
- "defined shift still on!", (ftnlen)128, (ftnlen)43);
-#line 10767 ""
- stop1_();
-#line 10768 ""
- }
-#line 10769 ""
- } else if (*(unsigned char *)charq == '/') {
-#line 10770 ""
- if (comkeys_1.ornrpt) {
-#line 10771 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10771 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "WARNING: Block ended"\
- " with repeated ornament still on!", (ftnlen)128, (
- ftnlen)53);
-#line 10773 ""
- comkeys_1.ornrpt = FALSE_;
-#line 10774 ""
- }
-#line 10775 ""
- if (comkeys_1.stickys) {
-#line 10776 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10776 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "WARNING: Block ended"\
- " with sticky stemshrink still on!", (ftnlen)128, (
- ftnlen)53);
-#line 10778 ""
- comkeys_1.stickys = FALSE_;
-#line 10779 ""
- }
-#line 10780 ""
- if (c1omget_1.fbon) {
-#line 10781 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10781 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Block ended with for"\
- "ced beam open!", (ftnlen)128, (ftnlen)34);
-#line 10783 ""
- stop1_();
-#line 10784 ""
- } else if (comkeys_1.shifton) {
-#line 10785 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10785 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Bar ended with user-"\
- "defined shift still on!", (ftnlen)128, (ftnlen)43);
-#line 10787 ""
- stop1_();
-
-/* 140215 Temporary to allow clef change in stup */
-
-/* else if (gotclef) then */
-/* call errmsg(lineq,iccount,ibarcnt-ibaroff+nbars+1, */
-/* * 'May not enter clef at end of input block!') */
-/* call stop1() */
-#line 10795 ""
- }
-#line 10796 ""
- comkeys_1.barend = FALSE_;
-
-/* Perform time checks */
-
-#line 10800 ""
- if (a1ll_2.itsofar[c1ommvl_1.ivx - 1] % a1ll_2.lenbar != 0) {
-#line 10801 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10801 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Block duration not d"\
- "ivisible by lenbar!", (ftnlen)128, (ftnlen)39);
-#line 10803 ""
- s_wsle(&io___689);
-#line 10803 ""
- do_lio(&c__9, &c__1, "lenbar, timesofar are ", (ftnlen)22);
-#line 10803 ""
- do_lio(&c__3, &c__1, (char *)&a1ll_2.lenbar, (ftnlen)sizeof(
- integer));
-#line 10803 ""
- do_lio(&c__3, &c__1, (char *)&a1ll_2.itsofar[c1ommvl_1.ivx -
- 1], (ftnlen)sizeof(integer));
-#line 10803 ""
- e_wsle();
-#line 10804 ""
- stop1_();
-#line 10805 ""
- } else if (c1ommvl_1.ivx > 1 && a1ll_2.itsofar[c1ommvl_1.ivx - 1]
- != a1ll_2.itsofar[0]) {
-#line 10806 ""
- s_wsle(&io___690);
-#line 10806 ""
- e_wsle();
-#line 10807 ""
- s_wsle(&io___691);
-#line 10807 ""
- do_lio(&c__9, &c__1, "No of bars in voice 1, current voice:",
- (ftnlen)37);
-#line 10807 ""
- i__1 = a1ll_2.itsofar[0] / a1ll_2.lenbar;
-#line 10807 ""
- do_lio(&c__3, &c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 10807 ""
- i__4 = a1ll_2.itsofar[c1ommvl_1.ivx - 1] / a1ll_2.lenbar;
-#line 10807 ""
- do_lio(&c__3, &c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 10807 ""
- e_wsle();
-#line 10809 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10809 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Block duration not e"\
- "qual to voice 1!", (ftnlen)128, (ftnlen)36);
-#line 10811 ""
- stop1_();
-#line 10812 ""
- }
-#line 10813 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10814 ""
- if (*(unsigned char *)durq == ' ' && a1ll_2.iv == a1ll_2.nv) {
-
-/* End of input block */
-
-#line 10818 ""
- *loop = FALSE_;
-#line 10819 ""
- } else {
-
-/* Start a new voice */
-
-#line 10823 ""
- if (a1ll_2.lenbr0 != 0 && a1ll_2.firstline) {
-#line 10823 ""
- a1ll_2.lenbar = a1ll_2.lenbr0;
-#line 10823 ""
- }
-#line 10824 ""
- a1ll_2.nbars = 0;
-#line 10825 ""
- if (*(unsigned char *)durq == ' ') {
-
-/* New voice is on next staff */
-
-#line 10829 ""
- ++a1ll_2.iv;
-#line 10830 ""
- c1ommvl_1.ivx = a1ll_2.iv;
-#line 10831 ""
- } else {
-
-/* New voice is on same staff. Set up for it */
-
-#line 10835 ""
- c1ommvl_1.ivx = a1ll_2.nv + 1;
-#line 10836 ""
- i__1 = a1ll_2.nv;
-#line 10836 ""
- for (iiv = 1; iiv <= i__1; ++iiv) {
-#line 10837 ""
- if (c1ommvl_1.nvmx[iiv - 1] == 2) {
-#line 10837 ""
- ++c1ommvl_1.ivx;
-#line 10837 ""
- }
-#line 10838 ""
-/* L23: */
-#line 10838 ""
- }
-#line 10839 ""
- if (c1ommvl_1.ivx > 24) {
-#line 10840 ""
- s_wsfe(&io___692);
-#line 10840 ""
- do_fio(&c__1, "Cannot have more than", (ftnlen)21);
-#line 10840 ""
- do_fio(&c__1, (char *)&c__24, (ftnlen)sizeof(integer))
- ;
-#line 10840 ""
- do_fio(&c__1, " lines of music at once", (ftnlen)23);
-#line 10840 ""
- e_wsfe();
-#line 10842 ""
- stop1_();
-#line 10843 ""
- }
-#line 10844 ""
- c1ommvl_1.nvmx[a1ll_2.iv - 1] = 2;
-#line 10845 ""
- c1ommvl_1.ivmx[a1ll_2.iv + 23] = c1ommvl_1.ivx;
-#line 10846 ""
- a1ll_2.itsofar[c1ommvl_1.ivx - 1] = 0;
-#line 10847 ""
- a1ll_2.nnl[c1ommvl_1.ivx - 1] = 0;
-#line 10848 ""
- for (j = 1; j <= 200; ++j) {
-#line 10849 ""
- a1ll_2.rest[c1ommvl_1.ivx + j * 24 - 25] = FALSE_;
-#line 10850 ""
- c1ommvl_1.nacc[c1ommvl_1.ivx + j * 24 - 25] = 0;
-#line 10851 ""
-/* L24: */
-#line 10851 ""
- }
-
-/* For midi stuff, record that there is a 2nd line of music in this voice */
-
-#line 10855 ""
- if (commidi_1.ismidi) {
-#line 10855 ""
- commidi_1.twoline[a1ll_2.iv - 1] = TRUE_;
-#line 10855 ""
- }
-#line 10856 ""
- }
-#line 10857 ""
- }
-#line 10858 ""
- a1ll_2.iccount = 128;
-#line 10859 ""
- } else if (*(unsigned char *)charq == 'S') {
-
-/* New nsyst: for use with partmaker scor2prt, for parts w/ diff # of systs. */
-
-#line 10863 ""
- if (c1omnotes_1.ibarcnt > 0) {
-#line 10864 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10864 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "\"S\" can only be in"\
- " first input block!", (ftnlen)128, (ftnlen)37);
-#line 10866 ""
- stop1_();
-#line 10867 ""
- }
-#line 10868 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10869 ""
- if (i_indx("123456789 ", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 10870 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10870 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "A digit must follow"\
- " \"S\"!", (ftnlen)128, (ftnlen)24);
-#line 10872 ""
- stop1_();
-#line 10873 ""
- }
-#line 10874 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnsyst, (ftnlen)128, (
- ftnlen)1);
-#line 10875 ""
- compage_1.nsyst = i_nint(&fnsyst);
-#line 10876 ""
-L14:
-#line 10877 ""
- if (*(unsigned char *)durq == 'P') {
-
-/* New npages for parts. */
-
-#line 10881 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10882 ""
- if (i_indx("123456789 ", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 10883 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10883 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must have a numb"\
- "er here!", (ftnlen)128, (ftnlen)24);
-#line 10885 ""
- stop1_();
-#line 10886 ""
- }
-#line 10887 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnsyst, (ftnlen)128, (
- ftnlen)1);
-#line 10888 ""
- compage_1.npages = i_nint(&fnsyst);
-#line 10889 ""
- goto L14;
-#line 10890 ""
- } else if (*(unsigned char *)durq == 'm') {
-
-/* Reset musize (musicsize). */
-
-#line 10894 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10895 ""
- if (i_indx("123456789 ", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 10896 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10896 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must have a numb"\
- "er here!", (ftnlen)128, (ftnlen)24);
-#line 10898 ""
- stop1_();
-#line 10899 ""
- }
-#line 10900 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnsyst, (ftnlen)128, (
- ftnlen)1);
-#line 10901 ""
- commus_1.musize = i_nint(&fnsyst);
-#line 10902 ""
- c1omnotes_1.wheadpt = commus_1.whead20 * commus_1.musize;
-#line 10903 ""
- goto L14;
-#line 10904 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 10905 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10905 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character "\
- "in \"S\" symbol!", (ftnlen)128, (ftnlen)32);
-#line 10907 ""
- stop1_();
-#line 10908 ""
- }
-#line 10909 ""
- } else if (*(unsigned char *)charq == 'L') {
-
-/* Force line break */
-
-#line 10913 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 10914 ""
- if (*(unsigned char *)durq == 'C') {
-
-/* Coda, no real line break, just get coda length */
-
-#line 10918 ""
- if (comshort_1.ishort != 1) {
-#line 10919 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10919 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Cannot use \"L"\
- "C\" without first using \"L[n]S\"!", (ftnlen)128,
- (ftnlen)44);
-#line 10921 ""
- stop1_();
-#line 10922 ""
- }
-#line 10923 ""
- comshort_1.ishort = 0;
-#line 10924 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10925 ""
- if (i_indx("1234567890.", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 10926 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10926 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Need number to d"\
- "efine coda length!", (ftnlen)128, (ftnlen)34);
-#line 10928 ""
- stop1_();
-#line 10929 ""
- }
-#line 10930 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &comshort_1.codafrac, (
- ftnlen)128, (ftnlen)1);
-#line 10931 ""
- comshort_1.poefa[compage_1.isysflb[compage_1.nflb] - 1] +=
- comshort_1.codafrac;
-#line 10932 ""
- if (i_indx(" n", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 10933 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10933 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Need blank or"\
- " \"n\" here!", (ftnlen)128, (ftnlen)23);
-#line 10935 ""
- stop1_();
-#line 10936 ""
- }
-#line 10937 ""
- return 0;
-#line 10938 ""
- }
-#line 10939 ""
- ++compage_1.nflb;
-#line 10940 ""
- compage_1.ibarflb[compage_1.nflb] = c1omnotes_1.ibarcnt +
- a1ll_2.nbars + 1;
-#line 10941 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 10942 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10942 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Need integer to defi"\
- "ne forced line break!", (ftnlen)128, (ftnlen)41);
-#line 10944 ""
- stop1_();
-#line 10945 ""
- }
-#line 10946 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &sysflb, (ftnlen)128, (
- ftnlen)1);
-#line 10947 ""
- compage_1.isysflb[compage_1.nflb] = i_nint(&sysflb);
-#line 10948 ""
- if (compage_1.isysflb[compage_1.nflb] == 1) {
-#line 10949 ""
- i__1 = a1ll_2.iccount - 1;
-#line 10949 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10949 ""
- errmsg_(lineq, &i__1, &i__4, "For now, \"L1\" not allowed!", (
- ftnlen)128, (ftnlen)26);
-#line 10951 ""
- stop1_();
-#line 10952 ""
- }
-#line 10953 ""
- if (compage_1.nflb > 1) {
-
-/* Check if new number is > prior one */
-
-#line 10957 ""
- if (compage_1.isysflb[compage_1.nflb] <= compage_1.isysflb[
- compage_1.nflb - 1]) {
-#line 10958 ""
- i__1 = a1ll_2.iccount - 1;
-#line 10958 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10958 ""
- errmsg_(lineq, &i__1, &i__4, "You already forced a line "\
- "break at a later line!", (ftnlen)128, (ftnlen)48);
-#line 10960 ""
- stop1_();
-#line 10961 ""
- }
-#line 10962 ""
- }
-#line 10963 ""
- if (compage_1.npages == 0) {
-#line 10964 ""
- s_wsle(&io___696);
-#line 10964 ""
- e_wsle();
-#line 10965 ""
- s_wsle(&io___697);
-#line 10965 ""
- do_lio(&c__9, &c__1, "WARNING! You forced a line break at li"\
- "ne ", (ftnlen)41);
-#line 10965 ""
- do_lio(&c__3, &c__1, (char *)&compage_1.isysflb[
- compage_1.nflb], (ftnlen)sizeof(integer));
-#line 10965 ""
- do_lio(&c__9, &c__1, " but npage = 0. Continue?", (ftnlen)26)
- ;
-#line 10965 ""
- e_wsle();
-#line 10967 ""
- s_rsfe(&io___698);
-#line 10967 ""
- do_fio(&c__1, charq, (ftnlen)1);
-#line 10967 ""
- e_rsfe();
-#line 10968 ""
- if (i_indx("yY", charq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 10968 ""
- stop1_();
-#line 10968 ""
- }
-#line 10969 ""
- } else if (compage_1.isysflb[compage_1.nflb] > compage_1.nsyst) {
-#line 10970 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10970 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Forced line break at"\
- " line num > nsyst!", (ftnlen)128, (ftnlen)38);
-#line 10972 ""
- stop1_();
-#line 10973 ""
- } else if (i_indx(" PMS", durq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 10974 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10974 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must have \" \", \""\
- "P\", \"M\", or \"S\" here!", (ftnlen)128, (ftnlen)37);
-#line 10976 ""
- stop1_();
-#line 10977 ""
- }
-#line 10978 ""
-L49:
-/* Transfer up from below to allow S after M */
-#line 10979 ""
- if (*(unsigned char *)durq == 'S') {
-
-/* Shortened line, get shortening fraction */
-
-#line 10983 ""
- comshort_1.ishort = 1;
-#line 10984 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 10985 ""
- if (i_indx("1234567890.", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 10986 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10986 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Need number to d"\
- "efine line shortening fraction!", (ftnlen)128, (
- ftnlen)47);
-#line 10988 ""
- stop1_();
-#line 10989 ""
- }
-#line 10990 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &comshort_1.shortfrac,
- (ftnlen)128, (ftnlen)1);
-#line 10991 ""
- comshort_1.poefa[compage_1.isysflb[compage_1.nflb] - 1] =
- comshort_1.shortfrac;
-#line 10992 ""
- if (*(unsigned char *)durq != ' ') {
-#line 10993 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 10993 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Need blank here!",
- (ftnlen)128, (ftnlen)16);
-#line 10995 ""
- }
-#line 10996 ""
- }
-#line 10997 ""
- if (*(unsigned char *)durq == 'P') {
-
-/* Forced page break here, get page number. */
-
-#line 11001 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 11002 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 11003 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11003 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Need integer to "\
- "define forced page break!", (ftnlen)128, (ftnlen)
- 41);
-#line 11005 ""
- stop1_();
-#line 11006 ""
- }
-#line 11007 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 11008 ""
- ++compage_1.nfpb;
-#line 11009 ""
- compage_1.ipagfpb[compage_1.nfpb] = i_nint(&fnum);
-#line 11010 ""
- compage_1.isysfpb[compage_1.nfpb] = compage_1.isysflb[
- compage_1.nflb];
-#line 11011 ""
- if (compage_1.ipagfpb[compage_1.nfpb] > compage_1.npages) {
-#line 11012 ""
- i__1 = a1ll_2.iccount - 1;
-#line 11012 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11012 ""
- errmsg_(lineq, &i__1, &i__4, "Forced page break at page "\
- "num > npages!", (ftnlen)128, (ftnlen)39);
-#line 11014 ""
- stop1_();
-#line 11015 ""
- } else if (compage_1.nfpb > 1) {
-#line 11016 ""
- if (compage_1.ipagfpb[compage_1.nfpb] <=
- compage_1.ipagfpb[compage_1.nfpb - 1]) {
-#line 11017 ""
- i__1 = a1ll_2.iccount - 1;
-#line 11017 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11017 ""
- errmsg_(lineq, &i__1, &i__4, "Forced page break numb"\
- "ers must increase!", (ftnlen)128, (ftnlen)40);
-#line 11019 ""
- stop1_();
-#line 11020 ""
- }
-#line 11021 ""
- }
-#line 11022 ""
- }
-#line 11023 ""
- if (i_indx(" M", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 11024 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11024 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal character in"\
- " linebreak symbol!", (ftnlen)128, (ftnlen)38);
-#line 11026 ""
- stop1_();
-#line 11027 ""
- } else if (*(unsigned char *)durq == 'M') {
-#line 11028 ""
- ++compage_1.nmovbrk;
-#line 11029 ""
- compage_1.isysmb[compage_1.nmovbrk] = compage_1.isysflb[
- compage_1.nflb];
-#line 11030 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (ftnlen)
- 1);
-#line 11031 ""
-L31:
-#line 11031 ""
- if (*(unsigned char *)durq == '+') {
-
-/* Vertical spacing, read past number. */
-
-#line 11035 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 11036 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0)
- {
-#line 11037 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11037 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Integer requ"\
- "ired here!", (ftnlen)128, (ftnlen)22);
-#line 11039 ""
- stop1_();
-#line 11040 ""
- }
-#line 11041 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &fnum, (ftnlen)128,
- (ftnlen)1);
-#line 11042 ""
- goto L31;
-#line 11043 ""
- } else if (*(unsigned char *)durq == 'i') {
-
-/* Change indentation, */
-
-#line 11047 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 11048 ""
- if (i_indx(".123456789", durq, (ftnlen)10, (ftnlen)1) ==
- 0) {
-#line 11049 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11049 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Decimal numb"\
- "er required here!", (ftnlen)128, (ftnlen)29);
-#line 11051 ""
- stop1_();
-#line 11052 ""
- }
-
-/* fracsys was initialized in block data to all 0.'s */
-
-#line 11056 ""
- readnum_(lineq, &a1ll_2.iccount, durq, &compage_1.fracsys[
- compage_1.nmovbrk - 1], (ftnlen)128, (ftnlen)1);
-#line 11057 ""
- goto L31;
-#line 11058 ""
- } else if (*(unsigned char *)durq == 'c') {
-#line 11059 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 11060 ""
- goto L31;
-#line 11061 ""
- } else if (*(unsigned char *)durq == 'r') {
-#line 11062 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 11063 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 11064 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11064 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Must have"\
- " \"+\" or \"-\" after \"r\" as movement brea"\
- "k option!", (ftnlen)128, (ftnlen)56);
-#line 11066 ""
- stop1_();
-#line 11067 ""
- }
-#line 11068 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 11069 ""
- goto L31;
-#line 11070 ""
- } 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 11075 ""
- a1ll_2.nv = 0;
-#line 11076 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 11077 ""
- if (*(unsigned char *)durq == ':') {
-
-/* Signals a 2-digit number, get next two characters */
-
-#line 11081 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 11082 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)128, (
- ftnlen)1);
-#line 11083 ""
- if (i_indx("12", durq, (ftnlen)2, (ftnlen)1) == 0 ||
- i_indx("0123456789", dumq, (ftnlen)10, (
- ftnlen)1) == 0) {
-#line 11085 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-/* Writing concatenation */
-#line 11085 ""
- i__8[0] = 34, a__3[0] = "Illegal new number of i"\
- "nstruments ";
-#line 11085 ""
- i__8[1] = 1, a__3[1] = durq;
-#line 11085 ""
- i__8[2] = 1, a__3[2] = dumq;
-#line 11085 ""
- i__8[3] = 19, a__3[3] = " at movement break!";
-#line 11085 ""
- s_cat(ch__4, a__3, i__8, &c__4, (ftnlen)55);
-#line 11085 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, ch__4, (
- ftnlen)128, (ftnlen)55);
-#line 11088 ""
- stop1_();
-#line 11089 ""
- }
-#line 11090 ""
- i__1 = a1ll_2.iccount - 2;
-#line 11090 ""
- ici__1.icierr = 0;
-#line 11090 ""
- ici__1.iciend = 0;
-#line 11090 ""
- ici__1.icirnum = 1;
-#line 11090 ""
- ici__1.icirlen = a1ll_2.iccount - i__1;
-#line 11090 ""
- ici__1.iciunit = lineq + i__1;
-#line 11090 ""
- ici__1.icifmt = "(i2)";
-#line 11090 ""
- s_rsfi(&ici__1);
-#line 11090 ""
- do_fio(&c__1, (char *)&ninow, (ftnlen)sizeof(integer))
- ;
-#line 11090 ""
- e_rsfi();
-#line 11091 ""
- } else {
-
-/* durq is a single digit number for noinow */
-
-#line 11095 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) ==
- 0) {
-#line 11096 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-/* Writing concatenation */
-#line 11096 ""
- i__2[0] = 34, a__1[0] = "Illegal new number of i"\
- "nstruments ";
-#line 11096 ""
- i__2[1] = 1, a__1[1] = durq;
-#line 11096 ""
- i__2[2] = 19, a__1[2] = " at movement break!";
-#line 11096 ""
- s_cat(ch__5, a__1, i__2, &c__3, (ftnlen)54);
-#line 11096 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, ch__5, (
- ftnlen)128, (ftnlen)54);
-#line 11099 ""
- stop1_();
-#line 11100 ""
- }
-#line 11101 ""
- ninow = *(unsigned char *)durq - 48;
-#line 11102 ""
- }
-#line 11103 ""
- if (ninow > comkeys_1.noinst) {
-#line 11104 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11104 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "New number o"\
- "f instruments must be <= original!", (ftnlen)
- 128, (ftnlen)46);
-#line 11106 ""
- stop1_();
-#line 11107 ""
- }
-#line 11108 ""
- i__1 = ninow;
-#line 11108 ""
- for (iinow = 1; iinow <= i__1; ++iinow) {
-#line 11109 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 11110 ""
- if (*(unsigned char *)durq == ':') {
-
-/* Signals a 2-digit number */
-
-#line 11114 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)
- 128, (ftnlen)1);
-#line 11115 ""
- g1etchar_(lineq, &a1ll_2.iccount, dumq, (ftnlen)
- 128, (ftnlen)1);
-#line 11116 ""
- if (i_indx("12", durq, (ftnlen)2, (ftnlen)1) == 0
- || i_indx("0123456789", dumq, (ftnlen)10,
- (ftnlen)1) == 0) {
-#line 11118 ""
- i__4 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-/* Writing concatenation */
-#line 11118 ""
- i__8[0] = 34, a__3[0] = "Illegal 2-digit ins"\
- "trument number ";
-#line 11118 ""
- i__8[1] = 1, a__3[1] = durq;
-#line 11118 ""
- i__8[2] = 1, a__3[2] = dumq;
-#line 11118 ""
- i__8[3] = 19, a__3[3] = " at movement break!";
-#line 11118 ""
- s_cat(ch__4, a__3, i__8, &c__4, (ftnlen)55);
-#line 11118 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, ch__4,
- (ftnlen)128, (ftnlen)55);
-#line 11121 ""
- stop1_();
-#line 11122 ""
- }
-#line 11123 ""
- i__4 = a1ll_2.iccount - 2;
-#line 11123 ""
- ici__1.icierr = 0;
-#line 11123 ""
- ici__1.iciend = 0;
-#line 11123 ""
- ici__1.icirnum = 1;
-#line 11123 ""
- ici__1.icirlen = a1ll_2.iccount - i__4;
-#line 11123 ""
- ici__1.iciunit = lineq + i__4;
-#line 11123 ""
- ici__1.icifmt = "(i2)";
-#line 11123 ""
- s_rsfi(&ici__1);
-#line 11123 ""
- do_fio(&c__1, (char *)&iorig, (ftnlen)sizeof(
- integer));
-#line 11123 ""
- e_rsfi();
-#line 11124 ""
- } else {
-
-/* durq is a single digit number for iorig */
-
-#line 11128 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)
- 1) == 0) {
-#line 11129 ""
- i__4 = c1omnotes_1.ibarcnt -
- c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-/* Writing concatenation */
-#line 11129 ""
- i__2[0] = 26, a__1[0] = "Illegal instrument "\
- "number ";
-#line 11129 ""
- i__2[1] = 1, a__1[1] = durq;
-#line 11129 ""
- i__2[2] = 19, a__1[2] = " at movement break!";
-#line 11129 ""
- s_cat(ch__6, a__1, i__2, &c__3, (ftnlen)46);
-#line 11129 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, ch__6,
- (ftnlen)128, (ftnlen)46);
-#line 11132 ""
- stop1_();
-#line 11133 ""
- }
-#line 11134 ""
- iorig = *(unsigned char *)durq - 48;
-#line 11135 ""
- }
-#line 11136 ""
- if (iorig > comkeys_1.noinst) {
-#line 11137 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 11137 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__4, "New inst"\
- "rument number must be <= original noinst!"
- , (ftnlen)128, (ftnlen)49);
-#line 11139 ""
- stop1_();
-#line 11140 ""
- }
-#line 11141 ""
- a1ll_2.nv += c1omget_1.nsperi[iorig - 1];
-#line 11142 ""
-/* L63: */
-#line 11142 ""
- }
-#line 11143 ""
- i__1 = a1ll_2.nv;
-#line 11143 ""
- for (iiv = 1; iiv <= i__1; ++iiv) {
-
-/* Get clef names */
-
-#line 11147 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 11148 ""
- 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 11151 ""
- i__4 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff
- + a1ll_2.nbars + 1;
-#line 11151 ""
- 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 11153 ""
- stop1_();
-#line 11154 ""
- }
-
-/* Initialize new voices */
-
-#line 11158 ""
- c1ommvl_1.nvmx[iiv - 1] = 1;
-#line 11159 ""
- c1ommvl_1.ivmx[iiv - 1] = iiv;
-#line 11160 ""
- a1ll_2.itsofar[iiv - 1] = 0;
-#line 11161 ""
- a1ll_2.nnl[iiv - 1] = 0;
-#line 11162 ""
- for (j = 1; j <= 200; ++j) {
-#line 11163 ""
- a1ll_2.rest[iiv + j * 24 - 25] = FALSE_;
-#line 11164 ""
-/* L62: */
-#line 11164 ""
- }
-#line 11165 ""
-/* L61: */
-#line 11165 ""
- }
-
-/* Loop back up, this might not be last option in M */
-
-#line 11169 ""
- g1etchar_(lineq, &a1ll_2.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 11170 ""
- goto L31;
-#line 11171 ""
- } else if (*(unsigned char *)durq == 'S') {
-#line 11172 ""
- goto L49;
-#line 11173 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 11174 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11174 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Illegal characte"\
- "r after Movement break symbol!", (ftnlen)128, (
- ftnlen)46);
-#line 11176 ""
- stop1_();
-#line 11177 ""
- }
-#line 11178 ""
- if (compage_1.fracsys[compage_1.nmovbrk - 1] < .001f) {
-
-/* Since fracsys was not explicitly set, set it to prior value. */
-
-#line 11182 ""
- if (compage_1.nmovbrk == 1) {
-#line 11183 ""
- compage_1.fracsys[compage_1.nmovbrk - 1] =
- c1omget_1.fracindent;
-#line 11184 ""
- } else {
-#line 11185 ""
- compage_1.fracsys[compage_1.nmovbrk - 1] =
- compage_1.fracsys[compage_1.nmovbrk - 2];
-#line 11186 ""
- }
-#line 11187 ""
- }
-#line 11188 ""
- }
-
-/* Just before exiting if-block for forced line breaks, set counter to use when */
-/* dealing with vertical space calcs */
-
-#line 11193 ""
- compage_1.nistaff[compage_1.nflb] = a1ll_2.nv - 1;
-#line 11194 ""
- } else if (*(unsigned char *)charq == 'F') {
-#line 11195 ""
- compage_1.usefig = FALSE_;
-#line 11196 ""
- } else if (*(unsigned char *)charq == 'X') {
-#line 11197 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 11197 ""
- 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 11199 ""
- } else if (*(unsigned char *)charq == 'I') {
-
-/* MIDI settings. */
-
-#line 11203 ""
- if (c1ommvl_1.ivx != 1 || a1ll_2.nnl[0] != 0) {
-#line 11204 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11204 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "MIDI stuff only allo"\
- "wed at start of block!", (ftnlen)128, (ftnlen)42);
-#line 11206 ""
- stop1_();
-#line 11207 ""
- }
-#line 11208 ""
- if (a1ll_2.nv > 15) {
-#line 11209 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- a1ll_2.nbars + 1;
-#line 11209 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "Sorry but MIDI does "\
- "not work with more than 15 voices!", (ftnlen)128, (
- ftnlen)54);
-#line 11211 ""
- stop1_();
-#line 11212 ""
- }
-#line 11213 ""
- commidi_1.ismidi = TRUE_;
-#line 11214 ""
- getmidi_(&comkeys_1.noinst, lineq, &a1ll_2.iccount, &
- c1omnotes_1.ibarcnt, &c1omnotes_1.ibaroff, &a1ll_2.nbars,
- &a1ll_2.lenbar, &mtrdenl, &a1ll_2.nv, &c_true, (ftnlen)
- 128);
-#line 11216 ""
- } else if (*(unsigned char *)charq == 'M') {
-#line 11217 ""
- 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 11219 ""
- } else if (i_indx(",.", charq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Continued rhythmic shortcut */
-
-#line 11223 ""
- idotform = i_indx(". ,", charq, (ftnlen)3, (ftnlen)1);
-#line 11224 ""
- if (idotform == 1) {
-
-/* Change duration of prior note */
-
-#line 11228 ""
- a1ll_2.itsofar[c1ommvl_1.ivx - 1] -= a1ll_2.nodur[
- c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 -
- 25];
-#line 11229 ""
- 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 11230 ""
- a1ll_2.itsofar[c1ommvl_1.ivx - 1] += a1ll_2.nodur[
- c1ommvl_1.ivx + a1ll_2.nnl[c1ommvl_1.ivx - 1] * 24 -
- 25];
-#line 11231 ""
- }
-#line 11232 ""
- ++idotform;
-#line 11233 ""
- numnum = 1;
-#line 11234 ""
- cdot = TRUE_;
-#line 11235 ""
- goto L1;
-#line 11236 ""
- } else {
-#line 11237 ""
- s_wsle(&io___702);
-#line 11237 ""
- do_lio(&c__9, &c__1, "ASCII code:", (ftnlen)11);
-#line 11237 ""
- i__1 = *(unsigned char *)charq;
-#line 11237 ""
- do_lio(&c__3, &c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 11237 ""
- e_wsle();
-#line 11238 ""
- i__1 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff + a1ll_2.nbars +
- 1;
-#line 11238 ""
- errmsg_(lineq, &a1ll_2.iccount, &i__1, "This character is not al"\
- "lowed here!", (ftnlen)128, (ftnlen)35);
-#line 11240 ""
- s_wsle(&io___703);
-#line 11240 ""
- do_lio(&c__9, &c__1, "ASCII code:", (ftnlen)11);
-#line 11240 ""
- i__1 = *(unsigned char *)charq;
-#line 11240 ""
- do_lio(&c__3, &c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 11240 ""
- e_wsle();
-#line 11241 ""
- stop1_();
-#line 11242 ""
- }
-#line 11242 ""
- }
-#line 11243 ""
- return 0;
-} /* g1etnote_ */
-
-/* Subroutine */ int g1etset_(integer *nv, integer *noinst, integer *mtrnuml,
- integer *mtrdenl, integer *mtrnmp, integer *mtrdnp, real *xmtrnum0,
- integer *newkey, integer *npages, integer *nsyst, integer *musize,
- logical *bottreb)
-{
- /* System generated locals */
- address a__1[2], a__2[3];
- integer i__1, i__2[2], i__3[3];
- real r__1;
- char ch__1[3], ch__2[1], ch__3[50];
-
- /* Builtin functions */
- integer s_cmp(char *, char *, ftnlen, ftnlen), s_wsle(cilist *), do_lio(
- integer *, integer *, char *, ftnlen), e_wsle(void), i_nint(real *
- ), s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(
- void), i_indx(char *, char *, ftnlen, ftnlen);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
-
- /* Local variables */
- static integer i__, iv;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- extern /* Subroutine */ int stop1_(void);
- static char lineq[128];
- static integer lpath, iinst;
- extern doublereal readin_(char *, integer *, integer *, ftnlen);
- extern /* Subroutine */ int getbuf_(char *, ftnlen), errmsg_(char *,
- integer *, integer *, char *, ftnlen, ftnlen), printl_(char *,
- ftnlen);
- static logical newway;
- static integer iccount;
-
- /* Fortran I/O blocks */
- static cilist io___706 = { 0, 6, 0, 0, 0 };
- static cilist io___707 = { 0, 6, 0, "(1x,a46,i3)", 0 };
- static cilist io___708 = { 0, 6, 0, "(a)", 0 };
- static cilist io___711 = { 0, 6, 0, "(a)", 0 };
- static cilist io___712 = { 0, 6, 0, "(a)", 0 };
- static cilist io___713 = { 0, 6, 0, 0, 0 };
-
-
-
-/* Get the first line */
-
-#line 11261 ""
- iccount = 0;
-#line 11262 ""
- c1omget_1.nline = 1;
-#line 11263 ""
-L9:
-#line 11263 ""
- getbuf_(lineq, (ftnlen)128);
-#line 11264 ""
- if (*(unsigned char *)lineq == '%') {
-#line 11265 ""
- ++c1omget_1.nline;
-#line 11266 ""
- goto L9;
-#line 11267 ""
- }
-#line 11268 ""
- if (s_cmp(lineq, "---", (ftnlen)3, (ftnlen)3) == 0) {
-
-/* Have TeX input until next line that starts with '---' */
-
-#line 11272 ""
-L3:
-#line 11272 ""
- ++c1omget_1.nline;
-#line 11273 ""
- getbuf_(lineq, (ftnlen)128);
-#line 11274 ""
- if (inbuff_1.ilbuf > inbuff_1.nlbuf) {
-#line 11274 ""
- goto L1;
-#line 11274 ""
- }
-#line 11275 ""
- goto L2;
-#line 11276 ""
-L1:
-#line 11276 ""
- s_wsle(&io___706);
-#line 11276 ""
- do_lio(&c__9, &c__1, "You did not terminate type 0 TeX input with \""\
- "---\"", (ftnlen)49);
-#line 11276 ""
- e_wsle();
-#line 11277 ""
- stop1_();
-#line 11278 ""
-L2:
-#line 11279 ""
- if (s_cmp(lineq, "---", (ftnlen)3, (ftnlen)3) != 0) {
-#line 11279 ""
- goto L3;
-#line 11279 ""
- }
-
-/* Force a new line read on first call to readin */
-
-#line 11283 ""
- iccount = 128;
-#line 11284 ""
- }
-
-/* Here, lineq and nline are first non-TeX lines. */
-
-#line 11288 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11288 ""
- *nv = i_nint(&r__1);
-#line 11289 ""
- if (*nv > 24) {
-#line 11290 ""
- s_wsfe(&io___707);
-#line 11290 ""
- do_fio(&c__1, "In setup data, number of voices cannot exceed", (
- ftnlen)45);
-#line 11290 ""
- do_fio(&c__1, (char *)&c__24, (ftnlen)sizeof(integer));
-#line 11290 ""
- e_wsfe();
-#line 11292 ""
- stop1_();
-#line 11293 ""
- }
-#line 11294 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11294 ""
- *noinst = i_nint(&r__1);
-#line 11295 ""
- if (*noinst > *nv) {
-#line 11296 ""
- s_wsfe(&io___708);
-#line 11296 ""
- do_fio(&c__1, "In setup data, cannot have more instruments than stav"\
- "es", (ftnlen)55);
-#line 11296 ""
- e_wsfe();
-#line 11298 ""
- stop1_();
-#line 11299 ""
- }
-#line 11300 ""
- newway = *noinst <= 0;
-#line 11301 ""
- if (newway) {
-#line 11301 ""
- *noinst = -(*noinst);
-#line 11301 ""
- }
-#line 11302 ""
- i__1 = *noinst;
-#line 11302 ""
- for (iinst = 1; iinst <= i__1; ++iinst) {
-
-/* Seve # of staves per inst in case later drop some inst's. */
-
-#line 11306 ""
- if (newway) {
-#line 11307 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11307 ""
- c1omget_1.nsperi[iinst - 1] = i_nint(&r__1);
-#line 11308 ""
- } else if (iinst > 1) {
-#line 11309 ""
- c1omget_1.nsperi[iinst - 1] = 1;
-#line 11310 ""
- } else {
-#line 11311 ""
- c1omget_1.nsperi[iinst - 1] = *nv - *noinst + 1;
-#line 11312 ""
- }
-#line 11313 ""
-/* L10: */
-#line 11313 ""
- }
-#line 11314 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11314 ""
- *mtrnuml = i_nint(&r__1);
-#line 11315 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11315 ""
- *mtrdenl = i_nint(&r__1);
-/* c */
-/* c Kluge!!! */
-/* c */
-/* if (mtrdenl .eq. 1) then */
-/* mtrdenl = 2 */
-/* mtrnuml = mtrnuml*2 */
-/* end if */
-#line 11323 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11323 ""
- *mtrnmp = i_nint(&r__1);
-#line 11324 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11324 ""
- *mtrdnp = i_nint(&r__1);
-#line 11325 ""
- if (*mtrnmp == 0 && *mtrdnp >= 8) {
-#line 11326 ""
- s_wsfe(&io___711);
-#line 11326 ""
- do_fio(&c__1, "In setup data, with mtrnmp=0, mtrdnp must be <8", (
- ftnlen)47);
-#line 11326 ""
- e_wsfe();
-#line 11327 ""
- stop1_();
-#line 11328 ""
- }
-#line 11329 ""
- *xmtrnum0 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11330 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11330 ""
- *newkey = i_nint(&r__1);
-/* 130316 */
-/* do 11 iinst = 1 , noinst */
-#line 11333 ""
- commidisig_1.midisig = *newkey;
-/* 11 continue */
-#line 11335 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11335 ""
- *npages = i_nint(&r__1);
-#line 11336 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11336 ""
- *nsyst = i_nint(&r__1);
-#line 11337 ""
- r__1 = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)128);
-#line 11337 ""
- *musize = i_nint(&r__1);
-#line 11338 ""
- c1omget_1.fracindent = readin_(lineq, &iccount, &c1omget_1.nline, (ftnlen)
- 128);
-#line 11339 ""
- if (c1omget_1.fracindent >= 1.f) {
-#line 11340 ""
- s_wsfe(&io___712);
-#line 11340 ""
- do_fio(&c__1, "In setup data, fracindent must be <1", (ftnlen)36);
-#line 11340 ""
- e_wsfe();
-#line 11341 ""
- stop1_();
-#line 11342 ""
- }
-#line 11343 ""
- if (*npages > *nsyst) {
-#line 11344 ""
- s_wsle(&io___713);
-#line 11344 ""
- do_lio(&c__9, &c__1, "Error in input file: npages > nsyst", (ftnlen)
- 35);
-#line 11344 ""
- e_wsle();
-#line 11345 ""
- stop1_();
-#line 11346 ""
- } else if ((*musize - 16) * (*musize - 20) * (*musize - 24) * (*musize -
- 29) != 0) {
-#line 11347 ""
- printl_("Musicsize must be 16, 20, 24, or 29", (ftnlen)35);
-#line 11348 ""
- stop1_();
-#line 11349 ""
- }
-
-/* Next noinst non-comment lines are names of instruments. */
-
-#line 11353 ""
- i__1 = abs(*noinst);
-#line 11353 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 11354 ""
-L5:
-#line 11354 ""
- getbuf_(lineq, (ftnlen)128);
-#line 11355 ""
- ++c1omget_1.nline;
-#line 11356 ""
- if (*(unsigned char *)lineq == '%') {
-#line 11356 ""
- goto L5;
-#line 11356 ""
- }
-#line 11357 ""
-/* L4: */
-#line 11357 ""
- }
-
-/* Mext non-comment line has nv clef names */
-
-#line 11361 ""
-L6:
-#line 11361 ""
- getbuf_(lineq, (ftnlen)128);
-#line 11362 ""
- ++c1omget_1.nline;
-#line 11363 ""
- if (*(unsigned char *)lineq == '%') {
-#line 11363 ""
- goto L6;
-#line 11363 ""
- }
-#line 11364 ""
- i__1 = *nv;
-#line 11364 ""
- for (iv = 1; iv <= i__1; ++iv) {
-/* if (index('brnamstf01234567',lineq(iv:iv)) .eq. 0) then */
-#line 11366 ""
- if (i_indx("brnamstf012345678", lineq + (iv - 1), (ftnlen)17, (ftnlen)
- 1) == 0) {
-#line 11367 ""
- errmsg_(lineq, &iv, &c__0, "There should be a clef symbol here!",
- (ftnlen)128, (ftnlen)35);
-#line 11369 ""
- stop1_();
-#line 11370 ""
- }
-#line 11371 ""
-/* L7: */
-#line 11371 ""
- }
-#line 11372 ""
- i__1 = *nv;
-#line 11372 ""
- if (s_cmp(lineq + i__1, " ", *nv + 1 - i__1, (ftnlen)1) != 0) {
-#line 11373 ""
- i__1 = *nv + 1;
-#line 11373 ""
- errmsg_(lineq, &i__1, &c__0, "There should be a blank here!", (ftnlen)
- 128, (ftnlen)29);
-#line 11375 ""
- stop1_();
-#line 11376 ""
- }
-
-/* Set flag if voice 1 is treble, since it affects vertical spacing */
-
-/* bottreb = lineq(1:1).eq.'t' */
-#line 11381 ""
- *bottreb = i_indx("t08", lineq, (ftnlen)3, (ftnlen)1) > 0;
-
-/* Next non-comment line has path name */
-
-#line 11385 ""
-L8:
-#line 11385 ""
- getbuf_(lineq, (ftnlen)128);
-#line 11386 ""
- ++c1omget_1.nline;
-#line 11387 ""
- if (*(unsigned char *)lineq == '%') {
-#line 11387 ""
- goto L8;
-#line 11387 ""
- }
-#line 11388 ""
- lpath = i_indx(lineq, " ", (ftnlen)128, (ftnlen)1) - 1;
-/* Writing concatenation */
-#line 11389 ""
- i__2[0] = 2, a__1[0] = "/:";
-#line 11389 ""
- chax_(ch__2, (ftnlen)1, &c__92);
-#line 11389 ""
- i__2[1] = 1, a__1[1] = ch__2;
-#line 11389 ""
- s_cat(ch__1, a__1, i__2, &c__2, (ftnlen)3);
-#line 11389 ""
- if (i_indx(ch__1, lineq + (lpath - 1), (ftnlen)3, (ftnlen)1) == 0) {
-/* Writing concatenation */
-#line 11390 ""
- i__3[0] = 47, a__2[0] = "Last character of pathname is not \"/\",\""\
- ":\", or \"";
-#line 11390 ""
- chax_(ch__2, (ftnlen)1, &c__92);
-#line 11390 ""
- i__3[1] = 1, a__2[1] = ch__2;
-#line 11390 ""
- i__3[2] = 2, a__2[2] = "\"!";
-#line 11390 ""
- s_cat(ch__3, a__2, i__3, &c__3, (ftnlen)50);
-#line 11390 ""
- errmsg_(lineq, &lpath, &c__0, ch__3, (ftnlen)128, (ftnlen)50);
-#line 11393 ""
- stop1_();
-#line 11394 ""
- }
-#line 11395 ""
- return 0;
-} /* g1etset_ */
-
-/* Subroutine */ int g1etx_(char *lineq, integer *iccount, logical *shifton,
- integer *ibar, real *udsp, real *wheadpt, ftnlen lineq_len)
-{
- /* System generated locals */
- integer i__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static real fnum;
- static char dumq[1];
- extern /* Subroutine */ int stop1_(void);
- static char charq[1];
- static integer ipbsc, npbsc;
- static logical number;
- extern /* Subroutine */ int errmsg_(char *, integer *, integer *, char *,
- ftnlen, ftnlen), readnum_(char *, integer *, char *, real *,
- ftnlen, ftnlen), g1etchar_(char *, integer *, char *, ftnlen,
- ftnlen);
-
-
-/* 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 11405 ""
- number = FALSE_;
-#line 11406 ""
- npbsc = 0;
-#line 11407 ""
-L1:
-#line 11407 ""
- g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 11408 ""
- if (i_indx("PBS:", charq, (ftnlen)4, (ftnlen)1) > 0) {
-
-/* Continue checking here even if "P". */
-
-#line 11412 ""
- ipbsc = i_indx("PBS:", charq, (ftnlen)4, (ftnlen)1);
-#line 11413 ""
- if (bit_test(npbsc,ipbsc)) {
-#line 11414 ""
- errmsg_(lineq, iccount, ibar, "Only one allowed per symbol!", (
- ftnlen)128, (ftnlen)28);
-#line 11415 ""
- stop1_();
-#line 11416 ""
- }
-#line 11417 ""
- npbsc = bit_set(npbsc,ipbsc);
-#line 11418 ""
- goto L1;
-#line 11419 ""
- } else if (i_indx("+-.0123456789", charq, (ftnlen)13, (ftnlen)1) > 0) {
-#line 11420 ""
- number = TRUE_;
-#line 11421 ""
- if (i_indx("+-", charq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 11422 ""
- g1etchar_(lineq, iccount, dumq, (ftnlen)128, (ftnlen)1);
-#line 11423 ""
- if (i_indx(".0123456789", dumq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 11424 ""
- errmsg_(lineq, iccount, ibar, "Expected a number here!", (
- ftnlen)128, (ftnlen)23);
-#line 11425 ""
- stop1_();
-#line 11426 ""
- }
-#line 11427 ""
- }
-#line 11428 ""
- readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 11429 ""
- if (*(unsigned char *)charq == '-') {
-#line 11429 ""
- fnum = -fnum;
-#line 11429 ""
- }
-#line 11430 ""
- if (*(unsigned char *)dumq != 'p') {
-#line 11431 ""
- --(*iccount);
-#line 11432 ""
- fnum *= *wheadpt;
-#line 11433 ""
- }
-#line 11434 ""
- goto L1;
-#line 11435 ""
- } else if (*(unsigned char *)charq != ' ') {
-#line 11436 ""
- errmsg_(lineq, iccount, ibar, "Not allowed in \"X\" symbol!", (ftnlen)
- 128, (ftnlen)26);
-#line 11437 ""
- stop1_();
-#line 11438 ""
- }
-
-/* Done with parsing. Other checks */
-
-#line 11442 ""
- if ((6 & npbsc) == 6 || (24 & npbsc) == 24) {
-#line 11443 ""
- i__1 = *iccount - 1;
-#line 11443 ""
- errmsg_(lineq, &i__1, ibar, "Cannot have both \"P\" and \"B\" or \""\
- "S\" and \":\"!", (ftnlen)128, (ftnlen)44);
-#line 11445 ""
- stop1_();
-#line 11446 ""
- }
-#line 11447 ""
- if (bit_test(npbsc,4)) {
-#line 11448 ""
- if (number) {
-#line 11449 ""
- if (*shifton) {
-#line 11450 ""
- i__1 = *iccount - 1;
-#line 11450 ""
- errmsg_(lineq, &i__1, ibar, "Started a group shift without s"\
- "topping prior one!", (ftnlen)128, (ftnlen)49);
-#line 11452 ""
- stop1_();
-#line 11453 ""
- } else {
-#line 11454 ""
- *shifton = TRUE_;
-#line 11455 ""
- }
-#line 11456 ""
- } else {
-#line 11457 ""
- if (! (*shifton)) {
-#line 11458 ""
- i__1 = *iccount - 1;
-#line 11458 ""
- errmsg_(lineq, &i__1, ibar, "Ended a group shift without sta"\
- "rting one!", (ftnlen)128, (ftnlen)41);
-#line 11460 ""
- stop1_();
-#line 11461 ""
- } else {
-#line 11462 ""
- *shifton = FALSE_;
-#line 11463 ""
- }
-#line 11464 ""
- }
-#line 11465 ""
- }
-
-/* P off, S off, c off => normal user-defined space. Add to udsp (later fsyst) */
-
-#line 11469 ""
- if ((npbsc & 26) == 0) {
-#line 11469 ""
- *udsp += fnum;
-#line 11469 ""
- }
-#line 11470 ""
- if (! number && ! bit_test(npbsc,4)) {
-#line 11471 ""
- i__1 = *iccount - 1;
-#line 11471 ""
- errmsg_(lineq, &i__1, ibar, "Must have either a number or a colon "\
- "in \"X\" symbol!", (ftnlen)128, (ftnlen)51);
-#line 11473 ""
- stop1_();
-#line 11474 ""
- }
-#line 11475 ""
- return 0;
-} /* g1etx_ */
-
-/* integer*4 function mytime() */
-/* CHARACTER(10) tq */
-/* CALL DATE_AND_TIME(TIME=tq) */
-/* read(tq,'(2i2,f6.3)')ih,im,ts */
-/* mytime = 1000*(ts+60*(im+60*ih)) */
-/* return */
-/* end */
-/* Subroutine */ int getbuf_(char *lineq, ftnlen lineq_len)
-{
- /* System generated locals */
- integer i__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
-#line 11490 ""
- i__1 = inbuff_1.ipbuf;
-#line 11490 ""
- s_copy(lineq, inbuff_1.bufq + i__1, lineq_len, inbuff_1.ipbuf +
- inbuff_1.lbuf[inbuff_1.ilbuf - 1] - i__1);
-#line 11491 ""
- inbuff_1.ipbuf += inbuff_1.lbuf[inbuff_1.ilbuf - 1];
-#line 11492 ""
- ++inbuff_1.ilbuf;
-#line 11493 ""
- return 0;
-} /* getbuf_ */
-
-/* Subroutine */ int getchar_(char *lineq, integer *iccount, char *charq,
- ftnlen lineq_len, ftnlen charq_len)
-{
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static integer ndxm;
- extern /* Subroutine */ int mrec1_(char *, integer *, integer *, ftnlen),
- read10_(char *, logical *, ftnlen);
-
-
-/* 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 11509 ""
- if (*iccount == 128) {
-#line 11510 ""
- read10_(lineq, &comget_1.lastchar, (ftnlen)128);
-#line 11511 ""
- if (comget_1.lastchar) {
-#line 11511 ""
- return 0;
-#line 11511 ""
- }
-#line 11512 ""
- if (! commac_1.endmac) {
-#line 11513 ""
- *iccount = 0;
-#line 11514 ""
- } else {
-#line 11515 ""
- commac_1.endmac = FALSE_;
-#line 11516 ""
- *iccount = commac_1.icchold;
-#line 11517 ""
- s_copy(lineq, commac_1.lnholdq, (ftnlen)128, (ftnlen)128);
-#line 11518 ""
- }
-#line 11519 ""
- if (commac_1.mrecord) {
-#line 11520 ""
- mrec1_(lineq, iccount, &ndxm, (ftnlen)128);
-#line 11521 ""
- }
-#line 11522 ""
- }
-#line 11523 ""
- ++(*iccount);
-#line 11524 ""
- *(unsigned char *)charq = *(unsigned char *)&lineq[*iccount - 1];
-#line 11525 ""
- return 0;
-} /* getchar_ */
-
-/* Subroutine */ int getdyn_(integer *ivx, integer *ip, integer *irest,
- integer *iornq, char *lineq, integer *iccount, ftnlen lineq_len)
-{
- /* System generated locals */
- address a__1[3];
- integer i__1, i__2[3], i__3;
- real r__1;
- char ch__1[4], ch__2[1];
- icilist ici__1;
-
- /* Builtin functions */
- integer s_cmp(char *, char *, ftnlen, ftnlen), i_indx(char *, char *,
- ftnlen, ftnlen);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen), s_cat(char *,
- char **, integer *, integer *, ftnlen);
- integer s_rsfi(icilist *), do_fio(integer *, char *, ftnlen), e_rsfi(void)
- , i_nint(real *);
-
- /* Local variables */
- static integer iccountt, ipm, iend;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer idno, idyn;
- static real fnum;
- static char durq[1];
- static integer idno1;
- extern /* Subroutine */ int stop1_(void), printl_(char *, ftnlen),
- readnum_(char *, integer *, char *, real *, ftnlen, ftnlen),
- setbits_(integer *, integer *, integer *, integer *);
- static char dynsymq[4];
-
-
-/* Get info for dynamic mark. Enter after getting "D", iccount sits on "D" */
-/* Bits in idyndat are as follows */
-/* 00-03 ivx */
-/* 04-11 ip */
-/* 12-15 code for type of mark */
-/* 0 => arbitrary text */
-/* 1-12 => pppp,ppp,pp,p,mp,mf,f,fp,sfz,ff,fff,ffff */
-/* If (.not. fontslur) */
-/* 13 => hairpin start, 14,15 => <,> (ending) */
-/* else */
-/* 13 < start, 14 > start, 15 ending */
-/* end if */
-/* 16 flag for vertical offset */
-/* 17-23 vertical offset + 64 , \internote */
-/* 31 Hairpin start (0), stop (1) */
-
-/* idynda2 */
-
-/* 00 flag for horizontal offset */
-/* 01-09 (horizontal offset)/10 + 25.6 notehead widths */
-/* 10 5th bit for ivx (5/15/10) */
-
-#line 11562 ""
- *irest = bit_set(*irest,26);
-#line 11563 ""
- ++comdyn_1.ndyn;
-#line 11564 ""
- idyn = *ivx;
-#line 11565 ""
- comdyn_1.idynda2[comdyn_1.ndyn - 1] = 0;
-#line 11566 ""
- if (*ivx >= 16) {
-#line 11566 ""
- setbits_(&comdyn_1.idynda2[comdyn_1.ndyn - 1], &c__1, &c__10, &c__1);
-#line 11566 ""
- }
-#line 11567 ""
- setbits_(&idyn, &c__8, &c__4, ip);
-#line 11568 ""
- i__1 = *iccount;
-#line 11568 ""
- if (s_cmp(lineq + i__1, "\"", *iccount + 1 - i__1, (ftnlen)1) == 0) {
-
-/* text-dynamic */
-
-#line 11572 ""
- ++comdyn_1.ntxtdyn;
-#line 11573 ""
- iccountt = *iccount;
-#line 11574 ""
-L3:
-#line 11575 ""
- i__1 = iccountt + 1;
-#line 11575 ""
- iend = iccountt + i_indx(lineq + i__1, "\"", 128 - i__1, (ftnlen)1) +
- 2;
-#line 11576 ""
- i__1 = iend - 3;
-#line 11576 ""
- if (s_cmp(lineq + i__1, "\\", iend - 2 - i__1, (ftnlen)1) == 0) {
-#line 11577 ""
- iccountt = iend - 2;
-#line 11578 ""
- goto L3;
-#line 11579 ""
- }
-#line 11580 ""
- i__1 = *iccount + 1;
-#line 11580 ""
- s_copy(comdyn_1.txtdynq + (comdyn_1.ntxtdyn - 1 << 7), lineq + i__1, (
- ftnlen)128, iend - 2 - i__1);
-
-/* Store ivx, ip in bits 0-12 */
-
-#line 11584 ""
- comdyn_1.ivxiptxt[comdyn_1.ntxtdyn - 1] = *ivx + (*ip << 5);
-#line 11585 ""
- ipm = i_indx("- +", lineq + (iend - 1), (ftnlen)3, (ftnlen)1);
-#line 11586 ""
- idno = 0;
-#line 11587 ""
- } else {
-
-/* Word-group or hairpin */
-
-#line 11591 ""
- for (iend = *iccount + 2; iend <= 128; ++iend) {
-#line 11592 ""
- ipm = i_indx("- +", lineq + (iend - 1), (ftnlen)3, (ftnlen)1);
-
-/* Exit the loop at first blank, "+", or "-" */
-
-#line 11596 ""
- if (ipm > 0) {
-#line 11596 ""
- goto L2;
-#line 11596 ""
- }
-#line 11597 ""
-/* L1: */
-#line 11597 ""
- }
-#line 11598 ""
-L2:
-#line 11599 ""
- i__1 = *iccount;
-#line 11599 ""
- ici__1.icierr = 0;
-#line 11599 ""
- ici__1.iciend = 0;
-#line 11599 ""
- ici__1.icirnum = 1;
-#line 11599 ""
- ici__1.icirlen = iend - 1 - i__1;
-#line 11599 ""
- ici__1.iciunit = lineq + i__1;
-/* Writing concatenation */
-#line 11599 ""
- i__2[0] = 2, a__1[0] = "(a";
-#line 11599 ""
- i__3 = iend + 47 - *iccount;
-#line 11599 ""
- chax_(ch__2, (ftnlen)1, &i__3);
-#line 11599 ""
- i__2[1] = 1, a__1[1] = ch__2;
-#line 11599 ""
- i__2[2] = 1, a__1[2] = ")";
-#line 11599 ""
- ici__1.icifmt = (s_cat(ch__1, a__1, i__2, &c__3, (ftnlen)4), ch__1);
-#line 11599 ""
- s_rsfi(&ici__1);
-#line 11599 ""
- do_fio(&c__1, dynsymq, (ftnlen)4);
-#line 11599 ""
- e_rsfi();
-#line 11601 ""
- 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 11607 ""
- idno1 = idno;
-#line 11608 ""
- }
-
-/* Set flag to check level later if in beam */
-
-#line 11612 ""
- *iornq = bit_set(*iornq,23);
-#line 11613 ""
- if (idno >= 14) {
-
-/* Hairpin here. Check if opposite type from one that's already on */
-
-#line 11617 ""
- if (idno == 14 && bit_test(comdyn_1.listdecresc,*ivx) || idno == 15 &&
- bit_test(comdyn_1.listcresc,*ivx)) {
-#line 11619 ""
- printl_(" ", (ftnlen)1);
-#line 11620 ""
- printl_("Started one kind of hairpin while other is on", (ftnlen)
- 45);
-#line 11621 ""
- stop1_();
-#line 11622 ""
- }
-
-/* Start or stop? */
-
-#line 11626 ""
- 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 11630 ""
- if (! comslur_1.fontslur) {
-#line 11630 ""
- idno = 15;
-#line 11630 ""
- }
-#line 11631 ""
- } else if (comslur_1.fontslur) {
-
-/* Start of font slur */
-
-#line 11635 ""
- idno = 13;
-#line 11636 ""
- } else {
-
-/* Start of postscript slur */
-
-#line 11640 ""
- --idno;
-#line 11641 ""
- }
-#line 11642 ""
- }
-
-/* Now that we used list[de]cresc, update */
-
-#line 11646 ""
- if (idno >= 13) {
-#line 11647 ""
- if (idno == 15 || comslur_1.fontslur && idno == 14) {
-
-/* Something's ending */
-
-#line 11651 ""
- if (bit_test(comdyn_1.listcresc,*ivx)) {
-
-/* It's a cresc! */
-
-#line 11655 ""
- comdyn_1.listcresc = bit_clear(comdyn_1.listcresc,*ivx);
-#line 11656 ""
- } else {
-#line 11657 ""
- comdyn_1.listdecresc = bit_clear(comdyn_1.listdecresc,*ivx);
-#line 11658 ""
- }
-#line 11659 ""
- } else {
-
-/* Something's starting */
-
-#line 11663 ""
- if (idno1 == 14) {
-
-/* It's a cresc! */
-
-#line 11667 ""
- comdyn_1.listcresc = bit_set(comdyn_1.listcresc,*ivx);
-#line 11668 ""
- } else {
-#line 11669 ""
- comdyn_1.listdecresc = bit_set(comdyn_1.listdecresc,*ivx);
-#line 11670 ""
- }
-#line 11671 ""
- }
-#line 11672 ""
- }
-#line 11673 ""
- setbits_(&idyn, &c__4, &c__12, &idno);
-#line 11674 ""
- *iccount = iend;
-#line 11675 ""
- if (ipm != 2) {
-
-/* There is a vertical shift */
-
-#line 11679 ""
- idyn = bit_set(idyn,16);
-#line 11680 ""
- ++(*iccount);
-#line 11681 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 11682 ""
- idno = i_nint(&fnum);
-#line 11683 ""
- i__1 = (ipm - 2) * idno + 64;
-#line 11683 ""
- setbits_(&idyn, &c__7, &c__17, &i__1);
-#line 11684 ""
- ipm = i_indx("- +", durq, (ftnlen)3, (ftnlen)1);
-#line 11685 ""
- if (ipm != 2) {
-
-/* There is a horizontal shift */
-
-/* idynda2(ndyn) = ibset(idyn,23) */
-#line 11690 ""
- comdyn_1.idynda2[comdyn_1.ndyn - 1] = bit_set(comdyn_1.idynda2[
- comdyn_1.ndyn - 1],0);
-#line 11691 ""
- ++(*iccount);
-#line 11692 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 11693 ""
- r__1 = fnum * 10;
-#line 11693 ""
- idno = i_nint(&r__1);
-#line 11694 ""
- i__1 = (ipm - 2) * idno + 256;
-#line 11694 ""
- setbits_(&comdyn_1.idynda2[comdyn_1.ndyn - 1], &c__9, &c__1, &
- i__1);
-#line 11695 ""
- }
-
-/* iccount should be on the blank at the end of the entire symbol */
-
-#line 11699 ""
- }
-#line 11700 ""
- comdyn_1.idyndat[comdyn_1.ndyn - 1] = idyn;
-#line 11701 ""
- return 0;
-} /* getdyn_ */
-
-/* Subroutine */ int getfig_(integer *itoff, char *charq, char *lineq,
- integer *iccount, logical *isfig, integer *itfig, integer *itsofar,
- integer *nodur, char *figq, integer *ivupfig, integer *ivvfig,
- integer *nfigs, ftnlen charq_len, ftnlen lineq_len, ftnlen figq_len)
-{
- /* System generated locals */
- address a__1[2];
- integer i__1[2];
- icilist ici__1;
-
- /* Builtin functions */
- integer s_rsfi(icilist *), do_fio(integer *, char *, ftnlen), e_rsfi(void)
- ;
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer i_indx(char *, char *, ftnlen, ftnlen);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer i_nint(real *);
-
- /* Local variables */
- static integer lfig, loff, noff;
- static real fnum;
- static integer isign;
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen), readnum_(char *, integer *, char *, real *, ftnlen,
- ftnlen);
- extern integer ifnodur_(integer *, char *, ftnlen);
-
-/* * itsofar,nodur,figq,ivupfig,nfigs) */
-#line 11710 ""
- ++(*nfigs);
-#line 11711 ""
- *ivupfig = 0;
-#line 11712 ""
- *ivvfig = 0;
-#line 11713 ""
- *itoff = 0;
-#line 11714 ""
- if (*(unsigned char *)charq == 'x') {
-
-/* Floating figure. */
-
-#line 11718 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 11719 ""
- ici__1.icierr = 0;
-#line 11719 ""
- ici__1.iciend = 0;
-#line 11719 ""
- ici__1.icirnum = 1;
-#line 11719 ""
- ici__1.icirlen = 1;
-#line 11719 ""
- ici__1.iciunit = charq;
-#line 11719 ""
- ici__1.icifmt = "(i1)";
-#line 11719 ""
- s_rsfi(&ici__1);
-#line 11719 ""
- do_fio(&c__1, (char *)&noff, (ftnlen)sizeof(integer));
-#line 11719 ""
- e_rsfi();
-#line 11720 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 11721 ""
- ici__1.icierr = 0;
-#line 11721 ""
- ici__1.iciend = 0;
-#line 11721 ""
- ici__1.icirnum = 1;
-#line 11721 ""
- ici__1.icirlen = 1;
-#line 11721 ""
- ici__1.iciunit = charq;
-#line 11721 ""
- ici__1.icifmt = "(i1)";
-#line 11721 ""
- s_rsfi(&ici__1);
-#line 11721 ""
- do_fio(&c__1, (char *)&loff, (ftnlen)sizeof(integer));
-#line 11721 ""
- e_rsfi();
-#line 11722 ""
- *itoff = noff * ifnodur_(&loff, "x", (ftnlen)1);
-#line 11723 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 11724 ""
- } else {
-
-/* Figure on a note */
-
-#line 11728 ""
- *isfig = TRUE_;
-#line 11729 ""
- }
-#line 11730 ""
- *itfig = *itsofar + *itoff - *nodur;
-#line 11731 ""
- lfig = 1;
-#line 11732 ""
- s_copy(figq, charq, (ftnlen)10, (ftnlen)1);
-#line 11733 ""
-L5:
-#line 11733 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-/* if (index(' +',charq) .eq. 0) then */
-#line 11735 ""
- if (i_indx(" +v", charq, (ftnlen)3, (ftnlen)1) == 0) {
-/* Writing concatenation */
-#line 11736 ""
- i__1[0] = lfig, a__1[0] = figq;
-#line 11736 ""
- i__1[1] = 1, a__1[1] = charq;
-#line 11736 ""
- s_cat(figq, a__1, i__1, &c__2, (ftnlen)10);
-#line 11737 ""
- ++lfig;
-#line 11738 ""
- goto L5;
-#line 11739 ""
- } else if (*(unsigned char *)charq == '+') {
-
-/* Get vertical offset for figure. Next character after number has to be blank. */
-
-#line 11743 ""
- ++(*iccount);
-#line 11744 ""
- readnum_(lineq, iccount, charq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 11745 ""
- *ivupfig = i_nint(&fnum);
-#line 11746 ""
- } else if (*(unsigned char *)charq == 'v') {
-
-/* Get vertical change in figdrop. Must be last item in figure word. */
-
-#line 11750 ""
- isign = 1;
-#line 11751 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 11752 ""
- if (*(unsigned char *)charq == '-') {
-#line 11753 ""
- isign = -1;
-#line 11754 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 11755 ""
- }
-#line 11756 ""
- *ivvfig = isign * (*(unsigned char *)charq - 48);
-#line 11757 ""
- }
-#line 11758 ""
- return 0;
-} /* getfig_ */
-
-/* Subroutine */ int getgrace_(integer *ivx, integer *nnl, char *lineq,
- integer *iccount, integer *islur, integer *iornq, integer *ipl,
- integer *ndlev, integer *lastlev, integer *iv, integer *nv, ftnlen
- lineq_len)
-{
- /* System generated locals */
- integer i__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), i_nint(real *);
-
- /* Local variables */
- static integer iclastlev, kv, ing, ioct;
- static real fnum;
- static char durq[1], charq[1];
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen), readnum_(char *, integer *, char *, real *, ftnlen,
- ftnlen);
- extern integer ifnolev_(char *, integer *, integer *, ftnlen);
-
-
-/* Grace, comes *before* main note: */
-/* UNLESS there's an 'A' or 'W' after the 'G' */
-/* ngrace = # of grace note groups so far in block */
-/* ivg(ngrace), ipg(ngrace) */
-/* nng(ngrace) = # of notes in this group: default = 1 */
-/* ngstrt(ngrace) = starting position in nolevg of levels for this grace */
-/* multg(ngrace) = multiplicity: default = 1; input as 'm(digit)' */
-/* upg(ngrace) = logical for beam or stem dirn: default T, input'u,l' */
-/* slurg(ngrace) = logical for slur; default F, input 's' */
-/* slashg(ngrace) = T if slash; default is F, input 'x' */
-/* These data MUST precede note name of first note */
-/* nolevg, naccg: lists of levels and accid's, indexed as described above. */
-
-#line 11792 ""
- /* Parameter adjustments */
-#line 11792 ""
- ndlev -= 25;
-#line 11792 ""
- ipl -= 25;
-#line 11792 ""
- --iornq;
-#line 11792 ""
- islur -= 25;
-#line 11792 ""
- --nnl;
-#line 11792 ""
-
-#line 11792 ""
- /* Function Body */
-#line 11792 ""
- ++comgrace_1.ngrace;
-#line 11793 ""
- comgrace_1.ivg[comgrace_1.ngrace - 1] = *ivx;
-#line 11794 ""
- comgrace_1.ipg[comgrace_1.ngrace - 1] = nnl[*ivx] + 1;
-#line 11795 ""
- if (comgrace_1.ngrace == 1) {
-#line 11796 ""
- comgrace_1.ngstrt[comgrace_1.ngrace - 1] = 1;
-#line 11797 ""
- } else {
-#line 11798 ""
- comgrace_1.ngstrt[comgrace_1.ngrace - 1] = comgrace_1.ngstrt[
- comgrace_1.ngrace - 2] + comgrace_1.nng[comgrace_1.ngrace - 2]
- ;
-#line 11799 ""
- }
-#line 11800 ""
- islur[*ivx + (nnl[*ivx] + 1) * 24] = bit_set(islur[*ivx + (nnl[*ivx] + 1)
- * 24],4);
-#line 11801 ""
- comgrace_1.nng[comgrace_1.ngrace - 1] = 1;
-#line 11802 ""
- comgrace_1.multg[comgrace_1.ngrace - 1] = 1;
-#line 11803 ""
- comgrace_1.upg[comgrace_1.ngrace - 1] = TRUE_;
-#line 11804 ""
- comgrace_1.slurg[comgrace_1.ngrace - 1] = FALSE_;
-#line 11805 ""
- comgrace_1.slashg[comgrace_1.ngrace - 1] = FALSE_;
-#line 11806 ""
-L18:
-#line 11806 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 11807 ""
- 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 11812 ""
- comgrace_1.ipg[comgrace_1.ngrace - 1] = nnl[*ivx];
-#line 11813 ""
- islur[*ivx + (nnl[*ivx] + 1) * 24] = bit_clear(islur[*ivx + (nnl[*ivx]
- + 1) * 24],4);
-#line 11814 ""
- islur[*ivx + nnl[*ivx] * 24] = bit_set(islur[*ivx + nnl[*ivx] * 24],4)
- ;
-#line 11815 ""
- if (comgrace_1.slurg[comgrace_1.ngrace - 1]) {
-#line 11815 ""
- iornq[*ivx + nnl[*ivx] * 24] = bit_set(iornq[*ivx + nnl[*ivx] *
- 24],24);
-#line 11815 ""
- }
-#line 11817 ""
- if (*(unsigned char *)charq == 'A') {
-
-/* close After, clear way-after bit, to ensure priority of most recent A/W */
-
-#line 11821 ""
- ipl[*ivx + nnl[*ivx] * 24] = bit_set(bit_clear(ipl[*ivx + nnl[*
- ivx] * 24],31),29);
-#line 11822 ""
- } else {
-
-/* Way after; later assign to following note, and position like normal grace. */
-
-#line 11826 ""
- ipl[*ivx + nnl[*ivx] * 24] = bit_set(bit_clear(ipl[*ivx + nnl[*
- ivx] * 24],29),31);
-#line 11827 ""
- }
-#line 11828 ""
- } else if (*(unsigned char *)charq == 'm') {
-#line 11829 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 11830 ""
- comgrace_1.multg[comgrace_1.ngrace - 1] = *(unsigned char *)charq -
- 48;
-#line 11831 ""
- } else if (i_indx("123456789", charq, (ftnlen)9, (ftnlen)1) > 0) {
-#line 11832 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 11833 ""
- --(*iccount);
-#line 11834 ""
- comgrace_1.nng[comgrace_1.ngrace - 1] = i_nint(&fnum);
-#line 11835 ""
- } else if (*(unsigned char *)charq == 'l') {
-#line 11836 ""
- comgrace_1.upg[comgrace_1.ngrace - 1] = FALSE_;
-#line 11837 ""
- } else if (*(unsigned char *)charq == 's') {
-#line 11838 ""
- comgrace_1.slurg[comgrace_1.ngrace - 1] = TRUE_;
-#line 11839 ""
- if (nnl[*ivx] > 0) {
-
-/* If A- or W-grace, set signal to start slur on main note. */
-
-#line 11843 ""
- if (bit_test(ipl[*ivx + nnl[*ivx] * 24],31) || bit_test(ipl[*ivx
- + nnl[*ivx] * 24],29)) {
-#line 11843 ""
- iornq[*ivx + nnl[*ivx] * 24] = bit_set(iornq[*ivx + nnl[*ivx]
- * 24],24);
-#line 11843 ""
- }
-#line 11846 ""
- }
-#line 11847 ""
- } else if (*(unsigned char *)charq == 'x') {
-#line 11848 ""
- comgrace_1.slashg[comgrace_1.ngrace - 1] = TRUE_;
-#line 11849 ""
- } else if (*(unsigned char *)charq == 'u') {
-#line 11850 ""
- } else if (*(unsigned char *)charq == 'X') {
-
-/* Space before main note of grace. Number will come next. */
-
-#line 11854 ""
- ++(*iccount);
-#line 11855 ""
- readnum_(lineq, iccount, durq, &comgrace_1.graspace[comgrace_1.ngrace
- - 1], (ftnlen)128, (ftnlen)1);
-#line 11856 ""
- --(*iccount);
-#line 11857 ""
- }
-#line 11858 ""
- if (i_indx("abcdefg", charq, (ftnlen)7, (ftnlen)1) == 0) {
-#line 11858 ""
- goto L18;
-#line 11858 ""
- }
-
-/* At this point, charq is first note name in grace */
-
-#line 11862 ""
- i__1 = comgrace_1.ngstrt[comgrace_1.ngrace - 1] + comgrace_1.nng[
- comgrace_1.ngrace - 1] - 1;
-#line 11862 ""
- for (ing = comgrace_1.ngstrt[comgrace_1.ngrace - 1]; ing <= i__1; ++ing) {
-#line 11863 ""
- comgrace_1.naccg[ing - 1] = 0;
-#line 11864 ""
- ioct = 0;
-#line 11865 ""
- if (ing > comgrace_1.ngstrt[comgrace_1.ngrace - 1]) {
-#line 11866 ""
-L55:
-#line 11866 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 11867 ""
- if (*(unsigned char *)charq == ' ') {
-#line 11867 ""
- goto L55;
-#line 11867 ""
- }
-#line 11868 ""
- }
-#line 11869 ""
- iclastlev = 0;
-#line 11870 ""
-L9:
-#line 11870 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 11871 ""
- if (*(unsigned char *)durq != ' ') {
-#line 11872 ""
- if (*(unsigned char *)durq == '+') {
-#line 11873 ""
- *lastlev += 7;
-#line 11874 ""
- iclastlev += 7;
-#line 11875 ""
- } else if (*(unsigned char *)durq == '-') {
-#line 11876 ""
- *lastlev += -7;
-#line 11877 ""
- iclastlev += -7;
-#line 11878 ""
- } else if (i_indx("fsn", durq, (ftnlen)3, (ftnlen)1) > 0) {
-#line 11879 ""
- if (comgrace_1.naccg[ing - 1] == 0) {
-#line 11880 ""
- comgrace_1.naccg[ing - 1] = i_indx("fsn", durq, (ftnlen)3,
- (ftnlen)1);
-#line 11881 ""
- } else {
-
-/* Double accidental */
-
-#line 11885 ""
- comgrace_1.naccg[ing - 1] = bit_set(comgrace_1.naccg[ing
- - 1],2);
-#line 11886 ""
- }
-#line 11887 ""
- } else {
-#line 11888 ""
- ioct = *(unsigned char *)durq - 48;
-#line 11889 ""
- }
-#line 11890 ""
- goto L9;
-#line 11891 ""
- }
-#line 11892 ""
- if (ioct > 0) {
-#line 11893 ""
- *lastlev = ifnolev_(charq, &ioct, &cominsttrans_1.itransamt[
- cominsttrans_1.instno[*iv - 1] - 1], (ftnlen)1);
-#line 11894 ""
- } else {
-#line 11895 ""
- if (nnl[*ivx] == 0 && ing == comgrace_1.ngstrt[comgrace_1.ngrace
- - 1]) {
-#line 11896 ""
- if (*ivx <= *nv) {
-#line 11897 ""
- kv = 1;
-#line 11898 ""
- } else {
-#line 11899 ""
- kv = 2;
-#line 11900 ""
- }
-#line 11901 ""
- *lastlev = ndlev[*iv + kv * 24] + iclastlev;
-#line 11902 ""
- }
-#line 11903 ""
- *lastlev = *lastlev - 3 + (ifnolev_(charq, &c__10, &
- cominsttrans_1.itransamt[cominsttrans_1.instno[*iv - 1] -
- 1], (ftnlen)1) - *lastlev + 3) % 7;
-#line 11905 ""
- }
-#line 11906 ""
- comgrace_1.nolevg[ing - 1] = *lastlev;
-#line 11907 ""
-/* L19: */
-#line 11907 ""
- }
-
-/* Grace could come before first note of block, so reset end level. */
-
-#line 11911 ""
- if (nnl[*ivx] == 0) {
-#line 11912 ""
- if (*ivx <= *nv) {
-#line 11913 ""
- kv = 1;
-#line 11914 ""
- } else {
-#line 11915 ""
- kv = 2;
-#line 11916 ""
- }
-#line 11917 ""
- ndlev[*iv + kv * 24] = *lastlev;
-#line 11918 ""
- }
-#line 11919 ""
- return 0;
-} /* getgrace_ */
-
-/* Subroutine */ int getitransinfo_(logical *from1, integer *ibarcnt, char *
- lineq, integer *iccount, integer *ibaroff, integer *nbars, integer *
- noinst, ftnlen lineq_len)
-{
- /* System generated locals */
- integer i__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), i_nint(real *);
-
- /* Local variables */
- static integer ikey;
- static real fnum;
- static char durq[1];
- extern /* Subroutine */ int stop1_(void);
- static integer instn;
- static logical store;
- extern /* Subroutine */ int errmsg_(char *, integer *, integer *, char *,
- ftnlen, ftnlen);
- static integer itramt;
- extern /* Subroutine */ int readnum_(char *, integer *, char *, real *,
- ftnlen, ftnlen), g1etchar_(char *, integer *, char *, ftnlen,
- ftnlen);
-
-/* ccccccccccccccccccccccc */
-/* c */
-/* c GetiTransInfo.for */
-/* c */
-/* ccccccccccccccccccccccc */
-
-/* Called from both g1etnote and getnote, after first 'i' in Ki[...] */
-/* On entry, iccount points to last char retrieved, which is 'i' */
-
-/* From1: locgical, true if called from g1etnote */
-/* ibarcnt: tells whether to set EarlyTransOn to true. */
-/* EarlyTransOn set false in blkdata, true here, back to false in topfile. */
-
-/* 110522/110529 */
-/* Instrument-wise transposition Ki[iInstTrans][+/-][iTransAmt][+/-][iTransKey] */
-/* and repeat i[...] for multiple instruments. Store info in g1etnot if ibarcnt=0 */
-/* so can pass to topfile (via comInstTrans), which is called before getnote. */
-/* Otherwise, will store info from getnote. Initialize EarlyTransOn and */
-/* LaterInstTrans to .false. in blockdata. Set EarlyTransOn from g1etnote; */
-/* LaterInstTrans from getnote. Zero both out after use. nInstTrans really */
-/* only needed for instrument-signatures, not transpositions. iTransAmt is */
-/* ALWAYS active per instrument. Set up instno(iv) so can fetch iTransAmt for */
-/* each staff. */
-
-/* iTransAmt stored as fn of instrument #, not like iTransKey which is */
-/* fn. of nm, just a counter, where corr. inst num is iInstTrans(nm). This */
-/* simplifies use of iTransAmt for all calls to ifnolev. */
-
-#line 11958 ""
- *(unsigned char *)durq = 'x';
-/* Can't initialize in declaration stmt, only works onc */
-#line 11959 ""
- if (! cominsttrans_1.earlytranson) {
-#line 11959 ""
- cominsttrans_1.earlytranson = *from1 && *ibarcnt == 0;
-#line 11959 ""
- }
-#line 11960 ""
- store = cominsttrans_1.earlytranson && *ibarcnt == 0 || *ibarcnt > 0 && !
- (*from1);
-#line 11962 ""
- cominsttrans_1.laterinsttrans = ! (*from1) && *ibarcnt > 0;
-#line 11963 ""
- if (store) {
-#line 11963 ""
- cominsttrans_1.ninsttrans = 0;
-#line 11963 ""
- }
-#line 11964 ""
-L1:
-#line 11965 ""
- if (*(unsigned char *)durq == ' ') {
-#line 11965 ""
- return 0;
-#line 11965 ""
- }
-#line 11966 ""
- g1etchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 11967 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 11968 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 11968 ""
- errmsg_(lineq, iccount, &i__1, "There must be an instrument number h"\
- "ere!", (ftnlen)128, (ftnlen)40);
-#line 11970 ""
- stop1_();
-#line 11971 ""
- }
-#line 11972 ""
- if (store) {
-#line 11972 ""
- ++cominsttrans_1.ninsttrans;
-#line 11972 ""
- }
-#line 11973 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 11974 ""
- instn = i_nint(&fnum);
-#line 11975 ""
- if (instn > *noinst) {
-#line 11976 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 11976 ""
- errmsg_(lineq, iccount, &i__1, "Instrument number out of range!", (
- ftnlen)128, (ftnlen)31);
-#line 11978 ""
- stop1_();
-#line 11979 ""
- }
-#line 11980 ""
- if (store) {
-#line 11980 ""
- cominsttrans_1.iinsttrans[cominsttrans_1.ninsttrans - 1] = instn;
-#line 11980 ""
- }
-
-/* durq is +/- following inst # (for iTransAmt), iccount is on it. */
-
-#line 11984 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 11985 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 11985 ""
- errmsg_(lineq, iccount, &i__1, "1st character after instrument numbe"\
- "r must be \"+,-\"!", (ftnlen)128, (ftnlen)52);
-#line 11987 ""
- stop1_();
-#line 11988 ""
- }
-#line 11989 ""
- itramt = 44 - *(unsigned char *)durq;
-/* +1/-1 for itramt */
-#line 11990 ""
- g1etchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 11991 ""
- if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 11992 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 11992 ""
- errmsg_(lineq, iccount, &i__1, "There must be a transposition amount"\
- " here!", (ftnlen)128, (ftnlen)42);
-#line 11994 ""
- stop1_();
-#line 11995 ""
- }
-#line 11996 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 11997 ""
- if (store) {
-#line 11997 ""
- cominsttrans_1.itransamt[instn - 1] = i_nint(&fnum) * itramt;
-#line 11997 ""
- }
-
-/* durq is +/- following iTransAmt (for iTransKey), iccount is on it. */
-
-#line 12001 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 12002 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12002 ""
- errmsg_(lineq, iccount, &i__1, "1st character after transposition am"\
- "ount must be \"+,-\"!", (ftnlen)128, (ftnlen)55);
-#line 12004 ""
- stop1_();
-#line 12005 ""
- }
-#line 12006 ""
- ikey = 44 - *(unsigned char *)durq;
-/* +1/-1 */
-#line 12007 ""
- g1etchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12008 ""
- if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 12009 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12009 ""
- errmsg_(lineq, iccount, &i__1, "There must be a key indicator here!",
- (ftnlen)128, (ftnlen)35);
-#line 12011 ""
- stop1_();
-#line 12012 ""
- }
-#line 12013 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 12014 ""
- if (store) {
-#line 12014 ""
- cominsttrans_1.itranskey[cominsttrans_1.ninsttrans - 1] = i_nint(&
- fnum) * ikey;
-#line 12014 ""
- }
-
-/* durq is now 1st character after iTransKey, should be either 'i' or ' ' */
-
-#line 12018 ""
- if (*(unsigned char *)durq != 'i' && *(unsigned char *)durq != ' ') {
-#line 12019 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12019 ""
- errmsg_(lineq, iccount, &i__1, "There must be blank or \"i\" here!", (
- ftnlen)128, (ftnlen)32);
-#line 12021 ""
- stop1_();
-#line 12022 ""
- }
-#line 12023 ""
- goto L1;
-} /* getitransinfo_ */
-
-/* Subroutine */ int getmidi_(integer *noinstarg, char *lineq, integer *
- iccount, integer *ibarcnt, integer *ibaroff, integer *nbars, integer *
- lenbar, integer *mtrdenl, integer *nv, logical *first, ftnlen
- lineq_len)
-{
- /* Initialized data */
-
- static shortint midinum[26] = { 1,5,7,13,20,25,33,41,42,43,44,57,58,59,61,
- 65,66,67,68,69,71,72,74,75,8,55 };
-
- /* System generated locals */
- address a__1[2];
- integer i__1, i__2[2], i__3, i__4;
- real r__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), i_nint(real *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
-
- /* Local variables */
- static real pausemid;
- extern /* Subroutine */ int inst2chan_(integer *, integer *, integer *,
- integer *, shortint *, logical *), midievent_(char *, integer *,
- integer *, ftnlen);
- static integer icm, ipm;
- static real qpm;
- static integer ivx;
- static real fnum;
- static char durq[1];
- extern /* Subroutine */ int stop1_(void);
- static integer iname, numb16;
- static char instq[2];
- extern /* Subroutine */ int errmsg_(char *, integer *, integer *, char *,
- ftnlen, ftnlen), addmidi_(integer *, integer *, integer *,
- integer *, real *, logical *, logical *), getchar_(char *,
- integer *, char *, ftnlen, ftnlen), readnum_(char *, integer *,
- char *, real *, ftnlen, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___762 = { 0, 6, 0, "(a)", 0 };
- static cilist io___763 = { 0, 15, 0, "(a)", 0 };
-
-
-
-/* Use this from both pmxa and pmxb to input and check midi data. "first" tells */
-/* whether pmxa or pmxb. If .not.first, then tempo and pause commands cause */
-/* things to be written immediately into the midi storage buffers. */
-
-
-/* immac(i) is the index of i-th macro, i=1,nmac. Also make a list containing */
-/* nmidsec section starts and stops based on PLAYING macros (not recording). */
-
-
-/* Instrument codes */
-
-/* XXpiXrhXhaXmaXorXguXabXvlXvaXvcXcbXtrXtbXtuXfrXsoXalXteX */
-
-/* bsXobXbaXclXflXreXctXvo */
-
-#line 12069 ""
-L1:
-#line 12069 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12070 ""
- if (*(unsigned char *)durq == 't') {
-
-/* Tempo in beats ber minute */
-
-#line 12074 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12075 ""
- if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 12076 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12076 ""
- errmsg_(lineq, iccount, &i__1, "Expected an integer here for the"\
- " pause!", (ftnlen)128, (ftnlen)39);
-#line 12078 ""
- stop1_();
-#line 12079 ""
- }
-#line 12080 ""
- readnum_(lineq, iccount, durq, &qpm, (ftnlen)128, (ftnlen)1);
-#line 12081 ""
- --(*iccount);
-#line 12082 ""
- if (! (*first)) {
-#line 12083 ""
- i__1 = i_nint(&qpm);
-#line 12083 ""
- midievent_("t", &i__1, &c__0, (ftnlen)1);
-#line 12084 ""
- commmac_1.gottempo = TRUE_;
-#line 12085 ""
- }
-#line 12086 ""
- goto L1;
-#line 12087 ""
- } else if (*(unsigned char *)durq == 'p') {
-
-/* Insert a pause. pausemid = pause in 1/4's */
-
-#line 12091 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12092 ""
- if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) == 0) {
-#line 12093 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12093 ""
- errmsg_(lineq, iccount, &i__1, "Expected a number here for the p"\
- "ause!", (ftnlen)128, (ftnlen)37);
-#line 12095 ""
- stop1_();
-#line 12096 ""
- }
-#line 12097 ""
- readnum_(lineq, iccount, durq, &pausemid, (ftnlen)128, (ftnlen)1);
-#line 12098 ""
- --(*iccount);
-#line 12099 ""
- 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 12104 ""
- r__1 = pausemid * 4;
-#line 12104 ""
- numb16 = i_nint(&r__1);
-#line 12105 ""
- midievent_("m", &numb16, &c__16, (ftnlen)1);
-
-/* Put in pausemid beats of rest */
-
-#line 12109 ""
- i__1 = commidi_1.numchan - 1;
-#line 12109 ""
- for (icm = 0; icm <= i__1; ++icm) {
-#line 12110 ""
- r__1 = numb16 * 4.f;
-#line 12110 ""
- addmidi_(&icm, &c__0, &c__0, &c__0, &r__1, &c_true, &c_false);
-#line 12111 ""
-/* L3: */
-#line 12111 ""
- }
-#line 12112 ""
- r__1 = pausemid * 240;
-#line 12112 ""
- comevent_1.miditime += i_nint(&r__1);
-
-/* Restore meter */
-
-#line 12116 ""
- i__1 = *mtrdenl * *lenbar / 64;
-#line 12116 ""
- midievent_("m", &i__1, mtrdenl, (ftnlen)1);
-#line 12117 ""
- }
-#line 12118 ""
- goto L1;
-#line 12119 ""
- } else if (*(unsigned char *)durq == 'i') {
-
-/* Instrument numbers or letters. Expect noinst of them. */
-
-#line 12123 ""
- i__1 = *noinstarg;
-#line 12123 ""
- for (ivx = 1; ivx <= i__1; ++ivx) {
-#line 12124 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12125 ""
- if (*(unsigned char *)durq > 96) {
-
-/* It's a lowercase letter. Get another, find corr. instrument #. */
-
-#line 12129 ""
- *(unsigned char *)instq = *(unsigned char *)durq;
-#line 12130 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-/* Writing concatenation */
-#line 12131 ""
- i__2[0] = 1, a__1[0] = instq;
-#line 12131 ""
- i__2[1] = 1, a__1[1] = durq;
-#line 12131 ""
- s_cat(instq, a__1, i__2, &c__2, (ftnlen)2);
-#line 12132 ""
- iname = i_indx("XXpiXrhXhaXmaXorXguXabXvlXvaXvcXcbXtrXtbXtuX"\
- "frXsoXalXteXbsXobXbaXclXflXreXctXvo", instq, (ftnlen)
- 79, (ftnlen)2) / 3;
-#line 12134 ""
- if (iname == 0) {
-#line 12135 ""
- i__3 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12135 ""
- errmsg_(lineq, iccount, &i__3, "Unrecognized 2-letter mi"\
- "di instrument name!", (ftnlen)128, (ftnlen)43);
-#line 12137 ""
- stop1_();
-#line 12138 ""
- }
-#line 12139 ""
- commidi_1.midinst[ivx - 1] = midinum[iname - 1] - 1;
-#line 12140 ""
- } 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 12146 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 12147 ""
- i__3 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12147 ""
- errmsg_(lineq, iccount, &i__3, "Expected a midi instrume"\
- "nt number here!", (ftnlen)128, (ftnlen)39);
-#line 12149 ""
- stop1_();
-#line 12150 ""
- }
-#line 12151 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 12152 ""
- commidi_1.midinst[ivx - 1] = i_nint(&fnum) - 1;
-#line 12153 ""
- if (commidi_1.midinst[ivx - 1] < 0 || commidi_1.midinst[ivx -
- 1] > 255) {
-#line 12154 ""
- i__3 = *iccount - 1;
-#line 12154 ""
- i__4 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12154 ""
- errmsg_(lineq, &i__3, &i__4, "Midi instrument number mus"\
- "t be in range 1-128!", (ftnlen)128, (ftnlen)46);
-#line 12156 ""
- stop1_();
-#line 12157 ""
- }
-#line 12158 ""
- if (*(unsigned char *)durq != ':') {
-#line 12158 ""
- --(*iccount);
-#line 12158 ""
- }
-#line 12159 ""
- }
-#line 12160 ""
-/* L2: */
-#line 12160 ""
- }
-#line 12161 ""
- goto L1;
-#line 12162 ""
- } else if (*(unsigned char *)durq == 'v') {
-
-/* Get volumes for each instrument. Expect noinst of them. */
-/* Follow same pattern as for insttrument numbers above. */
-
-#line 12167 ""
- i__1 = *noinstarg;
-#line 12167 ""
- for (ivx = 1; ivx <= i__1; ++ivx) {
-#line 12168 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12169 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 12170 ""
- i__3 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12170 ""
- errmsg_(lineq, iccount, &i__3, "Expected a midi velocity num"\
- "ber here!", (ftnlen)128, (ftnlen)37);
-#line 12172 ""
- stop1_();
-#line 12173 ""
- }
-#line 12174 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 12175 ""
- commvel_2.midivel[ivx - 1] = i_nint(&fnum) - 1;
-#line 12176 ""
- if (commvel_2.midivel[ivx - 1] < 0 || commvel_2.midivel[ivx - 1]
- > 127) {
-#line 12177 ""
- i__3 = *iccount - 1;
-#line 12177 ""
- i__4 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12177 ""
- errmsg_(lineq, &i__3, &i__4, "Midi velocity must be in range"\
- " 1-128!", (ftnlen)128, (ftnlen)37);
-#line 12179 ""
- stop1_();
-#line 12180 ""
- }
-#line 12181 ""
- if (*(unsigned char *)durq != ':') {
-#line 12181 ""
- --(*iccount);
-#line 12181 ""
- }
-#line 12182 ""
-/* L7: */
-#line 12182 ""
- }
-#line 12183 ""
- if (! (*first)) {
-#line 12184 ""
- inst2chan_(commvel_2.midvelc, commvel_2.midivel,
- commidi_1.midchan, nv, commvel_2.iinsiv,
- commidi_1.twoline);
-#line 12185 ""
- }
-#line 12186 ""
- goto L1;
-#line 12187 ""
- } else if (*(unsigned char *)durq == 'b') {
-
-/* Get balance for each instrument. Expect noinst of them. */
-/* Follow same pattern as for instrument numbers above. */
-
-#line 12192 ""
- i__1 = *noinstarg;
-#line 12192 ""
- for (ivx = 1; ivx <= i__1; ++ivx) {
-#line 12193 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12194 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 12195 ""
- i__3 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12195 ""
- errmsg_(lineq, iccount, &i__3, "Expected a balance number he"\
- "re!", (ftnlen)128, (ftnlen)31);
-#line 12197 ""
- stop1_();
-#line 12198 ""
- }
-#line 12199 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 12200 ""
- commvel_2.midibal[ivx - 1] = i_nint(&fnum) - 1;
-#line 12201 ""
- if (commvel_2.midibal[ivx - 1] < 0 || commvel_2.midibal[ivx - 1]
- > 127) {
-#line 12202 ""
- i__3 = *iccount - 1;
-#line 12202 ""
- i__4 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12202 ""
- errmsg_(lineq, &i__3, &i__4, "Midi balance must be in range "\
- "1-128!", (ftnlen)128, (ftnlen)36);
-#line 12204 ""
- stop1_();
-#line 12205 ""
- }
-#line 12206 ""
- if (*(unsigned char *)durq != ':') {
-#line 12206 ""
- --(*iccount);
-#line 12206 ""
- }
-#line 12207 ""
-/* L8: */
-#line 12207 ""
- }
-#line 12208 ""
- if (! (*first)) {
-#line 12209 ""
- inst2chan_(commvel_2.midbc, commvel_2.midibal, commidi_1.midchan,
- nv, commvel_2.iinsiv, commidi_1.twoline);
-#line 12210 ""
- }
-#line 12211 ""
- goto L1;
-#line 12212 ""
- } else if (*(unsigned char *)durq == 'T') {
-
-/* Get transposition for each instrument. Expect noinst of them. */
-/* Follow similar pattern as above, but separator is +|-. */
-
-#line 12217 ""
- i__1 = *noinstarg;
-#line 12217 ""
- for (ivx = 1; ivx <= i__1; ++ivx) {
-#line 12218 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12219 ""
- ipm = i_indx("-+", durq, (ftnlen)2, (ftnlen)1);
-#line 12220 ""
- if (ipm == 0) {
-#line 12221 ""
- i__3 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12221 ""
- errmsg_(lineq, iccount, &i__3, "Expected \"+\" or \"-\" for "\
- "midi transposition here!", (ftnlen)128, (ftnlen)48);
-#line 12223 ""
- stop1_();
-#line 12224 ""
- }
-#line 12225 ""
- ipm = (ipm << 1) - 3;
-#line 12226 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12227 ""
- if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 12228 ""
- i__3 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12228 ""
- errmsg_(lineq, iccount, &i__3, "Expected a number here!", (
- ftnlen)128, (ftnlen)23);
-#line 12230 ""
- stop1_();
-#line 12231 ""
- }
-#line 12232 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 12233 ""
- commvel_2.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 12239 ""
- --(*iccount);
-#line 12240 ""
-/* L9: */
-#line 12240 ""
- }
-#line 12241 ""
- if (! (*first)) {
-#line 12242 ""
- inst2chan_(commvel_2.midtc, commvel_2.miditran, commidi_1.midchan,
- nv, commvel_2.iinsiv, commidi_1.twoline);
-#line 12243 ""
- }
-#line 12244 ""
- goto L1;
-#line 12245 ""
- } else if (*(unsigned char *)durq == 'g') {
-#line 12246 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12247 ""
- if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 12248 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12248 ""
- errmsg_(lineq, iccount, &i__1, "Expected an integer here for the"\
- " midi gap!", (ftnlen)128, (ftnlen)42);
-#line 12250 ""
- stop1_();
-#line 12251 ""
- }
-#line 12252 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 12253 ""
- commidi_1.mgap = i_nint(&fnum);
-#line 12254 ""
- --(*iccount);
-#line 12255 ""
- goto L1;
-#line 12256 ""
- } else if (*(unsigned char *)durq == 'M') {
-
-/* MidiMacros */
-
-#line 12260 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12261 ""
- if (*(unsigned char *)durq == 'R') {
-
-/* Start recording */
-
-#line 12265 ""
- if (commmac_1.mmacrec) {
-#line 12266 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12266 ""
- errmsg_(lineq, iccount, &i__1, "You tried to record a MidiMa"\
- "cro while already recording!", (ftnlen)128, (ftnlen)
- 56);
-#line 12268 ""
- stop1_();
-#line 12269 ""
- }
-#line 12270 ""
- commmac_1.mmacrec = TRUE_;
-#line 12271 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12272 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 12273 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12273 ""
- errmsg_(lineq, iccount, &i__1, "Expected MidiMacro ID number"\
- " here!", (ftnlen)128, (ftnlen)34);
-#line 12275 ""
- stop1_();
-#line 12276 ""
- }
-#line 12277 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 12278 ""
- --(*iccount);
-#line 12279 ""
- if (! (*first)) {
-#line 12280 ""
- commmac_1.immac = i_nint(&fnum);
-#line 12281 ""
- if (commmac_1.immac > 20) {
-#line 12282 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12282 ""
- errmsg_(lineq, iccount, &i__1, "MidiMacro ID cannot exce"\
- "ed 20!", (ftnlen)128, (ftnlen)30);
-#line 12284 ""
- stop1_();
-#line 12285 ""
- }
-
-/* Save the start time */
-
-#line 12289 ""
- commmac_1.mmactime[commmac_1.immac - 1] = comevent_1.miditime;
-#line 12290 ""
- i__1 = commidi_1.numchan;
-#line 12290 ""
- for (icm = 0; icm <= i__1; ++icm) {
-#line 12291 ""
- if (icm < commidi_1.numchan) {
-#line 12292 ""
- if (commidi_1.restpend[icm]) {
-
-/* Adjust if there's a rest at end of prior section. Insert dummy turnoff. */
-/* (This causes two turn-offs in a row, which testmidi sees as an error). */
-
-/* Before: section1 ------rest------- section2(to be recorded) */
-/* After: section1 rest1 now rest2 section2(recorded) */
-
-#line 12300 ""
- addmidi_(&icm, &c__30, &c__0, &c__0, &
- commidi_1.trest[icm], &c_false, &c_true);
-#line 12301 ""
- commidi_1.trest[icm] = 0.f;
-#line 12302 ""
- commidi_1.restpend[icm] = FALSE_;
-#line 12303 ""
- }
-#line 12304 ""
- } else {
-#line 12305 ""
- if (comevent_1.miditime > comevent_1.lasttime) {
-
-/* Insert a dummy turnoff in conductor track */
-
-#line 12309 ""
- r__1 = (comevent_1.miditime - comevent_1.lasttime)
- / 15.f;
-#line 12309 ""
- addmidi_(&icm, &c__30, &c__0, &c__0, &r__1, &
- c_false, &c_true);
-#line 12311 ""
- comevent_1.lasttime = comevent_1.miditime;
-#line 12312 ""
- }
-#line 12313 ""
- }
-#line 12314 ""
- commmac_1.mmacstrt[icm + commmac_1.immac * 25 - 25] =
- commidi_1.imidi[icm] + 1;
-#line 12315 ""
-/* L4: */
-#line 12315 ""
- }
-#line 12316 ""
- }
-#line 12317 ""
- goto L1;
-#line 12318 ""
- } else if (i_indx("123456789P", durq, (ftnlen)10, (ftnlen)1) == 0) {
-
-/* End recording; close the open macro. Get immac from common. */
-
-#line 12322 ""
- if (! commmac_1.mmacrec) {
-#line 12323 ""
- i__1 = *iccount - 1;
-#line 12323 ""
- i__3 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12323 ""
- errmsg_(lineq, &i__1, &i__3, "You tried to end a MidiMacro b"\
- "efore starting one!", (ftnlen)128, (ftnlen)49);
-#line 12325 ""
- stop1_();
-#line 12326 ""
- }
-#line 12327 ""
- commmac_1.mmacrec = FALSE_;
-#line 12328 ""
- --(*iccount);
-#line 12329 ""
- if (! (*first)) {
-
-/* Save the macro duration */
-
-#line 12333 ""
- commmac_1.mmactime[commmac_1.immac - 1] = comevent_1.miditime
- - commmac_1.mmactime[commmac_1.immac - 1];
-#line 12334 ""
- i__1 = commidi_1.numchan;
-#line 12334 ""
- for (icm = 0; icm <= i__1; ++icm) {
-#line 12335 ""
- if (icm < commidi_1.numchan) {
-#line 12336 ""
- if (commidi_1.restpend[icm]) {
-#line 12337 ""
- addmidi_(&icm, &c__30, &c__0, &c__0, &
- commidi_1.trest[icm], &c_false, &c_true);
-#line 12338 ""
- commidi_1.trest[icm] = 0.f;
-#line 12339 ""
- commidi_1.restpend[icm] = FALSE_;
-#line 12340 ""
- }
-#line 12341 ""
- } else {
-#line 12342 ""
- if (comevent_1.miditime > comevent_1.lasttime) {
-
-/* Insert a dummy turnoff in conductor track if needed. */
-
-#line 12346 ""
- r__1 = (comevent_1.miditime - comevent_1.lasttime)
- / 15.f;
-#line 12346 ""
- addmidi_(&icm, &c__30, &c__0, &c__0, &r__1, &
- c_false, &c_true);
-#line 12348 ""
- comevent_1.lasttime = comevent_1.miditime;
-#line 12349 ""
- }
-#line 12350 ""
- }
-#line 12351 ""
- commmac_1.mmacend[icm + commmac_1.immac * 25 - 25] =
- commidi_1.imidi[icm];
-#line 12352 ""
-/* L5: */
-#line 12352 ""
- }
-#line 12353 ""
- }
-#line 12354 ""
- if (*(unsigned char *)durq != ' ') {
-#line 12354 ""
- goto L1;
-#line 12354 ""
- }
-#line 12355 ""
- } else if (*(unsigned char *)durq == 'P') {
-
-/* Play Back a Macro */
-
-#line 12359 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12360 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 12361 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12361 ""
- errmsg_(lineq, iccount, &i__1, "Expected MidiMacro ID number"\
- " here!", (ftnlen)128, (ftnlen)34);
-#line 12363 ""
- stop1_();
-#line 12364 ""
- }
-#line 12365 ""
- if (commmac_1.mmacrec) {
-#line 12366 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12366 ""
- errmsg_(lineq, iccount, &i__1, "You tried to play a MidiMacr"\
- "o before ending recording!", (ftnlen)128, (ftnlen)54);
-#line 12368 ""
- stop1_();
-#line 12369 ""
- }
-#line 12370 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 12371 ""
- --(*iccount);
-#line 12372 ""
- if (! (*first)) {
-#line 12373 ""
- commmac_1.immac = i_nint(&fnum);
-#line 12374 ""
- if (commmac_1.mmactime[commmac_1.immac - 1] == 0) {
-#line 12375 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12375 ""
- errmsg_(lineq, iccount, &i__1, "Cannot play a MIDI macro"\
- " before recording it!", (ftnlen)128, (ftnlen)45);
-#line 12377 ""
- stop1_();
-#line 12378 ""
- }
-#line 12379 ""
- i__1 = commidi_1.numchan;
-#line 12379 ""
- for (icm = 0; icm <= i__1; ++icm) {
-#line 12380 ""
- if (icm < commidi_1.numchan) {
-#line 12381 ""
- if (commidi_1.restpend[icm]) {
-#line 12382 ""
- addmidi_(&icm, &c__30, &c__0, &c__0, &
- commidi_1.trest[icm], &c_false, &c_true);
-#line 12383 ""
- commidi_1.trest[icm] = 0.f;
-#line 12384 ""
- commidi_1.restpend[icm] = FALSE_;
-#line 12385 ""
- }
-#line 12386 ""
- } else {
-#line 12387 ""
- if (comevent_1.miditime > comevent_1.lasttime) {
-
-/* Insert a dummy turnoff in conductor track */
-
-#line 12391 ""
- r__1 = (comevent_1.miditime - comevent_1.lasttime)
- / 15.f;
-#line 12391 ""
- addmidi_(&icm, &c__30, &c__0, &c__0, &r__1, &
- c_false, &c_true);
-#line 12393 ""
- }
-#line 12394 ""
- }
-#line 12395 ""
- commmac_1.msecend[icm + commmac_1.nmidsec * 25 - 25] =
- commidi_1.imidi[icm];
-#line 12396 ""
- commmac_1.msecstrt[icm + (commmac_1.nmidsec + 1) * 25 -
- 25] = commmac_1.mmacstrt[icm + commmac_1.immac *
- 25 - 25];
-#line 12397 ""
- commmac_1.msecend[icm + (commmac_1.nmidsec + 1) * 25 - 25]
- = commmac_1.mmacend[icm + commmac_1.immac * 25 -
- 25];
-#line 12398 ""
- commmac_1.msecstrt[icm + (commmac_1.nmidsec + 2) * 25 -
- 25] = commidi_1.imidi[icm] + 1;
-#line 12399 ""
-/* L6: */
-#line 12399 ""
- }
-#line 12400 ""
- commmac_1.nmidsec += 2;
-
-/* Update running time */
-
-#line 12404 ""
- comevent_1.miditime += commmac_1.mmactime[commmac_1.immac - 1]
- ;
-#line 12405 ""
- comevent_1.lasttime = comevent_1.miditime;
-#line 12406 ""
- }
-#line 12407 ""
- goto L1;
-#line 12408 ""
- } else {
-#line 12409 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12409 ""
- errmsg_(lineq, iccount, &i__1, "Illegal character in MidiMacro s"\
- "ub-command!", (ftnlen)128, (ftnlen)43);
-#line 12411 ""
- stop1_();
-#line 12412 ""
- }
-#line 12413 ""
- } else if (*(unsigned char *)durq == 'd') {
-#line 12414 ""
- commidi_1.debugmidi = TRUE_;
-#line 12415 ""
- goto L1;
-#line 12416 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 12417 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 12417 ""
- errmsg_(lineq, iccount, &i__1, "Illegal character in MIDI input data!"
- , (ftnlen)128, (ftnlen)37);
-#line 12419 ""
- s_wsfe(&io___762);
-#line 12419 ""
- 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 12419 ""
- e_wsfe();
-#line 12422 ""
- s_wsfe(&io___763);
-#line 12422 ""
- 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 12422 ""
- e_wsfe();
-#line 12425 ""
- stop1_();
-#line 12426 ""
- }
-#line 12427 ""
- if (! commmac_1.gottempo && ! (*first)) {
-
-/* If no tempo is set on first call on the pmxb pass, then set it */
-
-#line 12431 ""
- midievent_("t", &c__96, &c__0, (ftnlen)1);
-#line 12432 ""
- commmac_1.gottempo = TRUE_;
-#line 12433 ""
- }
-#line 12434 ""
- return 0;
-} /* getmidi_ */
-
-/* Subroutine */ int getnote_(logical *loop)
-{
- /* System generated locals */
- address a__1[5], a__2[2], a__3[3], a__4[6], a__5[8], a__6[13];
- integer i__1, i__2, i__3[5], i__4, i__5[2], i__6[3], i__7[6], i__8[8],
- i__9[13];
- real r__1;
- char ch__1[1], ch__2[12], ch__3[10], ch__4[13], ch__5[1], ch__6[69],
- ch__7[22], ch__8[21], ch__9[20], ch__10[11], ch__11[3], ch__12[9],
- ch__13[61], ch__14[8], ch__15[82], ch__16[83], ch__17[62],
- ch__18[122], ch__19[15], ch__20[59], ch__21[70], ch__22[36];
- icilist ici__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), s_wsfe(cilist *), do_fio(
- integer *, char *, ftnlen), e_wsfe(void);
- double r_mod(real *, real *);
- integer s_cmp(char *, char *, ftnlen, ftnlen), s_wsle(cilist *), do_lio(
- integer *, integer *, char *, ftnlen), e_wsle(void), i_nint(real *
- ), lbit_shift(integer, integer);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen),
- s_stop(char *, ftnlen);
- double log(doublereal);
- integer s_rsfi(icilist *), e_rsfi(void);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsfi(icilist *), e_wsfi(void);
-
- /* Local variables */
- static integer namstrt;
- static real tintstf;
- static integer lentemp;
- extern /* Subroutine */ int getgrace_(integer *, integer *, char *,
- integer *, integer *, integer *, integer *, integer *, integer *,
- integer *, integer *, ftnlen);
- extern integer igetbits_(integer *, integer *, integer *);
- static integer idotform;
- extern /* Subroutine */ int newvoice_(integer *, char *, logical *,
- ftnlen);
- static integer multtrem;
- extern /* Subroutine */ int dopmxlyr_(char *, integer *, ftnlen);
- static integer j, note1xtup;
- extern /* Subroutine */ int readmeter_(char *, integer *, integer *,
- integer *, ftnlen), midievent_(char *, integer *, integer *,
- ftnlen);
- static integer ic, jv, kv, nnb, iip, ipm, ivf, ndx, isl, iiv;
- static real hgt, dum;
- static integer iis, npg1, num1, iadj, nadj, lclf;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static logical cdot;
- static integer nole, ioct;
- static real fnum;
- static char dotq[1], durq[1], dumq[1];
- extern /* Subroutine */ int getx_(char *, integer *, integer *, logical *,
- real *, integer *, integer *, integer *, integer *, integer *,
- integer *, integer *, char *, integer *, ftnlen, ftnlen);
- static integer itup, nnnl, ntup, ndxm, nfig1;
- extern /* Subroutine */ int mrec1_(char *, integer *, integer *, ftnlen);
- static integer ipg1r;
- extern /* Subroutine */ int stop1_(void);
- static integer lhead;
- static char charq[1], lineq[128];
- static logical moved;
- static integer ndoub;
- static char tempq[24];
- extern /* Subroutine */ int sslur_(char *, integer *, integer *, integer *
- , integer *, integer *, integer *, integer *, integer *, logical *
- , integer *, char *, ftnlen, ftnlen);
- static integer ifnum, iplmi, isign, nvold, iinow, iinst;
- static real pmfac;
- extern /* Subroutine */ int getitransinfo_(logical *, integer *, char *,
- integer *, integer *, integer *, integer *, ftnlen);
- static logical quoted;
- static char lineqt[128], hdlndq[59];
- static logical inxtup;
- extern integer lenstr_(char *, integer *, ftnlen);
- static integer numnum, nsolid;
- extern /* Subroutine */ int getorn_(char *, integer *, integer *, integer
- *, logical *, integer *, integer *, integer *, logical *, logical
- *, integer *, ftnlen);
- static integer nnlivx;
- extern /* Subroutine */ int littex_(integer *, integer *, integer *,
- logical *, char *, integer *, ftnlen);
- static integer ictemp;
- extern /* Subroutine */ int getfig_(integer *, char *, char *, integer *,
- logical *, integer *, integer *, integer *, char *, integer *,
- integer *, integer *, ftnlen, ftnlen, ftnlen);
- static integer nactmp;
- extern /* Subroutine */ int getdyn_(integer *, integer *, integer *,
- integer *, char *, integer *, ftnlen);
- static integer nodurt;
- extern integer ncmidf_(char *, ftnlen);
- static integer nnliiv;
- extern /* Subroutine */ int getbuf_(char *, ftnlen), printl_(char *,
- ftnlen);
- static integer ibaroff, lenbeat;
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen), getmidi_(integer *, char *, integer *, integer *,
- integer *, integer *, integer *, integer *, integer *, logical *,
- ftnlen), readnum_(char *, integer *, char *, real *, ftnlen,
- ftnlen);
- static integer nindent;
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *), chkpm4ac_(char *, integer *, integer *, logical *,
- ftnlen);
- extern integer ifnodur_(integer *, char *, ftnlen);
- static integer numshft, iofforn;
- static real xofforn;
- extern integer ifnolev_(char *, integer *, integer *, ftnlen), numclef_(
- char *, ftnlen);
- static integer itother;
- extern /* Subroutine */ int spsslur_(char *, integer *, integer *,
- integer *, integer *, integer *, integer *, integer *, integer *,
- integer *, logical *, integer *, char *, ftnlen, ftnlen),
- g1etchar_(char *, integer *, char *, ftnlen, ftnlen);
- static real fmovbrk;
- static integer lvoltxt, ltopnam;
-
- /* Fortran I/O blocks */
- static cilist io___768 = { 0, 11, 0, "(a)", 0 };
- static cilist io___776 = { 0, 6, 0, 0, 0 };
- static cilist io___787 = { 0, 6, 0, 0, 0 };
- static cilist io___788 = { 0, 6, 0, 0, 0 };
- static cilist io___799 = { 0, 6, 0, 0, 0 };
- static cilist io___800 = { 0, 6, 0, 0, 0 };
- static cilist io___816 = { 0, 6, 0, 0, 0 };
- static cilist io___817 = { 0, 6, 0, 0, 0 };
- static cilist io___818 = { 0, 6, 0, 0, 0 };
- static cilist io___820 = { 0, 6, 0, 0, 0 };
- static cilist io___825 = { 0, 11, 0, "(a)", 0 };
- static cilist io___826 = { 0, 11, 0, "(a)", 0 };
- static cilist io___829 = { 0, 11, 0, "(a)", 0 };
- static cilist io___830 = { 0, 11, 0, "(a)", 0 };
- static cilist io___831 = { 0, 11, 0, "(a)", 0 };
- static cilist io___832 = { 0, 11, 0, "(a)", 0 };
- static cilist io___833 = { 0, 11, 0, "(a)", 0 };
- static cilist io___834 = { 0, 11, 0, "(a11,i2,a)", 0 };
- static cilist io___835 = { 0, 11, 0, "(a9,i2,a)", 0 };
- static cilist io___837 = { 0, 11, 0, "(a8,i1,a3)", 0 };
- static cilist io___838 = { 0, 11, 0, "(a9,i2,a4)", 0 };
- static cilist io___839 = { 0, 11, 0, "(a8,i1,a)", 0 };
- static cilist io___840 = { 0, 11, 0, "(a9,i2,a)", 0 };
- static cilist io___841 = { 0, 6, 0, 0, 0 };
- static cilist io___842 = { 0, 6, 0, 0, 0 };
- static cilist io___851 = { 0, 6, 0, 0, 0 };
- static cilist io___853 = { 0, 11, 0, "(a)", 0 };
- static cilist io___854 = { 0, 11, 0, "(a)", 0 };
- static cilist io___855 = { 0, 11, 0, "(a)", 0 };
- static cilist io___856 = { 0, 11, 0, "(a)", 0 };
- static cilist io___858 = { 0, 11, 0, "(a)", 0 };
- static cilist io___861 = { 0, 11, 0, "(a)", 0 };
- static cilist io___862 = { 0, 11, 0, "(a)", 0 };
- static cilist io___863 = { 0, 11, 0, "(a)", 0 };
- static cilist io___864 = { 0, 11, 0, "(a)", 0 };
- static cilist io___865 = { 0, 11, 0, "(a)", 0 };
- static cilist io___866 = { 0, 11, 0, "(a)", 0 };
- static cilist io___867 = { 0, 11, 0, "(a)", 0 };
- static cilist io___868 = { 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 12560 ""
- cdot = FALSE_;
-#line 12561 ""
- inxtup = FALSE_;
-#line 12562 ""
-L1:
-#line 12562 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 12563 ""
- if (comget_1.lastchar) {
-#line 12563 ""
- return 0;
-#line 12563 ""
- }
-#line 12564 ""
- if (*(unsigned char *)charq == ' ') {
-#line 12564 ""
- goto L1;
-#line 12564 ""
- }
-#line 12565 ""
- if (*(unsigned char *)charq == '%') {
-
-/* Check for a bar number format: */
-
-#line 12569 ""
- if (all_1.iccount == 1 && *(unsigned char *)&lineq[1] == ' ' &&
- i_indx("bB1234567890", lineq + 2, (ftnlen)12, (ftnlen)1) > 0)
- {
-#line 12571 ""
- if (comlast_1.islast) {
-#line 12571 ""
- s_wsfe(&io___768);
-#line 12571 ""
- do_fio(&c__1, lineq, lenstr_(lineq, &c__128, (ftnlen)128));
-#line 12571 ""
- e_wsfe();
-#line 12571 ""
- }
-#line 12572 ""
- }
-#line 12573 ""
- all_1.iccount = 128;
-#line 12574 ""
- goto L1;
-#line 12575 ""
- }
-
-/* Closing repeat iff charq='/' and the prev. char was 'R' with 'd' or 'r' */
-
-#line 12579 ""
- if (comget_1.rptprev) {
-#line 12580 ""
- comget_1.rptnd1 = *(unsigned char *)charq == '/';
-#line 12581 ""
- comget_1.rptprev = FALSE_;
-#line 12582 ""
- }
-
-/* Repeat at end of a piece */
-
-#line 12586 ""
- if (*(unsigned char *)charq >= 97 && *(unsigned char *)charq <= 103 || *(
- unsigned char *)charq == 'r') {
-#line 12588 ""
- if (cdot) {
-#line 12588 ""
- goto L28;
-#line 12588 ""
- }
-
-/* This is a note/rest. */
-
-#line 12592 ""
- idotform = 0;
-#line 12593 ""
- numnum = 0;
-
-/* If start of line of music, set pitch from previous */
-
-#line 12597 ""
- if (commvl_1.ivx <= all_1.nv) {
-#line 12598 ""
- kv = 1;
-#line 12599 ""
- } else {
-#line 12600 ""
- kv = 2;
-#line 12601 ""
- }
-#line 12602 ""
- if (all_1.nnl[commvl_1.ivx - 1] == 0) {
-#line 12602 ""
- comnotes_1.lastlev = comnotes_1.ndlev[all_1.iv + kv * 24 - 25];
-#line 12602 ""
- }
-
-/* notcrd is used to tell if orn. goes on main note or chord note */
-
-/* notcrd = .true. !Move dow. Was not observed if dotted shortcut. */
-
-/* Increase note count, then loop 'til blank. Label 28 is for dotted shortcuts. */
-
-#line 12610 ""
-L28:
-
-/* Moved this from just above, 2 Feb 02 */
-
-#line 12614 ""
- comnotes_1.notcrd = TRUE_;
-#line 12615 ""
- ++all_1.nnl[commvl_1.ivx - 1];
-#line 12616 ""
- if (comget_1.ornrpt) {
-
-/* Replicate ornament bits, also bit 23 for beam handling if chord. */
-
-#line 12620 ""
- all_1.iornq[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 1]
- |= all_1.iornq[commvl_1.ivx - 1];
-#line 12621 ""
- 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 12625 ""
- ++comtrill_1.ntrill;
-#line 12626 ""
- comtrill_1.ivtrill[comtrill_1.ntrill - 1] = commvl_1.ivx;
-#line 12627 ""
- comtrill_1.iptrill[comtrill_1.ntrill - 1] = all_1.nnl[
- commvl_1.ivx - 1];
-#line 12628 ""
- comtrill_1.xnsktr[comtrill_1.ntrill - 1] = comtrill_1.xnsktr[
- comtrill_1.ntrill - 2];
-#line 12629 ""
- }
-#line 12630 ""
- }
-#line 12631 ""
- if (comget_1.stickys) {
-
-/* Grab stemlength shortening parameters from prior note */
-
-#line 12635 ""
- 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);
-/* call setbits (mult(ivx,nnl(ivx)),3,28, */
-/* * igetbits(mult(ivx,nnl(ivx)-1),3,28)) */
-#line 12638 ""
- i__1 = igetbits_(&all_1.mult[commvl_1.ivx + (all_1.nnl[
- commvl_1.ivx - 1] - 1) * 24 - 25], &c__6, &c__10);
-#line 12638 ""
- setbits_(&all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] *
- 24 - 25], &c__6, &c__10, &i__1);
-#line 12640 ""
- }
-#line 12641 ""
- if (comfb_1.autofbon && comfb_1.tautofb > comtol_1.tol && !
- comget_1.fbon) {
-
-/* Doing auto forced beams, and period has been set, so check if this note */
-/* starts a period. */
-
-/* if (mod(1.*itsofar(ivx),tautofb) .lt. tol) then */
-#line 12647 ""
- r__1 = all_1.itsofar[commvl_1.ivx - 1] - comfb_1.t1autofb;
-#line 12647 ""
- if (r_mod(&r__1, &comfb_1.tautofb) < comtol_1.tol) {
-
-/* Start a forced beam here */
-
-#line 12651 ""
- ++comfb_1.nfb[commvl_1.ivx - 1];
-#line 12652 ""
- comget_1.fbon = TRUE_;
-#line 12653 ""
- *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.nfb[
- commvl_1.ivx - 1] * 24 - 25] = 'x';
-#line 12654 ""
- comfb_1.t1fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] *
- 24 - 25] = (real) all_1.itsofar[commvl_1.ivx - 1];
-#line 12655 ""
- }
-#line 12656 ""
- }
-#line 12657 ""
- if (comget_1.fbon) {
-#line 12657 ""
- 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 12657 ""
- }
-#line 12658 ""
- *(unsigned char *)dotq = 'x';
-#line 12659 ""
- if (*(unsigned char *)charq == 'r') {
-#line 12659 ""
- 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 12659 ""
- }
-#line 12661 ""
- 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 12665 ""
- i__1 = all_1.iccount;
-#line 12665 ""
- if (s_cmp(lineq + i__1, " ", all_1.iccount + 1 - i__1, (ftnlen)1)
- == 0 && all_1.nnl[commvl_1.ivx - 1] > 1) {
-#line 12667 ""
- if (bit_test(all_1.islur[commvl_1.ivx + (all_1.nnl[
- commvl_1.ivx - 1] - 1) * 24 - 25],19)) {
-#line 12667 ""
- 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 12667 ""
- }
-#line 12669 ""
- }
-
-/* 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 12675 ""
- if (commvl_1.ivx <= all_1.nv) {
-#line 12676 ""
- all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 -
- 25] = 0;
-#line 12677 ""
- } else {
-#line 12678 ""
- all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 -
- 25] = 2;
-#line 12679 ""
- }
-#line 12680 ""
- }
-#line 12681 ""
-L2:
-#line 12681 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12682 ""
- ic = *(unsigned char *)durq;
-#line 12683 ""
- if (ic <= 57 && ic >= 48) {
-
-/* Digit */
-
-#line 12687 ""
- if (numnum == 0) {
-#line 12688 ""
- comnotes_1.nnodur = ic - 48;
-#line 12689 ""
- numnum = 1;
-#line 12690 ""
- goto L2;
-#line 12691 ""
- } else if (numnum == 1) {
-#line 12692 ""
- ioct = ic - 48;
-#line 12693 ""
- numnum = 2;
-#line 12694 ""
- goto L2;
-#line 12695 ""
- } else {
-#line 12696 ""
- s_wsle(&io___776);
-#line 12696 ""
- do_lio(&c__9, &c__1, ">2 digits in note sym., ivx,nn:", (
- ftnlen)31);
-#line 12696 ""
- do_lio(&c__3, &c__1, (char *)&commvl_1.ivx, (ftnlen)sizeof(
- integer));
-#line 12696 ""
- do_lio(&c__3, &c__1, (char *)&all_1.nnl[commvl_1.ivx - 1], (
- ftnlen)sizeof(integer));
-#line 12696 ""
- e_wsle();
-#line 12697 ""
- stop1_();
-#line 12698 ""
- }
-#line 12699 ""
- } else if (*(unsigned char *)durq == 'd') {
-#line 12700 ""
- *(unsigned char *)dotq = *(unsigned char *)durq;
-#line 12701 ""
- i__1 = all_1.iccount;
-#line 12701 ""
- if (s_cmp(lineq + i__1, "d", all_1.iccount + 1 - i__1, (ftnlen)1)
- == 0) {
-
-/* Double dot. */
-
-#line 12705 ""
- ++all_1.iccount;
-#line 12706 ""
- 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 12707 ""
- }
-#line 12708 ""
- i__1 = all_1.iccount;
-#line 12708 ""
- 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 12712 ""
- i__1 = all_1.iccount + 1;
-#line 12712 ""
- if (i_indx("0123456789.", lineq + i__1, (ftnlen)11,
- all_1.iccount + 2 - i__1) == 0) {
-#line 12712 ""
- goto L2;
-#line 12712 ""
- }
-#line 12714 ""
- 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 12715 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12716 ""
- ++comcc_1.ndotmv[commvl_1.ivx - 1];
-#line 12717 ""
- ++all_1.iccount;
-#line 12718 ""
- 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 12719 ""
- if (*(unsigned char *)durq == '-') {
-#line 12719 ""
- 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 12719 ""
- }
-#line 12721 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Vertical shift also */
-
-#line 12725 ""
- ++all_1.iccount;
-#line 12726 ""
- 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 12727 ""
- if (*(unsigned char *)dumq == '-') {
-#line 12727 ""
- 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 12727 ""
- }
-#line 12729 ""
- } else {
-#line 12730 ""
- comcc_1.rtdot[commvl_1.ivx + comcc_1.ndotmv[commvl_1.ivx
- - 1] * 24 - 25] = 0.f;
-#line 12731 ""
- }
-#line 12732 ""
- --all_1.iccount;
-#line 12733 ""
- }
-#line 12734 ""
- goto L2;
-#line 12735 ""
- } else if (*(unsigned char *)durq == 'p') {
-
-/* Full-bar rest as pause */
-
-#line 12739 ""
- 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 12740 ""
- goto L2;
-#line 12741 ""
- } else if (*(unsigned char *)durq == 'b') {
-
-/* Blank rest */
-
-#line 12745 ""
- 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 12746 ""
- goto L2;
-#line 12747 ""
- } else if (i_indx("fsn", durq, (ftnlen)3, (ftnlen)1) > 0) {
-
-/* Accidental */
-
-/* if (nacc(ivx,nnl(ivx)) .eq. 0) then */
-/* 171209 May have set bit 18 earlier if D or F preceded accidental */
-#line 12753 ""
- if (igetbits_(&all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx -
- 1] * 24 - 25], &c__2, &c__0) == 0) {
-
-/* No accidental has been set yet */
-
-/* nacc(ivx,nnl(ivx)) = index('fsn',durq) */
-#line 12758 ""
- all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 -
- 25] |= i_indx("fsn", durq, (ftnlen)3, (ftnlen)1);
-#line 12760 ""
- } else {
-
-/* Repeated accid, so must be double */
-
-#line 12764 ""
- 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 12765 ""
- }
-#line 12766 ""
- goto L2;
-#line 12767 ""
- } else if (*(unsigned char *)durq == 'i') {
-
-/* Set flag for MIDI-only accidental. */
-
-#line 12771 ""
- 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 12772 ""
- goto L2;
-#line 12773 ""
- } else if (*(unsigned char *)durq == 'c') {
-
-/* Set flags for cautionary accidental */
-
-#line 12777 ""
- 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 12778 ""
- 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 12779 ""
- goto L2;
-#line 12780 ""
- } else if (i_indx("+-<>", durq, (ftnlen)4, (ftnlen)1) > 0) {
-#line 12781 ""
- ipm = i_indx("- +", durq, (ftnlen)3, (ftnlen)1) - 2;
-#line 12782 ""
- 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 12786 ""
- chkpm4ac_(lineq, &all_1.iccount, &all_1.nacc[commvl_1.ivx +
- all_1.nnl[commvl_1.ivx - 1] * 24 - 25], &moved, (
- ftnlen)128);
-#line 12787 ""
- if (moved) {
-#line 12787 ""
- goto L2;
-#line 12787 ""
- }
-
-/* Octave jump with a note */
-
-#line 12791 ""
- if (numnum < 2) {
-#line 12792 ""
- comnotes_1.lastlev += ipm * 7;
-#line 12793 ""
- } else {
-#line 12794 ""
- ioct += ipm;
-#line 12795 ""
- }
-#line 12796 ""
- goto L2;
-#line 12797 ""
- } else {
-
-/* Override default height of a rest */
-
-#line 12801 ""
- ++all_1.iccount;
-#line 12802 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 12803 ""
- i__1 = all_1.iccount - 2;
-#line 12803 ""
- 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 12808 ""
- --all_1.iccount;
-/* go to 2 */
-#line 12810 ""
- }
-#line 12811 ""
- 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 12815 ""
- --all_1.iccount;
-#line 12816 ""
- goto L2;
-#line 12817 ""
- }
-#line 12818 ""
- } else if (*(unsigned char *)durq == 'x') {
-
-/* Xtuplet. Count number of doubled notes (for unequal xtups) */
-
-#line 12822 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1]
- * 24 - 25],18)) {
-#line 12823 ""
- ndoub = 1;
-#line 12824 ""
- } else {
-#line 12825 ""
- ndoub = 0;
-#line 12826 ""
- }
-
-/* Initialize counter for # of non-rests, so can later unbeam if = 1. */
-
-#line 12830 ""
- inxtup = TRUE_;
-#line 12831 ""
- note1xtup = all_1.nnl[commvl_1.ivx - 1];
-#line 12832 ""
- nnb = 0;
-#line 12833 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx
- - 1] * 24 - 25],0)) {
-#line 12833 ""
- nnb = 1;
-#line 12833 ""
- }
-
-/* Will set all durations to 0 except last one. Set flag on this note. */
-
-#line 12837 ""
- 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 unless its a "T" */
-
-#line 12841 ""
- ++all_1.iccount;
-#line 12842 ""
- if (*(unsigned char *)&lineq[all_1.iccount - 1] == 'T') {
-
-/* Set up tremolo */
-
-#line 12846 ""
- 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],2);
-#line 12847 ""
- ntup = 2;
-
-/* Set default beaming, based on Wikipedia article */
-/* May be a problem here is nnodur is inherited */
-
-#line 12852 ""
- if (comnotes_1.nnodur == 4) {
-#line 12853 ""
- nsolid = 0;
-#line 12854 ""
- nindent = 3;
-#line 12855 ""
- } else if (comnotes_1.nnodur == 2) {
-#line 12856 ""
- nsolid = 3;
-#line 12857 ""
- nindent = 0;
-#line 12858 ""
- } else if (comnotes_1.nnodur == 8) {
-#line 12859 ""
- nsolid = 1;
-#line 12860 ""
- nindent = 2;
-#line 12861 ""
- }
-#line 12862 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12863 ""
- if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) > 0) {
-#line 12864 ""
- nsolid = i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1)
- - 1;
-#line 12865 ""
- if (nsolid == 0 && comnotes_1.nnodur == 2) {
-#line 12866 ""
- s_wsle(&io___787);
-#line 12866 ""
- do_lio(&c__9, &c__1, "", (ftnlen)0);
-#line 12866 ""
- e_wsle();
-#line 12867 ""
- s_wsle(&io___788);
-#line 12867 ""
- do_lio(&c__9, &c__1, "Unbeamed half-note 2-note trem"\
- "olo forbidden.", (ftnlen)44);
-#line 12867 ""
- e_wsle();
-#line 12868 ""
- stop1_();
-#line 12869 ""
- }
-#line 12870 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 12871 ""
- if (i_indx("0123456789", durq, (ftnlen)10, (ftnlen)1) > 0)
- {
-#line 12872 ""
- nindent = i_indx("0123456789", durq, (ftnlen)10, (
- ftnlen)1) - 1;
-#line 12873 ""
- }
-#line 12874 ""
- }
-#line 12875 ""
- setbits_(&all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx -
- 1] * 24 - 25], &c__2, &c__3, &nsolid);
-#line 12876 ""
- setbits_(&all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx -
- 1] * 24 - 25], &c__2, &c__5, &nindent);
-#line 12877 ""
- if (nsolid == 0) {
-#line 12878 ""
- 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 12880 ""
- }
-#line 12881 ""
- 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 12882 ""
- 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 12883 ""
- setbits_(&all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx
- - 1] + 1) * 24 - 25], &c__3, &c__22, &nsolid);
-
-/* Set some force-beam parameters for the tremolo */
-
-/* Need to check if there's already a forced beam explicitly set here. */
-/* If there was, shouldn't do any harm resetting parameters. */
-
-#line 12890 ""
- if (comfb_1.nfb[commvl_1.ivx - 1] == 0 || comfb_1.t1fb[
- commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] * 24 -
- 25] != (real) all_1.itsofar[commvl_1.ivx - 1]) {
-#line 12890 ""
- ++comfb_1.nfb[commvl_1.ivx - 1];
-#line 12890 ""
- }
-#line 12892 ""
- comget_1.fbon = TRUE_;
-#line 12893 ""
- *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.nfb[
- commvl_1.ivx - 1] * 24 - 25] = 'x';
-#line 12894 ""
- comfb_1.t1fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] *
- 24 - 25] = (real) all_1.itsofar[commvl_1.ivx - 1];
-#line 12895 ""
- comfb_1.t2fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] *
- 24 - 25] = (real) (all_1.itsofar[commvl_1.ivx - 1] +
- ifnodur_(&comnotes_1.nnodur, dotq, (ftnlen)1));
-#line 12896 ""
- nadj = 0;
-
-/* Set open beamed notehead flag for half-note tremolo */
-/* Just gave 2 quarters with or without flag set. Need to fix */
-
-#line 12901 ""
- } else {
-#line 12902 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 12903 ""
- ntup = i_nint(&fnum);
-#line 12904 ""
- }
-#line 12905 ""
- 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 12911 ""
- 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 12912 ""
- if (*(unsigned char *)durq == 'F') {
-#line 12912 ""
- 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 12912 ""
- }
-#line 12914 ""
- ndoub = 1;
-#line 12915 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12916 ""
- } else if (*(unsigned char *)durq == 'd') {
-#line 12917 ""
- 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 12918 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 12919 ""
- }
-
-/* Only other possibilities here are ' ' or 'n' */
-
-#line 12923 ""
- if (*(unsigned char *)durq == 'n') {
-
-/* Alter xtup number */
-
-#line 12927 ""
- i__1 = all_1.iccount;
-#line 12927 ""
- 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 12931 ""
- 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 12932 ""
- } else {
-#line 12933 ""
- numshft = 0;
-#line 12934 ""
-L30:
-#line 12934 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 12935 ""
- if (*(unsigned char *)durq == 'f') {
-
-/* Flip up-down-ness */
-
-#line 12939 ""
- 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 12940 ""
- goto L30;
-#line 12941 ""
- } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Vertical or horiz shift */
-
-#line 12945 ""
- ++numshft;
-#line 12946 ""
- iofforn = 1;
-#line 12947 ""
- if (*(unsigned char *)durq == '-') {
-#line 12947 ""
- iofforn = -1;
-#line 12947 ""
- }
-#line 12948 ""
- ++all_1.iccount;
-#line 12949 ""
- readnum_(lineq, &all_1.iccount, durq, &xofforn, (
- ftnlen)128, (ftnlen)1);
-#line 12950 ""
- --all_1.iccount;
-#line 12951 ""
- if (numshft == 1) {
-
-/* Vertical shift */
-/* 160214 Allow (-64,64) */
-/* iofforn = iofforn*nint(xofforn) + 16 */
-#line 12956 ""
- iofforn = iofforn * i_nint(&xofforn) + 64;
-
-/* 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 */
-
-/* irest(ivx,nnl(ivx)) = */
-/* * ior(irest(ivx,nnl(ivx)),2+4*iofforn) */
-#line 12963 ""
- 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],1);
-#line 12964 ""
- setbits_(&all_1.mult[commvl_1.ivx + all_1.nnl[
- commvl_1.ivx - 1] * 24 - 25], &c__8, &
- c__16, &iofforn);
-#line 12965 ""
- } else {
-
-/* Horizontal shift */
-
-#line 12969 ""
- r__1 = xofforn * 10;
-#line 12969 ""
- iofforn = iofforn * i_nint(&r__1) + 16;
-#line 12970 ""
- 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 12971 ""
- setbits_(&all_1.irest[commvl_1.ivx + all_1.nnl[
- commvl_1.ivx - 1] * 24 - 25], &c__5, &
- c__9, &iofforn);
-#line 12972 ""
- }
-#line 12973 ""
- goto L30;
-#line 12974 ""
- } else if (*(unsigned char *)durq == 's') {
-
-/* Slope adjustment for bracket */
-
-#line 12978 ""
- 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 12979 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 12980 ""
- iofforn = i_indx("- +", durq, (ftnlen)3, (ftnlen)1) -
- 2;
-#line 12981 ""
- ++all_1.iccount;
-#line 12982 ""
- readnum_(lineq, &all_1.iccount, durq, &xofforn, (
- ftnlen)128, (ftnlen)1);
-#line 12983 ""
- --all_1.iccount;
-#line 12984 ""
- r__1 = iofforn * xofforn + 16;
-#line 12984 ""
- iofforn = i_nint(&r__1);
-#line 12985 ""
- setbits_(&all_1.mult[commvl_1.ivx + all_1.nnl[
- commvl_1.ivx - 1] * 24 - 25], &c__5, &c__5, &
- iofforn);
-#line 12986 ""
- } else if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1)
- > 0) {
-
-/* Replacement printed number */
-
-#line 12990 ""
- readnum_(lineq, &all_1.iccount, durq, &xofforn, (
- ftnlen)128, (ftnlen)1);
-#line 12991 ""
- i__1 = i_nint(&xofforn);
-#line 12991 ""
- setbits_(&all_1.nacc[commvl_1.ivx + all_1.nnl[
- commvl_1.ivx - 1] * 24 - 25], &c__5, &c__22, &
- i__1);
-#line 12992 ""
- --all_1.iccount;
-#line 12993 ""
- goto L30;
-#line 12994 ""
- }
-#line 12995 ""
- }
-#line 12996 ""
- }
-
-/* Set note level of 1st note of xtup, provided not a rest */
-
-#line 13000 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx
- - 1] * 24 - 25],0)) {
-#line 13001 ""
- if (numnum == 2) {
-#line 13002 ""
- comnotes_1.lastlev = ifnolev_(charq, &ioct, &
- cominsttrans_1.itransamt[cominsttrans_1.instno[
- all_1.iv - 1] - 1], (ftnlen)1);
-#line 13003 ""
- all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] *
- 24 - 25] = comnotes_1.lastlev;
-#line 13004 ""
- } else {
-#line 13005 ""
- 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 13007 ""
- all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] *
- 24 - 25] = comnotes_1.lastlev;
-#line 13008 ""
- }
-#line 13009 ""
- }
-#line 13010 ""
- 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 13014 ""
- setbits_(&all_1.isdat2[all_1.nsdat - comnotes_1.npreslur], &
- c__7, &c__19, &comnotes_1.lastlev);
-#line 13015 ""
-/* L40: */
-#line 13015 ""
- }
-#line 13016 ""
- numnum = 0;
-#line 13017 ""
- all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25]
- = 0;
-#line 13018 ""
- i__1 = ntup;
-#line 13018 ""
- for (itup = 2; itup <= i__1; ++itup) {
-#line 13019 ""
- if (comget_1.ornrpt) {
-#line 13020 ""
- 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 13022 ""
- 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 13026 ""
- ++comtrill_1.ntrill;
-#line 13027 ""
- comtrill_1.ivtrill[comtrill_1.ntrill - 1] =
- commvl_1.ivx;
-#line 13028 ""
- comtrill_1.iptrill[comtrill_1.ntrill - 1] = all_1.nnl[
- commvl_1.ivx - 1];
-#line 13029 ""
- comtrill_1.xnsktr[comtrill_1.ntrill - 1] =
- comtrill_1.xnsktr[comtrill_1.ntrill - 2];
-#line 13030 ""
- }
-#line 13031 ""
- }
-#line 13032 ""
- ++all_1.nnl[commvl_1.ivx - 1];
-#line 13033 ""
- if (comget_1.fbon) {
-#line 13033 ""
- 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 13033 ""
- }
-#line 13034 ""
-L7:
-#line 13034 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1)
- ;
-#line 13035 ""
- if (*(unsigned char *)charq == ' ') {
-#line 13036 ""
- goto L7;
-#line 13037 ""
- } else if (*(unsigned char *)charq == '%') {
-#line 13038 ""
- all_1.iccount = 128;
-#line 13039 ""
- goto L7;
-#line 13040 ""
- } else if (*(unsigned char *)charq == 'o') {
-
-/* Ornament in xtuplet. "o" symbol must come AFTER the affected note */
-
-#line 13044 ""
- if (comnotes_1.notcrd) {
-#line 13045 ""
- nole = all_1.nolev[commvl_1.ivx + (all_1.nnl[
- commvl_1.ivx - 1] - 1) * 24 - 25];
-#line 13046 ""
- } else {
-#line 13047 ""
- nole = 127 & lbit_shift(comtrill_1.icrdat[
- comtrill_1.ncrd - 1], (ftnlen)-12);
-#line 13048 ""
- }
-#line 13049 ""
- i__2 = all_1.nnl[commvl_1.ivx - 1] - 1;
-#line 13049 ""
- 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 13052 ""
- goto L7;
-#line 13053 ""
- } else if (i_indx("st(){}", charq, (ftnlen)6, (ftnlen)1) > 0)
- {
-#line 13054 ""
- nnlivx = all_1.nnl[commvl_1.ivx - 1] - 1;
-#line 13055 ""
- if (*(unsigned char *)charq == '(' || *(unsigned char *)
- charq == '{') {
-
-/* Detected preslur in xtuplet loop, non-chord note */
-
-#line 13059 ""
- ++nnlivx;
-#line 13060 ""
- ++comnotes_1.npreslur;
-#line 13061 ""
- }
-#line 13062 ""
- all_1.islur[commvl_1.ivx + nnlivx * 24 - 25] = bit_set(
- all_1.islur[commvl_1.ivx + nnlivx * 24 - 25],0);
-#line 13063 ""
- if (*(unsigned char *)charq == 't') {
-#line 13063 ""
- all_1.islur[commvl_1.ivx + nnlivx * 24 - 25] =
- bit_set(all_1.islur[commvl_1.ivx + nnlivx *
- 24 - 25],1);
-#line 13063 ""
- }
-#line 13065 ""
- if (commvl_1.ivx <= all_1.nv) {
-#line 13066 ""
- kv = 1;
-#line 13067 ""
- } else {
-#line 13068 ""
- kv = 2;
-#line 13069 ""
- }
-#line 13070 ""
- if (comslur_1.fontslur) {
-#line 13071 ""
- 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 13073 ""
- } else {
-#line 13074 ""
- 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 13076 ""
- }
-#line 13077 ""
- goto L7;
-#line 13078 ""
- } else if (*(unsigned char *)charq == 'G') {
-
-/* Kluge to get grace in xtup at right location */
-
-#line 13082 ""
- --all_1.nnl[commvl_1.ivx - 1];
-#line 13083 ""
- 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 13085 ""
- ++all_1.nnl[commvl_1.ivx - 1];
-#line 13086 ""
- goto L7;
-#line 13087 ""
- } else if (*(unsigned char *)charq == *(unsigned char *)
- all_1.sq) {
-#line 13088 ""
- littex_(all_1.islur, &all_1.nnl[commvl_1.ivx - 1], &
- commvl_1.ivx, &comas3_1.topmods, lineq, &
- all_1.iccount, (ftnlen)128);
-#line 13089 ""
- goto L7;
-#line 13090 ""
- } else if (*(unsigned char *)charq == '"') {
-
-/* pmxlyr string in xtup. Expand "..." to \pmxlyr{...}\ */
-
-#line 13094 ""
- if (! comlyr_1.inputmlyr) {
-#line 13095 ""
- ictemp = 0;
-/* Writing concatenation */
-#line 13096 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 13096 ""
- i__3[1] = 1, a__1[1] = all_1.sq;
-#line 13096 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 13096 ""
- i__3[3] = 15, a__1[3] = "input musixlyr ";
-#line 13096 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 13096 ""
- s_cat(lineqt, a__1, i__3, &c__5, (ftnlen)128);
-#line 13097 ""
- i__2 = all_1.nnl[commvl_1.ivx - 1] + 1;
-#line 13097 ""
- littex_(all_1.islur, &i__2, &commvl_1.ivx, &
- comas3_1.topmods, lineqt, &ictemp, (ftnlen)
- 128);
-#line 13098 ""
- comlyr_1.inputmlyr = TRUE_;
-#line 13099 ""
- }
-#line 13100 ""
- dopmxlyr_(lineq, &all_1.iccount, (ftnlen)128);
-#line 13101 ""
- *(unsigned char *)charq = *(unsigned char *)all_1.sq;
-#line 13102 ""
- littex_(all_1.islur, &all_1.nnl[commvl_1.ivx - 1], &
- commvl_1.ivx, &comas3_1.topmods, lineq, &
- all_1.iccount, (ftnlen)128);
-#line 13103 ""
- goto L7;
-#line 13104 ""
- } else if (i_indx("0123456789#-nx_", charq, (ftnlen)15, (
- ftnlen)1) > 0) {
-
-/* Figure. Must come AFTER the first note of xtup */
-
-#line 13108 ""
- ivf = 1;
-#line 13109 ""
- if (commvl_1.ivx > 1) {
-#line 13110 ""
- if (comfig_1.ivxfig2 == 0) {
-#line 13111 ""
- comfig_1.ivxfig2 = commvl_1.ivx;
-#line 13112 ""
- } else if (commvl_1.ivx != comfig_1.ivxfig2) {
-#line 13113 ""
- s_wsle(&io___799);
-#line 13113 ""
- e_wsle();
-#line 13114 ""
- s_wsle(&io___800);
-#line 13114 ""
- do_lio(&c__9, &c__1, "Figures not allowed in >1 "\
- "voice above first", (ftnlen)43);
-#line 13114 ""
- e_wsle();
-#line 13115 ""
- s_stop("", (ftnlen)0);
-#line 13116 ""
- }
-#line 13117 ""
- ivf = 2;
-#line 13118 ""
- }
-#line 13119 ""
- nfig1 = comfig_1.nfigs[ivf - 1] + 1;
-#line 13120 ""
- 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], &
- comfig_1.itfig[ivf + (nfig1 << 1) - 3], &
- all_1.itsofar[commvl_1.ivx - 1], &c__0,
- comfig_1.figq + (ivf + (nfig1 << 1) - 3) * 10, &
- comfig_1.ivupfig[ivf + (nfig1 << 1) - 3], &
- comfig_1.ivvfig[ivf + (nfig1 << 1) - 3], &
- comfig_1.nfigs[ivf - 1], (ftnlen)1, (ftnlen)128, (
- ftnlen)10);
-/* * 0,figq(ivf,nfig1),ivupfig(ivf,nfig1),nfigs(ivf)) */
-#line 13125 ""
- goto L7;
-#line 13126 ""
- } else if (*(unsigned char *)charq == 'X') {
-/* Computing MAX */
-#line 13127 ""
- i__2 = 1, i__4 = all_1.nnl[commvl_1.ivx - 1] - 1;
-#line 13127 ""
- getx_(lineq, &all_1.iccount, &all_1.irest[commvl_1.ivx +
- max(i__2,i__4) * 24 - 25], &comnotes_1.shifton, &
- comask_1.wheadpt, &all_1.iornq[commvl_1.ivx +
- all_1.nnl[commvl_1.ivx - 1] * 24 - 1], &
- commvl_1.ivx, &all_1.irest[commvl_1.ivx +
- all_1.nnl[commvl_1.ivx - 1] * 24 - 25], &
- all_1.itsofar[commvl_1.ivx - 1], &ntup, &itup, &
- comnotes_1.nnodur, dotq, &ndoub, (ftnlen)128, (
- ftnlen)1);
-#line 13131 ""
- goto L7;
-#line 13132 ""
- } else if (*(unsigned char *)charq == 'z') {
-
-/* Chord note in xtup. Goes with *prior* note. */
-
-#line 13136 ""
- comnotes_1.notcrd = FALSE_;
-#line 13137 ""
- ++comtrill_1.ncrd;
-#line 13138 ""
- 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 13139 ""
- numnum = 0;
-/* icrdat(ncrd) = ior(nnl(ivx)-1,ishft(ivx,8)) */
-#line 13141 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = all_1.nnl[
- commvl_1.ivx - 1] - 1;
-#line 13142 ""
- i__2 = commvl_1.ivx % 16;
-#line 13142 ""
- setbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__4, &
- c__8, &i__2);
-#line 13143 ""
- if (commvl_1.ivx >= 16) {
-#line 13143 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],28);
-#line 13143 ""
- }
-#line 13144 ""
- comtrill_1.icrdorn[comtrill_1.ncrd - 1] = 0;
-
-/* Get note name */
-
-#line 13148 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (
- ftnlen)1);
-
-/* Get optional inputs */
-
-#line 13152 ""
-L34:
-#line 13152 ""
- 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 13156 ""
- ndx = i_indx("fsn+-<>12345678reicd", durq, (ftnlen)20, (
- ftnlen)1);
-#line 13157 ""
- if (ndx > 0) {
-#line 13158 ""
- if (ndx <= 3) {
-#line 13159 ""
- if (! bit_test(comtrill_1.icrdat[comtrill_1.ncrd
- - 1],19)) {
-#line 13160 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] =
- bit_set(comtrill_1.icrdat[
- comtrill_1.ncrd - 1],19);
-#line 13161 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] |= ndx
- << 20;
-#line 13162 ""
- } else {
-#line 13163 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] =
- bit_set(comtrill_1.icrdat[
- comtrill_1.ncrd - 1],22);
-#line 13164 ""
- }
-#line 13165 ""
- } else if (*(unsigned char *)durq == 'd') {
-
-/* Get dot on chord note in xtup. Assume +n+n */
-
-#line 13169 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],26)
- ;
-#line 13170 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128,
- (ftnlen)1);
-#line 13171 ""
- ++all_1.iccount;
-#line 13172 ""
- readnum_(lineq, &all_1.iccount, dumq, &fnum, (
- ftnlen)128, (ftnlen)1);
-#line 13173 ""
- if (*(unsigned char *)durq == '+') {
-#line 13174 ""
- r__1 = fnum * 10;
-#line 13174 ""
- comtrill_1.icrdot[comtrill_1.ncrd - 1] |=
- i_nint(&r__1) + 64;
-#line 13175 ""
- } else {
-#line 13176 ""
- r__1 = fnum * 10;
-#line 13176 ""
- comtrill_1.icrdot[comtrill_1.ncrd - 1] |=
- -i_nint(&r__1) + 64;
-#line 13177 ""
- }
-#line 13178 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0)
- {
-
-/* Vertical shift specified also */
-
-#line 13182 ""
- ++all_1.iccount;
-#line 13183 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (
- ftnlen)128, (ftnlen)1);
-#line 13184 ""
- if (*(unsigned char *)dumq == '+') {
-#line 13185 ""
- r__1 = fnum * 10;
-#line 13185 ""
- ifnum = i_nint(&r__1) + 64;
-#line 13186 ""
- } else {
-#line 13187 ""
- r__1 = fnum * 10;
-#line 13187 ""
- ifnum = -i_nint(&r__1) + 64;
-#line 13188 ""
- }
-#line 13189 ""
- } else {
-#line 13190 ""
- ifnum = 64;
-#line 13191 ""
- }
-#line 13192 ""
- comtrill_1.icrdot[comtrill_1.ncrd - 1] |= ifnum <<
- 7;
-#line 13193 ""
- --all_1.iccount;
-/* iccount = iccount+4 */
-
-
-
-#line 13198 ""
- } else if (ndx == 19) {
-
-/* Set flags for cautionary accidental */
-
-#line 13202 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],31)
- ;
-#line 13203 ""
- 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 13205 ""
- } else if (ndx <= 7) {
-
-/* +/-/</> Check whether octave or accidental shift */
-
-#line 13209 ""
- nactmp = 0;
-#line 13210 ""
- chkpm4ac_(lineq, &all_1.iccount, &nactmp, &moved,
- (ftnlen)128);
-#line 13211 ""
- if (moved) {
-
-/* Transfer accidental shift values */
-
-#line 13215 ""
- i__2 = igetbits_(&nactmp, &c__6, &c__4);
-#line 13215 ""
- setbits_(&comtrill_1.icrdot[comtrill_1.ncrd -
- 1], &c__6, &c__14, &i__2);
-#line 13217 ""
- i__2 = igetbits_(&nactmp, &c__7, &c__10);
-#line 13217 ""
- setbits_(&comtrill_1.icrdot[comtrill_1.ncrd -
- 1], &c__7, &c__20, &i__2);
-#line 13219 ""
- } else {
-#line 13220 ""
- if (*(unsigned char *)durq == '+') {
-#line 13221 ""
- comnotes_1.lastlev += 7;
-#line 13222 ""
- } else if (*(unsigned char *)durq == '-') {
-#line 13223 ""
- comnotes_1.lastlev += -7;
-#line 13224 ""
- }
-#line 13225 ""
- }
-#line 13226 ""
- } else if (*(unsigned char *)durq == 'e') {
-#line 13227 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],23)
- ;
-#line 13228 ""
- 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 13229 ""
- } else if (*(unsigned char *)durq == 'r') {
-#line 13230 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],24)
- ;
-#line 13231 ""
- 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 13233 ""
- } else if (*(unsigned char *)durq == 'i') {
-
-/* Midi-only accidental */
-
-#line 13237 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],27)
- ;
-#line 13238 ""
- } else {
-
-/* must be a number, save it in ioct */
-
-#line 13242 ""
- numnum = 1;
-#line 13243 ""
- ioct = ndx - 7;
-#line 13244 ""
- }
-#line 13245 ""
- goto L34;
-#line 13246 ""
- }
-#line 13247 ""
- if (numnum == 1) {
-#line 13248 ""
- comnotes_1.lastlev = ifnolev_(charq, &ioct, &
- cominsttrans_1.itransamt[
- cominsttrans_1.instno[all_1.iv - 1] - 1], (
- ftnlen)1);
-#line 13249 ""
- } else {
-#line 13250 ""
- 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 13252 ""
- }
-#line 13253 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] |=
- comnotes_1.lastlev << 12;
-#line 13254 ""
- 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 13258 ""
- setbits_(&all_1.isdat2[all_1.nsdat -
- comnotes_1.npreslur], &c__7, &c__19, &
- comnotes_1.lastlev);
-
-/* Following lines copied from loop for non-xtup, chord note, preslur */
-/* Initially I assigned the slur(s) to next note, so fix. */
-
-#line 13263 ""
- 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 13264 ""
- 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 13265 ""
- all_1.isdat2[all_1.nsdat - comnotes_1.npreslur] =
- bit_set(all_1.isdat2[all_1.nsdat -
- comnotes_1.npreslur],0);
-#line 13267 ""
- i__2 = igetbits_(&all_1.isdat1[all_1.nsdat -
- comnotes_1.npreslur], &c__8, &c__3) - 1;
-#line 13267 ""
- setbits_(&all_1.isdat1[all_1.nsdat -
- comnotes_1.npreslur], &c__8, &c__3, &i__2);
-#line 13269 ""
-/* L41: */
-#line 13269 ""
- }
-#line 13270 ""
- goto L7;
-#line 13271 ""
- } else if (*(unsigned char *)charq == '?') {
-
-/* Arpeggio */
-
-#line 13275 ""
- 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 13280 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],25);
-#line 13281 ""
- } else {
-#line 13282 ""
- 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 13283 ""
- }
-
-/* Check for shift */
-
-#line 13287 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 13288 ""
- if (*(unsigned char *)durq == ' ') {
-#line 13289 ""
- --all_1.iccount;
-#line 13290 ""
- } else {
-
-/* durq must be "-" */
-
-#line 13294 ""
- ++all_1.iccount;
-#line 13295 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)
- 128, (ftnlen)1);
-#line 13296 ""
- --all_1.iccount;
-
-/* record the shift */
-
-#line 13300 ""
- ++comarpshift_1.numarpshift;
-#line 13301 ""
- comarpshift_1.ivarpshift[comarpshift_1.numarpshift -
- 1] = commvl_1.ivx;
-#line 13302 ""
- comarpshift_1.iparpshift[comarpshift_1.numarpshift -
- 1] = all_1.nnl[commvl_1.ivx - 1] - 1;
-#line 13303 ""
- comarpshift_1.arpshift[comarpshift_1.numarpshift - 1]
- = fnum;
-#line 13304 ""
- }
-#line 13305 ""
- goto L7;
-#line 13306 ""
- } else if (*(unsigned char *)charq == 'D') {
-#line 13307 ""
- i__2 = all_1.nnl[commvl_1.ivx - 1] - 1;
-#line 13307 ""
- 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 13309 ""
- goto L7;
-
-/* 140215 Allow clef change inside xtuplet. With normal code, came out one */
-/* note too late, so try making it come earlier. */
-
-#line 13314 ""
- } else if (*(unsigned char *)charq == 'C') {
-
-/* Clef change on next note. Set bits 11-15. Won't allow in 2nd line of music. */
-
-#line 13318 ""
- if (all_1.nnl[all_1.iv - 1] - 1 > 0) {
-#line 13318 ""
- ++comcc_1.ncc[all_1.iv - 1];
-#line 13318 ""
- }
-
-/* 140218 Need to get time differently inside xtup, since itsofar doesn't get */
-/* updated until after xtup is done */
-
-#line 13323 ""
- nodurt = ifnodur_(&comnotes_1.nnodur, dotq, (ftnlen)1);
-#line 13324 ""
- 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)));
-#line 13325 ""
- isl = bit_set(all_1.islur[all_1.iv + all_1.nnl[all_1.iv -
- 1] * 24 - 25],11);
-#line 13326 ""
- 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 13330 ""
- i__2 = numclef_(durq, (ftnlen)1);
-#line 13330 ""
- isl |= min(i__2,7) << 12;
-#line 13331 ""
- comcc_1.ncmidcc[all_1.iv + comcc_1.ncc[all_1.iv - 1] * 24
- - 25] = ncmidf_(durq, (ftnlen)1);
-#line 13332 ""
- if (*(unsigned char *)durq == '8') {
-#line 13333 ""
- 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 13334 ""
- cominsttrans_1.itransamt[cominsttrans_1.instno[
- all_1.iv - 1] - 1] += 7;
-#line 13335 ""
- }
-
-/* Set marker on note with lowest voice # starting at same time. */
-
-#line 13339 ""
- if (all_1.iv == 1) {
-#line 13340 ""
- isl = bit_set(isl,15);
-#line 13341 ""
- } else {
-#line 13342 ""
- i__2 = all_1.iv;
-#line 13342 ""
- for (iiv = 1; iiv <= i__2; ++iiv) {
-/* nnliiv = nnl(iiv) */
-#line 13344 ""
- nnliiv = all_1.nnl[iiv - 1] - 1;
-#line 13345 ""
- if (iiv == all_1.iv) {
-#line 13345 ""
- ++nnliiv;
-#line 13345 ""
- }
-#line 13346 ""
- itother = 0;
-#line 13347 ""
- i__4 = nnliiv;
-#line 13347 ""
- for (iip = 1; iip <= i__4; ++iip) {
-#line 13348 ""
- if (itother < all_1.itsofar[all_1.iv - 1]) {
-#line 13349 ""
- itother += all_1.nodur[iiv + iip * 24 -
- 25];
-#line 13350 ""
- goto L71;
-#line 13351 ""
- } else if (itother == all_1.itsofar[all_1.iv
- - 1]) {
-#line 13352 ""
- all_1.islur[iiv + iip * 24 - 25] =
- bit_set(all_1.islur[iiv + iip *
- 24 - 25],15);
-#line 13353 ""
- goto L72;
-#line 13354 ""
- }
-#line 13355 ""
-L71:
-#line 13355 ""
- ;
-#line 13355 ""
- }
-#line 13356 ""
-/* L70: */
-#line 13356 ""
- }
-#line 13357 ""
-L72:
-#line 13358 ""
- ;
-#line 13358 ""
- }
-
-/* 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 13363 ""
- 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 13364 ""
- goto L7;
-/* +++ */
-#line 13366 ""
- } else if (*(unsigned char *)charq == ']') {
-
-/* Multiplicity up-down, must have '][ ' */
-
-#line 13370 ""
- 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 13371 ""
- all_1.iccount += 2;
-#line 13372 ""
- goto L7;
-/* c+++ */
-#line 13374 ""
- }
-
-/* End of loop for xtup options. If here, charq must be a (non-crd) note name. */
-/* or rest */
-
-#line 13379 ""
- if (*(unsigned char *)charq == 'r') {
-
-/* Rest in xtup */
-
-#line 13383 ""
- 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 13384 ""
- i__2 = all_1.iccount;
-#line 13384 ""
- if (i_indx("+-b", lineq + i__2, (ftnlen)3, all_1.iccount
- + 1 - i__2) > 0) {
-#line 13385 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 13386 ""
- if (*(unsigned char *)durq == 'b') {
-
-/* Blank rest in middle of xtup */
-
-#line 13390 ""
- 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 13391 ""
- } else {
-
-/* Override height of embedded xtup rest */
-
-#line 13395 ""
- ipm = i_indx("- +", durq, (ftnlen)3, (ftnlen)1) -
- 2;
-#line 13396 ""
- ++all_1.iccount;
-#line 13397 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (
- ftnlen)128, (ftnlen)1);
-#line 13398 ""
- all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx
- - 1] * 24 - 25] = ipm * i_nint(&fnum) +
- 100;
-#line 13399 ""
- --all_1.iccount;
-#line 13400 ""
- }
-#line 13401 ""
- } else if (commvl_1.ivx <= all_1.nv) {
-#line 13402 ""
- all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1]
- * 24 - 25] = 0;
-#line 13403 ""
- } else {
-#line 13404 ""
- all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1]
- * 24 - 25] = 2;
-#line 13405 ""
- }
-#line 13406 ""
- } else {
-
-/* Counter for non-rests */
-
-#line 13410 ""
- ++nnb;
-#line 13411 ""
- }
-#line 13412 ""
- comnotes_1.notcrd = TRUE_;
-#line 13413 ""
-L8:
-#line 13413 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 13414 ""
- if (*(unsigned char *)durq != ' ') {
-#line 13415 ""
- if (i_indx("+-<>", durq, (ftnlen)4, (ftnlen)1) > 0) {
-
-/* Accidental horizontal shift */
-
-#line 13419 ""
- chkpm4ac_(lineq, &all_1.iccount, &all_1.nacc[
- commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] *
- 24 - 25], &moved, (ftnlen)128);
-#line 13420 ""
- if (! moved) {
-#line 13421 ""
- if (*(unsigned char *)durq == '+') {
-#line 13422 ""
- comnotes_1.lastlev += 7;
-#line 13423 ""
- } else if (*(unsigned char *)durq == '-') {
-#line 13424 ""
- comnotes_1.lastlev += -7;
-#line 13425 ""
- }
-#line 13426 ""
- }
-#line 13427 ""
- } else if (i_indx("fsn", durq, (ftnlen)3, (ftnlen)1) > 0)
- {
-
-/* if (nacc(ivx,nnl(ivx)) .eq. 0) then */
-/* May have set other bits earlier */
-#line 13431 ""
- if (igetbits_(&all_1.nacc[commvl_1.ivx + all_1.nnl[
- commvl_1.ivx - 1] * 24 - 25], &c__2, &c__0) ==
- 0) {
-
-/* No accid set yet */
-
-/* nacc(ivx,nnl(ivx)) = index('fsn',durq) */
-#line 13436 ""
- all_1.nacc[commvl_1.ivx + all_1.nnl[commvl_1.ivx
- - 1] * 24 - 25] |= i_indx("fsn", durq, (
- ftnlen)3, (ftnlen)1);
-#line 13438 ""
- } else {
-
-/* Symbol must be repeated, so it's a double */
-
-#line 13442 ""
- 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 13443 ""
- }
-#line 13444 ""
- } else if (*(unsigned char *)durq == 'i') {
-
-/* Set flag for midi-only accidental */
-
-#line 13448 ""
- 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 13450 ""
- } else if (*(unsigned char *)durq == 'c') {
-
-/* Set flags for cautionary accidental */
-
-#line 13454 ""
- 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 13455 ""
- 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 13456 ""
- } else if (i_indx("ul", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Force stem direction for non-beamed xtup note */
-
-#line 13460 ""
- 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 13461 ""
- if (*(unsigned char *)durq == 'u') {
-#line 13461 ""
- 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 13461 ""
- }
-#line 13463 ""
- } else if (*(unsigned char *)durq == 'e') {
-
-/* Left-shift main xtup note */
-
-#line 13467 ""
- 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 13468 ""
- 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 13469 ""
- } else if (*(unsigned char *)durq == 'r') {
-
-/* Right-shift main xtup note */
-
-#line 13473 ""
- 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 13474 ""
- 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 13475 ""
- } else if (i_indx("DF", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Double an xtup note to make an unequal xtup */
-
-#line 13479 ""
- 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 13480 ""
- if (*(unsigned char *)durq == 'F') {
-#line 13480 ""
- 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 13480 ""
- }
-#line 13482 ""
- ++ndoub;
-#line 13483 ""
- } else if (*(unsigned char *)durq == 'd') {
-
-/* Dotted xtup note */
-
-/* if (btest(irest(ivx,nnl(ivx))-1,2)) then */
-#line 13488 ""
- if (bit_test(all_1.irest[commvl_1.ivx + (all_1.nnl[
- commvl_1.ivx - 1] - 1) * 24 - 25],2)) {
-
-/* Move dot on 2nd note of 2-note tremolo */
-
-#line 13492 ""
- ++comcc_1.ndotmv[commvl_1.ivx - 1];
-#line 13493 ""
- 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 13494 ""
- g1etchar_(lineq, &all_1.iccount, durq, (ftnlen)
- 128, (ftnlen)1);
-/* Will be + or - */
-#line 13495 ""
- ++all_1.iccount;
-#line 13496 ""
- 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 13498 ""
- if (*(unsigned char *)durq == '-') {
-#line 13498 ""
- 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 13498 ""
- }
-#line 13500 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0)
- {
-
-/* Vertical shift also */
-
-#line 13504 ""
- 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 13506 ""
- if (*(unsigned char *)durq == '-') {
-#line 13506 ""
- 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 13506 ""
- }
-#line 13508 ""
- }
-#line 13509 ""
- --all_1.iccount;
-#line 13510 ""
- } else {
-
-/* Dot for 3:1 pair of xtup notes */
-
-#line 13514 ""
- 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 13515 ""
- }
-#line 13516 ""
- } else {
-
-/* Must be an octave number */
-
-#line 13520 ""
- i__2 = *(unsigned char *)durq - 48;
-#line 13520 ""
- comnotes_1.lastlev = ifnolev_(charq, &i__2, &
- cominsttrans_1.itransamt[
- cominsttrans_1.instno[all_1.iv - 1] - 1], (
- ftnlen)1);
-#line 13522 ""
- }
-#line 13523 ""
- goto L8;
-#line 13524 ""
- }
-#line 13525 ""
- if (itup < ntup) {
-
-/* Last note is handled *after* flowing out of the xtup if block, but still */
-/* within block for a note-rest. Set note level now (rest already done). */
-/* 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 13532 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + all_1.nnl[
- commvl_1.ivx - 1] * 24 - 25],0)) {
-#line 13533 ""
- 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 13535 ""
- all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1]
- * 24 - 25] = comnotes_1.lastlev;
-#line 13536 ""
- }
-#line 13537 ""
- all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] *
- 24 - 25] = 0;
-#line 13538 ""
- for (comnotes_1.npreslur = comnotes_1.npreslur;
- comnotes_1.npreslur >= 1; --comnotes_1.npreslur) {
-
-/* Set note level for preslur on internal xtup note */
-
-#line 13542 ""
- setbits_(&all_1.isdat2[all_1.nsdat -
- comnotes_1.npreslur], &c__7, &c__19, &
- comnotes_1.lastlev);
-#line 13543 ""
-/* L42: */
-#line 13543 ""
- }
-#line 13544 ""
- }
-#line 13545 ""
- if (itup == ntup - ndoub) {
-#line 13545 ""
- goto L12;
-#line 13545 ""
- }
-#line 13546 ""
-/* L6: */
-#line 13546 ""
- }
-#line 13547 ""
-L12:
-#line 13548 ""
- if (comget_1.ornrpt) {
-#line 13549 ""
- 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 13551 ""
- 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 13555 ""
- ++comtrill_1.ntrill;
-#line 13556 ""
- comtrill_1.ivtrill[comtrill_1.ntrill - 1] = commvl_1.ivx;
-#line 13557 ""
- comtrill_1.iptrill[comtrill_1.ntrill - 1] = all_1.nnl[
- commvl_1.ivx - 1];
-#line 13558 ""
- comtrill_1.xnsktr[comtrill_1.ntrill - 1] =
- comtrill_1.xnsktr[comtrill_1.ntrill - 2];
-#line 13559 ""
- }
-#line 13560 ""
- }
-
-/* End of if-block for xtuplet input */
-
-#line 13564 ""
- } 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 13569 ""
- all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25]
- = all_1.lenbar;
-#line 13570 ""
- comgrace_1.ibarmbr = all_1.nbars + 1;
-#line 13571 ""
- comgrace_1.mbrest = 0;
-#line 13572 ""
- comgrace_1.xb4mbr = 0.f;
-#line 13573 ""
-L20:
-#line 13573 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 13574 ""
- if (*(unsigned char *)durq >= 48 && *(unsigned char *)durq <= 57)
- {
-#line 13575 ""
- comgrace_1.mbrest = comgrace_1.mbrest * 10 + *(unsigned char *
- )durq - 48;
-#line 13576 ""
- goto L20;
-#line 13577 ""
- }
-
-/* durq will either be blank or 'n' */
-#line 13580 ""
- if (*(unsigned char *)durq == 'n') {
-
-/* Get new height */
-
-#line 13584 ""
- iplmi = 1;
-#line 13585 ""
- g1etchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1)
- ;
-#line 13586 ""
- if (*(unsigned char *)durq == '-') {
-#line 13587 ""
- iplmi = -1;
-#line 13588 ""
- ++all_1.iccount;
-#line 13589 ""
- }
-#line 13590 ""
- readnum_(lineq, &all_1.iccount, durq, &hgt, (ftnlen)128, (
- ftnlen)1);
-#line 13591 ""
- r__1 = iplmi * hgt;
-#line 13591 ""
- comignorenats_1.mbrhgt = i_nint(&r__1);
-#line 13592 ""
- comignorenats_1.newmbrhgt = TRUE_;
-#line 13593 ""
- }
-#line 13594 ""
- } else if (i_indx("ul", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Set stem flipper */
-
-#line 13598 ""
- 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 13599 ""
- if (*(unsigned char *)durq == 'u') {
-#line 13599 ""
- 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 13599 ""
- }
-#line 13601 ""
- goto L2;
-#line 13602 ""
- } else if (*(unsigned char *)durq == 'a') {
-
-/* "Alone", i.e., prohibit beam */
-
-#line 13606 ""
- 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 13607 ""
- goto L2;
-#line 13608 ""
- } else if (*(unsigned char *)durq == 'r') {
-
-/* Right offset by one notehead */
-
-#line 13612 ""
- 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 13613 ""
- 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 13614 ""
- goto L2;
-#line 13615 ""
- } else if (*(unsigned char *)durq == 'e') {
-
-/* Left offset by one notehead */
-
-#line 13619 ""
- 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 13620 ""
- 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 13621 ""
- goto L2;
-#line 13622 ""
- } else if (i_indx("LS", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* 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 13629 ""
- isign = 1;
-#line 13630 ""
- if (*(unsigned char *)durq == 'S') {
-#line 13630 ""
- isign = -1;
-#line 13630 ""
- }
-#line 13631 ""
- 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 13632 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 13633 ""
- if (*(unsigned char *)durq == ':') {
-
-/* End stickyS. Grab data now from prior note, since we have to shut off stickyS. */
-
-#line 13637 ""
- i__1 = igetbits_(&all_1.mult[commvl_1.ivx + (all_1.nnl[
- commvl_1.ivx - 1] - 1) * 24 - 25], &c__6, &c__10);
-#line 13637 ""
- setbits_(&all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx -
- 1] * 24 - 25], &c__6, &c__10, &i__1);
-#line 13639 ""
- comget_1.stickys = FALSE_;
-#line 13640 ""
- goto L2;
-#line 13641 ""
- }
-
-/* If durq .ne. ':' then iccount is now on the start of the number */
-
-#line 13645 ""
- readnum_(lineq, &all_1.iccount, durq, &dum, (ftnlen)128, (ftnlen)
- 1);
-#line 13646 ""
- dum = isign * dum;
-#line 13647 ""
- r__1 = (dum + 4.f) * 2;
-#line 13647 ""
- i__1 = i_nint(&r__1);
-#line 13647 ""
- setbits_(&all_1.mult[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] *
- 24 - 25], &c__6, &c__10, &i__1);
-#line 13648 ""
- if (*(unsigned char *)durq == ':') {
-#line 13649 ""
- comget_1.stickys = TRUE_;
-#line 13650 ""
- } else {
-#line 13651 ""
- --all_1.iccount;
-#line 13652 ""
- }
-#line 13653 ""
- goto L2;
-#line 13654 ""
- } else if (*(unsigned char *)durq == ',') {
-
-/* 2:1 pattern */
-
-#line 13658 ""
- idotform = 3;
-
-/* Now flow to duration setting, as if durq=' ' */
-
-#line 13662 ""
- } 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 13667 ""
- idotform = 1;
-#line 13668 ""
- } else if (*(unsigned char *)durq == 'o') {
-
-/* Suppress rest centering */
-
-#line 13672 ""
- 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 13673 ""
- goto L2;
-#line 13674 ""
- } else if (*(unsigned char *)durq == 'L') {
-
-/* With keyboard rest option, look left */
-
-/* iornq(ivx,nnl(ivx)) = ibset(iornq(ivx,nnl(ivx)),30) */
-#line 13679 ""
- 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 13680 ""
- goto L2;
-#line 13681 ""
- } 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 13686 ""
- 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 13687 ""
- if (*(unsigned char *)durq == 'F') {
-#line 13687 ""
- 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 13687 ""
- }
-#line 13689 ""
- goto L2;
-#line 13690 ""
- } else if (*(unsigned char *)durq == 'A') {
-
-/* Accidental option */
-
-#line 13694 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-
-#line 13696 ""
- if (*(unsigned char *)durq == 'o') {
-
-/* Ordered accidentals in a chord. Mark the main note. */
-
-#line 13700 ""
- 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 13701 ""
- } else {
-
-/* Only other possibility is +-<> . Set tag, reduce iccount and loop to get #'s */
-
-#line 13705 ""
- 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 13706 ""
- --all_1.iccount;
-#line 13707 ""
- }
-#line 13708 ""
- goto L2;
-#line 13709 ""
- } else if (*(unsigned char *)durq == 'T') {
-#line 13710 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 13711 ""
- multtrem = i_indx("1234", durq, (ftnlen)4, (ftnlen)1);
-#line 13712 ""
- if (multtrem == 0) {
-#line 13713 ""
- --all_1.iccount;
-#line 13714 ""
- multtrem = 1;
-#line 13715 ""
- }
-#line 13716 ""
- 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],4);
-#line 13717 ""
- i__1 = multtrem - 1;
-#line 13717 ""
- setbits_(&all_1.ipl[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] *
- 24 - 25], &c__2, &c__5, &i__1);
-#line 13718 ""
- goto L2;
-#line 13719 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 13720 ""
- s_wsle(&io___816);
-#line 13720 ""
- do_lio(&c__9, &c__1, "Illegal character in note: ", (ftnlen)27);
-#line 13720 ""
- do_lio(&c__9, &c__1, durq, (ftnlen)1);
-#line 13720 ""
- do_lio(&c__9, &c__1, ", ivx,nn:", (ftnlen)9);
-#line 13720 ""
- do_lio(&c__3, &c__1, (char *)&commvl_1.ivx, (ftnlen)sizeof(
- integer));
-#line 13720 ""
- do_lio(&c__3, &c__1, (char *)&all_1.nnl[commvl_1.ivx - 1], (
- ftnlen)sizeof(integer));
-#line 13720 ""
- e_wsle();
-#line 13722 ""
- stop1_();
-#line 13723 ""
- }
-
-/* Done with note/rest options. Set level and duration. */
-
-#line 13727 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1]
- * 24 - 25],0)) {
-#line 13728 ""
- if (numnum == 2) {
-#line 13729 ""
- comnotes_1.lastlev = ifnolev_(charq, &ioct, &
- cominsttrans_1.itransamt[cominsttrans_1.instno[
- all_1.iv - 1] - 1], (ftnlen)1);
-#line 13730 ""
- all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 -
- 25] = comnotes_1.lastlev;
-#line 13731 ""
- } else {
-#line 13732 ""
- 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 13734 ""
- all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 -
- 25] = comnotes_1.lastlev;
-#line 13735 ""
- }
-#line 13736 ""
- for (comnotes_1.npreslur = comnotes_1.npreslur;
- comnotes_1.npreslur >= 1; --comnotes_1.npreslur) {
-
-/* Set level for preslur on normal note, non-chord */
-
-#line 13740 ""
- setbits_(&all_1.isdat2[all_1.nsdat - comnotes_1.npreslur], &
- c__7, &c__19, &comnotes_1.lastlev);
-#line 13741 ""
-/* L43: */
-#line 13741 ""
- }
-
-/* Only matters if last note, non-rest of xtuplet */
-
-#line 13745 ""
- ++nnb;
-#line 13746 ""
- }
-
-/* Set flag for unbeamed xtup if it just has 1 note */
-
-#line 13750 ""
- if (inxtup && nnb == 1) {
-#line 13751 ""
- all_1.islur[commvl_1.ivx + note1xtup * 24 - 25] = bit_set(
- all_1.islur[commvl_1.ivx + note1xtup * 24 - 25],18);
-#line 13752 ""
- }
-#line 13753 ""
- if (idotform > 0) {
-#line 13754 ""
- if (idotform == 1) {
-#line 13755 ""
- 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 13756 ""
- } else if (idotform == 2) {
-#line 13757 ""
- 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 13758 ""
- } else if (idotform == 3) {
-#line 13759 ""
- all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 -
- 25] = ifnodur_(&comnotes_1.nnodur, dotq, (ftnlen)1);
-#line 13760 ""
- } else if (idotform == 4) {
-#line 13761 ""
- 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 13762 ""
- }
-#line 13763 ""
- } 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 13767 ""
- 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 13771 ""
- i__1 = (integer) (log(all_1.lenbar + .1f) / .69315f) + 48;
-#line 13771 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 13771 ""
- comnotes_1.nnodur = i_indx("62514x0x37", ch__1, (ftnlen)10, (
- ftnlen)1) - 1;
-#line 13773 ""
- } else if (comgrace_1.ibarmbr != all_1.nbars + 1) {
-#line 13774 ""
- all_1.nodur[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] * 24 - 25]
- = ifnodur_(&comnotes_1.nnodur, dotq, (ftnlen)1);
-#line 13775 ""
- if (bit_test(all_1.islur[commvl_1.ivx + all_1.nnl[commvl_1.ivx -
- 1] * 24 - 25],3)) {
-#line 13775 ""
- 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 13775 ""
- }
-#line 13777 ""
- }
-#line 13778 ""
- 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 13782 ""
- 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 13786 ""
- 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 13787 ""
- 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 13788 ""
- ++comudsp_1.nudoff[commvl_1.ivx - 1];
-#line 13789 ""
- 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 13790 ""
- }
-#line 13791 ""
- }
-#line 13792 ""
- all_1.itsofar[commvl_1.ivx - 1] += all_1.nodur[commvl_1.ivx +
- all_1.nnl[commvl_1.ivx - 1] * 24 - 25];
-#line 13793 ""
- if (comfb_1.autofbon && comfb_1.tautofb > comtol_1.tol &&
- comget_1.fbon) {
-
-/* Check to see if need to terminate auto forced beam */
-
-#line 13797 ""
- r__1 = all_1.itsofar[commvl_1.ivx - 1] - comfb_1.t1autofb;
-#line 13797 ""
- if (r_mod(&r__1, &comfb_1.tautofb) < comtol_1.tol) {
-
-/* Terminate autofb */
-
-#line 13801 ""
- comfb_1.t2fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] *
- 24 - 25] = (real) all_1.itsofar[commvl_1.ivx - 1];
-#line 13802 ""
- comget_1.fbon = FALSE_;
-#line 13803 ""
- }
-#line 13804 ""
- }
-#line 13805 ""
- if ((all_1.itsofar[commvl_1.ivx - 1] - all_1.lenb0) % all_1.lenbar ==
- 0) {
-
-/* Finished a bar */
-
-#line 13809 ""
- ++all_1.nbars;
-#line 13810 ""
- all_1.nib[commvl_1.ivx + all_1.nbars * 24 - 25] = all_1.nnl[
- commvl_1.ivx - 1];
-#line 13811 ""
- if (all_1.firstgulp && all_1.lenb0 != 0 && all_1.nbars == 1) {
-
-/* Just finished the pickup bar for this voice. */
-
-#line 13815 ""
- all_1.lenbar = all_1.lenb1;
-#line 13816 ""
- }
-#line 13817 ""
- }
-#line 13818 ""
- if (idotform == 1) {
-#line 13819 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 13820 ""
- idotform = 2;
-#line 13821 ""
- numnum = 1;
-#line 13822 ""
- goto L28;
-#line 13823 ""
- } else if (idotform == 3) {
-#line 13824 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 13825 ""
- idotform = 4;
-#line 13826 ""
- numnum = 1;
-#line 13827 ""
- goto L28;
-#line 13828 ""
- }
-
-/* End of sub block for note-rest */
-
-#line 13832 ""
- } else if (*(unsigned char *)charq == 'z') {
-
-/* Chord note. Must have note name, may have octave#,+,-,s,f,n,d */
-/* Actually the 'd' is not used, since time value comes from */
-/* basic note. Unless dot is to be shifted! */
-/* Doesn't increase # of notes, so must handle separately */
-/* ncrd: index of crd */
-/* Set bit 10 of ipl on main note as flag */
-/* Bits in icrdat: */
-/* 0-7 ip within voice */
-/* 8-11 ivx */
-/* 12-18 note level */
-/* 19 accidental? */
-/* 20-22 accidental value (1=natural, 2=flat, 3=sharp, 6=dflat, 7=dsharp) */
-/* 23 shift left */
-/* 24 shift right */
-/* 25 arpeggio start or stop */
-/* 26 flag for moved dot (here, not icrdot, since this is always reset!) */
-/* 27 Midi-only accidental */
-/* 29 Tag for accidental shift...means add to autoshifts. */
-/* 31 Cautionary accidental */
-
-/* Bits in icrdot: */
-/* 0-6 10*abs(vertical dot shift in \internote) + 64 */
-/* 7-13 10*abs(horizontal dot shift in \internote) + 64 */
-/* 14-19 vert accidental shift-32 */
-/* 20-26 20*(horiz accidental shift+3.2) */
-/* 27-29 top-down level rank of chord note w/accid. Set in crdaccs. */
-
-/* Bits in icrdorn are same as in iornq, even tho most orns won't go in crds. */
-
-#line 13863 ""
- ++comtrill_1.ncrd;
-#line 13864 ""
- 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 13865 ""
- numnum = 0;
-/* icrdat(ncrd) = ior(nnl(ivx)-1,ishft(ivx,8)) */
-#line 13867 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = all_1.nnl[commvl_1.ivx - 1];
-#line 13868 ""
- i__1 = commvl_1.ivx % 16;
-#line 13868 ""
- setbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__4, &c__8, &i__1)
- ;
-#line 13869 ""
- if (commvl_1.ivx >= 16) {
-#line 13869 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],28);
-#line 13869 ""
- }
-#line 13870 ""
- comtrill_1.icrdot[comtrill_1.ncrd - 1] = 0;
-#line 13871 ""
- comtrill_1.icrdorn[comtrill_1.ncrd - 1] = 0;
-
-/* Get note name */
-
-#line 13875 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1);
-
-/* Get optional inputs */
-
-#line 13879 ""
-L25:
-#line 13879 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-/* ndx = index('fsn+-<>12345678rediA',durq) */
-#line 13881 ""
- ndx = i_indx("fsn+-<>12345678rediAc", durq, (ftnlen)21, (ftnlen)1);
-#line 13882 ""
- if (ndx == 20) {
-
-/* Expect +|-|<|> , set tag, loop */
-
-#line 13886 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],29);
-#line 13887 ""
- goto L25;
-#line 13888 ""
- } else if (ndx > 0) {
-#line 13889 ""
- if (ndx <= 3) {
-#line 13890 ""
- if (! bit_test(comtrill_1.icrdat[comtrill_1.ncrd - 1],19)) {
-#line 13891 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],19);
-#line 13892 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] |= ndx << 20;
-#line 13893 ""
- } else {
-#line 13894 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],22);
-#line 13895 ""
- }
-#line 13896 ""
- } else if (ndx == 21) {
-
-/* Set flags for cautionary accidental */
-
-#line 13900 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],31);
-#line 13901 ""
- 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 13902 ""
- } else if (ndx <= 7) {
-
-/* +/-/</> Check whether octave or accidental shift */
-
-#line 13906 ""
- nactmp = 0;
-#line 13907 ""
- chkpm4ac_(lineq, &all_1.iccount, &nactmp, &moved, (ftnlen)128)
- ;
-#line 13908 ""
- if (moved) {
-
-/* Transfer accidental shift values */
-
-#line 13912 ""
- i__1 = igetbits_(&nactmp, &c__6, &c__4);
-#line 13912 ""
- setbits_(&comtrill_1.icrdot[comtrill_1.ncrd - 1], &c__6, &
- c__14, &i__1);
-#line 13913 ""
- i__1 = igetbits_(&nactmp, &c__7, &c__10);
-#line 13913 ""
- setbits_(&comtrill_1.icrdot[comtrill_1.ncrd - 1], &c__7, &
- c__20, &i__1);
-#line 13914 ""
- } else {
-#line 13915 ""
- if (*(unsigned char *)durq == '+') {
-#line 13916 ""
- comnotes_1.lastlev += 7;
-#line 13917 ""
- } else if (*(unsigned char *)durq == '-') {
-#line 13918 ""
- comnotes_1.lastlev += -7;
-#line 13919 ""
- }
-#line 13920 ""
- }
-#line 13921 ""
- } else if (*(unsigned char *)durq == 'e') {
-#line 13922 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],23);
-#line 13923 ""
- 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 13924 ""
- } else if (*(unsigned char *)durq == 'r') {
-#line 13925 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],24);
-#line 13926 ""
- 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 13927 ""
- } else if (*(unsigned char *)durq == 'i') {
-
-/* Midi-only accidental on chord note */
-
-#line 13931 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],27);
-#line 13932 ""
- } else if (*(unsigned char *)durq == 'd') {
-
-/* Must keep 'd' optional (backward compatibility), unless it is moved! */
-
-#line 13936 ""
- i__1 = all_1.iccount;
-#line 13936 ""
- 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 13940 ""
- i__1 = all_1.iccount + 1;
-#line 13940 ""
- if (i_indx("0123456789.", lineq + i__1, (ftnlen)11,
- all_1.iccount + 2 - i__1) == 0) {
-#line 13940 ""
- goto L25;
-#line 13940 ""
- }
-#line 13942 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],26);
-#line 13943 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 13944 ""
- ++all_1.iccount;
-#line 13945 ""
- readnum_(lineq, &all_1.iccount, dumq, &fnum, (ftnlen)128,
- (ftnlen)1);
-#line 13946 ""
- if (*(unsigned char *)durq == '+') {
-#line 13947 ""
- r__1 = fnum * 10;
-#line 13947 ""
- comtrill_1.icrdot[comtrill_1.ncrd - 1] |= i_nint(&
- r__1) + 64;
-#line 13948 ""
- } else {
-#line 13949 ""
- r__1 = fnum * 10;
-#line 13949 ""
- comtrill_1.icrdot[comtrill_1.ncrd - 1] |= -i_nint(&
- r__1) + 64;
-#line 13950 ""
- }
-#line 13951 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Vertical shift specified also */
-
-#line 13955 ""
- ++all_1.iccount;
-#line 13956 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)
- 128, (ftnlen)1);
-#line 13957 ""
- if (*(unsigned char *)dumq == '+') {
-#line 13958 ""
- r__1 = fnum * 10;
-#line 13958 ""
- ifnum = i_nint(&r__1) + 64;
-#line 13959 ""
- } else {
-#line 13960 ""
- r__1 = fnum * 10;
-#line 13960 ""
- ifnum = -i_nint(&r__1) + 64;
-#line 13961 ""
- }
-#line 13962 ""
- } else {
-#line 13963 ""
- ifnum = 64;
-#line 13964 ""
- }
-#line 13965 ""
- comtrill_1.icrdot[comtrill_1.ncrd - 1] |= ifnum << 7;
-#line 13966 ""
- --all_1.iccount;
-#line 13967 ""
- }
-#line 13968 ""
- } else {
-
-/* must be a single digit, save it in ioct */
-
-#line 13972 ""
- numnum = 1;
-#line 13973 ""
- ioct = ndx - 7;
-#line 13974 ""
- }
-#line 13975 ""
- goto L25;
-#line 13976 ""
- }
-#line 13977 ""
- if (numnum == 1) {
-#line 13978 ""
- comnotes_1.lastlev = ifnolev_(charq, &ioct, &
- cominsttrans_1.itransamt[cominsttrans_1.instno[all_1.iv -
- 1] - 1], (ftnlen)1);
-#line 13979 ""
- } else {
-#line 13980 ""
- 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 13982 ""
- }
-#line 13983 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] |= comnotes_1.lastlev << 12;
-#line 13984 ""
- for (comnotes_1.npreslur = comnotes_1.npreslur; comnotes_1.npreslur >=
- 1; --comnotes_1.npreslur) {
-#line 13985 ""
- 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 13990 ""
- 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 13991 ""
- 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 13992 ""
- all_1.isdat2[all_1.nsdat - comnotes_1.npreslur] = bit_set(
- all_1.isdat2[all_1.nsdat - comnotes_1.npreslur],0);
-#line 13993 ""
- i__1 = igetbits_(&all_1.isdat1[all_1.nsdat - comnotes_1.npreslur],
- &c__8, &c__3) - 1;
-#line 13993 ""
- setbits_(&all_1.isdat1[all_1.nsdat - comnotes_1.npreslur], &c__8,
- &c__3, &i__1);
-#line 13995 ""
-/* L44: */
-#line 13995 ""
- }
-#line 13996 ""
- if (comnotes_1.notcrd) {
-
-/* This is the first chord note in this chord. */
-
-/* Computing MIN */
-#line 14000 ""
- i__1 = all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] *
- 24 - 25];
-#line 14000 ""
- comtrill_1.minlev = min(i__1,comnotes_1.lastlev);
-/* Computing MAX */
-#line 14001 ""
- i__1 = all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] *
- 24 - 25];
-#line 14001 ""
- comtrill_1.maxlev = max(i__1,comnotes_1.lastlev);
-#line 14002 ""
- } else {
-#line 14003 ""
- comtrill_1.minlev = min(comtrill_1.minlev,comnotes_1.lastlev);
-#line 14004 ""
- comtrill_1.maxlev = max(comtrill_1.maxlev,comnotes_1.lastlev);
-#line 14005 ""
- }
-#line 14006 ""
- comnotes_1.notcrd = FALSE_;
-#line 14007 ""
- } else if (*(unsigned char *)charq == 'G') {
-#line 14008 ""
- 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);
-
-/* Grace, comes *before* main note: */
-/* UNLESS there's an 'A' or 'W' after the 'G' */
-/* ngrace = # of grace note groups so far in block */
-/* ivg(ngrace), ipg(ngrace) */
-/* nng(ngrace) = # of notes in this group: default = 1 */
-/* ngstrt(ngrace) = starting position in nolevg of levels for this grace */
-/* multg(ngrace) = multiplicity: default = 1; input as 'm(digit)' */
-/* upg(ngrace) = logical for beam or stem dirn: default T, input'u,l' */
-/* slurg(ngrace) = logical for slur; default F, input 's' */
-/* slashg(ngrace) = T if slash; default is F, input 'x' */
-/* These data MUST precede note name of first note */
-/* nolevg, naccg: lists of levels and accid's, indexed as described above. */
-
-#line 14024 ""
- } else if (*(unsigned char *)charq == *(unsigned char *)all_1.sq) {
-
-/* Literal TeX string */
-
-#line 14028 ""
- i__1 = all_1.nnl[commvl_1.ivx - 1] + 1;
-#line 14028 ""
- littex_(all_1.islur, &i__1, &commvl_1.ivx, &comas3_1.topmods, lineq, &
- all_1.iccount, (ftnlen)128);
-#line 14029 ""
- } else if (*(unsigned char *)charq == '"') {
-
-/* pmxlyr string. Expand "..." to \pmxlyr{...}\ */
-
-#line 14033 ""
- if (! comlyr_1.inputmlyr) {
-#line 14034 ""
- ictemp = 0;
-/* Writing concatenation */
-#line 14035 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 14035 ""
- i__3[1] = 1, a__1[1] = all_1.sq;
-#line 14035 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 14035 ""
- i__3[3] = 15, a__1[3] = "input musixlyr ";
-#line 14035 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 14035 ""
- s_cat(lineqt, a__1, i__3, &c__5, (ftnlen)128);
-#line 14036 ""
- i__1 = all_1.nnl[commvl_1.ivx - 1] + 1;
-#line 14036 ""
- littex_(all_1.islur, &i__1, &commvl_1.ivx, &comas3_1.topmods,
- lineqt, &ictemp, (ftnlen)128);
-#line 14037 ""
- comlyr_1.inputmlyr = TRUE_;
-#line 14038 ""
- }
-#line 14039 ""
- dopmxlyr_(lineq, &all_1.iccount, (ftnlen)128);
-#line 14040 ""
- *(unsigned char *)charq = *(unsigned char *)all_1.sq;
-#line 14041 ""
- i__1 = all_1.nnl[commvl_1.ivx - 1] + 1;
-#line 14041 ""
- littex_(all_1.islur, &i__1, &commvl_1.ivx, &comas3_1.topmods, lineq, &
- all_1.iccount, (ftnlen)128);
-#line 14042 ""
- } else if (*(unsigned char *)charq == 'o') {
-
-/* Ornament on non-xtup note. Symbol must come AFTER the affected note */
-
-#line 14046 ""
- if (comnotes_1.notcrd) {
-#line 14047 ""
- nole = all_1.nolev[commvl_1.ivx + all_1.nnl[commvl_1.ivx - 1] *
- 24 - 25];
-#line 14048 ""
- } else {
-#line 14049 ""
- nole = 127 & lbit_shift(comtrill_1.icrdat[comtrill_1.ncrd - 1], (
- ftnlen)-12);
-#line 14050 ""
- }
-#line 14051 ""
- 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 14054 ""
- } else if (i_indx("st(){}", charq, (ftnlen)6, (ftnlen)1) > 0) {
-#line 14055 ""
- nnlivx = all_1.nnl[commvl_1.ivx - 1];
-#line 14056 ""
- if (*(unsigned char *)charq == '(' || *(unsigned char *)charq == '{')
- {
-
-/* Detect preslur on normal non-chord note */
-
-#line 14060 ""
- ++nnlivx;
-#line 14061 ""
- ++comnotes_1.npreslur;
-#line 14062 ""
- }
-#line 14063 ""
- all_1.islur[commvl_1.ivx + nnlivx * 24 - 25] = bit_set(all_1.islur[
- commvl_1.ivx + nnlivx * 24 - 25],0);
-#line 14064 ""
- if (*(unsigned char *)charq == 't') {
-#line 14064 ""
- all_1.islur[commvl_1.ivx + nnlivx * 24 - 25] = bit_set(
- all_1.islur[commvl_1.ivx + nnlivx * 24 - 25],1);
-#line 14064 ""
- }
-#line 14066 ""
- if (commvl_1.ivx <= all_1.nv) {
-#line 14067 ""
- kv = 1;
-#line 14068 ""
- } else {
-#line 14069 ""
- kv = 2;
-#line 14070 ""
- }
-#line 14071 ""
- if (comslur_1.fontslur) {
-#line 14072 ""
- 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 14074 ""
- } else {
-#line 14075 ""
- 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 14077 ""
- }
-#line 14078 ""
- } else if (*(unsigned char *)charq == '?') {
-
-/* Arpeggio */
-
-#line 14082 ""
- 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 14087 ""
- comtrill_1.icrdat[comtrill_1.ncrd - 1] = bit_set(
- comtrill_1.icrdat[comtrill_1.ncrd - 1],25);
-#line 14088 ""
- } else {
-#line 14089 ""
- 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 14090 ""
- }
-
-/* Check for shift */
-
-#line 14094 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14095 ""
- if (*(unsigned char *)durq == ' ') {
-#line 14096 ""
- --all_1.iccount;
-#line 14097 ""
- } else {
-
-/* durq must be "-" */
-
-#line 14101 ""
- ++all_1.iccount;
-#line 14102 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen)
- 1);
-#line 14103 ""
- --all_1.iccount;
-
-/* record the shift */
-
-#line 14107 ""
- ++comarpshift_1.numarpshift;
-#line 14108 ""
- comarpshift_1.ivarpshift[comarpshift_1.numarpshift - 1] =
- commvl_1.ivx;
-#line 14109 ""
- comarpshift_1.iparpshift[comarpshift_1.numarpshift - 1] =
- all_1.nnl[commvl_1.ivx - 1];
-#line 14110 ""
- comarpshift_1.arpshift[comarpshift_1.numarpshift - 1] = fnum;
-#line 14111 ""
- }
-#line 14112 ""
- } 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 14117 ""
- ivf = 1;
-#line 14118 ""
- if (commvl_1.ivx > 1) {
-#line 14119 ""
- if (comfig_1.ivxfig2 == 0) {
-#line 14120 ""
- comfig_1.ivxfig2 = commvl_1.ivx;
-#line 14121 ""
- } else if (commvl_1.ivx != comfig_1.ivxfig2) {
-#line 14122 ""
- s_wsle(&io___817);
-#line 14122 ""
- e_wsle();
-#line 14123 ""
- s_wsle(&io___818);
-#line 14123 ""
- do_lio(&c__9, &c__1, "Figures not allowed in >1 voice above "\
- "first", (ftnlen)43);
-#line 14123 ""
- e_wsle();
-#line 14124 ""
- s_stop("", (ftnlen)0);
-#line 14125 ""
- }
-#line 14126 ""
- ivf = 2;
-#line 14127 ""
- }
-#line 14128 ""
- nfig1 = comfig_1.nfigs[ivf - 1] + 1;
-#line 14129 ""
- 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], &
- all_1.itsofar[commvl_1.ivx - 1], &all_1.nodur[commvl_1.ivx +
- all_1.nnl[commvl_1.ivx - 1] * 24 - 25], comfig_1.figq + (ivf
- + (nfig1 << 1) - 3) * 10, &comfig_1.ivupfig[ivf + (nfig1 << 1)
- - 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 14134 ""
- } else if (*(unsigned char *)charq == '[') {
-
-/* Start forced beam. Record barno & time since start of inp. blk. Set signal */
-
-#line 14138 ""
- ++comfb_1.nfb[commvl_1.ivx - 1];
-#line 14139 ""
- comget_1.fbon = TRUE_;
-#line 14140 ""
- *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.nfb[
- commvl_1.ivx - 1] * 24 - 25] = 'x';
-#line 14141 ""
- comfb_1.t1fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] * 24 - 25] =
- (real) all_1.itsofar[commvl_1.ivx - 1];
-#line 14142 ""
- nadj = 0;
-#line 14143 ""
- if (comfb_1.autofbon) {
-#line 14144 ""
- comfb_1.autofbon = FALSE_;
-#line 14145 ""
- }
-#line 14146 ""
-L17:
-#line 14146 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 14147 ""
- if (i_indx("ulf", charq, (ftnlen)3, (ftnlen)1) > 0) {
-#line 14148 ""
- *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.nfb[
- commvl_1.ivx - 1] * 24 - 25] = *(unsigned char *)charq;
-#line 14149 ""
- goto L17;
-#line 14150 ""
- } else if (*(unsigned char *)charq == 'j') {
-
-/* Continuing a jumped beam here */
-
-#line 14154 ""
- 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);
-
-/* 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 14159 ""
- combjmp_1.isbj2 = TRUE_;
-#line 14160 ""
- goto L17;
-#line 14161 ""
- } else if (*(unsigned char *)charq == 'h') {
-#line 14162 ""
- 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 14163 ""
- goto L17;
-#line 14164 ""
- } else if (*(unsigned char *)charq == 'm') {
-
-/* Force multiplicity. Next input is digit */
-
-#line 14168 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 14169 ""
- 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 14170 ""
- i__1 = *(unsigned char *)charq - 48;
-#line 14170 ""
- setbits_(&all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx - 1]
- + 1) * 24 - 25], &c__3, &c__22, &i__1);
-#line 14171 ""
- goto L17;
-#line 14172 ""
- } else if (*(unsigned char *)charq == ':') {
-
-/* Start auto forced beam pattern */
-
-#line 14176 ""
- comfb_1.autofbon = TRUE_;
-
-/* When forced later beam ends, check whether tautofv <=0; if so set it. */
-
-#line 14180 ""
- comfb_1.tautofb = (real) (-all_1.itsofar[commvl_1.ivx - 1]);
-#line 14181 ""
- comfb_1.t1autofb = (real) all_1.itsofar[commvl_1.ivx - 1];
-#line 14182 ""
- goto L17;
-#line 14183 ""
- } else if (*(unsigned char *)charq != ' ') {
-
-/* Must be '+/-' for height or slope shift */
-
-#line 14187 ""
- ++nadj;
-
-/* nadj = 1,2, or 3 for normal start level, slope, or beam-thk start level. */
-
-#line 14191 ""
- ++all_1.iccount;
-#line 14192 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen)
- 1);
-#line 14193 ""
- --all_1.iccount;
-#line 14194 ""
- iadj = i_nint(&fnum);
-#line 14195 ""
- if (*(unsigned char *)charq == '-') {
-#line 14195 ""
- iadj = -iadj;
-#line 14195 ""
- }
-#line 14196 ""
- if (nadj == 1) {
-
-/* This is a level shift. Note if 0 was entered, iadj = 30 */
-
-#line 14200 ""
- i__1 = iadj + 30;
-#line 14200 ""
- setbits_(&all_1.ipl[commvl_1.ivx + (all_1.nnl[commvl_1.ivx -
- 1] + 1) * 24 - 25], &c__6, &c__11, &i__1);
-#line 14201 ""
- } else if (nadj == 2) {
-
-/* Must be a slope shift */
-
-#line 14205 ""
- i__1 = iadj + 30;
-#line 14205 ""
- setbits_(&all_1.ipl[commvl_1.ivx + (all_1.nnl[commvl_1.ivx -
- 1] + 1) * 24 - 25], &c__6, &c__17, &i__1);
-#line 14206 ""
- } else {
-
-/* Beam-thk fine tune */
-
-#line 14210 ""
- setbits_(&all_1.islur[commvl_1.ivx + (all_1.nnl[commvl_1.ivx
- - 1] + 1) * 24 - 25], &c__2, &c__27, &iadj);
-#line 14211 ""
- }
-#line 14212 ""
- goto L17;
-#line 14213 ""
- }
-#line 14214 ""
- } else if (*(unsigned char *)charq == ']') {
-#line 14215 ""
- if (comfb_1.autofbon && comfb_1.tautofb < comtol_1.tol) {
-#line 14216 ""
- comfb_1.tautofb = all_1.itsofar[commvl_1.ivx - 1] +
- comfb_1.tautofb;
-#line 14217 ""
- }
-#line 14218 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 14219 ""
- if (i_indx("j ", charq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Since ']' comes AFTER note, itsofar has been updated. Set ending signal. */
-
-#line 14223 ""
- comfb_1.t2fb[commvl_1.ivx + comfb_1.nfb[commvl_1.ivx - 1] * 24 -
- 25] = (real) all_1.itsofar[commvl_1.ivx - 1];
-#line 14224 ""
- comget_1.fbon = FALSE_;
-#line 14225 ""
- if (*(unsigned char *)charq == 'j') {
-#line 14226 ""
- 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 14227 ""
- }
-#line 14228 ""
- 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 14233 ""
- if (all_1.itsofar[commvl_1.ivx - 1] % all_1.lenbar != 0) {
-#line 14233 ""
- 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 14233 ""
- }
-#line 14235 ""
- combjmp_1.isbj2 = FALSE_;
-#line 14236 ""
- }
-#line 14237 ""
- } else if (*(unsigned char *)charq == '[') {
-
-/* Multiplicity down-up signal */
-
-#line 14241 ""
- 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 14242 ""
- } else if (*(unsigned char *)charq == '-') {
-
-/* Set signals for gap in single-slope beam [...]-[...] */
-
-#line 14246 ""
- 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 14247 ""
- 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 14251 ""
- all_1.iccount += 2;
-#line 14252 ""
- }
-#line 14253 ""
- } else if (*(unsigned char *)charq == 'D') {
-#line 14254 ""
- 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 14256 ""
- } 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 14261 ""
- if (all_1.iv != 1 || all_1.nnl[0] != 0) {
-#line 14262 ""
- s_wsle(&io___820);
-#line 14262 ""
- do_lio(&c__9, &c__1, "You entered \"h\" not at beginning of block"
- , (ftnlen)41);
-#line 14262 ""
- e_wsle();
-#line 14263 ""
- stop1_();
-#line 14264 ""
- }
-#line 14265 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14266 ""
- comhead_1.ihdvrt = 0;
-#line 14267 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Vertical offset */
-
-#line 14271 ""
- ++all_1.iccount;
-#line 14272 ""
- readnum_(lineq, &all_1.iccount, charq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 14273 ""
- comhead_1.ihdvrt = fnum + .1f;
-#line 14274 ""
- if (*(unsigned char *)durq == '-') {
-#line 14274 ""
- comhead_1.ihdvrt = -comhead_1.ihdvrt;
-#line 14274 ""
- }
-#line 14275 ""
- *(unsigned char *)durq = *(unsigned char *)charq;
-#line 14276 ""
- }
-#line 14277 ""
- if (*(unsigned char *)durq != ' ') {
-
-/* Height symbol. Read past (until next blank) */
-
-#line 14281 ""
-L3:
-#line 14281 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14282 ""
- if (*(unsigned char *)durq != ' ') {
-#line 14282 ""
- goto L3;
-#line 14282 ""
- }
-#line 14283 ""
- } else {
-
-/* Set flag for header & read it in */
-
-#line 14287 ""
- comhead_1.ihdht = 16;
-#line 14288 ""
- getbuf_(comhead_1.headrq, (ftnlen)80);
-#line 14289 ""
- all_1.iccount = 128;
-#line 14290 ""
- }
-#line 14291 ""
- } else if (*(unsigned char *)charq == 'L') {
-
-/* Linebreak, already handled some in pmxa, but need to get data for */
-/* shortened line or coda lengths */
-
-#line 14296 ""
- ++all_1.iccount;
-#line 14297 ""
- if (*(unsigned char *)&lineq[all_1.iccount - 1] == 'C') {
-
-/* Coda, get length */
-
-#line 14301 ""
- ++all_1.iccount;
-#line 14302 ""
- readnum_(lineq, &all_1.iccount, durq, &comshort_1.codafrac, (
- ftnlen)128, (ftnlen)1);
-#line 14303 ""
- comshort_1.ishort = 3;
-#line 14304 ""
- if (*(unsigned char *)durq == 'n') {
-#line 14304 ""
- comshort_1.nocodabn = TRUE_;
-#line 14304 ""
- }
-#line 14305 ""
- return 0;
-#line 14306 ""
- }
-
-/* Get line number */
-
-#line 14310 ""
- readnum_(lineq, &all_1.iccount, durq, &fmovbrk, (ftnlen)128, (ftnlen)
- 1);
-#line 14311 ""
-L48:
-/* Allow transfer up from below if S follows M */
-#line 14312 ""
- if (*(unsigned char *)durq == 'S') {
-
-/* Shortened line, get shortening fraction */
-
-#line 14316 ""
- ++all_1.iccount;
-#line 14317 ""
- readnum_(lineq, &all_1.iccount, durq, &comshort_1.shortfrac, (
- ftnlen)128, (ftnlen)1);
-#line 14318 ""
- comshort_1.ishort = 1;
-#line 14319 ""
- comshort_1.codafrac = 0.f;
-#line 14320 ""
- }
-
-/* Begin check for movement break */
-
-#line 14324 ""
- if (*(unsigned char *)durq == 'P') {
-#line 14325 ""
- ++all_1.iccount;
-#line 14326 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen)
- 1);
-#line 14327 ""
- }
-#line 14328 ""
- if (*(unsigned char *)durq == 'M') {
-#line 14329 ""
- comget_1.movbrk = i_nint(&fmovbrk);
-#line 14330 ""
- comget_1.movgap = 0;
-#line 14331 ""
- comget_1.parmov = -1.f;
-#line 14332 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14333 ""
-L31:
-#line 14333 ""
- if (*(unsigned char *)durq == '+') {
-
-/* Get vertical space (\internotes) */
-
-#line 14337 ""
- ++all_1.iccount;
-#line 14338 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 14339 ""
- comget_1.movgap = i_nint(&fnum);
-#line 14340 ""
- goto L31;
-#line 14341 ""
- } else if (*(unsigned char *)durq == 'i') {
-#line 14342 ""
- ++all_1.iccount;
-#line 14343 ""
- readnum_(lineq, &all_1.iccount, durq, &comget_1.parmov, (
- ftnlen)128, (ftnlen)1);
-#line 14344 ""
- goto L31;
-#line 14345 ""
- } else if (*(unsigned char *)durq == 'c') {
-#line 14346 ""
- comnotes_1.nobar1 = TRUE_;
-#line 14347 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14348 ""
- goto L31;
-#line 14349 ""
- } else if (*(unsigned char *)durq == 'r') {
-
-/* "rename" can be set on or off. */
-
-#line 14353 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14354 ""
- comnvi_1.rename = *(unsigned char *)durq == '+';
-#line 14355 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14356 ""
- goto L31;
-#line 14357 ""
- } 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 14362 ""
- nvold = all_1.nv;
-#line 14363 ""
- all_1.nv = 0;
-#line 14364 ""
- comnvi_1.rename = TRUE_;
-#line 14365 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14366 ""
- if (*(unsigned char *)durq == ':') {
-#line 14367 ""
- all_1.iccount += 2;
-#line 14368 ""
- i__1 = all_1.iccount - 2;
-#line 14368 ""
- ici__1.icierr = 0;
-#line 14368 ""
- ici__1.iciend = 0;
-#line 14368 ""
- ici__1.icirnum = 1;
-#line 14368 ""
- ici__1.icirlen = all_1.iccount - i__1;
-#line 14368 ""
- ici__1.iciunit = lineq + i__1;
-#line 14368 ""
- ici__1.icifmt = "(i2)";
-#line 14368 ""
- s_rsfi(&ici__1);
-#line 14368 ""
- do_fio(&c__1, (char *)&comnotes_1.ninow, (ftnlen)sizeof(
- integer));
-#line 14368 ""
- e_rsfi();
-#line 14369 ""
- } else {
-#line 14370 ""
- comnotes_1.ninow = *(unsigned char *)durq - 48;
-#line 14371 ""
- }
-#line 14372 ""
- iiv = 0;
-#line 14373 ""
- i__1 = comnotes_1.ninow;
-#line 14373 ""
- for (iinow = 1; iinow <= i__1; ++iinow) {
-#line 14374 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (
- ftnlen)1);
-#line 14375 ""
- if (*(unsigned char *)durq == ':') {
-#line 14376 ""
- all_1.iccount += 2;
-#line 14377 ""
- i__2 = all_1.iccount - 2;
-#line 14377 ""
- ici__1.icierr = 0;
-#line 14377 ""
- ici__1.iciend = 0;
-#line 14377 ""
- ici__1.icirnum = 1;
-#line 14377 ""
- ici__1.icirlen = all_1.iccount - i__2;
-#line 14377 ""
- ici__1.iciunit = lineq + i__2;
-#line 14377 ""
- ici__1.icifmt = "(i2)";
-#line 14377 ""
- s_rsfi(&ici__1);
-#line 14377 ""
- do_fio(&c__1, (char *)&comnvi_1.iiorig[iinow - 1], (
- ftnlen)sizeof(integer));
-#line 14377 ""
- e_rsfi();
-#line 14378 ""
- } else {
-#line 14379 ""
- comnvi_1.iiorig[iinow - 1] = *(unsigned char *)durq -
- 48;
-#line 14380 ""
- }
-#line 14381 ""
- comnvi_1.nspern[iinow - 1] = comnvi_1.nsperi[
- comnvi_1.iiorig[iinow - 1] - 1];
-#line 14382 ""
- all_1.nv += comnvi_1.nspern[iinow - 1];
-#line 14383 ""
- *(unsigned char *)&all_1.sepsymq[iiv + comnvi_1.nspern[
- iinow - 1] - 1] = '&';
-#line 14384 ""
- if (comnvi_1.nspern[iinow - 1] > 1) {
-#line 14385 ""
- i__2 = comnvi_1.nspern[iinow - 1] - 1;
-#line 14385 ""
- for (iis = 1; iis <= i__2; ++iis) {
-#line 14386 ""
- *(unsigned char *)&all_1.sepsymq[iiv + iis - 1] =
- '|';
-#line 14387 ""
-/* L64: */
-#line 14387 ""
- }
-#line 14388 ""
- }
-#line 14389 ""
- iiv += comnvi_1.nspern[iinow - 1];
-#line 14390 ""
-/* L63: */
-#line 14390 ""
- }
-
-/* 120818 Per Rainer's suggestion, defer changing \nbinstruments until issuing \newmovement */
-
-/* if (islast) then */
-/* if (ninow .lt. 10) then */
-/* write(11,'(a)')sq//'newnoi{'//chax(ninow+48)//'}%' */
-/* else */
-/* write(11,'(a8,i2,a2)')sq//'newnoi{',ninow,'}%' */
-/* end if */
-/* end if */
-#line 14401 ""
- if (all_1.nv == 1 && nvold > 1) {
-#line 14402 ""
- if (comlast_1.islast) {
-#line 14402 ""
- s_wsfe(&io___825);
-/* Writing concatenation */
-#line 14402 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14402 ""
- i__5[1] = 11, a__2[1] = "nostartrule";
-#line 14402 ""
- s_cat(ch__2, a__2, i__5, &c__2, (ftnlen)12);
-#line 14402 ""
- do_fio(&c__1, ch__2, (ftnlen)12);
-#line 14402 ""
- e_wsfe();
-#line 14402 ""
- }
-#line 14403 ""
- } else if (all_1.nv > 1 && nvold == 1) {
-#line 14404 ""
- if (comlast_1.islast) {
-#line 14404 ""
- s_wsfe(&io___826);
-/* Writing concatenation */
-#line 14404 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14404 ""
- i__5[1] = 9, a__2[1] = "startrule";
-#line 14404 ""
- s_cat(ch__3, a__2, i__5, &c__2, (ftnlen)10);
-#line 14404 ""
- do_fio(&c__1, ch__3, (ftnlen)10);
-#line 14404 ""
- e_wsfe();
-#line 14404 ""
- }
-#line 14405 ""
- }
-#line 14406 ""
- iiv = 0;
-#line 14407 ""
- i__1 = comnotes_1.ninow;
-#line 14407 ""
- for (iinow = 1; iinow <= i__1; ++iinow) {
-#line 14408 ""
- i__2 = comnvi_1.nspern[iinow - 1];
-#line 14408 ""
- for (iis = 1; iis <= i__2; ++iis) {
-#line 14409 ""
- ++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 14414 ""
- getchar_(lineq, &all_1.iccount, comclefq_1.clefq + (
- iiv - 1), (ftnlen)128, (ftnlen)1);
-#line 14415 ""
- newvoice_(&iiv, comclefq_1.clefq + (iiv - 1), &c_true,
- (ftnlen)1);
-#line 14416 ""
- if (comnvi_1.nspern[iinow - 1] == 1) {
-#line 14417 ""
- i__4 = numclef_(comclefq_1.clefq + (iiv - 1), (
- ftnlen)1) + 48;
-#line 14417 ""
- chax_(ch__1, (ftnlen)1, &i__4);
-#line 14417 ""
- s_copy(hdlndq, ch__1, (ftnlen)59, (ftnlen)1);
-#line 14418 ""
- lclf = 1;
-#line 14419 ""
- } else if (iis == 1) {
-/* Writing concatenation */
-#line 14420 ""
- i__5[0] = 1, a__2[0] = "{";
-#line 14420 ""
- i__4 = numclef_(comclefq_1.clefq + (iiv - 1), (
- ftnlen)1) + 48;
-#line 14420 ""
- chax_(ch__1, (ftnlen)1, &i__4);
-#line 14420 ""
- i__5[1] = 1, a__2[1] = ch__1;
-#line 14420 ""
- s_cat(hdlndq, a__2, i__5, &c__2, (ftnlen)59);
-#line 14421 ""
- lclf = 2;
-#line 14422 ""
- } else if (iis < comnvi_1.nspern[iinow - 1]) {
-/* Writing concatenation */
-#line 14423 ""
- i__5[0] = lclf, a__2[0] = hdlndq;
-#line 14423 ""
- i__4 = numclef_(comclefq_1.clefq + (iiv - 1), (
- ftnlen)1) + 48;
-#line 14423 ""
- chax_(ch__1, (ftnlen)1, &i__4);
-#line 14423 ""
- i__5[1] = 1, a__2[1] = ch__1;
-#line 14423 ""
- s_cat(hdlndq, a__2, i__5, &c__2, (ftnlen)59);
-#line 14424 ""
- ++lclf;
-#line 14425 ""
- } else {
-/* Writing concatenation */
-#line 14426 ""
- i__6[0] = lclf, a__3[0] = hdlndq;
-#line 14426 ""
- i__4 = numclef_(comclefq_1.clefq + (iiv - 1), (
- ftnlen)1) + 48;
-#line 14426 ""
- chax_(ch__1, (ftnlen)1, &i__4);
-#line 14426 ""
- i__6[1] = 1, a__3[1] = ch__1;
-#line 14426 ""
- i__6[2] = 1, a__3[2] = "}";
-#line 14426 ""
- s_cat(hdlndq, a__3, i__6, &c__3, (ftnlen)59);
-#line 14428 ""
- lclf += 2;
-#line 14429 ""
- }
-#line 14430 ""
-/* L61: */
-#line 14430 ""
- }
-
-/* setstaffs & setclef go by instrument, not voice */
-
-#line 14434 ""
- if (comlast_1.islast) {
-#line 14435 ""
- if (iinow < 10) {
-#line 14436 ""
- s_wsfe(&io___829);
-/* Writing concatenation */
-#line 14436 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 14436 ""
- i__3[1] = 9, a__1[1] = "setstaffs";
-#line 14436 ""
- i__2 = iinow + 48;
-#line 14436 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 14436 ""
- i__3[2] = 1, a__1[2] = ch__1;
-#line 14436 ""
- i__4 = comnvi_1.nspern[iinow - 1] + 48;
-#line 14436 ""
- chax_(ch__5, (ftnlen)1, &i__4);
-#line 14436 ""
- i__3[3] = 1, a__1[3] = ch__5;
-#line 14436 ""
- i__3[4] = 1, a__1[4] = "%";
-#line 14436 ""
- s_cat(ch__4, a__1, i__3, &c__5, (ftnlen)13);
-#line 14436 ""
- do_fio(&c__1, ch__4, (ftnlen)13);
-#line 14436 ""
- e_wsfe();
-#line 14438 ""
- s_wsfe(&io___830);
-/* Writing concatenation */
-#line 14438 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 14438 ""
- i__3[1] = 7, a__1[1] = "setclef";
-#line 14438 ""
- i__2 = iinow + 48;
-#line 14438 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 14438 ""
- i__3[2] = 1, a__1[2] = ch__1;
-#line 14438 ""
- i__3[3] = lclf, a__1[3] = hdlndq;
-#line 14438 ""
- i__3[4] = 1, a__1[4] = "%";
-#line 14438 ""
- s_cat(ch__6, a__1, i__3, &c__5, (ftnlen)69);
-#line 14438 ""
- do_fio(&c__1, ch__6, lclf + 10);
-#line 14438 ""
- e_wsfe();
-#line 14440 ""
- if (comfig_1.fullsize[comnvi_1.iiorig[iinow - 1]
- - 1] > .9f) {
-#line 14441 ""
- s_wsfe(&io___831);
-/* Writing concatenation */
-#line 14441 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 14441 ""
- i__3[1] = 7, a__1[1] = "setsize";
-#line 14441 ""
- i__2 = iinow + 48;
-#line 14441 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 14441 ""
- i__3[2] = 1, a__1[2] = ch__1;
-#line 14441 ""
- i__3[3] = 1, a__1[3] = all_1.sq;
-#line 14441 ""
- i__3[4] = 12, a__1[4] = "normalvalue%";
-#line 14441 ""
- s_cat(ch__7, a__1, i__3, &c__5, (ftnlen)22);
-#line 14441 ""
- do_fio(&c__1, ch__7, (ftnlen)22);
-#line 14441 ""
- e_wsfe();
-
-/* 140526 Account for staff size specs when noinst changes. May be confusion */
-/* here if more than one staff per instrument */
-
-#line 14447 ""
- } else if (comfig_1.fullsize[comnvi_1.iiorig[
- iinow - 1] - 1] > .7f) {
-#line 14448 ""
- s_wsfe(&io___832);
-/* Writing concatenation */
-#line 14448 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 14448 ""
- i__3[1] = 7, a__1[1] = "setsize";
-#line 14448 ""
- i__2 = iinow + 48;
-#line 14448 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 14448 ""
- i__3[2] = 1, a__1[2] = ch__1;
-#line 14448 ""
- i__3[3] = 1, a__1[3] = all_1.sq;
-#line 14448 ""
- i__3[4] = 11, a__1[4] = "smallvalue%";
-#line 14448 ""
- s_cat(ch__8, a__1, i__3, &c__5, (ftnlen)21);
-#line 14448 ""
- do_fio(&c__1, ch__8, (ftnlen)21);
-#line 14448 ""
- e_wsfe();
-#line 14450 ""
- } else {
-#line 14451 ""
- s_wsfe(&io___833);
-/* Writing concatenation */
-#line 14451 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 14451 ""
- i__3[1] = 7, a__1[1] = "setsize";
-#line 14451 ""
- i__2 = iinow + 48;
-#line 14451 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 14451 ""
- i__3[2] = 1, a__1[2] = ch__1;
-#line 14451 ""
- i__3[3] = 1, a__1[3] = all_1.sq;
-#line 14451 ""
- i__3[4] = 10, a__1[4] = "tinyvalue%";
-#line 14451 ""
- s_cat(ch__9, a__1, i__3, &c__5, (ftnlen)20);
-#line 14451 ""
- do_fio(&c__1, ch__9, (ftnlen)20);
-#line 14451 ""
- e_wsfe();
-#line 14453 ""
- }
-#line 14454 ""
- } else {
-#line 14455 ""
- s_wsfe(&io___834);
-/* Writing concatenation */
-#line 14455 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14455 ""
- i__5[1] = 10, a__2[1] = "setstaffs{";
-#line 14455 ""
- s_cat(ch__10, a__2, i__5, &c__2, (ftnlen)11);
-#line 14455 ""
- do_fio(&c__1, ch__10, (ftnlen)11);
-#line 14455 ""
- do_fio(&c__1, (char *)&iinow, (ftnlen)sizeof(
- integer));
-/* Writing concatenation */
-#line 14455 ""
- i__6[0] = 1, a__3[0] = "}";
-#line 14455 ""
- i__2 = comnvi_1.nspern[iinow - 1] + 48;
-#line 14455 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 14455 ""
- i__6[1] = 1, a__3[1] = ch__1;
-#line 14455 ""
- i__6[2] = 1, a__3[2] = "%";
-#line 14455 ""
- s_cat(ch__11, a__3, i__6, &c__3, (ftnlen)3);
-#line 14455 ""
- do_fio(&c__1, ch__11, (ftnlen)3);
-#line 14455 ""
- e_wsfe();
-#line 14457 ""
- s_wsfe(&io___835);
-/* Writing concatenation */
-#line 14457 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14457 ""
- i__5[1] = 8, a__2[1] = "setclef{";
-#line 14457 ""
- s_cat(ch__12, a__2, i__5, &c__2, (ftnlen)9);
-#line 14457 ""
- do_fio(&c__1, ch__12, (ftnlen)9);
-#line 14457 ""
- do_fio(&c__1, (char *)&iinow, (ftnlen)sizeof(
- integer));
-/* Writing concatenation */
-#line 14457 ""
- i__6[0] = 1, a__3[0] = "}";
-#line 14457 ""
- i__6[1] = lclf, a__3[1] = hdlndq;
-#line 14457 ""
- i__6[2] = 1, a__3[2] = "%";
-#line 14457 ""
- s_cat(ch__13, a__3, i__6, &c__3, (ftnlen)61);
-#line 14457 ""
- do_fio(&c__1, ch__13, lclf + 2);
-#line 14457 ""
- e_wsfe();
-#line 14459 ""
- }
-#line 14460 ""
- }
-#line 14461 ""
-/* L60: */
-#line 14461 ""
- }
-
-/* Loop back up, this may not be last option in M. Note flow out if durq=' ' */
-
-#line 14465 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14466 ""
- goto L31;
-#line 14467 ""
- } else if (*(unsigned char *)durq == 'S') {
-#line 14468 ""
- goto L48;
-#line 14469 ""
- }
-
-/* Write instrument names */
-
-#line 14473 ""
- if (! comnvi_1.rename) {
-#line 14474 ""
- i__1 = comnotes_1.ninow;
-#line 14474 ""
- for (iinst = 1; iinst <= i__1; ++iinst) {
-#line 14475 ""
- if (comlast_1.islast) {
-#line 14476 ""
- if (iinst < 10) {
-#line 14477 ""
- s_wsfe(&io___837);
-/* Writing concatenation */
-#line 14477 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14477 ""
- i__5[1] = 7, a__2[1] = "setname";
-#line 14477 ""
- s_cat(ch__14, a__2, i__5, &c__2, (ftnlen)8);
-#line 14477 ""
- do_fio(&c__1, ch__14, (ftnlen)8);
-#line 14477 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(
- integer));
-#line 14477 ""
- do_fio(&c__1, "{}%", (ftnlen)3);
-#line 14477 ""
- e_wsfe();
-#line 14478 ""
- } else {
-#line 14479 ""
- s_wsfe(&io___838);
-/* Writing concatenation */
-#line 14479 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14479 ""
- i__5[1] = 8, a__2[1] = "setname{";
-#line 14479 ""
- s_cat(ch__12, a__2, i__5, &c__2, (ftnlen)9);
-#line 14479 ""
- do_fio(&c__1, ch__12, (ftnlen)9);
-#line 14479 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(
- integer));
-#line 14479 ""
- do_fio(&c__1, "}{}%", (ftnlen)4);
-#line 14479 ""
- e_wsfe();
-#line 14480 ""
- }
-#line 14481 ""
- }
-#line 14482 ""
-/* L62: */
-#line 14482 ""
- }
-#line 14483 ""
- } else {
-#line 14484 ""
- i__1 = comnotes_1.ninow;
-#line 14484 ""
- for (iinst = 1; iinst <= i__1; ++iinst) {
-#line 14485 ""
- if (comlast_1.islast) {
-#line 14486 ""
- if (iinst < 10) {
-#line 14487 ""
- s_wsfe(&io___839);
-/* Writing concatenation */
-#line 14487 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14487 ""
- i__5[1] = 7, a__2[1] = "setname";
-#line 14487 ""
- s_cat(ch__14, a__2, i__5, &c__2, (ftnlen)8);
-#line 14487 ""
- do_fio(&c__1, ch__14, (ftnlen)8);
-#line 14487 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(
- integer));
-/* Writing concatenation */
-#line 14487 ""
- i__6[0] = 1, a__3[0] = "{";
-#line 14487 ""
- 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 14487 ""
- i__6[2] = 2, a__3[2] = "}%";
-#line 14487 ""
- s_cat(ch__15, a__3, i__6, &c__3, (ftnlen)82);
-#line 14487 ""
- do_fio(&c__1, ch__15, comtop_1.lnam[
- comnvi_1.iiorig[iinst - 1] - 1] + 3);
-#line 14487 ""
- e_wsfe();
-#line 14489 ""
- } else {
-#line 14490 ""
- s_wsfe(&io___840);
-/* Writing concatenation */
-#line 14490 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14490 ""
- i__5[1] = 8, a__2[1] = "setname{";
-#line 14490 ""
- s_cat(ch__12, a__2, i__5, &c__2, (ftnlen)9);
-#line 14490 ""
- do_fio(&c__1, ch__12, (ftnlen)9);
-#line 14490 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(
- integer));
-/* Writing concatenation */
-#line 14490 ""
- i__6[0] = 2, a__3[0] = "}{";
-#line 14490 ""
- 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 14490 ""
- i__6[2] = 2, a__3[2] = "}%";
-#line 14490 ""
- s_cat(ch__16, a__3, i__6, &c__3, (ftnlen)83);
-#line 14490 ""
- do_fio(&c__1, ch__16, comtop_1.lnam[
- comnvi_1.iiorig[iinst - 1] - 1] + 4);
-#line 14490 ""
- e_wsfe();
-#line 14492 ""
- }
-#line 14493 ""
- }
-#line 14494 ""
-/* L65: */
-#line 14494 ""
- }
-#line 14495 ""
- if (comshort_1.ishort != 4 && comshort_1.ishort != 2) {
-#line 14495 ""
- comnvi_1.rename = FALSE_;
-#line 14495 ""
- }
-
-/* Reset later and rewrite setname{} in shortening case mcm, since if */
-/* written here it will be inside {{...}} and will be ignored */
-
-#line 14500 ""
- }
-#line 14501 ""
- }
-#line 14502 ""
- } else if (*(unsigned char *)charq == '|') {
-
-/* End of bar symbol. Check about end of bar hardspace. */
-
-#line 14506 ""
- 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 a bar line. Remove it from the hardspace */
-/* list, store with shifts instead, set special bit. Need to repeat this code */
-/* at '/'. */
-
-#line 14512 ""
- 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 14513 ""
- ++comudsp_1.nudoff[commvl_1.ivx - 1];
-#line 14514 ""
- comudsp_1.udoff[commvl_1.ivx + comudsp_1.nudoff[commvl_1.ivx - 1]
- * 24 - 25] = comudsp_1.udsp[comudsp_1.nudsp - 1];
-#line 14515 ""
- --comudsp_1.nudsp;
-#line 14516 ""
- 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 14517 ""
- }
-#line 14518 ""
- } else if (i_indx("wS", charq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Width symbol or new nsyst. Read past (until blank) */
-
-#line 14522 ""
-L4:
-#line 14522 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14523 ""
- if (*(unsigned char *)durq != ' ') {
-#line 14523 ""
- goto L4;
-#line 14523 ""
- }
-#line 14524 ""
- } else if (*(unsigned char *)charq == 'l') {
-
-/* Lower string. Only OK if at start of block */
-/* Check whether at beginning of a block */
-
-#line 14529 ""
- if (all_1.iv != 1 || all_1.nnl[0] != 0) {
-#line 14530 ""
- s_wsle(&io___841);
-#line 14530 ""
- do_lio(&c__9, &c__1, "You entered \"l\" not at beginning of block"
- , (ftnlen)41);
-#line 14530 ""
- e_wsle();
-#line 14531 ""
- stop1_();
-#line 14532 ""
- }
-
-/* Set flag for lower string & read it in */
-
-#line 14536 ""
- comhead_1.lower = TRUE_;
-#line 14537 ""
- getbuf_(comhead_1.lowerq, (ftnlen)80);
-#line 14538 ""
- all_1.iccount = 128;
-#line 14539 ""
- } else if (*(unsigned char *)charq == 'm') {
-
-/* Meter change. Only allow at beginning of block. */
-/* mtrnuml, mtrdenl (logical) and p (printable) will be input. */
-/* mtrnuml=0 initially. (In common) */
-
-/* Check whether at beginning of a block */
-
-#line 14547 ""
- if (all_1.iv != 1 || all_1.nnl[0] != 0) {
-#line 14548 ""
- s_wsle(&io___842);
-#line 14548 ""
- do_lio(&c__9, &c__1, "You entered \"m\" not at beginning of block"
- , (ftnlen)41);
-#line 14548 ""
- e_wsle();
-#line 14549 ""
- stop1_();
-#line 14550 ""
- }
-#line 14551 ""
- readmeter_(lineq, &all_1.iccount, &all_1.mtrnuml, &all_1.mtrdenl, (
- ftnlen)128);
-#line 14552 ""
- readmeter_(lineq, &all_1.iccount, &all_1.mtrnmp, &all_1.mtrdnp, (
- ftnlen)128);
-#line 14553 ""
- lenbeat = ifnodur_(&all_1.mtrdenl, "x", (ftnlen)1);
-#line 14554 ""
- if (all_1.mtrdenl == 2) {
-#line 14554 ""
- lenbeat = 16;
-#line 14554 ""
- }
-#line 14555 ""
- all_1.lenbar = all_1.mtrnuml * lenbeat;
-#line 14556 ""
- if (all_1.mtrdenl == 2) {
-#line 14556 ""
- all_1.lenbar <<= 1;
-#line 14556 ""
- }
-#line 14557 ""
- all_1.lenb1 = all_1.lenbar;
-#line 14558 ""
- all_1.lenb0 = 0;
-#line 14559 ""
- if (commidi_1.ismidi) {
-#line 14559 ""
- midievent_("m", &all_1.mtrnuml, &all_1.mtrdenl, (ftnlen)1);
-#line 14559 ""
- }
-#line 14560 ""
- } else if (*(unsigned char *)charq == 'C') {
-
-/* Clef change on next note. Set bits 11-15. Won't allow in 2nd line of music. */
-
-#line 14564 ""
- if (all_1.nnl[all_1.iv - 1] > 0) {
-#line 14564 ""
- ++comcc_1.ncc[all_1.iv - 1];
-#line 14564 ""
- }
-#line 14565 ""
- comcc_1.tcc[all_1.iv + comcc_1.ncc[all_1.iv - 1] * 24 - 25] = (real)
- all_1.itsofar[all_1.iv - 1];
-#line 14566 ""
- isl = bit_set(all_1.islur[all_1.iv + (all_1.nnl[all_1.iv - 1] + 1) *
- 24 - 25],11);
-#line 14567 ""
- 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 14571 ""
- i__1 = numclef_(durq, (ftnlen)1);
-#line 14571 ""
- isl |= min(i__1,7) << 12;
-#line 14572 ""
- comcc_1.ncmidcc[all_1.iv + comcc_1.ncc[all_1.iv - 1] * 24 - 25] =
- ncmidf_(durq, (ftnlen)1);
-#line 14573 ""
- if (*(unsigned char *)durq == '8') {
-#line 14574 ""
- 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 14575 ""
- cominsttrans_1.itransamt[cominsttrans_1.instno[all_1.iv - 1] - 1]
- += 7;
-#line 14576 ""
- comnotes_1.lastlev += 7;
-#line 14577 ""
- if (all_1.nnl[all_1.iv - 1] == 0) {
-#line 14578 ""
- comnotes_1.ndlev[all_1.iv - 1] += 7;
-#line 14579 ""
- comnotes_1.ndlev[all_1.iv + 23] += 7;
-#line 14580 ""
- }
-#line 14581 ""
- } else {
-
-/* This won't work if you really had an octave transposition with some */
-/* other clef. Need a check on whether prior clef was an octave clef. */
-
-#line 14586 ""
- if (cominsttrans_1.itransamt[cominsttrans_1.instno[all_1.iv - 1]
- - 1] == 7) {
-#line 14587 ""
- cominsttrans_1.itransamt[cominsttrans_1.instno[all_1.iv - 1]
- - 1] += -7;
-#line 14588 ""
- comnotes_1.lastlev += -7;
-#line 14589 ""
- if (all_1.nnl[all_1.iv - 1] == 0) {
-#line 14590 ""
- comnotes_1.ndlev[all_1.iv - 1] += -7;
-#line 14591 ""
- comnotes_1.ndlev[all_1.iv + 23] += -7;
-#line 14592 ""
- }
-#line 14593 ""
- }
-#line 14594 ""
- }
-
-/* Set marker on note with lowest voice # starting at same time. */
-
-#line 14598 ""
- if (all_1.iv == 1) {
-#line 14599 ""
- isl = bit_set(isl,15);
-#line 14600 ""
- } else {
-#line 14601 ""
- i__1 = all_1.iv;
-#line 14601 ""
- for (iiv = 1; iiv <= i__1; ++iiv) {
-#line 14602 ""
- nnliiv = all_1.nnl[iiv - 1];
-#line 14603 ""
- if (iiv == all_1.iv) {
-#line 14603 ""
- ++nnliiv;
-#line 14603 ""
- }
-#line 14604 ""
- itother = 0;
-#line 14605 ""
- i__2 = nnliiv;
-#line 14605 ""
- for (iip = 1; iip <= i__2; ++iip) {
-#line 14606 ""
- if (itother < all_1.itsofar[all_1.iv - 1]) {
-#line 14607 ""
- itother += all_1.nodur[iiv + iip * 24 - 25];
-#line 14608 ""
- goto L14;
-#line 14609 ""
- } else if (itother == all_1.itsofar[all_1.iv - 1]) {
-#line 14610 ""
- all_1.islur[iiv + iip * 24 - 25] = bit_set(
- all_1.islur[iiv + iip * 24 - 25],15);
-#line 14611 ""
- goto L15;
-#line 14612 ""
- }
-#line 14613 ""
-L14:
-#line 14613 ""
- ;
-#line 14613 ""
- }
-#line 14614 ""
-/* L13: */
-#line 14614 ""
- }
-#line 14615 ""
-L15:
-#line 14616 ""
- ;
-#line 14616 ""
- }
-
-/* Need 'or' since may have set bit 15 in the above loop */
-
-#line 14620 ""
- 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 14621 ""
- } else if (*(unsigned char *)charq == 'R') {
-
-/* Repeats. set bits 5, 6, and/or 8 of islur(1,ip+1) */
-
-#line 14625 ""
-L10:
-#line 14625 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-
-/* Save designator in case it's a terminal Rr or Rd */
-
-#line 14629 ""
- if (*(unsigned char *)durq == 'l') {
-#line 14630 ""
- all_1.islur[(all_1.nnl[0] + 1) * 24 - 24] = bit_set(all_1.islur[(
- all_1.nnl[0] + 1) * 24 - 24],5);
-#line 14631 ""
- goto L10;
-#line 14632 ""
- } else if (i_indx("rdDbz", durq, (ftnlen)5, (ftnlen)1) > 0) {
-#line 14633 ""
- if (*(unsigned char *)durq == 'r') {
-#line 14634 ""
- all_1.islur[(all_1.nnl[0] + 1) * 24 - 24] = bit_set(
- all_1.islur[(all_1.nnl[0] + 1) * 24 - 24],6);
-#line 14635 ""
- } else if (*(unsigned char *)durq == 'd') {
-#line 14636 ""
- all_1.islur[(all_1.nnl[0] + 1) * 24 - 24] = bit_set(
- all_1.islur[(all_1.nnl[0] + 1) * 24 - 24],8);
-#line 14637 ""
- } else if (*(unsigned char *)durq == 'D') {
-#line 14638 ""
- all_1.islur[(all_1.nnl[0] + 1) * 24 - 24] = bit_set(
- all_1.islur[(all_1.nnl[0] + 1) * 24 - 24],26);
-#line 14639 ""
- } else if (*(unsigned char *)durq == 'b') {
-#line 14640 ""
- all_1.islur[(all_1.nnl[0] + 1) * 24 - 24] = bit_set(
- all_1.islur[(all_1.nnl[0] + 1) * 24 - 24],25);
-#line 14641 ""
- } else if (*(unsigned char *)durq == 'z') {
-/* iornq(1,nnl(1)+1) = ibset(iornq(1,nnl(1)+1),29) */
-#line 14643 ""
- all_1.ipl[(all_1.nnl[0] + 1) * 24 - 24] = bit_set(all_1.ipl[(
- all_1.nnl[0] + 1) * 24 - 24],0);
-#line 14644 ""
- }
-#line 14645 ""
- comget_1.rptprev = TRUE_;
-#line 14646 ""
- *(unsigned char *)comget_1.rptfq1 = *(unsigned char *)durq;
-#line 14647 ""
- goto L10;
-#line 14648 ""
- }
-#line 14649 ""
- } else if (*(unsigned char *)charq == 'V') {
-
-/* Ending */
-
-#line 14653 ""
- nnnl = all_1.nnl[0] + 1;
-#line 14654 ""
- lvoltxt = 0;
-#line 14655 ""
-L11:
-#line 14655 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14656 ""
- if (*(unsigned char *)durq == 'b' || *(unsigned char *)durq == 'x') {
-
-/* End Volta, set bit9, and bit10 on if 'b' (end w/ box) */
-
-#line 14660 ""
- all_1.islur[nnnl * 24 - 24] = bit_set(all_1.islur[nnnl * 24 - 24],
- 9);
-#line 14661 ""
- if (*(unsigned char *)durq == 'b') {
-#line 14661 ""
- all_1.islur[nnnl * 24 - 24] = bit_set(all_1.islur[nnnl * 24 -
- 24],10);
-#line 14661 ""
- }
-#line 14662 ""
- goto L11;
-#line 14663 ""
- } else if (*(unsigned char *)durq != ' ') {
-
-/* Start volta; Get text */
-
-#line 14667 ""
- if (lvoltxt == 0) {
-
-/* First character for text */
-
-#line 14671 ""
- lvoltxt = 1;
-#line 14672 ""
- all_1.islur[nnnl * 24 - 24] = bit_set(all_1.islur[nnnl * 24 -
- 24],7);
-#line 14673 ""
- ++comgrace_1.nvolt;
-#line 14674 ""
- s_copy(comgrace_1.voltxtq + (comgrace_1.nvolt - 1) * 20, durq,
- (ftnlen)20, (ftnlen)1);
-#line 14675 ""
- } else {
-/* Writing concatenation */
-#line 14676 ""
- i__5[0] = lvoltxt, a__2[0] = comgrace_1.voltxtq + (
- comgrace_1.nvolt - 1) * 20;
-#line 14676 ""
- i__5[1] = 1, a__2[1] = durq;
-#line 14676 ""
- s_cat(comgrace_1.voltxtq + (comgrace_1.nvolt - 1) * 20, a__2,
- i__5, &c__2, (ftnlen)20);
-#line 14677 ""
- ++lvoltxt;
-#line 14678 ""
- }
-#line 14679 ""
- goto L11;
-#line 14680 ""
- }
-#line 14681 ""
- } else if (*(unsigned char *)charq == 'B') {
-#line 14682 ""
- combc_1.bcspec = ! combc_1.bcspec;
-#line 14683 ""
- } else if (*(unsigned char *)charq == 'P') {
-
-/* Page numbers. Print stuff right now. */
-
-#line 14687 ""
- npg1 = 0;
-
-/* Will use ltopnam to signal whether there's a centered heading */
-
-#line 14691 ""
- ltopnam = 0;
-#line 14692 ""
- ipg1r = 0;
-#line 14693 ""
-L16:
-#line 14693 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14694 ""
- if (*(unsigned char *)durq >= 48 && *(unsigned char *)durq <= 57) {
-#line 14695 ""
- npg1 = npg1 * 10 + *(unsigned char *)durq - 48;
-#line 14696 ""
- goto L16;
-#line 14697 ""
- } else if (*(unsigned char *)durq == 'l') {
-#line 14698 ""
- if (npg1 == 0 || npg1 % 2 == 1) {
-#line 14698 ""
- ipg1r = 1;
-#line 14698 ""
- }
-#line 14699 ""
- goto L16;
-#line 14700 ""
- } else if (*(unsigned char *)durq == 'r') {
-#line 14701 ""
- if (npg1 > 0 && npg1 % 2 == 0) {
-#line 14701 ""
- ipg1r = 1;
-#line 14701 ""
- }
-#line 14702 ""
- goto L16;
-#line 14703 ""
- } 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 14708 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14709 ""
- if (*(unsigned char *)durq == ' ') {
-#line 14710 ""
- ltopnam = lenstr_(comtrans_1.cheadq, &c__60, (ftnlen)60);
-#line 14711 ""
- } else {
-#line 14712 ""
- namstrt = all_1.iccount;
-#line 14713 ""
- if (*(unsigned char *)durq == '"') {
-
-/* Using quote delimiters. */
-
-#line 14717 ""
- quoted = TRUE_;
-#line 14718 ""
- ++namstrt;
-#line 14719 ""
- } else {
-#line 14720 ""
- quoted = FALSE_;
-#line 14721 ""
- }
-#line 14722 ""
- for (all_1.iccount = namstrt + 1; all_1.iccount <= 128;
- ++all_1.iccount) {
-/* if ((quoted .and. lineq(iccount:iccount) .eq. '"') .or. */
-#line 14724 ""
- i__1 = all_1.iccount - 2;
-#line 14724 ""
- if (quoted && *(unsigned char *)&lineq[all_1.iccount - 1]
- == '"' && s_cmp(lineq + i__1, "\\", all_1.iccount
- - 1 - i__1, (ftnlen)1) != 0 || ! quoted && *(
- unsigned char *)&lineq[all_1.iccount - 1] == ' ')
- {
-#line 14724 ""
- goto L36;
-#line 14724 ""
- }
-
-/* On exit, iccount is OK, and name is in (namstrt:iccount-1) */
-
-#line 14731 ""
-/* L35: */
-#line 14731 ""
- }
-#line 14732 ""
- s_wsle(&io___851);
-#line 14732 ""
- do_lio(&c__9, &c__1, "Awww, cmon, should not be here.", (
- ftnlen)31);
-#line 14732 ""
- e_wsle();
-#line 14733 ""
- stop1_();
-#line 14734 ""
-L36:
-#line 14735 ""
- ltopnam = all_1.iccount - namstrt;
-#line 14736 ""
- s_copy(comtrans_1.cheadq, lineq + (namstrt - 1), (ftnlen)60,
- all_1.iccount - 1 - (namstrt - 1));
-#line 14737 ""
- }
-#line 14738 ""
- }
-
-/* Done getting data, now assemble the command */
-
-#line 14742 ""
- if (npg1 == 0) {
-#line 14742 ""
- npg1 = 1;
-#line 14742 ""
- }
-
-/* 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 14747 ""
- i__7[0] = 1, a__4[0] = all_1.sq;
-#line 14747 ""
- i__7[1] = 3, a__4[1] = "def";
-#line 14747 ""
- i__7[2] = 1, a__4[2] = all_1.sq;
-#line 14747 ""
- i__7[3] = 11, a__4[3] = "atnextline{";
-#line 14747 ""
- i__7[4] = 1, a__4[4] = all_1.sq;
-#line 14747 ""
- i__7[5] = 10, a__4[5] = "toppageno{";
-#line 14747 ""
- s_cat(hdlndq, a__4, i__7, &c__6, (ftnlen)59);
-#line 14748 ""
- lhead = 27;
-/* else */
-/* hdlndq = sq//'toppageno{' */
-/* lhead = 11 */
-/* end if */
-#line 14753 ""
- if (npg1 < 10) {
-
-/* Note we are overwriting the last "{" */
-
-#line 14757 ""
- ici__1.icierr = 0;
-#line 14757 ""
- ici__1.icirnum = 1;
-#line 14757 ""
- ici__1.icirlen = 1;
-#line 14757 ""
- ici__1.iciunit = hdlndq + (lhead - 1);
-#line 14757 ""
- ici__1.icifmt = "(i1)";
-#line 14757 ""
- s_wsfi(&ici__1);
-#line 14757 ""
- do_fio(&c__1, (char *)&npg1, (ftnlen)sizeof(integer));
-#line 14757 ""
- e_wsfi();
-#line 14758 ""
- } else if (npg1 < 100) {
-#line 14759 ""
- lhead += 3;
-#line 14760 ""
- i__1 = lhead - 3;
-#line 14760 ""
- ici__1.icierr = 0;
-#line 14760 ""
- ici__1.icirnum = 1;
-#line 14760 ""
- ici__1.icirlen = lhead - i__1;
-#line 14760 ""
- ici__1.iciunit = hdlndq + i__1;
-#line 14760 ""
- ici__1.icifmt = "(i2,a1)";
-#line 14760 ""
- s_wsfi(&ici__1);
-#line 14760 ""
- do_fio(&c__1, (char *)&npg1, (ftnlen)sizeof(integer));
-#line 14760 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 14760 ""
- e_wsfi();
-#line 14761 ""
- } else {
-#line 14762 ""
- lhead += 4;
-#line 14763 ""
- i__1 = lhead - 4;
-#line 14763 ""
- ici__1.icierr = 0;
-#line 14763 ""
- ici__1.icirnum = 1;
-#line 14763 ""
- ici__1.icirlen = lhead - i__1;
-#line 14763 ""
- ici__1.iciunit = hdlndq + i__1;
-#line 14763 ""
- ici__1.icifmt = "(i3,a1)";
-#line 14763 ""
- s_wsfi(&ici__1);
-#line 14763 ""
- do_fio(&c__1, (char *)&npg1, (ftnlen)sizeof(integer));
-#line 14763 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 14763 ""
- e_wsfi();
-#line 14764 ""
- }
-/* Writing concatenation */
-#line 14765 ""
- i__6[0] = lhead, a__3[0] = hdlndq;
-#line 14765 ""
- i__1 = ipg1r + 48;
-#line 14765 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 14765 ""
- i__6[1] = 1, a__3[1] = ch__1;
-#line 14765 ""
- i__6[2] = 1, a__3[2] = "{";
-#line 14765 ""
- s_cat(hdlndq, a__3, i__6, &c__3, (ftnlen)59);
-#line 14766 ""
- lhead += 2;
-/* if (ipage.gt.1 .or. nsystp(1).gt.1) then */
-#line 14768 ""
- if (ltopnam == 0) {
-#line 14769 ""
- if (comlast_1.islast) {
-#line 14769 ""
- s_wsfe(&io___853);
-/* Writing concatenation */
-#line 14769 ""
- i__5[0] = lhead, a__2[0] = hdlndq;
-#line 14769 ""
- i__5[1] = 3, a__2[1] = "}}%";
-#line 14769 ""
- s_cat(ch__17, a__2, i__5, &c__2, (ftnlen)62);
-#line 14769 ""
- do_fio(&c__1, ch__17, lhead + 3);
-#line 14769 ""
- e_wsfe();
-#line 14769 ""
- }
-#line 14770 ""
- } else {
-#line 14771 ""
- if (comlast_1.islast) {
-#line 14771 ""
- s_wsfe(&io___854);
-/* Writing concatenation */
-#line 14771 ""
- i__6[0] = lhead, a__3[0] = hdlndq;
-#line 14771 ""
- i__6[1] = ltopnam, a__3[1] = comtrans_1.cheadq;
-#line 14771 ""
- i__6[2] = 3, a__3[2] = "}}%";
-#line 14771 ""
- s_cat(ch__18, a__3, i__6, &c__3, (ftnlen)122);
-#line 14771 ""
- do_fio(&c__1, ch__18, lhead + ltopnam + 3);
-#line 14771 ""
- e_wsfe();
-#line 14771 ""
- }
-#line 14773 ""
- }
-/* else */
-/* if (ltopnam .eq. 0) then */
-/* if (islast) write(11,'(a)')hdlndq(1:lhead)//'}%' */
-/* else */
-/* if (islast) */
-/* * write(11,'(a)')hdlndq(1:lhead)//cheadq(1:ltopnam)//'}%' */
-/* end if */
-/* end if */
-#line 14782 ""
- } else if (*(unsigned char *)charq == 'W') {
-
-/* Just eat the number that must follow, it was used in pmxa */
-
-#line 14786 ""
- ++all_1.iccount;
-#line 14787 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 14788 ""
- } else if (*(unsigned char *)charq == 'T') {
-#line 14789 ""
- comtitl_1.headlog = TRUE_;
-#line 14790 ""
- comtitl_1.inhead = 0;
-#line 14791 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14792 ""
- if (*(unsigned char *)durq == 'i') {
-#line 14793 ""
- getbuf_(comtitl_1.instrq, (ftnlen)120);
-
-/* A kluge for parts from separate score file for later movements. */
-
-#line 14797 ""
- if (*(unsigned char *)comtitl_1.instrq == ' ') {
-#line 14797 ""
- comtitl_1.headlog = FALSE_;
-#line 14797 ""
- }
-#line 14798 ""
- s_copy(comtrans_1.cheadq, comtitl_1.instrq, (ftnlen)60, (ftnlen)
- 60);
-#line 14799 ""
- } else if (*(unsigned char *)durq == 't') {
-#line 14800 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-
-/* Optionally can include extra vertical \internotes above inbothd */
-
-#line 14804 ""
- if (i_indx("-+0123456789", durq, (ftnlen)12, (ftnlen)1) > 0) {
-#line 14805 ""
- ipm = 1;
-#line 14806 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Don't trust readnum to round this negative integer properly */
-
-#line 14810 ""
- ++all_1.iccount;
-#line 14811 ""
- if (*(unsigned char *)durq == '-') {
-#line 14811 ""
- ipm = -1;
-#line 14811 ""
- }
-#line 14812 ""
- }
-#line 14813 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 14814 ""
- comtitl_1.inhead = ipm * i_nint(&fnum);
-#line 14815 ""
- }
-#line 14816 ""
- getbuf_(comtitl_1.titleq, (ftnlen)120);
-#line 14817 ""
- } else {
-#line 14818 ""
- getbuf_(comtitl_1.compoq, (ftnlen)120);
-#line 14819 ""
- }
-#line 14820 ""
- comtitl_1.inhead += cominbot_1.inbothd;
-#line 14821 ""
- all_1.iccount = 128;
-#line 14822 ""
- } else if (*(unsigned char *)charq == 'A') {
-
-/* Accidental handling etc. */
-
-#line 14826 ""
-L27:
-#line 14826 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14827 ""
- if (*(unsigned char *)durq == 'r') {
-#line 14828 ""
- if (comlast_1.islast) {
-#line 14829 ""
- commidi_1.relacc = TRUE_;
-#line 14830 ""
- s_wsfe(&io___855);
-/* Writing concatenation */
-#line 14830 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14830 ""
- i__5[1] = 14, a__2[1] = "relativeaccid%";
-#line 14830 ""
- s_cat(ch__19, a__2, i__5, &c__2, (ftnlen)15);
-#line 14830 ""
- do_fio(&c__1, ch__19, (ftnlen)15);
-#line 14830 ""
- e_wsfe();
-#line 14831 ""
- }
-#line 14832 ""
- } else if (*(unsigned char *)durq == 's') {
-#line 14833 ""
- spfacs_1.bacfac = 1e6f;
-#line 14834 ""
- } else if (*(unsigned char *)durq == 'b') {
-#line 14835 ""
- if (comlast_1.islast) {
-#line 14835 ""
- s_wsfe(&io___856);
-/* Writing concatenation */
-#line 14835 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14835 ""
- i__5[1] = 9, a__2[1] = "bigaccid%";
-#line 14835 ""
- s_cat(ch__3, a__2, i__5, &c__2, (ftnlen)10);
-#line 14835 ""
- do_fio(&c__1, ch__3, (ftnlen)10);
-#line 14835 ""
- e_wsfe();
-#line 14835 ""
- }
-#line 14836 ""
- spfacs_1.accfac = spfacs_1.bacfac;
-#line 14837 ""
- } else if (*(unsigned char *)durq == 'a') {
-#line 14838 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14839 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen)
- 1);
-#line 14840 ""
- --all_1.iccount;
-#line 14841 ""
- } else if (*(unsigned char *)durq == 'i') {
-#line 14842 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14843 ""
- readnum_(lineq, &all_1.iccount, durq, &tintstf, (ftnlen)128, (
- ftnlen)1);
-#line 14844 ""
- if (! all_1.firstgulp) {
-#line 14844 ""
- comget_1.fintstf = tintstf;
-#line 14844 ""
- }
-
-/* Local corrections for first page were handled by pmxa */
-
-#line 14848 ""
- --all_1.iccount;
-#line 14849 ""
- } else if (*(unsigned char *)durq == 'I') {
-#line 14850 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14851 ""
- readnum_(lineq, &all_1.iccount, durq, &comget_1.gintstf, (ftnlen)
- 128, (ftnlen)1);
-#line 14852 ""
- --all_1.iccount;
-#line 14853 ""
- } else if (*(unsigned char *)durq == 'd') {
-#line 14854 ""
- comarp_1.lowdot = TRUE_;
-#line 14855 ""
- } else if (*(unsigned char *)durq == 'o') {
-#line 14857 ""
- } else if (*(unsigned char *)durq == 'S') {
-#line 14858 ""
- i__1 = comkeys_2.noinst;
-#line 14858 ""
- for (iiv = 1; iiv <= i__1; ++iiv) {
-#line 14859 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14860 ""
- if (i_indx("-s", durq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 14861 ""
- comfig_1.fullsize[iiv - 1] = .8f;
-#line 14862 ""
- } else if (*(unsigned char *)durq == 't') {
-#line 14863 ""
- comfig_1.fullsize[iiv - 1] = .64f;
-#line 14864 ""
- } else {
-/* fullsize(ivx) = 1.0 */
-#line 14866 ""
- comfig_1.fullsize[iiv - 1] = 1.f;
-#line 14867 ""
- }
-#line 14868 ""
-/* L50: */
-#line 14868 ""
- }
-#line 14869 ""
- } else if (*(unsigned char *)durq == 'e') {
-
-/* Line-spacing equalization */
-
-#line 14873 ""
- 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 14879 ""
- s_wsfe(&io___858);
-/* Writing concatenation */
-#line 14879 ""
- i__8[0] = 1, a__5[0] = all_1.sq;
-#line 14879 ""
- i__8[1] = 6, a__5[1] = "global";
-#line 14879 ""
- i__8[2] = 1, a__5[2] = all_1.sq;
-#line 14879 ""
- i__8[3] = 19, a__5[3] = "parskip 0pt plus 12";
-#line 14879 ""
- i__8[4] = 1, a__5[4] = all_1.sq;
-#line 14879 ""
- i__8[5] = 19, a__5[5] = "Interligne minus 99";
-#line 14879 ""
- i__8[6] = 1, a__5[6] = all_1.sq;
-#line 14879 ""
- i__8[7] = 11, a__5[7] = "Interligne%";
-#line 14879 ""
- s_cat(ch__20, a__5, i__8, &c__8, (ftnlen)59);
-#line 14879 ""
- do_fio(&c__1, ch__20, (ftnlen)59);
-#line 14879 ""
- e_wsfe();
-#line 14881 ""
- s_copy(tempq, all_1.sepsymq, (ftnlen)24, (ftnlen)1);
-#line 14882 ""
- lentemp = 1;
-#line 14883 ""
- i__1 = all_1.nv - 1;
-#line 14883 ""
- for (iiv = 2; iiv <= i__1; ++iiv) {
-/* Writing concatenation */
-#line 14884 ""
- i__5[0] = lentemp, a__2[0] = tempq;
-#line 14884 ""
- i__5[1] = 1, a__2[1] = all_1.sepsymq + (iiv - 1);
-#line 14884 ""
- s_cat(tempq, a__2, i__5, &c__2, (ftnlen)24);
-#line 14885 ""
- ++lentemp;
-#line 14886 ""
-/* L51: */
-#line 14886 ""
- }
-#line 14887 ""
- s_wsfe(&io___861);
-/* Writing concatenation */
-#line 14887 ""
- i__9[0] = 1, a__6[0] = all_1.sq;
-#line 14887 ""
- i__9[1] = 3, a__6[1] = "def";
-#line 14887 ""
- i__9[2] = 1, a__6[2] = all_1.sq;
-#line 14887 ""
- i__9[3] = 8, a__6[3] = "upstrut{";
-#line 14887 ""
- i__9[4] = 1, a__6[4] = all_1.sq;
-#line 14887 ""
- i__9[5] = 6, a__6[5] = "znotes";
-#line 14887 ""
- i__9[6] = lentemp, a__6[6] = tempq;
-#line 14887 ""
- i__9[7] = 1, a__6[7] = all_1.sq;
-#line 14887 ""
- i__9[8] = 10, a__6[8] = "zcharnote{";
-#line 14887 ""
- i__9[9] = 1, a__6[9] = all_1.sq;
-#line 14887 ""
- i__9[10] = 9, a__6[10] = "upamt}{~}";
-#line 14887 ""
- i__9[11] = 1, a__6[11] = all_1.sq;
-#line 14887 ""
- i__9[12] = 4, a__6[12] = "en}%";
-#line 14887 ""
- s_cat(ch__21, a__6, i__9, &c__13, (ftnlen)70);
-#line 14887 ""
- do_fio(&c__1, ch__21, lentemp + 46);
-#line 14887 ""
- e_wsfe();
-#line 14890 ""
- } else if (*(unsigned char *)durq == 'v') {
-
-/* Toggle usevshrink */
-
-#line 14894 ""
- comlast_1.usevshrink = ! comlast_1.usevshrink;
-#line 14895 ""
- } else if (*(unsigned char *)durq == 'p') {
-
-/* Postscript slurs. fontslur is already false (set in g1etnote) */
-
-#line 14899 ""
- if (! comslur_1.wrotepsslurdefaults) {
-
-/* Set postscrirpt slur adjustment defaults */
-
-#line 14903 ""
- s_wsfe(&io___862);
-/* Writing concatenation */
-#line 14903 ""
- i__7[0] = 1, a__4[0] = all_1.sq;
-#line 14903 ""
- i__7[1] = 12, a__4[1] = "Nosluradjust";
-#line 14903 ""
- i__7[2] = 1, a__4[2] = all_1.sq;
-#line 14903 ""
- i__7[3] = 11, a__4[3] = "Notieadjust";
-#line 14903 ""
- i__7[4] = 1, a__4[4] = all_1.sq;
-#line 14903 ""
- i__7[5] = 10, a__4[5] = "nohalfties";
-#line 14903 ""
- s_cat(ch__22, a__4, i__7, &c__6, (ftnlen)36);
-#line 14903 ""
- do_fio(&c__1, ch__22, (ftnlen)36);
-#line 14903 ""
- e_wsfe();
-#line 14905 ""
- comslur_1.wrotepsslurdefaults = TRUE_;
-#line 14906 ""
- }
-#line 14907 ""
-L52:
-#line 14908 ""
- g1etchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-/* might be "+", "-", "h" or */
-#line 14909 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Characters to change defaults for ps slurs */
-
-#line 14913 ""
- g1etchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)
- 1);
-/* charq will be "s,t,h,c */
-#line 14914 ""
- if (*(unsigned char *)durq == '+') {
-#line 14915 ""
- if (*(unsigned char *)charq == 's') {
-#line 14916 ""
- s_wsfe(&io___863);
-/* Writing concatenation */
-#line 14916 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14916 ""
- i__5[1] = 10, a__2[1] = "Sluradjust";
-#line 14916 ""
- s_cat(ch__10, a__2, i__5, &c__2, (ftnlen)11);
-#line 14916 ""
- do_fio(&c__1, ch__10, (ftnlen)11);
-#line 14916 ""
- e_wsfe();
-#line 14917 ""
- } else if (*(unsigned char *)charq == 't') {
-#line 14918 ""
- s_wsfe(&io___864);
-/* Writing concatenation */
-#line 14918 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14918 ""
- i__5[1] = 9, a__2[1] = "Tieadjust";
-#line 14918 ""
- s_cat(ch__3, a__2, i__5, &c__2, (ftnlen)10);
-#line 14918 ""
- do_fio(&c__1, ch__3, (ftnlen)10);
-#line 14918 ""
- e_wsfe();
-#line 14919 ""
- } else if (*(unsigned char *)charq == 'h') {
-#line 14920 ""
- s_wsfe(&io___865);
-/* Writing concatenation */
-#line 14920 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14920 ""
- i__5[1] = 8, a__2[1] = "halfties";
-#line 14920 ""
- s_cat(ch__12, a__2, i__5, &c__2, (ftnlen)9);
-#line 14920 ""
- do_fio(&c__1, ch__12, (ftnlen)9);
-#line 14920 ""
- e_wsfe();
-#line 14921 ""
- } else {
-#line 14922 ""
- comslur_1.slurcurve += 1;
-#line 14923 ""
- if (comslur_1.slurcurve > 3.1f) {
-#line 14924 ""
- printl_("WARNING!", (ftnlen)8);
-#line 14925 ""
- printl_("Default slur curvature advanced past HH"\
- ", resetting", (ftnlen)50);
-#line 14927 ""
- comslur_1.slurcurve = 3.f;
-#line 14928 ""
- }
-#line 14929 ""
- }
-#line 14930 ""
- } else {
-#line 14931 ""
- if (*(unsigned char *)charq == 's') {
-#line 14932 ""
- s_wsfe(&io___866);
-/* Writing concatenation */
-#line 14932 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14932 ""
- i__5[1] = 12, a__2[1] = "Nosluradjust";
-#line 14932 ""
- s_cat(ch__4, a__2, i__5, &c__2, (ftnlen)13);
-#line 14932 ""
- do_fio(&c__1, ch__4, (ftnlen)13);
-#line 14932 ""
- e_wsfe();
-#line 14933 ""
- } else if (*(unsigned char *)charq == 't') {
-#line 14934 ""
- s_wsfe(&io___867);
-/* Writing concatenation */
-#line 14934 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14934 ""
- i__5[1] = 11, a__2[1] = "Notieadjust";
-#line 14934 ""
- s_cat(ch__2, a__2, i__5, &c__2, (ftnlen)12);
-#line 14934 ""
- do_fio(&c__1, ch__2, (ftnlen)12);
-#line 14934 ""
- e_wsfe();
-#line 14935 ""
- } else if (*(unsigned char *)charq == 'h') {
-#line 14936 ""
- s_wsfe(&io___868);
-/* Writing concatenation */
-#line 14936 ""
- i__5[0] = 1, a__2[0] = all_1.sq;
-#line 14936 ""
- i__5[1] = 10, a__2[1] = "nohalfties";
-#line 14936 ""
- s_cat(ch__10, a__2, i__5, &c__2, (ftnlen)11);
-#line 14936 ""
- do_fio(&c__1, ch__10, (ftnlen)11);
-#line 14936 ""
- e_wsfe();
-#line 14937 ""
- } else {
-#line 14938 ""
- comslur_1.slurcurve += -1;
-#line 14939 ""
- if (comslur_1.slurcurve < -1.1f) {
-#line 14940 ""
- printl_("WARNING!", (ftnlen)8);
-#line 14941 ""
- printl_("Default slur curvature decremented belo"\
- "w f, resetting", (ftnlen)53);
-#line 14943 ""
- comslur_1.slurcurve = -1.f;
-#line 14944 ""
- }
-#line 14945 ""
- }
-#line 14946 ""
- }
-#line 14947 ""
- goto L52;
-/* Check for another set of default changes */
-#line 14948 ""
- } else if (*(unsigned char *)durq == 'l') {
-
-/* Set optional linebreak ties */
-
-#line 14952 ""
- comnotes_1.optlinebreakties = TRUE_;
-#line 14953 ""
- goto L52;
-#line 14954 ""
- } else if (*(unsigned char *)durq == 'h') {
-
-/* Set flag to write header special on every page */
-
-#line 14958 ""
- comnotes_1.headerspecial = TRUE_;
-#line 14959 ""
- goto L52;
-#line 14960 ""
- } else {
-#line 14961 ""
- --all_1.iccount;
-#line 14962 ""
- }
-#line 14963 ""
- } else if (*(unsigned char *)durq == 'K') {
-
-/* Toggle keyboard rest placement flag */
-
-#line 14967 ""
- comkbdrests_1.kbdrests = ! comkbdrests_1.kbdrests;
-#line 14968 ""
- } else if (*(unsigned char *)durq == 'c') {
-#line 14969 ""
- g1etchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-
-/* Just eat the input; it was used in pmxa */
-
-#line 14973 ""
- goto L27;
-#line 14974 ""
- } else if (*(unsigned char *)durq == 'V') {
-#line 14975 ""
- combottop_1.bottopgap = TRUE_;
-#line 14976 ""
- combottop_1.topamt = 0.f;
-#line 14977 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14978 ""
- pmfac = (real) (i_indx("- +", durq, (ftnlen)3, (ftnlen)1) - 2);
-#line 14979 ""
- g1etchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14980 ""
- readnum_(lineq, &all_1.iccount, durq, &combottop_1.botamt, (
- ftnlen)128, (ftnlen)1);
-#line 14981 ""
- combottop_1.botamt *= pmfac;
-#line 14982 ""
- pmfac = (real) (i_indx("- +", durq, (ftnlen)3, (ftnlen)1) - 2);
-#line 14983 ""
- g1etchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 14984 ""
- readnum_(lineq, &all_1.iccount, durq, &combottop_1.topamt, (
- ftnlen)128, (ftnlen)1);
-#line 14985 ""
- combottop_1.topamt *= pmfac;
-#line 14986 ""
- --all_1.iccount;
-#line 14987 ""
- goto L27;
-#line 14988 ""
- }
-#line 14989 ""
- 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 14994 ""
- all_1.iccount = 128;
-#line 14995 ""
- } else if (*(unsigned char *)durq != ' ') {
-#line 14996 ""
- goto L27;
-#line 14997 ""
- }
-#line 14998 ""
- } else if (*(unsigned char *)charq == 'K') {
-#line 14999 ""
-L77:
-#line 15000 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15001 ""
- if (*(unsigned char *)durq == 'n') {
-#line 15002 ""
- comignorenats_1.ignorenats = TRUE_;
-#line 15003 ""
- goto L77;
-#line 15004 ""
- }
-#line 15005 ""
- if (*(unsigned char *)durq != 'i') {
-
-/* Normal, full-score key change and/or transposition */
-
-#line 15009 ""
- num1 = 44 - *(unsigned char *)durq;
-#line 15010 ""
- ++all_1.iccount;
-#line 15011 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen)
- 1);
-#line 15012 ""
- num1 *= i_nint(&fnum);
-
-/* On exit, durq='+','-'. But only need isig if after start, else done in pmxa */
-
-#line 15016 ""
- ++all_1.iccount;
-#line 15017 ""
- readnum_(lineq, &all_1.iccount, charq, &fnum, (ftnlen)128, (
- ftnlen)1);
-#line 15018 ""
- if (commidi_1.ismidi) {
-#line 15019 ""
- commidisig_1.midisig = i_nint(&fnum);
-#line 15020 ""
- if (*(unsigned char *)durq == '-') {
-#line 15020 ""
- commidisig_1.midisig = -commidisig_1.midisig;
-#line 15020 ""
- }
-/* 130317 */
-#line 15022 ""
- commidisig_1.midisig += comtop_1.idsig;
-#line 15023 ""
- midievent_("k", &commidisig_1.midisig, &c__0, (ftnlen)1);
-#line 15025 ""
- }
-/* 70 continue */
-#line 15027 ""
- if (num1 == 0) {
-
-/* Key change, not transposition. */
-
-#line 15031 ""
- 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 15032 ""
- comtop_1.lastisig = comtop_1.isig;
-#line 15033 ""
- comtop_1.isig = i_nint(&fnum);
-#line 15034 ""
- if (*(unsigned char *)durq == '-') {
-#line 15034 ""
- comtop_1.isig = -comtop_1.isig;
-#line 15034 ""
- }
-#line 15035 ""
- comtop_1.isig += comtop_1.idsig;
-#line 15036 ""
- if (commidi_1.ismidi) {
-#line 15036 ""
- midievent_("k", &comtop_1.isig, &c__0, (ftnlen)1);
-#line 15036 ""
- }
-#line 15037 ""
- } 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 15043 ""
- jv = 0;
-#line 15044 ""
- while(jv < 24) {
-#line 15045 ""
- ++jv;
-#line 15046 ""
- cominsttrans_1.itransamt[jv - 1] = num1;
-#line 15047 ""
- }
-#line 15048 ""
- comtop_1.idsig = comtop_1.isig - comtop_1.isig0;
-#line 15049 ""
- }
-#line 15050 ""
- } else {
-
-/* Instrument specific transposition. */
-
-#line 15054 ""
- 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 15059 ""
- }
-#line 15060 ""
- } else if (*(unsigned char *)charq == '/') {
-#line 15061 ""
- 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 15066 ""
- 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 15067 ""
- ++comudsp_1.nudoff[commvl_1.ivx - 1];
-#line 15068 ""
- comudsp_1.udoff[commvl_1.ivx + comudsp_1.nudoff[commvl_1.ivx - 1]
- * 24 - 25] = comudsp_1.udsp[comudsp_1.nudsp - 1];
-#line 15069 ""
- --comudsp_1.nudsp;
-#line 15070 ""
- 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 15071 ""
- }
-#line 15072 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-
-/* Save ending note level: */
-
-#line 15076 ""
- 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 15082 ""
- if (! comnotes_1.was2[all_1.iv - 1]) {
-#line 15082 ""
- comnotes_1.ndlev[all_1.iv + 23] = comnotes_1.ndlev[all_1.iv -
- 1];
-#line 15082 ""
- }
-#line 15083 ""
- comnotes_1.was2[all_1.iv - 1] = FALSE_;
-#line 15084 ""
- comnotes_1.ndlev[all_1.iv - 1] = comnotes_1.lastlev;
-#line 15085 ""
- } else {
-
-/* This is the 2nd line of music on this staff. */
-
-#line 15089 ""
- comnotes_1.was2[all_1.iv - 1] = TRUE_;
-#line 15090 ""
- comnotes_1.ndlev[all_1.iv + 23] = comnotes_1.lastlev;
-#line 15091 ""
- }
-#line 15092 ""
- if (*(unsigned char *)durq == ' ' && all_1.iv == all_1.nv) {
-
-/* End of input block */
-
-#line 15096 ""
- *loop = FALSE_;
-#line 15097 ""
- } else {
-
-/* Start a new line of music */
-
-#line 15101 ""
- if (all_1.lenb0 != 0 && all_1.firstgulp) {
-#line 15101 ""
- all_1.lenbar = all_1.lenb0;
-#line 15101 ""
- }
-#line 15102 ""
- all_1.nbars = 0;
-#line 15103 ""
- if (*(unsigned char *)durq == ' ') {
-
-/* New line of music is on next staff */
-
-#line 15107 ""
- ++all_1.iv;
-#line 15108 ""
- commvl_1.ivx = all_1.iv;
-#line 15109 ""
- } else {
-
-/* durq must be 2nd '/'. New line of music is on same staff. Set up for it */
-
-#line 15113 ""
- commvl_1.ivx = all_1.nv + 1;
-#line 15114 ""
- i__1 = all_1.nv;
-#line 15114 ""
- for (iiv = 1; iiv <= i__1; ++iiv) {
-#line 15115 ""
- if (commvl_1.nvmx[iiv - 1] == 2) {
-#line 15115 ""
- ++commvl_1.ivx;
-#line 15115 ""
- }
-#line 15116 ""
-/* L23: */
-#line 15116 ""
- }
-#line 15117 ""
- commvl_1.nvmx[all_1.iv - 1] = 2;
-#line 15118 ""
- commvl_1.ivmx[all_1.iv + 23] = commvl_1.ivx;
-#line 15119 ""
- all_1.itsofar[commvl_1.ivx - 1] = 0;
-#line 15120 ""
- all_1.nnl[commvl_1.ivx - 1] = 0;
-#line 15121 ""
- comfb_1.nfb[commvl_1.ivx - 1] = 0;
-#line 15122 ""
- comudsp_1.nudoff[commvl_1.ivx - 1] = 0;
-#line 15123 ""
- comcc_1.ndotmv[commvl_1.ivx - 1] = 0;
-#line 15124 ""
- for (j = 1; j <= 200; ++j) {
-#line 15125 ""
- all_1.irest[commvl_1.ivx + j * 24 - 25] = 0;
-#line 15126 ""
- all_1.islur[commvl_1.ivx + j * 24 - 25] = 0;
-#line 15127 ""
- all_1.nacc[commvl_1.ivx + j * 24 - 25] = 0;
-#line 15128 ""
- all_1.iornq[commvl_1.ivx + j * 24 - 1] = 0;
-#line 15129 ""
- all_1.ipl[commvl_1.ivx + j * 24 - 25] = 0;
-#line 15130 ""
- all_1.mult[commvl_1.ivx + j * 24 - 25] = 0;
-#line 15131 ""
-/* L24: */
-#line 15131 ""
- }
-
-/* Go back and lower the rests in voice "a" that don't have over-ridden heights */
-
-#line 15135 ""
- i__1 = all_1.nnl[all_1.iv - 1];
-#line 15135 ""
- for (j = 1; j <= i__1; ++j) {
-#line 15136 ""
- if (bit_test(all_1.irest[all_1.iv + j * 24 - 25],0) &&
- all_1.nolev[all_1.iv + j * 24 - 25] == 0) {
-#line 15136 ""
- all_1.nolev[all_1.iv + j * 24 - 25] = -4;
-#line 15136 ""
- }
-#line 15138 ""
-/* L26: */
-#line 15138 ""
- }
-#line 15139 ""
- }
-#line 15140 ""
- }
-#line 15141 ""
- all_1.iccount = 128;
-#line 15142 ""
- } else if (*(unsigned char *)charq == 'X') {
-
-/* 3rd arg is only for termination of group shifts. Use "max" to avoid zero index, */
-/* which only happens for normal X at block start, and we took special measures to */
-/* keep group shifts for crossing block boundaries. */
-
-/* Computing MAX */
-#line 15148 ""
- i__1 = 1, i__2 = all_1.nnl[commvl_1.ivx - 1];
-#line 15148 ""
- 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) *
- 24 - 1], &commvl_1.ivx, &all_1.irest[commvl_1.ivx + (
- 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 15151 ""
- } else if (*(unsigned char *)charq == 'I') {
-
-/* Midi controls. */
-
-#line 15155 ""
- getmidi_(&comkeys_2.noinst, lineq, &all_1.iccount, &
- combibarcnt_1.ibarcnt, &ibaroff, &all_1.nbars, &all_1.lenbar,
- &all_1.mtrdenl, &all_1.nv, &c_false, (ftnlen)128);
-#line 15157 ""
- } else if (*(unsigned char *)charq == 'M') {
-
-/* Macro action */
-
-#line 15161 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 15162 ""
- if (i_indx("RS", charq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Record or save a macro. Get the number of the macro. */
-
-#line 15166 ""
- getchar_(lineq, &all_1.iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15167 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen)
- 1);
-#line 15168 ""
- commac_1.macnum = i_nint(&fnum);
-#line 15169 ""
- commac_1.macuse = bit_set(commac_1.macuse,commac_1.macnum);
-#line 15170 ""
- if (*(unsigned char *)charq == 'R') {
-#line 15171 ""
- mrec1_(lineq, &all_1.iccount, &ndxm, (ftnlen)128);
-#line 15172 ""
- } else {
-
-/* Save (Record but don't activate) */
-
-#line 15176 ""
-L5:
-#line 15176 ""
- mrec1_(lineq, &all_1.iccount, &ndxm, (ftnlen)128);
-#line 15177 ""
- if (commac_1.mrecord) {
-#line 15178 ""
- getbuf_(lineq, (ftnlen)128);
-#line 15179 ""
- all_1.iccount = 0;
-#line 15180 ""
- goto L5;
-#line 15181 ""
- }
-#line 15182 ""
- all_1.iccount = all_1.iccount + ndxm + 1;
-#line 15183 ""
- }
-#line 15184 ""
- } else if (*(unsigned char *)charq == 'P') {
-
-/* Playback the macro */
-
-#line 15188 ""
- getchar_(lineq, &all_1.iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 15189 ""
- readnum_(lineq, &all_1.iccount, durq, &fnum, (ftnlen)128, (ftnlen)
- 1);
-#line 15190 ""
- commac_1.macnum = i_nint(&fnum);
-#line 15191 ""
- commac_1.icchold = all_1.iccount;
-#line 15192 ""
- s_copy(commac_1.lnholdq, lineq, (ftnlen)128, (ftnlen)128);
-#line 15193 ""
- all_1.iccount = 128;
-#line 15194 ""
- c1ommac_1.ilmac = c1ommac_1.il1mac[commac_1.macnum - 1];
-#line 15195 ""
- commac_1.mplay = TRUE_;
-#line 15196 ""
- }
-#line 15197 ""
- } else if (i_indx(",.", charq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Continued rhythmic shortcut */
-
-#line 15201 ""
- idotform = i_indx(". ,", charq, (ftnlen)3, (ftnlen)1);
-#line 15202 ""
- if (idotform == 1) {
-
-/* Check for start of forced beam on 2nd member of dotform=1 shortcut */
-
-#line 15206 ""
- if (comget_1.fbon) {
-#line 15207 ""
- 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 15207 ""
- 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 15207 ""
- }
-#line 15210 ""
- }
-
-/* Change duration of prior note */
-
-#line 15214 ""
- all_1.itsofar[commvl_1.ivx - 1] -= all_1.nodur[commvl_1.ivx +
- all_1.nnl[commvl_1.ivx - 1] * 24 - 25];
-#line 15215 ""
- 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 15216 ""
- all_1.itsofar[commvl_1.ivx - 1] += all_1.nodur[commvl_1.ivx +
- all_1.nnl[commvl_1.ivx - 1] * 24 - 25];
-#line 15217 ""
- }
-#line 15218 ""
- ++idotform;
-#line 15219 ""
- numnum = 1;
-#line 15220 ""
- cdot = TRUE_;
-#line 15221 ""
- goto L1;
-#line 15222 ""
- }
-#line 15223 ""
- return 0;
-} /* getnote_ */
-
-/* Subroutine */ int getorn_(char *lineq, integer *iccount, integer *iornq,
- integer *iornq0, logical *ornrpt, integer *noffseg, integer *ip,
- integer *ivx, logical *noxtup, logical *notcrd, integer *nole, ftnlen
- lineq_len)
-{
- /* System generated locals */
- integer i__1;
- real r__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), i_nint(real *), s_wsle(
- cilist *), do_lio(integer *, integer *, char *, ftnlen), e_wsle(
- void);
-
- /* Local variables */
- static real fnum;
- static integer korn;
- static char durq[1];
- extern /* Subroutine */ int stop1_(void);
- static char charq[1];
- static integer iorni;
- static logical negseg;
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen), readnum_(char *, integer *, char *, real *, ftnlen,
- ftnlen);
- static integer iofforn;
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *);
- static real xofforn;
-
- /* Fortran I/O blocks */
- static cilist io___881 = { 0, 6, 0, 0, 0 };
-
-
-
-/* iornq: Main note. Do not alter if chord note, except turn on bit 23 */
-/* iornq0: Store iorni + bit 23, in case of repeated ornaments */
-/* iorni: Internal use, 1st 21 bits of iornq or icrdorn, dep. on notcrd. */
-/* noffseg: horiz. offset for segno */
-/* nole: level of note w/ orn, used to ID the note/orn if there's a level shift. */
-
-
-/* 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 15247 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 15248 ""
- if (i_indx("bc", charq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* caesura or breath, handle specially and exit. Set up data in ibcdata(1...nbc) */
-/* ivx(0-3,28), ip(4-12), */
-/* vshift (vshift+32 in bits 13-18), */
-/* hshift (nint(10*vshift)+128 in bits 19-26) */
-/* bit 27 = 0 if caesura, 1 if breath */
-/* bit 28: 5th bit of ivx */
-
-#line 15257 ""
- *iornq = bit_set(*iornq,28);
-#line 15258 ""
- ++comcb_1.nbc;
-/* ibcdata(nbc) = ivx+16*ip */
-#line 15260 ""
- comcb_1.ibcdata[comcb_1.nbc - 1] = *ivx % 16 + (*ip << 4);
-#line 15261 ""
- if (*ivx >= 16) {
-#line 15261 ""
- comcb_1.ibcdata[comcb_1.nbc - 1] = bit_set(comcb_1.ibcdata[
- comcb_1.nbc - 1],28);
-#line 15261 ""
- }
-#line 15262 ""
- if (*(unsigned char *)charq == 'b') {
-#line 15262 ""
- comcb_1.ibcdata[comcb_1.nbc - 1] = bit_set(comcb_1.ibcdata[
- comcb_1.nbc - 1],27);
-#line 15262 ""
- }
-#line 15263 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15264 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* We have a vertical shift, get it */
-
-#line 15268 ""
- ++(*iccount);
-#line 15269 ""
- readnum_(lineq, iccount, charq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 15270 ""
- if (*(unsigned char *)durq == '-') {
-#line 15270 ""
- fnum = -fnum;
-#line 15270 ""
- }
-#line 15271 ""
- r__1 = fnum + 32;
-#line 15271 ""
- i__1 = i_nint(&r__1);
-#line 15271 ""
- setbits_(&comcb_1.ibcdata[comcb_1.nbc - 1], &c__6, &c__13, &i__1);
-#line 15272 ""
- if (i_indx("+-", charq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Horizontal shift, get it */
-
-#line 15276 ""
- ++(*iccount);
-#line 15277 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 15278 ""
- if (*(unsigned char *)charq == '-') {
-#line 15278 ""
- fnum = -fnum;
-#line 15278 ""
- }
-#line 15279 ""
- r__1 = fnum * 10;
-#line 15279 ""
- i__1 = i_nint(&r__1) + 128;
-#line 15279 ""
- setbits_(&comcb_1.ibcdata[comcb_1.nbc - 1], &c__8, &c__19, &
- i__1);
-#line 15280 ""
- }
-#line 15281 ""
- }
-#line 15282 ""
- return 0;
-#line 15283 ""
- }
-
-/* 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 15288 ""
- *iornq = bit_set(*iornq,23);
-
-/* Isolate 21 bits defining exisiting ornaments */
-
-#line 15292 ""
- if (*notcrd) {
-/* iorni = iand(4194303,iornq) */
-/* iorni = iand(541065215,iornq) */
-#line 15295 ""
- iorni = 1614807039 & *iornq;
-#line 15296 ""
- } else {
-#line 15297 ""
- iorni = 4194303 & comtrill_1.icrdorn[comtrill_1.ncrd - 1];
-#line 15298 ""
- }
-/* korn = index('stmgx+Tupf._)e:XXX>^',charq) */
-#line 15300 ""
- korn = i_indx("stmgx+Tupf._)e:XXX>^XXXXXXXXCG", charq, (ftnlen)30, (
- ftnlen)1);
-#line 15301 ""
- if (korn != 15) {
-#line 15301 ""
- iorni = bit_set(iorni,korn);
-#line 15301 ""
- }
-
-/* 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 15307 ""
- if (korn == 15) {
-
-/* c Turn off repeated ornament ('o:'), Replicate bits 0-3,5-15,19-20 prev iornq */
-/* c Turn off repeated ornament ('o:'), Replicate bits 0-3,5-15,19-21 prev iornq */
-/* Turn off repeated ornament ('o:'), Replicate bits 0-3,5-15,19-21,29 prev iornq */
-
-/* iorni = ior(iorni,iand(iornq0,1638383)) */
-/* iorni = ior(iorni,iand(iornq0,3735535)) */
-/* iorni = ior(iorni,iand(iornq0,540606447)) */
-#line 15316 ""
- iorni |= *iornq0 & 1614348271;
-#line 15317 ""
- *ornrpt = FALSE_;
-#line 15318 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-
-/* durq will be ' ' */
-
-#line 15322 ""
- } else if (korn == 14) {
-
-/* Editorial accidental */
-
-#line 15326 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-/* korn = 15+index('sfn',durq) */
-#line 15328 ""
- korn = i_indx("sfn?", durq, (ftnlen)4, (ftnlen)1) + 15;
-#line 15329 ""
- if (korn == 19) {
-#line 15329 ""
- korn = 21;
-#line 15329 ""
- }
-#line 15330 ""
- iorni = bit_set(bit_clear(iorni,14),korn);
-#line 15331 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15332 ""
- if (*(unsigned char *)durq == '?') {
-
-/* This is "oe[s|f|n]?". Set 21st bit also. */
-
-#line 15336 ""
- iorni = bit_set(iorni,21);
-#line 15337 ""
- korn += 6;
-#line 15338 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15339 ""
- }
-/* iorni = ibset(ibclr(iorni,14),korn) */
-#line 15341 ""
- } else if (korn == 4 && *noxtup) {
-
-/* segno. Check in pmxa for just 1/block & notcrd. Get horiz. offset in points */
-
-#line 15345 ""
- *noffseg = 0;
-#line 15346 ""
- negseg = FALSE_;
-#line 15347 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15348 ""
- if (*(unsigned char *)durq != ' ') {
-
-/* Segno shift is specified */
-
-#line 15352 ""
- if (*(unsigned char *)durq == '-') {
-#line 15353 ""
- negseg = TRUE_;
-#line 15354 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15355 ""
- }
-#line 15356 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 15357 ""
- *noffseg = (integer) fnum;
-#line 15358 ""
- if (negseg) {
-#line 15358 ""
- *noffseg = -(*noffseg);
-#line 15358 ""
- }
-#line 15359 ""
- }
-#line 15360 ""
- } else if (korn == 7) {
-
-/* Trill. Check in pmxa for notcrd. Default is 1 noteskip long, with "tr" */
-
-#line 15364 ""
- ++comtrill_1.ntrill;
-#line 15365 ""
- comtrill_1.ivtrill[comtrill_1.ntrill - 1] = *ivx;
-#line 15366 ""
- comtrill_1.iptrill[comtrill_1.ntrill - 1] = *ip;
-#line 15367 ""
- comtrill_1.xnsktr[comtrill_1.ntrill - 1] = 1.f;
-#line 15368 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15369 ""
- if (*(unsigned char *)durq == 't') {
-
-/* Convert to new internal symbol for non-'"tr" trill */
-
-#line 15373 ""
- korn = 15;
-#line 15374 ""
- iorni = bit_set(bit_clear(iorni,7),15);
-#line 15375 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15376 ""
- }
-#line 15377 ""
- if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) > 0) {
-
-/* We have a number for the length */
-
-#line 15381 ""
- readnum_(lineq, iccount, durq, &comtrill_1.xnsktr[
- comtrill_1.ntrill - 1], (ftnlen)128, (ftnlen)1);
-#line 15382 ""
- }
-#line 15383 ""
- } else if (korn == 10 && *noxtup) {
-
-/* Fermata */
-
-#line 15387 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15388 ""
- if (*(unsigned char *)durq == 'd') {
-#line 15389 ""
- korn = 14;
-#line 15390 ""
- iorni = bit_set(bit_clear(iorni,10),14);
-#line 15391 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15392 ""
- }
-#line 15393 ""
- } else {
-#line 15394 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 15395 ""
- }
-#line 15396 ""
- if (i_indx("+- :", durq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 15397 ""
- s_wsle(&io___881);
-#line 15397 ""
- do_lio(&c__9, &c__1, "Unexpected character at end of ornament: ", (
- ftnlen)41);
-#line 15397 ""
- do_lio(&c__9, &c__1, durq, (ftnlen)1);
-#line 15397 ""
- e_wsle();
-#line 15398 ""
- stop1_();
-#line 15399 ""
- }
-#line 15400 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Shift ornament up or down */
-
-#line 15404 ""
- ++comtrill_1.nudorn;
-
-/* Set bit 25 in iorni as a signal. This may not really be necessary. */
-
-#line 15408 ""
- 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 15413 ""
- xofforn = (real) (44 - *(unsigned char *)durq);
-#line 15414 ""
- ++(*iccount);
-#line 15415 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 15416 ""
- r__1 = xofforn * fnum;
-#line 15416 ""
- iofforn = i_nint(&r__1);
-#line 15417 ""
- comtrill_1.kudorn[comtrill_1.nudorn - 1] = *ip + (*ivx % 16 << 8) + (*
- nole << 12) + (korn << 19) + (iofforn + 32 << 25);
-#line 15419 ""
- comivxudorn_1.ivxudorn[comtrill_1.nudorn - 1] = *ivx;
-#line 15420 ""
- if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Horizontal shift */
-
-#line 15424 ""
- comtrill_1.kudorn[comtrill_1.nudorn - 1] = bit_set(
- comtrill_1.kudorn[comtrill_1.nudorn - 1],31);
-#line 15425 ""
- xofforn = (real) (44 - *(unsigned char *)durq);
-#line 15426 ""
- ++(*iccount);
-#line 15427 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-/* 141226 ornhshft(nudorn) = nint(xofforn*fnum) */
-#line 15429 ""
- comtrill_1.ornhshft[comtrill_1.nudorn - 1] = xofforn * fnum;
-#line 15430 ""
- }
-#line 15431 ""
- } else if (*(unsigned char *)durq == ':') {
-
-/* Turn on repeated ornaments */
-
-#line 15435 ""
- *ornrpt = TRUE_;
-
-/* Save the ornament value just set */
-
-#line 15439 ""
- *iornq0 = iorni;
-#line 15440 ""
- }
-#line 15441 ""
- if (*notcrd) {
-#line 15442 ""
- *iornq |= iorni;
-#line 15443 ""
- } else {
-#line 15444 ""
- comtrill_1.icrdorn[comtrill_1.ncrd - 1] |= iorni;
-#line 15445 ""
- }
-#line 15446 ""
- return 0;
-} /* getorn_ */
-
-/* Subroutine */ int getpmxmod_(logical *global, char *includeq, ftnlen
- includeq_len)
-{
- /* System generated locals */
- address a__1[3], a__2[2];
- integer i__1[3], i__2[2], i__3;
- char ch__1[114], ch__2[106], ch__3[108], ch__4[88];
- olist o__1;
- cllist cl__1;
- inlist ioin__1;
-
- /* Builtin functions */
- integer f_inqu(inlist *);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsle(cilist *), e_wsle(void), s_wsfe(cilist *), e_wsfe(void);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer f_open(olist *), s_rsfe(cilist *), do_fio(integer *, char *,
- ftnlen), e_rsfe(void), f_clos(cllist *);
-
- /* Local variables */
- static integer ilbufmod, ipbufmod, lenbufmod, lenmodline;
- static char pmxmoddirq[80];
- static integer lpmxmoddirq;
- extern /* Subroutine */ int stop1_(void);
- static integer ilbuff;
- extern /* Subroutine */ int getenv_(char *, char *, ftnlen, ftnlen);
- static logical fexist;
- extern integer lenstr_(char *, integer *, ftnlen);
- extern /* Subroutine */ int printl_(char *, ftnlen);
- static char lnholdq[128];
-
- /* Fortran I/O blocks */
- static cilist io___887 = { 0, 6, 0, 0, 0 };
- static cilist io___888 = { 0, 15, 0, "()", 0 };
- static cilist io___892 = { 0, 18, 1, "(a)", 0 };
-
-
-
-/* If global=.true., checks for environment variable with path to pmx.mod. */
-/* Then, if variable exists and points to pmx.mod, insert lines from */
-/* pmx.mod into buffer */
-/* If global=.false., checks for existence of includeq and uses it. */
-
-/* lenbuf0 = total length of bufq on entry */
-/* lbuf(i) = length of line (i) */
-/* nlbuf = number of lines stored in bufq */
-/* ilbuf = index of first line after setup stuff (on entry). In general, index of */
-/* next line to be sucked from buffer. */
-/* ilbufmod = counter for lines in pmx.mod as they are grabbed. */
-/* Starts at ilbuf. Points to position of next line after */
-/* pmx.mod stuff in bufq on exiting loop 1 */
-/* ilbuff = transient counter for shifting operations */
-/* ipbuf = on entry, points to last character in setup stuff. In general, points */
-/* to last character of most recent line sucked from buffer. */
-/* ipbufmod = points to last character of most recent inserted line */
-/* from pmx.mod */
-
-#line 15480 ""
- c1omget_1.line1pmxmod = inbuff_1.ilbuf;
-#line 15481 ""
- if (! (*global)) {
-#line 15482 ""
- ioin__1.inerr = 0;
-#line 15482 ""
- ioin__1.infilen = includeq_len;
-#line 15482 ""
- ioin__1.infile = includeq;
-#line 15482 ""
- ioin__1.inex = &fexist;
-#line 15482 ""
- ioin__1.inopen = 0;
-#line 15482 ""
- ioin__1.innum = 0;
-#line 15482 ""
- ioin__1.innamed = 0;
-#line 15482 ""
- ioin__1.inname = 0;
-#line 15482 ""
- ioin__1.inacc = 0;
-#line 15482 ""
- ioin__1.inseq = 0;
-#line 15482 ""
- ioin__1.indir = 0;
-#line 15482 ""
- ioin__1.infmt = 0;
-#line 15482 ""
- ioin__1.inform = 0;
-#line 15482 ""
- ioin__1.inunf = 0;
-#line 15482 ""
- ioin__1.inrecl = 0;
-#line 15482 ""
- ioin__1.innrec = 0;
-#line 15482 ""
- ioin__1.inblank = 0;
-#line 15482 ""
- f_inqu(&ioin__1);
-
-/* Transfer includeq to temporary char variable with known length */
-
-#line 15486 ""
- s_copy(pmxmoddirq, includeq, (ftnlen)80, includeq_len);
-#line 15487 ""
- lpmxmoddirq = lenstr_(pmxmoddirq, &c__80, (ftnlen)80);
-#line 15488 ""
- s_wsle(&io___887);
-#line 15488 ""
- e_wsle();
-#line 15489 ""
- s_wsfe(&io___888);
-#line 15489 ""
- e_wsfe();
-#line 15490 ""
- if (! fexist) {
-/* Writing concatenation */
-#line 15491 ""
- i__1[0] = 15, a__1[0] = "Could not find ";
-#line 15491 ""
- i__1[1] = lpmxmoddirq, a__1[1] = pmxmoddirq;
-#line 15491 ""
- i__1[2] = 19, a__1[2] = ", checking further.";
-#line 15491 ""
- s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)114);
-#line 15491 ""
- printl_(ch__1, lpmxmoddirq + 34);
-
-/* File named includeq doesn't not exist. Get directory from PMXMODDIR and */
-/* see if it's there */
-
-#line 15497 ""
- getenv_("PMXMODDIR", pmxmoddirq, (ftnlen)9, (ftnlen)80);
-#line 15498 ""
- lpmxmoddirq = lenstr_(pmxmoddirq, &c__80, (ftnlen)80);
-#line 15499 ""
- if (lpmxmoddirq > 0) {
-/* Writing concatenation */
-#line 15500 ""
- i__2[0] = lpmxmoddirq, a__2[0] = pmxmoddirq;
-#line 15500 ""
- i__2[1] = includeq_len, a__2[1] = includeq;
-#line 15500 ""
- s_cat(pmxmoddirq, a__2, i__2, &c__2, (ftnlen)80);
-#line 15501 ""
- lpmxmoddirq = lenstr_(pmxmoddirq, &c__80, (ftnlen)80);
-#line 15502 ""
- } else {
-#line 15503 ""
- printl_("No other directory defined by PMXMODDIR, stopping", (
- ftnlen)49);
-#line 15505 ""
- stop1_();
-#line 15506 ""
- }
-#line 15507 ""
- ioin__1.inerr = 0;
-#line 15507 ""
- ioin__1.infilen = 80;
-#line 15507 ""
- ioin__1.infile = pmxmoddirq;
-#line 15507 ""
- ioin__1.inex = &fexist;
-#line 15507 ""
- ioin__1.inopen = 0;
-#line 15507 ""
- ioin__1.innum = 0;
-#line 15507 ""
- ioin__1.innamed = 0;
-#line 15507 ""
- ioin__1.inname = 0;
-#line 15507 ""
- ioin__1.inacc = 0;
-#line 15507 ""
- ioin__1.inseq = 0;
-#line 15507 ""
- ioin__1.indir = 0;
-#line 15507 ""
- ioin__1.infmt = 0;
-#line 15507 ""
- ioin__1.inform = 0;
-#line 15507 ""
- ioin__1.inunf = 0;
-#line 15507 ""
- ioin__1.inrecl = 0;
-#line 15507 ""
- ioin__1.innrec = 0;
-#line 15507 ""
- ioin__1.inblank = 0;
-#line 15507 ""
- f_inqu(&ioin__1);
-#line 15508 ""
- if (! fexist) {
-/* Writing concatenation */
-#line 15509 ""
- i__1[0] = 15, a__1[0] = "Could not find ";
-#line 15509 ""
- i__1[1] = lpmxmoddirq, a__1[1] = pmxmoddirq;
-#line 15509 ""
- i__1[2] = 11, a__1[2] = ", stopping.";
-#line 15509 ""
- s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)106);
-#line 15509 ""
- printl_(ch__2, lpmxmoddirq + 26);
-#line 15511 ""
- stop1_();
-#line 15512 ""
- }
-#line 15513 ""
- }
-/* Writing concatenation */
-#line 15514 ""
- i__2[0] = 28, a__2[0] = "Opening normal include file ";
-#line 15514 ""
- i__2[1] = lpmxmoddirq, a__2[1] = pmxmoddirq;
-#line 15514 ""
- s_cat(ch__3, a__2, i__2, &c__2, (ftnlen)108);
-#line 15514 ""
- printl_(ch__3, lpmxmoddirq + 28);
-#line 15516 ""
- o__1.oerr = 0;
-#line 15516 ""
- o__1.ounit = 18;
-#line 15516 ""
- o__1.ofnmlen = 80;
-#line 15516 ""
- o__1.ofnm = pmxmoddirq;
-#line 15516 ""
- o__1.orl = 0;
-#line 15516 ""
- o__1.osta = 0;
-#line 15516 ""
- o__1.oacc = 0;
-#line 15516 ""
- o__1.ofm = 0;
-#line 15516 ""
- o__1.oblnk = 0;
-#line 15516 ""
- f_open(&o__1);
-#line 15517 ""
- } else {
-
-/* Check for existence of pmx.mod */
-
-#line 15521 ""
- getenv_("PMXMODDIR", pmxmoddirq, (ftnlen)9, (ftnlen)80);
-#line 15522 ""
- lpmxmoddirq = lenstr_(pmxmoddirq, &c__80, (ftnlen)80);
-#line 15523 ""
- if (lpmxmoddirq == 0) {
-#line 15523 ""
- return 0;
-#line 15523 ""
- }
-/* Writing concatenation */
-#line 15524 ""
- i__2[0] = lpmxmoddirq, a__2[0] = pmxmoddirq;
-#line 15524 ""
- i__2[1] = 7, a__2[1] = "pmx.mod";
-#line 15524 ""
- s_cat(pmxmoddirq, a__2, i__2, &c__2, (ftnlen)80);
-#line 15525 ""
- lpmxmoddirq += 7;
-#line 15526 ""
- ioin__1.inerr = 0;
-#line 15526 ""
- ioin__1.infilen = 80;
-#line 15526 ""
- ioin__1.infile = pmxmoddirq;
-#line 15526 ""
- ioin__1.inex = &fexist;
-#line 15526 ""
- ioin__1.inopen = 0;
-#line 15526 ""
- ioin__1.innum = 0;
-#line 15526 ""
- ioin__1.innamed = 0;
-#line 15526 ""
- ioin__1.inname = 0;
-#line 15526 ""
- ioin__1.inacc = 0;
-#line 15526 ""
- ioin__1.inseq = 0;
-#line 15526 ""
- ioin__1.indir = 0;
-#line 15526 ""
- ioin__1.infmt = 0;
-#line 15526 ""
- ioin__1.inform = 0;
-#line 15526 ""
- ioin__1.inunf = 0;
-#line 15526 ""
- ioin__1.inrecl = 0;
-#line 15526 ""
- ioin__1.innrec = 0;
-#line 15526 ""
- ioin__1.inblank = 0;
-#line 15526 ""
- f_inqu(&ioin__1);
-#line 15527 ""
- if (! fexist) {
-#line 15527 ""
- return 0;
-#line 15527 ""
- }
-/* Writing concatenation */
-#line 15528 ""
- i__2[0] = 28, a__2[0] = "Opening global include file ";
-#line 15528 ""
- i__2[1] = lpmxmoddirq, a__2[1] = pmxmoddirq;
-#line 15528 ""
- s_cat(ch__3, a__2, i__2, &c__2, (ftnlen)108);
-#line 15528 ""
- printl_(ch__3, lpmxmoddirq + 28);
-#line 15530 ""
- o__1.oerr = 0;
-#line 15530 ""
- o__1.ounit = 18;
-#line 15530 ""
- o__1.ofnmlen = lpmxmoddirq;
-#line 15530 ""
- o__1.ofnm = pmxmoddirq;
-#line 15530 ""
- o__1.orl = 0;
-#line 15530 ""
- o__1.osta = 0;
-#line 15530 ""
- o__1.oacc = 0;
-#line 15530 ""
- o__1.ofm = 0;
-#line 15530 ""
- o__1.oblnk = 0;
-#line 15530 ""
- f_open(&o__1);
-#line 15531 ""
- }
-#line 15532 ""
- printl_("Adding include data", (ftnlen)19);
-
-/* Read lines in from pmx.mod one at a time */
-
-#line 15536 ""
- ipbufmod = inbuff_1.ipbuf;
-#line 15537 ""
- lenbufmod = c1omget_1.lenbuf0;
-#line 15538 ""
- for (ilbufmod = inbuff_1.ilbuf; ilbufmod <= 9600; ++ilbufmod) {
-#line 15539 ""
- i__3 = s_rsfe(&io___892);
-#line 15539 ""
- if (i__3 != 0) {
-#line 15539 ""
- goto L3;
-#line 15539 ""
- }
-#line 15539 ""
- i__3 = do_fio(&c__1, lnholdq, (ftnlen)128);
-#line 15539 ""
- if (i__3 != 0) {
-#line 15539 ""
- goto L3;
-#line 15539 ""
- }
-#line 15539 ""
- i__3 = e_rsfe();
-#line 15539 ""
- if (i__3 != 0) {
-#line 15539 ""
- goto L3;
-#line 15539 ""
- }
-
-/* A line was read. Slide all existing lengths from here forward ahead by 1 */
-
-#line 15543 ""
- i__3 = ilbufmod;
-#line 15543 ""
- for (ilbuff = inbuff_1.nlbuf; ilbuff >= i__3; --ilbuff) {
-#line 15544 ""
- inbuff_1.lbuf[ilbuff] = inbuff_1.lbuf[ilbuff - 1];
-#line 15545 ""
-/* L2: */
-#line 15545 ""
- }
-
-/* Get length of line from include file */
-
-#line 15549 ""
- lenmodline = lenstr_(lnholdq, &c__128, (ftnlen)128);
-#line 15550 ""
- if (lenmodline == 0) {
-
-/* Blank line. Make it a single blank with length 1 */
-
-#line 15554 ""
- lenmodline = 1;
-#line 15555 ""
- s_copy(lnholdq, " ", (ftnlen)128, (ftnlen)1);
-#line 15556 ""
- }
-#line 15557 ""
- inbuff_1.lbuf[ilbufmod - 1] = (shortint) lenmodline;
-#line 15558 ""
- printl_(lnholdq, lenmodline);
-
-/* Insert new stuff into bufq */
-
-#line 15562 ""
- i__3 = ipbufmod;
-/* Writing concatenation */
-#line 15562 ""
- i__1[0] = ipbufmod, a__1[0] = inbuff_1.bufq;
-#line 15562 ""
- i__1[1] = lenmodline, a__1[1] = lnholdq;
-#line 15562 ""
- i__1[2] = lenbufmod - i__3, a__1[2] = inbuff_1.bufq + i__3;
-#line 15562 ""
- s_cat(inbuff_1.bufq, a__1, i__1, &c__3, (ftnlen)131072);
-
-/* Update internal parameters */
-
-#line 15567 ""
- ipbufmod += inbuff_1.lbuf[ilbufmod - 1];
-#line 15568 ""
- lenbufmod += inbuff_1.lbuf[ilbufmod - 1];
-#line 15569 ""
- ++inbuff_1.nlbuf;
-#line 15570 ""
-/* L1: */
-#line 15570 ""
- }
-#line 15571 ""
-L3:
-/* Writing concatenation */
-#line 15572 ""
- i__2[0] = 8, a__2[0] = "Closing ";
-#line 15572 ""
- i__2[1] = lpmxmoddirq, a__2[1] = pmxmoddirq;
-#line 15572 ""
- s_cat(ch__4, a__2, i__2, &c__2, (ftnlen)88);
-#line 15572 ""
- printl_(ch__4, lpmxmoddirq + 8);
-#line 15573 ""
- cl__1.cerr = 0;
-#line 15573 ""
- cl__1.cunit = 18;
-#line 15573 ""
- cl__1.csta = 0;
-#line 15573 ""
- f_clos(&cl__1);
-#line 15574 ""
- c1omget_1.linesinpmxmod = c1omget_1.linesinpmxmod + ilbufmod -
- inbuff_1.ilbuf;
-#line 15575 ""
- 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 15580 ""
- c1omget_1.nline += -2;
-
-#line 15582 ""
- return 0;
-} /* getpmxmod_ */
-
-/* Subroutine */ int getset_(integer *nv, integer *noinst, integer *mtrnuml,
- integer *mtrdenl, integer *mtrnmp, integer *mtrdnp, real *xmtrnum0,
- integer *npages, integer *nsyst, integer *musicsize, real *fracindent,
- logical *istype0, char *inameq, char *clefq, char *sepsymq, char *
- pathnameq, integer *lpath, integer *isig0, ftnlen inameq_len, ftnlen
- clefq_len, ftnlen sepsymq_len, ftnlen pathnameq_len)
-{
- /* System generated locals */
- integer i__1, i__2;
- real r__1;
- olist o__1;
-
- /* Builtin functions */
- integer s_cmp(char *, char *, ftnlen, ftnlen), f_open(olist *), s_wsfe(
- cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void),
- i_nint(real *), i_indx(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static integer i__, iv, ivi, ipos, nline;
- static char lineq[128];
- static integer iinst, jinst;
- extern doublereal readin_(char *, integer *, integer *, ftnlen);
- extern /* Subroutine */ int getbuf_(char *, ftnlen);
- static logical newway;
- static integer iccount, nvsofar;
-
- /* Fortran I/O blocks */
- static cilist io___898 = { 0, 17, 0, "(a)", 0 };
-
-
-
-/* Get the first line */
-
-#line 15598 ""
- /* Parameter adjustments */
-#line 15598 ""
- --sepsymq;
-#line 15598 ""
- --clefq;
-#line 15598 ""
- inameq -= 79;
-#line 15598 ""
-
-#line 15598 ""
- /* Function Body */
-#line 15598 ""
- iccount = 0;
-#line 15599 ""
-L9:
-#line 15599 ""
- getbuf_(lineq, (ftnlen)128);
-#line 15600 ""
- if (*(unsigned char *)lineq == '%') {
-#line 15600 ""
- goto L9;
-#line 15600 ""
- }
-#line 15601 ""
- *istype0 = s_cmp(lineq, "---", (ftnlen)3, (ftnlen)3) == 0;
-#line 15602 ""
- if (*istype0) {
-
-/* Have TeX input until next line that starts with '---'. Save in scratch. */
-
-#line 15606 ""
- o__1.oerr = 0;
-#line 15606 ""
- o__1.ounit = 17;
-#line 15606 ""
- o__1.ofnm = 0;
-#line 15606 ""
- o__1.orl = 0;
-#line 15606 ""
- o__1.osta = "SCRATCH";
-#line 15606 ""
- o__1.oacc = 0;
-#line 15606 ""
- o__1.ofm = 0;
-#line 15606 ""
- o__1.oblnk = 0;
-#line 15606 ""
- f_open(&o__1);
-#line 15607 ""
-L3:
-#line 15607 ""
- getbuf_(lineq, (ftnlen)128);
-#line 15608 ""
- if (s_cmp(lineq, "---", (ftnlen)3, (ftnlen)3) != 0) {
-#line 15609 ""
- s_wsfe(&io___898);
-#line 15609 ""
- do_fio(&c__1, lineq, (ftnlen)128);
-#line 15609 ""
- e_wsfe();
-#line 15610 ""
- goto L3;
-#line 15611 ""
- }
-
-/* Force a new line read on first call to readin */
-
-#line 15615 ""
- iccount = 128;
-#line 15616 ""
- }
-
-/* Here, lineq is first line w/ numerical setup data. */
-
-#line 15620 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15620 ""
- *nv = i_nint(&r__1);
-#line 15621 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15621 ""
- *noinst = i_nint(&r__1);
-#line 15622 ""
- newway = *noinst <= 0;
-#line 15623 ""
- if (newway) {
-#line 15623 ""
- *noinst = -(*noinst);
-#line 15623 ""
- }
-#line 15624 ""
- i__1 = *noinst;
-#line 15624 ""
- for (iinst = 1; iinst <= i__1; ++iinst) {
-
-/* Seve # of staves per inst in case later drop some inst's. */
-
-#line 15628 ""
- if (newway) {
-
-/* Read in nvi for each instrument */
-
-#line 15632 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15632 ""
- comnvi_1.nsperi[iinst - 1] = i_nint(&r__1);
-#line 15633 ""
- } else if (iinst > 1) {
-#line 15634 ""
- comnvi_1.nsperi[iinst - 1] = 1;
-#line 15635 ""
- } else {
-#line 15636 ""
- comnvi_1.nsperi[iinst - 1] = *nv - *noinst + 1;
-#line 15637 ""
- }
-#line 15638 ""
- comnvi_1.iiorig[iinst - 1] = iinst;
-#line 15639 ""
- comnvi_1.nspern[iinst - 1] = comnvi_1.nsperi[iinst - 1];
-#line 15640 ""
-/* L2: */
-#line 15640 ""
- }
-#line 15641 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15641 ""
- *mtrnuml = i_nint(&r__1);
-#line 15642 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15642 ""
- *mtrdenl = i_nint(&r__1);
-/* c */
-/* c Kluge to make mtrdenl work */
-/* c */
-/* if (mtrdenl .eq. 1) then */
-/* mtrdenl = 2 */
-/* mtrnuml = mtrnuml*2 */
-/* end if */
-#line 15650 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15650 ""
- *mtrnmp = i_nint(&r__1);
-#line 15651 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15651 ""
- *mtrdnp = i_nint(&r__1);
-#line 15652 ""
- *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 15658 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15658 ""
- *isig0 = i_nint(&r__1);
-/* 130316 */
-/* do 11 iinst = 1 , noinst */
-/* midisig(iinst) = isig0 */
-#line 15662 ""
- commidisig_1.midisig = *isig0;
-/* 11 continue */
-#line 15664 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15664 ""
- *npages = i_nint(&r__1);
-#line 15665 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15665 ""
- *nsyst = i_nint(&r__1);
-#line 15666 ""
- r__1 = readin_(lineq, &iccount, &nline, (ftnlen)128);
-#line 15666 ""
- *musicsize = i_nint(&r__1);
-#line 15667 ""
- *fracindent = readin_(lineq, &iccount, &nline, (ftnlen)128);
-
-/* Next noinst non-comment lines are names of instruments. */
-
-#line 15671 ""
- i__1 = *noinst;
-#line 15671 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 15672 ""
-L5:
-#line 15672 ""
- getbuf_(inameq + i__ * 79, (ftnlen)79);
-#line 15673 ""
- if (*(unsigned char *)&inameq[i__ * 79] == '%') {
-#line 15673 ""
- goto L5;
-#line 15673 ""
- }
-#line 15674 ""
-/* L4: */
-#line 15674 ""
- }
-
-/* Next non-comment line has nv clef names */
-
-#line 15678 ""
-L6:
-#line 15678 ""
- getbuf_(lineq, (ftnlen)128);
-#line 15679 ""
- if (*(unsigned char *)lineq == '%') {
-#line 15679 ""
- goto L6;
-#line 15679 ""
- }
-#line 15680 ""
- iv = 0;
-#line 15681 ""
- nvsofar = 0;
-#line 15682 ""
- i__1 = *noinst;
-#line 15682 ""
- for (jinst = 1; jinst <= i__1; ++jinst) {
-#line 15683 ""
- nvsofar += comnvi_1.nsperi[jinst - 1];
-#line 15684 ""
- i__2 = comnvi_1.nsperi[jinst - 1];
-#line 15684 ""
- for (ivi = 1; ivi <= i__2; ++ivi) {
-#line 15685 ""
- ++iv;
-#line 15686 ""
- *(unsigned char *)&clefq[iv] = *(unsigned char *)&lineq[iv - 1];
-#line 15687 ""
- if (iv == nvsofar) {
-#line 15688 ""
- *(unsigned char *)&sepsymq[iv] = '&';
-#line 15689 ""
- } else {
-#line 15690 ""
- *(unsigned char *)&sepsymq[iv] = '|';
-#line 15691 ""
- }
-#line 15692 ""
-/* L10: */
-#line 15692 ""
- }
-#line 15693 ""
-/* L1: */
-#line 15693 ""
- }
-
-/* Mext non-comment line has path name */
-
-#line 15697 ""
-L8:
-#line 15697 ""
- getbuf_(pathnameq, (ftnlen)40);
-#line 15698 ""
- if (*(unsigned char *)pathnameq == '%') {
-#line 15698 ""
- goto L8;
-#line 15698 ""
- }
-#line 15699 ""
- *lpath = i_indx(pathnameq, " ", (ftnlen)40, (ftnlen)1) - 1;
-
-/* 160130 Replace '\' by '/' */
-
-#line 15703 ""
-L12:
-#line 15703 ""
- ipos = i_indx(pathnameq, "\\", (ftnlen)40, (ftnlen)1);
-#line 15704 ""
- if (ipos > 0) {
-#line 15705 ""
- *(unsigned char *)&pathnameq[ipos - 1] = '/';
-/* print*,'Changed pathname to ',pathnameq(1:lpath) */
-#line 15707 ""
- goto L12;
-#line 15708 ""
- }
-#line 15709 ""
- return 0;
-} /* getset_ */
-
-doublereal getsquez_(integer *n, integer *ntot, real *space, real *tnote,
- real *to)
-{
- /* System generated locals */
- integer i__1;
- real ret_val, r__1, r__2;
-
- /* Local variables */
- static integer in;
- static real tend, tgovern;
-
-
-/* Get the squez factor by checking space against tgovern=minimum duration */
-/* of all notes sounding at time of n-th note in the list. */
-/* The starting time of base increment is to(n) and ending time is to(n)+space */
-/* Sounding notes are those that start at or before to(n) .and. end at or */
-/* after tend=to(n)+space */
-/* Since notes are ordered by increasing start times, as soon as we find one */
-/* that starts too late, we are done checking. */
-
-#line 15723 ""
- /* Parameter adjustments */
-#line 15723 ""
- --to;
-#line 15723 ""
- --tnote;
-#line 15723 ""
-
-#line 15723 ""
- /* Function Body */
-#line 15723 ""
- tgovern = 1e3f;
-#line 15724 ""
- tend = to[*n] + *space;
-#line 15725 ""
- i__1 = *ntot;
-#line 15725 ""
- 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 15730 ""
- if (to[in] > to[*n] + comtol_1.tol) {
-#line 15730 ""
- goto L2;
-#line 15730 ""
- }
-#line 15731 ""
- if (to[in] + tnote[in] > tend - comtol_1.tol) {
-
-/* If here, this note overlaps and must be tested. */
-
-/* Computing MIN */
-#line 15735 ""
- r__1 = tgovern, r__2 = tnote[in];
-#line 15735 ""
- tgovern = dmin(r__1,r__2);
-#line 15736 ""
- }
-#line 15737 ""
-/* L1: */
-#line 15737 ""
- }
-#line 15738 ""
-L2:
-#line 15739 ""
- ret_val = *space / tgovern;
-#line 15740 ""
- return ret_val;
-} /* getsquez_ */
-
-/* Subroutine */ int getx_(char *lineq, integer *iccount, integer *irest,
- logical *shifton, real *wheadpt, integer *iornq1, integer *ivx,
- integer *irest1, integer *itsofar, integer *ntup, integer *itup,
- integer *nnodur, char *dotq, integer *ndoub, ftnlen lineq_len, ftnlen
- dotq_len)
-{
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static logical ess;
- static real fnum;
- static char durq[1], charq[1];
- static logical colon, number;
- static integer nextbl;
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen), readnum_(char *, integer *, char *, real *, ftnlen,
- ftnlen);
- extern integer ifnodur_(integer *, char *, ftnlen);
-
-
-/* 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. */
-/* Since during getnote phase time is integer itsofar, which is not updated */
-/* during xtups, we use itup and ntup to get actual time. On entry, ntup=0 if */
-/* not in xtup. */
-
-#line 15756 ""
- colon = FALSE_;
-#line 15757 ""
- ess = FALSE_;
-#line 15758 ""
- number = FALSE_;
-#line 15759 ""
- nextbl = *iccount + i_indx(lineq + (*iccount - 1), " ", 128 - (*iccount -
- 1), (ftnlen)1) - 1;
-#line 15760 ""
- if (i_indx(lineq + (*iccount - 1), "P", nextbl - (*iccount - 1), (ftnlen)
- 1) > 0) {
-
-/* "Parts only", ignore entire symbol */
-
-#line 15764 ""
- *iccount = nextbl;
-#line 15765 ""
- return 0;
-#line 15766 ""
- }
-#line 15767 ""
-L1:
-#line 15767 ""
- getchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 15768 ""
- if (*(unsigned char *)charq == 'B') {
-
-/* "Both parts and score," ignore character */
-
-#line 15772 ""
- goto L1;
-#line 15773 ""
- } else if (*(unsigned char *)charq == ':') {
-#line 15774 ""
- colon = TRUE_;
-#line 15775 ""
- goto L1;
-#line 15776 ""
- } else if (*(unsigned char *)charq == 'S') {
-#line 15777 ""
- ess = TRUE_;
-#line 15778 ""
- goto L1;
-#line 15779 ""
- } else if (i_indx("+-.0123456789", charq, (ftnlen)13, (ftnlen)1) > 0) {
-#line 15780 ""
- number = TRUE_;
-#line 15781 ""
- if (*(unsigned char *)charq == '-') {
-#line 15781 ""
- ++(*iccount);
-#line 15781 ""
- }
-#line 15782 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 15783 ""
- if (*(unsigned char *)charq == '-') {
-#line 15783 ""
- fnum = -fnum;
-#line 15783 ""
- }
-#line 15784 ""
- if (*(unsigned char *)durq != 'p') {
-#line 15785 ""
- fnum *= *wheadpt;
-#line 15786 ""
- --(*iccount);
-#line 15787 ""
- }
-#line 15788 ""
- goto L1;
-#line 15789 ""
- }
-
-/* charq must be blank, so done parsing */
-
-#line 15793 ""
- if (! ess && ! colon) {
-
-/* Ordinary hardspace. Goes before next note. */
-/* (Later, at "|" or "/", check for presence and switch to udoff if there!) */
-
-#line 15798 ""
- ++comudsp_1.nudsp;
-#line 15799 ""
- *iornq1 = bit_set(*iornq1,26);
-#line 15800 ""
- comudsp_1.udsp[comudsp_1.nudsp - 1] = fnum;
-#line 15801 ""
- comudsp_1.tudsp[comudsp_1.nudsp - 1] = (real) (*itsofar);
-#line 15802 ""
- if (*ntup > 0) {
-#line 15802 ""
- comudsp_1.tudsp[comudsp_1.nudsp - 1] += (real) (*itup - 1 + *
- ndoub) / *ntup * ifnodur_(nnodur, dotq, (ftnlen)1);
-#line 15802 ""
- }
-/* * +float(itup-1)/ntup*ifnodur(nnodur,dotq) */
-#line 15805 ""
- } else if (! number) {
-
-/* Must be "X:" End a group offset. */
-
-#line 15809 ""
- *irest = bit_set(*irest,17);
-#line 15810 ""
- *shifton = FALSE_;
-#line 15811 ""
- return 0;
-#line 15812 ""
- } else {
-
-/* Only other possibility is start offset, "S" for single, ':' for multiple */
-
-#line 15816 ""
- ++comudsp_1.nudoff[*ivx - 1];
-#line 15817 ""
- comudsp_1.udoff[*ivx + comudsp_1.nudoff[*ivx - 1] * 24 - 25] = fnum;
-#line 15818 ""
- if (ess) {
-#line 15819 ""
- *irest1 = bit_set(*irest1,15);
-#line 15820 ""
- } else {
-#line 15821 ""
- *irest1 = bit_set(*irest1,16);
-#line 15822 ""
- *shifton = TRUE_;
-#line 15823 ""
- }
-#line 15824 ""
- }
-#line 15825 ""
- return 0;
-} /* getx_ */
-
-integer i1fnodur_(integer *idur, char *dotq, ftnlen dotq_len)
-{
- /* System generated locals */
- integer ret_val;
-
- /* Builtin functions */
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen);
-
- /* Local variables */
- extern /* Subroutine */ int stop1_(void);
-
- /* Fortran I/O blocks */
- static cilist io___918 = { 0, 6, 0, 0, 0 };
- static cilist io___919 = { 0, 6, 0, 0, 0 };
-
-
-#line 15829 ""
- if (*idur == 6) {
-#line 15830 ""
- ret_val = 1;
-#line 15831 ""
- } else if (*idur == 3) {
-#line 15832 ""
- ret_val = 2;
-#line 15833 ""
- } else if (*idur == 1) {
-#line 15834 ""
- ret_val = 4;
-#line 15835 ""
- } else if (*idur == 8) {
-#line 15836 ""
- ret_val = 8;
-#line 15837 ""
- } else if (*idur == 4) {
-#line 15838 ""
- ret_val = 16;
-#line 15839 ""
- } else if (*idur == 2) {
-#line 15840 ""
- ret_val = 32;
-#line 15841 ""
- } else if (*idur == 0) {
-#line 15842 ""
- ret_val = 64;
-#line 15843 ""
- } else if (*idur == 16) {
-
-/* Only used for denominator of time signatures, not for notes */
-
-#line 15847 ""
- ret_val = 4;
-#line 15848 ""
- } else if (*idur == 9) {
-#line 15849 ""
- ret_val = 128;
-#line 15850 ""
- } else {
-#line 15851 ""
- s_wsle(&io___918);
-#line 15851 ""
- e_wsle();
-#line 15852 ""
- s_wsle(&io___919);
-#line 15852 ""
- do_lio(&c__9, &c__1, "You entered an invalid note-length value:", (
- ftnlen)41);
-#line 15852 ""
- do_lio(&c__3, &c__1, (char *)&(*idur), (ftnlen)sizeof(integer));
-#line 15852 ""
- e_wsle();
-#line 15853 ""
- stop1_();
-#line 15854 ""
- }
-#line 15855 ""
- if (*(unsigned char *)dotq == 'd') {
-#line 15855 ""
- ret_val = ret_val * 3 / 2;
-#line 15855 ""
- }
-#line 15856 ""
- return ret_val;
-} /* i1fnodur_ */
-
-/* integer*4 function longi(ishort) */
-/* integer*2 ishort */
-/* longi = ishort */
-/* return */
-/* end */
-integer iashft_(integer *nacc)
-{
- /* Initialized data */
-
- static integer ias[6] = { -1,1,0,0,-2,2 };
-
- /* System generated locals */
- integer ret_val;
-
-#line 15866 ""
- ret_val = ias[(0 + (0 + (*nacc - 1 << 2))) / 4];
-#line 15867 ""
- return ret_val;
-} /* iashft_ */
-
-integer ifnodur_(integer *idur, char *dotq, ftnlen dotq_len)
-{
- /* System generated locals */
- integer ret_val;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___921 = { 0, 6, 0, 0, 0 };
-
-
-#line 15871 ""
- if (*idur == 6) {
-#line 15872 ""
- ret_val = 1;
-#line 15873 ""
- } else if (*idur == 3) {
-#line 15874 ""
- ret_val = 2;
-#line 15875 ""
- } else if (*idur == 1) {
-#line 15876 ""
- ret_val = 4;
-#line 15877 ""
- } else if (*idur == 8) {
-#line 15878 ""
- ret_val = 8;
-#line 15879 ""
- } else if (*idur == 4) {
-#line 15880 ""
- ret_val = 16;
-#line 15881 ""
- } else if (*idur == 2) {
-#line 15882 ""
- ret_val = 32;
-#line 15883 ""
- } else if (*idur == 0) {
-#line 15884 ""
- ret_val = 64;
-#line 15885 ""
- } else if (*idur == 9) {
-#line 15886 ""
- ret_val = 128;
-#line 15887 ""
- } else if (*idur == 16) {
-
-/* Only used for denominator of time signatures, not for notes */
-
-#line 15891 ""
- ret_val = 4;
-#line 15892 ""
- } else {
-#line 15893 ""
- s_wsle(&io___921);
-#line 15893 ""
- do_lio(&c__9, &c__1, "You entered an invalid note value", (ftnlen)33);
-#line 15893 ""
- e_wsle();
-#line 15894 ""
- s_stop("", (ftnlen)0);
-#line 15895 ""
- }
-#line 15896 ""
- if (*(unsigned char *)dotq == 'd') {
-#line 15896 ""
- ret_val = ret_val * 3 / 2;
-#line 15896 ""
- }
-#line 15897 ""
- return ret_val;
-} /* ifnodur_ */
-
-integer ifnolev_(char *noq, integer *oct, integer *ntrans, ftnlen noq_len)
-{
- /* System generated locals */
- integer ret_val;
-
-#line 15902 ""
- ret_val = *oct * 7 + (*(unsigned char *)noq - 92) % 7 + 1 + *ntrans;
-#line 15903 ""
- return ret_val;
-} /* ifnolev_ */
-
-/* subroutine report(nsdat,isdat1,isdat2) */
-/* integer*4 isdat1(202),isdat2(202) */
-/* write(*,'(a)') */
-/* * ' isd on? iv kv ip id ud1 ud2 ndx ivo iho lev crd lhd rhd' */
-/* do 1 isdat = 1 , nsdat */
-/* isdata = isdat1(isdat) */
-/* ionoff = igetbits(isdata,1,11) */
-/* c iv = iand(7,isdata) */
-/* iv = igetbits(isdata,5,13) */
-/* kv = igetbits(isdata,1,12)+1 */
-/* ip = igetbits(isdata,8,3) */
-/* idcode = igetbits(isdata,7,19) */
-/* iud1 = igetbits(isdata,1,26) */
-/* iud2 = igetbits(isdata,1,27) */
-/* ndxslur = igetbits(isdata,4,28) */
-/* isdatb = isdat2(isdat) */
-/* ivo = igetbits(isdatb,6,6)-32 */
-/* iho = igetbits(isdatb,7,12)-64 */
-/* lev = igetbits(isdatb,7,19) */
-/* icrd = igetbits(isdatb,1,0) */
-/* lhd = igetbits(isdatb,1,1) */
-/* irhd = igetbits(isdatb,7,2) */
-/* write(*,'(17i4)')isdat,ionoff,iv,kv,ip,idcode,iud1,iud2,ndxslur, */
-/* * ivo,iho,lev,icrd,lhd,irhd */
-/* 1 continue */
-/* print* */
-/* return */
-/* end */
-integer igetbits_(integer *isdata, integer *iwidbit, integer *ishift)
-{
- /* System generated locals */
- integer ret_val;
-
- /* Builtin functions */
- integer pow_ii(integer *, integer *), lbit_shift(integer, integer);
-
-
-/* Extracts integer given by iwidbit bits of isdata, shifted by ishift, and */
-/* then added to ioff */
-
-#line 15938 ""
- ret_val = pow_ii(&c__2, iwidbit) - 1 & lbit_shift(*isdata, -(*ishift));
-#line 15939 ""
- return ret_val;
-} /* igetbits_ */
-
-integer igetvarlen_(shortint *mmidi, integer *icm, integer *imidi, integer *
- nbytes)
-{
- /* System generated locals */
- integer ret_val;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
-
- /* Local variables */
- extern /* Subroutine */ int stop1_(void);
-
- /* Fortran I/O blocks */
- static cilist io___922 = { 0, 6, 0, 0, 0 };
-
-
-
-/* Gets variable-length integer starting in mmidi at imidi+1. Returns nbytes. */
-
-#line 15947 ""
- /* Parameter adjustments */
-#line 15947 ""
- mmidi -= 25;
-#line 15947 ""
-
-#line 15947 ""
- /* Function Body */
-#line 15947 ""
- ret_val = 0;
-#line 15948 ""
- for (*nbytes = 1; *nbytes <= 4; ++(*nbytes)) {
-#line 15949 ""
- ret_val = (ret_val << 7) + (127 & mmidi[*icm + (*imidi + *nbytes) *
- 25]);
-#line 15951 ""
- if (! bit_test(mmidi[*icm + (*imidi + *nbytes) * 25],7)) {
-#line 15951 ""
- return ret_val;
-#line 15951 ""
- }
-#line 15952 ""
-/* L1: */
-#line 15952 ""
- }
-#line 15953 ""
- s_wsle(&io___922);
-#line 15953 ""
- do_lio(&c__9, &c__1, "Messup in igetvarlen", (ftnlen)20);
-#line 15953 ""
- e_wsle();
-#line 15954 ""
- stop1_();
-#line 15955 ""
- return ret_val;
-} /* igetvarlen_ */
-
-logical isdotted_(integer *nodur, integer *ivx, integer *ip)
-{
- /* System generated locals */
- real r__1;
- logical ret_val;
-
- /* Builtin functions */
- double log(doublereal), r_mod(real *, real *);
-
-
-/* Function returns true if note is dotted or double-dotted. */
-/* Return false for any xtuplet. */
-
-#line 15964 ""
- /* Parameter adjustments */
-#line 15964 ""
- nodur -= 25;
-#line 15964 ""
-
-#line 15964 ""
- /* Function Body */
-#line 15964 ""
- if (nodur[*ivx + *ip * 24] == 0) {
-#line 15965 ""
- ret_val = FALSE_;
-#line 15966 ""
- return ret_val;
-#line 15967 ""
- } else if (*ip > 1) {
-#line 15968 ""
- if (nodur[*ivx + (*ip - 1) * 24] == 0) {
-#line 15969 ""
- ret_val = FALSE_;
-#line 15970 ""
- return ret_val;
-#line 15971 ""
- }
-#line 15972 ""
- }
-
-/* Ruled out all xtups, so is dotted or double-dotted if not a power of 2. */
-
-#line 15976 ""
- r__1 = log((real) nodur[*ivx + *ip * 24]) / .69314718f + comtol_1.tol *
- .5f;
-#line 15976 ""
- ret_val = r_mod(&r__1, &c_b1053) > comtol_1.tol;
-#line 15978 ""
- return ret_val;
-} /* isdotted_ */
-
-integer isetvarlen_(integer *idur, integer *nbytes)
-{
- /* System generated locals */
- integer ret_val, i__1;
-
- /* Builtin functions */
- integer pow_ii(integer *, integer *), lbit_shift(integer, integer),
- s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
-
- /* Local variables */
- extern /* Subroutine */ int stop1_(void);
- static integer itemp;
-
- /* Fortran I/O blocks */
- static cilist io___924 = { 0, 6, 0, 0, 0 };
-
-
-#line 15981 ""
- ret_val = 0;
-#line 15982 ""
- itemp = *idur;
-#line 15983 ""
- for (*nbytes = 1; *nbytes <= 4; ++(*nbytes)) {
-#line 15984 ""
- i__1 = *nbytes - 1;
-#line 15984 ""
- ret_val += (itemp & 127) * pow_ii(&c__256, &i__1);
-#line 15985 ""
- itemp = lbit_shift(itemp, (ftnlen)-7);
-#line 15986 ""
- if (itemp > 0) {
-#line 15987 ""
- i__1 = (*nbytes << 3) + 7;
-#line 15987 ""
- ret_val += pow_ii(&c__2, &i__1);
-#line 15988 ""
- } else {
-#line 15989 ""
- return ret_val;
-#line 15990 ""
- }
-#line 15991 ""
-/* L1: */
-#line 15991 ""
- }
-#line 15992 ""
- s_wsle(&io___924);
-#line 15992 ""
- do_lio(&c__9, &c__1, "Problem in fn. isetvarlen", (ftnlen)25);
-#line 15992 ""
- e_wsle();
-#line 15993 ""
- stop1_();
-#line 15994 ""
- return ret_val;
-} /* isetvarlen_ */
-
-/* Subroutine */ int istring_(integer *i__, char *string, integer *len,
- ftnlen string_len)
-{
- /* System generated locals */
- address a__1[3], a__2[2];
- integer i__1[3], i__2[2];
- real r__1;
- char ch__1[1], ch__2[4];
- icilist ici__1;
-
- /* Builtin functions */
- double r_lg10(real *);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen), s_cat(char *,
- char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
-
-
-/* Returns string with integer only if length is 1, otherwise enclosed in */
-/* brackets. */
-
-#line 16001 ""
- if (*i__ != 0) {
-#line 16002 ""
- r__1 = abs(*i__) * 1.0001f;
-#line 16002 ""
- *len = r_lg10(&r__1) + 1;
-#line 16003 ""
- if (*i__ < 0) {
-#line 16003 ""
- ++(*len);
-#line 16003 ""
- }
-#line 16004 ""
- } else {
-#line 16005 ""
- s_copy(string, "0", string_len, (ftnlen)1);
-#line 16006 ""
- *len = 1;
-#line 16007 ""
- return 0;
-#line 16008 ""
- }
-#line 16009 ""
- if (*len == 1) {
-#line 16010 ""
- *(unsigned char *)&ch__1[0] = *i__ + 48;
-#line 16010 ""
- s_copy(string, ch__1, string_len, (ftnlen)1);
-#line 16011 ""
- } else {
-#line 16012 ""
- s_copy(string, "{", string_len, (ftnlen)1);
-#line 16013 ""
- ici__1.icierr = 0;
-#line 16013 ""
- ici__1.icirnum = 1;
-#line 16013 ""
- ici__1.icirlen = *len;
-#line 16013 ""
- ici__1.iciunit = string + 1;
-/* Writing concatenation */
-#line 16013 ""
- i__1[0] = 2, a__1[0] = "(i";
-#line 16013 ""
- *(unsigned char *)&ch__1[0] = *len + 48;
-#line 16013 ""
- i__1[1] = 1, a__1[1] = ch__1;
-#line 16013 ""
- i__1[2] = 1, a__1[2] = ")";
-#line 16013 ""
- ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)4), ch__2);
-#line 16013 ""
- s_wsfi(&ici__1);
-#line 16013 ""
- do_fio(&c__1, (char *)&(*i__), (ftnlen)sizeof(integer));
-#line 16013 ""
- e_wsfi();
-/* Writing concatenation */
-#line 16014 ""
- i__2[0] = *len + 1, a__2[0] = string;
-#line 16014 ""
- i__2[1] = 1, a__2[1] = "}";
-#line 16014 ""
- s_cat(string, a__2, i__2, &c__2, string_len);
-#line 16015 ""
- *len += 2;
-#line 16016 ""
- }
-#line 16017 ""
- return 0;
-} /* istring_ */
-
-integer lenstr_(char *string, integer *n, ftnlen string_len)
-{
- /* System generated locals */
- integer ret_val;
-
-#line 16021 ""
- for (ret_val = *n; ret_val >= 1; --ret_val) {
-#line 16022 ""
- if (*(unsigned char *)&string[ret_val - 1] != ' ') {
-#line 16022 ""
- return ret_val;
-#line 16022 ""
- }
-#line 16023 ""
-/* L1: */
-#line 16023 ""
- }
-#line 16024 ""
- ret_val = 0;
-#line 16025 ""
- return ret_val;
-} /* lenstr_ */
-
-integer levrn_(integer *nolev, integer *irest, integer *iud, integer *ncm,
- integer *mult)
-{
- /* System generated locals */
- integer ret_val;
-
- /* Local variables */
- static integer ioff;
-
-
-/* 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 16033 ""
- if (! bit_test(*irest,0)) {
-#line 16034 ""
- ret_val = *nolev;
-#line 16035 ""
- } else {
-
-/* Restlevel is -4, 0, 2 or 100+offset. First get offset from 1-voice default. */
-
-#line 16039 ""
- if (*mult > 0) {
-#line 16040 ""
- if (*mult == 2) {
-#line 16041 ""
- ioff = (*iud << 1) - 1;
-#line 16042 ""
- } else if (*mult != 4) {
-#line 16043 ""
- ioff = *iud * *mult;
-#line 16044 ""
- } else {
-#line 16045 ""
- ioff = (*iud << 2) + 1;
-#line 16046 ""
- }
-#line 16047 ""
- } else {
-
-/* May need to futz with this later for non-beamed xtups (quarter, half rests) */
-
-#line 16051 ""
- ioff = *iud << 1;
-#line 16052 ""
- }
-#line 16053 ""
- ret_val = (*nolev + 20) % 100 - 20 + *ncm + ioff;
-#line 16054 ""
- }
-#line 16055 ""
- return ret_val;
-} /* levrn_ */
-
-integer lfmt1_(real *x)
-{
- /* System generated locals */
- integer ret_val;
- real r__1;
-
- /* Builtin functions */
- double r_sign(real *, real *), r_lg10(real *);
-
- /* Local variables */
- static real y;
-
-
-/* Computes total length of an "f" format with one decimal place. */
-/* First round to nearest 0.1 */
-
-#line 16062 ""
- if (dabs(*x) < .001f) {
-#line 16063 ""
- ret_val = 2;
-#line 16064 ""
- } else {
-#line 16065 ""
- r__1 = (integer) (dabs(*x) * 10 + .5f) * .1f;
-#line 16065 ""
- y = r_sign(&r__1, x);
-#line 16066 ""
- r__1 = dabs(y) * 1000 + .001f;
-#line 16066 ""
- ret_val = (integer) r_lg10(&r__1);
-#line 16067 ""
- if (y < 0.f) {
-#line 16067 ""
- ++ret_val;
-#line 16067 ""
- }
-#line 16068 ""
- }
-#line 16069 ""
- return ret_val;
-} /* lfmt1_ */
-
-/* Subroutine */ int linebreakties_(integer *isdat1, integer *isdat2, integer
- *isdat3, integer *isdat4, integer *nsdat, logical *ispstie, char *
- sepsymq, ftnlen sepsymq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[3], a__3[5], a__4[4];
- integer i__1, i__2[2], i__3[3], i__4[5], i__5[4];
- real r__1;
- char ch__1[1], ch__2[1];
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
-
- /* Local variables */
- extern integer igetbits_(integer *, integer *, integer *);
- extern /* Subroutine */ int writflot_(real *, char *, integer *, ftnlen);
- static integer iv, kv, ncm;
- static logical tie;
- static integer iiv;
- static char udq[1];
- static integer ndx, ilb12;
- static real hoff;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer imid, ihoff, isdat, ivoff, lnote;
- static char noteq[8];
- static integer idcode, islhgt;
- extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer
- *, ftnlen);
- static integer lnoten;
- static char notexq[128];
-
- /* Fortran I/O blocks */
- static cilist io___946 = { 0, 11, 0, "(a)", 0 };
-
-
-
-/* This is called twice from pmxb after having input an entire block, before */
-/* making a bar that starts a new system. So nsdat reflects all slur starts */
-/* and stops in new block, while listslur, which is only set when bars are */
-/* made, reflects only open slurs from the old block. So we must check */
-/* listslur to find open ties, not all nsdat. */
-/* First of two calls (ispstie=.false. on entry) terminates tie at end of line. */
-/* Second (ispstie=.true. on entry) restarts tie at start of new line. Only */
-/* need data from original tie-start for both of these. Tie/slur data from */
-/* closing of full tie are not used except for shape alterations. */
-
-/* do 1 ndx = 0 , 11 */
-#line 16094 ""
- /* Parameter adjustments */
-#line 16094 ""
- --sepsymq;
-#line 16094 ""
- --isdat4;
-#line 16094 ""
- --isdat3;
-#line 16094 ""
- --isdat2;
-#line 16094 ""
- --isdat1;
-#line 16094 ""
-
-#line 16094 ""
- /* Function Body */
-#line 16094 ""
- for (ndx = 0; ndx <= 23; ++ndx) {
-#line 16095 ""
- 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 16099 ""
- i__1 = *nsdat;
-#line 16099 ""
- for (isdat = 1; isdat <= i__1; ++isdat) {
-/* if (igetbits(isdat1(isdat),4,28) .ne. ndx) go to 2 ! Wrong index */
-#line 16101 ""
- if (igetbits_(&isdat1[isdat], &c__4, &c__28) + (igetbits_(&
- isdat1[isdat], &c__1, &c__18) << 4) != ndx) {
-#line 16101 ""
- goto L2;
-#line 16101 ""
- }
-/* Wron */
-#line 16103 ""
- if (! bit_test(isdat1[isdat],11)) {
-#line 16103 ""
- goto L2;
-#line 16103 ""
- }
-/* Bypass if stop */
-#line 16104 ""
- if (bit_test(isdat2[isdat],3)) {
-#line 16104 ""
- goto L3;
-#line 16104 ""
- }
-/* "st" */
-#line 16105 ""
- idcode = igetbits_(&isdat1[isdat], &c__7, &c__19);
-#line 16106 ""
- if (idcode == 1) {
-#line 16106 ""
- goto L3;
-#line 16106 ""
- }
-/* "t" */
-#line 16107 ""
- tie = FALSE_;
-#line 16108 ""
- goto L5;
-#line 16109 ""
-L2:
-#line 16109 ""
- ;
-#line 16109 ""
- }
-#line 16110 ""
- }
-#line 16111 ""
- goto L1;
-#line 16112 ""
-L3:
-#line 16113 ""
- tie = TRUE_;
-#line 16114 ""
-L5:
-
-/* A slur or tie is open, with index ndx */
-
-#line 16118 ""
- iv = igetbits_(&isdat1[isdat], &c__5, &c__13);
-#line 16119 ""
- kv = igetbits_(&isdat1[isdat], &c__1, &c__12) + 1;
-#line 16120 ""
- *(unsigned char *)udq = 'd';
-#line 16121 ""
- if (bit_test(isdat1[isdat],27)) {
-#line 16121 ""
- *(unsigned char *)udq = 'u';
-#line 16121 ""
- }
-/* Writing concatenation */
-#line 16122 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16122 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 16122 ""
- i__2[1] = 6, a__1[1] = "znotes";
-#line 16122 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128);
-#line 16123 ""
- lnote = 7;
-#line 16124 ""
- i__1 = iv - 1;
-#line 16124 ""
- for (iiv = 1; iiv <= i__1; ++iiv) {
-/* Writing concatenation */
-#line 16125 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 16125 ""
- i__2[1] = 1, a__1[1] = sepsymq + iiv;
-#line 16125 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128);
-#line 16126 ""
- ++lnote;
-#line 16127 ""
-/* L4: */
-#line 16127 ""
- }
-#line 16128 ""
- if (kv == 2) {
-/* Writing concatenation */
-#line 16129 ""
- i__3[0] = lnote, a__2[0] = notexq;
-#line 16129 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16129 ""
- i__3[1] = 1, a__2[1] = ch__1;
-#line 16129 ""
- i__3[2] = 9, a__2[2] = "nextvoice";
-#line 16129 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128);
-#line 16130 ""
- lnote += 10;
-#line 16131 ""
- }
-
-/* Compute horiz and vert offsets */
-
-/* nolev = igetbits(isdat2(isdat),7,19) */
-#line 16136 ""
- islhgt = igetbits_(&isdat3[isdat], &c__8, &c__14);
-#line 16137 ""
- ilb12 = 0;
-#line 16138 ""
- if (*ispstie) {
-#line 16138 ""
- ilb12 = 1;
-#line 16138 ""
- }
-#line 16139 ""
- i__1 = ilb12 << 4;
-#line 16139 ""
- ivoff = igetbits_(&isdat4[isdat], &c__6, &i__1) - 32;
-#line 16140 ""
- if (ivoff == -32) {
-#line 16140 ""
- ivoff = 0;
-#line 16140 ""
- }
-/* nolev = nolev+ivoff */
-#line 16142 ""
- islhgt += ivoff;
-#line 16143 ""
- i__1 = (ilb12 << 4) + 6;
-#line 16143 ""
- ihoff = igetbits_(&isdat4[isdat], &c__7, &i__1) - 64;
-/* This is 10X */
-#line 16144 ""
- if (ihoff == -64) {
-#line 16144 ""
- ihoff = 0;
-#line 16144 ""
- }
-
-/* Add starting stuff for command */
-
-#line 16148 ""
- if (! (*ispstie)) {
-/* End 1st segment */
-/* Writing concatenation */
-#line 16149 ""
- i__3[0] = lnote, a__2[0] = notexq;
-#line 16149 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16149 ""
- i__3[1] = 1, a__2[1] = ch__1;
-#line 16149 ""
- i__3[2] = 8, a__2[2] = "roffset{";
-#line 16149 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128);
-#line 16150 ""
- lnote += 9;
-/* hoff = ihoff*.1-.5 */
-/* hoff = ihoff*.1-.8 */
-#line 16153 ""
- hoff = ihoff * .1f - .4f;
-#line 16154 ""
- if (hoff < 0.f) {
-#line 16155 ""
- hoff = -hoff;
-/* Writing concatenation */
-#line 16156 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 16156 ""
- i__2[1] = 1, a__1[1] = "-";
-#line 16156 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128);
-#line 16157 ""
- ++lnote;
-#line 16158 ""
- }
-#line 16159 ""
- writflot_(&hoff, notexq, &lnote, (ftnlen)128);
-/* Writing concatenation */
-#line 16160 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 16160 ""
- i__2[1] = 2, a__1[1] = "}{";
-#line 16160 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128);
-#line 16161 ""
- lnote += 2;
-#line 16162 ""
- } else {
-/* Writing concatenation */
-#line 16163 ""
- i__4[0] = lnote, a__3[0] = notexq;
-#line 16163 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16163 ""
- i__4[1] = 1, a__3[1] = ch__1;
-#line 16163 ""
- i__4[2] = 5, a__3[2] = "off{-";
-#line 16163 ""
- chax_(ch__2, (ftnlen)1, &c__92);
-#line 16163 ""
- i__4[3] = 1, a__3[3] = ch__2;
-#line 16163 ""
- i__4[4] = 14, a__3[4] = "afterruleskip}";
-#line 16163 ""
- s_cat(notexq, a__3, i__4, &c__5, (ftnlen)128);
-#line 16165 ""
- lnote += 21;
-
-/* 091025 add dotting for 2nd segment if needed */
-
-#line 16169 ""
- if (bit_test(isdat2[isdat],4)) {
-/* Writing concatenation */
-#line 16170 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16170 ""
- i__3[0] = 1, a__2[0] = ch__1;
-#line 16170 ""
- i__3[1] = 6, a__2[1] = "dotted";
-#line 16170 ""
- i__3[2] = lnote, a__2[2] = notexq;
-#line 16170 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128);
-#line 16171 ""
- lnote += 7;
-#line 16172 ""
- }
-#line 16173 ""
- }
-#line 16174 ""
- if (*ispstie && tie) {
-/* Writing concatenation */
-#line 16175 ""
- i__5[0] = lnote, a__4[0] = notexq;
-#line 16175 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16175 ""
- i__5[1] = 1, a__4[1] = ch__1;
-#line 16175 ""
- i__5[2] = 8, a__4[2] = "tieforis";
-#line 16175 ""
- i__5[3] = 1, a__4[3] = udq;
-#line 16175 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128);
-#line 16176 ""
- lnote += 10;
-#line 16177 ""
- }
-#line 16178 ""
- if (bit_test(isdat3[isdat],0)) {
-
-/* Curvature tweak on termination of 1st seg */
-
-#line 16182 ""
- imid = igetbits_(&isdat3[isdat], &c__6, &c__2) - 32;
-
-/* Invoke macro (from pmx.tex) that redefines \tslur as r'qd. mapping: */
-/* Abs(imid) Postscript slur type */
-/* 1 f */
-/* 4 h */
-/* 5 H */
-/* 6 HH */
-
-/* Writing concatenation */
-#line 16191 ""
- i__5[0] = lnote, a__4[0] = notexq;
-#line 16191 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16191 ""
- i__5[1] = 1, a__4[1] = ch__1;
-#line 16191 ""
- i__5[2] = 7, a__4[2] = "psforts";
-#line 16191 ""
- i__1 = imid + 48;
-#line 16191 ""
- chax_(ch__2, (ftnlen)1, &i__1);
-#line 16191 ""
- i__5[3] = 1, a__4[3] = ch__2;
-#line 16191 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128);
-#line 16192 ""
- lnote += 9;
-
-/* Zero out the flag in case there's a different curv on term of 2nd, */
-
-#line 16196 ""
- isdat3[isdat] = bit_clear(isdat3[isdat],0);
-#line 16197 ""
- }
-
-/* Add the command name */
-
-#line 16201 ""
- if (*ispstie) {
-/* Writing concatenation */
-#line 16202 ""
- i__5[0] = lnote, a__4[0] = notexq;
-#line 16202 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16202 ""
- i__5[1] = 1, a__4[1] = ch__1;
-#line 16202 ""
- i__5[2] = 2, a__4[2] = "is";
-#line 16202 ""
- i__5[3] = 1, a__4[3] = udq;
-#line 16202 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128);
-#line 16203 ""
- lnote += 4;
-#line 16204 ""
- } else if (tie) {
-/* Writing concatenation */
-#line 16205 ""
- i__3[0] = lnote, a__2[0] = notexq;
-#line 16205 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16205 ""
- i__3[1] = 1, a__2[1] = ch__1;
-#line 16205 ""
- i__3[2] = 4, a__2[2] = "ttie";
-#line 16205 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128);
-#line 16206 ""
- lnote += 5;
-#line 16207 ""
- } else {
-/* Writing concatenation */
-#line 16208 ""
- i__3[0] = lnote, a__2[0] = notexq;
-#line 16208 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16208 ""
- i__3[1] = 1, a__2[1] = ch__1;
-#line 16208 ""
- i__3[2] = 5, a__2[2] = "tslur";
-#line 16208 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128);
-#line 16209 ""
- lnote += 6;
-#line 16210 ""
- }
-
-/* Add index */
-
-/* if (11-ndx .lt. 10) then */
-/* notexq = notexq(1:lnote)//chax(59-ndx) */
-/* lnote = lnote+1 */
-/* else */
-/* notexq = notexq(1:lnote)//'{1'//chax(49-ndx)//'}' */
-/* lnote = lnote+4 */
-/* end if */
-#line 16221 ""
- if (23 - ndx < 10) {
-/* Writing concatenation */
-#line 16222 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 16222 ""
- i__1 = 71 - ndx;
-#line 16222 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 16222 ""
- i__2[1] = 1, a__1[1] = ch__1;
-#line 16222 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128);
-#line 16223 ""
- ++lnote;
-#line 16224 ""
- } else if (23 - ndx < 20) {
-/* Writing concatenation */
-#line 16225 ""
- i__5[0] = lnote, a__4[0] = notexq;
-#line 16225 ""
- i__5[1] = 2, a__4[1] = "{1";
-#line 16225 ""
- i__1 = 61 - ndx;
-#line 16225 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 16225 ""
- i__5[2] = 1, a__4[2] = ch__1;
-#line 16225 ""
- i__5[3] = 1, a__4[3] = "}";
-#line 16225 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128);
-#line 16226 ""
- lnote += 4;
-#line 16227 ""
- } else {
-/* Writing concatenation */
-#line 16228 ""
- i__5[0] = lnote, a__4[0] = notexq;
-#line 16228 ""
- i__5[1] = 2, a__4[1] = "{2";
-#line 16228 ""
- i__1 = 51 - ndx;
-#line 16228 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 16228 ""
- i__5[2] = 1, a__4[2] = ch__1;
-#line 16228 ""
- i__5[3] = 1, a__4[3] = "}";
-#line 16228 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128);
-#line 16229 ""
- lnote += 4;
-#line 16230 ""
- }
-#line 16231 ""
- if (*ispstie || ! tie) {
-
-/* Add note name for slur height */
-
-#line 16235 ""
- comoct_1.noctup = 0;
-#line 16236 ""
- ncm = igetbits_(&isdat3[isdat], &c__8, &c__22);
-#line 16237 ""
- if (ncm == 23) {
-#line 16237 ""
- comoct_1.noctup = -2;
-#line 16237 ""
- }
-/* call notefq(noteq,lnoten,nolev,ncm) */
-#line 16239 ""
- notefq_(noteq, &lnoten, &islhgt, &ncm, (ftnlen)8);
-/* Writing concatenation */
-#line 16240 ""
- i__5[0] = lnote, a__4[0] = notexq;
-#line 16240 ""
- i__5[1] = 1, a__4[1] = "{";
-#line 16240 ""
- i__5[2] = lnoten, a__4[2] = noteq;
-#line 16240 ""
- i__5[3] = 1, a__4[3] = "}";
-#line 16240 ""
- s_cat(notexq, a__4, i__5, &c__4, (ftnlen)128);
-#line 16241 ""
- lnote = lnote + 1 + lnoten + 1;
-#line 16242 ""
- }
-#line 16243 ""
- if (*ispstie) {
-
-/* Horizontal shift start of new thing */
-
-/* Writing concatenation */
-#line 16247 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 16247 ""
- i__2[1] = 1, a__1[1] = "{";
-#line 16247 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128);
-#line 16248 ""
- ++lnote;
-/* ihoff = ihoff-13 */
-#line 16250 ""
- if (tie) {
-#line 16251 ""
- ihoff += -12;
-#line 16252 ""
- } else {
-#line 16253 ""
- ihoff += -7;
-#line 16254 ""
- }
-#line 16255 ""
- if (ihoff < 0) {
-#line 16256 ""
- ihoff = -ihoff;
-/* Writing concatenation */
-#line 16257 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 16257 ""
- i__2[1] = 1, a__1[1] = "-";
-#line 16257 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128);
-#line 16258 ""
- ++lnote;
-#line 16259 ""
- }
-#line 16260 ""
- r__1 = ihoff * .1f;
-#line 16260 ""
- writflot_(&r__1, notexq, &lnote, (ftnlen)128);
-/* Writing concatenation */
-#line 16261 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 16261 ""
- i__2[1] = 1, a__1[1] = "}";
-#line 16261 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128);
-#line 16262 ""
- ++lnote;
-#line 16263 ""
- }
-
-/* Add closing stuff */
-
-#line 16267 ""
- if (*ispstie) {
-/* Writing concatenation */
-#line 16268 ""
- i__4[0] = lnote, a__3[0] = notexq;
-#line 16268 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16268 ""
- i__4[1] = 1, a__3[1] = ch__1;
-#line 16268 ""
- i__4[2] = 4, a__3[2] = "off{";
-#line 16268 ""
- chax_(ch__2, (ftnlen)1, &c__92);
-#line 16268 ""
- i__4[3] = 1, a__3[3] = ch__2;
-#line 16268 ""
- i__4[4] = 14, a__3[4] = "afterruleskip}";
-#line 16268 ""
- s_cat(notexq, a__3, i__4, &c__5, (ftnlen)128);
-#line 16270 ""
- lnote += 20;
-#line 16271 ""
- } else {
-/* Writing concatenation */
-#line 16272 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 16272 ""
- i__2[1] = 1, a__1[1] = "}";
-#line 16272 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)128);
-#line 16273 ""
- ++lnote;
-#line 16274 ""
- }
-/* Writing concatenation */
-#line 16275 ""
- i__3[0] = lnote, a__2[0] = notexq;
-#line 16275 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16275 ""
- i__3[1] = 1, a__2[1] = ch__1;
-#line 16275 ""
- i__3[2] = 3, a__2[2] = "en%";
-#line 16275 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)128);
-#line 16276 ""
- lnote += 4;
-#line 16277 ""
- s_wsfe(&io___946);
-#line 16277 ""
- do_fio(&c__1, notexq, lnote);
-#line 16277 ""
- e_wsfe();
-#line 16278 ""
-L1:
-#line 16278 ""
- ;
-#line 16278 ""
- }
-#line 16279 ""
- *ispstie = ! (*ispstie);
-#line 16280 ""
- return 0;
-} /* linebreakties_ */
-
-/* Subroutine */ int littex_(integer *islur, integer *nnl, integer *iv,
- logical *topmods, char *lineq, integer *iccount, ftnlen lineq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[3];
- integer i__1[2], i__2[3];
- char ch__1[1], ch__2[129];
- olist o__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen), s_wsfe(cilist *), do_fio(integer *, char *, ftnlen),
- e_wsfe(void), f_open(olist *);
-
- /* Local variables */
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static char durq[1];
- extern /* Subroutine */ int stop1_(void);
- static logical merge;
- static integer itype;
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___950 = { 0, 6, 0, 0, 0 };
- static cilist io___951 = { 0, 6, 0, 0, 0 };
- static cilist io___952 = { 0, 15, 0, "(/,a)", 0 };
- static cilist io___953 = { 0, 11, 0, "(a)", 0 };
- static cilist io___954 = { 0, 16, 0, "(a)", 0 };
-
-
-#line 16298 ""
- /* Parameter adjustments */
-#line 16298 ""
- islur -= 25;
-#line 16298 ""
-
-#line 16298 ""
- /* Function Body */
-#line 16298 ""
- merge = FALSE_;
-#line 16299 ""
- if (comgrace_1.nlit > 0) {
-#line 16300 ""
- merge = *iv == comgrace_1.ivlit[comgrace_1.nlit - 1] && *nnl ==
- comgrace_1.iplit[comgrace_1.nlit - 1];
-#line 16301 ""
- }
-#line 16302 ""
- ++comgrace_1.nlit;
-#line 16303 ""
- comgrace_1.ivlit[comgrace_1.nlit - 1] = *iv;
-#line 16304 ""
- comgrace_1.iplit[comgrace_1.nlit - 1] = *nnl;
-#line 16305 ""
- itype = 1;
-#line 16306 ""
-L17:
-#line 16306 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 16307 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16307 ""
- if (*(unsigned char *)durq == *(unsigned char *)&ch__1[0]) {
-#line 16308 ""
- ++itype;
-#line 16309 ""
- goto L17;
-#line 16310 ""
- }
-/* Writing concatenation */
-#line 16311 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16311 ""
- i__1[0] = 1, a__1[0] = ch__1;
-#line 16311 ""
- i__1[1] = 1, a__1[1] = durq;
-#line 16311 ""
- s_cat(comgrace_1.litq + (comgrace_1.nlit - 1 << 7), a__1, i__1, &c__2, (
- ftnlen)128);
-#line 16312 ""
- comgrace_1.lenlit[comgrace_1.nlit - 1] = 2;
-#line 16313 ""
-L18:
-#line 16313 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 16314 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16314 ""
- if (*(unsigned char *)durq == *(unsigned char *)&ch__1[0]) {
-#line 16315 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 16316 ""
- if (*(unsigned char *)durq != ' ') {
-
-/* Starting a new tex command within the string */
-
-/* Writing concatenation */
-#line 16320 ""
- i__2[0] = comgrace_1.lenlit[comgrace_1.nlit - 1], a__2[0] =
- comgrace_1.litq + (comgrace_1.nlit - 1 << 7);
-#line 16320 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 16320 ""
- i__2[1] = 1, a__2[1] = ch__1;
-#line 16320 ""
- i__2[2] = 1, a__2[2] = durq;
-#line 16320 ""
- s_cat(comgrace_1.litq + (comgrace_1.nlit - 1 << 7), a__2, i__2, &
- c__3, (ftnlen)128);
-#line 16321 ""
- comgrace_1.lenlit[comgrace_1.nlit - 1] += 2;
-#line 16322 ""
- goto L18;
-#line 16323 ""
- }
-#line 16324 ""
- } else {
-/* Writing concatenation */
-#line 16325 ""
- i__1[0] = comgrace_1.lenlit[comgrace_1.nlit - 1], a__1[0] =
- comgrace_1.litq + (comgrace_1.nlit - 1 << 7);
-#line 16325 ""
- i__1[1] = 1, a__1[1] = durq;
-#line 16325 ""
- s_cat(comgrace_1.litq + (comgrace_1.nlit - 1 << 7), a__1, i__1, &c__2,
- (ftnlen)128);
-#line 16326 ""
- ++comgrace_1.lenlit[comgrace_1.nlit - 1];
-#line 16327 ""
- goto L18;
-#line 16328 ""
- }
-
-/* If here, just read backslash-blank so string is done */
-
-#line 16332 ""
- if (itype == 1) {
-#line 16333 ""
- islur[*iv + *nnl * 24] = bit_set(islur[*iv + *nnl * 24],16);
-#line 16334 ""
- if (merge) {
-
-/* There are 2 separate strings on the same note, so merge them. */
-
-#line 16338 ""
- --comgrace_1.nlit;
-/* Writing concatenation */
-#line 16339 ""
- i__1[0] = comgrace_1.lenlit[comgrace_1.nlit - 1], a__1[0] =
- comgrace_1.litq + (comgrace_1.nlit - 1 << 7);
-#line 16339 ""
- i__1[1] = comgrace_1.lenlit[comgrace_1.nlit], a__1[1] =
- comgrace_1.litq + (comgrace_1.nlit << 7);
-#line 16339 ""
- s_cat(comgrace_1.litq + (comgrace_1.nlit - 1 << 7), a__1, i__1, &
- c__2, (ftnlen)128);
-#line 16341 ""
- comgrace_1.lenlit[comgrace_1.nlit - 1] += comgrace_1.lenlit[
- comgrace_1.nlit];
-#line 16342 ""
- if (comgrace_1.lenlit[comgrace_1.nlit - 1] > 128) {
-#line 16343 ""
- s_wsle(&io___950);
-#line 16343 ""
- e_wsle();
-#line 16344 ""
- s_wsle(&io___951);
-#line 16344 ""
- do_lio(&c__9, &c__1, "Merged type-1 TeX strings longer than "\
- "128 characters", (ftnlen)52);
-#line 16344 ""
- e_wsle();
-#line 16346 ""
- s_wsfe(&io___952);
-#line 16346 ""
- do_fio(&c__1, "Merged type-1 TeX strings longer than 128 cha"\
- "racters", (ftnlen)52);
-#line 16346 ""
- e_wsfe();
-#line 16348 ""
- stop1_();
-#line 16349 ""
- }
-#line 16350 ""
- }
-#line 16351 ""
- } else {
-
-/* Type 2 or 3. */
-
-#line 16355 ""
- if (itype == 3) {
-
-/* Write the string NOW */
-
-#line 16359 ""
- if (comlast_1.islast) {
-#line 16359 ""
- s_wsfe(&io___953);
-/* Writing concatenation */
-#line 16359 ""
- i__1[0] = comgrace_1.lenlit[comgrace_1.nlit - 1], a__1[0] =
- comgrace_1.litq + (comgrace_1.nlit - 1 << 7);
-#line 16359 ""
- i__1[1] = 1, a__1[1] = "%";
-#line 16359 ""
- s_cat(ch__2, a__1, i__1, &c__2, (ftnlen)129);
-#line 16359 ""
- do_fio(&c__1, ch__2, comgrace_1.lenlit[comgrace_1.nlit - 1] +
- 1);
-#line 16359 ""
- e_wsfe();
-#line 16359 ""
- }
-#line 16361 ""
- } else {
-
-/* Must go at top */
-
-#line 16365 ""
- if (! (*topmods)) {
-#line 16366 ""
- *topmods = TRUE_;
-#line 16367 ""
- o__1.oerr = 0;
-#line 16367 ""
- o__1.ounit = 16;
-#line 16367 ""
- o__1.ofnm = 0;
-#line 16367 ""
- o__1.orl = 0;
-#line 16367 ""
- o__1.osta = "SCRATCH";
-#line 16367 ""
- o__1.oacc = 0;
-#line 16367 ""
- o__1.ofm = 0;
-#line 16367 ""
- o__1.oblnk = 0;
-#line 16367 ""
- f_open(&o__1);
-#line 16368 ""
- }
-
-/* Must write '%' here rather than later, in case string ends with blank. */
-
-#line 16372 ""
- s_wsfe(&io___954);
-/* Writing concatenation */
-#line 16372 ""
- i__1[0] = comgrace_1.lenlit[comgrace_1.nlit - 1], a__1[0] =
- comgrace_1.litq + (comgrace_1.nlit - 1 << 7);
-#line 16372 ""
- i__1[1] = 1, a__1[1] = "%";
-#line 16372 ""
- s_cat(ch__2, a__1, i__1, &c__2, (ftnlen)129);
-#line 16372 ""
- do_fio(&c__1, ch__2, comgrace_1.lenlit[comgrace_1.nlit - 1] + 1);
-#line 16372 ""
- e_wsfe();
-#line 16373 ""
- }
-#line 16374 ""
- --comgrace_1.nlit;
-#line 16375 ""
- }
-#line 16376 ""
- return 0;
-} /* littex_ */
-
-integer llen_(char *strq, integer *n, ftnlen strq_len)
-{
- /* System generated locals */
- integer ret_val;
-
-#line 16380 ""
- for (ret_val = *n; ret_val >= 0; --ret_val) {
-#line 16381 ""
- if (*(unsigned char *)&strq[ret_val - 1] != ' ') {
-#line 16381 ""
- return ret_val;
-#line 16381 ""
- }
-#line 16382 ""
-/* L1: */
-#line 16382 ""
- }
-#line 16383 ""
- return ret_val;
-} /* llen_ */
-
-integer log2_(integer *n)
-{
- /* System generated locals */
- integer ret_val;
-
- /* Builtin functions */
- double log(doublereal);
-
-
-/* 5/25/08 Modify to allow more slurs */
-
-/* log2 = alog(1.*n)/0.6931472+.0001 */
-/* log2 = dlog(1.d0*n)/0.693147181d0+.00000001d0 */
-#line 16390 ""
- ret_val = (integer) (log(*n * 1.) / .693147181 + 2e-8);
-#line 16391 ""
- return ret_val;
-} /* log2_ */
-
-/* Subroutine */ int logbeam_(integer *numnew, integer *nip1, integer *nip2)
-{
- /* System generated locals */
- integer i__1, i__2, i__3;
- real r__1;
- char ch__1[1];
-
- /* Builtin functions */
- double log(doublereal);
-
- /* Local variables */
- extern integer igetbits_(integer *, integer *, integer *);
- static integer ib, iip;
- static real sum;
- static integer iip1;
- extern integer log2_(integer *);
- static integer iiip;
- extern /* Character */ VOID ulfq_(char *, ftnlen, real *, integer *);
- extern integer ncmid_(integer *, integer *);
- static integer ndoub, multx, nrests, numnow;
- static logical isxtup;
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *);
-
-#line 16410 ""
- all_1.ibm1[commvl_1.ivx + *numnew * 24 - 25] = *nip1;
-#line 16411 ""
- all_1.ibm2[commvl_1.ivx + *numnew * 24 - 25] = *nip2;
-#line 16412 ""
- numnow = *numnew;
-#line 16413 ""
- if (*numnew > 1) {
-
-/* If it starts before any others, must put it in order */
-
-#line 16417 ""
- for (ib = *numnew - 1; ib >= 1; --ib) {
-#line 16418 ""
- if (all_1.ibm1[commvl_1.ivx + ib * 24 - 25] < *nip1) {
-#line 16418 ""
- goto L12;
-#line 16418 ""
- }
-#line 16419 ""
- all_1.ibm1[commvl_1.ivx + (ib + 1) * 24 - 25] = all_1.ibm1[
- commvl_1.ivx + ib * 24 - 25];
-#line 16420 ""
- all_1.ibm2[commvl_1.ivx + (ib + 1) * 24 - 25] = all_1.ibm2[
- commvl_1.ivx + ib * 24 - 25];
-#line 16421 ""
- *(unsigned char *)&all_1.ulq[commvl_1.ivx + (ib + 1) * 24 - 25] =
- *(unsigned char *)&all_1.ulq[commvl_1.ivx + ib * 24 - 25];
-#line 16422 ""
- all_1.ibm1[commvl_1.ivx + ib * 24 - 25] = *nip1;
-#line 16423 ""
- all_1.ibm2[commvl_1.ivx + ib * 24 - 25] = *nip2;
-#line 16424 ""
- numnow = ib;
-#line 16425 ""
-/* L11: */
-#line 16425 ""
- }
-#line 16426 ""
-L12:
-#line 16427 ""
- ;
-#line 16427 ""
- }
-#line 16428 ""
- sum = 0.f;
-
-/* Beam has non-xtup within */
-
-#line 16432 ""
- nrests = 0;
-#line 16433 ""
- isxtup = FALSE_;
-#line 16434 ""
- i__1 = *nip2;
-#line 16434 ""
- for (iip = *nip1; iip <= i__1; ++iip) {
-#line 16435 ""
- if (bit_test(all_1.islur[commvl_1.ivx + *nip1 * 24 - 25],21)) {
-
-/* Forced multiplicity */
-
-#line 16439 ""
- i__2 = igetbits_(&all_1.islur[commvl_1.ivx + *nip1 * 24 - 25], &
- c__3, &c__22) + 8;
-#line 16439 ""
- setbits_(&all_1.mult[commvl_1.ivx + iip * 24 - 25], &c__4, &c__0,
- &i__2);
-#line 16441 ""
- } else if (! isxtup) {
-#line 16442 ""
- if (all_1.nodur[commvl_1.ivx + iip * 24 - 25] > 0) {
-#line 16443 ""
- i__2 = 4 - log2_(&all_1.nodur[commvl_1.ivx + iip * 24 - 25])
- + 8;
-#line 16443 ""
- setbits_(&all_1.mult[commvl_1.ivx + iip * 24 - 25], &c__4, &
- c__0, &i__2);
-#line 16444 ""
- } else {
-
-/* Start xtup within forced beam */
-
-#line 16448 ""
- isxtup = TRUE_;
-#line 16449 ""
- iip1 = iip;
-#line 16450 ""
- }
-#line 16451 ""
- } else if (isxtup && all_1.nodur[commvl_1.ivx + iip * 24 - 25] > 0) {
-
-/* End of xtup within forced beam. Must count doubled notes */
-
-#line 16455 ""
- ndoub = 0;
-#line 16456 ""
- i__2 = iip;
-#line 16456 ""
- for (iiip = iip1; iiip <= i__2; ++iiip) {
-#line 16457 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + iiip * 24 - 25],18)) {
-#line 16457 ""
- ++ndoub;
-#line 16457 ""
- }
-#line 16458 ""
-/* L1: */
-#line 16458 ""
- }
-#line 16459 ""
- 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 16461 ""
- i__2 = iip;
-#line 16461 ""
- for (iiip = iip1; iiip <= i__2; ++iiip) {
-#line 16462 ""
- i__3 = multx + 8;
-#line 16462 ""
- 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 16466 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + iiip * 24 - 25],18)) {
-#line 16466 ""
- --all_1.mult[commvl_1.ivx + iiip * 24 - 25];
-#line 16466 ""
- }
-#line 16468 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + iiip * 24 - 25],19)) {
-#line 16469 ""
- ++all_1.mult[commvl_1.ivx + iiip * 24 - 25];
-#line 16470 ""
- } else if (iiip > 1) {
-#line 16471 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + (iiip - 1) * 24 -
- 25],19)) {
-#line 16471 ""
- ++all_1.mult[commvl_1.ivx + iiip * 24 - 25];
-#line 16471 ""
- }
-#line 16473 ""
- }
-#line 16474 ""
-/* L74: */
-#line 16474 ""
- }
-#line 16475 ""
- isxtup = FALSE_;
-#line 16476 ""
- }
-#line 16477 ""
- if (bit_test(all_1.irest[commvl_1.ivx + iip * 24 - 25],0)) {
-#line 16478 ""
- ++nrests;
-#line 16479 ""
- } else {
-#line 16480 ""
- sum += all_1.nolev[commvl_1.ivx + iip * 24 - 25];
-#line 16481 ""
- }
-#line 16482 ""
-/* L9: */
-#line 16482 ""
- }
-
-/* Set beam up-down-ness */
-
-#line 16486 ""
- if (comfb_1.ifb > 0 && *(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx +
- max(1,comfb_1.ifb) * 24 - 25] != 'x') {
-#line 16487 ""
- if (*(unsigned char *)&comfb_1.ulfbq[commvl_1.ivx + comfb_1.ifb * 24
- - 25] == 'f') {
-
-/* Get default, then trade "l" and "u" */
-
-#line 16491 ""
- r__1 = sum / (*nip2 - *nip1 + 1 - nrests);
-#line 16491 ""
- i__1 = ncmid_(&all_1.iv, nip1);
-#line 16491 ""
- ulfq_(ch__1, (ftnlen)1, &r__1, &i__1);
-#line 16491 ""
- *(unsigned char *)&all_1.ulq[commvl_1.ivx + numnow * 24 - 25] = (
- char) (225 - *(unsigned char *)&ch__1[0]);
-#line 16493 ""
- } else {
-#line 16494 ""
- *(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 16495 ""
- }
-
-/* This probably works only because forced beams are done first, so they */
-/* don't have to be re-sorted within each voice. ???? */
-
-#line 16500 ""
- } else if (commvl_1.nvmx[all_1.iv - 1] == 2) {
-
-/* Multi-voice per staff */
-
-#line 16504 ""
- if (commvl_1.ivx <= all_1.nv) {
-#line 16505 ""
- *(unsigned char *)&all_1.ulq[commvl_1.ivx + numnow * 24 - 25] =
- 'l';
-#line 16506 ""
- } else {
-#line 16507 ""
- *(unsigned char *)&all_1.ulq[commvl_1.ivx + numnow * 24 - 25] =
- 'u';
-#line 16508 ""
- }
-#line 16509 ""
- } else {
-
-/* Defaults */
-
-#line 16513 ""
- r__1 = sum / (*nip2 - *nip1 + 1 - nrests);
-#line 16513 ""
- i__1 = ncmid_(&all_1.iv, nip1);
-#line 16513 ""
- ulfq_(ch__1, (ftnlen)1, &r__1, &i__1);
-#line 16513 ""
- *(unsigned char *)&all_1.ulq[commvl_1.ivx + numnow * 24 - 25] = *(
- unsigned char *)&ch__1[0];
-#line 16515 ""
- }
-#line 16516 ""
- return 0;
-} /* logbeam_ */
-
-/* Subroutine */ int m1rec1_(char *lineq, integer *iccount, integer *ibarcnt,
- integer *ibaroff, integer *nbars, integer *ndxm, ftnlen lineq_len)
-{
- /* System generated locals */
- integer i__1, i__2;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), s_cmp(char *, char *,
- ftnlen, ftnlen);
-
- /* Local variables */
- extern /* Subroutine */ int stop1_(void), errmsg_(char *, integer *,
- integer *, char *, ftnlen, ftnlen);
- extern integer ntindex_(char *, char *, integer *, ftnlen, ftnlen);
-
-
-/* This is called when (a) macro recording is just starting and */
-/* (b) at the start of a new line, if recording is on */
-
-#line 16532 ""
- inbuff_1.lbuf[0] = inbuff_1.lbuf[0];
-#line 16533 ""
- if (! commac_1.mrecord) {
-
-/* Starting the macro */
-
-#line 16537 ""
- c1ommac_1.ip1mac[commac_1.macnum - 1] = inbuff_1.ipbuf -
- inbuff_1.lbuf[inbuff_1.ilbuf - 2] + *iccount;
-#line 16538 ""
- c1ommac_1.il1mac[commac_1.macnum - 1] = inbuff_1.ilbuf - 1;
-#line 16539 ""
- c1ommac_1.ic1mac[commac_1.macnum - 1] = *iccount;
-#line 16540 ""
- commac_1.mrecord = TRUE_;
-#line 16541 ""
- }
-#line 16542 ""
- if (*iccount < 128) {
-#line 16543 ""
- i__1 = *iccount;
-#line 16543 ""
- *ndxm = i_indx(lineq + i__1, "M", 128 - i__1, (ftnlen)1);
-#line 16544 ""
- if (*ndxm > 0) {
-#line 16544 ""
- i__1 = *iccount;
-#line 16544 ""
- i__2 = 128 - *iccount;
-#line 16544 ""
- *ndxm = ntindex_(lineq + i__1, "M", &i__2, 128 - i__1, (ftnlen)1);
-#line 16544 ""
- }
-#line 16546 ""
- if (*ndxm > 0) {
-
-/* This line ends the macro. */
-
-#line 16550 ""
- i__1 = *iccount + *ndxm;
-#line 16550 ""
- if (s_cmp(lineq + i__1, " ", *iccount + *ndxm + 1 - i__1, (ftnlen)
- 1) != 0) {
-#line 16551 ""
- i__1 = *iccount + *ndxm + 1;
-#line 16551 ""
- i__2 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 16551 ""
- errmsg_(lineq, &i__1, &i__2, "Improper macro termination!", (
- ftnlen)128, (ftnlen)27);
-#line 16553 ""
- stop1_();
-#line 16554 ""
- }
-#line 16555 ""
- c1ommac_1.ip2mac[commac_1.macnum - 1] = inbuff_1.ipbuf -
- inbuff_1.lbuf[inbuff_1.ilbuf - 2] + *iccount + *ndxm;
-#line 16556 ""
- c1ommac_1.il2mac[commac_1.macnum - 1] = inbuff_1.ilbuf - 1;
-#line 16557 ""
- commac_1.mrecord = FALSE_;
-#line 16558 ""
- }
-#line 16559 ""
- }
-#line 16560 ""
- return 0;
-} /* m1rec1_ */
-
-/* Subroutine */ int make1bar_(integer *ibmrep, real *tglp1, real *tstart,
- logical *cwrest, real *squez, integer *istop, integer *numbms,
- integer *istart)
-{
- /* System generated locals */
- integer i__1, i__2, i__3, i__4, i__5, i__6;
- real r__1, r__2;
-
- /* Builtin functions */
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen), s_wsfe(cilist *), do_fio(integer *, char *, ftnlen),
- e_wsfe(void);
-
- /* Local variables */
- extern /* Subroutine */ int findbeam_(integer *, integer *, integer *);
- extern integer igetbits_(integer *, integer *, integer *);
- extern doublereal getsquez_(integer *, integer *, real *, real *, real *);
- static integer ib, in, ip, kp, kv, ib1, ib2, ip1, cnn[24], inj, iin, iiv,
- isl;
- static real xit[24];
- extern doublereal feon_(real *);
- static integer irep;
- static real tmin;
- static integer iivx, itbb1, itbb2, itbb3, inip1;
- static real tglp2;
- extern /* Subroutine */ int addfb_(integer *, integer *, real *, real *,
- real *, char *, integer *, ftnlen);
- static integer mapfb[16];
- static real deskb;
- extern doublereal fnote_(integer *, integer *, integer *, integer *);
- static real eskzb;
- static integer ibrep;
- static real tminn;
- static integer nxtup, nip1fb, nip2fb, ib1now, ib2now, ifbadd;
- static real t1xtup[20];
- static integer nfbbar;
- static logical infbmx[24];
- static integer ifbnow[24];
- static logical inxtup[24];
- static integer numnew, mapnow, nxtnow[24];
- static real xsquez;
- extern /* Subroutine */ int logbeam_(integer *, integer *, integer *),
- setbits_(integer *, integer *, integer *, integer *);
-
- /* Fortran I/O blocks */
- static cilist io___999 = { 0, 6, 0, 0, 0 };
- static cilist io___1000 = { 0, 6, 0, 0, 0 };
- static cilist io___1001 = { 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 16652 ""
- /* Parameter adjustments */
-#line 16652 ""
- --istart;
-#line 16652 ""
- --numbms;
-#line 16652 ""
- --istop;
-#line 16652 ""
- --squez;
-#line 16652 ""
- --cwrest;
-#line 16652 ""
- --tstart;
-#line 16652 ""
-
-#line 16652 ""
- /* Function Body */
-#line 16652 ""
- 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 16657 ""
- i__1 = all_1.nv;
-#line 16657 ""
- for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) {
-#line 16658 ""
- i__2 = commvl_1.nvmx[all_1.iv - 1];
-#line 16658 ""
- for (kv = 1; kv <= i__2; ++kv) {
-#line 16659 ""
- commidi_1.naccim[commidi_1.midchan[all_1.iv + kv * 24 - 25]] =
- 0;
-#line 16660 ""
-/* L45: */
-#line 16660 ""
- }
-#line 16660 ""
- }
-#line 16661 ""
- }
-
-/* Time from start of gulp to end of bar, used with forced beams */
-
-#line 16665 ""
- tglp2 = (real) (all_1.lenb0 + all_1.ibar * all_1.lenb1);
-#line 16666 ""
- if (all_1.lenb0 > 0) {
-#line 16666 ""
- tglp2 -= all_1.lenb1;
-#line 16666 ""
- }
-#line 16667 ""
- *tglp1 = tglp2 - all_1.lenbar;
-
-/* infbmx will only be true if in xtup that is NOT in explicit forced beam. */
-
-#line 16671 ""
- i__2 = all_1.nv;
-#line 16671 ""
- for (all_1.iv = 1; all_1.iv <= i__2; ++all_1.iv) {
-#line 16672 ""
- i__1 = commvl_1.nvmx[all_1.iv - 1];
-#line 16672 ""
- for (kv = 1; kv <= i__1; ++kv) {
-#line 16673 ""
- commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25];
-#line 16674 ""
- cwrest[commvl_1.ivx] = FALSE_;
-#line 16675 ""
- infbmx[commvl_1.ivx - 1] = FALSE_;
-#line 16676 ""
- inxtup[commvl_1.ivx - 1] = FALSE_;
-#line 16677 ""
- if (all_1.ibar > 1) {
-#line 16678 ""
- 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 16679 ""
- } else {
-#line 16680 ""
- all_1.nn[commvl_1.ivx - 1] = all_1.nib[commvl_1.ivx +
- all_1.ibar * 24 - 25];
-#line 16681 ""
- }
-#line 16682 ""
-/* L1: */
-#line 16682 ""
- }
-#line 16682 ""
- }
-
-/* initialize list note counter, time(iv), curr. note(iv). The loop to 4 */
-/* ONLY initializes each voice. */
-
-#line 16687 ""
- in = 1;
-#line 16688 ""
- nxtup = 0;
-#line 16689 ""
- comarp_1.narp = 0;
-#line 16690 ""
- i__1 = all_1.nv;
-#line 16690 ""
- for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) {
-#line 16691 ""
- i__2 = commvl_1.nvmx[all_1.iv - 1];
-#line 16691 ""
- for (kv = 1; kv <= i__2; ++kv) {
-#line 16692 ""
- commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25];
-#line 16693 ""
- comcwrf_1.cwrferm[commvl_1.ivx - 1] = FALSE_;
-#line 16694 ""
- cnn[commvl_1.ivx - 1] = 1;
-#line 16695 ""
- all_1.ivxo[in - 1] = commvl_1.ivx;
-#line 16696 ""
- all_1.ipo[in - 1] = cnn[commvl_1.ivx - 1];
-#line 16697 ""
- all_1.tnote[in - 1] = fnote_(all_1.nodur, &commvl_1.ivx, &c__1,
- all_1.nacc);
-#line 16698 ""
- all_1.to[in - 1] = 0.f;
-#line 16699 ""
- 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 16703 ""
- 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 16707 ""
- ++nxtup;
-#line 16708 ""
- nxtnow[commvl_1.ivx - 1] = nxtup;
-#line 16709 ""
- inxtup[commvl_1.ivx - 1] = TRUE_;
-#line 16710 ""
- 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 16715 ""
- if (comfb_1.nfb[commvl_1.ivx - 1] > 0) {
-#line 16716 ""
- i__3 = comfb_1.nfb[commvl_1.ivx - 1];
-#line 16716 ""
- for (comfb_1.ifb = 1; comfb_1.ifb <= i__3; ++comfb_1.ifb)
- {
-#line 16717 ""
- 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 16721 ""
- goto L61;
-#line 16722 ""
- } 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 +
- comfb_1.ifb * 24 - 25] > *tglp1 + xit[
- commvl_1.ivx - 1] + comtol_1.tol) {
-
-/* IS explicit fb here; must NOT insert one */
-
-#line 16727 ""
- goto L62;
-#line 16728 ""
- }
-#line 16729 ""
-/* L60: */
-#line 16729 ""
- }
-#line 16730 ""
- }
-#line 16731 ""
-L61:
-
-/* If here, xtup isn't in explicit fb, so must insert one */
-
-#line 16735 ""
- infbmx[commvl_1.ivx - 1] = TRUE_;
-#line 16736 ""
- r__1 = t1xtup[nxtup - 1] + *tglp1;
-#line 16736 ""
- addfb_(comfb_1.nfb, &commvl_1.ivx, &r__1, comfb_1.t1fb,
- comfb_1.t2fb, comfb_1.ulfbq, &ifbadd, (ftnlen)1);
-#line 16738 ""
- ifbnow[commvl_1.ivx - 1] = ifbadd;
-#line 16739 ""
- }
-#line 16740 ""
-L62:
-#line 16741 ""
- if ((r__1 = xit[commvl_1.ivx - 1] - all_1.lenbar, dabs(r__1)) <
- comtol_1.tol) {
-#line 16741 ""
- xit[commvl_1.ivx - 1] = 1e3f;
-#line 16741 ""
- }
-#line 16742 ""
- ++in;
-#line 16743 ""
-/* L4: */
-#line 16743 ""
- }
-#line 16743 ""
- }
-
-/* Build the list: This is a manual loop starting at 5 */
-
-#line 16747 ""
-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 16752 ""
- tmin = 1e3f;
-#line 16753 ""
- i__2 = all_1.nv;
-#line 16753 ""
- for (iiv = 1; iiv <= i__2; ++iiv) {
-#line 16754 ""
- i__1 = commvl_1.nvmx[iiv - 1];
-#line 16754 ""
- for (kv = 1; kv <= i__1; ++kv) {
-#line 16755 ""
- iivx = commvl_1.ivmx[iiv + kv * 24 - 25];
-/* Computing MIN */
-#line 16756 ""
- r__1 = tmin, r__2 = xit[iivx - 1];
-#line 16756 ""
- tminn = dmin(r__1,r__2);
-#line 16757 ""
- if (tminn < tmin - comtol_1.tol) {
-#line 16758 ""
- tmin = tminn;
-#line 16759 ""
- commvl_1.ivx = iivx;
-#line 16760 ""
- }
-#line 16761 ""
-/* L6: */
-#line 16761 ""
- }
-#line 16761 ""
- }
-#line 16762 ""
- if ((r__1 = tmin - 1e3f, dabs(r__1)) < comtol_1.tol) {
-#line 16762 ""
- goto L7;
-#line 16762 ""
- }
-#line 16763 ""
- all_1.ivxo[in - 1] = commvl_1.ivx;
-#line 16764 ""
- ++cnn[commvl_1.ivx - 1];
-#line 16765 ""
- all_1.ipo[in - 1] = cnn[commvl_1.ivx - 1];
-#line 16766 ""
- all_1.to[in - 1] = tmin;
-
-/* Check if this voice is done */
-
-#line 16770 ""
- all_1.tnote[in - 1] = fnote_(all_1.nodur, &commvl_1.ivx, &cnn[
- commvl_1.ivx - 1], all_1.nacc);
-#line 16771 ""
- if (cnn[commvl_1.ivx - 1] == all_1.nn[commvl_1.ivx - 1]) {
-#line 16772 ""
- xit[commvl_1.ivx - 1] = 1e3f;
-#line 16773 ""
- } else {
-#line 16774 ""
- xit[commvl_1.ivx - 1] += all_1.tnote[in - 1];
-#line 16775 ""
- }
-
-/* Flag xtups */
-
-#line 16779 ""
- if (all_1.nodur[commvl_1.ivx + cnn[commvl_1.ivx - 1] * 24 - 25] == 0) {
-#line 16780 ""
- if (! inxtup[commvl_1.ivx - 1]) {
-
-/* First note of xtup, not at start of bar. */
-
-#line 16784 ""
- ++nxtup;
-#line 16785 ""
- nxtnow[commvl_1.ivx - 1] = nxtup;
-#line 16786 ""
- inxtup[commvl_1.ivx - 1] = TRUE_;
-#line 16787 ""
- 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 16792 ""
- if (comfb_1.nfb[commvl_1.ivx - 1] > 0) {
-#line 16793 ""
- i__1 = comfb_1.nfb[commvl_1.ivx - 1];
-#line 16793 ""
- for (comfb_1.ifb = 1; comfb_1.ifb <= i__1; ++comfb_1.ifb) {
-#line 16794 ""
- 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 16798 ""
- goto L71;
-#line 16799 ""
- } 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 +
- comfb_1.ifb * 24 - 25] > *tglp1 + xit[
- commvl_1.ivx - 1] + comtol_1.tol) {
-
-/* IS explicit bm. Don't put one */
-
-#line 16804 ""
- goto L72;
-#line 16805 ""
- }
-#line 16806 ""
-/* L70: */
-#line 16806 ""
- }
-#line 16807 ""
- }
-#line 16808 ""
-L71:
-
-/* If here, no explicit bm, so put one in */
-
-#line 16812 ""
- infbmx[commvl_1.ivx - 1] = TRUE_;
-#line 16813 ""
- r__1 = t1xtup[nxtup - 1] + *tglp1;
-#line 16813 ""
- addfb_(comfb_1.nfb, &commvl_1.ivx, &r__1, comfb_1.t1fb,
- comfb_1.t2fb, comfb_1.ulfbq, &ifbadd, (ftnlen)1);
-#line 16815 ""
- ifbnow[commvl_1.ivx - 1] = ifbadd;
-#line 16816 ""
- }
-#line 16817 ""
-L72:
-#line 16818 ""
- ;
-#line 16818 ""
- } else if (inxtup[commvl_1.ivx - 1]) {
-
-/* This test is sufficient because already know nodur>0 */
-
-#line 16822 ""
- inxtup[commvl_1.ivx - 1] = FALSE_;
-#line 16823 ""
- if (infbmx[commvl_1.ivx - 1]) {
-
-/* Xtup is in auto-forced beam, so end it */
-
-#line 16827 ""
- 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 16829 ""
- infbmx[commvl_1.ivx - 1] = FALSE_;
-#line 16830 ""
- }
-#line 16831 ""
- }
-#line 16832 ""
- 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)) {
-
-/* For staff jumped beam, flag the first note (lowest voice) at same time. */
-/* Later will start new notes group here. */
-
-#line 16838 ""
- inj = in;
-#line 16839 ""
- if (all_1.ivxo[in - 1] > 1) {
-#line 16840 ""
- for (iin = in - 1; iin >= 1; --iin) {
-#line 16841 ""
- if (all_1.to[iin - 1] + comtol_1.tol < all_1.to[in - 1]) {
-#line 16841 ""
- goto L41;
-#line 16841 ""
- }
-#line 16842 ""
- if ((r__1 = all_1.to[iin - 1] - all_1.to[in - 1], dabs(r__1))
- < comtol_1.tol) {
-#line 16843 ""
- inj = iin;
-#line 16844 ""
- goto L40;
-#line 16845 ""
- }
-#line 16846 ""
-L40:
-#line 16846 ""
- ;
-#line 16846 ""
- }
-#line 16847 ""
- }
-#line 16848 ""
-L41:
-#line 16849 ""
- 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 16850 ""
- }
-#line 16851 ""
- ++in;
-#line 16852 ""
- goto L5;
-#line 16853 ""
-L7:
-#line 16854 ""
- comntot_1.ntot = in - 1;
-#line 16855 ""
- i__1 = comntot_1.ntot - 1;
-#line 16855 ""
- for (in = 1; in <= i__1; ++in) {
-#line 16856 ""
- all_1.tno[in - 1] = all_1.to[in] - all_1.to[in - 1];
-#line 16857 ""
-/* L8: */
-#line 16857 ""
- }
-#line 16858 ""
- all_1.tno[comntot_1.ntot - 1] = all_1.tnote[comntot_1.ntot - 1];
-
-/* Debug writes */
-
-/* write(*,'()') */
-/* write(*,'(a)')' Greetings from PMXB' */
-/* write(*,'(16i5)')(ivxo(in),in=1,ntot) */
-/* write(*,'(16i5)')(ipo(in),in=1,ntot) */
-/* write(*,'(16f5.1)')(to(in),in=1,ntot) */
-/* write(*,'(16f5.1)')(tno(in),in=1,ntot) */
-/* write(*,'(16i5)')(nodur(ivxo(in),ipo(in)),in=1,ntot) */
-/* write(*,'(16f5.1)')(fnote(nodur,ivxo(in),ipo(in),nacc),in=1,ntot) */
-
-/* Done w/ list. Loop for parsing into note blocks: */
-
-#line 16873 ""
- ib = 1;
-#line 16874 ""
- istart[1] = 1;
-#line 16875 ""
- comnsp_2.space[0] = 0.f;
-#line 16876 ""
- in = 1;
-
-/* A manual loop to set space(ib) and istop(ib) */
-
-#line 16880 ""
-L9:
-/* Computing MIN */
-#line 16882 ""
- i__1 = in + 1;
-#line 16882 ""
- commvl_1.ivx = all_1.ivxo[min(i__1,comntot_1.ntot) - 1];
-/* Computing MIN */
-#line 16883 ""
- i__1 = in + 1;
-#line 16883 ""
- ip = all_1.ipo[min(i__1,comntot_1.ntot) - 1];
-#line 16884 ""
- isl = all_1.islur[commvl_1.ivx + ip * 24 - 25];
-#line 16885 ""
- 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[
- commvl_1.ivx + ip * 24 - 25],29)) {
-/* * .or. ornq(1,ip).eq.'g')) .or. btest(isl,15) )) then */
-/* Bits 1-13: stmgx+Tupf._) */
-/* 14: Down fermata, was F */
-/* 15: Trill w/o "tr", was U */
-
-/* Checking for start of 2nd part of jumped beam */
-
-
-/* Bar end, segno, int. rpt or sig change, clef,end of 1st part of jumped beam; */
-/* flow out of if-loop and into block-wrapup */
-
-/* 10/18/97: Problem with clef alignment. Got isl{15} set on lowest-numbered */
-/* voice, but it wasn't first in the list at the same time. So check if */
-/* prior notes in list have same time */
-/* 5/25/98: This stuff causes trouble with just "c2 Ct c", maybe when clef */
-/* changes on last note in the list? */
-
-#line 16906 ""
- if (bit_test(isl,15) && in < comntot_1.ntot) {
-#line 16907 ""
- for (iin = in; iin >= 1; --iin) {
-#line 16908 ""
- if (all_1.tno[iin - 1] > comtol_1.tol) {
-#line 16909 ""
- in = iin;
-#line 16910 ""
- all_1.islur[commvl_1.ivx + ip * 24 - 25] = bit_clear(
- all_1.islur[commvl_1.ivx + ip * 24 - 25],15);
-#line 16911 ""
- 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 16913 ""
- goto L51;
-#line 16914 ""
- }
-#line 16915 ""
-/* L50: */
-#line 16915 ""
- }
-#line 16916 ""
-L51:
-#line 16917 ""
- ;
-#line 16917 ""
- }
-#line 16918 ""
- if (comnsp_2.space[ib - 1] < comtol_1.tol) {
-#line 16919 ""
- comnsp_2.space[ib - 1] = all_1.tno[in - 1];
-#line 16920 ""
- squez[ib] = 1.f;
-#line 16921 ""
- }
-#line 16922 ""
- istop[ib] = in;
-#line 16923 ""
- } else if (comnsp_2.space[ib - 1] < comtol_1.tol) {
-
-/* space hasn't been set yet, so tentatively set: */
-
-#line 16927 ""
- comnsp_2.space[ib - 1] = all_1.tno[in - 1];
-#line 16928 ""
- if (comnsp_2.space[ib - 1] < comtol_1.tol) {
-#line 16929 ""
- ++in;
-#line 16930 ""
- } else {
-#line 16931 ""
- squez[ib] = getsquez_(&in, &comntot_1.ntot, &comnsp_2.space[ib -
- 1], all_1.tnote, all_1.to);
-#line 16932 ""
- istop[ib] = in;
-#line 16933 ""
- }
-#line 16934 ""
- goto L9;
-#line 16935 ""
- } else if (all_1.tno[in] < comtol_1.tol) {
-
-/* This is not the last note in the group, so */
-
-#line 16939 ""
- ++in;
-#line 16940 ""
- goto L9;
-#line 16941 ""
- } else if ((r__1 = all_1.tno[in] - comnsp_2.space[ib - 1], dabs(r__1)) <
- comtol_1.tol) {
-#line 16942 ""
- i__1 = in + 1;
-#line 16942 ""
- xsquez = getsquez_(&i__1, &comntot_1.ntot, &comnsp_2.space[ib - 1],
- all_1.tnote, all_1.to);
-#line 16943 ""
- if ((r__1 = xsquez - squez[ib], dabs(r__1)) < comtol_1.tol) {
-
-/* Keep spacing the same, update tentative stop point */
-
-#line 16947 ""
- ++in;
-#line 16948 ""
- istop[ib] = in;
-#line 16949 ""
- goto L9;
-#line 16950 ""
- }
-#line 16951 ""
- }
-
-/* At this point istart and istop are good, so finalize block */
-
-#line 16955 ""
- tstart[ib] = all_1.to[istart[ib] - 1];
-#line 16956 ""
- if (istop[ib] == comntot_1.ntot) {
-#line 16956 ""
- goto L15;
-#line 16956 ""
- }
-#line 16957 ""
- ++ib;
-#line 16958 ""
- istart[ib] = istop[ib - 1] + 1;
-#line 16959 ""
- in = istart[ib];
-
-/* Set tentative block space and squeeze-factor for upcoming block */
-
-#line 16963 ""
- comnsp_2.space[ib - 1] = all_1.tno[in - 1];
-#line 16964 ""
- if (comnsp_2.space[ib - 1] > comtol_1.tol) {
-#line 16964 ""
- squez[ib] = getsquez_(&in, &comntot_1.ntot, &comnsp_2.space[ib - 1],
- all_1.tnote, all_1.to);
-#line 16964 ""
- }
-#line 16966 ""
- istop[ib] = in;
-#line 16967 ""
- goto L9;
-#line 16968 ""
-L15:
-#line 16969 ""
- comnsp_2.nb = ib;
-
-/* Invert the list of places into ipl(0-7), making it easier to analyze a voice */
-
-#line 16973 ""
- i__1 = comntot_1.ntot;
-#line 16973 ""
- 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 16978 ""
- comipl2_1.ipl2[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25] = in;
-#line 16979 ""
-/* L13: */
-#line 16979 ""
- }
-
-/* Compute elemskips from start of bar to each note in the bar, for beam slopes */
-
-#line 16983 ""
- eskzb = 0.f;
-#line 16984 ""
- ib = 1;
-#line 16985 ""
- i__1 = comntot_1.ntot;
-#line 16985 ""
- for (in = 1; in <= i__1; ++in) {
-#line 16986 ""
- if (in == istart[ib]) {
-#line 16987 ""
- r__1 = comnsp_2.space[ib - 1] / squez[ib];
-#line 16987 ""
- deskb = squez[ib] * feon_(&r__1);
-#line 16988 ""
- } else if (all_1.tno[in - 2] > comtol_1.tol) {
-#line 16989 ""
- eskzb += deskb;
-#line 16990 ""
- }
-#line 16991 ""
- all_1.eskz[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25] = eskzb;
-#line 16992 ""
- comeskz2_1.eskz2[all_1.ivxo[in - 1] + all_1.ipo[in - 1] * 24 - 25] =
- eskzb;
-#line 16993 ""
- if (in == istop[ib]) {
-#line 16994 ""
- eskzb += deskb;
-#line 16995 ""
- ++ib;
-#line 16996 ""
- }
-#line 16997 ""
-/* L30: */
-#line 16997 ""
- }
-
-/* Analyze for beams. */
-
-#line 17001 ""
- i__1 = all_1.nv;
-#line 17001 ""
- for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) {
-#line 17002 ""
- i__2 = commvl_1.nvmx[all_1.iv - 1];
-#line 17002 ""
- for (kv = 1; kv <= i__2; ++kv) {
-#line 17003 ""
- commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25];
-#line 17004 ""
- numbms[commvl_1.ivx] = 0;
-#line 17005 ""
- mapfb[0] = 0;
-#line 17006 ""
- mapfb[1] = 0;
-#line 17007 ""
- mapfb[2] = 0;
-#line 17008 ""
- mapfb[3] = 0;
-
-/* First forced beams. */
-
-#line 17012 ""
- if (comfb_1.nfb[commvl_1.ivx - 1] > 0) {
-
-/* tglp2 is time from start of gulp to end of current bar. */
-
-#line 17016 ""
- nfbbar = 0;
-#line 17017 ""
- i__3 = comfb_1.nfb[commvl_1.ivx - 1];
-#line 17017 ""
- for (comfb_1.ifb = 1; comfb_1.ifb <= i__3; ++comfb_1.ifb) {
-#line 17018 ""
- if (comfb_1.t1fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] >
- tglp2 - comtol_1.tol) {
-#line 17018 ""
- goto L81;
-#line 17018 ""
- }
-#line 17019 ""
- ++nfbbar;
-#line 17020 ""
- ++numbms[commvl_1.ivx];
-#line 17021 ""
- numnew = numbms[commvl_1.ivx];
-
-/* Times from beginning of bar */
-
-#line 17025 ""
- itbb1 = (integer) (comfb_1.t1fb[commvl_1.ivx +
- comfb_1.ifb * 24 - 25] - *tglp1 + comtol_1.tol);
-#line 17026 ""
- itbb2 = (integer) (comfb_1.t2fb[commvl_1.ivx +
- comfb_1.ifb * 24 - 25] - *tglp1 + comtol_1.tol);
-#line 17027 ""
- i__4 = all_1.nn[commvl_1.ivx - 1];
-#line 17027 ""
- for (ip = 1; ip <= i__4; ++ip) {
-#line 17028 ""
- if ((integer) (all_1.to[comipl2_1.ipl2[commvl_1.ivx +
- ip * 24 - 25] - 1] + comtol_1.tol) == itbb1) {
-#line 17029 ""
- nip1fb = ip;
-#line 17030 ""
- i__5 = all_1.nn[commvl_1.ivx - 1];
-#line 17030 ""
- for (ip1 = ip; ip1 <= i__5; ++ip1) {
-#line 17031 ""
- inip1 = comipl2_1.ipl2[commvl_1.ivx + ip1 *
- 24 - 25];
-#line 17032 ""
- if ((r__1 = all_1.to[inip1 - 1] + all_1.tnote[
- inip1 - 1] - itbb2, dabs(r__1)) <
- comtol_1.tol) {
-#line 17033 ""
- nip2fb = ip1;
-#line 17034 ""
- itbb3 = itbb2 - 2;
-#line 17035 ""
- goto L85;
-#line 17036 ""
- }
-#line 17037 ""
-/* L84: */
-#line 17037 ""
- }
-#line 17038 ""
- }
-#line 17039 ""
-/* L83: */
-#line 17039 ""
- }
-#line 17040 ""
- s_wsle(&io___999);
-#line 17040 ""
- e_wsle();
-#line 17041 ""
- s_wsle(&io___1000);
-#line 17041 ""
- do_lio(&c__9, &c__1, "Timing problem w/ forced beams", (
- ftnlen)30);
-#line 17041 ""
- e_wsle();
-#line 17042 ""
- s_wsfe(&io___1001);
-#line 17042 ""
- do_fio(&c__1, "Timing problem w/ forced beams", (ftnlen)
- 30);
-#line 17042 ""
- e_wsfe();
-#line 17043 ""
-L85:
-#line 17044 ""
- logbeam_(&numnew, &nip1fb, &nip2fb);
-
-/* Set up mapfb for forced beam just logged: */
-
-#line 17048 ""
- ib1 = itbb1 / 2;
-#line 17049 ""
- ib2 = itbb3 / 2;
-#line 17050 ""
- ibrep = all_1.lenbar / *ibmrep / 2;
-#line 17051 ""
- i__4 = *ibmrep;
-#line 17051 ""
- for (irep = 1; irep <= i__4; ++irep) {
-/* Computing MAX */
-#line 17052 ""
- i__5 = 0, i__6 = ib1 - (irep - 1) * ibrep;
-#line 17052 ""
- ib1now = max(i__5,i__6);
-/* Computing MIN */
-#line 17053 ""
- i__5 = irep * ibrep - 1, i__6 = ib2 - (irep - 1) *
- ibrep;
-#line 17053 ""
- ib2now = min(i__5,i__6);
-#line 17054 ""
- mapnow = 0;
-#line 17055 ""
- i__5 = ib2now;
-#line 17055 ""
- for (ib = ib1now; ib <= i__5; ++ib) {
-#line 17056 ""
- mapnow = bit_set(mapnow,ib);
-#line 17057 ""
-/* L87: */
-#line 17057 ""
- }
-#line 17058 ""
- mapfb[irep - 1] |= mapnow;
-#line 17059 ""
-/* L86: */
-#line 17059 ""
- }
-
-/* Since we are cycling thru forced beams, for those that start with a rest and */
-/* have height & slope adjustments, move adjustments to next note. */
-/* 060924: Copy to ALL later notes in fb, in case there's more than 1 rest at */
-/* start of beam */
-
-#line 17066 ""
- if (bit_test(all_1.irest[commvl_1.ivx + nip1fb * 24 - 25],
- 0)) {
-#line 17067 ""
- i__4 = nip2fb;
-#line 17067 ""
- for (kp = nip1fb + 1; kp <= i__4; ++kp) {
-#line 17068 ""
- i__5 = igetbits_(&all_1.ipl[commvl_1.ivx + nip1fb
- * 24 - 25], &c__6, &c__11);
-#line 17068 ""
- setbits_(&all_1.ipl[commvl_1.ivx + kp * 24 - 25],
- &c__6, &c__11, &i__5);
-#line 17070 ""
- i__5 = igetbits_(&all_1.ipl[commvl_1.ivx + nip1fb
- * 24 - 25], &c__6, &c__17);
-#line 17070 ""
- setbits_(&all_1.ipl[commvl_1.ivx + kp * 24 - 25],
- &c__6, &c__17, &i__5);
-#line 17072 ""
- i__5 = igetbits_(&all_1.islur[commvl_1.ivx +
- nip1fb * 24 - 25], &c__2, &c__27);
-#line 17072 ""
- setbits_(&all_1.islur[commvl_1.ivx + kp * 24 - 25]
- , &c__2, &c__27, &i__5);
-#line 17074 ""
-/* L88: */
-#line 17074 ""
- }
-#line 17075 ""
- }
-#line 17076 ""
-/* L80: */
-#line 17076 ""
- }
-#line 17077 ""
-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 17082 ""
- if (nfbbar > 0) {
-#line 17083 ""
- comfb_1.nfb[commvl_1.ivx - 1] -= nfbbar;
-#line 17084 ""
- i__3 = comfb_1.nfb[commvl_1.ivx - 1];
-#line 17084 ""
- for (comfb_1.ifb = 1; comfb_1.ifb <= i__3; ++comfb_1.ifb)
- {
-#line 17085 ""
- comfb_1.t1fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] =
- comfb_1.t1fb[commvl_1.ivx + (comfb_1.ifb +
- nfbbar) * 24 - 25];
-#line 17086 ""
- comfb_1.t2fb[commvl_1.ivx + comfb_1.ifb * 24 - 25] =
- comfb_1.t2fb[commvl_1.ivx + (comfb_1.ifb +
- nfbbar) * 24 - 25];
-#line 17087 ""
- *(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 17088 ""
-/* L82: */
-#line 17088 ""
- }
-#line 17089 ""
- }
-#line 17090 ""
- }
-#line 17091 ""
- comfb_1.ifb = 0;
-
-/* Done with forced beam masks for this bar and voice. Now get normal beams. */
-
-#line 17095 ""
- findbeam_(ibmrep, &numbms[1], mapfb);
-#line 17096 ""
-/* L20: */
-#line 17096 ""
- }
-#line 17096 ""
- }
-#line 17097 ""
- return 0;
-} /* make1bar_ */
-
-/* Subroutine */ int make2bar_(integer *ninow, real *tglp1, real *tstart,
- logical *cwrest, real *squez, integer *istop, integer *numbms,
- integer *istart, char *clefq, ftnlen clefq_len)
-{
- /* System generated locals */
- address a__1[6], a__2[2], a__3[5], a__4[3], a__5[2], a__6[4], a__7[8],
- a__8[7], a__9[9];
- integer i__1, i__2, i__3[6], i__4[2], i__5[5], i__6[3], i__7, i__8[2],
- i__9[4], i__10, i__11[8], i__12, i__13, i__14[7], i__15[9];
- real r__1, r__2;
- logical L__1;
- char ch__1[80], ch__2[82], ch__3[20], ch__4[14], ch__5[12], ch__6[1],
- ch__7[17], ch__8[16], ch__9[11], ch__10[10], ch__11[44], ch__12[
- 81], ch__13[113], ch__14[3], ch__15[9], ch__16[129], ch__17[6],
- ch__18[13], ch__19[5], ch__20[4], ch__21[22];
- cilist ci__1;
-
- /* Builtin functions */
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfe(cilist *), e_wsfe(void), lbit_shift(integer, integer),
- s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen), i_nint(real *);
- /* Subroutine */ int s_stop(char *, ftnlen);
- integer pow_ii(integer *, integer *);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- double r_lg10(real *);
- integer s_cmp(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static integer lineno, itleft, itright, itendb;
- extern integer iashft_(integer *);
- static integer nolevc, ivlast;
- extern /* Subroutine */ int istring_(integer *, char *, integer *, ftnlen)
- ;
- static integer mtrspc;
- 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);
- static real ptsavail;
- static integer multtrem;
- extern /* Subroutine */ int dopsslur_(integer *, integer *, integer *,
- integer *, integer *, integer *, integer *, integer *, integer *,
- integer *, logical *, integer *, char *, integer *, char *,
- integer *, integer *, integer *, integer *, real *, integer *,
- ftnlen, ftnlen), midievent_(char *, integer *, integer *, ftnlen);
- static real stemshort;
- static integer ib, ig, il, in, ip, kv, iv1;
- extern /* Subroutine */ int adjusteskz_(integer *, integer *, real *);
- static integer iib, icm, ing, len;
- static real esk;
- static char udq[1];
- static real xnd;
- static integer ivf;
- static real wgr;
- static integer iiv;
- static real pts;
- static logical secondgrace;
- extern integer log2_(integer *);
- extern /* Subroutine */ int chkkbdrests_(integer *, integer *, integer *,
- integer *, integer *, integer *, integer *, integer *, integer *,
- integer *, integer *, real *, real *, integer *, integer *,
- integer *, integer *, integer *, integer *);
- static integer iacc, kacc, macc, ifig[2], icrd, ndig;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- extern doublereal feon_(real *);
- static integer lcwr[24];
- extern /* Character */ VOID udqq_(char *, ftnlen, integer *, integer *,
- integer *, integer *, integer *, integer *);
- static char cwrq[79*24];
- static real ptgr[37], spgr, ptsl, zero;
- static char ivxq[4];
- static real tnow;
- static integer nodu, livx;
- extern /* Subroutine */ int eskb4_(integer *, integer *, integer *,
- integer *, real *, real *, real *, integer *, real *), stop1_(
- void), doacc_(integer *, integer *, char *, integer *, integer *,
- integer *, integer *, logical *, ftnlen);
- static logical isacc;
- static integer nclef, iaskb[24];
- static logical iscln, issig;
- static integer nornb[24];
- static logical isarp, isdot;
- static char noteq[8];
- static logical iscwr;
- static char soutq[80];
- static integer lnote, iinst, lsout, itrpt, itsig;
- extern integer ncmid_(integer *, integer *);
- static integer iirpt, lclow;
- extern /* Subroutine */ int dodyn_(integer *, integer *, integer *,
- integer *, integer *, integer *, integer *, integer *, integer *,
- logical *, integer *, integer *, char *, integer *, logical *,
- char *, integer *, ftnlen, ftnlen), docrd_(integer *, integer *,
- integer *, integer *, integer *, real *, char *, integer *, char *
- , integer *, integer *, integer *, integer *, logical *, integer *
- , integer *, integer *, real *, logical *, integer *, integer *,
- ftnlen, ftnlen), putcb_(integer *, integer *, char *, integer *,
- ftnlen);
- static logical iscacc;
- extern /* Subroutine */ int addask_(real *, real *, real *, real *, real *
- , real *, real *, logical *);
- static logical isclef, isflag, isaccs, bspend, isgaft;
- static real ptclef[24];
- static integer ihornb[576] /* was [24][24] */;
- static real eskndg[24], ptsndg[24];
- static logical rpndot;
- static char notexq[79];
- static logical stemup, beamon1[24];
- static integer ibmcnt1[24], lnoten;
- extern /* Subroutine */ int wsclef_(integer *, integer *, integer *);
- static real eonsqz;
- extern /* Subroutine */ int precrd_(integer *, integer *, integer *,
- integer *, integer *, integer *, char *, logical *, integer *,
- ftnlen), chkarp_(integer *, integer *, integer *, integer *,
- logical *, logical *);
- static integer ibmchk;
- static real taccfac, esksav, ptsadd;
- static integer ihshft;
- extern /* Subroutine */ int addstr_(char *, integer *, char *, integer *,
- ftnlen, ftnlen);
- static integer lchead;
- extern integer lenstr_(char *, integer *, ftnlen);
- static integer islhgt;
- static real offnsk;
- extern /* Subroutine */ int putfig_(integer *, integer *, real *, logical
- *, char *, integer *, ftnlen), putarp_(real *, integer *, integer
- *, integer *, integer *, char *, integer *, ftnlen);
- static logical isgrace;
- static integer icashft;
- static real ptbneed;
- extern /* Subroutine */ int doslur_(integer *, integer *, integer *,
- integer *, integer *, integer *, integer *, integer *, integer *,
- logical *, integer *, char *, integer *, char *, integer *,
- integer *, integer *, integer *, real *, integer *, ftnlen,
- ftnlen);
- static integer iphold;
- extern /* Subroutine */ int dograce_(integer *, integer *, real *, char *,
- integer *, integer *, integer *, integer *, integer *, logical *,
- logical *, integer *, integer *, integer *, integer *, integer *,
- integer *, real *, char *, integer *, ftnlen, ftnlen);
- static real ptsneed;
- extern /* Subroutine */ int clefsym_(integer *, char *, integer *,
- integer *, ftnlen);
- static logical isrshft, isfirst, nofirst;
- static char slurudq[1];
- extern /* Subroutine */ int putshft_(integer *, logical *, char *,
- integer *, ftnlen), endslur_(logical *, logical *, integer *,
- integer *, integer *, integer *, integer *, char *, integer *,
- logical *, ftnlen), notefq_(char *, integer *, integer *, integer
- *, ftnlen), setbits_(integer *, integer *, integer *, integer *),
- addmidi_(integer *, integer *, integer *, integer *, real *,
- logical *, logical *), putorn_(integer *, integer *, integer *,
- integer *, integer *, char *, integer *, integer *, integer *,
- integer *, integer *, integer *, integer *, real *, char *,
- integer *, integer *, integer *, logical *, logical *, ftnlen,
- ftnlen), dotmov_(real *, real *, char *, integer *, integer *,
- ftnlen), beamn1_(char *, integer *, ftnlen);
- static real wheadpt1;
- extern /* Subroutine */ int beamend_(char *, integer *, ftnlen), beamid_(
- char *, integer *, ftnlen), notex_(char *, integer *, ftnlen);
-
- /* Fortran I/O blocks */
- static icilist io___1021 = { 0, noteq, 0, "(1H{,i3,1H})", 5, 1 };
- static icilist io___1023 = { 0, noteq, 0, "(1H{,i2,1H})", 4, 1 };
- static icilist io___1024 = { 0, noteq, 0, "(i1)", 1, 1 };
- static cilist io___1027 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1028 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1033 = { 0, 6, 0, 0, 0 };
- static cilist io___1034 = { 0, 6, 0, 0, 0 };
- static cilist io___1035 = { 0, 11, 0, "(a20,i1,a)", 0 };
- static cilist io___1036 = { 0, 11, 0, "(a20,i2,a)", 0 };
- static cilist io___1037 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1040 = { 0, soutq+8, 0, "(f4.1)", 4, 1 };
- static icilist io___1041 = { 0, soutq+8, 0, "(f4.2)", 4, 1 };
- static icilist io___1042 = { 0, soutq+10, 0, "(i2)", 2, 1 };
- static icilist io___1043 = { 0, soutq+11, 0, "(i1)", 1, 1 };
- static cilist io___1048 = { 0, 6, 0, 0, 0 };
- static cilist io___1049 = { 0, 6, 0, 0, 0 };
- static cilist io___1069 = { 0, 6, 0, 0, 0 };
- static cilist io___1085 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1086 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1087 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1088 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1089 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1090 = { 0, 6, 0, 0, 0 };
- static cilist io___1091 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1092 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1093 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1097 = { 0, notexq+11, 0, "(i2)", 2, 1 };
- static icilist io___1103 = { 0, notexq+6, 0, "(f3.1)", 3, 1 };
- static icilist io___1104 = { 0, notexq+6, 0, "(f4.1)", 4, 1 };
- static icilist io___1106 = { 0, notexq+5, 0, "(f3.1)", 3, 1 };
- static icilist io___1107 = { 0, notexq+5, 0, "(f4.1)", 4, 1 };
- static cilist io___1109 = { 0, 6, 0, 0, 0 };
- static cilist io___1110 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1111 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1119 = { 0, notexq, 0, "(f4.1)", 79, 1 };
- static icilist io___1127 = { 0, noteq, 0, "(a1,i2,a1)", 8, 1 };
- static cilist io___1128 = { 0, 6, 0, 0, 0 };
- static cilist io___1141 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1144 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1145 = { 0, soutq+12, 0, "(i3)", 3, 1 };
- static icilist io___1146 = { 0, soutq+12, 0, "(i2)", 2, 1 };
- static cilist io___1147 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1150 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1152 = { 0, 11, 0, "(a)", 0 };
-
-
-
-/* Factors for grace note, clef spacing. (fraction of wheadpt) */
-/* In 1.04, moved to block data subprogram */
-
-/* 130316 */
-#line 17226 ""
- /* Parameter adjustments */
-#line 17226 ""
- --clefq;
-#line 17226 ""
- --istart;
-#line 17226 ""
- --numbms;
-#line 17226 ""
- --istop;
-#line 17226 ""
- --squez;
-#line 17226 ""
- --cwrest;
-#line 17226 ""
- --tstart;
-#line 17226 ""
-
-#line 17226 ""
- /* Function Body */
-#line 17226 ""
- xjbeambrests_1.nbrests = 0;
-
-/* Set up main ib loop within which a block (notes group) is written */
-
-#line 17230 ""
- i__1 = all_1.nv;
-#line 17230 ""
- for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) {
-#line 17231 ""
- i__2 = commvl_1.nvmx[all_1.iv - 1];
-#line 17231 ""
- for (kv = 1; kv <= i__2; ++kv) {
-#line 17232 ""
- commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25];
-#line 17233 ""
- all_1.ibmcnt[commvl_1.ivx - 1] = 1;
-#line 17234 ""
- ibmcnt1[commvl_1.ivx - 1] = 1;
-#line 17235 ""
- all_1.beamon[commvl_1.ivx - 1] = FALSE_;
-#line 17236 ""
- beamon1[commvl_1.ivx - 1] = FALSE_;
-#line 17237 ""
- nornb[commvl_1.ivx - 1] = 0;
-#line 17238 ""
- iaskb[commvl_1.ivx - 1] = 1;
-#line 17239 ""
- comxtup_1.vxtup[commvl_1.ivx - 1] = FALSE_;
-#line 17240 ""
- comdraw_1.drawbm[commvl_1.ivx - 1] = TRUE_;
-#line 17241 ""
-/* L25: */
-#line 17241 ""
- }
-#line 17241 ""
- }
-#line 17242 ""
- comas1_1.naskb = 0;
-#line 17243 ""
- ifig[0] = 1;
-#line 17244 ""
- ifig[1] = 1;
-#line 17245 ""
- comxtup_1.ixtup = 0;
-#line 17246 ""
- bspend = FALSE_;
-#line 17247 ""
- iscwr = FALSE_;
-#line 17248 ""
- rpndot = FALSE_;
-#line 17249 ""
- i__2 = comnsp_2.nb;
-#line 17249 ""
- for (ib = 1; ib <= i__2; ++ib) {
-
-/* Check for segno */
-
-#line 17253 ""
- if (bit_test(all_1.iornq[all_1.ipo[istart[ib] - 1] * 24],4) &&
- all_1.ivxo[istart[ib] - 1] == 1) {
-#line 17255 ""
- if (comgrace_1.noffseg <= -10) {
-#line 17256 ""
- s_wsfi(&io___1021);
-#line 17256 ""
- do_fio(&c__1, (char *)&comgrace_1.noffseg, (ftnlen)sizeof(
- integer));
-#line 17256 ""
- e_wsfi();
-#line 17257 ""
- lnoten = 5;
-#line 17258 ""
- } else if (comgrace_1.noffseg < 0 || comgrace_1.noffseg >= 10) {
-#line 17259 ""
- s_wsfi(&io___1023);
-#line 17259 ""
- do_fio(&c__1, (char *)&comgrace_1.noffseg, (ftnlen)sizeof(
- integer));
-#line 17259 ""
- e_wsfi();
-#line 17260 ""
- lnoten = 4;
-#line 17261 ""
- } else {
-#line 17262 ""
- s_wsfi(&io___1024);
-#line 17262 ""
- do_fio(&c__1, (char *)&comgrace_1.noffseg, (ftnlen)sizeof(
- integer));
-#line 17262 ""
- e_wsfi();
-#line 17263 ""
- lnoten = 1;
-#line 17264 ""
- }
-/* Writing concatenation */
-#line 17265 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 17265 ""
- i__3[1] = 6, a__1[1] = "znotes";
-#line 17265 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 17265 ""
- i__3[3] = 6, a__1[3] = "segnoo";
-#line 17265 ""
- i__3[4] = lnoten, a__1[4] = noteq;
-#line 17265 ""
- i__3[5] = 1, a__1[5] = "9";
-#line 17265 ""
- s_cat(notexq, a__1, i__3, &c__6, (ftnlen)79);
-#line 17266 ""
- lnote = lnoten + 15;
-#line 17267 ""
- i__1 = all_1.nv;
-#line 17267 ""
- for (all_1.iv = 2; all_1.iv <= i__1; ++all_1.iv) {
-#line 17268 ""
- if (lnote > 60) {
-#line 17269 ""
- if (comlast_1.islast) {
-#line 17269 ""
- s_wsfe(&io___1027);
-/* Writing concatenation */
-#line 17269 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 17269 ""
- i__4[1] = 1, a__2[1] = "%";
-#line 17269 ""
- s_cat(ch__1, a__2, i__4, &c__2, (ftnlen)80);
-#line 17269 ""
- do_fio(&c__1, ch__1, lnote + 1);
-#line 17269 ""
- e_wsfe();
-#line 17269 ""
- }
-/* Writing concatenation */
-#line 17270 ""
- i__5[0] = 1, a__3[0] = all_1.sepsymq + (all_1.iv - 2);
-#line 17270 ""
- i__5[1] = 1, a__3[1] = all_1.sq;
-#line 17270 ""
- i__5[2] = 6, a__3[2] = "segnoo";
-#line 17270 ""
- i__5[3] = lnoten, a__3[3] = noteq;
-#line 17270 ""
- i__5[4] = 1, a__3[4] = "9";
-#line 17270 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79);
-#line 17272 ""
- lnote = lnoten + 9;
-#line 17273 ""
- } else {
-/* Writing concatenation */
-#line 17274 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 17274 ""
- i__3[1] = 1, a__1[1] = all_1.sepsymq + (all_1.iv - 2);
-#line 17274 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 17274 ""
- i__3[3] = 6, a__1[3] = "segnoo";
-#line 17274 ""
- i__3[4] = lnoten, a__1[4] = noteq;
-#line 17274 ""
- i__3[5] = 1, a__1[5] = "9";
-#line 17274 ""
- s_cat(notexq, a__1, i__3, &c__6, (ftnlen)79);
-#line 17276 ""
- lnote = lnote + lnoten + 9;
-#line 17277 ""
- }
-#line 17278 ""
-/* L130: */
-#line 17278 ""
- }
-#line 17279 ""
- if (comlast_1.islast) {
-#line 17279 ""
- s_wsfe(&io___1028);
-/* Writing concatenation */
-#line 17279 ""
- i__6[0] = lnote, a__4[0] = notexq;
-#line 17279 ""
- i__6[1] = 1, a__4[1] = all_1.sq;
-#line 17279 ""
- i__6[2] = 2, a__4[2] = "en";
-#line 17279 ""
- s_cat(ch__2, a__4, i__6, &c__3, (ftnlen)82);
-#line 17279 ""
- do_fio(&c__1, ch__2, lnote + 3);
-#line 17279 ""
- e_wsfe();
-#line 17279 ""
- }
-#line 17280 ""
- lnote = 0;
-#line 17281 ""
- }
-
-/* Check for new clefs */
-
-#line 17285 ""
- isclef = FALSE_;
-#line 17286 ""
- 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 17291 ""
- i__1 = istop[ib];
-#line 17291 ""
- for (in = istart[ib]; in <= i__1; ++in) {
-#line 17292 ""
- if (bit_test(all_1.islur[all_1.ivxo[in - 1] + all_1.ipo[in -
- 1] * 24 - 25],11)) {
-#line 17293 ""
- i__7 = lbit_shift(all_1.islur[all_1.ivxo[in - 1] +
- all_1.ipo[in - 1] * 24 - 25], (ftnlen)-12) & 7;
-#line 17293 ""
- 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 17299 ""
- if (bit_test(all_1.ipl[all_1.ivxo[in - 1] + all_1.ipo[in
- - 1] * 24 - 25],2)) {
-
-/* Find instrument number for voice ivso(in) */
-
-#line 17303 ""
- iv1 = 1;
-#line 17304 ""
- i__7 = *ninow;
-#line 17304 ""
- for (iinst = 1; iinst <= i__7; ++iinst) {
-#line 17305 ""
- if (all_1.ivxo[in - 1] < iv1 + comnvi_1.nspern[
- iinst - 1]) {
-#line 17305 ""
- goto L2222;
-#line 17305 ""
- }
-#line 17306 ""
- iv1 += comnvi_1.nspern[iinst - 1];
-#line 17307 ""
-/* L1111: */
-#line 17307 ""
- }
-#line 17308 ""
- s_wsle(&io___1033);
-#line 17308 ""
- e_wsle();
-#line 17309 ""
- s_wsle(&io___1034);
-#line 17309 ""
- do_lio(&c__9, &c__1, "Should not be here in make2bar!"
- , (ftnlen)31);
-#line 17309 ""
- e_wsle();
-#line 17310 ""
- stop1_();
-#line 17311 ""
-L2222:
-#line 17312 ""
- if (iinst <= 9) {
-#line 17313 ""
- s_wsfe(&io___1035);
-/* Writing concatenation */
-#line 17313 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17313 ""
- i__4[1] = 19, a__2[1] = "settrebleclefsymbol";
-#line 17313 ""
- s_cat(ch__3, a__2, i__4, &c__2, (ftnlen)20);
-#line 17313 ""
- do_fio(&c__1, ch__3, (ftnlen)20);
-#line 17313 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(
- integer));
-/* Writing concatenation */
-#line 17313 ""
- i__8[0] = 1, a__5[0] = all_1.sq;
-#line 17313 ""
- i__8[1] = 13, a__5[1] = "treblelowoct%";
-#line 17313 ""
- s_cat(ch__4, a__5, i__8, &c__2, (ftnlen)14);
-#line 17313 ""
- do_fio(&c__1, ch__4, (ftnlen)14);
-#line 17313 ""
- e_wsfe();
-#line 17315 ""
- } else {
-#line 17316 ""
- s_wsfe(&io___1036);
-/* Writing concatenation */
-#line 17316 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17316 ""
- i__4[1] = 19, a__2[1] = "settrebleclefsymbol";
-#line 17316 ""
- s_cat(ch__3, a__2, i__4, &c__2, (ftnlen)20);
-#line 17316 ""
- do_fio(&c__1, ch__3, (ftnlen)20);
-#line 17316 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(
- integer));
-/* Writing concatenation */
-#line 17316 ""
- i__8[0] = 1, a__5[0] = all_1.sq;
-#line 17316 ""
- i__8[1] = 13, a__5[1] = "treblelowoct%";
-#line 17316 ""
- s_cat(ch__4, a__5, i__8, &c__2, (ftnlen)14);
-#line 17316 ""
- do_fio(&c__1, ch__4, (ftnlen)14);
-#line 17316 ""
- e_wsfe();
-#line 17318 ""
- }
-#line 17319 ""
- comc8flag_1.c8flag[all_1.ivxo[in - 1] - 1] = TRUE_;
-#line 17320 ""
- }
-#line 17321 ""
- }
-#line 17322 ""
-/* L140: */
-#line 17322 ""
- }
-#line 17323 ""
- if (comlast_1.islast) {
-#line 17323 ""
- s_wsfe(&io___1037);
-/* Writing concatenation */
-#line 17323 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17323 ""
- i__4[1] = 11, a__2[1] = "pmxnewclefs";
-#line 17323 ""
- s_cat(ch__5, a__2, i__4, &c__2, (ftnlen)12);
-#line 17323 ""
- do_fio(&c__1, ch__5, (ftnlen)12);
-#line 17323 ""
- e_wsfe();
-#line 17323 ""
- }
-#line 17324 ""
- isclef = TRUE_;
-#line 17325 ""
- }
-
-/* Start a notes group. We're just gonna define every one using pnotes{n}, */
-/* where \def\pnotes#1{\vnotes#1\elemskip} */
-
-/* Writing concatenation */
-#line 17330 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17330 ""
- i__4[1] = 7, a__2[1] = "pnotes{";
-#line 17330 ""
- s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80);
-#line 17331 ""
- r__1 = comnsp_2.space[ib - 1] / squez[ib];
-#line 17331 ""
- eonsqz = squez[ib] * feon_(&r__1);
-#line 17332 ""
- if (eonsqz > 9.995f) {
-#line 17333 ""
- s_wsfi(&io___1040);
-#line 17333 ""
- do_fio(&c__1, (char *)&eonsqz, (ftnlen)sizeof(real));
-#line 17333 ""
- e_wsfi();
-#line 17334 ""
- } else if (eonsqz > .995f) {
-#line 17335 ""
- s_wsfi(&io___1041);
-#line 17335 ""
- do_fio(&c__1, (char *)&eonsqz, (ftnlen)sizeof(real));
-#line 17335 ""
- e_wsfi();
-#line 17336 ""
- } else if (eonsqz > .095f) {
-/* Writing concatenation */
-#line 17337 ""
- i__4[0] = 8, a__2[0] = soutq;
-#line 17337 ""
- i__4[1] = 2, a__2[1] = "0.";
-#line 17337 ""
- s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80);
-#line 17338 ""
- s_wsfi(&io___1042);
-#line 17338 ""
- r__1 = eonsqz * 100;
-#line 17338 ""
- i__1 = i_nint(&r__1);
-#line 17338 ""
- do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 17338 ""
- e_wsfi();
-#line 17339 ""
- } else {
-/* Writing concatenation */
-#line 17340 ""
- i__4[0] = 8, a__2[0] = soutq;
-#line 17340 ""
- i__4[1] = 3, a__2[1] = "0.0";
-#line 17340 ""
- s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80);
-#line 17341 ""
- s_wsfi(&io___1043);
-#line 17341 ""
- r__1 = eonsqz * 100;
-#line 17341 ""
- i__1 = i_nint(&r__1);
-#line 17341 ""
- do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 17341 ""
- e_wsfi();
-#line 17342 ""
- }
-/* Writing concatenation */
-#line 17343 ""
- i__4[0] = 12, a__2[0] = soutq;
-#line 17343 ""
- i__4[1] = 1, a__2[1] = "}";
-#line 17343 ""
- s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80);
-#line 17344 ""
- lsout = 13;
-
-/* Check whole block, flag accidentals etc that are too close, one per *time*. */
-/* Note about bar starts and after rpt's/boublebars: There is an afterruleskip */
-/* (fbar*wheadpt) following, but rpts seem to occupy some of that gap, so */
-/* (dotsfac*wheadpt) is presumed to be filled up. */
-
-#line 17351 ""
- in = istart[ib] - 1;
-#line 17352 ""
- itrpt = -1;
-#line 17353 ""
- itsig = -1;
-
-/* Begin big manual loop over notes in this block; ends at 112 */
-
-#line 17357 ""
-L111:
-#line 17357 ""
- ++in;
-#line 17358 ""
- if (in > istop[ib]) {
-#line 17358 ""
- goto L112;
-#line 17358 ""
- }
-#line 17359 ""
- ip = all_1.ipo[in - 1];
-#line 17360 ""
- commvl_1.ivx = all_1.ivxo[in - 1];
-#line 17361 ""
- if (commvl_1.ivx <= all_1.nv) {
-#line 17362 ""
- all_1.iv = commvl_1.ivx;
-#line 17363 ""
- } else {
-#line 17364 ""
- i__1 = all_1.nv;
-#line 17364 ""
- for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) {
-#line 17365 ""
- if (commvl_1.nvmx[all_1.iv - 1] == 2 && commvl_1.ivmx[
- all_1.iv + 23] == commvl_1.ivx) {
-#line 17365 ""
- goto L129;
-#line 17365 ""
- }
-#line 17366 ""
-/* L128: */
-#line 17366 ""
- }
-#line 17367 ""
- s_wsle(&io___1048);
-#line 17367 ""
- do_lio(&c__9, &c__1, "Trouble finding iv!, ivx,nvmx,ivmx:", (
- ftnlen)35);
-#line 17367 ""
- do_lio(&c__3, &c__1, (char *)&commvl_1.ivx, (ftnlen)sizeof(
- integer));
-#line 17367 ""
- do_lio(&c__3, &c__1, (char *)&commvl_1.nvmx[0], (ftnlen)sizeof(
- integer));
-#line 17367 ""
- do_lio(&c__3, &c__1, (char *)&commvl_1.nvmx[1], (ftnlen)sizeof(
- integer));
-#line 17367 ""
- e_wsle();
-#line 17368 ""
- s_wsle(&io___1049);
-#line 17368 ""
- do_lio(&c__3, &c__1, (char *)&commvl_1.ivmx[0], (ftnlen)sizeof(
- integer));
-#line 17368 ""
- do_lio(&c__3, &c__1, (char *)&commvl_1.ivmx[24], (ftnlen)sizeof(
- integer));
-#line 17368 ""
- do_lio(&c__3, &c__1, (char *)&commvl_1.ivmx[1], (ftnlen)sizeof(
- integer));
-#line 17368 ""
- do_lio(&c__3, &c__1, (char *)&commvl_1.ivmx[25], (ftnlen)sizeof(
- integer));
-#line 17368 ""
- e_wsle();
-#line 17369 ""
- s_stop("", (ftnlen)0);
-#line 17370 ""
- }
-#line 17371 ""
-L129:
-
-/* Call precrd here so we know how much space to add for accid's in chords */
-/* After calling precrd, icashft>0 means there is a shifted chordal accid (incl. */
-/* main note. */
-
-/* To call precrd, need up-downness, so must track if in beam. */
-
-/* Deal w/ staff-jumping beams later */
-/* if ((numbms(ivx).gt.0 .and. ibmcnt(ivx).le.numbms(ivx) */
-/* * .and. ibm1(ivx,ibmcnt(ivx)) .eq. ip) .or. */
-/* * btest(nacc(ivx,ip),21)) then */
-/* if (.not.btest(irest(ivx,ip),24)) then */
-#line 17384 ""
- 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 17386 ""
- beamon1[commvl_1.ivx - 1] = TRUE_;
-#line 17387 ""
- }
-#line 17388 ""
- icashft = 0;
-#line 17389 ""
- 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 17393 ""
- if (beamon1[commvl_1.ivx - 1]) {
-#line 17394 ""
- 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 17397 ""
- } else {
-#line 17398 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 17398 ""
- 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 17398 ""
- 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 17402 ""
- }
-#line 17403 ""
- }
-
-/* Turn beam off? */
-
-#line 17407 ""
- if (beamon1[commvl_1.ivx - 1] && all_1.ibm2[commvl_1.ivx + ibmcnt1[
- commvl_1.ivx - 1] * 24 - 25] == ip) {
-#line 17408 ""
- beamon1[commvl_1.ivx - 1] = FALSE_;
-#line 17409 ""
- ++ibmcnt1[commvl_1.ivx - 1];
-#line 17410 ""
- }
-
-/* Remember, rpts & internal sigs can only come at start of (internal) block */
-
-#line 17414 ""
- 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);
-
-/* i.e., do not set for chord. Now check for "(" as ornament on main note, */
-
-/* !!! Need to do this for chord notes too. Maybe in chkarp? */
-
-#line 17422 ""
- isaccs = isacc || bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],0);
-
-/* 5/15/02 Add check for ) ornament of prior note. */
-/* 5/16 Nope...fails when grace intervenes. */
-/* if (ip .gt. 1) then */
-/* isaccs = isaccs .or. btest(iornq(ivx,ip-1),13) */
-/* end if */
-#line 17429 ""
- isarp = bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],27);
-#line 17430 ""
- iscacc = FALSE_;
-#line 17431 ""
- 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 17436 ""
- 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 17438 ""
- chkarp_(&comtrill_1.ncrd, comtrill_1.icrdat, &commvl_1.ivx, &ip, &
- iscacc, &isarp);
-#line 17439 ""
- }
-
-/* When we get motivated, will do spacing for arpeggios here. */
-
-#line 17443 ""
- if (commvl_1.ivx == 1 && (all_1.islur[commvl_1.ivx + ip * 24 - 25] &
- 96) > 0) {
-#line 17443 ""
- itrpt = i_nint(&all_1.to[in - 1]);
-#line 17443 ""
- }
-#line 17445 ""
- issig = bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],28);
-#line 17446 ""
- if (commvl_1.ivx == 1 && issig) {
-#line 17446 ""
- itsig = i_nint(&all_1.to[in - 1]);
-#line 17446 ""
- }
-#line 17447 ""
- 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 17449 ""
- isgaft = FALSE_;
-#line 17450 ""
- if (ip > 1) {
-#line 17451 ""
- xnd = all_1.tnote[comipl2_1.ipl2[commvl_1.ivx + (ip - 1) * 24 -
- 25] - 1];
-#line 17452 ""
- 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 17453 ""
- isgrace = isgrace || isgaft;
-#line 17454 ""
- }
-#line 17455 ""
- 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 17459 ""
- isflag = ip > 1 && xnd > comtol_1.tol && xnd < 16.f - comtol_1.tol;
-#line 17460 ""
- if (isflag) {
-#line 17460 ""
- i__7 = ip - 1;
-#line 17460 ""
- i__1 = ncmid_(&all_1.iv, &i__7);
-#line 17460 ""
- 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 17460 ""
- isflag = ! bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25]
- ,0) && *(unsigned char *)&ch__6[0] == 'u';
-#line 17460 ""
- }
-#line 17464 ""
- if (isflag) {
-#line 17465 ""
- i__1 = numbms[commvl_1.ivx];
-#line 17465 ""
- for (ibmchk = 1; ibmchk <= i__1; ++ibmchk) {
-#line 17466 ""
- if (ip - 1 < all_1.ibm1[commvl_1.ivx + ibmchk * 24 - 25]) {
-#line 17467 ""
- goto L117;
-
-/* Add check for non-beamed xtuplets. May be problem with stem direction. */
-
-#line 17471 ""
- } 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 17473 ""
- isflag = FALSE_;
-#line 17474 ""
- goto L117;
-#line 17475 ""
- }
-#line 17476 ""
-/* L116: */
-#line 17476 ""
- }
-#line 17477 ""
- }
-#line 17478 ""
-L117:
-
-/* If isflag, then won't need to check for dot on prev. note. */
-
-/* 5/16/02 ??? Try using this for ) ornament. */
-
-#line 17484 ""
- isflag = isflag || bit_test(all_1.iornq[commvl_1.ivx + (ip - 1) * 24
- - 1],13);
-#line 17485 ""
- isdot = ip > 1;
-#line 17486 ""
- if (isdot) {
-#line 17486 ""
- i__1 = ip - 1;
-#line 17486 ""
- isdot = isdotted_(all_1.nodur, &commvl_1.ivx, &i__1);
-#line 17486 ""
- }
-#line 17487 ""
- isrshft = ip > 1;
-#line 17488 ""
- if (isrshft) {
-#line 17488 ""
- isrshft = bit_test(all_1.irest[commvl_1.ivx + (ip - 1) * 24 - 25],
- 20);
-#line 17488 ""
- }
-#line 17489 ""
- 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 17489 ""
- goto L111;
-#line 17489 ""
- }
-
-/* Here is an accid,grace,clef,flag,rtshft,dot,udsp,arpeg,left-shift. */
-/* Compute pts, the total occupied space including prior notehead. */
-
-/* 130324 */
-/* wheadpt1 = wheadpt*fullsize(iv) */
-#line 17499 ""
- wheadpt1 = comask_1.wheadpt * comfig_1.fullsize[cominsttrans_1.instno[
- all_1.iv - 1] - 1];
-#line 17500 ""
- pts = wheadpt1;
-
-/* Set up for possible cautionary accidental here */
-
-#line 17504 ""
- if (isaccs || iscacc) {
-#line 17505 ""
- if (! bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],31)) {
-#line 17506 ""
- taccfac = spfacs_1.accfac;
-#line 17507 ""
- } else {
-#line 17508 ""
- taccfac = spfacs_1.accfac * 1.4f;
-/* cautionary accidental */
-#line 17509 ""
- }
-#line 17510 ""
- }
-#line 17511 ""
- if (isgrace) {
-#line 17512 ""
- secondgrace = FALSE_;
-#line 17513 ""
- i__1 = comgrace_1.ngrace;
-#line 17513 ""
- for (ig = 1; ig <= i__1; ++ig) {
-#line 17514 ""
- if (! isgaft) {
-#line 17515 ""
- if (comgrace_1.ipg[ig - 1] == ip && comgrace_1.ivg[ig - 1]
- == commvl_1.ivx) {
-#line 17515 ""
- goto L123;
-#line 17515 ""
- }
-#line 17516 ""
- } else if (ip > 1) {
-#line 17517 ""
- if (comgrace_1.ipg[ig - 1] == ip - 1 && comgrace_1.ivg[ig
- - 1] == commvl_1.ivx) {
-#line 17517 ""
- goto L123;
-#line 17517 ""
- }
-#line 17518 ""
- }
-#line 17519 ""
-/* L122: */
-#line 17519 ""
- }
-#line 17520 ""
- s_wsle(&io___1069);
-#line 17520 ""
- do_lio(&c__9, &c__1, "Problem finding grace index in makeabar", (
- ftnlen)39);
-#line 17520 ""
- e_wsle();
-#line 17521 ""
- s_stop("", (ftnlen)0);
-#line 17522 ""
-L123:
-
-/* wgr = distance to backspace (in headwidths), less main acc. */
-/* ptgr = same in pts,+ main acc. Not used for after-grace. Distance to backspace. */
-/* 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 17529 ""
- if (comgrace_1.nng[ig - 1] == 1) {
-#line 17530 ""
- wgr = spfacs_1.grafac;
-#line 17531 ""
- if (comgrace_1.multg[ig - 1] == 0) {
-#line 17531 ""
- wgr += -.4f;
-#line 17531 ""
- }
-#line 17532 ""
- } else {
-#line 17533 ""
- wgr = comgrace_1.nng[ig - 1] * spfacs_1.emgfac;
-#line 17534 ""
- i__1 = comgrace_1.nng[ig - 1];
-#line 17534 ""
- for (ing = 2; ing <= i__1; ++ing) {
-#line 17535 ""
- if (comgrace_1.naccg[comgrace_1.ngstrt[ig - 1] - 1 + ing
- - 1] > 0) {
-#line 17535 ""
- wgr += spfacs_1.acgfac;
-#line 17535 ""
- }
-#line 17536 ""
-/* L126: */
-#line 17536 ""
- }
-#line 17537 ""
- }
-#line 17538 ""
- if (comgrace_1.graspace[ig - 1] > 0.f) {
-
-/* User-defined space before grace */
-
-#line 17542 ""
- wgr += comgrace_1.graspace[ig - 1];
-#line 17543 ""
- }
-#line 17544 ""
- ptgr[ig - 1] = wgr * wheadpt1;
-#line 17545 ""
- spgr = ptgr[ig - 1] + spfacs_1.xb4fac * wheadpt1;
-
-/* !!! May need to mod for chord accid's */
-
-#line 17549 ""
- if (isaccs || iscacc) {
-#line 17549 ""
- ptgr[ig - 1] += taccfac * wheadpt1;
-#line 17549 ""
- }
-#line 17550 ""
- if (comgrace_1.naccg[comgrace_1.ngstrt[ig - 1] - 1] > 0) {
-#line 17550 ""
- spgr += wheadpt1 * spfacs_1.agc1fac;
-#line 17550 ""
- }
-#line 17551 ""
- 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 17556 ""
- if (isgaft && ig < comgrace_1.ngrace && ! secondgrace) {
-#line 17557 ""
- if (comgrace_1.ipg[ig] == ip) {
-#line 17558 ""
- secondgrace = TRUE_;
-#line 17559 ""
- ++ig;
-#line 17560 ""
- goto L123;
-#line 17561 ""
- }
-#line 17562 ""
- }
-#line 17563 ""
- }
-#line 17564 ""
- if (iscln) {
-#line 17565 ""
- pts += spfacs_1.clefac * wheadpt1;
-
-/* How far to backspace when printing the clef */
-
-#line 17569 ""
- ptclef[commvl_1.ivx - 1] = 0.f;
-
-/* !!! May need to mod for chord accid's */
-
-#line 17573 ""
- if (isaccs || iscacc) {
-#line 17573 ""
- ptclef[commvl_1.ivx - 1] += taccfac * wheadpt1;
-#line 17573 ""
- }
-#line 17575 ""
- if (isgrace) {
-#line 17575 ""
- ptclef[commvl_1.ivx - 1] += spgr;
-#line 17575 ""
- }
-#line 17576 ""
- }
-#line 17577 ""
- if (isrshft) {
-#line 17578 ""
- pts += spfacs_1.rtshfac * wheadpt1;
-#line 17579 ""
- } else if (isflag) {
-#line 17580 ""
- pts += spfacs_1.flagfac * wheadpt1;
-#line 17581 ""
- } else if (isdot) {
-#line 17582 ""
- pts += spfacs_1.dotfac * wheadpt1;
-#line 17583 ""
- }
-#line 17584 ""
- if ((r__1 = all_1.to[in - 1] - itrpt, dabs(r__1)) < comtol_1.tol) {
-
-/* Repeat, need a little extra space */
-
-#line 17588 ""
- pts += spfacs_1.dotsfac * wheadpt1;
-#line 17589 ""
- }
-#line 17590 ""
- if (isarp) {
-#line 17591 ""
- pts += spfacs_1.arpfac * wheadpt1;
-#line 17592 ""
- }
-
-/* Add in padding space */
-
-#line 17596 ""
- pts += spfacs_1.xspfac * wheadpt1;
-
-/* Now done with all items needing space except accidentals, */
-/* accidental shifts, and left-notehead-shifts, and will later */
-/* subtract a notehead if at start of bar. */
-
-/* Get available space in elemskips (esk) */
-
-#line 17604 ""
- 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 17606 ""
- if (isfirst) {
-
-/* At start of bar or after repeat sign or new signature */
-
-#line 17610 ""
- if ((r__1 = all_1.to[in - 1] - itsig, dabs(r__1)) < comtol_1.tol)
- {
-#line 17611 ""
- esk = 0.f;
-#line 17612 ""
- } else {
-#line 17613 ""
- esk = comask_1.fbar;
-#line 17614 ""
- }
-#line 17615 ""
- } else {
-
-/* Not 1st note of bar */
-
-#line 17619 ""
- esk = all_1.eskz[commvl_1.ivx + ip * 24 - 25] - all_1.eskz[
- commvl_1.ivx + (ip - 1) * 24 - 25];
-#line 17620 ""
- }
-#line 17621 ""
- if (isgrace) {
-
-/* Since graces can be very long, cannot assume no interference if prior */
-/* note uses >1 noteskip. So must get elsk's back to prior note, whether or */
-/* not it used only one noteskip. */
-/* <<But if it was xtup. don't need to call eskb4.>>???? */
-
-/* 10/8/05 Kluge to not zero out esk if in xtup */
-
-#line 17630 ""
- esksav = esk;
-/* Computing MAX */
-#line 17631 ""
- i__1 = 1, i__7 = ip - 2;
-#line 17631 ""
- 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 17631 ""
- eskb4_(&ip, &commvl_1.ivx, &in, &ib, comnsp_2.space, &tstart[
- 1], &comask_1.fbar, &itrpt, &esk);
-#line 17631 ""
- }
-/* * to(in).ne.itsig) */
-#line 17635 ""
- if (dabs(esk) < comtol_1.tol) {
-#line 17635 ""
- esk = esksav;
-#line 17635 ""
- }
-#line 17636 ""
- }
-
-/* Done getting available elemskips. Remove headwidth if first. Must do here */
-/* rather than earlier since check uses isfirst */
-
-#line 17641 ""
- if (isfirst) {
-#line 17641 ""
- pts -= wheadpt1;
-#line 17641 ""
- }
-
-/* Deal with accidental shifts and left-notehead shifts */
-
-#line 17645 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10)) {
-
-/* In a chord */
-
-#line 17649 ""
- ptsl = 0.f;
-#line 17650 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],27)) {
-#line 17650 ""
- ptsl = wheadpt1;
-#line 17650 ""
- }
-/* Computing MAX */
-#line 17651 ""
- r__1 = ptsl, r__2 = icashft * .05f * wheadpt1;
-#line 17651 ""
- ptsadd = dmax(r__1,r__2);
-
-/* Note: may have icashft=-20000 (if shftmin=-1000 in crdacc) but that's OK */
-
-#line 17655 ""
- } else {
-
-/* Not in a chord */
-
-#line 17659 ""
- ihshft = 0;
-#line 17660 ""
- if (isaccs) {
-#line 17661 ""
- 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 17663 ""
- if (ihshft != 0) {
-/* Computing MAX */
-#line 17663 ""
- i__1 = 0, i__7 = 107 - ihshft;
-#line 17663 ""
- ihshft = max(i__1,i__7);
-#line 17663 ""
- }
-#line 17664 ""
- }
-
-/* Check for left-shifted main note */
-
-#line 17668 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],8)) {
-#line 17668 ""
- ihshft = max(20,ihshft);
-#line 17668 ""
- }
-#line 17669 ""
- ptsadd = ihshft * .05f * wheadpt1;
-#line 17670 ""
- }
-#line 17671 ""
- pts += ptsadd;
-#line 17672 ""
- if (isgrace) {
-#line 17672 ""
- ptgr[ig - 1] += ptsadd;
-#line 17672 ""
- }
-#line 17673 ""
- if (iscln) {
-#line 17673 ""
- ptclef[commvl_1.ivx - 1] += ptsadd;
-#line 17673 ""
- }
-
-/* Left-shifted, non-chord note before? */
-
-#line 17677 ""
- if (ip > 1) {
-#line 17678 ""
- 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 17678 ""
- pts -= wheadpt1;
-#line 17678 ""
- }
-#line 17680 ""
- }
-
-/* Try big accidentals first */
-
-#line 17684 ""
- ptbneed = pts;
-#line 17685 ""
- if (isaccs || iscacc) {
-#line 17686 ""
- ptbneed += wheadpt1 * spfacs_1.bacfac;
-#line 17687 ""
- }
-#line 17688 ""
- if (comshort_1.poefa[all_1.iline - 1] * comask_1.poenom * esk >
- ptbneed) {
-
-/* Set flag for big accidental */
-
-#line 17692 ""
- if (isacc) {
-#line 17692 ""
- all_1.nacc[commvl_1.ivx + ip * 24 - 25] = bit_set(all_1.nacc[
- commvl_1.ivx + ip * 24 - 25],3);
-#line 17692 ""
- }
-#line 17693 ""
- goto L99;
-#line 17694 ""
- }
-
-/* Cannot use big, so try small */
-
-#line 17698 ""
- ptsneed = pts;
-#line 17699 ""
- if (isaccs || iscacc) {
-#line 17700 ""
- ptsneed += taccfac * wheadpt1;
-#line 17701 ""
- }
-#line 17702 ""
- if (comshort_1.poefa[all_1.iline - 1] * comask_1.poenom * esk <
- ptsneed) {
-#line 17703 ""
- r__1 = comshort_1.poefa[all_1.iline - 1] * esk;
-#line 17703 ""
- addask_(&all_1.to[in - 1], &ptsneed, &r__1, &comask_1.fixednew, &
- comask_1.scaldold, &c_b1008, &comshort_1.poefa[
- all_1.iline - 1], &c_false);
-#line 17705 ""
- }
-#line 17706 ""
-L99:
-#line 17707 ""
- if (bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],26)) {
-
-/* User-defined space. Warning, "zero" may change value in addask! */
-
-#line 17711 ""
- zero = 0.f;
-#line 17712 ""
- addask_(&all_1.to[in - 1], &ptsneed, &zero, &comask_1.fixednew, &
- comask_1.scaldold, tglp1, &c_b1053, &c_true);
-#line 17714 ""
- }
-
-/* End of big manual loop over "in" for accidental checking */
-
-#line 17718 ""
- goto L111;
-#line 17719 ""
-L112:
-
-/* End of ask analysis for this block. */
-
-/* Adjust eskz if there are added spaces. Corrects length of xtup brackets. */
-
-#line 17725 ""
- if (comas1_1.naskb > 0) {
-#line 17725 ""
- adjusteskz_(&ib, &istart[1], &comask_1.poenom);
-#line 17725 ""
- }
-
-/* Check for internal repeat or sig change. */
-
-#line 17729 ""
- if (ib > 1 && all_1.ivxo[istart[ib] - 1] == 1) {
-#line 17730 ""
- iirpt = all_1.islur[all_1.ipo[istart[ib] - 1] * 24 - 24] &
- 67109216;
-#line 17731 ""
- if (iirpt > 0) {
-
-/* Internal repeat */
-
-#line 17735 ""
- if (comlast_1.islast) {
-#line 17735 ""
- s_wsfe(&io___1085);
-/* Writing concatenation */
-#line 17735 ""
- i__9[0] = 1, a__6[0] = all_1.sq;
-#line 17735 ""
- i__9[1] = 7, a__6[1] = "advance";
-#line 17735 ""
- i__9[2] = 1, a__6[2] = all_1.sq;
-#line 17735 ""
- i__9[3] = 8, a__6[3] = "barno-1%";
-#line 17735 ""
- s_cat(ch__7, a__6, i__9, &c__4, (ftnlen)17);
-#line 17735 ""
- do_fio(&c__1, ch__7, (ftnlen)17);
-#line 17735 ""
- e_wsfe();
-#line 17735 ""
- }
-#line 17736 ""
- if (iirpt == 96) {
-#line 17737 ""
- if (comlast_1.islast) {
-#line 17737 ""
- s_wsfe(&io___1086);
-/* Writing concatenation */
-#line 17737 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17737 ""
- i__4[1] = 15, a__2[1] = "leftrightrepeat";
-#line 17737 ""
- s_cat(ch__8, a__2, i__4, &c__2, (ftnlen)16);
-#line 17737 ""
- do_fio(&c__1, ch__8, (ftnlen)16);
-#line 17737 ""
- e_wsfe();
-#line 17737 ""
- }
-#line 17738 ""
- comask_1.fixednew += spfacs_1.lrrptfac * comask_1.wheadpt;
-#line 17739 ""
- } else if (bit_test(iirpt,5)) {
-#line 17740 ""
- if (comlast_1.islast) {
-#line 17740 ""
- s_wsfe(&io___1087);
-/* Writing concatenation */
-#line 17740 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17740 ""
- i__4[1] = 10, a__2[1] = "leftrepeat";
-#line 17740 ""
- s_cat(ch__9, a__2, i__4, &c__2, (ftnlen)11);
-#line 17740 ""
- do_fio(&c__1, ch__9, (ftnlen)11);
-#line 17740 ""
- e_wsfe();
-#line 17740 ""
- }
-#line 17741 ""
- comask_1.fixednew += spfacs_1.rptfac * comask_1.wheadpt;
-#line 17742 ""
- } else if (bit_test(iirpt,6)) {
-#line 17743 ""
- if (comlast_1.islast) {
-#line 17743 ""
- s_wsfe(&io___1088);
-/* Writing concatenation */
-#line 17743 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17743 ""
- i__4[1] = 11, a__2[1] = "rightrepeat";
-#line 17743 ""
- s_cat(ch__5, a__2, i__4, &c__2, (ftnlen)12);
-#line 17743 ""
- do_fio(&c__1, ch__5, (ftnlen)12);
-#line 17743 ""
- e_wsfe();
-#line 17743 ""
- }
-#line 17744 ""
- comask_1.fixednew += spfacs_1.rptfac * comask_1.wheadpt;
-#line 17745 ""
- } else if (bit_test(iirpt,8)) {
-#line 17746 ""
- if (comlast_1.islast) {
-#line 17746 ""
- s_wsfe(&io___1089);
-/* Writing concatenation */
-#line 17746 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17746 ""
- i__4[1] = 9, a__2[1] = "doublebar";
-#line 17746 ""
- s_cat(ch__10, a__2, i__4, &c__2, (ftnlen)10);
-#line 17746 ""
- do_fio(&c__1, ch__10, (ftnlen)10);
-#line 17746 ""
- e_wsfe();
-#line 17746 ""
- }
-#line 17747 ""
- } else {
-#line 17748 ""
- s_wsle(&io___1090);
-#line 17748 ""
- do_lio(&c__9, &c__1, "Unexpected mid-bar repeat command "\
- "R*", (ftnlen)36);
-#line 17748 ""
- e_wsle();
-#line 17749 ""
- stop1_();
-#line 17750 ""
- }
-#line 17751 ""
- comask_1.scaldold -= comask_1.fbar;
-#line 17752 ""
- }
-#line 17753 ""
- if (bit_test(all_1.ipl[all_1.ipo[istart[ib] - 1] * 24 - 24],28)) {
-
-/* Internal signature change. */
-
-/* Writing concatenation */
-#line 17757 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17757 ""
- i__4[1] = 17, a__2[1] = "generalsignature{";
-#line 17757 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 17758 ""
- lnote = 18;
-#line 17759 ""
- if (comtop_1.isig < 0) {
-/* Writing concatenation */
-#line 17760 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 17760 ""
- i__4[1] = 1, a__2[1] = "-";
-#line 17760 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 17761 ""
- ++lnote;
-#line 17762 ""
- }
-#line 17763 ""
- if (comlast_1.islast) {
-#line 17763 ""
- s_wsfe(&io___1091);
-/* Writing concatenation */
-#line 17763 ""
- i__6[0] = lnote, a__4[0] = notexq;
-#line 17763 ""
- i__1 = abs(comtop_1.isig) + 48;
-#line 17763 ""
- chax_(ch__6, (ftnlen)1, &i__1);
-#line 17763 ""
- i__6[1] = 1, a__4[1] = ch__6;
-#line 17763 ""
- i__6[2] = 2, a__4[2] = "}%";
-#line 17763 ""
- s_cat(ch__2, a__4, i__6, &c__3, (ftnlen)82);
-#line 17763 ""
- do_fio(&c__1, ch__2, lnote + 3);
-#line 17763 ""
- e_wsfe();
-#line 17763 ""
- }
-#line 17765 ""
- if (comlast_1.islast && comignorenats_1.ignorenats) {
-#line 17765 ""
- s_wsfe(&io___1092);
-/* Writing concatenation */
-#line 17765 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17765 ""
- i__4[1] = 11, a__2[1] = "ignorenats%";
-#line 17765 ""
- s_cat(ch__5, a__2, i__4, &c__2, (ftnlen)12);
-#line 17765 ""
- do_fio(&c__1, ch__5, (ftnlen)12);
-#line 17765 ""
- e_wsfe();
-#line 17765 ""
- }
-#line 17767 ""
- if (comlast_1.islast) {
-#line 17767 ""
- s_wsfe(&io___1093);
-/* Writing concatenation */
-#line 17767 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 17767 ""
- i__3[1] = 14, a__1[1] = "zchangecontext";
-#line 17767 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 17767 ""
- i__3[3] = 12, a__1[3] = "addspace{-.5";
-#line 17767 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 17767 ""
- i__3[5] = 15, a__1[5] = "afterruleskip}%";
-#line 17767 ""
- s_cat(ch__11, a__1, i__3, &c__6, (ftnlen)44);
-#line 17767 ""
- do_fio(&c__1, ch__11, (ftnlen)44);
-#line 17767 ""
- e_wsfe();
-#line 17767 ""
- }
-#line 17769 ""
- lnote = 0;
-#line 17770 ""
- }
-#line 17771 ""
- }
-#line 17772 ""
- comnsp_2.flgndb = FALSE_;
-
-/* Done with start-of-block stuff. Begin main loop over voices. */
-
-#line 17776 ""
- i__1 = all_1.nv;
-#line 17776 ""
- for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) {
-#line 17777 ""
- i__7 = commvl_1.nvmx[all_1.iv - 1];
-#line 17777 ""
- for (kv = 1; kv <= i__7; ++kv) {
-#line 17778 ""
- commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25];
-#line 17779 ""
- 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 17784 ""
- if (all_1.figbass) {
-#line 17785 ""
- ivf = 0;
-#line 17786 ""
- if (commvl_1.ivx == 1) {
-#line 17787 ""
- ivf = 1;
-#line 17788 ""
- } else if (commvl_1.ivx == comfig_1.ivxfig2) {
-#line 17789 ""
- ivf = 2;
-#line 17790 ""
- }
-#line 17791 ""
- if (ivf > 0) {
-#line 17791 ""
- all_1.figchk[ivf - 1] = comfig_1.nfigs[ivf - 1] > 0;
-#line 17791 ""
- }
-#line 17792 ""
- }
-#line 17793 ""
- if (commvl_1.ivx > 1) {
-#line 17794 ""
- if (commvl_1.ivx <= all_1.nv) {
-#line 17795 ""
- addstr_(all_1.sepsymq + (all_1.iv - 2), &c__1, soutq,
- &lsout, (ftnlen)1, (ftnlen)80);
-#line 17796 ""
- } else {
-/* Writing concatenation */
-#line 17797 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17797 ""
- i__4[1] = 9, a__2[1] = "nextvoice";
-#line 17797 ""
- s_cat(ch__10, a__2, i__4, &c__2, (ftnlen)10);
-#line 17797 ""
- addstr_(ch__10, &c__10, soutq, &lsout, (ftnlen)10, (
- ftnlen)80);
-#line 17798 ""
- }
-#line 17799 ""
- }
-#line 17800 ""
- if (comhead_1.ihdht > 0 && commvl_1.ivx == all_1.nv) {
-
-/* Write header. First adjust height if needed to miss barno. */
-
-#line 17804 ""
- if (comask_1.bar1syst && all_1.iline != 1) {
-#line 17805 ""
- comhead_1.ihdht = comsln_1.irzbnd + 15 +
- comsln_1.isnx;
-#line 17806 ""
- }
-
-/* Add user-defined vertical shift */
-
-#line 17810 ""
- comhead_1.ihdht += comhead_1.ihdvrt;
-#line 17811 ""
- lchead = lenstr_(comhead_1.headrq, &c__80, (ftnlen)80);
-/* Writing concatenation */
-#line 17812 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17812 ""
- i__4[1] = 10, a__2[1] = "zcharnote{";
-#line 17812 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 17813 ""
- s_wsfi(&io___1097);
-#line 17813 ""
- do_fio(&c__1, (char *)&comhead_1.ihdht, (ftnlen)sizeof(
- integer));
-#line 17813 ""
- e_wsfi();
-/* Writing concatenation */
-#line 17814 ""
- i__3[0] = 13, a__1[0] = notexq;
-#line 17814 ""
- i__3[1] = 2, a__1[1] = "}{";
-#line 17814 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 17814 ""
- i__3[3] = 7, a__1[3] = "bigfont";
-#line 17814 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 17814 ""
- i__3[5] = 10, a__1[5] = "kern-30pt ";
-#line 17814 ""
- s_cat(notexq, a__1, i__3, &c__6, (ftnlen)79);
-#line 17815 ""
- addstr_(notexq, &c__34, soutq, &lsout, (ftnlen)79, (
- ftnlen)80);
-/* Writing concatenation */
-#line 17816 ""
- i__4[0] = lchead, a__2[0] = comhead_1.headrq;
-#line 17816 ""
- i__4[1] = 1, a__2[1] = "}";
-#line 17816 ""
- s_cat(ch__12, a__2, i__4, &c__2, (ftnlen)81);
-#line 17816 ""
- i__10 = lchead + 1;
-#line 17816 ""
- addstr_(ch__12, &i__10, soutq, &lsout, lchead + 1, (
- ftnlen)80);
-#line 17817 ""
- comhead_1.ihdht = 0;
-#line 17818 ""
- }
-#line 17819 ""
- if (comhead_1.lower && commvl_1.ivx == all_1.nv) {
-#line 17820 ""
- lclow = lenstr_(comhead_1.lowerq, &c__80, (ftnlen)80);
-/* Writing concatenation */
-#line 17821 ""
- i__11[0] = 1, a__7[0] = all_1.sq;
-#line 17821 ""
- i__11[1] = 14, a__7[1] = "zcharnote{-6}{";
-#line 17821 ""
- i__11[2] = 1, a__7[2] = all_1.sq;
-#line 17821 ""
- i__11[3] = 5, a__7[3] = "tempo";
-#line 17821 ""
- i__11[4] = 1, a__7[4] = all_1.sq;
-#line 17821 ""
- i__11[5] = 10, a__7[5] = "kern-10pt ";
-#line 17821 ""
- i__11[6] = lclow, a__7[6] = comhead_1.lowerq;
-#line 17821 ""
- i__11[7] = 1, a__7[7] = "}";
-#line 17821 ""
- s_cat(ch__13, a__7, i__11, &c__8, (ftnlen)113);
-#line 17821 ""
- i__10 = lclow + 33;
-#line 17821 ""
- addstr_(ch__13, &i__10, soutq, &lsout, lclow + 33, (
- ftnlen)80);
-#line 17824 ""
- comhead_1.lower = FALSE_;
-#line 17825 ""
- }
-#line 17826 ""
- tnow = tstart[ib];
-#line 17827 ""
- nofirst = TRUE_;
-
-/* Done setting up voice ivx for start of block ib. Loop over notes in voice. */
-
-#line 17831 ""
- i__10 = istop[ib];
-#line 17831 ""
- for (all_1.jn = istart[ib]; all_1.jn <= i__10; ++all_1.jn) {
-#line 17832 ""
- if (all_1.ivxo[all_1.jn - 1] != commvl_1.ivx) {
-#line 17832 ""
- goto L10;
-#line 17832 ""
- }
-#line 17833 ""
- ip = all_1.ipo[all_1.jn - 1];
-
-/* May have problem with not initializing islhgt, so do it here */
-
-#line 17837 ""
- islhgt = 0;
-
-#line 17839 ""
- if (nofirst) {
-#line 17840 ""
- comoct_1.noctup = 0;
-#line 17841 ""
- if (ncmid_(&all_1.iv, &ip) == 23) {
-#line 17841 ""
- comoct_1.noctup = -2;
-#line 17841 ""
- }
-#line 17842 ""
- nofirst = FALSE_;
-#line 17843 ""
- }
-
-/* Check for internal floating figure (before last note of group). */
-
-#line 17847 ""
-L12:
-#line 17847 ""
- if (all_1.figbass) {
-#line 17848 ""
- if (commvl_1.ivx == 1 || commvl_1.ivx ==
- comfig_1.ivxfig2) {
-#line 17849 ""
- ivf = 1;
-#line 17850 ""
- if (commvl_1.ivx > 1) {
-#line 17850 ""
- ivf = 2;
-#line 17850 ""
- }
-#line 17851 ""
- 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 17856 ""
- offnsk = (tnow - comfig_1.itfig[ivf + (ifig[
- ivf - 1] << 1) - 3]) / comnsp_2.space[
- ib - 1];
-#line 17857 ""
- putfig_(&ivf, &ifig[ivf - 1], &offnsk, &
- all_1.figchk[ivf - 1], soutq, &lsout,
- (ftnlen)80);
-#line 17859 ""
- goto L12;
-#line 17860 ""
- }
-#line 17861 ""
- }
-#line 17862 ""
- }
-
-/* Put in \sk if needed */
-
-#line 17866 ""
- if (all_1.to[all_1.jn - 1] > tnow + comtol_1.tol) {
-/* Writing concatenation */
-#line 17867 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17867 ""
- i__4[1] = 2, a__2[1] = "sk";
-#line 17867 ""
- s_cat(ch__14, a__2, i__4, &c__2, (ftnlen)3);
-#line 17867 ""
- addstr_(ch__14, &c__3, soutq, &lsout, (ftnlen)3, (
- ftnlen)80);
-#line 17868 ""
- tnow += comnsp_2.space[ib - 1];
-#line 17869 ""
- goto L12;
-#line 17870 ""
- }
-
-/* Check for user-defined shifts */
-
-#line 17874 ""
- 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 17874 ""
- putshft_(&commvl_1.ivx, &c_true, soutq, &lsout, (
- ftnlen)80);
-#line 17874 ""
- }
-#line 17876 ""
-L21:
-#line 17876 ""
- if (iaskb[commvl_1.ivx - 1] <= comas1_1.naskb && tnow >
- comas1_1.task[iaskb[commvl_1.ivx - 1] - 1] -
- comtol_1.tol) {
-#line 17878 ""
- if (comas1_1.task[iaskb[commvl_1.ivx - 1] - 1] >
- tstart[ib] - comtol_1.tol) {
-
-/* Insert placeholder for accidental skip */
-
-/* Writing concatenation */
-#line 17882 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17882 ""
- i__4[1] = 8, a__2[1] = "ask ";
-#line 17882 ""
- s_cat(ch__15, a__2, i__4, &c__2, (ftnlen)9);
-#line 17882 ""
- addstr_(ch__15, &c__9, soutq, &lsout, (ftnlen)9, (
- ftnlen)80);
-#line 17883 ""
- ++comas2_1.nasksys;
-#line 17884 ""
- comas2_1.wasksys[comas2_1.nasksys - 1] =
- comas1_1.wask[iaskb[commvl_1.ivx - 1] - 1]
- ;
-#line 17885 ""
- if (comas1_1.wask[iaskb[commvl_1.ivx - 1] - 1] >
- 0.f) {
-#line 17886 ""
- comas2_1.elasksys[comas2_1.nasksys - 1] =
- comas1_1.elask[iaskb[commvl_1.ivx - 1]
- - 1];
-#line 17887 ""
- } else {
-
-/* This is a signal to permit negative ask's. Should really have elask>=0. */
-
-#line 17891 ""
- comas2_1.elasksys[comas2_1.nasksys - 1] =
- -comas1_1.elask[iaskb[commvl_1.ivx -
- 1] - 1];
-#line 17892 ""
- }
-#line 17893 ""
- }
-
-/* May have skipped some task's in earlier blocks (due to void voice) */
-
-#line 17897 ""
- ++iaskb[commvl_1.ivx - 1];
-#line 17898 ""
- goto L21;
-#line 17899 ""
- }
-#line 17900 ""
- if (all_1.figbass) {
-#line 17901 ""
- if (commvl_1.ivx == 1 || commvl_1.ivx ==
- comfig_1.ivxfig2) {
-#line 17902 ""
- ivf = 1;
-#line 17903 ""
- if (commvl_1.ivx > 1) {
-#line 17903 ""
- ivf = 2;
-#line 17903 ""
- }
-#line 17904 ""
- 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 17909 ""
- putfig_(&ivf, &ifig[ivf - 1], &c_b1008, &
- all_1.figchk[ivf - 1], soutq, &lsout,
- (ftnlen)80);
-#line 17910 ""
- }
-#line 17911 ""
- }
-#line 17912 ""
- }
-
-/* Check for new clef here. */
-
-#line 17916 ""
- if (isclef && bit_test(all_1.islur[commvl_1.ivx + ip * 24
- - 25],11)) {
-#line 17917 ""
- if (ptclef[all_1.iv - 1] > 0.f) {
-/* Writing concatenation */
-#line 17918 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17918 ""
- i__4[1] = 5, a__2[1] = "off{-";
-#line 17918 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 17919 ""
- if (ptclef[all_1.iv - 1] < 9.95f) {
-#line 17920 ""
- s_wsfi(&io___1103);
-#line 17920 ""
- do_fio(&c__1, (char *)&ptclef[all_1.iv - 1], (
- ftnlen)sizeof(real));
-#line 17920 ""
- e_wsfi();
-#line 17921 ""
- lnote = 9;
-#line 17922 ""
- } else {
-#line 17923 ""
- s_wsfi(&io___1104);
-#line 17923 ""
- do_fio(&c__1, (char *)&ptclef[all_1.iv - 1], (
- ftnlen)sizeof(real));
-#line 17923 ""
- e_wsfi();
-#line 17924 ""
- lnote = 10;
-#line 17925 ""
- }
-/* Writing concatenation */
-#line 17926 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 17926 ""
- i__4[1] = 3, a__2[1] = "pt}";
-#line 17926 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 17927 ""
- lnote += 3;
-#line 17928 ""
- addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79,
- (ftnlen)80);
-#line 17929 ""
- }
-#line 17930 ""
- 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 17934 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],2)
- ) {
-/* Writing concatenation */
-#line 17934 ""
- i__6[0] = 8, a__4[0] = notexq;
-#line 17934 ""
- i__6[1] = 1, a__4[1] = "8";
-#line 17934 ""
- i__6[2] = 1, a__4[2] = notexq + 9;
-#line 17934 ""
- s_cat(notexq, a__4, i__6, &c__3, (ftnlen)79);
-#line 17934 ""
- }
-#line 17936 ""
- addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, (
- ftnlen)80);
-#line 17937 ""
- if (ptclef[all_1.iv - 1] > 0.f) {
-/* Writing concatenation */
-#line 17938 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 17938 ""
- i__4[1] = 4, a__2[1] = "off{";
-#line 17938 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 17939 ""
- if (ptclef[all_1.iv - 1] < 9.95f) {
-#line 17940 ""
- s_wsfi(&io___1106);
-#line 17940 ""
- do_fio(&c__1, (char *)&ptclef[all_1.iv - 1], (
- ftnlen)sizeof(real));
-#line 17940 ""
- e_wsfi();
-#line 17941 ""
- lnote = 8;
-#line 17942 ""
- } else {
-#line 17943 ""
- s_wsfi(&io___1107);
-#line 17943 ""
- do_fio(&c__1, (char *)&ptclef[all_1.iv - 1], (
- ftnlen)sizeof(real));
-#line 17943 ""
- e_wsfi();
-#line 17944 ""
- lnote = 9;
-#line 17945 ""
- }
-/* Writing concatenation */
-#line 17946 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 17946 ""
- i__4[1] = 3, a__2[1] = "pt}";
-#line 17946 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 17947 ""
- lnote += 3;
-#line 17948 ""
- addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79,
- (ftnlen)80);
-#line 17949 ""
- }
-#line 17950 ""
- }
-
-/* Checking for literal TeX string BEFORE starting beams!! */
-
-#line 17954 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],16))
- {
-#line 17955 ""
- i__12 = comgrace_1.nlit;
-#line 17955 ""
- for (il = 1; il <= i__12; ++il) {
-#line 17956 ""
- if (comgrace_1.iplit[il - 1] == ip &&
- comgrace_1.ivlit[il - 1] == commvl_1.ivx)
- {
-#line 17956 ""
- goto L125;
-#line 17956 ""
- }
-#line 17957 ""
-/* L124: */
-#line 17957 ""
- }
-#line 17958 ""
- s_wsle(&io___1109);
-#line 17958 ""
- do_lio(&c__9, &c__1, "Problem finding index for lite"\
- "ral string", (ftnlen)40);
-#line 17958 ""
- e_wsle();
-#line 17959 ""
- stop1_();
-#line 17960 ""
-L125:
-
-/* Write a type 1 tex string. */
-
-#line 17964 ""
- if (comgrace_1.lenlit[il - 1] < 71) {
-
-/* Add normally */
-
-#line 17968 ""
- addstr_(comgrace_1.litq + (il - 1 << 7), &
- comgrace_1.lenlit[il - 1], soutq, &lsout,
- (ftnlen)128, (ftnlen)80);
-#line 17969 ""
- } else {
-
-/* Longer than 71. Write souq, Write string, start new soutq. */
-
-#line 17973 ""
- if (comlast_1.islast) {
-#line 17973 ""
- s_wsfe(&io___1110);
-/* Writing concatenation */
-#line 17973 ""
- i__4[0] = lsout, a__2[0] = soutq;
-#line 17973 ""
- i__4[1] = 1, a__2[1] = "%";
-#line 17973 ""
- s_cat(ch__12, a__2, i__4, &c__2, (ftnlen)81);
-#line 17973 ""
- do_fio(&c__1, ch__12, lsout + 1);
-#line 17973 ""
- e_wsfe();
-#line 17973 ""
- }
-#line 17974 ""
- if (comlast_1.islast) {
-#line 17974 ""
- s_wsfe(&io___1111);
-/* Writing concatenation */
-#line 17974 ""
- i__4[0] = comgrace_1.lenlit[il - 1], a__2[0] =
- comgrace_1.litq + (il - 1 << 7);
-#line 17974 ""
- i__4[1] = 1, a__2[1] = "%";
-#line 17974 ""
- s_cat(ch__16, a__2, i__4, &c__2, (ftnlen)129);
-#line 17974 ""
- do_fio(&c__1, ch__16, comgrace_1.lenlit[il -
- 1] + 1);
-#line 17974 ""
- e_wsfe();
-#line 17974 ""
- }
-#line 17975 ""
- lsout = 0;
-#line 17976 ""
- }
-#line 17977 ""
- }
-
-/* Arpeggio on a main (non-chordal) note? */
-
-#line 17981 ""
- 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 17983 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 17983 ""
- putarp_(&tnow, &commvl_1.ivx, &ip, &all_1.nolev[
- commvl_1.ivx + ip * 24 - 25], &i__12, soutq, &
- lsout, (ftnlen)80);
-#line 17985 ""
- }
-
-/* See if a beam starts here */
-
-#line 17989 ""
- 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 17992 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 -
- 25],24)) {
-
-/* Not a jump start */
-
-#line 17996 ""
- 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 17996 ""
- 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,
- &all_1.nv, &all_1.ibar, &tnow, &
- comtol_1.tol, all_1.nodur, &c__2,
- comkbdrests_1.levtopr,
- comkbdrests_1.levbotr, all_1.mult,
- all_1.ipl);
-#line 17996 ""
- }
-#line 18002 ""
- beamstrt_(notexq, &lnote, nornb, ihornb,
- comnsp_2.space, &squez[1], &ib, (ftnlen)
- 79);
-
-/* Shift beam start if notehead was shifted */
-
-#line 18006 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 -
- 25],8)) {
-/* Writing concatenation */
-#line 18007 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18007 ""
- i__4[1] = 5, a__2[1] = "loff{";
-#line 18007 ""
- s_cat(ch__17, a__2, i__4, &c__2, (ftnlen)6);
-#line 18007 ""
- addstr_(ch__17, &c__6, soutq, &lsout, (ftnlen)
- 6, (ftnlen)80);
-#line 18008 ""
- } else if (bit_test(all_1.ipl[commvl_1.ivx + ip *
- 24 - 25],9)) {
-/* Writing concatenation */
-#line 18009 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18009 ""
- i__4[1] = 5, a__2[1] = "roff{";
-#line 18009 ""
- s_cat(ch__17, a__2, i__4, &c__2, (ftnlen)6);
-#line 18009 ""
- addstr_(ch__17, &c__6, soutq, &lsout, (ftnlen)
- 6, (ftnlen)80);
-#line 18010 ""
- }
-#line 18011 ""
- if (lnote > 0) {
-#line 18011 ""
- addstr_(notexq, &lnote, soutq, &lsout, (
- ftnlen)79, (ftnlen)80);
-#line 18011 ""
- }
-#line 18012 ""
- 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 18012 ""
- addstr_("}", &c__1, soutq, &lsout, (ftnlen)1,
- (ftnlen)80);
-#line 18012 ""
- }
-#line 18014 ""
- } 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 18019 ""
- combjmp_1.ivbj2 = commvl_1.ivx;
-
-/* Check for xtup since we bypassed beamstrt wherein vxtup is normally set */
-
-#line 18023 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 -
- 25],28) && strtmid_1.ixrest[commvl_1.ivx
- - 1] != 2) {
-#line 18023 ""
- comxtup_1.vxtup[commvl_1.ivx - 1] = TRUE_;
-#line 18023 ""
- }
-
-/* 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 18030 ""
- comdraw_1.drawbm[commvl_1.ivx - 1] = TRUE_;
-#line 18031 ""
- }
-#line 18032 ""
- if (strtmid_1.ixrest[commvl_1.ivx - 1] == 0) {
-#line 18033 ""
- all_1.beamon[commvl_1.ivx - 1] = TRUE_;
-#line 18034 ""
- bspend = TRUE_;
-#line 18035 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24
- - 25],24)) {
-#line 18035 ""
- bspend = TRUE_;
-#line 18035 ""
- }
-#line 18036 ""
- }
-#line 18037 ""
- }
-
-/* Setup for chords and possible slurs in chords */
-
-#line 18041 ""
- 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 18047 ""
- if (all_1.beamon[commvl_1.ivx - 1]) {
-#line 18048 ""
- 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 + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25), &c_true, &
- icashft, (ftnlen)1);
-#line 18051 ""
- } else {
-#line 18052 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18052 ""
- 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 18052 ""
- 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 18056 ""
- }
-#line 18057 ""
- }
-
-/* Is there slur or grace activity? */
-
-#line 18061 ""
- isgrace = bit_test(all_1.islur[commvl_1.ivx + ip * 24 -
- 25],4);
-#line 18062 ""
- if (ip > 1) {
-#line 18062 ""
- isgrace = isgrace || bit_test(all_1.ipl[commvl_1.ivx
- + (ip - 1) * 24 - 25],31);
-#line 18062 ""
- }
-
-/* isgrace if not 1st note in bar and previous note has Way-after grace. */
-
-#line 18066 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],0)
- || isgrace) {
-#line 18067 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],
- 0)) {
-#line 18068 ""
- if (comslur_1.fontslur) {
-
-/* Call routine for non-postscript slurs */
-
-#line 18072 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18072 ""
- doslur_(&all_1.nolev[commvl_1.ivx + ip * 24 -
- 25], all_1.isdat1, all_1.isdat2,
- all_1.isdat3, &all_1.nsdat, &ip, &
- all_1.iv, &kv, &all_1.nv, &
- all_1.beamon[commvl_1.ivx - 1], &
- i__12, soutq, &lsout, all_1.ulq + (
- commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25), &
- all_1.islur[commvl_1.ivx + ip * 24 -
- 25], &all_1.ipl[commvl_1.ivx + ip *
- 24 - 25], &all_1.iornq[commvl_1.ivx +
- ip * 24 - 1], &islhgt, &all_1.tnote[
- comipl2_1.ipl2[commvl_1.ivx + ip * 24
- - 25] - 1], &all_1.nacc[commvl_1.ivx
- + ip * 24 - 25], (ftnlen)80, (ftnlen)
- 1);
-#line 18077 ""
- } else {
-
-/* Postscript slurs */
-
-#line 18081 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18081 ""
- dopsslur_(&all_1.nolev[commvl_1.ivx + ip * 24
- - 25], all_1.isdat1, all_1.isdat2,
- all_1.isdat3, all_1.isdat4, &
- all_1.nsdat, &ip, &all_1.iv, &kv, &
- all_1.nv, &all_1.beamon[commvl_1.ivx
- - 1], &i__12, soutq, &lsout,
- all_1.ulq + (commvl_1.ivx +
- all_1.ibmcnt[commvl_1.ivx - 1] * 24 -
- 25), &all_1.islur[commvl_1.ivx + ip *
- 24 - 25], &all_1.ipl[commvl_1.ivx +
- ip * 24 - 25], &all_1.iornq[
- commvl_1.ivx + ip * 24 - 1], &islhgt,
- &all_1.tnote[comipl2_1.ipl2[
- commvl_1.ivx + ip * 24 - 25] - 1], &
- all_1.nacc[commvl_1.ivx + ip * 24 -
- 25], (ftnlen)80, (ftnlen)1);
-#line 18087 ""
- }
-#line 18088 ""
- }
-#line 18089 ""
- if (isgrace) {
-
-/* Grace note. */
-
-#line 18093 ""
- iphold = ip;
-#line 18094 ""
- isgrace = FALSE_;
-#line 18095 ""
- if (ip > 1) {
-#line 18095 ""
- isgrace = bit_test(all_1.ipl[commvl_1.ivx + (
- ip - 1) * 24 - 25],31);
-#line 18095 ""
- }
-#line 18096 ""
- if (isgrace) {
-#line 18096 ""
- --iphold;
-#line 18096 ""
- }
-#line 18097 ""
- isgrace = isgrace || ! bit_test(all_1.ipl[
- commvl_1.ivx + ip * 24 - 25],31) && !
- bit_test(all_1.ipl[commvl_1.ivx + ip * 24
- - 25],29);
-
-/* 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 18103 ""
- if (isgrace) {
-#line 18104 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18104 ""
- i__13 = ncmid_(&all_1.iv, &ip);
-#line 18104 ""
- dograce_(&commvl_1.ivx, &iphold, ptgr, soutq,
- &lsout, &i__12, &all_1.nacc[
- commvl_1.ivx + ip * 24 - 25], &ig, &
- all_1.ipl[commvl_1.ivx + iphold * 24
- - 25], &c_false, &all_1.beamon[
- commvl_1.ivx - 1], &all_1.nolev[
- commvl_1.ivx + ip * 24 - 25], &i__13,
- &all_1.islur[commvl_1.ivx + ip * 24 -
- 25], &commvl_1.nvmx[all_1.iv - 1], &
- all_1.nv, &all_1.ibmcnt[commvl_1.ivx
- - 1], &all_1.tnote[comipl2_1.ipl2[
- commvl_1.ivx + ip * 24 - 25] - 1],
- all_1.ulq, &cominsttrans_1.instno[
- all_1.iv - 1], (ftnlen)80, (ftnlen)1);
-/* 130324 */
-/* * tnote(ipl2(ivx,ip)),ulq) */
-#line 18111 ""
- if (comgrace_1.slurg[ig - 1]) {
-
-/* Terminate slur started in dograce. Get direction of main note stem */
-
-#line 18115 ""
- if (! all_1.beamon[commvl_1.ivx - 1]) {
-
-/* Separate note. Get stem direction. */
-
-#line 18119 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18119 ""
- 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 18119 ""
- stemup = *(unsigned char *)&ch__6[0]
- == 'u';
-#line 18121 ""
- } else {
-
-/* In a beam */
-
-#line 18125 ""
- stemup = *(unsigned char *)&all_1.ulq[
- commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25]
- == 'u';
-#line 18126 ""
- }
-
-/* Stop the shift if whole note */
-
-#line 18130 ""
- stemup = stemup || all_1.tnote[
- comipl2_1.ipl2[commvl_1.ivx + ip *
- 24 - 25] - 1] > 63.f;
-#line 18132 ""
- L__1 = ! comgrace_1.upg[ig - 1];
-#line 18132 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18132 ""
- 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 18134 ""
- }
-#line 18135 ""
- }
-#line 18136 ""
- }
-#line 18137 ""
- 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 18142 ""
- i__12 = 16777215 - comslur_1.listslur;
-#line 18142 ""
- comslur_1.ndxslur = log2_(&i__12);
-
-/* Get note name */
-
-#line 18146 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18146 ""
- notefq_(noteq, &lnoten, &all_1.nolev[commvl_1.ivx
- + ip * 24 - 25], &i__12, (ftnlen)8);
-
-/* Get slur direction */
-
-#line 18150 ""
- *(unsigned char *)slurudq = 'u';
-#line 18151 ""
- if (! all_1.beamon[commvl_1.ivx - 1]) {
-#line 18152 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18152 ""
- 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 18152 ""
- if (*(unsigned char *)&ch__6[0] == 'u') {
-#line 18152 ""
- *(unsigned char *)slurudq = 'd';
-#line 18152 ""
- }
-#line 18154 ""
- } else {
-#line 18155 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx
- + all_1.ibmcnt[commvl_1.ivx - 1] * 24
- - 25] == 'u') {
-#line 18155 ""
- *(unsigned char *)slurudq = 'd';
-#line 18155 ""
- }
-#line 18156 ""
- }
-
-/* c Replace ndxslur by 11-ndxslur when printing only. */
-/* Replace ndxslur by 23-ndxslur when printing only. */
-
-/* if (11-ndxslur .lt. 10) then */
-#line 18162 ""
- if (23 - comslur_1.ndxslur < 10) {
-/* notexq = sq//'islur'//slurudq//chax(59-ndxslur) */
-/* Writing concatenation */
-#line 18164 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 18164 ""
- i__5[1] = 5, a__3[1] = "islur";
-#line 18164 ""
- i__5[2] = 1, a__3[2] = slurudq;
-#line 18164 ""
- i__12 = 71 - comslur_1.ndxslur;
-#line 18164 ""
- chax_(ch__6, (ftnlen)1, &i__12);
-#line 18164 ""
- i__5[3] = 1, a__3[3] = ch__6;
-#line 18164 ""
- i__5[4] = lnoten, a__3[4] = noteq;
-#line 18164 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79);
-#line 18166 ""
- i__12 = lnoten + 8;
-#line 18166 ""
- addstr_(notexq, &i__12, soutq, &lsout, (
- ftnlen)79, (ftnlen)80);
-#line 18167 ""
- } else if (23 - comslur_1.ndxslur < 20) {
-/* Writing concatenation */
-#line 18168 ""
- i__14[0] = 1, a__8[0] = all_1.sq;
-#line 18168 ""
- i__14[1] = 5, a__8[1] = "islur";
-#line 18168 ""
- i__14[2] = 1, a__8[2] = slurudq;
-#line 18168 ""
- i__14[3] = 2, a__8[3] = "{1";
-#line 18168 ""
- i__12 = 61 - comslur_1.ndxslur;
-#line 18168 ""
- chax_(ch__6, (ftnlen)1, &i__12);
-#line 18168 ""
- i__14[4] = 1, a__8[4] = ch__6;
-#line 18168 ""
- i__14[5] = 1, a__8[5] = "}";
-#line 18168 ""
- i__14[6] = lnoten, a__8[6] = noteq;
-#line 18168 ""
- s_cat(notexq, a__8, i__14, &c__7, (ftnlen)79);
-#line 18170 ""
- i__12 = lnoten + 11;
-#line 18170 ""
- addstr_(notexq, &i__12, soutq, &lsout, (
- ftnlen)79, (ftnlen)80);
-#line 18171 ""
- } else {
-/* Writing concatenation */
-#line 18172 ""
- i__14[0] = 1, a__8[0] = all_1.sq;
-#line 18172 ""
- i__14[1] = 5, a__8[1] = "islur";
-#line 18172 ""
- i__14[2] = 1, a__8[2] = slurudq;
-#line 18172 ""
- i__14[3] = 2, a__8[3] = "{2";
-#line 18172 ""
- i__12 = 51 - comslur_1.ndxslur;
-#line 18172 ""
- chax_(ch__6, (ftnlen)1, &i__12);
-#line 18172 ""
- i__14[4] = 1, a__8[4] = ch__6;
-#line 18172 ""
- i__14[5] = 1, a__8[5] = "}";
-#line 18172 ""
- i__14[6] = lnoten, a__8[6] = noteq;
-#line 18172 ""
- s_cat(notexq, a__8, i__14, &c__7, (ftnlen)79);
-#line 18174 ""
- i__12 = lnoten + 11;
-#line 18174 ""
- addstr_(notexq, &i__12, soutq, &lsout, (
- ftnlen)79, (ftnlen)80);
-#line 18175 ""
- }
-/* call setbits(ipl(ivx,ip),4,23,ndxslur) */
-#line 18177 ""
- setbits_(&all_1.ipl[commvl_1.ivx + ip * 24 - 25],
- &c__5, &c__23, &comslur_1.ndxslur);
-#line 18178 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 -
- 25],31)) {
-#line 18178 ""
- comslur_1.listslur = bit_set(
- comslur_1.listslur,comslur_1.ndxslur);
-#line 18178 ""
- }
-
-/* Starting slur on W-grace on THIS note. Record ndxslur. */
-
-#line 18183 ""
- }
-#line 18184 ""
- }
-
-/* Process dynamic marks */
-
-#line 18188 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],26))
- {
-#line 18189 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18189 ""
- L__1 = all_1.nodur[commvl_1.ivx + ip * 24 - 25] >= 64;
-#line 18189 ""
- 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[
- commvl_1.ivx + ip * 24 - 25], &all_1.irest[
- commvl_1.ivx + ip * 24 - 25], &commvl_1.nvmx[
- all_1.iv - 1], &all_1.nv, &all_1.beamon[
- 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 18193 ""
- }
-
-/* Check for chord notes. Moved up from below, 10/27/96 so chord orns done 1st. */
-
-#line 18197 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],10)) {
-
-/* Need a duration to set type of note head */
-
-/* Clumsy test, but vxtup is not set until main note is processed. */
-
-#line 18203 ""
- if (! (comxtup_1.vxtup[commvl_1.ivx - 1] || bit_test(
- all_1.irest[commvl_1.ivx + ip * 24 - 25],28)))
- {
-#line 18204 ""
- nodu = all_1.nodur[commvl_1.ivx + ip * 24 - 25];
-#line 18205 ""
- } else if (bit_test(all_1.irest[commvl_1.ivx + ip *
- 24 - 25],2) || ip > 1 && bit_test(all_1.irest[
- commvl_1.ivx + (ip - 1) * 24 - 25],2)) {
-
-/* In a 2-note tremolo */
-
-#line 18210 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 -
- 25],2)) {
-
-/* First note of tremolo, duration is on next note */
-
-#line 18214 ""
- nodu = all_1.nodur[commvl_1.ivx + (ip + 1) *
- 24 - 25];
-#line 18215 ""
- } else {
-#line 18216 ""
- nodu = all_1.nodur[commvl_1.ivx + ip * 24 -
- 25];
-#line 18217 ""
- }
-#line 18218 ""
- } else if ((all_1.mult[commvl_1.ivx + ip * 24 - 25] &
- 15) - 8 < 0) {
-#line 18219 ""
- nodu = 32;
-#line 18220 ""
- } else {
-#line 18221 ""
- nodu = 16;
-#line 18222 ""
- }
-#line 18223 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18223 ""
- L__1 = bit_test(all_1.nacc[commvl_1.ivx + ip * 24 -
- 25],27);
-#line 18223 ""
- 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
- + ip * 24 - 25], &commvl_1.nvmx[all_1.iv - 1],
- &all_1.nv, &all_1.beamon[commvl_1.ivx - 1], &
- all_1.nolev[commvl_1.ivx + ip * 24 - 25],
- ihornb, nornb, &all_1.stemlen, &L__1, &
- all_1.nacc[commvl_1.ivx + ip * 24 - 25],
- all_1.irest, (ftnlen)80, (ftnlen)1);
-#line 18228 ""
- }
-
-/* Now that chords are done, add stuff to midi file */
-
-#line 18232 ""
- if (commidi_1.ismidi) {
-#line 18232 ""
- i__12 = all_1.nolev[commvl_1.ivx + ip * 24 - 25] +
- commvel_1.miditran[cominsttrans_1.instno[
- all_1.iv - 1] - 1];
-#line 18232 ""
- i__13 = all_1.nacc[commvl_1.ivx + ip * 24 - 25] & 7;
-#line 18232 ""
- L__1 = bit_test(all_1.irest[commvl_1.ivx + ip * 24 -
- 25],0);
-#line 18232 ""
- 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 18232 ""
- }
-/* 130316 */
-
-/* Check for breath or caesura */
-
-#line 18241 ""
- if (bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],28))
- {
-#line 18242 ""
- putcb_(&commvl_1.ivx, &ip, notexq, &lnote, (ftnlen)79)
- ;
-#line 18243 ""
- addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, (
- ftnlen)80);
-#line 18244 ""
- }
-
-/* Check for main-note ornaments. ')' on dotted notes go in with note, not here. */
-/* Bits 0-13: (stmgx+Tupf._) ; 14: Down fermata, was F */
-/* 15: Trill w/o "tr", was U , 16-18 edit. accid., 19-21 TBD */
-
-/* isacc = iand(iornq(ivx,ip),4194287) .gt. 0 */
-/* isacc = iand(iornq(ivx,ip),541065199) .gt. 0 */
-#line 18252 ""
- isacc = (all_1.iornq[commvl_1.ivx + ip * 24 - 1] &
- 1614807023) > 0;
-
-/* isacc=.true. if any ornament except segno */
-
-#line 18256 ""
- 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 18260 ""
- i__12 = log2_(&all_1.nodur[commvl_1.ivx + ip * 24 -
- 25]);
-#line 18260 ""
- if (pow_ii(&c__2, &i__12) != all_1.nodur[commvl_1.ivx
- + ip * 24 - 25]) {
-#line 18261 ""
- if ((all_1.iornq[commvl_1.ivx + ip * 24 - 1] &
- 516079) == 0) {
-
-/* ). is the only non-segno ornament */
-
-#line 18265 ""
- isacc = FALSE_;
-#line 18266 ""
- } else {
-
-/* There are other ornaments in addition */
-
-#line 18270 ""
- rpndot = TRUE_;
-#line 18271 ""
- all_1.iornq[commvl_1.ivx + ip * 24 - 1] =
- bit_clear(all_1.iornq[commvl_1.ivx +
- ip * 24 - 1],13);
-#line 18272 ""
- }
-#line 18273 ""
- }
-#line 18274 ""
- }
-#line 18275 ""
- if (isacc && ! comcwrf_1.cwrferm[commvl_1.ivx - 1]) {
-
-/* Check for centered whole-bar rest with fermata (bits 10 or 14). */
-
-#line 18279 ""
- 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 18283 ""
- comcwrf_1.cwrferm[commvl_1.ivx - 1] = TRUE_;
-#line 18284 ""
- goto L30;
-#line 18285 ""
- }
-#line 18286 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18286 ""
- L__1 = bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25]
- ,10);
-#line 18286 ""
- 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], &
- all_1.nodur[commvl_1.ivx + ip * 24 - 25],
- nornb, all_1.ulq, &all_1.ibmcnt[commvl_1.ivx
- - 1], &commvl_1.ivx, &i__12, &all_1.islur[
- commvl_1.ivx + ip * 24 - 25], &commvl_1.nvmx[
- all_1.iv - 1], &all_1.nv, ihornb, &
- all_1.stemlen, notexq, &lnote, &ip, &islhgt, &
- all_1.beamon[commvl_1.ivx - 1], &L__1, (
- ftnlen)1, (ftnlen)79);
-#line 18291 ""
- addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, (
- ftnlen)80);
-#line 18292 ""
- }
-#line 18293 ""
- if (rpndot) {
-#line 18294 ""
- all_1.iornq[commvl_1.ivx + ip * 24 - 1] = bit_set(
- all_1.iornq[commvl_1.ivx + ip * 24 - 1],13);
-#line 18295 ""
- rpndot = FALSE_;
-#line 18296 ""
- }
-#line 18297 ""
-L30:
-
-/* Check for main note accidental */
-
-#line 18301 ""
- 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 18303 ""
- ihshft = igetbits_(&all_1.nacc[commvl_1.ivx + ip * 24
- - 25], &c__7, &c__10);
-#line 18304 ""
- if (ihshft != 0) {
-#line 18304 ""
- ihshft += -107;
-#line 18304 ""
- }
-#line 18305 ""
- 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 18305 ""
- ihshft += -20;
-#line 18305 ""
- }
-
-/* Not a chord, and left-shifted main note, so left-shift accid */
-
-#line 18310 ""
- i__12 = igetbits_(&all_1.nacc[commvl_1.ivx + ip * 24
- - 25], &c__6, &c__4);
-#line 18310 ""
- i__13 = ncmid_(&all_1.iv, &ip);
-#line 18310 ""
- L__1 = bit_test(all_1.irest[commvl_1.ivx + ip * 24 -
- 25],31);
-#line 18310 ""
- 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 18313 ""
- addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, (
- ftnlen)80);
-#line 18314 ""
- }
-
-/* Lower dot for lower-voice notes. Conditions are: */
-/* 1. Dotted time value */
-/* 2. Lower voice of two */
-/* 3. Note is on a line */
-/* 4. Not a rest */
-/* . 5. Flag (lowdot) is set to true */
-/* 6. Not in an xtuplet */
-
-#line 18324 ""
- 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 18326 ""
- i__12 = log2_(&all_1.nodur[commvl_1.ivx + ip * 24 -
- 25]);
-#line 18326 ""
- 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 18329 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 -
- 25],19)) {
-
-/* Note already in movdot list. Drop by 2. */
-
-#line 18333 ""
- comcc_1.updot[commvl_1.ivx + (comcc_1.ndotmv[
- commvl_1.ivx - 1] + 1) * 24 - 25] +=
- -2.f;
-#line 18335 ""
- } else {
-
-/* Not in list so just move it right now */
-
-#line 18339 ""
- i__12 = igetbits_(&all_1.islur[commvl_1.ivx +
- ip * 24 - 25], &c__1, &c__3);
-#line 18339 ""
- dotmov_(&c_b1007, &c_b1008, soutq, &lsout, &
- i__12, (ftnlen)80);
-#line 18341 ""
- }
-#line 18342 ""
- }
-#line 18343 ""
- }
-
-/* Check for dotted main notes with moved dots. Chord notes done elsewhere. */
-/* Added check rules out special chordal 2nds, but later must check */
-/* substituted chord note for dot shift that now applies to main note. */
-
-#line 18349 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],19))
- {
-#line 18350 ""
- ++comcc_1.ndotmv[commvl_1.ivx - 1];
-#line 18351 ""
- i__12 = igetbits_(&all_1.islur[commvl_1.ivx + ip * 24
- - 25], &c__1, &c__3);
-#line 18351 ""
- 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 18353 ""
- }
-
-/* Stemlength changes */
-
-#line 18357 ""
- if (bit_test(all_1.mult[commvl_1.ivx + ip * 24 - 25],27))
- {
-#line 18358 ""
- dstemlen = igetbits_(&all_1.mult[commvl_1.ivx + ip *
- 24 - 25], &c__6, &c__10) * .5f - 4.f;
-/* Writing concatenation */
-#line 18359 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18359 ""
- i__4[1] = 12, a__2[1] = "stdstemfalse";
-#line 18359 ""
- s_cat(ch__18, a__2, i__4, &c__2, (ftnlen)13);
-#line 18359 ""
- addstr_(ch__18, &c__13, soutq, &lsout, (ftnlen)13, (
- ftnlen)80);
-#line 18360 ""
- stemshort = dstemlen * .667f + 4.66f;
-/* Writing concatenation */
-#line 18361 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18361 ""
- i__4[1] = 11, a__2[1] = "stemlength{";
-#line 18361 ""
- s_cat(ch__5, a__2, i__4, &c__2, (ftnlen)12);
-#line 18361 ""
- addstr_(ch__5, &c__12, soutq, &lsout, (ftnlen)12, (
- ftnlen)80);
-#line 18362 ""
- s_wsfi(&io___1119);
-#line 18362 ""
- do_fio(&c__1, (char *)&stemshort, (ftnlen)sizeof(real)
- );
-#line 18362 ""
- e_wsfi();
-/* Writing concatenation */
-#line 18363 ""
- i__4[0] = 4, a__2[0] = notexq;
-#line 18363 ""
- i__4[1] = 1, a__2[1] = "}";
-#line 18363 ""
- s_cat(ch__19, a__2, i__4, &c__2, (ftnlen)5);
-#line 18363 ""
- addstr_(ch__19, &c__5, soutq, &lsout, (ftnlen)5, (
- ftnlen)80);
-#line 18364 ""
- } else if (ip > 1) {
-#line 18365 ""
- if (bit_test(all_1.mult[commvl_1.ivx + (ip - 1) * 24
- - 25],27)) {
-/* Writing concatenation */
-#line 18365 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18365 ""
- i__4[1] = 16, a__2[1] = "stemlength{4.66}";
-#line 18365 ""
- s_cat(ch__7, a__2, i__4, &c__2, (ftnlen)17);
-#line 18365 ""
- addstr_(ch__7, &c__17, soutq, &lsout, (ftnlen)17,
- (ftnlen)80);
-#line 18365 ""
- }
-
-/* Cancel shortening. Looks like it gets automatically restored if new inst. or */
-/* new line, so no need to worry about affecting other lines */
-
-#line 18371 ""
- }
-
-/* Zero out slur-height marker for raising ornaments */
-
-#line 18375 ""
- islhgt = 0;
-
-/* Now start with spacing notes. Is a beam start pending? */
-
-#line 18379 ""
- 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 18381 ""
- if (strtmid_1.ixrest[commvl_1.ivx - 1] == 4) {
-
-/* Special path for single note at end of otherwise beamed xtup */
-
-#line 18385 ""
- strtmid_1.ixrest[commvl_1.ivx - 1] = 0;
-#line 18386 ""
- } else {
-#line 18387 ""
- 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 18387 ""
- 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,
- &all_1.nv, &all_1.ibar, &tnow, &
- comtol_1.tol, all_1.nodur, &c__2,
- comkbdrests_1.levtopr,
- comkbdrests_1.levbotr, all_1.mult,
- all_1.ipl);
-#line 18387 ""
- }
-#line 18393 ""
- 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 18395 ""
- chax_(ch__6, (ftnlen)1, &c__92);
-#line 18395 ""
- i__4[0] = 1, a__2[0] = ch__6;
-#line 18395 ""
- i__4[1] = 2, a__2[1] = "sk";
-#line 18395 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 18396 ""
- lnote = 3;
-#line 18397 ""
- } else {
-#line 18398 ""
- beamn1_(notexq, &lnote, (ftnlen)79);
-/* if (isbjmp .and. */
-#line 18400 ""
- if (combjmp_1.isbjmp && combjmp_1.ivbj2 != 0
- && (all_1.mult[commvl_1.ivx + ip * 24
- - 25] & 15) - 8 > combjmp_1.multbj1) {
-
-/* Need to increase multiplicity at the beam jump */
-
-/* ibmcnt was increased by 1 at the end of first seg of jump beam!? */
-/* Try adding e.g. \nbbu1 if needed to increase multiplicity. Add */
-/* character in reverse order to start of notexq. */
-
-#line 18409 ""
- if (combjmp_1.ivbj1 < 9) {
-/* Writing concatenation */
-#line 18410 ""
- *(unsigned char *)&ch__6[0] =
- combjmp_1.ivbj1 + 48;
-#line 18410 ""
- i__4[0] = 1, a__2[0] = ch__6;
-#line 18410 ""
- i__4[1] = lnote, a__2[1] = notexq;
-#line 18410 ""
- s_cat(notexq, a__2, i__4, &c__2, (
- ftnlen)79);
-#line 18411 ""
- ++lnote;
-#line 18412 ""
- } else {
-/* Writing concatenation */
-#line 18413 ""
- i__9[0] = 2, a__6[0] = "{1";
-#line 18413 ""
- *(unsigned char *)&ch__6[0] =
- combjmp_1.ivbj1 + 38;
-#line 18413 ""
- i__9[1] = 1, a__6[1] = ch__6;
-#line 18413 ""
- i__9[2] = 1, a__6[2] = "}";
-#line 18413 ""
- i__9[3] = lnote, a__6[3] = notexq;
-#line 18413 ""
- s_cat(notexq, a__6, i__9, &c__4, (
- ftnlen)79);
-#line 18415 ""
- lnote += 4;
-#line 18416 ""
- }
-/* Writing concatenation */
-#line 18417 ""
- i__6[0] = 2, a__4[0] = "bb";
-#line 18417 ""
- i__6[1] = 1, a__4[1] = all_1.ulq + (
- combjmp_1.ivbj1 + (all_1.ibmcnt[
- combjmp_1.ivbj1 - 1] - 1) * 24 -
- 25);
-#line 18417 ""
- i__6[2] = lnote, a__4[2] = notexq;
-#line 18417 ""
- s_cat(notexq, a__4, i__6, &c__3, (ftnlen)
- 79);
-#line 18419 ""
- lnote += 3;
-#line 18420 ""
- if ((15 & all_1.mult[commvl_1.ivx + ip *
- 24 - 25]) - 8 == 3) {
-/* Writing concatenation */
-#line 18421 ""
- i__4[0] = 1, a__2[0] = "b";
-#line 18421 ""
- i__4[1] = lnote, a__2[1] = notexq;
-#line 18421 ""
- s_cat(notexq, a__2, i__4, &c__2, (
- ftnlen)79);
-#line 18422 ""
- ++lnote;
-#line 18423 ""
- }
-/* Writing concatenation */
-#line 18424 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 18424 ""
- i__6[1] = 1, a__4[1] = "n";
-#line 18424 ""
- i__6[2] = lnote, a__4[2] = notexq;
-#line 18424 ""
- s_cat(notexq, a__4, i__6, &c__3, (ftnlen)
- 79);
-#line 18425 ""
- lnote += 2;
-#line 18426 ""
- }
-#line 18427 ""
- }
-#line 18428 ""
- }
-#line 18429 ""
- bspend = FALSE_;
-
-/* Is a beam ending? */
-
-#line 18433 ""
- } 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))) {
-#line 18436 ""
- if (bspend) {
-
-/* Must be a single-note ending of a jump-beam */
-
-#line 18440 ""
- bspend = FALSE_;
-#line 18441 ""
- }
-#line 18442 ""
- beamend_(notexq, &lnote, (ftnlen)79);
-#line 18443 ""
- if (combjmp_1.isbjmp && commvl_1.ivx ==
- combjmp_1.ivbj1) {
-
-/* Jump beam segment is ending, check if multiplicity DECREASES */
-
-#line 18447 ""
- if (comnsp_2.space[ib] > comnsp_2.space[ib - 1]) {
-
-/* Decrease multiplicity 3-1, 3-2, or 2-1. Spaces are 2,4, or 8. */
-
-#line 18451 ""
- if (commvl_1.ivx < 10) {
-#line 18452 ""
- *(unsigned char *)&ch__6[0] =
- commvl_1.ivx + 48;
-#line 18452 ""
- s_copy(ivxq, ch__6, (ftnlen)4, (ftnlen)1);
-#line 18453 ""
- livx = 1;
-#line 18454 ""
- } else {
-/* Writing concatenation */
-#line 18455 ""
- i__6[0] = 2, a__4[0] = "{1";
-#line 18455 ""
- *(unsigned char *)&ch__6[0] =
- commvl_1.ivx - 10;
-#line 18455 ""
- i__6[1] = 1, a__4[1] = ch__6;
-#line 18455 ""
- i__6[2] = 1, a__4[2] = "}";
-#line 18455 ""
- s_cat(ivxq, a__4, i__6, &c__3, (ftnlen)4);
-#line 18456 ""
- livx = 4;
-#line 18457 ""
- }
-/* Changes to get staffcrossall.pmx to work. Not clear how. */
-/* if (nint(space(ib+1)-space(ib)) .eq. 6) then */
-#line 18460 ""
- if (comnsp_2.space[ib] == 8.f &&
- comnsp_2.space[ib - 1] == 2.f) {
-/* Writing concatenation */
-#line 18461 ""
- i__15[0] = 1, a__9[0] = all_1.sq;
-#line 18461 ""
- i__15[1] = 4, a__9[1] = "tbbb";
-#line 18461 ""
- i__15[2] = 1, a__9[2] = all_1.ulq + (
- commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25);
-#line 18461 ""
- i__15[3] = livx, a__9[3] = ivxq;
-#line 18461 ""
- i__15[4] = 1, a__9[4] = all_1.sq;
-#line 18461 ""
- i__15[5] = 3, a__9[5] = "tbb";
-#line 18461 ""
- i__15[6] = 1, a__9[6] = all_1.ulq + (
- commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25);
-#line 18461 ""
- i__15[7] = livx, a__9[7] = ivxq;
-#line 18461 ""
- i__15[8] = lnote, a__9[8] = notexq;
-#line 18461 ""
- s_cat(notexq, a__9, i__15, &c__9, (ftnlen)
- 79);
-#line 18464 ""
- lnote = lnote + 11 + (livx << 1);
-/* else if (nint(space(ib+1)-space(ib)) .eq. 4) then */
-#line 18466 ""
- } else if (comnsp_2.space[ib] == 8.f &&
- comnsp_2.space[ib - 1] == 4.f) {
-/* Writing concatenation */
-#line 18467 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 18467 ""
- i__5[1] = 3, a__3[1] = "tbb";
-#line 18467 ""
- i__5[2] = 1, a__3[2] = all_1.ulq + (
- commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25);
-#line 18467 ""
- i__5[3] = livx, a__3[3] = ivxq;
-#line 18467 ""
- i__5[4] = lnote, a__3[4] = notexq;
-#line 18467 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)
- 79);
-#line 18469 ""
- lnote = lnote + 5 + livx;
-/* else */
-#line 18471 ""
- } else if (comnsp_2.space[ib] == 4.f &&
- comnsp_2.space[ib - 1] == 2.f) {
-/* Writing concatenation */
-#line 18472 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 18472 ""
- i__5[1] = 4, a__3[1] = "tbbb";
-#line 18472 ""
- i__5[2] = 1, a__3[2] = all_1.ulq + (
- commvl_1.ivx + all_1.ibmcnt[
- commvl_1.ivx - 1] * 24 - 25);
-#line 18472 ""
- i__5[3] = livx, a__3[3] = ivxq;
-#line 18472 ""
- i__5[4] = lnote, a__3[4] = notexq;
-#line 18472 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)
- 79);
-#line 18474 ""
- lnote = lnote + 6 + livx;
-#line 18475 ""
- }
-#line 18476 ""
- }
-#line 18477 ""
- }
-#line 18478 ""
- if (! bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25]
- ,20)) {
-#line 18479 ""
- comxtup_1.vxtup[commvl_1.ivx - 1] = FALSE_;
-#line 18480 ""
- nornb[commvl_1.ivx - 1] = 0;
-#line 18481 ""
- ++all_1.ibmcnt[commvl_1.ivx - 1];
-#line 18482 ""
- all_1.beamon[commvl_1.ivx - 1] = FALSE_;
-#line 18483 ""
- }
-
-/* Or if we're in the middle of a beam */
-
-#line 18487 ""
- } else if (numbms[commvl_1.ivx] > 0 && all_1.beamon[
- commvl_1.ivx - 1]) {
-
-/* Added 130127 */
-
-#line 18491 ""
- 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 18491 ""
- 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, &
- all_1.nv, &all_1.ibar, &tnow, &
- comtol_1.tol, all_1.nodur, &c__2,
- comkbdrests_1.levtopr,
- comkbdrests_1.levbotr, all_1.mult,
- all_1.ipl);
-#line 18491 ""
- }
-#line 18497 ""
- beamid_(notexq, &lnote, (ftnlen)79);
-
-/* Or whole-bar rest */
-
-#line 18501 ""
- } 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 &&
- all_1.ibar == 1 && all_1.lenb0 > 0) && ! bit_test(
- all_1.irest[commvl_1.ivx + ip * 24 - 25],25) && !
- bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],
- 29)) {
-
-/* Rule out pickup bar, blank rests, non-centered. Remember islur b19=> rp */
-
-#line 18509 ""
- cwrest[commvl_1.ivx] = TRUE_;
-#line 18510 ""
- iscwr = TRUE_;
-#line 18511 ""
- notex_(cwrq + (commvl_1.ivx - 1) * 79, &lcwr[
- commvl_1.ivx - 1], (ftnlen)79);
-#line 18512 ""
- tnow += all_1.lenbar;
-#line 18513 ""
- goto L10;
-#line 18514 ""
- } else if (strtmid_1.ixrest[commvl_1.ivx - 1] == 0) {
-
-/* Before writing note or rest, check for keyboard rest height adjustment. */
-/* Conditions are 0. This is a non-blank rest */
-/* 1. kbdrests = .true. */
-/* 2. There are two voices on the staff */
-/* 3. No user-def height adjustments have been applied (nolev<50) */
-
-#line 18522 ""
- 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 18525 ""
- 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, &
- all_1.nv, &all_1.ibar, &tnow, &
- comtol_1.tol, all_1.nodur, &c__1,
- comkbdrests_1.levtopr,
- comkbdrests_1.levbotr, all_1.mult,
- all_1.ipl);
-#line 18528 ""
- }
-#line 18529 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],4)
- ) {
-
-/* Deal with single stem tremolo */
-/* Get up-downness, borrowed from notex */
-
-#line 18534 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18534 ""
- 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 18534 ""
- if (*(unsigned char *)&ch__6[0] == 'u') {
-#line 18536 ""
- *(unsigned char *)udq = 'u';
-#line 18537 ""
- } else {
-#line 18538 ""
- *(unsigned char *)udq = 'l';
-#line 18539 ""
- }
-#line 18540 ""
- multtrem = igetbits_(&all_1.ipl[commvl_1.ivx + ip
- * 24 - 25], &c__2, &c__5) + 1;
-#line 18541 ""
- if (all_1.nodur[commvl_1.ivx + ip * 24 - 25] < 64)
- {
-/* Writing concatenation */
-#line 18542 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18542 ""
- i__4[1] = 2, a__2[1] = "tr";
-#line 18542 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 18543 ""
- } else {
-/* Writing concatenation */
-#line 18544 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18544 ""
- i__4[1] = 2, a__2[1] = "Tr";
-#line 18544 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 18545 ""
- }
-#line 18546 ""
- lnote = 3;
-#line 18547 ""
- if (multtrem == 2) {
-/* Writing concatenation */
-#line 18548 ""
- i__4[0] = 3, a__2[0] = notexq;
-#line 18548 ""
- i__4[1] = 1, a__2[1] = "r";
-#line 18548 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 18549 ""
- lnote = 4;
-#line 18550 ""
- } else if (multtrem == 3) {
-/* Writing concatenation */
-#line 18551 ""
- i__4[0] = 3, a__2[0] = notexq;
-#line 18551 ""
- i__4[1] = 2, a__2[1] = "rr";
-#line 18551 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 18552 ""
- lnote = 5;
-#line 18553 ""
- }
-
-/* Get a numerical pitch argument */
-
-#line 18557 ""
- lineno = all_1.nolev[commvl_1.ivx + ip * 24 - 25]
- - ncmid_(&all_1.iv, &ip) + 4;
-#line 18558 ""
- if (lineno < 0 || lineno > 9) {
-#line 18559 ""
- s_wsfi(&io___1127);
-#line 18559 ""
- do_fio(&c__1, "{", (ftnlen)1);
-#line 18559 ""
- do_fio(&c__1, (char *)&lineno, (ftnlen)sizeof(
- integer));
-#line 18559 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 18559 ""
- e_wsfi();
-#line 18560 ""
- lnoten = 4;
-#line 18561 ""
- } else {
-#line 18562 ""
- *(unsigned char *)&ch__6[0] = lineno + 48;
-#line 18562 ""
- s_copy(noteq, ch__6, (ftnlen)8, (ftnlen)1);
-#line 18563 ""
- lnoten = 1;
-#line 18564 ""
- }
-/* Writing concatenation */
-#line 18565 ""
- i__9[0] = lnote, a__6[0] = notexq;
-#line 18565 ""
- i__9[1] = 1, a__6[1] = "m";
-#line 18565 ""
- i__9[2] = 1, a__6[2] = udq;
-#line 18565 ""
- i__9[3] = lnoten, a__6[3] = noteq;
-#line 18565 ""
- s_cat(notexq, a__6, i__9, &c__4, (ftnlen)79);
-#line 18566 ""
- lnote = lnote + 2 + lnoten;
-#line 18567 ""
- addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79,
- (ftnlen)80);
-#line 18568 ""
- }
-
-/* Get code for a separate note or rest */
-/* If nacc(ivx,ip)(30-31)=1 (dotted chordal 2nd including main note), */
-/* pitch will be shifted +/-1 inside notex. */
-
-#line 18574 ""
- notex_(notexq, &lnote, (ftnlen)79);
-#line 18575 ""
- }
-
-/* Right offset? This may cause trouble */
-
-#line 18579 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],8)) {
-/* Writing concatenation */
-#line 18580 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18580 ""
- i__4[1] = 5, a__2[1] = "loff{";
-#line 18580 ""
- s_cat(ch__17, a__2, i__4, &c__2, (ftnlen)6);
-#line 18580 ""
- addstr_(ch__17, &c__6, soutq, &lsout, (ftnlen)6, (
- ftnlen)80);
-#line 18581 ""
- } else if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25]
- ,9)) {
-/* Writing concatenation */
-#line 18582 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18582 ""
- i__4[1] = 5, a__2[1] = "roff{";
-#line 18582 ""
- s_cat(ch__17, a__2, i__4, &c__2, (ftnlen)6);
-#line 18582 ""
- addstr_(ch__17, &c__6, soutq, &lsout, (ftnlen)6, (
- ftnlen)80);
-#line 18583 ""
- }
-#line 18584 ""
- if (strtmid_1.ixrest[commvl_1.ivx - 1] == 0 && lnote > 0)
- {
-#line 18585 ""
- addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, (
- ftnlen)80);
-#line 18586 ""
- }
-#line 18587 ""
- 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 18587 ""
- addstr_("}", &c__1, soutq, &lsout, (ftnlen)1, (ftnlen)
- 80);
-#line 18587 ""
- }
-
-/* Terminate user-defined offsets. Fix format */
-
-#line 18592 ""
- 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 18592 ""
- putshft_(&commvl_1.ivx, &c_false, soutq, &lsout, (
- ftnlen)80);
-#line 18592 ""
- }
-
-/* Deal with After- and Way-after-graces. First, if end of bar, compute space */
-/* needed since it wasn't done during general ask-checks. If extra space is */
-/* 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 18600 ""
- 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 18602 ""
- i__12 = comgrace_1.ngrace;
-#line 18602 ""
- for (ig = 1; ig <= i__12; ++ig) {
-#line 18603 ""
- if (comgrace_1.ipg[ig - 1] == ip &&
- comgrace_1.ivg[ig - 1] == commvl_1.ivx) {
-#line 18603 ""
- goto L78;
-#line 18603 ""
- }
-#line 18604 ""
-/* L77: */
-#line 18604 ""
- }
-#line 18605 ""
- s_wsle(&io___1128);
-#line 18605 ""
- do_lio(&c__9, &c__1, "Problem finding grace index "\
- "at \"do 77\"", (ftnlen)38);
-#line 18605 ""
- e_wsle();
-#line 18606 ""
- stop1_();
-#line 18607 ""
-L78:
-
-/* Get elemskip to end of bar. WON'T WORK IF XTUPS !! */
-
-#line 18611 ""
- esk = 0.f;
-#line 18612 ""
- i__12 = comnsp_2.nb;
-#line 18612 ""
- for (iib = ib; iib <= i__12; ++iib) {
-#line 18613 ""
- if (iib == ib) {
-#line 18614 ""
- itleft = i_nint(&all_1.to[comipl2_1.ipl2[
- commvl_1.ivx + ip * 24 - 25] - 1]);
-#line 18615 ""
- } else {
-#line 18616 ""
- itleft = i_nint(&tstart[ib]);
-#line 18617 ""
- }
-#line 18618 ""
- if (iib < comnsp_2.nb) {
-#line 18619 ""
- itright = i_nint(&tstart[iib + 1]);
-#line 18620 ""
- } else {
-#line 18621 ""
- itright = all_1.lenbar;
-#line 18622 ""
- }
-#line 18623 ""
- esk += feon_(&comnsp_2.space[ib - 1]) * (itright
- - itleft) / comnsp_2.space[ib - 1];
-#line 18625 ""
-/* L40: */
-#line 18625 ""
- }
-#line 18626 ""
- ptsavail = comask_1.poenom * esk - comask_1.wheadpt;
-#line 18627 ""
- if (comgrace_1.nng[ig - 1] == 1) {
-#line 18628 ""
- wgr = spfacs_1.grafac;
-#line 18629 ""
- } else {
-#line 18630 ""
- wgr = comgrace_1.nng[ig - 1] * spfacs_1.emgfac;
-#line 18631 ""
- i__12 = comgrace_1.nng[ig - 1];
-#line 18631 ""
- for (ing = 1; ing <= i__12; ++ing) {
-#line 18632 ""
- if (comgrace_1.naccg[comgrace_1.ngstrt[ig - 1]
- - 1 + ing - 1] > 0) {
-#line 18632 ""
- wgr += spfacs_1.acgfac;
-#line 18632 ""
- }
-#line 18633 ""
-/* L41: */
-#line 18633 ""
- }
-#line 18634 ""
- }
-#line 18635 ""
- ptgr[ig - 1] = wgr * comask_1.wheadpt;
-#line 18636 ""
- ptsneed = (wgr + .5f) * comask_1.wheadpt;
-#line 18637 ""
- ptsndg[commvl_1.ivx - 1] = 0.f;
-#line 18638 ""
- if (ptsavail < ptsneed) {
-#line 18639 ""
- ptsndg[commvl_1.ivx - 1] = ptsneed;
-#line 18640 ""
- eskndg[commvl_1.ivx - 1] = esk;
-#line 18641 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 -
- 25],31)) {
-
-/* Convert GW to GA */
-
-#line 18645 ""
- 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 18646 ""
- }
-#line 18647 ""
- }
-#line 18648 ""
- }
-
-/* Check for GA */
-
-#line 18652 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],29)) {
-#line 18652 ""
- i__12 = ncmid_(&all_1.iv, &ip);
-#line 18652 ""
- 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_b1008, all_1.ulq, &
- cominsttrans_1.instno[all_1.iv - 1], (ftnlen)
- 80, (ftnlen)1);
-#line 18652 ""
- }
-/* 130324 */
-/* * .false.,0,0,0,0,0,0,0.,ulq) */
-
-/* Update running time */
-
-#line 18661 ""
- tnow += comnsp_2.space[ib - 1];
-#line 18662 ""
-L10:
-#line 18662 ""
- ;
-#line 18662 ""
- }
-
-/* Have finished last note in this voice and block */
-
-#line 18666 ""
- r__1 = all_1.to[istop[ib] - 1] + comnsp_2.space[ib - 1];
-#line 18666 ""
- itendb = i_nint(&r__1);
-#line 18667 ""
- if (all_1.figbass && commvl_1.ivx == 1 || commvl_1.ivx ==
- comfig_1.ivxfig2) {
-#line 18668 ""
- ivf = 1;
-#line 18669 ""
- if (commvl_1.ivx > 1) {
-#line 18669 ""
- ivf = 2;
-#line 18669 ""
- }
-#line 18670 ""
-L17:
-#line 18670 ""
- 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 18674 ""
- offnsk = (tnow - comfig_1.itfig[ivf + (ifig[ivf - 1]
- << 1) - 3]) / comnsp_2.space[ib - 1];
-#line 18675 ""
- putfig_(&ivf, &ifig[ivf - 1], &offnsk, &all_1.figchk[
- ivf - 1], soutq, &lsout, (ftnlen)80);
-#line 18676 ""
- goto L17;
-#line 18677 ""
- }
-#line 18678 ""
- }
-
-/* Check for flag, dot, or upstem on last note of bar. */
-
-#line 18682 ""
- if (ib == comnsp_2.nb) {
-#line 18683 ""
- ip = all_1.ipo[comipl2_1.ipl2[commvl_1.ivx + all_1.nn[
- commvl_1.ivx - 1] * 24 - 25] - 1];
-#line 18684 ""
- comnsp_2.flgndv[commvl_1.ivx - 1] = 0.f;
-#line 18685 ""
- 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 18686 ""
- if (comnsp_2.space[ib - 1] < 16.f - comtol_1.tol) {
-
-/* Note in last space, smaller than a quarter note. */
-
-#line 18690 ""
- i__10 = ncmid_(&all_1.iv, &ip);
-#line 18690 ""
- 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 18690 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24
- - 25],0) && *(unsigned char *)&ch__6[0] ==
- 'u' || isdotted_(all_1.nodur, &
- commvl_1.ivx, &ip)) {
-
-/* Upstem non-rest, or dotted */
-
-/* Computing MAX */
-#line 18697 ""
- i__10 = 1, i__12 = numbms[commvl_1.ivx];
-#line 18697 ""
- if (numbms[commvl_1.ivx] > 0 && ip ==
- all_1.ibm2[commvl_1.ivx + max(i__10,
- i__12) * 24 - 25] && ! isdotted_(
- all_1.nodur, &commvl_1.ivx, &ip)) {
-
-/* In beam and not dotted, so use smaller space */
-
-#line 18704 ""
- comnsp_2.flgndv[commvl_1.ivx - 1] =
- spfacs_1.upstmfac;
-#line 18705 ""
- } else {
-#line 18706 ""
- comnsp_2.flgndv[commvl_1.ivx - 1] =
- spfacs_1.flagfac;
-#line 18707 ""
- }
-#line 18708 ""
- }
-#line 18709 ""
- } else {
-
-/* Last space, nonflagged (no beam) only worry dot or up */
-
-#line 18713 ""
- if (isdotted_(all_1.nodur, &commvl_1.ivx, &ip)) {
-#line 18714 ""
- comnsp_2.flgndv[commvl_1.ivx - 1] =
- spfacs_1.flagfac;
-#line 18715 ""
- } else /* if(complicated condition) */ {
-#line 18715 ""
- i__10 = ncmid_(&all_1.iv, &ip);
-#line 18715 ""
- 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 18715 ""
- 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 18721 ""
- comnsp_2.flgndv[commvl_1.ivx - 1] =
- spfacs_1.upstmfac;
-#line 18722 ""
- }
-#line 18722 ""
- }
-#line 18723 ""
- }
-#line 18724 ""
- }
-
-/* Check for right-shifted chordal note */
-
-#line 18728 ""
- if (bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],20))
- {
-#line 18728 ""
- comnsp_2.flgndv[commvl_1.ivx - 1] = spfacs_1.rtshfac;
-#line 18728 ""
- }
-#line 18729 ""
- comnsp_2.flgndb = comnsp_2.flgndb || comnsp_2.flgndv[
- commvl_1.ivx - 1] > 0.f;
-#line 18730 ""
- if (commidi_1.ismidi) {
-
-/* For midi, set flags for accidentals on last note of bar. Assume they affect */
-/* first note of next bar whether or not tied. */
-/* Note has already been done, so next entry into addmidi is 1st in new bar. */
-/* First do main note, then chord notes */
-
-/* Gyrations needed to account for multi-bar tied full-bar notes? */
-/* 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 18741 ""
- if ((all_1.nacc[commvl_1.ivx + ip * 24 - 25] & 7) > 0)
- {
-
-/* Explicit accidental on last main note in bar */
-
-#line 18745 ""
- i__10 = comslm_1.naccbl[icm];
-#line 18745 ""
- for (kacc = 1; kacc <= i__10; ++kacc) {
-#line 18746 ""
- if (comslm_1.laccbl[icm + kacc * 25 - 25] ==
- all_1.nolev[commvl_1.ivx + ip * 24 -
- 25]) {
-#line 18746 ""
- goto L56;
-#line 18746 ""
- }
-#line 18747 ""
-/* L55: */
-#line 18747 ""
- }
-#line 18748 ""
- ++comslm_1.naccbl[icm];
-#line 18749 ""
- comslm_1.laccbl[icm + comslm_1.naccbl[icm] * 25 -
- 25] = all_1.nolev[commvl_1.ivx + ip * 24
- - 25];
-#line 18750 ""
- i__10 = all_1.nacc[commvl_1.ivx + ip * 24 - 25] &
- 7;
-#line 18750 ""
- comslm_1.jaccbl[icm + comslm_1.naccbl[icm] * 25 -
- 25] = iashft_(&i__10);
-#line 18751 ""
- }
-#line 18752 ""
-L56:
-#line 18753 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 - 25],
- 10) && commidi_1.crdacc) {
-#line 18754 ""
- i__10 = comtrill_1.icrd2;
-#line 18754 ""
- for (icrd = comtrill_1.icrd1; icrd <= i__10;
- ++icrd) {
-#line 18755 ""
- iacc = igetbits_(&comtrill_1.icrdat[icrd - 1],
- &c__3, &c__20);
-#line 18756 ""
- if (iacc > 0) {
-
-/* Explicit accidental on chord note at end of bar */
-
-#line 18760 ""
- nolevc = igetbits_(&comtrill_1.icrdat[
- icrd - 1], &c__7, &c__12);
-#line 18761 ""
- i__12 = comslm_1.naccbl[icm];
-#line 18761 ""
- for (kacc = 1; kacc <= i__12; ++kacc) {
-#line 18762 ""
- if (comslm_1.laccbl[icm + kacc * 25 -
- 25] == nolevc) {
-#line 18762 ""
- goto L59;
-#line 18762 ""
- }
-#line 18763 ""
-/* L58: */
-#line 18763 ""
- }
-#line 18764 ""
- ++comslm_1.naccbl[icm];
-#line 18765 ""
- comslm_1.laccbl[icm + comslm_1.naccbl[icm]
- * 25 - 25] = nolevc;
-#line 18766 ""
- comslm_1.jaccbl[icm + comslm_1.naccbl[icm]
- * 25 - 25] = iashft_(&iacc);
-#line 18767 ""
- }
-#line 18768 ""
-L59:
-#line 18769 ""
-/* L57: */
-#line 18769 ""
- ;
-#line 18769 ""
- }
-#line 18770 ""
- }
-/* if (lbacc(icm).eq.0 .and. accb4(icm)) then */
-#line 18772 ""
- i__10 = commidi_1.naccim[icm];
-#line 18772 ""
- for (kacc = 1; kacc <= i__10; ++kacc) {
-
-/* If naccim(icm)>0, */
-/* possible implicit accidental from earlier in the bar. Check for prior accid */
-/* in this bar at relevant note levels, main and chord notes. Only act if no */
-/* 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 18780 ""
- if (all_1.nolev[commvl_1.ivx + ip * 24 - 25] ==
- commidi_1.laccim[icm + kacc * 25 - 25]) {
-#line 18780 ""
- goto L66;
-#line 18780 ""
- }
-#line 18781 ""
- if (bit_test(all_1.ipl[commvl_1.ivx + ip * 24 -
- 25],10)) {
-#line 18782 ""
- i__12 = comtrill_1.icrd2;
-#line 18782 ""
- for (icrd = comtrill_1.icrd1; icrd <= i__12;
- ++icrd) {
-#line 18783 ""
- if ((lbit_shift(comtrill_1.icrdat[icrd -
- 1], (ftnlen)-12) & 127) ==
- commidi_1.laccim[icm + kacc * 25
- - 25]) {
-#line 18783 ""
- goto L66;
-#line 18783 ""
- }
-#line 18785 ""
-/* L67: */
-#line 18785 ""
- }
-#line 18786 ""
- }
-#line 18787 ""
- goto L65;
-#line 18788 ""
-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 18793 ""
- i__12 = comslm_1.naccbl[icm];
-#line 18793 ""
- for (macc = 1; macc <= i__12; ++macc) {
-#line 18794 ""
- if (comslm_1.laccbl[icm + macc * 25 - 25] ==
- commidi_1.laccim[icm + kacc * 25 - 25]
- ) {
-#line 18794 ""
- goto L65;
-#line 18794 ""
- }
-#line 18795 ""
-/* L68: */
-#line 18795 ""
- }
-#line 18796 ""
- ++comslm_1.naccbl[icm];
-#line 18797 ""
- comslm_1.laccbl[icm + comslm_1.naccbl[icm] * 25 -
- 25] = commidi_1.laccim[icm + kacc * 25 -
- 25];
-#line 18798 ""
- comslm_1.jaccbl[icm + comslm_1.naccbl[icm] * 25 -
- 25] = commidi_1.jaccim[icm + kacc * 25 -
- 25];
-#line 18799 ""
-L65:
-#line 18799 ""
- ;
-#line 18799 ""
- }
-#line 18800 ""
- }
-#line 18801 ""
- }
-#line 18802 ""
-/* L11: */
-#line 18802 ""
- }
-#line 18802 ""
- }
-
-/* Close out the notes group */
-
-/* Writing concatenation */
-#line 18806 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18806 ""
- i__4[1] = 2, a__2[1] = "en";
-#line 18806 ""
- s_cat(ch__14, a__2, i__4, &c__2, (ftnlen)3);
-#line 18806 ""
- addstr_(ch__14, &c__3, soutq, &lsout, (ftnlen)3, (ftnlen)80);
-#line 18807 ""
- if (comlast_1.islast && lsout > 0) {
-#line 18807 ""
- s_wsfe(&io___1141);
-/* Writing concatenation */
-#line 18807 ""
- i__4[0] = lsout, a__2[0] = soutq;
-#line 18807 ""
- i__4[1] = 1, a__2[1] = "%";
-#line 18807 ""
- s_cat(ch__12, a__2, i__4, &c__2, (ftnlen)81);
-#line 18807 ""
- do_fio(&c__1, ch__12, lsout + 1);
-#line 18807 ""
- e_wsfe();
-#line 18807 ""
- }
-#line 18808 ""
-/* L16: */
-#line 18808 ""
- }
-
-/* 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 18814 ""
- isgrace = FALSE_;
-#line 18815 ""
- i__2 = all_1.nv;
-#line 18815 ""
- for (all_1.iv = 1; all_1.iv <= i__2; ++all_1.iv) {
-#line 18816 ""
- comnsp_2.nvmxsav[all_1.iv - 1] = commvl_1.nvmx[all_1.iv - 1];
-#line 18817 ""
- i__7 = commvl_1.nvmx[all_1.iv - 1];
-#line 18817 ""
- for (kv = 1; kv <= i__7; ++kv) {
-#line 18818 ""
- comnsp_2.ivmxsav[all_1.iv + kv * 24 - 25] = commvl_1.ivmx[
- all_1.iv + kv * 24 - 25];
-#line 18819 ""
- commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25];
-#line 18820 ""
- comnsp_2.ptsgnd = 0.f;
-#line 18821 ""
- 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 18823 ""
- comnsp_2.flgndb = TRUE_;
-#line 18824 ""
- if (ptsndg[commvl_1.ivx - 1] > comnsp_2.ptsgnd) {
-#line 18825 ""
- comnsp_2.ptsgnd = ptsndg[commvl_1.ivx - 1];
-#line 18826 ""
- comnsp_2.eskgnd = eskndg[commvl_1.ivx - 1];
-#line 18827 ""
- }
-#line 18828 ""
- }
-#line 18829 ""
- 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 18833 ""
- if (! isgrace) {
-
-/* This is the first one, so set up the string */
-
-#line 18837 ""
- isgrace = TRUE_;
-#line 18838 ""
- ivlast = 1;
-/* Writing concatenation */
-#line 18839 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18839 ""
- i__4[1] = 6, a__2[1] = "znotes";
-#line 18839 ""
- s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80);
-#line 18840 ""
- lsout = 7;
-#line 18841 ""
- }
-#line 18842 ""
- i__1 = all_1.iv - 1;
-#line 18842 ""
- for (iiv = ivlast; iiv <= i__1; ++iiv) {
-#line 18843 ""
- addstr_(all_1.sepsymq + (iiv - 1), &c__1, soutq, &lsout, (
- ftnlen)1, (ftnlen)80);
-#line 18844 ""
-/* L76: */
-#line 18844 ""
- }
-#line 18845 ""
- ivlast = all_1.iv;
-
-/* No need to put in 'nextvoice', even if 2 lines/staff */
-
-#line 18849 ""
- i__1 = ncmid_(&all_1.iv, &all_1.nn[commvl_1.ivx - 1]);
-#line 18849 ""
- 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_b1008, 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 18854 ""
- }
-#line 18855 ""
-/* L75: */
-#line 18855 ""
- }
-#line 18855 ""
- }
-#line 18856 ""
- if (isgrace) {
-/* Writing concatenation */
-#line 18857 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18857 ""
- i__4[1] = 3, a__2[1] = "en%";
-#line 18857 ""
- s_cat(ch__20, a__2, i__4, &c__2, (ftnlen)4);
-#line 18857 ""
- addstr_(ch__20, &c__4, soutq, &lsout, (ftnlen)4, (ftnlen)80);
-#line 18858 ""
- if (comlast_1.islast && lsout > 0) {
-#line 18858 ""
- s_wsfe(&io___1144);
-#line 18858 ""
- do_fio(&c__1, soutq, lsout);
-#line 18858 ""
- e_wsfe();
-#line 18858 ""
- }
-#line 18859 ""
- }
-#line 18860 ""
- lsout = 0;
-
-/* Write multibar rest. Assuming nv = 1 and do not worry about cwbrest */
-/* This has to be the only use of atnextbar */
-
-#line 18865 ""
- if (all_1.ibar == comgrace_1.ibarmbr && comlast_1.islast) {
-#line 18866 ""
- if (comignorenats_1.newmbrhgt) {
-/* Writing concatenation */
-#line 18867 ""
- i__9[0] = 1, a__6[0] = all_1.sq;
-#line 18867 ""
- i__9[1] = 3, a__6[1] = "def";
-#line 18867 ""
- i__9[2] = 1, a__6[2] = all_1.sq;
-#line 18867 ""
- i__9[3] = 7, a__6[3] = "mbrhgt{";
-#line 18867 ""
- s_cat(soutq, a__6, i__9, &c__4, (ftnlen)80);
-#line 18868 ""
- if (comignorenats_1.mbrhgt <= -10) {
-#line 18869 ""
- s_wsfi(&io___1145);
-#line 18869 ""
- do_fio(&c__1, (char *)&comignorenats_1.mbrhgt, (ftnlen)sizeof(
- integer));
-#line 18869 ""
- e_wsfi();
-#line 18870 ""
- lsout = 15;
-#line 18871 ""
- } else if (comignorenats_1.mbrhgt >= 10 || comignorenats_1.mbrhgt
- <= -1) {
-#line 18872 ""
- s_wsfi(&io___1146);
-#line 18872 ""
- do_fio(&c__1, (char *)&comignorenats_1.mbrhgt, (ftnlen)sizeof(
- integer));
-#line 18872 ""
- e_wsfi();
-#line 18873 ""
- lsout = 14;
-#line 18874 ""
- } else {
-/* Writing concatenation */
-#line 18875 ""
- i__4[0] = 12, a__2[0] = soutq;
-#line 18875 ""
- *(unsigned char *)&ch__6[0] = comignorenats_1.mbrhgt + 48;
-#line 18875 ""
- i__4[1] = 1, a__2[1] = ch__6;
-#line 18875 ""
- s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80);
-#line 18876 ""
- lsout = 13;
-#line 18877 ""
- }
-/* Writing concatenation */
-#line 18878 ""
- i__4[0] = lsout, a__2[0] = soutq;
-#line 18878 ""
- i__4[1] = 2, a__2[1] = "}%";
-#line 18878 ""
- s_cat(soutq, a__2, i__4, &c__2, (ftnlen)80);
-#line 18879 ""
- s_wsfe(&io___1147);
-#line 18879 ""
- do_fio(&c__1, soutq, lsout + 2);
-#line 18879 ""
- e_wsfe();
-#line 18880 ""
- comignorenats_1.newmbrhgt = FALSE_;
-#line 18881 ""
- }
-/* Writing concatenation */
-#line 18882 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 18882 ""
- i__3[1] = 3, a__1[1] = "def";
-#line 18882 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 18882 ""
- i__3[3] = 10, a__1[3] = "atnextbar{";
-#line 18882 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 18882 ""
- i__3[5] = 6, a__1[5] = "znotes";
-#line 18882 ""
- s_cat(soutq, a__1, i__3, &c__6, (ftnlen)80);
-#line 18883 ""
- lsout = 22;
-/* Writing concatenation */
-#line 18884 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18884 ""
- i__4[1] = 6, a__2[1] = "mbrest";
-#line 18884 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 18885 ""
- lnote = 7;
-#line 18886 ""
- istring_(&comgrace_1.mbrest, noteq, &len, (ftnlen)8);
-/* Writing concatenation */
-#line 18887 ""
- i__4[0] = lnote, a__2[0] = notexq;
-#line 18887 ""
- i__4[1] = len, a__2[1] = noteq;
-#line 18887 ""
- s_cat(notexq, a__2, i__4, &c__2, (ftnlen)79);
-#line 18888 ""
- lnote += len;
-#line 18889 ""
- mtrspc = i_nint(&comgrace_1.xb4mbr);
-#line 18890 ""
- comgrace_1.xb4mbr = 0.f;
-#line 18891 ""
- istring_(&mtrspc, noteq, &len, (ftnlen)8);
-/* Writing concatenation */
-#line 18892 ""
- i__6[0] = lnote, a__4[0] = notexq;
-#line 18892 ""
- i__6[1] = len, a__4[1] = noteq;
-#line 18892 ""
- i__6[2] = 1, a__4[2] = "0";
-#line 18892 ""
- s_cat(notexq, a__4, i__6, &c__3, (ftnlen)79);
-#line 18893 ""
- lnote = lnote + len + 1;
-#line 18894 ""
- i__7 = all_1.nv;
-#line 18894 ""
- for (all_1.iv = 1; all_1.iv <= i__7; ++all_1.iv) {
-#line 18895 ""
- addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, (ftnlen)80);
-#line 18896 ""
- if (all_1.iv < all_1.nv) {
-#line 18896 ""
- addstr_(all_1.sepsymq + (all_1.iv - 1), &c__1, soutq, &lsout,
- (ftnlen)1, (ftnlen)80);
-#line 18896 ""
- }
-#line 18897 ""
-/* L62: */
-#line 18897 ""
- }
-/* Writing concatenation */
-#line 18898 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18898 ""
- i__4[1] = 4, a__2[1] = "en}%";
-#line 18898 ""
- s_cat(ch__19, a__2, i__4, &c__2, (ftnlen)5);
-#line 18898 ""
- addstr_(ch__19, &c__5, soutq, &lsout, (ftnlen)5, (ftnlen)80);
-#line 18899 ""
- s_wsfe(&io___1150);
-#line 18899 ""
- do_fio(&c__1, soutq, lsout);
-#line 18899 ""
- e_wsfe();
-#line 18900 ""
- lsout = 0;
-#line 18901 ""
- if (comshort_1.ishort > 0) {
-#line 18902 ""
- comshort_1.mbrsum += comgrace_1.mbrest;
-#line 18903 ""
- ++comshort_1.nmbr;
-#line 18904 ""
- }
-#line 18905 ""
- if (comgrace_1.mbrest > 1) {
-#line 18906 ""
- r__1 = comgrace_1.mbrest - 1 + .01f;
-#line 18906 ""
- ndig = (integer) r_lg10(&r__1) + 1;
-#line 18907 ""
- ci__1.cierr = 0;
-#line 18907 ""
- ci__1.ciunit = 11;
-/* Writing concatenation */
-#line 18907 ""
- i__6[0] = 6, a__4[0] = "(a14,i";
-#line 18907 ""
- i__7 = ndig + 48;
-#line 18907 ""
- chax_(ch__6, (ftnlen)1, &i__7);
-#line 18907 ""
- i__6[1] = 1, a__4[1] = ch__6;
-#line 18907 ""
- i__6[2] = 4, a__4[2] = ",a1)";
-#line 18907 ""
- ci__1.cifmt = (s_cat(ch__9, a__4, i__6, &c__3, (ftnlen)11), ch__9)
- ;
-#line 18907 ""
- s_wsfe(&ci__1);
-/* Writing concatenation */
-#line 18907 ""
- i__9[0] = 1, a__6[0] = all_1.sq;
-#line 18907 ""
- i__9[1] = 7, a__6[1] = "advance";
-#line 18907 ""
- i__9[2] = 1, a__6[2] = all_1.sq;
-#line 18907 ""
- i__9[3] = 5, a__6[3] = "barno";
-#line 18907 ""
- s_cat(ch__4, a__6, i__9, &c__4, (ftnlen)14);
-#line 18907 ""
- do_fio(&c__1, ch__4, (ftnlen)14);
-#line 18907 ""
- i__2 = comgrace_1.mbrest - 1;
-#line 18907 ""
- do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer));
-#line 18907 ""
- do_fio(&c__1, "%", (ftnlen)1);
-#line 18907 ""
- e_wsfe();
-#line 18909 ""
- }
-#line 18910 ""
- } 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 18915 ""
- comclefrests_1.centrests = TRUE_;
-/* Writing concatenation */
-#line 18916 ""
- i__9[0] = 1, a__6[0] = all_1.sq;
-#line 18916 ""
- i__9[1] = 3, a__6[1] = "def";
-#line 18916 ""
- i__9[2] = 1, a__6[2] = all_1.sq;
-#line 18916 ""
- i__9[3] = 8, a__6[3] = "value{0}";
-#line 18916 ""
- s_cat(ch__18, a__6, i__9, &c__4, (ftnlen)13);
-#line 18916 ""
- addstr_(ch__18, &c__13, soutq, &lsout, (ftnlen)13, (ftnlen)80);
-/* Writing concatenation */
-#line 18917 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 18917 ""
- i__3[1] = 3, a__1[1] = "def";
-#line 18917 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 18917 ""
- i__3[3] = 10, a__1[3] = "atnextbar{";
-#line 18917 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 18917 ""
- i__3[5] = 6, a__1[5] = "znotes";
-#line 18917 ""
- s_cat(ch__21, a__1, i__3, &c__6, (ftnlen)22);
-#line 18917 ""
- addstr_(ch__21, &c__22, soutq, &lsout, (ftnlen)22, (ftnlen)80);
-#line 18919 ""
- i__7 = all_1.nv;
-#line 18919 ""
- for (all_1.iv = 1; all_1.iv <= i__7; ++all_1.iv) {
-/* added */
-#line 18921 ""
- lnote = 0;
-
-#line 18923 ""
- i__2 = commvl_1.nvmx[all_1.iv - 1];
-#line 18923 ""
- for (kv = 1; kv <= i__2; ++kv) {
-#line 18924 ""
- commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25];
-#line 18925 ""
- if (cwrest[commvl_1.ivx]) {
-/* Writing concatenation */
-#line 18926 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18926 ""
- i__4[1] = 10, a__2[1] = "CenterBar{";
-#line 18926 ""
- s_cat(ch__9, a__2, i__4, &c__2, (ftnlen)11);
-#line 18926 ""
- addstr_(ch__9, &c__11, soutq, &lsout, (ftnlen)11, (ftnlen)
- 80);
-#line 18927 ""
- if (! comcwrf_1.cwrferm[commvl_1.ivx - 1]) {
-#line 18928 ""
- 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 18932 ""
- 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 18932 ""
- *(unsigned char *)&cwrq[(commvl_1.ivx - 1) *
- 79 + 9] = 'c';
-#line 18932 ""
- }
-#line 18935 ""
- }
-#line 18936 ""
- addstr_(cwrq + (commvl_1.ivx - 1) * 79, &lcwr[
- commvl_1.ivx - 1], soutq, &lsout, lcwr[
- commvl_1.ivx - 1], (ftnlen)80);
-/* Writing concatenation */
-#line 18938 ""
- i__6[0] = 6, a__4[0] = "}{-2}{";
-#line 18938 ""
- i__6[1] = 1, a__4[1] = all_1.sq;
-#line 18938 ""
- i__6[2] = 6, a__4[2] = "value}";
-#line 18938 ""
- s_cat(ch__18, a__4, i__6, &c__3, (ftnlen)13);
-#line 18938 ""
- addstr_(ch__18, &c__13, soutq, &lsout, (ftnlen)13, (
- ftnlen)80);
-#line 18939 ""
- } 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 18944 ""
- i__15[0] = lnote, a__9[0] = notexq;
-#line 18944 ""
- i__15[1] = 1, a__9[1] = all_1.sq;
-#line 18944 ""
- i__15[2] = 13, a__9[2] = "loffset{.33}{";
-#line 18944 ""
- i__15[3] = 1, a__9[3] = all_1.sq;
-#line 18944 ""
- i__15[4] = 11, a__9[4] = "fermataup7}";
-#line 18944 ""
- i__15[5] = lcwr[commvl_1.ivx - 1], a__9[5] = cwrq + (
- commvl_1.ivx - 1) * 79;
-#line 18944 ""
- i__15[6] = 6, a__9[6] = "}{-2}{";
-#line 18944 ""
- i__15[7] = 1, a__9[7] = all_1.sq;
-#line 18944 ""
- i__15[8] = 6, a__9[8] = "value}";
-#line 18944 ""
- s_cat(notexq, a__9, i__15, &c__9, (ftnlen)79);
-#line 18947 ""
- lnote = lnote + 26 + lcwr[commvl_1.ivx - 1] + 13;
-#line 18948 ""
- addstr_(notexq, &lnote, soutq, &lsout, (ftnlen)79, (
- ftnlen)80);
-#line 18949 ""
- comcwrf_1.cwrferm[commvl_1.ivx - 1] = FALSE_;
-#line 18950 ""
- }
-#line 18951 ""
- }
-#line 18952 ""
-/* L61: */
-#line 18952 ""
- }
-#line 18953 ""
- if (all_1.iv != all_1.nv) {
-#line 18953 ""
- addstr_(all_1.sepsymq + (all_1.iv - 1), &c__1, soutq, &lsout,
- (ftnlen)1, (ftnlen)80);
-#line 18953 ""
- }
-#line 18954 ""
-/* L60: */
-#line 18954 ""
- }
-#line 18955 ""
- if (comlast_1.islast) {
-/* Writing concatenation */
-#line 18956 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 18956 ""
- i__4[1] = 4, a__2[1] = "en}%";
-#line 18956 ""
- s_cat(ch__19, a__2, i__4, &c__2, (ftnlen)5);
-#line 18956 ""
- addstr_(ch__19, &c__5, soutq, &lsout, (ftnlen)5, (ftnlen)80);
-#line 18957 ""
- if (lsout > 0) {
-#line 18957 ""
- s_wsfe(&io___1152);
-#line 18957 ""
- do_fio(&c__1, soutq, lsout);
-#line 18957 ""
- e_wsfe();
-#line 18957 ""
- }
-#line 18958 ""
- }
-#line 18959 ""
- }
-
-/* End of block for centered whole-bar rests and multi-bar rests */
-
-/* If at end of block, save durations of last notes in bar, for possible use */
-/* if clef changes at start of next bar */
-
-#line 18966 ""
- if (all_1.ibar == all_1.nbars) {
-#line 18967 ""
- i__7 = all_1.nv;
-#line 18967 ""
- for (all_1.iv = 1; all_1.iv <= i__7; ++all_1.iv) {
-#line 18968 ""
- i__2 = commvl_1.nvmx[all_1.iv - 1];
-#line 18968 ""
- for (kv = 1; kv <= i__2; ++kv) {
-#line 18969 ""
- commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25];
-#line 18970 ""
- 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 18971 ""
-/* L63: */
-#line 18971 ""
- }
-#line 18971 ""
- }
-#line 18972 ""
- }
-
-/* Update time for midi. This is only used for the event track */
-
-#line 18976 ""
- if (commidi_1.ismidi) {
-#line 18977 ""
- 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 18982 ""
- if (all_1.lenb0 == all_1.lenbar) {
-#line 18982 ""
- i__2 = all_1.mtrdenl * all_1.lenb1 / 64;
-#line 18982 ""
- midievent_("m", &i__2, &all_1.mtrdenl, (ftnlen)1);
-#line 18982 ""
- }
-#line 18984 ""
- }
-#line 18985 ""
- return 0;
-} /* make2bar_ */
-
-/* Subroutine */ int makeabar_(void)
-{
- /* System generated locals */
- integer i__1, i__2;
- real r__1, r__2, r__3;
-
- /* Builtin functions */
- integer i_nint(real *);
-
- /* Local variables */
- extern /* Subroutine */ int catspace_(real *, real *, integer *);
- static real elsperns;
- extern doublereal getsquez_(integer *, integer *, real *, real *, real *);
- static integer ib, in, kv, cnn[24];
- static real xit[24];
- static integer ilnc;
- static real tmin;
- static integer nnsk, ntot;
- extern doublereal f1eon_(real *);
- extern /* Subroutine */ int stop1_(void);
- static real space[80];
- extern doublereal fnote_(integer *, integer *, integer *, integer *);
- static real tminn, tnote[600];
- static integer istop[80];
- static real squez[80];
- static integer istart[80];
- extern /* Subroutine */ int printl_(char *, ftnlen);
- static integer ivnext;
- static real tstart[80], xsquez;
-
-
-/* On input, have pseudo-durations in nodur(ivx,ip). Not real durations for */
-/* xtups, since only last note of xtup gets non-zero nodur, which */
-/* corresponds to single note of full length of xtup. */
-/* In this subroutine we make an ordered list of all notes in all voices. */
-/* ilnc = list note counter */
-/* ivxo(ilnc), ipo(ilnc) = voice# and position in voice of ilnc-th note. */
-/* to(ilnc) = real start time of note in PMX-units (64=whole note) */
-/* tno(ilnc) = time to next event in the bar. */
-/* tnote(ilnc) = actual duration of note */
-/* Then run thru list, grouping consecutive notes into \notes groups ib. */
-/* space(ib) = real time unit for the \notes group */
-/* squez(ib) = factor on space to get effective space. This will be 1 if */
-/* there is a note exactly spanning each interval of space, and */
-/* <1 if not. */
-/* Details: let eon = elemskips per noteskip (like length). Basic formula is */
-/* eon = sqrt(space/2.) */
-/* If tgovern >= space, then */
-/* eon = sqrt(tgovern/2)*(space/tgovern) = space/sqrt(2*tgovern). */
-/* Time needed to give this eon using basic formula is */
-/* teq = space**2/tgovern */
-/* Factor on space to get teq is */
-/* squez(ib) = space/tgovern */
-/* The eon for each ib can then be computed based on time of space*squez. */
-/* Iff squez = 1, there is a note spanning every increment in the \notes group. */
-
-/* tnminb = minimum time span in the bar for increments spanned by notes, */
-/* i.e., with squez=1. Use after parsing into line to decide if */
-/* spacing needs to be "flattened" among notes groups. */
-
-/* * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks) */
-/* logical rest,firstline,newmeter,gotclef */
-#line 19034 ""
- linecom_1.elskb = 0.f;
-#line 19035 ""
- linecom_1.tnminb[c1omnotes_1.ibarcnt - 1] = 1e3f;
-#line 19036 ""
- i__1 = a1ll_2.nv;
-#line 19036 ""
- for (a1ll_2.iv = 1; a1ll_2.iv <= i__1; ++a1ll_2.iv) {
-#line 19037 ""
- i__2 = c1ommvl_1.nvmx[a1ll_2.iv - 1];
-#line 19037 ""
- for (kv = 1; kv <= i__2; ++kv) {
-#line 19038 ""
- c1ommvl_1.ivx = c1ommvl_1.ivmx[a1ll_2.iv + kv * 24 - 25];
-#line 19039 ""
- if (a1ll_2.ibar > 1) {
-#line 19040 ""
- 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 19041 ""
- } else {
-#line 19042 ""
- a1ll_2.nn[c1ommvl_1.ivx - 1] = a1ll_2.nib[c1ommvl_1.ivx +
- a1ll_2.ibar * 24 - 25];
-#line 19043 ""
- }
-#line 19044 ""
-/* L1: */
-#line 19044 ""
- }
-#line 19044 ""
- }
-
-/* initialize list note counter, time(iv), curr. note(iv) */
-
-#line 19048 ""
- ilnc = 1;
-#line 19049 ""
- i__2 = a1ll_2.nv;
-#line 19049 ""
- for (a1ll_2.iv = 1; a1ll_2.iv <= i__2; ++a1ll_2.iv) {
-#line 19050 ""
- i__1 = c1ommvl_1.nvmx[a1ll_2.iv - 1];
-#line 19050 ""
- for (kv = 1; kv <= i__1; ++kv) {
-#line 19051 ""
- c1ommvl_1.ivx = c1ommvl_1.ivmx[a1ll_2.iv + kv * 24 - 25];
-#line 19052 ""
- cnn[c1ommvl_1.ivx - 1] = 1;
-#line 19053 ""
- a1ll_2.ivxo[ilnc - 1] = c1ommvl_1.ivx;
-#line 19054 ""
- a1ll_2.ipo[ilnc - 1] = 1;
-#line 19055 ""
- a1ll_2.to[ilnc - 1] = 0.f;
-#line 19056 ""
- tnote[ilnc - 1] = fnote_(a1ll_2.nodur, &c1ommvl_1.ivx, &c__1,
- c1ommvl_1.nacc);
-#line 19057 ""
- xit[c1ommvl_1.ivx - 1] = tnote[ilnc - 1];
-#line 19058 ""
- if ((r__1 = xit[c1ommvl_1.ivx - 1] - a1ll_2.lenbar, dabs(r__1)) <
- comtol_1.tol) {
-#line 19058 ""
- xit[c1ommvl_1.ivx - 1] = 1e3f;
-#line 19058 ""
- }
-#line 19059 ""
- ++ilnc;
-#line 19060 ""
-/* L4: */
-#line 19060 ""
- }
-#line 19060 ""
- }
-
-/* Build the list */
-
-#line 19064 ""
-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 19069 ""
- tmin = 1e3f;
-#line 19070 ""
- i__1 = a1ll_2.nv;
-#line 19070 ""
- for (a1ll_2.iv = 1; a1ll_2.iv <= i__1; ++a1ll_2.iv) {
-#line 19071 ""
- i__2 = c1ommvl_1.nvmx[a1ll_2.iv - 1];
-#line 19071 ""
- for (kv = 1; kv <= i__2; ++kv) {
-#line 19072 ""
- c1ommvl_1.ivx = c1ommvl_1.ivmx[a1ll_2.iv + kv * 24 - 25];
-/* Computing MIN */
-#line 19073 ""
- r__1 = tmin, r__2 = xit[c1ommvl_1.ivx - 1];
-#line 19073 ""
- tminn = dmin(r__1,r__2);
-#line 19074 ""
- if (tminn < tmin) {
-#line 19075 ""
- tmin = tminn;
-#line 19076 ""
- ivnext = c1ommvl_1.ivx;
-#line 19077 ""
- }
-#line 19078 ""
-/* L6: */
-#line 19078 ""
- }
-#line 19078 ""
- }
-#line 19079 ""
- if (tmin > 999.f) {
-#line 19079 ""
- goto L7;
-#line 19079 ""
- }
-#line 19080 ""
- a1ll_2.ivxo[ilnc - 1] = ivnext;
-#line 19081 ""
- ++cnn[ivnext - 1];
-#line 19082 ""
- a1ll_2.ipo[ilnc - 1] = cnn[ivnext - 1];
-#line 19083 ""
- a1ll_2.to[ilnc - 1] = tmin;
-
-/* Check if this voice is done */
-
-#line 19087 ""
- tnote[ilnc - 1] = fnote_(a1ll_2.nodur, &ivnext, &cnn[ivnext - 1],
- c1ommvl_1.nacc);
-#line 19088 ""
- if (cnn[ivnext - 1] == a1ll_2.nn[ivnext - 1]) {
-#line 19089 ""
- xit[ivnext - 1] = 1e3f;
-#line 19090 ""
- } else {
-#line 19091 ""
- xit[ivnext - 1] += tnote[ilnc - 1];
-#line 19092 ""
- }
-#line 19093 ""
- ++ilnc;
-#line 19094 ""
- goto L5;
-#line 19095 ""
-L7:
-#line 19096 ""
- ntot = ilnc - 1;
-#line 19097 ""
- if (ntot > 600) {
-#line 19098 ""
- printl_(" ", (ftnlen)1);
-#line 19099 ""
- printl_("Cannot have more than 600 notes per bar, stopping", (ftnlen)
- 49);
-#line 19100 ""
- stop1_();
-#line 19101 ""
- }
-#line 19102 ""
- i__2 = ntot - 1;
-#line 19102 ""
- for (in = 1; in <= i__2; ++in) {
-#line 19103 ""
- a1ll_2.tno[in - 1] = a1ll_2.to[in] - a1ll_2.to[in - 1];
-#line 19104 ""
-/* L8: */
-#line 19104 ""
- }
-#line 19105 ""
- a1ll_2.tno[ntot - 1] = fnote_(a1ll_2.nodur, &a1ll_2.ivxo[ntot - 1], &
- a1ll_2.ipo[ntot - 1], c1ommvl_1.nacc);
-#line 19106 ""
- tnote[ntot - 1] = a1ll_2.tno[ntot - 1];
-
-/* Debug writes */
-
-/* write(*,'()') */
-/* write(*,'(16i5)')(ivxo(in),in=1,ntot) */
-/* write(*,'(16i5)')(ipo(in),in=1,ntot) */
-/* write(*,'(16f5.1)')(to(in),in=1,ntot) */
-/* write(*,'(16f5.1)')(tno(in),in=1,ntot) */
-/* write(*,'(16i5)')(nodur(ivxo(in),ipo(in)),in=1,ntot) */
-/* write(*,'(16f5.1)')(tnote(in),in=1,ntot) */
-
-/* Done w/ list. Initialize loop for building note blocks: */
-
-#line 19120 ""
- ib = 1;
-#line 19121 ""
- istart[0] = 1;
-#line 19122 ""
- space[0] = 0.f;
-#line 19123 ""
- in = 1;
-
-/* Start the loop */
-
-#line 19127 ""
-L9:
-#line 19128 ""
- if (in == ntot) {
-#line 19129 ""
- if (space[ib - 1] < comtol_1.tol) {
-#line 19130 ""
- space[ib - 1] = a1ll_2.tno[in - 1];
-
-/* Last gap in bar is spanned by a note, so cannot need a squeeze. */
-
-#line 19134 ""
- squez[ib - 1] = 1.f;
-#line 19135 ""
- }
-#line 19136 ""
- istop[ib - 1] = ntot;
-
-/* From here flow out of this if block and into block-setup */
-
-#line 19140 ""
- } else if (space[ib - 1] < comtol_1.tol) {
-
-/* space hasn't been set yet, so tentatively set: */
-
-#line 19144 ""
- space[ib - 1] = a1ll_2.tno[in - 1];
-#line 19145 ""
- if (space[ib - 1] < comtol_1.tol) {
-#line 19146 ""
- ++in;
-#line 19147 ""
- } 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 19152 ""
- squez[ib - 1] = getsquez_(&in, &ntot, &space[ib - 1], tnote,
- a1ll_2.to);
-#line 19153 ""
- istop[ib - 1] = in;
-#line 19154 ""
- }
-#line 19155 ""
- goto L9;
-#line 19156 ""
- } else if (a1ll_2.tno[in] < comtol_1.tol) {
-
-/* This is not the last note in the space, so */
-
-#line 19160 ""
- ++in;
-#line 19161 ""
- goto L9;
-#line 19162 ""
- } 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 19166 ""
- i__2 = in + 1;
-#line 19166 ""
- xsquez = getsquez_(&i__2, &ntot, &space[ib - 1], tnote, a1ll_2.to);
-
-/* If it does have the same squez, loop, otherwise flow out */
-
-#line 19170 ""
- if ((r__1 = xsquez - squez[ib - 1], dabs(r__1)) < comtol_1.tol) {
-
-/* Keep spacing the same, update tentative stop point */
-
-#line 19174 ""
- ++in;
-#line 19175 ""
- istop[ib - 1] = in;
-#line 19176 ""
- goto L9;
-#line 19177 ""
- }
-#line 19178 ""
- }
-
-/* At this point istart, istop, space, and squez are good, so close out block */
-
-#line 19182 ""
- 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 19188 ""
- r__1 = space[ib - 1] * squez[ib - 1];
-#line 19188 ""
- elsperns = f1eon_(&r__1);
-#line 19189 ""
- if (istop[ib - 1] == ntot) {
-#line 19190 ""
- r__1 = (a1ll_2.lenbar - tstart[ib - 1]) / space[ib - 1];
-#line 19190 ""
- nnsk = i_nint(&r__1);
-#line 19191 ""
- } else {
-#line 19192 ""
- r__1 = (a1ll_2.to[istop[ib - 1]] - tstart[ib - 1]) / space[ib - 1];
-#line 19192 ""
- nnsk = i_nint(&r__1);
-#line 19193 ""
- }
-#line 19194 ""
- linecom_1.elskb += elsperns * nnsk;
-#line 19195 ""
- if (c1omnotes_1.nptr[c1omnotes_1.ibarcnt] > c1omnotes_1.nptr[
- c1omnotes_1.ibarcnt - 1]) {
-#line 19196 ""
- catspace_(&space[ib - 1], &squez[ib - 1], &nnsk);
-#line 19197 ""
- } else {
-
-/* This is the first entry for this bar */
-
-#line 19201 ""
- c1omnotes_1.nnpd[c1omnotes_1.nptr[c1omnotes_1.ibarcnt - 1] - 1] =
- nnsk;
-#line 19202 ""
- c1omnotes_1.durb[c1omnotes_1.nptr[c1omnotes_1.ibarcnt - 1] - 1] =
- space[ib - 1];
-#line 19203 ""
- c1omnotes_1.sqzb[c1omnotes_1.nptr[c1omnotes_1.ibarcnt - 1] - 1] =
- squez[ib - 1];
-#line 19204 ""
- ++c1omnotes_1.nptr[c1omnotes_1.ibarcnt];
-#line 19205 ""
- }
-
-/* Update minimum space spanned by a note */
-
-#line 19209 ""
- if ((r__1 = squez[ib - 1] - 1, dabs(r__1)) < comtol_1.tol) {
-/* Computing MIN */
-#line 19209 ""
- r__2 = linecom_1.tnminb[c1omnotes_1.ibarcnt - 1], r__3 = space[ib - 1]
- ;
-#line 19209 ""
- linecom_1.tnminb[c1omnotes_1.ibarcnt - 1] = dmin(r__2,r__3);
-#line 19209 ""
- }
-#line 19211 ""
- if (istop[ib - 1] == ntot) {
-#line 19211 ""
- goto L15;
-#line 19211 ""
- }
-
-/* End of spatial accounting for now */
-
-#line 19215 ""
- ++ib;
-#line 19216 ""
- istart[ib - 1] = istop[ib - 2] + 1;
-#line 19217 ""
- in = istart[ib - 1];
-
-/* Set tentative block space for new block */
-
-#line 19221 ""
- space[ib - 1] = a1ll_2.tno[in - 1];
-#line 19222 ""
- if (space[ib - 1] > comtol_1.tol) {
-#line 19222 ""
- squez[ib - 1] = getsquez_(&in, &ntot, &space[ib - 1], tnote,
- a1ll_2.to);
-#line 19222 ""
- }
-#line 19224 ""
- istop[ib - 1] = in;
-#line 19225 ""
- goto L9;
-#line 19226 ""
-L15:
-/* nb = ib */
-
-/* Debug writes */
-
-/* write(*,'(16i5)')(istart(ib),ib=1,nb) */
-/* write(*,'(16i5)')(istop(ib),ib=1,nb) */
-/* write(*,'(16f5.1)')(space(ib),ib=1,nb) */
-/* write(*,'(16f5.1)')(squez(ib),ib=1,nb) */
-
-#line 19236 ""
- return 0;
-} /* makeabar_ */
-
-/* Subroutine */ int midievent_(char *typeq, integer *in1, integer *in2,
- ftnlen typeq_len)
-{
- /* System generated locals */
- integer i__1;
- real r__1;
-
- /* Builtin functions */
- integer lbit_shift(integer, integer), i_nint(real *), s_wsle(cilist *),
- do_lio(integer *, integer *, char *, ftnlen), e_wsle(void);
-
- /* Local variables */
- static integer i__;
- extern integer isetvarlen_(integer *, integer *), log2_(integer *);
- static integer idur;
- extern /* Subroutine */ int stop1_(void);
- static integer nbytes, misperq;
-
- /* Fortran I/O blocks */
- static cilist io___1176 = { 0, 6, 0, 0, 0 };
-
-
-
-/* We now store "conductor" events in mmidi(numchan,.), and count bytes */
-/* with imidi(numchan) */
-
-#line 19255 ""
- i__1 = comevent_1.miditime - comevent_1.lasttime;
-#line 19255 ""
- idur = isetvarlen_(&i__1, &nbytes);
-#line 19256 ""
- commidi_1.imidi[commidi_1.numchan] = commidi_1.imidi[commidi_1.numchan] +
- nbytes + 1;
-#line 19257 ""
- i__1 = nbytes;
-#line 19257 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 19258 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] - i__) * 25 - 25] = (shortint) (idur % 256)
- ;
-#line 19259 ""
- idur = lbit_shift(idur, (ftnlen)-8);
-#line 19260 ""
-/* L1: */
-#line 19260 ""
- }
-#line 19261 ""
- commidi_1.mmidi[commidi_1.numchan + commidi_1.imidi[commidi_1.numchan] *
- 25 - 25] = 255;
-#line 19262 ""
- if (*(unsigned char *)typeq == 't') {
-
-/* Tempo event. in1 = quarters per minute (integer) */
-
-#line 19266 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 1) * 25 - 25] = 81;
-#line 19267 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 2) * 25 - 25] = 3;
-#line 19268 ""
- r__1 = 6e7f / *in1;
-#line 19268 ""
- misperq = i_nint(&r__1);
-#line 19269 ""
- for (i__ = 1; i__ <= 3; ++i__) {
-#line 19270 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 6 - i__) * 25 - 25] = (shortint) (
- misperq % 256);
-#line 19271 ""
- misperq = lbit_shift(misperq, (ftnlen)-8);
-#line 19272 ""
-/* L2: */
-#line 19272 ""
- }
-#line 19273 ""
- commidi_1.imidi[commidi_1.numchan] += 5;
-#line 19274 ""
- } else if (*(unsigned char *)typeq == 'm') {
-
-/* Meter event. in1=numerator, in2=denom (power of 2) */
-
-#line 19278 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 1) * 25 - 25] = 88;
-#line 19279 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 2) * 25 - 25] = 4;
-#line 19280 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 3) * 25 - 25] = (shortint) (*in1);
-#line 19281 ""
- if (*in2 > 0) {
-#line 19282 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 4) * 25 - 25] = (shortint) log2_(in2)
- ;
-#line 19283 ""
- } else {
-#line 19284 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 4) * 25 - 25] = 0;
-#line 19285 ""
- }
-#line 19286 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 5) * 25 - 25] = 24;
-#line 19287 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 6) * 25 - 25] = 8;
-#line 19288 ""
- commidi_1.imidi[commidi_1.numchan] += 6;
-#line 19289 ""
- } else if (*(unsigned char *)typeq == 'k') {
-
-/* Keychange event. in1 = isig */
-
-#line 19293 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 1) * 25 - 25] = 89;
-#line 19294 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 2) * 25 - 25] = 2;
-#line 19295 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 3) * 25 - 25] = (shortint) ((*in1 + 256)
- % 256);
-#line 19296 ""
- commidi_1.mmidi[commidi_1.numchan + (commidi_1.imidi[
- commidi_1.numchan] + 4) * 25 - 25] = 0;
-#line 19297 ""
- commidi_1.imidi[commidi_1.numchan] += 4;
-#line 19298 ""
- } else {
-#line 19299 ""
- s_wsle(&io___1176);
-#line 19299 ""
- do_lio(&c__9, &c__1, "Program flameout in midievent", (ftnlen)29);
-#line 19299 ""
- e_wsle();
-#line 19300 ""
- stop1_();
-#line 19301 ""
- }
-#line 19302 ""
- comevent_1.lasttime = comevent_1.miditime;
-#line 19303 ""
- return 0;
-} /* midievent_ */
-
-/* Subroutine */ int moveln_(integer *iuin, integer *iuout, logical *done)
-{
- /* System generated locals */
- integer i__1;
-
- /* Builtin functions */
- integer s_rsfe(cilist *), do_fio(integer *, char *, ftnlen), e_rsfe(void),
- s_wsfe(cilist *), e_wsfe(void);
-
- /* Local variables */
- extern integer llen_(char *, integer *, ftnlen);
- static char outq[129];
- static integer lenout;
-
- /* Fortran I/O blocks */
- static cilist io___1177 = { 0, 0, 1, "(a)", 0 };
- static cilist io___1180 = { 0, 0, 0, "(a)", 0 };
-
-
-#line 19308 ""
- *done = FALSE_;
-#line 19309 ""
- io___1177.ciunit = *iuin;
-#line 19309 ""
- i__1 = s_rsfe(&io___1177);
-#line 19309 ""
- if (i__1 != 0) {
-#line 19309 ""
- goto L1;
-#line 19309 ""
- }
-#line 19309 ""
- i__1 = do_fio(&c__1, outq, (ftnlen)129);
-#line 19309 ""
- if (i__1 != 0) {
-#line 19309 ""
- goto L1;
-#line 19309 ""
- }
-#line 19309 ""
- i__1 = e_rsfe();
-#line 19309 ""
- if (i__1 != 0) {
-#line 19309 ""
- goto L1;
-#line 19309 ""
- }
-#line 19310 ""
- lenout = llen_(outq, &c__129, (ftnlen)129);
-#line 19311 ""
- io___1180.ciunit = *iuout;
-#line 19311 ""
- s_wsfe(&io___1180);
-#line 19311 ""
- do_fio(&c__1, outq, lenout);
-#line 19311 ""
- e_wsfe();
-#line 19312 ""
- return 0;
-#line 19313 ""
-L1:
-#line 19313 ""
- *done = TRUE_;
-#line 19314 ""
- return 0;
-} /* moveln_ */
-
-/* Subroutine */ int mrec1_(char *lineq, integer *iccount, integer *ndxm,
- ftnlen lineq_len)
-{
- /* System generated locals */
- integer i__1, i__2;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- extern integer ntindex_(char *, char *, integer *, ftnlen, ftnlen);
-
-
-/* This is called when (a) macro recording is just starting and */
-/* (b) at the start of a new line, if recording is on */
-
-#line 19330 ""
- if (! commac_1.mrecord) {
-
-/* Starting the macro */
-
-#line 19334 ""
- c1ommac_1.ip1mac[commac_1.macnum - 1] = inbuff_1.ipbuf -
- inbuff_1.lbuf[inbuff_1.ilbuf - 2] + *iccount;
-#line 19335 ""
- c1ommac_1.il1mac[commac_1.macnum - 1] = inbuff_1.ilbuf - 1;
-#line 19336 ""
- c1ommac_1.ic1mac[commac_1.macnum - 1] = *iccount;
-#line 19337 ""
- commac_1.mrecord = TRUE_;
-#line 19338 ""
- }
-#line 19339 ""
- if (*iccount < 128) {
-#line 19340 ""
- i__1 = *iccount;
-#line 19340 ""
- *ndxm = i_indx(lineq + i__1, "M", 128 - i__1, (ftnlen)1);
-#line 19341 ""
- if (*ndxm > 0) {
-#line 19341 ""
- i__1 = *iccount;
-#line 19341 ""
- i__2 = 128 - *iccount;
-#line 19341 ""
- *ndxm = ntindex_(lineq + i__1, "M", &i__2, 128 - i__1, (ftnlen)1);
-#line 19341 ""
- }
-#line 19343 ""
- if (*ndxm > 0) {
-
-/* This line ends the macro. */
-
-#line 19347 ""
- c1ommac_1.ip2mac[commac_1.macnum - 1] = inbuff_1.ipbuf -
- inbuff_1.lbuf[inbuff_1.ilbuf - 2] + *iccount + *ndxm;
-#line 19348 ""
- c1ommac_1.il2mac[commac_1.macnum - 1] = inbuff_1.ilbuf - 1;
-#line 19349 ""
- commac_1.mrecord = FALSE_;
-#line 19350 ""
- }
-#line 19351 ""
- }
-#line 19352 ""
- return 0;
-} /* mrec1_ */
-
-integer ncmid_(integer *iv, integer *ip)
-{
- /* System generated locals */
- integer ret_val;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
-
- /* Local variables */
- static integer icc;
- static real xtime;
-
- /* Fortran I/O blocks */
- static cilist io___1183 = { 0, 6, 0, 0, 0 };
-
-
-#line 19372 ""
- if (comcc_1.ncc[*iv - 1] == 1) {
-#line 19373 ""
- ret_val = comcc_1.ncmidcc[*iv - 1];
-#line 19374 ""
- } else {
-#line 19375 ""
- xtime = all_2.to[comipl2_1.ipl2[commvl_1.ivx + *ip * 24 - 25] - 1];
-#line 19376 ""
- for (icc = comcc_1.ncc[*iv - 1]; icc >= 1; --icc) {
-#line 19377 ""
- if (xtime > comcc_1.tcc[*iv + icc * 24 - 25] - comtol_1.tol) {
-#line 19378 ""
- ret_val = comcc_1.ncmidcc[*iv + icc * 24 - 25];
-#line 19379 ""
- return ret_val;
-#line 19380 ""
- }
-#line 19381 ""
-/* L1: */
-#line 19381 ""
- }
-#line 19382 ""
- s_wsle(&io___1183);
-#line 19382 ""
- do_lio(&c__9, &c__1, "Problem in ncmid()", (ftnlen)18);
-#line 19382 ""
- e_wsle();
-#line 19383 ""
- s_stop("", (ftnlen)0);
-#line 19384 ""
- }
-#line 19385 ""
- return ret_val;
-} /* ncmid_ */
-
-integer ncmidf_(char *clefq, ftnlen clefq_len)
-{
- /* System generated locals */
- integer ret_val;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen);
-
-
-/* Return middle line of a clef */
-
-#line 19391 ""
- if (*(unsigned char *)clefq == '8') {
-
-/* treblelowoct; will treat as treble for this purpose */
-
-#line 19395 ""
- ret_val = 35;
-#line 19396 ""
- } else {
-#line 19397 ""
- ret_val = (i_indx(" b6r5n4a3m2s1t0f7", clefq, (ftnlen)17, (ftnlen)1) /
- 2 << 1) + 21;
-#line 19398 ""
- }
-#line 19399 ""
- return ret_val;
-} /* ncmidf_ */
-
-/* Subroutine */ int newvoice_(integer *jv, char *clefq, logical *change,
- ftnlen clefq_len)
-{
- static integer j;
- extern integer ncmidf_(char *, ftnlen);
-
-#line 19422 ""
- commvl_1.nvmx[*jv - 1] = 1;
-#line 19423 ""
- commvl_1.ivmx[*jv - 1] = *jv;
-#line 19424 ""
- all_1.itsofar[*jv - 1] = 0;
-#line 19425 ""
- all_1.nnl[*jv - 1] = 0;
-#line 19426 ""
- comfb_1.nfb[*jv - 1] = 0;
-#line 19427 ""
- if (all_1.firstgulp || *change) {
-#line 19428 ""
- comcc_1.ncmidcc[*jv - 1] = ncmidf_(clefq, (ftnlen)1);
-#line 19429 ""
- } else {
-#line 19430 ""
- comcc_1.ncmidcc[*jv - 1] = comcc_1.ncmidcc[*jv + comcc_1.ncc[*jv - 1]
- * 24 - 25];
-#line 19431 ""
- }
-#line 19432 ""
- comcc_1.tcc[*jv - 1] = 0.f;
-#line 19433 ""
- comcc_1.ncc[*jv - 1] = 1;
-#line 19434 ""
- comudsp_1.nudoff[*jv - 1] = 0;
-#line 19435 ""
- comcc_1.ndotmv[*jv - 1] = 0;
-#line 19436 ""
- for (j = 1; j <= 200; ++j) {
-#line 19437 ""
- all_1.irest[*jv + j * 24 - 25] = 0;
-#line 19438 ""
- all_1.islur[*jv + j * 24 - 25] = 0;
-#line 19439 ""
- all_1.ipl[*jv + j * 24 - 25] = 0;
-#line 19440 ""
- all_1.nacc[*jv + j * 24 - 25] = 0;
-#line 19441 ""
- all_1.iornq[*jv + j * 24 - 1] = 0;
-#line 19442 ""
- all_1.mult[*jv + j * 24 - 25] = 0;
-#line 19443 ""
- if (*jv <= 2) {
-#line 19443 ""
- all_1.isfig[*jv + (j << 1) - 3] = FALSE_;
-#line 19443 ""
- }
-#line 19444 ""
-/* L5: */
-#line 19444 ""
- }
-#line 19445 ""
- return 0;
-} /* newvoice_ */
-
-/* Subroutine */ int notefq_(char *noteq, integer *lnote, integer *nolev,
- integer *ncmid, ftnlen noteq_len)
-{
- /* System generated locals */
- integer i__1;
- char ch__1[1], ch__2[1];
- icilist ici__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
-
- /* Local variables */
- static integer nupfroma, i__;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer iname, ioctup;
- static char noteqt[1];
- extern /* Character */ VOID upcaseq_(char *, ftnlen, char *, ftnlen);
-
-
-/* Returns name of note level with octave transpositions, updates noctup. */
-
-#line 19454 ""
- nupfroma = (*nolev + 1) % 7;
-#line 19455 ""
- iname = nupfroma + 97;
-#line 19456 ""
- ioctup = (*nolev + 1) / 7 - 4;
-#line 19457 ""
- chax_(ch__1, (ftnlen)1, &iname);
-#line 19457 ""
- *(unsigned char *)noteqt = *(unsigned char *)&ch__1[0];
-#line 19458 ""
- if (*ncmid == 23) {
-#line 19458 ""
- upcaseq_(ch__1, (ftnlen)1, noteqt, (ftnlen)1);
-#line 19458 ""
- *(unsigned char *)noteqt = *(unsigned char *)&ch__1[0];
-#line 19458 ""
- }
-#line 19459 ""
- if (ioctup == comoct_1.noctup) {
-#line 19460 ""
- s_copy(noteq, noteqt, (ftnlen)8, (ftnlen)1);
-#line 19461 ""
- *lnote = 1;
-
-/* Must ALWAYS check if lnote=1 for use with functions requiring a blank */
-
-#line 19465 ""
- } else if (ioctup > comoct_1.noctup) {
-
-/* Raise octave. Encase in {} */
-
-#line 19469 ""
- ici__1.icierr = 0;
-#line 19469 ""
- ici__1.icirnum = 1;
-#line 19469 ""
- ici__1.icirlen = 8;
-#line 19469 ""
- ici__1.iciunit = noteq;
-#line 19469 ""
- ici__1.icifmt = "(8a1)";
-#line 19469 ""
- s_wsfi(&ici__1);
-#line 19469 ""
- do_fio(&c__1, "{", (ftnlen)1);
-#line 19469 ""
- i__1 = ioctup - 1;
-#line 19469 ""
- for (i__ = comoct_1.noctup; i__ <= i__1; ++i__) {
-#line 19469 ""
- chax_(ch__2, (ftnlen)1, &c__39);
-#line 19469 ""
- *(unsigned char *)&ch__1[0] = *(unsigned char *)&ch__2[0];
-#line 19469 ""
- do_fio(&c__1, ch__1, (ftnlen)1);
-#line 19469 ""
- }
-#line 19469 ""
- do_fio(&c__1, noteqt, (ftnlen)1);
-#line 19469 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 19469 ""
- e_wsfi();
-#line 19471 ""
- *lnote = ioctup + 3 - comoct_1.noctup;
-#line 19472 ""
- comoct_1.noctup = ioctup;
-#line 19473 ""
- } else {
-
-/* Lower octave */
-
-#line 19477 ""
- ici__1.icierr = 0;
-#line 19477 ""
- ici__1.icirnum = 1;
-#line 19477 ""
- ici__1.icirlen = 8;
-#line 19477 ""
- ici__1.iciunit = noteq;
-#line 19477 ""
- ici__1.icifmt = "(8a1)";
-#line 19477 ""
- s_wsfi(&ici__1);
-#line 19477 ""
- do_fio(&c__1, "{", (ftnlen)1);
-#line 19477 ""
- i__1 = comoct_1.noctup - 1;
-#line 19477 ""
- for (i__ = ioctup; i__ <= i__1; ++i__) {
-#line 19477 ""
- chax_(ch__2, (ftnlen)1, &c__96);
-#line 19477 ""
- *(unsigned char *)&ch__1[0] = *(unsigned char *)&ch__2[0];
-#line 19477 ""
- do_fio(&c__1, ch__1, (ftnlen)1);
-#line 19477 ""
- }
-#line 19477 ""
- do_fio(&c__1, noteqt, (ftnlen)1);
-#line 19477 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 19477 ""
- e_wsfi();
-#line 19479 ""
- *lnote = comoct_1.noctup + 3 - ioctup;
-#line 19480 ""
- comoct_1.noctup = ioctup;
-#line 19481 ""
- }
-#line 19482 ""
- return 0;
-} /* notefq_ */
-
-/* Subroutine */ int notex_(char *notexq, integer *lnote, ftnlen notexq_len)
-{
- /* System generated locals */
- address a__1[4], a__2[3], a__3[5], a__4[2], a__5[8];
- integer i__1, i__2, i__3[4], i__4[3], i__5[5], i__6[2], i__7[8];
- real r__1;
- char ch__1[1];
-
- /* Builtin functions */
- integer i_nint(real *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen),
- s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- , pow_ii(integer *, integer *), i_sign(integer *, integer *);
-
- /* Local variables */
- extern /* Subroutine */ int addblank_(char *, integer *, ftnlen);
- static real raisedot;
- static integer ip;
- static char udq[1];
- extern integer log2_(integer *);
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static logical even;
- static integer nole, ldot, nodu;
- static char dotq[4];
- extern /* Character */ VOID udqq_(char *, ftnlen, integer *, integer *,
- integer *, integer *, integer *, integer *);
- static real zmin;
- static char numq[2];
- extern integer ncmid_(integer *, integer *);
- static real fnole;
- static char noteq[8];
- static integer lrest;
- static char restq[40];
- extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer
- *, ftnlen);
- static integer lnoten;
-
- /* Fortran I/O blocks */
- static icilist io___1202 = { 0, noteq, 0, "(i2)", 2, 1 };
- static icilist io___1206 = { 0, numq, 0, "(i2)", 2, 1 };
- static icilist io___1207 = { 0, noteq+1, 0, "(i2)", 2, 1 };
- static icilist io___1208 = { 0, noteq+1, 0, "(i3)", 3, 1 };
-
-
-
-/* Returns non-beamed full note name */
-
-#line 19512 ""
- ip = all_1.ipo[all_1.jn - 1];
-#line 19513 ""
- nole = all_1.nolev[commvl_1.ivx + ip * 24 - 25];
-
-/* Check for special situations with 2nds (see precrd) */
-
-#line 19517 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],30)) {
-#line 19518 ""
- --nole;
-#line 19519 ""
- } else if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],31)) {
-#line 19520 ""
- ++nole;
-#line 19521 ""
- }
-#line 19522 ""
- nodu = all_1.nodur[commvl_1.ivx + ip * 24 - 25];
-#line 19523 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) {
-#line 19524 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 19524 ""
- 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 19524 ""
- *(unsigned char *)udq = *(unsigned char *)&ch__1[0];
-#line 19526 ""
- }
-
-/* Check figure level */
-
-/* if (figbass .and. isfig(ivx,ip) */
-/* * .and. .not.btest(irest(ivx,ip),0)) then */
-#line 19532 ""
- 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 19535 ""
- if (*(unsigned char *)udq == 'u' || nodu >= 64) {
-
-/* Upper or no stem, fnole (in noleunits) set by notehead */
-
-#line 19539 ""
- fnole = (real) nole;
-#line 19540 ""
- } else {
-
-/* Lower stem, fnole set by bottom of stem */
-
-#line 19544 ""
- fnole = nole - all_1.stemlen;
-#line 19545 ""
- }
-#line 19546 ""
- zmin = fnole - ncmid_(&commvl_1.ivx, &ip) + 4;
-#line 19547 ""
- if (commvl_1.ivx == 1) {
-/* Computing MAX */
-#line 19548 ""
- r__1 = 4 - zmin;
-#line 19548 ""
- i__1 = all_1.ifigdr[(all_1.iline << 1) - 2], i__2 = i_nint(&r__1);
-#line 19548 ""
- all_1.ifigdr[(all_1.iline << 1) - 2] = max(i__1,i__2);
-#line 19549 ""
- } else {
-/* Computing MAX */
-#line 19550 ""
- r__1 = 4 - zmin;
-#line 19550 ""
- i__1 = all_1.ifigdr[(all_1.iline << 1) - 1], i__2 = i_nint(&r__1);
-#line 19550 ""
- all_1.ifigdr[(all_1.iline << 1) - 1] = max(i__1,i__2);
-#line 19551 ""
- }
-#line 19552 ""
- }
-#line 19553 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) {
-#line 19554 ""
- i__1 = ncmid_(&all_1.iv, &ip);
-#line 19554 ""
- notefq_(noteq, &lnoten, &nole, &i__1, (ftnlen)8);
-#line 19555 ""
- if (lnoten == 1) {
-#line 19555 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 19555 ""
- }
-#line 19556 ""
- if (nodu == 1) {
-/* Writing concatenation */
-#line 19557 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 19557 ""
- i__3[1] = 4, a__1[1] = "cccc";
-#line 19557 ""
- i__3[2] = 1, a__1[2] = udq;
-#line 19557 ""
- i__3[3] = lnoten, a__1[3] = noteq;
-#line 19557 ""
- s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79);
-#line 19558 ""
- *lnote = lnoten + 6;
-#line 19559 ""
- } else if (nodu == 2) {
-/* Writing concatenation */
-#line 19560 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 19560 ""
- i__3[1] = 3, a__1[1] = "ccc";
-#line 19560 ""
- i__3[2] = 1, a__1[2] = udq;
-#line 19560 ""
- i__3[3] = lnoten, a__1[3] = noteq;
-#line 19560 ""
- s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79);
-#line 19561 ""
- *lnote = lnoten + 5;
-#line 19562 ""
- } else if (nodu == 4) {
-/* Writing concatenation */
-#line 19563 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 19563 ""
- i__3[1] = 2, a__1[1] = "cc";
-#line 19563 ""
- i__3[2] = 1, a__1[2] = udq;
-#line 19563 ""
- i__3[3] = lnoten, a__1[3] = noteq;
-#line 19563 ""
- s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79);
-#line 19564 ""
- *lnote = lnoten + 4;
-#line 19565 ""
- } else if (nodu == 8) {
-/* Writing concatenation */
-#line 19566 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 19566 ""
- i__3[1] = 1, a__1[1] = "c";
-#line 19566 ""
- i__3[2] = 1, a__1[2] = udq;
-#line 19566 ""
- i__3[3] = lnoten, a__1[3] = noteq;
-#line 19566 ""
- s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79);
-#line 19567 ""
- *lnote = lnoten + 3;
-#line 19568 ""
- } else if (nodu == 16) {
-/* Writing concatenation */
-#line 19569 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 19569 ""
- i__3[1] = 1, a__1[1] = "q";
-#line 19569 ""
- i__3[2] = 1, a__1[2] = udq;
-#line 19569 ""
- i__3[3] = lnoten, a__1[3] = noteq;
-#line 19569 ""
- s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79);
-#line 19570 ""
- *lnote = lnoten + 3;
-#line 19571 ""
- } else if (nodu == 32) {
-/* Writing concatenation */
-#line 19572 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 19572 ""
- i__3[1] = 1, a__1[1] = "h";
-#line 19572 ""
- i__3[2] = 1, a__1[2] = udq;
-#line 19572 ""
- i__3[3] = lnoten, a__1[3] = noteq;
-#line 19572 ""
- s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79);
-#line 19573 ""
- *lnote = lnoten + 3;
-#line 19574 ""
- } else if (nodu == 64) {
-/* Writing concatenation */
-#line 19575 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 19575 ""
- i__4[1] = 2, a__2[1] = "wh";
-#line 19575 ""
- i__4[2] = lnoten, a__2[2] = noteq;
-#line 19575 ""
- s_cat(notexq, a__2, i__4, &c__3, (ftnlen)79);
-#line 19576 ""
- *lnote = lnoten + 3;
-#line 19577 ""
- } else if (nodu == 128) {
-/* notexq =sq//'zbreve'//noteq(1:lnoten)//sq//'sk' */
-/* lnote = lnoten+10 */
-/* Writing concatenation */
-#line 19580 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 19580 ""
- i__4[1] = 5, a__2[1] = "breve";
-#line 19580 ""
- i__4[2] = lnoten, a__2[2] = noteq;
-#line 19580 ""
- s_cat(notexq, a__2, i__4, &c__3, (ftnlen)79);
-#line 19581 ""
- *lnote = lnoten + 6;
-#line 19582 ""
- } else {
-#line 19583 ""
- s_copy(dotq, "p", (ftnlen)4, (ftnlen)1);
-#line 19584 ""
- ldot = 1;
-#line 19585 ""
- if (bit_test(all_1.iornq[commvl_1.ivx + ip * 24 - 1],13)) {
-
-/* Dotted note with ')' ornament */
-
-#line 19589 ""
- s_copy(dotq, "m", (ftnlen)4, (ftnlen)1);
-#line 19590 ""
- } else if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],3)) {
-
-/* Double dot */
-
-#line 19594 ""
- s_copy(dotq, "pp", (ftnlen)4, (ftnlen)2);
-#line 19595 ""
- ldot = 2;
-#line 19596 ""
- }
-#line 19597 ""
- if (nodu >= 192) {
-/* Writing concatenation */
-#line 19598 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 19598 ""
- i__3[1] = 5, a__1[1] = "breve";
-#line 19598 ""
- i__3[2] = ldot, a__1[2] = dotq;
-#line 19598 ""
- i__3[3] = lnoten, a__1[3] = noteq;
-#line 19598 ""
- s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79);
-#line 19599 ""
- *lnote = lnoten + 6 + ldot;
-#line 19600 ""
- } else if (nodu >= 96) {
-/* Writing concatenation */
-#line 19601 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 19601 ""
- i__3[1] = 2, a__1[1] = "wh";
-#line 19601 ""
- i__3[2] = ldot, a__1[2] = dotq;
-#line 19601 ""
- i__3[3] = lnoten, a__1[3] = noteq;
-#line 19601 ""
- s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79);
-#line 19602 ""
- *lnote = lnoten + 3 + ldot;
-#line 19603 ""
- } else if (nodu >= 48) {
-/* Writing concatenation */
-#line 19604 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 19604 ""
- i__5[1] = 1, a__3[1] = "h";
-#line 19604 ""
- i__5[2] = 1, a__3[2] = udq;
-#line 19604 ""
- i__5[3] = ldot, a__3[3] = dotq;
-#line 19604 ""
- i__5[4] = lnoten, a__3[4] = noteq;
-#line 19604 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79);
-#line 19605 ""
- *lnote = lnoten + 3 + ldot;
-#line 19606 ""
- } else if (nodu >= 24) {
-/* Writing concatenation */
-#line 19607 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 19607 ""
- i__5[1] = 1, a__3[1] = "q";
-#line 19607 ""
- i__5[2] = 1, a__3[2] = udq;
-#line 19607 ""
- i__5[3] = ldot, a__3[3] = dotq;
-#line 19607 ""
- i__5[4] = lnoten, a__3[4] = noteq;
-#line 19607 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79);
-#line 19608 ""
- *lnote = lnoten + 3 + ldot;
-#line 19609 ""
- } else if (nodu >= 12) {
-/* Writing concatenation */
-#line 19610 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 19610 ""
- i__5[1] = 1, a__3[1] = "c";
-#line 19610 ""
- i__5[2] = 1, a__3[2] = udq;
-#line 19610 ""
- i__5[3] = ldot, a__3[3] = dotq;
-#line 19610 ""
- i__5[4] = lnoten, a__3[4] = noteq;
-#line 19610 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79);
-#line 19611 ""
- *lnote = lnoten + 3 + ldot;
-#line 19612 ""
- } else if (nodu >= 6) {
-/* Writing concatenation */
-#line 19613 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 19613 ""
- i__5[1] = 2, a__3[1] = "cc";
-#line 19613 ""
- i__5[2] = 1, a__3[2] = udq;
-#line 19613 ""
- i__5[3] = ldot, a__3[3] = dotq;
-#line 19613 ""
- i__5[4] = lnoten, a__3[4] = noteq;
-#line 19613 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79);
-#line 19614 ""
- *lnote = lnoten + 4 + ldot;
-#line 19615 ""
- compoi_1.ispoi = TRUE_;
-#line 19616 ""
- } else {
-/* Writing concatenation */
-#line 19617 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 19617 ""
- i__5[1] = 3, a__3[1] = "ccc";
-#line 19617 ""
- i__5[2] = 1, a__3[2] = udq;
-#line 19617 ""
- i__5[3] = ldot, a__3[3] = dotq;
-#line 19617 ""
- i__5[4] = lnoten, a__3[4] = noteq;
-#line 19617 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79);
-#line 19618 ""
- *lnote = lnoten + 5 + ldot;
-#line 19619 ""
- compoi_1.ispoi = TRUE_;
-#line 19620 ""
- }
-#line 19621 ""
- if (*(unsigned char *)dotq == 'm') {
-
-/* Need another call to the note, in case the first one has octave shifts */
-
-#line 19625 ""
- if (lnoten == 2) {
-/* Writing concatenation */
-#line 19626 ""
- i__3[0] = *lnote, a__1[0] = notexq;
-#line 19626 ""
- i__3[1] = 1, a__1[1] = "{";
-#line 19626 ""
- i__3[2] = 1, a__1[2] = noteq + 1;
-#line 19626 ""
- i__3[3] = 1, a__1[3] = "}";
-#line 19626 ""
- s_cat(notexq, a__1, i__3, &c__4, (ftnlen)79);
-#line 19627 ""
- *lnote += 3;
-#line 19628 ""
- } else {
-#line 19629 ""
- i__1 = lnoten - 2;
-/* Writing concatenation */
-#line 19629 ""
- i__6[0] = *lnote, a__4[0] = notexq;
-#line 19629 ""
- i__6[1] = lnoten - 1 - i__1, a__4[1] = noteq + i__1;
-#line 19629 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19630 ""
- ++(*lnote);
-#line 19631 ""
- }
-#line 19632 ""
- }
-#line 19633 ""
- }
-#line 19634 ""
- } else if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],29)) {
-
-/* Blank rest */
-
-/* Writing concatenation */
-#line 19638 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19638 ""
- i__6[1] = 2, a__4[1] = "sk";
-#line 19638 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19639 ""
- *lnote = 3;
-#line 19640 ""
- } else {
-
-/* Non-blank rest */
-
-#line 19644 ""
- *lnote = 0;
-#line 19645 ""
- nole = (nole + 20) % 100 - 20;
-
-/* Kluge to get pause symbol for rp: */
-
-#line 19649 ""
- if (bit_test(all_1.islur[commvl_1.ivx + ip * 24 - 25],19)) {
-#line 19649 ""
- nodu = 64;
-#line 19649 ""
- }
-#line 19650 ""
- if (nodu <= 28) {
-
-/* Normal rest < or = double-dotted quarter */
-
-#line 19654 ""
- lrest = 3;
-#line 19655 ""
- if (nodu > 14) {
-/* Writing concatenation */
-#line 19656 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19656 ""
- i__6[1] = 2, a__4[1] = "qp";
-#line 19656 ""
- s_cat(restq, a__4, i__6, &c__2, (ftnlen)40);
-#line 19657 ""
- } else if (nodu > 7) {
-/* Writing concatenation */
-#line 19658 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19658 ""
- i__6[1] = 2, a__4[1] = "ds";
-#line 19658 ""
- s_cat(restq, a__4, i__6, &c__2, (ftnlen)40);
-#line 19659 ""
- } else if (nodu > 3) {
-/* Writing concatenation */
-#line 19660 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19660 ""
- i__6[1] = 2, a__4[1] = "qs";
-#line 19660 ""
- s_cat(restq, a__4, i__6, &c__2, (ftnlen)40);
-#line 19661 ""
- } else if (nodu > 1) {
-/* Writing concatenation */
-#line 19662 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19662 ""
- i__6[1] = 2, a__4[1] = "hs";
-#line 19662 ""
- s_cat(restq, a__4, i__6, &c__2, (ftnlen)40);
-#line 19663 ""
- } else {
-/* Writing concatenation */
-#line 19664 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19664 ""
- i__6[1] = 3, a__4[1] = "qqs";
-#line 19664 ""
- s_cat(restq, a__4, i__6, &c__2, (ftnlen)40);
-#line 19665 ""
- lrest = 4;
-#line 19666 ""
- }
-
-/* Special case for rest at start of F-tuplet inside a forced beam */
-
-#line 19670 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],18) &&
- bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],19)) {
-/* Writing concatenation */
-#line 19672 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 19672 ""
- i__4[1] = 3, a__2[1] = "pt4";
-#line 19672 ""
- i__4[2] = lrest, a__2[2] = restq;
-#line 19672 ""
- s_cat(restq, a__2, i__4, &c__3, (ftnlen)40);
-#line 19673 ""
- lrest += 4;
-#line 19674 ""
- }
-#line 19675 ""
- s_copy(notexq, restq, (ftnlen)79, (ftnlen)40);
-#line 19676 ""
- *lnote = lrest;
-
-/* At this point notexq=restq,lnote=lrest are name of rest. Now raise if necc. */
-
-#line 19680 ""
- if (nole != 0) {
-#line 19681 ""
- if (abs(nole) < 10) {
-#line 19682 ""
- i__1 = abs(nole) + 48;
-#line 19682 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 19682 ""
- s_copy(noteq, ch__1, (ftnlen)8, (ftnlen)1);
-#line 19683 ""
- lnoten = 1;
-#line 19684 ""
- } else {
-#line 19685 ""
- s_wsfi(&io___1202);
-#line 19685 ""
- i__1 = abs(nole);
-#line 19685 ""
- do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 19685 ""
- e_wsfi();
-#line 19686 ""
- lnoten = 2;
-#line 19687 ""
- }
-#line 19688 ""
- if (nole > 0) {
-/* Writing concatenation */
-#line 19689 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 19689 ""
- i__5[1] = 5, a__3[1] = "raise";
-#line 19689 ""
- i__5[2] = lnoten, a__3[2] = noteq;
-#line 19689 ""
- i__5[3] = 1, a__3[3] = all_1.sq;
-#line 19689 ""
- i__5[4] = 9, a__3[4] = "internote";
-#line 19689 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79);
-#line 19690 ""
- } else {
-/* Writing concatenation */
-#line 19691 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 19691 ""
- i__5[1] = 5, a__3[1] = "lower";
-#line 19691 ""
- i__5[2] = lnoten, a__3[2] = noteq;
-#line 19691 ""
- i__5[3] = 1, a__3[3] = all_1.sq;
-#line 19691 ""
- i__5[4] = 9, a__3[4] = "internote";
-#line 19691 ""
- s_cat(notexq, a__3, i__5, &c__5, (ftnlen)79);
-#line 19692 ""
- }
-#line 19693 ""
- *lnote = lnoten + 16;
-/* Writing concatenation */
-#line 19694 ""
- i__6[0] = *lnote, a__4[0] = notexq;
-#line 19694 ""
- i__6[1] = lrest, a__4[1] = restq;
-#line 19694 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19695 ""
- *lnote += lrest;
-#line 19696 ""
- }
-#line 19697 ""
- i__1 = log2_(&nodu);
-#line 19697 ""
- if (pow_ii(&c__2, &i__1) != nodu) {
-
-/* Deal with dots (on rests shorter than half rest) */
-
-/* Writing concatenation */
-#line 19701 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19701 ""
- i__6[1] = 2, a__4[1] = "pt";
-#line 19701 ""
- s_cat(restq, a__4, i__6, &c__2, (ftnlen)40);
-#line 19702 ""
- lrest = 3;
-#line 19703 ""
- i__1 = log2_(&nodu);
-#line 19703 ""
- if (nodu << 1 > pow_ii(&c__2, &i__1) * 3) {
-/* Writing concatenation */
-#line 19704 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19704 ""
- i__6[1] = 3, a__4[1] = "ppt";
-#line 19704 ""
- s_cat(restq, a__4, i__6, &c__2, (ftnlen)40);
-#line 19705 ""
- lrest = 4;
-#line 19706 ""
- }
-#line 19707 ""
- nole += 4;
-#line 19708 ""
- raisedot = 0.f;
-
-/* Tweak dot positions for special cases */
-
-#line 19712 ""
- even = (nole + 100) % 2 == 0;
-/* if (.not.even.and.nodu.gt.8.and. */
-/* * (nole.lt.0.or.nole.gt.8)) then */
-#line 19715 ""
- if (! even && (nole < 0 || nole > 8)) {
-#line 19716 ""
- raisedot = 1.f;
-#line 19717 ""
- }
-#line 19718 ""
- if (nole >= 10 || nole <= -1) {
-#line 19719 ""
- s_wsfi(&io___1206);
-#line 19719 ""
- do_fio(&c__1, (char *)&nole, (ftnlen)sizeof(integer));
-#line 19719 ""
- e_wsfi();
-/* Writing concatenation */
-#line 19720 ""
- i__3[0] = lrest, a__1[0] = restq;
-#line 19720 ""
- i__3[1] = 1, a__1[1] = "{";
-#line 19720 ""
- i__3[2] = 2, a__1[2] = numq;
-#line 19720 ""
- i__3[3] = 1, a__1[3] = "}";
-#line 19720 ""
- s_cat(restq, a__1, i__3, &c__4, (ftnlen)40);
-#line 19721 ""
- lrest += 4;
-#line 19722 ""
- } else {
-/* Writing concatenation */
-#line 19723 ""
- i__6[0] = lrest, a__4[0] = restq;
-#line 19723 ""
- i__1 = nole + 48;
-#line 19723 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 19723 ""
- i__6[1] = 1, a__4[1] = ch__1;
-#line 19723 ""
- s_cat(restq, a__4, i__6, &c__2, (ftnlen)40);
-#line 19724 ""
- ++lrest;
-#line 19725 ""
- }
-#line 19726 ""
- if (raisedot > 0.f) {
-/* Writing concatenation */
-#line 19727 ""
- i__7[0] = 1, a__5[0] = all_1.sq;
-#line 19727 ""
- i__7[1] = 5, a__5[1] = "raise";
-#line 19727 ""
- i__7[2] = 1, a__5[2] = all_1.sq;
-#line 19727 ""
- i__7[3] = 9, a__5[3] = "internote";
-#line 19727 ""
- i__7[4] = 1, a__5[4] = all_1.sq;
-#line 19727 ""
- i__7[5] = 5, a__5[5] = "hbox{";
-#line 19727 ""
- i__7[6] = lrest, a__5[6] = restq;
-#line 19727 ""
- i__7[7] = 1, a__5[7] = "}";
-#line 19727 ""
- s_cat(restq, a__5, i__7, &c__8, (ftnlen)40);
-#line 19729 ""
- lrest += 23;
-#line 19730 ""
- }
-/* Writing concatenation */
-#line 19731 ""
- i__6[0] = lrest, a__4[0] = restq;
-#line 19731 ""
- i__6[1] = *lnote, a__4[1] = notexq;
-#line 19731 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19732 ""
- *lnote += lrest;
-#line 19733 ""
- }
-#line 19734 ""
- } else {
-
-/* Half rest or longer */
-
-#line 19738 ""
- if (nole == 0) {
-
-/* Half or longer rest is not raised or lowered */
-
-#line 19742 ""
- if (nodu <= 56) {
-/* Writing concatenation */
-#line 19743 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19743 ""
- i__6[1] = 6, a__4[1] = "hpause";
-#line 19743 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19744 ""
- *lnote = 7;
-#line 19745 ""
- } else if (nodu <= 112) {
-#line 19746 ""
- 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 19748 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19748 ""
- i__6[1] = 5, a__4[1] = "pause";
-#line 19748 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19749 ""
- } else {
-/* Writing concatenation */
-#line 19750 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19750 ""
- i__6[1] = 5, a__4[1] = "pausc";
-#line 19750 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19751 ""
- }
-#line 19752 ""
- *lnote = 6;
-#line 19753 ""
- } else {
-/* Writing concatenation */
-#line 19754 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19754 ""
- i__6[1] = 5, a__4[1] = "PAuse";
-#line 19754 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19755 ""
- *lnote = 6;
-#line 19756 ""
- }
-#line 19757 ""
- i__1 = log2_(&nodu);
-#line 19757 ""
- if (pow_ii(&c__2, &i__1) != nodu) {
-
-/* Dotted rest, hpause or longer */
-
-/* Writing concatenation */
-#line 19761 ""
- i__6[0] = *lnote, a__4[0] = notexq;
-#line 19761 ""
- i__6[1] = 1, a__4[1] = "p";
-#line 19761 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19762 ""
- ++(*lnote);
-#line 19763 ""
- i__1 = log2_(&nodu);
-#line 19763 ""
- if (nodu << 1 > pow_ii(&c__2, &i__1) * 3) {
-
-/* Double dotted long rest */
-
-/* Writing concatenation */
-#line 19767 ""
- i__6[0] = *lnote, a__4[0] = notexq;
-#line 19767 ""
- i__6[1] = 1, a__4[1] = "p";
-#line 19767 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19768 ""
- ++(*lnote);
-#line 19769 ""
- }
-#line 19770 ""
- }
-#line 19771 ""
- } else {
-
-/* Raised or lowered half or whole rest */
-
-#line 19775 ""
- if (nodu == 32) {
-/* Writing concatenation */
-#line 19776 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19776 ""
- i__6[1] = 10, a__4[1] = "lifthpause";
-#line 19776 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19777 ""
- *lnote = 11;
-#line 19778 ""
- } else if (nodu == 48) {
-/* Writing concatenation */
-#line 19779 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19779 ""
- i__6[1] = 11, a__4[1] = "lifthpausep";
-#line 19779 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19780 ""
- *lnote = 12;
-#line 19781 ""
- } else if (nodu == 56) {
-/* Writing concatenation */
-#line 19782 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19782 ""
- i__6[1] = 12, a__4[1] = "lifthpausepp";
-#line 19782 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19783 ""
- *lnote = 13;
-#line 19784 ""
- } else if (nodu == 64) {
-/* Writing concatenation */
-#line 19785 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19785 ""
- i__6[1] = 9, a__4[1] = "liftpause";
-#line 19785 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19786 ""
- *lnote = 10;
-#line 19787 ""
- } else if (nodu == 96) {
-/* Writing concatenation */
-#line 19788 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19788 ""
- i__6[1] = 10, a__4[1] = "liftpausep";
-#line 19788 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19789 ""
- *lnote = 11;
-#line 19790 ""
- } else if (nodu == 112) {
-/* Writing concatenation */
-#line 19791 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19791 ""
- i__6[1] = 11, a__4[1] = "liftpausepp";
-#line 19791 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19792 ""
- *lnote = 12;
-#line 19793 ""
- } else if (nodu == 128) {
-/* Writing concatenation */
-#line 19794 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19794 ""
- i__6[1] = 9, a__4[1] = "liftPAuse";
-#line 19794 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19795 ""
- *lnote = 10;
-#line 19796 ""
- } else {
-
-/* Assume dotted double whole rest */
-
-/* Writing concatenation */
-#line 19800 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 19800 ""
- i__6[1] = 10, a__4[1] = "liftPAusep";
-#line 19800 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19801 ""
- *lnote = 11;
-#line 19802 ""
- }
-
-/* Set up height spec */
-
-#line 19806 ""
- i__1 = abs(nole) / 2;
-#line 19806 ""
- nole = i_sign(&i__1, &nole);
-#line 19807 ""
- if (nole <= 9 && nole >= 0) {
-#line 19808 ""
- i__1 = nole + 48;
-#line 19808 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 19808 ""
- s_copy(noteq, ch__1, (ftnlen)8, (ftnlen)1);
-#line 19809 ""
- lnoten = 1;
-#line 19810 ""
- } else {
-#line 19811 ""
- s_copy(noteq, "{", (ftnlen)8, (ftnlen)1);
-#line 19812 ""
- if (nole >= -9) {
-#line 19813 ""
- s_wsfi(&io___1207);
-#line 19813 ""
- do_fio(&c__1, (char *)&nole, (ftnlen)sizeof(integer));
-#line 19813 ""
- e_wsfi();
-#line 19814 ""
- lnoten = 3;
-#line 19815 ""
- } else {
-#line 19816 ""
- s_wsfi(&io___1208);
-#line 19816 ""
- do_fio(&c__1, (char *)&nole, (ftnlen)sizeof(integer));
-#line 19816 ""
- e_wsfi();
-#line 19817 ""
- lnoten = 4;
-#line 19818 ""
- }
-/* Writing concatenation */
-#line 19819 ""
- i__6[0] = lnoten, a__4[0] = noteq;
-#line 19819 ""
- i__6[1] = 1, a__4[1] = "}";
-#line 19819 ""
- s_cat(noteq, a__4, i__6, &c__2, (ftnlen)8);
-#line 19820 ""
- ++lnoten;
-#line 19821 ""
- }
-/* Writing concatenation */
-#line 19822 ""
- i__6[0] = *lnote, a__4[0] = notexq;
-#line 19822 ""
- i__6[1] = lnoten, a__4[1] = noteq;
-#line 19822 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 19823 ""
- *lnote += lnoten;
-#line 19824 ""
- }
-#line 19825 ""
- }
-#line 19826 ""
- }
-#line 19827 ""
- return 0;
-} /* notex_ */
-
-integer ntindex_(char *line, char *s2q, integer *lenline, ftnlen line_len,
- ftnlen s2q_len)
-{
- /* System generated locals */
- address a__1[2];
- integer ret_val, i__1, i__2, i__3[2];
- char ch__1[1], ch__2[2];
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), s_cmp(char *, char *,
- ftnlen, ftnlen);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
-
- /* Local variables */
- static integer ic, len;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer ndxs2, ndxbs;
- static logical intex;
- extern integer lenstr_(char *, integer *, ftnlen);
-
-
-/* Returns index(line,s2q) if NOT in TeX string, 0 otherwise */
-
-#line 19836 ""
- ndxs2 = i_indx(line, s2q, line_len, s2q_len);
-#line 19837 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 19837 ""
- ndxbs = i_indx(line, ch__1, line_len, (ftnlen)1);
-#line 19838 ""
- if (ndxbs == 0 || ndxs2 < ndxbs) {
-#line 19839 ""
- ret_val = ndxs2;
-#line 19840 ""
- } 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 19845 ""
- len = lenstr_(line, lenline, line_len);
-#line 19846 ""
- intex = TRUE_;
-#line 19847 ""
- i__1 = len;
-#line 19847 ""
- for (ic = ndxbs + 1; ic <= i__1; ++ic) {
-#line 19848 ""
- if (ic == ndxs2) {
-#line 19849 ""
- if (intex) {
-#line 19850 ""
- ret_val = 0;
-#line 19851 ""
- i__2 = ic;
-#line 19851 ""
- ndxs2 = i_indx(line + i__2, s2q, len - i__2, s2q_len) +
- ic;
-#line 19852 ""
- } else {
-#line 19853 ""
- ret_val = ndxs2;
-#line 19854 ""
- return ret_val;
-#line 19855 ""
- }
-#line 19856 ""
- } else /* if(complicated condition) */ {
-#line 19856 ""
- i__2 = ic;
-/* Writing concatenation */
-#line 19856 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 19856 ""
- i__3[0] = 1, a__1[0] = ch__1;
-#line 19856 ""
- i__3[1] = 1, a__1[1] = " ";
-#line 19856 ""
- s_cat(ch__2, a__1, i__3, &c__2, (ftnlen)2);
-#line 19856 ""
- if (intex && s_cmp(line + i__2, ch__2, ic + 2 - i__2, (ftnlen)
- 2) == 0) {
-#line 19857 ""
- intex = FALSE_;
-#line 19858 ""
- } else /* if(complicated condition) */ {
-#line 19858 ""
- i__2 = ic;
-/* Writing concatenation */
-#line 19858 ""
- i__3[0] = 1, a__1[0] = " ";
-#line 19858 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 19858 ""
- i__3[1] = 1, a__1[1] = ch__1;
-#line 19858 ""
- s_cat(ch__2, a__1, i__3, &c__2, (ftnlen)2);
-#line 19858 ""
- if (! intex && s_cmp(line + i__2, ch__2, ic + 2 - i__2, (
- ftnlen)2) == 0) {
-#line 19860 ""
- intex = TRUE_;
-#line 19861 ""
- }
-#line 19861 ""
- }
-#line 19861 ""
- }
-#line 19862 ""
-/* L1: */
-#line 19862 ""
- }
-#line 19863 ""
- }
-#line 19864 ""
- return ret_val;
-} /* ntindex_ */
-
-/* Subroutine */ int ntrbbb_(integer *n, char *char1q, char *ulqq, integer *
- iv, char *notexq, integer *lnote, ftnlen char1q_len, ftnlen ulqq_len,
- ftnlen notexq_len)
-{
- /* System generated locals */
- address a__1[3], a__2[2];
- integer i__1[3], i__2[2], i__3;
- char ch__1[1];
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
-
- /* Local variables */
- static integer im, len;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- extern /* Subroutine */ int stop1_(void);
- static char tempq[4];
- extern /* Subroutine */ int printl_(char *, ftnlen), istring_(integer *,
- char *, integer *, ftnlen);
-
-
-/* This appends to notexq e.g. '\ibbbu1' */
-
-#line 19875 ""
- if (*n >= 5) {
-#line 19875 ""
- combbm_1.isbbm = TRUE_;
-#line 19875 ""
- }
-#line 19876 ""
- if (*lnote > 0) {
-/* Writing concatenation */
-#line 19877 ""
- i__1[0] = *lnote, a__1[0] = notexq;
-#line 19877 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 19877 ""
- i__1[1] = 1, a__1[1] = ch__1;
-#line 19877 ""
- i__1[2] = 1, a__1[2] = char1q;
-#line 19877 ""
- s_cat(notexq, a__1, i__1, &c__3, (ftnlen)79);
-#line 19878 ""
- } else {
-/* Writing concatenation */
-#line 19879 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 19879 ""
- i__2[0] = 1, a__2[0] = ch__1;
-#line 19879 ""
- i__2[1] = 1, a__2[1] = char1q;
-#line 19879 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 19880 ""
- }
-#line 19881 ""
- *lnote += 2;
-#line 19882 ""
- i__3 = *n;
-#line 19882 ""
- for (im = 1; im <= i__3; ++im) {
-/* Writing concatenation */
-#line 19883 ""
- i__2[0] = *lnote, a__2[0] = notexq;
-#line 19883 ""
- i__2[1] = 1, a__2[1] = "b";
-#line 19883 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)79);
-#line 19884 ""
- ++(*lnote);
-#line 19885 ""
-/* L3: */
-#line 19885 ""
- }
-
-/* add the number, 0 if 12 */
-
-/* 5/25/08 Allow >12 */
-
-/* call istring(mod(iv,12),tempq,len) */
-#line 19892 ""
- if (*iv < 24) {
-#line 19893 ""
- istring_(iv, tempq, &len, (ftnlen)4);
-#line 19894 ""
- } else if (*iv == 24) {
-#line 19895 ""
- *(unsigned char *)tempq = '0';
-#line 19896 ""
- len = 1;
-#line 19897 ""
- } else {
-#line 19898 ""
- printl_("Sorry, too man open beams", (ftnlen)25);
-#line 19899 ""
- stop1_();
-#line 19900 ""
- }
-/* Writing concatenation */
-#line 19901 ""
- i__1[0] = *lnote, a__1[0] = notexq;
-#line 19901 ""
- i__1[1] = 1, a__1[1] = ulqq;
-#line 19901 ""
- i__1[2] = len, a__1[2] = tempq;
-#line 19901 ""
- s_cat(notexq, a__1, i__1, &c__3, (ftnlen)79);
-#line 19902 ""
- *lnote = *lnote + 1 + len;
-#line 19903 ""
- return 0;
-} /* ntrbbb_ */
-
-integer numclef_(char *clefq, ftnlen clefq_len)
-{
- /* System generated locals */
- integer ret_val;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen);
-
-
-/* Returns the number to be used as argument of \setclef for MusiXTeX */
-/* For input 0-6 or tsmanrb return 0-7 */
-/* 7 f 9 */
-/* 8 0 */
-
-#line 19913 ""
- if (*(unsigned char *)clefq < 55) {
-/* if (ichar(clefq) .le. 55) then */
-#line 19915 ""
- ret_val = *(unsigned char *)clefq - 48;
-/* if (numclef .eq. 7) numclef = 9 */
-#line 19917 ""
- } else if (*(unsigned char *)clefq == '7') {
-#line 19918 ""
- ret_val = 9;
-#line 19919 ""
- } else if (*(unsigned char *)clefq == '8') {
-#line 19920 ""
- ret_val = 0;
-#line 19921 ""
- } else {
-#line 19922 ""
- ret_val = i_indx("tsmanrbxxf", clefq, (ftnlen)10, (ftnlen)1) - 1;
-#line 19923 ""
- }
-#line 19924 ""
- return ret_val;
-} /* numclef_ */
-
-/* Subroutine */ int outbar_(integer *i__, integer *jlast)
-{
- /* System generated locals */
- address a__1[3];
- integer i__1[3], i__2;
- real r__1;
- char ch__1[9], ch__2[1], ch__3[11];
- cilist ci__1;
-
- /* Builtin functions */
- double r_lg10(real *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
-
- /* Local variables */
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer nfmt;
-
-#line 19928 ""
- r__1 = *i__ + .5f;
-#line 19928 ""
- nfmt = r_lg10(&r__1) + 2;
-#line 19929 ""
- if (*jlast + 5 + nfmt < 80) {
-#line 19930 ""
- ci__1.cierr = 0;
-#line 19930 ""
- ci__1.ciunit = 6;
-/* Writing concatenation */
-#line 19930 ""
- i__1[0] = 5, a__1[0] = "(a5,i";
-#line 19930 ""
- i__2 = nfmt + 48;
-#line 19930 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 19930 ""
- i__1[1] = 1, a__1[1] = ch__2;
-#line 19930 ""
- i__1[2] = 3, a__1[2] = ",$)";
-#line 19930 ""
- ci__1.cifmt = (s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)9), ch__1);
-#line 19930 ""
- s_wsfe(&ci__1);
-#line 19930 ""
- do_fio(&c__1, " Bar", (ftnlen)5);
-#line 19930 ""
- do_fio(&c__1, (char *)&(*i__), (ftnlen)sizeof(integer));
-#line 19930 ""
- e_wsfe();
-#line 19931 ""
- ci__1.cierr = 0;
-#line 19931 ""
- ci__1.ciunit = 15;
-/* Writing concatenation */
-#line 19931 ""
- i__1[0] = 5, a__1[0] = "(a5,i";
-#line 19931 ""
- i__2 = nfmt + 48;
-#line 19931 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 19931 ""
- i__1[1] = 1, a__1[1] = ch__2;
-#line 19931 ""
- i__1[2] = 3, a__1[2] = ",$)";
-#line 19931 ""
- ci__1.cifmt = (s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)9), ch__1);
-#line 19931 ""
- s_wsfe(&ci__1);
-#line 19931 ""
- do_fio(&c__1, " Bar", (ftnlen)5);
-#line 19931 ""
- do_fio(&c__1, (char *)&(*i__), (ftnlen)sizeof(integer));
-#line 19931 ""
- e_wsfe();
-#line 19932 ""
- *jlast = *jlast + 5 + nfmt;
-#line 19933 ""
- } else {
-#line 19934 ""
- ci__1.cierr = 0;
-#line 19934 ""
- ci__1.ciunit = 6;
-/* Writing concatenation */
-#line 19934 ""
- i__1[0] = 7, a__1[0] = "(/,a5,i";
-#line 19934 ""
- i__2 = nfmt + 48;
-#line 19934 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 19934 ""
- i__1[1] = 1, a__1[1] = ch__2;
-#line 19934 ""
- i__1[2] = 3, a__1[2] = ",$)";
-#line 19934 ""
- ci__1.cifmt = (s_cat(ch__3, a__1, i__1, &c__3, (ftnlen)11), ch__3);
-#line 19934 ""
- s_wsfe(&ci__1);
-#line 19934 ""
- do_fio(&c__1, " Bar", (ftnlen)5);
-#line 19934 ""
- do_fio(&c__1, (char *)&(*i__), (ftnlen)sizeof(integer));
-#line 19934 ""
- e_wsfe();
-#line 19935 ""
- ci__1.cierr = 0;
-#line 19935 ""
- ci__1.ciunit = 15;
-/* Writing concatenation */
-#line 19935 ""
- i__1[0] = 7, a__1[0] = "(/,a5,i";
-#line 19935 ""
- i__2 = nfmt + 48;
-#line 19935 ""
- chax_(ch__2, (ftnlen)1, &i__2);
-#line 19935 ""
- i__1[1] = 1, a__1[1] = ch__2;
-#line 19935 ""
- i__1[2] = 3, a__1[2] = ",$)";
-#line 19935 ""
- ci__1.cifmt = (s_cat(ch__3, a__1, i__1, &c__3, (ftnlen)11), ch__3);
-#line 19935 ""
- s_wsfe(&ci__1);
-#line 19935 ""
- do_fio(&c__1, " Bar", (ftnlen)5);
-#line 19935 ""
- do_fio(&c__1, (char *)&(*i__), (ftnlen)sizeof(integer));
-#line 19935 ""
- e_wsfe();
-#line 19936 ""
- *jlast = nfmt + 5;
-#line 19937 ""
- }
-#line 19938 ""
- return 0;
-} /* outbar_ */
-
-/* Subroutine */ int pmxa_(char *basenameq, integer *lbase, logical *isfirst,
- integer *nsyout, integer *nbarss, logical *optimize, ftnlen
- basenameq_len)
-{
- /* Initialized data */
-
- static real wtimesig = .72f;
- static real wclef = .8f;
- static real wkeysig = .28f;
-
- /* System generated locals */
- integer i__1, i__2, i__3, i__4, i__5, i__6;
- real r__1, r__2, r__3, r__4;
- doublereal d__1, d__2;
- olist o__1;
- cllist cl__1;
- alist al__1;
-
- /* Builtin functions */
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen), s_wsfe(cilist *), do_fio(integer *, char *, ftnlen),
- e_wsfe(void), f_open(olist *), f_clos(cllist *), i_nint(real *);
- double pow_dd(doublereal *, doublereal *);
- integer f_rew(alist *);
-
- /* Local variables */
- extern /* Subroutine */ int g1etnote_(logical *, integer *, logical *,
- logical *);
- extern integer i1fnodur_(integer *, char *, ftnlen);
- extern /* Subroutine */ int makeabar_(void);
- static real xmtrnum0, heightil;
- extern /* Subroutine */ int findeonk_(integer *, integer *, real *, real *
- , real *, real *, real *);
- static real elsstarg;
- static logical cstuplet;
- static real c__, d__;
- static integer i__, j, listcresc;
- extern /* Subroutine */ int getpmxmod_(logical *, char *, ftnlen);
- static integer isysendpg;
- static logical fulltrans;
- static integer ip, nomnsystp, kv;
- static real xn;
- static integer nns, isy, listdecresc, key1, key2;
- static real diff;
- static integer iflb, ifig, ifpb, ioff;
- extern doublereal feon_(real *);
- static real elsk[3999];
- static integer ikey;
- static real elss[125];
- static logical loop;
- static real wdpt;
- static integer iptr;
- static real diff1;
- static integer ibar1;
- extern doublereal f1eon_(real *);
- extern /* Subroutine */ int stop1_(void);
- static integer ipage, naccs;
- static real celsk[4000];
- static logical newmb[3999];
- static integer ibars;
- static real dtmin, dtmax, xelsk, wmins;
- static integer ivnow, ibarb4;
- static real fsyst;
- static integer isyst;
- static real elmin0, elmin1;
- static integer isysb4;
- static real omegag, facins, glueil;
- extern /* Subroutine */ int outbar_(integer *, integer *);
- static integer jprntb, nintpg, mtrdnp, mtrnmp;
- extern /* Subroutine */ int printl_(char *, ftnlen);
- static integer nshort;
- static real wminpt, poenom, celskb4, xiltxt;
- static integer nsystp;
- static real wsyspt;
- extern /* Subroutine */ int g1etset_(integer *, integer *, integer *,
- integer *, integer *, integer *, real *, integer *, integer *,
- integer *, integer *, logical *);
- static integer lenbeat, lastbar[126];
- static real xilfrac;
- static integer iflbnow;
- static logical bottreb;
- static integer mtrdenl, imovbrk, lenmult, iscount;
- static real sumelsk;
- static integer instnow, nsystpp;
-
- /* Fortran I/O blocks */
- static cilist io___1222 = { 0, 6, 0, 0, 0 };
- static cilist io___1223 = { 0, 6, 0, 0, 0 };
- static cilist io___1224 = { 0, 15, 0, "(a)", 0 };
- static cilist io___1225 = { 0, 19, 0, "(i6)", 0 };
- static cilist io___1237 = { 0, 6, 0, 0, 0 };
- static cilist io___1241 = { 0, 6, 0, 0, 0 };
- static cilist io___1247 = { 0, 15, 0, "(/,a20,i4,a1,i4)", 0 };
- static cilist io___1248 = { 0, 6, 0, "(/,a20,i4,a1,i4)", 0 };
- static cilist io___1253 = { 0, 6, 0, 0, 0 };
- static cilist io___1255 = { 0, 6, 0, 0, 0 };
- static cilist io___1256 = { 0, 6, 0, 0, 0 };
- static cilist io___1257 = { 0, 6, 0, 0, 0 };
- static cilist io___1258 = { 0, 15, 0, "(a,2i5)", 0 };
- static cilist io___1259 = { 0, 15, 0, "(a)", 0 };
- static cilist io___1261 = { 0, 12, 0, "(a)", 0 };
- static cilist io___1262 = { 0, 12, 0, 0, 0 };
- static cilist io___1263 = { 0, 12, 0, "(6f10.5/f10.5,3i5)", 0 };
- static cilist io___1264 = { 0, 12, 0, 0, 0 };
- static cilist io___1283 = { 0, 12, 0, 0, 0 };
- static cilist io___1298 = { 0, 12, 0, "(i5)", 0 };
- static cilist io___1316 = { 0, 12, 0, "(1pe12.5/i5,5e12.3)", 0 };
- static cilist io___1317 = { 0, 13, 0, "(i5)", 0 };
- static cilist io___1318 = { 0, 6, 0, "(/,a)", 0 };
- static cilist io___1319 = { 0, 6, 0, 0, 0 };
- static cilist io___1320 = { 0, 15, 0, "(/,a)", 0 };
- static cilist io___1321 = { 0, 15, 0, "()", 0 };
-
-
-/* ccccccccccccccccccccccccccccccccccccccccccccccc */
-/* c cc */
-/* c Subroutine, combine with pmxb.for */
-/* c */
-/* ccccccccccccccccccccccccccccccccccccccccccccccc */
-/* c */
-/* c Need to consider X spaces in xtuplets when getting poenom, and */
-/* c maybe fbar? */
-/* c mx06a */
-/* c ID numbers for voices when number of voices is reduced. */
-/* c */
-/* c mx03a */
-/* c account for new fracindent for new movements. */
-/* c */
-/* c Known changes since pmxa. Version 1.1b (see pmxb for longer list) */
-/* c */
-/* c Check ID codes for slurs. */
-/* c Version 1.24 still does not have details for spacing/positioning */
-/* c arpeggios if there are accidentals or shifted notes or crowded scores. */
-/* c Fix problem in 1.22 with arpeggios across multi-line staves */
-/* c Fix problem in 1.22 with flat key signatures */
-/* c Read setup data as strings */
-/* c Warning for octave designation plus +/- */
-/* c Don't pause for volta warning, */
-/* c Macros */
-/* c Correct fsyst to account for transposition and key changes. */
-/* c Check for nbars > nsyst */
-/* c */
-/* cccccccccccccccccccccccccccccccccc */
-/* * ibaroff,udsp(nkb),wheadpt,gotclef,sqzb(maxblks) */
-/* logical mrecord,mplay,endmac,gotclef,cstuplet */
-#line 20027 ""
- /* Parameter adjustments */
-#line 20027 ""
- --nbarss;
-#line 20027 ""
-
-#line 20027 ""
- /* Function Body */
-/* data poefa /125*1./ */
-/* This corrected a problem in Bob Tennent's compilation of pmx2.94 */
-
-#line 20032 ""
- for (i__ = 1; i__ <= 125; ++i__) {
-#line 20033 ""
- comshort_1.poefa[i__ - 1] = 1.f;
-#line 20034 ""
-/* L97: */
-#line 20034 ""
- }
-#line 20035 ""
- comis4bignv_1.is4bignv = FALSE_;
-#line 20036 ""
- comis4bignv_1.aiset = FALSE_;
-#line 20037 ""
- commus_1.whead20 = .3f;
-#line 20038 ""
- comshort_1.ishort = 0;
-#line 20039 ""
- if (! (*optimize)) {
-#line 20040 ""
- s_wsle(&io___1222);
-#line 20040 ""
- e_wsle();
-#line 20041 ""
- s_wsle(&io___1223);
-#line 20041 ""
- do_lio(&c__9, &c__1, "Starting first PMX pass", (ftnlen)23);
-#line 20041 ""
- e_wsle();
-#line 20042 ""
- s_wsfe(&io___1224);
-#line 20042 ""
- do_fio(&c__1, " Starting first PMX pass", (ftnlen)24);
-#line 20042 ""
- e_wsfe();
-#line 20043 ""
- }
-#line 20044 ""
- if (*isfirst) {
-#line 20045 ""
- o__1.oerr = 0;
-#line 20045 ""
- o__1.ounit = 19;
-#line 20045 ""
- o__1.ofnmlen = 11;
-#line 20045 ""
- o__1.ofnm = "pmxaerr.dat";
-#line 20045 ""
- o__1.orl = 0;
-#line 20045 ""
- o__1.osta = 0;
-#line 20045 ""
- o__1.oacc = 0;
-#line 20045 ""
- o__1.ofm = 0;
-#line 20045 ""
- o__1.oblnk = 0;
-#line 20045 ""
- f_open(&o__1);
-#line 20046 ""
- s_wsfe(&io___1225);
-#line 20046 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 20046 ""
- e_wsfe();
-#line 20047 ""
- cl__1.cerr = 0;
-#line 20047 ""
- cl__1.cunit = 19;
-#line 20047 ""
- cl__1.csta = 0;
-#line 20047 ""
- f_clos(&cl__1);
-#line 20048 ""
- }
-#line 20049 ""
- if (! (*optimize)) {
-#line 20049 ""
- jprntb = 81;
-#line 20049 ""
- }
-#line 20050 ""
- commac_1.macuse = 0;
-#line 20051 ""
- comkeys_1.ornrpt = FALSE_;
-#line 20052 ""
- comkeys_1.stickys = FALSE_;
-#line 20053 ""
- commac_1.mrecord = FALSE_;
-#line 20054 ""
- commac_1.mplay = FALSE_;
-#line 20055 ""
- c1omget_1.lastchar = FALSE_;
-#line 20056 ""
- comnvst_2.novshrinktop = FALSE_;
-#line 20057 ""
- cstuplet = FALSE_;
-#line 20058 ""
- comslur_1.fontslur = TRUE_;
-#line 20059 ""
- comligfont_1.isligfont = FALSE_;
-#line 20060 ""
- fulltrans = FALSE_;
-#line 20061 ""
- for (c1omnotes_1.ibarcnt = 1; c1omnotes_1.ibarcnt <= 3999;
- ++c1omnotes_1.ibarcnt) {
-#line 20062 ""
- c1omnotes_1.udsp[c1omnotes_1.ibarcnt - 1] = 0.f;
-#line 20063 ""
- c1omnotes_1.wminnh[c1omnotes_1.ibarcnt - 1] = -1.f;
-#line 20064 ""
-/* L42: */
-#line 20064 ""
- }
-
-/* Initialize input buffer */
-
-#line 20068 ""
- c1omget_1.lenbuf0 = inbuff_1.ipbuf;
-#line 20069 ""
- inbuff_1.ipbuf = 0;
-#line 20070 ""
- inbuff_1.ilbuf = 1;
-#line 20071 ""
- 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 20076 ""
- ivnow = 0;
-#line 20077 ""
- i__1 = comkeys_1.noinst;
-#line 20077 ""
- for (instnow = 1; instnow <= i__1; ++instnow) {
-#line 20078 ""
- i__2 = c1omget_1.nsperi[instnow - 1];
-#line 20078 ""
- for (iscount = 1; iscount <= i__2; ++iscount) {
-#line 20079 ""
- ++ivnow;
-#line 20080 ""
- cominsttrans_1.instno[ivnow - 1] = instnow;
-#line 20081 ""
-/* L14: */
-#line 20081 ""
- }
-#line 20082 ""
-/* L13: */
-#line 20082 ""
- }
-
-/* Save initial meter for midi */
-
-#line 20086 ""
- if (! (*isfirst) && compage_1.npages == 0) {
-#line 20087 ""
- s_wsle(&io___1237);
-#line 20087 ""
- do_lio(&c__9, &c__1, "Sorry, must have npages>0 for optimization.", (
- ftnlen)43);
-#line 20087 ""
- e_wsle();
-#line 20088 ""
- stop1_();
-#line 20089 ""
- }
-#line 20090 ""
- *nsyout = compage_1.nsyst;
-
-/* isig1 will be changed in getnote if there is a transposition */
-
-#line 20094 ""
- comkeys_1.isig1 = comkeys_1.newkey[0];
-#line 20095 ""
- if (compage_1.npages > compage_1.nsyst) {
-#line 20096 ""
- printl_("npages > nsyst in input. Please fix the input.", (ftnlen)47)
- ;
-#line 20097 ""
- stop1_();
-#line 20098 ""
- }
-
-/* fbar = afterruleskip/elemskip */
-/* apt = width of small accidental + space in points (= 6 at 20pt) =wheadpt */
-
-#line 20103 ""
- c1ommvl_1.fbar = 1.f;
-#line 20104 ""
- c1omnotes_1.wheadpt = commus_1.whead20 * commus_1.musize;
-#line 20105 ""
- ifig = 0;
-#line 20106 ""
- compage_1.usefig = TRUE_;
-#line 20107 ""
- lenbeat = i1fnodur_(&mtrdenl, "x", (ftnlen)1);
-#line 20108 ""
- lenmult = 1;
-#line 20109 ""
- if (mtrdenl == 2) {
-#line 20110 ""
- lenbeat = 16;
-#line 20111 ""
- lenmult = 2;
-#line 20112 ""
- }
-#line 20113 ""
- a1ll_2.lenbr1 = lenmult * a1ll_2.mtrnuml * lenbeat;
-#line 20114 ""
- r__1 = lenmult * xmtrnum0 * lenbeat;
-#line 20114 ""
- a1ll_2.lenbr0 = i_nint(&r__1);
-#line 20115 ""
- a1ll_2.mtrnuml = 0;
-#line 20116 ""
- if (a1ll_2.lenbr0 != 0) {
-#line 20117 ""
- c1omnotes_1.ibaroff = 1;
-#line 20118 ""
- a1ll_2.lenbar = a1ll_2.lenbr0;
-#line 20119 ""
- } else {
-#line 20120 ""
- c1omnotes_1.ibaroff = 0;
-#line 20121 ""
- a1ll_2.lenbar = a1ll_2.lenbr1;
-#line 20122 ""
- }
-#line 20123 ""
- c1omnotes_1.ibarcnt = 0;
-#line 20124 ""
- c1omnotes_1.nptr[0] = 1;
-#line 20125 ""
- a1ll_2.iccount = 128;
-#line 20126 ""
- compage_1.nmovbrk = 0;
-#line 20127 ""
- compage_1.nflb = 0;
-#line 20128 ""
- compage_1.nfpb = 0;
-#line 20129 ""
- compage_1.ipagfpb[0] = 1;
-#line 20130 ""
- compage_1.isysfpb[0] = 1;
-#line 20131 ""
- compage_1.ibarflb[0] = 1;
-#line 20132 ""
- compage_1.isysflb[0] = 1;
-#line 20133 ""
- compage_1.nistaff[0] = a1ll_2.nv - 1;
-
-/* Check for pmx.mod */
-
-#line 20137 ""
- c1omget_1.linesinpmxmod = 0;
-/* line1pmxmod = ilbuf */
-#line 20139 ""
- getpmxmod_(&c_true, " ", (ftnlen)1);
-#line 20140 ""
- if (! (*isfirst) && c1omget_1.linesinpmxmod > 0) {
-#line 20141 ""
- s_wsle(&io___1241);
-#line 20141 ""
- do_lio(&c__9, &c__1, "Sorry, cannot optimize if there is a pmx.mod f"\
- "ile", (ftnlen)49);
-#line 20141 ""
- e_wsle();
-#line 20142 ""
- stop1_();
-#line 20143 ""
- }
-
-/* Initialize for loop over lines */
-
-#line 20147 ""
- comkeys_1.nkeys = 1;
-#line 20148 ""
- comkeys_1.ibrkch[0] = 1;
-#line 20149 ""
- comkeys_1.mbrestsav = 0;
-#line 20150 ""
- comkeys_1.shifton = FALSE_;
-#line 20151 ""
- a1ll_2.firstline = TRUE_;
-#line 20152 ""
- a1ll_2.newmeter = FALSE_;
-#line 20153 ""
- c1omget_1.ihead = 0;
-#line 20154 ""
- c1omget_1.isheadr = FALSE_;
-/* gotclef = .false. */
-#line 20156 ""
- comkeys_1.idsig = 0;
-#line 20157 ""
- c1omnotes_1.iddot = 0;
-#line 20158 ""
- compage_1.fintstf = -1.f;
-#line 20159 ""
- compage_1.gintstf = 1.f;
-#line 20160 ""
- listcresc = 0;
-#line 20161 ""
- listdecresc = 0;
-#line 20162 ""
-L30:
-#line 20162 ""
- loop = TRUE_;
-#line 20163 ""
- comkeys_1.iskchb = FALSE_;
-#line 20164 ""
- c1omget_1.issegno = FALSE_;
-#line 20165 ""
- a1ll_2.nbars = 0;
-#line 20166 ""
- c1omnotes_1.ibarmbr = 0;
-#line 20167 ""
- i__1 = a1ll_2.nv;
-#line 20167 ""
- for (a1ll_2.iv = 1; a1ll_2.iv <= i__1; ++a1ll_2.iv) {
-#line 20168 ""
- c1ommvl_1.nvmx[a1ll_2.iv - 1] = 1;
-#line 20169 ""
- c1ommvl_1.ivmx[a1ll_2.iv - 1] = a1ll_2.iv;
-#line 20170 ""
- a1ll_2.itsofar[a1ll_2.iv - 1] = 0;
-#line 20171 ""
- a1ll_2.nnl[a1ll_2.iv - 1] = 0;
-#line 20172 ""
- for (j = 1; j <= 200; ++j) {
-#line 20173 ""
- a1ll_2.rest[a1ll_2.iv + j * 24 - 25] = FALSE_;
-#line 20174 ""
- c1ommvl_1.nacc[a1ll_2.iv + j * 24 - 25] = 0.f;
-#line 20175 ""
-/* L5: */
-#line 20175 ""
- }
-#line 20176 ""
-/* L4: */
-#line 20176 ""
- }
-#line 20177 ""
- a1ll_2.iv = 1;
-#line 20178 ""
- c1ommvl_1.ivx = 1;
-#line 20179 ""
- c1omget_1.fbon = FALSE_;
-#line 20180 ""
- comkeys_1.barend = FALSE_;
-#line 20181 ""
- c1omget_1.isvolt = FALSE_;
-#line 20182 ""
-L2:
-#line 20182 ""
- if (loop) {
-
-/* Within this short loop, nv voices are filled up for the duration of a block. */
-/* On exit (loop=.false.) the following are set: nnl(nv),itsofar(nv) */
-/* nodur(..),rest(..). nnl will later be */
-/* increased and things slid around as accidental skips are added. */
-
-#line 20189 ""
- g1etnote_(&loop, &ifig, optimize, &fulltrans);
-#line 20190 ""
- if (c1omget_1.lastchar) {
-#line 20190 ""
- goto L20;
-#line 20190 ""
- }
-#line 20191 ""
- goto L2;
-#line 20192 ""
- }
-#line 20193 ""
- if (comkeys_1.mbrestsav > 0) {
-#line 20194 ""
- printl_(" ", (ftnlen)1);
-#line 20195 ""
- printl_("You must enter the same multibar rest in ALL parts", (ftnlen)
- 50);
-#line 20197 ""
- stop1_();
-#line 20198 ""
- }
-#line 20199 ""
- i__1 = a1ll_2.nbars;
-#line 20199 ""
- for (a1ll_2.ibar = 1; a1ll_2.ibar <= i__1; ++a1ll_2.ibar) {
-#line 20200 ""
- ++c1omnotes_1.ibarcnt;
-
-/* The following is just a signal to start a new bar when cataloging spaces */
-/* for catspace(...) */
-
-#line 20205 ""
- c1omnotes_1.nptr[c1omnotes_1.ibarcnt] = c1omnotes_1.nptr[
- c1omnotes_1.ibarcnt - 1];
-#line 20206 ""
- newmb[c1omnotes_1.ibarcnt - 1] = FALSE_;
-#line 20207 ""
- if (a1ll_2.newmeter && a1ll_2.ibar == 1) {
-#line 20207 ""
- newmb[c1omnotes_1.ibarcnt - 1] = TRUE_;
-#line 20207 ""
- }
-
-/* Above is only for spacing calcs later on. Remember new meter can only occur */
-/* at START of a new input line (ibar = 1) */
-
-#line 20212 ""
- if (a1ll_2.ibar != c1omnotes_1.ibarmbr) {
-#line 20213 ""
- if (! (*optimize)) {
-#line 20213 ""
- i__2 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff;
-#line 20213 ""
- outbar_(&i__2, &jprntb);
-#line 20213 ""
- }
-#line 20214 ""
- } else {
-#line 20215 ""
- if (! (*optimize)) {
-#line 20216 ""
- s_wsfe(&io___1247);
-#line 20216 ""
- do_fio(&c__1, " Multibar rest, bars", (ftnlen)20);
-#line 20216 ""
- i__2 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff;
-#line 20216 ""
- do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer));
-#line 20216 ""
- do_fio(&c__1, "-", (ftnlen)1);
-#line 20216 ""
- i__3 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- c1omnotes_1.mbrest - 1;
-#line 20216 ""
- do_fio(&c__1, (char *)&i__3, (ftnlen)sizeof(integer));
-#line 20216 ""
- e_wsfe();
-#line 20218 ""
- s_wsfe(&io___1248);
-#line 20218 ""
- do_fio(&c__1, " Multibar rest, bars", (ftnlen)20);
-#line 20218 ""
- i__2 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff;
-#line 20218 ""
- do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer));
-#line 20218 ""
- do_fio(&c__1, "-", (ftnlen)1);
-#line 20218 ""
- i__3 = c1omnotes_1.ibarcnt - c1omnotes_1.ibaroff +
- c1omnotes_1.mbrest - 1;
-#line 20218 ""
- do_fio(&c__1, (char *)&i__3, (ftnlen)sizeof(integer));
-#line 20218 ""
- e_wsfe();
-#line 20220 ""
- jprntb = 0;
-#line 20221 ""
- }
-#line 20222 ""
- c1omnotes_1.ibaroff = c1omnotes_1.ibaroff - c1omnotes_1.mbrest +
- 1;
-#line 20223 ""
- }
-#line 20224 ""
- if (a1ll_2.firstline && a1ll_2.lenbr0 != 0) {
-#line 20225 ""
- if (a1ll_2.ibar == 1) {
-#line 20226 ""
- a1ll_2.lenbar = a1ll_2.lenbr0;
-#line 20227 ""
- } else {
-#line 20228 ""
- a1ll_2.lenbar = a1ll_2.lenbr1;
-#line 20229 ""
- }
-#line 20230 ""
- }
-#line 20231 ""
- if (a1ll_2.ibar > 1) {
-
-/* For bars after first, slide all stuff down to beginning of arrays */
-
-#line 20235 ""
- i__2 = a1ll_2.nv;
-#line 20235 ""
- for (a1ll_2.iv = 1; a1ll_2.iv <= i__2; ++a1ll_2.iv) {
-#line 20236 ""
- i__3 = c1ommvl_1.nvmx[a1ll_2.iv - 1];
-#line 20236 ""
- for (kv = 1; kv <= i__3; ++kv) {
-#line 20237 ""
- c1ommvl_1.ivx = c1ommvl_1.ivmx[a1ll_2.iv + kv * 24 - 25];
-#line 20238 ""
- ioff = a1ll_2.nib[c1ommvl_1.ivx + (a1ll_2.ibar - 1) * 24
- - 25];
-#line 20239 ""
- i__4 = a1ll_2.nib[c1ommvl_1.ivx + a1ll_2.ibar * 24 - 25]
- - ioff;
-#line 20239 ""
- for (ip = 1; ip <= i__4; ++ip) {
-#line 20240 ""
- a1ll_2.nodur[c1ommvl_1.ivx + ip * 24 - 25] =
- a1ll_2.nodur[c1ommvl_1.ivx + (ip + ioff) * 24
- - 25];
-#line 20241 ""
- a1ll_2.rest[c1ommvl_1.ivx + ip * 24 - 25] =
- a1ll_2.rest[c1ommvl_1.ivx + (ip + ioff) * 24
- - 25];
-#line 20242 ""
- c1ommvl_1.nacc[c1ommvl_1.ivx + ip * 24 - 25] =
- c1ommvl_1.nacc[c1ommvl_1.ivx + (ip + ioff) *
- 24 - 25];
-#line 20243 ""
-/* L12: */
-#line 20243 ""
- }
-#line 20244 ""
-/* L11: */
-#line 20244 ""
- }
-#line 20244 ""
- }
-#line 20245 ""
- }
-#line 20246 ""
- i__3 = a1ll_2.nv;
-#line 20246 ""
- for (a1ll_2.iv = 1; a1ll_2.iv <= i__3; ++a1ll_2.iv) {
-#line 20247 ""
- i__2 = c1ommvl_1.nvmx[a1ll_2.iv - 1];
-#line 20247 ""
- for (kv = 1; kv <= i__2; ++kv) {
-#line 20248 ""
- ioff = 0;
-#line 20249 ""
- if (a1ll_2.ibar > 1) {
-#line 20249 ""
- ioff = a1ll_2.nib[c1ommvl_1.ivmx[a1ll_2.iv + kv * 24 - 25]
- + (a1ll_2.ibar - 1) * 24 - 25];
-#line 20249 ""
- }
-#line 20250 ""
-/* L67: */
-#line 20250 ""
- }
-#line 20250 ""
- }
-#line 20251 ""
- makeabar_();
-#line 20252 ""
- elsk[c1omnotes_1.ibarcnt - 1] = linecom_1.elskb + c1ommvl_1.fbar;
-#line 20253 ""
-/* L10: */
-#line 20253 ""
- }
-#line 20254 ""
- a1ll_2.newmeter = FALSE_;
-#line 20255 ""
- a1ll_2.firstline = FALSE_;
-#line 20256 ""
- goto L30;
-#line 20257 ""
-L20:
-
-/* Vertical analysis. */
-
-#line 20261 ""
- if (compage_1.npages == 0) {
-#line 20262 ""
- if (compage_1.nsyst == 0) {
-#line 20263 ""
- s_wsle(&io___1253);
-#line 20263 ""
- do_lio(&c__9, &c__1, "When npages=0, must set nsyst=bars/syst, n"\
- "ot 0", (ftnlen)46);
-#line 20263 ""
- e_wsle();
-#line 20264 ""
- stop1_();
-#line 20265 ""
- }
-#line 20266 ""
- compage_1.nsyst = (c1omnotes_1.ibarcnt - 1) / compage_1.nsyst + 1;
-#line 20267 ""
- if (a1ll_2.nv == 1) {
-#line 20268 ""
- nsystpp = 12;
-#line 20269 ""
- } else if (a1ll_2.nv == 2) {
-#line 20270 ""
- nsystpp = 7;
-#line 20271 ""
- } else if (a1ll_2.nv == 3) {
-#line 20272 ""
- nsystpp = 5;
-#line 20273 ""
- } else if (a1ll_2.nv == 4) {
-#line 20274 ""
- nsystpp = 3;
-#line 20275 ""
- } else if (a1ll_2.nv <= 7) {
-#line 20276 ""
- nsystpp = 2;
-#line 20277 ""
- } else {
-#line 20278 ""
- nsystpp = 1;
-#line 20279 ""
- }
-#line 20280 ""
- compage_1.npages = (compage_1.nsyst - 1) / nsystpp + 1;
-#line 20281 ""
- }
-
-/* Check nsyst vs ibarcnt */
-
-#line 20285 ""
- if (compage_1.nsyst > c1omnotes_1.ibarcnt) {
-#line 20286 ""
- s_wsle(&io___1255);
-#line 20286 ""
- e_wsle();
-#line 20287 ""
- s_wsle(&io___1256);
-#line 20287 ""
- do_lio(&c__9, &c__1, "nsyst,ibarcnt:", (ftnlen)14);
-#line 20287 ""
- do_lio(&c__3, &c__1, (char *)&compage_1.nsyst, (ftnlen)sizeof(integer)
- );
-#line 20287 ""
- do_lio(&c__3, &c__1, (char *)&c1omnotes_1.ibarcnt, (ftnlen)sizeof(
- integer));
-#line 20287 ""
- e_wsle();
-#line 20288 ""
- s_wsle(&io___1257);
-#line 20288 ""
- do_lio(&c__9, &c__1, "There are more systems than bars.", (ftnlen)33);
-#line 20288 ""
- e_wsle();
-#line 20289 ""
- s_wsfe(&io___1258);
-#line 20289 ""
- do_fio(&c__1, " nsyst,ibarcnt:", (ftnlen)15);
-#line 20289 ""
- do_fio(&c__1, (char *)&compage_1.nsyst, (ftnlen)sizeof(integer));
-#line 20289 ""
- do_fio(&c__1, (char *)&c1omnotes_1.ibarcnt, (ftnlen)sizeof(integer));
-#line 20289 ""
- e_wsfe();
-#line 20290 ""
- s_wsfe(&io___1259);
-#line 20290 ""
- do_fio(&c__1, " There are more systems than bars.", (ftnlen)34);
-#line 20290 ""
- e_wsfe();
-#line 20291 ""
- stop1_();
-#line 20292 ""
- }
-
-/* Set up dummy forced line & page breaks after last real one */
-
-#line 20296 ""
- ++compage_1.nflb;
-#line 20297 ""
- compage_1.ibarflb[compage_1.nflb] = c1omnotes_1.ibarcnt + 1;
-#line 20298 ""
- compage_1.isysflb[compage_1.nflb] = compage_1.nsyst + 1;
-#line 20299 ""
- ++compage_1.nfpb;
-#line 20300 ""
- compage_1.ipagfpb[compage_1.nfpb] = compage_1.npages + 1;
-#line 20301 ""
- compage_1.isysfpb[compage_1.nfpb] = compage_1.nsyst + 1;
-#line 20302 ""
- heightil = compage_1.ptheight * 4.f / commus_1.musize;
-#line 20303 ""
- o__1.oerr = 0;
-#line 20303 ""
- o__1.ounit = 12;
-#line 20303 ""
- o__1.ofnm = 0;
-#line 20303 ""
- o__1.orl = 0;
-#line 20303 ""
- o__1.osta = "SCRATCH";
-#line 20303 ""
- o__1.oacc = 0;
-#line 20303 ""
- o__1.ofm = 0;
-#line 20303 ""
- o__1.oblnk = 0;
-#line 20303 ""
- f_open(&o__1);
-#line 20304 ""
- s_wsfe(&io___1261);
-#line 20304 ""
- do_fio(&c__1, basenameq, (*lbase));
-#line 20304 ""
- e_wsfe();
-#line 20305 ""
- s_wsle(&io___1262);
-#line 20305 ""
- do_lio(&c__3, &c__1, (char *)&(*lbase), (ftnlen)sizeof(integer));
-#line 20305 ""
- e_wsle();
-
-/* Pass to pmxb the initial signature, including effect of transposition. */
-
-#line 20309 ""
- s_wsfe(&io___1263);
-#line 20309 ""
- do_fio(&c__1, (char *)&c1ommvl_1.fbar, (ftnlen)sizeof(real));
-#line 20309 ""
- do_fio(&c__1, (char *)&c1omnotes_1.wheadpt, (ftnlen)sizeof(real));
-#line 20309 ""
- do_fio(&c__1, (char *)&cblock_1.etait, (ftnlen)sizeof(real));
-#line 20309 ""
- do_fio(&c__1, (char *)&cblock_1.etatc, (ftnlen)sizeof(real));
-#line 20309 ""
- do_fio(&c__1, (char *)&cblock_1.etacs1, (ftnlen)sizeof(real));
-#line 20309 ""
- do_fio(&c__1, (char *)&cblock_1.etatop, (ftnlen)sizeof(real));
-#line 20309 ""
- do_fio(&c__1, (char *)&cblock_1.etabot, (ftnlen)sizeof(real));
-#line 20309 ""
- do_fio(&c__1, (char *)&cominbot_1.inbothd, (ftnlen)sizeof(integer));
-#line 20309 ""
- do_fio(&c__1, (char *)&cblock_1.inhnoh, (ftnlen)sizeof(integer));
-#line 20309 ""
- do_fio(&c__1, (char *)&comkeys_1.isig1, (ftnlen)sizeof(integer));
-#line 20309 ""
- e_wsfe();
-#line 20311 ""
- s_wsle(&io___1264);
-#line 20311 ""
- do_lio(&c__3, &c__1, (char *)&compage_1.npages, (ftnlen)sizeof(integer));
-#line 20311 ""
- do_lio(&c__4, &c__1, (char *)&compage_1.widthpt, (ftnlen)sizeof(real));
-#line 20311 ""
- do_lio(&c__4, &c__1, (char *)&compage_1.ptheight, (ftnlen)sizeof(real));
-#line 20311 ""
- do_lio(&c__4, &c__1, (char *)&compage_1.hoffpt, (ftnlen)sizeof(real));
-#line 20311 ""
- do_lio(&c__4, &c__1, (char *)&compage_1.voffpt, (ftnlen)sizeof(real));
-#line 20311 ""
- do_lio(&c__3, &c__1, (char *)&compage_1.nsyst, (ftnlen)sizeof(integer));
-#line 20311 ""
- e_wsle();
-#line 20312 ""
- iflbnow = -1;
-#line 20313 ""
- isysb4 = 0;
-#line 20314 ""
- i__1 = compage_1.nfpb;
-#line 20314 ""
- for (ifpb = 1; ifpb <= i__1; ++ifpb) {
-
-/* Each time thru this loop is like a single score with several pages */
-
-#line 20318 ""
- compage_1.npages = compage_1.ipagfpb[ifpb] - compage_1.ipagfpb[ifpb -
- 1];
-#line 20319 ""
- compage_1.nsyst = compage_1.isysfpb[ifpb] - compage_1.isysfpb[ifpb -
- 1];
-#line 20320 ""
- nomnsystp = (compage_1.nsyst - 1) / compage_1.npages + 1;
-#line 20321 ""
- nshort = nomnsystp * compage_1.npages - compage_1.nsyst;
-#line 20322 ""
- i__2 = compage_1.npages;
-#line 20322 ""
- for (ipage = 1; ipage <= i__2; ++ipage) {
-#line 20323 ""
- nsystp = nomnsystp;
-#line 20324 ""
- if (ipage <= nshort) {
-#line 20324 ""
- --nsystp;
-#line 20324 ""
- }
-
-/* Last system number on this page: */
-#line 20327 ""
- isysendpg = isysb4 + nsystp;
-#line 20328 ""
- nintpg = 0;
-#line 20329 ""
- i__3 = isysendpg;
-#line 20329 ""
- for (isy = isysb4 + 1; isy <= i__3; ++isy) {
-#line 20330 ""
- if (compage_1.isysflb[iflbnow + 1] == isy) {
-#line 20330 ""
- ++iflbnow;
-#line 20330 ""
- }
-#line 20331 ""
- nintpg += compage_1.nistaff[iflbnow];
-#line 20332 ""
-/* L15: */
-#line 20332 ""
- }
-#line 20333 ""
- xilfrac = 0.f;
-#line 20334 ""
- xiltxt = 0.f;
-#line 20335 ""
- if (ipage == 1 && c1omget_1.ihead > 0) {
-
-/* Needn't zero out ihead after printing titles if we only allow titles at top? */
-
-#line 20339 ""
- if ((c1omget_1.ihead & 1) == 1) {
-#line 20340 ""
- xiltxt += cblock_1.hgtin * 4 / commus_1.musize;
-#line 20341 ""
- xilfrac += cblock_1.etait;
-#line 20342 ""
- }
-#line 20343 ""
- if ((c1omget_1.ihead & 2) == 2) {
-#line 20344 ""
- xiltxt += cblock_1.hgtti * 4 / commus_1.musize;
-#line 20345 ""
- xilfrac += cblock_1.etatc;
-#line 20346 ""
- }
-#line 20347 ""
- if ((c1omget_1.ihead & 4) == 4) {
-#line 20348 ""
- xiltxt += cblock_1.hgtco * 4 / commus_1.musize;
-#line 20349 ""
- xilfrac += cblock_1.etacs1;
-#line 20350 ""
- } else {
-
-/* Use double the title-composer space if there is no composer */
-
-#line 20354 ""
- xilfrac += cblock_1.etatc;
-#line 20355 ""
- }
-#line 20356 ""
- }
-#line 20357 ""
- d__ = xilfrac + nsystp - 1 + cblock_1.etatop + cblock_1.etabot;
-/* C = nsystp*(nv-1) */
-#line 20359 ""
- c__ = (real) nintpg;
-/* xN = heightil - xiltxt - 4*nsystp*nv - (nsystp-1)*xilbn */
-#line 20361 ""
- xn = heightil - xiltxt - (nintpg + nsystp << 2) - (nsystp - 1) *
- cblock_1.xilbn;
-#line 20362 ""
- if (bottreb) {
-#line 20362 ""
- xn -= (nsystp - 1) * cblock_1.xilbtc;
-#line 20362 ""
- }
-#line 20363 ""
- if (c1omget_1.ihead == 0 && c1omget_1.isheadr) {
-#line 20363 ""
- xn -= cblock_1.xilhdr;
-#line 20363 ""
- }
-#line 20364 ""
- if (ifig == 1) {
-#line 20365 ""
- xn -= nsystp * cblock_1.xilfig;
-#line 20366 ""
- }
-#line 20367 ""
- glueil = (xn - cblock_1.b * c__) / (d__ + cblock_1.a * c__);
-#line 20368 ""
- omegag = (cblock_1.b * d__ + cblock_1.a * xn) / (d__ + cblock_1.a
- * c__);
-
-/* G = \interlines between systems */
-/* omega*G = \interlines between staves of the same system */
-/* \interstaff = 4+omega*G */
-/* C = total number of interstaff spaces in the page */
-/* D = omega-indep factors for scalable height = nsy-1 (intersystem glue) */
-/* + etatop + etabot + etatxt + */
-/* N = scaleable height (\interlignes) = height - htext - staff heights - xil */
-/* xil = extra interliges = (nsy-1)*xilbn + 10 if header and no titles */
-/* + (nsy-1)*xiltcb for treble clef bottoms */
-/* + nsy*xilfig for figures */
-/* G = N/(D + omega * C) = glueil, (1) */
-/* But (empirically) omega*G = a*G + b (2) */
-/* with a=1.071 and b=2.714 */
-/* Solving (1) and (2) gives */
-/* G = (N-b*C)/(D+a*C) , omega*G = (b*D+a*N)/(D+a*C) */
-/* Pass to pmxb omega*G (=\interstaff-4) */
-/* (etatop,bot,it,tc,cx)*G as inputs to \titles */
-
-/* glueil = (heightil-xiltxt-nsystp*(xil+4*nv)) */
-/* * /(nsystp*(1+gfact*(nv-1))-1+etatop+etabot+xilfrac) */
-/* xnsttop = glueil*etatop */
-/* xintstaff = 4+gfact*glueil */
-
-/* Only the first page will get local adjustment now if needed, others in pmxb */
-
-#line 20395 ""
- if (ifpb == 1 && ipage == 1 && compage_1.fintstf > 0.f) {
-#line 20396 ""
- facins = compage_1.fintstf;
-#line 20397 ""
- compage_1.fintstf = -1.f;
-#line 20398 ""
- } else {
-
-/* gintstf = 1.0 by default, but may be changed with AI<x> */
-
-#line 20402 ""
- facins = compage_1.gintstf;
-#line 20403 ""
- }
-#line 20404 ""
- s_wsle(&io___1283);
-#line 20404 ""
- do_lio(&c__3, &c__1, (char *)&nsystp, (ftnlen)sizeof(integer));
-/* Computing MAX */
-#line 20404 ""
- r__2 = 0.f, r__3 = cblock_1.etatop * glueil;
-#line 20404 ""
- r__1 = dmax(r__2,r__3);
-#line 20404 ""
- do_lio(&c__4, &c__1, (char *)&r__1, (ftnlen)sizeof(real));
-#line 20404 ""
- r__4 = facins * (omegag + 4);
-#line 20404 ""
- do_lio(&c__4, &c__1, (char *)&r__4, (ftnlen)sizeof(real));
-#line 20404 ""
- e_wsle();
-#line 20405 ""
- c1omget_1.ihead = 0;
-#line 20406 ""
- c1omget_1.isheadr = FALSE_;
-#line 20407 ""
- isysb4 = isysendpg;
-#line 20408 ""
-/* L7: */
-#line 20408 ""
- }
-#line 20409 ""
-/* L8: */
-#line 20409 ""
- }
-
-/* Done with vertical, now do horizontals */
-
-#line 20413 ""
- celsk[1] = elsk[0];
-#line 20414 ""
- i__1 = c1omnotes_1.ibarcnt;
-#line 20414 ""
- for (a1ll_2.ibar = 2; a1ll_2.ibar <= i__1; ++a1ll_2.ibar) {
-#line 20415 ""
- celsk[a1ll_2.ibar] = celsk[a1ll_2.ibar - 1] + elsk[a1ll_2.ibar - 1];
-#line 20416 ""
-/* L21: */
-#line 20416 ""
- }
-#line 20417 ""
- lastbar[0] = 0;
-#line 20418 ""
- ibar1 = 1;
-#line 20419 ""
- wmins = -1.f;
-#line 20420 ""
- iflb = 1;
-#line 20421 ""
- imovbrk = 0;
-#line 20422 ""
- ikey = 1;
-
-/* Return nsyst to its *total* value */
-
-#line 20426 ""
- compage_1.nsyst = compage_1.isysfpb[compage_1.nfpb] - 1;
-#line 20427 ""
- i__1 = compage_1.nsyst;
-#line 20427 ""
- for (isyst = 1; isyst <= i__1; ++isyst) {
-#line 20428 ""
- if (isyst == compage_1.isysflb[iflb]) {
-#line 20428 ""
- ++iflb;
-#line 20428 ""
- }
-#line 20429 ""
- if (compage_1.nmovbrk > 0 && imovbrk < compage_1.nmovbrk) {
-#line 20430 ""
- if (isyst == compage_1.isysmb[imovbrk + 1]) {
-#line 20430 ""
- ++imovbrk;
-#line 20430 ""
- }
-#line 20431 ""
- }
-#line 20432 ""
- ibarb4 = lastbar[isyst - 1];
-#line 20433 ""
- if (isyst == 1) {
-#line 20434 ""
- if (*isfirst) {
-#line 20434 ""
- elsstarg = celsk[compage_1.ibarflb[1] - 1] / (
- compage_1.isysflb[1] - 1 - c1omget_1.fracindent) * (1
- - c1omget_1.fracindent);
-#line 20434 ""
- }
-#line 20436 ""
- celskb4 = 0.f;
-#line 20437 ""
- } else {
-#line 20438 ""
- celskb4 = celsk[ibarb4];
-
-/* Must dimension isysmb(0:*) just so I can execute this test! */
-
-#line 20442 ""
- if (*isfirst) {
-#line 20443 ""
- if (compage_1.nmovbrk > 0 && isyst == compage_1.isysmb[
- imovbrk]) {
-
-/* First syst after forced line break. There may be indentation. */
-
-#line 20447 ""
- 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 20450 ""
- } else {
-
-/* There is no indentation to deal with */
-
-#line 20454 ""
- elsstarg = (celsk[compage_1.ibarflb[iflb] - 1] - celskb4)
- / (compage_1.isysflb[iflb] - isyst);
-#line 20456 ""
- }
-#line 20457 ""
- }
-#line 20458 ""
- }
-#line 20459 ""
- if (*isfirst) {
-#line 20460 ""
- diff1 = (r__1 = elsstarg - elsk[ibarb4], dabs(r__1));
-#line 20461 ""
- i__2 = c1omnotes_1.ibarcnt;
-#line 20461 ""
- for (a1ll_2.ibar = ibarb4 + 2; a1ll_2.ibar <= i__2; ++a1ll_2.ibar)
- {
-#line 20462 ""
- diff = elsstarg - (celsk[a1ll_2.ibar] - celskb4);
-#line 20463 ""
- if (dabs(diff) >= diff1) {
-#line 20463 ""
- goto L24;
-#line 20463 ""
- }
-#line 20464 ""
- diff1 = dabs(diff);
-#line 20465 ""
-/* L23: */
-#line 20465 ""
- }
-#line 20466 ""
-L24:
-#line 20466 ""
- --a1ll_2.ibar;
-#line 20467 ""
- lastbar[isyst] = a1ll_2.ibar;
-#line 20468 ""
- nbarss[isyst] = a1ll_2.ibar - ibarb4;
-#line 20469 ""
- } else {
-
-/* nbarss is given as an input, must compute lastbar and ibar */
-
-#line 20473 ""
- lastbar[isyst] = nbarss[isyst] + ibarb4;
-#line 20474 ""
- a1ll_2.ibar = lastbar[isyst];
-#line 20475 ""
- }
-
-/* elss is # of elemskip in the syst. from notes & ars's, not ruleskips, ask's. */
-
-#line 20479 ""
- elss[isyst - 1] = celsk[a1ll_2.ibar] - celskb4;
-#line 20480 ""
- s_wsfe(&io___1298);
-#line 20480 ""
- i__2 = lastbar[isyst - 1] + 1;
-#line 20480 ""
- do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer));
-#line 20480 ""
- e_wsfe();
-
-/* Transposed sigs are isig1, newkey(2,3,...). */
-
-#line 20484 ""
- if (ikey == 1) {
-#line 20485 ""
- key1 = comkeys_1.isig1;
-#line 20486 ""
- } else {
-#line 20487 ""
- key1 = comkeys_1.newkey[ikey - 1];
-#line 20488 ""
- }
-#line 20489 ""
- fsyst = wclef + abs(key1) * wkeysig + 2.f / commus_1.musize;
-#line 20490 ""
- xelsk = 0.f;
-#line 20491 ""
-L1:
-#line 20491 ""
- if (ikey < comkeys_1.nkeys) {
-#line 20492 ""
- if (comkeys_1.ibrkch[ikey] <= lastbar[isyst]) {
-
-/* Add space for all key changes */
-
-#line 20496 ""
- ++ikey;
-#line 20497 ""
- key2 = comkeys_1.newkey[ikey - 1];
-/* Computing MAX */
-/* Computing MAX */
-#line 20498 ""
- i__5 = abs(key1), i__6 = abs(key2);
-#line 20498 ""
- i__3 = (i__2 = key2 - key1, abs(i__2)), i__4 = max(i__5,i__6);
-#line 20498 ""
- naccs = max(i__3,i__4);
-#line 20499 ""
- fsyst += naccs * wkeysig;
-
-/* Account for afterruleskips (fbar) */
-
-#line 20503 ""
- xelsk += c1ommvl_1.fbar / 2;
-#line 20504 ""
- if (comkeys_1.ibrkch[ikey - 1] < lastbar[isyst] && !
- comkeys_1.kchmid[ikey - 1]) {
-#line 20504 ""
- xelsk += -1.f;
-#line 20504 ""
- }
-#line 20506 ""
- key1 = key2;
-#line 20507 ""
- goto L1;
-#line 20508 ""
- }
-#line 20509 ""
- }
-
-/* Add extra fixed space for double bar */
-
-#line 20513 ""
- if (isyst == compage_1.nsyst) {
-#line 20514 ""
- fsyst += 4.5f / commus_1.musize;
-#line 20515 ""
- }
-
-/* Add extra fixed space for initial time signature */
-
-#line 20519 ""
- if (isyst == 1) {
-#line 20520 ""
- fsyst += wtimesig;
-#line 20521 ""
- }
-
-/* Add extra fixed space for time signature changes & user-defined spaces */
-
-#line 20525 ""
- i__2 = lastbar[isyst];
-#line 20525 ""
- for (ibars = ibarb4 + 1; ibars <= i__2; ++ibars) {
-#line 20526 ""
- if (newmb[ibars - 1]) {
-#line 20526 ""
- fsyst += wtimesig;
-#line 20526 ""
- }
-#line 20527 ""
- fsyst += c1omnotes_1.udsp[ibars - 1] / commus_1.musize;
-#line 20528 ""
-/* L26: */
-#line 20528 ""
- }
-#line 20529 ""
- if (isyst == 1) {
-#line 20530 ""
- wdpt = compage_1.widthpt * (1 - c1omget_1.fracindent);
-#line 20531 ""
- } else {
-#line 20532 ""
- if (compage_1.nmovbrk > 0 && imovbrk > 0 && isyst ==
- compage_1.isysmb[imovbrk]) {
-#line 20534 ""
- wdpt = compage_1.widthpt * (1 - compage_1.fracsys[imovbrk - 1]
- );
-#line 20535 ""
- } else {
-#line 20536 ""
- wdpt = compage_1.widthpt;
-#line 20537 ""
- }
-#line 20538 ""
- }
-#line 20539 ""
- wsyspt = wdpt - fsyst * commus_1.musize - nbarss[isyst] * .4f;
-
-/* Checks for min spacing */
-/* Get min allowable space */
-
-#line 20544 ""
- dtmin = 1e3f;
-#line 20545 ""
- i__2 = ibar1 + nbarss[isyst] - 1;
-#line 20545 ""
- for (a1ll_2.ibar = ibar1; a1ll_2.ibar <= i__2; ++a1ll_2.ibar) {
-/* Computing MIN */
-#line 20546 ""
- r__1 = dtmin, r__2 = linecom_1.tnminb[a1ll_2.ibar - 1];
-#line 20546 ""
- dtmin = dmin(r__1,r__2);
-#line 20547 ""
- if (c1omnotes_1.wminnh[a1ll_2.ibar - 1] >= 0.f) {
-#line 20547 ""
- wmins = c1omnotes_1.wminnh[a1ll_2.ibar - 1];
-#line 20547 ""
- }
-#line 20548 ""
-/* L45: */
-#line 20548 ""
- }
-#line 20549 ""
- if (wmins < 0.f) {
-#line 20549 ""
- wmins = .3f;
-#line 20549 ""
- }
-#line 20550 ""
- wminpt = (wmins + 1) * .3f * commus_1.musize;
-
-/* Find max duration & # of notes for this system */
-
-#line 20554 ""
- dtmax = 0.f;
-#line 20555 ""
- nns = 0;
-#line 20556 ""
- i__2 = c1omnotes_1.nptr[ibar1 + nbarss[isyst] - 1] - 1;
-#line 20556 ""
- for (iptr = c1omnotes_1.nptr[ibar1 - 1]; iptr <= i__2; ++iptr) {
-/* Computing MAX */
-#line 20557 ""
- r__1 = dtmax, r__2 = c1omnotes_1.durb[iptr - 1];
-#line 20557 ""
- dtmax = dmax(r__1,r__2);
-#line 20558 ""
- nns += c1omnotes_1.nnpd[iptr - 1];
-#line 20559 ""
-/* L43: */
-#line 20559 ""
- }
-#line 20560 ""
- elmin0 = wsyspt * f1eon_(&dtmin) / (elss[isyst - 1] + xelsk);
-#line 20561 ""
- if (elmin0 >= wminpt) {
-
-/* Subtract out fbar stuff to keep old way of passing sumelsk to pmxb; */
-/* there is no need to "flatten" */
-
-#line 20566 ""
- sumelsk = elss[isyst - 1] - c1ommvl_1.fbar * nbarss[isyst];
-#line 20567 ""
- comeon_1.eonk = 0.f;
-#line 20568 ""
- comeon_1.ewmxk = 1.f;
-#line 20569 ""
- } else {
-#line 20570 ""
- elmin1 = wsyspt / ((c1ommvl_1.fbar * nbarss[isyst] + xelsk) /
- f1eon_(&dtmax) + nns);
-#line 20571 ""
- 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 20576 ""
- comeon_1.eonk = .9f;
-#line 20577 ""
- } else {
-
-/* Find eonk by Newton method */
-
-#line 20581 ""
- i__2 = c1omnotes_1.nptr[ibar1 + nbarss[isyst] - 1] - 1;
-#line 20581 ""
- r__1 = wsyspt / wminpt;
-#line 20581 ""
- r__2 = c1ommvl_1.fbar * nbarss[isyst] + xelsk;
-#line 20581 ""
- r__3 = (wminpt - elmin0) / (elmin1 - elmin0);
-#line 20581 ""
- findeonk_(&c1omnotes_1.nptr[ibar1 - 1], &i__2, &r__1, &r__2, &
- dtmin, &dtmax, &r__3);
-#line 20584 ""
- comeon_1.eonk = dmin(.9f,comeon_1.eonk);
-#line 20585 ""
- }
-#line 20586 ""
- d__1 = (doublereal) f1eon_(&dtmax);
-#line 20586 ""
- d__2 = (doublereal) comeon_1.eonk;
-#line 20586 ""
- comeon_1.ewmxk = pow_dd(&d__1, &d__2);
-
-/* Recompute poenom! */
-
-#line 20590 ""
- sumelsk = 0.f;
-#line 20591 ""
- i__2 = c1omnotes_1.nptr[ibar1 + nbarss[isyst] - 1] - 1;
-#line 20591 ""
- for (iptr = c1omnotes_1.nptr[ibar1 - 1]; iptr <= i__2; ++iptr) {
-#line 20592 ""
- r__1 = c1omnotes_1.durb[iptr - 1] / c1omnotes_1.sqzb[iptr - 1]
- ;
-#line 20592 ""
- sumelsk += c1omnotes_1.nnpd[iptr - 1] * c1omnotes_1.sqzb[iptr
- - 1] * feon_(&r__1);
-#line 20594 ""
-/* L44: */
-#line 20594 ""
- }
-#line 20595 ""
- }
-#line 20596 ""
- poenom = wsyspt / (sumelsk + c1ommvl_1.fbar * nbarss[isyst] + xelsk);
-
-/* Set fracindent for output: orig if isyst=1, fracsys(imovbrk) if movbrk, else 0 */
-
-#line 20600 ""
- if (isyst > 0) {
-#line 20601 ""
- if (compage_1.nmovbrk > 0 && imovbrk > 0 && isyst ==
- compage_1.isysmb[imovbrk]) {
-#line 20603 ""
- c1omget_1.fracindent = compage_1.fracsys[imovbrk - 1];
-#line 20604 ""
- } else {
-#line 20605 ""
- c1omget_1.fracindent = 0.f;
-#line 20606 ""
- }
-#line 20607 ""
- }
-#line 20608 ""
- s_wsfe(&io___1316);
-#line 20608 ""
- do_fio(&c__1, (char *)&poenom, (ftnlen)sizeof(real));
-#line 20608 ""
- do_fio(&c__1, (char *)&nbarss[isyst], (ftnlen)sizeof(integer));
-#line 20608 ""
- do_fio(&c__1, (char *)&sumelsk, (ftnlen)sizeof(real));
-#line 20608 ""
- do_fio(&c__1, (char *)&fsyst, (ftnlen)sizeof(real));
-#line 20608 ""
- do_fio(&c__1, (char *)&c1omget_1.fracindent, (ftnlen)sizeof(real));
-#line 20608 ""
- do_fio(&c__1, (char *)&comeon_1.eonk, (ftnlen)sizeof(real));
-#line 20608 ""
- do_fio(&c__1, (char *)&comeon_1.ewmxk, (ftnlen)sizeof(real));
-#line 20608 ""
- e_wsfe();
-#line 20610 ""
- ibar1 += nbarss[isyst];
-#line 20611 ""
-/* L22: */
-#line 20611 ""
- }
-#line 20612 ""
- al__1.aerr = 0;
-#line 20612 ""
- al__1.aunit = 12;
-#line 20612 ""
- f_rew(&al__1);
-#line 20613 ""
- o__1.oerr = 0;
-#line 20613 ""
- o__1.ounit = 13;
-#line 20613 ""
- o__1.ofnm = 0;
-#line 20613 ""
- o__1.orl = 0;
-#line 20613 ""
- o__1.osta = "SCRATCH";
-#line 20613 ""
- o__1.oacc = 0;
-#line 20613 ""
- o__1.ofm = 0;
-#line 20613 ""
- o__1.oblnk = 0;
-#line 20613 ""
- f_open(&o__1);
-#line 20614 ""
- s_wsfe(&io___1317);
-#line 20614 ""
- do_fio(&c__1, (char *)&ifig, (ftnlen)sizeof(integer));
-#line 20614 ""
- e_wsfe();
-#line 20615 ""
- al__1.aerr = 0;
-#line 20615 ""
- al__1.aunit = 13;
-#line 20615 ""
- f_rew(&al__1);
-#line 20616 ""
- inbuff_1.ilbuf = 1;
-#line 20617 ""
- inbuff_1.ipbuf = 0;
-#line 20618 ""
- if (! (*optimize)) {
-#line 20619 ""
- s_wsfe(&io___1318);
-#line 20619 ""
- do_fio(&c__1, " Done with first pass", (ftnlen)21);
-#line 20619 ""
- e_wsfe();
-#line 20620 ""
- s_wsle(&io___1319);
-#line 20620 ""
- e_wsle();
-#line 20621 ""
- s_wsfe(&io___1320);
-#line 20621 ""
- do_fio(&c__1, " Done with first pass", (ftnlen)21);
-#line 20621 ""
- e_wsfe();
-#line 20622 ""
- s_wsfe(&io___1321);
-#line 20622 ""
- e_wsfe();
-#line 20623 ""
- }
-
-/* Following syntax is needed since pmxa is called with literal argument .false. */
-
-#line 20627 ""
- if (*isfirst) {
-#line 20627 ""
- *isfirst = FALSE_;
-#line 20627 ""
- }
-#line 20628 ""
- return 0;
-} /* pmxa_ */
-
-/* Subroutine */ int pmxb_(logical *inlast, real *poevec, integer *ncalls,
- logical *optimize)
-{
- /* System generated locals */
- address a__1[12], a__2[6], a__3[4], a__4[2], a__5[3], a__6[10], a__7[9],
- a__8[2], a__9[5], a__10[8], a__11[7], a__12[11], a__13[14];
- integer i__1, i__2, i__3[12], i__4[6], i__5[4], i__6[2], i__7, i__8[3],
- i__9[10], i__10[9], i__11[2], i__12[5], i__13, i__14[8], i__15[7],
- i__16[11], i__17[14];
- real r__1, r__2;
- char ch__1[1], ch__2[46], ch__3[23], ch__4[26], ch__5[27], ch__6[20],
- ch__7[29], ch__8[8], ch__9[35], ch__10[14], ch__11[19], ch__12[
- 107], ch__13[17], ch__14[12], ch__15[11], ch__16[15], ch__17[13],
- ch__18[9], ch__19[32], ch__20[10], ch__21[4], ch__22[16], ch__23[
- 40], ch__24[24], ch__25[6], ch__26[18], ch__27[82], ch__28[66],
- ch__29[60], ch__30[45], ch__31[28], ch__32[11], ch__33[76],
- ch__34[38], ch__35[33], ch__36[43], ch__37[69], ch__38[41],
- ch__39[44], ch__40[5], ch__41[7], ch__42[25], ch__43[22], ch__44[
- 96];
- cilist ci__1;
- icilist ici__1;
- olist o__1;
- cllist cl__1;
- alist al__1;
-
- /* Builtin functions */
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen), s_wsfe(cilist *), do_fio(integer *, char *, ftnlen),
- e_wsfe(void), s_rsfe(cilist *), e_rsfe(void), s_rsle(cilist *),
- e_rsle(void);
- double r_mod(real *, real *);
- integer i_nint(real *), pow_ii(integer *, integer *), f_open(olist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- double r_lg10(real *);
- integer i_indx(char *, char *, ftnlen, ftnlen);
- double r_dim(real *, real *);
- integer i_dim(integer *, integer *);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsfi(icilist *), e_wsfi(void), lbit_shift(integer, integer),
- f_clos(cllist *), f_rew(alist *);
-
- /* Local variables */
- extern /* Subroutine */ int outbar_(integer *, integer *);
- static real ptsndb, ptsndv, ptsdflt;
- extern /* Subroutine */ int clefsym_(integer *, char *, integer *,
- integer *, ftnlen), wsclef_(integer *, integer *, integer *);
- static integer nvalue, islnow, iplnow, lvoltxt, nbarss;
- static real elsktot;
- static integer ndigbn, isdat;
- extern integer ncmid_(integer *, integer *);
- static integer indsym;
- extern /* Subroutine */ int wgmeter_(integer *, integer *), writesetsign_(
- integer *, integer *, integer *, logical *);
- static integer mtrnms, ibarcnt0, lntmp;
- static real xnstbot;
- static integer iptemp, naccs, islide, ipnew, iudorn, idynd, iflagbot;
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *);
- static integer itxtdyn;
- static real xmtrnum0;
- static integer isdata, iarps;
- extern /* Subroutine */ int make1bar_(integer *, real *, real *, logical *
- , real *, integer *, integer *, integer *), make2bar_(integer *,
- real *, real *, logical *, real *, integer *, integer *, integer *
- , char *, ftnlen);
- static real hardb4;
- extern /* Subroutine */ int askfig_(char *, integer *, char *, integer *,
- logical *, logical *, ftnlen, ftnlen);
- extern integer igetbits_(integer *, integer *, integer *);
- extern /* Subroutine */ int newvoice_(integer *, char *, logical *,
- ftnlen);
- static logical lrptpend;
- extern /* Subroutine */ int setmeter_(integer *, integer *, integer *,
- integer *), puttitle_(integer *, real *, real *, char *, real *,
- real *, real *, integer *, logical *, char *, ftnlen, ftnlen);
- static integer i__;
- static char basenameq[44], pathnameq[40];
- extern /* Subroutine */ int midievent_(char *, integer *, integer *,
- ftnlen);
- static real xintstaff[75];
- static char shortfraq[3];
- static integer ia, ig, il, ip, it, kv, ip2, iv1, ibc, icc, ipa, ipi;
- static real esk;
- static char nmq[40];
- static integer iiv;
- static real poe, frac;
- static integer ifig, ndig;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static real hesk[23];
- static integer ioff;
- static char fmtq[24];
- static logical loop;
- static real hpts[23];
- extern doublereal feon_(real *);
- static logical lrpt;
- static real wdpt;
- static logical rrpt;
- static integer lnmq, ntmp, icrd, idyn, jfig;
- static real tglp1;
- extern /* Subroutine */ int stop1_(void);
- static logical clchb;
- static integer lbase, lclef;
- static char charq[1];
- static logical clchv[24], slint;
- static integer istop[80];
- static real squez[80];
- static logical ismbr;
- static char rendq[3];
- static real etait, etatc, etacs1;
- static integer nsyst, lpath, iauto;
- static real slfac1;
- static integer lnote, nclef, iinst, ipnow;
- extern /* Subroutine */ int linebreakties_(integer *, integer *, integer *
- , integer *, integer *, logical *, char *, ftnlen);
- static real fsyst;
- static logical evolta;
- static integer numbms[24], istart[80];
- static logical cwrest[24], svolta;
- static char notexq[79];
- static logical onvolt;
- static real tstart[80];
- static logical putmbr, istype0;
- static real etatop, etabot;
- static integer inhnoh;
- extern /* Subroutine */ int getset_(integer *, integer *, integer *,
- integer *, integer *, integer *, real *, integer *, integer *,
- integer *, real *, logical *, char *, char *, char *, char *,
- integer *, integer *, ftnlen, ftnlen, ftnlen, ftnlen);
- static integer noinst, npages, ibcoff;
- static logical newclef;
- static integer lenbeat;
- extern /* Subroutine */ int topfile_(char *, integer *, integer *, char *,
- integer *, integer *, real *, integer *, integer *, logical *,
- real *, logical *, ftnlen, ftnlen);
- static logical ispstie, vshrink;
- static integer isyscnt;
- static real xntrial;
- extern integer ifnodur_(integer *, char *, ftnlen);
- static integer ibmrep, isystpg, nhstot, jprntb, nhssys;
- extern /* Subroutine */ int getnote_(logical *);
- static real xnsttop[75];
- extern /* Subroutine */ int addmidi_(integer *, integer *, integer *,
- integer *, real *, logical *, logical *);
-
- /* Fortran I/O blocks */
- static cilist io___1322 = { 0, 6, 0, 0, 0 };
- static cilist io___1323 = { 0, 6, 0, 0, 0 };
- static cilist io___1324 = { 0, 6, 0, 0, 0 };
- static cilist io___1325 = { 0, 15, 0, "(a)", 0 };
- static cilist io___1329 = { 0, 12, 0, "(a)", 0 };
- static cilist io___1331 = { 0, 12, 0, 0, 0 };
- static cilist io___1333 = { 0, 12, 0, 0, 0 };
- static cilist io___1349 = { 0, 6, 0, 0, 0 };
- static cilist io___1350 = { 0, 12, 0, 0, 0 };
- static cilist io___1356 = { 0, 13, 0, 0, 0 };
- static cilist io___1358 = { 0, 14, 0, "(a)", 0 };
- static cilist io___1361 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1362 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1363 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1366 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1377 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1379 = { 0, 6, 0, "(/,a20,i4,a1,i4)", 0 };
- static cilist io___1380 = { 0, 15, 0, "(/,a20,i4,a1,i4)", 0 };
- static cilist io___1384 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1385 = { 0, 11, 0, "(a14,f4.1,a)", 0 };
- static cilist io___1394 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1403 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1406 = { 0, 6, 0, 0, 0 };
- static cilist io___1407 = { 0, 6, 0, 0, 0 };
- static cilist io___1408 = { 0, 11, 0, "(a20,i1,a)", 0 };
- static cilist io___1409 = { 0, 11, 0, "(a20,i2,a)", 0 };
- static cilist io___1410 = { 0, 11, 0, "(a20)", 0 };
- static cilist io___1411 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1413 = { 0, 11, 0, "(a11,i2,a2)", 0 };
- static cilist io___1414 = { 0, 11, 0, "(a11,i1,a2)", 0 };
- static cilist io___1415 = { 0, 12, 0, 0, 0 };
- static cilist io___1418 = { 0, 6, 0, 0, 0 };
- static cilist io___1419 = { 0, 6, 0, 0, 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, "(a)", 0 };
- static cilist io___1425 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1426 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1427 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1430 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1431 = { 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___1443 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1444 = { 0, 12, 0, 0, 0 };
- static cilist io___1446 = { 0, 14, 0, "(a9,i2,a10,i2,1x,a4)", 0 };
- static cilist io___1449 = { 0, 11, 0, fmtq, 0 };
- static cilist io___1451 = { 0, 6, 0, 0, 0 };
- static cilist io___1452 = { 0, 6, 0, 0, 0 };
- static cilist io___1453 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1456 = { 0, nmq+12, 0, "(2i1)", 2, 1 };
- static icilist io___1457 = { 0, nmq+12, 0, "(a1,i2,a1,i1)", 5, 1 };
- static cilist io___1458 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1459 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1460 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1461 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1462 = { 0, 11, 0, "(a6,i2,a11)", 0 };
- static cilist io___1463 = { 0, 11, 0, "(a6,i1,a11)", 0 };
- static cilist io___1464 = { 0, 11, 0, "(a8,i1,a3)", 0 };
- static cilist io___1465 = { 0, 11, 0, "(a9,i2,a4)", 0 };
- static cilist io___1466 = { 0, 11, 0, "(a18,i1,a2)", 0 };
- static cilist io___1467 = { 0, 11, 0, "(a18,i2,a2)", 0 };
- static cilist io___1469 = { 0, 11, 0, "(a11,i1,a2)", 0 };
- static cilist io___1470 = { 0, 11, 0, "(a11,i2,a2)", 0 };
- static cilist io___1471 = { 0, 11, 0, "(a11,i3,a2)", 0 };
- static cilist io___1472 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1473 = { 0, 11, 0, "(a)", 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___1478 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1479 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1484 = { 0, shortfraq, 0, "(i2)", 2, 1 };
- static cilist io___1485 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1486 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1487 = { 0, 11, 0, fmtq, 0 };
- static cilist io___1489 = { 0, 11, 0, fmtq, 0 };
- static cilist io___1490 = { 0, 11, 0, fmtq, 0 };
- static cilist io___1491 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1492 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1493 = { 0, 11, 0, fmtq, 0 };
- static cilist io___1494 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1495 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1496 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1497 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1498 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1499 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1500 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1501 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1502 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1503 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1504 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1505 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1506 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1507 = { 0, shortfraq, 0, "(f3.2)", 3, 1 };
- static cilist io___1508 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1509 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1510 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1511 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1512 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1513 = { 0, shortfraq, 0, "(i2)", 2, 1 };
- static cilist io___1514 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1515 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1516 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1517 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1518 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1519 = { 0, shortfraq, 0, "(f3.2)", 3, 1 };
- static cilist io___1520 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1521 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1522 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1523 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1524 = { 0, shortfraq, 0, "(i2)", 2, 1 };
- static cilist io___1525 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1526 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1527 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1528 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1529 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1530 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1531 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1532 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1533 = { 0, 11, 0, "(a16,i1,a14)", 0 };
- static cilist io___1534 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1535 = { 0, 12, 1, 0, 0 };
- static cilist io___1538 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1539 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1540 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1542 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1543 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1544 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1545 = { 0, shortfraq, 0, "(i2)", 2, 1 };
- static cilist io___1546 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1547 = { 0, 11, 0, "(a)", 0 };
- static icilist io___1548 = { 0, shortfraq, 0, "(f3.2)", 3, 1 };
- static cilist io___1549 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1550 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1551 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1552 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1553 = { 0, 11, 0, "(a,2i1,a)", 0 };
- static cilist io___1554 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1555 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1571 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1572 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1580 = { 0, 11, 0, "(a11,f5.1,a4)", 0 };
- static cilist io___1581 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1583 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1584 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1585 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1586 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1587 = { 0, 6, 0, 0, 0 };
- static cilist io___1588 = { 0, 6, 0, 0, 0 };
- static cilist io___1589 = { 0, 15, 0, 0, 0 };
- static cilist io___1590 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1591 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1592 = { 0, 11, 0, fmtq, 0 };
- static cilist io___1593 = { 0, 11, 0, fmtq, 0 };
- static cilist io___1594 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1595 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1596 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1597 = { 0, 14, 0, "(a9,i2,a10,i2,1x,a5)", 0 };
- static cilist io___1598 = { 0, 6, 0, 0, 0 };
- static cilist io___1599 = { 0, 6, 0, 0, 0 };
- static cilist io___1600 = { 0, 6, 0, 0, 0 };
- static cilist io___1601 = { 0, 15, 0, "(/,a)", 0 };
- static cilist io___1602 = { 0, 15, 0, "(a)", 0 };
-
-
-/* ccccccccccccccccccccccccc */
-/* c */
-/* c To Do */
-/* c */
-/* c Resolve disagreement in final poe for 1st system, compared with *.mx2 */
-/* c Shift slurs on right- or left-shifted main notes (2/7/99) */
-/* c Various end-of-input-block repeat problems (ick142.pmx). */
-/* c Force multiplicity for un-beamed xtups. */
-/* c Clef change at end of piece */
-/* c Global "A" option to maximize "X" at a given time tick. */
-/* c Tighten test for end-of-bar hardspace, flgndv(ivx) due to right-shifted */
-/* c note. See trubl18.pmx */
-/* c Tab character as space. */
-/* c Clef interference with second line of music. */
-/* c Add space for interferences between *different* lines of music? */
-/* c Shift arpeggios, both automatic and manual. */
-/* c Different musicsize for different instruments. */
-/* c Spacing checks for accid's on left-shifted chord notes */
-/* c Spacing checks for double dots */
-/* c Allow forced line breaks w/o setting nsyst. */
-/* c Cresc-Decresc. (Enhance MusiXTeX first?) */
-/* c Dynamic Marks. */
-/* c Bug with Voltas at line end (MusiXTeX problem?). */
-/* c Subtle bug w/ slur hgt over line brk, see trubl15.pmx */
-/* c Stem-end slurs. */
-/* c Allow units in indentation. */
-/* c Make inline TeX more context sensitive. */
-/* c Werner's 4/2/98 problem with "o?" */
-/* c Scor2prt converts e.g. "r0+0" into "r0 0", which seems to be wrong. */
-/* c converts e.g. "r2db" into "r2d", which might be wrong. */
-/* c Werner's generalsignature problem with Key change and new transposition. */
-/* c (wibug8.pmx) */
-/* c Unequal xtuplets */
-/* c Print both sets of bar #'s in tex file. */
-/* c Make barlines invisible \def\xbar{\empty} , fix fbar. */
-/* c Auto-tie slurs 'At' */
-/* c Forced line break anywhere (e.g. at a mid-bar repeat). */
-/* c Clef change at very start of file. */
-/* c Tighten test for M as macro terminator. */
-/* c Fix title so not separate limit on author length + composer length. */
-/* c Arpeggios in xtups. */
-/* c */
-/* c mx10b */
-/* c Option for instrument name at top center. Last item in P command: */
-/* c P[n]c text is instrument name (use in parts) */
-/* c P[n]cstuff text is stuff (up to 1st blank) */
-/* c P[n]c"stuff with spaces" text is stuff with spaces */
-/* c */
-/* c Post version 1.43 */
-/* c Reduced space rqmt for multiplicity-0 graces (no flag) */
-/* c Removed last sepsym in centered whole-bar rests, fixes volta height bug. */
-/* c */
-/* c Version 1.43 */
-/* c Fix spacing for end-of-line signature change. */
-/* c Adjust left-shift of grace group for shifted accidentals. */
-/* c Put in extra space for left-shifted accidentals. */
-/* c Fix bug with dot-shift before accid-shift on chord note. */
-/* c Space-check for right-shifted main notes. */
-/* c Enable forcing stem direction of single notes in non-beamed xtups. */
-/* c Disallow clef change after last note before end of input block (pmxa) */
-/* c Print meter change before page break */
-/* c increase length of strings for \titles macro */
-/* c version 1.42 */
-/* c Loosen up input syntax for "X" commands. Subroutine getx() */
-/* c "B" and "P" in "X" commands */
-/* c mx09b */
-/* c Allow multiple rests at start of xtup */
-/* c Add 64th rest */
-/* c Fix xtup numbers over rests. (subroutine levrn) */
-/* c Initialize notcrd=.false. every gulp. Avoids undefined state with e.g. */
-/* c c za / ( c a ... */
-/* c Allow double dots to be shifted. */
-/* c Fix spacing with double dotted notes; permit splitting small note. */
-/* c Fix \dotted printout so it works with old compiler */
-/* c mx08b */
-/* c Automatic spaces if needed for shifted accidentals. */
-/* c Some Dynamics */
-/* c Increase accid. horiz. shift resolution to .o5 (use one more bit in nacc) */
-/* c version 1.41 */
-/* c Allow ":" as last char of path name */
-/* c Dotted slurs "sb" */
-/* c Continue bar numbering at movement break "L[integer]Mc" */
-/* c mx07b */
-/* c Whole-bar rests with double lines of music. Fixed all options ? */
-/* c Shift accidentals, either [+|-][integer][+|-][number] or [<|>][number]. */
-/* c Option to suppress centering full-bar rests. "o" */
-/* c mx06b */
-/* c Shift accid on left-shifted chord note. */
-/* c Rest as first note of xtup. */
-/* c Wrong slopes with small widths. Scale slfac1 by widthpt_default/widthpt */
-/* c Allow Rb for single bar at movemnet break or end of piece. (islur(25)) */
-/* c Change # of inst at a movement break. noinst is total # and must be used */
-/* c in 1st movement. ninow is current. nspern(1,...,ninow) is current */
-/* c staves/inst, nsperi(1,...,noinst) is original. rename tells whether to */
-/* c reprint names in parindent at a movement break. Default is .false. */
-/* c unless ninow changes, then .true. But can force either with r+/- as */
-/* c option in 'M' */
-/* c mx04b */
-/* c Double-dotted notes, separate+beamed, main+chord, still no extra space. */
-/* c ??? Don't shift slur ends on whole notes. */
-/* c (pmxa) Write line number of error in pmxaerr.dat */
-/* c mx02b */
-/* c Admit "RD" before "/" (search for "rptfq2:" ) */
-/* c In doslur, for multi-line staves, single notes, check forced stem dir'n */
-/* c before setting stemup (used to set horiz offset). */
-/* cccccccccccccccccccccccccccccc */
-
-/* FYI /all/ differs in appearance in function ncmid */
-
-/* cccccccccccc */
-/* c islur cc */
-/* cccccccccccc */
-/* bit meaning */
-/* 0 slur activity on this note */
-/* 1 t-slur here. */
-/* 2 force 0-slope beam starting on this note */
-/* 3 Double dotted note! */
-/* 4 grace before main note */
-/* 5 left repeat */
-/* 6 right repeat */
-/* 7 start Volta */
-/* 8 doublebar */
-/* 9 end Volta */
-/* 10 on=>endvoltabox */
-/* 11 on=>clefchange */
-/* 12-14 0=>treble, ... , 6=>bass */
-/* 15 on=> start new block for clef change (maybe diff. voice) */
-/* 16 literal TeX string */
-/* 17 1=up, 0=down stem for single note (override) See bit 30! */
-/* 18 if on, prohibit beaming */
-/* 19 if on, full bar rest as pause */
-/* 20 Beam multiplicity down-up */
-/* 21 Forced multiplicity for any beam including xtups */
-/* 22-24 Value of forced multiplicity */
-/* 25 single barline at movement break */
-/* 26 doubleBAR (see bits 5,6,8) */
-/* 27-28 Forced beam fine-tune height (1 to 3) */
-/* 29 Blank rest */
-/* 30 If on, get stem dir'n from bit 17 */
-/* 31 If on, suppress printing number with xtuplet starting here */
-/* cccccccccccc */
-/* c ipl cc */
-/* cccccccccccc */
-/* 0 blank barline (must be iv=1) (would have used islur but no room) */
-/* 1 look left for K rests, moved here from iornq(30) */
-/* 2 treblelowoct */
-/* 3 Open notehead in forced beam xtup */
-/* 4 Set if single stem tremolo */
-/* 5-6 termulo multiplicity - 1 */
-/* 7 unused */
-/* 8 left offset main note one headwidth */
-/* 9 right offset main note one headwidth */
-/* 10 chord present? */
-/* 11-16 Forced beam height adjustment (-30 to +30) */
-/* 17-22 Forced beam slope adjustment (-30 to +30) */
-/* 23-26 Slur index for Way-after grace. Inserted when slur is started. */
-/* 27 5th bit for slur index for Way-after grace (100712) */
-/* 28 key change: only in voice 1 */
-/* 29 Grace after main note. (Type A) */
-/* 30 In forced beam. Signals need to check beam heights */
-/* 31 Grace way after main note. (stretch to next note, type W) */
-/* cccccccccccc */
-/* c iornq cc */
-/* cccccccccccc */
-/* 0 Ornament "(". Was user-defined horizontal slur shift on this note */
-/* until 9/24/97; changed that to irest(21) */
-/* 1-13 stmgx+Tupf._) */
-/* 14 Down fermata, was F */
-/* 15 Trill w/o "tr", was U */
-/* 16-18 Editorial s,f,n */
-/* 19-20 >^ */
-/* 21 "?" for editorial accid, w/ or w/o s,f,n */
-/* 22 Set if ihornb governs ornament height. Same in icrdorn. */
-/* 23 Set in getorn if ANY note at time of this main note has ornament. */
-/* This is ONLY used in beamstrt to signal whether to do more */
-/* tests for whether ihornb is needed. (ihornb is only needed */
-/* if nonchord+upbm, chord+upbm+top_note, chord+dnbm+bot_note) */
-/* (7/1/00)Also set if any dynamic, as ihornb will be needed when dnbm. */
-/* 24 Slur on after or way-after grace. Use as signal to START slur. */
-/* 25 Tweak orn ht. Same in icrdorn for chord note */
-/* 26 Insert user-defined space before this note (was 22) */
-/* 27 Arpeggio stop or start (if 2 at same time), or all-in-this-chord */
-/* 28 caesura or breath */
-/* c 29 blank barline (must be iv=1) (would have used islur but no room) */
-/* 29 coda */
-/* c 30 "Look-left" option for keyboard rest */
-/* 30 Part-by-part segno oG */
-/* 31 Set if any note (main or chord) has cautionary accid, for space checks */
-/* cccccccccccc */
-/* c irest cc */
-/* cccccccccccc */
-/* 0 rest=1, no rest = 0 */
-/* 1 There will be a vertical shift for number of this xtup */
-/* 2 Set if 2-note tremolo starts here */
-/* 3-4 nsolid, # of solid beams in 2-note tremolo */
-/* 5-6 nindent, # of indented beams in 2-note tremolo */
-/* 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 */
-/* 15 Single-voice, single note shift X(...)[p]S */
-/* 16 Start single-voice, multinote shift with this note X(...)[p]: */
-/* 17 End single-voice, multinote shift after this note. Enter symbol */
-/* after note. X: */
-/* 18 User-defined hardspace after last note of bar, *after* this note. */
-/* Value still stored in udoff(ivx,nudoff(ivx)), not with other */
-/* hardspaces in udsp, to avoid confusion with time checks. */
-/* 19 Move the dot. Data stored in ndotmv,updot,rtdot */
-/* 20 Set if right-shifted main or chord note here. Use for space checks. */
-/* 21 User-defined hardspace in xtup */
-/* 22 User-defined slur shift horizontal slur shift. */
-/* 23 Set on last note before staff-jumping a beam. */
-/* 24 Set on first note after staff-jumping a beam */
-/* 25 Suppress rest centering. "ro" */
-/* 26 Dynamic on this note */
-/* 27 Set if left-shifted main or chord note here. Use for space checks. */
-/* 28 Set if xtup starts on this note. */
-/* 29 Set on lowest-voice note at same time as 1st note after jump-beam. */
-/* 30 Set on note after end of jump-beam segment, to force new note group */
-/* 31 Flag for cautionary accidental */
-/* cccccccccccc */
-/* c nacc cc */
-/* cccccccccccc */
-/* 0-1 0=no accid, 1=fl, 2=sh, 3=na */
-/* 2 double */
-/* 3 big */
-/* 4-9 vertshift-32 */
-/* 10-16 20*(horiz. shift + 5.35) (Recentered ver 2.32) */
-/* 17 Midi-only accidental */
-/* 18 2:1 xtup */
-/* 19 Together with nacc(18), increase multiplicity by 1 and dot 1st note. */
-/* 20 Set on last note of each seg except last seg of single-slope beam. */
-/* 21 Set on 1st note of each seg except 1st seg of single-slope beam. */
-/* 22-26 If .ne.0, printed xtup number for xtup starting on this note. */
-/* 27 Set for dotted xtup note. Mult dur by 1.5, mult next by .5 & increase */
-/* multiplicity by 1 */
-/* 28 Set on main note of chord if accidentals are ordered. */
-/* 29 Tag for chordal accidental shift...means add to autoshifts. */
-/* 30-31 Set 30|31 if main note in a chord is part of a 2nd and needs to be shifted. */
-/* If upstem|downstem, main is upper|lower member of 2nd */
-/* Action is to interchange pitches only when notes are placed. */
-/* cccccccccccc */
-/* c mult cc */
-/* cccccccccccc */
-/* 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 */
-/* c 28-30 New stem length. */
-/* cccccccccccc */
-/* c isdat1 cc */
-/* cccccccccccc */
-/* 13-17 iv */
-/* 3-10 ip */
-/* 11 start/stop switch */
-/* 12 kv-1 */
-/* 19-25 ichar(code$) */
-/* 26 force direction? */
-/* 27 forced dir'n = up if on, set in sslur; also */
-/* final direction, set in doslur when beam is started, used on term. */
-/* 28-31 ndxslur, set in doslur when beam is started, used on term. */
-/* cccccccccccc */
-/* c isdat2 cc */
-/* cccccccccccc */
-/* 0 Chord switch. Not set on main note. */
-/* 1-2 left/right notehead shift. Set only for chord note. */
-/* 3 tie positioning */
-/* 4 dotted slur */
-/* 6-11 voff1 1-63 => -31...+31 */
-/* 12-18 hoff1 1-127 => -6.3...+6.3 */
-/* 19-25 nolev */
-/* 26 \sluradjust (p+s) */
-/* 27 \nosluradjust (p-s) */
-/* 28 \tieadjust (p+t) */
-/* 29 \notieadjust (p-t) */
-/* cccccccccccc */
-/* c isdat3 cc */
-/* cccccccccccc */
-/* 0 set if midslur (at least one argument) */
-/* 1 set if curve (2 more args) */
-/* 2-7 32+first arg (height correction) (1st arg may be negative) */
-/* 8-10 second arg (initial slope) */
-/* 11-13 third arg (closing slope) */
-/* 14-21 tie level for use in LineBreakTies */
-/* 22-29 ncm for use in LineBreakTies */
-/* cccccccccccc */
-/* c isdat4 cc Set these all at turn-on using s option */
-/* cccccccccccc */
-/* 0-5 Linebreak seg 1 voff 1-63 => -31...+31 */
-/* 6-12 Linebreak seg 1 hoff 1-127 => -6.3...+6.3 */
-/* 16-21 Linebreak seg 2 voff 1-63 => -31...+31 */
-/* 22-28 Linebreak seg 2 hoff 1-127 => -6.3...+6.3 */
-/* cccccccccccc */
-/* icrdat c */
-/* cccccccccccc */
-/* 0-7 ip within voice */
-/* 8-11 ivx (together with 28th bit) */
-/* 12-18 note level */
-/* 19 accidental? */
-/* 20-22 accidental value (1=natural, 2=flat, 3=sharp, 6=dflat, 7=dsharp) */
-/* 23 shift left */
-/* 24 shift right */
-/* 25 arpeggio start or stop */
-/* 26 flag for moved dot (here, not icrdot, since this is always reset!) */
-/* 27 Midi-only accidental */
-/* 28 (6/27/10) 5th bit for ivx, to allow up to 24 voices */
-/* 29 Tag for accidental shift...means add to autoshifts. */
-/* 31 Flag for cautionary accidental on chord note */
-/* cccccccccccc */
-/* icrdot c: */
-/* cccccccccccc */
-/* 0-6 10*abs(vertical dot shift in \internote) + 64 */
-/* 7-13 10*abs(horizontal dot shift in \internote) + 64 */
-/* 14-19 vert accidental shift-32 */
-/* 20-26 20*(horiz accidental shift+3.2) */
-/* 27-29 top-down level rank of chord note w/accid. Set in crdaccs. */
-
-/* Bits in icrdorn are same as in iornq, even tho most orns won't go in crds. */
-
-/* ccccccccccccccccccccccccccccccc */
-#line 21094 ""
- /* Parameter adjustments */
-#line 21094 ""
- --poevec;
-#line 21094 ""
-
-#line 21094 ""
- /* Function Body */
-#line 21094 ""
- combottop_1.bottopgap = FALSE_;
-#line 21095 ""
- comlyr_1.inputmlyr = FALSE_;
-#line 21096 ""
- comhair_2.idhairuse = 0;
-#line 21097 ""
- if (! (*optimize)) {
-#line 21098 ""
- s_wsle(&io___1322);
-#line 21098 ""
- e_wsle();
-#line 21099 ""
- s_wsle(&io___1323);
-#line 21099 ""
- do_lio(&c__9, &c__1, "Starting second PMX pass", (ftnlen)24);
-#line 21099 ""
- e_wsle();
-#line 21100 ""
- s_wsle(&io___1324);
-#line 21100 ""
- e_wsle();
-#line 21101 ""
- s_wsfe(&io___1325);
-#line 21101 ""
- do_fio(&c__1, "Starting second PMX pass", (ftnlen)24);
-#line 21101 ""
- e_wsfe();
-#line 21102 ""
- }
-#line 21103 ""
- newclef = FALSE_;
-#line 21104 ""
- comclefrests_1.centrests = FALSE_;
-#line 21105 ""
- ++(*ncalls);
-#line 21106 ""
- comlast_1.islast = *inlast;
-#line 21107 ""
- commac_1.macuse = 0;
-#line 21108 ""
- isyscnt = 0;
-#line 21109 ""
- all_1.stemmax = 8.2f;
-#line 21110 ""
- all_1.stemmin = 3.9f;
-#line 21111 ""
- all_1.stemlen = 6.f;
-#line 21112 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 21112 ""
- *(unsigned char *)all_1.sq = *(unsigned char *)&ch__1[0];
-#line 21113 ""
- comignorenats_1.ignorenats = FALSE_;
-#line 21114 ""
- comignorenats_1.newmbrhgt = FALSE_;
-#line 21115 ""
- combc_1.bcspec = TRUE_;
-#line 21116 ""
- comas3_1.topmods = FALSE_;
-#line 21117 ""
- ismbr = FALSE_;
-#line 21118 ""
- s_rsfe(&io___1329);
-#line 21118 ""
- do_fio(&c__1, basenameq, (ftnlen)44);
-#line 21118 ""
- e_rsfe();
-#line 21119 ""
- s_rsle(&io___1331);
-#line 21119 ""
- do_lio(&c__3, &c__1, (char *)&lbase, (ftnlen)sizeof(integer));
-#line 21119 ""
- e_rsle();
-#line 21120 ""
- s_rsle(&io___1333);
-#line 21120 ""
- do_lio(&c__4, &c__1, (char *)&comask_1.fbar, (ftnlen)sizeof(real));
-#line 21120 ""
- do_lio(&c__4, &c__1, (char *)&comask_1.wheadpt, (ftnlen)sizeof(real));
-#line 21120 ""
- do_lio(&c__4, &c__1, (char *)&etait, (ftnlen)sizeof(real));
-#line 21120 ""
- do_lio(&c__4, &c__1, (char *)&etatc, (ftnlen)sizeof(real));
-#line 21120 ""
- do_lio(&c__4, &c__1, (char *)&etacs1, (ftnlen)sizeof(real));
-#line 21120 ""
- do_lio(&c__4, &c__1, (char *)&etatop, (ftnlen)sizeof(real));
-#line 21120 ""
- do_lio(&c__4, &c__1, (char *)&etabot, (ftnlen)sizeof(real));
-#line 21120 ""
- do_lio(&c__3, &c__1, (char *)&cominbot_1.inbothd, (ftnlen)sizeof(integer))
- ;
-#line 21120 ""
- do_lio(&c__3, &c__1, (char *)&inhnoh, (ftnlen)sizeof(integer));
-#line 21120 ""
- do_lio(&c__3, &c__1, (char *)&comtop_1.isig, (ftnlen)sizeof(integer));
-#line 21120 ""
- e_rsle();
-#line 21122 ""
- inbuff_1.ilbuf = 1;
-#line 21123 ""
- inbuff_1.ipbuf = 0;
-#line 21124 ""
- 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 21127 ""
- if (commidi_1.ismidi) {
-
-/* Initial key signature and meter for pickup bar */
-/* 130313 Unless explicit miditranspose for all parts (to be dealt with later), */
-/* want concert sig (isig0) here. K+n+m will have changed sig to isig */
-/* call midievent('k',isig,0) */
-/* 130316 */
-/* call midievent('k',isig0,0) */
-/* call midievent('k',midisig,0) */
-
-/* Above is probably cosmetic */
-/* call midievent('k',midisig,0) */
-#line 21139 ""
- if (xmtrnum0 > comtol_1.tol) {
-
-/* We have a pickup. Some tricky stuff to get a meter: */
-
-#line 21143 ""
- xntrial = xmtrnum0;
-#line 21144 ""
- for (ip2 = 0; ip2 <= 5; ++ip2) {
-#line 21145 ""
- if ((r__1 = r_mod(&xntrial, &c_b1053), dabs(r__1)) <
- comtol_1.tol) {
-#line 21145 ""
- goto L6;
-#line 21145 ""
- }
-#line 21146 ""
- xntrial *= 2;
-#line 21147 ""
-/* L5: */
-#line 21147 ""
- }
-#line 21148 ""
- s_wsle(&io___1349);
-#line 21148 ""
- do_lio(&c__9, &c__1, "Problem finding meter for pickup bar", (
- ftnlen)36);
-#line 21148 ""
- e_wsle();
-#line 21149 ""
- xntrial = 1.f;
-#line 21150 ""
- ip2 = 0;
-#line 21151 ""
-L6:
-#line 21152 ""
- i__1 = i_nint(&xntrial);
-#line 21152 ""
- i__2 = pow_ii(&c__2, &ip2) * all_1.mtrdenl;
-#line 21152 ""
- midievent_("m", &i__1, &i__2, (ftnlen)1);
-#line 21153 ""
- } else {
-
-/* No pickup, enter the starting meter */
-
-#line 21157 ""
- midievent_("m", &all_1.mtrnuml, &all_1.mtrdenl, (ftnlen)1);
-#line 21158 ""
- }
-#line 21159 ""
- }
-
-/* Set musicsize from value passed in common, due to possible reset by S[n]m16 */
-
-#line 21163 ""
- all_1.musicsize = commus_1.musize;
-#line 21164 ""
- s_rsle(&io___1350);
-#line 21164 ""
- do_lio(&c__3, &c__1, (char *)&npages, (ftnlen)sizeof(integer));
-#line 21164 ""
- do_lio(&c__4, &c__1, (char *)&comtop_1.widthpt, (ftnlen)sizeof(real));
-#line 21164 ""
- do_lio(&c__4, &c__1, (char *)&comtop_1.height, (ftnlen)sizeof(real));
-#line 21164 ""
- do_lio(&c__4, &c__1, (char *)&comtop_1.hoffpt, (ftnlen)sizeof(real));
-#line 21164 ""
- do_lio(&c__4, &c__1, (char *)&comtop_1.voffpt, (ftnlen)sizeof(real));
-#line 21164 ""
- do_lio(&c__3, &c__1, (char *)&nsyst, (ftnlen)sizeof(integer));
-#line 21164 ""
- i__1 = npages;
-#line 21164 ""
- for (ipa = 1; ipa <= i__1; ++ipa) {
-#line 21164 ""
- do_lio(&c__3, &c__1, (char *)&comnotes_1.nsystp[ipa - 1], (ftnlen)
- sizeof(integer));
-#line 21164 ""
- do_lio(&c__4, &c__1, (char *)&xnsttop[ipa - 1], (ftnlen)sizeof(real));
-#line 21164 ""
- do_lio(&c__4, &c__1, (char *)&xintstaff[ipa - 1], (ftnlen)sizeof(real)
- );
-#line 21164 ""
- }
-#line 21164 ""
- do_lio(&c__3, &c__1, (char *)&iauto, (ftnlen)sizeof(integer));
-#line 21164 ""
- e_rsle();
-
-/* If default width ever changes, must adjust this stmt. */
-
-#line 21169 ""
- slfac1 = 2.98156f / comtop_1.widthpt;
-#line 21170 ""
- all_1.figbass = FALSE_;
-#line 21171 ""
- s_rsle(&io___1356);
-#line 21171 ""
- do_lio(&c__3, &c__1, (char *)&ifig, (ftnlen)sizeof(integer));
-#line 21171 ""
- e_rsle();
-#line 21172 ""
- if (ifig == 1) {
-#line 21173 ""
- all_1.figbass = TRUE_;
-#line 21174 ""
- o__1.oerr = 0;
-#line 21174 ""
- o__1.ounit = 14;
-#line 21174 ""
- o__1.ofnm = 0;
-#line 21174 ""
- o__1.orl = 0;
-#line 21174 ""
- o__1.osta = "SCRATCH";
-#line 21174 ""
- o__1.oacc = 0;
-#line 21174 ""
- o__1.ofm = 0;
-#line 21174 ""
- o__1.oblnk = 0;
-#line 21174 ""
- f_open(&o__1);
-#line 21175 ""
- s_wsfe(&io___1358);
-/* Writing concatenation */
-#line 21175 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 21175 ""
- i__3[1] = 3, a__1[1] = "def";
-#line 21175 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 21175 ""
- i__3[3] = 8, a__1[3] = "fixdrop{";
-#line 21175 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 21175 ""
- i__3[5] = 7, a__1[5] = "advance";
-#line 21175 ""
- i__3[6] = 1, a__1[6] = all_1.sq;
-#line 21175 ""
- i__3[7] = 10, a__1[7] = "sysno by 1";
-#line 21175 ""
- i__3[8] = 1, a__1[8] = all_1.sq;
-#line 21175 ""
- i__3[9] = 6, a__1[9] = "ifcase";
-#line 21175 ""
- i__3[10] = 1, a__1[10] = all_1.sq;
-#line 21175 ""
- i__3[11] = 6, a__1[11] = "sysno%";
-#line 21175 ""
- s_cat(ch__2, a__1, i__3, &c__12, (ftnlen)46);
-#line 21175 ""
- do_fio(&c__1, ch__2, (ftnlen)46);
-#line 21175 ""
- e_wsfe();
-#line 21177 ""
- }
-#line 21178 ""
- comget_1.lastchar = FALSE_;
-#line 21179 ""
- ibcoff = 0;
-#line 21180 ""
- if (xmtrnum0 > 0.f) {
-#line 21180 ""
- ibcoff = -1;
-#line 21180 ""
- }
-#line 21181 ""
- o__1.oerr = 0;
-#line 21181 ""
- o__1.ounit = 11;
-#line 21181 ""
- o__1.ofnm = 0;
-#line 21181 ""
- o__1.orl = 0;
-#line 21181 ""
- o__1.osta = "SCRATCH";
-#line 21181 ""
- o__1.oacc = 0;
-#line 21181 ""
- o__1.ofm = 0;
-#line 21181 ""
- o__1.oblnk = 0;
-#line 21181 ""
- 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 21187 ""
- 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)
- 1);
-
-/* ninow is working value of # of instruments. noinst is max #, and # at start. */
-
-#line 21192 ""
- comnotes_1.ninow = noinst;
-
-/* Save original printed meter in case movement breaks */
-
-#line 21196 ""
- comget_1.movnmp = all_1.mtrnmp;
-#line 21197 ""
- comget_1.movdnp = all_1.mtrdnp;
-
-#line 21199 ""
- if (comlast_1.islast && all_1.figbass && all_1.musicsize == 16) {
-#line 21199 ""
- s_wsfe(&io___1361);
-/* Writing concatenation */
-#line 21199 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 21199 ""
- i__4[1] = 3, a__2[1] = "def";
-#line 21199 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 21199 ""
- i__4[3] = 8, a__2[3] = "figfont{";
-#line 21199 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 21199 ""
- i__4[5] = 9, a__2[5] = "eightrm}%";
-#line 21199 ""
- s_cat(ch__3, a__2, i__4, &c__6, (ftnlen)23);
-#line 21199 ""
- do_fio(&c__1, ch__3, (ftnlen)23);
-#line 21199 ""
- e_wsfe();
-#line 21199 ""
- }
-
-#line 21202 ""
- if (comlast_1.islast && comligfont_1.isligfont) {
-#line 21203 ""
- if (all_1.musicsize == 16) {
-#line 21204 ""
- s_wsfe(&io___1362);
-/* Writing concatenation */
-#line 21204 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 21204 ""
- i__5[1] = 4, a__3[1] = "font";
-#line 21204 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 21204 ""
- i__5[3] = 20, a__3[3] = "ligfont=cmrj at 8pt%";
-#line 21204 ""
- s_cat(ch__4, a__3, i__5, &c__4, (ftnlen)26);
-#line 21204 ""
- do_fio(&c__1, ch__4, (ftnlen)26);
-#line 21204 ""
- e_wsfe();
-#line 21205 ""
- } else {
-#line 21206 ""
- s_wsfe(&io___1363);
-/* Writing concatenation */
-#line 21206 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 21206 ""
- i__5[1] = 4, a__3[1] = "font";
-#line 21206 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 21206 ""
- i__5[3] = 21, a__3[3] = "ligfont=cmrj at 10pt%";
-#line 21206 ""
- s_cat(ch__5, a__3, i__5, &c__4, (ftnlen)27);
-#line 21206 ""
- do_fio(&c__1, ch__5, (ftnlen)27);
-#line 21206 ""
- e_wsfe();
-#line 21207 ""
- }
-#line 21208 ""
- }
-#line 21209 ""
- lenbeat = ifnodur_(&all_1.mtrdenl, "x", (ftnlen)1);
-#line 21210 ""
- if (all_1.mtrdenl == 2) {
-#line 21210 ""
- lenbeat = 16;
-#line 21210 ""
- }
-#line 21211 ""
- all_1.lenb1 = all_1.mtrnuml * lenbeat;
-#line 21212 ""
- if (all_1.mtrdenl == 2) {
-#line 21212 ""
- all_1.lenb1 <<= 1;
-#line 21212 ""
- }
-#line 21213 ""
- setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, &combeam_1.ibmtyp, &ibmrep);
-#line 21214 ""
- r__1 = xmtrnum0 * lenbeat;
-#line 21214 ""
- all_1.lenb0 = i_nint(&r__1);
-#line 21215 ""
- if (all_1.mtrdenl == 2) {
-#line 21215 ""
- all_1.lenb0 <<= 1;
-#line 21215 ""
- }
-#line 21216 ""
- if (all_1.lenb0 != 0) {
-#line 21217 ""
- if (comlast_1.islast) {
-#line 21217 ""
- s_wsfe(&io___1366);
-/* Writing concatenation */
-#line 21217 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 21217 ""
- i__5[1] = 7, a__3[1] = "advance";
-#line 21217 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 21217 ""
- i__5[3] = 11, a__3[3] = "barno by -1";
-#line 21217 ""
- s_cat(ch__6, a__3, i__5, &c__4, (ftnlen)20);
-#line 21217 ""
- do_fio(&c__1, ch__6, (ftnlen)20);
-#line 21217 ""
- e_wsfe();
-#line 21217 ""
- }
-#line 21218 ""
- all_1.lenbar = all_1.lenb0;
-#line 21219 ""
- } else {
-#line 21220 ""
- all_1.lenbar = all_1.lenb1;
-#line 21221 ""
- }
-
-/* Initialize full-program variables */
-
-#line 21225 ""
- comask_1.fixednew = 0.f;
-#line 21226 ""
- comask_1.scaldold = 0.f;
-#line 21227 ""
- comget_1.fintstf = -1.f;
-#line 21228 ""
- comget_1.gintstf = 1.f;
-#line 21229 ""
- comas2_1.nasksys = 0;
-#line 21230 ""
- combibarcnt_1.ibarcnt = 0;
-#line 21231 ""
- all_1.iline = 0;
-#line 21232 ""
- comget_1.movbrk = 0;
-#line 21233 ""
- isystpg = 0;
-#line 21234 ""
- comnotes_1.ipage = 1;
-#line 21235 ""
- all_1.iccount = 128;
-#line 21236 ""
- comas3_1.iask = 0;
-#line 21237 ""
- nhstot = 0;
-#line 21238 ""
- comnsp_2.nb = 1;
-#line 21239 ""
- if (! (*optimize)) {
-#line 21239 ""
- jprntb = 81;
-#line 21239 ""
- }
-#line 21240 ""
- comtop_1.idsig = 0;
-#line 21241 ""
- iflagbot = 0;
-
-/* Next 5 are raise-barno parameters. irzbnd is integer part of default level. */
-
-#line 21245 ""
- comsln_1.irzbnd = 3;
-#line 21246 ""
- if (comtop_1.isig == 3 && *(unsigned char *)&comclefq_1.clefq[all_1.nv -
- 1] == 't') {
-#line 21246 ""
- comsln_1.irzbnd = 4;
-#line 21246 ""
- }
-#line 21247 ""
- comsln_1.is1n1 = 0;
-#line 21248 ""
- comsln_1.isnx = 0;
-#line 21249 ""
- comslur_1.slurcurve = 0.f;
-#line 21250 ""
- comshort_1.ishort = 0;
-#line 21251 ""
- comshort_1.nocodabn = FALSE_;
-#line 21252 ""
- comshort_1.mbrsum = 0;
-#line 21253 ""
- comshort_1.nmbr = 0;
-
-/* 111109 Made global rather than per gulp */
-
-#line 21257 ""
- comdyn_1.ndyn = 0;
-#line 21258 ""
- compoi_1.ispoi = FALSE_;
-#line 21259 ""
- slint = FALSE_;
-#line 21260 ""
- lrptpend = FALSE_;
-#line 21261 ""
- comget_1.rptnd1 = FALSE_;
-#line 21262 ""
- *(unsigned char *)comget_1.rptfq2 = 'E';
-#line 21263 ""
- comget_1.rptprev = FALSE_;
-#line 21264 ""
- onvolt = FALSE_;
-#line 21265 ""
- comnsp_2.flgndb = FALSE_;
-#line 21266 ""
- comget_1.fbon = FALSE_;
-#line 21267 ""
- comnotes_1.shifton = FALSE_;
-#line 21268 ""
- comget_1.ornrpt = FALSE_;
-#line 21269 ""
- comnotes_1.setis = FALSE_;
-#line 21270 ""
- comarp_1.lowdot = FALSE_;
-#line 21271 ""
- comnvi_1.rename = FALSE_;
-#line 21272 ""
- comnotes_1.nobar1 = FALSE_;
-#line 21273 ""
- comget_1.equalize = FALSE_;
-#line 21274 ""
- comlast_1.usevshrink = TRUE_;
-#line 21275 ""
- comslur_1.wrotepsslurdefaults = FALSE_;
-#line 21276 ""
- comnotes_1.optlinebreakties = FALSE_;
-#line 21277 ""
- comnotes_1.headerspecial = FALSE_;
-
-/* vshrink is initialized in topfile */
-
-#line 21281 ""
- comget_1.stickys = FALSE_;
-
-/* ixrest = 1 or 2 if xtup has started with a rest */
-
-#line 21285 ""
- for (commvl_1.ivx = 1; commvl_1.ivx <= 24; ++commvl_1.ivx) {
-#line 21286 ""
- strtmid_1.ixrest[commvl_1.ivx - 1] = 0;
-#line 21287 ""
- comfig_1.fullsize[commvl_1.ivx - 1] = 1.f;
-
-/* Set legacy note level to middle c as default */
-
-#line 21291 ""
- comnotes_1.ndlev[commvl_1.ivx - 1] = 29;
-#line 21292 ""
- comnotes_1.ndlev[commvl_1.ivx + 23] = 29;
-#line 21293 ""
-/* L1: */
-#line 21293 ""
- }
-#line 21294 ""
- comnotes_1.npreslur = 0;
-#line 21295 ""
- nhssys = 0;
-#line 21296 ""
- comslur_1.listslur = 0;
-#line 21297 ""
- for (i__ = 1; i__ <= 202; ++i__) {
-#line 21298 ""
- all_1.isdat1[i__ - 1] = 0;
-#line 21299 ""
- all_1.isdat2[i__ - 1] = 0;
-#line 21300 ""
-/* L31: */
-#line 21300 ""
- }
-#line 21301 ""
- all_1.nsdat = 0;
-
-/* Initialize flag for figures in any other voice than 1 */
-
-#line 21305 ""
- comfig_1.ivxfig2 = 0;
-
-/* Initialize for loop over gulps */
-
-#line 21309 ""
- all_1.firstgulp = TRUE_;
-
-/* Start a gulp */
-
-#line 21313 ""
-L30:
-#line 21313 ""
- loop = TRUE_;
-#line 21314 ""
- comnotes_1.notcrd = TRUE_;
-#line 21315 ""
- combjmp_1.isbjmp = FALSE_;
-#line 21316 ""
- combjmp_1.isbj2 = FALSE_;
-#line 21317 ""
- comfb_1.autofbon = FALSE_;
-#line 21318 ""
- comfb_1.tautofb = 0.f;
-#line 21319 ""
- all_1.nbars = 0;
-#line 21320 ""
- comfig_1.nfigs[0] = 0;
-#line 21321 ""
- comfig_1.nfigs[1] = 0;
-#line 21322 ""
- comgrace_1.ngrace = 0;
-#line 21323 ""
- comtrill_1.ntrill = 0;
-#line 21324 ""
- comtrill_1.ncrd = 0;
-#line 21325 ""
- comtrill_1.nudorn = 0;
-#line 21326 ""
- comgrace_1.nlit = 0;
-#line 21327 ""
- comgrace_1.nvolt = 0;
-#line 21328 ""
- comgrace_1.ibarmbr = 0;
-#line 21329 ""
- comudsp_1.nudsp = 0;
-/* ndyn = 0 ! 111109 */
-#line 21331 ""
- comdyn_1.ntxtdyn = 0;
-#line 21332 ""
- comcb_1.nbc = 0;
-#line 21333 ""
- comarpshift_1.numarpshift = 0;
-#line 21334 ""
- for (i__ = 1; i__ <= 37; ++i__) {
-#line 21335 ""
- comgrace_1.graspace[i__ - 1] = 0.f;
-#line 21336 ""
-/* L3: */
-#line 21336 ""
- }
-
-/* 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 21341 ""
- i__1 = all_1.nv;
-#line 21341 ""
- for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) {
-#line 21342 ""
- newvoice_(&all_1.iv, comclefq_1.clefq + (all_1.iv - 1), &c_false, (
- ftnlen)1);
-#line 21343 ""
-/* L4: */
-#line 21343 ""
- }
-
-/* Check if endsymbol was set earlier */
-
-#line 21347 ""
- if (comget_1.rptnd1) {
-#line 21348 ""
- comget_1.rptnd1 = FALSE_;
-#line 21349 ""
- *(unsigned char *)comget_1.rptfq2 = *(unsigned char *)comget_1.rptfq1;
-#line 21350 ""
- } else {
-
-/* Only use if movbrk>0, to signal default ('RD') */
-
-#line 21354 ""
- *(unsigned char *)comget_1.rptfq2 = 'E';
-#line 21355 ""
- }
-#line 21356 ""
- all_1.iv = 1;
-#line 21357 ""
- commvl_1.ivx = 1;
-#line 21358 ""
-L2:
-#line 21358 ""
- if (loop) {
-
-/* Within this loop, nv voices are filled up for the duration of the block. */
-/* On exit (loop=.false.) the following are set: nnl(nv),itsofar(nv) */
-/* nolev(nv,nnl(nv)),nodur(..),accq(..),irest(..). */
-/* nbars is for this input block. */
-/* 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 21367 ""
- getnote_(&loop);
-#line 21368 ""
- if (comget_1.lastchar) {
-#line 21368 ""
- goto L40;
-#line 21368 ""
- }
-#line 21369 ""
- goto L2;
-#line 21370 ""
- }
-
-/* Finished an input block (gulp). */
-
-#line 21374 ""
- if (commidi_1.ismidi) {
-
-/* Put rests into midi array for 2nd lines that were not used in this gulp. */
-
-#line 21378 ""
- i__1 = all_1.nv;
-#line 21378 ""
- for (all_1.iv = 1; all_1.iv <= i__1; ++all_1.iv) {
-#line 21379 ""
- if (commidi_1.twoline[all_1.iv - 1] && commvl_1.nvmx[all_1.iv - 1]
- == 1) {
-#line 21380 ""
- if (all_1.firstgulp && all_1.lenb0 != 0) {
-#line 21381 ""
- r__1 = (all_1.nbars - 1.f) * all_1.lenbar + all_1.lenb0;
-#line 21381 ""
- addmidi_(&commidi_1.midchan[all_1.iv + 23], &c__0, &c__0,
- &c__0, &r__1, &c_true, &c_false);
-#line 21383 ""
- } else {
-#line 21384 ""
- r__1 = all_1.nbars * 1.f * all_1.lenbar;
-#line 21384 ""
- addmidi_(&commidi_1.midchan[all_1.iv + 23], &c__0, &c__0,
- &c__0, &r__1, &c_true, &c_false);
-#line 21386 ""
- }
-#line 21387 ""
- }
-#line 21388 ""
-/* L60: */
-#line 21388 ""
- }
-#line 21389 ""
- }
-#line 21390 ""
- comgrace_1.nvolt = 0;
-#line 21391 ""
- for (all_1.iv = 1; all_1.iv <= 24; ++all_1.iv) {
-#line 21392 ""
- comudsp_1.nudoff[all_1.iv - 1] = 0;
-#line 21393 ""
- comcc_1.maxdotmv[all_1.iv - 1] = comcc_1.ndotmv[all_1.iv - 1];
-#line 21394 ""
- comcc_1.ndotmv[all_1.iv - 1] = 0;
-#line 21395 ""
-/* L28: */
-#line 21395 ""
- }
-
-/* Put stuff at top of p.1. Must wait until now to have read title info. */
-
-#line 21399 ""
- if (combibarcnt_1.ibarcnt == 0) {
-#line 21400 ""
- 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 21402 ""
- if (comnotes_1.headerspecial) {
-#line 21402 ""
- s_wsfe(&io___1377);
-/* Writing concatenation */
-#line 21402 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 21402 ""
- i__6[0] = 1, a__4[0] = ch__1;
-#line 21402 ""
- i__6[1] = 28, a__4[1] = "special{header=psslurs.pro}%";
-#line 21402 ""
- s_cat(ch__7, a__4, i__6, &c__2, (ftnlen)29);
-#line 21402 ""
- do_fio(&c__1, ch__7, (ftnlen)29);
-#line 21402 ""
- e_wsfe();
-#line 21402 ""
- }
-
-/* Write special header for first page */
-
-#line 21407 ""
- }
-#line 21408 ""
- i__1 = all_1.nbars;
-#line 21408 ""
- for (all_1.ibar = 1; all_1.ibar <= i__1; ++all_1.ibar) {
-#line 21409 ""
- ++combibarcnt_1.ibarcnt;
-#line 21410 ""
- comask_1.bar1syst = combibarcnt_1.ibarcnt == iauto;
-/* Computing MAX */
-#line 21411 ""
- r__1 = combibarcnt_1.ibarcnt + .001f + ibcoff;
-#line 21411 ""
- i__2 = 0, i__7 = (integer) r_lg10(&r__1);
-#line 21411 ""
- ndig = max(i__2,i__7);
-#line 21412 ""
- if (comlast_1.islast) {
-#line 21412 ""
- ci__1.cierr = 0;
-#line 21412 ""
- ci__1.ciunit = 11;
-/* Writing concatenation */
-#line 21412 ""
- i__8[0] = 6, a__5[0] = "(a11,i";
-#line 21412 ""
- i__2 = ndig + 50;
-#line 21412 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 21412 ""
- i__8[1] = 1, a__5[1] = ch__1;
-#line 21412 ""
- i__8[2] = 1, a__5[2] = ")";
-#line 21412 ""
- ci__1.cifmt = (s_cat(ch__8, a__5, i__8, &c__3, (ftnlen)8), ch__8);
-#line 21412 ""
- s_wsfe(&ci__1);
-#line 21412 ""
- do_fio(&c__1, "% Bar count", (ftnlen)11);
-#line 21412 ""
- i__7 = combibarcnt_1.ibarcnt + ibcoff;
-#line 21412 ""
- do_fio(&c__1, (char *)&i__7, (ftnlen)sizeof(integer));
-#line 21412 ""
- e_wsfe();
-#line 21412 ""
- }
-#line 21415 ""
- if (all_1.ibar != comgrace_1.ibarmbr) {
-#line 21416 ""
- if (! (*optimize)) {
-#line 21416 ""
- i__2 = combibarcnt_1.ibarcnt + ibcoff;
-#line 21416 ""
- outbar_(&i__2, &jprntb);
-#line 21416 ""
- }
-#line 21417 ""
- } else {
-#line 21418 ""
- if (! (*optimize)) {
-#line 21419 ""
- s_wsfe(&io___1379);
-#line 21419 ""
- do_fio(&c__1, " Multibar rest, bars", (ftnlen)20);
-#line 21419 ""
- i__2 = combibarcnt_1.ibarcnt + ibcoff;
-#line 21419 ""
- do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer));
-#line 21419 ""
- do_fio(&c__1, "-", (ftnlen)1);
-#line 21419 ""
- i__7 = combibarcnt_1.ibarcnt + ibcoff + comgrace_1.mbrest - 1;
-#line 21419 ""
- do_fio(&c__1, (char *)&i__7, (ftnlen)sizeof(integer));
-#line 21419 ""
- e_wsfe();
-#line 21421 ""
- s_wsfe(&io___1380);
-#line 21421 ""
- do_fio(&c__1, " Multibar rest, bars", (ftnlen)20);
-#line 21421 ""
- i__2 = combibarcnt_1.ibarcnt + ibcoff;
-#line 21421 ""
- do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer));
-#line 21421 ""
- do_fio(&c__1, "-", (ftnlen)1);
-#line 21421 ""
- i__7 = combibarcnt_1.ibarcnt + ibcoff + comgrace_1.mbrest - 1;
-#line 21421 ""
- do_fio(&c__1, (char *)&i__7, (ftnlen)sizeof(integer));
-#line 21421 ""
- e_wsfe();
-#line 21423 ""
- jprntb = 0;
-#line 21424 ""
- }
-#line 21425 ""
- ibcoff = ibcoff + comgrace_1.mbrest - 1;
-/* if (ibar.eq.1 .and. firstgulp .and. */
-/* * .not.btest(islur(1,1),5)) xb4mbr = facmtr*musicsize */
-#line 21428 ""
- if (all_1.ibar == 1 && all_1.firstgulp && ! bit_test(all_1.islur[
- 0],5)) {
-#line 21428 ""
- comgrace_1.xb4mbr = all_1.musicsize * -.2f;
-#line 21428 ""
- }
-#line 21430 ""
- }
-
-/* Move the read to after end-of-bar hardspace checks, so we get right poenom */
-/* at end of a line. */
-/* if (bar1syst) read(12,*) poenom */
-
-/* Check for clef at start of bar. No slide yet. Also flags at end of prev. */
-/* bar. This block is run at the start of every bar. May fail for flag at */
-/* end of last bar. To account for necc. hardspaces, compute and store */
-/* nhssys = # of hard spaces for this system */
-/* hesk(nhssys) = elemskips avialable */
-/* hpts(nhssys) = hard points needed, including notehead */
-/* Here, merely insert placeholder into output. Later, when poe is computed, */
-/* compute additional pts and store them in hpttot(1...nhstot). Finally in */
-/* subroutine askfig, write true pts where placeholders are. */
-
-#line 21446 ""
- ioff = 0;
-#line 21447 ""
- if (all_1.ibar > 1) {
-#line 21447 ""
- ioff = all_1.nib[(all_1.ibar - 1) * 24 - 24];
-#line 21447 ""
- }
-#line 21448 ""
- clchb = bit_test(all_1.islur[(ioff + 1) * 24 - 24],15);
-#line 21449 ""
- putmbr = FALSE_;
-#line 21450 ""
- if (ismbr) {
-#line 21451 ""
- if (clchb) {
-/* cc */
-/* cc Clef change and multi-bar rest coming up. Kluge to get space at end of rest. */
-/* cc */
-#line 21455 ""
- s_wsfe(&io___1384);
-/* Writing concatenation */
-#line 21455 ""
- i__9[0] = 1, a__6[0] = all_1.sq;
-#line 21455 ""
- i__9[1] = 3, a__6[1] = "let";
-#line 21455 ""
- i__9[2] = 1, a__6[2] = all_1.sq;
-#line 21455 ""
- i__9[3] = 4, a__6[3] = "mbrt";
-#line 21455 ""
- i__9[4] = 1, a__6[4] = all_1.sq;
-#line 21455 ""
- i__9[5] = 6, a__6[5] = "mbrest";
-#line 21455 ""
- i__9[6] = 1, a__6[6] = all_1.sq;
-#line 21455 ""
- i__9[7] = 3, a__6[7] = "def";
-#line 21455 ""
- i__9[8] = 1, a__6[8] = all_1.sq;
-#line 21455 ""
- i__9[9] = 14, a__6[9] = "mbrest#1#2#3{%";
-#line 21455 ""
- s_cat(ch__9, a__6, i__9, &c__10, (ftnlen)35);
-#line 21455 ""
- do_fio(&c__1, ch__9, (ftnlen)35);
-#line 21455 ""
- e_wsfe();
-#line 21457 ""
- s_wsfe(&io___1385);
-/* Writing concatenation */
-#line 21457 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21457 ""
- i__6[1] = 13, a__4[1] = "mbrt{#1}{#2}{";
-#line 21457 ""
- s_cat(ch__10, a__4, i__6, &c__2, (ftnlen)14);
-#line 21457 ""
- do_fio(&c__1, ch__10, (ftnlen)14);
-#line 21457 ""
- r__1 = all_1.musicsize * .55f;
-#line 21457 ""
- do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real));
-/* Writing concatenation */
-#line 21457 ""
- i__10[0] = 1, a__7[0] = "}";
-#line 21457 ""
- i__10[1] = 1, a__7[1] = all_1.sq;
-#line 21457 ""
- i__10[2] = 6, a__7[2] = "global";
-#line 21457 ""
- i__10[3] = 1, a__7[3] = all_1.sq;
-#line 21457 ""
- i__10[4] = 3, a__7[4] = "let";
-#line 21457 ""
- i__10[5] = 1, a__7[5] = all_1.sq;
-#line 21457 ""
- i__10[6] = 6, a__7[6] = "mbrest";
-#line 21457 ""
- i__10[7] = 1, a__7[7] = all_1.sq;
-#line 21457 ""
- i__10[8] = 6, a__7[8] = "mbrt}%";
-#line 21457 ""
- s_cat(ch__4, a__7, i__10, &c__9, (ftnlen)26);
-#line 21457 ""
- do_fio(&c__1, ch__4, (ftnlen)26);
-#line 21457 ""
- 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 21464 ""
- }
-#line 21465 ""
- ismbr = FALSE_;
-#line 21466 ""
- putmbr = TRUE_;
-#line 21467 ""
- }
-#line 21468 ""
- if (all_1.ibar == comgrace_1.ibarmbr) {
-#line 21468 ""
- ismbr = TRUE_;
-#line 21468 ""
- }
-
-/* 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 21473 ""
- if (! (clchb || comnsp_2.flgndb)) {
-#line 21473 ""
- goto L23;
-#line 21473 ""
- }
-
-/* Must check available space */
-
-#line 21477 ""
- ptsndb = 0.f;
-
-/* Zero out block signal */
-
-#line 21481 ""
- if (clchb) {
-#line 21481 ""
- all_1.islur[(ioff + 1) * 24 - 24] = bit_clear(all_1.islur[(ioff +
- 1) * 24 - 24],15);
-#line 21481 ""
- }
-
-/* In this loop, we determine how much hardspace is needed (if any) */
-/* 9/7/97 Note that for last bar in input block, if number of lines of */
-/* music decreases in new block, highest numbered ones won't be checked */
-/* since the loop below covers the new nvmx(iv), not necessarily the old */
-/* one. */
-/* 4/18/98 Apparently nmxsav was a solution to the above problem */
-
-#line 21490 ""
- i__2 = all_1.nv;
-#line 21490 ""
- for (all_1.iv = 1; all_1.iv <= i__2; ++all_1.iv) {
-#line 21491 ""
- i__7 = comnsp_2.nvmxsav[all_1.iv - 1];
-#line 21491 ""
- for (kv = 1; kv <= i__7; ++kv) {
-#line 21492 ""
- commvl_1.ivx = comnsp_2.ivmxsav[all_1.iv + kv * 24 - 25];
-#line 21493 ""
- ptsndv = comnsp_2.flgndv[commvl_1.ivx - 1] * comask_1.wheadpt;
-#line 21494 ""
- ioff = 0;
-#line 21495 ""
- if (all_1.ibar > 1) {
-#line 21496 ""
- ioff = all_1.nib[commvl_1.ivx + (all_1.ibar - 1) * 24 -
- 25];
-#line 21497 ""
- ip = ioff;
-#line 21498 ""
- if (all_1.ibar > 2) {
-#line 21498 ""
- ip = ioff - all_1.nib[commvl_1.ivx + (all_1.ibar - 2)
- * 24 - 25];
-#line 21498 ""
- }
-/* prevtn(ivx) = tnote(iand(ipl(ivx,ip),255)) */
-#line 21500 ""
- 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 21504 ""
- }
-
-/* Only allow clef changes when ivx <= nv */
-
-#line 21508 ""
- if (commvl_1.ivx <= all_1.nv) {
-#line 21509 ""
- clchv[all_1.iv - 1] = clchb && bit_test(all_1.islur[
- all_1.iv + (ioff + 1) * 24 - 25],11);
-#line 21510 ""
- if (clchv[all_1.iv - 1]) {
-
-/* Clef change in this voice. Turn off signal. Get space avail. */
-
-#line 21514 ""
- all_1.islur[all_1.iv + (ioff + 1) * 24 - 25] =
- bit_clear(all_1.islur[all_1.iv + (ioff + 1) *
- 24 - 25],11);
-#line 21515 ""
- if ((r__1 = comnsp_2.prevtn[all_1.iv - 1] -
- comnsp_2.space[comnsp_2.nb - 1], dabs(r__1)) <
- comtol_1.tol) {
-#line 21515 ""
- ptsndv += combmh_1.clefend * comask_1.wheadpt;
-#line 21515 ""
- }
-#line 21517 ""
- }
-#line 21518 ""
- }
-/* Computing MAX */
-#line 21519 ""
- r__1 = ptsndb, r__2 = ptsndv + comask_1.wheadpt *
- spfacs_1.xspfac;
-#line 21519 ""
- ptsndb = dmax(r__1,r__2);
-#line 21520 ""
-/* L16: */
-#line 21520 ""
- }
-#line 21520 ""
- }
-
-/* ???? where is nb set??? nb probably in left over from makeabar */
-
-#line 21524 ""
- r__1 = comnsp_2.space[comnsp_2.nb - 1] * squez[comnsp_2.nb - 1];
-#line 21524 ""
- esk = feon_(&r__1);
-#line 21525 ""
- ptsdflt = esk * comask_1.poenom - comask_1.wheadpt;
-/* if ((ptsndb.gt.ptsdflt.or.ptsgnd.gt.0.) .and. movbrk.eq.0) then */
-#line 21527 ""
- 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 21532 ""
- if (comlast_1.islast) {
-#line 21532 ""
- s_wsfe(&io___1394);
-/* Writing concatenation */
-#line 21532 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21532 ""
- i__6[1] = 18, a__4[1] = "xardspace{ pt}%";
-#line 21532 ""
- s_cat(ch__11, a__4, i__6, &c__2, (ftnlen)19);
-#line 21532 ""
- do_fio(&c__1, ch__11, (ftnlen)19);
-#line 21532 ""
- e_wsfe();
-#line 21532 ""
- }
-#line 21533 ""
- ++nhssys;
-#line 21534 ""
- if (ptsndb - ptsdflt > comnsp_2.ptsgnd - comask_1.poenom *
- comnsp_2.eskgnd) {
-#line 21535 ""
- hesk[nhssys - 1] = esk;
-#line 21536 ""
- hpts[nhssys - 1] = ptsndb + comask_1.wheadpt;
-#line 21537 ""
- } else {
-#line 21538 ""
- hesk[nhssys - 1] = comnsp_2.eskgnd;
-#line 21539 ""
- hpts[nhssys - 1] = comnsp_2.ptsgnd + comask_1.wheadpt;
-#line 21540 ""
- }
-#line 21541 ""
- comask_1.fixednew += hpts[nhssys - 1];
-#line 21542 ""
- comask_1.scaldold += hesk[nhssys - 1];
-#line 21543 ""
- }
-#line 21544 ""
- if (clchb) {
-#line 21545 ""
- i__7 = all_1.nv;
-#line 21545 ""
- for (all_1.iv = 1; all_1.iv <= i__7; ++all_1.iv) {
-#line 21546 ""
- if (clchv[all_1.iv - 1]) {
-/* Writing concatenation */
-#line 21547 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21547 ""
- i__6[1] = 6, a__4[1] = "znotes";
-#line 21547 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 21548 ""
- lnote = 7;
-#line 21549 ""
- i__2 = all_1.iv;
-#line 21549 ""
- for (iiv = 2; iiv <= i__2; ++iiv) {
-/* Writing concatenation */
-#line 21550 ""
- i__6[0] = lnote, a__4[0] = notexq;
-#line 21550 ""
- i__6[1] = 1, a__4[1] = all_1.sepsymq + (iiv - 2);
-#line 21550 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 21551 ""
- ++lnote;
-#line 21552 ""
-/* L24: */
-#line 21552 ""
- }
-
-/* Recompute ioff since it will vary from voice to voice */
-
-#line 21556 ""
- if (all_1.ibar == 1) {
-#line 21557 ""
- ioff = 0;
-#line 21558 ""
- } else {
-#line 21559 ""
- ioff = all_1.nib[all_1.iv + (all_1.ibar - 1) * 24 -
- 25];
-#line 21560 ""
- }
-
-/* Must call clefsym to get nclef, even if there is a movement break */
-
-#line 21564 ""
- 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 21568 ""
- if (bit_test(all_1.ipl[all_1.iv + (ioff + 1) * 24 - 25],2)
- ) {
-/* Writing concatenation */
-#line 21568 ""
- i__8[0] = 8, a__5[0] = fmtq;
-#line 21568 ""
- i__8[1] = 1, a__5[1] = "8";
-#line 21568 ""
- i__8[2] = 1, a__5[2] = fmtq + 9;
-#line 21568 ""
- s_cat(fmtq, a__5, i__8, &c__3, (ftnlen)24);
-#line 21568 ""
- }
-#line 21570 ""
- if (comget_1.movbrk == 0 && comlast_1.islast) {
-#line 21570 ""
- s_wsfe(&io___1403);
-/* Writing concatenation */
-#line 21570 ""
- i__5[0] = lnote, a__3[0] = notexq;
-#line 21570 ""
- i__5[1] = lclef, a__3[1] = fmtq;
-#line 21570 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 21570 ""
- i__5[3] = 3, a__3[3] = "en%";
-#line 21570 ""
- s_cat(ch__12, a__3, i__5, &c__4, (ftnlen)107);
-#line 21570 ""
- do_fio(&c__1, ch__12, lnote + lclef + 4);
-#line 21570 ""
- e_wsfe();
-#line 21570 ""
- }
-#line 21573 ""
- 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 21578 ""
- newclef = TRUE_;
-
-/* 151220 */
-/* wrong test: */
-/* If clefq = '8', must add eg \settrebleclefsymbol3\treblelowoct% */
-/* Replaced with right one. But also, clefq(iv) seems to stay at 8 here, */
-/* and if we change from TLO to normal clef, need to resetclefsymbols */
-
-/* if (clefq(iv) .eq. '8') then */
-#line 21587 ""
- if (bit_test(all_1.ipl[all_1.iv + (ioff + 1) * 24 - 25],2)
- ) {
-
-/* Find instrument number for voice iv */
-
-#line 21591 ""
- iv1 = 1;
-#line 21592 ""
- i__2 = comnotes_1.ninow;
-#line 21592 ""
- for (iinst = 1; iinst <= i__2; ++iinst) {
-#line 21593 ""
- if (all_1.iv < iv1 + comnvi_1.nspern[iinst - 1]) {
-#line 21593 ""
- goto L2222;
-#line 21593 ""
- }
-#line 21594 ""
- iv1 += comnvi_1.nspern[iinst - 1];
-#line 21595 ""
-/* L1111: */
-#line 21595 ""
- }
-#line 21596 ""
- s_wsle(&io___1406);
-#line 21596 ""
- e_wsle();
-#line 21597 ""
- s_wsle(&io___1407);
-#line 21597 ""
- do_lio(&c__9, &c__1, "Should not be here in pmxb!", (
- ftnlen)27);
-#line 21597 ""
- e_wsle();
-#line 21598 ""
- stop1_();
-#line 21599 ""
-L2222:
-#line 21600 ""
- if (iinst <= 9) {
-#line 21601 ""
- s_wsfe(&io___1408);
-/* Writing concatenation */
-#line 21601 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21601 ""
- i__6[1] = 19, a__4[1] = "settrebleclefsymbol";
-#line 21601 ""
- s_cat(ch__6, a__4, i__6, &c__2, (ftnlen)20);
-#line 21601 ""
- do_fio(&c__1, ch__6, (ftnlen)20);
-#line 21601 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(
- integer));
-/* Writing concatenation */
-#line 21601 ""
- i__11[0] = 1, a__8[0] = all_1.sq;
-#line 21601 ""
- i__11[1] = 13, a__8[1] = "treblelowoct%";
-#line 21601 ""
- s_cat(ch__10, a__8, i__11, &c__2, (ftnlen)14);
-#line 21601 ""
- do_fio(&c__1, ch__10, (ftnlen)14);
-#line 21601 ""
- e_wsfe();
-#line 21603 ""
- } else {
-#line 21604 ""
- s_wsfe(&io___1409);
-/* Writing concatenation */
-#line 21604 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21604 ""
- i__6[1] = 19, a__4[1] = "settrebleclefsymbol";
-#line 21604 ""
- s_cat(ch__6, a__4, i__6, &c__2, (ftnlen)20);
-#line 21604 ""
- do_fio(&c__1, ch__6, (ftnlen)20);
-#line 21604 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(
- integer));
-/* Writing concatenation */
-#line 21604 ""
- i__11[0] = 1, a__8[0] = all_1.sq;
-#line 21604 ""
- i__11[1] = 13, a__8[1] = "treblelowoct%";
-#line 21604 ""
- s_cat(ch__10, a__8, i__11, &c__2, (ftnlen)14);
-#line 21604 ""
- do_fio(&c__1, ch__10, (ftnlen)14);
-#line 21604 ""
- e_wsfe();
-#line 21606 ""
- }
-#line 21607 ""
- comc8flag_1.c8flag[all_1.iv - 1] = TRUE_;
-#line 21608 ""
- } else {
-#line 21609 ""
- if (*(unsigned char *)&comclefq_1.clefq[all_1.iv - 1]
- == '8') {
-#line 21610 ""
- s_wsfe(&io___1410);
-/* Writing concatenation */
-#line 21610 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21610 ""
- i__6[1] = 16, a__4[1] = "resetclefsymbols";
-#line 21610 ""
- s_cat(ch__13, a__4, i__6, &c__2, (ftnlen)17);
-#line 21610 ""
- do_fio(&c__1, ch__13, (ftnlen)17);
-#line 21610 ""
- e_wsfe();
-#line 21611 ""
- }
-#line 21612 ""
- }
-#line 21613 ""
- }
-#line 21614 ""
-/* L17: */
-#line 21614 ""
- }
-#line 21615 ""
- if (comlast_1.islast) {
-#line 21615 ""
- s_wsfe(&io___1411);
-/* Writing concatenation */
-#line 21615 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21615 ""
- i__6[1] = 11, a__4[1] = "pmxnewclefs";
-#line 21615 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12);
-#line 21615 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 21615 ""
- e_wsfe();
-#line 21615 ""
- }
-#line 21616 ""
- }
-#line 21617 ""
-L23:
-
-/* Kluge \CenterBar for whole bar rests if necessary */
-
-#line 21621 ""
- if (newclef && comclefrests_1.centrests) {
-/* write(11,'(a)')sq//'def'//sq//'value{11}%' */
-#line 21623 ""
- r__1 = all_1.musicsize * .55f;
-#line 21623 ""
- nvalue = i_nint(&r__1);
-#line 21624 ""
- if (nvalue > 10) {
-#line 21625 ""
- s_wsfe(&io___1413);
-/* Writing concatenation */
-#line 21625 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 21625 ""
- i__5[1] = 3, a__3[1] = "def";
-#line 21625 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 21625 ""
- i__5[3] = 6, a__3[3] = "value{";
-#line 21625 ""
- s_cat(ch__15, a__3, i__5, &c__4, (ftnlen)11);
-#line 21625 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 21625 ""
- do_fio(&c__1, (char *)&nvalue, (ftnlen)sizeof(integer));
-#line 21625 ""
- do_fio(&c__1, "}%", (ftnlen)2);
-#line 21625 ""
- e_wsfe();
-#line 21627 ""
- } else {
-#line 21628 ""
- s_wsfe(&io___1414);
-/* Writing concatenation */
-#line 21628 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 21628 ""
- i__5[1] = 3, a__3[1] = "def";
-#line 21628 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 21628 ""
- i__5[3] = 6, a__3[3] = "value{";
-#line 21628 ""
- s_cat(ch__15, a__3, i__5, &c__4, (ftnlen)11);
-#line 21628 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 21628 ""
- do_fio(&c__1, (char *)&nvalue, (ftnlen)sizeof(integer));
-#line 21628 ""
- do_fio(&c__1, "}%", (ftnlen)2);
-#line 21628 ""
- e_wsfe();
-#line 21630 ""
- }
-#line 21631 ""
- }
-#line 21632 ""
- newclef = FALSE_;
-#line 21633 ""
- comclefrests_1.centrests = FALSE_;
-
-/* End of loop for end-of-bar hardspaces and non-movbrk clef symbol. */
-
-#line 21637 ""
- if (comask_1.bar1syst) {
-#line 21638 ""
- s_rsle(&io___1415);
-#line 21638 ""
- do_lio(&c__4, &c__1, (char *)&comask_1.poenom, (ftnlen)sizeof(
- real));
-#line 21638 ""
- e_rsle();
-#line 21639 ""
- }
-
-/* Repeat symbols. Haven't slid down yet, so use islur(1,nib(1,ibar-1)+1) */
-
-#line 21643 ""
- if (all_1.ibar == 1) {
-#line 21644 ""
- islnow = all_1.islur[0];
-/* iornqnow = iornq(1,1) */
-#line 21646 ""
- iplnow = all_1.ipl[0];
-#line 21647 ""
- } else {
-#line 21648 ""
- 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 21650 ""
- iplnow = all_1.ipl[(all_1.nib[(all_1.ibar - 1) * 24 - 24] + 1) *
- 24 - 24];
-#line 21651 ""
- }
-
-/* Check for R-symbols set at end of prior input block */
-
-#line 21655 ""
- if (comget_1.movbrk == 0 && *(unsigned char *)comget_1.rptfq2 != 'E')
- {
-#line 21656 ""
- if (*(unsigned char *)comget_1.rptfq2 == 'D') {
-#line 21657 ""
- islnow = bit_set(islnow,26);
-#line 21658 ""
- } else if (*(unsigned char *)comget_1.rptfq2 == 'r') {
-#line 21659 ""
- islnow = bit_set(islnow,6);
-#line 21660 ""
- } else if (*(unsigned char *)comget_1.rptfq2 == 'd') {
-#line 21661 ""
- islnow = bit_set(islnow,8);
-#line 21662 ""
- } else if (*(unsigned char *)comget_1.rptfq2 == 'b') {
-#line 21663 ""
- islnow = bit_set(islnow,25);
-#line 21664 ""
- } else {
-#line 21665 ""
- s_wsle(&io___1418);
-#line 21665 ""
- e_wsle();
-#line 21666 ""
- s_wsle(&io___1419);
-#line 21666 ""
- do_lio(&c__9, &c__1, "Illegal symbol with \"R\" at end of in"\
- "put block:", (ftnlen)46);
-#line 21666 ""
- do_lio(&c__9, &c__1, comget_1.rptfq2, (ftnlen)1);
-#line 21666 ""
- e_wsle();
-#line 21668 ""
- stop1_();
-#line 21669 ""
- }
-#line 21670 ""
- *(unsigned char *)comget_1.rptfq2 = 'E';
-#line 21671 ""
- }
-#line 21672 ""
- if ((islnow & 352) != 0) {
-
-/* Bit 5(lrpt), 6(rrpt), or 8(doublebar) has been set */
-
-#line 21676 ""
- lrpt = bit_test(islnow,5);
-#line 21677 ""
- rrpt = bit_test(islnow,6);
-#line 21678 ""
- lrptpend = lrpt && comask_1.bar1syst;
-#line 21679 ""
- if (lrpt && ! lrptpend) {
-#line 21680 ""
- if (rrpt) {
-#line 21681 ""
- if (comlast_1.islast) {
-#line 21681 ""
- s_wsfe(&io___1422);
-/* Writing concatenation */
-#line 21681 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21681 ""
- i__6[1] = 18, a__4[1] = "setleftrightrepeat";
-#line 21681 ""
- s_cat(ch__11, a__4, i__6, &c__2, (ftnlen)19);
-#line 21681 ""
- do_fio(&c__1, ch__11, (ftnlen)19);
-#line 21681 ""
- e_wsfe();
-#line 21681 ""
- }
-#line 21682 ""
- comask_1.fixednew = comask_1.fixednew + comask_1.wheadpt *
- spfacs_1.lrrptfac - .4f;
-#line 21683 ""
- } else {
-#line 21684 ""
- if (comlast_1.islast) {
-#line 21684 ""
- s_wsfe(&io___1423);
-/* Writing concatenation */
-#line 21684 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21684 ""
- i__6[1] = 13, a__4[1] = "setleftrepeat";
-#line 21684 ""
- s_cat(ch__10, a__4, i__6, &c__2, (ftnlen)14);
-#line 21684 ""
- do_fio(&c__1, ch__10, (ftnlen)14);
-#line 21684 ""
- e_wsfe();
-#line 21684 ""
- }
-#line 21685 ""
- comask_1.fixednew = comask_1.fixednew + comask_1.wheadpt *
- spfacs_1.rptfac - .4f;
-#line 21686 ""
- }
-#line 21687 ""
- } else if (rrpt) {
-#line 21688 ""
- if (comlast_1.islast) {
-#line 21688 ""
- s_wsfe(&io___1424);
-/* Writing concatenation */
-#line 21688 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21688 ""
- i__6[1] = 14, a__4[1] = "setrightrepeat";
-#line 21688 ""
- s_cat(ch__16, a__4, i__6, &c__2, (ftnlen)15);
-#line 21688 ""
- do_fio(&c__1, ch__16, (ftnlen)15);
-#line 21688 ""
- e_wsfe();
-#line 21688 ""
- }
-#line 21689 ""
- comask_1.fixednew = comask_1.fixednew + comask_1.wheadpt *
- spfacs_1.rptfac - .4f;
-#line 21690 ""
- } else if (bit_test(islnow,8)) {
-#line 21691 ""
- if (comlast_1.islast) {
-#line 21691 ""
- s_wsfe(&io___1425);
-/* Writing concatenation */
-#line 21691 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21691 ""
- i__6[1] = 12, a__4[1] = "setdoublebar";
-#line 21691 ""
- s_cat(ch__17, a__4, i__6, &c__2, (ftnlen)13);
-#line 21691 ""
- do_fio(&c__1, ch__17, (ftnlen)13);
-#line 21691 ""
- e_wsfe();
-#line 21691 ""
- }
-#line 21692 ""
- comask_1.fixednew = comask_1.fixednew + comask_1.wheadpt *
- spfacs_1.dbarfac - .4f;
-#line 21693 ""
- }
-#line 21694 ""
- } else if (bit_test(islnow,26)) {
-
-/* doubleBAR */
-
-#line 21698 ""
- if (comlast_1.islast) {
-#line 21698 ""
- s_wsfe(&io___1426);
-/* Writing concatenation */
-#line 21698 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21698 ""
- i__6[1] = 12, a__4[1] = "setdoubleBAR";
-#line 21698 ""
- s_cat(ch__17, a__4, i__6, &c__2, (ftnlen)13);
-#line 21698 ""
- do_fio(&c__1, ch__17, (ftnlen)13);
-#line 21698 ""
- e_wsfe();
-#line 21698 ""
- }
-#line 21699 ""
- comask_1.fixednew = comask_1.fixednew + comask_1.wheadpt *
- spfacs_1.ddbarfac - .4f;
-/* else if (btest(iornqnow,29)) then */
-#line 21701 ""
- } else if (bit_test(iplnow,0)) {
-
-/* no bar line */
-
-/* -- if (islast) write(11,'(a)')sq//'setzalaligne' */
-/* ++ */
-#line 21707 ""
- if (comlast_1.islast) {
-#line 21708 ""
- if (comget_1.movbrk == 0) {
-#line 21709 ""
- s_wsfe(&io___1427);
-/* Writing concatenation */
-#line 21709 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21709 ""
- i__6[1] = 12, a__4[1] = "setzalaligne";
-#line 21709 ""
- s_cat(ch__17, a__4, i__6, &c__2, (ftnlen)13);
-#line 21709 ""
- do_fio(&c__1, ch__17, (ftnlen)13);
-#line 21709 ""
- e_wsfe();
-#line 21710 ""
- } 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 21716 ""
- *(unsigned char *)comget_1.rptfq2 = 'z';
-#line 21717 ""
- }
-#line 21718 ""
- }
-/* ++ */
-#line 21720 ""
- comask_1.fixednew += -.4f;
-#line 21721 ""
- }
-
-/* 1st and 2nd endings */
-
-#line 21725 ""
- svolta = bit_test(islnow,7);
-#line 21726 ""
- evolta = bit_test(islnow,9);
-#line 21727 ""
- if (evolta) {
-#line 21728 ""
- if (bit_test(islnow,10)) {
-#line 21729 ""
- if (comlast_1.islast) {
-#line 21729 ""
- s_wsfe(&io___1430);
-/* Writing concatenation */
-#line 21729 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21729 ""
- i__6[1] = 11, a__4[1] = "endvoltabox";
-#line 21729 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12);
-#line 21729 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 21729 ""
- e_wsfe();
-#line 21729 ""
- }
-#line 21730 ""
- } else {
-#line 21731 ""
- if (comlast_1.islast) {
-#line 21731 ""
- s_wsfe(&io___1431);
-/* Writing concatenation */
-#line 21731 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21731 ""
- i__6[1] = 8, a__4[1] = "endvolta";
-#line 21731 ""
- s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9);
-#line 21731 ""
- do_fio(&c__1, ch__18, (ftnlen)9);
-#line 21731 ""
- e_wsfe();
-#line 21731 ""
- }
-#line 21732 ""
- }
-#line 21733 ""
- onvolt = FALSE_;
-#line 21734 ""
- }
-#line 21735 ""
- if (svolta) {
-#line 21736 ""
- ++comgrace_1.nvolt;
-#line 21737 ""
- lvoltxt = i_indx(comgrace_1.voltxtq + (comgrace_1.nvolt - 1) * 20,
- " ", (ftnlen)20, (ftnlen)1) - 1;
-#line 21738 ""
- if (lvoltxt == 1) {
-#line 21739 ""
- if (comlast_1.islast) {
-#line 21739 ""
- s_wsfe(&io___1433);
-/* Writing concatenation */
-#line 21739 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 21739 ""
- i__5[1] = 8, a__3[1] = "Setvolta";
-#line 21739 ""
- i__5[2] = 1, a__3[2] = comgrace_1.voltxtq + (
- comgrace_1.nvolt - 1) * 20;
-#line 21739 ""
- i__5[3] = 1, a__3[3] = "%";
-#line 21739 ""
- s_cat(ch__15, a__3, i__5, &c__4, (ftnlen)11);
-#line 21739 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 21739 ""
- e_wsfe();
-#line 21739 ""
- }
-#line 21741 ""
- } else {
-#line 21742 ""
- if (comlast_1.islast) {
-#line 21742 ""
- s_wsfe(&io___1434);
-/* Writing concatenation */
-#line 21742 ""
- i__12[0] = 1, a__9[0] = all_1.sq;
-#line 21742 ""
- i__12[1] = 8, a__9[1] = "Setvolta";
-#line 21742 ""
- i__12[2] = 1, a__9[2] = "{";
-#line 21742 ""
- i__12[3] = lvoltxt, a__9[3] = comgrace_1.voltxtq + (
- comgrace_1.nvolt - 1) * 20;
-#line 21742 ""
- i__12[4] = 2, a__9[4] = "}%";
-#line 21742 ""
- s_cat(ch__19, a__9, i__12, &c__5, (ftnlen)32);
-#line 21742 ""
- do_fio(&c__1, ch__19, lvoltxt + 12);
-#line 21742 ""
- e_wsfe();
-#line 21742 ""
- }
-#line 21744 ""
- }
-#line 21745 ""
- onvolt = TRUE_;
-#line 21746 ""
- }
-#line 21747 ""
- if (all_1.ibar > 1) {
-#line 21748 ""
- ipnow = all_1.nib[(all_1.ibar - 1) * 24 - 24] + 1;
-#line 21749 ""
- } else {
-#line 21750 ""
- ipnow = 1;
-#line 21751 ""
- }
-#line 21752 ""
- iplnow = all_1.ipl[ipnow * 24 - 24];
-#line 21753 ""
- if (comask_1.bar1syst) {
-
-/* If listslur>0, then there is at least one slur or tie carried over the break */
-
-#line 21757 ""
- ispstie = FALSE_;
-#line 21758 ""
- if (comnotes_1.optlinebreakties && ! comslur_1.fontslur &&
- comslur_1.listslur != 0 && comlast_1.islast) {
-#line 21758 ""
- linebreakties_(all_1.isdat1, all_1.isdat2, all_1.isdat3,
- all_1.isdat4, &all_1.nsdat, &ispstie, all_1.sepsymq, (
- ftnlen)1);
-#line 21758 ""
- }
-#line 21762 ""
- ++all_1.iline;
-
-/* End an old system, Start a new system */
-
-/* Reduce space before mbrest at start of system */
-/* Need this even if no accidentals in key signature */
-
-#line 21769 ""
- if (all_1.ibar == comgrace_1.ibarmbr) {
-#line 21769 ""
- comgrace_1.xb4mbr = all_1.musicsize * -.2f;
-#line 21769 ""
- }
-
-#line 21771 ""
- if (all_1.iline != 1) {
-
-/* Not first line. */
-/* Get corrected poe = points/elemskip for *previous* system */
-
-#line 21776 ""
- wdpt = comtop_1.widthpt * (1 - comtop_1.fracindent);
-#line 21777 ""
- poe = (wdpt - fsyst * all_1.musicsize - nbarss * .4f -
- comask_1.fixednew) / (elsktot + comask_1.fbar *
- nbarss - comask_1.scaldold);
-#line 21779 ""
- ++isyscnt;
-#line 21780 ""
- poevec[isyscnt] = poe;
-
-/* Transfer data for system into global arrays to hold until very end */
-
-#line 21784 ""
- i__7 = comas2_1.nasksys;
-#line 21784 ""
- for (ia = 1; ia <= i__7; ++ia) {
-#line 21785 ""
- ++comas3_1.iask;
-#line 21786 ""
- comas3_1.ask[comas3_1.iask - 1] = (comas2_1.wasksys[ia -
- 1] / poe - (r__1 = comas2_1.elasksys[ia - 1],
- dabs(r__1))) / comshort_1.poefa[all_1.iline - 2];
-
-/* Only admit negative ask if it was user-defined space, signalled by elask<=0. */
-
-#line 21791 ""
- if (comas2_1.elasksys[ia - 1] > 0.f) {
-#line 21791 ""
- comas3_1.ask[comas3_1.iask - 1] = r_dim(&comas3_1.ask[
- comas3_1.iask - 1], &c_b1008);
-#line 21791 ""
- }
-#line 21792 ""
-/* L9: */
-#line 21792 ""
- }
-#line 21793 ""
- i__7 = nhssys;
-#line 21793 ""
- for (ia = 1; ia <= i__7; ++ia) {
-#line 21794 ""
- ++nhstot;
-/* Computing MAX */
-#line 21795 ""
- r__1 = hpts[ia - 1] - hesk[ia - 1] * poe;
-#line 21795 ""
- comhsp_1.hpttot[nhstot - 1] = dmax(r__1,0.f);
-#line 21796 ""
-/* L25: */
-#line 21796 ""
- }
-
-/* Reset counters for new system */
-
-#line 21800 ""
- comask_1.scaldold = 0.f;
-#line 21801 ""
- comask_1.fixednew = 0.f;
-#line 21802 ""
- comas2_1.nasksys = 0;
-#line 21803 ""
- nhssys = 0;
-#line 21804 ""
- }
-
-/* End of if block for first bar of non-first system. Still 1st bar, any system */
-
-#line 21808 ""
- if (comlast_1.islast && all_1.figbass) {
-#line 21808 ""
- s_wsfe(&io___1443);
-/* Writing concatenation */
-#line 21808 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21808 ""
- i__6[1] = 8, a__4[1] = "fixdrop%";
-#line 21808 ""
- s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9);
-#line 21808 ""
- do_fio(&c__1, ch__18, (ftnlen)9);
-#line 21808 ""
- e_wsfe();
-#line 21808 ""
- }
-#line 21809 ""
- ++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 21814 ""
- s_rsle(&io___1444);
-#line 21814 ""
- do_lio(&c__3, &c__1, (char *)&nbarss, (ftnlen)sizeof(integer));
-#line 21814 ""
- do_lio(&c__4, &c__1, (char *)&elsktot, (ftnlen)sizeof(real));
-#line 21814 ""
- do_lio(&c__4, &c__1, (char *)&fsyst, (ftnlen)sizeof(real));
-#line 21814 ""
- do_lio(&c__4, &c__1, (char *)&frac, (ftnlen)sizeof(real));
-#line 21814 ""
- do_lio(&c__4, &c__1, (char *)&comeon_1.eonk, (ftnlen)sizeof(real))
- ;
-#line 21814 ""
- do_lio(&c__4, &c__1, (char *)&comeon_1.ewmxk, (ftnlen)sizeof(real)
- );
-#line 21814 ""
- e_rsle();
-#line 21815 ""
- if (all_1.iline > 1) {
-#line 21815 ""
- comtop_1.fracindent = frac;
-#line 21815 ""
- }
-#line 21816 ""
- if (all_1.figbass) {
-#line 21817 ""
- all_1.ifigdr[(all_1.iline << 1) - 2] = 4;
-#line 21818 ""
- all_1.ifigdr[(all_1.iline << 1) - 1] = 4;
-#line 21819 ""
- }
-#line 21820 ""
- all_1.slfac = slfac1 * all_1.musicsize * elsktot;
-#line 21821 ""
- if (all_1.iline != 1) {
-
-/* For the line just _finished_, put figdrop in separate file. */
-
-#line 21825 ""
- if (all_1.figbass) {
-#line 21825 ""
- s_wsfe(&io___1446);
-/* Writing concatenation */
-#line 21825 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21825 ""
- i__6[1] = 8, a__4[1] = "figdrop=";
-#line 21825 ""
- s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9);
-#line 21825 ""
- do_fio(&c__1, ch__18, (ftnlen)9);
-#line 21825 ""
- do_fio(&c__1, (char *)&all_1.ifigdr[(all_1.iline - 1 << 1)
- - 2], (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 21825 ""
- i__8[0] = 1, a__5[0] = " ";
-#line 21825 ""
- i__8[1] = 1, a__5[1] = all_1.sq;
-#line 21825 ""
- i__8[2] = 8, a__5[2] = "figdtwo=";
-#line 21825 ""
- s_cat(ch__20, a__5, i__8, &c__3, (ftnlen)10);
-#line 21825 ""
- do_fio(&c__1, ch__20, (ftnlen)10);
-#line 21825 ""
- do_fio(&c__1, (char *)&all_1.ifigdr[(all_1.iline - 1 << 1)
- - 1], (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 21825 ""
- i__11[0] = 1, a__8[0] = all_1.sq;
-#line 21825 ""
- i__11[1] = 3, a__8[1] = "or%";
-#line 21825 ""
- s_cat(ch__21, a__8, i__11, &c__2, (ftnlen)4);
-#line 21825 ""
- do_fio(&c__1, ch__21, (ftnlen)4);
-#line 21825 ""
- e_wsfe();
-#line 21825 ""
- }
-
-/* 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 21833 ""
- r__1 = combibarcnt_1.ibarcnt + ibcoff + .01f;
-#line 21833 ""
- ndigbn = (integer) r_lg10(&r__1) + 1;
-#line 21834 ""
- comsln_1.isnx = 0;
-#line 21835 ""
- 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 21841 ""
- ioff = 0;
-#line 21842 ""
- if (all_1.ibar > 1) {
-#line 21842 ""
- 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 21842 ""
- }
-#line 21843 ""
- i__7 = all_1.nsdat;
-#line 21843 ""
- for (isdat = 1; isdat <= i__7; ++isdat) {
-#line 21844 ""
- 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(
- all_1.isdat1[isdat - 1],11) && igetbits_(&
- all_1.isdat1[isdat - 1], &c__7, &c__19) ==
- comsln_1.is2n1) {
-
-/* Found slur ending. Just check note height, can't do fine adjustments. */
-
-/* is1n1 = max(is1n1,igetbits(isdat2(nsdat),7,19)) */
-/* Computing MAX */
-#line 21851 ""
- i__2 = comsln_1.is1n1, i__13 = igetbits_(&
- all_1.isdat2[isdat - 1], &c__7, &c__19);
-#line 21851 ""
- comsln_1.is1n1 = max(i__2,i__13);
-#line 21852 ""
- goto L51;
-#line 21853 ""
- }
-#line 21854 ""
-/* L50: */
-#line 21854 ""
- }
-
-/* If exiting loop normally, did not find end of slur. c'est la vie. */
-
-#line 21858 ""
-L51:
-#line 21859 ""
- i__7 = ncmid_(&all_1.nv, &c__1) + 1 + comsln_1.irzbnd;
-#line 21859 ""
- comsln_1.isnx = i_dim(&comsln_1.is1n1, &i__7);
-#line 21860 ""
- if (comsln_1.isnx > 0) {
-
-/* AHA! Slur likely to interfere with barno. */
-
-/* Modified 090525 to use \bnrs */
-
-#line 21866 ""
- slint = TRUE_;
-#line 21867 ""
- s_copy(fmtq, "(a16,i1,a14)", (ftnlen)24, (ftnlen)12);
-#line 21868 ""
- if (comsln_1.irzbnd + comsln_1.isnx > 9) {
-#line 21868 ""
- s_copy(fmtq, "(a16,i2,a14)", (ftnlen)24, (ftnlen)
- 12);
-#line 21868 ""
- }
-#line 21869 ""
- if (comlast_1.islast) {
-#line 21869 ""
- s_wsfe(&io___1449);
-/* Writing concatenation */
-#line 21869 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 21869 ""
- i__5[1] = 3, a__3[1] = "def";
-#line 21869 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 21869 ""
- i__5[3] = 11, a__3[3] = "raisebarno{";
-#line 21869 ""
- s_cat(ch__22, a__3, i__5, &c__4, (ftnlen)16);
-#line 21869 ""
- do_fio(&c__1, ch__22, (ftnlen)16);
-#line 21869 ""
- i__7 = comsln_1.irzbnd + comsln_1.isnx;
-#line 21869 ""
- do_fio(&c__1, (char *)&i__7, (ftnlen)sizeof(
- integer));
-/* Writing concatenation */
-#line 21869 ""
- i__8[0] = 2, a__5[0] = ".5";
-#line 21869 ""
- i__8[1] = 1, a__5[1] = all_1.sq;
-#line 21869 ""
- i__8[2] = 11, a__5[2] = "internote}%";
-#line 21869 ""
- s_cat(ch__10, a__5, i__8, &c__3, (ftnlen)14);
-#line 21869 ""
- do_fio(&c__1, ch__10, (ftnlen)14);
-#line 21869 ""
- e_wsfe();
-#line 21869 ""
- }
-/* if (islast) then */
-/* if (isnx .le. 9) then */
-/* write(11,'(a5,i1,a2)')sq//'bnrs',isnx,'0%' */
-/* else */
-/* write(11,'(a6,i2,a3)')sq//'bnrs{',isnx,'}0%' */
-/* end if */
-/* end if */
-
-#line 21879 ""
- }
-#line 21880 ""
- }
-#line 21881 ""
- if (comget_1.movbrk > 0) {
-
-/* movbrk = 0 */
-/* Move the reset down, so can use movbrk>0 to stop extra meter prints. */
-
-/* New movement. Redefine stoppiece, contpiece. These will be called either */
-/* explicitly or as part of alaligne. */
-/* indsym = 0,1,2 for doubleBAR , doublebar, rightrepeat. */
-/* This is passed to \newmovement. */
-
-#line 21891 ""
- if (*(unsigned char *)comget_1.rptfq2 == 'E') {
-#line 21891 ""
- *(unsigned char *)comget_1.rptfq2 = 'D';
-#line 21891 ""
- }
-#line 21892 ""
- indsym = i_indx("Ddrbz", comget_1.rptfq2, (ftnlen)5, (
- ftnlen)1) - 1;
-#line 21893 ""
- *(unsigned char *)comget_1.rptfq2 = 'E';
-
-/* Also check for Rd or Rr set the normal way */
-
-#line 21897 ""
- if (bit_test(islnow,8)) {
-#line 21898 ""
- indsym = 1;
-#line 21899 ""
- } else if (bit_test(islnow,6)) {
-#line 21900 ""
- indsym = 2;
-#line 21901 ""
- }
-#line 21902 ""
- if (indsym < 0) {
-#line 21903 ""
- s_wsle(&io___1451);
-#line 21903 ""
- e_wsle();
-#line 21904 ""
- s_wsle(&io___1452);
-#line 21904 ""
- do_lio(&c__9, &c__1, "Illegal end symbol before \"/\""
- , (ftnlen)29);
-#line 21904 ""
- e_wsle();
-#line 21905 ""
- stop1_();
-#line 21906 ""
- }
-
-/* Check for continuation (no bar number reset) */
-
-#line 21910 ""
- if (comlast_1.islast && comnotes_1.nobar1) {
-#line 21911 ""
- s_wsfe(&io___1453);
-/* Writing concatenation */
-#line 21911 ""
- i__9[0] = 1, a__6[0] = all_1.sq;
-#line 21911 ""
- i__9[1] = 7, a__6[1] = "advance";
-#line 21911 ""
- i__9[2] = 1, a__6[2] = all_1.sq;
-#line 21911 ""
- i__9[3] = 6, a__6[3] = "barno1";
-#line 21911 ""
- i__9[4] = 1, a__6[4] = all_1.sq;
-#line 21911 ""
- i__9[5] = 6, a__6[5] = "global";
-#line 21911 ""
- i__9[6] = 1, a__6[6] = all_1.sq;
-#line 21911 ""
- i__9[7] = 10, a__6[7] = "startbarno";
-#line 21911 ""
- i__9[8] = 1, a__6[8] = all_1.sq;
-#line 21911 ""
- i__9[9] = 6, a__6[9] = "barno%";
-#line 21911 ""
- s_cat(ch__23, a__6, i__9, &c__10, (ftnlen)40);
-#line 21911 ""
- do_fio(&c__1, ch__23, (ftnlen)40);
-#line 21911 ""
- e_wsfe();
-
-/* Need above for shortening case mcm with Mc */
-
-#line 21916 ""
- }
-
-/* Per Rainer's suggestion, changing \nbinstruments via 3rd arg of \newmovement */
-
-/* if (movgap .lt. 10) then */
-/* if (islast) write(11,'(a12,2i1,a1)') */
-/* * sq//'newmovement',movgap,indsym,'%' */
-/* else */
-/* if (islast) write(11,'(a13,i2,a1,i1,a1)') */
-/* * sq//'newmovement{',movgap,'}',indsym,'%' */
-/* end if */
-#line 21927 ""
- if (comlast_1.islast) {
-/* Writing concatenation */
-#line 21928 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21928 ""
- i__6[1] = 11, a__4[1] = "newmovement";
-#line 21928 ""
- s_cat(nmq, a__4, i__6, &c__2, (ftnlen)40);
-#line 21929 ""
- lnmq = 12;
-#line 21930 ""
- if (comget_1.movgap < 10) {
-#line 21931 ""
- lnmq = 14;
-#line 21932 ""
- s_wsfi(&io___1456);
-#line 21932 ""
- do_fio(&c__1, (char *)&comget_1.movgap, (ftnlen)
- sizeof(integer));
-#line 21932 ""
- do_fio(&c__1, (char *)&indsym, (ftnlen)sizeof(
- integer));
-#line 21932 ""
- e_wsfi();
-#line 21933 ""
- } else {
-#line 21934 ""
- lnmq = 17;
-#line 21935 ""
- s_wsfi(&io___1457);
-#line 21935 ""
- do_fio(&c__1, "{", (ftnlen)1);
-#line 21935 ""
- do_fio(&c__1, (char *)&comget_1.movgap, (ftnlen)
- sizeof(integer));
-#line 21935 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 21935 ""
- do_fio(&c__1, (char *)&indsym, (ftnlen)sizeof(
- integer));
-#line 21935 ""
- e_wsfi();
-#line 21936 ""
- }
-#line 21937 ""
- if (comnotes_1.ninow < 10) {
-#line 21938 ""
- ++lnmq;
-#line 21939 ""
- ici__1.icierr = 0;
-#line 21939 ""
- ici__1.icirnum = 1;
-#line 21939 ""
- ici__1.icirlen = 1;
-#line 21939 ""
- ici__1.iciunit = nmq + (lnmq - 1);
-#line 21939 ""
- ici__1.icifmt = "(i1)";
-#line 21939 ""
- s_wsfi(&ici__1);
-#line 21939 ""
- do_fio(&c__1, (char *)&comnotes_1.ninow, (ftnlen)
- sizeof(integer));
-#line 21939 ""
- e_wsfi();
-#line 21940 ""
- } else {
-#line 21941 ""
- lnmq += 4;
-#line 21942 ""
- i__7 = lnmq - 4;
-#line 21942 ""
- ici__1.icierr = 0;
-#line 21942 ""
- ici__1.icirnum = 1;
-#line 21942 ""
- ici__1.icirlen = lnmq - i__7;
-#line 21942 ""
- ici__1.iciunit = nmq + i__7;
-#line 21942 ""
- ici__1.icifmt = "(a1,i2,a1)";
-#line 21942 ""
- s_wsfi(&ici__1);
-#line 21942 ""
- do_fio(&c__1, "{", (ftnlen)1);
-#line 21942 ""
- do_fio(&c__1, (char *)&comnotes_1.ninow, (ftnlen)
- sizeof(integer));
-#line 21942 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 21942 ""
- e_wsfi();
-#line 21943 ""
- }
-#line 21944 ""
- ++lnmq;
-#line 21945 ""
- ici__1.icierr = 0;
-#line 21945 ""
- ici__1.icirnum = 1;
-#line 21945 ""
- ici__1.icirlen = 1;
-#line 21945 ""
- ici__1.iciunit = nmq + (lnmq - 1);
-#line 21945 ""
- ici__1.icifmt = "(a1)";
-#line 21945 ""
- s_wsfi(&ici__1);
-#line 21945 ""
- do_fio(&c__1, "%", (ftnlen)1);
-#line 21945 ""
- e_wsfi();
-#line 21946 ""
- if (comshort_1.ishort == 4) {
-
-/* Ending Short-blank-coda */
-
-#line 21950 ""
- s_wsfe(&io___1458);
-/* Writing concatenation */
-#line 21950 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21950 ""
- i__6[1] = 11, a__4[1] = "Endpiece}}%";
-#line 21950 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12);
-#line 21950 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 21950 ""
- e_wsfe();
-#line 21951 ""
- }
-#line 21952 ""
- s_wsfe(&io___1459);
-#line 21952 ""
- do_fio(&c__1, nmq, lnmq);
-#line 21952 ""
- e_wsfe();
-#line 21953 ""
- if (comshort_1.ishort == 2) {
-#line 21954 ""
- s_wsfe(&io___1460);
-/* Writing concatenation */
-#line 21954 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21954 ""
- i__6[1] = 12, a__4[1] = "stoppiece}}%";
-#line 21954 ""
- s_cat(ch__17, a__4, i__6, &c__2, (ftnlen)13);
-#line 21954 ""
- do_fio(&c__1, ch__17, (ftnlen)13);
-#line 21954 ""
- e_wsfe();
-#line 21955 ""
- comshort_1.ishort = 5;
-#line 21956 ""
- } else if (comshort_1.ishort == 4) {
-#line 21957 ""
- s_wsfe(&io___1461);
-/* Writing concatenation */
-#line 21957 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 21957 ""
- i__4[1] = 3, a__2[1] = "let";
-#line 21957 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 21957 ""
- i__4[3] = 9, a__2[3] = "stoppiece";
-#line 21957 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 21957 ""
- i__4[5] = 9, a__2[5] = "holdstop%";
-#line 21957 ""
- s_cat(ch__24, a__2, i__4, &c__6, (ftnlen)24);
-#line 21957 ""
- do_fio(&c__1, ch__24, (ftnlen)24);
-#line 21957 ""
- e_wsfe();
-
-/* Since we bypass newmovement, need to set the vertical gap. */
-
-#line 21962 ""
- if (comget_1.movgap > 10) {
-#line 21963 ""
- s_wsfe(&io___1462);
-/* Writing concatenation */
-#line 21963 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21963 ""
- i__6[1] = 5, a__4[1] = "vskip";
-#line 21963 ""
- s_cat(ch__25, a__4, i__6, &c__2, (ftnlen)6);
-#line 21963 ""
- do_fio(&c__1, ch__25, (ftnlen)6);
-#line 21963 ""
- do_fio(&c__1, (char *)&comget_1.movgap, (
- ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 21963 ""
- i__11[0] = 1, a__8[0] = all_1.sq;
-#line 21963 ""
- i__11[1] = 10, a__8[1] = "internote%";
-#line 21963 ""
- s_cat(ch__15, a__8, i__11, &c__2, (ftnlen)11);
-#line 21963 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 21963 ""
- e_wsfe();
-#line 21965 ""
- } else if (comget_1.movgap > 0) {
-#line 21966 ""
- s_wsfe(&io___1463);
-/* Writing concatenation */
-#line 21966 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21966 ""
- i__6[1] = 5, a__4[1] = "vskip";
-#line 21966 ""
- s_cat(ch__25, a__4, i__6, &c__2, (ftnlen)6);
-#line 21966 ""
- do_fio(&c__1, ch__25, (ftnlen)6);
-#line 21966 ""
- do_fio(&c__1, (char *)&comget_1.movgap, (
- ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 21966 ""
- i__11[0] = 1, a__8[0] = all_1.sq;
-#line 21966 ""
- i__11[1] = 10, a__8[1] = "internote%";
-#line 21966 ""
- s_cat(ch__15, a__8, i__11, &c__2, (ftnlen)11);
-#line 21966 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 21966 ""
- e_wsfe();
-#line 21968 ""
- }
-#line 21969 ""
- comshort_1.ishort = 6;
-#line 21970 ""
- }
-#line 21971 ""
- if ((comshort_1.ishort == 5 || comshort_1.ishort == 6)
- && ! comnvi_1.rename) {
-#line 21972 ""
- i__7 = comnotes_1.ninow;
-#line 21972 ""
- for (iinst = 1; iinst <= i__7; ++iinst) {
-#line 21973 ""
- if (comlast_1.islast) {
-#line 21974 ""
- if (iinst < 10) {
-#line 21975 ""
- s_wsfe(&io___1464);
-/* Writing concatenation */
-#line 21975 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21975 ""
- i__6[1] = 7, a__4[1] = "setname";
-#line 21975 ""
- s_cat(ch__8, a__4, i__6, &c__2, (
- ftnlen)8);
-#line 21975 ""
- do_fio(&c__1, ch__8, (ftnlen)8);
-#line 21975 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)
- sizeof(integer));
-#line 21975 ""
- do_fio(&c__1, "{}%", (ftnlen)3);
-#line 21975 ""
- e_wsfe();
-#line 21976 ""
- } else {
-#line 21977 ""
- s_wsfe(&io___1465);
-/* Writing concatenation */
-#line 21977 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 21977 ""
- i__6[1] = 8, a__4[1] = "setname{";
-#line 21977 ""
- s_cat(ch__18, a__4, i__6, &c__2, (
- ftnlen)9);
-#line 21977 ""
- do_fio(&c__1, ch__18, (ftnlen)9);
-#line 21977 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)
- sizeof(integer));
-#line 21977 ""
- do_fio(&c__1, "}{}%", (ftnlen)4);
-#line 21977 ""
- e_wsfe();
-#line 21979 ""
- }
-#line 21980 ""
- }
-#line 21981 ""
-/* L62: */
-#line 21981 ""
- }
-#line 21982 ""
- }
-#line 21983 ""
- comnvi_1.rename = FALSE_;
-#line 21984 ""
- }
-
-/* Change generalmeter if necessary */
-
-#line 21988 ""
- if (comlast_1.islast) {
-#line 21989 ""
- wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp);
-#line 21990 ""
- }
-#line 21991 ""
- all_1.mtrnuml = 0;
-
-/* (Moved all name-writing to getnote, right when 'M' is detected) */
-
-#line 21995 ""
- if (bit_test(iplnow,28)) {
-
-/* Key signature at movement break */
-
-#line 21999 ""
- iplnow = bit_clear(iplnow,28);
-#line 22000 ""
- if (comtop_1.isig > 0) {
-#line 22001 ""
- if (comlast_1.islast) {
-#line 22001 ""
- s_wsfe(&io___1466);
-/* Writing concatenation */
-#line 22001 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22001 ""
- i__6[1] = 17, a__4[1] = "generalsignature{";
-#line 22001 ""
- s_cat(ch__26, a__4, i__6, &c__2, (ftnlen)18);
-#line 22001 ""
- do_fio(&c__1, ch__26, (ftnlen)18);
-#line 22001 ""
- do_fio(&c__1, (char *)&comtop_1.isig, (ftnlen)
- sizeof(integer));
-#line 22001 ""
- do_fio(&c__1, "}%", (ftnlen)2);
-#line 22001 ""
- e_wsfe();
-#line 22001 ""
- }
-#line 22003 ""
- } else {
-#line 22004 ""
- if (comlast_1.islast) {
-#line 22004 ""
- s_wsfe(&io___1467);
-/* Writing concatenation */
-#line 22004 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22004 ""
- i__6[1] = 17, a__4[1] = "generalsignature{";
-#line 22004 ""
- s_cat(ch__26, a__4, i__6, &c__2, (ftnlen)18);
-#line 22004 ""
- do_fio(&c__1, ch__26, (ftnlen)18);
-#line 22004 ""
- do_fio(&c__1, (char *)&comtop_1.isig, (ftnlen)
- sizeof(integer));
-#line 22004 ""
- do_fio(&c__1, "}%", (ftnlen)2);
-#line 22004 ""
- e_wsfe();
-#line 22004 ""
- }
-#line 22006 ""
- }
-#line 22007 ""
- if (comlast_1.islast && cominsttrans_1.laterinsttrans)
- {
-#line 22008 ""
- writesetsign_(&cominsttrans_1.ninsttrans,
- cominsttrans_1.iinsttrans,
- cominsttrans_1.itranskey, &
- cominsttrans_1.laterinsttrans);
-#line 22010 ""
- }
-#line 22011 ""
- }
-#line 22012 ""
- if (comget_1.parmov >= -.1f) {
-
-/* Resent paragraph indentation */
-
-#line 22016 ""
- ipi = comget_1.parmov * comtop_1.widthpt + .1f;
-#line 22017 ""
- if (ipi < 10) {
-#line 22018 ""
- if (comlast_1.islast) {
-#line 22018 ""
- s_wsfe(&io___1469);
-/* Writing concatenation */
-#line 22018 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22018 ""
- i__6[1] = 10, a__4[1] = "parindent ";
-#line 22018 ""
- s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11);
-#line 22018 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22018 ""
- do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof(
- integer));
-#line 22018 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 22018 ""
- e_wsfe();
-#line 22018 ""
- }
-#line 22020 ""
- } else if (ipi < 100) {
-#line 22021 ""
- if (comlast_1.islast) {
-#line 22021 ""
- s_wsfe(&io___1470);
-/* Writing concatenation */
-#line 22021 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22021 ""
- i__6[1] = 10, a__4[1] = "parindent ";
-#line 22021 ""
- s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11);
-#line 22021 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22021 ""
- do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof(
- integer));
-#line 22021 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 22021 ""
- e_wsfe();
-#line 22021 ""
- }
-#line 22023 ""
- } else {
-#line 22024 ""
- if (comlast_1.islast) {
-#line 22024 ""
- s_wsfe(&io___1471);
-/* Writing concatenation */
-#line 22024 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22024 ""
- i__6[1] = 10, a__4[1] = "parindent ";
-#line 22024 ""
- s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11);
-#line 22024 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22024 ""
- do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof(
- integer));
-#line 22024 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 22024 ""
- e_wsfe();
-#line 22024 ""
- }
-#line 22026 ""
- }
-#line 22027 ""
- }
-#line 22028 ""
- if (comshort_1.ishort == 6) {
-#line 22029 ""
- if (iflagbot == 1) {
-#line 22030 ""
- s_wsfe(&io___1472);
-/* Writing concatenation */
-#line 22030 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22030 ""
- i__5[1] = 5, a__3[1] = "vfill";
-#line 22030 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22030 ""
- i__5[3] = 5, a__3[3] = "eject";
-#line 22030 ""
- s_cat(ch__14, a__3, i__5, &c__4, (ftnlen)12);
-#line 22030 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22030 ""
- e_wsfe();
-/* iflagbot = 0 */
-/* ishort = 0 */
-#line 22033 ""
- } else {
-#line 22034 ""
- s_wsfe(&io___1473);
-/* Writing concatenation */
-#line 22034 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22034 ""
- i__6[1] = 9, a__4[1] = "contpiece";
-#line 22034 ""
- s_cat(ch__20, a__4, i__6, &c__2, (ftnlen)10);
-#line 22034 ""
- do_fio(&c__1, ch__20, (ftnlen)10);
-#line 22034 ""
- e_wsfe();
-#line 22035 ""
- }
-
-/* Zero ishort later trying to write alaligne */
-
-#line 22039 ""
- }
-#line 22040 ""
- }
-/* End of movement break stuff */
-#line 22041 ""
- if (isystpg == 1) {
-
-/* First line on a page (not 1st page, still first bar). Tidy up old page */
-/* then eject. */
-
-/* Removed this 5/13/01 as it was causing double endvoltas. This probably */
-/* is only needed at the end in case there is no endvolta specified. */
-/* if (onvolt) then */
-/* c if (islast) write(11,'(a)')sq//'endvoltabox%' */
-/* c onvolt = .false. */
-/* end if */
-
-
-/* Check for meter change at start of a new PAGE */
-
-#line 22056 ""
- if (all_1.mtrnuml > 0) {
-
-/* Meter change at start of a new page. Ugly repeated coding here. */
-
-#line 22060 ""
- mtrnms = all_1.mtrnuml;
-#line 22061 ""
- setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, &
- combeam_1.ibmtyp, &ibmrep);
-#line 22062 ""
- all_1.mtrnuml = mtrnms;
-#line 22063 ""
- if (comget_1.movbrk == 0 && comlast_1.islast) {
-#line 22064 ""
- wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp);
-#line 22065 ""
- }
-#line 22066 ""
- }
-
-/* Key signature change? */
-
-#line 22070 ""
- if (bit_test(iplnow,28) && comget_1.movbrk == 0) {
-/* Writing concatenation */
-#line 22071 ""
- i__14[0] = 1, a__10[0] = all_1.sq;
-#line 22071 ""
- i__14[1] = 4, a__10[1] = "xbar";
-#line 22071 ""
- i__14[2] = 1, a__10[2] = all_1.sq;
-#line 22071 ""
- i__14[3] = 10, a__10[3] = "addspace{-";
-#line 22071 ""
- i__14[4] = 1, a__10[4] = all_1.sq;
-#line 22071 ""
- i__14[5] = 14, a__10[5] = "afterruleskip}";
-#line 22071 ""
- i__14[6] = 1, a__10[6] = all_1.sq;
-#line 22071 ""
- i__14[7] = 17, a__10[7] = "generalsignature{";
-#line 22071 ""
- s_cat(notexq, a__10, i__14, &c__8, (ftnlen)79);
-#line 22073 ""
- lnote = 49;
-#line 22074 ""
- if (comtop_1.isig < 0) {
-/* Writing concatenation */
-#line 22075 ""
- i__6[0] = 49, a__4[0] = notexq;
-#line 22075 ""
- i__6[1] = 1, a__4[1] = "-";
-#line 22075 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 22076 ""
- lnote = 50;
-#line 22077 ""
- }
-#line 22078 ""
- if (comlast_1.islast) {
-#line 22078 ""
- s_wsfe(&io___1475);
-/* Writing concatenation */
-#line 22078 ""
- i__8[0] = lnote, a__5[0] = notexq;
-#line 22078 ""
- i__7 = abs(comtop_1.isig) + 48;
-#line 22078 ""
- chax_(ch__1, (ftnlen)1, &i__7);
-#line 22078 ""
- i__8[1] = 1, a__5[1] = ch__1;
-#line 22078 ""
- i__8[2] = 2, a__5[2] = "}%";
-#line 22078 ""
- s_cat(ch__27, a__5, i__8, &c__3, (ftnlen)82);
-#line 22078 ""
- do_fio(&c__1, ch__27, lnote + 3);
-#line 22078 ""
- e_wsfe();
-#line 22078 ""
- }
-#line 22080 ""
- if (comlast_1.islast && cominsttrans_1.laterinsttrans)
- {
-#line 22081 ""
- writesetsign_(&cominsttrans_1.ninsttrans,
- cominsttrans_1.iinsttrans,
- cominsttrans_1.itranskey, &
- cominsttrans_1.laterinsttrans);
-#line 22083 ""
- }
-#line 22084 ""
- if (comlast_1.islast && comignorenats_1.ignorenats) {
-#line 22084 ""
- s_wsfe(&io___1476);
-/* Writing concatenation */
-#line 22084 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22084 ""
- i__6[1] = 11, a__4[1] = "ignorenats%";
-#line 22084 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12);
-#line 22084 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22084 ""
- e_wsfe();
-#line 22084 ""
- }
-#line 22086 ""
- if (comlast_1.islast) {
-#line 22086 ""
- s_wsfe(&io___1477);
-/* Writing concatenation */
-#line 22086 ""
- i__9[0] = 1, a__6[0] = all_1.sq;
-#line 22086 ""
- i__9[1] = 14, a__6[1] = "zchangecontext";
-#line 22086 ""
- i__9[2] = 1, a__6[2] = all_1.sq;
-#line 22086 ""
- i__9[3] = 10, a__6[3] = "addspace{-";
-#line 22086 ""
- i__9[4] = 1, a__6[4] = all_1.sq;
-#line 22086 ""
- i__9[5] = 14, a__6[5] = "afterruleskip}";
-#line 22086 ""
- i__9[6] = 1, a__6[6] = all_1.sq;
-#line 22086 ""
- i__9[7] = 10, a__6[7] = "zstoppiece";
-#line 22086 ""
- i__9[8] = 1, a__6[8] = all_1.sq;
-#line 22086 ""
- i__9[9] = 13, a__6[9] = "PMXbarnotrue%";
-#line 22086 ""
- s_cat(ch__28, a__6, i__9, &c__10, (ftnlen)66);
-#line 22086 ""
- do_fio(&c__1, ch__28, (ftnlen)66);
-#line 22086 ""
- e_wsfe();
-#line 22086 ""
- }
-#line 22089 ""
- } else if (all_1.mtrnuml > 0 && comget_1.movbrk == 0) {
-
-/* Meter change but no signature change */
-
-#line 22093 ""
- if (comlast_1.islast) {
-#line 22093 ""
- s_wsfe(&io___1478);
-/* Writing concatenation */
-#line 22093 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 22093 ""
- i__3[1] = 14, a__1[1] = "xchangecontext";
-#line 22093 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 22093 ""
- i__3[3] = 10, a__1[3] = "addspace{-";
-#line 22093 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 22093 ""
- i__3[5] = 14, a__1[5] = "afterruleskip}";
-#line 22093 ""
- i__3[6] = 1, a__1[6] = all_1.sq;
-#line 22093 ""
- i__3[7] = 3, a__1[7] = "let";
-#line 22093 ""
- i__3[8] = 1, a__1[8] = all_1.sq;
-#line 22093 ""
- i__3[9] = 4, a__1[9] = "bnat";
-#line 22093 ""
- i__3[10] = 1, a__1[10] = all_1.sq;
-#line 22093 ""
- i__3[11] = 9, a__1[11] = "barnoadd%";
-#line 22093 ""
- s_cat(ch__29, a__1, i__3, &c__12, (ftnlen)60);
-#line 22093 ""
- do_fio(&c__1, ch__29, (ftnlen)60);
-#line 22093 ""
- e_wsfe();
-#line 22093 ""
- }
-#line 22097 ""
- if (comlast_1.islast) {
-#line 22097 ""
- s_wsfe(&io___1479);
-/* Writing concatenation */
-#line 22097 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 22097 ""
- i__3[1] = 3, a__1[1] = "def";
-#line 22097 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 22097 ""
- i__3[3] = 9, a__1[3] = "barnoadd{";
-#line 22097 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 22097 ""
- i__3[5] = 3, a__1[5] = "let";
-#line 22097 ""
- i__3[6] = 1, a__1[6] = all_1.sq;
-#line 22097 ""
- i__3[7] = 8, a__1[7] = "barnoadd";
-#line 22097 ""
- i__3[8] = 1, a__1[8] = all_1.sq;
-#line 22097 ""
- i__3[9] = 5, a__1[9] = "bnat}";
-#line 22097 ""
- i__3[10] = 1, a__1[10] = all_1.sq;
-#line 22097 ""
- i__3[11] = 11, a__1[11] = "zstoppiece%";
-#line 22097 ""
- s_cat(ch__30, a__1, i__3, &c__12, (ftnlen)45);
-#line 22097 ""
- do_fio(&c__1, ch__30, (ftnlen)45);
-#line 22097 ""
- e_wsfe();
-#line 22097 ""
- }
-#line 22100 ""
- } else {
-#line 22101 ""
- if (comlast_1.islast) {
-#line 22102 ""
- if ((comshort_1.ishort == 4 || comshort_1.ishort
- == 2) && iflagbot == 1) {
-#line 22104 ""
- ntmp = combibarcnt_1.ibarcnt - ibarcnt0 -
- comshort_1.nmbr + comshort_1.mbrsum;
-#line 22105 ""
- if (ntmp <= 9) {
-#line 22106 ""
- *(unsigned char *)shortfraq = (char) (
- ntmp + 48);
-#line 22107 ""
- lntmp = 1;
-#line 22108 ""
- } else {
-#line 22109 ""
- s_wsfi(&io___1484);
-#line 22109 ""
- do_fio(&c__1, (char *)&ntmp, (ftnlen)
- sizeof(integer));
-#line 22109 ""
- e_wsfi();
-#line 22110 ""
- lntmp = 2;
-#line 22111 ""
- }
-#line 22112 ""
- s_wsfe(&io___1485);
-/* Writing concatenation */
-#line 22112 ""
- i__15[0] = 1, a__11[0] = all_1.sq;
-#line 22112 ""
- i__15[1] = 10, a__11[1] = "endpiece}}";
-#line 22112 ""
- i__15[2] = 1, a__11[2] = all_1.sq;
-#line 22112 ""
- i__15[3] = 7, a__11[3] = "advance";
-#line 22112 ""
- i__15[4] = 1, a__11[4] = all_1.sq;
-#line 22112 ""
- i__15[5] = 5, a__11[5] = "barno";
-#line 22112 ""
- i__15[6] = lntmp, a__11[6] = shortfraq;
-#line 22112 ""
- s_cat(ch__31, a__11, i__15, &c__7, (ftnlen)28)
- ;
-#line 22112 ""
- do_fio(&c__1, ch__31, lntmp + 25);
-#line 22112 ""
- e_wsfe();
-
-/* Move down so can insert fil@begin */
-/* iflagbot = 0 */
-/* ishort = 0 */
-
-#line 22119 ""
- } else if (comshort_1.ishort != 6 &&
- comshort_1.ishort != 2 || iflagbot != 1) {
-#line 22121 ""
- s_wsfe(&io___1486);
-/* Writing concatenation */
-#line 22121 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22121 ""
- i__6[1] = 10, a__4[1] = "stoppiece%";
-#line 22121 ""
- s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11);
-#line 22121 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22121 ""
- e_wsfe();
-#line 22122 ""
- }
-#line 22123 ""
- }
-#line 22124 ""
- }
-
-/* This is the key spot when vshrink is used. Value of vshrink here comes from */
-/* just after the prior pagebreak, i.e., it is not affected by "Av" */
-/* that may have been entered at this pagebreak, since that only affects usevshrink. */
-/* So choose page *ending* (with or without \vfill) depending on old vshrink. Then */
-/* check value of usevshrink to reset vshrink if necessary for the new page, where */
-/* we have to set \interstaff and later call puttitle. */
-/* Top of first page needs special treatment. For this we use */
-/* novshrinktop, which was set in g1etnote on the first pass, since on */
-/* 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 22137 ""
- if (! vshrink) {
-#line 22138 ""
- if (comlast_1.islast && combottop_1.bottopgap) {
-#line 22139 ""
- if (dabs(combottop_1.botamt) > 1e-6f) {
-#line 22140 ""
- if (combottop_1.botamt > 9.95f) {
-#line 22141 ""
- s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (
- ftnlen)10);
-#line 22142 ""
- } else if (combottop_1.botamt > 0.f) {
-#line 22143 ""
- s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (
- ftnlen)10);
-#line 22144 ""
- } else if (combottop_1.botamt > -9.95f) {
-#line 22145 ""
- s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (
- ftnlen)10);
-#line 22146 ""
- } else {
-#line 22147 ""
- s_copy(fmtq, "(a,f5.1,a)", (ftnlen)24, (
- ftnlen)10);
-#line 22148 ""
- }
-#line 22149 ""
- s_wsfe(&io___1487);
-/* Writing concatenation */
-#line 22149 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22149 ""
- i__5[1] = 4, a__3[1] = "null";
-#line 22149 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22149 ""
- i__5[3] = 5, a__3[3] = "vskip";
-#line 22149 ""
- s_cat(ch__15, a__3, i__5, &c__4, (ftnlen)11);
-#line 22149 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22149 ""
- do_fio(&c__1, (char *)&combottop_1.botamt, (
- ftnlen)sizeof(real));
-/* Writing concatenation */
-#line 22149 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22149 ""
- i__6[1] = 10, a__4[1] = "Internote%";
-#line 22149 ""
- s_cat(ch__32, a__4, i__6, &c__2, (ftnlen)11);
-#line 22149 ""
- do_fio(&c__1, ch__32, (ftnlen)11);
-#line 22149 ""
- e_wsfe();
-#line 22151 ""
- }
-#line 22152 ""
- }
-#line 22153 ""
- xnstbot = xnsttop[comnotes_1.ipage - 1] * etabot /
- etatop;
-#line 22154 ""
- if (xnstbot < 9.95f) {
-#line 22155 ""
- s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (ftnlen)10)
- ;
-#line 22156 ""
- } else {
-#line 22157 ""
- s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (ftnlen)10)
- ;
-#line 22158 ""
- }
-#line 22159 ""
- if (comlast_1.islast) {
-#line 22159 ""
- s_wsfe(&io___1489);
-/* Writing concatenation */
-#line 22159 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22159 ""
- i__6[1] = 5, a__4[1] = "vskip";
-#line 22159 ""
- s_cat(ch__25, a__4, i__6, &c__2, (ftnlen)6);
-#line 22159 ""
- do_fio(&c__1, ch__25, (ftnlen)6);
-#line 22159 ""
- do_fio(&c__1, (char *)&xnstbot, (ftnlen)sizeof(
- real));
-/* Writing concatenation */
-#line 22159 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22159 ""
- i__5[1] = 10, a__3[1] = "Interligne";
-#line 22159 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22159 ""
- i__5[3] = 6, a__3[3] = "eject%";
-#line 22159 ""
- s_cat(ch__26, a__3, i__5, &c__4, (ftnlen)18);
-#line 22159 ""
- do_fio(&c__1, ch__26, (ftnlen)18);
-#line 22159 ""
- e_wsfe();
-#line 22159 ""
- }
-#line 22161 ""
- if (comlast_1.islast && combottop_1.bottopgap) {
-#line 22162 ""
- if (dabs(combottop_1.topamt) > 1e-6f) {
-#line 22163 ""
- if (combottop_1.topamt > 9.95f) {
-#line 22164 ""
- s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (
- ftnlen)10);
-#line 22165 ""
- } else if (combottop_1.topamt > 0.f) {
-#line 22166 ""
- s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (
- ftnlen)10);
-#line 22167 ""
- } else if (combottop_1.topamt > -9.95f) {
-#line 22168 ""
- s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (
- ftnlen)10);
-#line 22169 ""
- } else {
-#line 22170 ""
- s_copy(fmtq, "(a,f5.1,a)", (ftnlen)24, (
- ftnlen)10);
-#line 22171 ""
- }
-#line 22172 ""
- s_wsfe(&io___1490);
-/* Writing concatenation */
-#line 22172 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22172 ""
- i__5[1] = 4, a__3[1] = "null";
-#line 22172 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22172 ""
- i__5[3] = 5, a__3[3] = "vskip";
-#line 22172 ""
- s_cat(ch__15, a__3, i__5, &c__4, (ftnlen)11);
-#line 22172 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22172 ""
- do_fio(&c__1, (char *)&combottop_1.topamt, (
- ftnlen)sizeof(real));
-/* Writing concatenation */
-#line 22172 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22172 ""
- i__6[1] = 10, a__4[1] = "Internote%";
-#line 22172 ""
- s_cat(ch__32, a__4, i__6, &c__2, (ftnlen)11);
-#line 22172 ""
- do_fio(&c__1, ch__32, (ftnlen)11);
-#line 22172 ""
- e_wsfe();
-#line 22174 ""
- }
-#line 22175 ""
- combottop_1.bottopgap = FALSE_;
-#line 22176 ""
- }
-#line 22177 ""
- } else {
-#line 22178 ""
- if (comlast_1.islast) {
-#line 22179 ""
- if (iflagbot == 1 && comshort_1.ishort == 6) {
-
-/* cleanup for case bcm only */
-
-#line 22183 ""
- iflagbot = 0;
-#line 22184 ""
- comshort_1.ishort = 0;
-#line 22185 ""
- } else {
-#line 22186 ""
- s_wsfe(&io___1491);
-/* Writing concatenation */
-#line 22186 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22186 ""
- i__5[1] = 5, a__3[1] = "vfill";
-#line 22186 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22186 ""
- i__5[3] = 6, a__3[3] = "eject%";
-#line 22186 ""
- s_cat(ch__17, a__3, i__5, &c__4, (ftnlen)13);
-#line 22186 ""
- do_fio(&c__1, ch__17, (ftnlen)13);
-#line 22186 ""
- e_wsfe();
-#line 22187 ""
- if (iflagbot == 1 && comshort_1.ishort == 2) {
-/* Clean up case bsl only */
-#line 22189 ""
- s_wsfe(&io___1492);
-/* Writing concatenation */
-#line 22189 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22189 ""
- i__4[1] = 12, a__2[1] = "makeatletter";
-#line 22189 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22189 ""
- i__4[3] = 9, a__2[3] = "fil@begin";
-#line 22189 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22189 ""
- i__4[5] = 11, a__2[5] = "makeatother";
-#line 22189 ""
- s_cat(ch__9, a__2, i__4, &c__6, (ftnlen)
- 35);
-#line 22189 ""
- do_fio(&c__1, ch__9, (ftnlen)35);
-#line 22189 ""
- e_wsfe();
-#line 22191 ""
- iflagbot = 0;
-#line 22192 ""
- comshort_1.ishort = 0;
-#line 22193 ""
- }
-#line 22194 ""
- }
-#line 22195 ""
- }
-#line 22196 ""
- }
-#line 22197 ""
- ++comnotes_1.ipage;
-
-/* Now that page is ejected, compute new vshrink */
-
-#line 22201 ""
- vshrink = xintstaff[comnotes_1.ipage - 1] > 20.f &&
- comlast_1.usevshrink;
-#line 22202 ""
- if (vshrink) {
-#line 22203 ""
- comarp_1.xinsnow = 10.f;
-#line 22204 ""
- } else {
-#line 22205 ""
- comarp_1.xinsnow = xintstaff[comnotes_1.ipage - 1];
-#line 22206 ""
- }
-#line 22207 ""
- if (comget_1.fintstf > 0.f && comnotes_1.ipage > 1) {
-#line 22208 ""
- comarp_1.xinsnow = comarp_1.xinsnow *
- comget_1.fintstf / comget_1.gintstf;
-#line 22209 ""
- comget_1.fintstf = -1.f;
-#line 22210 ""
- }
-#line 22211 ""
- if (comarp_1.xinsnow < 9.95f) {
-#line 22212 ""
- s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (ftnlen)10);
-#line 22213 ""
- } else if (comarp_1.xinsnow < 99.95f) {
-#line 22214 ""
- s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (ftnlen)10);
-#line 22215 ""
- } else {
-#line 22216 ""
- s_copy(fmtq, "(a,f5.1,a)", (ftnlen)24, (ftnlen)10);
-#line 22217 ""
- }
-
-/* Vertical spacing parameters, then restart */
-
-#line 22221 ""
- if (comis4bignv_1.is4bignv) {
-#line 22221 ""
- comarp_1.xinsnow *= .95f;
-#line 22221 ""
- }
-#line 22222 ""
- if (comlast_1.islast) {
-#line 22223 ""
- s_wsfe(&io___1493);
-/* Writing concatenation */
-#line 22223 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22223 ""
- i__6[1] = 11, a__4[1] = "interstaff{";
-#line 22223 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12);
-#line 22223 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22223 ""
- do_fio(&c__1, (char *)&comarp_1.xinsnow, (ftnlen)
- sizeof(real));
-/* Writing concatenation */
-#line 22223 ""
- i__8[0] = 1, a__5[0] = "}";
-#line 22223 ""
- i__8[1] = 1, a__5[1] = all_1.sq;
-#line 22223 ""
- i__8[2] = 9, a__5[2] = "contpiece";
-#line 22223 ""
- s_cat(ch__15, a__5, i__8, &c__3, (ftnlen)11);
-#line 22223 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22223 ""
- e_wsfe();
-#line 22225 ""
- }
-
-/* Check for meter change at start of a new PAGE */
-
-#line 22229 ""
- if (all_1.mtrnuml > 0) {
-
-/* Meter change at start of a new page */
-
-#line 22233 ""
- setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, &
- combeam_1.ibmtyp, &ibmrep);
-#line 22234 ""
- if (comget_1.movbrk == 0) {
-#line 22235 ""
- if (comlast_1.islast) {
-#line 22236 ""
- wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp);
-#line 22237 ""
- }
-#line 22238 ""
- if (all_1.mtrdnp > 0) {
-#line 22239 ""
- if (comlast_1.islast) {
-#line 22239 ""
- s_wsfe(&io___1494);
-/* Writing concatenation */
-#line 22239 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22239 ""
- i__6[1] = 10, a__4[1] = "newtimes2%";
-#line 22239 ""
- s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)
- 11);
-#line 22239 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22239 ""
- e_wsfe();
-#line 22239 ""
- }
-#line 22240 ""
- if (all_1.ibar == comgrace_1.ibarmbr) {
-#line 22240 ""
- comgrace_1.xb4mbr = all_1.musicsize *
- -.2f;
-#line 22240 ""
- }
-#line 22241 ""
- }
-#line 22242 ""
- }
-#line 22243 ""
- }
-
-/* 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 22248 ""
- if (comshort_1.ishort == 4 && iflagbot == 1) {
-#line 22249 ""
- comshort_1.ishort = 0;
-#line 22250 ""
- iflagbot = 0;
-#line 22251 ""
- s_wsfe(&io___1495);
-/* Writing concatenation */
-#line 22251 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22251 ""
- i__4[1] = 12, a__2[1] = "makeatletter";
-#line 22251 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22251 ""
- i__4[3] = 9, a__2[3] = "fil@begin";
-#line 22251 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22251 ""
- i__4[5] = 11, a__2[5] = "makeatother";
-#line 22251 ""
- s_cat(ch__9, a__2, i__4, &c__6, (ftnlen)35);
-#line 22251 ""
- do_fio(&c__1, ch__9, (ftnlen)35);
-#line 22251 ""
- e_wsfe();
-#line 22253 ""
- }
-#line 22254 ""
- 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 22256 ""
- if (comnotes_1.headerspecial) {
-#line 22256 ""
- s_wsfe(&io___1496);
-/* Writing concatenation */
-#line 22256 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 22256 ""
- i__6[0] = 1, a__4[0] = ch__1;
-#line 22256 ""
- i__6[1] = 28, a__4[1] = "special{header=psslurs.pro}%"
- ;
-#line 22256 ""
- s_cat(ch__7, a__4, i__6, &c__2, (ftnlen)29);
-#line 22256 ""
- do_fio(&c__1, ch__7, (ftnlen)29);
-#line 22256 ""
- e_wsfe();
-#line 22256 ""
- }
-
-/* Write special header for first page */
-
-#line 22261 ""
- } else {
-
-/* First bar of system, not a new page, force line break */
-
-#line 22265 ""
- if (bit_test(iplnow,28)) {
-
-/* Signature change */
-
-/* Writing concatenation */
-#line 22269 ""
- i__14[0] = 1, a__10[0] = all_1.sq;
-#line 22269 ""
- i__14[1] = 4, a__10[1] = "xbar";
-#line 22269 ""
- i__14[2] = 1, a__10[2] = all_1.sq;
-#line 22269 ""
- i__14[3] = 10, a__10[3] = "addspace{-";
-#line 22269 ""
- i__14[4] = 1, a__10[4] = all_1.sq;
-#line 22269 ""
- i__14[5] = 14, a__10[5] = "afterruleskip}";
-#line 22269 ""
- i__14[6] = 1, a__10[6] = all_1.sq;
-#line 22269 ""
- i__14[7] = 17, a__10[7] = "generalsignature{";
-#line 22269 ""
- s_cat(notexq, a__10, i__14, &c__8, (ftnlen)79);
-#line 22271 ""
- lnote = 49;
-#line 22272 ""
- if (comtop_1.isig < 0) {
-/* Writing concatenation */
-#line 22273 ""
- i__6[0] = 49, a__4[0] = notexq;
-#line 22273 ""
- i__6[1] = 1, a__4[1] = "-";
-#line 22273 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 22274 ""
- lnote = 50;
-#line 22275 ""
- }
-#line 22276 ""
- if (comlast_1.islast) {
-#line 22276 ""
- s_wsfe(&io___1497);
-/* Writing concatenation */
-#line 22276 ""
- i__8[0] = lnote, a__5[0] = notexq;
-#line 22276 ""
- i__7 = abs(comtop_1.isig) + 48;
-#line 22276 ""
- chax_(ch__1, (ftnlen)1, &i__7);
-#line 22276 ""
- i__8[1] = 1, a__5[1] = ch__1;
-#line 22276 ""
- i__8[2] = 2, a__5[2] = "}%";
-#line 22276 ""
- s_cat(ch__27, a__5, i__8, &c__3, (ftnlen)82);
-#line 22276 ""
- do_fio(&c__1, ch__27, lnote + 3);
-#line 22276 ""
- e_wsfe();
-#line 22276 ""
- }
-#line 22278 ""
- if (comlast_1.islast && cominsttrans_1.laterinsttrans)
- {
-#line 22279 ""
- writesetsign_(&cominsttrans_1.ninsttrans,
- cominsttrans_1.iinsttrans,
- cominsttrans_1.itranskey, &
- cominsttrans_1.laterinsttrans);
-#line 22281 ""
- }
-#line 22282 ""
- if (comlast_1.islast) {
-#line 22282 ""
- s_wsfe(&io___1498);
-/* Writing concatenation */
-#line 22282 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22282 ""
- i__5[1] = 7, a__3[1] = "advance";
-#line 22282 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22282 ""
- i__5[3] = 8, a__3[3] = "barno-1%";
-#line 22282 ""
- s_cat(ch__13, a__3, i__5, &c__4, (ftnlen)17);
-#line 22282 ""
- do_fio(&c__1, ch__13, (ftnlen)17);
-#line 22282 ""
- e_wsfe();
-#line 22282 ""
- }
-#line 22283 ""
- if (all_1.mtrnuml != 0) {
-
-/* Meter+sig change, new line, may need mods if movement break here. */
-
-#line 22287 ""
- setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, &
- combeam_1.ibmtyp, &ibmrep);
-#line 22288 ""
- if (comlast_1.islast) {
-#line 22289 ""
- wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp);
-#line 22290 ""
- if (comignorenats_1.ignorenats) {
-#line 22290 ""
- s_wsfe(&io___1499);
-/* Writing concatenation */
-#line 22290 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22290 ""
- i__6[1] = 11, a__4[1] = "ignorenats%";
-#line 22290 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)
- 12);
-#line 22290 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22290 ""
- e_wsfe();
-#line 22290 ""
- }
-#line 22291 ""
- s_wsfe(&io___1500);
-/* Writing concatenation */
-#line 22291 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 22291 ""
- i__3[1] = 14, a__1[1] = "xchangecontext";
-#line 22291 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 22291 ""
- i__3[3] = 10, a__1[3] = "addspace{-";
-#line 22291 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 22291 ""
- i__3[5] = 14, a__1[5] = "afterruleskip}";
-#line 22291 ""
- i__3[6] = 1, a__1[6] = all_1.sq;
-#line 22291 ""
- i__3[7] = 10, a__1[7] = "zstoppiece";
-#line 22291 ""
- i__3[8] = 1, a__1[8] = all_1.sq;
-#line 22291 ""
- i__3[9] = 12, a__1[9] = "PMXbarnotrue";
-#line 22291 ""
- i__3[10] = 1, a__1[10] = all_1.sq;
-#line 22291 ""
- i__3[11] = 10, a__1[11] = "contpiece%";
-#line 22291 ""
- s_cat(ch__33, a__1, i__3, &c__12, (ftnlen)76);
-#line 22291 ""
- do_fio(&c__1, ch__33, (ftnlen)76);
-#line 22291 ""
- e_wsfe();
-#line 22294 ""
- s_wsfe(&io___1501);
-/* Writing concatenation */
-#line 22294 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22294 ""
- i__5[1] = 10, a__3[1] = "addspace{-";
-#line 22294 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22294 ""
- i__5[3] = 15, a__3[3] = "afterruleskip}%";
-#line 22294 ""
- s_cat(ch__5, a__3, i__5, &c__4, (ftnlen)27);
-#line 22294 ""
- do_fio(&c__1, ch__5, (ftnlen)27);
-#line 22294 ""
- e_wsfe();
-#line 22296 ""
- wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp);
-#line 22297 ""
- if (comignorenats_1.ignorenats) {
-#line 22297 ""
- s_wsfe(&io___1502);
-/* Writing concatenation */
-#line 22297 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22297 ""
- i__6[1] = 11, a__4[1] = "ignorenats%";
-#line 22297 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)
- 12);
-#line 22297 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22297 ""
- e_wsfe();
-#line 22297 ""
- }
-#line 22298 ""
- s_wsfe(&io___1503);
-/* Writing concatenation */
-#line 22298 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22298 ""
- i__6[1] = 14, a__4[1] = "zchangecontext";
-#line 22298 ""
- s_cat(ch__16, a__4, i__6, &c__2, (ftnlen)15);
-#line 22298 ""
- do_fio(&c__1, ch__16, (ftnlen)15);
-#line 22298 ""
- e_wsfe();
-#line 22299 ""
- }
-#line 22300 ""
- } else {
-#line 22301 ""
- if (comlast_1.islast &&
- comignorenats_1.ignorenats) {
-#line 22301 ""
- s_wsfe(&io___1504);
-/* Writing concatenation */
-#line 22301 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22301 ""
- i__6[1] = 11, a__4[1] = "ignorenats%";
-#line 22301 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12);
-#line 22301 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22301 ""
- e_wsfe();
-#line 22301 ""
- }
-#line 22303 ""
- if (comlast_1.islast) {
-#line 22303 ""
- s_wsfe(&io___1505);
-/* Writing concatenation */
-#line 22303 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 22303 ""
- i__3[1] = 14, a__1[1] = "xchangecontext";
-#line 22303 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 22303 ""
- i__3[3] = 10, a__1[3] = "addspace{-";
-#line 22303 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 22303 ""
- i__3[5] = 14, a__1[5] = "afterruleskip}";
-#line 22303 ""
- i__3[6] = 1, a__1[6] = all_1.sq;
-#line 22303 ""
- i__3[7] = 10, a__1[7] = "zstoppiece";
-#line 22303 ""
- i__3[8] = 1, a__1[8] = all_1.sq;
-#line 22303 ""
- i__3[9] = 12, a__1[9] = "PMXbarnotrue";
-#line 22303 ""
- i__3[10] = 1, a__1[10] = all_1.sq;
-#line 22303 ""
- i__3[11] = 10, a__1[11] = "contpiece%";
-#line 22303 ""
- s_cat(ch__33, a__1, i__3, &c__12, (ftnlen)76);
-#line 22303 ""
- do_fio(&c__1, ch__33, (ftnlen)76);
-#line 22303 ""
- e_wsfe();
-#line 22303 ""
- }
-#line 22306 ""
- }
-#line 22307 ""
- } else if (all_1.mtrnuml == 0 && (comshort_1.ishort == 0
- || comshort_1.ishort == 6)) {
-
-/* No meter change */
-
-#line 22312 ""
- if (comlast_1.islast) {
-#line 22313 ""
- if (comshort_1.ishort != 6) {
-#line 22314 ""
- s_wsfe(&io___1506);
-/* Writing concatenation */
-#line 22314 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22314 ""
- i__6[1] = 8, a__4[1] = "alaligne";
-#line 22314 ""
- s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9);
-#line 22314 ""
- do_fio(&c__1, ch__18, (ftnlen)9);
-#line 22314 ""
- e_wsfe();
-#line 22315 ""
- } else {
-#line 22316 ""
- comshort_1.ishort = 0;
-#line 22317 ""
- }
-#line 22318 ""
- }
-#line 22319 ""
- } else if (comshort_1.ishort != 0) {
-#line 22320 ""
- if (comshort_1.ishort == 1) {
-/* Start short line */
-#line 22321 ""
- s_wsfi(&io___1507);
-#line 22321 ""
- do_fio(&c__1, (char *)&comshort_1.shortfrac, (
- ftnlen)sizeof(real));
-#line 22321 ""
- e_wsfi();
-#line 22322 ""
- s_wsfe(&io___1508);
-/* Writing concatenation */
-#line 22322 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22322 ""
- i__5[1] = 9, a__3[1] = "stoppiece";
-#line 22322 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22322 ""
- i__5[3] = 13, a__3[3] = "parindent 0pt";
-#line 22322 ""
- s_cat(ch__24, a__3, i__5, &c__4, (ftnlen)24);
-#line 22322 ""
- do_fio(&c__1, ch__24, (ftnlen)24);
-#line 22322 ""
- e_wsfe();
-#line 22323 ""
- s_wsfe(&io___1509);
-/* Writing concatenation */
-#line 22323 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22323 ""
- i__5[1] = 5, a__3[1] = "vskip";
-#line 22323 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22323 ""
- i__5[3] = 7, a__3[3] = "parskip";
-#line 22323 ""
- s_cat(ch__10, a__3, i__5, &c__4, (ftnlen)14);
-#line 22323 ""
- do_fio(&c__1, ch__10, (ftnlen)14);
-#line 22323 ""
- e_wsfe();
-#line 22324 ""
- s_wsfe(&io___1510);
-/* Writing concatenation */
-#line 22324 ""
- i__16[0] = 1, a__12[0] = all_1.sq;
-#line 22324 ""
- i__16[1] = 7, a__12[1] = "hbox to";
-#line 22324 ""
- i__16[2] = 1, a__12[2] = all_1.sq;
-#line 22324 ""
- i__16[3] = 6, a__12[3] = "hsize{";
-#line 22324 ""
- i__16[4] = 1, a__12[4] = all_1.sq;
-#line 22324 ""
- i__16[5] = 5, a__12[5] = "vbox{";
-#line 22324 ""
- i__16[6] = 1, a__12[6] = all_1.sq;
-#line 22324 ""
- i__16[7] = 6, a__12[7] = "hsize=";
-#line 22324 ""
- i__16[8] = 3, a__12[8] = shortfraq;
-#line 22324 ""
- i__16[9] = 1, a__12[9] = all_1.sq;
-#line 22324 ""
- i__16[10] = 6, a__12[10] = "hsize%";
-#line 22324 ""
- s_cat(ch__34, a__12, i__16, &c__11, (ftnlen)38);
-#line 22324 ""
- do_fio(&c__1, ch__34, (ftnlen)38);
-#line 22324 ""
- e_wsfe();
-#line 22327 ""
- s_wsfe(&io___1511);
-/* Writing concatenation */
-#line 22327 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22327 ""
- i__6[1] = 9, a__4[1] = "contpiece";
-#line 22327 ""
- s_cat(ch__20, a__4, i__6, &c__2, (ftnlen)10);
-#line 22327 ""
- do_fio(&c__1, ch__20, (ftnlen)10);
-#line 22327 ""
- e_wsfe();
-#line 22328 ""
- s_wsfe(&io___1512);
-/* Writing concatenation */
-#line 22328 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22328 ""
- i__4[1] = 12, a__2[1] = "makeatletter";
-#line 22328 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22328 ""
- i__4[3] = 9, a__2[3] = "fil@begin";
-#line 22328 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22328 ""
- i__4[5] = 11, a__2[5] = "makeatother";
-#line 22328 ""
- s_cat(ch__9, a__2, i__4, &c__6, (ftnlen)35);
-#line 22328 ""
- do_fio(&c__1, ch__9, (ftnlen)35);
-#line 22328 ""
- e_wsfe();
-#line 22330 ""
- ibarcnt0 = combibarcnt_1.ibarcnt;
-#line 22331 ""
- comshort_1.mbrsum = 0;
-#line 22332 ""
- comshort_1.ishort = 2;
-#line 22333 ""
- comshort_1.nmbr = 0;
-#line 22334 ""
- } else if (comshort_1.ishort == 2) {
-/* End short line, no new mv */
-#line 22335 ""
- ntmp = combibarcnt_1.ibarcnt - ibarcnt0 -
- comshort_1.nmbr + comshort_1.mbrsum;
-#line 22336 ""
- if (ntmp <= 9) {
-#line 22337 ""
- *(unsigned char *)shortfraq = (char) (ntmp +
- 48);
-#line 22338 ""
- lntmp = 1;
-#line 22339 ""
- } else {
-#line 22340 ""
- s_wsfi(&io___1513);
-#line 22340 ""
- do_fio(&c__1, (char *)&ntmp, (ftnlen)sizeof(
- integer));
-#line 22340 ""
- e_wsfi();
-#line 22341 ""
- lntmp = 2;
-#line 22342 ""
- }
-#line 22343 ""
- s_wsfe(&io___1514);
-/* Writing concatenation */
-#line 22343 ""
- i__15[0] = 1, a__11[0] = all_1.sq;
-#line 22343 ""
- i__15[1] = 11, a__11[1] = "stoppiece}}";
-#line 22343 ""
- i__15[2] = 1, a__11[2] = all_1.sq;
-#line 22343 ""
- i__15[3] = 7, a__11[3] = "advance";
-#line 22343 ""
- i__15[4] = 1, a__11[4] = all_1.sq;
-#line 22343 ""
- i__15[5] = 5, a__11[5] = "barno";
-#line 22343 ""
- i__15[6] = lntmp, a__11[6] = shortfraq;
-#line 22343 ""
- s_cat(ch__7, a__11, i__15, &c__7, (ftnlen)29);
-#line 22343 ""
- do_fio(&c__1, ch__7, lntmp + 26);
-#line 22343 ""
- e_wsfe();
-
-/* Not clear why we needed this */
-/* //sq//'startbarno'//sq//'barno%' */
-#line 22348 ""
- s_wsfe(&io___1515);
-/* Writing concatenation */
-#line 22348 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22348 ""
- i__6[1] = 9, a__4[1] = "contpiece";
-#line 22348 ""
- s_cat(ch__20, a__4, i__6, &c__2, (ftnlen)10);
-#line 22348 ""
- do_fio(&c__1, ch__20, (ftnlen)10);
-#line 22348 ""
- e_wsfe();
-#line 22349 ""
- s_wsfe(&io___1516);
-/* Writing concatenation */
-#line 22349 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22349 ""
- i__4[1] = 12, a__2[1] = "makeatletter";
-#line 22349 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22349 ""
- i__4[3] = 9, a__2[3] = "fil@begin";
-#line 22349 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22349 ""
- i__4[5] = 11, a__2[5] = "makeatother";
-#line 22349 ""
- s_cat(ch__9, a__2, i__4, &c__6, (ftnlen)35);
-#line 22349 ""
- do_fio(&c__1, ch__9, (ftnlen)35);
-#line 22349 ""
- e_wsfe();
-#line 22351 ""
- comshort_1.ishort = 0;
-#line 22352 ""
- } else if (comshort_1.ishort == 5) {
-/* End short line, new mvt */
-#line 22353 ""
- if (comnotes_1.nobar1) {
-/* Continue bar numbering */
-#line 22354 ""
- s_wsfe(&io___1517);
-/* Writing concatenation */
-#line 22354 ""
- i__10[0] = 1, a__7[0] = all_1.sq;
-#line 22354 ""
- i__10[1] = 7, a__7[1] = "advance";
-#line 22354 ""
- i__10[2] = 1, a__7[2] = all_1.sq;
-#line 22354 ""
- i__10[3] = 5, a__7[3] = "barno";
-#line 22354 ""
- *(unsigned char *)&ch__1[0] =
- combibarcnt_1.ibarcnt - ibarcnt0 + 48;
-#line 22354 ""
- i__10[4] = 1, a__7[4] = ch__1;
-#line 22354 ""
- i__10[5] = 1, a__7[5] = all_1.sq;
-#line 22354 ""
- i__10[6] = 10, a__7[6] = "startbarno";
-#line 22354 ""
- i__10[7] = 1, a__7[7] = all_1.sq;
-#line 22354 ""
- i__10[8] = 6, a__7[8] = "barno%";
-#line 22354 ""
- s_cat(ch__35, a__7, i__10, &c__9, (ftnlen)33);
-#line 22354 ""
- do_fio(&c__1, ch__35, (ftnlen)33);
-#line 22354 ""
- e_wsfe();
-
-/* Must leave in \startbarno to get msm with LMc to work. */
-
-#line 22360 ""
- }
-#line 22361 ""
- s_wsfe(&io___1518);
-/* Writing concatenation */
-#line 22361 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22361 ""
- i__4[1] = 10, a__2[1] = "startpiece";
-#line 22361 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22361 ""
- i__4[3] = 8, a__2[3] = "addspace";
-#line 22361 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22361 ""
- i__4[5] = 14, a__2[5] = "afterruleskip%";
-#line 22361 ""
- s_cat(ch__9, a__2, i__4, &c__6, (ftnlen)35);
-#line 22361 ""
- do_fio(&c__1, ch__9, (ftnlen)35);
-#line 22361 ""
- e_wsfe();
-#line 22363 ""
- comshort_1.ishort = 0;
-#line 22364 ""
- } else if (comshort_1.ishort == 3) {
-/* May never come thru here. Stuff is done later at least for mcl.pmx */
-/* Mid line gap, start coda */
-#line 22366 ""
- s_wsfi(&io___1519);
-#line 22366 ""
- do_fio(&c__1, (char *)&comshort_1.codafrac, (
- ftnlen)sizeof(real));
-#line 22366 ""
- e_wsfi();
-#line 22367 ""
- s_wsfe(&io___1520);
-/* Writing concatenation */
-#line 22367 ""
- i__16[0] = 1, a__12[0] = all_1.sq;
-#line 22367 ""
- i__16[1] = 9, a__12[1] = "endpiece}";
-#line 22367 ""
- i__16[2] = 1, a__12[2] = all_1.sq;
-#line 22367 ""
- i__16[3] = 7, a__12[3] = "advance";
-#line 22367 ""
- i__16[4] = 1, a__12[4] = all_1.sq;
-#line 22367 ""
- i__16[5] = 5, a__12[5] = "barno";
-#line 22367 ""
- *(unsigned char *)&ch__1[0] =
- combibarcnt_1.ibarcnt - ibarcnt0 + 48;
-#line 22367 ""
- i__16[6] = 1, a__12[6] = ch__1;
-#line 22367 ""
- i__16[7] = 1, a__12[7] = all_1.sq;
-#line 22367 ""
- i__16[8] = 10, a__12[8] = "startbarno";
-#line 22367 ""
- i__16[9] = 1, a__12[9] = all_1.sq;
-#line 22367 ""
- i__16[10] = 6, a__12[10] = "barno%";
-#line 22367 ""
- s_cat(ch__36, a__12, i__16, &c__11, (ftnlen)43);
-#line 22367 ""
- do_fio(&c__1, ch__36, (ftnlen)43);
-#line 22367 ""
- e_wsfe();
-#line 22370 ""
- s_wsfe(&io___1521);
-/* Writing concatenation */
-#line 22370 ""
- i__14[0] = 1, a__10[0] = all_1.sq;
-#line 22370 ""
- i__14[1] = 5, a__10[1] = "hfill";
-#line 22370 ""
- i__14[2] = 1, a__10[2] = all_1.sq;
-#line 22370 ""
- i__14[3] = 5, a__10[3] = "vbox{";
-#line 22370 ""
- i__14[4] = 1, a__10[4] = all_1.sq;
-#line 22370 ""
- i__14[5] = 6, a__10[5] = "hsize=";
-#line 22370 ""
- i__14[6] = 3, a__10[6] = shortfraq;
-#line 22370 ""
- i__14[7] = 1, a__10[7] = "%";
-#line 22370 ""
- s_cat(ch__3, a__10, i__14, &c__8, (ftnlen)23);
-#line 22370 ""
- do_fio(&c__1, ch__3, (ftnlen)23);
-#line 22370 ""
- e_wsfe();
-#line 22372 ""
- s_wsfe(&io___1522);
-/* Writing concatenation */
-#line 22372 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22372 ""
- i__6[1] = 9, a__4[1] = "contpiece";
-#line 22372 ""
- s_cat(ch__20, a__4, i__6, &c__2, (ftnlen)10);
-#line 22372 ""
- do_fio(&c__1, ch__20, (ftnlen)10);
-#line 22372 ""
- e_wsfe();
-#line 22373 ""
- s_wsfe(&io___1523);
-/* Writing concatenation */
-#line 22373 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22373 ""
- i__4[1] = 12, a__2[1] = "makeatletter";
-#line 22373 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22373 ""
- i__4[3] = 9, a__2[3] = "fil@begin";
-#line 22373 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22373 ""
- i__4[5] = 11, a__2[5] = "makeatother";
-#line 22373 ""
- s_cat(ch__9, a__2, i__4, &c__6, (ftnlen)35);
-#line 22373 ""
- do_fio(&c__1, ch__9, (ftnlen)35);
-#line 22373 ""
- e_wsfe();
-#line 22375 ""
- comshort_1.ishort = 4;
-#line 22376 ""
- } else if (comshort_1.ishort == 4) {
-/* End coda */
-#line 22377 ""
- ntmp = combibarcnt_1.ibarcnt - ibarcnt0 -
- comshort_1.nmbr + comshort_1.mbrsum;
-#line 22378 ""
- if (ntmp <= 9) {
-#line 22379 ""
- *(unsigned char *)shortfraq = (char) (ntmp +
- 48);
-#line 22380 ""
- lntmp = 1;
-#line 22381 ""
- } else {
-#line 22382 ""
- s_wsfi(&io___1524);
-#line 22382 ""
- do_fio(&c__1, (char *)&ntmp, (ftnlen)sizeof(
- integer));
-#line 22382 ""
- e_wsfi();
-#line 22383 ""
- lntmp = 2;
-#line 22384 ""
- }
-#line 22385 ""
- s_wsfe(&io___1525);
-/* Writing concatenation */
-#line 22385 ""
- i__15[0] = 1, a__11[0] = all_1.sq;
-#line 22385 ""
- i__15[1] = 10, a__11[1] = "endpiece}}";
-#line 22385 ""
- i__15[2] = 1, a__11[2] = all_1.sq;
-#line 22385 ""
- i__15[3] = 7, a__11[3] = "advance";
-#line 22385 ""
- i__15[4] = 1, a__11[4] = all_1.sq;
-#line 22385 ""
- i__15[5] = 5, a__11[5] = "barno";
-#line 22385 ""
- i__15[6] = lntmp, a__11[6] = shortfraq;
-#line 22385 ""
- s_cat(ch__31, a__11, i__15, &c__7, (ftnlen)28);
-#line 22385 ""
- do_fio(&c__1, ch__31, lntmp + 25);
-#line 22385 ""
- e_wsfe();
-#line 22387 ""
- s_wsfe(&io___1526);
-/* Writing concatenation */
-#line 22387 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22387 ""
- i__6[1] = 9, a__4[1] = "contpiece";
-#line 22387 ""
- s_cat(ch__20, a__4, i__6, &c__2, (ftnlen)10);
-#line 22387 ""
- do_fio(&c__1, ch__20, (ftnlen)10);
-#line 22387 ""
- e_wsfe();
-#line 22388 ""
- s_wsfe(&io___1527);
-/* Writing concatenation */
-#line 22388 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22388 ""
- i__4[1] = 12, a__2[1] = "makeatletter";
-#line 22388 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22388 ""
- i__4[3] = 9, a__2[3] = "fil@begin";
-#line 22388 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22388 ""
- i__4[5] = 11, a__2[5] = "makeatother";
-#line 22388 ""
- s_cat(ch__9, a__2, i__4, &c__6, (ftnlen)35);
-#line 22388 ""
- do_fio(&c__1, ch__9, (ftnlen)35);
-#line 22388 ""
- e_wsfe();
-#line 22390 ""
- comshort_1.ishort = 0;
-#line 22391 ""
- comshort_1.mbrsum = 0;
-#line 22392 ""
- comshort_1.nmbr = 0;
-#line 22393 ""
- }
-#line 22394 ""
- } else if (all_1.mtrnuml != 0) {
-
-/* New meter, no new sig, end of line, not new page. */
-
-/* \generalmeter{\meterfrac{3}{4}}% */
-/* \xchangecontext\addspace{-\afterruleskip}% */
-/* \zalaligne\generalmeter{\meterfrac{3}{4}}\addspace{-\afterruleskip}% */
-/* \zchangecontext */
-
-#line 22404 ""
- setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, &
- combeam_1.ibmtyp, &ibmrep);
-#line 22405 ""
- if (comget_1.movbrk == 0) {
-#line 22406 ""
- if (comlast_1.islast) {
-#line 22407 ""
- wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp);
-#line 22408 ""
- }
-#line 22409 ""
- if (all_1.mtrdnp > 0) {
-#line 22410 ""
- if (comlast_1.islast) {
-#line 22411 ""
- s_wsfe(&io___1528);
-/* Writing concatenation */
-#line 22411 ""
- i__3[0] = 1, a__1[0] = all_1.sq;
-#line 22411 ""
- i__3[1] = 3, a__1[1] = "let";
-#line 22411 ""
- i__3[2] = 1, a__1[2] = all_1.sq;
-#line 22411 ""
- i__3[3] = 4, a__1[3] = "bnat";
-#line 22411 ""
- i__3[4] = 1, a__1[4] = all_1.sq;
-#line 22411 ""
- i__3[5] = 8, a__1[5] = "barnoadd";
-#line 22411 ""
- i__3[6] = 1, a__1[6] = all_1.sq;
-#line 22411 ""
- i__3[7] = 3, a__1[7] = "def";
-#line 22411 ""
- i__3[8] = 1, a__1[8] = all_1.sq;
-#line 22411 ""
- i__3[9] = 9, a__1[9] = "barnoadd{";
-#line 22411 ""
- i__3[10] = 1, a__1[10] = all_1.sq;
-#line 22411 ""
- i__3[11] = 7, a__1[11] = "empty}%";
-#line 22411 ""
- s_cat(ch__23, a__1, i__3, &c__12, (ftnlen)
- 40);
-#line 22411 ""
- do_fio(&c__1, ch__23, (ftnlen)40);
-#line 22411 ""
- e_wsfe();
-#line 22414 ""
- s_wsfe(&io___1529);
-/* Writing concatenation */
-#line 22414 ""
- i__17[0] = 1, a__13[0] = all_1.sq;
-#line 22414 ""
- i__17[1] = 14, a__13[1] = "xchangecontext"
- ;
-#line 22414 ""
- i__17[2] = 1, a__13[2] = all_1.sq;
-#line 22414 ""
- i__17[3] = 10, a__13[3] = "addspace{-";
-#line 22414 ""
- i__17[4] = 1, a__13[4] = all_1.sq;
-#line 22414 ""
- i__17[5] = 14, a__13[5] = "afterruleskip}"
- ;
-#line 22414 ""
- i__17[6] = 1, a__13[6] = all_1.sq;
-#line 22414 ""
- i__17[7] = 9, a__13[7] = "zalaligne";
-#line 22414 ""
- i__17[8] = 1, a__13[8] = all_1.sq;
-#line 22414 ""
- i__17[9] = 3, a__13[9] = "let";
-#line 22414 ""
- i__17[10] = 1, a__13[10] = all_1.sq;
-#line 22414 ""
- i__17[11] = 8, a__13[11] = "barnoadd";
-#line 22414 ""
- i__17[12] = 1, a__13[12] = all_1.sq;
-#line 22414 ""
- i__17[13] = 4, a__13[13] = "bnat";
-#line 22414 ""
- s_cat(ch__37, a__13, i__17, &c__14, (
- ftnlen)69);
-#line 22414 ""
- do_fio(&c__1, ch__37, (ftnlen)69);
-#line 22414 ""
- e_wsfe();
-#line 22417 ""
- wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp);
-#line 22418 ""
- s_wsfe(&io___1530);
-/* Writing concatenation */
-#line 22418 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22418 ""
- i__4[1] = 10, a__2[1] = "addspace{-";
-#line 22418 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22418 ""
- i__4[3] = 14, a__2[3] = "afterruleskip}";
-#line 22418 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22418 ""
- i__4[5] = 14, a__2[5] = "zchangecontext";
-#line 22418 ""
- s_cat(ch__38, a__2, i__4, &c__6, (ftnlen)
- 41);
-#line 22418 ""
- do_fio(&c__1, ch__38, (ftnlen)41);
-#line 22418 ""
- e_wsfe();
-#line 22420 ""
- }
-#line 22421 ""
- if (all_1.ibar == comgrace_1.ibarmbr) {
-#line 22421 ""
- comgrace_1.xb4mbr = all_1.musicsize *
- -.2f;
-#line 22421 ""
- }
-#line 22422 ""
- } else {
-#line 22423 ""
- if (comlast_1.islast) {
-#line 22423 ""
- s_wsfe(&io___1531);
-/* Writing concatenation */
-#line 22423 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22423 ""
- i__6[1] = 8, a__4[1] = "alaligne";
-#line 22423 ""
- s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)
- 9);
-#line 22423 ""
- do_fio(&c__1, ch__18, (ftnlen)9);
-#line 22423 ""
- e_wsfe();
-#line 22423 ""
- }
-#line 22424 ""
- }
-#line 22425 ""
- } else {
-#line 22426 ""
- if (comlast_1.islast) {
-#line 22426 ""
- s_wsfe(&io___1532);
-/* Writing concatenation */
-#line 22426 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22426 ""
- i__6[1] = 8, a__4[1] = "alaligne";
-#line 22426 ""
- s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9);
-#line 22426 ""
- do_fio(&c__1, ch__18, (ftnlen)9);
-#line 22426 ""
- e_wsfe();
-#line 22426 ""
- }
-#line 22427 ""
- }
-#line 22428 ""
- }
-#line 22429 ""
- }
-
-/* Modified 090525 to use \bnrs */
-
-#line 22433 ""
- if (slint) {
-#line 22434 ""
- slint = FALSE_;
-#line 22435 ""
- if (comlast_1.islast) {
-#line 22435 ""
- s_wsfe(&io___1533);
-/* Writing concatenation */
-#line 22435 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22435 ""
- i__5[1] = 3, a__3[1] = "def";
-#line 22435 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22435 ""
- i__5[3] = 11, a__3[3] = "raisebarno{";
-#line 22435 ""
- s_cat(ch__22, a__3, i__5, &c__4, (ftnlen)16);
-#line 22435 ""
- do_fio(&c__1, ch__22, (ftnlen)16);
-#line 22435 ""
- do_fio(&c__1, (char *)&comsln_1.irzbnd, (ftnlen)
- sizeof(integer));
-/* Writing concatenation */
-#line 22435 ""
- i__8[0] = 2, a__5[0] = ".5";
-#line 22435 ""
- i__8[1] = 1, a__5[1] = all_1.sq;
-#line 22435 ""
- i__8[2] = 11, a__5[2] = "internote}%";
-#line 22435 ""
- s_cat(ch__10, a__5, i__8, &c__3, (ftnlen)14);
-#line 22435 ""
- do_fio(&c__1, ch__10, (ftnlen)14);
-#line 22435 ""
- e_wsfe();
-#line 22435 ""
- }
-#line 22437 ""
- }
-#line 22438 ""
- comget_1.movbrk = 0;
-#line 22439 ""
- }
-
-/* Clean up if we squelched bar number reset at movement break */
-
-#line 22443 ""
- if (comnotes_1.nobar1) {
-#line 22444 ""
- if (comlast_1.islast) {
-#line 22444 ""
- s_wsfe(&io___1534);
-/* Writing concatenation */
-#line 22444 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22444 ""
- i__6[1] = 11, a__4[1] = "startbarno1";
-#line 22444 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12);
-#line 22444 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22444 ""
- e_wsfe();
-#line 22444 ""
- }
-#line 22445 ""
- comnotes_1.nobar1 = FALSE_;
-#line 22446 ""
- }
-#line 22447 ""
- i__7 = s_rsle(&io___1535);
-#line 22447 ""
- if (i__7 != 0) {
-#line 22447 ""
- goto L14;
-#line 22447 ""
- }
-#line 22447 ""
- i__7 = do_lio(&c__3, &c__1, (char *)&iauto, (ftnlen)sizeof(
- integer));
-#line 22447 ""
- if (i__7 != 0) {
-#line 22447 ""
- goto L14;
-#line 22447 ""
- }
-#line 22447 ""
- i__7 = e_rsle();
-#line 22447 ""
- if (i__7 != 0) {
-#line 22447 ""
- goto L14;
-#line 22447 ""
- }
-#line 22448 ""
-L14:
-
-/* We come thru here for the 1st bar of every system, so initialize is1n1 */
-
-#line 22452 ""
- comsln_1.is1n1 = 0;
-
-/* Brought down from above */
-
-#line 22456 ""
- if (isystpg == comnotes_1.nsystp[comnotes_1.ipage - 1]) {
-#line 22457 ""
- isystpg = 0;
-
-/* The following is to avoid moving this reset of isystpg, but still send a signal */
-/* down below for last system shortening events */
-
-#line 22462 ""
- if (comshort_1.ishort == 2) {
-#line 22462 ""
- iflagbot = 1;
-#line 22462 ""
- }
-#line 22463 ""
- }
-
-/* Check for linebreak ties */
-
-#line 22467 ""
- if (ispstie) {
-#line 22467 ""
- linebreakties_(all_1.isdat1, all_1.isdat2, all_1.isdat3,
- all_1.isdat4, &all_1.nsdat, &ispstie, all_1.sepsymq, (
- ftnlen)1);
-#line 22467 ""
- }
-#line 22470 ""
- } else {
-
-/* Not first bar of system */
-
-#line 22474 ""
- if (bit_test(iplnow,28)) {
-
-/* Signature change */
-
-#line 22478 ""
- if (all_1.mtrnuml != 0) {
-
-/* Meter+signature change mid line, assume no movement break */
-
-#line 22482 ""
- setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, &
- combeam_1.ibmtyp, &ibmrep);
-#line 22483 ""
- if (comlast_1.islast) {
-#line 22483 ""
- wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp);
-#line 22483 ""
- }
-/* Writing concatenation */
-#line 22484 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22484 ""
- i__6[1] = 17, a__4[1] = "generalsignature{";
-#line 22484 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 22485 ""
- lnote = 18;
-#line 22486 ""
- if (comtop_1.isig < 0) {
-/* Writing concatenation */
-#line 22487 ""
- i__6[0] = 18, a__4[0] = notexq;
-#line 22487 ""
- i__6[1] = 1, a__4[1] = "-";
-#line 22487 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 22488 ""
- lnote = 19;
-#line 22489 ""
- }
-#line 22490 ""
- if (comlast_1.islast) {
-#line 22491 ""
- iptemp = abs(comtop_1.isig) + 48;
-#line 22492 ""
- chax_(ch__1, (ftnlen)1, &iptemp);
-#line 22492 ""
- *(unsigned char *)charq = *(unsigned char *)&ch__1[0];
-/* Writing concatenation */
-#line 22493 ""
- i__8[0] = lnote, a__5[0] = notexq;
-#line 22493 ""
- i__8[1] = 1, a__5[1] = charq;
-#line 22493 ""
- i__8[2] = 2, a__5[2] = "}%";
-#line 22493 ""
- s_cat(notexq, a__5, i__8, &c__3, (ftnlen)79);
-#line 22494 ""
- lnote += 3;
-#line 22495 ""
- s_wsfe(&io___1538);
-#line 22495 ""
- do_fio(&c__1, notexq, lnote);
-#line 22495 ""
- e_wsfe();
-#line 22496 ""
- if (comlast_1.islast && cominsttrans_1.laterinsttrans)
- {
-#line 22497 ""
- writesetsign_(&cominsttrans_1.ninsttrans,
- cominsttrans_1.iinsttrans,
- cominsttrans_1.itranskey, &
- cominsttrans_1.laterinsttrans);
-#line 22499 ""
- }
-#line 22500 ""
- if (comignorenats_1.ignorenats) {
-#line 22500 ""
- s_wsfe(&io___1539);
-/* Writing concatenation */
-#line 22500 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22500 ""
- i__6[1] = 11, a__4[1] = "ignorenats%";
-#line 22500 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12);
-#line 22500 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22500 ""
- e_wsfe();
-#line 22500 ""
- }
-#line 22501 ""
- s_wsfe(&io___1540);
-/* Writing concatenation */
-#line 22501 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22501 ""
- i__6[1] = 15, a__4[1] = "xchangecontext%";
-#line 22501 ""
- s_cat(ch__22, a__4, i__6, &c__2, (ftnlen)16);
-#line 22501 ""
- do_fio(&c__1, ch__22, (ftnlen)16);
-#line 22501 ""
- e_wsfe();
-#line 22502 ""
- }
-#line 22503 ""
- if (all_1.ibar == comgrace_1.ibarmbr) {
-
-/* Compute space for multibar rest */
-
-#line 22507 ""
- if (comtop_1.lastisig * comtop_1.isig >= 0) {
-/* Computing MAX */
-#line 22508 ""
- i__7 = abs(comtop_1.lastisig), i__2 = abs(
- comtop_1.isig);
-#line 22508 ""
- naccs = max(i__7,i__2);
-#line 22509 ""
- } else {
-#line 22510 ""
- naccs = (i__7 = comtop_1.lastisig - comtop_1.isig,
- abs(i__7));
-#line 22511 ""
- }
-/* xb4mbr = (facmtr+naccs*.24)*musicsize */
-#line 22513 ""
- comgrace_1.xb4mbr = all_1.musicsize * -.2f;
-#line 22514 ""
- }
-#line 22515 ""
- } else {
-
-/* Signature change only */
-
-/* Writing concatenation */
-#line 22519 ""
- i__14[0] = 1, a__10[0] = all_1.sq;
-#line 22519 ""
- i__14[1] = 4, a__10[1] = "xbar";
-#line 22519 ""
- i__14[2] = 1, a__10[2] = all_1.sq;
-#line 22519 ""
- i__14[3] = 10, a__10[3] = "addspace{-";
-#line 22519 ""
- i__14[4] = 1, a__10[4] = all_1.sq;
-#line 22519 ""
- i__14[5] = 14, a__10[5] = "afterruleskip}";
-#line 22519 ""
- i__14[6] = 1, a__10[6] = all_1.sq;
-#line 22519 ""
- i__14[7] = 17, a__10[7] = "generalsignature{";
-#line 22519 ""
- s_cat(notexq, a__10, i__14, &c__8, (ftnlen)79);
-#line 22521 ""
- lnote = 49;
-#line 22522 ""
- if (comtop_1.isig < 0) {
-/* Writing concatenation */
-#line 22523 ""
- i__6[0] = 49, a__4[0] = notexq;
-#line 22523 ""
- i__6[1] = 1, a__4[1] = "-";
-#line 22523 ""
- s_cat(notexq, a__4, i__6, &c__2, (ftnlen)79);
-#line 22524 ""
- lnote = 50;
-#line 22525 ""
- }
-#line 22526 ""
- if (comlast_1.islast) {
-#line 22526 ""
- s_wsfe(&io___1542);
-/* Writing concatenation */
-#line 22526 ""
- i__8[0] = lnote, a__5[0] = notexq;
-#line 22526 ""
- i__7 = abs(comtop_1.isig) + 48;
-#line 22526 ""
- chax_(ch__1, (ftnlen)1, &i__7);
-#line 22526 ""
- i__8[1] = 1, a__5[1] = ch__1;
-#line 22526 ""
- i__8[2] = 2, a__5[2] = "}%";
-#line 22526 ""
- s_cat(ch__27, a__5, i__8, &c__3, (ftnlen)82);
-#line 22526 ""
- do_fio(&c__1, ch__27, lnote + 3);
-#line 22526 ""
- e_wsfe();
-#line 22526 ""
- }
-#line 22528 ""
- if (comlast_1.islast && cominsttrans_1.laterinsttrans) {
-#line 22529 ""
- writesetsign_(&cominsttrans_1.ninsttrans,
- cominsttrans_1.iinsttrans,
- cominsttrans_1.itranskey, &
- cominsttrans_1.laterinsttrans);
-#line 22531 ""
- }
-#line 22532 ""
- if (comlast_1.islast && comignorenats_1.ignorenats) {
-#line 22532 ""
- s_wsfe(&io___1543);
-/* Writing concatenation */
-#line 22532 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22532 ""
- i__6[1] = 11, a__4[1] = "ignorenats%";
-#line 22532 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12);
-#line 22532 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22532 ""
- e_wsfe();
-#line 22532 ""
- }
-#line 22534 ""
- if (comlast_1.islast) {
-#line 22534 ""
- s_wsfe(&io___1544);
-/* Writing concatenation */
-#line 22534 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22534 ""
- i__4[1] = 14, a__2[1] = "zchangecontext";
-#line 22534 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22534 ""
- i__4[3] = 12, a__2[3] = "addspace{-.5";
-#line 22534 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22534 ""
- i__4[5] = 15, a__2[5] = "afterruleskip}%";
-#line 22534 ""
- s_cat(ch__39, a__2, i__4, &c__6, (ftnlen)44);
-#line 22534 ""
- do_fio(&c__1, ch__39, (ftnlen)44);
-#line 22534 ""
- e_wsfe();
-#line 22534 ""
- }
-#line 22536 ""
- if (all_1.ibar == comgrace_1.ibarmbr) {
-
-/* Compute space for multibar rest */
-
-#line 22540 ""
- if (comtop_1.lastisig * comtop_1.isig >= 0) {
-/* Computing MAX */
-#line 22541 ""
- i__7 = abs(comtop_1.lastisig), i__2 = abs(
- comtop_1.isig);
-#line 22541 ""
- naccs = max(i__7,i__2);
-#line 22542 ""
- } else {
-#line 22543 ""
- naccs = (i__7 = comtop_1.lastisig - comtop_1.isig,
- abs(i__7));
-#line 22544 ""
- }
-/* xb4mbr = naccs*.24*musicsize */
-#line 22546 ""
- comgrace_1.xb4mbr = all_1.musicsize * -.2f;
-#line 22547 ""
- }
-#line 22548 ""
- }
-#line 22549 ""
- } else if (comshort_1.ishort == 3) {
-
-/* Gap before coda, assumed no signature change! */
-
-#line 22553 ""
- ntmp = combibarcnt_1.ibarcnt - ibarcnt0 - comshort_1.nmbr +
- comshort_1.mbrsum;
-#line 22554 ""
- if (ntmp <= 9) {
-#line 22555 ""
- *(unsigned char *)shortfraq = (char) (ntmp + 48);
-#line 22556 ""
- lntmp = 1;
-#line 22557 ""
- } else {
-#line 22558 ""
- s_wsfi(&io___1545);
-#line 22558 ""
- do_fio(&c__1, (char *)&ntmp, (ftnlen)sizeof(integer));
-#line 22558 ""
- e_wsfi();
-#line 22559 ""
- lntmp = 2;
-#line 22560 ""
- }
-#line 22561 ""
- s_wsfe(&io___1546);
-/* Writing concatenation */
-#line 22561 ""
- i__15[0] = 1, a__11[0] = all_1.sq;
-#line 22561 ""
- i__15[1] = 9, a__11[1] = "endpiece}";
-#line 22561 ""
- i__15[2] = 1, a__11[2] = all_1.sq;
-#line 22561 ""
- i__15[3] = 7, a__11[3] = "advance";
-#line 22561 ""
- i__15[4] = 1, a__11[4] = all_1.sq;
-#line 22561 ""
- i__15[5] = 5, a__11[5] = "barno";
-#line 22561 ""
- i__15[6] = lntmp, a__11[6] = shortfraq;
-#line 22561 ""
- s_cat(ch__5, a__11, i__15, &c__7, (ftnlen)27);
-#line 22561 ""
- do_fio(&c__1, ch__5, lntmp + 24);
-#line 22561 ""
- e_wsfe();
-#line 22563 ""
- if (comshort_1.nocodabn) {
-#line 22564 ""
- s_wsfe(&io___1547);
-/* Writing concatenation */
-#line 22564 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22564 ""
- i__6[1] = 7, a__4[1] = "nobarno";
-#line 22564 ""
- s_cat(ch__8, a__4, i__6, &c__2, (ftnlen)8);
-#line 22564 ""
- do_fio(&c__1, ch__8, (ftnlen)8);
-#line 22564 ""
- e_wsfe();
-#line 22565 ""
- comshort_1.nocodabn = FALSE_;
-#line 22566 ""
- }
-#line 22567 ""
- s_wsfi(&io___1548);
-#line 22567 ""
- do_fio(&c__1, (char *)&comshort_1.codafrac, (ftnlen)sizeof(
- real));
-#line 22567 ""
- e_wsfi();
-#line 22568 ""
- s_wsfe(&io___1549);
-/* Writing concatenation */
-#line 22568 ""
- i__10[0] = 1, a__7[0] = all_1.sq;
-#line 22568 ""
- i__10[1] = 5, a__7[1] = "hfill";
-#line 22568 ""
- i__10[2] = 1, a__7[2] = all_1.sq;
-#line 22568 ""
- i__10[3] = 5, a__7[3] = "vbox{";
-#line 22568 ""
- i__10[4] = 1, a__7[4] = all_1.sq;
-#line 22568 ""
- i__10[5] = 6, a__7[5] = "hsize=";
-#line 22568 ""
- i__10[6] = 3, a__7[6] = shortfraq;
-#line 22568 ""
- i__10[7] = 1, a__7[7] = all_1.sq;
-#line 22568 ""
- i__10[8] = 6, a__7[8] = "hsize%";
-#line 22568 ""
- s_cat(ch__7, a__7, i__10, &c__9, (ftnlen)29);
-#line 22568 ""
- do_fio(&c__1, ch__7, (ftnlen)29);
-#line 22568 ""
- e_wsfe();
-#line 22570 ""
- s_wsfe(&io___1550);
-/* Writing concatenation */
-#line 22570 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22570 ""
- i__6[1] = 9, a__4[1] = "contpiece";
-#line 22570 ""
- s_cat(ch__20, a__4, i__6, &c__2, (ftnlen)10);
-#line 22570 ""
- do_fio(&c__1, ch__20, (ftnlen)10);
-#line 22570 ""
- e_wsfe();
-#line 22571 ""
- s_wsfe(&io___1551);
-/* Writing concatenation */
-#line 22571 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22571 ""
- i__4[1] = 12, a__2[1] = "makeatletter";
-#line 22571 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22571 ""
- i__4[3] = 9, a__2[3] = "fil@begin";
-#line 22571 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22571 ""
- i__4[5] = 11, a__2[5] = "makeatother";
-#line 22571 ""
- s_cat(ch__9, a__2, i__4, &c__6, (ftnlen)35);
-#line 22571 ""
- do_fio(&c__1, ch__9, (ftnlen)35);
-#line 22571 ""
- e_wsfe();
-#line 22573 ""
- comshort_1.ishort = 4;
-#line 22574 ""
- } else if (all_1.mtrnuml == 0) {
-
-/* No meter change */
-
-#line 22578 ""
- if (comlast_1.islast) {
-#line 22578 ""
- s_wsfe(&io___1552);
-/* Writing concatenation */
-#line 22578 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22578 ""
- i__6[1] = 4, a__4[1] = "xbar";
-#line 22578 ""
- s_cat(ch__40, a__4, i__6, &c__2, (ftnlen)5);
-#line 22578 ""
- do_fio(&c__1, ch__40, (ftnlen)5);
-#line 22578 ""
- e_wsfe();
-#line 22578 ""
- }
-#line 22579 ""
- } else {
-
-/* Change meter midline */
-
-#line 22583 ""
- setmeter_(&all_1.mtrnuml, &all_1.mtrdenl, &combeam_1.ibmtyp, &
- ibmrep);
-#line 22584 ""
- if (comget_1.movbrk == 0) {
-#line 22585 ""
- if (comlast_1.islast) {
-#line 22586 ""
- wgmeter_(&all_1.mtrnmp, &all_1.mtrdnp);
-#line 22587 ""
- }
-#line 22588 ""
- if (all_1.mtrdnp > 0) {
-#line 22589 ""
- if (comlast_1.islast) {
-#line 22590 ""
- s_wsfe(&io___1553);
-/* Writing concatenation */
-#line 22590 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22590 ""
- i__6[1] = 10, a__4[1] = "newtimes0%";
-#line 22590 ""
- s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11);
-#line 22590 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22590 ""
- e_wsfe();
-#line 22591 ""
- }
-/* if (ibar .eq. ibarmbr) xb4mbr = facmtr*musicsize */
-#line 22593 ""
- if (all_1.ibar == comgrace_1.ibarmbr) {
-#line 22593 ""
- comgrace_1.xb4mbr = all_1.musicsize * -.2f;
-#line 22593 ""
- }
-#line 22594 ""
- } else {
-#line 22595 ""
- if (comlast_1.islast) {
-#line 22595 ""
- s_wsfe(&io___1554);
-/* Writing concatenation */
-#line 22595 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22595 ""
- i__6[1] = 4, a__4[1] = "xbar";
-#line 22595 ""
- s_cat(ch__40, a__4, i__6, &c__2, (ftnlen)5);
-#line 22595 ""
- do_fio(&c__1, ch__40, (ftnlen)5);
-#line 22595 ""
- e_wsfe();
-#line 22595 ""
- }
-#line 22596 ""
- }
-#line 22597 ""
- }
-#line 22598 ""
- }
-#line 22599 ""
- }
-
-/* Now that xbar's are written, can put in left-repeats at line beginnings */
-
-#line 22603 ""
- if (lrptpend) {
-#line 22604 ""
- if (comlast_1.islast) {
-#line 22604 ""
- s_wsfe(&io___1555);
-/* Writing concatenation */
-#line 22604 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22604 ""
- i__4[1] = 7, a__2[1] = "advance";
-#line 22604 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22604 ""
- i__4[3] = 7, a__2[3] = "barno-1";
-#line 22604 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22604 ""
- i__4[5] = 10, a__2[5] = "leftrepeat";
-#line 22604 ""
- s_cat(ch__5, a__2, i__4, &c__6, (ftnlen)27);
-#line 22604 ""
- do_fio(&c__1, ch__5, (ftnlen)27);
-#line 22604 ""
- e_wsfe();
-#line 22604 ""
- }
-#line 22606 ""
- lrptpend = FALSE_;
-#line 22607 ""
- }
-#line 22608 ""
- if (all_1.ibar > 1) {
-
-/* For bars after first, slide all stuff down to beginning of arrays */
-
-#line 22612 ""
- i__7 = all_1.nv;
-#line 22612 ""
- for (all_1.iv = 1; all_1.iv <= i__7; ++all_1.iv) {
-#line 22613 ""
- i__2 = commvl_1.nvmx[all_1.iv - 1];
-#line 22613 ""
- for (kv = 1; kv <= i__2; ++kv) {
-#line 22614 ""
- commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25];
-#line 22615 ""
- ioff = all_1.nib[commvl_1.ivx + (all_1.ibar - 1) * 24 -
- 25];
-#line 22616 ""
- i__13 = all_1.nib[commvl_1.ivx + all_1.ibar * 24 - 25] -
- ioff;
-#line 22616 ""
- for (ip = 1; ip <= i__13; ++ip) {
-#line 22617 ""
- all_1.nolev[commvl_1.ivx + ip * 24 - 25] =
- all_1.nolev[commvl_1.ivx + (ip + ioff) * 24 -
- 25];
-#line 22618 ""
- all_1.nodur[commvl_1.ivx + ip * 24 - 25] =
- all_1.nodur[commvl_1.ivx + (ip + ioff) * 24 -
- 25];
-#line 22619 ""
- all_1.nacc[commvl_1.ivx + ip * 24 - 25] = all_1.nacc[
- commvl_1.ivx + (ip + ioff) * 24 - 25];
-#line 22620 ""
- all_1.irest[commvl_1.ivx + ip * 24 - 25] =
- all_1.irest[commvl_1.ivx + (ip + ioff) * 24 -
- 25];
-#line 22621 ""
- all_1.islur[commvl_1.ivx + ip * 24 - 25] =
- all_1.islur[commvl_1.ivx + (ip + ioff) * 24 -
- 25];
-#line 22622 ""
- all_1.ipl[commvl_1.ivx + ip * 24 - 25] = all_1.ipl[
- commvl_1.ivx + (ip + ioff) * 24 - 25];
-#line 22623 ""
- all_1.iornq[commvl_1.ivx + ip * 24 - 1] = all_1.iornq[
- commvl_1.ivx + (ip + ioff) * 24 - 1];
-#line 22624 ""
- all_1.mult[commvl_1.ivx + ip * 24 - 25] = all_1.mult[
- commvl_1.ivx + (ip + ioff) * 24 - 25];
-#line 22625 ""
- if (all_1.figbass && commvl_1.ivx == 1 ||
- commvl_1.ivx == comfig_1.ivxfig2) {
-#line 22626 ""
- if (commvl_1.ivx == 1) {
-#line 22627 ""
- all_1.isfig[(ip << 1) - 2] = all_1.isfig[(ip
- + ioff << 1) - 2];
-#line 22628 ""
- } else {
-#line 22629 ""
- all_1.isfig[(ip << 1) - 1] = all_1.isfig[(ip
- + ioff << 1) - 1];
-#line 22630 ""
- }
-#line 22631 ""
- }
-#line 22632 ""
-/* L12: */
-#line 22632 ""
- }
-#line 22633 ""
- if (commvl_1.ivx <= all_1.nv && comcc_1.ncc[all_1.iv - 1]
- > 1) {
-#line 22634 ""
- islide = 0;
-#line 22635 ""
- i__13 = comcc_1.ncc[all_1.iv - 1];
-#line 22635 ""
- for (icc = 1; icc <= i__13; ++icc) {
-#line 22636 ""
- if (comcc_1.tcc[all_1.iv + icc * 24 - 25] <= (
- real) all_1.lenbar) {
-
-/* This time will drop <=0 when slid. */
-
-#line 22640 ""
- islide = icc - 1;
-#line 22641 ""
- comcc_1.ncmidcc[all_1.iv - 1] =
- comcc_1.ncmidcc[all_1.iv + icc * 24 -
- 25];
-#line 22642 ""
- } else {
-#line 22643 ""
- comcc_1.tcc[all_1.iv + (icc - islide) * 24 -
- 25] = comcc_1.tcc[all_1.iv + icc * 24
- - 25] - all_1.lenbar;
-#line 22644 ""
- comcc_1.ncmidcc[all_1.iv + (icc - islide) *
- 24 - 25] = comcc_1.ncmidcc[all_1.iv +
- icc * 24 - 25];
-#line 22645 ""
- }
-#line 22646 ""
-/* L13: */
-#line 22646 ""
- }
-#line 22647 ""
- comcc_1.ncc[all_1.iv - 1] -= islide;
-#line 22648 ""
- comcc_1.tcc[all_1.iv - 1] = 0.f;
-#line 22649 ""
- }
-#line 22650 ""
-/* L11: */
-#line 22650 ""
- }
-#line 22650 ""
- }
-#line 22651 ""
- i__2 = comgrace_1.ngrace;
-#line 22651 ""
- for (ig = 1; ig <= i__2; ++ig) {
-#line 22652 ""
- comgrace_1.ipg[ig - 1] -= all_1.nib[comgrace_1.ivg[ig - 1] + (
- all_1.ibar - 1) * 24 - 25];
-#line 22653 ""
- if (all_1.ibar > 2) {
-#line 22653 ""
- comgrace_1.ipg[ig - 1] += all_1.nib[comgrace_1.ivg[ig - 1]
- + (all_1.ibar - 2) * 24 - 25];
-#line 22653 ""
- }
-#line 22654 ""
-/* L15: */
-#line 22654 ""
- }
-#line 22655 ""
- i__2 = comgrace_1.nlit;
-#line 22655 ""
- for (il = 1; il <= i__2; ++il) {
-#line 22656 ""
- comgrace_1.iplit[il - 1] -= all_1.nib[comgrace_1.ivlit[il - 1]
- + (all_1.ibar - 1) * 24 - 25];
-#line 22657 ""
- if (all_1.ibar > 2) {
-#line 22657 ""
- comgrace_1.iplit[il - 1] += all_1.nib[comgrace_1.ivlit[il
- - 1] + (all_1.ibar - 2) * 24 - 25];
-#line 22657 ""
- }
-#line 22658 ""
-/* L21: */
-#line 22658 ""
- }
-#line 22659 ""
- i__2 = comtrill_1.ntrill;
-#line 22659 ""
- for (it = 1; it <= i__2; ++it) {
-#line 22660 ""
- comtrill_1.iptrill[it - 1] -= all_1.nib[comtrill_1.ivtrill[it
- - 1] + (all_1.ibar - 1) * 24 - 25];
-#line 22661 ""
- if (all_1.ibar > 2) {
-#line 22661 ""
- comtrill_1.iptrill[it - 1] += all_1.nib[
- comtrill_1.ivtrill[it - 1] + (all_1.ibar - 2) *
- 24 - 25];
-#line 22661 ""
- }
-#line 22663 ""
-/* L22: */
-#line 22663 ""
- }
-#line 22664 ""
- i__2 = comtrill_1.ncrd;
-#line 22664 ""
- for (icrd = 1; icrd <= i__2; ++icrd) {
-#line 22665 ""
- 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 22667 ""
- ipnew = (255 & comtrill_1.icrdat[icrd - 1]) - all_1.nib[
- commvl_1.ivx + (all_1.ibar - 1) * 24 - 25];
-#line 22668 ""
- if (all_1.ibar > 2) {
-#line 22668 ""
- ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 -
- 25];
-#line 22668 ""
- }
-#line 22669 ""
- comtrill_1.icrdat[icrd - 1] = -256 & comtrill_1.icrdat[icrd -
- 1];
-#line 22670 ""
- comtrill_1.icrdat[icrd - 1] = max(0,ipnew) |
- comtrill_1.icrdat[icrd - 1];
-#line 22671 ""
-/* L27: */
-#line 22671 ""
- }
-#line 22672 ""
- i__2 = comtrill_1.nudorn;
-#line 22672 ""
- for (iudorn = 1; iudorn <= i__2; ++iudorn) {
-#line 22673 ""
- commvl_1.ivx = comivxudorn_1.ivxudorn[iudorn - 1];
-#line 22674 ""
- ipnew = (255 & comtrill_1.kudorn[iudorn - 1]) - all_1.nib[
- commvl_1.ivx + (all_1.ibar - 1) * 24 - 25];
-#line 22675 ""
- if (all_1.ibar > 2) {
-#line 22675 ""
- ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 -
- 25];
-#line 22675 ""
- }
-#line 22676 ""
- comtrill_1.kudorn[iudorn - 1] = -256 & comtrill_1.kudorn[
- iudorn - 1];
-#line 22677 ""
- comtrill_1.kudorn[iudorn - 1] = max(0,ipnew) |
- comtrill_1.kudorn[iudorn - 1];
-#line 22678 ""
-/* L29: */
-#line 22678 ""
- }
-#line 22679 ""
- i__2 = comdyn_1.ndyn;
-#line 22679 ""
- for (idyn = 1; idyn <= i__2; ++idyn) {
-#line 22680 ""
- idynd = comdyn_1.idyndat[idyn - 1];
-#line 22681 ""
- commvl_1.ivx = (15 & idynd) + (igetbits_(&comdyn_1.idynda2[
- idyn - 1], &c__1, &c__10) << 4);
-#line 22682 ""
- 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 22686 ""
- if (all_1.ibar > 2) {
-#line 22687 ""
- ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 -
- 25];
-#line 22688 ""
- }
-#line 22689 ""
- ipnew = i_dim(&ipnew, &c__0);
-#line 22690 ""
- setbits_(&idynd, &c__8, &c__4, &ipnew);
-#line 22691 ""
- comdyn_1.idyndat[idyn - 1] = idynd;
-#line 22692 ""
-/* L42: */
-#line 22692 ""
- }
-#line 22693 ""
- i__2 = comdyn_1.ntxtdyn;
-#line 22693 ""
- for (itxtdyn = 1; itxtdyn <= i__2; ++itxtdyn) {
-#line 22694 ""
- idynd = comdyn_1.ivxiptxt[itxtdyn - 1];
-#line 22695 ""
- commvl_1.ivx = 31 & idynd;
-#line 22696 ""
- ipnew = igetbits_(&idynd, &c__8, &c__5) - all_1.nib[
- commvl_1.ivx + (all_1.ibar - 1) * 24 - 25];
-#line 22697 ""
- if (all_1.ibar > 2) {
-#line 22698 ""
- ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 -
- 25];
-#line 22699 ""
- }
-#line 22700 ""
- ipnew = i_dim(&ipnew, &c__0);
-/* call setbits(idynd,8,4,ipnew) */
-#line 22702 ""
- setbits_(&idynd, &c__8, &c__5, &ipnew);
-#line 22703 ""
- comdyn_1.ivxiptxt[itxtdyn - 1] = idynd;
-#line 22704 ""
-/* L43: */
-#line 22704 ""
- }
-#line 22705 ""
- i__2 = all_1.nsdat;
-#line 22705 ""
- for (isdat = 1; isdat <= i__2; ++isdat) {
-#line 22706 ""
- isdata = all_1.isdat1[isdat - 1];
-#line 22707 ""
- commvl_1.ivx = commvl_1.ivmx[igetbits_(&isdata, &c__5, &c__13)
- + (igetbits_(&isdata, &c__1, &c__12) + 1) * 24 - 25];
-#line 22708 ""
- ipnew = igetbits_(&isdata, &c__8, &c__3) - all_1.nib[
- commvl_1.ivx + (all_1.ibar - 1) * 24 - 25];
-#line 22709 ""
- if (all_1.ibar > 2) {
-#line 22710 ""
- ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 -
- 25];
-#line 22711 ""
- }
-#line 22712 ""
- ipnew = i_dim(&ipnew, &c__0);
-#line 22713 ""
- setbits_(&isdata, &c__8, &c__3, &ipnew);
-#line 22714 ""
- all_1.isdat1[isdat - 1] = isdata;
-#line 22715 ""
-/* L41: */
-#line 22715 ""
- }
-#line 22716 ""
- i__2 = comcb_1.nbc;
-#line 22716 ""
- for (ibc = 1; ibc <= i__2; ++ibc) {
-#line 22717 ""
- commvl_1.ivx = (15 & comcb_1.ibcdata[ibc - 1]) + (igetbits_(&
- comcb_1.ibcdata[ibc - 1], &c__1, &c__28) << 4);
-#line 22718 ""
- ipnew = igetbits_(&comcb_1.ibcdata[ibc - 1], &c__8, &c__4) -
- all_1.nib[commvl_1.ivx + (all_1.ibar - 1) * 24 - 25];
-#line 22719 ""
- if (all_1.ibar > 2) {
-#line 22720 ""
- ipnew += all_1.nib[commvl_1.ivx + (all_1.ibar - 2) * 24 -
- 25];
-#line 22721 ""
- }
-#line 22722 ""
- ipnew = i_dim(&ipnew, &c__0);
-#line 22723 ""
- setbits_(&comcb_1.ibcdata[ibc - 1], &c__8, &c__4, &ipnew);
-#line 22724 ""
-/* L44: */
-#line 22724 ""
- }
-#line 22725 ""
- i__2 = comarpshift_1.numarpshift;
-#line 22725 ""
- for (iarps = 1; iarps <= i__2; ++iarps) {
-#line 22726 ""
- comarpshift_1.iparpshift[iarps - 1] -= all_1.nib[
- comarpshift_1.ivarpshift[iarps - 1] + (all_1.ibar - 1)
- * 24 - 25];
-#line 22728 ""
- if (all_1.ibar > 2) {
-#line 22729 ""
- comarpshift_1.iparpshift[iarps - 1] += all_1.nib[
- comarpshift_1.ivarpshift[iarps - 1] + (all_1.ibar
- - 2) * 24 - 25];
-#line 22731 ""
- }
-#line 22732 ""
-/* L45: */
-#line 22732 ""
- }
-
-/* 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 22738 ""
- for (commvl_1.ivx = 1; commvl_1.ivx <= 2; ++commvl_1.ivx) {
-#line 22739 ""
- if (all_1.figbass) {
-#line 22740 ""
- islide = 0;
-#line 22741 ""
- i__2 = comfig_1.nfigs[commvl_1.ivx - 1];
-#line 22741 ""
- for (jfig = 1; jfig <= i__2; ++jfig) {
-#line 22742 ""
- if (comfig_1.itfig[commvl_1.ivx + (jfig << 1) - 3] <
- all_1.lenbar) {
-
-/* This figure was already used */
-
-#line 22746 ""
- islide = jfig;
-#line 22747 ""
- } else {
-#line 22748 ""
- comfig_1.itfig[commvl_1.ivx + (jfig - islide << 1)
- - 3] = comfig_1.itfig[commvl_1.ivx + (
- jfig << 1) - 3] - all_1.lenbar;
-#line 22749 ""
- 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 22750 ""
- comgrace_1.itoff[commvl_1.ivx + (jfig - islide <<
- 1) - 3] = comgrace_1.itoff[commvl_1.ivx +
- (jfig << 1) - 3];
-#line 22751 ""
- comfig_1.ivupfig[commvl_1.ivx + (jfig - islide <<
- 1) - 3] = comfig_1.ivupfig[commvl_1.ivx +
- (jfig << 1) - 3];
-#line 22752 ""
- comfig_1.ivvfig[commvl_1.ivx + (jfig - islide <<
- 1) - 3] = comfig_1.ivvfig[commvl_1.ivx + (
- jfig << 1) - 3];
-#line 22753 ""
- }
-#line 22754 ""
-/* L20: */
-#line 22754 ""
- }
-#line 22755 ""
- comfig_1.nfigs[commvl_1.ivx - 1] -= islide;
-#line 22756 ""
- }
-#line 22757 ""
- if (comfig_1.nfigs[1] == 0) {
-#line 22757 ""
- goto L47;
-#line 22757 ""
- }
-#line 22758 ""
-/* L46: */
-#line 22758 ""
- }
-#line 22759 ""
-L47:
-#line 22760 ""
- ;
-#line 22760 ""
- }
-
-/* End of sliding down for bars after first in gulp. */
-
-/* The following may not be needed by makeabar, but just in case... */
-
-#line 22766 ""
- if (all_1.firstgulp && all_1.lenb0 != 0) {
-#line 22767 ""
- if (all_1.ibar == 1) {
-#line 22768 ""
- all_1.lenbar = all_1.lenb0;
-#line 22769 ""
- } else {
-#line 22770 ""
- all_1.lenbar = all_1.lenb1;
-#line 22771 ""
- }
-#line 22772 ""
- }
-
-/* Equal line spacing stuff */
-
-#line 22776 ""
- if (comget_1.equalize && comask_1.bar1syst) {
-#line 22777 ""
- if (isystpg == 1) {
-#line 22778 ""
- s_wsfe(&io___1571);
-/* Writing concatenation */
-#line 22778 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22778 ""
- i__6[1] = 8, a__4[1] = "starteq%";
-#line 22778 ""
- s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9);
-#line 22778 ""
- do_fio(&c__1, ch__18, (ftnlen)9);
-#line 22778 ""
- e_wsfe();
-#line 22779 ""
- } else if (isystpg == comnotes_1.nsystp[comnotes_1.ipage - 1] - 1)
- {
-#line 22780 ""
- s_wsfe(&io___1572);
-/* Writing concatenation */
-#line 22780 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22780 ""
- i__6[1] = 6, a__4[1] = "endeq%";
-#line 22780 ""
- s_cat(ch__41, a__4, i__6, &c__2, (ftnlen)7);
-#line 22780 ""
- do_fio(&c__1, ch__41, (ftnlen)7);
-#line 22780 ""
- e_wsfe();
-#line 22781 ""
- }
-#line 22782 ""
- }
-#line 22783 ""
- make1bar_(&ibmrep, &tglp1, tstart, cwrest, squez, istop, numbms,
- istart);
-#line 22785 ""
- make2bar_(&comnotes_1.ninow, &tglp1, tstart, cwrest, squez, istop,
- numbms, istart, comclefq_1.clefq, (ftnlen)1);
-
-/* Hardspace before barline? */
-
-#line 22790 ""
- hardb4 = 0.f;
-#line 22791 ""
- i__2 = all_1.nv;
-#line 22791 ""
- for (all_1.iv = 1; all_1.iv <= i__2; ++all_1.iv) {
-#line 22792 ""
- i__7 = commvl_1.nvmx[all_1.iv - 1];
-#line 22792 ""
- for (kv = 1; kv <= i__7; ++kv) {
-#line 22793 ""
- commvl_1.ivx = commvl_1.ivmx[all_1.iv + kv * 24 - 25];
-#line 22794 ""
- if (bit_test(all_1.irest[commvl_1.ivx + all_1.nn[commvl_1.ivx
- - 1] * 24 - 25],18)) {
-#line 22795 ""
- ++comudsp_1.nudoff[commvl_1.ivx - 1];
-/* Computing MAX */
-#line 22796 ""
- r__1 = hardb4, r__2 = comudsp_1.udoff[commvl_1.ivx +
- comudsp_1.nudoff[commvl_1.ivx - 1] * 24 - 25];
-#line 22796 ""
- hardb4 = dmax(r__1,r__2);
-#line 22797 ""
- }
-#line 22798 ""
-/* L35: */
-#line 22798 ""
- }
-#line 22798 ""
- }
-#line 22799 ""
- if (hardb4 > 0.f) {
-#line 22800 ""
- if (comlast_1.islast) {
-#line 22800 ""
- s_wsfe(&io___1580);
-/* Writing concatenation */
-#line 22800 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22800 ""
- i__6[1] = 10, a__4[1] = "hardspace{";
-#line 22800 ""
- s_cat(ch__15, a__4, i__6, &c__2, (ftnlen)11);
-#line 22800 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22800 ""
- do_fio(&c__1, (char *)&hardb4, (ftnlen)sizeof(real));
-#line 22800 ""
- do_fio(&c__1, "pt}%", (ftnlen)4);
-#line 22800 ""
- e_wsfe();
-#line 22800 ""
- }
-
-/* 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 22806 ""
- comask_1.fixednew -= hardb4;
-#line 22807 ""
- }
-#line 22808 ""
-/* L10: */
-#line 22808 ""
- }
-#line 22809 ""
- all_1.firstgulp = FALSE_;
-#line 22810 ""
- all_1.lenb0 = 0;
-#line 22811 ""
- goto L30;
-#line 22812 ""
-L40:
-#line 22812 ""
- cl__1.cerr = 0;
-#line 22812 ""
- cl__1.cunit = 12;
-#line 22812 ""
- cl__1.csta = 0;
-#line 22812 ""
- f_clos(&cl__1);
-#line 22813 ""
- cl__1.cerr = 0;
-#line 22813 ""
- cl__1.cunit = 13;
-#line 22813 ""
- cl__1.csta = 0;
-#line 22813 ""
- f_clos(&cl__1);
-#line 22814 ""
- inbuff_1.ilbuf = 1;
-#line 22815 ""
- inbuff_1.ipbuf = 0;
-#line 22816 ""
- wdpt = comtop_1.widthpt;
-#line 22817 ""
- if (all_1.iline == 1) {
-#line 22817 ""
- wdpt = comtop_1.widthpt * (1 - comtop_1.fracindent);
-#line 22817 ""
- }
-#line 22818 ""
- poe = (wdpt - fsyst * all_1.musicsize - nbarss * .4f - comask_1.fixednew)
- / (elsktot + comask_1.fbar * nbarss - comask_1.scaldold);
-#line 22820 ""
- poevec[nsyst] = poe;
-#line 22821 ""
- if (! comlast_1.islast) {
-#line 22822 ""
- cl__1.cerr = 0;
-#line 22822 ""
- cl__1.cunit = 11;
-#line 22822 ""
- cl__1.csta = 0;
-#line 22822 ""
- f_clos(&cl__1);
-#line 22823 ""
- cl__1.cerr = 0;
-#line 22823 ""
- cl__1.cunit = 16;
-#line 22823 ""
- cl__1.csta = 0;
-#line 22823 ""
- f_clos(&cl__1);
-#line 22824 ""
- if (all_1.figbass) {
-#line 22824 ""
- cl__1.cerr = 0;
-#line 22824 ""
- cl__1.cunit = 14;
-#line 22824 ""
- cl__1.csta = 0;
-#line 22824 ""
- f_clos(&cl__1);
-#line 22824 ""
- }
-#line 22825 ""
- return 0;
-#line 22826 ""
- }
-#line 22827 ""
- i__1 = comas2_1.nasksys;
-#line 22827 ""
- for (ia = 1; ia <= i__1; ++ia) {
-#line 22828 ""
- ++comas3_1.iask;
-#line 22829 ""
- comas3_1.ask[comas3_1.iask - 1] = (comas2_1.wasksys[ia - 1] / poe - (
- r__1 = comas2_1.elasksys[ia - 1], dabs(r__1))) /
- comshort_1.poefa[all_1.iline - 1];
-#line 22830 ""
- if (comas2_1.elasksys[ia - 1] > 0.f) {
-#line 22830 ""
- comas3_1.ask[comas3_1.iask - 1] = r_dim(&comas3_1.ask[
- comas3_1.iask - 1], &c_b1008);
-#line 22830 ""
- }
-#line 22831 ""
-/* L19: */
-#line 22831 ""
- }
-#line 22832 ""
- i__1 = nhssys;
-#line 22832 ""
- for (ia = 1; ia <= i__1; ++ia) {
-#line 22833 ""
- ++nhstot;
-/* Computing MAX */
-#line 22834 ""
- r__1 = hpts[ia - 1] - hesk[ia - 1] * poe;
-#line 22834 ""
- comhsp_1.hpttot[nhstot - 1] = dmax(r__1,0.f);
-#line 22835 ""
-/* L26: */
-#line 22835 ""
- }
-#line 22836 ""
- if (comlast_1.islast && onvolt) {
-#line 22836 ""
- s_wsfe(&io___1581);
-/* Writing concatenation */
-#line 22836 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22836 ""
- i__6[1] = 11, a__4[1] = "endvoltabox";
-#line 22836 ""
- s_cat(ch__14, a__4, i__6, &c__2, (ftnlen)12);
-#line 22836 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22836 ""
- e_wsfe();
-#line 22836 ""
- }
-#line 22838 ""
- s_copy(rendq, "% ", (ftnlen)3, (ftnlen)3);
-#line 22839 ""
- if (comshort_1.ishort != 0) {
-#line 22839 ""
- s_copy(rendq, "}}%", (ftnlen)3, (ftnlen)3);
-#line 22839 ""
- }
-#line 22840 ""
- if (*(unsigned char *)comget_1.rptfq2 != 'E') {
-
-/* Terminal repeat. Right or double? */
-
-#line 22844 ""
- if (*(unsigned char *)comget_1.rptfq2 == 'r') {
-#line 22845 ""
- if (comlast_1.islast) {
-#line 22845 ""
- s_wsfe(&io___1583);
-/* Writing concatenation */
-#line 22845 ""
- i__12[0] = 1, a__9[0] = all_1.sq;
-#line 22845 ""
- i__12[1] = 14, a__9[1] = "setrightrepeat";
-#line 22845 ""
- i__12[2] = 1, a__9[2] = all_1.sq;
-#line 22845 ""
- i__12[3] = 8, a__9[3] = "endpiece";
-#line 22845 ""
- i__12[4] = 3, a__9[4] = rendq;
-#line 22845 ""
- s_cat(ch__5, a__9, i__12, &c__5, (ftnlen)27);
-#line 22845 ""
- do_fio(&c__1, ch__5, (ftnlen)27);
-#line 22845 ""
- e_wsfe();
-#line 22845 ""
- }
-#line 22847 ""
- } else if (*(unsigned char *)comget_1.rptfq2 == 'd') {
-#line 22848 ""
- if (comlast_1.islast) {
-#line 22848 ""
- s_wsfe(&io___1584);
-/* Writing concatenation */
-#line 22848 ""
- i__12[0] = 1, a__9[0] = all_1.sq;
-#line 22848 ""
- i__12[1] = 12, a__9[1] = "setdoublebar";
-#line 22848 ""
- i__12[2] = 1, a__9[2] = all_1.sq;
-#line 22848 ""
- i__12[3] = 8, a__9[3] = "endpiece";
-#line 22848 ""
- i__12[4] = 3, a__9[4] = rendq;
-#line 22848 ""
- s_cat(ch__42, a__9, i__12, &c__5, (ftnlen)25);
-#line 22848 ""
- do_fio(&c__1, ch__42, (ftnlen)25);
-#line 22848 ""
- e_wsfe();
-#line 22848 ""
- }
-#line 22850 ""
- } else if (*(unsigned char *)comget_1.rptfq2 == 'b') {
-#line 22851 ""
- if (comlast_1.islast) {
-#line 22851 ""
- s_wsfe(&io___1585);
-/* Writing concatenation */
-#line 22851 ""
- i__8[0] = 1, a__5[0] = all_1.sq;
-#line 22851 ""
- i__8[1] = 8, a__5[1] = "endpiece";
-#line 22851 ""
- i__8[2] = 3, a__5[2] = rendq;
-#line 22851 ""
- s_cat(ch__14, a__5, i__8, &c__3, (ftnlen)12);
-#line 22851 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22851 ""
- e_wsfe();
-#line 22851 ""
- }
-#line 22852 ""
- } else if (*(unsigned char *)comget_1.rptfq2 == 'z') {
-#line 22853 ""
- if (comlast_1.islast) {
-#line 22853 ""
- s_wsfe(&io___1586);
-/* Writing concatenation */
-#line 22853 ""
- i__12[0] = 1, a__9[0] = all_1.sq;
-#line 22853 ""
- i__12[1] = 12, a__9[1] = "setzalaligne";
-#line 22853 ""
- i__12[2] = 1, a__9[2] = all_1.sq;
-#line 22853 ""
- i__12[3] = 8, a__9[3] = "Endpiece";
-#line 22853 ""
- i__12[4] = 3, a__9[4] = rendq;
-#line 22853 ""
- s_cat(ch__42, a__9, i__12, &c__5, (ftnlen)25);
-#line 22853 ""
- do_fio(&c__1, ch__42, (ftnlen)25);
-#line 22853 ""
- e_wsfe();
-#line 22853 ""
- }
-#line 22855 ""
- } else {
-#line 22856 ""
- s_wsle(&io___1587);
-#line 22856 ""
- e_wsle();
-#line 22857 ""
- s_wsle(&io___1588);
-#line 22857 ""
- do_lio(&c__9, &c__1, "R? , ? not \"d\",\"r\",or\"b\",\"z\"; rptf"\
- "q2:", (ftnlen)37);
-#line 22857 ""
- do_lio(&c__9, &c__1, comget_1.rptfq2, (ftnlen)1);
-#line 22857 ""
- e_wsle();
-#line 22858 ""
- s_wsle(&io___1589);
-#line 22858 ""
- do_lio(&c__9, &c__1, "R? , ? not \"d\",\"r\",or\"b\",\"z\"; rptf"\
- "q2:", (ftnlen)37);
-#line 22858 ""
- do_lio(&c__9, &c__1, comget_1.rptfq2, (ftnlen)1);
-#line 22858 ""
- e_wsle();
-#line 22859 ""
- if (comlast_1.islast) {
-#line 22859 ""
- s_wsfe(&io___1590);
-/* Writing concatenation */
-#line 22859 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22859 ""
- i__6[1] = 8, a__4[1] = "Endpiece";
-#line 22859 ""
- s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9);
-#line 22859 ""
- do_fio(&c__1, ch__18, (ftnlen)9);
-#line 22859 ""
- e_wsfe();
-#line 22859 ""
- }
-#line 22860 ""
- }
-#line 22861 ""
- } else {
-#line 22862 ""
- s_wsfe(&io___1591);
-/* Writing concatenation */
-#line 22862 ""
- i__8[0] = 1, a__5[0] = all_1.sq;
-#line 22862 ""
- i__8[1] = 8, a__5[1] = "Endpiece";
-#line 22862 ""
- i__8[2] = 3, a__5[2] = rendq;
-#line 22862 ""
- s_cat(ch__14, a__5, i__8, &c__3, (ftnlen)12);
-#line 22862 ""
- do_fio(&c__1, ch__14, (ftnlen)12);
-#line 22862 ""
- e_wsfe();
-#line 22863 ""
- }
-#line 22864 ""
- if (! vshrink) {
-#line 22865 ""
- if (comlast_1.islast && combottop_1.bottopgap) {
-#line 22866 ""
- if (dabs(combottop_1.botamt) > 1e-6f) {
-#line 22867 ""
- if (combottop_1.botamt > 9.95f) {
-#line 22868 ""
- s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (ftnlen)10);
-#line 22869 ""
- } else if (combottop_1.botamt > 0.f) {
-#line 22870 ""
- s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (ftnlen)10);
-#line 22871 ""
- } else if (combottop_1.botamt > -9.95f) {
-#line 22872 ""
- s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (ftnlen)10);
-#line 22873 ""
- } else {
-#line 22874 ""
- s_copy(fmtq, "(a,f5.1,a)", (ftnlen)24, (ftnlen)10);
-#line 22875 ""
- }
-#line 22876 ""
- s_wsfe(&io___1592);
-/* Writing concatenation */
-#line 22876 ""
- i__5[0] = 1, a__3[0] = all_1.sq;
-#line 22876 ""
- i__5[1] = 4, a__3[1] = "null";
-#line 22876 ""
- i__5[2] = 1, a__3[2] = all_1.sq;
-#line 22876 ""
- i__5[3] = 5, a__3[3] = "vskip";
-#line 22876 ""
- s_cat(ch__15, a__3, i__5, &c__4, (ftnlen)11);
-#line 22876 ""
- do_fio(&c__1, ch__15, (ftnlen)11);
-#line 22876 ""
- do_fio(&c__1, (char *)&combottop_1.botamt, (ftnlen)sizeof(
- real));
-/* Writing concatenation */
-#line 22876 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22876 ""
- i__6[1] = 10, a__4[1] = "Internote%";
-#line 22876 ""
- s_cat(ch__32, a__4, i__6, &c__2, (ftnlen)11);
-#line 22876 ""
- do_fio(&c__1, ch__32, (ftnlen)11);
-#line 22876 ""
- e_wsfe();
-#line 22878 ""
- }
-#line 22879 ""
- }
-#line 22880 ""
- xnstbot = xnsttop[comnotes_1.ipage - 1] * etabot / etatop;
-#line 22881 ""
- if (xnstbot < 9.95f) {
-#line 22882 ""
- s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (ftnlen)10);
-#line 22883 ""
- } else {
-#line 22884 ""
- s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (ftnlen)10);
-#line 22885 ""
- }
-#line 22886 ""
- if (comlast_1.islast) {
-#line 22886 ""
- s_wsfe(&io___1593);
-/* Writing concatenation */
-#line 22886 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22886 ""
- i__6[1] = 5, a__4[1] = "vskip";
-#line 22886 ""
- s_cat(ch__25, a__4, i__6, &c__2, (ftnlen)6);
-#line 22886 ""
- do_fio(&c__1, ch__25, (ftnlen)6);
-#line 22886 ""
- do_fio(&c__1, (char *)&xnstbot, (ftnlen)sizeof(real));
-/* Writing concatenation */
-#line 22886 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22886 ""
- i__4[1] = 10, a__2[1] = "Interligne";
-#line 22886 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22886 ""
- i__4[3] = 5, a__2[3] = "eject";
-#line 22886 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22886 ""
- i__4[5] = 9, a__2[5] = "endmuflex";
-#line 22886 ""
- s_cat(ch__5, a__2, i__4, &c__6, (ftnlen)27);
-#line 22886 ""
- do_fio(&c__1, ch__5, (ftnlen)27);
-#line 22886 ""
- e_wsfe();
-#line 22886 ""
- }
-#line 22888 ""
- if (comlast_1.islast) {
-#line 22888 ""
- s_wsfe(&io___1594);
-/* Writing concatenation */
-#line 22888 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22888 ""
- i__6[1] = 3, a__4[1] = "bye";
-#line 22888 ""
- s_cat(ch__21, a__4, i__6, &c__2, (ftnlen)4);
-#line 22888 ""
- do_fio(&c__1, ch__21, (ftnlen)4);
-#line 22888 ""
- e_wsfe();
-#line 22888 ""
- }
-#line 22889 ""
- } else {
-#line 22890 ""
- if (comlast_1.islast) {
-#line 22890 ""
- s_wsfe(&io___1595);
-/* Writing concatenation */
-#line 22890 ""
- i__4[0] = 1, a__2[0] = all_1.sq;
-#line 22890 ""
- i__4[1] = 5, a__2[1] = "vfill";
-#line 22890 ""
- i__4[2] = 1, a__2[2] = all_1.sq;
-#line 22890 ""
- i__4[3] = 5, a__2[3] = "eject";
-#line 22890 ""
- i__4[4] = 1, a__2[4] = all_1.sq;
-#line 22890 ""
- i__4[5] = 9, a__2[5] = "endmuflex";
-#line 22890 ""
- s_cat(ch__43, a__2, i__4, &c__6, (ftnlen)22);
-#line 22890 ""
- do_fio(&c__1, ch__43, (ftnlen)22);
-#line 22890 ""
- e_wsfe();
-#line 22890 ""
- }
-#line 22892 ""
- if (comlast_1.islast) {
-#line 22892 ""
- s_wsfe(&io___1596);
-/* Writing concatenation */
-#line 22892 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22892 ""
- i__6[1] = 3, a__4[1] = "bye";
-#line 22892 ""
- s_cat(ch__21, a__4, i__6, &c__2, (ftnlen)4);
-#line 22892 ""
- do_fio(&c__1, ch__21, (ftnlen)4);
-#line 22892 ""
- e_wsfe();
-#line 22892 ""
- }
-#line 22893 ""
- }
-#line 22894 ""
- al__1.aerr = 0;
-#line 22894 ""
- al__1.aunit = 11;
-#line 22894 ""
- f_rew(&al__1);
-#line 22895 ""
- if (all_1.figbass) {
-#line 22896 ""
- s_wsfe(&io___1597);
-/* Writing concatenation */
-#line 22896 ""
- i__6[0] = 1, a__4[0] = all_1.sq;
-#line 22896 ""
- i__6[1] = 8, a__4[1] = "figdrop=";
-#line 22896 ""
- s_cat(ch__18, a__4, i__6, &c__2, (ftnlen)9);
-#line 22896 ""
- do_fio(&c__1, ch__18, (ftnlen)9);
-#line 22896 ""
- do_fio(&c__1, (char *)&all_1.ifigdr[(all_1.iline << 1) - 2], (ftnlen)
- sizeof(integer));
-/* Writing concatenation */
-#line 22896 ""
- i__8[0] = 1, a__5[0] = " ";
-#line 22896 ""
- i__8[1] = 1, a__5[1] = all_1.sq;
-#line 22896 ""
- i__8[2] = 8, a__5[2] = "figdtwo=";
-#line 22896 ""
- s_cat(ch__20, a__5, i__8, &c__3, (ftnlen)10);
-#line 22896 ""
- do_fio(&c__1, ch__20, (ftnlen)10);
-#line 22896 ""
- do_fio(&c__1, (char *)&all_1.ifigdr[(all_1.iline << 1) - 1], (ftnlen)
- sizeof(integer));
-/* Writing concatenation */
-#line 22896 ""
- i__11[0] = 1, a__8[0] = all_1.sq;
-#line 22896 ""
- i__11[1] = 4, a__8[1] = "fi}%";
-#line 22896 ""
- s_cat(ch__40, a__8, i__11, &c__2, (ftnlen)5);
-#line 22896 ""
- do_fio(&c__1, ch__40, (ftnlen)5);
-#line 22896 ""
- e_wsfe();
-#line 22899 ""
- al__1.aerr = 0;
-#line 22899 ""
- al__1.aunit = 14;
-#line 22899 ""
- f_rew(&al__1);
-#line 22900 ""
- }
-#line 22901 ""
- askfig_(pathnameq, &lpath, basenameq, &lbase, &all_1.figbass, &istype0, (
- ftnlen)40, (ftnlen)44);
-#line 22902 ""
- if (! (*optimize)) {
-#line 22903 ""
- s_wsle(&io___1598);
-#line 22903 ""
- e_wsle();
-#line 22904 ""
- s_wsle(&io___1599);
-/* Writing concatenation */
-#line 22904 ""
- i__5[0] = 8, a__3[0] = "Writing ";
-#line 22904 ""
- i__5[1] = lpath, a__3[1] = pathnameq;
-#line 22904 ""
- i__5[2] = lbase, a__3[2] = basenameq;
-#line 22904 ""
- i__5[3] = 4, a__3[3] = ".tex";
-#line 22904 ""
- s_cat(ch__44, a__3, i__5, &c__4, (ftnlen)96);
-#line 22904 ""
- do_lio(&c__9, &c__1, ch__44, lpath + 8 + lbase + 4);
-#line 22904 ""
- e_wsle();
-#line 22906 ""
- s_wsle(&io___1600);
-#line 22906 ""
- do_lio(&c__9, &c__1, "Done with second PMX pass.", (ftnlen)26);
-#line 22906 ""
- e_wsle();
-#line 22907 ""
- s_wsfe(&io___1601);
-/* Writing concatenation */
-#line 22907 ""
- i__5[0] = 8, a__3[0] = "Writing ";
-#line 22907 ""
- i__5[1] = lpath, a__3[1] = pathnameq;
-#line 22907 ""
- i__5[2] = lbase, a__3[2] = basenameq;
-#line 22907 ""
- i__5[3] = 4, a__3[3] = ".tex";
-#line 22907 ""
- s_cat(ch__44, a__3, i__5, &c__4, (ftnlen)96);
-#line 22907 ""
- do_fio(&c__1, ch__44, lpath + 8 + lbase + 4);
-#line 22907 ""
- e_wsfe();
-#line 22909 ""
- s_wsfe(&io___1602);
-#line 22909 ""
- do_fio(&c__1, " Done with second PMX pass. Now run TeX", (ftnlen)40);
-#line 22909 ""
- e_wsfe();
-#line 22910 ""
- }
-#line 22911 ""
- return 0;
-} /* pmxb_ */
-
-/* Subroutine */ int poestats_(integer *nsyst, real *poe, real *poebar, real *
- devnorm)
-{
- /* System generated locals */
- integer i__1;
- real r__1;
-
- /* Builtin functions */
- double sqrt(doublereal);
-
- /* Local variables */
- static real sumx;
- static integer isyst;
- static real sumxx;
-
-
-/* Compute avg. & norm. std. dev. of poe. */
-
-#line 22919 ""
- /* Parameter adjustments */
-#line 22919 ""
- --poe;
-#line 22919 ""
-
-#line 22919 ""
- /* Function Body */
-#line 22919 ""
- sumx = 0.f;
-#line 22920 ""
- sumxx = 0.f;
-#line 22921 ""
- i__1 = *nsyst;
-#line 22921 ""
- for (isyst = 1; isyst <= i__1; ++isyst) {
-#line 22922 ""
- sumx += poe[isyst];
-/* Computing 2nd power */
-#line 22923 ""
- r__1 = poe[isyst];
-#line 22923 ""
- sumxx += r__1 * r__1;
-#line 22924 ""
-/* L1: */
-#line 22924 ""
- }
-/* Computing 2nd power */
-#line 22925 ""
- r__1 = sumx;
-#line 22925 ""
- *devnorm = sqrt(*nsyst * sumxx / (r__1 * r__1) - 1);
-#line 22926 ""
- *poebar = sumx / *nsyst;
-#line 22927 ""
- return 0;
-} /* poestats_ */
-
-/* Subroutine */ int precrd_(integer *ivx, integer *ip, integer *nolevm,
- integer *nacc, integer *ipl, integer *irest, char *udq, logical *
- twooftwo, integer *icashft, ftnlen udq_len)
-{
- /* System generated locals */
- integer i__1, i__2, i__3;
-
- /* Builtin functions */
- integer lbit_shift(integer, integer), s_wsle(cilist *), e_wsle(void),
- do_lio(integer *, integer *, char *, ftnlen);
-
- /* Local variables */
- extern integer igetbits_(integer *, integer *, integer *);
- static integer i__, levminacc, levmaxacc, ip1, ile, ivx1, iold, ilev;
- static logical is2nd;
- extern /* Subroutine */ int stop1_(void);
- static integer kicrd[10], nolev, iaccid, naccid, iorder, icrdot0;
- extern /* Subroutine */ int crdaccs_(integer *, integer *, integer *,
- integer *, integer *, integer *, integer *, integer *, integer *,
- logical *, integer *);
- static integer levtabl[88];
- extern /* Subroutine */ int setbits_(integer *, integer *, integer *,
- integer *);
-
- /* Fortran I/O blocks */
- static cilist io___1610 = { 0, 6, 0, 0, 0 };
- static cilist io___1611 = { 0, 6, 0, 0, 0 };
- static cilist io___1622 = { 0, 6, 0, 0, 0 };
- static cilist io___1623 = { 0, 6, 0, 0, 0 };
-
-
-
-/* Analyzes chords, data to be used with slurs on chords and plain chords. */
-/* Check for 2nds, shift notes if neccesary. */
-/* ipl(10) chord present */
-/* irest(20) set if any note is right shifted */
-/* irest(27) set if any note is left shifted */
-/* ipl(8|9) left|right shift main note */
-/* icrdat(23|24) ditto chord note */
-/* udq is updown-ness, needed to analyze 2nds. */
-/* 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 22949 ""
- for (i__ = 1; i__ <= 88; ++i__) {
-#line 22950 ""
- levtabl[i__ - 1] = 0;
-#line 22951 ""
-/* L11: */
-#line 22951 ""
- }
-#line 22952 ""
- i__1 = comtrill_1.ncrd;
-#line 22952 ""
- for (comtrill_1.icrd1 = 1; comtrill_1.icrd1 <= i__1; ++comtrill_1.icrd1) {
-#line 22953 ""
- 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 22955 ""
- ip1 = 255 & comtrill_1.icrdat[comtrill_1.icrd1 - 1];
-#line 22956 ""
- if (ip1 == *ip && ivx1 == *ivx) {
-#line 22956 ""
- goto L2;
-#line 22956 ""
- }
-#line 22957 ""
-/* L1: */
-#line 22957 ""
- }
-#line 22958 ""
- s_wsle(&io___1610);
-#line 22958 ""
- e_wsle();
-#line 22959 ""
- s_wsle(&io___1611);
-#line 22959 ""
- do_lio(&c__9, &c__1, "Cannot find first chord note in precrd. Send sourc"\
- "e to Dr. Don!", (ftnlen)63);
-#line 22959 ""
- e_wsle();
-#line 22961 ""
- stop1_();
-#line 22962 ""
-L2:
-#line 22963 ""
- comtrill_1.maxlev = *nolevm;
-#line 22964 ""
- comtrill_1.minlev = *nolevm;
-#line 22965 ""
- levtabl[*nolevm - 1] = -1;
-#line 22966 ""
- is2nd = FALSE_;
-#line 22967 ""
- naccid = 0;
-#line 22968 ""
- levmaxacc = -100;
-#line 22969 ""
- levminacc = 1000;
-
-/* Check 1st 3 bits of nacc for accid on main note of chord. */
-
-#line 22973 ""
- if ((7 & *nacc) > 0) {
-#line 22974 ""
- 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 22979 ""
- kicrd[0] = 0;
-#line 22980 ""
- levmaxacc = *nolevm;
-#line 22981 ""
- levminacc = *nolevm;
-
-/* Start the level-ranking */
-
-#line 22985 ""
- icrdot0 = 1;
-#line 22986 ""
- }
-#line 22987 ""
- i__1 = comtrill_1.ncrd;
-#line 22987 ""
- for (comtrill_1.icrd2 = comtrill_1.icrd1; comtrill_1.icrd2 <= i__1;
- ++comtrill_1.icrd2) {
-#line 22988 ""
- nolev = igetbits_(&comtrill_1.icrdat[comtrill_1.icrd2 - 1], &c__7, &
- c__12);
-#line 22989 ""
- levtabl[nolev - 1] = comtrill_1.icrd2;
-#line 22990 ""
- comtrill_1.maxlev = max(comtrill_1.maxlev,nolev);
-#line 22991 ""
- comtrill_1.minlev = min(comtrill_1.minlev,nolev);
-
-/* Check for accidental */
-
-#line 22995 ""
- if (bit_test(comtrill_1.icrdat[comtrill_1.icrd2 - 1],19)) {
-#line 22996 ""
- ++naccid;
-#line 22997 ""
- levmaxacc = max(levmaxacc,nolev);
-#line 22998 ""
- levminacc = min(levminacc,nolev);
-
-/* Add this icrd to list of values for notes with accid's. */
-
-#line 23002 ""
- kicrd[naccid - 1] = comtrill_1.icrd2;
-#line 23003 ""
- if (! bit_test(*nacc,28)) {
-
-/* Order not forced, so get the level-ranking, top down */
-
-#line 23007 ""
- iorder = 1;
-#line 23008 ""
- i__2 = naccid - 1;
-#line 23008 ""
- for (iaccid = 1; iaccid <= i__2; ++iaccid) {
-#line 23009 ""
- if (kicrd[iaccid - 1] == 0) {
-#line 23010 ""
- if (*nolevm > nolev) {
-#line 23011 ""
- ++iorder;
-#line 23012 ""
- } else {
-#line 23013 ""
- ++icrdot0;
-#line 23014 ""
- }
-#line 23015 ""
- } else {
-#line 23016 ""
- if (igetbits_(&comtrill_1.icrdat[kicrd[iaccid - 1] -
- 1], &c__7, &c__12) > nolev) {
-#line 23018 ""
- ++iorder;
-#line 23019 ""
- } else {
-#line 23020 ""
- iold = igetbits_(&comtrill_1.icrdot[kicrd[iaccid
- - 1] - 1], &c__3, &c__27);
-#line 23021 ""
- i__3 = iold + 1;
-#line 23021 ""
- setbits_(&comtrill_1.icrdot[kicrd[iaccid - 1] - 1]
- , &c__3, &c__27, &i__3);
-#line 23022 ""
- }
-#line 23023 ""
- }
-#line 23024 ""
-/* L12: */
-#line 23024 ""
- }
-#line 23025 ""
- setbits_(&comtrill_1.icrdot[comtrill_1.icrd2 - 1], &c__3, &
- c__27, &iorder);
-#line 23026 ""
- }
-#line 23027 ""
- }
-
-/* Exit loop if last note in this chord */
-
-#line 23031 ""
- if (comtrill_1.icrd2 == comtrill_1.ncrd) {
-#line 23031 ""
- goto L4;
-#line 23031 ""
- }
-#line 23032 ""
- 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 23032 ""
- goto L4;
-#line 23032 ""
- }
-/* * igetbits(icrdat(icrd2+1),4,8) .ne. ivx) go to 4 */
-#line 23036 ""
-/* L3: */
-#line 23036 ""
- }
-#line 23037 ""
- s_wsle(&io___1622);
-#line 23037 ""
- e_wsle();
-#line 23038 ""
- s_wsle(&io___1623);
-#line 23038 ""
- do_lio(&c__9, &c__1, "Failed to find last chord note. Send source to Dr."\
- " Don!", (ftnlen)55);
-#line 23038 ""
- e_wsle();
-#line 23039 ""
- stop1_();
-#line 23040 ""
-L4:
-
-/* Now icrd1, icrd2 define range of icrd for this chord. */
-
-/* Bypass autos-shifting if any manual shifts are present */
-
-#line 23046 ""
- if (bit_test(*irest,20) || bit_test(*irest,27)) {
-#line 23046 ""
- goto L10;
-#line 23046 ""
- }
-
-/* Check for 2nds */
-
-#line 23050 ""
- for (ilev = 1; ilev <= 87; ++ilev) {
-#line 23051 ""
- if (levtabl[ilev - 1] != 0 && levtabl[ilev] != 0) {
-
-/* There is at least one 2nd.. */
-
-#line 23055 ""
- if (*(unsigned char *)udq == 'u') {
-
-/* Upstem. Start with 2nd just found and go up, rt-shifting upper */
-/* member of each pair */
-
-#line 23060 ""
- ile = ilev;
-
-/* Set main-note flag for ANY right-shift */
-
-#line 23064 ""
- *irest = bit_set(*irest,20);
-#line 23065 ""
-L7:
-#line 23066 ""
- 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 23072 ""
- *nacc = bit_set(*nacc,30);
-#line 23073 ""
- comtrill_1.icrdat[levtabl[ile - 1] - 1] = bit_set(
- comtrill_1.icrdat[levtabl[ile - 1] - 1],24);
-#line 23074 ""
- } else {
-
-/* Upper member is chord note, must be rt-shifted */
-
-#line 23078 ""
- comtrill_1.icrdat[levtabl[ile] - 1] = bit_set(
- comtrill_1.icrdat[levtabl[ile] - 1],24);
-#line 23079 ""
- }
-#line 23080 ""
- ++ile;
-#line 23081 ""
-L8:
-#line 23082 ""
- ++ile;
-#line 23083 ""
- if (ile < 87) {
-#line 23084 ""
- if (levtabl[ile - 1] != 0 && levtabl[ile] != 0) {
-#line 23085 ""
- goto L7;
-#line 23086 ""
- } else {
-#line 23087 ""
- goto L8;
-#line 23088 ""
- }
-#line 23089 ""
- }
-#line 23090 ""
- goto L10;
-#line 23091 ""
- } 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 23096 ""
- ile = 88;
-
-/* Set main-note flag for ANY right-shift */
-
-#line 23100 ""
- *irest = bit_set(*irest,27);
-#line 23101 ""
-L9:
-#line 23102 ""
- if (levtabl[ile - 1] != 0 && levtabl[ile - 2] != 0) {
-#line 23103 ""
- if (levtabl[ile - 2] < 0) {
-/* ipl = ibset(ipl,8) */
-
-/* Dnstem, & lower member is main so must be left-shifted. This would move */
-/* 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 23110 ""
- *nacc = bit_set(*nacc,31);
-#line 23111 ""
- comtrill_1.icrdat[levtabl[ile - 1] - 1] = bit_set(
- comtrill_1.icrdat[levtabl[ile - 1] - 1],23);
-#line 23112 ""
- } else {
-
-/* Lower member is chord note, must be shifted */
-
-#line 23116 ""
- comtrill_1.icrdat[levtabl[ile - 2] - 1] = bit_set(
- comtrill_1.icrdat[levtabl[ile - 2] - 1],23);
-#line 23118 ""
- }
-#line 23119 ""
- --ile;
-#line 23120 ""
- }
-#line 23121 ""
- --ile;
-#line 23122 ""
- if (ile >= ilev + 1) {
-#line 23122 ""
- goto L9;
-#line 23122 ""
- }
-#line 23123 ""
- goto L10;
-#line 23124 ""
- }
-#line 23125 ""
- }
-#line 23126 ""
-/* L5: */
-#line 23126 ""
- }
-#line 23127 ""
-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 23132 ""
- if (naccid >= 1) {
-#line 23132 ""
- crdaccs_(nacc, ipl, irest, &naccid, kicrd, nolevm, &levmaxacc, &
- levminacc, &icrdot0, twooftwo, icashft);
-#line 23132 ""
- }
-#line 23134 ""
- return 0;
-} /* precrd_ */
-
-/* Subroutine */ int printl_(char *string, ftnlen string_len)
-{
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void), s_wsfe(cilist *), do_fio(integer *, char *, ftnlen),
- e_wsfe(void);
-
- /* Fortran I/O blocks */
- static cilist io___1626 = { 0, 6, 0, 0, 0 };
- static cilist io___1627 = { 0, 15, 0, "(a)", 0 };
-
-
-
-/* Send string to console and to log file */
-
-#line 23141 ""
- s_wsle(&io___1626);
-#line 23141 ""
- do_lio(&c__9, &c__1, string, string_len);
-#line 23141 ""
- e_wsle();
-#line 23142 ""
- s_wsfe(&io___1627);
-#line 23142 ""
- do_fio(&c__1, string, string_len);
-#line 23142 ""
- e_wsfe();
-#line 23143 ""
- return 0;
-} /* printl_ */
-
-/* Subroutine */ int putarp_(real *tnow, integer *iv, integer *ip, integer *
- nolev, integer *ncm, char *soutq, integer *lsout, ftnlen soutq_len)
-{
- /* Initialized data */
-
- static char symq[8*2] = "raisearp" "arpeggio";
-
- /* System generated locals */
- address a__1[2], a__2[3], a__3[4];
- integer i__1, i__2[2], i__3[3], i__4[4];
- real r__1;
- char ch__1[1], ch__2[1];
- icilist ici__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- , s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
- integer i_nint(real *);
-
- /* Local variables */
- static logical isarpshift;
- static integer iiv, nstaffshift;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer iarp, isym, iarps, lnote;
- extern /* Subroutine */ int addstr_(char *, integer *, char *, integer *,
- ftnlen, ftnlen);
- static integer levbot, ilvert, invert;
- static char notexq[79];
- static integer iivivx1;
-
- /* Fortran I/O blocks */
- static icilist io___1633 = { 0, notexq+9, 0, "(f3.1,a2)", 5, 1 };
- static cilist io___1639 = { 0, 6, 0, 0, 0 };
- static cilist io___1640 = { 0, 6, 0, 0, 0 };
-
-
-
-/* NOTE iv in arg list is really ivx, referring to voice rather than staff. */
-
-/* Find which iarp, if any */
-
-#line 23164 ""
- i__1 = comarp_1.narp;
-#line 23164 ""
- for (iarp = 1; iarp <= i__1; ++iarp) {
-#line 23165 ""
- if ((r__1 = *tnow - comarp_1.tar[iarp - 1], dabs(r__1)) <
- comtol_1.tol) {
-#line 23165 ""
- goto L2;
-#line 23165 ""
- }
-#line 23166 ""
-/* L1: */
-#line 23166 ""
- }
-
-/* If here, this is the *first* call for this arp. */
-
-#line 23170 ""
- ++comarp_1.narp;
-#line 23171 ""
- comarp_1.tar[comarp_1.narp - 1] = *tnow + comtol_1.tol * .5f;
-#line 23172 ""
- comarp_1.ivar1[comarp_1.narp - 1] = *iv;
-#line 23173 ""
- comarp_1.ipar1[comarp_1.narp - 1] = *ip;
-#line 23174 ""
- comarp_1.levar1[comarp_1.narp - 1] = *nolev;
-#line 23175 ""
- comarp_1.ncmar1[comarp_1.narp - 1] = *ncm;
-#line 23176 ""
- return 0;
-#line 23177 ""
-L2:
-
-/* If here, this is *second* call at this time, narp points to values from 1st. */
-
-/* Check for shift. Set IsArpShift and iarps */
-
-#line 23183 ""
- i__1 = comarpshift_1.numarpshift;
-#line 23183 ""
- for (iarps = 1; iarps <= i__1; ++iarps) {
-#line 23184 ""
- if (comarpshift_1.ivarpshift[iarps - 1] == comarp_1.ivar1[iarp - 1] &&
- comarpshift_1.iparpshift[iarps - 1] == comarp_1.ipar1[iarp -
- 1]) {
-#line 23186 ""
- isarpshift = TRUE_;
-/* Writing concatenation */
-#line 23187 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 23187 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 23187 ""
- i__2[1] = 8, a__1[1] = "loffset{";
-#line 23187 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 23188 ""
- s_wsfi(&io___1633);
-#line 23188 ""
- do_fio(&c__1, (char *)&comarpshift_1.arpshift[iarps - 1], (ftnlen)
- sizeof(real));
-#line 23188 ""
- do_fio(&c__1, "}{", (ftnlen)2);
-#line 23188 ""
- e_wsfi();
-#line 23189 ""
- lnote = 14;
-#line 23190 ""
- goto L4;
-#line 23191 ""
- }
-#line 23192 ""
-/* L3: */
-#line 23192 ""
- }
-#line 23193 ""
- isarpshift = FALSE_;
-#line 23194 ""
- lnote = 0;
-#line 23195 ""
-L4:
-#line 23196 ""
- if (*iv == comarp_1.ivar1[iarp - 1]) {
-
-/* Arp is in a single voice. */
-
-/* Computing MIN */
-#line 23200 ""
- i__1 = comarp_1.levar1[iarp - 1];
-#line 23200 ""
- levbot = min(i__1,*nolev) - *ncm + 3;
-#line 23201 ""
- invert = (i__1 = comarp_1.levar1[iarp - 1] - *nolev, abs(i__1)) + 1;
-#line 23202 ""
- } 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 23208 ""
- for (iiv = 1; iiv <= 24; ++iiv) {
-#line 23209 ""
- 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 23211 ""
- iivivx1 = iiv;
-#line 23212 ""
- goto L6;
-#line 23213 ""
- }
-#line 23214 ""
-/* L5: */
-#line 23214 ""
- }
-#line 23215 ""
- s_wsle(&io___1639);
-#line 23215 ""
- do_lio(&c__9, &c__1, "Screwup#1 in putarp", (ftnlen)19);
-#line 23215 ""
- e_wsle();
-#line 23216 ""
- s_stop("", (ftnlen)0);
-#line 23217 ""
-L6:
-#line 23218 ""
- for (iiv = 1; iiv <= 24; ++iiv) {
-#line 23219 ""
- if (commvl_1.ivmx[iiv - 1] == *iv || commvl_1.nvmx[iiv - 1] == 2
- && commvl_1.ivmx[iiv + 23] == *iv) {
-#line 23219 ""
- goto L8;
-#line 23219 ""
- }
-
-/* Found iv for both voices (iivivx1, iiv), done looking */
-
-#line 23224 ""
-/* L7: */
-#line 23224 ""
- }
-#line 23225 ""
- s_wsle(&io___1640);
-#line 23225 ""
- do_lio(&c__9, &c__1, "Screwup#2 in putarp", (ftnlen)19);
-#line 23225 ""
- e_wsle();
-#line 23226 ""
- s_stop("", (ftnlen)0);
-#line 23227 ""
-L8:
-#line 23228 ""
- if (iivivx1 == iiv) {
-#line 23229 ""
- nstaffshift = 0;
-#line 23230 ""
- } else {
-#line 23231 ""
- r__1 = comarp_1.xinsnow * 2;
-#line 23231 ""
- nstaffshift = -i_nint(&r__1);
-#line 23232 ""
- }
-/* levbot = -nint(2*xinsnow)+3+levar1(iarp)-ncmar1(iarp) */
-#line 23234 ""
- levbot = nstaffshift + 3 + comarp_1.levar1[iarp - 1] -
- comarp_1.ncmar1[iarp - 1];
-#line 23235 ""
- invert = -levbot + 4 + *nolev - *ncm;
-#line 23236 ""
- }
-
-/* isym will be (1,2) if invert is (even,odd). If even, raise .5\internote */
-
-#line 23240 ""
- isym = invert % 2 + 1;
-#line 23241 ""
- ilvert = (invert + 1) / 2;
-#line 23242 ""
- if (levbot >= 0 && levbot <= 9) {
-
-/* Single digit */
-
-#line 23246 ""
- if (! isarpshift) {
-/* Writing concatenation */
-#line 23247 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 23247 ""
- i__3[0] = 1, a__2[0] = ch__1;
-#line 23247 ""
- i__3[1] = 8, a__2[1] = symq + (isym - 1 << 3);
-#line 23247 ""
- i__1 = levbot + 48;
-#line 23247 ""
- chax_(ch__2, (ftnlen)1, &i__1);
-#line 23247 ""
- i__3[2] = 1, a__2[2] = ch__2;
-#line 23247 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79);
-#line 23248 ""
- } else {
-/* Writing concatenation */
-#line 23249 ""
- i__4[0] = lnote, a__3[0] = notexq;
-#line 23249 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 23249 ""
- i__4[1] = 1, a__3[1] = ch__1;
-#line 23249 ""
- i__4[2] = 8, a__3[2] = symq + (isym - 1 << 3);
-#line 23249 ""
- i__1 = levbot + 48;
-#line 23249 ""
- chax_(ch__2, (ftnlen)1, &i__1);
-#line 23249 ""
- i__4[3] = 1, a__3[3] = ch__2;
-#line 23249 ""
- s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79);
-#line 23251 ""
- }
-#line 23252 ""
- lnote += 10;
-#line 23253 ""
- } else {
-#line 23254 ""
- if (! isarpshift) {
-/* Writing concatenation */
-#line 23255 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 23255 ""
- i__3[0] = 1, a__2[0] = ch__1;
-#line 23255 ""
- i__3[1] = 8, a__2[1] = symq + (isym - 1 << 3);
-#line 23255 ""
- i__3[2] = 1, a__2[2] = "{";
-#line 23255 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)79);
-#line 23256 ""
- } else {
-/* Writing concatenation */
-#line 23257 ""
- i__4[0] = lnote, a__3[0] = notexq;
-#line 23257 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 23257 ""
- i__4[1] = 1, a__3[1] = ch__1;
-#line 23257 ""
- i__4[2] = 8, a__3[2] = symq + (isym - 1 << 3);
-#line 23257 ""
- i__4[3] = 1, a__3[3] = "{";
-#line 23257 ""
- s_cat(notexq, a__3, i__4, &c__4, (ftnlen)79);
-#line 23258 ""
- }
-#line 23259 ""
- lnote += 10;
-#line 23260 ""
- if (levbot >= -9) {
-
-/* Need two spaces for number */
-
-#line 23264 ""
- i__1 = lnote;
-#line 23264 ""
- ici__1.icierr = 0;
-#line 23264 ""
- ici__1.icirnum = 1;
-#line 23264 ""
- ici__1.icirlen = lnote + 3 - i__1;
-#line 23264 ""
- ici__1.iciunit = notexq + i__1;
-#line 23264 ""
- ici__1.icifmt = "(i2,a1)";
-#line 23264 ""
- s_wsfi(&ici__1);
-#line 23264 ""
- do_fio(&c__1, (char *)&levbot, (ftnlen)sizeof(integer));
-#line 23264 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 23264 ""
- e_wsfi();
-#line 23265 ""
- lnote += 3;
-#line 23266 ""
- } else {
-#line 23267 ""
- i__1 = lnote;
-#line 23267 ""
- ici__1.icierr = 0;
-#line 23267 ""
- ici__1.icirnum = 1;
-#line 23267 ""
- ici__1.icirlen = lnote + 4 - i__1;
-#line 23267 ""
- ici__1.iciunit = notexq + i__1;
-#line 23267 ""
- ici__1.icifmt = "(i3,a1)";
-#line 23267 ""
- s_wsfi(&ici__1);
-#line 23267 ""
- do_fio(&c__1, (char *)&levbot, (ftnlen)sizeof(integer));
-#line 23267 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 23267 ""
- e_wsfi();
-#line 23268 ""
- lnote += 4;
-#line 23269 ""
- }
-#line 23270 ""
- }
-/* if (ilvert .le. 9) then */
-/* call addstr(notexq(1:lnote)//chax(48+ilvert),lnote+1, */
-/* * soutq,lsout) */
-/* else */
-/* write(notexq(lnote+1:lnote+4),'(a1,i2,a1)')'{',ilvert,'}' */
-/* call addstr(notexq(1:lnote+4),lnote+4,soutq,lsout) */
-/* end if */
-#line 23279 ""
- if (ilvert > 9) {
-#line 23280 ""
- i__1 = lnote;
-#line 23280 ""
- ici__1.icierr = 0;
-#line 23280 ""
- ici__1.icirnum = 1;
-#line 23280 ""
- ici__1.icirlen = lnote + 4 - i__1;
-#line 23280 ""
- ici__1.iciunit = notexq + i__1;
-#line 23280 ""
- ici__1.icifmt = "(a1,i2,a1)";
-#line 23280 ""
- s_wsfi(&ici__1);
-#line 23280 ""
- do_fio(&c__1, "{", (ftnlen)1);
-#line 23280 ""
- do_fio(&c__1, (char *)&ilvert, (ftnlen)sizeof(integer));
-#line 23280 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 23280 ""
- e_wsfi();
-#line 23281 ""
- lnote += 4;
-#line 23282 ""
- } else {
-/* Writing concatenation */
-#line 23283 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 23283 ""
- i__1 = ilvert + 48;
-#line 23283 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 23283 ""
- i__2[1] = 1, a__1[1] = ch__1;
-#line 23283 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 23284 ""
- ++lnote;
-#line 23285 ""
- }
-#line 23286 ""
- if (isarpshift) {
-/* Writing concatenation */
-#line 23287 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 23287 ""
- i__2[1] = 1, a__1[1] = "}";
-#line 23287 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 23288 ""
- ++lnote;
-#line 23289 ""
- }
-#line 23290 ""
- addstr_(notexq, &lnote, soutq, lsout, lnote, (ftnlen)80);
-
-/* cancel out the stored time, to permit two arps at same time! */
-
-#line 23294 ""
- comarp_1.tar[iarp - 1] = -1.f;
-#line 23295 ""
- return 0;
-} /* putarp_ */
-
-/* Subroutine */ int putast_(real *elask, integer *indxask, char *outq,
- ftnlen outq_len)
-{
- /* System generated locals */
- address a__1[3];
- integer i__1, i__2[3];
- icilist ici__1;
-
- /* Builtin functions */
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen), s_cat(char *,
- char **, integer *, integer *, ftnlen);
-
- /* Local variables */
- static integer lp;
- static char tag[129], fmtq[9];
-
- /* Fortran I/O blocks */
- static icilist io___1646 = { 0, fmtq, 0, "(a5,i1,a3)", 9, 1 };
-
-
-#line 23300 ""
- if (*elask >= 0.f) {
-#line 23301 ""
- if (*elask < .995f) {
-#line 23302 ""
- lp = 3;
-#line 23303 ""
- } else if (*elask < 9.995f) {
-#line 23304 ""
- lp = 4;
-#line 23305 ""
- } else {
-#line 23306 ""
- lp = 5;
-#line 23307 ""
- }
-#line 23308 ""
- s_wsfi(&io___1646);
-#line 23308 ""
- do_fio(&c__1, "(a2,f", (ftnlen)5);
-#line 23308 ""
- do_fio(&c__1, (char *)&lp, (ftnlen)sizeof(integer));
-#line 23308 ""
- do_fio(&c__1, ".2)", (ftnlen)3);
-#line 23308 ""
- e_wsfi();
-#line 23309 ""
- } else {
-#line 23310 ""
- lp = 5;
-#line 23311 ""
- s_copy(fmtq, "(a2,f5.1)", (ftnlen)9, (ftnlen)9);
-#line 23312 ""
- }
-
-/* Overwrite as follows: ...xyz*ask *lmnop... -> */
-/* ...xyz*ast{.nn}*lmnop... */
-/* ...xyz*ast{n.nn}*lmnop... */
-/* ...xyz*ast{nn.nn}*lmnop... */
-/* or for negative, ...xyz*ast{-nn.n}*lmnop... */
-#line 23319 ""
- i__1 = *indxask + 8;
-#line 23319 ""
- s_copy(tag, outq + i__1, (ftnlen)129, 129 - i__1);
-#line 23320 ""
- i__1 = *indxask + 2;
-#line 23320 ""
- ici__1.icierr = 0;
-#line 23320 ""
- ici__1.icirnum = 1;
-#line 23320 ""
- ici__1.icirlen = 129 - i__1;
-#line 23320 ""
- ici__1.iciunit = outq + i__1;
-#line 23320 ""
- ici__1.icifmt = fmtq;
-#line 23320 ""
- s_wsfi(&ici__1);
-#line 23320 ""
- do_fio(&c__1, "t{", (ftnlen)2);
-#line 23320 ""
- do_fio(&c__1, (char *)&(*elask), (ftnlen)sizeof(real));
-#line 23320 ""
- e_wsfi();
-/* Writing concatenation */
-#line 23321 ""
- i__2[0] = *indxask + 4 + lp, a__1[0] = outq;
-#line 23321 ""
- i__2[1] = 1, a__1[1] = "}";
-#line 23321 ""
- i__2[2] = 129, a__1[2] = tag;
-#line 23321 ""
- s_cat(outq, a__1, i__2, &c__3, (ftnlen)129);
-#line 23322 ""
- return 0;
-} /* putast_ */
-
-/* Subroutine */ int putcb_(integer *ivx, integer *ip, char *notexq, integer *
- lnote, ftnlen notexq_len)
-{
- /* System generated locals */
- address a__1[2];
- integer i__1, i__2[2];
- char ch__1[1];
- icilist ici__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_stop(char *, ftnlen), s_copy(char *, char *,
- ftnlen, ftnlen), s_cat(char *, char **, integer *, integer *,
- ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
-
- /* Local variables */
- extern integer igetbits_(integer *, integer *, integer *);
- static integer ibc, ipbc, ivxbc;
- static real hshft;
- static integer ihshft, ivshft;
- extern /* Subroutine */ int printl_(char *, ftnlen);
-
-/* ivxip = ivx+16*ip */
-#line 23329 ""
- i__1 = comcb_1.nbc;
-#line 23329 ""
- 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 23333 ""
- ivxbc = (15 & comcb_1.ibcdata[ibc - 1]) + (igetbits_(&comcb_1.ibcdata[
- ibc - 1], &c__1, &c__28) << 4);
-#line 23334 ""
- ipbc = igetbits_(&comcb_1.ibcdata[ibc - 1], &c__8, &c__4);
-#line 23335 ""
- if (*ivx == ivxbc && *ip == ipbc) {
-#line 23335 ""
- goto L2;
-#line 23335 ""
- }
-#line 23336 ""
-/* L1: */
-#line 23336 ""
- }
-#line 23337 ""
- printl_("Error in putbc, Call Dr. Don", (ftnlen)28);
-#line 23338 ""
- s_stop("", (ftnlen)0);
-#line 23339 ""
-L2:
-#line 23340 ""
- if (bit_test(comcb_1.ibcdata[ibc - 1],27)) {
-#line 23341 ""
- *lnote = 8;
-#line 23342 ""
- s_copy(notexq, "\\pbreath", (ftnlen)79, (ftnlen)8);
-#line 23343 ""
- } else {
-#line 23344 ""
- *lnote = 9;
-#line 23345 ""
- s_copy(notexq, "\\pcaesura", (ftnlen)79, (ftnlen)9);
-#line 23346 ""
- }
-#line 23347 ""
- ivshft = igetbits_(&comcb_1.ibcdata[ibc - 1], &c__6, &c__13);
-/* ?? ivshft = igetbits(ibcdata(ibc),6,13)-32 */
-#line 23349 ""
- if (ivshft > 0) {
-#line 23349 ""
- ivshft += -32;
-#line 23349 ""
- }
-#line 23350 ""
- if (ivshft < 0 || ivshft > 9) {
-/* Writing concatenation */
-#line 23351 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 23351 ""
- i__2[1] = 1, a__1[1] = "{";
-#line 23351 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 23352 ""
- ++(*lnote);
-#line 23353 ""
- if (ivshft < -9) {
-#line 23354 ""
- i__1 = *lnote;
-#line 23354 ""
- ici__1.icierr = 0;
-#line 23354 ""
- ici__1.icirnum = 1;
-#line 23354 ""
- ici__1.icirlen = *lnote + 3 - i__1;
-#line 23354 ""
- ici__1.iciunit = notexq + i__1;
-#line 23354 ""
- ici__1.icifmt = "(i3)";
-#line 23354 ""
- s_wsfi(&ici__1);
-#line 23354 ""
- do_fio(&c__1, (char *)&ivshft, (ftnlen)sizeof(integer));
-#line 23354 ""
- e_wsfi();
-#line 23355 ""
- *lnote += 3;
-#line 23356 ""
- } else {
-#line 23357 ""
- i__1 = *lnote;
-#line 23357 ""
- ici__1.icierr = 0;
-#line 23357 ""
- ici__1.icirnum = 1;
-#line 23357 ""
- ici__1.icirlen = *lnote + 2 - i__1;
-#line 23357 ""
- ici__1.iciunit = notexq + i__1;
-#line 23357 ""
- ici__1.icifmt = "(i2)";
-#line 23357 ""
- s_wsfi(&ici__1);
-#line 23357 ""
- do_fio(&c__1, (char *)&ivshft, (ftnlen)sizeof(integer));
-#line 23357 ""
- e_wsfi();
-#line 23358 ""
- *lnote += 2;
-#line 23359 ""
- }
-/* Writing concatenation */
-#line 23360 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 23360 ""
- i__2[1] = 1, a__1[1] = "}";
-#line 23360 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 23361 ""
- ++(*lnote);
-#line 23362 ""
- } else {
-/* Writing concatenation */
-#line 23363 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 23363 ""
- *(unsigned char *)&ch__1[0] = ivshft + 48;
-#line 23363 ""
- i__2[1] = 1, a__1[1] = ch__1;
-#line 23363 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 23364 ""
- ++(*lnote);
-#line 23365 ""
- }
-#line 23366 ""
- ihshft = igetbits_(&comcb_1.ibcdata[ibc - 1], &c__8, &c__19);
-#line 23367 ""
- if (ihshft == 0) {
-/* Writing concatenation */
-#line 23368 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 23368 ""
- i__2[1] = 1, a__1[1] = "0";
-#line 23368 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 23369 ""
- ++(*lnote);
-#line 23370 ""
- } else {
-#line 23371 ""
- hshft = (ihshft - 128) * .1f;
-
-/* -12.8<hshft<12.8 */
-
-/* Writing concatenation */
-#line 23375 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 23375 ""
- i__2[1] = 1, a__1[1] = "{";
-#line 23375 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 23376 ""
- ++(*lnote);
-#line 23377 ""
- if (hshft < -9.95f) {
-#line 23378 ""
- i__1 = *lnote;
-#line 23378 ""
- ici__1.icierr = 0;
-#line 23378 ""
- ici__1.icirnum = 1;
-#line 23378 ""
- ici__1.icirlen = *lnote + 5 - i__1;
-#line 23378 ""
- ici__1.iciunit = notexq + i__1;
-#line 23378 ""
- ici__1.icifmt = "(f5.1)";
-#line 23378 ""
- s_wsfi(&ici__1);
-#line 23378 ""
- do_fio(&c__1, (char *)&hshft, (ftnlen)sizeof(real));
-#line 23378 ""
- e_wsfi();
-#line 23379 ""
- *lnote += 5;
-#line 23380 ""
- } else if (hshft < -.05f || hshft > 9.95f) {
-#line 23381 ""
- i__1 = *lnote;
-#line 23381 ""
- ici__1.icierr = 0;
-#line 23381 ""
- ici__1.icirnum = 1;
-#line 23381 ""
- ici__1.icirlen = *lnote + 4 - i__1;
-#line 23381 ""
- ici__1.iciunit = notexq + i__1;
-#line 23381 ""
- ici__1.icifmt = "(f4.1)";
-#line 23381 ""
- s_wsfi(&ici__1);
-#line 23381 ""
- do_fio(&c__1, (char *)&hshft, (ftnlen)sizeof(real));
-#line 23381 ""
- e_wsfi();
-#line 23382 ""
- *lnote += 4;
-#line 23383 ""
- } else {
-#line 23384 ""
- i__1 = *lnote;
-#line 23384 ""
- ici__1.icierr = 0;
-#line 23384 ""
- ici__1.icirnum = 1;
-#line 23384 ""
- ici__1.icirlen = *lnote + 3 - i__1;
-#line 23384 ""
- ici__1.iciunit = notexq + i__1;
-#line 23384 ""
- ici__1.icifmt = "(f3.1)";
-#line 23384 ""
- s_wsfi(&ici__1);
-#line 23384 ""
- do_fio(&c__1, (char *)&hshft, (ftnlen)sizeof(real));
-#line 23384 ""
- e_wsfi();
-#line 23385 ""
- *lnote += 3;
-#line 23386 ""
- }
-/* Writing concatenation */
-#line 23387 ""
- i__2[0] = *lnote, a__1[0] = notexq;
-#line 23387 ""
- i__2[1] = 1, a__1[1] = "}";
-#line 23387 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 23388 ""
- ++(*lnote);
-#line 23389 ""
- }
-#line 23390 ""
- return 0;
-} /* putcb_ */
-
-/* Subroutine */ int putfig_(integer *ivx, integer *ifig, real *offnsk,
- logical *figcheck, char *soutq, integer *lsout, ftnlen soutq_len)
-{
- /* System generated locals */
- address a__1[6], a__2[2], a__3[3], a__4[4];
- integer i__1[6], i__2[2], i__3, i__4[3], i__5[4];
- real r__1;
- char ch__1[1], ch__2[22], ch__3[21], ch__4[20], ch__5[19], ch__6[18],
- ch__7[13], ch__8[11], ch__9[8], ch__10[2];
-
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen), s_cat(char *,
- char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- , i_indx(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static integer ic;
- static char sq[1];
- static integer nof;
- static char ch1q[1], ch2q[1];
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer nofa;
- static char figq[10];
- static integer lnof;
- static char nofq[5];
- static integer lnum, lnofa;
- static char nofaq[5];
- static integer icnum, lnote;
- extern /* Subroutine */ int addstr_(char *, integer *, char *, integer *,
- ftnlen, ftnlen);
- static char figutq[4], conttq[4], notexq[80];
- extern /* Subroutine */ int istring_(integer *, char *, integer *, ftnlen)
- ;
-
- /* Fortran I/O blocks */
- static icilist io___1659 = { 0, notexq+5, 0, "(f6.2)", 6, 1 };
- static icilist io___1660 = { 0, notexq+5, 0, "(f5.2)", 5, 1 };
- static icilist io___1661 = { 0, notexq+5, 0, "(f4.2)", 4, 1 };
- static icilist io___1662 = { 0, notexq+5, 0, "(f3.2)", 3, 1 };
- static icilist io___1675 = { 0, notexq+5, 0, "(f6.2)", 6, 1 };
- static icilist io___1676 = { 0, notexq+5, 0, "(f5.2)", 5, 1 };
- static icilist io___1677 = { 0, notexq+5, 0, "(f4.2)", 4, 1 };
- static icilist io___1678 = { 0, notexq+5, 0, "(f3.2)", 3, 1 };
-
-
-#line 23402 ""
- if (*ivx == 1) {
-#line 23403 ""
- s_copy(figutq, "Figu", (ftnlen)4, (ftnlen)4);
-#line 23404 ""
- s_copy(conttq, "Cont", (ftnlen)4, (ftnlen)4);
-#line 23405 ""
- } else {
-#line 23406 ""
- s_copy(figutq, "Figt", (ftnlen)4, (ftnlen)4);
-#line 23407 ""
- s_copy(conttq, "Cott", (ftnlen)4, (ftnlen)4);
-#line 23408 ""
- }
-#line 23409 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 23409 ""
- *(unsigned char *)sq = *(unsigned char *)&ch__1[0];
-#line 23410 ""
- if (comfig_2.ivvfig[*ivx + (*ifig << 1) - 3] != 0) {
-
-/* Alter figdrop */
-
-/* Writing concatenation */
-#line 23414 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 23414 ""
- i__1[1] = 6, a__1[1] = "global";
-#line 23414 ""
- i__1[2] = 1, a__1[2] = sq;
-#line 23414 ""
- i__1[3] = 7, a__1[3] = "advance";
-#line 23414 ""
- i__1[4] = 1, a__1[4] = sq;
-#line 23414 ""
- i__1[5] = 7, a__1[5] = "figdrop";
-#line 23414 ""
- s_cat(notexq, a__1, i__1, &c__6, (ftnlen)80);
-#line 23415 ""
- lnote = 23;
-#line 23416 ""
- if (comfig_2.ivvfig[*ivx + (*ifig << 1) - 3] < 0) {
-/* Writing concatenation */
-#line 23417 ""
- i__2[0] = lnote, a__2[0] = notexq;
-#line 23417 ""
- i__2[1] = 1, a__2[1] = "-";
-#line 23417 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)80);
-#line 23418 ""
- ++lnote;
-#line 23419 ""
- }
-/* Writing concatenation */
-#line 23420 ""
- i__2[0] = lnote, a__2[0] = notexq;
-#line 23420 ""
- *(unsigned char *)&ch__1[0] = (i__3 = comfig_2.ivvfig[*ivx + (*ifig <<
- 1) - 3], abs(i__3)) + 48;
-#line 23420 ""
- i__2[1] = 1, a__2[1] = ch__1;
-#line 23420 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)80);
-#line 23421 ""
- ++lnote;
-#line 23422 ""
- addstr_(notexq, &lnote, soutq, lsout, (ftnlen)80, (ftnlen)80);
-#line 23423 ""
- }
-#line 23424 ""
- if (dabs(*offnsk) > 1e-4f) {
-
-/* Write offset for floating figure, to two decimal places */
-
-/* Writing concatenation */
-#line 23428 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 23428 ""
- i__2[1] = 4, a__2[1] = "off{";
-#line 23428 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)80);
-#line 23429 ""
- if (-(*offnsk) < -9.995f) {
-#line 23430 ""
- s_wsfi(&io___1659);
-#line 23430 ""
- r__1 = -(*offnsk);
-#line 23430 ""
- do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real));
-#line 23430 ""
- e_wsfi();
-#line 23431 ""
- lnote = 11;
-#line 23432 ""
- } else if (-(*offnsk) < -.995f || -(*offnsk) > 9.995f) {
-#line 23433 ""
- s_wsfi(&io___1660);
-#line 23433 ""
- r__1 = -(*offnsk);
-#line 23433 ""
- do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real));
-#line 23433 ""
- e_wsfi();
-#line 23434 ""
- lnote = 10;
-#line 23435 ""
- } else if (-(*offnsk) < -1e-4f || -(*offnsk) > .995f) {
-#line 23436 ""
- s_wsfi(&io___1661);
-#line 23436 ""
- r__1 = -(*offnsk);
-#line 23436 ""
- do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real));
-#line 23436 ""
- e_wsfi();
-#line 23437 ""
- lnote = 9;
-#line 23438 ""
- } else {
-#line 23439 ""
- s_wsfi(&io___1662);
-#line 23439 ""
- r__1 = -(*offnsk);
-#line 23439 ""
- do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real));
-#line 23439 ""
- e_wsfi();
-#line 23440 ""
- lnote = 8;
-#line 23441 ""
- }
-/* Writing concatenation */
-#line 23442 ""
- i__4[0] = lnote, a__3[0] = notexq;
-#line 23442 ""
- i__4[1] = 1, a__3[1] = sq;
-#line 23442 ""
- i__4[2] = 9, a__3[2] = "noteskip}";
-#line 23442 ""
- s_cat(notexq, a__3, i__4, &c__3, (ftnlen)80);
-#line 23443 ""
- i__3 = lnote + 10;
-#line 23443 ""
- addstr_(notexq, &i__3, soutq, lsout, (ftnlen)80, (ftnlen)80);
-#line 23444 ""
- }
-#line 23445 ""
- s_copy(figq, comfig_2.figqq + (*ivx + (*ifig << 1) - 3) * 10, (ftnlen)10,
- (ftnlen)10);
-#line 23446 ""
- ic = 1;
-/* nof = 0 */
-/* nofa = -1 */
-#line 23449 ""
- nof = -comfig_2.ivupfig[*ivx + (*ifig << 1) - 3];
-#line 23450 ""
- nofa = -comfig_2.ivupfig[*ivx + (*ifig << 1) - 3] - 1;
-
-/* Beginning of manual loop */
-
-#line 23454 ""
-L1:
-#line 23454 ""
- *(unsigned char *)ch1q = *(unsigned char *)&figq[ic - 1];
-
-/* Exit when first blank is encountered */
-
-#line 23458 ""
- if (*(unsigned char *)ch1q == ' ') {
-#line 23458 ""
- goto L2;
-#line 23458 ""
- }
-
-/* Starting a level. Set up vertical offset. */
-
-/* lnof = 1 */
-/* nofq = chax(nof+48) */
-/* if (nof .gt. 9) then */
-/* lnof = 2 */
-/* nofq = '1'//chax(nof-10+48) */
-/* end if */
-/* if (nofa .eq.-1) then */
-/* lnofa = 2 */
-/* nofaq = '-1' */
-/* else if (nofa .lt. 10) then */
-/* lnofa = 1 */
-/* nofaq = chax(nofa+48) */
-/* else */
-/* lnofa = 2 */
-/* nofaq = '1'//chax(nofa+38) */
-/* end if */
-#line 23478 ""
- istring_(&nof, nofq, &lnof, (ftnlen)5);
-#line 23479 ""
- istring_(&nofa, nofaq, &lnofa, (ftnlen)5);
-#line 23480 ""
- 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 23486 ""
- icnum = ic + 1;
-#line 23487 ""
-L3:
-#line 23488 ""
- ++ic;
-#line 23489 ""
- if (i_indx("0123456789.", figq + (ic - 1), (ftnlen)11, (ftnlen)1) > 0)
- {
-#line 23489 ""
- goto L3;
-#line 23489 ""
- }
-#line 23490 ""
- lnum = ic - icnum;
-/* Writing concatenation */
-#line 23491 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 23491 ""
- i__1[1] = 4, a__1[1] = conttq;
-#line 23491 ""
- i__1[2] = lnof, a__1[2] = nofq;
-#line 23491 ""
- i__1[3] = 1, a__1[3] = "{";
-#line 23491 ""
- i__1[4] = ic - 1 - (icnum - 1), a__1[4] = figq + (icnum - 1);
-#line 23491 ""
- i__1[5] = 1, a__1[5] = "}";
-#line 23491 ""
- s_cat(ch__2, a__1, i__1, &c__6, (ftnlen)22);
-#line 23491 ""
- i__3 = ic + 7 - icnum + lnof;
-#line 23491 ""
- addstr_(ch__2, &i__3, soutq, lsout, lnof + 6 + (ic - 1 - (icnum - 1))
- + 1, (ftnlen)80);
-#line 23493 ""
- if (*(unsigned char *)&figq[ic - 1] != ':') {
-#line 23493 ""
- --ic;
-#line 23493 ""
- }
-#line 23494 ""
- } else if (*(unsigned char *)ch1q == '#' || *(unsigned char *)ch1q == '-'
- || *(unsigned char *)ch1q == 'n') {
-#line 23495 ""
- ++ic;
-#line 23496 ""
- *(unsigned char *)ch2q = *(unsigned char *)&figq[ic - 1];
-#line 23497 ""
- if (*(unsigned char *)ch2q == ' ') {
-
-/* Figure is a stand-alone accidental, so must be centered */
-
-#line 23501 ""
- if (*(unsigned char *)ch1q == '#') {
-/* Writing concatenation */
-#line 23502 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 23502 ""
- i__1[1] = 4, a__1[1] = figutq;
-#line 23502 ""
- i__1[2] = lnofa, a__1[2] = nofaq;
-#line 23502 ""
- i__1[3] = 1, a__1[3] = "{";
-#line 23502 ""
- i__1[4] = 1, a__1[4] = sq;
-#line 23502 ""
- i__1[5] = 9, a__1[5] = "sharpfig}";
-#line 23502 ""
- s_cat(ch__3, a__1, i__1, &c__6, (ftnlen)21);
-#line 23502 ""
- i__3 = lnofa + 16;
-#line 23502 ""
- addstr_(ch__3, &i__3, soutq, lsout, lnofa + 16, (ftnlen)80);
-#line 23504 ""
- } else if (*(unsigned char *)ch1q == '-') {
-/* Writing concatenation */
-#line 23505 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 23505 ""
- i__1[1] = 4, a__1[1] = figutq;
-#line 23505 ""
- i__1[2] = lnofa, a__1[2] = nofaq;
-#line 23505 ""
- i__1[3] = 1, a__1[3] = "{";
-#line 23505 ""
- i__1[4] = 1, a__1[4] = sq;
-#line 23505 ""
- i__1[5] = 8, a__1[5] = "flatfig}";
-#line 23505 ""
- s_cat(ch__4, a__1, i__1, &c__6, (ftnlen)20);
-#line 23505 ""
- i__3 = lnofa + 15;
-#line 23505 ""
- addstr_(ch__4, &i__3, soutq, lsout, lnofa + 15, (ftnlen)80);
-#line 23507 ""
- } else if (*(unsigned char *)ch1q == 'n') {
-/* Writing concatenation */
-#line 23508 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 23508 ""
- i__1[1] = 4, a__1[1] = figutq;
-#line 23508 ""
- i__1[2] = lnofa, a__1[2] = nofaq;
-#line 23508 ""
- i__1[3] = 1, a__1[3] = "{";
-#line 23508 ""
- i__1[4] = 1, a__1[4] = sq;
-#line 23508 ""
- i__1[5] = 7, a__1[5] = "natfig}";
-#line 23508 ""
- s_cat(ch__5, a__1, i__1, &c__6, (ftnlen)19);
-#line 23508 ""
- i__3 = lnofa + 14;
-#line 23508 ""
- addstr_(ch__5, &i__3, soutq, lsout, lnofa + 14, (ftnlen)80);
-#line 23510 ""
- }
-#line 23511 ""
- goto L2;
-#line 23512 ""
- } else {
-
-/* Figure is an accidental followed by a number */
-/* First put the accidental (offset to the left) */
-
-#line 23517 ""
- if (*(unsigned char *)ch1q == '#') {
-/* Writing concatenation */
-#line 23518 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 23518 ""
- i__1[1] = 4, a__1[1] = figutq;
-#line 23518 ""
- i__1[2] = lnofa, a__1[2] = nofaq;
-#line 23518 ""
- i__1[3] = 1, a__1[3] = "{";
-#line 23518 ""
- i__1[4] = 1, a__1[4] = sq;
-#line 23518 ""
- i__1[5] = 6, a__1[5] = "fsmsh}";
-#line 23518 ""
- s_cat(ch__6, a__1, i__1, &c__6, (ftnlen)18);
-#line 23518 ""
- i__3 = lnofa + 13;
-#line 23518 ""
- addstr_(ch__6, &i__3, soutq, lsout, lnofa + 13, (ftnlen)80);
-#line 23521 ""
- } else if (*(unsigned char *)ch1q == '-') {
-/* Writing concatenation */
-#line 23522 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 23522 ""
- i__1[1] = 4, a__1[1] = figutq;
-#line 23522 ""
- i__1[2] = lnofa, a__1[2] = nofaq;
-#line 23522 ""
- i__1[3] = 1, a__1[3] = "{";
-#line 23522 ""
- i__1[4] = 1, a__1[4] = sq;
-#line 23522 ""
- i__1[5] = 6, a__1[5] = "fsmfl}";
-#line 23522 ""
- s_cat(ch__6, a__1, i__1, &c__6, (ftnlen)18);
-#line 23522 ""
- i__3 = lnofa + 13;
-#line 23522 ""
- addstr_(ch__6, &i__3, soutq, lsout, lnofa + 13, (ftnlen)80);
-#line 23525 ""
- } else if (*(unsigned char *)ch1q == 'n') {
-/* Writing concatenation */
-#line 23526 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 23526 ""
- i__1[1] = 4, a__1[1] = figutq;
-#line 23526 ""
- i__1[2] = lnofa, a__1[2] = nofaq;
-#line 23526 ""
- i__1[3] = 1, a__1[3] = "{";
-#line 23526 ""
- i__1[4] = 1, a__1[4] = sq;
-#line 23526 ""
- i__1[5] = 6, a__1[5] = "fsmna}";
-#line 23526 ""
- s_cat(ch__6, a__1, i__1, &c__6, (ftnlen)18);
-#line 23526 ""
- i__3 = lnofa + 13;
-#line 23526 ""
- addstr_(ch__6, &i__3, soutq, lsout, lnofa + 13, (ftnlen)80);
-#line 23529 ""
- }
-
-/* Now put the number */
-
-/* Writing concatenation */
-#line 23533 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 23533 ""
- i__1[1] = 4, a__1[1] = figutq;
-#line 23533 ""
- i__1[2] = lnof, a__1[2] = nofq;
-#line 23533 ""
- i__1[3] = 1, a__1[3] = "{";
-#line 23533 ""
- i__1[4] = 1, a__1[4] = ch2q;
-#line 23533 ""
- i__1[5] = 1, a__1[5] = "}";
-#line 23533 ""
- s_cat(ch__7, a__1, i__1, &c__6, (ftnlen)13);
-#line 23533 ""
- i__3 = lnof + 8;
-#line 23533 ""
- addstr_(ch__7, &i__3, soutq, lsout, lnof + 8, (ftnlen)80);
-#line 23535 ""
- }
-#line 23536 ""
- } else if (*(unsigned char *)ch1q == '_') {
-
-/* Placeholder only (for lowering a figure). Don't do anything! */
-
-#line 23541 ""
- } else {
-
-/* Figure is a single number, maybe with s after */
-
-/* Writing concatenation */
-#line 23545 ""
- i__5[0] = 1, a__4[0] = sq;
-#line 23545 ""
- i__5[1] = 4, a__4[1] = figutq;
-#line 23545 ""
- i__5[2] = lnof, a__4[2] = nofq;
-#line 23545 ""
- i__5[3] = 1, a__4[3] = "{";
-#line 23545 ""
- s_cat(ch__8, a__4, i__5, &c__4, (ftnlen)11);
-#line 23545 ""
- i__3 = lnof + 6;
-#line 23545 ""
- addstr_(ch__8, &i__3, soutq, lsout, lnof + 6, (ftnlen)80);
-#line 23547 ""
- i__3 = ic;
-#line 23547 ""
- s_copy(ch2q, figq + i__3, (ftnlen)1, ic + 1 - i__3);
-#line 23548 ""
- if (*(unsigned char *)ch2q == 's') {
-
-/* Use a special character. Insert font call */
-
-#line 23552 ""
- ++ic;
-/* Writing concatenation */
-#line 23553 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 23553 ""
- i__2[1] = 7, a__2[1] = "ligfont";
-#line 23553 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 23553 ""
- addstr_(ch__9, &c__8, soutq, lsout, (ftnlen)8, (ftnlen)80);
-#line 23554 ""
- }
-/* Writing concatenation */
-#line 23555 ""
- i__2[0] = 1, a__2[0] = ch1q;
-#line 23555 ""
- i__2[1] = 1, a__2[1] = "}";
-#line 23555 ""
- s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)2);
-#line 23555 ""
- addstr_(ch__10, &c__2, soutq, lsout, (ftnlen)2, (ftnlen)80);
-/* call addstr(sq//Figutq//nofq(1:lnof)//'{'//ch1q//'}', */
-/* * 8+lnof,soutq,lsout) */
-#line 23558 ""
- }
-#line 23559 ""
- if (ic >= 10) {
-#line 23559 ""
- goto L2;
-#line 23559 ""
- }
-#line 23560 ""
- ++ic;
-#line 23561 ""
- nof += 4;
-#line 23562 ""
- nofa += 4;
-#line 23563 ""
- goto L1;
-#line 23564 ""
-L2:
-#line 23565 ""
- if (dabs(*offnsk) > 1e-4f) {
-/* Writing concatenation */
-#line 23566 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 23566 ""
- i__2[1] = 4, a__2[1] = "off{";
-#line 23566 ""
- s_cat(notexq, a__2, i__2, &c__2, (ftnlen)80);
-#line 23567 ""
- if (*offnsk < -9.995f) {
-#line 23568 ""
- s_wsfi(&io___1675);
-#line 23568 ""
- do_fio(&c__1, (char *)&(*offnsk), (ftnlen)sizeof(real));
-#line 23568 ""
- e_wsfi();
-#line 23569 ""
- lnote = 11;
-#line 23570 ""
- } else if (*offnsk < -.995f || *offnsk > 9.995f) {
-#line 23571 ""
- s_wsfi(&io___1676);
-#line 23571 ""
- do_fio(&c__1, (char *)&(*offnsk), (ftnlen)sizeof(real));
-#line 23571 ""
- e_wsfi();
-#line 23572 ""
- lnote = 10;
-#line 23573 ""
- } else if (*offnsk < -1e-4f || *offnsk > .995f) {
-#line 23574 ""
- s_wsfi(&io___1677);
-#line 23574 ""
- do_fio(&c__1, (char *)&(*offnsk), (ftnlen)sizeof(real));
-#line 23574 ""
- e_wsfi();
-#line 23575 ""
- lnote = 9;
-#line 23576 ""
- } else {
-#line 23577 ""
- s_wsfi(&io___1678);
-#line 23577 ""
- do_fio(&c__1, (char *)&(*offnsk), (ftnlen)sizeof(real));
-#line 23577 ""
- e_wsfi();
-#line 23578 ""
- lnote = 8;
-#line 23579 ""
- }
-/* Writing concatenation */
-#line 23580 ""
- i__4[0] = lnote, a__3[0] = notexq;
-#line 23580 ""
- i__4[1] = 1, a__3[1] = sq;
-#line 23580 ""
- i__4[2] = 9, a__3[2] = "noteskip}";
-#line 23580 ""
- s_cat(notexq, a__3, i__4, &c__3, (ftnlen)80);
-#line 23581 ""
- i__3 = lnote + 10;
-#line 23581 ""
- addstr_(notexq, &i__3, soutq, lsout, (ftnlen)80, (ftnlen)80);
-#line 23582 ""
- }
-#line 23583 ""
- if (*ifig < comfig_2.nfigs[*ivx - 1]) {
-#line 23584 ""
- ++(*ifig);
-#line 23585 ""
- } else {
-#line 23586 ""
- comfig_2.nfigs[*ivx - 1] = 0;
-#line 23587 ""
- *figcheck = FALSE_;
-#line 23588 ""
- }
-#line 23589 ""
- return 0;
-} /* putfig_ */
-
-/* Subroutine */ int putorn_(integer *iornq, integer *nolev, integer *nolevm,
- integer *nodur, integer *nornb, char *ulq, integer *ibmcnt, integer *
- ivx, integer *ncm, integer *islur, integer *nvmx, integer *nv,
- integer *ihornb, real *stemlin, char *outq, integer *lout, integer *
- ip, integer *islhgt, logical *beamon, logical *iscrd, ftnlen ulq_len,
- ftnlen outq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[3], a__3[6];
- integer i__1, i__2, i__3[2], i__4[3], i__5[6];
- real r__1, r__2;
- char ch__1[1], ch__2[6];
- icilist ici__1;
-
- /* Builtin functions */
- integer pow_ii(integer *, integer *), i_nint(real *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer lbit_shift(integer, integer), i_dim(integer *, integer *), s_wsfi(
- icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- extern /* Subroutine */ int addblank_(char *, integer *, ftnlen);
- static logical usehornb;
- static char sq[1];
- extern integer log2_(integer *);
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer ioff, ibit;
- extern /* Character */ VOID udqq_(char *, ftnlen, integer *, integer *,
- integer *, integer *, integer *, integer *);
- extern integer lfmt1_(real *);
- static integer ibitt, ihorn, lform, lnote;
- static char noteq[8];
- static integer iornt;
- static char ulpzq[1];
- extern /* Subroutine */ int notefq_(char *, integer *, integer *, integer
- *, ftnlen);
- static integer lnoten, iudorn;
- static char notexq[79];
- static integer iclracc, ioffinc;
- static real stemlen;
- extern /* Subroutine */ int dotrill_(integer *, integer *, integer *,
- char *, integer *, char *, integer *, ftnlen, ftnlen);
-
-
-/* All args are individual array element *values* except nornb,ihornb,ulq. */
-/* notcrd = .true. if ornament is on main note. */
-/* nolevm is level of main note (for chords) */
-
-#line 23609 ""
- /* Parameter adjustments */
-#line 23609 ""
- ihornb -= 25;
-#line 23609 ""
- ulq -= 25;
-#line 23609 ""
- --nornb;
-#line 23609 ""
-
-#line 23609 ""
- /* Function Body */
-#line 23609 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 23609 ""
- *(unsigned char *)sq = *(unsigned char *)&ch__1[0];
-#line 23610 ""
- *lout = 0;
-#line 23611 ""
- usehornb = FALSE_;
-#line 23612 ""
- if (*nodur < 64) {
-#line 23613 ""
- stemlen = *stemlin;
-#line 23614 ""
- } else {
-#line 23615 ""
- stemlen = 0.f;
-#line 23616 ""
- }
-
-/* Get up-downness. ulpzq is opposite from stem direction for both beams and */
-/* non beams. Can use in name of ornament [ . or _ ] */
-
-#line 23621 ""
- if (*beamon) {
-#line 23622 ""
- if (*(unsigned char *)&ulq[*ivx + *ibmcnt * 24] == 'u') {
-#line 23623 ""
- *(unsigned char *)ulpzq = 'l';
-#line 23624 ""
- } else {
-#line 23625 ""
- *(unsigned char *)ulpzq = 'u';
-#line 23626 ""
- }
-#line 23627 ""
- } else {
-#line 23628 ""
- udqq_(ch__1, (ftnlen)1, nolevm, ncm, islur, nvmx, ivx, nv);
-#line 23628 ""
- if (*(unsigned char *)&ch__1[0] == 'l') {
-#line 23629 ""
- *(unsigned char *)ulpzq = 'u';
-#line 23630 ""
- } else {
-#line 23631 ""
- *(unsigned char *)ulpzq = 'l';
-#line 23632 ""
- }
-#line 23633 ""
- }
-
-/* To enable >1 ornament on a note, next line is top of manual loop. */
-
-#line 23637 ""
-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 23642 ""
- if (bit_test(*iornq,29)) {
-#line 23643 ""
- ibit = 29;
-#line 23644 ""
- } else if (bit_test(*iornq,30)) {
-#line 23645 ""
- ibit = 30;
-#line 23646 ""
- } else {
-#line 23647 ""
- i__1 = *iornq & 4194303;
-#line 23647 ""
- ibit = log2_(&i__1);
-/* ibit = log2(iand(iornq,33554431)) */
-#line 23649 ""
- }
-#line 23650 ""
- iornt = pow_ii(&c__2, &ibit);
-
-/* Begin routine to set height. Bits 0-13: (stmgx+Tupf._) */
-/* 14: Down fermata, was F 15: Trill w/o "tr", was U, 16-18: edit. s,f,n */
-/* 19-20: >^, 21: ? (with or w/o 16-18) */
-/* and 29-30: C (coda), G (new segno) */
-
-/* Do not use beam height for . or _ */
-
-#line 23659 ""
- 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 23664 ""
- ihorn = ihornb[*ivx + nornb[*ivx] * 24];
-#line 23665 ""
- if (*(unsigned char *)ulpzq == 'u') {
-#line 23665 ""
- ihorn += -2;
-#line 23665 ""
- }
-
-/* Following flag tells whether to increment nornb when exiting the subroutine. */
-
-#line 23669 ""
- usehornb = TRUE_;
-#line 23670 ""
- } else if (ibit == 14) {
-
-/* Down fermata. Don't worry about upper chord notes. */
-
-#line 23674 ""
- if (*(unsigned char *)ulpzq == 'l') {
-/* Computing MIN */
-#line 23675 ""
- i__1 = *nolev, i__2 = *ncm - 3;
-#line 23675 ""
- ihorn = min(i__1,i__2);
-#line 23676 ""
- } else {
-/* Computing MIN */
-#line 23677 ""
- r__1 = *nolev - stemlen, r__2 = *ncm - 3.f;
-#line 23677 ""
- ihorn = dmin(r__1,r__2);
-#line 23678 ""
- }
-#line 23679 ""
- } else if (bit_test(iornt,13) || bit_test(iornt,0)) {
-
-/* ( or ) */
-
-#line 23683 ""
- ihorn = *nolev;
-#line 23684 ""
- } 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 23690 ""
- if (! (*iscrd) || comtrill_1.maxlev != *nolev && *(unsigned char *)
- ulpzq == 'l' || comtrill_1.minlev != *nolev && *(unsigned
- char *)ulpzq == 'u') {
-#line 23692 ""
- ihorn = *nolev;
-#line 23693 ""
- } else if (comtrill_1.maxlev == *nolev) {
-#line 23694 ""
- *(unsigned char *)ulpzq = 'u';
-/* Computing MAX */
-#line 23695 ""
- r__1 = *nolev + stemlen, r__2 = *ncm + 3.f;
-#line 23695 ""
- ihorn = dmax(r__1,r__2);
-#line 23696 ""
- } else {
-#line 23697 ""
- *(unsigned char *)ulpzq = 'l';
-/* Computing MIN */
-#line 23698 ""
- r__1 = *nolev - stemlen, r__2 = *ncm - 3.f;
-#line 23698 ""
- ihorn = dmin(r__1,r__2);
-#line 23699 ""
- }
-#line 23700 ""
- } else if (*iscrd && *nolev == comtrill_1.minlev) {
-#line 23701 ""
- if (*(unsigned char *)ulpzq == 'l') {
-/* Computing MIN */
-#line 23702 ""
- i__1 = *nolev - 3, i__2 = *ncm - 6;
-#line 23702 ""
- ihorn = min(i__1,i__2);
-#line 23703 ""
- } else {
-/* Computing MIN */
-#line 23704 ""
- i__1 = *nolev - i_nint(&stemlen) - 3, i__2 = *ncm - 6;
-#line 23704 ""
- ihorn = min(i__1,i__2);
-#line 23705 ""
- }
-#line 23706 ""
- } else if (ibit == 10 && *nolev > 90) {
-
-/* Special treatment for fermata on a shifted rest */
-
-#line 23710 ""
- ihorn = *ncm + 5;
-#line 23711 ""
- } else if (*(unsigned char *)ulpzq == 'l') {
-
-/* (iscrd and nolev=maxlev) or (.not.iscrd) */
-
-/* Computing MAX */
-#line 23715 ""
- r__1 = *nolev + stemlen + 2, r__2 = *ncm + 5.f;
-#line 23715 ""
- ihorn = dmax(r__1,r__2);
-#line 23716 ""
- } else if (ibit == 29 || ibit == 30) {
-
-/* coda or new segno, no height tweak */
-
-#line 23720 ""
- ihorn = *ncm + 5;
-#line 23721 ""
- } else {
-/* Computing MAX */
-#line 23722 ""
- i__1 = *nolev + 2, i__2 = *ncm + 5;
-#line 23722 ""
- ihorn = max(i__1,i__2);
-#line 23723 ""
- }
-#line 23724 ""
- ioff = 0;
-#line 23725 ""
- 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 23730 ""
- if (bit_test(iornt,2)) {
-/* Writing concatenation */
-#line 23731 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23731 ""
- i__3[1] = 5, a__1[1] = "shake";
-#line 23731 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23732 ""
- lnote = 6;
-#line 23733 ""
- } else if (bit_test(iornt,3)) {
-/* Writing concatenation */
-#line 23734 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23734 ""
- i__3[1] = 7, a__1[1] = "mordent";
-#line 23734 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23735 ""
- lnote = 8;
-#line 23736 ""
- } else if (bit_test(iornt,1)) {
-/* Writing concatenation */
-#line 23737 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23737 ""
- i__3[1] = 3, a__1[1] = "mtr";
-#line 23737 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23738 ""
- lnote = 4;
-#line 23739 ""
- } else if (bit_test(iornt,5)) {
-/* Writing concatenation */
-#line 23740 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23740 ""
- i__3[1] = 3, a__1[1] = "xtr";
-#line 23740 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23741 ""
- lnote = 4;
-#line 23742 ""
- } else if (bit_test(iornt,6)) {
-/* Writing concatenation */
-#line 23743 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23743 ""
- i__3[1] = 3, a__1[1] = "ptr";
-#line 23743 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23744 ""
- lnote = 4;
-#line 23745 ""
- } else if (bit_test(iornt,13)) {
-/* Writing concatenation */
-#line 23746 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23746 ""
- i__3[1] = 3, a__1[1] = "rpn";
-#line 23746 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23747 ""
- lnote = 4;
-#line 23748 ""
- } else if (bit_test(iornt,0)) {
-/* Writing concatenation */
-#line 23749 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23749 ""
- i__3[1] = 3, a__1[1] = "lpn";
-#line 23749 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23750 ""
- lnote = 4;
-#line 23751 ""
- } else if (bit_test(iornt,12)) {
-/* Writing concatenation */
-#line 23752 ""
- i__4[0] = 1, a__2[0] = sq;
-#line 23752 ""
- i__4[1] = 1, a__2[1] = ulpzq;
-#line 23752 ""
- i__4[2] = 2, a__2[2] = "st";
-#line 23752 ""
- s_cat(notexq, a__2, i__4, &c__3, (ftnlen)79);
-#line 23753 ""
- lnote = 4;
-#line 23754 ""
- } else if (bit_test(iornt,11)) {
-/* Writing concatenation */
-#line 23755 ""
- i__4[0] = 1, a__2[0] = sq;
-#line 23755 ""
- i__4[1] = 1, a__2[1] = ulpzq;
-#line 23755 ""
- i__4[2] = 2, a__2[2] = "pz";
-#line 23755 ""
- s_cat(notexq, a__2, i__4, &c__3, (ftnlen)79);
-#line 23756 ""
- lnote = 4;
-#line 23757 ""
- } else if (bit_test(iornt,8)) {
-/* Writing concatenation */
-#line 23758 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23758 ""
- i__3[1] = 3, a__1[1] = "upz";
-#line 23758 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23759 ""
- lnote = 4;
-#line 23760 ""
- ioff = -2;
-#line 23761 ""
- } else if (bit_test(iornt,9)) {
-/* Writing concatenation */
-#line 23762 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23762 ""
- i__3[1] = 4, a__1[1] = "uppz";
-#line 23762 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23763 ""
- lnote = 5;
-#line 23764 ""
- ioff = -2;
-#line 23765 ""
- } else if (bit_test(iornt,10)) {
-#line 23766 ""
- if (*nodur < 48) {
-/* Writing concatenation */
-#line 23767 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23767 ""
- i__3[1] = 9, a__1[1] = "fermataup";
-#line 23767 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23768 ""
- } else {
-/* Writing concatenation */
-#line 23769 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23769 ""
- i__3[1] = 9, a__1[1] = "Fermataup";
-#line 23769 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23770 ""
- }
-#line 23771 ""
- lnote = 10;
-#line 23772 ""
- ioff = -2;
-#line 23773 ""
- } else if (bit_test(iornt,14)) {
-#line 23774 ""
- if (*nodur < 48) {
-/* Writing concatenation */
-#line 23775 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23775 ""
- i__3[1] = 11, a__1[1] = "fermatadown";
-#line 23775 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23776 ""
- } else {
-/* Writing concatenation */
-#line 23777 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23777 ""
- i__3[1] = 11, a__1[1] = "Fermatadown";
-#line 23777 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23778 ""
- }
-#line 23779 ""
- lnote = 12;
-#line 23780 ""
- } else if (bit_test(iornt,21)) {
-
-/* "?" in editorial ornament. Clear bit 16-18 after use, since ibit=21 */
-
-#line 23784 ""
- if (bit_test(*iornq,16)) {
-/* Writing concatenation */
-#line 23785 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23785 ""
- i__3[1] = 6, a__1[1] = "qsharp";
-#line 23785 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23786 ""
- lnote = 7;
-#line 23787 ""
- ioff = 2;
-#line 23788 ""
- *iornq = bit_clear(*iornq,16);
-#line 23789 ""
- iclracc = 16;
-#line 23790 ""
- } else if (bit_test(*iornq,17)) {
-/* Writing concatenation */
-#line 23791 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23791 ""
- i__3[1] = 5, a__1[1] = "qflat";
-#line 23791 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23792 ""
- lnote = 6;
-#line 23793 ""
- ioff = 1;
-#line 23794 ""
- *iornq = bit_clear(*iornq,17);
-#line 23795 ""
- iclracc = 17;
-#line 23796 ""
- } else if (bit_test(*iornq,18)) {
-/* Writing concatenation */
-#line 23797 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23797 ""
- i__3[1] = 4, a__1[1] = "qnat";
-#line 23797 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23798 ""
- lnote = 5;
-#line 23799 ""
- ioff = 2;
-#line 23800 ""
- *iornq = bit_clear(*iornq,18);
-#line 23801 ""
- iclracc = 18;
-#line 23802 ""
- } else {
-/* Writing concatenation */
-#line 23803 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23803 ""
- i__3[1] = 5, a__1[1] = "qedit";
-#line 23803 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23804 ""
- lnote = 6;
-#line 23805 ""
- ioff = 0;
-#line 23806 ""
- }
-#line 23807 ""
- } else if (bit_test(iornt,16)) {
-/* Writing concatenation */
-#line 23808 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23808 ""
- i__3[1] = 6, a__1[1] = "esharp";
-#line 23808 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23809 ""
- lnote = 7;
-#line 23810 ""
- ioff = 2;
-#line 23811 ""
- } else if (bit_test(iornt,17)) {
-/* Writing concatenation */
-#line 23812 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23812 ""
- i__3[1] = 5, a__1[1] = "eflat";
-#line 23812 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23813 ""
- lnote = 6;
-#line 23814 ""
- ioff = 1;
-#line 23815 ""
- } else if (bit_test(iornt,18)) {
-/* Writing concatenation */
-#line 23816 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23816 ""
- i__3[1] = 4, a__1[1] = "enat";
-#line 23816 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23817 ""
- lnote = 5;
-#line 23818 ""
- ioff = 2;
-#line 23819 ""
- } else if (bit_test(iornt,19)) {
-/* Writing concatenation */
-#line 23820 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23820 ""
- i__3[1] = 3, a__1[1] = "usf";
-#line 23820 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23821 ""
- lnote = 4;
-#line 23822 ""
- ioff = -2;
-#line 23823 ""
- } else if (bit_test(iornt,20)) {
-/* Writing concatenation */
-#line 23824 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23824 ""
- i__3[1] = 4, a__1[1] = "usfz";
-#line 23824 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23825 ""
- lnote = 5;
-#line 23826 ""
- ioff = -2;
-#line 23827 ""
- } else if (bit_test(iornt,29)) {
-/* Writing concatenation */
-#line 23828 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23828 ""
- i__3[1] = 5, a__1[1] = "ccoda";
-#line 23828 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23829 ""
- lnote = 6;
-#line 23830 ""
- } else if (bit_test(iornt,30)) {
-/* Writing concatenation */
-#line 23831 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23831 ""
- i__3[1] = 6, a__1[1] = "ssegno";
-#line 23831 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23832 ""
- lnote = 7;
-#line 23833 ""
- }
-#line 23834 ""
- iudorn = 0;
-
-/* User-defined level shift of ornament from default? */
-
-#line 23838 ""
- if (bit_test(*iornq,25)) {
-
-/* Find which (if any) element of kudorn has the shift. */
-
-#line 23842 ""
- i__1 = comtrill_1.nudorn;
-#line 23842 ""
- for (iudorn = 1; iudorn <= i__1; ++iudorn) {
-/* if (ibit .lt. 21) then */
-/* if (ibit.lt.21 .or. ibit.eq.29) then */
-#line 23845 ""
- if (ibit < 21 || ibit == 29 || ibit == 30) {
-#line 23846 ""
- ibitt = ibit;
-
-/* Could have oes, but not oe? or oes? */
-
-#line 23850 ""
- } else if (iclracc > 0) {
-
-/* Earlier cleared edit. accid, meaning it was oes? */
-
-#line 23854 ""
- ibitt = iclracc + 6;
-#line 23855 ""
- } else {
-#line 23856 ""
- ibitt = 21;
-#line 23857 ""
- }
-#line 23858 ""
- ibitt = *ip + (*ivx % 16 << 8) + (*nolev << 12) + (ibitt << 19);
-/* if (ibitt .eq. iand(33554431,kudorn(iudorn))) go to 4 */
-#line 23860 ""
- if (ibitt == (33554431 & comtrill_1.kudorn[iudorn - 1]) && *ivx ==
- comivxudorn_1.ivxudorn[iudorn - 1]) {
-#line 23860 ""
- goto L4;
-#line 23860 ""
- }
-#line 23862 ""
-/* L3: */
-#line 23862 ""
- }
-
-/* Nothing shifted on this note; exit this if block */
-
-#line 23866 ""
- iudorn = 0;
-#line 23867 ""
- goto L5;
-#line 23868 ""
-L4:
-#line 23869 ""
- ioffinc = (63 & lbit_shift(comtrill_1.kudorn[iudorn - 1], (ftnlen)-25)
- ) - 32;
-#line 23870 ""
- 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 23875 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 23875 ""
- i__3[1] = 3, a__1[1] = "lsf";
-#line 23875 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23876 ""
- ioffinc += 6;
-#line 23877 ""
- }
-#line 23878 ""
- ioff += ioffinc;
-#line 23879 ""
- }
-#line 23880 ""
-L5:
-
-/* Shift level to avoid slur. Conditions are */
-/* 1. There is a slur */
-/* 2. No user-defined orn height shift (btest(iornq,25)) */
-/* 3. upslur (islhgt>0) */
-/* 4. ornament is not segno(4), ._)(11-13), down ferm(14) or "(" (0) Bin=30737 */
-/* 5. islhgt+3 >= height already computed. */
-
-#line 23889 ""
- if (! bit_test(*iornq,25) && *islhgt > 0 && (iornt & 30737) == 0) {
-#line 23889 ""
- i__1 = *islhgt + 3;
-#line 23889 ""
- ioff += i_dim(&i__1, &ihorn);
-#line 23889 ""
- }
-#line 23892 ""
- i__1 = ihorn + ioff;
-#line 23892 ""
- notefq_(noteq, &lnoten, &i__1, ncm, (ftnlen)8);
-#line 23893 ""
- if (lnoten == 1) {
-#line 23893 ""
- addblank_(noteq, &lnoten, (ftnlen)8);
-#line 23893 ""
- }
-#line 23894 ""
- if ((iornt & 32896) > 0) {
-
-/* T-trill or trill w/o "tr" */
-
-#line 23898 ""
- dotrill_(ivx, ip, &iornt, noteq, &lnoten, notexq, &lnote, (ftnlen)8, (
- ftnlen)79);
-#line 23899 ""
- } else {
-/* Writing concatenation */
-#line 23900 ""
- i__3[0] = lnote, a__1[0] = notexq;
-#line 23900 ""
- i__3[1] = lnoten, a__1[1] = noteq;
-#line 23900 ""
- s_cat(notexq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23901 ""
- lnote += lnoten;
-#line 23902 ""
- }
-#line 23903 ""
- if (iudorn > 0) {
-#line 23904 ""
- if (bit_test(comtrill_1.kudorn[iudorn - 1],31)) {
-
-/* Horizontal shift */
-
-#line 23908 ""
- lform = lfmt1_(&comtrill_1.ornhshft[iudorn - 1]);
-#line 23909 ""
- ici__1.icierr = 0;
-#line 23909 ""
- ici__1.icirnum = 1;
-#line 23909 ""
- ici__1.icirlen = lform;
-#line 23909 ""
- ici__1.iciunit = noteq;
-/* Writing concatenation */
-#line 23909 ""
- i__4[0] = 2, a__2[0] = "(f";
-#line 23909 ""
- i__1 = lform + 48;
-#line 23909 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 23909 ""
- i__4[1] = 1, a__2[1] = ch__1;
-#line 23909 ""
- i__4[2] = 3, a__2[2] = ".1)";
-#line 23909 ""
- ici__1.icifmt = (s_cat(ch__2, a__2, i__4, &c__3, (ftnlen)6),
- ch__2);
-#line 23909 ""
- s_wsfi(&ici__1);
-#line 23909 ""
- do_fio(&c__1, (char *)&comtrill_1.ornhshft[iudorn - 1], (ftnlen)
- sizeof(real));
-#line 23909 ""
- e_wsfi();
-/* Writing concatenation */
-#line 23911 ""
- i__5[0] = 1, a__3[0] = sq;
-#line 23911 ""
- i__5[1] = 8, a__3[1] = "roffset{";
-#line 23911 ""
- i__5[2] = lform, a__3[2] = noteq;
-#line 23911 ""
- i__5[3] = 2, a__3[3] = "}{";
-#line 23911 ""
- i__5[4] = lnote, a__3[4] = notexq;
-#line 23911 ""
- i__5[5] = 1, a__3[5] = "}";
-#line 23911 ""
- s_cat(notexq, a__3, i__5, &c__6, (ftnlen)79);
-#line 23913 ""
- lnote = lnote + lform + 12;
-#line 23914 ""
- comtrill_1.ornhshft[iudorn - 1] = 0.f;
-#line 23915 ""
- comtrill_1.kudorn[iudorn - 1] = bit_clear(comtrill_1.kudorn[
- iudorn - 1],31);
-#line 23916 ""
- }
-#line 23917 ""
- }
-
-/* Zero out the bit for ornament just dealt with. */
-
-#line 23921 ""
- *iornq = bit_clear(*iornq,ibit);
-#line 23922 ""
- if (*lout == 0) {
-#line 23923 ""
- s_copy(outq, notexq, (ftnlen)79, lnote);
-#line 23924 ""
- } else {
-/* Writing concatenation */
-#line 23925 ""
- i__3[0] = *lout, a__1[0] = outq;
-#line 23925 ""
- i__3[1] = lnote, a__1[1] = notexq;
-#line 23925 ""
- s_cat(outq, a__1, i__3, &c__2, (ftnlen)79);
-#line 23926 ""
- }
-#line 23927 ""
- *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 23933 ""
- if ((*iornq & 4194303) > 0) {
-#line 23933 ""
- goto L2;
-#line 23933 ""
- }
-#line 23934 ""
- if (usehornb) {
-#line 23934 ""
- ++nornb[*ivx];
-#line 23934 ""
- }
-#line 23935 ""
- return 0;
-} /* putorn_ */
-
-/* Subroutine */ int putshft_(integer *ivx, logical *onoff, char *soutq,
- integer *lsout, ftnlen soutq_len)
-{
- /* System generated locals */
- address a__1[3], a__2[4];
- integer i__1[3], i__2, i__3[4];
- real r__1;
- char ch__1[1], ch__2[6], ch__3[88];
- icilist ici__1;
-
- /* Builtin functions */
- double r_sign(real *, real *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
-
- /* Local variables */
- static char sq[1];
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer ifmt;
- static real xoff;
- extern /* Subroutine */ int addstr_(char *, integer *, char *, integer *,
- ftnlen, ftnlen);
- static char notexq[80];
-
-#line 23943 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 23943 ""
- *(unsigned char *)sq = *(unsigned char *)&ch__1[0];
-
-/* Start user-defined offsets X(...): or X(...)S */
-
-#line 23947 ""
- if (*onoff) {
-#line 23947 ""
- ++comudsp_1.nudoff[*ivx - 1];
-#line 23947 ""
- }
-
-/* Xoff is in pts. Round off to nearest .1. Will use at end of shift. */
-
-#line 23951 ""
- xoff = comudsp_1.udoff[*ivx + comudsp_1.nudoff[*ivx - 1] * 24 - 25];
-#line 23952 ""
- r__1 = (integer) (dabs(xoff) * 10.f + .5f) / 10.f;
-#line 23952 ""
- xoff = r_sign(&r__1, &xoff);
-#line 23953 ""
- if (! (*onoff)) {
-#line 23953 ""
- xoff = -xoff;
-#line 23953 ""
- }
-#line 23954 ""
- if (xoff < -9.95f) {
-#line 23955 ""
- ifmt = 5;
-#line 23956 ""
- } else if (xoff < -.95f || xoff > 9.95f) {
-#line 23957 ""
- ifmt = 4;
-#line 23958 ""
- } else {
-#line 23959 ""
- ifmt = 3;
-#line 23960 ""
- }
-#line 23961 ""
- ici__1.icierr = 0;
-#line 23961 ""
- ici__1.icirnum = 1;
-#line 23961 ""
- ici__1.icirlen = 80;
-#line 23961 ""
- ici__1.iciunit = notexq;
-/* Writing concatenation */
-#line 23961 ""
- i__1[0] = 2, a__1[0] = "(f";
-#line 23961 ""
- i__2 = ifmt + 48;
-#line 23961 ""
- chax_(ch__1, (ftnlen)1, &i__2);
-#line 23961 ""
- i__1[1] = 1, a__1[1] = ch__1;
-#line 23961 ""
- i__1[2] = 3, a__1[2] = ".1)";
-#line 23961 ""
- ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)6), ch__2);
-#line 23961 ""
- s_wsfi(&ici__1);
-#line 23961 ""
- do_fio(&c__1, (char *)&xoff, (ftnlen)sizeof(real));
-#line 23961 ""
- e_wsfi();
-/* Writing concatenation */
-#line 23962 ""
- i__3[0] = 1, a__2[0] = sq;
-#line 23962 ""
- i__3[1] = 4, a__2[1] = "off{";
-#line 23962 ""
- i__3[2] = ifmt, a__2[2] = notexq;
-#line 23962 ""
- i__3[3] = 3, a__2[3] = "pt}";
-#line 23962 ""
- s_cat(ch__3, a__2, i__3, &c__4, (ftnlen)88);
-#line 23962 ""
- i__2 = ifmt + 8;
-#line 23962 ""
- addstr_(ch__3, &i__2, soutq, lsout, ifmt + 8, (ftnlen)80);
-#line 23964 ""
- return 0;
-} /* putshft_ */
-
-/* Subroutine */ int puttitle_(integer *inhnoh, real *xnsttop, real *etatop,
- char *sq, real *etait, real *etatc, real *etacs1, integer *nv,
- logical *vshrink, char *sepsymq, ftnlen sq_len, ftnlen sepsymq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[3], a__3[3], a__4[4];
- integer i__1[2], i__2, i__3[3], i__4, i__5[3], i__6[4];
- real r__1;
- char ch__1[8], ch__2[1], ch__3[10], ch__4[148], ch__5[129], ch__6[133];
- icilist ici__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- double r_lg10(real *);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- , s_wsfe(cilist *), e_wsfe(void);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- extern /* Subroutine */ int writflot_(real *, char *, integer *, ftnlen);
- static integer iv, lcq, ndig;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static real xcsil, xtcil, vskil, xitil, glueil;
- extern integer lenstr_(char *, integer *, ftnlen);
- extern /* Subroutine */ int printl_(char *, ftnlen);
- static char notexq[127];
- static integer lenline;
-
- /* Fortran I/O blocks */
- static cilist io___1706 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1709 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1712 = { 0, 11, 0, "(a)", 0 };
-
-
-
-/* Called once per page, at top of page! If vshrink, only called for p.1. */
-/* 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 23983 ""
- /* Parameter adjustments */
-#line 23983 ""
- --sepsymq;
-#line 23983 ""
-
-#line 23983 ""
- /* Function Body */
-/* Writing concatenation */
-#line 23983 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 23983 ""
- i__1[1] = 6, a__1[1] = "znotes";
-#line 23983 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127);
-#line 23984 ""
- lenline = 7;
-#line 23985 ""
- i__2 = *nv - 1;
-#line 23985 ""
- for (iv = 1; iv <= i__2; ++iv) {
-/* Writing concatenation */
-#line 23986 ""
- i__1[0] = lenline, a__1[0] = notexq;
-#line 23986 ""
- i__1[1] = 1, a__1[1] = sepsymq + iv;
-#line 23986 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127);
-#line 23987 ""
- ++lenline;
-#line 23988 ""
-/* L22: */
-#line 23988 ""
- }
-/* Writing concatenation */
-#line 23989 ""
- i__3[0] = lenline, a__2[0] = notexq;
-#line 23989 ""
- i__3[1] = 1, a__2[1] = sq;
-#line 23989 ""
- i__3[2] = 10, a__2[2] = "zcharnote{";
-#line 23989 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)127);
-#line 23990 ""
- lenline += 11;
-#line 23991 ""
- if (! comtitl_1.headlog) {
-#line 23992 ""
- comtitl_1.inhead = *inhnoh;
-#line 23993 ""
- }
-#line 23994 ""
- if (*vshrink && comlast_1.usevshrink) {
-#line 23995 ""
- comtitl_1.inhead = 16;
-#line 23996 ""
- }
-#line 23997 ""
- r__1 = comtitl_1.inhead + .01f;
-#line 23997 ""
- ndig = (integer) r_lg10(&r__1) + 1;
-#line 23998 ""
- i__2 = lenline;
-#line 23998 ""
- ici__1.icierr = 0;
-#line 23998 ""
- ici__1.icirnum = 1;
-#line 23998 ""
- ici__1.icirlen = lenline + ndig + 10 - i__2;
-#line 23998 ""
- ici__1.iciunit = notexq + i__2;
-/* Writing concatenation */
-#line 23998 ""
- i__3[0] = 2, a__2[0] = "(i";
-#line 23998 ""
- i__4 = ndig + 48;
-#line 23998 ""
- chax_(ch__2, (ftnlen)1, &i__4);
-#line 23998 ""
- i__3[1] = 1, a__2[1] = ch__2;
-#line 23998 ""
- i__3[2] = 5, a__2[2] = ",a10)";
-#line 23998 ""
- ici__1.icifmt = (s_cat(ch__1, a__2, i__3, &c__3, (ftnlen)8), ch__1);
-#line 23998 ""
- s_wsfi(&ici__1);
-#line 23998 ""
- do_fio(&c__1, (char *)&comtitl_1.inhead, (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 23998 ""
- i__5[0] = 2, a__3[0] = "}{";
-#line 23998 ""
- i__5[1] = 1, a__3[1] = sq;
-#line 23998 ""
- i__5[2] = 7, a__3[2] = "titles{";
-#line 23998 ""
- s_cat(ch__3, a__3, i__5, &c__3, (ftnlen)10);
-#line 23998 ""
- do_fio(&c__1, ch__3, (ftnlen)10);
-#line 23998 ""
- e_wsfi();
-#line 24000 ""
- lenline = lenline + ndig + 10;
-
-/* Vertical skip at top of page (\Il) = etatop*glueil. Needed whether */
-/* headers are present or not. */
-
-#line 24005 ""
- glueil = *xnsttop / *etatop;
-#line 24006 ""
- vskil = *etatop * glueil;
-#line 24007 ""
- if (*vshrink && comlast_1.usevshrink) {
-#line 24007 ""
- vskil = 2.f;
-#line 24007 ""
- }
-#line 24008 ""
- writflot_(&vskil, notexq, &lenline, (ftnlen)127);
-#line 24009 ""
- if (! comtitl_1.headlog) {
-#line 24010 ""
- if (comlast_1.islast) {
-#line 24010 ""
- s_wsfe(&io___1706);
-/* Writing concatenation */
-#line 24010 ""
- i__6[0] = lenline, a__4[0] = notexq;
-#line 24010 ""
- i__6[1] = 17, a__4[1] = "}{}{0}{}{0}{}{0}}";
-#line 24010 ""
- i__6[2] = 1, a__4[2] = sq;
-#line 24010 ""
- i__6[3] = 3, a__4[3] = "en%";
-#line 24010 ""
- s_cat(ch__4, a__4, i__6, &c__4, (ftnlen)148);
-#line 24010 ""
- do_fio(&c__1, ch__4, lenline + 21);
-#line 24010 ""
- e_wsfe();
-#line 24010 ""
- }
-#line 24012 ""
- } else {
-/* Writing concatenation */
-#line 24013 ""
- i__1[0] = lenline, a__1[0] = notexq;
-#line 24013 ""
- i__1[1] = 2, a__1[1] = "}{";
-#line 24013 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127);
-#line 24014 ""
- lenline += 2;
-#line 24015 ""
- lcq = lenstr_(comtitl_1.instrq, &c__120, (ftnlen)120);
-#line 24016 ""
- if (lcq > 0) {
-#line 24017 ""
- xitil = *etait * glueil;
-#line 24018 ""
- if (*vshrink && comlast_1.usevshrink) {
-#line 24018 ""
- xitil = 2.f;
-#line 24018 ""
- }
-/* Writing concatenation */
-#line 24019 ""
- i__3[0] = lenline, a__2[0] = notexq;
-#line 24019 ""
- i__3[1] = lcq, a__2[1] = comtitl_1.instrq;
-#line 24019 ""
- i__3[2] = 2, a__2[2] = "}{";
-#line 24019 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)127);
-
-/* Null out instrument once used */
-
-#line 24023 ""
- s_copy(comtitl_1.instrq, " ", (ftnlen)120, (ftnlen)1);
-#line 24024 ""
- lenline = lenline + lcq + 2;
-#line 24025 ""
- writflot_(&xitil, notexq, &lenline, (ftnlen)127);
-#line 24026 ""
- } else {
-/* Writing concatenation */
-#line 24027 ""
- i__1[0] = lenline, a__1[0] = notexq;
-#line 24027 ""
- i__1[1] = 3, a__1[1] = "}{0";
-#line 24027 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127);
-#line 24028 ""
- lenline += 3;
-#line 24029 ""
- }
-#line 24030 ""
- if (comlast_1.islast) {
-#line 24030 ""
- s_wsfe(&io___1709);
-/* Writing concatenation */
-#line 24030 ""
- i__1[0] = lenline, a__1[0] = notexq;
-#line 24030 ""
- i__1[1] = 2, a__1[1] = "}%";
-#line 24030 ""
- s_cat(ch__5, a__1, i__1, &c__2, (ftnlen)129);
-#line 24030 ""
- do_fio(&c__1, ch__5, lenline + 2);
-#line 24030 ""
- e_wsfe();
-#line 24030 ""
- }
-#line 24031 ""
- s_copy(notexq, "{", (ftnlen)127, (ftnlen)1);
-#line 24032 ""
- lenline = 1;
-#line 24033 ""
- lcq = lenstr_(comtitl_1.titleq, &c__120, (ftnlen)120);
-#line 24034 ""
- if (lcq > 0) {
-/* Writing concatenation */
-#line 24035 ""
- i__1[0] = lenline, a__1[0] = notexq;
-#line 24035 ""
- i__1[1] = lcq, a__1[1] = comtitl_1.titleq;
-#line 24035 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127);
-#line 24036 ""
- lenline += lcq;
-#line 24037 ""
- } else {
-#line 24038 ""
- printl_(" ", (ftnlen)1);
-#line 24039 ""
- printl_("WARNING", (ftnlen)7);
-#line 24040 ""
- printl_(" In a title block, you have specified instrument and/or"
- , (ftnlen)56);
-#line 24042 ""
- printl_(" composer but no title for the piece.", (ftnlen)38);
-#line 24044 ""
- }
-/* Writing concatenation */
-#line 24045 ""
- i__1[0] = lenline, a__1[0] = notexq;
-#line 24045 ""
- i__1[1] = 2, a__1[1] = "}{";
-#line 24045 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127);
-#line 24046 ""
- lenline += 2;
-#line 24047 ""
- xtcil = *etatc * glueil;
-#line 24048 ""
- lcq = lenstr_(comtitl_1.compoq, &c__120, (ftnlen)120);
-#line 24049 ""
- if (lcq == 0) {
-#line 24049 ""
- xtcil *= 2;
-#line 24049 ""
- }
-#line 24050 ""
- if (*vshrink && comlast_1.usevshrink) {
-#line 24050 ""
- xtcil = 2.f;
-#line 24050 ""
- }
-#line 24051 ""
- writflot_(&xtcil, notexq, &lenline, (ftnlen)127);
-/* Writing concatenation */
-#line 24052 ""
- i__1[0] = lenline, a__1[0] = notexq;
-#line 24052 ""
- i__1[1] = 2, a__1[1] = "}{";
-#line 24052 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127);
-#line 24053 ""
- lenline += 2;
-#line 24054 ""
- if (lcq > 0) {
-/* Writing concatenation */
-#line 24055 ""
- i__3[0] = lenline, a__2[0] = notexq;
-#line 24055 ""
- i__3[1] = lcq, a__2[1] = comtitl_1.compoq;
-#line 24055 ""
- i__3[2] = 2, a__2[2] = "}{";
-#line 24055 ""
- s_cat(notexq, a__2, i__3, &c__3, (ftnlen)127);
-#line 24056 ""
- lenline = lenline + 2 + lcq;
-
-/* Null out compoq so it does not get written later */
-
-#line 24060 ""
- s_copy(comtitl_1.compoq, " ", (ftnlen)120, (ftnlen)1);
-#line 24061 ""
- xcsil = *etacs1 * glueil;
-#line 24062 ""
- if (*vshrink && comlast_1.usevshrink) {
-#line 24062 ""
- xcsil = 2.f;
-#line 24062 ""
- }
-#line 24063 ""
- writflot_(&xcsil, notexq, &lenline, (ftnlen)127);
-#line 24064 ""
- } else {
-/* Writing concatenation */
-#line 24065 ""
- i__1[0] = lenline, a__1[0] = notexq;
-#line 24065 ""
- i__1[1] = 3, a__1[1] = "}{0";
-#line 24065 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)127);
-#line 24066 ""
- lenline += 3;
-#line 24067 ""
- }
-#line 24068 ""
- if (comlast_1.islast) {
-#line 24068 ""
- s_wsfe(&io___1712);
-/* Writing concatenation */
-#line 24068 ""
- i__6[0] = lenline, a__4[0] = notexq;
-#line 24068 ""
- i__6[1] = 2, a__4[1] = "}}";
-#line 24068 ""
- i__6[2] = 1, a__4[2] = sq;
-#line 24068 ""
- i__6[3] = 3, a__4[3] = "en%";
-#line 24068 ""
- s_cat(ch__6, a__4, i__6, &c__4, (ftnlen)133);
-#line 24068 ""
- do_fio(&c__1, ch__6, lenline + 6);
-#line 24068 ""
- e_wsfe();
-#line 24068 ""
- }
-#line 24069 ""
- comtitl_1.headlog = FALSE_;
-#line 24070 ""
- }
-#line 24071 ""
- return 0;
-} /* puttitle_ */
-
-/* Subroutine */ int putxtn_(integer *ntupv, integer *iflop, integer *multb,
- 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, integer *mult, logical *usexnumt, ftnlen
- notexq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[3];
- integer i__1[2], i__2[3], i__3;
- real r__1;
- char ch__1[1];
- icilist ici__1;
-
- /* Builtin functions */
- integer i_nint(real *), lbit_shift(integer, integer);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
-
- /* 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 24084 ""
- if (*iflop != 0 && *multb > 0) {
-
-/* Number goes on beam side, move R/L by .5 wheadpt for upper/lower */
-
-#line 24088 ""
- *eloff -= *iud * .5f * *wheadpt / *poenom;
-
-/* Number goes on beam side, must use beam parameters to set pos'n */
-
-#line 24092 ""
- *nlnum = *nolev1 + *islope / *slfac * *eloff + *iup * (*multb + 8);
-#line 24093 ""
- if (*multb >= 2) {
-#line 24093 ""
- *nlnum += *iup;
-#line 24093 ""
- }
-#line 24094 ""
- } else {
-#line 24095 ""
- r__1 = *xnlmid - 1 + *iud * 3 + *iflop * 11;
-#line 24095 ""
- *nlnum = i_nint(&r__1);
-#line 24096 ""
- }
-#line 24097 ""
- if (! bit_test(*islur,31)) {
-
-/* Only print number when wanted. First check vert, horiz offset */
-
-#line 24101 ""
- if (bit_test(*irest,1)) {
-#line 24101 ""
- *nlnum = *nlnum + igetbits_(mult, &c__8, &c__16) - 64;
-#line 24101 ""
- }
-#line 24102 ""
- if (bit_test(*irest,7)) {
-#line 24102 ""
- *eloff += ((31 & lbit_shift(*irest, (ftnlen)-9)) * .1f - 1.6f) * *
- wheadpt / *poenom;
-#line 24102 ""
- }
-#line 24104 ""
- if (! (*usexnumt)) {
-/* Writing concatenation */
-#line 24105 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 24105 ""
- i__1[0] = 1, a__1[0] = ch__1;
-#line 24105 ""
- i__1[1] = 5, a__1[1] = "xnum{";
-#line 24105 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 24106 ""
- *lnote = 10;
-#line 24107 ""
- istrtn = 7;
-#line 24108 ""
- } else {
-/* Writing concatenation */
-#line 24109 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 24109 ""
- i__1[0] = 1, a__1[0] = ch__1;
-#line 24109 ""
- i__1[1] = 6, a__1[1] = "xnumt{";
-#line 24109 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 24110 ""
- *lnote = 11;
-#line 24111 ""
- istrtn = 8;
-#line 24112 ""
- }
-#line 24113 ""
- if (*eloff < .995f) {
-#line 24114 ""
- ici__1.icierr = 0;
-#line 24114 ""
- ici__1.icirnum = 1;
-#line 24114 ""
- ici__1.icirlen = 4;
-#line 24114 ""
- ici__1.iciunit = notexq + (istrtn - 1);
-#line 24114 ""
- ici__1.icifmt = "(i1,f3.2)";
-#line 24114 ""
- s_wsfi(&ici__1);
-#line 24114 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 24114 ""
- do_fio(&c__1, (char *)&(*eloff), (ftnlen)sizeof(real));
-#line 24114 ""
- e_wsfi();
-#line 24115 ""
- } else if (*eloff < 9.995f) {
-#line 24116 ""
- ici__1.icierr = 0;
-#line 24116 ""
- ici__1.icirnum = 1;
-#line 24116 ""
- ici__1.icirlen = 4;
-#line 24116 ""
- ici__1.iciunit = notexq + (istrtn - 1);
-#line 24116 ""
- ici__1.icifmt = "(f4.2)";
-#line 24116 ""
- s_wsfi(&ici__1);
-#line 24116 ""
- do_fio(&c__1, (char *)&(*eloff), (ftnlen)sizeof(real));
-#line 24116 ""
- e_wsfi();
-#line 24117 ""
- } else {
-#line 24118 ""
- ici__1.icierr = 0;
-#line 24118 ""
- ici__1.icirnum = 1;
-#line 24118 ""
- ici__1.icirlen = 5;
-#line 24118 ""
- ici__1.iciunit = notexq + (istrtn - 1);
-#line 24118 ""
- ici__1.icifmt = "(f5.2)";
-#line 24118 ""
- s_wsfi(&ici__1);
-#line 24118 ""
- do_fio(&c__1, (char *)&(*eloff), (ftnlen)sizeof(real));
-#line 24118 ""
- e_wsfi();
-#line 24119 ""
- ++(*lnote);
-#line 24120 ""
- }
-#line 24121 ""
- notefq_(noteq, &lnoten, nlnum, ncmid, (ftnlen)8);
-/* Writing concatenation */
-#line 24122 ""
- i__2[0] = *lnote, a__2[0] = notexq;
-#line 24122 ""
- i__2[1] = 1, a__2[1] = "}";
-#line 24122 ""
- i__2[2] = lnoten, a__2[2] = noteq;
-#line 24122 ""
- s_cat(notexq, a__2, i__2, &c__3, (ftnlen)79);
-#line 24123 ""
- *lnote = *lnote + 1 + lnoten;
-#line 24124 ""
- if (*ntupv < 10) {
-#line 24125 ""
- i__3 = *lnote;
-#line 24125 ""
- ici__1.icierr = 0;
-#line 24125 ""
- ici__1.icirnum = 1;
-#line 24125 ""
- ici__1.icirlen = *lnote + 1 - i__3;
-#line 24125 ""
- ici__1.iciunit = notexq + i__3;
-#line 24125 ""
- ici__1.icifmt = "(i1)";
-#line 24125 ""
- s_wsfi(&ici__1);
-#line 24125 ""
- do_fio(&c__1, (char *)&(*ntupv), (ftnlen)sizeof(integer));
-#line 24125 ""
- e_wsfi();
-#line 24126 ""
- ++(*lnote);
-#line 24127 ""
- } else {
-/* Writing concatenation */
-#line 24128 ""
- i__1[0] = *lnote, a__1[0] = notexq;
-#line 24128 ""
- i__1[1] = 1, a__1[1] = "{";
-#line 24128 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 24129 ""
- i__3 = *lnote + 1;
-#line 24129 ""
- ici__1.icierr = 0;
-#line 24129 ""
- ici__1.icirnum = 1;
-#line 24129 ""
- ici__1.icirlen = *lnote + 3 - i__3;
-#line 24129 ""
- ici__1.iciunit = notexq + i__3;
-#line 24129 ""
- ici__1.icifmt = "(i2)";
-#line 24129 ""
- s_wsfi(&ici__1);
-#line 24129 ""
- do_fio(&c__1, (char *)&(*ntupv), (ftnlen)sizeof(integer));
-#line 24129 ""
- e_wsfi();
-/* Writing concatenation */
-#line 24130 ""
- i__1[0] = *lnote + 3, a__1[0] = notexq;
-#line 24130 ""
- i__1[1] = 1, a__1[1] = "}";
-#line 24130 ""
- s_cat(notexq, a__1, i__1, &c__2, (ftnlen)79);
-#line 24131 ""
- *lnote += 4;
-#line 24132 ""
- }
-#line 24133 ""
- }
-#line 24134 ""
- return 0;
-} /* putxtn_ */
-
-/* Subroutine */ int read10_(char *string, logical *lastchar, ftnlen
- string_len)
-{
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static integer ip1, ip2;
- extern /* Subroutine */ int getbuf_(char *, ftnlen);
-
-#line 24148 ""
- if (! commac_1.mplay) {
-#line 24149 ""
- if (inbuff_1.ilbuf > inbuff_1.nlbuf) {
-#line 24149 ""
- goto L999;
-#line 24149 ""
- }
-#line 24150 ""
- getbuf_(string, string_len);
-#line 24151 ""
- return 0;
-#line 24152 ""
-L999:
-#line 24152 ""
- *lastchar = TRUE_;
-#line 24153 ""
- return 0;
-#line 24154 ""
- } else {
-
-/* Play a macro. Set pointer to first character needed in buffer */
-
-#line 24158 ""
- if (c1ommac_1.ilmac == c1ommac_1.il1mac[commac_1.macnum - 1]) {
-
-/* Getting first line of macro */
-
-#line 24162 ""
- ip1 = c1ommac_1.ip1mac[commac_1.macnum - 1];
-#line 24163 ""
- c1ommac_1.iplmac = ip1 - c1ommac_1.ic1mac[commac_1.macnum - 1];
-#line 24164 ""
- } else if (c1ommac_1.ilmac <= c1ommac_1.il2mac[commac_1.macnum - 1]) {
-
-/* Beyond first line of macro. Advance line-start pointer. */
-
-#line 24168 ""
- c1ommac_1.iplmac += inbuff_1.lbuf[c1ommac_1.ilmac - 2];
-#line 24169 ""
- ip1 = c1ommac_1.iplmac + 1;
-#line 24170 ""
- } else {
-
-/* Beyond last line of macro. Terminate it! */
-
-#line 24174 ""
- commac_1.mplay = FALSE_;
-#line 24175 ""
- commac_1.endmac = TRUE_;
-#line 24176 ""
- return 0;
-#line 24177 ""
- }
-#line 24178 ""
- if (c1ommac_1.ilmac == c1ommac_1.il2mac[commac_1.macnum - 1]) {
-
-/* Getting last line of macro. */
-
-#line 24182 ""
- ip2 = c1ommac_1.ip2mac[commac_1.macnum - 1];
-#line 24183 ""
- } else {
-
-/* Getting line before last line of macro. */
-
-#line 24187 ""
- ip2 = c1ommac_1.iplmac + inbuff_1.lbuf[c1ommac_1.ilmac - 1];
-#line 24188 ""
- }
-#line 24189 ""
- if (ip2 >= ip1) {
-#line 24190 ""
- s_copy(string, inbuff_1.bufq + (ip1 - 1), string_len, ip2 - (ip1
- - 1));
-#line 24191 ""
- } else {
-
-/* Kluge for when macro start is on a line by itself */
-
-#line 24195 ""
- s_copy(string, " ", string_len, (ftnlen)1);
-#line 24196 ""
- }
-#line 24197 ""
- ++c1ommac_1.ilmac;
-#line 24198 ""
- return 0;
-#line 24199 ""
- }
-#line 24200 ""
- return 0;
-} /* read10_ */
-
-doublereal readin_(char *lineq, integer *iccount, integer *nline, ftnlen
- lineq_len)
-{
- /* System generated locals */
- address a__1[3];
- integer i__1[3];
- real ret_val;
- char ch__1[27], ch__2[6], ch__3[1];
- icilist ici__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), s_wsle(cilist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer do_lio(integer *, integer *, char *, ftnlen), e_wsle(void),
- s_rsfi(icilist *), do_fio(integer *, char *, ftnlen), e_rsfi(void)
- ;
-
- /* Local variables */
- static integer i1, i2, icf;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static char durq[1];
- extern /* Subroutine */ int stop1_(void), getbuf_(char *, ftnlen),
- getchar_(char *, integer *, char *, ftnlen, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___1721 = { 0, 6, 0, 0, 0 };
-
-
-
-/* Reads a piece of setup data from file lineq, gets a new lineq from */
-/* file 10 (jobname.pmx) and increments nline if needed, passes over */
-/* comment lines */
-
-#line 24209 ""
-L4:
-#line 24209 ""
- if (*iccount == 128) {
-#line 24210 ""
-L1:
-#line 24210 ""
- getbuf_(lineq, (ftnlen)128);
-#line 24211 ""
- ++(*nline);
-#line 24212 ""
- if (*(unsigned char *)lineq == '%') {
-#line 24212 ""
- goto L1;
-#line 24212 ""
- }
-#line 24213 ""
- *iccount = 0;
-#line 24214 ""
- }
-#line 24215 ""
- ++(*iccount);
-
-/* Find next non-blank or end of line */
-
-#line 24219 ""
- for (*iccount = *iccount; *iccount <= 127; ++(*iccount)) {
-#line 24220 ""
- if (*(unsigned char *)&lineq[*iccount - 1] != ' ') {
-#line 24220 ""
- goto L3;
-#line 24220 ""
- }
-#line 24221 ""
-/* L2: */
-#line 24221 ""
- }
-
-/* If here, need to get a new line */
-
-#line 24225 ""
- *iccount = 128;
-#line 24226 ""
- goto L4;
-#line 24227 ""
-L3:
-
-/* iccount now points to start of number to read */
-
-#line 24231 ""
- i1 = *iccount;
-#line 24232 ""
-L5:
-#line 24232 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-
-/* Remember that getchar increments iccount, then reads a character. */
-
-#line 24236 ""
- if (i_indx("0123456789.-", durq, (ftnlen)12, (ftnlen)1) > 0) {
-#line 24236 ""
- goto L5;
-#line 24236 ""
- }
-#line 24237 ""
- i2 = *iccount - 1;
-#line 24238 ""
- if (i2 < i1) {
-#line 24239 ""
- s_wsle(&io___1721);
-/* Writing concatenation */
-#line 24239 ""
- i__1[0] = 7, a__1[0] = "Found \"";
-#line 24239 ""
- i__1[1] = 1, a__1[1] = durq;
-#line 24239 ""
- i__1[2] = 19, a__1[2] = "\" instead of number";
-#line 24239 ""
- s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)27);
-#line 24239 ""
- do_lio(&c__9, &c__1, ch__1, (ftnlen)27);
-#line 24239 ""
- e_wsle();
-#line 24240 ""
- stop1_();
-#line 24241 ""
- }
-#line 24242 ""
- icf = i2 - i1 + 49;
-#line 24243 ""
- ici__1.icierr = 0;
-#line 24243 ""
- ici__1.iciend = 0;
-#line 24243 ""
- ici__1.icirnum = 1;
-#line 24243 ""
- ici__1.icirlen = i2 - (i1 - 1);
-#line 24243 ""
- ici__1.iciunit = lineq + (i1 - 1);
-/* Writing concatenation */
-#line 24243 ""
- i__1[0] = 2, a__1[0] = "(f";
-#line 24243 ""
- chax_(ch__3, (ftnlen)1, &icf);
-#line 24243 ""
- i__1[1] = 1, a__1[1] = ch__3;
-#line 24243 ""
- i__1[2] = 3, a__1[2] = ".0)";
-#line 24243 ""
- ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)6), ch__2);
-#line 24243 ""
- s_rsfi(&ici__1);
-#line 24243 ""
- do_fio(&c__1, (char *)&ret_val, (ftnlen)sizeof(real));
-#line 24243 ""
- e_rsfi();
-#line 24244 ""
- return ret_val;
-} /* readin_ */
-
-/* Subroutine */ int readmeter_(char *lineq, integer *iccount, integer *
- mtrnum, integer *mtrden, ftnlen lineq_len)
-{
- /* System generated locals */
- address a__1[3];
- integer i__1, i__2[3];
- char ch__1[4], ch__2[1];
- icilist ici__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_rsfi(icilist *), do_fio(integer *, char *, ftnlen), e_rsfi(void)
- ;
-
- /* Local variables */
- static integer ns;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static char durq[1];
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen);
-
-#line 24249 ""
- i__1 = *iccount;
-#line 24249 ""
- if (i_indx(lineq + i__1, "/", *iccount + 3 - i__1, (ftnlen)1) == 0) {
-
-/* No slashes, so use old method */
-
-#line 24253 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 24254 ""
- if (*(unsigned char *)durq == '-') {
-
-/* Negative numerator is used only to printed; signals vertical slash */
-
-#line 24258 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 24259 ""
- *mtrnum = -(*(unsigned char *)durq - 48);
-#line 24260 ""
- } else if (*(unsigned char *)durq == 'o') {
-
-/* Numerator is EXACTLY 1 */
-
-#line 24264 ""
- *mtrnum = 1;
-#line 24265 ""
- } else {
-#line 24266 ""
- *mtrnum = *(unsigned char *)durq - 48;
-#line 24267 ""
- if (*mtrnum == 1) {
-
-/* Numerator is >9 */
-
-#line 24271 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 24272 ""
- *mtrnum = *(unsigned char *)durq - 38;
-#line 24273 ""
- }
-#line 24274 ""
- }
-#line 24275 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 24276 ""
- if (*(unsigned char *)durq == 'o') {
-#line 24277 ""
- *mtrden = 1;
-#line 24278 ""
- } else {
-#line 24279 ""
- *mtrden = *(unsigned char *)durq - 48;
-#line 24280 ""
- if (*mtrden == 1) {
-#line 24281 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 24282 ""
- *mtrden = *(unsigned char *)durq - 38;
-#line 24283 ""
- }
-#line 24284 ""
- }
-#line 24285 ""
- } else {
-
-/* Expect the form m[n1]/[n2]/[n3]/[n4] . Advance iccount by one from '/' or 'm' */
-
-#line 24289 ""
- ++(*iccount);
-#line 24290 ""
- ns = i_indx(lineq + (*iccount - 1), "/", 128 - (*iccount - 1), (
- ftnlen)1);
-#line 24291 ""
- ici__1.icierr = 0;
-#line 24291 ""
- ici__1.iciend = 0;
-#line 24291 ""
- ici__1.icirnum = 1;
-#line 24291 ""
- ici__1.icirlen = *iccount + ns - 2 - (*iccount - 1);
-#line 24291 ""
- ici__1.iciunit = lineq + (*iccount - 1);
-/* Writing concatenation */
-#line 24291 ""
- i__2[0] = 2, a__1[0] = "(i";
-#line 24291 ""
- i__1 = ns + 47;
-#line 24291 ""
- chax_(ch__2, (ftnlen)1, &i__1);
-#line 24291 ""
- i__2[1] = 1, a__1[1] = ch__2;
-#line 24291 ""
- i__2[2] = 1, a__1[2] = ")";
-#line 24291 ""
- ici__1.icifmt = (s_cat(ch__1, a__1, i__2, &c__3, (ftnlen)4), ch__1);
-#line 24291 ""
- s_rsfi(&ici__1);
-#line 24291 ""
- do_fio(&c__1, (char *)&(*mtrnum), (ftnlen)sizeof(integer));
-#line 24291 ""
- e_rsfi();
-
-/* Reset iccount to start of second integer */
-
-#line 24295 ""
- *iccount += ns;
-
-/* There must be either a slash or a blank at pos'n 2 or 3 */
-
-#line 24299 ""
- ns = i_indx(lineq + (*iccount - 1), "/", (ftnlen)3, (ftnlen)1);
-#line 24300 ""
- if (ns == 0) {
-#line 24300 ""
- ns = i_indx(lineq + (*iccount - 1), " ", (ftnlen)3, (ftnlen)1);
-#line 24300 ""
- }
-#line 24301 ""
- ici__1.icierr = 0;
-#line 24301 ""
- ici__1.iciend = 0;
-#line 24301 ""
- ici__1.icirnum = 1;
-#line 24301 ""
- ici__1.icirlen = *iccount + ns - 2 - (*iccount - 1);
-#line 24301 ""
- ici__1.iciunit = lineq + (*iccount - 1);
-/* Writing concatenation */
-#line 24301 ""
- i__2[0] = 2, a__1[0] = "(i";
-#line 24301 ""
- i__1 = ns + 47;
-#line 24301 ""
- chax_(ch__2, (ftnlen)1, &i__1);
-#line 24301 ""
- i__2[1] = 1, a__1[1] = ch__2;
-#line 24301 ""
- i__2[2] = 1, a__1[2] = ")";
-#line 24301 ""
- ici__1.icifmt = (s_cat(ch__1, a__1, i__2, &c__3, (ftnlen)4), ch__1);
-#line 24301 ""
- s_rsfi(&ici__1);
-#line 24301 ""
- do_fio(&c__1, (char *)&(*mtrden), (ftnlen)sizeof(integer));
-#line 24301 ""
- e_rsfi();
-
-/* Set iccount to last character used */
-
-#line 24305 ""
- *iccount = *iccount + ns - 1;
-#line 24306 ""
- }
-#line 24307 ""
- return 0;
-} /* readmeter_ */
-
-/* Subroutine */ int readnum_(char *lineq, integer *iccount, char *durq, real
- *fnum, ftnlen lineq_len, ftnlen durq_len)
-{
- /* System generated locals */
- address a__1[3];
- integer i__1[3];
- char ch__1[27], ch__2[6], ch__3[1];
- icilist ici__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), s_wsle(cilist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer do_lio(integer *, integer *, char *, ftnlen), e_wsle(void),
- s_rsfi(icilist *), do_fio(integer *, char *, ftnlen), e_rsfi(void)
- ;
-
- /* Local variables */
- static integer i1, i2, icf;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- extern /* Subroutine */ int stop1_(void), getchar_(char *, integer *,
- char *, ftnlen, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___1727 = { 0, 6, 0, 0, 0 };
-
-
-
-/* This reads a number starting at position iccount. Remember that on exit, */
-/* getchar leaves iccount at the last character retrieved. So must only */
-/* call this routine *after* detecting a number or decimal. */
-/* On exit, durq is next character after end of number. */
-
-#line 24318 ""
- i1 = *iccount;
-#line 24319 ""
-L1:
-#line 24319 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 24320 ""
- if (i_indx("0123456789.", durq, (ftnlen)11, (ftnlen)1) > 0) {
-#line 24320 ""
- goto L1;
-#line 24320 ""
- }
-#line 24321 ""
- i2 = *iccount - 1;
-#line 24322 ""
- if (i2 < i1) {
-#line 24323 ""
- s_wsle(&io___1727);
-/* Writing concatenation */
-#line 24323 ""
- i__1[0] = 7, a__1[0] = "Found \"";
-#line 24323 ""
- i__1[1] = 1, a__1[1] = durq;
-#line 24323 ""
- i__1[2] = 19, a__1[2] = "\" instead of number";
-#line 24323 ""
- s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)27);
-#line 24323 ""
- do_lio(&c__9, &c__1, ch__1, (ftnlen)27);
-#line 24323 ""
- e_wsle();
-#line 24324 ""
- stop1_();
-#line 24325 ""
- } else if (*(unsigned char *)&lineq[i1 - 1] == '.' && *(unsigned char *)&
- lineq[i2 - 1] == '.') {
-#line 24326 ""
- --i2;
-#line 24327 ""
- --(*iccount);
-#line 24328 ""
- }
-#line 24329 ""
- icf = i2 - i1 + 49;
-#line 24330 ""
- ici__1.icierr = 0;
-#line 24330 ""
- ici__1.iciend = 0;
-#line 24330 ""
- ici__1.icirnum = 1;
-#line 24330 ""
- ici__1.icirlen = i2 - (i1 - 1);
-#line 24330 ""
- ici__1.iciunit = lineq + (i1 - 1);
-/* Writing concatenation */
-#line 24330 ""
- i__1[0] = 2, a__1[0] = "(f";
-#line 24330 ""
- chax_(ch__3, (ftnlen)1, &icf);
-#line 24330 ""
- i__1[1] = 1, a__1[1] = ch__3;
-#line 24330 ""
- i__1[2] = 3, a__1[2] = ".0)";
-#line 24330 ""
- ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)6), ch__2);
-#line 24330 ""
- s_rsfi(&ici__1);
-#line 24330 ""
- do_fio(&c__1, (char *)&(*fnum), (ftnlen)sizeof(real));
-#line 24330 ""
- e_rsfi();
-#line 24331 ""
- return 0;
-} /* readnum_ */
-
-/* Subroutine */ int setbits_(integer *isdata, integer *iwidbit, integer *
- ishift, integer *ivalue)
-{
- /* Builtin functions */
- integer pow_ii(integer *, integer *), lbit_shift(integer, integer);
-
- /* Local variables */
- static integer ibase;
-
-
-/* Sets iwidbits of isdata, shifted by ishift, to ivalue */
-
-#line 24337 ""
- ibase = pow_ii(&c__2, iwidbit) - 1;
-#line 24338 ""
- *isdata = ~ lbit_shift(ibase, *ishift) & *isdata;
-#line 24339 ""
- *isdata |= lbit_shift(*ivalue, *ishift);
-#line 24340 ""
- return 0;
-} /* setbits_ */
-
-/* Subroutine */ int setbm2_(real *xelsk, integer *nnb, real *sumx, real *
- sumy, integer *ipb, integer *islope, integer *nolev1)
-{
- /* System generated locals */
- integer i__1;
- real r__1, r__2;
-
- /* Builtin functions */
- integer i_nint(real *), i_sign(integer *, integer *);
-
- /* Local variables */
- static real em;
- static integer ibc, inb, iul;
- static real beta, smin, delta, ybeam, ynote, sumxx, sumxy, deficit;
-
-
-/* The MEAN SQUARE slope algorithm */
-
-#line 24362 ""
- /* Parameter adjustments */
-#line 24362 ""
- --ipb;
-#line 24362 ""
- --xelsk;
-#line 24362 ""
-
-#line 24362 ""
- /* Function Body */
-#line 24362 ""
- ibc = all_1.ibmcnt[commvl_1.ivx - 1];
-#line 24363 ""
- sumxx = 0.f;
-#line 24364 ""
- sumxy = 0.f;
-#line 24365 ""
- i__1 = *nnb;
-#line 24365 ""
- for (inb = 1; inb <= i__1; ++inb) {
-/* Computing 2nd power */
-#line 24366 ""
- r__1 = xelsk[inb];
-#line 24366 ""
- sumxx += r__1 * r__1;
-#line 24367 ""
- sumxy += xelsk[inb] * all_1.nolev[commvl_1.ivx + ipb[inb] * 24 - 25];
-#line 24368 ""
-/* L2: */
-#line 24368 ""
- }
-#line 24369 ""
- delta = *nnb * sumxx - *sumx * *sumx;
-#line 24370 ""
- em = (*nnb * sumxy - *sumx * *sumy) / delta;
-#line 24371 ""
- r__1 = em * .5f * all_1.slfac;
-#line 24371 ""
- *islope = i_nint(&r__1);
-#line 24372 ""
- if (abs(*islope) > 9) {
-#line 24372 ""
- *islope = i_sign(&c__9, islope);
-#line 24372 ""
- }
-#line 24373 ""
- beta = (*sumy - *islope / all_1.slfac * *sumx) / *nnb;
-#line 24374 ""
- *nolev1 = i_nint(&beta);
-
-/* Check if any stems are too short */
-
-#line 24378 ""
- smin = 100.f;
-#line 24379 ""
- iul = -1;
-#line 24380 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u') {
-#line 24380 ""
- iul = 1;
-#line 24380 ""
- }
-#line 24381 ""
- i__1 = *nnb;
-#line 24381 ""
- for (inb = 1; inb <= i__1; ++inb) {
-#line 24382 ""
- ybeam = *nolev1 + iul * all_1.stemlen + *islope * xelsk[inb] /
- all_1.slfac;
-#line 24383 ""
- ynote = (real) all_1.nolev[commvl_1.ivx + ipb[inb] * 24 - 25];
-/* Computing MIN */
-#line 24384 ""
- r__1 = smin, r__2 = iul * (ybeam - ynote);
-#line 24384 ""
- smin = dmin(r__1,r__2);
-#line 24385 ""
-/* L4: */
-#line 24385 ""
- }
-#line 24386 ""
- if (smin < all_1.stemmin) {
-#line 24387 ""
- deficit = all_1.stemmin - smin;
-#line 24388 ""
- r__1 = *nolev1 + iul * deficit;
-#line 24388 ""
- *nolev1 = i_nint(&r__1);
-#line 24389 ""
- }
-#line 24390 ""
- return 0;
-} /* setbm2_ */
-
-/* Subroutine */ int setmac_(char *lineq, integer *iccount, integer *ibarcnt,
- integer *ibaroff, integer *nbars, char *charq, char *durq, integer *
- ivx, integer *nline, ftnlen lineq_len, ftnlen charq_len, ftnlen
- durq_len)
-{
- /* System generated locals */
- integer i__1, i__2;
-
- /* Builtin functions */
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen), i_indx(char *, char *, ftnlen, ftnlen), i_nint(real *)
- ;
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static real fnum;
- static integer ndxm;
- extern /* Subroutine */ int stop1_(void), m1rec1_(char *, integer *,
- integer *, integer *, integer *, integer *, ftnlen), getbuf_(char
- *, ftnlen), errmsg_(char *, integer *, integer *, char *, ftnlen,
- ftnlen), readnum_(char *, integer *, char *, real *, ftnlen,
- ftnlen), g1etchar_(char *, integer *, char *, ftnlen, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___1742 = { 0, 6, 0, 0, 0 };
- static cilist io___1743 = { 0, 6, 0, 0, 0 };
- static cilist io___1744 = { 0, 6, 0, 0, 0 };
-
-
-
-/* Macro action */
-
-#line 24403 ""
- g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 24404 ""
- if (*(unsigned char *)charq == 'S' && *ivx != 1) {
-#line 24405 ""
- s_wsle(&io___1742);
-#line 24405 ""
- e_wsle();
-#line 24406 ""
- s_wsle(&io___1743);
-#line 24406 ""
- e_wsle();
-#line 24407 ""
- s_wsle(&io___1744);
-#line 24407 ""
- do_lio(&c__9, &c__1, "*********WARNING*********", (ftnlen)25);
-#line 24407 ""
- e_wsle();
-#line 24408 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 24408 ""
- errmsg_(lineq, iccount, &i__1, "\"MS...\" only put in parts by scor2"\
- "prt if in voice #1!", (ftnlen)128, (ftnlen)53);
-#line 24410 ""
- }
-#line 24411 ""
- if (i_indx("RSP ", charq, (ftnlen)4, (ftnlen)1) == 0) {
-#line 24412 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 24412 ""
- errmsg_(lineq, iccount, &i__1, "Illegal character after \"M\" (macro"\
- ")!", (ftnlen)128, (ftnlen)36);
-#line 24414 ""
- stop1_();
-#line 24415 ""
- } else if (*(unsigned char *)charq != ' ') {
-
-/* Record or playback a macro. Get the number of the macro. */
-
-#line 24419 ""
- g1etchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 24420 ""
- if (i_indx("123456789", durq, (ftnlen)9, (ftnlen)1) == 0) {
-#line 24421 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 24421 ""
- errmsg_(lineq, iccount, &i__1, "Must input number after \"MR\""\
- ",\"MP\", or \"MS\"!", (ftnlen)128, (ftnlen)43);
-#line 24423 ""
- stop1_();
-#line 24424 ""
- }
-#line 24425 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 24426 ""
- commac_1.macnum = i_nint(&fnum);
-#line 24427 ""
- if (*(unsigned char *)durq != ' ') {
-#line 24428 ""
- i__1 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 24428 ""
- errmsg_(lineq, iccount, &i__1, "Macro number must be followed by"\
- " a blank!", (ftnlen)128, (ftnlen)41);
-#line 24430 ""
- stop1_();
-#line 24431 ""
- }
-#line 24432 ""
- if (i_indx("RS", charq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Record or save a macro */
-
-#line 24436 ""
- if (commac_1.macnum < 1 || commac_1.macnum > 20) {
-#line 24437 ""
- i__1 = *iccount - 1;
-#line 24437 ""
- i__2 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 24437 ""
- errmsg_(lineq, &i__1, &i__2, "Macro number not in range 1-20!"
- , (ftnlen)128, (ftnlen)31);
-#line 24439 ""
- stop1_();
-#line 24440 ""
- }
-#line 24441 ""
- commac_1.macuse = bit_set(commac_1.macuse,commac_1.macnum);
-#line 24442 ""
- if (*(unsigned char *)charq == 'R') {
-#line 24443 ""
- m1rec1_(lineq, iccount, ibarcnt, ibaroff, nbars, &ndxm, (
- ftnlen)128);
-#line 24444 ""
- } else if (*(unsigned char *)charq == 'S') {
-
-/* Save (Record but don't activate) */
-
-#line 24448 ""
-L1:
-#line 24448 ""
- m1rec1_(lineq, iccount, ibarcnt, ibaroff, nbars, &ndxm, (
- ftnlen)128);
-#line 24449 ""
- if (commac_1.mrecord) {
-#line 24450 ""
- getbuf_(lineq, (ftnlen)128);
-#line 24451 ""
- ++(*nline);
-#line 24452 ""
- *iccount = 0;
-#line 24453 ""
- goto L1;
-#line 24454 ""
- }
-#line 24455 ""
- *iccount = *iccount + ndxm + 1;
-#line 24456 ""
- }
-#line 24457 ""
- } else {
-
-/* Playback the macro */
-
-#line 24461 ""
- if (! bit_test(commac_1.macuse,commac_1.macnum)) {
-#line 24462 ""
- i__1 = *iccount - 1;
-#line 24462 ""
- i__2 = *ibarcnt - *ibaroff + *nbars + 1;
-#line 24462 ""
- errmsg_(lineq, &i__1, &i__2, "Cannot play a macro that has n"\
- "ot been recorded!", (ftnlen)128, (ftnlen)47);
-#line 24464 ""
- stop1_();
-#line 24465 ""
- }
-#line 24466 ""
- commac_1.icchold = *iccount;
-#line 24467 ""
- s_copy(commac_1.lnholdq, lineq, (ftnlen)128, (ftnlen)128);
-#line 24468 ""
- *iccount = 128;
-#line 24469 ""
- commac_1.mplay = TRUE_;
-#line 24470 ""
- c1ommac_1.ilmac = c1ommac_1.il1mac[commac_1.macnum - 1];
-#line 24471 ""
- }
-#line 24472 ""
- }
-#line 24473 ""
- return 0;
-} /* setmac_ */
-
-/* Subroutine */ int setmeter_(integer *mtrnuml, integer *mtrdenl, integer *
- ibmtyp, integer *ibmrep)
-{
-
-/* Sets last 2 args depending on 1st 2, (logical) num, denom. */
-/* ibmtyp = 1, 2, or 3 defines set of masks for beam groupings. */
-/* 1: all duple meters */
-/* 2: triple w/ denom=4, subdivide in groups of 2 8ths */
-/* 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 24484 ""
- if (*mtrdenl == 4) {
-#line 24485 ""
- if (*mtrnuml % 3 == 0) {
-#line 24486 ""
- *ibmtyp = 2;
-#line 24487 ""
- *ibmrep = *mtrnuml / 3;
-#line 24488 ""
- } else {
-#line 24489 ""
- *ibmtyp = 1;
-#line 24490 ""
- *ibmrep = *mtrnuml / 2;
-#line 24491 ""
- }
-#line 24492 ""
- } else if (*mtrdenl == 2) {
-#line 24493 ""
- *ibmtyp = 1;
-#line 24494 ""
- if (*mtrnuml == 3) {
-#line 24495 ""
- *ibmrep = 3;
-#line 24496 ""
- } else {
-#line 24497 ""
- *ibmrep = (*mtrnuml << 1) / *mtrdenl;
-#line 24498 ""
- }
-#line 24499 ""
- } else if (*mtrdenl == 8 && (*mtrnuml == 8 || *mtrnuml == 4)) {
-
-/* Added 170726 */
-
-#line 24503 ""
- *ibmtyp = 1;
-#line 24504 ""
- *ibmrep = *mtrnuml / 4;
-#line 24505 ""
- } else {
-
-/* Assumes mtrdenl=8 and 3/8, 6/8, 9/8, or 12/8 */
-
-#line 24509 ""
- *ibmtyp = 3;
-#line 24510 ""
- *ibmrep = *mtrnuml / 3;
-#line 24511 ""
- }
-
-/* Reset so we don't keep writing new meters */
-
-#line 24515 ""
- *mtrnuml = 0;
-
-/* Prevent ibmrep=0. Needed for odd bars, e.g. 1/8, where beams don't matter */
-
-#line 24519 ""
- *ibmrep = max(*ibmrep,1);
-#line 24520 ""
- return 0;
-} /* setmeter_ */
-
-/* Subroutine */ int setupb_(real *xelsk, integer *nnb, real *sumx, real *
- sumy, integer *ipb, real *smed, integer *ixrest)
-{
- /* System generated locals */
- integer i__1, i__2;
- real r__1, r__2;
-
- /* Builtin functions */
- double r_sign(real *, real *);
- integer i_nint(real *), i_sign(integer *, integer *);
- double sqrt(doublereal);
-
- /* Local variables */
- static integer i__, j;
- static real t;
- static integer n1, ip;
- static real yb1;
- static integer ibc, inb, jnb;
- static real off;
- static integer nsc, iul;
- static real syb, sum, ssq, off1, off2;
- static logical l1ng, l2ng;
- static real beta, smin, eskz0;
- static integer ipxt1;
- extern integer ncmid_(integer *, integer *);
- static real ybeam, xboff;
- static integer ndoub;
- static real slope[800];
- static integer issbs;
- static real ynote;
- extern /* Subroutine */ int setbm2_(real *, integer *, real *, real *,
- integer *, integer *, integer *);
- static integer nscmid;
- static real dnolev;
- static integer iplast, nolevo;
- static real xnolev2, deficit;
- static integer ipxtmid;
-
-
-/* The outer combo algorithm */
-
-#line 24554 ""
- /* Parameter adjustments */
-#line 24554 ""
- --ipb;
-#line 24554 ""
- --xelsk;
-#line 24554 ""
-
-#line 24554 ""
- /* Function Body */
-#line 24554 ""
- ibc = all_1.ibmcnt[commvl_1.ivx - 1];
-#line 24555 ""
- comxtup_2.nxtinbm[commvl_1.ivx - 1] = 0;
-#line 24556 ""
- 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 24561 ""
- comxtup_2.nssb[commvl_1.ivx - 1] = 0;
-#line 24562 ""
- comxtup_2.issb[commvl_1.ivx - 1] = 0;
-
-/* Set flag for xtup beam starting with rest (no others can start with rest) */
-
-#line 24566 ""
- if (bit_test(all_1.irest[commvl_1.ivx + all_1.ipo[n1 - 1] * 24 - 25],0)) {
-#line 24566 ""
- *ixrest = 1;
-#line 24566 ""
- }
-
-/* Figure how many elemskips to each note. Use the list, counting only non-rests. */
-
-#line 24570 ""
- eskz0 = all_1.eskz[commvl_1.ivx + all_1.ibm1[commvl_1.ivx + ibc * 24 - 25]
- * 24 - 25];
-#line 24571 ""
- *nnb = 0;
-#line 24572 ""
- *sumx = 0.f;
-#line 24573 ""
- *sumy = 0.f;
-#line 24574 ""
- ipxt1 = 0;
-#line 24575 ""
- iplast = all_1.ibm2[commvl_1.ivx + ibc * 24 - 25];
-#line 24576 ""
- i__1 = iplast;
-#line 24576 ""
- for (ip = all_1.ibm1[commvl_1.ivx + ibc * 24 - 25]; ip <= i__1; ++ip) {
-#line 24577 ""
- if (! bit_test(all_1.irest[commvl_1.ivx + ip * 24 - 25],0)) {
-#line 24578 ""
- ++(*nnb);
-#line 24579 ""
- ipb[*nnb] = ip;
-#line 24580 ""
- xelsk[*nnb] = all_1.eskz[commvl_1.ivx + ip * 24 - 25] - eskz0;
-#line 24581 ""
- *sumx += xelsk[*nnb];
-#line 24582 ""
- *sumy += all_1.nolev[commvl_1.ivx + ipb[*nnb] * 24 - 25];
-#line 24583 ""
- 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 24588 ""
- ++comxtup_2.nssb[commvl_1.ivx - 1];
-#line 24589 ""
- comxtup_2.lev1ssb[commvl_1.ivx + comxtup_2.nssb[commvl_1.ivx
- - 1] * 24 - 25] = *nnb;
-#line 24590 ""
- }
-#line 24591 ""
- }
-
-/* New xtup stuff here. Final object is to get distance from start of xtup */
-/* to number. xtinbm counts xtups in this beam only. mtupv is the printed */
-/* 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 24598 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],18)) {
-#line 24598 ""
- ++ndoub;
-#line 24598 ""
- }
-#line 24599 ""
- if (ipxt1 == 0 && all_1.nodur[commvl_1.ivx + ip * 24 - 25] == 0) {
-
-/* Xtup is starting here */
-
-#line 24603 ""
- ++comxtup_2.nxtinbm[commvl_1.ivx - 1];
-#line 24604 ""
- ipxt1 = ip;
-#line 24605 ""
- if (bit_test(all_1.nacc[commvl_1.ivx + ip * 24 - 25],18)) {
-#line 24606 ""
- ndoub = 1;
-#line 24607 ""
- } else {
-#line 24608 ""
- ndoub = 0;
-#line 24609 ""
- }
-#line 24610 ""
- } 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 24614 ""
- 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 24618 ""
- 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 24622 ""
- ipxtmid = (ip + ipxt1) / 2;
-#line 24623 ""
- 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 24624 ""
- if (comxtup_2.ntupv[commvl_1.ivx + comxtup_2.nxtinbm[commvl_1.ivx
- - 1] * 24 - 25] % 2 == 0) {
-#line 24624 ""
- 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 24624 ""
- }
-#line 24627 ""
- ipxt1 = 0;
-#line 24628 ""
- }
-#line 24629 ""
-/* L2: */
-#line 24629 ""
- }
-
-/* Reset nxtinbm for use as counter as #'s are posted by putxtn(..) */
-
-#line 24633 ""
- comxtup_2.nxtinbm[commvl_1.ivx - 1] = 0;
-#line 24634 ""
- *smed = 0.f;
-/* if (.not.btest(islur(ivx,ipb(1)),2)) then */
-#line 24636 ""
- if (! bit_test(all_1.islur[commvl_1.ivx + ipb[1] * 24 - 25],2) && *nnb >
- 1) {
-
-/* No forced 0 slope */
-
-/* if (nnb .eq. 1) go to 6 */
-#line 24641 ""
- nsc = 0;
-#line 24642 ""
- i__1 = *nnb - 1;
-#line 24642 ""
- for (inb = 1; inb <= i__1; ++inb) {
-#line 24643 ""
- i__2 = *nnb;
-#line 24643 ""
- for (jnb = inb + 1; jnb <= i__2; ++jnb) {
-#line 24644 ""
- ++nsc;
-#line 24645 ""
- 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 24647 ""
- if ((r__1 = slope[nsc - 1], dabs(r__1)) < 1e-4f) {
-#line 24648 ""
- ++nsc;
-#line 24649 ""
- slope[nsc - 1] = slope[nsc - 2];
-#line 24650 ""
- ++nsc;
-#line 24651 ""
- slope[nsc - 1] = slope[nsc - 2];
-#line 24652 ""
- }
-#line 24653 ""
-/* L5: */
-#line 24653 ""
- }
-#line 24653 ""
- }
-#line 24654 ""
- if (nsc == 1) {
-#line 24655 ""
- *smed = slope[0];
-#line 24656 ""
- goto L6;
-#line 24657 ""
- }
-#line 24658 ""
- nscmid = nsc / 2 + 1;
-#line 24659 ""
- i__2 = nscmid;
-#line 24659 ""
- for (i__ = 1; i__ <= i__2; ++i__) {
-#line 24660 ""
- i__1 = nsc;
-#line 24660 ""
- for (j = i__ + 1; j <= i__1; ++j) {
-#line 24661 ""
- if (slope[j - 1] < slope[i__ - 1]) {
-#line 24662 ""
- t = slope[j - 1];
-#line 24663 ""
- slope[j - 1] = slope[i__ - 1];
-#line 24664 ""
- slope[i__ - 1] = t;
-#line 24665 ""
- }
-#line 24666 ""
-/* L7: */
-#line 24666 ""
- }
-#line 24666 ""
- }
-#line 24667 ""
- *smed = slope[nscmid - 1];
-#line 24668 ""
- if (nsc == nsc / 2 << 1) {
-
-/* Even number of slopes in the list, so median is ambiguous */
-
-#line 24672 ""
- 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 24676 ""
- *smed = slope[nscmid - 2];
-#line 24677 ""
- } 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 24681 ""
- sum = 0.f;
-#line 24682 ""
- i__1 = nsc;
-#line 24682 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 24683 ""
- sum += slope[i__ - 1];
-#line 24684 ""
-/* L1: */
-#line 24684 ""
- }
-#line 24685 ""
- *smed = r_sign(smed, &sum);
-#line 24686 ""
- }
-#line 24687 ""
- }
-#line 24688 ""
-L6:
-#line 24689 ""
- r__1 = *smed * .5f * all_1.slfac;
-#line 24689 ""
- comxtup_2.islope[commvl_1.ivx - 1] = i_nint(&r__1);
-#line 24690 ""
- if ((i__1 = comxtup_2.islope[commvl_1.ivx - 1], abs(i__1)) > 9) {
-#line 24690 ""
- comxtup_2.islope[commvl_1.ivx - 1] = i_sign(&c__9, &
- comxtup_2.islope[commvl_1.ivx - 1]);
-#line 24690 ""
- }
-#line 24692 ""
- } else {
-
-/* Forced horizontal beam */
-
-#line 24696 ""
- comxtup_2.islope[commvl_1.ivx - 1] = 0;
-#line 24697 ""
- }
-#line 24698 ""
- beta = (*sumy - comxtup_2.islope[commvl_1.ivx - 1] / all_1.slfac * *sumx)
- / *nnb;
-
-/* If ixrest>0, this is a virtual nolev1 at location of rest. Will first use */
-/* as is for placing xtup number and/or bracket, then reset it for start of */
-/* actual beam */
-
-#line 24704 ""
- comxtup_2.nolev1[commvl_1.ivx - 1] = i_nint(&beta);
-
-/* Check if any stems are too short */
-
-#line 24708 ""
- smin = 100.f;
-#line 24709 ""
- iul = -1;
-#line 24710 ""
- if (*(unsigned char *)&all_1.ulq[commvl_1.ivx + ibc * 24 - 25] == 'u') {
-#line 24710 ""
- iul = 1;
-#line 24710 ""
- }
-#line 24711 ""
- ssq = 0.f;
-#line 24712 ""
- syb = 0.f;
-#line 24713 ""
- 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 24715 ""
- i__1 = *nnb;
-#line 24715 ""
- for (inb = 1; inb <= i__1; ++inb) {
-#line 24716 ""
- 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);
-#line 24718 ""
- syb += ybeam;
-#line 24719 ""
- ynote = (real) all_1.nolev[commvl_1.ivx + ipb[inb] * 24 - 25];
-#line 24720 ""
- off = ybeam - ynote;
-#line 24721 ""
- if (inb == 1) {
-#line 24722 ""
- off1 = off;
-#line 24723 ""
- } else if (inb == *nnb) {
-#line 24724 ""
- off2 = off;
-#line 24725 ""
- }
-#line 24726 ""
- ssq += off * off;
-/* Computing MIN */
-#line 24727 ""
- r__1 = smin, r__2 = iul * off;
-#line 24727 ""
- smin = dmin(r__1,r__2);
-#line 24728 ""
-/* L4: */
-#line 24728 ""
- }
-#line 24729 ""
- dnolev = 0.f;
-#line 24730 ""
- if (smin < all_1.stemmin) {
-#line 24731 ""
- deficit = all_1.stemmin - smin;
-#line 24732 ""
- nolevo = comxtup_2.nolev1[commvl_1.ivx - 1];
-#line 24733 ""
- r__1 = comxtup_2.nolev1[commvl_1.ivx - 1] + iul * deficit;
-#line 24733 ""
- comxtup_2.nolev1[commvl_1.ivx - 1] = i_nint(&r__1);
-#line 24734 ""
- dnolev = (real) (comxtup_2.nolev1[commvl_1.ivx - 1] - nolevo);
-#line 24735 ""
- off1 += dnolev;
-#line 24736 ""
- off2 += dnolev;
-#line 24737 ""
- }
-/* Computing 2nd power */
-#line 24738 ""
- r__1 = dnolev;
-#line 24738 ""
- ssq = ssq + dnolev * 2 * (syb - *sumy) + r__1 * r__1;
-#line 24739 ""
- 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] *
- 24 - 25],2) && *nnb != 1) {
-/* * .and. .not.btest(islur(ivx,ipb(1)),2)) then */
-
-/* The first check is to save trouble of putting xtup's in setbm2. */
-/* 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 24749 ""
- setbm2_(&xelsk[1], nnb, sumx, sumy, &ipb[1], &comxtup_2.islope[
- commvl_1.ivx - 1], &comxtup_2.nolev1[commvl_1.ivx - 1]);
-#line 24750 ""
- }
-
-/* Check if beam starts or ends too high or low. */
-
-#line 24754 ""
- xboff = combmh_1.bmhgt * ((15 & all_1.mult[commvl_1.ivx + ipb[1] * 24 -
- 25]) - 9);
-#line 24755 ""
- l1ng = iul * (comxtup_2.nolev1[commvl_1.ivx - 1] - ncmid_(&all_1.iv, &ipb[
- 1])) + xboff + 7 < 0.f;
-#line 24756 ""
- xnolev2 = comxtup_2.nolev1[commvl_1.ivx - 1] + comxtup_2.islope[
- commvl_1.ivx - 1] / all_1.slfac * xelsk[*nnb];
-#line 24757 ""
- l2ng = iul * (xnolev2 - ncmid_(&all_1.iv, &ipb[*nnb])) + xboff + 7 < 0.f;
-#line 24758 ""
- if (l1ng || l2ng) {
-
-/* Need to correct start or stop, also slope */
-
-#line 24762 ""
- if (l1ng) {
-#line 24763 ""
- r__1 = ncmid_(&all_1.iv, &ipb[1]) - (xboff + 7.f) * iul;
-#line 24763 ""
- comxtup_2.nolev1[commvl_1.ivx - 1] = i_nint(&r__1);
-#line 24764 ""
- }
-#line 24765 ""
- if (l2ng) {
-#line 24766 ""
- r__1 = ncmid_(&all_1.iv, &ipb[*nnb]) - (xboff + 7.f) * iul;
-#line 24766 ""
- xnolev2 = (real) i_nint(&r__1);
-#line 24767 ""
- }
-
-/* Since one or the other end has changed, need to change slope */
-
-/* if (.not.btest(islur(ivx,ipb(1)),2)) */
-#line 24772 ""
- if (! bit_test(all_1.islur[commvl_1.ivx + ipb[1] * 24 - 25],2) && *
- nnb != 1) {
-#line 24772 ""
- r__1 = all_1.slfac * (xnolev2 - comxtup_2.nolev1[commvl_1.ivx - 1]
- ) / xelsk[*nnb];
-#line 24772 ""
- comxtup_2.islope[commvl_1.ivx - 1] = i_nint(&r__1);
-#line 24772 ""
- }
-#line 24774 ""
- }
-#line 24775 ""
- if (comxtup_2.nssb[commvl_1.ivx - 1] > 0) {
-
-/* This is a single-slope beam group. Store start heights for later segs. */
-
-#line 24779 ""
- i__1 = comxtup_2.nssb[commvl_1.ivx - 1];
-#line 24779 ""
- for (issbs = 1; issbs <= i__1; ++issbs) {
-#line 24780 ""
- 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 24782 ""
-/* L3: */
-#line 24782 ""
- }
-#line 24783 ""
- }
-#line 24784 ""
- return 0;
-} /* setupb_ */
-
-/* Subroutine */ int sortpoe_(integer *nsyst, real *poe, integer *ipoe)
-{
- /* System generated locals */
- integer i__1, i__2;
-
- /* Local variables */
- static integer io1, io2, iord, itemp;
-
-
-/* Initialize ipoe: */
-
-#line 24793 ""
- /* Parameter adjustments */
-#line 24793 ""
- --ipoe;
-#line 24793 ""
- --poe;
-#line 24793 ""
-
-#line 24793 ""
- /* Function Body */
-#line 24793 ""
- i__1 = *nsyst;
-#line 24793 ""
- for (iord = 1; iord <= i__1; ++iord) {
-#line 24794 ""
- ipoe[iord] = iord;
-#line 24795 ""
-/* L3: */
-#line 24795 ""
- }
-
-/* 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 24800 ""
- i__1 = *nsyst - 1;
-#line 24800 ""
- for (io1 = 1; io1 <= i__1; ++io1) {
-#line 24801 ""
- i__2 = *nsyst;
-#line 24801 ""
- for (io2 = io1 + 1; io2 <= i__2; ++io2) {
-#line 24802 ""
- if (poe[ipoe[io1]] > poe[ipoe[io2]]) {
-
-/* Interchange the indices */
-
-#line 24806 ""
- itemp = ipoe[io1];
-#line 24807 ""
- ipoe[io1] = ipoe[io2];
-#line 24808 ""
- ipoe[io2] = itemp;
-#line 24809 ""
- }
-#line 24810 ""
-/* L5: */
-#line 24810 ""
- }
-#line 24811 ""
-/* L4: */
-#line 24811 ""
- }
-#line 24812 ""
- return 0;
-} /* sortpoe_ */
-
-/* Subroutine */ int spsslur_(char *lineq, integer *iccount, integer *iv,
- integer *kv, integer *ip, integer *isdat1, integer *isdat2, integer *
- isdat3, integer *isdat4, integer *nsdat, logical *notcrd, integer *
- nolev, char *starter, ftnlen lineq_len, ftnlen starter_len)
-{
- /* System generated locals */
- integer i__1, i__2;
- real r__1;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), s_cmp(char *, char *,
- ftnlen, ftnlen), i_nint(real *);
-
- /* Local variables */
- extern integer igetbits_(integer *, integer *, integer *);
- static integer ilb12;
- static real fnum;
- static char dumq[1], durq[1];
- static integer ihoff, isdat, ivoff, icurv1, idcode, nolevc, numint;
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen), readnum_(char *, integer *, char *, real *, ftnlen,
- ftnlen), setbits_(integer *, integer *, integer *, integer *);
-
-
-/* Reads in slur data. Record all h/v-shifts for non-chords, user-specified */
-/* ones for chords. */
-/* 5/26/02 This subr is called ONLY for postscript slurs. */
-
-/* See subroutine doslur for bit values in isdat1,2,3 */
-
-
-/* Counter for signed integers. 1st is height, 2nd is horiz, 3rd is curve */
-
-#line 24837 ""
- /* Parameter adjustments */
-#line 24837 ""
- --isdat4;
-#line 24837 ""
- --isdat3;
-#line 24837 ""
- --isdat2;
-#line 24837 ""
- --isdat1;
-#line 24837 ""
-
-#line 24837 ""
- /* Function Body */
-#line 24837 ""
- numint = 0;
-#line 24838 ""
- ivoff = 0;
-#line 24839 ""
- ihoff = 0;
-#line 24840 ""
- ++(*nsdat);
-#line 24841 ""
- if (*(unsigned char *)starter == '{' || *(unsigned char *)starter == '}')
- {
-#line 24841 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],3);
-#line 24841 ""
- }
-#line 24843 ""
- setbits_(&isdat1[*nsdat], &c__5, &c__13, iv);
-#line 24844 ""
- i__1 = *kv - 1;
-#line 24844 ""
- setbits_(&isdat1[*nsdat], &c__1, &c__12, &i__1);
-#line 24845 ""
- setbits_(&isdat1[*nsdat], &c__8, &c__3, ip);
-#line 24846 ""
- isdat3[*nsdat] = 0;
-#line 24847 ""
- isdat4[*nsdat] = 0;
-#line 24848 ""
- ilb12 = 0;
-
-/* Get ID code */
-
-/* flag for tweaks of 1st or 2nd (0|1) seg of linebreak slur */
-#line 24852 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-/* if (index('uldtb+-hfnHps ',durq) .gt. 0) then */
-#line 24854 ""
- if (i_indx("uldtb+-hfnHpsv ", durq, (ftnlen)15, (ftnlen)1) > 0) {
-
-/* Null id. Note for ps slurs, 'H' cannot be an ID */
-
-#line 24858 ""
- --(*iccount);
-#line 24859 ""
- if (*(unsigned char *)&lineq[*iccount - 1] == 't') {
-#line 24860 ""
- idcode = 1;
-#line 24861 ""
- } else {
-#line 24862 ""
- idcode = 32;
-#line 24863 ""
- }
-#line 24864 ""
- } else {
-
-/* Set explicit idcode */
-
-#line 24868 ""
- idcode = *(unsigned char *)durq;
-#line 24869 ""
- i__1 = *iccount - 2;
-#line 24869 ""
- if (s_cmp(lineq + i__1, "t", *iccount - 1 - i__1, (ftnlen)1) == 0) {
-
-/* Make t[ID] look like s[ID]t */
-
-#line 24873 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],3);
-#line 24874 ""
- }
-#line 24875 ""
- i__1 = *iccount;
-#line 24875 ""
- if (s_cmp(lineq + i__1, "x", *iccount + 1 - i__1, (ftnlen)1) == 0) {
-
-/* Flag for 2-voice, indexed slurs */
-
-#line 24879 ""
- ++(*iccount);
-#line 24880 ""
- setbits_(&isdat1[*nsdat], &c__1, &c__1, &c__1);
-#line 24881 ""
- }
-#line 24882 ""
- }
-#line 24883 ""
- setbits_(&isdat1[*nsdat], &c__7, &c__19, &idcode);
-
-/* Set start/stop: look thru list from end for same idcode,iv,kv */
-
-#line 24887 ""
- for (isdat = *nsdat - 1; isdat >= 1; --isdat) {
-#line 24888 ""
- 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) || bit_test(isdat1[
- isdat],1))) {
-/* * kv-1 .eq. igetbits(isdat1(isdat),1,12)) then */
-
-/* Matched idcode & ivx. On/off?. If on, new is turnoff, leave bit 11 at 0. */
-
-#line 24896 ""
- if (bit_test(isdat1[isdat],11)) {
-#line 24896 ""
- goto L3;
-#line 24896 ""
- }
-
-/* Found slur is a turnoff, so new one is a turnon. Jump down to set bit */
-
-#line 24900 ""
- goto L4;
-#line 24901 ""
- }
-#line 24902 ""
-/* L2: */
-#line 24902 ""
- }
-
-/* If here, this is turnon. */
-
-#line 24906 ""
-L4:
-#line 24907 ""
- isdat1[*nsdat] = bit_set(isdat1[*nsdat],11);
-#line 24908 ""
-L3:
-
-/* Now done with initial turnon- or turnoff-specifics. */
-
-#line 24912 ""
- if (i_nint(&comslur_1.slurcurve) != 0 && bit_test(isdat1[*nsdat],11)) {
-
-/* There's a default curvature tweak */
-
-#line 24916 ""
- icurv1 = i_nint(&comslur_1.slurcurve) + 3;
-#line 24917 ""
- if (icurv1 == 2) {
-#line 24917 ""
- icurv1 = 1;
-#line 24917 ""
- }
-#line 24918 ""
- isdat3[*nsdat] = bit_set(isdat3[*nsdat],0);
-#line 24919 ""
- i__1 = icurv1 + 32;
-#line 24919 ""
- setbits_(&isdat3[*nsdat], &c__6, &c__2, &i__1);
-#line 24920 ""
- }
-
-/* Loop for rest of input */
-
-#line 24924 ""
-L1:
-#line 24924 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 24925 ""
- if (i_indx("uld", durq, (ftnlen)3, (ftnlen)1) > 0) {
-
-/* Force direction */
-
-#line 24929 ""
- isdat1[*nsdat] = bit_set(isdat1[*nsdat],26);
-#line 24930 ""
- if (*(unsigned char *)durq == 'u') {
-#line 24930 ""
- isdat1[*nsdat] = bit_set(isdat1[*nsdat],27);
-#line 24930 ""
- }
-#line 24931 ""
- goto L1;
-#line 24932 ""
- } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 24933 ""
- ++numint;
-#line 24934 ""
- if (numint == 1) {
-
-/* Vertical offset */
-
-#line 24938 ""
- ++(*iccount);
-#line 24939 ""
- readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 24940 ""
- --(*iccount);
-#line 24941 ""
- ivoff = i_nint(&fnum);
-#line 24942 ""
- if (*(unsigned char *)durq == '-') {
-#line 24942 ""
- ivoff = -ivoff;
-#line 24942 ""
- }
-#line 24943 ""
- } else if (numint == 2) {
-
-/* Horizontal offset */
-
-#line 24947 ""
- ++(*iccount);
-#line 24948 ""
- readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 24949 ""
- --(*iccount);
-
-/* fnum is abs(hshift), must be 0 to 6.3 */
-
-#line 24953 ""
- ihoff = fnum * 10 + .5f;
-#line 24954 ""
- if (*(unsigned char *)durq == '-') {
-#line 24954 ""
- ihoff = -ihoff;
-#line 24954 ""
- }
-
-/* Later will set bits to 1...127 to represent -6.3,...+6.3 */
-
-#line 24958 ""
- } else {
-
-/* Must be the 3rd signed integer, so it's a curve specification */
-
-#line 24962 ""
- isdat3[*nsdat] = bit_set(isdat3[*nsdat],0);
-#line 24963 ""
- ++(*iccount);
-#line 24964 ""
- readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 24965 ""
- icurv1 = i_nint(&fnum);
-#line 24966 ""
- if (*(unsigned char *)durq == '-') {
-#line 24966 ""
- icurv1 = -icurv1;
-#line 24966 ""
- }
-#line 24967 ""
- i__1 = icurv1 + 32;
-#line 24967 ""
- setbits_(&isdat3[*nsdat], &c__6, &c__2, &i__1);
-#line 24968 ""
- if (*(unsigned char *)dumq != ':') {
-
-/* Back up the pointer and loop for more input */
-
-#line 24972 ""
- --(*iccount);
-#line 24973 ""
- } else {
-
-/* Expect two single digits as parameters for curve */
-
-#line 24977 ""
- isdat3[*nsdat] = bit_set(isdat3[*nsdat],1);
-#line 24978 ""
- i__1 = *iccount;
-#line 24978 ""
- i__2 = *(unsigned char *)&lineq[i__1] - 48;
-#line 24978 ""
- setbits_(&isdat3[*nsdat], &c__3, &c__8, &i__2);
-#line 24980 ""
- i__1 = *iccount + 1;
-#line 24980 ""
- i__2 = *(unsigned char *)&lineq[i__1] - 48;
-#line 24980 ""
- setbits_(&isdat3[*nsdat], &c__3, &c__11, &i__2);
-#line 24982 ""
- *iccount += 2;
-#line 24983 ""
- }
-#line 24984 ""
- }
-#line 24985 ""
- goto L1;
-#line 24986 ""
- } else if (*(unsigned char *)durq == 't') {
-#line 24987 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],3);
-#line 24988 ""
- goto L1;
-#line 24989 ""
- } else if (*(unsigned char *)durq == 'b') {
-#line 24990 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],4);
-#line 24991 ""
- goto L1;
-#line 24992 ""
- } else if (*(unsigned char *)durq == 's') {
-
-/* Endpoint tweaks for linebreak slurs. */
-
-#line 24996 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-
-/* Next is vertical offset */
-
-/* Must be +|- */
-#line 25000 ""
- ++(*iccount);
-#line 25001 ""
- readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 25002 ""
- if (*(unsigned char *)durq == '-') {
-#line 25002 ""
- fnum = -fnum;
-#line 25002 ""
- }
-#line 25003 ""
- i__1 = ilb12 << 4;
-#line 25003 ""
- i__2 = i_nint(&fnum) + 32;
-#line 25003 ""
- setbits_(&isdat4[*nsdat], &c__6, &i__1, &i__2);
-#line 25004 ""
- if (i_indx("+-", dumq, (ftnlen)2, (ftnlen)1) > 0) {
-
-/* Also a horizontal offset */
-
-#line 25008 ""
- ++(*iccount);
-#line 25009 ""
- readnum_(lineq, iccount, durq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 25010 ""
- if (*(unsigned char *)dumq == '-') {
-#line 25010 ""
- fnum = -fnum;
-#line 25010 ""
- }
-#line 25011 ""
- i__1 = (ilb12 << 4) + 6;
-#line 25011 ""
- r__1 = fnum * 10;
-#line 25011 ""
- i__2 = i_nint(&r__1) + 64;
-#line 25011 ""
- setbits_(&isdat4[*nsdat], &c__7, &i__1, &i__2);
-#line 25012 ""
- }
-#line 25013 ""
- --(*iccount);
-#line 25014 ""
- ilb12 = 1;
-#line 25015 ""
- goto L1;
-#line 25016 ""
- } 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 25021 ""
- icurv1 = i_indx("fnxhH", durq, (ftnlen)5, (ftnlen)1);
-#line 25022 ""
- if (icurv1 == 5) {
-
-/* check for 2nd H */
-
-#line 25026 ""
- i__1 = *iccount;
-#line 25026 ""
- if (s_cmp(lineq + i__1, "H", *iccount + 1 - i__1, (ftnlen)1) == 0)
- {
-#line 25027 ""
- ++(*iccount);
-#line 25028 ""
- icurv1 = 6;
-#line 25029 ""
- }
-#line 25030 ""
- }
-#line 25031 ""
- isdat3[*nsdat] = bit_set(isdat3[*nsdat],0);
-#line 25032 ""
- i__1 = icurv1 + 32;
-#line 25032 ""
- setbits_(&isdat3[*nsdat], &c__6, &c__2, &i__1);
-#line 25033 ""
- goto L1;
-#line 25034 ""
- } else if (*(unsigned char *)durq == 'p') {
-/* Local adjustment */
-#line 25035 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-/* +|- */
-#line 25036 ""
- 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 25041 ""
- if (*(unsigned char *)durq == '+') {
-#line 25042 ""
- if (*(unsigned char *)dumq == 's') {
-#line 25043 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],26);
-#line 25044 ""
- } else {
-#line 25045 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],28);
-#line 25046 ""
- }
-#line 25047 ""
- } else {
-#line 25048 ""
- if (*(unsigned char *)dumq == 's') {
-#line 25049 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],27);
-#line 25050 ""
- } else {
-#line 25051 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],29);
-#line 25052 ""
- }
-#line 25053 ""
- }
-#line 25054 ""
- goto L1;
-#line 25055 ""
- } else if (*(unsigned char *)durq == 'v') {
-/* Stem slur */
-#line 25056 ""
- isdat1[*nsdat] = bit_set(isdat1[*nsdat],2);
-#line 25057 ""
- goto L1;
-#line 25058 ""
- }
-
-/* Record shifts */
-
-#line 25062 ""
- i__1 = ivoff + 32;
-#line 25062 ""
- setbits_(&isdat2[*nsdat], &c__6, &c__6, &i__1);
-#line 25063 ""
- i__1 = ihoff + 64;
-#line 25063 ""
- setbits_(&isdat2[*nsdat], &c__7, &c__12, &i__1);
-
-/* Record chord flag, note level, notehead shift */
-
-#line 25067 ""
- if (*notcrd) {
-#line 25068 ""
- setbits_(&isdat2[*nsdat], &c__7, &c__19, nolev);
-#line 25069 ""
- } else {
-#line 25070 ""
- nolevc = igetbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__7, &
- c__12);
-#line 25071 ""
- setbits_(&isdat2[*nsdat], &c__7, &c__19, &nolevc);
-#line 25072 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],0);
-#line 25073 ""
- i__1 = igetbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__2, &
- c__23);
-#line 25073 ""
- setbits_(&isdat2[*nsdat], &c__2, &c__1, &i__1);
-#line 25074 ""
- }
-#line 25075 ""
- return 0;
-} /* spsslur_ */
-
-/* Subroutine */ int sslur_(char *lineq, integer *iccount, integer *iv,
- integer *kv, integer *ip, integer *isdat1, integer *isdat2, integer *
- isdat3, integer *nsdat, logical *notcrd, integer *nolev, char *
- starter, ftnlen lineq_len, ftnlen starter_len)
-{
- /* System generated locals */
- integer i__1, i__2;
-
- /* Builtin functions */
- integer i_indx(char *, char *, ftnlen, ftnlen), i_nint(real *), s_cmp(
- char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- extern integer igetbits_(integer *, integer *, integer *);
- static real fnum;
- static char dumq[1], durq[1];
- static integer ihoff, isdat, ivoff, icurv1, idcode, nolevc, numint;
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen), readnum_(char *, integer *, char *, real *, ftnlen,
- ftnlen), setbits_(integer *, integer *, integer *, integer *);
-
-
-/* Reads in slur data. Record all h/v-shifts for non-chords, user-specified */
-/* ones for chords. */
-/* 5/26/02 now only for non-postscript slurs, use spsslur() for postscript */
-
-/* See subroutine doslur for bit values in isdat1,2,3 */
-
-
-/* Counter for signed integers. 1st is height, 2nd is horiz, 3rd is curve */
-
-#line 25100 ""
- /* Parameter adjustments */
-#line 25100 ""
- --isdat3;
-#line 25100 ""
- --isdat2;
-#line 25100 ""
- --isdat1;
-#line 25100 ""
-
-#line 25100 ""
- /* Function Body */
-#line 25100 ""
- numint = 0;
-#line 25101 ""
- ivoff = 0;
-#line 25102 ""
- ihoff = 0;
-#line 25103 ""
- ++(*nsdat);
-#line 25104 ""
- if (*(unsigned char *)starter == '{' || *(unsigned char *)starter == '}')
- {
-#line 25104 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],3);
-#line 25104 ""
- }
-#line 25106 ""
- setbits_(&isdat1[*nsdat], &c__5, &c__13, iv);
-#line 25107 ""
- i__1 = *kv - 1;
-#line 25107 ""
- setbits_(&isdat1[*nsdat], &c__1, &c__12, &i__1);
-#line 25108 ""
- setbits_(&isdat1[*nsdat], &c__8, &c__3, ip);
-#line 25109 ""
- isdat3[*nsdat] = 0;
-
-/* Get id letter */
-
-#line 25113 ""
- if (*(unsigned char *)&lineq[*iccount - 1] == 't') {
-
-/* Old-style t-slur. Use special idcode = 1 */
-
-#line 25117 ""
- idcode = 1;
-#line 25118 ""
- } else {
-#line 25119 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 25120 ""
- if (i_indx("uldtb+-hf ", durq, (ftnlen)10, (ftnlen)1) > 0) {
-
-/* Null id */
-
-#line 25124 ""
- idcode = 32;
-#line 25125 ""
- --(*iccount);
-#line 25126 ""
- } else if (*(unsigned char *)durq == 'H') {
-
-/* Postscript slur, cannot use 'H' as code, must check for 2nd 'H' */
-
-#line 25130 ""
- idcode = 32;
-#line 25131 ""
- --(*iccount);
-
-/* There may be another "H", but no need to deal with it yet */
-
-#line 25135 ""
- } else {
-
-/* Set explicit idcode */
-
-#line 25139 ""
- idcode = *(unsigned char *)durq;
-#line 25140 ""
- }
-#line 25141 ""
- }
-#line 25142 ""
- setbits_(&isdat1[*nsdat], &c__7, &c__19, &idcode);
-
-/* Set start/stop: look thru list from end for same idcode,iv,kv */
-
-#line 25146 ""
- for (isdat = *nsdat - 1; isdat >= 1; --isdat) {
-#line 25147 ""
- 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 25153 ""
- if (bit_test(isdat1[isdat],11)) {
-#line 25153 ""
- goto L3;
-#line 25153 ""
- }
-
-/* Found slur is a turnoff, so new one is a turnon. Jump down to set bit */
-
-#line 25157 ""
- goto L4;
-#line 25158 ""
- }
-#line 25159 ""
-/* L2: */
-#line 25159 ""
- }
-
-/* If here, this is turnon. */
-
-#line 25163 ""
-L4:
-#line 25164 ""
- isdat1[*nsdat] = bit_set(isdat1[*nsdat],11);
-#line 25165 ""
-L3:
-
-/* Now done with initial turnon- or turnoff-specifics. Loop for rest of input */
-
-#line 25169 ""
-L1:
-#line 25169 ""
- getchar_(lineq, iccount, durq, (ftnlen)128, (ftnlen)1);
-#line 25170 ""
- if (i_indx("uld", durq, (ftnlen)3, (ftnlen)1) > 0) {
-
-/* Force direction */
-
-#line 25174 ""
- isdat1[*nsdat] = bit_set(isdat1[*nsdat],26);
-#line 25175 ""
- if (*(unsigned char *)durq == 'u') {
-#line 25175 ""
- isdat1[*nsdat] = bit_set(isdat1[*nsdat],27);
-#line 25175 ""
- }
-#line 25176 ""
- goto L1;
-#line 25177 ""
- } else if (i_indx("+-", durq, (ftnlen)2, (ftnlen)1) > 0) {
-#line 25178 ""
- ++numint;
-#line 25179 ""
- if (numint == 1) {
-
-/* Vertical offset */
-
-#line 25183 ""
- ++(*iccount);
-#line 25184 ""
- readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 25185 ""
- --(*iccount);
-#line 25186 ""
- ivoff = i_nint(&fnum);
-#line 25187 ""
- if (*(unsigned char *)durq == '-') {
-#line 25187 ""
- ivoff = -ivoff;
-#line 25187 ""
- }
-#line 25188 ""
- } else if (numint == 2) {
-
-/* Horizontal offset */
-
-#line 25192 ""
- ++(*iccount);
-#line 25193 ""
- readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 25194 ""
- --(*iccount);
-
-/* fnum is abs(hshift), must be 0 to 6.3 */
-
-#line 25198 ""
- ihoff = fnum * 10 + .5f;
-#line 25199 ""
- if (*(unsigned char *)durq == '-') {
-#line 25199 ""
- ihoff = -ihoff;
-#line 25199 ""
- }
-
-/* Later will set bits to 1...127 to represent -6.3,...+6.3 */
-
-#line 25203 ""
- } else {
-
-/* Must be the 3rd signed integer, so it's a curve specification */
-
-#line 25207 ""
- isdat3[*nsdat] = bit_set(isdat3[*nsdat],0);
-#line 25208 ""
- ++(*iccount);
-#line 25209 ""
- readnum_(lineq, iccount, dumq, &fnum, (ftnlen)128, (ftnlen)1);
-#line 25210 ""
- icurv1 = i_nint(&fnum);
-#line 25211 ""
- if (*(unsigned char *)durq == '-') {
-#line 25211 ""
- icurv1 = -icurv1;
-#line 25211 ""
- }
-#line 25212 ""
- i__1 = icurv1 + 32;
-#line 25212 ""
- setbits_(&isdat3[*nsdat], &c__6, &c__2, &i__1);
-#line 25213 ""
- if (*(unsigned char *)dumq != ':') {
-
-/* Back up the pointer and loop for more input */
-
-#line 25217 ""
- --(*iccount);
-#line 25218 ""
- } else {
-
-/* Expect two single digits as parameters for curve */
-
-#line 25222 ""
- isdat3[*nsdat] = bit_set(isdat3[*nsdat],1);
-#line 25223 ""
- i__1 = *iccount;
-#line 25223 ""
- i__2 = *(unsigned char *)&lineq[i__1] - 48;
-#line 25223 ""
- setbits_(&isdat3[*nsdat], &c__3, &c__8, &i__2);
-#line 25225 ""
- i__1 = *iccount + 1;
-#line 25225 ""
- i__2 = *(unsigned char *)&lineq[i__1] - 48;
-#line 25225 ""
- setbits_(&isdat3[*nsdat], &c__3, &c__11, &i__2);
-#line 25227 ""
- *iccount += 2;
-#line 25228 ""
- }
-#line 25229 ""
- }
-#line 25230 ""
- goto L1;
-#line 25231 ""
- } else if (*(unsigned char *)durq == 't') {
-#line 25232 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],3);
-#line 25233 ""
- goto L1;
-#line 25234 ""
- } else if (*(unsigned char *)durq == 'b') {
-#line 25235 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],4);
-#line 25236 ""
- goto L1;
-#line 25237 ""
- } 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 25241 ""
- icurv1 = i_indx("fhH", durq, (ftnlen)3, (ftnlen)1) + 2;
-#line 25242 ""
- if (icurv1 == 3) {
-#line 25243 ""
- icurv1 = 1;
-#line 25244 ""
- } else if (icurv1 == 5) {
-
-/* check for 2nd H */
-
-#line 25248 ""
- i__1 = *iccount;
-#line 25248 ""
- if (s_cmp(lineq + i__1, "H", *iccount + 1 - i__1, (ftnlen)1) == 0)
- {
-#line 25249 ""
- ++(*iccount);
-#line 25250 ""
- icurv1 = 6;
-#line 25251 ""
- }
-#line 25252 ""
- }
-#line 25253 ""
- 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 25258 ""
- i__1 = icurv1 + 32;
-#line 25258 ""
- setbits_(&isdat3[*nsdat], &c__6, &c__2, &i__1);
-#line 25259 ""
- goto L1;
-#line 25260 ""
- }
-
-/* Record shifts */
-
-#line 25264 ""
- i__1 = ivoff + 32;
-#line 25264 ""
- setbits_(&isdat2[*nsdat], &c__6, &c__6, &i__1);
-#line 25265 ""
- i__1 = ihoff + 64;
-#line 25265 ""
- setbits_(&isdat2[*nsdat], &c__7, &c__12, &i__1);
-
-/* Record chord flag, note level, notehead shift */
-
-#line 25269 ""
- if (*notcrd) {
-#line 25270 ""
- setbits_(&isdat2[*nsdat], &c__7, &c__19, nolev);
-#line 25271 ""
- } else {
-#line 25272 ""
- nolevc = igetbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__7, &
- c__12);
-#line 25273 ""
- setbits_(&isdat2[*nsdat], &c__7, &c__19, &nolevc);
-#line 25274 ""
- isdat2[*nsdat] = bit_set(isdat2[*nsdat],0);
-#line 25275 ""
- i__1 = igetbits_(&comtrill_1.icrdat[comtrill_1.ncrd - 1], &c__2, &
- c__23);
-#line 25275 ""
- setbits_(&isdat2[*nsdat], &c__2, &c__1, &i__1);
-#line 25276 ""
- }
-#line 25277 ""
- return 0;
-} /* sslur_ */
-
-/* Subroutine */ int stop1_(void)
-{
- extern /* Subroutine */ int exit_(integer *);
-
-#line 25280 ""
- exit_(&c__1);
-#line 25281 ""
- return 0;
-} /* stop1_ */
-
-/* Subroutine */ int topfile_(char *basenameq, integer *lbase, integer *nv,
- char *clefq, integer *noinst, integer *musicsize, real *xinstf1,
- integer *mtrnmp, integer *mtrdnp, logical *vshrink, real *fbar,
- logical *fontslur, ftnlen basenameq_len, ftnlen clefq_len)
-{
- /* System generated locals */
- address a__1[3], a__2[2], a__3[4], a__4[2], a__5[6], a__6[5], a__7[10],
- a__8[20], a__9[12], a__10[8];
- integer i__1[3], i__2[2], i__3[4], i__4, i__5[2], i__6, i__7[6], i__8,
- i__9[5], i__10[10], i__11[20], i__12[12], i__13[8];
- real r__1;
- char ch__1[1], ch__2[50], ch__3[15], ch__4[10], ch__5[39], ch__6[14],
- ch__7[17], ch__8[16], ch__9[8], ch__10[12], ch__11[9], ch__12[13],
- ch__13[11], ch__14[21], ch__15[7], ch__16[6], ch__17[30], ch__18[
- 19], ch__19[1], ch__20[2], ch__21[33], ch__22[25], ch__23[35],
- ch__24[81], ch__25[82], ch__26[18], ch__27[57], ch__28[44],
- ch__29[62], ch__30[54], ch__31[86], ch__32[41], ch__33[47];
- cilist ci__1;
-
- /* Builtin functions */
- integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), e_wsfi(void), i_nint(real *);
- double r_lg10(real *);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static integer k, im, iv;
- static char sq[1];
- static integer ipi;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static char fmtq[24];
- extern /* Subroutine */ int writesetsign_(integer *, integer *, integer *,
- logical *);
- static real facis;
- static char fbarq[5];
- static integer lname, lfmtq, iinst;
- static char clefqiv[1];
- extern integer numclef_(char *, ftnlen);
- extern /* Subroutine */ int wgmeter_(integer *, integer *);
- static integer nstaves;
-
- /* Fortran I/O blocks */
- static cilist io___1810 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1811 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1812 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1813 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1814 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1815 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1816 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1817 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1818 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1819 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1820 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1821 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1822 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1824 = { 0, 11, 0, "(a8,i1,a)", 0 };
- static cilist io___1825 = { 0, 11, 0, "(a9,i2,a)", 0 };
- static cilist io___1826 = { 0, 11, 0, "(a8,i1,a)", 0 };
- static cilist io___1827 = { 0, 11, 0, "(a9,i2,a)", 0 };
- static icilist io___1829 = { 0, fbarq, 0, "(f5.3)", 5, 1 };
- static cilist io___1830 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1831 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1832 = { 0, 11, 0, "(a7,i3,a2)", 0 };
- static cilist io___1833 = { 0, 11, 0, "(a8,i3,a2)", 0 };
- static cilist io___1834 = { 0, 11, 0, "(a8,i2,a2)", 0 };
- static cilist io___1835 = { 0, 11, 0, "(a8,i1,a2)", 0 };
- static cilist io___1836 = { 0, 11, 0, "(a8,i2,a2)", 0 };
- static cilist io___1837 = { 0, 11, 0, "(a8,i3,a2)", 0 };
- static cilist io___1838 = { 0, 11, 0, "(a8,i2,a2)", 0 };
- static cilist io___1839 = { 0, 11, 0, "(a8,i1,a2)", 0 };
- static cilist io___1840 = { 0, 11, 0, "(a8,i2,a2)", 0 };
- static cilist io___1841 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1842 = { 0, 11, 0, "(a19,i1,a1)", 0 };
- static cilist io___1843 = { 0, 11, 0, "(a19,i2,a1)", 0 };
- static cilist io___1846 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1847 = { 0, 11, 0, "(a11,i2,a)", 0 };
- static cilist io___1852 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1853 = { 0, 11, 0, "(a9,i2,a)", 0 };
- static cilist io___1854 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1855 = { 0, 11, 0, "(a21,i2,a)", 0 };
- static cilist io___1857 = { 0, 11, 0, "(a8,i1,a)", 0 };
- static cilist io___1858 = { 0, 11, 0, "(a9,i2,a)", 0 };
- static cilist io___1859 = { 0, 11, 0, "(a18,i2,a2)", 0 };
- static cilist io___1861 = { 0, 11, 0, "(a11,i1,a2)", 0 };
- static cilist io___1862 = { 0, 11, 0, "(a11,i2,a2)", 0 };
- static cilist io___1863 = { 0, 11, 0, "(a11,i3,a2)", 0 };
- static cilist io___1864 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1866 = { 0, 11, 0, fmtq, 0 };
- static cilist io___1867 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1868 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1869 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1870 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1871 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1872 = { 0, 11, 0, "(a)", 0 };
-
-
-#line 25310 ""
- /* Parameter adjustments */
-#line 25310 ""
- --clefq;
-#line 25310 ""
-
-#line 25310 ""
- /* Function Body */
-#line 25310 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 25310 ""
- *(unsigned char *)sq = *(unsigned char *)&ch__1[0];
-#line 25311 ""
- *vshrink = *xinstf1 > 20.f && ! comnvst_1.novshrinktop;
-#line 25312 ""
- if (*vshrink) {
-#line 25313 ""
- comarp_1.xinsnow = 10.f;
-#line 25314 ""
- } else {
-#line 25315 ""
- comarp_1.xinsnow = *xinstf1;
-#line 25316 ""
- }
-#line 25317 ""
- if (! comlast_1.islast) {
-#line 25317 ""
- return 0;
-#line 25317 ""
- }
-
-/* Initialize octave treble clef tracker */
-
-#line 25321 ""
- for (im = 1; im <= 24; ++im) {
-#line 25322 ""
- comc8flag_1.c8flag[im - 1] = FALSE_;
-#line 25323 ""
-/* L6: */
-#line 25323 ""
- }
-#line 25324 ""
- s_wsfe(&io___1810);
-#line 25324 ""
- do_fio(&c__1, "%%%%%%%%%%%%%%%%%", (ftnlen)17);
-#line 25324 ""
- e_wsfe();
-#line 25325 ""
- s_wsfe(&io___1811);
-#line 25325 ""
- do_fio(&c__1, "%", (ftnlen)1);
-#line 25325 ""
- e_wsfe();
-#line 25326 ""
- s_wsfe(&io___1812);
-/* Writing concatenation */
-#line 25326 ""
- i__1[0] = 2, a__1[0] = "% ";
-#line 25326 ""
- i__1[1] = *lbase, a__1[1] = basenameq;
-#line 25326 ""
- i__1[2] = 4, a__1[2] = ".tex";
-#line 25326 ""
- s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)50);
-#line 25326 ""
- do_fio(&c__1, ch__2, *lbase + 6);
-#line 25326 ""
- e_wsfe();
-#line 25327 ""
- s_wsfe(&io___1813);
-#line 25327 ""
- do_fio(&c__1, "%", (ftnlen)1);
-#line 25327 ""
- e_wsfe();
-#line 25328 ""
- s_wsfe(&io___1814);
-#line 25328 ""
- do_fio(&c__1, "%%%%%%%%%%%%%%%%", (ftnlen)16);
-#line 25328 ""
- e_wsfe();
-#line 25329 ""
- s_wsfe(&io___1815);
-/* Writing concatenation */
-#line 25329 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25329 ""
- i__2[1] = 14, a__2[1] = "input musixtex";
-#line 25329 ""
- s_cat(ch__3, a__2, i__2, &c__2, (ftnlen)15);
-#line 25329 ""
- do_fio(&c__1, ch__3, (ftnlen)15);
-#line 25329 ""
- e_wsfe();
-#line 25330 ""
- s_wsfe(&io___1816);
-/* Writing concatenation */
-#line 25330 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25330 ""
- i__2[1] = 9, a__2[1] = "input pmx";
-#line 25330 ""
- s_cat(ch__4, a__2, i__2, &c__2, (ftnlen)10);
-#line 25330 ""
- do_fio(&c__1, ch__4, (ftnlen)10);
-#line 25330 ""
- e_wsfe();
-#line 25331 ""
- s_wsfe(&io___1817);
-/* Writing concatenation */
-#line 25331 ""
- i__3[0] = 1, a__3[0] = sq;
-#line 25331 ""
- i__3[1] = 15, a__3[1] = "setmaxslurs{24}";
-#line 25331 ""
- i__3[2] = 1, a__3[2] = sq;
-#line 25331 ""
- i__3[3] = 22, a__3[3] = "setmaxinstruments{24}%";
-#line 25331 ""
- s_cat(ch__5, a__3, i__3, &c__4, (ftnlen)39);
-#line 25331 ""
- do_fio(&c__1, ch__5, (ftnlen)39);
-#line 25331 ""
- e_wsfe();
-#line 25333 ""
- if (! (*fontslur)) {
-#line 25333 ""
- s_wsfe(&io___1818);
-/* Writing concatenation */
-#line 25333 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25333 ""
- i__2[1] = 13, a__2[1] = "input musixps";
-#line 25333 ""
- s_cat(ch__6, a__2, i__2, &c__2, (ftnlen)14);
-#line 25333 ""
- do_fio(&c__1, ch__6, (ftnlen)14);
-#line 25333 ""
- e_wsfe();
-#line 25333 ""
- }
-
-/* Need to input musixmad to permit more slurs. */
-
-#line 25337 ""
- if (*musicsize == 20) {
-#line 25338 ""
- s_wsfe(&io___1819);
-/* Writing concatenation */
-#line 25338 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25338 ""
- i__2[1] = 16, a__2[1] = "normalmusicsize%";
-#line 25338 ""
- s_cat(ch__7, a__2, i__2, &c__2, (ftnlen)17);
-#line 25338 ""
- do_fio(&c__1, ch__7, (ftnlen)17);
-#line 25338 ""
- e_wsfe();
-#line 25339 ""
- } else if (*musicsize == 16) {
-#line 25340 ""
- s_wsfe(&io___1820);
-/* Writing concatenation */
-#line 25340 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25340 ""
- i__2[1] = 15, a__2[1] = "smallmusicsize%";
-#line 25340 ""
- s_cat(ch__8, a__2, i__2, &c__2, (ftnlen)16);
-#line 25340 ""
- do_fio(&c__1, ch__8, (ftnlen)16);
-#line 25340 ""
- e_wsfe();
-#line 25341 ""
- } else if (*musicsize == 24) {
-#line 25342 ""
- s_wsfe(&io___1821);
-/* Writing concatenation */
-#line 25342 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25342 ""
- i__2[1] = 15, a__2[1] = "largemusicsize%";
-#line 25342 ""
- s_cat(ch__8, a__2, i__2, &c__2, (ftnlen)16);
-#line 25342 ""
- do_fio(&c__1, ch__8, (ftnlen)16);
-#line 25342 ""
- e_wsfe();
-
-/* Eliminate, per Tennent's analysis and musixtex changes since first input */
-
-/* write(11,'(a)')sq//'def'//sq//'meterfont{'//sq// */
-/* * 'meterlargefont}%' */
-#line 25348 ""
- } else if (*musicsize == 29) {
-#line 25349 ""
- s_wsfe(&io___1822);
-/* Writing concatenation */
-#line 25349 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25349 ""
- i__2[1] = 15, a__2[1] = "Largemusicsize%";
-#line 25349 ""
- s_cat(ch__8, a__2, i__2, &c__2, (ftnlen)16);
-#line 25349 ""
- do_fio(&c__1, ch__8, (ftnlen)16);
-#line 25349 ""
- e_wsfe();
-/* write(11,'(a)')sq//'def'//sq//'meterfont{'//sq// */
-/* * 'meterLargefont}%' */
-#line 25352 ""
- }
-
-/* Set sizes. Have sizes per staff in isize(.) and noinst per staff in */
-/* nsperi(.) */
-
-/* 130324 */
-/* iiv = 1 */
-#line 25359 ""
- i__4 = *noinst;
-#line 25359 ""
- for (iinst = 1; iinst <= i__4; ++iinst) {
-/* if (isize(iiv) .eq. 1) then */
-#line 25361 ""
- if (comsize_1.isize[iinst - 1] == 1) {
-#line 25362 ""
- if (iinst <= 9) {
-#line 25363 ""
- s_wsfe(&io___1824);
-/* Writing concatenation */
-#line 25363 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25363 ""
- i__2[1] = 7, a__2[1] = "setsize";
-#line 25363 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25363 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25363 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 25363 ""
- i__5[0] = 1, a__4[0] = sq;
-#line 25363 ""
- i__5[1] = 11, a__4[1] = "smallvalue%";
-#line 25363 ""
- s_cat(ch__10, a__4, i__5, &c__2, (ftnlen)12);
-#line 25363 ""
- do_fio(&c__1, ch__10, (ftnlen)12);
-#line 25363 ""
- e_wsfe();
-#line 25365 ""
- } else {
-#line 25366 ""
- s_wsfe(&io___1825);
-/* Writing concatenation */
-#line 25366 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25366 ""
- i__2[1] = 8, a__2[1] = "setsize{";
-#line 25366 ""
- s_cat(ch__11, a__2, i__2, &c__2, (ftnlen)9);
-#line 25366 ""
- do_fio(&c__1, ch__11, (ftnlen)9);
-#line 25366 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 25366 ""
- i__1[0] = 1, a__1[0] = "}";
-#line 25366 ""
- i__1[1] = 1, a__1[1] = sq;
-#line 25366 ""
- i__1[2] = 11, a__1[2] = "smallvalue%";
-#line 25366 ""
- s_cat(ch__12, a__1, i__1, &c__3, (ftnlen)13);
-#line 25366 ""
- do_fio(&c__1, ch__12, (ftnlen)13);
-#line 25366 ""
- e_wsfe();
-#line 25368 ""
- }
-/* else if (isize(iiv) .eq. 2) then */
-#line 25370 ""
- } else if (comsize_1.isize[iinst - 1] == 2) {
-#line 25371 ""
- if (iinst <= 9) {
-#line 25372 ""
- s_wsfe(&io___1826);
-/* Writing concatenation */
-#line 25372 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25372 ""
- i__2[1] = 7, a__2[1] = "setsize";
-#line 25372 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25372 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25372 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 25372 ""
- i__5[0] = 1, a__4[0] = sq;
-#line 25372 ""
- i__5[1] = 10, a__4[1] = "tinyvalue%";
-#line 25372 ""
- s_cat(ch__13, a__4, i__5, &c__2, (ftnlen)11);
-#line 25372 ""
- do_fio(&c__1, ch__13, (ftnlen)11);
-#line 25372 ""
- e_wsfe();
-#line 25374 ""
- } else {
-#line 25375 ""
- s_wsfe(&io___1827);
-/* Writing concatenation */
-#line 25375 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25375 ""
- i__2[1] = 8, a__2[1] = "setsize{";
-#line 25375 ""
- s_cat(ch__11, a__2, i__2, &c__2, (ftnlen)9);
-#line 25375 ""
- do_fio(&c__1, ch__11, (ftnlen)9);
-#line 25375 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 25375 ""
- i__1[0] = 1, a__1[0] = "}";
-#line 25375 ""
- i__1[1] = 1, a__1[1] = sq;
-#line 25375 ""
- i__1[2] = 10, a__1[2] = "tinyvalue%";
-#line 25375 ""
- s_cat(ch__10, a__1, i__1, &c__3, (ftnlen)12);
-#line 25375 ""
- do_fio(&c__1, ch__10, (ftnlen)12);
-#line 25375 ""
- e_wsfe();
-#line 25377 ""
- }
-#line 25378 ""
- }
-/* iiv = iiv+nsperi(iinst) */
-#line 25380 ""
-/* L5: */
-#line 25380 ""
- }
-#line 25381 ""
- s_wsfi(&io___1829);
-#line 25381 ""
- do_fio(&c__1, (char *)&(*fbar), (ftnlen)sizeof(real));
-#line 25381 ""
- e_wsfi();
-#line 25382 ""
- s_wsfe(&io___1830);
-/* Writing concatenation */
-#line 25382 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25382 ""
- i__2[1] = 13, a__2[1] = "nopagenumbers";
-#line 25382 ""
- s_cat(ch__6, a__2, i__2, &c__2, (ftnlen)14);
-#line 25382 ""
- do_fio(&c__1, ch__6, (ftnlen)14);
-#line 25382 ""
- e_wsfe();
-#line 25383 ""
- s_wsfe(&io___1831);
-/* Writing concatenation */
-#line 25383 ""
- i__3[0] = 1, a__3[0] = sq;
-#line 25383 ""
- i__3[1] = 14, a__3[1] = "tracingstats=2";
-#line 25383 ""
- i__3[2] = 1, a__3[2] = sq;
-#line 25383 ""
- i__3[3] = 5, a__3[3] = "relax";
-#line 25383 ""
- s_cat(ch__14, a__3, i__3, &c__4, (ftnlen)21);
-#line 25383 ""
- do_fio(&c__1, ch__14, (ftnlen)21);
-#line 25383 ""
- e_wsfe();
-#line 25384 ""
- s_wsfe(&io___1832);
-/* Writing concatenation */
-#line 25384 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25384 ""
- i__2[1] = 6, a__2[1] = "hsize=";
-#line 25384 ""
- s_cat(ch__15, a__2, i__2, &c__2, (ftnlen)7);
-#line 25384 ""
- do_fio(&c__1, ch__15, (ftnlen)7);
-#line 25384 ""
- i__4 = i_nint(&comtop_1.widthpt);
-#line 25384 ""
- do_fio(&c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 25384 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25384 ""
- e_wsfe();
-#line 25385 ""
- ci__1.cierr = 0;
-#line 25385 ""
- ci__1.ciunit = 11;
-/* Writing concatenation */
-#line 25385 ""
- i__1[0] = 5, a__1[0] = "(a6,i";
-#line 25385 ""
- r__1 = comtop_1.height + .1f;
-#line 25385 ""
- i__4 = (integer) r_lg10(&r__1) + 49;
-#line 25385 ""
- chax_(ch__1, (ftnlen)1, &i__4);
-#line 25385 ""
- i__1[1] = 1, a__1[1] = ch__1;
-#line 25385 ""
- i__1[2] = 4, a__1[2] = ",a2)";
-#line 25385 ""
- ci__1.cifmt = (s_cat(ch__4, a__1, i__1, &c__3, (ftnlen)10), ch__4);
-#line 25385 ""
- s_wsfe(&ci__1);
-/* Writing concatenation */
-#line 25385 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25385 ""
- i__2[1] = 5, a__2[1] = "vsize";
-#line 25385 ""
- s_cat(ch__16, a__2, i__2, &c__2, (ftnlen)6);
-#line 25385 ""
- do_fio(&c__1, ch__16, (ftnlen)6);
-#line 25385 ""
- i__6 = (integer) (comtop_1.height + .1f);
-#line 25385 ""
- do_fio(&c__1, (char *)&i__6, (ftnlen)sizeof(integer));
-#line 25385 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25385 ""
- e_wsfe();
-#line 25387 ""
- if (dabs(comtop_1.hoffpt) > .1f) {
-#line 25388 ""
- if (comtop_1.hoffpt <= -10.f) {
-#line 25389 ""
- s_wsfe(&io___1833);
-/* Writing concatenation */
-#line 25389 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25389 ""
- i__2[1] = 7, a__2[1] = "hoffset";
-#line 25389 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25389 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25389 ""
- i__4 = i_nint(&comtop_1.hoffpt);
-#line 25389 ""
- do_fio(&c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 25389 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25389 ""
- e_wsfe();
-#line 25390 ""
- } else if (comtop_1.hoffpt < 0.f) {
-#line 25391 ""
- s_wsfe(&io___1834);
-/* Writing concatenation */
-#line 25391 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25391 ""
- i__2[1] = 7, a__2[1] = "hoffset";
-#line 25391 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25391 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25391 ""
- i__4 = i_nint(&comtop_1.hoffpt);
-#line 25391 ""
- do_fio(&c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 25391 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25391 ""
- e_wsfe();
-#line 25392 ""
- } else if (comtop_1.hoffpt < 10.f) {
-#line 25393 ""
- s_wsfe(&io___1835);
-/* Writing concatenation */
-#line 25393 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25393 ""
- i__2[1] = 7, a__2[1] = "hoffset";
-#line 25393 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25393 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25393 ""
- i__4 = i_nint(&comtop_1.hoffpt);
-#line 25393 ""
- do_fio(&c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 25393 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25393 ""
- e_wsfe();
-#line 25394 ""
- } else {
-#line 25395 ""
- s_wsfe(&io___1836);
-/* Writing concatenation */
-#line 25395 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25395 ""
- i__2[1] = 7, a__2[1] = "hoffset";
-#line 25395 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25395 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25395 ""
- i__4 = i_nint(&comtop_1.hoffpt);
-#line 25395 ""
- do_fio(&c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 25395 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25395 ""
- e_wsfe();
-#line 25396 ""
- }
-#line 25397 ""
- }
-#line 25398 ""
- if (dabs(comtop_1.voffpt) > .1f) {
-#line 25399 ""
- if (comtop_1.voffpt <= -10.f) {
-#line 25400 ""
- s_wsfe(&io___1837);
-/* Writing concatenation */
-#line 25400 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25400 ""
- i__2[1] = 7, a__2[1] = "voffset";
-#line 25400 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25400 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25400 ""
- i__4 = i_nint(&comtop_1.voffpt);
-#line 25400 ""
- do_fio(&c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 25400 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25400 ""
- e_wsfe();
-#line 25401 ""
- } else if (comtop_1.voffpt < 0.f) {
-#line 25402 ""
- s_wsfe(&io___1838);
-/* Writing concatenation */
-#line 25402 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25402 ""
- i__2[1] = 7, a__2[1] = "voffset";
-#line 25402 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25402 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25402 ""
- i__4 = i_nint(&comtop_1.voffpt);
-#line 25402 ""
- do_fio(&c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 25402 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25402 ""
- e_wsfe();
-#line 25403 ""
- } else if (comtop_1.voffpt < 10.f) {
-#line 25404 ""
- s_wsfe(&io___1839);
-/* Writing concatenation */
-#line 25404 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25404 ""
- i__2[1] = 7, a__2[1] = "voffset";
-#line 25404 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25404 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25404 ""
- i__4 = i_nint(&comtop_1.voffpt);
-#line 25404 ""
- do_fio(&c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 25404 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25404 ""
- e_wsfe();
-#line 25405 ""
- } else {
-#line 25406 ""
- s_wsfe(&io___1840);
-/* Writing concatenation */
-#line 25406 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25406 ""
- i__2[1] = 7, a__2[1] = "voffset";
-#line 25406 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25406 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25406 ""
- i__4 = i_nint(&comtop_1.voffpt);
-#line 25406 ""
- do_fio(&c__1, (char *)&i__4, (ftnlen)sizeof(integer));
-#line 25406 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25406 ""
- e_wsfe();
-#line 25407 ""
- }
-#line 25408 ""
- }
-
-/* 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 25413 ""
- if (comtop_1.isig == 3 && *(unsigned char *)&clefq[*nv] == 't') {
-#line 25413 ""
- s_wsfe(&io___1841);
-/* Writing concatenation */
-#line 25413 ""
- i__7[0] = 1, a__5[0] = sq;
-#line 25413 ""
- i__7[1] = 3, a__5[1] = "def";
-#line 25413 ""
- i__7[2] = 1, a__5[2] = sq;
-#line 25413 ""
- i__7[3] = 14, a__5[3] = "raisebarno{4.5";
-#line 25413 ""
- i__7[4] = 1, a__5[4] = sq;
-#line 25413 ""
- i__7[5] = 10, a__5[5] = "internote}";
-#line 25413 ""
- s_cat(ch__17, a__5, i__7, &c__6, (ftnlen)30);
-#line 25413 ""
- do_fio(&c__1, ch__17, (ftnlen)30);
-#line 25413 ""
- e_wsfe();
-#line 25413 ""
- }
-#line 25415 ""
- if (*noinst < 10) {
-#line 25416 ""
- s_wsfe(&io___1842);
-/* Writing concatenation */
-#line 25416 ""
- i__3[0] = 1, a__3[0] = sq;
-#line 25416 ""
- i__3[1] = 3, a__3[1] = "def";
-#line 25416 ""
- i__3[2] = 1, a__3[2] = sq;
-#line 25416 ""
- i__3[3] = 14, a__3[3] = "nbinstruments{";
-#line 25416 ""
- s_cat(ch__18, a__3, i__3, &c__4, (ftnlen)19);
-#line 25416 ""
- do_fio(&c__1, ch__18, (ftnlen)19);
-#line 25416 ""
- do_fio(&c__1, (char *)&(*noinst), (ftnlen)sizeof(integer));
-#line 25416 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 25416 ""
- e_wsfe();
-#line 25418 ""
- } else {
-#line 25419 ""
- s_wsfe(&io___1843);
-/* Writing concatenation */
-#line 25419 ""
- i__3[0] = 1, a__3[0] = sq;
-#line 25419 ""
- i__3[1] = 3, a__3[1] = "def";
-#line 25419 ""
- i__3[2] = 1, a__3[2] = sq;
-#line 25419 ""
- i__3[3] = 14, a__3[3] = "nbinstruments{";
-#line 25419 ""
- s_cat(ch__18, a__3, i__3, &c__4, (ftnlen)19);
-#line 25419 ""
- do_fio(&c__1, ch__18, (ftnlen)19);
-#line 25419 ""
- do_fio(&c__1, (char *)&(*noinst), (ftnlen)sizeof(integer));
-#line 25419 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 25419 ""
- e_wsfe();
-#line 25421 ""
- }
-#line 25422 ""
- iv = 0;
-#line 25423 ""
- i__4 = *noinst;
-#line 25423 ""
- for (iinst = 1; iinst <= i__4; ++iinst) {
-#line 25424 ""
- nstaves = comnvi_1.nsperi[iinst - 1];
-#line 25425 ""
- if (iinst < 10) {
-#line 25426 ""
- s_wsfe(&io___1846);
-/* Writing concatenation */
-#line 25426 ""
- i__3[0] = 1, a__3[0] = sq;
-#line 25426 ""
- i__3[1] = 9, a__3[1] = "setstaffs";
-#line 25426 ""
- i__6 = iinst + 48;
-#line 25426 ""
- chax_(ch__1, (ftnlen)1, &i__6);
-#line 25426 ""
- i__3[2] = 1, a__3[2] = ch__1;
-#line 25426 ""
- i__8 = nstaves + 48;
-#line 25426 ""
- chax_(ch__19, (ftnlen)1, &i__8);
-#line 25426 ""
- i__3[3] = 1, a__3[3] = ch__19;
-#line 25426 ""
- s_cat(ch__10, a__3, i__3, &c__4, (ftnlen)12);
-#line 25426 ""
- do_fio(&c__1, ch__10, (ftnlen)12);
-#line 25426 ""
- e_wsfe();
-#line 25428 ""
- } else {
-#line 25429 ""
- s_wsfe(&io___1847);
-/* Writing concatenation */
-#line 25429 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25429 ""
- i__2[1] = 10, a__2[1] = "setstaffs{";
-#line 25429 ""
- s_cat(ch__13, a__2, i__2, &c__2, (ftnlen)11);
-#line 25429 ""
- do_fio(&c__1, ch__13, (ftnlen)11);
-#line 25429 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 25429 ""
- i__5[0] = 1, a__4[0] = "}";
-#line 25429 ""
- i__6 = nstaves + 48;
-#line 25429 ""
- chax_(ch__1, (ftnlen)1, &i__6);
-#line 25429 ""
- i__5[1] = 1, a__4[1] = ch__1;
-#line 25429 ""
- s_cat(ch__20, a__4, i__5, &c__2, (ftnlen)2);
-#line 25429 ""
- do_fio(&c__1, ch__20, (ftnlen)2);
-#line 25429 ""
- e_wsfe();
-#line 25431 ""
- }
-#line 25432 ""
- ++iv;
-#line 25433 ""
- *(unsigned char *)clefqiv = *(unsigned char *)&clefq[iv];
-#line 25434 ""
- if (*(unsigned char *)clefqiv == '8') {
-#line 25435 ""
- *(unsigned char *)clefqiv = 't';
-#line 25436 ""
- cominsttrans_1.itransamt[cominsttrans_1.instno[iv - 1] - 1] += 7;
-#line 25437 ""
- comc8flag_1.c8flag[iv - 1] = TRUE_;
-#line 25438 ""
- }
-#line 25439 ""
- if (nstaves == 1) {
-#line 25440 ""
- i__6 = numclef_(clefq + iv, (ftnlen)1) + 48;
-#line 25440 ""
- chax_(ch__1, (ftnlen)1, &i__6);
-#line 25440 ""
- s_copy(fmtq, ch__1, (ftnlen)24, (ftnlen)1);
-#line 25441 ""
- lfmtq = 1;
-#line 25442 ""
- } else {
-/* Writing concatenation */
-#line 25443 ""
- i__2[0] = 1, a__2[0] = "{";
-#line 25443 ""
- i__6 = numclef_(clefq + iv, (ftnlen)1) + 48;
-#line 25443 ""
- chax_(ch__1, (ftnlen)1, &i__6);
-#line 25443 ""
- i__2[1] = 1, a__2[1] = ch__1;
-#line 25443 ""
- s_cat(fmtq, a__2, i__2, &c__2, (ftnlen)24);
-#line 25444 ""
- lfmtq = 2;
-#line 25445 ""
- i__6 = nstaves;
-#line 25445 ""
- for (k = 2; k <= i__6; ++k) {
-#line 25446 ""
- ++iv;
-/* Writing concatenation */
-#line 25447 ""
- i__2[0] = lfmtq, a__2[0] = fmtq;
-#line 25447 ""
- i__8 = numclef_(clefq + iv, (ftnlen)1) + 48;
-#line 25447 ""
- chax_(ch__1, (ftnlen)1, &i__8);
-#line 25447 ""
- i__2[1] = 1, a__2[1] = ch__1;
-#line 25447 ""
- s_cat(fmtq, a__2, i__2, &c__2, (ftnlen)24);
-#line 25448 ""
- ++lfmtq;
-#line 25449 ""
-/* L2: */
-#line 25449 ""
- }
-/* Writing concatenation */
-#line 25450 ""
- i__2[0] = lfmtq, a__2[0] = fmtq;
-#line 25450 ""
- i__2[1] = 1, a__2[1] = "}";
-#line 25450 ""
- s_cat(fmtq, a__2, i__2, &c__2, (ftnlen)24);
-#line 25451 ""
- ++lfmtq;
-#line 25452 ""
- }
-#line 25453 ""
- if (iinst < 10) {
-#line 25454 ""
- s_wsfe(&io___1852);
-/* Writing concatenation */
-#line 25454 ""
- i__3[0] = 1, a__3[0] = sq;
-#line 25454 ""
- i__3[1] = 7, a__3[1] = "setclef";
-#line 25454 ""
- i__6 = iinst + 48;
-#line 25454 ""
- chax_(ch__1, (ftnlen)1, &i__6);
-#line 25454 ""
- i__3[2] = 1, a__3[2] = ch__1;
-#line 25454 ""
- i__3[3] = lfmtq, a__3[3] = fmtq;
-#line 25454 ""
- s_cat(ch__21, a__3, i__3, &c__4, (ftnlen)33);
-#line 25454 ""
- do_fio(&c__1, ch__21, lfmtq + 9);
-#line 25454 ""
- e_wsfe();
-#line 25455 ""
- } else {
-#line 25456 ""
- s_wsfe(&io___1853);
-/* Writing concatenation */
-#line 25456 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25456 ""
- i__2[1] = 8, a__2[1] = "setclef{";
-#line 25456 ""
- s_cat(ch__11, a__2, i__2, &c__2, (ftnlen)9);
-#line 25456 ""
- do_fio(&c__1, ch__11, (ftnlen)9);
-#line 25456 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 25456 ""
- i__5[0] = 1, a__4[0] = "}";
-#line 25456 ""
- i__5[1] = lfmtq, a__4[1] = fmtq;
-#line 25456 ""
- s_cat(ch__22, a__4, i__5, &c__2, (ftnlen)25);
-#line 25456 ""
- do_fio(&c__1, ch__22, lfmtq + 1);
-#line 25456 ""
- e_wsfe();
-#line 25457 ""
- }
-#line 25458 ""
- if (*(unsigned char *)&clefq[iv] == '8') {
-#line 25459 ""
- if (iinst < 10) {
-#line 25460 ""
- s_wsfe(&io___1854);
-/* Writing concatenation */
-#line 25460 ""
- i__9[0] = 1, a__6[0] = sq;
-#line 25460 ""
- i__9[1] = 19, a__6[1] = "settrebleclefsymbol";
-#line 25460 ""
- i__6 = iinst + 48;
-#line 25460 ""
- chax_(ch__1, (ftnlen)1, &i__6);
-#line 25460 ""
- i__9[2] = 1, a__6[2] = ch__1;
-#line 25460 ""
- i__9[3] = 1, a__6[3] = sq;
-#line 25460 ""
- i__9[4] = 13, a__6[4] = "treblelowoct%";
-#line 25460 ""
- s_cat(ch__23, a__6, i__9, &c__5, (ftnlen)35);
-#line 25460 ""
- do_fio(&c__1, ch__23, (ftnlen)35);
-#line 25460 ""
- e_wsfe();
-#line 25462 ""
- } else {
-#line 25463 ""
- s_wsfe(&io___1855);
-/* Writing concatenation */
-#line 25463 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25463 ""
- i__2[1] = 20, a__2[1] = "settrebleclefsymbol{";
-#line 25463 ""
- s_cat(ch__14, a__2, i__2, &c__2, (ftnlen)21);
-#line 25463 ""
- do_fio(&c__1, ch__14, (ftnlen)21);
-#line 25463 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 25463 ""
- i__1[0] = 1, a__1[0] = "}";
-#line 25463 ""
- i__1[1] = 1, a__1[1] = sq;
-#line 25463 ""
- i__1[2] = 13, a__1[2] = "treblelowoct%";
-#line 25463 ""
- s_cat(ch__3, a__1, i__1, &c__3, (ftnlen)15);
-#line 25463 ""
- do_fio(&c__1, ch__3, (ftnlen)15);
-#line 25463 ""
- e_wsfe();
-#line 25465 ""
- }
-#line 25466 ""
- comc8flag_1.c8flag[iv - 1] = TRUE_;
-#line 25467 ""
- }
-#line 25468 ""
- for (lname = 79; lname >= 2; --lname) {
-#line 25469 ""
- if (*(unsigned char *)&comtop_1.inameq[(iinst - 1) * 79 + (lname
- - 1)] != ' ') {
-#line 25469 ""
- goto L4;
-#line 25469 ""
- }
-#line 25470 ""
-/* L3: */
-#line 25470 ""
- }
-#line 25471 ""
-L4:
-#line 25472 ""
- comtop_1.lnam[iinst - 1] = lname;
-#line 25473 ""
- if (iinst < 10) {
-#line 25474 ""
- s_wsfe(&io___1857);
-/* Writing concatenation */
-#line 25474 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25474 ""
- i__2[1] = 7, a__2[1] = "setname";
-#line 25474 ""
- s_cat(ch__9, a__2, i__2, &c__2, (ftnlen)8);
-#line 25474 ""
- do_fio(&c__1, ch__9, (ftnlen)8);
-#line 25474 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 25474 ""
- i__1[0] = 1, a__1[0] = "{";
-#line 25474 ""
- i__1[1] = lname, a__1[1] = comtop_1.inameq + (iinst - 1) * 79;
-#line 25474 ""
- i__1[2] = 1, a__1[2] = "}";
-#line 25474 ""
- s_cat(ch__24, a__1, i__1, &c__3, (ftnlen)81);
-#line 25474 ""
- do_fio(&c__1, ch__24, lname + 2);
-#line 25474 ""
- e_wsfe();
-#line 25476 ""
- } else {
-#line 25477 ""
- s_wsfe(&io___1858);
-/* Writing concatenation */
-#line 25477 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25477 ""
- i__2[1] = 8, a__2[1] = "setname{";
-#line 25477 ""
- s_cat(ch__11, a__2, i__2, &c__2, (ftnlen)9);
-#line 25477 ""
- do_fio(&c__1, ch__11, (ftnlen)9);
-#line 25477 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer));
-/* Writing concatenation */
-#line 25477 ""
- i__1[0] = 2, a__1[0] = "}{";
-#line 25477 ""
- i__1[1] = lname, a__1[1] = comtop_1.inameq + (iinst - 1) * 79;
-#line 25477 ""
- i__1[2] = 1, a__1[2] = "}";
-#line 25477 ""
- s_cat(ch__25, a__1, i__1, &c__3, (ftnlen)82);
-#line 25477 ""
- do_fio(&c__1, ch__25, lname + 3);
-#line 25477 ""
- e_wsfe();
-#line 25479 ""
- }
-#line 25480 ""
-/* L1: */
-#line 25480 ""
- }
-#line 25481 ""
- s_wsfe(&io___1859);
-/* Writing concatenation */
-#line 25481 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25481 ""
- i__2[1] = 17, a__2[1] = "generalsignature{";
-#line 25481 ""
- s_cat(ch__26, a__2, i__2, &c__2, (ftnlen)18);
-#line 25481 ""
- do_fio(&c__1, ch__26, (ftnlen)18);
-#line 25481 ""
- do_fio(&c__1, (char *)&comtop_1.isig, (ftnlen)sizeof(integer));
-#line 25481 ""
- do_fio(&c__1, "}%", (ftnlen)2);
-#line 25481 ""
- e_wsfe();
-#line 25482 ""
- if (cominsttrans_1.earlytranson) {
-#line 25482 ""
- writesetsign_(&cominsttrans_1.ninsttrans, cominsttrans_1.iinsttrans,
- cominsttrans_1.itranskey, &cominsttrans_1.earlytranson);
-#line 25482 ""
- }
-#line 25484 ""
- wgmeter_(mtrnmp, mtrdnp);
-#line 25485 ""
- r__1 = comtop_1.fracindent * comtop_1.widthpt;
-#line 25485 ""
- ipi = i_nint(&r__1);
-#line 25486 ""
- if (ipi < 10) {
-#line 25487 ""
- s_wsfe(&io___1861);
-/* Writing concatenation */
-#line 25487 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25487 ""
- i__2[1] = 10, a__2[1] = "parindent ";
-#line 25487 ""
- s_cat(ch__13, a__2, i__2, &c__2, (ftnlen)11);
-#line 25487 ""
- do_fio(&c__1, ch__13, (ftnlen)11);
-#line 25487 ""
- do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof(integer));
-#line 25487 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25487 ""
- e_wsfe();
-#line 25488 ""
- } else if (ipi < 100) {
-#line 25489 ""
- s_wsfe(&io___1862);
-/* Writing concatenation */
-#line 25489 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25489 ""
- i__2[1] = 10, a__2[1] = "parindent ";
-#line 25489 ""
- s_cat(ch__13, a__2, i__2, &c__2, (ftnlen)11);
-#line 25489 ""
- do_fio(&c__1, ch__13, (ftnlen)11);
-#line 25489 ""
- do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof(integer));
-#line 25489 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25489 ""
- e_wsfe();
-#line 25490 ""
- } else {
-#line 25491 ""
- s_wsfe(&io___1863);
-/* Writing concatenation */
-#line 25491 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25491 ""
- i__2[1] = 10, a__2[1] = "parindent ";
-#line 25491 ""
- s_cat(ch__13, a__2, i__2, &c__2, (ftnlen)11);
-#line 25491 ""
- do_fio(&c__1, ch__13, (ftnlen)11);
-#line 25491 ""
- do_fio(&c__1, (char *)&ipi, (ftnlen)sizeof(integer));
-#line 25491 ""
- do_fio(&c__1, "pt", (ftnlen)2);
-#line 25491 ""
- e_wsfe();
-#line 25492 ""
- }
-#line 25493 ""
- s_wsfe(&io___1864);
-/* Writing concatenation */
-#line 25493 ""
- i__10[0] = 1, a__7[0] = sq;
-#line 25493 ""
- i__10[1] = 11, a__7[1] = "elemskip1pt";
-#line 25493 ""
- i__10[2] = 1, a__7[2] = sq;
-#line 25493 ""
- i__10[3] = 13, a__7[3] = "afterruleskip";
-#line 25493 ""
- i__10[4] = 5, a__7[4] = fbarq;
-#line 25493 ""
- i__10[5] = 2, a__7[5] = "pt";
-#line 25493 ""
- i__10[6] = 1, a__7[6] = sq;
-#line 25493 ""
- i__10[7] = 17, a__7[7] = "beforeruleskip0pt";
-#line 25493 ""
- i__10[8] = 1, a__7[8] = sq;
-#line 25493 ""
- i__10[9] = 5, a__7[9] = "relax";
-#line 25493 ""
- s_cat(ch__27, a__7, i__10, &c__10, (ftnlen)57);
-#line 25493 ""
- do_fio(&c__1, ch__27, (ftnlen)57);
-#line 25493 ""
- e_wsfe();
-#line 25495 ""
- if (! (*vshrink)) {
-#line 25496 ""
- if (*xinstf1 < 9.95f) {
-#line 25497 ""
- s_copy(fmtq, "(a,f3.1,a)", (ftnlen)24, (ftnlen)10);
-#line 25498 ""
- } else {
-#line 25499 ""
- s_copy(fmtq, "(a,f4.1,a)", (ftnlen)24, (ftnlen)10);
-#line 25500 ""
- }
-#line 25501 ""
- facis = 1.f;
-#line 25502 ""
- if (comis4bignv_1.is4bignv) {
-#line 25502 ""
- facis = .95f;
-#line 25502 ""
- }
-#line 25503 ""
- s_wsfe(&io___1866);
-/* Writing concatenation */
-#line 25503 ""
- i__7[0] = 1, a__5[0] = sq;
-#line 25503 ""
- i__7[1] = 15, a__5[1] = "stafftopmarg0pt";
-#line 25503 ""
- i__7[2] = 1, a__5[2] = sq;
-#line 25503 ""
- i__7[3] = 15, a__5[3] = "staffbotmarg0pt";
-#line 25503 ""
- i__7[4] = 1, a__5[4] = sq;
-#line 25503 ""
- i__7[5] = 11, a__5[5] = "interstaff{";
-#line 25503 ""
- s_cat(ch__28, a__5, i__7, &c__6, (ftnlen)44);
-#line 25503 ""
- do_fio(&c__1, ch__28, (ftnlen)44);
-#line 25503 ""
- r__1 = *xinstf1 * facis;
-#line 25503 ""
- do_fio(&c__1, (char *)&r__1, (ftnlen)sizeof(real));
-/* Writing concatenation */
-#line 25503 ""
- i__1[0] = 1, a__1[0] = "}";
-#line 25503 ""
- i__1[1] = 1, a__1[1] = sq;
-#line 25503 ""
- i__1[2] = 5, a__1[2] = "relax";
-#line 25503 ""
- s_cat(ch__15, a__1, i__1, &c__3, (ftnlen)7);
-#line 25503 ""
- do_fio(&c__1, ch__15, (ftnlen)7);
-#line 25503 ""
- e_wsfe();
-#line 25505 ""
- } else {
-#line 25506 ""
- s_wsfe(&io___1867);
-/* Writing concatenation */
-#line 25506 ""
- i__10[0] = 1, a__7[0] = sq;
-#line 25506 ""
- i__10[1] = 15, a__7[1] = "stafftopmarg0pt";
-#line 25506 ""
- i__10[2] = 1, a__7[2] = sq;
-#line 25506 ""
- i__10[3] = 13, a__7[3] = "staffbotmarg5";
-#line 25506 ""
- i__10[4] = 1, a__7[4] = sq;
-#line 25506 ""
- i__10[5] = 10, a__7[5] = "Interligne";
-#line 25506 ""
- i__10[6] = 1, a__7[6] = sq;
-#line 25506 ""
- i__10[7] = 14, a__7[7] = "interstaff{10}";
-#line 25506 ""
- i__10[8] = 1, a__7[8] = sq;
-#line 25506 ""
- i__10[9] = 5, a__7[9] = "relax";
-#line 25506 ""
- s_cat(ch__29, a__7, i__10, &c__10, (ftnlen)62);
-#line 25506 ""
- do_fio(&c__1, ch__29, (ftnlen)62);
-#line 25506 ""
- e_wsfe();
-#line 25509 ""
- }
-#line 25510 ""
- if (*nv == 1) {
-#line 25510 ""
- s_wsfe(&io___1868);
-/* Writing concatenation */
-#line 25510 ""
- i__2[0] = 1, a__2[0] = sq;
-#line 25510 ""
- i__2[1] = 11, a__2[1] = "nostartrule";
-#line 25510 ""
- s_cat(ch__10, a__2, i__2, &c__2, (ftnlen)12);
-#line 25510 ""
- do_fio(&c__1, ch__10, (ftnlen)12);
-#line 25510 ""
- e_wsfe();
-#line 25510 ""
- }
-#line 25511 ""
- s_wsfe(&io___1869);
-/* Writing concatenation */
-#line 25511 ""
- i__3[0] = 1, a__3[0] = sq;
-#line 25511 ""
- i__3[1] = 8, a__3[1] = "readmod{";
-#line 25511 ""
- i__3[2] = *lbase, a__3[2] = basenameq;
-#line 25511 ""
- i__3[3] = 1, a__3[3] = "}";
-#line 25511 ""
- s_cat(ch__30, a__3, i__3, &c__4, (ftnlen)54);
-#line 25511 ""
- do_fio(&c__1, ch__30, *lbase + 10);
-#line 25511 ""
- e_wsfe();
-#line 25512 ""
- if (comnvst_1.cstuplet) {
-#line 25513 ""
- s_wsfe(&io___1870);
-/* Writing concatenation */
-#line 25513 ""
- i__11[0] = 1, a__8[0] = sq;
-#line 25513 ""
- i__11[1] = 12, a__8[1] = "input tuplet";
-#line 25513 ""
- i__11[2] = 1, a__8[2] = sq;
-#line 25513 ""
- i__11[3] = 3, a__8[3] = "def";
-#line 25513 ""
- i__11[4] = 1, a__8[4] = sq;
-#line 25513 ""
- i__11[5] = 12, a__8[5] = "xnumt#1#2#3{";
-#line 25513 ""
- i__11[6] = 1, a__8[6] = sq;
-#line 25513 ""
- i__11[7] = 16, a__8[7] = "zcharnote{#2}{~}";
-#line 25513 ""
- i__11[8] = 1, a__8[8] = sq;
-#line 25513 ""
- i__11[9] = 3, a__8[9] = "def";
-#line 25513 ""
- i__11[10] = 1, a__8[10] = sq;
-#line 25513 ""
- i__11[11] = 10, a__8[11] = "tuplettxt{";
-#line 25513 ""
- i__11[12] = 1, a__8[12] = sq;
-#line 25513 ""
- i__11[13] = 9, a__8[13] = "smalltype";
-#line 25513 ""
- i__11[14] = 1, a__8[14] = sq;
-#line 25513 ""
- i__11[15] = 6, a__8[15] = "it{#3}";
-#line 25513 ""
- i__11[16] = 1, a__8[16] = sq;
-#line 25513 ""
- i__11[17] = 1, a__8[17] = "/";
-#line 25513 ""
- i__11[18] = 1, a__8[18] = sq;
-#line 25513 ""
- i__11[19] = 4, a__8[19] = "/}}%";
-#line 25513 ""
- s_cat(ch__31, a__8, i__11, &c__20, (ftnlen)86);
-#line 25513 ""
- do_fio(&c__1, ch__31, (ftnlen)86);
-#line 25513 ""
- e_wsfe();
-#line 25517 ""
- s_wsfe(&io___1871);
-/* Writing concatenation */
-#line 25517 ""
- i__12[0] = 1, a__9[0] = sq;
-#line 25517 ""
- i__12[1] = 3, a__9[1] = "let";
-#line 25517 ""
- i__12[2] = 1, a__9[2] = sq;
-#line 25517 ""
- i__12[3] = 5, a__9[3] = "ovbkt";
-#line 25517 ""
- i__12[4] = 1, a__9[4] = sq;
-#line 25517 ""
- i__12[5] = 8, a__9[5] = "uptuplet";
-#line 25517 ""
- i__12[6] = 1, a__9[6] = sq;
-#line 25517 ""
- i__12[7] = 3, a__9[7] = "let";
-#line 25517 ""
- i__12[8] = 1, a__9[8] = sq;
-#line 25517 ""
- i__12[9] = 5, a__9[9] = "unbkt";
-#line 25517 ""
- i__12[10] = 1, a__9[10] = sq;
-#line 25517 ""
- i__12[11] = 11, a__9[11] = "downtuplet%";
-#line 25517 ""
- s_cat(ch__32, a__9, i__12, &c__12, (ftnlen)41);
-#line 25517 ""
- do_fio(&c__1, ch__32, (ftnlen)41);
-#line 25517 ""
- e_wsfe();
-#line 25519 ""
- }
-#line 25520 ""
- s_wsfe(&io___1872);
-/* Writing concatenation */
-#line 25520 ""
- i__13[0] = 1, a__10[0] = sq;
-#line 25520 ""
- i__13[1] = 11, a__10[1] = "startmuflex";
-#line 25520 ""
- i__13[2] = 1, a__10[2] = sq;
-#line 25520 ""
- i__13[3] = 10, a__10[3] = "startpiece";
-#line 25520 ""
- i__13[4] = 1, a__10[4] = sq;
-#line 25520 ""
- i__13[5] = 8, a__10[5] = "addspace";
-#line 25520 ""
- i__13[6] = 1, a__10[6] = sq;
-#line 25520 ""
- i__13[7] = 14, a__10[7] = "afterruleskip%";
-#line 25520 ""
- s_cat(ch__33, a__10, i__13, &c__8, (ftnlen)47);
-#line 25520 ""
- do_fio(&c__1, ch__33, (ftnlen)47);
-#line 25520 ""
- e_wsfe();
-#line 25522 ""
- return 0;
-} /* topfile_ */
-
-/* Character */ VOID udfq_(char *ret_val, ftnlen ret_val_len, integer *nolev,
- integer *ncm)
-{
- static integer ntest;
-
-
-/* Slur directions */
-
-#line 25530 ""
- ntest = *nolev - *ncm;
-#line 25531 ""
- if (ntest < 0 || ntest == 0 && combc_1.bcspec && *ncm == 23) {
-#line 25533 ""
- *(unsigned char *)ret_val = 'd';
-#line 25534 ""
- } else {
-#line 25535 ""
- *(unsigned char *)ret_val = 'u';
-#line 25536 ""
- }
-#line 25537 ""
- return ;
-} /* udfq_ */
-
-/* Character */ VOID udqq_(char *ret_val, ftnlen ret_val_len, integer *nole,
- integer *ncm, integer *isl, integer *nvmx, integer *ivx, integer *nv)
-{
- /* System generated locals */
- real r__1;
- char ch__2[1];
-
- /* Local variables */
- extern /* Character */ VOID ulfq_(char *, ftnlen, real *, integer *);
- static char udqqq[1];
-
-
-/* Stem direction for single notes */
-
-#line 25546 ""
- if (bit_test(*isl,30)) {
-
-/* Absolute override */
-
-#line 25550 ""
- if (bit_test(*isl,17)) {
-#line 25551 ""
- *(unsigned char *)udqqq = 'u';
-#line 25552 ""
- } else {
-#line 25553 ""
- *(unsigned char *)udqqq = 'l';
-#line 25554 ""
- }
-#line 25555 ""
- } else if (*nvmx == 1) {
-
-/* Single voice per staff, default */
-
-#line 25559 ""
- r__1 = *nole * 1.f;
-#line 25559 ""
- ulfq_(ch__2, (ftnlen)1, &r__1, ncm);
-#line 25559 ""
- *(unsigned char *)udqqq = *(unsigned char *)&ch__2[0];
-#line 25560 ""
- } else {
-
-/* Multi-voice per staff, 1st is lower, 2nd upper */
-
-#line 25564 ""
- if (*ivx <= *nv) {
-#line 25565 ""
- *(unsigned char *)udqqq = 'l';
-#line 25566 ""
- } else {
-#line 25567 ""
- *(unsigned char *)udqqq = 'u';
-#line 25568 ""
- }
-#line 25569 ""
- }
-#line 25570 ""
- *(unsigned char *)ret_val = *(unsigned char *)udqqq;
-#line 25571 ""
- return ;
-} /* udqq_ */
-
-/* Character */ VOID ulfq_(char *ret_val, ftnlen ret_val_len, real *xnolev,
- integer *ncm)
-{
- static real test;
-
-
-/* Stem directions */
-
-#line 25579 ""
- test = *xnolev - *ncm;
-#line 25580 ""
- if (test < -.001f || test < .001f && combc_1.bcspec && *ncm == 23) {
-#line 25582 ""
- *(unsigned char *)ret_val = 'u';
-#line 25583 ""
- } else {
-#line 25584 ""
- *(unsigned char *)ret_val = 'l';
-#line 25585 ""
- }
-#line 25586 ""
- return ;
-} /* ulfq_ */
-
-/* Character */ VOID upcaseq_(char *ret_val, ftnlen ret_val_len, char *chq,
- ftnlen chq_len)
-{
- /* System generated locals */
- address a__1[2];
- integer i__1, i__2[2];
- char ch__2[1], ch__3[53];
-
- /* Builtin functions */
- integer s_wsle(cilist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer do_lio(integer *, integer *, char *, ftnlen), e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
-
- /* Local variables */
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
-
- /* Fortran I/O blocks */
- static cilist io___1876 = { 0, 6, 0, 0, 0 };
-
-
-#line 25590 ""
- if (*(unsigned char *)chq >= 61 && *(unsigned char *)chq < 122) {
-#line 25591 ""
- i__1 = *(unsigned char *)chq - 32;
-#line 25591 ""
- chax_(ch__2, (ftnlen)1, &i__1);
-#line 25591 ""
- *(unsigned char *)ret_val = *(unsigned char *)&ch__2[0];
-#line 25592 ""
- } else {
-#line 25593 ""
- *(unsigned char *)ret_val = *(unsigned char *)chq;
-#line 25594 ""
- s_wsle(&io___1876);
-/* Writing concatenation */
-#line 25594 ""
- i__2[0] = 52, a__1[0] = "Warning, upcaseq was called with improper a"\
- "rgument: ";
-#line 25594 ""
- i__2[1] = 1, a__1[1] = chq;
-#line 25594 ""
- s_cat(ch__3, a__1, i__2, &c__2, (ftnlen)53);
-#line 25594 ""
- do_lio(&c__9, &c__1, ch__3, (ftnlen)53);
-#line 25594 ""
- e_wsle();
-#line 25596 ""
- s_stop("", (ftnlen)0);
-#line 25597 ""
- }
-#line 25598 ""
- return ;
-} /* upcaseq_ */
-
-/* Subroutine */ int wgmeter_(integer *mtrnmp, integer *mtrdnp)
-{
- /* System generated locals */
- address a__1[4];
- integer i__1[4], i__2;
- char ch__1[1], ch__2[25], ch__3[26], ch__4[21], ch__5[24];
-
- /* Builtin functions */
- integer s_wsfe(cilist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer do_fio(integer *, char *, ftnlen), e_wsfe(void);
-
- /* Local variables */
- static char sq[1];
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
-
- /* Fortran I/O blocks */
- static cilist io___1878 = { 0, 11, 0, "(a25,i1,a2,i1,a3)", 0 };
- static cilist io___1879 = { 0, 11, 0, "(a25,i1,a2,i2,a3)", 0 };
- static cilist io___1880 = { 0, 11, 0, "(a25,i2,a2,i1,a3)", 0 };
- static cilist io___1881 = { 0, 11, 0, "(a25,i2,a2,i2,a3)", 0 };
- static cilist io___1882 = { 0, 11, 0, "(a26,i1,a2,i1,a3)", 0 };
- static cilist io___1883 = { 0, 11, 0, "(a21,i1,a2)", 0 };
- static cilist io___1884 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1885 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1886 = { 0, 11, 0, "(a)", 0 };
-
-
-
-/* Writes meter stuff to file 11, so only called if islast=.true. */
-
-#line 25605 ""
- if (*mtrdnp == 0) {
-#line 25605 ""
- return 0;
-#line 25605 ""
- }
-#line 25606 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 25606 ""
- *(unsigned char *)sq = *(unsigned char *)&ch__1[0];
-#line 25607 ""
- if (*mtrnmp > 0 && *mtrnmp <= 9) {
-#line 25608 ""
- if (*mtrdnp < 10) {
-#line 25609 ""
- s_wsfe(&io___1878);
-/* Writing concatenation */
-#line 25609 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 25609 ""
- i__1[1] = 13, a__1[1] = "generalmeter{";
-#line 25609 ""
- i__1[2] = 1, a__1[2] = sq;
-#line 25609 ""
- i__1[3] = 10, a__1[3] = "meterfrac{";
-#line 25609 ""
- s_cat(ch__2, a__1, i__1, &c__4, (ftnlen)25);
-#line 25609 ""
- do_fio(&c__1, ch__2, (ftnlen)25);
-#line 25609 ""
- do_fio(&c__1, (char *)&(*mtrnmp), (ftnlen)sizeof(integer));
-#line 25609 ""
- do_fio(&c__1, "}{", (ftnlen)2);
-#line 25609 ""
- do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer));
-#line 25609 ""
- do_fio(&c__1, "}}%", (ftnlen)3);
-#line 25609 ""
- e_wsfe();
-#line 25612 ""
- } else {
-#line 25613 ""
- s_wsfe(&io___1879);
-/* Writing concatenation */
-#line 25613 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 25613 ""
- i__1[1] = 13, a__1[1] = "generalmeter{";
-#line 25613 ""
- i__1[2] = 1, a__1[2] = sq;
-#line 25613 ""
- i__1[3] = 10, a__1[3] = "meterfrac{";
-#line 25613 ""
- s_cat(ch__2, a__1, i__1, &c__4, (ftnlen)25);
-#line 25613 ""
- do_fio(&c__1, ch__2, (ftnlen)25);
-#line 25613 ""
- do_fio(&c__1, (char *)&(*mtrnmp), (ftnlen)sizeof(integer));
-#line 25613 ""
- do_fio(&c__1, "}{", (ftnlen)2);
-#line 25613 ""
- do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer));
-#line 25613 ""
- do_fio(&c__1, "}}%", (ftnlen)3);
-#line 25613 ""
- e_wsfe();
-#line 25616 ""
- }
-#line 25617 ""
- } else if (*mtrnmp >= 10) {
-#line 25618 ""
- if (*mtrdnp < 10) {
-#line 25619 ""
- s_wsfe(&io___1880);
-/* Writing concatenation */
-#line 25619 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 25619 ""
- i__1[1] = 13, a__1[1] = "generalmeter{";
-#line 25619 ""
- i__1[2] = 1, a__1[2] = sq;
-#line 25619 ""
- i__1[3] = 10, a__1[3] = "meterfrac{";
-#line 25619 ""
- s_cat(ch__2, a__1, i__1, &c__4, (ftnlen)25);
-#line 25619 ""
- do_fio(&c__1, ch__2, (ftnlen)25);
-#line 25619 ""
- do_fio(&c__1, (char *)&(*mtrnmp), (ftnlen)sizeof(integer));
-#line 25619 ""
- do_fio(&c__1, "}{", (ftnlen)2);
-#line 25619 ""
- do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer));
-#line 25619 ""
- do_fio(&c__1, "}}%", (ftnlen)3);
-#line 25619 ""
- e_wsfe();
-#line 25622 ""
- } else {
-#line 25623 ""
- s_wsfe(&io___1881);
-/* Writing concatenation */
-#line 25623 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 25623 ""
- i__1[1] = 13, a__1[1] = "generalmeter{";
-#line 25623 ""
- i__1[2] = 1, a__1[2] = sq;
-#line 25623 ""
- i__1[3] = 10, a__1[3] = "meterfrac{";
-#line 25623 ""
- s_cat(ch__2, a__1, i__1, &c__4, (ftnlen)25);
-#line 25623 ""
- do_fio(&c__1, ch__2, (ftnlen)25);
-#line 25623 ""
- do_fio(&c__1, (char *)&(*mtrnmp), (ftnlen)sizeof(integer));
-#line 25623 ""
- do_fio(&c__1, "}{", (ftnlen)2);
-#line 25623 ""
- do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer));
-#line 25623 ""
- do_fio(&c__1, "}}%", (ftnlen)3);
-#line 25623 ""
- e_wsfe();
-#line 25626 ""
- }
-#line 25627 ""
- } else if (*mtrnmp < 0) {
-#line 25628 ""
- s_wsfe(&io___1882);
-/* Writing concatenation */
-#line 25628 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 25628 ""
- i__1[1] = 13, a__1[1] = "generalmeter{";
-#line 25628 ""
- i__1[2] = 1, a__1[2] = sq;
-#line 25628 ""
- i__1[3] = 11, a__1[3] = "meterfracS{";
-#line 25628 ""
- s_cat(ch__3, a__1, i__1, &c__4, (ftnlen)26);
-#line 25628 ""
- do_fio(&c__1, ch__3, (ftnlen)26);
-#line 25628 ""
- i__2 = -(*mtrnmp);
-#line 25628 ""
- do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer));
-#line 25628 ""
- do_fio(&c__1, "}{", (ftnlen)2);
-#line 25628 ""
- do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer));
-#line 25628 ""
- do_fio(&c__1, "}}%", (ftnlen)3);
-#line 25628 ""
- e_wsfe();
-#line 25631 ""
- } else if (*mtrdnp <= 4) {
-#line 25632 ""
- s_wsfe(&io___1883);
-/* Writing concatenation */
-#line 25632 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 25632 ""
- i__1[1] = 13, a__1[1] = "generalmeter{";
-#line 25632 ""
- i__1[2] = 1, a__1[2] = sq;
-#line 25632 ""
- i__1[3] = 6, a__1[3] = "meterN";
-#line 25632 ""
- s_cat(ch__4, a__1, i__1, &c__4, (ftnlen)21);
-#line 25632 ""
- do_fio(&c__1, ch__4, (ftnlen)21);
-#line 25632 ""
- do_fio(&c__1, (char *)&(*mtrdnp), (ftnlen)sizeof(integer));
-#line 25632 ""
- do_fio(&c__1, "}%", (ftnlen)2);
-#line 25632 ""
- e_wsfe();
-#line 25634 ""
- } else if (*mtrdnp == 5) {
-#line 25635 ""
- s_wsfe(&io___1884);
-/* Writing concatenation */
-#line 25635 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 25635 ""
- i__1[1] = 12, a__1[1] = "generalmeter";
-#line 25635 ""
- i__1[2] = 1, a__1[2] = sq;
-#line 25635 ""
- i__1[3] = 10, a__1[3] = "allabreve%";
-#line 25635 ""
- s_cat(ch__5, a__1, i__1, &c__4, (ftnlen)24);
-#line 25635 ""
- do_fio(&c__1, ch__5, (ftnlen)24);
-#line 25635 ""
- e_wsfe();
-#line 25636 ""
- } else if (*mtrdnp == 6) {
-#line 25637 ""
- s_wsfe(&io___1885);
-/* Writing concatenation */
-#line 25637 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 25637 ""
- i__1[1] = 12, a__1[1] = "generalmeter";
-#line 25637 ""
- i__1[2] = 1, a__1[2] = sq;
-#line 25637 ""
- i__1[3] = 7, a__1[3] = "meterC%";
-#line 25637 ""
- s_cat(ch__4, a__1, i__1, &c__4, (ftnlen)21);
-#line 25637 ""
- do_fio(&c__1, ch__4, (ftnlen)21);
-#line 25637 ""
- e_wsfe();
-#line 25638 ""
- } else if (*mtrdnp == 7) {
-#line 25639 ""
- s_wsfe(&io___1886);
-/* Writing concatenation */
-#line 25639 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 25639 ""
- i__1[1] = 12, a__1[1] = "generalmeter";
-#line 25639 ""
- i__1[2] = 1, a__1[2] = sq;
-#line 25639 ""
- i__1[3] = 10, a__1[3] = "meterIIIS%";
-#line 25639 ""
- s_cat(ch__5, a__1, i__1, &c__4, (ftnlen)24);
-#line 25639 ""
- do_fio(&c__1, ch__5, (ftnlen)24);
-#line 25639 ""
- e_wsfe();
-#line 25640 ""
- }
-#line 25641 ""
- return 0;
-} /* wgmeter_ */
-
-/* Subroutine */ int writemidi_(char *jobname, integer *ljob, ftnlen
- jobname_len)
-{
- /* Initialized data */
-
- static shortint icmm[16] = { 0,1,2,3,4,5,6,7,8,10,11,12,13,14,15,16 };
-
- /* System generated locals */
- address a__1[4], a__2[7], a__3[3], a__4[2], a__5[12];
- integer i__1[4], i__2, i__3[7], i__4[3], i__5[2], i__6, i__7[12], i__8,
- i__9, i__10, i__11, i__12;
- char ch__1[14], ch__2[1], ch__3[12], ch__4[1], ch__5[1], ch__6[46], ch__7[
- 27], ch__8[29], ch__9[15], ch__10[1], ch__11[4], ch__12[81],
- ch__13[25];
- cllist cl__1;
-
- /* Builtin functions */
- integer s_wsfe(cilist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer do_fio(integer *, char *, ftnlen), e_wsfe(void), lbit_shift(
- integer, integer), s_wsfi(icilist *), e_wsfi(void), f_clos(cllist
- *);
-
- /* Local variables */
- static integer i__, kv, ib0, ib1, icm;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer isec, mend, ndata, ibyte;
- static char byteq[1*4], instq[10], tempoq[10];
- extern /* Subroutine */ int printl_(char *, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___1888 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1889 = { 0, 52, 0, "(a6,10Z4)", 0 };
- static cilist io___1894 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1895 = { 0, 52, 0, "(a6,8z4)", 0 };
- static cilist io___1896 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1897 = { 0, 52, 0, "(a)", 0 };
- static cilist io___1898 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1899 = { 0, 52, 0, "(a)", 0 };
- static cilist io___1902 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1903 = { 0, 52, 0, "(z4)", 0 };
- static cilist io___1904 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1905 = { 0, 52, 0, "(4z4)", 0 };
- static cilist io___1910 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1911 = { 0, 52, 0, "(a4,z2,a7,11z4)", 0 };
- static cilist io___1912 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1913 = { 0, 52, 0, "(4z4)", 0 };
- static cilist io___1914 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1915 = { 0, 52, 0, "(a)", 0 };
- static icilist io___1917 = { 0, tempoq, 0, "(i2)", 10, 1 };
- static icilist io___1919 = { 0, instq, 0, "(i3)", 10, 1 };
- static cilist io___1920 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1921 = { 0, 52, 0, "(z4)", 0 };
- static cilist io___1922 = { 0, 51, 0, "(a,$)", 0 };
- static cilist io___1923 = { 0, 52, 0, "(4z4)", 0 };
- static cilist io___1924 = { 0, 6, 0, "(1x,a12,(10i6))", 0 };
- static cilist io___1925 = { 0, 15, 0, "(1x,a12,(10i6))", 0 };
-
-
-
-/* Used to be icmm(0:nm); did midi fail when nv>16? */
-
-
-/* These are not consecutive because channel 9 is reserved for percussion. */
-
-
-/* Write Header */
-
-#line 25694 ""
- s_wsfe(&io___1888);
-/* Writing concatenation */
-#line 25694 ""
- i__1[0] = 11, a__1[0] = "MThd\000\000\000\006\000\001\000";
-#line 25694 ""
- *(unsigned char *)&ch__2[0] = commidi_1.numchan + 1;
-#line 25694 ""
- i__1[1] = 1, a__1[1] = ch__2;
-#line 25694 ""
- i__1[2] = 1, a__1[2] = "\000";
-#line 25694 ""
- i__1[3] = 1, a__1[3] = "\360";
-#line 25694 ""
- s_cat(ch__1, a__1, i__1, &c__4, (ftnlen)14);
-#line 25694 ""
- do_fio(&c__1, ch__1, (ftnlen)14);
-#line 25694 ""
- e_wsfe();
-#line 25696 ""
- if (commidi_1.debugmidi) {
-#line 25696 ""
- s_wsfe(&io___1889);
-#line 25696 ""
- do_fio(&c__1, "\"MThd\"", (ftnlen)6);
-#line 25696 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25696 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25696 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25696 ""
- do_fio(&c__1, (char *)&c__6, (ftnlen)sizeof(integer));
-#line 25696 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25696 ""
- do_fio(&c__1, (char *)&c__1, (ftnlen)sizeof(integer));
-#line 25696 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25696 ""
- i__2 = commidi_1.numchan + 1;
-#line 25696 ""
- do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer));
-#line 25696 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25696 ""
- do_fio(&c__1, (char *)&c__240, (ftnlen)sizeof(integer));
-#line 25696 ""
- e_wsfe();
-#line 25696 ""
- }
-
-/* Write the "conductor" track, for keys, meter, and tempos */
-/* Get the number of bytes in the conductor event stream */
-
-#line 25703 ""
- ndata = commidi_1.imidi[commidi_1.numchan] + 1 - commmac_1.msecstrt[
- commidi_1.numchan + commmac_1.nmidsec * 25 - 25];
-#line 25704 ""
- i__2 = commmac_1.nmidsec - 1;
-#line 25704 ""
- for (isec = 1; isec <= i__2; ++isec) {
-#line 25705 ""
- ndata = ndata + 1 + commmac_1.msecend[commidi_1.numchan + isec * 25 -
- 25] - commmac_1.msecstrt[commidi_1.numchan + isec * 25 - 25];
-#line 25706 ""
-/* L15: */
-#line 25706 ""
- }
-/* ib1 = (4+ljob+26+ndata+4)/256 */
-/* ib0 = 4+ljob+26+ndata+4-256*ib1 */
-#line 25709 ""
- ib1 = (*ljob + 31 + ndata + 4) / 256;
-#line 25710 ""
- ib0 = *ljob + 31 + ndata + 4 - (ib1 << 8);
-#line 25711 ""
- s_wsfe(&io___1894);
-/* Writing concatenation */
-#line 25711 ""
- i__3[0] = 6, a__2[0] = "MTrk\000\000";
-#line 25711 ""
- *(unsigned char *)&ch__2[0] = ib1;
-#line 25711 ""
- i__3[1] = 1, a__2[1] = ch__2;
-#line 25711 ""
- *(unsigned char *)&ch__4[0] = ib0;
-#line 25711 ""
- i__3[2] = 1, a__2[2] = ch__4;
-#line 25711 ""
- i__3[3] = 1, a__2[3] = "\000";
-#line 25711 ""
- i__3[4] = 1, a__2[4] = "\377";
-#line 25711 ""
- i__3[5] = 1, a__2[5] = "\001";
-#line 25711 ""
- *(unsigned char *)&ch__5[0] = *ljob + 27;
-#line 25711 ""
- i__3[6] = 1, a__2[6] = ch__5;
-#line 25711 ""
- s_cat(ch__3, a__2, i__3, &c__7, (ftnlen)12);
-#line 25711 ""
- do_fio(&c__1, ch__3, (ftnlen)12);
-#line 25711 ""
- e_wsfe();
-
-/* Text header */
-
-/* * //char(0)//char(255)//char(1)//char(ljob+26) */
-#line 25717 ""
- if (commidi_1.debugmidi) {
-#line 25717 ""
- s_wsfe(&io___1895);
-#line 25717 ""
- do_fio(&c__1, "\"MTrk\"", (ftnlen)6);
-#line 25717 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25717 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25717 ""
- do_fio(&c__1, (char *)&ib1, (ftnlen)sizeof(integer));
-#line 25717 ""
- do_fio(&c__1, (char *)&ib0, (ftnlen)sizeof(integer));
-#line 25717 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25717 ""
- do_fio(&c__1, (char *)&c__255, (ftnlen)sizeof(integer));
-#line 25717 ""
- do_fio(&c__1, (char *)&c__1, (ftnlen)sizeof(integer));
-#line 25717 ""
- i__2 = *ljob + 27;
-#line 25717 ""
- do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer));
-#line 25717 ""
- e_wsfe();
-#line 25717 ""
- }
-#line 25720 ""
- s_wsfe(&io___1896);
-#line 25720 ""
- do_fio(&c__1, jobname, (*ljob));
-#line 25720 ""
- e_wsfe();
-#line 25721 ""
- if (commidi_1.debugmidi) {
-#line 25721 ""
- s_wsfe(&io___1897);
-/* Writing concatenation */
-#line 25721 ""
- i__4[0] = 1, a__3[0] = "\"";
-#line 25721 ""
- i__4[1] = *ljob, a__3[1] = jobname;
-#line 25721 ""
- i__4[2] = 1, a__3[2] = "\"";
-#line 25721 ""
- s_cat(ch__6, a__3, i__4, &c__3, (ftnlen)46);
-#line 25721 ""
- do_fio(&c__1, ch__6, *ljob + 2);
-#line 25721 ""
- e_wsfe();
-#line 25721 ""
- }
-
-/* (separate writes are needed to defeat compiler BUG!!!) */
-
-/* write(51,'(a,$)')'.mid, produced by PMX 2.30' */
-#line 25726 ""
- s_wsfe(&io___1898);
-/* Writing concatenation */
-#line 25726 ""
- i__5[0] = 22, a__4[0] = ".mid, produced by PMX ";
-#line 25726 ""
- i__5[1] = 5, a__4[1] = comver_1.versionc;
-#line 25726 ""
- s_cat(ch__7, a__4, i__5, &c__2, (ftnlen)27);
-#line 25726 ""
- do_fio(&c__1, ch__7, (ftnlen)27);
-#line 25726 ""
- e_wsfe();
-#line 25727 ""
- if (commidi_1.debugmidi) {
-#line 25727 ""
- s_wsfe(&io___1899);
-/* Writing concatenation */
-#line 25727 ""
- i__4[0] = 23, a__3[0] = "\".mid, produced by PMX ";
-#line 25727 ""
- i__4[1] = 5, a__3[1] = comver_1.versionc;
-#line 25727 ""
- i__4[2] = 1, a__3[2] = "\"";
-#line 25727 ""
- s_cat(ch__8, a__3, i__4, &c__3, (ftnlen)29);
-#line 25727 ""
- do_fio(&c__1, ch__8, (ftnlen)29);
-#line 25727 ""
- e_wsfe();
-#line 25727 ""
- }
-
-/* Conductor event data: Loop over sections. */
-
-#line 25732 ""
- i__2 = commmac_1.nmidsec;
-#line 25732 ""
- for (isec = 1; isec <= i__2; ++isec) {
-#line 25733 ""
- if (isec < commmac_1.nmidsec) {
-#line 25734 ""
- mend = commmac_1.msecend[commidi_1.numchan + isec * 25 - 25];
-#line 25735 ""
- } else {
-#line 25736 ""
- mend = commidi_1.imidi[commidi_1.numchan];
-#line 25737 ""
- }
-#line 25738 ""
- i__6 = mend;
-#line 25738 ""
- for (i__ = commmac_1.msecstrt[commidi_1.numchan + isec * 25 - 25];
- i__ <= i__6; ++i__) {
-#line 25739 ""
- s_wsfe(&io___1902);
-#line 25739 ""
- *(unsigned char *)&ch__2[0] = (char) commidi_1.mmidi[
- commidi_1.numchan + i__ * 25 - 25];
-#line 25739 ""
- do_fio(&c__1, ch__2, (ftnlen)1);
-#line 25739 ""
- e_wsfe();
-#line 25740 ""
- if (commidi_1.debugmidi) {
-#line 25740 ""
- s_wsfe(&io___1903);
-#line 25740 ""
- do_fio(&c__1, (char *)&commidi_1.mmidi[commidi_1.numchan +
- i__ * 25 - 25], (ftnlen)sizeof(shortint));
-#line 25740 ""
- e_wsfe();
-#line 25740 ""
- }
-#line 25741 ""
-/* L17: */
-#line 25741 ""
- }
-#line 25742 ""
-/* L16: */
-#line 25742 ""
- }
-
-/* And close out the time sig / tempo track. */
-
-#line 25746 ""
- s_wsfe(&io___1904);
-#line 25746 ""
- do_fio(&c__1, "\000\377/\000", (ftnlen)4);
-#line 25746 ""
- e_wsfe();
-#line 25747 ""
- if (commidi_1.debugmidi) {
-#line 25747 ""
- s_wsfe(&io___1905);
-#line 25747 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25747 ""
- do_fio(&c__1, (char *)&c__255, (ftnlen)sizeof(integer));
-#line 25747 ""
- do_fio(&c__1, (char *)&c__47, (ftnlen)sizeof(integer));
-#line 25747 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25747 ""
- e_wsfe();
-#line 25747 ""
- }
-
-/* Loop over track for each voice: The following sets up iv. */
-
-#line 25751 ""
- all_1.iv = all_1.nv;
-#line 25752 ""
- if (commidi_1.twoline[all_1.nv - 1]) {
-#line 25753 ""
- kv = 2;
-#line 25754 ""
- } else {
-#line 25755 ""
- kv = 1;
-#line 25756 ""
- }
-
-#line 25758 ""
- i__2 = commidi_1.numchan - 1;
-#line 25758 ""
- for (icm = 0; icm <= i__2; ++icm) {
-
-/* Get the number of bytes in the data stream */
-
-#line 25762 ""
- ndata = commidi_1.imidi[icm] + 1 - commmac_1.msecstrt[icm +
- commmac_1.nmidsec * 25 - 25];
-#line 25763 ""
- i__6 = commmac_1.nmidsec - 1;
-#line 25763 ""
- for (isec = 1; isec <= i__6; ++isec) {
-#line 25764 ""
- ndata = ndata + 1 + commmac_1.msecend[icm + isec * 25 - 25] -
- commmac_1.msecstrt[icm + isec * 25 - 25];
-#line 25765 ""
-/* L11: */
-#line 25765 ""
- }
-
-/* Add 3 for instrum, 4 for bal, plus 4 (for closing) to byte count, */
-
-#line 25769 ""
- ndata += 11;
-
-/* Add 4+lnam(iinsiv(iv)) if lnam>0 , */
-
-#line 25773 ""
- if (comtop_1.lnam[commvel_1.iinsiv[all_1.iv - 1] - 1] > 0) {
-#line 25773 ""
- ndata = ndata + 4 + comtop_1.lnam[commvel_1.iinsiv[all_1.iv - 1]
- - 1];
-#line 25773 ""
- }
-
-/* Separate total byte counts into 4 bytes */
-
-#line 25777 ""
- for (ibyte = 1; ibyte <= 4; ++ibyte) {
-#line 25778 ""
- if (ndata > 0) {
-#line 25779 ""
- *(unsigned char *)&byteq[ibyte - 1] = (char) (ndata % 256);
-#line 25780 ""
- ndata = lbit_shift(ndata, (ftnlen)-8);
-#line 25781 ""
- } else {
-#line 25782 ""
- *(unsigned char *)&byteq[ibyte - 1] = '\0';
-#line 25783 ""
- }
-#line 25784 ""
-/* L2: */
-#line 25784 ""
- }
-
-/* Now write front stuff for this track */
-
-#line 25788 ""
- s_wsfe(&io___1910);
-/* Writing concatenation */
-#line 25788 ""
- i__7[0] = 4, a__5[0] = "MTrk";
-#line 25788 ""
- i__7[1] = 1, a__5[1] = byteq + 3;
-#line 25788 ""
- i__7[2] = 1, a__5[2] = byteq + 2;
-#line 25788 ""
- i__7[3] = 1, a__5[3] = byteq + 1;
-#line 25788 ""
- i__7[4] = 1, a__5[4] = byteq;
-#line 25788 ""
- i__7[5] = 1, a__5[5] = "\000";
-#line 25788 ""
- *(unsigned char *)&ch__2[0] = icmm[icm] + 192;
-#line 25788 ""
- i__7[6] = 1, a__5[6] = ch__2;
-#line 25788 ""
- *(unsigned char *)&ch__4[0] = commidi_1.midinst[commvel_1.iinsiv[
- all_1.iv - 1] - 1];
-#line 25788 ""
- i__7[7] = 1, a__5[7] = ch__4;
-#line 25788 ""
- i__7[8] = 1, a__5[8] = "\000";
-#line 25788 ""
- *(unsigned char *)&ch__5[0] = icmm[icm] + 176;
-#line 25788 ""
- i__7[9] = 1, a__5[9] = ch__5;
-#line 25788 ""
- i__7[10] = 1, a__5[10] = "\n";
-#line 25788 ""
- *(unsigned char *)&ch__10[0] = commvel_1.midbc[icm];
-#line 25788 ""
- i__7[11] = 1, a__5[11] = ch__10;
-#line 25788 ""
- s_cat(ch__9, a__5, i__7, &c__12, (ftnlen)15);
-#line 25788 ""
- do_fio(&c__1, ch__9, (ftnlen)15);
-#line 25788 ""
- e_wsfe();
-#line 25791 ""
- if (commidi_1.debugmidi) {
-#line 25791 ""
- s_wsfe(&io___1911);
-#line 25791 ""
- do_fio(&c__1, "icm=", (ftnlen)4);
-#line 25791 ""
- do_fio(&c__1, (char *)&icm, (ftnlen)sizeof(integer));
-#line 25791 ""
- do_fio(&c__1, " \"MTrk\"", (ftnlen)7);
-#line 25791 ""
- i__6 = *(unsigned char *)&byteq[3];
-#line 25791 ""
- do_fio(&c__1, (char *)&i__6, (ftnlen)sizeof(integer));
-#line 25791 ""
- i__8 = *(unsigned char *)&byteq[2];
-#line 25791 ""
- do_fio(&c__1, (char *)&i__8, (ftnlen)sizeof(integer));
-#line 25791 ""
- i__9 = *(unsigned char *)&byteq[1];
-#line 25791 ""
- do_fio(&c__1, (char *)&i__9, (ftnlen)sizeof(integer));
-#line 25791 ""
- i__10 = *(unsigned char *)&byteq[0];
-#line 25791 ""
- do_fio(&c__1, (char *)&i__10, (ftnlen)sizeof(integer));
-#line 25791 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25791 ""
- i__11 = icmm[icm] + 192;
-#line 25791 ""
- do_fio(&c__1, (char *)&i__11, (ftnlen)sizeof(integer));
-#line 25791 ""
- do_fio(&c__1, (char *)&commidi_1.midinst[commvel_1.iinsiv[
- all_1.iv - 1] - 1], (ftnlen)sizeof(integer));
-#line 25791 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25791 ""
- i__12 = icmm[icm] + 176;
-#line 25791 ""
- do_fio(&c__1, (char *)&i__12, (ftnlen)sizeof(integer));
-#line 25791 ""
- do_fio(&c__1, (char *)&c__10, (ftnlen)sizeof(integer));
-#line 25791 ""
- do_fio(&c__1, (char *)&commvel_1.midbc[icm], (ftnlen)sizeof(
- integer));
-#line 25791 ""
- e_wsfe();
-#line 25791 ""
- }
-#line 25795 ""
- if (comtop_1.lnam[commvel_1.iinsiv[all_1.iv - 1] - 1] > 0) {
-
-/* Add instrument name as sequence name */
-
-#line 25799 ""
- s_wsfe(&io___1912);
-/* Writing concatenation */
-#line 25799 ""
- i__5[0] = 3, a__4[0] = "\000\377\003";
-#line 25799 ""
- *(unsigned char *)&ch__2[0] = comtop_1.lnam[commvel_1.iinsiv[
- all_1.iv - 1] - 1];
-#line 25799 ""
- i__5[1] = 1, a__4[1] = ch__2;
-#line 25799 ""
- s_cat(ch__11, a__4, i__5, &c__2, (ftnlen)4);
-#line 25799 ""
- do_fio(&c__1, ch__11, (ftnlen)4);
-#line 25799 ""
- e_wsfe();
-#line 25801 ""
- if (commidi_1.debugmidi) {
-#line 25801 ""
- s_wsfe(&io___1913);
-#line 25801 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25801 ""
- do_fio(&c__1, (char *)&c__255, (ftnlen)sizeof(integer));
-#line 25801 ""
- do_fio(&c__1, (char *)&c__3, (ftnlen)sizeof(integer));
-#line 25801 ""
- do_fio(&c__1, (char *)&comtop_1.lnam[commvel_1.iinsiv[
- all_1.iv - 1] - 1], (ftnlen)sizeof(integer));
-#line 25801 ""
- e_wsfe();
-#line 25801 ""
- }
-#line 25802 ""
- s_wsfe(&io___1914);
-#line 25802 ""
- 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 25802 ""
- e_wsfe();
-#line 25804 ""
- if (commidi_1.debugmidi) {
-#line 25804 ""
- s_wsfe(&io___1915);
-/* Writing concatenation */
-#line 25804 ""
- i__4[0] = 1, a__3[0] = "\"";
-#line 25804 ""
- 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 25804 ""
- i__4[2] = 1, a__3[2] = "\"";
-#line 25804 ""
- s_cat(ch__12, a__3, i__4, &c__3, (ftnlen)81);
-#line 25804 ""
- do_fio(&c__1, ch__12, comtop_1.lnam[commvel_1.iinsiv[all_1.iv
- - 1] - 1] + 2);
-#line 25804 ""
- e_wsfe();
-#line 25804 ""
- }
-#line 25806 ""
- }
-#line 25807 ""
- s_wsfi(&io___1917);
-#line 25807 ""
- do_fio(&c__1, (char *)&icm, (ftnlen)sizeof(integer));
-#line 25807 ""
- e_wsfi();
-#line 25808 ""
- s_wsfi(&io___1919);
-#line 25808 ""
- do_fio(&c__1, (char *)&commidi_1.midinst[commvel_1.iinsiv[all_1.iv -
- 1] - 1], (ftnlen)sizeof(integer));
-#line 25808 ""
- e_wsfi();
-/* Writing concatenation */
-#line 25809 ""
- i__1[0] = 16, a__1[0] = "MIDI instrument ";
-#line 25809 ""
- i__1[1] = 2, a__1[1] = tempoq;
-#line 25809 ""
- i__1[2] = 4, a__1[2] = " is ";
-#line 25809 ""
- i__1[3] = 3, a__1[3] = instq;
-#line 25809 ""
- s_cat(ch__13, a__1, i__1, &c__4, (ftnlen)25);
-#line 25809 ""
- printl_(ch__13, (ftnlen)25);
-
-/* Notes: Loop over sections. */
-
-#line 25813 ""
- i__6 = commmac_1.nmidsec;
-#line 25813 ""
- for (isec = 1; isec <= i__6; ++isec) {
-#line 25814 ""
- if (isec < commmac_1.nmidsec) {
-#line 25815 ""
- mend = commmac_1.msecend[icm + isec * 25 - 25];
-#line 25816 ""
- } else {
-#line 25817 ""
- mend = commidi_1.imidi[icm];
-#line 25818 ""
- }
-#line 25819 ""
- i__8 = mend;
-#line 25819 ""
- for (i__ = commmac_1.msecstrt[icm + isec * 25 - 25]; i__ <= i__8;
- ++i__) {
-#line 25820 ""
- s_wsfe(&io___1920);
-#line 25820 ""
- *(unsigned char *)&ch__2[0] = (char) commidi_1.mmidi[icm +
- i__ * 25 - 25];
-#line 25820 ""
- do_fio(&c__1, ch__2, (ftnlen)1);
-#line 25820 ""
- e_wsfe();
-#line 25821 ""
- if (commidi_1.debugmidi) {
-#line 25821 ""
- s_wsfe(&io___1921);
-#line 25821 ""
- do_fio(&c__1, (char *)&commidi_1.mmidi[icm + i__ * 25 -
- 25], (ftnlen)sizeof(shortint));
-#line 25821 ""
- e_wsfe();
-#line 25821 ""
- }
-#line 25822 ""
-/* L10: */
-#line 25822 ""
- }
-#line 25823 ""
-/* L9: */
-#line 25823 ""
- }
-
-/* Closing 4 bytes */
-
-#line 25827 ""
- s_wsfe(&io___1922);
-/* Writing concatenation */
-#line 25827 ""
- chax_(ch__2, (ftnlen)1, &c__0);
-#line 25827 ""
- i__1[0] = 1, a__1[0] = ch__2;
-#line 25827 ""
- i__1[1] = 1, a__1[1] = "\377";
-#line 25827 ""
- i__1[2] = 1, a__1[2] = "/";
-#line 25827 ""
- i__1[3] = 1, a__1[3] = "\000";
-#line 25827 ""
- s_cat(ch__11, a__1, i__1, &c__4, (ftnlen)4);
-#line 25827 ""
- do_fio(&c__1, ch__11, (ftnlen)4);
-#line 25827 ""
- e_wsfe();
-#line 25828 ""
- if (commidi_1.debugmidi) {
-#line 25828 ""
- s_wsfe(&io___1923);
-#line 25828 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25828 ""
- do_fio(&c__1, (char *)&c__255, (ftnlen)sizeof(integer));
-#line 25828 ""
- do_fio(&c__1, (char *)&c__47, (ftnlen)sizeof(integer));
-#line 25828 ""
- do_fio(&c__1, (char *)&c__0, (ftnlen)sizeof(integer));
-#line 25828 ""
- e_wsfe();
-#line 25828 ""
- }
-#line 25829 ""
- if (kv == 2) {
-#line 25830 ""
- kv = 1;
-#line 25831 ""
- } else if (all_1.iv == 1) {
-#line 25832 ""
- goto L5;
-#line 25833 ""
- } else {
-#line 25834 ""
- --all_1.iv;
-#line 25835 ""
- if (commidi_1.twoline[all_1.iv - 1]) {
-#line 25835 ""
- kv = 2;
-#line 25835 ""
- }
-#line 25836 ""
- }
-#line 25837 ""
-L5:
-#line 25837 ""
- ;
-#line 25837 ""
- }
-#line 25838 ""
- s_wsfe(&io___1924);
-#line 25838 ""
- do_fio(&c__1, "Bytes used:", (ftnlen)11);
-#line 25838 ""
- i__2 = commidi_1.numchan;
-#line 25838 ""
- for (icm = 0; icm <= i__2; ++icm) {
-#line 25838 ""
- do_fio(&c__1, (char *)&commidi_1.imidi[icm], (ftnlen)sizeof(integer));
-#line 25838 ""
- }
-#line 25838 ""
- e_wsfe();
-#line 25839 ""
- s_wsfe(&io___1925);
-#line 25839 ""
- do_fio(&c__1, "Bytes used:", (ftnlen)11);
-#line 25839 ""
- i__2 = commidi_1.numchan;
-#line 25839 ""
- for (icm = 0; icm <= i__2; ++icm) {
-#line 25839 ""
- do_fio(&c__1, (char *)&commidi_1.imidi[icm], (ftnlen)sizeof(integer));
-#line 25839 ""
- }
-#line 25839 ""
- e_wsfe();
-#line 25841 ""
- cl__1.cerr = 0;
-#line 25841 ""
- cl__1.cunit = 51;
-#line 25841 ""
- cl__1.csta = 0;
-#line 25841 ""
- f_clos(&cl__1);
-#line 25842 ""
- if (commidi_1.debugmidi) {
-#line 25842 ""
- cl__1.cerr = 0;
-#line 25842 ""
- cl__1.cunit = 52;
-#line 25842 ""
- cl__1.csta = 0;
-#line 25842 ""
- f_clos(&cl__1);
-#line 25842 ""
- }
-#line 25843 ""
- return 0;
-} /* writemidi_ */
-
-/* Subroutine */ int writesetsign_(integer *ninsttrans, integer *iinsttrans,
- integer *itranskey, logical *flag__)
-{
- /* System generated locals */
- address a__1[2];
- integer i__1, i__2[2], i__3;
- char ch__1[1], ch__2[80];
- icilist ici__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- , s_wsfe(cilist *), e_wsfe(void);
-
- /* Local variables */
- static integer i__;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer lnote;
- static char notexq[79];
-
- /* Fortran I/O blocks */
- static cilist io___1929 = { 0, 11, 0, "(a)", 0 };
-
-
-
-/* Assumes notexq is blank */
-
-#line 25854 ""
- /* Parameter adjustments */
-#line 25854 ""
- --itranskey;
-#line 25854 ""
- --iinsttrans;
-#line 25854 ""
-
-#line 25854 ""
- /* Function Body */
-#line 25854 ""
- i__1 = *ninsttrans;
-#line 25854 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-/* Writing concatenation */
-#line 25855 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 25855 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 25855 ""
- i__2[1] = 7, a__1[1] = "setsign";
-#line 25855 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 25856 ""
- lnote = 8;
-#line 25857 ""
- if (iinsttrans[i__] < 10) {
-/* Writing concatenation */
-#line 25858 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 25858 ""
- i__3 = iinsttrans[i__] + 48;
-#line 25858 ""
- chax_(ch__1, (ftnlen)1, &i__3);
-#line 25858 ""
- i__2[1] = 1, a__1[1] = ch__1;
-#line 25858 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 25859 ""
- ++lnote;
-#line 25860 ""
- } else {
-#line 25861 ""
- i__3 = lnote;
-#line 25861 ""
- ici__1.icierr = 0;
-#line 25861 ""
- ici__1.icirnum = 1;
-#line 25861 ""
- ici__1.icirlen = lnote + 4 - i__3;
-#line 25861 ""
- ici__1.iciunit = notexq + i__3;
-#line 25861 ""
- ici__1.icifmt = "(a1,i2,a1)";
-#line 25861 ""
- s_wsfi(&ici__1);
-#line 25861 ""
- do_fio(&c__1, "{", (ftnlen)1);
-#line 25861 ""
- do_fio(&c__1, (char *)&iinsttrans[i__], (ftnlen)sizeof(integer));
-#line 25861 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 25861 ""
- e_wsfi();
-#line 25863 ""
- lnote += 4;
-#line 25864 ""
- }
-#line 25865 ""
- if (itranskey[i__] < 0) {
-#line 25866 ""
- i__3 = lnote;
-#line 25866 ""
- ici__1.icierr = 0;
-#line 25866 ""
- ici__1.icirnum = 1;
-#line 25866 ""
- ici__1.icirlen = lnote + 4 - i__3;
-#line 25866 ""
- ici__1.iciunit = notexq + i__3;
-#line 25866 ""
- ici__1.icifmt = "(a1,i2,a1)";
-#line 25866 ""
- s_wsfi(&ici__1);
-#line 25866 ""
- do_fio(&c__1, "{", (ftnlen)1);
-#line 25866 ""
- do_fio(&c__1, (char *)&itranskey[i__], (ftnlen)sizeof(integer));
-#line 25866 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 25866 ""
- e_wsfi();
-#line 25868 ""
- lnote += 4;
-#line 25869 ""
- } else {
-/* Writing concatenation */
-#line 25870 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 25870 ""
- i__3 = itranskey[i__] + 48;
-#line 25870 ""
- chax_(ch__1, (ftnlen)1, &i__3);
-#line 25870 ""
- i__2[1] = 1, a__1[1] = ch__1;
-#line 25870 ""
- s_cat(notexq, a__1, i__2, &c__2, (ftnlen)79);
-#line 25871 ""
- ++lnote;
-#line 25872 ""
- }
-#line 25873 ""
- s_wsfe(&io___1929);
-/* Writing concatenation */
-#line 25873 ""
- i__2[0] = lnote, a__1[0] = notexq;
-#line 25873 ""
- i__2[1] = 1, a__1[1] = "%";
-#line 25873 ""
- s_cat(ch__2, a__1, i__2, &c__2, (ftnlen)80);
-#line 25873 ""
- do_fio(&c__1, ch__2, lnote + 1);
-#line 25873 ""
- e_wsfe();
-#line 25874 ""
-/* L1: */
-#line 25874 ""
- }
-#line 25875 ""
- *flag__ = FALSE_;
-#line 25876 ""
- return 0;
-} /* writesetsign_ */
-
-/* Subroutine */ int writflot_(real *x, char *notexq, integer *lenline,
- ftnlen notexq_len)
-{
- /* System generated locals */
- integer i__1;
- icilist ici__1;
-
- /* Builtin functions */
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- ;
-
-#line 25880 ""
- if (*x < .95f) {
-#line 25881 ""
- i__1 = *lenline;
-#line 25881 ""
- ici__1.icierr = 0;
-#line 25881 ""
- ici__1.icirnum = 1;
-#line 25881 ""
- ici__1.icirlen = *lenline + 2 - i__1;
-#line 25881 ""
- ici__1.iciunit = notexq + i__1;
-#line 25881 ""
- ici__1.icifmt = "(f2.1)";
-#line 25881 ""
- s_wsfi(&ici__1);
-#line 25881 ""
- do_fio(&c__1, (char *)&(*x), (ftnlen)sizeof(real));
-#line 25881 ""
- e_wsfi();
-#line 25882 ""
- *lenline += 2;
-#line 25883 ""
- } else if (*x < 9.95f) {
-#line 25884 ""
- i__1 = *lenline;
-#line 25884 ""
- ici__1.icierr = 0;
-#line 25884 ""
- ici__1.icirnum = 1;
-#line 25884 ""
- ici__1.icirlen = *lenline + 3 - i__1;
-#line 25884 ""
- ici__1.iciunit = notexq + i__1;
-#line 25884 ""
- ici__1.icifmt = "(f3.1)";
-#line 25884 ""
- s_wsfi(&ici__1);
-#line 25884 ""
- do_fio(&c__1, (char *)&(*x), (ftnlen)sizeof(real));
-#line 25884 ""
- e_wsfi();
-#line 25885 ""
- *lenline += 3;
-#line 25886 ""
- } else {
-#line 25887 ""
- i__1 = *lenline;
-#line 25887 ""
- ici__1.icierr = 0;
-#line 25887 ""
- ici__1.icirnum = 1;
-#line 25887 ""
- ici__1.icirlen = *lenline + 4 - i__1;
-#line 25887 ""
- ici__1.iciunit = notexq + i__1;
-#line 25887 ""
- ici__1.icifmt = "(f4.1)";
-#line 25887 ""
- s_wsfi(&ici__1);
-#line 25887 ""
- do_fio(&c__1, (char *)&(*x), (ftnlen)sizeof(real));
-#line 25887 ""
- e_wsfi();
-#line 25888 ""
- *lenline += 4;
-#line 25889 ""
- }
-#line 25890 ""
- return 0;
-} /* writflot_ */
-
-/* Subroutine */ int wsclef_(integer *iv, integer *ninow, integer *nclef)
-{
- /* System generated locals */
- address a__1[3], a__2[2], a__3[4];
- integer i__1, i__2[3], i__3[2], i__4, i__5[4];
- char ch__1[1], ch__2[1], ch__3[9], ch__4[42], ch__5[33];
-
- /* Builtin functions */
- integer s_wsle(cilist *), e_wsle(void), do_lio(integer *, integer *, char
- *, ftnlen);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer s_wsfi(icilist *), do_fio(integer *, char *, ftnlen), e_wsfi(void)
- , s_wsfe(cilist *), e_wsfe(void);
-
- /* Local variables */
- static integer iv1, iv2, iiv;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- static integer ltem;
- static char temq[40];
- extern /* Subroutine */ int stop1_(void);
- static integer iinst;
- extern integer numclef_(char *, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___1932 = { 0, 6, 0, 0, 0 };
- static cilist io___1933 = { 0, 6, 0, 0, 0 };
- static icilist io___1937 = { 0, temq, 0, "(a9,i2,a1)", 40, 1 };
- static cilist io___1938 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1940 = { 0, 11, 0, "(a)", 0 };
- static cilist io___1941 = { 0, 11, 0, "(a)", 0 };
-
-
-/* subroutine wsclef(iv,ninow,clefq,nclef) */
-
-/* Writes \setclef for instrument containing *staff* iv */
-
-
-/* In pmx271, had removed clefq, so with 2 or more staves in */
-/* an instrument, had problems. So replace in 272 */
-
-#line 25911 ""
- if (*nclef < 7) {
-#line 25912 ""
- i__1 = *nclef + 48;
-#line 25912 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 25912 ""
- *(unsigned char *)&comclefq_1.clefq[*iv - 1] = *(unsigned char *)&
- ch__1[0];
-#line 25913 ""
- } else {
-#line 25914 ""
- *(unsigned char *)&comclefq_1.clefq[*iv - 1] = '9';
-#line 25915 ""
- }
-#line 25916 ""
- if (! comlast_1.islast) {
-#line 25916 ""
- return 0;
-#line 25916 ""
- }
-#line 25917 ""
- iv1 = 1;
-#line 25918 ""
- i__1 = *ninow;
-#line 25918 ""
- for (iinst = 1; iinst <= i__1; ++iinst) {
-#line 25919 ""
- if (*iv < iv1 + comnvi_1.nspern[iinst - 1]) {
-#line 25919 ""
- goto L2;
-#line 25919 ""
- }
-#line 25920 ""
- iv1 += comnvi_1.nspern[iinst - 1];
-#line 25921 ""
-/* L1: */
-#line 25921 ""
- }
-#line 25922 ""
- s_wsle(&io___1932);
-#line 25922 ""
- e_wsle();
-#line 25923 ""
- s_wsle(&io___1933);
-#line 25923 ""
- do_lio(&c__9, &c__1, "Should not be here in wsclef!", (ftnlen)29);
-#line 25923 ""
- e_wsle();
-#line 25924 ""
- stop1_();
-#line 25925 ""
-L2:
-
-/* Here, iinst is the instrument number with staff of clef change */
-
-#line 25929 ""
- iv2 = iv1 + comnvi_1.nspern[iinst - 1] - 1;
-#line 25930 ""
- if (iinst < 10) {
-/* Writing concatenation */
-#line 25931 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 25931 ""
- i__2[0] = 1, a__1[0] = ch__1;
-#line 25931 ""
- i__2[1] = 7, a__1[1] = "setclef";
-#line 25931 ""
- i__1 = iinst + 48;
-#line 25931 ""
- chax_(ch__2, (ftnlen)1, &i__1);
-#line 25931 ""
- i__2[2] = 1, a__1[2] = ch__2;
-#line 25931 ""
- s_cat(temq, a__1, i__2, &c__3, (ftnlen)40);
-#line 25932 ""
- ltem = 9;
-#line 25933 ""
- } else {
-#line 25934 ""
- s_wsfi(&io___1937);
-/* Writing concatenation */
-#line 25934 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 25934 ""
- i__3[0] = 1, a__2[0] = ch__1;
-#line 25934 ""
- i__3[1] = 8, a__2[1] = "setclef{";
-#line 25934 ""
- s_cat(ch__3, a__2, i__3, &c__2, (ftnlen)9);
-#line 25934 ""
- do_fio(&c__1, ch__3, (ftnlen)9);
-#line 25934 ""
- do_fio(&c__1, (char *)&iinst, (ftnlen)sizeof(integer));
-#line 25934 ""
- do_fio(&c__1, "}", (ftnlen)1);
-#line 25934 ""
- e_wsfi();
-#line 25935 ""
- ltem = 12;
-#line 25936 ""
- }
-#line 25937 ""
- if (iv1 == iv2) {
-
-/* Only one staff (iv) in instrument with clef change */
-
-#line 25941 ""
- s_wsfe(&io___1938);
-/* Writing concatenation */
-#line 25941 ""
- i__2[0] = ltem, a__1[0] = temq;
-#line 25941 ""
- i__2[1] = 1, a__1[1] = comclefq_1.clefq + (*iv - 1);
-#line 25941 ""
- i__2[2] = 1, a__1[2] = "%";
-#line 25941 ""
- s_cat(ch__4, a__1, i__2, &c__3, (ftnlen)42);
-#line 25941 ""
- do_fio(&c__1, ch__4, ltem + 2);
-#line 25941 ""
- e_wsfe();
-#line 25942 ""
- } else {
-/* Writing concatenation */
-#line 25943 ""
- i__3[0] = ltem, a__2[0] = temq;
-#line 25943 ""
- i__3[1] = 1, a__2[1] = "{";
-#line 25943 ""
- s_cat(temq, a__2, i__3, &c__2, (ftnlen)40);
-#line 25944 ""
- ++ltem;
-
-/* Loop over staves, but clefq has only changed for one of them */
-
-#line 25948 ""
- i__1 = iv2;
-#line 25948 ""
- for (iiv = iv1; iiv <= i__1; ++iiv) {
-/* Writing concatenation */
-#line 25949 ""
- i__3[0] = ltem, a__2[0] = temq;
-#line 25949 ""
- i__4 = numclef_(comclefq_1.clefq + (iiv - 1), (ftnlen)1) + 48;
-#line 25949 ""
- chax_(ch__1, (ftnlen)1, &i__4);
-#line 25949 ""
- i__3[1] = 1, a__2[1] = ch__1;
-#line 25949 ""
- s_cat(temq, a__2, i__3, &c__2, (ftnlen)40);
-#line 25950 ""
- ++ltem;
-#line 25951 ""
-/* L3: */
-#line 25951 ""
- }
-#line 25952 ""
- s_wsfe(&io___1940);
-/* Writing concatenation */
-#line 25952 ""
- i__3[0] = ltem, a__2[0] = temq;
-#line 25952 ""
- i__3[1] = 2, a__2[1] = "}%";
-#line 25952 ""
- s_cat(ch__4, a__2, i__3, &c__2, (ftnlen)42);
-#line 25952 ""
- do_fio(&c__1, ch__4, ltem + 2);
-#line 25952 ""
- e_wsfe();
-#line 25953 ""
- }
-#line 25954 ""
- if (comc8flag_1.c8flag[*iv - 1]) {
-
-/* If we change FROM octave treble clef to some other, need the following. */
-
-#line 25958 ""
- s_wsfe(&io___1941);
-/* Writing concatenation */
-#line 25958 ""
- i__5[0] = 20, a__3[0] = "\\settrebleclefsymbol";
-#line 25958 ""
- i__1 = iinst + 48;
-#line 25958 ""
- chax_(ch__1, (ftnlen)1, &i__1);
-#line 25958 ""
- i__5[1] = 1, a__3[1] = ch__1;
-#line 25958 ""
- i__5[2] = 1, a__3[2] = "\\";
-#line 25958 ""
- i__5[3] = 11, a__3[3] = "trebleclef%";
-#line 25958 ""
- s_cat(ch__5, a__3, i__5, &c__4, (ftnlen)33);
-#line 25958 ""
- do_fio(&c__1, ch__5, (ftnlen)33);
-#line 25958 ""
- e_wsfe();
-#line 25960 ""
- comc8flag_1.c8flag[*iv - 1] = FALSE_;
-#line 25961 ""
- }
-#line 25962 ""
- return 0;
-} /* wsclef_ */
-
-/* Subroutine */ int chkpmxlyr_(char *lineq, integer *iccount, integer *
- lyrerr, ftnlen lineq_len)
-{
- /* System generated locals */
- integer i__1;
-
- /* Builtin functions */
- 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 25967 ""
- *lyrerr = 0;
-
-/* On entry, last char was " */
-
-#line 25971 ""
-L18:
-#line 25971 ""
- g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 25972 ""
- if (*iccount == 121) {
-#line 25973 ""
- *lyrerr = 2;
-#line 25974 ""
- return 0;
-/* else if (charq.eq.'"') then */
-#line 25976 ""
- } else /* if(complicated condition) */ {
-#line 25976 ""
- i__1 = *iccount - 2;
-#line 25976 ""
- if (*(unsigned char *)charq == '"' && ! (s_cmp(lineq + i__1, "\\", *
- iccount - 1 - i__1, (ftnlen)1) == 0)) {
-#line 25978 ""
- g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-
-/* Check for raise/lower command */
-
-#line 25982 ""
- if (*(unsigned char *)charq == '@') {
-
-/* @ positions lyrics vertically for current voice */
-/* [a,b] above or below of the staff */
-/* +/- i offset, \internotes */
-
-#line 25988 ""
- g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 25989 ""
- if (i_indx("ab", charq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 25990 ""
- *lyrerr = 3;
-#line 25991 ""
- return 0;
-#line 25992 ""
- }
-#line 25993 ""
- g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 25994 ""
- if (i_indx("+-", charq, (ftnlen)2, (ftnlen)1) == 0) {
-#line 25995 ""
- *lyrerr = 4;
-#line 25996 ""
- return 0;
-#line 25997 ""
- }
-#line 25998 ""
- g1etchar_(lineq, iccount, charq, (ftnlen)128, (ftnlen)1);
-#line 25999 ""
- if (i_indx("0123456789", charq, (ftnlen)10, (ftnlen)1) == 0) {
-#line 26000 ""
- *lyrerr = 5;
-#line 26001 ""
- return 0;
-#line 26002 ""
- }
-#line 26003 ""
- } else if (*(unsigned char *)charq != ' ') {
-
-/* 2nd " must be followed by ' ' */
-
-#line 26007 ""
- *lyrerr = 1;
-#line 26008 ""
- return 0;
-#line 26009 ""
- }
-#line 26010 ""
- return 0;
-#line 26011 ""
- }
-#line 26011 ""
- }
-#line 26012 ""
- goto L18;
-} /* chkpmxlyr_ */
-
-/* Subroutine */ int dopmxlyr_(char *lineq, integer *iccount, ftnlen
- lineq_len)
-{
- /* System generated locals */
- address a__1[4], a__2[6], a__3[7];
- integer i__1, i__2[4], i__3[6], i__4, i__5[7];
- char ch__1[1];
-
- /* Builtin functions */
- 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);
-
- /* Local variables */
- static char sq[1];
- static integer i2nd, iend;
- extern /* Character */ VOID chax_(char *, ftnlen, integer *);
- extern /* Subroutine */ int stop1_(void);
- static integer itilde;
- static char lineqt[128];
- static integer istart;
- extern integer lenstr_(char *, integer *, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___1948 = { 0, 6, 0, 0, 0 };
-
-
-
-/* lineq has " at iccount. Find end of lyrics string, replace "..." */
-/* with \pmxlyr{...}\, but also look for ~ in lyrics and replace with '\ll ', */
-/* (unless preceded with '\'), check length */
-
-#line 26022 ""
- chax_(ch__1, (ftnlen)1, &c__92);
-#line 26022 ""
- *(unsigned char *)sq = *(unsigned char *)&ch__1[0];
-#line 26023 ""
- iend = lenstr_(lineq, &c__128, (ftnlen)128);
-
-/* i2nd = iccount+index(lineq(iccount+1:128),'"') */
-/* Find position of closing '"'; must bypass any \" which is used for umlaut */
-
-#line 26028 ""
- i__1 = *iccount;
-#line 26028 ""
- i2nd = *iccount + i_indx(lineq + i__1, "\"", 128 - i__1, (ftnlen)1);
-#line 26029 ""
-L2:
-#line 26030 ""
- i__1 = i2nd - 2;
-#line 26030 ""
- if (s_cmp(lineq + i__1, "\\", i2nd - 1 - i__1, (ftnlen)1) == 0) {
-#line 26031 ""
- i__1 = i2nd;
-#line 26031 ""
- i2nd += i_indx(lineq + i__1, "\"", 128 - i__1, (ftnlen)1);
-#line 26032 ""
- goto L2;
-#line 26033 ""
- }
-#line 26034 ""
- istart = *iccount;
-#line 26035 ""
-L1:
-#line 26035 ""
- i__1 = istart;
-#line 26035 ""
- itilde = istart + i_indx(lineq + i__1, "~", i2nd - 1 - i__1, (ftnlen)1);
-#line 26036 ""
- if (itilde > istart && itilde < i2nd) {
-
-/* Replace tilde if not preceded by \ */
-
-#line 26040 ""
- if (iend >= 117) {
-#line 26041 ""
- s_wsle(&io___1948);
-#line 26041 ""
- do_lio(&c__9, &c__1, "Sorry, lyric string is too long, stopping",
- (ftnlen)41);
-#line 26041 ""
- e_wsle();
-#line 26042 ""
- stop1_();
-#line 26043 ""
- } else /* if(complicated condition) */ {
-#line 26043 ""
- i__1 = itilde - 2;
-#line 26043 ""
- if (s_cmp(lineq + i__1, sq, itilde - 1 - i__1, (ftnlen)1) == 0) {
-#line 26044 ""
- istart = itilde;
-#line 26045 ""
- goto L1;
-#line 26046 ""
- }
-#line 26046 ""
- }
-#line 26047 ""
- i__1 = itilde;
-/* Writing concatenation */
-#line 26047 ""
- i__2[0] = itilde - 1, a__1[0] = lineq;
-#line 26047 ""
- i__2[1] = 1, a__1[1] = sq;
-#line 26047 ""
- i__2[2] = 3, a__1[2] = "lk ";
-#line 26047 ""
- i__2[3] = iend - i__1, a__1[3] = lineq + i__1;
-#line 26047 ""
- s_cat(lineqt, a__1, i__2, &c__4, (ftnlen)128);
-#line 26049 ""
- iend = lenstr_(lineqt, &c__128, (ftnlen)128);
-#line 26050 ""
- i2nd += 3;
-#line 26051 ""
- s_copy(lineq, lineqt, (ftnlen)128, (ftnlen)128);
-#line 26052 ""
- goto L1;
-#line 26053 ""
- }
-#line 26054 ""
- if (*iccount == 1) {
-#line 26055 ""
- i__1 = i2nd;
-/* Writing concatenation */
-#line 26055 ""
- i__3[0] = 1, a__2[0] = sq;
-#line 26055 ""
- i__3[1] = 7, a__2[1] = "pmxlyr{";
-#line 26055 ""
- i__3[2] = i2nd - 2, a__2[2] = lineq + 1;
-#line 26055 ""
- i__3[3] = 1, a__2[3] = "}";
-#line 26055 ""
- i__3[4] = 1, a__2[4] = sq;
-#line 26055 ""
- i__3[5] = 128 - i__1, a__2[5] = lineq + i__1;
-#line 26055 ""
- s_cat(lineqt, a__2, i__3, &c__6, (ftnlen)128);
-#line 26057 ""
- } else {
-#line 26058 ""
- i__1 = *iccount;
-#line 26058 ""
- i__4 = i2nd;
-/* Writing concatenation */
-#line 26058 ""
- i__5[0] = *iccount - 1, a__3[0] = lineq;
-#line 26058 ""
- i__5[1] = 1, a__3[1] = sq;
-#line 26058 ""
- i__5[2] = 7, a__3[2] = "pmxlyr{";
-#line 26058 ""
- i__5[3] = i2nd - 1 - i__1, a__3[3] = lineq + i__1;
-#line 26058 ""
- i__5[4] = 1, a__3[4] = "}";
-#line 26058 ""
- i__5[5] = 1, a__3[5] = sq;
-#line 26058 ""
- i__5[6] = 128 - i__4, a__3[6] = lineq + i__4;
-#line 26058 ""
- s_cat(lineqt, a__3, i__5, &c__7, (ftnlen)128);
-#line 26061 ""
- }
-#line 26062 ""
- i2nd += 8;
-#line 26063 ""
- s_copy(lineq, lineqt, (ftnlen)128, (ftnlen)128);
-#line 26064 ""
- i__1 = i2nd;
-#line 26064 ""
- if (s_cmp(lineq + i__1, "@", i2nd + 1 - i__1, (ftnlen)1) == 0) {
-#line 26065 ""
- i__1 = i2nd + 1;
-#line 26065 ""
- i__4 = i2nd + 4;
-/* Writing concatenation */
-#line 26065 ""
- i__3[0] = i2nd, a__2[0] = lineq;
-#line 26065 ""
- i__3[1] = 3, a__2[1] = "at{";
-#line 26065 ""
- i__3[2] = i2nd + 4 - i__1, a__2[2] = lineq + i__1;
-#line 26065 ""
- i__3[3] = 1, a__2[3] = "}";
-#line 26065 ""
- i__3[4] = 1, a__2[4] = sq;
-#line 26065 ""
- i__3[5] = 128 - i__4, a__2[5] = lineq + i__4;
-#line 26065 ""
- s_cat(lineqt, a__2, i__3, &c__6, (ftnlen)128);
-#line 26067 ""
- s_copy(lineq, lineqt, (ftnlen)128, (ftnlen)128);
-#line 26068 ""
- }
-#line 26069 ""
- return 0;
-} /* dopmxlyr_ */
-
-/* Subroutine */ int inst2chan_(integer *midc, integer *midi, integer *
- midchan, integer *nv, shortint *iinsiv, logical *twoline)
-{
- static integer iv;
-
-/* propagate per-instrument quantities to per-channel ones */
-#line 26077 ""
- /* Parameter adjustments */
-#line 26077 ""
- --twoline;
-#line 26077 ""
- --iinsiv;
-#line 26077 ""
- midchan -= 25;
-#line 26077 ""
- --midi;
-#line 26077 ""
-
-#line 26077 ""
- /* Function Body */
-#line 26077 ""
- for (iv = *nv; iv >= 1; --iv) {
-#line 26078 ""
- if (twoline[iv]) {
-#line 26079 ""
- midc[midchan[iv + 48]] = midi[iinsiv[iv]];
-#line 26080 ""
- }
-#line 26081 ""
- midc[midchan[iv + 24]] = midi[iinsiv[iv]];
-#line 26082 ""
- }
-#line 26083 ""
- return 0;
-} /* inst2chan_ */
-
-/* Main program alias */ int pmxab_ () { MAIN__ (); return 0; }
diff --git a/Build/source/utils/pmx/pmx-src/scor2prt.c b/Build/source/utils/pmx/pmx-src/scor2prt.c
deleted file mode 100644
index 4873c52314d..00000000000
--- a/Build/source/utils/pmx/pmx-src/scor2prt.c
+++ /dev/null
@@ -1,4335 +0,0 @@
-#line 1 ""
-/* -- translated by f2c (version 20160102).
- You must link the resulting object file with libf2c:
- on Microsoft Windows system, link with libf2c.lib;
- on Linux or Unix systems, link with .../path/to/libf2c.a -lm
- or, if you install libf2c.a in a standard place, with -lf2c -lm
- -- in that order, at the end of the command line, as in
- cc *.o -lf2c -lm
- Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
-
- http://www.netlib.org/f2c/libf2c.zip
-*/
-
-#include "f2c.h"
-
-#line 1 ""
-/* Common Block Declarations */
-
-struct all_1_ {
- integer noinow, iorig[24], noinst;
- logical insetup, replacing;
- integer instnum[24];
- logical botv[24];
- integer nvi[24], nsyst, nvnow;
-};
-
-#define all_1 (*(struct all_1_ *) &all_)
-
-/* Initialized data */
-
-struct {
- integer e_1;
- integer fill_2[24];
- integer e_3;
- integer fill_4[26];
- logical e_5[24];
- integer e_6[24];
- integer fill_7[2];
- } all_ = { 24, {0}, 24, {0}, FALSE_, FALSE_, FALSE_, FALSE_, FALSE_,
- FALSE_, FALSE_, FALSE_, FALSE_, FALSE_, FALSE_, FALSE_, FALSE_,
- FALSE_, FALSE_, FALSE_, FALSE_, FALSE_, FALSE_, FALSE_, FALSE_,
- FALSE_, FALSE_, FALSE_, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
-
-
-/* Table of constant values */
-
-static integer c__9 = 9;
-static integer c__1 = 1;
-static integer c__27 = 27;
-static integer c__2 = 2;
-static integer c__128 = 128;
-static integer c_n1 = -1;
-static integer c__0 = 0;
-static integer c__3 = 3;
-static integer c__4 = 4;
-static integer c__5 = 5;
-static integer c__79 = 79;
-static integer c__125 = 125;
-
-/* ccccccccccccccccccccccccc */
-/* c */
-/* 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 */
-/* with MusiXTeX and TeX, the purpose of PMX is to allow the user to create */
-/* high-quality typeset musical scores by including a sequence of PMX commands */
-/* in an ASCII input file. Scor2prt is an auxiliary program that creates PMX */
-/* input files for individual parts from the PMX input file for the score. */
-
-/* This program is free software: you can redistribute it and/or modify */
-/* it under the terms of the GNU General Public License as published by */
-/* the Free Software Foundation, either version 3 of the License, or */
-/* (at your option) any later version. */
-
-/* This program is distributed in the hope that it will be useful, */
-/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
-/* GNU General Public License for more details. */
-
-/* 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 */
-/* Copy & mod Ki into parts when after beginning. */
-/* 7/18/11 */
-/* Start to fix up for AS..., also Ki was done a little earlier. */
-/* 7/5/10 */
-/* Modify Manual to explain extended hex numbering for part-specific comments */
-/* 5/16/10 */
-/* Extend part-specific comments for up to 24 parts (subroutine chkcom) */
-/* Allow files 11-34 for parts */
-/* Change file 30 to 40 */
-/* 6/1/08 es2p */
-/* noimax = 24 */
-
-/* To do */
-/* Override fracindent, musicsize? */
-/* Deal with midbar R? */
-/* 2/29/04 */
-/* Check for special character being in quoted string. */
-/* 10/20/02 PMX 2.407 */
-/* Interpret AN[n]"[used-defined-part-file-name]" */
-/* 1/21/02 */
-/* Deals with rm in multiple parts. */
-/* s2p15 */
-/* Get right non-tex index even if there's "\" inside D"..." */
-/* s2p14 */
-/* 10/29/00 fix transfer to parts of negative mtrdnp */
-/* 4/29/00 screen for "%%" followed by "T" */
-/* Restore change from "Version 2.1a, 21 Dec" */
-/* s2p13 */
-/* Allow whole-bar double-whole rests. */
-/* Bypass MIDI commands "I..." achar(10)="I" */
-/* s2p12 */
-/* Let %ablabla ... %cblabla represent pmx input for parts 10-12. But %?blabla */
-/* only taken as such if ? represents a hex digit .le. noinst, otherwise it's */
-/* a simple comment. This lessens incompatibility. */
-/* In subroutine mbrest, properly open parts 10-12 if needed */
-/* s2p11 */
-/* Ignore leading blanks */
-/* Fix undefined linelength in mbrest at very end of comments. */
-/* s2p10 */
-/* Fix non-transfer of P..c" " */
-/* Allow "%%" and "%"n anywhere */
-/* Version 1.43 */
-/* Fix bug with P in TeX string. */
-/* Ignore shifted whole-bar rests when consolidating whole-bar rests */
-/* Copy type 4 TeX into all parts. */
-/* Deal with XB and XP. */
-/* Permit transfer of blank line into parts */
-/* Change staves/inst in 'M' command. */
-/* Arbitrary staves/inst. */
-/* Recognize m1/2/3/4 syntax. */
-/* Enable comment and one-voice syntax in instrument names */
-
-/* Changes since 1.1 */
-/* Deal with saved macros. */
-/* Revise setup readin, to admit comments. */
-/* Do not copy 'X' into parts */
-
-/* ccccccccccccccccccccccccccccccccccccccccccccccc */
-/* Main program */ int MAIN__(void)
-{
- /* Initialized data */
-
- static char achar[1*10] = "P" "m" "V" "R" "A" "h" "w" "K" "M" "I";
-
- /* System generated locals */
- address a__1[2], a__2[3];
- integer i__1, i__2, i__3[2], i__4[3];
- char ch__1[44], ch__2[31], ch__3[4], ch__4[1], ch__5[2], ch__6[131];
- cilist ci__1;
- icilist ici__1;
- olist o__1;
- cllist cl__1;
- alist al__1;
- inlist ioin__1;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void), s_rsfe(cilist *), do_fio(integer *, char *, ftnlen),
- e_rsfe(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
- integer i_indx(char *, char *, ftnlen, ftnlen);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen), s_cat(char *,
- char **, integer *, integer *, ftnlen);
- integer f_inqu(inlist *), f_open(olist *), s_cmp(char *, char *, ftnlen,
- ftnlen), f_back(alist *), s_wsfe(cilist *), e_wsfe(void), s_rsfi(
- icilist *), e_rsfi(void), f_clos(cllist *);
-
- /* Local variables */
- extern /* Subroutine */ int oddquotesbefore_(char *, integer *, logical *,
- ftnlen);
- static logical clefpend;
- static real xmtrnum0;
- static char templine[128];
- extern /* Subroutine */ int allparts_(char *, integer *, ftnlen);
- static integer musicsize, ia, ib, ic, iv;
- static char sq[1];
- static integer nv, idxendname;
- static real fracindent;
- static integer ibb, len, ivq, iend, nchk, idxa, ljob;
- static char line[128];
- static integer isig, locp, idxq, ndxm, idxs, inst, idxq2, idxstartname;
- extern integer iargc_(void);
- static integer kvend;
- extern /* Subroutine */ int zapbl_(char *, integer *, ftnlen);
- static integer itemp, iinst, ntinx;
- static logical oneof2, goto999;
- extern doublereal readin_(char *, integer *, integer *, ftnlen);
- extern /* Subroutine */ int chkcom_(char *, logical *, ftnlen), getarg_(
- integer *, char *, ftnlen);
- static integer npages;
- static char holdln[128];
- static integer iudpfn;
- static logical yesodd;
- static integer ludpfn[24];
- static char udpfnq[128*24];
- static integer iiinst;
- static logical fexist;
- static integer ivlast, mtrdnp;
- extern integer lenstr_(char *, integer *, ftnlen);
- static logical frstln;
- static integer insnow, ndxpmx, mtrnmp;
- static logical isachar;
- static char jobname[27];
- static integer lenhold, lenline;
- static char infileq[27];
- static logical gotname;
- static integer iccount, mtrdenl;
- extern integer ntindex_(char *, char *, ftnlen, ftnlen);
- static integer numargs;
- extern /* Subroutine */ int mbrests_(integer *, char *, integer *,
- integer *, char *, ftnlen, ftnlen);
- static logical termrpt;
- static integer mtrnuml;
- static char termsym[2], instrum[128*24];
- static integer kvstart;
-
- /* Fortran I/O blocks */
- static cilist io___6 = { 0, 6, 0, 0, 0 };
- static cilist io___8 = { 0, 6, 0, 0, 0 };
- static cilist io___9 = { 0, 6, 0, 0, 0 };
- static cilist io___10 = { 0, 5, 0, "(a)", 0 };
- 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___23 = { 0, 10, 0, "(a)", 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, 6, 0, 0, 0 };
- static cilist io___42 = { 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___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___63 = { 0, 10, 0, "(a)", 0 };
- static cilist io___69 = { 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___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 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___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 104 ""
- clefpend = FALSE_;
-#line 105 ""
- all_1.insetup = TRUE_;
-#line 106 ""
- all_1.replacing = FALSE_;
-#line 107 ""
- frstln = TRUE_;
-#line 108 ""
- lenhold = 0;
-#line 109 ""
- *(unsigned char *)sq = '\\';
-#line 110 ""
- s_wsle(&io___6);
-#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 111 ""
- numargs = iargc_();
-#line 112 ""
- if (numargs == 0) {
-#line 113 ""
- s_wsle(&io___8);
-#line 113 ""
- do_lio(&c__9, &c__1, "You could have entered a jobname on the comman"\
- "d line,", (ftnlen)53);
-#line 113 ""
- e_wsle();
-#line 114 ""
- s_wsle(&io___9);
-#line 114 ""
- do_lio(&c__9, &c__1, " but you may enter one now:", (ftnlen)32);
-#line 114 ""
- e_wsle();
-#line 115 ""
- s_rsfe(&io___10);
-#line 115 ""
- do_fio(&c__1, jobname, (ftnlen)27);
-#line 115 ""
- e_rsfe();
-#line 116 ""
- numargs = 1;
-#line 117 ""
- } else {
-/* call getarg(1,jobname,idum) ! May need to replace this w/ next line */
-#line 119 ""
- getarg_(&c__1, jobname, (ftnlen)27);
-#line 120 ""
- }
-#line 121 ""
- ljob = lenstr_(jobname, &c__27, (ftnlen)27);
-#line 122 ""
- if (ljob == 0) {
-#line 123 ""
- s_wsle(&io___13);
-#line 123 ""
- do_lio(&c__9, &c__1, "No was jobname entered. Restart and try again.",
- (ftnlen)46);
-#line 123 ""
- e_wsle();
-#line 124 ""
- s_stop("", (ftnlen)0);
-#line 125 ""
- }
-
-/* Strip ".pmx" if necessary */
-
-/* Computing MAX */
-#line 129 ""
- i__1 = i_indx(jobname, ".pmx", (ftnlen)27, (ftnlen)4), i__2 = i_indx(
- jobname, ".PMX", (ftnlen)27, (ftnlen)4);
-#line 129 ""
- ndxpmx = max(i__1,i__2);
-#line 130 ""
- if (ndxpmx > 0) {
-#line 131 ""
- s_copy(jobname, jobname, (ftnlen)27, ndxpmx - 1);
-#line 132 ""
- ljob += -4;
-#line 133 ""
- }
-
-/* Check for existence of input file */
-
-/* Writing concatenation */
-#line 137 ""
- i__3[0] = ljob, a__1[0] = jobname;
-#line 137 ""
- i__3[1] = 4, a__1[1] = ".pmx";
-#line 137 ""
- s_cat(infileq, a__1, i__3, &c__2, (ftnlen)27);
-#line 138 ""
- ioin__1.inerr = 0;
-#line 138 ""
- ioin__1.infilen = 27;
-#line 138 ""
- ioin__1.infile = infileq;
-#line 138 ""
- ioin__1.inex = &fexist;
-#line 138 ""
- ioin__1.inopen = 0;
-#line 138 ""
- ioin__1.innum = 0;
-#line 138 ""
- ioin__1.innamed = 0;
-#line 138 ""
- ioin__1.inname = 0;
-#line 138 ""
- ioin__1.inacc = 0;
-#line 138 ""
- ioin__1.inseq = 0;
-#line 138 ""
- ioin__1.indir = 0;
-#line 138 ""
- ioin__1.infmt = 0;
-#line 138 ""
- ioin__1.inform = 0;
-#line 138 ""
- ioin__1.inunf = 0;
-#line 138 ""
- ioin__1.inrecl = 0;
-#line 138 ""
- ioin__1.innrec = 0;
-#line 138 ""
- ioin__1.inblank = 0;
-#line 138 ""
- f_inqu(&ioin__1);
-#line 139 ""
- if (! fexist) {
-#line 140 ""
- s_wsle(&io___17);
-/* Writing concatenation */
-#line 140 ""
- i__3[0] = 17, a__1[0] = "Cannot find file ";
-#line 140 ""
- i__3[1] = 27, a__1[1] = infileq;
-#line 140 ""
- s_cat(ch__1, a__1, i__3, &c__2, (ftnlen)44);
-#line 140 ""
- do_lio(&c__9, &c__1, ch__1, (ftnlen)44);
-#line 140 ""
- e_wsle();
-#line 141 ""
- s_stop("", (ftnlen)0);
-#line 142 ""
- }
-#line 143 ""
- o__1.oerr = 0;
-#line 143 ""
- o__1.ounit = 10;
-#line 143 ""
- o__1.ofnmlen = ljob + 4;
-/* Writing concatenation */
-#line 143 ""
- i__3[0] = ljob, a__1[0] = jobname;
-#line 143 ""
- i__3[1] = 4, a__1[1] = ".pmx";
-#line 143 ""
- s_cat(ch__2, a__1, i__3, &c__2, (ftnlen)31);
-#line 143 ""
- o__1.ofnm = ch__2;
-#line 143 ""
- o__1.orl = 0;
-#line 143 ""
- o__1.osta = 0;
-#line 143 ""
- o__1.oacc = 0;
-#line 143 ""
- o__1.ofm = 0;
-#line 143 ""
- o__1.oblnk = 0;
-#line 143 ""
- f_open(&o__1);
-
-/* Open all instrument files now for allparts stuff. Later disgard those >nv */
-
-#line 147 ""
- for (iv = 1; iv <= 24; ++iv) {
-#line 148 ""
- all_1.iorig[iv - 1] = iv;
-#line 149 ""
- o__1.oerr = 0;
-#line 149 ""
- o__1.ounit = iv + 10;
-#line 149 ""
- o__1.ofnm = 0;
-#line 149 ""
- o__1.orl = 0;
-#line 149 ""
- o__1.osta = "SCRATCH";
-#line 149 ""
- o__1.oacc = 0;
-#line 149 ""
- o__1.ofm = 0;
-#line 149 ""
- o__1.oblnk = 0;
-#line 149 ""
- f_open(&o__1);
-#line 150 ""
- ludpfn[iv - 1] = 0;
-#line 151 ""
-/* L19: */
-#line 151 ""
- }
-#line 152 ""
- s_rsfe(&io___20);
-#line 152 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 152 ""
- e_rsfe();
-#line 153 ""
- chkcom_(line, &goto999, (ftnlen)128);
-#line 154 ""
- if (s_cmp(line, "---", (ftnlen)3, (ftnlen)3) == 0) {
-#line 155 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 156 ""
-L31:
-#line 156 ""
- s_rsfe(&io___23);
-#line 156 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 156 ""
- e_rsfe();
-#line 157 ""
- if (s_cmp(line, "---", (ftnlen)3, (ftnlen)3) != 0) {
-#line 158 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 159 ""
- goto L31;
-#line 160 ""
- }
-#line 161 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 162 ""
- s_rsfe(&io___24);
-#line 162 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 162 ""
- e_rsfe();
-#line 163 ""
- chkcom_(line, &goto999, (ftnlen)128);
-#line 164 ""
- }
-#line 165 ""
- iccount = 0;
-#line 166 ""
- nv = readin_(line, &iccount, &c__1, (ftnlen)128) + .1f;
-#line 167 ""
- all_1.noinst = readin_(line, &iccount, &c__2, (ftnlen)128) + .1f;
-#line 168 ""
- if (all_1.noinst > 0) {
-#line 169 ""
- all_1.nvi[0] = nv - all_1.noinst + 1;
-#line 170 ""
- } else {
-#line 171 ""
- all_1.noinst = 1 - all_1.noinst;
-#line 172 ""
- i__1 = all_1.noinst;
-#line 172 ""
- for (iinst = 1; iinst <= i__1; ++iinst) {
-#line 173 ""
- all_1.nvi[iinst - 1] = readin_(line, &iccount, &c_n1, (ftnlen)128)
- + .1f;
-#line 174 ""
-/* L21: */
-#line 174 ""
- }
-#line 175 ""
- }
-#line 176 ""
- all_1.noinow = all_1.noinst;
-#line 177 ""
- insnow = 1;
-
-/* ivlast is last iv in current inst. instnum(iv) is iinst for current voice. */
-
-#line 181 ""
- ivlast = all_1.nvi[0];
-#line 182 ""
- i__1 = nv;
-#line 182 ""
- for (iv = 1; iv <= i__1; ++iv) {
-#line 183 ""
- all_1.instnum[iv - 1] = insnow;
-#line 184 ""
- if (iv == ivlast) {
-#line 185 ""
- if (iv < nv) {
-#line 185 ""
- all_1.botv[iv] = TRUE_;
-#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 191 ""
- if (insnow < all_1.noinst) {
-#line 192 ""
- ++insnow;
-#line 193 ""
- ivlast += all_1.nvi[insnow - 1];
-#line 194 ""
- }
-#line 195 ""
- }
-#line 196 ""
-/* L22: */
-#line 196 ""
- }
-#line 197 ""
- mtrnuml = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f;
-#line 198 ""
- mtrdenl = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f;
-#line 199 ""
- mtrnmp = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f;
-#line 200 ""
- mtrdnp = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f;
-#line 201 ""
- xmtrnum0 = readin_(line, &iccount, &c__0, (ftnlen)128);
-#line 202 ""
- isig = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f;
-#line 203 ""
- npages = readin_(line, &iccount, &c__3, (ftnlen)128) + .1f;
-#line 204 ""
- all_1.nsyst = readin_(line, &iccount, &c__0, (ftnlen)128) + .1f;
-#line 205 ""
- musicsize = readin_(line, &iccount, &c__4, (ftnlen)128) + .1f;
-#line 206 ""
- fracindent = readin_(line, &iccount, &c__5, (ftnlen)128);
-#line 207 ""
- if (npages == 0) {
-#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 208 ""
- e_wsle();
-#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 210 ""
- e_wsle();
-#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 212 ""
- e_wsle();
-#line 214 ""
- s_stop("", (ftnlen)0);
-#line 215 ""
- }
-
-/* Must leave insetup=.true. else could bypass ALL instrument names. */
-
-#line 219 ""
- s_rsfe(&io___42);
-#line 219 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 219 ""
- e_rsfe();
-#line 220 ""
- chkcom_(line, &goto999, (ftnlen)128);
-#line 221 ""
- al__1.aerr = 0;
-#line 221 ""
- al__1.aunit = 10;
-#line 221 ""
- f_back(&al__1);
-
-/* Normally this puts pointer at start of line with 1st inst name */
-/* Check if prior line was "%%" */
-
-#line 226 ""
- al__1.aerr = 0;
-#line 226 ""
- al__1.aunit = 10;
-#line 226 ""
- f_back(&al__1);
-#line 227 ""
- s_rsfe(&io___43);
-#line 227 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 227 ""
- e_rsfe();
-#line 228 ""
- if (s_cmp(line, "%%", (ftnlen)2, (ftnlen)2) == 0) {
-#line 228 ""
- al__1.aerr = 0;
-#line 228 ""
- al__1.aunit = 10;
-#line 228 ""
- f_back(&al__1);
-#line 228 ""
- }
-#line 229 ""
- i__1 = all_1.noinst;
-#line 229 ""
- for (iv = 1; iv <= i__1; ++iv) {
-#line 230 ""
- gotname = FALSE_;
-#line 231 ""
-L16:
-#line 231 ""
- s_rsfe(&io___45);
-#line 231 ""
- do_fio(&c__1, instrum + (iv - 1 << 7), (ftnlen)128);
-#line 231 ""
- e_rsfe();
-#line 232 ""
- if (s_cmp(instrum + (iv - 1 << 7), "%%", (ftnlen)2, (ftnlen)2) == 0) {
-#line 233 ""
- s_rsfe(&io___47);
-#line 233 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 233 ""
- e_rsfe();
-#line 234 ""
- goto L16;
-#line 235 ""
- } else if (*(unsigned char *)&instrum[(iv - 1) * 128] == '%') {
-#line 236 ""
- ivq = *(unsigned char *)&instrum[(iv - 1 << 7) + 1] - 48;
-#line 237 ""
- if (ivq != iv) {
-
-/* It's really a comment. Copy to parts, then get another trial name. */
-
-#line 241 ""
- allparts_(instrum + (iv - 1 << 7), &c__128, (ftnlen)128);
-#line 242 ""
- goto L16;
-#line 243 ""
- } else {
-#line 244 ""
- s_copy(line, instrum + ((iv - 1 << 7) + 2), (ftnlen)128, (
- ftnlen)126);
-#line 245 ""
- s_copy(instrum + (iv - 1 << 7), line, (ftnlen)128, (ftnlen)
- 128);
-#line 246 ""
- gotname = TRUE_;
-#line 247 ""
- }
-#line 248 ""
- } else {
-#line 249 ""
- gotname = TRUE_;
-#line 250 ""
- }
-/* c */
-/* c The following checks for macro that write original C-clef as part of */
-/* c instrument name. See pmx.tex */
-/* c */
-/* if (index(instrum(iv),'namewpc') .eq. 0) then */
-/* write(10+iv,'(a)')' ' */
-/* else */
-/* inm1 = index(instrum(iv),'{')+1 */
-/* inm2 = index(instrum(iv),'}')-1 */
-/* read(instrum(iv)(inm2+2:inm2+8),'(i1,4x,2i1)')ilev,iy1,iy2 */
-/* write(10+iv,'(a)')sq//'namewpc{}'//char(ilev+48)//'{20}'// */
-/* * char(iy1+49)//char(iy2+49) */
-/* instrum(iv) = instrum(iv)(inm1:inm2) */
-/* end if */
-#line 265 ""
- if (! gotname) {
-#line 266 ""
- s_wsle(&io___49);
-#line 266 ""
- do_lio(&c__9, &c__1, "You must provide a replacement instrument "\
- "name", (ftnlen)46);
-#line 266 ""
- e_wsle();
-#line 267 ""
- s_stop("", (ftnlen)0);
-#line 268 ""
- }
-#line 269 ""
- io___50.ciunit = iv + 10;
-#line 269 ""
- s_wsfe(&io___50);
-#line 269 ""
- do_fio(&c__1, " ", (ftnlen)1);
-#line 269 ""
- e_wsfe();
-#line 270 ""
-/* L14: */
-#line 270 ""
- }
-#line 271 ""
- all_1.replacing = FALSE_;
-#line 272 ""
- all_1.nvnow = nv;
-
-/* Clef string: Note insetup is still T, so "%%" will be treated specially */
-
-#line 276 ""
- s_rsfe(&io___51);
-#line 276 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 276 ""
- e_rsfe();
-#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 283 ""
- s_rsfe(&io___52);
-#line 283 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 283 ""
- e_rsfe();
-#line 284 ""
- chkcom_(line, &goto999, (ftnlen)128);
-#line 285 ""
- al__1.aerr = 0;
-#line 285 ""
- al__1.aunit = 10;
-#line 285 ""
- f_back(&al__1);
-#line 286 ""
- } else {
-
-/* If here, line has the clef string in it. Handle the old way */
-
-#line 290 ""
- kvstart = 1;
-#line 291 ""
- kvend = all_1.nvi[0];
-#line 292 ""
- i__1 = all_1.noinst;
-#line 292 ""
- for (inst = 1; inst <= i__1; ++inst) {
-#line 293 ""
- ci__1.cierr = 0;
-#line 293 ""
- ci__1.ciunit = inst + 10;
-/* Writing concatenation */
-#line 293 ""
- i__4[0] = 2, a__2[0] = "(a";
-#line 293 ""
- *(unsigned char *)&ch__4[0] = all_1.nvi[inst - 1] + 48;
-#line 293 ""
- i__4[1] = 1, a__2[1] = ch__4;
-#line 293 ""
- i__4[2] = 1, a__2[2] = ")";
-#line 293 ""
- ci__1.cifmt = (s_cat(ch__3, a__2, i__4, &c__3, (ftnlen)4), ch__3);
-#line 293 ""
- s_wsfe(&ci__1);
-#line 293 ""
- do_fio(&c__1, line + (kvstart - 1), kvend - (kvstart - 1));
-#line 293 ""
- e_wsfe();
-#line 295 ""
- if (inst < all_1.noinst) {
-#line 296 ""
- kvstart = kvend + 1;
-#line 297 ""
- kvend = kvstart + all_1.nvi[inst] - 1;
-#line 298 ""
- }
-#line 299 ""
-/* L2: */
-#line 299 ""
- }
-#line 300 ""
- }
-#line 301 ""
- all_1.replacing = FALSE_;
-#line 302 ""
- all_1.insetup = FALSE_;
-
-/* *****NOTE*****This comment applies to stuff done earlier! */
-/* Before starting the big loop, copy initial instnum and staffnum stuff */
-/* into working values. Latter may change if noinst changes. Also make */
-/* list of current inst nums relative to original ones. In addition to those */
-/* below, must redo instnum(iv) and botv(iv) when we change noinst. */
-
-/* Path string: ASSUME THIS WILL NEVER BE ALTERED IN PARTS! */
-
-#line 312 ""
-L18:
-#line 312 ""
- s_rsfe(&io___56);
-#line 312 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 312 ""
- e_rsfe();
-#line 313 ""
- if (*(unsigned char *)line == '%') {
-#line 314 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 315 ""
- goto L18;
-#line 316 ""
- }
-#line 317 ""
- allparts_(line, &c__128, (ftnlen)128);
-
-/* Write instrument names. Will be blank if later part of a score. */
-
-#line 321 ""
- if (*(unsigned char *)&instrum[0] != ' ') {
-#line 322 ""
- i__1 = all_1.noinst;
-#line 322 ""
- for (iv = 1; iv <= i__1; ++iv) {
-#line 323 ""
- len = lenstr_(instrum + (iv - 1 << 7), &c__79, (ftnlen)128);
-#line 324 ""
- io___58.ciunit = iv + 10;
-#line 324 ""
- s_wsfe(&io___58);
-#line 324 ""
- do_fio(&c__1, "Ti", (ftnlen)2);
-#line 324 ""
- do_fio(&c__1, instrum + (iv - 1 << 7), len);
-#line 324 ""
- e_wsfe();
-#line 325 ""
-/* L3: */
-#line 325 ""
- }
-#line 326 ""
- }
-
-/* The big loop. Except for '%%', put all comment lines in all parts. */
-/* Unless preceeded by '%%', put all type 2 or 3 TeX Strings in all parts */
-/* If a line starts with %!, put the rest of it in each part. */
-/* If a line starts with %[n], put the rest of it in part [n]. */
-/* Check for Tt, Tc, Voltas, Repeats, headers, lower texts, meter changes. */
-/* Assume they only come at top of block, except terminal repeat needs */
-/* special handling. */
-/* Check for "P"; ignore in parts. */
-/* Check for consecutive full-bar rests; if found, replace with rm[nn] */
-
-#line 338 ""
- iv = 1;
-#line 339 ""
- iinst = 1;
-#line 340 ""
- termrpt = FALSE_;
-#line 341 ""
-L4:
-#line 342 ""
- i__1 = s_rsfe(&io___60);
-#line 342 ""
- if (i__1 != 0) {
-#line 342 ""
- goto L999;
-#line 342 ""
- }
-#line 342 ""
- i__1 = do_fio(&c__1, line, (ftnlen)128);
-#line 342 ""
- if (i__1 != 0) {
-#line 342 ""
- goto L999;
-#line 342 ""
- }
-#line 342 ""
- i__1 = e_rsfe();
-#line 342 ""
- if (i__1 != 0) {
-#line 342 ""
- goto L999;
-#line 342 ""
- }
-#line 343 ""
- lenline = lenstr_(line, &c__128, (ftnlen)128);
-#line 344 ""
- if (lenline == 0) {
-#line 344 ""
- goto L4;
-#line 344 ""
- }
-#line 345 ""
- zapbl_(line, &c__128, (ftnlen)128);
-#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 349 ""
- if (lenline == 0) {
-#line 349 ""
- goto L4;
-#line 349 ""
- }
-#line 350 ""
- if (*(unsigned char *)line == 'T') {
-#line 351 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 352 ""
- s_rsfe(&io___62);
-#line 352 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 352 ""
- e_rsfe();
-#line 353 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 354 ""
- goto L4;
-#line 355 ""
- } else /* if(complicated condition) */ {
-/* Writing concatenation */
-#line 355 ""
- i__3[0] = 1, a__1[0] = sq;
-#line 355 ""
- i__3[1] = 1, a__1[1] = sq;
-#line 355 ""
- s_cat(ch__5, a__1, i__3, &c__2, (ftnlen)2);
-#line 355 ""
- if (s_cmp(line, ch__5, (ftnlen)2, (ftnlen)2) == 0) {
-#line 356 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 357 ""
- goto L4;
-#line 358 ""
- } else if (i_indx("hl", line, (ftnlen)2, (ftnlen)1) > 0 && i_indx(
- " +-", line + 1, (ftnlen)3, (ftnlen)1) > 0) {
-#line 360 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 361 ""
- s_rsfe(&io___63);
-#line 361 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 361 ""
- e_rsfe();
-#line 362 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 363 ""
- goto L4;
-#line 364 ""
- } else if (iv == 1) {
-#line 365 ""
- for (ia = 1; ia <= 10; ++ia) {
-#line 366 ""
-L24:
-#line 367 ""
- idxa = ntindex_(line, achar + (ia - 1), (ftnlen)128, (ftnlen)
- 1);
-#line 368 ""
- isachar = idxa > 0;
-#line 369 ""
- if (idxa > 1) {
-#line 369 ""
- i__1 = idxa - 2;
-#line 369 ""
- isachar = s_cmp(line + i__1, " ", idxa - 1 - i__1, (
- ftnlen)1) == 0;
-#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 374 ""
- if (ia == 9) {
-#line 374 ""
- i__1 = idxa;
-#line 374 ""
- isachar = isachar && s_cmp(line + i__1, "S", idxa + 1 -
- i__1, (ftnlen)1) == 0;
-#line 374 ""
- }
-#line 376 ""
- if (isachar) {
-
-/* Check whether character is inside a quoted string by counting */
-/* how many quotes precede it in the line */
-
-#line 382 ""
- oddquotesbefore_(line, &idxa, &yesodd, (ftnlen)128);
-#line 383 ""
- if (yesodd) {
-#line 383 ""
- isachar = FALSE_;
-#line 383 ""
- }
-#line 384 ""
- }
-#line 385 ""
- if (isachar) {
-
-/* Find next blank */
-
-#line 389 ""
- for (ib = idxa + 1; ib <= 128; ++ib) {
-#line 390 ""
- if (*(unsigned char *)&line[ib - 1] == ' ') {
-#line 390 ""
- goto L7;
-#line 390 ""
- }
-#line 391 ""
-/* L6: */
-#line 391 ""
- }
-#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 392 ""
- e_wsle();
-#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 393 ""
- e_wsle();
-#line 395 ""
- s_stop("1", (ftnlen)1);
-#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 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 406 ""
- for (ic = ib + 1; ic <= 128; ++ic) {
-
-/* If any subsequent character on this line is neither blank nor "/", get out */
-
-#line 410 ""
- if (i_indx(" /", line + (ic - 1), (ftnlen)2, (
- ftnlen)1) == 0) {
-#line 410 ""
- goto L9;
-#line 410 ""
- }
-#line 411 ""
- if (*(unsigned char *)&line[ic - 1] == '/') {
-#line 412 ""
- termrpt = TRUE_;
-#line 413 ""
- i__1 = ib - 3;
-#line 413 ""
- s_copy(termsym, line + i__1, (ftnlen)2, ib -
- 1 - i__1);
-
-/* Process the line as if there were no "R" */
-
-#line 417 ""
- goto L10;
-#line 418 ""
- }
-#line 419 ""
-/* L8: */
-#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 425 ""
- s_rsfe(&io___73);
-#line 425 ""
- do_fio(&c__1, templine, (ftnlen)128);
-#line 425 ""
- e_rsfe();
-#line 426 ""
- if (s_cmp(templine, " /", (ftnlen)2, (ftnlen)2) != 0)
- {
-#line 427 ""
- al__1.aerr = 0;
-#line 427 ""
- al__1.aunit = 10;
-#line 427 ""
- f_back(&al__1);
-/* and flow out */
-#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 433 ""
- i__3[0] = ib, a__1[0] = line;
-#line 433 ""
- i__3[1] = 1, a__1[1] = "/";
-#line 433 ""
- s_cat(line, a__1, i__3, &c__2, (ftnlen)128);
-#line 434 ""
- lenline += 2;
-#line 435 ""
- termrpt = TRUE_;
-#line 436 ""
- i__1 = ib - 3;
-#line 436 ""
- s_copy(termsym, line + i__1, (ftnlen)2, ib - 1 -
- i__1);
-#line 437 ""
- goto L10;
-#line 438 ""
- }
-/* +++ 060812 */
-
-#line 441 ""
- } else if (ia == 1) {
-#line 442 ""
- idxq = ntindex_(line, "\"", (ftnlen)128, (ftnlen)1);
-#line 443 ""
- if (idxq > idxa && idxq < ib) {
-
-/* Quote is between P and next blank. Find 2nd quote, starting at the blank. */
-
-#line 447 ""
- idxq2 = ib - 1 + ntindex_(line, "\"", (ftnlen)128,
- (ftnlen)1);
-#line 448 ""
- i__1 = idxq2;
-#line 448 ""
- if (idxq == 0 || s_cmp(line + i__1, " ", idxq2 +
- 1 - i__1, (ftnlen)1) != 0) {
-#line 449 ""
- s_wsle(&io___77);
-#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 450 ""
- do_lio(&c__3, &c__1, (char *)&idxq2, (ftnlen)
- sizeof(integer));
-#line 450 ""
- e_wsle();
-#line 451 ""
- s_wsle(&io___79);
-#line 451 ""
- do_lio(&c__9, &c__1, line, (ftnlen)60);
-#line 451 ""
- e_wsle();
-#line 452 ""
- s_stop("1", (ftnlen)1);
-#line 453 ""
- }
-#line 454 ""
- ib = idxq2 + 1;
-#line 455 ""
- }
-
-/* Do not transfer P into parts. */
-
-#line 459 ""
- goto L12;
-#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 465 ""
- i__1 = ib;
-#line 465 ""
- ndxm = i_indx(line + i__1, "M", 128 - i__1, (ftnlen)1)
- ;
-#line 466 ""
- i__1 = ib + ndxm - 2;
-#line 466 ""
- if (ndxm > 0 && s_cmp(line + i__1, " ", ib + ndxm - 1
- - i__1, (ftnlen)1) == 0) {
-
-/* Macro ends on this line */
-
-#line 470 ""
- ib = ib + ndxm + 1;
-#line 471 ""
- } else {
-
-/* Save leading part of current line */
-
-#line 475 ""
- lenhold = idxa - 1;
-#line 476 ""
- if (lenhold > 0) {
-#line 476 ""
- s_copy(holdln, line, (ftnlen)128, lenhold);
-#line 476 ""
- }
-
-/* Transfer rest of line */
-
-#line 480 ""
- i__1 = 129 - idxa;
-#line 480 ""
- allparts_(line + (idxa - 1), &i__1, 128 - (idxa -
- 1));
-
-/* Read next line */
-
-#line 484 ""
-L20:
-#line 484 ""
- s_rsfe(&io___82);
-#line 484 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 484 ""
- e_rsfe();
-
-/* Check for comment, transfer and loop if so */
-
-/* if (line(1:1) .eq.'%') then */
-#line 489 ""
-L23:
-#line 489 ""
- if (*(unsigned char *)line == '%') {
-/* call allparts(line,128) */
-/* go to 20 */
-#line 492 ""
- chkcom_(line, &goto999, (ftnlen)128);
-#line 493 ""
- goto L23;
-#line 494 ""
- }
-
-/* Look for terminal ' M' */
-
-#line 498 ""
- if (*(unsigned char *)line == 'M') {
-#line 499 ""
- ndxm = 1;
-#line 500 ""
- } else {
-#line 501 ""
- ndxm = i_indx(line, " M", (ftnlen)128, (
- ftnlen)2);
-#line 502 ""
- if (ndxm > 0) {
-#line 502 ""
- ++ndxm;
-#line 502 ""
- }
-#line 503 ""
- }
-#line 504 ""
- if (ndxm > 0) {
-
-/* Set parameters, exit normally (but later check for leading part of 1st line */
-
-#line 508 ""
- idxa = 1;
-#line 509 ""
- ib = ndxm + 1;
-#line 510 ""
- } else {
-
-/* No "M", transfer entire line, loop */
-
-#line 514 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 515 ""
- goto L20;
-#line 516 ""
- }
-#line 517 ""
- }
-#line 518 ""
- } else if (ia == 10) {
-
-/* Do not transfer MIDI command into parts */
-
-#line 522 ""
- goto L12;
-#line 523 ""
- } else if (ia == 5) {
-
-/* First check for "AS", but S may come after other "A" options */
-
-#line 527 ""
- i__1 = idxa;
-#line 527 ""
- idxs = i_indx(line + i__1, "S", ib - i__1, (ftnlen)1);
-#line 528 ""
- if (idxs > 0) {
-
-/* Get rid of the string. First check if that's all there is in A. */
-
-#line 532 ""
- if (ib - idxa == nv + 2) {
-#line 532 ""
- goto L12;
-#line 532 ""
- }
-#line 533 ""
- i__1 = idxa + idxs + nv;
-/* Writing concatenation */
-#line 533 ""
- i__3[0] = idxa + idxs - 1, a__1[0] = line;
-#line 533 ""
- i__3[1] = ib - i__1, a__1[1] = line + i__1;
-#line 533 ""
- s_cat(line, a__1, i__3, &c__2, (ftnlen)128);
-#line 534 ""
- }
-
-/* Check for user-defined part file name. Must start in column 1 and have */
-/* AN[n]"userfilename". */
-/* idxa is position of "A" */
-/* ib is position of the next blank after "A" */
-/* Don't allow any blanks in user */
-
-#line 542 ""
- i__1 = idxa;
-#line 542 ""
- if (s_cmp(line + i__1, "N", idxa + 1 - i__1, (ftnlen)
- 1) != 0) {
-#line 542 ""
- goto L9;
-#line 542 ""
- }
-/* bail out */
-#line 543 ""
- if (idxa != 1) {
-#line 544 ""
- s_wsle(&io___84);
-#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 545 ""
- e_wsle();
-#line 547 ""
- s_stop("1", (ftnlen)1);
-#line 548 ""
- }
-
-/* pmxa already checked for valid one- or 2-digit number, so get it */
-
-#line 552 ""
- if (*(unsigned char *)&line[3] == '"') {
-
-/* Single digit instrument number */
-
-#line 556 ""
- s_rsfi(&io___86);
-#line 556 ""
- do_fio(&c__1, (char *)&iudpfn, (ftnlen)sizeof(
- integer));
-#line 556 ""
- e_rsfi();
-#line 557 ""
- idxstartname = 5;
-#line 558 ""
- } else {
-#line 559 ""
- s_rsfi(&io___89);
-#line 559 ""
- do_fio(&c__1, (char *)&iudpfn, (ftnlen)sizeof(
- integer));
-#line 559 ""
- e_rsfi();
-#line 560 ""
- idxstartname = 6;
-#line 561 ""
- }
-#line 562 ""
- ludpfn[iudpfn - 1] = i_indx(line + (idxstartname - 1),
- "\"", 128 - (idxstartname - 1), (ftnlen)1) -
- 1;
-#line 563 ""
- if (ludpfn[iudpfn - 1] < 0) {
-#line 564 ""
- s_wsle(&io___90);
-#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 565 ""
- e_wsle();
-#line 566 ""
- s_stop("1", (ftnlen)1);
-#line 567 ""
- }
-#line 568 ""
- idxendname = idxstartname + ludpfn[iudpfn - 1] - 1;
-#line 569 ""
- s_copy(udpfnq + (iudpfn - 1 << 7), line + (
- idxstartname - 1), (ftnlen)128, idxendname - (
- idxstartname - 1));
-
-/* Get a new line! */
-
-#line 573 ""
- goto L4;
-#line 574 ""
- } else if (ia == 8) {
-
-/* Key change/transposition. */
-/* If not instrument specific, copy to all parts */
-
-#line 579 ""
- i__1 = idxa;
-#line 579 ""
- if (s_cmp(line + i__1, "i", idxa + 1 - i__1, (ftnlen)
- 1) != 0) {
-#line 579 ""
- goto L9;
-#line 579 ""
- }
-
-/* Instrument-wise key/transposition(s): Ki[nn][+/-][dd}[+/-][dd]... */
-
-#line 583 ""
- ibb = idxa + 2;
-/* Starts on digit after 'i' */
-#line 584 ""
-L40:
-#line 585 ""
- ici__1.icierr = 0;
-#line 585 ""
- ici__1.iciend = 0;
-#line 585 ""
- ici__1.icirnum = 1;
-#line 585 ""
- ici__1.icirlen = 1;
-#line 585 ""
- ici__1.iciunit = line + (ibb - 1);
-#line 585 ""
- ici__1.icifmt = "(i1)";
-#line 585 ""
- s_rsfi(&ici__1);
-#line 585 ""
- do_fio(&c__1, (char *)&iiinst, (ftnlen)sizeof(integer)
- );
-#line 585 ""
- e_rsfi();
-/* 1st digit of iinst */
-#line 586 ""
- i__1 = ibb;
-#line 586 ""
- itemp = i_indx("01234567890", line + i__1, (ftnlen)11,
- ibb + 1 - i__1);
-#line 587 ""
- if (itemp > 0) {
-#line 588 ""
- ++ibb;
-#line 589 ""
- iiinst = iiinst * 10 + itemp - 1;
-#line 590 ""
- }
-#line 591 ""
- ++ibb;
-/* now at first +/-. Need end of 2nd number */
-#line 592 ""
- i__1 = ibb;
-#line 592 ""
- itemp = i_indx(line + i__1, "i", ib - i__1, (ftnlen)1)
- ;
-/* Rel pos'n of next 'i' */
-#line 593 ""
- if (itemp > 0) {
-#line 594 ""
- iend = ibb + itemp - 1;
-#line 595 ""
- } else {
-#line 596 ""
- iend = ib - 1;
-#line 597 ""
- }
-#line 598 ""
- io___98.ciunit = all_1.iorig[iiinst - 1] + 10;
-#line 598 ""
- s_wsfe(&io___98);
-/* Writing concatenation */
-#line 598 ""
- i__3[0] = 3, a__1[0] = "Ki1";
-#line 598 ""
- i__3[1] = iend - (ibb - 1), a__1[1] = line + (ibb - 1)
- ;
-#line 598 ""
- s_cat(ch__6, a__1, i__3, &c__2, (ftnlen)131);
-#line 598 ""
- do_fio(&c__1, ch__6, iend - (ibb - 1) + 3);
-#line 598 ""
- e_wsfe();
-#line 599 ""
- if (itemp > 0) {
-#line 600 ""
- ibb = iend + 2;
-#line 601 ""
- goto L40;
-#line 602 ""
- }
-#line 603 ""
- goto L12;
-/* Remove K command from string, go to next ia */
-#line 604 ""
- }
-#line 605 ""
-L9:
-#line 606 ""
- i__1 = ib - idxa;
-#line 606 ""
- allparts_(line + (idxa - 1), &i__1, ib - 1 - (idxa - 1));
-#line 607 ""
-L12:
-
-/* Remove the string from line */
-
-#line 611 ""
- if (idxa == 1) {
-#line 612 ""
- s_copy(line, line + (ib - 1), (ftnlen)128, 128 - (ib
- - 1));
-#line 613 ""
- } else {
-/* Writing concatenation */
-#line 614 ""
- i__3[0] = idxa - 1, a__1[0] = line;
-#line 614 ""
- i__3[1] = 128 - (ib - 1), a__1[1] = line + (ib - 1);
-#line 614 ""
- s_cat(line, a__1, i__3, &c__2, (ftnlen)128);
-#line 615 ""
- }
-#line 616 ""
- lenline = lenstr_(line, &c__128, (ftnlen)128);
-
-/* Loop if only blanks are left */
-
-#line 620 ""
- if (lenline == 0) {
-#line 620 ""
- goto L4;
-#line 620 ""
- }
-
-/* Must check for multiple "I" commands, so go to just after start of ia loop */
-
-#line 624 ""
- if (ia == 10) {
-#line 624 ""
- goto L24;
-#line 624 ""
- }
-
-/* Tack on front part from 1st line of saved macro */
-
-#line 628 ""
- if (lenhold > 0) {
-/* Writing concatenation */
-#line 629 ""
- i__4[0] = lenhold, a__2[0] = holdln;
-#line 629 ""
- i__4[1] = 1, a__2[1] = " ";
-#line 629 ""
- i__4[2] = lenline, a__2[2] = line;
-#line 629 ""
- s_cat(line, a__2, i__4, &c__3, (ftnlen)128);
-#line 630 ""
- lenhold = 0;
-#line 631 ""
- }
-#line 632 ""
- }
-#line 633 ""
-/* L5: */
-#line 633 ""
- }
-#line 634 ""
- }
-#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 640 ""
-L10:
-#line 641 ""
- nchk = 1;
-#line 642 ""
-L13:
-#line 642 ""
- ntinx = nchk - 1 + ntindex_(line + (nchk - 1), "X", 128 - (nchk - 1), (
- ftnlen)1);
-#line 643 ""
- if (ntinx > nchk - 1) {
-
-/* There is a non-TeX 'X' at ntinx. Loop if neither 1st nor after a blank. */
-
-#line 647 ""
- if (ntinx > 1) {
-#line 648 ""
- i__1 = ntinx - 2;
-#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 652 ""
- nchk = ntinx + 1;
-#line 653 ""
- goto L13;
-#line 654 ""
- }
-#line 655 ""
- }
-
-/* We now know the X at ntinx starts a PMX command. Find next blank */
-
-#line 659 ""
- i__1 = ntinx;
-#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 664 ""
- i__1 = ntinx;
-#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 669 ""
- if (locp > ntinx) {
-
-/* Strip out the 'P' */
-
-#line 673 ""
- s_copy(templine, line, (ftnlen)128, locp - 1);
-#line 674 ""
- i__1 = locp;
-/* Writing concatenation */
-#line 674 ""
- i__3[0] = locp - 1, a__1[0] = templine;
-#line 674 ""
- i__3[1] = lenline - i__1, a__1[1] = line + i__1;
-#line 674 ""
- s_cat(line, a__1, i__3, &c__2, (ftnlen)128);
-#line 675 ""
- --lenline;
-#line 676 ""
- --ib;
-#line 677 ""
- }
-#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), (
- ftnlen)1) > 0 || locp > ntinx) {
-
-/* The X command is a shift, "Both", or "Part". Do not remove. */
-
-#line 684 ""
- nchk = ib + 1;
-#line 685 ""
- goto L13;
-#line 686 ""
- }
-
-/* Remove the X command. */
-
-#line 690 ""
- if (ntinx == 1) {
-#line 691 ""
- if (ib < lenline) {
-#line 692 ""
- i__1 = ib;
-#line 692 ""
- s_copy(line, line + i__1, (ftnlen)128, lenline - i__1);
-#line 693 ""
- } else {
-
-/* line contains ONLY the "X" command, so get a new line */
-
-#line 697 ""
- goto L4;
-#line 698 ""
- }
-#line 699 ""
- } else {
-#line 700 ""
- s_copy(templine, line, (ftnlen)128, ntinx - 1);
-#line 701 ""
- if (ib < lenline) {
-#line 702 ""
- i__1 = ib;
-/* Writing concatenation */
-#line 702 ""
- i__3[0] = ntinx - 1, a__1[0] = templine;
-#line 702 ""
- i__3[1] = lenline - i__1, a__1[1] = line + i__1;
-#line 702 ""
- s_cat(line, a__1, i__3, &c__2, (ftnlen)128);
-#line 703 ""
- } else {
-#line 704 ""
- s_copy(line, templine, (ftnlen)128, ntinx - 1);
-#line 705 ""
- }
-#line 706 ""
- }
-
-/* Recompute lenline */
-
-#line 710 ""
- lenline = lenstr_(line, &c__128, (ftnlen)128);
-
-/* Resume checking after location of removed command. */
-
-#line 714 ""
- nchk = ntinx;
-#line 715 ""
- goto L13;
-#line 716 ""
- }
-
-/* End of loop for X-checks */
-
-#line 720 ""
- oneof2 = ntindex_(line, "//", (ftnlen)128, (ftnlen)2) > 0;
-#line 721 ""
- if (termrpt && all_1.botv[iv - 1] && frstln && *(unsigned char *)&line[
- lenline - 1] == '/') {
-
-/* Must add a terminal repeat before the slash */
-
-#line 726 ""
- if (oneof2) {
-#line 726 ""
- --lenline;
-#line 726 ""
- }
-#line 727 ""
- if (lenline > 1) {
-#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 727 ""
- e_wsfe();
-#line 727 ""
- }
-#line 728 ""
- if (! oneof2) {
-/* Writing concatenation */
-#line 729 ""
- i__3[0] = 2, a__1[0] = termsym;
-#line 729 ""
- i__3[1] = 2, a__1[1] = " /";
-#line 729 ""
- s_cat(line, a__1, i__3, &c__2, (ftnlen)128);
-#line 730 ""
- lenline = 4;
-#line 731 ""
- } else {
-/* Writing concatenation */
-#line 732 ""
- i__3[0] = 2, a__1[0] = termsym;
-#line 732 ""
- i__3[1] = 3, a__1[1] = " //";
-#line 732 ""
- s_cat(line, a__1, i__3, &c__2, (ftnlen)128);
-#line 733 ""
- lenline = 5;
-#line 734 ""
- }
-#line 735 ""
- }
-#line 736 ""
- if (termrpt && frstln && *(unsigned char *)&line[lenline - 1] == '/' &&
- iv == all_1.nvnow) {
-#line 736 ""
- termrpt = FALSE_;
-#line 736 ""
- }
-#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 738 ""
- e_wsfe();
-#line 739 ""
- if (oneof2) {
-#line 740 ""
- frstln = FALSE_;
-#line 741 ""
- } else if (! frstln) {
-#line 742 ""
- frstln = TRUE_;
-#line 743 ""
- }
-/* if (ntindex(line,'/').gt.0 .and. index(line,'//').eq.0) then */
-#line 745 ""
- if (ntindex_(line, "/", (ftnlen)128, (ftnlen)1) > 0 && ntindex_(line,
- "//", (ftnlen)128, (ftnlen)2) == 0) {
-#line 746 ""
- iv = iv % all_1.nvnow + 1;
-#line 747 ""
- iinst = all_1.instnum[iv - 1];
-#line 748 ""
- }
-#line 749 ""
- goto L4;
-#line 750 ""
-L999:
-#line 751 ""
- cl__1.cerr = 0;
-#line 751 ""
- cl__1.cunit = 10;
-#line 751 ""
- cl__1.csta = 0;
-#line 751 ""
- f_clos(&cl__1);
-
-/* In the mbrest checks, must run through ALL noinst files (not just noinow) */
-
-#line 755 ""
- i__1 = all_1.noinst;
-#line 755 ""
- for (iinst = 1; iinst <= i__1; ++iinst) {
-/* cc+++ */
-/* c */
-/* c Temporarily transfer entire scratch file to real file */
-/* c */
-/* rewind(10+iinst) */
-/* open(40,file='s2pout'//char(48+iinst)//'.pmx') */
-/* do 50 m = 1 , 10000 */
-/* read(10+iinst,'(a)',end=51)line */
-/* lenline = lenstr(line,128) */
-/* if (lenline .ge. 1) then */
-/* write(40,'(a)')line(1:lenline) */
-/* else */
-/* write(40,'(a)')' ' */
-/* end if */
-/* 50 continue */
-/* 51 continue */
-/* close(40) */
-/* cc+++ */
-#line 774 ""
- if (all_1.nvi[iinst - 1] == 1) {
-#line 775 ""
- mbrests_(&iinst, jobname, &ljob, &ludpfn[iinst - 1], udpfnq + (
- iinst - 1 << 7), (ftnlen)27, (ftnlen)128);
-#line 776 ""
- } else {
-
-/* Send a signal with ljob to bypass most mbrest processing */
-
-#line 780 ""
- i__2 = -ljob;
-#line 780 ""
- mbrests_(&iinst, jobname, &i__2, &ludpfn[iinst - 1], udpfnq + (
- iinst - 1 << 7), (ftnlen)27, (ftnlen)128);
-#line 781 ""
- }
-#line 782 ""
-/* L11: */
-#line 782 ""
- }
-#line 783 ""
- return 0;
-} /* MAIN__ */
-
-integer lenstr_(char *string, integer *n, ftnlen string_len)
-{
- /* System generated locals */
- integer ret_val;
-
-#line 786 ""
- for (ret_val = *n; ret_val >= 1; --ret_val) {
-#line 787 ""
- if (*(unsigned char *)&string[ret_val - 1] != ' ') {
-#line 787 ""
- return ret_val;
-#line 787 ""
- }
-#line 788 ""
-/* L1: */
-#line 788 ""
- }
-#line 789 ""
- ret_val = 0;
-#line 790 ""
- return ret_val;
-} /* lenstr_ */
-
-/* Subroutine */ int allparts_(char *string, integer *n, ftnlen string_len)
-{
- /* System generated locals */
- integer i__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
-
- /* Local variables */
- static integer len, iinst;
- extern integer lenstr_(char *, integer *, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___107 = { 0, 0, 0, "(a)", 0 };
-
-
-#line 798 ""
- len = lenstr_(string, n, string_len);
-#line 799 ""
- if (len == 0) {
-#line 800 ""
- len = 1;
-#line 801 ""
- s_copy(string, " ", string_len, (ftnlen)1);
-#line 802 ""
- }
-#line 803 ""
- i__1 = all_1.noinow;
-#line 803 ""
- for (iinst = 1; iinst <= i__1; ++iinst) {
-#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 804 ""
- e_wsfe();
-#line 805 ""
-/* L1: */
-#line 805 ""
- }
-#line 806 ""
- return 0;
-} /* allparts_ */
-
-/* Subroutine */ int mbrests_(integer *iv, char *jobname, integer *ljob,
- integer *ludpfn, char *udpfnq, ftnlen jobname_len, ftnlen udpfnq_len)
-{
- /* System generated locals */
- address a__1[2], a__2[3];
- integer i__1[2], i__2[3], i__3, i__4;
- real r__1;
- char ch__1[1], ch__2[18], ch__3[132], ch__4[4], ch__5[2], ch__6[10];
- cilist ci__1;
- icilist ici__1;
- olist o__1;
- cllist cl__1;
- alist al__1;
-
- /* Builtin functions */
- integer f_rew(alist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer f_open(olist *), s_rsfe(cilist *), do_fio(integer *, char *,
- ftnlen), e_rsfe(void), s_cmp(char *, char *, ftnlen, ftnlen),
- s_wsfe(cilist *), e_wsfe(void), s_wsle(cilist *), do_lio(integer *
- , integer *, char *, ftnlen), e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
- integer i_indx(char *, char *, ftnlen, ftnlen), s_rsfi(icilist *), e_rsfi(
- void);
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- double r_lg10(real *);
- integer f_clos(cllist *);
-
- /* Local variables */
- static integer i__, il, iw;
- static char sq[1];
- static integer ip1, ipc, ipe, len, idx;
- static char sym[80];
- static integer ndig;
- static char line[128*50];
- static integer idxb, nmbr, idxs, lsym;
- static char line1[128];
- static logical type4;
- static integer icden, iline, lpart;
- static char partq[2];
- static integer lwbrs, nwbrs, lenbar, ipenew, mtrden;
- static logical wbrest;
- extern integer lenstr_(char *, integer *, ftnlen);
- static logical newmtr;
- static integer lwbrsx, mtrnum;
- static char wbrsym[3*2];
- static integer lenbeat;
- static logical alldone;
- extern integer ifnodur_(integer *, char *, ftnlen), ntindex_(char *, char
- *, ftnlen, ftnlen);
- static integer lenmult;
- extern /* Subroutine */ int dosetup_(integer *, char *, integer *,
- integer *, ftnlen);
- static logical rpfirst;
- extern /* Subroutine */ int fwbrsym_(integer *, integer *, char *,
- integer *, ftnlen), nextsym_(char *, integer *, integer *,
- integer *, char *, integer *, ftnlen, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___114 = { 0, 0, 0, "(a)", 0 };
- static cilist io___117 = { 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, 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 816 ""
- type4 = FALSE_;
-#line 817 ""
- *(unsigned char *)sq = '\\';
-#line 818 ""
- alldone = FALSE_;
-#line 819 ""
- al__1.aerr = 0;
-#line 819 ""
- al__1.aunit = *iv + 10;
-#line 819 ""
- f_rew(&al__1);
-#line 820 ""
- if (*iv < 10) {
-#line 821 ""
- *(unsigned char *)partq = (char) (*iv + 48);
-#line 822 ""
- lpart = 1;
-#line 823 ""
- } else {
-#line 824 ""
- lpart = 2;
-#line 825 ""
- if (*iv < 20) {
-/* Writing concatenation */
-#line 826 ""
- i__1[0] = 1, a__1[0] = "1";
-#line 826 ""
- *(unsigned char *)&ch__1[0] = *iv + 38;
-#line 826 ""
- i__1[1] = 1, a__1[1] = ch__1;
-#line 826 ""
- s_cat(partq, a__1, i__1, &c__2, (ftnlen)2);
-#line 827 ""
- } else {
-/* Writing concatenation */
-#line 828 ""
- i__1[0] = 1, a__1[0] = "2";
-#line 828 ""
- *(unsigned char *)&ch__1[0] = *iv + 28;
-#line 828 ""
- i__1[1] = 1, a__1[1] = ch__1;
-#line 828 ""
- s_cat(partq, a__1, i__1, &c__2, (ftnlen)2);
-#line 829 ""
- }
-#line 830 ""
- }
-/* 130327 */
-/* open(40,file=jobname(1:abs(ljob))//partq(1:lpart)//'.pmx') */
-#line 833 ""
- if (*ludpfn == 0) {
-#line 834 ""
- o__1.oerr = 0;
-#line 834 ""
- o__1.ounit = 40;
-#line 834 ""
- o__1.ofnmlen = abs(*ljob) + lpart + 4;
-/* Writing concatenation */
-#line 834 ""
- i__2[0] = abs(*ljob), a__2[0] = jobname;
-#line 834 ""
- i__2[1] = lpart, a__2[1] = partq;
-#line 834 ""
- i__2[2] = 4, a__2[2] = ".pmx";
-#line 834 ""
- s_cat(ch__2, a__2, i__2, &c__3, (ftnlen)18);
-#line 834 ""
- o__1.ofnm = ch__2;
-#line 834 ""
- o__1.orl = 0;
-#line 834 ""
- o__1.osta = 0;
-#line 834 ""
- o__1.oacc = 0;
-#line 834 ""
- o__1.ofm = 0;
-#line 834 ""
- o__1.oblnk = 0;
-#line 834 ""
- f_open(&o__1);
-#line 835 ""
- } else {
-#line 836 ""
- o__1.oerr = 0;
-#line 836 ""
- o__1.ounit = 40;
-#line 836 ""
- o__1.ofnmlen = *ludpfn + 4;
-/* Writing concatenation */
-#line 836 ""
- i__1[0] = *ludpfn, a__1[0] = udpfnq;
-#line 836 ""
- i__1[1] = 4, a__1[1] = ".pmx";
-#line 836 ""
- s_cat(ch__3, a__1, i__1, &c__2, (ftnlen)132);
-#line 836 ""
- o__1.ofnm = ch__3;
-#line 836 ""
- o__1.orl = 0;
-#line 836 ""
- o__1.osta = 0;
-#line 836 ""
- o__1.oacc = 0;
-#line 836 ""
- o__1.ofm = 0;
-#line 836 ""
- o__1.oblnk = 0;
-#line 836 ""
- f_open(&o__1);
-#line 837 ""
- }
-#line 838 ""
- for (i__ = 1; i__ <= 10000; ++i__) {
-#line 839 ""
- io___114.ciunit = *iv + 10;
-#line 839 ""
- s_rsfe(&io___114);
-#line 839 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 839 ""
- e_rsfe();
-#line 840 ""
- if (*(unsigned char *)&line[0] == '%' || s_cmp(line, "---", (ftnlen)3,
- (ftnlen)3) == 0 || type4) {
-#line 842 ""
- len = lenstr_(line, &c__128, (ftnlen)128);
-#line 843 ""
- if (len > 0) {
-#line 844 ""
- s_wsfe(&io___117);
-#line 844 ""
- do_fio(&c__1, line, len);
-#line 844 ""
- e_wsfe();
-#line 845 ""
- } else {
-#line 846 ""
- s_wsfe(&io___118);
-#line 846 ""
- do_fio(&c__1, " ", (ftnlen)1);
-#line 846 ""
- e_wsfe();
-#line 847 ""
- }
-#line 848 ""
- if (s_cmp(line, "---", (ftnlen)3, (ftnlen)3) == 0) {
-#line 848 ""
- type4 = ! type4;
-#line 848 ""
- }
-#line 849 ""
- } else {
-#line 850 ""
- goto L11;
-#line 851 ""
- }
-#line 852 ""
-/* L10: */
-#line 852 ""
- }
-#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 853 ""
- e_wsle();
-#line 854 ""
- s_stop("", (ftnlen)0);
-#line 855 ""
-L11:
-
-/* Finished reading opening type4 TeX and comments. Next line to be read */
-/* will contain the first of the input numbers */
-
-#line 860 ""
- dosetup_(iv, line, &mtrnum, &mtrden, (ftnlen)128);
-#line 861 ""
- for (i__ = 1; i__ <= 10000; ++i__) {
-#line 862 ""
-L13:
-#line 862 ""
- io___122.ciunit = *iv + 10;
-#line 862 ""
- i__3 = s_rsfe(&io___122);
-#line 862 ""
- if (i__3 != 0) {
-#line 862 ""
- goto L999;
-#line 862 ""
- }
-#line 862 ""
- i__3 = do_fio(&c__1, line, (ftnlen)128);
-#line 862 ""
- if (i__3 != 0) {
-#line 862 ""
- goto L999;
-#line 862 ""
- }
-#line 862 ""
- i__3 = e_rsfe();
-#line 862 ""
- if (i__3 != 0) {
-#line 862 ""
- goto L999;
-#line 862 ""
- }
-#line 863 ""
-L7:
-#line 863 ""
- len = lenstr_(line, &c__128, (ftnlen)128);
-
-/* Pass-through (and copy into part file) if instrumnet has >1 voice. */
-
-#line 867 ""
- if (*ljob < 0) {
-#line 867 ""
- goto L2;
-#line 867 ""
- }
-#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 872 ""
- s_wsfe(&io___123);
-#line 872 ""
- do_fio(&c__1, line, len);
-#line 872 ""
- e_wsfe();
-#line 873 ""
- io___124.ciunit = *iv + 10;
-#line 873 ""
- s_rsfe(&io___124);
-#line 873 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 873 ""
- e_rsfe();
-#line 874 ""
- len = lenstr_(line, &c__128, (ftnlen)128);
-#line 875 ""
- goto L2;
-#line 876 ""
- }
-#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 882 ""
- if (*(unsigned char *)&line[0] == '%') {
-#line 883 ""
- s_wsfe(&io___125);
-#line 883 ""
- do_fio(&c__1, line, len);
-#line 883 ""
- e_wsfe();
-#line 884 ""
- goto L13;
-#line 885 ""
- }
-#line 886 ""
- if (i__ != 1) {
-
-/* New meter. Check for slashes (new meter change syntax) */
-
-#line 890 ""
- idxs = i_indx(line, "/", (ftnlen)128, (ftnlen)1);
-#line 891 ""
- idxb = i_indx(line, " ", (ftnlen)128, (ftnlen)1);
-#line 892 ""
- newmtr = idxs > 0 && (idxb == 0 || idxs < idxb);
-#line 893 ""
- if (! newmtr) {
-
-/* Old way, no slashes, uses 'o' for lonesome '1' */
-
-#line 897 ""
- icden = 3;
-#line 898 ""
- if (*(unsigned char *)&line[1] == 'o') {
-#line 899 ""
- mtrnum = 1;
-#line 900 ""
- } else {
-#line 901 ""
- mtrnum = *(unsigned char *)&line[1] - 48;
-#line 902 ""
- if (mtrnum == 1) {
-#line 903 ""
- icden = 4;
-#line 904 ""
- mtrnum = *(unsigned char *)&line[2] - 38;
-#line 905 ""
- }
-#line 906 ""
- }
-#line 907 ""
- mtrden = *(unsigned char *)&line[icden - 1] - 48;
-#line 908 ""
- } else {
-
-/* New way with slashes: idxs is index of 1st slash! */
-
-#line 912 ""
- ici__1.icierr = 0;
-#line 912 ""
- ici__1.iciend = 0;
-#line 912 ""
- ici__1.icirnum = 1;
-#line 912 ""
- ici__1.icirlen = idxs - 2;
-#line 912 ""
- ici__1.iciunit = line + 1;
-/* Writing concatenation */
-#line 912 ""
- i__2[0] = 2, a__2[0] = "(i";
-#line 912 ""
- *(unsigned char *)&ch__1[0] = idxs + 46;
-#line 912 ""
- i__2[1] = 1, a__2[1] = ch__1;
-#line 912 ""
- i__2[2] = 1, a__2[2] = ")";
-#line 912 ""
- ici__1.icifmt = (s_cat(ch__4, a__2, i__2, &c__3, (ftnlen)
- 4), ch__4);
-#line 912 ""
- s_rsfi(&ici__1);
-#line 912 ""
- do_fio(&c__1, (char *)&mtrnum, (ftnlen)sizeof(integer));
-#line 912 ""
- e_rsfi();
-#line 913 ""
- i__3 = idxs;
-#line 913 ""
- idxb = i_indx(line + i__3, "/", 128 - i__3, (ftnlen)1);
-#line 914 ""
- i__3 = idxs;
-#line 914 ""
- ici__1.icierr = 0;
-#line 914 ""
- ici__1.iciend = 0;
-#line 914 ""
- ici__1.icirnum = 1;
-#line 914 ""
- ici__1.icirlen = idxs + idxb - 1 - i__3;
-#line 914 ""
- ici__1.iciunit = line + i__3;
-/* Writing concatenation */
-#line 914 ""
- i__2[0] = 2, a__2[0] = "(i";
-#line 914 ""
- *(unsigned char *)&ch__1[0] = idxb + 47;
-#line 914 ""
- i__2[1] = 1, a__2[1] = ch__1;
-#line 914 ""
- i__2[2] = 1, a__2[2] = ")";
-#line 914 ""
- ici__1.icifmt = (s_cat(ch__4, a__2, i__2, &c__3, (ftnlen)
- 4), ch__4);
-#line 914 ""
- s_rsfi(&ici__1);
-#line 914 ""
- do_fio(&c__1, (char *)&mtrden, (ftnlen)sizeof(integer));
-#line 914 ""
- e_rsfi();
-#line 916 ""
- }
-#line 917 ""
- }
-#line 918 ""
- lenbeat = ifnodur_(&mtrden, "x", (ftnlen)1);
-#line 919 ""
- lenmult = 1;
-#line 920 ""
- if (mtrden == 2) {
-#line 921 ""
- lenbeat = 16;
-#line 922 ""
- lenmult = 2;
-#line 923 ""
- }
-#line 924 ""
- lenbar = lenmult * mtrnum * lenbeat;
-#line 925 ""
- fwbrsym_(&lenbar, &nwbrs, wbrsym, &lwbrs, (ftnlen)3);
-#line 926 ""
- }
-
-/* Finished setting up meter stuff and defining whole-bar rest symbols */
-
-#line 930 ""
- ip1 = 0;
-#line 931 ""
- s_copy(line1, line, (ftnlen)128, (ftnlen)128);
-#line 932 ""
- i__3 = nwbrs;
-#line 932 ""
- for (iw = 0; iw <= i__3; ++iw) {
-#line 933 ""
- if (iw > 0) {
-#line 934 ""
- idx = ntindex_(line1, wbrsym + (iw - 1) * 3, (ftnlen)128,
- lwbrs);
-#line 935 ""
- if (idx > 0) {
-
-/* Check for blank or shifted rest, discount it if it's there */
-
-#line 939 ""
- i__4 = idx + lwbrs - 1;
-#line 939 ""
- if (s_cmp(line1 + i__4, " ", idx + lwbrs - i__4, (ftnlen)
- 1) != 0) {
-#line 939 ""
- idx = 0;
-#line 939 ""
- }
-#line 940 ""
- }
-#line 941 ""
- } else {
-#line 942 ""
- idx = ntindex_(line1, "rp", (ftnlen)128, (ftnlen)2);
-
-/* Check for raised rest */
-
-#line 946 ""
- if (idx > 0) {
-#line 947 ""
- i__4 = idx + 1;
-#line 947 ""
- if (s_cmp(line1 + i__4, " ", idx + 2 - i__4, (ftnlen)1) !=
- 0) {
-#line 947 ""
- idx = 0;
-#line 947 ""
- }
-#line 948 ""
- }
-#line 949 ""
- }
-#line 950 ""
- if (idx > 0) {
-#line 951 ""
- if (ip1 == 0) {
-#line 952 ""
- ip1 = idx;
-#line 953 ""
- } else {
-#line 954 ""
- ip1 = min(ip1,idx);
-/* Maybe allows e.g. r0 rp ... */
-#line 955 ""
- }
-#line 956 ""
- }
-#line 957 ""
-/* L3: */
-#line 957 ""
- }
-/* Writing concatenation */
-#line 958 ""
- i__1[0] = 1, a__1[0] = sq;
-#line 958 ""
- i__1[1] = 1, a__1[1] = sq;
-#line 958 ""
- s_cat(ch__5, a__1, i__1, &c__2, (ftnlen)2);
-#line 958 ""
- if (i__ < 5 || *(unsigned char *)&line[0] == '%' || s_cmp(line, ch__5,
- (ftnlen)2, (ftnlen)2) == 0 || ip1 == 0) {
-#line 958 ""
- goto L2;
-#line 958 ""
- }
-
-/* Switch to multibar rest search mode!!! Start forward in line(1) */
-
-#line 963 ""
- rpfirst = s_cmp(line1 + (ip1 - 1), "rp", (ftnlen)2, (ftnlen)2) == 0;
-#line 964 ""
- iline = 1;
-#line 965 ""
- nmbr = 1;
-#line 966 ""
- if (rpfirst) {
-#line 967 ""
- lwbrsx = 2;
-#line 968 ""
- } else {
-#line 969 ""
- lwbrsx = lwbrs;
-#line 970 ""
- }
-#line 971 ""
- ipe = ip1 + lwbrsx - 1;
-/* ip at end of 1st wbrsym */
-#line 972 ""
-L4:
-#line 972 ""
- if (ipe == len) {
-
-/* Need a new line */
-
-#line 976 ""
- ++iline;
-#line 977 ""
-L6:
-#line 977 ""
- io___145.ciunit = *iv + 10;
-#line 977 ""
- i__3 = s_rsfe(&io___145);
-#line 977 ""
- if (i__3 != 0) {
-#line 977 ""
- goto L998;
-#line 977 ""
- }
-#line 977 ""
- i__3 = do_fio(&c__1, line + (iline - 1 << 7), (ftnlen)128);
-#line 977 ""
- if (i__3 != 0) {
-#line 977 ""
- goto L998;
-#line 977 ""
- }
-#line 977 ""
- i__3 = e_rsfe();
-#line 977 ""
- if (i__3 != 0) {
-#line 977 ""
- goto L998;
-#line 977 ""
- }
-#line 978 ""
- len = lenstr_(line + (iline - 1 << 7), &c__128, (ftnlen)128);
-#line 979 ""
- if (*(unsigned char *)&line[(iline - 1) * 128] == '%') {
-#line 980 ""
- s_wsfe(&io___146);
-#line 980 ""
- do_fio(&c__1, "% Following comment has been moved forward", (
- ftnlen)42);
-#line 980 ""
- e_wsfe();
-#line 981 ""
- s_wsfe(&io___147);
-#line 981 ""
- do_fio(&c__1, line + (iline - 1 << 7), len);
-#line 981 ""
- e_wsfe();
-#line 982 ""
- goto L6;
-#line 983 ""
- }
-#line 984 ""
- ipe = 0;
-#line 985 ""
- goto L4;
-#line 986 ""
-L998:
-
-/* No more input left */
-
-#line 990 ""
- s_wsle(&io___148);
-#line 990 ""
- do_lio(&c__9, &c__1, "All done!", (ftnlen)9);
-#line 990 ""
- e_wsle();
-#line 991 ""
- alldone = TRUE_;
-#line 992 ""
- ipe = 0;
-#line 993 ""
- --iline;
-#line 994 ""
- len = lenstr_(line + (iline - 1 << 7), &c__128, (ftnlen)128);
-#line 995 ""
- goto L4;
-#line 996 ""
- } else {
-#line 997 ""
- if (alldone) {
-#line 998 ""
- *(unsigned char *)sym = ' ';
-#line 999 ""
- } else {
-
-/* ipe<len here, so it's ok to get a symbol */
-
-#line 1003 ""
- nextsym_(line + (iline - 1 << 7), &len, &ipe, &ipenew, sym, &
- lsym, (ftnlen)128, (ftnlen)80);
-#line 1004 ""
- }
-
-/* Check for end of block or bar line symbol */
-
-#line 1008 ""
- if (i_indx("/|", sym, (ftnlen)2, (ftnlen)1) > 0) {
-#line 1009 ""
- ipe = ipenew;
-#line 1010 ""
- goto L4;
-#line 1011 ""
- } else {
-#line 1012 ""
- wbrest = FALSE_;
-#line 1013 ""
- if (alldone) {
-#line 1013 ""
- goto L12;
-#line 1013 ""
- }
-#line 1014 ""
- i__3 = nwbrs;
-#line 1014 ""
- for (iw = 1; iw <= i__3; ++iw) {
-#line 1015 ""
- wbrest = wbrest || s_cmp(sym, wbrsym + (iw - 1) * 3, lsym,
- lwbrs) == 0;
-#line 1016 ""
-/* L5: */
-#line 1016 ""
- }
-#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 1021 ""
-L12:
-#line 1021 ""
- if (wbrest) {
-#line 1022 ""
- ipe = ipenew;
-#line 1023 ""
- ++nmbr;
-#line 1024 ""
- goto L4;
-#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 1030 ""
- if (nmbr > 1) {
-
-/* Write stuff up to start of mbr */
-
-#line 1034 ""
- if (ip1 > 1) {
-#line 1034 ""
- s_wsfe(&io___153);
-#line 1034 ""
- do_fio(&c__1, line, ip1 - 1);
-#line 1034 ""
- e_wsfe();
-#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 1040 ""
- r__1 = nmbr + .01f;
-#line 1040 ""
- ndig = (integer) r_lg10(&r__1) + 1;
-#line 1041 ""
- s_wsle(&io___155);
-#line 1041 ""
- do_lio(&c__9, &c__1, "Inserting rm, iv,nmbr:", (
- ftnlen)22);
-#line 1041 ""
- do_lio(&c__3, &c__1, (char *)&(*iv), (ftnlen)sizeof(
- integer));
-#line 1041 ""
- do_lio(&c__3, &c__1, (char *)&nmbr, (ftnlen)sizeof(
- integer));
-#line 1041 ""
- e_wsle();
-#line 1042 ""
- ci__1.cierr = 0;
-#line 1042 ""
- ci__1.ciunit = 40;
-/* Writing concatenation */
-#line 1042 ""
- i__2[0] = 5, a__2[0] = "(a2,i";
-#line 1042 ""
- *(unsigned char *)&ch__1[0] = ndig + 48;
-#line 1042 ""
- i__2[1] = 1, a__2[1] = ch__1;
-#line 1042 ""
- i__2[2] = 4, a__2[2] = ",a2)";
-#line 1042 ""
- ci__1.cifmt = (s_cat(ch__6, a__2, i__2, &c__3, (
- ftnlen)10), ch__6);
-#line 1042 ""
- s_wsfe(&ci__1);
-#line 1042 ""
- do_fio(&c__1, "rm", (ftnlen)2);
-#line 1042 ""
- do_fio(&c__1, (char *)&nmbr, (ftnlen)sizeof(integer));
-#line 1042 ""
- do_fio(&c__1, " /", (ftnlen)2);
-#line 1042 ""
- e_wsfe();
-#line 1043 ""
- if (alldone) {
-#line 1043 ""
- goto L999;
-#line 1043 ""
- }
-#line 1044 ""
- ipc = ipenew - lsym + 1;
-#line 1045 ""
- s_copy(line, line + ((iline - 1 << 7) + (ipc - 1)), (
- ftnlen)128, len - (ipc - 1));
-#line 1046 ""
- } else {
-
-/* Write old stuff up to end of original lonesome wbr, save the rest. */
-/* 4 cases: (wbr /) , (wbr line-end) , (wbr followed by other non-/ symbols) , */
-/* alldone. */
-/* In 1st 2 will have gotten some other lines, so write all up to one b4 last */
-/* non-comment line; then revert to normal mode on that. In 3rd case must */
-/* split line. */
-
-#line 1055 ""
- if (alldone) {
-#line 1056 ""
- s_wsfe(&io___157);
-#line 1056 ""
- do_fio(&c__1, line, len);
-#line 1056 ""
- e_wsfe();
-#line 1057 ""
- goto L999;
-#line 1058 ""
- } else if (iline > 1) {
-#line 1059 ""
- i__3 = iline - 1;
-#line 1059 ""
- for (il = 1; il <= i__3; ++il) {
-#line 1060 ""
- len = lenstr_(line + (il - 1 << 7), &c__128, (
- ftnlen)128);
-#line 1061 ""
- s_wsfe(&io___159);
-#line 1061 ""
- do_fio(&c__1, line + (il - 1 << 7), len);
-#line 1061 ""
- e_wsfe();
-#line 1062 ""
-/* L9: */
-#line 1062 ""
- }
-#line 1063 ""
- s_copy(line, line + (iline - 1 << 7), (ftnlen)128,
- (ftnlen)128);
-#line 1064 ""
- } else {
-
-/* Since iline = 1 the wbr is not the last sym, so must split */
-
-#line 1068 ""
- s_wsfe(&io___160);
-#line 1068 ""
- do_fio(&c__1, line, ip1 + lwbrsx - 1);
-#line 1068 ""
- e_wsfe();
-#line 1069 ""
- i__3 = ip1 + lwbrsx;
-#line 1069 ""
- s_copy(line, line + i__3, (ftnlen)128, len - i__3)
- ;
-#line 1070 ""
- }
-#line 1071 ""
- }
-
-/* Exit multibar mode */
-
-#line 1075 ""
- goto L7;
-#line 1076 ""
- }
-#line 1077 ""
- }
-#line 1078 ""
- }
-#line 1079 ""
-L2:
-#line 1080 ""
- if (len > 0) {
-#line 1081 ""
- s_wsfe(&io___161);
-#line 1081 ""
- do_fio(&c__1, line, len);
-#line 1081 ""
- e_wsfe();
-#line 1082 ""
- } else {
-#line 1083 ""
- s_wsfe(&io___162);
-#line 1083 ""
- do_fio(&c__1, " ", (ftnlen)1);
-#line 1083 ""
- e_wsfe();
-#line 1084 ""
- }
-#line 1085 ""
-/* L1: */
-#line 1085 ""
- }
-#line 1086 ""
-L999:
-#line 1087 ""
- cl__1.cerr = 0;
-#line 1087 ""
- cl__1.cunit = *iv + 10;
-#line 1087 ""
- cl__1.csta = 0;
-#line 1087 ""
- f_clos(&cl__1);
-#line 1088 ""
- cl__1.cerr = 0;
-#line 1088 ""
- cl__1.cunit = 40;
-#line 1088 ""
- cl__1.csta = 0;
-#line 1088 ""
- f_clos(&cl__1);
-#line 1089 ""
- return 0;
-} /* mbrests_ */
-
-integer ifnodur_(integer *idur, char *dotq, ftnlen dotq_len)
-{
- /* System generated locals */
- integer ret_val;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___163 = { 0, 6, 0, 0, 0 };
-
-
-#line 1093 ""
- if (*idur == 6) {
-#line 1094 ""
- ret_val = 1;
-#line 1095 ""
- } else if (*idur == 3) {
-#line 1096 ""
- ret_val = 2;
-#line 1097 ""
- } else if (*idur == 1 || *idur == 16) {
-#line 1098 ""
- ret_val = 4;
-#line 1099 ""
- } else if (*idur == 8) {
-#line 1100 ""
- ret_val = 8;
-#line 1101 ""
- } else if (*idur == 4) {
-#line 1102 ""
- ret_val = 16;
-#line 1103 ""
- } else if (*idur == 2) {
-#line 1104 ""
- ret_val = 32;
-#line 1105 ""
- } else if (*idur == 0) {
-#line 1106 ""
- ret_val = 64;
-#line 1107 ""
- } else {
-#line 1108 ""
- s_wsle(&io___163);
-#line 1108 ""
- do_lio(&c__9, &c__1, "You entered an invalid note-length value", (
- ftnlen)40);
-#line 1108 ""
- e_wsle();
-#line 1109 ""
- s_stop("", (ftnlen)0);
-#line 1110 ""
- }
-#line 1111 ""
- if (*(unsigned char *)dotq == 'd') {
-#line 1111 ""
- ret_val = ret_val * 3 / 2;
-#line 1111 ""
- }
-#line 1112 ""
- return ret_val;
-} /* ifnodur_ */
-
-/* Subroutine */ int fwbrsym_(integer *lenbar, integer *nwbrs, char *wbrsym,
- integer *lwbrs, ftnlen wbrsym_len)
-{
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
-
- /* Fortran I/O blocks */
- static cilist io___164 = { 0, 6, 0, "(33H Any whole-bar rests of duratio"
- "n ,i3, 26H/64 will not be recognized)", 0 };
-
-
-#line 1116 ""
- /* Parameter adjustments */
-#line 1116 ""
- wbrsym -= 3;
-#line 1116 ""
-
-#line 1116 ""
- /* Function Body */
-#line 1116 ""
- *nwbrs = 1;
-#line 1117 ""
- *lwbrs = 2;
-#line 1118 ""
- if (*lenbar == 16) {
-#line 1119 ""
- s_copy(wbrsym + 3, "r4", (ftnlen)3, (ftnlen)2);
-#line 1120 ""
- } else if (*lenbar == 32) {
-#line 1121 ""
- s_copy(wbrsym + 3, "r2", (ftnlen)3, (ftnlen)2);
-#line 1122 ""
- } else if (*lenbar == 64) {
-#line 1123 ""
- s_copy(wbrsym + 3, "r0", (ftnlen)3, (ftnlen)2);
-#line 1124 ""
- } else if (*lenbar == 8) {
-#line 1125 ""
- s_copy(wbrsym + 3, "r8", (ftnlen)3, (ftnlen)2);
-#line 1126 ""
- } else if (*lenbar == 128) {
-#line 1127 ""
- s_copy(wbrsym + 3, "r9", (ftnlen)3, (ftnlen)2);
-#line 1128 ""
- } else {
-#line 1129 ""
- *nwbrs = 2;
-#line 1130 ""
- *lwbrs = 3;
-#line 1131 ""
- if (*lenbar == 24) {
-#line 1132 ""
- s_copy(wbrsym + 3, "rd4", (ftnlen)3, (ftnlen)3);
-#line 1133 ""
- s_copy(wbrsym + 6, "r4d", (ftnlen)3, (ftnlen)3);
-#line 1134 ""
- } else if (*lenbar == 48) {
-#line 1135 ""
- s_copy(wbrsym + 3, "rd2", (ftnlen)3, (ftnlen)3);
-#line 1136 ""
- s_copy(wbrsym + 6, "r2d", (ftnlen)3, (ftnlen)3);
-#line 1137 ""
- } else if (*lenbar == 96) {
-#line 1138 ""
- s_copy(wbrsym + 3, "rd0", (ftnlen)3, (ftnlen)3);
-#line 1139 ""
- s_copy(wbrsym + 6, "r0d", (ftnlen)3, (ftnlen)3);
-#line 1140 ""
- } else {
-#line 1141 ""
- s_wsfe(&io___164);
-#line 1141 ""
- do_fio(&c__1, (char *)&(*lenbar), (ftnlen)sizeof(integer));
-#line 1141 ""
- e_wsfe();
-#line 1143 ""
- }
-#line 1144 ""
- }
-#line 1145 ""
- return 0;
-} /* fwbrsym_ */
-
-/* Subroutine */ int nextsym_(char *line, integer *len, integer *ipeold,
- integer *ipenew, char *sym, integer *lsym, ftnlen line_len, ftnlen
- sym_len)
-{
- /* System generated locals */
- integer i__1, i__2;
-
- /* Builtin functions */
- integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
- e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen), s_copy(char *, char *,
- ftnlen, ftnlen);
-
- /* Local variables */
- static integer ip, iip;
-
- /* Fortran I/O blocks */
- static cilist io___165 = { 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 1154 ""
- if (*ipeold >= *len) {
-#line 1155 ""
- s_wsle(&io___165);
-#line 1155 ""
- do_lio(&c__9, &c__1, "Called nextsym with ipstart>=len ", (ftnlen)33);
-#line 1155 ""
- e_wsle();
-#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 1156 ""
- e_wsle();
-#line 1157 ""
- s_stop("", (ftnlen)0);
-#line 1158 ""
- }
-#line 1159 ""
- i__1 = *len;
-#line 1159 ""
- for (ip = *ipeold + 1; ip <= i__1; ++ip) {
-#line 1160 ""
- if (*(unsigned char *)&line[ip - 1] != ' ') {
-
-/* symbol starts here (ip). We're committed to exit the loop. */
-
-#line 1164 ""
- if (ip < *len) {
-#line 1165 ""
- i__2 = *len;
-#line 1165 ""
- for (iip = ip + 1; iip <= i__2; ++iip) {
-#line 1166 ""
- if (*(unsigned char *)&line[iip - 1] != ' ') {
-#line 1166 ""
- goto L2;
-#line 1166 ""
- }
-
-/* iip is the space after the symbol */
-
-#line 1170 ""
- *ipenew = iip - 1;
-#line 1171 ""
- *lsym = *ipenew - ip + 1;
-#line 1172 ""
- s_copy(sym, line + (ip - 1), (ftnlen)80, *ipenew - (ip -
- 1));
-#line 1173 ""
- return 0;
-#line 1174 ""
-L2:
-#line 1174 ""
- ;
-#line 1174 ""
- }
-
-/* Have len>=2 and ends on len */
-
-#line 1178 ""
- *ipenew = *len;
-#line 1179 ""
- *lsym = *ipenew - ip + 1;
-#line 1180 ""
- s_copy(sym, line + (ip - 1), (ftnlen)80, *ipenew - (ip - 1));
-#line 1181 ""
- return 0;
-#line 1182 ""
- } else {
-
-/* ip = len */
-
-#line 1186 ""
- *ipenew = *len;
-#line 1187 ""
- *lsym = 1;
-#line 1188 ""
- s_copy(sym, line + (ip - 1), (ftnlen)80, (ftnlen)1);
-#line 1189 ""
- return 0;
-#line 1190 ""
- }
-#line 1191 ""
- }
-#line 1192 ""
-/* L1: */
-#line 1192 ""
- }
-#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 1193 ""
- e_wsle();
-#line 1194 ""
- return 0;
-} /* nextsym_ */
-
-integer ntindex_(char *line, char *s2q, ftnlen line_len, ftnlen s2q_len)
-{
- /* System generated locals */
- address a__1[2];
- integer ret_val, i__1, i__2[2], i__3;
-
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
- integer i_indx(char *, char *, ftnlen, ftnlen), s_wsle(cilist *), do_lio(
- integer *, integer *, char *, ftnlen), e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen), s_cat(char *, char **,
- integer *, integer *, ftnlen);
- integer s_cmp(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static integer ic, len, ndxs2;
- static char tline[128];
- static integer ndxbs;
- static logical intex;
- static integer ndxdq1, ndxdq2;
- extern integer lenstr_(char *, integer *, ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___175 = { 0, 6, 0, 0, 0 };
-
-
-
-/* Returns index(line,s2q) if NOT in TeX string, 0 otherwise */
-
-
-/* print*,'Starting ntindex. s2q:',s2q,', line(1:79) is below' */
-/* print*,line(1:79) */
-
-
-/* Use a temporary string to store the input and test, so can zap D"..." */
-
-#line 1209 ""
- s_copy(tline, line, (ftnlen)128, (ftnlen)128);
-#line 1210 ""
- ndxs2 = i_indx(tline, s2q, (ftnlen)128, s2q_len);
-
-/* Return point below for rechecks after zapping D" " */
-
-#line 1214 ""
-L2:
-#line 1215 ""
- ndxbs = i_indx(tline, "\\", (ftnlen)128, (ftnlen)1);
-#line 1216 ""
- if (ndxbs > 0) {
-
-/* Special check in case \ is inside D"..." */
-
-#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 1224 ""
- if (ndxdq1 > 0) {
-
-/* Find end of D"..." */
-
-#line 1228 ""
- i__1 = ndxdq1 + 1;
-#line 1228 ""
- ndxdq2 = ndxdq1 + 1 + i_indx(tline + i__1, "\"", 128 - i__1, (
- ftnlen)1);
-#line 1229 ""
- if (ndxdq2 == ndxdq1 + 1) {
-#line 1230 ""
- s_wsle(&io___175);
-#line 1230 ""
- do_lio(&c__9, &c__1, "Something is really wierd here", (
- ftnlen)30);
-#line 1230 ""
- e_wsle();
-#line 1231 ""
- s_stop("", (ftnlen)0);
-#line 1232 ""
- }
-#line 1233 ""
- s_copy(tline, tline, (ftnlen)128, ndxdq1 - 1);
-#line 1234 ""
- i__1 = ndxdq2;
-#line 1234 ""
- for (ic = ndxdq1; ic <= i__1; ++ic) {
-/* Writing concatenation */
-#line 1235 ""
- i__2[0] = ic - 1, a__1[0] = tline;
-#line 1235 ""
- i__2[1] = 1, a__1[1] = " ";
-#line 1235 ""
- s_cat(tline, a__1, i__2, &c__2, (ftnlen)128);
-#line 1236 ""
-/* L3: */
-#line 1236 ""
- }
-#line 1237 ""
- i__1 = ndxdq2;
-/* Writing concatenation */
-#line 1237 ""
- i__2[0] = ndxdq2, a__1[0] = tline;
-#line 1237 ""
- i__2[1] = 128 - i__1, a__1[1] = line + i__1;
-#line 1237 ""
- s_cat(tline, a__1, i__2, &c__2, (ftnlen)128);
-#line 1238 ""
- goto L2;
-#line 1239 ""
- }
-#line 1240 ""
- }
-#line 1241 ""
- if (ndxbs == 0 || ndxs2 < ndxbs) {
-#line 1242 ""
- ret_val = ndxs2;
-/* print*,'No bs, or char is left of 1st bs, ntindex:',ntindex */
-#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 1249 ""
- len = lenstr_(tline, &c__128, (ftnlen)128);
-#line 1250 ""
- intex = TRUE_;
-/* print*,'intex+>',intex */
-#line 1252 ""
- i__1 = len;
-#line 1252 ""
- for (ic = ndxbs + 1; ic <= i__1; ++ic) {
-#line 1253 ""
- if (ic == ndxs2) {
-#line 1254 ""
- if (intex) {
-#line 1255 ""
- ret_val = 0;
-#line 1256 ""
- i__3 = ic;
-#line 1256 ""
- ndxs2 = i_indx(tline + i__3, s2q, len - i__3, s2q_len) +
- ic;
-/* print*,'ndxs2 =>',ndxs2 */
-#line 1258 ""
- } else {
-#line 1259 ""
- ret_val = ndxs2;
-#line 1260 ""
- return ret_val;
-#line 1261 ""
- }
-/* print*,'Internal exit, intex, ntindex:',intex,ntindex */
-#line 1263 ""
- } else /* if(complicated condition) */ {
-#line 1263 ""
- i__3 = ic;
-#line 1263 ""
- if (intex && s_cmp(tline + i__3, "\\ ", ic + 2 - i__3, (
- ftnlen)2) == 0) {
-#line 1264 ""
- intex = FALSE_;
-/* print*,'intex+>',intex */
-#line 1266 ""
- } else /* if(complicated condition) */ {
-#line 1266 ""
- i__3 = ic;
-#line 1266 ""
- if (! intex && s_cmp(tline + i__3, " \\", ic + 2 - i__3, (
- ftnlen)2) == 0) {
-#line 1268 ""
- intex = TRUE_;
-/* print*,'intex+>',intex */
-#line 1270 ""
- }
-#line 1270 ""
- }
-#line 1270 ""
- }
-#line 1271 ""
-/* L1: */
-#line 1271 ""
- }
-/* print*,'Out end of loop 1' */
-#line 1273 ""
- }
-/* print*,'Exiting ntindex at the end???' */
-#line 1275 ""
- return ret_val;
-} /* ntindex_ */
-
-/* Subroutine */ int getchar_(char *line, integer *iccount, char *charq,
- ftnlen line_len, ftnlen charq_len)
-{
- /* Builtin functions */
- integer s_rsfe(cilist *), do_fio(integer *, char *, ftnlen), e_rsfe(void);
-
- /* Fortran I/O blocks */
- 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 1284 ""
- if (*iccount == 128) {
-#line 1285 ""
- s_rsfe(&io___179);
-#line 1285 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 1285 ""
- e_rsfe();
-#line 1286 ""
- *iccount = 0;
-#line 1287 ""
- }
-#line 1288 ""
- ++(*iccount);
-#line 1289 ""
- *(unsigned char *)charq = *(unsigned char *)&line[*iccount - 1];
-#line 1290 ""
- return 0;
-} /* getchar_ */
-
-doublereal readin_(char *line, integer *iccount, integer *iread, ftnlen
- line_len)
-{
- /* System generated locals */
- address a__1[3];
- integer i__1[3], i__2;
- real ret_val;
- char ch__1[27], ch__2[6], ch__3[1];
- icilist ici__1;
-
- /* Builtin functions */
- integer s_rsfe(cilist *), do_fio(integer *, char *, ftnlen), e_rsfe(void),
- i_indx(char *, char *, ftnlen, ftnlen), s_wsle(cilist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer do_lio(integer *, integer *, char *, ftnlen), e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
- integer s_rsfi(icilist *), e_rsfi(void);
-
- /* Local variables */
- extern /* Subroutine */ int allparts_(char *, integer *, ftnlen);
- static integer i1, i2, icf;
- static char durq[1];
- static logical goto999;
- extern /* Subroutine */ int chkcom_(char *, logical *, ftnlen), getchar_(
- char *, integer *, char *, ftnlen, ftnlen);
-
- /* Fortran I/O blocks */
- 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 };
-
-
-
-/* Reads a piece of setup data from line, gets a new line from */
-/* file 10 (jobname.pmx) if needed, Transfers comment lines into all parts. */
-
-/* iread controls copying of values into scratch files for parts, but only */
-/* if not replacing. */
-
-/* iread input value written */
-/* -1 nvi nothing (only used when noinst<0 initially) */
-/* 0 various value read */
-/* 1 nv -1 , replace later with nvi(i) */
-/* 2 noinst 1 */
-/* 3 np -2 , replace later with (nsyst-1)/12+1 */
-/* 4 musicsize 20 */
-/* 5 fracondent 0.05 */
-
-#line 1315 ""
-L4:
-#line 1315 ""
- if (*iccount == 128) {
-#line 1316 ""
- s_rsfe(&io___180);
-#line 1316 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 1316 ""
- e_rsfe();
-#line 1317 ""
- if (all_1.replacing) {
-#line 1317 ""
- all_1.replacing = FALSE_;
-#line 1317 ""
- }
-#line 1318 ""
- chkcom_(line, &goto999, (ftnlen)128);
-#line 1319 ""
- *iccount = 0;
-#line 1320 ""
- }
-#line 1321 ""
- ++(*iccount);
-
-/* Find next non-blank or end of line */
-
-#line 1325 ""
- for (*iccount = *iccount; *iccount <= 127; ++(*iccount)) {
-#line 1326 ""
- if (*(unsigned char *)&line[*iccount - 1] != ' ') {
-#line 1326 ""
- goto L3;
-#line 1326 ""
- }
-#line 1327 ""
-/* L2: */
-#line 1327 ""
- }
-
-/* If here, need to get a new line */
-
-#line 1331 ""
- *iccount = 128;
-#line 1332 ""
- goto L4;
-#line 1333 ""
-L3:
-
-/* iccount now points to start of number to read */
-
-#line 1337 ""
- i1 = *iccount;
-#line 1338 ""
-L5:
-#line 1338 ""
- getchar_(line, iccount, durq, (ftnlen)128, (ftnlen)1);
-
-/* Remember that getchar first increments iccount, *then* reads a character. */
-
-#line 1342 ""
- if (i_indx("0123456789.-", durq, (ftnlen)12, (ftnlen)1) > 0) {
-#line 1342 ""
- goto L5;
-#line 1342 ""
- }
-#line 1343 ""
- i2 = *iccount - 1;
-#line 1344 ""
- if (i2 < i1) {
-#line 1345 ""
- s_wsle(&io___185);
-/* Writing concatenation */
-#line 1345 ""
- i__1[0] = 7, a__1[0] = "Found \"";
-#line 1345 ""
- i__1[1] = 1, a__1[1] = durq;
-#line 1345 ""
- i__1[2] = 19, a__1[2] = "\" instead of number";
-#line 1345 ""
- s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)27);
-#line 1345 ""
- do_lio(&c__9, &c__1, ch__1, (ftnlen)27);
-#line 1345 ""
- e_wsle();
-#line 1346 ""
- s_stop("1", (ftnlen)1);
-#line 1347 ""
- }
-#line 1348 ""
- icf = i2 - i1 + 49;
-#line 1349 ""
- ici__1.icierr = 0;
-#line 1349 ""
- ici__1.iciend = 0;
-#line 1349 ""
- ici__1.icirnum = 1;
-#line 1349 ""
- ici__1.icirlen = i2 - (i1 - 1);
-#line 1349 ""
- ici__1.iciunit = line + (i1 - 1);
-/* Writing concatenation */
-#line 1349 ""
- i__1[0] = 2, a__1[0] = "(f";
-#line 1349 ""
- *(unsigned char *)&ch__3[0] = icf;
-#line 1349 ""
- i__1[1] = 1, a__1[1] = ch__3;
-#line 1349 ""
- i__1[2] = 3, a__1[2] = ".0)";
-#line 1349 ""
- ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)6), ch__2);
-#line 1349 ""
- s_rsfi(&ici__1);
-#line 1349 ""
- do_fio(&c__1, (char *)&ret_val, (ftnlen)sizeof(real));
-#line 1349 ""
- e_rsfi();
-#line 1350 ""
- if (! all_1.replacing) {
-#line 1351 ""
- if (*iread == 0) {
-#line 1352 ""
- i__2 = i2 - i1 + 1;
-#line 1352 ""
- allparts_(line + (i1 - 1), &i__2, i2 - (i1 - 1));
-#line 1353 ""
- } else if (*iread == 1) {
-#line 1354 ""
- allparts_("-999", &c__4, (ftnlen)4);
-#line 1355 ""
- } else if (*iread == 2) {
-#line 1356 ""
- allparts_("1", &c__1, (ftnlen)1);
-#line 1357 ""
- } else if (*iread == 3) {
-#line 1358 ""
- allparts_("-998", &c__4, (ftnlen)4);
-#line 1359 ""
- } else if (*iread == 4) {
-#line 1360 ""
- allparts_("20", &c__2, (ftnlen)2);
-#line 1361 ""
- } else if (*iread == 5) {
-#line 1362 ""
- allparts_(".05", &c__3, (ftnlen)3);
-#line 1363 ""
- } else if (*iread != -1) {
-#line 1364 ""
- s_wsle(&io___187);
-#line 1364 ""
- do_lio(&c__9, &c__1, "Error with iread in readin", (ftnlen)26);
-#line 1364 ""
- e_wsle();
-#line 1365 ""
- s_stop("", (ftnlen)0);
-#line 1366 ""
- }
-#line 1367 ""
- }
-#line 1368 ""
- return ret_val;
-} /* readin_ */
-
-/* Subroutine */ int chkcom_(char *line, logical *goto999, ftnlen line_len)
-{
- /* System generated locals */
- integer i__1, i__2;
-
- /* Builtin functions */
- integer s_rsfe(cilist *), do_fio(integer *, char *, ftnlen), e_rsfe(void),
- i_indx(char *, char *, ftnlen, ftnlen), s_cmp(char *, char *,
- ftnlen, ftnlen), s_wsfe(cilist *), e_wsfe(void);
-
- /* Local variables */
- static logical clefpend;
- extern /* Subroutine */ int allparts_(char *, integer *, ftnlen);
- static integer j, k, ivq, idxb, idxl, idxm, idxn;
- extern /* Subroutine */ int zapbl_(char *, integer *, ftnlen);
- static integer iposc0;
- extern integer lenstr_(char *, integer *, ftnlen);
- static integer lenline;
-
- /* Fortran I/O blocks */
- 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 1380 ""
- *goto999 = FALSE_;
-#line 1381 ""
-L1:
-#line 1381 ""
- if (*(unsigned char *)line != '%') {
-#line 1381 ""
- return 0;
-#line 1381 ""
- }
-
-/* If here, line has some sort of comment */
-
-#line 1385 ""
- if (*(unsigned char *)&line[1] == '%') {
-#line 1386 ""
- if (! all_1.insetup) {
-
-/* Suck up a line, then flow out of "if" block to get another and loop */
-
-#line 1390 ""
- s_rsfe(&io___188);
-#line 1390 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 1390 ""
- e_rsfe();
-/* ++VV */
-
-/* UNLESS (a) it has a score-only "M" and changes # of inst's. */
-
-#line 1396 ""
- if (i_indx(line, "M", (ftnlen)128, (ftnlen)1) > 0) {
-#line 1397 ""
- idxl = i_indx(line, "L", (ftnlen)128, (ftnlen)1);
-#line 1398 ""
- idxm = i_indx(line, "M", (ftnlen)128, (ftnlen)1);
-#line 1399 ""
- idxn = i_indx(line, "n", (ftnlen)128, (ftnlen)1);
-#line 1400 ""
- idxb = i_indx(line, " ", (ftnlen)128, (ftnlen)1);
-#line 1401 ""
- if (idxl < idxm && idxm < idxn && (idxb == 0 || idxn < idxb))
- {
-#line 1403 ""
- i__1 = idxn;
-#line 1403 ""
- all_1.noinow = *(unsigned char *)&line[i__1] - 48;
-#line 1404 ""
- clefpend = TRUE_;
-
-/* Next noinow digits are original inst. #'s of new inst. set. Next noinow */
-/* char's after that are clefs */
-
-#line 1409 ""
- all_1.nvnow = 0;
-#line 1410 ""
- i__1 = all_1.noinow;
-#line 1410 ""
- for (j = 1; j <= i__1; ++j) {
-#line 1411 ""
- i__2 = idxn + 1 + j - 1;
-#line 1411 ""
- all_1.iorig[j - 1] = *(unsigned char *)&line[i__2] -
- 48;
-#line 1412 ""
- iposc0 = idxn + 1 + all_1.noinow;
-#line 1413 ""
- i__2 = all_1.nvi[all_1.iorig[j - 1] - 1];
-#line 1413 ""
- for (k = 1; k <= i__2; ++k) {
-#line 1414 ""
- ++all_1.nvnow;
-/* clefq(nvnow) = line(iposc0+nvnow:iposc0+nvnow) */
-#line 1416 ""
- all_1.instnum[all_1.nvnow - 1] = j;
-#line 1417 ""
- all_1.botv[all_1.nvnow - 1] = k == 1 && j != 1;
-#line 1418 ""
-/* L25: */
-#line 1418 ""
- }
-#line 1419 ""
-/* L24: */
-#line 1419 ""
- }
-#line 1420 ""
- }
-#line 1421 ""
- }
-
-/* or if it's "h" or "l", need to suck up one more line */
-
-#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 1425 ""
- s_rsfe(&io___197);
-#line 1425 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 1425 ""
- e_rsfe();
-#line 1425 ""
- }
-
-/* 4/29/00 check for T string also */
-
-#line 1431 ""
- } else {
-
-/* In setup mode. Set flag, flow out and do use following line */
-
-#line 1435 ""
- all_1.replacing = TRUE_;
-#line 1436 ""
- }
-#line 1437 ""
- } else if (*(unsigned char *)&line[1] == '!') {
-
-/* Copy to all parts */
-
-#line 1441 ""
- allparts_(line + 2, &c__125, (ftnlen)126);
-#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 1447 ""
- ivq = i_indx("123456789abcdefghijklmno", line + 1, (ftnlen)24, (
- ftnlen)1);
-
-/* Only treat as part-specific pmx line if number .le. noinst */
-
-#line 1451 ""
- if (ivq < 1 || ivq > all_1.noinst) {
-
-/* Simple comment. */
-
-#line 1455 ""
- allparts_(line, &c__128, (ftnlen)128);
-#line 1456 ""
- } else {
-
-/* Instrument comment, copy only to part */
-
-#line 1460 ""
- lenline = lenstr_(line, &c__128, (ftnlen)128);
-#line 1461 ""
- if (lenline > 2) {
-#line 1462 ""
- io___200.ciunit = ivq + 10;
-#line 1462 ""
- s_wsfe(&io___200);
-#line 1462 ""
- do_fio(&c__1, line + 2, lenline - 2);
-#line 1462 ""
- e_wsfe();
-#line 1463 ""
- } else {
-
-/* Transferring blank line */
-
-#line 1467 ""
- io___201.ciunit = ivq + 10;
-#line 1467 ""
- s_wsfe(&io___201);
-#line 1467 ""
- do_fio(&c__1, " ", (ftnlen)1);
-#line 1467 ""
- e_wsfe();
-#line 1468 ""
- }
-#line 1469 ""
- }
-#line 1470 ""
- }
-#line 1471 ""
- i__1 = s_rsfe(&io___202);
-#line 1471 ""
- if (i__1 != 0) {
-#line 1471 ""
- goto L2;
-#line 1471 ""
- }
-#line 1471 ""
- i__1 = do_fio(&c__1, line, (ftnlen)128);
-#line 1471 ""
- if (i__1 != 0) {
-#line 1471 ""
- goto L2;
-#line 1471 ""
- }
-#line 1471 ""
- i__1 = e_rsfe();
-#line 1471 ""
- if (i__1 != 0) {
-#line 1471 ""
- goto L2;
-#line 1471 ""
- }
-#line 1472 ""
- zapbl_(line, &c__128, (ftnlen)128);
-#line 1473 ""
- goto L1;
-#line 1474 ""
-L2:
-#line 1475 ""
- *goto999 = TRUE_;
-#line 1476 ""
- return 0;
-} /* chkcom_ */
-
-/* Subroutine */ int dosetup_(integer *iv, char *line, integer *mtrnum,
- integer *mtrden, ftnlen line_len)
-{
- /* System generated locals */
- integer i__1, i__2;
-
- /* Builtin functions */
- integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void),
- i_nint(real *);
-
- /* Local variables */
- static integer ioi, noi, iset;
- static real xdata;
- static integer iccount;
- extern /* Subroutine */ int partnum_(integer *, integer *, char *, real *,
- ftnlen);
-
- /* Fortran I/O blocks */
- static cilist io___206 = { 0, 40, 0, "(i5)", 0 };
- static cilist io___208 = { 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, "(i5)", 0 };
- static cilist io___213 = { 0, 40, 0, "(i5)", 0 };
- static cilist io___214 = { 0, 40, 0, "(f5.2)", 0 };
-
-
-
-/* Transfers setup data from scratch file to real one for one instrument */
-/* Data may be mixed with comments, but on entry 1st item is a number. */
-/* Write a comment when encountered, as it comes. */
-/* Write numbers one per line. */
-/* Three input data require special handling: */
-/* If not already replaced, i.e., if negative, then */
-/* iset(1) (nv) will be replaced with nvi(i) */
-/* 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 1495 ""
- iccount = 0;
-#line 1496 ""
- for (iset = 1; iset <= 12; ++iset) {
-#line 1497 ""
- partnum_(iv, &iccount, line, &xdata, (ftnlen)128);
-#line 1498 ""
- if (iset == 2) {
-#line 1499 ""
- if (xdata > 0.f) {
-#line 1500 ""
- s_wsfe(&io___206);
-#line 1500 ""
- i__1 = (integer) (xdata + .1f);
-#line 1500 ""
- do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 1500 ""
- e_wsfe();
-#line 1501 ""
- } else {
-#line 1502 ""
- noi = -xdata + .1f;
-#line 1503 ""
- s_wsfe(&io___208);
-#line 1503 ""
- do_fio(&c__1, (char *)&noi, (ftnlen)sizeof(integer));
-#line 1503 ""
- e_wsfe();
-#line 1504 ""
- i__1 = noi;
-#line 1504 ""
- for (ioi = 1; ioi <= i__1; ++ioi) {
-#line 1505 ""
- partnum_(iv, &iccount, line, &xdata, (ftnlen)128);
-#line 1506 ""
- s_wsfe(&io___210);
-#line 1506 ""
- i__2 = (integer) (xdata + .1f);
-#line 1506 ""
- do_fio(&c__1, (char *)&i__2, (ftnlen)sizeof(integer));
-#line 1506 ""
- e_wsfe();
-#line 1507 ""
-/* L2: */
-#line 1507 ""
- }
-#line 1508 ""
- }
-/* else if (iset.ne.8 .and. xdata.lt.0) then */
-#line 1510 ""
- } else if (iset != 8 && iset != 5 && xdata < 0.f) {
-
-/* Must be either nv or npages */
-
-#line 1514 ""
- if ((integer) (-xdata + .1f) == 999) {
-
-/* It's nv */
-
-#line 1518 ""
- s_wsfe(&io___211);
-#line 1518 ""
- do_fio(&c__1, (char *)&all_1.nvi[*iv - 1], (ftnlen)sizeof(
- integer));
-#line 1518 ""
- e_wsfe();
-#line 1519 ""
- } else {
-
-/* npages must be computed */
-
-#line 1523 ""
- s_wsfe(&io___212);
-#line 1523 ""
- i__1 = (all_1.nsyst - 1) / 12 + 1;
-#line 1523 ""
- do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 1523 ""
- e_wsfe();
-#line 1524 ""
- }
-#line 1525 ""
- } else if (iset != 7 && iset != 12) {
-
-/* write integer */
-
-#line 1529 ""
- s_wsfe(&io___213);
-#line 1529 ""
- i__1 = i_nint(&xdata);
-#line 1529 ""
- do_fio(&c__1, (char *)&i__1, (ftnlen)sizeof(integer));
-#line 1529 ""
- e_wsfe();
-#line 1530 ""
- } else {
-
-/* write floating number */
-
-#line 1534 ""
- s_wsfe(&io___214);
-#line 1534 ""
- do_fio(&c__1, (char *)&xdata, (ftnlen)sizeof(real));
-#line 1534 ""
- e_wsfe();
-#line 1535 ""
- }
-#line 1536 ""
- if (iset == 3) {
-#line 1537 ""
- *mtrnum = i_nint(&xdata);
-#line 1538 ""
- } else if (iset == 4) {
-#line 1539 ""
- *mtrden = i_nint(&xdata);
-#line 1540 ""
- }
-#line 1541 ""
-/* L1: */
-#line 1541 ""
- }
-#line 1542 ""
- return 0;
-} /* dosetup_ */
-
-/* Subroutine */ int partnum_(integer *iv, integer *iccount, char *line, real
- *xdata, ftnlen line_len)
-{
- /* System generated locals */
- address a__1[3];
- integer i__1[3];
- char ch__1[27], ch__2[6], ch__3[1];
- icilist ici__1;
-
- /* Builtin functions */
- integer s_rsfe(cilist *), do_fio(integer *, char *, ftnlen), e_rsfe(void),
- s_wsfe(cilist *), e_wsfe(void), i_indx(char *, char *, ftnlen,
- ftnlen), s_wsle(cilist *);
- /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
- integer do_lio(integer *, integer *, char *, ftnlen), e_wsle(void);
- /* Subroutine */ int s_stop(char *, ftnlen);
- integer s_rsfi(icilist *), e_rsfi(void);
-
- /* Local variables */
- static integer i1, i2, icf, len;
- static char durq[1];
- extern integer lenstr_(char *, integer *, ftnlen);
- extern /* Subroutine */ int getchar_(char *, integer *, char *, ftnlen,
- ftnlen);
-
- /* Fortran I/O blocks */
- 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 1550 ""
-L2:
-#line 1550 ""
- if (*iccount == 128) {
-#line 1551 ""
- io___215.ciunit = *iv + 10;
-#line 1551 ""
- s_rsfe(&io___215);
-#line 1551 ""
- do_fio(&c__1, line, (ftnlen)128);
-#line 1551 ""
- e_rsfe();
-#line 1552 ""
- if (*(unsigned char *)line == '%') {
-#line 1553 ""
- len = lenstr_(line, &c__128, (ftnlen)128);
-#line 1554 ""
- s_wsfe(&io___217);
-#line 1554 ""
- do_fio(&c__1, line, len);
-#line 1554 ""
- e_wsfe();
-#line 1555 ""
- goto L2;
-#line 1556 ""
- }
-#line 1557 ""
- *iccount = 0;
-#line 1558 ""
- }
-#line 1559 ""
- ++(*iccount);
-
-/* Find next non-blank or end of line */
-
-#line 1563 ""
- for (*iccount = *iccount; *iccount <= 127; ++(*iccount)) {
-#line 1564 ""
- if (*(unsigned char *)&line[*iccount - 1] != ' ') {
-#line 1564 ""
- goto L3;
-#line 1564 ""
- }
-#line 1565 ""
-/* L4: */
-#line 1565 ""
- }
-
-/* If here, iccount=128 and need to get a new line */
-
-#line 1569 ""
- goto L2;
-#line 1570 ""
-L3:
-
-/* iccount now points to start of number to read */
-
-#line 1574 ""
- i1 = *iccount;
-#line 1575 ""
-L5:
-#line 1575 ""
- getchar_(line, iccount, durq, (ftnlen)128, (ftnlen)1);
-
-/* Remember that getchar first increments iccount, *then* reads a character. */
-
-#line 1579 ""
- if (i_indx("0123456789.-", durq, (ftnlen)12, (ftnlen)1) > 0) {
-#line 1579 ""
- goto L5;
-#line 1579 ""
- }
-#line 1580 ""
- i2 = *iccount - 1;
-#line 1581 ""
- if (i2 < i1) {
-#line 1582 ""
- s_wsle(&io___221);
-/* Writing concatenation */
-#line 1582 ""
- i__1[0] = 7, a__1[0] = "Found \"";
-#line 1582 ""
- i__1[1] = 1, a__1[1] = durq;
-#line 1582 ""
- i__1[2] = 19, a__1[2] = "\" instead of number";
-#line 1582 ""
- s_cat(ch__1, a__1, i__1, &c__3, (ftnlen)27);
-#line 1582 ""
- do_lio(&c__9, &c__1, ch__1, (ftnlen)27);
-#line 1582 ""
- e_wsle();
-#line 1583 ""
- s_stop("1", (ftnlen)1);
-#line 1584 ""
- }
-#line 1585 ""
- icf = i2 - i1 + 49;
-#line 1586 ""
- ici__1.icierr = 0;
-#line 1586 ""
- ici__1.iciend = 0;
-#line 1586 ""
- ici__1.icirnum = 1;
-#line 1586 ""
- ici__1.icirlen = i2 - (i1 - 1);
-#line 1586 ""
- ici__1.iciunit = line + (i1 - 1);
-/* Writing concatenation */
-#line 1586 ""
- i__1[0] = 2, a__1[0] = "(f";
-#line 1586 ""
- *(unsigned char *)&ch__3[0] = icf;
-#line 1586 ""
- i__1[1] = 1, a__1[1] = ch__3;
-#line 1586 ""
- i__1[2] = 3, a__1[2] = ".0)";
-#line 1586 ""
- ici__1.icifmt = (s_cat(ch__2, a__1, i__1, &c__3, (ftnlen)6), ch__2);
-#line 1586 ""
- s_rsfi(&ici__1);
-#line 1586 ""
- do_fio(&c__1, (char *)&(*xdata), (ftnlen)sizeof(real));
-#line 1586 ""
- e_rsfi();
-#line 1587 ""
- return 0;
-} /* partnum_ */
-
-
-/* Subroutine */ int zapbl_(char *string, integer *len, ftnlen string_len)
-{
- /* System generated locals */
- integer i__1;
-
- /* Builtin functions */
- /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
-
- /* Local variables */
- static integer i__;
-
-#line 1599 ""
- i__1 = *len;
-#line 1599 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 1600 ""
- if (*(unsigned char *)&string[i__ - 1] == ' ') {
-#line 1600 ""
- goto L1;
-#line 1600 ""
- }
-#line 1601 ""
- if (i__ == 1) {
-#line 1601 ""
- return 0;
-#line 1601 ""
- }
-#line 1602 ""
- goto L2;
-#line 1603 ""
-L1:
-#line 1603 ""
- ;
-#line 1603 ""
- }
-
-/* If line is all blank, leave it alone */
-
-#line 1607 ""
- return 0;
-#line 1608 ""
-L2:
-#line 1609 ""
- s_copy(string, string + (i__ - 1), string_len, *len - (i__ - 1));
-#line 1610 ""
- return 0;
-} /* zapbl_ */
-
-/* Subroutine */ int oddquotesbefore_(char *lineq, integer *indx, logical *
- yesodd, ftnlen lineq_len)
-{
- /* System generated locals */
- integer i__1;
-
- /* Local variables */
- static integer i__, numdqs;
-
-
-/* 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 1619 ""
- numdqs = 0;
-#line 1620 ""
- i__1 = *indx - 1;
-#line 1620 ""
- for (i__ = 1; i__ <= i__1; ++i__) {
-#line 1621 ""
- if (*(unsigned char *)&lineq[i__ - 1] == '"') {
-#line 1621 ""
- ++numdqs;
-#line 1621 ""
- }
-#line 1622 ""
-/* L1: */
-#line 1622 ""
- }
-#line 1623 ""
- *yesodd = numdqs % 2 == 1;
-#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
deleted file mode 100644
index a88f634d383..00000000000
--- a/Build/source/utils/pmx/pmx-src/scor2prt.for
+++ /dev/null
@@ -1,1630 +0,0 @@
-cccccccccccccccccccccccccc
-cc
-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
-c with MusiXTeX and TeX, the purpose of PMX is to allow the user to create
-c high-quality typeset musical scores by including a sequence of PMX commands
-c in an ASCII input file. Scor2prt is an auxiliary program that creates PMX
-c input files for individual parts from the PMX input file for the score.
-c
-c This program is free software: you can redistribute it and/or modify
-c it under the terms of the GNU General Public License as published by
-c the Free Software Foundation, either version 3 of the License, or
-c (at your option) any later version.
-c
-c This program is distributed in the hope that it will be useful,
-c but WITHOUT ANY WARRANTY; without even the implied warranty of
-c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-c GNU General Public License for more details.
-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 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
-c Copy & mod Ki into parts when after beginning.
-c 7/18/11
-c Start to fix up for AS..., also Ki was done a little earlier.
-c 7/5/10
-c Modify Manual to explain extended hex numbering for part-specific comments
-c 5/16/10
-c Extend part-specific comments for up to 24 parts (subroutine chkcom)
-c Allow files 11-34 for parts
-c Change file 30 to 40
-c 6/1/08 es2p
-c noimax = 24
-c
-c To do
-c Override fracindent, musicsize?
-c Deal with midbar R?
-c 2/29/04
-c Check for special character being in quoted string.
-c 10/20/02 PMX 2.407
-c Interpret AN[n]"[used-defined-part-file-name]"
-c 1/21/02
-c Deals with rm in multiple parts.
-c s2p15
-c Get right non-tex index even if there's "\" inside D"..."
-c s2p14
-c 10/29/00 fix transfer to parts of negative mtrdnp
-c 4/29/00 screen for "%%" followed by "T"
-c Restore change from "Version 2.1a, 21 Dec"
-c s2p13
-c Allow whole-bar double-whole rests.
-c Bypass MIDI commands "I..." achar(10)="I"
-c s2p12
-c Let %ablabla ... %cblabla represent pmx input for parts 10-12. But %?blabla
-c only taken as such if ? represents a hex digit .le. noinst, otherwise it's
-c a simple comment. This lessens incompatibility.
-c In subroutine mbrest, properly open parts 10-12 if needed
-c s2p11
-c Ignore leading blanks
-c Fix undefined linelength in mbrest at very end of comments.
-c s2p10
-c Fix non-transfer of P..c" "
-c Allow "%%" and "%"n anywhere
-c Version 1.43
-c Fix bug with P in TeX string.
-c Ignore shifted whole-bar rests when consolidating whole-bar rests
-c Copy type 4 TeX into all parts.
-c Deal with XB and XP.
-c Permit transfer of blank line into parts
-c Change staves/inst in 'M' command.
-c Arbitrary staves/inst.
-c Recognize m1/2/3/4 syntax.
-c Enable comment and one-voice syntax in instrument names
-c
-c Changes since 1.1
-c Deal with saved macros.
-c Revise setup readin, to admit comments.
-c Do not copy 'X' into parts
-c
-cccccccccccccccccccccccccccccccccccccccccccccccc
- parameter (noimax=24)
- common /all/ noinow,iorig(noimax),noinst,insetup,replacing,
- * instnum(noimax),botv(noimax),nvi(noimax),nsyst,nvnow
- integer*4 ludpfn(noimax)
- character*1 sq,achar(10)
- character*2 termsym
- character*27 jobname,infileq
- character*128 instrum(noimax),udpfnq(noimax)
- character*128 line,holdln,templine
- logical termrpt,isachar,frstln,oneof2,botv,clefpend,fexist,
- * insetup,replacing,gotname,yesodd,goto999
- character*1 dumq
- data achar /'P','m','V','R','A','h','w','K','M','I'/
- clefpend = .false.
- insetup = .true.
- replacing = .false.
- frstln = .true.
- lenhold = 0
- sq = char(92)
- 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,'
- print*,' but you may enter one now:'
- read(*,'(a)')jobname
- numargs = 1
- else
-c call getarg(1,jobname,idum) ! May need to replace this w/ next line
- call getarg(1,jobname)
- end if
- ljob = lenstr(jobname,27)
- if (ljob .eq. 0) then
- print*,'No was jobname entered. Restart and try again.'
- stop
- end if
-c
-c Strip ".pmx" if necessary
-c
- ndxpmx = max(index(jobname,'.pmx'),index(jobname,'.PMX'))
- if (ndxpmx .gt. 0) then
- jobname = jobname(1:ndxpmx-1)
- ljob = ljob-4
- end if
-c
-c Check for existence of input file
-c
- infileq = jobname(1:ljob)//'.pmx'
- inquire(file=infileq,EXIST=fexist)
- if (.not.fexist) then
- print*,'Cannot find file '//infileq
- stop
- end if
- open(10,file=jobname(1:ljob)//'.pmx')
-c
-c Open all instrument files now for allparts stuff. Later disgard those >nv
-c
- do 19 iv = 1 , noimax
- iorig(iv) = iv
- open(10+iv,status='SCRATCH')
- ludpfn(iv) = 0
-19 continue
- read(10,'(a)')line
- call chkcom(line,goto999)
- if (line(1:3) .eq. '---') then
- call allparts(line,128)
-31 read(10,'(a)')line
- if (line(1:3) .ne. '---') then
- call allparts(line,128)
- go to 31
- end if
- call allparts(line,128)
- read(10,'(a)')line
- call chkcom(line,goto999)
- end if
- iccount = 0
- nv = readin(line,iccount,1)+.1
- noinst = readin(line,iccount,2)+.1
- if (noinst .gt. 0) then
- nvi(1) = nv-noinst+1
- else
- noinst = 1-noinst
- do 21 iinst = 1 , noinst
- nvi(iinst) = readin(line,iccount,-1)+.1
-21 continue
- end if
- noinow = noinst
- insnow = 1
-c
-c ivlast is last iv in current inst. instnum(iv) is iinst for current voice.
-c
- ivlast = nvi(1)
- do 22 iv = 1 , nv
- instnum(iv) = insnow
- if (iv .eq. ivlast) then
- if (iv .lt. nv) botv(iv+1) = .true.
-c
-c The previous stmt will set botv true only for bot voice of iinst>1. It is
-c used when writing termrpts, but the one in voice one is handled differently,
-c so botv(1) is left .false.
-c
- if (insnow .lt. noinst) then
- insnow = insnow+1
- ivlast = ivlast+nvi(insnow)
- end if
- end if
-22 continue
- mtrnuml = readin(line,iccount,0)+.1
- mtrdenl = readin(line,iccount,0)+.1
- mtrnmp = readin(line,iccount,0)+.1
- mtrdnp = readin(line,iccount,0)+.1
- xmtrnum0 = readin(line,iccount,0)
- isig = readin(line,iccount,0)+.1
- npages = readin(line,iccount,3)+.1
- nsyst = readin(line,iccount,0)+.1
- musicsize = readin(line,iccount,4)+.1
- fracindent = readin(line,iccount,5)
- if (npages .eq. 0) then
- print*,
- *'You entered npages=0, which means nsyst is not the total number'
- print*,
- *'of systems. Scor2prt has to know the total number of systems.'
- print*,
- *'Please set npages and nsyst to their real values.'
- stop
- end if
-c
-c Must leave insetup=.true. else could bypass ALL instrument names.
-c
- read(10,'(a)')line
- call chkcom(line,goto999)
- backspace(10)
-c
-c Normally this puts pointer at start of line with 1st inst name
-c Check if prior line was "%%"
-c
- backspace(10)
- read(10,'(a)')line
- if (line(1:2) .eq. '%%') backspace(10)
- do 14 iv = 1 , noinst
- gotname = .false.
-16 read(10,'(a)') instrum(iv)
- if (instrum(iv)(1:2) .eq. '%%') then
- read(10,'(a)')line
- go to 16
- else if (instrum(iv)(1:1) .eq. '%') then
- ivq = ichar(instrum(iv)(2:2))-48
- if (ivq.ne.iv) then
-c
-c It's really a comment. Copy to parts, then get another trial name.
-c
- call allparts(instrum(iv),128)
- go to 16
- else
- line = instrum(iv)(3:)
- instrum(iv) = line
- gotname = .true.
- end if
- else
- gotname = .true.
- end if
-cc
-cc The following checks for macro that write original C-clef as part of
-cc instrument name. See pmx.tex
-cc
-c if (index(instrum(iv),'namewpc') .eq. 0) then
-c write(10+iv,'(a)')' '
-c else
-c inm1 = index(instrum(iv),'{')+1
-c inm2 = index(instrum(iv),'}')-1
-c read(instrum(iv)(inm2+2:inm2+8),'(i1,4x,2i1)')ilev,iy1,iy2
-c write(10+iv,'(a)')sq//'namewpc{}'//char(ilev+48)//'{20}'//
-c * char(iy1+49)//char(iy2+49)
-c instrum(iv) = instrum(iv)(inm1:inm2)
-c end if
- if (.not.gotname) then
- print*,'You must provide a replacement instrument name'
- stop
- end if
- write(10+iv,'(a)')' '
-14 continue
- replacing = .false.
- nvnow = nv
-c
-c Clef string: Note insetup is still T, so "%%" will be treated specially
-c
- read(10,'(a)')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,goto999)
- backspace(10)
- else
-c
-c If here, line has the clef string in it. Handle the old way
-c
- kvstart = 1
- kvend = nvi(1)
- do 2 inst = 1 , noinst
- write(10+inst,'(a'//char(48+nvi(inst))//')')
- * line(kvstart:kvend)
- if (inst .lt. noinst) then
- kvstart = kvend+1
- kvend = kvstart+nvi(inst+1)-1
- end if
-2 continue
- end if
- replacing = .false.
- insetup = .false.
-c
-c *****NOTE*****This comment applies to stuff done earlier!
-c Before starting the big loop, copy initial instnum and staffnum stuff
-c into working values. Latter may change if noinst changes. Also make
-c list of current inst nums relative to original ones. In addition to those
-c below, must redo instnum(iv) and botv(iv) when we change noinst.
-c
-c Path string: ASSUME THIS WILL NEVER BE ALTERED IN PARTS!
-c
-18 read(10,'(a)') line
- if (line(1:1) .eq. '%') then
- call allparts(line,128)
- go to 18
- end if
- call allparts(line,128)
-c
-c Write instrument names. Will be blank if later part of a score.
-c
- if (instrum(1)(1:1) .ne. ' ') then
- do 3 iv = 1 , noinst
- len = lenstr(instrum(iv),79)
- write(10+iv,'(a2/a)')'Ti',instrum(iv)(1:len)
-3 continue
- end if
-c
-c The big loop. Except for '%%', put all comment lines in all parts.
-c Unless preceeded by '%%', put all type 2 or 3 TeX Strings in all parts
-c If a line starts with %!, put the rest of it in each part.
-c If a line starts with %[n], put the rest of it in part [n].
-c Check for Tt, Tc, Voltas, Repeats, headers, lower texts, meter changes.
-c Assume they only come at top of block, except terminal repeat needs
-c special handling.
-c Check for "P"; ignore in parts.
-c Check for consecutive full-bar rests; if found, replace with rm[nn]
-c
- iv = 1
- iinst = 1
- termrpt = .false.
-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,goto999)
- if (goto999) go to 999
- lenline = lenstr(line,128)
- if (lenline .eq. 0) go to 4
- if (line(1:1) .eq. 'T') then
- call allparts(line,128)
- read(10,'(a)')line
- call allparts(line,128)
- go to 4
- else if (line(1:2) .eq. sq//sq) then
- call allparts(line,128)
- go to 4
- else if (index('hl',line(1:1)).gt.0 .and.
- * index(' +-',line(2:2)) .gt. 0) then
- call allparts(line,128)
- read(10,'(a)')line
- call allparts(line,128)
- go to 4
- else if (iv .eq. 1) then
- do 5 ia = 1 , 10
-24 continue
- idxa = ntindex(line,achar(ia))
- isachar = idxa .gt. 0
- if (idxa.gt.1) isachar = line(idxa-1:idxa-1).eq.' '
-c
-c 1 2 3 4 5 6 7 8 9 10
-c data achar /'P','m','V','R','A','h','w','K','M','I'/
-c
- if (ia .eq. 9) isachar =
- * isachar .and. line(idxa+1:idxa+1).eq.'S'
- if (isachar) then
-c
-c Check whether character is inside a quoted string by counting
-c how many quotes precede it in the line
-c
-
- call OddQuotesBefore(line,idxa,yesodd)
- if (yesodd) isachar=.false.
- end if
- if (isachar) then
-c
-c Find next blank
-c
- do 6 ib = idxa+1 , 128
- if (line(ib:ib) .eq. ' ') go to 7
-6 continue
- print*,'Problem with "V,R,m,P,A,h,MS, or w"'
- print*,
- * 'Send files to Dr. Don at dsimons at roadrunner dot com'
- stop 1
-7 continue
-c
-c Next blank is at position ib. Later, if ia=1, must check for Pc" " ;
-c i.e., look for '"' between P and blank
-c
- if (ia .eq. 4) then
-c
-c Check for terminal repeat. Note if there's a term rpt, there can't be any
-c others. Also, must process repeats LAST, after m's and 'V's
-c
- do 8 ic = ib+1 , 128
-c
-c If any subsequent character on this line is neither blank nor "/", get out
-c
- if (index(' /',line(ic:ic)) .eq. 0) go to 9
- if (line(ic:ic) .eq. '/') then
- termrpt = .true.
- termsym = line(ib-2:ib-1)
-c
-c Process the line as if there were no "R"
-c
- go to 10
- end if
-8 continue
-c
-c +++ 060812
-c If here, all chars after "R" symbol are blanks, so process the line normally,
-c but only IF next line is not the M-Tx line " /"
-c
- read(10,'(a)')templine
- if (templine(1:2) .ne. ' /') then
- backspace(10) ! and flow out
- else
-c
-c We have the M-Tx case where one line ends with R? and next is " /". Add / to the line,
-c and proceed as above
-c
- line = line(1:ib)//'/'
- lenline = lenline+2
- termrpt = .true.
- termsym = line(ib-2:ib-1)
- go to 10
- end if
-c +++ 060812
-c
- else if (ia .eq. 1) then
- idxq = ntindex(line,'"')
- if (idxq.gt.idxa .and. idxq.lt.ib) then
-c
-c Quote is between P and next blank. Find 2nd quote, starting at the blank.
-c
- idxq2 = ib-1+ntindex(line,'"')
- if (idxq.eq.0 .or. line(idxq2+1:idxq2+1).ne.' ') then
- print*
- print*,'Error copying P with quotes, idxq2:',idxq2
- print*,line(1:60)
- stop 1
- end if
- ib = idxq2+1
- end if
-c
-c Do not transfer P into parts.
-c
- go to 12
- else if (ia .eq. 9) then
-c
-c Start Saving a macro. After leaving here, a symbol will be sent to all parts,
-c If all on this line, set ib to end and exit normally.
-c
- ndxm = index(line(ib+1:128),'M')
- if (ndxm.gt.0 .and. line(ib+ndxm-1:ib+ndxm-1).eq.' ') then
-c
-c Macro ends on this line
-c
- ib = ib+ndxm+1
- else
-c
-c Save leading part of current line
-c
- lenhold = idxa-1
- if (lenhold .gt. 0) holdln = line(1:lenhold)
-c
-c Transfer rest of line
-c
- call allparts(line(idxa:128),129-idxa)
-c
-c Read next line
-c
-20 read(10,'(a)')line
-c
-c Check for comment, transfer and loop if so
-c
-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,goto999)
- go to 23
- end if
-c
-c Look for terminal ' M'
-c
- if (line(1:1) .eq. 'M') then
- ndxm = 1
- else
- ndxm = index(line,' M')
- if (ndxm .gt. 0) ndxm = ndxm+1
- end if
- if (ndxm .gt. 0) then
-c
-c Set parameters, exit normally (but later check for leading part of 1st line
-c
- idxa = 1
- ib = ndxm+1
- else
-c
-c No "M", transfer entire line, loop
-c
- call allparts(line,128)
- go to 20
- end if
- end if
- else if (ia .eq. 10) then
-c
-c Do not transfer MIDI command into parts
-c
- go to 12
- else if (ia .eq. 5) then
-c
-c First check for "AS", but S may come after other "A" options
-c
- idxS = index(line(idxa+1:ib),'S')
- if (idxS .gt. 0) then
-c
-c Get rid of the string. First check if that's all there is in A.
-c
- if (ib-idxa .eq. nv+2) go to 12
- line = line(1:idxa+idxS-1)//line(idxa+idxS+nv+1:ib)
- end if
-c
-c Check for user-defined part file name. Must start in column 1 and have
-c AN[n]"userfilename".
-c idxa is position of "A"
-c ib is position of the next blank after "A"
-c Don't allow any blanks in user
-c
- if (line(idxa+1:idxa+1) .ne. 'N') go to 9 ! bail out
- if (idxa .ne. 1) then
- print*
- print*,
- * 'You entered "AN..." somewhere beyond first column; stopping.'
- stop 1
- end if
-c
-c pmxa already checked for valid one- or 2-digit number, so get it
-c
- if (line(4:4) .eq. '"') then
-c
-c Single digit instrument number
-c
- read(line(3:3),'(i1)')iudpfn
- idxstartname = 5
- else
- read(line(3:4),'(i2)')iudpfn
- idxstartname = 6
- end if
- ludpfn(iudpfn) = index(line(idxstartname:128),'"')-1
- if (ludpfn(iudpfn) .lt. 0) then
- print*
- print*,'User-defined part file name must be in quotes'
- stop 1
- end if
- idxendname = idxstartname+ludpfn(iudpfn)-1
- udpfnq(iudpfn) = line(idxstartname:idxendname)
-c
-c Get a new line!
-c
- go to 4
- else if (ia .eq. 8) then
-c
-c Key change/transposition.
-c If not instrument specific, copy to all parts
-c
- if (line(idxa+1:idxa+1).ne.'i') go to 9
-c
-c Instrument-wise key/transposition(s): Ki[nn][+/-][dd}[+/-][dd]...
-c
- ibb = idxa+2 ! Starts on digit after 'i'
-40 continue
- read(line(ibb:ibb),'(i1)')iiinst ! 1st digit of iinst
- itemp = (index('01234567890',line(ibb+1:ibb+1)))
- if (itemp.gt.0) then
- ibb = ibb+1
- iiinst = 10*iiinst+itemp-1
- end if
- ibb = ibb+1 ! now at first +/-. Need end of 2nd number
- itemp = index(line(ibb+1:ib),'i') ! Rel pos'n of next 'i' or 0
- if (itemp .gt. 0) then
- iend = ibb+itemp-1
- else
- iend = ib-1
- end if
- write(10+iorig(iiinst),'(a)')'Ki1'//line(ibb:iend)
- if (itemp .gt. 0) then
- ibb = iend+2
- go to 40
- end if
- go to 12 ! Remove K command from string, go to next ia
- end if
-9 continue
- call allparts(line(idxa:ib-1),ib-idxa)
-12 continue
-c
-c Remove the string from line
-c
- if (idxa .eq. 1) then
- line = line(ib:128)
- else
- line = line(1:idxa-1)//line(ib:128)
- end if
- lenline = lenstr(line,128)
-c
-c Loop if only blanks are left
-c
- if (lenline .eq. 0) go to 4
-c
-c Must check for multiple "I" commands, so go to just after start of ia loop
-c
- if (ia .eq. 10) go to 24
-c
-c Tack on front part from 1st line of saved macro
-c
- if (lenhold .gt. 0) then
- line = holdln(1:lenhold)//' '//line(1:lenline)
- lenhold = 0
- end if
- end if
-5 continue
- end if
-c
-c Now a special loop to deal with 'X'. If it was %[n]X..., will have been
-c copied into part [n] already. If no "B" or "P", remove. If "P", just
-c remove the "P" so pmxa/b will process. If "B". do nothing.
-c
-10 continue
- nchk = 1
-13 ntinx = nchk-1+ntindex(line(nchk:),'X')
- if (ntinx .gt. nchk-1) then
-c
-c There is a non-TeX 'X' at ntinx. Loop if neither 1st nor after a blank.
-c
- if (ntinx.gt.1) then
- if (line(ntinx-1:ntinx-1).ne.' ') then
-c
-c The X is not 1st char of PMX command. Advance starting point, loop.
-c
- nchk = ntinx+1
- go to 13
- end if
- end if
-c
-c We now know the X at ntinx starts a PMX command. Find next blank
-c
- ib = ntinx+index(line(ntinx+1:),' ')
-c
-c There must be a blank to right of "X", so ib>ntinx
-c
-c locp = nchk-1+index(line(nchk:ib),'P')
- locp = ntinx+index(line(ntinx+1:ib),'P')
-c
-c Did not need to use ntindex because we already know bounds of PMX command.
-c
-c if (locp .gt. nchk-1) then
- if (locp .gt. ntinx) then
-c
-c Strip out the 'P'
-c
- templine = line(1:locp-1)
- line = templine(1:locp-1)//line(locp+1:lenline)
- lenline = lenline-1
- ib = ib-1
- end if
- if (index(line(ntinx:ib),':').gt.0 .or.
- * index(line(ntinx:ib),'S').gt.0 .or.
- * index(line(ntinx:ib),'B').gt.0 .or. locp.gt.ntinx) then
-c
-c The X command is a shift, "Both", or "Part". Do not remove.
-c
- nchk = ib+1
- go to 13
- end if
-c
-c Remove the X command.
-c
- if (ntinx .eq. 1) then
- if (ib .lt. lenline) then
- line = line(ib+1:lenline)
- else
-c
-c line contains ONLY the "X" command, so get a new line
-c
- go to 4
- end if
- else
- templine = line(1:ntinx-1)
- if (ib .lt. lenline) then
- line = templine(1:ntinx-1)//line(ib+1:lenline)
- else
- line = templine(1:ntinx-1)
- end if
- end if
-c
-c Recompute lenline
-c
- lenline = lenstr(line,128)
-c
-c Resume checking after location of removed command.
-c
- nchk = ntinx
- go to 13
- end if
-c
-c End of loop for X-checks
-c
- oneof2 = ntindex(line,'//') .gt. 0
- if (termrpt .and. botv(iv) .and. frstln .and.
- * line(lenline:lenline).eq.'/') then
-c
-c Must add a terminal repeat before the slash
-c
- if (oneof2) lenline = lenline-1
- if (lenline.gt.1) write(10+iorig(iinst),'(a)')line(1:lenline-1)
- if (.not. oneof2) then
- line = termsym//' /'
- lenline = 4
- else
- line = termsym//' //'
- lenline = 5
- end if
- end if
- if (termrpt .and. frstln .and. line(lenline:lenline).eq.'/' .and.
- * iv.eq.nvnow) termrpt = .false.
- write(10+iorig(iinst),'(a)')line(1:lenline)
- if (oneof2) then
- frstln = .false.
- else if (.not.frstln) then
- frstln = .true.
- end if
-c if (ntindex(line,'/').gt.0 .and. index(line,'//').eq.0) then
- if (ntindex(line,'/').gt.0 .and. ntindex(line,'//').eq.0) then
- iv = 1+mod(iv,nvnow)
- iinst = instnum(iv)
- end if
- go to 4
-999 continue
- close(10)
-c
-c In the mbrest checks, must run through ALL noinst files (not just noinow)
-c
- do 11 iinst = 1 , noinst
-ccc+++
-cc
-cc Temporarily transfer entire scratch file to real file
-cc
-c rewind(10+iinst)
-c open(40,file='s2pout'//char(48+iinst)//'.pmx')
-c do 50 m = 1 , 10000
-c read(10+iinst,'(a)',end=51)line
-c lenline = lenstr(line,128)
-c if (lenline .ge. 1) then
-c write(40,'(a)')line(1:lenline)
-c else
-c write(40,'(a)')' '
-c end if
-c50 continue
-c51 continue
-c close(40)
-ccc+++
- if (nvi(iinst) .eq. 1) then
- call mbrests(iinst,jobname,ljob,ludpfn(iinst),udpfnq(iinst))
- else
-c
-c Send a signal with ljob to bypass most mbrest processing
-c
- call mbrests(iinst,jobname,-ljob,ludpfn(iinst),udpfnq(iinst))
- end if
-11 continue
- end
- function lenstr(string,n)
- character*(*) string
- do 1 lenstr = n , 1 , -1
- if (string(lenstr:lenstr) .ne. ' ') return
-1 continue
- lenstr = 0
- return
- end
- subroutine allparts(string,n)
- parameter (noimax=24)
- character*(*) string
- common /all/ noinow,iorig(noimax),noinst,insetup,replacing,
- * instnum(noimax),botv(noimax),nvi(noimax),nsyst,nvnow
- logical insetup,replacing,botv
- len = lenstr(string,n)
- if (len .eq. 0) then
- len = 1
- string = ' '
- end if
- do 1 iinst = 1 , noinow
- write(10+iorig(iinst),'(a)')string(1:len)
-1 continue
- return
- end
- subroutine mbrests(iv,jobname,ljob,ludpfn,udpfnq)
- character*128 line(50),line1,udpfnq
- character*80 sym
- character*12 jobname
- character*3 wbrsym(2)
- character*2 partq
- character*1 sq
- logical wbrest,alldone,rpfirst,newmtr,type4
- type4 = .false.
- sq = char(92)
- alldone = .false.
- rewind(10+iv)
- if (iv .lt. 10) then
- partq(1:1) = char(48+iv)
- lpart = 1
- else
- lpart = 2
- if (iv .lt. 20) then
- partq = '1'//char(38+iv)
- else
- partq = '2'//char(28+iv)
- end if
- end if
-c 130327
-c open(40,file=jobname(1:abs(ljob))//partq(1:lpart)//'.pmx')
- if (ludpfn .eq. 0) then
- open(40,file=jobname(1:abs(ljob))//partq(1:lpart)//'.pmx')
- else
- open(40,file=udpfnq(1:ludpfn)//'.pmx')
- end if
- do 10 i = 1 , 10000
- read(10+iv,'(a)')line(1)
- if (line(1)(1:1).eq.'%' .or. line(1)(1:3).eq.'---'
- * .or. type4) then
- len = lenstr(line(1),128)
- if (len .gt. 0) then
- write(40,'(a)')line(1)(1:len)
- else
- write(40,'(a)')' '
- end if
- if (line(1)(1:3).eq.'---') type4 = .not.type4
- else
- go to 11
- end if
-10 continue
- print*,'You should not be here in scor2prt. Call Dr. Don'
- stop
-11 continue
-c
-c Finished reading opening type4 TeX and comments. Next line to be read
-c will contain the first of the input numbers
-c
- call dosetup(iv,line(1),mtrnum,mtrden)
- do 1 i = 1 , 10000
-13 read(10+iv,'(a)',end=999)line(1)
-7 len = lenstr(line(1),128)
-c
-c Pass-through (and copy into part file) if instrumnet has >1 voice.
-c
- if (ljob .lt. 0) go to 2
- if (index('TtTiTch+h-h l ',line(1)(1:2)) .gt. 0) then
-c
-c Traps titles, instruments, composers, headers, lower strings. Read 2 lines.
-c
- write(40,'(a)')line(1)(1:len)
- read(10+iv,'(a)')line(1)
- len = lenstr(line(1),128)
- go to 2
- end if
- if (i.eq.1 .or. (i.gt.5.and.line(1)(1:1).eq.'m')) then
-c
-c Either just starting, or a new meter is defined.
-c NOTE! The above test may be bogus.
-c
- if (line(1)(1:1) .eq. '%') then
- write(40,'(a)')line(1)(1:len)
- go to 13
- end if
- if (i .ne. 1) then
-c
-c New meter. Check for slashes (new meter change syntax)
-c
- idxs = index(line(1),'/')
- idxb = index(line(1),' ')
- newmtr = idxs.gt.0 .and. (idxb.eq.0 .or. idxs.lt.idxb)
- if (.not.newmtr) then
-c
-c Old way, no slashes, uses 'o' for lonesome '1'
-c
- icden = 3
- if (line(1)(2:2) .eq. 'o') then
- mtrnum = 1
- else
- mtrnum = ichar(line(1)(2:2))-48
- if (mtrnum .eq. 1) then
- icden = 4
- mtrnum = 10+ichar(line(1)(3:3))-48
- end if
- end if
- mtrden = ichar(line(1)(icden:icden))-48
- else
-c
-c New way with slashes: idxs is index of 1st slash!
-c
- read(line(1)(2:idxs-1),'(i'//char(48+idxs-2)//')')mtrnum
- idxb = index(line(1)(idxs+1:),'/')
- read(line(1)(idxs+1:idxs+idxb-1),
- * '(i'//char(48+idxb-1)//')')mtrden
- end if
- end if
- lenbeat = ifnodur(mtrden,'x')
- lenmult = 1
- if (mtrden .eq. 2) then
- lenbeat = 16
- lenmult = 2
- end if
- lenbar = lenmult*mtrnum*lenbeat
- call fwbrsym(lenbar,nwbrs,wbrsym,lwbrs)
- end if
-c
-c Finished setting up meter stuff and defining whole-bar rest symbols
-c
- ip1 = 0
- line1 = line(1)
- do 3 iw = 0 , nwbrs
- if (iw .gt. 0) then
- idx = ntindex(line1,wbrsym(iw)(1:lwbrs))
- if (idx .gt. 0) then
-c
-c Check for blank or shifted rest, discount it if it's there
-c
- if (line1(idx+lwbrs:idx+lwbrs).ne.' ') idx = 0
- end if
- else
- idx = ntindex(line1,'rp')
-c
-c Check for raised rest
-c
- if (idx.gt.0) then
- if (line1(idx+2:idx+2).ne.' ') idx = 0
- end if
- end if
- if (idx .gt. 0) then
- if (ip1 .eq. 0) then
- ip1 = idx
- else
- ip1 = min(ip1,idx) ! Maybe allows e.g. r0 rp ...
- end if
- end if
-3 continue
- if (i.lt.5 .or. line(1)(1:1).eq.'%' .or. line(1)(1:2).eq.sq//sq
- * .or. ip1.eq.0) go to 2
-c
-c Switch to multibar rest search mode!!! Start forward in line(1)
-c
- rpfirst = line1(ip1:ip1+1) .eq. 'rp'
- iline = 1
- nmbr = 1
- if (rpfirst) then
- lwbrsx = 2
- else
- lwbrsx = lwbrs
- end if
- ipe = ip1+lwbrsx-1 ! ip at end of 1st wbrsym
-4 if (ipe .eq. len) then
-c
-c Need a new line
-c
- iline = iline+1
-6 read(10+iv,'(a)',end=998)line(iline)
- len = lenstr(line(iline),128)
- if (line(iline)(1:1).eq.'%' ) then
- write(40,'(a)')'% Following comment has been moved forward'
- write(40,'(a)')line(iline)(1:len)
- go to 6
- end if
- ipe = 0
- go to 4
-998 continue
-c
-c No more input left
-c
- print*,'All done!'
- alldone = .true.
- ipe = 0
- iline = iline-1
- len = lenstr(line(iline),128)
- go to 4
- else
- if (alldone) then
- sym(1:1) = ' '
- else
-c
-c ipe<len here, so it's ok to get a symbol
-c
- call nextsym(line(iline),len,ipe,ipenew,sym,lsym)
- end if
-c
-c Check for end of block or bar line symbol
-c
- if (index('/|',sym(1:1)) .gt. 0) then
- ipe = ipenew
- go to 4
- else
- wbrest = .false.
- if (alldone) go to 12
- do 5 iw = 1 , nwbrs
- wbrest = wbrest .or. sym(1:lsym).eq.wbrsym(iw)(1:lwbrs)
-5 continue
- wbrest = wbrest .or. (sym(1:lsym).eq.'r'.and.lwbrs.eq.2)
- * .or. (sym(1:lsym).eq.'rd'.and.lwbrs.eq.3)
- * .or. (sym(1:lsym).eq.'rp')
- * .or. (sym(1:lsym).eq.'r' .and. rpfirst)
-12 if (wbrest) then
- ipe = ipenew
- nmbr = nmbr+1
- go to 4
- else
-c
-c AHA! Failed prev. test, so last symbol was *not* mbr.
-c It must be saved, and its starting position is ipenew-lsym+1
-c
- if (nmbr .gt. 1) then
-c
-c Write stuff up to start of mbr
-c
- if (ip1 .gt. 1) write(40,'(a)')line(1)(1:ip1-1)
-c
-c Insert mbr symbol. Always end with a slash just in case next sym must be
-c at start of block. May think this causes undefined octaves, but
-c probably not since it's a single voice.
-c
- ndig = int(alog10(nmbr+.01))+1
- print*,'Inserting rm, iv,nmbr:',iv,nmbr
- write(40,'(a2,i'//char(48+ndig)//',a2)')'rm',nmbr,' /'
- if (alldone) go to 999
- ipc = ipenew-lsym+1
- line(1) = line(iline)(ipc:len)
- else
-c
-c Write old stuff up to end of original lonesome wbr, save the rest.
-c 4 cases: (wbr /) , (wbr line-end) , (wbr followed by other non-/ symbols) ,
-c alldone.
-c In 1st 2 will have gotten some other lines, so write all up to one b4 last
-c non-comment line; then revert to normal mode on that. In 3rd case must
-c split line.
-c
- if (alldone) then
- write(40,'(a)')line(1)(1:len)
- go to 999
- else if (iline .gt. 1) then
- do 9 il = 1 , iline-1
- len = lenstr(line(il),128)
- write(40,'(a)')line(il)(1:len)
-9 continue
- line(1) = line(iline)
- else
-c
-c Since iline = 1 the wbr is not the last sym, so must split
-c
- write(40,'(a)')line(1)(1:ip1+lwbrsx-1)
- line(1) = line(1)(ip1+lwbrsx+1:len)
- end if
- end if
-c
-c Exit multibar mode
-c
- go to 7
- end if
- end if
- end if
-2 continue
- if (len .gt. 0) then
- write(40,'(a)')line(1)(1:len)
- else
- write(40,'(a)')' '
- end if
-1 continue
-999 continue
- close(10+iv)
- close(40)
- return
- end
- function ifnodur(idur,dotq)
- character*1 dotq
- if (idur .eq. 6) then
- ifnodur=1
- else if (idur .eq. 3) then
- ifnodur=2
- else if (idur.eq.1 .or. idur.eq.16) then
- ifnodur=4
- else if (idur .eq. 8) then
- ifnodur=8
- else if (idur .eq. 4) then
- ifnodur=16
- else if (idur .eq. 2) then
- ifnodur=32
- else if (idur .eq. 0) then
- ifnodur=64
- else
- print*,'You entered an invalid note-length value'
- stop
- end if
- if (dotq .eq. 'd') ifnodur = ifnodur*3/2
- return
- end
- subroutine fwbrsym(lenbar,nwbrs,wbrsym,lwbrs)
- character*3 wbrsym(2)
- nwbrs = 1
- lwbrs = 2
- if (lenbar .eq. 16) then
- wbrsym(1) = 'r4'
- else if (lenbar .eq. 32) then
- wbrsym(1) = 'r2'
- else if (lenbar .eq. 64) then
- wbrsym(1) = 'r0'
- else if (lenbar .eq. 8) then
- wbrsym(1) = 'r8'
- else if (lenbar .eq. 128) then
- wbrsym(1) = 'r9'
- else
- nwbrs = 2
- lwbrs = 3
- if (lenbar .eq. 24) then
- wbrsym(1) = 'rd4'
- wbrsym(2) = 'r4d'
- else if (lenbar .eq. 48) then
- wbrsym(1) = 'rd2'
- wbrsym(2) = 'r2d'
- else if (lenbar .eq. 96) then
- wbrsym(1) = 'rd0'
- wbrsym(2) = 'r0d'
- else
- write(*,'(33H Any whole-bar rests of duration ,i3,
- * 26H/64 will not be recognized)') lenbar
- end if
- end if
- return
- end
- subroutine nextsym(line,len,ipeold,ipenew,sym,lsym)
-c
-c Know its the last symbol if on return ipenew = len!. So should never
-c be called when ipstart=len.
-c
- character*128 line
- character*80 sym
- if (ipeold .ge. len) then
- print*,'Called nextsym with ipstart>=len '
- print*,'Send files to Dr. Don at dsimons@logicon.com'
- stop
- end if
- do 1 ip = ipeold+1 , len
- if (line(ip:ip) .ne. ' ') then
-c
-c symbol starts here (ip). We're committed to exit the loop.
-c
- if (ip .lt. len) then
- do 2 iip = ip+1 , len
- if (line(iip:iip) .ne. ' ') go to 2
-c
-c iip is the space after the symbol
-c
- ipenew = iip-1
- lsym = ipenew-ip+1
- sym = line(ip:ipenew)
- return
-2 continue
-c
-c Have len>=2 and ends on len
-c
- ipenew = len
- lsym = ipenew-ip+1
- sym = line(ip:ipenew)
- return
- else
-c
-c ip = len
-c
- ipenew = len
- lsym = 1
- sym = line(ip:ip)
- return
- end if
- end if
-1 continue
- print*,'Error #3. Send files to Dr. Don at dsimons@logicon.com'
- end
- function ntindex(line,s2q)
-c
-c Returns index(line,s2q) if NOT in TeX string, 0 otherwise
-c
- character*(*) s2q
- character*128 line,tline
- logical intex
-c
-c print*,'Starting ntindex. s2q:',s2q,', line(1:79) is below'
-c print*,line(1:79)
-c
-c
-c Use a temporary string to store the input and test, so can zap D"..."
-c
- tline = line
- ndxs2 = index(tline,s2q)
-c
-c Return point below for rechecks after zapping D" "
-c
-2 continue
- ndxbs = index(tline,char(92))
- if (ndxbs .gt. 0) then
-c
-c Special check in case \ is inside D"..."
-c
- ndxDq1 = index(tline,'D"')
-c
-c If the following test fails, flow out of if block; else loop up to 2.
-c
- if (ndxDq1 .gt. 0) then
-c
-c Find end of D"..."
-c
- ndxDq2 = ndxDq1+1+index(tline(ndxDq1+2:128),'"')
- if (ndxDq2 .eq. ndxDq1+1) then
- print*,'Something is really wierd here'
- stop
- end if
- tline = tline(1:ndxDq1-1)
- do 3 ic = ndxDq1 , ndxDq2
- tline = tline(1:ic-1)//' '
-3 continue
- tline = tline(1:ndxDq2)//line(ndxDq2+1:128)
- go to 2
- end if
- end if
- if (ndxbs.eq.0 .or. ndxs2.lt.ndxbs) then
- ntindex = ndxs2
-c print*,'No bs, or char is left of 1st bs, ntindex:',ntindex
- else
-c
-c There are both bs and s2q, and bs is to the left of sq2. So check bs's to
-c right of first: End is '\ ', start is ' \'
-c
- len = lenstr(tline,128)
- intex = .true.
-c print*,'intex+>',intex
- do 1 ic = ndxbs+1 , len
- if (ic .eq. ndxs2) then
- if (intex) then
- ntindex = 0
- ndxs2 = index(tline(ic+1:len),s2q)+ic
-c print*,'ndxs2 =>',ndxs2
- else
- ntindex = ndxs2
- return
- end if
-c print*,'Internal exit, intex, ntindex:',intex,ntindex
- else if (intex .and. tline(ic+1:ic+2).eq.char(92)//' ') then
- intex = .false.
-c print*,'intex+>',intex
- else if (.not.intex .and. tline(ic+1:ic+2).eq.' '//char(92))
- * then
- intex = .true.
-c print*,'intex+>',intex
- end if
-1 continue
-c print*,'Out end of loop 1'
- end if
-c print*,'Exiting ntindex at the end???'
- return
- end
- subroutine getchar(line,iccount,charq)
-c
-c Gets the next character out of line*128. If pointer iccount=128 on entry,
-c then reads in a new line. Resets iccount to position of the new character.
-c
- character*1 charq
- character*128 line
- if (iccount .eq. 128) then
- read(10,'(a)')line
- iccount = 0
- end if
- iccount = iccount+1
- charq = line(iccount:iccount)
- return
- end
- function readin(line,iccount,iread)
- parameter (noimax=24)
- common /all/ noinow,iorig(noimax),noinst,insetup,replacing,
- * instnum(noimax),botv(noimax),nvi(noimax),nsyst,nvnow
- 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.
-c
-c iread controls copying of values into scratch files for parts, but only
-c if not replacing.
-c
-c iread input value written
-c -1 nvi nothing (only used when noinst<0 initially)
-c 0 various value read
-c 1 nv -1 , replace later with nvi(i)
-c 2 noinst 1
-c 3 np -2 , replace later with (nsyst-1)/12+1
-c 4 musicsize 20
-c 5 fracondent 0.05
-c
- character*128 line
- character*1 durq
-4 if (iccount .eq. 128) then
- read(10,'(a)')line
- if (replacing) replacing = .false.
- call chkcom(line,goto999)
- iccount = 0
- end if
- iccount = iccount+1
-c
-c Find next non-blank or end of line
-c
- do 2 iccount = iccount , 127
- if (line(iccount:iccount) .ne. ' ') go to 3
-2 continue
-c
-c If here, need to get a new line
-c
- iccount = 128
- go to 4
-3 continue
-c
-c iccount now points to start of number to read
-c
- i1 = iccount
-5 call getchar(line,iccount,durq)
-c
-c Remember that getchar first increments iccount, *then* reads a character.
-c
- if (index('0123456789.-',durq) .gt. 0) go to 5
- i2 = iccount-1
- if (i2 .lt. i1) then
- print*,'Found "'//durq//'" instead of number'
- stop 1
- end if
- icf = i2-i1+49
- read(line(i1:i2),'(f'//char(icf)//'.0)')readin
- if (.not.replacing) then
- if (iread .eq. 0) then
- call allparts(line(i1:i2),i2-i1+1)
- else if (iread .eq. 1) then
- call allparts('-999',4)
- else if (iread .eq. 2) then
- call allparts('1',1)
- else if (iread .eq. 3) then
- call allparts('-998',4)
- else if (iread .eq. 4) then
- call allparts('20',2)
- else if (iread .eq. 5) then
- call allparts('.05',3)
- else if (iread .ne. -1) then
- print*,'Error with iread in readin'
- stop
- end if
- end if
- return
- end
- 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,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
-c
- if (line(2:2) .eq. '%') then
- if (.not. insetup) then
-c
-c Suck up a line, then flow out of "if" block to get another and loop
-c
- read(10,'(a)')line
-
-c++VV
-c
-c UNLESS (a) it has a score-only "M" and changes # of inst's.
-c
- if (index(line,'M') .gt. 0) then
- idxL = index(line,'L')
- idxM = index(line,'M')
- idxn = index(line,'n')
- idxb = index(line,' ')
- if (idxL.lt.idxM .and. idxM.lt.idxn .and.
- * (idxb.eq.0 .or. idxn.lt.idxb)) then
- noinow = ichar(line(idxn+1:idxn+1))-48
- clefpend = .true.
-c
-c Next noinow digits are original inst. #'s of new inst. set. Next noinow
-c char's after that are clefs
-c
- nvnow = 0
- do 24 j = 1 , noinow
- iorig(j) = ichar(line(idxn+1+j:idxn+1+j))-48
- iposc0 = idxn+1+noinow
- do 25 k = 1 , nvi(iorig(j))
- nvnow = nvnow+1
-c clefq(nvnow) = line(iposc0+nvnow:iposc0+nvnow)
- instnum(nvnow) = j
- botv(nvnow) = k.eq.1 .and. j.ne.1
-25 continue
-24 continue
- end if
- end if
-c
-c or if it's "h" or "l", need to suck up one more line
-c
- if ((line(1:1).eq.'h'.and.index('+- ',line(2:2)).gt.0) .or.
-c
-c 4/29/00 check for T string also
-c
- * line(1:1).eq.'T' .or.
- * line(1:2).eq.'l ') read(10,'(a)')line
- else
-c
-c In setup mode. Set flag, flow out and do use following line
-c
- replacing = .true.
- end if
- else if (line(2:2) .eq. '!') then
-c
-c Copy to all parts
-c
- call allparts(line(3:128),125)
- else
-c
-c Get value of hex integer 1,2,...,9,a,b,c in 2nd position, zero otherwise
-cc Get value of extended hex integer 1,2,...,9,a,b,c,...,o in 2nd position, zero otherwise
-c
- ivq = index('123456789abcdefghijklmno',line(2:2))
-c
-c Only treat as part-specific pmx line if number .le. noinst
-c
- if (ivq.lt.1 .or. ivq.gt.noinst) then
-c
-c Simple comment.
-c
- call allparts(line,128)
- else
-c
-c Instrument comment, copy only to part
-c
- lenline = lenstr(line,128)
- if (lenline .gt. 2) then
- write(10+ivq,'(a)')line(3:lenline)
- else
-c
-c Transferring blank line
-c
- write(10+ivq,'(a)')' '
- end if
- end if
- end if
- read(10,'(a)',end=2)line
- call zapbl(line,128)
- go to 1
-2 continue
- goto999 = .true.
- return
- end
- subroutine dosetup(iv,line,mtrnum,mtrden)
- parameter (noimax=24)
-c
-c Transfers setup data from scratch file to real one for one instrument
-c Data may be mixed with comments, but on entry 1st item is a number.
-c Write a comment when encountered, as it comes.
-c Write numbers one per line.
-c Three input data require special handling:
-c If not already replaced, i.e., if negative, then
-c iset(1) (nv) will be replaced with nvi(i)
-c iset(9) (npages) will be replaced with (nsyst-1)/12+1
-c iset(2), if negative, will be followed by extra numbers to be transf.
-c
- common /all/ noinow,iorig(noimax),noinst,insetup,replacing,
- * instnum(noimax),botv(noimax),nvi(noimax),nsyst,nvnow
- character*128 line
- logical insetup,replacing,botv
- iccount = 0
- do 1 iset = 1 , 12
- call partnum(iv,iccount,line,xdata)
- if (iset .eq. 2) then
- if (xdata .gt. 0) then
- write(40,'(i5)')int(xdata+.1)
- else
- noi = -xdata+.1
- write(40,'(i5)')noi
- do 2 ioi = 1 , noi
- call partnum(iv,iccount,line,xdata)
- write(40,'(i5)')int(xdata+.1)
-2 continue
- end if
-c else if (iset.ne.8 .and. xdata.lt.0) then
- else if (iset.ne.8 .and. iset.ne.5 .and. xdata.lt.0) then
-c
-c Must be either nv or npages
-c
- if (int(-xdata+.1) .eq. 999) then
-c
-c It's nv
-c
- write(40,'(i5)')nvi(iv)
- else
-c
-c npages must be computed
-c
- write(40,'(i5)')(nsyst-1)/12+1
- end if
- else if (iset.ne.7 .and. iset.ne.12) then
-c
-c write integer
-c
- write(40,'(i5)')nint(xdata)
- else
-c
-c write floating number
-c
- write(40,'(f5.2)')xdata
- end if
- if (iset .eq. 3) then
- mtrnum = nint(xdata)
- else if (iset .eq. 4) then
- mtrden = nint(xdata)
- end if
-1 continue
- return
- end
- subroutine partnum(iv,iccount,line,xdata)
-c
-c Simplified number parsing. Only looks for comment lines and numbers.
-c
- character*128 line
- character*1 durq
-2 if (iccount .eq. 128) then
- read(10+iv,'(a)')line
- if (line(1:1) .eq. '%') then
- len = lenstr(line,128)
- write(40,'(a)')line(1:len)
- go to 2
- end if
- iccount = 0
- end if
- iccount = iccount+1
-c
-c Find next non-blank or end of line
-c
- do 4 iccount = iccount , 127
- if (line(iccount:iccount) .ne. ' ') go to 3
-4 continue
-c
-c If here, iccount=128 and need to get a new line
-c
- go to 2
-3 continue
-c
-c iccount now points to start of number to read
-c
- i1 = iccount
-5 call getchar(line,iccount,durq)
-c
-c Remember that getchar first increments iccount, *then* reads a character.
-c
- if (index('0123456789.-',durq) .gt. 0) go to 5
- i2 = iccount-1
- if (i2 .lt. i1) then
- print*,'Found "'//durq//'" instead of number'
- stop 1
- end if
- icf = i2-i1+49
- read(line(i1:i2),'(f'//char(icf)//'.0)')xdata
- return
- end
- block data
- parameter (noimax=24)
- common /all/ noinow,iorig(noimax),noinst,insetup,replacing,
- * instnum(noimax),botv(noimax),nvi(noimax),nsyst,nvnow
- logical insetup,replacing,botv
- data nvi /noimax*1/, noinst,noinow /2*noimax/
- data botv /noimax*.false./
- end
- subroutine zapbl(string,len)
- character*(*) string
- do 1 i = 1 , len
- if (string(i:i) .eq. ' ')go to 1
- if (i .eq. 1) return
- go to 2
-1 continue
-c
-c If line is all blank, leave it alone
-c
- return
-2 continue
- string = string(i:len)
- return
- end
- subroutine OddQuotesBefore(lineq,indx,yesodd)
-c
-c This counts number of double quotes in lineq up to position indx-1, then
-c sets yesodd according to whether number is odd or even
-c
- logical yesodd
- character*(*) lineq
- numdqs = 0
- do 1 i = 1 , indx-1
- if (lineq(i:i) .eq. '"') numdqs = numdqs+1
-1 continue
- yesodd = mod(numdqs,2) .eq. 1
- return
- end
-
-
-
-
-
diff --git a/Build/source/utils/pmx/pmx-src/tests/barsant.mid b/Build/source/utils/pmx/pmx-src/tests/barsant.mid
deleted file mode 100644
index fd58f2f8db0..00000000000
--- a/Build/source/utils/pmx/pmx-src/tests/barsant.mid
+++ /dev/null
Binary files differ
diff --git a/Build/source/utils/pmx/pmx-src/tests/barsant.pml b/Build/source/utils/pmx/pmx-src/tests/barsant.pml
deleted file mode 100644
index 1be48b99ea1..00000000000
--- a/Build/source/utils/pmx/pmx-src/tests/barsant.pml
+++ /dev/null
@@ -1,24 +0,0 @@
-This is PMX, Version 2.94 , 17 Mar 20
-Opening barsant.pmx
- Starting first PMX pass
-
- Bar 1 Bar 2 Bar 3 Bar 4 Bar 5 Bar 6 Bar 7 Bar 8 Bar 9 Bar 10 Bar 11
- Bar 12 Bar 13 Bar 14 Bar 15 Bar 16 Bar 17
- Done with first pass
-
- nlbuf: 51
-Starting second PMX pass
-
-WARNING
- In a title block, you have specified instrument and/or
- composer but no title for the piece.
-
- Bar 1 Bar 2 Bar 3 Bar 4 Bar 5 Bar 6 Bar 7 Bar 8 Bar 9 Bar 10 Bar 11
- Bar 12 Bar 13 Bar 14 Bar 15 Bar 16 Bar 17
-Writing ./barsant.tex
- Done with second PMX pass. Now run TeX
-
-Writing barsant.mid
-MIDI instrument 0 is 74
-MIDI instrument 1 is 6
- Bytes used: 2126 807 15
diff --git a/Build/source/utils/pmx/pmx-src/tests/barsant.pmx b/Build/source/utils/pmx/pmx-src/tests/barsant.pmx
deleted file mode 100644
index 2dd564a1436..00000000000
--- a/Build/source/utils/pmx/pmx-src/tests/barsant.pmx
+++ /dev/null
@@ -1,69 +0,0 @@
-%----------------%
-%
-% barsant.pmx Revised 1 April 2013
-%
-%----------------%
-%
-% nv,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig,
- 2 2 4 4 0 6 0 0
-%
-% npages,nsyst,musicsize,fracindent
- 1 7 20 0.07
-Basso
-Recorder
-bt
-./
-Abpl
-Iiharet60
-Tc
-Francesco Barsanti (1690-1772)
-%%
-AeI1.1
-W.5
-%2S9
-% Bar 1-4
-h
-Adagio
-c43 r8 f 65 f 42 e 6 r c | [ b 6 c ] d 7 b 65 c4 r8 c 65 s |
- \global\figdrop5\Figu{-1}{\fsmsh}\Figu{0}{4}\Figu{4}{2}\
- c s bf4 65 x1842 a8 65 s a s #42 g 6 r g 65 s |
- g s #42 f4 \global\figdrop8\ 65 x1842 \Figu06\ e8 d 54 dd1+ 3 c3 b8 6 g 7 /
-g85 Gf ed1 d3 [ c3 a8+ gd1x5n s+1 f e d c s+1 ] Gc b8 s c s r e |
- [ d35 s c d s e op ] e s d e s f op [ f s e f s g ] g f e f
- Gf ed1 d3 c8 r ad1+ g3 |
- [ fs15 dd+ ] [ c3 \nbbbbl2\ bf1x3 s+2 a g ] s+2 Gfn [ e1 cd+ ] [ b3
- \nbbbbl2\ a1x3 g f ] Ge ds8 ot e r ed1 dn3 |
- [ cs15 ad+ ] [ g3 \nbbbbl2\ f1x3 s+2 e d s+2 ]
- Gcn b1 c8 g1+ g3 s f e f s f8 op r1 f ed d3 /
-% Bar 5-6
-[ c84 f- 7 ] g 4 g- 3 c ed1 f3 gd1 f3 ed1 d3 | cs4 5 r8 c 65 d4 r8 fd1 e3 /
-[ e65 g c e s e1 s ] d6 c b a g f e d dd8 ot c1 c4 r8 ed1 f3 |
- g85 gx3 s+1 fs g s+1 bf8 [ a3 s g fn e s ] [ f1 s d cs s d op ]
- d s e f s gs op /
-% Bar 7-8
-ds43 5 r8 d 65 e # ed1 fs3 gs8 e 7 | a4 r8 a 6 g4 7 r8 g 6 /
-a85 ax3n+0+.7 s+2 gs a s+2 c8 bd1 ot a3 g1 Gfs ed8 r1 b+ bd ot a6 s b s |
- c86x3 s+2 b a s+2 ax3 s+2 g f s+2 fx3 s+1 e f s+1 c+
- bx3 s+2 a g s+2 gx3 s+2 f e s+2 ex3nf+0+.7 s+2 ds e s+2 b+ /
-% Bar 9-10
-f43 7 r8 d 65 e4 gs- 65 | a r r gs+ 65 /
-a85x3 s+2 g f s+2 fx3 s+2 e d s+2 dx3nf+0+.7 s+2 cs d s+2 a+
- gs1 b d8 r1 d cd b3 s |
- [ c1 s a s bf s gs s ] a s fs s gn s e s
- [ fn s ds s e s cs s ] dn s f s e d s /
-% Bar 11-12
-[ a83 d- 7 ] e 4 e- #3 a ad1+ b3 c8 gs 65 | a4 # cs- 65 d8 dd1 e3 f8 d /
-c15 s+2 gs+ a s+1 d- Gc bd8 ot a1 a4 r8 ed1+ d3 |
- cs1 e g bf [ a3 cs e1 s ] e6 s d s cn bf a g f e s
- Ge fd1 e3 d8 ot r8 dd1 cn3 /
-% Bar 13-14
-g43 b- 65 [-1+1 c8 cd1 d3 ] ef8 b 6 | c4 -3 bf n42 af 6 an #6 /
-b14 d f a [ g3 b d1 s ] [+1 d6 s c b a g f e d ]
- Gd ed1 ot d3 c8 r1 d dd ot c6 s d s |
- ef1 c cd ot b6 s c s en1 c cd ot b6 s c s
- f1 c cd ot b6 s c s fs1 c cd ot b6 s c s /
-% Bar 15-end
-b82 6 gd1 a3 b8 g 7 c4 -3 r | r2 r8 f e s 6 d s 6 | [-1 c f 7 g 4 g- 3 ] c2 /
-g45 r1 af gd f3 ef1 bn+ s c s an s [ bf s g s af s fs s ] |
- g s e s f s d s [ ef s c s df s bn s ] c8 s a op g op f+ s |
- [ e s a- dd ot c1 ] c2 /
diff --git a/Build/source/utils/pmx/pmx-src/tests/barsant.tex b/Build/source/utils/pmx/pmx-src/tests/barsant.tex
deleted file mode 100644
index eaf97e45880..00000000000
--- a/Build/source/utils/pmx/pmx-src/tests/barsant.tex
+++ /dev/null
@@ -1,307 +0,0 @@
-%%%%%%%%%%%%%%%%%
-%
-% barsant.tex
-%
-%%%%%%%%%%%%%%%%
-\input musixtex
-\input pmx
-\def\fixdrop{\advance\sysno by 1\ifcase\sysno%
-\figdrop= 5 \figdtwo= 4 \or%
-\figdrop= 8 \figdtwo= 4 \or%
-\figdrop= 5 \figdtwo= 4 \or%
-\figdrop= 6 \figdtwo= 4 \or%
-\figdrop= 7 \figdtwo= 4 \or%
-\figdrop= 4 \figdtwo= 4 \or%
-\figdrop= 6 \figdtwo= 4 \fi}%
-\setmaxslurs{24}\setmaxinstruments{24}%
-\input musixps
-\normalmusicsize%
-\nopagenumbers
-\tracingstats=2\relax
-\hsize=524pt
-\vsize740pt
-\def\nbinstruments{2}
-\setstaffs11
-\setclef16
-\setname1{Basso}
-\setstaffs21
-\setclef20
-\setname2{Recorder}
-\generalsignature{ 0}%
-\generalmeter\meterC%
-\parindent 37pt
-\elemskip1pt\afterruleskip1.000pt\beforeruleskip0pt\relax
-\stafftopmarg0pt\staffbotmarg0pt\interstaff{7.9}\relax
-\readmod{barsant}
-\startmuflex\startpiece\addspace\afterruleskip%
-\bigaccid%
-\Nosluradjust\Notieadjust\nohalfties
-\global\parskip 0pt plus 12\Interligne minus 99\Interligne%
-\def\upstrut{\znotes&\zcharnote{\upamt}{~}\en}%
-\znotes&\zcharnote{16}{\titles{.2}{}{0}%
-{}{.2}{Francesco Barsanti (1690-1772)}{.1}}\en%
-% Bar count 1
-\fixdrop%
-\starteq%
-\pnotes{2.00}\qu{'C}&\zcharnote{16}{\bigfont\kern-30pt Adagio}%
-\ibl2{'e}{-2}\qb2g\en%
-\pnotes{1.82}&\ast{.10}\shlft8{\zcu{'f}}\nbbl2\qbp2e\en%
-\pnotes{1.27}\sk\ds&\tbbbl2\tbl2\qb2{'d}\ibbbl2e{-2}\rbbbl2\rbbl2\qb2c%
-\en%
-\pnotes{1.50}&\qb2{''a}\en%
-\pnotes{0.50}\Figu0{6}\Figu4{5}\cl{'F}&\en%
-\pnotes{1.08}&\isluru0{''a}\nbbbbl2\qb2{`g}\qb2f\qb2e\qb2d\tslur0d%
-\tbl2\qb2c\en%
-\pnotes{2.00}\ast{1.03}\Figu0{4}\Figu4{2}\ibl1{'F}{-1}\qb1F\Figu0{6}%
-\tbl1\qb1E\ds\cu C&\ast{1.03}\ibl2{'b}1\isluru0b\shlft8{\zcu c}\qb2b%
-\tslur0c\tbl2\qb2c\ds\cl e\en%
-% Bar count 2
-\xbar
-\pnotes{1.27}\Figu0{6}\ibu1{'B}1\qb1B\sk\sk\sk\tbu1\qb1C\sk\sk\sk\Figu0{%
-7}\ibu1C{-1}\qb1D\sk\sk\sk\Figu0{6}\Figu4{5}\tbu1\qb1B&\ibbbl2{'d}0%
-\isluru0d\qb2d\qb2c\tslur0d\qb2d\uppz e\tbl2\qb2e\ibbbl2e0\isluru0e\qb2e%
-\qb2d\tslur0e\qb2e\uppz f\tbl2\qb2f\ibbbl2f0\isluru0f\qb2f\qb2e\tslur0f%
-\qb2f\tbl2\qb2g\ibbbl2f0\qb2g\qb2f\qb2e\tbl2\qb2f\en%
-\pnotes{1.82}\ast{.83}\qu{'C}&\ast{.83}\ibbl2{'e}{-2}\shlft8{\zcu f}%
-\qbp2e\en%
-\pnotes{1.27}&\tbbbl2\tbbl2\qb2{'d}\en%
-\pnotes{2.00}\sk\ds&\tbl2\qb2{'c}\ds\en%
-\pnotes{1.82}\Figu0{6}\Figu4{5}\islurd0{'C}\cu C&\ibbl2{''a}{-2}\qbp2a%
-\en%
-\pnotes{1.27}&\tbbbl2\tbl2\qb2{'g}\en%
-% Bar count 3
-\znotes\roffset{-.4}{\tslur0{{'C}}}\en%
-\fixdrop%
-\alaligne
-\znotes\off{-\afterruleskip}\isd0{{'C}}{-.7}\off{\afterruleskip}\en%
-\pnotes{1.45}\global\figdrop5\Figu{-1}{\fsmsh}\Figu{0}{4}\Figu{4}{2}%
-\tslur0{'C}\cu C&\ibbl2{'g}9\bigsh f\qb2f\en%
-\pnotes{1.17}&\tbl2\qbp2{''d}\en%
-\pnotes{0.58}\Figu0{6}\Figu4{5}\bigfl{'B}\qu B&\en%
-\pnotes{1.05}&\ibbbl2{''b}{-3}\qb2c\en%
-\pnotes{0.87}&\ast{.34}\nbbbbl2\isluru0{''d}\fl b\xnum{0.87}c3\qb2b\qb2a%
-\tslur0b\tbl2\qb2{`g}\en%
-\pnotes{1.45}\Figu0{4}\Figu4{2}&\ast{1.24}\ibbl2{'f}9\shlft8{\bigna f\zcu%
- f}\qb2e\en%
-\pnotes{1.17}&\tbl2\qbp2{''c}\en%
-\pnotes{0.58}\Figu0{6}\Figu4{5}\islurd0{'A}\cu A&\en%
-\pnotes{1.05}&\ibbbl2{''a}{-3}\qb2b\en%
-\pnotes{0.87}&\nbbbbl2\xnum{0.87}{''b}3\qb2a\qb2{`g}\tbl2\qb2f\en%
-\pnotes{2.00}\ast{1.49}\Figu{-1}{\fsmsh}\Figu0{4}\Figu4{2}\ibu1{'A}{-1}%
-\tslur0A\qb1A\Figu0{6}\tbu1\qb1{`G}\ds&\ast{1.49}\ibl2{'d}1\shlft{13}{%
-\zcu e}\shake g\sh d\qb2d\tbl2\qb2e\ds\en%
-\pnotes{1.75}\Figu0{6}\Figu4{5}\islurd0G\cu G&\ibbl2{'e}{-2}\qbp2e\en%
-\pnotes{1.05}&\bigna{'d}\tbbbl2\tbl2\qb2d\en%
-% Bar count 4
-\xbar
-\pnotes{1.45}\Figu{-1}{\fsmsh}\Figu0{4}\Figu4{2}\tslur0G\cu G&%
-\ibbl2{'d}9\bigsh c\qb2c\en%
-\pnotes{1.17}&\tbl2\qbp2{''a}\en%
-\pnotes{0.58}\Figu0{6}\Figu4{5}\qu F&\en%
-\pnotes{1.05}&\ibbbl2{'f}{-3}\qb2g\en%
-\pnotes{0.87}&\nbbbbl2\isluru0{''a}\xnum{0.87}{`g}3\qb2f\qb2e\tslur0f%
-\tbl2\qb2d\en%
-\pnotes{1.45}\Figu0{4}\Figu4{2}&\ast{1.24}\ibbl2{'c}4\shlft8{\bigna c\zcu%
- c}\rbbl2\qb2b\en%
-\pnotes{1.00}\sk\global\figdrop8\Figu06\cu E&\qb2{'c}\en%
-\pnotes{1.45}&\tbbl2\tbl2\qb2{'g}\en%
-\pnotes{1.05}\Figu0{5}\Figu4{4}\ibu1{'A}3\qb1{`D}&\ibbbl2{'f}0\isluru0g%
-\qb2g\qb2f\qb2e\tslur0f\tbbbl2\tbbl2\qb2f\en%
-\pnotes{1.75}\Figu0{3}\nbbu1\qbp1{'D}&\uppz{'f}\tbl2\qb2f\en%
-\pnotes{1.05}\tbbbu1\tbu1\qb1{'C}&\en%
-\pnotes{1.45}\Figu0{6}\ibu1{'B}{-2}\qb1B&\qs\ibbl2{'f}{-2}\qb2f\en%
-\pnotes{1.75}\Figu0{7}\tbu1\qb1G&\qbp2{'e}\en%
-\pnotes{1.05}&\tbbbl2\tbl2\qb2{'d}\en%
-% Bar count 5
-\fixdrop%
-\alaligne
-\pnotes{1.06}\ibl1{''B}{-2}\qb1C&\ibbbbl2{'g}5\qb2e\qb2g\qb2{'c}%
-\isluru0e\tbbbbl2\tbbbl2\qb2e\en%
-\pnotes{1.62}&\tslur0{''e}\tbl2\qb2e\en%
-\pnotes{1.06}\Figu0{7}\tbl1\qb1{'F}&\ibbbbl2{''b}{-3}\qb2d\qb2c\qb2b%
-\qb2a\qb2{`g}\qb2f\qb2e\tbl2\qb2d\en%
-\pnotes{2.00}\Figu0{4}\ibu1{'E}{-9}\qb1G&\ibl2{'d}{-1}\shake g\qbp2d\en%
-\pnotes{1.00}\Figu0{3}\tbu1\qb1G&\en%
-\pnotes{1.62}&\tbbl2\tbl2\qb2{'c}\en%
-\pnotes{2.00}\ibl1{'D}3\qb1C&\ql{'c}\en%
-\pnotes{1.83}\nbbl1\qbp1{'E}&\en%
-\pnotes{1.31}\tbbbl1\tbl1\qb1{'F}&\en%
-\pnotes{1.83}\ibbl1{'F}{-2}\qbp1G&\ds\en%
-\pnotes{1.31}\tbbbl1\qb1{'F}&\en%
-\pnotes{1.83}\qbp1{'E}&\ibbl2{'e}2\qbp2e\en%
-\pnotes{1.31}\tbbbl1\tbl1\qb1{'D}&\tbbbl2\tbl2\qb2{'f}\en%
-% Bar count 6
-\xbar
-\pnotes{2.00}\Figu0{5}\bigsh{'C}\qu C&\cl{'g}\en%
-\pnotes{1.43}&\xnum{1.55}{''a}3\ibbl2{`g}0\isluru0{'a}\qb2{`g}\ast{.13}%
-\sh f\qb2f\tslur0{'a}\tbl2\qb2{`g}\en%
-\pnotes{2.00}\ast{.13}\ds&\ast{.13}\fl{''b}\cl b\en%
-\pnotes{1.31}\Figu0{6}\Figu4{5}\cu{'C}&\ibbbl2{'g}{-2}\isluru0{'a}\qb2a%
-\qb2{`g}\ast{.26}\na f\qb2f\tslur0e\tbl2\qb2e\en%
-\pnotes{1.62}\qu{'D}\sk\sk\sk\ds\sk\ibbl1F{-1}\qbp1F&\ibbl2{'d}0%
-\isluru0f\qb2f\qb2d\tslur0c\bigsh c\qb2c\uppz e\tbl2\qb2d\ibbl2e2%
-\isluru0d\qb2d\qb2e\tslur0f\qb2f\en%
-\pnotes{0.81}&\uppz{'g}\bigsh g\tbl2\qb2g\en%
-\pnotes{1.31}\tbbbl1\tbl1\qb1{'E}&\en%
-% Bar count 7
-\fixdrop%
-\alaligne
-\pnotes{2.00}\ast{.67}\Figu0{5}\sh{'D}\qu D&\ast{.67}\cl{''a}\en%
-\pnotes{1.89}&\xnum{3.56}{''b}3\ibbl2a0\isluru0c\qb2a\ast{1.17}\sh{`g}%
-\qb2g\tslur0{'c}\tbl2\qb2a\en%
-\pnotes{2.00}\ds&\ibl2{''b}{-3}\qb2c\en%
-\pnotes{1.97}\Figu0{6}\Figu4{5}\cu{'D}&\shake{''d}\nbbl2\qbp2b\en%
-\pnotes{1.87}&\ast{.81}\tbbbl2\tbl2\qb2{''a}\en%
-\pnotes{1.93}\Figu{-1}{\sharpfig}\ibl1{'E}0\qb1E&\ibbl2{'g}{-6}%
-\rbbl2\qb2g\en%
-\pnotes{1.00}&\ast{2.70}\shlft8{\bigsh{'f}\zcu f}\tbl2\qbp2e\en%
-\pnotes{1.97}\nbbl1\qbp1{'E}&\en%
-\pnotes{1.87}\ast{2.06}\sh{'F}\tbbbl1\tbl1\qb1F&\en%
-\pnotes{1.93}\ast{1.19}\ibl1{'G}{-3}\sh G\qb1G&\ast{1.19}\qs\ibbl2{''a}0%
-\qb2b\en%
-\pnotes{1.97}\Figu0{7}\tbl1\qb1{'E}&\shake{''d}\qbp2b\en%
-\pnotes{1.80}&\ast{.81}\isluru0{''a}\nbbbbl2\qb2a\tslur0b\tbl2\qb2b\en%
-% Bar count 8
-\xbar
-\pnotes{1.89}\ql{''A}\sk\sk\sk\sk\sk\ds&\xnum{1.89}{''d}3\ibbl2b{-3}%
-\isluru0e\qb2c\qb2b\tslur0c\tbl2\qb2a\xnum{1.89}b3\ibbl2{`g}{-3}%
-\isluru0{'c}\qb2a\qb2{`g}\tslur0{'a}\tbl2\qb2{`f}\xnum{1.89}g3\ibbl2f0%
-\isluru0g\qb2f\qb2e\tslur0g\tbl2\qb2f\en%
-\pnotes{2.00}\Figu0{6}\cl{''A}&\cl{''c}\en%
-\pnotes{1.89}\Figu0{7}\ql{'G}\sk\sk\sk\sk\sk\ds&%
-\xnum{1.89}{''c}3\ibbl2a{-3}\isluru0d\qb2b\qb2a\tslur0b\tbl2\qb2{`g}%
-\xnum{1.89}{'a}3\ibbl2{`f}{-3}\isluru0{'b}\qb2{`g}\qb2f\tslur0g%
-\tbl2\qb2e\xnum{3.56}f3\ibbl2e0\isluru0g\qb2e\ast{1.17}\sh d\qb2d\tslur0g%
-\tbl2\qb2e\en%
-\pnotes{2.00}\Figu0{6}\cl{'G}&\cl{''b}\en%
-% Bar count 9
-\xbar
-\pnotes{1.89}\Figu0{7}\ql{'F}\sk\sk\sk\sk\sk\ds&%
-\xnum{1.89}{''b}3\ibbl2{`g}{-3}\isluru0{'c}\qb2a\qb2{`g}\tslur0{'a}%
-\tbl2\qb2{`f}\xnum{1.89}g3\ibbl2e{-3}\isluru0{'a}\qb2{`f}\qb2e\tslur0f%
-\tbl2\qb2d\xnum{3.56}e3\ibbl2d0\isluru0f\qb2d\ast{1.17}\sh c\qb2c\tslur0f%
-\tbl2\qb2d\en%
-\pnotes{2.00}\Figu0{6}\Figu4{5}\cu{'D}&\cl{''a}\en%
-\pnotes{1.93}\ast{1.06}\ql{'E}&\ast{1.06}\ibbl2{''a}6\sh{`g}\qb2g%
-\tbbl2\qb2{'b}\en%
-\pnotes{2.00}&\tbl2\qb2{''d}\en%
-\pnotes{1.93}\Figu0{6}\Figu4{5}\bigsh G\qu G&\qs\ibbl2{''c}0\qb2d\en%
-\pnotes{1.97}&\qbp2{''c}\en%
-\pnotes{1.87}&\ast{.81}\isluru0{''b}\tbbbl2\tbl2\qb2b\en%
-% Bar count 10
-\znotes&\roffset{-.4}{\tslur0{{''b}}}\en%
-\fixdrop%
-\def\raisebarno{7.5\internote}%
-\alaligne
-\def\raisebarno{3.5\internote}%
-\znotes&\off{-\afterruleskip}\isu0{{''b}}{-.7}\off{\afterruleskip}\en%
-\pnotes{1.92}\qu{'A}\sk\sk\sk\ast{1.64}\ast{1.64}\qp\sk\sk\sk\ast{1.64}%
-\ast{1.64}\ast{1.64}\qp\sk\sk\sk\ast{1.64}\ast{1.64}\ast{1.64}\Figu0{6}%
-\Figu4{5}\bigsh G\ql G&\ibbl2{''b}{-1}\tslur0c\qb2c\isluru0a\qb2a%
-\ast{1.64}\tslur0b\fl b\qb2b\ast{1.64}\isluru0{`g}\sh g\tbl2\qb2g%
-\ibbl2g{-1}\tslur0{'a}\qb2a\ast{1.64}\isluru0{`f}\sh f\qb2f\ast{1.64}%
-\tslur0g\na g\qb2g\isluru0e\tbl2\qb2e\ast{1.64}\ibbl2e{-1}\tslur0f\na f%
-\qb2f\ast{1.64}\isluru0d\sh d\qb2d\tslur0e\qb2e\ast{1.64}\isluru0c\sh c%
-\tbl2\qb2c\ast{1.64}\ibbl2e0\tslur0d\na d\qb2d\isluru0f\qb2f\qb2e\tslur0d%
-\tbl2\qb2d\en%
-% Bar count 11
-\xbar
-\pnotes{1.92}\ibl1{'G}{-6}\qb1{'A}\sk\ast{1.64}\Figu0{7}\tbl1\qb1{`D}&%
-\ibbl2{'e}1\isluru0e\qb2c\ast{1.64}\sh g\qb2g\tslur0{'b}\qb2a%
-\tbl2\qb2{`d}\en%
-\pnotes{2.00}\ast{2.67}\Figu0{4}\ibu1{'C}{-9}\qb1E&\ast{2.67}\ibu2{'b}{-2}%
-\shlft8{\zcu c}\shake{'c}\qbp2{`b}\en%
-\pnotes{1.00}\Figu{-1}{\fsmsh}\Figu0{3}\tbu1\qb1E&\en%
-\pnotes{1.92}&\tbbu2\tbu2\qb2{'a}\en%
-\pnotes{2.00}\ibl1{'C}9\qb1A&\qu{'a}\en%
-\pnotes{1.96}\nbbl1\qbp1{''A}&\en%
-\pnotes{1.83}\ast{1.27}\tbbbl1\tbl1\qb1{''B}&\en%
-\pnotes{2.00}\ibl1{''B}{-8}\qb1C&\ds\en%
-\pnotes{1.96}\ast{1.56}\Figu0{6}\Figu4{5}\sh{'G}\tbl1\qb1G&\ast{1.56}%
-\ibbl2{'e}{-3}\qbp2e\en%
-\pnotes{1.83}&\ast{1.27}\tbbbl2\tbl2\qb2{'d}\en%
-% Bar count 12
-\xbar
-\pnotes{1.92}\ast{.94}\Figu{-1}{\sharpfig}\ql{''A}&\ast{.94}\ibbl2{'d}6%
-\sh c\qb2c\qb2e\qb2g\ast{1.64}\fl{'b}\tbl2\qb2b\en%
-\pnotes{1.83}\Figu0{6}\Figu4{5}\bigsh{'C}\qu C&\ibbbl2{''b}6\qb2a%
-\ast{1.72}\sh c\tbbbl2\qb2c\en%
-\pnotes{1.92}&\isluru0{''e}\tbl2\qb2e\en%
-\pnotes{1.76}&\ibbbbl2{''c}{-3}\tslur0e\qb2e\isluru0d\qb2d\ast{1.80}\na c%
-\qb2c\ast{1.80}\fl b\qb2b\qb2a\qb2{`g}\qb2f\tslur0e\tbl2\qb2e\en%
-\pnotes{1.96}\ast{2.82}\ibl1{'D}0\qb1D&\ast{2.82}\ibbl2{'f}{-3}\shlft8{%
-\zcu e}\qbp2f\en%
-\pnotes{1.83}&\ast{1.27}\tbbbl2\tbbl2\qb2{'e}\en%
-\pnotes{1.96}\nbbl1\qbp1{'D}&\shake{'g}\tbl2\qb2d\en%
-\pnotes{1.83}\ast{1.27}\tbbbl1\tbl1\qb1{'E}&\en%
-\pnotes{2.00}\ibl1{'E}{-5}\qb1F&\ds\en%
-\pnotes{1.96}\tbl1\qb1{'D}&\ibbl2{'d}{-3}\qbp2d\en%
-\pnotes{1.83}&\ast{2.72}\na{'c}\tbbbl2\tbl2\qb2c\en%
-% Bar count 13
-\fixdrop%
-\alaligne
-\endeq%
-\pnotes{1.57}\ql{'G}&\ibbl2{'d}4\qb2b\qb2d\qb2f\tbl2\qb2{'a}\en%
-\pnotes{1.33}\Figu0{6}\Figu4{5}\qu{'B}&\ibbbl2{''a}5\qb2{`g}%
-\tbbbl2\qb2{'b}\en%
-\pnotes{1.57}&\isluru0{''d}\tbl2\qb2d\en%
-\pnotes{1.13}&\ibbbbl2{''c}{-3}\tslur0d\qb2d\qb2c\qb2b\qb2a\qb2{`g}\qb2f%
-\qb2e\tbl2\qb2d\en%
-\pnotes{1.73}\ast{1.09}\ibu1{'C}1\qb1C&\ast{1.09}\ibbl2{'d}{-2}\shlft8{%
-\zcu d}\shake g\qbp2e\en%
-\pnotes{1.33}&\tbbbl2\tbbl2\qb2{'d}\en%
-\pnotes{1.73}\nbbu1\qbp1{'C}&\tbl2\qb2{'c}\en%
-\pnotes{1.33}\tbbbu1\tbu1\qb1{'D}&\en%
-\pnotes{1.57}\ast{.39}\ibu1{'D}{-3}\fl E\qb1E&\ast{.39}\qs\ibbl2{'c}0%
-\qb2d\en%
-\pnotes{1.73}\Figu0{6}\tbu1\qb1{'B}&\shake{'g}\qbp2d\en%
-\pnotes{1.13}&\isluru0{'c}\nbbbbl2\qb2c\tslur0d\tbl2\qb2d\en%
-% Bar count 14
-\xbar
-\pnotes{1.57}\Figu{-1}{\fsmfl}\Figu0{3}\qu{'C}&\ibbl2{'b}0\bigfl e\qb2e%
-\qb2c\en%
-\pnotes{1.73}&\shake{'g}\qbp2c\en%
-\pnotes{1.13}&\isluru0{'b}\nbbbbl2\qb2b\tslur0c\tbl2\qb2c\en%
-\pnotes{1.57}\ast{.60}\Figu{-1}{\fsmna}\Figu0{4}\Figu4{2}\bigfl{'B}\qu B%
-&\ast{.60}\ibbl2{'b}0\na e\qb2e\qb2c\en%
-\pnotes{1.73}&\shake{'g}\qbp2c\en%
-\pnotes{1.13}&\isluru0{'b}\nbbbbl2\qb2b\tslur0c\tbl2\qb2c\en%
-\pnotes{1.57}\Figu0{6}\bigfl{'A}\qu A&\ibbl2{'b}0\qb2f\qb2c\en%
-\pnotes{1.73}&\shake{'g}\qbp2c\en%
-\pnotes{1.13}&\isluru0{'b}\nbbbbl2\qb2b\tslur0c\tbl2\qb2c\en%
-\pnotes{1.57}\ast{.60}\Figu{-1}{\fsmsh}\Figu0{6}\bigna{'A}\qu A&%
-\ast{.60}\ibbl2{'b}0\sh f\qb2f\qb2c\en%
-\pnotes{1.73}&\shake{'g}\qbp2c\en%
-\pnotes{1.13}&\isluru0{'b}\nbbbbl2\qb2b\tslur0c\tbl2\qb2c\en%
-% Bar count 15
-\fixdrop%
-\alaligne
-\pnotes{2.03}\Figu0{6}\ibu1{'B}{-1}\qb1B&\ql{'g}\en%
-\pnotes{1.77}\nbbu1\qbp1G&\en%
-\pnotes{1.03}\tbbbu1\tbu1\qb1{'A}&\en%
-\pnotes{1.45}\ibu1{'A}{-2}\qb1B&\qs\ast{.10}\ibbl2{''a}{-2}\fl a\qb2a\en%
-\pnotes{1.77}\Figu0{7}\tbu1\qb1G&\qbp2{'g}\en%
-\pnotes{1.03}&\tbbbl2\tbl2\qb2{'f}\en%
-\pnotes{1.45}\ast{.52}\Figu{-1}{\fsmfl}\Figu0{3}\qu{'C}\sk\sk\sk%
-\ast{.10}\ast{.10}\ast{.10}\qp&\ast{.52}\ibbl2{'g}2\fl e\qb2e\ast{.10}%
-\isluru0{'b}\na b\qb2b\tslur0c\qb2c\ast{.10}\isluru0a\na a\tbl2\qb2a%
-\ast{.10}\ibbl2a{-1}\tslur0b\fl b\qb2b\isluru0{`g}\qb2g\ast{.10}%
-\tslur0{'a}\fl a\qb2a\ast{.10}\isluru0{`f}\sh f\tbl2\qb2f\en%
-% Bar count 16
-\xbar
-\pnotes{1.45}\hpause&\ibbl2{'f}{-1}\tslur0g\qb2g\isluru0e\qb2e\tslur0f%
-\qb2f\isluru0d\tbl2\qb2d\ast{.10}\ibbl2d{-1}\tslur0e\fl e\qb2e\isluru0c%
-\qb2c\ast{.10}\tslur0d\fl d\qb2d\ast{.10}\isluru0b\na b\tbl2\qb2b\en%
-\pnotes{2.03}\ds\ibl1{'F}{-2}\qb1F\Figu0{6}\isluru1E\qb1E\Figu0{6}%
-\tslur1D\tbl1\qb1D&\ibl2{'a}2\tslur0c\qb2c\uppz e\qb2a\uppz e\qb2{`g}%
-\isluru0{'f}\tbl2\qb2f\en%
-% Bar count 17
-\xbar
-\pnotes{2.03}\ibu1{'E}{-2}\qb1C\Figu0{7}\qb1F\Figu0{4}\qb1G&%
-\ibl2{'c}{-1}\tslur0e\qb2e\qb2a\shake g\qbp2d\en%
-\pnotes{1.02}\Figu0{3}\tbu1\qb1G&\en%
-\pnotes{1.45}&\tbbl2\tbl2\qb2{'c}\en%
-\pnotes{4.00}\hu{'C}&\hl{'c}\en%
-\Endpiece%
-\vskip .1\Interligne\eject\endmuflex
-\bye
diff --git a/Build/source/utils/pmx/pmx-src/tests/barsant1.pmx b/Build/source/utils/pmx/pmx-src/tests/barsant1.pmx
deleted file mode 100644
index 210125bc432..00000000000
--- a/Build/source/utils/pmx/pmx-src/tests/barsant1.pmx
+++ /dev/null
@@ -1,49 +0,0 @@
-%----------------%
-%
-% barsant.pmx Revised 1 April 2013
-%
-%----------------%
-%
-% nv,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig,
- 1
- 1
- 4
- 4
- 0
- 6
- .00
- 0
-%
-% npages,nsyst,musicsize,fracindent
- 1
- 7
- 20
- .05
-
-b
-./
-Ti
-Basso
-Abpl
-Tc
-Francesco Barsanti (1690-1772)
-W.5
-% Bar 1-4
-h
-Adagio
-c43 r8 f 65 f 42 e 6 r c | [ b 6 c ] d 7 b 65 c4 r8 c 65 s |
-\global\figdrop5\Figu{-1}{\fsmsh}\Figu{0}{4}\Figu{4}{2}\
-c s bf4 65 x1842 a8 65 s a s #42 g 6 r g 65 s |
-g s #42 f4 \global\figdrop8\ 65 x1842 \Figu06\ e8 d 54 dd1+ 3 c3 b8 6 g 7 /
-% Bar 5-6
-[ c84 f- 7 ] g 4 g- 3 c ed1 f3 gd1 f3 ed1 d3 | cs4 5 r8 c 65 d4 r8 fd1 e3 /
-% Bar 7-8
-ds43 5 r8 d 65 e # ed1 fs3 gs8 e 7 | a4 r8 a 6 g4 7 r8 g 6 /
-% Bar 9-10
-f43 7 r8 d 65 e4 gs- 65 | a r r gs+ 65 /
-% Bar 11-12
-[ a83 d- 7 ] e 4 e- #3 a ad1+ b3 c8 gs 65 | a4 # cs- 65 d8 dd1 e3 f8 d /
-% Bar 13-14
-g43 b- 65 [-1+1 c8 cd1 d3 ] ef8 b 6 | c4 -3 bf n42 af 6 an #6 /
-% Bar 15-end
-b82 6 gd1 a3 b8 g 7 c4 -3 r | r2 r8 f e s 6 d s 6 | [-1 c f 7 g 4 g- 3 ] c2 /
diff --git a/Build/source/utils/pmx/pmx-src/tests/barsant2.pmx b/Build/source/utils/pmx/pmx-src/tests/barsant2.pmx
deleted file mode 100644
index 55142dedaa4..00000000000
--- a/Build/source/utils/pmx/pmx-src/tests/barsant2.pmx
+++ /dev/null
@@ -1,66 +0,0 @@
-%----------------%
-%
-% barsant.pmx Revised 1 April 2013
-%
-%----------------%
-%
-% nv,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig,
- 1
- 1
- 4
- 4
- 0
- 6
- .00
- 0
-%
-% npages,nsyst,musicsize,fracindent
- 1
- 7
- 20
- .05
-
-t
-./
-Ti
-Recorder
-Abpl
-Tc
-Francesco Barsanti (1690-1772)
-S9
-% Bar 1-4
-h
-Adagio
-g85 Gf ed1 d3 [ c3 a8+ gd1x5n s+1 f e d c s+1 ] Gc b8 s c s r e |
-[ d35 s c d s e op ] e s d e s f op [ f s e f s g ] g f e f
-Gf ed1 d3 c8 r ad1+ g3 |
-[ fs15 dd+ ] [ c3 \nbbbbl2\ bf1x3 s+2 a g ] s+2 Gfn [ e1 cd+ ] [ b3
-\nbbbbl2\ a1x3 g f ] Ge ds8 ot e r ed1 dn3 |
-[ cs15 ad+ ] [ g3 \nbbbbl2\ f1x3 s+2 e d s+2 ]
-Gcn b1 c8 g1+ g3 s f e f s f8 op r1 f ed d3 /
-% Bar 5-6
-[ e65 g c e s e1 s ] d6 c b a g f e d dd8 ot c1 c4 r8 ed1 f3 |
-g85 gx3 s+1 fs g s+1 bf8 [ a3 s g fn e s ] [ f1 s d cs s d op ]
-d s e f s gs op /
-% Bar 7-8
-a85 ax3n+0+.7 s+2 gs a s+2 c8 bd1 ot a3 g1 Gfs ed8 r1 b+ bd ot a6 s b s |
-c86x3 s+2 b a s+2 ax3 s+2 g f s+2 fx3 s+1 e f s+1 c+
-bx3 s+2 a g s+2 gx3 s+2 f e s+2 ex3nf+0+.7 s+2 ds e s+2 b+ /
-% Bar 9-10
-a85x3 s+2 g f s+2 fx3 s+2 e d s+2 dx3nf+0+.7 s+2 cs d s+2 a+
-gs1 b d8 r1 d cd b3 s |
-[ c1 s a s bf s gs s ] a s fs s gn s e s
-[ fn s ds s e s cs s ] dn s f s e d s /
-% Bar 11-12
-c15 s+2 gs+ a s+1 d- Gc bd8 ot a1 a4 r8 ed1+ d3 |
-cs1 e g bf [ a3 cs e1 s ] e6 s d s cn bf a g f e s
-Ge fd1 e3 d8 ot r8 dd1 cn3 /
-% Bar 13-14
-b14 d f a [ g3 b d1 s ] [+1 d6 s c b a g f e d ]
-Gd ed1 ot d3 c8 r1 d dd ot c6 s d s |
-ef1 c cd ot b6 s c s en1 c cd ot b6 s c s
-f1 c cd ot b6 s c s fs1 c cd ot b6 s c s /
-% Bar 15-end
-g45 r1 af gd f3 ef1 bn+ s c s an s [ bf s g s af s fs s ] |
-g s e s f s d s [ ef s c s df s bn s ] c8 s a op g op f+ s |
-[ e s a- dd ot c1 ] c2 /
diff --git a/Build/source/utils/pmx/pmx-src/version.ac b/Build/source/utils/pmx/pmx-src/version.ac
deleted file mode 100644
index 73eb32443e9..00000000000
--- a/Build/source/utils/pmx/pmx-src/version.ac
+++ /dev/null
@@ -1,11 +0,0 @@
-dnl
-dnl Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
-dnl
-dnl This file is free software; the copyright holder
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-dnl
-dnl --------------------------------------------------------
-dnl
-dnl m4-include this file to define the current pmx version
-m4_define([pmx_version], [2.9.4a])
diff --git a/Build/source/utils/pmx/pmx-src/w32getc.c b/Build/source/utils/pmx/pmx-src/w32getc.c
deleted file mode 100644
index 32f9d625953..00000000000
--- a/Build/source/utils/pmx/pmx-src/w32getc.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <stdio.h>
-int w32getc(FILE *f)
-{
- int c;
- c = getc(f);
- if(c=='\r') {
- c = getc(f);
- if(c!='\n') {
- ungetc(c,f);
- c='\r';
- }
- }
- return c;
-}
diff --git a/Build/source/utils/pmx/pmxab.1 b/Build/source/utils/pmx/pmxab.1
deleted file mode 100644
index 348517f4aee..00000000000
--- a/Build/source/utils/pmx/pmxab.1
+++ /dev/null
@@ -1,24 +0,0 @@
-.TH pmxab 1 "12 Feb 2018" "Version 2.8.4" "PMX Manual Page"
-.SH NAME
-pmxab \- a MusiXTeX preprocessor
-.SH SYNOPSIS
-.B pmxab
-.RI basename [.pmx]
-
-.SH DESCRIPTION
-pmxab is a preprocessor for MusiXTeX.
-It's usually invoked by a frontend musixtex(1).
-To use it to its full benefit you should have installed MusiXTeX Version 1.21
-or higher, and TeX itself.
-The goal of PMX is to faciliate the efficient typesetting of scores and parts
-that have an almost professional appearance. To learn more about typesetting
-with PMX, please read the PMX Manual.
-
-When invoked directly, pmxab produces tex output utilizing the MusiXTeX
-macro set.
-.SH SEE ALSO
-scor2prt(1), musixtex(1)
-.SH AUTHORS
-PMX was written by Don Simons <dsimons@roadrunner.com>.
-This manual page was written by Roland Stigge <stigge@antcom.de> for the Debian
-project and revised by Bob Tennent <rdt@cs.queensu.ca>.
diff --git a/Build/source/utils/pmx/scor2prt.1 b/Build/source/utils/pmx/scor2prt.1
deleted file mode 100644
index 23abdf4c197..00000000000
--- a/Build/source/utils/pmx/scor2prt.1
+++ /dev/null
@@ -1,18 +0,0 @@
-.TH scor2prt 1 "2 Feb 2016" "Version 2.7.3" "scor2prt Manual Page"
-.SH NAME
-scor2prt \- source-parts separation program for pmx, a MusiXTeX preprocessor
-.SH SYNOPSIS
-.B scor2prt
-.RI basename [.pmx]
-.SH DESCRIPTION
-scor2prt is part of pmx(1), a preprocessor for MusiXTeX. It can automatically
-create parts from a score by generating a set of .pmx files, one for each part,
-from a single .pmx file for the score. The appearance of the parts can be
-controlled by special commands in the main file. Read the PMX Manual for more
-information about that.
-.SH SEE ALSO
-pmx(1), pmxab(1), musixtex(1), PMX Manual
-.SH AUTHORS
-PMX was written by Don Simons <dsimons@roadrunner.com>.
-This manual page was written by Roland Stigge <stigge@antcom.de> for the Debian
-project and revised by Bob Tennent <rdt@cs.queensu.ca>.
diff --git a/Build/source/utils/pmx/version.ac b/Build/source/utils/pmx/version.ac
deleted file mode 100644
index 0984c08a463..00000000000
--- a/Build/source/utils/pmx/version.ac
+++ /dev/null
@@ -1,11 +0,0 @@
-dnl
-dnl Copyright (C) 2012, 2013 Peter Breitenlohner <tex-live@tug.org>
-dnl
-dnl This file is free software; the copyright holder
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-dnl
-dnl --------------------------------------------------------
-dnl
-dnl m4-include this file to define the current pmx version
-m4_define([pmx_version], [2.9.4a])