Documentation
¶
Index ¶
- func AddPartials(duration, amplitude, frequency float64, partials []float64, ampEnv []float64, ...) []float64
- func BandPassFilter(samples []float64, lowFreq, highFreq float64, sampleRate int) []float64
- func BiquadFilter(samples []float64, filterType string, freq, Q, sampleRate float64) []float64
- func Bitcrusher(samples []float64, bitDepth int, sampleRateReduction int) []float64
- func Chorus(samples []float64, sampleRate int, delay, depth, rate, mix float64) []float64
- func Compressor(samples []float64, threshold, ratio, attack, release float64, sampleRate int) []float64
- func Drive(sample, drive float64) float64
- func Envelope(samples []float64, attack, decay, sustainLevel, release float64, ...) []float64
- func EnvelopeAtTime(t, attack, decay, sustainLevel, release, duration float64) float64
- func Expander(samples []float64, threshold, ratio, attack, release float64, sampleRate int) []float64
- func FMSynthesis(duration, carrierFreq, modFreq, modIndex, amplitude float64, ampEnv []float64, ...) []float64
- func FadeIn(samples []float64, duration float64, sampleRate int) []float64
- func FadeOut(samples []float64, duration float64, sampleRate int) []float64
- func Flanger(samples []float64, sampleRate int, ...) []float64
- func FrequencyModulation(samples []float64, carrierFreq, modDepth, sampleRate float64) []float64
- func GranularSynthesis(samples []float64, grainSize, overlap int, sampleRate int) []float64
- func HighPassFilter(samples []float64, cutoffFreq float64, sampleRate int) []float64
- func KarplusStrong(duration, amplitude float64, p int, b float64, sampleRate int) []float64
- func Limiter(samples []float64) []float64
- func LowPassFilter(samples []float64, cutoffFreq float64, sampleRate int) []float64
- func MultibandCompression(samples []float64, bands []struct{ ... }, compressors []struct{ ... }, ...) []float64
- func NoiseGate(samples []float64, threshold, attack, release float64, sampleRate int) []float64
- func NormalizeSamples(samples []float64, targetPeak float64) []float64
- func Panning(samples []float64, pan float64) ([]float64, []float64)
- func Phaser(samples []float64, sampleRate int, rate, depth, feedback float64) []float64
- func PitchModulation(samples []float64, modFreq, modDepth float64, sampleRate int) []float64
- func PitchShift(samples []float64, semitones float64) []float64
- func QuadraticFadeIn(samples []float64, duration float64, sampleRate int) []float64
- func QuadraticFadeOut(samples []float64, duration float64, sampleRate int) []float64
- func Reverb(samples []float64, sampleRate int, delayTimes []float64, decays []float64, ...) []float64
- func RingModulation(samples []float64, carrierFreq float64, sampleRate int) []float64
- func Shimmer(samples []float64, sampleRate int, delayTime float64, mix float64, ...) []float64
- func ShimmerBitcrusher(samples []float64, sampleRate int, delayTime float64, mix float64, ...) []float64
- func SidechainCompressor(target, trigger []float64, threshold, ratio, attack, release float64, ...) []float64
- func SoftClip(sample, drive float64) float64
- func SoftClippingDistortion(samples []float64, drive float64) []float64
- func StereoDelay(left, right []float64, sampleRate int, delayTimeLeft, delayTimeRight float64, ...) ([]float64, []float64)
- func StereoWidening(left, right []float64, width float64) ([]float64, []float64)
- func SubtractOp(duration, amplitude float64, b1 float64, ampEnv []float64, sampleRate int) []float64
- func Tremolo(samples []float64, sampleRate int, rate, depth float64) []float64
- func WahWah(samples []float64, sampleRate int, baseFreq, sweepFreq, Q float64) []float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPartials ¶ added in v0.9.0
func BandPassFilter ¶
func BiquadFilter ¶ added in v0.9.0
func Bitcrusher ¶
Bitcrusher applies bit depth and sample rate reduction to the audio samples.
func Compressor ¶
func EnvelopeAtTime ¶ added in v0.10.0
EnvelopeAtTime calculates the envelope value at a specific normalized time point.
func FMSynthesis ¶ added in v0.9.0
func FrequencyModulation ¶
func GranularSynthesis ¶ added in v0.9.0
func HighPassFilter ¶
func KarplusStrong ¶ added in v0.9.0
func LowPassFilter ¶
func MultibandCompression ¶
func NormalizeSamples ¶
func PitchModulation ¶
func PitchShift ¶
func QuadraticFadeIn ¶ added in v0.10.0
QuadraticFadeIn applies a quadratic fade-in to the provided samples. The fade-in starts slowly and accelerates towards the end of the duration.
func QuadraticFadeOut ¶ added in v0.10.0
QuadraticFadeOut applies a quadratic fade-out to the provided samples. The fade-out starts quickly and decelerates towards the end of the duration.
func RingModulation ¶
func Shimmer ¶ added in v0.10.0
func Shimmer(samples []float64, sampleRate int, delayTime float64, mix float64, pitchShiftSemitones float64, feedback float64) []float64
Shimmer applies a shimmer effect with adjustable pitch shift and feedback to the provided audio samples. It adds a delayed and pitch-shifted copy of the signal to itself with optional feedback.
func ShimmerBitcrusher ¶ added in v0.11.0
func ShimmerBitcrusher(samples []float64, sampleRate int, delayTime float64, mix float64, pitchShiftSemitones float64, bitDepth int, sampleRateReduction int, feedback float64) []float64
ShimmerBitcrusher applies both Shimmer and Bitcrusher effects to the provided audio samples. The Shimmer effect is applied first, followed by the Bitcrusher effect.
Parameters: - samples: The input audio samples to be processed. - sampleRate: The sample rate of the audio in Hz. - delayTime: The delay time in seconds before the shimmer is mixed back. - mix: The mix level of the shimmer effect (0.0 to 1.0). - pitchShiftSemitones: The number of semitones to shift the pitch for the shimmer. - bitDepth: The number of bits to reduce the sample precision in bitcrushing. - sampleRateReduction: The number of samples to hold each sample value in bitcrushing.
Returns: - A new slice of samples with both Shimmer and Bitcrusher effects applied.
func SidechainCompressor ¶
func SoftClippingDistortion ¶
func StereoDelay ¶
func StereoWidening ¶
func SubtractOp ¶ added in v0.9.0
Types ¶
This section is empty.