2005-07-08 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/include/dots.hh (class Dots): make has_interface() static.
+
+ * python/convertrules.py (conv): add rule for ly:grob-default-font
+
* scm/define-grobs.scm (all-grob-descriptions): reorganize in
alphabetical order.
@itemize @bullet
+@item
+Explicit pitches may be added to trills,
+
+@lilypond[relative,verbatim,fragment]
+ \pitchedTrill c4\startTrillSpan fis f\stopTrillSpan
+@end lilypond
+
+This feature was sponsored by D. Josiah Boothby and Jamie Bullock
@item
Markup now supports formatting of text paragraphs, using
* Clusters::
* Special fermatas::
* Special noteheads::
+* Pitched trills::
* Feathered beams::
* Improvisation::
@end menu
SPONSORS
+Jamie Bullock
+D. Josiah Boothby
Sven Axelsson
}
\relative {
- \pitchedTrill c4\startTrillSpan fis f\stopTrillSpan
+ \pitchedTrill c4.\startTrillSpan fis f\stopTrillSpan
}
{
public:
DECLARE_SCHEME_CALLBACK (print, (SCM));
- bool has_interface (Grob *);
+ static bool has_interface (Grob *);
};
#endif // DOTS_HH
#include "engraver.hh"
+#include "dots.hh"
#include "group-interface.hh"
#include "axis-group-interface.hh"
#include "context.hh"
{
Music *mus = info.music_cause ();
- if (Note_head::has_interface (info.grob ()))
+ if (Note_head::has_interface (info.grob ())
+ || Dots::has_interface (info.grob ()))
{
heads_.push (info.grob ());
}
/* descr */ "Print the bracketed notehead after a notehead with trill.",
/* creats*/ "TrillPitchHead TrillPitchAccidental TrillPitchGroup",
/* accepts */ "",
- /* acks */ "script-interface text-spanner-interface note-head-interface",
+ /* acks */ "script-interface text-spanner-interface dots-interface note-head-interface",
/* reads */ "",
/* write */ "");
'dummy rule for 2.6'))
+
+def conv (str):
+ return re.sub('ly:get-default-font', 'ly:grob-default-font', str)
+
+conversions.append (((2, 7, 0), conv,
+
+ 'ly:get-default-font -> ly:grob-default-font'))
+
################################################################
def str_to_tuple (s):
+(ly:add-interface
+ 'pitched-trill-interface
+ "A note head to indicate trill pitches"
+ '(accidental-grob)
+ )
+
(ly:add-interface
'dynamic-interface
"Any kind of loudness sign"
(direction . ,LEFT)
(font-size . -4)
(print-function . ,Accidental_interface::print)
- (meta . ((interfaces . (item-interface font-interface))))
+ (meta . ((interfaces . (item-interface side-position-interface font-interface))))
))
(TrillPitchGroup
(print-function . ,parenthesize-elements)
(direction . ,RIGHT)
(padding . 0.3)
- (meta . ((interfaces . (font-interface item-interface axis-group-interface))))
+ (meta . ((interfaces . (side-position-interface
+ font-interface accidental-interface
+ item-interface axis-group-interface))))
))
(TrillPitchHead
(duration-log . 2)
(Y-offset-callbacks . (,Staff_symbol_referencer::callback))
(font-size . -4)
- (meta . ((interfaces . (item-interface font-interface ledgered-interface staff-symbol-referencer-interface))))
+ (meta . ((interfaces . (item-interface
+ font-interface pitched-trill-interface
+ ledgered-interface staff-symbol-referencer-interface))))
))