plectrum

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 938999ce0c8efedc0bcd95e1d48da792d4098217
parent b82e8e76e4a7dad553cd5be58b4dd52f0b96242d
Author: gstraube <gstraube@mailbox.org>
Date:   Mon, 30 Oct 2017 13:33:03 +0100

Increase buffer size and overlap

Diffstat:
Mapp/src/main/java/com/github/cythara/ListenerFragment.java | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/app/src/main/java/com/github/cythara/ListenerFragment.java b/app/src/main/java/com/github/cythara/ListenerFragment.java @@ -12,7 +12,6 @@ import java.util.List; import be.tarsos.dsp.AudioDispatcher; import be.tarsos.dsp.AudioEvent; -import be.tarsos.dsp.pitch.FastYin; import be.tarsos.dsp.pitch.PitchDetectionHandler; import be.tarsos.dsp.pitch.PitchDetectionResult; import be.tarsos.dsp.pitch.PitchProcessor; @@ -31,8 +30,8 @@ public class ListenerFragment extends Fragment { private static final int SAMPLE_RATE = 44100; - private static final int BUFFER_SIZE = FastYin.DEFAULT_BUFFER_SIZE; - private static final int OVERLAP = FastYin.DEFAULT_OVERLAP; + private static final int BUFFER_SIZE = 1024 * 4; + private static final int OVERLAP = 768 * 4; private static final int MIN_ITEMS_COUNT = 15; private static List<PitchDifference> pitchDifferences = new ArrayList<>();