mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 08:50:48 +00:00
Transformations and commands
This commit is contained in:
@@ -90,6 +90,21 @@ class TestRobinHood1(unittest.TestCase):
|
||||
self.assertEqual(parsed['markers'][0]['time_reference'], 0)
|
||||
self.assertEqual(parsed['markers'][0]['units'], "Samples")
|
||||
|
||||
def test_transform_timecode(self):
|
||||
parsed = dict()
|
||||
with open(self.path, 'r') as f:
|
||||
visitor = ptulsconv.DictionaryParserVisitor()
|
||||
result = ptulsconv.protools_text_export_grammar.parse(f.read())
|
||||
parsed = visitor.visit(result)
|
||||
|
||||
xformer = ptulsconv.TimecodeInterpreter()
|
||||
xformer.apply_session_start = True
|
||||
|
||||
xformed = xformer.transform(parsed)
|
||||
|
||||
pprint.pprint(xformed)
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user