lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writing score in absolute time


From: Jean Abou Samra
Subject: Re: writing score in absolute time
Date: Tue, 7 Feb 2023 15:29:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

On 07/02/2023 14:58, Cordelia wrote:
> Amazing, really.
> I lastly just wonder now, if it’s possible to write the duration in seconds.. 
> But I understood that’s not the way of working of lilypond.
> Thank you!


This can be done too.

\version "2.24.0"

\paper {
  page-breaking = #ly:one-line-auto-height-breaking
}

\layout {
  \context {
    \Score
    proportionalNotationDuration = #(ly:make-moment 1/4)
    \override SpacingSpanner.uniform-stretching = ##t
  }
  \context {
    \Voice
    \consists Duration_line_engraver
    \omit NoteHead
    \remove Stem_engraver
    \remove Dots_engraver
  }
}

at =
#(define-music-function (instrument point pitch len) (string? exact-rational? 
ly:pitch? exact-rational?)
   #{ \context Staff = #instrument \after 4*#point { $pitch 4*$len \- } <> #})

<<
  \new Staff = piano { s1*10 }
  \new Staff = violin { s1*10 }
  \cadenzaOn
  \at piano ##e0.5 e' ##e1.0
  \at violin ##e0.6 e' ##e1.5
  \at piano ##e0.75 f' ##e1.0
  \at piano ##e1.0 g' ##e4
  \at piano ##e2.5 c' ##e0.5
  \at violin ##e3.0 c'' ##e0.125
>>





Best,
Jean




Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]