Support Board
Date/Time: Fri, 29 Nov 2024 08:26:48 +0000
Post From: ACSIL value not being assigned
[2023-02-28 19:48:48] |
User538264 - Posts: 26 |
I forgot to include the function barsSinceCross(). Here is the code for that function. int barsSinceCross(SCConstFloatArrayRef arr, int occurence) { int bars = 1; int reps = 1; for (int i = arr.GetArraySize() - 1; i > 0; i--) { if (arr[i] == 0.0) { bars++; } else if (reps < occurence) { reps++; bars++; } else { break; } } return bars; } |