aboutsummaryrefslogtreecommitdiff
path: root/panap.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-02-19 10:19:41 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-02-19 10:19:41 -0500
commit932ce855d74848c4721d7ec35dc92a6a3d628a22 (patch)
tree782912501a1dae22751740b8590ebf97ea7c0750 /panap.bqn
parent5643af00cc8922d94b91b53b37ba4a42eaa0d07c (diff)
Switch to •math trig functions
Diffstat (limited to 'panap.bqn')
-rw-r--r--panap.bqn4
1 files changed, 1 insertions, 3 deletions
diff --git a/panap.bqn b/panap.bqn
index 0817387..313ff72 100644
--- a/panap.bqn
+++ b/panap.bqn
@@ -2,9 +2,7 @@
o ← ≠◶⟨•Import∘"options.bqn", ⊑⟩ •args
mix‿fil ← •Import¨ "mix.bqn"‿"filter.bqn"
-SP ← (4⊸×÷5⊸-) 4׬⊸×
-Sin ← (⊢-∘⊢⍟(>⟜1)·SP 1⊸|) 2|÷⟜π
-Cos ← Sin (π÷2)⊸-
+⟨Cos⟩ ← •math
# The goal of stereo panning is to make sounds appear to come from
# different directions. A well-panned sound for music will have the