diff options
| -rw-r--r-- | mix.bqn | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -24,6 +24,14 @@ Stereo β βΛβ(2>=) # Pan signal π© to position π¨, where 0 is hard left and 1 is hard right Pan β (25ββΓββΒ¬ββ£) β₯β0βΈΒ»Λ ((=βΛβ2)-Β·(ΓΓβ0βΈβ)Β·ββ-1-Λ2Γβ£)βΈ(+ΛβΓβΒ―1βΏβ)βStereo +# Clipping functions clip to [Β―1,1] by default +# _norm changes this to match the format if it's an integer format +_norm β { (π¨π½β’)βΎ(Γ·β(2β1-ΛΒ―1βo.fmt)) π© } +# Clip signal π© to the maximum possible range. +Clip β 1βΒ―1ββ’ +# π¨ is an integer giving "sharpness". Perform a soft clip. +Softclip β { Γ·β(1βΈ+βΎ(ββ(2βπ¨β£3))) π© } + # Multiply leading or trailing samples of π© by π¨. FadefrontβΏFadeback β {πf: {π¨βΈΓβΎ((Fβ π¨)ββ’)π©}β1 }Β¨ β’βΏ- |
