diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-04-18 14:28:45 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-04-18 14:28:45 +0200 |
commit | aaef1169830abac6d3ece8a378fd09d690c4afbe (patch) | |
tree | 96da91d3d649f6000b2342af97a928943b806dbc /dgedit/canvastoolselections.cc | |
parent | 68e4647e565519c57d76b95806dd9431a4ecfbb1 (diff) |
Increase 'hold' value in auto detection.
Diffstat (limited to 'dgedit/canvastoolselections.cc')
-rw-r--r-- | dgedit/canvastoolselections.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dgedit/canvastoolselections.cc b/dgedit/canvastoolselections.cc index 5967a83..8218172 100644 --- a/dgedit/canvastoolselections.cc +++ b/dgedit/canvastoolselections.cc @@ -273,11 +273,11 @@ void CanvasToolSelections::doAutoCreateSelections(bool preview) from++; } - int minsize = 100; // attack. + int hold = 1000; // hold in number of samples int to = i; float runavg = fabs(data[from]); while((runavg > noise_floor || - to < from + minsize) && + to < from + hold) && to < (int)size) { double p = 0.9; runavg = runavg * p + fabs(data[to]) * (1 - p); |