Editorial tie in scheme
This is my first attempt at scheme hacking and I would appreciate a little help. What I am trying to do is implement editorial ties ( a small vertical line mid tie). I can find the X mid point easily enough, but cannot work out how to find the Y position (relative to currentpoint). The second question is how best to integrate this into the user language? The score I am working on has many, many ties, about a quarter of the editorial. { \override Tie #'stencil = #(lambda(grob) (let* ( (tie-stencil (ly:tie::print grob)) (x-parent (ly:grob-parent grob X)) (cpoints (ly:grob-property grob 'control-points)) ; (Xpoint3-Xpoint0) / 2 + Xpoint0 (mid-tie (+(car(list-ref cpoints 0))( / (- (car(list-ref cpoints 3)) (car( list-ref cpoints 0))) 2))) (ps (format #f "gsave currentpoint translate newpath 0.2 setlinewidth ~s -2.3 moveto 0 0.5 rlineto stroke grestore" mid-tie)) (tick-stencil(ly:make-stencil(list 'embedded-ps ps ) (cons 0 1)(cons -1 -1))) ) (ly:stencil-add tie-stencil tick-stencil) ) ) g'1~g' } Thanks, Mike ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
How change the default spacing between staff blocks
Hi everyone, Just a easy question: How can we further separate the different lines that make up a score? I mean a score for a single melodic instrument. Sometimes I find the music too close together, and I wish I could change the default spacing. \version "2.24.0" violin = \relative { a b c d a b c d a b c d a b c d | \break % This space is I want to change a b c d a b c d a b c d a b c d | \break % This space is I want to change a b c d a b c d a b c d a b c d | \break ... } \score { \new Staff { \new Voice { \violin } } \layout { } } I haven't found anything in the documentation about it, it only refers to staff groups. Thanks in avance!
Re: How change the default spacing between staff blocks
Thanks a lot Michael! It was just what I was looking for! El 2023-02-09 20:36, Michael Werner escribió: The docs you want to refer to this for would be: http://lilypond.org/doc/v2.24/Documentation/notation/flexible-vertical-spacing-paper-variables#list-of-flexible-vertical-spacing-paper-variables Specifically, you want the system-system-spacing The docs explain in fair detail how those settings get used, but basically you'll set this in the \paper block. Something like: \paper { system-system-spacing.basic-distance = #8 } On Thu, Feb 9, 2023 at 2:18 PM wrote: Hi everyone, Just a easy question: How can we further separate the different lines that make up a score? I mean a score for a single melodic instrument. Sometimes I find the music too close together, and I wish I could change the default spacing. \version "2.24.0" violin = \relative { a b c d a b c d a b c d a b c d | \break % This space is I want to change a b c d a b c d a b c d a b c d | \break % This space is I want to change a b c d a b c d a b c d a b c d | \break ... } \score { \new Staff { \new Voice { \violin } } \layout { } } I haven't found anything in the documentation about it, it only refers to staff groups. Thanks in avance!
move chords closer to notes
Hi everyone, when I write the chords together with one or several melodies, the chords form a horizontal line, in such a way that if the range of the melody is very wide, some chords end up being very far from the notes. I attach a sample of the .ly file along with its pdf, where you can see that the first chords are excessively far from the melody. How can this behavior be changed? Thanks in advance.\version "2.24.0" global = { \key c \major \partial 4 \time 2/4 } melody = \relative { r16 g' g g \bar "||" << { e' c c c d b b b c8 a r16 d d c c8 b r16 c c b a8 g r16 g fis g \break c g fis g b g fis g a8 f r16 g fis g b g fis g a f e f g8 e r16 g g g \break } \\ { g4 gis a16 g f a c4 b, a a16 g c d e4 g fis f r g f e r } >> } harmonies = \chords { \set minorChordModifier = \markup { "-" } s4 c e:7 f2 g c s4 b d2:m g4 g:7 c2 } \score { \new Staff << \harmonies \new Voice { \global \melody } >> \layout { } } adios.pdf Description: Adobe PDF document
Re: move chords closer to notes
Yes, sorry, I see the typo just now. My lilypond version is 2.24.0. El 2023-02-21 13:13, Jean Abou Samra escribió: Le mardi 21 février 2023 à 13:03 +0100, Jean Abou Samra a écrit : Le mardi 21 février 2023 à 12:41 +0100, mi...@orbelanet.com a écrit : Thanks a lot for your response! It looks good in the image you sent, but for some reason it doesn't work for me.The next line does not allow me to compile the file, it does not accept it: \remove Axis_group_engraver (Resend, I got bounces from the list, not sure why.) Well, you had a typo in the list address (“llilypond”) so your message above didn't reach the list either. What version are you using?
Re: move chords closer to notes
Oh, I'm so sorry! My problem is not relationed with lilypond directly. Is just a neovim mapping problem with .ly files, that convert cc to cis (to easyly write sharps and flats). Then when a compile next line: \accepts ChordNames is modified in: \acisepts ChordNames and compilation break off! I solve it and now work like I want. Thanks very mutch for your time! El 2023-02-21 13:43, Jean Abou Samra escribió: Le mardi 21 février 2023 à 13:35 +0100, mi...@orbelanet.com a écrit : Yes, sorry, I see the typo just now. My lilypond version is 2.24.0. Did you really compile the snippet unmodified, or did you insert it in the context of a larger score?
Re: Excessive spacing due to chords
Fantastic, thank you very much! El 2023-02-23 15:24, Jean Abou Samra escribió: Le jeudi 23 février 2023 à 15:13 +0100, mi...@orbelanet.com a écrit : Good morning, I have 2 question related to spacing in lilypond: * How to avoid the excessive gap that forms between the sixteenth notes (marked in green in ttached image) due to chords? Use \override ChordName.extra-spacing-width = #'(+inf.0 . -inf.0) See the documentation page here [1]. * How to avoid the collision between the number 3 of the triplet and the slur (marked in green in ttached image)? You could tweak the padding a bit. Giving: \version "2.24.0" global = { \key g \minor \tempo 4 = 90 \time 2/4 } voiceI = \relative { \repeat volta 2 { % mes.1 g'16 bes a bes g bes a bes a c b c a c b c | a c b c a c b c bes d cis d bes d cis d | \break % mes.5 b d cis d b d cis d c ees d ees c ees d ees d a'( fis d c) a( bes c d) d,( ees e f fis g aes) | \break } } voiceII = \relative { \repeat volta 2 { % mes.1 g4 a8( bes c4)~ c16 ees( d ees c4.) d8( bes4)~ bes16 d( g fis | % mes.5 g4~) \tweak TupletBracket.padding 2 \tuplet 3/2 { g8 fis( f } ees4~) \tweak TupletBracket.padding 2 \tuplet 3/2 { ees8 d( cis } d16) ees( d cis d) c( bes a d) d( cis c b bes a aes) | } } melody = \relative { << { \voiceI } \\ { \voiceII } >> } harmonies = \chords { \set minorChordModifier = \markup { "-" } g2:m d:7/a s g:m/bes g:7/b c:m d:7 g4:m d:aug7 } \score { \new Staff << \harmonies \new Voice { \global \melody } >> \layout { \context { \Staff \accepts ChordNames } \context { \ChordNames \remove Axis_group_engraver \override ChordName.outside-staff-priority = 500 \override ChordName.direction = #DOWN \override ChordName.outside-staff-padding = 0.5 \override ChordName.extra-spacing-width = #'(+inf.0 . -inf.0) } } } Note that I chose to rename your variables "voiceOne" and "voiceTwo" because these are also the names of predefined LilyPond commands. Best, Jean Links: -- [1] https://lilypond.org/doc/v2.24/Documentation/notation/adjusting-horizontal-spacing-for-specific-layout-objects