Skip to content

Commit

Permalink
ensure the envelope slides around a little
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Nov 18, 2024
1 parent e76f7b7 commit edcc0ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shimmers/sketches/envelope_collapse.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
dtx (* 1.5 (math/sin (* eq/TAU (+ (* 0.5 t)
(* 2.5 (math/sin (+ (* 0.1 x) (* 2 t))) x)))))]
(+ (* (math/sin (* 1.5 eq/TAU (+ tx dtx)))
(math/sin (* eq/TAU (+ (* 0.17 x) (* 1.1 (math/sin (- x (* 0.25 t))))))))
(math/sin (* eq/TAU (+ (* 0.17 x) (* 1.1 (math/sin (- x (* 0.25 t))))
(eq/sqr (math/sin (* eq/TAU (+ (* 0.15 t) (math/sin (* eq/TAU 0.0001 t))))))))))
(* 0.1 (math/sin (* eq/TAU (+ (* 4 x) (* 0.01 t))))))))))

(defn draw [{:keys [t]}]
Expand Down

0 comments on commit edcc0ff

Please sign in to comment.