lilypond-user
[Top][All Lists]
Advanced

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

Re: trying to engrave on a "note grid"


From: Jean Abou Samra
Subject: Re: trying to engrave on a "note grid"
Date: Thu, 27 Jan 2022 20:32:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Le 27/01/2022 à 19:41, Kieren MacMillan a écrit :
Hi all,

I'm trying to engrave rap phrases on a strict grid (cf. 
https://www.passionweiss.com/2013/04/09/let-the-rhythm-hit-em-a-look-at-the-musical-notation-of-rap).

Is this possible in Lilypond? (I can't believe I'm actually asking that 
question… but I've read everything I could find in the docs and lists, and 
can't find the full/correct incantation to make it happen!)

For testing purposes, I've included (below) my recent attempt to rewrite my 
composer bio.


That is an original bio!


If you compile it, you'll see that the notes aren't perfectly aligned 
vertically.


Yup, there are a bunch of lyric-related grobs cooperating
to put spacing constraints so that the lyrics don't overlap,
hyphens are not too short, etc. Try switching off these
settings, like so:


\version "2.21"

bio_rhythm = {
      r8 c8-> 16-> 16 16 16 16-> 16 16 16-> 16 16-> 16 16->
      r16 c16 16-> 16 16-> 16 16 16 16-> 16 16 16 8-> 16 16->
      r8 \tuplet 3/2 { c16-> 16 16 } c16-> 16 16 16 \tuplet 3/2 { 8-> 8 8 } c8-> r
      c16-> 16 16 16 16 16 16 16 16-> 16 16 16-> ~ 16 16 8
      r16 c16 16-> 16 16-> 16 16 16-> ~ 16 16 16 16-> ~ \tuplet 3/2 { 8 8 r }
      c16-> 16 16 16-> ~ 16 16 16 16 c16-> 16 16 16 8-> 8
      r8 c16-> 16 16-> 16 16 16 16-> 16 16 16-> 16 16 8->
      r16 c16-> 16 16 16-> 16 16 16 16 16 8-> 8-- 8-> 8--
}
bio_rap = \lyricmode {
    True stor -- y: I be -- came a com -- pos -- er on a bet.
    I got a Mas -- ter’s in a skill I have -- n’t mas -- tered yet.
    Doub -- le -- o -- sev -- en with a li -- cense to score: __
    I’ll com -- pose what -- ev -- er an -- y -- bod -- y -- ’ll pay __ me for.
    My com -- po -- si -- tions are tunes for the a -- ges;
    Print what I wrote and it -- ’ll run a thou -- sand pa -- ges.
    Got a web -- site, if you wan -- na look un -- der the hood…
    Don’t wan -- na brag, but I can make a phone book sound good.
}

\paper {
  system-count = 8
  line-width = 5\in
  indent = 0
}

\layout {
  \context {
    \Score
    \remove Bar_number_engraver
    \override Script.padding = #0.375
    proportionalNotationDuration = #(ly:make-moment 1/16)
    \override SpacingSpanner.uniform-stretching = ##t
  }
  \context {
    \RhythmicStaff
    \remove Time_signature_engraver
  }
  \context {
    \Lyrics
    \override LyricText.extra-spacing-width = #empty-interval
    \override LyricSpace.springs-and-rods = #'()
    \override LyricHyphen.springs-and-rods = #'()
  }
}

\score {
  <<
    \new RhythmicStaff \bio_rhythm
    \addlyrics \bio_rap
>>
}



At the same time, you'll realize why LilyPond was
refusing to space your music strictly proportionally
and be able to adjust line width and font size
settings accordingly.

Cheers,
Jean





reply via email to

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