# HG changeset patch # User Chris Cannam # Date 1383154154 0 # Node ID dad5d8a06a5d9a50d4fd70f707678f4c54ecef24 # Parent 3b044c30cffcc26bd56aca0797ba0aea8e34f150 Return only the actual results (i.e. space with zeros rather than duplicates) diff -r 3b044c30cffc -r dad5d8a06a5d yeti/cqt.yeti --- a/yeti/cqt.yeti Wed Oct 30 16:31:25 2013 +0000 +++ b/yeti/cqt.yeti Wed Oct 30 17:29:14 2013 +0000 @@ -131,10 +131,15 @@ colsPerAtom = int (colsPerChunk / kdata.atomsPerFrame); chunkNo = int (col / colsPerChunk); atomNo = int ((col % colsPerChunk) / colsPerAtom); + atomOffset = ((col % colsPerChunk) % colsPerAtom); // eprintln "row \(row) of \(rows), col \(col) of \(columns): oct \(oct), bin \(binNo), chunk \(chunkNo) of \(chunks), atom \(atomNo) of \(kdata.atomsPerFrame)"; - cm.at bits[oct][chunkNo] (binNo * kdata.atomsPerFrame + atomNo) 0; + if atomOffset == 0 then + cm.at bits[oct][chunkNo] (binNo * kdata.atomsPerFrame + atomNo) 0; + else + cplx.zero + fi; done { rows, columns }; );