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

Fix issue #115806: round robin not working #2680

Merged
merged 1 commit into from
Jun 21, 2016

Conversation

hpfmn
Copy link
Contributor

@hpfmn hpfmn commented Jun 20, 2016

This fixes the not working round robin

@hpfmn hpfmn changed the title Fix issue #115806 Fix issue #115806: round robin not working Jun 20, 2016
@hpfmn
Copy link
Contributor Author

hpfmn commented Jun 21, 2016

Round robin general works by having a sequence length and a sequence position. The current position in the sequence should advance each time a note is played that corresponded to that zone - but a note in that zone just gets played if it's position is the same as the current one of the sequencer. So currently Zerberus checks whether the current seq position is the same as the desired position but it only advances the general position if that check is positive. But has to advance always - but just returning true if it matches!

@lasconic
Copy link
Contributor

Looks good. There is another thing missing though. We read lorand and hirand but we don't do anything with it, so I guess we are always playing the samples in the seq order.
Very good example here http://ariaengine.com/forums/discussion/comment/31214#Comment_31214
I will merge this, can you take a look to implement the random?

@lasconic lasconic merged commit dbc74b4 into musescore:master Jun 21, 2016
@@ -50,18 +50,19 @@ bool Zone::match(Channel* c, int k, int v, Trigger et)
&& (k <= keyHi)
&& (v >= veloLo)
&& (v <= veloHi)
&& (seq == seqPos)
//&& (seq == seqPos)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh and if you could remove this line, if it's not useful, better to not keep it commented.

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.

2 participants