|
@@ -526,9 +526,16 @@ export class VoiceGenerator {
|
|
|
stringNumber, fretNumber, bends);
|
|
|
}
|
|
|
|
|
|
+ // 添加音符是否有附点信息
|
|
|
+ let isDotNote = false;
|
|
|
+ const noteDotDom: IXmlElement = node?.element("dot");
|
|
|
+ if (noteDotDom) {
|
|
|
+ isDotNote = true;
|
|
|
+ }
|
|
|
+
|
|
|
this.addNoteInfo(note, noteTypeXml, printObject, isCueNote, normalNotes,
|
|
|
displayStepUnpitched, displayOctaveUnpitched,
|
|
|
- noteheadColorXml, noteheadColorXml);
|
|
|
+ noteheadColorXml, noteheadColorXml, isDotNote);
|
|
|
note.TypeLength = typeDuration;
|
|
|
note.IsGraceNote = isGraceNote;
|
|
|
note.StemDirectionXml = stemDirectionXml; // maybe unnecessary, also in VoiceEntry
|
|
@@ -590,7 +597,7 @@ export class VoiceGenerator {
|
|
|
// common for "normal" notes and rest notes
|
|
|
private addNoteInfo(note: Note, noteTypeXml: NoteType, printObject: boolean, isCueNote: boolean, normalNotes: number,
|
|
|
displayStep: NoteEnum, displayOctave: number,
|
|
|
- noteheadColorXml: string, noteheadColor: string): void {
|
|
|
+ noteheadColorXml: string, noteheadColor: string, isDotNote?: boolean): void {
|
|
|
// common for normal notes and rest note
|
|
|
note.NoteTypeXml = noteTypeXml;
|
|
|
note.PrintObject = printObject;
|
|
@@ -603,6 +610,11 @@ export class VoiceGenerator {
|
|
|
// add TypeLength for rest notes like with Note?
|
|
|
// add IsGraceNote for rest notes like with Notes?
|
|
|
// add PlaybackInstrumentId for rest notes?
|
|
|
+ // 是否有附点
|
|
|
+ if (isDotNote) {
|
|
|
+ note.isDotNote = isDotNote
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|