diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-06 21:56:30 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-06 21:56:30 -0500 |
| commit | 44a0fe64a165fd49fd1699d7e227a5705ecc09cb (patch) | |
| tree | a437fb9b376e6e2ac3626962a409caba8d33f2e6 /options.bqn | |
| parent | 4d39c3ead7603626ce2feaac011ae59829328e91 (diff) | |
Oscillators
Diffstat (limited to 'options.bqn')
| -rw-r--r-- | options.bqn | 6 |
1 files changed, 5 insertions, 1 deletions
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˙ |
