~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to libs/evoral/src/Control.cpp

  • Committer: Package Import Robot
  • Author(s): Adrian Knoth
  • Date: 2014-02-25 14:13:18 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140225141318-y760kgxso78rduuf
Tags: 3.5.357~dfsg-1
* Imported Upstream version 3.5.357~dfsg
* Critical bugfix release. All users are recommended to upgrade.
* Details: https://community.ardour.org/node/8015

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
#include <iostream>
 
20
 
 
21
#include "pbd/stacktrace.h"
 
22
 
20
23
#include "evoral/Control.hpp"
21
24
#include "evoral/ControlList.hpp"
22
25
 
49
52
Control::set_double (double value, double frame, bool to_list)
50
53
{
51
54
        _user_value = value;
 
55
        
 
56
        /* if we're in a write pass, the automation watcher will determine the
 
57
           values and add them to the list, so we we don't need to bother.
 
58
        */
52
59
 
53
 
        if (to_list) {
54
 
                _list->add (frame, value);
 
60
        if (to_list && !_list->in_write_pass()) {
 
61
                _list->add (frame, value, false);
55
62
        }
56
63
}
57
64