From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70798 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: Lilypond Date: Sun, 21 Aug 2011 14:07:06 +0200 Message-ID: <4822756A-A54B-4C4F-968A-9AEFB75B1F16@fiee.net> References: <53762C1C-F3B2-4627-8A45-0EAB68CBDC73@fiee.net> <61F3C339-8949-48E3-97DD-8C6071958B29@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="windows-1252"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1313928454 30241 80.91.229.12 (21 Aug 2011 12:07:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Aug 2011 12:07:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 21 14:07:28 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qv6oJ-00076f-4A for gctc-ntg-context-518@m.gmane.org; Sun, 21 Aug 2011 14:07:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D1280CAEFE; Sun, 21 Aug 2011 14:07:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rdmQNZ779DHH; Sun, 21 Aug 2011 14:07:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE41FCAEFA; Sun, 21 Aug 2011 14:07:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9CE7BCAEFA for ; Sun, 21 Aug 2011 14:07:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XBVxQlipck3S for ; Sun, 21 Aug 2011 14:07:09 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id D03E1CAEE5 for ; Sun, 21 Aug 2011 14:07:09 +0200 (CEST) Original-Received: from thesan.fiee.net (thesan.fiee.net [178.77.74.245]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p7LC78HW022715 for ; Sun, 21 Aug 2011 14:07:09 +0200 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=fiee.net; b=BThSTKEmh2G3/VAHzHPLv0b9SxOOMT1QpkyvadWaoQIRgYU+R8Cvoor8ANQWi2qelAiY1e3Vowv9oLXtdwJjjPqhpRWef8vv3m0yBDMAQD7+jlOiFDh3MYupmFc2MrGa; h=Received:Received:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; Original-Received: (qmail 21899 invoked from network); 21 Aug 2011 14:07:08 +0200 Original-Received: from 27-134.76-83.cust.bluewin.ch (HELO ?10.128.9.9?) (83.76.134.27) by thesan.fiee.net with ESMTPSA (AES128-SHA encrypted, authenticated); 21 Aug 2011 14:07:08 +0200 In-Reply-To: X-Mailer: Apple Mail (2.936) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=178.77.74.245; country=DE; region=07; city=Host; latitude=51.6500; longitude=6.1833; http://maps.google.com/maps?q=51.6500,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Fn0781R - f389166ae550 - 20110821 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:70798 Archived-At: Am 2011-08-20 um 10:19 schrieb Aditya Mahajan: > >>> The other thing is to be able to change linespace, papersize, = >>> offset, etc using parameters, so that one can say: >>> \startlilypond[linespace=3D...] >>> ... >>> \stoplilypond >>> This will require some lua side processing. >> >> You mean, translate ConTeXt-style settings to LilyPond settings, = >> like we did with the old module? > Yes. >> That wouldn=92t make much sense. LilyPond just has too much settings. = >> And most of them you can set in different ways. To fully support = >> this, you=92d need a complete LilyPond parser including Scheme. And a = >> small set of settings is never the right set for everyone. > OK. Or we support the same set of options as lilypond-book (the LaTeX = module), see http://lilypond.org/doc/v2.14/Documentation/usage/music-fragme= nt-options > >> Ok, there are a few settings that we could translate, e.g. set = >> ConTeXt=92s main fonts also for LilyPond. > > Agreed. Does anyone know how to get the name of the current font in = > MkIV? > >> We don=92t need LilyPond's layout settings, as long as we go the = >> \externalfigure path. > > But I think that at least automatic paper size settings (set paper = > size to be equal to text area) are needed. I wouldn=92t try to adapt LilyPond=92s paper size, but only set line width = and use lilypond-book mode to get cropped scores. Otherwise we would = need to account for margins and place the score with negative offset = etc. At least for full scores it would make sense to synchronize: - line width to \textwidth - fonts: #(define fonts (make-pango-font-tree "TeX Gyre Schola" = "LMSans10" "LMTypewriter10 Regular" (/ 14 20))) I=92d even suggest to set Schola as ConTeXt=92s default font in t- = lilypond. - staff size according to body font (staff size 14 matches bodyfont = 8.5pt) General settings: - no point-and-click: #(ly:set-option (quote no-point-and-click)) - no headers/footers/titles/pagination - ragged bottom - no indents (but that might be a matter of taste, since it=92s LilyPond = default to indent the first line) - keep lyrics inside line: \override PaperColumn #'keep-inside-line =3D = ##t Everything else is just a matter of taste and design, I guess. >> I don=92t know a solution for line breaking of scores - if you=92d set = >> LilyPond=92s page size to ConTeXt=92s 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=92ll look into that. > OK. I=92m waiting for answers from the LP ML. >> But I don=92t know how we can make it "right" WRT LilyPond snippets - = >> I=92d want to align a note systems=92s base line with ConTeXt=92s 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=92t exist AFAIK) you need to adjust your = >> snippets manually. > > Does lilypond-book handle this at all? It does not appear to. = > Manually adjusting each inline snippet will be too much work, IMO. Probably. >>> 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=92s 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=92t try with different \layout blocks yet. >> >> Seems like I must do some tests with multipage scores. > > Look at the current version on github. It should be able to handle = > multi-page snippets. Problem is, if a multi-page score starts somewhere mid-page, e.g. = below a title, LilyPond doesn=92t know to break early enough. Please use -dno-gs-load-fonts i.e. *don=92t* let GhostScript load its = own fonts, since all needed fonts are in the (E)PS anyway, that makes = processing faster. Current version doesn=92t work at all: - it writes the buffer with doubled filename and extension parts, i.e. = from foo.tex "foo-foo-temp-lilypond.tmp.tmp", but looks for "foo-temp- = lilypond.tmp". - even if I rename the buffer file, LilyPond isn=92t run. t-filter > current filter : lilypond t-filter > base file : test1-temp-lilypond t-filter > input file : test1-temp-lilypond.tmp t-filter > output file : t-filter > command : Greetlings from Lake Constance --- fi=EB=E9 visu=EBlle Henning Hraban Ramm http://www.fiee.net http://angerweit.tikon.ch/lieder/ https://www.cacert.org (I'm an assurer) ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________