MCPcopy Create free account
hub / github.com/Ableton/link / sampleAtTime

Method sampleAtTime

include/ableton/util/SampleTiming.hpp:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32struct SampleTiming
33{
34 double sampleAtTime(std::chrono::microseconds time) const
35 {
36 using namespace std::chrono;
37 return duration_cast<duration<double>>(time - mBufferBegin).count() * mSampleRate;
38 }
39
40 std::chrono::microseconds timeAtSample(const double sample) const
41 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected