Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analysis ¶
type Analysis struct {
Params *Params
FrequencyBuckets []FrequencyRange
SampleRate int
Points []*AnalysisPoint
ValueStats *stats.ValueCollection
WindowSize int
FramesBetweenAnalyses int
}
func (*Analysis) DefaultValueMapper ¶
type AnalysisPoint ¶
type AnalysisPoint struct {
FrameNumber int
Values []float64
RawPXX []float64
RawFreqs []float64
PureFFT *PureFFTPoint
}
type FrequencyRange ¶
func (FrequencyRange) Midpoint ¶
func (x FrequencyRange) Midpoint() float64
func (FrequencyRange) Subdivide ¶
func (r FrequencyRange) Subdivide(n int) []FrequencyRange
type LoudnessAnalysis ¶
type LoudnessAnalysis struct {
Params *Params
SampleRate int
Values []float64
ValueStats *stats.ValueCollection
WindowSize int
FramesBetweenAnalyses int
}
func AnalyzeLoudness ¶
func AnalyzeLoudness(s snippet.Snippet, params *Params) (*LoudnessAnalysis, error)
func (*LoudnessAnalysis) DefaultValueMapper ¶
func (a *LoudnessAnalysis) DefaultValueMapper() func(x float64) float64
type PureFFTPoint ¶
type PureFFTPoint struct {
Raw []complex128
Freqs []float64
Amplitude []float64
Phase []float64
}
Click to show internal directories.
Click to hide internal directories.