Totally, now it begins the game. But at least I’ve a starting point!

I’ve to understand better the tempo and rhythmic values in lilypond.
I’ve already added the possibility to write cents for exemple for microtonality 
(a simple way).

There’s 2 more things I could not figure out:
        - how can I allow the duration line to be over other notes
        - now the possibility to range everything in an A4 format (I could do 
it with ImageMagick, but I wonder if lilypond could)

Updated code for those interested:

\version "2.24.0"

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

\layout {
    \context {
        \Score
        proportionalNotationDuration = #(ly:make-moment 1/64)
        \override SpacingSpanner.uniform-stretching = ##t
        \override DurationLine.bound-details.right.end-style = #'hook
        \override DurationLine.thickness = 2
    }
    \context {
        \Voice
        \consists Duration_line_engraver
        \remove Stem_engraver
        \remove Dots_engraver
        \override NoteHead.duration-log = 2
    }
}

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

<<
    \new Staff = piano { s1*10 }
    \new Staff = violin { s1*10 }
    \cadenzaOn
    \at piano ##e1.67 e' ##e1 "-31.75¢"
    \at piano ##e5.96 a' ##e2 "+7.51¢"
    \at violin ##e2.8 c' ##e3 "+38.42¢"
    \at violin ##e1.89 e' ##e4 "+14.04¢"
    \at violin ##e5.37 d' ##e5 "+23.6¢"
>>



> On 7 Feb 2023, at 15:57, David Wright <[email protected]> wrote:
> 
> On Tue 07 Feb 2023 at 15:29:29 (+0100), Jean Abou Samra wrote:
>> 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"
> 
> [ … ]
> 
> Next problem: squeezing in the accidentals. One solution: a grand
> staff with lines and spaces for each note of the chromatic scale.
> Unintended benefit: punch out the inked sections and you've got
> yourself a piano roll.
> 
> Cheers,
> David.

Reply via email to