|Syntactic Confectionery Delight|
Transpose guitar chordsby Cody Fendant (Friar)
|on Feb 23, 2011 at 04:11 UTC||Need Help??|
Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question:
I had the task of transposing some guitar chords the other day. A very simple form of music notation along the lines of:
needing to go up a semitone to
And I thought "this will be easy to do with perl..."
This is the best I could come up with:
But as you can see, it's not elegant. I'm curious how other Monks might approach this problem.
[Musical scales are modular, in case Monks don't know.]