I haven’t tried it, but it seems to me as though you’d want the counter to count up to the threshold value for your trigger generator. So, you’d want to increment by something like threshold / N.
As a sanity check, the one-shot more i.e. with wrap? option turned off should just count the incoming clock pulses once and then stop until the next reset is received right?
I’ve only read the description of the Counter unit, but it sounds to me like it’s an accumulator that increases its value by the ‘step’ size each time a trigger is received, and can be set to wrap (reset to the ‘start’ value) if the value exceeds ‘finish’.
To generate one output pulse for every N input pulses, you would set ‘start’ to 0, ‘finish’ to whatever the trigger threshold of your output pulse generator is (say, a sample player with a one-shot pulse), and set ‘step’ to be equal to the trigger threshold divided by N. That way, if wrap is enabled, each time the Counter unit reaches the threshold, it will trigger the output pulse generator and start counting again from the beginning.
Okay, that works as expected, I ended up using really small gain settings because the threshold values are all -1 to 1. It’s kinda hard to see where a gain of 1 would be useful, I was using 0.010.
I realise this unit still has lots of uses … but for my use case this is not the tool for the job!
I want to be able to change the number of steps and can’t just do that without adjusting other parameters.
Maybe we need a countdown unit? Set the number of steps to count and then output a trigger on 0, and wrap or not. It would need a clock input, a reset, a count parameter and perhaps a divisor for weird steps. That’s all.
@odevices - no not a clock divider, that implies outputting a regular division of a clock and I definitely want the one-shot behaviour. I literally just want to be able to count clock pulses and then output a trigger when that number is reached, that’s it.
What values does this Counter unit put out. Won’t have the chance to try it for a few days, but the custom unit Count would output a CV value and you could use the Bump Scanner to create a trigger on nth pulse.
Well, a clock divider is a pulse counter that outputs a pulse every time it reaches a certain value (the division). I guess you want a one-shot clock divider.