Platforms to show: All Mac Windows Linux Cross-Platform

Back to MidiPacketListMBS class.

MidiPacketListMBS.FillList(packets() as MidiPacketMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Fills the list with the given Xojo array of MidiPackets.
Example
Dim packs(-1) As MIDIPacketMBS

Dim pack As New MIDIPacketMBS
Dim list As New MIDIPacketListMBS
Dim data As New MemoryBlock(9)

data.Byte(0) = &hF0
data.Byte(1) = &h00
data.Byte(2) = &h20
data.Byte(3) = &h1C
data.Byte(4) = &h7F
data.Byte(5) = &h04
data.Byte(6) = &h02
data.Byte(7) = &h01
data.Byte(8) = &hF7

pack.datamemory = data
pack.timeStamp = Nil 'now

packs.append pack
If Not list.FillList(packs) Then
Break // problem
Else
// send to current port and destination
client.Send(outport, currentDest, list)
End If

Some examples using this method:

MidiPacketListMBS.Item(index as Integer) as MidiPacketMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the item with the given index.

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...