void CMelody::setMelody(const std::string& melody) { clear(); stringstream ss(melody); string notestr; while(getline(ss,notestr,splitChar)) { CNote note; note.set(notestr); mNotes.push_back(note); } }