Re: outside-staff-priority with slur and hairpin

2009-09-17 Thread Jonathan Wilkes


--- On Thu, 9/17/09, Trevor Daniels  wrote:

> From: Trevor Daniels 
> Subject: Re: outside-staff-priority with slur and hairpin
> To: "Jonathan Wilkes" , lilypond-user@gnu.org
> Date: Thursday, September 17, 2009, 10:08 AM
> 
> Jonathan Wilkes wrote Thursday, September 17, 2009 1:38 AM
> > 
> >     I did a quick exercise
> typsetting a Schumann score, and I'm puzzled
> > because to get the hairpin under the slur I had to
> turn up
> > 'outside-staff-priority for the slur to be greater
> than 250. Otherwise,
> > the snippet below doesn't work correctly.
> >     Reading the NR, it sounds like
> Lilypond just sorts in increasing
> > order for outside-staff objects.  Why can't I
> just set
> > 'outside-staff-priority for the Hairpin to #1?
> 
> Have you not read the Learning Manual?  The
> Notation Reference assumes you have.  This is
> explained in considerable detail in section 4.4.3.

Sorry, I wasn't very clear.  I wanted to know why I can't just set 
Hairpin to #1 and the Slur to #2 for 'outside-staff-priority.  And I 
forgot to search the LM before posting.

Yes, I've read (but not memorized) the LM, and I see that overriding the 
'outside-staff-priority for DynamicLineSpanner works while using 
the same override for Hairpin does not.  Yet nothing in the section you 
refer to states that DynamicLineSpanner is the *only* way to change 
'outside-staff-priority for a dynamic.

There's a paragraph in LM 4.3.1 that says [regarding properties of 
objects]:

"Before we tackle this, let us remember that object properties are grouped in 
what are called interfaces – see Properties found in interfaces. This is simply 
to group together those properties that may be used together to tweak a 
graphical object – if one of them is allowed for an object, so are the others. 
Some objects then use the properties in some interfaces, others use them from 
other interfaces. The interfaces which contain the properties used by a 
particular grob are listed in the IR at the bottom of the page describing that 
grob, and those properties may be viewed by looking at those interfaces."

So when it says properties are "allowed" for an object, what exactly does 
that mean?  Also, what does it mean to say "the properties used by a 
particular grob?"

I'm not a programmer, so some of this is a little difficult to grasp, but 
by the logic of that paragraph what I'm getting is that 
'outside-staff-priority is a property that is allowed for Hairpin objects 
(because I know 'transparent works on Hairpins and is part of the grob 
interface), is used by Hairpin objects (because grob-interface is listed at the 
bottom of the IR for Hairpin), but still cannot be used to 
make the Hairpin go below the Slur in my example.

-Jonathan





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


Re: Snippets

2009-09-17 Thread Neil Puttock
2009/9/16 Mark Austin :

> There are two problems. The first is that this generates two sets of
> snippets, one for each line of music. Is there any way to generate a
> snippet covering both lines.

You'll have to force both systems you want to clip into one long
system, either by preventing breaks or (if it's only two systems long,
like the example above) setting system-count = 1.

>
> The second is that it generates an error, and does not generate the
> overall pdf output from the ps file. The error is:
>
> c:/Program 
> Files/LilyPond/usr/share/lilypond/current/scm/framework-ps.scm:548:62:
> In procedure car in expression (car systems):
> c:/Program 
> Files/LilyPond/usr/share/lilypond/current/scm/framework-ps.scm:548:62:
> Wrong type (expecting pair): ()
>
> Any idea what's causing it (and how to get rid of it)?

Remove the \header block.

I'm surprised nobody's reported this error before, but it's due to the
fact that a \header block (or top-level markup) is included in the
list of systems for clipping, but has no System grob.  I'll push a fix
for this soon (it'll probably miss the next development release, but
might make it into 2.12.3).

Thanks for the bug report,
Neil


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


Fine-tuning of markup positions

2009-09-17 Thread Marc Hohl

Hello,

I have some kind of ornamental "matrix"

a b c
d e f
g h i

I want to display at the end of each \bookpart
(I use different symbols, but this doesn't matter here).

The matrix should be placed centered, and in order to align the
symbols properly,I defined

matrix = \markup {
 \override #'(baseline-skip . 2.2)
 \column { \override #'(line-width . 6.5)
   \fill-line {  a b c }
   \override #'(line-width . 6.5)
   \fill-line { d e f }
   \override #'(line-width . 6.5)
   \fill-line { g h i }
 }
}

and used it via

\markup {
 \fill-line { \matrix }
}

So far, so good; but for the symbols I use, I need some fine-tuning of 
the distances
between b/c and  h/i. In the first case, the symbols should be narrower, 
in the

latter case, I need a small additional space between them.

Inserting a negative \hspace in the first line, for example

 \fill-line { a b \hspace #-1 c }

doesn't have the desired effect.

\translate with negative coordinates doesn't work either.

Is there a different approach I can use?

Thanks in advance

Marc


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


Re: Treble clef with optional octavation?

2009-09-17 Thread Marc Hohl

Alexander Kobel schrieb:

Hi, all,

anyone knows how to write a G clef, like in
\clef "treble_8"
but with the octavation "8" in parentheses? (It's for a staff with a 
solo voice sung by either alto or baritone, and thus the octavation is 
optional.)

This solution (with a callback created by Neil Puttock) works fine:

#(define-public (parenthesize-me grob)
 (let* ((font (ly:grob-default-font grob))
(open (stencil-whiteout (ly:font-get-glyph font 
"accidentals.leftparen")))
(close (stencil-whiteout (ly:font-get-glyph font 
"accidentals.rightparen")))

(me (ly:text-interface::print grob)))
   (ly:stencil-combine-at-edge
(ly:stencil-combine-at-edge
 me X LEFT open)
X RIGHT close)))

test = \relative c, {
 \override Staff.OctavateEight #'stencil = #parenthesize-me
 \clef "treble_8"
 c4 d e f
 g a b c
}

\score { \test }

Marc



Thanks,
Alexander


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





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


Re: Chords with multiple glissandos

2009-09-17 Thread Marc Hohl

David Stocker schrieb:

Thanks Kieren.

I actually do need the chords expressed as one "voice". I'll look 
through the list archives and see if I can use your solution.


Thanks,

David

Kieren MacMillan wrote:

Hi David,

Is there any way to make this work, so that both sets of notes are 
connected with glissandos?


If you correct your polyphonic code, it works fine:

\version "2.13.3"
\include "english.ly"
\paper { ragged-right = ##f }

\relative c'' {
 cs1
 <<
   { \voiceOne cs4 \glissando b \glissando cs2 }
   \new Voice { \voiceTwo gs4 \glissando fs \glissando gs2 }
 >> \oneVoice
}

If you want these to be chords instead — which is not what your 
original example suggests — look for my solution in the list archive.
I always wondered if there is a possibility to enhance the glissando 
engraver. When I code ties

between chords, i.e.
< c e g > ~ < c e g >
lilypond draws three ties, but the same situation with \glissando 
doesn't work the way we all

wanted deep in our hearts :-)
(Ok, a glissando between two identical chors makes no sense, but I think 
you know what I mean).


Marc


Hope this helps!
Kieren.




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





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


Treble clef with optional octavation?

2009-09-17 Thread Alexander Kobel

Hi, all,

anyone knows how to write a G clef, like in
\clef "treble_8"
but with the octavation "8" in parentheses? (It's for a staff with a 
solo voice sung by either alto or baritone, and thus the octavation is 
optional.)



Thanks,
Alexander


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


Re: Chords with multiple glissandos

2009-09-17 Thread David Stocker

Thanks Kieren.

I actually do need the chords expressed as one "voice". I'll look 
through the list archives and see if I can use your solution.


Thanks,

David

Kieren MacMillan wrote:

Hi David,

Is there any way to make this work, so that both sets of notes are 
connected with glissandos?


If you correct your polyphonic code, it works fine:

\version "2.13.3"
\include "english.ly"
\paper { ragged-right = ##f }

\relative c'' {
 cs1
 <<
   { \voiceOne cs4 \glissando b \glissando cs2 }
   \new Voice { \voiceTwo gs4 \glissando fs \glissando gs2 }
 >> \oneVoice
}

If you want these to be chords instead — which is not what your 
original example suggests — look for my solution in the list archive.


Hope this helps!
Kieren.




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


Re: Chords with multiple glissandos

2009-09-17 Thread Kieren MacMillan

Hi David,

Is there any way to make this work, so that both sets of notes are  
connected with glissandos?


If you correct your polyphonic code, it works fine:

\version "2.13.3"
\include "english.ly"
\paper { ragged-right = ##f }

\relative c'' {
 cs1
 <<
   { \voiceOne cs4 \glissando b \glissando cs2 }
   \new Voice { \voiceTwo gs4 \glissando fs \glissando gs2 }
 >> \oneVoice
}

If you want these to be chords instead — which is not what your  
original example suggests — look for my solution in the list archive.


Hope this helps!
Kieren.

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


Chords with multiple glissandos

2009-09-17 Thread David Stocker
Is there any way to make this work, so that both sets of notes are 
connected with glissandos?


**minimal example**

\version "2.13"

\include "english.ly"

\paper {
 ragged-right = ##f
}

\relative c'' {
 cs1
 <<
   {cs4 \glissando b \glissando cs2}
   {gs4 \glissando fs \glissando gs2}
 >>
}

**end minimal example**


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


Re: emacs on Ubuntu

2009-09-17 Thread David Stocker

Okay.

If you still want to enable lilypond-mode in Emacs, go to 
/home/yourusername/.emacs.d and edit the file called "init.el"


If the directory or the file (or both) don't exist, then create them.

In init.el, paste in the following:

**begin copy and paste section**

(setq load-path (append (list (expand-file-name 
"/usr/local/lilypond/usr/share/emacs/site-lisp")) load-path))


(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t)
(add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode))
(add-to-list 'auto-mode-alist '("\\.ily$" . LilyPond-mode))
(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))

**end copy and paste section**


If something similar was already there, just delete it first and paste 
in what you've got above. Save the file and exit. That should be it. You 
should be good to go. If you change your LilyPond installation in any 
way (like uninstalling the repositories version and installing a newer 
version using the executable from the website), then you'll most likely 
have to change init.el to reflect the new location of the lilypond-mode 
files.


Hope this helps.

David

Ralph Palmer wrote:

Hi, David -

I installed through Synaptic, but by downloading from the LilyPond 
site, because the regular Ubuntu repositories didn't have 2.12.2. I'm 
not sure, but I think the Ubuntu repositories were only up to 2.10 at 
that point. At any rate, the repostitories are at 2.12.1 now, so I 
think I would have to uninstall and re-install if I were to go to an 
Ubuntu official install. I have :

/usr/local/lilypond/usr/share/emacs/site-lisp/lilypond-mode.el

Hmmm. I think maybe I'll try vim.

Ralph


On Wed, Sep 16, 2009 at 9:52 PM, David Stocker 
mailto:dstoc...@thenotesetter.com>> wrote:


Hi Ralph,

To my novice eyes, it seems there is one of two possible issues here:

 1. The path indicated in your "init.el" file, which is supposed to
point to the lilypond-mode files in your LilyPond installation
folder is incorrect, or
 2. "init.el" points to the place where the lilypond-files are
supposed to be, but the files are missing.

How did you install LilyPond? Did you do it through Add/Remove or
Synaptic, or by downloading the executable from the LilyPond site?

Ralph Palmer wrote:

Hi, I've been here before, but I've still got a problem.

I'm running Ubuntu (Jaunty Jackalope), Lilypond 2.12.2, and
emacs 22.2.1.

Whenever I try to open a .ly file in emacs, I get :
File mode specification error: (file-error "Cannot open load
file" "lilypond-mode")

Has anyone else had this problem and/or found a fix? I tried
some instructions I got a while back from someone on the
lilypond user list, and they didn't work. I re-installed
emacs, and no joy. I then tried following the instructions
again, and still no luck. Any suggestions?

Or is there another helpful text editor (with highlighting),
other than jedit (with seems to be slow and resource
intensive, in my experience)?

Thanks for your time and attention,

Ralph

-- 
Ralph Palmer

Montague City, MA
USA
palmer.r.vio...@gmail.com 
>


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





--
Ralph Palmer
Montague City, MA
USA
palmer.r.vio...@gmail.com 



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


Re: outside-staff-priority with slur and hairpin

2009-09-17 Thread Trevor Daniels


Jonathan Wilkes wrote Thursday, September 17, 2009 1:38 AM


I did a quick exercise typsetting a Schumann score, and I'm 
puzzled

because to get the hairpin under the slur I had to turn up
'outside-staff-priority for the slur to be greater than 250. 
Otherwise,

the snippet below doesn't work correctly.
Reading the NR, it sounds like Lilypond just sorts in 
increasing

order for outside-staff objects.  Why can't I just set
'outside-staff-priority for the Hairpin to #1?


Have you not read the Learning Manual?  The
Notation Reference assumes you have.  This is
explained in considerable detail in section 4.4.3.

I also tried using 'avoid-slur (and turning off 
outside-staff-priority

for the hairpin) but to no avail.


This too is explained there.

Trevor



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