base

package
v0.0.0-...-775c6d9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneratorBase

type GeneratorBase struct {
	sync.RWMutex
	Amplitude binding.Float

	Phase float64
	// contains filtered or unexported fields
}

func (*GeneratorBase) Active

func (g *GeneratorBase) Active() binding.Bool

func (*GeneratorBase) Channels

func (g *GeneratorBase) Channels() binding.IntList

func (*GeneratorBase) Init

func (g *GeneratorBase) Init()

func (*GeneratorBase) LockedReset

func (g *GeneratorBase) LockedReset()

func (*GeneratorBase) Modulation

func (g *GeneratorBase) Modulation() binding.Int

func (*GeneratorBase) Name

func (g *GeneratorBase) Name() string

func (*GeneratorBase) Reset

func (g *GeneratorBase) Reset()

type GeneratorBaseWithBuffer

type GeneratorBaseWithBuffer struct {
	GeneratorBase

	Buffer system.SampleBuffer[float64]
	Repeat binding.Bool
	Delay  binding.Float
	// contains filtered or unexported fields
}

func (*GeneratorBaseWithBuffer) FillBuffer

func (g *GeneratorBaseWithBuffer) FillBuffer(buf system.SampleBuffer[float64])

func (*GeneratorBaseWithBuffer) Init

func (g *GeneratorBaseWithBuffer) Init(rebuildBuffer func() system.SampleBuffer[float64])

func (*GeneratorBaseWithBuffer) Reset

func (g *GeneratorBaseWithBuffer) Reset()

type ModulationType

type ModulationType int
const (
	None ModulationType = iota
	Amplitude
	Frequency
	Phase
	DutyCycle
	Ratio
	Trigger
)

func (ModulationType) String

func (i ModulationType) String() string

type NamedParameter

type NamedParameter struct {
	Name     string
	Value    binding.DataItem
	Min, Max float64
	Format   string
}

func (NamedParameter) GetBool

func (nf NamedParameter) GetBool() bool

func (NamedParameter) GetFloat

func (nf NamedParameter) GetFloat() float64

func (NamedParameter) GetString

func (nf NamedParameter) GetString() string

type NoiseType

type NoiseType int
const (
	White NoiseType = iota
	Pink
	Purple
	Brown
	Grey
)

Jump to

Keyboard shortcuts

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