From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Babel: 1st version for music notation language Fomus Date: Thu, 07 Jul 2011 19:38:51 -0600 Message-ID: <87y609zh2i.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf02j-0003QV-2e for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 21:39:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qf02g-0002lE-EK for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 21:39:44 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:64667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf02f-0002kT-Ho for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 21:39:42 -0400 Received: by iwn8 with SMTP id 8so1617664iwn.0 for ; Thu, 07 Jul 2011 18:39:38 -0700 (PDT) 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: Torsten Anders Cc: emacs-orgmode@gnu.org Hi Torsten, Thanks for sharing this, it looks great, short clear and to the point. Shall I add it to the contrib/ directory? Best -- Eric Torsten Anders writes: > Dear Babel developers, > > Inspired by the newly available Lilypond, I hacked up a first version > of language support for Fomus > (http://fomus.sourceforge.net/). Briefly, Fomus is a music notation > system that translates a relatively simple domain specific music > language into multiple output formats, including Lilypond and MusicXML > (the latter is an open format supported by many commercial music > notation systems such as Finale and Sibelius). In a nutshell, Fomus > can simplify the generation of complex scores, because it can add > various score information automatically. Anyway, please find my first > attempt of a Fomus integration attached. > > This works already fine for standard code blocks such as the following. Note that the result of this is a Lilypond file. > > #+begin_src fomus :file test1.ly > time 0 dur 2 pitch 60; > time 2 dur 1 pitch 62; > time 3 dur 1 pitch 63; > time 4 dur 4 pitch 65; > #+end_src > > Of course, because this is a quick hack, various improvements can be > made. For example, it might be a good idea to allow for something like > :file test.pdf, where the resulting Lilypond call would see file.ly, > but the automatically inserted link in the org buffer would be the > resulting file.pdf. > > Comments are welcome. > > Best wishes, > Torsten > > -- > Dr Torsten Anders > Course Leader, Music Technology > University of Bedfordshire > Park Square, Room A315 > http://strasheela.sourceforge.net > http://www.torsten-anders.de > > > > > > > -- Eric Schulte http://cs.unm.edu/~eschulte/