From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Waites Subject: Re: [PATCH] babel support for ABC notation music files Date: Thu, 26 Sep 2013 09:12:04 +0100 (BST) Message-ID: <20130926.091204.524877805.wwaites@tardis.ed.ac.uk> References: <20130925.133119.258878215.wwaites@tardis.ed.ac.uk> <87wqm5szj2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart0(Thu_Sep_26_09_12_04_2013_852)--" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP6gK-0002QQ-I0 for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 04:12:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VP6gF-0008NY-RN for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 04:12:16 -0400 Received: from boe.xen.tardis.ed.ac.uk ([193.62.81.28]:46984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP6gF-0008NM-DQ for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 04:12:11 -0400 In-Reply-To: <87wqm5szj2.fsf@gmail.com> 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: schulte.eric@gmail.com Cc: emacs-orgmode@gnu.org ----Security_Multipart0(Thu_Sep_26_09_12_04_2013_852)-- Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Sep_26_09_12_04_2013_544)--" Content-Transfer-Encoding: 7bit ----Next_Part(Thu_Sep_26_09_12_04_2013_544)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Wed, 25 Sep 2013 09:15:45 -0600, Eric Schulte said: > Hi William, I've added your ABC notation support to Org-mode. Thank you Eric! > If you have time to add ob-ABC documentation to [1] that would > be much appreciated but is not required. Patch for the web site attached. Cheers, -w ----Next_Part(Thu_Sep_26_09_12_04_2013_544)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0001-add-ABC-docs-to-web-site.patch" >From e82589c7a964e895b04047823621ae6725bf262f Mon Sep 17 00:00:00 2001 From: William Waites Date: Thu, 26 Sep 2013 09:09:55 +0100 Subject: [PATCH] add ABC docs to web site --- org-contrib/babel/languages.org | 1 + org-contrib/babel/languages/ob-doc-abc.org | 97 ++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 org-contrib/babel/languages/ob-doc-abc.org diff --git a/org-contrib/babel/languages.org b/org-contrib/babel/languages.org index 71f6925..51f349b 100644 --- a/org-contrib/babel/languages.org +++ b/org-contrib/babel/languages.org @@ -24,6 +24,7 @@ language documentation. #+Caption: Babel has support for the following languages. | Language | Identifier | Documentation | Requirements | |----------------+-----------------+----------------------+---------------------------------------------| +| ABC | abc | [[file:languages/ob-doc-abc.org][ob-doc-abc]] | [[http://moinejf.free.fr/][abcm2ps]], [[https://github.com/mkjunker/abc-mode][abc-mode]] | | Asymptote | asymptote | [[file:languages/ob-doc-asymptote.org][ob-doc-asymptote]] | [[http://asymptote.sourceforge.net/][asymptote]], [[http://asymptote.sourceforge.net/doc/Editing-modes.html][asy-mode]] | | Awk | awk | [[file:languages/ob-doc-awk.org][ob-doc-awk]] | awk | | C | C | [[file:languages/ob-doc-C.org][ob-doc-C]] | none | diff --git a/org-contrib/babel/languages/ob-doc-abc.org b/org-contrib/babel/languages/ob-doc-abc.org new file mode 100644 index 0000000..09ab8c9 --- /dev/null +++ b/org-contrib/babel/languages/ob-doc-abc.org @@ -0,0 +1,97 @@ +#+OPTIONS: H:3 num:nil toc:2 \n:nil ::t |:t ^:{} -:t f:t *:t tex:t d:(HIDE) tags:not-in-toc +#+STARTUP: align fold nodlcheck hidestars oddeven lognotestate hideblocks +#+SEQ_TODO: TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@) +#+TAGS: Write(w) Update(u) Fix(f) Check(c) noexport(n) +#+TITLE: Org-babel-abc +#+AUTHOR: William Waites +#+LANGUAGE: en +#+HTML_HEAD: +#+LINK_UP: ../languages.html +#+LINK_HOME: http://orgmode.org/worg/ + +#+begin_html +
+

+ Org Babel support for + ABC Notation +

+
+#+end_html + +* Introduction + +An /Emacs Org Babel language/ - provided to allow [[http://abcnotation.com/][ABC Notation]] Music +Score generation. + +* Usage + Generating output in various formats (PostScript, Encapsulated + PostScript, PDF, SVG) is done by naming the `:file` parameter + correctly and passing the command-line options to /abcm2ps/ using + the `:cmdline` parameter. + +* Examples +** PDF generation +: #+begin_src abc :file congress.pdf +: T: The Congress +: R: reel +: M: 4/4 +: L: 1/8 +: K: Ador +: eAAG A2 (3Bcd | eaaf gedg | eA ~A2 eAcA | BdGB dG (3Bcd | +: eAAG A2 (3Bcd | eaaf gedB | ~c3 d (3efg ed | cdBc A2(3Bcd | +: eA ~A2 EAcd | eAaf gafg | ea ~a2 AecA | BG ~G2 B,DGB | +: AE ~E2 cA (3Bcd | eaaf gedB | ~c3 d eged | cdBc A2Bd | +: eaa^g ~a3 =g | eaaf gedg | (3efg dg (3efg dg | eaaf gabg | +: eaa^g aba=g | eaaf gedB | ~c3 d (3efg ed | cdBc A2(3Bcd | +: eaa^g ~a3 =g | eaaf gedg | (3efg dg cgBg | eaaf gabg | +: eaa^g ab=ga | eaaf gedB | ~c3 d eged | cd (3efg agfg | +: #+end_src + +** SVG generation for inclusion in web pages +: #+begin_src abc :file john_maccol_kilbowie.svg :cmdline -g +: T: John MacColl's March To Kilbowie Cottage +: R: March +: M: 4/4 +: L: 1/8 +: K: Amix +: A>B|: c4 c>B A>c | e4 f>e cB cc A>B | cc B2 A>B | +: c4 c>B A>c | e4 f>e ce f>c e>A BB :|2 A2 A2 A2 f>=g || +: a2-a>f e>c Bc e>=g f>c e>c | a>f eB | cc B2 f>=g | +: a2-a>f e>c Bc e>=g f>c e>c | fA B=g | +: a2-a>f e>c Bc e>=g f>c e>c | a>f eB | cc B2 A>B | +: c4 c>B A>c | e4 f>e ce f>c e>A BB | +: | : A>c Bf ee ff cc Bf ef e>c B2 c>B | +: A>c Bf ee ff ce f>c e>A BB :|2 A2 A2 A2 e>d || +: cc A>c e>A | ce f>e c>d | e>c BB | cc B2 e>d| +: cc A>c e>A | ce f>e c>d | e>f cA Bd | +: cc A>c e>A | ce f>e c>d | e>c BB | cc B2 A>B | +: c4 c>B A>c | e4 f>e ce f>c e>A B