| Re: [frogs] Picking up contents of \paper \layout and \midi blocks in Scheme |
[ Thread Index | Date Index | More lilynet.net/frogs Archives ]
|
Hi Reinhold, I'm trying to get hold of this stuff in a new routine called from print-book-with in lily-library.scm so I can generate a {base}[-[output-suffix]] name for the .mid(i) files in the score or bookpart block. (define (print-book-with parser book process-procedure) (let* ((paper (ly:parser-lookup parser '$defaultpaper)) ;; want to get the innermost \paper here instead (layout (ly:parser-lookup parser '$defaultlayout)) ;; want to get the innermost \layout here instead (midi (ly:parser-lookup parser '$defaultmidi)) ;; want to get the innermost \midi here instead (base (ly:parser-output-name parser)) ;; ^^^^^^^^^^^^^^ ;; P.S. will this solve your TODO in orchestrallily, line 604 to get a filename for the .toc file? (outfile-name (get-outfile-name parser base paper midi)) ) (process-procedure book paper layout outfile-name) )) Cheers, Ian Hulin Reinhold Kainhofer wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Samstag, 27. Juni 2009 15:27:08 schrieb Ian Hulin: |
| Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |