Re: frescobaldi on mac

2013-08-20 Thread Davide Liessi
2013/3/27 Derek cu...@shmerek.com:
 Package poppler-qt4 was not found in the pkg-config search path.
 Perhaps you should add the directory containing `poppler-qt4.pc'
 to the PKG_CONFIG_PATH environment variable
 No package 'poppler-qt4' found

2013/8/16 chiffonMyst derek.h...@gmail.com:
 Package poppler-qt4 was not found in the pkg-config search path.
 Perhaps you should add the directory containing `poppler-qt4.pc'

In the email I sent on Friday I overlooked these lines.

Apparently you are having the same problem as Robin Newman's, i.e.
MacPorts' pkgconfig for some reason cannot see
/opt/local/lib/pkgconfig.
This should not happen, since MacPorts' pkgconfig is compiled with
'--with-pc-path=/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig',
so it should always search these paths as a last resort.

I cannot reproduce this behaviour on either of the Macs I can use.
I suggest that you report the problem on the user mailing list of
MacPorts (see https://trac.macports.org/wiki/MailingLists) or file a
bug report at https://trac.macports.org/newticket (read the
guidelines).

As a workaround you can try to set the environment variable
PKG_CONFIG_PATH, then clean the build directory and build again: in
Terminal, cd to the build directory and write

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/local/lib/pkgconfig
/opt/local/bin/python2.7 setup.py clean
/opt/local/bin/python2.7 setup.py build

(In a working MacPorts installation of Python 2.7,
/opt/local/bin/python2.7 is a symlink to
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
.)

This worked for Robin Newman; please, let me know if it works also for you.

Davide

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


Re: frescobaldi on mac

2013-08-20 Thread Davide Liessi
2013/8/16 Davide Liessi davide.lie...@gmail.com:
 Yesterday I submitted to MacPorts new Portfiles for frescobaldi and
 python-poppler-qt4.
[...]
 I will announce on this list when the Portfiles will be approved and
 available to all users.

Not yet approved by MacPorts project, but if you want to try them, you
can find them at https://github.com/dliessi/ports.
In that page you'll find instructions on how to use my Portfile
repository and what changes with respect to the Frescobaldi Mac OS X
install guide by Philippe Massart
(https://github.com/wbsoft/frescobaldi/wiki/Frescobaldi-Mac-OS-X-install-guide).
If you need any clarification, information or assistance, do not
hesitate to ask.

I would be very grateful if MacPorts users could try my Portfiles and
report problems (either by email or as GitHub issues).

To the ones who had pkgconfig issues (Robin Newman, Derek,
chiffonMyst) : I would really appreciate if you could install and
uninstall py-python-poppler-qt4 both with and without the
PKG_CONFIG_PATH environment variable and let me know what happens.

Davide

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


Re: frescobaldi on mac

2013-08-20 Thread Derek
Installing now



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/frescobaldi-on-mac-tp139401p149513.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 force a superfluous CombineTextScript to be printed?

2013-08-20 Thread Dominic
Consider the following minimal example:

/\version 2.17.20

fluteOne = \relative c' { \repeat unfold 2 { c'8 d e f g2 | R1*8 } }
fluteTwo = \fluteOne

\score {
\new Staff \with { instrumentName = Flutes }
{ \compressFullBarRests \partcombine \fluteOne \fluteTwo }
}/

If two instruments are playing in unison for a long while, and continue to
do so even following a multi-measure rest, I want a reminder 'a2' to be
printed where they resume (i.e. in the 3rd bar of the example). In a large
orchestral score, it is useful to have reminders even if they are
technically superfluous, especially when the second one is on a different
page. I need a function that effectively says Take whatever the previous
CombineTextScript said, and reprint it at the given location

I have tried explicitly inserting /partcombineUnisono/ or turning
/printPartCombineTexts/ off then immediately on again, in an attempt to jolt
Lilypond into forgetting any prevailing a2 status, but with no luck. A
'messy' last-resort would be for me to go through the entire score (hundreds
of pages) and insert manual pieces of a2 text markup tagged so that they
only showed up in the score, not the parts. Surely there is a more automatic
way than this?

Thanks, everyone!

Dominic



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-force-a-superfluous-CombineTextScript-to-be-printed-tp149514.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: [Schikkers-List]: demo feedback

2013-08-20 Thread Jan Nieuwenhuizen
Paul Morris writes:

 Nice progress on Schikkers list!  It seems like it is coming along
 well.

Thank you!  Now all I need is more hackers and users/people giving
feedback, like you :-)

 One thing that is counter-intuitive (maybe you're already aware of
 this), is that selecting a different note duration from the palette
 changes the currently selected note.  My expectation was that it would
 only apply to newly entered notes, and that to change an
 already-entered note to a new duration, I would have to click on it
 again.

That's an interesting suggestion!  This does make sense, I'll have
to think about this; even better, we could experiment.

The current behaviour kind of matches the keyboard entry.  If you
start from a fresh document and with focus in the GUI type

   spaceb8

then the first

   space: produces a copy of the first c4
   b: changes that second c4 to a b4
   8: changes that b4 to an b8
   etc

If instead of typing the last `8' you would click the duration button
of 8, wouldn't you expect it to change immediately?

Possibly this keyboard entry method is also clumsy and we may want
to get rid of it altogether.  Currently, I have disabled text entry
in the text area, but I'm working on a ly parser there.

 Also, I prefer having the LilyPond text box below the staff instead of
 side-by-side, since that would provide more horizontal space for
 viewing the staff.

Ok.  That makes sense.

Have you noticed that you can make the ly-text view narrower and
notation view wider, by dragging the middle dividing line to the right?

Currently, there is only this sort of piano-roll-eske view, but I'm
working on full page views.  That seems to work better with the text on
the right.  Possibly we could swap right or below depending on the view.
What do you think?

 I noticed an audio bug where a note would repeatedly play for some
 reason.  (using Chrome 27)

Can you provide me with a `recipe' of how I can reproduce it?

 Ok, those are just a few thoughts for your consideration.  Great work
 so far!

Thanks very much for the feedback!

Greetings, Jan

-- 
Jan Nieuwenhuizen jann...@gnu.org | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  

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


Re: new to lilypond

2013-08-20 Thread Trevor Daniels

David Kastrup wrote Tuesday, August 20, 2013 6:46 AM

 Uh, no?  df is an abbreviation, but des is a proper pronouncable name
 (if you are Dutch/German, that's the name you use when talking about
 music).  As such, it has a letter combination that is natural to scan.

... even for non-German, non-Dutch speakers.  When I started using
LilyPond some years ago I always used the English encodings, xf and xs,
but now I invariably use the default, xes and xis, when transcribing.
I think that's because they are so much easier to vocalise internally,
making it easier to remember a musical phrase between reading and
typing.

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


printing actual ~ character in lyrics?

2013-08-20 Thread Mark Polesky
I know it's an odd request, but what if I actually want 
the ~ character to print in lyrics?  None of these work:

~
'~'
\~
#~
##\~
#(string #\~)

Thanks.
- Mark


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


Re: printing actual ~ character in lyrics?

2013-08-20 Thread Jan-Peter Voigt

interesting ...

markup \char ##x7e

works for 2.16.2.

HTH
Jan-Peter


Am 20.08.2013 10:15, schrieb Mark Polesky:

I know it's an odd request, but what if I actually want
the ~ character to print in lyrics?  None of these work:

~
'~'
\~
#~
##\~
#(string #\~)

Thanks.
- Mark


___
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: printing actual ~ character in lyrics?

2013-08-20 Thread pls

On 20.08.2013, at 10:15, Mark Polesky markpole...@yahoo.com wrote:

 I know it's an odd request, but what if I actually want 
 the ~ character to print in lyrics?  None of these work:
 
 ~
 '~'
 \~
 #~
 ##\~
 #(string #\~)
 
 Thanks.
 - Mark
\char ##x007E

hth
patrick
 
 
 ___
 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: printing actual ~ character in lyrics?

2013-08-20 Thread Thomas Morley
2013/8/20 Mark Polesky markpole...@yahoo.com:
 I know it's an odd request, but what if I actually want
 the ~ character to print in lyrics?  None of these work:

 ~
 '~'
 \~
 #~
 ##\~
 #(string #\~)

 Thanks.
 - Mark




Hi Mark,

\new Voice { c' c' c' }
\addlyrics
\lyricmode { xy \markup { ~ } xy }

seems to work.

-Harm

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


Re: printing actual ~ character in lyrics?

2013-08-20 Thread Wim van Dommelen


On 20 Aug 2013, at 10:15 , Mark Polesky wrote:


I know it's an odd request, but what if I actually want
the ~ character to print in lyrics?  None of these work:

~
'~'
\~
#~
##\~
#(string #\~)


\version 2.17.22

mytilde = \markup { ~ }

\relative c'' { d8 c16 a bes8 f e' d c4 }
\addlyrics { Schad’ um das schö -- ne\mytilde grü -- ne Band, }

(I just did put it somewhere in the example text -- at random)



Thanks.
- Mark


Regards,
Wim.

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


Re: printing actual ~ character in lyrics?

2013-08-20 Thread David Kastrup
Mark Polesky markpole...@yahoo.com writes:

 I know it's an odd request, but what if I actually want 
 the ~ character to print in lyrics?  None of these work:

 ~
 '~'
 \~
 #~
 ##\~
 #(string #\~)

Well, the string is converted.  Try

\markup { ~ }

Note that \markup ~ again is identical to ~, but \markup { ... } is
a form of \markup markup-list and is converted to \markup \line
markup-list.  That is sufficiently complex to stop the lyric
typesetter from looking into it.

Less than fabulous, yes.

-- 
David Kastrup


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


Re: printing actual ~ character in lyrics?

2013-08-20 Thread Phil Holmes
- Original Message - 
From: Mark Polesky markpole...@yahoo.com

To: lilypond-user lilypond-user@gnu.org
Sent: Tuesday, August 20, 2013 9:15 AM
Subject: printing actual ~ character in lyrics?


I know it's an odd request, but what if I actually want 
the ~ character to print in lyrics? None of these work:


~
'~'
\~
#~
##\~
#(string #\~)

Thanks.
- Mark



Don't think I really like it as a solution, but

\markup { \char #126 }

does actually work.

--
Phil Holmes


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


Re: printing actual ~ character in lyrics?

2013-08-20 Thread Thomas Morley
2013/8/20 Thomas Morley thomasmorle...@gmail.com:
 2013/8/20 Mark Polesky markpole...@yahoo.com:
 I know it's an odd request, but what if I actually want
 the ~ character to print in lyrics?  None of these work:

 ~
 '~'
 \~
 #~
 ##\~
 #(string #\~)

 Thanks.
 - Mark




 Hi Mark,

 \new Voice { c' c' c' }
 \addlyrics
 \lyricmode { xy \markup { ~ } xy }

 seems to work.

 -Harm

\markup { ~ } (without ) works too.

-Harm

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


Re: printing actual ~ character in lyrics?

2013-08-20 Thread Mark Polesky
Thomas Morley wrote:

 \markup { ~ } (without ) works too.

Wow, 5 replies in 15 minutes.  Some mailing list we got here!
I like this one:
tilde = \markup { ~ }

Thanks everyone.
- Mark


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


Re: new to lilypond

2013-08-20 Thread Janek Warchoł
2013/8/19 James Harkins jamshar...@gmail.com:
 Phil Holmes mail at philholmes.net writes:

 I think a lot of us simply use the Dutch standard of es for a flat and is
 for a sharp - I certainly do.

 I'll be bold and disagree. G-flat is ges in Dutch (3 characters) and gf in
 English (2 characters). If you're typesetting a piece in D-flat major, the 33%
 redundancy for every black-key note in Dutch will add up quickly.

 I've been dealing with repetitive strain injuries for more than half my life
 now, so I have a rather strong aversion toward extra symbols, such as the s
 in -es and -is, which are identical between flats and sharps and thereby do
 nothing to distinguish them. They take up space but don't /do/ anything in
 return for the extra finger effort. If I were forced to type them, I would
 seek another input method. Fortunately I can just set the language to English
 and then enjoy more efficient input.

I think that the best solution would be to have some special keyboard
entry mode in Frescobaldi (for example, it could be diatonic and
automatically add alterations according to key signature).
I was thinking about something like this.

Janek

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


Re: [Schikkers-List]: demo feedback

2013-08-20 Thread Paul Morris
On Aug 20, 2013, at 4:02 AM, Jan Nieuwenhuizen jann...@gnu.org wrote:

 Thank you!  Now all I need is more hackers and users/people giving
 feedback, like you :-)

Glad to help. :-)

 One thing that is counter-intuitive (maybe you're already aware of
 this), is that selecting a different note duration from the palette
 changes the currently selected note.  My expectation was that it would
 only apply to newly entered notes, and that to change an
 already-entered note to a new duration, I would have to click on it
 again.
 
 That's an interesting suggestion!  This does make sense, I'll have
 to think about this; even better, we could experiment.
 
 The current behaviour kind of matches the keyboard entry.  

Ah, I see the reason for the current behavior now.

 If you start from a fresh document and with focus in the GUI type
 
   spaceb8
 
 then the first
 
   space: produces a copy of the first c4
   b: changes that second c4 to a b4
   8: changes that b4 to an b8
   etc
 
 If instead of typing the last `8' you would click the duration button
 of 8, wouldn't you expect it to change immediately?

The keyboard entry makes sense to me, and I now see how the button behavior 
matches that.  However, I still think most users will think the buttons are 
like a tool palette and be surprised that clicking them changes a note that 
has already been entered.  

 Possibly this keyboard entry method is also clumsy and we may want
 to get rid of it altogether.  

Perhaps, although it makes sense for learning LilyPond text input.  I'd say 
keep the keyboard entry as is, but consider changing the note duration buttons 
to match (what I assume are) the typical users' expectations.

 Currently, I have disabled text entry
 in the text area, but I'm working on a ly parser there.

That will be a nice feature that makes a lot of sense for easing people into 
using text-entry.

 Also, I prefer having the LilyPond text box below the staff instead of
 side-by-side, since that would provide more horizontal space for
 viewing the staff.
 
 Ok.  That makes sense.
 
 Have you noticed that you can make the ly-text view narrower and
 notation view wider, by dragging the middle dividing line to the right?

Ah, I hadn't noticed that!  That helps a lot.

 Currently, there is only this sort of piano-roll-eske view, but I'm
 working on full page views.  That seems to work better with the text on
 the right.  Possibly we could swap right or below depending on the view.
 What do you think?

That makes sense to me.  Maybe something to revisit once the page view is 
working?  Knowing about the resizable panels helps a lot for now.

 I noticed an audio bug where a note would repeatedly play for some
 reason.  (using Chrome 27)
 
 Can you provide me with a `recipe' of how I can reproduce it?

I tried various things, and it is happening when: 
- audio turned on
- cursor positioned anywhere over the paper that the staff is drawn on,
- I use my laptop's touch-pad to do a two-finger swipe to scroll the staff 
horizontally to the left or right.  

Then the currently selected note sounds multiple times in a row, as many as 30 
times or more.  It seems that the hover over the note to make it sound 
mechanism is being fired by scrolling while the cursor is over the paper.  
Scrolling using the scroll bars or using the touch-pad when the cursor is not 
over the paper (like just below the paper) is no problem.  This is in both 
Chrome and Firefox.


Another little thing is that when the page first loads it looks like the audio 
is already on (by the appearance of the audio button), but it doesn't work 
until you click the button.  Then it is actually turned on.

Congrats again on the progress!  Let me know if there's more I can do to help.

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


Re: frescobaldi on mac

2013-08-20 Thread Stan Sanderson
Davide-

As far as I know, I have a working Frescobaldi install (OS 10.8.4) after 
following Philippe's instructions, except that lyric hyphenation generates an 
error message. I am curious as to whether it works in your installation.

Thank you for the work you have done to make this valuable tool more readily 
accessible for Mac users. I'm planning to retry installing it on my 1st-gen 
intel iMac, which has had extensive Fink use, and has been exposed to HomeBrew 
and MacPorts. It is a very dirty machine.

I will report the results when I have a chance.

Stan

On Aug 20, 2013, at 2:17 AM, Davide Liessi davide.lie...@gmail.com wrote:

 2013/8/16 Davide Liessi davide.lie...@gmail.com:
 Yesterday I submitted to MacPorts new Portfiles for frescobaldi and
 python-poppler-qt4.
 [...]
 I will announce on this list when the Portfiles will be approved and
 available to all users.
 
 Not yet approved by MacPorts project, but if you want to try them, you
 can find them at https://github.com/dliessi/ports.
 In that page you'll find instructions on how to use my Portfile
 repository and what changes with respect to the Frescobaldi Mac OS X
 install guide by Philippe Massart
 (https://github.com/wbsoft/frescobaldi/wiki/Frescobaldi-Mac-OS-X-install-guide).
 If you need any clarification, information or assistance, do not
 hesitate to ask.
 
 I would be very grateful if MacPorts users could try my Portfiles and
 report problems (either by email or as GitHub issues).
 
 To the ones who had pkgconfig issues (Robin Newman, Derek,
 chiffonMyst) : I would really appreciate if you could install and
 uninstall py-python-poppler-qt4 both with and without the
 PKG_CONFIG_PATH environment variable and let me know what happens.
 
 Davide
 
 ___
 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: flam snippet not working

2013-08-20 Thread Thomas Morley
2013/8/17 Thomas Morley thomasmorle...@gmail.com:
 Hi Roel,

 I took David's proposal (many thanks) and rewrote the whole snippet.
 It now works with \drummode and \notemode for 2.16.2 and 2.17.24.
 I added a more generic function
 \grace-repeat
 which offers the possibility to specify any number of repetitins and
 to switch between repeating the first (written) note of the chord and
 the whole one.
 I feel not very convinced about the way I inserted the beaming,
 though, at least it works.


 \version 2.16.2
[...]

Hi,

I decided not to attach some new and commented code to the old
snippet. Because it is completely rewritten for 2.16.2 and 2.17., I
uploaded a new snippet. Once the LSR-upgrade is tackled it should
replace the old one.
http://lsr.dsi.unimi.it/LSR/Item?u=1id=885
Ofcourse the LSR can't compile 2.16.2-code, therefore you'll see only
a dummy-markup right now.
(On the very bottom, scroll down.)

The code and an image is attached to this mail, too.

HTH,
  Harm
attachment: repeated-grace-notes.preview.png

repeated-grace-notes.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Alla breve for time 2/1

2013-08-20 Thread Kris Van Bruwaene
I want to use an alla breve or barred C for time 2/1. I found this snippet on a 
previous post: 
\set Staff.timeSignatureFraction = #'(2. 2) 
but when I try it it gives an error in my Lily version (2.16.1): 
waarschuwing: type controle gefaald voor `timeSignatureFraction'; waarde `(2.0 
2)' moet type hebben: `fraction, as pair' 
?? ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to limit customized graceSettings?

2013-08-20 Thread Thomas Morley
2013/8/18 Thomas Morley thomasmorle...@gmail.com:
 2013/8/18 Pierre Perol-Schneider pierre.schneider.pa...@gmail.com:
 2013/8/17 Thomas Morley thomasmorle...@gmail.com


  2) property setting music objs. in music-functions.scm

 Here I don't understand.
 Could you c/p what you did?


 OK.
 In LilyPond scm files, there is one named music-functions.scm.
 If you open it, at the end of the first quater you'll see :

  
 ;; property setting music objs.

  bla bla

 (define-safe-public (make-voice-props-set n)
 [...]

 Hi Pierre,

 thanks for the hint.
 After a quick glance, this code is aargh!
 It's the hardcoded impossipility to use $(add-grace-property ...)
 _and_ \voiceXxx
 I see no way to workaround with custom-functions/definitions in a lily-file.

Hi,

after some more thinking about it, I have to say this code _is_ horrible.
David K tackled it already in different ways, see issue 630.

Though, I've found sort of in-file-work-around.
There's one big issue with it: If a specified voiceX is followed
immediately by a grace, customized grace-settings are ignored and/or
other unexpected things may happen.

This is related to issue 630
http://code.google.com/p/lilypond/issues/detail?id=630
See: comment 14 and 25
http://code.google.com/p/lilypond/issues/detail?id=630#c14
http://code.google.com/p/lilypond/issues/detail?id=630#c25
Right now I have to state that my work-around has to be inserted at
least one note before the grace appears.
Though, this not only a very annoying bug with my code, it's the same
with default \voiceOne etc.

I plan to provide a patch doing some clean-up in music-function.scm.
Though, it will not change any output, nor kill the bug, nor offer new
possibilities of input or output, for now.
Best I hope is to do some preliminary work.
I tried to create some user-interface to insert custom
voiced-grace-settings, without success so far.
Will ask more detailed on -devel.

What I currently do, is to redefine \voiceXxx:

\version 2.14.2

%% c/p from music-functions.scm, adding some Grobs.
#(define direction-polyphonic-grobs
  '(AccidentalSuggestion
DotColumn
Dots
DynamicText ;; added
DynamicLineSpanner ;; added
Fingering
Hairpin ;; added
LaissezVibrerTie
LigatureBracket
MultiMeasureRest
PhrasingSlur
RepeatTie
Rest
Script
Slur
Stem
TextScript
Tie
TupletBracket
TrillSpanner))

%% c/p out of 'make-voice-props-set' from music-functions.scm, naming it.
#(define general-grace-settings
  `(
(Voice Stem font-size -3)
(Voice Flag font-size -3)
(Voice NoteHead font-size -3)
(Voice TabNoteHead font-size -4)
(Voice Dots font-size -3)
(Voice Stem length-fraction 0.8)
(Voice Stem no-stem-extend #t)
(Voice Beam beam-thickness 0.384)
(Voice Beam length-fraction 0.8)
(Voice Accidental font-size -4)
(Voice AccidentalCautionary font-size -4)
(Voice Script font-size -3)
(Voice Fingering font-size -8)
(Voice StringNumber font-size -8)
  ))

%% Modified copy of 'make-voice-props-set' from 'music-functions.scm.
%%
%% An additional argument @var{l}, supposed to be an alist, is added.
%% @var{l} is processed by @code{get-list-entries}, defined later.
%% The result is appended to @code{general-grace-settings}, used to fill
%% 'graceSettings.
#(define (custom-make-voice-props-set l n)
  (make-sequential-music
   (append
(map (lambda (x) (make-grob-property-set x 'direction
 (if (odd? n) -1 1)))
 direction-polyphonic-grobs)
(list
 (make-property-set 'graceSettings
(append
  (get-list-entries l n)
  general-grace-settings))
 (make-grob-property-set 'NoteColumn 'horizontal-shift (quotient n 2))

%% A little procedure to get the entries from @var{lst}, depending on @var{n}
#(define (get-list-entries lst n)
  (cond ((and (= n 0) (assoc-ref lst 'voiceOne))
 (cadr (assoc-ref lst 'voiceOne)))
((and (= n 1) (assoc-ref lst 'voiceTwo))
 (cadr (assoc-ref lst 'voiceTwo)))
((and (= n 2) (assoc-ref lst 'voiceThree))
 (cadr (assoc-ref lst 'voiceThree)))
((and (= n 3) (assoc-ref lst 'voiceFour))
 (cadr (assoc-ref lst 'voiceFour)))
(else '(

%% Procedure to define custom-voices.
%% @var{l} is supposed to be a list containing grace-settings
#(define (define-voice l n)
(context-spec-music
  (custom-make-voice-props-set l n)
  'Voice))

%% This list, containing the custom-settings for different voices, is used to
%% redefine @code{voiceOne} etc.
#(define custom-voiced-grace-settings
`(
  (voiceTwo . `(
  (Voice Flag color (1 0 0))
  (Voice NoteHead style cross)
  )
  )
  (voiceOne . `(
  (Voice Flag color (0 1 0))
  (Voice NoteHead style 

Re: Alla breve for time 2/1

2013-08-20 Thread Thomas Morley
2013/8/20 Kris Van Bruwaene kr...@yahoo.co.uk:
 I want to use an alla breve or barred C for time 2/1. I found this snippet
 on a previous post:
 \set Staff.timeSignatureFraction = #'(2. 2)
 but when I try it it gives an error in my Lily version (2.16.1):

Hi,

there's a missing space, use
\set Staff.timeSignatureFraction = #'(2 . 2)
or
\set Staff.timeSignatureFraction = #(cons 2  2)

HTH,
  Harm

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


Re: Alla breve for time 2/1

2013-08-20 Thread Pierre Perol-Schneider
2013/8/20 Kris Van Bruwaene kr...@yahoo.co.uk

 I want to use an alla breve or barred C for time 2/1. I found this snippet
 on a previous post:
 \set Staff.timeSignatureFraction = #'(2. 2)
 but when I try it it gives an error in my Lily version (2.16.1):
 waarschuwing: type controle gefaald voor `timeSignatureFraction'; waarde
 `(2.0 2)' moet type hebben: `fraction, as pair'


Be carefull with spaces within pairs :

\version 2.16.1

\relative c'' {
  \time 2/1
  \set Staff.timeSignatureFraction = #'(2 . 2) % !!! (2. 2) will generate
warnings. !!!
  a1 a |
}

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


Re: Alla breve for time 2/1

2013-08-20 Thread David Kastrup
Thomas Morley thomasmorle...@gmail.com writes:

 2013/8/20 Kris Van Bruwaene kr...@yahoo.co.uk:
 I want to use an alla breve or barred C for time 2/1. I found this snippet
 on a previous post:
 \set Staff.timeSignatureFraction = #'(2. 2)
 but when I try it it gives an error in my Lily version (2.16.1):

 Hi,

 there's a missing space, use
 \set Staff.timeSignatureFraction = #'(2 . 2)
 or
 \set Staff.timeSignatureFraction = #(cons 2  2)

Actually,

\set Staff.timeSignatureFraction = 2/2

seems harder to get wrong by accident.


-- 
David Kastrup


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


Vertically centering lyrics between two staves?

2013-08-20 Thread Ted Walther
It is going on 8 years now I've been typesetting hymns in Lilypond, and one
thing is still very irritating.

For many hymns, you have 3 or 4 verses.  And you have a refrain/chorus.  It
is standard hymn practice to vertically center the chorus between two
staves.

Yes, it is easy to add the chorus text to the end of one of the stanzas,
and at the next \break, vertical centering happens as it should.

Now, someone posted another alternative; I could mark the musical notes of
the refrain as a separate voice, and tie the chorus lyrics to that.  Well
and good; I wasn't aware that voices could be sequential.  After all,
staves in a score can only be in parallel.  So, having done that, is there
a way to tell the Lyrics attached to the chorus Voice that they should
vertically center themselves?

Alternately, why not allow sequential staves in a score?  Especially if it
began at the last barline of the previous score, instead of requiring a
line-break.

Or, as a last resort, is there a way to glue two scores together so that
one starts where the other ends, on the same line?  This helps the flow,
and for compactness.

Having too much whitespace can be very distracting to the flow of the
music.  Having a ragged end when the chorus should just flow from the
earlier part of the verse, doesn't look good.

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


Re: Vertically centering lyrics between two staves?

2013-08-20 Thread Carl Peterson
On Tue, Aug 20, 2013 at 4:20 PM, Ted Walther tederi...@gmail.com wrote:


 Now, someone posted another alternative; I could mark the musical notes of
 the refrain as a separate voice, and tie the chorus lyrics to that.  Well
 and good; I wasn't aware that voices could be sequential.  After all,
 staves in a score can only be in parallel.  So, having done that, is there
 a way to tell the Lyrics attached to the chorus Voice that they should
 vertically center themselves?

 Alternately, why not allow sequential staves in a score?  Especially if it
 began at the last barline of the previous score, instead of requiring a
 line-break.

 This may be of help in your issue: http://lsr.dsi.unimi.it/LSR/Item?id=503

I don't deal with this in the template I posted because I virtually always
insert a line break between verse and chorus, so it's a moot point for me.
But perhaps the above snippet will be useful.

Cheers,
Carl


 Ted

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


Alla breve for time 2/1

2013-08-20 Thread bruzzel
I want to use an alla breve or barred C for time 2/1. I found this snippet on
a previous post:
\set Staff.timeSignatureFraction = #'(2. 2)
but when I try it it gives an error in my Lily version (2.16.1):
waarschuwing: type controle gefaald voor `timeSignatureFraction'; waarde
`(2.0 2)' moet type hebben: `fraction, as pair'
??





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Alla-breve-for-time-2-1-tp149542.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


alla breve for time 2/1

2013-08-20 Thread Kris Van Bruwaene
I want to use an alla breve or barred C for time 2/1. I found this 
snippet on a previous post:

\set Staff.timeSignatureFraction = #'(2. 2)
but when I try it it gives an error in my Lily version (2.16.1):
waarschuwing: type controle gefaald voor `timeSignatureFraction'; waarde 
`(2.0 2)' moet type hebben: `fraction, as pair'

??

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


Re: Vertically centering lyrics between two staves?

2013-08-20 Thread Ted Walther
Thank you Carl.  Interesting example.  For the hymns I do, that might work
for the first couple bars, but then I'll have to predict where the
linebreak will be and revert it at that point.  I'm using a template system
to auto-generate the lilypond code, so having to insert a counter-acting
command at an unpredictable spot in the lyrics will be rather annoying.

Are there any Lilypond developers still active on the list who might be
interested in doing a sponsored modification that would allow two staves to
be pasted together within a score.  Alternatively, allowing two scores to
be pasted together on the same line, since scores already follow one
another sequentially inside a book?

Ted


On 20 August 2013 13:41, Carl Peterson carlopeter...@gmail.com wrote:

 On Tue, Aug 20, 2013 at 4:20 PM, Ted Walther tederi...@gmail.com wrote:


 Now, someone posted another alternative; I could mark the musical notes
 of the refrain as a separate voice, and tie the chorus lyrics to that.
  Well and good; I wasn't aware that voices could be sequential.  After all,
 staves in a score can only be in parallel.  So, having done that, is there
 a way to tell the Lyrics attached to the chorus Voice that they should
 vertically center themselves?

 Alternately, why not allow sequential staves in a score?  Especially if
 it began at the last barline of the previous score, instead of requiring a
 line-break.

 This may be of help in your issue:
 http://lsr.dsi.unimi.it/LSR/Item?id=503

 I don't deal with this in the template I posted because I virtually always
 insert a line break between verse and chorus, so it's a moot point for me.
 But perhaps the above snippet will be useful.

 Cheers,
 Carl


 Ted


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


Re: Vertically centering lyrics between two staves?

2013-08-20 Thread Ted Walther
Another problem with that snippet is the amount to drop.  With a good
centering command, it is centered.  But if I alter the font size, etc, the
amount of raising and dropping needed to center the lyrics will alter.  How
can I predict that without a lot of kludgy code?  Again, I'm generating
lilypond code from templates.  I can compensate for some complexity, but
the simpler the better.

Ted


On 20 August 2013 14:47, Ted Walther tederi...@gmail.com wrote:

 Thank you Carl.  Interesting example.  For the hymns I do, that might work
 for the first couple bars, but then I'll have to predict where the
 linebreak will be and revert it at that point.  I'm using a template system
 to auto-generate the lilypond code, so having to insert a counter-acting
 command at an unpredictable spot in the lyrics will be rather annoying.

 Are there any Lilypond developers still active on the list who might be
 interested in doing a sponsored modification that would allow two staves to
 be pasted together within a score.  Alternatively, allowing two scores to
 be pasted together on the same line, since scores already follow one
 another sequentially inside a book?

 Ted


 On 20 August 2013 13:41, Carl Peterson carlopeter...@gmail.com wrote:

 On Tue, Aug 20, 2013 at 4:20 PM, Ted Walther tederi...@gmail.com wrote:


 Now, someone posted another alternative; I could mark the musical notes
 of the refrain as a separate voice, and tie the chorus lyrics to that.
  Well and good; I wasn't aware that voices could be sequential.  After all,
 staves in a score can only be in parallel.  So, having done that, is there
 a way to tell the Lyrics attached to the chorus Voice that they should
 vertically center themselves?

 Alternately, why not allow sequential staves in a score?  Especially if
 it began at the last barline of the previous score, instead of requiring a
 line-break.

  This may be of help in your issue:
 http://lsr.dsi.unimi.it/LSR/Item?id=503

 I don't deal with this in the template I posted because I virtually
 always insert a line break between verse and chorus, so it's a moot point
 for me. But perhaps the above snippet will be useful.

 Cheers,
 Carl


 Ted



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


Re: Vertically centering lyrics between two staves?

2013-08-20 Thread Eluze
Ted Walther wrote
 Another problem with that snippet is the amount to drop.  With a good
 centering command, it is centered.  But if I alter the font size, etc, the
 amount of raising and dropping needed to center the lyrics will alter. 
 How
 can I predict that without a lot of kludgy code?  Again, I'm generating
 lilypond code from templates.  I can compensate for some complexity, but
 the simpler the better.

it would be easier to talk about a real example - can you provide a scan or
similar of what you'd like to get!?

thanks
Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Vertically-centering-lyrics-between-two-staves-tp149557p149566.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: How to force a superfluous CombineTextScript to be printed?

2013-08-20 Thread Ian Hulin
Hi Dominic,
Have you tried using \partcombineApart and \partcombineAutomatic?  (See
code below).  See also Notation Reference 1.5.2 - Automatic Part Combining
http://lilypond.org/doc/v2.17/Documentation/notation/multiple-voices

There are also \partcombineUP and \partcombineDOWN flavours of
\partcombine (same syntax as \partcombine) which force both the parts to
use the specified stem direction when combined.

The code below is still a work-round to get the a2 to print, but you
might want to use this as a template.

The \partcombine call is pretty horrible but this way you get the
\partcombinemumble directives applied to both parts without having to
add them individually to each the music for each instrument.

At the moment you get dynamics above and below the combined stave, but
you could control this with tags on the flutedyn variable so it only
gets used when you're print out the flute part.

Hope this gives you some ideas to work around the restriction without
too much pain (and typing) in your big score.

HTH, Cheers,

Ian

%-

\version 2.17.25
\language english

pieceSettings = {
  \key d \major
  \time 6/8
}
aduetext =  \markup \bold a2

% TODO - split dynamics and \partcombine commands into separate
%   variables flutedyn and flutepartc ?
%   Use tags 'score and 'part so fluteTwo will only print dynamics
%   when printing the part out and not the score.
% OR use this below
% 
%   \flutedyn  % variable with spacers and dynamics
%   {
% \compressFullBarRests
% \partcombine
%
%  \flutepartc  % variable with spacers and
%   % \partcombinexxx
%  \fluteOne
%
%
%  \flutepartc
%  \fluteTwo
%
% 

flutedynsetc = {
  \partcombineApart
  s4\mf\ s8 s4 s8  | % bar  1
  s2.   | % bar  2
  s4\!
  \partcombineAutomatic
  % unison
s8 s4 s8| % bar  3
  s2.   | % bar  4  
  % MMR in flute parts
  s2.*2 | % bar  5-6
  \partcombineAutomatic
  s4\f^\aduetext s8 s4 s8   | % bar  7
  \partcombineApart
  s2.   | % bar  8
  s2.*2 | % bar  9 - 10
  s4 s8 s4
  \partcombineUnisono s8| % bar 11
  \partcombineAutomatic
  s2.*2 \bar || % bar 12 - 153
}

fluteOne = \relative c' {
  \pieceSettings
  % apart
  d'4 e8 fs g a | % bar  1
  a4 b8 cs d cs | % bar  2
  % unison
  d4 d8 d4 d8   | % bar  3
  R2.*3 | % bars 4 - 6
  d4 d8 d4 d8   | % bar  7
  d8 cs b cs b cs   | % bar  8
  % apart
  r4 r8 a g fs  | % bar  9
  e8 fs e d cs a| % bar 10
  b8 a g fs e d | % bar 11
  % unison
  cs'8 b8 a g fs e  | % bar 12
  d4 d8 d4 d8   \bar || % bar 13
  }

fluteTwo = \relative c' {
  \pieceSettings
  % apart
  fs4 g8 a b d  | % bar  1
  r4 r8 e fs a  | % bar  2
  % unison
  d4 d8 d4 d8   | % bar  3
  R2.*3 | % bars 4 - 6
  d4 d8 d4 d8   | % bar  7
  d8 cs b cs b cs   | % bar  8
  % apart
  g8 a g fs e d | % bar  9
  cs8 d cs b a fs   | % bar 10
  g8 fs e d cs d| % bar 11
  % unison
  cs'8 b8 a g fs e  | % bar 12
  d4 d8 d4 d8   \bar || % bar 13
  }

\score {
  \new Staff \with { instrumentName = Flutes
 printPartCombineTexts = ##t
 soloText  = #Fl. 1
 soloIIText = #Fl. 2}
{
  \compressFullBarRests
  \partcombine

  \flutedynsetc  % TODO
 % change to \flutedyn and \flutepartc
  \fluteOne


  \flutedynsetc  % TODO
 % change to \flutedyn and
 % \flutepartc
  \fluteTwo

}
  }



On 20/08/13 08:53, Dominic wrote:
 Consider the following minimal example:
 
 /\version 2.17.20
 
 fluteOne = \relative c' { \repeat unfold 2 { c'8 d e f g2 | R1*8 } }
 fluteTwo = \fluteOne
 
 \score {
   \new Staff \with { instrumentName = Flutes }
   { \compressFullBarRests \partcombine \fluteOne \fluteTwo }
 }/
 
 If two instruments are playing in unison for a long while, and continue to
 do so even following a multi-measure rest, I want a reminder 'a2' to be
 printed where they resume (i.e. in the 3rd bar of the example). In a large
 orchestral score, it is useful to have reminders even if they are
 technically superfluous, especially when the second one is on a different
 page. I need a function that effectively says Take whatever the previous
 CombineTextScript said, and reprint it at the given location
 
 I have tried explicitly inserting /partcombineUnisono/ or turning
 /printPartCombineTexts/ off then immediately on again, in an attempt to jolt
 Lilypond into forgetting any prevailing a2 status, but 

Re: Vertically centering lyrics between two staves?

2013-08-20 Thread Carl Peterson
On Tue, Aug 20, 2013 at 5:49 PM, Ted Walther tederi...@gmail.com wrote:

 Another problem with that snippet is the amount to drop.  With a good
 centering command, it is centered.  But if I alter the font size, etc, the
 amount of raising and dropping needed to center the lyrics will alter.  How
 can I predict that without a lot of kludgy code?  Again, I'm generating
 lilypond code from templates.  I can compensate for some complexity, but
 the simpler the better.

 Ted


 On 20 August 2013 14:47, Ted Walther tederi...@gmail.com wrote:

 Thank you Carl.  Interesting example.  For the hymns I do, that might
 work for the first couple bars, but then I'll have to predict where the
 linebreak will be and revert it at that point.  I'm using a template system
 to auto-generate the lilypond code, so having to insert a counter-acting
 command at an unpredictable spot in the lyrics will be rather annoying.

 Are there any Lilypond developers still active on the list who might be
 interested in doing a sponsored modification that would allow two staves to
 be pasted together within a score.  Alternatively, allowing two scores to
 be pasted together on the same line, since scores already follow one
 another sequentially inside a book?

 Ted


I am also using a template system. Right now, the system is composed of
nested include files (one for the lyrics, one for the music, another to put
the two together in combination, another to apply a layout, etc.), but
eventually it will be database-driven, with an outside script generating
the LP code to run. The idea is to allow end users to mix and match
compatible texts and tunes.

Since the template system is explicitly designed for output to multiple
formats (print and screen) AND because I am endeavoring to keep phrases
intact on a line (which is absolutely critical for usability on slides), I
do not leave line breaks to chance. I have explicit line breaks in all my
scores. This is why your issue isn't a factor for me, since a
chorus/refrain theoretically should always begin a new phrase (and thus,
can be shunted to a new line).

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


Re: Vertically centering lyrics between two staves?

2013-08-20 Thread Carl Peterson
On Tue, Aug 20, 2013 at 6:02 PM, Eluze elu...@gmail.com wrote:

 Ted Walther wrote
  Another problem with that snippet is the amount to drop.  With a good
  centering command, it is centered.  But if I alter the font size, etc,
 the
  amount of raising and dropping needed to center the lyrics will alter.
  How
  can I predict that without a lot of kludgy code?  Again, I'm generating
  lilypond code from templates.  I can compensate for some complexity, but
  the simpler the better.

 it would be easier to talk about a real example - can you provide a scan or
 similar of what you'd like to get!?

 thanks
 Eluze


See the refrain in http://www.hymnary.org/page/fetch/WASH1957/264/low for
an example of what Ted's talking about.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Combining graphics and text in one stencil?

2013-08-20 Thread Mark Polesky
I'm able to write my own graphical stencils using
ly:make-stencil, and I also can override stencils with
text or markup using the ly:text-interface::print
callback, but now I want to make one stencil with
graphics *and* text, and I can't figure out how to do
that.

Is there some way to achieve something akin to this:
(ly:make-stencil (list 'string foo))

That would be my preference.

I experimented with
(ly:make-stencil (list 'char ...))

but I couldn't get it to do anything.  output-ps.scm is
very difficult to follow with no docstrings.  Ugh.  Any 
advice is appreciated.

Thanks.
- Mark


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


Re: Combining graphics and text in one stencil?

2013-08-20 Thread David Kastrup
Mark Polesky markpole...@yahoo.com writes:

 I'm able to write my own graphical stencils using
 ly:make-stencil, and I also can override stencils with
 text or markup using the ly:text-interface::print
 callback, but now I want to make one stencil with
 graphics *and* text, and I can't figure out how to do
 that.

 Is there some way to achieve something akin to this:
 (ly:make-stencil (list 'string foo))

 That would be my preference.

 I experimented with
 (ly:make-stencil (list 'char ...))

 but I couldn't get it to do anything.  output-ps.scm is
 very difficult to follow with no docstrings.  Ugh.  Any 
 advice is appreciated.

It's called interpret-markup and you obviously need layout and props for
it.  One variant that gets them itself from a grob is
grob-interpret-markup.

-- 
David Kastrup


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