Re: Tweaking individual BassFigures

2018-03-31 Thread David Kastrup
Simon Albrecht  writes:

> Hello everybody,
>
> it is currently not possible to tweak individual BassFigures – this:
>
> \version "2.19.80"
> \figures {
>   <\single \hide BassFigure 6 3>
> }
>
> gives a
>
> syntax error, unexpected MUSIC_FUNCTION.
>
> How fundamental are the reasons for this?

Pretty much: bass figure mode does not treat unsigneds lexically
differently.  It might be possible to do something like

  <\single\hide Bassfigure <6> 3>

in order to generate a music expression internally, but it would involve
several changes.

One is tweaking of chords by tweaking its internals instead.  I have a
change cooking for that.  The next would be unpacking chords from
function calls (and likely other Scheme expressions) when used inside of
chords.

And on top of that, this syntax is not particularly endearing with its
double wrap.

-- 
David Kastrup

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


RE: Movement title to the left of the system

2018-03-31 Thread andrew.bernard
Hi Mark,

 

Thanks. I suspected as much. It’s not very _semantic_ hijacking the instrument 
name (partly because it makes this concept hard to look up in the docs or 
searches), but it does not matter.

 

Andrew

 

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


Re: Diatonic accordion score fine-tuning

2018-03-31 Thread Thomas Morley
2018-03-30 18:25 GMT+02:00 Menu Jacques :
> Hello,
>
> I’ve nearly reached my goal. Further attempts lead me to the following, using 
> a GrandStaff and:
>
> \override GrandStaff.SpanBar.glyph-name = "|"
> \override Staff.BarLine.glyph-name = "'"
>
> I can’t obtain a vertical short line at the left and right ends of the 
> spanner yet though, since:
>
> \override AccordionPushSpanner.bound-details.left.text =
> \markup { \draw-line #'(0 . -3) }
> \override AccordionPushSpanner.bound-details.right.text =
> \markup { \draw-line #'(0 . 3) }
>
> don’t make a change. That would be useful it seems.
>
> Also, the thick parts of the repeat barlines don’t go down to the lower 
> stave, but that is maybe less useful. Maybe diatonic accordion players on 
> this list can comment on that. For the others, let’s mention that a thick 
> line means « push » and that its absence means « draw ».
>
> The next important step will be to convert the actual note pitches into the 
> fingerings that should be displayed instead.
>
> JM
>
>
>
>
>
>
>
>
>> Le 27 mars 2018 à 13:16, Menu Jacques  a écrit :
>>
>> Hello folks,
>>
>> I've modified the AccordionPushSpanner example supplied by someone on this 
>> list (can't find who it was, unfortunately), giving the attached file and 
>> the score :
>>
>> 
>> How can I tune the settings to align the bar lines lower tips with the 
>> single staff line, and hide the dots in the repeat bar lines, in a way 
>> similar to:
>>
>> 
>> The small vertical lines would be nice to have too.
>>
>> Thanks for your help!
>>
>> JM
>>
>> 
>>

Hi,

the original coding is by David Nalesnik
https://lists.gnu.org/archive/html/lilypond-user/2016-07/msg00541.html

Attached you'll find a revised version and an example. I recommend to
read the changelog in accordion.ily

To adjust the BarLines I'd simply set bar-extent to '(0 . 0) in the lower Staff.


HTH,
  Harm


accordion.ily
Description: Binary data
\version "2.19.81"

\include "accordion.ily"

%  EXAMPLE 


\header {
  title = "Diatonic accordion score example"
}

\layout {
  indent = 0\cm
  ragged-last = ##t
  \context {
\Global
\grobdescriptions #all-grob-descriptions
  }
  \context {
\Voice
\consists \accordionPushSpannerEngraver
  }
}

\new StaffGroup 
  \with { systemStartDelimiter = #'SystemStartBar }
  <<
  \new Lyrics 
\lyricmode {
  foo1 foo foo foo faa fii fee faa fuu
}

  \new Staff \with {
\remove "Clef_engraver"
\remove "Key_engraver"
  } {
f'1
g'1
e'1
f'1
g'1
e'4 f'2.
f'4 f'2.
f'1
f'4 f'2.
  }

  \new Lyrics
  \with {
associatedVoice = "P_PTwo_Staff_One_Voice_One"
  }
  \lyricmode {
F1 f F f |
C c \markup {
  \raise #1
  \center-column{"f" "F"}
} |
\markup{"B"\raise #1.5 \flat} |
F
  }

  \new Staff \with {
\remove "Clef_engraver"
\remove "Key_engraver"
\remove "Time_signature_engraver"
\override BarLine.bar-extent = #'(0 . 0)
\override StaffSymbol.line-count = 1
% Change vertical position of spanner.
\override AccordionPushSpanner.staff-padding = 0
\override AccordionPushSpanner.outside-staff-priority = #'()
  } {
\clef bass
\grace s1\startPush s1\startPull
s2\startPush s2
s1\startPull s1

\repeat volta 2 {
   s1\startPush
  s4 \startPull s2.
  s4 \startPush s2.
  \break
  s1
  s1 \startPull
}
  }
>>

%% Demonstrating possible overrides
\new Lyrics 
  \with { \consists \accordionPushSpannerEngraver } 
  \lyricmode {
"foo"2\startPush
"foo"\startPull

\once \override AccordionPushSpanner.thickness = 0.2
"foo"\startPush
"foo"\startPull


\once \override AccordionPushSpanner.thickness = 0.2
\once \override AccordionPushSpanner.details.wing-thickness = 1
"foo"\startPush
"foo"\startPull


\once \override AccordionPushSpanner.edge-height = #'(-2 . 2)
"foo"\startPush
"foo"\startPull

\once \override AccordionPushSpanner.direction = #-1
"foo"\startPush
"foo"\startPull

"foo"1
\once \override AccordionPushSpanner.bound-details.left.padding = #-2
\once \override AccordionPushSpanner.bound-details.right.padding = #-2
\once \override AccordionPushSpanner.bound-details.left-broken.padding = #-2
\once \override AccordionPushSpanner.bound-details.right-broken.padding = 2
"foo"2\startPush
\break
"foo"
"foo"\startPull
  }___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Movement title to the left of the system

2018-03-31 Thread Mark Stephen Mrotek
Andrew, 

 

You are welcome.

Such “hijackings” make this list so worthwhile!

 

Mark

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of andrew.bern...@gmail.com
Sent: Saturday, March 31, 2018 2:53 AM
To: lilypond-user@gnu.org
Subject: RE: Movement title to the left of the system

 

Hi Mark,

 

Thanks. I suspected as much. It’s not very _semantic_ hijacking the instrument 
name (partly because it makes this concept hard to look up in the docs or 
searches), but it does not matter.

 

Andrew

 

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


Re: Diatonic accordion score fine-tuning

2018-03-31 Thread Menu Jacques
Hello Harm,

Thanks for your help and thanks a lot to David for supplying this useful Scheme 
code. I’ll use that for sure!

JM

> Le 31 mars 2018 à 16:16, Thomas Morley  a écrit :
> 
> 2018-03-30 18:25 GMT+02:00 Menu Jacques  >:
>> Hello,
>> 
>> I’ve nearly reached my goal. Further attempts lead me to the following, 
>> using a GrandStaff and:
>> 
>>\override GrandStaff.SpanBar.glyph-name = "|"
>>\override Staff.BarLine.glyph-name = "'"
>> 
>> I can’t obtain a vertical short line at the left and right ends of the 
>> spanner yet though, since:
>> 
>>\override AccordionPushSpanner.bound-details.left.text =
>>\markup { \draw-line #'(0 . -3) }
>>\override AccordionPushSpanner.bound-details.right.text =
>>\markup { \draw-line #'(0 . 3) }
>> 
>> don’t make a change. That would be useful it seems.
>> 
>> Also, the thick parts of the repeat barlines don’t go down to the lower 
>> stave, but that is maybe less useful. Maybe diatonic accordion players on 
>> this list can comment on that. For the others, let’s mention that a thick 
>> line means « push » and that its absence means « draw ».
>> 
>> The next important step will be to convert the actual note pitches into the 
>> fingerings that should be displayed instead.
>> 
>> JM
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Le 27 mars 2018 à 13:16, Menu Jacques >> > a écrit :
>>> 
>>> Hello folks,
>>> 
>>> I've modified the AccordionPushSpanner example supplied by someone on this 
>>> list (can't find who it was, unfortunately), giving the attached file and 
>>> the score :
>>> 
>>> 
>>> How can I tune the settings to align the bar lines lower tips with the 
>>> single staff line, and hide the dots in the repeat bar lines, in a way 
>>> similar to:
>>> 
>>> 
>>> The small vertical lines would be nice to have too.
>>> 
>>> Thanks for your help!
>>> 
>>> JM
>>> 
>>> http://accordionpushspannerexample.ly/>>
>>> 
> 
> Hi,
> 
> the original coding is by David Nalesnik
> https://lists.gnu.org/archive/html/lilypond-user/2016-07/msg00541.html 
> 
> 
> Attached you'll find a revised version and an example. I recommend to
> read the changelog in accordion.ily
> 
> To adjust the BarLines I'd simply set bar-extent to '(0 . 0) in the lower 
> Staff.
> 
> 
> HTH,
>  Harm
> 

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


Re: Movement title to the left of the system

2018-03-31 Thread Simon Albrecht

On 31.03.2018 03:34, Andrew Bernard wrote:
What is the preferred way of putting a title for a movement to the 
left of the start of the first system for a keyboard piece, that is, 
in the space normally used for the indent?


Just in case: Of course you can use the instrumentName of a StaffGroup 
or similar context instead of just any Staff.


Best, Simon

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


Re: Movement title to the left of the system

2018-03-31 Thread Simon Albrecht

On 31.03.2018 11:53, andrew.bern...@gmail.com wrote:

It’s not very _/semantic/_ hijacking the instrument name


If you want it more semantic, use a normal \header {} block, change 
bookTitleMarkup and scoreTitleMarkup to no longer use the fields and 
instead use \markup \fromproperty #'header:title &c. in the instrumentName.

You might need .

Best, Simon

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


Re: 2.19.81 pitchedTrill ending on rest

2018-03-31 Thread Paul Scott
On Fri, Mar 30, 2018 at 08:10:46PM -0700, Mark Stephen Mrotek wrote:
> Paul,
> 
> See the attached snippet.
> Is it what you want?

Yes.  That's a little embarrassing but what I need to accomplish has more to
it.

When I add a slur from a previous note:
\relative c'' {
  g2( \pitchedTrill a) \startTrillSpan bes r4\stopTrillSpan
}

I get:
pttest.ly:4:24: warning: Ignoring grob for slur: TrillPitchAccidental.  
avoid-slur not set?

I do get the right result but don't know why I get the warning.

Paul



> 
> Mark
> 
> -Original Message-
> From: lilypond-user
> [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
> Paul Scott
> Sent: Friday, March 30, 2018 3:54 PM
> To: LilyPond User List 
> Subject: 2.19.81 pitchedTrill ending on rest
> 
> I haven't been successful getting a pitchedTrill to end on a rest.
> 
> Has anyone got a working example of this, i.e.
> 
> \pitchedTrill g2.\startTrillSpan a r4\stopTrillSpan
> 
> TIA for any ideas,
> 
> Paul
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

> \version "2.19.80"
> 
> \relative c'' {
>   \pitchedTrill g2.\startTrillSpan a r4\stopTrillSpan
> }


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


Storing movement titles as a variable

2018-03-31 Thread Craig Dabelstein
Hi all,

Is it possible to store movement titles as a variable? e.g.,

movtI = { \markup{I. Allegro} }
movtII = { \markup{II. Adagio} }

\header{
piece = \movtI
}

So far I haven't been able to get this to work. Any ideas?

Craig



-- 
*Craig Dabelstein*
Maxime's Music
craig.dabelst...@gmail.com
*http://maximesmusic.com *
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: 2.19.81 pitchedTrill ending on rest

2018-03-31 Thread Mark Stephen Mrotek
Paul,

I compiled

\version "2.19.80"

\relative c'' {
  g2 (\pitchedTrill a) \startTrillSpan bes
  r4\stopTrillSpan }

No warning! Check the version you are using.

Mark

-Original Message-
From: Paul Scott [mailto:waterho...@ultrasw.com] 
Sent: Saturday, March 31, 2018 6:20 PM
To: Mark Stephen Mrotek 
Cc: 'LilyPond User List' 
Subject: Re: 2.19.81 pitchedTrill ending on rest

On Fri, Mar 30, 2018 at 08:10:46PM -0700, Mark Stephen Mrotek wrote:
> Paul,
> 
> See the attached snippet.
> Is it what you want?

Yes.  That's a little embarrassing but what I need to accomplish has more to
it.

When I add a slur from a previous note:
\relative c'' {
  g2( \pitchedTrill a) \startTrillSpan bes r4\stopTrillSpan }

I get:
pttest.ly:4:24: warning: Ignoring grob for slur: TrillPitchAccidental.
avoid-slur not set?

I do get the right result but don't know why I get the warning.

Paul



> 
> Mark
> 
> -Original Message-
> From: lilypond-user
> [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf 
> Of Paul Scott
> Sent: Friday, March 30, 2018 3:54 PM
> To: LilyPond User List 
> Subject: 2.19.81 pitchedTrill ending on rest
> 
> I haven't been successful getting a pitchedTrill to end on a rest.
> 
> Has anyone got a working example of this, i.e.
> 
> \pitchedTrill g2.\startTrillSpan a r4\stopTrillSpan
> 
> TIA for any ideas,
> 
> Paul
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

> \version "2.19.80"
> 
> \relative c'' {
>   \pitchedTrill g2.\startTrillSpan a r4\stopTrillSpan }


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


Re: Storing movement titles as a variable

2018-03-31 Thread Brian Barker

At 14:35 01/04/2018 +1000, Craig Dabelstein wrote:

Is it possible to store movement titles as a variable? e.g.,

movtI = { \markup{I. Allegro} }
movtII = { \markup{II. Adagio} }

\header{
piece = \movtI
}

So far I haven't been able to get this to work. Any ideas?


Is there any reason why you cannot use:

movtI = "I. Allegro"
movtII = "II. Adagio"

\header{
piece = \markup \movtI
}

Brian Barker 



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


Re: Storing movement titles as a variable

2018-03-31 Thread David Kastrup
Craig Dabelstein  writes:

> Hi all,
>
> Is it possible to store movement titles as a variable? e.g.,
>
> movtI = { \markup{I. Allegro} }
> movtII = { \markup{II. Adagio} }
>
> \header{
> piece = \movtI
> }
>
> So far I haven't been able to get this to work. Any ideas?

movtI = \markup{I. Allegro}
movtII = \markup{II. Adagio}

\header{
piece = \movtI
}

You cannot just strew braces everywhere: they have meaning.  In
particular, outside of other modes (like markup mode) they introduce
sequential music.

-- 
David Kastrup

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


Re: Storing movement titles as a variable

2018-03-31 Thread Craig Dabelstein
Thanks Brian. Much appreciated.

Craig


On 1 April 2018 at 14:52, Brian Barker  wrote:

> At 14:35 01/04/2018 +1000, Craig Dabelstein wrote:
>
>> Is it possible to store movement titles as a variable? e.g.,
>>
>> movtI = { \markup{I. Allegro} }
>> movtII = { \markup{II. Adagio} }
>>
>> \header{
>> piece = \movtI
>> }
>>
>> So far I haven't been able to get this to work. Any ideas?
>>
>
> Is there any reason why you cannot use:
>
> movtI = "I. Allegro"
> movtII = "II. Adagio"
>
> \header{
> piece = \markup \movtI
> }
>
> Brian Barker
>



-- 
*Craig Dabelstein*
Maxime's Music
craig.dabelst...@gmail.com
*http://maximesmusic.com *
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user