Adding channel map

First test works
This commit is contained in:
Jamie Hardt
2018-12-24 15:55:37 -08:00
parent ab40ba1fa0
commit ca873af772
3 changed files with 103 additions and 1 deletions

View File

@@ -4,6 +4,8 @@
from .parse_cmx_statements import (parse_cmx3600_statements,
StmtEvent, StmtFCM, StmtTitle, StmtClipName, StmtSourceFile, StmtAudioExt)
from .channel_map import ChannelMap
from collections import namedtuple
def parse_cmx3600(path):
@@ -55,6 +57,14 @@ class Edit:
self.clip_name_statement = clip_name_statement
self.source_file_statement = source_file_statement
@property
def channels(self):
cm = ChannelMap()
cm.append_event(self.edit_statement.channels)
if self.audio_ext != None:
cm.append_ext(self.audio_ext)
return cm
@property
def transition(self):
return Transition(self.edit_statement.trans, self.edit_statement.trans_op)