lilypond-user
[Top][All Lists]
Advanced

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

Re: currentBarNumber has no effect on quoted music


From: Paul Scott
Subject: Re: currentBarNumber has no effect on quoted music
Date: Mon, 8 Jun 2015 11:18:13 -0700
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Jun 08, 2015 at 10:23:03AM -0500, Cynthia Karl wrote:
> Suppose I have a piece of music to perform that has both simple and difficult 
> passages.  It would be helpful if I could derive a practice piece that had 
> only the difficult passages.  My first attempt at doing this is:
> 
> > \version "2.19.20"
> > 
> > music = \relative c'' {
> >     c1 d
> >     \tuplet 3/2 16 { c32 d e f e f g f e d c d  }
> >             \tuplet 3/2 4 { c8 d e f e f g f e  }
> >     d1 c
> > }
> > 
> > { \music }
> > 
> > \addQuote "music" \music
> > 
> > practice = \relative c'' {
> >     \set Timing.currentBarNumber = 3
> >     \quoteDuring #"music" s1
> > }
> > 
> > { \practice }
> 
> 
> Apparently, however, setting the currentBarNumber has no effect on the music 
> quoted by \quoteDuring; the quoted music starts at measure 1, not measure 3.  
> Is there some other way of affecting what music gets quoted temporally?

For something like this I put the phrases you want to use in two different
places in variables.

musicA = \relative{
       \tuplet 3/2 16 { c32 d e f e f g f e d c d  }
       \tuplet 3/2 4 { c8 d e f e f g f e
}

music = \relative{ c1 d \musicA d1 c }
        
practice = \relative{ \set Score.currentBarNumber = #3 \musicA }

HTH

Paul Scott




reply via email to

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