lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \tiny font in define-markup-function applied to list


From: Mats Bengtsson
Subject: Re: \tiny font in define-markup-function applied to list
Date: Wed, 16 Jan 2008 17:14:35 +0100
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

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
address@hidden
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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]