Organ pedal foot substitution

2016-02-24 Thread Joseph N. Srednicki
Could someone possibly tell me how to code alternate foot organ pedal
substitution as shown in the attached image file attach_a.png?

 

This image is from Dickinson, Clarence. The Technique and Art of Organ
Playing. London: H. W. Gray, 1922, p. 117. (Note this book is available from
the IMSLP site.)

 

(Some editors also use curved lines with arrows as shown in the attached
image file attach_b.png. This solution with the curved arrows will also work
for my purposes if it's easier to code.)

 

I located the following related thread in the mail archive:
https://lists.gnu.org/archive/html/lilypond-user/2007-12/msg00386.html. The
solution proposed in that thread works for same foot substitution, and I
intend to use it. However, that solution does not work to indicate alternate
foot substitution.

 

If there is a solution in the mail archive or snippets that I have
overlooked, please feel free to point me to it.

 

Thanks for any suggestions or solutions.

 

Joe Srednicki

 

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


Storing a bookpart in a variable

2016-02-24 Thread Vaughan McAlley
Greetings,

I’d like to be able to specify at the top of my main score which
movements are printed. I can store a \bookpart in a variable, but I
can’t seem to return it from a scheme expression. Is there a bookpart
equivalent to define-music-function that I haven’t found?

Vaughan


%%
\version "2.18.2"

compileTheseMovements = "2" % change to "12" to compile both movements

EmptyBookpart = \bookpart {}

FirstMovement = \bookpart {
   \tocItem "First Movement"
   \header {
  title = "Multi-movement piece"
  composer = "LvB"
  subtitle = "First Movement"
   }

   \score {
  { \time 2/4 r8 g' [ g' g'] es'2 }
  \layout {}
  \midi {}
   }

}

SecondMovement = \bookpart {
   \tocItem "Second Movement"
   \header {
  title = ##f
  subtitle = "Second Movement"
   }
   \score {
  { \time 3/8 \partial 8 es16. as32 c'8 c'16. bes32 as16. c'32 f4 }
  \layout {}
  \midi {}
   }
}

\book {
   #(if
 (string-contains compileTheseMovements "1")
 FirstMovement
 EmptyBookpart)

   #(if
 (string-contains compileTheseMovements "2")
 SecondMovement
 EmptyBookpart)

%{
   % This works fine
   \FirstMovement
   \SecondMovement
%}

} % \book
%%%

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


Re: Fingerings get crushed if key is removed. Bug?

2016-02-24 Thread Simon Albrecht

On 24.02.2016 17:14, Pierre-Luc Gauthier wrote:

Greetings,

Just documenting an oddity.

If you remove the key (on line 11) the piano fingerings get crushed 
into the beams.


Rather strange…

Should I file a bug report ?


No, I think this is ‘expected behaviour’ in some way: Without the key 
signature, the music expression with the fingerings ends up on a 
different Voice than the music, so collision resolving doesn’t work. Try 
enclosing the right and left hand parts with \new Voice, then there will 
be no problem.


Best, Simon

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


Re: Music function for arrow directions in arpeggios

2016-02-24 Thread Noeck
Hi Simon,

Am 24.02.2016 um 21:50 schrieb Simon Albrecht:
> On 23.02.2016 22:22, Noeck wrote:
>> the names \arpeggioUp and \arpeggioDown are still free and
>> would me much more lilypondish.
> 
> More imprecise, really. It’s really only the direction of the arrow
> that’s changed, not the direction of the whole grob.

Well the rest of the grob is invariant to rotations so you can't really
tell ;)

While this is true for the current \arpeggioArrowUp and Down commands,
the proposed tweaked arpeggios would need names like
\arpeggioWithArrowUp and \arpeggioWithArrowDown to be really precise.

If you insist on the distinction from things like \slurUp \slurDown, a
comparable situation could be \upbow \downbow. So how about \uparpeggio
\downarpeggio?

My term 'lilypondish' was not related to the name but to the fact that
the tweaked arpeggios are written as postfix and do not need to surround
the note.

Cheers,
Joram

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


Re: Music function for arrow directions in arpeggios

2016-02-24 Thread Kieren MacMillan
Hi Simon,

> Surely it is a question of priorities. Do such alternating patterns occur 
> more often than situations with arpeggio direction changing once in a while, 
> but each change holds for several subsequent chords? That’s the question. (I 
> cannot answer.)

I think my solution addresses the [OP’s] issue without abandoning the 
[existing] benefit: by defining \arpU and \arpD as single-use commands (i.e., 
tweaks), you can still use \arpeggioUp or \arpeggioDown to establish a holding 
direction change.

Yes?

Best,
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: Music function for arrow directions in arpeggios

2016-02-24 Thread Simon Albrecht

On 24.02.2016 00:08, Dan Eble wrote:

Is this a case where attaching an arpeggio to a chord with ^ or _ should make a 
difference, or do I misunderstand the point of those characters?


Yes, you do. They change the direction of the entire grob, not the 
arpeggio-direction indicated by the arrow.


Best, Simon

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


Re: Music function for arrow directions in arpeggios

2016-02-24 Thread Simon Albrecht

On 23.02.2016 16:14, Abraham Lee wrote:
On Tue, Feb 23, 2016 at 8:04 AM, Malte Meyn > wrote:




Am 23.02.2016 um 15:52 schrieb Caio Giovaneti de Barros:

I'm trying to write a function to make easier for me to change
arrow
directions in arpeggios.


I would prefer an event function with a tweak:

\version "2.19.36"

arpeggioUp = \tweak arpeggio-direction #UP \arpeggio

\relative c' { \arpeggioUp }


I like this a lot and I feel like I've seen this exact discussion 
before, but it didn't result in any core changes.


Dev Team,

Any reason \arpeggioArrowUp and \arpeggioArrowDown can't be defined 
this way from the beginning? Is there a use-case where the 
"\arpeggioArrowUp  \arpeggio" way is necessary?


Surely it is a question of priorities. Do such alternating patterns 
occur more often than situations with arpeggio direction changing once 
in a while, but each change holds for several subsequent chords? That’s 
the question. (I cannot answer.)


Best, Simon

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


Re: Music function for arrow directions in arpeggios

2016-02-24 Thread Simon Albrecht

On 23.02.2016 22:22, Noeck wrote:

the names \arpeggioUp and \arpeggioDown are still free and
would me much more lilypondish.


More imprecise, really. It’s really only the direction of the arrow 
that’s changed, not the direction of the whole grob.


Best, Simon

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


RE: How to set the line thickness for slurs and ties globally

2016-02-24 Thread Joseph N. Srednicki
Hi Kieran:

Thanks. Your solution works.

After I sent the message to the group, I found the following information in the 
documentation: 
http://www.lilypond.org/doc/v2.18/Documentation/learning/properties-of-layout-objects

In this section of the documentation, there is an example of changing the 
thickness of a slur.

Thanks again for your help.

Joe Srednicki

-Original Message-
From: Kieren MacMillan [mailto:kieren_macmil...@sympatico.ca] 
Sent: Wednesday, February 24, 2016 11:24 AM
To: Joseph N. Srednicki 
Cc: Lilypond-User Mailing List 
Subject: Re: How to set the line thickness for slurs and ties globally

Hi Joseph,

> Would someone be willing to tell me the specific codes or point me to the 
> documentation that explains how to set the line thicknesses of slurs and ties 
> globally?

\layout {
  \context {
\Score
\override Slur.thickness = #10  % or whatever
  }
}

Hope this 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: Global volta and midi

2016-02-24 Thread Pierre-Luc Gauthier
I sort of forgot to include my example… '-_-

2016-02-24 11:34 GMT-05:00 Pierre-Luc Gauthier :
> Hi there,
>
> I'm going through my LilyPond testing folder.
>
> And there is this situation I never quite resolved.
>
> I love the fact that I can centralize the structure of a song into a
> single variable.
>
> e.g.
>
> structure = {
>   \key a \major
>   \time 4/4
>   \tempo 4=112
>   s1 |
>   \repeat volta 2 {
> s1 |
>   }
>   s2. s4\fermata |
>   \bar "|."
> }
>
> I found it has many advantages :
> Everything that is common to everybody *is* and should be in that variable.
>
> Well, most everything:
> My problem is with volta.
>
> The cool thing though is that it gets correctly displayed.
> The problem arrise when \unfoldRepeat is used in the midi score.
> Then the structure get unfolded but not the music.
>
> Volta (well in most songs anyway) are something that relates to every
> body in the band.
> Therefore it should not be repeated in every musical expression.
>
> Say you have a 20 piece orchestra and you want to repeat a section 4
> times instead of 2.
> Should you go and change all those 20 2s to 4s ?
>
> Maybe my approach is wrong.
> Is there another way to go about centralizing everything in a single variable.
>
> It is something I want to optimize in my workflow
> by not having to maintain different parts of a song that should
> actually be the same throughout.
>
>
> Any thoughts?
>
> Have a good day
> --
> Pierre-Luc Gauthier



-- 
Pierre-Luc Gauthier
\version "2.18.2"
\language "english"

\header {
  title = \markup {\smallCaps "unfold the music"}
  subtitle = \markup {\italic "(Y U No)"}
}

structure = {
  \key a \major
  \time 4/4
  \tempo 4=112
  s1 |
  \repeat volta 2 {
s1 |
  }
  s2. s4\fermata |
  \bar "|."
}

music = \relative c' {
  cs4 d e fs |
  gs a b cs |
  d e fs gs |
}

scoreContent = {
  \new Staff \new Voice << \structure \music >>
}

\score {
  \header {
piece = "Correctly displayed"
  }
  \scoreContent
  \layout { }
}
\score {
  \header {
piece = "Partialy unfolded"
  }
  \unfoldRepeats
  \scoreContent
  \layout {}
  \midi {}
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Global volta and midi

2016-02-24 Thread Pierre-Luc Gauthier
Hi there,

I'm going through my LilyPond testing folder.

And there is this situation I never quite resolved.

I love the fact that I can centralize the structure of a song into a
single variable.

e.g.

structure = {
  \key a \major
  \time 4/4
  \tempo 4=112
  s1 |
  \repeat volta 2 {
s1 |
  }
  s2. s4\fermata |
  \bar "|."
}

I found it has many advantages :
Everything that is common to everybody *is* and should be in that variable.

Well, most everything:
My problem is with volta.

The cool thing though is that it gets correctly displayed.
The problem arrise when \unfoldRepeat is used in the midi score.
Then the structure get unfolded but not the music.

Volta (well in most songs anyway) are something that relates to every
body in the band.
Therefore it should not be repeated in every musical expression.

Say you have a 20 piece orchestra and you want to repeat a section 4
times instead of 2.
Should you go and change all those 20 2s to 4s ?

Maybe my approach is wrong.
Is there another way to go about centralizing everything in a single variable.

It is something I want to optimize in my workflow
by not having to maintain different parts of a song that should
actually be the same throughout.


Any thoughts?

Have a good day
-- 
Pierre-Luc Gauthier

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


Re: How to set the line thickness for slurs and ties globally

2016-02-24 Thread Kieren MacMillan
Hi Joseph,

> Would someone be willing to tell me the specific codes or point me to the 
> documentation that explains how to set the line thicknesses of slurs and ties 
> globally?

\layout {
  \context {
\Score
\override Slur.thickness = #10  % or whatever
  }
}

Hope this 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: How to set the line thickness for slurs and ties globally

2016-02-24 Thread tisimst
Joseph,

On Wed, Feb 24, 2016 at 9:17 AM, Joseph N. Srednicki-2 [via Lilypond] <
ml-node+s1069038n187678...@n5.nabble.com> wrote:

> Would someone be willing to tell me the specific codes or point me to the
> documentation that explains how to set the line thicknesses of slurs and
> ties globally? I want to adjust the thicknesses only for ties and slurs and
> not for any other lines.
>
>
>
> Snippet http://lsr.di.unimi.it/LSR/Snippet?id=308 provides an example of
> tweaking the line thickness for an individual slur.
>
>
>
> Once I figure out what the commands are, would I put the commands to set
> the thicknesses for a ties and slurs in a layout block?
>
>
>
> Thanks for any help or suggestions that you are willing to provide.
>

Both Slur  and
Tie  grobs have
a "thickness" property. Just put the \override in a \layout block to make
the change more general, like this:

\layout {
  \context {
\Score
\override Slur.thickness = #3
\override Tie.thickness = #3
  }
}

HTH,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-set-the-line-thickness-for-slurs-and-ties-globally-tp187678p187679.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


How to set the line thickness for slurs and ties globally

2016-02-24 Thread Joseph N. Srednicki
Would someone be willing to tell me the specific codes or point me to the
documentation that explains how to set the line thicknesses of slurs and
ties globally? I want to adjust the thicknesses only for ties and slurs and
not for any other lines.

 

Snippet http://lsr.di.unimi.it/LSR/Snippet?id=308 provides an example of
tweaking the line thickness for an individual slur. 

 

Once I figure out what the commands are, would I put the commands to set the
thicknesses for a ties and slurs in a layout block?

 

Thanks for any help or suggestions that you are willing to provide.

 

Joe Srednicki

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


Fingerings get crushed if key is removed. Bug?

2016-02-24 Thread Pierre-Luc Gauthier
Greetings,

Just documenting an oddity.

If you remove the key (on line 11) the piano fingerings get crushed into
the beams.

Rather strange…

Should I file a bug report ?

Have a good day
-- 
Pierre-Luc Gauthier
%%%
http://lilybin.com/z6ukgb/6
%%%
\version "2.18.2"
\language "english"

global = {
  % Try and remove the key bellow.
  \key c \major
  % If the key is not there, the fingerings get crushed up
  \time 6/4
}

right = \relative c' {
  \global
  <<
{
  c8 cs d ds e f fs g gs a as b
  c cs d ds e f fs g gs a as b
  c1.
  c8 b bf a af g gf f e ef d df
  c b bf a af g gf f e ef d df
  c1.
}
{
  s8-1
  \repeat unfold 2 {
\repeat unfold 2 {s-3 s-1} s-2
\repeat unfold 3 {s-3 s-1} s-2
  }

  s1 s4.

  s8-2
  \repeat unfold 2 {
\repeat unfold 3 {s-1 s-3} s-2
\repeat unfold 2 {s-1 s-3} s-2
  }
}
  >>
}

left = \relative c, {
  \global
  <<
{
  c8 cs d ds e f fs g gs a as b
  c cs d ds e f fs g gs a as b
  c1.
  c8 b bf a af g gf f e ef d df
  c b bf a af g gf f e ef d df
  c1.
}
{
  \repeat unfold 2 {
\repeat unfold 2 {s8-1 s-3} s-2
\repeat unfold 3 {s-1 s-3} s-2
  } s1.-1

  s8-1
  \repeat unfold 2 { s-2
 \repeat unfold 3 {s-3 s-1} s-2
 \repeat unfold 2 {s-3 s-1}
  }
}
  >>
}



scoreContent = {
  \new PianoStaff <<
\new Staff \right
\new Staff { \clef bass \left }
  >>
}

\score {
  \scoreContent
  \layout { }
  \midi { }
}
\version "2.18.2"
\language "english"

global = {
  % Try and remove the key bellow.
  \key c \major
  % If the key is not there, the fingerings get crushed up
  \time 6/4
}

right = \relative c' {
  \global
  <<
{
  c8 cs d ds e f fs g gs a as b
  c cs d ds e f fs g gs a as b
  c1.
  c8 b bf a af g gf f e ef d df
  c b bf a af g gf f e ef d df
  c1.
}
{
  s8-1
  \repeat unfold 2 {
\repeat unfold 2 {s-3 s-1} s-2
\repeat unfold 3 {s-3 s-1} s-2
  }

  s1 s4.

  s8-2
  \repeat unfold 2 {
\repeat unfold 3 {s-1 s-3} s-2
\repeat unfold 2 {s-1 s-3} s-2
  }
}
  >>
}

left = \relative c, {
  \global
  <<
{
  c8 cs d ds e f fs g gs a as b
  c cs d ds e f fs g gs a as b
  c1.
  c8 b bf a af g gf f e ef d df
  c b bf a af g gf f e ef d df
  c1.
}
{
  \repeat unfold 2 {
\repeat unfold 2 {s8-1 s-3} s-2
\repeat unfold 3 {s-1 s-3} s-2
  } s1.-1

  s8-1
  \repeat unfold 2 { s-2
 \repeat unfold 3 {s-3 s-1} s-2
 \repeat unfold 2 {s-3 s-1}
  }
}
  >>
}



scoreContent = {
  \new PianoStaff <<
\new Staff \right
\new Staff { \clef bass \left }
  >>
}

\score {
  \scoreContent
  \layout { }
  \midi { }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: BarNumber instead of shortInstrumentName

2016-02-24 Thread David Kastrup
Remy CLAVERIE  writes:

>> Message du 24/02/16 15:39
>> De : "Richard Shann" 
>> A : "Remy CLAVERIE" 
>> 
>> You don't have to be admin, you just install in your home
>> directory. As with Denemo, waiting for the Distro's to wake up to new
>> versions is too slow. Download from lilypond.org.

Well, "the distros" have woken up already, but 14.04 is a longtime
support version.  It's worth checking the "backports" repository (no
idea whether this would help with LilyPond, and Remy is not an admin
anyway but if it's just a matter of adding "backports" to the apt
sources, the real admin might be sympathetic to doing that).

But LilyPond's downloads indeed can be installed with user privileges,
and one can also compile and install into user-serviceable areas from
Git by configuring with an appropriate setting of --prefix.

For the few non-system applications that one is a reasonably thorough
user of, that effort may be a reasonable investment.

-- 
David Kastrup

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


Re: BarNumber instead of shortInstrumentName

2016-02-24 Thread Remy CLAVERIE
OK. thnaks for this information !

 

Rémy

 

 

 

 

 

> Message du 24/02/16 15:39
> De : "Richard Shann" 
> A : "Remy CLAVERIE" 
> Copie à : "Phil Holmes" , "David Kastrup" , "Thomas Morley" , "lilypond-user" 

> Objet : Re: BarNumber instead of shortInstrumentName
> 
> On Wed, 2016-02-24 at 15:10 +0100, Remy CLAVERIE wrote:
> > Because, I am under ubuntu 14.04 and the default version is Lilypond
> > 2.16.2. I am not an admin on this pro computer, so I can't upgrade...
> 
> You don't have to be admin, you just install in your home directory. As
> with Denemo, waiting for the Distro's to wake up to new versions is too
> slow. Download from lilypond.org.
> 
> Richard
> 
> 
> 
> 
> > 
> > 
> > 
> > 
> > Rémy
> > 
> > 
> > 
> > 
> > 
> > > Message du 24/02/16 14:48
> > > De : "Phil Holmes" 
> > > A : "Remy CLAVERIE" , "David
> > Kastrup" 
> > > Copie à : "Thomas Morley" ,
> > "lilypond-user" 

> > > Objet : Re: BarNumber instead of shortInstrumentName
> > > 
> > > 
> > David meant "Why are you still using such an old version of
> > lilypond?"
> > 
> > > --
> > > Phil Holmes
> > 
> > 
> > - Original Message -
> > From: Remy CLAVERIE
> > To: David Kastrup
> > Cc: Thomas Morley ; lilypond-user
> > Sent: Wednesday, February 24, 2016 1:41 PM
> > Subject: Re: BarNumber instead of shortInstrumentName
> > 
> > >
> > > Hello David,
> > 
> > > 
> > 
> > > Because the syntax between the 2.16 and the 2.19
> > versions are quite different and I do not manage to
> > correct this "unbound variable error"...
> > 
> > > 
> > 
> > > Thanks
> > 
> > > 
> > 
> > > Rémy
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > Message du 24/02/16 13:14
> > > > De : "David Kastrup" 
> > > > A : "Remy CLAVERIE"
> > 
> > > > Copie à : "Thomas Morley"
> > , "lilypond-user"
> > 

> > > > Objet : Re: BarNumber instead of
> > shortInstrumentName
> > > > 
> > > > Remy CLAVERIE 
> > writes:
> > > > 
> > > > > Thanks a lot Thmas for this quick
> > answer !
> > > > >
> > > > > 
> > > > >
> > > > > Unfortunatly, I forgot to say that I use
> > the 2.16.2 version of
> > > > > lilypond.
> > > > 
> > > > Why?
> > > > 
> > > > -- 
> > > > David Kastrup
> > > >
> > 
> > >
> > 
> > 
> > __
> > 
> > >
> > 
> > ___
> > > 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
> 
> 
>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: BarNumber instead of shortInstrumentName

2016-02-24 Thread Remy CLAVERIE
Thanks, it works great !!

 

Regards

 

Rémy

 

 

 

 

 

> Message du 24/02/16 15:04
> De : "David Nalesnik" 
> A : "Remy CLAVERIE" 
> Copie à : "Thomas Morley" , "lilypond-user" 

> Objet : Re: BarNumber instead of shortInstrumentName
> 
>

>

>
On Wed, Feb 24, 2016 at 5:59 AM, Remy CLAVERIE  wrote:
>

> Thanks a lot Thmas for this quick answer !

>  

> Unfortunatly, I forgot to say that I use the 2.16.2 version of lilypond. So I 
> changed your function this way, but I have an "Unbound variable grob::name" 
> error...

> Can you still help me ?



>
You might try the solution here: 
http://www.mail-archive.com/lilypond-user%40gnu.org/msg95841.html

>
It looks like it doesn't have anything that wouldn't work with 2.16.  (But  I 
would really recommend upgrading.)

>
David N


>

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


Re: BarNumber instead of shortInstrumentName

2016-02-24 Thread Richard Shann
On Wed, 2016-02-24 at 15:10 +0100, Remy CLAVERIE wrote:
> Because, I am under ubuntu 14.04 and the default version is Lilypond
> 2.16.2. I am not an admin on this pro computer, so I can't upgrade...

You don't have to be admin, you just install in your home directory. As
with Denemo, waiting for the Distro's to wake up to new versions is too
slow. Download from lilypond.org.

Richard




>  
> 
>  
> 
> Rémy
> 
>  
> 
>  
> 
> > Message du 24/02/16 14:48
> > De : "Phil Holmes" 
> > A : "Remy CLAVERIE" , "David
> Kastrup" 
> > Copie à : "Thomas Morley" ,
> "lilypond-user" 
> > Objet : Re: BarNumber instead of shortInstrumentName
> > 
> > 
> David meant "Why are you still using such an old version of
> lilypond?"
> 
> > --
> > Phil Holmes
>  
>  
> - Original Message -
> From: Remy CLAVERIE
> To: David Kastrup
> Cc: Thomas Morley ; lilypond-user
> Sent: Wednesday, February 24, 2016 1:41 PM
> Subject: Re: BarNumber instead of shortInstrumentName
> 
> >
> > Hello David,
> 
> >  
> 
> > Because the syntax between the 2.16 and the 2.19
> versions are quite different and I do not manage to
> correct this "unbound variable error"...
> 
> >  
> 
> > Thanks
> 
> >  
> 
> > Rémy
> 
> >  
> 
> >  
> 
> >  
> 
> >  
> 
> > Message du 24/02/16 13:14
> > > De : "David Kastrup" 
> > > A : "Remy CLAVERIE"
> 
> > > Copie à : "Thomas Morley"
> , "lilypond-user"
> 
> > > Objet : Re: BarNumber instead of
> shortInstrumentName
> > > 
> > > Remy CLAVERIE 
> writes:
> > > 
> > > > Thanks a lot Thmas for this quick
> answer !
> > > >
> > > >  
> > > >
> > > > Unfortunatly, I forgot to say that I use
> the 2.16.2 version of
> > > > lilypond.
> > > 
> > > Why?
> > > 
> > > -- 
> > > David Kastrup
> > >
> 
> >
> 
> 
> __
> 
> >
> 
> ___
> > 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



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


Re: BarNumber instead of shortInstrumentName

2016-02-24 Thread Remy CLAVERIE
Because, I am under ubuntu 14.04 and the default version is Lilypond 2.16.2. I 
am not an admin on this pro computer, so I can't upgrade...

 

 

Rémy

 

 

> Message du 24/02/16 14:48
> De : "Phil Holmes" 
> A : "Remy CLAVERIE" , "David Kastrup" 
> Copie à : "Thomas Morley" , "lilypond-user" 

> Objet : Re: BarNumber instead of shortInstrumentName
> 
> 
David meant "Why are you still using such an old version of lilypond?"

> --
> Phil Holmes
 
 

- Original Message -
From: Remy CLAVERIE
To: David Kastrup
Cc: Thomas Morley ; lilypond-user
Sent: Wednesday, February 24, 2016 1:41 PM
Subject: Re: BarNumber instead of shortInstrumentName

>
> Hello David,

>  

> Because the syntax between the 2.16 and the 2.19 versions are quite different 
> and I do not manage to correct this "unbound variable error"...

>  

> Thanks

>  

> Rémy

>  

>  

>  

>  

> Message du 24/02/16 13:14
> > De : "David Kastrup" 
> > A : "Remy CLAVERIE" 
> > Copie à : "Thomas Morley" , "lilypond-user" 

> > Objet : Re: BarNumber instead of shortInstrumentName
> > 
> > Remy CLAVERIE  writes:
> > 
> > > Thanks a lot Thmas for this quick answer !
> > >
> > >  
> > >
> > > Unfortunatly, I forgot to say that I use the 2.16.2 version of
> > > lilypond.
> > 
> > Why?
> > 
> > -- 
> > David Kastrup
> >
>


>

___
> 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: BarNumber instead of shortInstrumentName

2016-02-24 Thread David Nalesnik
On Wed, Feb 24, 2016 at 5:59 AM, Remy CLAVERIE 
wrote:

> Thanks a lot Thmas for this quick answer !
>
>
>
> Unfortunatly, I forgot to say that I use the 2.16.2 version of lilypond.
> So I changed your function this way, but I have an "Unbound variable
> grob::name" error...
>
> Can you still help me ?
>

You might try the solution here:
http://www.mail-archive.com/lilypond-user%40gnu.org/msg95841.html

It looks like it doesn't have anything that wouldn't work with 2.16.  (But
 I would really recommend upgrading.)

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


Re: BarNumber instead of shortInstrumentName

2016-02-24 Thread Phil Holmes
David meant "Why are you still using such an old version of lilypond?"

--
Phil Holmes


  - Original Message - 
  From: Remy CLAVERIE 
  To: David Kastrup 
  Cc: Thomas Morley ; lilypond-user 
  Sent: Wednesday, February 24, 2016 1:41 PM
  Subject: Re: BarNumber instead of shortInstrumentName


  Hello David,



  Because the syntax between the 2.16 and the 2.19 versions are quite different 
and I do not manage to correct this "unbound variable error"...



  Thanks



  Rémy









> Message du 24/02/16 13:14
> De : "David Kastrup" 
> A : "Remy CLAVERIE" 
> Copie à : "Thomas Morley" , "lilypond-user" 

> Objet : Re: BarNumber instead of shortInstrumentName
> 
> Remy CLAVERIE  writes:
> 
> > Thanks a lot Thmas for this quick answer !
> >
> >  
> >
> > Unfortunatly, I forgot to say that I use the 2.16.2 version of
> > lilypond.
> 
> Why?
> 
> -- 
> David Kastrup
> 


--


  ___
  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: BarNumber instead of shortInstrumentName

2016-02-24 Thread Remy CLAVERIE
Hello David,

 

Because the syntax between the 2.16 and the 2.19 versions are quite different 
and I do not manage to correct this "unbound variable error"...

 

Thanks

 

Rémy

 

 

 

 

> Message du 24/02/16 13:14
> De : "David Kastrup" 
> A : "Remy CLAVERIE" 
> Copie à : "Thomas Morley" , "lilypond-user" 

> Objet : Re: BarNumber instead of shortInstrumentName
> 
> Remy CLAVERIE  writes:
> 
> > Thanks a lot Thmas for this quick answer !
> >
> >  
> >
> > Unfortunatly, I forgot to say that I use the 2.16.2 version of
> > lilypond.
> 
> Why?
> 
> -- 
> David Kastrup
>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: BarNumber instead of shortInstrumentName

2016-02-24 Thread David Kastrup
Remy CLAVERIE  writes:

> Thanks a lot Thmas for this quick answer !
>
>  
>
> Unfortunatly, I forgot to say that I use the 2.16.2 version of
> lilypond.

Why?

-- 
David Kastrup

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


Re: BarNumber instead of shortInstrumentName

2016-02-24 Thread Remy CLAVERIE
Thanks a lot Thmas for this quick answer !

 

Unfortunatly, I forgot to say that I use the 2.16.2 version of lilypond. So I 
changed your function this way, but I have an "Unbound variable grob::name" 
error...

Can you still help me ?

Thanks a lot,

Rémy



my-bar-short-instrument-name =

\with {

instrumentName = "1"

shortInstrumentName = ""

\override InstrumentName #'after-line-breaking =

#(lambda (grob)

(let* ((all-sys-elts (ly:grob-object (ly:grob-system grob) 'all-elements))

(sorted-bar-nmbrs

(sort

(map

(lambda (g)

(markup->string (ly:grob-property g 'text)))

(filter

(lambda (e)

(eq? (grob::name e) 'BarNumber))

(ly:grob-array->list

(ly:grob-object (ly:grob-system grob) 'all-elements

string-ci Message du 24/02/16 12:03
> De : "Thomas Morley" 
> A : "Remy CLAVERIE" 
> Copie à : "lilypond-user" 

> Objet : Re: BarNumber instead of shortInstrumentName
> 
> 2016-02-24 10:05 GMT+01:00 Remy CLAVERIE :
> > Dear lilypond users,
> >
> >
> >
> > I would like to place BarNumbers at the right side of a StaffGroup, but I do
> > not see how to do that. I frist used the X/Y-offset properties but it was
> > not a good idea because the distance between staves of a StaffGroup is
> > flexible; so numbers were never really horizontally centered.
> >
> >
> >
> > My new idea is to use the shortInstrumentName of the StaffGroup context, but
> > I don't know how to read/get the bar number from the stencil properties and
> > then convert it into the shortInstrumentName string.
> >
> >
> >
> > Can someone help me ?
> >
> >
> >
> > Thanks a lot !
> >
> >
> >
> > Rémy
> 
> 
> How about
> 
> \version "2.19.36"
> 
> \layout {
> \hide Score.BarNumber
> }
> 
> my-bar-short-instrument-name =
> \with {
> instrumentName = "1"
> shortInstrumentName = ""
> \override InstrumentName.after-line-breaking =
> #(lambda (grob)
> (let* ((all-sys-elts (ly:grob-object (ly:grob-system grob) 'all-elements))
> (sorted-bar-nmbrs
> (sort
> (map
> (lambda (g)
> (markup->string (ly:grob-property g 'text)))
> (filter
> (lambda (e)
> (eq? (grob::name e) 'BarNumber))
> (ly:grob-array->list
> (ly:grob-object (ly:grob-system grob) 'all-elements
> string-ci (if (and (not (null? sorted-bar-nmbrs)) (not (null? all-sys-elts)))
> (ly:grob-set-property! grob 'text
> (car sorted-bar-nmbrs)
> }
> 
> \new Staff \my-bar-short-instrument-name
> \repeat unfold 20 {
> \time 4/4
> c'1
> \time 3/4 d'2 e'4
> \time 2/8 f'4 g'8[ a']
> }
> 
> HTH,
> Harm
>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: BarNumber instead of shortInstrumentName

2016-02-24 Thread Thomas Morley
2016-02-24 10:05 GMT+01:00 Remy CLAVERIE :
> Dear lilypond users,
>
>
>
> I would like to place BarNumbers at the right side of a StaffGroup, but I do
> not see how to do that. I frist used the X/Y-offset properties but it was
> not a good idea because the distance between staves of a StaffGroup is
> flexible; so numbers were never really horizontally centered.
>
>
>
> My new idea is to use the shortInstrumentName of the StaffGroup context, but
> I don't know how to read/get the bar number from the stencil properties and
> then convert it into the shortInstrumentName string.
>
>
>
> Can someone help me ?
>
>
>
> Thanks a lot !
>
>
>
> Rémy


How about

\version "2.19.36"

\layout {
  \hide Score.BarNumber
}

my-bar-short-instrument-name =
\with {
  instrumentName = "1"
  shortInstrumentName = ""
  \override InstrumentName.after-line-breaking =
#(lambda (grob)
  (let* ((all-sys-elts (ly:grob-object (ly:grob-system grob) 'all-elements))
 (sorted-bar-nmbrs
   (sort
 (map
   (lambda (g)
 (markup->string (ly:grob-property g 'text)))
   (filter
 (lambda (e)
   (eq? (grob::name e) 'BarNumber))
 (ly:grob-array->list
   (ly:grob-object (ly:grob-system grob) 'all-elements
  string-cihttps://lists.gnu.org/mailman/listinfo/lilypond-user


Re: changepitch compilation error

2016-02-24 Thread Gianmaria Lari
Thank Richard and Thomas, it works!

I report here what I did in case others have the same problem (and like me
are beginner):
- open the file changePitch.ly in frescobaldi
- then menu "Tools/Update with convert-ly..."
- in the dialog box, in the "From version", enter 2.18.0 and in the "To
version" enter 2.19.35"
etc.

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


Re: BarNumber instead of shortInstrumentName

2016-02-24 Thread Remy CLAVERIE
Yes !

 

Thanks,

 

Rémy

 

 

 

 

 

> Message du 24/02/16 10:48
> De : "Phil Holmes" 
> A : "Remy CLAVERIE" 
> Copie à : 
> Objet : Re: BarNumber instead of shortInstrumentName
> 
> 
Do you mean the left side?

> --
> Phil Holmes
 
 

- Original Message -
From: Remy CLAVERIE
To: lilypond-user@gnu.org
Sent: Wednesday, February 24, 2016 9:05 AM
Subject: BarNumber instead of shortInstrumentName

>
> Dear lilypond users,

>  

> I would like to place BarNumbers at the right side of a StaffGroup, but I do 
> not see how to do that. I frist used the X/Y-offset properties but it was not 
> a good idea because the distance between staves of a StaffGroup is flexible; 
> so numbers were never really horizontally centered.

>  

> My new idea is to use the shortInstrumentName of the StaffGroup context, but 
> I don't know how to read/get the bar number from the stencil properties and 
> then convert it into the shortInstrumentName string.

>  

> Can someone help me ?

>  

> Thanks a lot !

>  

> Rémy

>  

>


>

___
> 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: changepitch compilation error

2016-02-24 Thread Thomas Morley
2016-02-24 10:49 GMT+01:00 Gianmaria Lari :
> I've used "changePitch.ly" in the past without problem but when I tried
> today I get some compilation error. I'm using lilypond 2.19.35 with
> Frescobaldi.

Well, I don't know about changePitch.ly-
If it is LSR, please provide the link.
>
> This is the code I'm trying to compile (it should be an example from the
> changepitch.ly author):
>
>
> \include "changePitch.ly"
> \version "2.19.35"

>
> pattern = { c8.-> c16-. }
> newnotes = \relative c'
> {
>   c d e f   < c e> < b d>
>   c
> }
>
> \changePitch \pattern \newnotes . Today I'm trying to compile so
>
>
> And this is the error I get:
>
> Starting lilypond-windows.exe 2.19.35 [test.ly]...
>
> Processing
> `c:/users/gianma~1/appdata/local/temp/frescobaldi-evzjlf/tmpfpvpku/test.ly'
>
> Parsing...C:/Users/Gianmaria/Dropbox/Music/changePitch.ly:342:51: In
> procedure ly:parser-lookup in expression (ly:parser-lookup parser (quote
> $chord-repeat-events)):
>
> C:/Users/Gianmaria/Dropbox/Music/changePitch.ly:342:51: Wrong number of

^^^
> arguments to #
>
> Exited with return code 1.
>
>
> Any suggestion?
>
> Thank you, Gianmaria


Anyway the error-massage is quite clear.
Did you try convert-ly?


Cheers,
  Harm

P.S.
If convert-ly does not work (I'm in a hurry, didn't test), use:
(ly:parser-lookup (quote $chord-repeat-events)
instead of
(ly:parser-lookup parser (quote $chord-repeat-events)

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


Re: changepitch compilation error

2016-02-24 Thread Richard Shann
use convert-ly ...

On Wed, 2016-02-24 at 10:49 +0100, Gianmaria Lari wrote:
> I've used "changePitch.ly" in the past without problem but when I
> tried today I get some compilation error. I'm using lilypond 2.19.35
> with Frescobaldi.
> 
> 
> This is the code I'm trying to compile (it should be an example from
> the changepitch.ly author):
> 
> 
> \include "changePitch.ly"
> \version "2.19.35"
> 
> 
> pattern = { c8.-> c16-. } 
> newnotes = \relative c' 
> { 
>   c d e f   < c e> < b d>
>   c  
> }
> 
> 
> \changePitch \pattern \newnotes . Today I'm trying to compile
> so
> 
> 
> And this is the error I get:
> 
> 
> Starting lilypond-windows.exe 2.19.35 [test.ly]...
> 
> 
> Processing
> 
> `c:/users/gianma~1/appdata/local/temp/frescobaldi-evzjlf/tmpfpvpku/test.ly'
> 
> 
> Parsing...C:/Users/Gianmaria/Dropbox/Music/changePitch.ly:342:51: In 
> procedure ly:parser-lookup in expression (ly:parser-lookup parser (quote 
> $chord-repeat-events)):
> 
> 
> C:/Users/Gianmaria/Dropbox/Music/changePitch.ly:342:51: Wrong
> number of arguments to #
> 
> 
> Exited with return code 1.
> 
> 
> 
> Any suggestion?
> 
> Thank you, Gianmaria
> 
> 
> ___
> 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


changepitch compilation error

2016-02-24 Thread Gianmaria Lari
I've used "changePitch.ly" in the past without problem but when I tried
today I get some compilation error. I'm using lilypond 2.19.35 with
Frescobaldi.

This is the code I'm trying to compile (it should be an example from the
changepitch.ly author):


\include "changePitch.ly"
\version "2.19.35"

pattern = { c8.-> c16-. }
newnotes = \relative c'
{
  c d e f   < c e> < b d>
  c
}

\changePitch \pattern \newnotes . Today I'm trying to compile so


And this is the error I get:

Starting lilypond-windows.exe 2.19.35 [test.ly]...

Processing
`c:/users/gianma~1/appdata/local/temp/frescobaldi-evzjlf/tmpfpvpku/test.ly'

Parsing...C:/Users/Gianmaria/Dropbox/Music/changePitch.ly:342:51 :
In procedure ly:parser-lookup in expression (ly:parser-lookup parser (quote
$chord-repeat-events)):

C:/Users/Gianmaria/Dropbox/Music/changePitch.ly:342:51 : Wrong
number of arguments to #

Exited with return code 1.


Any suggestion?

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


BarNumber instead of shortInstrumentName

2016-02-24 Thread Remy CLAVERIE
Dear lilypond users,

 

I would like to place BarNumbers at the right side of a StaffGroup, but I do 
not see how to do that. I frist used the X/Y-offset properties but it was not a 
good idea because the distance between staves of a StaffGroup is flexible; so 
numbers were never really horizontally centered.

 

My new idea is to use the shortInstrumentName of the StaffGroup context, but I 
don't know how to read/get the bar number from the stencil properties and then 
convert it into the shortInstrumentName string.

 

Can someone help me ?

 

Thanks a lot !

 

Rémy

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