* ly/engraver-init.ly: remove alias "Current" from all contexts.
* lily/translator-group (find_existing_translator): If
n=="Current", return this context.
* lily/rest.cc:
* lily/time-signature.cc: spacing for even number of staff lines.
+2002-07-31 Rune Zedeler <rune@zedeler.dk>
+
+ * ly/engraver-init.ly: remove alias "Current" from all contexts.
+
+ * lily/translator-group (find_existing_translator): If
+ n=="Current", return this context.
+
+ * lily/rest.cc:
+ * lily/time-signature.cc: spacing for even number of staff lines.
+
2002-07-31 Han-Wen <hanwen@cs.uu.nl>
* input/bugs/: remove various files.
* ly/property-init.ly: Use "Current" context in the accidental
macros. TODO: Do the same in some of the other macros?
+ * scm/output-lib.scm (tablature-stem-attachment-function): add
+ duration argument. Now the function can be called again :-)
+
2002-07-30 Han-Wen <hanwen@cs.uu.nl>
* lily/parse-scm.cc (parse_handler): add better error message,
{
Grob *me = unsmob_grob (smob);
int bt = gh_scm2int (me->get_grob_property ("duration-log"));
- if (bt == 0 && Staff_symbol_referencer::line_count (me) > 1)
+ int lc = Staff_symbol_referencer::line_count (me);
+ Real ss = Staff_symbol_referencer::staff_space (me);
+ if(lc % 2)
{
- me->translate_axis (Staff_symbol_referencer::staff_space (me) , Y_AXIS);
+ if (bt == 0 && lc > 1)
+ {
+ me->translate_axis (ss , Y_AXIS);
+ }
+ }
+ else
+ {
+ me->translate_axis (ss/2 , Y_AXIS);
}
Grob * d = unsmob_grob (me->get_grob_property ("dot"));
Molecule res = Font_interface::get_default_font (me)->find_by_name (idx);
if(res.empty_b() && style!="")
style="";
- else
+ else
return res.smobbed_copy();
}
}
#include "paper-def.hh"
#include "font-interface.hh"
#include "warn.hh"
+#include "staff-symbol-referencer.hh"
MAKE_SCHEME_CALLBACK (Time_signature,brew_molecule,1);
/*
d = gh_scm2int (ly_cdr (frac));
}
-
+ Molecule m;
if (gh_symbol_p (st))
{
String style (ly_scm2string (scm_symbol_to_string (st)));
if (style[0]=='1')
{
- return time_signature (me, n, 0).smobbed_copy ();
+ m = time_signature (me, n, 0);
}
else
{
- return special_time_signature (me, style, n, d).smobbed_copy ();
+ m = special_time_signature (me, style, n, d);
}
}
else
- return time_signature (me, n,d).smobbed_copy ();
+ m = time_signature (me, n,d);
+
+ if (Staff_symbol_referencer::line_count (me) % 2 == 0)
+ m.translate_axis (Staff_symbol_referencer::staff_space (me)/2 , Y_AXIS);
+
+ return m.smobbed_copy ();
}
Molecule
Translator_group *
Translator_group::find_existing_translator (String n, String id)
{
- if (is_alias_b (n) && (id_string_ == id || id.empty_b ()))
+ if ((is_alias_b (n) && (id_string_ == id || id.empty_b ())) || n == "Current")
return this;
Translator_group* r = 0;
\consists "Forbid_line_break_engraver"
\consistsend "Axis_group_engraver"
-
minimumVerticalExtent = #'(-6 . 6)
extraVerticalExtent = ##f
verticalExtent = ##f
instr = ##f
\accepts "Voice"
- \alias "Current"
}
\accepts Staff
\name StaffContainer
- \alias "Current"
}
InnerChoirStaffContext = \translator {
\accepts "PianoStaff"
\accepts "Lyrics"
\accepts "ChordNames"
- \alias "Current"
}
ChoirStaffContext = \translator {
\InnerChoirStaffContext
\consists "Instrument_name_engraver"
\consistsend "Axis_group_engraver"
\accepts "Voice"
- \alias "Current"
}
\consists "Skip_req_swallow_translator"
\accepts Thread % bug if you leave out this!
- \alias "Current"
}
ThreadContext = \translator{
\consists "Note_head_line_engraver"
\consists "Output_property_engraver"
- \alias "Current"
}
systemStartDelimiter = #'SystemStartBrace
\accepts "Staff"
- \alias "Current"
}
PianoStaffContext = \translator{
\accepts "TabStaff"
\accepts "Lyrics"
\accepts "ChordNames"
- \alias "Current"
}
StaffGroupContext = \translator {
\InnerStaffGroupContext
\consists "Skip_req_swallow_translator"
phrasingPunctuation = #".,:!?\""
- \alias "Current"
}
NoteNamesContext = \translator {
\type "Engraver_group_engraver"
\consists "Note_name_engraver"
\consists "Separating_line_group_engraver"
- \alias "Current"
}
LyricsContext = \translator {
verticalExtent = ##f
\accepts "LyricsVoice"
- \alias "Current"
}
minimumVerticalExtent = ##f
extraVerticalExtent = ##f
verticalExtent = ##f
- \alias "Current"
}
\type "Score_engraver"
\name Score
\consists "Note_heads_engraver"
- \alias "Current"
}
barCheckSynchronize = ##t
\grobdescriptions #all-grob-descriptions
- \alias "Current"
}
OrchestralScoreContext= \translator {
% retain for compatibility reasons (FIXME: convert-ly)
GraceContext = \translator {
\type "Engraver_group_engraver"
- \alias "Current"
}
FiguredBassContext = \translator {
\name FiguredBass
\consists "Figured_bass_engraver"
\consistsend "Axis_group_engraver"
- \alias "Current"
}