(midi-control sink ctl-num val)
(midi-control sink ctl-num val channel)
Send a control msg to the sink
Send a control msg to the sink
(midi-device? obj)
Check whether obj is a midi device.
Check whether obj is a midi device.
(midi-find-device devs dev-name)
Takes a set of devices returned from either (midi-sources) or (midi-sinks), and a search string. Returns the first device where either the name or description matches using the search string as a regexp.
Takes a set of devices returned from either (midi-sources) or (midi-sinks), and a search string. Returns the first device where either the name or description matches using the search string as a regexp.
(midi-handle-events input short-msg-fn)
(midi-handle-events input short-msg-fn sysex-msg-fn)
Specify handlers that will independently receive all MIDI events and sysex messages from the input device. Both handlers should be a function of one argument, which will be a map of the message information
Specify handlers that will independently receive all MIDI events and sysex messages from the input device. Both handlers should be a function of one argument, which will be a map of the message information
(midi-in)
(midi-in in)
Open a midi input device for reading. If no argument is given then a selection list pops up to let you browse and select the midi device.
Open a midi input device for reading. If no argument is given then a selection list pops up to let you browse and select the midi device.
(midi-msg obj & [ts])
Make a clojure map out of a midi ShortMessage object.
Make a clojure map out of a midi ShortMessage object.
(midi-note sink note-num vel dur)
(midi-note sink note-num vel dur channel)
Send a midi on/off msg pair to the sink.
Send a midi on/off msg pair to the sink.
(midi-note-off sink note-num)
(midi-note-off sink note-num channel)
Send a midi off msg to the sink.
Send a midi off msg to the sink.
(midi-note-on sink note-num vel)
(midi-note-on sink note-num vel channel)
Send a midi on msg to the sink.
Send a midi on msg to the sink.
(midi-out)
(midi-out out)
Open a midi output device for writing. If no argument is given then a selection list pops up to let you browse and select the midi device.
Open a midi output device for writing. If no argument is given then a selection list pops up to let you browse and select the midi device.
(midi-play out notes velocities durations)
(midi-play out notes velocities durations channel)
Play a seq of notes with the corresponding velocities and durations.
Play a seq of notes with the corresponding velocities and durations.
(midi-ports)
Get the available midi I/O ports (hardware sound-card and virtual ports). NOTE: devices use -1 to signify unlimited sources or sinks.
Get the available midi I/O ports (hardware sound-card and virtual ports). NOTE: devices use -1 to signify unlimited sources or sinks.
(midi-route source sink)
Route midi messages from a source to a sink. Expects transmitter and receiver objects returned from midi-in and midi-out.
Route midi messages from a source to a sink. Expects transmitter and receiver objects returned from midi-in and midi-out.
(midi-sysex sink byte-seq)
Send a midi System Exclusive msg made up of the bytes in byte-seq byte-array, sequence of integers, longs or a byte-string to the sink. If a byte string is specified, must only contain bytes encoded as hex values. Commas, spaces, and other whitespace is ignored
Send a midi System Exclusive msg made up of the bytes in byte-seq byte-array, sequence of integers, longs or a byte-string to the sink. If a byte string is specified, must only contain bytes encoded as hex values. Commas, spaces, and other whitespace is ignored
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close