export GetNumberOfBands()
This commit is contained in:
parent
4b361ff3da
commit
e6cb68032d
|
@ -42,14 +42,14 @@ func NewGaborator(blockSize int, sampleRate float64, bandsPerOctave int, minimum
|
|||
coefficientSize := (g.latency + 2*int64(blockSize)) / int64(stepSize)
|
||||
g.coefficients = make([][]float32, coefficientSize)
|
||||
for i := range g.coefficients {
|
||||
g.coefficients[i] = make([]float32, g.numberOfBands())
|
||||
g.coefficients[i] = make([]float32, g.GetNumberOfBands())
|
||||
}
|
||||
g.coefficientIndexOffset = 0
|
||||
|
||||
return g
|
||||
}
|
||||
|
||||
func (g *Gaborator) numberOfBands() int {
|
||||
func (g *Gaborator) GetNumberOfBands() int {
|
||||
numberOfBands := 0
|
||||
for _, e := range g.bandcenterCache {
|
||||
if e > 0 {
|
||||
|
|
Loading…
Reference in a new issue