Blitz (137/176)

From:David McMinn
Date:30 Jul 2001 at 15:59:19
Subject:Re: Drawing a sample

Hi amorel

How big is your sample (the raw data of it I mean)? If it's more than 32k
then chances are the Blitz sound object will not store it correctly (or
at least, using the length with Blitz maths will be incorrect).

Try this:

xsam.w=*w20\BorderLeft+1:ysam.w=(256/2)+*w20\BorderTop
mylen.l=*mysound\_length & $FFFF
stapint.l=mylen/620
teller.l=0
Repeat
If teller<=mylen
NLine xsam,ysam,xsam,ysam+(soundarr(teller))
xsam=xsam+1
EndIf
teller=teller+stapint
Until (xsam>*w20\BorderLeft+620) OR (teller>mylen)



|) /\ \/ ][ |) |\/| c |\/| ][ |\| |\| | dave@blitz-2000.co.uk
http://members.nbci.com/david_mcminn | ICQ=16827694
'Mark that 8 and you're entering a world of pain....world of pain...'
- Walter, The Big Lebowski

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie