2 #include <Process/LayerPresenter.hpp>
4 #include <Midi/Commands/MoveNotes.hpp>
5 #include <Midi/MidiProcess.hpp>
7 #include <score/command/Dispatchers/SingleOngoingCommandDispatcher.hpp>
9 #include <nano_observer.hpp>
18 ,
public Nano::Observer
27 void setWidth(qreal width, qreal defaultWidth)
override;
28 void setHeight(qreal height)
override;
30 void putToFront()
override;
31 void putBehind()
override;
33 void on_zoomRatioChanged(ZoomRatio)
override;
35 void parentGeometryChanged()
override;
40 void on_deselectOtherNotes();
43 void on_noteChangeFinished(
NoteView& v);
44 void on_noteScaled(
const Note& note,
double newScale);
45 void on_requestVelocityChange(
const Note& note,
double velocityDelta);
46 void on_velocityChangeFinished();
47 void on_noteSelectionChanged(
NoteView*,
bool ok);
51 void on_noteAdded(
const Note&);
52 void on_noteRemoving(
const Note&);
53 void on_notesReplaced();
54 void on_drop(
const QPointF& pos,
const QMimeData&);
56 std::vector<Id<Note>> selectedNotes()
const;
59 std::vector<NoteView*> m_notes;
60 std::vector<NoteView*> m_selectedNotes;
65 std::optional<int> m_origMovePitch{};
66 std::optional<double> m_origMoveStart{};
70 QMenu& menu, QPoint pos, QPointF scenepos,
The Note class.
Definition: MidiNote.hpp:59
Definition: MidiNoteView.hpp:11
Definition: MidiPresenter.hpp:19
Definition: MidiProcess.hpp:15
Definition: MidiView.hpp:15
Definition: LayerPresenter.hpp:34
The SingleOngoingCommandDispatcher class.
Definition: SingleOngoingCommandDispatcher.hpp:17
Definition: ProcessContext.hpp:12