+1.3.46
+======
+
1.3.45.jcn2
+===========
* Fixed chord-name customisation and made small chord-name build fixes.
-1.3.45.jcn1
-===========
-
* Accidentals with chord-names smaller and as superscript.
* Do some extra footify (works only once) while making html docs.
- When I do
- make out=www -C Documentation/out-www/regression-test.html
+1.3.45.hwn1
+===========
+
+* Debian patch (Thanks Anthony)
+
+* Rewrote Bar_number_engraver and Mark_engraver and removed
+Bar_script_engraver as baseclass. Both Bar_number_engraver and
+Mark_engraver are simpler and more robust.
+
+* Fixed precedence of \property verticalDirection and dynamicDirection
- I expect a footified and white-backgrounded .html.
+* Fixed keys without barlines
+* Fixed StaffGroups: removing `\consistsend "Axis_group_engraver"'
+puts alignment in function again
+
+* Fixed StaffGroup + GrandStaff combination.
+
+* Music is now mandatory as the first tihng in a \score{} block
+
+1.3.45
+======
1.3.44.jcn2
===========
* Junked old lyrics in star-spangled-banner.
-1.3.44.jcn1
-===========
-
* Added a Piano_pedal_engraver.
* Removed some empty files.
1.3.43
======
-1.3.43.hwn1
-===========
-
* Put global element list into Line_of_score, instead of
Paper_score. post processing (the stage after line breaking) is now
truly done per-system, and we got rid of an ugly hack to get font
* Change all occurances of Staff_margin_engraver to
Instrument_name_engraver, add a convert-mudela rule
-* Change status == busy assert into programming sample/sample/error
+* Change status == busy assert into programming error
1.3.42
======
(\t\)
@end macro
+
+TODO:
+
+
@table @samp
@item @code{Generic_property_list}
Defines names and types for generic properties. These are properties
@cindex properties!Score
+
+
+
@table @samp
@item @code{skipBars}@indexcode{skipBars} @propertytype{boolean}
Set to 1 to skip the empty bars that are produced by
"Time_signature"
)
@end example
+
+
+@item @code{timing}@indexcode{timing} @propertytype{boolean}
+ Keep administration of measure length, position, bar number, etc?
+Switch off for cadenzas.
+
+@item @code{currentBarNumber}@indexcode{currentBarNumber} @propertytype{integer}
+ Contains the current barnumber. This property is incremented at
+every barline.
+
+@item @code{measurePosition}@indexcode{measurePosition} @propertytype{Moment}
+
+ How much of the current measure (measured in whole notes) have we had?
+
+@item @code{oneBeat}@indexcode{oneBeat} @propertytype{Moment}
+
+ How long does one beat in the current time signature last?
+
+@item @code{measureLength}@indexcode{measureLength} @propertytype{Moment}
+
+ How long does one measure in the current time signature last?
+
@end table
@subsubheading ChordNamesVoice properties
PACKAGE_NAME=LilyPond
MAJOR_VERSION=1
MINOR_VERSION=3
-PATCH_LEVEL=45
-MY_PATCH_LEVEL=jcn2
+PATCH_LEVEL=46
+MY_PATCH_LEVEL=
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
at-dir = $(outdir)/
at-ext =
-EXTRA_DIST_FILES = README.Debian TODO $(CONF_FILES) $(OUT_DIST_FILES) control.foka
-CONF_FILES = changelog copyright doc-base preinst postinst postrm prerm rules watch
+EXTRA_DIST_FILES = README.Debian TODO $(CONF_FILES) \
+ control.foka ex.prerm ex.doc-base
+CONF_FILES = changelog copyright emacsen-startup \
+ preinst postinst postrm rules watch
#OUTCONF_FILES = $(addprefix $(outdir)/, $(basename $(CONF_FILES))) $(OUTIN_FILES)
OUTCONF_FILES = $(OUTIN_FILES)
OUT_DIST_FILES = $(OUTIN_FILES)
-lilypond1.3 (1.3.41-1) frozen unstable; urgency=low
+lilypond1.3 (1.3.45-1) unstable; urgency=low
- * New upstream development release.
+ * New upstream release.
+
+ -- Anthony Fok <foka@debian.org> Fri, 14 Apr 2000 21:39:40 -0600
+
+lilypond1.3 (1.3.44-1) unstable; urgency=low
+
+ * New upstream development release with numerous bug fixes, small
+ enhancements, and updates to documentation.
* [debian/postinst]: Fixed the pathname to README.Debian. Thanks to
Olivier Abad for the bug report (closes: Bug#58674).
* [debian/rules]: Now configure with --enable-optimise again.
Yes, it appears that LilyPond and glibc2.1.3 finally get along
nicely even with optimisation turned on. Hurray! :-)
* [Documentation/user/*]: Fixed some formatting bugs in the texinfo files.
- * [debian/control]: Modified description to hint that 1.3.41 is better
+ * [debian/control]: Modified description to hint that 1.3.43 is better
than 1.2.17. :-)
* [debian/{rules,emacsen-startup}]: Added an Emacs startup file
/etc/emacs/site-start.d/50lilypond1.3.el so that lilypond-mode is
automatically loaded for *.ly files.
- -- Anthony Fok <foka@debian.org> Sat, 1 Apr 2000 03:49:31 -0700
+ -- Anthony Fok <foka@debian.org> Wed, 12 Apr 2000 21:22:31 -0600
lilypond1.3 (1.3.24-1) frozen unstable; urgency=low
+++ /dev/null
-Source: lilypond1.3
-Build-Depends: debhelper (>= 2.0.71), python-base (>= 1.5.2-4), libguile6-dev, tetex-bin (>= 1.0.5-1), tetex-base (>= 1.0-1), tetex-extra (>= 1.0-1), flex (>= 2.5.4a-1), bison (>= 1:1.28-1), texinfo (>= 4.0-1)
-Section: tex
-Priority: optional
-Maintainer: Anthony Fok <foka@debian.org>
-Standards-Version: 3.1.0
-
-Package: lilypond1.3
-Architecture: any
-Replaces: lilypond
-Provides: lilypond
-Depends: ${shlibs:Depends}, tetex-bin (>= 1.0.5-1)
-Recommends: python-base (>= 1.5.2-4), tetex-base (>= 1.0-1), tetex-extra (>= 1.0-1)
-Conflicts: lilypond, musixtex-fonts
-Description: A program for printing sheet music.
- LilyPond is a music typesetter. It produces beautiful sheet music
- using a high level description file as input. LilyPond is part of
- the GNU Project.
- .
- This is the unstable 1.3 branch of LilyPond. It is not intended for
- use with stable projects!
- .
- URLs: http://www.cs.uu.nl/~hanwen/lilypond/
- http://www.xs4all.nl/~jantien/lilypond/
- http://sca.uwaterloo.ca/~praetzel/lilypond/
- http://www.lilypond.org/
- Authors: Han-Wen Nienhuys <hanwen@cs.uu.nl>
- Jan Nieuwenhuizen <janneke@gnu.org>
Source: lilypond1.3
-Build-Depends: debhelper (>= 2.0.71), python-base (>= 1.5.2-4), libguile6-dev, tetex-bin (>= 1.0.5-1), tetex-base (>= 1.0-1), tetex-extra (>= 1.0-1), flex (>= 2.5.4a-1), bison (>= 1:1.28-1), texinfo (>= 4.0-1)
+Build-Depends: debhelper (>= 2.0.71), python-base (>= 1.5.2-4), libguile6-dev, tetex-bin (>= 1.0.5-1), tetex-extra (>= 1.0-1), flex (>= 2.5.4a-1), bison (>= 1:1.28-1), texinfo (>= 4.0-1), groff, gs, netpbm, pnmtopng, m4, gettext (>= 0.10.35-13)
Section: tex
Priority: optional
Maintainer: Anthony Fok <foka@debian.org>
-Standards-Version: 3.1.0
+Standards-Version: 3.1.1
Package: lilypond1.3
Architecture: any
Replaces: lilypond
Provides: lilypond
Depends: ${shlibs:Depends}, tetex-bin (>= 1.0.5-1)
-Recommends: python-base (>= 1.5.2-4), tetex-base (>= 1.0-1), tetex-extra (>= 1.0-1)
+Recommends: python-base (>= 1.5.2-4), tetex-extra (>= 1.0-1)
Conflicts: lilypond, musixtex-fonts
Description: A program for printing sheet music.
LilyPond is a music typesetter. It produces beautiful sheet music
using a high level description file as input. LilyPond is part of
the GNU Project.
.
- This is the unstable 1.3 branch of LilyPond. It is not intended for
- use with stable projects!
+ This is the developmental 1.3 branch of LilyPond. It is not intended for
+ use with stable projects, although arguably 1.3.45 is less buggy and much
+ more featureful than then the "stable" 1.2.17.
.
URLs: http://www.cs.uu.nl/~hanwen/lilypond/
http://www.xs4all.nl/~jantien/lilypond/
on Tue, 9 Nov 1999 22:30:32 -0700
It was downloaded from
- ftp://ftp.lilypond.org/pub/LilyPond/v1.3/lilypond-1.3.41.tar.gz
+ ftp://ftp.lilypond.org/pub/LilyPond/v1.3/lilypond-1.3.45.tar.gz
It is also available at:
- ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/v1.3/lilypond-1.3.41.tar.gz
+ ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/v1.3/lilypond-1.3.45.tar.gz
For more information about GNU LilyPond, please visit:
http://www.cs.uu.nl/~hanwen/lilypond/
+++ /dev/null
-Document: lilypond
-Title: LilyPond, the GNU Project music typesetter
-Author: Various
-Abstract: This documentation describes LilyPond (the GNU Project music
- typesetter), its language Mudela, and the Mutopia project, a.k.a.
- "Music To the People."
-Section: Apps/Music
-
-Format: info
-Index: /usr/share/info/lilypond.info.gz
-Files: /usr/share/info/lilypond.info*
--- /dev/null
+(autoload 'lilypond-mode "lilypond-mode" nil t)
+(setq auto-mode-alist (cons '("\\.ly$" . lilypond-mode) auto-mode-alist))
+(add-hook 'lilypond-mode-hook (lambda () (turn-on-font-lock)))
--- /dev/null
+Document: lilypond
+Title: LilyPond, the GNU Project music typesetter
+Author: Various
+Abstract: This documentation describes LilyPond (the GNU Project music
+ typesetter), its language Mudela, and the Mutopia project, a.k.a.
+ "Music To the People."
+Section: Apps/Music
+
+Format: info
+Index: /usr/share/info/lilypond.info.gz
+Files: /usr/share/info/lilypond.info*
--- /dev/null
+#!/bin/sh
+set -e
+
+install-info --quiet --remove /usr/share/info/lilypond.info.gz
+
+#DEBHELPER#
echo " Running /usr/bin/mktexlsr $TEXMFMAIN..."
/usr/bin/mktexlsr $TEXMFMAIN
-install-info --description='LilyPond, the GNU Project music typesetter' \
- --section "Music" "Music" \
- --quiet /usr/share/info/lilypond.info.gz
+#install-info --description='LilyPond, the GNU Project music typesetter' \
+# --section "Music" "Music" \
+# --quiet /usr/share/info/lilypond.info.gz
#DEBHELPER#
+++ /dev/null
-#!/bin/sh
-set -e
-
-install-info --quiet --remove /usr/share/info/lilypond.info.gz
-
-#DEBHELPER#
build-stamp:
dh_testdir
- ./configure --disable-checking --disable-debugging \
+ ./configure --enable-checking --disable-debugging \
--enable-printing --prefix=/usr --enable-optimise \
--enable-shared \
--infodir='$${prefix}/share/info' \
clean:
dh_testdir
dh_testroot
- rm -f build-stamp install-stamp
+ rm -f build-stamp
-$(MAKE) distclean
- rm -f stepmake/stepmake/aclocal.m4
+ # Remove obsolete files which are still in the upstream tarball (1.3.42)
+ rm -f debian/control.in debian/doc-base debian/prerm
dh_clean
# Correct the owner of the out/dummy.dep files when built with sudo.
--- /dev/null
+
+
+\include "paper16.ly";
+\score {
+ \notes {
+ \relative c'' \context Voice \sequential {
+ <dis ais e>
+ }
+ }
+ \paper{
+ linewidth = 5.0\cm;
+ }
+}
+++ /dev/null
-
-\score {
-\notes {
- \context AutoSwitchGrandStaff \relative c' {
- c8 d b a' a, f' g,4 ~ g
-
- }
-}
-
-\paper {
-\translator { \ScoreContext
-\accepts AutoSwitchGrandStaff;
-}
-\translator{
- \type "Engraver_group_engraver";
- \name AutoSwitchGrandStaff;
- \consists "Span_bar_engraver";
- \consists "Vertical_align_engraver";
- \consists "Piano_bar_engraver";
- \consistsend "Axis_group_engraver";
- minVerticalAlign = 2.*\staffheight;
- maxVerticalAlign = 2.*\staffheight;
- switcherName = "Voice";
- acceptorName = "Thread";
- staffContextName = "Staff";
-
- \accepts "AutoSwitchContext";
- \accepts "Staff";
-}
-\translator {
- \type "Engraver_group_engraver";
- \name "AutoSwitchContext";
- \consists "Staff_switching_translator";
-}
-
-}}
-
-\version "1.3.4";
+++ /dev/null
-
-\score { \notes <{ [ r8 g''16 des'] [r8 c16 a] }>}
+++ /dev/null
-% core dumps
-
-global = \notes {
- \key a \minor;
- \time 6/4;
-}
-
-\score{
- \notes \context PianoStaff <
- \global
- \context Staff=up { c }
- %\context Staff=down { \autochange Staff c }
- \context Staff=down { c }
- >
- \paper {
- \translator{
- \StaffContext
- }
- }
-}
-
-%
-% urg ik dacht dat jij generic-properties en dir had gefikst?
-% deze doet het wel in 1.3.37, voor je change + revert
-%
-\score{
-\context Voice=x \notes\relative c''{
-\property Voice.dynamicDirection = #-1
-\property Voice.verticalDirection = #1
-c\pp c c\< c \! c c \ff
-
-}
-\paper{
-}
-\midi{
-\tempo 1 = 60;
-}
-}
+++ /dev/null
-
-\key e; c2 \clef "treble";\key es; c \break c1
+++ /dev/null
-\score { \notes {
-c4 \clef bass ; c4}}
-\header {
- filename = "praeludium-fuga-E.ly";
- title = "praeludium and fuga in E-major";
- opus = "BWV 566";
- composer = "Johann Sebastian Bach (1685-1750)";
- enteredby = "JCN";
- copyright = "public domain";
-}
-%{
- description
-
- Praeludium 3 bar excerpt,
- 2nd fuga transposed subject -- 4 bar excerpt.
- We try to imitate the Griepenkerl/Keller edition which
- gives the best approximation to Bach's original layout
-
-%}
-%{
- Tested Features:
- purpose of this file is testing:
- * real-life collisions
- * multi-voice input --- splitting?
- * organ staff...
-%}
-
-\version "1.3.4";
-
-
praeludium_commands = \notes {
\time 4/4;
\notes { a' b' c' d' }
}
-% \break
+ \break
\context PianoStaff <
\context Staff = i {
+++ /dev/null
-
-\header {
- tagline="";
-}
-\version "1.3.5"
-\include "paper16.ly";
-\score {
- \notes {
- \relative c'' \sequential {
- \clef "violin";
- \time 5/4;
- \key c;
- <c4-\cr( g e>~ <dis ais e> <e, gis b> f )g-\rc
- }
- }
- \paper{
- linewidth = 5.0\cm;
- }
-}
--- /dev/null
+\score { \notes \context Staff {
+\stemup
+f'-. g-. a-. b-. c-. d-. e-.
+}}
+++ /dev/null
-\stemup
-f'-. g-. a-. b-. c-. d-. e-.
+++ /dev/null
-voice = \notes\relative c'{
- \property Staff.instrument = "Voice"
- \property Staff.instr = "V."
-
- % Staff_margin_engraver kan be `fixed' by doing a silly request:
- %\bar ".|";
-
- c1\break c \bar "|.";
-}
-
-soprano = \notes\relative c'{
- \property Staff.instrument = "Soprano"
- \property Staff.instr = "S."
- c1 c \bar "|.";
-}
-
-tenor = \notes \relative c'{
- \property Staff.instrument = "Tenor"
- \property Staff.instr = "T."
- c1 c
-}
-
-\score
-{
- \context StaffGroup<
- \context Staff = "voice" \voice
- \context GrandStaff<
- \context Staff = "soprano" \soprano
- \context Staff = "tenor" \tenor
- >
- >
-
- \paper {
- indent = 50.0\mm;
- linewidth = 100.0\mm;
- \translator { \StaffContext \consists Staff_margin_engraver; }
- }
-}
--- /dev/null
+
+
+\score { \notes <{ [ r8 g''16 des'] [r8 c16 a] }>}
+++ /dev/null
-% silly short upstem?
-\score{
-\context Staff \notes\relative c''{
-< a4 c e >
-}
-\paper{
-}
-}
--- /dev/null
+
+voice4 = \notes {
+\clef bass;
+ \property Staff.instrument = "Bass"
+ \property Staff.instr = "B"
+ \time 4/4; f,2 ( ) f,8 r8 f8 e8
+\repeat volta 2
+{
+ d8. d16 e8. f16 f8 c8 c16 c8.
+}
+\alternative
+{
+ { f,2 ( ) f,8 r8 f8 e8 ( \break }
+ { ) f,2. r8 c16 c16 |
+ }
+}
+}
+voicedefault = \notes {
+ \property Staff.timeSignatureStyle="C"
+ \time 4/4; \key f;
+ \tempo 4 = 200;
+}
+\score{
+ \notes <
+
+
+ \context Staff="4"
+ {
+ \$voicedefault
+ \$voice4
+ }
+
+ >
+ \paper {
+ font_normal = 12.;
+ \translator {
+ \StaffContext
+ \consists Instrument_name_engraver;
+ }
+ }
+}
+
\context Voice = two { \stemdown s2 e4 |
fis2 fis4 }
>
- \stemdown cis2 e4 |
- b4. b8 b4 |
+ \stemboth cis2 [e16( fis a \clef "treble"; b] |
+ d'4 ) b8 b8 b4 |
%19
}
%19
}
-
-
% these should be two separate scores...
\score{
\context Score \notes <
\property Score.midiInstrument = "church organ"
- \praeludiumRight r1 \fugaIIRight }
- \context Staff = bass {
+ \praeludiumRight
+ r1 \mark "B";
+ \fugaIIRight }
+ \context Staff = bass {
+ \property Staff.instrument = #"left"
+ \property Staff.instr = #"lt"
\praeludiumLeft r1 \fugaIILeft }
>
\context Staff = pedal \relative c <
{
- \property Staff.instrument = #"left"
- \property Staff.instr = #"lt"
+ \property Staff.instrument = #"bass"
+ \property Staff.instr = #"bs"
\time 4/4;
\key e;
\paper {
- \translator { \OrchestralScoreContext }
+ \translator {
+ \OrchestralScoreContext
+ }
\translator { \PianoStaffContext
\consists "Instrument_name_engraver";
}
(c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
-#include "bar-number-engraver.hh"
-#include "engraver-group-engraver.hh"
+
+#include "lily-guile.hh"
+#include "paper-column.hh"
+#include "paper-def.hh"
+#include "side-position-interface.hh"
+#include "staff-symbol.hh"
#include "text-item.hh"
#include "moment.hh"
+#include "engraver.hh"
+#include "protected-scm.hh"
-Bar_number_engraver::Bar_number_engraver()
+class Bar_number_engraver : public Engraver
{
- axis_ = Y_AXIS;
- type_ = "barNumber";
-}
-
+protected:
+ Text_item* text_p_;
+ Protected_scm visibility_lambda_;
+ Protected_scm staffs_;
+protected:
+ virtual void do_creation_processing ();
+ virtual void do_pre_move_processing ();
+ virtual void acknowledge_element (Score_element_info);
+ void create_items();
+ void do_process_music ();
+public:
+ VIRTUAL_COPY_CONS(Translator);
+ Bar_number_engraver();
+};
void
Bar_number_engraver::do_process_music ()
if (gh_number_p (bn) &&
!mp && now_mom () > Moment (0))
{
- create_items (0);
+ create_items ();
// guh.
text_p_->set_elt_property ("text",
ly_str02scm (to_str (gh_scm2int (bn)).ch_C()));
-
}
}
ADD_THIS_TRANSLATOR(Bar_number_engraver);
+
+Bar_number_engraver::Bar_number_engraver ()
+{
+ text_p_ =0;
+ staffs_ = SCM_EOL;
+}
+
+void
+Bar_number_engraver::do_creation_processing ()
+{
+ String t = "barNumberVisibilityFunction";
+ SCM proc = get_property (t);
+
+ if (gh_procedure_p (proc))
+ visibility_lambda_ = proc;
+}
+
+
+
+void
+Bar_number_engraver::acknowledge_element (Score_element_info inf)
+{
+ Score_element * s = inf.elem_l_;
+ if (dynamic_cast<Staff_symbol*> (s))
+ {
+ staffs_ = gh_cons (inf.elem_l_->self_scm_, staffs_);
+ }
+ else if (text_p_
+ && dynamic_cast<Item*> (s)
+ && s->get_elt_property ("break-align-symbol") == ly_symbol2scm ("Left_edge_item"))
+ {
+ /*
+ By default this would land on the Paper_column -- so why
+ doesn't it work when you leave this out? */
+ text_p_->set_parent (s, X_AXIS);
+ }
+}
+
+void
+Bar_number_engraver::do_pre_move_processing ()
+{
+ if (text_p_)
+ {
+ text_p_->set_elt_property ("side-support", staffs_);
+ typeset_element (text_p_);
+ text_p_ =0;
+ }
+}
+
+
+void
+Bar_number_engraver::create_items ()
+{
+ if (text_p_)
+ return;
+
+ text_p_ = new Text_item;
+ text_p_->set_elt_property ("breakable", SCM_BOOL_T); // ugh
+ Side_position_interface staffside(text_p_);
+ staffside.set_axis (Y_AXIS);
+
+ SCM prop = get_property ("barNumberDirection");
+ if (!isdir_b (prop))
+ {
+ prop = gh_int2scm (UP);
+ }
+ text_p_->set_elt_property ("direction", prop);
+
+ SCM padding = get_property ("barNumberScriptPadding");
+ if (gh_number_p(padding))
+ {
+ text_p_->set_elt_property ("padding", padding);
+ }
+ else
+ {
+ text_p_
+ ->set_elt_property ("padding",
+ gh_double2scm(paper_l ()->get_var ("interline")));
+ }
+
+ if (gh_procedure_p (visibility_lambda_))
+ text_p_->set_elt_property ("visibility-lambda",
+ visibility_lambda_);
+
+ announce_element (Score_element_info (text_p_, 0));
+}
+
+++ /dev/null
-/*
- bar-script-engraver.cc -- implement Bar_script_engraver
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-
- */
-
-#include "bar-script-engraver.hh"
-#include "bar.hh"
-#include "clef-item.hh"
-#include "side-position-interface.hh"
-#include "text-item.hh"
-#include "lily-guile.hh"
-#include "paper-column.hh"
-#include "paper-def.hh"
-#include "dimension-cache.hh"
-#include "staff-symbol-referencer.hh"
-#include "side-position-interface.hh"
-#include "staff-symbol.hh"
-
-Bar_script_engraver::Bar_script_engraver ()
-{
- axis_ = Y_AXIS;
- text_p_ =0;
-}
-
-void
-Bar_script_engraver::do_creation_processing ()
-{
- String t = type_ + "VisibilityFunction";
- SCM proc = get_property (t);
-
- if (gh_procedure_p (proc))
- visibility_lambda_ = proc;
-}
-
-
-/*
- Some interesting item came across. Lets attach the text and the
- positioner to the item.
-
-*/
-
-void
-Bar_script_engraver::attach_script_to_item (Item *i)
-{
- Axis other_axis = Axis((axis_ + 1)%2);
- if (text_p_ && !text_p_->parent_l(other_axis))
- {
- text_p_->set_parent (i,other_axis);
- text_p_->set_parent (i,axis_);
-
- if (!text_p_->parent_l(other_axis))
- text_p_->set_parent (i,other_axis);
-
- Side_position_interface (text_p_).add_support (i);
-
- /*
- How do we make sure that text_p_ has a dependency from
- someone else? We can't use I for that, so we use some other element.
- */
- // text_p_->set_elt_property ("dangling", SCM_BOOL_T)
- get_staff_info ().command_pcol_l ()->add_dependency (text_p_);
- }
-}
-
-/*
- URG.
- */
-Item*
-Bar_script_engraver::cast_to_interesting_item (Score_element *e)
-{
- Item * i =0;
-
- /*
- should do type lookup: if (e ->is_type (hang_on_type))
- */
- i = dynamic_cast<Bar*> (e);
-
- return i;
-}
-
-void
-Bar_script_engraver::acknowledge_element (Score_element_info inf)
-{
- if (inf.origin_trans_l_arr (this).size () == 1)
- {
- Item *i=cast_to_interesting_item (inf.elem_l_);
- if (!i)
- return;
-
- /* Only put numbers on bars that are at our own level (don't put
- numbers over the staffs of a GrandStaff, only over the GrandStaff
- itself */
- if (inf.origin_trans_l_arr (this).size () != 1)
- return;
-
- attach_script_to_item (i);
- }
-}
-
-void
-Bar_script_engraver::do_pre_move_processing ()
-{
- if (text_p_)
- {
- Staff_symbol * st = staff_symbol_referencer (text_p_).staff_symbol_l();
-
- if (st)
- side_position (text_p_).add_support (st);
-
- typeset_element (text_p_);
- text_p_ =0;
- }
-}
-
-
-void
-Bar_script_engraver::create_items (Request *rq)
-{
- if (text_p_)
- return;
-
- text_p_ = new Text_item;
- text_p_->set_elt_property ("breakable", SCM_BOOL_T); // ugh
- Side_position_interface staffside(text_p_);
- staffside.set_axis (axis_);
-
- SCM prop = get_property (type_ + "Direction");
- if (!isdir_b (prop))
- {
- prop = gh_int2scm (UP);
- }
- text_p_->set_elt_property ("direction", prop);
-
- SCM padding = get_property (type_ + "ScriptPadding");
- if (gh_number_p(padding))
- {
- text_p_->set_elt_property ("padding", padding);
- }
- else
- {
- text_p_
- ->set_elt_property ("padding",
- gh_double2scm(paper_l ()->get_var ("interline")));
- }
-
- if (gh_procedure_p (visibility_lambda_))
- text_p_->set_elt_property ("visibility-lambda",
- visibility_lambda_);
-
- announce_element (Score_element_info (text_p_, rq));
-}
-
+++ /dev/null
-/*
- bar-number-engraver.hh -- declare Bar_number_grav
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-*/
-
-
-#ifndef BAR_NUMBER_GRAV_HH
-#define BAR_NUMBER_GRAV_HH
-
-#include "bar-script-engraver.hh"
-
-class Bar_number_engraver : public Bar_script_engraver {
-protected:
- void do_process_music ();
-public:
- VIRTUAL_COPY_CONS(Translator);
- Bar_number_engraver();
-};
-#endif // BAR_NUMBER_GRAV_HH
+++ /dev/null
-/*
- bar-script-engraver.hh -- declare Bar_script_engraver
-
- source file of the GNU LilyPond music typesetter
-
- (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-
- */
-
-#ifndef BAR_SCRIPT_ENGRAVER_HH
-#define BAR_SCRIPT_ENGRAVER_HH
-#include "engraver.hh"
-#include "protected-scm.hh"
-
-/**
- put stuff over or next to bars. Examples: bar numbers, marginal notes,
- rehearsal marks.
- */
-class Bar_script_engraver : public Engraver
-{
-public:
- VIRTUAL_COPY_CONS(Translator);
-protected:
- Text_item* text_p_;
- Protected_scm visibility_lambda_;
- String type_;
- Axis axis_;
-
-protected:
- /**
- Put the script on #it#
- */
- void attach_script_to_item (Item *it);
- /**
- Return non-nil if we want to hang something on this.
- */
- Item *cast_to_interesting_item (Score_element*);
- Bar_script_engraver ();
- virtual void do_creation_processing ();
- virtual void do_pre_move_processing ();
- virtual void acknowledge_element (Score_element_info);
- void create_items(Request*);
-};
-
-
-#endif /* BAR_SCRIPT_ENGRAVER_HH */
-
Key_engraver();
VIRTUAL_COPY_CONS(Translator);
+
+ /*
+ TODO: move these into properties.
+ */
Key key_;
Key_change_req * keyreq_l_;
Key_item * item_p_;
Interval_t<int> head_positions_interval() const;
- // Interval width () const;
void translate_rests(int dy);
Note_head * first_head ()const;
#include "item.hh"
-/*
- Why don't I have a
- VIRTUAL_COPY_CONS (Score_element);
- see also note-head, rest.
- ?
-*/
-
class Rhythmic_head : public Item
{
public:
+
+ /*
+ Typically not used, since Rhythmic_head is not breakable.
+ */
+ VIRTUAL_COPY_CONS(Rhythmic_head);
int balltype_i () const;
void add_dots (Dots *);
else if (dynamic_cast<Bar *> (info.elem_l_)
&& accidental_idx_arr_.size ())
{
- bool def = (!item_p_);
create_key ();
- if (!def)
- {
- item_p_->set_elt_property ("visibility-lambda",
- scm_eval (ly_symbol2scm ("all-visible")));
- }
}
}
{
if (item_p_)
{
+ if (keyreq_l_)
+ item_p_->set_elt_property ("visibility-lambda",
+ scm_eval (ly_symbol2scm ("all-visible")));
+
typeset_element (item_p_);
item_p_ = 0;
}
/*
- TODO Slightly hairy.
+ TODO. Use properties; and this is too hairy.
*/
void
Key_engraver::read_req (Key_change_req const * r)
(c) 1998--2000 Jan Nieuwenhuizen <janneke@gnu.org>
*/
+
+#include "bar.hh"
+#include "clef-item.hh"
#include "command-request.hh"
-#include "bar-script-engraver.hh"
+#include "dimension-cache.hh"
#include "engraver-group-engraver.hh"
+#include "engraver.hh"
+#include "lily-guile.hh"
+#include "paper-column.hh"
+#include "paper-def.hh"
+#include "protected-scm.hh"
+#include "side-position-interface.hh"
+#include "staff-symbol-referencer.hh"
+#include "staff-symbol.hh"
#include "text-item.hh"
-/**Print rehearsal marks.
- */
-class Mark_engraver : public Bar_script_engraver
+/**
+ put stuff over or next to bars. Examples: bar numbers, marginal notes,
+ rehearsal marks.
+ */
+class Mark_engraver : public Engraver
{
public:
- Mark_engraver ();
VIRTUAL_COPY_CONS(Translator);
+ Mark_engraver ();
protected:
+ Text_item* text_p_;
+ Protected_scm visibility_lambda_;
+ Protected_scm staffs_;
+
+protected:
+ virtual void do_creation_processing ();
+ virtual void do_pre_move_processing ();
+ virtual void acknowledge_element (Score_element_info);
+ void create_items(Request*);
virtual bool do_try_music (Music *req_l);
virtual void do_process_music ();
virtual void do_post_move_processing ();
ADD_THIS_TRANSLATOR (Mark_engraver);
+
Mark_engraver::Mark_engraver ()
{
+ text_p_ =0;
mark_req_l_ = 0;
- axis_ = Y_AXIS;
- type_ = "mark";
+ staffs_ = SCM_EOL;
+}
+
+void
+Mark_engraver::do_creation_processing ()
+{
+ String t = "markVisibilityFunction";
+ SCM proc = get_property (t);
+
+ if (gh_procedure_p (proc))
+ visibility_lambda_ = proc;
+}
+
+
+
+void
+Mark_engraver::acknowledge_element (Score_element_info inf)
+{
+ Score_element * s = inf.elem_l_;
+ if (dynamic_cast<Staff_symbol*> (s))
+ {
+ staffs_ = gh_cons (inf.elem_l_->self_scm_, staffs_);
+ }
+ else if (text_p_ && dynamic_cast<Bar*> (s))
+ {
+ /*
+ Ugh. Figure out how to do this right at beginning of line, (without
+ creating class Bar_script : public Text_item).
+ */
+ text_p_->set_parent (s, X_AXIS);
+ }
}
+void
+Mark_engraver::do_pre_move_processing ()
+{
+ if (text_p_)
+ {
+ text_p_->set_elt_property ("side-support" , staffs_);
+ typeset_element (text_p_);
+ text_p_ =0;
+ }
+}
+
+
+void
+Mark_engraver::create_items (Request *rq)
+{
+ if (text_p_)
+ return;
+
+ text_p_ = new Text_item;
+ text_p_->set_elt_property ("breakable", SCM_BOOL_T); // ugh
+ Side_position_interface staffside(text_p_);
+ staffside.set_axis (Y_AXIS);
+
+ SCM prop = get_property ("markDirection");
+ if (!isdir_b (prop))
+ {
+ prop = gh_int2scm (UP);
+ }
+ text_p_->set_elt_property ("direction", prop);
+
+ SCM padding = get_property ("markScriptPadding");
+ if (gh_number_p(padding))
+ {
+ text_p_->set_elt_property ("padding", padding);
+ }
+ else
+ {
+ text_p_
+ ->set_elt_property ("padding",
+ gh_double2scm(paper_l ()->get_var ("interline")));
+ }
+
+ if (gh_procedure_p (visibility_lambda_))
+ text_p_->set_elt_property ("visibility-lambda",
+ visibility_lambda_);
+
+ announce_element (Score_element_info (text_p_, rq));
+}
+
+
void
Mark_engraver::do_post_move_processing ()
{
String t;
+ /*
+ automatic marks.
+ */
SCM m = (mark_req_l_->mark_label_ == SCM_UNDEFINED)
? get_property ("rehearsalMark")
: SCM(mark_req_l_->mark_label_);
}
;
-score_body: {
+score_body:
+ Music {
$$ = new Score;
$$->set_spot (THIS->here_input ());
+ $$->music_p_ = $1;
}
| SCORE_IDENTIFIER {
$$ = $1->access_content_Score (true);
| score_body mudela_header {
$$->header_p_ = $2;
}
- | score_body Music {
- if ($$->music_p_)
- $2->warning (_ ("More than one music block"));
- $$->music_p_ = $2;
- }
| score_body output_def {
$$->add_output ($2);
}
SCM support = me->get_elt_property ("side-support");
for (SCM s = support; s != SCM_EOL; s = gh_cdr (s))
{
- Score_element * e = unsmob_element ( gh_car (s));
+ Score_element * e = unsmob_element (gh_car (s));
if (e)
common = common->common_refpoint (e, axis);
}
#include "paper-column.hh"
#include "paper-def.hh"
-/*
- TODO: rename this to system-open-engraver (or whatever.)
-
- */
class System_start_delimiter_engraver : public Engraver
{
public:
VIRTUAL_COPY_CONS(Translator);
System_start_delimiter_engraver();
- Spanner * spanbar_;
protected:
-
+ Spanner * delim_;
virtual void acknowledge_element (Score_element_info);
virtual void do_creation_processing ();
virtual void do_removal_processing ();
ADD_THIS_TRANSLATOR(System_start_delimiter_engraver);
-
void
System_start_delimiter_engraver::acknowledge_element (Score_element_info inf)
{
if (dynamic_cast<Staff_symbol*> (inf.elem_l_))
{
/*
- don't add as Axis_group_interface (spanbar_).add_element (),
+ don't add as Axis_group_interface (delim_).add_element (),
because that would set the parent as well */
- Group_interface (spanbar_).add_element (inf.elem_l_);
+ Group_interface (delim_).add_element (inf.elem_l_);
}
else if (System_start_delimiter * b = dynamic_cast<System_start_delimiter *> (inf.elem_l_))
{
SCM gl = b->get_elt_property ("glyph");
- SCM my_gl = get_property ("spanBarGlyph");
+ SCM my_gl = delim_->get_elt_property ("glyph");
/*
UGH UGH
System_start_delimiter_engraver::System_start_delimiter_engraver()
{
- spanbar_ = 0;
+ delim_ = 0;
}
void
System_start_delimiter_engraver::do_creation_processing()
{
- spanbar_ = new System_start_delimiter;
- spanbar_->set_bound (LEFT, get_staff_info ().command_pcol_l ());
- announce_element (Score_element_info (spanbar_,0));
-}
+ delim_ = new System_start_delimiter;
+ delim_->set_bound (LEFT, get_staff_info ().command_pcol_l ());
-void
-System_start_delimiter_engraver::do_removal_processing ()
-{
+ /*
+ You can't override the glyph using \property, you must do it in
+ the predefined context (ie. \translator { ... } )
+ */
SCM s = get_property ("systemStartDelimiterGlyph");
if (gh_symbol_p (s))
{
- spanbar_->set_elt_property ("glyph", s);
+ delim_->set_elt_property ("glyph", s);
}
+ announce_element (Score_element_info (delim_,0));
+}
+
+void
+System_start_delimiter_engraver::do_removal_processing ()
+{
// ugh, should have naming without bracket
SCM collapse = get_property ("bracketCollapseHeight");
if (gh_number_p (collapse))
- spanbar_->set_elt_property ("collapse-height", collapse);
+ delim_->set_elt_property ("collapse-height", collapse);
else
- spanbar_->set_elt_property ("collapse-height", gh_double2scm (1));
+ delim_->set_elt_property ("collapse-height", gh_double2scm (1));
- spanbar_->set_bound (RIGHT, get_staff_info ().command_pcol_l ());
- typeset_element (spanbar_);
+ delim_->set_bound (RIGHT, get_staff_info ().command_pcol_l ());
+ typeset_element (delim_);
}
return Timing_translator::do_try_music (m);
}
+
#if 0
String
Timing_engraver::do_process_music ()
#endif
+/*
+ TODO make properties of this.
+ */
String
Timing_engraver::which_bar ()
{
/*
this is too complicated. Yet another version of side-positioning,
- badly implemented. */
+ badly implemented.
+
+ --
+
+ Should look for system_start_delim to find left edge of staff.
+*/
Molecule
Volta_spanner::do_brew_molecule () const
{
systemStartDelimiterGlyph = #'bracket
- \consistsend "Axis_group_engraver" ;
+
\name StaffGroup;
Time_signature
)
\consists "Spacing_engraver";
+
\consists "Vertical_align_engraver";
alignmentReference = \down;
defaultClef = #"treble"
Begin3
Title: LilyPond
-Version: 1.3.45
-Entered-date: 13APR00
+Version: 1.3.46
+Entered-date: 17APR00
Description:
Keywords: music notation typesetting midi fonts engraving
Author: hanwen@cs.uu.nl (Han-Wen Nienhuys)
janneke@gnu.org (Jan Nieuwenhuizen)
Maintained-by: hanwen@stack.nl (Han-Wen Nienhuys)
Primary-site: sunsite.unc.edu /pub/Linux/apps/sound/convert
- 1000k lilypond-1.3.45.tar.gz
+ 1000k lilypond-1.3.46.tar.gz
Original-site: ftp.cs.uu.nl /pub/GNU/LilyPond/development/
- 1000k lilypond-1.3.45.tar.gz
+ 1000k lilypond-1.3.46.tar.gz
Copying-policy: GPL
End
Name: lilypond
-Version: 1.3.45
+Version: 1.3.46
Release: 1
Copyright: GPL
Group: Applications/Publishing
-Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-1.3.45.tar.gz
+Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-1.3.46.tar.gz
Summary: A program for printing sheet music.
URL: http://www.cs.uu.nl/~hanwen/lilypond
# Icon: lilypond-icon.gif
(define generic-crescendo-properties
(cons "Crescendo" (list
- (list 'verticalDirection dir? 'direction)
(list 'dynamicDirection dir? 'direction)
+ (list 'verticalDirection dir? 'direction)
(list 'dynamicPadding number? 'padding)
(list 'dynamicMinimumSpace number? 'minimum-space)
)))
(define generic-dynamic-line-spanner-properties
(cons "Dynamic_line_spanner" (list
- (list 'verticalDirection dir? 'direction)
(list 'dynamicDirection dir? 'direction)
+ (list 'verticalDirection dir? 'direction)
(list 'dynamicPadding number? 'padding)
(list 'dynamicMinimumSpace number? 'minimum-space)
)))