Am 26.01.2017 um 14:11 schrieb Paul:
> On 01/26/2017 03:06 AM, Urs Liska wrote:
>
>> I want to do that in the initialization code, without requiring the user
>> to explicitly put an override somewhere in the music or a \layout.
>>
>> Any suggestions? TIA
>
> This is how I've done this.  Just put it in an include file and the
> user doesn't need to do anything but include the file.
>
>
> #(set-object-property! 'myprop 'backend-type? integer?)
>
> \layout {
>   \context {
>     \Staff
>     \override SomeGrob.myprop = 1
>   }
> }
>
>
> You may be able to swap out \Score for \Staff if you don't want to
> restrict it to \Staff.

Oh my, this is it.
For some reason I didn't think of simply adding a \layout block right
after the definition of the property ...

Thank you
Urs

>
> HTH,
> -Paul
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
[email protected]
https://openlilylib.org
http://lilypondblog.org


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to