ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Lilypond module
@ 2008-08-04 22:00 Olivier Guéry
  2008-08-05  7:34 ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Olivier Guéry @ 2008-08-04 22:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

It seem's that the lilypond module don't work.

See this minimal exemple :

\usemodule[lilypond]
\setuplilypond[staffsize=30, fragment=yes, time=no, clef=no]
\starttext
    \lilypond{ \new RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big]
\stoptext

It failed with :

(/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex
loading        : LilyPond module
)
utilityfile | not present
systems        : begin file test-lilypond at line 6
! You can't use `the character 1' after \the.
\lily!figures ->1

\dosavebuffer [#1]->\ctxlua {buffers.save("#1
                                             ")}
\dodostartlilypond ...ilypond-\the \lily!figures ]
                                                  \fi \ifeof 18 \expanded {\...
l.8 ... RhythmicStaff {\time 3/4 c8 r4.. c8 r16} }
                                                   \blank[1*big]


My luatex is : This is LuaTeX, Version snapshot-0.28.0-2008071500
My context : MtxRun | main context file:
/usr/share/texmf/tex/context/base/context.tex
                    MtxRun | current version: 2008.07.31 16:30

Any idears ?

Cheers,
Olivier.


- --
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://getfiregpg.org

iD8DBQFIl3qqDylEczeynX8RAg/hAJ9khkllpkL5WEwJWnDvS2AJH0uJXACfb4pF
LYMgkWzkwUlyX4WjgEfbfSw=
=W6YC
-----END PGP SIGNATURE-----
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Lilypond module
  2008-08-04 22:00 Lilypond module Olivier Guéry
@ 2008-08-05  7:34 ` Wolfgang Schuster
  2008-08-05 17:55   ` Olivier Guéry
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2008-08-05  7:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Aug 5, 2008 at 12:00 AM, Olivier Guéry <nemolivier@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> It seem's that the lilypond module don't work.
>
> See this minimal exemple :
>
> \usemodule[lilypond]
> \setuplilypond[staffsize=30, fragment=yes, time=no, clef=no]
> \starttext
>    \lilypond{ \new RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big]
> \stoptext
>
> It failed with :
>
> (/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex
> loading        : LilyPond module
> )
> utilityfile | not present
> systems        : begin file test-lilypond at line 6
> ! You can't use `the character 1' after \the.
> \lily!figures ->1
>
> \dosavebuffer [#1]->\ctxlua {buffers.save("#1
>                                             ")}
> \dodostartlilypond ...ilypond-\the \lily!figures ]
>                                                  \fi \ifeof 18 \expanded {\...
> l.8 ... RhythmicStaff {\time 3/4 c8 r4.. c8 r16} }
>                                                   \blank[1*big]
>
>
> My luatex is : This is LuaTeX, Version snapshot-0.28.0-2008071500
> My context : MtxRun | main context file:
> /usr/share/texmf/tex/context/base/context.tex
>                    MtxRun | current version: 2008.07.31 16:30
>
> Any idears ?

Remove the "\the" before \lily!figures at line 259 in the module or use MkII.

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Lilypond module
  2008-08-05  7:34 ` Wolfgang Schuster
@ 2008-08-05 17:55   ` Olivier Guéry
  2008-08-06  6:33     ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Olivier Guéry @ 2008-08-05 17:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1559 bytes --]

2008/8/5 Wolfgang Schuster <schuster.wolfgang@googlemail.com>:
> On Tue, Aug 5, 2008 at 12:00 AM, Olivier Guéry <nemolivier@gmail.com> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hello,
>>
>> It seem's that the lilypond module don't work.
>>
>> See this minimal exemple :
>>
>> \usemodule[lilypond]
>> \setuplilypond[staffsize=30, fragment=yes, time=no, clef=no]
>> \starttext
>>    \lilypond{ \new RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big]
>> \stoptext
>>
>> It failed with :
>>
>> (/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex
>> loading        : LilyPond module
>> )
>> utilityfile | not present
>> systems        : begin file test-lilypond at line 6
>> ! You can't use `the character 1' after \the.
>> \lily!figures ->1
>>
>> \dosavebuffer [#1]->\ctxlua {buffers.save("#1
>>                                             ")}
>> \dodostartlilypond ...ilypond-\the \lily!figures ]
>>                                                  \fi \ifeof 18 \expanded {\...
>> l.8 ... RhythmicStaff {\time 3/4 c8 r4.. c8 r16} }
>>                                                   \blank[1*big]
>>
>>
>> My luatex is : This is LuaTeX, Version snapshot-0.28.0-2008071500
>> My context : MtxRun | main context file:
>> /usr/share/texmf/tex/context/base/context.tex
>>                    MtxRun | current version: 2008.07.31 16:30
>>
>> Any idears ?
>
> Remove the "\the" before \lily!figures at line 259 in the module or use MkII.

Thank's. No more error during the compilation, but no image. Look at the pdf !

Olivier.

[-- Attachment #2: test-lilypond.pdf --]
[-- Type: application/pdf, Size: 5567 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Lilypond module
  2008-08-05 17:55   ` Olivier Guéry
@ 2008-08-06  6:33     ` Wolfgang Schuster
  2008-08-06 18:51       ` Olivier Guéry
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2008-08-06  6:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Aug 5, 2008 at 7:55 PM, Olivier Guéry <nemolivier@gmail.com> wrote:
> 2008/8/5 Wolfgang Schuster <schuster.wolfgang@googlemail.com>:
>> On Tue, Aug 5, 2008 at 12:00 AM, Olivier Guéry <nemolivier@gmail.com> wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Hello,
>>>
>>> It seem's that the lilypond module don't work.
>>>
>>> See this minimal exemple :
>>>
>>> \usemodule[lilypond]
>>> \setuplilypond[staffsize=30, fragment=yes, time=no, clef=no]
>>> \starttext
>>>    \lilypond{ \new RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big]
>>> \stoptext
>>>
>>> It failed with :
>>>
>>> (/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex
>>> loading        : LilyPond module
>>> )
>>> utilityfile | not present
>>> systems        : begin file test-lilypond at line 6
>>> ! You can't use `the character 1' after \the.
>>> \lily!figures ->1
>>>
>>> \dosavebuffer [#1]->\ctxlua {buffers.save("#1
>>>                                             ")}
>>> \dodostartlilypond ...ilypond-\the \lily!figures ]
>>>                                                  \fi \ifeof 18 \expanded {\...
>>> l.8 ... RhythmicStaff {\time 3/4 c8 r4.. c8 r16} }
>>>                                                   \blank[1*big]
>>>
>>>
>>> My luatex is : This is LuaTeX, Version snapshot-0.28.0-2008071500
>>> My context : MtxRun | main context file:
>>> /usr/share/texmf/tex/context/base/context.tex
>>>                    MtxRun | current version: 2008.07.31 16:30
>>>
>>> Any idears ?
>>
>> Remove the "\the" before \lily!figures at line 259 in the module or use MkII.
>
> Thank's. No more error during the compilation, but no image. Look at the pdf !

Post the log file and the terminal messages.

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Lilypond module
  2008-08-06  6:33     ` Wolfgang Schuster
@ 2008-08-06 18:51       ` Olivier Guéry
  2008-08-08  7:39         ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Olivier Guéry @ 2008-08-06 18:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 5871 bytes --]

> Post the log file and the terminal messages.

So, you can find the log file join to this mail, and here is the
terminal output :

# context test-lilypond.tex
MtxRun | loading configuration for /usr/share/texmf/web2c from
/home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
MtxRun | run 1: luatex
--fmt="/home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en"
--lua="/home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en.lua"
"./test-lilypond.tex"
(test-lilypond.tex

ConTeXt  ver: 2008.07.31 16:30 MKIV  fmt: 2008.8.4  int: english/english

language       : language en is active
system         : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkiv
lua            : used config path - /usr/share/texmf/web2c/texmf.cnf
lua            : used cache path -
/home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028
) (/usr/share/texmf/tex/context/base/cont-mtx.tex))
system         : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
system         : cont-sys loaded
(/usr/share/texmf/tex/context/user/cont-sys.tex
(/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-otf.tex))
bodyfont       : 12pt rm is loaded
specials       : tex loaded
system         : test-lilypond.top loaded
(test-lilypond.top
specials       : loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials       : loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex
(/usr/share/texmf/tex/context/base/spec-fdf.mkiv))
specials       : fdf loaded
(/usr/share/texmf/tex/context/base/spec-tpd.mkiv))
specials       : fdf loaded
)
system         : module lilypond loaded
(/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex
loading        : LilyPond module
) (test-lilypond.tuo) (test-lilypond.tuo)
systems        : begin file test-lilypond at line 6
color          : mpcmyk color space is supported
color          : mpspot color space is supported
color          : system rgb is local activated
color          : mpcmyk color space is supported
color          : mpspot color space is supported
color          : system rgb is local activated
fonts          : resetting map file list
{/usr/share/texmf/fonts/map/pdftex/context/original-empty.map}
fonts          : using map file: original-base
{/usr/share/texmf/fonts/map/pdftex/context/original-base.map}
fonts          : using map file: lm-math
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}
fonts          : using map file: lm-rm
{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts          : using map file: original-ams-base
{/usr/share/texmf/fonts/map/pdftex/context/original-ams-base.map}
fonts          : using map file: original-ams-euler
{/usr/share/texmf/fonts/map/pdftex/context/original-ams-euler.map}
fonts          : using map file: original-public-lm
{/usr/share/texmf/fonts/map/pdftex/context/original-public-lm.map} [1.1]
systems        : end file test-lilypond at line 10
 )</usr/share/texmf/fonts/opentype/public/lm/lmmono8-regular.otf></usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats : used config path          - /usr/share/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path           - /home/nemo/.context-tmp
mkiv lua stats : modules/dumps/instances   - 89/23/1
mkiv lua stats : input load time           - 0.096 seconds
mkiv lua stats : fonts load time           - 1.651 seconds
mkiv lua stats : xml load time             - 0.000 seconds, lpath
calls: 0, cached calls: 0
mkiv lua stats : lxml load time            - 0.000 seconds
preparation, backreferences: 0
mkiv lua stats : mps conversion time       - 0.000 seconds
mkiv lua stats : node processing time      - 0.000 seconds including kernel
mkiv lua stats : kernel processing time    - 0.000 seconds
mkiv lua stats : attribute processing time - 0.002 seconds
mkiv lua stats : language load time        - 0.084 seconds, n=2
mkiv lua stats : graphics processing time  - 0.220 seconds including tex, n=2
mkiv lua stats : metapost processing time  - 0.000 seconds, loading:
0.000 seconds, execution: 0.000 seconds, n: 0
mkiv lua stats : current memory usage      - 50047179 bytes
mkiv lua stats : cleaned up reserved nodes - 21 nodes, 8 lists of 100
mkiv lua stats : node memory usage         - 20 glue_spec, 2 dir
mkiv lua stats : loaded patterns           - us:us:pat:exc:2
mkiv lua stats : loaded fonts              - file:lmmono12-regular:otf
file:lmmono8-regular:otf file:lmroman10-bolditalic*default:otf
file:lmroman10-italic*default:otf file:lmroman12-bold*default:otf
file:lmroman12-italic*default:otf file:lmroman12-regular*default:otf
file:lmroman7-bold*default:otf file:lmroman7-regular*default:otf
file:lmroman9-bold*default:otf file:lmroman9-italic*default:otf
file:lmroman9-regular*default:otf
file:lmromancaps10-regular*default:otf
file:lmromanslant10-bold*default:otf
file:lmromanslant10-regular*default:otf
file:lmromanslant12-regular*default:otf
file:lmromanslant9-regular*default:otf lmex10:tfm lmmi12:tfm lmmi7:tfm
lmmi9:tfm lmsy10:tfm lmsy7:tfm lmsy9:tfm msam10:tfm msam7:tfm
msbm10:tfm msbm7:tfm rm-lmr12:tfm rm-lmr7:tfm rm-lmr9:tfm
mkiv lua stats : runtime                   - 3.176 seconds, 1
processed pages, 1 shipped pages, 0.315 pages/second

MtxRun | total runtime: 3.997

----------------

Olivier.


-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: test-lilypond.log --]
[-- Type: text/x-log; name=test-lilypond.log, Size: 5113 bytes --]

(test-lilypond.tex

ConTeXt  ver: 2008.07.31 16:30 MKIV  fmt: 2008.8.4  int: english/english

language       : language en is active
system         : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkiv
lua            : used config path - /usr/share/texmf/web2c/texmf.cnf
lua            : used cache path - /home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028
) (/usr/share/texmf/tex/context/base/cont-mtx.tex))
system         : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
system         : cont-sys loaded
(/usr/share/texmf/tex/context/user/cont-sys.tex (/usr/share/texmf/tex/context/base/type-tmf.tex) (/usr/share/texmf/tex/context/base/type-siz.tex) (/usr/share/texmf/tex/context/base/type-otf.tex))
bodyfont       : 12pt rm is loaded
specials       : tex loaded
system         : test-lilypond.top loaded
(test-lilypond.top
specials       : loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials       : loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex (/usr/share/texmf/tex/context/base/spec-fdf.mkiv))
specials       : fdf loaded
(/usr/share/texmf/tex/context/base/spec-tpd.mkiv))
specials       : fdf loaded
)
system         : module lilypond loaded
(/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex
loading        : LilyPond module
) (test-lilypond.tuo) (test-lilypond.tuo)
systems        : begin file test-lilypond at line 6
color          : mpcmyk color space is supported
color          : mpspot color space is supported
color          : system rgb is local activated
color          : mpcmyk color space is supported
color          : mpspot color space is supported
color          : system rgb is local activated
fonts          : resetting map file list
{/usr/share/texmf/fonts/map/pdftex/context/original-empty.map}
fonts          : using map file: original-base
{/usr/share/texmf/fonts/map/pdftex/context/original-base.map}
fonts          : using map file: lm-math
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}
fonts          : using map file: lm-rm
{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts          : using map file: original-ams-base
{/usr/share/texmf/fonts/map/pdftex/context/original-ams-base.map}
fonts          : using map file: original-ams-euler
{/usr/share/texmf/fonts/map/pdftex/context/original-ams-euler.map}
fonts          : using map file: original-public-lm
{/usr/share/texmf/fonts/map/pdftex/context/original-public-lm.map} [1.1]
systems        : end file test-lilypond at line 10
 )</usr/share/texmf/fonts/opentype/public/lm/lmmono8-regular.otf></usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats : used config path          - /usr/share/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path           - /home/nemo/.context-tmp
mkiv lua stats : modules/dumps/instances   - 89/23/1
mkiv lua stats : input load time           - 0.096 seconds
mkiv lua stats : fonts load time           - 1.651 seconds
mkiv lua stats : xml load time             - 0.000 seconds, lpath calls: 0, cached calls: 0
mkiv lua stats : lxml load time            - 0.000 seconds preparation, backreferences: 0
mkiv lua stats : mps conversion time       - 0.000 seconds
mkiv lua stats : node processing time      - 0.000 seconds including kernel
mkiv lua stats : kernel processing time    - 0.000 seconds
mkiv lua stats : attribute processing time - 0.002 seconds
mkiv lua stats : language load time        - 0.084 seconds, n=2
mkiv lua stats : graphics processing time  - 0.220 seconds including tex, n=2
mkiv lua stats : metapost processing time  - 0.000 seconds, loading: 0.000 seconds, execution: 0.000 seconds, n: 0
mkiv lua stats : current memory usage      - 50047179 bytes
mkiv lua stats : cleaned up reserved nodes - 21 nodes, 8 lists of 100
mkiv lua stats : node memory usage         - 20 glue_spec, 2 dir
mkiv lua stats : loaded patterns           - us:us:pat:exc:2
mkiv lua stats : loaded fonts              - file:lmmono12-regular:otf file:lmmono8-regular:otf file:lmroman10-bolditalic*default:otf file:lmroman10-italic*default:otf file:lmroman12-bold*default:otf file:lmroman12-italic*default:otf file:lmroman12-regular*default:otf file:lmroman7-bold*default:otf file:lmroman7-regular*default:otf file:lmroman9-bold*default:otf file:lmroman9-italic*default:otf file:lmroman9-regular*default:otf file:lmromancaps10-regular*default:otf file:lmromanslant10-bold*default:otf file:lmromanslant10-regular*default:otf file:lmromanslant12-regular*default:otf file:lmromanslant9-regular*default:otf lmex10:tfm lmmi12:tfm lmmi7:tfm lmmi9:tfm lmsy10:tfm lmsy7:tfm lmsy9:tfm msam10:tfm msam7:tfm msbm10:tfm msbm7:tfm rm-lmr12:tfm rm-lmr7:tfm rm-lmr9:tfm
mkiv lua stats : runtime                   - 3.176 seconds, 1 processed pages, 1 shipped pages, 0.315 pages/second


[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Lilypond module
  2008-08-06 18:51       ` Olivier Guéry
@ 2008-08-08  7:39         ` Wolfgang Schuster
  2008-09-06 19:43           ` Henning Hraban Ramm
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2008-08-08  7:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Aug 6, 2008 at 8:51 PM, Olivier Guéry <nemolivier@gmail.com> wrote:
>> Post the log file and the terminal messages.
>
> So, you can find the log file join to this mail, and here is the
> terminal output :

No idea, what do you get with MkII or just "lilypond" on the command
line without
any TeX.

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Lilypond module
  2008-08-08  7:39         ` Wolfgang Schuster
@ 2008-09-06 19:43           ` Henning Hraban Ramm
  2008-09-06 19:58             ` Henning Hraban Ramm
  0 siblings, 1 reply; 11+ messages in thread
From: Henning Hraban Ramm @ 2008-09-06 19:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Ok, let's come back to this unsolved mystery - I'm working at another  
songbook...


LilyPond isn't called anymore, neither with MkII nor with MkIV.

The buffer gets written, since I removed "\the" in \savebuffer, as  
Wolfgang told us at 2008-08-05.

As far as I can track it down, "\installprogram" doesn't do anything.
I tried it with different commands, so it's not a problem of the  
defined and expanded macro.

write18 is enabled (at least \ifeof18 is true).

Is \installprgram replaced with something different?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Lilypond module
  2008-09-06 19:43           ` Henning Hraban Ramm
@ 2008-09-06 19:58             ` Henning Hraban Ramm
  2008-09-07 15:41               ` Mojca Miklavec
  0 siblings, 1 reply; 11+ messages in thread
From: Henning Hraban Ramm @ 2008-09-06 19:58 UTC (permalink / raw)
  To: mailing ConTeXt users list for


Am 2008-09-06 um 21:43 schrieb Henning Hraban Ramm:

> Ok, let's come back to this unsolved mystery - I'm working at  
> another songbook...
>
>
> LilyPond isn't called anymore, neither with MkII nor with MkIV.
>
> The buffer gets written, since I removed "\the" in \savebuffer, as  
> Wolfgang told us at 2008-08-05.
>
> As far as I can track it down, "\installprogram" doesn't do anything.
> I tried it with different commands, so it's not a problem of the  
> defined and expanded macro.
>
> write18 is enabled (at least \ifeof18 is true).
>
> Is \installprogram replaced with something different?


Temporary solution: Use always the old "executesystemcommand":

Replace the whole "\ifeof18 ... \fi" block with:

\executesystemcommand{\LP}%
\doif\jobsuffix{pdf}{%
	\executesystemcommand{\PDF}%
}%


Don't forget to change the "savebuffer" line to:

\ifx\directlua\undefined \else \savebuffer[lilypond-\lily!figures]\fi

(i.e. delete "\the")


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Lilypond module
  2008-09-06 19:58             ` Henning Hraban Ramm
@ 2008-09-07 15:41               ` Mojca Miklavec
  2008-09-08 20:37                 ` Henning Hraban Ramm
  0 siblings, 1 reply; 11+ messages in thread
From: Mojca Miklavec @ 2008-09-07 15:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Sep 6, 2008 at 9:58 PM, Henning Hraban Ramm wrote:
>
> Temporary solution:

Can you please update the module on the garden? (All my mails used to
bounce from you, and you have the rights to update the module.) It
then automatically propagates to TeX Live.

Thanks,
    Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Lilypond module
  2008-09-07 15:41               ` Mojca Miklavec
@ 2008-09-08 20:37                 ` Henning Hraban Ramm
  0 siblings, 0 replies; 11+ messages in thread
From: Henning Hraban Ramm @ 2008-09-08 20:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2008-09-07 um 17:41 schrieb Mojca Miklavec:
>> Temporary solution:
> Can you please update the module on the garden? (All my mails used to
> bounce from you, and you have the rights to update the module.) It
> then automatically propagates to TeX Live.


I removed the last anti-spam setting of my mail server that could  
cause bouncing, as far as I understand.

New version of the LilyPond module is in the garden:
http://modules.contextgarden.net/module/detail?name=t-lilypond

I even finally managed to compile the documentation, that seems to  
depend from exactly right copyright lines...

BTW "context --module" still doesn't work.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* LilyPond module
@ 2006-09-17 22:09 Henning Hraban Ramm
  0 siblings, 0 replies; 11+ messages in thread
From: Henning Hraban Ramm @ 2006-09-17 22:09 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 805 bytes --]

Hi there!

I'm trying to fix the LilyPond module for LilyPond 2.9.x (find my  
current version attached).
One of the problems is, that the EPS/PDF produced by LilyPond is  
always too big (doesn't obey the ordered dimensions, but is uniformly  
upscaled).
The code after line 250 should shift the notes to the left, if the  
line is wider than ordered - that worked in previous versions,  
because it was only wider, if there was text in front of the score.

So, if I calculate the scaling factor (ca. 1.5), how can I use it in  
the module? Sorry, I still can't code in TeX...

(At the same time I try to get answers on the LilyPond list how to  
avoid the scaling.)

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

[-- Attachment #2: t-lilypond.tex --]
[-- Type: application/octet-stream, Size: 8546 bytes --]

%D \module
%D   [       file=t-lilypond,
%D        version=2006.09.17,
%D          title=\CONTEXT\ User Modules,
%D       subtitle=Lilypond Connections (Music Typesetting),
%D         author=Christopher Creutzig,
%D           date=\currentdate,
%D      copyright=Christopher Creutzig]

%M \usemodule[lilypond]

%D This module serves to include lilypond music directly in the
%D \CONTEXT\ source, just as \METAPOST\ code can be.  Before starting
%D with the implementation, one or two examples are in order.
%D \startbuffer[sample]
%D \startlilypond
%D % Telemann, TWV 40:11
%D \version "2.9.16"
%D 
%D \relative c' {
%D \set Staff.instrumentName = flute
%D \key fis \minor
%D \time 3/4
%D \partial 4
%D 
%D    r8 fis'8 | fis4. cis8 a cis | fis, a cis fis a fis |
%D    b, d fis b d b | eis,, gis cis eis gis b, |
%D    a fis' gis, fis' cis eis | fis,4 r8
%D    a' gis fis | e gis, a e' fis cis |
%D    d fis, gis b e d | cis4 \trill r8
%D    cis b a | b dis e gis cis, b |
%D    a e' dis fis b, a | gis4 \trill r8
%D }
%D \stoplilypond
%D \stopbuffer
%D
%D The input
%D
%D \typebuffer[sample]
%D
%D is typeset as
%D
%D \getbuffer[sample]
%D
%D \type{\startlilypond} accepts options, as in\crlf
%D \type{\startlilypond[staffsize=24, linewidth=14cm, indent=5cm, time=no]}:
%D 
%D \nobreak
%D \startlilypond[staffsize=24,linewidth=14cm,indent=5cm,time=no]
%D \version "2.9.16"
%D \relative c' {
%D \set Staff.instrumentName = flute
%D \key fis \minor
%D \time 3/4
%D \partial 4
%D    r8 fis'8 | fis4. cis8 a cis | fis, a cis fis a fis |
%D    b, d fis b d b | eis,, gis cis eis gis b, |
%D    a fis' gis, fis' cis eis | fis,4 r8
%D    a' gis fis | e gis, a e' fis cis |
%D    d fis, gis b e d | cis4 \trill r8
%D    cis b a | b dis e gis cis, b |
%D    a e' dis fis b, a | gis4 \trill r8
%D }
%D \stoplilypond
%D
%D It is also possible to mix text and music:
%D \lower 8.2pt\hbox{\lilypond[fragment=true,staffsize=16,time=no]{g'}} is a g.
%D
%D TODO: Complete list of options.
%D
%D TODO: The \type{\lower} in the example above should not be necessary.
%D
%D TODO: Switches to turn off the clef etc.
%D
%D TODO: Proper support for multipage results.
%D
%D TODO: lilypond -> \CONTEXT.
%D
%D \page
%D Now for the implementation.  As usual, we use a prefix for buffers,
%D \type{\getparameters} etc.:

\unprotect
\def\??lily{lilypond-}

%D Define the text snippets to be placed around fragments.
%D Since lilypond uses similar syntax to \TeX, we must do some catcode fiddling.
\bgroup
\catcode`\/=\@@escape
/catcode`/\=/@@other
/catcode`/#=/@@other
/catcode`/<=/@@begingroup
/catcode`/>=/@@endgroup
/catcode`/{=/@@other
/catcode`/}=/@@other
/catcode`/%=/@@other
/gdef/lily!fragmentprefix<
/string^^J
%\layout {/string^^J
%  /string^^J
% }/string^^J
/string^^J
{/string^^J
% ly snippet contents follows:/string^^J
>

/gdef/lily!fragmentsuffix</string^^J
% end ly snippet/string^^J
}/string^^J
>

/gdef/lily!prefix</string^^J
#(set! toplevel-score-handler print-score-with-defaults)/string^^J
#(set! toplevel-music-handler 
  (lambda (p m) 
   (if (not (eq? (ly:music-property m 'void) #t)) 
        (print-score-with-defaults 
         p (scorify-music m p)))))/string^^J
/string^^J
#(ly:set-option (quote no-point-and-click))/string^^J
/string^^J
#(define version-seen #t)/string^^J
/iflily!time/else
\layout {/string^^J
  raggedlast = ##t
%\context {/string^^J
% \Score/string^^J
% timing = ##f/string^^J
%}/string^^J
\context {/string^^J
 \Staff/string^^J
 \remove Time_signature_engraver/string^^J
}/string^^J
}/string^^J
/fi
\paper {/string^^J
  #(define dump-extents #t)/string^^J
  raggedright = /iflily!align ##f/else ##t/fi/string^^J
  indent = /withoutpt/the/lily!indent\pt/string^^J
  linewidth = /withoutpt/the/lily!linewidth\pt/string^^J
  vsize = /withoutpt/the/lily!vsize\pt/string^^J
  printpagenumber = ##f/string^^J
}/string^^J
>

/gdef/lily!hash<#>
/egroup

\newdimen\lily!linewidth
\newdimen\lily!vsize
\newdimen\lily!indent
\newif\iflily!align
\newif\iflily!time

\newcount\lily!figures

%D Again, as usual, there is a \type{\setuplilypond} command
%D that accepts the same parameters as \type{\lilypond} and
%D \type{\startlilypond} do in their optional argument:
\def\setuplilypond{\dosingleempty\dosetuplilypond}

\def\dosetuplilypond[#1]{%
   \getparameters[\??lily][#1]%
}

%D We set the following defaults:
\setuplilypond
  [staffsize=20,
   indent=0pt,
   time=\v!yes,
   align=?,% default depends on fragment=...
   fragment=\v!no,
   ]

%D \type{\startlilypond} is a multistage implementation, because
%D end-of-line characters must be treated specially in the
%D \type{\startlilypond}\textellipsis\type{\stoplilypond} range.
\def\startlilypond{\dosingleempty\dostartlilypond}

\def\dostartlilypond[#1]{%
   \bgroup
   \obeylines
   \dodostartlilypond[{#1}]%
}

\long\def\dodostartlilypond[#1]#2\stoplilypond{%
   \egroup% from \dostartlilypond
   \bgroup%
%D The default of the \type{linewidth} parameter is the local
%D \type{\hsize}.
   \setlocalhsize
   \getparameters[\??lily][linewidth=\the\localhsize,height=\the\textheight,#1]%
   \lily!linewidth\dimexpr\getvalue{\??lily linewidth}\relax
   \lily!vsize\dimexpr\getvalue{\??lily height}\relax
   \lily!indent\dimexpr\getvalue{\??lily indent}\relax
%D The default of \type{align} depends on whether we typeset a fragment:
   \@EAEAEA\doifelse\getvalue{\??lily align}{\v!yes}%
      \lily!aligntrue\lily!alignfalse
   \@EAEAEA\doif\getvalue{\??lily fragment}{\v!no}{%
     \@EAEAEA\doif\getvalue{\??lily align}?
        \lily!aligntrue
   }%
   \@EAEAEA\doifelse\getvalue{\??lily time}\v!yes
      \lily!timetrue\lily!timefalse
%D We are using a counter to keep the different lilypond pieces
%D separate.  This allows to typeset them only once, during the
%D first run.
%D
%D TODO: This won't work any longer once we pass the remaining
%D vertical space to lilypond.
   \global\advance\lily!figures\plusone
   \startmode[*\v!first]% 
   \def\obeyedlines{\string^^J}%
   \convertargument#2\to\ascii
   \expanded{%
   \setbuffer[lilypond-\the\lily!figures]%
   \lily!prefix
   \lily!hash(set-global-staff-size \getvalue{\??lily staffsize})\string^^J%
   \ifundefined{\??lily fragment}\else\lily!fragmentprefix\fi
   %% TODO: Option "packed"
   \ascii%
   \ifundefined{\??lily fragment}\else\lily!fragmentsuffix\fi
   }%
   \endbuffer%
%D Generating a pdf directly always creates a whole page, so we generate eps first.
%D If \type{\ifeof18} creates an error for you, your pdfetex is too old.
%D just change it to \iftrue then.  (\type{\ifeof18} checks whether \type{\write18}
%D is disabled.)
	\def\LP{/usr/local/bin/lilypond -b eps -f eps }
	\def\TU{/usr/local/teTeX/bin/powerpc-apple-darwin-current/texutil }
   \ifeof18
      \doif\jobsuffix{pdf}{%
	      \installprogram{\LP \bufferprefix lilypond-\the\lily!figures.tmp}%
         \installprogram{/usr/local/teTeX/bin/powerpc-apple-darwin-current/texutil --figures --epstopdf \bufferprefix lilypond-\the\lily!figures.eps}%
      }%
      %\else{\installprogram{\LP \bufferprefix lilypond-\the\lily!figures.tmp}%
   \else
      \executesystemcommand{\LP \bufferprefix lilypond-\the\lily!figures.tmp}%
      \doif\jobsuffix{pdf}{%
      	\executesystemcommand{\LP \bufferprefix lilypond-\the\lily!figures.tmp}%
         \executesystemcommand{\TU --figures --epstopdf \bufferprefix lilypond-\the\lily!figures.eps}%
      %\else{\installprogram{\LP \bufferprefix lilypond-\the\lily!figures.tmp}%
      }%
   \fi
   \stopmode% only first run
   \doifelse\jobsuffix{pdf}
     {\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.pdf}}%
     {\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.eps}}%
%D If we are not in the middle of some text, we have to check
%D whether lilypond created an image that is wider than requested:
%D It places the instrument names in the left margin.
%D
%D Problem: EPS is always too wide, we must scale it! (HR)
%D
%D TODO: Get the relevant dimension directly from lilypond,
%D to place the instrument name into the left margin for
%D short snippets as well.
   \ifvmode
      \getfiguredimensions[\bufferprefix lilypond-\the\lily!figures.pdf][]%
      \leavevmode
      \ifdim\figurewidth>\localhsize
        \!!dimena=\localhsize
        \advance\!!dimena by-\figurewidth
        \noindent\hskip\!!dimena
      \fi
   \fi
   \externalfigure[\lily!img][]%
   \egroup%
}%

%D For short snippets, we define an inline alternative to
%D our start/stop pair:
\def\lilypond{\dosingleempty\dolilypond}

\def\dolilypond[#1]#2{\startlilypond[#1]#2\stoplilypond}

\protect
%D End of file

[-- Attachment #3: Type: text/plain, Size: 1 bytes --]



[-- Attachment #4: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-09-08 20:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-04 22:00 Lilypond module Olivier Guéry
2008-08-05  7:34 ` Wolfgang Schuster
2008-08-05 17:55   ` Olivier Guéry
2008-08-06  6:33     ` Wolfgang Schuster
2008-08-06 18:51       ` Olivier Guéry
2008-08-08  7:39         ` Wolfgang Schuster
2008-09-06 19:43           ` Henning Hraban Ramm
2008-09-06 19:58             ` Henning Hraban Ramm
2008-09-07 15:41               ` Mojca Miklavec
2008-09-08 20:37                 ` Henning Hraban Ramm
  -- strict thread matches above, loose matches on Subject: below --
2006-09-17 22:09 LilyPond module Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).