Index: parse.py ================================================================== --- parse.py +++ parse.py @@ -122,13 +122,14 @@ def p_accidental(p): '''note : ACCIDENTAL note ''' if p[1] == "^": - p[0] = p[2].value + 1 + p[2].value += 1 else: - p[0] = p[2].value - 1 + p[2].value -= 1 + p[0] = p[2] def p_octave(p): '''note : note OCTAVE ''' count = len(p[2]) Index: spiffyscore.py ================================================================== --- spiffyscore.py +++ spiffyscore.py @@ -19,11 +19,19 @@ def main(): composition = { "intro": { "body": { - "pan_flute": { # Instrument 'melody' + "percusion": { + "channel": 14, + "octave": 4, + "duration": 60, + "grammars": { + "u": ["A ^A (u)"] + } + }, + "pan_flute": { "channel": 8, "octave": 5, "duration": 60, "grammars": { # Notes for this instrument to use in this piece "u": ["C2' B2 | A3 D3 || B | C' | D | C2' C2' | z | (u)", "C2' C2' | C2' C2' | (x)"],