]> git.donarmstrong.com Git - lilypond.git/blob - lily/performance-scheme.cc
a00e6b8efd13e52094c9f6f9ef5d006f4544dc9e
[lilypond.git] / lily / performance-scheme.cc
1 /*
2   performance-scheme.cc -- implement Performance bindings
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2005--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "performance.hh"
10
11 LY_DEFINE (ly_performance_write, "ly:performance-write",
12            2, 0, 0, (SCM performance, SCM filename),
13            "Write @var{performance} to @var{filename}.")
14 {
15   LY_ASSERT_TYPE (unsmob_performance, performance, 1);
16   LY_ASSERT_TYPE (scm_is_string, filename, 2);
17
18   unsmob_performance (performance)->write_output (ly_scm2string (filename));
19   return SCM_UNSPECIFIED;
20 }
21