Hi Karim,

2) does not work as #'(ly:make-moment 16/25) is a symbol rather than 
#(ly:make-moment 
16/25). Also (2) still needs \scaleDurations 4/5, unless you do

\time 4/5
\set Timing.measureLength = #(ly:make-moment 4/4)

The idea behind the part

https://lilypond.org/doc/v2.24/Documentation/snippets/rhythms#rhythms-changing-time-signatures-inside-a-polymetric-section-using-_005cscaledurations[1]

in the documention is to change TimeSignature while having a scaled Duration, 
so you 
want to have an e.g. 4/4 time sig, but the Staff should be scaled by 4/5, so 
you want the 
measure length of a 4/5 timesig, thus you do 4/4 and manualy tell Lilypond that 
you 
actually want a length of 4/5.

If you want to use something like 4/5 this is not of relevance to you. As I 
said you could 
change measure length to 4/4 and notate everything as if it were 4/4 though.

Cheers,
Valentin

Am Dienstag, 17. Jänner 2023, 12:16:43 CET schrieb Karim Haddad:
> Hi,
> 
> I am wondering which is the best way to write irrational meters (with tempo
> modulations)
> 
> 1)
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%
> \version "2.24.0"
> \score {
> {
> 
> \clef "G"
> 
> \scaleDurations 4/5 {
> \time 4/5
> \set Staff.timeSignatureFraction = #'(4 . 5)
> \mark \markup {\left-column {{\line { \smaller \general-align #Y #DOWN 
> \note {4} #1 " = 60 "}} \tiny "1"}} c'4
> c'4
> c'4
> c'4
> 
> }
> \once \set Staff.whichBar = "|"
> }
> 
> 
> \layout {
> 
> \context {\Score
>      %    measureBarType=#""
>               }
> 
> }
> }
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%
> 
> or
> 
> 2)
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%
> \version "2.24.0"
> \score {
> {
> \clef "G"
> 
> \time 4/5
> \set Staff.timeSignatureFraction = #'(4 . 5)
> \set Timing.measureLength = #'(ly:make-moment 16/25)
> \mark \markup {\left-column {{\line { \smaller \general-align #Y #DOWN 
> \note {4} #1 " = 60 "}} \tiny "1"}} c'4
> c'4
> c'4
> c'4
> 
> \once \set Staff.whichBar = "|"
> }
> 
> \layout {
> 
> \context {\Score
>          measureBarType=#""
>                 }
> 
> }
> }
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%
> 
> 
> Now the first solution outputs:
> 
> Processing `irr1.ly'
> Parsing...
> Interpreting music...
> irr1.ly:13:1: warning: strange time signature found: 4/5
> 
> \time 4/5
> Preprocessing graphical objects...
> 
> 
> Which looks good to me as a warning
> 

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

Reply via email to