Module Midi.Access

MIDI access.

type t

The type for MIDIAccess objects.

val inputs : t -> (Input.t -> 'a -> 'a) -> 'a -> 'a

inputs a f acc folds over the MIDI inputs of a with f.

val outputs : t -> (Output.t -> 'a -> 'a) -> 'a -> 'a

outputs a f acc folds over the MIDI outputs a with f.


type opts

The type for MIDI access options.

val opts : ?sysex:bool -> ?software:bool -> unit -> opts

opts () are MIDI access options with given parameters.

val of_navigator : ?opts:opts -> Brr.Navigator.t -> t Fut.or_error

of_navigator () requests a MIDI access object.