Post History
Given a musical key, output its number and letter on the Camelot Wheel (shown below). Input A musical key as a string, as shown on the wheel. The words "Sharp" and "Flat" may be replaced with s...
Question
code-golf
#2: Post edited
The Camelot Wheel
- Given a musical key, output its number and letter on the [Camelot Wheel](https://mixedinkey.com/harmonic-mixing-guide/) (shown below).
- ![Camelot Wheel](https://codegolf.codidact.com/uploads/SryDAK5aTZE5KLf6tiasx5wu)
- # Input
- A musical key as a string, as shown on the wheel. The words "Sharp" and "Flat" may be replaced with symbols (such as "#" and "b") if you wish.
- # Output
- The number and letter, either as a string, tuple, or array.
- Examples:
- ```
- Input->Output
- "E Major" -> "12B"
- "F-Sharp Minor" -> "11A"
- "Bb Minor" -> "3A"
- ```
This is code-golf.
- Given a musical key, output its number and letter on the [Camelot Wheel](https://mixedinkey.com/harmonic-mixing-guide/) (shown below).
- ![Camelot Wheel](https://codegolf.codidact.com/uploads/SryDAK5aTZE5KLf6tiasx5wu)
- # Input
- A musical key as a string, as shown on the wheel. The words "Sharp" and "Flat" may be replaced with symbols (such as "#" and "b") if you wish.
- # Output
- The number and letter, either as a string, tuple, or array.
- Examples:
- ```
- Input->Output
- "E Major" -> "12B"
- "F-Sharp Minor" -> "11A"
- "Bb Minor" -> "3A"
- ```
- This is <a class="badge is-tag">code-golf</a>.
#1: Initial revision
The Camelot Wheel
Given a musical key, output its number and letter on the [Camelot Wheel](https://mixedinkey.com/harmonic-mixing-guide/) (shown below). ![Camelot Wheel](https://codegolf.codidact.com/uploads/SryDAK5aTZE5KLf6tiasx5wu) # Input A musical key as a string, as shown on the wheel. The words "Sharp" and "Flat" may be replaced with symbols (such as "#" and "b") if you wish. # Output The number and letter, either as a string, tuple, or array. Examples: ``` Input->Output "E Major" -> "12B" "F-Sharp Minor" -> "11A" "Bb Minor" -> "3A" ``` This is code-golf.