Simple integrator


    Jun 15 2020 | 3:50 pm
    Hi, I'm just trying to make a simple patch that sum the first 512 samples in a signal that arrives in the gen object, and having back the result only for these 512, stopping the sum when reached the sample index of 511. I've tried to use +=~ but I can't figure out how to stop the sum after the desired number of values are summed. Any advice? Thanks
    Matteo

    • Jun 16 2020 | 6:27 pm
      The latch operator might be useful.
    • Jun 17 2020 | 1:28 pm
      Thanks, I've tried this, but without success.
    • Jun 18 2020 | 8:10 pm
      Maybe something like this:
      Accumulate until counter is below 512 threshold.
      Also "first x samples" in implies that you want to point the moment in time to start counting samples, hence reset button.