examples

package
v0.0.0-...-d40d5fc Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AudioOutput = iota
	DatOutput
)

Variables

This section is empty.

Functions

func AddExample

func AddExample(name string, scene nodes.Node)

func AddScene

func AddScene(name string, n nodes.Node)

func Close

func Close()

func GetOutput

func GetOutput() snd.IOutput

func GetScene

func GetScene(name string) (nodes.Node, bool)

func NewMidiDeviceDropDown

func NewMidiDeviceDropDown() *ui.DropDown

func RunExample

func RunExample(id int)

func SetOutput

func SetOutput(outputtype int, param string)

func Start

func Start()

func Stop

func Stop()

func SwitchScene

func SwitchScene(name string)

Types

type DoubleOsci

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

func NewDoubleOsci

func NewDoubleOsci(a, d, s, r, modfactor, modgain float32, osci1type, osci2type OsciType) *DoubleOsci

func (*DoubleOsci) Read

func (o *DoubleOsci) Read(samples *snd.Samples)

func (*DoubleOsci) ReadStateless

func (o *DoubleOsci) ReadStateless(samples *snd.Samples, freq float32, state *snd.NoteState)

func (*DoubleOsci) SendNoteEvent

func (o *DoubleOsci) SendNoteEvent(ev *notes.NoteEvent)

func (*DoubleOsci) SetAttack

func (o *DoubleOsci) SetAttack(v float32)

func (*DoubleOsci) SetDecay

func (o *DoubleOsci) SetDecay(v float32)

func (*DoubleOsci) SetModFactor

func (o *DoubleOsci) SetModFactor(v float32)

func (*DoubleOsci) SetModGain

func (o *DoubleOsci) SetModGain(v float32)

func (*DoubleOsci) SetOsciType

func (o *DoubleOsci) SetOsciType(nr int, typ OsciType)

func (*DoubleOsci) SetRelease

func (o *DoubleOsci) SetRelease(v float32)

func (*DoubleOsci) SetSustain

func (o *DoubleOsci) SetSustain(v float32)

type Example

type Example struct {
	Id    int
	Name  string
	Scene nodes.Node
}

func GetExamples

func GetExamples() []*Example

type NoteToSample

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

func NewNoteToSample

func NewNoteToSample() *NoteToSample

func (*NoteToSample) AddSample

func (n *NoteToSample) AddSample(note notes.NoteValue, path string)

func (*NoteToSample) NoteEnded

func (n *NoteToSample) NoteEnded() bool

func (*NoteToSample) Read

func (n *NoteToSample) Read(samples *snd.Samples)

func (*NoteToSample) ReadStateless

func (n *NoteToSample) ReadStateless(samples *snd.Samples, freq float32, state *snd.NoteState)

type OsciType

type OsciType int
const (
	OsciSin OsciType = iota
	OsciRect
)

Jump to

Keyboard shortcuts

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