[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Grace notes, accidentals and docu problems ...
From: |
Han-Wen Nienhuys |
Subject: |
Grace notes, accidentals and docu problems ... |
Date: |
Mon, 1 Apr 2002 21:15:45 +0200 |
address@hidden writes:
> Hi,
>
> I collected some bugs/features, missing features in lilypond 1.5.x
> Latest version tested: 1.5.47
>
> Grace notes:
> 1. Grace notes work quite well since 1.5 but I'm missing a feature.
> Example 1 can not be compiled using lilypond.
try this patch,
--- rhythmic-column-engraver.cc.~1.45.~ Sun Mar 24 21:46:54 2002
+++ rhythmic-column-engraver.cc Mon Apr 1 21:12:19 2002
@@ -132,15 +132,17 @@
Rhythmic_column_engraver::acknowledge_grob (Grob_info i)
{
Item * item = dynamic_cast <Item *> (i.grob_l_);
- if (item && Stem::has_interface (item))
+ if (!item || item->get_parent (X_AXIS))
+ return ;
+ if (Stem::has_interface (item))
{
stem_l_ = item;
}
- else if (item && Rhythmic_head::has_interface (item))
+ else if (Rhythmic_head::has_interface (item))
{
rhead_l_arr_.push (item);
}
- else if (item && Dot_column::has_interface (item))
+ else if (Dot_column::has_interface (item))
{
dotcol_l_ = item;
}
together with
\score{
\notes\context Voice{
\time 6/8
\clef violin
\key es \major
[a'8 ( \context GraceVoice \grace { [bes'16 a'16] } g'8 )
a'8] d''4 c''8 |
}
\paper { \translator { \VoiceContext
\accepts GraceVoice
}
\translator { \VoiceContext \name GraceVoice }
linewidth = -1.
}
}
I'll have a think how to put this into standard lilypond.
> 2. If grace notes are appended first all notes in all voices connected to the
> same beat as the main note are set before the grace notes start. I have
> seen an example in literature where the grace notes start as soon as
> possible after the main note.
>
> lilypond:
> voice 1: O <grace notes>
> voice 2: o' o' o' o'
>
> example:
> voice 1: O <grace notes>
> voice 2: o' o' o' o'
>
> where O is a half note and o' are eight's.
try
< c1
{ s16 \grace { .. } } >
in stead of
c1
--
Han-Wen Nienhuys | address@hidden | http://www.cs.uu.nl/~hanwen/