@cindex PMX
@cindex MusiXTeX
@cindex Simons, Don
-
pmx2ly converts from PMX to LilyPond input. The program is invoked as
follows:
version information
@end table
+@refbugs
+
+This script was updated last in September 2000, and then successfully
+converted the @file{barsant.pmx} example from the PMX
+distribution. Apparently no-one has ever bothered to use pmx2ly, since
+pmx2ly can not parse recent PMX files.
+
@node Invoking musedata2ly
@section Invoking musedata2ly
# -*-rpm-spec-mode-*-
%define info yes
+%define docdir %{_docdir}/lilypond/
Name: lilypond
Version: @TOPLEVEL_VERSION@
%description documentation
Documentation and example files of LilyPond. An index is available at
-%{_docdir}/web/Documentation/out-www/index.html
+%{docdir}/web/Documentation/out-www/index.html
%prep
%setup
./configure --disable-checking --prefix=%{_prefix} --enable-optimising
+
make MAKE_PFA_FILES=1 all
make -C mf/ pfa
def last_chord (self):
return self.chords[-1]
+
def add_chord (self, ch):
self.chords.append (ch)
self.entries.append (ch)
v.number = i
i = i+1
def set_clef (self, letter):
- clstr = clef_table[letter]
- self.voices[0].add_nonchord (Clef (clstr))
-
+ if clef_table.has_key (letter):
+ clstr = clef_table[letter]
+ self.voices[0].add_nonchord (Clef (clstr))
+ else:
+ sys.stderr.write ("Clef type `%c' unknown\n" % letter)
def current_voice (self):
return self.voices[self.voice_idx]
numbers = numbers + map (atonum, opening)
(no_staffs, no_instruments, timesig_num, timesig_den, ptimesig_num,
- ptimesig_den, pickup_beats,keysig_number) = tuple (numbers[0:8])
+ esig_den, pickup_beats,keysig_number) = tuple (numbers[0:8])
(no_pages,no_systems, musicsize, fracindent) = tuple (numbers[8:])
# ignore this.
ls = open (fn).readlines ()
def subst(s):
return re.sub ('%.*$', '', s)
+
ls = map (subst, ls)
+ ls = filter (lambda x: x <> '\n', ls)
ls = self.parse_header (ls)
left = string.join (ls, ' ')
- print left
+# print left
self.parse_body (left)
for c in self.staffs:
c.calculate ()