• Willkommen im Forum „Archiviertes Lilypond Forum (2017)“.
 

Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter lilypondforum.de zu finden.
This is the archive of the old forum (until March 2017). You can find the current forum at lilypondforum.de.

Hauptmenü

Eigener Filename? (GELÖST)

Begonnen von ingmar, Sonntag, 15. Mai 2016, 20:16

Vorheriges Thema - Nächstes Thema

ingmar

Hallo,

weiß ein Lilypond-File, wie es selber heißt? Oder kann man das mit scheme irgendwie herauskriegen und anzeigen?

Gruß, : - )
--ingmar

harm6

Ja.

#(write-me "file-name " (ly:parser-output-name))

Siehe auch:
http://lilypond.org/doc/v2.19/Documentation/notation/output-file-names

Gruß,
  Harm

ingmar


Lilysetter

Ich fand auch noch (vermutlich werden damit auch die Fehlermeldungen im Logfile ausgegeben):
ly:input-both-locations sip [Function]
Return input location in sip as (file-name first-line first-column last-line last-column).

ly:input-file-line-char-column sip [Function]
Return input location in sip as (file-name line char column).

Aber frage mich nicht, was sip ist. Bestimmt kann man daraus den Dateinamen extrahieren.

Dann gibt es noch:
ly:find-file name [Function]
Return the absolute file name of name, or #f if not found.
Das sollte den Namen samt kompletten Pfad ausgeben.

Können die Experten bitte daraus / damit einen funktionierenden Code (komplette Beispieldatei) zur Verfügung stellen?