Deutschsprachiges LilyPond-Forum

Allgemeine Fragen und Probleme => Fragen und Probleme aller Art => Thema gestartet von: thomas am Sonntag, 2. März 2025, 16:25

Titel: Relative Stauchung oder Streckung ausgeben
Beitrag von: thomas am Sonntag, 2. März 2025, 16:25
Hallo,

kann Lilypond ausgeben wie stark oder schwach eine Notenzeile gestreckt oder gestaucht wurde?

\version "2.24.4"

{ c'1 c'1 c'1 c'1 c'1 c'1 c'1
  \break
  c'1
  \break 
  c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 }

In diesem Fall könnte die Ausgabe auf der Kommandozeile oder in einem Logfile etwa so aussehen:

Zeile 1: -10
Zeile 2: -80
Zeile 3: +20

je nachdem wie stark vom Ideal abgewichen wird.

Gruß Thomas
Titel: Antw:Relative Stauchung oder Streckung ausgeben
Beitrag von: Manuela am Mittwoch, 5. März 2025, 11:47
Hallo, jetzt möchte ich doch etwas schreiben. Ich glaube, niemand weiß genau, was eigentlich gemeint ist (was ist das Ideal), deswegen gibt es keine Antwort.

Vielleicht hilft dir ja die Dokumentation weiter: Überblick über horizontale Abstände (https://lilypond.org/doc/v2.25/Documentation/notation/horizontal-spacing-overview)
Titel: Antw:Relative Stauchung oder Streckung ausgeben
Beitrag von: Lilysetter am Mittwoch, 5. März 2025, 13:43
Was mit ideal gemeint ist, ist für mich klar:  das, was mit Flatterrand gesetzt (ragged-right) ist.
Eine weitere gute Lektüre ist https://lilypond.org/doc/v2.25/Documentation/notation/proportional-notation
Wie man das prozentual ausgeben könnte?  Da bin ich überfragt.
Titel: Antw:Relative Stauchung oder Streckung ausgeben
Beitrag von: thomas am Donnerstag, 6. März 2025, 14:24
Zitat von: Lilysetter am Mittwoch,  5. März 2025, 13:43Was mit ideal gemeint ist, ist für mich klar:  das, was mit Flatterrand gesetzt (ragged-right) ist.

Ja.

Stauchung-1.png

Ich hab mal ein paar Pixel gezählt und ausgerechnet welche Zahlen rauskommen würden.

Dass Lilypond die Zahlen intern kennt, davon gehe ich jetzt mal aus, sonst könnte es ja keinen ordentlichen Zeilenumbruch machen. Die Frage ist, ob man an die Zahlen kommt, ohne den Quellcode zu ändern.