From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70789 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Lilypond Date: Sat, 20 Aug 2011 04:19:50 -0400 (EDT) Message-ID: 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 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463808510-523854341-1313828393=:16403" X-Trace: dough.gmane.org 1313863289 27810 80.91.229.12 (20 Aug 2011 18:01:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 20 Aug 2011 18:01:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 20 20:01:20 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 1Qupr9-00063K-T7 for gctc-ntg-context-518@m.gmane.org; Sat, 20 Aug 2011 20:01:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 22040CAF01; Sat, 20 Aug 2011 20:01:15 +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 c7XUS-3kZyWL; Sat, 20 Aug 2011 20:01:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9DA41CAEFA; Sat, 20 Aug 2011 20:01:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 432EACAEFA for ; Sat, 20 Aug 2011 20:01:09 +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 SX2yXZDMiBph for ; Sat, 20 Aug 2011 20:00:57 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id BCAA6CAED3 for ; Sat, 20 Aug 2011 20:00:57 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p7KI0sid031030 for ; Sat, 20 Aug 2011 20:00:56 +0200 Original-Received: FROM [10.0.2.15] (bas3-montreal02-1096682341.dsl.bell.ca [65.94.11.101]) By tombraider.mr.itd.umich.edu ID 4E4FF655.66BA.31069 ; Authuser adityam; 20 Aug 2011 14:00:53 EDT In-Reply-To: <61F3C339-8949-48E3-97DD-8C6071958B29@fiee.net> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cFmG0TE9 - f4452c78a4cd - 20110820 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:70789 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463808510-523854341-1313828393=:16403 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 19 Aug 2011, Henning Hraban Ramm wrote: > Am 2011-08-19 um 17:08 schrieb Aditya Mahajan: > > 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=3Dfullscore] > the score > \stoplilypond > > etc. Yes. I can support the following syntax: \startbuffer[snippets] ... \stopbuffer \startbuffer[fullscore] ... \stopbuffer \startbuffer[common] ... \stopbuffer \startlilypond[bufferbefore=3D{snippets,common}, bufferafter=3D{....}] =2E...=20 \stoplilypond (In fact, provide similar support for anything defined using the filter=20 module). >> The other thing is to be able to change linespace, papersize, offset, et= c=20 >> 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=20 > with the old module? Yes. > That wouldn=92t make much sense. LilyPond just has too much settings. And= most=20 > of them you can set in different ways. To fully support this, you=92d nee= d a=20 > complete LilyPond parser including Scheme. And a small set of settings is= =20 > never the right set for everyone. OK. > Ok, there are a few settings that we could translate, e.g. set ConTeXt=92= s main=20 > 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=20 > \externalfigure path. But I think that at least automatic paper size settings (set paper=20 size to be equal to text area) are needed. > I don=92t know a solution for line breaking of scores - if you=92d set Li= lyPond=92s=20 > page size to ConTeXt=92s remaining space, it would stay the same for the = second=20 > page. Perhaps we can get single lines (systems) and let ConTeXt to the pa= ge=20 > breaking. I=92ll look into that. OK. > But I don=92t know how we can make it "right" WRT LilyPond snippets - I= =92d want=20 > to align a note systems=92s base line with ConTeXt=92s text baseline, but= the=20 > height and clipping of a snippet depends on the visible elements. Without= =20 > some picture analysis (or runtime data from LilyPond, that doesn=92t exis= t=20 > AFAIK) you need to adjust your snippets manually. Does lilypond-book handle this at all? It does not appear to. Manually=20 adjusting each inline snippet will be too much work, IMO. >> Do you know how lilypond numbers its output files. In some cases I get= =20 >> filename-1.pdf sometimes not. Can I force it to always give filename-1.p= df=20 >> 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 pl= us=20 > an identical filename-temp-lilypond-##-1.eps > > When you order more than one \midi{} in several \score blocks, the first = MIDI=20 > file is unnumbered, the second gets number 1 etc.; didn=92t try with diff= erent=20 > \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=20 multi-page snippets. Aditya ---1463808510-523854341-1313828393=:16403 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ---1463808510-523854341-1313828393=:16403--