Re: Incipit

2024-02-04 Thread Andreas Schneider
Thank you very much for improving the script and sorry that I did not find time to look at the new version before. It is convenient to create an incipit from a selection. Usually it is necessary to change clef and/or time signature for the incipit (e.g. key "mensural-c1" for the cantus in the

Re: Incipit

2024-01-23 Thread Richard Shann
On Sun, 2024-01-21 at 12:58 +, Richard Shann wrote: > ps I haven't had a chance to investigate your script yet, I'll try to > get to it as you said there was some undesirably hard coded value in > it. I've done some tinkering with your script for StaffIncipit. There is no obvious way to

Re: Incipit

2024-01-21 Thread Richard Shann
On Sun, 2024-01-21 at 19:04 +0100, Andreas Schneider wrote: > Thanks a lot, now it works as intended. Plus I have finally > understood > what the postfix and prefix tags do. The prefix and postfix fields do different things for the various directives, and where they put themselves can be further

Re: Incipit

2024-01-21 Thread Andreas Schneider
Thanks a lot, now it works as intended. Plus I have finally understood what the postfix and prefix tags do. Andreas On 21.01.24 18:57, Richard Shann wrote: On Sun, 2024-01-21 at 14:13 +0100, Andreas Schneider wrote: Yes, that is what I tried to describe. The correct syntax would be \new

Re: Incipit

2024-01-21 Thread Richard Shann
On Sun, 2024-01-21 at 14:13 +0100, Andreas Schneider wrote: > Yes, that is what I tried to describe. The correct syntax would be > > \new Voice = "MvmntIVoiceI" { \incipit { \clef "mensural-c1" \key g > \dorian r2 g'8 a' bes' c'' } >    \clef treble    \key d \minor    \time 2/2   \MvmntIVoiceI }

Re: Incipit

2024-01-21 Thread Andreas Schneider
Yes, that is what I tried to describe. The correct syntax would be \new Voice = "MvmntIVoiceI" { \incipit { \clef "mensural-c1" \key g \dorian r2 g'8 a' bes' c'' } \clef treble\key d \minor\time 2/2 \MvmntIVoiceI } instead of \new Voice = "MvmntIVoiceI" \incipit { \clef

Re: Incipit

2024-01-21 Thread Richard Shann
On Sun, 2024-01-21 at 13:31 +0100, Andreas Schneider wrote: > With my incipit script I have the problem that lyrics are not > displayed. > Looking into the lilypond code, I notice that the problem is that the > incipit is inserted before the opening brace in the voice and not > after. > This can

Re: Incipit

2024-01-21 Thread Andreas Schneider
With my incipit script I have the problem that lyrics are not displayed. Looking into the lilypond code, I notice that the problem is that the incipit is inserted before the opening brace in the voice and not after. This can be seen in attached score, in which the incipit is inserted directly

Re: Incipit

2023-12-26 Thread Andreas Schneider
Thanks again for your help. Using ScoreIndent I arrive at a script that does what I expect: ;;;StaffIncipit (let ((tag "StaffIncipit") (current "") (incipitLength 10) (indent "15.0") (indentLength 15) ) (set! current (d-DirectiveGet-voice-data tag)) (if (not (string? current)) (set! current

Re: Incipit

2023-12-17 Thread Richard Shann
On Sat, 2023-12-16 at 21:25 +0100, Andreas Schneider wrote: > Thank you very much for your help. One more question: how can I get > the > current indent  There are two indent commands Command: Indent Alter the indent of the opening system for the current movement. Location: Object Menu ▶

Re: Incipit

2023-12-16 Thread Andreas Schneider
Thank you very much for your help. One more question: how can I get the current indent so that I can compare to the incipit length and increase it if necessary? I'm trying the following after looking at Indent.scm, but I always get #f ;;;StaffIncipit (let ((tag "StaffIncipit") (current "")

Re: Incipit

2023-12-16 Thread Richard Shann
On Sat, 2023-12-16 at 12:39 +, Richard Shann wrote: > 2) To add a \layout {} block with the incipit indent stuff as in the > example in the docs (d-DirectivePut-layout-postfix "StaffIncipit " " incipit-width = 3\\cm ") adds the incipit-width (as given in the example in the docs) to the

Re: Incipit

2023-12-16 Thread Richard Shann
Sorry about the typos in my previous response, I hope you got the drift. I've had a chance to look at it now and in addition to my previous comments you will need 1) to put the \incipit syntax into the Voice not the Staff (d-DirectivePut-voice-prefix tag (string-append "\\incipit { " current "

Re: Incipit

2023-12-16 Thread Richard Shann
On Fri, 2023-12-15 at 22:04 +0100, Andreas Schneider wrote: > On 15.12.23 21:33, Richard Shann wrote: > > On Fri, 2023-12-15 at 19:48 +0100, Andreas Schneider wrote: > > > I'm trying to write a Scheme script for an incipit > > > ( > > >

Re: Incipit

2023-12-15 Thread Andreas Schneider
On 15.12.23 21:33, Richard Shann wrote: On Fri, 2023-12-15 at 19:48 +0100, Andreas Schneider wrote: I'm trying to write a Scheme script for an incipit ( https://lilypond.org/doc/v2.23/Documentation/notation/working-with-anc ient-music-_002d-scenarios-and-solutions#incipits). I have started from

Re: Incipit

2023-12-15 Thread Richard Shann
On Fri, 2023-12-15 at 19:48 +0100, Andreas Schneider wrote: > I'm trying to write a Scheme script for an incipit > ( > https://lilypond.org/doc/v2.23/Documentation/notation/working-with-anc > ient-music-_002d-scenarios-and-solutions#incipits). > I have started from the script for instrument name