Re: lyrics on rhythmicstaff?

2023-03-07 Thread Nate
Thank you. Quoting it plus >>  worked, though I still had to use the {}
around << >> to get it to work with lualatex.

On Tue, Mar 7, 2023, 12:08 PM Jean Abou Samra  wrote:

> Le mardi 07 mars 2023 à 11:55 -0500, Nate a écrit :
>
> I'm trying to set 'lyrics' (chords which do not match lilypond's
> interpretation of the notes) to notes on a RhythmicStaff, but I'm not
> seeing the lyrics. I thought maybe it was the rhythmicstaff that didn't
> like lyrics, but perhaps they need to be in a score? This is inside a
> snippet set inside a latex fbox. The notes print as expected, and the
> example seems to follow the docs except for the score. Do lyrics need to be
> inside a score? Did I miss something else?
>
>\lilypond[noindent, nofragment]{   \new RhythmicStaff \with {
> \remove "Staff_symbol_engraver" \remove "Clef_engraver" \remove
> "Time_signature_engraver"} {
> \new Voice = "melody" { \relative { c8 c4. c8 c8 } }   }
> \new Lyrics  { \lyricsto "melody" { 1 3 3 3  }  }
>}
>
> If I understand correctly, you're seeking to literally print digits like
> “1” and “3” under the rhythmic staff. Is that right?
>
> Naked digits are LilyPond's syntax for durations. LilyPond gives errors
> messages like
>
> /tmp/frescobaldi-p_ajfnr0/tmp277_r7m5/document.ly:7:41: error: not a duration
>   \new Lyrics  { \lyricsto "melody" { 1
> 3 3 3 } }
>
> on your code because it tries to interpret "3" as a duration, while only
> "1", "2", "4", "8" (plus dotted durations etc.) are valid. If you want them
> literally, you need to quote them, as in
>
> \version "2.24.1"
>
> <<
>   \new RhythmicStaff \with { \remove "Staff_symbol_engraver" \remove 
> "Clef_engraver" \remove "Time_signature_engraver"} {
> \new Voice = "melody" { \relative { c8 c4. c8 c8 } }
>   }
>   \new Lyrics  { \lyricsto "melody" { "1" "3" "3" "3" } }
> >>
>
> Also note that you should use << >>, not { }, around the \new
> RhythmicStaff and \new Lyrics commands, since { } is the syntax for
> putting expressions in sequence, and you want the lyrics at the same time
> as the melody, not after the melody has ended.
>


Re: Not sure how to construct an example--need to mark repeat signs underneath, without wrapping to next line

2023-03-07 Thread Matthew Probst
Oh, I was operating on old/incorrect info on how to do this.  That works
perfectly, thanks!

On Tue, Mar 7, 2023 at 10:45 AM Jean Abou Samra  wrote:

> Le mardi 07 mars 2023 à 10:29 -0600, Matthew Probst a écrit :
>
> I'm not quite sure how to construct an example--I'm working on my scoring
> for rock/funk band, and I have everything under control due to the great
> help I've received here. One final sticking point is that I like to mark
> repeat signs underneath with a "2x" or "4x".  I've been using  tweaked
> \marks:
>
> \tweak direction #DOWN \mark "4x"
>
> Problem is, if the closing repeat mark is at the end of a line of music as
> it decides to typeset it, this text appears at the beginning of the next
> line instead of at the ending repeat barline where I want it.
>
> I'm guessing that this is not the best way to mark a bar, and I'm not
> finding the right terminology/concepts to search for what I want on my own.
>
> For example:
>
> \version "2.24.1"
>
> \repeat volta 2 {
>   c'1 1 1 1
>   \tweak direction #DOWN \textEndMark "4×"
> }
>
> See
> https://lilypond.org/doc/v2.24/Documentation/notation/writing-text.html#text-marks
>
> For a mark at the beginning of the line, you'd use \textMark instead of
> \textEndMark.
>
> Note that you could also use \tweak break-visibility
> #begin-of-line-invisible \mark "4×" instead of \textEndMark "4×", but
> using \mark for a textual mark has shortcomings, and it is discouraged
> starting from version 2.24 in favor of \textMark and \textEndMark. It's
> only being kept for compatibility. (This is only about \mark ; \mark
> \default is still recommended for a rehearsal mark.)
>


Re: lyrics on rhythmicstaff?

2023-03-07 Thread Jean Abou Samra
Le mardi 07 mars 2023 à 11:55 -0500, Nate a écrit :

> I'm trying to set 'lyrics' (chords which do not match lilypond's 
> interpretation of the notes) to notes on a RhythmicStaff, but I'm not seeing 
> the lyrics.
> I thought maybe it was the rhythmicstaff that didn't like lyrics, but perhaps 
> they need to be in a score? This is inside a snippet set inside a latex fbox. 
> The notes print as expected, and the example seems to follow the docs except 
> for the score. Do lyrics need to be inside a score? Did I miss something 
> else? 
> 
>    \lilypond[noindent, nofragment]{
>       \new RhythmicStaff \with { \remove "Staff_symbol_engraver" \remove 
> "Clef_engraver" \remove "Time_signature_engraver"} {  
>             \new Voice = "melody" { \relative { c8 c4. c8 c8 } } 
>   }
>       \new Lyrics  { \lyricsto "melody" { 1 3 3 3  }  }  
>    }

If I understand correctly, you're seeking to literally print digits like “1” 
and “3” under the rhythmic staff. Is that right?

Naked digits are LilyPond's syntax for durations. LilyPond gives errors 
messages like

```
/tmp/frescobaldi-p_ajfnr0/tmp277_r7m5/document.ly:7:41: error: not a duration
  \new Lyrics  { \lyricsto "melody" { 1 
3 3 3 } }
```

on your code because it tries to interpret "3" as a duration, while only "1", 
"2", "4", "8" (plus dotted durations etc.) are valid. If you want them 
literally, you need to quote them, as in

```
\version "2.24.1"

<<
  \new RhythmicStaff \with { \remove "Staff_symbol_engraver" \remove 
"Clef_engraver" \remove "Time_signature_engraver"} {
\new Voice = "melody" { \relative { c8 c4. c8 c8 } } 
  }
  \new Lyrics  { \lyricsto "melody" { "1" "3" "3" "3" } }
>>
```

Also note that you should use `<< >>`, not `{ }`, around the `\new 
RhythmicStaff` and `\new Lyrics` commands, since `{ }` is the syntax for 
putting expressions in sequence, and you want the lyrics at the same time as 
the melody, not after the melody has ended.


signature.asc
Description: This is a digitally signed message part


lyrics on rhythmicstaff?

2023-03-07 Thread Nate
I'm trying to set 'lyrics' (chords which do not match lilypond's
interpretation of the notes) to notes on a RhythmicStaff, but I'm not
seeing the lyrics.
I thought maybe it was the rhythmicstaff that didn't like lyrics, but
perhaps they need to be in a score? This is inside a snippet set inside a
latex fbox.
The notes print as expected, and the example seems to follow the docs
except for the score. Do lyrics need to be inside a score? Did I miss
something else?

   \lilypond[noindent, nofragment]{
  \new RhythmicStaff \with { \remove "Staff_symbol_engraver" \remove
"Clef_engraver" \remove "Time_signature_engraver"} {
\new Voice = "melody" { \relative { c8 c4. c8 c8 } }
  }
  \new Lyrics  { \lyricsto "melody" { 1 3 3 3  }  }
   }

[image: image.png]


Re: Not sure how to construct an example--need to mark repeat signs underneath, without wrapping to next line

2023-03-07 Thread Alexandre Loomis
You could also use \jump, for example

\version "2.24.1"

\repeat volta 2 {
  c'1 1 1 1
  \jump "4×"
}


On Tue, Mar 7, 2023 at 9:46 AM Jean Abou Samra  wrote:

> Le mardi 07 mars 2023 à 10:29 -0600, Matthew Probst a écrit :
>
> I'm not quite sure how to construct an example--I'm working on my scoring
> for rock/funk band, and I have everything under control due to the great
> help I've received here. One final sticking point is that I like to mark
> repeat signs underneath with a "2x" or "4x".  I've been using  tweaked
> \marks:
>
> \tweak direction #DOWN \mark "4x"
>
> Problem is, if the closing repeat mark is at the end of a line of music as
> it decides to typeset it, this text appears at the beginning of the next
> line instead of at the ending repeat barline where I want it.
>
> I'm guessing that this is not the best way to mark a bar, and I'm not
> finding the right terminology/concepts to search for what I want on my own.
>
> For example:
>
> \version "2.24.1"
>
> \repeat volta 2 {
>   c'1 1 1 1
>   \tweak direction #DOWN \textEndMark "4×"
> }
>
> See
> https://lilypond.org/doc/v2.24/Documentation/notation/writing-text.html#text-marks
>
> For a mark at the beginning of the line, you'd use \textMark instead of
> \textEndMark.
>
> Note that you could also use \tweak break-visibility
> #begin-of-line-invisible \mark "4×" instead of \textEndMark "4×", but
> using \mark for a textual mark has shortcomings, and it is discouraged
> starting from version 2.24 in favor of \textMark and \textEndMark. It's
> only being kept for compatibility. (This is only about \mark ; \mark
> \default is still recommended for a rehearsal mark.)
>


Re: Not sure how to construct an example--need to mark repeat signs underneath, without wrapping to next line

2023-03-07 Thread Jean Abou Samra
Le mardi 07 mars 2023 à 10:29 -0600, Matthew Probst a écrit :

> I'm not quite sure how to construct an example--I'm working on my scoring for 
> rock/funk band, and I have everything under control due to the great help 
> I've received here.
> One final sticking point is that I like to mark repeat signs underneath with 
> a "2x" or "4x".  I've been using  tweaked \marks:
> 
>     \tweak direction #DOWN \mark "4x"
> 
> Problem is, if the closing repeat mark is at the end of a line of music as it 
> decides to typeset it, this text appears at the beginning of the next line 
> instead of at the ending repeat barline where I want it.
> 
> I'm guessing that this is not the best way to mark a bar, and I'm not finding 
> the right terminology/concepts to search for what I want on my own.


For example:

```
\version "2.24.1"

\repeat volta 2 {
  c'1 1 1 1
  \tweak direction #DOWN \textEndMark "4×"
}
```

See 
[https://lilypond.org/doc/v2.24/Documentation/notation/writing-text.html#text-marks](https://lilypond.org/doc/v2.24/Documentation/notation/writing-text.html#text-marks)

For a mark at the beginning of the line, you'd use `\textMark` instead of 
`\textEndMark`.

Note that you could also use `\tweak break-visibility #begin-of-line-invisible 
\mark "4×"` instead of `\textEndMark "4×"`, but using `\mark` for a textual 
mark has shortcomings, and it is discouraged starting from version 2.24 in 
favor of `\textMark` and `\textEndMark`. It's only being kept for 
compatibility. (This is only about `\mark `; `\mark \default` is still 
recommended for a rehearsal mark.)



signature.asc
Description: This is a digitally signed message part


Not sure how to construct an example--need to mark repeat signs underneath, without wrapping to next line

2023-03-07 Thread Matthew Probst
I'm not quite sure how to construct an example--I'm working on my scoring
for rock/funk band, and I have everything under control due to the great
help I've received here.

One final sticking point is that I like to mark repeat signs underneath
with a "2x" or "4x".  I've been using  tweaked \marks:

\tweak direction #DOWN \mark "4x"

Problem is, if the closing repeat mark is at the end of a line of music as
it decides to typeset it, this text appears at the beginning of the next
line instead of at the ending repeat barline where I want it.

I'm guessing that this is not the best way to mark a bar, and I'm not
finding the right terminology/concepts to search for what I want on my own.

Any help would be greatly appreciated.  You can see the score and parts and
lilypond here:

https://files.bobpat.band/s/Mdf5KaYtH5kScSe

Pardon my part writing errors and such, still polishing that up in the horn
parts.  Look for a separate "part" in the includes/parts.ly file, which
gets added as an invisible staff to the score and parts main .ly files in
the root folder.  I'm including some Lilypond scheme files created for me
by this list but they shouldn't be part of this issue.

Thanks in advance.


Re: How to place a TextScript in the middle of the Staff?

2023-03-07 Thread Michael Gerdau
\override TextScript.outside-staff-priority = ##f 

If you don't turn off outside-staff-priority, it will try to prevent the 
collision, moving the text script out of the staff.


Thanks, that was the secret ingredient...I knew it had to be something 
simple :)


Kind regards,
Michael
--
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver



Re: How to place a TextScript in the middle of the Staff?

2023-03-07 Thread Jean Abou Samra
Le mardi 07 mars 2023 à 10:46 +0100, Michael Gerdau a écrit :

> Hi list!
> 
> I'm trying to place an articulation right in the middle of the Staff and 
> I seem to lack the proper incantation. When I increase Y-offset to e.g. 
> #3 the little "z" is printed above the Staff. I want it to appear at 
> about the gis position on top of the stem. What do I have to adjust to 
> make it work?
> 
> \version "2.25.2"
> 
> music = \relative d' {
>    \override TextScript.Y-offset=#2
>    \override TextScript.X-offset=#0.5
>    d2_\markup { \musicglyph "z" }\repeatTie r2
> }
> 
> \score {
>    \music
> }


```
\version "2.25.2"

music = \relative d' {
   \override TextScript.Y-offset=#0
   \override TextScript.outside-staff-priority = ##f
   \override TextScript.X-offset=#0.5
   d2_\markup \vcenter \musicglyph "z" \repeatTie r2
}

\score {
   \music
}
```

If you don't turn off outside-staff-priority, it will try to prevent the 
collision, moving the text script out of the staff.


signature.asc
Description: This is a digitally signed message part


How to place a TextScript in the middle of the Staff?

2023-03-07 Thread Michael Gerdau

Hi list!

I'm trying to place an articulation right in the middle of the Staff and 
I seem to lack the proper incantation. When I increase Y-offset to e.g. 
#3 the little "z" is printed above the Staff. I want it to appear at 
about the gis position on top of the stem. What do I have to adjust to 
make it work?


\version "2.25.2"

music = \relative d' {
  \override TextScript.Y-offset=#2
  \override TextScript.X-offset=#0.5
  d2_\markup { \musicglyph "z" }\repeatTie r2
}

\score {
  \music
}

Kind regards,
Michael
--
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver