Skip to content

Commit

Permalink
Directly enter percusion notes to stave with mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
mathesoncalum committed Jan 10, 2025
1 parent fdbf23d commit da5ed71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/engraving/dom/noteentry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "part.h"
#include "range.h"
#include "score.h"
#include "shadownote.h"
#include "slur.h"
#include "staff.h"
#include "stringdata.h"
Expand Down Expand Up @@ -393,6 +394,12 @@ Ret Score::putNote(const Position& p, bool replace)
m_is.setTrack(p.staffIdx * VOICES + m_is.voice());
m_is.setSegment(s);

const ShadowNote* sn = shadowNote();
if (sn && sn->visible() && sn->drumNotePitch() > -1) {
m_is.setDrumNote(sn->drumNotePitch());
m_is.setVoice(sn->voice());
}

if (mu::engraving::Excerpt* excerpt = score()->excerpt()) {
const TracksMap& tracks = excerpt->tracksMapping();

Expand Down

0 comments on commit da5ed71

Please sign in to comment.