// if we want chunks that are in the sweetspot
if (inSweetSpot && insideThreshold)
{
// make a new EDL chunk from the current features chunk
EDLChunk newChunk = new EDLChunk(ch, currTime);
outFile.chunks.add(newChunk);
currTime += ch.length;
// System.out.println("inSweetSpot && insideThreshold, so
// writing chunk!");
}
// if we want chunks that are not in the sweetspot
else if (!inSweetSpot && !insideThreshold)
{
// make a new EDL chunk from the current features chunk
EDLChunk newChunk = new EDLChunk(ch, currTime);
outFile.chunks.add(newChunk);
currTime += ch.length;
// System.out.println("!inSweetSpot && !insideThreshold, so
// writing chunk!");
}