2 music.hh -- declare Music
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
12 #include "virtual-methods.hh"
18 #define is_mus_type(x) internal_is_music_type (ly_symbol2scm (x))
20 class Music : public Prob
24 Music (Music const &m);
25 VIRTUAL_COPY_CONSTRUCTOR (Music, Music);
27 Input *origin () const;
28 void set_spot (Input);
30 bool internal_is_music_type (SCM) const;
32 DECLARE_SCHEME_CALLBACK (relative_callback, (SCM, SCM));
33 Pitch to_relative_octave (Pitch);
34 Pitch generic_to_relative_octave (Pitch);
35 Moment get_length () const;
36 Moment start_mom () const;
39 /// Transpose, with the interval central C to #p#
40 void transpose (Pitch p);
42 /// Scale the music in time by #factor#.
43 void compress (Moment factor);
45 DECLARE_SCHEME_CALLBACK (duration_length_callback, (SCM));
48 virtual SCM copy_mutable_properties () const;
49 virtual void type_check_assignment (SCM, SCM) const;
50 virtual void derived_mark () const;
54 friend SCM ly_extended_make_music (SCM, SCM);
57 Music *unsmob_music (SCM);
58 Music *make_music_by_name (SCM sym);
59 SCM ly_music_deep_copy (SCM);
60 extern SCM ly_music_p_proc;