Module MIDI.MultitrackSource

Multitrack buffers.

Sourcetype t = buffer array

A multitrack buffer.

Sourcetype buffer = t
Sourceval channels : buffer -> int

Channels.

Sourceval duration : buffer -> int

Duration.

Sourceval create : int -> int -> buffer

Create a multitrack MIDI buffer with given number of channels and length in samples.

Sourceval clear : ?channel:int -> buffer -> int -> int -> unit