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

(meadowphysics) fix tigger behaviour in 1 CV/TR #33

Merged
merged 2 commits into from Apr 22, 2018

Conversation

honkfestival
Copy link
Contributor

@honkfestival honkfestival commented Apr 22, 2018

I noticed that meadowphysics doesn't trigger when the voice mode is set to 1 CV/TR.

In mp_note_on(), it looks like this is due to if(mp_clock_count) never passing due to mp_clock_count being initialized to 0 in clock_mp(). Since it never passes, mp_clock_count is never incremented and a voice is never allocated.

The solution is to properly check the value of mp_clock_count, just like the other voice allocation modes. (It could just as easily be mp_clock_count == 0, but I thought this was clearer.)

(I've also included some whitespace changes here that I'd be happy to remove if you don't want them.)

@tehn tehn merged commit ff52228 into monome:master Apr 22, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants