Re: Align Lyrics to Hidden Melody
Pretty close. Just a couple of comments:- Full-bar rests can be written in general as R1*m/n where m/n is the time-signature, although for 6/8 you could write R2.. Because the chorus is in a separate Lyrics context it will appear below the verses if they occur on the same line. Either make sure there's a break between the two or put the final words in the first context, after the first verse. Or if you have more verses, into whichever one looks best. Some of the bar checks in the lyrics give errors. No point in using them if you ignore the warnings. Otherwise, looks fine. Lots of other structures will give equivalent results - use whatever works for you, there is no correct structure. Trevor - Original Message - From: Mike Kilmer To: Trevor Daniels Cc: lilypond-user@gnu.org Sent: Thursday, December 11, 2014 7:16 AM Subject: Re: Align Lyrics to Hidden Melody Very helpful. Thank you. I’m still finding it a bit confusing though. The following creates the pdf output I’m looking for. Is it basically correct syntax-wise? melody = \relative c' { \clef treble \key bes \major \repeat volta 2 { \time 6/8 e4. fis4 g8 | a4. g4 bes8 | \time 6/8 \new Voice = words { r4 f4 d | r f f | r2. |% words go to this } } \alternative { { r2. | } { r2. | } } % CHORUS \new Voice = chorus { g4. a | bes g4 a8 | % words go here too, see? } } text = \lyricmode { { \set stanza = #1. Words go | to this | } \new Lyrics { \set associatedVoice = words \set stanza = #2. More words | go here | } } chorus = \lyricmode { Words go | here too, see? | } harmonies = \chordmode { e2.:m7.5- | bes | bes2. | g:m7 | f:7 | c:7/e | c4.:7 d:7 | g2.:m | g:m | } \score { \new ChordNames { \set chordChanges = ##t \harmonies } \new Voice = one { \melody } \new Lyrics \lyricsto words \text \new Lyrics \lyricsto chorus \chorus \layout { } \midi { } } On Dec 10, 2014, at 6:10 PM, Trevor Daniels t.dani...@treda.co.uk wrote: Hi Mike Welcome! First, you need \hideNotes, not \hide. Then the structure you have doesn't quite work. It's usually easier to have all the lyrics contexts running from the start rather than starting them part way along - they'll get their position from the notes. Here's one way of doing it, but you'll find the stanza number doesn't quite fit. melody = \relative c' { \clef treble \key c \major \time 4/4 c4 d e f | g f e d | \new Voice = shown { \relative c' { c4 d c d | e f g2 } } \new Voice = hidden { \hideNotes { % !! c'8 c d d c c d d | e f g2 } } } text = \lyricmode { Here we have a | li -- tle si -- lly } wordsOne = \lyricmode { \set stanza = #1. Si -- lly li -- tle | al -- pha -- bet } wordsTwo = \lyricmode { \set stanza = #2. Si -- ly li -- tle fu -- nny soun -- ding | Al -- pha -- bet song. } \score { \new Voice = one { \melody } \new Lyrics \lyricsto one \text \new Lyrics \lyricsto shown \wordsOne \new Lyrics \lyricsto hidden \wordsTwo \layout { } \midi { } } - Original Message - From: Mike Kilmer To: lilypond-user@gnu.org Sent: Wednesday, December 10, 2014 11:02 PM Subject: Align Lyrics to Hidden Melody I thnk I’m close, and posted on Stackoverflow, but can’t seem to get a hidden melody working to show alternate lyrics. The following just shows both voices and neither of the “associated” (or not) stanzas. melody = \relative c' { \clef treble \key c \major \time 4/4 c4 d e f | g f e d | \new Voice = shown { \relative c' { c4 d c d | e f g2 } } \new Voice = hidden { \hide { c'8 c d d c c d d | e f g2 } } } text = \lyricmode { Here we have a | li -- tle si -- lly { \set stanza = #1. Si -- lly li -- tle | al -- pha -- bet \new Lyrics { \set
Re: Postscript question.
On 12/8/14, tisimst tisimst.lilyp...@gmail.com wrote: Hwaen, Unfortunately, the double-flat is not a composite of two single flats, at least not in LilyPond. It is a single character and, thus, there is no spacing to adjust. I suppose you could re-code the accidental engine to use two single flats, but that's probably more than you wanted deal with. What is it you don't like and how far apart do you want them to be? Maybe you could show us a screenshot of what you want. -Abraham Greetings Abraham, Thank you for your quick response, and sorry for my slow reply. Your clarification regarding the doubleflat stencil was as I had suspected. But then this spurred the desire to affect my own doubleflat sign, one that is as clear yet compact as the doublesharp. So I have been exploring the snippets and bits of information in the NR regarding the use of postscript and path. I do have two questions which I am sure are wildly basic. If I will write some postscript commands, where is considered the origin? In the case of an accidental, would it be the notehead which it is altering? Second, is there a way of seeing the postscript which was used to create an existing stencil? Thank you so much. Hwaen Ch'uqi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Postscript question.
- Original Message - From: Hwaen Ch'uqi hwaench...@gmail.com To: tisimst tisimst.lilyp...@gmail.com Cc: lilypond-user@gnu.org Sent: Thursday, December 11, 2014 2:20 PM Subject: Re: Postscript question. On 12/8/14, tisimst tisimst.lilyp...@gmail.com wrote: Hwaen, Unfortunately, the double-flat is not a composite of two single flats, at least not in LilyPond. It is a single character and, thus, there is no spacing to adjust. I suppose you could re-code the accidental engine to use two single flats, but that's probably more than you wanted deal with. What is it you don't like and how far apart do you want them to be? Maybe you could show us a screenshot of what you want. -Abraham Greetings Abraham, Thank you for your quick response, and sorry for my slow reply. Your clarification regarding the doubleflat stencil was as I had suspected. But then this spurred the desire to affect my own doubleflat sign, one that is as clear yet compact as the doublesharp. So I have been exploring the snippets and bits of information in the NR regarding the use of postscript and path. I do have two questions which I am sure are wildly basic. If I will write some postscript commands, where is considered the origin? In the case of an accidental, would it be the notehead which it is altering? Second, is there a way of seeing the postscript which was used to create an existing stencil? Thank you so much. Hwaen Ch'uqi Strictly, I believe the symbols such as the flat and double-flat are called glyphs, not stencils. They are not created in PostScript, but in MetaFont. -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Align Lyrics to Hidden Melody
Great. I have been ignoring the bar check errors on the lyrics because output is satisfactory, but I would love to figure out why they are so prevalent in my code. For example can you show me why the following produces an error? melody = \relative c' { \clef treble \key bes \major \time 6/8 \new Voice = words { r4 f4 d | r f f | r2. |% words go to this } } text = \lyricmode { { Words go | to this | | } On Dec 11, 2014, at 3:50 AM, Trevor Daniels t.dani...@treda.co.uk wrote: Pretty close. Just a couple of comments:- Full-bar rests can be written in general as R1*m/n where m/n is the time-signature, although for 6/8 you could write R2.. Because the chorus is in a separate Lyrics context it will appear below the verses if they occur on the same line. Either make sure there's a break between the two or put the final words in the first context, after the first verse. Or if you have more verses, into whichever one looks best. Some of the bar checks in the lyrics give errors. No point in using them if you ignore the warnings. Otherwise, looks fine. Lots of other structures will give equivalent results - use whatever works for you, there is no correct structure. Trevor - Original Message - From: Mike Kilmer To: Trevor Daniels Cc: lilypond-user@gnu.org Sent: Thursday, December 11, 2014 7:16 AM Subject: Re: Align Lyrics to Hidden Melody Very helpful. Thank you. I’m still finding it a bit confusing though. The following creates the pdf output I’m looking for. Is it basically correct syntax-wise? melody = \relative c' { \clef treble \key bes \major \repeat volta 2 { \time 6/8 e4. fis4 g8 | a4. g4 bes8 | \time 6/8 \new Voice = words { r4 f4 d | r f f | r2. |% words go to this } } \alternative { { r2. | } { r2. | } } % CHORUS \new Voice = chorus { g4. a | bes g4 a8 | % words go here too, see? } } text = \lyricmode { { \set stanza = #1. Words go | to this | } \new Lyrics { \set associatedVoice = words \set stanza = #2. More words | go here | } } chorus = \lyricmode { Words go | here too, see? | } harmonies = \chordmode { e2.:m7.5- | bes | bes2. | g:m7 | f:7 | c:7/e | c4.:7 d:7 | g2.:m | g:m | } \score { \new ChordNames { \set chordChanges = ##t \harmonies } \new Voice = one { \melody } \new Lyrics \lyricsto words \text \new Lyrics \lyricsto chorus \chorus \layout { } \midi { } } On Dec 10, 2014, at 6:10 PM, Trevor Daniels t.dani...@treda.co.uk wrote: Hi Mike Welcome! First, you need \hideNotes, not \hide. Then the structure you have doesn't quite work. It's usually easier to have all the lyrics contexts running from the start rather than starting them part way along - they'll get their position from the notes. Here's one way of doing it, but you'll find the stanza number doesn't quite fit. melody = \relative c' { \clef treble \key c \major \time 4/4 c4 d e f | g f e d | \new Voice = shown { \relative c' { c4 d c d | e f g2 } } \new Voice = hidden { \hideNotes { % !! c'8 c d d c c d d | e f g2 } } } text = \lyricmode { Here we have a | li -- tle si -- lly } wordsOne = \lyricmode { \set stanza = #1. Si -- lly li -- tle | al -- pha -- bet } wordsTwo = \lyricmode { \set stanza = #2. Si -- ly li -- tle fu -- nny soun -- ding | Al -- pha -- bet song. } \score { \new Voice = one { \melody } \new Lyrics \lyricsto one \text \new Lyrics \lyricsto shown \wordsOne \new Lyrics \lyricsto hidden \wordsTwo \layout { } \midi { } } - Original Message - From: Mike Kilmer To: lilypond-user@gnu.org Sent: Wednesday, December 10, 2014 11:02 PM Subject: Align Lyrics to Hidden Melody I thnk I’m close, and posted on Stackoverflow, but can’t seem to get a hidden melody working to show alternate lyrics. The following just shows both voices and neither of the “associated” (or not) stanzas. melody = \relative c' { \clef treble \key c \major \time 4/4 c4 d e f | g f e d | \new Voice = shown { \relative c' { c4 d c d | e f g2 } } \new Voice = hidden { \hide { c'8 c d d c c d d | e f g2 } } }
Dissapearing lyrics
I'm setting a pretty simple choral work. The Soprano and Tenor parts begin with 12 measures where everybody is singing the same part. Then there are four final measures where those parts divide. This language makes everything turn out fine: \new Voice = tenor { \global \tenMusicAll {\voiceOne \tenMusicOne } \new Voice { \voiceTwo \tenMusicTwo } } \new Lyrics \lyricsto tenor \TenorWords (tenMusicAll, tenMusicOne and tenMusicTwo are previously defined music strings, TenorWord are the previously defined lyrics. global is key signature) But if I do this simpler syntax, which is equivalent, according to the docs: \new Voice = tenor { \global \tenMusicAll \tenMusicOne \\ \tenMusicTwo } \new Lyrics \lyricsto tenor \TenorWords The music renders just fine, but the lyrics disappear in the last four divisi measures. Why does the last bit of the lyrics not appear on the page? -- Tim Slattery tim at risingdove dot com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Align Lyrics to Hidden Melody
There's no output from that snippet, and no errors. Perhaps you could supply a full snippet that produces the problem? -- Phil Holmes - Original Message - From: Mike Kilmer To: Trevor Daniels Cc: lilypond-user@gnu.org Sent: Thursday, December 11, 2014 3:21 PM Subject: Re: Align Lyrics to Hidden Melody Great. I have been ignoring the bar check errors on the lyrics because output is satisfactory, but I would love to figure out why they are so prevalent in my code. For example can you show me why the following produces an error? melody = \relative c' { \clef treble \key bes \major \time 6/8 \new Voice = words { r4 f4 d | r f f | r2. |% words go to this } } text = \lyricmode { { Words go | to this | | } On Dec 11, 2014, at 3:50 AM, Trevor Daniels t.dani...@treda.co.uk wrote: Pretty close. Just a couple of comments:- Full-bar rests can be written in general as R1*m/n where m/n is the time-signature, although for 6/8 you could write R2.. Because the chorus is in a separate Lyrics context it will appear below the verses if they occur on the same line. Either make sure there's a break between the two or put the final words in the first context, after the first verse. Or if you have more verses, into whichever one looks best. Some of the bar checks in the lyrics give errors. No point in using them if you ignore the warnings. Otherwise, looks fine. Lots of other structures will give equivalent results - use whatever works for you, there is no correct structure. Trevor - Original Message - From: Mike Kilmer To: Trevor Daniels Cc: lilypond-user@gnu.org Sent: Thursday, December 11, 2014 7:16 AM Subject: Re: Align Lyrics to Hidden Melody Very helpful. Thank you. I’m still finding it a bit confusing though. The following creates the pdf output I’m looking for. Is it basically correct syntax-wise? melody = \relative c' { \clef treble \key bes \major \repeat volta 2 { \time 6/8 e4. fis4 g8 | a4. g4 bes8 | \time 6/8 \new Voice = words { r4 f4 d | r f f | r2. |% words go to this } } \alternative { { r2. | } { r2. | } } % CHORUS \new Voice = chorus { g4. a | bes g4 a8 | % words go here too, see? } } text = \lyricmode { { \set stanza = #1. Words go | to this | } \new Lyrics { \set associatedVoice = words \set stanza = #2. More words | go here | } } chorus = \lyricmode { Words go | here too, see? | } harmonies = \chordmode { e2.:m7.5- | bes | bes2. | g:m7 | f:7 | c:7/e | c4.:7 d:7 | g2.:m | g:m | } \score { \new ChordNames { \set chordChanges = ##t \harmonies } \new Voice = one { \melody } \new Lyrics \lyricsto words \text \new Lyrics \lyricsto chorus \chorus \layout { } \midi { } } On Dec 10, 2014, at 6:10 PM, Trevor Daniels t.dani...@treda.co.uk wrote: Hi Mike Welcome! First, you need \hideNotes, not \hide. Then the structure you have doesn't quite work. It's usually easier to have all the lyrics contexts running from the start rather than starting them part way along - they'll get their position from the notes. Here's one way of doing it, but you'll find the stanza number doesn't quite fit. melody = \relative c' { \clef treble \key c \major \time 4/4 c4 d e f | g f e d | \new Voice = shown { \relative c' { c4 d c d | e f g2 } } \new Voice = hidden { \hideNotes { % !! c'8 c d d c c d d | e f g2 } } } text = \lyricmode { Here we have a | li -- tle si -- lly } wordsOne = \lyricmode { \set stanza = #1. Si -- lly li -- tle | al -- pha -- bet } wordsTwo = \lyricmode { \set stanza = #2. Si -- ly li -- tle fu -- nny soun -- ding | Al -- pha -- bet song.
Re: Align Lyrics to Hidden Melody
Mike, Congratulations! Looks like you've found a new bug. I've entered it as https://code.google.com/p/lilypond/issues/detail?id=4225 I guess bar checks in lyrics are not used very often, which might account for this not being reported before (AFAICT). Sorry I didn't look at the details of your bar checks before. Hope this didn't leave you puzzling over it for too long. I suggest you simply leave out the bar check if the following bar begins with a rest. Trevor - Original Message - From: Mike Kilmer To: Trevor Daniels Cc: lilypond-user@gnu.org Sent: Thursday, December 11, 2014 3:21 PM Subject: Re: Align Lyrics to Hidden Melody Great. I have been ignoring the bar check errors on the lyrics because output is satisfactory, but I would love to figure out why they are so prevalent in my code. For example can you show me why the following produces an error? melody = \relative c' { \clef treble \key bes \major \time 6/8 \new Voice = words { r4 f4 d | r f f | r2. |% words go to this } } text = \lyricmode { { Words go | to this | | } On Dec 11, 2014, at 3:50 AM, Trevor Daniels t.dani...@treda.co.uk wrote: Pretty close. Just a couple of comments:- Full-bar rests can be written in general as R1*m/n where m/n is the time-signature, although for 6/8 you could write R2.. Because the chorus is in a separate Lyrics context it will appear below the verses if they occur on the same line. Either make sure there's a break between the two or put the final words in the first context, after the first verse. Or if you have more verses, into whichever one looks best. Some of the bar checks in the lyrics give errors. No point in using them if you ignore the warnings. Otherwise, looks fine. Lots of other structures will give equivalent results - use whatever works for you, there is no correct structure. Trevor - Original Message - From: Mike Kilmer To: Trevor Daniels Cc: lilypond-user@gnu.org Sent: Thursday, December 11, 2014 7:16 AM Subject: Re: Align Lyrics to Hidden Melody Very helpful. Thank you. I’m still finding it a bit confusing though. The following creates the pdf output I’m looking for. Is it basically correct syntax-wise? melody = \relative c' { \clef treble \key bes \major \repeat volta 2 { \time 6/8 e4. fis4 g8 | a4. g4 bes8 | \time 6/8 \new Voice = words { r4 f4 d | r f f | r2. |% words go to this } } \alternative { { r2. | } { r2. | } } % CHORUS \new Voice = chorus { g4. a | bes g4 a8 | % words go here too, see? } } text = \lyricmode { { \set stanza = #1. Words go | to this | } \new Lyrics { \set associatedVoice = words \set stanza = #2. More words | go here | } } chorus = \lyricmode { Words go | here too, see? | } harmonies = \chordmode { e2.:m7.5- | bes | bes2. | g:m7 | f:7 | c:7/e | c4.:7 d:7 | g2.:m | g:m | } \score { \new ChordNames { \set chordChanges = ##t \harmonies } \new Voice = one { \melody } \new Lyrics \lyricsto words \text \new Lyrics \lyricsto chorus \chorus \layout { } \midi { } } On Dec 10, 2014, at 6:10 PM, Trevor Daniels t.dani...@treda.co.uk wrote: Hi Mike Welcome! First, you need \hideNotes, not \hide. Then the structure you have doesn't quite work. It's usually easier to have all the lyrics contexts running from the start rather than starting them part way along - they'll get their position from the notes. Here's one way of doing it, but you'll find the stanza number doesn't quite fit. melody = \relative c' { \clef treble \key c \major \time 4/4 c4 d e f | g f e d | \new Voice = shown { \relative c' { c4 d c d | e f g2 } } \new Voice = hidden { \hideNotes { % !! c'8 c d d c c d d | e f g2 } } } text = \lyricmode {
Re: Trying to subscribe
Colin Campbell colinpkcampbell at gmail.com writes: Ordinarily, the list manager sends an email, to which you need to reply. Could it be in a junk folder on your email client? No. I received nothing. I subscribed a second and third time. Nothing. I don't use spam protection either. Stan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Dissapearing lyrics
Tim, They actually aren't equivalent, but that becomes most apparent when associating lyrics to the voices. When using the \\ syntax to designate voices, this implicitly creates totally new voices wherever used, even though it puts them correctly in the voiceOne/voiceTwo directions, which may (always?) break the connection to the lyrics. My recommendation: Follow the first method you mention because you will have complete, explicit control over the voicing. HTH, Abraham Sent from my iPhone On Dec 11, 2014, at 9:28 AM, Tim Slattery [via Lilypond] ml-node+s1069038n169390...@n5.nabble.com wrote: I'm setting a pretty simple choral work. The Soprano and Tenor parts begin with 12 measures where everybody is singing the same part. Then there are four final measures where those parts divide. This language makes everything turn out fine: \new Voice = tenor { \global \tenMusicAll {\voiceOne \tenMusicOne } \new Voice { \voiceTwo \tenMusicTwo } } \new Lyrics \lyricsto tenor \TenorWords (tenMusicAll, tenMusicOne and tenMusicTwo are previously defined music strings, TenorWord are the previously defined lyrics. global is key signature) But if I do this simpler syntax, which is equivalent, according to the docs: \new Voice = tenor { \global \tenMusicAll \tenMusicOne \\ \tenMusicTwo } \new Lyrics \lyricsto tenor \TenorWords The music renders just fine, but the lyrics disappear in the last four divisi measures. Why does the last bit of the lyrics not appear on the page? -- Tim Slattery tim at risingdove dot com ___ lilypond-user mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/lilypond-user If you reply to this email, your message will be added to the discussion below: http://lilypond.1069038.n5.nabble.com/Dissapearing-lyrics-tp169390.html To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com To unsubscribe from Lilypond, click here. NAML -- View this message in context: http://lilypond.1069038.n5.nabble.com/Dissapearing-lyrics-tp169390p169393.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
variable variables
Hi everyone, In the piece I’m writing right now I use a lot of clusters, to notate these clusters i use a custom note head. And the code looks like this: qRecta= #(ly:make-stencil (list 'embedded-ps gsave currentpoint translate newpath 0 0.55 moveto 0.33375 0.55 lineto 0.33375 -0.55 lineto 0 -0.55 lineto closepath fill grestore) (cons 0.5 1.3125) (cons 0 0)) In my \score I can recall this with: \override NoteHead #'X-offset = #0 \override NoteHead #'stencil = \qRecta What I would like is to be able to change the length of my rectangle note heads. therefore i have to change this number 0.33375. So what i would like is something like this: qRecta= #(ly:make-stencil (list 'embedded-ps gsave currentpoint translate newpath 0 0.55 moveto X 0.55 lineto X -0.55 lineto 0 -0.55 lineto closepath fill grestore) (cons 0.5 1.3125) (cons 0 0)) \score { \absolute \override NoteHead #'X-offset = #0 \override NoteHead #'stencil = \qRecta \X = 0.3 e' f' g’ a’ b’ c’8 \X = 0.5 e' f' g’ a’ b’ c’8 } I would be very very very happy with some help on this : ) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
avoiding lyric tie collisions
Dear friends, The lyric tie achieved by putting a tilde in between syllables frequently collides with the letters on either side, especially lower-case y, which is frequently used in Spanish pieces. Trying the example below with the different fonts listed will show that the lyric undertie and the y collides in all of them to different degrees. In many cases the symbol is also too wide. (I used fonts available in the TeXLive distribution since I thought more users were likely to have them.) Previous threads on this topic suggest that the glyph may not necessarily be coming from these fonts. One thread provided a complex Scheme solution for positioning the lyric tie. Has there been any progress on this issue? Best, Andrew Cashner * * * \version 2.18.2 \paper { #(define fonts (make-pango-font-tree Linux Libertine T (/ staff-height pt 20))) } % Other serif fonts in TeXLive distribution that also collide with elision undertie: % EB Garamond 12 % TeX Gyre Pagella % especially bad % TeX Gyre Termes % Latin Modern Roman Music = { \clef treble \time 4/2 \partial 2 g'2 | g'2 g'2 a'2 a'2 | b'2 g'1. | } Lyrics = \lyricmode { A~el cie -- lo~y tie -- rra~y~a -- rri -- ba } \score { \new Staff \new Voice = melody { \Music } \new Lyrics \lyricsto melody { \Lyrics} \layout {} } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: variable variables
Gerjan Piksen wrote I would be very very very happy with some help on this : ) Let me see if I can help. I think the first step is to use something besides embedded-ps. make-connected-path-stencil will be easier to work with. The following will let you set the width like you want. %%% \version 2.18.2 qRecta = #(lambda (x) (make-connected-path-stencil `((0 0.55) (,x 0.55) (,x -0.55) (0 -0.55) (0 0)) 0 ;; line thickness 1 ;; X-axis scaling factor 1 ;; Y-axis scaling factor #t ;; auto-connect path to origin point? (0 0) #t)) % filled path? X = #(define-music-function (parser location w) (number?) #{ \override NoteHead #'X-offset = #0 \override NoteHead #'stencil = #(qRecta w) #}) \new Staff { \absolute \X #0.3 e' f' g' a' b' c'8 \X #0.5 e' f' g' a' b' c'8 } %% % another option, make-path-stencil % available in latest 2.19 but not 2.18.2 qRecta-B = #(lambda (x) (make-path-stencil `(moveto 0 0.55 lineto ,x 0.55 lineto ,x -0.55 lineto 0 -0.55 closepath) 0 ;; line thickness 1 ;; X-axis scaling factor 1 ;; Y-axis scaling factor #t)) % filled path? %%% However, the output is not exactly what we get from what's below, which I assume is what you want. So there's still more to be done... HTH, -Paul %%% \version 2.18.2 qRecta = #(ly:make-stencil (list 'embedded-ps gsave currentpoint translate newpath 0 0.55 moveto 0.33375 0.55 lineto 0.33375 -0.55 lineto 0 -0.55 lineto closepath fill grestore) (cons 0.5 1.3125) (cons 0 0)) \new Staff { \absolute \override NoteHead #'X-offset = #0 \override NoteHead #'stencil = \qRecta e' f' g' a' b' c'8 e' f' g' a' b' c'8 } -- View this message in context: http://lilypond.1069038.n5.nabble.com/variable-variables-tp169395p169397.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: variable variables
I forgot to link to these snippets: make-connected-path-stencil http://lsr.di.unimi.it/LSR/Item?id=891 another option: ly:make-stencil and path http://lsr.di.unimi.it/LSR/Item?id=623 -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/variable-variables-tp169395p169398.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: variable variables
On Thu, 11 Dec 2014 18:29:44 -0700 (MST) Paul Morris p...@paulwmorris.com wrote: I forgot to link to these snippets: make-connected-path-stencil http://lsr.di.unimi.it/LSR/Item?id=891 FWIW, this snippet is missing the output of the second example (the one with the triangle and the moon). -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user