Deutsches Lilypond Forum (Archiv)
Allgemein => Fragen zu Funktionen => Thema gestartet von: ingmar am Sonntag, 15. Mai 2016, 20:16
-
Hallo,
weiß ein Lilypond-File, wie es selber heißt? Oder kann man das mit scheme irgendwie herauskriegen und anzeigen?
Gruß, : - )
--ingmar
-
Ja.
#(write-me "file-name " (ly:parser-output-name))
Siehe auch:
http://lilypond.org/doc/v2.19/Documentation/notation/output-file-names (http://lilypond.org/doc/v2.19/Documentation/notation/output-file-names)
Gruß,
Harm
-
Danke!
--ingmar
-
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?