Reply To: Demo panel for MIDI receive/transmit routines

Home Forums General Using Ctrlr Demo panel for MIDI receive/transmit routines Reply To: Demo panel for MIDI receive/transmit routines

#73246
human fly
Participant
    • Topics: 124
    • Replies: 1070
    • Total: 1194
    • ★★★★

    latest silly idea: i want to do something like this:
    i have an ‘external bank’, a string representing 80 bytes of data,
    that i need to retrieve, and split into 4 ‘presets’, with
    something like this (this doesn’t work):

    --convert bank to table
    	tabl_extBank = {}
    	for i=1,80 do
    	local s=L(memB)
        table.insert(tabl_extBank,s)
    	end
    	--console(tostring(tabl_extBank))

    it doesn’t like local s=L(memB) -i think it needs to be converted
    to a hex string first or something. the plan then is to select
    table items in ranges to make new hex strings or strings to
    represent the 4 presets in the bank.(any alternative ideas welcome
    for this, i’m just progressing step by step. if it compiles, give
    it a try, and then move on)

    here’s the panel:

    (btw: found i can getSize() on a memblock so that’s what i’m
    using here instead of midi message – what else can we ‘getSize’ on?
    what’s the requirement?)

    Attachments:
    You must be logged in to view attached files.
    Ctrlr