synth

package
v0.0.0-...-02d3639 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const SamplesPerSecond = 44100

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicBlock

type BasicBlock struct {
	// contains filtered or unexported fields
}

func (BasicBlock) GetOutput

func (b BasicBlock) GetOutput() chan *Frame

type Const

type Const struct {
	BasicBlock
	Level Sample
}

func NewConst

func NewConst(src Pluggable, level Sample) (c *Const)

type Frame

type Frame [frameLength]Sample

func (*Frame) RenderTo8Bit

func (f *Frame) RenderTo8Bit(out []wav.Sample8)

type FrameSource

type FrameSource struct {
	BasicBlock
}

func NewFrameSource

func NewFrameSource() (fs *FrameSource)

type Hertz

type Hertz float32

type Pluggable

type Pluggable interface {
	GetOutput() chan *Frame
}

type Renderer

type Renderer struct {
	BasicBlock
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer(src Pluggable, wav *wav.Wav) (r *Renderer)

func (*Renderer) GetOutput

func (r *Renderer) GetOutput() chan *Frame

func (*Renderer) Render

func (r *Renderer) Render(cb func())

type Sample

type Sample float32

type SquareWave

type SquareWave struct {
	BasicBlock
	// contains filtered or unexported fields
}

func NewSquareWave

func NewSquareWave(src Pluggable, freq Hertz) (s *SquareWave)

func (*SquareWave) SetFrequency

func (sw *SquareWave) SetFrequency(freq Hertz)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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