Jump to content

Entering durations (1): Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
r1 r2 r4 r8 r16 r32 r64 r64</pre>
r1 r2 r4 r8 r16 r32 r64 r64</pre>


<lilypond version="2.24.0" full>
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=163
 
\paper { tagline = ##f }
 
\score {
\score {
  \relative c'' {
  \relative c'' {
Line 38: Line 34:
}
}
</lilypond>
</lilypond>
[[Category:Really simple]]
[[Category:Rhythms]]
[[Category:Snippet]]

Latest revision as of 05:51, 1 December 2025

In Note, Chord, and Lyrics mode, durations are designated by numbers and dots: durations are entered as their reciprocal values. For example, a quarter note is entered using a 4 (since it is a 1/4 note), while a half note is entered using a 2 (since it is a 1/2 note). For notes longer than a whole you must use the variables \longa and \breve

c'\breve
c'1 c'2 c'4 c'8 c'16 c'32 c'64 c'64
r\longa r\breve
r1 r2 r4 r8 r16 r32 r64 r64

\version "2.24"

\score {
 \relative c'' {
    a\breve*1/2 \autoBeamOff
    a1 a2 a4 a8 a16 a32 a64 a64
   \bar ""
   \break
    r\longa*1/4 r\breve *1/2
    r1 r2 r4 r8 r16 r32 r64 r64
  }
  \layout {
    indent = 0
    ragged-right = ##t
    \context {
      \Staff
        \omit Clef
        \omit TimeSignature
        \omit StaffSymbol
        \omit BarLine
        \consists "Pitch_squash_engraver"
    }
    \context {
      \Score
        \remove "Bar_number_engraver"
    }
  }
}