@@ -112,21 +112,6 @@ extern "C"
112
112
return tick / resolution;
113
113
}
114
114
115
- PACKAGE_API int ConvertSecondsToTicksInternal (float seconds, int resolution,
116
- int *bpmChangesKeys,
117
- int *bpmChangesValues,
118
- int bpmChangesSize)
119
- {
120
- std::map<int , int > bpmChanges;
121
-
122
- for (auto i = 0 ; i < bpmChangesSize; i += 1 )
123
- {
124
- bpmChanges[bpmChangesKeys[i]] = bpmChangesValues[i];
125
- }
126
-
127
- return ConvertSecondsToTicks (seconds, resolution, bpmChanges);
128
- }
129
-
130
115
PACKAGE_API bool IsOnTheBeat (float bpm, float currentTime)
131
116
{
132
117
auto beatInterval = SECONDS_PER_MINUTE / bpm;
@@ -154,34 +139,6 @@ extern "C"
154
139
{
155
140
return std::clamp (((v - a) / (b - a)), 0 .0f , 1 .0f );
156
141
}
157
-
158
- PACKAGE_API BeatBar *
159
- CalculateBeatBarsInternal (int *bpmChangesKeys, int *bpmChangesValues,
160
- int bpmChangesSize, int resolution, int ts,
161
- bool includeHalfNotes, int *outSize)
162
- {
163
- auto bpmChanges = std::map<int , int >();
164
-
165
- for (auto i = 0 ; i < bpmChangesSize; i += 1 )
166
- {
167
- bpmChanges[bpmChangesKeys[i]] = bpmChangesValues[i];
168
- }
169
-
170
- auto internalBeatBars =
171
- CalculateBeatBars (bpmChanges, resolution, ts, includeHalfNotes);
172
-
173
- *outSize = internalBeatBars.size ();
174
-
175
- auto beatBars =
176
- (BeatBar *)malloc (internalBeatBars.size () * sizeof (BeatBar));
177
-
178
- for (auto i = 0 ; i < internalBeatBars.size (); i += 1 )
179
- {
180
- beatBars[i] = internalBeatBars[i];
181
- }
182
-
183
- return beatBars;
184
- }
185
142
}
186
143
187
144
std::string Trim (const char *contents)
0 commit comments