Overview
Comment: | Added back in section ordering support |
---|---|
Timelines: | family | ancestors | descendants | both | feature/abc |
Files: | files | file ages | folders |
SHA1: |
6dd4fffb1d0b491ac647001589831687 |
User & Date: | brian on 2011-09-22 17:46:01 |
Other Links: | branch diff | manifest | tags |
Context
2011-09-22
| ||
17:49 | Fixed note duration calculation- whole is now 4, quarter is 1 check-in: 2906c127b7 user: brian tags: feature/abc | |
17:46 | Added back in section ordering support check-in: 6dd4fffb1d user: brian tags: feature/abc | |
17:44 | Added back in section ordering support check-in: 1560bc634c user: brian tags: feature/abc | |
Changes
Modified parse.py from [8755d61a44] to [55456fde56].
1 2 3 4 5 6 | #!/usr/bin/env python import tree from ply import lex, yacc class Note(): | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/usr/bin/env python import tree from ply import lex, yacc class Note(): def __init__(self, value, duration=1 octave=8): self.value = value self.duration = duration self.octave = octave self.accidental = None def __repr__(self): return "Note %s %s %s" % (self.value, self.duration, self.octave) class Chord(): def __init__(self, value, duration=1, chord_type="major", octave=5): self.value = value self.duration = duration self.chord_type = chord_type self.octave = octave def __repr__(self): return "Chord %s %s %s" % (self.value, self.duration, self.chord_type, self.octave) |
︙ | ︙ |