OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 Stream_event *to_event () const; | 48 Stream_event *to_event () const; |
49 | 49 |
50 DECLARE_SCHEME_CALLBACK (relative_callback, (SCM, SCM)); | 50 DECLARE_SCHEME_CALLBACK (relative_callback, (SCM, SCM)); |
51 Pitch to_relative_octave (Pitch); | 51 Pitch to_relative_octave (Pitch); |
52 Pitch generic_to_relative_octave (Pitch); | 52 Pitch generic_to_relative_octave (Pitch); |
53 Moment get_length () const; | 53 Moment get_length () const; |
54 Moment start_mom () const; | 54 Moment start_mom () const; |
55 void print () const; | 55 void print () const; |
56 | 56 |
57 /// Scale the music in time by #factor#. | 57 /// Scale the music in time by #factor#. |
58 void compress (Moment factor); | 58 void compress (Rational factor); |
59 | 59 |
60 // Broadcast the event in a context's event-source. | 60 // Broadcast the event in a context's event-source. |
61 void send_to_context (Context *c); | 61 void send_to_context (Context *c); |
62 | 62 |
63 DECLARE_SCHEME_CALLBACK (duration_length_callback, (SCM)); | 63 DECLARE_SCHEME_CALLBACK (duration_length_callback, (SCM)); |
64 | 64 |
65 protected: | 65 protected: |
66 virtual SCM copy_mutable_properties () const; | 66 virtual SCM copy_mutable_properties () const; |
67 virtual void type_check_assignment (SCM, SCM) const; | 67 virtual void type_check_assignment (SCM, SCM) const; |
68 virtual void derived_mark () const; | 68 virtual void derived_mark () const; |
69 protected: | 69 protected: |
70 friend SCM ly_extended_make_music (SCM, SCM); | 70 friend SCM ly_extended_make_music (SCM, SCM); |
71 }; | 71 }; |
72 | 72 |
73 Music *make_music_by_name (SCM sym); | 73 Music *make_music_by_name (SCM sym); |
74 SCM music_deep_copy (SCM m); | 74 SCM music_deep_copy (SCM m); |
75 void set_origin (SCM m, SCM origin); | 75 void set_origin (SCM m, SCM origin); |
76 | 76 |
77 SCM ly_camel_case_2_lisp_identifier (SCM name_sym); | 77 SCM ly_camel_case_2_lisp_identifier (SCM name_sym); |
78 | 78 |
79 extern SCM ly_music_p_proc; | 79 extern SCM ly_music_p_proc; |
80 | 80 |
81 #endif /* MUSIC_HH */ | 81 #endif /* MUSIC_HH */ |
OLD | NEW |