Re: Note spacing issue with accidental
Hi Dan, It may or may not be appropriate for your needs, but you could consider using proportional spacing. Add something like this and you obtain a much more nicely controlled appearance. == snip \layout { \context { \Score proportionalNotationDuration = #(ly:make-moment 1/24) } } == snip Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Note spacing issue with accidental
> On May 11, 2017, at 1:40 PM, Knute Snortum wrote: > > I think you have to move the accidental to get the note to move. I don't > really like the way the following looks, but at least it's an example of > moving the accidental: > > rightTwo = \relative c' { > c4 \tuplet 3/2 { d4 \tweak Accidental.Y-offset -0.25 cis8 } > } Yeah, you’re right … not a perfect solution, but still quite helpful and works well, at least in this particular instance. Thank you! — Dan___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: "natural width" of a measure
2017-04-11 22:34 GMT+02:00 David Nalesnik : > Here's how you can determine the widths of measures. Note that I've > put everything on one line, so that the \once \override of the > NoteHead gives access to every column in the score. You can adjust > what alignment objects are used to gauge width by changing the symbol > in ly:paper-column::break-align-width (available as of 2.19.59). > Right now, it's BreakAlignment objects to give you an extent > considering all prefatory materials. staff-bar would give extents of > the bar lines. > > \version "2.19.59" > > \paper { > page-breaking = #ly:one-line-breaking > } > > #(define (display-measure-widths grob) >(let* ((sys (ly:grob-system grob)) > (cols (ly:grob-array->list (ly:grob-object sys 'columns))) > (nmpcs >(filter > (lambda (elt) > (and (grob::has-interface elt 'paper-column-interface) >(eq? #t (ly:grob-property elt 'non-musical > cols)) > (widths >(map > (lambda (c) (ly:paper-column::break-align-width c > '(break-alignment))) > nmpcs)) > (widths (sort widths (lambda (x y) (< (car x) (car y) > ) > (pretty-print widths))) > { > > \once \override NoteHead.after-line-breaking = #display-measure-widths > \repeat unfold 4 { c''8. c''16} > \repeat unfold 4 { c''4 } > c''1 > c''2 c''2 > \repeat unfold 64 { c''64 } > } > > \layout { > \context { > \Score > \override SpacingSpanner.common-shortest-duration = #'() > } > } > > Hope this helps with something! > > David Hello David et al., it surely has the potential of helping me with my current project. My Scheme skills are still quite rudimentary, though, so I’m stuck for now. Below you can find a stripped-down version of my chord chart template. I need to offset all the notes and chords, apart from the first in a bar, to the left; the exact offset values I want to calculate based on the length of a measure. In the end, the distances between the notes should be the same as the distance from the last note of a measure to the next bar line. I think if I know the length of a measure and the position of each note, I can work out a formula for that. So, my questions are: How can I display the positions (or extents) of notes, similar to what you did with the extents of bar lines? How can I access the x and y values of your function outside of that function? Both seem to me not that difficult, but I couldn’t find the solution for now … \version "2.19.47" #(define (display-measure-widths grob) (let* ((sys (ly:grob-system grob)) (cols (ly:grob-array->list (ly:grob-object sys 'columns))) (nmpcs (filter (lambda (elt) (and (grob::has-interface elt 'paper-column-interface) (eq? #t (ly:grob-property elt 'non-musical cols)) (widths (map (lambda (c) (ly:generic-bound-extent c sys)) nmpcs)) (widths (sort widths (lambda (x y) (< (car x) (car y) ) (pretty-print widths))) << \new Voice { \once \override NoteHead.after-line-breaking = #display-measure-widths \repeat unfold 4 { 4 4 4 4 } } \new ChordNames \chordmode { \repeat unfold 4 { c2 c } } >> \layout { \context { \ChordNames \consists "Bar_engraver" \consists "Time_signature_engraver" \numericTimeSignature \override ChordName.Y-extent = ##f \override ChordName.Y-offset = #-0.9 \override ChordName.X-offset = #1 \override BarLine.bar-extent = #'(-2 . 2) } \context { \Staff \remove "Time_signature_engraver" \override Clef.stencil = #point-stencil \hide BarLine \override StaffSymbol.line-count = #0 \override NoteColumn.X-offset = #1 } \context { \Voice \consists "Pitch_squash_engraver" \improvisationOn \stemUp fontSize = #-4 } \context { \Score \override BarNumber.stencil = #point-stencil \override Clef.space-alist.first-note = #'(fixed-space . 0) \override Clef.space-alist.time-signature = #'(extra-space . -2) proportionalNotationDuration = #(ly:make-moment 1/2) \override SpacingSpanner.uniform-stretching = ##t \override SpacingSpanner.strict-note-spacing = ##t \override NonMusicalPaperColumn.padding = #0 } } \paper { indent = 0 ragged-right = ##f } Thanks, Peter -- Peter Crighton | Musician & Music Engraver based in Mainz, Germany http://www.petercrighton.de ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Apply a music-function script to all elements of a list
Hi Again. Thanks for your help ! Here just few question/ remarks : 1) This is a sheet that I include on my scores for making pedagogical colored scores for dyslexics people. The file you look on is for diatonic accordion diagrams and the left hand side of the instrument have bass, and each button is making a full chord. That is why I was just using the first élément of the chord (list l1) ( But it was not so clever because for making 7th on the bass side, we combine bass buttons and chord button). I think it's a really tricky thing to make a code which select only the fndamental of a chord if it's perfect ones and whic select the 7th by adding another colored note using a bass to enrich a perfect code by a 7th but in the bass. I don't know if it's possible and how to code that. (I could do that in C++ but not in scheme :) ) I hope to be clear, otherwise don't hesitate to ask :) 2) I have also designed a special instrument a button like accordion but you make your chord by pressing the differents key of the chord componants like on the piano. So your improvement of the code will be really usefull for this. But I still have a question because the bass keybord of this instrument is only 2 octave and now, I get some notes which is going out of the grid because they are too high... And I can't use /relative c or c'' with chordmode. Do you think it's possible to transpose all the notes from chordmode an octave lower or higher ? Here is the file for this instrument : 3) That seems that the script don't reconize the good notes. Sio I wonder if the function ly:pitch-notename is really giving a 0 for C , a 1 for C# a 2 for D .. ? Thanks a lot for help ! -- View this message in context: http://lilypond.1069038.n5.nabble.com/Apply-a-music-function-script-to-all-elements-of-a-list-tp200313p203096.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: rehersal markup in same level with chords
i hope this is not too much code :) \version "2.19.60" %default, ugly << \new ChordNames \chordmode { c4 f a c } \new Staff \with { instrumentName = #"default " } { c'' d'' e'' f'' | \mark \default c'' d'' e'' f'' | } >> %with spaceing and better << \new ChordNames \chordmode { c4 f a c } \new Staff \with { instrumentName = #"more space" } { c'' d'' e'' f'' | \once \override Staff.BarLine #'extra-spacing-width = #'(-3 . 3) \mark \default c'' d'' e'' f'' | } >> %here is where i would want it to be in level with chords << \new ChordNames \chordmode { c4 f a c } \new Staff \with { instrumentName = #"two low" } { c''' d'' e'' f'' | \once \override Staff.BarLine #'extra-spacing-width = #'(-3 . 3) \mark \default c'' d'' e'' f'' | } >> %here is where i do it manualy every time i change something << \new ChordNames \chordmode { c4 f a c } \new Staff \with { instrumentName = #"manual" } { c''' d'' e'' f'' | \once \override Score.RehearsalMark.Y-offset = #5 % this is what i would want to se up automaticly \once \override Staff.BarLine #'extra-spacing-width = #'(-3 . 3) \mark \default c'' d'' e'' f'' | } >> *Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje. Izreke 12:18* ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Note spacing issue with accidental
I think you have to move the accidental to get the note to move. I don't really like the way the following looks, but at least it's an example of moving the accidental: rightTwo = \relative c' { c4 \tuplet 3/2 { d4 \tweak Accidental.Y-offset -0.25 cis8 } } --- Knute Snortum (via Gmail) On Thu, May 11, 2017 at 10:24 AM, DJF wrote: > In the code below, the last eighth note in voice two of both the right and > left hand are too far to the right (even slightly more so in the piece from > which this excerpt is taken, shown in the attached image). I’ve fiddled > with various values using \once \override NoteColumn.force-hshift and > \once \override Score.NoteColumn.X-offset but nothing ever happens. I > think that the issue is the proximity (to the upper note) of the sharp on > the C in the alto, because when I make it a C-natural, the spacing is > normal. I don’t know what else to try … any hints? > > — > Dan > > > \version "2.19.58" > > rightOne = \relative c' { > \key g \major > d8 e fis g > } > > rightTwo = \relative c' { > c4 \tuplet 3/2 { d4 cis8 } > } > > leftOne = \relative c' { > \key g \major > \tuplet 3/2 4 { a8 g fis g fis e } > } > > leftTwo = \relative c { > c4 \tuplet 3/2 { b4 bes8 } > } > > \score { > << > \new PianoStaff << > \new Staff = "right" { << \rightOne \\ \rightTwo >> } > \new Staff = "left" { \clef bass << \leftOne \\ \leftTwo >> } > >> > >> > } > > > ___ > 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: rehersal markup in same level with chords
Do you have a Minimal Working Example that demonstrates the problem? --- Knute Snortum (via Gmail) On Wed, May 10, 2017 at 11:35 PM, Stjepan Horvat wrote: > hi guys.. > when i write notes in some lines my chords move up depending on how high > my notes go.. > then my rehersal markup moves randomly so i can't make a fix offset to be > always in the same level.. > > is it possible to use something like \once \override > Score.RehearsalMark.Y-offset = last or next chords bottom left position..? > > > *Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje. > Izreke 12:18* > > ___ > 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
Note spacing issue with accidental
In the code below, the last eighth note in voice two of both the right and left hand are too far to the right (even slightly more so in the piece from which this excerpt is taken, shown in the attached image). I’ve fiddled with various values using \once \override NoteColumn.force-hshift and \once \override Score.NoteColumn.X-offset but nothing ever happens. I think that the issue is the proximity (to the upper note) of the sharp on the C in the alto, because when I make it a C-natural, the spacing is normal. I don’t know what else to try … any hints? — Dan \version "2.19.58" rightOne = \relative c' { \key g \major d8 e fis g } rightTwo = \relative c' { c4 \tuplet 3/2 { d4 cis8 } } leftOne = \relative c' { \key g \major \tuplet 3/2 4 { a8 g fis g fis e } } leftTwo = \relative c { c4 \tuplet 3/2 { b4 bes8 } } \score { << \new PianoStaff << \new Staff = "right" { << \rightOne \\ \rightTwo >> } \new Staff = "left" { \clef bass << \leftOne \\ \leftTwo >> } >> >> } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: program error: mis-predicted force
On Wed 10 May 2017 at 21:52:59 (+0200), Partitura Organum wrote: > So, what am I doing wrong here? Replying to one of your posts at random, rather than starting a new thread. Cheers, David. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Strange indent
Dear Andrew, I definitely have to improve my archiv-searching skills ;) - but it worked, your guess regarding the grace notes was correct - and with you mentioning it I recalled that I had this issue a few years ago.. thx and cheers, Joei Hi Joel, I had this same error message once, and asked about it on the list. There's some discussion if you search the archives. I can't recall that there was any good resolution of the topic. It is suspicious that the erroring line has a grace at the start. Can you try applying a grace spacer rest of the same duration in the bass clef at the same musical moment? I have a feeling this may be the famous grace note bug that lilypond has. Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Strange indent
Possibly this bug: https://sourceforge.net/p/testlilyissues/issues/4975/ ? -- Phil Holmes - Original Message - From: Johannes Roeßler To: lilypond-user@gnu.org Sent: Thursday, May 11, 2017 11:45 AM Subject: Strange indent Hi Group, I've got a strange indent at the right edge of my notes and no idea, where it comes from. I can't construct a minimal example that reproduces the effect - but maybe you can give me hints where to look? I also got tons of "Mis-predicted Force Errors" in the log. "Programmierfehler: mis-predicted force, 97.877480 ~= 97.925119" Cheers Joei -- ___ 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: Strange indent
Hi Joel, I had this same error message once, and asked about it on the list. There's some discussion if you search the archives. I can't recall that there was any good resolution of the topic. It is suspicious that the erroring line has a grace at the start. Can you try applying a grace spacer rest of the same duration in the bass clef at the same musical moment? I have a feeling this may be the famous grace note bug that lilypond has. Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Strange indent
Hi Group, I've got a strange indent at the right edge of my notes and no idea, where it comes from. I can't construct a minimal example that reproduces the effect - but maybe you can give me hints where to look? I also got tons of "Mis-predicted Force Errors" in the log. "Programmierfehler: mis-predicted force, 97.877480 ~= 97.925119" Cheers Joei ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user