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

Method GetStepsPerMeasure

Source/Transport.cpp:506–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506int Transport::GetStepsPerMeasure(ITimeListener* listener)
507{
508 TransportListenerInfo* info = GetListenerInfo(listener);
509 if (info != nullptr)
510 {
511 if (info->mInterval == kInterval_CustomDivisor)
512 return info->mCustomDivisor;
513 return CountInStandardMeasure(info->mInterval) * GetTimeSigTop() / GetTimeSigBottom();
514 }
515 TheSynth->LogEvent("error: GetStepsPerMeasure() called with unregistered listener", kLogEventType_Error);
516 return 8;
517}
518
519int Transport::GetSyncedStep(double time, ITimeListener* listener, const TransportListenerInfo* listenerInfo, int length)
520{

Callers 9

UpdateNumMeasuresMethod · 0.80
StepMethod · 0.80
StepMethod · 0.80
StepMethod · 0.80
GetArpIndexMethod · 0.80
StepMethod · 0.80
GoMethod · 0.80
StepMethod · 0.80
StepMethod · 0.80

Calls 1

LogEventMethod · 0.80

Tested by 1

StepMethod · 0.64