grand unification of time
This commit is contained in:
parent
a4ce750be2
commit
05878ca48b
40 changed files with 334 additions and 292 deletions
|
|
@ -82,9 +82,7 @@
|
|||
:sym/poses symbol}}
|
||||
store {"sizes" {:data values}}
|
||||
resolve (clip/resolver document :main store pal/index-of nil)
|
||||
low-resolve (clip/resolver document :main store pal/index-of {:picture-fps 8})
|
||||
at (fn [f] (into {} (map (fn [op] [(:node op) op])) (resolve f)))
|
||||
low-at (fn [f] (into {} (map (fn [op] [(:node op) op])) (low-resolve f)))]
|
||||
at (fn [f] (into {} (map (fn [op] [(:node op) op])) (resolve f)))]
|
||||
(is (empty? (clip/problems document)))
|
||||
(is (= document (leaf/clip "stage" (leaf/leaves "stage" document))))
|
||||
(is (= 102 (:size (get (at 7) [:first :mouth]))) "eight static frames, plus its correction")
|
||||
|
|
@ -97,14 +95,8 @@
|
|||
(is (nil? (get (at 9) [:first :mouth]))
|
||||
"generated visibility is read from the same selected pose")
|
||||
(is (some? (get (at 9) [:second :mouth])))
|
||||
(is (= 105 (:size (get (low-at 7) [:first :brow])))
|
||||
"picture rate samples the generated base and leaves correction time alone")
|
||||
(is (= 22 (:size (get (low-at 8) [:first :mouth])))
|
||||
"an explicit cut occurs at its exact local frame, even off the picture grid")
|
||||
(is (= 8 (:cx (get (low-at 8) [:first :eye])))
|
||||
"authored position ignores the picture grid")
|
||||
(let [sym (get-in document [:symbols :sym/poses])
|
||||
opts {:source-fps 30 :picture-fps 8 :pose-tracks {:mouth {0 0, 8 20}}}]
|
||||
opts {:pose-tracks {:mouth {0 0, 8 20}}}]
|
||||
(is (= (mapv #(select-keys % [:node :cx :size])
|
||||
(symbol/eval-frame sym 8 store pal/index-of opts))
|
||||
(mapv #(select-keys % [:node :cx :size])
|
||||
|
|
@ -249,7 +241,7 @@
|
|||
made (clip/new-symbol c :outer id 20 u)]
|
||||
(is (= :symbol-1 id))
|
||||
(is (= :symbol-2 (clip/fresh-id made)) "the next one does not collide")
|
||||
(is (= {:id :symbol-1 :name "symbol-1" :frames 180 :nodes {}}
|
||||
(is (= {:id :symbol-1 :name "symbol-1" :fps 30 :frames 180 :nodes {}}
|
||||
(clip/symbol made :symbol-1))
|
||||
"empty, and as long as the rest of what it was placed in")
|
||||
(is (= {:span [0 180] :time {:mode :map :at 20 :rate 1}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue