Re: Four Bars per Line/System, again :)

2014-09-29 Thread Pierre Perol-Schneider
Hi Marc,

2014-09-30 2:09 GMT+02:00 MarcM :


> any idea on how to make the theme "B" start on a new line?
>

Try \break ;)
Here's how I'd write it :

\version "2.19.11"

#(set-global-staff-size 22)
#(set-default-paper-size "letter")

\include "english.ly"

\paper {
  ragged-last-bottom = ##f
  ragged-bottom = ##t
}


myMusic = \relative c'' {
\time 6/8
\partial 8
\mark \default
\repeat volta 2 {
  g8 \repeat unfold 7 {  c8 c c c c c  }
  g4~g8 g4
}
\mark \default
\break
\repeat volta 2 {
  g8 \repeat unfold 7 {  c8 c c c c c  }
}
\alternative {
 { b c d  d e fs}
 { b, c d  d c b}
}
}

\score {
  \new Staff {
\once\override Score.RehearsalMark.self-alignment-X = #LEFT
\myMusic
  }
  \layout {
indent = 0
system-count = 4
  }
}

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


Re: Bounty for Fixing Ligature Bug?

2014-09-29 Thread Werner LEMBERG
> I am not astute nor a programmer to know even how to begin fixing
> this issue.  I know it has been discussed as a possible limitation
> of the pango.  However, it seems that it works on some systems and
> others not.
>
> What has to be done to fix the issue?
>
> What would be an appropriate bounty to have this issue fixed?

I guess it's basically not a bounty issue: You have rather to actively
find a developer interested in Lilypond on a Windows platform so that
she or he can test Pango.  Currently, we lack such a person.


Werner

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


Re: Unexpected TabStaff creation

2014-09-29 Thread Abraham Lee
Sorry, I forgot to add "()" after "(parser location)". So, it should be like 
this:

improvisationOn = #(define-scheme-function (parser locations) ()
#{
  (Insert overrides)
#}
)

However, it looks like you are doing the right thing even without this, since 
you are following the same syntax as the original code. I'm not sure if this 
will buy you anything new, but who knows. Good luck!

Regards,
Abraham

Sent from my iPhone

> On Sep 29, 2014, at 5:18 PM, Peter Crighton  wrote:
> 
> 2014-09-30 0:49 GMT+02:00 Abraham Lee :
>> If it's something you need to be able to call on-demand, then put it in a 
>> scheme function (you might need another one to turn it off):
>> 
>> improvisationOn = #(define-scheme-function (parser location)
>>   #{
>> (insert overrides here)
>>   #})
> 
> 
> Thanks, but I’m only getting the error
> GUILE signaled an error for the expression beginning here
> improvisationOn = #
>(define-scheme-function (parser location)
> Missing expression in (lambda (parser location)).
> when using:
> 
> improvisationOn = #(define-scheme-function (parser location)
>  #{
>\set squashedPosition = #0
>\override NoteHead.style = #'slash
>\override Accidental.stencil = ##f
>\override AccidentalCautionary.stencil = ##f
>\override TabStaff.Stem.stencil = ##f
>\override TabStaff.Flag.stencil = ##f
>\override TabStaff.Beam.stencil = ##f
>\override TabStaff.Dots.stencil = ##f
>  #})
> 
> Did I miss anything? Sorry, I have no real experience with Scheme.
> 
> --
> Peter Crighton | Musician & Music Engraver based in Mainz, Germany
> http://www.petercrighton.de
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Bounty for Fixing Ligature Bug?

2014-09-29 Thread Joshua Nichols
I am not astute nor a programmer to know even how to begin fixing this
issue. I know it has been discussed as a possible limitation of the pango.
However, it seems that it works on some systems and others not.

What has to be done to fix the issue?

What would be an appropriate bounty to have this issue fixed?

Best,

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


Re: Four Bars per Line/System, again :)

2014-09-29 Thread MarcM

i found this thread and the link to the great snippet here
http://lsr.di.unimi.it/LSR/Snippet?id=838

i am a piece in which the first theme starts with a partial and ends with an
incomplete measure which is normal as the musician has to repeat from bar 1
which include the partial note.

Due to this incomplete measure the theme "B" starts right at the end of the
theme "A" instead of starting on a next line.

any idea on how to make the theme "B" start on a new line?

I include a small example that reproduce the issue.
 
4barsPerStaffWithPartials.ly

  
Screen_Shot_2014-09-29_at_8.png

  




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Four-Bars-per-Line-System-again-tp45952p166964.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


Re: Unexpected TabStaff creation

2014-09-29 Thread Peter Crighton
2014-09-30 0:49 GMT+02:00 Abraham Lee :

> If it's something you need to be able to call on-demand, then put it in a
> scheme function (you might need another one to turn it off):
>
> improvisationOn = #(define-scheme-function (parser location)
>   #{
> (insert overrides here)
>   #})
>

Thanks, but I’m only getting the error
GUILE signaled an error for the expression beginning here
improvisationOn = #
   (define-scheme-function (parser location)
Missing expression in (lambda (parser location)).
when using:

improvisationOn = #(define-scheme-function (parser location)
 #{
   \set squashedPosition = #0
   \override NoteHead.style = #'slash
   \override Accidental.stencil = ##f
   \override AccidentalCautionary.stencil = ##f
   \override TabStaff.Stem.stencil = ##f
   \override TabStaff.Flag.stencil = ##f
   \override TabStaff.Beam.stencil = ##f
   \override TabStaff.Dots.stencil = ##f
 #})

Did I miss anything? Sorry, I have no real experience with Scheme.

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Unexpected TabStaff creation

2014-09-29 Thread Abraham Lee
On Mon, Sep 29, 2014 at 4:41 PM, Peter Crighton 
 wrote:

2014-09-29 21:18 GMT+02:00 Federico Bruni :

2014-09-29 21:12 GMT+02:00 Abraham Lee :

Put the overrides in a \layout block, like:

\layout {
  \override TabStaff.Stemstencil = ##f
}

This won't create a new context, but it will apply it when you 
create one.


It's also a way to keep music and style separated.


Yes, I keep them separated as much as I can.
Putting this in a layout block won’t work here, though. I have 
extended \improvisationOn to work to my liking with TabStaffs:


improvisationOn = {
  \set squashedPosition = #0
  \override NoteHead.style = #'slash
  \override Accidental.stencil = ##f
  \override AccidentalCautionary.stencil = ##f
  \override TabStaff.Stem.stencil = ##f
  \override TabStaff.Flag.stencil = ##f
  \override TabStaff.Beam.stencil = ##f
  \override TabStaff.Dots.stencil = ##f
}

I can’t simply put a layout block in there.
So, now by calling \improvisationOn in a score without a TabStaff I 
came upon the undesired output.


--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de


If it's something you need to be able to call on-demand, then put it in 
a scheme function (you might need another one to turn it off):


improvisationOn = #(define-scheme-function (parser location)
 #{
   (insert overrides here)
 #})

improvisationOff = #(define-scheme-function (parser location)
 #{
   (revert overrides here)
 #})


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


Re: Unexpected TabStaff creation

2014-09-29 Thread Peter Crighton
2014-09-29 21:18 GMT+02:00 Federico Bruni :

> 2014-09-29 21:12 GMT+02:00 Abraham Lee :
>
>> Put the overrides in a \layout block, like:
>>
>> \layout {
>>   \override TabStaff.Stemstencil = ##f
>> }
>>
>> This won't create a new context, but it will apply it when you create one.
>>
>
> It's also a way to keep music and style separated.
>

Yes, I keep them separated as much as I can.
Putting this in a layout block won’t work here, though. I have extended
\improvisationOn to work to my liking with TabStaffs:

improvisationOn = {
  \set squashedPosition = #0
  \override NoteHead.style = #'slash
  \override Accidental.stencil = ##f
  \override AccidentalCautionary.stencil = ##f
  \override TabStaff.Stem.stencil = ##f
  \override TabStaff.Flag.stencil = ##f
  \override TabStaff.Beam.stencil = ##f
  \override TabStaff.Dots.stencil = ##f
}

I can’t simply put a layout block in there.
So, now by calling \improvisationOn in a score without a TabStaff I came
upon the undesired output.

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Event-listener and repeats

2014-09-29 Thread Samuel DA MOTA
Hi,

I've some question regarding the use of the event-listener.

Is it possible to get the event-listener run after unfolding the repeats
on the music sheet?

To clarify, on the following example:

= Lilypond file =
\version "2.18.2"

main = {
  a \repeat volta 2 { b c }
}

\score {
  \main
}
=

The event-listener will only "see" three notes and will output the
following


0.  note57  4   0.2500  point-and-click 2 4
0.2500  note59  4   0.2500  point-and-click 22 4
0.5000  note48  4   0.2500  point-and-click 24 4


On the midi file, there is five notes being played, hence the output of
the event-listener does not match it (because of the repeats).

What I'd like to see


0.  note57  4   0.2500  point-and-click 2 4
0.2500  note59  4   0.2500  point-and-click 22 4
0.5000  note48  4   0.2500  point-and-click 24 4
0.7500  note59  4   0.2500  point-and-click 22 4
1.  note48  4   0.2500  point-and-click 24 4


So, is it possible to first unfold all the repeat,
and then have the event-listener see all of this?

A two-steps solution would be ok for me.
Like, first reading the music and apply the unfold-repeat scheme
function to generate an equivalent lilypond file with no repeat in it.

Also since lilypond do unfold the music when generating the midi file,
is there a way to change the midi generator to produce a file like the output 
of the event-listener?

Regards,
--
Sam

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


Re: Unexpected TabStaff creation

2014-09-29 Thread Federico Bruni
2014-09-29 21:12 GMT+02:00 Abraham Lee :

> Put the overrides in a \layout block, like:
>
> \layout {
>   \override TabStaff.Stemstencil = ##f
> }
>
> This won't create a new context, but it will apply it when you create one.
>

It's also a way to keep music and style separated.

Bug Squad, what about adding it to this chapter of Usage manual?
http://www.lilypond.org/doc/v2.19/Documentation/usage/general-suggestions

It's recommended also by mutopia guide lines:
https://github.com/chrissawer/The-Mutopia-Project/wiki/LilyPond-code%3A-best-practices-for-new-submissions
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Unexpected TabStaff creation

2014-09-29 Thread Abraham Lee



On Mon, Sep 29, 2014 at 1:05 PM, Peter Crighton 
 wrote:


I see, thanks.

I have several files I include in every project, in one of which I 
make some overrides to TabStaff.
How can I avoid this problem in scores I’m not using any TabStaffs 
in, other than removing the Clef_engraver from TabStaff? Or ist that 
already the best way?


--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de


Peter,

Put the overrides in a \layout block, like:

\layout {
 \override TabStaff.Stemstencil = ##f
}

This won't create a new context, but it will apply it when you create 
one.


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


Re: Unexpected TabStaff creation

2014-09-29 Thread Peter Crighton
2014-09-29 20:57 GMT+02:00 Federico Bruni :

> 2014-09-29 20:50 GMT+02:00 Peter Crighton :
>
>> I’m pretty sure this is not expected output, is it? (See attached image.)
>>
>> \version "2.19.13"
>>
>> <<
>>
>>   \override TabStaff.Stem.stencil = ##f
>>
>>   c'1
>>
>> >>
>>
>>
>> This seems to occur with every kind of TabStaff override.
>>
>
>
> http://www.lilypond.org/doc/v2.19/Documentation/usage/common-errors#an-extra-staff-appears
>

I see, thanks.

I have several files I include in every project, in one of which I make
some overrides to TabStaff.
How can I avoid this problem in scores I’m not using any TabStaffs in,
other than removing the Clef_engraver from TabStaff? Or ist that already
the best way?

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Unexpected TabStaff creation

2014-09-29 Thread Federico Bruni
2014-09-29 20:50 GMT+02:00 Peter Crighton :

> I’m pretty sure this is not expected output, is it? (See attached image.)
>
> \version "2.19.13"
>
> <<
>
>   \override TabStaff.Stem.stencil = ##f
>
>   c'1
>
> >>
>
>
> This seems to occur with every kind of TabStaff override.
>

http://www.lilypond.org/doc/v2.19/Documentation/usage/common-errors#an-extra-staff-appears
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Unexpected TabStaff creation

2014-09-29 Thread Peter Crighton
I’m pretty sure this is not expected output, is it? (See attached image.)

\version "2.19.13"

<<

  \override TabStaff.Stem.stencil = ##f

  c'1

>>


This seems to occur with every kind of TabStaff override.

In the score I was working on the TabStaff didn’t show, but when I was
removing the Clef_engraver in my (non-Tab) staff, there was still the same
amount of space in the front, and the time signature didn’t move to the
beginning of the line. I narrowed the problem down to the above scenario,
but don’t know yet why the TabStaff didn’t show in my score, only the
spacing problem. As if there was an invisible TabStaff present, that didn’t
take any space.

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Multi line text with a common text

2014-09-29 Thread Simon Albrecht

Am 27.09.2014 um 14:55 schrieb Phil Holmes:

- Original Message - From: "Son_V" 
To: 
Sent: Saturday, September 27, 2014 1:38 PM
Subject: Multi line text with a common text


Sorry for the unclear subject. I found a score I've put on LilyPond 
(Messaus
- Dies est laetitiae); the original score had three lines of text, 
but  at
beat 7 there is just ONE common text. The original score had a curly 
bracket
after the three lines and the "common text" aligned with the centre 
of the

curly bracket. I wondered if there is a "rule" in these situations, and
searched in the Bible (Behind bars) if I could find an answer, but I was
unable to find it.
So; in these situations, what should be done? And, if the way the 
score I
have is the correct one, how can I make it in Lilypond (I made a 
search in

the docs here too with no results).
Thanks.


Have a look at http://lsr.di.unimi.it/LSR/Item?id=265
I think the coding leaves room for improvements: especially the \set 
stanza command is very useful for placing the brace between lyric 
syllables, and there are more convenient commands for the braces.
Attached you find an improved version which I will also submit to the 
bug list.


HTH, Simon

PS. The case not covered is the one with an even number of stanzas… but 
I don’t have a good idea for that, either.
%% http://lsr.di.unimi.it/LSR/Item?id=265
%% see also http://lilypond.org/doc/v2.18/Documentation/snippets/vocal-music

% The argument to \left-brace and \right-brace is the point-size of the bracket
%
% translate is needed to simulate alignment not to the baseline of the text, but
% to the vertical center
leftbrace = \set stanza = \markup {
  \hspace #1
  \translate #'(0 . 0.8) \left-brace #45 }

rightbrace = \set stanza = \markup {
  \hspace #1
  \translate #'(0 . 0.8) \right-brace #45 }


lyricsbeforebrace = \lyricmode { Here is some ly -- rics }

lyricsfrombrace = \lyricmode { Here comes some more }


melody = \relative c' { c d e f g f e d c }


\score{
  <<
\new Voice = m \melody
\new Lyrics \lyricsto m \lyricsbeforebrace
\new Lyrics \lyricsto m { \lyricsbeforebrace \rightbrace \lyricsfrombrace }
\new Lyrics \lyricsto m \lyricsbeforebrace
  >>
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond Enhancement Proposal (with Bounty)

2014-09-29 Thread Jay Vara
Paul,

Why not play with the paper size and margins to get lilypond to do the 
work for you? Then you may not need to worry about lyrics on top of bar 
lines etc. This should work for most tablet devices. Some development may 
be required to properly scale all the elements when working with very 
small devices.

Jay


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


Re: LilyPond Enhancement Proposal (with Bounty)

2014-09-29 Thread m...@mikesolomon.org


> On 29 sept. 2014, at 08:18, Abraham Lee  wrote:
> 
> That's what I thought. I just wanted to make sure that that's what was really 
> the issue that needed to be addressed. 
> 
> Regards,
> Abraham 
> 
> Sent from my iPhone
> 
>> On Sep 28, 2014, at 9:34 PM, Chris Crossen  wrote:
>> 
>> 
>> 
>>> On Sep 28, 2014, at 8:08 PM, Abraham Lee  wrote:
>>> 
>>> Paul,
>>> 
>>> This sounds intriguing! First of all, my best wishes to you and your 
>>> startup company. May you have great success!
>>> 
>>> Secondly, I'm not entirely sure I understand what you are trying to avoid 
>>> with the text above measure bars. Can you give us an example or two showing 
>>> us exactly what you mean? I think that will help us know who can help you. 
>>> 
>>> Regards,
>>> Abraham 
>>> 
>>> Sent from my iPhone
>>> 
 On Sep 28, 2014, at 9:00 PM, Paul Tannous  wrote:
 
 LilyPonders:
 
 We are part of a startup company that wants to put LilyPond-generated 
 musical scores on tablets. We believe this will allow users to have 
 beautiful, readable scores on tablets and spread the usage of LilyPond to 
 a 
 wider audience. We have completed the first version of an Android 
 application that does this. It dynamically repaginates the music score to 
 fill the tablet screen, and it supports written annotation. 
 
 We have a series of programs that run on a Mac or PC to generate the 
 scores 
 to be rendered on tablets of different screen sizes. A tablet-format score 
 of our own design is built from LilyPond-generated score images so a 
 tablet 
 page of any size or orientation can be built dynamically, using note sizes 
 that will be readable. If you’ve seen PDF scores reduced and displayed on 
 tablets, you’ll understand why we think we have a better approach.
 
 Creating our tablet-format scores to support dynamic repagination means we 
 have to take steps to avoid having text directly above and below each of 
 the measure bars. We add measure bars back when rendering each line and 
 vary the bar widths in addition to adding space to fill out the lines. So 
 any text (tempo, dynamics, pedal instructions, etc.) spanning measures 
 would be split, pixels lost, and unwanted spacing added. We avoid this now 
 by writing the LilyPond source to avoid text above or below the measure 
 bars.  However, this can be painstaking and time-consuming work. 
 
 We would therefore like to see an option added to LilyPond, that could be 
 set before processing, that would avoid placing text above or below 
 measure 
 bars.
 
 We believe there must be code already in the engravers to avoid splitting 
 text over measures at line ends. So, we are hoping our proposed 
 enhancement 
 would be an extension of that code.
 
 We would be willing to pay a bounty to have this feature added if no one 
 else is interested in this functionality, but we have no idea of how much 
 effort would be required. We would like to have some feedback on how long 
 this would take and what someone who could do it would charge for the 
 effort.
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
>> <1000px-Chopin_Prelude_7.svg.png>
>> My understanding of the problem can be demonstrated in the attached graphic. 
>> The tempo Andantino above the first two measures would be a problem. The 
>> dynamic pp under the treble clef of the last measure is also possibly 
>> problematic.
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Not in front of my computer, but one way to do this may be to get rid of extra 
spacing width for text and then set a large pure height for bar lines in an 
unpure-pure-container. This way, when spacing the line, the text would block 
against the bar line. This shouldn't effect vertical spacing.

Cheers,
~Mike___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Long stretch in one voice, then two

2014-09-29 Thread Abraham Lee
+1! 

I think that makes perfect sense and feels very coherent with the other 
functions. 

Regards,
Abraham

Sent from my iPhone

> On Sep 29, 2014, at 1:18 AM, Knute Snortum  wrote:
> 
> Well, mine would be "\voiceNeutral", but I'm not demanding that!  It would 
> fit with \tieUp -> \tieNeutral, \slurUp -> \slurNeutral, etc.
> 
> 
> Knute Snortum
> (via Gmail)
> 
>> On Sun, Sep 28, 2014 at 2:42 PM, Simon Albrecht  
>> wrote:
>> Well probably it's intuitive for German native speakers by analogy to "eine 
>> Stimme" and "Stimme Eins", that what I meant.
>> The next question, of course, is: Do you have an alternative proposal? :-)
>> Good night again (...)
>> Simon
>> 
>> Am 28-Sep-2014 23:28:42 +0200 schrieb janek.lilyp...@gmail.com:
>> 
>> 2014-09-28 23:25 GMT+02:00 Simon Albrecht :
>> > Hello,
>> >
>> > do you really think they aren't user-friendly? I always found them easy to
>> > understand and use. Is this because they comply to german syntax more
>> > neatly?
>> 
>> We have two commands named \voiceOne and \oneVoice. That's definitely
>> confusing; one of them should be given a different name.
>> 
>> good night,
>> Janek
> 
> ___
> 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: Thanks to David Nalesnik and Jan-Peter Voigt

2014-09-29 Thread Jay Vara
Hi David,

Thank you very much.  Now I know how to use the listeners!

With your change it seems to work for the two-staff example with (7 4) (1
4) (2 4) meter. This is the only case of compound metre that I commonly use
that has a (1 4) as one of the components.

Just to be sure, I did check a few other metres, and whenever there is a (1
4) an issue is possible. Typically the problems seem to be in the first few
measures. For example, the two staff example with meter = #'((1 4) (2 4))
gives the following.

[image: Inline image 2]
Best regards
Jay


On Mon, Sep 29, 2014 at 1:37 AM, David Nalesnik 
wrote:

> Hi Jay,
>
> On Sun, Sep 28, 2014 at 7:24 PM, David Nalesnik 
> wrote:
>>
>>
>> Possibly the problem is that the custom engraver is setting measureLength
>> too late for Completion_heads_engraver to use it?
>>
>>
> That just might be it.  The Completion_heads_engraver listens for
> note-events.  So, doing this same with the custom engraver gives us the
> code below:
>
>  alternateTiming =
> #(lambda (sig)
>(lambda (context)
>  (let ((last-bnum 0))
>(make-engraver
> (listeners ((note-event engraver event)
> (let* ((bnum (ly:context-property context
> 'currentBarNumber))
>(len (length sig)) ; how many terms in compound
> meter
>(pos (modulo bnum len))
>(pos (if (= 0 pos) len pos)) ; first bar in
> pattern, second...
>(pos-in-list (1- pos)) ; because elements of
> list are numbered from 0
>(desired-measure-len (to-moment (list-ref sig
> pos-in-list
>   (ly:context-set-property! context 'measureLength
> desired-measure-len)
>   (format #t "bnum = ~a len ~a pos ~a measurelength ~a
> completion ~a~%"
> bnum len pos
> (ly:context-property context 'measureLength)
> (ly:context-property context 'completionUnit))
>   (if (= pos-in-list 0)
>   (begin
>(if (> bnum last-bnum)
>(ly:context-set-property! context 'whichBar
> "||"))
>(set! last-bnum bnum))
>
> %%%
>
> This appears to work with your two-staff example.  How it fares with
> others, I don't know.  Keep your fingers crossed.
>
> Note: You're using an older syntax for Scheme engravers.  I've adapted
> this one to use the make-engraver macro that David Kastrup introduced at
> some point.
>
> Best,
> David
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Long stretch in one voice, then two

2014-09-29 Thread Knute Snortum
Well, mine would be "\voiceNeutral", but I'm not demanding that!  It would
fit with \tieUp -> \tieNeutral, \slurUp -> \slurNeutral, etc.


Knute Snortum
(via Gmail)

On Sun, Sep 28, 2014 at 2:42 PM, Simon Albrecht 
wrote:

> Well probably it's intuitive for German native speakers by analogy to
> "eine Stimme" and "Stimme Eins", that what I meant.
> The next question, of course, is: Do you have an alternative proposal? :-)
> Good night again (...)
> Simon
>
>
> Am 28-Sep-2014 23:28:42 +0200 schrieb janek.lilyp...@gmail.com:
>
> 2014-09-28 23:25 GMT+02:00 Simon Albrecht :
> > Hello,
> >
> > do you really think they aren't user-friendly? I always found them easy
> to
> > understand and use. Is this because they comply to german syntax more
> > neatly?
>
> We have two commands named \voiceOne and \oneVoice. That's definitely
> confusing; one of them should be given a different name.
>
> good night,
> Janek
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user