lilypond-user
[Top][All Lists]
Advanced

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

Re: Generate music with scheme


From: Henrik Frisk
Subject: Re: Generate music with scheme
Date: Mon, 11 Apr 2022 13:49:37 +0200


Hi Leo!

Den mån 11 apr. 2022 kl 12:49 skrev Leo Correia de Verdier <leo.correia.de.verdier@gmail.com>:
An addition:

MarkEvent is not added to the note, but to the staff (it’s often used for things like rehearsal marks), if you want the markup added to the actual note you can write it like this:

%%%%%%%%%%%%%

\version "2.18.0"
\score {
  {
    $ (make-sequential-music
       (map (lambda (x)
              (make-music 'NoteEvent
                          'pitch
                          (ly:make-pitch 0 x)
                          'duration
                          (ly:make-duration 2)
                          'articulations
                          (list (make-music 'TextScriptEvent
                                            'text
                                            (markup #:line (#:fontsize -3 "10"))))))
            (list 1 2 3 4)))
  }
}

%%%%%%%%%%%%%%%
 Thanks, this is actually much better. It's been a while I haven't worked with Lilypond so it's good to be reminded!

2.18 is some years old, by the way.

It was actually erroneously copied from an old file. But it's interesting that apt in Ubuntu Studio has 2.20.0-1 as its latest version.

/H

reply via email to

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