Skip to content

Commit

Permalink
less amplitude modulation
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Nov 21, 2024
1 parent 24a7932 commit c2f6032
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shimmers/sketches/envelope_collapse.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
(defn graph [t]
(let [t (* 0.1 t)]
(fn [x]
(let [tx (+ (* t 0.2 (eq/unit-sin (* 2 eq/TAU (+ x (* 0.9 t))))) x)
(let [tx (+ (tsin 0.05 t -0.1)
(eq/unit-sin (* 2 eq/TAU (+ x (* 0.9 t))))
x)
dtx (* 1.5 (math/sin (* eq/TAU (+ (* 0.23 t)
(* 1.75 x (math/sin (+ (* 0.1 x) (* 2 t))))))))]
(+ (* (math/sin (* 1.5 eq/TAU (+ tx dtx)))
Expand Down

0 comments on commit c2f6032

Please sign in to comment.