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
OpenPGP_signature
Description: OpenPGP digital signature