(parse_symbol_list): Bugfix.
[lilypond/patrick.git] / lily / performance-scheme.cc
blob645262f9df1072b04cccffe80700fee2f882e9cd
1 /*
2 performance-scheme.cc -- implement Performance bindings
4 source file of the GNU LilyPond music typesetter
6 (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
9 #include "performance.hh"
11 LY_DEFINE (ly_performance_write, "ly:performance-write",
12 2, 0, 0, (SCM performance, SCM filename),
13 "Write @var{performance} to @var{filename}")
16 Performance *perf = dynamic_cast<Performance *> (unsmob_music_output (performance));
18 SCM_ASSERT_TYPE (perf, performance, SCM_ARG1, __FUNCTION__, "Performance");
19 SCM_ASSERT_TYPE (scm_is_string (filename), filename, SCM_ARG2, __FUNCTION__, "file name");
21 perf->write_output (ly_scm2string (filename));
22 return SCM_UNSPECIFIED;