diff --git a/goborator.go b/goborator.go index be9ca3c..14000c1 100644 --- a/goborator.go +++ b/goborator.go @@ -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 {