Re: graphics in scheme?

2007-11-21 Thread Tao Cumplido
hi,

thanks for all the replies.
the internal drawing commands I found don't seem to be good enough for my 
purposes.
the use of eps and svg files seems so far only the second best solution to me. 
but if I fail at scheme this could well work.

I will be away for a week now so I can't try any of your suggestions but be 
sure to hear from me when I am back. ;)

regards,

Tao



 Original-Nachricht 
> Datum: 21 Nov 2007 09:56:54 +0100
> Von: [EMAIL PROTECTED]
> An: lilypond-user@gnu.org
> Betreff: Re: graphics in scheme?

> "Tao Cumplido" <[EMAIL PROTECTED]> writes:
> 
> > also [...] is it actually possible to use postscript (with
> > variables) inside scheme?
> 
> Sure!  You can write a scheme function that returns a string that is
> valid postscript, and use that postscript in a markup block.  I've
> tried, and it works for me.[1]
> 
> Of course, you then need to master Lilypond, Scheme *and* Postscript.
> ;-)
> 
> -- Arvid
> 
> [1] This was not for some articulation, though; rather, I experimented
> with adding ISMN bar codes to the copyright block or to the final page
> footer.  I'll add this code to LSR some day, after some cleanup, but
> don't hold your breath waiting.
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


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


Re: graphics in scheme?

2007-11-21 Thread Arvid Grøtting
"Tao Cumplido" <[EMAIL PROTECTED]> writes:

> also [...] is it actually possible to use postscript (with
> variables) inside scheme?

Sure!  You can write a scheme function that returns a string that is
valid postscript, and use that postscript in a markup block.  I've
tried, and it works for me.[1]

Of course, you then need to master Lilypond, Scheme *and* Postscript.
;-)

-- Arvid

[1] This was not for some articulation, though; rather, I experimented
with adding ISMN bar codes to the copyright block or to the final page
footer.  I'll add this code to LSR some day, after some cleanup, but
don't hold your breath waiting.



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


Re: graphics in scheme?

2007-11-20 Thread Mats Bengtsson



Tao Cumplido wrote:

hi,

in this snippet http://lsr.dsi.unimi.it/LSR/Snippet?id=335
stencils are created with commands like make-circle-stencil.
are these part of scheme or of lilypond and is there a list of all possible 
commands available?
  

They are implemented in LilyPond and are primarily intended for internal
use in LilyPond. I'm afraid that you have to browse through the files in
.../share/lilypond/current/scm/ of your LilyPond installation to find all
available Scheme functions. Note that only functions declared with
(define-public) are accessible from within normal .ly files.
A partial list is available in the Program Reference -> Scheme functions.
Especially read the documentation for ly:make-stencil, which partly answers
your next question.

also is this similar to the postscript command inside a markup-block and if not 
is it actually possible to use postscript (with variables) inside scheme?
  
There are several different backends to LilyPond, whereof the Postscript 
output is just

one example.

  /Mats


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


Re: graphics in scheme?

2007-11-20 Thread Vivian Barty-Taylor
There are a couple of ways to get non-native graphics into Lilypond  
output. I don't use scheme drawing commands, although this might be  
a possibility. The \epsfile command (in a markup) is handy - you  
can create an .eps file in Inkscape and then use a macro to do  
normal alignment. If you need to add more extensive graphics you  
can create SVG output from Lilypond and then add the graphics in  
Inkscape (see various discussions on this list about getting bug- 
free SVG output from Lilypond.)


Vivian.

On Nov 20, 2007, at 4:11 PM, Tao Cumplido wrote:


hi,

in this snippet http://lsr.dsi.unimi.it/LSR/Snippet?id=335
stencils are created with commands like make-circle-stencil.
are these part of scheme or of lilypond and is there a list of all  
possible commands available?


also is this similar to the postscript command inside a markup- 
block and if not is it actually possible to use postscript (with  
variables) inside scheme?


I am a complete scheme newbie and I'd like to create some custom  
articulations.
I tried it with postscript but then I have to do it every time it  
appears and now I saw the snippet with the snap-pizzicato and  
thought this could be another solution.


regards,

Tao
--
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger


___
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


graphics in scheme?

2007-11-20 Thread Tao Cumplido
hi,

in this snippet http://lsr.dsi.unimi.it/LSR/Snippet?id=335
stencils are created with commands like make-circle-stencil.
are these part of scheme or of lilypond and is there a list of all possible 
commands available?

also is this similar to the postscript command inside a markup-block and if not 
is it actually possible to use postscript (with variables) inside scheme?

I am a complete scheme newbie and I'd like to create some custom articulations.
I tried it with postscript but then I have to do it every time it appears and 
now I saw the snippet with the snap-pizzicato and thought this could be another 
solution.

regards,

Tao
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger


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