Re: Hiding staff without hiding bar lines
Federico Bruni gmail.com> writes: > Il 30/08/2012 03:58, Michael Rivers ha scritto: > > > > I've figured out how to hide clefs, time signatures, bar lines and the > > entire staff. My problem is that \stopStaff seems to also hide all bar > > lines. Often, this is what I want, but other times I need the bar lines to > > be visible. I > I wouldn't expect that removing the staff lines only removes also the > bar lines: > The bar line is drawn tall enough to span the staff lines, so we don't want to make zero staff lines, but rather make them transparent in this case. \relative c' { f4 g a b \stopStaff \override Staff.StaffSymbol #'transparent = ##t \startStaff f4 g a b } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Changing quarter tone notation
Arle Lommel gmail.com> writes: > > As a separate question from the last, does anyone know of a simple way > to override the quarter-tone notation in Lilypond? This method http://lsr.dsi.unimi.it/LSR/Item?id=784 is maybe more complicated than you need, because it takes trouble to distinguish C-sharp-up from D-natural-down. You might need only the part with \override KeySignature #'glyph-name-alist = \arrowGlyphs and a simplified version of arrowGlyphs arrowGlyphs = #`( (1 . "accidentals.doublesharp") (3/4 . "accidentals.sharp.arrowup") (1/2 . "accidentals.sharp") etc. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book and title page
Thanks Jakub, that tutorial helped to fix some issues I had. -- Daniel E. Moctezuma ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hiding staff without hiding bar lines
Federico Bruni writes: > Il 30/08/2012 03:58, Michael Rivers ha scritto: >> I'm a relatively new LilyPond user, so I apologize if this is something I >> should have found in the manual. I'm trying to use LilyPond to make >> worksheets and theory tests, so I need to hide elements for students to fill >> in themselves. I also need to notate rhythms without a staff. I know that >> rhythms can be notated on a one-line percussion staff, but I really prefer >> the look of no staff with full bar lines. >> >> I've figured out how to hide clefs, time signatures, bar lines and the >> entire staff. My problem is that \stopStaff seems to also hide all bar >> lines. Often, this is what I want, but other times I need the bar lines to >> be visible. Is there another way to hide the staff, or is there a way to >> make the bar lines reappear with \stopStaff? >> >> -Michael >> > > I can't help you. > I've tried the following but it doesn't work. > I wouldn't expect that removing the staff lines only removes also the > bar lines: It doesn't remove the barlines, but with a height of zero, you are not likely to notice the difference. > \version "2.16.0" > > \relative c' { > \override Staff.StaffSymbol #'line-count = #0 > f4 g a b > % let's try to force the visibility of barlines. Doesn't work.. > \override Staff.BarLine #'stencil = ##t ##t is not a stencil anyway (neither is ##f, but it is a shorthand for "switch it off"). I tried \override BarLine #'bar-extent = #'(-2 . 2) instead (from the definition of RhythmicStaff in ly/engraver-init.ly), but it seems it would need at least one line. However, instead of meddling with the line-count (which also affects layout), you can just let the lines have no appearance: I find that \override Staff.StaffSymbol #'stencil = ##f \override Staff.LedgerLineSpanner #'stencil = ##f seems to do the trick (assuming that you don't want to see ledger lines either; omit the last line if that assumption is wrong). > f4 g a b > } -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics help
Arle Lommel wrote Thursday, August 30, 2012 7:40 AM > I'm transcribing some songs I collected in the field and I need to > have a volta repeat in the music where the lyrics for two verses > are listed under the repeated section and then for the rest of the > song has a single line. I've figured out ways to attach two lines > to the entire song (and obviously ways to attach one line to the > entire song), but not a way to have two lines for just part of the song. The way to do this is not trivially obvious. You'll find some clues in http://www.lilypond.org/doc/v2.17/Documentation/notation/techniques-specific-to-lyrics#lyrics-and-repeats Read the whole section. (If this doesn't help, please post again.) Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hiding staff without hiding bar lines
Keith OHara writes: > Federico Bruni gmail.com> writes: > >> Il 30/08/2012 03:58, Michael Rivers ha scritto: >> > >> > I've figured out how to hide clefs, time signatures, bar lines and the >> > entire staff. My problem is that \stopStaff seems to also hide all bar >> > lines. Often, this is what I want, but other times I need the bar lines to >> > be visible. I > >> I wouldn't expect that removing the staff lines only removes also the >> bar lines: >> > > The bar line is drawn tall enough to span the staff lines, so we don't want > to make zero staff lines, but rather make them transparent in this case. > > \relative c' { > f4 g a b > \stopStaff > \override Staff.StaffSymbol #'transparent = ##t > \startStaff > f4 g a b } I agree that this is better than removing the stencil as I proposed, since you still want the stafflines to reserve space. They probably would because of other reasons, but "transparent" makes more sense if the students are supposed to place them manually. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics help
Thanks Trevor, Thanks for pointing me in the right direction. My mistake was to look in lyrics, not repeats, I guess. I just tried it and it worked well, so I'm set. As you say, not trivially obvious, but I can see the logic behind the syntax (even if I would never have guessed it in a hundred years). Seems like something where some rationalization might help, but I won't look a gift horse in the mouth (especially not one that does so much that I need that would be well-nigh impossible with any of the non-free packages). But this does it, so much appreciated. Best, Arle On Aug 30, 2012, at 9:48 AM, "Trevor Daniels" wrote: > The way to do this is not trivially obvious. You'll find some > clues in > > http://www.lilypond.org/doc/v2.17/Documentation/notation/techniques-specific-to-lyrics#lyrics-and-repeats > > Read the whole section. > > (If this doesn't help, please post again.) > > Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics help
Actually, as I look, I'm not sure how I missed this. But I did search for quite a while, so thank you again Trevor for the help. Best, Arle ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics help
Hello Arle, 2012/8/30 Arle Lommel > I'm transcribing some songs I collected in the field and I need to have a > volta repeat in the music where the lyrics for two verses are listed under > the repeated section and then for the rest of the song has a single line. > I've figured out ways to attach two lines to the entire song (and obviously > ways to attach one line to the entire song), but not a way to have two > lines for just part of the song. > > To be clearer, here is a little ASCII diagram of what I am after: > > |: SOME MUSIC GOES HERE :| SOME MORE MUSIC IN THE SAME VOICE | > 1. Lyrics to verse one3. Lyrics to voice three > 2. Lyrics to verse two > > | SOME MORE MUSIC GOES HERE IN THE SAME VOICE | > 4. Lyrics to verse four 4. Lyrics to verse five… etc. > > If you are able to attach two lines to the entire song and you need your two lines only at the beginning, the solution is very simple: firstlyricsline = { lyrics1 lyrics3 lyrics4 lyrics5 } secondlyricsline = { lyrics2 } HTH Marek Klein http://gregoriana.sk ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: LC_PAPER and default paper size
Pavel Roskin writes: > Quoting David Kastrup : > >> What is wrong with specifying the paper size you want in the \paper >> block? > > I want to make the scores available to everybody. I want users across > the world to be able to find the music, create the PDF and print it > with no problems on the paper they have. But they will have problems when their paper size is one you have not tested. > Specifying \paper would make the choice for the users. Printers might > ask for paper that is not readily available. Actually, Mutopia > doesn't want \paper to be specified. Probably because they want scores to work (or not) consistently out of the box (which in this case means that the default favors the majority of the world rather than the U.S.A., as opposed to what LaTeX does). >> More often than not, the global staff size and manual tweaks are set >> to achieve a certain page layout. If LilyPond changed its behavior >> on different computers, stuff would stop working without the user >> having a clue that this was not intended output. > > Now that's a strong argument against LC_PAPER. I'm guilty of making > such tweaks too. Of course it happens to some degree with major version changes as well. But it is rare that something _stops_ fitting due to spacing changes. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
vertical spacing on second page
Hi, am I misunderstanding how vertical spacing works? I am not sure how to make the second page of a score respect these \paper variables. The second page has everything close to the top for me. I am referring specifically to top-markup-spacing and markup-system-spacing. Thanks! Curt \version "2.16.0" \include "english.ly" \paper { ragged-bottom = ##t ragged-last-bottom = ##t markup-system-spacing #'basic-distance = #18 top-markup-spacing #'basic-distance = #6 max-systems-per-page = #1 } \header { instrument = "Harp" } \new Staff \relative c' { a b c d | a b c d | a b c d | a b c d | \break a b c d | a b c d | a b c d | a b c d | } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: vertical spacing on second page
Curt Siffert wrote > > Hi, am I misunderstanding how vertical spacing works? I am not sure how > to make the second page of a score respect these \paper variables. The > second page has everything close to the top for me. I am referring > specifically to top-markup-spacing and markup-system-spacing. > > I think you need top-system-spacing #'minimum-distance = #16 or top-system-spacing #'basic-distance = #16 (or both) for this Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/vertical-spacing-on-second-page-tp131722p131724.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:LC_PAPER and default paper size
> I want to make the scores available to everybody. I want users across > the world to be able to find the music, create the PDF and print it > with no problems on the paper they have. > > Specifying \paper would make the choice for the users. Printers might > ask for paper that is not readily available. Actually, Mutopia > doesn't want \paper to be specified. If the printer has just letter size paper to print an A4 PDF-file, will not the PDF-reader be able to stretch it a little bit, so that the content will fit to the new size and aspect ratio? >> More often than not, the global staff size and manual tweaks are set to >> achieve a certain page layout. If LilyPond changed its behavior on >> different computers, stuff would stop working without the user having a >> clue that this was not intended output. > > Now that's a strong argument against LC_PAPER. I'm guilty of making > such tweaks too. And also, the good thing with those environment variables is that most users should be used to them. The bad thing is that most users don't know them. Felipe ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Help asked - lyrics & chords
Hello, I'm trying to make a score consisting of only chords and lyrics. Perhaps someone would advise me to use a different program, but I would like to be able to scale the score to another font height easily. Not sure if that can be done with another program (especially not with a text editor, probably...) So, I created the attached file, a children's song in Dutch. The 'melody' is only there to specify how long the text that is added to the notes takes, to line it up with the chords. Is there another way to do that? I haven't been able to easily remove the staff that carries the 'melody'. Is there a better way to remove it altogether instead of removing all the individual engravers? Thanks for any insights! If this file were to be found 'snippet-ready', I'll add it to the LSR! Christ van Willegen Paddestoel.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile
> "pabuhr" == pabuhr writes: pabuhr> I tried manually converting the ps to eps: ps2pdf generates pabuhr> a file that is unusable (go figure), and "convert" generates pabuhr> a low quality image (maybe one of the many parameters can pabuhr> fix this). "convert -density' sometimes helps with this. -- Laura (mailto:lcon...@laymusic.org, twitter: @serpentplayer) (617) 661-8097 233 Broadway, Cambridge, MA 02139 http://www.laymusic.org/ http://www.serpentpublications.org I value kindness to human beings first of all, and kindness to animals. I don't respect the law; I have a total irreverence for anything connected with society except that which makes the roads safer, the beer stronger, the food cheaper, and old men and women warmer in the winter, and happier in the summer. Brendan Behan (1923 - 1964) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: LC_PAPER and default paper size
Felipe Castro writes: >> I want to make the scores available to everybody. I want users across >> the world to be able to find the music, create the PDF and print it >> with no problems on the paper they have. >> >> Specifying \paper would make the choice for the users. Printers might >> ask for paper that is not readily available. Actually, Mutopia >> doesn't want \paper to be specified. > > If the printer has just letter size paper to print an A4 PDF-file, > will not the PDF-reader be able to stretch it a little bit, so that > the content will fit to the new size and aspect ratio? Usually the most annoying misfeature ever. >>> More often than not, the global staff size and manual tweaks are set >>> to achieve a certain page layout. If LilyPond changed its behavior >>> on different computers, stuff would stop working without the user >>> having a clue that this was not intended output. >> >> Now that's a strong argument against LC_PAPER. I'm guilty of making >> such tweaks too. > > And also, the good thing with those environment variables is that most > users should be used to them. The bad thing is that most users don't > know them. Personally, I think it would be reasonable if LilyPond editors like Frescobaldi or Emacs, when asked to insert a basic document template, would do so with a paper setting corresponding to the current locale/environment/whatever. But LilyPond itself should behave the same with the same input. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Help asked - lyrics & chords
On 30 août 2012, at 13:45, Christ van Willegen wrote: > Hello, > > I'm trying to make a score consisting of only chords and lyrics. > Perhaps someone would advise me to use a different program, but I > would like to be able to scale the score to another font height > easily. Not sure if that can be done with another program (especially > not with a text editor, probably...) > > So, I created the attached file, a children's song in Dutch. The > 'melody' is only there to specify how long the text that is added to > the notes takes, to line it up with the chords. Is there another way > to do that? > > I haven't been able to easily remove the staff that carries the > 'melody'. Is there a better way to remove it altogether instead of > removing all the individual engravers? > > Thanks for any insights! If this file were to be found > 'snippet-ready', I'll add it to the LSR! > > Christ van Willegen > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user << \new ChordNames \chordmode { \override Score . BarNumber #'transparent = ##t d1 d1 a1 d1 d1 d1 a1 d1 d1 g1 g1 d1 d1 d1 a1 d1 } \new Lyrics \lyricmode { Op4 een4 gro4 -- te4 pad4 -- de4 -- stoel,2 rood4 me zat4 Ka4 -- bou4 -- ter4 Spil4 -- le4 -- been2 heen4 en4 weer4 te4 wip2 -- pe '"Krak!"'2 zei4 de4 pad4 -- de4 -- stoel,2 met4 een4 die4 -- pe4 zucht.1 Al4 -- le4 -- bei4 de4 been2 -- tjes,2 hoep4 -- la4 in4 de4 lucht1 } >> Cheers, MS ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Help asked - lyrics & chords
Hi, On Thu, Aug 30, 2012 at 1:45 PM, Christ van Willegen wrote: > So, I created the attached file, a children's song in Dutch. The > 'melody' is only there to specify how long the text that is added to > the notes takes, to line it up with the chords. Is there another way > to do that? > > I haven't been able to easily remove the staff that carries the > 'melody'. Is there a better way to remove it altogether instead of > removing all the individual engravers? Sure! Don't use any staff at all, just an explicit Lyrics context with durations: << \chords { d1 d1 } \new Lyrics \lyricmode { Op4 een4 gro4 -- te4 pad4 -- de4 -- stoel,2 } >> explicit Lyrics durations are mentioned in Notation Reference 2.1, but i guess the explanation is not clear enough. Would you be so kind and make a documentation suggestion that would show how this information should be presented so that everyone will find it easily? cheers, janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Help asked - lyrics & chords
Mike, Janek, On Thu, Aug 30, 2012 at 1:57 PM, Janek Warchoł wrote: > Sure! Don't use any staff at all, just an explicit Lyrics context > with durations: Thanks for the excellent suggestions! This makes it a lot easier to do this than the way I wanted to do it. I'll think about how to make it easier to find stuff like this. The original 'template' was found this way: I went to Google and searched for "lilypond guitar chord template". Top hit was: LilyPond snippets: Chords (link: http://lilypond.org/doc/v2.14/Documentation/snippets/chords). Then, I found the 'Simple lead sheet' and figured I worked from there... So, perhaps an entry on that page showing how to do melody-less chord sheets would be a good addition to the manual, or a reference to the 'Explicit lyrics length' page. I'll see if I can add freeboard symbols easily. Apparently so, but they are ... weird! All of them are 'barre' chords, according to the manual, they should be different. Ah well, I'll see if I can figure that out! Thanks for the extensive help, again!! Christ van Willegen -- 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Parenthesized Hairpin
Hi Daniel, > So far so good, but I've noticed that if you do a \break before ending the > hairpin (e.g. a hairpin through 4 bars), the hairpin parenthesis repeats. > Is that a normal behaviour? > This is the expected and documented behavior in LilyPond, but not convenient! The reason this happens is that when you break a spanner, the original object is cloned, and all pieces inherit any overrides. The section http://www.lilypond.org/doc/v2.16/Documentation/extending/difficult-tweaks describes this situation and what to do about it. Below I've rewritten the snippet to show you how this might be done: % this snippet is useful to put a hairpin between to markups i.e. parentheses or slash % or any other text % este fragmento sirve para poner un regulador de angulo entre dos markups, p.e. % parentesis, corchetes, barras o cualquier otro texto % leftText y rightText serán los textos a la izquierda y a la derecha respectivamente % leftText and rightText will be the markup texts on each side of the hairpin hairpinBetweenText = #(define-music-function (parser location leftText rightText) (markup? markup?) #{ \once \override Hairpin #'stencil = #(lambda (grob) (let* ((orig (ly:grob-original grob)) (siblings (if (ly:grob? orig) (ly:spanner-broken-into orig) '())) (hairpin-stencil (ly:stencil-aligned-to (ly:hairpin::print grob) Y CENTER)) (left-addition (ly:stencil-aligned-to (grob-interpret-markup grob leftText) Y CENTER)) (right-addition (ly:stencil-aligned-to (grob-interpret-markup grob rightText) Y CENTER))) (if (or (null? siblings) (eq? grob (car siblings))) (set! hairpin-stencil (ly:stencil-combine-at-edge left-addition X RIGHT hairpin-stencil 0))) (if (or (null? siblings) (eq? grob (car (reverse siblings (set! hairpin-stencil (ly:stencil-combine-at-edge hairpin-stencil X RIGHT right-addition 0.6))) hairpin-stencil)) #}) %cambiando el contenido de los \markup cambiamos el objeto de texto (elemento %de marcado y aceptara cualquier cosa que se pueda incluir en estos. %you can change de content of the \markup to show diferent texts %or any other thing you can put in a \markup parenthesizedHairpin = \hairpinBetweenText \markup "(" \markup ")" % the music \score { \relative c' { \time 3/4 \parenthesizedHairpin c\< d e \break f g a %\break b c d %\break e f g a\! } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: LC_PAPER and default paper size
On 30 Aug 2012, at 08:55, Martin Tarenskeen wrote: > I always try to set the borders in my scores wide enough so that at least > everything will be readable on both A4 and Letter pages, even though the > score has been created and tested for a4 paper. > > QUESTION: > > This reminds of a question I have had for some time: I would like - for > testing purposes - draw/print a box exactly around the page borders of my > score. This way I want to be able to preview what a page would look like for > example on a5 paper, or on iPad or Postcard dimensions, even if I print it on > a4 paper. Can this be achieved with some lilypond/scheme magick ? Perhaps an option where you specify both paper sizes, and music is drawn within the smallest rectangle of them. Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: running lilypond-book in frescobaldi?
1. I am running lilypond in frescobaldi. Can I run lilypond-book in frecobaldi as well. I copy-paste from frescobaldi into lyx for that purpose. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hiding staff without hiding bar lines
\override Staff.StaffSymbol #'stencil = ##f That works perfectly. I don't even need to worry about the ledger lines because it's all one one pitch on the staff -- purely a rhythm exercise. It makes sense that stopping the staff entirely would make the bar lines infinitely short; if I wanted a three-line staff, for example, I wouldn't want the bar lines to be five lines tall. Thanks for the help, everyone. Once I've got templates for all my exercises and tests, modifying them should be pretty fast and easy. -- View this message in context: http://lilypond.1069038.n5.nabble.com/Hiding-staff-without-hiding-bar-lines-tp131685p131763.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: Parenthesized Hairpin
David Nalesnik-2 wrote > > > Below I've rewritten the snippet to show you how this might be done: > thanks David now I see another problem (maybe I should open a new post or bug report for it): this example moves the hairpin to the right (on the first line) and in the second line the text is just appended to the hairpin and thus appears below the following note(s) - is there a way to fit it to the line-width? to illustrate this, I use longer text on the left and right: /parenthesizedHairpin = \hairpinBetweenText \markup \small "slowly " \markup \small "………!"/ http://lilypond.1069038.n5.nabble.com/file/n131765/hairpin%2Bbreak.png Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/Parenthesized-Hairpin-tp131686p131765.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: Parenthesized Hairpin
Hi eluze, On Thu, Aug 30, 2012 at 5:06 PM, eluze wrote: > > David Nalesnik-2 wrote >> >> >> Below I've rewritten the snippet to show you how this might be done: >> > thanks David > > now I see another problem (maybe I should open a new post or bug report for > it): > > this example moves the hairpin to the right (on the first line) and in the > second line the text is just appended to the hairpin and thus appears below > the following note(s) - is there a way to fit it to the line-width? > > to illustrate this, I use longer text on the left and right: > > /parenthesizedHairpin = \hairpinBetweenText \markup \small "slowly " \markup > \small "………!"/ > > http://lilypond.1069038.n5.nabble.com/file/n131765/hairpin%2Bbreak.png > One quick remedy for this is to scale the stencil to accommodate the added text. This has the potential for distortion, and a better way would be to adjust the bounds of the hairpin. I'm not sure how to do this. Anyway, hope this helps! -David %%% hairpinBetweenText = #(define-music-function (parser location leftText rightText) (markup? markup?) #{ \once \override Hairpin #'stencil = #(lambda (grob) (let* ((orig (ly:grob-original grob)) (siblings (if (ly:grob? orig) (ly:spanner-broken-into orig) '())) (hairpin-stencil (ly:stencil-aligned-to (ly:hairpin::print grob) Y CENTER)) (hairpin-stencil-extent (interval-length (ly:stencil-extent hairpin-stencil X))) (left-addition (ly:stencil-aligned-to (grob-interpret-markup grob leftText) Y CENTER)) (right-addition (ly:stencil-aligned-to (grob-interpret-markup grob rightText) Y CENTER)) (left-addition-extent (interval-length (ly:stencil-extent left-addition X))) (right-addition-extent (interval-length (ly:stencil-extent right-addition X (if (null? siblings) ; if hairpin is whole, add text to both ends ; scale to reflect both markups (begin (set! hairpin-stencil (ly:stencil-combine-at-edge (ly:stencil-scale hairpin-stencil (/ (- hairpin-stencil-extent left-addition-extent right-addition-extent) hairpin-stencil-extent) 1) X RIGHT right-addition 0.6)) (set! hairpin-stencil (ly:stencil-combine-at-edge left-addition X RIGHT hairpin-stencil 0))) (cond ((eq? grob (car siblings)) ; if first piece, add text to left (set! hairpin-stencil (ly:stencil-combine-at-edge left-addition X RIGHT (ly:stencil-scale hairpin-stencil (/ (- hairpin-stencil-extent left-addition-extent) hairpin-stencil-extent) 1) ; I didn't scale Y 0))) ((eq? grob (car (reverse siblings))) ; if last piece, add text to right (set! hairpin-stencil (ly:stencil-combine-at-edge (ly:stencil-scale hairpin-stencil (/ (- hairpin-stencil-extent right-addition-extent) hairpin-stencil-extent) 1) X RIGHT right-addition 0.6) hairpin-stencil)) #}) %cambiando el contenido de los \markup cambiamos el objeto de texto (elemento %de marcado y aceptara cualquier cosa que se pueda incluir en estos. %you can change de content of the \markup to show diferent texts %or any other thing you can put in a \markup parenthesizedHairpin = \hairpinBetweenText \markup "slowly" \markup \small "………!" % the music \score { \relative c' { \time 3/4 \parenthesizedHairpin c\< d e \break f g a %\break b c d %\break e f g a\! } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Parenthesized Hairpin
Hi again, I'm going to attach the last as a file so the comment lines aren't broken. -David hairpin-test01.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
giant bar numbers
For film scoring, it's common to want giant bar numbers in the middle of the score. Does anyone have ideas on how to center bar numbers above a bar, as opposed to them being aligned to the bar line? With that, I'm thinking I can create an invisible staff that has no engraver except for the bar-number-engraver, and then giving it a very large font. It'd be just above Violin 1 in the orchestral score. I think that way they'll be nicely aligned vertically - I'm just not sure how to center them. Thanks! Curt ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: giant bar numbers
On 31/08/12 13:00, Curt wrote: For film scoring, it's common to want giant bar numbers in the middle of the score. Does anyone have ideas on how to center bar numbers above a bar, as opposed to them being aligned to the bar line? With that, I'm thinking I can create an invisible staff that has no engraver except for the bar-number-engraver, and then giving it a very large font. It'd be just above Violin 1 in the orchestral score. I think that way they'll be nicely aligned vertically - I'm just not sure how to center them. Have a look at http://lsr.dsi.unimi.it/LSR/Item?id=651 Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: giant bar numbers
On 31/08/12 15:10, Nick Payne wrote: On 31/08/12 13:00, Curt wrote: For film scoring, it's common to want giant bar numbers in the middle of the score. Does anyone have ideas on how to center bar numbers above a bar, as opposed to them being aligned to the bar line? With that, I'm thinking I can create an invisible staff that has no engraver except for the bar-number-engraver, and then giving it a very large font. It'd be just above Violin 1 in the orchestral score. I think that way they'll be nicely aligned vertically - I'm just not sure how to center them. Have a look at http://lsr.dsi.unimi.it/LSR/Item?id=651 Maybe https://code.google.com/p/lilypond/issues/detail?id=2445 provides a better solution (scroll to the bottom to get the latest version of the code). Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hiding expressive notation
Il 30/08/2012 08:10, David Kastrup ha scritto: Just add this in the \layout block: > > \layout { > \context { > \Staff > \override StringNumber #'transparent = ##t > } > } It is better to do \override StringNumber #'stencil = ##f since that does not reserve space for the string number (older LilyPond versions might complain). Ok, thanks for the tip. So reserving space for a transparent object is not a wise choice (at least in this case) because that space may be useful for placing other objects (therefore possible collisions can be avoided). Fortunately, I've put this block in an external file, so I don't have to change all my scores. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hiding expressive notation
Federico Bruni writes: > Il 30/08/2012 08:10, David Kastrup ha scritto: >>> Just add this in the \layout block: >>> > >>> > \layout { >>> > \context { >>> > \Staff >>> > \override StringNumber #'transparent = ##t >>> > } >>> > } >> It is better to do \override StringNumber #'stencil = ##f since that >> does not reserve space for the string number (older LilyPond versions >> might complain). > > Ok, thanks for the tip. > So reserving space for a transparent object is not a wise choice (at > least in this case) because that space may be useful for placing other > objects (therefore possible collisions can be avoided). The main offense in our regtests were ottava spanners pushed sky-high to accommodate invisible string numbers. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user