Re: Scheme: Syntax for storing a variable in an alist

2020-10-18 Thread Matthew Fong
Hello Aaron, This makes sense. I'll need to be more watchful of mixing Scheme and LilyPond syntax. That's why I couldn't find anything about dot notation the guile manual! Thank you for the snippet. That is helpful should I need to nest any deeper. Many thanks, mattfong On Sun, Oct 18, 2020 at

Re: Scheme: Syntax for storing a variable in an alist

2020-10-18 Thread Aaron Hill
On 2020-10-18 5:36 pm, Matthew Fong wrote: Hello everyone, I am likely in over my head with nesting pairs. I read the documentation link from Jean, and I don't completely understand the internal representation of this nesting in scheme. dictHymn.HymnOne.ID = "210" dictHymn.HymnOne.Meter =

Re: Scheme: Syntax for storing a variable in an alist

2020-10-18 Thread Matthew Fong
Maybe I ought to avoid such complexity. I constructed an example in guile, and it's unclear how I access data for n hymns arranged this way. Scheme is definitely not like Python. guile> ( define b '((1 . '((11 . "aa") (22 . "bb") (33 . "cc"))) (2 . '((44 . "dd") (55 . "ee") (66 .

Re: Scheme: Syntax for storing a variable in an alist

2020-10-18 Thread Matthew Fong
Hello everyone, I am likely in over my head with nesting pairs. I read the documentation link from Jean, and I don't completely understand the internal representation of this nesting in scheme. dictHymn.HymnOne.ID = "210" dictHymn.HymnOne.Meter = "8.8.8.8" dictHymn.HymnTwo.ID = "344"

Re: How To Selectively Show a Staff

2020-10-18 Thread David Wright
On Sun 18 Oct 2020 at 23:43:18 (+0200), Jean Abou Samra wrote: > > Le 18/10/2020 à 17:40, Marc Shepherd a écrit : > > In a score where "RemoveAllEmptyStaves" is set, a staff will > > normally not show in a system where it has all rests. > > > > Sometimes, you may /want/a staff (temporarily) to

Re: Scheme: Syntax for storing a variable in an alist

2020-10-18 Thread David Kastrup
Jean Abou Samra writes: > Le 18/10/2020 à 22:10, Matthew Fong a écrit : > >> Hello Aaron and Jean, >> >> Many thanks for pointing out the finer points of syntax of Scheme >> vs. LilyPond. >> >> I appreciate the Scheme quoting reference, and the syntactic >> sugar. Still so much more to learn

Re: newbie: help with Scheme functions

2020-10-18 Thread Dave Seidel
Thanks, Aaron. On Sun, Oct 18, 2020 at 4:46 PM Aaron Hill wrote: > On 2020-10-18 1:38 pm, Dave Seidel wrote: > > Very cool, thanks! I'm curious -- could aBook and aBookPart have been > > written as a lambda, or is it cleaner to use a void function? > > (Re-adding the mailing list on the thread

Re: How To Selectively Show a Staff

2020-10-18 Thread Jean Abou Samra
Le 18/10/2020 à 17:40, Marc Shepherd a écrit : In a score where "RemoveAllEmptyStaves" is set, a staff will normally not show in a system where it has all rests. Sometimes, you may /want/a staff (temporarily) to appear on a specific system, even though it contains all rests. What’s the

Re: stem length in a three voice setting

2020-10-18 Thread bart deruyter
@Knute: I have, only one is listed, 2.20.0 and yet frescobaldi enters 2.19.40 when using its snippet. but thanks for the suggestion of course! Bart https://esmiltania.be On Twitter On Google+ Op zo 18

Re: stem length in a three voice setting

2020-10-18 Thread Knute Snortum
In Frescobaldi, have you tried Edit > Preferences > LilyPond Preferences? You can have multiple versions and set the Frescobaldi to use the version closest to the one in the input file. --- Knute Snortum (via Gmail) On Sun, Oct 18, 2020 at 1:28 PM bart deruyter wrote: > Hey, > > @Aaron: thank

Re: newbie: help with Scheme functions

2020-10-18 Thread Aaron Hill
On 2020-10-18 1:38 pm, Dave Seidel wrote: Very cool, thanks! I'm curious -- could aBook and aBookPart have been written as a lambda, or is it cleaner to use a void function? (Re-adding the mailing list on the thread for visibility.) To get the benefits of LilyPond's Scheme functions, you

Re: newbie: help with Scheme functions

2020-10-18 Thread Aaron Hill
On 2020-10-18 7:52 am, Dave Seidel wrote: Having articulated the question, I figured out that apparently one can't return a \bookpart from a Scheme function, but it's ok to return a \score, so I am restructuring my code. You cannot return a \book or \bookpart but you can do this:

Re: stem length in a three voice setting

2020-10-18 Thread bart deruyter
Hey, @Aaron: thank you that's what I'm looking for, thanks! The version that is posted is not the one that is used, for some reason, frescobaldi always enters an older lilypond version than the one that is installed and used, I have no clue why. The one that is running is actually 2.20.0. But

Re: Scheme: Syntax for storing a variable in an alist

2020-10-18 Thread Jean Abou Samra
Le 18/10/2020 à 22:10, Matthew Fong a écrit : Hello Aaron and Jean, Many thanks for pointing out the finer points of syntax of Scheme vs. LilyPond. I appreciate the Scheme quoting reference, and the syntactic sugar. Still so much more to learn here! You live and learn; I learnt about the

Re: Scheme: Syntax for storing a variable in an alist

2020-10-18 Thread Matthew Fong
Hello Aaron and Jean, Many thanks for pointing out the finer points of syntax of Scheme vs. LilyPond. I appreciate the Scheme quoting reference, and the syntactic sugar. Still so much more to learn here! Many thanks, mattfong On Sun, Oct 18, 2020 at 12:58 PM Aaron Hill wrote: > On

Re: stem length in a three voice setting

2020-10-18 Thread Aaron Hill
On 2020-10-18 12:37 pm, bart deruyter wrote: Hello, I'm trying to typeset a score of Sor, a piece with three voices and have trouble finding a way to shorten the stem length of the middle voice to make it fit to be between the outer voices. No matter how low I set the number of Stem.length, it

Re: Scheme: Syntax for storing a variable in an alist

2020-10-18 Thread Aaron Hill
On 2020-10-18 12:42 pm, Matthew Fong wrote: Hello everyone, I am having a bit of an issue storing a variable in an alist, and I was wondering if you all could point out what I am doing wrong. If I write the string directly, there's no issue retrieving it ... my-alist = #'((1 . "A") (2 .

Re: Scheme: Syntax for storing a variable in an alist

2020-10-18 Thread Jean Abou Samra
Le 18/10/2020 à 21:42, Matthew Fong a écrit : Hello everyone, I am having a bit of an issue storing a variable in an alist, and I was wondering if you all could point out what I am doing wrong. If I write the string directly, there's no issue retrieving it ... my-alist = #'((1  . "A") (2

Re: stem length in a three voice setting

2020-10-18 Thread Kevin Barry
Hi Bart, I'm away from my computer so I can't verify what I'm about to say, but I think that once a note is beamed it is actually the beam that controls the lengths of the stems. I think you need to override the Beam's positions property (if memory serves) to accomplish what you want. Kevin On

Scheme: Syntax for storing a variable in an alist

2020-10-18 Thread Matthew Fong
Hello everyone, I am having a bit of an issue storing a variable in an alist, and I was wondering if you all could point out what I am doing wrong. If I write the string directly, there's no issue retrieving it ... my-alist = #'((1 . "A") (2 . "B") (3 . "C")) value = #(ly:assoc-get 2 my-alist "

stem length in a three voice setting

2020-10-18 Thread bart deruyter
Hello, I'm trying to typeset a score of Sor, a piece with three voices and have trouble finding a way to shorten the stem length of the middle voice to make it fit to be between the outer voices. No matter how low I set the number of Stem.length, it does not shorten. Here is a simplified version

Re: headers, and what include doesn't do

2020-10-18 Thread Jean Abou Samra
Hi, On Sat 17 Oct 2020 at 10:27:10 (+0200), Xavier Scheuer wrote: Thank you Jean, I was not aware either, that it is now (actually since many years now!) possible to use \header before music within \score. This is great and makes more sense (corresponds to user expectation). It would be nice

How To Selectively Show a Staff

2020-10-18 Thread Marc Shepherd
In a score where "RemoveAllEmptyStaves" is set, a staff will normally not show in a system where it has all rests. Sometimes, you may *want* a staff (temporarily) to appear on a specific system, even though it contains all rests. What’s the command or setting to do this? -- Marc Shepherd

Re: newbie: help with Scheme functions

2020-10-18 Thread Dave Seidel
Having articulated the question, I figured out that apparently one can't return a \bookpart from a Scheme function, but it's ok to return a \score, so I am restructuring my code. On Sun, Oct 18, 2020 at 10:28 AM Dave Seidel wrote: > Hi, > > I have a multi-section piece, with a master .ly file

newbie: help with Scheme functions

2020-10-18 Thread Dave Seidel
Hi, I have a multi-section piece, with a master .ly file that uses \include for each of the sections of the piece. Each included file more or less follows the pattern of the string quartet template that ships with Lilypond: a series of macros, one per voice, followed by a \bookpart section that

Re: Left-align the horizontal line that separates footnotes from the body of the score

2020-10-18 Thread Jun Tamura
Thank you, Phil and Pierre, for your really prompt reply. I found the default setting: footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline } Thanks again and best regards. Jun Tamura (he/his/him) > 2020/10/18 20:39、Phil Holmes のメール: > > See >

Re: Left-align the horizontal line that separates footnotes from the body of the score

2020-10-18 Thread Phil Holmes
See http://lilypond.org/doc/v2.21/Documentation/notation/other-paper-variables#miscellaneous-paper-variables and https://gitlab.com/lilypond/lilypond/-/blob/master/ly/paper-defaults-init.ly for guidance on how you can change the appearance of elements of the footnaote. On 18/10/2020 12:25,

Re: Left-align the horizontal line that separates footnotes from the body of the score

2020-10-18 Thread Pierre Perol-Schneider
Hi Jun, Try: \paper { footnote-separator-markup = ##f } Cheers, Pierre Le dim. 18 oct. 2020 à 13:25, Jun Tamura a écrit : > Hello, > > There is a horizontal line between the footnotes and the body of the > score. The length seems to be a half of the page width and aligned to the > center of

Left-align the horizontal line that separates footnotes from the body of the score

2020-10-18 Thread Jun Tamura
Hello, There is a horizontal line between the footnotes and the body of the score. The length seems to be a half of the page width and aligned to the center of the page in default. How can I change the length and horizontal position of the line? Quite often footnotes are rather short. In such

Re: Removing bar connecting grouped staves

2020-10-18 Thread Gilberto Agostinho
Hi everyone, Thank you so much for all your replies. Omitting Score.SystemStartBar did the trick for me, the diagram looks great now! (for some reason, StaffGroup.SpanBar did not work over here). This will be super handy for the rhythmic diagrams I'm doing for my dissertation, thank you so

Re: LilyPond MIDI and sustain pedal

2020-10-18 Thread Timothy Lanfear
On 18/10/2020 07:33, Andrew Bernard wrote: I think it is the case that LilyPond can't output sustain pedal information in MIDI files. So, how do people work with this? For piano, or vibraphone, for example. Andrew Some inconsistencies in the implementations of Piano_pedal_performer and

Re: LilyPond MIDI and sustain pedal

2020-10-18 Thread Jean Abou Samra
Le 18/10/2020 à 10:17, Aaron Hill a écrit : On 2020-10-17 11:33 pm, Andrew Bernard wrote: I think it is the case that LilyPond can't output sustain pedal information in MIDI files. So, how do people work with this? For piano, or vibraphone, for example. Which version are you using?  The

LilyPond MIDI and sustain pedal

2020-10-18 Thread Andrew Bernard
I think it is the case that LilyPond can't output sustain pedal information in MIDI files. So, how do people work with this? For piano, or vibraphone, for example. Andrew