Hi Jean,

On 27/06/2022 20:37, Jean Abou Samra wrote:


Le 27/06/2022 à 20:10, Simon Albrecht a écrit :
Hello everyone,

I’m trying to encode a piece such that I can switch whether or not durations will be shifted (note values halved/doubled). Unfortunately \tempo isn’t affected by \shiftDurations (that would be a sensible feature request, right?),

Go open an issue.


I did: <https://gitlab.com/lilypond/lilypond/-/issues/6366>


so I tried this:
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.23.9"

durationShiftOne = #-1
{
  \tempo #(ly:make-duration
[…]

Can I make that work some other way?


\version "2.23.9"

durationShiftOne = #-1
{
  \tempo $(ly:make-duration (+ 3 durationShiftOne)) = 152
  \shiftDurations \durationShiftOne #0 { 8 }
}


You just need to use $ instead of #.


I keep forgetting to try that. I’ll try understanding the difference better as well. Thanks for the help!

Best, Simon


Reply via email to