#include "debug.hh"
#include "inputmusic.hh"
#include "voice.hh"
+#include "musicalrequest.hh"
void
Simple_music::add(Voice_element*v)
}
Moment
-Simple_music::length()
+Simple_music::length()const
{
return voice_.last();
}
}
Voice_list
-Simple_music::convert()
+Simple_music::convert()const
{
Voice_list l;
l.bottom().add(new Voice(voice_));
mtor << "}\n";
}
-/****************/
+/* *************** */
void
Complex_music::add(Input_music*v)
for (iter_top(s.elts,i); i.ok(); i++)
add(i->clone());
}
-
-/****************************************************************/
+void
+Complex_music::set_default_group(String g)
+{
+ for (iter_top(elts,i); i.ok(); i++)
+ i->set_default_group(g);
+}
+/* *************************************************************** */
void
Music_voice::print() const
}
Moment
-Music_voice::length()
+Music_voice::length()const
{
- Moment l = 0.0;
+ Moment l = 0;
for (iter_top(elts,i); i.ok(); i++)
l += i->length();
Voice_list
-Music_voice::convert()
+Music_voice::convert()const
{
Voice_list l;
- Moment here = 0.0;
+ Moment here = 0;
for (iter_top(elts,i); i.ok(); i++) {
Moment len = i->length();
-/****************/
+/* *************** */
void
Music_general_chord::add_elt(Voice_element*v)
}
Moment
-Music_general_chord::length()
+Music_general_chord::length()const
{
Moment l =0.0;
}
Voice_list
-Music_general_chord::convert()
+Music_general_chord::convert()const
{
Voice_list l;
for (iter_top(elts,i); i.ok(); i++) {
return l;
}
+/* *************** */
+
+void
+Multi_voice_chord::set_default_group(String g)
+{
+ int j=0;
+ for (iter_top(elts, i); i.ok(); i++) {
+ i->set_default_group(g + String(j));
+ j++;
+ }
+}
+
-/****************/
+/* *************** */
void
Voice_list::translate_time(Moment x)