quickRotary
The quickRotary functions are part of the QuickSwitch system explained here.
quickRotary1Bite()
A switch with 2 modes. In 12 - position mode this switchs' position will be overridden by quickSwitch() and quickSwitch12().
Modes:
0: 12 - position switch. Absolute.
1: Incremental
Uses the rotary field for field placement. Since is has 2 modes it uses 1 slot in the field.
In addition, this switch can set the bite point of your clutches. Works in combination with biteButton(). The button presses will not trigger when setting bite point.
void quickRotary1Bite(int analogChannel, int fieldPlacement, int pos1, int pos2, int pos3, int pos4, int pos5, int pos6, int pos7, int pos8, int pos9, int pos10, int pos11, int pos12, bool reverse)
Switch setup with explainations:
quickRotary1Bite(
2, <- analog channel
1, <- placement in rotary field
16, 107, 200, 291, 383, 474, 566, 657, 749, 841, 932, 1023, <- Switch position values
false); <- Direction is not reversed, so CW rotation increasese button number.
Field placement to 1 in the rotary field, so [DahlDesign.DDCR1] will show the modes.
The starting number of the 12-position mode is determined by the number set in the block for
analogButtonNumber[]. The number for incremental mode is determined by the number set in the block foranalogButtonNumberIncMode[].This switch has "reverse" set to true, which can be a good idea if it is placed horizontally on the right side. Turning it CCW will now increase the count instead of reducing.
So typed out in 30_Switches.ino:
quickRotary1Bite(2, 1, 16, 107, 200, 291, 383, 474, 566, 657, 749, 841, 932, 1023, false);
modButton() if you want to change modes freely. modButton() not needed to change modes across presets.
Minimum 12 button numbers.
One slot in the rotary field.
quickSwitch() or quickSwitch12() button to override position.
biteButton() to set bite point.
quickRotary2()
A switch with 2 modes. In 12 - position mode this switchs' position will be overridden by quickSwitch() and quickSwitch12().
Modes:
0: 12 - position switch. Absolute.
1: Incremental
Uses the rotary field for field placement. Since is has 2 modes it uses 1 slot in the field.
void quickRotary2(int analogChannel, int fieldPlacement, int pos1, int pos2, int pos3, int pos4, int pos5, int pos6, int pos7, int pos8, int pos9, int pos10, int pos11, int pos12, bool reverse)
Switch setup with explainations:
quickRotary2(
2, <- analog channel
1, <- placement in rotary field
16, 107, 200, 291, 383, 474, 566, 657, 749, 841, 932, 1023, <- Switch position values
false); <- Direction is not reversed, so CW rotation increasese button number.
Field placement to 1 in the rotary field, so [DahlDesign.DDCR1] will show the modes.
The starting number of the 12-position mode is determined by the number set in the block for
analogButtonNumber[]. The number for incremental mode is determined by the number set in the block foranalogButtonNumberIncMode[].This switch has "reverse" set to true, which can be a good idea if it is placed horizontally on the right side. Turning it CCW will now increase the count instead of reducing.
So typed out in 30_Switches.ino:
quickRotary2(2, 1, 16, 107, 200, 291, 383, 474, 566, 657, 749, 841, 932, 1023, false);
modButton() if you want to change modes freely. modButton() not needed to change modes across presets.
Minimum 12 button numbers.
One slot in the rotary field.
quickSwitch() or quickSwitch12() button to override position.
quickRotary3()
A switch with 2 modes. In 12 - position mode this switchs' position will be overridden by quickSwitch() and quickSwitch34().
Modes:
0: 12 - position switch. Absolute.
1: Incremental
Uses the rotary field for field placement. Since is has 2 modes it uses 1 slot in the field.
void quickRotary3(int analogChannel, int fieldPlacement, int pos1, int pos2, int pos3, int pos4, int pos5, int pos6, int pos7, int pos8, int pos9, int pos10, int pos11, int pos12, bool reverse)
Switch setup with explainations:
quickRotary3(
2, <- analog channel
1, <- placement in rotary field
16, 107, 200, 291, 383, 474, 566, 657, 749, 841, 932, 1023, <- Switch position values
false); <- Direction is not reversed, so CW rotation increasese button number.
Field placement to 1 in the rotary field, so [DahlDesign.DDCR1] will show the modes.
The starting number of the 12-position mode is determined by the number set in the block for
analogButtonNumber[]. The number for incremental mode is determined by the number set in the block foranalogButtonNumberIncMode[].This switch has "reverse" set to true, which can be a good idea if it is placed horizontally on the right side. Turning it CCW will now increase the count instead of reducing.
So typed out in 30_Switches.ino:
quickRotary33(2, 1, 16, 107, 200, 291, 383, 474, 566, 657, 749, 841, 932, 1023, false);
modButton() if you want to change modes freely. modButton() not needed to change modes across presets.
Minimum 12 button numbers.
One slot in the rotary field.
quickSwitch() or quickSwitch34() button to override position.
quickRotary4()
A switch with 2 modes. In 12 - position mode this switchs' position will be overridden by quickSwitch() and quickSwitch34().
Modes:
0: 12 - position switch. Absolute.
1: Incremental
Uses the rotary field for field placement. Since is has 2 modes it uses 1 slot in the field.
void quickRotary4(int analogChannel, int fieldPlacement, int pos1, int pos2, int pos3, int pos4, int pos5, int pos6, int pos7, int pos8, int pos9, int pos10, int pos11, int pos12, bool reverse)
Switch setup with explainations:
quickRotary4(
2, <- analog channel
1, <- placement in rotary field
16, 107, 200, 291, 383, 474, 566, 657, 749, 841, 932, 1023, <- Switch position values
false); <- Direction is not reversed, so CW rotation increasese button number.
Field placement to 1 in the rotary field, so [DahlDesign.DDCR1] will show the modes.
The starting number of the 12-position mode is determined by the number set in the block for
analogButtonNumber[]. The number for incremental mode is determined by the number set in the block foranalogButtonNumberIncMode[].This switch has "reverse" set to true, which can be a good idea if it is placed horizontally on the right side. Turning it CCW will now increase the count instead of reducing.
So typed out in 30_Switches.ino:
quickRotary4(2, 1, 16, 107, 200, 291, 383, 474, 566, 657, 749, 841, 932, 1023, false);
modButton() if you want to change modes freely. modButton() not needed to change modes across presets.
Minimum 12 button numbers.
One slot in the rotary field.
quickSwitch() or quickSwitch34() button to override position.
Last updated