Documentation ¶
Index ¶
- Constants
- func AddExample(name string, scene nodes.Node)
- func AddScene(name string, n nodes.Node)
- func Close()
- func GetOutput() snd.IOutput
- func GetScene(name string) (nodes.Node, bool)
- func NewMidiDeviceDropDown() *ui.DropDown
- func RunExample(id int)
- func SetOutput(outputtype int, param string)
- func Start()
- func Stop()
- func SwitchScene(name string)
- type DoubleOsci
- func (o *DoubleOsci) Read(samples *snd.Samples)
- func (o *DoubleOsci) ReadStateless(samples *snd.Samples, freq float32, state *snd.NoteState)
- func (o *DoubleOsci) SendNoteEvent(ev *notes.NoteEvent)
- func (o *DoubleOsci) SetAttack(v float32)
- func (o *DoubleOsci) SetDecay(v float32)
- func (o *DoubleOsci) SetModFactor(v float32)
- func (o *DoubleOsci) SetModGain(v float32)
- func (o *DoubleOsci) SetOsciType(nr int, typ OsciType)
- func (o *DoubleOsci) SetRelease(v float32)
- func (o *DoubleOsci) SetSustain(v float32)
- type Example
- type NoteToSample
- type OsciType
Constants ¶
View Source
const ( AudioOutput = iota DatOutput )
Variables ¶
This section is empty.
Functions ¶
func AddExample ¶
func NewMidiDeviceDropDown ¶
func RunExample ¶
func RunExample(id int)
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 (*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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.