Go package to programmatically control Elektron's model:cycles & model:samples via midi.
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.
A complete example can be found in the example folder.
The relevant cycles/samples manuals' part for this library is the APPENDIX A: MIDI SPECIFICATIONS.
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)
}There are four Free methods to use, Preset to set preset on the fly, Note to fire a note on/off for given duration, CC to send a single control change message && PC for program changes.



