2022-02-09 18:30:49 -05:00
|
|
|
#include "classicmode/classicnote.h"
|
2021-09-14 15:02:23 -04:00
|
|
|
|
2021-09-27 23:48:06 -04:00
|
|
|
ClassicNote::ClassicNote(NoteInitializer &&init) :
|
2021-09-14 15:02:23 -04:00
|
|
|
Note(init.perfect_offset),
|
2022-02-09 18:30:49 -05:00
|
|
|
_state(State::NONE)
|
2021-09-27 23:48:06 -04:00
|
|
|
{}
|
2021-09-14 15:02:23 -04:00
|
|
|
|
2022-02-05 20:33:09 -05:00
|
|
|
void ClassicNote::setState(ClassicNote::State state) noexcept
|
2021-09-14 15:02:23 -04:00
|
|
|
{
|
2022-02-05 20:33:09 -05:00
|
|
|
_state = state;
|
2021-09-14 15:02:23 -04:00
|
|
|
}
|
|
|
|
|
2022-02-05 20:33:09 -05:00
|
|
|
auto ClassicNote::getState() const noexcept -> State
|
2021-09-14 15:02:23 -04:00
|
|
|
{
|
2022-02-05 20:33:09 -05:00
|
|
|
return _state;
|
2021-09-14 15:02:23 -04:00
|
|
|
}
|