2 music.hh -- declare Music
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
12 #include "virtual-methods.hh"
13 #include "minterval.hh"
14 #include "music-constructor.hh"
16 #define is_mus_type(x) internal_is_music_type (ly_symbol2scm (x))
22 Music (Music const &m);
23 VIRTUAL_COPY_CONSTRUCTOR (Music, Music);
25 Input *origin () const;
26 void set_spot (Input);
28 SCM internal_get_property (SCM) const;
29 void internal_set_property (SCM, SCM val);
30 SCM get_property_alist (bool mutble) const;
31 bool internal_is_music_type (SCM) const;
32 int duration_log () const;
34 DECLARE_SCHEME_CALLBACK (relative_callback, (SCM, SCM));
35 Pitch to_relative_octave (Pitch);
36 Pitch generic_to_relative_octave (Pitch);
38 Moment get_length () const;
39 Moment start_mom () const;
42 /// Transpose, with the interval central C to #p#
43 void transpose (Pitch p);
45 /// Scale the music in time by #factor#.
46 void compress (Moment factor);
49 DECLARE_SMOBS (Music,);
50 SCM immutable_property_alist_;
51 SCM mutable_property_alist_;
55 friend SCM ly_extended_make_music (SCM, SCM);
58 DECLARE_TYPE_P (Music);
59 DECLARE_UNSMOB (Music, music);
61 Music *make_music_by_name (SCM sym);
62 SCM ly_music_deep_copy (SCM);