From 44a0fe64a165fd49fd1699d7e227a5705ecc09cb Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sun, 6 Dec 2020 21:56:30 -0500 Subject: Oscillators --- options.bqn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'options.bqn') diff --git a/options.bqn b/options.bqn index 7e2aa25..2cc055a 100644 --- a/options.bqn +++ b/options.bqn @@ -3,8 +3,12 @@ fmt ⇐ 1‿16 # Format: 16-bit integer freq ⇐ 44100 # Frequency: 44.1kHz Set ⇐ {fmt‿freq↩𝕩} +# For generating random waveforms; result is a shape 𝕩 array of uniform +# random numbers between 0 and 1 +RandFloats ⇐ •RAND∘⥊⟜0 + # For reading/writing wave files warn_dither ⇐ 0 # Whether to warn on non-integer signal warn_clip ⇐ 1 # Whether to warn on out-of-bounds signal -Dither ⇐ ⌊ (-˝ 0 •RAND∘⥊˜ 2∾≢)⊸+ +Dither ⇐ ⌊ (-˝ ·RandFloats 2∾≢)⊸+ Resample ⇐ "No resampling function specified"!0˙ -- cgit v1.2.3