Skip to content
Snippets Groups Projects
Commit c04e7f6f authored by jvoigts's avatar jvoigts
Browse files

slightly modified phasedetecor behaviour

Skip this commit to avoid changing current behaviour
parent 09dbc5cf
No related branches found
No related tags found
No related merge requests found
......@@ -149,9 +149,13 @@ void PhaseDetector::process(AudioSampleBuffer& buffer,
numPeakIntervals++;
//std::cout << "GOT EVENT." << std::endl;
// entering falling phase (just reached peak or trough)
if (true)
addEvent(events, TTL, i, 1, 3);
//if (true)
addEvent(events, TTL, i, 1, 3);
peakIntervals[numPeakIntervals % NUM_INTERVALS] = nSamplesSinceLastPeak;
......@@ -168,10 +172,10 @@ void PhaseDetector::process(AudioSampleBuffer& buffer,
// either rising or falling
nSamplesSinceLastPeak++;
// if (nSamplesSinceLastPeak == 100)
// {
// addEvent(events, TTL, i, 0, 3);
// }
if (nSamplesSinceLastPeak == 500)
{
addEvent(events, TTL, i, 0, 3);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment