Class el.MidiPipe

An array of kv.MidiBuffers.

Designed for real time performance, therefore does virtually no type checking in method calls.

Constructors

MidiPipe.new (nbuffers) Create a new MIDI Pipe.

Methods

MidiPipe:get (index) Get a MidiBuffer from the pipe.
MidiPipe:resize (nbuffers) Get a MidiBuffer from the pipe.
MidiPipe:size () Returns the number of buffers in this pipe.
MidiPipe:clear () Clears all buffers in the pipe.


Constructors

MidiPipe.new (nbuffers)
Create a new MIDI Pipe.

Parameters:

  • nbuffers integer Number of buffers

Returns:

    A new MIDI Pipe

Methods

MidiPipe:get (index)
Get a MidiBuffer from the pipe.

Parameters:

  • index integer Index of the buffer

Returns:

    kv.MidiBuffer A midi buffer
MidiPipe:resize (nbuffers)
Get a MidiBuffer from the pipe.

Parameters:

  • nbuffers integer New number of buffers to store
MidiPipe:size ()
Returns the number of buffers in this pipe.

Returns:

    int The number of buffers
MidiPipe:clear ()
Clears all buffers in the pipe. Note this doesn't remove buffers, it just clears their contents.
generated by LDoc 1.5.0 Last updated 2024-02-18 20:31:17