lilypond-user
[Top][All Lists]
Advanced

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

Free-time music with correct accidentals


From: Richard Sabey
Subject: Free-time music with correct accidentals
Date: Fri, 13 Nov 2009 17:07:43 +0000

How can Lilypond be used to create music in free time, with bar lines only where I explicitly put them in using \bar "|"? I've tried using \cadenzaOn but then Lilypond mismanages accidentals. I need a bar line to stop the effect of all accidentals (with the possible exception of notes tied from the previous bar).

I see that similar questions have been asked before, but they did not get satisfactory replies.

In particular, how can I avoid the following buggy behaviour in the following example:
* the 2nd bar's 1st note is A# but lacks a #
* the 3rd bar's 2nd note has a needless natural; I'd prefer there to be no needless accidentals except where I explicitly call for them using !
* the 3rd bar's 3rd note is G# but lacks a #
* the last note has a natural as well as a flat even though it's in a Staff where extraNatural = ##f.

It would be nice if it could be made to work using \x at every place where I would like a bar line, for a suitable definition of x. Here is mine, using \cadenzaOff and \cadenzaOn as well as \bar, but perhaps something different is needed.

%begin example%%%%%%%%%%
\version "2.13.6"

x = { \cadenzaOff \bar "|" #(set-accidental-style 'default) \cadenzaOn }

\score
{
    \new Staff \with { extraNatural = ##f }
    { \cadenzaOn ais'1 \x ais'2 ais' gis' ais' \x a a' gis' ais' \x aes' }
}
%end example%%%%%%%%%%%%



Have more than one Hotmail account? Link them together to easily access both.

reply via email to

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