diff --git a/TODO b/TODO index cbabc1646..4d42b3248 100644 --- a/TODO +++ b/TODO @@ -53,7 +53,8 @@ Andrew Kelley's todo: * load asdlol.mmpz. if you render it without playing it, or if you play it - the first time, you hear unwanted artifacts. + the first time, you hear unwanted artifacts. (solution: apply automation + before playing) * VST presets don't work. when you save a project, it doesn't even save what you did. diff --git a/src/core/automation_pattern.cpp b/src/core/automation_pattern.cpp index 604070914..dbea43a6d 100644 --- a/src/core/automation_pattern.cpp +++ b/src/core/automation_pattern.cpp @@ -150,33 +150,14 @@ midiTime automationPattern::length( void ) const midiTime automationPattern::putValue( const midiTime & _time, - const float _value, - const bool _quant_pos ) + const float _value, const bool _quant_pos ) { midiTime newTime = _quant_pos && engine::getAutomationEditor() ? - note::quantized( _time, - engine::getAutomationEditor()->quantization() ) : - _time; + note::quantized( _time, engine::getAutomationEditor()->quantization() ) + : _time; m_timeMap[newTime] = _value; - if( newTime == 0 ) - { - for( objectVector::iterator it = m_objects.begin(); - it != m_objects.end(); ) - { - if( *it ) - { - ( *it )->setValue( _value ); - ++it; - } - else - { - it = m_objects.erase( it ); - } - } - } - // just one automation value? if( m_timeMap.size() == 1 ) { @@ -544,3 +525,4 @@ void automationPattern::objectDestroyed( jo_id_t _id ) #include "moc_automation_pattern.cxx" +/* vim: set tw=0 noexpandtab: */