|
From: | Valentin Petzel |
Subject: | Re: irrational meters |
Date: | Wed, 18 Jan 2023 14:22:58 +0100 |
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
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
>
> However, the second solution gives:
>
> Processing `irr2.ly'
> Parsing...
> Interpreting music...
> warning: type check for `measureLength' failed; value `(ly:make-moment
> 16/25)' must be of type `moment' irr2.ly:12:1: warning: strange time
> signature found: 4/5
>
> \time 4/5
> irr2.ly:20:1: warning: barcheck failed at: 1/5
>
>
> Preprocessing graphical objects...
>
>
> And if we comment measureBarType=#"" we will have a strange bar at the end.
>
>
> Best Regards
signature.asc
Description: This is a digitally signed message part.
[Prev in Thread] | Current Thread | [Next in Thread] |