Forums > MaxMSP

Encode/decode

April 15, 2007 | 5:17 pm

I got used to Vencode and Vdecode from OpenDragon but they are not yet UB.

Does anyone have something that does this kind of thing?

Pack the pitch classes for a CM7 into a single number
12 decode 0 4 7 11
671

Unpack them to the original list
12 12 12 12 encode 671
0 4 7 11

Similar for packing and unpacking hours minutes seconds

24 60 60 decode 3 15 23
11723
24 60 60 encode 11723
3 15 23

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson


Viewing 1 post (of 1 total)