[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: draw box around score
From: Go77 <go77 () live ! nl>
Date: 2024-03-22 20:01:35
Message-ID: PAXP251MB01942B67D20255DD6822AFDBC8312 () PAXP251MB0194 ! EURP251 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]
Ah, perfect!
This works, Valentin.
Thanks!
Joop
On 22-03-2024 20:47, Valentin Petzel wrote:
> Or rather
>
> #(define-markup-command (book-title layout props) ()
> (interpret-markup
> layout props
> (ly:output-def-lookup layout 'bookTitleMarkup empty-markup)))
>
> \markup \box \column {
> \override
> #'(
> (header:title . "The title")
> (header:composer . "The composer")
> )
> \book-title
> \score { c'1 }
> }
>
> Cheers,
> Valentin
>
> Am Freitag, 22. März 2024, 20:46:16 CET schrieb Valentin Petzel:
>> Hello Joop,
>>
>> this would be hard to do, as this is tied to the page breaking algorithm.
>> Rather directly draw your header in your markup:
>>
>> #(define-markup-command (book-title layout props) ()
>> (interpret-markup
>> layout props
>> (ly:output-def-lookup layout 'bookTitleMarkup empty-markup)))
>>
>> \markup \box \center-column {
>> \override
>> #'(
>> (header:title . "The title")
>> (header:composer . "The composer")
>> )
>> \book-title
>> \score { c'1 }
>> }
>>
>> Cheers,
>> Valentin
>>
>> Am Freitag, 22. März 2024, 19:32:05 CET schrieb Go77:
>>> Hello Leo,
>>>
>>> I tried your suggestion, but it doesn't put the box around the header. I
>>> would like to include the header as well. Something with page formatting
>>> maybe?
>>>
>>> Joop
>>>
>>> On 22-03-2024 15:09, Leo Correia de Verdier wrote:
>>>> Sorry, I got a fudged quote-apostrophe in last answer. It should be:
>>>>
>>>> \markup \box \score { c'1 }
>>>>
>>>>> 22 mars 2024 kl. 15:06 skrev Leo Correia de Verdier
>>>>> <leo.correia.de.verdier@gmail.com>:
>>>>>
>>>>> Hi Joop!
>>>>>
>>>>> Do you mean something like
>>>>> \markup \box \score { c'1 }
>>>>>
>>>>> HTH
>>>>> /Leo
>>>>>
>>>>>> 22 mars 2024 kl. 14:40 skrev Go77 <go77@live.nl>:
>>>>>>
>>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I tried to find how to draw a box around a piece of music. Looked
>>>>>> through the manual, snippets etc, but didn't find out how to do this
>>>>>> yet. See below what I mean. Any suggestions?
>>>>>>
>>>>>> Joop
>>>>>>
>>>>>>
>>>>>> <piece_box.jpg>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic