Calculating Something Else Problem

Miscellaneous Forums/General Discussion/Calculating Something Else Problem

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

TimeSoFar can be > Value2*2


Well thats your problem right threre, Value2 is the length of a whole cycle, and when Timesofar is greater than that it is reduced to "LESS THAN VALUE2" in both mine and your method.

For TimesoFar to ever be > Value2*2 then DaltaTimesofar has to be greater than Value2. But Value two is the wavelength, so you are taking sample too infrequently.

Float(TimeSoFar)/Value2

This seems a bit pointless Timesofar is already a float. Maybe

TimeSoFar/Float (Value2)