Re: Skip a chord in a lead sheet
-Eluze wrote: > > > gajatko wrote: >> >> Hello, >> >> I would like to skip a given duration in a list of chords. For example, I >> have notes: >> c''2 bes'2 c''1 e''2 d''2 e''1 >> and want to have chords displayed for these notes: >> C (skip a chord for bes) Em C D C >> My application, which uses LilyPond for displaying notes, can easily >> generate this string: >> c2 e1:m c2 d2 c1 >> because it knows duration of the notes. However, it would be more >> difficult to generate >> c1 e1:m c2 d2 c1 >> because I would have to implement an algorithm which sums durations. >> > not sure to understand - but did you try spacer rests: > > << > \new ChordNames \chordmode {c''2 s2 c''1 e''2 d''2 e''1} > \new Staff {c''2 b'2 c''1 e''2 d''2 e''1} >>> > Thank you, this is exactly what I needed. I suggest putting it into documentation (under the chapter about lead sheets) since I lost many hours implementing a dirty work-around (which I don't need now). Cheers - gajatko -- View this message in context: http://old.nabble.com/Skip-a-chord-in-a-lead-sheet-tp33028660p33035673.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Skip a chord in a lead sheet
Hello, I would like to skip a given duration in a list of chords. For example, I have notes: c''2 bes'2 c''1 e''2 d''2 e''1 and want to have chords displayed for these notes: C (skip a chord for bes) Em C D C My application, which uses LilyPond for displaying notes, can easily generate this string: c2 e1:m c2 d2 c1 because it knows duration of the notes. However, it would be more difficult to generate c1 e1:m c2 d2 c1 because I would have to implement an algorithm which sums durations. It would be great if it was possible to put a custom text instead of standard chord names. Then, I could write something like this: " "2, or ".."2, "?"2 etc. The workaround is to repeat the latest chord and set "\set chordChanges = ##t", but then actual chord repeats would be hidden which is not desired. Any help appreaciated, greetings and Merry Christmas -- gajatko. -- View this message in context: http://old.nabble.com/Skip-a-chord-in-a-lead-sheet-tp33028660p33028660.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Lilypond hangs on a script after adding fingering
Hello! I am not sure which statement spoils the process, but the following script causes Lilypond.exe to hang without any output (I waited 100 seconds). \version "2.12.3" treble = \new Staff << \new Voice="sopran" { \voiceOne { \clef "treble" { \key c \major \time 4/4 \set fingeringOrientations = #'(right)2 2 2 4 4 4 4 4 4 2 2 2 4 4 2 4 4 1 } } } \new Voice="alt" { \voiceTwo { \clef "treble" { \set fingeringOrientations = #'(right) 2 2 1 2 2 2 2 2 2 1 1 } } } >> bass = \new Staff << \new Voice="tenor" { \voiceOne { \clef "bass" { \set fingeringOrientations = #'(right) \key c \major 2 2 1 2 4 4 4 4 4 4 4 2 4 2 2 1 } } } \new Voice="bas" { \voiceTwo { \clef "bass" { \set fingeringOrientations = #'(right) 2 2 2 2 2 2 2 2 2 4 4 4 2 4 1 } } } \chords { \germanChords \set chordNameLowercaseMinor = ##t c2:1.1.3.5 e2:5.7-.1.3 a2:1.3.5.1 cis4:5.1.3-.7- a4:7-.3.5.1 d4:3.1.1.1 d4:3.1.1.5 cis4:5.7-.3-.1 cis4:5.1.3-.7- d4:3.1.1.5 b4:5.1.3-.7- e4:1.7-.1.3- cis4:3-.1.3-.5 d4:3.6.7.3 fis2:1.3.5.1 ais4:5.1.3-.7- fis4:1.5.5.3 b4:5.7-.3-.1 b2:4.7-.3-.1 c4:3.5.2.1 cis4:3-.5.2-.1 a1:1.1.3.1 } >> \score { << \treble \bass >> \layout {} \midi {} } On the other hand, the following scripts works correctly: 1.) \version "2.12.3" treble = \new Staff << \new Voice="sopran" { \voiceOne { \clef "treble" { \key c \major \time 4/4 \set fingeringOrientations = #'(right) 2 2 1 2 2 1 } } } \new Voice="alt" { \voiceTwo { \clef "treble" { \set fingeringOrientations = #'(right) 2 2 1 2 2 1 } } } >> bass = \new Staff << \new Voice="tenor" { \voiceOne { \clef "bass" { \set fingeringOrientations = #'(right) \key c \major 2 2 1 2 2 1 } } } \new Voice="bas" { \voiceTwo { \clef "bass" { \set fingeringOrientations = #'(right) 2 2 1 2 2 1 } } } \chords { \germanChords \set chordNameLowercaseMinor = ##t c2:5.5.3.1 bes2:5.5.3.1 c1:1.5.3.1 c2:5.1.3.3 d2:5.1.3.1 c1:5.1.5.3 } >> \score { << \treble \bass >> \layout {} \midi {} } 2. Some problems appear, but they neither hang nor crash lilypond \version "2.12.3" treble = \new Staff << \new Voice="sopran" { \voiceOne { \clef "treble" { \key c \major \time 4/4 \set fingeringOrientations = #'(right) 2 2 2 4 4 4 4 4 4 2 2 2 4 4 2 4 4 1 } } } \new Voice="alt" { \voiceTwo { \clef "treble" { \set fingeringOrientations = #'(right) 2 2 1 2 2 2 2 2 2 1 1 } } } >> bass = \new Staff << \new Voice="tenor" { \voiceOne { \clef "bass" { \set fingeringOrientations = #'(right) \key c \major 2 2 1 2 4 4 4 4 4 4 4 2 4 2 2 1 } } } \new Voice="bas" { \voiceTwo { \clef "bass" { \set fingeringOrientations = #'(right) 2 2 2 2 2 2 2 2 2 4 4 4 2 4 1 } } } \chords { \germanChords \set chordNameLowercaseMinor = ##t c2:1.1.3.5 e2:5.7-.1.3 a2:1.3.5.1 cis4:5.1.3-.7- a4:7-.3.5.1 d4:3.1.1.1 d4:3.1.1.5 cis4:5.7-.3-.1 cis4:5.1.3-.7- d4:3.1.1.5 b4:5.1.3-.7- e4:1.7-.1.3- cis4:3-.1.3-.5 d4:3.6.7.3 fis2:1.
Re: Lilypond hangs on a script after adding fingering
James-379 wrote: > I get warnings about using fingering > numbers >5 (but that is expected) however it all compiles. > I love it: "it works for me", "cannot reproduce" ;) . Whatever, in general approach, warning=error. What would be a legitimate way to visually get the same output as a fingering, but not logically? I use "fingering" feature to annotate a number of a component of a chord, like 1,3,5,7 for a dominant seventh. These annotations must be on the right side of each note, as the fingering is after setting it up properly. So, in future I will also need numbers like 9,11,13 etc. In the current lily version, setting a finger number 10 or more causes an "unexpected unsigned" compilation error. But, as I said, I do not want use a feature which logically corresponds to a figering. What I wish to accoplish is to get visually the same effect. I hope I made things clear. Greetings - gajatko -- View this message in context: http://old.nabble.com/Lilypond-hangs-on-a-script-after-adding-fingering-tp33039597p33059201.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond hangs on a script after adding fingering
Robin Bannister wrote: > > gajatko wrote: >> in future I will also need numbers like 9,11,13 etc. > > Check out LSR 756 > http://lsr.dsi.unimi.it/LSR/Item?id=756 > > and some context > http://lists.gnu.org/archive/html/lilypond-user/2011-03/msg00138.html > > > Cheers, > Robin Thank you, it does most of work. Unfortunately, it completely ignores the \set fingeringOrientations = #'(right) This a code I am using: ten = #(make-music 'FingeringEvent 'digit 10) fifty = #(make-music 'FingeringEvent 'digit 50) finger = #(define-music-function (parser location digit) (integer?) (make-music 'FingeringEvent 'digit digit)) #(define (calc-finger-without-warning grob) (let* ((event (event-cause grob)) (digit (ly:event-property event 'digit))) (number->string digit 10))) \relative c' { % optional override to remove warnings for fingerings larger than 5 \override Fingering #'text = #calc-finger-without-warning \set fingeringOrientations = #'(right) c1\ten c1\fifty c1-\finger #36 c1-\finger #29 } Greetings -- View this message in context: http://old.nabble.com/Lilypond-hangs-on-a-script-after-adding-fingering-tp33039597p33059894.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user