No matching definitions.

rtmidi/in

src/rtmidi/in.tur
defn

midi-in-open

(midi-in-open [mi : MidiIn i : int name : cstr] :)

open a physical MIDI input port by index.

miMIDI input handle (ok-val of the midi-in-new result)
iport index (0-based, must be < midi-in-port-count)
nameclient name to register with the system

(Result int int) -- ok carries 0; err carries an integer status code (1 when the underlying RtMidi handle's `ok` flag is false after the open call).

(let [r (midi-in-open mi 0 "Turmeric In")]
    (if (ok? r) ... (println "open failed")))

Since: RM0

defn

midi-in-open-virtual

(midi-in-open-virtual [mi : MidiIn name : cstr] :)

open a virtual MIDI input port.

miMIDI input handle (ok-val of the midi-in-new result)
namename for the virtual port

(Result int int) -- ok carries 0; err carries an integer status code (1 when the open call left the handle's `ok` flag false).

(let [r (midi-in-open-virtual mi "My Virtual In")]
    (if (ok? r) ... (println "virtual open failed")))

Since: RM0

defn

midi-in-close

(midi-in-close [mi : MidiIn] :)

close the currently open MIDI input port.

miMIDI input handle (ok-val of the midi-in-new result)

void

(midi-in-close mi)

Since: RM0

defn

midi-in-set-callback

(midi-in-set-callback)

register a callback to receive incoming MIDI messages.

miMIDI input handle (ok-val of the midi-in-new result)
callbackcaptureless C-ABI callback of shape
`void (*)(double timeStamp, const unsigned char *msg,
size_t nbytes, void *user)` -- spelled
`(c-fn [float ptr<const-u8> usize ptr<void>] void)`

void

(midi-in-set-callback mi my-midi-handler)

Since: RM0

defn

midi-in-cancel-callback

(midi-in-cancel-callback [mi : MidiIn] :)

remove the previously registered MIDI input callback.

miMIDI input handle (ok-val of the midi-in-new result)

void

(midi-in-cancel-callback mi)

Since: RM0

defn

midi-in-ignore-types

(midi-in-ignore-types [mi : MidiIn sysex : bool timing : bool active-sense : bool] :)

configure which MIDI message types to ignore.

miMIDI input handle (ok-val of the midi-in-new result)
sysexif true, suppress SysEx messages
timingif true, suppress MIDI timing clock messages
active-senseif true, suppress Active Sensing messages

void

(midi-in-ignore-types mi true true true)

Since: RM0