Re: [Audacity-nyquist] read-int in XLisp
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
|
From: <edg...@we...> - 2005-06-29 23:02:10
|
Math is definetly not the strength of XLisp and maybe this is just a stupid idea: If all your numbers have the same format (2 byte unsigned) maybe it helps if you just add 32767 to each of them 32767 = (( 2 ^ 16 ) / 2) - 1 to turn them into "unsigned" values after reading them as signed ? As far as I know there is no unsigned format in XLisp. edgar ------------------------------------------- > > Nyquistadores, > > I'm working on some new nyquist functionality, but I'm > having a problem with the read-int function. > > I need to read a 2-byte unsigned integer from a file, > unfortunately, XLisp seems to assume that the integer > is signed ... I think. > > I'm sure I could do this in C, but I don't totally > understand how to manipulate bits in XLisp, and the > documentation (that I could find with Google) is > rather scant. > > Anyone have any suggestions? > > thanks for the help, > > -Evan Merz > > > > ____________________________________________________ > Yahoo! Sports > Rekindle the Rivalries. Sign up for Fantasy Football > http://football.fantasysports.yahoo.com > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Audacity-nyquist mailing list > Aud...@li... > https://lists.sourceforge.net/lists/listinfo/audacity-nyquist __________________________________________________________ Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201 |