Skip to content

Programming Language Syntax

Umberto Paramento edited this page May 26, 2016 · 7 revisions

#Programming Language Syntax and Semantics

Navigate this page:

##Syntax

The syntax used to program in TabCoding is the following:

COMMAND SEMANTICS
START() It must always be the first line of code
TITLE(name) Writes in the output file the title of the song using name
AUTHOR(name) Writes in the output file the name of the author using name
BAR(x/y) Sets the beats as x/y
NEWLINE() Creates a new line in the ouptut text
NOTE(t,f) Puts on the tab the note on the t th string at the f th fret
CHORD(c) Puts on the tab the standard chord c. Chords are defined using the US standard (A to G)
POWERCHORD(t,f) Puts on the tab the powerchord using as main note the f th fret on the t th string
STRUMMING(f1,f2,f3,f4,f5,f6) Starting from the first string puts on the tab a custom chord.
SLIDEUP(t,f1,f2) Puts on the tab a slide up on the c th string starting from the f1 th fret to the f2 th fret
SLIDEDOWN(t,f1,f2) Like slideup, but down =D
HAMMER(t,f1,f2) Puts on the tab a hammer-on on the c th string starting from the f1 th fret to the f2 th fret
PULLOFF(t,f1,f2) Puts on the tab a pull-off on the c th string starting from the f1 th fret to the f2 th fret
PAUSE() Writes a pause on the tab and the beats go on of y/2
PAUSE_G() Graphic Pause, it only writes a pause on the tab, take your time here, the beats are not increased

Please note that whenever a number greater than 9 is needed, the specific command must be executed twice (i.e. to obtain a strumming on the 15th frets, the necessary code is STRUMMING(1,1,1,1,1,1) STRUMMING(5,5,5,5,5,5)).

##Semantics In order to attain to the defined semantics rules:

  • x and y must be integers between 1 and 4;
  • f must be an integer between 0 and 9. If a command is used twice (i.e. for frets), the combination of f s must be lower than 24;
  • t must be an integer beetween 1 and 6;
  • c must be a character between 'A' and 'G';

Clone this wiki locally