From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: ob-lilypond Date: Tue, 28 Jun 2011 21:00:11 +0200 Message-ID: References: <4E09C50D.5020302@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbdWA-0002yr-SH for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 15:00:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbdW9-0008Lq-Kf for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 15:00:14 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:37233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbdW9-0008LS-GL for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 15:00:13 -0400 Received: by wwf22 with SMTP id 22so427216wwf.30 for ; Tue, 28 Jun 2011 12:00:11 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martyn Jago Cc: emacs-orgmode@gnu.org Hi Martyn Thank you very much for sharing your work. On Tue, Jun 28, 2011 at 19:06, Martyn Jago wro= te: >> But much better, IMO, would be a way to `evaluate' a single Lilypond >> block and get #+RESULTS with a link to a PNG representing just that >> snippet of music. The snippet would then show up in subsequent exports >> as an included graphic without any post-processing, and could also be >> viewed in-buffer with `C-c C-x C-v'. (For my money, this and not >> `tangle all' would be the intuitive use of `C-c C-c' on a block, but I >> understand how your choice makes sense for other uses.) >> >> Yours, >> Christian > > This is very doable since it is the first thing I tried on initial > experimentation. I think I had some difficulty cropping the snippet (png) > in that the result had no padding at all, but I'm guessing that can be > overcome. > Certainly with the use cases you suggest, the defaults would need to > change, and C-c C-c would need to act as you describe, but that wouldn't > be an issue if we can define seperate 'modes' for the different ways of > working (I think for now the 'modes' can be considered =A0mutually exclus= ive). For me it would be great to have Lilypond snippets that can be evaluated into a linked score image file visible inline the Org buffer, permanently in #+results: or temporarily as an overlay (similar to org-preview-latex-fragment). Michael