Go package to programmatically control via midi:
- Elektron model:cycles
- Elektron model:samples
- Nord Lead x2
- Dreadbox Nymphes
Install Go https://golang.org/doc/install.
apt install librtmidi4 librtmidi-devFor older versions take a look here.
brew install rtmidiFor more information see the formulae page.
Help needed.
Complete examples can be found in the examples folder.
Code to get a single kick drum hit at C4 key, with velocity set at 120 and length at 200 milliseconds:
package main
import (
"time"
m "github.com/bh90210/models"
)
func main() {
p, _ := m.NewProject(em.CYCLES)
defer p.Close()
p.Note(m.T1, m.C4, 120, 200, m.PT1())
time.Sleep(200 * time.Millisecond)
}