X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fprob.hh;h=a9a485b5502642924d8610e352ec7b2967b3d2d6;hb=ef9512388b15e1e5e2b3592299ffe489ac43abb4;hp=9f6ad9609a080e5c7567944c39607781edcb88a7;hpb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;p=lilypond.git diff --git a/lily/include/prob.hh b/lily/include/prob.hh index 9f6ad9609a..a9a485b550 100644 --- a/lily/include/prob.hh +++ b/lily/include/prob.hh @@ -20,6 +20,7 @@ #ifndef PROPERTY_OBJECT_HH #define PROPERTY_OBJECT_HH +#include "pitch.hh" #include "stencil.hh" #include "virtual-methods.hh" @@ -34,10 +35,10 @@ class Prob : public Smob { public: - int print_smob (SCM, scm_print_state *); - SCM mark_smob (); + int print_smob (SCM, scm_print_state *) const; + SCM mark_smob () const; static SCM equal_p (SCM, SCM); - static const char type_p_name_[]; + static const char * const type_p_name_; virtual ~Prob (); private: DECLARE_CLASSNAME (Prob); @@ -61,6 +62,12 @@ public: SCM internal_get_property (SCM sym) const; void instrumented_set_property (SCM, SCM, const char *, int, const char *); void internal_set_property (SCM sym, SCM val); + + // Needed in both Music and Stream_event + // For technical reasons defined in lily/music.cc + // + /// Transpose, with the interval central C to #p# + void transpose (Pitch p); };