lilypond-user
[Top][All Lists]
Advanced

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

Re: Question about Lilypond and meterless/free time music


From: Jean Abou Samra
Subject: Re: Question about Lilypond and meterless/free time music
Date: Sat, 31 Jul 2021 17:45:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0


Le 31/07/2021 à 17:05, ariel@aramburu.org a écrit :

Thank you Jean for your answer !

I would be happy to know if

1) I can have a pentagram with notes, but without measure bars  -> the answer is yes, that is posssible

2) I can place those tick marks manually in the pentagram

3) I can put a number on top of those tick marks

Do you know the answer to 2) and 3)  ?


Thanks,

Ariel//



Hi,

Please keep the list copied, this way everyone can
answer and others can benefit from searching the list
archives in the future.

Here's a start:

\version "2.22.1"

\layout {
  \context {
    \Score
    \cadenzaOn
    % Print all bar numbers. See
    % http://lilypond.org/doc/v2.23/Documentation/notation/bars#bar-numbers
    \override BarNumber.break-visibility = #begin-of-line-invisible
    barNumberVisibility = #all-bar-numbers-visible
    % First tick number is 1, not 2.
    currentBarNumber = 0
    % The tick marks.
    \override BarLine.bar-extent = #'(2.5 . 3.5)
    % Center bar number on the ticks.
    \override BarNumber.self-alignment-X = \CENTER
  }
}

% Bar numbers are not automatically incremented at
% manual bar lines.
incrementBarNumber =
\context Score \applyContext
  #(lambda (context)
     (set! (ly:context-property context 'currentBarNumber)
           (1+ (ly:context-property context 'currentBarNumber))))

tick = {
  \bar "|"
  \incrementBarNumber
}

%%

\repeat unfold 10 {
  c'4 \tick 8[ 16 32] \tick 16[ 32.] \tick
}
Best,
Jean



reply via email to

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