const std::vector<ribi::Music::Note> ribi::Music::Scale::GetNotes() const noexcept { std::vector<Note> notes; Note cur = m_root; notes.push_back(cur); std::for_each(m_intervals.begin(),m_intervals.end(), [&cur,¬es](const int interval) { cur = Note( (cur.ToInt() + interval) % 12); notes.push_back(cur); } ); return notes; }
bool ribi::Music::operator<(const Note& lhs, const Note& rhs) noexcept { return lhs.ToInt() < rhs.ToInt(); }