summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/musixtex/examples/changecontext.tex
blob: 819a59131fafecb9c19bbfed8e6dad5f9ec06775 (plain)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
\input musixtex
\instrumentnumber2\setstaffs22%
\hsize 100mm \vsize 230mm
\generalmeter{\meterfrac{4}{4}\meterfrac{2}{4}\meterfrac{1}{4}}%
\setclef1{\bass}\generalsignature2%
\startpiece
\notes\qu K&\qu d|\qu e\en
%
% Signatures
% if there is no bar line, the signatures are confusing
% it is not clear if they are for a single note or not
% bar 1
%% Signature changing in a single instrument with 2 staves
\setsign21\changesignature
\notes\qu J&\qu d|\qu e\en
% Signature changing in a single instrument
%\setsign1{-1}\changesignature
%\notes\qu K&\qu d|\qu e\en
% Signature changing in a single staff without naturals
\setsign11\ignorenats\changesignature
\notes\qu M&\qu d|\qu e\en
% bar 2
% New signatures after a bar line
\generalsignature{-2}\changecontext%
\notes\qu K&\qu d|\qu e\en%
\notes\qu K&\qu d|\qu e\en%
% New signatures after an invisible bar line
\generalsignature{1}\zchangecontext%
\notes\qu K&\qu d|\qu e\en%
%
% new music line caused by mulooseness
\mulooseness1
%
% bar 3
%\setsign2{-1}\changesignature\Changecontext%
\setsign2{-1}\ignorenats\Changecontext%
%\zalaligne%
\notes\qu K&\qu d|\qu e\en%
% bar 4
\generalsignature{2}\ignorenats\Changecontext%
\notes\qu K&\qu d|\qu e\en%
% bar 5 OK :
\setsign1{-3}\setsign2{-3}\changecontext%
\notes\qu K&\qu d|\qu e\en%
% bar 6
% Are all this options common (choose 1 line of 3)?
%\generalsignature{-3}\changecontext\alaligne%
%\generalsignature{-3}\changesignature\setdoublebar\alaligne%
\generalsignature{-3}\changesignature\Changecontext%
%
\notes\qu K&\qu d|\qu e\en%
% bar 7
\generalsignature{2}\ignorenats\Changecontext%
\notes\qu K&\qu d|\qu e\en%
%
% Clefs
% in 1 staff and taking space
\setclef1\treble\changeclefs%
\notes\qu k&\cu{.d}\ccu{e}|\qu e\en%
% combined with signature change - space is already available
\setclef1\bass\zchangeclefs\setsign1{-2}\setsign2{-2}%
\ignorenats\changesignature%
\notes\qu K&\cu{de}|\qu e\en%
% clef change before barline
\setclef1\treble\zchangeclefs\bar%
\notes\qu k&\cu{de}|\qu e\en%
% clef change after barline
\setclef1\bass\bar\zchangeclefs%
\notes\qu K&\cu{de}|\qu e\en%
% bar 10
% Meter
\setmeter1{{\meterfrac{2}{4}}}%
% How big the '2' must be?
\setmeter2{{\lower2pt\hbox{\meterfrac{\Bigtype 2}{}}}%
{\meterfrac{3}{4}}}\changecontext
\notes\qu K&\cu{de}|\qu e\en
% bar 11
% Meter Clefs and Key Signatures
% all 3 clefs after bar if no changeclefs
\setmeter1{{\meterfrac{2}{8}}}%
\setmeter2{{\meterfrac{3}{6}}{\meterfrac{3}{8}}}%
\setsign2{-1}%
% How to force showing the bass clef?
\setclef1\bass\setclef2{23}%
\Changecontext
\notes\qu K&\cu{de}|\qu e\en
% bar 12
% Meter Clefs Keys Signatures all 3 with clef before the bar
% probably not if signatures are involved
\setmeter1{{\meterfrac{2}{4}}}%
\setmeter2{{\meterfrac{3}{8}}{\meterfrac{3}{6}}}%
\setsign2{-1}%
\setclef1\treble\zchangeclefs\changecontext
\notes\qu k&\cu{de}|\qu e\en
\mulooseness1\Stoppiece\eject\bye