Deutschsprachiges LilyPond-Forum

Allgemeine Fragen und Probleme => Fragen und Probleme aller Art => Thema gestartet von: Hilflos-im-Code am Montag, 19. August 2024, 14:38

Titel: Problem mit bookpart
Beitrag von: Hilflos-im-Code am Montag, 19. August 2024, 14:38
Wenn ich diesen Code in Frescobaldi durchlaufen lasse, ist alles in Ordnung.

\version "2.24.4"


 
 
  global = {
    \key c \major
    \time 4/4
  }
 
  violin = \relative c'' {
    \global
    a
   
  }
 
  \score {
    \violin
   
  }


Setzte ich aber jetzt ein bookpart herum:

Zitat\bookpart {
 
 
 
 
  global = {
    \key c \major
    \time 4/4
  }
 
  violin = \relative c'' {
    \global
    a
   
  }
 
  \score {
    \violin
   
  }
 
 
 
}

Dann bekomme ich folgende Fehlermeldungen:

ZitatC:/Users/STEPHA~1/AppData/Local/Temp/frescobaldi-zrig36vy/tmp4mqaguub/document.ly:8:3: Fehler: syntax error, unexpected SYMBOL
 
  global = {

C:/Users/STEPHA~1/AppData/Local/Temp/frescobaldi-zrig36vy/tmp4mqaguub/document.ly:13:3: Fehler: syntax error, unexpected SYMBOL
 
  violin = \relative c'' {

C:/Users/STEPHA~1/AppData/Local/Temp/frescobaldi-zrig36vy/tmp4mqaguub/document.ly:14:5: Fehler: Ungültige Fluchtsequenz: »\global«
   
    \global

C:/Users/STEPHA~1/AppData/Local/Temp/frescobaldi-zrig36vy/tmp4mqaguub/document.ly:14:5: Fehler: Textzeichen außerhalb von Textbeschriftungs- oder \lyricmode-Umgebung
   
    \global

C:/Users/STEPHA~1/AppData/Local/Temp/frescobaldi-zrig36vy/tmp4mqaguub/document.ly:20:5: Fehler: Ungültige Fluchtsequenz: »\violin«
   
    \violin

C:/Users/STEPHA~1/AppData/Local/Temp/frescobaldi-zrig36vy/tmp4mqaguub/document.ly:20:5: Fehler: Textzeichen außerhalb von Textbeschriftungs- oder \lyricmode-Umgebung
   
    \violin

Was ist falsch?
Titel: Antw:Problem mit bookpart
Beitrag von: thomas am Montag, 19. August 2024, 16:14
bookpart nur um score herum

\version "2.24.4"

global = {
  \key c \major
  \time 4/4
}

violin = \relative c'' {
  \global
  a
}


\bookpart {

  \score {
    \violin
  }

}
Titel: Antw:Problem mit bookpart
Beitrag von: Hilflos-im-Code am Montag, 19. August 2024, 18:29
Danke. Stimmt, löst aber mein Problem nicht. Ich will mehrere Stücke in einem bookpart zusammenfassen.
Titel: Antw:Problem mit bookpart
Beitrag von: thomas am Dienstag, 20. August 2024, 10:12
\version "2.24.4"

global = {
  \key c \major
  \time 4/4
}

violin = \relative c'' {
  \global
  a
}

violinB = \relative c'' {
  \global
  b
}


\bookpart {

  \score {
    \violin
  }
 
  \score {
    \violinB
  }

}

Titel: Antw:Problem mit bookpart
Beitrag von: Hilflos-im-Code am Dienstag, 20. August 2024, 12:31
Danke. Letztendlich geht es um eine Workflowfrage, ich habe viele Stücke, die ich nach Kategorieen sortiere und dann im bookpart zusammenfassen will, aber dann noch einmal sortieren muss. Bei deinem Beispiel dachte ich mir, das Leben wird ganz praktisch, aber Pustekuchen.


Dieses Beispiel zeigt, wo das Problem liegt.
\version "2.24.4"

global = {
  \key c \major
  \time 4/4
}

violin = \relative c'' {
  \global
  a
}

violinB = \relative c'' {
  \global
  b
}


\bookpart {

  \score {
    \violin
  }
 


}

\bookpart {

 
 
  \score {
    \violinB
  }

}