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

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

yesss. grrrrr ! 😀 sussed it. getRange numbers are not
start and end, it’s start, the the number of items. so
it’s done like this: (note i had to specify start minus 1)
`prog1Data = memB:getRange(1-1,20)
preset1 = prog1Data:toHexString(1)
console(“preset1 :”..preset1)

prog2Data = memB:getRange(21-1,20)
preset2 = prog2Data:toHexString(1)
console(“preset2 :”..preset2)

prog3Data = memB:getRange(41-1,20)
preset3 = prog3Data:toHexString(1)
console(“preset3 :”..preset3)

prog4Data = memB:getRange(61-1,20)
preset4 = prog4Data:toHexString(1)
console(“preset4 :”..preset4)`

and that produces (in console):

LUA>> midiMessageReceived: 80bytes
LUA>> bank dump detected!
LUA>> preset1 :6f 6e 65 20 20 20 20 20 20 20 2a 33 59 64 34 00 78 7f 62 4e
LUA>> preset2 :74 77 6f 20 20 20 20 20 20 20 74 3b 64 59 08 51 7f 7c 3c 2b
LUA>> preset3 :74 68 72 65 65 20 20 20 20 20 55 12 7f 3b 0f 11 2b 60 58 19
LUA>> preset4 :66 6f 75 72 20 20 20 20 20 20 55 5d 3b 2e 69 51 7f 7c 3c 2b

he he.

(‘code’ buttons not working tonight)

Ctrlr