Re: Chord Symbols below the staff
Thank you! That makes perfect sense. I had copied and pasted the chords from a different document and overlooked the usage of \chords. On Thu, Mar 20, 2025 at 5:45 PM Valentin Petzel wrote: > Hello Steve, > > > I'm having an issue with most of the chord symbols (except for the No > > Chord) being displayed below the staff line. Obviously I've messed > > something up but I have not been able to figure it out. If someone could > > please take a look and point me in the right direction, I would > appreciate > > it. > > the issue here is that you are using `\chords` for this. As you can see > with > `\displayLilyMusic\chords { c }` `\chords` is a shorthand for changing to > chordmode and creating a new chord name context in one go (similar to > `\drums` > for `\new DrumStaff \drummode ...`). > > But this means that when you do > > << \new ChordNames \chords ... \new Staff >> > > this will create two ChordName contexts, and the Staff is only created > then, > thus defaulting below the chord names. If instead you have > > << \new ChordNames { \global \chords ... } \new Staff ... >> > > the second ChordName context is created after the Staff, thus being placed > below it. > > Of course the proper solution is to replace `\chords ...` by `\chordmode > ...`. > > Cheers, > Valentin
Re: Chord Symbols below the staff
Hello Steve, > I'm having an issue with most of the chord symbols (except for the No > Chord) being displayed below the staff line. Obviously I've messed > something up but I have not been able to figure it out. If someone could > please take a look and point me in the right direction, I would appreciate > it. the issue here is that you are using `\chords` for this. As you can see with `\displayLilyMusic\chords { c }` `\chords` is a shorthand for changing to chordmode and creating a new chord name context in one go (similar to `\drums` for `\new DrumStaff \drummode ...`). But this means that when you do << \new ChordNames \chords ... \new Staff >> this will create two ChordName contexts, and the Staff is only created then, thus defaulting below the chord names. If instead you have << \new ChordNames { \global \chords ... } \new Staff ... >> the second ChordName context is created after the Staff, thus being placed below it. Of course the proper solution is to replace `\chords ...` by `\chordmode ...`. Cheers, Valentin signature.asc Description: This is a digitally signed message part.
Re: Chord Symbols below the staff
You must set a name for the \new Staff {\rguitar-part}. Like: new Staff = "guitar" {\rguitar-part} And also you must set the ChordNames above using the \with command. Like: \new ChordNames \with { alignAboveContext = "guitar" } { *some nice chords or variables* } Em qui., 20 de mar. de 2025 21:25, Steve Carlock escreveu: > I'm having an issue with most of the chord symbols (except for the No > Chord) being displayed below the staff line. Obviously I've messed > something up but I have not been able to figure it out. If someone could > please take a look and point me in the right direction, I would appreciate > it. > > Thanks. > > Environment: > > Frescobaldi: 3.3.0 > Extension API: 0.9.0 > Python: 3.12.3 > python-ly: 0.9.7 > Qt: 5.15.13 > PyQt: 5.15.10 > sip: 6.7.12 > qpageview: 0.6.2 > poppler: 24.2.0 > python-poppler-qt: 21.3.0 > OS: Linux-6.8.0-55-generic-x86_64-with-glibc2.39 > > > > % % % % % > \version "2.24.4" > > \language "english" > > global = { > \tempo "Freely" > \time 4/4 \numericTimeSignature > \key g \major > } > > Intro-I-rests = { \partial 8 r8 | R1*7 | R1\fermata | } > Intro-II-rests = { \tempo 4=110 R1*4 | } > > Intro-I-chords = \chords { > \set chordChanges = ##t > \set additionalPitchPrefix = "add" > \partial 8 s8 | > a4.:m7 e8:m7~ q2 | d2 c2 | g2 d2 | 1 | > a4.:m7 e8:m7~ q2 | d4. c8~ q2 | g2 d2 | 1 | > } > > cpattern-I = \chords { > \set chordChanges = ##t > \set additionalPitchPrefix = "add" > a4.:m7 e8:m7~ q2 | d4. 8~ q2 | g2 d2 | 1 | > } > > chord-line = { > \global > \Intro-I-chords > \Intro-II-rests > \cpattern-I > } > > rguitar-rpattern-I = { a4. e8~ 2 | d4. c8~ 2 | g2 d2 | c1 | } > > rguitar-part = << > \new Voice \with { > \consists Pitch_squash_engraver > } > { > \clef "treble_8" > \global > \Intro-I-rests > \Intro-II-rests > \improvisationOn > \rguitar-rpattern-I > \improvisationOff > } > >> > > \score { > << > \new ChordNames { > \global > \Intro-I-chords > \Intro-II-rests > \cpattern-I > } > > \new Staff { \rguitar-part } > >> > \layout {} > } > % % % % % >