* ly/drumpitch-init.ly (drumPitchNames): add tamtam.
2006-03-06 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * ly/music-functions-init.ly (Module): add shiftDurations
+
+ * ly/drumpitch-init.ly (drumPitchNames): add tamtam.
+
* scm/paper.scm (paper-alist): no decimals for Ax paper sizes.
* ly/engraver-init.ly: init vocalName to nil.
MAKE_SCHEME_CALLBACK (Side_position_interface, y_aligned_on_support_refpoints, 1);
+
SCM
Side_position_interface::y_aligned_on_support_refpoints (SCM smob)
{
Drul_array<Real> shorten = robust_scm2interval (me->get_property ("shorten-pair"),
Interval (0, 0));
+
+
scale_drul (&edge_height, - Real (get_grob_direction (me)));
Interval empty;
(trim . mutetriangle)
(tri . triangle)
(trio . opentriangle)
+ (tt . tamtam)
(ua . oneup)
(ub . twoup)
(uc . threeup)
'origin location
'procedure proc))
+shiftDurations =
+#(define-music-function (parser location dur dots arg) (integer? integer? ly:music?)
+ (music-map
+ (lambda (x)
+ (shift-one-duration-log x dur dots)) arg))
+
musicMap =
#(define-music-function (parser location proc mus) (procedure? ly:music?)
(music-map proc mus))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(define (shift-one-duration-log music shift dot)
- " add SHIFT to ly:duration-log and optionally
+(define-public (shift-one-duration-log music shift dot)
+ " add SHIFT to duration-log of 'duration in music and optionally
a dot to any note encountered. This scales the music up by a factor
2^shift * (2 - (1/2)^dot)"
(let ((d (ly:music-property music 'duration)))