how to remake this counter?
Posted: Tue Oct 03, 2017 7:54 pm
Attaching a counter module, that was created by KG some time ago (with waveread code, that works correctly for audio files longer than few minutes).
The counter works fine, i.e. can go forwards, backwards, supports starting offset and step size.
I recently started a project, in which I noticed, that it eats memory like black hole, but I found what the problem was (wave was recompiled from mem to floats in order to isolate fractions, and then it was compiled back again to mem), and now I need some solution for that. Unfortunately I have no clue what to modify, to make this work.
Generally, I need to set up a startpoint and endpoint for this counter. While I know how to make the endpoint (i.e. just by manipulating the number of samples), I have no clue how to define the startpoint.
By startpoint I mean an initial point, from which this counter should restart, after reaching the endpoint. Not to confuse with offset nodes, which tells, where from to start counting in general (within the range between startpoint and endpoint).
The counter works fine, i.e. can go forwards, backwards, supports starting offset and step size.
I recently started a project, in which I noticed, that it eats memory like black hole, but I found what the problem was (wave was recompiled from mem to floats in order to isolate fractions, and then it was compiled back again to mem), and now I need some solution for that. Unfortunately I have no clue what to modify, to make this work.
Generally, I need to set up a startpoint and endpoint for this counter. While I know how to make the endpoint (i.e. just by manipulating the number of samples), I have no clue how to define the startpoint.
By startpoint I mean an initial point, from which this counter should restart, after reaching the endpoint. Not to confuse with offset nodes, which tells, where from to start counting in general (within the range between startpoint and endpoint).