Re: Tunable Context Properties

2024-05-06 Thread Fr. Samuel Springuel
Thanks Aaron. That worked very well. Of course, the minute I get a solid solution, the desired result gets changed on me: now we’re looking at only numbering the first line. Fortunately that’s an easy enough change to make. Well, I’ll keep this solution in my back pocket for the inevitable

Re: Markuplist and formatted text

2024-05-04 Thread Fr. Samuel Springuel
Springuel) St. Anselm’s Abbey 4501 South Dakota Ave, NE Washington, DC, 20017 202-269-2300 (c) 202-853-7036 PAX ☧ ΧΡΙΣΤΟΣ > On May 4, 2024, at 1:31 PM, David Kastrup wrote: > > "Fr. Samuel Springuel" writes: > >> Okay, so then I need to break up the string to create

Re: Markuplist and formatted text

2024-05-04 Thread Fr. Samuel Springuel
Dakota Ave, NE Washington, DC, 20017 202-269-2300 (c) 202-853-7036 PAX ☧ ΧΡΙΣΤΟΣ > On May 4, 2024, at 1:13 PM, David Kastrup wrote: > > "Fr. Samuel Springuel" writes: > >> Word wrapping does not appear to be functioning in this solution: >> >> \version

Re: Markuplist and formatted text

2024-05-04 Thread Fr. Samuel Springuel
☧ ΧΡΙΣΤΟΣ > On May 4, 2024, at 11:30 AM, Jean Brefort wrote: > > Try this: > \markuplist \wordwrap-lines {\concat { "test test test "\italic { "italic > text" }", test test test" }} > > Le samedi 04 mai 2024 à 11:18 -0400, Fr. Samuel Springu

Markuplist and formatted text

2024-05-04 Thread Fr. Samuel Springuel
How do I get the comma (which is not italicized) attached to the italics text just before it? \version "2.24.3" \markuplist \wordwrap-lines { test test test \italic { italic text }, test test test } ✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501

Tunable Context Properties

2024-05-04 Thread Fr. Samuel Springuel
I’m using the vocalName and shortVocalName context properties in Lyrics and for a particular project, I always set them to be the same thing (i.e. so that the verse numbers appear on every line). Right now, that means putting two “\set” commands in each Lyrics context in order to set both

English Note names alternatives

2024-04-06 Thread Fr. Samuel Springuel
I just discovered that in English, there’s a shorter way to name notes that would normally be specified with “-sharp” or “-flat”: “s” and “f”. E.g. “f-sharp” can be written as “fs” and “b-flat” can be written as “bf”. However, I noticed that this is not documented in the Music Glossary:

Lilypond-book-preamble introducing page break after custom header

2023-03-15 Thread Fr. Samuel Springuel
The attached file compiles differently under 2.22 and 2.24: 2.24 introduces a page break that isn’t present in 2.22. This is causing some havoc in my lyluatex tool chain. Any idea what’s causing the problem and how to fix it? convert-ly doesn’t change anything in the file when upgrading the

Re: Determining requested output files

2023-02-20 Thread Fr. Samuel Springuel
> On Feb 20, 2023, at 7:33 AM, Jean Abou Samra wrote: > > (Adding back the list) Sorry about losing the list. > > Le dimanche 19 février 2023 à 12:46 -0500, R. Padraic Springuel a écrit : > >> It’s part of my system for having make automatically figure out dependencies >> when running

Determining requested output files

2023-02-18 Thread Fr. Samuel Springuel
I have the following scheme function which I used on versions 2.22 and earlier which determined the requested output files for a lilypond run: #(define target-extensions (cond ((equal? (ly:get-option 'backend) 'svg) (list "svg")) ((equal? (ly:get-option

Re: Conditional Definitions

2023-02-18 Thread Fr . Samuel Springuel
> On Feb 15, 2023, at 2:54 PM, Fr. Samuel Springuel > wrote: > > I recently upgraded from 2.22 to 2.24 and have run into some problems with > one of my tools. The tool is set up to define some some stuff (in the > example attached below I’ve narrowed it down to be just

Conditional Definitions

2023-02-15 Thread Fr. Samuel Springuel
I recently upgraded from 2.22 to 2.24 and have run into some problems with one of my tools. The tool is set up to define some some stuff (in the example attached below I’ve narrowed it down to be just a color), but only if that thing is not already defined. The reason for this is because the

Re: Recitative in Chant music

2022-10-28 Thread Fr. Samuel Springuel
My mostly automated solution for recited notes is attached. ✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501 South Dakota Ave, NE Washington, DC, 20017 202-269-2300 (c) 202-853-7036 PAX ☧ ΧΡΙΣΤΟΣ recite.ily Description: Binary data > On Oct 28, 2022, at

Re: Differentiate between including and direct compiling a file

2021-11-08 Thread Fr. Samuel Springuel
> On Aug 7, 2021, at 3:54 PM, Aaron Hill wrote: > > Perhaps something like this: > > > \version "2.22.0" > > ifCompiledDirectly = > #(define-scheme-function (scm) (scheme?) > (let ((file (car (ly:input-file-line-char-column (*location*) > (if (member file (command-line)) scm))) >

Re: Markup functions and punctuation in lyrics

2021-11-06 Thread Fr. Samuel Springuel
I’ve done some work to clean up my code and also modified the interface to be fairly intuitive and non-intrusive. Hopefully I’ll have some time this week to integrate this into my project, but if anyone sees anything that could be improved, I’d love to hear about it.

Re: Markup functions and punctuation in lyrics

2021-11-04 Thread Fr. Samuel Springuel
On Nov 2, 2021, at 11:26 PM, Aaron Hill wrote: > > Okay, would text replacement be viable as opposed to writing a bunch of > individual functions? That does sound nice. There would need to be some helper functions to handle the formatting issue that Jean pointed out, but I can get that

Re: how to engrave an arpeggio based on a chord of differing length notes?

2021-05-15 Thread Fr. Samuel Springuel
> On 15 May, 2021, at 7:39 PM, Kenneth Wolcott wrote: > > Hello; > > I have an interesting engraving problem I haven't seen before > (example png file attached). > > I understand how to handle the tuplet, the crescendo, the > decrescendo and the general polyphony, even the arpeggio. > >

Re: ANN: Frescobaldi 3.1.3

2021-01-06 Thread Fr . Samuel Springuel
> On 5 Jan, 2021, at 5:22 PM, Davide Liessi wrote: > > If you are running macOS 11, I would be grateful if you could test the > application and report the results. I can confirm that basic operations seem to work. Will report back as I use further. ✝✝ Fr. Samuel, OSB

\with-dimensions partially

2020-12-26 Thread Fr. Samuel Springuel
Is there a way to set the horizontal dimensions of a markup to 0 while leaving the vertical dimensions alone? I’ve got the following as a start, but it zeros both X and Y dimensions. Ideally I’d like the second argument to be computed automatically: Cantor = \markup \with-dimensions #'(0 . 0)

Re: Mass file linting

2020-12-18 Thread Fr. Samuel Springuel
On 17 Dec, 2020, at 4:27 PM, David Menéndez Hurtado wrote: > pip install python-ly > ly "reformat" input.ly > output.ly > > That runs exactly the same that Frescobaldi does. More documentation: > https://pypi.org/project/python-ly/ > I should probably smack my forehead over this. I already

Mass file linting

2020-12-17 Thread Fr. Samuel Springuel
I’ve developed a large collection of music files over several years have recently noticed that there are some stylistic formatting deviations in some of them and so I’m looking for a tool that will check all my files for these problems (and ideally fix them). I can do this in Frescobaldi using

Re: Stanza Collision

2020-12-10 Thread Fr. Samuel Springuel
> On 6 Dec, 2020, at 3:55 PM, Matthew Fong wrote: > > Hello Fr Samuel, > > It sounds like we are solving almost the same issue with note entry, and > Aaron Hill created a function which basically scales note values so that they > group together nicely. And the clutter from manual scaling is

Re: Combining custom bar line with standard elements

2020-12-06 Thread Fr. Samuel Springuel
> On 6 Dec, 2020, at 1:47 PM, Thomas Morley wrote: > > Ok, then my initial understanding >> Iiuc, you want to change thick-thickness and font-size for barlines >> containing "[" or "]". > was wrong. You rather want a different thick-thickness for the thick > line in bracket-barlines and for the

Re: Stanza Collision

2020-12-06 Thread Fr. Samuel Springuel
> On 6 Dec, 2020, at 12:00 PM, Kieren MacMillan > wrote: > > I’m hoping to avoid the Slur_spacing_engraver entirely. ;) > What does it do exactly? > It tightens the spacing between notes which are inside a slur so that the musical sense is clear without the usual bow (though, it’s a

Re: Combining custom bar line with standard elements

2020-12-06 Thread Fr. Samuel Springuel
> On 6 Dec, 2020, at 6:39 AM, Thomas Morley wrote: > > \layout { > \context { >\Staff >\override BarLine.before-line-breaking = >#(lambda (grob) > (let ((glyph (ly:grob-property grob 'glyph))) >(if (and (string? glyph) > (or (string-contains glyph "[") >

Re: Stanza Collision

2020-12-06 Thread Fr. Samuel Springuel
> On 6 Dec, 2020, at 10:37 AM, Kieren MacMillan > wrote: > > Where is the asterisk supposed to sit? > > Horizontal: Just to the right of the last cantor-only word? Just to the left > of the first choir word? Centred between those words? Closer to just left of the first choir word. There can

Re: Stanza Collision

2020-12-05 Thread Fr. Samuel Springuel
> On 5 Dec, 2020, at 1:46 PM, Kieren MacMillan > wrote: > > Hi there, > >> I’m still working on getting my modified slur spacing issues worked out and >> have yet to come up with a solution for the collision between \set stanza = >> "*" > > I honestly can’t understand what you’re trying to

Combining custom bar line with standard elements

2020-12-05 Thread Fr. Samuel Springuel
I have a couple of customized bar lines defined and have come across an instance where I want to combine them with a standard bar line element. However, my naive attempts aren’t working as expected. My first attempt resulted in the bar line simple disappearing; in the second the customization

Stanza Collision

2020-12-01 Thread Fr. Samuel Springuel
I’m still working on getting my modified slur spacing issues worked out and have yet to come up with a solution for the collision between \set stanza = "*" and the words when a slur occurs on either side of the asterisk. (You’ll note that the first asterisk in the MWE doesn’t have any problems

Partially formatting syllables in lyrics

2020-11-21 Thread Fr. Samuel Springuel
How can I apply italics to part of a syllable in the lyrics context? When I use the method I usually use to apply italics, it automatically creates a new syllable: #(ly:set-option 'relative-includes #t) \version "2.20.0" \new Staff << \new Voice = "mel" { c' c' } \new Lyrics \lyricsto

Re: Spacing of systems while using lyluatex

2020-08-25 Thread Fr. Samuel Springuel
> On 25 Aug, 2020, at 3:20 PM, Jacques Menu wrote: > > Hello, > > I’m using Mac TexLive 2020 with all updates. > TeXShop proposes only Lilypond and Lilypond-LaTeX as reasonable-looking > engines. > Neither of these are correct for use with lyluatex. > >

Re: Automatic lyric extenders

2020-08-18 Thread Fr. Samuel Springuel
> On 17 Aug, 2020, at 5:27 PM, Jon Arnold wrote: > > Hi all- > > I was trying to find if it was possible to do lyric extensions automatically, > and found this thread: > http://lilypond.1069038.n5.nabble.com/Automatic-Lyric-Extenders-td198194.html > > Did anything ever come of this project?

Re: Arguments before functions

2020-07-20 Thread Fr. Samuel Springuel
> On 19 Jul, 2020, at 4:32 PM, David Kastrup wrote: > > I don't see that you can fix this with a music function, That’s what I thought, I just wanted to make sure. > but of course > you can process the complete music expression and then modify any note > before a \bar "|". I hadn’t thought of

Arguments before functions

2020-07-19 Thread Fr. Samuel Springuel
Is there a way for a music function to operate on the note that precedes it? I’m transcribing chant and have lots of music where I transcribed the note just before the bar as a quarter note (the same as other non-reciting notes in the measure): { \cadenzaOn g'1 c'4 f' \bar "|" } I’ve been

Re: Naming RFC: Properties, property sets, presets

2020-07-13 Thread Fr. Samuel Springuel
Reply received off-list. Copying to list for record: > On 13 Jul, 2020, at 10:58 AM, Urs Liska wrote: > > Hi Samuel, > > Am Montag, den 13.07.2020, 10:00 -0400 schrieb Fr. Samuel Springuel: >> So, if I've taken in the whole conversation, then the situation you >> h

Re: Naming RFC: Properties, property sets, presets

2020-07-13 Thread Fr. Samuel Springuel
So, if I've taken in the whole conversation, then the situation you have is as follows: 1) property sets define a list of properties and give them default values (so that you never have a valid property without a current value) 2) a “preset” can change the values of properties in a property

Re: Naming RFC: Properties, property sets, presets

2020-07-12 Thread Fr. Samuel Springuel
> On 12 Jul, 2020, at 9:38 AM, Urs Liska wrote: > > > \definePreset \with { > thickness = 3 > Y-position = 2 > } my-function.appearance default > > \definePreset \with { > parent = default > color = #green > } my-function.appearance style-one > > \definePreset \with { > parent = default

Re: Forced lyric hyphen

2020-07-11 Thread Fr. Samuel Springuel
Thank you both. ✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501 South Dakota Ave, NE Washington, DC, 20017 202-269-2300 (c) 202-853-7036 PAX ☧ ΧΡΙΣΤΟΣ

Forced lyric hyphen

2020-07-11 Thread Fr. Samuel Springuel
Is there a tweak/override that can be applied which will force a particular lyric hyphenEvent to always appear show its hyphen (moving lyrics/notes around if needed)? I’m trying to deal with hyphenated words (“loving-kindness” in this particular example) and the hyphenEvent hyphen disappears

LSR contributor access

2020-07-08 Thread Fr. Samuel Springuel
I’m trying to sign-up for the LSR in order to contribute a snippet. However, even though I apparently successfully complete the “New element” form, I remain unable to login. Is there some sort of lag in when registrations become active or is there some other problem going on?

Possible Feature Request?

2020-06-11 Thread Fr. Samuel Springuel
Right now we have ly:source-files which contains a list of all input files which have been opened up to the point of it’s call, but there is, so far as I can tell, no equivalent for output files. How difficult would it be to add such a scheme function/list? As I see it, LilyPond obviously

Re: Identify included files

2020-06-09 Thread Fr. Samuel Springuel
> On 9 Jun, 2020, at 5:54 AM, Matt Wallis wrote: > > I found > https://lists.gnu.org/archive/html/lilypond-user/2020-05/msg00148.html very > interesting. > It describes how to get lilypond to print out dependencies. Have you looked > into this? That’s from the start of this thread and I’m

Re: Identify included files

2020-06-06 Thread Fr. Samuel Springuel
I have now updated the repository I posted earlier (https://github.com/rpspringuel/lilypond_make) to contain two additional branches: GNUmake_dependencies: Implements dependency generation as described in the GNUmake manual mad-scientist_dependencies: Implements dependency generation as

Re: Identify included files

2020-05-27 Thread Fr. Samuel Springuel
> On 26 May, 2020, at 6:13 PM, David Wright wrote: > > Because of the inability to collate multiple MIDI files, I've always > renamed them. I tee the log into a nonce file, which I grep for their > names in a postprocessing script. (I then trash the log unless there > was an error code, in which

Re: Identify included files

2020-05-26 Thread Fr. Samuel Springuel
> On 26 May, 2020, at 12:09 PM, Timothy Lanfear wrote: > > Maybe this code can give some hints on how to decide if midi is being > produced. That’s the first code I’ve seen that’s been able to definitively show when a midi file is being produced. Thank you. Now, there is the issue of it

Re: Identify included files

2020-05-26 Thread Fr. Samuel Springuel
> On 26 May, 2020, at 6:18 AM, Matt Wallis wrote: > > For C/C++, there is an excellent discussion of the issues about automatically > producing dependencies and dealing with them in make: > > http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/ > > I think much of this is

Re: Identify included files

2020-05-25 Thread Fr. Samuel Springuel
> On 25 May, 2020, at 3:12 PM, Wols Lists wrote: > > So. Am I correct in thinking that, if you change one .ily file, you need > to rebuild the entire makefile? WHY? > And it means if put a new include into > dynamics.ily, I just need to create/update the line for dynamics.ily, > and everything

Re: Changing slur behavior

2020-05-25 Thread Fr. Samuel Springuel
> On 25 May, 2020, at 1:01 PM, Shane Brandes wrote: > > Increase the spacing-increment on line twenty. I tried a value of 2 and it > worked fine. > > regards, > > Shane Yep, playing with that parameter allowed me to tweak the note spacing to prevent the collisions. I also found that by

Re: Identify included files

2020-05-25 Thread Fr. Samuel Springuel
On 25 May, 2020, at 12:46 PM, David Wright wrote: > But it seems to me that your OP had the makings of an A/B problem. > You originally asked for a script that worked in the forward > direction: a list of top-level file's dependencies, for constructing > DEP. Having got LP to perform that with

Re: Changing slur behavior

2020-05-25 Thread Fr. Samuel Springuel
I’ve come back to this after a bit and have found a deal breaker of a problem: when the slur spans over notes which go both up and down, the note heads after the turn around collide. See attached example. ✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501

Re: Identify included files

2020-05-24 Thread Fr. Samuel Springuel
> On 23 May, 2020, at 7:34 PM, David Wright wrote: > > If you follow some simple rules in your source layout, constructing > such a list might be most straightforward to do in the shell, using > grep. It’s not quite as straight-forward as you seem to think: 1) You haven’t accounted for the

Re: Identify included files

2020-05-22 Thread Fr. Samuel Springuel
> On 21 May, 2020, at 9:08 PM, David Wright wrote: > > Look¹, I'm not the one making this analogy. I'm trying to make any > sense of it, and why this "dependency file" is being built. Well, perhaps it’s time to drop the analogy then and work with an example. For reference sake, let’s use the

Re: Identify included files

2020-05-21 Thread Fr. Samuel Springuel
> On 21 May, 2020, at 9:36 AM, David Kastrup wrote: > > antlists writes: > >> On 21/05/2020 01:49, David Wright wrote: >>> I don't understand your equivalence between .ily and .h files. The >>> .ily file(s) can contain just as much code as the .ly file(s), whereas >>> .h files don't contain

Re: Suggestion to make sharps and flats persistent

2020-05-20 Thread Fr. Samuel Springuel
> On 20 May, 2020, at 10:22 AM, David Kastrup wrote: > > myNames = \language-pitch-names.english > myNames.do = c > myNames.re = d > myNames.mi = e > myNames.fa = f > myNames.sol = g > myNames.la = a > myNames.ta = bes > myNames.ti = b > language-pitch-names.solfegenglish = \myNames >

Re: Identify included files

2020-05-20 Thread Fr. Samuel Springuel
> On 20 May, 2020, at 12:05 PM, Fr. Samuel Springuel > wrote: > > Use of the -dbackend=eps (or setting the backend to eps in the file) also > causes the production of several other files (*-systems.tex, *-systems.texi, > *-systems.count, and the eps and pdf files for eac

Re: Identify included files

2020-05-20 Thread Fr. Samuel Springuel
As an exercise in Scheme programming (and because I’m something of a perfectionist), I’m working on improving the output when using parse-only.ly by having it account for `--format` flags and the various backends when constructing the target portion of the make rule (the version I previously

Re: Suggestion to make sharps and flats persistent

2020-05-20 Thread Fr. Samuel Springuel
> On 20 May, 2020, at 9:43 AM, Paul McKay wrote: > > Todays thoughts are: when you specify \language, then part of what you are > doing is setting up the parser to understand which character sequence should > indicate an f-sharp. I would like to be able to temporarily reconfigure this > so

Re: Global colour substitution for specific characters in lyrics

2020-05-20 Thread Fr. Samuel Springuel
> On 20 May, 2020, at 2:41 AM, Witold Uchman wrote: > > Hello! > > I am looking for a way to simplify input in a book of psalms, namely to be > able to simply put an * in lyrics and make the character in red. > I define a special function for this: #(define aster #{ \set stanza = \markup

Re: Identify included files

2020-05-18 Thread Fr. Samuel Springuel
> On 18 May, 2020, at 11:30 AM, David Wright wrote: > > If you were compiling a C program foo.c into an executable, what you > would be trying to avoid is recompiling fnbar.c into fnbar.o over > and over again (and all of its similar companions). > > Can you explain which of your files are the

Re: Identify included files

2020-05-18 Thread Fr. Samuel Springuel
> On 18 May, 2020, at 9:37 AM, antlists wrote: > > define trombone-notes.ly as a target, define it as changed if its > dependencies change, and say "it doesn't exist as a file that can be created > with a command". Right, that’s the step I’m trying to automate. Make itself cannot determine

Re: Identify included files

2020-05-17 Thread Fr. Samuel Springuel
> On 16 May, 2020, at 5:31 PM, David Kastrup wrote: > > The problem is that there are quite a few things in there that make no > overwhelming sense for the task you want to solve. In order to allow > for "snappy" init files doing specific tasks like this version of > parse-only.ly does, one

Re: Identify included files

2020-05-16 Thread Fr. Samuel Springuel
> On 15 May, 2020, at 5:04 PM, David Kastrup wrote: > > "Fr. Samuel Springuel" writes: > >> Before I start writing a script to do this, is there an existing tool >> which will identify all the `\include` files that a LilyPond file >> depends on? Even b

Re: Identify included files

2020-05-15 Thread Fr. Samuel Springuel
> On 15 May, 2020, at 12:03 PM, Fr. Samuel Springuel > wrote: > >> On 15 May, 2020, at 3:43 AM, Valentin Villenave >> wrote: >> >> On 5/15/20, Fr. Samuel Springuel wrote: >>> Before I start writing a script to do this, is there an existing tool

Re: Identify included files

2020-05-15 Thread Fr. Samuel Springuel
> On 15 May, 2020, at 3:43 AM, Valentin Villenave > wrote: > > On 5/15/20, Fr. Samuel Springuel wrote: >> Before I start writing a script to do this, is there an existing tool which >> will identify all the `\include` files that a LilyPond file depends on? >> E

Identify included files

2020-05-14 Thread Fr. Samuel Springuel
Before I start writing a script to do this, is there an existing tool which will identify all the `\include` files that a LilyPond file depends on? Even better, one that will work in a recursive fashion? ✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501

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

Re: Stanzas with different rhythms

2020-05-04 Thread Fr. Samuel Springuel
> On 4 May, 2020, at 3:20 PM, Fr. Samuel Springuel > wrote: > > Now, I’m almost certain the answer is yes (at least in principle), but before > I start trying to write a music function that does [concatenates a variable > consisting of pairs of keys and music expressions i

Re: Stanzas with different rhythms

2020-05-04 Thread Fr. Samuel Springuel
> On 4 May, 2020, at 12:45 PM, David Wright wrote: > > Of course, you can break up the music into several variables > from which you assemble the different versions, in order to > localise the variation and make it easier to maintain. So, attached is my first go at that sort of

Re: Stanzas with different rhythms

2020-05-04 Thread Fr. Samuel Springuel
> On 4 May, 2020, at 12:45 PM, David Wright wrote: > > Well, in a sense, you haven't managed to localise the complications > because the lyrics are stuffed with redundant associatedVoices when > reused elsewhere. Very true. Getting the separation I want is still very much a work in progress.

Re: Stanzas with different rhythms

2020-05-04 Thread Fr. Samuel Springuel
> On 3 May, 2020, at 3:57 PM, Caio Barros wrote: > > Personally I tend to use explicit durations (no \lyricsto) in complex cases > like this, but a workaround would be simply: I’m avoiding explicit durations in this project because each set of words can be set to multiple possible tunes.

Stanzas with different rhythms

2020-05-03 Thread Fr. Samuel Springuel
I’m trying to apply the techniques for switching to an alternative melody for a stanza from here: http://lilypond.org/doc/v2.20/Documentation/notation/stanzas#stanzas-with-different-rhythms So far the switch to the alternative melody is working alright, but the switch back is giving me

Re: Break visibility for notes?

2020-05-02 Thread Fr. Samuel Springuel
> On 1 May, 2020, at 6:28 AM, Thomas Morley wrote: > > Below a hackish and probably fragile method to get the desired output anyway. > Please test thoroughly before using it for serious work! Well, after applying this version to my project, it doesn’t seem to break any scores. So it appears

Re: Break visibility for notes?

2020-05-01 Thread Fr. Samuel Springuel
> On 1 May, 2020, at 6:28 AM, Thomas Morley wrote: > > sorry for coming back to this that late. Because of Corona the > workload for my regular job exploded ... Totally understandable. I’ve got plenty of things to work on and am not on a deadline for this so I’m not concerned with the delay.

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

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). > >

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: Break visibility for notes?

2020-04-26 Thread Fr. Samuel Springuel
Okay, I’ve been applying this to my project and came across a problem with the version I posted earlier: ledger lines are visible for the invisible notes. Now, I’ve tried applying the line-position function to LedgerLineSpanner.transparent, but that doesn’t have any effect. There is

Re: Optional arguments for scheme functions

2020-04-26 Thread Fr. Samuel Springuel
> On 26 Apr, 2020, at 1:01 PM, David Kastrup wrote: > > Predicates used in argument parsing have to be "primary" in that they > have to deliver a result for anything thrown at them. > Can that be noted in the docs

Re: Optional arguments for scheme functions

2020-04-26 Thread Fr. Samuel Springuel
> On 26 Apr, 2020, at 4:30 AM, Thomas Morley wrote: > > I've no clue why positive? fails here. > Though, for integers >= 0 we have the index? predicate, which works in > your function. Well, I’m glad I’m not the only one baffled. And the index? predicate does seem to work. > On 26 Apr,

Re: Break visibility for notes?

2020-04-25 Thread Fr. Samuel Springuel
> On 23 Apr, 2020, at 3:42 PM, Thomas Morley wrote: > > Using Custos for it sounds very strange. I don’t disagree. I picked it because of the objects that obey break-visibility (http://lilypond.org/doc/v2.19/Documentation/notation/visibility-of-objects#using-break_002dvisibility) it was the

Optional arguments for scheme functions

2020-04-25 Thread Fr. Samuel Springuel
I’m trying to write a music function in scheme in which the first argument is optional and have run into something that confuses me: The following works: \version "2.19.84" recite = #(define-music-function (times note) ((integer? 1) ly:music?) #{ \repeat unfold #times {

Re: Scaled durations in scheme

2020-04-25 Thread Fr. Samuel Springuel
Nevermind, I figured it out: \version "2.19.84" recite-note = #(define-music-function (note) (ly:music?) (define dur 1) (withMusicProperty 'duration (ly:make-duration dur 0 (/ (expt 2 dur) 4)) note)) \new Staff { \new Voice { g' \recite-note g' g' } }

Scaled durations in scheme

2020-04-25 Thread Fr. Samuel Springuel
Within a scheme music function, how can I tie the value of the third argument of ly:make-duration to the value of the first argument so that the note takes up the space of a 1/4 note? I’m trying to set things up so that I only have to change one thing to change the appearance of the note

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. S

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

Re: Break visibility for notes?

2020-04-23 Thread Fr. Samuel Springuel
> On 22 Apr, 2020, at 4:34 PM, Fr. Samuel Springuel > wrote: > > Is there a way to specify that a note should only appear if it’s the first > note on the line? I tried using the break-visibility property but this > doesn’t seem to be working (the notes simply

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

Re: Default accidental style with timing off

2020-04-23 Thread Fr. Samuel Springuel
> On 22 Apr, 2020, at 6:09 PM, Aaron Hill wrote: > > A pattern I could recommend is defining a named procedure as opposed to using > a lambda with \applyContext: > > > foo = #(define-music-function () () >(define (proc context) > (do-something-here)) >#{ \applyContext #proc

Break visibility for notes?

2020-04-22 Thread Fr. Samuel Springuel
Is there a way to specify that a note should only appear if it’s the first note on the line? I tried using the break-visibility property but this doesn’t seem to be working (the notes simply disappear entirely. \version "2.19.84" mystart = \override Voice.NoteHead.break-visibility =

Re: Default accidental style with timing off

2020-04-22 Thread Fr. Samuel Springuel
After some more work I came up with the attached redefinition of the bar which does what I originally asked for. I’d appreciate any scheme experts critique on what I have as I’m not entirely comfortable with the way I’m switching in and out of scheme. It works, I’m just not sure it’s

Re: Default accidental style with timing off

2020-04-06 Thread Fr. Samuel Springuel
I’ve been playing with this further and have come up with the attached. Now, can someone tell me how I might combine \test and \bar into a redefined \bar (so that I don’t have to have both \test and \bar in all bar locations)? My naive expectation would have been `bar = \test \bar \etc` but

Re: Default accidental style with timing off

2020-03-27 Thread Fr. Samuel Springuel
> On 26 Mar, 2020, at 7:50 PM, Mark Stephen Mrotek wrote: > > Fr. Samuel. > > 1) The bar instructions are in printer's (curly) double quotes. Sorry about that, my email client must have mangled them as they aren’t that way in the original document. I’ve attached the original below. > 2) The

MacPorts stable version lacks mactex variant

2020-03-26 Thread Fr. Samuel Springuel
The lilypond port for MacPorts (i.e. the stable version) doesn’t have a mactex variant like lilypond-devel and thus will end up installing several the MacPorts texlive packages which are redundant on systems which already have MacTex installed. Should I be reporting this to the MacPorts bug

Default accidental style with timing off

2020-03-26 Thread Fr. Samuel Springuel
When constructing scores where the timing is turned off, how do I get accidentals to behave with respect to the manually inserted bar lines? I’m just looking for the default accidental style (accidentals “last” until a bar line), it’s just that all bar lines are inserted manually using \bar.