@@ -11,7 +11,7 @@ using RhythmGameUtilities;
11
11
const int seconds = 5 ;
12
12
const int resolution = 192 ;
13
13
14
- var bpmChanges = new Tempo []
14
+ var tempoChanges = new Tempo []
15
15
{
16
16
new () { Position = 0 , BPM = 88000 }, new () { Position = 3840 , BPM = 112000 },
17
17
new () { Position = 9984 , BPM = 89600 }, new () { Position = 22272 , BPM = 112000 },
@@ -21,7 +21,7 @@ var bpmChanges = new Tempo[]
21
21
22
22
var timeSignatureChanges = new TimeSignature [] { new () { Position = 0 , Numerator = 4 , Denominator = 2 } };
23
23
24
- var ticks = Utilities .ConvertSecondsToTicks (seconds , resolution , bpmChanges , timeSignatureChanges );
24
+ var ticks = Utilities .ConvertSecondsToTicks (seconds , resolution , tempoChanges , timeSignatureChanges );
25
25
26
26
Console .WriteLine (ticks ); // 1408
27
27
```
@@ -40,13 +40,13 @@ int main()
40
40
const int seconds = 5;
41
41
const int resolution = 192;
42
42
43
- std::vector<Tempo> bpmChanges = {
43
+ std::vector<Tempo> tempoChanges = {
44
44
{0, 88000}, {3840, 112000}, {9984, 89600}, {22272, 112000},
45
45
{33792, 111500}, {34560, 112000}, {42240, 111980}};
46
46
47
47
std::vector<TimeSignature> timeSignatureChanges = {{0, 4, 2}};
48
48
49
- auto ticks = ConvertSecondsToTicks(seconds, resolution, bpmChanges ,
49
+ auto ticks = ConvertSecondsToTicks(seconds, resolution, tempoChanges ,
50
50
timeSignatureChanges);
51
51
52
52
std::cout << ticks << std::endl; // 1408
@@ -64,7 +64,7 @@ func _ready() -> void:
64
64
var seconds = 5
65
65
var resolution = 192
66
66
67
- var bpm_changes = [
67
+ var tempo_changes = [
68
68
{"position": 0, "bpm": 88000 },
69
69
{"position": 3840, "bpm": 112000 },
70
70
{"position": 9984, "bpm": 89600 },
@@ -78,7 +78,7 @@ func _ready() -> void:
78
78
{"position": 0, "numerator": 4, "denominator": 2 }
79
79
]
80
80
81
- var current_position = rhythm_game_utilities.convert_seconds_to_ticks(seconds, resolution, bpm_changes , time_signature_changes)
81
+ var current_position = rhythm_game_utilities.convert_seconds_to_ticks(seconds, resolution, tempo_changes , time_signature_changes)
82
82
83
83
print(current_position) # 1408
84
84
```
0 commit comments