Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGenerator ¶
func NewGenerator(sr beep.SampleRate, freq int, oscFunc GeneratorFunction) (*generator, error)
Types ¶
type ChainGenerator ¶
type ChainGenerator struct {
GeneratorFuncs []GeneratorFunction
}
type GeneratorFunction ¶
type OscStream ¶
type OscStream struct { Stat float64 // progress from 0 to 1 Delta float64 // space between two calculation OscFunc GeneratorFunction }
create stream which will produce infinite osciator tone 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
Click to show internal directories.
Click to hide internal directories.