| 406 | |
| 407 | |
| 408 | float *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 |
no test coverage detected