X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2Fautomatic-beams-two-per-two-in-4-4-or-2-2-time-signature.ly;h=24ac984df1db873a24500fc13fcce4aca40e1b33;hb=2c1128a20c65a4e4414d4346006ca6f151ea8876;hp=3430ed736f4895448ce672721e27a2e103af4254;hpb=e5751bd57f29c80d7c1ce3a323d6e5a3925cebcb;p=lilypond.git diff --git a/input/lsr/automatic-beams-two-per-two-in-4-4-or-2-2-time-signature.ly b/input/lsr/automatic-beams-two-per-two-in-4-4-or-2-2-time-signature.ly index 3430ed736f..24ac984df1 100644 --- a/input/lsr/automatic-beams-two-per-two-in-4-4-or-2-2-time-signature.ly +++ b/input/lsr/automatic-beams-two-per-two-in-4-4-or-2-2-time-signature.ly @@ -1,54 +1,63 @@ %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it %% This file is in the public domain. -%% Tags: rhythms -\version "2.11.35" +\version "2.11.64" -\header { texidoc = " -In time signature 2/2 or 4/4 the beam are @code{         _____         - _   _ Default | | | | I want | | | |. } Use a \"macro\" with -#(override-auto-beam-setting '..... +\header { + lsrtags = "rhythms" + texidoces = " +En un compás sencillo como 2/2 ó 4/4, las corcheas se barran de forma +predeterminada como dos grupos de cuatro. +Utilizando un macro que seobreescribe el comportamiento automático del +barrado, este fragmento de código cambia el barrado a pulsos de negra. -" } -% begin verbatim -% Automatic beams two per two in 4/4 or 2/2 time signature -% _____ -% Default | | | | -% _ _ -% I want | | | | +" + doctitlees = "Barras automáticas de dos en dos en los compases de 4/4 o de 2/2" + + texidoc = " +In a simple time signature of 2/2 or 4/4, 8th notes are beamed by +default as two sets of four. + +Using a macro which overrides the autobeaming behavior, this snippet +changes the beaming to quarter note beats. -% The good way adapted from David Bobrof +" + doctitle = "Automatic beams two per two in 4/4 or 2/2 time signature" +} % begin verbatim + +% Automatic beams two per two in 4/4 or 2/2 time signature +% _____ +% Default | | | | +% _ _ +% Required | | | | % macro for beamed two per two in 2/2 and 4/4 time signature -qbeam={ - #(override-auto-beam-setting '(end 1 8 * *) 1 4 'Staff) - #(override-auto-beam-setting '(end 1 8 * *) 2 4 'Staff) - #(override-auto-beam-setting '(end 1 8 * *) 3 4 'Staff) - } -% other macros -timeFractionstyle={ \override Staff.TimeSignature #'style = #'()} -textn = ^\markup{ without the macro } -texty = ^\markup{ with the macro } +qBeam = { + #(override-auto-beam-setting '(end 1 8 * *) 1 4 'Staff) + #(override-auto-beam-setting '(end 1 8 * *) 2 4 'Staff) + #(override-auto-beam-setting '(end 1 8 * *) 3 4 'Staff) +} \score { - << - \new Staff << \relative c'' { - \timeFractionstyle - \time 4/4 - g8\textn g g g g g g g g g g g4 g8 g g - } - >> - - %Use the macro - - \new Staff << \relative c'' { - \timeFractionstyle - \time 4/4 - \qbeam - g8\texty g g g g g g g g g g g4 g8 g g - } - >> - >> -\layout{ raggedright = ##t } + << + \new Staff \relative c'' { + \time 4/4 + g8^\markup { without the macro } g g g g g g g + g8 g g g4 g8 g g + } + %Use the macro + \new Staff \relative c'' { + \time 4/4 + \qBeam + g8^\markup { with the macro } g g g g g g g + g8 g g g4 g8 g g + } + >> + \layout { + \context { + \Staff + \override TimeSignature #'style = #'() + } + } }