MCPcopy Create free account
hub / github.com/LMMS/lmms / getBeatLen

Method getBeatLen

plugins/audio_file_processor/audio_file_processor.cpp:302–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301
302int audioFileProcessor::getBeatLen( NotePlayHandle * _n ) const
303{
304 const float freq_factor = BaseFreq / _n->frequency() *
305 Engine::mixer()->processingSampleRate() / Engine::mixer()->baseSampleRate();
306
307 return static_cast<int>( floorf( ( m_sampleBuffer.endFrame() - m_sampleBuffer.startFrame() ) * freq_factor ) );
308}
309
310
311

Callers

nothing calls this directly

Calls 4

mixerFunction · 0.85
frequencyMethod · 0.80
processingSampleRateMethod · 0.80
baseSampleRateMethod · 0.80

Tested by

no test coverage detected