-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
72 lines (48 loc) · 2.39 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
2012-03-16
Author: Ondrej Fafejta <[email protected]>
https://github.com/fafejtao/pmxChords
Pmxchords project extends preprocesor musixtex (PMX) to type chords over the notes.
PMX is preprocesor of musixtex and pmxchords is preprocesor of PMX.
Chords syntax is as inline tex command in .pmx file.
e.g.
\ch.C.\ c44 e \ch.G7.\ d2 | \ch.C.\ c r /
PMX can transpose notes to required signature.
Script pmxchords.lua transposes chords to required signature and then call pmxab to generate .tex file.
So user should use pmxchords.lua instead of pmxab to transpose chords and make .tex file.
The project contains musixtex_steps.lua script which makes three musixtex steps.
e.g. tex / musixflx / tex
musixtex_steps.lua is configurable. Some people want to use different command than etex or pdfetex.
It is configurable by environment variable.
For example for czech country I recomend to use csplain and pdfcsplain.
export MUSIXTEX_STEPS_TEX="csplain" # if not set - default value is etex
export MUSIXTEX_STEPS_PDFTEX="pdfcsplain" # if not set - default value is pdfetex
Installation
1. pre-requisite
I suppose you have installed musixtex, pmx, musixflx, musixlyr.
see
http://icking-music-archive.org/software/indexmt6.html
2. install chords macros
Copy files tex/chords*.tex to your home ~/texmf/tex/generic/pmxChords dir.
After copy the files you must call texhash command.
3. install pmxchords.lua script
pmxchords.lua requires class ChordsTr.lua
It is required to copy ChordsTr into lua package.path directory.
You can create your own lua package directory:
- create lua folder in your home directory
- set up your LUA_PATH environment variable. Full path is required - do not use ~/lua !
e.g. add line into you .bashrc file.
export LUA_PATH="/home/[user]/lua/?.lua;;"
- copy ChordsTr.lua into ~/lua directory
Try type the noel from example.
$ cd example/noel/aj_co_to_hlasaju
$ pmxchords.lua aj_co_to_hlasaju
$ musixtex_steps.lua aj_co_to_hlasaju
The noel is in original signature F-major.
Try to edit file aj_co_to_hlasaju.pmx and modify lines
\input chordsCZ % chords input czech - B is displayed as H, Bf is displayed as B
%\input chords % chords default - B -> B, Bf -> Bf
Next uncomment line
K-2+2
Call again pmxchords.lua and musixtex_steps.lua
The noel is in transposed signature D-major.
The chords is in czech format. It means the bar number 13 contains chords Hmi instead of Bmi.