Re: resetting accidentals at word breaks

2020-05-10 Thread Fr. Samuel Springuel
> On 30 Apr, 2020, at 4:24 AM, Lukas-Fabian Moser wrote: > > Hi Fr. Samuel, > >> So far I’ve determined that the articulations property is a music-list, but >> I can’t seem to figure out how to look inside the music-list to see if it >> contains a HyphenEvent. I tried using (member 'HyphenEve

Re: resetting accidentals at word breaks

2020-05-04 Thread Kevin Barry
Hi Lukas/Samuel, On Thu, Apr 30, 2020 at 10:24:27AM +0200, Lukas-Fabian Moser wrote: > in contrast to my above definition of "lyric?" using music-is-of-type?. > > 1) Which variant is to be preferred? > 2) What is the difference between 'LyricEvent and 'lyric-event ? Looking at the code, it appea

Re: resetting accidentals at word breaks

2020-04-30 Thread Lukas-Fabian Moser
Hi Fr. Samuel, So far I’ve determined that the articulations property is a music-list, but I can’t seem to figure out how to look inside the music-list to see if it contains a HyphenEvent. I tried using (member 'HyphenEvent ) (and memq and memv) to look at this, but this is always coming bac

Re: resetting accidentals at word breaks

2020-04-29 Thread Fr. Samuel Springuel
> On 29 Apr, 2020, at 12:26 AM, David Wright wrote: > > That's probably all very similar to what you suggested above, > but expressed in slightly different terms. It scales to many > voices, and deals with missing syllables more simply. It is very similar, but also relies on being able to constr

Re: resetting accidentals at word breaks

2020-04-28 Thread David Wright
On Tue 28 Apr 2020 at 15:47:22 (-0400), Fr. Samuel Springuel wrote: > > On 25 Apr, 2020, at 2:02 PM, David Wright wrote: > > > > So you need a NullLyric which contains your "controlling" lyrics, but > > which is not printed (and occupies no space). > > My attempt to create such a context is atta

Re: resetting accidentals at word breaks

2020-04-28 Thread Fr. Samuel Springuel
> On 28 Apr, 2020, at 3:47 PM, Fr. Samuel Springuel > wrote: > >> On 25 Apr, 2020, at 2:02 PM, David Wright wrote: >> >> So you need a NullLyric which contains your "controlling" lyrics, but >> which is not printed (and occupies no space). > > My attempt to create such a context is attached.

Re: resetting accidentals at word breaks

2020-04-28 Thread Fr. Samuel Springuel
> On 25 Apr, 2020, at 2:02 PM, David Wright wrote: > > So you need a NullLyric which contains your "controlling" lyrics, but > which is not printed (and occupies no space). My attempt to create such a context is attached. Unfortunately, the “occupies no space” thing still has me scratching my

Re: resetting accidentals at word breaks

2020-04-25 Thread David Wright
On Sat 25 Apr 2020 at 11:59:00 (-0400), Fr. Samuel Springuel wrote: > > On 25 Apr, 2020, at 11:44 AM, Fr. Samuel Springuel > > wrote: > >> On 23 Apr, 2020, at 4:23 PM, Aaron Hill wrote: > >> > >> Ooh, I didn't think of that. Since \bar just sets the whichBar property, > >> it is a case of whi

Re: resetting accidentals at word breaks

2020-04-25 Thread Fr. Samuel Springuel
> On 25 Apr, 2020, at 11:44 AM, Fr. Samuel Springuel > wrote: > >> On 23 Apr, 2020, at 4:23 PM, Aaron Hill wrote: >> >> Ooh, I didn't think of that. Since \bar just sets the whichBar property, it >> is a case of whichever \bar command is last that wins. So the code just >> needs to have a

Re: resetting accidentals at word breaks

2020-04-25 Thread Fr. Samuel Springuel
> On 23 Apr, 2020, at 4:23 PM, Aaron Hill wrote: > > Ooh, I didn't think of that. Since \bar just sets the whichBar property, it > is a case of whichever \bar command is last that wins. So the code just > needs to have a variation that checks whether whichBar is already set and > only change

Re: resetting accidentals at word breaks

2020-04-23 Thread Aaron Hill
On 2020-04-23 11:53 am, Fr. Samuel Springuel wrote: On 14 Apr, 2020, at 3:02 PM, Aaron Hill wrote: Here is my take that works from events not grobs, plus it allows flexibility in what you want to do between words: This look useful for me too, but I’m running into some difficulty when trying

Re: resetting accidentals at word breaks

2020-04-23 Thread Fr. Samuel Springuel
> On 14 Apr, 2020, at 3:02 PM, Aaron Hill wrote: > > On 2020-04-14 9:14 am, Benjamin Bloomfield wrote: >> However, I am still trying to figure out how engravers and contexts work to >> be able to know exactly what's going on. >> Thanks for any help or ideas, > > Here is my take that works from e

Re: resetting accidentals at word breaks

2020-04-16 Thread Lukas-Fabian Moser
Hi Benjamin, accidental-styles.chant-cautionary = #`(#t       (Staff ,(make-accidental-rule 'same-octave 0))       (Staff ,(make-accidental-rule 'same-octave #t))) Great to hear! Now I am trying to figure out how to draw the first accidental within a melisma at the beginning of the group of n

Re: resetting accidentals at word breaks

2020-04-16 Thread Benjamin Bloomfield
Thanks. I did figure it out, and it ended up being a pretty simple change. accidental-styles.chant-cautionary = #`(#t (Staff ,(make-accidental-rule 'same-octave 0)) (Staff ,(make-accidental-rule 'same-octave #t))) Now I am trying to figure out how to draw the first accidental within a

Re: resetting accidentals at word breaks

2020-04-15 Thread Lukas-Fabian Moser
Hi Benjamin, Now I need to figure out automatically adding cautionary accidentals the first time the pitch appears after the accidental has been reset.  I've been having trouble finding documentation on defining new accidental Styles, but I will continue looking a bit before turning to the fo

Re: resetting accidentals at word breaks

2020-04-15 Thread Benjamin Bloomfield
Thanks, this works beautifully, and insertBar also solves a problem that I had of needing to put empty bars in between syllables to allow line breaks there, which I had previously been solving by preprocessing the lyrics to add \bar "" in between all the lyric syllables. Thanks so much! Now I nee

Re: resetting accidentals at word breaks

2020-04-14 Thread Aaron Hill
On 2020-04-14 9:14 am, Benjamin Bloomfield wrote: However, I am still trying to figure out how engravers and contexts work to be able to know exactly what's going on. Thanks for any help or ideas, Here is my take that works from events not grobs, plus it allows flexibility in what you want t

resetting accidentals at word breaks

2020-04-14 Thread Benjamin Bloomfield
Hi, I am trying to get accidentals to be reset at every word break in a section of music without meter; I found some code to advance the internalBarNumber, in order to force the accidentals to be reset: > resetAccidentals = \applyContext > #(lambda (x) > (begin > (ly:context-set-property!