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 int Number of buffers
Returns:
-
A new MIDI Pipe
Methods
- MidiPipe:get (index)
-
Get a MidiBuffer from the pipe.
Parameters:
- index int Index of the buffer
Returns:
-
kv.MidiBuffer
A midi buffer
- MidiPipe:resize (nbuffers)
-
Get a MidiBuffer from the pipe.
Parameters:
- nbuffers int 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.