Re: attaching markup to time signature
Kieren, I was playing with the code you shared on this thread, and I have a question. Is it possible to get the markup to attach to the clef or time signature only in the bass staff? I am getting the text to show, but it is attaching to both staves. Thanks for any advice. Peace, David Here is the code snippet I wrote based on yours: %START OF CODE \version "2.19.80" \layout { \context { \Score \consists "Balloon_engraver" \override BalloonTextItem.annotation-balloon = ##f \override BalloonTextItem.annotation-line = ##f \override BalloonTextItem.font-size = #-2 \override BalloonTextItem.font-series = #'bold } } melody = \relative c' { c4 c c c } stuff = { \balloonGrobText #'TimeSignature #'(0 . -1) \markup "test1" \balloonGrobText #'Clef #'(0 . -1) \markup "test2" \time 2/4 c2 c } \score { \new StaffGroup << \new Staff { \clef "treble" \melody } \new Staff { \clef "bass" \stuff } >> } %END OF CODE On 4/12/18 10:21 AM, Kieren MacMillan wrote: Hi David, can't you achieve your goal with the various footnote/balloon mechanisms? I just tried to — in order to give the OP an example — but my attempt didn’t work: %%% SNIPPET BEGINS \version "2.19.80" \layout { \context { \Voice \consists "Balloon_engraver" } } stuff = { \balloonGrobText #'TimeSignature #'(1 . 0) \markup "test" \time 2/4 s2 } \score { \stuff } %%% SNIPPET ENDS No error, though… What did I do wrong? (Note: using \new Voice \stuff also didn’t work as expected.) Thanks, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyric line's vertical position is shifting from one staff system to the next.
Kieren, Thank you, this is a great improvement! It looks like I need to study Chapter 4.4 of the Notation Reference and many of the links. I will play with the code you shared and do some homework before I ask more questions which are arising on this topic. I just want to thank you promptly for you very quick response. It also looks like you have solved the text clashing with the bar lines. Any advice on where I might study how to control this better? Thank you, again for your help. Peace, David On 5/31/18 9:49 PM, Kieren MacMillan wrote: melody = \relative c' { \clef "alto" \hide Staff.Clef \key c \major \time 4/4 | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c } "text1" = \lyricmode { Here the lyric lines are in the right position because both lines are present. When the top lyric line is only "\skip1", the bottom line shifts up. \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 And, the bar lines are clashing with several words when the top staff is by itself. } "text2" = \lyricmode { A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 } upper = \relative c'' { \clef treble \key c \major \time 4/4 | c c c c | c c c c | c c c c %Shift staff spacing. | c' c c c | c c c c | c c c c | c c c c | c c c c %Shift staff spacing again. | c' c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c } lower = \relative c { \clef bass \key c \major \time 4/4 c4 c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c } \layout { \context { \Lyrics \override LyricText.self-alignment-X = #LEFT \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #'((basic-distance . 0) (minimum-distance . 0 ) (padding . -2.5) (stretchability . 0)) } } \score { \new StaffGroup << \new Staff = "ChordsAndLyrics" \with { \override StaffSymbol.line-positions = #'( 0 ) \override BarLine.bar-extent = #' (0 . 2.5) \override StaffSymbol.Y-extent = #'(0 . 2.5) } << \new Voice = "mel1" { \hideNotes \melody } \new Lyrics \with { alignAboveContext = "ChordsAndLyrics" \textLengthOn } \lyricsto "mel1" \"text1" \new Lyrics \with { \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #'((basic-distance . 0) (minimum-distance . 0 ) (padding . -2.5) (stretchability . 0)) alignBelowContext = "ChordsAndLyrics" } \lyricsto "mel1" \"text2" >> \new Staff = "upper" \upper \new Staff = "lower" \lower >> } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyric line's vertical position is shifting from one staff system to the next.
Hi David, > May I ask for some advice? That’s what this list is for! > I would like to have a single line staff that is grouped with other staffs, > which I use to display chords and lyrics into rows above and below the line. Does the modified snippet (below) do what you want? n.b. I was only worried about fixing the lyric position, not the barline clashes. Hope this helps! Kieren. %%% SNIPPET BEGINS melody = \relative c' { \clef "alto" \hide Staff.Clef \key c \major \time 4/4 | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c } "text1" = \lyricmode { Here the lyric lines are in the right position because both lines are present. When the top lyric line is only "\skip1", the bottom line shifts up. \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 And, the bar lines are clashing with several words when the top staff is by itself. } "text2" = \lyricmode { A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 } upper = \relative c'' { \clef treble \key c \major \time 4/4 | c c c c | c c c c | c c c c %Shift staff spacing. | c' c c c | c c c c | c c c c | c c c c | c c c c %Shift staff spacing again. | c' c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c } lower = \relative c { \clef bass \key c \major \time 4/4 c4 c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c } \layout { \context { \Lyrics \override LyricText.self-alignment-X = #LEFT \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #'((basic-distance . 0) (minimum-distance . 0 ) (padding . -2.5) (stretchability . 0)) } } \score { \new StaffGroup << \new Staff = "ChordsAndLyrics" \with { \override StaffSymbol.line-positions = #'( 0 ) \override BarLine.bar-extent = #' (0 . 2.5) \override StaffSymbol.Y-extent = #'(0 . 2.5) } << \new Voice = "mel1" { \hideNotes \melody } \new Lyrics \with { alignAboveContext = "ChordsAndLyrics" \textLengthOn } \lyricsto "mel1" \"text1" \new Lyrics \with { \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #'((basic-distance . 0) (minimum-distance . 0 ) (padding . -2.5) (stretchability . 0)) alignBelowContext = "ChordsAndLyrics" } \lyricsto "mel1" \"text2" >> \new Staff = "upper" \upper \new Staff = "lower" \lower >> } %%% SNIPPET ENDS Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Lyric line's vertical position is shifting from one staff system to the next.
Hi everyone, May I ask for some advice? I would like to have a single line staff that is grouped with other staffs, which I use to display chords and lyrics into rows above and below the line. I am using the following tweak on each lyric line, where 'y' is adjusted: \override LyricText.extra-offset = #'(0 . y) \override LyricExtender.extra-offset = #'(0 . y) \override LyricHyphen.extra-offset = #'(0 . y) to accomplish this for each lyric line. However, in my attempts, the chords and lyrics shift from one staff system to the next. If I cause one row of lyrics to disappear over and entire system using the '\skip1' command, then the other lyric lines shift up or down. This requires me to do lots of tweaking and adjusting of the vertical spacing over most of the staff systems that appear on each page. The spacing between staffs has also affected the lyric spacing in some of my attempts to get this working. However, it does not seem to be happening in my example snippet. I am wondering, is there a way to set up lyric lines so that they are rigidly placed in relation to a staff and do not interact with other lyric lines or other staff spacing? Can I add code that ensures that if another lyric line disappears (or reappears), any remaining lyric lines will then stay in the same rigid relationship to the staff? Also, some of the chords and lyrics are running into the bar lines as can be seen at the end of the example snippet. I am trying to figure out why this sometimes happens. Are there ways to ensure that this does not happen. I am using the command: \textLengthOn I hope my explanation or example snippet is not too ugly or long to make my point. I would appreciate any help or advice. And, thank you for this wonderful software! Peace, David Example snippet: %START OF CODE melody = \relative c' { \clef "alto" \hide Staff.Clef \key c \major \time 4/4 | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c } "text1" = \lyricmode { Here the lyric lines are in the right position because both lines are present. When the top lyric line is only "\skip1", the bottom line shifts up. \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 And, the bar lines are clashing with several words when the top staff is by itself. } "text2" = \lyricmode { A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 \skip1 } upper = \relative c'' { \clef treble \key c \major \time 4/4 | c c c c | c c c c | c c c c %Shift staff spacing. | c' c c c | c c c c | c c c c | c c c c | c c c c %Shift staff spacing again. | c' c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c | c c c c } lower = \relative c { \clef bass \key c \major \time 4/4 c4 c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c } \score { \new StaffGroup << \new Staff = "ChordsAndLyrics" \with { \override StaffSymbol.line-positions = #'( 0 ) \override BarLine.bar-extent = #' (0 . 2.5) \override StaffSymbol.Y-extent = #'(0 . 2.5) } << \new Voice = "mel1" { \hideNotes \melody } \new Lyrics \with { \override LyricText.extra-offset = #'(0 . 6.3) \override LyricExtender.extra-offset = #'(0 . 6.3) \override LyricHyphen.extra-offset = #'(0 . 6.3) \override LyricText.self-alignment-X = #LEFT
Re: OT: new market ;-)
Am 31. Mai 2018 22:19:19 MESZ schrieb Urs Liska : >Sorry, couldn't resist > >https://cloud.ursliska.de/s/Mxi063Mc9WYtSkw Although it's debatable whether the backstage area matches our aesthetic premises ... https://cloud.ursliska.de/s/pid8lREb5Wxm0zm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
OT: new market ;-)
Sorry, couldn't resist https://cloud.ursliska.de/s/Mxi063Mc9WYtSkw___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: handbell shake
2018-05-31 19:55 GMT+02:00 Rick Kimpel : > From: Stanton Sanderson > Sent: Thursday, May 31, 2018 11:44 AM >> I’ve attempted some handbell pieces for our bell choir. Attached >> is one which has a few special symbols. Not intended as samples >> of “good practice!” > > Stan, > I added q's where necessary to try to compile in 2.18, but I'm getting > an odd error in ly-syntax-constructors.scm > "Wrong number of arguments to #" > Any ideas? I've never seen this before. > Rick Use: twoVoices = #(define-music-function (parser location one two)(ly:music? ly:music?) ...) It's a 2.19.-feature omitting those default-arguments. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: handbell shake
From: Stanton Sanderson Sent: Thursday, May 31, 2018 11:44 AM > I’ve attempted some handbell pieces for our bell choir. Attached > is one which has a few special symbols. Not intended as samples > of “good practice!” Stan, I added q's where necessary to try to compile in 2.18, but I'm getting an odd error in ly-syntax-constructors.scm "Wrong number of arguments to #" Any ideas? I've never seen this before. Rick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: handbell shake
I had been trying to use Finale for handbells but kept running into an issue when I wanted handchimes ( x-notehead) and handbells (regular notehead). Lilypond has been just the thing - thank you, thank you, thank you! I have worked up two templates for when I start a new piece, which are definitely works in progress. I do have the Finale percussion font on my PC so I am using the damp symbol (and others) from this font, rather than building my own. Both of these should compile on 2.18.2 which is what I have downloaded and am using. On 31 May 2018 at 07:44, Stanton Sanderson wrote: > I’ve attempted some handbell pieces for our bell choir. Attached is one > which has a few special symbols. Not intended as samples of “good practice!” > > Stan > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > > \version "2.18.2" \language "english" \header { % dedication = \markup { \italic "dedication text - use percent sign if no dedication" } title = "TITLE" subtitle = "for 3 octaves Handbell trio" composer = "name of composer" arranger = "Arranged by name of arranger" copyright = \markup { \column { " " "Copyright © date name of copyright holder" } } tagline = ##f % tagline = "transcribed 201x-xx-xx by S Buckingham using lilypond version 2.18.2" } \paper { #(set-paper-size "letter") system-system-spacing #'basic-distance = #14 last-bottom-spacing = #20 ragged-bottom = ##f top-margin = 10 bottom-margin = 10 left-margin = 15 right-margin = 15 % first-page-number = 2 % use to change page numbering } \layout { \context { \Voice \consists "Melody_engraver"} } % function parentheAll allows for accidental symbol to be included in parentheses parentheAll = #(define-music-function (parser location note) (ly:music?) #{ \once \override ParenthesesItem.font-size = #-1 \once \override ParenthesesItem.stencil = #(lambda (grob) (let* ((acc (ly:grob-object (ly:grob-parent grob Y) 'accidental-grob)) (dot (ly:grob-object (ly:grob-parent grob Y) 'dot))) (if (not (null? acc)) (ly:pointer-group-interface::add-grob grob 'elements acc)) (if (not (null? dot)) (ly:pointer-group-interface::add-grob grob 'elements dot)) (parentheses-item::print grob))) \parenthesize $note #}) global = {%handbells used chart \key c \major \numericTimeSignature } handbellsusedone = \relative c' { % input notes for treble handbells used \clef treble \key c \major % count handbell notes & spaces to get time signature \numericTimeSignature \time 20/4 \once \omit Staff.TimeSignature \override Staff.BarLine.color = #white \override Stem.transparent = ##t % use spaces as needed to get bar to desired length s4^\markup { \left-column { " " "3 octaves - Handbells used: 26" } } s s s s s s s e4_\markup { \column { \small \italic "4 bells shared" \small \italic "Peri"} } fs g a s gs b c cs d e fs } handbellsusedtwo = \relative c' { % input notes for treble handbells used \clef treble \key c \major % count handbell notes & spaces to get time signature \once \omit Staff.TimeSignature \override Staff.BarLine.color = #white \override Stem.transparent = ##t % use spaces as needed to get bar to desired length b4 c4 cs s d ds f s e fs g a s s s s s s s s } handbellsusedthree = \relative c { % input notes for bass handbells used \clef bass \once \omit Staff.TimeSignature \key c \major \override Staff.BarLine.color = #white \override Stem.transparent = ##t % use spaces as needed to get bar to desired length b'4^\markup { \column { \small \italic "3 bells shared" \small \italic "Karen" } } c cs s_\markup { \column { " " \small \italic "PERFORMANCE NOTE: recommend setup on 4 tables" } } s s s s cs, d ds e fs g gs a as bf s s } \score { % setup staffgroup with treble & bass handbells used << \new Staff \accidentalStyle forget \handbellsusedone \new Staff \handbellsusedtwo \new Staff \handbellsusedthree >> } global = { \key d \major \numericTimeSignature % input initial time signature here \time 6/8 \tempo "Moderately" 4. = 80 \override Score.BarNumber.break-visibility = ##(#f #t #t) \set Score.currentBarNumber = #1 % Permit first bar number to be printed \bar "" } % this section has special handbells articulations and extra dynamic markings subP = \markup { "sub." \dynamic p } subMP = \markup { "sub." \dynamic mp } mart = \markup { \magnify #0.7 ▼ } martlift = \markup { \concat { \magnify #0.7 ▼ \magnify #1.3 ↑ } } malltab = \markup { ⨥
Re: handbell shake
I’ve attempted some handbell pieces for our bell choir. Attached is one which has a few special symbols. Not intended as samples of “good practice!” Stan Jeg er sa glad-Bells Ed-2.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: handbell shake
2018-05-31 6:03 GMT+02:00 Rick Kimpel : > From: Thomas Morley > Your sample works in 2.18, as well. I did notice that the gliss line can > obscure the dot. Interestingly, my workaround does something that > confuses the dot and puts it above the squiggle. Can't decide if that's the > best way to go, or if I should force the gliss to start after the dot. > bound-details.left.padding would do the trick there. The optional argument of \durLine is supposed to serve for that purpose. > I couldn't figure out why you had to override the to-barline. Also, your > TODO about that is crazy. I was really surprised by the results of leaving it > out. ?! The idea of durLine was to insert grace-notes right after the end of it's musical argument. Something like: { 1 \grace 1 } Then insert \glissando and make all stuff related to the graces invisible or point-stencils or omit it at all, only keeping the glissando. As viewable by the tiny code above the graces may appear in the next bar. Causing some disadvantages. If you want to insert stuff like breaks, other bar-lines, key- or meter-changes etc at the beginning of this bar you need a second voice and care about grace-synchronisation: \new Staff << { 1\glissando \grace 1 s1 } { s1 \key d \major \bar ":..:" \time 2/2 \grace s1 s1 } >> Also this example demonstrates why setting 'to-barline is preferable there, if it would work as desired ... I've no clue why the glissandi-slopes are messed up. Here a minimal example causing the attached image. I lean towards calling it a bug. { \once \override Glissando.to-barline = ##t 1\glissando 1 } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: handbell shake
Aaron Hill writes: > On 2018-05-30 15:40, Thomas Morley wrote: >> I don't know anything about handbell choir music and which special >> notation-features may be needed. >> Are there any images you could link to? > > Thomas, > > For your (or anyone else's) reference, here is a site that summarizes > standard American handbell notation: > > https://www.handbellworld.com/music/HandbellNotation.cfm My handbell shake brings all the monks to the yard. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: handbell shake
2018-05-31 3:23 GMT+02:00 Aaron Hill : > On 2018-05-30 15:40, Thomas Morley wrote: >> >> I don't know anything about handbell choir music and which special >> notation-features may be needed. >> Are there any images you could link to? > > > Thomas, > > For your (or anyone else's) reference, here is a site that summarizes > standard American handbell notation: > > https://www.handbellworld.com/music/HandbellNotation.cfm Hi Aaron, thanks for the link, very helpful. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user