public
Description: Given an Avid ALE file, it will adjust the start, end, and duration times a given amount
Homepage: http://www.bjeanes.com/
Clone URL: git://github.com/bjeanes/ale-adjust.git
Search Repo:
FrameTime modifier methods are atomic (add! and minus!)
bjeanes (author)
Thu May 15 18:07:10 -0700 2008
commit  1762475dc5a78582759605f8dcf30784caa2d440
tree    cfb563b4d16afd5fb233e62c45c345070bdd271c
parent  a5b4d214f0f0d66307b16b8881d7a0e89051f7b0
...
19
20
21
22
 
23
24
25
 
26
27
28
 
29
30
31
...
19
20
21
 
22
23
24
 
25
26
27
 
28
29
30
31
0
@@ -19,13 +19,13 @@
0
     ft3 = FrameTime.parse($3)
0
 
0
     # start time has to increment a second
0
- ft1.add(1)
0
+ ft1.add!(1)
0
     
0
     # end time has to decrement one frame
0
- ft2.minus(0,1)
0
+ ft2.minus!(0,1)
0
     
0
     # duration has to decrement one second and one frame
0
- ft3.minus(1,1)
0
+ ft3.minus!(1,1)
0
     
0
     "#{ft1}\t#{ft2}\t#{ft3}"
0
   end
...
18
19
20
21
 
22
23
24
...
26
27
28
29
 
30
31
32
...
18
19
20
 
21
22
23
24
...
26
27
28
 
29
30
31
32
0
@@ -18,7 +18,7 @@
0
   end
0
   
0
   # this should be named nicer
0
- def add(s, f=0)
0
+ def add!(s, f=0)
0
     @frame = @frame + f
0
     @time += (s + @frame / @frames) #if the frames tick over to a new second, compensate
0
     @frame %= @frames
0
@@ -26,7 +26,7 @@
0
   end
0
   
0
   # this should be named nicer
0
- def minus(s, f=0)
0
+ def minus!(s, f=0)
0
     self.add(-s, -f)
0
   end
0
   

Comments

    No one has commented yet.