Module Midi.PortSource

MIDI port.

Sourcetype t

The type for MIDIPort objects.

Sourceval as_target : t -> Brr.Ev.target

as_target p is p as an event target.

Sourceval open' : t -> unit Fut.or_error

open' p opens the port.

Sourceval close : t -> unit Fut.or_error

close p closes the port.

Properties

Sourceval id : t -> Jstr.t

id p is the identifier of p.

Sourceval manufacturer : t -> Jstr.t

manufacturer p is the manufacturer of p.

Sourceval name : t -> Jstr.t

name p is the name of p.

Sourceval version : t -> Jstr.t

version p is the version of p.

Sourceval type' : t -> Jstr.t

type' p is the type of p.

Sourceval state : t -> Jstr.t

state p is the state of p.

Sourceval connection : t -> Jstr.t

connection p is the connection of p.