Versions in this module Expand all Collapse all v1 v1.0.1 Jan 9, 2021 Changes in this version + var ErrFormat = audio.ErrFormat + var ErrInvalidData = audio.ErrInvalidData + var ErrUnexpectedEOS = audio.ErrUnexpectedEOS + func Generate(r io.Reader, options ...OptionsFunc) (image.Image, error) + func RMSF64Samples(samples audio.Float64) float64 + type ColorFunc func(n int, x int, y int, maxN int, maxX int, maxY int) color.Color + func CheckerColor(colorA color.Color, colorB color.Color, size uint) ColorFunc + func FuzzColor(colors ...color.Color) ColorFunc + func GradientColor(start color.RGBA, end color.RGBA) ColorFunc + func SolidColor(inColor color.Color) ColorFunc + func StripeColor(colors ...color.Color) ColorFunc + type OptionsError struct + Option string + Reason string + func (e *OptionsError) Error() string + type OptionsFunc func(*Waveform) error + func BGColorFunction(function ColorFunc) OptionsFunc + func FGColorFunction(function ColorFunc) OptionsFunc + func Resolution(resolution uint) OptionsFunc + func SampleFunction(function SampleReduceFunc) OptionsFunc + func Scale(x uint, y uint) OptionsFunc + func ScaleClipping() OptionsFunc + func Sharpness(sharpness uint) OptionsFunc + type SampleReduceFunc func(samples audio.Float64) float64 + type Waveform struct + func New(r io.Reader, options ...OptionsFunc) (*Waveform, error) + func (w *Waveform) Compute() ([]float64, error) + func (w *Waveform) Draw(values []float64) image.Image + func (w *Waveform) SetBGColorFunction(function ColorFunc) error + func (w *Waveform) SetFGColorFunction(function ColorFunc) error + func (w *Waveform) SetOptions(options ...OptionsFunc) error + func (w *Waveform) SetResolution(resolution uint) error + func (w *Waveform) SetSampleFunction(function SampleReduceFunc) error + func (w *Waveform) SetScale(x uint, y uint) error + func (w *Waveform) SetScaleClipping() error + func (w *Waveform) SetSharpness(sharpness uint) error