fretboard game (cl-musicman)
2006-07-17 13:18:20
I added a little fretboard guessing game to cl-musicman. It's not very fancy, it runs at the repl, but it's fun, for me anyway.
Here is an example:
MUSIC-THEORY> (note-guessing-game (define-guitar :tuning '(d a d g a d)) :fret 5)
Note on fret 5 string 5
e
Wrong!
the note on fret 5 string 5 is (D)
Note on fret 5 string 2
quit
NIL
MUSIC-THEORY> (note-guessing-game (define-guitar))
Note on fret 2 string 2
c#
Right!
Note on fret 0 string 2
b
Right!
Note on fret 4 string 3
quit
NIL
MUSIC-THEORY>
define-guitar is pretty cool. It will allow you to specify the tuning, which also determines the number of strings, and the number of frets.
(define-guitar :tuning '(d g b d g b d) :frets 24)
Will give you a 7-string guitar with 24 frets.