lilypond-devel
[Top][All Lists]
Advanced

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

Update to LSR example


From: Mats Bengtsson
Subject: Update to LSR example
Date: Thu, 16 Aug 2007 09:41:22 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

Hi,

I'd like to replace the existing LSR example entitled "Feathered beams"
with the following more extensive example.
I clearly remember that Graham has mentioned the recommended procedures
for updating existing examples, but I cannot find that email for the moment, so I post it here hoping that Graham or Cameron or whoever has the access rights
to do the change.

\version "2.10.0"

% Illustration of feathered beams and the \featherDurations
% function.

\score{
\relative c''
<<
\new Staff {
% Turn on feathered beams:
\override Beam #'grow-direction = #LEFT

% Example of a beamed sequence:
bes32\p\>[ ges d' bes, c' ges a ges \!]

% When the factor is 4/4=1, you get the same as without \featherDurations
\featherDurations #(ly:make-moment  4 4)
{ bes32\p\>[ ges d' bes, c' ges a ges \!] }

% When the factor is >1, you get a ritardando-like placement of the
% notes (and sound in the MIDI output).
\featherDurations #(ly:make-moment  6 4)
{ bes32\p\>[ ges d' bes, c' ges a ges \!] }

% When the factor is <1, you get accelerando, i.e. you should
% really only use if when \override Beam #'grow-direction = #RIGHT
\featherDurations #(ly:make-moment  3 4)
{ bes32\p\>[ ges d' bes, c' ges a ges \!] }

% Revert back to ordinary beams:
\revert Beam #'grow-direction
bes32\p\>[ ges d' bes, c' ges a ges \!]

% Get a single feathered beam, using \once \override:
\once \override Beam #'grow-direction = #LEFT
bes32\p\>[ ges d' bes, c' ges a ges \!]
bes32\p\>[ ges d' bes, c' ges a ges \!]

% The \featherDurations function just adjusts the durations
% of the notes and can be used without % feathered beams:
\featherDurations #(ly:make-moment  6 4)
{ bes32\p\>[ ges d' bes, c' ges a ges \!] }

}

% Reference rhythm to compare to:
\new Staff \repeat unfold 64 { c32 }
>>
}


  /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]