Re: overrideBeamSettings

2011-01-16 Thread Helge Kruse

Am 15.01.2011 11:31, schrieb Xavier Scheuer:

On 15 January 2011 07:03, Helge Kruse  wrote:


I have tried to set this excerpt from a score but failed with  some
problems:

1) As you can see there is a staff change again and again. It's annoying to
switch as shown below. Can this be done better?


You could use a variable to make the staff change command shorter but
staff changes _are_ annoying!  ;D

csu = {
   \change Staff = "2U"
   \stemUp
}
cso = {
   \change Staff = "2O"
   \stemDown
}


Thanks a lot, Xavier. I agree staff changes are annoying, but this 
should help the harp player to choose the right hand for the notes and 
so it is sensible. Since I have a lot of these stuff, Is there a way for 
a scheme function like this:


WriteInUpperStaff(#1) = { \cso #1 \csu }

How should I implement this?

I have found one measure that is a bit strange, see attached graphic.
The C note should be played in a octave to improve the sound. How to 
notate this cross-staffed?


Thanks,
Helge
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Parallel installation of different Lilypond version

2011-01-16 Thread Helge Kruse

Am 15.01.2011 14:03, schrieb Vicente Solsona:

I don't know if it's the best method, but in Windows I simply rename the
old
lilypond directory to e.g "C:\Program Files\Lilypond_2.12 and install
the new
one to C:\Program Files\Lilypond.


Thanks, the rename trick works perfectly.

Helge

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


Re: Using lyrics in a markup

2011-01-16 Thread Marc Hohl

Am 15.01.2011 21:51, schrieb Neil Puttock:

On 15 January 2011 19:01, Marc Hohl  wrote:


Now I wonder whether it is possible to create a kind of text book by
including the lyrics in a markup, perhaps with a scheme function which
replaces the " -- " by "".

Is it possible to store the text in a variable?

Store the lyrics first, then extract the text from the LyricEvent objects:

\version "2.13.46"

words = \lyricmode { This is my ex -- am -- ple text }

text =
#(map (lambda (x) (ly:music-property x 'text))
   (extract-named-music words 'LyricEvent))

melody = \relative c' { c4 d e f | g a c2 }

\new Voice { \melody }
\addlyrics { \words }

#(markup* (make-line-markup text))

For simplicity I've ignored hyphens, but it shouldn't be too difficult
to add them (or use their position in the list of strings to restore
the hyphenated words).

Thanks for this solution! I'll investigate further how to concatenate
the syllables of the hyphenated words ...

Regards,

Marc

Cheers,
Neil




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


Re: overrideBeamSettings

2011-01-16 Thread Xavier Scheuer
On 16 January 2011 09:52, Helge Kruse  wrote:
>
> Thanks a lot, Xavier. I agree staff changes are annoying, but this should
> help the harp player to choose the right hand for the notes and so it is
> sensible. Since I have a lot of these stuff, Is there a way for a scheme
> function like this:
>
> WriteInUpperStaff(#1) = { \cso #1 \csu }
>
> How should I implement this?

Have you seen David's reply?
Or do you want another Scheme function (in order to do what exactly, I
did not get it)?


> I have found one measure that is a bit strange, see attached graphic.
> The C note should be played in a octave to improve the sound. How to notate
> this cross-staffed?

I used a mix of "Changing staff manually" and "Cross-staff stems", see
NR 2.2.1 Common notation for keyboards
http://lilypond.org/doc/v2.13/Documentation/notation/common-notation-for-keyboards.html

\score {
  <<
\new PianoStaff <<
  \new Staff = "2O" {
s2
  }
  \new Staff = "2U" {
\relative c' {
  d8 g
  \change Staff = "2O"
  d'
  <<
{
  \change Staff = "2U" c,
}
\new Voice {
  \stemDown
  % stems may overlap the other staff
  \override Stem #'cross-staff = ##t
  % extend the stems to reach the other staff
  \override Stem #'length = #11
  % do not print extra flags
  \override Stem #'flag-style = #'no-flag
  \once \override NoteColumn #'X-offset = #1
  c'
}
  >>
}
  }
>>
  >>
}


Cheers,
Xavier

-- 
Xavier Scheuer 

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


Re: ChangeStaff was: OverrideBeamSettings

2011-01-16 Thread Helge Kruse

Am 15.01.2011 18:06, schrieb David Kastrup:

David Kastrup  writes:

[...]

ud=#(define-music-function (parser location low high) (ly:music? ly:music?)
  #{ \change Staff = "down" $low \change Staff = "up" $high #})

global={ \key es\major
\time 2/4  }

\new StaffGroup
<<  \set StaffGroup.beatStructure = #'(2)
  \new Staff = "up" { \global s2*3 }
\new Staff = "down" { \global
  \relative c' { \repeat unfold 2 { \ud8  }
\repeat unfold 2 { \ud}
\repeat unfold 2 { \ud} } }


Great, this makes the notation much easier. I will use it exactly in 
this way.


But there is something I don't understand. In your music-function you 
find a

\change Staff = "down" $low .

When I write this outside a function I get a warning when the "down" 
staff is the current staff. But when I use the function I don't:


<>-<><>-<><>-<><>-<><>-<>n 
\version "2.13.31"


ud=#(define-music-function (parser location low high) (ly:music? ly:music?)
 #{ \change Staff = "down" $low \change Staff = "up" $high #})

global={ \key es\major
   \time 2/4  }

\new StaffGroup
<<
\set StaffGroup.beatStructure = #'(2)
\new Staff = "up" { \global s2*2 }
\new Staff = "down" { \global
\relative c' {
% this 'change Staff' is also found in the \ud function
\change Staff = "down" c8 \change Staff = "up" c8
\repeat unfold 2 { \ud c8 c8 }
s4 } }
>>

<>-<><>-<><>-<><>-<><>-<>
|  :1:69: Warnung: es kann kein Kontext zum Umschalten
|  gefunden werden
|  parseStringResult = \notemode {  \change Staff = "down"
|  \lilyvartmpe
|\change Staff = "up" \lilyvartmpf  }

Helge

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


Re: ChangeStaff was: OverrideBeamSettings

2011-01-16 Thread Helge Kruse

Am 16.01.2011 10:27, schrieb Helge Kruse:

Am 15.01.2011 18:06, schrieb David Kastrup:

David Kastrup writes:

[...]

ud=#(define-music-function (parser location low high) (ly:music?
ly:music?)
#{ \change Staff = "down" $low \change Staff = "up" $high #})


Oops, I forget one important thing. The "2O" "2U" may suggest there are 
more instrument staves. The other staff names are "1O", "1U" and "3O" 
"3U". Can I somehow use the function to switch between the two staffs 
belonging to the particular instrument?


When I call \ud in the "2U" music it should switch between "2U" and 
"2O". When used in "3U" is should use "3U" and "3O". Probably this can 
be supported with some settings in the \score{} block.


Helge

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


Re: global staff-staff spacing fails in 2.13.46

2011-01-16 Thread Graham Percival
On Sat, Jan 15, 2011 at 05:09:51PM -0800, Keith OHara wrote:
> Dear docs editors,
>  Patch attached.
> (I had to wrap long lines of .ly; tried to pick a consistent indentation.)

Doc policy is 2-space indents, and in the case where you're
wrapping a long line, indent the first "wrapped" line by 2 spaces
and all the rest by the same.

\relative c' {
  c4 d e f
  \really long command with
lots and lots and lots
arguments
  c4 d e f
}

I know that you were working on an old file which doesn't follow
this policy, but would you mind making the examples follow this?
Don't worry about the rest of the file, of course.

Cheers,
- Graham

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


Re: global staff-staff spacing fails in 2.13.46

2011-01-16 Thread Graham Percival
On Sun, Jan 16, 2011 at 09:46:42AM +, Graham Percival wrote:
> I know that you were working on an old file which doesn't follow
> this policy, but would you mind making the examples follow this?

Never mind; it's fine as it is.

Cheers,
- Graham

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


Re: overrideBeamSettings

2011-01-16 Thread Helge Kruse

Am 16.01.2011 10:16, schrieb Xavier Scheuer:

On 16 January 2011 09:52, Helge Kruse  wrote:


Thanks a lot, Xavier. I agree staff changes are annoying, but this should
help the harp player to choose the right hand for the notes and so it is
sensible. Since I have a lot of these stuff, Is there a way for a scheme
function like this:

WriteInUpperStaff(#1) = { \cso #1 \csu }

How should I implement this?


Have you seen David's reply?
Or do you want another Scheme function (in order to do what exactly, I
did not get it)?


You're right. I missed David's mail. It fits perfectly.





Thanks for the example with the octavated C notes. Your link show a 
similar example. Well, I played a bit with the overrides and could see 
how some of them work. For this

   \override Stem #'cross-staff = ##t
I could not see any difference if the value is ##f or ##t. Even removing 
the line doesn't change the output. What should it do?


Helge

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


irregular volta brackets

2011-01-16 Thread Akira
I can't finish the last volta brackets but I need to.
how to do this?
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Irregular beat grouping (7/8-beat etc.)

2011-01-16 Thread Akira
> \overrideTimeSignatureSettings
>   #'(7 . 8)  % timeSignatureFraction
>   #'(1 . 8)  % baseMomentFraction
>   #'(2 2 3)    % beatStructure
>   #'()       % beamExceptions
>
>
> \overrideTimeSignatureSettings
>   #'(9 . 8)  % timeSignatureFraction
>   #'(1 . 8)  % baseMomentFraction
>   #'(2 3 2 2)    % beatStructure
>   #'()       % beamExceptions
>
These helped me.
Thank you!!

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


Re: Adding repeat bars at the beginning of a chant piece

2011-01-16 Thread Federico Bruni
Il giorno sab, 15/01/2011 alle 20.42 -0700, Carl Sorensen ha scritto:
> On 1/15/11 8:18 PM, "Michael Dykes"  wrote:
> 
> > I have a piece of Orthodox Chant that requires a repeat at the very
> beginning
> > of the piece. Attached is the piece with all of the music and the
> repeat at
> > the end of where the repeated music ends, but I also need the repeat
> sign at
> > the beginning of this piece. Any help would be appreciated. Thanks.
> 
> Put the repeat bar in manually at the beginning of the music:
> 
> \bar "|:"
> 
> See the Notation Reference 1.2.5. 

Micheal,

if you want the repeat sign to be printed *after* the tempo sign, use
the override shown in Notation Reference 1.4.1, Manual Repeat Marks
(selected snippets).

BTW, I can see that the snippet now has a second override, which
slightly improves the look.

Cheers,
Federico


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


Re: overrideBeamSettings

2011-01-16 Thread Xavier Scheuer
On 16 January 2011 10:52, Helge Kruse  wrote:
>
> Thanks for the example with the octavated C notes. Your link show a similar
> example. Well, I played a bit with the overrides and could see how some of
> them work. For this
>   \override Stem #'cross-staff = ##t
> I could not see any difference if the value is ##f or ##t. Even removing the
> line doesn't change the output. What should it do?

It does not change the output for a  Stem #'length = #11  but you'll see
the difference if  Stem #'length = #18  for instance.
With  \override Stem #'cross-staff = ##t  the vertical spacing between
staves is not modified whereas it is if  ##f .

Cheers,
Xavier

-- 
Xavier Scheuer 

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


Re: overrideBeamSettings

2011-01-16 Thread Helge Kruse

Am 16.01.2011 11:25, schrieb Xavier Scheuer:

It does not change the output for a  Stem #'length = #11  but you'll see
the difference if  Stem #'length = #18  for instance.
With  \override Stem #'cross-staff = ##t  the vertical spacing between
staves is not modified whereas it is if  ##f .


Ah, I see.

Thanks,
Helge

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


Attacca

2011-01-16 Thread craigbakalian
Hi,

I want to add an Attaca at the end of a movement, especially in the
parts.  Correct me if I am wrong, but about twenty  years ago when I was
a working flutist performing lots of classical music, back when the
American public still went to concerts, the Attacca statement happens at
the end of the movement directly after a pair of double bars.  The word
Attacca doesn't appear above the last measure it appears in a space
after the last measure.

I carefully read 1.8 -.  I can't find any markup to do this.  

Is there a way to do this?

Craig Bakalian


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


Re: ChangeStaff was: OverrideBeamSettings

2011-01-16 Thread Helge Kruse

Am 16.01.2011 10:35, schrieb Helge Kruse:

Am 16.01.2011 10:27, schrieb Helge Kruse:

Am 15.01.2011 18:06, schrieb David Kastrup:

David Kastrup writes:

[...]

ud=#(define-music-function (parser location low high) (ly:music?
ly:music?)
#{ \change Staff = "down" $low \change Staff = "up" $high #})


Oops, I forget one important thing. The "2O" "2U" may suggest there are
more instrument staves.
Forget this. I erroneously assumed that I cannot use "up" and "down" 
again and again in several PianoStaffs. But I was wrong here. My "1O", 
"1U", "2O" ... pattern is pointless. Your function works fine as it is.


Helge

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


Re: Attacca

2011-01-16 Thread David Kastrup
craigbakalian  writes:

> Hi,
>
> I want to add an Attaca at the end of a movement, especially in the
> parts.  Correct me if I am wrong, but about twenty  years ago when I was
> a working flutist performing lots of classical music, back when the
> American public still went to concerts, the Attacca statement happens at
> the end of the movement directly after a pair of double bars.  The word
> Attacca doesn't appear above the last measure it appears in a space
> after the last measure.
>
> I carefully read 1.8 -.  I can't find any markup to do this.  
>
> Is there a way to do this?
>
> Craig Bakalian

\new Staff { { \repeat unfold 40 c' \bar "|." \stopStaff
   s-\markup { Attacca } }
 \addlyrics { \repeat unfold 40 "dun" } } 


-- 
David Kastrup


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


Re: lilypond-book unwanted space

2011-01-16 Thread Federico Bruni
Il giorno sab, 15/01/2011 alle 12.46 +0100, Peter O'Doherty ha scritto:
> Thanks Graham and Federico.
> I actually took another route, cheating I suppose, which suits my
> requirements just as well. I created two pdfs, one from a .lytex file
> which includes introductory text and music snippets and one from a .ly
> file containing the main score and then combined them into one pdf
> using the pdftk utility.
> Regards,
> Peter 

I can include and center a .ly file in a .lytex file this way:


\documentclass[a4paper]{book}
\usepackage{graphics}
\usepackage[top=3cm, bottom=2cm, left=1.5cm, right=1.5cm]{geometry}

\begin{document}

\lilypondfile[]{file1.ly}
\pagebreak

\lilypondfile[]{file2.ly}
\pagebreak

\end{document}



And that's the "skeleton" of included files:






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


Re: lilypond-book unwanted space

2011-01-16 Thread Federico Bruni
[sorry for double message]

Il giorno sab, 15/01/2011 alle 12.46 +0100, Peter O'Doherty ha scritto:
> Thanks Graham and Federico.
> I actually took another route, cheating I suppose, which suits my
> requirements just as well. I created two pdfs, one from a .lytex file
> which includes introductory text and music snippets and one from a .ly
> file containing the main score and then combined them into one pdf
> using the pdftk utility.
> Regards,
> Peter 

I can include and center .ly files in a .lytex file this way:


\documentclass[a4paper]{book}
\usepackage{graphics}
\usepackage[top=3cm, bottom=2cm, left=1.5cm, right=1.5cm]{geometry}

\begin{document}

\lilypondfile[]{file1.ly}
\pagebreak

\lilypondfile[]{file2.ly}
\pagebreak

\end{document}



And that's the "skeleton" of included files:

\paper {
  indent = #0
  first-page-number = ##f
  print-page-number = ##f
  print-all-headers = ##t
}

\score {
  % music here
  \header {
title = "Title"
  }
}


Then I run:
lilypond-book --output=out --pdf file.lytex
cd out
pdflatex file.tex


HTH,
Federico


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


Printing a hyphen

2011-01-16 Thread Michael Dykes
I would like to know how to print a hyphen, that is for example to have the
following printed:

Most-blessed

with Most and Blessed on different notes, and the hyphen between those two
notes. Thanks for the help again.

-- 
In Christ,
Michael D
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Printing a hyphen

2011-01-16 Thread Phil Holmes
This is very well explained in the notation reference on entering lyrics.  Look 
for "extenders and hyphens".

--
Phil Holmes


  - Original Message - 
  From: Michael Dykes 
  To: lilypond-user@gnu.org 
  Sent: Sunday, January 16, 2011 3:05 PM
  Subject: Printing a hyphen


  I would like to know how to print a hyphen, that is for example to have the 
following printed:
Most-blessed
  with Most and Blessed on different notes, and the hyphen between those two 
notes. Thanks for the help again.


  -- 
  In Christ,
  Michael D



--


  ___
  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: ANN: New LilyPondTool version available for testing

2011-01-16 Thread Valentin Villenave
On Fri, Jan 14, 2011 at 5:52 PM, Bertalan Fodor (LilyPondTool)
 wrote:
> I deployed a new version (2.12.932) of LilyPondTool for testing.
> Just drop http://lilypondtool.organum.hu/LilyPondTool.jar to your
> .jedit/jars directory (inside your home folder like c:\Documents and
> Settings\John\.jedit\jars).

Hi Bert,

Very nice! there are some features I've been waiting for for quite some time :-)

I'l gonna give it a try right now, and I'll let you know how it goes!

Cheers,
Valentin.

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


Re: irregular volta brackets (Akira)

2011-01-16 Thread Patrick Karl

O
> Message: 7
> Date: Sun, 16 Jan 2011 18:58:12 +0900
> From: Akira 
> Subject: irregular volta brackets
> To: lilypond-user@gnu.org
> Message-ID:
>   
> Content-Type: text/plain; charset="iso-8859-1"
> 
> I can't finish the last volta brackets but I need to.
> how to do this?

It's standard for the last alternative's bracket to look like your image shows 
unless the alternative is the last thing in the piece.  Thus you can accomplish 
what you want if your 2nd alternative is the last thing in the piece by adding 
'\bar "|."' after the rest in the 2nd alternative.


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


Re: ANN: New LilyPondTool version available for testing

2011-01-16 Thread Patrick Karl


> From: "Bertalan Fodor (LilyPondTool)" 
> Date: January 14, 2011 10:52:04 AM CST
> To: lilypond-user@gnu.org
> Subject: ANN: New LilyPondTool version available for testing
> 
> 
> I deployed a new version (2.12.932) of LilyPondTool for testing.
> Just drop http://lilypondtool.organum.hu/LilyPondTool.jar to your
> .jedit/jars directory (inside your home folder like c:\Documents and
> Settings\John\.jedit\jars).

On a mac note that your jedit jars directory is at:  ~/Library/jEdit/jars
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: ANN: New LilyPondTool version available for testing

2011-01-16 Thread Bertalan Fodor (LilyPondTool)
I especially recommend to you (and Francisco :) ) the new localization
manager and its "Export" functionality, as my French is still novice
;)

Many thanks to you and the other translators,

Bert

On 1/16/11, Valentin Villenave  wrote:
> On Fri, Jan 14, 2011 at 5:52 PM, Bertalan Fodor (LilyPondTool)
>  wrote:
>> I deployed a new version (2.12.932) of LilyPondTool for testing.
>> Just drop http://lilypondtool.organum.hu/LilyPondTool.jar to your
>> .jedit/jars directory (inside your home folder like c:\Documents and
>> Settings\John\.jedit\jars).
>
> Hi Bert,
>
> Very nice! there are some features I've been waiting for for quite some time
> :-)
>
> I'l gonna give it a try right now, and I'll let you know how it goes!
>
> Cheers,
> Valentin.
>

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


Re: ANN: New LilyPondTool version available for testing

2011-01-16 Thread Francisco Vila
2011/1/16 Bertalan Fodor (LilyPondTool) :
> I especially recommend to you (and Francisco :) ) the new localization
> manager and its "Export" functionality, as my French is still novice
> ;)

Thanks, I'll try it.

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


How to do simple arithmetic on bar numbers?

2011-01-16 Thread Graham King
I'm preparing a modern-notation edition of a piece of choral renaissance
polyphony, in which the maxima at the end of each section is notated as
a neomensural "\maxima*n/m" (where, for each part, n,m are chosen to
cause all the parts to end the section together).  

Example lilypond code and the result are attached.

Bar-numbering is attached to the top part in the score so, when that
part's maxima starts early and other parts are still moving, the other
parts sometimes have "extra" bars of music.  As a result, I have to
reset the bar numbering manually afterwards (see line 27 of the example
attached):

   \set Staff.currentBarNumber = #4

Rather than specifying a static bar number, how could the following
pseudocode be programmed?

   \set Staff.currentBarNumber = Staff.currentBarNumber + x

where, in this example, x = 1

As you can tell, I'm not a Scheme programmer!  Thanks for any help you
can offer.
-- 
Graham King 
% $Header$
% vim:set ai shiftwidth=4 softtabstop=4 expandtab fdm=marker foldcolumn=2 
foldmarker=<<<,>>> syntax=lilypond:

% #(ly:set-point-and-click 'line-column)
\version "2.12.0"

\paper {
#(set-paper-size "a4")
ragged-bottom = ##f
%#(set-paper-size "a4" 'landscape)
}
global = {
\key c \major
\time 3/2
\override Score.BarNumber #'break-visibility = #'#(#t #t #t)
\set Score.currentBarNumber = #11
\bar ""  % Permit first bar number to be printed
}

meanMusic = \relative c' {
   g'2 g g
   \once \override Staff.TimeSignature #'break-visibility = #'#(#f #f #f)
   \time 9/2 % invisibly change this to accommodate maxima
   fis4 e8 d fis4. g8 
   \once \override Voice.NoteHead #'style = #'neomensural
   fis\maxima*7/16 \fermata
   \set Staff.currentBarNumber = #4 % catch up with parts that have more 
bars here.
   %fis2 %  added to make lengths of maximas agree
   %~ fis1. ~ fis1.\fermata
   \bar "||" % full bar
   \time 4/2
   R\breve
}

contratenoroneMusic = \relative c' {
   b'2 b b
   r4 a4 fis b2
   % 61r line 4:
   a4 
   \once \override Staff.TimeSignature #'break-visibility = #'#(#f #f #f)
   \time 3/1 % invisibly change this to accommodate maxima
   \once \override Voice.NoteHead #'style = #'neomensural
   d\maxima*3/8 \fermata
   %d1. ~ d1.\fermata
   \bar "||" % full bar
   \time 4/2
   a1. d2
}

\score {
\context ChoirStaff <<

\context Staff = mean <<
\set Staff.instrumentName = "Mean "
\set Staff.shortInstrumentName = "Mn. "
\set Staff.midiInstrument = "oboe"

\context Voice = mean 
\with {
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
\consists "Bar_number_engraver"  % *** Need to add this to 
top part only
} { << \global \meanMusic >> }
>>

\context Staff = contratenorone <<
\set Staff.instrumentName = \markup { \column { "Contra-"  "tenor 1 
" } }
\set Staff.shortInstrumentName = "Ct1. "
\set Staff.midiInstrument = "oboe"
\context Voice = contratenorone 
\with {
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
} { << \global \contratenoroneMusic >> }
>>


>>
 
\layout { % *** Need to add all this
\context {
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
}
\context {
\Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
}
}
 
\midi {
\context {
\Score
tempoWholesPerMinute = #(ly:make-moment 80 2)
}
}

}

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


Re: How to do simple arithmetic on bar numbers?

2011-01-16 Thread James Lowe
Hello,

-Original Message-
From: Graham King 
Date: Sun, 16 Jan 2011 21:11:25 +
To: "lilypond-user@gnu.org" 
Subject: How to do simple arithmetic on bar numbers?

>I'm preparing a modern-notation edition of a piece of choral renaissance
>polyphony, in which the maxima at the end of each section is notated as
>a neomensural "\maxima*n/m" (where, for each part, n,m are chosen to
>cause all the parts to end the section together).
>
>Example lilypond code and the result are attached.
>
>Bar-numbering is attached to the top part in the score so, when that
>part's maxima starts early and other parts are still moving, the other
>parts sometimes have "extra" bars of music.  As a result, I have to
>reset the bar numbering manually afterwards (see line 27 of the example
>attached):
>
>   \set Staff.currentBarNumber = #4
>
>Rather than specifying a static bar number, how could the following
>pseudocode be programmed?
>
>   \set Staff.currentBarNumber = Staff.currentBarNumber + x
>
>where, in this example, x = 1
>
>As you can tell, I'm not a Scheme programmer!  Thanks for any help you
>can offer.
>-


I'm not a scheme programmer either but we do have a snippet

http://lsr.dsi.unimi.it/LSR/Snippet?id=333

That might give you some clues.

I am also guessing that you could use a similar method that we document
for 'Upbeats' (see Notation Reference) where we can use

\set Timing.measurePosition blahblahblah (instead of \partial X)

to denote a position in a single measure but for your specific case use

\set Timing.internalBarNumber or \set Timing.currentlBarNumber somehow.

Look in the Internal reference for Timing_translator.

I'm throwing these ideas out so that if you cannot figure something out,
someone else more knowledgeable that I in the internals might.

James





internalBarNumber 



>


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


Re: How to do simple arithmetic on bar numbers?

2011-01-16 Thread jakob lund
2011/1/16 James Lowe :
> Hello,
>
> -Original Message-
> From: Graham King 
> Date: Sun, 16 Jan 2011 21:11:25 +
> To: "lilypond-user@gnu.org" 
> Subject: How to do simple arithmetic on bar numbers?
>
>>I'm preparing a modern-notation edition of a piece of choral renaissance
>>polyphony, in which the maxima at the end of each section is notated as
>>a neomensural "\maxima*n/m" (where, for each part, n,m are chosen to
>>cause all the parts to end the section together).
>>
>>Example lilypond code and the result are attached.
>>
>>Bar-numbering is attached to the top part in the score so, when that
>>part's maxima starts early and other parts are still moving, the other
>>parts sometimes have "extra" bars of music.  As a result, I have to
>>reset the bar numbering manually afterwards (see line 27 of the example
>>attached):
>>
>>       \set Staff.currentBarNumber = #4
>>
>>Rather than specifying a static bar number, how could the following
>>pseudocode be programmed?
>>
>>       \set Staff.currentBarNumber = Staff.currentBarNumber + x
>>
>>where, in this example, x = 1
>>
>>As you can tell, I'm not a Scheme programmer!  Thanks for any help you
>>can offer.
>>-
>
>
> I'm not a scheme programmer either but we do have a snippet
>
> http://lsr.dsi.unimi.it/LSR/Snippet?id=333
>
> That might give you some clues.
>
> I am also guessing that you could use a similar method that we document
> for 'Upbeats' (see Notation Reference) where we can use
>
> \set Timing.measurePosition blahblahblah (instead of \partial X)
>
> to denote a position in a single measure but for your specific case use
>
> \set Timing.internalBarNumber or \set Timing.currentlBarNumber somehow.
>
> Look in the Internal reference for Timing_translator.
>
> I'm throwing these ideas out so that if you cannot figure something out,
> someone else more knowledgeable that I in the internals might.
>
> James
>
>

the same thing that the snippet does, but only for bar number, and
with a parameter (the number to add, in case it isn't 1) could look
like this

addtobarnumber = #(define-music-function (P L m) (integer?)
 #{
  \applyContext
  #(lambda (voice)
(let ((staff (ly:context-property-where-defined voice 'currentBarNumber))
(n (ly:context-property voice 'currentBarNumber)))
(ly:context-set-property! staff 'currentBarNumber
 (+ $m n
 #})

%% example
{ \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
  \key c \major
  c''1
  c'1
  \addtobarnumber #3
  c''1
 c'1
}


I don't know how it will work but try it out.

Jakob
>
>
>
> internalBarNumber
>
>
>
>>
>
>
> ___
> 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 simple arithmetic on bar numbers?

2011-01-16 Thread Graham King
Thanks James,
this is not quite what I'm looking for.  If, using snippet 333, I keep
Default_bar_line_engraver in the context of the top staff, it fails to
count a \ibar in the lower part, but if I restore
Default_bar_line_engraver to its normal context of Score, the top part
gets a redundant barline from the lower part.

Still hoping there's a solution somewhere...

-- Graham

On Sun, 2011-01-16 at 21:27 +, James Lowe wrote:
> Hello,
> 
> -Original Message-
> From: Graham King 
> Date: Sun, 16 Jan 2011 21:11:25 +
> To: "lilypond-user@gnu.org" 
> Subject: How to do simple arithmetic on bar numbers?
> 
> >I'm preparing a modern-notation edition of a piece of choral renaissance
> >polyphony, in which the maxima at the end of each section is notated as
> >a neomensural "\maxima*n/m" (where, for each part, n,m are chosen to
> >cause all the parts to end the section together).
> >
> >Example lilypond code and the result are attached.
> >
> >Bar-numbering is attached to the top part in the score so, when that
> >part's maxima starts early and other parts are still moving, the other
> >parts sometimes have "extra" bars of music.  As a result, I have to
> >reset the bar numbering manually afterwards (see line 27 of the example
> >attached):
> >
> >   \set Staff.currentBarNumber = #4
> >
> >Rather than specifying a static bar number, how could the following
> >pseudocode be programmed?
> >
> >   \set Staff.currentBarNumber = Staff.currentBarNumber + x
> >
> >where, in this example, x = 1
> >
> >As you can tell, I'm not a Scheme programmer!  Thanks for any help you
> >can offer.
> >-
> 
> 
> I'm not a scheme programmer either but we do have a snippet
> 
> http://lsr.dsi.unimi.it/LSR/Snippet?id=333
> 
> That might give you some clues.
> 
> I am also guessing that you could use a similar method that we document
> for 'Upbeats' (see Notation Reference) where we can use
> 
> \set Timing.measurePosition blahblahblah (instead of \partial X)
> 
> to denote a position in a single measure but for your specific case use
> 
> \set Timing.internalBarNumber or \set Timing.currentlBarNumber somehow.
> 
> Look in the Internal reference for Timing_translator.
> 
> I'm throwing these ideas out so that if you cannot figure something out,
> someone else more knowledgeable that I in the internals might.
> 
> James
> 
> 
> 
> 
> 
> internalBarNumber 
> 
> 
> 
> >
> 
-- 
Graham King 

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


Re: How to do simple arithmetic on bar numbers?

2011-01-16 Thread Graham King
Jakob, 
brilliant! it works!
I've restored Bar_number_engraver to the Voice context "Mean" to avoid
the spurious barline in that part.  I then incorporated your code
(verbatim) and tried "addtobarnumber #1" in the Mean part just before
the double bar.

(Please ignore my previous reply, which fortunately didn't reach the
mailing list: I had mis-copied your code)

Your (and James') prompt and expert help late on a Sunday evening is
eloquent testimony to the spirit of this community.  I'm so grateful.

-- Graham


On Sun, 2011-01-16 at 22:55 +0100, jakob lund wrote:
> 2011/1/16 James Lowe :
> > Hello,
> >
> > -Original Message-
> > From: Graham King 
> > Date: Sun, 16 Jan 2011 21:11:25 +
> > To: "lilypond-user@gnu.org" 
> > Subject: How to do simple arithmetic on bar numbers?
> >
> >>I'm preparing a modern-notation edition of a piece of choral renaissance
> >>polyphony, in which the maxima at the end of each section is notated as
> >>a neomensural "\maxima*n/m" (where, for each part, n,m are chosen to
> >>cause all the parts to end the section together).
> >>
> >>Example lilypond code and the result are attached.
> >>
> >>Bar-numbering is attached to the top part in the score so, when that
> >>part's maxima starts early and other parts are still moving, the other
> >>parts sometimes have "extra" bars of music.  As a result, I have to
> >>reset the bar numbering manually afterwards (see line 27 of the example
> >>attached):
> >>
> >>   \set Staff.currentBarNumber = #4
> >>
> >>Rather than specifying a static bar number, how could the following
> >>pseudocode be programmed?
> >>
> >>   \set Staff.currentBarNumber = Staff.currentBarNumber + x
> >>
> >>where, in this example, x = 1
> >>
> >>As you can tell, I'm not a Scheme programmer!  Thanks for any help you
> >>can offer.
> >>-
> >
> >
> > I'm not a scheme programmer either but we do have a snippet
> >
> > http://lsr.dsi.unimi.it/LSR/Snippet?id=333
> >
> > That might give you some clues.
> >
> > I am also guessing that you could use a similar method that we document
> > for 'Upbeats' (see Notation Reference) where we can use
> >
> > \set Timing.measurePosition blahblahblah (instead of \partial X)
> >
> > to denote a position in a single measure but for your specific case use
> >
> > \set Timing.internalBarNumber or \set Timing.currentlBarNumber somehow.
> >
> > Look in the Internal reference for Timing_translator.
> >
> > I'm throwing these ideas out so that if you cannot figure something out,
> > someone else more knowledgeable that I in the internals might.
> >
> > James
> >
> >
> 
> the same thing that the snippet does, but only for bar number, and
> with a parameter (the number to add, in case it isn't 1) could look
> like this
> 
> addtobarnumber = #(define-music-function (P L m) (integer?)
>  #{
>   \applyContext
>   #(lambda (voice)
> (let ((staff (ly:context-property-where-defined voice 'currentBarNumber))
> (n (ly:context-property voice 'currentBarNumber)))
> (ly:context-set-property! staff 'currentBarNumber
>  (+ $m n
>  #})
> 
> %% example
> { \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
>   \key c \major
>   c''1
>   c'1
>   \addtobarnumber #3
>   c''1
>  c'1
> }
> 
> 
> I don't know how it will work but try it out.
> 
> Jakob
> >
> >
> >
> > internalBarNumber
> >
> >
> >
> >>
> >
> >
> > ___
> > 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
-- 
Graham King 

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


Re: ANN: New LilyPondTool version available for testing

2011-01-16 Thread Father Gordon Gilbert
>
> Message: 3
> Date: Sun, 16 Jan 2011 16:24:39 +0100
> From: Valentin Villenave 

> Hi Bert,
>
> Very nice! there are some features I've been waiting for for quite some time
> :-)
>
> I'l gonna give it a try right now, and I'll let you know how it goes!
>
> Cheers,
> Valentin.
>

Yes, hi from me also,

Downloaded that jar and tried it -- fabulous new interface for
editing!  I'll be sure to use it a lot more in the near future.

Plus a cool fake-antique background in the pdf viewer :-)

Thanks so much for all your hard work on this.

Blessings,

Gordon+
-- 
Fr. Gordon Gilbert
Penetanguishene, ON

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