The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse by date Contributing Snippet database Browsing items 130−139 out of 949

Bach's Accent steigend and Accent fallend

In the "15 Inventions and 15 Symphonies" (aka "Two- and Three-Part Inventions"), Bach uses an articulation sign, called "Accent steigend" or "Accent fallend," to indicate a grace-like note ascending or descending to the articulated note. The sign is placed about where the head of a grace note would go. It looks like a large backwards comma, or small left parenthesis. This articulation occurs in Inventio 3, shown in the third bar of the example. I defined a variable, \BachAccentFallendFromGrace that modifies an appropriately placed grace note to look like the Accent fallend. The Accent steigend should have the vertical placement adjusted slightly differently.

Bach's Accent steigend and Accent fallend

Background color

Although LilyPond does not allow to specify a background color, it is possible to give the illusion of a colored background by printing a large colored box under the score, as demonstrated here.

Background color

Baroque lute tablature

This snippet shows how to create an 11-choir baroque lute tablature.

It can be adapted to any kind of lute or tunings and with any type of font (e.g. Bravura) for an old looking output.

Midi output and worksheet for guitar transcriptions are also included.

Baroque lute tablature

Baroque Slash ornaments between chords

Slashes between notes of a chord - a Baroque ornament indicating that the lower neighbor notes should be struck almost simultaneously in a light arpeggio.

Baroque Slash ornaments between chords

Basic Grace Echo Purger

One subtype of the 'grace synchronisation issue' is the 'grace echo'. If a score wide collected event comes from at least one voice 'in time' while from one or more other voices it comes 'after the grace notes which do not exist in this/these voice(s)' the resulting grob will be created multiple times.

For metronome marks, bar lines and time signatures a very simple workaround is to just delete these echoed grobs. Here is an engraver which will do this job. Bar lines and time signatures will also be checked for equality and are only removed by this engraver if they are identical.

Additionally, by setting a grob proptery #'keep-grace-echo = ##t you can inhibit this grob removal to obtain a special output.



See also:

Basic Grace Echo Purger

Basic Roman Numeral and Figured Bass Analysis

If you need to create some basic roman numeral and figured bass analysis within the body of a score, you can create a staff with the standard engravers removed and add markup to spaces.

Basic Roman Numeral and Figured Bass Analysis

Beam endings in Score context

Beam-ending rules specified in the Score context apply to all staves, but can be modified at both Staff and Voice levels:

Beam endings in Score context

Beam grouping with non-standard time signatures

There are no default automatic beam groupings specified for a number of non-standard time signatures, including 2/8, 7/8 and 10/8. If automatic beams are required the grouping must be specified using <code>beatStructure</code>. This example groups beams in 7/8 time in the pattern 2-3-2.

Beam grouping with non-standard time signatures

Beam nibs

Beam nibs at the start and end of beams together with beams attached to solitary notes that look like flat flags are possible with a combination of stemLeftBeamCount, stemRightBeamCount, and paired [] beam indicators.

For imitating right-pointing flat flags on lone notes, use paired [] beam indicators and set stemLeftBeamCount to zero. For imitating left-pointing flat flags on lone notes, set stemRightBeamCount to zero instead (line one).

For right-pointing nibs at the end of a run of beamed notes, set stemRightBeamCount to a positive value. For left-pointing nibs at the start of a run of beamed notes, set stemLeftBeamCount instead (line two).

Sometimes it may make sense for a lone note surrounded by rests to carry both a left- and right-pointing nib. Do this with paired [] beam indicators alone (line three).

Note that \set stemLeftBeamCount is always equivalent to \once \set. In other words, the beam count settings are not sticky, so the pair of nibs attached to the lone 16th note in the last example has nothing to do with the \set command for the beam before.

Beam nibs

Beams across line breaks

Normally, LilyPond refuses to automatically break a line at places where a beam crosses a bar line. This behavior can be changed by setting the Beam.breakable property to #t.

This property does not affect manual breaks inserted with commands like \break.

Beams across line breaks

⇦ Previous 11 12 13 14 15 16 17 18 19 20 Next ⇨