lilypond-user
[Top][All Lists]
Advanced

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

chordChanges = ##t in an include file


From: Randy Josleyn
Subject: chordChanges = ##t in an include file
Date: Sat, 04 Apr 2020 18:20:04 +0800
User-agent: K-9 Mail for Android

Hi list!

I'm trying to figure out how to set chordChanges to true in an include file, like so:

%%%%% def.ily %%%%%
\version "2.20.0"
\layout {
\context {
\ChordNames
\set chordChanges = ##t
}
}
%%%%%%%%%%%%%%

%%%%% score.ly %%%%%
\version "2.20.0"
\include "def.ily"
\score {
<<
\new ChordNames = "chords" {
\chordmode {
c1 | c | f | c |
}
}
>>
}
%%%%%%%%%%%%%%%

This returns an error: "unexpected \set". If I move the \context out of a layout block, then it adds extra space above the "chords" staff, but doesn't solve the problem.

My goal's to create a sort of "stylesheet" as mentioned in the Learning Manual. I know I could write `c1 | s1 | f | c` or just write it in every score, but I guess I want to be lazy.

Any pointers would be greatly appreciated. Thanks!

Regards,

Randy
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
reply via email to

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