Re: fondu fails on newer OS X versions

2018-01-12 Thread padovani
Hello,

it seems that I'm having the mentioned fondu issue while running LilyPond
2.19.80 on OSX 10.11.6 - El Capitan.
[
http://lilypond.1069038.n5.nabble.com/fondu-problems-on-El-Capitan-td189203.html
]

Is there a fix around? Digging the LilyPond user, developer and bug lists I
didn't found the fix, although someone mentioned a patch.

Thank you very much for any help on this
José H.
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: exponential crescendo... / Mike "experimental" spanners?

2013-05-09 Thread padovani
[have also posted that here: https://codereview.appspot.com/7615043/
... but issue seems to be closed]


Not sure if it was already mentioned...

just installed 2.17.17 and it seems that the new (and nice!) angled hairpins are
not compatible with the circled tip:

\once \override Hairpin #'circled-tip = ##t %%doesn't work
\once \override Hairpin #'stencil = #flared-hairpin
g4\< ~ g4 ~ g8\f


josé


2013/5/9 padovani 

> Really nice! thanks Janek and mike!
>
>
> 2013/5/9 Janek Warchoł 
>
>> 2013/5/9 padovani :
>> > Would there be another way to do that? (which would span to the right
>> note,
>> > and accept "dal niente" circle, for example?)
>> >
>> > %%code
>> > \relative c' {
>> > \once \override Hairpin  #'stencil = #ly:text-interface::print
>> > \once \override Hairpin #'text = \markup{
>> > \path #0.1
>> > #'((moveto 0 0)
>> > (lineto 6 0.25)
>> > (rcurveto 0 0 0.2 0 0.25 0.3)
>> > (moveto 0 0)
>> > (lineto 6 -0.25)
>> > (rcurveto 0 0 0.2 0 0.25 -0.3)
>> > )}
>> >
>> > c2.\< ~
>> > c8 d8 e4\!
>> > }
>> > %%end
>> >
>> > PS: I remember that Mike Solomon was working with experimental eps/ps
>> > spanners... is this in any case integrated into LilyPond?\
>>
>> Yes, this was added in version 2.17.15 as commit bbfb7404fb
>> (
>> http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commit;h=bbfb7404fbc6e58ac4a48e7e79a61f3cee768e6f
>> )
>> Documentation is currently being written, see
>> http://code.google.com/p/lilypond/issues/detail?id=3235
>>
>> best,
>> Janek
>>
>
>
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: exponential crescendo... / Mike "experimental" spanners?

2013-05-09 Thread padovani
Thank you Janek... sorry to post it in the wrong place.

Well...
If this issue means to change something in circled-tip definition, I think
that it would be nice to have a second type of dal niente/al niente.
If I remember correctly, circled-tip was hard-coded in C - away from my
hacking capabilities.

Maybe it would be better to define it in scm files with path, so that one
could use other styles of dal-niente/al-niente.

As an example, I prefer very much something like a slashed-circle (messy
example, sorry):

%%code
slashflag = \markup{\combine \translate #'(-0.3 . -0.3) \draw-line #'(0.6 .
0.6)
\fontsize #-5 \musicglyph #"scripts.flageolet"}
nientedyn = #(make-dynamic-script slashflag)

\relative c' {
%\once \override Hairpin #'circled-tip = ##t
\once \override Hairpin #'stencil = #flared-hairpin
\once \override Hairpin #'bound-padding = #0
%\once \override Hairpin #'bound-details #'left #'padding = #0 %% <- this
feature would be nice, just as in Glissandos...
g'2\nientedyn\< ~  g8\fff
}
%%end of code

[image: Imagem inline 1]


2013/5/9 Janek Warchoł 

> 2013/5/9 padovani :
> > [have also posted that here: https://codereview.appspot.com/7615043/... but
> > issue seems to be closed]
> >
> >
> > Not sure if it was already mentioned...
> >
> > just installed 2.17.17 and it seems that the new (and nice!) angled
> hairpins
> > are
> > not compatible with the circled tip:
> >
> > \once \override Hairpin #'circled-tip = ##t %%doesn't work
> > \once \override Hairpin #'stencil = #flared-hairpin
> > g4\< ~ g4 ~ g8\f
> >
> > josé
>
> Looks like a missing feature.  Such information usually goes to
> bug-lilypond list, but i've just directly created an issue:
> http://code.google.com/p/lilypond/issues/detail?id=3357
>
> Janek
>
<>___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: binary for Leopard available

2008-05-18 Thread padovani

Hi,
could these intel binaries to me?
Or maybe place it on some website so I could download it?
thanks


Arthur Reutenauer escreveu:

Hello,

  
Jeroen Bol sent me a working binary for Mac OS X Leopard, which he created 
by changing the Python part of the GUI.



  As I mentioned a while back on this list, I have compiled Lilypond on
an Intel Mac running Leopard (the binary and libraries, but not the
.app).  I'm happy to share it, as it probably would be better for Intel
Mac users than relying on PPC emulation.

Arthur


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

  




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


dal niente/al niente with slashed circle?

2008-05-20 Thread padovani
Does anyone know a trick to slash the circled-tip option of Hairpins? 
The circle seems to be a flageolet... maybe with some postscript... ??




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


Re: holdups for 2.12

2008-11-29 Thread padovani

Graham Percival escreveu:

- OSX 10.5 issues: I think the command-line version is fine, but
  we still don't have a working gui.  But there's one or two
  people who have created workaround with actionscript?
  
Having a dual boot Macbook Pro (Leopard / Ubuntu 8.10), I can see that 
the PPC version runs much slower than the linux version when I need to 
compile big scores (Rosetta or ubuntu just rocks? ;)...
Is it possible to publish the Leopard compiled for an Intel Mac without 
the gui?
I have found this page (J. guillermo) but did not yet tried to follow 
the instructions to compile Lilypond (finishing my dissertation)... 
http://higgsfield.wordpress.com/2008/10/28/definitive-guide-to-lilypond-for-osx/
Could anyone give any tips about how one can package a functioning 
Intel/Leopard binary of Lilypond after having compiled it? (sorry if I 
am to much noob with such a question..)


thanks
z.

--

http://www.padovani.googlepages.com 




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


Re: 2.12 on Leopard

2008-12-28 Thread padovani

I agree and would like to support this too...
josé

Josh Parmenter escreveu:
So why not make the 10.5 package use it? Or is there a way to make it 
available? It seems like it would make more sense to point users to 
the 10.5 only wrapper then to continue directing them to build / hack 
it themselves... no?


http://lilypond.org/web/install/

If there is a way I could help out with this, I'd be more then happy 
to... just let me know what needs to be done.


Best,

Josh

On Dec 27, 2008, at 7:06 PM, Patrick McCarty wrote:


Hi Josh,

On Sat, Dec 27, 2008 at 6:14 PM, Josh Parmenter 
 wrote:
I just noticed that the 2.12 download for Mac Leopard still has 
directions
for building, etc. I thought the wrapper app problems had been 
solved? Is

this not the case?


I think the problem is that the wrapper app *only* works on Leopard.
IIRC, there were reports of it not working on 10.4.

-Patrick


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own 
interpretation of how modern society is structured: whether actively 
or passively, consciously or unconsciously, he makes choices in this 
regard. He may be conservative or he may subject himself to continual 
renewal; or he may strive for a revolutionary, historical or social 
palingenesis." - Luigi Nono

*/



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




--
http://www.padovani.googlepages.com



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


Re: 2.12 on Leopard

2008-12-28 Thread padovani

Indeed, it's running here!
thank you!

Ivo Bouwmans escreveu:

Hallo all,

Josh Parmenter schreef / wrote / skribis:
I just noticed that the 2.12 download for Mac Leopard still has 
directions for building, etc. I thought the wrapper app problems had 
been solved? Is this not the case?


The link for Leopard on the LilyPond download page points to a page 
(ivo.bouwmans.name/lilypondleopard) that I set up for 2.10.


I have just tried both lilypond-2.12.0-1.darwin-x86 and 
lilypond-2.12.0-1.darwin-ppc from 
. Both versions only show one 
menu without any items when run as application (the same as with 
2.10). But both work fine when used in Terminal - and the x86 version 
is faster, as can be expected.


I will change the page so that Mac users will be directed to the x86 
version, with the option of using my LilyPondScript.


If anyone has additional ideas: please let me know!



--
http://www.padovani.googlepages.com



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


svg font issue(bug?): can't change TimeSignature font (but markup fonts can be changed)

2015-04-28 Thread padovani
Hi,

This code compiles on .ps /.svg backends without problems:

%code 1
\score {
\new Staff {
\time 2/4
c2_\markup {
  \override #'(font-name . "Helvetica")
"here it works"
}
}
}
%end code 1

But the code below one gives me an error if I compile with -dbackend=svg

%code2
\score {
\new Staff {
\override Staff.TimeSignature.font-name = #'"Helvetica"
\time 2/4
c2_\markup {
  \override #'(font-name . "Helvetica")
"here it works"
}
}
}
% end code 2

here is the error:
%%error begin
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `teste.svg'...
warning: cannot find SVG font #f
/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/output-svg.scm:558:7:
In procedure string-null? in expression (string-null? expr):
/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/output-svg.scm:558:7:
Wrong type argument in position 1 (expecting string): #
%%error end

(I'm using 2.19.19 on OSX 10.9.5.)

Is this a bug? It seems that something need to be changes in
output-svg.scm... any idea?

Thank you!
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: svg font issue(bug?): can't change TimeSignature font (but markup fonts can be changed)

2015-04-29 Thread padovani
So... I discovered that the TimeSignature issue is related to the fact that
it is not being written as text to the svg file, but as a path.

If I use this code I can create a svg file with different fonts for the
time signature, overriding the stencil with a text:

%% BEGIN CODE 1
\score {
\new Staff {

\once \override Staff.TimeSignature.stencil = #ly:text-interface::print
  \once \override Staff.TimeSignature.text = \markup {
  \override #'(font-name . "Helvetica")
  \override #'(baseline-skip . 0.2)
  \fontsize #4
 \column { "3"
   "4"
  }}
\time 2/4
c2
}
}
%% END CODE 1

It works, but I'm struggling here to change the text of the time signature
automatically with a scheme function. Tried the code below, but it does not
work (giving me exactly the same error dump of my previous message). Any
suggestions?

%% BEGIN CODE 2
#(define-public (tsigastext grob)
   (let* ((frac (ly:grob-property grob 'fraction))
  (num (if (pair? frac) (car frac) 4))
  (den (if (pair? frac) (cdr frac) 4))
  (m (markup
  #:override '(font-name . "Helvetica")
  #:override '(baseline-skip . 0.5)
  #:fontsize 4
  #:center-column (#:number (number->string num)
   #:override '(style . default)
   #:number (number->string den)
 
(ly:grob-set-property! grob 'stencil ly:text-interface::print)
(grob-interpret-markup grob m)))


\score {
\new Staff {

  \override Staff.TimeSignature.stencil = #tsigastext
\time 2/4
c2


%%% \override Staff.TimeSignature.stencil = #(lambda (grob)
%%%(parenthesize-stencil (ly:time-signature::print grob) 0.1 0.4 0.4
0.1 ))

\time 3/4
c2
}
}
%% END CODE 2

thanks!

2015-04-28 14:37 GMT-03:00 padovani :

> Hi,
>
> This code compiles on .ps /.svg backends without problems:
>
> %code 1
> \score {
> \new Staff {
> \time 2/4
> c2_\markup {
>   \override #'(font-name . "Helvetica")
> "here it works"
> }
> }
> }
> %end code 1
>
> But the code below one gives me an error if I compile with -dbackend=svg
>
> %code2
> \score {
> \new Staff {
> \override Staff.TimeSignature.font-name = #'"Helvetica"
> \time 2/4
> c2_\markup {
>   \override #'(font-name . "Helvetica")
> "here it works"
> }
> }
> }
> % end code 2
>
> here is the error:
> %%error begin
> Interpreting music...
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Layout output to `teste.svg'...
> warning: cannot find SVG font #f
> /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/output-svg.scm:558:7:
> In procedure string-null? in expression (string-null? expr):
> /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/output-svg.scm:558:7:
> Wrong type argument in position 1 (expecting string): #
> %%error end
>
> (I'm using 2.19.19 on OSX 10.9.5.)
>
> Is this a bug? It seems that something need to be changes in
> output-svg.scm... any idea?
>
> Thank you!
>
>
>
>
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: svg font issue(bug?): can't change TimeSignature font (but markup fonts can be changed)

2015-04-29 Thread padovani
Nice! Thank you!!

2015-04-29 20:02 GMT-03:00 Dan Eble :

> On Apr 29, 2015, at 16:48 , padovani  wrote:
> >
> > So... I discovered that the TimeSignature issue is related to the fact
> that
> > it is not being written as text to the svg file, but as a path.
> >
> > If I use this code I can create a svg file with different fonts for the
> > time signature, overriding the stencil with a text:
> ...
> > It works, but I'm struggling here to change the text of the time
> signature
> > automatically with a scheme function.
>
> \version "2.19.16"
>
> #(add-simple-time-signature-style 'swiss
>   (lambda (fraction)
>(let ((n (car fraction))
>  (d (cdr fraction)))
> #{
>   \markup {
> \override #'(font-name . "Helvetica")
> \override #'(baseline-skip . 0.2)
> \fontsize #4
> \column { #(number->string n) #(number->string d) }
>   }
> #} )))
>
> \score {
>   \new Staff \with {
> \override TimeSignature.style = #'swiss
>   } {
> \time 2/4
> c2
>   }
> }
>
> —
> Dan
>
>
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: OSX 10.7, fonts and fondu?

2012-02-01 Thread padovani

Em 2/1/12 6:34 AM, Marc Hohl escreveu:

Am 31.01.2012 21:55, schrieb padovani:

hello,

I'm having troubles with 2.15.27 and OSX 10.7.2.

In a simple piece of code using fonts like Texier's Controla 
(http://christian.texier.pagespro-orange.fr/mididesi/free/index.htm), 
the compilation process ends with the following error:


Drawing systems...
Layout output to `test.ps'...
warning: `(fondu -force /Library/Fonts/Concr)' failed (256)


input file content below:

%% LilyPond code
aaa = \markup {\override #'(font-name . "Controla")
\fontsize #7
"\“"
}

I don't use MacOS, but have you tried to omit the backslash?

Just a thought,

Marc

Actually the same problem happens with any "external" font and with any 
texts...

(it is not the backslash)

found this thread but I don't realize exactly how the problem was 
solved... (I'm also not sure if it is the same problem)


http://www.mail-archive.com/lilypond-user@gnu.org/msg65574.html

Should I send it to the bug team?

thanks
josé



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


Re: OSX 10.7, fonts and fondu?

2012-02-01 Thread padovani

Em 2/1/12 8:48 AM, Marc Hohl escreveu:

Am 01.02.2012 11:06, schrieb padovani:

Em 2/1/12 6:34 AM, Marc Hohl escreveu:

Am 31.01.2012 21:55, schrieb padovani:

hello,

I'm having troubles with 2.15.27 and OSX 10.7.2.

In a simple piece of code using fonts like Texier's Controla 
(http://christian.texier.pagespro-orange.fr/mididesi/free/index.htm), 
the compilation process ends with the following error:


Drawing systems...
Layout output to `test.ps'...
warning: `(fondu -force /Library/Fonts/Concr)' failed (256)


input file content below:

%% LilyPond code
aaa = \markup {\override #'(font-name . "Controla")
\fontsize #7
"\“"
}

I don't use MacOS, but have you tried to omit the backslash?

Just a thought,

Marc

Actually the same problem happens with any "external" font and with 
any texts...

(it is not the backslash)

found this thread but I don't realize exactly how the problem was 
solved... (I'm also not sure if it is the same problem)


http://www.mail-archive.com/lilypond-user@gnu.org/msg65574.html

Should I send it to the bug team?
Perhaps you should wait for some MacOS users to have the ability to 
answer,

but if no solution rises up, a bug report seems appropriate.

Regards,

Marc
just found that it just happens with Texier fonts... (my own fonts work 
without problem).


Maybe it is something specific with his fonts?
Anyway, I will do more tests here to see what is going on.
(what is strange is that it worked without any problems on 10.6...)

Thank you again Marc..

josé




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


Re: OSX 10.7, fonts and fondu?

2012-02-01 Thread padovani

ok, sorry for the buzz everybody...

just removed all fonts and reinstalled from Texier win packages (TTF 
fonts). Now it seems to work without problems.


thank you,
josé


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


use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread padovani

Hello,

I'm dealing with special noteheads I've designed and I need to move the 
stem and the flag differently if stem direction is up or down.


I would like to create a guile lisp clause that sets the extra-offset 
value accordingly to the Stem position.


I was trying this, but it does not work...

\once \override Stem #'extra-offset = #(if (eqv? ly:stem::calc-direction 
UP) '(-0.02 . -0.25) '(0.02 . 0.25))


(also tried this...
\once \override Stem #'extra-offset = #(if (ly:dir? 
ly:stem::calc-direction UP) '(-0.02 . -0.25) '(0.02 . 0.25))

)

any tips?

thanks
josé


--
http://zepadovani.info

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


Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread padovani

Em 5/21/12 11:44 AM, David Nalesnik escreveu:

   \override Stem #'extra-offset =
 #(lambda (grob) (if (eqv? (ly:stem::calc-direction grob) UP)
'(-0.02 . -0.25) '(0.02 . 0.25)))


Hello David,

thank you very much!

Now I see that ly:stem::calc-direction only gives me the standard Stem 
direction, but if I am using some \stemDown or \stemUp before the note, 
the lambda function will ignore the actual direction of the Stem and 
adjust stem offsets accordingly to the standard direction.


Do you (or anybody else) know a way to access the actual direction of 
the Stem?


Thank you again!

José

--
http://zepadovani.info

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


Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread padovani
Oh, I'm sorry... I was reading everything in a hurry and didn't got the
second part of your message.

Thank you again!

2012/5/21 David Nalesnik 

> Hi José,
>
> On Mon, May 21, 2012 at 10:20 AM, padovani wrote:
>
>> Em 5/21/12 11:44 AM, David Nalesnik escreveu:
>>
>>\override Stem #'extra-offset =
>>> #(lambda (grob) (if (eqv? (ly:stem::calc-direction grob) UP)
>>> '(-0.02 . -0.25) '(0.02 . 0.25)))
>>>
>>
>> Hello David,
>>
>> thank you very much!
>>
>> Now I see that ly:stem::calc-direction only gives me the standard Stem
>> direction, but if I am using some \stemDown or \stemUp before the note, the
>> lambda function will ignore the actual direction of the Stem and adjust
>> stem offsets accordingly to the standard direction.
>>
>> Do you (or anybody else) know a way to access the actual direction of the
>> Stem?
>>
>
> Yes, in this instance the second option I gave (using ly:grob-property to
> look up 'direction) will give you the proper direction after a \stemUp or
> \stemDown.
>
> -David
>
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread padovani

Hi again,

so.. as the flags are now separate objects (2.15.38), I'm having 
problems to move them to the same place that I am moving the stems... if 
I just reproduce the lambda function I am using with Stems with flags, 
it does not work...


\once \override Stem #'extra-offset =
#(lambda (grob)
 (if (eq? (ly:grob-property grob 'direction) UP)
  '(-0.02 . -0.25) '(0.02 . 0.25)))

%this fails
\once \override Flag #'extra-offset =
#(lambda (grob)
 (if (eq? (ly:grob-property grob 'direction) UP)
  '(-0.02 . -0.25) '(0.02 . 0.25)))

So, is there a way to know the Flag direction? Or maybe a wat to access 
the Stem's grob from the Flag one (so that I can point the function to 
the Stem properties?).


Thank you again,

José


Em 5/21/12 1:10 PM, David Nalesnik escreveu:

José,

On Mon, May 21, 2012 at 11:02 AM, padovani mailto:zepadovani.li...@gmail.com>> wrote:

Oh, I'm sorry... I was reading everything in a hurry and didn't got
the second part of your message.


No problem!  I learned something new about ly:stem::calc-direction
because of your email: didn't know that it calculates "ideal" directions.

-David



--
http://zepadovani.info

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


Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread padovani

Em 5/21/12 3:03 PM, David Nalesnik escreveu:

Sorry to take the Scheme fun out of it...  (if this is in fact gives you
what you want!)


That's it!
No need of the Scheme part of the Scheme fun! :)

Thank you very much!

--
http://zepadovani.info

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


emacs lilypond-mode.el and lilypond-init.el patches to process .lytex files with "lilypond-book --pdf"/"pdflatex"

2010-05-08 Thread josé henrique padovani

Hi,
I have made some changes on my emacs lilypond-mode files to process 
lytex files as suggested here 
(http://lilypond.org/doc/v2.13/Documentation/usage-big-page#Invoking-lilypond_002dbook)... 
directly with: "lilypond-book --pdf file.lytex" and "pdflatex file.tex"


I'm sending the patches... Please tell me if it is ok (don't know if the 
shortcuts are ok to other people, for example)



I would also like to know if it would be possible to have an option, 
when compiling LilyPond, to change some system specific commands that 
are in lilypond-mode...

For example, for OSX:
"xpdf" -> "open"
"timidity" -> "open"
etc..
(OSX's "open" uses the system default app to read pdf/play midi files)


I have no idea about how to do it as I am a "newbie" in LilyPond 
development..
maybe creating a system specific file lilypond-mode-osx.el would be the 
easier way?


Thanks,
josé

PS: .lytex extension was added to lilypond-init to load lilypond-mode 
automatically as (I think) that latex \include can be used to organize 
files .. and those files with lilypond code need more the ly syntax 
colorizing than tex colorizing...


--
http://zepadovani.info



binObDTxs0oxn.bin
Description: application/applefile


lilypond-init.el.patch
Description: Binary data
245c245
<"book" "latex"))
---
>"book" "latex" "book-lytex" "pdflatex"))
364a365,374
> (defcustom LilyPond-lilypond-book-command "lilypond-book --pdf"
>   "Command used to compile lytex files."
>   :group 'LilyPond
>   :type 'string)
> 
> (defcustom LilyPond-pdflatex-command "pdflatex"
>   "Command used to generate pdf files after using lilypond-book."
>   :group 'LilyPond
>   :type 'string)
> 
442a453,454
> ("Book-lytex" . (,(concat LilyPond-lilypond-book-command " %z") "%z" "%l" 
> "PDFLaTeX"))
> ("PDFLaTeX" . (,(concat LilyPond-pdflatex-command " %l") "%l" "%f" 
> "View"))
487a500
> ("%z" . ".lytex")
597a611,622
>  (defun LilyPond-command-lilypond-book ()
>"Run 'lilypond-book --pdf' for the current document."
>(interactive)
>(LilyPond-command (LilyPond-command-menu "Book-lytex") 
> 'LilyPond-get-master-file)
>  )
>  
>  (defun LilyPond-command-pdflatex ()
>"Run pdflatex for the current document."
>(interactive)
>(LilyPond-command (LilyPond-command-menu "PDFLaTeX") 
> 'LilyPond-get-master-file)
>  )
> 
703c728
<"Book" "LaTeX"))
---
>"Book" "LaTeX" "Book-lytex" "PDFLaTeX"))
761a787,788
>   (define-key LilyPond-mode-map "\C-c\C-a" 'LilyPond-command-lilypond-book)
>   (define-key LilyPond-mode-map "\C-c\C-z" 'LilyPond-command-pdflatex)
981a1009,1010
> '([ "LilyPond-Book --pdf" LilyPond-command-lilypond-book t])
> '([ "PDFLaTeX" LilyPond-command-pdflatex t])
___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: emacs lilypond-mode.el and lilypond-init.el patches to process .lytex files with "lilypond-book --pdf"/"pdflatex"

2010-05-08 Thread josé henrique padovani

Em 08/05/10 13:00, Nicolas Sceaux escreveu:



I don't know if this can be changed in the local .emacs file, but I just edit lilypond-mode.el and 
replace "xpdf" with "open" and it works fine.
 


(custom-set-variables
   ;; custom-set-variables was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(LilyPond-pdf-command "open")
  '(LilyPond-midi-command "open")
   ;; ...
)
   

I do this too on my own lilypond-mode.el..
I meant to have some mechanism to generate "ready-to-use" .el file for 
each system..


--
http://zepadovani.info



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


-dbackend=svg ... warning: missing stencil expression `embedded-ps'

2010-06-04 Thread josé henrique padovani
(OBS: I'm writing to user and devel lists as I am not sure if it is a 
bug...)


Hello,

I am trying to generate svg files of my score, where I use some 
\postscript markups. Everything goes ok, except those markups...

I get this warning and the svg file comes without the postcript drawings...
"warning: missing stencil expression `embedded-ps'"

Is this a bug? If not, is there some work-around?

Thanks
josé

PS: I am running lilypond 2.13.22 on OSX 10.6.2


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


Re: -dbackend=svg ... warning: missing stencil expression `embedded-ps'

2010-06-05 Thread josé henrique padovani

Em 04/06/10 17:01, Patrick McCarty escreveu:

2010/6/4 josé henrique padovani:
   

I am trying to generate svg files of my score, where I use some \postscript
markups. Everything goes ok, except those markups...
I get this warning and the svg file comes without the postcript drawings...
"warning: missing stencil expression `embedded-ps'"

Is this a bug? If not, is there some work-around?
 

It's not a bug.  :-)

The \postscript command is one of the few commands that uses native
PostScript code in the output.  Since SVG doesn't support embedded
PostScript, there is no easy way to support \postscript in the SVG
backend.

If your PostScript code is simple enough, you could try trying
creating custom figures with the 'embedded-svg routine.  This permits
entering native SVG code that can be used with the SVG backend.  For
an example, see this code:

   http://uoregon.edu/~pmccarty/svg/src/embedded-svg/embedded-svg.ly

Note that 'embedded-svg will not work with the PostScript/PDF output.

Another option is to use the 'path routine.  This isn't documented yet
and is a little cumbersome to use, but you can find an example that
uses 'path in this snippet:

   http://lsr.dsi.unimi.it/LSR/Item?id=623

In other words, there is no *easy* workaround... yet.

-Patrick

   

Thank you for the tips Patrick... (I'm new to lilypond with svg...)
I will take a look on the path routine.

josé

--
http://zepadovani.info


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


Store values in a scheme variable to use after

2010-06-05 Thread josé henrique padovani
Hi... I'm trying to store a NoteHead's position (by using scheme 
functions) to be abble to use this value after (as a string in a markup)...
To do that I define a variable (myvar with the string "init") and then I 
use tweak to set! myvar to its new value...


But when I call myvar from a markup, it still finds the old argument 
"init"...


Why?
Is it possible to do something like what I am trying to do in another way?

Thank you,
josé

code:
\version "2.13.22"

#(define myvar "init")

#(define (notehead-get-staffposition notehead)
   ;; notehead is grob
   (ly:grob-property notehead 'staff-position))

#(define (change-myvar notehead)
   ;; notehead is grob
   (let ((sp (ly:number->string (notehead-get-staffposition notehead
 (format #t "~2&~a\n" (make-string 40 #\-))
(begin
 (format #t "~a\n" sp)
 (set! myvar sp

\relative c' {
  c1^\markup{\text \myvar}

  \once \override NoteHead #'before-line-breaking = #change-myvar
  c
  g^\markup{\text \myvar}
  a^\markup{\text \myvar}
}

--
http://zepadovani.info


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


scheme function to extract a specific grob property from a music event?

2010-06-06 Thread josé henrique padovani

Hi,

I have tried to find in the manual and in the sources a scheme function 
that let me extract a specific grob from a music object...
I want to be able to know which is the 'staff-position (or should it be 
Y-offset?) grob-property of the notehead I am creating and use it to set 
the Y-offset of my markup.



As my last attempt storing and resetting scheme variables didn't worked, 
I'm following Mike Solomon suggestion and I have created a scheme 
function which writes everything I need...


Here is what I have until now
The function has four entries: event-chord(music?) txt(markup?) 
numx(number?) numy(number?)
What I want to do is to eliminate the last argument by setting it to be 
equal to the same 'Y-offset (or 'staff-position, it is not clear to me 
yet) of the notehead



 CODE BEGIN
myfunction = #(define-music-function (parser location event-chord txt 
numx numy)

   (ly:music? markup? number? number?)
   (let ((result-event-chord (ly:music-deep-copy event-chord))
 (tscript-outside-staff-priority (make-music ;;\override 
TextScript #'outside-staff-priority = ##f

  'ContextSpeccedMusic
  'context-type
  'Bottom
  'element (make-music
'OverrideProperty
'pop-first
#t
'grob-property-path
(list (quote outside-staff-priority))
'grob-value
#f
'symbol
'TextScript)))
 (tscript-xoffset (make-music ;; \override TextScript 
#'X-offset = numx

   'ContextSpeccedMusic
   'context-type
   'Bottom
   'element
   (make-music
'OverrideProperty
'pop-first
#t
'grob-property-path
(list (quote X-offset))
'grob-value
numx
'symbol
'TextScript)))
 (tscript-yoffset (make-music   ;  \override TextScript 
#'Y-offset = numy

   'ContextSpeccedMusic
   'context-type
   'Bottom
   'element
   (make-music 'OverrideProperty
'pop-first
#t
'grob-property-path
(list (quote Y-offset))
'grob-value
numy
'symbol
'TextScript
(set! (ly:music-property result-event-chord 'elements)
 (cons (make-music 'TextScriptEvent 'text (markup txt)) ;;;my 
markup

  (ly:music-property result-event-chord 'elements)))
(make-music 'SequentialMusic 'elements (list 
tscript-outside-staff-priority tscript-xoffset tscript-yoffset 
result-event-chord


\score{
\relative c'{
%{
%\displayMusic
{
 \override TextScript #'outside-staff-priority = ##f
 \override TextScript #'X-offset = #2
 \override TextScript #'Y-offset = #0
 g'1-\markup{"<-"}
}
%}

\myfunction g'1 \markup{\sans "<-"} #2 #0
}
}

%%% CODE END


--
http://zepadovani.info


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


cap in path routine (was: Re: Eyeglasses (was Re: -dbackend=svg ... warning: missing stencil expression `embedded-ps'))

2010-06-06 Thread josé henrique padovani
Just to be sure: Is it possible to set different caps with the path 
routine? (I didn't found this option)
If not, would it be possible to add an optional variable to set it and 
have it working on both ps and svg backends?


thanks
josé

--
http://zepadovani.info


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


Re: cap in path routine

2010-06-06 Thread josé henrique padovani

Em 06/06/10 15:33, Patrick McCarty escreveu:

Looking into this more, I see two issues:

1) What names should we use for the different linecap options?
2) Where should these values be specified?

For 1), we could use the PostScript naming convention, though it is
somewhat difficult to remember.  The SVG naming convention is easier
to understand, but more wordy.

For 2), I don't really know at the moment.  :-)

I think it would be best to find a "general" solution that will work
for all routines capable of supporting linecap settings (for example,
'draw-line and 'polygon).

Any thoughts (about syntax, or otherwise)?

Thanks,
Patrick

   
well.. I think that would be good to preserve the ps-like words (simply 
to avoid confusion between svg and

ps syntaxes)

It would be nice to add both "setlinecap" and "setlinejoin" to the 'path 
defs...
They could be added as optional arguments (not sure about the guile 
syntax as I am more


(use-modules (ice-9 optargs)) ;; is this module already loaded by LilyPond?
(define* (path thickness exps #:optional cap join )

 ...)

or, using keywords (more elegant?)... and then if linecap or linejoin 
are not supplied
by the user they can have their actual default values... (maybe path 
could be extendend in this way?)


(use-modules (ice-9 optargs)) ;; is this module already loaded by LilyPond?
(define my-proc (lambda* (thickness exps #&key linecap linejoin)


What do you think?


--
http://zepadovani.info

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


Re: cap in path routine

2010-06-06 Thread josé henrique padovani

Em 06/06/10 16:40, josé henrique padovani escreveu:


well.. I think that would be good to preserve the ps-like words 
(simply to avoid confusion between svg and

ps syntaxes)

It would be nice to add both "setlinecap" and "setlinejoin" to the 
'path defs...
They could be added as optional arguments (not sure about the guile 
syntax as I am more


(use-modules (ice-9 optargs)) ;; is this module already loaded by 
LilyPond?

(define* (path thickness exps #:optional cap join )

 ...)

or, using keywords (more elegant?)... and then if linecap or linejoin 
are not supplied
by the user they can have their actual default values... (maybe path 
could be extendend in this way?)


(use-modules (ice-9 optargs)) ;; is this module already loaded by 
LilyPond?

(define my-proc (lambda* (thickness exps #&key linecap linejoin)


What do you think?

one more thing came on my mind:
it would be useful to be able to set another optional variable to 'fill 
or 'stroke!


josé

--
http://zepadovani.info

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


Re: scheme function to extract a specific grob property from a musicevent?

2010-06-06 Thread josé henrique padovani

Em 06/06/10 20:26, Gilles THIBAULT escreveu:

see attached file.


Oh sorry.
I send a not cleaned file.
Please, take this one instead.

Gilles

That's it!! Thank you very much!
I still need to understand the code better, but it is exactly what I 
need... (want to put some curved glissandos made with paths after the note)


josé

--
http://zepadovani.info


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


Re: Syntax Colourgin in BBEdit and TextWrangler

2010-06-07 Thread josé henrique padovani

Em 06/06/10 23:41, Han-Wen Nienhuys escreveu:

[+lily-devel]

The list is probably a better place to ask around.

On Sun, Jun 6, 2010 at 3:53 PM, Frans van Dunné  wrote:
   

Dear Han Wen,

I made a preliminary syntax colouring xml available to use BBedit or
TextWrangler available
(http://fransvandunne.com/2010/06/bblily-lilypond-syntax-colouring-for-bbedit/).

It's not really time yet to disseminate amongst the Lilypond users, but I
will keep you posted. It has been my personal wish to have this since 2006
(go figure how long it takes to understand how syntax colouring works).

One special request: is there a list full list of Lilypond keywords and
functions available in XML or asci? Going through the manual and copy
pasting is too much for me.

Can you make the syntax keywords and functions avalaible to me as a list so
I can finish up the syntax colouring?


 
The emacs extension has a file "lilypond-words.el" which lists these 
words... maybe it is easier to copy them from there.


josé

--
http://zepadovani.info


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