# VexTab Cheatsheet ### Introduction This is a quick reference for VexTab notation. If you're just getting started, take a look at the [The VexTab Tutorial](http://vexflow.com/vextab/tutorial.html). ### The Stave Show the score and/or tab staves: tabstave tabstave notation=true|false tabstave tablature=true|false Set the clef, key, time signature, and guitar tuning: tabstave clef=bass|treble|alto|percussion|tenor tabstave key=A|B|C#... tabstave time=C|4/4|3/4|6/8,... tabstave tuning=standard|dropd|eb|E/5,B/4,G/4,D/4,A/3,E/3 ### Single Notes Fret/String syntax: notes 4/5 notes 4-5-6-7/6 (Multiple notes on the same string) notes X/5 (Muted) Note/Octave syntax: notes C/4 notes C-D-E-F/4 (Multiple notes in the same octave) notes X/4 (Muted) ### Chords notes (4/5.4/4.4/3) notes (C/4.E/4.G/4) ### Multiple Voices on a Stave options stave-distance=30 space=10 tabstave notation=true key=A time=4/4 voice notes :q (5/2.5/3.7/4) :8 7p5h6/3 ^3^ 5h6h7/5 ^3^ :q 7V/4 voice notes :h 5/6 :q 5/6 :8 3-5/6 ### Barlines notes C-D-E-F/4 | C-D-E-F/4 (Regular bar) notes C-D-E-F/4 =|| C-D-E-F/4 (Double bar) notes C-D-E-F/4 =|| C-D-E-F/4 =|= (Add an end bar) notes C-D-E-F/4 =|: C-D-E-F/4 =:| (Repeats) notes =|: C-D-E-F/4 =:: C-D-E-F/4 =:| (Double Repeats) ### Time Durations notes :w :h :q :8 :16 :32 :64 notes :hd :qd :8d :16d :32d :64d (Adding a d for dotted notes) You can tie notes with `T` notes :w A/4 | T A/4 ### Rests notes :w ## :q ## notes :w #8# (Position rest on line 8) ### Triplets / Tuplets notes C-D-E/4 ^3^ notes :8 C-D-E-F-G/4 ^5^ ### Tab Articulations `s`=Slide `h`=Hammer `p`=Pulloff `b`=Bend `t`=Tap `v`=Vibrato `V`=Harsh Vibrato `u`=Upstroke `d`=Downstroke notes 4s6h7p6/5 notes 5b7b5v/3 notes (5/5.5/6)s(8/5.8/6) ### Strokes and Sweeps notes (5/6.7/5.7/4.5/3.5/2.5/1) $.stroke/qu.$ (Rasquedo up) notes (5/6.7/5.7/4.5/3.5/2.5/1) $.stroke/qd.$ (Rasquedo down) notes (5/6.7/5.7/4.5/3.5/2.5/1) $.stroke/ru.$ (Sweep up) notes (5/6.7/5.7/4.5/3.5/2.5/1) $.stroke/rd.$ (Sweep down) notes (5/6.7/5.7/4.5/3.5/2.5/1) $.stroke/bu.$ (Brush up) notes (5/6.7/5.7/4.5/3.5/2.5/1) $.stroke/bd.$ (Brush down) ### Text Annotations notes 4/4 $Boo$ notes C-E-G/4 $C,E,G$ notes C-E-G/4 $.top.$ $C,E,G$ notes 4/4 $.Arial-10-Italic.Boo$ tabstave notes :q C-E-G-C/4 | :w C/4 text :q,Root,Third,Fifth,Root,|,:w,Root (Note the bar for alignment) text :q,#tr,Third,#f (Symbols prefixed with #) text :q,Root,Third,Fift,Root,|Blah,:w,Root (Text above bar) text ++,.10,This is a new line in position 10 text ++,.12,This is a new line in position 12 text ++,.-1,.font=Times-10-italic,Another line in italics ### Score Articulations Annotations are `$code/position$`. The codes are: `a.`=Stacatto `av`=Staccatissimo `a>`=Accent `a-`=Tenuto `a^`=Marcatto `a+`=Left Hand Pizzicato `ao`=Snap pizzicato `ah`=Open Note/Natural Harmonic `a@a`=Up Fermata `a@u`=Down Fermata `a|`=Bow Up `am`=Bow Down The positions: `top` and `bottom` notes 4/4 $.a./top$ (This is a stacatto on top) notes 4/4 $.a-/bottom$ (This is a tenuto on the bottom) ### Slash Notation Simply suffix a duration with `S` to render all following notes as slashes. notes :2S B/4 :qS B/4 :q ## | :8S B/4 B/4 :qS B-B-B/4 ^3^ ### Customizations Use `options key=value key=value` before a `tabstave`. Available options: `width` Set the width of the stave in pixels. `scale` The zoom level of the notation. Default is 1.0. `space` Adds space (given in pixels) before the next stave. `stave-distance` Sets the distance (in pixels) between the note and tab staves. `font-face/font-style/font-size` Set the default font for annotations. `player` If set to `true` enables audio playback. `tempo` Set the tempo for audio playback.