Re: getbyte()

Home Forums General Programming getbyte() Re: getbyte()

#3006
netchose
Participant
  • Topics: 15
  • Replies: 70
  • Total: 85

the byte i get has a value of 79 in hexa
in dec = 121
console (string.char(121)) – y the result i would like

it is why i lould like to convert this 79 hexa value

something which could help : how to diplay v in the console

[code:3plijlm4]function assignValues(midiMessage)

lastSavedProgram = midiMessage:getLuaData()
programData = midiMessage:getLuaData():getRange(81,18)
unpackedData = utils.unpackDsiData(programData)

v=programData:getByte(1)

console (v) — nok
console (v:toString()) –nok
console (v:toHexString(1)) –nok

end[/code:3plijlm4]

Ctrlr