lilypond-user
[Top][All Lists]
Advanced

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

Re: nested \relative ?


From: Saul Tobin
Subject: Re: nested \relative ?
Date: Fri, 10 Feb 2023 10:22:31 -0800

What is the reasoning behind having smaller relative blocks? Generally I structure my variables as a single \relative block per variable and just use \resetRelativeOctave at the beginning of every passage.

On Fri, Feb 10, 2023 at 3:09 AM Simon Albrecht <simon.albrecht@mail.de> wrote:

Hi Darren,

On 10/02/2023 11:46, Darren Ng wrote:
\ghostNoteWhichDoesNotActuallyAppear { c,,, }

I think what you want here is \resetRelativeOctave.

The best solution depends on many factors around your workflow and the setup of your project, but generally it is recommendable to split things up into smaller \relative {} blocks. It has taken me a long time to get better at this and actually do things like (silly example)

someMusicVariable = {
  \relative { c'4. e8 g4 c | a c8 a g2 }
  R1*10
  \relative { f'4. g8 e4 c | d2 c }
}

HTH, Simon


reply via email to

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