Home › Forums › General › Programming › getbyte() › Re: getbyte()
July 23, 2011 at 4:51 pm
#3006
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]