Re: Where is the error - Solved

2017-02-15 Thread Tim Nevels via 4D_Tech
On Feb 15, 2017, at 2:56 PM, Peter Mew wrote: > APPEND TO ARRAY(StartSampleArray;($Start*<>SampleRate/75)) > > This does not always evaluate correctly when compiled > it shoud read > > APPEND TO ARRAY(StartSampleArray;$Start*(<>SampleRate/75)) > this fixes the problem On Feb 15, 2017, at 4:11

Re: Where is the error?

2017-02-14 Thread Chip Scheide via 4D_Tech
not sure what you are doing.. 26655216 is more then 7400 hours If $Duration is negative then <>StartSampleArray{$i} is larger then the next array element value (<>StartSampleArray{$i+1}) Since 26655216 seconds is 7400 hours, or if the the value 26+ million is milliseconds is still over 7.4

Where is the error?

2017-02-14 Thread Peter Mew via 4D_Tech
Hi This snippet of code is in a loop, of typically 10 to 20 items. The Array <>StartsampleArray holds the start time, in samples, of the tracks on a CD. It all works fine interpreted, but when compiled, when <>StartSampleArray{$i} exceeds around 26655216 or thereabouts $Duration turns negative,