MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / setNewTimeSeconds

Method setNewTimeSeconds

NeuralNote/Source/SynthController.cpp:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void SynthController::setNewTimeSeconds(double inNewTime)
114{
115 jassert(inNewTime >= 0);
116 mCurrentTime = inNewTime;
117 mCurrentSampleIndex = static_cast<int>(std::round(inNewTime * mSampleRate));
118 _updateCurrentEventIndex();
119 _sanitizeVoices();
120}
121
122double SynthController::getCurrentTimeSeconds() const
123{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected