#+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