diff --git a/include/automation_recorder.h b/include/automation_recorder.h index da3ea42da..9434ee3c6 100644 --- a/include/automation_recorder.h +++ b/include/automation_recorder.h @@ -4,7 +4,6 @@ * controllers and creates automation TCOs if automation * recording is on. * - * Copyright (c) 2008-2009 Tobias Doerffel * Copyright (c) 2009-2009 Andrew Kelley * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net diff --git a/src/core/automation_recorder.cpp b/src/core/automation_recorder.cpp index 492160149..0e12ea9c1 100644 --- a/src/core/automation_recorder.cpp +++ b/src/core/automation_recorder.cpp @@ -4,7 +4,6 @@ * controller and records automation if automation * recording is on. * - * Copyright (c) 2008-2009 Tobias Doerffel * Copyright (c) 2009-2009 Andrew Kelley * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net @@ -90,7 +89,7 @@ void AutomationRecorder::controllerEvent( data.pat->changeLength( song_pos - data.pat->startPosition() ); // now draw a line from the last one to this one // TODO: make it smooth (draw line instead of insert value) - data.pat->putValue( song_pos, _val ); + data.pat->putValue( song_pos - data.pat->startPosition(), _val, false ); } else @@ -120,7 +119,8 @@ void AutomationRecorder::controllerEvent( } // add first value TODO: make sure this is absolute - data.pat->putValue( song_pos, _val ); + data.pat->putValue( + song_pos - data.pat->startPosition(), _val, false ); // insert into map data.seen = true;