oscillators

package
v0.0.0-...-5287790 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SineWave

type SineWave struct {
	Frequency float64
	Amplitude float64
}

Amplitude expects a decimal value between 0 and 1

func NewSineWave

func NewSineWave(frequency, amplitude float64) *SineWave

func (*SineWave) Sample

func (sine *SineWave) Sample(deltaT float64) float64

type SquareWave

type SquareWave struct {
	Frequency float64
	Amplitude float64
}

#region SquareWave

func NewSquareWave

func NewSquareWave(frequency, amplitude float64) *SquareWave

func (*SquareWave) Sample

func (sq *SquareWave) Sample(deltaT float64) float64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL