annotate Syncopation models/text_bnf_syntax.txt @ 8:2c5df6a4a22f

updated music objects, removed old bar definition from rhythm parser
author christopherh <christopher.harte@eecs.qmul.ac.uk>
date Thu, 02 Apr 2015 00:06:57 +0100
parents ac882f5e6a11
children 7a1730bbf15a
rev   line source
christopher@6 1
christopher@6 2 <piece> ::= <timesig> <line> | <piece> <line>
christopher@6 3
christopher@6 4 <tempo> ::= "QPM{" <digits> "}"
christopher@6 5
christopher@6 6 <ticks per quarter> ::= "TPQ{" <digits> "}"
christopher@6 7
christopher@8 8 <line> ::= [<barlist>] ["#" <comment-text>] "\n"
christopher@6 9
christopher@8 10 <barlist> ::= <time-info> | [<time-info>] <bar> | <barlist> <bar>
christopher@6 11
christopher@6 12 <time-info> ::= [<timesig>] [<ticks per quarter>] [<tempo>]
christopher@6 13
christopher@6 14 <timesig> ::= "t{" <digit> "/" <digit> "}"
christopher@6 15
christopher@6 16 <bar> ::= "v{" <velocity-sequence> "}" | "y{" <note-sequence> "}"
christopher@6 17
christopher@6 18 <note-sequence> ::= <note> | <note-sequence> "," <note>
christopher@6 19
christopher@6 20 <note> ::= "(" <digits> "," <digits> "," <digits> ")"
christopher@6 21
christopher@6 22 <velocity-sequence> ::= <decimal> | <velocity-sequence> "," <decimal>
christopher@6 23
christopher@6 24 <decimal> ::= "0" | "1" | "0." <digits>
christopher@6 25
christopher@6 26 <digits> ::= <digit> | <digits> <digit>
christopher@6 27
christopher@6 28 <digit> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"