Re: repeats in parallel mode?
The problem appears to lie with the repeats. If you use the version I have below, the music works as you would expect. I'm not quite sure what you're trying to do with the repeats - repeat the first bar twice and the second bar twice? To debug problems like this is not too difficult: look at the examples in the Reference Notation and take away everything that's not there: I got rid of the \score and the \layout while looking at what wasn't right. I then got rid of the repeats and all was OK. I put the score and layout back which changed nothing. \version "2.12.3" \parallelMusic #'(voiceA voiceB) { \key c \major \time 4/4 %\repeat volta 2 { c4 c c c | %voiceA measure 1 c,4 c c c | %voiceB measure 1 %} %\repeat volta 2 { g4 g g g | %voiceA measure 2 g,4 g g g | %voiceB measure 2 %} } \score { \new StaffGroup << \new Staff << \relative c'' \voiceA \\ \relative c'' \voiceB>> \layout{} } -- Phil Holmes - Original Message - From: "William Bajzek" To: Sent: Sunday, July 11, 2010 4:20 AM Subject: repeats in parallel mode? I just read about the \parallelMusic function and was trying it out. First of all, I'd like to say that I think it's great because it is a very convenient way to lay out multi-voice music. The problem I've run into can be seen in the following; I expect it to emit two measures but it emits four instead. Hopefully my intent is clear enough; what's the right way to do this? \version "2.12.3" \parallelMusic #'(voiceA voiceB) { \key c \major \time 4/4 \repeat volta 2 { c4 c c c | %voiceA measure 1 c,4 c c c | %voiceB measure 1 } \repeat volta 2 { g4 g g g | %voiceA measure 2 g,4 g g g | %voiceB measure 2 } } \score { \new StaffGroup << \new Staff << \relative c'' \voiceA \\ \relative c'' \voiceB>> \layout { } %emits four measures } Thanks, - William Bajzek williambaj...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Only one title prints if I try to \include > 1 tune on a sheet
When you posted earlier, you were given 2 suggestions: 1. Add \paper{ print-all-headers = ##t } To the main file. 2. Put the \header blocks at the end of the \score block (from the Notation Reference, section 3.2.1). Have you tried these? (Clue - if you do, you will find the titles print as you want.) -- Phil Holmes - Original Message - From: "hsweet" To: Sent: Saturday, July 10, 2010 10:44 PM Subject: Re: Only one title prints if I try to \include > 1 tune on a sheet This is the file with the \includes \version "2.12.2" \include "Cocek.ly" \include "Bb_scale.ly" These are 2 files to include. http://old.nabble.com/file/p29128416/Bb_scale.ly Bb_scale.ly http://old.nabble.com/file/p29128416/Cocek.ly Cocek.ly If you attach the files you're actually having a problem with, we can see how to help. As a general rule, using a \include simply means the file can be pasted into the code in place of the included file. So if you \include a file with the \score and \header information, I don't see why it won't work. -- -- View this message in context: http://old.nabble.com/Only-one-title-prints-if-I-try-to-%5Cinclude-%3E-1-tune-on-a-sheet-tp29125786p29128416.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Only one title prints if I try to \include > 1 tune on a sheet
As Phil said before, the main file should look like this: \version "2.12.2" \paper { print-all-headers = ##t } \include "Cocek.ly" \include "Bb_scale.ly" Then in the included files you should move the \header *inside* the \score block. You can find why in Learning Manual 3.1 and Notation 3.1.2 Cheers, Federico Il giorno sab, 10/07/2010 alle 14.44 -0700, hsweet ha scritto: > This is the file with the \includes > > \version "2.12.2" > > \include "Cocek.ly" > \include "Bb_scale.ly" > > These are 2 files to include. > > > http://old.nabble.com/file/p29128416/Bb_scale.ly Bb_scale.ly > http://old.nabble.com/file/p29128416/Cocek.ly Cocek.ly > > > If you attach the files you're actually having a problem with, we can see > how to help. As a general rule, using a \include simply means the file can > be pasted into the code in place of the included file. So if you \include a > file with the \score and \header information, I don't see why it won't work. > > -- > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Downloading the Git repository
In the section of the install doc at http://lilypond.org/doc/v2.13/Documentation/topdocs/INSTALL#getting-the-source-code that deals with this, there is a link titled "Starting with Git" pointing to the URL http://lilypond.org/doc/v2.13/Documentation/topdocs/contributor#starting-with-git. The document http://lilypond.org/doc/v2.13/Documentation/topdocs/contributor either doesn't exist or isn't accessible. Nick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Barres and enclose-bounds
Thanks. I changed the version number a few times until I got some meaningful output from convert-ly. It couldn't do the whole job, but it gave an indication as to what needed to be changed. I've ended up with the following, which may be of help to others: barre = #(define-music-function (parser location str)(string?) #{ \once \override Voice . TextSpanner #'direction = #1 \once \override Voice . TextSpanner #'style = #'line \once \override Voice . TextSpanner #'(bound-details right text) = \markup { \draw-line #'(0 . -0.5) } \once \override Voice . TextSpanner #'(bound-details left text) = #(markup (format "c~a" $str)) #}) This works. << { 4 | } \\ \override StringNumber #'extra-offset = #'(0.0 . -2.5) \once \override Voice.TextSpanner #'padding = #'5.5 { \barre #"IX" 8\startTextSpan e'\stopTextSpan \once \override Voice.TextSpanner #'padding = #'4.0 \barre #"VII" \startTextSpan \stopTextSpan | } >> http://old.nabble.com/file/p29131041/tostretch.png My next exercise will be to see if I can adjust the width of the barre, as I would like it to span to the outside edge of the note head, and not the centre line, but I'll try figure that out before asking the question here. Paul P.S. I seem to have a different username now. Oh well. Getting the hang of things. -Eluze wrote: > > convert-ly could be of help, see > http://lilypond.org/doc/v2.12/Documentation/user/lilypond-program-big-page > Application Usage > > hth > -- View this message in context: http://old.nabble.com/Barres-and-enclose-bounds-tp29129706p29131041.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: repeats in parallel mode?
The only thing which seems to work for me, after experimenting for a while, is to add the repeats manually like this: \version "2.12.3" \parallelMusic #'(voiceA voiceB) { \key c \major \time 4/4 c4 c c c | \bar ":|:" %voiceA measure 1 c,4 c c c | \bar ":|:" %voiceB measure 1 g4 g g g | \bar ":|:" %voiceA measure 2 g,4 g g g | \bar ":|:" %voiceB measure 2 } \score { \new StaffGroup << \new Staff << \relative c'' \voiceA \\ \relative c'' \voiceB>> >> \layout{} } Searching around a bit, I saw other people with similar difficulties with alternate endings in repeats. Paul William Bajzek wrote: > > I just read about the \parallelMusic function and was trying it out. First > of all, I'd like to say that I think it's great because it is a very > convenient way to lay out multi-voice music. The problem I've run into can > be seen in the following; I expect it to emit two measures but it emits > four instead. Hopefully my intent is clear enough; what's the right way to > do this? > > > \version "2.12.3" > > \parallelMusic #'(voiceA voiceB) { >\key c \major >\time 4/4 > > \repeat volta 2 { > c4 c c c | %voiceA measure 1 > c,4 c c c | %voiceB measure 1 > } > > \repeat volta 2 { > g4 g g g | %voiceA measure 2 > g,4 g g g | %voiceB measure 2 > } > > } > > \score { > \new StaffGroup << > \new Staff << \relative c'' \voiceA \\ \relative c'' \voiceB>> > >> > \layout { } %emits four measures > } > > > Thanks, > - William Bajzek > williambaj...@gmail.com > > > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > > -- View this message in context: http://old.nabble.com/repeats-in-parallel-mode--tp29129407p29131128.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: repeats in parallel mode?
You actually don't need that many \bar ":|:". Only one per bar and not two. c4 c c c | %voiceA measure 1 c,4 c c c | \bar ":|:" %voiceB measure 1 g4 g g g | %voiceA measure 2 g,4 g g g | \bar ":|:" %voiceB measure 2 Paul -- View this message in context: http://old.nabble.com/repeats-in-parallel-mode--tp29129407p29131186.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Barres and enclose-bounds
Hi Paul, Here's my barre function (takes care of breaks as well). Hope it can be of some help or at least give you some ideas... barre = #(define-music-function (parser location padding text) (number? string?) #{ \once \override TextSpanner #'font-size = #-0.5 \once \override TextSpanner #'padding = #$padding \once \override TextSpanner #'(bound-details left text) = #$text \once \override TextSpanner #'(bound-details left padding) = #-0.5 \once \override TextSpanner #'(bound-details left-broken text) = \markup { \null } \once \override TextSpanner #'(bound-details left-broken padding) = #0 \once \override TextSpanner #'font-shape = #'upright \once \override TextSpanner #'style = #'line %\once \override TextSpanner #'style = #'dashed-line %\once \override TextSpanner #'dash-period = #0.8 %\once \override TextSpanner #'dash-fraction = #0.2 \once \override TextSpanner #'(bound-details left stencil-align-dir-y) = #CENTER \once \override TextSpanner #'(bound-details right text) = \markup { \draw-line #'(0 . -0.4) } \once \override TextSpanner #'(bound-details right padding) = #-1.0 \once \override TextSpanner #'(bound-details right-broken text) = \markup { \null } \once \override TextSpanner #'(bound-details right-broken padding) = #0 #}) startBarre = \startTextSpan stopBarre = \stopTextSpan To use: \barre #4 "CV" (first argument = vertical padding, second argument = barre text) Example: \relative c' = { \stemDown \barre #4 "CV " a'\startBarre c e a\stopBarre } If you prefer dotted/dashed lines then you can uncomment the style, dash-period and dash-fraction lines. Hope it helps. Phil. - Original Message - From: "paulxiii" To: Sent: Sunday, July 11, 2010 12:41 PM Subject: Re: Barres and enclose-bounds Thanks. I changed the version number a few times until I got some meaningful output from convert-ly. It couldn't do the whole job, but it gave an indication as to what needed to be changed. I've ended up with the following, which may be of help to others: barre = #(define-music-function (parser location str)(string?) #{ \once \override Voice . TextSpanner #'direction = #1 \once \override Voice . TextSpanner #'style = #'line \once \override Voice . TextSpanner #'(bound-details right text) = \markup { \draw-line #'(0 . -0.5) } \once \override Voice . TextSpanner #'(bound-details left text) = #(markup (format "c~a" $str)) #}) This works. << { 4 | } \\ \override StringNumber #'extra-offset = #'(0.0 . -2.5) \once \override Voice.TextSpanner #'padding = #'5.5 { \barre #"IX" 8\startTextSpan e'\stopTextSpan \once \override Voice.TextSpanner #'padding = #'4.0 \barre #"VII" \startTextSpan \stopTextSpan | } >> http://old.nabble.com/file/p29131041/tostretch.png My next exercise will be to see if I can adjust the width of the barre, as I would like it to span to the outside edge of the note head, and not the centre line, but I'll try figure that out before asking the question here. Paul P.S. I seem to have a different username now. Oh well. Getting the hang of things. -Eluze wrote: convert-ly could be of help, see http://lilypond.org/doc/v2.12/Documentation/user/lilypond-program-big-page Application Usage hth -- View this message in context: http://old.nabble.com/Barres-and-enclose-bounds-tp29129706p29131041.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
hiding barnumber only when rehearsalmark appears
Nowadays most concert band (or wind orchestra) score publishers use this style : * Print barnumber on each bar * But there is a rehearsal mark, hide it for example, ( [ ] means square/rectangle) 1 2 3 45 6[A]8 9 10 (Piccolo Music) (Flute Music~~) (Oboes Music~~) (Clarinets Music~~~) . Lilypond does not automatically hide barnumber. I tried to do it with writing: \once \override Score.BarNumber #'transparent = ##t \mark \default but 2 problems ocurred. One is that, because of setting #'transparent, the rehearsalmark is in too higher position so that it can avoid barnumber.(barnumber is not hid but just transparent.) The other is that, when grace note is used, overrides setting on barnumber itself doesn't work, so barnumber won't hide. How can this be solved? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: hiding barnumber only when rehearsalmark appears
Hi Akira, > \once \override Score.BarNumber #'transparent = ##t > \mark \default > > but 2 problems ocurred. > One is that, because of setting #'transparent, the rehearsalmark is in > too higher position so that it can avoid barnumber.(barnumber is not > hid but just transparent.) That's because you made it transparent. ;) Have you tried \once \override Score.BarNumber #'stencil = ##f ?? > The other is that, when grace note is used, overrides setting on > barnumber itself doesn't work, so barnumber won't hide. Maybe it would if you put a skip grace before the override, so that the timing is synched? Hope this helps! Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: hiding barnumber only when rehearsalmark appears
I've encountered a similar problem in my scores. My solution has been to create a command "beforeMark = { \once \override Score.BarNumber #'break-visibility = ##(#f #f #f) }" at the beginning of the file, and then call it when I have a mark (i.e. \beforeMark \mark \default). It seems to work well for me. HTH Nick On Sun, Jul 11, 2010 at 9:12 AM, Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Akira, > > > \once \override Score.BarNumber #'transparent = ##t > > \mark \default > > > > but 2 problems ocurred. > > One is that, because of setting #'transparent, the rehearsalmark is in > > too higher position so that it can avoid barnumber.(barnumber is not > > hid but just transparent.) > > That's because you made it transparent. ;) > Have you tried >\once \override Score.BarNumber #'stencil = ##f > ?? > > > The other is that, when grace note is used, overrides setting on > > barnumber itself doesn't work, so barnumber won't hide. > > Maybe it would if you put a skip grace before the override, so that the > timing is synched? > > Hope this helps! > Kieren. > ___ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > -- And she forgot the stars, the moon, and sun, And she forgot the blue above the trees, And she forgot the dells where waters run, And she forgot the chilly autumn breeze... www.hastyorisons.blogspot.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
skip grace was:Re: hiding barnumber only when rehearsalmark appears
On Sun, Jul 11, 2010 at 09:12:03AM -0400, Kieren MacMillan wrote: > Hi Akira, > > Maybe it would if you put a skip grace before the override, so that the > timing is synched? Is that use of "skip grace" documented somewhere? Thanks, Paul Scott ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: skip grace was:Re: hiding barnumber only when rehearsalmark appears
Yes. Notation Reference 1.2.6 Grace Notes (under Known Issues and Warnings). "Grace Note synchronization can also lead to surprises..." James On 11 Jul 2010, at 15:51, Paul Scott wrote: On Sun, Jul 11, 2010 at 09:12:03AM -0400, Kieren MacMillan wrote: Hi Akira, Maybe it would if you put a skip grace before the override, so that the timing is synched? Is that use of "skip grace" documented somewhere? Thanks, Paul Scott ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: repeats in parallel mode?
On Jul 11, 2010, at 2:15 AM, Phil Holmes wrote: > The problem appears to lie with the repeats. If you use the version I have > below, the music works as you would expect. I'm not quite sure what you're > trying to do with the repeats - repeat the first bar twice and the second bar > twice? I want it to emit two measures, each surrounded with repeats. - William Bajzek williambaj...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-user Digest, Vol 92, Issue 28
Thanks; I guess that's not exactly ideal but it is good enough for me. On Jul 11, 2010, at 5:00 AM, paulxii wrote: > > The only thing which seems to work for me, after experimenting for a while, > is to add the repeats manually like this: > > \version "2.12.3" > > \parallelMusic #'(voiceA voiceB) { > \key c \major > \time 4/4 > >c4 c c c | \bar ":|:" %voiceA measure 1 >c,4 c c c | \bar ":|:" %voiceB measure 1 > >g4 g g g | \bar ":|:" %voiceA measure 2 >g,4 g g g | \bar ":|:" %voiceB measure 2 > > } - William Bajzek williambaj...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: repeats in parallel mode?
Am Sonntag, 11. Juli 2010, um 05:20:19 schrieb William Bajzek: > I just read about the \parallelMusic function and was trying it out. First > of all, I'd like to say that I think it's great because it is a very > convenient way to lay out multi-voice music. The problem I've run into can > be seen in the following; I expect it to emit two measures but it emits > four instead. Hopefully my intent is clear enough; what's the right way to > do this? > \parallelMusic #'(voiceA voiceB) { >\key c \major >\time 4/4 > > \repeat volta 2 { > c4 c c c | %voiceA measure 1 > c,4 c c c | %voiceB measure 1 > } > > \repeat volta 2 { > g4 g g g | %voiceA measure 2 > g,4 g g g | %voiceB measure 2 > } > > } You need to place every measure into a separate repeat: \parallelMusic #'(voiceA voiceB) { \key c \major \time 4/4 \repeat volta 2 { c4 c c c } | %voiceA measure 1 \repeat volta 2 { c,4 c c c } | %voiceB measure 1 \repeat volta 2 { g4 g g g } | %voiceA measure 2 \repeat volta 2 { g,4 g g g } | %voiceB measure 2 } Then it works just fine. Cheers, Reinhold -- -- Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Downloading the Git repository
On Sun, Jul 11, 2010 at 4:06 AM, Nick Payne wrote: > In the section of the install doc at > http://lilypond.org/doc/v2.13/Documentation/topdocs/INSTALL#getting-the-source-code > that deals with this, there is a link titled "Starting with Git" pointing to > the URL > http://lilypond.org/doc/v2.13/Documentation/topdocs/contributor#starting-with-git. > The document http://lilypond.org/doc/v2.13/Documentation/topdocs/contributor > either doesn't exist or isn't accessible. How did you navigate to this INSTALL page? The page you should find is http://lilypond.org/doc/v2.13/Documentation/contributor/getting-the-source-code Thanks, Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: skip grace was:Re: hiding barnumber only when rehearsalmark appears
On Sun, Jul 11, 2010 at 04:38:33PM +0100, James Lowe wrote: > Yes. > > Notation Reference > > 1.2.6 > > Grace Notes (under Known Issues and Warnings). "Grace Note > synchronization can also lead to surprises..." Thanks but I'm quite familiar with grace note sychronization due to the old LilyPond "bug". I was referring to what seemed in this thread to be another kind of synchronization using \grace This came up in another thread as a possible solution to getting text synchronized to the left side of multi-measure rests. Paul ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: hiding barnumber only when rehearsalmark appears
On 11 July 2010 15:36, Nick Baskin wrote: > I've encountered a similar problem in my scores. My solution has been to > create a command "beforeMark = { \once \override Score.BarNumber > #'break-visibility = ##(#f #f #f) }" at the beginning of the file, and then > call it when I have a mark (i.e. \beforeMark \mark \default). It seems to > work well for me. If you're using 2.13, a Scheme engraver will automate this process: #(define (bar-number-visibility-engraver ctx) "Hides a bar number if it coincides with a rehearsal mark." (let ((mark #f) (bar-number #f)) `((acknowledgers (break-alignable-interface . ,(lambda (trans grob source) (and (not (grob::has-interface grob 'mark-interface)) (set! bar-number grob (mark-interface . ,(lambda (trans grob source) (set! mark grob (process-acknowledged . ,(lambda (trans) (and mark bar-number (set! (ly:grob-property bar-number 'break-visibility) all-invisible (stop-translation-timestep . ,(lambda (trans) (set! mark #f) (set! bar-number #f)) \score { \new Staff \relative c' { \override Score.BarNumber #'break-visibility = #end-of-line-invisible \set Score.barNumberVisibility = #all-bar-numbers-visible \set Score.markFormatter = #format-mark-box-letters \bar "" \repeat unfold 10 { c1 \mark \default c1 } } \layout { \context { \Score \consists #bar-number-visibility-engraver } } } Cheers, Neil <>___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Barres and enclose-bounds
Here's another barre function: % % more attractive barring indication than the inbuilt one % Parameters % % ""% fret number (eg "5") % #osp% outside-staff-priority - normally set to #0 unless barre is colliding with other elements % #dirn% set to #UP for above the staff, #DOWN for below % #'(lpad . rpad)% left and right padding to apply to TextSpanner (shorten or lengthen) % #adjBreak% when barre wraps to following stave, set value to prevent TextSpanner on following stave starting above the clef symbol % #adjend% when barre wraps to following stave, set value to prevent TextSpanner going to the very end of the stave % % Example: %\barre "5" #0 #UP #'(-0.5 . -1) #8 #1 % \startTextSpan -> -> \stopTextSpan % barre = #(define-music-function (parser location fretnum osp dirn shorten adjBreak adjEnd) (string? number? number? pair? number? number?) #{ \once \override TextSpanner #'outside-staff-priority = #$osp \once \override TextSpanner #'bound-details #'left #'text = \markup { \small { \concat { "C" "." $fretnum " " } } } \once \override TextSpanner #'style = #'line \once \override TextSpanner #'font-shape = #'upright \once \override TextSpanner #'direction = #$dirn %draw a bracket edge on RHS \once \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #(cons 0 (/ $dirn -1)) } % set alignment of line with reference to left text \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #CENTER % change X pos of LH and RH end as desired \once \override TextSpanner #'bound-details #'left #'padding = #(car $shorten) \once \override TextSpanner #'bound-details #'right #'padding = #(cdr $shorten) % allow adjustment of line end when it wraps to following stave \once \override TextSpanner #'bound-details #'right-broken #'padding = #$adjEnd % adjust LH end of line when it wraps to following stave so that it doesn't % extend to the left of the notes on the stave \once \override TextSpanner #'bound-details #'left-broken #'X = #$adjBreak % optional override to remove text and bracket edge at line breaks \once \override TextSpanner #'bound-details #'left-broken #'text = ##f \once \override TextSpanner #'bound-details #'right-broken #'text = ##f #}) % and here's one for half barres that slashes the C and subscripts the number of strings covered: % % % postscript slash for half barres #(define slash "0.18 setlinewidth 0.76 1.53 moveto 0 -1.62 rlineto stroke") % % Half barre % Parameters % % ""% fret number (eg "5") % ""% number of strings to cover - subscripted to the fret number % #osp% outside-staff-priority - normally set to #0 unless barre is colliding with other elements % #dirn% set to #UP for above the staff, #DOWN for below % #'(lpad . rpad)% left and right padding to apply to TextSpanner (shorten or lengthen) % #adjBreak% when barre wraps to following stave, set value to prevent TextSpanner on following stave starting above the clef symbol % #adjend% when barre wraps to following stave, set value to prevent TextSpanner going to the very end of the stave % % Example: %\hbarre "5" "3" #0 #UP #'(-0.5 . -1) #8 #1 % \startTextSpan -> -> \stopTextSpan % hbarre = #(define-music-function (parser location fretnum partial osp dirn shorten adjBreak adjEnd) (string? string? number? number? pair? number? number?) #{ \once \override TextSpanner #'outside-staff-priority = #$osp \once \override TextSpanner #'bound-details #'left #'text = \markup { \small { \concat { \postscript #slash "C" "." $fretnum \raise #0.8 \sub $partial " " } } } \once \override TextSpanner #'style = #'line \once \override TextSpanner #'font-shape = #'upright \once \override TextSpanner #'direction = #$dirn %draw a bracket edge on RHS \once \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #(cons 0 (/ $dirn -1)) } % set alignment of line with reference to left text \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #CENTER % change X pos of LH and RH end as desired \once \override TextSpanner #'bound-details #'left #'padding = #(car $shorten) \once \override TextSpanner #'bound-details #'right #'padding = #(cdr $shorten) % allow adjustment of line end when it wraps to following stave \once \override TextSpanner #'bound-details #'right-broken #'padding = #$adjEnd % adjust LH end of line when it wraps to following stave so that it doesn't % extend to the left of the notes on the stave \once \override TextSpanner #'bound-details #'left-broken #'X = #$adjBreak % optional overrid
Re: Downloading the Git repository
On 12/07/10 03:26, Patrick McCarty wrote: On Sun, Jul 11, 2010 at 4:06 AM, Nick Payne wrote: In the section of the install doc at http://lilypond.org/doc/v2.13/Documentation/topdocs/INSTALL#getting-the-source-code that deals with this, there is a link titled "Starting with Git" pointing to the URL http://lilypond.org/doc/v2.13/Documentation/topdocs/contributor#starting-with-git. The document http://lilypond.org/doc/v2.13/Documentation/topdocs/contributor either doesn't exist or isn't accessible. How did you navigate to this INSTALL page? The page you should find is http://lilypond.org/doc/v2.13/Documentation/contributor/getting-the-source-code Two clicks from the home page got me there. From http://lilypong.org, click on the "Development" link at the top of the page, then click on the link for "building and installation instructions (development version)". Nick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: line break in unequal bars
On 10 July 2010 20:10, Neil Thornock wrote: > See modifications to your code below. It seems like something with > Forbid_line_break_engraver should work instead of the *0, but I can't > figure it out. This does work, though. That's an interesting approach, but your intuition about Forbid_line_break_engraver is right. If it's removed, and beams are made breakable, then you don't need to scale any notes (or add explicit breaks). \layout { \context { \Score \remove "Timing_translator" \remove "Default_bar_line_engraver" } \context { \Staff \consists "Timing_translator" \consists "Default_bar_line_engraver" } \context { \Voice \remove "Forbid_line_break_engraver" \override Beam #'breakable = ##t } } \relative c' << \new Staff { \time 4/4 r4^\markup"tempo=54" b'2.~ | % 1 b4 c2 a4~ | % 2 a r2. | % 3 r4 b2.~ | % 4 b4 c4. a8 d4~ | % 5 d2. cis4~ | % 6 cis r2. | % 7 b1 | % 8 c | % 9 g | % 10 } \new Staff { << { \time 54/84 \set Staff.timeSignatureFraction = #'(4 . 4) \scaleDurations #'(54 . 84) { b8^\markup"tempo=84" b b b b b b b16 es | % 1 d8 d d b16 es d8 b16 es d8 b16 es | % 2 d8 d b b d b b b | % 3 gis[ gis gis gis gis gis gis gis16 fis'] | % 4 dis8 dis dis gis,16 fis' dis8 gis,16 fis' dis8 gis,16 fis' | % 5 dis8 dis dis dis fis dis dis dis | % 6 b8[ b b b b b b b16 es] | % 7 d8 d d b16 es d8 b16 es d8 b16 es | % 8 d8 d b b d b b b | % 9 gis[ gis gis gis gis gis gis gis16 fis'] | % 10 dis8 dis dis gis,16 fis' dis8 gis,16 fis' dis8 gis,16 fis' | % 11 dis8 dis dis dis fis dis dis dis | % 12 } } } { \repeat unfold 3 { s1*2 \bar "" } } >> } >> BTW, there's only one voice in the lower stave (there's no voice separator between the scaled notes and the skips). Cheers, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Special tempo indication in new version of lilypond
Hello, I know how to write special tempo indication like 4= ca120 in old versions of lilypond. But since the new ones have included \tempo text + tempo function, I don't know how to adjust it. Moreover, the indication is quite different from the snippet. At the end of my overture, there are both 9/8 and 4/4, so I must add something like this: Presto q=160 (q.=120) so that the conductor can correctly handle the meter changes. How to do that? Regards Haipeng ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Downloading the Git repository
On Sun, Jul 11, 2010 at 2:10 PM, Nick Payne wrote: > On 12/07/10 03:26, Patrick McCarty wrote: >> >> How did you navigate to this INSTALL page? >> >> The page you should find is >> >> http://lilypond.org/doc/v2.13/Documentation/contributor/getting-the-source-code > > Two clicks from the home page got me there. From http://lilypong.org, click > on the "Development" link at the top of the page, then click on the link for > "building and installation instructions (development version)". Fixed (it will be updated within an hour). Keep in mind that the old site is not really maintained and the new site will be going live pretty soon, so it's not worth fixing too many old links. Thanks, Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user