Mercurial > hg > syncopation-dataset
comparison Syncopation models/rhythm_parser.py @ 38:cc38b3047ed9
updated syncopation.y to allow output of sync for a bar list
also fixed some problems in models and other modules
author | christopherh <christopher.harte@eecs.qmul.ac.uk> |
---|---|
date | Mon, 13 Apr 2015 23:06:49 +0100 |
parents | 3a878de00d19 |
children | 6371e8f21f7d |
comparison
equal
deleted
inserted
replaced
37:fefbe0d853c6 | 38:cc38b3047ed9 |
---|---|
8 | 8 |
9 from parameter_setter import timeSignatureBase | 9 from parameter_setter import timeSignatureBase |
10 from music_objects import * | 10 from music_objects import * |
11 | 11 |
12 comment_sign = '#' | 12 comment_sign = '#' |
13 | |
13 def discard_comments(line): | 14 def discard_comments(line): |
14 if comment_sign in line: | 15 if comment_sign in line: |
15 line = line[0:line.find(comment_sign)] | 16 line = line[0:line.find(comment_sign)] |
16 return line | 17 return line |
17 | 18 |