Re: Position of rests

2018-09-10 Thread Lukas-Fabian Moser

Harm,


a walk-through: [...]


Trivial as it may seem to the more experienced LilyPond hackers, this 
might be a candidate for inclusion in the documentation! Especially the 
repeated application of the "display what's on hand" trick is enormously 
helpful, I think. Thank you!


Best
Lukas

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


Re: Position of rests

2018-09-09 Thread Thomas Morley
2018-09-09 19:47 GMT+02:00 Kieren MacMillan :
> Hi Joram,
>
> How is your Scheme-fu?
> Maybe you can adapt one of the snippets that applies different tweaks (e.g., 
> color, shape) to notes of different duration.

Hi Joram,

a walk-through:

(1) Create code example:

{ r2 r1 }

(2) Initiate a most simple override

a) Try to go for the desired property directly, i.e. \override
Rest.staff-position = ...
b) Set it to a procedure, i.e. \override Rest.staff-position =
#(lambda (grob) ...)
Probably let the grob be displayed in terminal to ensure adressing the
correct one, i.e.:
{
  \override Rest.staff-position = #(lambda (grob) (display grob))
  r2 r1
}

(3) Get the duration
Here the 'duration-log will be enough, let it display to ensure corrrect coding

{
  \override Rest.staff-position =
  #(lambda (grob)
(let ((dur (ly:grob-property grob 'duration-log)))
(newline)
(display dur)))
  r2 r1
}

(4) Add a condition relying on the value of duration-log and provide
appropriate values for 'staff-position

{
\override Rest.staff-position =
#(lambda (grob)
  (let ((dur (ly:grob-property grob 'duration-log)))
(if (= 0 dur)
6
-6)))
r2 r1
}

Ofcours 6, -6 are not really appropriate values ...



HTH,
  Harm

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


RE: Position of rests

2018-09-09 Thread Mark Stephen Mrotek
Kieren,

Thank you for the caveat.
Since I set piano scores, I rarely transpose (well maybe when I type!)

Mark

-Original Message-
From: Kieren MacMillan [mailto:kieren_macmil...@sympatico.ca] 
Sent: Sunday, September 09, 2018 10:45 AM
To: Mark Stephen Mrotek 
Cc: Noeck ; Lilypond-User Mailing List 

Subject: Re: Position of rests

Hi Mark (and Joram),

> Consider using
> pitch duration\rest, e.g.
> b4\rest would place a quarter rest on "b."

If you do, remember that this doesn’t "survive" transposition:

\version "2.19.80"

restmusic = { g'4\rest }

{
  \restmusic
  \transpose c d \restmusic
  \transpose c e \restmusic
  \transpose c f  \restmusic
}

Cheers,
Kieren.



Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Position of rests

2018-09-09 Thread Kieren MacMillan
Hi Joram,

How is your Scheme-fu?
Maybe you can adapt one of the snippets that applies different tweaks (e.g., 
color, shape) to notes of different duration.

Hope that helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


RE: Position of rests

2018-09-09 Thread Mark Stephen Mrotek
Joran,

Perhaps

\version "2.19.81"

\new Staff <<
  \new Voice \relative {
\voiceOne c''4 d
b'2\rest
r4 r
b2\rest
   
  }
  \new Voice \relative {
\voiceTwo e'4 f
\override Rest.staff-position = -6
r2
\revert Rest.staff-position
r4 r
\override Rest.staff-position = -6
r2
  }
>>

-Original Message-
From: lilypond-user
[mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
Noeck
Sent: Sunday, September 09, 2018 10:28 AM
To: lilypond-user@gnu.org
Subject: Re: Position of rests

A MWE would be:

\new Staff <<
  \new Voice \relative {
\voiceOne c''4 d
\override Rest.staff-position = 6
r2
\revert Rest.staff-position
r4 r
\override Rest.staff-position = 6
r2
  }
  \new Voice \relative {
\voiceTwo e'4 f
\override Rest.staff-position = -6
r2
\revert Rest.staff-position
r4 r
\override Rest.staff-position = -6
r2
  }
>>

That's what I can do with overrides (or I could use \once) but if I want to
do the same thing again depending on the note value, I am stuck.

Best,
Joram

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


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


Re: Position of rests

2018-09-09 Thread Kieren MacMillan
Hi Mark (and Joram),

> Consider using
> pitch duration\rest, e.g.
> b4\rest would place a quarter rest on "b."

If you do, remember that this doesn’t "survive" transposition:

\version "2.19.80"

restmusic = { g'4\rest }

{
  \restmusic
  \transpose c d \restmusic
  \transpose c e \restmusic
  \transpose c f  \restmusic
}

Cheers,
Kieren.



Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


RE: Position of rests

2018-09-09 Thread Mark Stephen Mrotek
Joram

Consider using
pitch duration\rest, e.g.
b4\rest would place a quarter rest on "b."

Mark

-Original Message-
From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of Noeck
Sent: Sunday, September 09, 2018 9:30 AM
To: lilypond-user 
Subject: Position of rests

Hi,

I know I can set the position of individual rests by

\override Rest.staff-position = …

In a two-voice part, I want to change the staff-position of rests, but 
differently for half-note rests and full-note rests.

Is there a way to do that besides adding \overrides for each rest?

Cheers,
Joram


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


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


Re: Position of rests

2018-09-09 Thread Noeck
A MWE would be:

\new Staff <<
  \new Voice \relative {
\voiceOne c''4 d
\override Rest.staff-position = 6
r2
\revert Rest.staff-position
r4 r
\override Rest.staff-position = 6
r2
  }
  \new Voice \relative {
\voiceTwo e'4 f
\override Rest.staff-position = -6
r2
\revert Rest.staff-position
r4 r
\override Rest.staff-position = -6
r2
  }
>>

That's what I can do with overrides (or I could use \once) but if I want
to do the same thing again depending on the note value, I am stuck.

Best,
Joram

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


Re: Position of rests inside beamed groups

2017-09-22 Thread Gilberto Agostinho
Hello Harm,

Thanks for your reply.


Thomas Morley-2 wrote
> Best I can think of is:
> 
> {
>   \override Staff.Stem.stemlet-length = #1.25
>   c'16[ d'
>   \once\override NoteColumn.X-offset = 1
>   r deses']
> }

This works quite well! I've made some quick tests and the scores are looking
much better (I am algorithmically adjusting the value of the
NoteColumn.X-offset depending on the size of the beamed group). I will make
some more tests, but it looks like this solves my issue. Many thanks!

Cheers,
Gilberto



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Position of rests inside beamed groups

2017-09-21 Thread Thomas Morley
2017-09-21 13:56 GMT+02:00 Gilberto Agostinho :
> Hello all,
>
> I am writing a composition in which all rests inside beamed groups have
> stemlets. The problem is that because of my use of accidentals on every
> single note and because spacing is sometimes a bit critical, there is very
> little space between the rests's stemlets and the previous regular stem:
>
> 
>
> I thought of using Rest.X-extent to solve this, but the problem is that I
> only need to increase the X-extent on the left side of rests and
> unfortunately the stemlet position is always calculated as the half point
> between two other stems. See:
>
> \version "2.19.53"
> {
>   \override Staff.Stem.stemlet-length = #1.25
>   c'16[ d' r f']
>   \override Rest.X-extent = #'(-3.0 . 1.0)
>   c'16[ d' r f']
> }
>
> 
>
> Would anyone have some advice on how to better tackle this?
>
> Many thanks!
> Gilberto



Hi Gilberto,

I played around with the SpacingSpanner and
proportionalNotationDuration but to no convincing avail.

Best I can think of is:

{
  \override Staff.Stem.stemlet-length = #1.25
  c'16[ d'
  \once\override NoteColumn.X-offset = 1
  r deses']
}

Perhaps someone else comes up with a better method...

Cheers,
  Harm

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


Fwd: Re: Re Position of rests in cue notes (Peter Gentry)

2015-12-25 Thread Peter Gentry
Hello Jacques Yes it would. I was quickly clipping out a tiny example 
(without reading glasses).

Old fogie trouble - but you get the gist.

 On 25/12/2015 15:22, Jacques Menu wrote: > Hello Peter, "Wouldn’t  
{\set Score.skipBars = ##t s2*6 } be more explicit and less confusing? >



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


Re: Re Position of rests in cue notes (Peter Gentry)

2015-12-25 Thread Jacques Menu
Hello Peter,

> Le 24 déc. 2015 à 19:13, Peter Gentry  a écrit :
> 
> Brian Barker has supplied the solution.
> 
> That is replace say r8 by b8\rest in the set of cue notes - see   a8. (  [  
> g16 ]  r8 )  b8\rest  |  % 3 - I have left on r8 to
> illustrate the problem.
> 
> It's a bit of a fag to change all the rest in the cueNotes files as I have (5 
> * 4) 20 files one for each part and each movement.
> 
> \version "2.19.25"
> 
> cueNotes= \relative c' { 
> f8-. bes8-. (  d8-. bes8-. )   |  % 2
> a8. (  [  g16 ]  r8 )  b8\rest  |  % 3
> f8-. es'8-. (  c8-. a8-. )   |  % 4
> bes16 (  [  c32 bes32 ]  a32 [  bes32 c16 ]  d8 )  f8\mp (   |  % 5
> g8 )  es8 (  f8 )  d8 (   |  % 6
> es8 )  c8 (  d8 )  bes8 (   |  % 7
> a8\< )  a8\! r16 (  [  g16 f16 r16 )  ]   |  % 8
> }
> \addQuote "cueNotes" { \cueNotes }
> \relative c' {
> \set Score.midiInstrument = "flute"
> \set Score.skipBars = ##t
> \set Score.markFormatter = #format-mark-box-alphabet
> \accidentalStyle "modern-voice-cautionary"
> \clef "treble"
> \key bes\major
> \numericTimeSignature
> \time 2/4
> \tempo "Andante con moto"4=69
> \new CueVoice \with {
>   instrumentCueName="clt3"
>  }
> \cueDuring #"cueNotes"  #UP 
> {\set Score.skipBars = ##t s1*6/8*4 }  

Wouldn’t:

  {\set Score.skipBars = ##t s2*6 }

be more explicit and less confusing?

JM


>  d8\p r8  r8  d8  |  % 2
>  es8 r8  r8  es8  |  % 3
>  c8 r8  r8  c8  |  % 4
> }
> 
> regards
> Peter Gentry 
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re Position of rests in cue notes (Peter Gentry)

2015-12-24 Thread Peter Gentry
Brian Barker has supplied the solution.

That is replace say r8 by b8\rest in the set of cue notes - see   a8. (  [  g16 
]  r8 )  b8\rest  |  % 3 - I have left on r8 to
illustrate the problem.

It's a bit of a fag to change all the rest in the cueNotes files as I have (5 * 
4) 20 files one for each part and each movement.

\version "2.19.25"

cueNotes= \relative c' { 
 f8-. bes8-. (  d8-. bes8-. )   |  % 2
 a8. (  [  g16 ]  r8 )  b8\rest  |  % 3
 f8-. es'8-. (  c8-. a8-. )   |  % 4
 bes16 (  [  c32 bes32 ]  a32 [  bes32 c16 ]  d8 )  f8\mp (   |  % 5
 g8 )  es8 (  f8 )  d8 (   |  % 6
 es8 )  c8 (  d8 )  bes8 (   |  % 7
 a8\< )  a8\! r16 (  [  g16 f16 r16 )  ]   |  % 8
}
\addQuote "cueNotes" { \cueNotes }
\relative c' {
\set Score.midiInstrument = "flute"
\set Score.skipBars = ##t
 \set Score.markFormatter = #format-mark-box-alphabet
 \accidentalStyle "modern-voice-cautionary"
 \clef "treble"
 \key bes\major
 \numericTimeSignature
 \time 2/4
 \tempo "Andante con moto"4=69
 \new CueVoice \with {
   instrumentCueName="clt3"
  }
 \cueDuring #"cueNotes"  #UP 
 {\set Score.skipBars = ##t s1*6/8*4 }  
  d8\p r8  r8  d8  |  % 2
  es8 r8  r8  es8  |  % 3
  c8 r8  r8  c8  |  % 4
}

regards
Peter Gentry 



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


Re: Position of rests in cue notes

2015-12-24 Thread Jacques Menu
Hello Peter,

Not sure what you’re after without an example.

Does this suit your need?

JM

\version "2.19.22"



\relative {
  \clef "alto"
  \key d \major
  \time 2/4

  a16 ( [ cis16 a16 cis16 ) ] a8 -. r8 | % 232
  R2*2

  <<
\new Voice {
  \voiceTwo
  R2 R2 R2
  \tweak staff-position #-6 R2
  \cueClefUnset
}
\new CueVoice {
  \set instrumentCueName = "Flöte"
  \cueClef "treble"
  \relative {
a'8 -. [ a8 -. a8 -. a8 -. ] | % 234
a4. r8 | % 235
a8 -. [ a8 -. a8 -. a8 -. ] | % 236
a8 -. [ b8 -. cis8 -. ] r8
  }
}
  >>

  d,2 | % 239
  8 -. [ -. [ 8 -. -. 8 -. ] -. ] r8 | % 240
}



\relative {
  \clef "bass"
  \key d \major
  \time 2/4

  \transpose d d, {
\relative {
  a16 ( [ cis16 a16 cis16 ) ] a8 -. r8 | % 232
  R2*2

  <<
\new Voice {
  \voiceTwo
  R2 R2 R2
  \tweak staff-position #-6 R2
  \cueClefUnset
}
\new CueVoice {
  \set instrumentCueName = "Flöte"
  \cueClef "treble"
  \relative {
a'8 -. [ a8 -. a8 -. a8 -. ] | % 234
a4. r8 | % 235
a8 -. [ a8 -. a8 -. a8 -. ] | % 236
a8 -. [ b8 -. cis8 -. ] r8
  }
}
  >>

  d,2 | % 239
  8 -. [ -. [ 8 -. -. 8 -. ] -. ] r8 | % 240
}
  }
}


> Le 24 déc. 2015 à 13:42, Peter Gentry  a écrit :
> 
> 
> I am using cuenotes in parts with extensive rests to give players reassurance 
> with counting. 
> The only issue is that rest are placed on the top leger line ie the F of 
> treble clef. 
> Is there a way to move these down to the midle leger line ie the B of the 
> treble clef?
> 
> Merry Christmas to all Ponders...
> 
> regards
> Peter Gentry 
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: Position of rests in cue notes

2015-12-24 Thread Greg

On 24/12/2015 12:42, Peter Gentry wrote:


I am using cuenotes in parts with extensive rests to give players reassurance 
with counting.
The only issue is that rest are placed on the top leger line ie the F of treble 
clef.
Is there a way to move these down to the midle leger line ie the B of the 
treble clef?

Merry Christmas to all Ponders...

regards
Peter Gentry



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



Hi Peter,

Are you using \cueDuring? If so, you can change #direction to #UP or 
#DOWN, which places the small cue notes either above or below the rests. 
See 
http://lilypond.org/doc/v2.18/Documentation/notation/writing-parts#formatting-cue-notes


If not, perhaps you could provide a minimal example? See 
http://www.lilypond.org/tiny-examples.html


Thanks,
Greg.

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