Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > f07b4b9fcbe6d8ab9260b52d15e551a6 > files > 12151

lilypond-doc-2.12.3-1.fc13.noarch.rpm

%% Generated by lilypond-book.py
%% Options: [alt=[image of music],printfilename,indent=0\mm,texidoc,line-width=160\mm]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************



\paper {
  #(define dump-extents #t)
  
  indent = 0\mm
  line-width = 160\mm
  force-assignment = #""
  line-width = #(- line-width (* mm  3.000000))
}

\layout {
  
}



% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/main/src/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.12/input/regression/auto-beam-beat-grouping.ly"
\sourcefileline 0
\version "2.12.0"
\header {

  texidoc = "Autobeaming will break beams according to beatGrouping
if the total length of the beat groups is equal to measureLength.
Otherwise, it will break beams according to beatLength."
}

{
  \time 12/16

  % default beatLength is 1/16; beatGrouping for this time is '()
  b16 b b b b b b b b b b b % beatlength is used to breatk these beams
  % use beatGrouping to get 1/8 groups
  \set Timing.beatGrouping = #'(2 2 2 2 2 2) % 6*2 = 12 so beatGrouping applies
  b16 b b b b b b b b b b b  %  beam groups are 1/8
  % use beatLength to get 1/8 groups -- beatGrouping no longer applies
  \set Score.beatLength = #(ly:make-moment 2 16 )  % 12*2/16 = 24/16
                                                   % bad beatGrouping; use
                                                   % beatLength (1/8 notes)
  b16 b b b b b b b b b b b
  % make custom beatGrouping
  \set Timing.beatGrouping = #'(3 1 2)  % 6*2/16 = 12/16
  b16 b b b b b b b b b b b
  % change beatLength
  \set Score.beatLength = #(ly:make-moment 3 16 )  % 6*3/16 = 18/16; use beatLength
  b16 b b b b b b b b b b b
  \set Score.beatLength = #(ly:make-moment 4 16 )  % 6*4/16 = 24/16; use beatLength
  b16 b b b b b b b b b b b
}



% ****************************************************************
% end ly snippet
% ****************************************************************