]> git.donarmstrong.com Git - lilypond.git/blob - lily/performance-scheme.cc
* scm/midi.scm (paper-book-write-midis): new function. Write all
[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 Han-Wen Nienhuys <hanwen@xs4all.nl>
7
8 */
9
10
11 #include "performance.hh"
12
13
14 LY_DEFINE (ly_performance_write, "ly:performance-write",
15            2,0,0, (SCM performance, SCM filename),
16            "Write @var{performance} to @var{filename}")
17
18 {
19   Performance * perf  = dynamic_cast<Performance*> (unsmob_music_output (performance));
20
21   SCM_ASSERT_TYPE(perf, performance, SCM_ARG1, __FUNCTION__, "Performance");
22   SCM_ASSERT_TYPE(scm_is_string (filename), filename, SCM_ARG2, __FUNCTION__, "file name");
23
24   perf->write_output (ly_scm2string (filename));
25   return SCM_UNSPECIFIED;
26 }
27
28
29