Mercurial > hg > silvet
diff src/Silvet.cpp @ 33:e08c330a761d
Drop the latency columns from the CQ start
author | Chris Cannam |
---|---|
date | Fri, 04 Apr 2014 13:43:51 +0100 |
parents | da54468cc452 |
children | 7d81407a2fd8 |
line wrap: on
line diff
--- a/src/Silvet.cpp Fri Apr 04 13:29:33 2014 +0100 +++ b/src/Silvet.cpp Fri Apr 04 13:43:51 2014 +0100 @@ -300,8 +300,18 @@ Grid out; + //!!! nb we count the CQ latency in terms of processing hops, but + //!!! actually it isn't guaranteed to be an exact number (in fact + //!!! it probably isn't) so this is imprecise -- fix + int latentColumns = m_cq->getLatency() / m_cq->getColumnHop(); + for (int i = 0; i < width; ++i) { + if (m_columnCount < latentColumns) { + ++m_columnCount; + continue; + } + int prevSampleNo = (m_columnCount - 1) * m_cq->getColumnHop(); int sampleNo = m_columnCount * m_cq->getColumnHop(); @@ -321,6 +331,8 @@ int ix = inCol.size() - j - 55; + //!!! note these filters introduce more latency + double val = inCol[ix]; m_filterA[j]->push(val);