Skip to content

Commit 49b16f5

Browse files
committed
Plugin API: Expose MU4 properties
1 parent 47318dc commit 49b16f5

File tree

6 files changed

+1471
-102
lines changed

6 files changed

+1471
-102
lines changed

src/engraving/api/v1/apitypes.h

Lines changed: 860 additions & 42 deletions
Large diffs are not rendered by default.

src/engraving/api/v1/cursor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ void Cursor::add(EngravingItem* wrapped)
291291
case ElementType::TREMOLO_SINGLECHORD:
292292
case ElementType::TREMOLO_TWOCHORD:
293293
case ElementType::CHORDLINE:
294+
case ElementType::ORNAMENT:
294295
case ElementType::ARTICULATION: {
295296
mu::engraving::EngravingItem* curElement = currentElement();
296297
if (curElement->isChord()) {

src/engraving/api/v1/elements.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,13 @@ bool Note::isChildAllowed(mu::engraving::ElementType elementType)
113113
case ElementType::TEXT:
114114
case ElementType::BEND:
115115
case ElementType::TIE:
116+
case ElementType::PARTIAL_TIE:
117+
case ElementType::LAISSEZ_VIB:
116118
case ElementType::ACCIDENTAL:
117119
case ElementType::TEXTLINE:
120+
case ElementType::NOTELINE:
118121
case ElementType::GLISSANDO:
122+
case ElementType::HAMMER_ON_PULL_OFF:
119123
return true;
120124
default:
121125
return false;

0 commit comments

Comments
 (0)