bug-lilypond
[Top][All Lists]
Advanced

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

tuplets and quotation - impossible to remove bracket without removing nu


From: Jean-François Lucarelli
Subject: tuplets and quotation - impossible to remove bracket without removing numbers
Date: Sun, 25 Jul 2010 17:47:41 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

> I'm not top posting.

Dear webmaster,

A remark concerning the use of tuplets in quotation :
The variable "Score.quotedCueEventTypes" permit to chose wich event will be
shown in quotations. But it is impossible to remove separatly tuplet brakets and
tuplet numbers, at least with quarter notes and larger.

I purpose you the following snippet :

% Begin of code

\version "2.13.27"

% setup a context for cue notes.

partScoreQuotation = {
   \override TupletBracket #'bracket-visibility = ##f
   \set tupletSpannerDuration = # (ly:make-moment 1 2)
   \relative c'' {
      a1
      \times 2/3 {
         g4 ( a b c d e )
      }
   }
}

\addQuote Quotation \partScoreQuotation

% score - notice the superposition of brakets and slur

\new Staff \relative c'' <<
   \new Voice {
      \override TupletBracket #'bracket-visibility = ##f
      \set Score.quotedCueEventTypes = #'(note-event rest-event tie-event
        beam-event slur-event phrasing-slur-event tuplet-span-event )
      \set tupletSpannerDuration = # (ly:make-moment 1 2)
      c2 b2
      \tupletDown
      \cueDuring #"Quotation" #UP {R1}
      \times 2/3 {
         a4 ( b c d e f
      }
      g1)
   }
>>

% score without tuplet-span-event : no bracket, but no tuplet number

\new Staff \relative c'' <<
   \new Voice {
      \override TupletBracket #'bracket-visibility = ##f
      \set Score.quotedCueEventTypes = #'(note-event rest-event tie-event
        beam-event slur-event phrasing-slur-event )
      \set tupletSpannerDuration = # (ly:make-moment 1 2)
      c2 b2
      \tupletDown
      \cueDuring #"Quotation" #UP {R1}
      \times 2/3 {
         a4 ( b c d e f
      }
      g1)
   }
>>

%

% New score with eighter notes : no problem

partScoreQuotationB = {
   \override TupletBracket #'bracket-visibility = ##f
   \set tupletSpannerDuration = # (ly:make-moment 1 4)
   \relative c'' {
      a1
      \times 2/3 {
         g8 ( a b c d e )
      }
   }
}

\addQuote QuotationB \partScoreQuotationB

% score

\new Staff \relative c'' <<
   \new Voice {
      \override TupletBracket #'bracket-visibility = ##f
      \set Score.quotedCueEventTypes = #'(note-event rest-event tie-event
        beam-event slur-event phrasing-slur-event tuplet-span-event )
      \set tupletSpannerDuration = # (ly:make-moment 1 4)
      c2 b2
      \tupletDown
      \cueDuring #"QuotationB" #UP {r2}
      \times 2/3 {
         a8 ( b c d e f
      }
      g1)
   }
>>

% End of code

Best regards,

Jean-François Lucarelli




reply via email to

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