undermidi
An LFE MIDI Port Server
Dependencies & Setup
This application assumes that the following are on your system:
git- GNU
make - A modern install of Erlang (v20+)
- rebar3 (Erlang build tool)
- Golang
This project's rebar.config.script will set the required Go environment
variables.
Build & Run
Build the required Go MIDI server and compile the LFE:
$ make
Start up the LFE REPL:
$ rebar3 lfe repl
Start the app:
lfe> (application:ensure_all_started 'undermidi)
See the running gen_servers for the Go MIDI server:
lfe> (undermidi.app:children)
(#(ports.lisp.server #Pid<0.366.0> worker (ports.lisp.server))
#(ports.go.server #Pid<0.365.0> worker (ports.go.server)))
API
(ports.go.server:send #(command echo))
#(result "echo")
(ports.lisp.server:send #(command echo))
#(result "echo")