@@ -12,15 +12,9 @@ public class MA2Generator : IGenerator
1212 private List < MA2Line > lines = [ ] ;
1313 private readonly List < Alert > alerts = [ ] ;
1414
15- public int ClockCount = 4 ;
1615 // 除非你知道你在做什么,不然以下两个变量请勿修改!
1716 public int MA2Version = 105 ;
1817 public int RSL = 384 ;
19-
20- public MA2Generator ( int clockCount = 4 )
21- {
22- ClockCount = clockCount ;
23- }
2418
2519 private string headTemplate = @"VERSION 0.00.00 {0}
2620FES_MODE {1}
@@ -87,7 +81,7 @@ private void AddTap(Tap tap, int bar, int tick)
8781 string head = string . Format ( headTemplate ,
8882 $ "{ MA2Version / 100 } .{ MA2Version % 100 : D2} .00", chart . IsUtage ? 1 : 0 ,
8983 bpmStatistics . Item1 , bpmStatistics . Item2 , bpmStatistics . Item3 , bpmStatistics . Item4 ,
90- RSL , 96 * ClockCount , Utils . AppVersion ) ;
84+ RSL , 96 * chart . ClockCount , Utils . AppVersion ) ;
9185 result . Append ( head ) ;
9286
9387 // bpm段
@@ -96,7 +90,7 @@ private void AddTap(Tap tap, int bar, int tick)
9690 var ( bar , tick ) = BT ( bpm . Time ) ;
9791 result . AppendLine ( $ "BPM\t { bar } \t { tick } \t { bpm . Bpm : F3} ") ;
9892 }
99- result . AppendLine ( $ "MET\t 0\t 0\t 4\t { ClockCount } ") ;
93+ result . AppendLine ( $ "MET\t 0\t 0\t 4\t { chart . ClockCount } ") ;
10094 result . AppendLine ( ) ;
10195
10296 // 主体:音符段
0 commit comments