Skip to content

Commit

Permalink
don't set mel filter count in this code, do it in sim code
Browse files Browse the repository at this point in the history
  • Loading branch information
rohrlich committed Feb 18, 2022
1 parent 2cacfd6 commit 441591e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/sndenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ func (se *SndEnv) Init(msSilenceAdd, msSilenceRmStart, msSilenceRmEnd float64) (
se.GborKwta.CopyMetaData(&se.GborOutput)
se.ExtGi.SetShape([]int{se.GborPoolsY, se.GborPoolsX, 2, nfilters}, nil, nil) // passed in for each channel

se.Mel.FBank.NFilters = 39
winSamplesHalf := se.Params.WinSamples/2 + 1
se.Dft.Initialize(se.Params.WinSamples)
se.Mel.InitFilters(se.Params.WinSamples, se.Sound.SampleRate(), &se.MelFilters) // call after non-default values are set!
Expand Down

0 comments on commit 441591e

Please sign in to comment.