Re: intervallic inversion

2010-10-03 Thread Stefan Thomas
Dear Mark,
unfortunately not.
I tried it, but without success.

2010/10/3 Mark Polesky markpole...@yahoo.com

 [off-list]

 Stefan Thomas wrote:
  Dear Mark,
  thanks for Your reply.
  Your example seems to work fine also with my version of lilypond.

 Stefan,
 Were you able to extract the desired feature from my file?
 - Mark




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


bad cross-staff slurs

2010-10-03 Thread 胡海鹏 - Hu Haipeng
Hello,
  A person reported that in the following harp passage of mine, the slurs are 
blurred with the notes. He read the score generated by 2.13.24, so: Is it still 
wrong in 2.13.35? How to solve the issue?
Regards
Haipeng
\version 2.13.35
headsOn = \sequential {
  \override Dots #'transparent = ##t
  \override Stem #'transparent = ##t
  \override Beam  #'transparent = ##t
}
headsOff = \sequential {
  \revert Dots #'transparent
  \revert Stem #'transparent
  \revert Beam #'transparent
}
str = \change Staff = rh
stl = \change Staff = lh
  harprh = \relative c'' {
\clef treble \key ees \major \time 4/4
\showStaffSwitch
  % rehearsal 6, bars 83-99
s1*6 |
s2 c a e4\arpeggio r |
s1*8 |
bes aes f d2\arpeggio r_\markup { \harp-pedal #--^|^--^ } |
r \stl \headsOn bes,,8\glissando \str f''\glissando \stl bes,4\glissando |
  % rehearsal 7, bars 100-108
\str \headsOff bes'''4 r r2 |
  }
  harplh = \relative c {
\clef bass \key ees \major
  % rehearsal 6, bars 83-99
\set tupletSpannerDuration = #(ly:make-moment 1 4)
\times 2/3 { ges([ des' ges] \str bes[ des ees] bes'[ ges ees] \stl des[ 
bes ges)] } |
\times 2/3 { f,([ des' f] \str bes[ des f] des'[ bes f] \stl bes,[ f bes,)] 
} |
\times 2/3 { a([ e' a] \str cis[ e fis] cis'[ a fis] \stl e[ cis a)] } |
\times 2/3 { gis,([ e' gis] \str cis[ e gis] e'[ cis gis] \stl e[ b e,)] } |
\times 2/3 { a,([ e' a] \str c[ e a] c[ a e] \stl c[ a e)] } |
\times 2/3 { g,([ e' a] \str c[ e a] c[ a e] \stl c[ a e)] } |
\times 2/3 { fis,([ e' a] \str c[ e a)] } \stl fis, c'4\arpeggio f,4 |
\times 2/3 { e8([ b' e] \str a[ b e)] \stl e,([ b' e] \str gis[ b e)] } |
\stl \times 2/3 { g,,,([ d' g] \str b[ d e] b'[ g e] \stl d[ b g)] } |
\times 2/3 { fis,([ d' fis] \str ces'[ d fis] d'[ ces fis,] \stl ces[ fis, 
ces)] } |
\times 2/3 { bes([ f' bes] \str d[ f g] d'[ bes g] \stl f[ d bes)] } |
\times 2/3 { a,([ f' a] \str d[ f a] f'[ d a] \stl f[ c f,)] } |
\times 2/3 { bes,([ f' bes] \str des[ f bes)] \stl a,,([ f' bes] \str des[ 
f bes)] } |
\stl \times 2/3 { aes,,([ f' bes] \str des[ f bes)] \stl g,,([ f' bes] \str 
des[ f bes)] } |
\stl \times 2/3 { ges,,([ f' bes] \str des[ f bes)] \stl f,,([ des' bes'] 
\str des[ f bes)] } |
\stl e, aes bes2\arpeggi r |
r s |
  % rehearsal 7, bars 100-108
R1 |
  }
  dynamics = {
  % rehearsal 6, bars 83-99
s1*2 | s\ | s\!\mf\ | s1\!\f\ | s2 s\!\mp |
s1*2 | s\ | s\!\mf\ | s2 s\!\ | s1\!\mp | s2 s\f |
  % rehearsal 7, bars 100-108
s1 |
  }
  \score {
\new PianoStaff = harp 
  \set PianoStaff.instrumentName = Harp
  \set PianoStaff.shortInstrumentName = Hrp.
  \set PianoStaff.connectArpeggios = ##t
  \new Staff = rh { \harprh }
  \new Dynamics { \dynamics }
  \new Staff = lh { \harplh }

\layout { }
  }


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


Re: bad cross-staff slurs

2010-10-03 Thread Phil Holmes
There were a couple of errors in the snippet you posted - the version number 
should be in inverted commas , and you have arpeggi which I assume should 
be arpeggio.

Correcting these gives a score which compiles, but with a lot of errors.  See 
the attached log file.  The slurs in the output have a lot of space to cross, 
and to my eye LilyPond does a fair job of fitting them in.

--
Phil Holmes


  - Original Message - 
  From: 胡海鹏 - Hu Haipeng 
  To: lilypond-user 
  Sent: Sunday, October 03, 2010 12:09 PM
  Subject: bad cross-staff slurs


  Hello,
A person reported that in the following harp passage of mine, the slurs are 
blurred with the notes. He read the score generated by 2.13.24, so: Is it still 
wrong in 2.13.35? How to solve the issue?
  Regards
  Haipeng
  \version 2.13.35
  headsOn = \sequential {
\override Dots #'transparent = ##t
\override Stem #'transparent = ##t
\override Beam  #'transparent = ##t
  }
  headsOff = \sequential {
\revert Dots #'transparent
\revert Stem #'transparent
\revert Beam #'transparent
  }
  str = \change Staff = rh
  stl = \change Staff = lh
harprh = \relative c'' {
  \clef treble \key ees \major \time 4/4
  \showStaffSwitch
% rehearsal 6, bars 83-99
  s1*6 |
  s2 c a e4\arpeggio r |
  s1*8 |
  bes aes f d2\arpeggio r_\markup { \harp-pedal #--^|^--^ } |
  r \stl \headsOn bes,,8\glissando \str f''\glissando \stl bes,4\glissando |
% rehearsal 7, bars 100-108
  \str \headsOff bes'''4 r r2 |
}
harplh = \relative c {
  \clef bass \key ees \major
% rehearsal 6, bars 83-99
  \set tupletSpannerDuration = #(ly:make-moment 1 4)
  \times 2/3 { ges([ des' ges] \str bes[ des ees] bes'[ ges ees] \stl des[ 
bes ges)] } |
  \times 2/3 { f,([ des' f] \str bes[ des f] des'[ bes f] \stl bes,[ f 
bes,)] } |
  \times 2/3 { a([ e' a] \str cis[ e fis] cis'[ a fis] \stl e[ cis a)] } |
  \times 2/3 { gis,([ e' gis] \str cis[ e gis] e'[ cis gis] \stl e[ b e,)] 
} |
  \times 2/3 { a,([ e' a] \str c[ e a] c[ a e] \stl c[ a e)] } |
  \times 2/3 { g,([ e' a] \str c[ e a] c[ a e] \stl c[ a e)] } |
  \times 2/3 { fis,([ e' a] \str c[ e a)] } \stl fis, c'4\arpeggio f,4 |
  \times 2/3 { e8([ b' e] \str a[ b e)] \stl e,([ b' e] \str gis[ b e)] } |
  \stl \times 2/3 { g,,,([ d' g] \str b[ d e] b'[ g e] \stl d[ b g)] } |
  \times 2/3 { fis,([ d' fis] \str ces'[ d fis] d'[ ces fis,] \stl ces[ 
fis, ces)] } |
  \times 2/3 { bes([ f' bes] \str d[ f g] d'[ bes g] \stl f[ d bes)] } |
  \times 2/3 { a,([ f' a] \str d[ f a] f'[ d a] \stl f[ c f,)] } |
  \times 2/3 { bes,([ f' bes] \str des[ f bes)] \stl a,,([ f' bes] \str 
des[ f bes)] } |
  \stl \times 2/3 { aes,,([ f' bes] \str des[ f bes)] \stl g,,([ f' bes] 
\str des[ f bes)] } |
  \stl \times 2/3 { ges,,([ f' bes] \str des[ f bes)] \stl f,,([ des' bes'] 
\str des[ f bes)] } |
  \stl e, aes bes2\arpeggi r |
  r s |
% rehearsal 7, bars 100-108
  R1 |
}
dynamics = {
% rehearsal 6, bars 83-99
  s1*2 | s\ | s\!\mf\ | s1\!\f\ | s2 s\!\mp |
  s1*2 | s\ | s\!\mf\ | s2 s\!\ | s1\!\mp | s2 s\f |
% rehearsal 7, bars 100-108
  s1 |
}
\score {
  \new PianoStaff = harp 
\set PianoStaff.instrumentName = Harp
\set PianoStaff.shortInstrumentName = Hrp.
\set PianoStaff.connectArpeggios = ##t
\new Staff = rh { \harprh }
\new Dynamics { \dynamics }
\new Staff = lh { \harplh }
  
  \layout { }
}






--
  全国最低价,天天在家冲照片,24小时发货上门! 


--


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


CrossStaffSlurs.Log
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Snippets in mailinglist (Was: Re: bad cross-staff slurs)

2010-10-03 Thread Martin Tarenskeen



On Sun, 3 Oct 2010, Phil Holmes wrote:

There were a couple of errors in the snippet you posted - the version number 
should be in inverted commas , and you

have arpeggi which I assume should be arpeggio.


I personally would prefer it if lilypond snippets and example code in this 
mailinglist were posted as separate attachement(s) to the mail. I then just 
simply can save the snippet to disk. Now I first have to copy and paste the 
lilypond code in my text editor, and save it from there before running lilypond 
on it.


What do other lilypond mailinglist readers think ? If many people agree, we 
could encourage people to follow this practice.


--

Martin Tarenskeen

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


Scaling of non-text dynamic signs

2010-10-03 Thread Marten Visser

Hello,

I've typeset a score for two instruments, and now I'd like to make a 
dedixated score for each instrument, that has the score for the other 
instrument scaled down.


This works, but I can't figure out the correct \override to scale 
down the graphical dynamics, like \ and \.


In the following example, everything has been properly scaled down, 
except for the crescendo. Thanks for looking!


==

%{
Example:
 graphical dynamics do not scale
%}

\version 2.13.32

% --- Notes --

musicalContent = #(define-music-function (parser location) ()
#{
e4 c' c8 c a4 |
s4\p s s\ s\f |
#}) % End of musicalContent


%  Typesetting ---

\parallelMusic #'(MusicalData DynamicalData)
\musicalContent

\score { 
\new Staff
\with {
instrumentName = small
fontSize = #-3
\override StaffSymbol #'staff-space = #(magstep -3)
}
{
\relative c' \MusicalData
}
\new Dynamics
\with {
fontSize = #-3
\override StaffSymbol #'staff-space = #(magstep -3)
\override DynamicText #'font-size = #-3
\override DynamicLineSpanner #'font-size = #-3
}
{
\DynamicalData
}
\new Staff
\with {
instrumentName = normal
}
{
\relative c' \MusicalData
}
\new Dynamics
{
\DynamicalData
}

}


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


Re: Snippets in mailinglist (Was: Re: bad cross-staff slurs)

2010-10-03 Thread Xavier Scheuer
On 3 October 2010 14:36, Martin Tarenskeen m.tarensk...@zonnet.nl wrote:

 I personally would prefer it if lilypond snippets and example code in this
 mailinglist were posted as separate attachement(s) to the mail. I then just
 simply can save the snippet to disk. Now I first have to copy and paste the
 lilypond code in my text editor, and save it from there before running
 lilypond on it.

 What do other lilypond mailinglist readers think ? If many people agree, we
 could encourage people to follow this practice.

I depends.
When this is a whole lilypond file I prefer it as separate attachement.
But for minimal examples, i.e. code including only 2-3 measures
showing an issue, I prefer it included directly in the mail.

I think my reasoning is somewhat similar to the difference between
  @lilypond  and  @lilypondfile  we can see in LilyPond .itely doc.


Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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


Re: Scaling of non-text dynamic signs

2010-10-03 Thread Xavier Scheuer
On 3 October 2010 15:30, Marten Visser msvis...@planet.nl wrote:

 Hello,

 I've typeset a score for two instruments, and now I'd like to make a
 dedixated score for each instrument, that has the score for the other
 instrument scaled down.

 This works, but I can't figure out the correct \override to scale down the
 graphical dynamics, like \ and \.

 In the following example, everything has been properly scaled down, except
 for the crescendo. Thanks for looking!

Hi!

Basically you want to decrease Hairpin's height, right?
Then
  \override Hairpin #'height = #0.5  % default: 0.66
should do the trick.

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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


Re: Snippets in mailinglist (Was: Re: bad cross-staff slurs)

2010-10-03 Thread James Lowe

Hello,

On 03/10/2010 13:36, Martin Tarenskeen wrote:



On Sun, 3 Oct 2010, Phil Holmes wrote:


There were a couple of errors in the snippet you posted - the version
number should be in inverted commas , and you
have arpeggi which I assume should be arpeggio.


I personally would prefer it if lilypond snippets and example code in
this mailinglist were posted as separate attachement(s) to the mail. I
then just simply can save the snippet to disk. Now I first have to copy
and paste the lilypond code in my text editor, and save it from there
before running lilypond on it.

What do other lilypond mailinglist readers think ? If many people agree,
we could encourage people to follow this practice.



1. Open Email
2. Read Email
3. Download attachment
4. Find/open attachment
5. Read in text editor. Spot Problem
6. Back to email to reply

as opposed to

1. Open Email
2. Read Email. Spot problem. Reply

If someone sends an ly file that is umpty-thrumpty lines long they do 
tend to attach them - generally. Which leads to the point where I follow 
my 6 steps above realise the example is simply too big for me to help 
with a trivial issue but I only realise that after I have downloaded the 
attachment.


I understand what you are getting at, but I am guessing if it is 
anything but trivial to see what users are asking for help on this list 
are then as many won't (probably) bother to download that attachment to 
help.


I'm not so sure this is a good idea.

James

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


Re: Snippets in mailinglist (Was: Re: bad cross-staff slurs)

2010-10-03 Thread Graham Percival
On Sun, Oct 03, 2010 at 02:37:59PM +0100, James Lowe wrote:

 1. Open Email
 2. Read Email. Spot problem. Reply

Yes.

 If someone sends an ly file that is umpty-thrumpty lines long

let's add one more point:
2b. if you can't spot the problem, point them at
http://lilypond.org/tiny-examples.html

Cheers,
- Graham

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


Re: Problem with greek letter mu (μ)

2010-10-03 Thread Michael
 In the result of the following code, the greek letter mu (μ) appears in
 another font, smaller and thiner than the other letters. I would be
 grateful for any idea that could correct this.
 
 \relative c''{ c c c c }
 \addlyrics{ μα- να- κα- λα- }

This is a problem of the default font Century Schoolbook which uses the same
glyph for the Greek μ and for the math μ.

Best regards,
Michael.


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


My kingdom for a lilypond server

2010-10-03 Thread Mike Solomon
Hey all,
I am trying to make an on-line melodic dictation website for my students
where they input notes and rhythms from pull-down menus and this info gets
sent to a server that, via php, writes this info to a file, crunches said
file with lilypond, and displays the resultant png on a webpage.  I imagine
that the LSR is not unlike this, and I've found a few internet threads about
people who have done this sorta thing, so I imagine that it's not too
difficult.
I, unfortunately, do not have a server, and rather than going through
the process of trying to get something up and running on one of my
university's servers, I ask you the following question: do any of you have
lilypond running in server-mode that would not mind letting me use it for
this type of assignment?  Each file would be one melodic line of 8 bars or
so, and there are only 60 students, so I can't imagine that you'd take a
processing or memory hit.
If you have the setup I'm looking for 'd be willing to help me out,
please hit me back.

All the best,
Mike



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


Re: My kingdom for a lilypond server

2010-10-03 Thread Graham Percival
On Sun, Oct 03, 2010 at 10:31:05AM -0400, Mike Solomon wrote:
 file with lilypond, and displays the resultant png on a webpage.  I imagine
 that the LSR is not unlike this, and I've found a few internet threads about
 people who have done this sorta thing, so I imagine that it's not too
 difficult.

LilyPond Report 20 had a feature about these things, but sadly
only Mike Blackstock responded.
http://news.lilynet.net/The-LilyPond-Report-20

Cheers,
- Graham

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


minor inconsistency in \paper-settings?

2010-10-03 Thread Stefan Vollmar
Dear all,

if I am not mistaken, in order to have my scores in A5 format (I actually then 
print that on A4 paper for a specific recital with poor light conditions) this 
works fine:

\paper{
  #(set-paper-size a5)
  page-count = 2
}

And the reference manual gives a wealth of other properties (e.g. paper-width 
or evenHeaderMarkup) which can be set like page-count. It strikes me as odd 
that, apparently, I should not write

\paper{
  paper-size = a5
  page-count = 2
}

and if I do, Lilypond does not complain about paper-size and uses the default 
(a4) instead.

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de








smime.p7s
Description: S/MIME cryptographic signature
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Fwd: EmacsPointAndClick: inconsistency for \box-type markup?

2010-10-03 Thread Stefan Vollmar
Dear all,

I just noticed that the behaviour I described recently was a bug in an older 
version of Lilypond - I have just upgraded from 2.21.3 to 2.13.35: 
point-and-click now also works for \box A markup. Neat!

Warm regards,
 Stefan

Begin forwarded message:

 From: Stefan Vollmar voll...@nf.mpg.de
 Date: 2. Oktober 2010 15:57:29 MESZ
 To: lilypond-user@gnu.org
 Subject: EmacsPointAndClick: inconsistency for \box-type markup?
 
 Dear all,
 
 I am new to this list and have just started using Lilypond. 
 
 I am deeply impressed with the quality of the output and the wealth of 
 documentation - thank you!
 
 I am a physicist by profession with a background in software development, TeX 
 and Emacs (but was rather close to studying music instead) - so I got 
 instantly hooked to the way Lilypond works, too.
 
 So far, I was able to customize my Emacs (Aquamacs on the Mac) environment to 
 my taste: I can now input MIDI directly in Aquamacs and use 
 EmacsPointAndClick, both based on previous work by others (midi-input by Hans 
 Lub and http://bl0rg.net/~manuel/midi-merge.c; EmacsPointAndClick from 
 Nicolas Sceaux's lyqi project).
 
 With Lilypond Version 2.12.3-1, I observed that point-and-click works 
 beautifully for all notes and dynamics marks. However, looking at the PDF 
 file generated by Lilypond I found that a usual URI reference looks like this:
 
 /URI(textedit:///some/path/some-file.ly:24:16:16)
 
 whereas the corresponding entries for this kind of mark:
 
 \mark \markup{ \box A }
 
 yield:
 
 /URI(textedit:///some/path/:0:0:0)
 
 which causes Emacs (Aquamacs) to just open that directory. I assume this 
 might be a bug in the URIs generated for \box-type markup?
 
 Many thanks in advance.
 
 Warm regards,
 Stefan
 -- 
 Dr. Stefan Vollmar, Dipl.-Phys.
 Head of IT group
 Max-Planck-Institut für neurologische Forschung
 Gleuelerstr. 50, 50931 Köln, Germany
 Tel.: +49-221-4726-213  FAX +49-221-4726-298
 Tel.: +49-221-478-5713  Mobile: 0160-93874279
 Email: voll...@nf.mpg.de   http://www.nf.mpg.de
 
 
 
 
 
 

-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de








smime.p7s
Description: S/MIME cryptographic signature
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scaling of non-text dynamic signs

2010-10-03 Thread Vicente Solsona
On Sun, 03 Oct 2010 15:30:34 +0200, Marten Visser msvis...@planet.nl  
wrote:

Hello,

[...]
In the following example, everything has been properly scaled down,  
except for the crescendo. Thanks for looking!


==

%{
Example:
  graphical dynamics do not scale
%}

\version 2.13.32

% --- Notes --

musicalContent = #(define-music-function (parser location) ()
#{
e4 c' c8 c a4 |
s4\p s s\ s\f |
#}) % End of musicalContent


%  Typesetting ---

\parallelMusic #'(MusicalData DynamicalData)
\musicalContent

\score { 
\new Staff
\with {
instrumentName = small
fontSize = #-3
\override StaffSymbol #'staff-space = #(magstep -3)
}
{
\relative c' \MusicalData
}
\new Dynamics
\with {
fontSize = #-3
\override StaffSymbol #'staff-space = #(magstep -3)
\override DynamicText #'font-size = #-3
\override DynamicLineSpanner #'font-size = #-3
}
{
\DynamicalData
}
\new Staff
\with {
instrumentName = normal
}
{
\relative c' \MusicalData
}
\new Dynamics
{
\DynamicalData
}

}



your example works fine in 2.12.3 by defining the Dynamics context as in  
the template Learning Manual A.2.4 Piano centered dynamics


http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Piano-templates#Piano-templates

In 2.13, it is internally pre-defined, but I guess the definition is quite  
similar. perhaps a regression?


greetings,

Vicente


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


Re: Scaling of non-text dynamic signs

2010-10-03 Thread Vicente Solsona
On Sun, 03 Oct 2010 15:30:34 +0200, Marten Visser msvis...@planet.nl  
wrote:



Hello,

[...]
In the following example, everything has been properly scaled down,  
except for the crescendo. Thanks for looking!


please forget my previous reply! indeed the hairpin is not scaled in  
2.12.3 either;
as it has no font-size, that's perfectly understandable :) , sorry for  
the noise.


as Xavier posted, adjusting the height of the hairpin should do the trick.

greetings,

Vicente


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


Re: minor inconsistency in \paper-settings?

2010-10-03 Thread Carl Sorensen



On 10/3/10 9:57 AM, Stefan Vollmar voll...@nf.mpg.de wrote:

 Dear all,
 
 if I am not mistaken, in order to have my scores in A5 format (I actually then
 print that on A4 paper for a specific recital with poor light conditions) this
 works fine:
 
 \paper{
   #(set-paper-size a5)
   page-count = 2
 }
 
 And the reference manual gives a wealth of other properties (e.g.
 paper-width or evenHeaderMarkup) which can be set like page-count. It
 strikes me as odd that, apparently, I should not write
 
 \paper{
   paper-size = a5
   page-count = 2
 }
 
 and if I do, Lilypond does not complain about paper-size and uses the
 default (a4) instead.

paper-size is not a property.  #(set-paper-size a5) is a procedure that
changes multiple settings.  See scm/paper.scm for more information.

While it may seem odd, it is well-documented.

It would seem desirable to have a warning message when a non-existent
property is set in a \paper{} block.

HTH,

Carl



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


Re: Snippets in mailinglist (Was: Re: bad cross-staff slurs)

2010-10-03 Thread Carl Sorensen



On 10/3/10 6:36 AM, Martin Tarenskeen m.tarensk...@zonnet.nl wrote:

 
 
 
 On Sun, 3 Oct 2010, Phil Holmes wrote:
 
 There were a couple of errors in the snippet you posted - the version number
 should be in inverted commas , and you
 have arpeggi which I assume should be arpeggio.
 
 I personally would prefer it if lilypond snippets and example code in this
 mailinglist were posted as separate attachement(s) to the mail. I then just
 simply can save the snippet to disk. Now I first have to copy and paste the
 lilypond code in my text editor, and save it from there before running
 lilypond
 on it.

I greatly prefer having short snippets inline.  That way I can read them in
my mail reader, rather than having to open them to see what's up.

Long files are better as attachments than inline.

Thanks,

Carl


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


Re: hspace in cm?

2010-10-03 Thread Neil Puttock
On 26 September 2010 23:10, Xavier Scheuer x.sche...@gmail.com wrote:

 I don't want to take advantage of your kindness but would it be possible
 to have a ready-to-use version of this?

OK, though I hope first you've tried to do it yourself; I'm pretty
sure it's within your capabilities.  :)

\version 2.13.35

#(define-markup-command (indent layout props) ()
   (hspace-markup layout props (ly:output-def-lookup layout 'indent 0)))

#(define-markup-command (short-indent layout props) ()
   (hspace-markup layout props (ly:output-def-lookup layout 'short-indent 0)))

\markup {
  \indent
  indented
}

\relative c' {
  c4 d e f \break
  g1
}

\markup {
  \short-indent
  indented
}

Cheers,
Neil

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


Re: font size for numbers on easyHeadOn with number

2010-10-03 Thread Carl Sorensen



On 9/29/10 9:42 AM, MING TSANG tsan...@rogers.com wrote:

 Carl,
 
 I took your code and added multi midi output for voice parts.  Everything
 seems working perfectly.  However I applied the template to my .ly code I
 cannot produce desire result.
 

I'm sorry to be so slow in getting back to you.  It's been a busy week.

I ran your code, and got an error message that indicated the parser was
looking for more information (which was slightly different from your error).

I looked in the Notation Reference, section 3.1.5, and it shows \layout
blocks at top-level, rather than inside a \score block.  So I moved your
\layout block out of the \score block and into the top-level.  Then the file
ran perfectly -- .pdf output and 3 .midi outputs.

HTH,

Carl

P.S. If it were my code, I'd take \timeKey out of the Voice contexts, and
put it into the Staff contexts, since that's where the time signature is
determined.  I've done it in the code below.


\version 2.13.34
\header {
  title = 主阿我要更愛你:More Love To Thee
}
#(define Ez_numbers_engraver
  (list
(cons 'acknowledgers
  (list
  (cons 'note-head-interface
(lambda (engraver grob source-engraver)
  (let* ((context (ly:translator-context engraver))
  (tonic-pitch (ly:context-property context 'tonic))
  (tonic-name (ly:pitch-notename tonic-pitch))
  (grob-pitch
  (ly:event-property (event-cause grob) 'pitch))
  (grob-name (ly:pitch-notename grob-pitch))
  (delta (modulo (- grob-name tonic-name) 7))
  (note-names
  (make-vector 7 (number-string (1+ delta)
(ly:grob-set-property! grob 'note-names
note-names
#(set-global-staff-size 18)
EzNum = {
 \easyHeadsOn
\override Staff.StaffSymbol #'staff-space = #2.25
\override Staff.StaffSymbol #'line-thickness = #1.25
\override Staff.NoteHead #'font-size = #+2.75
\override Staff.Clef #'font-size = #+2.25
\override Staff.TimeSignature #'font-size = #+2.25
\override Staff.Accidental #'font-size = #+2.25
\override Voice.NoteHead #'font-size = #0
}

\paper  {
%#(set-global-staff-size (* 5.8 mm))
  indent = #(* mm 0)
  line-width = #(* mm 180)
  interscoreline = 2.\mm
  between-system-space = 36\mm
  ragged-bottom = ##t

}

\include english.ly
TimeKey = { \time 4/4  \key bf  \major  }
SopMusic  = \relative c' {
%\easyHeadsOn
d'4. d8 ef8 d8 c8 bf8 |%bar 17
bf2 a2 |%bar 18
\label #'lastPage
  }
AltoMusic  = \relative c' {
%\easyHeadsOn
\override NoteHead #'color = #blue
f4. f8 g8 f8 ef8 d8 |%bar 17
f2 ef2 |%bar 18
}
TenorMusic = \relative c  {
%\easyHeadsOn
bf'4. bf8 bf bf bf bf | bf2 c2 |%bar 17-18
}
BassMusic  = \relative c  {
%\easyHeadsOn
\override NoteHead #'color = #red
bf4. bf8 bf bf bf bf | d2 f2 |%bar 17-18
}

PianoRHand = \relative c' {
f bf d4.^( f bf d8 g bf ef8 f bf d8 ef c'8 d bf'8 |
%bar 17
bf f' bf2 ef f a2) |%bar 18
}
PianoLHand = \relative c {
bf, bf'8 d'8_\markup{con Ped} f bf f bf f bf |%bar 17
bf,, d'8 f'' bf f ef, f' a' c a |%bar 18
}

\layout {
  \context {
\Voice
\consists \Ez_numbers_engraver
  }
}

\score {
  \new GrandStaff = GrandStaff_score 
\new ChoirStaff 
  \new Staff 
\override Score.BarNumber #'break-visibility = #'#(#t #t #t)
\clef treble
\TimeKey
\new Voice = Sop  { \EzNum \voiceOne \SopMusic  }
\new Voice = Alto { \EzNum \voiceTwo \AltoMusic }
  
  \new Staff 
\clef bass
\TimeKey
\new Voice = Tenor { \EzNum \voiceOne \TenorMusic }
\new Voice = Bass  { \EzNum \voiceTwo \BassMusic  }
  

\new PianoStaff 
  \new Staff = RH { \TimeKey  \PianoRHand  }
  \new Staff = LH { \TimeKey \clef bass \PianoLHand }

  

}
\score {
\SopMusic
\midi { }
}
\score {
\AltoMusic
\midi { }
}
\score {
\TenorMusic
\midi { }
}
\score {
\BassMusic
\midi { }
}


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


Re: Twelve-tone notation

2010-10-03 Thread Neil Puttock
On 29 September 2010 08:23, Valentin Villenave v.villen...@gmail.com wrote:

 What do we do from this point? Is your snippet worth LSRizing as is,

I'm happy to add it to LSR, even if it doesn't work with legers.

 or should I open a tracker page anyway?

Please do.  It would be nice enhancement to have more control over
leger positions.

Cheers,
Neil

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


nested crescendos?

2010-10-03 Thread Alex Jones
I need to include nested crescendos and decrescendos within a document (e.g. an 
overarching crescendo with phrasing decrescendos).  Is this possible?

For example the idea would be something like the following:

fis, \ \  (ees') \! f,! \ (d') \! \!

Any suggestions?

Thanks!

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


Re: nested crescendos?

2010-10-03 Thread James Bailey

On Oct 3, 2010, at 11:34 PM, Alex Jones wrote:

 I need to include nested crescendos and decrescendos within a document (e.g. 
 an overarching crescendo with phrasing decrescendos).  Is this possible?
 
 For example the idea would be something like the following:
 
 fis, \ \  (ees') \! f,! \ (d') \! \!
 
 Any suggestions?
 
 Thanks!
 
 -akj

You could possibly do it with separate dynamics definitions:
\version 2.12.3
music = { fis,( ees') f,( d') }
dynamicI = { s4\ s s s\! }
dynamicII = { s4\ s\! s\ s\! }

\score {
   \new Staff  \music \dynamicI \dynamicII 
}


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


Re: Scaling of non-text dynamic signs

2010-10-03 Thread Marten Visser



 Hello,

 I've typeset a score for two instruments, and now I'd like to make a
 dedixated score for each instrument, that has the score for the other
 instrument scaled down.

 This works, but I can't figure out the correct \override to scale down the
 graphical dynamics, like \ and \.

 In the following example, everything has been properly scaled down, except
 for the crescendo. Thanks for looking!

Hi!

Basically you want to decrease Hairpin's height, right?
Then
  \override Hairpin #'height = #0.5  % default: 0.66
should do the trick.

Cheers,
Xavier


Thanks for the very quick reply! Yes, indeed I want to decrease the 
hairpin's height. Your solution works perfectly.


For sake of consistency, the following syntax still is a minor 
improvement, that may allow scaling of all sizings involved through a 
single variable (if one would replace -3 by a variable).


\override Hairpin #'height = #(* 0.66 (magstep -3)) % default: 0.66

Thanks,
Marten


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


conditional formatting

2010-10-03 Thread Marten Visser

Hello again,

Typesetting my masterpiece :D, I ran into the following problem:
I have a piece for piccolo and guitar. If I typeset the music for 
guitar, I'd like to have a tablature staff in addition to the notes, 
but If I typset for piccolo, I'd like to omit the tablature. Since 
the music is the same in either case, I prefer to have one file where 
I can make a definition at the very beginning of the document like


===
% Outcomment whichever one is inappropriate
TypesetForInstrument = Piccolo
TypesetForInstrument = Guitar
===

Then, in the score-block, I'd like to typeset the TABStaff based on 
the value of the \TypesetForInstrument variable. I know scheme has a 
conditional 'if', but could somebody please provide me with a working 
example of how to implement the scheme conditional?


My guess is, the code should look something like:

===
if (eq TypesetForInstrument #Piccolo)
#{ \new TabStaff

... (score for tablature)

#}
#{ % nothing to do if not guitar
#}
===

Thanks for your attention :)
--Marten


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


Suppressing textedit links in Lilypond

2010-10-03 Thread Disc Magnet
When I generate a PDF score using Lilypond, each note becomes a
textedit:// link that points to the source code line in the .ly source
file.

Is there a way to prevent this from happening so that there are no
such links in the PDF?

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