On Fri, 11 Mar 2011, patko wrote:
For example if you need 7 bit words values like in MIDI standard, second value would be multiplied by 128 and then added to the first, the third by 16384 and added to the sum of the first and the second, etc ...
for demultiplexing a [mod 128] would get the first value, the second with [mod 16384]-[/ 128]-[int], etc ...
You can also do the second using : [mod 16384]-[div 128]
or : [div 128]-[mod 128]
or : [>> 7]-[& 127]
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC