This program displays a Guitar tablature.
I wrote it for personal use: and to get acquainted with WPF (I already knew Windows Forms).
The program takes an input file with a format like this:
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
#1
G
3 . . . . .
. . . . . .
. . 0 . 0 .
. . . . . .
3 . . . . .
. . . . . 3
. . 0 . . .
. . . . 0 .
#2
C/G
3 . . . . .
. . . . 1 .
. . 2 . . .
. . . . . .
3 . . . . 3
. . . . . .
. . 2 0 . .
. . . . 1 .
#3 like #2
#4
C/G
3 . . . . .
. . . . . .
. . 2 0 . .
. . . . . .
D7sus4/G
3 . . 2 . .
. . . . . .
. . 0 . . .
. . . . . .
#5 (like 1)
G
3 . . . . .
. . . . . .
. . 0 . 0 .
. . . . . .
3 . . . . .
. . . . . 3
. . 0 . . .
. . . 0 . .
This input file is created by hand (using a text editor).
The output (user interface) of the program looks like this:
WPF seems a good match, a convenient way to implement this software.
- Each bar is displayed by a separate
Canvass
control. - The bars are displayed in a
WrapPanel
-- so if you change the size of the window, the bars are repositioned.