madskjeldgaard / portedplugins

A collection of plugins for the SuperCollider sound environment, all of which are ported / remixed from elsewhere
GNU General Public License v3.0
180 stars 13 forks source link

BLOsc aliasing #27

Open esluyter opened 2 years ago

esluyter commented 2 years ago

Describe the bug Audible aliasing artifacts above ~3kHz freq in all three waveforms of BLOsc

To Reproduce

{
BLOsc.ar(MouseX.kr(50, 5000, \exponential).poll, 0.5, 2) // also 0 and 1
}.play

Expected behavior Vanilla band-limited oscillators:

  Saw.ar(MouseX.kr(50, 5000, \exponential))
  Pulse.ar(MouseX.kr(50, 5000, \exponential))

Desktop (please complete the following information):

madskjeldgaard commented 2 years ago

Ooph that's a nasty one. Thanks for reporting!

esluyter commented 2 years ago

oh, and the helpfile code blows up on my machine -- might be to do with ar frequency straddling 0, BLOsc doesn't seem to like freq < 0

Ndef(\notam, {|freq=110, width=0.5|
    var sig = VarSaw.ar(freq, width: width);
    BLOsc.ar(sig);
}).play;