2 music.hh -- declare Music
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
14 #include "virtual-methods.hh"
15 #include "minterval.hh"
16 #include "lily-proto.hh"
20 /** Music is anything that has duration and supports both time compression and
23 In Lily, everything that can be thought to have a length and a pitch
24 (which has a duration which can be transposed) is considered "music",
26 Music is hierarchical:
33 Input *origin () const;
34 void set_spot (Input);
36 SCM get_mus_property (const char*) const;
37 SCM get_mus_property (SCM) const;
38 void set_mus_property (const char * , SCM val);
39 void set_immutable_mus_property (const char * , SCM val);
40 void set_immutable_mus_property (SCM key, SCM val);
41 void set_mus_property (SCM , SCM val);
42 void set_mus_pointer (const char*, SCM val);
43 SCM remove_mus_property (const char* nm);
45 virtual Musical_pitch to_relative_octave (Musical_pitch);
47 /// The duration of this piece of music
48 virtual Moment length_mom () const;
51 /// Transpose, with the interval central C to #p#
52 virtual void transpose (Musical_pitch p);
54 /// Scale the music in time by #factor#.
55 virtual void compress (Moment factor);
56 VIRTUAL_COPY_CONS(Music);
57 Music (Music const &m);
60 virtual void do_print() const;
61 DECLARE_SMOBS(Music,);
62 SCM immutable_property_alist_;
63 SCM mutable_property_alist_;
68 Music * unsmob_music (SCM);