(staff_eligible): new function.
[lilypond.git] / lily / simultaneous-music.cc
blob97933a5dbe05b44247565ba36066de3735684dd3
1 /*
2 simultaneous-music.cc -- implement Simultaneous_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2003 Han-Wen Nienhuys <hanwen@xs4all.nl>
8 */
10 #include "input.hh"
11 #include "moment.hh"
12 #include "pitch.hh"
13 #include "music-list.hh"
14 #include "scm-option.hh"
16 Moment
17 Simultaneous_music::get_length () const
19 return Music_sequence::maximum_length (get_mus_property ("elements"));
22 Moment
23 Simultaneous_music::start_mom () const
25 return Music_sequence::minimum_start (get_mus_property ("elements"));
28 Simultaneous_music::Simultaneous_music()
33 Pitch
34 Simultaneous_music::to_relative_octave (Pitch p)
36 if (lily_1_8_relative)
37 lily_1_8_compatibility_used = true;
39 return music_list_to_relative (music_list(), p, lily_1_8_relative);
42 ADD_MUSIC (Simultaneous_music);
44 Pitch
45 Event_chord::to_relative_octave (Pitch p)
47 return music_list_to_relative (music_list (), p, true);
50 ADD_MUSIC(Event_chord);