Documentation ¶
Index ¶
- Constants
- func CalcBiquadFilter(filterType string, centreFrequency, sampleRate int, peakGain, width float64, ...) []float64
- func CalculateMaxGain(audioData []float64) float64
- func CascadeFilters(coefficients [][]float64, myFilterLength int) []float64
- func ConvolveImpulsesFFT(impulse, signal []float64) []float64
- func ConvolveImpulsesFFTwithTail(impulse, signal []float64, overlapSize int, tail []float64) ([]float64, []float64)
- func ExportWavFile(filename string, sampleRate, bitDepth int, sm *StreamManager) error
- func GenerateImpulseResponse(a0, a1, a2, b0, b1, b2 float64) []float64
- func IIRFilter(input []float64, b [3]float64, a [3]float64, output []float64)
- func Normalize(inputSamples [][]float64, targetLevel float64) float64
- func NormalizeAudioImpulse(audioImpulse []float64, targetLevel float64, max float64) []float64
- func ReadWavFile(filename string) ([][]float64, uint32, uint16, error)
- type StreamManager
Constants ¶
View Source
const FilterLength = 4000
Variables ¶
This section is empty.
Functions ¶
func CalcBiquadFilter ¶
func CalculateMaxGain ¶
Calculates the Maximum Gain Value - used for Normalization functions
func CascadeFilters ¶
func ConvolveImpulsesFFT ¶
func ExportWavFile ¶
func ExportWavFile(filename string, sampleRate, bitDepth int, sm *StreamManager) error
ExportWavFile exports the WAV file using the CreateMemoryStream function
func GenerateImpulseResponse ¶
func NormalizeAudioImpulse ¶
Types ¶
type StreamManager ¶
type StreamManager struct {
InputImpulse [][]float64
}
StreamManager is the equivalent of the C# StreamManager struct
func (*StreamManager) CreateMemoryStream ¶
func (sm *StreamManager) CreateMemoryStream(sampleRate, bitDepth int) (*bytes.Buffer, error)
CreateMemoryStream is the equivalent of the C# CreateMemoryStream method
Click to show internal directories.
Click to hide internal directories.