Documentation ¶
Index ¶
- Constants
- type Adsr
- func (adsr *Adsr) NoteEnded() bool
- func (adsr *Adsr) Read(samples *snd.Samples)
- func (adsr *Adsr) ReadStateless(samples *snd.Samples, freq float32, state *snd.NoteState)
- func (adsr *Adsr) SetAttack(v float32)
- func (adsr *Adsr) SetDecay(v float32)
- func (adsr *Adsr) SetReadable(r snd.Readable)
- func (adsr *Adsr) SetRelease(v float32)
- func (adsr *Adsr) SetSustain(v float32)
- type ContinuousNote
- type NoteAware
- type NoteEvent
- type NoteEventReceiver
- type NoteMultiplexer
- type NoteValue
Constants ¶
View Source
const ( Pressed = iota Released )
View Source
const ( C = "C" Csharp = "C#" Db = "Db" D = "D" Dsharp = "D#" Eb = "Eb" E = "E" F = "F" Fsharp = "F#" Gb = "Gb" G = "G" Gsharp = "G#" Ab = "Ab" A = "A" Asharp = "A#" Hb = "Hb" H = "H" Bb = "Bb" B = "B" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adsr ¶
type Adsr struct {
// contains filtered or unexported fields
}
func (*Adsr) ReadStateless ¶
func (*Adsr) SetReadable ¶
func (*Adsr) SetRelease ¶
func (*Adsr) SetSustain ¶
type ContinuousNote ¶
type ContinuousNote struct {
// contains filtered or unexported fields
}
func NewContinuousNote ¶
func NewContinuousNote(note NoteValue) *ContinuousNote
func (*ContinuousNote) Read ¶
func (c *ContinuousNote) Read(samples *snd.Samples)
func (*ContinuousNote) ReadStateless ¶
func (*ContinuousNote) SetNote ¶
func (c *ContinuousNote) SetNote(note NoteValue)
func (*ContinuousNote) SetReadable ¶
func (c *ContinuousNote) SetReadable(r snd.Readable)
type NoteEventReceiver ¶
type NoteEventReceiver interface {
SendNoteEvent(ev *NoteEvent)
}
type NoteMultiplexer ¶
type NoteMultiplexer struct {
// contains filtered or unexported fields
}
func NewNoteMultiplexer ¶
func NewNoteMultiplexer() *NoteMultiplexer
func (*NoteMultiplexer) ActiveNotes ¶
func (n *NoteMultiplexer) ActiveNotes() int
func (*NoteMultiplexer) Read ¶
func (n *NoteMultiplexer) Read(samples *snd.Samples)
func (*NoteMultiplexer) ReadStateless ¶
func (*NoteMultiplexer) SendNoteEvent ¶
func (n *NoteMultiplexer) SendNoteEvent(ev *NoteEvent)
func (*NoteMultiplexer) SetReadable ¶
func (n *NoteMultiplexer) SetReadable(r snd.Readable)
Click to show internal directories.
Click to hide internal directories.