|
@@ -416,7 +416,7 @@ export class StaveNote extends StemmableNote {
|
|
|
constructor(noteStruct) {
|
|
|
super(noteStruct);
|
|
|
this.setAttribute('type', 'StaveNote');
|
|
|
-
|
|
|
+ console.log('stavenote.js~')
|
|
|
this.keys = noteStruct.keys;
|
|
|
this.clef = noteStruct.clef;
|
|
|
this.octave_shift = noteStruct.octave_shift;
|
|
@@ -463,7 +463,10 @@ export class StaveNote extends StemmableNote {
|
|
|
if (noteStruct.auto_stem) {
|
|
|
this.autoStem();
|
|
|
} else {
|
|
|
- this.setStemDirection(noteStruct.stem_direction);
|
|
|
+ // 自定义符杆朝向
|
|
|
+ const DYMusicalOrientation = window.DYMusicalOrientation
|
|
|
+ const direction = DYMusicalOrientation !== undefined ? DYMusicalOrientation : noteStruct.stem_direction
|
|
|
+ this.setStemDirection(direction);
|
|
|
}
|
|
|
this.reset();
|
|
|
this.buildFlag();
|