lilypond-user
[Top][All Lists]
Advanced

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

Re: Align scores in markup


From: Thomas Morley
Subject: Re: Align scores in markup
Date: Fri, 14 Aug 2015 03:34:48 +0200

2015-08-14 3:32 GMT+02:00 Thomas Morley <address@hidden>:
> 2015-08-14 3:13 GMT+02:00 MarcM <address@hidden>:
>> I am using a custom markup command that allows inserting scores into markups.
>> It works great except when one score uses high notes the scores are not
>> aligned.
>>
>> <http://lilypond.1069038.n5.nabble.com/file/n179568/shouldBeAligned.png>
>>
>> %=============================================
>> % WRITE SCORE
>> %
>> %=============================================
>> #(define-markup-command (writeScore layout props music) (ly:music?)
>>    (let ((score (ly:make-score music))
>>          (score-layout (ly:output-def-clone $defaultlayout)))
>>      ;; possibly, change some settings in the \layout block
>>      %(ly:output-def-set-variable! score-layout 'indent 0)
>>      ;; add the \layout block to the score
>>      (ly:score-add-output-def! score score-layout)
>
> delete #:vcenter
>
>>      (interpret-markup layout props (markup #:vcenter #:score score) )
>>      ))
>>
>>
>>
>> \markup {
>>   "this should be aligned" \writeScore ##{  c' d' e' #}
>>          "with this " \writeScore ##{  c'''' d'''' e'''' #}
>> }
>>
>
>

(hit wrong key)

> Though, I don't see an advantage not to use the default-markup-command:
\markup \score ...

Cheers,
  Harm

Please always post the version you use!!



reply via email to

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