Versions in this module Expand all Collapse all v1 v1.0.0 Sep 4, 2017 Changes in this version + func ConvertNotes(notes [][]int, startBeat int) (song *music.Music) + type AI struct + BeatsBetweenLicks int + HasLearned bool + HighPassFilter int + IsLearning bool + MaximumLickLength int + MinimumLickLength int + func New() (m *AI) + func (ai *AI) Learn2(notes music.Notes) (err error) + func (ai *AI) Learn3(notes music.Notes) (err error) + func (ai *AI) Learn4(notes music.Notes) (err error) + func (ai *AI) Lick2(startBeat int) (lick *music.Music, err error) + func (ai *AI) Lick3(startBeat int) (lick *music.Music, err error) + func (ai *AI) Lick4(startBeat int) (lick *music.Music, err error) + func (m *AI) Analyze(notes music.Notes) (analyzedNotes [][]int) + func (m *AI) Couple(index int, coupling []int) + func (m *AI) GenerateNote(prevValue []int, prevPrevValue []int) (curValue []int) + func (m *AI) Learn(notes music.Notes) (err error) + func (m *AI) Lick(startBeat int) (lick *music.Music, err error) + type Pair struct + Key int + Value int + type PairList []Pair + func (p PairList) Len() int + func (p PairList) Less(i, j int) bool + func (p PairList) Swap(i, j int)