commit 516937b76f2cb9be514640d82e46521aac858b0d parent da599920834cb86f77c80b26e35c71493c36d148 Author: michiboo <[email protected]> Date: Mon, 1 Jul 2019 13:02:58 +0300 changes to trigger Diffstat:
M | src/Synth/WatchPoint.cpp | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Synth/WatchPoint.cpp b/src/Synth/WatchPoint.cpp @@ -183,7 +183,7 @@ void WatchManager::satisfy(const char *id, float *f, int n) sample_list[selected]++; } else{ - if(trigger[selected] || f[i] >= 0.03){ + if(trigger[selected] || f[i-1] <= 0 && f[i] > 0){ data_list[selected][sample_list[selected]] = f[i]; sample_list[selected]++; trigger[selected] = true;