- Chord*v = new Request_chord;
- v->set_spot (here_input());
-
- v->add (rq);
-
- if (duration_p->type_i_ >= 2) {
- Stem_req * stem_req_p = new Stem_req();
- stem_req_p->duration_ = *duration_p;
-
- stem_req_p->set_spot (here_input());
- v->add (stem_req_p);
+ Simultaneous_music*v = new Request_chord;
+ v->set_spot (here_input ());
+
+ Chord chord (tonic, add_arr_p, sub_arr_p, inversion_p);
+
+ Tonic_req* t = new Tonic_req;
+ t->pitch_ = tonic;
+ v->add_music (t);
+
+ for (int i = 0; i < chord.pitch_arr_.size (); i++)
+ {
+ Musical_pitch p = chord.pitch_arr_[i];
+ Note_req* n = new Note_req;
+ n->pitch_ = p;
+ n->duration_ = d;
+ v->add_music (n);