Documentation ¶
Index ¶
- func SawtoothTone(sr beep.SampleRate, freq float64) (beep.Streamer, error)
- func SawtoothToneReversed(sr beep.SampleRate, freq float64) (beep.Streamer, error)
- func Silence(num int) beep.Streamer
- func SineTone(sr beep.SampleRate, freq float64) (beep.Streamer, error)
- func SquareTone(sr beep.SampleRate, freq float64) (beep.Streamer, error)
- func TriangleTone(sr beep.SampleRate, freq float64) (beep.Streamer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SawtoothTone ¶
Creates a streamer which will procude an infinite sawtooth wave with the given frequency. use other wrappers of this package to change amplitude or add time limit. sampleRate must be at least two times grater then frequency, otherwise this function will return an error.
func SawtoothToneReversed ¶
Creates a streamer which will procude an infinite sawtooth tone with the given frequency. sawtooth is reversed so the slope is negative. use other wrappers of this package to change amplitude or add time limit. sampleRate must be at least two times grater then frequency, otherwise this function will return an error.
func Silence ¶ added in v1.3.0
Silence returns a Streamer which streams num samples of silence. If num is negative, silence is streamed forever.
func SineTone ¶
Creates a streamer which will procude an infinite sine wave with the given frequency. use other wrappers of this package to change amplitude or add time limit. sampleRate must be at least two times grater then frequency, otherwise this function will return an error.
func SquareTone ¶
Creates a streamer which will procude an infinite square wave with the given frequency. use other wrappers of this package to change amplitude or add time limit. sampleRate must be at least two times grater then frequency, otherwise this function will return an error.
func TriangleTone ¶
Creates a streamer which will procude an infinite triangle wave with the given frequency. use other wrappers of this package to change amplitude or add time limit. sampleRate must be at least two times grater then frequency, otherwise this function will return an error.
Types ¶
This section is empty.