2 input-staff.cc -- implement Input_staff
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
11 #include "input-music.hh"
12 #include "input-staff.hh"
14 #include "complex-staff.hh"
15 #include "lyric-staff.hh"
20 Input_staff::Input_staff(String s)
27 Input_staff::add(Input_music*m)
29 music_.bottom().add(m);
33 Input_staff::parse(Score*score_l)
36 if (type == "melodic")
37 p = new Complex_staff;
38 else if (type == "lyric")
41 error( "Unknown staff-type `" + type +"\'", defined_ch_c_l_ );
45 p->score_l_ = score_l;
47 for (iter_top(music_,i); i.ok(); i++) {
48 Voice_list vl = i->convert();
54 Input_staff::Input_staff(Input_staff const&s)
56 for (iter_top(s.music_,i); i.ok(); i++)
58 defined_ch_c_l_ = s.defined_ch_c_l_;
63 Input_staff::print() const
66 mtor << "Input_staff {\n";
67 for (iter_top(music_,i); i.ok(); i++)
72 Input_staff::~Input_staff()