Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIDI - extract to new namespace and hugely improve API
Now with support for: * midi clocks * cc messages * mode selection * channel messages
- Loading branch information
32b0445
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note - the final API will include a way to specify a set of matchers on which MIDI devices to send the message on.
32b0445
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've linked the new midi module into server.rb (require_relative and the klass.send call) and runtime.rb and preparser.rb (require_relative) (not done a doc link yet) and tried out some of the commands. I found that the midi :e1, dur: 0.1 gave a runtime error looking for __sched_ahead_time
I added
to the runtime.rb file (just after def __current_sched_at_time) and this got it working. Works great playing a synth on my iPad!
{Now added in the documentation as well (require_relative "../sonicpi/lib/sonicpi/lang/midi in qt-doc.rb)}