Deutschsprachiges LilyPond-Forum

Allgemeine Fragen und Probleme => Fragen und Probleme aller Art => Thema gestartet von: C_E am Dienstag, 11. Februar 2025, 07:49

Titel: Sustain-Pedal ohne Stern
Beitrag von: C_E am Dienstag, 11. Februar 2025, 07:49
Hallo!

Ich hab nach langer Zeit mal wieder mit lilypond angefangen.

Ich habe Klavier-Noten, in denen der Befehl \sustainOn ohne \Off existiert. Wie kann ich das implementieren?
(Für midi wahrscheinlich am besten ein "unsichtbarer" \sustainOff?)

\version "2.24.3"

\score {
  \new PianoStaff <<
    \new Staff \relative c'' {
      c4 c c c |
      c c c c }
    \new Staff { \clef bass \relative c {
      c2 c |
      c c | } }
    \new Dynamics {
      s4\sustainOn s4\sustainOff s4\sustainOn s4\sustainOff |
      s4\sustainOn s4\sustainOff s4\sustainOn s4\sustainOff | }
  >>
}
 

Danke schonmal!
Liebe Grüße
Titel: Antw:Sustain-Pedal ohne Stern
Beitrag von: Manuela am Dienstag, 11. Februar 2025, 14:02
Lass einfach das \sustainOff weg?
Titel: Antw:Sustain-Pedal ohne Stern
Beitrag von: C_E am Dienstag, 11. Februar 2025, 19:39
Dann kommt der Stern zum Heben des Pedals vor dem nächsten \sustainOn. Ich benötige es leider nur sporadisch in der Mitte vom Stück, nicht am Ende.
Titel: Antw:Sustain-Pedal ohne Stern
Beitrag von: amateur am Mittwoch, 12. Februar 2025, 10:28
Bei mir passiert es nicht:
\version "2.24.0"

\score {
  \new PianoStaff <<
    \new Staff \relative c'' {
      c4 c c c |
      c c c c }
    \new Staff { \clef bass \relative c {
      c2 c |
      c c | } }
    \new Dynamics {
      s4\sustainOn s4 s4\sustainOn s4 |
      s4\sustainOn s4 s4\sustainOn s4 | }
  >>
}
 
Titel: Antw:Sustain-Pedal ohne Stern
Beitrag von: Manuela am Mittwoch, 12. Februar 2025, 14:34
Ich sehe auch keinen Stern. Wo kommt der her?
Titel: Antw:Sustain-Pedal ohne Stern (gelöst)
Beitrag von: C_E am Freitag, 14. Februar 2025, 15:29
oh... Jetzt habe ich es nochmal ausprobiert, und ihr habt Recht. Tut mir Leid, da hatte ich wohl irgendwie ein Chaos im Testen. Vielen Dank für das Augen öffnen!
Titel: Antw:Sustain-Pedal ohne Stern
Beitrag von: Manuela am Freitag, 14. Februar 2025, 15:30
Gerne!
Titel: Antw:Sustain-Pedal ohne Stern
Beitrag von: Lilysetter am Sonntag, 2. März 2025, 12:56
Siehe snippets.pdf bei "Changing the text for sustain markings"
Ich würds so machen:
\version"2.25.6"\language"deutsch"\pointAndClickOff\paper{line-length=195 indent=0 system-count=2}
sustainNotes = { c4\sustainOn d e\sustainOff\sustainOn f\sustainOff }
\relative c' {
  \sustainNotes % with default settings
  \set Staff.pedalSustainStrings = #'("P" "P-" "-") \sustainNotes
  \set Staff.pedalSustainStrings = #'("M" "M-" "-") \sustainNotes\break
  \set Staff.pedalSustainStrings = #'("Ped" "*Ped" "") \sustainNotes %% 3. String leer
  \set Staff.pedalSustainStrings = #'("d" "de" "e") \sustainNotes
  \set Staff.pedalSustainStrings = #'("M" "" "-") \sustainNotes %% 2. String leer
  }
1. String: \sustainOn
2. String: \sustainOff\sustainOn
3. String: \sustainOff