Deutschsprachiges LilyPond-Forum

Allgemeine Fragen und Probleme => Fragen und Probleme aller Art => Thema gestartet von: chf am Sonntag, 14. Mai 2023, 19:19

Titel: instrumentName
Beitrag von: chf am Sonntag, 14. Mai 2023, 19:19
\version "2.22.0"
Akkn = \relative c'' {
g4 r r g
}

git = \relative c'' {
g4 r r g
}

Akk = \chordmode  {\germanChords
c1
}

\score {
   <<
   \new Staff = "Akkn" \with {instrumentName = \markup \italic \fontsize #.5 "AKKORDEON" }                                                                                     
                         <<\Akkn>>                                             
   
    \new Staff
         << \new ChordNames \Akk \germanChords
               \new Voice = "git" \with {\accepts ChordNames 
                        instrumentName = \markup \italic \fontsize #.5 "GITARRE"                                                                                       
                        shortInstrumentName = \markup \fontsize #.5 \italic "         GIT  " }   
                                   <<  { \git} >>
        >>
   >>
 }



Liebe Freunde,

in der Gitarre wird kein Name ausgegeben. Ich hatte diese Kombination mit chordmode noch nie...
Könnt ihr helfen?

Gruß und schönen Abend
Christa
Titel: Antw:instrumentName
Beitrag von: juergen74 am Montag, 15. Mai 2023, 00:08
Hallo Christa!

NR:
ZitatInstrument names can be printed on the left side of staves in the Staff, PianoStaff, StaffGroup, GrandStaff and ChoirStaff contexts.

Also:
\version "2.22.0"
Akkn = \relative c'' {
  g4 r r g
}

git = \relative c'' {
  g4 r r g
}

Akk = \chordmode  {
  \germanChords
  c1
}

\score {
  <<
    \new Staff = "Akkn" \with {
      instrumentName = \markup \italic \fontsize #.5 "AKKORDEON"
    }
    <<\Akkn>>

    \new Staff \with {
      instrumentName = \markup \italic \fontsize #.5 "GITARRE"
      shortInstrumentName = \markup \fontsize #.5 \italic "         GIT  "
    }
    <<
      \new ChordNames \Akk \germanChords
      \new Voice = "git" \with {
        \accepts ChordNames
      }
      <<  { \git} >>
    >>
  >>
}

Grüße, Jürgen.
Titel: Antw:instrumentName
Beitrag von: chf am Montag, 15. Mai 2023, 11:09
Danke, Juergen!