|
@@ -794,6 +794,25 @@ export const transferJianNote = (measure: any, divisions: number, preBeats: numb
|
|
|
for (const note of notes) {
|
|
|
const noteType = note.getElementsByTagName("type")?.[0]?.textContent || '';
|
|
|
if (noteType === 'whole' || noteType === 'half') {
|
|
|
+ // 4/4拍
|
|
|
+ if (preBeats === 4 && preBeatType === 4) {
|
|
|
+
|
|
|
+ } else if (preBeats === 3 && preBeatType === 4) {
|
|
|
+
|
|
|
+ } else if (preBeats === 3 && preBeatType === 8) {
|
|
|
+
|
|
|
+ } else if (preBeats === 3 && preBeatType === 8) {
|
|
|
+
|
|
|
+ } else if (preBeats === 5 && preBeatType === 8) {
|
|
|
+
|
|
|
+ } else if (preBeats === 6 && preBeatType === 8) {
|
|
|
+
|
|
|
+ } else if (preBeats === 9 && preBeatType === 8) {
|
|
|
+
|
|
|
+ } else if (preBeats === 12 && preBeatType === 8) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
const maxNumber = noteType === 'half' ? 2 : preBeats / multipleXs;
|
|
|
if (!Number.isInteger(maxNumber)) {
|
|
|
return;
|