Urs Liska: ... > In other words: If b.ily includes c.ily can I know from within c.ily > that it was b.ily who included me? ...
Perhaps something like, aria.ly: \version "2.18.0" \include "score_glb.ily" aria_ily = ##f pitch_voa = as, pitch_vob = \pitch_voa %pitch_vaa = \pitch_voa %pitch_vab = \pitch_voa pitch_alt = \pitch_voa pitch_co = \pitch_voa mus_alt = { \clef "treble" } #(if aria_ily (display "Yes\n") (display "no\n")) \include "aria.ily" #(if aria_ily (display "Yes\n") (display "no\n")) ... //// aria.ily: aria_ily = ##t ... /// $ make aria.ps echo '\include' \"../include/S.ly\" > aria.lys echo '\include' \"aria.ly\" >> aria.lys lilypond --ps aria.lys GNU LilyPond 2.19.16 Processing `aria.lys' Parsing...no Yes ... /// I don't know of any way to check if aria_ily is defined or not. Tried with #(if (defined? aria_ily) (display "Yes\n") (display "no\n")) but it gives: aria.ly:15:2: error: GUILE signaled an error for the expression beginning here # (if (defined? aria_ily) (display "Yes\n") (display "no\n")) Unbound variable: aria_ily no Regards, /Karl Hammar ----------------------------------------------------------------------- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user