Add GetCoefficients()

This commit is contained in:
DataHoarder 2022-01-23 21:32:29 +01:00
parent 44d6fca05d
commit 147da335b6

View file

@ -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)
}