diff options
author | Karl Berry <karl@freefriends.org> | 2013-12-13 22:20:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-12-13 22:20:40 +0000 |
commit | 2e18ec49471b5109220bcdbda439fb3461b42f61 (patch) | |
tree | a150c763a8eae02cfbe09b10a4af5fec533f9871 /Master | |
parent | bb69c6ad45c96b1cf0b5fa79318c64e26b1c9bcd (diff) |
pmxchords (12dec13)
git-svn-id: svn://tug.org/texlive/trunk@32405 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
50 files changed, 2899 insertions, 2 deletions
diff --git a/Master/bin/alpha-linux/pmxchords b/Master/bin/alpha-linux/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/alpha-linux/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/amd64-freebsd/pmxchords b/Master/bin/amd64-freebsd/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/amd64-freebsd/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/amd64-kfreebsd/pmxchords b/Master/bin/amd64-kfreebsd/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/amd64-kfreebsd/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/amd64-netbsd/pmxchords b/Master/bin/amd64-netbsd/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/amd64-netbsd/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/armel-linux/pmxchords b/Master/bin/armel-linux/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/armel-linux/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/armhf-linux/pmxchords b/Master/bin/armhf-linux/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/armhf-linux/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/i386-cygwin/pmxchords b/Master/bin/i386-cygwin/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/i386-cygwin/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/i386-freebsd/pmxchords b/Master/bin/i386-freebsd/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/i386-freebsd/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/i386-kfreebsd/pmxchords b/Master/bin/i386-kfreebsd/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/i386-kfreebsd/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/i386-linux/pmxchords b/Master/bin/i386-linux/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/i386-linux/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/i386-netbsd/pmxchords b/Master/bin/i386-netbsd/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/i386-netbsd/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/i386-solaris/pmxchords b/Master/bin/i386-solaris/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/i386-solaris/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/mips-irix/pmxchords b/Master/bin/mips-irix/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/mips-irix/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/mipsel-linux/pmxchords b/Master/bin/mipsel-linux/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/mipsel-linux/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/powerpc-linux/pmxchords b/Master/bin/powerpc-linux/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/powerpc-linux/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/sparc-solaris/pmxchords b/Master/bin/sparc-solaris/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/sparc-solaris/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/universal-darwin/pmxchords b/Master/bin/universal-darwin/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/universal-darwin/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/win32/pmxchords.exe b/Master/bin/win32/pmxchords.exe Binary files differnew file mode 100755 index 00000000000..5777d90a17a --- /dev/null +++ b/Master/bin/win32/pmxchords.exe diff --git a/Master/bin/x86_64-darwin/pmxchords b/Master/bin/x86_64-darwin/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/x86_64-darwin/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/x86_64-linux/pmxchords b/Master/bin/x86_64-linux/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/x86_64-linux/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/bin/x86_64-solaris/pmxchords b/Master/bin/x86_64-solaris/pmxchords new file mode 120000 index 00000000000..571fd4e9370 --- /dev/null +++ b/Master/bin/x86_64-solaris/pmxchords @@ -0,0 +1 @@ +../../texmf-dist/scripts/pmxchords/pmxchords.lua
\ No newline at end of file diff --git a/Master/texmf-dist/doc/man/man1/pmxchords.1 b/Master/texmf-dist/doc/man/man1/pmxchords.1 new file mode 100644 index 00000000000..e9e4990852f --- /dev/null +++ b/Master/texmf-dist/doc/man/man1/pmxchords.1 @@ -0,0 +1,33 @@ +.TH pmxchords 1 "11 Dec 2013" "Version 2013-12-11" "pmxchords Manual Page" +.SH NAME +pmxchords \- This script processes pmx files with chord symbols, allowing for key transpositions +.SH SYNOPSIS +[ texlua ] +.B pmxchords +{ +.IR option +| +.IR jobname +[ .pmx ] +} ... +.TP +The default effect is to preprocess each pmx file so that chords are transposed as necessary, generating a temporary pmx file which is then processed by pmxab. Finally the resulting tex file is renamed to have the original jobname. The default filename for the temporary file is <jobname>_chtr.pmx. + +.SH OPTIONS +.TP 8 +.B -v +output program name and version number, and quit +.TP +.B -h +output usage summary and quit +.TP +.B -s +stop after first step (of producing a temporary pmx file with transposed chord symbols). + + +.SH SEE ALSO +pmx(1), musixtex(1) +.SH AUTHORS +pmxchords was written by Ondrej Fafejta +<fafejtao@gmail.com>. This manual page was written by Bob Tennent +<rdt@cs.queensu.ca>. diff --git a/Master/texmf-dist/doc/man/man1/pmxchords.man1.pdf b/Master/texmf-dist/doc/man/man1/pmxchords.man1.pdf Binary files differnew file mode 100644 index 00000000000..2e5400d6bca --- /dev/null +++ b/Master/texmf-dist/doc/man/man1/pmxchords.man1.pdf diff --git a/Master/texmf-dist/doc/pmxchords/README b/Master/texmf-dist/doc/pmxchords/README new file mode 100644 index 00000000000..a8f378429cf --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/README @@ -0,0 +1,20 @@ +2013-12-11 +Author: Ondrej Fafejta <fafejtao@gmail.com> +Website: https://github.com/fafejtao/pmxChords + +Pmxchords extends the PMX preprocesor for musixtex to output chord +notations over the notes. The syntax for chord symbols is as inline +tex commands in the .pmx file. +e.g. \ch.C.\ c44 e \ch.G7.\ d2 | \ch.C.\ c r / + +PMX supports key transposition and the pmxchords.lua script is +used to transpose chord symbols accordingly (and then call pmxab as +usual to generate a .tex file). From version 0.3, the pmx2pdf script +in the PMX package supports a -c option to use pmxchords (and then +pmxab) as the preprocessor (rather than pmxab directly). + +For installation and usage, see the pmxchords-install document. + +pmxchords is licensed under the GPL version 2 or later. + +This README was edited by Bob Tennent (rdt@cs.queensu.ca). diff --git a/Master/texmf-dist/doc/pmxchords/chordsRef.pdf b/Master/texmf-dist/doc/pmxchords/chordsRef.pdf Binary files differnew file mode 100644 index 00000000000..d54e2ffa11c --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/chordsRef.pdf diff --git a/Master/texmf-dist/doc/pmxchords/chordsRef.tex b/Master/texmf-dist/doc/pmxchords/chordsRef.tex new file mode 100644 index 00000000000..128abed2a85 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/chordsRef.tex @@ -0,0 +1,426 @@ +\documentclass[10pt]{article} +\usepackage[landscape,a4paper,top=1.5cm,right=1.5cm,bottom=1.5cm,left=1.5cm]{geometry} +\pagestyle{empty} +%\usepackage[utf8]{inputenc} +%\usepackage{czech} + +\begin{document} + +\input chords + +\def\chBase#1{\chFont #1} % override default chord base macro + +\def\chSrc#1{\small \tt $\backslash$ch.#1.} + +\subsection*{Macro: chords} +\begin{tabular}{ | l | l | l | l | l | l | l | l | l | l | l | l |} +\hline + \ch.C. +& \ch.Cs. +& \ch.D. +& \ch.Ef. +& \ch.E. +& \ch.F. +& \ch.Fs. +& \ch.G. +& \ch.Af. +& \ch.A. +& \ch.Bf. +& \ch.B. +\\ + \chSrc{C} +& \chSrc{Cs} +& \chSrc{D} +& \chSrc{Ef} +& \chSrc{E} +& \chSrc{F} +& \chSrc{Fs} +& \chSrc{G} +& \chSrc{Af} +& \chSrc{A} +& \chSrc{Bf} +& \chSrc{B} +\\ +\hline + \ch.Cm. +& \ch.Csm. +& \ch.Dm. +& \ch.Efm. +& \ch.Em. +& \ch.Fm. +& \ch.Fsm. +& \ch.Gm. +& \ch.Afm. +& \ch.Am. +& \ch.Bfm. +& \ch.Bm. +\\ + \chSrc{Cm} +& \chSrc{Csm} +& \chSrc{Dm} +& \chSrc{Efm} +& \chSrc{Em} +& \chSrc{Fm} +& \chSrc{Fsm} +& \chSrc{Gm} +& \chSrc{Afm} +& \chSrc{Am} +& \chSrc{Bfm} +& \chSrc{Bm} +\\ +\hline + \ch.C+. +& \ch.Cs+. +& \ch.D+. +& \ch.Ef+. +& \ch.E+. +& \ch.F+. +& \ch.Fs+. +& \ch.G+. +& \ch.Af+. +& \ch.A+. +& \ch.Bf+. +& \ch.B+. +\\ + \chSrc{C+} +& \chSrc{Cs+} +& \chSrc{D+} +& \chSrc{Ef+} +& \chSrc{E+} +& \chSrc{F+} +& \chSrc{Fs+} +& \chSrc{G+} +& \chSrc{Af+} +& \chSrc{A+} +& \chSrc{Bf+} +& \chSrc{B+} +\\ +\hline + \ch.C4. +& \ch.Cs4. +& \ch.D4. +& \ch.Ef4. +& \ch.E4. +& \ch.F4. +& \ch.Fs4. +& \ch.G4. +& \ch.Af4. +& \ch.A4. +& \ch.Bf4. +& \ch.B4. +\\ + \chSrc{C4} +& \chSrc{Cs4} +& \chSrc{D4} +& \chSrc{Ef4} +& \chSrc{E4} +& \chSrc{F4} +& \chSrc{Fs4} +& \chSrc{G4} +& \chSrc{Af4} +& \chSrc{A4} +& \chSrc{Bf4} +& \chSrc{B4} +\\ +\hline + \ch.Cdim. +& \ch.Csdim. +& \ch.Ddim. +& \ch.Efdim. +& \ch.Edim. +& \ch.Fdim. +& \ch.Fsdim. +& \ch.Gdim. +& \ch.Afdim. +& \ch.Adim. +& \ch.Bfdim. +& \ch.Bdim. +\\ + \chSrc{Cdim} +& \chSrc{Csdim} +& \chSrc{Ddim} +& \chSrc{Efdim} +& \chSrc{Edim} +& \chSrc{Fdim} +& \chSrc{Fsdim} +& \chSrc{Gdim} +& \chSrc{Afdim} +& \chSrc{Adim} +& \chSrc{Bfdim} +& \chSrc{Bdim} +\\ +\hline + \ch.Cmaj. +& \ch.Csmaj. +& \ch.Dmaj. +& \ch.Efmaj. +& \ch.Emaj. +& \ch.Fmaj. +& \ch.Fsmaj. +& \ch.Gmaj. +& \ch.Afmaj. +& \ch.Amaj. +& \ch.Bfmaj. +& \ch.Bmaj. +\\ + \chSrc{Cmaj} +& \chSrc{Csmaj} +& \chSrc{Dmaj} +& \chSrc{Efmaj} +& \chSrc{Emaj} +& \chSrc{Fmaj} +& \chSrc{Fsmaj} +& \chSrc{Gmaj} +& \chSrc{Afmaj} +& \chSrc{Amaj} +& \chSrc{Bfmaj} +& \chSrc{Bmaj} +\\ +\hline + \ch.C6. +& \ch.Cs6. +& \ch.D6. +& \ch.Ef6. +& \ch.E6. +& \ch.F6. +& \ch.Fs6. +& \ch.G6. +& \ch.Af6. +& \ch.A6. +& \ch.Bf6. +& \ch.B6. +\\ + \chSrc{C6} +& \chSrc{Cs6} +& \chSrc{D6} +& \chSrc{Ef6} +& \chSrc{E6} +& \chSrc{F6} +& \chSrc{Fs6} +& \chSrc{G6} +& \chSrc{Af6} +& \chSrc{A6} +& \chSrc{Bf6} +& \chSrc{B6} +\\ +\hline + \ch.C7. +& \ch.Cs7. +& \ch.D7. +& \ch.Ef7. +& \ch.E7. +& \ch.F7. +& \ch.Fs7. +& \ch.G7. +& \ch.Af7. +& \ch.A7. +& \ch.Bf7. +& \ch.B7. +\\ + \chSrc{C7} +& \chSrc{Cs7} +& \chSrc{D7} +& \chSrc{Ef7} +& \chSrc{E7} +& \chSrc{F7} +& \chSrc{Fs7} +& \chSrc{G7} +& \chSrc{Af7} +& \chSrc{A7} +& \chSrc{Bf7} +& \chSrc{B7} +\\ +\hline + \ch.C9. +& \ch.Cs9. +& \ch.D9. +& \ch.Ef9. +& \ch.E9. +& \ch.F9. +& \ch.Fs9. +& \ch.G9. +& \ch.Af9. +& \ch.A9. +& \ch.Bf9. +& \ch.B9. +\\ + \chSrc{C9} +& \chSrc{Cs9} +& \chSrc{D9} +& \chSrc{Ef9} +& \chSrc{E9} +& \chSrc{F9} +& \chSrc{Fs9} +& \chSrc{G9} +& \chSrc{Af9} +& \chSrc{A9} +& \chSrc{Bf9} +& \chSrc{B9} +\\ +\hline + \ch.C9f. +& \ch.Cs9f. +& \ch.D9f. +& \ch.Ef9f. +& \ch.E9f. +& \ch.F9f. +& \ch.Fs9f. +& \ch.G9f. +& \ch.Af9f. +& \ch.A9f. +& \ch.Bf9f. +& \ch.B9f. +\\ + \chSrc{C9f} +& \chSrc{Cs9f} +& \chSrc{D9f} +& \chSrc{Ef9f} +& \chSrc{E9f} +& \chSrc{F9f} +& \chSrc{Fs9f} +& \chSrc{G9f} +& \chSrc{Af9f} +& \chSrc{A9f} +& \chSrc{Bf9f} +& \chSrc{B9f} +\\ +\hline + \ch.Cm7. +& \ch.Csm7. +& \ch.Dm7. +& \ch.Efm7. +& \ch.Em7. +& \ch.Fm7. +& \ch.Fsm7. +& \ch.Gm7. +& \ch.Afm7. +& \ch.Am7. +& \ch.Bfm7. +& \ch.Bm7. +\\ + \chSrc{Cm7} +& \chSrc{Csm7} +& \chSrc{Dm7} +& \chSrc{Efm7} +& \chSrc{Em7} +& \chSrc{Fm7} +& \chSrc{Fsm7} +& \chSrc{Gm7} +& \chSrc{Afm7} +& \chSrc{Am7} +& \chSrc{Bfm7} +& \chSrc{Bm7} +\\ +\hline + \ch.Cm6. +& \ch.Csm6. +& \ch.Dm6. +& \ch.Efm6. +& \ch.Em6. +& \ch.Fm6. +& \ch.Fsm6. +& \ch.Gm6. +& \ch.Afm6. +& \ch.Am6. +& \ch.Bfm6. +& \ch.Bm6. +\\ + \chSrc{Cm6} +& \chSrc{Csm6} +& \chSrc{Dm6} +& \chSrc{Efm6} +& \chSrc{Em6} +& \chSrc{Fm6} +& \chSrc{Fsm6} +& \chSrc{Gm6} +& \chSrc{Afm6} +& \chSrc{Am6} +& \chSrc{Bfm6} +& \chSrc{Bm6} +\\ +\hline + \ch.Cm5f. +& \ch.Csm5f. +& \ch.Dm5f. +& \ch.Efm5f. +& \ch.Em5f. +& \ch.Fm5f. +& \ch.Fsm5f. +& \ch.Gm5f. +& \ch.Afm5f. +& \ch.Am5f. +& \ch.Bfm5f. +& \ch.Bm5f. +\\ + \chSrc{Cm5f} +& \chSrc{Csm5f} +& \chSrc{Dm5f} +& \chSrc{Efm5f} +& \chSrc{Em5f} +& \chSrc{Fm5f} +& \chSrc{Fsm5f} +& \chSrc{Gm5f} +& \chSrc{Afm5f} +& \chSrc{Am5f} +& \chSrc{Bfm5f} +& \chSrc{Bm5f} +\\ +\hline + \ch.C47. +& \ch.Cs47. +& \ch.D47. +& \ch.Ef47. +& \ch.E47. +& \ch.F47. +& \ch.Fs47. +& \ch.G47. +& \ch.Af47. +& \ch.A47. +& \ch.Bf47. +& \ch.B47. +\\ + \chSrc{C47} +& \chSrc{Cs47} +& \chSrc{D47} +& \chSrc{Ef47} +& \chSrc{E47} +& \chSrc{F47} +& \chSrc{Fs47} +& \chSrc{G47} +& \chSrc{Af47} +& \chSrc{A47} +& \chSrc{Bf47} +& \chSrc{B47} +\\ +\hline + \ch.Cm75f. +& \ch.Csm75f. +& \ch.Dm75f. +& \ch.Efm75f. +& \ch.Em75f. +& \ch.Fm75f. +& \ch.Fsm75f. +& \ch.Gm75f. +& \ch.Afm75f. +& \ch.Am75f. +& \ch.Bfm75f. +& \ch.Bm75f. +\\ + \chSrc{Cm75f} +& \chSrc{Csm75f} +& \chSrc{Dm75f} +& \chSrc{Efm75f} +& \chSrc{Em75f} +& \chSrc{Fm75f} +& \chSrc{Fsm75f} +& \chSrc{Gm75f} +& \chSrc{Afm75f} +& \chSrc{Am75f} +& \chSrc{Bfm75f} +& \chSrc{Bm75f} +\\ +\hline + +\end{tabular} + +\end{document} diff --git a/Master/texmf-dist/doc/pmxchords/chordsRefCZ.pdf b/Master/texmf-dist/doc/pmxchords/chordsRefCZ.pdf Binary files differnew file mode 100644 index 00000000000..335d57174a1 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/chordsRefCZ.pdf diff --git a/Master/texmf-dist/doc/pmxchords/chordsRefCZ.tex b/Master/texmf-dist/doc/pmxchords/chordsRefCZ.tex new file mode 100644 index 00000000000..1feb4dbcaf2 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/chordsRefCZ.tex @@ -0,0 +1,426 @@ +\documentclass[10pt]{article} +\usepackage[landscape,a4paper,top=1.5cm,right=1.5cm,bottom=1.5cm,left=1.5cm]{geometry} +\pagestyle{empty} +%\usepackage[utf8]{inputenc} +%\usepackage{czech} + +\begin{document} + +\input chordsCZ + +\def\chBase#1{\chFont #1} % override default chord base macro + +\def\chSrc#1{\small \tt $\backslash$ch.#1.} + +\subsection*{Macro: chordsCZ} +\begin{tabular}{ | l | l | l | l | l | l | l | l | l | l | l | l |} +\hline + \ch.C. +& \ch.Cs. +& \ch.D. +& \ch.Ef. +& \ch.E. +& \ch.F. +& \ch.Fs. +& \ch.G. +& \ch.Af. +& \ch.A. +& \ch.Bf. +& \ch.B. +\\ + \chSrc{C} +& \chSrc{Cs} +& \chSrc{D} +& \chSrc{Ef} +& \chSrc{E} +& \chSrc{F} +& \chSrc{Fs} +& \chSrc{G} +& \chSrc{Af} +& \chSrc{A} +& \chSrc{Bf} +& \chSrc{B} +\\ +\hline + \ch.Cm. +& \ch.Csm. +& \ch.Dm. +& \ch.Efm. +& \ch.Em. +& \ch.Fm. +& \ch.Fsm. +& \ch.Gm. +& \ch.Afm. +& \ch.Am. +& \ch.Bfm. +& \ch.Bm. +\\ + \chSrc{Cm} +& \chSrc{Csm} +& \chSrc{Dm} +& \chSrc{Efm} +& \chSrc{Em} +& \chSrc{Fm} +& \chSrc{Fsm} +& \chSrc{Gm} +& \chSrc{Afm} +& \chSrc{Am} +& \chSrc{Bfm} +& \chSrc{Bm} +\\ +\hline + \ch.C+. +& \ch.Cs+. +& \ch.D+. +& \ch.Ef+. +& \ch.E+. +& \ch.F+. +& \ch.Fs+. +& \ch.G+. +& \ch.Af+. +& \ch.A+. +& \ch.Bf+. +& \ch.B+. +\\ + \chSrc{C+} +& \chSrc{Cs+} +& \chSrc{D+} +& \chSrc{Ef+} +& \chSrc{E+} +& \chSrc{F+} +& \chSrc{Fs+} +& \chSrc{G+} +& \chSrc{Af+} +& \chSrc{A+} +& \chSrc{Bf+} +& \chSrc{B+} +\\ +\hline + \ch.C4. +& \ch.Cs4. +& \ch.D4. +& \ch.Ef4. +& \ch.E4. +& \ch.F4. +& \ch.Fs4. +& \ch.G4. +& \ch.Af4. +& \ch.A4. +& \ch.Bf4. +& \ch.B4. +\\ + \chSrc{C4} +& \chSrc{Cs4} +& \chSrc{D4} +& \chSrc{Ef4} +& \chSrc{E4} +& \chSrc{F4} +& \chSrc{Fs4} +& \chSrc{G4} +& \chSrc{Af4} +& \chSrc{A4} +& \chSrc{Bf4} +& \chSrc{B4} +\\ +\hline + \ch.Cdim. +& \ch.Csdim. +& \ch.Ddim. +& \ch.Efdim. +& \ch.Edim. +& \ch.Fdim. +& \ch.Fsdim. +& \ch.Gdim. +& \ch.Afdim. +& \ch.Adim. +& \ch.Bfdim. +& \ch.Bdim. +\\ + \chSrc{Cdim} +& \chSrc{Csdim} +& \chSrc{Ddim} +& \chSrc{Efdim} +& \chSrc{Edim} +& \chSrc{Fdim} +& \chSrc{Fsdim} +& \chSrc{Gdim} +& \chSrc{Afdim} +& \chSrc{Adim} +& \chSrc{Bfdim} +& \chSrc{Bdim} +\\ +\hline + \ch.Cmaj. +& \ch.Csmaj. +& \ch.Dmaj. +& \ch.Efmaj. +& \ch.Emaj. +& \ch.Fmaj. +& \ch.Fsmaj. +& \ch.Gmaj. +& \ch.Afmaj. +& \ch.Amaj. +& \ch.Bfmaj. +& \ch.Bmaj. +\\ + \chSrc{Cmaj} +& \chSrc{Csmaj} +& \chSrc{Dmaj} +& \chSrc{Efmaj} +& \chSrc{Emaj} +& \chSrc{Fmaj} +& \chSrc{Fsmaj} +& \chSrc{Gmaj} +& \chSrc{Afmaj} +& \chSrc{Amaj} +& \chSrc{Bfmaj} +& \chSrc{Bmaj} +\\ +\hline + \ch.C6. +& \ch.Cs6. +& \ch.D6. +& \ch.Ef6. +& \ch.E6. +& \ch.F6. +& \ch.Fs6. +& \ch.G6. +& \ch.Af6. +& \ch.A6. +& \ch.Bf6. +& \ch.B6. +\\ + \chSrc{C6} +& \chSrc{Cs6} +& \chSrc{D6} +& \chSrc{Ef6} +& \chSrc{E6} +& \chSrc{F6} +& \chSrc{Fs6} +& \chSrc{G6} +& \chSrc{Af6} +& \chSrc{A6} +& \chSrc{Bf6} +& \chSrc{B6} +\\ +\hline + \ch.C7. +& \ch.Cs7. +& \ch.D7. +& \ch.Ef7. +& \ch.E7. +& \ch.F7. +& \ch.Fs7. +& \ch.G7. +& \ch.Af7. +& \ch.A7. +& \ch.Bf7. +& \ch.B7. +\\ + \chSrc{C7} +& \chSrc{Cs7} +& \chSrc{D7} +& \chSrc{Ef7} +& \chSrc{E7} +& \chSrc{F7} +& \chSrc{Fs7} +& \chSrc{G7} +& \chSrc{Af7} +& \chSrc{A7} +& \chSrc{Bf7} +& \chSrc{B7} +\\ +\hline + \ch.C9. +& \ch.Cs9. +& \ch.D9. +& \ch.Ef9. +& \ch.E9. +& \ch.F9. +& \ch.Fs9. +& \ch.G9. +& \ch.Af9. +& \ch.A9. +& \ch.Bf9. +& \ch.B9. +\\ + \chSrc{C9} +& \chSrc{Cs9} +& \chSrc{D9} +& \chSrc{Ef9} +& \chSrc{E9} +& \chSrc{F9} +& \chSrc{Fs9} +& \chSrc{G9} +& \chSrc{Af9} +& \chSrc{A9} +& \chSrc{Bf9} +& \chSrc{B9} +\\ +\hline + \ch.C9f. +& \ch.Cs9f. +& \ch.D9f. +& \ch.Ef9f. +& \ch.E9f. +& \ch.F9f. +& \ch.Fs9f. +& \ch.G9f. +& \ch.Af9f. +& \ch.A9f. +& \ch.Bf9f. +& \ch.B9f. +\\ + \chSrc{C9f} +& \chSrc{Cs9f} +& \chSrc{D9f} +& \chSrc{Ef9f} +& \chSrc{E9f} +& \chSrc{F9f} +& \chSrc{Fs9f} +& \chSrc{G9f} +& \chSrc{Af9f} +& \chSrc{A9f} +& \chSrc{Bf9f} +& \chSrc{B9f} +\\ +\hline + \ch.Cm7. +& \ch.Csm7. +& \ch.Dm7. +& \ch.Efm7. +& \ch.Em7. +& \ch.Fm7. +& \ch.Fsm7. +& \ch.Gm7. +& \ch.Afm7. +& \ch.Am7. +& \ch.Bfm7. +& \ch.Bm7. +\\ + \chSrc{Cm7} +& \chSrc{Csm7} +& \chSrc{Dm7} +& \chSrc{Efm7} +& \chSrc{Em7} +& \chSrc{Fm7} +& \chSrc{Fsm7} +& \chSrc{Gm7} +& \chSrc{Afm7} +& \chSrc{Am7} +& \chSrc{Bfm7} +& \chSrc{Bm7} +\\ +\hline + \ch.Cm6. +& \ch.Csm6. +& \ch.Dm6. +& \ch.Efm6. +& \ch.Em6. +& \ch.Fm6. +& \ch.Fsm6. +& \ch.Gm6. +& \ch.Afm6. +& \ch.Am6. +& \ch.Bfm6. +& \ch.Bm6. +\\ + \chSrc{Cm6} +& \chSrc{Csm6} +& \chSrc{Dm6} +& \chSrc{Efm6} +& \chSrc{Em6} +& \chSrc{Fm6} +& \chSrc{Fsm6} +& \chSrc{Gm6} +& \chSrc{Afm6} +& \chSrc{Am6} +& \chSrc{Bfm6} +& \chSrc{Bm6} +\\ +\hline + \ch.Cm5f. +& \ch.Csm5f. +& \ch.Dm5f. +& \ch.Efm5f. +& \ch.Em5f. +& \ch.Fm5f. +& \ch.Fsm5f. +& \ch.Gm5f. +& \ch.Afm5f. +& \ch.Am5f. +& \ch.Bfm5f. +& \ch.Bm5f. +\\ + \chSrc{Cm5f} +& \chSrc{Csm5f} +& \chSrc{Dm5f} +& \chSrc{Efm5f} +& \chSrc{Em5f} +& \chSrc{Fm5f} +& \chSrc{Fsm5f} +& \chSrc{Gm5f} +& \chSrc{Afm5f} +& \chSrc{Am5f} +& \chSrc{Bfm5f} +& \chSrc{Bm5f} +\\ +\hline + \ch.C47. +& \ch.Cs47. +& \ch.D47. +& \ch.Ef47. +& \ch.E47. +& \ch.F47. +& \ch.Fs47. +& \ch.G47. +& \ch.Af47. +& \ch.A47. +& \ch.Bf47. +& \ch.B47. +\\ + \chSrc{C47} +& \chSrc{Cs47} +& \chSrc{D47} +& \chSrc{Ef47} +& \chSrc{E47} +& \chSrc{F47} +& \chSrc{Fs47} +& \chSrc{G47} +& \chSrc{Af47} +& \chSrc{A47} +& \chSrc{Bf47} +& \chSrc{B47} +\\ +\hline + \ch.Cm75f. +& \ch.Csm75f. +& \ch.Dm75f. +& \ch.Efm75f. +& \ch.Em75f. +& \ch.Fm75f. +& \ch.Fsm75f. +& \ch.Gm75f. +& \ch.Afm75f. +& \ch.Am75f. +& \ch.Bfm75f. +& \ch.Bm75f. +\\ + \chSrc{Cm75f} +& \chSrc{Csm75f} +& \chSrc{Dm75f} +& \chSrc{Efm75f} +& \chSrc{Em75f} +& \chSrc{Fm75f} +& \chSrc{Fsm75f} +& \chSrc{Gm75f} +& \chSrc{Afm75f} +& \chSrc{Am75f} +& \chSrc{Bfm75f} +& \chSrc{Bm75f} +\\ +\hline + +\end{tabular} + +\end{document} diff --git a/Master/texmf-dist/doc/pmxchords/examples/jazz/misty/misty.pdf b/Master/texmf-dist/doc/pmxchords/examples/jazz/misty/misty.pdf Binary files differnew file mode 100644 index 00000000000..86370f4594b --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/jazz/misty/misty.pdf diff --git a/Master/texmf-dist/doc/pmxchords/examples/jazz/misty/misty.pmx b/Master/texmf-dist/doc/pmxchords/examples/jazz/misty/misty.pmx new file mode 100644 index 00000000000..71e3f7a589a --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/jazz/misty/misty.pmx @@ -0,0 +1,155 @@ +%----------------% +% +% misty.pmx +% +% Created at: 2012-03-18 +% Author: Ondrej Fafejta <fafejtao@gmail.com> +%----------------% +--- +\input musixtex +\input pmx + +\input chords % default chords macro +%\input chordsCZ % czech chords macro B -> H, Bf -> B + +% better bars numbering +\def\writebarno{\llap{\tenrm\the\barno\barnoadd}} +\def\raisebarno{2\internote} +\def\shiftbarno{1.3\Interligne} + + +\def\raisevolta{8\internote} % change volta offset (default is 4\internote) +--- +% +% nv,noinst,mtrnuml,mtrdenl,mtrnmp,mtrdnp,xmtrnum0,isig, + 1 1 4 4 4 4 2 -3 +% +% npages,nsyst,musicsize,fracindent + 1 6 16 0 + +t +./ +\\\stafftopmarg12\Interligne\relax\ +%\\\staffbotmarg12\Interligne\relax\ +Tc99 +Erroll Garner +Tt +Misty +Ar +K-2+0 + +% +% Bar 0 +% +b44 g / + +% +% Bar 1 +% +m4400 +Rl \ch.Efmaj.\ r2b \ch.Ef6.\ r2b // +d24d [ b8 c ] / + +% +% Bar 2 +% +\ch.Bfm7.\ [ d84f c+ c c ] \ch.Ef7.\ [ c b g e ] / + +% +% Bar 3 +% +\ch.Afmaj.\ c24 \ch.Af6.\ r4x3 g a c4x3 e g / + +% +% Bar 4 +% +\ch.Afm7.\ [ b84 b b a ] \ch.Cs7.\ b4d a8 / + +% +% Bar 5 +% +\ch.Gm7.\ ( g44 g4x3 ) a b \ch.Cm7.\ ( e4- ex3 ) f g / + +% +% Bar 6 +% +\ch.Fm7.\ a84 c4- c8 \ch.Bf7.\ d2x3 e f / + +% +% Bar 7 +% +V1 +g0 s // +\ch.G7.\ r2b \ch.C7.\ r2b / + +% +% Bar 8 +% +\ch.Fm7.\ g2 s \ch.Bf7.\ r4 [ b8 g ] Rr / + +% +% Bar 9 +% +V2x +e04 // +\ch.Efmaj.\ r2b \ch.Fm7.\ r2b / + +% +% Bar 10 +% +\ch.Ef.\ r2x3 e44 f \ch.Fm.\ g2x3 b c Rd / + +% +% Bar 11 +% +Vb +\ch.Bfm.\ [ d85f d d d s ] \ch.F9f.\ d2 s s / + +% +% Bar 12 +% +\ch.Bfm7.\ d45 s [ d8f e ] \ch.Ef9f.\ ff2x3 e d / + +% +% Bar 13 +% +\ch.Afmaj.\ [ c85 c c c s ] \ch.Csmaj.\ c2 s / + +% +% Bar 14 +% +\ch.Afmaj.\ r2x3 e44 f a2x3 b c / + +% +% Bar 15 +% +\ch.Am7.\ [ d85 d d c ] \ch.D7.\ d2 s / + +% +% Bar 16 +% +\ch.Cm7.\ [ d85 s d d c ] \ch.F7.\ f2x3 d c / + +% +% Bar 17 +% +b04 s // +\ch.Gm7.\ r2b \ch.C7.\ r2b / + +% +% Bar 18 +% +\ch.Fm.\ b24 s \ch.Bf7.\ r4 [ b8 g ] Rd / + +% +% Bar 19 +% +V3 +e04 // +\ch.Efmaj.\ r2b \ch.C7.\ r2b / + +% +% Bar 20 +% +r0-1 // +\ch.Fm7.\ r2b \ch.Bf7.\ r2b / diff --git a/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema.pdf b/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema.pdf Binary files differnew file mode 100644 index 00000000000..1f6a1ca8f65 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema.pdf diff --git a/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema.pmx b/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema.pmx new file mode 100644 index 00000000000..2f7b8e58073 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema.pmx @@ -0,0 +1,93 @@ +%----------------% +% +% schema.pmx +% +% Created at: 2012-03-19 +% Author: Ondrej Fafejta <fafejtao@gmail.com> +%----------------% +--- +\input musixtex +\input pmx + +\input chords % default chords macro +%\input chordsCZ % czech chords macro B -> H, Bf -> B + +\nobarnumbers % disable bar numbers + +--- +% +% nv,noinst,mtrnuml,mtrdenl,mtrnmp,mtrdnp,xmtrnum0,isig, + 2 1 4 4 4 4 0 0 +% +% npages,nsyst,musicsize,fracindent + 1 1 16 0 + +bt +./ +\\\stafftopmarg12\Interligne\relax\ +%\\\staffbotmarg12\Interligne\relax\ +Ar +%K-3+1 +%K+3-1 + +%K+1+2 +%K-1-2 + +%K-2+3 +%K+2-3 + +%K+2+4 +%K-2-4 + +% +% Bar 1 +% +d22 g / +\ch.Dm7.\ c24 zf \ch.G7.\ b23 zf+ / + +% +% Bar 2 +% +e22 a / +\ch.Em7.\ d24 zg \ch.A7.\ cs24 zg+ / + +% +% Bar 3 +% +d22 g / +\ch.Dm7.\ c24 zf \ch.G7.\ b23 zf+ / + +% +% Bar 4 +% +c02 zc+ / +\ch.Cmaj.\ b23 ze \ch.C6.\ a- ze+ / + +% +% again in other position +% + +% +% Bar 5 +% +Rd d23 g- / +\ch.Dm7.\ f24 zc+ \ch.G7.\ f24 zb / + +% +% Bar 6 +% +e23 a- / +\ch.Em7.\ g24 zd+ \ch.A7.\ g24 zcs / + +% +% Bar 7 +% +d23 g- / +\ch.Dm7.\ f24 zc+ \ch.G7.\ f24 zb / + +% +% Bar 8 +% +c02 zc+ / +\ch.Cmaj.\ e24 zb+ \ch.C6.\ e- za / + diff --git a/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema_full.pdf b/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema_full.pdf Binary files differnew file mode 100644 index 00000000000..6f8ceb69110 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema_full.pdf diff --git a/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema_full.pmx b/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema_full.pmx new file mode 100644 index 00000000000..ca2acb5026d --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/jazz/schema/schema_full.pmx @@ -0,0 +1,93 @@ +%----------------% +% +% schema2.pmx +% +% Created at: 2012-03-19 +% Author: Ondrej Fafejta <fafejtao@gmail.com> +%----------------% +--- +\input musixtex +\input pmx + +\input chords % default chords macro +%\input chordsCZ % czech chords macro B -> H, Bf -> B + +\nobarnumbers % disable bar numbers + +--- +% +% nv,noinst,mtrnuml,mtrdenl,mtrnmp,mtrdnp,xmtrnum0,isig, + 2 1 4 4 4 4 0 0 +% +% npages,nsyst,musicsize,fracindent + 1 1 16 0 + +bt +./ +\\\stafftopmarg12\Interligne\relax\ +%\\\staffbotmarg12\Interligne\relax\ +Ar +%K-3+1 +%K+3-1 + +%K+1+2 +%K-1-2 + +%K-2+3 +%K+2-3 + +%K+2+4 +%K-2-4 + +% +% Bar 1 +% +d22 g / +\ch.Dm7.\ c24 ze zf za \ch.G7.\ b23 ze zf za / + +% +% Bar 2 +% +e22 a / +\ch.Em7.\ d24 zfs zg zb \ch.A7.\ cs24 zfs zg zb / + +% +% Bar 3 +% +d22 g / +\ch.Dm7.\ c24 ze zf za \ch.G7.\ b23 zef zf zaf / + +% +% Bar 4 +% +c02 zc+ / +\ch.Cmaj.\ b23 zd ze zg \ch.C6.\ a- zc ze zg / + +% +% again in other position +% + +% +% Bar 5 +% +Rd d23 g- / +\ch.Dm7.\ f24 za zc ze \ch.G7.\ f24 za zb ze / + +% +% Bar 6 +% +e23 a- / +\ch.Em7.\ g24 zb zd zfs \ch.A7.\ g24 zb zcs zfs / + +% +% Bar 7 +% +d23 g- / +\ch.Dm7.\ f24 za zc ze \ch.G7.\ f24 zas zb zef / + +% +% Bar 8 +% +c02 zc+ / +\ch.Cmaj.\ e24 zg zb zd \ch.C6.\ e- zg za zc / + diff --git a/Master/texmf-dist/doc/pmxchords/examples/noel/aj_co_to_hlasaju/aj_co_to_hlasaju.pdf b/Master/texmf-dist/doc/pmxchords/examples/noel/aj_co_to_hlasaju/aj_co_to_hlasaju.pdf Binary files differnew file mode 100644 index 00000000000..d21a69b202f --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/noel/aj_co_to_hlasaju/aj_co_to_hlasaju.pdf diff --git a/Master/texmf-dist/doc/pmxchords/examples/noel/aj_co_to_hlasaju/aj_co_to_hlasaju.pmx b/Master/texmf-dist/doc/pmxchords/examples/noel/aj_co_to_hlasaju/aj_co_to_hlasaju.pmx new file mode 100644 index 00000000000..553891104fd --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/noel/aj_co_to_hlasaju/aj_co_to_hlasaju.pmx @@ -0,0 +1,112 @@ +%----------------% +% +% aj_co_to_hlasaju.pmx +% +% created at: 2011-11-18 +% Autor: Ondrej Fafejta +%----------------% +--- +\input musixtex % These commands are necessary +\input pmx % because pmx.tex MUST be \input +\input musixlyr % before musixlyr.tex! + +%\input chordsCZ % chords input czech - B is displayed as H, Bf is displayed as B +\input chords % chords default - B -> B, Bf -> Bf + +\let\BM\beginmel % For brevity within the subsequent +\let\EM\endmel % music coding recommended + +\def\verseNum#1{\llap{\sl#1 }} + +\setlyrics{V1} +{\verseNum{1.}Aj, co to hl\'a-sa-j\'u +u n\'as v~d\v e-di-n\v e? +U\v z sa to roz-n\'es-lo v~ce-l\'ej do-li-n\v e. +Zro-di-lo sa v~Bet-l\'e-m\v e +Bo-\v z\'\i{} d\'\i{}t-ko na se-n\v e, +Ve-li-k\'y Me-si-\'a\v s, Vy-ku-pi-tel n\'a\v s.} + +\assignlyrics{1}{V1} +%\assignlyrics{2}{text}\lyrmodealter2 +% posuneme text vertikalne +%\lyrraise{1}{-2\internote} + +% better bars numbering +\def\writebarno{\llap{\tenrm\the\barno\barnoadd}} +\def\raisebarno{2\internote} +\def\shiftbarno{1.3\Interligne} + +% make a text that starts after the last system +\def\verses{ +\centerline{ + \vbox{ + \hbox{\verseNum{2.}K~Betl\'emu cesta je od n\'as dalek\'a,} + \hbox{ale m\v na mal\'eho nijak nelek\'a.} + \hbox{Obuju si papu\v cky, budu \v slapat tichu\v cky} + \hbox{dalek\'ym chodn\'\i{}\v ckem tam, za Je\v z\'\i{}\v skem} + } +} +\vskip1cm +\centerline{ + \vbox{ + \hbox{\verseNum{3.}V\v cera mn\v e sl\'ubili na\v si sta\v re\v cek,} + \hbox{\v ze mn\v e pro\v n zrobij\'u p\v ekn\'y hrk\'a\v cek.} + \hbox{Sta\v renka d\'a jabl\'\i{}\v cka pro Bo\v z\'\i{}ho syne\v cka:} + \hbox{To\v t m\'a\v s aj krupi\v cky, di\v ta malu\v ck\'y.} + } +} +} \ + +% add space between lowest staff and foot line +% and put the text in it: +\let\Endpiecesav\Endpiece\ +\def\Endpiece{\let\Endpiece\Endpiecesav\Endpiece\vskip 1.5cm\verses}\ + +--- +% +% nv,noinst,mtrnuml,mtrdenl,mtrnmp,mtrdnp,xmtrnum0,isig, + 1 1 2 4 2 4 0 -1 +% +% npages,nsyst,musicsize,fracindent + 1 2 16 0 + +t +./ +\\centerline{\bigtype Aj, co to hl\'asaj\'u}\ +\\vskip0.5cm\ +\\line{M\'\i{}rn\v e\hfill \sl Slov\'acko}\ +\\vskip.8cm\ +\\\stafftopmarg10\Interligne\relax\ +\\\staffbotmarg8\Interligne\relax\ + +% +% bar 1-4 +% +Ar +%K-2+2 +\ch.F.\ f84a a c4- | f8a a c4 | +\ch.C7.\ c15a b8da aa g | \ch.F.\ f4d r8 / + +% +% bar 5-8 +% +\ch.C.\ g84a g g4 | c8a g g4 | +\ch.G7.\ g14a f8da ea d | \ch.C.\ c4d \ch.C7.\ r8 / + +% +% bar 9-12 +% +\ch.F.\ c85a ca da c | \ch.Gm.\ ca ba b4 | +\ch.C7.\ b8a ba ca b | \ch.F.\ b8a a a4 / + +% +% bar 13-14 +% +\ch.Dm.\ f84a f f4 | \ch.Bf.\ f8a d+ d4 / + +% +% bar 15-16 +% +m3434 +\ch.Gm.\ c8a b \ch.F.\ a4 \ch.C7.\ g | +\ch.F.\ f2d / diff --git a/Master/texmf-dist/doc/pmxchords/examples/noel/pasli_ovce_valasi/README b/Master/texmf-dist/doc/pmxchords/examples/noel/pasli_ovce_valasi/README new file mode 100644 index 00000000000..fcb2186e502 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/noel/pasli_ovce_valasi/README @@ -0,0 +1,6 @@ +This noel shows how to write verse number in musixlyr. + +Special hidden space is prepared for verse number. +See the first BAR in pmx file + +\llyr\lyroffset{-3}\lyr\ diff --git a/Master/texmf-dist/doc/pmxchords/examples/noel/pasli_ovce_valasi/pasli_ovce_valasi.pdf b/Master/texmf-dist/doc/pmxchords/examples/noel/pasli_ovce_valasi/pasli_ovce_valasi.pdf Binary files differnew file mode 100644 index 00000000000..2ae8e3029d3 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/noel/pasli_ovce_valasi/pasli_ovce_valasi.pdf diff --git a/Master/texmf-dist/doc/pmxchords/examples/noel/pasli_ovce_valasi/pasli_ovce_valasi.pmx b/Master/texmf-dist/doc/pmxchords/examples/noel/pasli_ovce_valasi/pasli_ovce_valasi.pmx new file mode 100644 index 00000000000..1a802a6ec0b --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/examples/noel/pasli_ovce_valasi/pasli_ovce_valasi.pmx @@ -0,0 +1,84 @@ +%----------------% +% +% pasli_ovce_valasi.pmx +% +% created at: 2011-01-06 +% Author: Ondrej Fafejta <fafejtao@gmail.com> +%----------------% +--- +\input musixtex % These commands are necessary +\input pmx % because pmx.tex MUST be \input +\input musixlyr % before musixlyr.tex! + +\input chords % default chords macro +%\input chordsCZ % czech chords macro B -> H, Bf -> B + +\def\verseNum#1{\llap{\sl#1}} + +% +% lyrics +% +% The space after \verseNumber{x} is mandatory. +% +\setlyrics{v1} +{\verseNum{1.} P\'a-sli ov-ce Va-la-\v si, p\v ri be-tl\'em-sk\'em sa-la-\v si.} + +\setlyrics{v2} +{\verseNum{2.} An-d\v el se jim u-k\'a-zal, do Be-tl\'e-ma j\'\i{}t k\'a-zal.} + +\setlyrics{v3} +{\verseNum{3.} Vsta\v n-te ho-re a cho\v d-te, P\'a-na Kri-sta naj-de-te.} + +\setlyrics{v4} +{\verseNum{4.} On tam le-\v z\'\i{} v~je-sli\v c-k\'ach o-vi-nu-t\'y v~plen-\v ci\v c-k\'ach.} + +\setlyrics{ref} +{Haj-dom, haj-dom ty-dli dom, haj-dom, haj-dom ty-dli dom.} + +\assignlyrics{1}{v1,v2,v3,v4} + +% better bars numbering +\def\writebarno{\llap{\tenrm\the\barno\barnoadd}}% % REMOVE +\def\raisebarno{2\internote}% % REMOVE +\def\shiftbarno{1.3\Interligne}% % REMOVE + +--- +% +% +% +% nv,noinst,mtrnuml,mtrdenl,mtrnmp,mtrdnp,xmtrnum0,isig, + 1 1 2 4 2 4 0 0 +% +% npages,nsyst,musicsize,fracindent + 1 2 16 0 + +t +./ +\\centerline{\bigtype P\'asli ovce Vala\v si}\ +\\vskip8mm\ +\\interstaff{22}\ +\\\stafftopmarg14\Interligne\relax\ +\\\staffbotmarg8\Interligne\relax\ +%Tt +%P\'asli ovce vala\v si +% +% Bar 1-2 +% +% added hidden space for verse number. +\llyr\lyroffset{-3}\lyr\ +\ch.C.\ [ c85 g ] [ g f ] | [ e f ] g4 / + +% +% Bar 3-4 +% +[ c85 g ] [ g f ] | \ch.G7.\ [ e d ] \ch.C.\ c4 / + +% +% Bar 5-6 +% +\assignlyricshere{ref}\ \ch.C.\ [ c84 e ] [ e f ] | [ e d ] e4 / + +% +% Bar 7-8 +% +[ c84 e ] [ e f ] | \ch.G7.\ [ e d ] \ch.C.\ c4 / diff --git a/Master/texmf-dist/doc/pmxchords/gpl-2.0.txt b/Master/texmf-dist/doc/pmxchords/gpl-2.0.txt new file mode 100644 index 00000000000..d159169d105 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/gpl-2.0.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) 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 +this service 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 make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. 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. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +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 +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the 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 a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE 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. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + 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 2 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, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/Master/texmf-dist/doc/pmxchords/pmxchords-install.pdf b/Master/texmf-dist/doc/pmxchords/pmxchords-install.pdf Binary files differnew file mode 100644 index 00000000000..decfa88be36 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/pmxchords-install.pdf diff --git a/Master/texmf-dist/doc/pmxchords/pmxchords-install.tex b/Master/texmf-dist/doc/pmxchords/pmxchords-install.tex new file mode 100644 index 00000000000..1e1fef83171 --- /dev/null +++ b/Master/texmf-dist/doc/pmxchords/pmxchords-install.tex @@ -0,0 +1,100 @@ +\documentclass[11pt]{article} +\usepackage[textwidth=6.5in,textheight=8.5in]{geometry} +\usepackage[osf]{mathpazo} +\PassOptionsToPackage{urlcolor=black,colorlinks}{hyperref} +\RequirePackage{hyperref} +\usepackage{xcolor} +\newcommand{\myurl}[1]{\textcolor{blue}{\underline{\textcolor{black}{\url{#1}}}}} +\newcommand{\pmxVersion}{2.7.0} +\begin{document} +\title{Installation of the CTAN pmxchords Distribution} +\author{Bob Tennent\\ +\small\url{rdt@cs.queensu.ca}} +\date{\today} +\maketitle +\thispagestyle{empty} + +\section{Introduction} +We assume that you have already installed a MusiXTeX distribution +and PMX. +Before trying to install pmxchords from CTAN, check whether your TeX distribution +provides a package for pmxchords; this will be easier than doing it yourself. +But if your TeX distribution +doesn't have pmxchords (or doesn't have the most recent version), this distribution +of pmxchords is very easy to install, though +you may need to read the material on +installation of (La)TeX files in the +TeX FAQ\footnote{% +\myurl{http://www.tex.ac.uk/cgi-bin/texfaq2html}}, +particularly +the pages on +which tree to use\footnote{% +\myurl{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=what-TDS}} +and installing files\footnote{% +\myurl{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=inst-wlcf}}. + +\section{Installing \texttt{pmxchords.tds.zip}} + +In this distribution of pmxchords, most of the files to be installed +(including macros, documentation, and a processing script) are in +\texttt{tex-archive/install/support/pmxchords.tds.zip} at CTAN. +The file \verb|pmxchords.tds.zip| is a zipped TEXMF +hierarchy; simply download it and unzip in the root folder/directory of whichever TEXMF tree +you decide is most appropriate, likely a ``local'' or ``personal'' one. +This should work with any TDS\footnote{% +\myurl{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds}} +compliant TeX distribution, including MikTeX, TeXlive and teTeX. + +After unzipping the archive, update the filename database as necessary, +for example, by executing \verb\texhash ~/texmf\ or +clicking the button labelled ``Refresh FNDB" in the MikTeX settings program. + +Documentation for pmxchords is installed under \verb\doc/generic/pmx\ +in the TEXMF tree. + +\section{The Processing Script} + +The Lua script \verb\.../scripts/pmx/pmxchords.lua\ +transposes chord symbols in the \verb\pmx\ file as necessary +and then calls \verb\pmxab\. + +On a Unix-like system (with \texttt{texlua} installed), put a +symbolic link \texttt{pmxchords} in any directory on the executable PATH as follows: +\begin{list}{}{} +\item \verb\ln -s <path to pmxchords.lua> pmxchords \ +\end{list} +On Windows, you can \emph{either} +copy the batch file +\begin{list}{}{} +\item \verb|Windows\pmxchords.bat| +\end{list} +to a folder +on the executable PATH \emph{or} add the folder +\verb|Windows| to the executable PATH. + +\section{Testing} + +Copy \verb\doc/pmxchords/example/noel/aj_co_to_hlasaju/aj_co_to_hlasaju.pmx\ to a +working directory and do +\begin{list}{}{}\item +\verb\pmxchords aj_co_to_hlasaju\ +\end{list} +Then process the resulting \verb\aj_co_to_hlasaju.tex\ file as usual. The piece +is in the key of F~major. + +Uncomment the line +\verb\K-2+2\ in the \verb\pmx\ file and repeat as above; the piece should +now be typeset in D major, with appropriate chords. If the line +\begin{list}{}{}\item +\verb|\input chords| +\end{list} +in the source file is replaced by +\begin{list}{}{}\item +\verb|\input chordsCZ| +\end{list} +the chord symbols will be in Czech style (e.g., Hmi instead of Bmi). + +The macro calls for various chord symbols are displayed in the \verb|chordsRef| +and \verb|chordsRefCZ| documents. + +\end{document} diff --git a/Master/texmf-dist/scripts/pmxchords/ChordsTr.lua b/Master/texmf-dist/scripts/pmxchords/ChordsTr.lua new file mode 100644 index 00000000000..e58ff11424a --- /dev/null +++ b/Master/texmf-dist/scripts/pmxchords/ChordsTr.lua @@ -0,0 +1,124 @@ +--[[ + (c) Copyright 2013 Ondrej Fafejta <fafejtao@gmail.com> + https://github.com/fafejtao/pmxChords +]]-- +-- +-- Chords transposition class +-- +ChordsTr = {} -- the table representing the class, which will double as the metatable for the instances +ChordsTr.__index = ChordsTr -- failed table lookups on the instances should fallback to the class table, to get methods +setmetatable( + ChordsTr, + { + __call = function (cls, ...) + return cls.new(...) + end, + }) + +-- +-- global constants +-- +ChordsTr.CHORDS_BEGIN="\\ch." +ChordsTr.CHORDS_END=".\\" +ChordsTr.BASE_CHORDS_ARR= { -- lua is indexing from 1 I need from 0 ... + [0] = "C", + [1] = "Cs", + [2] = "D", + [3] = "Ef", + [4] = "E", + [5] = "F", + [6] = "Fs", + [7] = "G", + [8] = "Af", + [9] = "A", + [10] = "Bf", + [11] = "B" +} + +-- +-- Create instance of chords transposition class +-- params iSig input signature e.g. -1 - F major +-- oSig output signature e.g. 2 - D major +-- +function ChordsTr.new(iSig, oSig) + local self = setmetatable({}, ChordsTr) + self.trMap = ChordsTr.__createTransposeMap(oSig - iSig) + return self +end + +-- +-- Core of transposition. +-- Prepare map of transposed chords. +-- Key is input base chord and value is output base chord. +-- +function ChordsTr.__createTransposeMap(sigDiff) + local size = 12 + local halfTones = (sigDiff * 7) % size + if (halfTones < 0 ) then + halfTones = halfTones + size + end + + -- generate transpose map of base chords ... + local res = {} + local i + for i = 0, size - 1, 1 do + local key = ChordsTr.BASE_CHORDS_ARR[i] + local trIdx = (i + halfTones) % size; + res[key] = ChordsTr.BASE_CHORDS_ARR[trIdx] + end + return res +end + +-- +-- transpose one line. +-- Find each chords in line and transpose it into output signature. +-- return transposed line. +-- +function ChordsTr:lineTranspose(line) + local pos = 0; + local trLine = "" -- transposed line (result) + while true do + local i = string.find(line, ChordsTr.CHORDS_BEGIN, pos) + if i == nil then + trLine = trLine .. string.sub(line, pos) + break + end + i = i + 3 -- move after \ch. + trLine = trLine .. string.sub(line, pos, i) -- append non chord string into result + pos = string.find(line, ChordsTr.CHORDS_END, i) + if pos == nil then -- TODO check correctly end of chords ... e.g. check wrong line (first chord is not finished correctly): \ch.C. c \ch.G7.\ b + io.stderr:write("End of chords was not found!\n") + os.exit(-1) + end + chord = string.sub(line, i + 1, pos - 1) + trLine=trLine .. self:doTranspose(chord) + end + return trLine +end + +-- +-- do transpose of one chord. +-- +function ChordsTr:doTranspose(chord) + local base, alt = ChordsTr.splitChord(chord) + return self.trMap[base]..alt +end + +-- +-- Split chord into two part: base chord and chord alteration. +-- e.g. Fsm7 - base chord is Fs, alteration is m7 +-- +function ChordsTr.splitChord(chord) + if(chord.len == 1) then + return chord, "" + end + local secondChar = string.sub(chord, 2, 2) + if (secondChar == 's' or secondChar == 'f' ) then + return chord.sub(chord, 1, 2), chord.sub(chord, 3) + else + return chord.sub(chord, 1, 1), chord.sub(chord, 2) + end +end +-- +-- end of ChordsTr class +-- diff --git a/Master/texmf-dist/scripts/pmxchords/pmxchords.lua b/Master/texmf-dist/scripts/pmxchords/pmxchords.lua new file mode 100755 index 00000000000..13da5178d5b --- /dev/null +++ b/Master/texmf-dist/scripts/pmxchords/pmxchords.lua @@ -0,0 +1,194 @@ +#!/usr/bin/env texlua +-- +-- global constants +-- +VERSION = "0.9.1" +FILE_SUFFIX="_chtr" +PMX_CMD="pmxab" + +--[[ + pmxchords.lua: transposes chord macros (e,g., \ch.C.\) and calls pmxab + + (c) Copyright 2013 Ondrej Fafejta <fafejtao@gmail.com> + https://github.com/fafejtao/pmxChords + +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 2 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, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +--]] + +--[[ + ChangeLog: + + version 0.9.1 2013-12-09 - added some options. Improved processing. + + version 0.9 2013-12-05 - rewrite code from perl to lua... +--]] + +function usage() + print("Usage: [texlua] pmxchords.lua basename[.pmx] ") + print(" 1. transpose chords into new file basename"..FILE_SUFFIX..".pmx") + print(" 2. call pmxab on transposed file basename"..FILE_SUFFIX..".pmx") + print(" 3. rename basename"..FILE_SUFFIX..".tex to basename.tex") + print("options: -v version") + print(" -h help") + print(" -s stop after first step. e.g. generate only transposed basename"..FILE_SUFFIX..".pmx file") +end + +function whoami () + print("This is pmxchords.lua version ".. VERSION) +end + +whoami() +if #arg == 0 then + usage() + os.exit(0) +end + +kpse.set_program_name("luatex") -- allows ChordsTr.lua to be installed in a texmf tree +require "ChordsTr" + +function parseInputSignature(line) + -- parse input signature from pmx digits line. Only one line digits format is supported! + -- e.g. + -- 1 1 2 4 2 4 0 -1 + -- signature is -1 : F major + local res = string.match(line, "^%s*[0-9]+%s+[0-9]+%s+[0-9]+%s+[0-9]+%s+[0-9]+%s+[0-9]+%s+[0-9]+%s+([%+%-]?[0-9]+)%s*$") + return tonumber(res) +end + +function parseOutputSignature(line) + -- parse output signature from pmx + -- e.g. + -- K-2+2 + -- output signature is +2 : D major + local res = string.match(line, "^K[%+%-]?[0-9]+([%+%-]?[0-9]+)") + return tonumber(res) +end + +function handleErr(msg) + io.stderr:write(msg.."\n") + os.exit(2) +end + +-- +-- get file name without .pmx suffix +-- +function getBaseFileName(fileName) + if fileName ~= "" and string.sub(fileName, -4, -1) == ".pmx" then + return string.sub(fileName, 1, -5) + else + return fileName + end +end + +-- +-- Make chords transposition. Generates new pmx file with transposed chords. +-- +-- param baseName input file name without .pmx suffix +-- return outputBaseName transposed pmx file name without .pmx suffix +-- +function makeChordsTransposition(baseName) + local inputFileName = baseName..".pmx" + local inputFile = io.open(inputFileName, "r") + if(inputFile == nil) then + handleErr("File does not exist: "..inputFileName) + end + + local outputBaseName = baseName..FILE_SUFFIX -- output base name without suffix. Used for renaming generated .tex file ... + local outputFileName = outputBaseName..".pmx" + local outputFile = io.open(outputFileName, "w") + if(outputFile == nil) then + handleErr("Can not create temporary file: ".. outputFileName) + end + + -- + -- transpose chords from inputFile into outputFile + -- + -- input and output signature will be parsed from input pmx file + -- + local iSig = nil -- input signature + local chTr = nil -- chords transposition class + + for line in inputFile:lines() do + if(chTr ~= nil) then + outputFile:write(chTr:lineTranspose(line).."\n") + else + outputFile:write(line.."\n") + end + if(iSig == nil) then + iSig = parseInputSignature(line) + if(iSig ~= nil) then + io.stderr:write("Chords: input signature detected: "..iSig .."\n") + end + elseif(chTr == nil) then + local oSig = parseOutputSignature(line) + if(oSig ~= nil) then + io.stderr:write("Chords: output signature detected: "..oSig .."\n") + chTr = ChordsTr(iSig, oSig) + end + end + end + inputFile:close() + outputFile:close() + + return outputBaseName +end + +-- +-- Make pmxab process. +-- param baseName input file name without .pmx suffix +-- param outputBaseName transposed pmx file name without .pmx suffix +-- +function pmxabProcess(baseName, outputBaseName) + -- + -- call pmxab to generate .tex file + -- + local pmxResCode = os.execute(PMX_CMD .. " " .. outputBaseName ) + if (pmxResCode ~= 0 ) then + io.stderr:write("PMX process fail! "..outputBaseName .."\n") + os.exit(pmxResCode) + end + + os.rename(outputBaseName..".tex", baseName..".tex") + + -- remove temporary files + os.remove(outputBaseName..".pmx") + os.remove(outputBaseName..".pml") + os.remove("pmxaerr.dat") +end + +narg = 1 +onlyTranspose = false + +repeat + this_arg = arg[narg] + if this_arg == "-v" then + os.exit(0) + elseif this_arg == "-h" then + usage() + os.exit(0) + elseif this_arg == "-s" then + onlyTranspose = true + else + local baseName = getBaseFileName(this_arg) + local outputBaseName = makeChordsTransposition(baseName) + + if (not onlyTranspose) then + pmxabProcess(baseName, outputBaseName) + end + end + + narg = narg + 1 +until narg > #arg diff --git a/Master/texmf-dist/tex/generic/pmxchords/chords.tex b/Master/texmf-dist/tex/generic/pmxchords/chords.tex new file mode 100644 index 00000000000..fbf305ce1d0 --- /dev/null +++ b/Master/texmf-dist/tex/generic/pmxchords/chords.tex @@ -0,0 +1,333 @@ +\font\chFont=cmbx10 scaled \magstep0 +\font\chFontRm=cmbx8 scaled \magstep0 +\font\chFontIdx=cmbx7 scaled \magstep0 + + +\def\ch.#1.{\csname ch:#1\endcsname} +\def\defch.#1.{\expandafter \def \csname ch:#1\endcsname} + +\def\chFlat{$\scriptstyle\flat$} +\def\chSharp{$\scriptstyle\sharp$} +%\def\chDim{$\circ$} +\def\chDim{dim} +\def\chMaj{$\scriptstyle\bigtriangleup$} +%\def\chMaj{maj} + +% +% Base chords +% +\def\chVerticalAlign{13}% basic vertical align \internotes +\def\chBase#1{\zchar{\chVerticalAlign}{\chFont #1}} + +% +% Macros for chords without sharp or flat +% it means C, D, E, F, G, A, B +% +\def\chX#1{\chBase{#1}} +\def\chXOneParam#1#2{\chBase{#1{\chFontRm #2}}} +\def\chXm#1{\chXOneParam{#1}{m}} +\def\chXPlus#1{\chXOneParam{#1}{+}} +\def\chXSus#1{\chXOneParam{#1}{sus}} +\def\chXDim#1{\chXOneParam{#1}{\chDim}} +\def\chXMaj#1{\chXOneParam{#1}{\chMaj}} + +\def\chXOneParamUpper#1#2{\chBase{#1\lower-1ex\hbox{\chFontIdx #2}}} +%\def\chXDim#1{\chXOneParamUpper{#1}{\chDim}} +\def\chXSix#1{\chXOneParamUpper{#1}{6}} +\def\chXSeven#1{\chXOneParamUpper{#1}{7}} +\def\chXNine#1{\chXOneParamUpper{#1}{9}} +\def\chXNineFlat#1{\chXOneParamUpper{#1}{\chFontIdx 9\chFlat}} + +\def\chXTwoParams#1#2#3{\chBase{#1{\chFontRm #2}\lower-1ex\hbox{\chFontIdx #3}}} +\def\chXmSeven#1{\chXTwoParams{#1}{m}{7}} +\def\chXmSix#1{\chXTwoParams{#1}{m}{6}} +\def\chXmFiveFlat#1{\chXTwoParams{#1}{m}{5\chFlat}} +\def\chXSusSeven#1{\chXTwoParams{#1}{sus}{7}} + +\def\chXmSevenFiveFlat#1{\chBase{#1{\chFontRm m}\lower0.5ex\vbox{\baselineskip=1ex\hbox{\chFontIdx 7}\hbox{\chFontIdx 5\chFlat}}}} +%\def\chXmSevenFiveFlat#1{\chBase{#1{\chFontRm m}\lower0.5ex\vbox{\baselineskip=1ex\hbox{\chFontIdx 7}\hbox{\chFontIdx 5\chFlat}}}} + + +% +% Macros for chords with flat +% it means Ef, Af, Bf +% +\def\chXFlat#1{\chXOneParamUpper{#1}{\chFlat}} + +\def\chXFlatOneParam#1#2{\chBase{#1\lower-1.1ex\hbox{\chFlat}\kern-0.3em\hbox{\chFontRm #2}}} +\def\chXFlatm#1{\chXFlatOneParam{#1}{m}} +\def\chXFlatPlus#1{\chXFlatOneParam{#1}{+}} +\def\chXFlatSus#1{\chXFlatOneParam{#1}{sus}} +\def\chXFlatDim#1{\chXFlatOneParam{#1}{\chDim}} +\def\chXFlatMaj#1{\chXFlatOneParam{#1}{\chMaj}} + + +\def\chXFlatOneParamUpper#1#2{\chXOneParamUpper{#1}{\chFlat\kern 0.2ex\chFontIdx #2}} +\def\chXFlatSix#1{\chXFlatOneParamUpper{#1}{6}} +\def\chXFlatSeven#1{\chXFlatOneParamUpper{#1}{7}} +\def\chXFlatNine#1{\chXFlatOneParamUpper{#1}{9}} +\def\chXFlatNineFlat#1{\chXFlatOneParamUpper{#1}{9\chFlat}} + +\def\chXFlatTwoParams#1#2#3{\chBase{#1\lower-1.1ex\hbox{\chFlat}\kern-0.3em\hbox{\chFontRm #2}\lower-1ex\hbox{\chFontIdx #3}}} +\def\chXFlatmSeven#1{\chXFlatTwoParams{#1}{m}{7}} +\def\chXFlatmSix#1{\chXFlatTwoParams{#1}{m}{6}} +\def\chXFlatmFiveFlat#1{\chXFlatTwoParams{#1}{m}{5\chFlat}} +\def\chXFlatSusSeven#1{\chXFlatTwoParams{#1}{sus}{7}} + +\def\chXFlatmSevenFiveFlat#1{\chBase{#1\lower-1.1ex\hbox{\chFlat}\kern-0.3em{\chFontRm m\lower0.5ex\vbox{\baselineskip=1ex\hbox{\chFontIdx 7}\hbox{\chFontIdx 5\chFlat}}}}} + +% +% Macros for chords with sharp +% it means Cs, Fs +% +\def\chXSharp#1{\chXOneParamUpper{#1}{\chSharp}} + +\def\chXSharpOneParam#1#2{\chBase{#1\lower-1.4ex\hbox{\chSharp}\kern-0.3em\hbox{\chFontRm #2}}} +\def\chXSharpm#1{\chXSharpOneParam{#1}{m}} +\def\chXSharpPlus#1{\chXSharpOneParam{#1}{+}} +\def\chXSharpSus#1{\chXSharpOneParam{#1}{sus}} +\def\chXSharpDim#1{\chXSharpOneParam{#1}{\chDim}} +\def\chXSharpMaj#1{\chXSharpOneParam{#1}{\chMaj}} + + +\def\chXSharpOneParamUpper#1#2{\chXOneParamUpper{#1}{\chFontIdx\chSharp\kern 0.2ex#2}} +\def\chXSharpSix#1{\chXSharpOneParamUpper{#1}{6}} +\def\chXSharpSeven#1{\chXSharpOneParamUpper{#1}{7}} +\def\chXSharpNine#1{\chXSharpOneParamUpper{#1}{9}} +\def\chXSharpNineFlat#1{\chXSharpOneParamUpper{#1}{9\chFlat}} + +\def\chXSharpTwoParams#1#2#3{\chBase{#1\lower-1.4ex\hbox{\chSharp}\kern-0.3em\hbox{\chFontRm #2}\lower-1ex\hbox{\chFontIdx #3}}} +\def\chXSharpmSeven#1{\chXSharpTwoParams{#1}{m}{7}} +\def\chXSharpmSix#1{\chXSharpTwoParams{#1}{m}{6}} +\def\chXSharpmFiveFlat#1{\chXSharpTwoParams{#1}{m}{5\chFlat}} +\def\chXSharpSusSeven#1{\chXSharpTwoParams{#1}{sus}{7}} + +\def\chXSharpmSevenFiveFlat#1{\chBase{#1\lower-1.4ex\hbox{\chSharp}\kern-0.3em{\chFontRm m\lower0.5ex\vbox{\baselineskip=1ex\hbox{\chFontIdx 7}\hbox{\chFontIdx 5\chFlat}}}}} + +% +% C +% +\defch.C.{\chX{C}} +\defch.Cm.{\chXm{C}} +\defch.C+.{\chXPlus{C}} +\defch.C4.{\chXSus{C}} +\defch.Cdim.{\chXDim{C}} +\defch.Cmaj.{\chXMaj{C}} +\defch.C6.{\chXSix{C}} +\defch.C7.{\chXSeven{C}} +\defch.C9.{\chXNine{C}} +\defch.C9f.{\chXNineFlat{C}} +\defch.Cm7.{\chXmSeven{C}} +\defch.Cm6.{\chXmSix{C}} +\defch.Cm5f.{\chXmFiveFlat{C}} +\defch.C47.{\chXSusSeven{C}} +\defch.Cm75f.{\chXmSevenFiveFlat{C}} + +% +% D +% +\defch.D.{\chX{D}} +\defch.Dm.{\chXm{D}} +\defch.D+.{\chXPlus{D}} +\defch.D4.{\chXSus{D}} +\defch.Ddim.{\chXDim{D}} +\defch.Dmaj.{\chXMaj{D}} +\defch.D6.{\chXSix{D}} +\defch.D7.{\chXSeven{D}} +\defch.D9.{\chXNine{D}} +\defch.D9f.{\chXNineFlat{D}} +\defch.Dm7.{\chXmSeven{D}} +\defch.Dm6.{\chXmSix{D}} +\defch.Dm5f.{\chXmFiveFlat{D}} +\defch.D47.{\chXSusSeven{D}} +\defch.Dm75f.{\chXmSevenFiveFlat{D}} + +% +% E +% +\defch.E.{\chX{E}} +\defch.Em.{\chXm{E}} +\defch.E+.{\chXPlus{E}} +\defch.E4.{\chXSus{E}} +\defch.Edim.{\chXDim{E}} +\defch.Emaj.{\chXMaj{E}} +\defch.E6.{\chXSix{E}} +\defch.E7.{\chXSeven{E}} +\defch.E9.{\chXNine{E}} +\defch.E9f.{\chXNineFlat{E}} +\defch.Em7.{\chXmSeven{E}} +\defch.Em6.{\chXmSix{E}} +\defch.Em5f.{\chXmFiveFlat{E}} +\defch.E47.{\chXSusSeven{E}} +\defch.Em75f.{\chXmSevenFiveFlat{E}} + +% +% F +% +\defch.F.{\chX{F}} +\defch.Fm.{\chXm{F}} +\defch.F+.{\chXPlus{F}} +\defch.F4.{\chXSus{F}} +\defch.Fdim.{\chXDim{F}} +\defch.Fmaj.{\chXMaj{F}} +\defch.F6.{\chXSix{F}} +\defch.F7.{\chXSeven{F}} +\defch.F9.{\chXNine{F}} +\defch.F9f.{\chXNineFlat{F}} +\defch.Fm7.{\chXmSeven{F}} +\defch.Fm6.{\chXmSix{F}} +\defch.Fm5f.{\chXmFiveFlat{F}} +\defch.F47.{\chXSusSeven{F}} +\defch.Fm75f.{\chXmSevenFiveFlat{F}} + +% +% G +% +\defch.G.{\chX{G}} +\defch.Gm.{\chXm{G}} +\defch.G+.{\chXPlus{G}} +\defch.G4.{\chXSus{G}} +\defch.Gdim.{\chXDim{G}} +\defch.Gmaj.{\chXMaj{G}} +\defch.G6.{\chXSix{G}} +\defch.G7.{\chXSeven{G}} +\defch.G9.{\chXNine{G}} +\defch.G9f.{\chXNineFlat{G}} +\defch.Gm7.{\chXmSeven{G}} +\defch.Gm6.{\chXmSix{G}} +\defch.Gm5f.{\chXmFiveFlat{G}} +\defch.G47.{\chXSusSeven{G}} +\defch.Gm75f.{\chXmSevenFiveFlat{G}} + +% +% A +% +\defch.A.{\chX{A}} +\defch.Am.{\chXm{A}} +\defch.A+.{\chXPlus{A}} +\defch.A4.{\chXSus{A}} +\defch.Adim.{\chXDim{A}} +\defch.Amaj.{\chXMaj{A}} +\defch.A6.{\chXSix{A}} +\defch.A7.{\chXSeven{A}} +\defch.A9.{\chXNine{A}} +\defch.A9f.{\chXNineFlat{A}} +\defch.Am7.{\chXmSeven{A}} +\defch.Am6.{\chXmSix{A}} +\defch.Am5f.{\chXmFiveFlat{A}} +\defch.A47.{\chXSusSeven{A}} +\defch.Am75f.{\chXmSevenFiveFlat{A}} + +% +% Cs +% +\defch.Cs.{\chXSharp{C}} +\defch.Csm.{\chXSharpm{C}} +\defch.Cs+.{\chXSharpPlus{C}} +\defch.Cs4.{\chXSharpSus{C}} +\defch.Csdim.{\chXSharpDim{C}} +\defch.Csmaj.{\chXSharpMaj{C}} +\defch.Cs6.{\chXSharpSix{C}} +\defch.Cs7.{\chXSharpSeven{C}} +\defch.Cs9.{\chXSharpNine{C}} +\defch.Cs9f.{\chXSharpNineFlat{C}} +\defch.Csm7.{\chXSharpmSeven{C}} +\defch.Csm6.{\chXSharpmSix{C}} +\defch.Csm5f.{\chXSharpmFiveFlat{C}} +\defch.Cs47.{\chXSharpSusSeven{C}} +\defch.Csm75f.{\chXSharpmSevenFiveFlat{C}} + +% +% Fs +% +\defch.Fs.{\chXSharp{F}} +\defch.Fsm.{\chXSharpm{F}} +\defch.Fs+.{\chXSharpPlus{F}} +\defch.Fs4.{\chXSharpSus{F}} +\defch.Fsdim.{\chXSharpDim{F}} +\defch.Fsmaj.{\chXSharpMaj{F}} +\defch.Fs6.{\chXSharpSix{F}} +\defch.Fs7.{\chXSharpSeven{F}} +\defch.Fs9.{\chXSharpNine{F}} +\defch.Fs9f.{\chXSharpNineFlat{F}} +\defch.Fsm7.{\chXSharpmSeven{F}} +\defch.Fsm6.{\chXSharpmSix{F}} +\defch.Fsm5f.{\chXSharpmFiveFlat{F}} +\defch.Fs47.{\chXSharpSusSeven{F}} +\defch.Fsm75f.{\chXSharpmSevenFiveFlat{F}} + +% +% Ef +% +\defch.Ef.{\chXFlat{E}} +\defch.Efm.{\chXFlatm{E}} +\defch.Ef+.{\chXFlatPlus{E}} +\defch.Ef4.{\chXFlatSus{E}} +\defch.Efdim.{\chXFlatDim{E}} +\defch.Efmaj.{\chXFlatMaj{E}} +\defch.Ef6.{\chXFlatSix{E}} +\defch.Ef7.{\chXFlatSeven{E}} +\defch.Ef9.{\chXFlatNine{E}} +\defch.Ef9f.{\chXFlatNineFlat{E}} +\defch.Efm7.{\chXFlatmSeven{E}} +\defch.Efm6.{\chXFlatmSix{E}} +\defch.Efm5f.{\chXFlatmFiveFlat{E}} +\defch.Ef47.{\chXFlatSusSeven{E}} +\defch.Efm75f.{\chXFlatmSevenFiveFlat{E}} + +% +% Af +% +\defch.Af.{\chXFlat{A}} +\defch.Afm.{\chXFlatm{A}} +\defch.Af+.{\chXFlatPlus{A}} +\defch.Af4.{\chXFlatSus{A}} +\defch.Afdim.{\chXFlatDim{A}} +\defch.Afmaj.{\chXFlatMaj{A}} +\defch.Af6.{\chXFlatSix{A}} +\defch.Af7.{\chXFlatSeven{A}} +\defch.Af9.{\chXFlatNine{A}} +\defch.Af9f.{\chXFlatNineFlat{A}} +\defch.Afm7.{\chXFlatmSeven{A}} +\defch.Afm6.{\chXFlatmSix{A}} +\defch.Afm5f.{\chXFlatmFiveFlat{A}} +\defch.Af47.{\chXFlatSusSeven{A}} +\defch.Afm75f.{\chXFlatmSevenFiveFlat{A}} + +% +% B +% +\defch.B.{\chX{B}} +\defch.Bm.{\chXm{B}} +\defch.B+.{\chXPlus{B}} +\defch.B4.{\chXSus{B}} +\defch.Bdim.{\chXDim{B}} +\defch.Bmaj.{\chXMaj{B}} +\defch.B6.{\chXSix{B}} +\defch.B7.{\chXSeven{B}} +\defch.B9.{\chXNine{B}} +\defch.B9f.{\chXNineFlat{B}} +\defch.Bm7.{\chXmSeven{B}} +\defch.Bm6.{\chXmSix{B}} +\defch.Bm5f.{\chXmFiveFlat{B}} +\defch.B47.{\chXSusSeven{B}} +\defch.Bm75f.{\chXmSevenFiveFlat{B}} + +% +% Bf +% +\defch.Bf.{\chXFlat{B}} +\defch.Bfm.{\chXFlatm{B}} +\defch.Bf+.{\chXFlatPlus{B}} +\defch.Bf4.{\chXFlatSus{B}} +\defch.Bfdim.{\chXFlatDim{B}} +\defch.Bfmaj.{\chXFlatMaj{B}} +\defch.Bf6.{\chXFlatSix{B}} +\defch.Bf7.{\chXFlatSeven{B}} +\defch.Bf9.{\chXFlatNine{B}} +\defch.Bf9f.{\chXFlatNineFlat{B}} +\defch.Bfm7.{\chXFlatmSeven{B}} +\defch.Bfm6.{\chXFlatmSix{B}} +\defch.Bfm5f.{\chXFlatmFiveFlat{B}} +\defch.Bf47.{\chXFlatSusSeven{B}} +\defch.Bfm75f.{\chXFlatmSevenFiveFlat{B}} diff --git a/Master/texmf-dist/tex/generic/pmxchords/chordsCZ.tex b/Master/texmf-dist/tex/generic/pmxchords/chordsCZ.tex new file mode 100644 index 00000000000..55b7b22f5f7 --- /dev/null +++ b/Master/texmf-dist/tex/generic/pmxchords/chordsCZ.tex @@ -0,0 +1,333 @@ +\font\chFont=cmbx10 scaled \magstep0 +\font\chFontRm=cmbx8 scaled \magstep0 +\font\chFontIdx=cmbx7 scaled \magstep0 + + +\def\ch.#1.{\csname ch:#1\endcsname} +\def\defch.#1.{\expandafter \def \csname ch:#1\endcsname} + +\def\chFlat{$\scriptstyle\flat$} +\def\chSharp{$\scriptstyle\sharp$} +%\def\chDim{$\circ$} +\def\chDim{dim} +\def\chMaj{$\scriptstyle\bigtriangleup$} +%\def\chMaj{maj} + +% +% Base chords +% +\def\chVerticalAlign{13}% basic vertical align \internotes +\def\chBase#1{\zchar{\chVerticalAlign}{\chFont #1}} + +% +% Macros for chords without sharp or flat +% it means C, D, E, F, G, A, B +% +\def\chX#1{\chBase{#1}} +\def\chXOneParam#1#2{\chBase{#1{\chFontRm #2}}} +\def\chXm#1{\chXOneParam{#1}{m}} +\def\chXPlus#1{\chXOneParam{#1}{+}} +\def\chXSus#1{\chXOneParam{#1}{sus}} +\def\chXDim#1{\chXOneParam{#1}{\chDim}} +\def\chXMaj#1{\chXOneParam{#1}{\chMaj}} + +\def\chXOneParamUpper#1#2{\chBase{#1\lower-1ex\hbox{\chFontIdx #2}}} +%\def\chXDim#1{\chXOneParamUpper{#1}{\chDim}} +\def\chXSix#1{\chXOneParamUpper{#1}{6}} +\def\chXSeven#1{\chXOneParamUpper{#1}{7}} +\def\chXNine#1{\chXOneParamUpper{#1}{9}} +\def\chXNineFlat#1{\chXOneParamUpper{#1}{\chFontIdx 9\chFlat}} + +\def\chXTwoParams#1#2#3{\chBase{#1{\chFontRm #2}\lower-1ex\hbox{\chFontIdx #3}}} +\def\chXmSeven#1{\chXTwoParams{#1}{m}{7}} +\def\chXmSix#1{\chXTwoParams{#1}{m}{6}} +\def\chXmFiveFlat#1{\chXTwoParams{#1}{m}{5\chFlat}} +\def\chXSusSeven#1{\chXTwoParams{#1}{sus}{7}} + +\def\chXmSevenFiveFlat#1{\chBase{#1{\chFontRm m}\lower0.5ex\vbox{\baselineskip=1ex\hbox{\chFontIdx 7}\hbox{\chFontIdx 5\chFlat}}}} +%\def\chXmSevenFiveFlat#1{\chBase{#1{\chFontRm m}\lower0.5ex\vbox{\baselineskip=1ex\hbox{\chFontIdx 7}\hbox{\chFontIdx 5\chFlat}}}} + + +% +% Macros for chords with flat +% it means Ef, Af, Bf +% +\def\chXFlat#1{\chXOneParamUpper{#1}{\chFlat}} + +\def\chXFlatOneParam#1#2{\chBase{#1\lower-1.1ex\hbox{\chFlat}\kern-0.3em\hbox{\chFontRm #2}}} +\def\chXFlatm#1{\chXFlatOneParam{#1}{m}} +\def\chXFlatPlus#1{\chXFlatOneParam{#1}{+}} +\def\chXFlatSus#1{\chXFlatOneParam{#1}{sus}} +\def\chXFlatDim#1{\chXFlatOneParam{#1}{\chDim}} +\def\chXFlatMaj#1{\chXFlatOneParam{#1}{\chMaj}} + + +\def\chXFlatOneParamUpper#1#2{\chXOneParamUpper{#1}{\chFlat\kern 0.2ex\chFontIdx #2}} +\def\chXFlatSix#1{\chXFlatOneParamUpper{#1}{6}} +\def\chXFlatSeven#1{\chXFlatOneParamUpper{#1}{7}} +\def\chXFlatNine#1{\chXFlatOneParamUpper{#1}{9}} +\def\chXFlatNineFlat#1{\chXFlatOneParamUpper{#1}{9\chFlat}} + +\def\chXFlatTwoParams#1#2#3{\chBase{#1\lower-1.1ex\hbox{\chFlat}\kern-0.3em\hbox{\chFontRm #2}\lower-1ex\hbox{\chFontIdx #3}}} +\def\chXFlatmSeven#1{\chXFlatTwoParams{#1}{m}{7}} +\def\chXFlatmSix#1{\chXFlatTwoParams{#1}{m}{6}} +\def\chXFlatmFiveFlat#1{\chXFlatTwoParams{#1}{m}{5\chFlat}} +\def\chXFlatSusSeven#1{\chXFlatTwoParams{#1}{sus}{7}} + +\def\chXFlatmSevenFiveFlat#1{\chBase{#1\lower-1.1ex\hbox{\chFlat}\kern-0.3em{\chFontRm m\lower0.5ex\vbox{\baselineskip=1ex\hbox{\chFontIdx 7}\hbox{\chFontIdx 5\chFlat}}}}} + +% +% Macros for chords with sharp +% it means Cs, Fs +% +\def\chXSharp#1{\chXOneParamUpper{#1}{\chSharp}} + +\def\chXSharpOneParam#1#2{\chBase{#1\lower-1.4ex\hbox{\chSharp}\kern-0.3em\hbox{\chFontRm #2}}} +\def\chXSharpm#1{\chXSharpOneParam{#1}{m}} +\def\chXSharpPlus#1{\chXSharpOneParam{#1}{+}} +\def\chXSharpSus#1{\chXSharpOneParam{#1}{sus}} +\def\chXSharpDim#1{\chXSharpOneParam{#1}{\chDim}} +\def\chXSharpMaj#1{\chXSharpOneParam{#1}{\chMaj}} + + +\def\chXSharpOneParamUpper#1#2{\chXOneParamUpper{#1}{\chFontIdx\chSharp\kern 0.2ex#2}} +\def\chXSharpSix#1{\chXSharpOneParamUpper{#1}{6}} +\def\chXSharpSeven#1{\chXSharpOneParamUpper{#1}{7}} +\def\chXSharpNine#1{\chXSharpOneParamUpper{#1}{9}} +\def\chXSharpNineFlat#1{\chXSharpOneParamUpper{#1}{9\chFlat}} + +\def\chXSharpTwoParams#1#2#3{\chBase{#1\lower-1.4ex\hbox{\chSharp}\kern-0.3em\hbox{\chFontRm #2}\lower-1ex\hbox{\chFontIdx #3}}} +\def\chXSharpmSeven#1{\chXSharpTwoParams{#1}{m}{7}} +\def\chXSharpmSix#1{\chXSharpTwoParams{#1}{m}{6}} +\def\chXSharpmFiveFlat#1{\chXSharpTwoParams{#1}{m}{5\chFlat}} +\def\chXSharpSusSeven#1{\chXSharpTwoParams{#1}{sus}{7}} + +\def\chXSharpmSevenFiveFlat#1{\chBase{#1\lower-1.4ex\hbox{\chSharp}\kern-0.3em{\chFontRm m\lower0.5ex\vbox{\baselineskip=1ex\hbox{\chFontIdx 7}\hbox{\chFontIdx 5\chFlat}}}}} + +% +% C +% +\defch.C.{\chX{C}} +\defch.Cm.{\chXm{C}} +\defch.C+.{\chXPlus{C}} +\defch.C4.{\chXSus{C}} +\defch.Cdim.{\chXDim{C}} +\defch.Cmaj.{\chXMaj{C}} +\defch.C6.{\chXSix{C}} +\defch.C7.{\chXSeven{C}} +\defch.C9.{\chXNine{C}} +\defch.C9f.{\chXNineFlat{C}} +\defch.Cm7.{\chXmSeven{C}} +\defch.Cm6.{\chXmSix{C}} +\defch.Cm5f.{\chXmFiveFlat{C}} +\defch.C47.{\chXSusSeven{C}} +\defch.Cm75f.{\chXmSevenFiveFlat{C}} + +% +% D +% +\defch.D.{\chX{D}} +\defch.Dm.{\chXm{D}} +\defch.D+.{\chXPlus{D}} +\defch.D4.{\chXSus{D}} +\defch.Ddim.{\chXDim{D}} +\defch.Dmaj.{\chXMaj{D}} +\defch.D6.{\chXSix{D}} +\defch.D7.{\chXSeven{D}} +\defch.D9.{\chXNine{D}} +\defch.D9f.{\chXNineFlat{D}} +\defch.Dm7.{\chXmSeven{D}} +\defch.Dm6.{\chXmSix{D}} +\defch.Dm5f.{\chXmFiveFlat{D}} +\defch.D47.{\chXSusSeven{D}} +\defch.Dm75f.{\chXmSevenFiveFlat{D}} + +% +% E +% +\defch.E.{\chX{E}} +\defch.Em.{\chXm{E}} +\defch.E+.{\chXPlus{E}} +\defch.E4.{\chXSus{E}} +\defch.Edim.{\chXDim{E}} +\defch.Emaj.{\chXMaj{E}} +\defch.E6.{\chXSix{E}} +\defch.E7.{\chXSeven{E}} +\defch.E9.{\chXNine{E}} +\defch.E9f.{\chXNineFlat{E}} +\defch.Em7.{\chXmSeven{E}} +\defch.Em6.{\chXmSix{E}} +\defch.Em5f.{\chXmFiveFlat{E}} +\defch.E47.{\chXSusSeven{E}} +\defch.Em75f.{\chXmSevenFiveFlat{E}} + +% +% F +% +\defch.F.{\chX{F}} +\defch.Fm.{\chXm{F}} +\defch.F+.{\chXPlus{F}} +\defch.F4.{\chXSus{F}} +\defch.Fdim.{\chXDim{F}} +\defch.Fmaj.{\chXMaj{F}} +\defch.F6.{\chXSix{F}} +\defch.F7.{\chXSeven{F}} +\defch.F9.{\chXNine{F}} +\defch.F9f.{\chXNineFlat{F}} +\defch.Fm7.{\chXmSeven{F}} +\defch.Fm6.{\chXmSix{F}} +\defch.Fm5f.{\chXmFiveFlat{F}} +\defch.F47.{\chXSusSeven{F}} +\defch.Fm75f.{\chXmSevenFiveFlat{F}} + +% +% G +% +\defch.G.{\chX{G}} +\defch.Gm.{\chXm{G}} +\defch.G+.{\chXPlus{G}} +\defch.G4.{\chXSus{G}} +\defch.Gdim.{\chXDim{G}} +\defch.Gmaj.{\chXMaj{G}} +\defch.G6.{\chXSix{G}} +\defch.G7.{\chXSeven{G}} +\defch.G9.{\chXNine{G}} +\defch.G9f.{\chXNineFlat{G}} +\defch.Gm7.{\chXmSeven{G}} +\defch.Gm6.{\chXmSix{G}} +\defch.Gm5f.{\chXmFiveFlat{G}} +\defch.G47.{\chXSusSeven{G}} +\defch.Gm75f.{\chXmSevenFiveFlat{G}} + +% +% A +% +\defch.A.{\chX{A}} +\defch.Am.{\chXm{A}} +\defch.A+.{\chXPlus{A}} +\defch.A4.{\chXSus{A}} +\defch.Adim.{\chXDim{A}} +\defch.Amaj.{\chXMaj{A}} +\defch.A6.{\chXSix{A}} +\defch.A7.{\chXSeven{A}} +\defch.A9.{\chXNine{A}} +\defch.A9f.{\chXNineFlat{A}} +\defch.Am7.{\chXmSeven{A}} +\defch.Am6.{\chXmSix{A}} +\defch.Am5f.{\chXmFiveFlat{A}} +\defch.A47.{\chXSusSeven{A}} +\defch.Am75f.{\chXmSevenFiveFlat{A}} + +% +% Cs +% +\defch.Cs.{\chXSharp{C}} +\defch.Csm.{\chXSharpm{C}} +\defch.Cs+.{\chXSharpPlus{C}} +\defch.Cs4.{\chXSharpSus{C}} +\defch.Csdim.{\chXSharpDim{C}} +\defch.Csmaj.{\chXSharpMaj{C}} +\defch.Cs6.{\chXSharpSix{C}} +\defch.Cs7.{\chXSharpSeven{C}} +\defch.Cs9.{\chXSharpNine{C}} +\defch.Cs9f.{\chXSharpNineFlat{C}} +\defch.Csm7.{\chXSharpmSeven{C}} +\defch.Csm6.{\chXSharpmSix{C}} +\defch.Csm5f.{\chXSharpmFiveFlat{C}} +\defch.Cs47.{\chXSharpSusSeven{C}} +\defch.Csm75f.{\chXSharpmSevenFiveFlat{C}} + +% +% Fs +% +\defch.Fs.{\chXSharp{F}} +\defch.Fsm.{\chXSharpm{F}} +\defch.Fs+.{\chXSharpPlus{F}} +\defch.Fs4.{\chXSharpSus{F}} +\defch.Fsdim.{\chXSharpDim{F}} +\defch.Fsmaj.{\chXSharpMaj{F}} +\defch.Fs6.{\chXSharpSix{F}} +\defch.Fs7.{\chXSharpSeven{F}} +\defch.Fs9.{\chXSharpNine{F}} +\defch.Fs9f.{\chXSharpNineFlat{F}} +\defch.Fsm7.{\chXSharpmSeven{F}} +\defch.Fsm6.{\chXSharpmSix{F}} +\defch.Fsm5f.{\chXSharpmFiveFlat{F}} +\defch.Fs47.{\chXSharpSusSeven{F}} +\defch.Fsm75f.{\chXSharpmSevenFiveFlat{F}} + +% +% Ef +% +\defch.Ef.{\chXFlat{E}} +\defch.Efm.{\chXFlatm{E}} +\defch.Ef+.{\chXFlatPlus{E}} +\defch.Ef4.{\chXFlatSus{E}} +\defch.Efdim.{\chXFlatDim{E}} +\defch.Efmaj.{\chXFlatMaj{E}} +\defch.Ef6.{\chXFlatSix{E}} +\defch.Ef7.{\chXFlatSeven{E}} +\defch.Ef9.{\chXFlatNine{E}} +\defch.Ef9f.{\chXFlatNineFlat{E}} +\defch.Efm7.{\chXFlatmSeven{E}} +\defch.Efm6.{\chXFlatmSix{E}} +\defch.Efm5f.{\chXFlatmFiveFlat{E}} +\defch.Ef47.{\chXFlatSusSeven{E}} +\defch.Efm75f.{\chXFlatmSevenFiveFlat{E}} + +% +% Af +% +\defch.Af.{\chXFlat{A}} +\defch.Afm.{\chXFlatm{A}} +\defch.Af+.{\chXFlatPlus{A}} +\defch.Af4.{\chXFlatSus{A}} +\defch.Afdim.{\chXFlatDim{A}} +\defch.Afmaj.{\chXFlatMaj{A}} +\defch.Af6.{\chXFlatSix{A}} +\defch.Af7.{\chXFlatSeven{A}} +\defch.Af9.{\chXFlatNine{A}} +\defch.Af9f.{\chXFlatNineFlat{A}} +\defch.Afm7.{\chXFlatmSeven{A}} +\defch.Afm6.{\chXFlatmSix{A}} +\defch.Afm5f.{\chXFlatmFiveFlat{A}} +\defch.Af47.{\chXFlatSusSeven{A}} +\defch.Afm75f.{\chXFlatmSevenFiveFlat{A}} + +% +% B +% +\defch.B.{\chX{H}} +\defch.Bm.{\chXm{H}} +\defch.B+.{\chXPlus{H}} +\defch.B4.{\chXSus{H}} +\defch.Bdim.{\chXDim{H}} +\defch.Bmaj.{\chXMaj{H}} +\defch.B6.{\chXSix{H}} +\defch.B7.{\chXSeven{H}} +\defch.B9.{\chXNine{H}} +\defch.B9f.{\chXNineFlat{H}} +\defch.Bm7.{\chXmSeven{H}} +\defch.Bm6.{\chXmSix{H}} +\defch.Bm5f.{\chXmFiveFlat{H}} +\defch.B47.{\chXSusSeven{H}} +\defch.Bm75f.{\chXmSevenFiveFlat{H}} + +% +% Bf +% +\defch.Bf.{\chX{B}} +\defch.Bfm.{\chXm{B}} +\defch.Bf+.{\chXPlus{B}} +\defch.Bf4.{\chXSus{B}} +\defch.Bfdim.{\chXDim{B}} +\defch.Bfmaj.{\chXMaj{B}} +\defch.Bf6.{\chXSix{B}} +\defch.Bf7.{\chXSeven{B}} +\defch.Bf9.{\chXNine{B}} +\defch.Bf9f.{\chXNineFlat{B}} +\defch.Bfm7.{\chXmSeven{B}} +\defch.Bfm6.{\chXmSix{B}} +\defch.Bfm5f.{\chXmFiveFlat{B}} +\defch.Bf47.{\chXSusSeven{B}} +\defch.Bfm75f.{\chXmSevenFiveFlat{B}} diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index e00d5a90d0a..92593558827 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -363,7 +363,7 @@ my @TLP_working = qw( pictex pictex2 pictexsum piechartmp piff pigpen pinlabel pitex pittetd pkfix pkfix-helper pkuthss placeins placeins-plain plain-doc plainpkg plari plantslabels plates play plipsum - plnfss plstmary plweb pmgraph pmx pnas2009 + plnfss plstmary plweb pmgraph pmx pmxchords pnas2009 poemscol poetrytex polski poltawski polyglossia polynom polynomial polytable postcards poster-mac powerdot powerdot-FUBerlin diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index fd781c5e300..213001a9189 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -768,7 +768,6 @@ chomp ($Build = `cd $Master/../Build/source && pwd`); 'pitthesis', "die 'skipping, noinfo license", 'pl', "die 'skipping, not ready, cf. cc-pl, sorry", 'pl-qx', "&MAKEplqx", - 'pmxchords', "die 'skipping, problematic musixtex scripts'", 'pointRuler', "die 'skipping, requires compilation'", 'poltawski', "&MAKEcopy", 'polyglossia-kannada', "die 'skipping, now in polyglossia proper'", @@ -1183,6 +1182,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`); 'pgfplots' => '&POSTpgfplots', 'pict2e' => '&POSTpict2e', 'pmx' => '&POSTpmx', + 'pmxchords' => '&POST_do_man', 'prerex' => '&POSTprerex', 'pst-cox' => '&POSTpstcox', 'pst-geo' => '&POSTpstgeo', @@ -2469,6 +2469,7 @@ $standardxmt='\.xmt'; 'pkfix' => '\.pl$', 'pkfix-helper' => 'pkfix-helper$', 'pmx' => '\.lua$', + 'pmxchords' => 'pmxchords\.lua$', 'pst2pdf' => 'pst2pdf\.pl$', 'ptex2pdf' => 'ptex2pdf\.lua$', 'purifyeps' => 'purifyeps$', @@ -5678,6 +5679,8 @@ sub POST_do_man { $src_mandir = "$DEST/doc/man/man1"; } elsif (<$DEST/doc/*/$package/*.1>) { $src_mandir = "doc/*/$package"; + } elsif (<$DEST/doc/$package/*.1>) { + $src_mandir = "doc/$package"; } else { warn ("$0: could not find man pages starting from " . `pwd`); } diff --git a/Master/tlpkg/tlpsrc/collection-music.tlpsrc b/Master/tlpkg/tlpsrc/collection-music.tlpsrc index 3aab6e948b4..d44e21f4734 100644 --- a/Master/tlpkg/tlpsrc/collection-music.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-music.tlpsrc @@ -17,5 +17,6 @@ depend musixguit depend musixtex depend musixtex-fonts depend pmx +depend pmxchords depend songbook depend songs diff --git a/Master/tlpkg/tlpsrc/pmxchords.tlpsrc b/Master/tlpkg/tlpsrc/pmxchords.tlpsrc new file mode 100644 index 00000000000..aefd3a571c4 --- /dev/null +++ b/Master/tlpkg/tlpsrc/pmxchords.tlpsrc @@ -0,0 +1,2 @@ +binpattern f bin/${ARCH}/${PKGNAME} + |