Are there any plans to have microphone or camera input at some point? Would also be happy to try contributing this, I guess (copying from processing) the interface should be something like
module Audio: {
module Input: {
type t;
let create: (~channel: int=?, unit) => t;
let play: t => unit;
let start: t => unit;
};
module Analyzer: {
type t('k);
let amplitude: Input.t => t(float);
let fft: Input.t => t((~bands: int) => array(float));
let analyze: t('k) => 'k;
};
};
module Video: {
module Camera: {
type t;
let to_string: t => string;
let list: unit => list(t);
};
module Capture: {
type t;
let create:
(
~width: int=?,
~height: int=?,
~frame_rate: int=?,
~camera: Camera.t=?
) =>
t;
let available: t => bool;
let start: t => unit;
let stop: t => unit;
let read: t => array(array(colorT)); /* Or something like this */
};
};
Are there any plans to have microphone or camera input at some point? Would also be happy to try contributing this, I guess (copying from processing) the interface should be something like