[Community Puzzle] Ukulele/Guitar converter

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @Bastian971,validated by @Aksima,@vexilla72 and @Arglanir.
If you have any issues, feel free to ping them.

Hi,

I think their is a mistery in this puzzle. My conversion gives variations of deltas to the results even when the conversion is the same and the string played also…
can you please confirm all this is really double checked ?
Else as I red multiple time the puzzle and don’t find any point missing in my conversion, can you confirm this is correct :

Guitar
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
5 E2 F2 G2 G2# A2 A2# B2 C3 C3# D3 D3# E3 F3 G3 G3# A3 A3# B3 C4 C4# D4 D4#
4 A2 A2# B2 C3 C3# D3 D3# E3 F3 G3 G3# A3 A3# B3 C4 C4# D4 D4# E4 F4 G4 G4#
3 D3 D3# E3 F3 G3 G3# A3 A3# B3 C4 C4# D4 D4# E4 F4 G4 G4# A4 A4# B4 C5 C5#
2 G3 G3# A3 A3# B3 C4 C4# D4 D4# E4 F4 G4 G4# A4 A4# B4 C5 C5# D5 D5# E5 F5
1 B3 C4 C4# D4 D4# E4 F4 G4 G4# A4 A4# B4 C5 C5# D5 D5# E5 F5 G5 G5# A5 A5#
0 E4 F4 G4 G4# A4 A4# B4 C5 C5# D5 D5# E5 F5 G5 G5# A5 A5# B5 C6 C6# D6 D6#
UKULELE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
3 G4 G4# A4 A4# B4 C5 C5# D5 D5# E5 F5 G5 G5# A5 A5# B5
2 C4 C4# D4 D4# E4 F4 G4 G4# A4 A4# B4 C5 C5# D5 D5# E5
1 E4 F4 G4 G4# A4 A4# B4 C5 C5# D5 D5# E5 F5 G5 G5# A5
0 A4 A4# B4 C5 C5# D5 D5# E5 F5 G5 G5# A5 A5# B5 C6 C6#
1 Like

The statement says:

The notes follow this pattern :
C0→C0#→D0→D0#→E0→F0→F0#→G0→G0#→A0→A0#→B0→C1→C1#→D1→…

So, e.g. in your Guitar table, row 5 column 2 should read F2# instead of G2.

Many thank ! Now it works, errors like these are quite anoying but I appreciate to be in such a nice community to chase it !

1 Like

Hi,
All tests are ok but the two last validators are not.
Any clue ?
Thx !

There aren’t any clues. You just have to run your code against all possible inputs to see which outputs are incorrect. Convert from both directions (ukulele → guitar and guitar → ukulele), then compare whether the results match.