Re: Weird interaction of paper variables, lyrics, rehearsal marks and span bars

2016-11-20 Thread Thomas Morley
2016-11-20 6:53 GMT+01:00 Kevin Barry : > Hi All, > > The behaviour I am seeing is very strange. I have done my best to > reduce it to as little code as possible (which is why it looks a bit > strange), but I can't find anything more I can remove without making > the problem suddenly disappear. Ple

Re: Weird interaction of paper variables, lyrics, rehearsal marks and span bars

2016-11-20 Thread Kevin Barry
Hi Thomas, Thank you very much for taking the time to explain it. I made the change you suggested. Kevin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Combining \markup and \override in a variable

2016-11-20 Thread David Sumbler
On Sat, 2016-11-19 at 19:58 +0100, David Kastrup wrote: > David Sumbler writes: > > > > > On Sat, 2016-11-19 at 00:27 +0100, Simon Albrecht wrote: > > > > > > On 18.11.2016 22:41, David Sumbler wrote: > > > > > > > > > > > > I need to study this (and the previous answer) to see if I can > > >

Re: Combining \markup and \override in a variable

2016-11-20 Thread David Kastrup
David Sumbler writes: > On Sat, 2016-11-19 at 19:58 +0100, David Kastrup wrote: >> > I find this very confusing. >> > >> > \tweak returns music, yet it requires a hyphen in front of it. [explanation] > This is very, very useful.  OK, I had to read it and think about it 3 > or 4 times before I

Re: Override SystemStartSquare width?

2016-11-20 Thread dtsmarin
*UPDATE* I found what causes the code to fail. Apparently it doesn't like at all the *\RemoveAllEmptyStaves*. I tested it multiple times both in my original file and a minimal version. This has to be fixed btw, those extra divisi staves are meant to be hidden most of the times :) HTH, Dimitris

Re: Override SystemStartSquare width?

2016-11-20 Thread Simon Albrecht
On 20.11.2016 14:26, dtsmarin wrote: *UPDATE* I found what causes the code to fail. Apparently it doesn't like at all the *\RemoveAllEmptyStaves*. I tested it multiple times both in my original file and a minimal version. This has to be fixed btw, those extra divisi staves are meant to be hidden

Re: Override SystemStartSquare width?

2016-11-20 Thread dtsmarin
I'm sorry, I thought it was easy to understand that I simply took Thomas's code and inserted the \RemoveAllEmptyStaves command. (My file has nothing to do with this error.) Anyway I attached the problematic code. originalfailed.ly

Re: general question for composers

2016-11-20 Thread David Bellows
I'm a composer in the classical tradition. Sheet music is everything. And I compose directly into Lilypond. I don't have access to any instruments and don't want to lug around manuscript paper. I also don't want to spend time writing all the music out by hand and then writing it out *again* in Lily

Re: Override SystemStartSquare width?

2016-11-20 Thread Simon Albrecht
On 20.11.2016 15:13, dtsmarin wrote: I'm sorry, I thought it was easy to understand that I simply took Thomas's code and inserted the \RemoveAllEmptyStaves command. (My file has nothing to do with this error.) Anyway I attached the problematic code. It’s easily fixed by an extra line catering

Re: try except in lilypond

2016-11-20 Thread Noeck
Hi Am 20.11.2016 um 01:00 schrieb Urs Liska: > However, I'm not sure how you can determine if a font is installed on > your system. That's exactly the point where I was thinking about try except. I tried this now as a top level scheme construct, #(if (file-exists? "somepath.ily") (#{

Re: try except in lilypond

2016-11-20 Thread Timothy Lanfear
On 20/11/16 15:44, Noeck wrote: Hi I tried this now as a top level scheme construct, #(if (file-exists? "somepath.ily") (#{ \include "somepath.ily" #})) But lilypond does not like it. Do I need a scheme function (even without arguments)? Is including inside scheme possible? I fear

Re: Create a bookpart with a scheme function

2016-11-20 Thread Timothy Lanfear
On 18/11/16 08:47, Freddy Ouellette wrote: Still a little confused about how to dynamically create a bookpart: \version "2.18.2" freddy = \bookpart { \score { \new Staff { c d e f g } } } full_scores = \book { } #(ly:book-add-bookpart! full_scores freddy) \full_scores th

Re: Override SystemStartSquare width?

2016-11-20 Thread dtsmarin
Many thanks Simon! Works really great. -- View this message in context: http://lilypond.1069038.n5.nabble.com/Override-SystemStartSquare-width-tp196731p196940.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing li

Re: try except in lilypond

2016-11-20 Thread Noeck
Hi Timothy, > (if (access? "somepath.ily" R_OK) >(ly:parser-include-string "\\include \"somepath.ily\"")) Thanks a lot! That works. One follow-up problem is, that the include path is found via the -I command line option. So somepath.ily does not exist (relative to where I execute lilypond)

Re: try except in lilypond

2016-11-20 Thread Timothy Lanfear
Can I look for files in the included directories with scheme? Or can I get the includepath names to search there myself? _Function:_ *ly:find-file*/name/ Return the absolute file name of name, or |#f| if not found. -- Timothy Lanfear, Bristol, UK. __

Re: try except in lilypond

2016-11-20 Thread Urs Liska
Am 20. November 2016 16:44:07 MEZ, schrieb Noeck : >Hi > >Am 20.11.2016 um 01:00 schrieb Urs Liska: >> However, I'm not sure how you can determine if a font is installed on >> your system. > >That's exactly the point where I was thinking about try except. > That won't help because fontconfig wil

Re: try except in lilypond

2016-11-20 Thread Noeck
Hi Timothy, thanks again! That's my solution now: includeoptional = #(define-scheme-function (fname) (string?) (if (ly:find-file fname) (ly:parser-include-string (format "\\include \"~a\"" fname)) (display (format "File ~a could not be included" fname >From a quick test, this

Re: Override SystemStartSquare width?

2016-11-20 Thread Thomas Morley
2016-11-20 17:22 GMT+01:00 dtsmarin : > Many thanks Simon! > Works really great. Hi, although Simons fix works the code below is cheaper and imho more elegant: #(define* (resize-square x #:optional (y #t)) "Applies @code{change-width} to the stencil-expression of a grob, which is supposed t

Re: general question for composers

2016-11-20 Thread Shane Brandes
It varies from project to project. Sometimes direct entry while composing to full pencil scribbles, generally incomprehensible to anyone else, but nonetheless complete. Some stuff just gets sketched out broadly and then finished while doing the data entry as the overall structure has been defined.

Re: Override SystemStartSquare width?

2016-11-20 Thread Simon Albrecht
On 20.11.2016 19:38, Thomas Morley wrote: although Simons fix works the code below is cheaper and imho more elegant: I thought there must be a simpler & nicer solution :-) Thanks! Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org http