+2002-11-13 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ * buildscripts/new-chords.py (edit): -e option: inline editing.
+
+ * input/regression/a*.ly (texidoc): syntax updates.
+
+ * Documentation/user/lilypond-book.itely (Integrating La@TeX{} and
+ music): elucidations.
+
2002-11-11 Juergen Reuter <reuter@ipd.uka.de>
* lily/include/lily-proto.hh, ly/engraver-init.ly,
import re
import string
import sys
+import getopt
+import os
+
def sub_chord (m):
str = m.group(1)
str= re.sub (r'@ACCENT@', '>', str)
return str
+(opts, files)= getopt.getopt( sys.argv[1:], 'e',['edit'])
+edit = 0
+for (o,a) in opts:
+ if o == '-e' or o == '--edit':
+ edit = 1
-print sub_chords (open (sys.argv[1]).read()) + marker_str
+for a in files:
+ str = open (a).read()
+ if re.search (str, marker_str):
+ continue
+
+ str = sub_chords (str) + marker_str
+
+ if edit:
+ open (a + '.NEW', 'w').write (str)
+ os.rename (a, a + '~')
+ os.rename (a + '.NEW', a)
+ else:
+ print str
}
}
}
+%% new-chords-done %%
\ No newline at end of file
\property Staff.Accidental \override #'style = #'parentheses
cis''?4
}}
+%% new-chords-done %%
\ No newline at end of file
}
+%% new-chords-done %%
\ No newline at end of file
}
\paper { linewidth = -1. }
}
+%% new-chords-done %%
\ No newline at end of file
indent=0.0
}
}
+%% new-chords-done %%
\ No newline at end of file
cis4
c4
\transpose c c' {
- <bis4 es gis>
- <es! as!>
- <gis! cis!>
- <g! des'>
- <ges! es'!>
+ <<bis es gis>>4
+ <<es! as!>>
+ <<gis! cis!>>
+ <<g! des'>>
+ <<ges! es'!>>
}
- <cis4 d es fis gis ases bes ces d dis >
- <bes'! fis!>
- <bes! cis!>
- <c! es ges beses>
- <bes! c d f >
- <bes,! c d f >
+ <<cis d es fis gis ases bes ces d dis >>4
+ <<bes'! fis!>>
+ <<bes! cis!>>
+ <<c! es ges beses>>
+ <<bes! c d f >>
+ <<bes,! c d f >>
}
\paper { linewidth = -1. }
}
+%% new-chords-done %%
\ No newline at end of file
}
>
}
+%% new-chords-done %%
\ No newline at end of file
\clef treble
\time 3/4
\context Voice {
- c8 h2 <g8 h des f> ~ |
- <g8 h des f>
+ c8 h2 <<g h des f>>8 ~ |
+ <<g h des f>>8
}
}
linewidth = -3.3 \cm
}
}
+%% new-chords-done %%
\ No newline at end of file
\context NoteNames=namesb \apply #no-octaves \voiceb
>
}
+%% new-chords-done %%
\ No newline at end of file
\context NoteNames \foo
>
}
+%% new-chords-done %%
\ No newline at end of file
}
}
+%% new-chords-done %%
\ No newline at end of file
\score{
\notes \transpose c c' {
- \context Voice < fis''-\arpeggio g d a >
- \context Voice < fis,-\arpeggio g d a >
- \context Voice < fis''-\arpeggio g d a >
+ << fis'' g d a >>-\arpeggio
+ << fis, g d a >>-\arpeggio
+ << fis'' g d a >>-\arpeggio
\hairyChord
}
\paper {
}
}
}
+
+%% new-chords-done %%
\score{
\context PianoStaff <
\context Staff=one \notes\relative c''{
- \context Voice < fis,-\arpeggio d a >
+ \context Voice << fis, d a >>-\arpeggio
\property Staff.Arpeggio \override #'arpeggio-direction = #1
- \context Voice < fis,-\arpeggio d a >
+ \context Voice << fis, d a >>-\arpeggio
%%\property PianoStaff.SpanArpeggio \override #'connect = ##t
\property PianoStaff.connectArpeggios = ##t
- <fis,-\arpeggio a c>
+ <<fis, a c>>-\arpeggio
}
\context Staff=two \notes\relative c{
\clef bass
- \context Voice < g b d-\arpeggio >
+ \context Voice << g b d >>-\arpeggio
\property Staff.Arpeggio \override #'arpeggio-direction = #-1
- \context Voice < g b d-\arpeggio >
- <g-\arpeggio b d>
+ \context Voice << g b d >>-\arpeggio
+ <<g b d>>-\arpeggio
}
>
}
linewidth=-1.
}
}
+%% new-chords-done %%
\ No newline at end of file
}
\paper{ }
}
+%% new-chords-done %%
\ No newline at end of file
[f8 f f ][f8 f f ] f f f f f f
}
}}
+%% new-chords-done %%
\ No newline at end of file
>
}
+%% new-chords-done %%
\ No newline at end of file