lib/edl/event.rb in edl-0.0.3 vs lib/edl/event.rb in edl-0.0.4

- old
+ new

@@ -114,15 +114,20 @@ alias_method :capture_length, :src_length # Capture from (and including!) this timecode to complete this event including timewarps and transitions def capture_from_tc - timewarp ? timewarp.source_used_from : src_start_tc + @timewarp ? @timewarp.source_used_from : src_start_tc end # Capture up to (but not including!) this timecode to complete this event including timewarps and transitions def capture_to_tc - timewarp ? timewarp.source_used_upto : (src_start_tc + rec_length_with_transition) + @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 end # Returns true if this event is a generator def generator? black? || (%(AX GEN).include?(reel)) \ No newline at end of file