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

Method valuesAfter

src/core/AutomationPattern.cpp:408–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406
407
408float *AutomationPattern::valuesAfter( const MidiTime & _time ) const
409{
410 timeMap::ConstIterator v = m_timeMap.lowerBound( _time );
411 if( v == m_timeMap.end() || (v+1) == m_timeMap.end() )
412 {
413 return NULL;
414 }
415
416 int numValues = (v+1).key() - v.key();
417 float *ret = new float[numValues];
418
419 for( int i = 0; i < numValues; i++ )
420 {
421 ret[i] = valueAt( v, i );
422 }
423
424 return ret;
425}
426
427
428

Callers 2

paintEventMethod · 0.80
paintEventMethod · 0.80

Calls 2

keyMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected