Multiple variables in one scope
Hello list, I've been trying to create several choral scores using the same template, but sometimes I need to change just a small part of the template, so I end up copying the original and naming it style_two.ily or style_piecename.ily etc. For example, in one piece I need to shrink the PianoStaff and reduce the basic-distance for a 'rehearsal piano' sort of look, and in another I need a full sized PianoStaff for a real keyboard accompaniment. To simplify the process, I've been trying to split up the 'style' into chunks (i.e. margins, paper size, ragged or not, fonts, vertical spacing, etc. in the paper block; lyric tweaks, pianostaff shrinking for rehearsal piano, etc in the layout block), but it seems I can't combine the chunks into one scope. When I try to compile the snippet below, I get error: syntax error, unexpected OUTPUT_DEF_IDENTIFIER \choralOctavoMargins %%% \version 2.18.2 choralOctavoDimensions = \paper { paper-height = 10.5\in } choralOctavoMargins = \paper { top-margin = 0.5\in } \paper { \choralOctavoDimensions \choralOctavoMargins } \score { \new Voice { a' b' c'' d'' } } %%% It works if I remove one of the two variables, but combined, it will not work. I'm having the same issue when trying to combine in the \layout scope. Is what I'm trying to do possible? It seems to me that my lack of knowledge about scoping syntax is what is giving me trouble. Thanks in advance, Samuel. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Score alignment
Apologies for asking such a basic sounding question, but I have looked and looked and come up with nothing. Is it possible to horizontally align whole scores to the right edge rather than the left? Many thanks, Sam Toogood ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Score alignment
- Original Message - From: Samuel Toogood sam_toog...@athsoc.org.uk To: lilypond-user@gnu.org Sent: Saturday, July 12, 2014 9:42 AM Subject: Score alignment Apologies for asking such a basic sounding question, but I have looked and looked and come up with nothing. Is it possible to horizontally align whole scores to the right edge rather than the left? Many thanks, Sam Toogood Well, by default they're aligned to the right _and_ left edge. Are you asking for something like ragged-left? -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Barline at beginning of lines of music.
I think I have it now: http://www.lilypond.org/doc/v2.18/Documentation/notation/bars#index-bar-lines This and other special bar lines may be inserted manually at any point. When they coincide with the end of a measure they replace the simple bar line which would have been inserted there automatically. When they do not coincide with the end of a measure the specified bar line is inserted at that point in the printed output. would perhaps be better explained as: This and other special bar lines may be inserted manually at any point. Each special barline prescribes *three* things - what to show if the barline occurs at the beginning of a line, what to show when it coincides with the end of a line and what to show when it comes elsewhere (ref: definBarline). When they coincide with the end of a measure they replace the simple bar line which would have been inserted there automatically. When they do not coincide with the end of a measure the specified bar line is inserted at that point in the printed output, according to its position on the line. If two \bar commands come one after the other, the first is ignored. I was getting stuck by imagining that \bar literally inserted a barline, even though I had realized that it did something smarter. Richard On Sat, 2014-07-12 at 00:38 +0200, Thomas Morley wrote: 2014-07-11 21:14 GMT+02:00 Richard Shann rich...@rshann.plus.com: On Fri, 2014-07-11 at 18:11 +0100, James wrote: On 11/07/14 18:00, Richard Shann wrote: It is somewhat embarrassing to reply to one's own question but: \defineBarLine | #'(| | |) does the trick. Richard So do we need to improve the documentation? If so, what do you suggest? Well, clearly This and other special bar lines may be inserted manually at any point where they make good sense in terms of good music typesetting practice. would be an truer. Or did you mean, should that override be documented? I can't answer that because I don't know if it is a stable feature - I just guessed. In fact I have further problems of a similar nature. The chord chart requires double bars to be printed despite a start-repeat bar following on the next line - even writing \defineBarLine || #'(|| || ||) does not cause the double bar to appear at the line end. There is surely a lack of detail about what the list elements (end begin span) actually mean. Richard Well, the following works for me: \defineBarLine || #'(|| || ||) { c1 \break \bar || d } Could you provide a tiny example? Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: LilyPond meeting 2014?
Hi all, 2014-07-07 17:28 GMT+02:00 Urs Liska u...@openlilylib.org: On 7. Juli 2014 17:19:50 MESZ, David Kastrup d...@gnu.org wrote: The Waltroper Parkfest URL:http://www.waltroper-parkfest.de runs from August 29th to August 31st. It is an excellent diversion for accompanying guests and participants, though no participants actually were inclined to go there in 2012. For German-speaking participants, let me quote Das Waltroper Parkfest findet 2014 an den letzten drei Augusttagen statt. Highlights des Ostvest-Kulturspektakels auf vier Bühnen sind Auftritte von Juli, Hennes Bender, Brings und Too Strong, sowie eine gemeinsame Show der NDW-Stars Markus, Geier Sturzflug, Hubert Kah und Fräulein Menke. Putting the meeting in parallel with the Parkfest in a similar manner as last time would place it on August 28th to September 2nd, with the start and end days mostly being for arrival and departure. That woukd make it considerably more likely for me. Unfortunately i'm busy on that weekend :( Is there noone else interested? Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: LilyPond meeting 2014?
[forgot to reply-to-all] Am 12.07.2014 14:44, schrieb Janek Warchoł: Hi all, [...] Unfortunately i'm busy on that weekend :( Is there noone else interested? Basically, I am interested as well, but I have a concert on August 30th :-( Marc Janek ___ lilypond-devel mailing list lilypond-de...@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
line width
How can the length of a ragged last line be adjusted? With ragged-last-line = ##t , the line is too short to look good; with = ##f , it's right-justified and too long. The answer must be in the documentation, but I have not been able to speak the magic Google incantation to make it appear. Charlie ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: line width
Charles Marshall wrote How can the length of a ragged last line be adjusted? With ragged-last-line = ##t , the line is too short to look good; with = ##f , it's right-justified and too long. The answer must be in the documentation, but I have not been able to speak the magic Google incantation to make it appear. There's the line-width property: http://lilypond.org/doc/v2.18/Documentation/notation/line-length Although I don't know how or if it can be made to affect only the last line, so you may have to look around in that section: http://lilypond.org/doc/v2.18/Documentation/notation/horizontal-spacing I general, when Google fails me, I have had good luck with the Notation Reference index: http://lilypond.org/doc/v2.18/Documentation/notation/lilypond-index Cheers, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/line-width-tp164362p164364.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: I was unable to import an xml ogan file from Musescore - update
it's tedious as it sounds :-(( -- View this message in context: http://lilypond.1069038.n5.nabble.com/I-was-unable-to-import-an-xml-ogan-file-from-Musescore-update-tp164243p164365.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: line width
- Original Message - From: Charles Marshall marsh...@potsdam.edu To: lilypond-user@gnu.org Sent: Saturday, July 12, 2014 2:22 PM Subject: line width How can the length of a ragged last line be adjusted? With ragged-last-line = ##t , the line is too short to look good; with = ##f , it's right-justified and too long. The answer must be in the documentation, but I have not been able to speak the magic Google incantation to make it appear. Charlie \break and ragged-last-line = ##t -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: line width
On 12/07/14 14:22, Charles Marshall wrote: How can the length of a ragged last line be adjusted? With ragged-last-line = ##t , the line is too short to look good; with = ##f , it's right-justified and too long. The answer must be in the documentation, but I have not been able to speak the magic Google incantation to make it appear. Charlie ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user You could put a manual \break in, if all else fails, and push a measure or two over. James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: line width
Google: I use the following to get all the notation and tutorials: site:lilypond.org/doc/v2.18 search-term Knute Snortum (via Gmail) On Sat, Jul 12, 2014 at 7:08 AM, James pkx1...@gmail.com wrote: On 12/07/14 14:22, Charles Marshall wrote: How can the length of a ragged last line be adjusted? With ragged-last-line = ##t , the line is too short to look good; with = ##f , it's right-justified and too long. The answer must be in the documentation, but I have not been able to speak the magic Google incantation to make it appear. Charlie ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user You could put a manual \break in, if all else fails, and push a measure or two over. James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple variables in one scope
Samuel Speer samuelsp...@gmail.com writes: I've been trying to create several choral scores using the same template, but sometimes I need to change just a small part of the template, so I end up copying the original and naming it style_two.ily or style_piecename.ily etc. For example, in one piece I need to shrink the PianoStaff and reduce the basic-distance for a 'rehearsal piano' sort of look, and in another I need a full sized PianoStaff for a real keyboard accompaniment. To simplify the process, I've been trying to split up the 'style' into chunks (i.e. margins, paper size, ragged or not, fonts, vertical spacing, etc. in the paper block; lyric tweaks, pianostaff shrinking for rehearsal piano, etc in the layout block), but it seems I can't combine the chunks into one scope. Correct. When I try to compile the snippet below, I get error: syntax error, unexpected OUTPUT_DEF_IDENTIFIER \choralOctavoMargins %%% \version 2.18.2 choralOctavoDimensions = \paper { paper-height = 10.5\in } choralOctavoMargins = \paper { top-margin = 0.5\in } If you take a look at either of those variables afterwards, they are a full paper variable with all the settings in $defaultpaper, with only a single setting changed compared with the default. Basically you would need a three-way merge/diff on those variables while referencing $defaultpaper for comparison. You can do something like choralOctavoMargins = #(define-void-function (parser location) () (module-set! (current-module) 'top-margin (* 0.5 (module-ref (current-module) 'in in order to do an incremental change like that. But it might possibly make sense to put your various settings into separate files and include those. Something like \include octavodim.ly \include octavomarg.ly with each of the respective files being, indeed, something like \paper { paper-height = 10.5\in } and so on. In that usage, they redefine $defaultpaper rather than deriving a separate paper variable from it. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: line width
2014-07-12 15:22 GMT+02:00 Charles Marshall marsh...@potsdam.edu: How can the length of a ragged last line be adjusted? With ragged-last-line = ##t , the line is too short to look good; with = ##f , it's right-justified and too long. It's not possible to set the width of just one system. However, you can use this snippet https://github.com/openlilylib/openlilylib/tree/master/notation-snippets/adjust-horizontal-spacing to adjust horizontal spacing. To have the adjustment only affect the last system, use \newSpacingSection (it's described in the docs). hth, Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: LilyPond meeting 2014?
David Kastrup d...@gnu.org writes: Urs Liska u...@openlilylib.org writes: On 7. Juli 2014 16:24:34 MESZ, Janek Warchoł janek.lilyp...@gmail.com wrote: Hi all, It's been almost two years since the Waltrop 2012 LilyPond Meeting, in which i had the pleasure to participate. What about organizing another meeting this year? - who'd be interested? - where? (David, are you interested in being the host again?) - when? (i suggest 15-17 August) If the meeting will take place within 1500 km from Warsaw (e.g. at Waltrop) and there will be at least 4 other participants, count me in :) I'll be definitely unavailable Aug 10-24. This doesn't mean that other dates would work, but that's what I can say right now. Putting the meeting in parallel with the Parkfest in a similar manner as last time would place it on August 28th to September 2nd, with the start and end days mostly being for arrival and departure. I could offer one week earlier (full date range Aug 21st to Aug 26th), but that would still be mostly incompatible with Urs. Earlier than that collides with my own and Conny's plannings. One week later (Sep 4th to Sep 9th) may also an option, but it can affect outdoor weather. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: line width
Hi all, It's not possible to set the width of just one system. Not even by overriding NonMusicalPaperColumn.line-break-system-details? Kieren. ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: line width
Kieren MacMillan kieren_macmil...@sympatico.ca writes: Hi all, It's not possible to set the width of just one system. Not even by overriding NonMusicalPaperColumn.line-break-system-details? That sounds like a trick question. Mind you, I don't actually know the answer myself. And I'll pass on experiments right now in order to take my stuffed sinuses back to bed soonish since Conny leaves tomorrow for a week of horsemanship coursework in Czechia and I'll have to tend the somewhat upward of a dozen horses remaining here, flu or not. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: line width
2014-07-12 20:57 GMT+02:00 Kieren MacMillan kieren_macmil...@sympatico.ca: Hi all, It's not possible to set the width of just one system. Not even by overriding NonMusicalPaperColumn.line-break-system-details? Hmm. Maybe, but i don't know anything about this - too advanced magic :) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: line width
On 12. Juli 2014 21:38:26 MESZ, Janek Warchoł janek.lilyp...@gmail.com wrote: 2014-07-12 20:57 GMT+02:00 Kieren MacMillan kieren_macmil...@sympatico.ca: Hi all, It's not possible to set the width of just one system. Not even by overriding NonMusicalPaperColumn.line-break-system-details? Hmm. Maybe, but i don't know anything about this - too advanced magic :) What about forcing the horizontal spacing to be wider instead? _ __ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: LilyPond meeting 2014?
Hi all, 2014-07-12 20:53 GMT+02:00 David Kastrup d...@gnu.org: I could offer one week earlier (full date range Aug 21st to Aug 26th), but that would still be mostly incompatible with Urs. Earlier than that collides with my own and Conny's plannings. One week later (Sep 4th to Sep 9th) may also an option, but it can affect outdoor weather. I think it's time to get the numbers organized. Please mark when you're available in this poll: https://dudle.inf.tu-dresden.de/privacy/lilypond-meeting-2014/ cheers, Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten ledger lines
Am 04.04.2014 12:35, schrieb Fredrik Wallberg: Hi Urs, you could try: \override Staff.LedgerLineSpanner.length-fraction = 0.5 / Fredrik Thanks, that's exactly what I needed :-) Somehow I thought this must be possible with a property override but wasn't bold enough to simply pretend I knew when asked ;-) Best Urs ___ I'm trying to slightly reduce the extension of ledger lines with length-fraction and minimum-length-fraction in a dense passage, to increase available spacing in adjacent bars. What is the proper usage for this override? Below, I tried several values without any apparent change in ledger line length. %% \version 2.18.2 \paper { indent = 0.0 ragged-right = ##t } notes = { g8[ f e d c b c d e f] } bars = { \repeat unfold 5 { \noBreak \notes } } myScore = \relative c{ \time 5/4 r1 a4^No override \bars \override Staff.LedgerLineSpanner.length-fraction = #0.5 \override Staff.LedgerLineSpanner.minimum-length-fraction = #0.5 r1 a4^0.5 fraction \bars \override Staff.LedgerLineSpanner.length-fraction = #0.1 \override Staff.LedgerLineSpanner.minimum-length-fraction = #0.1 r1 a4^0.1 fraction \bars \override Staff.LedgerLineSpanner.length-fraction = #0.01 \override Staff.LedgerLineSpanner.minimum-length-fraction = #0.01 r1 a4^0.01 fraction \bars \override Staff.LedgerLineSpanner.length-fraction = #2 \override Staff.LedgerLineSpanner.minimum-length-fraction = #2 r1 a4^2 fraction \bars } \score { \new Staff \with { \remove Time_signature_engraver } \myScore } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten ledger lines
Javier Ruiz-Alma wrote Am 04.04.2014 12:35, schrieb Fredrik Wallberg: I'm trying to slightly reduce the extension of ledger lines with length-fraction and minimum-length-fraction in a dense passage, to increase available spacing in adjacent bars. What is the proper usage for this override? Below, I tried several values without any apparent change in ledger line length. %% \version 2.18.2 \paper { indent = 0.0 ragged-right = ##t } notes = { g8[ f e d c b c d e f] } bars = { \repeat unfold 5 { \noBreak \notes } } myScore = \relative c{ \time 5/4 r1 a4^No override \bars \override Staff.LedgerLineSpanner.length-fraction = #0.5 \override Staff.LedgerLineSpanner.minimum-length-fraction = #0.5 r1 a4^0.5 fraction \bars \override Staff.LedgerLineSpanner.length-fraction = #0.1 \override Staff.LedgerLineSpanner.minimum-length-fraction = #0.1 r1 a4^0.1 fraction \bars \override Staff.LedgerLineSpanner.length-fraction = #0.01 \override Staff.LedgerLineSpanner.minimum-length-fraction = #0.01 r1 a4^0.01 fraction \bars \override Staff.LedgerLineSpanner.length-fraction = #2 \override Staff.LedgerLineSpanner.minimum-length-fraction = #2 r1 a4^2 fraction \bars } \score { \new Staff \with { \remove Time_signature_engraver } \myScore } ___ lilypond-user mailing list lilypond-user@ https://lists.gnu.org/mailman/listinfo/lilypond-user Javier, You are doing the right thing, but there's some nuances to consider. Here's an explanation that you may find useful that someone else asked about, complete with graphics: Widening-ledger-lines-by-overriding-LedgerLineSpanner http://lilypond.1069038.n5.nabble.com/Widening-ledger-lines-by-overriding-LedgerLineSpanner-td162842.html#a162850 Cheers :) -Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Shorten-ledger-lines-tp164380p164381.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten ledger lines
Am 12.07.2014 23:43, schrieb tisimst: Javier Ruiz-Alma wrote What is the proper usage for this override? Below, I tried several values without any apparent change in ledger line length. Javier, You are doing the right thing, but there's some nuances to consider. Hi Javier, while the link by Abraham is really interesting, I could not find an answer to your problem there. What I noticed though is that for some reason, it seems like the override has to be put before the music not within: \new Staff \with { \override Staff.LedgerLineSpanner.length-fraction = #1 \override Staff.LedgerLineSpanner.minimum-length-fraction = #1 } or \layout { \override Staff.LedgerLineSpanner.length-fraction = #1 \override Staff.LedgerLineSpanner.minimum-length-fraction = #1 } This leaves the question open how to adapt it for single notes or small passages. HTH, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple variables in one scope
Thank you for that solution! I appreciate the help. Samuel. On Sat, Jul 12, 2014 at 10:36 AM, David Kastrup d...@gnu.org wrote: Samuel Speer samuelsp...@gmail.com writes: I've been trying to create several choral scores using the same template, but sometimes I need to change just a small part of the template, so I end up copying the original and naming it style_two.ily or style_piecename.ily etc. For example, in one piece I need to shrink the PianoStaff and reduce the basic-distance for a 'rehearsal piano' sort of look, and in another I need a full sized PianoStaff for a real keyboard accompaniment. To simplify the process, I've been trying to split up the 'style' into chunks (i.e. margins, paper size, ragged or not, fonts, vertical spacing, etc. in the paper block; lyric tweaks, pianostaff shrinking for rehearsal piano, etc in the layout block), but it seems I can't combine the chunks into one scope. Correct. When I try to compile the snippet below, I get error: syntax error, unexpected OUTPUT_DEF_IDENTIFIER \choralOctavoMargins %%% \version 2.18.2 choralOctavoDimensions = \paper { paper-height = 10.5\in } choralOctavoMargins = \paper { top-margin = 0.5\in } If you take a look at either of those variables afterwards, they are a full paper variable with all the settings in $defaultpaper, with only a single setting changed compared with the default. Basically you would need a three-way merge/diff on those variables while referencing $defaultpaper for comparison. You can do something like choralOctavoMargins = #(define-void-function (parser location) () (module-set! (current-module) 'top-margin (* 0.5 (module-ref (current-module) 'in in order to do an incremental change like that. But it might possibly make sense to put your various settings into separate files and include those. Something like \include octavodim.ly \include octavomarg.ly with each of the respective files being, indeed, something like \paper { paper-height = 10.5\in } and so on. In that usage, they redefine $defaultpaper rather than deriving a separate paper variable from it. -- David Kastrup -- Samuel Speer samuelsp...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten ledger lines
Noeck wrote This leaves the question open how to adapt it for single notes or small passages. Here we go: \version 2.18.2 { g d c d c d \stopStaff \startStaff \override Staff.LedgerLineSpanner.length-fraction = #0.1 \override Staff.LedgerLineSpanner.minimum-length-fraction = #0.1 g d c d c d c d \stopStaff \startStaff \override Staff.LedgerLineSpanner.length-fraction = #1 \override Staff.LedgerLineSpanner.minimum-length-fraction = #1 g d c d c d } HTH, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Shorten-ledger-lines-tp164380p164384.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user