Re: changing grob properties?

2009-05-19 Thread Marc Hohl

Neil Puttock schrieb:

2009/5/16 Marc Hohl m...@hohlart.de:
  

Neil Puttock schrieb:



  

So can I use it as a callback for 'stencil? (see below)



Not for the broken spanners, since they haven't been created when the
stencil callback is evaluated.

  

Hm, I didn't get any errors, and invisible ties are exactly the feature I
need.



They only show up if the binary is compiled without optimisations:

/home/neil/Desktop/test.ly:24:17: warning: programming error: cyclic
dependency: calculation-in-progress encountered for #'stencil (Tie)
  g8 g ~ g g
 ~ g g~ g g ~

  

Ah, ok, that's why I didn't get any error messages.

At first, I used

\override Tie #'after-line-breaking = #tie::handle-tab-tie

but I didn't quite understand the term after-line-breaking, since
tie::handle-tab-tie is
called on _every_ tie. So I changed the call to
\override Tie  #'stencil = #tie::handle-tab-tie

and found out that it works, too, and has the advantage not to write
\override Tie  #'stencil = ##f

explicitly. But if this is a crude style, I won't apply it. On the other
hand, when
this offers a possibility to change the TabNoteHead stencil on the fly, it
could be used.



It's malformed as a stencil callback, since it returns no stencil (or
even #f).  It produces no ties as a side effect.

  

Can I switch to another tablature format, according to

\set tablatureFormat = #parenthesized-tab-format / which is not defined yet?



No, since you wouldn't be able to distinguish between the two
formatting functions based on the note events.
  

It seems to me that (at least at the moment) there is no simple way
to draw parentheses automatically around fret numbers, so I propose
a different attempt:
a command \showTabTieBreaks is provided, which shows the user where the
broken tab ties are by indicating it (for example in red), and the user 
can put the

parentheses manually, or simply clear these numbers by invoking
\clearTabTieBreaks.

Thank you for informations!

Marc

Regards,
Neil

  




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


Re: missing glissando features (bugs?)

2009-05-19 Thread Jonathan Kulp

Mats Bengtsson wrote:



Neil Puttock wrote:

2009/5/16 Marc Hohl m...@hohlart.de:

 
Second, glissandos between different strings is - if not impossible 
to play

- very seldom to find, so

I've played several orchestral pieces where the violin parts include 
glissandi ranging over several strings.
Mahler Symphony no. 4 comes to my mind, for example. I'm still uncertain 
on exactly how to play it, though, but perhaps the idea is that every 
player does it somewhat differently and the collective effect is what 
the composer is looking for.


For solo guitar (which I guess this thread is about), I have no idea.

   /Mats



For something like the image attached played on guitar, I would slide up 
as far as possible on the 2nd string starting at the C, then make as 
elegant an arrival on the high G as possible.  This sort of stuff 
happens with some frequency in guitar music and sound pretty good.


I have no idea how you do that across four strings on a violin. :)

Jon

--
Jonathan Kulp
http://www.jonathankulp.com
attachment: gliss.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Compiling problems without error message

2009-05-19 Thread patrick duka
I'm on 2.12.2 on mac 10.4.11

I have an issue that is no big deal but I post it in case some users get
annoyed with the same trouble as I've been for many days.
When I create .ly files in which the name contain accents or tildes like é ô
ê ö etc.very frequent in spanish and french languages, the compiling works
great the first time I work with the file; but when I quit Lilypond and
reopen the file a few days later or a few minutes later, the compiling
doesn´t work, no error message appears, this is where the console gets
stuck:

 Traitement de  /Users/radif/Music/Musicnotes/Kereshmeh-ye Homâyoun.ly 
Analyse...
Interpr'etation en cours de la musique...[8][16]
Pr'e-traitement des 'el'ements graphiques...
Interpr'etation en cours de la musique...
Sortie MIDI vers  Kereshmeh-ye Homâyoun.midi ...
D'etermination du nombre optimal de pages...
R'epartition de la musique sur une page...
Dessin des syst`emes...
Sortie mise en page vers  Kereshmeh-ye Homâyoun.ps ... 

and it stays like this forever with the little circle going round and round
as if it were trying to compile.
When i copy the score into a new blank .ly file, and then compile it, it
works. But if I quit Lilypond and then try to reopen the .ly file, it gets
stuck again with the same message as above.

I've noticed that if I erase from the name of the .ly file all the accents,
tildes etc., this compiling problem disappears.

For example, the following name won't compile when reopening the .ly file
after quiting Lilypond: kereshmeh-ye Homâyoun.
But this will work fine: kereshmeh-ye Homayoun
(note that the only difference is the ^ on the a of Homâyoun)



another example that doesn´t work:


Triste está el rey David


It will compile fine if I erase the accent on the a of está:


Triste esta el rey David



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


Re: lilypond via web interface: security considerations

2009-05-19 Thread Mike Blackstock
Install Lilypond in its own chroot jail using Olivier Sessink's
jailkit available
at http://olivier.sessink.nl/jailkit/ A 'chroot jail' means putting Lilypond on
its own filesystem so that nefarious activity - such as deleting
arbitrary files -
will be limited to the Lilypond file system. Furthermore, you just limit
the number of utilities you put in the /bin directories; if you don't
have the 'rm'
command in there, then it can't be run, obviously.

This, and other measures, will give you a fairly secure system, if it's your
own server system and you have control over it. If it's a public system, I doubt
they'll let you do any of this, unless it's one of the VPS ('virtual
personal server')
systems out there. These will run you around $50 a month, and you get your
own root-accessible system that you can pretty much do what you want with.
The guy I'm gonna use for this tells me I can do pretty much anything, short
of recompiling the kernel ;)

Hope this helps - I did it myself last year so fire away if you have
any questions
after searching the archives.


Cheers,
Mike



 When you say that you know how to solve these issues - can you elaborate
 please? Do you mean in terms of the changes required to lilypond to
 enable a locked down mode, or something else?
 lex




 ___
 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


sectional titles above tempo markings?

2009-05-19 Thread Josiah Boothby
Hello,

Using 2.12.2, I'm wondering if I can include some sort of sectional
titling information above a tempo marking, ideally also with a markup
below the tempo indication, something like:

Henry in the Store
Superfast (4=198)
(muted)
[staff with music]

Thank you,

Josiah


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


Re: Pango critical w/ v2.12.1

2009-05-19 Thread Oscar van Eijk
Thanks Jonathan, that fixed it indeed.
I tried 'ln -s /usr/local/lilypond/usr/etc/pango /usr/etc/pango' first
without luck, but removing the repos version (2.12.1) and install from
the downloaded .sh file (2,12,2-1) worked for me ;)
Oscar

On Mon, 2009-05-18 at 14:59 -0500, Jonathan Kulp wrote:

 Oscar van Eijk wrote:
  Hi All,
  I upgraded my system from Ubuntu 8.04 to 9.04, which included a newer
  Lilypond as well.
  I'm not quite sure which version I had before; it was some 2.11.x, but
  now I'm on the stable branche.
  
  However, there's a crash in Lilypond that is known in a 2.11 release,
  but here it is:
  
  bash$ lilypond RedYellowBlue
  GNU LilyPond 2.12.1
  Fontconfig error: Cannot load default config file
  Processing `RedYellowBlue.ly'
  Parsing...
  Interpreting music... 
  warning: cannot find property type-check for
  `forced-distance' (backend-type?).  perhaps a typing error?
  warning: doing assignment anyway
  [8][16][24][32]
  Preprocessing graphical objects...
  (process:13500): Pango-WARNING **: No builtin or dynamically
  loaded modules were found. Pango will not work correctly.
  This probably means there was an error in the creation of:
'/usr/etc/pango/pango.modules'
  You should create this file by running pango-querymodules.
  
  (process:13500): Pango-WARNING **: pango_shape called with bad font,
  expect ugly output
  
  (process:13500): Pango-WARNING **: pango_font_get_glyph_extents called
  with bad font, expect ugly output
  
  (process:13500): Pango-CRITICAL **: pango_fc_font_lock_face: assertion
  `PANGO_IS_FC_FONT (font)' failed
  Segmentation fault
  
  The pango modules are in /usr/lib/pango/1.6.0/modules, pango.modules
  does not exist in /usr/etc/pango, it does
  in /usr/local/lilypond/usr/etc/pango/pango.modules.
  
 
 I can't offer a solution but I can report that I've gotten nearly the 
 same errors and failures on my iMac at work under OSX when I try running 
 it from the command line.  Doing pango-querymodules didn't help. 
 Reinstallation of everything likewise didn't help. Oddly, though, 
 Lilypond still compiled files perfectly as long as I used the 
 CompileTypeset command from the GUI's menu.  I hate using the GUI, 
 though.  I suspect there's a PATH problem but it hasn't bothered me 
 enough to hunt down a solution yet.
 
 Have you tried uninstalling Lilypond from the repository and then 
 reinstalling using the binary available on the Lilypond website?  I 
 would try that next if I were you.  I'm running Xubuntu 9.04 and 
 Lilypond works fine for me on it, but I didn't use the package manager 
 to get it, I downloaded from lilypond.org.
 
 Jon


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


Re: [PATCH] Re: relative mode occasionally gets forgotten?

2009-05-19 Thread Jonathan Kulp

Jonathan Kulp wrote:

Here's a patch incorporating your suggestions, Carl.  Thanks for the help.

Jon



Carl, when you get a moment would you mind checking the patch I sent 
last night, and push if it looks ok?  I don't think Trevor's going to be 
around for a while to do doc patches.  Thanks,


Jon
--
Jonathan Kulp
http://www.jonathankulp.com


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


RE: sectional titles above tempo markings?

2009-05-19 Thread Kieren MacMillan

Hi Josiah,

 Using 2.12.2, I'm wondering if I can include some sort of sectional
 titling information above a tempo marking, ideally also with a markup
 below the tempo indication, something like:

 Henry in the Store
 Superfast (4=198)
 (muted)
 [staff with music]

I happen to be doing *precisely* that kind of thing in my current quartet 
commission -- here's one example:

  \tempo 4 = 69 \tempo \markup \dir-column
  {
\concat { Tenderly, with some rubato ( \fontsize #-2 \general-align #Y 
#DOWN \note #4 #1  = ca. 66-72) }
VARIATION I
\vspace #0
\combine \fontsize #2 PART ONE \lower #0.7 \override #'(thickness . 1.5) 
\draw-line #'(16 . 0)
  }

Notes:
1. \vspace is the standard (Nicholas's?) function for inserting vertical 
space;
2. the last element has a manually-built underline (because we don't 
currently have control over all the properties of Lilypond's \underline); and,
3. there are *two* \tempo commands (one to set the actual tempo, one to 
generate the markup).

Hope this helps!
Kieren.


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


Re: [PATCH] Re: relative mode occasionally gets forgotten?

2009-05-19 Thread Jonathan Kulp

Carl D. Sorensen wrote:

OK, done.

Everything looked great -- you even took out some pre-existing line-ending
whitespace.



Must be the excellent training I've gotten. ;)  One (or maybe all) of 
you guys--Trevor, Graham, or you--taught me to strip the trailing spaces 
before creating the patch.


Thanks for taking care of this for me. Best,

Jon

--
Jonathan Kulp
http://www.jonathankulp.com


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