Skip to content

Commit

Permalink
Revert workaround for enum value id in the ArpDisplayLayer that shoul…
Browse files Browse the repository at this point in the history
…d not have been merged by the pull request from Eric as the bug was on our side.
  • Loading branch information
NickJAllen committed Sep 4, 2024
1 parent 7bb3368 commit 0ebf2f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public ArpDisplayLayer(final MaschineExtension driver, final String name) {
final EnumDefinition arpModes = arp.mode().enumDefinition();
for (int i = 0; i < arpModes.getValueCount(); i++) {
final EnumValueDefinition valDef = arpModes.valueDefinitionAt(i);
arpValueDefinitions.add(valDef.getId().replace('_', '-'));
arpValueDefinitions.add(valDef.getId());
}

arp.rate().markInterested();
Expand Down Expand Up @@ -103,7 +103,7 @@ private void incRate(final SettableDoubleValue value, final int incValue) {

private void incMode(final SettableEnumValue mode, final int inc) {
final EnumDefinition modes = mode.enumDefinition();
final String current = mode.get().replace('_', '-');
final String current = mode.get();
final int indexMode = arpValueDefinitions.indexOf(current);
if (indexMode != -1) {
final int newIndex = indexMode + inc;
Expand Down

0 comments on commit 0ebf2f8

Please sign in to comment.