Skip to content

Conversation

@frostmod
Copy link
Contributor

Changes samples for Microkorg2 to iterating based on mod source count (6).
In vox and waves samples message kMk2PlatformExclusiveModData we're iterating the mod sources based on kNumModDest. That probably works for Vox because it has 6 mod destinations (same number as mod sources or slots), but in Waves that should cause only slot 1 to work (if I'm reading this right) as it has only 1 mod destination.

This could also cause some implementer grief when using more than 6 mod destinations - kNumMk2ModDest is defined as 10, I but couldn't find anything about number of allowed mod destinations

for(int voice = 0; voice < ctxt->voiceLimit; voice+=4)
{
for(int modDest = 0; modDest < kNumModDest; modDest++)
for(int modDest = 0; modDest < kNumMk2ModSrc; modDest++)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

on line 383 we're using the indexer variable on the variable dests, which is defined as such:

float * dests[kNumMk2ModSrc];

Also this sets implementers up for an interesting time if they are following this pattern and have a kNumModDest set as > 6

for(int voice = 0; voice < ctxt->voiceLimit; voice+=4)
{
for(int modDest = 0; modDest < kNumModDest; modDest++)
for(int modDest = 0; modDest < kNumMk2ModSrc; modDest++)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

kNumModDest here is 1, so this would effectively prohibit using mod slots 2-6 if I'm reading this right

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