Re: How to do jazz-style bar repeats

2011-03-07 Thread M Watts

On 03/04/2011 10:30 AM, Colin Hall wrote:


For the record I've attached a complete source file to demonstrate how I do 
chop marks.



Here's another way, with one-line rythmic staff.

dummy = \relative c {

  \set squashedPosition = #0
  \override NoteHead #'style = #'slash
  \override Stem #'transparent = ##t

  \key g \major
  \repeat unfold 2 { c4 c c c }
}

harmonies = \chordmode {
  b2:7 e:7
  a:7 d:7

}

\score {



  \new ChordNames \harmonies

  \new RhythmicStaff
{
\set RhythmicStaff.instrumentName = \markup { Solos }
\new Voice = rhythm \dummy
}

  

  \layout {
\context {
\RhythmicStaff
\consists Pitch_squash_engraver
\consists Clef_engraver
\consists Key_engraver
}
  } % close layout
} % close score
attachment: chopmarks.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-04 Thread jakob lund
Hola

 Now, I am not sure how to actually use this in a file.  I tried just using 
 \include in my file and putting the \inlineMMRN R2.*4 where I want it to 
 appear.  I ended up with 3/4 time, five empty bars with rehearsal marks at 
 the top of the score, followed by a repeat and six bars with the desired 
 indication of four bars to be repeated, followed by another repeat.  And the 
 bars where I want the effect to render didn't.  Obviously that was not as you 
 intended it to be used!


R2. is a full bar rest in 3/4 time (a dotted 2/4 rest that is). For
4/4 you just use R1, and multiply with the number of bars, like in
R1*8 for 8 bars.

There's still a problem though -- look at this example

#(define (whiteunder grob) (grob-interpret-markup grob
  (markup #:vcenter #:whiteout #:pad-x 1 (ly:grob-property grob 'text

inlineMMRN = {
  \once \override Score.MultiMeasureRest #'layer = #-2
  \once \override Score.MultiMeasureRestNumber #'layer = #-1
  \once \override Score.MultiMeasureRestNumber #'Y-offset = #0
  \once \override Score.MultiMeasureRestNumber #'stencil = #whiteunder
}

solos = {
  \override Score.MultiMeasureRest #'minimum-length = #20
  \bar |:
  \inlineMMRN R1*4
  \inlineMMRN R1*4
  \bar :|
}

{
  
\new ChordNames \chordmode {
  s1
  a1*4:m7
  b:m7-5
}
\new Staff {
  \time 4/4
  s1
  \set Score.markFormatter = #format-mark-box-alphabet
  \set Score.skipBars = ##t
  \override MultiMeasureRest #'expand-limit = 1
  \solos
}
  
}


How can we center the chord symbols above the inlineMMR's?


Also: Does anybody know how to produce the `fat bracketed' repeat bars
often used in jazz (example in the Real Book exerpt attached to Tim's
first mail in this thread)?



Jakob.

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-04 Thread Robin Bannister
Tim McNamara wrote: 
I am not sure how to actually use this in a file. 
  
The multimeasure.ly has four sections; 
 the first two are needed to define inlineMMRN, 
 the last two give an example of using \inlineMMRN. 
  
The example I used is a rough skeleton of Blessed Relief, 
whose last part corresponds to your bar-repeats.pdf. 
  
  
So multimeasure.ly is a standalone snippet producing a pdf with 
44 bars of spacer rests (up to rehearsal mark [E]) followed by 
24 bars of inlineMMRN usage (held in the solos variable). 
All those 68 bars showed up at the top of your own pdf. 
  
  
You don't need these example sections in your file, 
just the first two: whiteunder and inlineMMRN. 
So either paste in just these two or comment out the last two. 
   
   
Then you have to apply inlineMMRN at each place you want it to be active. 
You ask for a multi-measure rest (big R) 
and let \inlineMMRN move its count down into the staff. 
  
So for 6 bars of 4/4 time you need R1*6 - like this 

\inlineMMRN R1*6
  
  
And for decent horizontal proportions you need to modify #'minimum-length. 
  
  
Cheers, 
Robin


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


RE: How to do jazz-style bar repeats

2011-03-04 Thread James Lowe
Hello,

)-Original Message-
)From: lilypond-user-bounces+james.lowe=datacore@gnu.org
)[mailto:lilypond-user-bounces+james.lowe=datacore@gnu.org] On
)Behalf Of Robin Bannister
)Sent: 04 March 2011 10:32
)To: Tim McNamara; lilypond-user lilypond-user
)Subject: Re: How to do jazz-style bar repeats
)
)Tim McNamara wrote:
) I am not sure how to actually use this in a file.
)
)The multimeasure.ly has four sections;
)  the first two are needed to define inlineMMRN,
)  the last two give an example of using \inlineMMRN.
)
)The example I used is a rough skeleton of Blessed Relief, whose last part
)corresponds to your bar-repeats.pdf.
)
)
)So multimeasure.ly is a standalone snippet producing a pdf with
)44 bars of spacer rests (up to rehearsal mark [E]) followed by
)24 bars of inlineMMRN usage (held in the solos variable).
)All those 68 bars showed up at the top of your own pdf.
)
)
)You don't need these example sections in your file, just the first two:
)whiteunder and inlineMMRN.
)So either paste in just these two or comment out the last two.
)
)
)Then you have to apply inlineMMRN at each place you want it to be
)active.
) You ask for a multi-measure rest (big R) and let \inlineMMRN move its
) count down into the staff.
)
)So for 6 bars of 4/4 time you need R1*6 - like this
) \inlineMMRN R1*6
)
)
)And for decent horizontal proportions you need to modify #'minimum-
)length.
)

Maybe an email got lost somewhere but the mails I got on this thread jumped 
from a 'how do I' to a 'thanks that's really helpful' without anything in 
between.

I think whatever the outcome of this 'hack/workaround', will be really useful 
on the LilyPond Snippet Repository for other users. So I just didn't want this 
to be 'lost'.

James




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-04 Thread Phil Holmes
 Original Message - 
From: James Lowe james.l...@datacore.com


I think whatever the outcome of this 'hack/workaround', will be really 
useful on the LilyPond Snippet Repository for other users. So I just 
didn't want this to be 'lost'.



James


http://lsr.dsi.unimi.it/LSR/Item?id=753


There you go.

--
Phil Holmes


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-04 Thread Colin Hall

Hi Tim,

I use a slash notehead on the middle line of the stave, see below.

Cheers,
Colin.

%
% Harmony
%
harmonyIntro = \chordmode
{
  bf1:m |
  bf1:m |
  bf1:m |
  c2:7 f2:7 |
}

%
% Piano music sections
%
pianoRightIntro =
{
  bf df' f'2_\markup \small { L.H.} ~ a df' f'2 |
  af! df' f'2 ~ g df' f'2 |
  gf! df' f'2 ~ f df' f'2 |
  \override NoteHead #'style = #'slash
  \override Stem #'transparent = ##t
  bf'4 bf'4 bf'4 bf'4 |
  \revert NoteHead #'style
  \revert Stem #'transparent

}


On Thu, Mar 03, 2011 at 06:58:26AM +, David Bobroff wrote:
 On 3/3/2011 6:23 AM, Tim McNamara wrote:
 I have not been able to locate a way to do jazz style multiple bar repeats 
 like these for writing out chord progressions for solos.  Can anyone point 
 me to the place in the documentation (assuming there is such a place)?
 
 Thanks!
 
 
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 Tim,
 
 I suspect you're looking for percent repeats found in section
 1.4.2 of the notation manual of the current stable release.
 
 -David

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user


-- 

Colin Hall
South Mains
West Linton
EH46 7AY
Scotland

Tel: 01968 661994
Mob: 07786 677582

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-04 Thread keith Luke
If chop marks are the desired output, there's another way of doing it as
described in the LilyPond Snippetsdocument.  Just do a search on *Rhythmic
slashes*. It the rs function overrides a quarter note rest for quarter note
marks.  You can replace the r4 with an appropriate rest for other durations.


On Thu, Mar 3, 2011 at 6:37 PM, Tim McNamara tim...@bitstream.net wrote:

 On Mar 3, 2011, at 6:30 PM, Colin Hall wrote:

  For the record I've attached a complete source file to demonstrate how I
 do chop marks.


 I like how those render and will have other uses for them.  Thanks!
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-04 Thread Tim McNamara
Thanks for that, too!

On Mar 4, 2011, at 10:18 PM, keith Luke wrote:

 If chop marks are the desired output, there's another way of doing it as 
 described in the LilyPond Snippetsdocument.  Just do a search on Rhythmic 
 slashes. It the rs function overrides a quarter note rest for quarter note 
 marks.  You can replace the r4 with an appropriate rest for other durations.
 
 
 On Thu, Mar 3, 2011 at 6:37 PM, Tim McNamara tim...@bitstream.net wrote:
 On Mar 3, 2011, at 6:30 PM, Colin Hall wrote:
 
  For the record I've attached a complete source file to demonstrate how I do 
  chop marks.
 
 
 I like how those render and will have other uses for them.  Thanks!

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-03 Thread Tim McNamara
I can't get that to compile and produce a score.  Could you attach an image of 
what it ends up looking like?  Looking at the code I suspect it is not what I 
want, but I can't tell for sure.  Thanks!


On Mar 3, 2011, at 4:55 AM, Colin Hall wrote:

 
 Hi Tim,
 
 I use a slash notehead on the middle line of the stave, see below.
 
 Cheers,
 Colin.
 
 %
 % Harmony
 %
 harmonyIntro = \chordmode
 {
  bf1:m |
  bf1:m |
  bf1:m |
  c2:7 f2:7 |
 }
 
 %
 % Piano music sections
 %
 pianoRightIntro =
 {
  bf df' f'2_\markup \small { L.H.} ~ a df' f'2 |
  af! df' f'2 ~ g df' f'2 |
  gf! df' f'2 ~ f df' f'2 |
  \override NoteHead #'style = #'slash
  \override Stem #'transparent = ##t
  bf'4 bf'4 bf'4 bf'4 |
  \revert NoteHead #'style
  \revert Stem #'transparent
 
 }
 
 
 On Thu, Mar 03, 2011 at 06:58:26AM +, David Bobroff wrote:
 On 3/3/2011 6:23 AM, Tim McNamara wrote:
 I have not been able to locate a way to do jazz style multiple bar repeats 
 like these for writing out chord progressions for solos.  Can anyone point 
 me to the place in the documentation (assuming there is such a place)?
 
 Thanks!
 
 
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 Tim,
 
 I suspect you're looking for percent repeats found in section
 1.4.2 of the notation manual of the current stable release.
 
 -David
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 -- 
 
 Colin Hall
 South Mains
 West Linton
 EH46 7AY
 Scotland
 
 Tel: 01968 661994
 Mob: 07786 677582


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-03 Thread Tim McNamara
On Mar 3, 2011, at 12:58 AM, David Bobroff wrote:

 On 3/3/2011 6:23 AM, Tim McNamara wrote:
 I have not been able to locate a way to do jazz style multiple bar repeats 
 like these for writing out chord progressions for solos.  Can anyone point 
 me to the place in the documentation (assuming there is such a place)?

 Tim,
 
 I suspect you're looking for percent repeats found in section 1.4.2 of the 
 notation manual of the current stable release.

Thanks!  I had looked at those and that's not what I want.  

The image I attached is a standard way in jazz lead sheets and big band charts 
for depicting many bars of a single chord (4 bars to however many)- it's not 
used for repeating a musical phrase, unlike a percent repeat.  There is a 
number in the middle of the bar which indicates how many bars to repeat, with a 
heavy horizontal bar on either side of the number.  In some cases there is a 
short vertical line at the outer ends of the bar, and some copyists circle the 
number.  This style allows many bars to be depicted in very few bars, like the 
example which shows 24 bars in only 6 written bars.  From what I've seen, there 
are other engraving packages that can do this particular style of repeat, but I 
have no idea how to code it in Lilypond.
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-03 Thread Robin Bannister
Tim McNamara wrote: 
There is a number in the middle of the bar 
which indicates how many bars to repeat, 
with a heavy horizontal bar on either side of the number. 
  
  
Would this do the sort of thing you're looking for? 
You ask for a multi-measure rest (big R) 
and let \inlineMMRN move its count down into the staff. 
  
  
Cheers, 
Robin#(define (whiteunder grob) (grob-interpret-markup grob 
  (markup #:vcenter #:whiteout #:pad-x 1 (ly:grob-property grob 'text

inlineMMRN = {
  \once \override Score.MultiMeasureRest #'layer = #-2
  \once \override Score.MultiMeasureRestNumber #'layer = #-1
  \once \override Score.MultiMeasureRestNumber #'Y-offset = #0
  \once \override Score.MultiMeasureRestNumber #'stencil = #whiteunder
}


solos = {
  \override Score.MultiMeasureRest #'minimum-length = #20 
  \bar |:
  \inlineMMRN R2.*4 
  \inlineMMRN R2.*4 
  \inlineMMRN R2.*4 
  \inlineMMRN R2.*4 
  \inlineMMRN R2.*4 
  \inlineMMRN R2.*4 
  \bar :|
}

{
  \time 3/4
  \set Score.markFormatter = #format-mark-box-alphabet 
  \set Score.skipBars = ##t
  \override MultiMeasureRest #'expand-limit = 1
  s2.*8 
  \mark \default  
  s2.*8 
  \mark \default  
  s2.*8 
  \mark \default  
  s2.*12 
  \mark \default  
  s2.*8 
  \mark \default  
  \solos
}
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-03 Thread Tim McNamara
On Mar 3, 2011, at 6:30 PM, Colin Hall wrote:

 For the record I've attached a complete source file to demonstrate how I do 
 chop marks.


I like how those render and will have other uses for them.  Thanks!
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-03 Thread Tim McNamara

On Mar 3, 2011, at 6:11 PM, Robin Bannister wrote:

 Tim McNamara wrote: 
 There is a number in the middle of the bar which indicates how many bars to 
 repeat, with a heavy horizontal bar on either side of the number. 
Would this do the sort of thing you're looking for? You ask for a 
 multi-measure rest (big R) and let \inlineMMRN move its count down into the 
 staff. Cheers, Robin

Wow, that looks excellent!  *Exactly* what I wanted the bars to look like.  I 
am massively impressed with how that renders.  Thanks!  This is something that 
should get folded into the source code for Lilypond.  How the heck did you know 
to do that (something of a rhetorical question there- the short answer being 
that you know a lot more about Lilypond than me).

Now, I am not sure how to actually use this in a file.  I tried just using 
\include in my file and putting the \inlineMMRN R2.*4 where I want it to 
appear.  I ended up with 3/4 time, five empty bars with rehearsal marks at the 
top of the score, followed by a repeat and six bars with the desired indication 
of four bars to be repeated, followed by another repeat.  And the bars where I 
want the effect to render didn't.  Obviously that was not as you intended it to 
be used!

Sorry to be dense, Lilypond is complex far beyond my very simple needs; I've 
learned just the tiny bit I need to do lead sheets for my jazz band.  It would 
take me years to get through the documentation...

Thanks again!
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to do jazz-style bar repeats

2011-03-02 Thread David Bobroff

On 3/3/2011 6:23 AM, Tim McNamara wrote:

I have not been able to locate a way to do jazz style multiple bar repeats like 
these for writing out chord progressions for solos.  Can anyone point me to the 
place in the documentation (assuming there is such a place)?

Thanks!





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Tim,

I suspect you're looking for percent repeats found in section 1.4.2 of 
the notation manual of the current stable release.


-David
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user