From: khamidou Date: Wed, 19 Jan 2011 18:57:37 +0000 (+0100) Subject: forgot actual code X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=HEAD;p=tablature.git forgot actual code --- diff --git a/tablature.el b/tablature.el new file mode 100644 index 0000000..269b1d3 --- /dev/null +++ b/tablature.el @@ -0,0 +1,22 @@ +(defun draw-tablature-head () + (save-excursion + (insert-rectangle '("e|" "B|" "G|" "D|" "A|" "E|"))) + (forward-char)) + +(defun insert-tab-column (ncols) + (interactive "ncolumn number :") + (save-excursion + (dotimes (i ncols) + (save-excursion + (insert-rectangle '("-" "-" "-" "-" "-" "-"))))) + (forward-char)) + +(defun draw-tablature-end () + (save-excursion + (insert-rectangle '("|" "|" "|" "|" "|" "|")))) + +(defun draw-tablature () + (interactive) + (draw-tablature-head) + (insert-tab-column 30) + (draw-tablature-end))