CV modulation of sequencer pattern

This commit is contained in:
2023-08-21 16:15:56 +03:00
parent 545581ec32
commit aa868c0a01
2 changed files with 3 additions and 3 deletions

View File

@ -287,9 +287,9 @@ void sendTriggers() {
//todo: limit modulation within the current bank (a or b)
int seqMod = 0;
if (channels[i].CV2Target == 3) {
seqMod = 0; map(a2Input, 0, 1023, -8, +8);
seqMod = map(a2Input, 0, 1023, -8, 8);
} else if (channels[i].CV1Target == 3) {
seqMod = 0; map(a1Input, 0, 1023, -8, +8);
seqMod = map(a1Input, 0, 1023, -8, 8);
}
byte seqPattern = channels[i].seqPattern + seqMod;

View File

@ -258,7 +258,7 @@ void checkInputs() {
channels[displayTab - 1].CV1Target = 3;
}
saveState();
} else if (insideTab && (menuItemSelected || shiftBtnPushed) && displayTab != 0 && menuItem == 3 && channels[displayTab - 1].mode == 2) { //CV2 for SEQ
} else if (insideTab && (menuItemSelected || shiftBtnPushed) && displayTab != 0 && menuItem == 4 && channels[displayTab - 1].mode == 2) { //CV2 for SEQ
channels[displayTab - 1].CV2Target = channels[displayTab - 1].CV2Target + change;
if (channels[displayTab - 1].CV2Target > 100) {
channels[displayTab - 1].CV2Target = 0;