ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <hraban@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Lilypond
Date: Fri, 19 Aug 2011 22:18:08 +0200	[thread overview]
Message-ID: <61F3C339-8949-48E3-97DD-8C6071958B29@fiee.net> (raw)
In-Reply-To: <alpine.LNX.2.02.1108191102060.14039@nqv-gnoyrg.tngrjnl.2jver.arg>

Am 2011-08-19 um 17:08 schrieb Aditya Mahajan:

>> I don't understand what you're planning,
>
> I am planning to add features so that you can say:
>
> \startlilypondpreamble
>  global settings
> \stoplilypondpreamble

Ah, that's great - at the moment I just import the same settings.ly  
file into every score of a songbook.

But - can you even support different setups, say

\startlilypondpreamble
  global settings for everything
\stoplilypondpreamble

\startlilypondpreamble[snippet]
  global settings for snippets
\stoplilypondpreamble

\startlilypondpreamble[fullscore]
  global settings for full scores
\stoplilypondpreamble

\startlilypond[setup=fullscore]
the score
\stoplilypond

etc.

> The other thing is to be able to change linespace, papersize,  
> offset, etc using parameters, so that one can say:
> \startlilypond[linespace=...]
> ...
> \stoplilypond
> This will require some lua side processing.

You mean, translate ConTeXt-style settings to LilyPond settings, like  
we did with the old module?
That wouldn’t make much sense. LilyPond just has too much settings.  
And most of them you can set in different ways. To fully support this,  
you’d need a complete LilyPond parser including Scheme. And a small  
set of settings is never the right set for everyone.

Ok, there are a few settings that we could translate, e.g. set  
ConTeXt’s main fonts also for LilyPond.

We don’t need LilyPond's layout settings, as long as we go the  
\externalfigure path.
I don’t know a solution for line breaking of scores - if you’d set  
LilyPond’s page size to ConTeXt’s remaining space, it would stay the  
same for the second page. Perhaps we can get single lines (systems)  
and let ConTeXt to the page breaking. I’ll look into that.

But I don’t know how we can make it "right" WRT LilyPond snippets -  
I’d want to align a note systems’s base line with ConTeXt’s text  
baseline, but the height and clipping of a snippet depends on the  
visible elements. Without some picture analysis (or runtime data from  
LilyPond, that doesn’t exist AFAIK) you need to adjust your snippets  
manually.

> Do you know how lilypond numbers its output files. In some cases I  
> get filename-1.pdf sometimes not. Can I force it to always give  
> filename-1.pdf or always give filename.pdf

LilyPond adds a number to EPS, if there’s more that one page.
But in my songbook setup, I always get a filename-temp-lilypond-##.eps  
plus an identical filename-temp-lilypond-##-1.eps

When you order more than one \midi{} in several \score blocks, the  
first MIDI file is unnumbered, the second gets number 1 etc.; didn’t  
try with different \layout blocks yet.

Seems like I must do some tests with multipage scores.

> Which OSes do you have access to?

Normally I work on OSX Intel 10.5.8; I've access to Windows 7/64 and  
Ubuntu/Debian machines.


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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2011-08-19 20:18 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-18 22:32 buffer names in MKII Mojca Miklavec
2011-08-18 21:29 ` Aditya Mahajan
2011-08-19  7:53   ` Henning Hraban Ramm
2011-08-19 15:08     ` Lilypond (Re: buffer names in MKII) Aditya Mahajan
2011-08-19 20:18       ` Henning Hraban Ramm [this message]
2011-08-20  8:19         ` Lilypond Aditya Mahajan
2011-08-21  1:22           ` Lilypond David Wooten
2011-08-21 12:07           ` Lilypond Henning Hraban Ramm
2011-08-21 18:25             ` Lilypond Henning Hraban Ramm
2011-08-21 22:14             ` Lilypond Aditya Mahajan
2011-08-21 22:24               ` Lilypond Hans Hagen
2011-08-21 22:32                 ` Lilypond Aditya Mahajan
2011-08-22  1:53               ` Lilypond Aditya Mahajan
2011-08-22 13:59                 ` Lilypond Henning Hraban Ramm
2011-08-22 15:18                   ` Lilypond Aditya Mahajan
2011-08-19  0:09 ` buffer names in MKII Aditya Mahajan
2011-08-19  7:53 ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2014-06-08 22:31 Lilypond David Wooten
2014-06-10  9:53 ` Lilypond Henning Hraban Ramm
2014-06-10 18:26   ` Lilypond David Wooten
2014-06-11  8:51     ` Lilypond Henning Hraban Ramm
2014-06-12 17:00       ` Lilypond David Wooten
2014-06-12 17:37         ` Lilypond Henning Hraban Ramm
2014-06-12 20:21           ` Lilypond David Wooten
2007-08-26 22:35 lilypond Hans Hagen
2007-07-03 15:59 lilypond Wolfgang Werners-Lucchini
2007-07-06 20:25 ` lilypond Henning Hraban Ramm
2007-08-27 14:28   ` lilypond Mojca Miklavec
2007-08-27 10:28 ` lilypond Steffen Wolfrum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=61F3C339-8949-48E3-97DD-8C6071958B29@fiee.net \
    --to=hraban@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).