Add GetCoefficients()
This commit is contained in:
parent
44d6fca05d
commit
147da335b6
|
@ -130,6 +130,7 @@ func (g *Gaborator) gaborTransform(audioData []float32) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Gaborator) GaborTransform(reader io.Reader) [][]float32 {
|
||||
var err error
|
||||
var f float32
|
||||
|
@ -180,6 +181,10 @@ func (g *Gaborator) GetSampleRate() float64 {
|
|||
return g.sampleRate
|
||||
}
|
||||
|
||||
func (g *Gaborator) GetCoefficients() [][]float32 {
|
||||
return g.fixedCoefficents
|
||||
}
|
||||
|
||||
func (g *Gaborator) GetBandwidth() float64 {
|
||||
return 1200. / float64(g.bandsPerOctave)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue