lilypond-devel
[Top][All Lists]
Advanced

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

Proper handling of accidentals in unmetered music?


From: Mats Bengtsson
Subject: Proper handling of accidentals in unmetered music?
Date: Fri, 02 Sep 2005 10:59:49 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

Related to this mornings question by Mehmet:

What is the best way to handle music with irregular meter where you
don't want to explicitly specify the time signature for each change
and still make the accidentals behave as normal within measures and
between measures?

Is it possible to add something more than \bar "|" at each
bar line in the following example to manually make it be
treated as a new bar also when it comes to accidental handling?
Obvious things like \cadenzaOff \bar "|" \cadenzaOn don't work.

\version "2.6.0"

% Solution 1:
\new Staff \relative c'{
% Uncomment to get rid of the initial time signature:
%\override Score.TimeSignature #'print-function = ##f
\cadenzaOn
c4 c cis cis \bar "|"
cis cis d \bar "|"  % Problem, no new accidental on cis!
}


I almost regret the solution I proposed to Mehmet already now:

% Solution 2: Gives new accidental on every beat
\new Staff \relative c'{
% Uncomment to get rid of the initial time signature:
%\override Score.TimeSignature #'print-function = ##f

\set Timing.measureLength = #(ly:make-moment 1 4)
\set Timing.automaticBars = ##f

c4 c cis cis \bar "|"
cis cis d \bar "|"
}



One solution which in a way is the cleanest is to
actually specify all time signatures in the input and
just turn them off in the output (which makes it easy
to turn them on again if the musicians complain too loudly
about the missing time signatures). One obvious disadvantage
is that the input is somewhat more tedious:

% Solution 3:
\new Staff \relative c'{
\override Score.TimeSignature #'print-function = ##f
\time 4/4
c4 c cis cis
\time 3/4
cis cis d
}


Any other ideas?

   /Mats




--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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