thanks guys :)
so far i've come up with this:
added to the example6.bmx example that comes with the mod. some of the numbers that BASS produces are really big/small, so i'm having to cap the height quite a bit and not draw those. otherwise it looks ok.
i'm guessing there is a better way of using the data, but i can't figure out how to make those values it returns more usable.
Cheers
Charlie
so far i've come up with this:
Global spectrum:TBank = CreateBank(2048) ... channel.getdata(spectrum.Buf(),BASS_DATA_FFT512) For Local i:Int=0 To 512 Local h:Float=PeekFloat(spectrum,i) h=-Sqr((h))*3*100 If h<100 And h>-100 DrawRect i,300,1,h End If Next
added to the example6.bmx example that comes with the mod. some of the numbers that BASS produces are really big/small, so i'm having to cap the height quite a bit and not draw those. otherwise it looks ok.
i'm guessing there is a better way of using the data, but i can't figure out how to make those values it returns more usable.
Cheers
Charlie