Documentation ¶
Index ¶
- Constants
- func Noise() func(pos float64) float64
- func Organ(pos float64) float64
- func Phaser(pos float64) float64
- func Pulse(pos float64) float64
- func Saw(pos float64) float64
- func Square(pos float64) float64
- func TiltedSaw(pos float64) float64
- func Triangle(pos float64) float64
- type Oscillator
- type SampleChannels
Constants ¶
View Source
const ( SampleRate = 22050 Channels = 4 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Oscillator ¶
func (*Oscillator) NextSample ¶
func (o *Oscillator) NextSample() (v float64)
type SampleChannels ¶
func (SampleChannels) Sum ¶
func (s SampleChannels) Sum() float64
Click to show internal directories.
Click to hide internal directories.