Since you want it to apply to a horizontal line of markups, you have to use
the #:line markup command:
#(define-markup-command (mm layout props notetype beats) (string? string?)
(interpret-markup layout props
(markup
#:tiny #:line ("(" #:raise 0.4 #:note notetype 1 "=" beats ")" ))
))
/Mats
Paul Scott wrote:
Can anyone tell me how to apply \tiny to a list of text pieces in
define-markup-function or why the following:
#(define-markup-command (mm layout props notetype beats) (string?
string?)
(interpret-markup layout props
(markup
#:tiny (list "(" #:raise 0.4 (#:note notetype 1) "=" beats ")" )
)))
gives:
Preprocessing graphical objects...../short.ly:9:34: In expression
(#:note notetype 1):
../short.ly:9:34: Wrong type to apply: #:note
?
I can get the code to work by applying #:tiny to each piece of the
text individually.
TIA,
Paul Scott
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user