Re: Tremolo/triplet problem

2024-03-06 Thread William Rehwinkel via LilyPond user discussion

Dear Ralph,

I think this replicates how the original score looks:

\version "2.25.7"

\relative b {
  \clef alto
  \time 4/4
  \tuplet 6/4 { b2.:8 } c4.*2/3:8 d4.*2/3:8 | c2.*2/3:8 b4.*2/3:8 a4.*2/3:8
}

-William

On 3/6/24 21:53, Ralph Palmer wrote:

Hi -

Thanks for all your work and for your help to me over a number of years.

I'm running into a problem I have no idea how to fix. I've looked at 
tremolos in the Notation Reference and in the Snippet Repository, but 
can't find a solution. I would appreciate any help. The first image is 
the result of tremoloTripletProblem.ly. The second image is from the 
score I'm trying to reproduce (albeit in a slightly more legible 
fashion, I hope).


tremoloTripletProblem.ly :

%

\version "2.24.0"

\language english

tremoloTripletProblem =
\relative c' {
   \clef alto
   \key bf \major
   \time 4/4

     \tuplet 3/2 4
     { bf8-.\pp( 8-. 8-. 8-. 8-. 8-.)
       c8-.( 8-. 8-. a8-. 8-. 8-.) |
     bf2.:6 c4.:3 d4:3 |
     c2.:6 bf4.:3 a4.:3 |
     }
}

\score {
   \tremoloTripletProblem
}

%%%

image.png


image.png
Any suggestions? I imagine the simplest solution would be to simply go 
with half and quarter notes as tripletted with the tremolo mark, but I 
kind of like the composer's notation.


All the best,

Ralph

__
Ralph Palmer
Seattle
USA
(he, him, his)
palmer.r.vio...@gmail.com 


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


Re: Tremolo/triplet problem

2024-03-06 Thread kieren

Hi Ralph,

Shouldn’t the d be 4. [not 4]?


bf2.:6 c4.:3 d4:3 |


Maybe I’m misunderstanding…?

Cheers,
Kieren.

Tremolo/triplet problem

2024-03-06 Thread Ralph Palmer
Hi -

Thanks for all your work and for your help to me over a number of years.

I'm running into a problem I have no idea how to fix. I've looked at
tremolos in the Notation Reference and in the Snippet Repository, but can't
find a solution. I would appreciate any help. The first image is the result
of tremoloTripletProblem.ly. The second image is from the score I'm trying
to reproduce (albeit in a slightly more legible fashion, I hope).

tremoloTripletProblem.ly :

%

\version "2.24.0"

\language english

tremoloTripletProblem =
\relative c' {
  \clef alto
  \key bf \major
  \time 4/4

\tuplet 3/2 4
{ bf8-.\pp( 8-. 8-. 8-. 8-. 8-.)
  c8-.( 8-. 8-. a8-. 8-. 8-.) |
bf2.:6 c4.:3 d4:3 |
c2.:6 bf4.:3 a4.:3 |
}
}

\score {
  \tremoloTripletProblem
}

%%%

[image: image.png]


[image: image.png]
Any suggestions? I imagine the simplest solution would be to simply go with
half and quarter notes as tripletted with the tremolo mark, but I kind of
like the composer's notation.

All the best,

Ralph

__
Ralph Palmer
Seattle
USA
(he, him, his)
palmer.r.vio...@gmail.com


Re: Tall bars in two-line music

2024-03-06 Thread David Wells
Great! Thank you so much!

On Wed, Mar 6, 2024, at 11:35 AM, Michael Werner wrote:
> Hi David,
> 
> On Wed, Mar 6, 2024 at 10:00 AM David Wells 
>  wrote:
>> __
>> Hi,
>> 
>> I'm working on typesetting some chants with two lines per staff and the 
>> resulting barlines are too tall. Tiny example:
> %< snip >%
>> 
>> Here, I expect the barlines to be the same height as the staff (i.e., not 
>> protrude) and I cannot figure out how to make that happen.
> 
> The property you'll want to modify here is the bar-extent of BarLine - this 
> sets the Y-extent of the bar line. Example:
> 
> \version "2.24.3"
> 
> \score
> {
>   \relative c'
>   {
> \time 9/4
> \slurDown
> 
> \override Staff.StaffSymbol.line-count = #2
> \override Staff.BarLine.bar-extent = #'(-0.5 . 0.5)
> f4(g) a f(g) a(g) g2 |
> f4(g) a f(g) a(g) g2 |
> \break
>   }
> }
> 
> which produces:
> 
> image.png
> 
> Have a look at https://lilypond.org/doc/v2.24/Documentation/internals/barline 
> for all the settings available for bar lines.
> --
> Michael

Re: Using old definition of bass figures for 6\\, 7\\, 9\\ ...

2024-03-06 Thread Martin Straeten
Thanks, that works fine

> Please try the attached solution.
> 
> 
>Werner
> \version "2.24.0"
> 
> \paper{
>  #(define fonts (set-global-fonts #:music "paganini"))
> 
>  #(add-text-replacements!
>`(("♭" . ,#{ \markup { \hspace #0.4 \raise #0.4 \smaller \smaller \flat } 
> #})
>  ; add more entries here
>  ))
> }
> 
> \figures {
>  \set figuredBassPlusDirection = #RIGHT
>  <7\\ 6 4 2\+> <4\+ _-> <3 5\+ 3 > <6\\ 4 3> <9\\>
> }
> 
> \layout {
>  \context {
>\Score
>figuredBassPlusStrokedAlist = #'()
>  }
> }




Re: search and replace on all included files on compile

2024-03-06 Thread Michael Winter via LilyPond user discussion
perfect thanks!

Mar 6, 2024, 14:35 by lilyp...@hillvisions.com:

> On 2024-03-06 10:56 am, Michael Winter via LilyPond user discussion wrote:
>
>> I have a programmatically generated score and am now realizing that I want 
>> to make a small tweak to text markups that are throughout the score in 
>> multiple files that are included at multiple levels. 
>>
>> " 1↑"  replace with " 1" (e.g. remove the up arrow when it is preceded by a 
>> 1)
>>
>> Is it possible to do this with a global search and replace on compile such 
>> that I do not need to edit each individual file (of which there are 
>> hundreds) manually?
>>
>
> LilyPond does support basic replacements for text markup:
>
> 
> \paper {
>  #(add-text-replacements! '(("1↑" . "1")))
> }
> 
>
>
> -- Aaron Hill
>



Re: search and replace on all included files on compile

2024-03-06 Thread Michael Winter via LilyPond user discussion
double thanks

Mar 6, 2024, 14:36 by j...@abou-samra.fr:

>
> Try
>
> \version "2.24.2"\paper {  #(add-text-replacements!'(("1↑" . "1")))}{ 
> c'^\markup "1↑" }
>
> Best,
>
>
> Jean
>
>

Re: search and replace on all included files on compile

2024-03-06 Thread Jean Abou Samra
Try

```
\version "2.24.2"

\paper {
  #(add-text-replacements!
'(("1↑" . "1")))
}

{ c'^\markup "1↑" }
```

Best,
 
Jean


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


Re: search and replace on all included files on compile

2024-03-06 Thread Aaron Hill
On 2024-03-06 10:56 am, Michael Winter via LilyPond user discussion 
wrote:
I have a programmatically generated score and am now realizing that I 
want to make a small tweak to text markups that are throughout the 
score in multiple files that are included at multiple levels. 


" 1↑"  replace with " 1" (e.g. remove the up arrow when it is preceded 
by a 1)


Is it possible to do this with a global search and replace on compile 
such that I do not need to edit each individual file (of which there 
are hundreds) manually?


LilyPond does support basic replacements for text markup:


\paper {
  #(add-text-replacements! '(("1↑" . "1")))
}



-- Aaron Hill



Re: search and replace on all included files on compile

2024-03-06 Thread Michael Winter via LilyPond user discussion
Thanks Curt,

Unfortunately, I have already manually edited to the extent that tweaking the 
generating program would result in a lot of lost work. Typically I try not to 
edit post generation, but that was not possible in this particular case.

I am on arch linux. And yes, I am sure it would be possible to do it through 
the terminal, but I am trying to avoid destructively editing the files (simply 
out of fear even though I could always roll back). I would be replacing only a 
few unicode characters, but many, many occurrences.

Best,

Michael

Mar 6, 2024, 14:22 by pla...@fishlet.com:

> Michael,
>
> You mentioned that the score is programmatically generated. If so, can
> you modify the generating program and regenerate the score?
>
> Otherwise, a more complete example would be nice. Are you trying to do a
> simple string replacement of a few (unicode) characters, or are you
> trying to replace larger chunks of LilyPond code?
>
> It would also help to know what operating system environment you are
> using. The answer may be to make a copy of the whole tree and run a
> search/replace utility recursively on all the files.
>
> Regards,
> Curt
>
> On 3/6/2024 10:56 AM, Michael Winter via LilyPond user discussion wrote:
>
>> I have a programmatically generated score and am now realizing that I
>> want to make a small tweak to text markups that are throughout the
>> score in multiple files that are included at multiple levels.
>>
>> " 1↑"  replace with " 1" (e.g. remove the up arrow when it is preceded
>> by a 1)
>>
>> Is it possible to do this with a global search and replace on compile
>> such that I do not need to edit each individual file (of which there
>> are hundreds) manually?
>>
>> I could do this through the terminal, but I would rather not
>> destructively edit the files.
>>
>> Thanks in advance!
>>
>> Best,
>>
>> Michael
>>



Re: search and replace on all included files on compile

2024-03-06 Thread Curt McDowell

Michael,

You mentioned that the score is programmatically generated. If so, can
you modify the generating program and regenerate the score?

Otherwise, a more complete example would be nice. Are you trying to do a
simple string replacement of a few (unicode) characters, or are you
trying to replace larger chunks of LilyPond code?

It would also help to know what operating system environment you are
using. The answer may be to make a copy of the whole tree and run a
search/replace utility recursively on all the files.

Regards,
Curt

On 3/6/2024 10:56 AM, Michael Winter via LilyPond user discussion wrote:

I have a programmatically generated score and am now realizing that I
want to make a small tweak to text markups that are throughout the
score in multiple files that are included at multiple levels.

" 1↑"  replace with " 1" (e.g. remove the up arrow when it is preceded
by a 1)

Is it possible to do this with a global search and replace on compile
such that I do not need to edit each individual file (of which there
are hundreds) manually?

I could do this through the terminal, but I would rather not
destructively edit the files.

Thanks in advance!

Best,

Michael




search and replace on all included files on compile

2024-03-06 Thread Michael Winter via LilyPond user discussion
I have a programmatically generated score and am now realizing that I want to 
make a small tweak to text markups that are throughout the score in multiple 
files that are included at multiple levels. 

" 1↑"  replace with " 1" (e.g. remove the up arrow when it is preceded by a 1)

Is it possible to do this with a global search and replace on compile such that 
I do not need to edit each individual file (of which there are hundreds) 
manually?

I could do this through the terminal, but I would rather not destructively edit 
the files.

Thanks in advance!

Best,

Michael

Re: [HELP] RemoveAllEmptyStaves not working.

2024-03-06 Thread Lucas Cavalcanti
Hello, Kieren. Your suggestion did fix the issue. Thank you.

Em qua., 6 de mar. de 2024 às 14:52, Kieren MacMillan <
kie...@kierenmacmillan.info> escreveu:

> Hi Lucas,
>
> > I've used the RemoveAllEmptyStaves command to remove (obviously) the
> unnecessary staffs. However, the drumkit doesn't get removed like it should.
> > The drumkit staff is independent by itself; it is not part of a group
> staff. It is, however, a DrumStaff.
> > I've looked at the documentation (Hiding Staves) and found a similar
> situation (the double bass not being removed). However, the D.B was not
> removed because it was part of a section/group staff. Adding injury to the
> cause, I was not able comprehend the use of "Keep_alive" commands.
>
> It’s a little “nuclear”, but…
>
> \layout {
>   \context {
> \Score
> \RemoveAllEmptyStaves
>   }
> }
>
> [Note the \Score rather than \Staff]
>
> Hope that helps!
> Kieren.
> __
>
> My work day may look different than your work day. Please do not feel
> obligated to read or respond to this email outside of your normal working
> hours.
>
>


Re: [HELP] RemoveAllEmptyStaves not working.

2024-03-06 Thread Kieren MacMillan
Hi Lucas,

> I've used the RemoveAllEmptyStaves command to remove (obviously) the 
> unnecessary staffs. However, the drumkit doesn't get removed like it should.
> The drumkit staff is independent by itself; it is not part of a group staff. 
> It is, however, a DrumStaff.
> I've looked at the documentation (Hiding Staves) and found a similar 
> situation (the double bass not being removed). However, the D.B was not 
> removed because it was part of a section/group staff. Adding injury to the 
> cause, I was not able comprehend the use of "Keep_alive" commands.

It’s a little “nuclear”, but…

\layout {
  \context {
\Score
\RemoveAllEmptyStaves
  }
}

[Note the \Score rather than \Staff]

Hope that helps!
Kieren.
__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




[HELP] RemoveAllEmptyStaves not working.

2024-03-06 Thread Lucas Cavalcanti
Hello. I'm writing a score of a song of which there are 16 measures of only
rests in two instruments (the rhythm and the drumkit). I've used the
RemoveAllEmptyStaves command to remove (obviously) the unnecessary staffs.
However, the drumkit doesn't get removed like it should.
The drumkit staff is independent by itself; it is not part of a group
staff. It is, however, a DrumStaff.
I've looked at the documentation (Hiding Staves
) and
found a similar situation (the double bass not being removed). However, the
D.B was not removed because it was part of a section/group staff. Adding
injury to the cause, I was not able comprehend the use of "Keep_alive"
commands.

Any help would be appreciated
Lucas
\version "2.24.3"

\layout {
  \context {
\Staff
\RemoveAllEmptyStaves
  }
}

tempomapnormal = {
  \numericTimeSignature
  \repeat unfold 2 {
  \time 6/4 \repeat unfold 6 { s4 }
  \time 4/4 \repeat unfold 3 {s4 s4 s4 s4} \break
  \repeat unfold 3 {s4 s4 s4 s4}
  \time 5/4 \repeat unfold 5 {s4} \break
  }
}
drumkit = \drummode { 
{
  
  \numericTimeSignature
  \time 6/4 
  4 \repeat unfold 5 r4
  \time 4/4
  \repeat unfold 6 {r4 r4 r4 r4}
  \time 5/4 r4 r4 r4 r4 r4
  %They have no difference. 
  %Both methods don't solve the issue.
  \time 6/4 \repeat unfold 6 r4
  \time 4/4 \repeat unfold 6 { r4 r4 r4 r4 }
  \time 5/4 \repeat unfold 5 r4
  %\repeat unfold 35 s4
}

}
Melody = { << \relative c' 
{
  %Just notes. No problem here.
  %\sectionLabel "Intro"
  r4 e' f e8 d4 e a,,8
  f''4 e8 d4
  c a,8 e''4 d8 c4
  b a,8 c'4 b8 a4. a,4 f'' e8 d4 e a,,8 f''4 e8 d4 c
  a,8 e''4 d8 c4 b a,8
  c' r8 gis a4 a,8 c'4 d
  %\break
  a,^\markup"Only the Melody staff should appear." e'' f
  e8 d4 e a,,8
  gis''4 f8 e4 d a,8 f''4
  e8 d4 c a,8 d'4
  c8 b4. a,4 
  %\break
  f''
  e8 d4 e a,,8 f''4
  e8 d4 c a,8 e''4
  d8 c4 b a,8 
  c' r8
  gis a4 a,8 4 
  
}
{ \tempomapnormal }
>>}

Rhythm = {<< \relative c' 
{
  %No problem here.
  4 \repeat unfold 5 {r4} 
  \repeat unfold 6 {r4 r4 r4 r4}
  r4 r4 r4 4 4 \break
  \repeat unfold 6 r4
  \repeat unfold 6 { r4 r4 r4 r4 }
  \repeat unfold 5 r4
}
{ \tempomapnormal }
>>}
music = {<<
  
  { \new Staff \with { instrumentName="Melody" } \Melody }
  { \new Staff \with { instrumentName="Rhythm" } \Rhythm }
  { \new DrumStaff \with { instrumentName="Drumkit" } \drumkit }
>>}

\score { \music 
 \layout { 
   %I've enabled polymeter because the drums will play
   %a 7/8 against the main rhythm and melody.
   \enablePolymeter 
} }

Witchcraft-help.pdf
Description: Adobe PDF document


Re: Tall bars in two-line music

2024-03-06 Thread Michael Werner
Hi David,

On Wed, Mar 6, 2024 at 10:00 AM David Wells <
drwells.mailingl...@fastmail.com> wrote:

> Hi,
>
> I'm working on typesetting some chants with two lines per staff and the
> resulting barlines are too tall. Tiny example:
>
%< snip >%

> Here, I expect the barlines to be the same height as the staff (i.e., not
> protrude) and I cannot figure out how to make that happen.
>

The property you'll want to modify here is the bar-extent of BarLine - this
sets the Y-extent of the bar line. Example:

\version "2.24.3"

\score
{
  \relative c'
  {
\time 9/4
\slurDown

\override Staff.StaffSymbol.line-count = #2
\override Staff.BarLine.bar-extent = #'(-0.5 . 0.5)
f4(g) a f(g) a(g) g2 |
f4(g) a f(g) a(g) g2 |
\break
  }
}

which produces:

[image: image.png]

Have a look at
https://lilypond.org/doc/v2.24/Documentation/internals/barline for all the
settings available for bar lines.
-- 
Michael


Tall bars in two-line music

2024-03-06 Thread David Wells
Hi,

I'm working on typesetting some chants with two lines per staff and the 
resulting barlines are too tall. Tiny example:

\version "2.24.3"

\score
{
\relative c'
{
  \time 9/4
  \slurDown

  \override Staff.StaffSymbol.line-count = #2
  f4(g) a f(g) a(g) g2 |
  f4(g) a f(g) a(g) g2 |
  \break
}
}

output:

Here, I expect the barlines to be the same height as the staff (i.e., not 
protrude) and I cannot figure out how to make that happen.

Interestingly, if I add a lot of lines to the staff then the bar is lengthened 
correctly - the problem seems to be that it is too short.

Best,
David

Re: Using old definition of bass figures for 6\\, 7\\, 9\\ ...

2024-03-06 Thread Werner LEMBERG

> adapted sample from
> https://lilypond.org/doc/v2.24/Documentation/bd/lily-a6a3b6ba.ly:
> 
> \paper{
>   #(define fonts
>  (set-global-fonts
>   #:music "paganini"
>   ))
> }
> \figures {
>   \set figuredBassPlusDirection = #RIGHT
>   <7\\ 6 4 2\+> <4\+ _-> <3 5\+ 3 > <6\\ 4 3> <9\\>
> }

Please try the attached solution.


Werner
\version "2.24.0"

\paper{
  #(define fonts (set-global-fonts #:music "paganini"))

  #(add-text-replacements!
`(("♭" . ,#{ \markup { \hspace #0.4 \raise #0.4 \smaller \smaller \flat } 
#})
  ; add more entries here
  ))
}

\figures {
  \set figuredBassPlusDirection = #RIGHT
  <7\\ 6 4 2\+> <4\+ _-> <3 5\+ 3 > <6\\ 4 3> <9\\>
}

\layout {
  \context {
\Score
figuredBassPlusStrokedAlist = #'()
  }
}


Re: Transpose tab into label forms

2024-03-06 Thread Carl Sorensen
On Mon, Mar 4, 2024 at 5:37 AM achar  wrote:

> Indeed I use fret-diagram. Too bad.
> THANKS Xavier.
>
>
If you use Lilypond's automatic fret diagram functionality, the fret
diagrams will be transposable, but the transposition may not be exactly
what you would manually do for a transposition.  You can also control the
automatic fret diagram construction by adding string numbers to one or more
notes in the chord.

\version "2.24"

myChord = {
  1
}

altChord = {
  
}

minChord = {
  
}



\score{
  \new FretBoards {
\myChord
\transpose c d \myChord
\transpose c a, \myChord
\altChord
\transpose c d \altChord
\transpose c a, \altChord
\minChord
\transpose c d \minChord
\transpose c a, \minChord
  }
}


HTH,

Carl


Re: warning

2024-03-06 Thread ming tsang
Good morning Aaron,
Thank you for pointing to theKeeping contexts alive in the lilypond manual.
it mentions not to combine <<...>> with {...} use. Now I stick to one and
the warning:cannot find context Voice=soprano message is gone. I now see
the lyrics.
Thank you very much for your help. Very much appreciated.
waiming(lyndon) Tsang

On Tue, Mar 5, 2024 at 5:06 PM Aaron Hill  wrote:

> On 2024-03-05 1:53 pm, ming tsang wrote:
> > Hi users,
> > I got the following warning message. I read some where one should not
> > ignore the warning message.
> >
> > warning: cannot find context Voice = soprano
> >
> > how to make context specification?
>
> Without more information or a MWE, we are going to be making blind
> guesses.
>
> But the most likely cause for a context not being found is that it was
> not kept alive.
>
> Please review the information here [1] and see if that helps in your
> situation.
>
> [1]:
>
> https://lilypond.org/doc/v2.24/Documentation/notation/keeping-contexts-alive
>
>
> -- Aaron Hill
>


-- 
ming (lyndon) tsang


Re: Using old definition of bass figures for 6\\, 7\\, 9\\ ...

2024-03-06 Thread Werner LEMBERG


> The special font figures introduced with 2.24 breaks old typesets
> using fonts provided by https://github.com/OpenLilyPondFonts
> 
> Is there a way to switch to the old behaviour?

Please provide a (small, working) example of the problem you
encounter.


Werner