~ubuntu-branches/ubuntu/precise/lilypond/precise

« back to all changes in this revision

Viewing changes to input/no-notation/to-xml.ly

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Bushnell, BSG
  • Date: 2006-12-19 10:18:12 UTC
  • mfrom: (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061219101812-7awtjkp0i393wxty
Tags: 2.8.7-3
scripts/midi2ly.py: When setting DATADIR, find Lilypond python files
in the @TOPLEVEL_VERSION@ directory, not 'current'.  Patch thanks to
Chris Lamb (chris@chris-lamb.co.uk).  (Closes: #400550)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\version "2.7.39"
 
2
 
 
3
fooBar =  { << c''4 \\ g'4 >> }
 
4
 
 
5
#(ly:set-option 'parse-protect #f)
 
6
#(load-from-path "to-xml.scm")
 
7
 
 
8
#(music-to-xml fooBar (current-output-port))
 
9
 
 
10
\header {
 
11
    texidoc = "@cindex To XML"
 
12
        texidoc = #(string-append
 
13
      "The input representation is very generic. Therefore, it
 
14
      should not be hard to convert it to XML or a similar format:\n\n"
 
15
 
 
16
      "@example\n"
 
17
        (call-with-output-string
 
18
               (lambda (p) (music-to-xml fooBar p))
 
19
      )
 
20
    "@end example" )
 
21
}
 
22
 
 
23
 
 
24
\score {
 
25
\fooBar
 
26
}
 
27