I can get a fake average amplitude of a sample using:
but is there anyway I can calculate "ave" for the entire file? Using BASS_ChannelSetPosition in a for loop, doing the above, and getting the average of that doesn't work. I though I had beat the system, but alas, there's something I don't know...
For i = 0 To 511 Step 16 v# = PeekFloat(spectrum, i) average(i) = v*1000 c = 100+(v*1000) If c=>256 Then c=255 Color c, 50, 0 Rect i, 240+(-v*1000), 16, 3, 1 Text i,(260+(-v*1000)), Int (v*1000) Next For i = 0 To 511 ave = ave + average(i) Next ave = ave / (512/16)
but is there anyway I can calculate "ave" for the entire file? Using BASS_ChannelSetPosition in a for loop, doing the above, and getting the average of that doesn't work. I though I had beat the system, but alas, there's something I don't know...