Skip to content
Snippets Groups Projects
Commit 465b0fc1 authored by jsiegle's avatar jsiegle
Browse files

Updated PhaseDetector

parent b4fe078b
Branches
Tags
No related merge requests found
......@@ -117,7 +117,8 @@ void PhaseDetector::process(AudioSampleBuffer &buffer,
numPeakIntervals++;
// entering falling phase (just reached peak)
addEvent(events, TTL, i, 1, 3);
if (canBeTriggered)
addEvent(events, TTL, i, 1, 3);
peakIntervals[numPeakIntervals % NUM_INTERVALS] = nSamplesSinceLastPeak;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment