mirror of
https://github.com/azahar-emu/soundtouch
synced 2025-11-07 07:30:02 +01:00
Increased "climbcount" to improve peak detection
This commit is contained in:
parent
e5a0079b6a
commit
6fc0dd1867
@ -132,7 +132,7 @@ int PeakFinder::findGround(const float *data, int peakpos, int direction) const
|
|||||||
{
|
{
|
||||||
// going uphill, increase climbing counter
|
// going uphill, increase climbing counter
|
||||||
climb_count ++;
|
climb_count ++;
|
||||||
if (climb_count > 5) break; // we've been climbing too long => it's next uphill => quit
|
if (climb_count >= 10) break; // we've been climbing too long => it's next uphill => quit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return lowpos;
|
return lowpos;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user