Documentation
¶
Index ¶
- func ApplyEnvelope(samples []float64, attack, decay, sustain, release float64, sampleRate int) []float64
- func DetunedOscillators(freq float64, detune []float64, length int, sampleRate int) []float64
- func Drive(samples []float64, gain float64) []float64
- func Limiter(samples []float64) []float64
- func LowPassFilter(samples []float64, cutoff float64, sampleRate int) []float64
- func SaveToWav(filename string, samples []float64, sampleRate int) error
- func SawtoothOscillator(freq float64, length int, sampleRate int) []float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyEnvelope ¶
func ApplyEnvelope(samples []float64, attack, decay, sustain, release float64, sampleRate int) []float64
ApplyEnvelope applies an ADSR envelope to the waveform
func DetunedOscillators ¶
DetunedOscillators generates multiple detuned sawtooth oscillators and combines them
func LowPassFilter ¶
LowPassFilter applies a basic low-pass filter to the samples
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.