Different noteheads left/right to the stem

2023-03-02 Thread József Pap
Hi all,

Is there a way to print different noteheads to the left and right side of
the stem? I have a custom notehead stencil function already, but I can't
seem to obtain the necessary information (i.e. whether the notehead will go
on left/right side of the stem) from the stencil's scope. I can access the
stem grob and read its direction, but it isn't sufficient, since crowded
chords have noteheads on both sides.

Thanks for any tips in advance,
Jozsef


Re: PNG output

2023-03-02 Thread Jean Abou Samra
Le jeudi 02 mars 2023 à 15:11 -0600, jschlom...@astound.net a écrit :
> I do want multiple pages, i.e. a separate file for each page. I tried the 
> script idea, and it is working great! I have exactly what I need. I will try 
> the ‘tall-page-formats’ option when I upgrade to 2.24.

Note that `-dtall-page-formats` will give you one single image with all pages 
concatenated. For separate pages, you want `-dseparate-page-formats`. (The 
basic purpose of that option is to set separate-page output for PDF, but it 
works with PNG as well, although you usually don't use it for PNG since `--png` 
does the same thing.)


signature.asc
Description: This is a digitally signed message part


RE: PNG output

2023-03-02 Thread jschlomann
I do want multiple pages, i.e. a separate file for each page. I tried the 
script idea, and it is working great! I have exactly what I need. I will try 
the ‘tall-page-formats’ option when I upgrade to 2.24.

Thank you both!

John

 

From: Jean Abou Samra  
Sent: Thursday, March 2, 2023 3:03 PM
To: K. Blum ; lilypond-user@gnu.org; jschlom...@astound.net
Subject: Re: PNG output

 

Le jeudi 02 mars 2023 à 15:52 +0100, K. Blum a écrit :

Hi John,

Am 02.03.2023 um 15:16 schrieb lilypond-user-requ...@gnu.org 
 :

Is there any way to effect a "-fpng" using Scheme in an input file?

some time ago I asked for help for a similar problem.
This has been working for me:

% -
\version "2.24.1"
#(ly:set-option 'resolution 300)
#(ly:set-option 'tall-page-formats 'png)
{c'}
% -

But you will need Ly 2.23.5 or newer.
If you want to use lilypond-book-preamble.ly for cropped images, use
separate-page-formats instead of tall-page-formats.

Ah yes, that's right. For PNG output, normal output and separate-page output 
are more or less the same (since PNG files don't have multiple pages), so you 
can do that.



Re: Harp Pedal Spanner

2023-03-02 Thread Alexandre Loomis
That works perfectly, thanks!

Alex

On Thu, Mar 2, 2023 at 1:34 PM Jean Abou Samra  wrote:

> Le jeudi 02 mars 2023 à 12:11 -0700, Alexandre Loomis a écrit :
>
> Hi,
>
> I'm having trouble defining a harp pedal spanner. I'd like to be able to
> write code like
>
> \relative c' { f4 _\startPedal "F♮" g fes \endPedal "♭" }
>
> and get as output the notes, with F♮ below the f natural, ♭ below the f
> flat, and a line connecting the markups. So far the closest I've been able
> to get is
>
> \relative c' { \startPedal "F♮" \endPedal "♭" f4 _\startTextSpan g fes
> \stopTextSpan }
>
> where startPedal and endPedal are defined as
>
> startPed =
> #(define-music-function
>   (text)
>   (markup?)
>   #{
> \once \override TextSpanner.dash-fraction = #1.0
> \once \override TextSpanner.bound-details.left.text = #text
> \once \override TextSpanner.bound-details.left.stencil-align-dir-y =
> #CENTER
> \once \override TextSpanner.font-shape = #'upright
>   #}
> )
>
> endPed =
> #(define-music-function
>   (text)
>   (markup?)
>   #{
> \once \override TextSpanner.bound-details.right.text = #text
> \once \override TextSpanner.bound-details.right.stencil-align-dir-y =
> #CENTER
>   #}
> )
> This produces the correct output, but needing to call all four of
> startPed, endPed, startTextSpan, and stopTextSpan is inconveniently verbose.
>
> With \override, you need to put the command before the note, but LilyPond
> also has \tweak, which attaches to the event itself, so you can do
>
> \version "2.24.1"
>
> startPed =
> #(define-music-function (start-text end-text) (markup? markup?)
>   #{
> \tweak dash-fraction #1.0
> \tweak bound-details.left.text #start-text
> \tweak bound-details.left.stencil-align-dir-y #CENTER
> \tweak font-shape #'upright
> \tweak bound-details.right.text #end-text
> \tweak bound-details.right.stencil-align-dir-y #CENTER
> \startTextSpan
>   #})
>
> endPed = \stopTextSpan
>
> \relative c' { f4 _\startPed "F♮" "♭" g fes \endPed }
>
> Note that this isn't exactly your wished syntax because the end text is
> given to \startPed, not to \endPed. There are no built-in ways to
> override the properties of a spanner at a later point than the moment it
> has been created in, so it would require custom Scheme code to make your
> original syntax work. Unless you really want that, I suggest you just use
> this syntax, which isn't more verbose than yours.
>
> HTH,
>
> Jean
>


Re: PNG output

2023-03-02 Thread Jean Abou Samra
Le jeudi 02 mars 2023 à 15:52 +0100, K. Blum a écrit :
> Hi John,
> 
> Am 02.03.2023 um 15:16 schrieb 
> [lilypond-user-requ...@gnu.org](mailto:lilypond-user-requ...@gnu.org):
> 
> > Is there any way to effect a "-fpng" using Scheme in an input file?
> 
> 
> some time ago I asked for help for a similar problem.  
> This has been working for me:
> 
> % -  
> \version "2.24.1"  
> #(ly:set-option 'resolution 300)  
> #(ly:set-option 'tall-page-formats 'png)  
> {c'}  
> % -
> 
> But you will need Ly 2.23.5 or newer.  
> If you want to use lilypond-book-preamble.ly for cropped images, use  
> separate-page-formats instead of tall-page-formats.


Ah yes, that's right. For PNG output, normal output and separate-page output 
are more or less the same (since PNG files don't have multiple pages), so you 
can do that.


signature.asc
Description: This is a digitally signed message part


Re: Harp Pedal Spanner

2023-03-02 Thread Jean Abou Samra
Le jeudi 02 mars 2023 à 12:11 -0700, Alexandre Loomis a écrit :
> Hi,
> 
> I'm having trouble defining a harp pedal spanner. I'd like to be able to 
> write code like  
>   
> \relative c' { f4 _\startPedal "F♮" g fes \endPedal "♭" }  
>   
> and get as output the notes, with F♮ below the f natural, ♭ below the f flat, 
> and a line connecting the markups. So far the closest I've been able to get 
> is  
>   
> \relative c' { \startPedal "F♮" \endPedal "♭" f4 _\startTextSpan g fes 
> \stopTextSpan }  
>   
> where startPedal and endPedal are defined as  
>   
> startPed =  
> #(define-music-function  
>   (text)  
>   (markup?)  
>   #{  
>     \once \override TextSpanner.dash-fraction = #1.0  
>     \once \override TextSpanner.bound-details.left.text = #text  
>     \once \override TextSpanner.bound-details.left.stencil-align-dir-y = 
> #CENTER  
>     \once \override TextSpanner.font-shape = #'upright  
>   #}  
> )  
>   
> endPed =  
> #(define-music-function  
>   (text)  
>   (markup?)  
>   #{  
>     \once \override TextSpanner.bound-details.right.text = #text  
>     \once \override TextSpanner.bound-details.right.stencil-align-dir-y = 
> #CENTER  
>   #}  
> )  
> This produces the correct output, but needing to call all four of startPed, 
> endPed, startTextSpan, and stopTextSpan is inconveniently verbose.


With `\override`, you need to put the command before the note, but LilyPond 
also has `\tweak`, which attaches to the event itself, so you can do

```
\version "2.24.1"

startPed =
#(define-music-function (start-text end-text) (markup? markup?)
  #{
\tweak dash-fraction #1.0
\tweak bound-details.left.text #start-text
\tweak bound-details.left.stencil-align-dir-y #CENTER
\tweak font-shape #'upright
\tweak bound-details.right.text #end-text
\tweak bound-details.right.stencil-align-dir-y #CENTER
\startTextSpan
  #})

endPed = \stopTextSpan

\relative c' { f4 _\startPed "F♮" "♭" g fes \endPed }
```

Note that this isn't exactly your wished syntax because the end text is given 
to `\startPed`, not to `\endPed`. There are no built-in ways to override the 
properties of a spanner at a later point than the moment it has been created 
in, so it would require custom Scheme code to make your original syntax work. 
Unless you really want that, I suggest you just use this syntax, which isn't 
more verbose than yours.

HTH,

Jean


signature.asc
Description: This is a digitally signed message part


Re: Refrain text shown only once

2023-03-02 Thread bernhard kleine

Am 02.03.2023 um 20:25 schrieb bernhard kleine:

Am 02.03.2023 um 16:44 schrieb David Wright:

\repeat unfold 11 ""


Many thanks


The complete score, the template from Frescobaldi.

\version "2.22.2"
\language "deutsch"

\header {
  title = "Mir trinket ein Viertele"
  composer = "Kal-Heinz Steinfeld"
  poet = "Franz Josef Ullmer"
  tagline = "Bernhard Kleine 2023"
}

\paper {
  #(set-paper-size "a4")
}

global = {
  \key c \major
  \numericTimeSignature
  \time 3/4
  \partial 4
  \tempo "Ländler Tempo"
}

soprano = \relative c'' {
  \global
  % Die Noten folgen hier.
  g4 | g f d | c e g |a f a | g2 a8 h | c4 g g a f f | d g f d2 g8 g |
c4 g g a f f d g h | c2 r4 \break
  c, c8 d e4 | e d d | d d8 e f4| f e e \break| g2 c4 | a2. | d,2 g4
|e2. |
  c4 c8 d e4 | e d d | d d8 e f4| f e e | g2 c4 | h2 a4 | g2.~ | g4
r\bar "|."
}

alto = \relative c'' {
  \global
  % Die Noten folgen hier.
  g4 | g f d | c e g |f f f | g2 f8 d | c4 c c | c c c | h e d | c2 g'8
g | c,4 c c | c c c | h h h | c2 r4
  c c8 d e4 | e d d | d d8 e f4| f e e |e2 e4 f2. | d2 d4 | c2.
  c4 c8 d e4 | e d d | d d8 e f4| f e e |e2 e4 | d2 c4 | h2.~ | h4 r
}

tenor = \relative c' {
  \global
  % Die Noten folgen hier.
  g4 | g f d | c4 e g | a f a | g2 f8 g | e4 g g | f a a | g g g | g2
g8 g | e4 g g | f a a | g g f | e2 r4
  c4 c8 d e4  | e d d | d d8 e f4| f e e | g2 c4 | c2. h2 h4 g2.
  c,4 c8 d e4 | e d d | d d8 e f4| f e e | g2 g4 | fis2 fis4 g2.~ g4 r
}

bass = \relative c' {
  \global
  % Die Noten folgen hier.
  g4 | g f d | c4 e g | f f f | g2 f8 f | e4 e e | f f f| g g g, | c2
g'8 g | e4 e e | f f f| g g g, | c2 r4
  c4 c8 d e4  | e d d | d d8 e f4| f e e | c2 c4 f2. g2 g4 c,2.
  c4 c8 d e4  | e d d | d d8 e f4| f e e | c2 c4 d2 d4 | < d~ g,~ >2. <
d g,>4 r
}

verseOne = \lyricmode {
  % Liedtext folgt hier.
  \repeat unfold 35 ""
  \set stanza = "1." Wenn du a -- mol d'Nos voll hoscht, und s'Le -- be
isch dir a Lascht,
  gib net auf, pfeit doch drauf!
  Schmeiß no net d'r Löf -- fel weg, i mein, des hot gar kein Zweck,
hör, was i' dir sag':
}

verseTwo = \lyricmode {
  \hide { Mir trin -- ket a Vier -- te -- le o -- der au zwei
  und im Nu gan -- get Kum -- mer und Sor -- gen vor -- bei
  und im Nu gan -- get Kum -- mer und Sor -- gen vor -- bei! }
  \set stanza = "2."
  Wenn di a -- mols Zahn -- weh plagt und dir na dei Dok -- tor sagt:
Ach, du Graus, der muß raus!
  Daß di net trifft glei' dr Schlag an so'n a -- ma Schre -- ckens --
dag, hör, was i' dir sag':

}

verseThree = \lyricmode {
  \repeat unfold 35 ""
  \set stanza = "3."
  Hascht du mit dem Schätz -- le Krach, no sei doch g'scheit und gib nach,
  schimpf net glei', 's_goht vor -- bei!
  Auf Re -- ge folgt Son -- nen -- schein, sollscht im -- mer mei
Schätz -- le sei,
  hör, was i' dir sag':

}

\score {
  \new ChoirStaff <<
    \new Staff \with {
  midiInstrument = "choir aahs"
  instrumentName = \markup \center-column { "Sopran" "Alt" }
    } <<
  \new Voice = "soprano" { \voiceOne \soprano }
  \new Voice = "alto" { \voiceTwo \alto }
    >>
    \new Lyrics \with {
  \override VerticalAxisGroup #'staff-affinity = #CENTER
    } \lyricsto "soprano" \verseOne
    \new Lyrics \with {
  \override VerticalAxisGroup #'staff-affinity = #CENTER
    } \lyricsto "soprano" \verseTwo
    \new Lyrics \with {
  \override VerticalAxisGroup #'staff-affinity = #CENTER
    } \lyricsto "soprano" \verseThree
    \new Staff \with {
  midiInstrument = "choir aahs"
  instrumentName = \markup \center-column { "Tenor" "Bass" }
    } <<
  \clef bass
  \new Voice = "tenor" { \voiceOne \tenor }
  \new Voice = "bass" { \voiceTwo \bass }
    >>
  >>
  \layout { }
  \midi {
    \tempo 4=100
  }
}


--

GPG Fingerabdruck: C76F A02E D525 7409
BEGIN:VCARD
VERSION:4.0
N:Dr. Kleine;Bernhard;;;
EMAIL;PREF=1:bernhard.kle...@gmx.net
TEL;VALUE=TEXT:0049 160 998831
ADR:;;Steinbühlweg 1;Lenzkirch;;D-79853;
NOTE:Ich mache auf mein Buch "670 Falterarten im Hochschwarzwald" aufwerksa
 m (aktuell vergriffen).
END:VCARD


Re: Refrain text shown only once

2023-03-02 Thread bernhard kleine

Am 02.03.2023 um 16:44 schrieb David Wright:

\repeat unfold 11 ""


Many thanks

--
*Steinbühlweg 1 79853 Lenzkirch*
www.urseetal.net
Ich mache auf mein Buch aufmerksam: 670 Falterarten im Hochschwarzwald
(aktuell vergriffen)

GPG Fingerabdruck: C76F A02E D525 7409
BEGIN:VCARD
VERSION:4.0
N:Dr. Kleine;Bernhard;;;
EMAIL;PREF=1:bernhard.kle...@gmx.net
TEL;VALUE=TEXT:0049 160 998831
ADR:;;Steinbühlweg 1;Lenzkirch;;D-79853;
NOTE:Ich mache auf mein Buch "670 Falterarten im Hochschwarzwald" aufwerksa
 m (aktuell vergriffen).
END:VCARD


Harp Pedal Spanner

2023-03-02 Thread Alexandre Loomis
Hi,

I'm having trouble defining a harp pedal spanner. I'd like to be able to
write code like

\relative c' { f4 _\startPedal "F♮" g fes \endPedal "♭" }

and get as output the notes, with F♮ below the f natural, ♭ below the f
flat, and a line connecting the markups. So far the closest I've been able
to get is

\relative c' { \startPedal "F♮" \endPedal "♭" f4 _\startTextSpan g fes
\stopTextSpan }

where startPedal and endPedal are defined as

startPed =
#(define-music-function
  (text)
  (markup?)
  #{
\once \override TextSpanner.dash-fraction = #1.0
\once \override TextSpanner.bound-details.left.text = #text
\once \override TextSpanner.bound-details.left.stencil-align-dir-y =
#CENTER
\once \override TextSpanner.font-shape = #'upright
  #}
)

endPed =
#(define-music-function
  (text)
  (markup?)
  #{
\once \override TextSpanner.bound-details.right.text = #text
\once \override TextSpanner.bound-details.right.stencil-align-dir-y =
#CENTER
  #}
)

This produces the correct output, but needing to call all four of startPed,
endPed, startTextSpan, and stopTextSpan is inconveniently verbose.

Thanks,
Alex


Re: Refrain text shown only once

2023-03-02 Thread David Wright
On Thu 02 Mar 2023 at 15:35:05 (+0100), bernhard kleine wrote:
> 
> When a refrain is at the end of the score, you may omit it in the
> strophes when it is repeated. The problem I have is a refrain infront of
> the strophes. googling lilypond text pauses did not give any useful
> information. Trying \omit {refrain} didnot work. Please help me with the
> problem.

  verseTwo = \lyricmode {
\repeat unfold 11 ""
\set stanza = "2."
Wenn di a -- mols Zahn -- weh plagt und
  }

Cheers,
David.



RE: PNG output

2023-03-02 Thread jschlomann
Interesting, thanks! I should move up to 2.24 anyhow.
John

-Original Message-
From: K. Blum  
Sent: Thursday, March 2, 2023 8:53 AM
To: lilypond-user@gnu.org; jschlom...@astound.net; Jean Abou Samra 
; benbigno...@gmx.de
Subject: Re: PNG output

Hi John,

Am 02.03.2023 um 15:16 schrieb lilypond-user-requ...@gnu.org:
> Is there any way to effect a "-fpng" using Scheme in an input file?

some time ago I asked for help for a similar problem.
This has been working for me:

% -
\version "2.24.1"
#(ly:set-option 'resolution 300)
#(ly:set-option 'tall-page-formats 'png) {c'} % 
-

But you will need Ly 2.23.5 or newer.
If you want to use lilypond-book-preamble.ly for cropped images, use 
separate-page-formats instead of tall-page-formats.

Cheers,
Klaus




Re: PNG output

2023-03-02 Thread K. Blum

Hi John,

Am 02.03.2023 um 15:16 schrieb lilypond-user-requ...@gnu.org:

Is there any way to effect a "-fpng" using Scheme in an input file?


some time ago I asked for help for a similar problem.
This has been working for me:

% -
\version "2.24.1"
#(ly:set-option 'resolution 300)
#(ly:set-option 'tall-page-formats 'png)
{c'}
% -

But you will need Ly 2.23.5 or newer.
If you want to use lilypond-book-preamble.ly for cropped images, use
separate-page-formats instead of tall-page-formats.

Cheers,
Klaus



Refrain text shown only once

2023-03-02 Thread bernhard kleine

Hi,

When a refrain is at the end of the score, you may omit it in the
strophes when it is repeated. The problem I have is a refrain infront of
the strophes. googling lilypond text pauses did not give any useful
information. Trying \omit {refrain} didnot work. Please help me with the
problem.


\version "2.22.2"
\language "deutsch"

\header {
  title = "Mir trinket ein Viertele"
  composer = "Kal-Heinz Steinfeld"
  poet = "Franz Josef Ullmer"
  tagline = "Bernhard Kleine 2022"
}

\paper {
  #(set-paper-size "a4")
}

global = {
  \key c \major
  \numericTimeSignature
  \time 3/4
  \partial 4
  \tempo "Ländler Tempo"
}

soprano = \relative c'' {
  \global
  % Die Noten folgen hier.
  g4 | g f d | c e g |a f a | g2 r4\break
  c, c8 d e4 | e d d | d
}


verseOne = \lyricmode {
  \set stanza = "Refrain"
  % Liedtext folgt hier.

  Mir trin -- ket a Vier -- te -- le o -- der au zwei \break

  \set stanza = "1." Wenn du a -- mol d'Nos voll hoscht, und
}

verseTwo = \lyricmode {
  \hide { Mir trin -- ket a Vier -- te -- le o -- der au zwei
  und im Nu gan -- get Kum -- mer und Sor -- gen vor -- bei
  und im Nu gan -- get Kum -- mer und Sor -- gen vor -- bei! }
  \set stanza = "2."
  Wenn di a -- mols Zahn -- weh plagt und dir na dei Dok -- tor sagt:
Ach, du Graus, der muß raus!
  Daß di net trifft glei' dr Schlag an so'n a -- ma Schre -- ckens --
dag, hör, was i' dir sag':

}


verseTwo = \lyricmode {
  \set stanza = "Refrain"
  \hide { Mir trin -- ket a Vier -- te -- le o -- der au zwei }
  \set stanza = "2."
  Wenn di a -- mols Zahn -- weh plagt und
}


\score {
  \new ChoirStaff <<
    \new Staff \with {
  midiInstrument = "choir aahs"
    } <<
  \new Voice = "soprano" { \voiceOne \soprano }
    >>
    \new Lyrics \with {
  \override VerticalAxisGroup #'staff-affinity = #CENTER
    } \lyricsto "soprano" \verseOne
    \new Lyrics \with {
  \override VerticalAxisGroup #'staff-affinity = #CENTER
    } \lyricsto "soprano" \verseTwo
   >>
  \layout { }
  \midi {
    \tempo 4=100
  }
}

Kind regards Bernhard

--


GPG Fingerabdruck: C76F A02E D525 7409
BEGIN:VCARD
VERSION:4.0
N:Dr. Kleine;Bernhard;;;
EMAIL;PREF=1:bernhard.kle...@gmx.net
TEL;VALUE=TEXT:0049 160 998831
ADR:;;Steinbühlweg 1;Lenzkirch;;D-79853;
NOTE:Ich mache auf mein Buch "670 Falterarten im Hochschwarzwald" aufwerksa
 m (aktuell vergriffen).
END:VCARD


RE: PNG file output

2023-03-02 Thread jschlomann
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  
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 
  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).



Re: PNG file output

2023-03-02 Thread Jean Abou Samra
Le jeudi 02 mars 2023 à 08:11 -0600, 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](https://lilypond.org/doc/v2.24/Documentation/usage/command_002dline-usage#basic-command-line-options-for-lilypond)).


signature.asc
Description: This is a digitally signed message part


RE: PNG file output

2023-03-02 Thread jschlomann
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.

 

Thank you for your response, and apologies for missing it initially.

John

 

From: Jean Abou Samra  
Sent: Saturday, February 25, 2023 4:34 PM
To: jschlom...@astound.net
Cc: lilypond-user@gnu.org
Subject: Re: PNG file output

 

Hi,

 

Please consider subscribing to the list 
(https://lists.gnu.org/mailman/listinfo/lilypond-user), else your messages are 
approved manually and you might miss a reply if the person merely replies to 
the list without Ccing you. Thanks.

 





Le 25 févr. 2023 à 18:33, jschlom...@astound.net 
  a écrit :



Is there a way to get png output using some internal setting? #(ly: set-option 
'resolution 300) works fine, but only if I use the -fpng command line option. I 
need to set this conditionally in the .ly file. Any way to do this? Should I be 
looking at guile?

 

 

I'm afraid this can't be done without dirty tricks. Output formats are really 
tied to the command line. However, I think this might be an XY question. Could 
you elaborate on why you want to do this?

 

 



Re: PNG output

2023-03-02 Thread Jean Abou Samra
Le jeudi 02 mars 2023 à 07:12 -0600, jschlom...@astound.net a écrit :
> Is there any way to effect a "-fpng" using Scheme in an input file?  
>  

You already asked that question a week ago and I replied that there isn't. Not 
sure why you're asking again?


signature.asc
Description: This is a digitally signed message part


PNG output

2023-03-02 Thread jschlomann
Is there any way to effect a "-fpng" using Scheme in an input file?

 



Re: Lilypond 2.24.1 convert-ly writes version 2.24.0 to the converted file(s)?!

2023-03-02 Thread Kenneth Wolcott
Now how did I miss that? Face-palm :-)

Thanks,
Ken

On Wed, Mar 1, 2023 at 11:40 PM Mark Knoop  wrote:
>
>
> At 17:41 on 01 Mar 2023, Kenneth Wolcott wrote:
> > Hi;
>
> > I think that convert-ly should write the current version to the
> > converted file(s).
>
> > If that statement is correct, then Lilypond version 2.24.1 writes the
> > older version (2.24.0) to the converted file(s).
>
> Please see the -c, --current-version option to convert-ly.
>
>
> --
> Mark Knoop