lib/edl/event.rb in edl-0.0.7 vs lib/edl/event.rb in edl-0.0.8

- old
+ new

@@ -1,7 +1,7 @@ module EDL - # Represents an edit event + # Represents an edit event (or, more specifically, an EDL line denoting a clip being part of an EDL event) class Event # Event number as in the EDL attr_accessor :num # Reel name as in the EDL @@ -109,11 +109,11 @@ # Get the record length of the event (how long it occupies in the EDL without an eventual outgoing transition) def rec_length (rec_end_tc.to_i - rec_start_tc.to_i).to_i end - # Get the record length of the event (how long it occupies in the EDL without an eventual outgoing transition) + # Get the record length of the event (how long it occupies in the EDL with an eventual outgoing transition) def rec_length_with_transition rec_length + outgoing_transition_duration.to_i end # How long does the capture need to be to complete this event including timewarps and transitions @@ -133,10 +133,10 @@ @timewarp ? @timewarp.source_used_upto : (src_end_tc + outgoing_transition_duration) end # Speed of this clip in percent relative to the source speed. 100 for non-timewarped events def speed - @timewarp ? @timewarp.speed : 100 + @timewarp ? @timewarp.speed : 100.0 end # Returns true if this event is a generator def generator? black? || (%(AX GEN).include?(reel)) \ No newline at end of file