MidiPacketListMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem