Re: Help using a Scheme variable in a function

2024-04-13 Thread ming tsang
Hello Mathew Fong, I am very interested in this scheme variable in a function, however I have a hard time generating a working .ly with sample output. Thank you. -- ming (lyndon) tsang

Re: Help using a Scheme variable in a function

2024-01-06 Thread Matthew Fong
Ah ha! Thank you, David! \override #`(line-width . ,rubricsWidthSU) does indeed work. I have to be mindful of the environment I'm using the variable in. Many thanks, mattfong On Sat, Jan 6, 2024 at 3:43 PM David Kastrup wrote: > David Kastrup writes: > > > David Kastrup writes: > > > >>

Re: Help using a Scheme variable in a function

2024-01-06 Thread David Kastrup
David Kastrup writes: > David Kastrup writes: > >> Matthew Fong writes: >> >>> I tried the following inside the function, and all generate errors. I would >>> like to use the value of rubricsWidthSU in this override. >>> >>> \override #'(line-width . \rubricsWidthSU) >>> \override

Re: Help using a Scheme variable in a function

2024-01-06 Thread David Kastrup
David Kastrup writes: > Matthew Fong writes: > >> I tried the following inside the function, and all generate errors. I would >> like to use the value of rubricsWidthSU in this override. >> >> \override #'(line-width . \rubricsWidthSU) >> \override #'(line-width . #rubricsWidthSU) >> \override

Re: Help using a Scheme variable in a function

2024-01-06 Thread David Kastrup
Matthew Fong writes: > I tried the following inside the function, and all generate errors. I would > like to use the value of rubricsWidthSU in this override. > > \override #'(line-width . \rubricsWidthSU) > \override #'(line-width . #rubricsWidthSU) > \override #'(line-width . ,rubricsWidthSU)

Re: Help using a Scheme variable in a function

2024-01-06 Thread Matthew Fong
I tried the following inside the function, and all generate errors. I would like to use the value of rubricsWidthSU in this override. \override #'(line-width . \rubricsWidthSU) \override #'(line-width . #rubricsWidthSU) \override #'(line-width . ,rubricsWidthSU) Many thanks, mattfong On Sat,

Help using a Scheme variable in a function

2024-01-06 Thread Matthew Fong
Hello everyone, I'm feeling somewhat confounded by LilyPond Scheme variables. I've created some global variables that I want to use in functions so I change up some custom spacing only one (as these may vary with staff size) I defined the following #(define kOneStaffUnitInInches 0.0761)