Re: Markup and Score from scheme function

2018-10-11 Thread Jan-Peter Voigt
Hello Sebastian, what do you mean with "return"? Do want to add the score immediatly or do you want to return an object containing both? You used the parser-location arguments in your scheme-function, so I guess you are using stable (2.18). I created an example for 2.18 (incomplete) and one for 2.

Re: Markup and Score from scheme function

2018-10-11 Thread Aaron Hill
On 2018-10-11 1:22 am, Sebastian Käppler wrote: Hello, I wonder if it is possible to return markup AND score from a single scheme function, something like this: example = #(define-scheme-function (parser location) () #{ \markup "Test" \score { c'4 } #} ) I created some scr

Re: Modified slur stencil with added markup

2018-10-11 Thread Torsten Hämmerle
Hi Urs, The centering of the slur stencil destroys its alignment (i.e. reference point), so I'd just leave it alone and center-align the text by explicitly calculating the necessary markup x shift from the stencil extents. %% \version "2.19.82" annotatedSlur = #(define-music-fun

Re: GrandStaff vertical distance

2018-10-11 Thread Lukas-Fabian Moser
Hi, Thank you for this little function Lukas! It is very good and useful. Would it be possible to add to the list the choice for "square" or "bracket"? Some editions are using squares for grouping Violins 1-2. Ah, do you mean an extra bracket? No problem. I also added the possibility to skip s

Modified slur stencil with added markup

2018-10-11 Thread Urs Liska
Hi, I modified the snippet http://lilypond.org/doc/v2.19/Documentation/snippets/text#text-center-text-below-hairpin-dynamics to create a slur with added centered text. It took me little effort to adapt the snippet to work with a slur instead of a hairpin but I have two problems I didn't manag

Re: GrandStaff vertical distance

2018-10-11 Thread foxfanfare
Lukas-Fabian Moser wrote >> With a little bit of scheme, it should even be easy to make this into >> a function accepting to parameters, indicating that k staves starting >> with the n'th staff should be braced. > > Here is an implementation of that. Unfortunately I do not know if/how it > is p

Re: GrandStaff vertical distance

2018-10-11 Thread David Kastrup
Lukas-Fabian Moser writes: > Hi David, > >>> Here is an implementation of that. Unfortunately I do not know if/how >>> it is possible to define the function (which issues a \set) in such a >>> way that it might be called in a \with block, which would be neater >>> imho. >> Have you tried just cal

Re: GrandStaff vertical distance

2018-10-11 Thread David Kastrup
Lukas-Fabian Moser writes: > Hi David, > >>> Here is an implementation of that. Unfortunately I do not know if/how >>> it is possible to define the function (which issues a \set) in such a >>> way that it might be called in a \with block, which would be neater >>> imho. >> Have you tried just cal

Re: GrandStaff vertical distance

2018-10-11 Thread Lukas-Fabian Moser
Hi David, Here is an implementation of that. Unfortunately I do not know if/how it is possible to define the function (which issues a \set) in such a way that it might be called in a \with block, which would be neater imho. Have you tried just calling it in a \with block? Stuff like \set is au

Re: GrandStaff vertical distance

2018-10-11 Thread David Kastrup
Lukas-Fabian Moser writes: >> With a little bit of scheme, it should even be easy to make this >> into a function accepting to parameters, indicating that k staves >> starting with the n'th staff should be braced. > > Here is an implementation of that. Unfortunately I do not know if/how > it is p

Re: GrandStaff vertical distance

2018-10-11 Thread Lukas-Fabian Moser
With a little bit of scheme, it should even be easy to make this into a function accepting to parameters, indicating that k staves starting with the n'th staff should be braced. Here is an implementation of that. Unfortunately I do not know if/how it is possible to define the function (which

Re: Instructions to install lilypond onto Raspberry Pi

2018-10-11 Thread Vivyan
Im following you instructions Jamie Ching this is what the compiler says after the first configure: WARNING: Please consider installing optional programs or files: guile-2.0 < 1.9.0 (installed: 2.0.13) ERROR: Please install required programs: International New Century Schoolbook fonts (make sure

Markup and Score from scheme function

2018-10-11 Thread Sebastian Käppler
Hello, I wonder if it is possible to return markup AND score from a single scheme function, something like this: example = #(define-scheme-function (parser location) () #{ \markup "Test" \score { c'4 } #} ) I created some scripts for teaching and want to include task-markup be

Re: GrandStaff vertical distance

2018-10-11 Thread David Kastrup
foxfanfare writes: > foxfanfare wrote >> This works better for most of the >> cases, but in this example, I was unable to group the celli and double >> bass >> staves... > > Answering my own problem here. I don't know how I got it, but after some > experimentations, I found: > \set StaffGroup.sys

Re: GrandStaff vertical distance

2018-10-11 Thread Lukas-Fabian Moser
Hi, In the meantime, I found another solution for this, but this doesn't appear to be the easiest way to do it! I used systemStartDelimiterHierarchy instead which doesn't add any space within a family group. Again, with the LilyPond exemple, this will give: [...] I would be interested if someo

Re: GrandStaff vertical distance

2018-10-11 Thread foxfanfare
foxfanfare wrote > This works better for most of the > cases, but in this example, I was unable to group the celli and double > bass > staves... Answering my own problem here. I don't know how I got it, but after some experimentations, I found: \set StaffGroup.systemStartDelimiterHierarchy =

Re: GrandStaff vertical distance

2018-10-11 Thread foxfanfare
Thanks for your reply SoundsFromSound, unfortunately, this doesn't solve my problem. I may have been unclear of what the problem is. I tried to understand how it was possible to configure in LP a full score layout. I searched for some templates and read how family groups works (http://lilypond.org