Re: How do I revert a TextSpanner's staff-padding after a line break?
On 20/09/2017 00:15, Thomas Morley wrote: Probably easiest: { \alterBroken staff-padding #'(5 0) TextSpanner c'1\startTextSpan d' \break e' f'\stopTextSpan } Cheers, Harm Thank you. It works perfectly. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Fingering position inside chords
2017-09-19 22:47 GMT+02:00 David Kastrup: > Thomas Morley writes: > >> I tried to get something helpful from FingeringColumn, but I didn't >> found any useful pointers apart from the ones grob-interface delivers. >> Is it really not possible to get Fingering from FingeringColumn directly ?? >> (one could catch the PaperColumn and then filter for Fingerings, but >> this sounds clumsy...) >> >> Also, fingeringOrientations set left, not only prints Fingering at the >> left, but also left-aligned, where I'd prefer them to be center-align. > > Oh? I'd want them right-aligned when they are to the left. A matter of taste, I'd say. Though we don't have any (sub-)property which could be used. Play around with the Fingering-override above ... Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Fingering position inside chords
Very welcome Marco, Look at this \set fingeringOrientations = #'(down right up) 4 The 1 shall be below the c The 3 to the right of the e The 5 above the chord The individual directions in the #'( ) determine where each fingering is placed. Good? Mark -Original Message- From: Marco Bianchi [mailto:mr.whi...@gmail.com] Sent: Tuesday, September 19, 2017 12:39 PM To: Mark Stephen Mrotek; lilypond-user@gnu.org Subject: Re: Fingering position inside chords Thank you Mark, I've studied that part but I still don't understand how can I move only the "3" to the left when it is inside a chord. I need to choose independently the position of the fingers for every note of the chord. Can you show me the code? Thank you very much, Marco On 19/09/2017 20:09, Mark Stephen Mrotek wrote: > Marco, > > > > Have a look at > > http://lilypond.org/doc/v2.18/Documentation/notation/inside-the-staff# > fingering-instructions > > > > Mark > > > > From: lilypond-user > [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf > Of Marco Bianchi > Sent: Tuesday, September 19, 2017 1:39 AM > To: lilypond-user@gnu.org > Subject: Fingering position inside chords > > > > Hi, > I'm trying to have all the fingerings aligned to the left as in the picture. > Is there a way to move independently every single fingering inside the chord? > My workaround (see the code) it's not perfect and uses an hidden note in a > second voice. > > Thank you very much, > have a nice day. > Marco > > > \version "2.19.65" > \language "english" > > \relative c { >\clef "treble_8" >\time 3/8 >\key a \major ><< > { \hideNotes \once \override Fingering.extra-offset = #'(-4.2 . -1.4) > gs''8-3 } > \\ > { \set fingeringOrientations = #'(left) gs-3>4 } >>> > } > > > -- Marco Bianchi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Fingering position inside chords
Thomas Morleywrites: > I tried to get something helpful from FingeringColumn, but I didn't > found any useful pointers apart from the ones grob-interface delivers. > Is it really not possible to get Fingering from FingeringColumn directly ?? > (one could catch the PaperColumn and then filter for Fingerings, but > this sounds clumsy...) > > Also, fingeringOrientations set left, not only prints Fingering at the > left, but also left-aligned, where I'd prefer them to be center-align. Oh? I'd want them right-aligned when they are to the left. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: change tie color
2017-09-19 22:48 GMT+02:00 Gianmaria Lari: > This code > > \version "2.19.65" > \fixed c'' { > \override Tie.color = #grey > c1 ~ > \revert Tie.color > \override NoteHead.color = #grey > c1 > \revert NoteHead.color > } > > > change the color of the tie and the second c1 note (see attached image). > I would like to simplify the previous code and write something like: > > \version "2.19.65" > \fixed c'' { > c1 \grey {~ c1} > } > > Here http://lsr.di.unimi.it/LSR/Item?id=985 there is something similar but I > have not been able to modify it according my needs. > How can I do it? > > Thank you, g The name 'grey' is taken, see: \void \displayScheme \grey returns the rgb-list of the color called grey, i.e. (list 0.5 0.5 0.5) So use different identifiers. \version "2.19.65" %% override colorGrey = \override Tie.color = #(lambda (grob) (ly:grob-set-property! (ly:spanner-bound grob RIGHT) 'color grey) grey) %% turned into tweak tweakGrey = \single \colorGrey \etc \fixed c'' { c1 \tweakGrey ~ c1 } %% native tweak myGrey = \tweak color #(lambda (grob) (ly:grob-set-property! (ly:spanner-bound grob RIGHT) 'color grey) grey) \etc \fixed c'' { c1\myGrey ~ c1 } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem with Codas
On 09/17/2017 01:50 AM, David Kastrup wrote: > Carl Sorensenwrites: > >> On 9/16/17 8:09 AM, "Shamus Hammons" wrote: >> >>> I have a dream, that one day Lilypond will make codas first class >>> citizens instead of having to exist as a series of ugly hacks. In that >>> day, I could simply write \coda (with maybe some options) and Lilypond >>> would automagically do the right thing. Alas, that day is not today. :-( >> >> What do you consider the "right thing" to be with a coda? > > \repeat coda 2 { %{ segno appears here %} common part } > \alternative { { %{ coda sign here %} first part } > { %{ actual coda formatted here %} coda } } This looks perfectly reasonable to me. :-) How can I help make this happen? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I revert a TextSpanner's staff-padding after a line break?
2017-09-19 14:51 GMT+02:00 Robert Murdoch: > I'm really sorry to bother you all again, but I can not figure this out. In > my last question about a Text Spanner leading into another Text Spanner, I > was finally able to align an accelerando with a ritardando using > staff-padding. > > Unfortunately, after the line break in my score the spanner continues at the > same height as it was on the previous line, as if staff-padding affects > spanners after a line break too. I want the spanner after the break to > revert to 0, but how do I do this? > > Thanks for reading. Probably easiest: { \alterBroken staff-padding #'(5 0) TextSpanner c'1\startTextSpan d' \break e' f'\stopTextSpan } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem with Codas
Shamus Hammonswrites: > On 09/17/2017 01:50 AM, David Kastrup wrote: >> Carl Sorensen writes: >> >>> On 9/16/17 8:09 AM, "Shamus Hammons" wrote: >>> I have a dream, that one day Lilypond will make codas first class citizens instead of having to exist as a series of ugly hacks. In that day, I could simply write \coda (with maybe some options) and Lilypond would automagically do the right thing. Alas, that day is not today. :-( >>> >>> What do you consider the "right thing" to be with a coda? >> >> \repeat coda 2 { %{ segno appears here %} common part } >> \alternative { { %{ coda sign here %} first part } >> { %{ actual coda formatted here %} coda } } > > This looks perfectly reasonable to me. :-) How can I help make this happen? This requires good LilyPond code for formatting the coda, and integration with the repeat structures. The good formatting code can be done by someone versed in LilyPond/Scheme. The integration requires working with the C++ part of LilyPond but has comparatively modest requirements. So if the formatting part is solved with whatever syntax, the integration into \repeat syntax is comparatively light work for specialists even if not low-hanging. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: frescobaldi print
On 18 September 2017 at 14:59, Knute Snortumwrote: > There is also a printer icon on the toolbar that does the same thing as > File > Print Music. (Ctrl-P worked for me on Windows 10.) > The printer icon does absolutely nothing when clicked. On my frescobaldi installation Ctrl-P is for play the music not for print. And finally, File/Print music does nothing, no dialog, no messages, absolutely nothing. Do you have anything set in Edit/Preference/Help application/PDF and Edit/Preference/Help application/Printing command? * * * Sorry for having replay late but I didn't get any notification about your answer. g. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Text Spanner Leading Directly Into Another Text Spanner
Thanks for all the helpful replies everyone, but I've now run into a new problem; I want the second text spanner to align with the first spanner's dashed lines, for the first system. The second text spanner is currently below the dashed lines. How do I fix this? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: frescobaldi print
Ok, I solved the problem. I reinstalled Frescobaldi. An interesting fact is that I had to reinstall it twice. After the first reinstallation Frescobaldi did not run anymore. When I clicked on the application nothing happen (no error dialog box, etc; simply nothing). Maybe because I didn't uninstall it? Second time, I uninstalled it and then reinstalled it. Now it runs and print functionality works. I hope this can be useful also to others. g. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Fingering position inside chords
2017-09-19 21:51 GMT+02:00 David Kastrup: > Marco Bianchi writes: > >> Hi, >> I'm trying to have all the fingerings aligned to the left as in the picture. >> Is there a way to move independently every single fingering inside the chord? >> My workaround (see the code) it's not perfect and uses an hidden note in a >> second >> voice. >> >> Thank you very much, >> have a nice day. >> Marco >> * >> >> \version "2.19.65" >> \language "english" >> >> \relative c { >> \clef "treble_8" >> \time 3/8 >> \key a \major >> << >> { \hideNotes \once \override Fingering.extra-offset = #'(-4.2 . -1.4) >> gs''8-3 } >> \\ >> { \set fingeringOrientations = #'(left) > gs-3>4 } >> >> >> } > > You could use something like > > > > It's not particularly great, I'll readily admit. But at least you can > do something. > > -- > David Kastrup I tried to get something helpful from FingeringColumn, but I didn't found any useful pointers apart from the ones grob-interface delivers. Is it really not possible to get Fingering from FingeringColumn directly ?? (one could catch the PaperColumn and then filter for Fingerings, but this sounds clumsy...) Also, fingeringOrientations set left, not only prints Fingering at the left, but also left-aligned, where I'd prefer them to be center-align. Anyway, the following seems to work, at least for the posted use-case, also returning a center-aligned column. Other use-cases are not tested!! \version "2.19.65" \language "english" \relative c { \clef "treble_8" \time 3/8 \override Fingering.stencil = #(lambda (grob) (let ((stil (ly:stencil-aligned-to (ly:text-interface::print grob) X CENTER))) With fingeringOrientations = #'(left) the Fingerings are left-aligned uncomment (box-stencil ...) and comment 'stil' to view it ;; boxed default-stencil to see left-aligning ;(box-stencil (ly:text-interface::print grob) 0 0) ;; center-aligned stencil stil )) %% default is 0.3, the value 3 is my finding, maybe needs to be adjusted %\once \override Staff.FingeringColumn.snap-radius = 3 \set fingeringOrientations = #'(left) 4 } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
change tie color
This code \version "2.19.65" \fixed c'' { \override Tie.color = #grey c1 ~ \revert Tie.color \override NoteHead.color = #grey c1 \revert NoteHead.color } change the color of the tie and the second c1 note (see attached image). I would like to simplify the previous code and write something like: \version "2.19.65" \fixed c'' { c1 \grey {~ c1} } Here http://lsr.di.unimi.it/LSR/Item?id=985 there is something similar but I have not been able to modify it according my needs. How can I do it? Thank you, g ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Fingering position inside chords
Marco Bianchiwrites: > Hi, > I'm trying to have all the fingerings aligned to the left as in the picture. > Is there a way to move independently every single fingering inside the chord? > My workaround (see the code) it's not perfect and uses an hidden note in a > second > voice. > > Thank you very much, > have a nice day. > Marco > * > > \version "2.19.65" > \language "english" > > \relative c { > \clef "treble_8" > \time 3/8 > \key a \major > << > { \hideNotes \once \override Fingering.extra-offset = #'(-4.2 . -1.4) > gs''8-3 } > \\ > { \set fingeringOrientations = #'(left) 4 > } > >> > } You could use something like \version "2.19.65" \language "english" \relative c { \clef "treble_8" \time 3/8 \key a \major { \set fingeringOrientations = #'(left) 4 } } It's not particularly great, I'll readily admit. But at least you can do something. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Fingering position inside chords
Thank you Mark, I've studied that part but I still don't understand how can I move only the "3" to the left when it is inside a chord. I need to choose independently the position of the fingers for every note of the chord. Can you show me the code? Thank you very much, Marco On 19/09/2017 20:09, Mark Stephen Mrotek wrote: Marco, Have a look at http://lilypond.org/doc/v2.18/Documentation/notation/inside-the-staff#fingering-instructions Mark From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Marco Bianchi Sent: Tuesday, September 19, 2017 1:39 AM To: lilypond-user@gnu.org Subject: Fingering position inside chords Hi, I'm trying to have all the fingerings aligned to the left as in the picture. Is there a way to move independently every single fingering inside the chord? My workaround (see the code) it's not perfect and uses an hidden note in a second voice. Thank you very much, have a nice day. Marco \version "2.19.65" \language "english" \relative c { \clef "treble_8" \time 3/8 \key a \major << { \hideNotes \once \override Fingering.extra-offset = #'(-4.2 . -1.4) gs''8-3 } \\ { \set fingeringOrientations = #'(left)4 } >> } -- Marco Bianchi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Fingering position inside chords
Thomas amazing example, this language is so deep and fascinating. Thanks to everybody for the help Marco On 19/09/2017 22:51, Thomas Morley wrote: 2017-09-19 22:47 GMT+02:00 David Kastrup: Thomas Morley writes: I tried to get something helpful from FingeringColumn, but I didn't found any useful pointers apart from the ones grob-interface delivers. Is it really not possible to get Fingering from FingeringColumn directly ?? (one could catch the PaperColumn and then filter for Fingerings, but this sounds clumsy...) Also, fingeringOrientations set left, not only prints Fingering at the left, but also left-aligned, where I'd prefer them to be center-align. Oh? I'd want them right-aligned when they are to the left. A matter of taste, I'd say. Though we don't have any (sub-)property which could be used. Play around with the Fingering-override above ... Cheers, Harm -- Marco Bianchi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Fingering position inside chords
Marco, Have a look at http://lilypond.org/doc/v2.18/Documentation/notation/inside-the-staff#fingering-instructions Mark From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Marco Bianchi Sent: Tuesday, September 19, 2017 1:39 AM To: lilypond-user@gnu.org Subject: Fingering position inside chords Hi, I'm trying to have all the fingerings aligned to the left as in the picture. Is there a way to move independently every single fingering inside the chord? My workaround (see the code) it's not perfect and uses an hidden note in a second voice. Thank you very much, have a nice day. Marco \version "2.19.65" \language "english" \relative c { \clef "treble_8" \time 3/8 \key a \major << { \hideNotes \once \override Fingering.extra-offset = #'(-4.2 . -1.4) gs''8-3 } \\ { \set fingeringOrientations = #'(left)4 } >> } -- Marco Bianchi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Fingering position inside chords
David this is great! Thank you On 19/09/2017 21:51, David Kastrup wrote: Marco Bianchiwrites: Hi, I'm trying to have all the fingerings aligned to the left as in the picture. Is there a way to move independently every single fingering inside the chord? My workaround (see the code) it's not perfect and uses an hidden note in a second voice. Thank you very much, have a nice day. Marco * \version "2.19.65" \language "english" \relative c { \clef "treble_8" \time 3/8 \key a \major << { \hideNotes \once \override Fingering.extra-offset = #'(-4.2 . -1.4) gs''8-3 } \\ { \set fingeringOrientations = #'(left) 4 } >> } You could use something like It's not particularly great, I'll readily admit. But at least you can do something. -- Marco Bianchi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text Spanner Leading Directly Into Another Text Spanner
Am 19.09.2017 um 11:08 schrieb Robert Murdoch: Thanks for all the helpful replies everyone, but I've now run into a new problem; I want the second text spanner to align with the first spanner's dashed lines, for the first system. The second text spanner is currently below the dashed lines. How do I fix this? Please give a minimal working example. You could try something with TextSpanner.staff-padding. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text Spanner Leading Directly Into Another Text Spanner
Will do. \version "2.19.65" \relative c'' { \override TextSpanner.bound-details.left.text = "accel." \override TextSpanner.bound-details.right.padding = #1 \acciaccatura e8\startTextSpan d4 d r d d2 g4. d8 e2 r R4*4 r2 r4 \override TextSpanner.bound-details.left.text = "rit." c\stopTextSpan\startTextSpan c2. aes4\stopTextSpan } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem with Codas
On 2017-09-18 10:07 PM, Caagr98 wrote: > On 09/18/17 19:46, Joel C. Salomon wrote: >> Omitting the coda alternative, this would be the natural way to input >> repeats of the form “D.S. al Fine”. I would suggest “\repeat ds” (and >> “\repeat dc”, unless you want to add magic that recognizes the start of >> a piece) as the syntax. > > There is already magic that recognizes the start of the piece in volta > repeat (no start repeat barline), so I don't see how that would be a > problem. I’ve got a piece that has the segno at the start, but I suppose an \override could fix that. (Of course, this same printing has one piece with the instruction “D.C. Dal Segno.” where “D.C. al Fine” or “D.S. al Fine” is almost certainly intended, so taking it as an example might not be a good idea.) (Question: if the music continues after the repeat, is that always a coda, or can “Fine” be followed by more music?) ––Joel C. Salomon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
How do I revert a TextSpanner's staff-padding after a line break?
I'm really sorry to bother you all again, but I can not figure this out. In my last question about a Text Spanner leading into another Text Spanner, I was finally able to align an accelerando with a ritardando using staff-padding. Unfortunately, after the line break in my score the spanner continues at the same height as it was on the previous line, as if staff-padding affects spanners after a line break too. I want the spanner after the break to revert to 0, but how do I do this? Thanks for reading. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: frescobaldi print
> > Hi G, > > PRINT is found in the File menu, where you can print the source / music, > as you choose. > Printing is usually quite easy from Frescobaldi. > > 1) What printer are you using, a "PDF" printer, network, etc? > it's a network printer nothing special. It works normally with other programs. > --- I have a Windows 10 machine here to help you test. --- > > 2) When you hit File / Print, you should at the very least get a pop up > dialog box showing available printers, do you? (see attached) > > If not, that's another issue...with Windows... > When I hit File/Print music aboslutely nothing happen (no pop up dialog box). I think this is a issue with frescobaldi configuration. Printer works normally with all the other application. Ok, let me try to reinstall. Thank you Ben for the help. g. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Fingering position inside chords
Hi, I'm trying to have all the fingerings aligned to the left as in the picture. Is there a way to move independently every single fingering inside the chord? My workaround (see the code) it's not perfect and uses an hidden note in a second voice. Thank you very much, have a nice day. Marco \version "2.19.65" \language "english" \relative c { \clef "treble_8" \time 3/8 \key a \major << { \hideNotes \once \override Fingering.extra-offset = #'(-4.2 . -1.4) gs''8-3 } \\ { \set fingeringOrientations = #'(left)gs-3>4 } >> } -- Marco Bianchi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text Spanner Leading Directly Into Another Text Spanner
Am 19.09.2017 um 12:45 schrieb Robert Murdoch: Will do. As I assumed staff-padding is the right thing here: \override TextSpanner.staff-padding = 2.5 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Difference between #music and \music?
The following code runs without error: \version "2.19" #(define-markup-command (myMarkup layout props music) (ly:music?) % Code to generate markup based on music goes here—elided for simplicity (interpret-markup layout props "myMarkup")) music = { c'1 } \markup \myMarkup #music \ music However, if I replace #music with \music as the argument to \myMarkup, I get the following error: document.ly:9:19: error: syntax error, unexpected MUSIC_IDENTIFIER, expecting LOOKUP_IDENTIFIER or SCM_FUNCTION or SCM_IDENTIFIER or SCM_TOKEN \markup \myMarkup \music Can anyone shed some light on the difference between #music and \music? Thanks, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user