Re: Bar counts and repeats in repetitive music
Without investigating how the bar number engraver (I'm guessing, or whatever engraves them), I am unsure how to correct what actually gets *engraved* (which is obviously important), but here's a partial solution. \adjustBarNum applies the repeats and does the calculations , and seems to reset each next *currentBarNumber* to what it should be. Maybe someone with more knowledge of how bar number s are engrave d can have a look and see what is wrong/missing . === begin snippet adjustBarNum = #(define-music-function (num mus) (number? ly:music?) (define startBar 0) #{ #(make-apply-context (lambda (context) (let ((currentBar (ly:context-property context 'currentBarNumber))) (set! startBar currentBar \repeat volta #num { #mus } #(make-apply-context (lambda (context) (let* ((endBar (ly:context-property context 'currentBarNumber)) (repLength (+ (if (equal? startBar 1) 0 1) (- endBar startBar))) (lenScaled (* repLength num)) (nextBar (+ startBar lenScaled))) (ly:context-set-property! context 'currentBarNumber nextBar #}) \score { \new Staff { \tempo 4 = 108 \clef "bass" \time 4/4 \key f \minor \override Score.BarNumber.break-visibility = #'#(#t #t #t) \barNumberCheck #1 \adjustBarNum 4 { \rhPatternA } % adds 4 bars ... (1 + 4 = 5) \barNumberCheck #5 \adjustBarNum 16 { \rhPatternA } % adds 16 bars ... (5 + 16 = 21) \barNumberCheck #21 \adjustBarNum 4 { \rhPatternB } % adds 4 bars ... (21 + 4 = 25) \barNumberCheck #25 \adjustBarNum 2 {\rhPatternA } } } === end snippet On Thu, Feb 16, 2017 at 1:54 PM, ptoyewrote: > Thanks for your comments Jeffery. > > Here's some of the music I'm trying to set. I'm not worried about the full > score aspect, just the piano part. As you can see, it doesn't indicate how > many repetitions there should be, and the bar numbers don't increment > correctly. > > This is just a one-bar repetition, so my third comment isn't relevant. > > I've been using currentBarNumber so your typo wasn't a problem. > > \version "2.19.52" > > \language "english" > > rhPatternA = > { > \relative > { > f,16 f r af af r ef ef r c ef c ef bf' af ef | > } > } > > rhPatternB = > { > \relative { > bf,16-> bf af bf-> r4 r2 | > } > } > lhPatternA = > { \relative > { > f,,16 f r af af r ef ef r c ef c ef bf' af ef | > } > > } > lhPatternB = > { > \relative { > bf,,16-> bf af bf-> r4 r2 | > } > > } > \score { > > \new Staff { > \tempo 4 = 108 > \clef "bass" > \time 4/4 > \key f \minor > \repeat volta 4 {\rhPatternA } | > \repeat volta 16 { \rhPatternA } > \repeat volta 4 {\rhPatternB } > \repeat volta 2 {\rhPatternA } > } > } > > > > > -- > View this message in context: http://lilypond.1069038.n5. > nabble.com/Bar-counts-and-repeats-in-repetitive-music-tp199814p200204.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 > -- Jeffery Shivers jefferyshivers.com soundcloud.com/jefferyshivers ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 5 quaters per 4/4 measure
Hello, Thanks for the solutions! I think I’ll use the cadenza : its use for the intonation before the main music body is quite convincing. JM > Le 16 févr. 2017 à 16:31, Urs Liskaa écrit : > > > > Am 16.02.2017 um 15:25 schrieb Menu Jacques: >> The Binchois.xml example by Recordare has 5 quater notes in a 4/4 >> measure (stemless by the way). >> >> Is this a « bug » in this MusicXML file, and if not, is there a way to >> produce that with LP? >> I know I can use a hidden 5/4 time signature while diplaying a 4/4 >> one, but that’s not that satisfying… >> > > I can't comment on the original XML file (or the composition) or the > musicxml conversion. > But if you want to display five quarters in a 4/4 meter you'd want to do > > { > \time 4/4 > \scaleDurations 4/5 { >% \omit Stem >c4 c c c c > } > } > > HTH > Urs > > -- > u...@openlilylib.org > https://openlilylib.org > http://lilypondblog.org > > > ___ > 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: Frenched staves
Am 16.02.2017 um 18:27 schrieb David Kastrup: > Urs Liskawrites: > >> what would be the "usual suspects" to look into when seemingly empty >> staves just don't disappear with \RemoveEmptyStaves >> >> ? > Uh, PianoStaff has the Keep_alive_together_engraver . That's what > distinguishes it from GrandStaff . Since your score has nothing but the > PianoStaff... > Thanks, this was it. First I felt embarrassed, but then I acquired the impression that this isn't readily available from the documentation, so I created https://codereview.appspot.com/318580043 Urs -- u...@openlilylib.org https://openlilylib.org http://lilypondblog.org ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Customizing ottava text
2017-02-15 21:06 GMT+01:00 Urs Liska: > Hi all, > > is it really true that the text of the OttavaBracket can't be > customized? All I could find was the doc snippet > http://lilypond.org/doc/v2.19/Documentation/snippets/text#text-ottava-text > which suggests to manually set Staff.ottavation after the \ottava command. > > With this I created a function (overwriting the built-in function) > > #(define ottava >(let ((orig-ottava ottava) > (numbers '("15" "8" "" "8" "15"))) > (define-music-function (oct)(integer?) >#{ > #(orig-ottava oct) > #(if (not (= oct 0)) > #{ > \set Staff.ottavation = #(list-ref numbers (+ oct 2)) > #}) >#}))) > > > which actually does what I want (change "8va" to "8"), but I can't > believe that it is really necessary to go that long way for a seemingly > simple task. > > Any comments? > Urs Hi Urs, best I can currently think of: \version "2.19.52" %% Define new context-property 'ottavaText' #(define (define-translator-property symbol type? description) (if (not (and (symbol? symbol) (procedure? type?) (string? description))) (ly:error "error in call of define-translator-property")) (if (not (equal? (object-property symbol 'translation-doc) #f)) (ly:error (_ "symbol ~S redefined") symbol)) (set-object-property! symbol 'translation-type? type?) (set-object-property! symbol 'translation-doc description) symbol) #(for-each (lambda (x) (apply define-translator-property x)) `((ottavaText ,list? "An alist of pairs with ottavation-number and markup."))) %% Redefine 'make-ottava-set' #(define (make-ottava-set music) "Set context properties for an ottava bracket." (let ((octavation (ly:music-property music 'ottava-number)) (labels '((2 . "15ma") (1 . "8va") (0 . #f) (-1 . "8vb") (-2 . "15mb" (list (context-spec-music (make-apply-context (lambda (context) (let* ((offset (* -7 octavation)) (ctx-label-list (ly:context-property context 'ottavaText)) (string (assoc-get octavation (if (null? ctx-label-list) labels ctx-label-list (set! (ly:context-property context 'middleCOffset) offset) (set! (ly:context-property context 'ottavation) string) (ly:set-middle-C! context 'Staff %% Redefine 'ottava' ottava = #(define-music-function (octave) (integer?) (_i "Set the octavation.") (make-music 'OttavaMusic 'elements-callback make-ottava-set 'ottava-number octave)) % %% EXAMPLE % \layout { \context { \Staff ottavaText = #`((2 . ,(markup #:rounded-box "16.0")) (1 . "8.0") (0 . #f) (-1 . "8.0") (-2 . ,#{ \markup \rotate #90 "16.0" #})) } } { \ottava #2 c'' \ottava #1 c'' \ottava #0 c'' \ottava #-1 c'' \ottava #-2 c'' } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Right line of an ottava bracket
Urs, On Thu, Feb 16, 2017 at 11:36 AM, David Nalesnikwrote: > Urs, > > On Wed, Feb 15, 2017 at 11:03 AM, Urs Liska wrote: >> I'm trying to style an ottava bracket. But poking around in the IR >> doesn't show me the way how to make the right vertical line look like >> the horizontal line (in the attached image). >> >> What property do I have to override here? >> > > There are no properties you can override. Dash-fraction is > deliberately set to 1.0 (continuous line) in > Tuplet_bracket::make_bracket for the bracket "wings.". (Yes, ottava > brackets are drawn by a method of Tuplet_bracket. BTW, I've been > trying to straighten out some of the confusions in the bracket code.) > > You can comment out lines 449-50 in lily/tuplet-bracket.cc to get the > right-lines of ottava brackets (and tuplet-brackets) to obey your > settings. The drawback, of course, is that you have to build LilyPond > for this to take effect. > > The problem is that there is no guarantee that the right ottava line > will cover the desired extent (i.e, black at beginning and end of the > extent). The wrong settings of dash-period and dash-fraction could > easily yield a puny stub or nothing at all. There would have to be > some adjustment of dash spacing to guarantee a proper fill of the > space. > > Well, there should be one for any dashed line (as there is in some > markup command or other, can't remember the name) -- an option to > modify user settings to that a dashed or dotted line begins and ends > with ink. Here's an illustration of what I'm talking about. The attached PNG shows the output of the following code with the two lines in lily/tuplet-bracket.cc commented out. Uplet brackets thrown in for good measure. \version "2.19.56" { %% default -- ugh. bug here? \override TupletBracket.style = #'dashed-line \tuplet 3/1 { c''2 c'' c'' } \once\override TupletBracket.dash-period = 1 \once\override TupletBracket.dash-fraction = #0.1 \tuplet 3/1 { c''2 c'' c'' } } { \once\override Staff.OttavaBracket.dash-period = 1 \once\override Staff.OttavaBracket.dash-fraction = #0.1 \ottava 1 c''4 d'' e'' d'' } { % default -- right line is too short \ottava 1 c''4 d'' e'' d'' } { \override Staff.OttavaBracket.style = #'dotted-line \ottava 1 c''4 d'' e'' d'' } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Bar counts and repeats in repetitive music
Thanks for your comments Jeffery. Here's some of the music I'm trying to set. I'm not worried about the full score aspect, just the piano part. As you can see, it doesn't indicate how many repetitions there should be, and the bar numbers don't increment correctly. This is just a one-bar repetition, so my third comment isn't relevant. I've been using currentBarNumber so your typo wasn't a problem. \version "2.19.52" \language "english" rhPatternA = { \relative { f,16 f r af af r ef ef r c ef c ef bf' af ef | } } rhPatternB = { \relative { bf,16-> bf af bf-> r4 r2 | } } lhPatternA = { \relative { f,,16 f r af af r ef ef r c ef c ef bf' af ef | } } lhPatternB = { \relative { bf,,16-> bf af bf-> r4 r2 | } } \score { \new Staff { \tempo 4 = 108 \clef "bass" \time 4/4 \key f \minor \repeat volta 4 {\rhPatternA } | \repeat volta 16 { \rhPatternA } \repeat volta 4 {\rhPatternB } \repeat volta 2 {\rhPatternA } } } -- View this message in context: http://lilypond.1069038.n5.nabble.com/Bar-counts-and-repeats-in-repetitive-music-tp199814p200204.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: Frenched staves
Urs Liskawrites: > what would be the "usual suspects" to look into when seemingly empty > staves just don't disappear with \RemoveEmptyStaves > > ? > > As this is most surely some issue with my set-up I can't come up with a > minimal example, but the score looks like this: > > \score { > \new PianoStaff << > \new Staff = "up" << > \structure > \v.1 > \v.2 > >> > \dyn.1 > \new Staff = "mid" << > \structure > \v.3 > \v.4 > >> > \dyn.2 > \new Staff = "lo" << > \structure > \v.5 > >> > >> > } > > with > > \layout { > \context { > \Staff > \numericTimeSignature > \RemoveEmptyStaves > } > } Uh, PianoStaff has the Keep_alive_together_engraver . That's what distinguishes it from GrandStaff . Since your score has nothing but the PianoStaff... -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Right line of an ottava bracket
Urs, On Wed, Feb 15, 2017 at 11:03 AM, Urs Liskawrote: > I'm trying to style an ottava bracket. But poking around in the IR > doesn't show me the way how to make the right vertical line look like > the horizontal line (in the attached image). > > What property do I have to override here? > There are no properties you can override. Dash-fraction is deliberately set to 1.0 (continuous line) in Tuplet_bracket::make_bracket for the bracket "wings.". (Yes, ottava brackets are drawn by a method of Tuplet_bracket. BTW, I've been trying to straighten out some of the confusions in the bracket code.) You can comment out lines 449-50 in lily/tuplet-bracket.cc to get the right-lines of ottava brackets (and tuplet-brackets) to obey your settings. The drawback, of course, is that you have to build LilyPond for this to take effect. The problem is that there is no guarantee that the right ottava line will cover the desired extent (i.e, black at beginning and end of the extent). The wrong settings of dash-period and dash-fraction could easily yield a puny stub or nothing at all. There would have to be some adjustment of dash spacing to guarantee a proper fill of the space. Well, there should be one for any dashed line (as there is in some markup command or other, can't remember the name) -- an option to modify user settings to that a dashed or dotted line begins and ends with ink. Best, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Bar counts and repeats in repetitive music
> I think using (ly:context 'measurePosition) Sorry, this is actually incorrect. `currentBarNumber` is what you need to look up. On Thu, Feb 16, 2017 at 12:31 PM, Jeffery Shiverswrote: > Could you provide a MWE? Without any knowledge of how your project is > setup, we have to guess how exactly to help you. > > Regarding automating measure numbers, you could write a scheme > function to calculate the next bar number following repeats, I think > using (ly:context 'measurePosition) and then factoring in > the number of times something is repeated. > > If I understand correctly, you want the piano part to look different > (optimized) in its own document as opposed to how it will look in the > less-optimized score. I'm attaching a (not very elegant) suggestion of > how you might begin to automate things there as well (rewired etc. to > suit your setup). HTH > > On Thu, Feb 16, 2017 at 10:07 AM, ptoye wrote: >> What - no-one? Am I the only one playing minimalist music round here? >> >> >> ptoye wrote >>> I'm trying to engrave a highly repetitive piano part using repeats as much >>> as possible to save page-turns, but I need to display the bar numbers as >>> if the repeats were written out (other parts don't repeat). It seems to me >>> that this raises three issues, to none of which have I found a solution in >>> the manuals. >>> >>> 1) Notating the number of repeats automatically . One can do a markup of >>> "3×" on the repeat bar, so it's not a major problem, but Lilypond doesn't >>> seem to do this automatically, which is a bit of a shame. >>> >>> 2) Adjusting the bar count to take the repeated bars into account. For >>> example, if an 8-bar phrase is repeated 4 times, the bar count after the >>> end of the section is 33, rather than 9. Again, this can be done by >>> setting the bar number, but it would be useful to have a computer do the >>> arithmetic. >>> >>> 3) Displaying the multiple bar numbers. In the above example, displaying >>> something like "1-9-17-25". Without this, rehearsals will be a bit >>> fraught! >>> >>> Any help gratefully received, >>> >>> Peter >>> mailto: >> >>> lilypond@ >> >>> www.ptoye.com >>> ___ >>> lilypond-user mailing list >> >>> lilypond-user@ >> >>> https://lists.gnu.org/mailman/listinfo/lilypond-user >> >> >> >> >> >> -- >> View this message in context: >> http://lilypond.1069038.n5.nabble.com/Bar-counts-and-repeats-in-repetitive-music-tp199814p200190.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 > > > > -- > > Jeffery Shivers > jefferyshivers.com > soundcloud.com/jefferyshivers -- Jeffery Shivers jefferyshivers.com soundcloud.com/jefferyshivers ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Bar counts and repeats in repetitive music
Could you provide a MWE? Without any knowledge of how your project is setup, we have to guess how exactly to help you. Regarding automating measure numbers, you could write a scheme function to calculate the next bar number following repeats, I think using (ly:context 'measurePosition) and then factoring in the number of times something is repeated. If I understand correctly, you want the piano part to look different (optimized) in its own document as opposed to how it will look in the less-optimized score. I'm attaching a (not very elegant) suggestion of how you might begin to automate things there as well (rewired etc. to suit your setup). HTH On Thu, Feb 16, 2017 at 10:07 AM, ptoyewrote: > What - no-one? Am I the only one playing minimalist music round here? > > > ptoye wrote >> I'm trying to engrave a highly repetitive piano part using repeats as much >> as possible to save page-turns, but I need to display the bar numbers as >> if the repeats were written out (other parts don't repeat). It seems to me >> that this raises three issues, to none of which have I found a solution in >> the manuals. >> >> 1) Notating the number of repeats automatically . One can do a markup of >> "3×" on the repeat bar, so it's not a major problem, but Lilypond doesn't >> seem to do this automatically, which is a bit of a shame. >> >> 2) Adjusting the bar count to take the repeated bars into account. For >> example, if an 8-bar phrase is repeated 4 times, the bar count after the >> end of the section is 33, rather than 9. Again, this can be done by >> setting the bar number, but it would be useful to have a computer do the >> arithmetic. >> >> 3) Displaying the multiple bar numbers. In the above example, displaying >> something like "1-9-17-25". Without this, rehearsals will be a bit >> fraught! >> >> Any help gratefully received, >> >> Peter >> mailto: > >> lilypond@ > >> www.ptoye.com >> ___ >> lilypond-user mailing list > >> lilypond-user@ > >> https://lists.gnu.org/mailman/listinfo/lilypond-user > > > > > > -- > View this message in context: > http://lilypond.1069038.n5.nabble.com/Bar-counts-and-repeats-in-repetitive-music-tp199814p200190.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 -- Jeffery Shivers jefferyshivers.com soundcloud.com/jefferyshivers repeats-test.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Frenched staves
On Thu, Feb 16, 2017 at 7:43 AM, Urs Liskawrote: > Hi all, > > what would be the "usual suspects" to look into when seemingly empty > staves just don't disappear with \RemoveEmptyStaves > > ? > > As this is most surely some issue with my set-up I can't come up with a > minimal example, but the score looks like this: > > \score { > \new PianoStaff << > \new Staff = "up" << > \structure > \v.1 > \v.2 > >> > \dyn.1 > \new Staff = "mid" << > \structure > \v.3 > \v.4 > >> > \dyn.2 > \new Staff = "lo" << > \structure > \v.5 > >> > >> > } > > with > > \layout { > \context { > \Staff > \numericTimeSignature > \RemoveEmptyStaves > } > } > > \structure can't be the culprit (I suspected I had some hidden content > in there) because I can simply comment that out with the empty staff > still not disappearing. > The real culprit is that PianoStaff keeps all its Staff contexts alive unless they are ALL empty for the entire system. Look at the PianoStaff's context definition for the relevant keepAliveInterface data and that should lead you to the solution. HTH, Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Frenched staves
Hi Urs, On 16.02.2017 15:43, Urs Liska wrote: what would be the "usual suspects" to look into when seemingly empty staves just don't disappear with \RemoveEmptyStaves ? As this is most surely some issue with my set-up I can't come up with a minimal example, maybe you could experiment with Staff.keepAliveInterfaces to narrow down which interface makes the difference? Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 5 quaters per 4/4 measure
Am 16.02.2017 um 15:25 schrieb Menu Jacques: > The Binchois.xml example by Recordare has 5 quater notes in a 4/4 > measure (stemless by the way). > > Is this a « bug » in this MusicXML file, and if not, is there a way to > produce that with LP? > I know I can use a hidden 5/4 time signature while diplaying a 4/4 > one, but that’s not that satisfying… > I can't comment on the original XML file (or the composition) or the musicxml conversion. But if you want to display five quarters in a 4/4 meter you'd want to do { \time 4/4 \scaleDurations 4/5 { % \omit Stem c4 c c c c } } HTH Urs -- u...@openlilylib.org https://openlilylib.org http://lilypondblog.org ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 5 quaters per 4/4 measure
Menu Jacqueswrites: > Hello folks, > > The Binchois.xml example by Recordare has 5 quater notes in a 4/4 measure > (stemless by the way). > > Is this a « bug » in this MusicXML file, and if not, is there a way to > produce that with > LP? It's an intonation. They are usually done unmetered. The 4/4 probably is some default creeping in. I'd do something like \new Voice { \clef "bass" \key f \major \temporary\omit Stem \once\omit Staff.TimeSignature \cadenzaOn c'4 d' c'( f') f' \cadenzaOff \bar "|" \undo\omit Stem \time 3/4 r r f } \addlyrics { Ma -- gni -- fi -- cat A } > I know I can use a hidden 5/4 time signature while diplaying a 4/4 > one, but that’s not that satisfying… Just use \cadenza here. This stuff is unmetered. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 5 quaters per 4/4 measure
Menu, On Thu, Feb 16, 2017 at 8:26 AM, Menu Jacques [via Lilypond] < ml-node+s1069038n200191...@n5.nabble.com> wrote: > The Binchois.xml example by Recordare has 5 quater notes in a 4/4 measure > (stemless by the way). > There are a number of ways to do this. 1. You can use a quintuplet with the bracket and number hidden: \once \omit TupletBracket \once \omit TupletNumber \tuplet 5/4 { ... } 2. You can scale the duration of any note on the fly using the "*N/M" syntax, which will cascade to subsequent notes with the duration omitted: c4*4/5 3. You can use \scaleDurations to scale an entire passage: \scaleDurations 4/5 { ... } So, take your pick! I think #2 would be the simplest here because you only need to indicate the duration + scale on the first quarter note of the first bar and it will apply to them all. Is this a « bug » in this MusicXML file, and if not, is there a way to > produce that with LP? > I know I can use a hidden 5/4 time signature while diplaying a 4/4 one, > but that’s not that satisfying… > In the XML code of measure 1, you'll notice that there isn't a time signature defined at all (unless what you copied+pasted somehow didn't include it), just a clef and key signature. How Finale knows to interpret the five quarter notes as a single bar without scaling them is a mystery. > Or maybe the absence of stems is the key to that? But I found nothing in > the LP docs. > It's a possibility that Finale interprets the situation that way, but unless that's how it's laid out in the official MusicXML spec, I'm not sure I'd interpret it that way unless ALL apps that import/export MXML do the same thing. HTH, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/5-quaters-per-4-4-measure-tp200191p200192.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
Frenched staves
Hi all, what would be the "usual suspects" to look into when seemingly empty staves just don't disappear with \RemoveEmptyStaves ? As this is most surely some issue with my set-up I can't come up with a minimal example, but the score looks like this: \score { \new PianoStaff << \new Staff = "up" << \structure \v.1 \v.2 >> \dyn.1 \new Staff = "mid" << \structure \v.3 \v.4 >> \dyn.2 \new Staff = "lo" << \structure \v.5 >> >> } with \layout { \context { \Staff \numericTimeSignature \RemoveEmptyStaves } } \structure can't be the culprit (I suspected I had some hidden content in there) because I can simply comment that out with the empty staff still not disappearing. Urs -- u...@openlilylib.org https://openlilylib.org http://lilypondblog.org ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 5 quaters per 4/4 measure
On 16.02.2017 15:25, Menu Jacques wrote: The Binchois.xml example by Recordare has 5 quater notes in a 4/4 measure (stemless by the way). Is this a « bug » in this MusicXML file, and if not, is there a way to produce that with LP? I know I can use a hidden 5/4 time signature while diplaying a 4/4 one, but that’s not that satisfying… Or maybe the absence of stems is the key to that? But I found nothing in the LP docs. You can see below how Finale 2014 handles that. From the image it’s totally obvious that the mistake is writing 4/4 in the first place. I guess it just sneaked in there being the default, but actually this ‘Magnificat’ is chant and should not have any time signature. Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Bar counts and repeats in repetitive music
What - no-one? Am I the only one playing minimalist music round here? ptoye wrote > I'm trying to engrave a highly repetitive piano part using repeats as much > as possible to save page-turns, but I need to display the bar numbers as > if the repeats were written out (other parts don't repeat). It seems to me > that this raises three issues, to none of which have I found a solution in > the manuals. > > 1) Notating the number of repeats automatically . One can do a markup of > "3×" on the repeat bar, so it's not a major problem, but Lilypond doesn't > seem to do this automatically, which is a bit of a shame. > > 2) Adjusting the bar count to take the repeated bars into account. For > example, if an 8-bar phrase is repeated 4 times, the bar count after the > end of the section is 33, rather than 9. Again, this can be done by > setting the bar number, but it would be useful to have a computer do the > arithmetic. > > 3) Displaying the multiple bar numbers. In the above example, displaying > something like "1-9-17-25". Without this, rehearsals will be a bit > fraught! > > Any help gratefully received, > > Peter > mailto: > lilypond@ > www.ptoye.com > ___ > lilypond-user mailing list > lilypond-user@ > https://lists.gnu.org/mailman/listinfo/lilypond-user -- View this message in context: http://lilypond.1069038.n5.nabble.com/Bar-counts-and-repeats-in-repetitive-music-tp199814p200190.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: Creating multi-score books
Don Gingrich: ... > What I'd like to create is: > > > > > > > > > > ... I do this regulary. You usually use lilypond-book, but I got tired of all thoose lily- files, I couldn't use that in makefiles, e.g. So, I made my own version and have ever since used that. ... > \header{ > title = "some silly thing" >composer = "Not Mozart" > } > { > << ... You can do the headers either in lilypond or latex. I do them in latex, when latex is involved, since I usually also include some text after the header. > As putting a bunch of individual scores together into a book may > be a more or less common task, a good template would be brilliant > and potentially useful for others My lilypond/latex code are in: http://turkos.aspodata.se/git/musik/ Examples of my work is: http://turkos.aspodata.se/choir/osthammar/mozart/requiem.pdf http://turkos.aspodata.se/choir/osthammar/mozart/cover.pdf http://turkos.aspodata.se/git/musik/WAMozart/requiem/ http://turkos.aspodata.se/noter/victoria/o_quam_gloriosum/motet/all.pdf http://turkos.aspodata.se/git/musik/TomasLuisdeVictoria/o_quam_gloriosum/motet/ Let's dissect the motet example. The entry file is all.tex, it is a usual latex file. To get hold of what lilypond produces I do: \input{A-systems.tex} for scores, and to include smaller music fragments I do: \includegraphics{sign-1.eps} To make latex and lilypond work together, I use the Makefile, it has %.lyi: %.ly echo '\include' \"$(INC)/I.ly\" > $@ echo '\include' \"$<\" >> $@ %.eps %-systems.tex:%.lyi rm -f $(patsubst %.ly,%,$<)-*.eps $(LP) --ps -dbackend=eps $< $(BIN)lilypond-psfonts $*.psfonts $(patsubst %.lyi,%,$<).eps The lyi thing is just to include \include "lilypond-book-preamble.ly" \include "../include/choirbook.ly" The "lilypond-book-preamble.ly" and "$(LP) --ps -dbackend=eps $<" make lilypond work in "lilypond-book mode" so I get the files A-1.eps ... A-9.eps A-systems.tex etc. If you run lilypond-book, thoose files would be named lily-.yyy instead, but since you can predict their names you can include them directly instead of going the way around lilypond-book. The thing missing from lilypond-book though, is that you must manually match the line length for your lilypond files and latex for full width music: $ grep line-width ../include/choirbook.ly line-width = 153 \mm $ grep textwidth all.tex \setlength{\textwidth}{155mm} Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Creating multi-score books
Hi all, > If I don't misunderstand you I would compile the songs individually and > include them using \includepdf. This is exactly what I do. Works fabulously. I highly recommend it. HTH, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond hogging a processor and slowing down
Thanks Anders and SoundFromSound for this advice. It worked fine, and the simple one-bar file is now down to 0.8 seconds which is far more civilised. All the best, Peter mailto:lilyp...@ptoye.com www.ptoye.com___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Creating multi-score books
> Am 16.02.2017 um 07:39 schrieb Don Gingrich: >> On Thu, 16 Feb 2017 07:32:09 you wrote: >>> Am 16. Februar 2017 07:02:10 MEZ schrieb Don Gingrich >>: I've got a basic problem, and I'm not having much joy with the documentation. Over the past few years I've created several scores for folk songs. Now, I'm going to be doing a workshop discussing their origins. What I'd like to create is: and so on I'm probably more familiar with LaTeX than LilyPond, so I'd really prefer to do the cover page and discussion in TeX and the scores in LilyPond. Hi Don, I hadn’t seen you original mail. I’m using ConTeXt to typeset songbooklets, with all the text and lyrics in TeX and only the scores in LilyPond, so quite similar to your requirements. You can find my setup here: http://wiki.contextgarden.net/LilyPond Of course you would have to get acquainted with ConTeXt (MkIV, i.e. with LuaTeX) instead of LaTeX. The mentioned LyLuaTeX uses a similar approach of including LilyPond code into LaTeX with the help of Lua. Greetlings, Hraban --- fiëé visuëlle Henning Hraban Ramm http://www.fiee.net ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Creating multi-score books
Greetings Don, To add to the suggestions, you might consider using pdftk - assuming of course that both LaTeX and LilyPond files will be converted to pdf. Hwaen Ch'uqi On 2/16/17, Abbé Jacques Peronwrote: > Hello, > > Another alternative is lyluatex, that you may find here : > https://github.com/jperon/lyluatex. > > For this to work, you'll have to use lualatex. > > Jacques Peron + > > > Le 16 févr. 2017 14:32, "Urs Liska" a écrit : > > > > Am 16. Februar 2017 07:02:10 MEZ schrieb Don Gingrich < > gingr...@internode.on.net>: >>I've got a basic problem, and I'm not having much >>joy with the documentation. >> >>Over the past few years I've created several scores >>for folk songs. >> >>Now, I'm going to be doing a workshop discussing >>their origins. >> >>What I'd like to create is: >> >> >> >> >> >> >> >> >> >> >> >>and so on >> >>I'm probably more familiar with LaTeX than >>LilyPond, so I'd really prefer to do the cover >>page and discussion in TeX and the scores >>in LilyPond. > > If I don't misunderstand you I would compile the songs individually and > include them using \includepdf. > > HTH > Urs > > >> >>Note that some of the scores were originally >>entered using MuseScore and the converted >>using xml2ly -- so the LilyPond code is *ugly* >>but works as a standalone score. In my copious >>free time I'd like to shift these converted scores >>into clean code, but it's in the "if it ain't broke." >>category unless the converted stuff is likely to be >> breaking things. >> >>My minimal example winds up being several hundred >>lines, so I've not included it. >> >>I tried this: >> >>\header { >> title = "Eight miniatures" >> composer = "Igor Stravinsky" >>} >>\score { >> … >> \header { piece = "Romanze" } >>} >>\markup { >> …text of second verse… >>} >>\markup { >> …text of third verse… >>} >>\score { >> … >> \header { piece = "Menuetto" } >>} >> >>With including the score files and it >>did not work. >> >>I tried this first: >> >>\documentclass[a4paper]{article} >> >>\begin{document} >> >>Documents for \verb+lilypond-book+ may freely mix music and text. >>For example, >> >>Options are put in brackets. >> >>Larger examples can be put into a separate file, and introduced with >>\verb+\lilypondfile+. >> >>\lilypondfile[quote,noindent]{MyFileName.ly} >> >>(If needed, replace @file{screech-and-boink.ly} by any @file{.ly} file >>you put in the same directory as this file.) >> >>\end{document} >> >>And all that I got was the filename printed where the score should >>have been. >> >>I also looked at the thread titled: >>"Problem with lilypond-book and \markup blocks" from 2007 >>But when I tried to add a header after the \score{ -- e.g. >>\score { >> \header{ >> title = "some silly thing" >> composer = "Not Mozart" >>} >>{ >><< >> >>The title and composer disappeared into the ether -- clearly >>the method here only works for snippets, not full or multi-page >>scores. >> >>I keep banging at this and getting nowhere. >> >> >>As putting a bunch of individual scores together into a book may >>be a more or less common task, a good template would be brilliant >>and potentially useful for others >> >>Thanks, >> >>-Don >> >>-- >>Don Gingrich >> >> >> >>___ >>lilypond-user mailing list >>lilypond-user@gnu.org >>https://lists.gnu.org/mailman/listinfo/lilypond-user > > -- > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail > gesendet. > > ___ > 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: Creating multi-score books
Hello, Another alternative is lyluatex, that you may find here : https://github.com/jperon/lyluatex. For this to work, you'll have to use lualatex. Jacques Peron + Le 16 févr. 2017 14:32, "Urs Liska"a écrit : Am 16. Februar 2017 07:02:10 MEZ schrieb Don Gingrich < gingr...@internode.on.net>: >I've got a basic problem, and I'm not having much >joy with the documentation. > >Over the past few years I've created several scores >for folk songs. > >Now, I'm going to be doing a workshop discussing >their origins. > >What I'd like to create is: > > > > > > > > > > > >and so on > >I'm probably more familiar with LaTeX than >LilyPond, so I'd really prefer to do the cover >page and discussion in TeX and the scores >in LilyPond. If I don't misunderstand you I would compile the songs individually and include them using \includepdf. HTH Urs > >Note that some of the scores were originally >entered using MuseScore and the converted >using xml2ly -- so the LilyPond code is *ugly* >but works as a standalone score. In my copious >free time I'd like to shift these converted scores >into clean code, but it's in the "if it ain't broke." >category unless the converted stuff is likely to be > breaking things. > >My minimal example winds up being several hundred >lines, so I've not included it. > >I tried this: > >\header { > title = "Eight miniatures" > composer = "Igor Stravinsky" >} >\score { > … > \header { piece = "Romanze" } >} >\markup { > …text of second verse… >} >\markup { > …text of third verse… >} >\score { > … > \header { piece = "Menuetto" } >} > >With including the score files and it >did not work. > >I tried this first: > >\documentclass[a4paper]{article} > >\begin{document} > >Documents for \verb+lilypond-book+ may freely mix music and text. >For example, > >Options are put in brackets. > >Larger examples can be put into a separate file, and introduced with >\verb+\lilypondfile+. > >\lilypondfile[quote,noindent]{MyFileName.ly} > >(If needed, replace @file{screech-and-boink.ly} by any @file{.ly} file >you put in the same directory as this file.) > >\end{document} > >And all that I got was the filename printed where the score should >have been. > >I also looked at the thread titled: >"Problem with lilypond-book and \markup blocks" from 2007 >But when I tried to add a header after the \score{ -- e.g. >\score { > \header{ > title = "some silly thing" > composer = "Not Mozart" >} >{ ><< > >The title and composer disappeared into the ether -- clearly >the method here only works for snippets, not full or multi-page >scores. > >I keep banging at this and getting nowhere. > > >As putting a bunch of individual scores together into a book may >be a more or less common task, a good template would be brilliant >and potentially useful for others > >Thanks, > >-Don > >-- >Don Gingrich > > > >___ >lilypond-user mailing list >lilypond-user@gnu.org >https://lists.gnu.org/mailman/listinfo/lilypond-user -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. ___ 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