MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Go

Method Go

Source/DataProvider.cpp:227–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void DataProvider::Go(double time)
228{
229 mControlCable->AddHistoryEvent(time, true);
230 mControlCable->AddHistoryEvent(time + 15, false);
231
232 std::vector<IDrawableModule*> modules = { nullptr };
233 int counter = 0;
234
235 switch (mTypeSelectorIndex)
236 {
237 //Transport
238 default:
239 case 0:
240 mValue = TheTransport->GetMeasure(time);
241 break;
242 case 1:
243 mValue = TheTransport->GetMeasureTime(time);
244 break;
245 case 2:
246 mValue = TheTransport->GetMeasurePos(time);
247 break;
248 case 3:
249 mValue = TheTransport->GetMeasureFraction(mInterval);
250 break;
251 case 4:
252 mValue = TheTransport->GetDuration(mInterval);
253 break;
254 case 5:
255 mValue = TheTransport->GetStepsPerMeasure(this);
256 break;
257 case 6:
258 mValue = TheTransport->GetSwing();
259 break;
260 case 7:
261 mValue = TheTransport->GetTempo();
262 break;
263 case 8:
264 mValue = TheTransport->GetTimeSigTop();
265 break;
266 case 9:
267 mValue = TheTransport->GetTimeSigBottom();
268 break;
269 case 10:
270 mValue = TheTransport->MsPerBar();
271 break;
272 case 11:
273 mValue = TheTransport->GetEventLookaheadMs();
274 break;
275 //Audio
276 case 12:
277 mValue = gSampleRate;
278 break;
279 case 13:
280 mValue = gBufferSize;
281 break;
282 case 14:
283 mValue = gSampleRateMs;
284 break;

Callers

nothing calls this directly

Calls 15

ofToDoubleFunction · 0.85
ofSplitStringFunction · 0.85
AddHistoryEventMethod · 0.80
GetMeasureMethod · 0.80
GetMeasureTimeMethod · 0.80
GetMeasureFractionMethod · 0.80
GetDurationMethod · 0.80
GetStepsPerMeasureMethod · 0.80
GetSwingMethod · 0.80
GetTimeSigTopMethod · 0.80
GetTimeSigBottomMethod · 0.80
MsPerBarMethod · 0.80

Tested by

no test coverage detected