|
@@ -22,11 +22,24 @@ export default defineComponent({
|
|
|
|
|
|
// 根据音符构造小节信息
|
|
// 根据音符构造小节信息
|
|
const createMeasureList = (notes: Array<any>) => {
|
|
const createMeasureList = (notes: Array<any>) => {
|
|
- let arr = [];
|
|
|
|
- const preMeasureNumber = 1;
|
|
|
|
|
|
+ let measureList = [];
|
|
|
|
+ let addNum = 1;
|
|
|
|
+ const preMeasureIndex = 0;
|
|
for (let index = 0; index < notes.length; index++) {
|
|
for (let index = 0; index < notes.length; index++) {
|
|
const note = notes[index];
|
|
const note = notes[index];
|
|
-
|
|
|
|
|
|
+ const { measureRenderIndex, frequencyList, dontEvaluating, duration } = notes[index];
|
|
|
|
+ if (index === 0) {
|
|
|
|
+ measureList.push({
|
|
|
|
+ MeasureNumberXML: measureRenderIndex + 1,
|
|
|
|
+ frequencyList,
|
|
|
|
+ duration: duration / 1000,
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ if ( measureRenderIndex ) {
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|