Re: Mixed ChoirGroup: Solo/Choir

2024-04-24 Thread David Wright
On Wed 24 Apr 2024 at 19:13:47 (+0200), Johannes Roeßler wrote:
> Hey David,
> 
> it works - but I am running into an issue with short passages.
> I would like to stretch the choir part to the right side,
> but when I bring in "ragged-right = ##f" then it breaks:
> 
> I assume you have a solution for that issue?

Very simple, but not obvious from my cropped screenshot,
I right-justify the responses.

I don't stretch the versicles at all, and I set them with a breve
or semibreve (reciting note) and stemless crochets, avoiding any
indication of rhythm. (With the commonly used Ferial versicles,
only "O God make speed to save us" is entirely crochets, with no
reciting note.)

I don't like to stretch the responses music much at all, because
I find that makes it more difficult to read. So a short V pair
will have a wide margin to its left.

Right-justification is used by Shorter House in their Book of New
Responses, and by Church Music Society in their 1993 Watkins Shaw
edition of Preces and Responses. OTOH the older Atkins/Fellowes
edition of the latter had its V placed centrally.

I've attached a much-reduced illustration of one set (Smith/Stone).
On page 2, the choir sings everything after the 2nd versicle;
page 4 has the Lord's Prayer; and the final line of music is a
concatenation of the three Amens.

I've also attached my Plainlayout file, used here for the versicles.
I set the size externally because I use much larger sizes than here
with less familiar plainsong, like the Gospels of the Passion, and
the dreaded liturgical tracts.

  plainlayout = \layout {
\plainlayout
#(layout-set-staff-size 9)
  }

Cheers,
David.
\version "2.25.9" % 2016-05-04

%% Sets up \plainlayout, which is local, designed not to interfere
%% with the top-level layouts, which are cumulative.
%% Used for interspersing plainsong sections with normal music.

plainlayout = \layout {
  indent = 0
  ragged-right = ##t
  \context {
\Score
timing = ##f
\override SpacingSpanner.shortest-duration-space = #3.0
  }
  \context {
\Staff
\omit TimeSignature
\override BreathingSign.text = #(make-musicglyph-markup "scripts.tickmark")
  }
  \context {
\Voice
\omit Stem
\omit Flag
\override Slur.direction = #UP
  }
  \context {
\Lyrics
\override LyricHyphen.minimum-distance = #1.0
  }
}


Re: Highlighting lyric words

2024-04-24 Thread Aaron Hill

On 2024-04-24 4:05 pm, Walt North wrote:
Thanks, that's close enough to what I wanted.  I was originally for 
yellow background with back letters... but red (or other bright) font 
will suffice.



Here is an (over-engineered and probably bug-ridden) approach:


\version "2.25.13"

#(define-markup-command
  (highlight layout props arg) (markup?)
  #:category other
  #:properties ((blot 0.2)
(color yellow)
(padding 0.2))
  (let* ((stencil (interpret-markup layout props arg))
 (strut (interpret-markup layout props
  #{ \markup qxb #}))
 (x-extent (ly:stencil-extent stencil X))
 (y-extent (interval-union
 (ly:stencil-extent stencil Y)
 (ly:stencil-extent strut Y)))
 (x-extent-wide (interval-widen x-extent padding))
 (y-extent-wide (interval-widen y-extent padding)))
(interpret-markup layout props #{
  \markup \combine
\with-color #color
  \with-dimensions #x-extent #y-extent
  \filled-box #x-extent-wide #y-extent-wide #blot
\stencil #stencil
#})))

#(define (highlighter blot color padding)
  (grob-transformer 'stencil
(lambda (grob orig)
  (grob-interpret-markup grob #{
\markup
  \override #`(blot . ,blot)
  \override #`(color . ,color)
  \override #`(padding . ,padding)
  \highlight \stencil #orig
  #}

\markup {
  \pad-around #1
  \override #'(blot . 1.5)
  \override #`(color . ,(x11-color 'orange))
  \override #'(padding . 0.5)
  \highlight \line { \bold lorem \italic ipsum }
}

myHighlight = \override LyricText.stencil =
  #(highlighter 0.6 (x11-color 'cornflowerblue) 0.1)

\paper { indent = 0 }
{ \repeat unfold 3 { b'4 4 2 } }
\addlyrics {
  no high -- light
  \myHighlight high --
  \tweak font-family #'sans
  \tweak font-series #'bold
  light -- er
  \undo \myHighlight none
  \once \myHighlight once
  done
}



-- Aaron Hill

Re: Highlighting lyric words

2024-04-24 Thread Walt North
Thanks, that's close enough to what I wanted.  I was originally for 
yellow background with back letters... but red (or other bright) font 
will suffice.


Walt

On 4/24/2024 7:33 AM, William Rehwinkel wrote:
I don't know what you mean by highlighting. But you can override 
properties of text in lyrics like this:


-William

% --
\version "2.25.7"

\relative c' {
  c4 c
} \addlyrics {
  Hello \once\override LyricText.color = #red world
}


On 4/23/24 23:18, Walt North wrote:
I have found how to highlight notes in the music.  Similarly is there 
anyway to highlight either individual lyric words or perhaps one stanza?









Fwd: Figured bass

2024-04-24 Thread Jakob Pedersen

You forgot the lilypond list email, Dimitri.


 Forwarded Message 
Subject:Re: Figured bass
Date:   Thu, 25 Apr 2024 01:37:09 +0300
From:   Dimitri Sykias 
To: Jakob Pedersen 



OK. I found it: \set figuredBassAlterationDirection = #RIGHT


On 25 Apr 2024, at 1:32 AM, Dimitri Sykias  wrote:

\version "2.24.3"

<<
  \new Voice {
    \relative c' {
      \omit Score.TimeSignature
      \time 4/4
      \textMark "a)"
      c1  \bar "||"
      \textMark "b)"
      bes' \bar "||"
    }
  }

  \figures {
    \override FiguredBass.BassFigure.font-size = #2
    <6- 4> <6_> }
>>




On 25 Apr 2024, at 1:19 AM, Jakob Pedersen  wrote:

Hi again

You should probably supply a tiny working example for the smarter 
people to have a look at: 
http://lilypond.org/doc/v2.24/Documentation/web/tiny-examples


Best wishes,
Jakob

On 25.04.2024 00.15, Dimitri Sykias wrote:

Hi Jacob
Thanks for the reply.
When I use for ex. (Version "2.24.1”)
\figures {
    \override FiguredBass.BassFigure.font-size = #2
    <6- 4> <6> <6- 4-> <_-> <5-> <5+ _+> < 5- _-> <6 _+> <_+> <5- _->}
accidentals are placed at the left side of the number.


On 25 Apr 2024, at 1:10 AM, Jakob Pedersen  wrote:

Hi Dimitri

Isn't that the standard as shown in the example? 
http://lilypond.org/doc/v2.24/Documentation/notation/figured-bass


Best wishes,
Jakob

On 25.04.2024 00.03, Dimitri Sykias wrote:

In Figured bass is it possible to place accidentals at the right side of the 
number? (Ex. 6b, 5#)
Thanks!










Re: Figured bass

2024-04-24 Thread Dimitri Sykias
\version "2.24.3"

<<
  \new Voice {
\relative c' {
  \omit Score.TimeSignature
  \time 4/4
  \textMark "a)" 
  c1  \bar "||"
  \textMark "b)"
  bes' \bar "||"
}
  }

  \figures {
\override FiguredBass.BassFigure.font-size = #2
<6- 4> <6_> }
>>



> On 25 Apr 2024, at 1:19 AM, Jakob Pedersen  wrote:
> 
> Hi again
> 
> You should probably supply a tiny working example for the smarter people to 
> have a look at: http://lilypond.org/doc/v2.24/Documentation/web/tiny-examples
> 
> Best wishes,
> Jakob
> 
> On 25.04.2024 00.15, Dimitri Sykias wrote:
>> Hi Jacob
>> Thanks for the reply.
>> When I use for ex. (Version "2.24.1”)
>> \figures {
>> \override FiguredBass.BassFigure.font-size = #2
>> <6- 4> <6> <6- 4-> <_-> <5-> <5+ _+> < 5- _-> <6 _+> <_+> <5- _->}
>> accidentals are placed at the left side of the number. 
>> 
>>> On 25 Apr 2024, at 1:10 AM, Jakob Pedersen  
>>>  wrote:
>>> 
>>> Hi Dimitri
>>> 
>>> Isn't that the standard as shown in the example? 
>>> http://lilypond.org/doc/v2.24/Documentation/notation/figured-bass
>>> 
>>> Best wishes,
>>> Jakob
>>> 
>>> On 25.04.2024 00.03, Dimitri Sykias wrote:
 In Figured bass is it possible to place accidentals at the right side of 
 the number? (Ex. 6b, 5#)
 Thanks!
>>> 
>> 
> 



Re: Figured bass

2024-04-24 Thread Jakob Pedersen

Hi again

You should probably supply a tiny working example for the smarter people 
to have a look at: 
http://lilypond.org/doc/v2.24/Documentation/web/tiny-examples


Best wishes,
Jakob

On 25.04.2024 00.15, Dimitri Sykias wrote:

Hi Jacob
Thanks for the reply.
When I use for ex. (Version "2.24.1”)
\figures {
    \override FiguredBass.BassFigure.font-size = #2
    <6- 4> <6> <6- 4-> <_-> <5-> <5+ _+> < 5- _-> <6 _+> <_+> <5- _->}
accidentals are placed at the left side of the number.


On 25 Apr 2024, at 1:10 AM, Jakob Pedersen  wrote:

Hi Dimitri

Isn't that the standard as shown in the example? 
http://lilypond.org/doc/v2.24/Documentation/notation/figured-bass


Best wishes,
Jakob

On 25.04.2024 00.03, Dimitri Sykias wrote:

In Figured bass is it possible to place accidentals at the right side of the 
number? (Ex. 6b, 5#)
Thanks!






Re: Figured bass

2024-04-24 Thread Dimitri Sykias
Hi Jacob
Thanks for the reply.
When I use for ex. (Version "2.24.1”)
\figures {
\override FiguredBass.BassFigure.font-size = #2
<6- 4> <6> <6- 4-> <_-> <5-> <5+ _+> < 5- _-> <6 _+> <_+> <5- _->}
accidentals are placed at the left side of the number. 

> On 25 Apr 2024, at 1:10 AM, Jakob Pedersen  wrote:
> 
> Hi Dimitri
> 
> Isn't that the standard as shown in the example? 
> http://lilypond.org/doc/v2.24/Documentation/notation/figured-bass
> 
> Best wishes,
> Jakob
> 
> On 25.04.2024 00.03, Dimitri Sykias wrote:
>> In Figured bass is it possible to place accidentals at the right side of the 
>> number? (Ex. 6b, 5#)
>> Thanks!
> 



Re: Figured bass

2024-04-24 Thread Jakob Pedersen

Hi Dimitri

Isn't that the standard as shown in the example? 
http://lilypond.org/doc/v2.24/Documentation/notation/figured-bass


Best wishes,
Jakob

On 25.04.2024 00.03, Dimitri Sykias wrote:

In Figured bass is it possible to place accidentals at the right side of the 
number? (Ex. 6b, 5#)
Thanks!


Figured bass

2024-04-24 Thread Dimitri Sykias
In Figured bass is it possible to place accidentals at the right side of the 
number? (Ex. 6b, 5#)
Thanks!


Re: Converting \page-ref value to number type

2024-04-24 Thread Benjamin Bruce
Here is an updated (tinier) example:

\version "2.24"

{ 
  \label #'myLabel
  c4 c c
}

\markup #(markup #:page-ref 'myLabel "0" "?")

This displays the label's page number, but I still can't figure out how to 
extract that value so I can do things with it. Looking forward to your ideas. 


Ѫѯ 2024-04-24 Ѩё 08:47, Benjamin Bruce  ѮѴё:
> Hello all,
> I am just now learning how to use labels and \page-ref to retrieve the 
> page number where a label is located.
> I would like to use the value returned by \page-ref to do simple math 
> in Scheme. I am able to pass the label to a markup command, but I can't 
> figure out how to get it into a number format so I can manipulate it. 
> Any tips? Here is my tiny example:
>
> \version "2.24"
>
> { 
>   \label #'myLabel
>   c4 c c
> }
>
> #(define-markup-command 
>   (page-number-calculations layout props label) (markup?)
>   ; Throws error "Wrong type argument in position 1"
>   (interpret-markup layout props (+ label 1))
> )
>
> myLabel = \markup { \page-ref #'myLabel "0" "?" }
> \markup \page-number-calculations \myLabel



Re: Mixed ChoirGroup: Solo/Choir

2024-04-24 Thread Johannes Roeßler

Hey David,

it works - but I am running into an issue with short passages.
I would like to stretch the choir part to the right side,
but when I bring in "ragged-right = ##f" then it breaks:

I assume you have a solution for that issue?

Best regards
Johannes


8< 
%

\version "2.24.0"

#(set-global-staff-size 18)

\paper
{
  top-margin = 1.0 \cm
  bottom-margin = 1.0 \cm
  left-margin = 1\cm
  %line-width = 16 \cm
  ragged-bottom = ##t
  ragged-last-bottom = ##f
  %ragged-right = ##f
}


global = {
  \key f \major
  \time 4/4
  \partial 4
  \dynamicUp
}

st={\once \override Slur.transparent = ##t }

rot={
  \stopStaff
  \startStaff
  \override NoteHead.color = #(x11-color 'DarkRed)
  \override Dots.color = #(x11-color 'DarkRed)
  \override Staff.BarLine.color = #(x11-color 'DarkRed)
  \override Staff.Clef.color = #(x11-color 'DarkRed)
  \override Staff.KeySignature.color = #(x11-color 'DarkRed)
  \override Rest.color = #(x11-color 'DarkRed)
  \override Stem.color = #(x11-color 'DarkRed)
  \override Stem.transparent = ##t
  \override Staff.StaffSymbol.color  = #(x11-color 'DarkRed)
  \override Staff.TimeSignature.color =  #(x11-color 'DarkRed)
  }

Acantor = \relative c {
  \key f \major
  \clef "violin_8"
  \cadenzaOn
  \rot
   f4 f f g
}


Avtext= \lyricmode {
  \override Lyrics.LyricText.color = #(x11-color 'DarkRed) Praise ye 
the Lord

}


Aintonation = \markup {
  \score {

    \new Staff = staff <<

  \new Voice { \Acantor }
  \addlyrics \with { alignAboveContext = staff } { \Avtext }
    >>
    \layout {  }
  }
   \hspace #5
}

cantus = \relative c''{
  \global \cadenzaOff
a4 g( d) d8 (f) 8() 1 \fermata\bar "|." \break

}

lyricscantus = \lyricmode {

The Lord's name be praised!

}

altus = \relative c' {
  \global
\st d8( c) h4(c) d8(c) b4 d 1\fermata
 }


tenor =  \relative c' {
  \global
a4 g(f) f a8(g) a1\fermata
}




bassus  = \relative c {
  \global
d4 g,(a) b8(a) g4 d1\fermata
}



\score {
  \new ChoirStaff \with { \override 
StaffGrouper.staff-staff-spacing.basic-distance = #12 }

  <<
    \new Staff <<
  \global
  \new Voice="v1" {
    %\set Staff.instrumentName="Sopran"
    \set Staff.midiInstrument = "oboe"
    \clef "treble"
    \cantus
  }
  \new Lyrics \lyricsto "v1" { \lyricscantus }
    >>


    \new Staff <<
  \global
  \new Voice="v2" {
    %\set Staff.instrumentName="Alt"
    \set Staff.midiInstrument = "clarinet"
    \clef "treble"
    \altus
  }
  \new Lyrics \lyricsto "v2" { \lyricscantus }

    >>

    \new Staff <<

  \override Staff.InstrumentName.self-alignment-X = #RIGHT
  \set Staff.instrumentName = \Aintonation
  \clef "violin_8" \global
  \new Voice { \tenor }
  \addlyrics { \lyricscantus }
    >>
    \new Staff <<
  \global
  \new Voice="v4" {
    %\set Staff.instrumentName="Bass"
    \set Staff.midiInstrument = "cello"
    \clef "bass"
    \bassus
  }
  \new Lyrics \lyricsto "v4" {\lyricscantus}
    >>
  >>

  \layout
  {
    indent = 5.5 \cm
    \context {\Staff \RemoveEmptyStaves }
  }


  \midi {
    \tempo 4=100
  }

}


--
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
www.avast.com

Re: Transposing into related modes

2024-04-24 Thread Stephan Schöll

Hi Giles

I've never worked with modalTranspose before, but based on the documentation

https://lilypond.org/doc/v2.25/Documentation/notation/modal-transformations

I created the following snippet (specially bar 3 and 4):

\version "2.25.9"

diatonicScale = \relative { c' d e f g a b }
motif = \relative { c'8 d e f g a b c }

\new Staff {
  \key c \major
  \motif
  \modalTranspose c e \diatonicScale \motif
  \transpose e c {\modalTranspose c e \diatonicScale \motif}
  \key c \phrygian \transpose e c {\modalTranspose c e \diatonicScale
\motif}

}

Does this (3rd and 4th bar) contain something useful to you? To my
understanding you need to "seed" the modalTranspose function with a
scale (\diatonicScale).

HTH
Stephan

On 24.04.2024 16:39, Giles Boardman wrote:

Hello,


I have been aware of Lilypond for some time but have only just taken the
plunge and started to use it.
I am in awe of the people who have created this astonishing resource,
so, first of all, a huge thank you to everyone involved.
The functionality is amazing, the documentation world class and the
learning curve not so steep as I was expecting.
Notwithstanding, I have run into something I can't work out.
I have experienced this several times over the past few days and have
become accustomed to being able to track down enough information to work
solve my own problems. On this occasion, I have failed.

Of course, it's possible that Lilypond doesn't do what I am trying to
make it do, but that seems immensely unlikely, given what it can do is
beyond my musical horizons and even imagination.

I use a very old MIDI version of Cakewalk. It has what it calls a "MIDI
effect" to carry out more sophisticated/esoteric transpositions. For
example, one can apply a substitution to create a Phrygian mode version
of a melody, or an Aeolian or harmonic minor.

I am typesetting a composition that used this effect and am hoping to
create the Lilypond representation in a similar way. I have found
\Transpose and note that when I specify key signatures I can using
\Ionian, \Aeolian etc. as well as \major \minor and can even add to the
.ly file with the schemas for sharps and flats. This led me to try and
append \Ionian etc. to \Transpose but that doesn't work.

I thought I had found the solution in \modalTranspose but I am
completely mystified by what that is doing - from the results I'm
getting I think the problem is that I don't understand what it is meant
to be doing. I also found a reference to a modal.ly  file(?) which isn't
in my installation but which I thought might be a clue. I went looking
for that, but haven't been able to find it.

Anyway, there are  two possible positive outcomes for me, in writing to
this ...

 1.
I am saved further research and head-scratching and experimentation
by someone telling me it's not something Lilypond does
 2.
Someone can either tell me how to do this or point me at the
documentation for it


In a nutshell, I imagine the solution as being equivalent to being able
to type

\transpose c a\minor { music } and getting my c major notes modified to
a minor
or
\transpose c c\phrygian { music} and getting my c major notes adjusted
to the phrygian mode.


Many thanks in advance for any help that may be forthcoming

Giles







Transposing into related modes

2024-04-24 Thread Giles Boardman
Hello,


I have been aware of Lilypond for some time but have only just taken the plunge 
and started to use it.
I am in awe of the people who have created this astonishing resource, so, first 
of all, a huge thank you to everyone involved.
The functionality is amazing, the documentation world class and the learning 
curve not so steep as I was expecting.
Notwithstanding, I have run into something I can't work out.
I have experienced this several times over the past few days and have become 
accustomed to being able to track down enough information to work solve my own 
problems. On this occasion, I have failed.

Of course, it's possible that Lilypond doesn't do what I am trying to make it 
do, but that seems immensely unlikely, given what it can do is beyond my 
musical horizons and even imagination.

I use a very old MIDI version of Cakewalk. It has what it calls a "MIDI effect" 
to carry out more sophisticated/esoteric transpositions. For example, one can 
apply a substitution to create a Phrygian mode version of a melody, or an 
Aeolian or harmonic minor.

I am typesetting a composition that used this effect and am hoping to create 
the Lilypond representation in a similar way. I have found \Transpose and note 
that when I specify key signatures I can using \Ionian, \Aeolian etc. as well 
as \major \minor and can even add to the .ly file with the schemas for sharps 
and flats. This led me to try and append \Ionian etc. to \Transpose but that 
doesn't work.

I thought I had found the solution in \modalTranspose but I am completely 
mystified by what that is doing - from the results I'm getting I think the 
problem is that I don't understand what it is meant to be doing. I also found a 
reference to a modal.ly  file(?) which isn't in my installation but which I 
thought might be a clue. I went looking for that, but haven't been able to find 
it.

Anyway, there are  two possible positive outcomes for me, in writing to this ...


  1.
I am saved further research and head-scratching and experimentation by someone 
telling me it's not something Lilypond does
  2.
Someone can either tell me how to do this or point me at the documentation for 
it

In a nutshell, I imagine the solution as being equivalent to being able to type

\transpose c a\minor { music } and getting my c major notes modified to a minor
or
\transpose c c\phrygian { music} and getting my c major notes adjusted to the 
phrygian mode.


Many thanks in advance for any help that may be forthcoming

Giles





Converting \page-ref value to number type

2024-04-24 Thread Benjamin Bruce
Hello all,
I am just now learning how to use labels and \page-ref to retrieve the page 
number where a label is located.
I would like to use the value returned by \page-ref to do simple math in 
Scheme. I am able to pass the label to a markup command, but I can't figure out 
how to get it into a number format so I can manipulate it. Any tips? Here is my 
tiny example:

\version "2.24"

{ 
  \label #'myLabel
  c4 c c
}

#(define-markup-command 
  (page-number-calculations layout props label) (markup?)
  ; Throws error "Wrong type argument in position 1"
  (interpret-markup layout props (+ label 1))
)

myLabel = \markup { \page-ref #'myLabel "0" "?" }
\markup \page-number-calculations \myLabel




Re: Highlighting lyric words

2024-04-24 Thread William Rehwinkel via LilyPond user discussion
I don't know what you mean by highlighting. But you can override 
properties of text in lyrics like this:


-William

% --
\version "2.25.7"

\relative c' {
  c4 c
} \addlyrics {
  Hello \once\override LyricText.color = #red world
}


On 4/23/24 23:18, Walt North wrote:
I have found how to highlight notes in the music.  Similarly is there 
anyway to highlight either individual lyric words or perhaps one stanza?





--
William Rehwinkel - Oberlin College and Conservatory '24

will...@williamrehwinkel.net

PGP key: https://ftp.williamrehwinkel.net/pubkey.txt


OpenPGP_signature.asc
Description: OpenPGP digital signature