Christopher Estonina wrote: > thanks for your quick reply. i think your formula is the final piece to make > my program work. you wrote: > > >Read the file bit by bit, convert 4 bits onto a number (AllPrevious + > >CurrentBit * 2 ^ Position), mulitply that by 16 and write that to a >wave > > can you give me a more detailed explanation. i don't seem to get how to code > this in my program. i don't get the variables you used (like "Position" is > this relative to what?). if possible, i was hoping maybe a pseudo-code or if > you have time code it in a function (any e.g. c++,pascal or basic). also i > already posted a message in groups.google.com but so far none has replied > yet. hope you can help me again in this matter. i really need to finish this > project soon. thanks in advance and more power! Ugh, I guess I can't help NOW if you needed a quick finnish. =] (Just finished a 1 week vacation.) But here I go anyway: AllPrevious is all the previous togather. CurrentBit is the current bit (Doh! =). Position is the bit position in the number. In a 110010, it goes like this (use fixed lenght characters to see chart): ^ We start here AllPrevious + Current bit * 2 ^ Position = This ---------------------------------------- 0 + 0 * 2 ^ 0 = 0 This changes to AllPrevious and... 0 + 1 * 2 ^ 1 = 2 2 + 0 * 2 ^ 2 = 2 2 + 0 * 2 ^ 3 = 2 2 + 1 * 2 ^ 4 = 18 18 + 1 * 2 ^ 5 = 50 -- Don't feel bad about asking/telling me anything, I will always gladly reply. Wish you a lot of theta brain-waves!! GTSC4 -- If nobody else wants to do it, why shouldn't we?(TM) Meson & GTSC4 are now merged: Http://WWW.MesonAI.Com