Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clock divider's output is uneven #19

Open
unlessgames opened this issue May 6, 2022 · 1 comment
Open

Clock divider's output is uneven #19

unlessgames opened this issue May 6, 2022 · 1 comment

Comments

@unlessgames
Copy link

Maybe I'm wrong but shouldn't the 3 output fire on every third pulse.

Here is how it looks like now.

sk_clock_div_bug

@martinkrz
Copy link

I agree and support resolving this issue. In fact, the /3 divider does not uniformly divide time by 3.

There are 4 untriggered beats (7,8,1,2). This is on the github page for the module -- it is how the module works, but I think this is not intuitive.

1 2 3 4 5 6 7 8
/1 x x x x x x x x
/2 x x x x
/3 x x
/4 x x
/5 x
/6 x
/7 x
/8 x

You can mitigate this by sending a reset form the 3 division to the module, which will then output a periodic /3 division.

The other dividers (Fibonnaci, prime, etc) also work in this way. For example, the 3 division in the Fibonacci divider triggers only once until 34 counts, which is when the module resets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants