Yes "unbound error"-- Unbound variable: system*
The error I get with (system …) is Unsupported SCM value for format: #t I will try the script approach. I’m fairly confident I can get it to work. I just wondered if there was something simple in Scheme I was missing. Thanks for the help, Jean. John From: Jean Abou Samra <j...@abou-samra.fr> Sent: Thursday, March 2, 2023 8:16 AM To: jschlom...@astound.net Cc: lilypond-user@gnu.org Subject: Re: PNG file output Le jeudi 02 mars 2023 à 08:11 -0600, jschlom...@astound.net <mailto:jschlom...@astound.net> a écrit : Jean, I’ve found your response, and I’ve updated my list subscription to my new email. My reason for wanting this is that I need to generate several types of output based on some other settings in my input file. For example, I need PDF output for print, and PNG output in a couple different resolutions for projection on a screen. This is for use in a church. One thought I had was to spawn another LilyPond so that I could specify command line options based on the settings in my input file. I haven’t been able to get this to work so far, for reasons I don’t understand. I tried this using (system "lilypond -fpng file.ly"). I also tried Guile’s system*, but got an unbind error. I’m using 2.22.2. Did you mean “unbound error”? But what is the error precisely? Perhaps a better approach would be to define whatever settings you have outside of the LilyPond file, in a script invoking LilyPond, add compilation flags based on them, and also pass them to LilyPond using the --evaluate option (https://lilypond.org/doc/v2.24/Documentation/usage/command_002dline-usage#basic-command-line-options-for-lilypond).