If I use (display location) in a Scheme function I get an output like:
#location
/home/uliska/git/bfsc/fried/das-trunkne-lied/parts/bassclarinet/02.ily:40:3
How can I access the content of the location (or better: it's
constituents), for example to extract the file name and a part of the
Hi Urs,
you can use ly:input-file-line-char-column to get a list containing the
file-path and line- and column-number.
In openlilylib I placed a function inside
/scheme-lib/lalily/parser-location.scm - location-extract-path - which
returns the absolute path of the location.
With lalily I
Am 24.10.2014 15:29, schrieb Jan-Peter Voigt:
Hi Urs,
you can use ly:input-file-line-char-column to get a list containing
the file-path and line- and column-number.
In openlilylib I placed a function inside
/scheme-lib/lalily/parser-location.scm - location-extract-path - which
returns the