Mercurial > hg > constant-q-cpp
comparison yeti/cqtkernel.yeti @ 80:872fc9dc0321
Start on inverse code, fix up forward interface a bit
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 29 Apr 2014 08:36:47 +0100 |
parents | c2e9c91ed3f7 |
children |
comparison
equal
deleted
inserted
replaced
79:021f69b2987a | 80:872fc9dc0321 |
---|---|
132 wK = vec.slice diag (round(1/q)) (vec.length diag - round(1/q) - 2); | 132 wK = vec.slice diag (round(1/q)) (vec.length diag - round(1/q) - 2); |
133 | 133 |
134 weight = (fftHop / fftSize) / (vec.mean (vec.abs wK)); | 134 weight = (fftHop / fftSize) / (vec.mean (vec.abs wK)); |
135 weight = sqrt(weight); | 135 weight = sqrt(weight); |
136 | 136 |
137 kernel = cm.scaled weight kmat; | |
138 | |
137 // eprintln "weight = \(weight)"; | 139 // eprintln "weight = \(weight)"; |
138 | 140 |
139 { | 141 { |
140 kernel = cm.scaled weight kmat, | 142 kernel, |
141 fftSize, | 143 fftSize, |
142 fftHop, | 144 fftHop, |
143 binsPerOctave, | 145 binsPerOctave, |
144 atomsPerFrame = winNr, | 146 atomsPerFrame = winNr, |
145 atomSpacing = atomHop, | 147 atomSpacing = atomHop, |