Mercurial > hg > syncopation-dataset
annotate Syncopation models/text_bnf_syntax.txt @ 39:02f69d16603d
Added some original diagrams
author | csong <csong@eecs.qmul.ac.uk> |
---|---|
date | Tue, 21 Apr 2015 12:33:59 +0100 |
parents | 7a1730bbf15a |
children |
rev | line source |
---|---|
christopher@6 | 1 |
christopher@29 | 2 <piece> ::= [<comment-lines>] <timesig> <line> | <piece> <line> |
christopher@29 | 3 |
christopher@29 | 4 <comment-lines> ::= <comment> "\n" | <comment-lines> <comment> "\n" |
christopher@6 | 5 |
christopher@6 | 6 <tempo> ::= "QPM{" <digits> "}" |
christopher@6 | 7 |
christopher@6 | 8 <ticks per quarter> ::= "TPQ{" <digits> "}" |
christopher@6 | 9 |
christopher@29 | 10 <line> ::= [<barlist>] [<comment>] "\n" |
christopher@29 | 11 |
christopher@29 | 12 <comment> ::= "#" <comment-text> |
christopher@6 | 13 |
christopher@8 | 14 <barlist> ::= <time-info> | [<time-info>] <bar> | <barlist> <bar> |
christopher@6 | 15 |
christopher@6 | 16 <time-info> ::= [<timesig>] [<ticks per quarter>] [<tempo>] |
christopher@6 | 17 |
christopher@6 | 18 <timesig> ::= "t{" <digit> "/" <digit> "}" |
christopher@6 | 19 |
christopher@6 | 20 <bar> ::= "v{" <velocity-sequence> "}" | "y{" <note-sequence> "}" |
christopher@6 | 21 |
christopher@6 | 22 <note-sequence> ::= <note> | <note-sequence> "," <note> |
christopher@6 | 23 |
christopher@6 | 24 <note> ::= "(" <digits> "," <digits> "," <digits> ")" |
christopher@6 | 25 |
christopher@6 | 26 <velocity-sequence> ::= <decimal> | <velocity-sequence> "," <decimal> |
christopher@6 | 27 |
christopher@6 | 28 <decimal> ::= "0" | "1" | "0." <digits> |
christopher@6 | 29 |
christopher@6 | 30 <digits> ::= <digit> | <digits> <digit> |
christopher@6 | 31 |
christopher@6 | 32 <digit> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" |