Skip to content

Commit

Permalink
Fixed A/B to correspond to Camelot.
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriks73 committed May 30, 2020
1 parent 4119868 commit 2416909
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions groovy/CustomKeyRenderer.groovy
Expand Up @@ -17,7 +17,7 @@ class CustomKeyRenderer implements KeyTextRenderer {
// Let's shift by 8 and make sure 0 is converted to 12.
int i = (key.ordinal() + 8) % 12
i = i == 0 ? 12 : i
String ab = key.isMajor() ? "A" : "B"
String ab = key.isMajor() ? "B" : "A"
// create the final string
return "$i$ab"
}
Expand All @@ -43,4 +43,3 @@ class CustomKeyRenderer implements KeyTextRenderer {
}

}

0 comments on commit 2416909

Please sign in to comment.