Incipit with default noteheads possible?

2024-01-22 Thread Hajo Baess
Hello all,

I am typesetting a piece where the violin plays in a different tuning.
Of course you have to indicate the tuning before the music starts. I
would like to implement this with the \incipit command, if possible,
but there is one downside: you get your notes in the incipit with
mensural noteheads. I have tried an override ( \override
Staff.NoteHead.style = #'default ), but this does not seem to work.

Here is my code example:

\version "2.24.2"
\language "deutsch"

Incipit = \relative c'' {
\clef treble \time 4/4
\omit Staff.TimeSignature
\hide Stem
%\mark "A D FIS CIS"
\override Staff.NoteHead.style = #'default
< a, d fis cis' >

}

noten =  \relative c'' {
\clef treble \key f \major \time 4/4
c4 d e f \bar "|."
}

\score {

\new Staff
<<
\incipit \Incipit
\set Staff.instrumentName = "Violino discordato"
\noten
>>


\layout {
indent = 4\cm
incipit-width = 1\cm
}
}

Do note-head styles just not work with \incipit, did I miss something,
or is there a way to obtain the desired result?

Any suggestions are greatly appreciated...



Re: tempo marks floating number

2024-01-22 Thread Leo Correia de Verdier
Sorry, copying error: to avoid confusion, the numbers should be 90.86/4 = 
22.715 

> 22 jan. 2024 kl. 22:22 skrev Leo Correia de Verdier 
> :
> 
> Hi Jacopo!
> 
> I think 
> \set Timing.tempoWholesPerMinute = #(ly:make-moment 24.715) % that is 98.86/4
> should work for the midi output. At least it accepts floats. Combining it 
> with Michael’s solution for the markup should get you the complete \tempo
> 
> I might have heard sometime in the past that tempoWholesPerMinute got 
> internally rounded down the line. Do any of you in the developing team know 
> if this has been fixed?
> 
> Anyway, one other caveat to keep in mind is that it is much more common for 
> musicians to see a fractional tempo mark (printed in the score/part, 
> regardless of whether it is motivated by fixed electronics or film) as a 
> reason to sneer at the composer than for it to carry any useful information 
> for their interpretation.
> 
> HTH
> /Leo
> 
>> 22 jan. 2024 kl. 16:53 skrev Michael Werner :
>> 
>> On Mon, Jan 22, 2024 at 9:33 AM Jacopo Greco d'Alceo  
>> wrote:
>> How can I simply write a bpm in floating number in lilypond (e.g.♩ = 90.86 ) 
>> ?
>> It seems that \tempo accept only integers.
>> thanks
>> 
>> You can do pretty much any markup with the \tempo command. Two ways you can 
>> do this are either:
>> \tempo \markup { \note { 4 } #UP " = 90.86" }
>> or
>> \tempo \markup { \rhythm { 4 } " = 90.86" }
>> 
>> The \note function is a bit simpler and creates a note stencil that's a tad 
>> larger than what's produced by the \rhythm function. The \rhythm function, 
>> however, is far more flexible in what it can produce. More info on the \note 
>> function at:
>> https://lilypond.org/doc/v2.25/Documentation/notation/markup-for-music-and-musical-symbols#index-_005cnote
>> and for the \rhythm function see:
>> https://lilypond.org/doc/v2.25/Documentation/notation/markup-for-music-and-musical-symbols#index-_005crhythm
>> 
>> One caveat to keep in mind is that \tempo entries done with \markup do not 
>> affect MIDI playback.
>> -- 
>> Michael
>> 
> 




Re: tempo marks floating number

2024-01-22 Thread Leo Correia de Verdier
Hi Jacopo!

I think 
\set Timing.tempoWholesPerMinute = #(ly:make-moment 24.715) % that is 98.86/4
should work for the midi output. At least it accepts floats. Combining it with 
Michael’s solution for the markup should get you the complete \tempo

I might have heard sometime in the past that tempoWholesPerMinute got 
internally rounded down the line. Do any of you in the developing team know if 
this has been fixed?

Anyway, one other caveat to keep in mind is that it is much more common for 
musicians to see a fractional tempo mark (printed in the score/part, regardless 
of whether it is motivated by fixed electronics or film) as a reason to sneer 
at the composer than for it to carry any useful information for their 
interpretation.

HTH
/Leo

> 22 jan. 2024 kl. 16:53 skrev Michael Werner :
> 
> On Mon, Jan 22, 2024 at 9:33 AM Jacopo Greco d'Alceo  
> wrote:
> How can I simply write a bpm in floating number in lilypond (e.g.♩ = 90.86 ) ?
> It seems that \tempo accept only integers.
> thanks
> 
> You can do pretty much any markup with the \tempo command. Two ways you can 
> do this are either:
> \tempo \markup { \note { 4 } #UP " = 90.86" }
> or
> \tempo \markup { \rhythm { 4 } " = 90.86" }
> 
> The \note function is a bit simpler and creates a note stencil that's a tad 
> larger than what's produced by the \rhythm function. The \rhythm function, 
> however, is far more flexible in what it can produce. More info on the \note 
> function at:
> https://lilypond.org/doc/v2.25/Documentation/notation/markup-for-music-and-musical-symbols#index-_005cnote
> and for the \rhythm function see:
> https://lilypond.org/doc/v2.25/Documentation/notation/markup-for-music-and-musical-symbols#index-_005crhythm
> 
> One caveat to keep in mind is that \tempo entries done with \markup do not 
> affect MIDI playback.
> -- 
> Michael
> 




[large/complex projects] conditional header values and/or book name

2024-01-22 Thread Kieren MacMillan
Hi all,

I have a big engraving use case — I’m neck-deep in an example of it right now! 
— and I’m hoping to do some brainstorming towards an optimal 
structure/toolchain/workflow, so any thoughts are appreciated.

One of the things I do most often is compose for musical theatre. Because of 
the way that particular industry works, there is a very large and complex set 
of inputs and outputs. I’m hoping to refine my tools and process(es) to give me 
the most flexible output options with the least effort and friction on the 
input side. 

There might be a large number of posts under this “rubric”, but I’ll keep it to 
one question per thread.

So without further ado…


QUESTION #1:

Let’s say I have a song which appears identically in both the “Full Version” 
and “Short Version” of the musical. The number of the song/cue within the show 
might change, but it might not — for example, the opening number would likely 
be #1 in both versions, but the finale could be #25 in the Full version and #17 
in the Short Version. And furthermore, for this specific question, let’s say I 
need to output one file per song (as opposed to a complete score containing the 
whole show).

If I’d prefer not to involve make (or similar extra-Lilypond tools) in my 
solution, is there any way to improve on simply having a single “top-level” 
(score-generating) file structured as follows:

%%  START FILE CONTENTS
\include [.ily files containing the notes, edition-engraver tweaks, etc.]

final_score =
  <<
[contexts built from variables defined in \include-d files]
  >>

\header {
  [header parameters shared by both versions]
}

\book {
  \bookOutputName "MySong_full"
  \header {
[header parameters specific to the Full Version, e.g., song number]
  }
  \score { \final_score }
}

\book {
  \bookOutputName "MySong_short"
  \header {
[header parameters specific to the Short Version, e.g., song number]
  }
  \score { \final_score }
}
%%  END FILE CONTENTS

Is there a more efficient construct where the book name and header variables 
could be “injected” or “conditionalled” in? Or is that just overcomplicating 
this particular problem-space? (n.b., In future questions, the problem-space is 
naturally more complicated without any help from me!)

Thanks,
Kieren.


Re: Drum notation and style

2024-01-22 Thread Thomas Richter

On 2024-01-20 06:33, Adrian wrote:

   is it possible to create a "z" stem for buzz rolls?

Maybe esmuflily  is 
useful for you. The following requires no extra font and achieves 
horizontal beams in two ways: manual beams and an empty tremolo symbol 
on the first two notes:


% ---

\version "2.24.0"
\include "esmufl.ily"

buzz = \markup \sans \bold "z"

\drums {
  \ekmSmuflOn #'tremolo

  sn16^"R" 16^"l"
  \ekmTremolo \buzz { 16:32^"r"[ 16:32^"l"] }

  \ekmTremolo \markup "" { sn16:32^"R" 16:32^"l" }
  \ekmTremolo \buzz { 16:32^"r" 16:32^"l" }
}

% ---

or with a SMuFL compliant font like Bravura or Ekmelos:

% ---

\version "2.24.0"

ekmelicFont = "Bravura"
\include "esmufl.ily"

\drums {
  \ekmSmuflOn #'tremolo

  \ekmTremolo \markup "" { sn16:32^"R" 16:32^"l" }
  \ekmTremolo buzzroll { 16:32^"r" 16:32^"l" }
}

% ---

--
Thomas Richter


Re: tempo marks floating number

2024-01-22 Thread Michael Werner
On Mon, Jan 22, 2024 at 9:33 AM Jacopo Greco d'Alceo 
wrote:

> How can I simply write a bpm in floating number in lilypond (e.g.*♩ =
> 90.86 ) *?
> It seems that \tempo accept only integers.
> thanks
>

You can do pretty much any markup with the \tempo command. Two ways you can
do this are either:
\tempo \markup { \note { 4 } #UP " = 90.86" }
or
\tempo \markup { \rhythm { 4 } " = 90.86" }

The \note function is a bit simpler and creates a note stencil that's a tad
larger than what's produced by the \rhythm function. The \rhythm function,
however, is far more flexible in what it can produce. More info on the
\note function at:
https://lilypond.org/doc/v2.25/Documentation/notation/markup-for-music-and-musical-symbols#index-_005cnote
and for the \rhythm function see:
https://lilypond.org/doc/v2.25/Documentation/notation/markup-for-music-and-musical-symbols#index-_005crhythm

One caveat to keep in mind is that \tempo entries done with \markup do not
affect MIDI playback.
-- 
Michael


keep a \book in a Variable

2024-01-22 Thread Paul McKay
Hi

I’m producing scores on multiple page sizes. The basic technique is to
create a new book for each size. Like this:

music = {

\new PianoStaff  <<

\new Staff = "right"

<< \clef treble \new Voice\soprano >>

\new Staff = "left"

<< \clef bass \new Voice \tenor \new Voice \bass >>

>>

}

"A4book" = \book {

\include "Output for A4.ily"

\bookOutputName "JS Bach - Book2-05 BWV 874 1-Praeludium D (A4)"



\score {

\keepWithTag #'pc \music

\layout { }

}

}

\”A4book”

The last line can be commented out so I don’t have to wait to generate all
possible page sizes during development. I just invoke the books I want to
work on.



But now I have a score which, at a particular page size, is on 3 pages. The
first page is repeated, and the last 2 pages are too. I want a blank page
at the start.



I’m trying to use bookParts. The following works:

\version "2.24.0"

\language "english"

hdr = \header {

title = "Praeludium 5"

subtitle = "BWV 874/1"

}



%testBook =

\book {

\bookOutputName "Booktest"

\bookpart { \markup \null }

\bookpart {

\hdr

\score {

\relative {  c'4 c c c }

\layout {  }

}

}

}

%\testBook

If I remove the comment markers, I think it should still work, but I get
the following instead:

Parsing...ERROR: In procedure ly:book-process:

Wrong type (expecting real number): #

Exited with return code 1.

What am I doing wrong?

Thanks in advance

Paul McKay


tempo marks floating number

2024-01-22 Thread Jacopo Greco d'Alceo
How can I simply write a bpm in floating number in lilypond (e.g.♩ = 90.86 ) ?
It seems that \tempo accept only integers.
thanks