[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Identify included files
From: |
Timothy Lanfear |
Subject: |
Re: Identify included files |
Date: |
Tue, 26 May 2020 17:09:49 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 26/05/2020 16:15, Fr. Samuel Springuel wrote:
I’ve already accounted for this in my most recent version of
parse-only.ly. It’s not as straight forward as ly:source-files but by
looking at (ly:get-option 'backend), (ly:get-option 'aux-files),
(ly:parser-output-name) and (ly:output-formats), it is possible to
determine which output files lilypond is going to produce (except for
the midi, I have yet to find any option or function which will
indicate that a midi is being produced). The applicable code is:
Maybe this code can give some hints on how to decide if midi is being
produced.
\version "2.20.0"
#(define (outputdeftype def)
(cond
((ly:output-def-lookup def 'is-layout #f) (display "\nlayout"))
((ly:output-def-lookup def 'is-midi #f) (display "\nmidi"))))
\book {
\score {
{ c'1 }
\layout{}
\midi{}
}
#(for-each
(lambda (score) (for-each outputdeftype (ly:score-output-defs score)))
(ly:book-scores $current-book))
}
--
Timothy Lanfear, Bristol, UK.
- Re: Identify included files, (continued)
- Re: Identify included files, David Wright, 2020/05/25
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/25
- Re: Identify included files, Wols Lists, 2020/05/25
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/25
- Re: Identify included files, Matt Wallis, 2020/05/26
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/26
- Re: Identify included files,
Timothy Lanfear <=
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/26
- Re: Identify included files, David Wright, 2020/05/26
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/27
- Re: Identify included files, David Wright, 2020/05/21
- Re: Identify included files, antlists, 2020/05/21
- Re: Identify included files, David Wright, 2020/05/21
- Re: Identify included files, Wols Lists, 2020/05/22
- Re: Identify included files, Michael Gerdau, 2020/05/23
- Re: Identify included files, antlists, 2020/05/23
- Re: Identify included files, David Wright, 2020/05/23