Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ScalingSlowWindow in seconds ScalingSlowWindow = 5 // ScalingFastWindow in seconds ScalingFastWindow = ScalingSlowWindow * 0.2 // ScalingDumpPercent is how much we erase on rescale ScalingDumpPercent = 0.60 // ScalingResetDeviation standard deviations from the mean before reset ScalingResetDeviation = 1.0 // PeakThreshold is the threshold to not draw if the peak is less. PeakThreshold = 0.01 )
Variables ¶
This section is empty.
Functions ¶
func NewThreaded ¶
func NewThreaded(cfg Config) *threadedProcessor
Types ¶
type Config ¶
type Config struct { SampleRate float64 // rate at which samples are read SampleSize int // number of samples per buffer ChannelCount int // number of channels FrameRate int // target framerate InvertDraw bool // invert the direction of bin drawing Buffers [][]input.Sample // sample buffers Analyzer Analyzer // audio analyzer Smoother Smoother // time smoother Display Display // display }
Click to show internal directories.
Click to hide internal directories.