Module MIDI.MultitrackSource

Sourcetype t = buffer array
Sourcetype buffer = t
Sourceval channels : buffer -> int
Sourceval duration : buffer -> int
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