lilypond-user
[Top][All Lists]
Advanced

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

Re: How to join notes in markup?


From: Pierre Perol-Schneider
Subject: Re: How to join notes in markup?
Date: Thu, 10 Mar 2016 20:34:54 +0100

Hi Abraham,

A tiny little question:

\version "2.19.37"

\markup {
  Let's try something simple:
  \note #"8" #UP + \note #"8" #UP =
  \combine
    \combine
      \note-by-number #2 #0 #UP

      %\override #'(line-join-style . bevel) \path #.4 #'((moveto 1.18 3) (lineto 4.34 3)(closepath))
      %% how about using 'beam instead ?
      \translate #'(1.25 . 2.8)\beam #3 #0 #.5

    \concat {
      \hspace #3
      \note-by-number #2 #0 #UP
    }
  . Yikes! Not so easy by hand.
}

Cheers,
Pierre

2016-03-10 19:08 GMT+01:00 tisimst <address@hidden>:
Just for the record (since this got discussed further off-line)...

On Thu, Feb 25, 2016 at 7:15 AM, Abraham Lee <[hidden email]> wrote:
Fan,

On Thu, Feb 25, 2016 at 5:50 AM, Fan Hongtao [via Lilypond] <[hidden email]> wrote:
I want to write some words with music notes. I can write single note, but don't know how to join them. 

\version "2.18.2"

{
  \clef bass
  c8[ c]
}

\markup {
  % How to join the following two notes?
  \note-by-number #3 #0 #UP
  \note-by-number #3 #0 #UP
}

If you are trying to beam the two notes together, I wouldn't encourage creating the notes like that (since you'll have to do a lot of manual positioning). Instead, there's the very handy \markup { \score { ... } } syntax that takes care of all the music formatting! Here's a snippet about advanced metronome marks that shows lots of different examples of how to effectively use this kind of syntax to get what you want: http://lsr.di.unimi.it/LSR/Item?id=204

I just submitted my new "ezscore" markup function in the LSR: http://lsr.di.unimi.it/LSR/Item?id=1029

Best,
Abraham 

P.S. Sorry for changing the name, Fan (was originally called "eznotes"). I realized it might cause some people to think it has something to do with Easy Note Heads, which it doesn't.



View this message in context: Re: How to join notes in markup?
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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