|
@@ -596,6 +596,7 @@ export default defineComponent({
|
|
|
message.warning("小节内音符总时值过长");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
handleCreateNote(
|
|
|
data.active.measureIndex,
|
|
|
data.active.noteIndex,
|
|
@@ -623,6 +624,18 @@ export default defineComponent({
|
|
|
noteIndex: indexStr[1],
|
|
|
isFirstChecked: false,
|
|
|
};
|
|
|
+ const beam = (abcElem.abselem as any).beam;
|
|
|
+ if (beam){
|
|
|
+ const elems: AbcElem[] = beam.elems;
|
|
|
+ if (elems.length){
|
|
|
+ const beatDuration = abcData.visualObj.getBeatLength();
|
|
|
+ const beamLength = elems.map((n) => n.duration).reduce((a, b) => a + b);
|
|
|
+ if (beamLength >= beatDuration) {
|
|
|
+ abcData.abc.measures[data.active.measureIndex].notes[data.active.noteIndex].segno = ' '
|
|
|
+ await handleResetRender();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
_abcElem = rangeHighlight(abcElem.startChar);
|
|
|
}
|