From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22548 Path: news.gmane.org!not-for-mail From: andrea valle Newsgroups: gmane.comp.tex.context Subject: lilypond inclusion + pdf crop Date: Fri, 16 Sep 2005 16:13:33 +0200 Message-ID: <4cb3b40c6ad7bd94817da990d820bc60@di.unito.it> References: <432943A2.1040008@creutzig.de> <34FA5046-6B82-41A7-9C7C-7187B6AAAAD2@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1126880613 28767 80.91.229.2 (16 Sep 2005 14:23:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2005 14:23:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 16 16:23:32 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EGH5a-0003Rz-7Z for gctc-ntg-context-518@m.gmane.org; Fri, 16 Sep 2005 16:21:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E403E12862; Fri, 16 Sep 2005 16:21:17 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28737-02-4; Fri, 16 Sep 2005 16:21:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 985991285F; Fri, 16 Sep 2005 16:21:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7333B1285F for ; Fri, 16 Sep 2005 16:21:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28737-02-3 for ; Fri, 16 Sep 2005 16:21:11 +0200 (CEST) Original-Received: from pianeta.di.unito.it (pianeta.di.unito.it [130.192.239.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4E8FD1285E for ; Fri, 16 Sep 2005 16:21:09 +0200 (CEST) Original-Received: from [192.168.3.104] (multilabfw-nat3.multilab.unito.it [130.192.205.50]) by pianeta.di.unito.it (INFO-DIP) with ESMTP id j8GEJ8t2012570 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO userCertificateDN= AuthenticatedUser=valle ) for ; Fri, 16 Sep 2005 16:19:08 +0200 (MEST) In-Reply-To: <34FA5046-6B82-41A7-9C7C-7187B6AAAAD2@fiee.net> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.619.2) X-dipinfo-MailScanner-Information: Please contact Department of Computer Science technical staff for more information X-AntiVirus: Scanned for viruses by VirusFinder @2001-tecnici@di.unito.it - Email Clean X-SpamCheck: not spam, SpamAssassin (score=-102.599, required 4.5, autolearn=not spam, AUTHENTICATEDUSER -100.00, BAYES_00 -2.60) X-MailScanner-From: valle@di.unito.it X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22548 Archived-At: > > How did you get your LilyPond fragments? > The only way I know would be to cut them from whole PDF pages with > Acrobat. Ah, I understand the point. Yes, in my new composition I create a graph connecting some musical fragment (I don't wanna bore yuo too much with these details). In any case, I use Context as general typesetting environment, Metafun as vectorial, scalable, scriptable drawing engine, and lilypond as notation generator. The idea is to produce lily files, to render them, to include them in a metafun drawing, where I can clip and place them opportunely, and to render context files. My program is written in Python. But, it's true, I got involved in the problem of cropping PDFs output by lily (from the a6 format I chose). I solved using externalfigure clip in metafun. I tried Imagemagik: it crops the PDFs but it seems that it rasterizes the image. So, what can one use to crop a pdf? Preview in macosx, as acrobat, does the job, but I'd prefer too to use something from the command line. > But I'm only a newbie (and I don't really feel like learning Scheme). I don't want, too. I'd like to have python :) Here are two of the resulting scores (not totally finished yet) www.semiotiche.it/andrea/membrana/nodi-I.pdf www.semiotiche.it/andrea/membrana/nodi-II.pdf and one of the context file www.semiotiche.it/andrea/membrana/nodi-I.tex Best -a- PS: ah, thanks to the list, without support I won't be able to draw a line...